(INTERVAL_SRC): Also depend on dispextern.h.
[bpt/emacs.git] / src / ChangeLog
CommitLineData
b5672e7c
DN
12008-12-29 Dan Nicolaescu <dann@ics.uci.edu>
2
3 * Makefile.in (INTERVAL_SRC): Also depend on dispextern.h.
4 (coding.o, dispnew.o, keymap.o, msdos.o): Depend on INTERVAL_SRC
5 instead of intervals.h.
6
d704470f
AS
72008-12-26 Andreas Schwab <schwab@suse.de>
8
9 * keymap.c (map_keymap_char_table_item): Make a copy of KEY if it is a
10 cons.
11
54b33868
MR
122008-12-26 Martin Rudalics <rudalics@gmx.at>
13
14 * textprop.c (Qminibuffer_prompt): New variable.
15 (syms_of_textprop): Initialize it.
16 * callint.c (Fcall_interactively): For `c', `k', and `K' prompt
17 in minibuffer-prompt face. (Bug#1662)
18
40b615d6
JR
192008-12-25 Jason Rumney <jasonr@gnu.org>
20
21 * buffer.c (Fbuffer_swap_text): Use POINTER_TYPE.
22
baae5c2d
JR
232008-12-24 Jason Rumney <jasonr@gnu.org>
24
25 * ralloc.c (r_alloc_reset_variable): New function.
26
27 * buffer.c (Fbuffer_swap_text) [REL_ALLOC]: Reset ralloc's internal
85f967f9 28 record of what points where. (Bug#716)
baae5c2d 29
a9051c88
DN
302008-12-22 Dan Nicolaescu <dann@ics.uci.edu>
31
32 * minibuf.c (read_minibuf): Follow the non-interactive case when
33 running as a daemon, before detaching.
34
8b146312
AS
352008-12-22 Andreas Schwab <schwab@suse.de>
36
37 * buffer.c (init_buffer): Use realloc instead of xrealloc.
38 * gtkutil.c (free_widget_value): Use xfree instead of free.
39
56f2de10
MR
402008-12-22 Martin Rudalics <rudalics@gmx.at>
41
42 * frame.c (delete_frame): New function derived from
43 Fdelete_frame to handle Qnoelisp value for FORCE argument.
44 Delete last frame iff FORCE equals Qnoelisp. (Bug#1450)
45 (Fdelete_frame): Call delete_frame. Remove line from doc-string
46 saying that FORCE non-nil doesn't run `delete-frame-functions'.
47 * frame.h: Extern delete_frame.
48 * window.c (window_loop):
49 * terminal.c (delete_terminal):
50 * xterm.c (x_connection_closed):
51 * xfns.c (Fx_hide_tip):
52 * w32fns.c (Fx_hide_tip): Call delete_frame instead of
53 Fdelete_frame.
54
1fc200d6
JR
552008-12-21 Jason Rumney <jasonr@gnu.org>
56
57 * w32uniscribe.c (uniscribe_encode_char): Return FONT_INVALID_CHAR
58 when character maps to .notdef character.
59
5e252df2
SM
602008-12-21 Stefan Monnier <monnier@iro.umontreal.ca>
61
62 * keyboard.c (cmd_error_internal): Don't exit in daemon mode, bug#1310.
63
99b72cc4
JR
642008-12-20 Jason Rumney <jasonr@gnu.org>
65
66 * frame.c (Fmake_terminal_frame): Raise an error when called from
85f967f9 67 a graphical frame on Windows. (Bug#1325)
99b72cc4 68
acc49a52
JD
692008-12-20 Jan Djärv <jan.h.d@swipnet.se>
70
71 * frame.c (Fdelete_frame): Set f->menu_bar_vector to Qnil.
72
6ea15123
CY
732008-12-20 Chong Yidong <cyd@stupidchicken.com>
74
75 * minibuf.c (Fread_buffer): Doc fix.
76
b2dab6c8
JR
772008-12-20 Jason Rumney <jasonr@gnu.org>
78
54ea0c87 79 * fileio.c (Fexpand_file_name): Do not allow ../ to go beyond the
85f967f9 80 server name in UNC paths. (Bug#719)
54ea0c87 81
b2dab6c8 82 * coding.c (decode_coding): Clear chars_at_source flag when using
85f967f9 83 charbuf. (Bug#1035)
b2dab6c8 84
6d1921be
DN
852008-12-19 Daniel Engeler <engeler@gmail.com>
86
87 * sysdep.c (serial_configure): Fix typo.
88
53934c98
DN
892008-12-19 Dan Nicolaescu <dann@ics.uci.edu>
90
91 * sysdep.c: Include alloca.h.
f4f634e8
DN
92 (system_process_attributes): Add implementation for Solaris.
93
94 * s/sol2-10.h (HAVE_PROCFS, _STRUCTURED_PROC): New defines.
53934c98 95
06e111a6
DN
962008-12-19 Dan Nicolaescu <dann@ics.uci.edu>
97
98 Reorganize implementation of Flist_system_processes and
99 Fsystem_process_attributes. No functional changes.
100 * process.c: Don't #include pwd.h, grp.h and limits.h.
101 (Flist_system_processes): Just call list_system_processes.
102 (Fsystem_process_attributes): Just call system_process_attributes.
103 (procfs_list_system_processes, time_from_jiffies)
104 (ltime_from_jiffies, get_up_time, procfs_ttyname, MAJOR, MINOR)
105 (procfs_get_total_memory, procfs_system_process_attributes): Move ...
106
107 * sysdep.c: ... here. Include pwd.h, grp.h and limits.h.
108 (list_system_processes): Rename from
109 procfs_list_system_processes. Enclose in #ifdef HAVE_PROCFS.
110 Provide a do nothing implementation.
111 (system_process_attributes): Rename from
112 procfs_list_system_processes.
113 (ltime_from_jiffies, get_up_time, procfs_ttyname, MAJOR, MINOR)
114 (procfs_get_total_memory): Enclose in #ifdef GNU_LINUX.
115
116 * w32.c (list_system_processes): Rename from
117 w32_list_system_processes.
118 (system_process_attributes): Rename from
119 w32_system_process_attributes.
120
121 * s/gnu-linux.h (LISTPROC, PROCATTR): Remove.
122
123 * process.h (w32_list_system_processes)
124 (w32_system_process_attributes): Remove.
125 (list_system_processes, system_process_attributes): New
126 prototypes.
127
6a705b23
KH
1282008-12-19 Kenichi Handa <handa@m17n.org>
129
130 * xfont.c (xfont_decode_coding_xlfd): New function.
131 (xfont_encode_coding_xlfd): New function.
132 (xfont_list_pattern): Decode XLFD by iso-8859-1.
133 (xfont_list): Decode and encode XLFD by iso-8859-1.
134 (xfont_match): Likewise.
135 (xfont_list_family): Likewise.
136 (xfont_open): Likewise.
137
138 * ftfont.c (ftfont_open): Genarate a multibyte string if given
139 names are utf-8.
140
141 * xftfont.c (xftfont_open): Genarate a multibyte string if given
142 names are utf-8.
143
5a130941
JD
1442008-12-18 Jan Djärv <jan.h.d@swipnet.se>
145
146 * gtkutil.c (xg_frame_resized): Remove check if rows/columns have
147 changed.
bfd20325
JD
148 (xg_tool_bar_proxy_callback): Put focus on the frame after we have
149 clicked on a detached tool bar button.
5a130941 150
fd95644b
DN
1512008-12-18 Dan Nicolaescu <dann@ics.uci.edu>
152
153 * emacs.c (main): Print and error and exit when no data is read
154 from the pipe.
155
e6eee6ae
JR
1562008-12-17 Jason Rumney <jasonr@gnu.org>
157
158 * w32font.c (w32font_has_char): Always return -1.
159
a35dd56b
KH
1602008-12-16 Kenichi Handa <handa@m17n.org>
161
162 * font.c (font_open_entity): Fix previous change.
163
0e3635c2
DN
1642008-12-16 Dan Nicolaescu <dann@ics.uci.edu>
165
166 * process.c: Include <limits.h>.
167
d4835507 1682008-12-16 Chetan Pandya <pandyacus@sbcglobal.net> (tiny change)
b5356c39
CY
169
170 * font.c (font_update_drivers): Fix mistake in reconstructing the
171 driver list.
172
1732008-12-16 Chong Yidong <cyd@stupidchicken.com>
174
175 * font.c (font_clear_cache): Fix format of font cache data.
176
e2cbc401
CY
1772008-12-15 Chong Yidong <cyd@stupidchicken.com>
178
179 * xftfont.c (xftfont_open): Free Xft font pattern if
180 XftFontOpenPattern fails.
181
182 * xterm.c (x_free_frame_resources): Remove extraneous call to
183 free_frame_faces.
184
b131d535
CY
1852008-12-13 Chong Yidong <cyd@stupidchicken.com>
186
187 * xterm.c (x_delete_display): Move xim_close_dpy call to
188 x_delete_terminal.
189 (x_delete_terminal): Call xim_close_dpy.
190
e6df5336
JR
1912008-12-13 Jason Rumney <jasonr@gnu.org>
192
193 * w32font.c (intern_font_name): New function.
194 (add_font_name_to_list, w32_enumfont_pattern_entity): Use it.
195 (w32font_open_internal, Fx_select_font): Decode font name.
196 (fill_in_logfont, list_all_matching_fonts): Encode font name.
197
198 * w32font.h (intern_font_name): Declare new function.
199
200 * w32uniscribe.c (add_opentype_font_name_to_list):
201 Use intern_font_name.
202
20d68145
CY
2032008-12-13 Chong Yidong <cyd@stupidchicken.com>
204
9f2554de
CY
205 * frame.c (Fdelete_frame): Call free_font_driver_list.
206
3d9bec9a
CY
207 * font.c (free_font_driver_list): Implement missing function.
208
20d68145
CY
209 * w32term.c (w32_term_init): Don't initialize the image cache
210 here; it will be done in init_frame_faces.
211
212 * xterm.h (struct xim_inst_t): Definition moved from xterm.c.
213 (struct x_display_info): Remove unused member null_pixel. New
214 member xim_callback_data.
215
216 * xterm.c (struct xim_inst_t): Definition moved to xterm.h.
217 (xim_initialize): Save pointer to callback function data.
218 (xim_close_dpy): Free callback function data. Call XCloseIM,
219 reverting 2008-11-04 change by David Smith.
220 (x_term_init): Don't initialize the image cache here; it will be
221 done in init_frame_faces. Remove ancient "null_pixel" cruft.
222 (x_delete_display): Free x_dnd_atoms member.
223
96f9306b
KH
2242008-12-13 Kenichi Handa <handa@m17n.org>
225
226 * font.c (font_rescale_ratio): Moved from xfaces.c. Argument
227 type changed. Handle a font-spec too.
228 (font_score): Check Vface_font_rescale_alist.
229 (font_open_entity): Likewise.
230
231 * xfaces.c (font_rescale_ratio): Moved to font.c.
232
8d5b4964
CY
2332008-12-13 Chong Yidong <cyd@stupidchicken.com>
234
235 * xfns.c (Fx_wm_set_size_hint): Check if the frame is an X frame.
236
e6df5336
JR
2372008-12-12 Jason Rumney <jasonr@gnu.org>
238
239 * w32fns.c (x_display_info_for_name, Fx_open_connection): Set
240 Vwindow_system_version to the real w32 major version.
241
97c6058a
DN
2422008-12-12 Dan Nicolaescu <dann@ics.uci.edu>
243
244 * term.c (init_tty): Move setting the terminal name before the
245 potential user: maybe_fatal.
246
ec4e88d7
CY
2472008-12-11 Chong Yidong <cyd@stupidchicken.com>
248
d4835507
JB
249 * term.c (tty_free_frame_resources): Renamed from delete_tty_output;
250 all callers changed. Call free_frame_faces to free the face cache.
ec4e88d7 251
b4233ec9
JR
2522008-12-11 Jason Rumney <jasonr@gnu.org>
253
8ec71e23 254 * w32font.c (fill_in_logfont): Don't assume symbol script means
85f967f9 255 SYMBOL_CHARSET. (Bug#547)
8ec71e23 256
b4233ec9 257 * w32uniscribe.c (uniscribe_encode_char): Increase glyph buffer
85f967f9 258 size for surrogates. (Bug#1096)
b4233ec9 259
011a0143
JB
2602008-12-11 Juanma Barranquero <lekktu@gmail.com>
261
262 * w32proc.c (Fw32_get_locale_info): Decode long form of locale name.
263
3c309f34
JB
2642008-12-11 Juanma Barranquero <lekktu@gmail.com>
265
266 * process.c (Fsystem_process_attributes, syms_of_process):
267 Fix typo in name of Ssystem_process_attributes.
268 Reported by Ulrich Mueller <ulm@kph.uni-mainz.de>.
269
fedc6ab5
JB
2702008-12-11 Juanma Barranquero <lekktu@gmail.com>
271
272 * syntax.c (Fmodify_syntax_entry): Doc fix.
273
ba3de0e8
JB
2742008-12-10 Juanma Barranquero <lekktu@gmail.com>
275
276 * font.c (Ffont_spec): Move usage to end of docstring.
277
174f1c74
JR
2782008-12-10 Jason Rumney <jasonr@gnu.org>
279
280 * w32font.c (Qcham): New symbol.
281 (font_supported_scripts): Add cham, and comments for other new
282 scripts in bitfield from OpenType spec.
9d32f818
JR
283 (add_font_entity_to_list): Limit unicode-sip fonts to those that
284 contain characters beyond the bmp.
174f1c74 285
7b649478
KH
2862008-12-10 Kenichi Handa <handa@m17n.org>
287
288 * ftfont.c (fc_charset_table): Add "unicode-sip".
2ae37cf0 289 (ftfont_spec_pattern): Lookup fc_charset_table for the registry
7b649478
KH
290 Qunicode_sip.
291
2133e2d1
JB
2922008-12-10 Juanma Barranquero <lekktu@gmail.com>
293
294 * coding.c (QCdefault_char): Rename from QCdefalut_char.
295 (Fcoding_system_put): Use QCdefault_char.
296 (syms_of_coding): Set QCdefault_char, not QCdefalut_char.
297
9af886ee
CY
2982008-12-09 Chong Yidong <cyd@stupidchicken.com>
299
74d819eb
CY
300 * xftfont.c (syms_of_xftfont): Fix typo.
301
4ccfa1c0 302 * buffer.c (Fbuffer_swap_text): Signal error if swapping a dead buffer.
9af886ee 303
7c19d3ae
DN
3042008-12-08 Dan Nicolaescu <dann@ics.uci.edu>
305
306 * emacs.c (main): Close daemon_pipe on exec.
307
567826bb
CY
3082008-12-08 Chong Yidong <cyd@stupidchicken.com>
309
310 * termchar.h (struct tty): New members termcap_term_buffer and
311 termcap_strings_buffer.
312
313 * term.c (encode_terminal_code): Free any previous memory blocks
4ccfa1c0 314 before calling xmalloc for encode_terminal_src or encode_terminal_dst.
567826bb
CY
315 (maybe_fatal): Buffer argument deleted. Don't free buffer here.
316 All callers changed.
317 (init_tty): Store termcap data and string buffers in new struct
318 tty members termcap_term_buffer and termcap_strings_buffer.
319 (delete_tty): Free them.
4ccfa1c0 320 (syms_of_term): Initialize encode_terminal_src and encode_terminal_dst.
567826bb 321
aa96c42b
SZ
3222008-12-07 Seiji Zenitani <zenitani@mac.com>
323
324 * nsfns.m (ns_set_background_color): Remove code duplication.
4ccfa1c0 325 It was a substitute for face-transparency on OS X 10.3.
aa96c42b 326
b7e1d896
CY
3272008-12-06 Chong Yidong <cyd@stupidchicken.com>
328
329 * coding.c (make_conversion_work_buffer): Disable buffer
330 modification hooks in the work buffer.
331
b5ec91a5
EZ
3322008-12-05 Eli Zaretskii <eliz@gnu.org>
333
334 * process.c (procfs_system_process_attributes): If `nread' has a
335 negative value, assign zero to it.
336
a5d2a52b
CY
3372008-12-05 Chong Yidong <cyd@stupidchicken.com>
338
68c5540b 339 * eval.c (Vdebug_on_error): Doc fix.
a5d2a52b 340
7bf1bb21
KH
3412008-12-05 Kenichi Handa <handa@m17n.org>
342
343 * ftfont.c (ftfont_shape_by_flt): Use "combining" flt if the
344 second character is a combining character.
345
2fdc7d00
EZ
3462008-12-05 Eli Zaretskii <eliz@gnu.org>
347
348 * process.c (procfs_system_process_attributes): Don't use cmd,
349 cmdsize, and q without initializing them first.
350
bf6bfba8
JR
3512008-12-04 Jason Rumney <jasonr@gnu.org>
352
353 * w32font.c (w32font_draw): Initialize orig_clip before getting
354 it, and delete it when finished.
355
a3b1a468
DN
3562008-12-04 Dan Nicolaescu <dann@ics.uci.edu>
357
358 * keyboard.c (kbd_buffer_get_event): Follow the non-interactive
359 case when running as a daemon before detaching.
360
8b8be8eb
JB
3612008-12-03 Juanma Barranquero <lekktu@gmail.com>
362
805f2638 363 * w32.c (init_environment): Don't unload library shell32.dll.
8b8be8eb 364
b1bde622
KH
3652008-12-03 Kenichi Handa <handa@m17n.org>
366
e500c47d
KH
367 * font.c (font_at): Set `multibyte' at first.
368
ca516334
KH
369 * coding.c (decode_coding_charset): Check type of an element of
370 vector VALIDS.
7bf1bb21 371 (encode_coding_emacs_mule): Be sure to set `code'.
ca516334 372
4ccfa1c0 373 * fontset.c (face_for_char): Handle invalid charset property correctly.
b1bde622
KH
374 (font_for_char): Likewise.
375
1e5ecd37
CY
3762008-12-03 Chong Yidong <cyd@stupidchicken.com>
377
d5b01609 378 * font.c (Fopen_font): Compute pixel size correctly.
ba207571
CY
379 (font_update_lface): Handle fonts with corrupted size specs,
380 i.e. non-int and non-float.
d5b01609 381
11e3a6e4 382 * ftfont.c (ftfont_match): Initialize entity variable.
9a48c8cb 383 (ftfont_resolve_generic_family): Avoid using uninitialized var.
8adb3a3b 384 (ftfont_list_family): Initialize list var earlier.
11e3a6e4 385
ab06788b
CY
386 * xselect.c (Fx_get_cut_buffer_internal): Fix memory leak.
387
1e5ecd37 388 * xterm.c (x_draw_glyph_string): Fall back on
0cff82ab 389 underline_minimum_offset for underline position.
1e5ecd37 390
63c125ab
DN
3912008-12-03 Dan Nicolaescu <dann@ics.uci.edu>
392
393 * keyboard.c (read_char_help_form_unwind): Specify the type for ARG.
394
395 * character.c (c_string_width): Specify the type for LEN.
396
3a8406e1
KH
3972008-12-03 Kenichi Handa <handa@m17n.org>
398
4ccfa1c0 399 * coding.c (decode_coding_utf_16): Initialize consumed_chars_base to 0.
453b38f0 400 (decode_coding_utf_8): Likewise.
4ccfa1c0 401 (detect_coding_system): Initialize utf_16_le_eol to -1, val to Qnil.
4533845d 402 (produce_chars): Initialize consumed_chars to 0.
3a8406e1 403
651df7d9
CY
4042008-12-02 Chong Yidong <cyd@stupidchicken.com>
405
406 * keyboard.c (make_lispy_position): Only use PT if the selected
407 window is current.
408
1f625c6c
AS
4092008-12-02 Andreas Schwab <schwab@suse.de>
410
f7741ce9
AS
411 * font.c (font_unparse_fcname): Fix use of uninitialized variable.
412
1f625c6c
AS
413 * doprnt.c (doprnt1): Fix size of charbuf.
414
92bc2678
CY
4152008-12-02 Chong Yidong <cyd@stupidchicken.com>
416
417 * keyboard.c (timer_check): Revert last change.
418
93b9e8cc
JB
4192008-12-02 Juanma Barranquero <lekktu@gmail.com>
420
421 * makefile.w32-in ($(BLD)/w32console.$(O)): Fix silly, silly typo.
422
fd7a37d5
JB
4232008-12-01 Juanma Barranquero <lekktu@gmail.com>
424
425 * makefile.w32-in: Update dependencies.
426 (CONFIG_H): Add $(EMACS_ROOT)/nt/inc/sys/time.h.
427
c115043b
AS
4282008-12-01 Andreas Schwab <schwab@suse.de>
429
430 * font.c (register_font_driver): Use xmalloc.
431 (font_put_frame_data): Likewise.
432
f5668d2a
CY
4332008-12-01 Chong Yidong <cyd@stupidchicken.com>
434
860d96be
CY
435 * xfaces.c (realize_x_face): Make abort condition clearer.
436
f5668d2a
CY
437 * gtkutil.c (update_frame_tool_bar): Initialize variable.
438
379c17e7
CY
4392008-11-30 Chong Yidong <cyd@stupidchicken.com>
440
441 * keyboard.c (timer_check): After a timer runs, ensure that the
442 selected window's buffer is current.
443
35f36d65
JB
4442008-11-30 Juanma Barranquero <lekktu@gmail.com>
445
f952c61c
JB
446 * makefile.w32-in ($(BLD)/abbrev.$(O)): Remove.
447 It was accidentally restored by the Unicode merge.
448
35f36d65
JB
449 * w32proc.c (Fw32_get_locale_info): Fix typo in docstring.
450
b23077df
JB
4512008-11-29 Juanma Barranquero <lekktu@gmail.com>
452
453 * w32proc.c: Include "coding.h".
454 (Fw32_short_file_name): Encode filename passed to Windows API.
455 (Fw32_long_file_name): Encode filename passed to Windows API and
456 decode back the result. (Bug#1433)
457
b8ebe9dd
KH
4582008-11-29 Kenichi Handa <handa@m17n.org>
459
8cc53f96
KH
460 * charset.h (CHAR_CHARSET_P): Check if the encoder is loaded or
461 not before accessing it.
462
b8ebe9dd
KH
463 * charset.c (Fdefine_charset_internal): After calculating
464 min_char, max_char, and fastmap, copy the charset structure again.
465 (encode_char): Fix the previous change.
466
59bc82c0
SZ
4672008-11-28 Seiji Zenitani <zenitani@mac.com>
468
469 * frame.c (x_set_alpha) [NS_IMPL_COCOA]: Call x_set_frame_alpha.
470
471 * nsfns.m (ns_frame_parm_handlers): Set alpha handler.
472
473 * nsterm.m (x_set_frame_alpha): New function.
474
32247e3d
EZ
4752008-11-27 Eli Zaretskii <eliz@gnu.org>
476
477 * xfaces.c (Fx_font_family_list, syms_of_xfaces): Fix last change.
478
b003e5ff
JB
4792008-11-27 Juanma Barranquero <lekktu@gmail.com>
480
481 * w32font.c (add_font_entity_to_list): Pass the right LOGFONT
482 pointer to check_face_name.
483
708550f5
KH
4842008-11-27 Kenichi Handa <handa@m17n.org>
485
486 * category.h (SET_CATEGORY_SET): Call set_category_set.
487 (set_category_set): Extern it.
488
489 * category.c (hash_get_category_set): New function.
490 (Fmodify_category_entry): Adjusted for the change of
491 char_table_ref_and_range. Call hash_get_category_set to get a
492 category set to store in the table.
493
494 * character.h (MAYBE_UNIFY_CHAR): Call maybe_unify_char instead of
495 Funify_charset.
496
2ae37cf0 497 * charset.h (enum charset_method): Delete CHARSET_METHOD_MAP_DEFERRED.
708550f5
KH
498 (DECODE_CHAR): Check if the decoder vector is ready.
499 (ENCODE_CHAR): Check if the encoder char-table is ready.
500 (maybe_unify_char): Extern it.
501
502 * charset.c (Vchar_unified_charset_table): Delete it.
503 (inhibit_load_charset_map): New variable.
504 (temp_charset_work): New variable.
505 (SET_TEMP_CHARSET_WORK_ENCODER, GET_TEMP_CHARSET_WORK_ENCODER)
506 (SET_TEMP_CHARSET_WORK_DECODER, GET_TEMP_CHARSET_WORK_DECODER):
507 New macros.
508 (load_charset_map): Meaning of control_flag changed. If
509 inhibit_load_charset_map is nonzero, setup a table in
510 temp_charset_work.
511 (load_charset): New argument control_flag.
512 (map_charset_for_dump): New function.
513 (map_charset_chars): If inhibit_load_charset_map is nonzero, use
514 map_charset_for_dump.
515 (Fdefine_charset_internal): If the charset method is MAP, load
516 mapping tables by calling load_charset.
517 (Funify_charset): Don't load a mapping table but directly set
518 Vchar_unify_table.
519 (maybe_unify_char): New function.
520 (decode_char): Don't handle the deleted method MAP_DEFERRED.
521 Handle the case of inhibit_load_charset_map being nonzero.
522 (encode_char): Don't handle the deleted method MAP_DEFERRED.
523 Handle the case of inhibit_load_charset_map being nonzero.
524 (Fclear_charset_maps): Just free temp_charset_work.
525 (syms_of_charset): Make `inhibit-load-charset-map' a Lisp
526 variable.
527
528 * chartab.c (sub_char_table_ref_and_range): Adjusted for the
529 change of char_table_ref_and_range.
530 (char_table_ref_and_range): Change the meaning of argument FROM
531 and TO. Now the caller must provide initial values for *FROM
532 and *TO.
533
534 * fontset.c (fontset_add): Adjusted for the change of
535 char_table_ref_and_range.
536 (fontset_get_font_group): Likewise.
537 (Ffontset_info): Likewise.
538
539 * keymap.c (describe_vector): Adjusted for the change of
540 char_table_ref_and_range. For char-table, put boundary between
541 non-ASCII and 8-bit characters.
542
543 * print.c (print_object): For bool-vector, delete unnecessary
544 check of ASCII_BYTE_P.
545
9196133b
JR
5462008-11-26 Jason Rumney <jasonr@gnu.org>
547
548 * w32font.c (w32font_open_internal): Don't include external
85f967f9 549 leading in font height. (Bug#879)
9196133b 550
9f688acf
GM
5512008-11-26 Glenn Morris <rgm@gnu.org>
552
553 * xfaces.c (Fx_font_family_list): Replace lisp/term/pc-win.el
554 redefinition with ifdef. (Bug#1383)
555
90d19aff
AR
5562008-11-24 Adrian Robert <Adrian.B.Robert@gmail.com>
557
558 * nsterm.m (ns_get_color): Handle long hex strings (fixes bug #1044).
559
4ccfa1c0 5602008-11-24 Wolfgang Lux <wolfgang.lux@gmail.com> (tiny change)
90d19aff
AR
561
562 * nsterm.m (-otherMouseDown:, -otherMouseUp:, -otherMouseDragged):
563 New EmacsView methods.
564 (EV_UDMODIFIERS, EV_BUTTON): Add OtherMouse constants.
565 Fixes bug #1048,1357,1414.
566
5672008-11-24 Adrian Robert <Adrian.B.Robert@gmail.com>
568
569 Fix bug #1362.
570 * image.c (x_clear_image_1): Do not free background under HAVE_NS, it
571 is not an indexed color.
572 * nsterm.m (free_indexed_color): Add argument checking.
573 * nsfns.m: Move config.h to before system includes (advised by Dan N.).
574
e7d5ecb3
CY
5752008-11-24 Chong Yidong <cyd@stupidchicken.com>
576
577 * minibuf.c (Fcompleting_read, Vminibuffer_completion_confirm):
578 Document confirm-after-completion value for
579 minibuffer-completion-confirm.
580
c285743c
JR
5812008-11-24 Jason Rumney <jasonr@gnu.org>
582
583 * w32font.c (check_face_name): Use xstrcasecmp. Avoid compiler
584 warning.
585
b0857706
JR
5862008-11-23 Jason Rumney <jasonr@gnu.org>
587
588 * w32uniscribe.c (uniscribe_encode_char): Ensure context is
589 restored before returning.
590
591 * w32font.c (check_face_name): New function.
592 (add_font_entity_to_list): Use it to filter out common substituted
85f967f9 593 fonts. (Bug#642)
b0857706 594
ee50ff07
MR
5952008-11-22 Martin Rudalics <rudalics@gmx.at>
596
597 * buffer.c (Fswitch_to_buffer): Reword and mention new option
598 confirm-nonexistent-file-or-buffer in doc-string.
599
b8ff72fa
SM
6002008-11-21 Stefan Monnier <monnier@iro.umontreal.ca>
601
602 * buffer.c (Fbuffer_swap_text): Remove redundant marker manipulation.
603 Fix copy/paste typo. Add checks.
604
cee53ed4
KH
6052008-11-21 Kenichi Handa <handa@m17n.org>
606
607 * coding.c (detect_coding_iso_2022): Reject invalid composition
608 sequence.
609 (DECODE_COMPOSITION_START): If the current source is the last
610 block, and the current composition doesn't end, regard this
611 sequence as invalid.
612 (decode_coding_iso_2022): Handle invalid composition sequence.
613
f6ef1e65
MR
6142008-11-20 Martin Rudalics <rudalics@gmx.at>
615
616 * window.c (coordinates_in_window): Don't return
617 ON_VERTICAL_BORDER for the rightmost position of a mode/header
618 line when the window is not the rightmost one. (Bug#1372)
619
e08b1705
MR
6202008-11-16 Ben North <ben@redfrontdoor.org> (tiny change)
621
622 * buffer.c (syms_of_buffer): Fix doc-string of cursor-type.
623
ad98e89f
EZ
6242008-11-15 Eli Zaretskii <eliz@gnu.org>
625
626 * msdos.c (run_msdos_command): Don't call dos_ttcooked, dos_ttraw,
627 and bright_bg if noninteractive is non-zero.
628
fb098a4b
CY
6292008-11-15 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
630
631 * xterm.c (x_draw_glyph_string): For stretch glyphs, don't call
632 x_draw_glyph_string_background.
633
634 * w32term.c (x_draw_glyph_string): Likewise.
635
ce952b6e
CY
6362008-11-15 Chong Yidong <cyd@stupidchicken.com>
637
638 * xterm.c (x_draw_glyph_string): Stop drawing the background of
639 the next glyph string once past the overhang width.
640
641 * nsterm.m (ns_draw_glyph_string): Likewise.
642
643 * w32term.c (x_draw_glyph_string): Likewise.
644
26ea7079
CY
6452008-11-14 Fabrice Popineau <fabrice.popineau@supelec.fr> (tiny change)
646
647 * fileio.c (Finsert_file_contents): Decrement specpdl_ptr to avoid
648 double file close.
649
1c33c906
MR
6502008-11-14 Martin Rudalics <rudalics@gmx.at>
651
652 * window.c (window_loop): In DELETE_BUFFER_WINDOWS case, reset
653 dedicated status of window before attempting to display another
654 buffer in it.
655
8fc29035
JB
6562008-11-14 Juanma Barranquero <lekktu@gmail.com>
657
658 * msdos.c (Fmsdos_long_file_names):
659 (syms_of_msdos) <dos-unsupported-char-glyph>:
660 * dosfns.c (Fint86): Fix typos in docstrings.
661
55fb4286
EZ
6622008-11-14 Eli Zaretskii <eliz@gnu.org>
663
664 * makefile.w32-in (OBJ1, WIN32OBJ): Fix whitespace.
665
3fda0315
KY
6662008-11-14 Katsumi Yamaoka <yamaoka@jpl.org>
667
668 * puresize.h (BASE_PURESIZE): Increase to 1260000.
669
7e849c17
CY
6702008-11-12 Michal Nazarewicz <mina86@tlen.pl> (tiny change)
671
672 * frame.c (x_set_alpha): Set alpha to -1 if nil given.
673
674 * frame.h: Negative alpha means "don't touch".
675
676 * w32term.c (x_set_frame_alpha): Do nothing if alpha is negative.
677
678 * xterm.c (x_set_frame_alpha): Do nothing if alpha is negative.
679
b9fd67bd
DN
6802008-11-12 Dan Nicolaescu <dann@ics.uci.edu>
681
682 * hftctl.c:
683 * chpdef.h:
684 * acldef.h: Remove files used only for systems no longer supported.
685
686 * Makefile.in: Fix .o alphabetical ordering.
687 (hftctl.o): Remove dependency, file removed.
688 (keymap.o, print.o): Depend on charset.h.
689
d5998e03
KH
6902008-11-10 Kenichi Handa <handa@m17n.org>
691
2ae37cf0 692 * character.c (Fget_byte): Fix and make it faster for unibyte target.
d5998e03 693
be70e183
CY
6942008-11-08 Chong Yidong <cyd@stupidchicken.com>
695
696 * dired.c (file_name_completion): If completion_ignore_case is
697 enabled, ignore case when checking completion-regexp-list.
698
7cf94eac
EZ
6992008-11-08 Eli Zaretskii <eliz@gnu.org>
700
701 * vm-limit.c (get_lim_data): Fix last change.
702
ee107a89
KH
7032008-11-08 Kenichi Handa <handa@m17n.org>
704
705 * character.c (Fget_byte): New function.
706 (syms_of_character): Defsubr Fget_byte.
707
5fd15622
CY
7082008-11-07 Chong Yidong <cyd@stupidchicken.com>
709
710 * xdisp.c (try_window_reusing_current_matrix): Ensure that window
711 cursor position is valid after scrolling.
712
13d62fad
JB
7132008-11-06 Juanma Barranquero <lekktu@gmail.com>
714
715 * fns.c (Frandom): Rename arg N to LIMIT to match the docs; doc fix.
716
a1dd2936
GM
7172008-11-06 Glenn Morris <rgm@gnu.org>
718
719 * xterm.c (handle_one_xevent): Don't let popup menus cause
720 mouse-autoselect-window related window switching. (Bug#1261)
721
860cd236
CY
7222008-11-04 David Smith <davidsmith@acm.org> (tiny change)
723
724 * xterm.c (xim_close_dpy): Avoid double-free on X11R6 XIM.
725
653a3150
AS
7262008-11-04 Andreas Schwab <schwab@suse.de>
727
728 * xfns.c (Fx_wm_set_size_hint): Add missing return value.
729
870f5cac
CY
7302008-11-03 Chong Yidong <cyd@stupidchicken.com>
731
732 * xfns.c (Fx_wm_set_size_hint): New function.
733
1e02f3cb
MR
7342008-11-03 Martin Rudalics <rudalics@gmx.at>
735
736 * textprop.c (Fprevious_single_char_property_change): Return 0
737 when there's no change in a string. (Bug#1301)
738
e630dfc6
MR
7392008-11-02 Martin Rudalics <rudalics@gmx.at>
740
741 * frame.c (do_switch_frame): New argument NORECORD passed to
742 Fselect_window.
743 (Fselect_frame): New argument NORECORD passed to
744 do_switch_frame.
745 (Fset_frame_selected_window): New argument NORECORD passed to
746 Fselect_frame.
747 (Fhandle_switch_frame, Fdelete_frame): Handle NORECORD argument
748 in call of do_switch_frame.
749 (Fset_mouse_position, Fset_mouse_pixel_position, Fraise_frame):
750 Handle NORECORD argument in call of Fselect_frame.
751 * lisp.h (do_switch_frame, Fselect_frame)
752 (Fset_frame_selected_window): Adjust declarations.
753 * window.c (select_frame_norecord): New function.
754 (run_window_configuration_change_hook): Use it and call
755 Fselect_frame with NORECORD set.
756 (Fselect_window): Pass NORECORD to Fselect_frame.
757 (Fset_window_configuration): Handle NORECORD argument in call of
758 do_switch_frame.
759 * minibuf.c (choose_minibuf_frame): Handle NORECORD in call of
760 Fset_frame_selected_window.
761 * keyboard.c (command_loop_1): Handle NORECORD in call of
762 Fselect_frame (currently ifdefd).
763
9020b223
GM
7642008-11-02 Ulrich Mueller <ulm@kph.uni-mainz.de>
765
766 * emacs.c (USAGE2): Untabify.
767
793ffee8
SM
7682008-11-01 Stefan Monnier <monnier@iro.umontreal.ca>
769
770 * composite.c (fill_gstring_header): Fix copy/paste typo.
771
ab6d1131
MR
7722008-10-31 Martin Rudalics <rudalics@gmx.at>
773
774 * window.c (Fnext_window, Fprevious_window): Rewrite doc-string.
775 (Fother_window): Rename argument and rewrite doc-string.
776 (select_window_norecord): Fix return value. (Bug#1276)
777
601a9cf1
JB
7782008-10-30 Juanma Barranquero <lekktu@gmail.com>
779
780 * w32fns.c (x_create_tip_frame): Prevent default foreground color for
781 new frames overriding foreground for tooltips. Based on similar patch
782 from Martin Rudalics <rudalics@gmx.at>. (Bug#1032)
783
813b0652
CY
7842008-10-29 Chong Yidong <cyd@stupidchicken.com>
785
786 * emacs.c (Fdaemon_initialized): Initialize nfd.
787
4414f58f
MR
7882008-10-29 Martin Rudalics <rudalics@gmx.at>
789
790 * window.c (Fwindow_height, Fdelete_window, set_window_buffer)
791 (Fwindow_text_height): Clarify doc-strings.
792 * xdisp.c (syms_of_xdisp): Mention set-window-buffer in
793 doc-string of window-scroll-functions.
794
ecdcaa09
RS
7952008-10-28 Reiner Steib <Reiner.Steib@gmx.de>
796
797 * category.c (syms_of_category): Fix typo in docstring.
798
23fe745a
JB
7992008-10-28 Juanma Barranquero <lekktu@gmail.com>
800
801 * window.c (Fwindowp, Fwindow_live_p, Fwindow_minibuffer_p)
802 (Fcoordinates_in_window_p, Fscroll_left, Fscroll_right):
803 Fix typos in docstrings.
804
ff808935
DN
8052008-10-28 Dan Nicolaescu <dann@ics.uci.edu>
806
807 * emacs.c (daemon_pipe): Make non-static.
808 (IS_DAEMON): Move definition ...
809 * lisp.h (IS_DAEMON): ... here.
810 (daemon_pipe): Declare.
811 (is_daemon): Remove.
812 * dispnew.c (init_display): Use IS_DAEMON.
813
fc012771
SM
8142008-10-28 Stefan Monnier <monnier@iro.umontreal.ca>
815
816 * xdisp.c (pos_visible_p, redisplay_internal, message3_nolog)
817 (message2_nolog): Check FRAME_INITIAL_P instead of noninteractively.
818
819 * emacs.c (is_daemon): Remove.
820 (main): Don't set is_daemon.
821 (IS_DAEMON): New macro.
822 (Fdaemonp, Fdaemon_initialized): Use it.
601a9cf1 823 (Fdaemon_initialized): Write a char into the pipe to make sure the
fc012771
SM
824 parent exits.
825 (syms_of_emacs): Explicitly initialize daemon_pipe[1].
826
d8bdbe6f
CY
8272008-10-27 Chong Yidong <cyd@stupidchicken.com>
828
d1a072bf
CY
829 * nsterm.m (ns_draw_window_cursor): When hbar cursor is on
830 over-sized glyph, draw it with the default glyph width.
831
e2e325aa
CY
832 * w32term.c (x_draw_bar_cursor): When hbar cursor is on over-sized
833 glyph, draw it with the default glyph width.
834
835 * xterm.c (x_draw_bar_cursor): When hbar cursor is on over-sized
836 glyph, draw it with the default glyph width.
837
d8bdbe6f
CY
838 * xdisp.c (try_scrolling): When computing the distance from the
839 scroll margin to PT, try moving some distance past the window
840 bottom before giving up.
841
7bfac547
MR
8422008-10-27 Martin Rudalics <rudalics@gmx.at>
843
844 * window.c (Fwindow_dedicated_p, Fset_window_dedicated_p)
845 (Fset_window_buffer): Explain in doc-string that a window can be
846 "strongly" dedicated to its buffer.
847
4ff029f6
DN
8482008-10-27 Dan Nicolaescu <dann@ics.uci.edu>
849
850 * emacs.c (daemon_name): New variable.
851 (main): Deal with --daemon=SERVER_NAME.
852 (Fdaemonp): Return a name if one was passed to --daemon.
853
5790ef40
DN
8542008-10-26 Romain Francoise <romain@orebokech.com>
855
f9bd0df9 856 * emacs.c (daemon_pipe): New variable.
5790ef40
DN
857 (main): Create a pipe before forking, make the parent exit only after
858 the child has closed its end of the pipe. Move closing the
859 descriptors ...
860 (Fdaemon_initialized): ... here. New function.
861
f5385255
SM
8622008-10-26 Stefan Monnier <monnier@iro.umontreal.ca>
863
4d632321
SM
864 * chartab.c (Foptimize_char_table): Make sure `ascii' doesn't point to
865 the previous unoptimized table.
866
f5385255
SM
867 * window.c (Fset_window_buffer): Undo 2008-10-18 change to re-instate
868 the distinction between non-nil and non-t value of `dedicated'.
869
6c56a0f3
CY
8702008-10-25 Chong Yidong <cyd@stupidchicken.com>
871
872 * keyboard.c (read_char_minibuf_menu_prompt): Ensure that
f5385255 873 read_char_minibuf_menu_text is large enough to hold the menu string.
6c56a0f3 874
fec89261
MR
8752008-10-25 Martin Rudalics <rudalics@gmx.at>
876
877 * window.c (Fget_buffer_window, Fdelete_windows_on)
878 (Freplace_buffer_in_windows): Make buffer argument optional and
879 rename to buffer_or_name.
880
34fcddd0
CY
8812008-10-24 Chong Yidong <cyd@stupidchicken.com>
882
f5385255
SM
883 * xdisp.c (handle_single_display_spec, handle_display_prop):
884 Undo 2005-05-16 change.
34fcddd0
CY
885 (handle_stop): Pop iterator if it's loaded with an empty string.
886 (get_overlay_strings_1): Don't save iterator if it's loaded with
887 an empty string (bug#1201).
888
064766f2
KH
8892008-10-24 Kenichi Handa <handa@m17n.org>
890
891 * ftfont.c (ftfont_otf_features): Fix previous change.
892 (ftfont_otf_capability): Check FeatureList.FeatureCount before
893 calling ftfont_otf_features.
894
f9bd0df9 8952008-10-24 Kenichi Handa <handa@m17n.org>
064766f2
KH
896
897 * font.c (font_match_p): Fix for the case that a vector of
898 characters is in script-representative-chars.
899
1dae9197
MA
9002008-10-24 Michael Albinus <michael.albinus@gmx.de>
901
902 * dbusbind.c (xd_in_read_queued_messages): New variable.
f5385255 903 (XD_SIGNAL1, XD_SIGNAL2, XD_SIGNAL3): New macros. Throw Qdbus_error.
1dae9197
MA
904 (xd_read_queued_messages): Catch Qdbus_error from the macros.
905 (all): Replace xsignal1, xsignal2, xsignal3 by the respective
906 macro. (Bug#1186).
907
f9bd0df9 9082008-10-23 Ali Bahrami <ali_gnu@emvision.com> (tiny change)
9b3362b8
DN
909
910 * s/sol2-10.h: New file.
911
878a4584
JB
9122008-10-23 Juanma Barranquero <lekktu@gmail.com>
913
914 * xdisp.c (fill_glyph_string): Fix typo in source (though the
915 poor beast has survived 9+ years and the jump from xterm.c!).
916
cd265ca6
MR
9172008-10-23 Martin Rudalics <rudalics@gmx.at>
918
919 * buffer.c (Fget_buffer_create): Rename arg to buffer_or_name.
920 Reword doc-string.
f5385255 921 (Fbury_buffer): In doc-string say what happens to the buffer's window.
cd265ca6 922
472a4dc9
JB
9232008-10-23 Juanma Barranquero <lekktu@gmail.com>
924
925 * character.c (syms_of_character) <script-representative-chars>:
926 <unicode-category-table>: Doc fixes.
927
159bd5a2
NF
9282008-10-23 Noah Friedman <friedman@splode.com>
929
930 * coding.c (make_conversion_work_buffer): Check that
931 Vcode_conversion_reused_workbuf is a live buffer, otherwise call
932 Fget_buffer_create.
933
49f9c344
KH
9342008-10-23 Kenichi Handa <handa@m17n.org>
935
936 * font.c (font_add_log): Check the values of extra properties.
937
12bb3111
MR
9382008-10-22 Martin Rudalics <rudalics@gmx.at>
939
940 * window.c (Fwindow_dedicated_p, Fset_window_dedicated_p):
941 Reword doc-string.
942 (Fset_window_parameter): Use NILP.
943 (Fscroll_up, Fscroll_down, Fminibuffer_selected_window)
f5385255 944 (Frecenter): Use "selected" instead of "current" window in doc-strings.
12bb3111 945
bbeb4e99
JB
9462008-10-22 Juanma Barranquero <lekktu@gmail.com>
947
948 * xdisp.c (next_element_from_buffer): Remove bogus xassert condition.
949
9502008-10-22 Adrian Robert <Adrian.B.Robert@gmail.com>
cb83c00b
AR
951
952 * nsfns.m (ns_appkit_version): New function.
953 (x-server-version): Use it.
954 (syms_of_nsfns): Define ns-version-string here, not nsterm.m.
955 (x-server-vendor): Don't check_ns().
956
957 * nsterm.m (syms_of_nsterm): Drop ns-version-string.
958
a9b555d3
JB
9592008-10-22 Juanma Barranquero <lekktu@gmail.com>
960
961 * w32fns.c (unwind_create_frame) [!GLYPH_DEBUG]: Fix xassert.
962 Copied from 2005-02-03 change to xfns.c by Kim F. Storm.
963
4626499f
KH
9642008-10-22 Kenichi Handa <handa@m17n.org>
965
e3681952
KH
966 * syntax.c (scan_words): Call word_boundary_p instead of comparing
967 scripts.
968
4626499f
KH
969 * category.c (word_boundary_p): Check scripts instead of charset.
970 Handle nil value in word-separating-categories and
971 word-combining-categories.
972 (syms_of_category): Fix docstrings of word-separating-categories
973 and word-combining-categories.
974
1560f91a
EZ
9752008-10-21 Eli Zaretskii <eliz@gnu.org>
976
977 * coding.c (Fencode_coding_region, Fdecode_coding_region)
978 (Fdecode_coding_string, Fencode_coding_string): Doc fix.
979
f4668441
MR
9802008-10-21 Martin Rudalics <rudalics@gmx.at>
981
982 * buffer.c (Fget_buffer, Fbury_buffer, switch_to_buffer_1):
983 Rename arg "buffer" to "buffer_or_name".
984 (Fkill_buffer): Rename arg "buffer" to "buffer_or_name" and make
985 it optional.
986 (no_switch_window): Remove since the return value is not used.
a9b555d3 987 (Fswitch_to_buffer): Rename arg "buffer" to "buffer_or_name".
f4668441
MR
988 Consider window as dedicated when Fwindow_dedicated_p returns a
989 non-nil value.
990 * lisp.h: Remove prototype for no_switch_window.
991
fd75ddb2
JD
9922008-10-21 Jan Djärv <jan.h.d@swipnet.se>
993
994 * emacs.c (main): Unconditionally set PER_LINUX32 and exec
2ae37cf0 995 temacs when dumping if HAVE_PERSONALITY_LINUX32 is defined.
fd75ddb2 996
07295713
KH
9972008-10-21 Kenichi Handa <handa@m17n.org>
998
999 * coding.c (detect_coding_charset): For iso-8859-* coding systems,
1000 check Vlatin_extra_code_table.
1001
712adc82
EZ
10022008-10-20 Eli Zaretskii <eliz@gnu.org>
1003
1004 * fileio.c (Fset_file_modes): Doc fix.
1005
f549eb0b
MA
10062008-10-19 Michael Albinus <michael.albinus@gmx.de>
1007
1008 * dbusbind.c (XD_OBJECT_TO_DBUS_TYPE): Handle simple type symbols
1009 in arrays.
1010
aac0c6e3
MR
10112008-10-19 Martin Rudalics <rudalics@gmx.at>
1012
1013 * window.c (Fwindow_dedicated_p, Fset_window_dedicated_p):
1014 Mention kill-buffer in doc-string.
1015 (Fset_window_buffer): Reinsert tem check removed in last commit.
1016 (Fenlarge_window, Fshrink_window): Have argument names and
1017 doc-string follow Elisp manual more closely.
1018
10192008-10-18 Eli Zaretskii <eliz@gnu.org>
1020
1021 * fileio.c (Fset_file_modes): Doc fix.
1022
10232008-10-18 Martin Rudalics <rudalics@gmx.at>
1024
1025 * window.c (Fwindow_width, Fset_window_start)
1026 (Fwindow_parameters, Fwindow_parameter, Fset_window_parameter)
f5385255
SM
1027 (Fdelete_windows_on, Freplace_buffer_in_windows):
1028 Make doc-strings follow code and Elisp manual more closely.
aac0c6e3
MR
1029 (Fwindow_dedicated_p): Make window argument optional.
1030 (Fset_window_dedicated_p): Rename argument "arg" to "flag".
1031 (Fset_window_buffer): Respect any non-nil dedicated value for
1032 window. Rename "buffer" argument to "buffer_or_name".
1033
10342008-10-18 Ulrich Mueller <ulm@gentoo.org>
1035
1036 * m/sh3.h: New file, machine description for SuperH.
1037
10382008-10-17 Martin Rudalics <rudalics@gmx.at>
1039
1040 * window.c (Fsplit_window): Rename arg horflag to horizontal.
1041
10422008-10-17 Kenichi Handa <handa@m17n.org>
1043
1044 * ftfont.c (ftfont_otf_features): Fix indexing
1045 gsub_gpos->FeatureList.Feature. Check the validity of indices.
1046
10472008-10-16 Magnus Henoch <mange@freemail.hu>
1048
1049 * dbusbind.c (Fdbus_call_method): Unbreak usage line.
1050 (Fdbus_call_method_asynchronously): Ditto.
1051 This change makes C-h f display the argument list.
1052
10532008-10-16 Chong Yidong <cyd@stupidchicken.com>
1054
1055 * fileio.c (Fexpand_file_name): Doc fix.
1056
1057 * xfaces.c (Finternal_set_lisp_face_attribute): Make null values
1058 of :foreground and :background equivalent to unspecified (20.x
1059 compatibility).
1060
10612008-10-15 Eli Zaretskii <eliz@gnu.org>
1062
1063 * buffer.c (syms_of_buffer): Doc fix.
1064
10652008-10-14 Kenichi Handa <handa@m17n.org>
1066
1067 * font.c (font_clear_prop): When clearing font width, clear the
1068 average width field too.
1069
10702008-10-12 Andreas Schwab <schwab@suse.de>
1071
1072 * ftfont.c (ftfont_shape_by_flt): Make static.
1073 * ftfont.h (ftfont_shape_by_flt): Don't declare.
1074
1075 * font.c: Don't include <m17n-flt.h>.
1076
10772008-10-10 Eli Zaretskii <eliz@gnu.org>
1078
1079 * s/msdos.h (SYSTEM_PURESIZE_EXTRA): Decrease to 10000.
1080
10812008-10-09 Eli Zaretskii <eliz@gnu.org>
1082
1083 * frame.c (make_terminal_frame) [MSDOS]: Remove unused #ifdef'ed
1084 away code.
1085
10862008-10-09 Chong Yidong <cyd@stupidchicken.com>
1087
1088 * dispnew.c (update_text_area): Avoid looping due to large glyph
1089 overhangs (bug#1070).
1090
10912008-10-09 Kenichi Handa <handa@m17n.org>
1092
1093 * fontset.c (face_for_char): If face->fontset is negative, just
1094 return ascii_face.
1095
f5385255
SM
1096 * font.c (font_delete_unmatched): Fix previous change.
1097 Don't reject an entity if DPI and AVGWIDTH of an entity are 0.
aac0c6e3
MR
1098
10992008-10-09 Martin Rudalics <rudalics@gmx.at>
1100
1101 * frame.c (Fraise_frame): On text-only terminals select frame in
1102 order to make it visible. (Bug#1061)
1103
11042008-10-08 Chong Yidong <cyd@stupidchicken.com>
1105
1106 * fontset.c (fontset_find_font): Check frame validity.
1107
11082008-10-07 Chong Yidong <cyd@stupidchicken.com>
1109
a9b555d3 1110 * gtkutil.c (xg_display_open): Reset default display if none exists.
aac0c6e3
MR
1111 (xg_display_close): Allow Emacs to close all displays (bug#985).
1112
11132008-10-06 Andreas Schwab <schwab@suse.de>
1114
f5385255 1115 * sysdep.c (sys_signal): Always set SA_RESTART when noninteractively.
aac0c6e3
MR
1116
11172008-10-06 Chong Yidong <cyd@stupidchicken.com>
1118
f5385255 1119 * emacs.c (Vbefore_init_time, Vafter_init_time): Move from startup.el.
aac0c6e3 1120
a9b555d3 1121 * lisp.h (Vbefore_init_time, Vafter_init_time): Declare.
aac0c6e3
MR
1122
1123 * gtkutil.c (x_wm_set_size_hint): Return immediately if called
1124 during initialization.
1125
11262008-10-04 Eli Zaretskii <eliz@gnu.org>
1127
1128 * xdisp.c (redisplay_internal): If frame switched, redisplay the
1129 whole thing on MSDOS frames as well as on a TTY.
1130
1131 * dispnew.c (update_frame): Flush termscript for MSDOS frames as
1132 well as for TTY.
1133 (Fopen_termscript): Allow opening a termscript on MSDOS frames as
1134 well as on a TTY.
1135
1136 * sysdep.c (init_sys_modes): Set FRAME_GARBAGED_P for MSDOS frames
1137 as well as for TTY.
1138
1139 * systime.h (EMACS_TIME_CMP): Cast EMACS_SECS values to `long'.
1140
1141 * dispnew.c (change_frame_size_1): Set FrameRows and FrameCols for
1142 MSDOS frames as well.
1143
11442008-10-02 Adrian Robert <Adrian.B.Robert@gmail.com>
1145
1146 * image.c (x_clear_image_1): Under NS, call ns_free_indexed_color with
1147 correct arguments.
1148 * menu.c (find_and_return_menu_selection) Add cast.
1149
11502008-10-03 Glenn Morris <rgm@gnu.org>
1151
1152 * emacs.c (USAGE1): Add --daemon.
1153
11542008-10-02 Eli Zaretskii <eliz@gnu.org>
1155
1156 * process.c (procfs_system_process_attributes): Multiply `pcpu' by
1157 100, so it's in percents as advertised.
1158
11592008-10-02 Adrian Robert <Adrian.B.Robert@gmail.com>
1160
1161 * nsterm.h (ns_cursor_types, ns_output.desired_cursor_color)
1162 (ns_output.current_cursor, ns_output.desired_cursor)
1163 (ns_output.last_inactive, FRAME_CURSOR, FRAME_NEW_CURSOR)
1164 (FRAME_NEW_CURSOR_COLOR): Remove.
1165
1166 * nsfns.m (ns_set_cursor_color): Use FRAME_CURSOR_COLOR.
a9b555d3 1167 (ns_lisp_to_cursor_type, ns_cursor_type_to_lisp): Use core Emacs
aac0c6e3
MR
1168 enumeration (HOLLOW_BOX_CURSOR, etc.).
1169
1170 * nsterm.m (ns_frame_rehighlight): Remove commented code.
1171 (draw_window_cursor): Simplify code.
f5385255
SM
1172 (EmacsView-windowDidBecomeKey:,-windowDidResignKey:):
1173 Don't change cursor type. In latter, call rehighlight instead of doing
aac0c6e3 1174 updates manually.
a9b555d3
JB
1175 (EmacsPrefsController-setPanelFromValues,-setValuesFromPanel):
1176 Use core Emacs cursor types.
aac0c6e3 1177
b8ff72fa 1178 * xdisp.c (draw_glyphs): Don't call notice_overwritten_cursor under NS.
aac0c6e3
MR
1179
11802008-10-02 Martin Rudalics <rudalics@gmx.at>
1181
1182 * process.c (Faccept_process_output): Fix doc-string.
1183
11842008-10-02 Dan Nicolaescu <dann@ics.uci.edu>
1185
1186 * gmalloc.c (__sbrk): Also define for uClibc.
1187
1188 * s/gnu-linux.h (GNU_LIBRARY_PENDING_OUTPUT_COUNT): Add definition
1189 for uClibc.
1190
11912008-10-01 Adrian Robert <Adrian.B.Robert@gmail.com>
1192
1193 * nsfont.m (nsfont_spec_to_traits): Use UnXX masks only for non-normal
1194 styles.
1195 (nsfont_open): Reenable the cache.
1196
11972008-10-01 Adrian Robert <Adrian.B.Robert@gmail.com>
1198
1199 * font.c (font_matching_entity): Reflect ATTRS in font selection.
1200 (font_find_for_lface) [HAVE_NS]: Don't ignore case.
1201
12022008-09-30 Stefan Monnier <monnier@iro.umontreal.ca>
1203
1204 * dispnew.c (Fsend_string_to_terminal): Don't try to send a string to
1205 a suspended terminal.
1206
12072008-09-30 Michael Albinus <michael.albinus@gmx.de>
1208
1209 * dbusbind.c (xd_signature): Use strcat instead of sprintf.
1210
12112008-09-30 Eli Zaretskii <eliz@gnu.org>
1212
1213 * Makefile.in (MSDOS_SUPPORT): Remove ccl.elc and codepage.elc.
1214
12152008-09-30 Chong Yidong <cyd@stupidchicken.com>
1216
1217 * xdisp.c (move_it_to): Don't advance the iterator if the last tab
1218 in a continued line coincides with a line beginning.
1219
12202008-09-29 Adrian Robert <Adrian.B.Robert@gmail.com>
1221
1222 * nsfont.m (nsfont_trait_distance): Fix bug.
1223 (nsfont_list): Return a list rather than a vector (syncs with Handa
1224 changes of 2008-05-14).
1225 (nsfont_open): Improve logging.
1226
12272008-09-29 Andreas Schwab <schwab@suse.de>
1228
1229 * keyboard.c (syms_of_keyboard) <input-decode-map>: Doc fix.
1230
12312008-09-28 Martin Rudalics <rudalics@gmx.at>
1232
1233 * character.c (Fchar_resolve_modifiers): Rewrite Elisp function
1234 name as char-resolve-modifiers.
1235 Reported by: Markus Triska <markus.triska@gmx.at>
1236
12372008-09-28 Dan Nicolaescu <dann@ics.uci.edu>
1238
1239 * dispnew.c (init_display): Return earlier when running as a daemon.
1240
12412008-09-27 Adrian Robert <Adrian.B.Robert@gmail.com>
1242
1243 * nsfont.m (nsfont_draw): Fix up composition rendering (cmp_from, ...).
1244
12452008-09-27 Eli Zaretskii <eliz@gnu.org>
1246
1247 * composite.c (Fcomposition_get_gstring)
1248 (Fcompose_region_internal, Fcompose_string_internal)
1249 (Ffind_composition_internal): Doc fix.
1250 (syms_of_composite) <compose-chars-after-function>: Doc fix.
1251 (syms_of_composite) <auto-composition-function>: Doc fix.
1252 (syms_of_composite) <composition-function-table>: Doc fix.
1253
12542008-09-25 Chong Yidong <cyd@stupidchicken.com>
1255
1256 * search.c (wordify): New argument for lax word-ends.
1257 (Fword_search_forward_lax, Fword_search_backward_lax): New funs.
1258
12592008-09-24 Dan Nicolaescu <dann@ics.uci.edu>
1260
1261 * lisp.h (is_daemon): Declare.
1262 * dispnew.c (init_display): Do not try to initialize the terminal
1263 when running as a daemon.
1264
12652008-09-22 Chong Yidong <cyd@stupidchicken.com>
1266
1267 * nsfns.m (compute_tip_xy): Use x_display_pixel_width and
1268 x_display_pixel_height.
1269
12702008-09-22 Martin Rudalics <rudalics@gmx.at>
1271
1272 * undo.c (record_point): Don't call Fundo_boundary for first
1273 change. (Bug#731)
1274
12752008-09-22 Juanma Barranquero <lekktu@gmail.com>
1276
1277 * emacs.c (Fdaemonp): Doc fix.
1278
12792008-09-22 Dan Nicolaescu <dann@ics.uci.edu>
1280
1281 * emacs.c (main): Place #ifdef in the proper place.
1282
12832008-09-21 Dan Nicolaescu <dann@ics.uci.edu>
1284
1285 * emacs.c (standard_args): Add --daemon.
1286 (main): Disconnect from the terminal when --daemon is passed.
1287 (is_daemon): New variable.
1288 (Fdaemonp): New function.
1289 (syms_of_emacs): Defsubr it.
1290
12912008-09-20 Chong Yidong <cyd@stupidchicken.com>
1292
1293 * xdisp.c (get_next_display_element): Handle string display
1294 correctly when checking for the end of a box run.
1295
12962008-09-20 Glenn Morris <rgm@gnu.org>
1297
1298 * fileio.c (Qdelete_by_moving_to_trash): New Lisp_Object.
1299 (syms_of_fileio): Add Qdelete_by_moving_to_trash.
1300 (Frename_file): Avoid copying to trash if a rename involves
1301 a delete. (Bug#964).
1302
13032008-09-20 Eli Zaretskii <eliz@gnu.org>
1304
1305 * keyboard.c (Fset_quit_char, Fset_input_meta_mode)
1306 (Fset_output_flow_control, Fcurrent_input_mode): Support MSDOS
1307 frames as well as termcap frames.
1308 (handle_interrupt): Remove "#ifndef MSDOS" around the call to
1309 get_named_tty.
1310
13112008-09-19 Eli Zaretskii <eliz@gnu.org>
1312
1313 * process.c (procfs_system_process_attributes): Fix cmdline in
1314 case /proc/PID/cmdline is empty.
1315
1316 * xterm.c (x_wm_set_size_hint): Use x_display_pixel_width and
1317 x_display_pixel_height.
1318
13192008-09-19 Juanma Barranquero <lekktu@gmail.com>
1320
1321 * frame.c (x_fullscreen_adjust): Declare var as Display_Info.
1322
1323 * w32fns.c (Fx_display_pixel_width, Fx_display_pixel_height)
1324 (compute_tip_xy): Use x_display_pixel_width, x_display_pixel_height.
1325
13262008-09-19 Dan Nicolaescu <dann@ics.uci.edu>
1327
1328 * dispextern.h (struct it): Move line_wrap away from the middle of
1329 bitfields. Move voffset in struct iterator_stack_entry after the
1330 bitfields. Move tab_width near after another short.
1331
13322008-09-18 Dan Nicolaescu <dann@ics.uci.edu>
1333
1334 * frame.h (struct frame): Move alpha from the middle of bitfields.
1335
1336 * window.h (struct window): Move frozen_window_start_p after the
1337 rest of the bitfields to reduce padding.
1338
13392008-09-18 Chong Yidong <cyd@stupidchicken.com>
1340
1341 * xterm.h (x_display_info): Remove `height' and `width' members.
1342
1343 * nsterm.h (ns_display_info): Remove `height' and `width' members.
1344
1345 * w32term.h (w32_display_info): Remove `height', `width',
1346 `height_in', and `width_in' members.
1347
b8ff72fa
SM
1348 * xterm.c (x_display_pixel_height, x_display_pixel_width):
1349 New functions.
aac0c6e3
MR
1350 (x_calc_absolute_position): Use them.
1351 (x_term_init): Omit removed `height' and `width' members.
1352
b8ff72fa
SM
1353 * w32term.c (x_display_pixel_height, x_display_pixel_width):
1354 New functions.
aac0c6e3
MR
1355 (w32_read_socket, x_calc_absolute_position): Use them.
1356 (w32_initialize_display_info, w32_term_init): Omit removed members
1357 of w32_display_info.
1358
b8ff72fa
SM
1359 * nsterm.m (x_display_pixel_height, x_display_pixel_width):
1360 New functions.
1361 (ns_initialize_display_info): Omit removed members of ns_display_info.
aac0c6e3 1362
b8ff72fa
SM
1363 * xterm.c (x_display_pixel_height, x_display_pixel_width):
1364 New functions.
aac0c6e3
MR
1365 (x_calc_absolute_position): Use them.
1366 (x_term_init): Omit removed `height' and `width' members.
1367
1368 * xfns.c (Fx_display_pixel_width, Fx_display_pixel_height)
b8ff72fa
SM
1369 (compute_tip_xy):
1370 * frame.c (x_fullscreen_adjust):
aac0c6e3
MR
1371 * xmenu.c (menu_position_func): Use x_display_pixel_height and
1372 x_display_pixel_width.
1373
13742008-09-18 Kenichi Handa <handa@m17n.org>
1375
1376 * composite.c (fill_gstring_header): Don't check FROM and TO here.
1377 (composition_compute_stop_pos): Fix handling of static composition.
1378 (Fcomposition_get_gstring): Check FROM and TO at first.
1379
13802008-09-17 Stefan Monnier <monnier@iro.umontreal.ca>
1381
1382 * composite.c (Fcomposition_get_gstring): Yet another int/Lisp_Oject
1383 mixup (YAILOM).
1384
13852008-09-17 Chong Yidong <cyd@stupidchicken.com>
1386
1387 * indent.c (Fvertical_motion): Use position reported by iterator
1388 instead of PT for determining screen motion (bug#943).
1389
13902008-09-17 Romain Francoise <romain@orebokech.com>
1391
1392 * composite.c (composition_adjust_point): Fix int/EMACS_INT mixup.
1393
13942008-09-17 Kenichi Handa <handa@m17n.org>
1395
1396 * ftfont.c (ftfont_shape_by_flt): Downcase family name.
1397
1398 * composite.c (Fcomposition_get_gstring): Make bigger gstring_work
1399 if necessary.
1400
14012008-09-16 Kenichi Handa <handa@m17n.org>
1402
1403 * coding.c (make_conversion_work_buffer): Avoid calling
1404 Fget_buffer_create if it is not necessary.
1405
14062008-09-15 Martin Rudalics <rudalics@gmx.at>
1407
1408 * window.c (Fselect_window): Don't update window_select_count and
1409 use_time when norecord is not nil.
1410
14112008-09-14 Kenichi Handa <handa@m17n.org>
1412
1413 * fileio.c (Finsert_file_contents): Delete incorrect decrement of
1414 specpdl_ptr.
1415
14162008-09-12 Kenichi Handa <handa@m17n.org>
1417
1418 * indent.c (scan_for_column): Don't handle automatic composition
1419 if the current buffer is not associated with a window.
1420
1421 * composite.c (composition_reseat_it): If the current buffer is
1422 not associated with a window, ignore the automatic composition.
1423 (find_automatic_composition): Likewise.
1424
14252008-09-12 Stefan Monnier <monnier@iro.umontreal.ca>
1426
1427 * term.c (close_gpm): New fun extracted from Fgpm_mouse_stop.
1428 (Fgpm_mouse_stop): Use it.
1429 * termhooks.h (close_gpm): Declare.
1430 * keyboard.c (tty_read_avail_input): Forcefully close the gpm
1431 connection if Gpm_GetEvent fails.
1432
1433 * window.c (set_window_buffer): Always preserve current-buffer.
1434
14352008-09-12 Glenn Morris <rgm@gnu.org>
1436
1437 * charset.c (init_charset): Warn if etc/charsets not found. (Bug#909)
1438
14392008-09-11 Glenn Morris <rgm@gnu.org>
1440
1441 * charset.c (charset-map-path): Doc fix.
1442
14432008-09-10 Kenichi Handa <handa@m17n.org>
1444
1445 * xdisp.c (handle_composition_prop): Set it->cmp_it.ch to -1.
1446
1447 * font.c (Ffont_shape_gstring): Make glyphs of non-nil adjustment
1448 compose a grapheme cluster with the preceding base glyph.
1449
1450 * composite.c (composition_compute_stop_pos): Fix previous change.
1451 Reset cmp_it->id to -1 at first.
1452
14532008-09-10 Glenn Morris <rgm@gnu.org>
1454
1455 * Makefile.in (character.o, chartab.o): Fix config.h typo.
1456
14572008-09-09 Chong Yidong <cyd@stupidchicken.com>
1458
1459 * keyboard.c (read_key_sequence): Reapply translation maps when
1460 switching keyboards.
1461
14622008-09-09 Kenichi Handa <handa@m17n.org>
1463
1464 * ftfont.c (ftfont_shape_by_flt): Use "combining" FLT for ASCII
1465 characters.
1466
1467 * composite.c (FORWARD_CHAR): Fix calculation
1468 of (POSITION).pos_byte.
1469 (composition_compute_stop_pos): Limit the search of composition to
1470 at most 500 characters ahead. If we reach the limit or find a
1471 newline, set cmp_it->ch to -2 and return 0.
1472 (composition_reseat_it): Handle the case that cmp_it->ch is -2.
1473
14742008-09-08 Kenichi Handa <handa@m17n.org>
1475
1476 * indent.c (Fvertical_motion): Be sure to set
1477 it_overshoot_expected if it.cmp_it.id is non-negative.
1478
14792008-09-07 Andreas Schwab <schwab@suse.de>
1480
1481 * callproc.c (Fcall_process): Don't hold references to string data
1482 across garbage collection. Move initialisation of new_argv down
1483 to avoid compiler bug.
1484
14852008-09-07 Roland Winkler <Roland.Winkler@physik.uni-erlangen.de>
1486
1487 * process.c (Fsystem_process_attributes): Doc fix.
1488
14892008-09-07 Chong Yidong <cyd@stupidchicken.com>
1490
1491 * callproc.c (Fcall_process): Canonicalize current directory name.
1492
1493 * xdisp.c (move_it_to): When moving by vpos, ensure that the
1494 iterator advances to the next line if the current line ends in a
1495 continued tab.
1496
14972008-09-07 Teodor Zlatanov <tzz@lifelogs.com>
1498
1499 * nsfont.m (nsfont_draw): Fix the references to missing gidx data
1500 member to point to cmp_from.
1501
1502 * xdisp.c: Doc fix for references to gidx data member.
1503
15042008-09-07 Stefan Monnier <monnier@iro.umontreal.ca>
1505
1506 * buffer.c (Fbuffer_swap_text): Reset window->point markers.
1507
15082008-09-07 Kenichi Handa <handa@m17n.org>
1509
1510 * composite.c (FORWARD_CHAR): Check STOP after
1511 incrementing (POSITION).pos.
1512
15132008-09-06 Roland Winkler <Roland.Winkler@physik.uni-erlangen.de>
1514
1515 * process.c (Fsystem_process_attributes): Doc fix.
1516
15172008-09-06 Chong Yidong <cyd@stupidchicken.com>
1518
1519 * keyboard.c (Ftop_level): Doc fix.
1520
15212008-09-06 Eli Zaretskii <eliz@gnu.org>
1522
1523 * xmenu.c (xmenu_show) [!HAVE_X_WINDOWS]: If frame has a
1524 minibuffer, don't let lower part of menu invade the echo area.
1525
1526 * msdos.c (IT_menu_display): Use STRING_CHAR_ADVANCE instead of a
1527 "char *q" to access menu text and advance through it. Revert the
1528 change that displayed ">" instead of ASCII character 0x10.
1529
15302008-09-05 Eli Zaretskii <eliz@gnu.org>
1531
1532 * menu.c (single_menu_item) [!HAVE_BOXES]: Enable emulation of
1533 toggle boxes and radio buttons on MS-DOS as well.
1534
15352008-09-05 Kenichi Handa <handa@m17n.org>
1536
1537 * composite.c (autocmp_chars): Check lookback count.
1538 (composition_compute_stop_pos): Set cmp_it->lookback.
1539 (composition_reseat_it): Check lookback count.
1540 (struct position_record): New struct.
1541 (FORWARD_CHAR, BACKWARD_CHAR, CHAR_COMPOSABLE_P): New macros.
1542 (find_automatic_composition): New function.
1543 (composition_adjust_point): Use find_automatic_composition.
1544
1545 * dispextern.h (struct composition_it): New member lookback.
1546
15472008-09-02 Chong Yidong <cyd@stupidchicken.com>
1548
1549 * indent.c (Fvertical_motion): Don't call move_it_by_lines again
1550 if moving by a single line.
1551
15522008-09-02 Andreas Schwab <schwab@suse.de>
1553
1554 * xterm.c (x_delete_display): Fix merge error.
1555
1556 * fileio.c (Fexpand_file_name): Remove unused variables.
1557
15582008-09-02 Eli Zaretskii <eliz@gnu.org>
1559
1560 * fileio.c (Fexpand_file_name): Copy argument `name' into local
1561 storage on all platforms, not just on DOS_NT.
1562
15632008-09-02 Jason Rumney <jasonr@gnu.org>
1564
b8ff72fa
SM
1565 * w32menu.c (Fx_popup_menu, Fx_popup_dialog, w32_menu_show):
1566 Ensure mouse is not grabbed after menu is finished.
aac0c6e3
MR
1567
15682008-09-01 Chong Yidong <cyd@stupidchicken.com>
1569
1570 * xfaces.c (Finternal_set_alternative_font_family_alist)
1571 (Finternal_set_alternative_font_registry_alist): Properly copy
1572 entire alist structure.
1573
15742008-09-01 Kenichi Handa <handa@m17n.org>
1575
1576 * ftfont.c (ftfont_spec_pattern): Don't create a charset of the
1577 representative chars of the script is a vector.
1578 (ftfont_list): Handle the case the representative chars of the
1579 script is a vector.
1580
1581 * character.c (syms_of_character): Docstring of
1582 script-representative-chars fixed.
1583
15842008-08-31 Eli Zaretskii <eliz@gnu.org>
1585
1586 * msdos.c (BUILD_CHAR_GLYPH): New macro.
1587 (IT_menu_display): Use it instead of SET_CHAR_GLYPH to construct
1588 the menu. Allocate larger buffer for `text', to account for
1589 possible ^C characters.
1590
15912008-08-31 Martin Rudalics <rudalics@gmx.at>
1592
1593 * xdisp.c (prepare_menu_bars): Don't call
1594 Vwindow_size_change_functions with arg Qt.
1595
15962008-08-31 Stefan Monnier <monnier@iro.umontreal.ca>
1597
1598 * font.h (font_range):
1599 * fileio.c (report_file_error):
1600 * composite.c (composition_update_it): Yet another int/Lisp_Oject mixup.
1601
16022008-08-30 Glenn Morris <rgm@gnu.org>
1603
1604 * data.c (Fmake_variable_frame_local): Doc fix.
1605
1606 * frame.c (Fmodify_frame_parameters): Doc fix.
1607
16082008-08-30 Eli Zaretskii <eliz@gnu.org>
1609
1610 * w32.c (init_user_info): Allocate buf[] with xmalloc using the size
1611 needed by GetTokenInformation.
1612 (w32_system_process_attributes): Check return values of all system
1613 APIs.
1614
1615 * msdos.c (IT_display_cursor): Write "CURSOR ON/OFF" to termscript
1616 only when the state changes.
1617 (IT_update_begin, IT_update_end): Add termscript trace.
1618
1619 * w16select.c (Fw16_set_clipboard_data): Don't encode text if
1620 clipboard is unavailable. Set dst to NULL if it doesn't point to
1621 malloc'ed data.
1622 (Fw16_get_clipboard_data): Initialize htext to NULL, to avoid
1623 passing random values to xfree.
1624
1625 * dispnew.c (init_display): Set `tty's association in frame's
b8ff72fa 1626 parameters alist to the name of the terminal device, if that is known.
aac0c6e3
MR
1627
16282008-08-29 Jason Rumney <jasonr@gnu.org>
1629
1630 * w32uniscribe.c (uniscribe_check_otf): Don't fallback on DFLT script.
1631
16322008-08-29 Eli Zaretskii <eliz@gnu.org>
1633
1634 * composite.c (fill_gstring_body): Avoid compiler warnings.
1635
1636 * font.c (font_fill_lglyph_metrics): Use EMACS_INT in
1637 LGLYPH_SET_CODE to avoid compiler warnings.
1638
2ae37cf0 1639 * makefile.w32-in ($(BLD)/w32uniscribe.$(O)): Depend on composite.h.
aac0c6e3
MR
1640
1641 * composite.h (LGLYPH_SET_CODE): Cast `val' to EMACS_INT.
1642
1643 * w32uniscribe.c (uniscribe_shape): Shut up compiler warning in
1644 LGLYPH_SET_CODE.
1645
16462008-08-29 Kenichi Handa <handa@m17n.org>
1647
1648 * fileio.c (report_file_error): Don't downcase the first character
1649 of errstring if it is still unibyte.
1650
16512008-08-29 Kenichi Handa <handa@m17n.org>
1652
1653 These changes are to re-implement the automatic composition so
1654 that it doesn't use text properties.
1655
1656 * Makefile.in (ftfont.o): Depend on composite.h.
1657 (composite.o): Depend dispextern.h, font.h, frame, and window.h.
1658
1659 * character.h (Vunicode_category_table): Extern it.
1660
1661 * character.c (Vunicode_category_table): New variable.
1662 (syms_of_character): DEFVAR_LISP Vunicode_category_table.
1663
1664 * chartab.c (optimize_sub_char_table): Perform more greedy
1665 optimization.
1666
b8ff72fa
SM
1667 * composite.h (enum composition_method):
1668 Delete COMPOSITION_WITH_GLYPH_STRING.
aac0c6e3
MR
1669 (COMPOSITION_METHOD): Don't check COMPOSITION_WITH_GLYPH_STRING.
1670 (Vcomposition_function_table): Extern it.
1671 (LGSTRING_XXX, LGLYPH_XXX): Macros moved from font.h.
1672 (composition_gstring_put_cache, composition_gstring_from_id)
1673 (composition_gstring_p, composition_gstring_width)
1674 (composition_compute_stop_pos, composition_reseat_it)
1675 (composition_update_it, composition_adjust_point): Extern them.
1676 (Fcomposition_get_gstring): EXFUN it.
1677
1678 * composite.c: Include window.h, frame.h, dispextern.h font.h.
1679 (Vcomposition_function_table)
1680 (get_composition_id): Don't handle COMPOSITION_WITH_GLYPH_STRING.
b8ff72fa
SM
1681 (gstring_hash_table, gstring_work, gstring_work_headers):
1682 New variables.
aac0c6e3
MR
1683 (gstring_lookup_cache, composition_gstring_put_cache)
1684 (composition_gstring_from_id, composition_gstring_p)
1685 (composition_gstring_width, fill_gstring_header)
1686 (fill_gstring_body, autocmp_chars, composition_compute_stop_pos)
1687 (composition_reseat_it, composition_update_it)
b8ff72fa 1688 (composition_adjust_point, Fcomposition_get_gstring): New functions.
aac0c6e3
MR
1689 (syms_of_composite): Initialize gstring_hash_table, gstrint_work,
1690 and gstring_work_headers. DEFVAR_LISP composition-function-table.
1691 Defsubr compostion_get_gstring.
1692
1693 * dispextern.h (struct glyph): New union u.cmp. Delete the member
1694 cmp_id.
1695 (struct glyph_string): Delete the member gidx. New members
1696 cmp_id, cmp_from, and cmp_to.
1697 (enum it_method): Delete GET_FROM_COMPOSITION.
1698 (struct composition_it): New struct.
1699 (struct it): New member cmp_it, and iterator_stack_entry.cmp_it.
1700 Delete c, len, cmp_id, cmp_len in u.comp.
1701
1702 * font.h (enum lgstring_indices): Delete it.
b8ff72fa 1703 (LGSTRING_XXX, LGLYPH_XXX): Move these macros to composite.h.
aac0c6e3 1704 (enum lglyph_indices): Likewise.
b8ff72fa 1705 (font_range): Adjust extern.
aac0c6e3
MR
1706 (font_fill_lglyph_metrics): Extern it.
1707
1708 * font.c (QCf): New variable.
1709 (check_gstring): Use LGSTRING_GLYPH_LEN, not LGSTRING_LENGTH.
1710 (font_prepare_composition): Delete this function.
1711 (font_range): Type and arguments changed.
1712 (Ffont_make_gstring, Ffont_fill_gstring): Delete them.
1713 (font_fill_lglyph_metrics): New function.
b8ff72fa 1714 (Ffont_shape_text): Rename to Ffont_shape_gstring and change arguments.
aac0c6e3 1715 (syms_of_font): DEFSYM QCf. Delete defsubr for
b8ff72fa
SM
1716 Sfont_make_gstring, Sfont_fill_gstring, Sfont_shape_text.
1717 Defsubr Sfont_shape_gstring.
aac0c6e3
MR
1718
1719 * fontset.h (font_for_char): Extern it.
1720
1721 * fontset.c (font_for_char): New function.
1722
1723 * ftfont.c: Include composite.h.
1724 (ftfont_resolve_generic_family): Add langset "en" to pattern.
b8ff72fa 1725 (ftfont_shape_by_flt): Use LGSTRING_GLYPH_LEN, not LGSTRING_LENGTH.
aac0c6e3
MR
1726
1727 * indent.c: Include composite.h and dispextern.h.
1728 (check_composition): Delete this function.
1729 (scan_for_column): Handle composition by
1730 composition_compute_stop_pos, composition_reseat_it, and
1731 composition_update_it.
1732 (compute_motion): Likewise.
1733 (Fvertical_motion): Fix checking of composition.
1734
1735 * keyboard.c (adjust_point_for_property): Check composition by
1736 composition_adjust_point.
1737
b8ff72fa 1738 * nsterm.m (ns_draw_glyph_string): Adjust for the change of
aac0c6e3
MR
1739 struct glyph_string.
1740
b8ff72fa
SM
1741 * term.c (encode_terminal_code): Adjust for the change of struct glyph.
1742 (append_composite_glyph): Adjust for the change of struct it and
aac0c6e3
MR
1743 struct glyph.
1744 (produce_composite_glyph): Likewise.
1745
b8ff72fa
SM
1746 * w32term.c (x_draw_composite_glyph_string_foreground):
1747 Adjust for the change of struct glyph_string.
aac0c6e3
MR
1748 (x_draw_glyph_string): Likewise.
1749
1750 * w32uniscribe.c (struct uniscribe_font_info): Include composite.h.
1751 (uniscribe_shape): Use LGSTRING_GLYPH_LEN, not LGSTRING_LENGTH.
1752
1753 * xdisp.c: Include font.h.
1754 (it_props): Delete the entry for Qauto_composed.
1755 (init_iterator): Initialize it->cmp_it.id to -1.
1756 (compute_stop_pos): Call composition_compute_stop_pos.
b8ff72fa 1757 (face_before_or_after_it_pos): Adjust for the change of struct it.
aac0c6e3
MR
1758 (handle_auto_composed_prop): Delete it.
1759 (handle_composition_prop): Handle only static composition.
1760 (next_overlay_string): Remove it->method == GET_FROM_COMPOSITION
1761 from xassert. Initialize it->cmp_it.stop_pos.
b8ff72fa 1762 (push_it): Adjust for the change of struct it.
aac0c6e3
MR
1763 (pop_it): Likewise.
1764 (get_next_element): Delete next_element_from_composition.
1765 (CHAR_COMPOSED_P): New macro.
1766 (get_next_display_element): For automatic composition, get a face
1767 from the font in the glyph-string.
1768 (set_iterator_to_next): For GET_FROM_BUFFER and GET_FROM_STRING,
b8ff72fa 1769 check composition by it->cmp_it.id. Delete GET_FROM_COMPOSITION case.
aac0c6e3
MR
1770 (next_element_from_string): Check if the character at the current
1771 position is composed by CHAR_COMPOSED_P.
1772 (next_element_from_buffer): Likewise.
b8ff72fa 1773 (next_element_from_composition): Adjust for the change of struct
aac0c6e3 1774 it. Update it->cmp_it.
b8ff72fa
SM
1775 (dump_glyph): Adjust for the change of struct glyph.
1776 (fill_composite_glyph_string): Adjust for the change of struct
aac0c6e3
MR
1777 it and struct glyph. Don't handle automatic composition here.
1778 (fill_gstring_glyph_string): New function.
1779 (x_get_glyph_overhangs): Handle automatic composition.
b8ff72fa 1780 (BUILD_COMPOSITE_GLYPH_STRING): Adjust for the change of struct glyph.
aac0c6e3
MR
1781 (BUILD_GSTRING_GLYPH_STRING): New macro.
1782 (BUILD_GLYPH_STRINGS): Call BUILD_GSTRING_GLYPH_STRING for
1783 automatic composition.
b8ff72fa 1784 (append_composite_glyph): Adjust for the change of struct it and
aac0c6e3 1785 struct glyph.
b8ff72fa 1786 (x_produce_glyphs): Adjust for the change of struct it.
aac0c6e3 1787
b8ff72fa 1788 * xterm.c (x_draw_composite_glyph_string_foreground): Adjust for
aac0c6e3
MR
1789 the change of struct glyph_string.
1790 (x_draw_glyph_string): Likewise.
1791
17922008-08-29 Glenn Morris <rgm@gnu.org>
1793
1794 * buffer.c (word-wrap): Doc fix.
1795 * xdisp.c (truncate-partial-width-windows): Doc fix.
1796 Increase default to 50.
1797
17982008-08-29 Chong Yidong <cyd@stupidchicken.com>
1799
1800 * xdisp.c (update_tool_bar_unwind): New function.
1801 (update_tool_bar): Temporarily set selected frame before building
1802 tool-bar items.
1803
18042008-08-28 Michael Albinus <michael.albinus@gmx.de>
1805
1806 * dbusbind.c (XD_ERROR, XD_DEBUG_MESSAGE): Use strncpy and
1807 snprintf, respectively.
1808 (xd_append_arg): Convert strings with Fstring_make_unibyte.
1809
18102008-08-28 Chong Yidong <cyd@stupidchicken.com>
1811
1812 * Makefile.in: Revert (undocumented) 2008-08-20 change adding
1813 LDFLAGS to GNUstep CC invocation.
1814
18152008-08-27 Chong Yidong <cyd@stupidchicken.com>
1816
1817 * indent.c (Fvertical_motion): Revert last change. Handle the
1818 general case where we are moving forward, and PT spans multiple
1819 screen lines.
1820
1821 * eval.c (find_handler_clause): Temporarily increase
1822 max-lisp-eval-depth while printing the backtrace buffer, to
1823 guarantee that help-mode code can run.
1824
18252008-08-27 Eli Zaretskii <eliz@gnu.org>
1826
1827 * msdos.c (Fmsdos_remember_default_colors): Don't reverse frame
1828 colors under -rv.
1829 (IT_set_frame_parameters): Don't swap foreground and background
1830 colors if `(reverse . t)' is present in the frame properties.
1831 (internal_terminal_init): Call init_frame_faces only for the
1832 initial frame.
1833
18342008-08-27 Andreas Schwab <schwab@suse.de>
1835
1836 * dired.c (Ffile_attributes): Avoid compiler warning in bitshift.
1837
18382008-08-27 Andreas Schwab <schwab@suse.de>
1839
1840 * search.c (search_buffer): Set char_base to zero only at the end.
1841
18422008-08-27 Kenichi Handa <handa@m17n.org>
1843
b8ff72fa 1844 * fileio.c (report_file_error): Fix handling of multibyte error string.
aac0c6e3
MR
1845
18462008-08-27 Andreas Seltenreich <seltenreich@gmx.de>
1847
1848 * xterm.c (x_term_init): Temporarily hide the partially
1849 initialized terminal while calling vendor-specific-keysyms.
1850
18512008-08-26 Eli Zaretskii <eliz@gnu.org>
1852
1853 * msdos.c (internal_terminal_init): Most initializations done only
1854 once, especially initial_screen_colors[] and termscript open.
1855
18562008-08-26 Chong Yidong <cyd@stupidchicken.com>
1857
1858 * eval.c (Fcondition_case): Doc fix.
1859
1860 * widgetprv.h (EmacsFramePart): Change font member to the new font
1861 struct.
1862
1863 * widget.c: Include character.h and font.h for XSETFONT.
1864 (setup_frame_gcs): Compute X font id from font struct, just once.
1865
18662008-08-26 Eli Zaretskii <eliz@gnu.org>
1867
1868 * term.c (get_named_tty): Fix last change.
1869
18702008-08-26 Chong Yidong <cyd@stupidchicken.com>
1871
1872 * indent.c (Fvertical_motion): If moving forward starting from a
b8ff72fa 1873 multi-line string, move the iterator to the last line of that string.
aac0c6e3
MR
1874
18752008-08-25 Eli Zaretskii <eliz@gnu.org>
1876
1877 * frame.c (do_switch_frame): Mark previously displayed frame as
1878 obscured for FRAME_MSDOS_P frames as well.
1879
18802008-08-24 Eli Zaretskii <eliz@gnu.org>
1881
1882 * frame.c (make_terminal_frame): Initialize f->terminal,
1883 f->terminal->reference_count, and scroll bars on MS-DOS as well.
1884 Set the top frame to newly created frame.
1885 (Fmake_terminal_frame): Reuse the_only_display_info.
1886
1887 * vm-limit.c (get_lim_data) [MSDOS]: Use alternative methods of
1888 estimating available memory.
1889
b97439ce 18902008-08-23 David Reitter <david.reitter@gmail.com>
aac0c6e3
MR
1891
1892 * nsterm.m (ns_draw_window_cursor): Don't call
1893 NSDisableScreenUpdates and NSEnableScreenUpdates on
1894 non-NS_IMPL_COCOA systems.
1895
18962008-08-23 Andreas Schwab <schwab@suse.de>
1897
1898 * process.c (procfs_system_process_attributes): Fix use of
1899 uninitialized variables.
1900
19012008-08-23 Eli Zaretskii <eliz@gnu.org>
1902
1903 * emacs.c (main) [MSDOS]: Call syms_of_xmenu.
1904
1905 * dispnew.c (init_display): Remove MS-DOS specific conditions for
1906 calling tty-set-up-initial-frame-faces.
1907
b8ff72fa
SM
1908 * xmenu.c (Fx_popup_dialog, Fx_popup_menu, xmenu_show):
1909 Allow MSDOS frames along with X frames.
aac0c6e3
MR
1910
1911 * termhooks.h (TERMINAL_ACTIVE_P): Handle output_msdos_raw in
1912 addition to output_termcap.
1913
1914 * xdisp.c (redisplay_internal) [MSDOS]: Don't call set_tty_color_mode.
1915
1916 * termchar.h (FRAME_TTY): Support output_msdos_raw.
1917 (struct tty_display_info) [MSDOS]: Add fields related to mouse
1918 highlight.
1919
1920 * process.c [!subprocesses]: Define QCname.
1921 (syms_of_process): Intern and staticpro it.
1922
1923 * w16select.c (Fw16_set_clipboard_data, Fw16_get_clipboard_data):
b8ff72fa
SM
1924 Adjust for changes in encoding/decoding routines.
1925 Use encode_coding_object and decode_coding_object instead of
aac0c6e3
MR
1926 encode_coding and decode_coding.
1927
b8ff72fa 1928 * sysdep.c (init_sys_modes): Call dos_ttraw with tty_out as argument.
aac0c6e3
MR
1929
1930 * dosfns.c: Include frame.h before termhooks.h.
1931 (dos_cleanup): Use CURTTY ()->termscript instead of a global
1932 variable termscript.
1933
1934 * s/msdos.h (USER_FULL_NAME): Define.
1935 (SYSTEM_PURESIZE_EXTRA): Bump up to 100K.
1936
1937 * editfns.c (USER_FULL_NAME): Define to pw->pw_gecos if undefined.
1938 (Fuser_full_name): Use USER_FULL_NAME instead of a literal
1939 pw->pw_gecos.
1940
1941 * keyboard.c (handle_interrupt) [MSDOS]: Call cursor_to with
1942 SELECTED_FRAME as additional (1st) argument.
1943 (tty_read_avail_input): Handle output_msdos_raw in
1944 addition to output_termcap.
1945
1946 * msdos.c: Include frame.h before termhooks.h.
1947 (mouse_on, mouse_off, mouse_moveto, mouse_init)
1948 (msdos_set_cursor_shape, IT_set_face, IT_write_glyphs)
1949 (show_mouse_face, IT_clear_end_of_line, IT_clear_screen)
1950 (IT_clear_to_end, IT_cursor_to, IT_display_cursor, IT_cmgoto)
1951 (IT_set_terminal_modes, IT_reset_terminal_modes)
1952 (IT_set_frame_parameters): Use tty->termscript instead of a global
1953 variable termscript.
1954 (IT_write_glyphs): Use tty->terminal->terminal_coding instead of a
1955 global variable terminal_coding. Don't refer to
1956 Vnonascii_translation_table.
1957 (internal_terminal_init): Set Vwindow_system in current_kboard.
1958 Don't use TTY_CHAR_INS_DEL_OK. Set Vinitial_window_system.
1959 Announce date and time of session start, if termscript is open.
1960 Don't zero out the_only_display_info (it is done in
b8ff72fa
SM
1961 term.c:init_tty). Open termscript only of not already open.
1962 Log "SCREEN SAVED" here, instead of IT_set_terminal_modes. Init mouse
aac0c6e3
MR
1963 here instead of dos_ttraw. Don't initialize display if this is an
1964 initial tty. Don't set FRAME_FONT.
1965 (Vwindow_system_version): Bump to 23.
1966 (dos_ttraw): Accept a TTY argument; all callers fixed. If mouse
1967 is available, set up mouse_position_hook.
1968 (dos_ttraw, IT_set_terminal_modes): If called with initial
1969 terminal, do nothing.
1970 (IT_set_frame_parameters): Handle the Qtty_type frame
1971 parameter by calling internal_terminal_init.
1972 (dos_set_window_size, show_mouse_face)
1973 (clear_mouse_face, IT_note_mode_line_highlight)
1974 (IT_note_mouse_highlight, IT_update_begin, IT_frame_up_to_date)
1975 (dos_rawgetc): Use tty_display_info instead of x_display_info.
1976 (initialize_msdos_display): New function.
1977 (IT_cursor_to, IT_clear_to_end, IT_clear_screen)
1978 (IT_clear_end_of_line, IT_insert_glyphs, IT_write_glyphs)
1979 (IT_delete_glyphs, IT_ring_bell, IT_reset_terminal_modes)
1980 (IT_set_terminal_modes, IT_set_terminal_window, IT_update_begin):
b8ff72fa 1981 Accept additional argument: a pointer to a frame. Update all callers.
aac0c6e3
MR
1982 (request_sigio, unrequest_sigio): Don't define, now defined on
1983 sysdep.c.
1984 (IT_write_glyphs): Rewrite to use encode_terminal_code.
1985
1986 * term.c [MSDOS]: Include msdos.h.
1987 (init_tty) [MSDOS]: Reuse most of WINDOWSNT branch. Change cpp
1988 conditional to DOS_NT. Allow only one call to this function in a
1989 session. Don't allocate a new struct tty_display_info; instead,
1990 reuse the_only_display_info. Call get_tty_size to get screen
1991 dimensions. Call init_baud_rate to set bad_rate.
1992 (dissociate_if_controlling_tty) [MSDOS]: Ifdef away function body.
1993 (Fsuspend_tty) [MSDOS]: Don't close input and output.
b8ff72fa 1994 (Fresume_tty) [MSDOS]: Don't reopen the TTY; instead, use stdin/stdout.
aac0c6e3
MR
1995 (get_tty_terminal, get_named_tty, Ftty_type)
1996 (Fcontrolling_tty_p): Handle output_msdos_raw in addition to
1997 output_termcap.
b8ff72fa
SM
1998 (Fresume_tty, Fsuspend_tty, init_tty, delete_tty):
1999 Call add_keyboard_wait_descriptor and delete_keyboard_wait_descriptor
2ae37cf0 2000 only when subprocesses are supported.
aac0c6e3
MR
2001
2002 * frame.c (make_terminal_frame) [MSDOS]: Adjust initialization of
2003 f->output_data.x.
2004 (Fmake_terminal_frame) [MSDOS]: Don't allow creation of new
2005 terminal devices.
2006
5582fbc7 2007 * msdos.h: Remove definition of struct x_display_info and struct
aac0c6e3
MR
2008 x_output.
2009 (FRAME_FONT): Use output_data.tty.
2010 (FRAME_FOREGROUND_PIXEL, FRAME_BACKGROUND_PIXEL): Don't define.
b8ff72fa
SM
2011 (struct x_display_info): Rename from display_info. Update all users in
2012 msdos.c.
aac0c6e3 2013 (struct x_output): Remove background_pixel and foreground_pixel.
b8ff72fa 2014 (the_only_display_info): Rename from the_only_x_display.
aac0c6e3
MR
2015 (dos_ttraw): Update prototype.
2016
2017 * Makefile.in (MSDOS_OBJ): Add xmenu.o.
2018 (SOME_MACHINE_LISP): Add ../lisp/term/pc-win.elc.
2019
20202008-08-23 Jason Rumney <jasonr@gnu.org>
2021
2022 * image.c (enum tiff_keyword_index, tiff_format): Add :index keyword.
2023 (fn_TIFFSetDirectory): New library function used.
2024 (init_tiff_functions) [HAVE_NTGUI]: Initialize it.
2025 (tiff_load): Use :index to select among multiple images. Set count
2026 property when multiple images exist.
2027 (gif_format): Use :index, not :image.
2028
20292008-08-23 Chong Yidong <cyd@stupidchicken.com>
2030
2031 * xdisp.c (try_scrolling): Check INT_MAX instead of
2032 MOST_POSITIVE_FIXNUM for maximum integer value. Include limits.h
2033 to obtain INT_MAX.
2034
20352008-08-21 İsmail Dönmez <ismail@namtrac.org> (tiny change)
2036
2037 * xterm.c (x_delete_display): Don't call XrmDestroyDatabase on GTK+.
2038
20392008-08-21 Christian Faulhammer <opfer@gentoo.org> (tiny change)
2040
2041 * Makefile.in (temacs${EXEEXT}): On GNUstep, link to appropriate
2042 GNUstep library location.
2043
20442008-08-21 Chong Yidong <cyd@stupidchicken.com>
2045
2046 * xfaces.c (x_update_menu_appearance): Check validity of menu font
2047 before using it.
2048
2049 * puresize.h (BASE_PURESIZE): Increase to 1250000.
2050
20512008-08-20 Adrian Robert <Adrian.B.Robert@gmail.com>
2052
2053 * nsfns.m (ns-read-file-name): Add casts to avoid warning.
2054 (ns-convert-utf8-nfd-to-nfc): Warn if cannot execute correctly.
2055 * nsfont.m (nsfont_draw): Compare indexed colors to 0, not nil.
2056 * nsterm.h (EmacsView-unlockFocusNeedsFlush:): Add declaration.
2057 (EmacsApp-cursor_blink_handler): Remove declaration.
2058 * nsterm.m (ns_draw_glyph_string): Update first conditional body to
2059 match 01 Feb 2008 changes in xterm.c.
2060 (ns_read_socket): Add cast to avoid warning.
2061 (EmacsApp-application:openFiles:): Don't call replyToOpenOrPrint: on
2062 GNUstep.
2063
20642008-08-20 Chong Yidong <cyd@stupidchicken.com>
2065
2066 * xselect.c (x_get_foreign_selection): Return nil if desired
2067 selection could not be obtained, instead of signalling an error.
2068
20692008-08-20 David Reitter <david.reitter@gmail.com>
2070
2071 * nsfns.m (ns_lisp_to_cursor_type): Replace with generic xfns.c.
2072 * nsterm.m: Remove ns-specific code for cursor blinking.
2073 (ns_draw_window_cursor): Clear cursor properly rather than
2074 redrawing the area. Respect width of bar cursors.
2075 These changes enable the use of generic blink-cursor-mode and
2076 generic cursor types in NS and support smooth cursor movements (do
2077 not blink off after command).
2078 * xdisp.c (get_phys_cursor_geometry): Redraw wider rectangle on
2079 Nextstep, too.
2080
20812008-08-19 Kenichi Handa <handa@m17n.org>
2082
2083 * font.c (Vfont_log_deferred): New variable.
2084 (font_add_log): Check Vfont_log_deferred.
2085 (font_deferred_log): New function.
2086
2087 * font.h (font_deferred_log): Extern it.
2088
2089 * fontset.c (reorder_font_vector): Use encoding charset of fonts
2090 for sorting.
2091 (face_for_char): Use deferred log.
2092
20932008-08-18 Kenichi Handa <handa@m17n.org>
2094
2095 * fontset.c (face_for_char): Add font log.
2096
2097 * font.c (font_add_log): Add the font properties :script, :lang,
2098 and :otf in the log.
2099
21002008-08-17 Chong Yidong <cyd@stupidchicken.com>
2101
2102 * xdisp.c: Remove dead code.
2103 (handle_invisible_prop, next_overlay_string): Defer call to
2104 setup_for_ellipsis.
2105 (handle_stop, set_iterator_to_next): Call setup_for_ellipsis.
2106
21072008-08-15 Chong Yidong <cyd@stupidchicken.com>
2108
2109 * xfaces.c (lookup_derived_face): Properly handle possible zero
2110 return value of get_lface_attributes.
2111 (merge_faces): Don't tell lookup_derived_face to signal an error
2112 if face is not found.
2113
2114 * dired.c (Fdirectory_files): Doc fix.
2115
2116 * process.c (make_process): Initialize kill_without_query struct
2117 member.
2118
21192008-08-15 Eli Zaretskii <eliz@gnu.org>
2120
2121 * w32.c (w32_system_process_attributes) [_MSC_VER < 1300]:
2122 Alternative calculation of totphys for Visual Studio 6.
2123
2124 * w32fns.c [_MSC_VER && _MSC_VER < 1300]: Declare HMONITOR.
2125
2126 * w32.c (_MEMORY_STATUS_EX, MEMORY_STATUS_EX, LPMEMORY_STATUS_EX):
2127 Rename from _MEMORYSTATUSEX, MEMORYSTATUSEX, LPMEMORYSTATUSEX.
2128 All users changed.
2129 (stat): Only root directory passed to GetDriveType. Allow RAM
2130 disk as well as local fixed disk when w32-get-true-file-attributes
2131 is set to `local'.
2132 (CopySid_Proc, EqualSid_Proc, GetLengthSid_Proc): New typedefs.
2133 (equal_sid, get_length_sid, copy_sid): New wrapper functions.
2134 (w32_cached_id, w32_add_to_cache): New functions.
2135 (get_name_and_id): Look account names in the cache before calling
2136 lookup_account_sid.
2137 (g_b_init_get_length_sid, g_b_init_equal_sid, g_b_init_copy_sid):
2138 New initialization flags.
2139 (globals_of_w32): Initialize them to zero.
2140 (w32_system_process_attributes): Use w32_cached_id and
2141 w32_add_to_cache.
2142
21432008-08-14 Lawrence Mitchell <wence@gmx.li>
2144
2145 * lread.c (Fread_char, Fread_char_exclusive): If no character
2146 event is read before timeout is reached, return nil, rather than
2147 converting to a number.
2148
21492008-08-14 Chong Yidong <cyd@stupidchicken.com>
2150
2151 * fns.c (use_dialog_box): Doc fix.
2152
2153 * s/darwin.h: Undefine HAVE_RES_INIT, which appears to be harmful
2154 on OS X.
2155
21562008-08-13 Chong Yidong <cyd@stupidchicken.com>
2157
2158 * frame.c (Qns_parse_geometry): New var.
2159 (Fx_parse_geometry): For HAVE_NS, call ns-parse-geometry.
2160
21612008-08-11 Chong Yidong <cyd@stupidchicken.com>
2162
2163 * xdisp.c (x_produce_glyphs): Handle the case when font has no
2164 space character in calculating tabs.
2165
21662008-08-11 Dan Nicolaescu <dann@ics.uci.edu>
2167
2168 * Makefile.in (bootstrap-emacs): Use ln -f in the CANNOT_DUMP case.
2169
21702008-08-10 Glenn Morris <rgm@gnu.org>
2171
2172 * process.c (procfs_system_process_attributes): Use EMACS_INTs to
2173 silence gcc "limited range of data type" warnings in some
2174 make_fixnum_or_float calls.
2175
21762008-08-09 Eli Zaretskii <eliz@gnu.org>
2177
2178 * w32.c (w32_system_process_attributes): If the process does not
2179 exist, return nil.
2180
2181 * w32.c: Include thelp32.h, psapi.h and coding.h.
2182 (_MEMORYSTATUSEX, _PROCESS_MEMORY_COUNTERS_EX): New struct
2183 declarations.
2184 (CreateToolhelp32Snapshot_Proc, Process32First_Proc)
2185 (Process32Next_Proc): New typedefs.
2186 (g_b_init_create_toolhelp32_snapshot, g_b_init_process32_first)
2187 (g_b_init_process32_next, g_b_init_open_thread_token)
2188 (g_b_init_impersonate_self, g_b_init_revert_to_self)
2189 (g_b_init_get_process_memory_info, g_b_init_global_memory_status)
2190 (g_b_init_get_process_working_set_size)
2191 (g_b_init_global_memory_status_ex): New static variables.
2192 (globals_of_w32): Initialize them.
2193 (create_toolhelp32_snapshot, process32_first, process32_next)
2194 (open_thread_token, impersonate_self, revert_to_self)
2195 (get_process_memory_info, get_process_working_set_size)
2196 (global_memory_status, global_memory_status_ex): New wrapper
2197 functions.
2198 (w32_list_system_processes, w32_system_process_attributes)
2199 (enable_privilege, restore_privilege, ltime, process_times):
2200 New functions.
2201 (convert_time_raw): New function.
2202 (convert_time): Remove conversion of FILETIME into time in 100
2203 nsec units, call convert_time_raw instead.
2204
2205 * process.h (w32_list_system_processes, w32_system_process_attributes):
2206 Add prototypes.
2207 (Qeuid, Qegid, Qcomm, Qstate, Qppid, Qpgrp, Qsess, Qttname)
2208 (Qminflt, Qmajflt, Qcminflt, Qcmajflt, Qutime, Qstime, Qcutime)
2209 (Qpri, Qnice, Qthcount, Qstart, Qvsize, Qrss, Qargs, Quser, Qgroup)
2210 (Qetime, Qpcpu, Qpmem, Qtpgid, Qcstime): Add extern declarations.
2211
2212 * process.c (Fsystem_process_attributes): Doc fix.
2213
22142008-08-08 Chong Yidong <cyd@stupidchicken.com>
2215
2216 * xdisp.c (move_it_to): When stopping at a charpos, check if that's
2217 a continued multi-char glyph; if so, advance to the actual glyph.
2218
22192008-08-07 Dan Nicolaescu <dann@ics.uci.edu>
2220
2221 * s/darwin.h (OTHER_FILES): Do not define here, defined in config.in.
2222
2223 * Makefile.in (ALL_OBJC_CFLAGS): New variable.
2224 (.m.o): Use it.
2225 * config.in: Regenerate.
2226
22272008-08-07 Chong Yidong <cyd@stupidchicken.com>
2228
2229 * xdisp.c (redisplay_window): Revert last change.
2230 (try_window): Check bottom scroll margin too.
2231
22322008-08-06 Adrian Robert <Adrian.B.Robert@gmail.com>
2233
2234 * config.in: Regenerate.
2235
2236 * Makefile.in (emacs): Remove ifndef NS conditional for 'emacs
2237 -list-load-path-shadows'.
2238 (nsgui.h): Reduce number of things depending on it.
2239
22402008-08-06 Chong Yidong <cyd@stupidchicken.com>
2241
2242 * xdisp.c (try_scrolling): Use iterator to find the scroll margin,
2243 instead of window-end which does the wrong thing at eob.
2244 (try_cursor_movement): Minor optimization.
2245 (redisplay_window): If scroll margin is defined, don't assume
2246 window doesn't need scrolling.
2247
22482008-08-06 Adrian Robert <Adrian.B.Robert@gmail.com>
2249
2250 * config.in: Regenerate.
2251
2252 * Makefile.in: Move nsXXX.m dependencies into big alphabetical list.
2253 (mostlyclean): Don't delete *.d under NS.
2254
2255 * nsterm.h (NS_HAVE_INTEGER): Change to NS_HAVE_NSINTEGER.
2256
22572008-08-06 Kenichi Handa <handa@m17n.org>
2258
2259 * xfont.c (xfont_list_family): Return a list of symbols, not strings.
2260
22612008-08-06 Andreas Schwab <schwab@suse.de>
2262
2263 * config.in: Regenerate.
2264
22652008-08-05 Chong Yidong <cyd@stupidchicken.com>
2266
2267 * xdisp.c (redisplay_window): Don't enforce scroll-margin when
2268 forcing a window start.
2269
2270 * fileio.c (Vauto_save_list_file_name): Move here from file.el.
2271 (auto_save_1): Update modtime when auto-save-list-file-name is on.
2272
22732008-08-04 Adrian Robert <Adrian.B.Robert@gmail.com>
2274
2275 * emacs.c (main): Under NS, set working dir to HOME when get a "psn"
2276 argument.
2277
22782008-08-05 Juanma Barranquero <lekktu@gmail.com>
2279
2280 * buffer.c (syms_of_buffer) <scroll-up-aggressively>:
2281 <scroll-down-aggressively, before-change-functions>:
2282 <after-change-functions>: Reflow docstrings.
2283
22842008-08-04 Adrian Robert <Adrian.B.Robert@gmail.com>
2285 Ken Raeburn <raeburn@gnu.org>
2286
2287 Dock menu customization, based on a patch by Ken Raeburn, plus some
2288 other fixes.
2289 * nsmenu.m (dockMenu): New variable.
2290 (EmacsDialog -clicked:): Fix mistake in change of 2008-07-17.
2291
2292 * nsterm.h (dockMenu): Declare.
2293
2294 * nsterm.m (KEY_NS_NEW_FRAME): New definition.
2295 (ns_term_init): Initialize dockMenu.
2296 (EmacsApp -newFrame:, -applicationDockMenu:): New methods.
2297 (EmacsView -windowShouldClose:): Don't behave specially if <= 1 frame
2298 left.
2299
2300 * lisp.h (LSB_TAG): Use on DARWIN_OS, not NS_IMPL_COCOA.
2301
23022008-08-04 Chong Yidong <cyd@stupidchicken.com>
2303
2304 * nsterm.h: Test directly for NS_HAVE_INTEGER before defining it.
2305
2306 * config.in: Regenerate.
2307
23082008-08-04 Seiji Zenitani <zenitani@mac.com>
2309
2310 * nsfns.m (x-create-frame): Set the frame parameter alpha to nil.
2311
23122008-08-04 Chong Yidong <cyd@stupidchicken.com>
2313
2314 * nsterm.h (find_and_call_menu_selection): Fix prototype.
2315
23162008-08-04 Adrian Robert <Adrian.B.Robert@gmail.com>
2317
2318 * emacs.c (main: unexec_init_emacs_zone): Call if on DARWIN_OS.
2319
2320 * keyboard.h: Comment an #endif.
2321
2322 * lisp.h (have_menus_p): Adjust comment.
2323
2324 * menu.c (find_and_return_menu_selection): Fix comparison with
2325 client_data.
2326
2327 * nsmenu.m (popup_activated_flag): New variable.
2328 (popup_activated): New function.
2329 (menu-or-popup-active-p): New exported lisp definition.
2330 (ns_popup_menu): Set popup_activated_flag. Call discard_menu_items()
2331 when popup done.
2332 (ns_popup_dialog): Set popup_activated_flag.
2333
2334 * nsterm.m (EmacsView -conversationIdentifier): Use NSInteger
2335 version for GNUstep (handled by conditional typedef in nsterm.m).
2336 (ns_get_color): Remove special-casing for "darkblue", "dark blue" (now
2337 in rgb.txt).
2338
2339 * process.c (init_process): Use DARWIN_OS, not DARWIN.
2340
2341 * sysselect.h: Conditionalize init_process undef on DARWIN_OS.
2342
2343 * syssignal.h (FORWARD_SIGNAL_TO_MAIN_THREAD): Do it also under NS.
2344
2345 * xdisp.c (redisplay_internal, note_mouse_highlight): Under NS,
2346 shortcircuit if popup_activated like GTK and X toolkit.
2347
2348 * m/inter386.h: Change DARWIN to DARWIN_OS.
2349
2350 * s/darwin.h: Add #define DARWIN_OS. Get rid of C_SWITCH_SYSTEM def.
2351 Change LIBS_MACGUI to LIBS_NSGUI. Move temacs-conditionalized defs
2352 closer to C_SWITCH_SYSTEM_TEMACS so usage is understood. Expand
2353 comment on NO_SOCK_SIGIO.
2354
23552008-08-03 Chong Yidong <cyd@stupidchicken.com>
2356
2357 * nsterm.m (windowDidResize): Remove stopModal call.
2358
23592008-08-03 Andreas Schwab <schwab@suse.de>
2360
2361 * vm-limit.c (get_lim_data) [HAVE_GETRLIMIT && RLIMIT_AS]: Define.
2362 (check_memory_limits): Don't handle HAVE_GETRLIMIT here.
2363
23642008-08-02 Chong Yidong <cyd@stupidchicken.com>
2365
2366 * vm-limit.c (check_memory_limits): Don't use getrlimit on cygwin.
2367 Don't use uninitialized pointer variable when using getrlimit.
2368
23692008-08-02 Jason Rumney <jasonr@gnu.org>
2370
2371 * w32font.c (compute_metrics): Don't mess with glyph_idx setting here.
2372
23732008-08-02 Eli Zaretskii <eliz@gnu.org>
2374
2375 * alloc.c (NSTATICS): Bump to 0x640.
2376
2377 * s/gnu-linux.h (HAVE_PROCFS, LISTPROC, PROCATTR): New defines.
2378
2379 * lisp.h: Add prototype for directory_files_internal.
2380
2381 * process.c (Fsystem_processes_list, Fsystem_process_attributes):
2382 New functions.
2383 (syms_of_process): Defsubr them. Add initializations for various
2384 Q* symbols used in procfs_system_process_attributes.
2385 (procfs_list_system_processes, procfs_system_process_attributes)
2386 [HAVE_PROCFS]: New functions.
2387 (time_from_jiffies, ltime_from_jiffies, get_up_time, procfs_ttyname)
2388 (procfs_get_total_memory): New functions.
2389
23902008-08-01 Juanma Barranquero <lekktu@gmail.com>
2391
2392 * xfaces.c (Fx_load_color_file): Fix previous change;
2393 it is #ifdef WINDOWSNT, not WINDOWS_NT.
2394
23952008-08-01 Michael Albinus <michael.albinus@gmx.de>
2396
2397 * dbusbind.c (xd_read_message): Handle D-Bus error messages.
2398
23992008-08-01 Adrian Robert <Adrian.B.Robert@gmail.com>
2400
2401 * nsterm.h (NSInteger, NSUInteger): Add defines for non-Leopard.
2402
24032008-08-01 Chong Yidong <cyd@stupidchicken.com>
2404
2405 * nsfns.m (ns_frame_parm_handlers): Add empty entry for x_set_alpha.
2406
2407 * nsterm.m (EmacsApp -application:openFiles:): GNUstep does not
2408 define NSApplicationDelegateReplySuccess.
2409 (EmacsView -converstationIdentifier): Use long instead of
2410 NSInteger for GNUstep, since it doesn't have NSInteger.
2411
2412 * xmenu.c: Revert last change.
2413
2414 * keyboard.h: Fix last change.
2415
24162008-08-01 Juanma Barranquero <lekktu@gmail.com>
2417
2418 * xfaces.c (x-load-color-file): Use RGB() instead of manually shifting
2419 on Windows.
2420
24212008-08-01 Adrian Robert <Adrian.B.Robert@gmail.com>
2422
2423 Warning clearing and clean-up in NS port.
2424 * keyboard.h (xmalloc_widget_value, digest_single_submenu):
2425 Add prototypes.
2426 * nsgui.h (FACE_DEFAULT): Remove, unused.
2427 (XGCValues): Change colors to unsigned long.
2428 * nsterm.h (EmacsApp): Add declaration of all methods implemented in
2429 nsterm.m.
2430 (EmacsMenu -addItemWithWidgetValue:): Change to use NSMenuItem class.
2431 (ns_list_fonts): Remove, unused.
2432 (ns_font_to_xlfd, ns_fontname_to_xlfd): Drop prototypes.
2433 * nsfns.m (interpret_services_menu): Use NSMenuItem class.
2434 * nsfont.m (nsfont_open): Fix cast error in glyphs,metrics alloc.
2435 (nsfont_draw): Compare face colors to 0, not nil.
2436 * nsmenu.m (struct widget_value): Drop unneeded declaration.
2437 (EmacsMenu -addItemWithWidgetValue:, -fillWithWidgetValue:)
2438 (-addSubmenuWithTitle:): Use NSMenuItem class.
2439 (ns_popup_menu): Use NO, not NULL, for enabled setting.
2440 * nsterm.m (ns_draw_glyph_string): Don't compare font to ~0.
2441 (ns_clip_to_row): Make gc arg a BOOL.
2442 (ns_draw_fringe_bitmap, ns_draw_window_cursor): Use YES, NO in
2443 ns_clip_to_row() call.
2444 (ns_draw_glyph_string): Drop face comparison to ~0 (no longer
2445 used). Cast FRAME_FONT assignments.
2446 (ns_read_socket): Cast call to EmacsApp-fulfillService:withArg:.
2447 (ns_string_to_lispmod): Change arg to const char.
2448 (ns_term_init): Use NSMenuItem class.
2449 (EmacsApp -openFile:): Move to different section of file.
2450 (EmacsApp -application:openFiles:): Don't return a value, call
2451 -replyToOpenOrPrint:.
2452 (EmacsView -keyDown:): Fix up cast.
2453 (EmacsView -converstationIdentifier): Use NSInteger instead of long.
2454 (EmacsView -menuDown:): Cast tag in call to
2455 find_and_call_menu_selection().
2456 (ns_list_fonts): Remove, unused.
2457 (ns_font_to_xlfd): Make static. Cast result of UTF8String.
2458 (ns_fontname_to_xlfd): Make static.
2459 * w32menu.c (xmalloc_widget_value, digest_single_submenu):
2460 Remove prototypes (now in keyboard.h).
2461 (next_menubar_widget_id): Remove, unused.
2462 * xmenu.c (xmalloc_widget_value, digest_single_submenu):
2463 Remove prototypes (now in keyboard.h).
2464 * xfaces.c (ns_list_fonts, w32_list_fonts): Remove, unused.
2465
24662008-08-01 Dan Nicolaescu <dann@ics.uci.edu>
2467
2468 * Makefile.in (dispnew.o, gtkutil.o, sound.o, atimer.o)
2469 (floatfns.o): Depend on syssignal.h.
2470 (term.o): Depend on syssignal.h, systty.h, and $(INTERVAL_SRC).
2471
2472 * systty.h: Fix previous change that removed BSD_TERMIOS.
2473 Add comments to #ifdefs.
2474
24752008-08-01 Adrian Robert <Adrian.B.Robert@gmail.com>
2476
2477 * w32fns.c (w32-load-color-file): Remove.
2478 (x-open-connection): Use renamed Fx_load_color_file.
2479 * xfaces.c (x-load-color-file): Add.
2480 * nsterm.m (ns_initialize): Load colors from etc/rgb.txt instead of
2481 Emacs.clr.
2482 (hide_hourglass): BLOCK_INPUT before UNBLOCK.
2483
24842008-07-31 Michael Albinus <michael.albinus@gmx.de>
2485
2486 * dbusbind.c (Fdbus_call_method_asynchronously)
2487 (Fdbus_method_error_internal): New defuns.
2488 (xd_read_message): Handle also reply messages.
2489 (Vdbus_registered_functions_table): Extend docstring.
2490
24912008-07-31 Juanma Barranquero <lekktu@gmail.com>
2492
2493 * keyboard.c (gobble_input): Fix previous change.
2494
24952008-07-31 Dan Nicolaescu <dann@ics.uci.edu>
2496
2497 * bitmaps/README:
2498 * xfns.c:
2499 * termcap.c:
2500 * term.c:
2501 * syswait.h:
2502 * systty.h:
2503 * systime.h:
2504 * syssignal.h:
2505 * sysdep.c:
2506 * process.h:
2507 * process.c:
2508 * print.c:
2509 * ndir.h:
2510 * lread.c:
2511 * keyboard.c:
2512 * getpagesize.h:
2513 * floatfns.c:
2514 * fileio.c:
2515 * emacs.c:
2516 * doc.c:
2517 * dispnew.c:
2518 * dired.c:
2519 * data.c:
2520 * callproc.c:
2521 * buffer.c:
2522 * README:
2523 * Makefile.in:
2524 * s/template.h:
2525 * s/msdos.h:
2526 * m/vax.h: Remove VMS support.
2527 * s/vms.h:
2528 * vlimit.h:
2529 * uaf.h:
2530 * temacs.opt:
2531 * param.h:
2532 * ioctl.h: Remove file.
2533
25342008-07-31 Dan Nicolaescu <dann@ics.uci.edu>
2535
2536 * s/ms-w32.h (MULTI_KBOARD): Remove.
2537 * xterm.c:
2538 * xselect.c:
2539 * xfns.c:
2540 * window.c:
2541 * w32term.c:
2542 * w32fns.c:
2543 * terminal.c:
2544 * termhooks.h:
2545 * term.c:
2546 * sysdep.c:
2547 * keyboard.h:
2548 * keyboard.c:
2549 * frame.h:
2550 * frame.c:
2551 * frame.c: Remove references to MULTI_KBOARD, it is now the default.
2552 * config.in: Regenerate.
2553
25542008-07-30 Jason Rumney <jasonr@gnu.org>
2555
2556 * w32font.h (struct w32font_info): Use unicode version of textmetrics.
2557
2558 * w32font.c (w32font_encode_char): Leave as unicode if in range.
2559 (w32font_open_internal): Get unicode version of textmetrics.
2560 Don't enable or disable glyph indices here.
2561 (w32font_open): Disable use of glyph indices.
2562
2563 * w32uniscribe.c (uniscribe_open): Enable use of glyph indices.
2564
25652008-07-30 Chong Yidong <cyd@stupidchicken.com>
2566
2567 * minibuf.c (Vread_buffer_function): Doc fix.
2568
25692008-07-30 John Paul Wallington <jpw@pobox.com>
2570
2571 * minibuf.c (read_buffer_completion_ignore_case): New var.
2572 (Fread_buffer): Use it.
2573
25742008-07-30 Dan Nicolaescu <dann@ics.uci.edu>
2575
2576 * systty.h (sensemode): Remove empty #if. Remove reference to
2577 BSD_TERMIOS, unused.
2578
2579 * sysdep.c: Remove reference to DGUX.
2580 (closedir): Remove reference to BROKEN_CLOSEDIR, unused.
2581
2582 * config.in: Regenerate.
2583
25842008-07-30 Jason Rumney <jasonr@gnu.org>
2585
2586 * w32uniscribe.c (uniscribe_encode_char): Fix glyph buffer size.
2587
25882008-07-29 Jason Rumney <jasonr@gnu.org>
2589
2590 * w32uniscribe.c (uniscribe_shape): Avoid using context if cache
2591 is populated.
2592 (uniscribe_encode_char): Always use uniscribe.
2593 Avoid using context if cache is populated.
2594
25952008-07-29 Jan Djärv <jan.h.d@swipnet.se>
2596
2597 * xmenu.c (Fx_menu_bar_open_internal): Use activate_item signal to
2598 open menu.
2599
2600 * gtkutil.c (menu_nav_ended): Remove.
2601 (create_menus): Remove signal connect for menu_nav_ended.
2602
26032008-07-28 Chong Yidong <cyd@stupidchicken.com>
2604
2605 * xdisp.c (redisplay_window): Check return value of
2606 compute_window_start_on_continuation_line before forcing a window
2607 start.
2608
26092008-07-28 Jason Rumney <jasonr@gnu.org>
2610
2611 * w32font.c (w32font_text_extents): Use w32_metric_cache consistently.
2612
2613 * w32term.c (w32_enable_unicode_output, cleartype_active):
2614 Remove obsolete display options.
2615 (x_draw_glyph_string_background): Don't use old cleartype_active
2616 workaround.
2617 (w32_initialize): Remove cleartype_active initialization.
2618 (syms_of_w32term): Remove w32_enable_unicode_output initialization.
2619
26202008-07-28 Andreas Schwab <schwab@suse.de>
2621
2622 * lisp.h (init_weak_hash_tables, syms_of_font)
2623 (xd_read_queued_messages, syms_of_dbusbind): Declare.
2624 (remove_hash_entry): Don't declare.
2625 * eval.c (maybe_call_debugger): Make static and move before use.
2626 * gtkutil.c: Include <X11/Xft/Xft.h> if HAVE_XFT.
2627 * xdisp.c: Include "gtkutil.h" if USE_GTK.
2628 * xterm.h (x_set_frame_alpha): Declare.
2629
26302008-07-28 Jan Djärv <jan.h.d@swipnet.se>
2631
2632 * gtkutil.c (menu_nav_ended): Revert change from 2008-07-24.
2633 (create_menus): Connect selection-done to menu_nav_ended.
2634
26352008-07-27 Adrian Robert <Adrian.B.Robert@gmail.com>
2636
2637 * nsfns.m (x-create-frame): Add copy of parms argument to beginning.
2638 Set Vx_resource_name to a fallback. Replace read of 'buffered'
2639 parameter with read of 'alpha' one.
2640 (Qns_frame_parameter): Remove.
5582fbc7 2641 * nsselect.m (selection-coding-system)
aac0c6e3
MR
2642 (next-selection-coding-system, Vselection_coding_system)
2643 (Vnext_selection_coding_system): Drop.
2644
26452008-07-27 Adrian Robert <Adrian.B.Robert@gmail.com>
2646
2647 * nsfns.m (do-applescript, do_applescript): Rename to
2648 ns-do-applescript, ns_do_applescript, and move within file.
2649
26502008-07-27 Dan Nicolaescu <dann@ics.uci.edu>
2651
2652 Remove support for Mac Carbon.
2653 * mactoolbox.c:
2654 * macterm.h:
2655 * macterm.c:
2656 * macselect.c:
2657 * macmenu.c:
2658 * macgui.h:
2659 * macfns.c:
2660 * mac.c: Remove file.
2661 * s/darwin.h:
2662 * m/intel386.h:
2663 * xfaces.c:
2664 * xdisp.c:
2665 * window.c:
2666 * tparam.c:
2667 * termhooks.h:
2668 * termcap.c:
2669 * term.c:
2670 * syssignal.h:
2671 * sysselect.h:
2672 * sysdep.c:
2673 * process.c:
2674 * lread.c:
2675 * lisp.h:
2676 * keyboard.c:
2677 * image.c:
2678 * fringe.c:
2679 * frame.h:
2680 * frame.c:
2681 * fontset.c:
2682 * font.h:
2683 * font.c:
2684 * fns.c:
2685 * fileio.c:
2686 * emacs.c:
2687 * dispnew.c:
2688 * dispextern.h:
2689 * config.in:
2690 * atimer.c:
2ae37cf0 2691 * Makefile.in: Remove code for Carbon.
aac0c6e3 2692
f0131492 26932008-07-26 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
aac0c6e3
MR
2694
2695 * macterm.c (XDrawLine) [USE_MAC_IMAGE_IO]: Remove spurious return.
2696
26972008-07-26 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
2698
2699 * macterm.h (kCGBitmapByteOrder32Host): New define for
2700 non-universal SDKs.
2701
2702 * image.c (mac_create_cg_image_from_image, image_load_image_io)
2703 [USE_MAC_IMAGE_IO]: Remove conditionals for kCGBitmapByteOrder32Host.
2704
2705 * macterm.c (XDrawLine, XCreatePixmapFromBitmapData)
2706 [USE_MAC_IMAGE_IO]: Remove conditionals for kCGBitmapByteOrder32Host.
2707
27082008-07-26 David Robinow <drobinow@gmail.com> (tiny change)
2709
2710 * w32inevt.c: Include dispextern.h.
2711
27122008-07-26 Andreas Schwab <schwab@suse.de>
2713
2714 * print.c (print_object): Fix off-by-one in last change.
2715
27162008-07-25 Juanma Barranquero <lekktu@gmail.com>
2717
2718 * term.c (syms_of_term): Don't initialize default_orig_pair,
2719 default_set_foreground and default_set_background on Windows.
2720
27212008-07-25 Jason Rumney <jasonr@gnu.org>
2722
2723 * w32uniscribe.c (uniscribe_shape): Pass NULL for control arg to
2724 ScriptItemize. Clean up return value checking. Remove unused
2725 variables.
2726 (uniscribe_encode_char): Encode non-BMP characters with uniscribe
2727 shaping engine.
2728
2729 * w32font.c (w32font_has_char): Handle the case where we can't
2730 determine the script for a character.
2731
27322008-07-25 Chong Yidong <cyd@stupidchicken.com>
2733
2734 * term.c (syms_of_term): Initialize default_orig_pair,
2735 default_set_foreground, and default_set_background.
2736
2737 * getloadavg.c (nl): Rename to name_list to avoid ncurses.h
2738 clash (bug#86).
2739 (getloadavg): Callers changed.
2740
2741 * image.c (svg_load_image): Fix last change.
2742 (svg_load_image): Use rsvg_handle_get_dimensions to check that
2743 image size is valid. Use g_object_unref instead of deprecated
2744 rsvg_handle_free to free rsvg handle.
2745 (x_from_xcolors): Don't initialize pixmap (silence compiler).
2746
27472008-07-25 Jason Rumney <jasonr@gnu.org>
2748
2749 * w32font.c (w32font_encode_char): Encode characters outside BMP as
2750 surrogates before looking up glyph index.
2751 (w32font_text_extents): Encode as surrogates if falling back to
2752 functions that need UTF-16 wide chars.
2753
2754 * w32uniscribe.c (uniscribe_encode_char): Encode characters outside
2755 BMP as surrogates before looking up glyph index.
2756
27572008-07-25 Chong Yidong <cyd@stupidchicken.com>
2758
2759 * image.c (svg_load_image): Check for failure in return value of
2760 rsvg_handle_get_pixbuf. Free rsvg handle when done.
2761
27622008-07-25 Jason Rumney <jasonr@gnu.org>
2763
2764 * w32font.c (Fx_select_font): Reverse sense of second arg.
2765
27662008-07-24 Stefan Monnier <monnier@iro.umontreal.ca>
2767
2768 * syntax.c (struct lisp_parse_state, char_quoted, inc_bytepos)
2769 (dec_bytepos, find_defun_start): Use EMACS_INT for buffer positions.
2770
2771 * puresize.h (PURESIZE_CHECKING_RATIO): New macro.
2772 (PURESIZE): Use it.
2773
27742008-07-24 Dan Nicolaescu <dann@ics.uci.edu>
2775
2776 * m/amdx86-64.h (HAVE_LIB64_DIR): Consolidate ifdefs.
2777 * m/alpha.h (TEXT_END):
2778 * m/ibmrs6000.h (TEXT_END):
2779 * m/macppc.h (TEXT_END):
2780 * s/darwin.h (TEXT_END):
2781 * s/msdos.h (TEXT_END): Remove, unused.
2782 * s/gnu-linux.h (BSD_PGRPS): Add a comment.
2783 * s/cygwin.h: Remove comment.
2784
2785 * ecrt0.c (NODOT_GLOBAL_START): Remove code, unused.
2786 (DOT_GLOBAL_START): Remove conditional, redundant for CRT0_DUMMIES.
2787 * m/intel386.h (DOT_GLOBAL_START):
2788 * m/vax.h (DOT_GLOBAL_START): Remove, redundant with CRT0_DUMMIES.
2789 (USG): Remove, file not used on USG platforms.
2790
2791 * Makefile.in (HAVE_X11): Remove empty #else.
2792
27932008-07-24 Andreas Schwab <schwab@suse.de>
2794
2795 * fileio.c (Finsert_file_contents): Properly adjust undo list
2796 after format conversion.
2797
27982008-07-24 Jan Djärv <jan.h.d@swipnet.se>
2799
2800 * gtkutil.c (xg_get_font_name): Cast w to GTK_FONT_SELECTION_DIALOG.
2801 (menu_nav_ended): Remove.
2802 (create_menus): Remove signal connect for menu_nav_ended.
2803 (xg_update_menubar): Also take deactivate_cb as parameter, pass it to
2804 create_menus.
2805 (xg_modify_menubar_widgets): Pass deactivate_cb to xg_update_menubar.
2806
28072008-07-23 Jason Rumney <jasonr@gnu.org>
2808
2809 * w32font.c (w32_enumfont_pattern_entity): Return height consistent
2810 with opened font.
2811 (w32font_open): Set font type to gdi.
2812
2813 * w32uniscribe.c (uniscribe_open): Set font type to uniscribe.
2814
28152008-07-23 Dan Nicolaescu <dann@ics.uci.edu>
2816
2817 * s/usg5-4.h (ADDR_CORRECT): Remove, unused.
2818 * unexaix.c (ADDR_CORRECT): Remove conditional, the only user
2819 defines it.
2820 * unexec.c (ADDR_CORRECT): Define unconditionally.
2821
2822 * m/ibmrs6000.h (C_SWITCH_MACHINE): Remove.
2823
2824 * unexec.c: Remove code depending on !COFF and USG, the file is
2825 not used for such systems.
2826
2827 * s/netbsd.h (A_TEXT_OFFSET, A_TEXT_SEEK):
2828 * s/freebsd.h (A_TEXT_OFFSET, A_TEXT_SEEK): Remove, unused.
2829 (LD_SWITCH_SYSTEM_1): Remove, update users.
2830
2831 * s/darwin.h (DATA_END):
2832 * m/intel386.h (DATA_END):
2833 * m/ibmrs6000.h (DATA_END):
2834 * m/alpha.h (DATA_END): Remove, unused.
2835
2836 * config.in: Regenerate.
2837 * s/ms-w32.h (subprocesses): Define unconditionally.
2838 * s/template.h (subprocesses): Update comment.
2839 * s/vms.h (subprocesses):
2840 * s/usg5-4.h (subprocesses):
2841 * s/hpux10-20.h (subprocesses):
2842 * s/gnu-linux.h (subprocesses):
2843 * s/cygwin.h (subprocesses):
2844 * s/bsd-common.h (subprocesses):
2845 * s/aix4-2.h (subprocesses):
2846 * s/darwin.h (subprocesses): Do not define, defined by default now.
2847
2848 * Makefile.in (C_SWITCH_SITE, LD_SWITCH_SITE): Remove, unused.
2849 Remove all references.
2850 (temacs): Add GNUstep specific ld flags.
2851
2852 * nsterm.m (syms_of_nsterm): Provide ns, not ns-windowing,
2853 similarly to what X does.
2854
28552008-07-22 Adrian Robert <Adrian.B.Robert@gmail.com>
2856
2857 * nsfns.m (x-list-fonts): Remove.
2858 (syms_of_nsfns): Drop the x-list-fonts declaration.
2859 * nsterm.m: Get rid of remaining "//" comments.
2860
28612008-07-22 Chong Yidong <cyd@stupidchicken.com>
2862
2863 * xselect.c (Fx_rotate_cut_buffers_internal): Doc fix.
2864
2865 * nsselect.m (Fns_selection_exists_p, Fns_selection_owner_p)
2866 (Fx_get_selection_internal, Fns_rotate_cut_buffers_internal)
2867 (Fns_own_selection_internal, Fx_disown_selection_internal)
2868 (Fns_get_cut_buffer_internal, Fns_store_cut_buffer_internal):
2869
2870 * nsmenu.m (Fns_reset_menu, Fx_popup_menu): Change to use 'doc: /*
2871 ... */' style of docstrings. Doc fixes.
2872
28732008-07-22 Dan Nicolaescu <dann@ics.uci.edu>
2874
2875 * terminfo.c (UP, BC, PC): Undo previous change.
2876
2877 * nsfns.m: Rename ns prefixed functions/variables to the
2878 corresponding x versions. Update references.
2879
28802008-07-22 Stefan Monnier <monnier@iro.umontreal.ca>
2881
2882 * syntax.c (char_quoted): Check "charpos > beg" before decrementing.
2883
28842008-07-22 Dan Nicolaescu <dann@ics.uci.edu>
2885
2886 * nsfns.m (x_set_menu_bar_lines, x_set_tool_bar_lines):
2887 Remove forwarding functions.
2888 (ns_set_menu_bar_lines): Rename to x_set_menu_bar_lines, make
2889 non-static.
2890 (ns_set_tool_bar_lines): Rename to x_set_tool_bar_lines, make
2891 non-static.
2892 (ns_frame_parm_handlers): Use the new names.
2893 (syms_of_nsfns): Move to the end of file.
2894
2895 * nsterm.m (syms_of_nsterm): Move to the end of file.
2896
2897 * dispnew.c (init_display): Remove code for X10.
2898
28992008-07-22 Jason Rumney <jasonr@gnu.org>
2900
2901 * w32proc.c (Fw32_long_file_name): Don't append dir separator to
2902 bare drive.
2903
29042008-07-22 Adrian Robert <Adrian.B.Robert@gmail.com>
2905
2906 * nsterm.m (syms_of_nsterm): Remove debugging println.
2907
29082008-07-22 David Reitter <david.reitter@gmail.com>
2909
2910 * nsfns.m (do_applescript, F_do_applescript): NS version of the
2911 Carbon implementation of the same functionality: execute arbitrary
2912 AppleScript code.
2913
29142008-07-21 Adrian Robert <Adrian.B.Robert@gmail.com>
2915
2916 * nsfns.m (Fx_create_frame, Fx_read_file_name, Fx_get_resource)
2917 (Fx_set_resource, Fx_set_alpha, Fx_server_max_request_size)
2918 (Fx_server_vendor, Fx_server_version, Fx_display_screens)
2919 (Fx_display_mm_height, Fx_display_mm_width)
2920 (Fx_display_backing_store, Fx_display_visual_class)
2921 (Fx_display_save_under, Fx_open_connection)
2922 (Fx_close_connection, Fx_hide_emacs, Fx_font_name)
2923 (Fx_list_colors, Fx_perform_service, Fx_color_defined_p)
2924 (Fx_color_values, Fxw_display_color_p, Fx_display_grayscale_p)
2925 (Fx_display_pixel_width, Fx_display_pixel_height)
2926 (Fx_display_usable_bounds, Fx_display_planes)
2927 (Fx_display_color_cells, Vns_icon_type_alist): Change to use 'doc: /*
2928 ... */' style of docstrings.
2929
29302008-07-21 Dan Nicolaescu <dann@ics.uci.edu>
2931
2932 * m/mips.h (LOAD_AVE_TYPE, LOAD_AVE_CVT): Do not define, not used
2933 on this platform.
2934 (mips):
2935 * m/iris4d.h (mips): Do not define.
2936 * sysdep.c (init_sys_modes): Use __mips__ instead of mips.
2937
2938 * m/ibmrs6000.h (LD_SWITCH_SITE): Remove.
2939
2940 * image.c:
2941 * nsfns.m:
2942 * nsselect.m:
2943 * nsterm.h:
2944 * nsterm.m: Rename ns prefixed functions/variables to the
2945 corresponding x versions. Update references.
2946
2947 * m/ibms390x.h (NO_REMAP): Do not undefine.
2948
2949 * m/amdx86-64.h: Use SOLARIS2 instead of sun.
2950
29512008-07-21 Chong Yidong <cyd@stupidchicken.com>
2952
2953 * nsfns.m: Change NS to Nextstep in docstrings and error messages.
2954 (Fns_create_frame, Fns_read_file_name, Fns_get_resource)
2955 (Fns_set_resource, Fns_set_alpha, Fns_server_max_request_size)
2956 (Fns_server_vendor, Fns_server_version, Fns_display_screens)
2957 (Fns_display_mm_height, Fns_display_mm_width)
2958 (Fns_display_backing_store, Fns_display_visual_class)
2959 (Fns_display_save_under, Fns_open_connection)
2960 (Fns_close_connection, Fns_hide_emacs, Fns_font_name)
2961 (Fns_list_colors, Fns_perform_service, Fns_color_defined_p)
2962 (Fns_color_values, Fxw_display_color_p, Fx_display_grayscale_p)
2963 (Fns_display_pixel_width, Fns_display_pixel_height)
2964 (Fns_display_usable_bounds, Fx_display_planes)
2965 (Fns_display_color_cells, Vns_icon_type_alist): Doc fixes.
2966
29672008-07-21 Ami Fischman <ami@fischman.org> (tiny change)
2968
2969 * print.c (print_object): Check print_depth before searching for
2970 circularities.
2971
29722008-07-21 Michael Albinus <michael.albinus@gmx.de>
2973
2974 * dbusbind.c (Fdbus_register_signal): Use sprintf + strcat instead
2975 only sprintf.
2976
29772008-07-21 Kenichi Handa <handa@m17n.org>
2978
2979 * ftfont.c (adjust_anchor): Check if DeltaValue is not NULL.
2980
29812008-07-20 Andreas Schwab <schwab@suse.de>
2982
2983 * syntax.c (find_start_pos, find_start_value)
2984 (find_start_value_byte, find_start_begv, find_defun_start)
2985 (back_comment, scan_sexps_forward): Use EMACS_INT for buffer positions.
2986
29872008-07-20 Dan Nicolaescu <dann@ics.uci.edu>
2988
2989 * s/sol2-3.h: Insert contents of s/sol2.h.
2990 (LD_SWITCH_SYSTEM): Remove redundant definition.
2991 * s/sol2.h: Remove, unused.
2992
29932008-07-20 Adrian Robert <Adrian.B.Robert@gmail.com>
2994
2995 * nsterm.m (ns_get_color): Recognize HSB,AHSB be synonyms for HSV,AHSV.
2996
29972008-07-20 Adrian Robert <Adrian.B.Robert@gmail.com>
2998
2999 * Makefile.in (ns_appdir): Fix typo in find command.
3000
30012008-07-20 Dan Nicolaescu <dann@ics.uci.edu>
3002
3003 * m/intel386.h (NO_REMAP): Do no define for USG, not used.
3004
3005 * s/usg5-4.h (LIBS_SYSTEM): Remove, system for which this was
3006 added not supported anymore.
3007
3008 * s/usg5-4-2.h (LIBS_SYSTEM):
3009 * s/sol2.h (LIBS_SYSTEM): Do not undefine.
3010
3011 * s/netbsd.h (GETPGRP_NO_ARG, N_TRELOFF):
3012 * s/lynxos.h (GETPGRP_NO_ARG):
3013 * s/hpux10-20.h (NO_SIOCTL_H):
3014 * s/gnu.h (GETPGRP_NO_ARG):
3015 * s/gnu-linux.h (NO_SIOCTL_H):
3016 * s/freebsd.h (GETPGRP_NO_ARG, N_TRELOFF):
3017 * s/cygwin.h (GETPGRP_NO_ARG):
3018 * s/irix6-5.h (LIBS_SYSTEM, GETPGRP_NO_ARG): Remove, unused.
3019 (C_DEBUG_SWITCH): Remove duplicate definition.
3020
3021 * m/ibms390.h: Remove boilerplate comments.
3022
3023 * sysdep.c (closedir): Use SOLARIS2 instead of sun && USG5_4.
3024
3025 * process.c (HAVE_SERIAL): Consolidate ifdefs.
3026 (wait_reading_process_output): Remove code for SunOS, platform not
3027 supported anymore. Use SOLARIS2 instead of sun.
3028
30292008-07-19 Adrian Robert <Adrian.B.Robert@gmail.com>
3030
3031 * font.c (font_open_by_name): Under NS, default lface height to zero.
3032 (font_open_for_lface): Under NS, set size based on frame fontsize.
3033 * nsterm.m (EmacsView-changeFont:): Remove some commented code.
3034 * frame.c (x_set_frame_parameters): Remove HAVE_NS ifdef.
3035
30362008-07-19 Adrian Robert <Adrian.B.Robert@gmail.com>
3037
3038 * nsterm.m (ns_antialias_text, ns_use_qd_smoothing)
3039 (ns_use_system_highlight_color): Switch these from DEFVAR_BOOL to
3040 DEFVAR_LISP and change all code accordingly to use Qt/Qnil instead of
3041 YES/NO.
3042 * nsterm.h (prevUseHighlightColor): Make a Lisp_Object.
3043 * nsfont.m (nsfont_draw): Treat ns_use_qd_smoothing as Lisp_Object.
3044 * Makefile.in (clean): Clear out build destination dir.
3045
30462008-07-19 Adrian Robert <Adrian.B.Robert@gmail.com>
3047
3048 * Makefile.in (nsgui.h-related dependencies): Remove abbrev, xfns,
3049 xterm, xselect.
3050 * lisp.h: Remove declaration of hash_remove.
3051 * nsgui.h: Remove redefinitions of hash_remove.
3052 * fns.c (hash_remove): Rename to hash_remove_from_table.
3053
30542008-07-19 Seiji Zenitani <zenitani@mac.com>
3055
3056 * nsfont.m (nsfont_fmember_to_entity, nsfont_make_fontset_for_font):
3057 strdup() the family UTF8String before modifying it.
3058
30592008-07-19 Adrian Robert <Adrian.B.Robert@gmail.com>
3060
3061 * nsterm.m (ns_maybe_dumpglyphs_background): Compare result from
3062 NS_FACE_BACKGROUND with 0 instead of nil.
3063 * nsfont.m (nsfont_draw): Same.
3064
30652008-07-19 Chong Yidong <cyd@stupidchicken.com>
3066
3067 * nsfns.m (ns_set_background_color): Fix crash.
3068
30692008-07-18 Chong Yidong <cyd@stupidchicken.com>
3070
3071 * Makefile.in (SOME_MACHINE_LISP): Remove ns-carbon-compat.elc.
3072
30732008-07-18 Dan Nicolaescu <dann@ics.uci.edu>
3074
3075 * puresize.h (BASE_PURESIZE): Increase to 1240000.
3076
30772008-07-17 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
3078
3079 * gtkutil.c: Include <config.h> instead of "config.h".
3080
3081 * lisp.h (Foverlay_buffer): Add EXFUN.
3082
3083 * process.c (create_process) [!WINDOWSNT && FD_CLOEXEC]: Wait for
3084 child process to complete child_setup. Undo 2005-09-21 change.
3085
3086 * s/darwin.h: Mention setsid after vfork.
3087
30882008-07-17 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
3089
3090 * Makefile.in (frame.o, keyboard.o, xdisp.o, xfaces.o):
3091 Depend on macgui.h.
3092
3093 * macfns.c (Fx_server_version): Don't use gestaltSystemVersionMajor,
3094 gestaltSystemVersionMinor, or gestaltSystemVersionBugFix.
3095
3096 * macterm.c (keycode_to_xkeysym_table): Add entries for f17, f18,
3097 and f19.
3098 [MAC_OSX] (fn_keycode_to_keycode_table): Likewise.
3099
3100 * macterm.h (gestaltSystemVersionMajor, gestaltSystemVersionMinor)
3101 (gestaltSystemVersionBugFix) [MAC_OS_X_VERSION_MAX_ALLOWED < 1040]:
3102 Remove enumerators.
3103
3104 * mactoolbox.c [USE_MAC_TSM] (mac_handle_text_input_event):
3105 Check if FACE_FROM_ID returns NULL.
3106
31072008-07-17 David Robinow <drobinow@gmail.com> (tiny change)
3108
3109 * w32inevt.c (change_frame_size): Remove extern declaration.
3110 (resize_event, maybe_generate_resize_event): Pass SAFE arg to
3111 change_frame_size.
3112
31132008-07-17 Adrian Robert <Adrian.B.Robert@gmail.com>
3114
3115 * getloadavg.c: Revert last change (2008-07-15).
3116
31172008-07-17 Adrian Robert <Adrian.B.Robert@gmail.com>
3118
3119 * Makefile.in: Replace emacsapp, emacsbindir, emacsappsrc variables
3120 set here with ns_appdir, ns_appresdir, ns_appbindir, ns_appsrc) set
3121 from configure.
3122
31232008-07-17 Dan Nicolaescu <dann@ics.uci.edu>
3124
3125 * s/sol2.h:
3126 * s/sol2-4.h: Reorganize conditionals.
3127
3128 * ecrt0.c: Remove code depending on m68000, not used anymore.
3129
3130 * fns.c (hash_remove): Make static.
3131 * lisp.h (hash_remove): Don't prototype.
3132
3133 * m/ibmrs6000.h:
3134 * m/ibms390x.h:
3135 * m/macppc.h: Remove boilerplate comments.
3136
3137 * m/sparc.h (A_TEXT_OFFSET, A_TEXT_SEEK): Remove, only used on
3138 Solaris, which does not need them.
3139
3140 * m/vax.h: Remove comments about unsupported systems.
3141
3142 * s/darwin.h: Reorganize ifdefs.
3143
31442008-07-17 Andreas Schwab <schwab@suse.de>
3145
3146 * s/cygwin.h (LIB_STANDARD_LIBSRC): Don't define.
3147
31482008-07-17 Stefan Monnier <monnier@iro.umontreal.ca>
3149
3150 Use SDATA. Follow coding convention of placing operators at
3151 beginning of next line rather than end of previous line, and placing
3152 spaces around infix operators.
3153
3154 * Makefile.in: Undef LIB_STANDARD before defining it to silence warning
3155 in case it was defined already.
3156 USE @GNUSTEP_MAKEFILES@ rather than envvars.
3157 * nsterm.m (ns_term_init): Pass Qt and Qnil rather than YES/NO to
3158 ns_default.
3159 (applicationShouldTerminate, setValuesFromPanel): Use EQ to compare
3160 Lisp_Objects.
3161 * nsterm.h (Fx_display_grayscale_p, Fx_display_planes)
3162 (ns_defined_color, ns_color_to_lisp): Declare.
3163 * nsselect.m (ns_handle_selection_request, ns_handle_selection_clear)
3164 (Fns_own_selection_internal): Make the big ugly hack more explicit, so
3165 it's accepted even with USE_LISP_UNION_TYPE.
3166 * nsmenu.m (ns_update_menubar): Use EQ to compare Lisp_Objects.
3167 (update_frame_tool_bar): Remove apparently obsolete tests for
3168 non-integerness of f->tool_bar_lines.
3169 (windowShouldClose, addButton, clicked, runDialogAt): Make the big ugly
3170 hack more explicit, so it's accepted even with USE_LISP_UNION_TYPE.
3171 * nsfont.m (nsfont_driver): Use just 0 rather than an invalid cast.
3172 (nsfont_open): Don't confuse NULL for Qnil.
3173 * nsfns.m (ns_implicitly_set_icon_type): Use EQ to compare Lisp_Objects.
3174 * menu.h (find_and_call_menu_selection):
3175 * menu.c (find_and_call_menu_selection): Use just int for vector size.
3176 (find_and_return_menu_selection): Always return something.
3177 * frame.h: Include dispextern.h for Display_Info.
3178 (display_x_get_resource): Declare.
3179
31802008-07-16 Adrian Robert <Adrian.B.Robert@gmail.com>
3181
3182 * syntax.c: Remove stdio.h include accidentally introduced in
3183 Emacs.app commit.
3184 * Makefile.in: Change GNUSTEP to NS_IMPL_GNUSTEP, COCOA to
3185 NS_IMPL_COCOA.
3186 * keyboard.c (handle_async_input, input_available_signal): Remove
3187 BSD4_1 conditional code, introduced accidentally in Emacs.app commit.
3188
31892008-07-16 Stefan Monnier <monnier@iro.umontreal.ca>
3190
3191 * nsterm.m (lisp_to_mod): Use parse_solitary_modifier instead.
3192 (ns_lisp_to_color): Don't mess with internal Lisp data fields.
3193 (ns_term_init, ns_term_shutdown, initFrameFromEmacs, ns_list_fonts):
3194 Use SDATA.
3195
3196 * keymap.c: Remove all NS-specific code.
3197 (where_is_preferred_modifier, Vwhere_is_preferred_modifier): New vars.
3198 (preferred_sequence_p): Rename from ascii_sequence_p; pay attention to
3199 where_is_preferred_modifier, return a different value depending on how
3200 preferred is the binding.
3201 (where_is_internal): Adjust accordingly.
3202 (Fwhere_is_internal): Refresh where_is_preferred_modifier.
3203 Adjust to new preferred_sequence_p.
3204 (syms_of_keymap): Declare `where-is-preferred-modifier'.
3205 * keyboard.c (parse_solitary_modifier): Not static any more.
3206 * keyboard.h (parse_solitary_modifier): Declare.
3207
32082008-07-16 Andreas Schwab <schwab@suse.de>
3209
3210 * Makefile.in (SOME_MACHINE_LISP): Remove easy-mmode, fix spelling
3211 of easymenu.
3212
32132008-07-16 Chong Yidong <cyd@stupidchicken.com>
3214
3215 * xdisp.c (move_it_in_display_line): Account for word wrap, so
3216 that we don't move off the line.
3217
32182008-07-16 Stefan Monnier <monnier@iro.umontreal.ca>
3219
3220 * keyboard.c (Qsuper): Remove.
3221 (parse_menu_item): Don't call where_is_internal specially for NS.
3222
32232008-07-16 Dan Nicolaescu <dann@ics.uci.edu>
3224
3225 * s/gnu-linux.h: Remove boilerplate comments.
3226
3227 * m/alpha.h (__ELF__): Consolidate conditions.
3228
3229 * m/m68k.h (linux): Use GNU_LINUX instead.
3230 Remove boilerplate comments.
3231
3232 * m/intel386.h: Undo refactoring from previous change.
3233 (LIB_STANDARD): All systems that define USG define LIB_STANDARD
3234 too, remove dead code.
3235 (linux): Use GNU_LINUX instead.
3236
32372008-07-16 Jason Rumney <jasonr@gnu.org>
3238
3239 * w32gui.h: Repeat 26 June changes lost by last change.
3240
32412008-07-16 Dan Nicolaescu <dann@ics.uci.edu>
3242
3243 * systty.h: Remove code for Aix on 386, unsupported platform.
3244
3245 * s/ms-w32.h: Remove boilerplate comments.
3246 (fcloseall, fgetchar, flushall, fputchar, getw, putw): Remove, unused.
3247
3248 * s/gnu-linux.h (TERM): Remove support.
3249 (HAVE_SYSVIPC): Remove, unused.
3250 (A_TEXT_OFFSET, A_TEXT_SEEK, ADJUST_EXEC_HEADER): Remove, not used
3251 for this system.
3252
3253 * process.c: Remove support for IRIS, unused.
3254 Remove support for TERM, not relevant anymore.
3255
3256 * unexalpha.c (DEFAULT_ENTRY_ADDRESS): Remove, replace the only
3257 used with the definition.
3258
3259 * s/aix4-2.h (static): Do not undef.
3260
3261 * m/ibmrs6000.h: Remove code depending on USG5_4, this file is
3262 only used on Aix.
3263 (HAVE_SYSVIPC): Remove, unused.
3264
3265 * m/hp800.h (CANNOT_DUMP): Do not undef.
3266
3267 * m/alpha.h: Fix comment.
3268
3269 * s/usg5-4.h (HAVE_SYSVIPC): Remove, unused.
3270 (USG_SHARED_LIBRARIES): Remove, only used in unexec.c which is not
3271 used by this configuration.
3272 * emacs.c: Remove code depending on USG_SHARED_LIBRARIES.
3273 * unexec.c: Remove code depending on HPUX and
3274 USG_SHARED_LIBRARIES, not used with this file. Remove code
3275 depending on IRIS, unused. Remove if 0-ed code.
3276
3277 * s/template.h: Remove comments about static.
3278
3279 * sysdep.c: Remove code depending on NEED_PTEM_H, unused.
3280 Remove if 0-ed code.
3281 (baud_convert): Don't depend on BAUD_CONVERT, all definitions the
3282 were the same as the default.
3283 * s/vms.h (BAUD_CONVERT): Remove, same as the default.
3284 Remove boilerplate comments.
3285 * s/hpux10-20.h (BAUD_CONVERT): Remove, same as the default.
3286 (HAVE_SYSVIPC): Remove, unused.
3287 (LD_SWITCH_SYSTEM_TEMACS): Simplify, hp9000s700 not supported anymore.
3288
3289 * m/ia64.h (PNTR_COMPARISON_TYPE): Remove, same as the default.
3290 Remove boilerplate comments.
3291 * m/amdx86-64.h (PNTR_COMPARISON_TYPE): Remove, same as the default.
3292 Remove boilerplate comments.
3293 * m/ibms390x.h (PNTR_COMPARISON_TYPE): Remove, same as the default.
3294 Remove boilerplate comments.
3295 * lisp.h (PNTR_COMPARISON_TYPE): Define it unconditionally.
3296
3297 * m/intel386.h (DATA_SEG_BITS): Remove definitions, only used on
3298 USG systems which do not use DATA_SEG_BITS.
3299 Refactor code. Remove boilerplate comments.
3300
3301 * m/ibms390.h:
3302 * m/m68k.h:
3303 * s/bsd-common.h:
3304 * s/cygwin.h:
3305 * s/darwin.h:
3306 * s/freebsd.h:
3307 * s/gnu.h:
3308 * s/msdos.h: Remove boilerplate comments.
3309
3310 * m/iris4d.h: Remove boilerplate comments and code for systems that
3311 do not use this file.
3312 (IRIS_4D): Remove, unused.
3313
3314 * m/mips.h: Remove boilerplate comments and code for systems that
3315 do not use this file.
3316 (SIGN_EXTEND_CHAR):
3317 * m/arm.h (SIGN_EXTEND_CHAR): Remove, unused.
3318 * unexmips.c: Remove file, unused.
3319
3320 * editfns.c (Fuser_full_name): Replace the only use of
3321 USER_FULL_NAME with its value.
3322 * config.in: Regenerate.
3323
33242008-07-16 David Reitter <david.reitter@gmail.com>
3325
3326 * Makefile.in: Add ns-win, ns-carbon-compat, easy-mmode and
3327 easy-menu to SOME_MACHINE_LISP for the new NeXTstep port.
3328
33292008-07-16 Glenn Morris <rgm@gnu.org>
3330
3331 * emacs.c (system-type): Doc fix.
3332
33332008-07-15 Stefan Monnier <monnier@iro.umontreal.ca>
3334
3335 * keyboard.c (parse_menu_item): Don't use cachelist, even under NS.
3336 If the cache doesn't work, let's fix it, rather than work around it.
3337
33382008-07-15 Adrian Robert <Adrian.B.Robert@gmail.com>
3339
3340 * Makefile.in: Correct additions for nsfont.o in last commit.
3341 * nsfont.m: New file (forgot last commit).
3342
33432008-07-15 Chris Hall <chris@web.workinglinux.com> (tiny change)
3344
3345 * callproc.c (set_initial_environment): Initialize
3346 Vprocess_environment under CANNOT_DUMP (fixes crash when
3347 batch-compiling for bootstrap).
3348
33492008-07-15 Chris Hall <chris@web.workinglinux.com> (tiny change)
3350 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
3351
3352 (make_initial_frame): Call init_frame_faces(f) in CANNOT_DUMP case --
3353 fix crash due to different init order.
3354
33552008-07-15 Adrian Robert <Adrian.B.Robert@gmail.com>
3356
3357 Changes and additions for NeXTstep windowing system (Cocoa and
3358 GNUstep) support.
3359
3360 * Makefile.in:
3361 * config.in: Support defines and build commands for NS port.
3362 * blockinput.h (BLOCK_INPUT, UNBLOCK_INPUT, TOTALLY_UNBLOCK_INPUT)
3363 (UNBLOCK_INPUT_TO): Don't use under NS unless EXPERIMENTAL_CONTROL_G.
3364 * dispextern.h: Include nsgui.h and add needed typedefs under NS
3365 windowing.
3366 (struct face): Add synth_ital field.
3367 * dispnew.c: Include nsterm.h when compiling under NS windowing.
3368 (init_display): Initialize Vinitial_window_system to "ns" when so
3369 compiled.
3370 * emacs.c: Include GSConfig.h when compiling under GNUstep.
3371 (display_arg): Use under NS.
3372 (main): Under NS, allocate autorelease pool and handle command line
3373 args. Move syms_of_xmenu() call under #ifdef HAVE_X_WINDOWS.
3374 (standard_args): Add NS-specific args.
3375 (shut_down_emacs): Shut down NS terminal if compiled under NS.
3376 * font.c (DEFAULT_ENCODING): New variable.
3377 (font_find_for_lface): Use it.
3378 (syms_of_font): Load syms_of_nsfont under NS.
3379 * font.h: Declare nsfont_driver when compiled under NS.
3380 * fontset.c: When compiling under NS, include nsterm.h.
3381 (fontset_from_font): Autoconstruct fontset under NS.
3382 * frame.c (various): Under NS, include nsterm.h, add Qns window system
3383 symbol, document and use it.
3384 (do_switch_frame): When for_deletion under Cocoa, add
3385 Fraise_frame(Qnil).
3386 (x_set_frame_parameters): Ensure font attribute changes are picked up.
3387 (x_get_arg): Allow "yes" and "no" as boolean values.
3388 (syms_of_frame): Declare Qns. Init Vdefault_frame_scroll_bars to
3389 Qright under Cocoa.
3390 (focus-follows-mouse): Default to 0 under NS.
3391 * frame.h (enum output_method): Add output_ns.
3392 (external_tool_bar, external_menu_bar, FRAME_EXTERNAL_TOOLBAR)
3393 (FRAME_EXTERNAL_MENU_BAR): Use under NS.
3394 (FRAME_WINDOW_P): NS-specific definition.
3395 * fringe.c (max_used_fringe_bitmap): Make public.
3396 * getloadavg.c (mach/mach.h): Include it under NeXT descendant OS's.
3397 (getloadavg): Use NeXT code under descendant OS's.
3398 * image.c (includes and header section, x_create_bitmap_from_data)
3399 (x_create_bitmap_from_file, free_bitmap_record, image_background)
3400 (image_background_transparent, x_clear_image_1)
3401 (x_create_x_image_and_pixmap, x_destroy_x_image, x_put_x_image)
3402 (Create_Pixmap_From_Bitmap_Data, xpm_load_image, lookup_rgb_color)
3403 (x_to_xcolors, x_from_xcolors, x_disable_image)
3404 (x_build_heuristic_mask, syms_of_image): Add NS support parallel to
3405 other GUIs, including XPM support using code originally written for
3406 Carbon GUI.
3407 (png_load, jpeg_load, tiff_load, gif_load): Add implementations
3408 using NS API.
3409 (image_ascent): Use font metrics macros instead of direct struct field
3410 access.
3411 * keyboard.c (includes): Add nsterm.h when compiling under NS.
3412 (kbd_buffer_get_event): Handle NS as other GUI windowing systems.
3413 Also, handle NS as GTK for menu bar purposes.
3414 (make_lispy_event): Handle NS as other GUI windowing systems, and as X
3415 toolkit where they differ.
3416 (parse_menu_item): Prefer keybindings using 'super' modifier. Also,
3417 use cachelist, still needed under NS.
3418 * keyboard.h (ENCODE_MENU_STRING, XtPointer, Boolean): Handle as NTGUI.
3419 (struct widget_value): Define it here for menu.c.
3420 * keymap.c (includes): Include modifier internals.
3421 (lisp_to_mod, modifier_sequence_p): New functions, compiled only under
3422 NS.
3423 (where_is_internal, Fwhere_is_internal): When compiled under NS, add
3424 support for preferring sequences using certain modifiers, specified by
3425 the FIRSTONLY argument.
3426 * lisp.h (hash_remove): Rename to avoid name clash when compiling
3427 under NS GNUstep implementation.
3428 (USE_LSB_TAG): Use it under Cocoa when compiling under NS.
3429 * lread.c (init_lread): Treat NS as HAVE_CARBON for turn_off_warning.
3430 * menu.c: Include nsterm.h under NS.
3431 (single_menu_item, parse_single_submenu, xmalloc_widget_value)
3432 (free_menubar_widget_tree_value, update_submenu_strings)
3433 (find_and_call_menu_selection): Treat NS as X and NT.
3434 (find_and_return_menu_selection): New function, used for popup menus.
3435 * nsgui.h:
3436 * nsterm.h:
3437 * nsfns.m:
3438 * nsimage.m:
3439 * nsmenu.m:
3440 * nsselect.m:
3441 * nsterm.m: New files.
3442 * process.c (wait_reading_process_output): Under NS, call ns_select()
3443 instead of plain select().
3444 * syntax.c (char_quoted): Under NS, avoid a crash when called near
3445 beginning of buffer.
3446 * sysselect.h (init_process): Rename when compiling under Cocoa to
3447 avoid name conflict.
3448 * termhooks.h (display_info): Add ns_display_info to union.
3449 * terminal.c (Fterminal_live_p): Add ns to terminal types.
3450 * terminfo.c (UP, BC, PC): Don't declare when compiling under NS in
3451 COCOA environment.
3452 * unexnext.c: Update to work with mach API on Mac OS X, and to use new
3453 unexec() signature. (Note, this will dump, but the resulting file
3454 crashes; unexosx is used instead; keeping around for reference and
3455 possible aid in getting dump working under GNUstep.)
3456 * w32gui.h (button_type, widget_value): Remove definitions (now in
3457 keyboard.h).
3458 * window.c: Include nsterm.h when compiling under NS.
3459 * xdisp.c (includes): Include nsterm.h when compiling under NS.
3460 (set_frame_menubar, update_menu_bar, display_menu_bar): Handle NS as
3461 other GUI windowing systems.
3462 (update_tool_bar, redisplay_tool_bar, redisplay_window): Handle NS as
3463 GTK.
3464 (x_consider_frame_title): Under NS, set icon type and frame
3465 modified-state indicator; use ns_set_name_as_filename() when using
3466 formatted title.
3467 (update_window_cursor): Make public when compiling under NS.
3468 (display_hourglass_p, syms_of_xdisp, hourglass_shown_p)
3469 (hourglass_atimer, Vhourglass_delay
3470 * xfaces.c (header section, init_frame_faces, clear_font_table)
3471 (defined_color, unload_color, x_face_list_fonts)
3472 (prepare_face_for_display): Add NS support parallel to other GUIs.
3473 Emulate GCs like other non-X GUIs.
3474 (split_font_name): Don't lowercase font name under NS.
3475 (merge_face_ref, Finternal_set_lisp_face_attribute): Support stippling
3476 under NS.
3477 * s/darwin.h: Add support for compilation under NS.
3478
34792008-07-15 Jason Rumney <jasonr@gnu.org>
3480
3481 * w32fns.c (Fx_create_frame): Remove duplicate unwind_protect.
3482 (w32_show_hourglass): Rename from show_hourglass.
3483 (w32_hide_hourglass): Rename from hide_hourglass.
3484 (DEFAULT_HOURGLASS_DELAY): Revert from last change.
3485 (Vhourglass_delay): Declare extern.
3486 (hourglass_started): Remove.
3487
3488 * xdisp.c (Vhourglass_delay): Remove static.
3489 (hourglass_started, start_hourglass, cancel_hourglass):
3490 Don't include these versions on WINDOWSNT.
3491
34922008-07-15 Adrian Robert <Adrian.B.Robert@gmail.com>
3493
3494 * dispextern.h (hourglass_shown_p, hourglass_atimer): New extern
3495 variables (formerly in xfns.c).
3496 (show_hourglass, hide_hourglass): New prototypes (same).
3497 * xdisp.c (display_hourglass_p, hourglass_shown_p, hourglass_atimer)
3498 (Vhourglass_delay, DEFAULT_HOURGLASS_DELAY): New variables (formerly
3499 in xfns.c).
3500 (syms_of_xdisp): Declare/initialize display-hourglass,
3501 hourglass-delay. Initialize hourglass_atimer, hourglass_shown_p.
3502 (hourglass_started, start_hourglass, cancel_hourglass): New functions,
3503 formerly in xfns.c.
3504 * xfns.c (display_hourglass_p, hourglass_atimer, hourglass_shown_p)
3505 (Vhourglass_delay, DEFAULT_HOURGLASS_DELAY, hourglass_started)
3506 (start_hourglass, cancel_hourglass): Remove.
3507 (show_hourglass, hide_hourglass): Remove prototypes and static
3508 modifiers.
3509 (syms_of_xfns): Remove display-hourglass, hourglass-delay,
3510 hourglass_atimer, hourglass_shown_p declaration/initialization.
3511 * macfns.c (display_hourglass_p, hourglass_atimer, hourglass_shown_p)
3512 (Vhourglass_delay, DEFAULT_HOURGLASS_DELAY, hourglass_started)
3513 (start_hourglass, cancel_hourglass): Remove.
3514 (show_hourglass, hide_hourglass): Remove prototypes and static
3515 modifiers.
3516 (syms_of_macfns): Remove display-hourglass, hourglass-delay,
3517 hourglass_atimer, hourglass_shown_p declaration/initialization.
3518 * w32fns.c (display_hourglass_p, Vhourglass_delay)
3519 (DEFAULT_HOURGLASS_DELAY): Remove.
3520 (syms_of_w32fns): Remove display-hourglass, hourglass-delay,
3521 hourglass_shown_p declaration/initialization.
3522
35232008-07-14 Jason Rumney <jasonr@gnu.org>
3524
3525 * w32fns.c (w32_get_arg): Remove wrapper function.
3526 (w32_createwindow, x_icon, x_create_tip_frame): Use x_get_arg
3527 directly.
3528 (Fx_create_frame): Sync with xfns.c. Use x_get_arg directly.
3529
35302008-07-14 Kenichi Handa <handa@m17n.org>
3531
3532 * xfont.c (xfont_open): Add workaround for X's bug.
3533
35342008-07-14 Emanuele Giaquinta <emanuele.giaquinta@gmail.com> (tiny change)
3535
3536 * fontset.c: Include <stdio.h> unconditionally.
3537
35382008-07-13 Michael Albinus <michael.albinus@gmx.de>
3539
3540 * dbusbind.c (Fdbus_register_signal): Allow also signal arguments
3541 for filtering.
3542
35432008-07-13 Dan Nicolaescu <dann@ics.uci.edu>
3544
3545 * s/vms.h: Use __GNUC__ instead of _GNUC_.
3546
3547 * m/macppc.h:
3548 * m/alpha.h: Use GNU_LINUX instead of LINUX. Reorganize conditionals.
3549
3550 * m/ibms390x.h (XINT, XUINT): Don't define, same as the default
3551 (SPECIAL_EMACS_INT):
3552 * m/ia64.h (SPECIAL_EMACS_INT):
3553 * m/amdx86-64.h (SPECIAL_EMACS_INT):
3554 * s/gnu.h (NLIST_STRUCT):
3555 * s/aix4-2.h (X11R5_INHIBIT_I18N):
3556 * s/gnu-linux.h (LINUX):
3557 * s/msdos.h (HAVE_FACES):
3558 * s/ms-w32.h (HAVE_FACES): Don't define, unused.
3559
3560 * systty.h:
3561 * sysdep.c (setup_pty): Don't depend on SYSV_PTYS, it is not used
3562 anymore.
3563
35642008-07-12 Dan Nicolaescu <dann@ics.uci.edu>
3565
3566 * syswait.h: Remove old if 0 code. Do not define WAITTYPE, it was
3567 always defined as int.
3568
3569 * s/netbsd.h (HAVE_UNION_WAIT, HAVE_WAIT_HEADER, WAIT_USE_INT):
3570 * s/gnu.h (HAVE_WAIT_HEADER, WAIT_USE_INT, HAVE_UNION_WAIT):
3571 * s/gnu-linux.h (HAVE_WAIT_HEADER):
3572 * s/freebsd.h (HAVE_WAIT_HEADER):
3573 * s/bsd-common.h (HAVE_UNION_WAIT):
3574 * s/aix4-2.h (HAVE_WAIT_HEADER):
3575 * m/mips.h (HAVE_UNION_WAIT):
3576 * s/usg5-4.h (HAVE_WAIT_HEADER, WAITTYPE): Do not define, not used.
3577 (COFF, static): Do not define, they are undefined later in the file.
3578
3579 * process.c (update_status): Don't use a union.
3580 (status_convert):
3581 (sigchld_handler): Use int instead of WAITTYPE.
3582
35832008-07-12 Chong Yidong <cyd@stupidchicken.com>
3584
3585 * indent.c (Fvertical_motion): Restore hscroll before moving to
3586 goal column.
3587
35882008-07-11 Dan Nicolaescu <dann@ics.uci.edu>
3589
3590 * lisp.h: Remove left over code.
3591
35922008-07-11 Andreas Schwab <schwab@suse.de>
3593
3594 * lisp.h: Fix logic in last change.
3595
3596 * menu.h: New file.
3597 * menu.c: Include it.
3598 * xmenu.c: Likewise.
3599 * Makefile.in: Update dependencies.
3600
36012008-07-11 Kenichi Handa <handa@m17n.org>
3602
3603 * fontset.c (fontset_from_font): Cancel the previous change.
3604
36052008-07-11 Dan Nicolaescu <dann@ics.uci.edu>
3606
3607 * lisp.h:
3608 * w32heap.c:
3609 * emacs.c:
3610 * alloc.c: Replace all references of NO_UNION_TYPE with
3611 USE_LISP_UNION_TYPE.
3612
3613 * m/xtensa.h (NO_UNION_TYPE):
3614 * m/vax.h (NO_UNION_TYPE):
3615 * m/template.h (NO_UNION_TYPE):
3616 * m/sparc.h (NO_UNION_TYPE):
3617 * m/mips.h (NO_UNION_TYPE):
3618 * m/macppc.h (NO_UNION_TYPE):
3619 * m/m68k.h (NO_UNION_TYPE):
3620 * m/iris4d.h (NO_UNION_TYPE):
3621 * m/intel386.h (NO_UNION_TYPE):
3622 * m/ibms390x.h (NO_UNION_TYPE):
3623 * m/ibms390.h (NO_UNION_TYPE):
3624 * m/ibmrs6000.h (NO_UNION_TYPE):
3625 * m/ia64.h (NO_UNION_TYPE):
3626 * m/hp800.h (NO_UNION_TYPE):
3627 * m/arm.h (NO_UNION_TYPE):
3628 * m/amdx86-64.h (NO_UNION_TYPE):
3629 * m/alpha.h (NO_UNION_TYPE): Remove definition, all platform were
3630 defining it the same.
3631
36322008-07-10 Chong Yidong <cyd@stupidchicken.com>
3633
3634 * xdisp.c (move_it_to): Backtrack if past the edge of a wrapped line.
3635
36362008-07-10 Dan Nicolaescu <dann@ics.uci.edu>
3637
3638 * fileio.c:
3639 * sysdep.c
3640 * systty.h:
3641 * m/ibmrs6000.h:
3642 * m/iris4d.h:
3643 * s/aix4-2.h:
3644 * s/freebsd.h:
3645 * s/gnu-linux.h:
3646 * s/hpux10-20.h:
3647 * s/hpux11.h:
3648 * s/netbsd.h:
3649 * s/sol2-3.h:
3650 * s/sol2-4.h:
3651 * s/sol2.h:
3652 * s/usg5-4.h:
3653 * s/vms.h: Remove references to unused variables.
3654
36552008-07-10 Andreas Schwab <schwab@suse.de>
3656
3657 * ftfont.c (ftfont_resolve_generic_family): Remove foundry from
3658 pattern before matching the generic family.
3659
36602008-07-10 Dan Nicolaescu <dann@ics.uci.edu>
3661
3662 * unexec.c:
3663 * s/vms.h:
3664 * s/usg5-4-2.h:
3665 * s/sol2-5.h:
3666 * s/freebsd.h:
3667 * s/darwin.h: Remove dead code.
3668
3669 * m/template.h:
3670 * m/sparc.h:
3671 * m/mips.h:
3672 * m/m68k.h:
3673 * m/iris4d.h:
3674 * m/intel386.h:
3675 * m/ibms390x.h:
3676 * m/ibms390.h:
3677 * m/ia64.h:
3678 * m/hp800.h:
3679 * m/arm.h:
3680 * m/amdx86-64.h: Remove dead code and references to unused
3681 and compiler defined symbols.
3682
3683 * unexmips.c:
3684 * unexelf.c: Remove references to desupported systems.
3685
3686 * m/powermac.h: Remove file, it is now identical to m/macppc.h.
3687
3688 * m/powermac.h: Remove boilerplate comments.
3689 (NO_REMAP): Remove unused definition.
3690
3691 * m/macppc.h (UNEXEC, NO_TERMIO): Don't define, the s/ files
3692 define them.
3693
36942008-07-10 Kenichi Handa <handa@m17n.org>
3695
3696 * xfont.c (xfont_open): Log the reason of failure.
3697
36982008-07-09 Stefan Monnier <monnier@iro.umontreal.ca>
3699
3700 * fontset.c (fontset_get_font_group):
3701 * font.c (font_check_otf): Specify argument types.
3702
37032008-07-09 Kenichi Handa <handa@m17n.org>
3704
3705 * coding.c (detect_coding_utf_8): Set detect_info->found only when
3706 non-ASCII char is found.
3707
3708 * fontset.c (fontset_compare_rfontdef): Fix plus/minus.
3709 (reorder_font_vector): Change the arg preferred_family to font.
3710 Prefer the spec matching with font.
3711 (fontset_get_font_group): New function.
3712 (fontset_find_font): Change the format of an element of a realized
3713 fontset. Use fontset_get_font_group.
3714 (fontset_font): Try the current fontset, the default fontset, the
3715 fallbacks of the current fontset, and the fallbacks of the default
3716 fontset in this order.
3717 (face_for_char): Delete the shortcut to use the current font.
3718 (fontset_from_font): Don't set fonts for Latin in the fontset.
3719
3720 * font.h (font_make_object, font_match_p): Adjust prototypes.
3721
3722 * ftfont.h [FT_BDF_H]: Include FT_BDF_H.
3723
3724 * font.c (font_make_object): New arg entity and pixelsize.
3725 (font_check_otf_features, font_check_otf): New functions.
3726 (font_match_p): Check :lang, :script, and :otf properties.
3727
3728 * xfont.c (xfont_open): Adjust it for the change of
3729 font_make_object.
3730 (xfont_text_extents): Fix initial setting of metrics.
3731
3732 * ftfont.c (struct ftfont_info): New member index, delete member
3733 fc_charset_idx. Make the member order compatible with struct
3734 xftfont_info.
3735 (fc_charset_table): Change charset names to registry names.
3736 (ftfont_pattern_entity): Delete the args registry and
3737 fc_charset_idx. Change the value of :font-entity property
3738 to (FONTNAME . INDEX). Always set :registry property to
3739 `iso10646-1'.
3740 (struct ftfont_cache_data): New struct.
3741 (ftfont_lookup_cache): New arg for_face.
3742 (ftfont_get_fc_charset, ftfont_get_otf): New functions.
3743 (ftfont_driver): Set the member otf_capability.
3744 (ftfont_get_charset): Adjust it for the change of
3745 fc_charset_table.
3746 (OTF_TAG_SYM): New macro.
3747 (ftfont_spec_pattern): Delete the arg fc_charset_idx. Adjust it
3748 for the change of fc_charset_table.
3749 (ftfont_list): Adjust it for the change of ftfont_spec_pattern and
3750 ftfont_pattern_entity. Add FC_INDEX to objset.
3751 (ftfont_match): Adjust it for the change of ftfont_spec_pattern
3752 and ftfont_pattern_entity.
3753 (ftfont_open): Adjust it for the change of ftfont_lookup_cache,
3754 font_make_object, struct ftfont_info.
3755 (ftfont_has_char): Use ftfont_get_fc_charset.
3756 (ftfont_otf_features, ftfont_otf_capability): New functions.
3757 (ftfont_shape): Use ftfont_get_otf.
3758 (ftfont_text_extents): Fix initial setting of metrics.
3759
3760 * xftfont.c (struct xftfont_info): New member ft_size. Make the
3761 member order compatible with struct ftfont_info.
3762 (xftfont_open): Add FC_CHARSET to the pattern. Set
3763 xftfont_info->ft_size. Don't unlock the face. Check BDF
3764 properties if appropriate.
3765 (xftfont_close): Unlock the face.
3766 (xftfont_anchor_point, xftfont_shape): Deleted.
3767 (syms_of_xftfont): Don't set members anchor_point and shape of
3768 xftfont_driver.
3769
3770 * w32uniscribe.c (uniscribe_open): Adjust it for the change of
3771 font_make_object.
3772
3773 * w32font.c (w32font_open): Adjust it for the change of
3774 font_make_object.
3775 (w32font_open_internal): Don't set properties of font_object here.
3776
37772008-07-08 Chong Yidong <cyd@stupidchicken.com>
3778
3779 * macfns.c (x_create_tip_frame):
3780 * w32fns.c (x_create_tip_frame):
3781 * xfns.c (x_create_tip_frame): Pass parameter argument to
3782 face-set-after-frame-default.
3783
3784 * xfaces.c (Finternal_merge_in_global_face): Save merged
3785 attributes for the default face back into the face vector.
3786
37872008-07-08 Andreas Schwab <schwab@suse.de>
3788
3789 * fontset.h: Declare fontset_from_font. Don't declare
3790 new_fontset_from_font and fontset_from_font_name.
3791 * xterm.c: Include "fontset.h".
3792 * Makefile.in (xterm.o): Update dependencies.
3793
37942008-07-08 Glenn Morris <rgm@gnu.org>
3795
3796 * m/sparc.h: Define __sparc__ rather than sparc. (Bug#507.)
3797 * alloc.c, ecrt0.c: Use __sparc__ rather than sparc.
3798
37992008-07-07 Chong Yidong <cyd@stupidchicken.com>
3800
3801 * frame.c (Qinhibit_face_set_after_frame_default): Var deleted.
3802 (x_set_frame_parameters): Don't bind it.
3803
38042008-07-07 Juanma Barranquero <lekktu@gmail.com>
3805
3806 * w32fns.c (map_w32_filename): Declare extern.
3807
38082008-07-07 Jason Rumney <jasonr@gnu.org>
3809
3810 * w32term.c (WS_EX_LAYERED): Define if not already.
3811
38122008-07-06 Chong Yidong <cyd@stupidchicken.com>
3813
3814 * xfaces.c (set_font_frame_param): Don't try to set the font
3815 parameter if it is still unspecified in the lface.
3816
38172008-07-05 Chong Yidong <cyd@stupidchicken.com>
3818
3819 * xfaces.c (Finternal_merge_in_global_face): Don't realize default
3820 face if it didn't already exist.
3821
3822 * xdisp.c (try_window_id): Give up if word-wrapping is on.
3823
38242008-07-05 Andreas Schwab <schwab@suse.de>
3825
3826 * xdisp.c (get_it_property): Move out of HAVE_WINDOW_SYSTEM section.
3827
38282008-07-05 Chong Yidong <cyd@stupidchicken.com>
3829
3830 * xdisp.c (IT_OVERFLOW_NEWLINE_INTO_FRINGE): Turn it off if
3831 word-wrapping.
3832 (IT_DISPLAYING_WHITESPACE): New macro.
3833 (move_it_in_display_line_to): Handle MOVE_TO_X requests properly
3834 when word-wrapping. Simplify word-wrapping logic. Use correct
3835 pixel positions when saving copies of the iterator.
3836 (display_line): Use proper wrap point if the last character on a
3837 line was preceded by whitespace.
3838
38392008-07-04 Stefan Monnier <monnier@iro.umontreal.ca>
3840
3841 * Makefile.in (${etc}DOC): Depend on ${lisp} rather than ${shortlisp}.
3842
38432008-07-04 Kenichi Handa <handa@m17n.org>
3844
3845 * fns.c (Fstring_to_unibyte): Delete the arg ACCEPT-LATIN-1.
3846
3847 * lisp.h: EXFUN adjusted for the change of Fstring_to_unibyte.
3848
38492008-07-02 Jason Rumney <jasonr@gnu.org>
3850
3851 * xfns.c (syms_of_xfns): Only define x-select-font when both
2ae37cf0 3852 HAVE_FREETYPE and USE_GTK.
aac0c6e3
MR
3853
3854 * xdisp.c (next_element_from_display_vector): Move assignment out
3855 of if statement.
3856
38572008-07-02 Toru Tsuneyoshi <t_tuneyosi@hotmail.com>
3858
3859 * lisp.h (Qdelete_file, Qdelete_directory): Declare extern.
3860
3861 * fileio.c (delete_by_moving_to_trash, Qmove_file_to_trash): New vars.
3862 (syms_of_fileio): Initialize and export them.
3863 (Fdelete_directory, Fdelete_file): Optionally delete via trash.
3864
3865 * w32fns.c (FOF_NO_CONNECTED_ELEMENTS): Define if not already.
3866 (Fsystem_move_file_to_trash): New function.
3867 (syms_of_w32fns): Export it to lisp.
3868
38692008-07-01 Jason Rumney <jasonr@gnu.org>
3870
3871 * w32font.c (w32font_text_extents): Don't count overhang as part
3872 of width.
3873
38742008-06-30 Miles Bader <miles@gnu.org>
3875
3876 * dispextern.h (struct glyph, struct it, struct iterator_stack_entry):
3877 Add `avoid_cursor_p' field.
3878
3879 * xdisp.c (push_it, pop_it): Save/restore avoid_cursor_p field.
3880 (set_cursor_from_row): Skip glyphs with avoid_cursor_p set.
3881 (append_glyph, append_composite_glyph, produce_image_glyph)
3882 (append_stretch_glyph): Initialize avoid_cursor_p.
3883 (get_it_property): Rename from `get_line_height_property'.
3884 (x_produce_glyphs): Use get_it_property.
3885 (handle_line_prefix, push_display_prop): New functions.
3886 (display_line, move_it_in_display_line_to): Handle line/wrap prefixes.
3887 (Vwrap_prefix, Qwrap_prefix, Vline_prefix, Qline_prefix):
3888 New variables.
3889 (syms_of_xdisp): Initialize them.
3890
38912008-06-30 Kenichi Handa <handa@m17n.org>
3892
3893 * xftfont.c (xftfont_open): Don't call FcConfigSubstitute and
3894 XftDefaultSubstitute (they are called in XftFontMatch).
3895 (xftfont_open): Fix args to ftfont_font_format.
3896
3897 * ftfont.c (fc_charset_table): New member lang.
3898 (ftfont_resolve_generic_family): New arg pattern.
60612c8f 3899 (ftfont_spec_pattern): Check fc_charset_table[]->lang.
aac0c6e3
MR
3900 (ftfont_list): Call ftfont_resolve_generic_family with `pattern'.
3901 (ftfont_open): Fix args to ftfont_font_format.
3902 (ftfont_font_format): New arg filename.
3903
39042008-06-30 Chong Yidong <cyd@stupidchicken.com>
3905
3906 * xfaces.c (Finternal_merge_in_global_face): If default face was
3907 modified, realize it again. Update the font face attribute.
3908
39092008-06-29 Jason Rumney <jasonr@gnu.org>
3910
3911 * w32term.c (x_set_frame_alpha): Fix logic.
3912
39132008-06-29 Kenichi Handa <handa@m17n.org>
3914
3915 * fontset.c (Finternal_char_font): Return font-object instead of
3916 font-name.
3917
3918 * composite.c (get_composition_id): Fix the width calculation for TAB.
3919
39202008-06-29 Stefan Monnier <monnier@iro.umontreal.ca>
3921
3922 * indent.c (Fvertical_motion): Properly handle float column arg.
3923
39242008-06-28 Jason Rumney <jasonr@gnu.org>
3925
3926 * w32term.c (pfnGetFontUnicodeRanges): Remove unused function pointer.
3927 (pfnSetLayeredWindowAttributes): New function pointer.
3928 (w32_initialize): Initialize it when supported.
3929 (x_set_frame_alpha): New function.
3930
3931 * w32fns.c (Fx_create_frame): Initialize frame parameter `alpha'.
3932 (w32_frame_parm_handlers): Set alpha handler.
3933
3934 * frame.c (x_set_alpha) [HAVE_NTGUI]: Call x_set_frame_alpha.
3935
39362008-06-27 Jason Rumney <jasonr@gnu.org>
3937
3938 * w32fns.c (x_to_w32_font, w32_to_x_font, x_to_w32_weight)
3939 (w32_to_x_weight, w32_to_all_x_charsets): Remove obsolete functions.
3940 (w32_to_x_charset, x_to_w32_charset)
3941 (Qw32_charset_ansi, Qw32_charset_symbol, Qw32_charset_default)
3942 (Qw32_charset_shiftjis, Qw32_charset_hangeul, Qw32_charset_johab)
3943 (Qw32_charset_chinesebig5, Qw32_charset_gb2312, Qw32_charset_oem)
3944 (Qw32_charset_easteurope, Qw32_charset_turkish, Qw32_charset_baltic)
3945 (Qw32_charset_russian, Qw32_charset_arabic, Qw32_charset_greek)
3946 (Qw32_charset_hebrew, Qw32_charset_vietnamese, Qw32_charset_thai)
3947 (Qw32_charset_mac, Vw32_charset_info_alist): Move to w32font.c.
3948 (Qw32_charset_unicode): Remove.
3949 (syms_of_w32fns): Update for above changes.
3950
3951 * w32font.c (w32_to_x_charset, x_to_w32_charset)
3952 (Qw32_charset_ansi, Qw32_charset_symbol, Qw32_charset_default)
3953 (Qw32_charset_shiftjis, Qw32_charset_hangeul, Qw32_charset_johab)
3954 (Qw32_charset_chinesebig5, Qw32_charset_gb2312, Qw32_charset_oem)
3955 (Qw32_charset_easteurope, Qw32_charset_turkish, Qw32_charset_baltic)
3956 (Qw32_charset_russian, Qw32_charset_arabic, Qw32_charset_greek)
3957 (Qw32_charset_hebrew, Qw32_charset_vietnamese, Qw32_charset_thai)
3958 (Qw32_charset_mac, Vw32_charset_info_alist): Move from w32fns.c.
3959 (syms_of_w32font): Update for above changes.
3960
39612008-06-27 Dan Nicolaescu <dann@ics.uci.edu>
3962
3963 * s/usg5-4.h: Fix previous change: keep the correct branch of a
3964 removed #if.
3965 (USG_SHARED_LIBRARIES): Remove duplicate definition.
3966
39672008-06-26 Juanma Barranquero <lekktu@gmail.com>
3968 Eli Zaretskii <eliz@gnu.org>
3969
3970 * makefile.w32-in (LOCAL_FLAGS):
3971 Don't include WINDOWSNT, DOS_NT and _UCHAR_T.
3972
3973 * sysdep.c (_spawnlp, _getpid):
3974 Declare with explicit _cdecl instead of _CRTAPI1.
3975
3976 * editfns.c (Fget_internal_run_time):
3977 Check for WINDOWSNT with #ifdef, not #if.
3978
39792008-06-26 Jason Rumney <jasonr@gnu.org>
3980
3981 * w32font.h (FONT_HANDLE, FONT_TEXTMETRIC): New macros.
3982
3983 * w32term.c (x_draw_glyph_string_foreground)
3984 (x_draw_composite_glyph_string_foreground): Sync with xterm.c.
3985 Use FONT_HANDLE macro.
3986 (x_draw_glyph_string): Use FONT_TEXTMETRIC macro.
3987
3988 * w32uniscribe.c (uniscribe_otf_capability, uniscribe_shape)
3989 (uniscribe_encode_char): Use FONT_HANDLE macro.
3990
3991 * w32font.c (Fx_select_font): Use FONT_HANDLE macro.
3992 (w32font_text_extents): Use precast w32_font.
3993 (w32font_close): Free cached metrics.
3994 (w32font_open_internal): Allocate space for name on stack.
3995
39962008-06-26 Chong Yidong <cyd@stupidchicken.com>
3997
3998 * xdisp.c (extend_face_to_end_of_line): Fix last change.
3999
40002008-06-26 Jason Rumney <jasonr@gnu.org>
4001
4002 * w32term.h (FONT_AVG_WIDTH): Remove obsolete macro.
4003 (CP_8BIT, CP_UNICODE, CP_UNKNOWN): Remove obsolete constants.
4004
40052008-06-26 Juanma Barranquero <lekktu@gmail.com>
4006
4007 * Makefile.in (SOME_MACHINE_OBJECTS): Remove w32bdf.o.
4008
40092008-06-26 Jason Rumney <jasonr@gnu.org>
4010
4011 * w32bdf.c, w32bdf.h: Remove obsolete files.
4012
4013 * makefile.w32-in: Remove refs to w32bdf.h and w32bdf.c.
4014
4015 * w32gui.h: Don't include w32bdf.h.
4016 (XCharStruct, enum w32_char_font_type, W32FontStruct):
4017 Remove obsolete font support.
4018
4019 * w32font.h (struct w32font_info): Remove compat_w32_font.
4020 Add hfont member.
4021 (FONT_COMPAT): Remove obsolete macro.
4022
4023 * w32font.c (w32font_close): Remove compat code. Delete hfont member.
4024 (w32font_encode_char, w32font_text_extents): Use new hfont member.
4025 (w32font_open_internal): Remove compat code. Set new hfont member.
4026 (Fx_select_font): Use new hfont member.
4027
4028 * w32uniscribe.c (uniscribe_otf_capability, uniscribe_shape)
4029 (uniscribe_encode_char): Use new hfont member.
4030
4031 * w32term.c (x_draw_glyph_string_foreground)
4032 (x_draw_composite_glyph_string_foreground): Use new hfont member.
4033 (x_draw_glyph_string): Use metrics in w32font_info.
4034
40352008-06-26 Kenichi Handa <handa@m17n.org>
4036
4037 * xdisp.c (handle_auto_composed_prop): Fix for the terminal case.
4038
40392008-06-26 Dan Nicolaescu <dann@ics.uci.edu>
4040
4041 * unexnext.c:
4042 * m/ews4800.h:
4043 * m/hp9000s300.h:
4044 * m/ibm370aix.h:
4045 * m/mips-siemens.h:
4046 * m/ncr386.h:
4047 * m/next.h:
4048 * m/pmax.h:
4049 * m/powerpcle.h:
4050 * m/tandem-s2.h:
4051 * s/386bsd.h:
4052 * s/bsd386.h:
4053 * s/bsd4-1.h:
4054 * s/bsd4-2.h:
4055 * s/bsdos2-1.h:
4056 * s/bsdos2.h:
4057 * s/bsdos3.h:
4058 * s/bsdos4.h:
4059 * s/nextstep.h:
4060 * s/ultrix4-3.h:
4061 * s/usg5-0.h:
4062 * s/usg5-2-2.h:
4063 * s/usg5-2.h:
4064 * s/usg5-4-3.h:
4065 * s/ux4800.h:
4066 * s/uxpds.h:
4067 * s/uxpv.h: Remove support for obsolete systems.
4068 * s/hpux.h, s/hpux10.h, s/hpux8.h, s/hpux9.h, s/hpux9shr.h:
4069 Remove, insert contents in s/hpux-10.20.h.
4070 * s/aix3-1.h, s/aix3-2-5.h, s/aix3-2.h, s/aix4-1.h, s/aix4.h:
4071 Remove, insert contents in s/aix4-2.h.
4072 * s/usg5-3.h: Remove, insert contents in s/usg5-4.h.
4073 * s/bsd4-3.h: Rename to ...
4074 * s/bsd-common.h: ... this.
4075 * data.c:
4076 * doc.c:
4077 * ecrt0.c:
4078 * emacs.c:
4079 * fileio.c:
4080 * floatfns.c:
4081 * keyboard.c:
4082 * mem-limits.h:
4083 * print.c:
4084 * process.c:
4085 * sysdep.c:
4086 * syssignal.h:
4087 * systty.h:
4088 * syswait.h:
4089 * term.c:
4090 * unexec.c:
4091 * unexelf.c:
4092 * unexhp9k800.c:
4093 * m/hp800.h:
4094 * m/ibmrs6000.h:
4095 * m/mips.h:
4096 * m/vax.h:
4097 * s/darwin.h:
4098 * s/freebsd.h:
4099 * s/gnu.h:
4100 * s/ms-w32.h:
4101 * s/msdos.h:
4102 * s/netbsd.h:
4103 * s/template.h: Remove references to obsolete variables.
4104
4105 * Makefile.in: Add dependencies for all unexec files.
4106 (admindir): Remove unused variable.
4107 (UNEXEC_SRC): Remove references.
4108
41092008-06-25 Chong Yidong <cyd@stupidchicken.com>
4110
4111 * xfns.c (x_default_font_parameter): If Xft is available, first
4112 try Monospace-12 for the default font.
4113
41142008-06-25 Jason Rumney <jasonr@gnu.org>
4115
4116 * xdisp.c (get_glyph_face_and_encoding): Encode invalid glyphs as 0.
4117
41182008-06-25 Stefan Monnier <monnier@iro.umontreal.ca>
4119
4120 * bytecode.c (Fbyte_code): Disable debugging code that doesn't compile.
4121
4122 * buffer.c (syms_of_buffer): Remove default-word-wrap.
4123
41242008-06-25 Juanma Barranquero <lekktu@gmail.com>
4125
4126 * xdisp.c (syms_of_xdisp) <truncate-partial-width-windows>: Doc fix.
4127 <scroll-conservatively>: Fix typo in docstring.
4128
4129 * xselect.c (Fx_send_client_event): Doc fix.
4130
41312008-06-25 Kenichi Handa <handa@m17n.org>
4132
4133 * xfaces.c (Fx_list_fonts): Call Flist_fonts with the arg PREFER.
4134
4135 * font.c (font_parse_fcname): Remove unused variables.
4136 (font_sort_entites): Delete the arg SPEC. Caller changed.
4137 Fix for the case of ! best_only.
4138 (font_delete_unmatched): Check DPI and AVGWIDTH too.
4139
4140 * lisp.h (Fstring_to_unibyte): EXFUN it.
4141
4142 * character.h (str_to_unibyte): Extern it.
4143
4144 * character.c (str_to_unibyte): New function.
4145
4146 * fns.c (Fstring_to_unibyte): New function.
4147 (syms_of_fns): Defsubr it.
4148
41492008-06-24 Kenichi Handa <handa@m17n.org>
4150
4151 * font.c (font_score): Even if the PIXEL_SIZE is the same, check
4152 DPI too.
4153 (font_sort_entites): Setup prefer_prop[FONT_DPI_INDEX] too.
4154
41552008-06-24 Andreas Schwab <schwab@suse.de>
4156
4157 * Makefile.in (${lispsource}loaddefs.el): Rename from
4158 ../lisp/loaddefs.el.
4159 (bootstrap-clean): Do what distclean does but don't remove
4160 Makefile.
4161 (distclean): Depend on bootstrap-clean and remove Makefile.
4162
41632008-06-24 Chong Yidong <cyd@stupidchicken.com>
4164
4165 * buffer.h (struct buffer): New member word_wrap.
4166
4167 * buffer.c (syms_of_buffer): New variables default-word-wrap and
4168 word-wrap.
4169 (init_buffer_once): Initialize them.
4170
4171 * dispextern.h (struct it): Replace bool truncate_lines_p with a
4172 line_wrap enum possessing three possible values.
4173
4174 * termopts.h: Replace truncate_partial_width_windows with
4175 Vtruncate_partial_width_windows.
4176
4177 * dispnew.c (direct_output_for_insert): Avoid direct output when
4178 inserting a space with word wrap on.
4179
4180 * indent.c (compute_motion): Obey integer values of
4181 truncate-partial-width-windows.
4182
4183 * xdisp.c (Vtruncate_partial_width_windows): New Lisp_Object,
4184 replacing truncate_partial_width_windows.
4185 (init_iterator): If Vtruncate_partial_width_windows is an integer,
4186 truncate only if the window width is below that integer.
4187 (start_display, resize_mini_window, produce_stretch_glyph)
4188 (display_string, move_it_in_display_line_to): Use line_wrap.
4189 (back_to_previous_visible_line_start, reseat_1): Reset
4190 string_from_display_prop_p.
4191 (display_line): Extend default face to end of line when wrapping.
4192
41932008-06-24 Kim F. Storm <storm@cua.dk>
4194
4195 * xdisp.c (display_line, move_it_in_display_line_to): Add ability
4196 to wrap continued lines at word boundaries.
4197
41982008-06-24 Jason Rumney <jasonr@gnu.org>
4199
4200 * font.c (Ffont_face_attributes): Multiply pixel size before point
4201 conversion to avoid multiplying rounding error.
4202
42032008-06-23 Jason Rumney <jasonr@gnu.org>
4204
4205 * w32term.c (x_draw_glyph_string_background)
4206 (x_draw_glyph_string): Remove old bdf font code.
4207
4208 * w32term.h (FONT_TYPE_FOR_UNIBYTE, FONT_TYPE_FOR_MULTIBYTE): Remove.
4209
42102008-06-22 Kenichi Handa <handa@m17n.org>
4211
4212 * font.c (font_find_for_lface): Try the adstyle specified in
4213 the property of LFACE_FONT of LFACE (if any).
4214
42152008-06-21 Seiji Zenitani <zenitani@mac.com>
4216 Ryo Yoshitake <ryo@shiftmode.net>
4217
4218 * xterm.c (x_set_frame_alpha): Add x_catch_errors for bug#437.
4219
42202008-06-22 Stefan Monnier <monnier@iro.umontreal.ca>
4221
4222 * Makefile.in (${lisp} ${SOME_MACHINE_LISP}, ../lisp/loaddefs.el):
4223 Use $(BOOTSTRAPEMACS) rather than witness-emacs.
4224 (bootstrap-emacs${EXEEXT}): Merge witness-emacs into it.
4225 (witness-emacs): Remove.
4226 (lisp, shortlisp): Move loaddefs.el earlier.
4227 (mostlyclean): Forget about witness-emacs.
4228
42292008-06-22 Glenn Morris <rgm@gnu.org>
4230
4231 * Makefile.in (witness-emacs): Depend on temacs${EXEEXT}.
4232 (.SUFFIXES): Declare .el.elc as a suffix rule, for non-GNU makes.
4233
42342008-06-21 Stefan Monnier <monnier@iro.umontreal.ca>
4235
4236 * Makefile.in (PRECOMP): Remove.
4237 (${lisp} ${SOME_MACHINE_LISP}): Remove pseudo dependency on PRECOMP.
4238 (witness-emacs): Run `compile-first'.
4239 (.el.elc): Use the new compile-onefile target.
4240
42412008-06-21 Kenichi Handa <handa@m17n.org>
4242
4243 * xftfont.c (xftfont_open): Handle QCembolden only when
4244 FC_EMBOLDEN is defined.
4245
42462008-06-21 Andreas Schwab <schwab@suse.de>
4247
4248 * Makefile.in (witness-emacs): Use ../lisp, not $(lispsource).
4249 (.el.elc): Likewise.
4250
42512008-06-21 Miles Bader <miles@gnu.org>
4252
4253 * Makefile.in (../lisp/loaddefs.el): Build autoloads in the lisp
4254 build dir, not the lisp source dir.
4255
42562008-06-21 Stefan Monnier <monnier@iro.umontreal.ca>
4257
4258 * Makefile.in (emacs${EXEEXT}): Link the new emacs to bootstrap-emacs.
4259 (bootstrapclean): Remove.
4260 (.el.elc): New rule.
4261 (PRECOMP): New var.
4262 (../lisp/subdirs.el): Remove.
4263 (bootstrap-emacs${EXEEXT}): Remove subdirs.el and charpro.el dependency.
4264 (witness-emacs): New target.
4265 (mostlyclean): Remove witness-emacs as well.
4266 (../lisp/loaddefs.el, ${lisp} ${SOME_MACHINE_LISP}):
4267 Add witness-emacs dependency.
4268
42692008-06-20 Chong Yidong <cyd@stupidchicken.com>
4270
4271 * font.c (Ffont_face_attributes): Omit key-attribute pairs not
4272 defined by the font.
4273
42742008-06-20 Stefan Monnier <monnier@iro.umontreal.ca>
4275
4276 * Makefile.in (emacs${EXEEXT}): Depend on the machine-specific files.
4277 (bootstrap-clean): New target that keeps TAGS around.
4278 (../lisp/subdirs.el, ../lisp/loaddefs.el): New targets.
4279 (bootstrap-emacs${EXEEXT}): Depend on subdirs.el.
4280
42812008-06-20 Jason Rumney <jasonr@gnu.org>
4282
4283 * w32fns.c, w32term.c, w32term.h, w32gui.h [OLD_FONT]:
4284 Remove obsolete font code.
4285
4286 * w32font.c (font_matches_spec): Use csb bitfield from font signature
4287 to determine language support.
4288
42892008-06-20 Stefan Monnier <monnier@iro.umontreal.ca>
4290
4291 * sysdep.c (cfsetspeed): New fun extracted from the code.
4292 (cfmakeraw): Move before first use.
4293
42942008-06-20 Angelo Graziosi <angelo.graziosi@alice.it> (tiny change)
4295
4296 * sysdep.c (cfmakeraw): Provide fallback implementation.
4297 (serial_configure): Provide fallback implementation of cfsetspeed.
4298
42992008-06-20 Kenichi Handa <handa@m17n.org>
4300
4301 * xftfont.c (xftfont_open): Add FOUNDRY, SPACING, DPI, SCALABLE to
4302 the pattern.
4303
4304 * fontset.c (fontset_from_font): Copy font_spec before changing
4305 the elements.
4306
4307 * xfns.c (x_default_font_parameter): Try "monospace-12" too.
4308
43092008-06-20 Stefan Monnier <monnier@iro.umontreal.ca>
4310
4311 * w32fns.c, xfns.c (x_default_font_parameter): Only set `font-param'
4312 for explicit `font' parameters.
4313
4314 * frame.c (x_set_font): Remove unexplained call to fix inf-recursion.
4315
43162008-06-19 Kenichi Handa <handa@m17n.org>
4317
4318 * frame.c: Include <ctype.h>.
4319 (x_set_font_backend): Allow spacing characters in the X resource
4320 for FontBackend.
4321
43222008-06-19 Stefan Monnier <monnier@iro.umontreal.ca>
4323
4324 * w32fns.c, xfns.c (Qfont_param): New var.
4325 (syms_of_w32fns): Initialize it.
4326 (x_default_font_parameter): Record explicit `font' into
4327 `font-parameter'.
4328
43292008-06-18 Kenichi Handa <handa@m17n.org>
4330
4331 * font.c (font_parse_xlfd): Fix previous change.
4332 (font_parse_fcname): Don't use :fc-unknown-spec.
4333 (FRAME_X_DISPLAY_INFO): Be sure to have at least 1 pixel height.
4334 (Fcopy_font_spec): Preserve the order of elements in FONT_EXTRA.
4335 (font_add_log): Prepend the driver name to the resulting fonts.
4336
4337 * ftfont.c (ftfont_pattern_entity): New arg extra. Caller changed.
4338 (ftfont_spec_pattern): Don't check QCfc_unknown_spec and QCname.
4339 (ftfont_list) [FC_FONTFORMAT]: Include FC_FONTFORMAT in objset.
4340
4341 * xftfont.c (QChinting , QCautohint, QChintstyle, QCrgba)
4342 (QCembolden): New variables.
4343 (syms_of_xftfont): DEFSYM them.
4344 (xftfont_open): Call XftFontMatch. Don't trust the result of
4345 XftTextExtents8 if the pixel_size is less than 5.
4346
43472008-06-18 Andreas Schwab <schwab@suse.de>
4348
4349 * font.c (Ffont_face_attributes): Only define if HAVE_WINDOW_SYSTEM.
4350 (syms_of_font): Only defsubr if HAVE_WINDOW_SYSTEM.
4351
43522008-06-18 Jason Rumney <jasonr@gnu.org>
4353
4354 * w32font.c (w32font_list, w32font_match): Add logging.
4355
4356 * w32uniscribe.c (uniscribe_list, uniscribe_match): Add logging.
4357
43582008-06-17 Chong Yidong <cyd@stupidchicken.com>
4359
4360 * font.c (font_parse_fcname): Store divider characters for
4361 unknown-spec list. For known key symbols, intern using correct
4362 symbol name.
4363
43642008-06-17 Kenichi Handa <handa@m17n.org>
4365
4366 * xfaces.c (realize_default_face): If the frame is not on window
4367 system, set the fontset of face to nil.
4368
43692008-06-17 Naohiro Aota <nao.aota@gmail.com> (tiny change)
4370
4371 * fontset.c (fontset_pattern_regexp): Escape some reg-expr characters.
4372
43732008-06-16 Juanma Barranquero <lekktu@gmail.com>
4374
4375 * dispextern.h (lookup_non_ascii_face, split_font_name_into_vector)
4376 (build_font_name_from_vector): Delete externs.
4377
4378 * xfaces.c (struct font_name): Don't declare.
4379
43802008-06-16 Stefan Monnier <monnier@iro.umontreal.ca>
4381
4382 * font.c (font_unparse_gtkname): Use EQ to compare Lisp_Objects.
4383
43842008-06-16 Chong Yidong <cyd@stupidchicken.com>
4385
4386 * font.c (font_parse_fcname): Fix handling of unknown-spec string.
4387
43882008-06-16 Juanma Barranquero <lekktu@gmail.com>
4389
4390 * font.c (Ffont_spec): Fix usage in docstring.
4391 (Ffont_face_attributes): Doc fix.
4392
43932008-06-16 Andreas Schwab <schwab@suse.de>
4394
4395 * font.c (Ffont_face_attributes): Fix definition.
4396
43972008-06-16 Jason Rumney <jasonr@gnu.org>
4398
4399 * font.h (font_style_symbolic_from_value): Remove.
4400
4401 * font.c (font_style_symbolic_from_value): Remove.
4402 (font_style_symbolic): Revert to pre 2008-06-13 version.
4403
4404 * w32font.c (w32_to_fc_weight): New function.
4405 (w32font_full_name, logfont_to_fcname): Use it.
4406
44072008-06-16 Kenichi Handa <handa@m17n.org>
4408
4409 * font.c (font_check_object): Delete it.
4410 (font_clear_cache): Check if a font-object is alive.
4411 (font_open_entity): Likewise. Set FONT_OBJLST_INDEX of a
4412 font-object to nil.
4413 (font_close_object): Don't check FONT_CLOSE_OBJECT.
4414 (font_at): Don't call font_check_object.
4415 (Ffont_get): Return a symbol for :weight, :slant, and :width.
4416
44172008-06-16 Katsumi Yamaoka <yamaoka@jpl.org>
4418
4419 * puresize.h (BASE_PURESIZE): Increase to 1230000.
4420
44212008-06-16 Chong Yidong <cyd@stupidchicken.com>
4422
4423 * font.c (font_parse_fcname): Correctly parse KEY=VAL values.
4424
44252008-06-15 Chong Yidong <cyd@stupidchicken.com>
4426
4427 * font.c (font_parse_fcname): Only one decimal point.
4428 (font_unparse_fcname): Handle data in family and foundry indices
4429 as symbols, not strings.
4430 (font_unparse_gtkname, Ffont_face_attributes): New functions.
4431
4432 * xfns.c (Fx_select_font): Give GTK font dialog the default font name.
4433
4434 * font.h (font_unparse_gtkname): Add prototype.
4435
44362008-06-15 Naohiro Aota <nao.aota@gmail.com> (tiny change)
4437
4438 * fontset.c (fontset_pattern_regexp): Escape `+' characters in pattern.
4439
44402008-06-15 Andreas Schwab <schwab@suse.de>
4441
4442 * font.c (font_update_drivers): Fix crash when no drivers match.
4443
44442008-06-15 Stefan Monnier <monnier@iro.umontreal.ca>
4445
4446 * xfns.c (Fx_create_frame): internal-border-width default to 0 for Gtk.
4447 * gtkutil.c (xg_create_frame_widgets): Don't set internal_border_width.
4448
44492008-06-14 Stefan Monnier <monnier@iro.umontreal.ca>
4450
4451 * xdisp.c (syms_of_xdisp): Default underline-minimum-offset to 1.
4452
44532008-06-13 Stefan Monnier <monnier@iro.umontreal.ca>
4454
4455 * process.c (Fserial_process_configure, Fprocess_send_eof):
4456 Use EQ to compare Lisp_Objects.
4457
44582008-06-13 Jason Rumney <jasonr@gnu.org>
4459
4460 * w32fns.c (Fw32_select_font): Remove old font API function.
4461
4462 * w32font.c (logfont_to_fcname): New function.
4463 (Fx_select_font): New font dialog function compatible with
4464 GTK/fontconfig version.
4465
4466 * font.c (font_style_symbolic_from_value): New function.
4467 (font_style_symbolic): Use it.
4468
4469 * font.h (font_style_symbolic_from_value): Declare new function.
4470
44712008-06-13 Juanma Barranquero <lekktu@gmail.com>
4472
4473 * font.c (syms_of_font) <font-weight-table, font-slant-table>:
4474 <font-width-table>: Fix typos in docstrings.
4475
44762008-06-13 Daniel Engeler <engeler@gmail.com>
4477
4478 These changes add serial port access.
4479 * process.c: Add HAVE_SERIAL.
4480 (Fdelete_process, Fprocess_status, Fset_process_buffer)
4481 (Fset_process_filter, Fset_process_sentinel, Fprocess_contact)
4482 (list_processes_1, select_wrapper, Fstop_process)
4483 (Fcontinue_process, Fprocess_send_eof, kill_buffer_processes)
4484 (status_notify): Modify to handle serial processes.
4485 [HAVE_SERIAL] (Fserial_process_configure)
4486 [HAVE_SERIAL] (make_serial_process_unwind, Fmake_serial_process):
4487 New functions.
4488 * process.h (struct Lisp_Process): Add `type'.
4489 * sysdep.c [HAVE_TERMIOS] (serial_open, serial_configure):
4490 New functions.
4491 * w32.c (_sys_read_ahead, sys_read, sys_write): Modify to handle
4492 serial ports.
4493 (serial_open, serial_configure) New functions.
4494 * w32.h: Add FILE_SERIAL.
4495 (struct _child_process): Add ovl_read, ovl_write.
4496
44972008-06-13 Kenichi Handa <handa@m17n.org>
4498
4499 * dispextern.h (enum lface_attribute_index): New member
4500 LFACE_FOUNDRY_INDEX.
4501
4502 * font.c (font_score): Delete arg alternate_families. Check only
4503 weight, slant, width, and size. Ignore the difference of alias
4504 style symbols.
4505 (font_sort_entites): Adjust for the above change. Reflect the
4506 order of font-driver to scores.
4507 (font_list_entities): Don't check alternate_familes here.
4508 (font_clear_prop): Handle foundry.
4509 (font_update_lface): Don't parse "foundry-family" form here.
4510 Handle FONT_FOUNDRY_INDEX.
4511 (font_find_for_lface): Likewise. Handle alternate families here.
4512 If registry is nil, try iso8859-1 and ascii-0.
4513 (font_open_for_lface): Pay attention to size in ENTITY.
4514 (font_open_by_name): Simplify by calling font_load_for_lface.
4515 (free_font_driver_list): Delete it.
4516 (font_update_drivers): Preserve the order of backends.
4517 (syms_of_font): Setting of sort_shift_bits adjusted for the change
4518 of font_score and font_sort_entites.
4519 (font_update_sort_order): Likewise.
4520
4521 * xfaces.c (LFACE_FOUNDRY): New macro.
4522 (check_lface_attrs): Check foundry.
4523 (set_lface_from_font): Don't parse "FOUNDRY-FAMILY" form.
4524 (merge_face_vectors): Check foundry.
4525 (merge_face_ref): Likewise.
4526 (Finternal_set_lisp_face_attribute): Likewise.
4527 (x_update_menu_appearance): Likewise.
4528 (Finternal_get_lisp_face_attribute): Likewise.
4529 (lface_hash): Likewise.
4530 (lface_same_font_attributes_p): Likewise.
4531 (x_supports_face_attributes_p): Likewise.
4532 (tty_supports_face_attributes_p): Likewise.
4533 (Finternal_set_alternative_font_family_alist): Intern strings.
4534 (Finternal_set_alternative_font_registry_alist): Downcase strings.
4535 (realize_default_face): Set LFACE_FOUNDRY (lface).
4536
4537 * xfns.c (Fx_create_frame, x_create_tip_frame): Register X
4538 font-driver at first.
4539
4540 * ftfont.c (ftfont_font_format) [! FC_FONTFORMAT]: Declare "int len;".
4541
45422008-06-12 Emanuele Giaquinta <emanuele.giaquinta@gmail.com> (tiny change)
4543
4544 * lread.c (Fload): Use xfree, not free on saved_doc_string.
4545
45462008-06-12 Jim Meyering <meyering@redhat.com>
4547
4548 Make unexec_free handle NULL the same way free does.
4549 * unexmacosx.c (unexec_free): Ignore a NULL argument.
4550
45512008-06-12 Stefan Monnier <monnier@iro.umontreal.ca>
4552
4553 * character.h (CHAR_TO_BYTE_SAFE): New macro.
4554 * character.c (Fmultibyte_char_to_unibyte): Obey the docstring.
4555 * regex.c (RE_CHAR_TO_UNIBYTE): Use the new macro.
4556 (WEAK_ALIAS): Simplify.
4557 * syntax.c (skip_chars): Don't mark non-byte chars in the fastmap
4558 when searching a unibyte buffer.
4559
45602008-06-12 Chong Yidong <cyd@stupidchicken.com>
4561
4562 * xfns.c (Fx_select_font): Rename from x-font-dialog.
4563
45642008-06-12 Juanma Barranquero <lekktu@gmail.com>
4565
4566 * w32font.c: Include ctype.h.
4567
45682008-06-11 Jason Rumney <jasonr@gnu.org>
4569
4570 * w32font.c (w32font_encode_char): Detect missing glyphs that are
4571 misreported as space.
4572 (add_font_entity_to_list): Support unicode-bmp and unicode-sip
4573 as aliases for registry iso10646-1.
4574
45752008-06-11 Stefan Monnier <monnier@iro.umontreal.ca>
4576
4577 * buffer.c (clone_per_buffer_values): Skip `name'.
4578
45792008-06-11 Chong Yidong <cyd@stupidchicken.com>
4580
4581 * font.c (font_parse_fcname): Fix last change; accept decimal
4582 points in font size.
4583
45842008-06-10 Jason Rumney <jasonr@gnu.org>
4585
4586 * w32uniscribe.c (add_opentype_font_name_to_list):
4587 Skip non unicode fonts.
4588
45892008-06-10 Chong Yidong <cyd@stupidchicken.com>
4590
4591 * xfns.c (Fx_font_dialog): New function.
4592
4593 * gtkutil.c (xg_dialog_response_cb): Rename from
4594 xg_file_response_callback.
4595 (pop_down_dialog): Rename from pop_down_file_dialog.
4596 (xg_get_file_name): Callers changed.
4597 (xg_get_font_name): New function.
4598
4599 * gtkutil.h (xg_get_font_name): Insert prototype.
4600
46012008-06-10 Stefan Monnier <monnier@iro.umontreal.ca>
4602
4603 * xdisp.c (underline_minimum_offset): Rename from xterm.c's
4604 x_underline_minimum_display_offset.
4605 (syms_of_xdisp): Declare it here rather than in xterm.c.
4606 * dispextern.h (underline_minimum_offset): Declare it.
4607 * w32term.c (x_draw_glyph_string): Use it.
4608 * xterm.c (x_underline_minimum_display_offset): Move to xdisp.c.
4609 (syms_of_xterm): Don't declare it any more.
4610 (x_draw_glyph_string): Adjust to the new name.
4611
46122008-06-10 David De La Harpe Golden <david@harpegolden.net> (tiny change)
4613
4614 * xterm.c (x_underline_minimum_display_offset): New var.
4615 (x_draw_glyph_string): Use it.
4616 (syms_of_xterm): Declare it.
4617
46182008-06-10 Chong Yidong <cyd@stupidchicken.com>
4619
4620 * font.c (font_parse_fcname): Accept GTK-style font names too.
4621
46222008-06-10 Stefan Monnier <monnier@iro.umontreal.ca>
4623
4624 * dired.c (file_name_completion): Don't return t if the match is exact
4625 but with different capitalization.
4626 * minibuf.c (Ftry_completion): Simplify.
4627
4628 * window.c (Vwindow_point_insertion_type): New var.
4629 (set_window_buffer): Use it.
4630 (syms_of_window): Init and export it to Lisp.
4631
46322008-06-10 Kenichi Handa <handa@m17n.org>
4633
4634 * font.h (font_intern_prop): Prototype adjusted.
4635
4636 * font.c (font_intern_prop): New arg force_symbol.
4637 (font_parse_xlfd, font_parse_fcname, font_parse_family_registry):
4638 Adjust for the change of font_intern_prop.
4639
4640 * ftfont.c (ftfont_pattern_entity):
4641 * w32font.c (add_font_name_to_list, w32_enumfont_pattern_entity)
4642 (w32_registry):
4643 * w32uniscribe.c (add_opentype_font_name_to_list): Adjust for
4644 the change of font_intern_prop.
4645
46462008-06-09 Juanma Barranquero <lekktu@gmail.com>
4647
4648 * w32menu.c (digest_single_submenu): Declare extern.
4649
46502008-06-09 Jason Rumney <jasonr@gnu.org>
4651
4652 * w32term.c (x_make_frame_visible): Use alternate restore flags.
4653
4654 * w32menu.c (Fx_popup_menu): Unwind protect while building menu.
4655 (parse_single_submenu): Remove.
4656 (digest_single_submenu): Remove.
4657 (syms_of_w32menu): Don't initialise variables that have moved
4658 to menu.c.
4659 (set_frame_menubar): Sync with version in xmenu.c.
4660 (w32_menu_show): Sync with xmenu_show in xmenu.c.
4661
4662 * menu.c (single_keymap_panes, push_menu_pane, push_menu_item):
4663 Make static again.
4664
46652008-06-09 Jason Rumney <jasonr@gnu.org>
4666
4667 Changes to w32 files related to the move of common menu code
4668 to menu.c on 2008-06-08 by Chong Yidong.
4669
4670 * menu.c [HAVE_NTGUI]: Include w32term.h, move widget related
4671 defs to w32gui.h.
4672 (single_keymap_panes, push_menu_item, push_menu_pane):
4673 Make globally visible.
4674
4675 * w32menu.c (enum button_type, widget_value, local_heap, local_alloc)
4676 (local_free, malloc_widget_value, free_widget_value)
4677 (MENU_ITEMS_ITEM_NAME, MENU_ITEMS_ITEM_ENABLE, MENU_ITEMS_ITEM_VALUE)
4678 (MENU_ITEMS_ITEM_EQUIV_KEY, MENU_ITEMS_ITEM_DEFINITION)
4679 (MENU_ITEMS_ITEM_TYPE, MENU_ITEMS_ITEM_SELECTED, MENU_ITEMS_ITEM_HELP)
4680 (MENU_ITEMS_ITEM_LENGTH, enum menu_item_idx): Remove defs.
4681 (menu_items, menu_items_allocated, menu_items_used)
4682 (menu_items_n_panes, menu_items_submenu_depth): Remove global vars.
4683 (init_menu_items, finish_menu_items, discard_menu_items)
4684 (grow_menu_items, push_submenu_start, push_submenu_end)
4685 (push_left_right_boundary, push_menu_pane, push_menu_item)
4686 (keymap_panes, single_keymap_panes, list_of_panes, list_of_items)
4687 (free_menubar_widget_tree_value, parse_single_submenu)
4688 (update_submenu_strings): Remove functions.
4689 (xmalloc_widget_value): Remove and declare extern.
4690
4691 * makefile.w32-in ($(SRC)/menu.$(O)): New target.
4692 (OBJ1): Build it.
4693
4694 * w32gui.h (widget_value, XtPointer, Boolean, enum button_type)
4695 (local_heap, local_alloc, local_free, malloc_widget_value)
4696 (free_widget_value): Define here.
4697
46982008-06-09 Kenichi Handa <handa@m17n.org>
4699
4700 * font.h (Qascii_0): Extern it.
4701
4702 * font.c (Qascii_0): New variable.
4703 (syms_of_font): DEFSYM it.
4704 (font_open_by_name): If the registry "iso8859-1" fails, try also
4705 "ascii-0".
4706
4707 * ftfont.c (ftfont_spec_pattern): Accept the registry `ascii-0'.
4708
47092008-06-08 Kenichi Handa <handa@m17n.org>
4710
4711 * .gdbinit (xfont): New command.
4712
47132008-06-08 Andreas Schwab <schwab@suse.de>
4714
4715 * menu.c [HAVE_X_WINDOWS]: Include "xterm.h".
4716 * Makefile.in (menu.o): Update dependencies.
4717
4718 * Makefile.in (obj): Always add menu.o.
4719 * emacs.c (main): Always call syms_of_menu.
4720 * keyboard.h: Remove extra #ifdef HAVE_X_WINDOW.
4721
47222008-06-08 Chong Yidong <cyd@stupidchicken.com>
4723
4724 * Makefile.in: Compile menu.c.
4725
4726 * lisp.h: Declare syms_of_menu.
4727
4728 * emacs.c (main): Call syms_of_menu.
4729
4730 * keyboard.h: Relocate platform-independent menu definitions from
4731 xmenu.c.
4732
4733 * menu.c: New file. Relocate platform-independent menu
4734 definitions from xmenu.c. Suggested by Adrian Robert.
4735
4736 * xmenu.c: Remove platform-independent menu definitions.
4737 (menu_items menu_items_inuse, menu_items_allocated)
4738 (menu_items_used, menu_items_n_panes)
4739 (menu_items_submenu_depth): Move to keyboard.h.
4740 (init_menu_items, finish_menu_items, unuse_menu_items)
4741 (discard_menu_items, restore_menu_items, save_menu_items)
4742 (grow_menu_items, push_submenu_start, push_submenu_end)
4743 (push_left_right_boundary, push_menu_pane, push_menu_item)
4744 (keymap_panes, single_keymap_panes, single_menu_item)
4745 (list_of_panes, list_of_items, find_and_call_menu_selection)
4746 (xmalloc_widget_value, free_menubar_widget_value_tree)
4747 (parse_single_submenu, digest_single_submenu)
4748 (update_submenu_strings): Move to menu.c.
4749
47502008-06-07 Stefan Monnier <monnier@iro.umontreal.ca>
4751
4752 * dispnew.c (Flast_nonminibuf_frame): Handle the NULL case.
4753
47542008-06-06 Miles Bader <miles@gnu.org>
4755
4756 * xdisp.c (x_produce_glyphs): Calculate tab width based on current
4757 face, not frame default.
4758
47592008-06-05 Martin Rudalics <rudalics@gmx.at>
4760
4761 * window.c (pop_up_windows, pop_up_frames)
4762 (display_buffer_reuse_frames, Vpop_up_frame_function)
4763 (Vdisplay_buffer_function, Veven_window_heights)
4764 (Vspecial_display_buffer_names, Vspecial_display_regexps)
4765 (Vspecial_display_function, Vsame_window_buffer_names)
4766 (Vsame_window_regexps, split_height_threshold)
4767 (Vsplit_window_preferred_function): Move those vars to window.el.
4768 (display_buffer_1, Fspecial_display_p, Fsame_window_p)
4769 (Fdisplay_buffer): Move those functions to window.el.
4770 (syms_of_window): Remove corresponding declarations.
4771 (display_buffer): New function.
4772 (temp_output_buffer_show, Fother_window_for_scrolling): Use it.
4773 * dispnew.c (Flast_nonminibuf_frame): New function.
4774 * buffer.c (Fpop_to_buffer): Move to window.el.
4775
47762008-06-05 Stefan Monnier <monnier@iro.umontreal.ca>
4777
4778 * data.c (set_internal): Fix up call to let_shadows_buffer_binding_p.
4779
47802008-06-05 Kenichi Handa <handa@m17n.org>
4781
4782 * coding.c (detect_coding): Fix previous change.
4783 (detect_coding_system): Likewise.
4784
47852008-06-05 Stefan Monnier <monnier@iro.umontreal.ca>
4786
4787 * character.h (MAKE_CHAR_MULTIBYTE): Check the arg is a (uni)byte.
4788
4789 * keymap.c (Vminibuffer_local_filename_must_match_map):
4790 Rename from Vminibuffer_local_must_match_filename_map.
4791 (syms_of_keymap):
4792 * minibuf.c (Fcompleting_read): Adjust accordingly.
4793 * commands.h: Rename declaration as well.
4794
47952008-06-05 Kenichi Handa <handa@m17n.org>
4796
4797 * font.c (Ffont_spec): Don't use font_parse_family_registry for
4798 family name.
4799 (Ffont_put): Likewise.
4800
4801 * fontset.c (fontset_find_font): Call font_open_for_lface with the
4802 current font-spec.
4803
4804 * xfont.c (xfont_list): Don't set registry to iso8859-1 even if it
4805 is unspecified.
4806
4807 * xfaces.c (realize_x_face): If the font-related face attributes
4808 are the same as those of default face, realize a new fontset from
4809 default->fontset.
4810 (Fx_family_fonts): Use font_parse_family_registry instead of Ffont_put.
4811
48122008-06-05 Stefan Monnier <monnier@iro.umontreal.ca>
4813
4814 * xdisp.c (move_it_in_display_line_to): Improve the type of its args.
4815 (move_it_in_display_line): New wrapper.
4816
4817 * window.c (window_scroll_pixel_based_preserve_x)
4818 (window_scroll_preserve_hpos, window_scroll_preserve_vpos): New vars.
4819 (window_scroll_pixel_based, window_scroll_line_based):
4820 Use them to preserve column positions.
4821 (syms_of_window): Initialize them.
4822
4823 * indent.c (Fvertical_motion): Extend first arg to allow passing an
4824 (HPOS . VPOS) pair.
4825
4826 * dispextern.h (move_it_in_display_line): Declare.
4827
48282008-06-05 Juanma Barranquero <lekktu@gmail.com>
4829
4830 * window.c (Fwindow_parameter): Return VALUE, not (PARAMETER . VALUE).
4831 (Fwindow_parameters): Return copy of parameter alist. Doc fix.
4832 (Fset_window_parameter): Return VALUE, not parameter alist. Doc fix.
4833
48342008-06-04 Juanma Barranquero <lekktu@gmail.com>
4835
4836 * window.c (Fset_window_parameter): Doc fix.
4837 (Fwindow_parameters, Fwindow_parameter): Remove redundant check.
4838
48392008-06-04 Joakim Verona <joakim@verona.se>
4840
4841 * window.h (struct window): Add new member window_parameters.
4842
4843 * window.c (Fwindow_parameters, Fwindow_parameter)
4844 (Fset_window_parameter): New defuns.
4845 (syms_of_window): Defsubr the new defuns.
4846 (make_window): Initialize window_parameters to nil.
4847
48482008-06-04 John Paul Wallington <jpw@pobox.com>
4849
4850 * eval.c (Fdefmacro): Doc fix.
4851
48522008-06-04 Kenichi Handa <handa@m17n.org>
4853
4854 * coding.c (detect_coding): Fix handling of coding->head_ascii.
4855 Be sure to call setup_coding_system when we find a proper coding system.
4856 (detect_coding_system): Fix handling of coding->head_ascii.
4857
48582008-06-03 Andreas Schwab <schwab@suse.de>
4859
4860 * font.c (font_prop_validate_spacing): Fix last change.
4861
48622008-06-03 Kenichi Handa <handa@m17n.org>
4863
4864 * font.c (font_prop_validate_spacing): Handle uppercase symbols.
4865 (font_parse_fcname): Fix handling of unknown key.
4866
4867 * xfont.c (xfont_list): Try an alias.
4868
4869 * charset.c (char_charset): Return NULL if the arg charset_list is
4870 specified and C doesn't belong to any of them.
4871
48722008-06-02 Chip Coldwell <coldwell@redhat.com>
4873
4874 * font.c (font_pixel_size): Don't take cdr of an integer.
4875
48762008-06-02 Jim Meyering <meyering@redhat.com>
4877
4878 Make "xfree (NULL)" a no-op; remove useless if-before-xfree.
4879 * alloc.c (xfree): Return right away for a NULL arg.
4880 * lread.c (nosuffix): Remove now-useless if-before-xfree tests.
4881 * gtkutil.c (xg_gtk_scroll_destroy): Likewise.
4882 * mac.c (create_apple_event_from_event_ref): Likewise.
4883 (create_apple_event_from_drag_ref, cfstring_create_normalized):
4884 Likewise.
4885 * doprnt.c (doprnt1): Likewise.
4886 * frame.c (frame): Likewise.
4887 * keyboard.c (wipe_kboard): Likewise.
4888 * macterm.c (x_free_frame_resources, xlfdpat_destroy, XFreePixmap)
4889 (init_font_name_table, mac_unload_font, x_delete_display): Likewise.
4890 * term.c (tty_default_color_capabilities, maybe_fatal)
4891 (delete_tty): Likewise.
4892 * w16select.c (string): Likewise.
4893 * w32.c (w32_get_resource, SET_ENV_BUF_SIZE): Likewise.
4894 * w32bdf.c (w32_free_bdf_font): Likewise.
4895 * w32fns.c (w32_unload_font): Likewise.
4896 * w32font.c (w32font_close): Likewise.
4897 * window.c (size_window): Likewise.
4898 * xselect.c (receive_incremental_selection): Likewise.
4899 * xterm.c (x_free_frame_resources, x_delete_display): Likewise.
4900 * mactoolbox.c (create_apple_event_from_drag_ref): Likewise.
4901 * w32.c (stat): Likewise.
4902
4903 Remove useless if-before-free tests.
4904 * editfns.c (Fset_time_zone_rule): Likewise.
4905 * lread.c (nosuffix): Likewise.
4906 * ralloc.c (get_bloc): Likewise.
4907 * regex.c (reg_free): Likewise.
4908 * xftfont.c (xftfont_open, xftfont_close): Likewise.
4909 * xrdb.c (get_user_app, get_environ_db, x_load_resources): Likewise.
4910 * xsmfns.c (smc_save_yourself_CB): Likewise.
4911
49122008-06-02 Kenichi Handa <handa@m17n.org>
4913
4914 * font.c (font_find_for_lface): Handle float font size.
4915 (font_open_for_lface): Likewise.
4916
4917 * xfaces.c (x_supports_face_attributes_p): Check face->font before
4918 comparing the properties.
4919
49202008-06-01 Jason Rumney <jasonr@gnu.org>
4921
4922 * w32font.c (w32_enumfont_pattern_entity): Use requested registry.
4923 Treat iso10646-1 and Windows DEFAULT_CHARSET specially.
4924 Duplicate iso8859-1 fonts as iso10646-1 if no registry specified.
4925 Don't add empty script list.
4926 (w32_registry): Only map DEFAULT_CHARSET to iso10646-1 here.
4927
49282008-06-01 Dan Nicolaescu <dann@ics.uci.edu>
4929
4930 * Makefile.in (dot, dotdot): Remove, update users.
4931 ".." has been used elsewhere in the file for a long time.
4932 (LIBXT_STATIC): Remove conditional based on unused variable.
4933
49342008-06-01 Miles Bader <miles@gnu.org>
4935
4936 * xfaces.c (Vface_remapping_alist): New variable.
4937 (syms_of_xfaces): Initialize it.
4938 (enum named_merge_point_kind): New type.
4939 (struct named_merge_point): Add `named_merge_point_kind' field.
4940 (push_named_merge_point): Make cycle detection respect different
4941 named-merge-point kinds.
4942 (lface_from_face_name_no_resolve): Rename from `lface_from_face_name'.
4943 Remove face-name alias resolution.
4944 (lface_from_face_name): New definition using
4945 `lface_from_face_name_no_resolve'.
4946 (get_lface_attributes_no_remap): Rename from `get_lface_attributes'.
4947 Call lface_from_face_name_no_resolve instead of lface_from_face_name.
4948 (get_lface_attributes): New definition that layers face-remapping on
4949 top of get_lface_attributes_no_remap. New arg `named_merge_points'.
4950 (lookup_basic_face): New function.
4951 (lookup_derived_face): Pass new last arg to `get_lface_attributes'.
4952 (realize_named_face): Call `get_lface_attributes_no_remap' instead of
4953 `get_lface_attributes'.
4954 (face_at_buffer_position): Use `lookup_basic_face' to lookup
4955 DEFAULT_FACE_ID if necessary. When optimizing the default-face case,
4956 return default_face's face-id instead of the constant DEFAULT_FACE_ID.
4957
4958 * xdisp.c (init_iterator): Pass base_face_id through
4959 `lookup_basic_face' when we actually use it as a face-id.
4960 (handle_single_display_prop): Use `lookup_basic_face' to lookup
4961 DEFAULT_FACE_ID.
4962
4963 * fontset.c (Finternal_char_font): Use `lookup_basic_face' to
4964 lookup the initial face-id.
4965
4966 * dispextern.h (lookup_basic_face, Vface_remapping_alist): New decls.
4967
49682008-06-01 Juanma Barranquero <lekktu@gmail.com>
4969
4970 * textprop.c (syms_of_textprop) <text-property-default-nonsticky>:
4971 (Fremove_text_properties): Fix typos in docstrings.
4972
49732008-05-31 Kenichi Handa <handa@m17n.org>
4974
4975 * font.c (font_list_entities): Fix the car part of data to be
4976 stored in the cache.
4977
4978 * ftfont.c (ftfont_font_format): Don't use strcasestr.
4979
49802008-05-30 Stefan Monnier <monnier@iro.umontreal.ca>
4981
4982 * chartab.c (Foptimize_char_table, optimize_sub_char_table):
4983 Add a `test' argument so another predicate than `equal' can be used.
4984 (map_sub_char_table): Use `eq' rather than `equal' to merge ranges.
4985 (map_char_table): Remove unused vars `c' and `i'.
4986 * lisp.h (Foptimize_char_table): Adjust declaration.
4987 * charset.c (Fclear_charset_maps): Adjust call to Foptimize_char_table.
4988
49892008-05-30 Kenichi Handa <handa@m17n.org>
4990
4991 * font.c (Ffont_info): Define only if HAVE_WINDOW_SYSTEM is defined.
4992 (syms_of_font): Defsubr Sfont_info only if HAVE_WINDOW_SYSTEM is
4993 defined.
4994
49952008-05-30 Stefan Monnier <monnier@iro.umontreal.ca>
4996
4997 * data.c (Fmake_variable_buffer_local, Fmake_local_variable)
4998 (Fmake_variable_frame_local): Disallow mixing buffer-local and
4999 frame-local settings for the same variable.
5000
50012008-05-30 Kenichi Handa <handa@m17n.org>
5002
5003 * fontset.c (Ffont_info): Move to font.c.
5004 (syms_of_fontset): Delete defsubr of Sfont_info.
5005
5006 * font.c (font_style_to_value, font_score): Delete casting of the
5007 args to xstcasecmp.
5008 (register_font_driver): Increment num_font_drivers only when
5009 registering the driver globally.
5010 (Ffont_info): Move from fontset.c. Handle a font object too.
5011 (syms_of_font): Defsubr Sfont_info.
5012
50132008-05-29 Kenichi Handa <handa@m17n.org>
5014
5015 * coding.h (enum define_coding_utf8_arg_index): New enum.
5016 (enum coding_attr_index): Change coding_attr_utf_16_bom to
5017 coding_attr_utf_bom.
5018 (enum utf_bom_type): Rename from utf_16_bom_type.
5019 (struct utf_16_spec): Adjust for the above change.
5020 (struct coding_system): Add utf_8_bom in `spec' union.
5021
5022 * coding.c (CODING_UTF_8_BOM): New macro.
5023 (enum coding_category): Delete coding_category_utf_8, add
5024 coding_category_utf_8_auto, coding_category_utf_8_nosig, and
5025 coding_category_utf_8_sig.
5026 (CATEGORY_MASK_UTF_8): Delete it.
5027 (CATEGORY_MASK_UTF_8_AUTO, CATEGORY_MASK_UTF_8_NOSIG)
5028 (CATEGORY_MASK_UTF_8_SIG): New macros.
5029 (CATEGORY_MASK_ANY): Delete CATEGORY_MASK_UTF_8, add
5030 CATEGORY_MASK_UTF_8_AUTO, CATEGORY_MASK_UTF_8_NOSIG, and
5031 CATEGORY_MASK_UTF_8_SIG.
5032 (CATEGORY_MASK_UTF_8): New macro.
5033 (UTF_BOM, UTF_8_BOM_1, UTF_8_BOM_2, UTF_8_BOM_3): New macros.
5034 (detect_coding_utf_8): Check BOM.
5035 (decode_coding_utf_8, encode_coding_utf_8): Handle BOM.
5036 (decode_coding_utf_16): Adjust for the change of enum utf_bom_type.
5037 (encode_coding_utf_16): Likewise.
5038 (setup_coding_system): Likewise. Set CODING_UTF_8_BOM (coding).
5039 (detect_coding, detect_coding_system): Handle utf-8-auto.
5040 (Fdefine_coding_system_internal): Handle `bom' property for utf-8.
5041 (syms_of_coding): Fix setting up of Vcoding_category_table.
5042
50432008-05-29 Stefan Monnier <monnier@iro.umontreal.ca>
5044
5045 * process.c (Faccept_process_output): If `millisec' is non-nil,
5046 `seconds' default to 0.
5047 (wait_reading_process_output): Also return non-nil if we read output
5048 from a non-running process.
5049
50502008-05-29 Jason Rumney <jasonr@gnu.org>
5051
5052 * w32font.c (w32font_open_internal): Prefer truetype fonts unless
5053 `raster' specified.
5054 (add_font_entity_to_list): Allow non-opentype truetype fonts back
5055 in the uniscribe backend, but disallow any font that has no
5056 unicode subrange support.
5057
50582008-05-29 Juanma Barranquero <lekktu@gmail.com>
5059
5060 * xfaces.c (Fx_list_fonts, Finternal_copy_lisp_face):
5061 Fix typos in docstrings.
5062
50632008-05-29 Kenichi Handa <handa@m17n.org>
5064
5065 * xfaces.c (Fx_list_fonts): Make it return a list of font names.
5066 (Fx_family_fonts): Set frame correctly.
5067
50682008-05-28 Jason Rumney <jasonr@gnu.org>
5069
5070 * w32term.c (x_draw_glyph_string): Use clipmask if specified.
5071
50722008-05-28 Stefan Monnier <monnier@iro.umontreal.ca>
5073
5074 * fileio.c (Fwrite_region): Delay the defaulting to beg&z to after
5075 calling build_annotations.
5076
50772008-05-28 Juanma Barranquero <lekktu@gmail.com>
5078
5079 * coding.c (Fdecode_coding_region, Fencode_coding_region)
5080 (Fencode_coding_string):
5081 (syms_of_coding) <coding-system-for-read, coding-system-for-write>:
5082 <latin-extra-code-table>: Fix typos in docstrings.
5083 (syms_of_coding) <coding-system-alist>: Doc fix.
5084 (syms_of_coding) <translation-table-for-input>: Reflow docstring.
5085
50862008-05-28 Kenichi Handa <handa@m17n.org>
5087
5088 * fontset.c (Ffont_info): Don't call font_close_object.
5089
5090 * font.c (font_parse_family_registry): Use Ffont_put to validate
5091 foundry and family.
5092 (font_delete_unmatched): Don't check spacing.
5093 (font_list_entities): Add spacing to the spec to list fonts.
5094
5095 * ftfont.c (ftfont_spec_pattern): Don't set FC_SPACING to pattern.
5096 (ftfont_list): Check spacing here. Don't include FC_CHARSET in objset.
5097
5098 * coding.c (encode_coding_raw_text): Fix previous change.
5099 (encode_coding_object): When the dst_object is a buffer and is
5100 different from src_object, move gap to PT.
5101
51022008-05-27 Chong Yidong <cyd@stupidchicken.com>
5103
5104 * xterm.c (x_draw_glyph_string): If a clipmask is specified, use it.
5105
51062008-05-27 Stefan Monnier <monnier@iro.umontreal.ca>
5107
5108 * coding.c (encode_coding_raw_text): Set coding->produced_char for
5109 all branches. Compute it differently.
5110
5111 * xdisp.c [!HAVE_WINDOW_SYSTEM]: Include font.h for --without-x.
5112
51132008-05-27 Juanma Barranquero <lekktu@gmail.com>
5114
5115 * w32font.c (compute_metrics): Rewrite an "else { if () ... else ... }"
5116 into "else if () ... else ...".
5117
51182008-05-27 Jason Rumney <jasonr@gnu.org>
5119
5120 * w32font.c (w32font_open_internal): Determine if glyph indices
5121 are likely to work here.
5122
51232008-05-27 Chong Yidong <cyd@stupidchicken.com>
5124
5125 * xdisp.c (draw_glyphs): If mouse-highlighting is on, attempt to
5126 draw overlap glyphs with appropriate highlighting.
5127
51282008-05-27 Kenichi Handa <handa@m17n.org>
5129
5130 * xfont.c (xfont_open): Fix calculation of font->average_width.
5131
51322008-05-27 Stefan Monnier <monnier@iro.umontreal.ca>
5133
5134 * casefiddle.c (casify_object): Try to guess better whether the
5135 argument is a byte or a char.
5136
51372008-05-26 Andreas Schwab <schwab@suse.de>
5138
5139 * xselect.c (x_reply_selection_request): Properly handle format == 32.
5140 Always send multiples of format size.
5141
5142 * xterm.c (x_set_frame_alpha): Fix type mismatch.
5143
51442008-05-26 Jason Rumney <jasonr@gnu.org>
5145
5146 * w32font.c (w32font_text_extents): Zero whole metrics struct first.
5147 (compute_metrics): Don't set failure if we just cleared the cache.
5148 (w32_weight_table): Remove unused variable.
5149 (w32_enumfont_pattern_entity): Use FONT_SPACING_CHARCELL for
5150 backwards compatibility.
5151
51522008-05-25 Kenichi Handa <handa@m17n.org>
5153
5154 * w32term.c (x_draw_glyph_string):
5155 * xterm.c (x_draw_glyph_string): Fix calculation of underline position.
5156
5157 * xfaces.c: Delete unused function prototypes.
5158 (xstrlwr, font_frame): Delete them.
5159 (clear_face_cache): Delete unused variable.
5160
5161 * xftfont.c (xftfont_open): Delete unused variable.
5162 If underline_thickness is not 1, adjust underline_position.
5163
5164 * ftxfont.c (ftxfont_open): Delete unused variable.
5165
5166 * fontset.c (face_for_char): Optimize for the case of no charset
5167 property.
5168
5169 * font.c (LGSTRING_HEADER_SIZE, LGSTRING_GLYPH_SIZE)
5170 (check_gstring, check_otf_features, otf_list, otf_tag_symbol)
5171 (otf_open, font_otf_capability, generate_otf_features)
5172 (font_otf_DeviceTable, font_otf_ValueRecord, font_otf_Anchor):
5173 Comment out by surrounding "#if 0" and "#endif" for the moment.
5174 (Ffont_drive_otf, Ffont_otf_alternates): Likewise.
5175 (syms_of_font): Codes for accessing above commented out.
5176
51772008-05-24 Eli Zaretskii <eliz@gnu.org>
5178
5179 * w32proc.c: Include dispextern.h.
5180
5181 * w32.c: Include dispextern.h.
5182
51832008-05-23 Juanma Barranquero <lekktu@gmail.com>
5184
5185 * charset.c (Fencode_char, Fsplit_char): Doc fixes.
5186 (Fget_unused_iso_final_char, Fdecode_char, Fiso_charset):
5187 Fix typos in docstrings.
5188
51892008-05-23 Jason Rumney <jasonr@gnu.org>
5190
5191 * xsmfns.c: Remove includes that are already included by config.h.
5192
51932008-05-23 Kenichi Handa <handa@m17n.org>
5194
5195 * charset.c (Qemacs, charset_emacs): New variables.
5196 (char_charset): Fix for non-Unicode characters.
5197 (syms_of_charset): Define charset_emacs.
5198
5199 * w32term.c (x_draw_glyph_string): Be sure to update
5200 s->underline_thickness and s->underline_position. Be sure to draw
5201 underline within the current line area.
5202
5203 * xterm.c (x_draw_glyph_string): Be sure to update
5204 s->underline_thickness and s->underline_position. Be sure to draw
5205 underline within the current line area.
5206
5207 * fontset.c: Delete unused variables and add casting for char *
5208 throughout the file.
5209 (fontset_font): Try the fallback fonts of the current fontset
5210 before consulting the default fontset.
5211
5212 * ftfont.c (ftfont_spec_pattern): Free charset if necessary.
5213
5214 * xfont.c (xfont_list_pattern): Free names returned from XListFonts.
5215
52162008-05-22 Jason Rumney <jasonr@gnu.org>
5217
5218 * font.c: Don't include strings.h.
5219
5220 * dispextern.h, xfaces.c (xstrcasecmp): Rename from xstricmp.
5221
5222 * dosfns.c, fileio.c, font.c, fontset.c, image.c, macfns.c:
5223 * macterm.c, process.c, w32.c, w32fns.c, w32proc.c, xfaces.c:
5224 * xfns.c, xfont.c: All callers of stricmp and strcasecmp changed
5225 to call xstrcasecmp.
5226
5227 * xfont.c (xfont_list_pattern, compare_font_names): Use xstrcasecmp.
5228
5229 * fontset.c (fs_query_fontset): Use xstrcasecmp.
5230
5231 * font.c (font_style_to_value, font_score): Use xstrcasecmp.
5232
5233 * dosfns.c (msdos_stdcolor_idx): Use xstrcasecmp.
5234
52352008-05-22 Kenichi Handa <handa@m17n.org>
5236
5237 * puresize.h (BASE_PURESIZE): Increase to 1220000.
5238
5239 * font.c (font_prop_validate_style): Adjust for the format
5240 change of font_style_table.
5241
5242 * w32font.c (w32font_open_internal): Call Ffont_xlfd_name with
5243 two args.
5244
5245 * xfaces.c (x_update_menu_appearance): Call Ffont_xlfd_name with
5246 two args.
5247
52482008-05-22 Stefan Monnier <monnier@iro.umontreal.ca>
5249
5250 * minibuf.c (keys_of_minibuf): Delete.
5251 * lisp.h (keys_of_minibuf): Delete.
5252 * emacs.c (main): Don't call keys_of_minibuf.
5253
52542008-05-22 Kenichi Handa <handa@m17n.org>
5255
5256 * ftfont.c (ftfont_resolve_generic_family): Rename from
5257 ftfont_list_generic_family. Return a single family for each
5258 generic family.
5259 (ftfont_spec_pattern): Add FC_FAMILY to pattern.
5260 (ftfont_list): Adjust for the change of ftfont_resolve_generic_family.
5261 Call font_add_log.
5262 (ftfont_match): Call font_add_log.
5263
5264 * font.h (Ffont_xlfd_name): EXFUN adjusted.
5265 (FONT_DEBUG): Define it.
5266 (font_add_log): Extern it.
5267 (font_assert): Rename from xassert.
5268
5269 * xfont.c (xfont_get_pcm): Change xassert to font_assert.
5270 (xfont_list_family): Call font_add_log.
5271 (xfont_match): Likewise.
5272 (memq_no_quit): Delete.
5273
5274 * fontset.c (fontset_from_font, Ffontset_info): Add the 2nd arg in
5275 call of Ffont_xlfd_name.
5276
5277 * xfaces.c (struct table_entry, slant_table, weight_table)
5278 (swidth_table): Move to font.c.
5279
5280 * font.c: Checking of FONT_DEBUG is moved to font.h. All calls of
5281 xassert are changed to font_assert. Delete many unused variables.
5282 (Vfont_weight_table, Vfont_slant_table, Vfont_width_table):
5283 New variables.
5284 (struct table_entry): Move from xfaces.c and modified.
5285 (weight_table, slant_table, width_table): Move from xfaces.c and
5286 contents adjusted for the change of struct table_entry.
5287 (font_style_to_value, font_style_symbolic): Adjust for the
5288 format change of font_style_table.
5289 (font_parse_family_registry): Don't overwrite existing foundry and
5290 family of font_spec.
5291 (font_score): Fix calculation of diff for sizes.
5292 (font_sort_entites): Call font_add_log.
5293 (font_delete_unmatched): Return a newly created list.
5294 (font_list_entities): Fix previous change. Call font_add_log.
5295 (font_matching_entity, font_open_entity, font_close_entity):
5296 Call font_add_log.
5297 (Ffont_xlfd_name): New arg FOLD-WILDCARDS.
5298 (Finternal_set_font_style_table): Delete.
5299 (BUILD_STYLE_TABLE): New macro.
5300 (build_style_table): New function.
5301 (Vfont_log, font_log_env_checked): New variables.
5302 (font_add_log): New function.
5303 (syms_of_font): Delete defsubr Sinternal_set_font_style_table.
5304 Declare Lisp variables "font-weight-table", "font-slant-table",
5305 "font-width-table", and "font-log". Initialize font_style_table.
5306
53072008-05-21 Dan Nicolaescu <dann@ics.uci.edu>
5308
5309 * xterm.c (x_set_frame_alpha): Move declarations before statements.
5310
53112008-05-21 Seiji Zenitani <zenitani@mac.com>
5312 Ryo Yoshitake <ryo@shiftmode.net>
5313
5314 * frame.c (Qalpha): Add a new frame parameter `alpha'.
5315 (Vframe_alpha_lower_limit): New variable.
5316 (x_set_alpha): New function.
5317
5318 * frame.h (Qalpha, Vframe_parameter_lower_limit): Export them.
5319
5320 * xfns.c (x-create-frame, Qalpha):
5321 Initialize the frame parameter `alpha'.
5322 * xterm.c (OPAQUE, OPACITY): New.
5323 (x_set_frame_alpha): New function.
5324 (frame_highlight, frame_unhighlight): Call x_set_frame_alpha.
5325
5326 * macfns.c (mac_frame_parm_handlers): A null handler for x_set_alpha.
5327 * w32fns.c (w32_frame_parm_handlers): Likewise.
5328
53292008-05-20 Jason Rumney <jasonr@gnu.org>
5330
5331 * w32font.c (add_font_entity_to_list): Don't add non-opentype
5332 truetype fonts to opentype list.
5333
53342008-05-20 Juanma Barranquero <lekktu@gmail.com>
5335
5336 * fontset.c (Ffontset_info): Doc fix.
5337 (syms_of_fontset) <font-encoding-charset-alist, use-default-ascent>:
5338 <ignore-relative-composition>: Fix typos in docstrings.
5339
5340 * font.c (syms-of-font) <font-encoding-alist>:
5341 (Ffontp, Ffont_make_gstring): Fix typos in docstrings.
5342 (Flist_fonts, Ffont_family_list, Ffont_fill_gstring, Fquery_font)
5343 (Ffont_otf_alternates): Doc fixes.
5344
53452008-05-20 Kenichi Handa <handa@m17n.org>
5346
5347 * Makefile.in (FONTSRC): Delete it. Change all $(FONTSRC) to
5348 font.h through out the file.
5349 (FONT_DRIVERS): Rename from FONTOBJ.
5350 (obj): Change $(FONTOBJ) to $(FONT_DRIVERS). Add font.o.
5351 (SOME_MACHINE_OBJECTS): Change $(FONTOBJ) to $(FONT_DRIVERS).
5352
5353 * emacs.c (main): Call syms_of_font unconditionally.
5354
5355 * font.h (find_font_encoding): Extern it.
5356
5357 * font.c (Vfont_encoding_alist, find_font_encoding): Move from
5358 fontset.c.
5359 (font_pixel_size)[! HAVE_WINDOW_SYSTEM]: Return 1.
5360 (font_open_entity): Update FRAME_X_DISPLAY_INFO (f)->n_fonts,
5361 FRAME_SMALLEST_CHAR_WIDTH (f), and FRAME_SMALLEST_FONT_HEIGHT (f)
5362 only when HAVE_WINDOW_SYSTEM is defined.
5363 (font_close_object): Update FRAME_X_DISPLAY_INFO (f)->n_fonts only
5364 when HAVE_WINDOW_SYSTEM is defined.
5365
5366 * fontset.c (Vfont_encoding_alist, find_font_encoding): Move to font.c.
5367 (syms_of_fontset): Move declaration of font-encoding-alist to font.c.
5368
5369 * xfaces.c: Include font.h unconditionally.
5370 (merge_face_ref, merge_face_vectors)
5371 (Finternal_set_lisp_face_attribute): Cancel the previous change.
5372
53732008-05-20 Stefan Monnier <monnier@iro.umontreal.ca>
5374
5375 * xdisp.c (select_frame_for_redisplay): Adjust for last change to
5376 indirect_variable.
5377 * eval.c (lisp_indirect_variable): New fun.
5378 (Fuser_variable_p): Use it.
5379
53802008-05-19 Stefan Monnier <monnier@iro.umontreal.ca>
5381
5382 * lisp.h (indirect_variable):
5383 * data.c (indirect_variable, let_shadows_buffer_binding_p):
5384 Use Lisp_Symbol pointers rather than Lisp_Object.
5385 Adjust callers.
5386 * buffer.c (buffer_slot_type_mismatch): Use wrong-type-argument.
5387 To this end, change calling-convention.
5388
5389 * minibuf.c (Finternal_complete_buffer): Only strip out hidden buffers
5390 if some non-hidden buffers are selected by string&pred.
5391
53922008-05-19 Chong Yidong <cyd@stupidchicken.com>
5393
5394 * process.c (wait_reading_process_output): Always check status
5395 when in batch mode.
5396
53972008-05-19 Kenichi Handa <handa@m17n.org>
5398
5399 * font.c (font_list_entities): Fix handling of cache.
5400 (font_matching_entity): Likewise.
5401
5402 * ftfont.c (cs_iso8859_1): Delete.
5403 (ft_face_cache): New variable.
5404 (struct ftfont_info): New member fc_charset_idx.
5405 (ftfont_build_basic_charsets): Delete.
5406 (fc_charset_table): New variable.
5407 (ftfont_pattern_entity): New arg fc_charset_idx. Store (FILENAME
5408 . FC_CHARSET_IDX) as :font-entity property in the font entity.
5409 Callers changed.
5410 (ftfont_lookup_cache, ftfont_get_charset): New functions.
5411 (ftfont_spec_pattern): New argument fc_charset_idx.
5412 Check registry more rigidly. Change callers.
5413 (ftfont_open, ftfont_close, ftfont_has_char): Adjust for the
5414 change of :font-entity property of the font.
5415
5416 * xftfont.c (xftfont_open): Adjust for the change of :font-entity
5417 property of the font.
5418
54192008-05-18 Juanma Barranquero <lekktu@gmail.com>
5420
5421 * coding.c (Fcoding_system_p): Rename argument to match docstring.
5422 (Funencodable_char_position, Fcheck_coding_systems_region)
5423 (Fdecode_coding_string, Fencode_coding_string): Fix typos in docstrings.
5424 (Fdetect_coding_region, Fdetect_coding_string, Fencode_coding_region)
5425 (Ffind_operation_coding_system, Fset_coding_system_priority)
5426 (Fcoding_system_eol_type): Doc fixes.
5427
54282008-05-17 Glenn Morris <rgm@gnu.org>
5429
5430 * sysdep.c (child_setup_tty): Handle systems with NLDLY, without FFDLY.
5431
54322008-05-16 Eli Zaretskii <eliz@gnu.org>
5433
5434 * dired.c (Ffile_attributes): Shut up GCC warnings about st_uid
5435 and st_gid.
5436
5437 * frame.c (Fdelete_frame): Don't call font_update_drivers if
5438 HAVE_WINDOW_SYSTEM is not defined.
5439
5440 * xfaces.c (merge_face_ref, merge_face_vectors)
5441 (Finternal_set_lisp_face_attribute): Use FONT_*_INDEX only when
5442 HAVE_WINDOW_SYSTEM is defined.
5443 (Fface_font): Fix non-HAVE_WINDOW_SYSTEM case.
5444
54452008-05-16 Stefan Monnier <monnier@iro.umontreal.ca>
5446
5447 * keyboard.c (parse_menu_item): Do not cache key shortcut any more.
5448
54492008-05-15 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
5450
5451 * macterm.c (x_draw_relief_rect): Remove unused variable `dpy'.
5452
54532008-05-15 Kenichi Handa <handa@m17n.org>
5454
5455 * font.c (font_find_for_lface): Reflect LFACE_FONT in the font
5456 preference.
5457
54582008-05-15 Glenn Morris <rgm@gnu.org>
5459
5460 * emacs.c (USAGE1, standard_args): Remove -disable-font-backend.
5461
54622008-05-15 Chong Yidong <cyd@stupidchicken.com>
5463
5464 * fns.c (init_fns): Don't initialize weak_hash_tables here.
5465 (init_weak_hash_tables): New fun. Initialize weak_hash_tables.
5466
5467 * alloc.c (init_alloc_once): Call init_weak_hash_tables.
5468
54692008-05-15 Kenichi Handa <handa@m17n.org>
5470
5471 * ftfont.c (ftfont_list): Downcase family name to check generic
5472 families.
5473
5474 * xfaces.c (Finternal_set_lisp_face_attribute): Be sure to make a
5475 font-spec for QCfont value.
5476
5477 * fontset.c (Fnew_fontset): Call font_unparse_xlfd with 256-byte
5478 buffer. Check the return value of it.
5479
54802008-05-14 Jason Rumney <jasonr@gnu.org>
5481
5482 * w32term.c (w32_get_glyph_overhangs): Remove.
5483 (w32_redisplay_interface): Use x_get_glyph_overhangs instead.
5484
54852008-05-14 Kenichi Handa <handa@m17n.org>
5486
5487 * font.c (font_prop_validate): Make nil a valid value.
5488 (font_clear_cache): Check if the cached vector of entities is nil
5489 or not.
5490
54912008-05-14 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
5492
5493 * emacs.c (main_thread): Conditionalize on
5494 FORWARD_SIGNAL_TO_MAIN_THREAD instead of HAVE_GTK_AND_PTHREAD.
5495 (main) [FORWARD_SIGNAL_TO_MAIN_THREAD]: Initialize it.
5496
5497 * syssignal.h (FORWARD_SIGNAL_TO_MAIN_THREAD): New define.
5498 (main_thread, SIGNAL_THREAD_CHECK): Conditionalize on
5499 FORWARD_SIGNAL_TO_MAIN_THREAD instead of HAVE_GTK_AND_PTHREAD.
5500
55012008-05-14 Kenichi Handa <handa@m17n.org>
5502
5503 * coding.c (detect_coding_iso_2022): Ignore a coding category that
5504 has no corresponding coding system.
5505
55062008-05-14 Jason Rumney <jasonr@gnu.org>
5507
5508 * font.h (struct font) [WINDOWSNT]: Remove codepage member.
5509
5510 * w32font.h (w32font_open_internal): Update declaration.
5511
5512 * w32font.c (w32font_open_internal): Change last argument from
5513 w32font_info struct to font object. Fill in font object from
5514 font_entity. Get Outline metrics if possible. Use them to
5515 calculate underline position and thickness. Use xlfd name as name
5516 property. Don't set codepage.
5517 (w32font_open): Pass font_object to w32font_open_internal. Don't
5518 update dpyinfo->smallest_font_height and dpyinfo->smallest_char_width.
5519 (w32font_draw): Use s->font.
5520 (clear_cached_metrics): Don't clear non-existent blocks.
5521
5522 * w32term.c (w32_compute_glyph_string_overhangs): Don't compute if
5523 font was not found.
5524 (x_draw_glyph_string): Use underline position and thickness from font.
5525
5526 * w32uniscribe.c (uniscribe_open): Pass font_object to
5527 w32font_open_internal.
5528
55292008-05-14 Kenichi Handa <handa@m17n.org>
5530
5531 These changes are to delete all legacy font-handling codes, and
5532 make Emacs use only font-backends.
5533
5534 * Makefile.in: Delete USE_FONT_BACKEND conditionals.
5535 (frame.o, image.o, print.o): Depend on $(FONTSRC).
5536
5537 * makefile.w32-in (WIN32OBJ): Add w32reg.$(O), remove w32bdf.$(O).
5538
5539 * charset.h (Vcharset_non_preferred_head)
5540 (Vcurrent_iso639_language): Extern them.
5541
5542 * charset.c (Vcharset_non_preferred_head): New variable.
5543 (Vcurrent_iso639_language): New variable.
5544 (syms_of_charset): Declare it as a Lisp variable.
5545 (char_charset): Don't check non preferred charsets. As a last
5546 resort, return charset_unicode.
5547 (Fset_charset_priority): Update Vcharset_non_preferred_head.
5548
5549 * composite.c: Throughout the file, delete all USE_FONT_BACKEND
5550 conditionals. Don't check enable_font_backend. Delete all codes
5551 used only when USE_FONT_BACKEND is not defined.
5552
5553 * dispextern.h (struct glyph_string): Change type of `font' to
5554 `struct font *'.
5555 (struct glyph_string): New member underline_position and
5556 underline_thickness.
5557 (enum lface_attribute_index): Remove LFACE_AVGWIDTH_INDEX.
5558 (struct face): Change type of `font' to `struct font *'. Remove
5559 members `font_name', `font_info_id'.
5560 (per_char_metric, encode_char): Delete externs.
5561 (calc_pixel_width_or_height): Adjust the prototype.
5562
5563 * emacs.c (enable_font_backend): Delete extern.
5564 (main): Don't set enable_font_backend. Don't check the command
5565 line argument "-disable-font-backend".
5566
5567 * font.h (Qfont_spec, Qfont_entity, Qfont_object): Extern them.
5568 (enum font_property_index): New members FONT_DPI_INDEX,
5569 FONT_SPACING_INDEX, FONT_AVGWIDTH_INDEX, FONT_NAME_INDEX,
5570 FONT_FULLNAME_INDEX, FONT_FILE_INDEX, FONT_FORMAT_INDEX,
5571 FONT_OBJECT_MAX. Delete FONT_FRAME_INDEX.
5572 (FONT_WEIGHT_NUMERIC, FONT_SLANT_NUMERIC, FONT_WIDTH_NUMERIC)
5573 (FONT_WEIGHT_SYMBOLIC, FONT_SLANT_SYMBOLIC, FONT_WIDTH_SYMBOLIC)
5574 (FONT_WEIGHT_FOR_FACE, FONT_SLANT_FOR_FACE, FONT_WIDTH_FOR_FACE)
5575 (FONT_WEIGHT_NAME_NUMERIC, FONT_SLANT_NAME_NUMERIC)
5576 (FONT_WIDTH_NAME_NUMERIC, FONT_SET_STYLE): New macros.
5577 (struct font_spec, struct font_entity): New structs.
5578 (FONT_ENCODING_NOT_DECIDED): Moved from fontset.h.
5579 (struct font): Many members from old "struct font_info" moved to
5580 here. Members font and entity deleted.
5581 (FONT_SPEC_P, FONT_ENTITY_P, FONT_OBJECT_P, FONTP): Modified for
5582 the new font-related objects.
5583 (CHECK_FONT_SPEC, CHECK_FONT_ENTITY, CHECK_FONT_OBJECT)
5584 (CHECK_FONT_GET_OBJECT): Likewise.
5585 (XFONT_SPEC, XFONT_ENTITY, XFONT_OBJECT, XSETFONT): New macros.
5586 (PT_PER_INCH, POINT_TO_PIXEL, PIXEL_TO_POINT): Moved from font.h.
5587 (struct font_driver): New members case_sensitive anc check. Type
5588 of the member list and open changed.
5589 (enable_font_backend, font_symbolic_weight, font_symbolic_slant)
5590 (font_symbolic_width, font_find_object, font_get_spec)
5591 (font_set_lface_from_name): Delete extern.
5592 (Fcopy_font_spec, Fmerge_font_spec, Ffont_family_list): New EXFUNs.
5593
5594 * font.c: Include <strings.h>.
5595 (enable_font_backend): Delete it.
5596 (Qfont_spec, Qfont_entity, Qfont_object): New variables.
5597 (CHECK_VALIDATE_FONT_SPEC): Delete it.
5598 (PT_PER_INCH, POINT_TO_PIXEL, PIXEL_TO_POINT): Moved to font.h.
5599 (null_string): Delete it.
5600 (null_vector): Make it static.
5601 (font_family_alist): Delete it.
5602 (Qnormal): Extern it.
5603 (QCextra, QClanguage): Delete it.
5604 (QClang, QCavgwidth, QCfont_entity, QCfc_unknown_spec): New variables.
5605 (font_make_spec, font_make_entity, font_make_object)
5606 (font_intern_prop): Renamed from intern_downcase. Don't downcase
5607 the string. Callers changed.
5608 (font_pixel_size): Adjusted for the format change of font-related
5609 objects.
5610 (prop_name_to_numeric, prop_numeric_to_name): Delete them.
5611 (font_style_to_value, font_style_symbolic): New function.
5612 (build_font_family_alist): Delete it.
5613 (font_registry_charsets): Use Fassoc_string instead of
5614 assq_no_quit.
5615 (font_prop_validate_symbol): Don't return null_string.
5616 (font_prop_validate_style): Adjusted for the change of
5617 style-related values in a font vector.
5618 (font_property_table): Delete entries for QClanguage and
5619 QCantialias, add entries for QCavgwidth.
5620 (get_font_prop_index): Delete the 2nd argument FROM.
5621 (font_prop_validate): Arguments changed.
5622 (font_put_extra): Adjusted for the change of font-related objects.
5623 (font_expand_wildcards, font_parse_xlfd, font_unparse_xlfd)
5624 (font_parse_fcname, font_unparse_fcname)
5625 (font_prepare_composition): Likewise.
5626 (font_parse_family_registry): Renamed from font_merge_old_spec.
5627 (otf_open): Delete the 1st arg entity.
5628 (font_otf_capability): Adjusted for the above change.
5629 (font_score): New arg alternate_families. Adjusted for the change
5630 of font-related objects.
5631 (font_sort_entites): New arg best_only.
5632 (font_symbolic_weight, font_symbolic_slant, font_symbolic_width):
5633 Delete them.
5634 (font_match_p): Check alternate families.
5635 (font_find_object): Delete it.
5636 (font_check_object): New function.
5637 (font_clear_cache): Adjusted for the change of font-related objects.
5638 (font_delete_unmatched): New arg.
5639 (font_list_entities): Call font_driver->list with a spec that
5640 doesn't specify style-related properties.
5641 (font_matching_entity): Arguments changed. Caller changed.
5642 (font_open_entity): Adjusted for the change of font-related objects.
5643 (font_close_object, font_has_char, font_encode_char)
5644 (font_get_name, font_get_spec): Likewise.
5645 (font_spec_from_name, font_clear_prop, font_update_lface):
5646 New functions.
5647 (font_find_for_lface, font_open_for_lface, font_load_for_lface)
5648 (font_prepare_for_face, font_done_for_face, font_open_by_name)
5649 (font_at): Adjusted for the change of font-related objects.
5650 (font_range): New function.
5651 (Ffontp, Ffont_spec, Ffont_get, Ffont_put, Flist_fonts)
5652 (Ffont_xlfd_name): Adjusted for the change of font-related objects.
5653 (Fcopy_font_spec, Fmerge_font_spec): New function.
5654 (Ffont_family_list): Renamed from list-families.
5655 (Finternal_set_font_style_table): Arguments changed.
5656 (Ffont_fill_gstring, Ffont_shape_text, Fopen_font)
5657 (Ffont_drive_otf, Fquery_font, Ffont_match_p): Adjusted for the
5658 change of font-related objects.
5659 (syms_of_font): Delete "ifdef USE_FONT_BACKEND". DEFSYM new symbols.
5660
5661 * fontset.h (struct font_info): Delete it. Most members go to
5662 struct font.
5663 (FONT_ENCODING_NOT_DECIDED): Moved to font.h.
5664 (enum FONT_SPEC_INDEX): Delete it.
5665 (font_info, list_fonts_func, load_font_func, query_font_func)
5666 (set_frame_fontset_func, find_ccl_program_func)
5667 (get_font_repertory_func, new_fontset_from_font_name): Delete
5668 externs.
5669 (fontset_from_font_name): Extern it.
5670 (FS_LOAD_FONT, FONT_INFO_ID, FONT_INFO_FROM_ID)
5671 (FONT_INFO_FROM_FACE): Deleted.
5672 (face_for_font): Adjust prototype.
5673
5674 * fontset.c: Throughout the file, delete all USE_FONT_BACKEND
5675 conditionals. Don't check enable_font_backend. Delete all codes
5676 used only when USE_FONT_BACKEND is not defined.
5677 (get_font_info_func, list_font_func, load_font_func)
5678 (query_font_func, set_frame_fontset_func, find_ccl_program_func)
5679 (get_font_repertory_func): Delete them.
5680 (FONTSET_SPEC, FONT_DEF_NEW, FONT_DEF_SPEC, FONT_DEF_ENCODING)
5681 (FONT_DEF_REPERTORY, RFONT_DEF_FACE, RFONT_DEF_SET_FACE)
5682 (RFONT_DEF_FONT_DEF, RFONT_DEF_SPEC, RFONT_DEF_REPERTORY)
5683 (RFONT_DEF_OBJECT, RFONT_DEF_SET_OBJECT, RFONT_DEF_SCORE)
5684 (RFONT_DEF_SET_SCORE, RFONT_DEF_NEW): New macros.
5685 (fontset_compare_rfontdef): New function.
5686 (reorder_font_vector): Remove the argument CHARSET-ID. Sort
5687 rfont-defs by qsort. Adjusted for the change of font-group vector.
5688 (load_font_get_repertory): Deleted.
5689 (fontset_find_font): Use new macros to ref/set elements of
5690 font-def and rfont-def.
5691 (fontset_font): Fix the timing of remembering that no font for C.
5692 (free_face_fontset): Do nothing if the face has no fontset.
5693 (face_suitable_for_char_p): Use new macros to ref/set elements of
5694 rfont-def.
5695 (face_for_char): Likewise. Call face_for_char with font_object.
5696 (fs_load_font): Delete. Delete #pragma surrounding it.
5697 (fs_query_fontset): Use strcasecmp instead of strcmp.
5698 (generate_ascii_font_name): Adjusted for the format change of
5699 font-spec.
5700 (Fset_fontset_font): Likewise. Use new macros to set elements of
5701 font-def.
5702 (Fnew_fontset): Use font_unparse_xlfd to generate
5703 FONTSET_ASCII (fontset).
5704 (new_fontset_from_font_name): Deleted.
5705 (fontset_from_font): Renamed from new_fontset_from_font. Check if
5706 a fontset is already created for the font. FIx updating of
5707 Vfontset_alias_alist.
5708 (fontset_ascii_font): Deleted.
5709 (Ffont_info): Adjusted for the format change of font-spec.
5710 (Finternal_char_font): Likewise.
5711 (Ffontset_info): Likewise.
5712 (syms_of_fontset): Don't check load_font_func.
5713
5714 * fns.c (internal_equal): Handle PREV_FONT.
5715
5716 * frame.h: Delete USE_FONT_BACKEND conditional.
5717
5718 * frame.c: Throughout the file, delete all USE_FONT_BACKEND
5719 conditionals. Don't check enable_font_backend. Delete all codes
5720 used only when USE_FONT_BACKEND is not defined.
5721 (x_set_font): Call x_new_font, not x_new_fontset2.
5722 (x_set_font_backend): Use FRAME_FONT macro to check if a font is
5723 already set for the frame.
5724
5725 * ftfont.c (ftfont_pattern_entity): Argument FRAME removed. Make
5726 a font-entity by font_make_entity. Use font_intern_prop instead
5727 of intern_downcase. Use FONT_SET_STYLE to set a style-related
5728 font property. If a font is scalable, set avgwidth property to 0.
5729 Set font-entity property by font_put_extra.
5730 (ftfont_list_generic_family): Argument SPEC and REGISTRY removed.
5731 (ffont_driver): Adjusted for the change of struct font_driver.
5732 (ftfont_spec_pattern): New function.
5733 (ftfont_list): Return a list, not vector.
5734 (ftfont_match): Use ftfont_spec_pattern to get a pattern.
5735 (ftfont_list_family): Don't downcase names.
5736 (ftfont_free_entity): Deleted.
5737 (ftfont_open): Return a font-object. Adjusted for the change of
5738 struct font. Get underline_thickness and underline_position from
5739 font property. Don't update dpyinfo->smallest_font_height and
5740 dpyinfo->smallest_char_width.
5741 (ftfont_close): Don't free `struct font'.
5742 (ftfont_has_char): Adjusted for the format change of font-entity.
5743 (ftfont_encode_char, ftfont_text_extents): Likewise.
5744
5745 * ftxfont.c (ftxfont_list): Return a list, not vector.
5746 (ftxfont_open): Return a font-object. Adjusted for the change of
5747 struct font. Get underline_thickness and underline_position from
5748 font property. Don't update dpyinfo->smallest_font_height and
5749 dpyinfo->smallest_char_width.
5750 (ftxfont_close): Don't decrease FRAME_X_DISPLAY_INFO (f)->n_fonts.
5751 (ftxfont_draw): Adjusted for the change of struct font.
5752
5753 * image.c (image_ascent): Don't include "charset.h". Include
5754 "character.h" and "font.h".
5755
5756 * lisp.h (enum pvec_type): New member PREV_FONT.
5757 (Fassoc_string): EXFUN it.
5758
5759 * print.c: Include font.h.
5760 (print_object): Handle font-related objects.
5761
5762 * xdisp.c: Throughout the file, delete all USE_FONT_BACKEND
5763 conditionals. Don't check enable_font_backend. Delete all codes
5764 used only when USE_FONT_BACKEND is not defined.
5765 (handle_auto_composed_prop): Do nothing if it->f is not on a
5766 window system. Check how many following characters can be
5767 displayed by the same font.
5768 (calc_pixel_width_or_height): Type of the 4th arg is changed to
5769 'struct font *'.
5770 (get_char_face_and_encoding): Assign the whole encoding task to
5771 the `encode-char' method of a font driver.
5772 (fill_composite_glyph_string): Adjusted for the change of `struct
5773 face' and `struct glyph_string'.
5774 (fill_glyph_string): Likewise.
5775 (get_per_char_metric): Arguments changed.
5776 (x_get_glyph_overhangs): Adjusted for the change of `struct face'
5777 and `struct glyph_string'.
5778 (produce_stretch_glyph, calc_line_height_property)
5779 (x_produce_glyphs): Likewise.
5780
5781 * xfaces.c: Throughout the file, delete all USE_FONT_BACKEND
5782 conditionals. Don't check enable_font_backend. Delete all codes
5783 used only when USE_FONT_BACKEND is not defined. Use
5784 FONT_XXX_NAME_NUMERIC instead of face_numeric_xxx.
5785 (QCfoundry, QCadstyle, QCregistry, QCspacing, QCsize, QCavgwidth)
5786 (Qp): Extern them.
5787 (clear_font_table, load_face_font, xlfd_lookup_field_contents):
5788 Deleted.
5789 (struct font_name): Deleted.
5790 (xlfd_numeric_value, xlfd_symbolic_value): Deleted.
5791 (compare_fonts_by_sort_order): New function.
5792 (xlfd_numeric_slant, xlfd_symbolic_slant, xlfd_numeric_weight)
5793 (xlfd_symbolic_weight, xlfd_numeric_swidth, xlfd_symbolic_swidth):
5794 Deleted.
5795 (Fx_family_fonts): Use font_list_entities, and sort fonts by
5796 compare_fonts_by_sort_order.
5797 (Fx_font_family_list): Call Ffont_family_list.
5798 (face_numeric_value, face_numeric_weight, face_numeric_slant)
5799 (face_numeric_swidth, face_symbolic_value, face_symbolic_weight)
5800 (face_symbolic_slant, face_symbolic_swidth)
5801 (split_font_name_into_vector, build_font_name_from_vector)
5802 (xlfd_fixed_p, xlfd_point_size, pixel_point_size)
5803 (font_rescale_ratio, split_font_name, build_font_name)
5804 (free_font_names, sort_fonts, x_face_list_fonts)
5805 (face_font_available_p, sorted_font_list, cmp_font_names)
5806 (font_list_1, concat_font_list, font_list, remove_duplicates):
5807 Deleted.
5808 (Fx_list_fonts): Use Ffont_list.
5809 (LFACE_AVGWIDTH): Deleted.
5810 (check_lface_attrs): Don't check LFACE_AVGWIDTH. Check LFACE_FONT
5811 by FONTP.
5812 (lface_fully_specified_p): Don't check LFACE_AVGWIDTH.
5813 (set_lface_from_font_name): Delete it.
5814 (set_lface_from_font): Renamed from
5815 set_lface_from_font_and_fontset. Caller changed. Don't set
5816 LFACE_AVGWIDTH. Use FONT_XXX_FOR_FACE to get a symbol suitable
5817 for face.
5818 (merge_face_vectors): Copy font-spec if necessary.
5819 Clear properties of the font-spec if necessary.
5820 (merge_face_ref): Clear properties of the font-spec if necessary.
5821 (Finternal_set_lisp_face_attribute): Likewise.
5822 (set_font_frame_param): Use font_load_for_lface to load a
5823 font-object, and call Fmodify_frame_parameters with it.
5824 (x_update_menu_appearance): Don't check LFACE_AVGWIDTH. Get XLFD
5825 font name by Ffont_xlfd_name.
5826 (Finternal_lisp_face_attribute_values): Don't check QCweight,
5827 QCslant, and QCwidth.
5828 (Fface_font): Get a font name from font->props[FONT_NAME_INDEX].
5829 (lface_same_font_attributes_p): Don't check LFACE_AVGWIDTH.
5830 Compare fonts by EQ.
5831 (lookup_non_ascii_face): Deleted.
5832 (face_for_font): The 2nd argument changed.
5833 (x_supports_face_attributes_p): Don't check LFACE_AVGWIDTH.
5834 Check atomic font properties by case insensitive.
5835 (realize_non_ascii_face): Set face->overstrike correctly.
5836 (realize_x_face): Likewise. Check if LFACE_FONT is a font_object.
5837 (dump_realized_face): Get font name from
5838 font->props[FONT_NAME_INDEX]. Don't print font_info_id.
5839
5840 * xfns.c: Throughout the file, delete all USE_FONT_BACKEND
5841 conditionals. Don't check enable_font_backend. Delete all codes
5842 used only when USE_FONT_BACKEND is not defined.
5843 (xic_create_xfontset): Original code deleted and renamed from
5844 xic_create_xfontset2. Use FRAME_FONT, not FRAME_FONT_OBJECT.
5845 (x_make_gc): Don't set GCFont in GCs.
5846 (Fx_create_frame) [USE_LUCID]: Set xlwmenu_default_font to a font
5847 opened by "fixed".
5848 (syms_of_xfns): Don't set get_font_info_func, load_font_func,
5849 find_ccl_program_func, query_font_func, set_frame_fontset_func,
5850 get_font_repertory_func.
5851
5852 * xfont.c: Include <stdlib.h> and "ccl.h".
5853 (struct xfont_info): New structure.
5854 (xfont_query_font): Deleted.
5855 (xfont_find_ccl_program): Renamed from x_find_ccl_program and
5856 moved from xterm.c.
5857 (xfont_driver): Adjusted for the change of struct font_driver.
5858 (compare_font_names): New function.
5859 (xfont_list_pattern): Sort font names case insensitively. Make
5860 font_entity by calling font_make_entity. Avoid auto-scaled fonts.
5861 (xfont_list): Return a list, not vector.
5862 (xfont_match): If the font doesn't have QCname property, generate
5863 a name from the other font properties.
5864 (xfont_open): Return a font-object. Adjusted for the change of
5865 struct font. Get underline_thickness and underline_position from
5866 font property. Don't update dpyinfo->smallest_font_height and
5867 dpyinfo->smallest_char_width.
5868 (xfont_close): Don't free struct font.
5869 (xfont_prepare_face): Adjusted for the change of struct font.
5870 (xfont_done_face): Deleted.
5871 (xfont_has_char): Adjusted for the change of struct font.
5872 (xfont_encode_char, xfont_draw): Likewise.
5873 (xfont_check): New function.
5874
5875 * xftfont.c (xftfont_list): Adjusted for the change of `list'
5876 callback function.
5877 (xftfont_match): Adjusted for the format change of font-entity.
5878 (xftfont_open): Adjusted for the format change of font-entity and
5879 font-object. Adjusted for the change of struct font. Return a
5880 font-object. Don't update dpyinfo->smallest_font_height and
5881 dpyinfo->smallest_char_width.
5882 (xftfont_close): Block input while calling XftFontClose.
5883 (xftfont_prepare_face): Don't block input while calling
5884 xftfont_get_colors. Adjusted for the change of struct font.
5885 (xftfont_shape): Return value of error case fixed.
5886
5887 * xrdb.c (x_load_resources): Don't setup a fontset resource.
5888
5889 * xterm.h: Throughout the file, delete all USE_FONT_BACKEND
5890 conditionals.
5891 (FONT_WIDTH): Return (f)->max_width.
5892 (struct x_display_info): Delete member `font'.
5893 (x_list_fonts, x_get_font_info, x_load_font, x_query_font)
5894 (x_find_ccl_program, x_get_font_repertory): Delete externs.
5895 (struct x_output): Change type of `font' to `struct font *'.
5896
5897 * xterm.c: Throughout the file, delete all USE_FONT_BACKEND
5898 conditionals. Don't check enable_font_backend. Delete all codes
5899 used only when USE_FONT_BACKEND is not defined. Don't include ccl.h.
5900 (x_per_char_metric, x_encode_char): Deleted.
5901 (x_set_cursor_gc, x_set_mouse_face_gc): Don't set GCFont.
5902 (x_compute_glyph_string_overhangs): Adjusted for the change of
5903 `struct face'.
5904 (x_draw_glyph_string_foreground)
5905 (x_draw_composite_glyph_string_foreground): Likewise.
5906 (x_draw_glyph_string): Likewise. Use font->underline_position and
5907 font->underline_thickness.
5908 (x_new_font): Renamed from x_new_fontset2.
5909 (x_new_fontset, x_get_font_info, x_list_fonts): Deleted.
5910 (x_check_font): Call `check' method of a font driver.
5911 (x_font_min_bounds, x_compute_min_glyph_bounds, x_load_font)
5912 (x_query_font, x_get_font_repertory): Deleted.
5913 (x_find_ccl_program): Renamed and moved to xfont.c.
5914 (x_redisplay_interface): Adjusted for the change of `struct
5915 redisplay_interface'.
5916
5917 * w32fns.c: Throughout the file, delete all USE_FONT_BACKEND
5918 conditionals. Don't check enable_font_backend. Delete all codes
5919 used only when USE_FONT_BACKEND is not defined. Surround non-used
5920 code by "#ifdef OLD_FONT" and "endif".
5921 (Fw32_select_font): Use FONT_COMPAT to get old font structure.
5922
5923 * w32font.h (struct w32font_info): New member.
5924 (FONT_COMPAT): New macro.
5925 (w32font_open_internal): Prototype adjusted.
5926
5927 * w32gui.h (XGCValues): Surround `XFontStruct *font' by "if
5928 OLD_FONT" and "endif".
5929
5930 * w32font.c: Throughout the file, delete all USE_FONT_BACKEND
5931 conditionals. Don't check enable_font_backend. Delete all codes
5932 used only when USE_FONT_BACKEND is not defined.
5933 (w32font_open): Return a font-object. Make a font-object by
5934 font_make_object. Adjusted for the change of struct w32font_info.
5935 (w32font_close): Don't free struct font. Adjusted for the change
5936 of struct w32font_info.
5937 (w32font_encode_char, w32font_text_extents, w32font_draw):
5938 Adjusted for the change of struct w32font_info.
5939 (w32font_draw): Likewise.
5940 (w32font_list_internal): Return a list, not vector.
5941 (w32font_open_internal): Change the 4th arg to font-object.
5942 Adjusted for the change of struct w32font_info and font-object format.
5943 (add_font_name_to_list): Don't downcase names.
5944 (w32_enumfont_pattern_entity): Make a font-entity by
5945 font_make_entity. Adjusted for the format change of font-entity.
5946 Use FONT_SET_STYLE to set a style-related font property. If a
5947 font is scalable, set avgwidth property to 0. Set font-entity
5948 property by font_put_extra.
5949 (font_matches_spec): Adjusted for the format change of font-entity.
5950 (w32_weight_table, w32_decode_weight): New variables.
5951 (w32_encode_weight): New function.
5952 (fill_in_logfont): Adjusted for the format change of font-spec.
5953 (w32font_full_name): Use FONT_WEIGHT_SYMBOLIC to get a symbol
5954 weight value.
5955 (w32font_driver): Adjusted for the change of struct font_driver.
5956
5957 * w32term.h: Throughout the file, delete all USE_FONT_BACKEND
5958 conditionals. Don't check enable_font_backend. Surround non-used
5959 code by "#ifdef OLD_FONT" and "endif".
5960 (FONT_WIDTH, FONT_HEIGHT, FONT_BASE, FONT_DESCENT)
5961 (FONT_AVG_WIDTH): Adjusted for the change of struct font.
5962
5963 * w32term.c: Throughout the file, delete all USE_FONT_BACKEND
5964 conditionals. Don't check enable_font_backend. Delete all codes
5965 used only when USE_FONT_BACKEND is not defined. Surround non-used
5966 code by "#ifdef OLD_FONT" and "endif".
5967
5968 * w32uniscribe.c: Delete USE_FONT_BACKEND conditional.
5969 (uniscribe_open): Return value changed to font-object.
5970 Adjusted for the format change of font-object.
5971 (uniscribe_otf_capability): Adjusted for the change of struct font.
5972 (add_opentype_font_name_to_list): Don't downcase names.
5973 (uniscribe_font_driver): Adjusted for the change of struct
5974 font_driver.
5975
59762008-05-13 Chong Yidong <cyd@stupidchicken.com>
5977
5978 * dispnew.c (update_frame_1): Check if tty output is still valid
5979 before flushing it.
5980
59812008-05-13 Jan Djärv <jan.h.d@swipnet.se>
5982
5983 * xterm.c (handle_one_xevent): Don't pass buttons higher than 3
5984 to Gtk+ menus.
5985
59862008-05-13 Stefan Monnier <monnier@iro.umontreal.ca>
5987
5988 * dired.c (file_name_completion): Tweak the code so as to always do it
5989 in a single pass. Tighten the scope of some variables.
5990
5991 * dired.c (Qdefault_directory): New var.
5992 (file_name_completion): Use it instead of Fexpand_file_name.
5993 (syms_of_dired): Initialize it.
5994
59952008-05-12 Stefan Monnier <monnier@iro.umontreal.ca>
5996
5997 * fileio.c (double_dollars): Remove dead code.
5998
59992008-05-10 Eli Zaretskii <eliz@gnu.org>
6000
6001 * dired.c (Ffile_attributes, Fdirectory_files_and_attributes):
6002 Mention w32-get-true-file-attributes in doc string.
6003
6004 * w32proc.c (syms_of_ntproc) <w32-get-true-file-attributes>: Doc fix.
6005
60062008-05-09 Glenn Morris <rgm@gnu.org>
6007
6008 * fileio.c (Fread_file_name): Remove reference to insdef, deleted
6009 2008-04-23.
6010
60112008-05-09 Eli Zaretskii <eliz@gnu.org>
6012
6013 Support for reporting owner and group of each file on MS-Windows:
6014 * dired.c (stat_uname, stat_gname): New functions, with special
6015 implementation for w32.
6016 (Ffile_attributes): Use them instead of getpwuid and getgrgid.
6017
6018 * w32.c: Rename the_passwd_* to dflt_passwd_*.
6019 (dflt_group_name): New static variable.
6020 (dflt_group): Rename from the_group.
6021 (init_user_info): Init dflt_group fields. Get user's group name
6022 from LookupAccountSid.
6023 (g_b_init_get_file_security, g_b_init_get_security_descriptor_owner)
6024 (g_b_init_get_security_descriptor_group, g_b_init_is_valid_sid):
6025 New initialization states.
6026 (globals_of_w32): Initialize them to zero. Initialize the default
6027 group name to "None".
6028 (GetFileSecurity_Name): New global var, the name of the function
6029 to call for GetFileSecurity.
6030 (GetFileSecurity_Proc, GetSecurityDescriptorOwner_Proc)
6031 (GetSecurityDescriptorGroup_Proc, IsValidSid_Proc): New typedefs.
6032 (get_file_security, get_security_descriptor_owner)
6033 (get_security_descriptor_group, is_valid_sid)
6034 (get_file_security_desc, get_rid, get_name_and_id)
6035 (get_file_owner_and_group): New functions.
6036 (stat): Use get_file_security_desc and get_file_owner_and_group to
6037 report the owner and primary group of each file. Don't ignore the
6038 high 32 bits of file's size, now that st_size is 64-bit wide.
6039 Fix test when to get true file attributes.
6040 (init_user_info): Use get_rid instead of equivalent inline code.
6041 (fstat): Don't ignore the high 32 bits of file's size.
6042
60432008-05-09 Chong Yidong <cyd@stupidchicken.com>
6044
6045 * image.c (png_load): Use correct bit-depth for setting background
6046 color.
6047
60482008-05-08 Eli Zaretskii <eliz@gnu.org>
6049
6050 * Makefile.in (lisp, shortlisp): Rename epa-file-hook.elc to
6051 epa-hook.elc.
6052
60532008-05-08 Juanma Barranquero <lekktu@gmail.com>
6054
6055 * font.c (Ffont_match_p): Don't use `iff' in docstring.
6056
60572008-05-07 Dan Nicolaescu <dann@ics.uci.edu>
6058
6059 * macfns.c (Fx_create_frame): Make a copy of frame parameters
6060 because the original parameters are in pure storage now.
6061 (mac_window): Remove unused params. Update callers.
6062
60632008-05-06 Stefan Monnier <monnier@iro.umontreal.ca>
6064
6065 * lread.c (substitute_object_recurse): Use lower-level primitives.
6066 Don't signal errors when traversing sub-char-tables.
6067 Don't loop over all the possible characters when traversing char-tables.
6068
6069 * print.c (print_preprocess): Add sub-char-tables to the print-table,
6070 just like we do in print.c.
6071
60722008-05-05 Stefan Monnier <monnier@iro.umontreal.ca>
6073
6074 * minibuf.c (Ftry_completion): Remove code left over from when we used
6075 scmp instead of Fcompare_strings.
6076
60772008-05-04 Juanma Barranquero <lekktu@gmail.com>
6078
6079 * w32fns.c (Fw32_battery_status): Fix computation of %t (h:min) format.
6080
60812008-05-04 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
6082
6083 * image.c [USE_MAC_IMAGE_IO] (image_load_image_io):
6084 Create bitmap context in native byte order.
6085
6086 * macterm.c (XDrawLine)
6087 (XCreatePixmapFromBitmapData) [USE_MAC_IMAGE_IO]: Create bitmap
6088 context in native byte order.
6089
60902008-05-04 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
6091
6092 * config.in: Regenerate.
6093
6094 * image.c (PIX_MASK_DRAW, PIX_MASK_RETAIN) [USE_MAC_IMAGE_IO]:
6095 New definitions for Image I/O support.
6096 (XGetImage, XPutPixel, XGetPixel, XDestroyImage)
6097 (mac_create_cg_image_from_image, x_create_x_image_and_pixmap)
6098 [USE_MAC_IMAGE_IO]: Add implementations for Image I/O support.
6099 (mac_data_provider_release_data, image_load_image_io)
6100 [USE_MAC_IMAGE_IO]: New functions.
6101 (CGImageCreateWithPNGDataProviderProcType) [MAC_OSX]: Remove typedef.
6102 (MyCGImageCreateWithPNGDataProvider) [MAC_OSX]: Remove variable.
6103 (init_image_func_pointer) [MAC_OSX]: Remove function.
6104 (image_load_quartz2d) [MAC_OSX]: Check availability of
6105 CGImageCreateWithPNGDataProvider at compile time.
6106 Use lowercase `false' for boolean constant.
6107 (png_load, jpeg_load, tiff_load, gif_load) [USE_MAC_IMAGE_IO]:
6108 Use image_load_image_io.
6109 (png_load) [!USE_MAC_IMAGE_IO && MAC_OSX]:
6110 Don't check MyCGImageCreateWithPNGDataProvider.
6111 (init_image) [MAC_OSX && TARGET_API_MAC_CARBON]:
6112 Don't call init_image_func_pointer.
6113
6114 * macgui.h (Pixmap) [USE_MAC_IMAGE_IO]: New definition for Image I/O.
6115
6116 * macterm.c (mac_cg_color_space_rgb) [USE_CG_DRAWING]:
6117 Make variable non-static.
6118 (XDrawLine, XCreatePixmap, XCreatePixmapFromBitmapData, XFreePixmap)
6119 [USE_MAC_IMAGE_IO]: Add implementations for Image I/O support.
6120
6121 * macterm.h (ARGB_TO_ULONG, ALPHA_FROM_ULONG): New macros.
6122 (RED_FROM_ULONG): Mask off higher bits.
6123 (mac_cg_color_space_rgb) [USE_MAC_IMAGE_IO]: New extern.
6124
6125 * s/darwin.h [HAVE_CARBON && HAVE_AVAILABILITYMACROS_H]:
6126 Include AvailabilityMacros.h.
6127 (USE_MAC_IMAGE_IO, LIBS_IMAGE) [HAVE_CARBON]: New defines.
6128 (LIBS_CARBON) [HAVE_CARBON]: Use LIBS_IMAGE.
6129
61302008-05-03 Stefan Monnier <monnier@iro.umontreal.ca>
6131
6132 * chartab.c (Fset_char_table_range): If range is t, really set all
6133 chars to that value.
6134
61352008-05-03 Eli Zaretskii <eliz@gnu.org>
6136
6137 * dired.c (Ffile_attributes): Don't allow the device number become
6138 negative.
6139
61402008-05-02 Daiki Ueno <ueno@unixuser.org>
6141
6142 * Makefile.in (lisp, shortlisp): Add epa-file-hook.elc.
6143
61442008-05-02 Juri Linkov <juri@jurta.org>
6145
6146 * minibuf.c (Fread_from_minibuffer, Fread_string, Fread_command)
6147 (Fread_variable, Fread_buffer, Fcompleting_read): Document the
6148 DEFAULT argument as a list of default values in docstrings.
6149
61502008-05-01 Chong Yidong <cyd@stupidchicken.com>
6151
6152 * puresize.h (BASE_PURESIZE): Increase to 1210000.
6153
61542008-05-01 Martin Rudalics <rudalics@gmx.at>
6155
6156 * dispnew.c (change_frame_size_1): Preserve small windows when
6157 shrinking frames by calling set_window_height|width with third
6158 arg 2.
6159
6160 * window.h (struct window): Replace field too_small_ok by field
6161 resize_proportionally.
6162
6163 * window.c (make_window): Initialize resize_proportionally.
6164 (enlarge_window): Temporarily set resize_proportionally to make
6165 sure that shrink_windows does scale the window proportionally.
6166 (shrink_windows): When window has resize_proportionally set try
6167 to shrink it proportionally by stealing from other windows.
6168 (struct saved_window, Fset_window_configuration)
6169 (compare_window_configurations): Handle resize_proportionally.
6170 (WINDOW_TOTAL_SIZE): New macro.
6171 (window_min_size, shrink_windows, size_window): Use it.
6172 (check_min_window_sizes): Remove. Invalid values of
6173 window-min-height|width are handled by window_min_size_2 now.
6174 (size_window, Fsplit_window, enlarge_window)
6175 (adjust_window_trailing_edge, grow_mini_window): Don't call
6176 check_min_window_sizes.
6177 (window_min_size_2, window_min_size_1, window_min_size):
6178 New argument safe_p for retrieving "safe" minimum sizes.
6179 (Fdisplay_buffer, Fsplit_window, enlarge_window)
6180 (adjust_window_trailing_edge, grow_mini_window):
6181 Adjust arguments of window_min_size... functions.
6182 (shrink_windows): Argument min_size removed. New argument
6183 safe_p allows shrinking windows to their safe minimum sizes.
6184 Calculate minimum size and decide whether a window shall be
6185 deleted for each window individually.
6186 (size_window): When nodelete_p equals 2, tell shrink_windows to
6187 delete windows only if their new minimum size is no more safe.
6188 (shrink_window_lowest_first): Call window_min_size_1 to make
6189 sure to preserve modeline of bottom-most window when resizing
6190 the minibuffer.
6191 (Fset_window_configuration, Fcurrent_window_configuration)
6192 (compare_window_configurations): Do not handle
6193 window-min-height|width any more.
6194 (syms_of_window): Clarify window-min-height|width doc-strings.
6195
61962008-04-30 Stefan Monnier <monnier@iro.umontreal.ca>
6197
6198 * dired.c (file_name_completion): Fix up the encoding/decoding issue
6199 some more. Copy some of the code from Ftry_completions.
6200 Remove special case code that dates back to initial revision when the
6201 slash was only added when necessary and that can't trigger nowadays.
6202
62032008-04-27 Kenichi Handa <handa@m17n.org>
6204
6205 * font.c (font_prop_validate): Signal `error' instead of `font'.
6206
62072008-04-29 Jason Rumney <jasonr@gnu.org>
6208
6209 * w32fns.c (Fw32_battery_status): New defun.
6210 (syms_of_w32fns): Defsubr it.
6211
62122008-04-28 Andreas Schwab <schwab@suse.de>
6213
6214 * dired.c (file_name_completion): Fix another mixing of encoded
6215 and decoded names.
6216
62172008-04-28 Juanma Barranquero <lekktu@gmail.com>
6218
6219 * w32fns.c (Fw32_define_rgb_color): Fix typo in docstring.
6220
62212008-04-27 Juanma Barranquero <lekktu@gmail.com>
6222
6223 * fringe.c (Fdefine_fringe_bitmap): Doc fix.
6224
62252008-04-27 Andreas Schwab <schwab@suse.de>
6226
6227 * dired.c (file_name_completion): Fix inappropriate mixing of
6228 encoded and decoded names.
6229
6230 * xterm.c (XTread_socket): Fix use of uninitialized variable.
6231
6232 * puresize.h (BASE_PURESIZE): Increase to 1200000.
6233
62342008-04-26 Eli Zaretskii <eliz@gnu.org>
6235
6236 * dired.c (Ffile_attributes) [WINDOWSNT]: Undo change from
6237 2008-03-31, it's not needed anymore with `struct stat' definition
6238 on nt/inc/sys/stat.h. Undo changes from 2007-01-12 and 2007-01-13
6239 for the same reasons.
6240
62412008-04-25 Dennis Gilmore <ausil@fedoraproject.org> (tiny change)
6242
6243 * m/sparc.h: Additional redefinitions for GNU/Linux.
6244
62452008-04-23 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
6246
6247 * macterm.c (Vmac_ts_active_input_buf) [USE_MAC_TSM]: New variable.
6248 (syms_of_macterm) [USE_MAC_TSM]: Defvar it.
6249 (Qmouse_drag_overlay) [MAC_OSX]: New variable.
6250 (syms_of_macterm) [MAC_OSX]: Intern and staticpro it.
6251 (mac_get_selected_range, mac_store_buffer_text_to_unicode_chars)
6252 (mac_ax_selected_text_range) [MAC_OSX]: New functions.
6253 (mac_ax_number_of_characters) [MAC_OS_X_VERSION_MAX_ALLOWED >= 1030]:
6254 Likewise.
6255
6256 * mactoolbox.c (Vmac_ts_active_input_buf) [USE_MAC_TSM]: Add extern.
6257 (fast_find_position, x_y_to_hpos_vpos, mac_ax_selected_text_range)
6258 (mac_ax_number_of_characters): Add externs.
6259 (mac_get_selected_range, mac_store_buffer_text_to_unicode_chars)
6260 [USE_MAC_TSM]: Likewise.
6261 (mac_handle_text_input_event) [MAC_OSX]:
6262 Handle kEventTextInputOffsetToPos for no active input area case.
6263 Handle kEventTextInputPosToOffset and kEventTextInputGetSelectedText.
6264 (mac_handle_document_access_event)
6265 [MAC_OS_X_VERSION_MAX_ALLOWED >= 1030]: New function.
6266 (install_application_handler) [MAC_OSX]: Register handlers for
6267 kEventTextInputPosToOffset and kEventTextInputGetSelectedText.
6268 (install_application_handler) [MAC_OS_X_VERSION_MAX_ALLOWED >= 1030]:
6269 Register mac_handle_document_access_event.
6270
6271 * xdisp.c (x_y_to_hpos_vpos, fast_find_position) [HAVE_CARBON]:
6272 Make functions non-static.
6273
62742008-04-23 Stefan Monnier <monnier@iro.umontreal.ca>
6275
6276 * fileio.c (Vread_file_name_function, Vread_file_name_predicate)
6277 (read_file_name_completion_ignore_case, insert_default_directory)
6278 (Qdefault_directory): Move to minibuffer.el.
6279 (Fread_file_name): Call the new `read-file-name' instead.
6280
62812008-04-23 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
6282
6283 * mac.c (create_apple_event) [TARGET_API_MAC_CARBON]:
6284 Make function non-static.
6285 (create_apple_event_from_event_ref) [TARGET_API_MAC_CARBON]:
6286 Remove function.
6287 (create_apple_event_from_drag_ref) [TARGET_API_MAC_CARBON]:
6288 Move to mactoolbox.c.
6289 (mac_event_parameters_to_lisp) [TARGET_API_MAC_CARBON]: New function.
6290
6291 * macgui.h (CGFloat) [!CGFLOAT_DEFINED]: New typedef.
6292 (mac_rect_make): New macro.
6293
6294 * macterm.c (mac_draw_image_string_atsui) [MAC_OSX]: Use CGFloat
6295 instead of float.
6296 (mac_draw_image_string_cg) [USE_CG_TEXT_DRAWING]: Likewise.
6297 (init_cg_color, mac_draw_line, mac_draw_cg_image, XSetForeground)
6298 (XSetBackground) [USE_CG_DRAWING]: Likewise.
6299 (mac_draw_image_string_atsui) [MAC_OSX]: Use mac_rect_make instead of
6300 CGRectMake.
6301 (mac_draw_image_string_cg) [USE_CG_TEXT_DRAWING]: Likewise.
6302 (mac_erase_rectangle, mac_draw_cg_image, mac_fill_rectangle)
6303 (mac_set_clip_rectangles) [USE_CG_DRAWING]: Likewise.
6304 (XCreatePixmap, XCreatePixmapFromBitmapData): Use Window
6305 instead of WindowRef in argument type.
6306 (XCreatePixmap) [!MAC_OS8]: Don't call SetPortWindowPort.
6307 (mac_invert_rectangle): Use CGContextSetBlendMode if available.
6308 (mac_set_clip_rectangles, mac_reset_clip_rectangles): Take argument F
6309 instead of DISPLAY. All uses changed.
6310 (mac_handle_size_change): Don't call SET_FRAME_GARBAGED.
6311 (x_calc_absolute_position): Simplify so as not to use
6312 FRAME_PIXEL_WIDTH/FRAME_PIXEL_HEIGHT.
6313
6314 * macterm.h (XCreatePixmap, XCreatePixmapFromBitmapData): Use Window
6315 instead of WindowRef in argument type.
6316 (create_apple_event_from_event_ref, create_apple_event_from_drag_ref)
6317 [TARGET_API_MAC_CARBON]: Remove externs.
6318 (create_apple_event, mac_event_parameters_to_lisp)
6319 [TARGET_API_MAC_CARBON]: Add externs.
6320
6321 * mactoolbox.c (Vmac_ts_script_language_on_focus)
6322 (saved_ts_script_language_on_focus) [USE_MAC_TSM]: Remove externs.
6323 (XTread_socket) [USE_MAC_TOOLBAR]: Select window if its structure part
6324 is clicked.
6325 (x_activate_menubar): Remove extern for saved_menu_event_location.
6326 (create_apple_event_from_drag_ref) [TARGET_API_MAC_CARBON]:
6327 Move from mac.c.
6328
63292008-04-23 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
6330
6331 * alloc.c [!SYSTEM_MALLOC && !SYNC_INPUT] (uninterrupt_malloc)
6332 [HAVE_GTK_AND_PTHREAD && !DOUG_LEA_MALLOC]: Don't use recursive mutex.
6333
63342008-04-23 Jason Rumney <jasonr@gnu.org>
6335
6336 * w32.c (stat): When Vw32_get_true_file_attributes is Qlocal, get
6337 attributes only for local files.
6338
6339 * w32proc.c (syms_of_ntproc): Change Vw32_get_true_file attributes
6340 default to Qlocal.
6341
63422008-04-22 Juri Linkov <juri@jurta.org>
6343
6344 * buffer.c (Fswitch_to_buffer): Change interactive spec to call
6345 read-buffer-to-switch instead of using the letter "B".
6346
63472008-04-21 Stefan Monnier <monnier@iro.umontreal.ca>
6348
6349 * fileio.c (Qdefault_directory): New variable.
6350 (Fread_file_name): Use it to pass `dir' to the completion functions.
6351
63522008-04-20 Chong Yidong <cyd@stupidchicken.com>
6353
6354 * xdisp.c (pos_visible_p): Check if iterator stops on a display string.
6355
63562008-04-19 Stefan Monnier <monnier@iro.umontreal.ca>
6357
6358 * keyboard.c (Vpre_help_message): Remove.
6359 (show_help_echo): Remove default C code.
6360
6361 * dired.c (directory_files_internal, file_name_completion):
6362 Only call ENCODE_FILE if the string is indeed decoded.
6363
63642008-04-18 Stefan Monnier <monnier@iro.umontreal.ca>
6365
6366 * Makefile.in (TOOLKIT_DEFINES): Remove.
6367 (LIBW): Use a bit less #if, remove left over OPEN_LOOK stuff.
6368
63692008-04-18 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
6370
6371 * Makefile.in (MAC_OBJ): Add mactoolbox.o.
6372 (mactoolbox.o): New target.
6373
6374 * mac.c [MAC_OSX] (select_and_poll_event, sys_select):
6375 Use mac_run_loop_run_once instead of CFRunLoopRunInMode.
6376
6377 * macfns.c (x_set_background_color, mac_window, x_create_tip_frame):
6378 Use mac_set_frame_window_background instead of XSetWindowBackground.
6379 (x_set_tool_bar_lines) [USE_MAC_TOOLBAR]:
6380 Use mac_is_window_toolbar_visible instead of IsWindowToolbarVisible.
6381 (x_set_name_internal) [TARGET_API_MAC_CARBON]: Use mac_set_window_title
6382 instead of SetWindowTitleWithCFString.
6383 (mac_update_proxy_icon) [TARGET_API_MAC_CARBON]: Remove BLOCK_INPUT.
6384 Move function to mactoolbox.c.
6385 (mac_update_title_bar) [TARGET_API_MAC_CARBON]:
6386 Use mac_set_window_modified instead of SetWindowModified.
6387 Add BLOCK_INPUT around mac_set_window_modified/mac_update_proxy_icon.
6388 (mac_window, x_create_tip_frame): Use mac_create_frame_window.
6389 (Fx_focus_frame): Use mac_front_non_floating_window instead of
6390 FrontNonFloatingWindow. Use mac_activate_window instead of
6391 ActivateWindow. Use mac_active_non_floating_window instead of
6392 ActiveNonFloatingWindow.
6393 (show_hourglass, hide_hourglass) [TARGET_API_MAC_CARBON]:
6394 Use mac_show_hourglass and mac_hide_hourglass.
6395 (compute_tip_xy) [TARGET_API_MAC_CARBON]: Use mac_get_global_mouse
6396 instead of GetGlobalMouse.
6397 (Fx_show_tip): Use mac_move_window/mac_size_window/mac_show_window
6398 instead of MoveWindow/SizeWindow/ShowWindow, respectively.
6399 Use mac_bring_window_to_front instead of BringToFront.
6400 (Qfile_name_history) [TARGET_API_MAC_CARBON]: Move extern to
6401 mactoolbox.c.
6402 (Fx_file_dialog) [TARGET_API_MAC_CARBON]: Move function body to
6403 mac_file_dialog in mactoolbox.c. Use mac_file_dialog.
6404 (mac_nav_event_callback) [TARGET_API_MAC_CARBON]: Move function to
6405 mactoolbox.c.
6406
6407 * macgui.h [!HAVE_CARBON]: Include Quickdraw.h instead of QuickDraw.h.
6408 (XtPointer): Move typedef from macmenu.c.
6409 (enum button_type): Move enum from macmenu.c.
6410 (widget_value): Move typedef from macmenu.c.
6411 (M_APPLE, I_ABOUT, EXTRA_STACK_ALLOC, ARGV_STRING_LIST_ID)
6412 (DIALOG_LEFT_MARGIN, DIALOG_TOP_MARGIN, DIALOG_RIGHT_MARGIN)
6413 (DIALOG_BOTTOM_MARGIN, DIALOG_MIN_INNER_WIDTH, DIALOG_MAX_INNER_WIDTH)
6414 (DIALOG_BUTTON_BUTTON_HORIZONTAL_SPACE)
6415 (DIALOG_BUTTON_BUTTON_VERTICAL_SPACE, DIALOG_BUTTON_MIN_WIDTH)
6416 (DIALOG_TEXT_MIN_HEIGHT, DIALOG_TEXT_BUTTONS_VERTICAL_SPACE)
6417 (DIALOG_ICON_WIDTH, DIALOG_ICON_HEIGHT, DIALOG_ICON_LEFT_MARGIN)
6418 (DIALOG_ICON_TOP_MARGIN): Move defines from macmenu.c.
6419 (Selection): Move typedef from macselect.c.
6420 (RAM_TOO_LARGE_ALERT_ID, ABOUT_ALERT_ID) [MAC_OS8]: Move defines from
6421 macterm.c.
6422 (mac_set_window_title, mac_set_window_modified, mac_is_window_visible)
6423 (mac_is_window_collapsed, mac_bring_window_to_front)
6424 (mac_send_window_behind, mac_hide_window, mac_show_window)
6425 (mac_collapse_window, mac_front_non_floating_window)
6426 (mac_active_non_floating_window, mac_activate_window)
6427 (mac_move_window_structure, mac_move_window, mac_size_window)
6428 (mac_get_global_mouse, mac_is_window_toolbar_visible): New defines.
6429
6430 * macmenu.c [!TARGET_API_MAC_CARBON]: Move includes to mactoolbox.c.
6431 (enum mac_menu_kind): Move enum to mactoolbox.c.
6432 (min_menu_id): Move variable to mactoolbox.c.
6433 (quit_dialog_event_loop) [TARGET_API_MAC_CARBON]: Likewise.
6434 (DIALOG_WINDOW_RESOURCE): Move define to mactoolbox.c.
6435 (DIALOG_BUTTON_COMMAND_ID_OFFSET, DIALOG_BUTTON_COMMAND_ID_P)
6436 (DIALOG_BUTTON_COMMAND_ID_VALUE, DIALOG_BUTTON_MAKE_COMMAND_ID)
6437 [TARGET_API_MAC_CARBON]: Likewise.
6438 (XtPointer): Move typedef to macgui.h.
6439 (enum button_type): Move enum to macgui.h.
6440 (widget_value): Move typedef to macgui.h.
6441 (DIALOG_LEFT_MARGIN, DIALOG_TOP_MARGIN, DIALOG_RIGHT_MARGIN)
6442 (DIALOG_BOTTOM_MARGIN, DIALOG_MIN_INNER_WIDTH, DIALOG_MAX_INNER_WIDTH)
6443 (DIALOG_BUTTON_BUTTON_HORIZONTAL_SPACE)
6444 (DIALOG_BUTTON_BUTTON_VERTICAL_SPACE, DIALOG_BUTTON_MIN_WIDTH)
6445 (DIALOG_TEXT_MIN_HEIGHT, DIALOG_TEXT_BUTTONS_VERTICAL_SPACE)
6446 (DIALOG_ICON_WIDTH, DIALOG_ICON_HEIGHT, DIALOG_ICON_LEFT_MARGIN)
6447 (DIALOG_ICON_TOP_MARGIN): Move defines to macgui.h.
6448 (popup_activated_flag): Make variable non-static.
6449 (x_activate_menubar, install_menu_quit_handler, pop_down_menu)
6450 (add_menu_item, fill_menu, dispose_menus):
6451 Move functions to mactoolbox.c.
6452 (restore_show_help_function, menu_target_item_handler)
6453 (install_menu_target_item_handler, mac_handle_dialog_event)
6454 (install_dialog_event_handler, pop_down_dialog, create_and_show_dialog)
6455 [TARGET_API_MAC_CARBON]: Likewise.
6456 (menu_quit_handler) [MAC_OS_X_VERSION_MAX_ALLOWED >= 1030]: Likewise.
6457 (mac_dialog) [!TARGET_API_MAC_CARBON]: Likewise.
6458 (find_and_call_menu_selection, name_is_separator): Make function
6459 non-static.
6460 (Vshow_help_function, timer_check) [TARGET_API_MAC_CARBON]: Move extern
6461 to mactoolbox.c.
6462 (set_frame_menubar): Don't call install_menu_quit_handler.
6463 (menu_item_selection): New variable.
6464 (mac_menu_show): Use create_and_show_popup_menu.
6465 (create_and_show_dialog) [TARGET_API_MAC_CARBON]: Don't return
6466 selection but set variable menu_item_selection. All uses changed.
6467 (mac_fill_menubar): Rename from fill_menubar. All uses changed.
6468 Call install_menu_quit_handler. Move to mactoolbox.c.
6469
6470 * macselect.c [!TARGET_API_MAC_CARBON]: Don't include Scrap.h.
6471 (Selection): Move typedef to macgui.h.
6472 (Vselection_converter_alist, Qmac_scrap_name, Qmac_ostype)
6473 (Vmac_apple_event_map, Qmac_apple_event_class, Qmac_apple_event_id):
6474 Make variables non-static.
6475 (Vmac_dnd_known_types) [TARGET_API_MAC_CARBON]: Likewise.
6476 (mac_handle_apple_event, cleanup_all_suspended_apple_events):
6477 Make functions non-static.
6478 (Vmac_service_selection) [MAC_OSX]: Likewise.
6479 (mac_get_selection_from_symbol, get_flavor_type_from_symbol)
6480 (mac_valid_selection_target_p, mac_clear_selection)
6481 (mac_get_selection_ownership_info, mac_valid_selection_value_p)
6482 (mac_put_selection_value, mac_selection_has_target_p)
6483 (mac_get_selection_value, mac_get_selection_target_list)
6484 (init_apple_event_handler, install_drag_handler, remove_drag_handler):
6485 Move functions to mactoolbox.c.
6486 (mac_do_track_drag, mac_do_receive_drag) [TARGET_API_MAC_CARBON]:
6487 Likewise.
6488 (copy_scrap_flavor_data, mac_handle_service_event)
6489 (install_service_handler) [MAC_OSX]: Likewise.
6490 (syms_of_macselect) <Vmac_dnd_known_types>:
6491 Use mac_dnd_default_known_types.
6492
6493 * macterm.h (FRAME_OUTER_TO_INNER_DIFF_X, FRAME_OUTER_TO_INNER_DIFF_Y):
6494 Move to mactoolbox.c.
6495 (HOURGLASS_WIDTH, HOURGLASS_HEIGHT): Change to 15.
6496 (Fx_selection_owner_p): Add EXFUN.
6497 (install_window_handler, remove_window_handler, XSetWindowBackground):
6498 Remove externs.
6499 (do_apple_menu) [!TARGET_API_MAC_CARBON]: Likewise.
6500 (mac_prepare_for_quickdraw) [USE_CG_DRAWING]: Likewise.
6501 (x_raise_frame, x_lower_frame, mac_alert_sound_play)
6502 (install_application_handler, mac_get_frame_bounds, mac_get_frame_mouse)
6503 (mac_convert_frame_point_to_global, mac_set_frame_window_background)
6504 (mac_update_begin mac_update_end, mac_frame_up_to_date, x_flush)
6505 (mac_create_frame_window, mac_dispose_frame_window, mac_begin_clip)
6506 (mac_end_clip, mac_create_scroll_bar, mac_dispose_scroll_bar)
6507 (mac_set_scroll_bar_bounds, mac_redraw_scroll_bar, mac_fill_menubar)
6508 (create_and_show_popup_menu, mac_get_selection_from_symbol)
6509 (mac_valid_selection_target_p, mac_clear_selection)
6510 (mac_get_selection_ownership_info, mac_valid_selection_value_p)
6511 (mac_put_selection_value, mac_selection_has_target_p)
6512 (mac_get_selection_value, mac_get_selection_target_list): Add externs.
6513 (mac_update_proxy_icon, mac_show_hourglass, mac_hide_hourglass)
6514 (mac_reposition_hourglass, mac_file_dialog, create_and_show_dialog)
6515 (mac_dnd_default_known_types) [TARGET_API_MAC_CARBON]: Likewise.
6516 (mac_run_loop_run_once) [MAC_OSX]: Likewise.
6517 (mac_dialog) [!TARGET_API_MAC_CARBON]: Likewise.
6518 (mac_begin_cg_clip, mac_end_cg_clip) [USE_CG_DRAWING]: Likewise.
6519 (x_set_toolkit_scroll_bar_thumb) [!USE_TOOLKIT_SCROLL_BARS]: Likewise.
6520 (x_scroll_bar_set_handle) [!USE_TOOLKIT_SCROLL_BARS]: Likewise.
6521
6522 * mactoolbox.c: New file.
6523
65242008-04-18 Jason Rumney <jasonr@gnu.org>
6525
6526 * dired.c (Ffile_attributes) [WINDOWSNT]: Cast uid and gid to unsigned.
6527
65282008-04-18 Stefan Monnier <monnier@iro.umontreal.ca>
6529
6530 * character.c (Fmultibyte_char_to_unibyte):
6531 Return latin1 chars unchanged.
6532
6533 * fileio.c (Fexpand_file_name): Refine last fix so `nm' is only
6534 relocated if it points to `name'.
6535
65362008-04-17 Kenichi Handa <handa@m17n.org>
6537
6538 * data.c (Faset): Allow setting a multibyte character in an
6539 ASCII-only unibyte string.
6540
6541 * lisp.h (STRING_SET_MULTIBYTE): New macro.
6542
65432008-04-16 Stefan Monnier <monnier@iro.umontreal.ca>
6544
6545 * Makefile.in: Don't use HAVE_GTK and don't -DUSE_GTK since it's now
6546 done in config.h.
6547
65482008-04-16 Juanma Barranquero <lekktu@gmail.com>
6549
6550 * character.c (Fchar_bytes, Fchar_width, Fstring_width)
6551 (Fchar_direction): Add usage in the docstring.
6552
65532008-04-15 Chong Yidong <cyd@stupidchicken.com>
6554
6555 * keyboard.c (read_key_sequence): Remove always-true checks.
6556
65572008-04-14 Jason Rumney <jasonr@gnu.org>
6558
6559 * w32font.c (w32font_open_internal): Set max_bounds.descent in
6560 compatibility struct, for better underline positioning.
6561
65622008-04-13 David Hansen <david.hansen@gmx.net>
6563
6564 * dbusbind.c (dbus-get-unique-name): Remove extra copying of name
6565 string.
6566
65672008-04-12 Dan Nicolaescu <dann@ics.uci.edu>
6568
6569 * m/hp800.h (XUINT, XSET): Remove.
6570
65712008-04-12 Juanma Barranquero <lekktu@gmail.com>
6572
6573 * fileio.c (Fexpand_file_name): Add declaration for `p' missing in
6574 previous change.
6575
65762008-04-12 Stefan Monnier <monnier@iro.umontreal.ca>
6577
6578 * fileio.c (Fexpand_file_name): Tighten the scope of `p' and `o' vars.
6579 Relocate `nm' after calling DECODE_FILE, in case the GC was run.
6580
65812008-04-11 Stefan Monnier <monnier@iro.umontreal.ca>
6582
6583 * keymap.h (map_keymap_canonical): Declare.
6584 * xmenu.c (single_keymap_panes): Use it.
6585
65862008-04-11 Glenn Morris <rgm@gnu.org>
6587
6588 * eval.c (Fdefvaralias): If the alias is bound and the target is not,
6589 set the target's value to that of the alias.
6590
65912008-04-11 Stefan Monnier <monnier@iro.umontreal.ca>
6592
6593 * term.c (set_tty_color_mode): Left over typo.
6594
65952008-04-10 Michael Albinus <michael.albinus@gmx.de>
6596
6597 * fileio.c (Fmake_symbolic_link): Surround code by #ifdef S_IFLNK
6598 only after check for file name handler functions. Signal, when
6599 native functionality is not supported.
6600 (syms_of_fileio): Declare it unconditionally.
6601
66022008-04-10 Jason Rumney <jasonr@gnu.org>
6603
6604 * w32menu.c (is_simple_dialog, simple_dialog_show): New functions.
6605 (Fx_popup_dialog): Handle simple yes/no questions as dialogs.
6606
6607 * w32.c (logon_network_drive): Also logon to remote drives that
6608 are mapped to drive letters.
6609
66102008-04-10 Glenn Morris <rgm@gnu.org>
6611
6612 * xdisp.c (truncate-partial-width-windows): Doc fix.
6613
66142008-04-10 Stefan Monnier <monnier@iro.umontreal.ca>
6615
6616 * fileio.c (read_file_name_cleanup, Fread_file_name_internal):
6617 Move functions to minibuffer.el.
6618 (syms_of_fileio): Don't declare them.
6619
66202008-04-09 Stefan Monnier <monnier@iro.umontreal.ca>
6621
6622 * minibuf.c (Vcompletion_auto_help): Move to minibuffer.el.
6623 (syms_of_minibuf): Remove its initialization.
6624
6625 * minibuf.c (temp_echo_area_glyphs): Remove unused function.
6626
66272008-04-09 Juanma Barranquero <lekktu@gmail.com>
6628
6629 * editfns.c (Ffield_string_no_properties): Fix typo in docstring.
6630
66312008-04-09 Jason Rumney <jasonr@gnu.org>
6632
6633 * makefile.w32-in (distclean): Delete makefile too.
6634 (maintainer-clean): New target.
6635
6636 * xdisp.c (redisplay_internal) [!WINDOWSNT]: Conditionalize last change.
6637
6638 * w32term.c (w32_compute_glyph_string_overhangs): Compute overhangs
6639 for new font backend and composite cases.
6640
66412008-04-09 Jan Djärv <jan.h.d@swipnet.se>
6642
6643 * atimer.c (alarm_signal_handler): Call run_timers if not SYNC_INPUT.
6644 Most of the code moved to run_timers.
6645 (do_pending_atimers): Call run_timers.
6646 (run_timers): New function.
6647
6648 * sysdep.c (emacs_write): If SYNC_INPUT and pending_atimers,
6649 run atimers.
6650
6651 * process.c (wait_reading_process_output): The same as above.
6652
66532008-04-09 Stefan Monnier <monnier@iro.umontreal.ca>
6654
6655 * minibuf.c (last_exact_completion): Remove variable.
6656 (Fdelete_minibuffer_contents, do_completion, Fminibuffer_complete)
6657 (complete_and_exit_1, complete_and_exit_2)
6658 (Fminibuffer_complete_and_exit, Fminibuffer_complete_word)
6659 (Fdisplay_completion_list, display_completion_list_1)
6660 (Fminibuffer_completion_help, Fself_insert_and_exit)
6661 (Fexit_minibuffer, Fminibuffer_message): Move functions to
6662 minibuffer.el.
6663 (syms_of_minibuf): Remove corresponding initializations.
6664
6665 * keyboard.c (Qdeactivate_mark): New var.
6666 (command_loop_1): Use it to call `deactivate-mark'.
6667 (syms_of_keyboard): Initialize it.
6668
6669 * xdisp.c (redisplay_internal): Reset tty's color_mode when switching
6670 to another frame.
6671 * frame.c (do_switch_frame): Refine the top_frame/async_visible code.
6672 Don't call set_tty_color_mode.
6673 (store_frame_param): Reset previous_frame rather than call
6674 set_tty_color_mode.
6675 * term.c (set_tty_color_mode): Rewrite.
6676 * dispextern.h (set_tty_color_mode): New type.
6677 * termchar.h (struct tty_display_info): Add `previous_color_mode'.
6678
66792008-04-08 Stefan Monnier <monnier@iro.umontreal.ca>
6680
6681 * keymap.c (access_keymap): Remove the value 2 for t_ok which was used
6682 for generic chars, which do not exist any more in emacs-unicode.
6683
66842008-04-08 Michael Albinus <michael.albinus@gmx.de>
6685
6686 * coding.c (detect_coding_emacs_mule)
6687 (Ffind_operation_coding_system): Fix typo.
6688
66892008-04-08 Jason Rumney <jasonr@gnu.org>
6690
6691 * w32uniscribe.c (SNAME): Extract only symbol name.
6692
6693 * w32font.h (struct w32_metric_cache): New struct.
6694 (w32font_info): Use it.
6695 (W32METRIC_NO_ATTEMPT, W32METRIC_SUCCESS, W32METRIC_FAIL)
6696 (CACHE_BLOCKSIZE): New constants.
6697
6698 * w32font.c (Qja, Qko, Qzh): New symbols.
6699 (syms_of_w32font): Initialise them.
6700 (font_matches_spec): Use them to filter by language.
6701 (recompute_cached_metrics): Remove function.
6702 (compute_metrics, clear_cached_metrics): New functions.
6703 (w32font_encode_char): Use them to manage metric cache.
6704 (w32font_text_extents): Cache metrics for all glyphs on demand.
6705 Delay converting glyph indices to WORD until needed.
6706 (w32font_open_internal): Initialize metric cache to empty.
6707 (registry_to_w32_charset): Charset should always be a symbol.
6708 (fill_in_logfont, list_all_matching_fonts): Family should
6709 always be a symbol.
6710
67112008-04-06 Jason Rumney <jasonr@gnu.org>
6712
6713 * w32uniscribe.c (uniscribe_shape): Increase items buffer size.
6714 Give up if glyph indices not supported. Use uniscribe obtained
6715 ABC widths for individual metrics. Map glyph clusters back to
6716 characters using fClusterStart flag. Return number of glyphs
6717 produced, not chars processed.
6718 (uniscribe_shape): Map char at FROM to current glyph.
6719
67202008-04-05 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
6721
6722 * macmenu.c (fill_menu) [TARGET_API_MAC_CARBON]:
6723 Use SetMenuItemHierarchicalMenu.
6724
67252008-04-05 Jason Rumney <jasonr@gnu.org>
6726
6727 * image.c (pbm_load): Allow color values up to 65535.
6728 Throw an error if max_color_idx is outside the supported range.
6729 Report an error when image size is invalid.
6730 Read two bytes at a time when raw images have max_color_idx above 255.
6731
67322008-04-05 Eli Zaretskii <eliz@gnu.org>
6733
6734 * w32.c (readdir): If FindFirstFile/FindNextFile return in
6735 cFileName a file name that includes `?' characters, use the 8+3
6736 alias in cAlternateFileName instead.
6737
67382008-04-05 Kenichi Handa <handa@ni.aist.go.jp>
6739
6740 * ccl.c (ccl_driver): If ccl->quit_silently is nonzero, don't
6741 append "CCL: Quitted" when the CCL program is quitted.
6742 (setup_ccl_program): Initialize ccl->quit_silently to zero.
6743
6744 * ccl.h (struct ccl_program): New member quit_silently.
6745
67462008-04-05 Chong Yidong <cyd@stupidchicken.com>
6747
6748 * search.c (compile_pattern_1): Treat non-nil and non-string of
6749 search-spaces-regexp as nil.
6750
6751 * minibuf.c (Fassoc_string): Tweak docstring.
6752
67532008-04-05 Eli Zaretskii <eliz@gnu.org>
6754
6755 * dired.c (Ffile_attributes): Support inode numbers wider than 32
6756 bits. Remove ugly WINDOWSNT-specific kludge introduced on
6757 2008-03-14 to force inode be positive.
6758
6759 * w32.c (sys_chown, stat, fstat): Use S_* constants instead of
6760 _S_* ones, since we now use our own sys/stat.h.
6761 (stat, fstat): Don't mangle the inode number.
6762 (init_user_info): Don't restrict UID and GID to 0-60000 range.
6763
67642008-04-04 Stefan Monnier <monnier@iro.umontreal.ca>
6765
6766 * frame.h (struct frame): Give one more bit to `visible' since we use
6767 values larger than 1 to indicate obscured frames on ttys.
6768
6769 * keymap.c (Qkeymap_canonicalize): New var.
6770 (Fmap_keymap_internal): New fun.
6771 (describe_map): Use keymap-canonicalize.
6772
6773 * undo.c (last_boundary_buffer, last_boundary_position): New vars.
6774 (Fundo_boundary): Set them.
6775 (syms_of_undo): Initialize them.
6776 (record_point): Use them instead of last_point_position*.
6777 (last_undo_buffer): Change type.
6778
67792008-04-04 Jason Rumney <jasonr@gnu.org>
6780
6781 * w32font.c (w32font_text_extents): Use font's ascent and descent.
6782 (recompute_cached_metrics): Don't set ascent and descent per char.
6783
6784 * w32uniscribe.c (uniscribe_check_otf): Fix last change.
6785 (uniscribe_check_otf): Add GC protection before consing.
6786 Rearrange loop for counting features.
6787
67882008-04-03 Stefan Monnier <monnier@iro.umontreal.ca>
6789
6790 * insdel.c (insert_from_buffer_1): Don't compare bytes in destination
6791 buffer with byte-size of source buffer.
6792
67932008-04-03 Chong Yidong <cyd@stupidchicken.com>
6794
6795 * callint.c (Fcall_interactively): Handle temporary region even
6796 when shift-select-mode is off.
6797
67982008-04-03 Jason Rumney <jasonr@gnu.org>
6799
6800 * w32uniscribe.c (uniscribe_check_otf): Sanity check otf_spec.
6801
68022008-04-03 Kenichi Handa <handa@m17n.org>
6803
6804 * coding.c (CATEGORY_MASK_ANY): Add CATEGORY_MASK_UTF_16_AUTO.
6805 (CATEGORY_MASK_UTF_16): Likewise.
6806 (detect_coding_utf_16): Add heuristics to reject utf-16 for a
6807 binary file.
6808 (detect_coding): Add null-byte detection for a binary file.
6809 (detect_coding_system): Likewise.
6810
68112008-04-03 Jason Rumney <jasonr@gnu.org>
6812
6813 * w32uniscribe.c: New file.
6814
6815 * font.h (uniscribe_font_driver) [WINDOWSNT]: Declare for w32fns.c.
6816
6817 * w32font.h (uniscribe_check_otf): Declare for w32font.c.
6818
6819 * w32font.c (Qbalinese, Qbuginese, Qbuhid, Qcuneiform, Qcypriot)
6820 (Qdeseret, Qglagolitic, Qgothic, Qhanunoo, Qkharoshthi)
6821 (Qlimbu, Qlinear_b, Qold_italic, Qold_persian, Qosmanya)
6822 (Qphags_pa, Qphoenician, Qshavian, Qsyloti_nagri)
6823 (Qtagalog, Qtagbanwa, Qtai_le, Qtifinagh, Qugaritic)
6824 (Qphonetic): New symbols.
6825 (syms_of_w32font): Initialize them.
6826 (font_supported_scripts): Use them.
6827 (w32font_list_family): List all charsets.
6828 (w32font_text_extents, recompute_cached_metrics): Fix metric
6829 calculations.
6830 (w32_enumfont_pattern_entity): Make full_type a DWORD.
6831 Give opentype fonts their own format.
6832 (font_matches_spec): New arguments backend and logfont.
6833 Handle :otf spec for uniscribe backend.
6834 (add_font_entity_to_list): Match truetype fonts in uniscribe backend.
6835 (fill_in_logfont): Use DEFAULT_CHARSET when charset not supplied.
6836
6837 * w32fns.c (Fx_create_frame): Conditionally register uniscribe
6838 font backend.
6839 (globals_of_w32fns): Initialize uniscribe font backend.
6840
6841 * makefile.w32-in (CONFIG_H): New variable. Use it to clean up
6842 dependencies.
6843 (w32uniscribe.$(O)): New file to build.
6844 (FONT_OBJ): Include w32uniscribe.$(O).
6845 (LIBS): Add uniscribe libraries.
6846
6847 * ftfont.c (ftfont_get_open_type_spec): Check spec->script, not val.
6848
68492008-04-02 Chong Yidong <cyd@stupidchicken.com>
6850
6851 * callint.c (Vshift_select_mode): New var.
6852 (Finteractive): Document new ^ spec.
6853 (Fcall_interactively): Call handle-shift-selection if the ^ spec
6854 is present.
6855
6856 * keyboard.c (Vthis_command_keys_shift_translated): New var.
6857 (command_loop_1): Avoid running the direct display versions of
6858 forward-char and backward-char if shift-selection may occur.
6859 (read_key_sequence): Set Vthis_command_keys_shift_translated if
6860 shift-translation takes place.
6861
6862 * buffer.c (Vtransient_mark_mode): Move docstring to simple.el to
6863 avoid clobbering by define-minor-mode.
6864
6865 * cmds.c (Fforward_char, Fbackward_char, Fforward_line)
6866 (Fbeginning_of_line, Fend_of_line): Add ^ interactive spec.
6867
6868 * syntax.c (Fforward_word): Add ^ interactive spec.
6869
6870 * window.c (Fscroll_up, Fscroll_down, Fscroll_left)
6871 (Fscroll_right): Add ^ interactive spec.
6872
68732008-04-01 Stefan Monnier <monnier@iro.umontreal.ca>
6874
6875 * xdisp.c (try_window_id): Don't forget to reset delta_bytes.
6876
6877 * casefiddle.c (casify_object): Fix up int/EMACS_INT mixup.
6878
6879 * charset.c (Funibyte_charset, Fset_unibyte_charset): Remove.
6880
68812008-03-31 Juri Linkov <juri@jurta.org>
6882
6883 * window.c (Fdisplay_buffer): Reinitialize `tem' to nil.
6884
68852008-03-30 Jan Djärv <jan.h.d@swipnet.se>
6886
6887 * gtkutil.c (xg_set_geometry): Fix indentation.
6888 (xg_resize_outer_widget): Remove.
6889 (x_wm_size_hint_off): Fix indentation.
6890 (xg_frame_set_char_size): Call flush_and_sync after
6891 gtk_window_resize.
6892 (x_wm_set_size_hint): Pass NULL as geometry window to
6893 gtk_window_set_geometry_hints due to Gtk+ bug nr 68668.
6894 Add menu bar and tool bar height to base height.
6895 (xg_update_frame_menubar, free_frame_menubar)
6896 (xg_tool_bar_detach_callback, xg_tool_bar_attach_callback)
6897 (update_frame_tool_bar, free_frame_tool_bar):
6898 Change xg_resize_outer_widget to xg_frame_set_char_size.
6899
69002008-03-30 Michael Albinus <michael.albinus@gmx.de>
6901
6902 * dbusbind.c (QCdbus_timeout): New D-Bus internal symbol.
6903 (Fdbus_call_method): New parameter TIMEOUT.
6904 (dbus-send-signal): Optimize UNGCPRO call.
6905
69062008-03-29 Juri Linkov <juri@jurta.org>
6907
6908 * window.c (Fdisplay_buffer): Move call to
6909 Vsplit_window_preferred_function out of conditions that check
6910 if window is eligible for vertical splitting.
6911 When Vsplit_window_preferred_function is non-nil, call it and use
6912 its non-nil return value as window. Otherwise, continue doing
6913 vertical splitting using Fsplit_window with arg horflag=nil.
6914 (syms_of_window) <Vsplit_window_preferred_function>: Change the
6915 default value from `split-window' to nil.
6916
69172008-03-29 Juri Linkov <juri@jurta.org>
6918
6919 * callint.c (Fcall_interactively): Revert 2008-03-16 change
6920 for interactive code letters 'b' and 'B'.
6921
69222008-03-29 Eli Zaretskii <eliz@gnu.org>
6923
6924 * fileio.c (Fexpand_file_name): Convert the value of $HOME to a
6925 multibyte string.
6926
69272008-03-29 Stefan Monnier <monnier@iro.umontreal.ca>
6928
6929 * keyboard.c (pending_funcalls): New var.
6930 (timer_check): Run it.
6931 (syms_of_keyboard): Initialize it.
6932 * terminal.c (Qrun_hook_with_args, Qdelete_terminal_functions)
6933 (Vdelete_terminal_functions): New vars.
6934 (syms_of_terminal): Initialize them.
6935 (Fdelete_terminal): Run delete-terminal-functions.
6936 * xdisp.c (safe_eval): Rewrite.
6937 (safe_call2): New fun.
6938 * frame.c (Qdelete_frame_functions): New var.
6939 (syms_of_frame): Initialize it.
6940 (Fdelete_frame): Use it and use safe_call2 and pending_funcalls.
6941 * lisp.h (safe_call2, pending_funcalls): Declare.
6942
69432008-03-28 Andreas Schwab <schwab@suse.de>
6944
6945 * indent.c (Fmove_to_column): Move declaration before statements.
6946
69472008-03-27 Stefan Monnier <monnier@iro.umontreal.ca>
6948
6949 * frame.h (enum fullscreen_type): Give it a name. Move it before use.
6950 (struct frame): Use bit fields for boolean vars.
6951
6952 * process.c (server_accept_connection): Simplify naming.
6953 (emacs_get_tty_pgrp): Use SDATA.
6954
6955 * coding.c (decode_coding_object): Fix last change.
6956
69572008-03-27 Jason Rumney <jasonr@gnu.org>
6958
6959 * w32fns.c (start_hourglass): Suppress hourglass on tty frames.
6960
69612008-03-27 Kenichi Handa <handa@ni.aist.go.jp>
6962
6963 * charset.c (Fdefine_charset_internal): Change the way of
6964 registering charsets in Vcharset_order_list.
6965 (syms_of_charset): Make the charset `eight-bit' supplementary.
6966
69672008-03-26 Alexandre Oliva <aoliva@redhat.com> (tiny change)
6968
6969 * regex.c (EXTEND_BUFFER): Change order of pointer addition
6970 operations, to avoid having the difference between pointers
6971 overflow.
6972
69732008-03-26 Stefan Monnier <monnier@iro.umontreal.ca>
6974
6975 * indent.c (check_display_width): New fun.
6976 (scan_for_column): Use it.
6977
6978 * data.c (syms_of_data): Mark most-positive-fixnum and
6979 most-negative-fixnum as constants.
6980
6981 * xdisp.c (redisplay_internal): Reset selected_frame earlier.
6982
6983 * indent.c (scan_for_column): Extract from current_column_1.
6984 Merge with the same code from Fmove_to_column.
6985 (current_column_1, Fmove_to_column): Use it.
6986
69872008-03-25 Stefan Monnier <monnier@iro.umontreal.ca>
6988
6989 * keymap.c (map_keymap_internal): New fun.
6990 (map_keymap): Use it.
6991 (Fmap_keymap_internal): New fun.
6992 (Fmap_keymap): Remove left-out test from before make_save_value.
6993
6994 * keymap.c (Fmap_keymap): Use `map-keymap-sorted.
6995
6996 * frame.c (Fmodify_frame_parameters, x_set_frame_parameters):
6997 Use XCAR/XCDR.
6998
6999 * process.h (struct Lisp_Process): Remove filter_multibyte.
7000 * process.c (QCfilter_multibyte): Remove.
7001 (setup_process_coding_systems): Don't use filter_multibyte.
7002 (Fstart_process, Fmake_network_process): Don't set filter_multibyte.
7003 (read_process_output): Don't adjust multibyteness to filter_multibyte.
7004 (Fset_process_filter_multibyte): Change the coding-system to
7005 approximate the previous behavior.
7006 (Fprocess_filter_multibyte_p): Get the multibyteness straight from the
7007 coding-system.
7008
7009 * coding.c (decode_coding_object): When not decoding into a buffer,
7010 obey the coding system's preference of (uni|multi)byte.
7011
70122008-03-24 Stefan Monnier <monnier@iro.umontreal.ca>
7013
7014 * casefiddle.c (casify_object): Avoid pathological N^2 worst case if
7015 every char is changed and has a different byte-length.
7016 (Fupcase_word, Fdowncase_word, Fcapitalize_word, operate_on_word):
7017 Fix int -> EMACS_INT.
7018
70192008-03-23 David Hansen <david.hansen@gmx.net>
7020
7021 * dbusbind.c (xd_read_message): Remove extra copying of message
7022 strings. Check for NULL `interface' or `member'.
7023
70242008-03-22 Eli Zaretskii <eliz@gnu.org>
7025
7026 * w32.c (readdir): If FindFirstFile/FindNextFile return in
7027 cFileName a file name that includes `?' characters, use the 8+3
7028 alias in cAlternateFileName instead.
7029
70302008-03-21 Stefan Monnier <monnier@iro.umontreal.ca>
7031
7032 * buffer.c (enlarge_buffer_text): Fix int -> EMACS_INT.
7033
70342008-03-20 Stefan Monnier <monnier@iro.umontreal.ca>
7035
7036 * intervals.c (temp_set_point, temp_set_point_both): Use EMACS_INT.
7037 (set_point, set_point_both): Use EMACS_INT. Remove `buffer' arg,
7038 work on current_buffer only instead (that was already the case
7039 for some of the code anyway).
7040 * buffer.h (set_point, set_point_both): Remove buffer arg, use long int.
7041 (temp_set_point, temp_set_point_both): Use EMACS_INT.
7042 (SET_PT, SET_PT_BOTH): Adjust.
7043 * intervals.h (set_point, temp_set_point, set_point_both)
7044 (temp_set_point_both): Remove redundant declarations.
7045
70462008-03-20 Stefan Monnier <monnier@iro.umontreal.ca>
7047
7048 * fileio.c (Finsert_file_contents):
7049 * lread.c (Feval_buffer): Use BUF_TEMP_SET_PT.
7050 * buffer.h (BUF_SET_PT): Remove. set_point_both doesn't work right
7051 when buffer != current_buffer anyway.
7052
70532008-03-20 Andreas Schwab <schwab@suse.de>
7054
7055 * callint.c (Fcall_interactively) [case 'B']: Use other-buffer
7056 as default.
7057
70582008-03-19 Jason Rumney <jasonr@gnu.org>
7059
7060 * w32fns.c (hourglass_timer, hourglass_hwnd): New variables.
7061 (syms_of_w32fns): Initialize them.
7062 (HOURGLASS_ID): New constant.
7063 (x_window_to_frame): Don't check hourglass_window.
7064 (w32_wnd_proc) <WM_TIMER>: Handle hourglass_timer.
7065 (w32_wnd_proc) <WM_EXITMENULOOP>: Set pending hourglass cursor.
7066 (w32_wnd_proc) <WM_SETCURSOR>: Set the hourglass or current cursor.
7067 (w32_wnd_proc) <WM_EMACS_SETCURSOR>: Set frame's current_cursor.
7068 Only change the cursor if hourglass is not active.
7069 (Fx_create_frame): Initialize frame's current_cursor.
7070 (hourglass_atimer): Remove.
7071 (hourglass_started): New function.
7072 (start_hourglass, cancel_hourglass, hide_hourglass): Adapt to w32.
7073 (show_hourglass): Adapt to w32, changing argument to frame.
7074
7075 * w32term.h (struct w32_output): Remove hourglass_window.
7076 Add current_cursor.
7077
7078 * eval.c (call_debugger, Fsignal):
7079 * keyboard.c (recursive_edit_1, cmd_error, Ftop_level)
7080 (command_loop_1, Fread_key_sequence, Fread_key_sequence_vector)
7081 (Fexecute_extended_command, cancel_hourglass_unwind):
7082 * minibuf.c (read_minibuf):
7083 * fns.c (Fy_or_n_p): Enable hourglass when HAVE_WINDOW_SYSTEM.
7084
70852008-03-19 Stefan Monnier <monnier@iro.umontreal.ca>
7086
7087 * window.c (run_funs): New fun.
7088 (run_window_configuration_change_hook): Use it to run the buffer-local
7089 and the global part of the hook.
7090
7091 * xdisp.c (format_mode_line_unwind_data): Add window argument.
7092 (unwind_format_mode_line): Restore selected window.
7093 (x_consider_frame_title, Fformat_mode_line): Set selected window.
7094
70952008-03-17 Stefan Monnier <monnier@iro.umontreal.ca>
7096
7097 * editfns.c (Fchar_equal): Check they are valid characters.
7098
7099 * buffer.h (Fbuffer_list): Declare (for use in callint.c).
7100
71012008-03-17 Andreas Schwab <schwab@suse.de>
7102
7103 * regex.c (re_match_2_internal): Properly match raw 8-bit bytes
7104 against a charset.
7105
7106 * lisp.h (Fbuffer_list): Declare.
7107
71082008-03-17 Jan Djärv <jan.h.d@swipnet.se>
d6c952f8 7109
aac0c6e3
MR
7110 * gtkutil.c (free_frame_tool_bar): Only call gtk_container_remove if
7111 handlebox_widget is != 0.
7112
71132008-03-16 Juri Linkov <juri@jurta.org>
7114
7115 * callint.c (Fcall_interactively): For interactive code letters
7116 'b' and 'B' put the buffer list into the list of default "future"
7117 values of the minibuffer.
7118
71192008-03-16 Andreas Schwab <schwab@suse.de>
7120
7121 * keyboard.c (read_key_sequence): Fix downcasing of letters with
7122 modifiers.
7123
7124 * regex.c (re_match_2_internal): Correct matching of a charset
7125 against latin-1 characters.
7126
71272008-03-16 Kenichi Handa <handa@m17n.org>
7128
7129 * coding.c (CHAR_STRING_ADVANCE_NO_UNIFY)
7130 (STRING_CHAR_ADVANCE_NO_UNIFY): New macros.
7131 (coding_alloc_by_making_gap): Fix the way to preserve data in the gap.
7132 (alloc_destination): Fix the 2nd arg to coding_alloc_by_making_gap.
7133 (encode_coding_utf_8): Use CHAR_STRING_ADVANCE_NO_UNIFY instead of
7134 CHAR_STRING_ADVANCE.
7135 (produce_chars): Fix for the case that the source and the
7136 destination are the same buffer. Use CHAR_STRING_ADVANCE_NO_UNIFY
7137 instead of CHAR_STRING_ADVANCE.
7138 (consume_chars): Use STRING_CHAR_ADVANCE_NO_UNIFY instead of
7139 STRING_CHAR_ADVANCE.
7140
71412008-03-15 Andreas Schwab <schwab@suse.de>
7142
7143 * regex.c (re_match_2_internal): Correct matching of eight bit
7144 characters in unibyte strings.
7145
71462008-03-15 Martin Rudalics <rudalics@gmx.at>
7147
7148 * buffer.c (overlays_in, Foverlays_in): Include empty overlays
7149 at end of range when it coincides with the end of the buffer.
7150
71512008-03-14 Eli Zaretskii <eliz@gnu.org>
7152
7153 * dired.c (Ffile_attributes) [WINDOWSNT]: Force inode be positive.
7154
7155 * w32fns.c (globals_of_w32fns, Fx_create_frame): Fix last change.
7156
71572008-03-14 Jason Rumney <jasonr@gnu.org>
7158
7159 * editfns.c (initial_tz): New variable.
7160 (syms_of_editfns): Initialize it.
7161 (Fset_time_zone_rule): Set it when first called.
7162 Use it when TZSTRING is nil.
7163
7164 * w32fns.c (MONITOR_DEFAULT_TO_NEAREST, struct MONITOR_INFO)
7165 (MonitorFromPoint_Proc, GetMonitorInfo_Proc): New definitions.
7166 (monitor_from_point_fn, get_monitor_info_fn): New globals.
7167 (globals_of_w32fns): Initialize them.
7168 (compute_tip_xy): Use them to position tooltips.
7169
71702008-03-14 Glenn Morris <rgm@gnu.org>
7171
7172 * emacs.c (main): Revert previous change.
7173 (standard_args): Revert -internal-script back to -scriptload,
7174 and remove the long-option form.
7175
71762008-03-13 Glenn Morris <rgm@gnu.org>
7177
7178 * emacs.c (main, standard_args): Rename -scriptload to -internal-script.
7179 Remove option -enable-font-backend.
7180
71812008-03-12 Stefan Monnier <monnier@iro.umontreal.ca>
7182
7183 * buffer.c (Fswitch_to_buffer): Fall back on pop-to-buffer.
7184
71852008-03-11 Jan Djärv <jan.h.d@swipnet.se>
7186
7187 * xterm.c (x_connection_closed): For GTK: If this is the last
7188 terminal just exit without closing the display.
7189
71902008-03-11 Jason Rumney <jasonr@gnu.org>
7191
7192 * w32font.c (w32font_full_name): Use floor to round.
7193
f0131492 71942008-03-10 Dhruva Krishnamurthy <dhruvakm@gmail.com> (tiny change)
aac0c6e3
MR
7195
7196 * sound.c (alsa_configure): Declare vol at beginning of block.
7197
7198 * fontset.c (Ffontset_info): Remove extra semicolon.
7199
72002008-03-10 Stefan Monnier <monnier@iro.umontreal.ca>
7201
7202 * fileio.c (Fsubstitute_in_file_name): Fix up computation of maximum
7203 size of resulting string.
7204
72052008-03-10 Jason Rumney <jasonr@gnu.org>
7206
7207 * dispnew.c (adjust_glyph_matrix): Initialize window_height.
7208
72092008-03-10 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
7210
7211 * xdisp.c (handle_single_display_spec): Undo 2007-10-16 changes.
7212 Don't pretend as if characters with display property haven't been
7213 consumed for string-replacing-string case.
7214
72152008-03-08 Kim F. Storm <storm@cua.dk>
7216
7217 * xdisp.c (GET_NEXT_DISPLAY_ELEMENT): New macro.
7218 (get_next_display_element, next_element_from_string)
7219 (next_element_from_ellipsis, next_element_from_buffer): Use it.
7220
72212008-03-08 Andreas Schwab <schwab@suse.de>
7222
7223 * process.h (struct Lisp_Process): Declare bit fields as unsigned.
7224
72252008-03-06 Jason Rumney <jasonr@gnu.org>
7226
7227 * w32font.c (w32_registry): Take font_type argument. Use ANSI
7228 when charset not specified. Only translate ANSI to unicode when
7229 font_type is truetype.
7230 (w32font_coverage_ok): New function.
7231 (add_font_entity_to_list): Use it to filter unsuitable fonts.
7232
72332008-03-05 Kenichi Handa <handa@ni.aist.go.jp>
7234
7235 * lread.c (Fread_char): Resolve modifiers.
7236 (Fread_char_exclusive): Likewise.
7237
7238 * character.c (char_resolve_modifier_mask): New function.
7239 (char_string): Use char_resolve_modifier_mask.
7240 (Fchar_resolve_modifiers): New function.
7241 (syms_of_character): Declare Fchar_resolve_modifiers as Lisp
7242 function.
7243
72442008-03-04 Jason Rumney <jasonr@gnu.org>
7245
7246 * makefile.w32-in: Always include w32font.c in the build.
7247 * w32font.c: Wrap in USE_FONT_BACKEND conditional.
7248
72492008-03-04 Andreas Schwab <schwab@suse.de>
7250
7251 * Makefile.in (clean): Remove emacs-*.*.* instead of emacs-*.
7252 (versionclean): Likewise.
7253
72542008-03-04 Juanma Barranquero <lekktu@gmail.com>
7255
7256 * .cvsignore: Add oo.
7257
72582008-03-03 Andreas Schwab <schwab@suse.de>
7259
7260 * coding.c (decode_coding_object): Inhibit gap shrinking while
7261 decoding in place.
7262
72632008-03-03 Dan Nicolaescu <dann@ics.uci.edu>
7264
7265 * w32term.c: Remove unused include "gnu.h".
7266 * makefile.w32-in (w32term.o): Don't depend on gnu.h.
7267
7268 * gnu.h: Rename to ...
7269 * emacs-icon.h: ... this.
7270 * xterm.c: Use emacs-icon.h instead of gnu.h.
7271 * Makefile (xterm.o): Depend on emacs-icon.h, not gnu.h.
7272
72732008-03-03 Juanma Barranquero <lekktu@gmail.com>
7274
7275 * w32font.c: Include math.h.
7276
72772008-03-03 Jason Rumney <jasonr@gnu.org>
7278
7279 * w32font.c (recompute_cached_metrics): Change font arg to w32font_info.
7280 Compute options separately.
7281 (w32font_open_internal): Set glyph_idx before caching metrics.
7282
7283 * w32font.h (NTM_PS_OPENTYPE, NTM_TT_OPENTYPE, NTM_TYPE1):
7284 Define if system headers don't.
7285 (struct w32font_info): Enlarge ascii_metrics. Add glyph_idx.
7286 (w32font_encode_char): Don't declare here.
7287
7288 * w32font.c (Quniscribe, QCformat): New symbols.
7289 (syms_of_w32font): Define them.
7290 (w32font_has_char): Indicate uncertainty.
7291 (w32font_encode_char): Encode as glyph point. Make static.
7292 (recompute_cached_metrics): New function.
7293 (w32font_open_internal): Use it. Set font to use glyph points
7294 initially. Set format based on type of font.
7295 (w32font_text_extents, w32font_draw): Optionally use glyph points.
7296 (w32_enumfont_pattern_entity): Accept backend arg. Set type based
7297 on it. Set format based on information available here.
7298 (add_font_entity_to_list): Identify backend based on opentype_only.
7299
73002008-03-02 Andreas Schwab <schwab@suse.de>
7301
7302 * ftfont.c (ftfont_pattern_entity): Fix aliasing violations.
7303
7304 * coding.c (decode_coding_big5, produce_chars):
7305 Fix typos in last change.
7306
73072008-03-02 Kentaro Ohkouchi <nanasess@fsm.ne.jp>
7308
7309 * gnu.h: New icon.
7310
73112008-03-02 Kenichi Handa <handa@m17n.org>
7312
7313 * coding.c (decode_coding_utf_8): When eol-type of CODING is
7314 `dos', don't decode '\r' if that is the last in the source.
7315 (decode_coding_utf_16, decode_coding_emacs_mule)
7316 (decode_coding_iso_2022, decode_coding_sjis, decode_coding_big5)
7317 (decode_coding_raw_text, decode_coding_charset): Likewise.
7318 (produce_chars): Don't decode EOL here. Use EMACS_INT.
7319
73202008-03-01 Jason Rumney <jasonr@gnu.org>
7321
7322 * w32font.c (w32font_full_name): Report point size for scalable fonts.
7323
73242008-03-01 Kim F. Storm <storm@cua.dk>
7325
7326 * dispextern.h (CHAR_GLYPH_SPACE_P): Check for default face.
7327
73282008-03-01 Jason Rumney <jasonr@gnu.org>
7329
7330 * w32font.c (w32font_full_name): New function.
7331 (w32font_open_internal): Use it.
7332
73332008-03-01 Kim F. Storm <storm@cua.dk>
7334
7335 * dispnew.c (line_draw_cost): Fix invalid glyph check.
7336
73372008-03-01 Jason Rumney <jasonr@gnu.org>
7338
7339 * font.c (font_unparse_fcname): Increase len when style is a symbol.
7340
73412008-03-01 Jan Djärv <jan.h.d@swipnet.se>
7342
7343 * xterm.c (handle_one_xevent): For Gtk+ and ConfigureNotify, call
7344 xg_frame_resized when the event is for the edit widget.
7345
7346 * gtkutil.h (xg_frame_resized): Renamed from xg_resize_widgets.
7347
7348 * gtkutil.c (xg_resize_outer_widget): Only do one of set_geometry or
7349 set_char_size.
7350 (xg_frame_resized): Renamed from xg_resize_widgets. Remove all
7351 operations on widgets here. Just set frame size if needed.
7352 (flush_and_sync, x_wm_size_hint_off, xg_pack_tool_bar): New functions.
7353 (xg_frame_set_char_size): Call x_wm_size_hint_off before resizing.
7354 (x_wm_set_size_hint): Set size hints on the edit widget only, not
7355 the whole frame.
7356 (xg_create_tool_bar): Move attachment of the tool bar to
7357 xg_pack_tool_bar. Do not attach the tool bar if there are no items.
7358 (free_frame_tool_bar): Remove call to SET_FRAME_GARBAGED.
7359
73602008-03-01 Jason Rumney <jasonr@gnu.org>
7361
7362 * w32fns.c (w32_msg_pump): Disable debug code.
7363
73642008-03-01 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
7365
7366 * m/intel386.h [MAC_OSX || DARWIN]: Define NO_ARG_ARRAY if _LP64.
7367
73682008-02-29 Chong Yidong <cyd@stupidchicken.com>
7369
7370 * xdisp.c (next_overlay_string): Don't set
7371 overlay_strings_at_end_processed_p if we're currently reading from
7372 a display string.
7373
73742008-02-29 Stefan Monnier <monnier@iro.umontreal.ca>
7375
7376 * xdisp.c (get_overlay_strings_1): Fix typo.
7377
73782008-02-29 Chong Yidong <cyd@stupidchicken.com>
7379
7380 * xdisp.c (get_overlay_strings_1): Add missing argument type.
7381
73822008-02-28 Kenichi Handa <handa@ni.aist.go.jp>
7383
7384 * ftfont.c (ftfont_match): Explicitly set pixelsize in pattern.
7385
7386 * xdisp.c (display_mode_element): Cancel the previous change.
7387 (decode_mode_spec): Likewise.
7388 (handle_auto_composed_prop): Don't make composition if it->string
7389 is a string.
7390
73912008-02-27 Kim F. Storm <storm@cua.dk>
7392
7393 * lisp.h (GLYPH): Change type from int to struct with separate char
7394 and face_id members.
7395 (GLYPH_MASK_FACE, GLYPH_MASK_CHAR): Delete macros.
7396 (GLYPH_CHAR, GLYPH_FACE): Remove slow versions with frame arg.
7397 (FAST_GLYPH_CHAR, FAST_GLYPH_FACE): Rename macros to ...
7398 (GLYPH_CHAR, GLYPH_FACE): ... these. Change users.
7399 (FAST_MAKE_GLYPH, MAKE_GLYPH): Remove. Rewrite users to use ...
7400 (SET_GLYPH, SET_GLYPH_CHAR, SET_GLYPH_FACE): ... these macros instead.
7401 (GLYPH_CODE_CHAR, GLYPH_CODE_FACE, GLYPH_CODE_P)
7402 (GLYPH_CODE_CHAR_VALID_P, SET_GLYPH_FROM_GLYPH_CODE): New macros to
7403 handle new Lisp glyph code encoding, either an integer or a cons.
7404
7405 * disptab.h (GLYPH_SIMPLE_P): Rewrite.
7406 (GLYPH_ALIAS): Delete.
7407 (GLYPH_ALIAS_P, GLYPH_FOLLOW_ALIASES): Rewrite.
7408 (GLYPH_LENGTH, GLYPH_STRING): Use GLYPH_CHAR.
7409 (GLYPH_FROM_CHAR): Replace macro by ...
7410 (SET_GLYPH_FROM_CHAR): ... this macro. Change users.
7411
7412 * dispextern.h (CHAR_GLYPH_SPACE_P): Simplify.
7413 (GLYPH_FROM_CHAR_GLYPH): Replace macro by ...
7414 (SET_GLYPH_FROM_CHAR_GLYPH): ... this macro. Change users.
7415 (GLYPH_INVALID_P): New macro.
7416 (spec_glyph_lookup_face): Update prototype.
7417
7418 * dispnew.c (line_draw_cost): Adapt to new glyph type.
7419 (build_frame_matrix_from_leaf_window): Adapt to new glyph type and
7420 new glyph code encoding.
7421 (spec_glyph_lookup_face): No return value; update passed glyph instead.
7422 (init_display): Use SET_CHAR_GLYPH to initialize space_glyph.
7423
7424 * xdisp.c (get_next_display_element, next_element_from_display_vector):
7425 Adapt to new glyph type and new glyph code encoding.
7426
7427 * term.c (encode_terminal_code, produce_special_glyphs): Likewise.
7428
7429 * indent.c (current_column, current_column_1, Fmove_to_column)
7430 (compute_motion): Adapt to new glyph code encoding.
7431
7432 * msdos.c (IT_write_glyphs): Adapt to new glyph type.
7433
74342008-02-27 Chong Yidong <cyd@stupidchicken.com>
7435
7436 * process.c (wait_reading_process_output): Check for window
7437 changes caused by timers.
7438 Suggested by Johan Bockgård.
7439
74402008-02-27 Glenn Morris <rgm@gnu.org>
7441
7442 * emacs.c (USAGE1): Add `--disable-font-backend'.
7443
74442008-02-27 Stefan Monnier <monnier@iro.umontreal.ca>
7445
7446 * fileio.c (Finsert_file_contents): Don't reset undo_list if no change
7447 is made to the buffer.
7448
74492008-02-26 Stefan Monnier <monnier@iro.umontreal.ca>
7450
7451 * dispextern.h (face_at_buffer_position, face_for_overlay_string)
7452 (face_at_string_position):
7453 * xfaces.c (face_at_buffer_position, face_for_overlay_string)
7454 (face_at_string_position):
7455 * xdisp.c (display_string, next_overlay_change):
7456 * buffer.h (overlays_at):
7457 * buffer.c (overlays_at): Use EMACS_INT for buffer positions.
7458 Update callers.
7459
74602008-02-26 Chong Yidong <cyd@stupidchicken.com>
7461
7462 * editfns.c (Fformat): Doc fix.
7463
74642008-02-26 Juanma Barranquero <lekktu@gmail.com>
7465
7466 * font.c (Ffont_spec, Ffont_at): Fix typos in docstrings.
7467 (Ffont_put, Flist_families, Ffont_fill_gstring, Ffont_drive_otf)
7468 (Ffont_otf_alternates, Fquery_font): Doc fixes.
7469
74702008-02-25 Stefan Monnier <monnier@iro.umontreal.ca>
7471
7472 * buffer.c (Fbuffer_swap_text): New function.
7473 (syms_of_buffer): Defsubr it.
7474
74752008-02-25 Chong Yidong <cyd@stupidchicken.com>
7476
7477 * keyboard.c (command_loop_1): Revert 2006-10-09 change.
7478
74792008-02-25 Jason Rumney <jasonr@gnu.org>
7480
7481 * w32font.c (w32font_draw): Draw one character at a time when padding.
7482
74832008-02-25 Stefan Monnier <monnier@iro.umontreal.ca>
7484
7485 * window.c (Fdelete_window, Fadjust_window_trailing_edge):
7486 Handle a nil arg. Use run_window_configuration_change_hook.
7487 (delete_window, adjust_window_trailing_edge): Don't handle nil any more.
7488 (Fenlarge_window, Fshrink_window, Fset_window_configuration):
7489 Use run_window_configuration_change_hook.
7490
74912008-02-25 Kenichi Handa <handa@ni.aist.go.jp>
7492
7493 * xdisp.c (x_produce_glyphs): For a visible glyph, assure at least
7494 1-pixel width.
7495
74962008-02-25 Kenichi Handa <handa@ni.aist.go.jp>
7497
7498 * xdisp.c (fill_glyph_string): Pay attention to glyph->padding_p.
7499 (append_glyph): Set glyph->pixel_width and glyph->padding_p to 1
7500 if the glyph in the font is zero pixel with.
7501
7502 * dispextern.h (struct glyph_string): New member padding_p.
7503
7504 * w32font.c (w32font_draw): Pay attention to s->padding_p.
7505
7506 * ftxfont.c (ftxfont_draw): Pay attention to s->padding_p.
7507
7508 * xfont.c (xfont_draw): Pay attention to s->padding_p.
7509
7510 * xftfont.c (xftfont_draw): Pay attention to s->padding_p.
7511
7512 * font.c: If the font driver doesn't have `shape' function, return Qnil.
7513
75142008-02-25 Jason Rumney <jasonr@gnu.org>
7515
7516 * w32fns.c (enum_font_cb2): Don't use raster fonts for Unicode.
7517
75182008-02-24 Stefan Monnier <monnier@iro.umontreal.ca>
7519
7520 Allow fine-grained image-cache flushing.
7521 * dispextern.h (struct image): Add `dependencies' field.
7522 (clear_image_caches): Change arg to Lisp_Object.
7523 * image.c (make_image): Initialize `dependencies' field.
7524 (clear_image_cache): Change arg to allow fine-grained flushing.
7525 Perform the flush even if image-cache-eviction-delay is nil.
7526 (clear_image_caches): Change arg to Lisp_Object.
7527 (Fclear_image_cache): Expand meaning of the argument.
7528 (mark_image): Mark `dependencies' field.
7529 * xfaces.c (clear_face_cache): Adapt arg to call to clear_image_caches.
7530 (lface_hash): Use XHASH rather than XFASTINT.
7531 (face_at_buffer_position): Fix int -> EMACS_INT position.
7532 * xdisp.c (next_overlay_change): Fix int -> EMACS_INT position.
7533 (select_frame_for_redisplay): Remove code duplication.
7534 (redisplay_internal): Adapt arg to call to clear_image_caches.
7535
75362008-02-24 Dan Nicolaescu <dann@ics.uci.edu>
7537
7538 * s/vms4-0.h:
7539 * s/vms4-2.h:
7540 * s/vms4-4.h:
7541 * s/vms5-5.h: Remove, unused.
7542
7543 * s/irix5-2.h:
7544 * s/irix6-0.h:
7545 * s/riscos5.h:
7546 * s/mach-bsd4-3.h:
7547 * m/mips4.h: Remove files for obsolete systems.
7548
7549 * Makefile.in:
7550 * filelock.c:
7551 * unexmips.c:
7552 * m/hp9000s300.h:
7553 * m/iris4d.h:
7554 * s/aix3-1.h:
7555 * s/hpux.h:
7556 * s/msdos.h:
7557 * s/usg5-0.h:
7558 * s/usg5-2-2.h:
7559 * s/usg5-2.h:
7560 * s/usg5-3.h: Remove references to obsolete variables.
7561
7562 * s/irix5-0.h: Remove, move all the contents ...
7563 * s/irix6-5.h: ... here. Simplify.
7564 * config.in: Regenerate.
7565
75662008-02-24 Jason Rumney <jasonr@gnu.org>
7567
7568 * w32term.c (x_draw_glyph_string_background): Clear the background
7569 manually when cleartype is in use.
7570 (x_draw_glyph_string_foreground): Draw text transparently when
7571 cleartype is in use.
7572
7573 * w32font.c (w32font_text_extents): Avoid getting HDC and selecting
7574 a font into it unless we have to.
7575
75762008-02-19 Stefan Monnier <monnier@iro.umontreal.ca>
7577
7578 * intervals.h (INT_LISPLIKE): Remove. It may misfire.
7579 (NULL_INTERVAL_P, SET_INTERVAL_PARENT): Don't use it.
d6c952f8 7580
aac0c6e3
MR
75812008-02-18 Jason Rumney <jasonr@gnu.org>
7582
7583 * w32fns.c (Fw32_shell_execute): Encode parameters.
7584
75852008-02-09 Eli Zaretskii <eliz@gnu.org>
7586
7587 * fileio.c (syms_of_fileio) <insert-default-directory>: Doc fix.
7588
75892008-02-05 Juanma Barranquero <lekktu@gmail.com>
7590
7591 * unexhp9k800.c (read_header): Replace `legal' with `valid'.
7592
75932008-02-24 Ulrich Neumerkel <ulrich@complang.tuwien.ac.at> (tiny change)
7594
7595 * xterm.c (x_set_offset): Don't change the gravity if
7596 CHANGE_GRAVITY is -1.
7597
75982008-02-23 Chong Yidong <cyd@stupidchicken.com>
7599
7600 * fileio.c (auto_save_error_occurred): New var.
7601 (auto_save_error): Set it.
7602 (Fdo_auto_save): Don't overwrite the error message if an auto-save
7603 error occurred.
7604
76052008-02-23 Eli Zaretskii <eliz@gnu.org>
7606
7607 * w32.c (globals_of_w32): Add initializations for
7608 g_b_init_get_sid_sub_authority and
7609 g_b_init_get_sid_sub_authority_count.
7610
76112008-02-22 Stefan Monnier <monnier@iro.umontreal.ca>
7612
7613 * font.c (font_match_xlfd, font_check_xlfd_parse): New funs.
7614 (font_parse_xlfd): Use them for sanity check.
7615 (Finternal_set_font_style_table): Make sure the table is bijective.
7616
7617 Consolidate the image_cache to the terminal struct.
7618 * termhooks.h (P_): Remove redundant def.
7619 (struct terminal): New field `image_cache'.
7620 * frame.h (FRAME_IMAGE_CACHE): New macro. Use it everywhere in place
7621 of FRAME_X_IMAGE_CACHE.
7622 * xterm.h (struct x_display_info): Remove image_cache field.
7623 (FRAME_X_IMAGE_CACHE): Remove. Use FRAME_IMAGE_CACHE instead.
7624 * w32term.h (struct w32_display_info): Remove image_cache field.
7625 (FRAME_X_IMAGE_CACHE): Remove. Use FRAME_IMAGE_CACHE instead.
7626 * macterm.h (struct mac_display_info): Remove image_cache field.
7627 (FRAME_X_IMAGE_CACHE): Remove. Use FRAME_IMAGE_CACHE instead.
7628 * xterm.c (x_term_init):
7629 * w32term.c (w32_term_init):
7630 * macterm.c (mac_term_init): Set the image_cache in the terminal.
7631 * dispextern.h (clear_image_cache, forall_images_in_image_cache):
7632 Remove declarations.
7633 (clear_image_caches, mark_image_cache): New declarations.
7634 * xfaces.c (clear_face_cache):
7635 * xdisp.c (redisplay_internal): Use clear_image_caches.
7636 * image.c (clear_image_cache): Don't check that a frame is on
7637 a window-system before checking if it shares the same cache.
7638 (clear_image_caches): New function.
7639 (Fclear_image_cache): Use it.
7640 (mark_image): Move from allo.c.
7641 (mark_image_cache): Move from alloc.c and forall_images_in_image_cache.
7642 * alloc.c (mark_image, mark_image_cache): Move to image.c.
7643 (mark_object): Don't call mark_image_cache for frames.
7644 (mark_terminals): Call mark_image_cache.
7645
7646 * lisp.h (Fdelete_terminal): Declare.
7647
7648 * charset.h (CHECK_CHARSET, CHECK_CHARSET_GET_ID)
7649 (CHECK_CHARSET_GET_ATTR): Don't use the inexistent return value of
7650 wrong_type_argument.
7651
76522008-02-22 Kenichi Handa <handa@ni.aist.go.jp>
7653
7654 * Makefile.in (lisp): Remove devanagari.el, kannada.el,
7655 malayalam.el, and tamil.el. Add sinhala.el.
7656
76572008-02-21 Stefan Monnier <monnier@iro.umontreal.ca>
7658
7659 * xterm.c (x_connection_closed): Consolidate identical tests.
7660 (x_delete_terminal): Don't crash if called via x_connection_closed.
7661
76622008-02-21 Kenichi Handa <handa@ni.aist.go.jp>
7663
7664 * xdisp.c (decode_mode_spec): New arg string.
7665 (display_mode_element): Adjust for the above change.
7666
76672008-02-19 Stefan Monnier <monnier@iro.umontreal.ca>
7668
7669 * callint.c (Fcall_interactively): Use AREF.
7670
76712008-02-18 Stefan Monnier <monnier@iro.umontreal.ca>
7672
7673 * font.c (font_unparse_xlfd): Don't ignore integer pixel size specs.
7674
76752008-02-18 Jan Djärv <jan.h.d@swipnet.se>
7676
7677 * xfns.c (Fx_show_tip): Set string to " " if empty.
7678
76792008-02-17 Dan Nicolaescu <dann@ics.uci.edu>
7680
7681 * callint.c (syms_of_callint): Initialize Vmark_even_if_inactive
7682 with Qt.
7683
76842008-02-17 Kenichi Handa <handa@m17n.org>
7685
7686 * ftfont.c (ftfont_shape): Return Lispy number.
7687
7688 * xfaces.c (prepare_face_for_display): Use display_info->font->fid
7689 for GCs.
7690 (Finternal_set_font_selection_order): Call font_update_sort_order
7691 only when enable_font_backend is set.
7692 (realize_x_face): Set face->font_info to that of default face only
7693 when enable_font_backend is set.
7694
7695 * xdisp.c (handle_composition_prop): Set it->c to the fist
7696 character of the composed region.
7697 (fill_composite_glyph_string): Set base_face->font_info to
7698 s->font_info. Get a face for ascii from base_face->ascii_face.
7699 (BUILD_COMPOSITE_GLYPH_STRING): Call fill_composite_glyph_string
7700 with a face already decided.
7701 (x_produce_glyphs): Be sure to set it->ascent and it->descent to
7702 non-negative.
7703 (x_produce_glyphs): If the composition method is ..._WITH_GLYPH_STRING,
7704 call font_prepare_composition unconditionally.
7705
7706 * xfns.c (x_make_gc): Use the default font id of the frame for GCs.
7707
7708 * xterm.h (struct x_display_info): New member font.
7709
7710 * xterm.c (x_set_cursor_gc): Use display_info->font->fid for GCs.
7711 (x_set_mouse_face_gc, x_new_font): Likewise.
7712 (x_term_init): Setup display_info->font.
7713 (x_delete_terminal): Free display_info->font.
7714
7715 * xfont.c (xfont_draw): Use BLOCK_INPUT and UNBLOCK_INPUT.
7716
7717 * ftxfont.c (ftxfont_default_fid): Delete it.
7718 (ftxfont_open): Set xfont->fid to 0.
7719 (ftxfont_end_for_frame): Clear data specific to the frame and the
7720 font-driver.
7721
7722 * xftfont.c (xftfont_default_fid): Delete it.
7723 (xftfont_open): Set xfont->fid to 0.
7724
7725 * fontset.c (FONTSET_OBJLIST): New macro.
7726 (fontset_find_font): Update font-object list of the fontset.
7727 (free_realized_fontset): New function.
7728 (free_face_fontset): Call free_realized_fontset.
7729 (Ffont_info): Call font_close_object only when enable_font_backend
7730 is set.
7731
7732 * font.c [HAVE_X_WINDOWS]: Include xterm.h.
7733 [HAVE_NTGUI]: Include w32term.h.
7734 [MAC_OS]: Include macterm.ch.
7735 (font_otf_ValueRecord): Use make_number.
7736 (font_finish_cache): Fix handling of reference count.
7737 (font_clear_cache): Update num_fonts.
7738 (font_open_entity): Update smallest_char_width and
7739 smallest_font_height of the frame.
7740 (font_close_object): Update num_fonts.
7741 (Fclear_font_cache): Fix finding the target cache data.
7742
77432008-02-16 Glenn Morris <rgm@gnu.org>
7744
7745 * fontset.c (Finternal_char_font): Fix compilation warning.
7746
77472008-02-16 Eli Zaretskii <eliz@gnu.org>
7748
7749 * w32.c (init_user_info): Use TOKEN_USER and TOKEN_PRIMARY_GROUP
7750 instead of char arrays. Enlarge the size of array passed to
7751 get_token_information.
7752
7753 * font.c (Ffont_fill_gstring, Fget_font_glyphs): Fix compilation
7754 warnings.
7755
77562008-02-15 Dan Nicolaescu <dann@ics.uci.edu>
7757
7758 * .gdbinit: Don't set `args', it breaks gdb --args.
7759
77602008-02-14 Stefan Monnier <monnier@iro.umontreal.ca>
7761
7762 * fileio.c (Finsert_file_contents): Adjust offsets when replacing
7763 within a narrowed buffer.
7764
77652008-02-14 Kenichi Handa <handa@ni.aist.go.jp>
7766
7767 * coding.c (decode_coding_object, encode_coding_object):
7768 Preserve Vdeactivate_mark. Delete unnecessary call of Fcurrent_buffer.
7769
77702008-02-12 Stefan Monnier <monnier@iro.umontreal.ca>
7771
7772 * coding.c (coding_set_destination): Use BEG_BYTE rather than
7773 hardcoding 1.
7774 (detect_coding_system):
7775 * lisp.h (detect_coding_system, chars_in_text, multibyte_chars_in_text)
7776 (string_char_to_byte, string_byte_to_char, insert_from_gap):
7777 * insdel.c (insert_from_gap):
7778 * fns.c (string_char_byte_cache_charpos, string_char_byte_cache_bytepos)
7779 (string_char_to_byte, string_byte_to_char, string_make_multibyte)
7780 (string_to_multibyte):
7781 * character.c (chars_in_text, multibyte_chars_in_text):
7782 * fileio.c (Finsert_file_contents): Use EMACS_INT for buffer positions.
7783
7784 * character.h (FETCH_STRING_CHAR_ADVANCE)
7785 (FETCH_STRING_CHAR_AS_MULTIBYTE_ADVANCE)
7786 (FETCH_STRING_CHAR_ADVANCE_NO_CHECK): Use SDATA and SREF.
7787 (DEC_POS, BUF_DEC_POS): Use BEG_BYTE rather than hardcoding 1.
7788
7789 * casefiddle.c (casify_region): Only call after-change and composition
7790 functions on the part of the region that was changed.
7791
7792 * keyboard.c (read_avail_input):
7793 * frame.c (Fdelete_frame): Call Fdelete_terminal.
7794
77952008-02-11 Stefan Monnier <monnier@iro.umontreal.ca>
7796
7797 * buffer.c (clone_per_buffer_values, reset_buffer_local_variables)
7798 (Fbuffer_local_value, Fbuffer_local_variables): Don't forget undo_list.
7799
78002008-02-11 Juanma Barranquero <lekktu@gmail.com>
7801
7802 * w32menu.c (push_submenu_start, push_submenu_end)
7803 (push_left_right_boundary, push_menu_pane, push_menu_item):
7804 * keyboard.c (read_key_sequence): Don't pass args with side effects
7805 to AREF, it fails when compiling with -DENABLE_CHECKING.
7806
78072008-02-11 Kenichi Handa <handa@ni.aist.go.jp>
7808
7809 * Makefile.in (${lispsource}international/charprop.el):
7810 Delete this target.
7811
7812 * search.c (boyer_moore): Fix incorrect synching of the trunk and
7813 emacs-unicode-2.
7814
78152008-02-11 Stefan Monnier <monnier@iro.umontreal.ca>
7816
7817 * terminal.c (Fdelete_terminal): Clean up the `force' path.
7818
78192008-02-10 Stefan Monnier <monnier@iro.umontreal.ca>
7820
7821 * frame.c (Qnoelisp): New symbol.
7822 (syms_of_frame): Initialize it.
7823 (Fdelete_frame): Use it to distinguish a mere `force' passed from some
7824 harmless Elisp code, from a strong `force' from x_connection_closed.
7825 * frame.h (Qnoelisp): Declare.
7826 * xterm.c (x_connection_closed): Pass `noelisp'.
7827
7828 * lisp.h (struct Lisp_Misc_Any, struct Lisp_Marker)
7829 (struct Lisp_Overlay, struct Lisp_Kboard_Objfwd)
7830 (struct Lisp_Save_Value, struct Lisp_Free): Use enum Lisp_Misc_Type
7831 rather than `int' for the type of `type'.
7832
78332008-02-10 Dan Nicolaescu <dann@ics.uci.edu>
7834
7835 * s/gnu-linux.h: Remove support for non-ELF and linux-1.x.
7836
7837 * Makefile.in (GNUC): Remove support for gcc-1.x.
7838
78392008-02-10 Richard Stallman <rms@gnu.org>
7840
7841 * lisp.h (ASET): Use AREF, not ASLOT.
7842
78432008-02-10 Stefan Monnier <monnier@iro.umontreal.ca>
7844
7845 * lisp.h (ASET): Check bounds.
7846
78472008-02-10 Glenn Morris <rgm@gnu.org>
7848
7849 * buffer.c (mode-name): Doc fix.
7850
78512008-02-09 Dan Nicolaescu <dann@ics.uci.edu>
7852
7853 * Makefile.in:
7854 * emacs.c:
7855 * gmalloc.c:
7856 * keyboard.c:
7857 * lisp.h:
7858 * m/ibm370aix.h:
7859 * process.c:
7860 * regex.c:
7861 * s/hpux.h:
7862 * sysdep.c:
7863 * sysselect.h:
7864 * systty.h:
7865 * unexec.c:
7866 * w32term.c:
7867 * xsmfns.c:
7868 * xterm.c: Remove code that deals with obsolete variables.
7869
7870 * s/msdos.h (DONT_NEED_ENVIRON): Don't define.
7871
7872 * ecrt0.c: Replace the DONT_NEED_ENVIRON test with MSDOS test,
7873 nothing else needs it anymore.
7874
78752008-02-09 Eli Zaretskii <eliz@gnu.org>
7876
7877 * buffer.h (FETCH_CHAR_AS_MULTIBYTE): Use unibyte_to_multibyte_table
7878 instead of unibyte_char_to_multibyte.
7879
78802008-02-09 Dan Nicolaescu <dann@ics.uci.edu>
7881
7882 * s/gnu-linux.h: Remove commented out code.
7883
7884 * unexec.c: Remove references to obsolete variable COFF_ENCAPSULATE.
7885
7886 * Makefile.in: Update what RMS says about using autoconf.
7887 (C_COMPILER, COFF_ENCAPSULATE, MAKE_PARALLEL): Remove obsolete variable.
7888 (C_SWITCH_MACHINE_1, C_SWITCH_SYSTEM_1, C_SWITCH_SITE_1)
7889 (C_SWITCH_X_SITE_1, C_SWITCH_X_MACHINE_1)
7890 (C_SWITCH_X_SYSTEM_1): Move invariant code outside conditional.
7891
78922008-02-08 Stefan Monnier <monnier@iro.umontreal.ca>
7893
7894 * keymap.c (Fkey_description): Move side effect outside of macro call.
7895
7896 * xfaces.c (Finternal_make_lisp_face):
7897 * keyboard.c (add_command_key, parse_menu_item): Use ASET.
7898
7899 * fontset.c (free_face_fontset): Use FONTSET_FROM_ID.
7900 (syms_of_fontset): Use ASET.
7901
7902 * fns.c (concat): Move side effect outside of macro call.
7903 (hash_clear): Use ASET.
7904
79052008-02-08 Richard Stallman <rms@gnu.org>
7906
7907 * frame.c (Fdelete_frame): If FORCE, don't call hooks.
7908 If FORCE, and frame has a surrogate minibuffer for another frame,
7909 delete the other frame first.
7910
79112008-02-07 Timo Savola <timo.savola@iki.fi>
7912
7913 * xterm.c (x_detect_focus_change): Handle embed client message.
7914 (handle_one_xevent): Ditto.
7915 (handle_one_xevent): If embedded and we get a button press/release,
7916 request focus.
7917 (xembed_set_info, xembed_send_message): New functions.
7918 (x_make_frame_visible): Call xembed_set_info if embedded.
7919 (x_make_frame_invisible): Call xembed_set_info if embedded.
7920 (x_term_init): Initialize Xatom_XEMBED.
7921 (x_make_frame_visible): Check for FRAME_X_EMBEDDED_P also.
7922 (x_iconify_frame): Ditto.
7923
7924 * xterm.h (struct x_display_info): Add AtomXatom_XEMBED.
7925 (enum xembed_info, enum xembed_message, enum xembed_focus)
7926 (enum xembed_modifier, enum xembed_accelerator): New.
7927 (xembed_set_info, xembed_send_message): Declare.
7928 (FRAME_X_EMBEDDED_P): New.
7929
7930 * gtkutil.c (xg_create_frame_widgets): If frame is embedded, call
7931 gtk_plug_new.
7932
7933 * xfns.c (Fx_create_frame): Do not override the explicitly set parent
7934 window ID of a frame.
7935 (x_window): Reparent frame if embedded.
7936 (Fx_create_frame): Don't set border width if embedded.
7937
7938 * emacs.c (USAGE3): Add --parent-id.
7939 (standard_args): Ditto.
7940
79412008-02-07 Jan Djärv <jan.h.d@swipnet.se>
7942
7943 * coding.c (DECODE_EMACS_MULE_COMPOSITION_CHAR): Use "do...while (0)".
7944
79452008-02-07 Jim Meyering <meyering@redhat.com>
7946
7947 Use "do...while (0)", not "if (1)...else" in macro definitions.
7948 The latter provokes a warning from gcc about the empty else, when
7949 followed by ";". Also, without that trailing semicolon, it would
7950 silently swallow up any following statement.
7951 * syntax.h (SETUP_SYNTAX_TABLE)
7952 (SETUP_SYNTAX_TABLE_FOR_OBJECT): Likewise.
7953 * buffer.h (DECODE_POSITION): Likewise.
7954 * character.h (FETCH_STRING_CHAR_ADVANCE): Likewise.
7955 (FETCH_STRING_CHAR_AS_MULTIBYTE_ADVANCE): Likewise.
7956 (FETCH_STRING_CHAR_ADVANCE_NO_CHECK): Likewise.
7957 (FETCH_CHAR_ADVANCE): Likewise.
7958 (FETCH_CHAR_ADVANCE_NO_CHECK): Likewise.
7959
79602008-02-07 Jim Meyering <meyering@redhat.com>
7961
7962 * lread.c [lint]: Don't include <sys/inode.h>.
7963
79642008-02-07 Stefan Monnier <monnier@iro.umontreal.ca>
7965
7966 * xselect.c (x_handle_dnd_message):
7967 * xmenu.c (digest_single_submenu, xmenu_show):
7968 * xdisp.c (with_echo_area_buffer_unwind_data)
7969 (format_mode_line_unwind_data, unwind_format_mode_line)
7970 (display_menu_bar):
7971 * eval.c (Ffetch_bytecode):
7972 * doc.c (store_function_docstring):
7973 * ccl.c (resolve_symbol_ccl_program, ccl_get_compiled_code)
7974 (Fccl_execute, Fccl_execute_on_string, Fregister_code_conversion_map):
7975 * buffer.c (add_overlay_mod_hooklist): Use ASET.
7976
79772008-02-07 Kenichi Handa <handa@m17n.org>
7978
7979 * ftxfont.c (ftxfont_open): Don't set
7980 dpyinfo->smallest_font_height and dpyinfo->smallest_char_width to 0.
7981
7982 * ftfont.c (ftfont_open): Fix previous change.
7983
79842008-02-06 Jason Rumney <jasonr@gnu.org>
7985
7986 * w32font.c (w32font_text_extents): Fill in lbearing metric.
7987 Use cached metrics for ASCII characters.
7988 (w32font_open_internal): Don't set font's owning_frame.
7989 Cache metrics for ASCII characters.
7990
7991 * w32font.h (struct w32font_info): Add ascii_metrics.
7992 Remove owning_frame.
7993
79942008-02-06 Kenichi Handa <handa@ni.aist.go.jp>
7995
7996 * xdisp.c (x_produce_glyphs): Don't set it->ascent and it->descent
7997 to negative value.
7998
7999 * ftxfont.c (ftxfont_draw): Use s->font_info, not face->font_info.
8000
8001 * ftfont.c (ftfont_open): Fix calculation of font->font.average_width.
8002
8003 * charset.c (syms_of_charset): Set QCtest and Qeq.
8004
80052008-02-06 Stefan Monnier <monnier@iro.umontreal.ca>
8006
8007 * process.c (Fstart_process):
8008 * callproc.c (Fcall_process): Handle the case where
8009 Funhandled_file_name_directory returns nil.
8010
8011 * font.h (enum lgstring_indices, enum lglyph_indices): New enums.
8012 (LGSTRING_SLOT, LGSTRING_SET_SLOT): New macros.
8013 * font.c (check_gstring): Use them and AREF to access the vector before
8014 we know it's really a gstring.
8015 (Ffont_shape_text): Fix typo.
8016 (Ffont_shape_text, Ffont_otf_alternates): Fix up int/Lisp_Oject mixups.
8017
8018 * composite.h (Fcompose_region_internal, Fcompose_string_internal):
8019 Declare.
8020
8021 * chartab.c (make_sub_char_table): Remove noop-yet-incorrect statement.
8022
80232008-02-05 Jason Rumney <jasonr@gnu.org>
8024
8025 * w32font.c (w32font_open_internal): Fill min_width with tmAveCharWidth.
8026 Set smallest_font_height and smallest_char_width in display info.
8027
80282008-02-05 Kenichi Handa <handa@ni.aist.go.jp>
8029
8030 * coding.c (decode_eol): Pay attention to coding->dst_multibyte.
8031
80322008-02-05 Miles Bader <miles@gnu.org>
8033
8034 * xfaces.c (get_lface_attributes, merge_named_face)
8035 (lookup_named_face, lookup_derived_face, realize_named_face):
8036 Revert 2008-02-01 change by cyd@stupidchicken.com.
8037
80382008-02-04 Kenichi Handa <handa@ni.aist.go.jp>
8039
8040 * fontset.c (Ffontset_info): Handle the case of inhibitting the
8041 fallback fonts.
8042 (Ffontset_info) [USE_FONT_BACKEND]: Fix getting of opened font names.
8043
80442008-02-04 Jason Rumney <jasonr@gnu.org>
8045
8046 * w32font.c (w32font_open_internal): Use font_unparse_fcname to
8047 set full_name.
8048 (w32font_open_internal): Use xmalloc, xrealloc, xfree.
8049
80502008-02-03 Jason Rumney <jasonr@gnu.org>
8051
8052 * makefile.w32-in (OBJ1): Include font.o here.
8053 (FONTOBJ) [USE_FONTBACKEND]: Instead of here.
8054
80552008-02-02 Jason Rumney <jasonr@gnu.org>
8056
8057 * makefile.w32-in (temacs): Bump EMHEAP to 21.
8058
80592008-02-01 Jason Rumney <jasonr@gnu.org>
8060
8061 * s/cygwin.h: Define VIRT_ADDR_VARIES.
8062
8063 * puresize.h [VIRT_ADDR_VARIES]: Don't include CYGWIN in condition.
8064
80652008-02-01 Andreas Schwab <schwab@suse.de>
8066
8067 * Makefile.in (shortlisp, lisp): Update for rename of
8068 ../lisp/language/myanmar.el.
8069
80702008-02-01 Chong Yidong <cyd@stupidchicken.com>
8071
8072 * xfaces.c (get_lface_attributes): Delete function.
8073 (merge_named_face, lookup_named_face, lookup_derived_face)
8074 (realize_named_face): Call lface_from_face_name directly, and use
8075 the fact that merge_face_vectors does not alter its FROM argument.
8076
80772008-02-01 Jason Rumney <jasonr@gnu.org>
8078
8079 * w32term.c (w32_read_socket) <WM_CHAR>: Decode non-Unicode
8080 input in the default locale. Handle non-Unicode multibyte input.
8081
80822008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
8083
8084 * fontset.c (reorder_font_vector): Exclude nil elements from the
8085 font group. Don't try multiple fonts.
8086 (fontset_font): Adjust for the above change.
8087 (Finternal_char_font): Return nil if the found font doesn't
8088 contain the character ch.
8089
8090 * Makefile.in (lisp, shortlisp): Add cham.el.
8091
80922008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
8093
8094 * font.h (FONTP): Make it return 1 also for a font-object.
8095
8096 * .gdbinit (xfontset): New function.
8097
8098 * font.c (font_find_for_lface): Check if the character C is
8099 supported or not only for the first font.
8100
8101 * fontset.c (reorder_font_vector): Fix typo.
8102 (fontset_find_font): Don't add a font-spec specifying a script.
8103 Use 0 (not Qt) for the indication of empty font-group. Change the
8104 format of RFONT-DEF. Return Qt if no font in the font-group
8105 support the character.
8106 (fontset_font): Adjust for the above change. If no font was
8107 found the character, remember that.
8108 (face_for_char): Adjust for the change of RFONT-DEF.
8109 (Fset_fontset_font): Allow nil for FONT-SPEC to explicitly specify
8110 no font for the target.
8111 (Finternal_char_font): Adjust for the change of RFONT-DEF.
8112
81132008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
8114
8115 * font.c (font_load_for_face): Handle the case that the font in
8116 face->lface is a string.
8117
81182008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
8119
8120 * xfaces.c (set_lface_from_font_and_fontset): Set the fontname in lface.
8121
81222008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
8123
8124 * xfaces.c (Finternal_set_lisp_face_attribute) [USE_FONT_BACKEND]:
8125 Fix previous change. If the frame is not on a window system,
8126 signal an error.
8127
81282008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
8129
8130 * coding.c (decode_coding_object, encode_coding_object): Adjust
8131 marker positions after conversion.
8132
8133 * lisp.h (struct Lisp_Marker): New member need_adjustment.
8134
81352008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
8136
8137 * font.c (font_find_for_lface): Fix the handling of the return
8138 value of font_has_char.
8139 (Ffont_shape_text): Fix previous change.
8140
8141 * fontset.c (FONTSET_REF_AND_RANGE): Delete it.
8142 (fontset_ref_and_range): Delete it.
8143 (fontset_find_font): Call char_table_ref_and_range instead of
8144 FONTSET_REF_AND_RANGE.
8145 (make_fontset): Don't setup font groups of Latin here.
8146 (Fset_fontset_font): Don't overwrite the setting of FONTSET_ASCII.
8147 (new_fontset_from_font): Make the specified font the default for
8148 all Latin characters.
8149
81502008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
8151
8152 * xfaces.c (Finternal_set_lisp_face_attribute): Check if the frame
8153 is on a window system before accessing the fontset of the frame.
8154
81552008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
8156
8157 * Makefile.in (lisp, shortlisp): Add kherm.el and myanmar.el.
8158
8159 * ftfont.c (ftfont_driver): Set ftfont_shape in ftfont_driver only
8160 when both HAVE_M17N_FLT and HAVE_LIBOTF are defined.
8161
8162 * font.c (Ffont_shape_text): If the font driver doesn't have a
8163 shaper function, make zero-width glyphs to have at least one-pixel
8164 width. Fix setting of `to' field of glyphs.
8165
81662008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
8167
8168 * ftfont.c (ftfont_drive_otf): Fix setting of FROM and TO slots of
8169 glyphs.
8170
8171 * font.h (struct font_driver): Improve docstring of member `shape'.
8172
81732008-02-01 Kenichi Handa <handa@m17n.org>
8174
8175 * composite.c (syms_of_composite): Fix docstring of
8176 auto-composition-function.
8177
8178 * font.h (LGLYPH_SIZE): New macro.
8179
8180 * font.c (Ffont_fill_gstring): Stop filling when a character not
8181 supported by the font is found.
8182 (Ffont_shape_text): When a shape callback function returns nil,
8183 try at most two more times with larger gstring.
8184 (Ffont_at): Fix getting of w. Call font_at with correct 5th argument.
8185
8186 * xdisp.c (handle_auto_composed_prop): Change the argument to
8187 auto-composition-function.
8188
8189 * ftfont.c (ftfont_encode_char): Use the macro FONT_INVALID_CODE.
8190 (ftfont_shape_by_flt): If an element of lgstring is nil, make a
8191 Lispy glyph and store it in the lgstring.
8192
8193 * xfont.c (xfont_encode_char): Use the macro FONT_INVALID_CODE.
8194
8195 * xftfont.c (xftfont_encode_char): Use the macro FONT_INVALID_CODE.
8196
81972008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
8198
8199 * font.c (Ffont_shape_text): Avoid unnecessary composition.
8200
8201 * fontset.c (Vfont_encoding_charset_alist): New variable.
8202 (syms_of_fontset): DEFVAR it.
8203 (reorder_font_vector, fontset_find_font): Optimize for the case of
8204 no need of reordering.
8205 (face_for_char): Map the charset property by
8206 Vfont_encoding_charset_alist.
8207
82082008-02-01 Jason Rumney <jasonr@gnu.org>
8209
8210 * w32font.c (logfonts_match): Don't check adstyle here.
8211 (font_matches_spec): Check here against physical font instead.
8212 (add_font_entity_to_list): Avoid some substitutions.
8213
8214 * font.c (font_parse_fcname): Default weight and slant to normal.
8215 (font_score): Prefer normal fonts if weight or slant unspecified.
8216 (font_score) [WINDOWSNT]: Scale weight difference down to closer
8217 match freetype scores.
8218
82192008-02-01 Jason Rumney <jasonr@gnu.org>
8220
8221 * w32font.c (w32font_text_extents): Don't use the frame stored in the
8222 font, as it may have been deleted.
8223 (w32_enumfont_pattern_entity): Map generic family to adstyle using
8224 most common hyphenless variation.
8225 (logfonts_match): Check generic family.
8226 (font_matches_spec): Don't check generic family here.
8227 (fill_in_logfont): Set generic family based on adstyle.
8228
8229 * w32font.h (w32font_get_cache): Update declaration.
8230
82312008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
8232
8233 * ftfont.c (ftfont_get_cache): Adjust the argument type.
8234
8235 * frame.c (x_set_font_backend): Don't call Fclear_font_cache.
8236 If none of the new drivers are available, call font_update_drivers
8237 with the old drivers.
8238
8239 * w32font.c (w32font_get_cache): Adjust the argument type.
8240
8241 * xfont.c (xfont_get_cache): Adjust the argument type.
8242
8243 * font.h (struct font_driver): Change argument type of get_cache.
8244
8245 * xftfont.c (xftfont_start_for_frame): Delete prototype.
8246
8247 * font.c (Ffont_get): Fix arguments to Fassoc.
8248 (font_prepare_cache, font_finish_cache, font_get_cache): New functions.
8249 (font_clear_cache): New function.
8250 (font_list_entities, font_matching_entity): Use font_get_cache.
8251 (font_update_drivers): Call font_clear_cache when finishing a driver.
8252
8253 * fontset.c (fontset_find_font): Fix previous change.
8254
82552008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
8256
8257 * xterm.c (x_check_font) [USE_FONT_BACKEND]: Don't access
8258 dpyinfo->font_table.
8259 (x_delete_display) [USE_FONT_BACKEND]: Likewise.
8260 (x_delete_terminal) [USE_FONT_BACKEND]: Likewise.
8261
8262 * font.c (font_at): Handle the case that the arg C is negative.
8263 Handle the unibyte case.
8264 (Ffont_at): Call font_at with the arg C -1.
8265
8266 * xdisp.c (handle_auto_composed_prop): Don't get a character at
8267 the position here, and call font_at with the arg C -1.
8268 Don't check the range of the existing composition at the point.
8269
82702008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
8271
8272 * fontset.c (fontset_add): New args charset_id and family.
8273 Change caller.
8274 (load_font_get_repertory, fontset_find_font): Assume that
8275 font_spec is always a font-spec object.
8276 (Fset_fontset_font): Always store a font-spec object in a fontset.
8277
8278 * xdisp.c (handle_auto_composed_prop): Use Fget_text_property
8279 instead of get_property_and_range.
8280
82812008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
8282
8283 * xftfont.c (struct xftfont_info): Delete the member ft_face.
8284 (xftfont_open): Don't keep locking face.
8285 (xftfont_close): Don't unlock face.
8286 (xftfont_anchor_point, xftfont_shape): Lock and unlock face.
8287
8288 * fontset.c (fontset_find_font): Don't prefer a font of
8289 supplementary charset.
8290
82912008-02-01 Kenichi Handa <handa@m17n.org>
8292
8293 * ftfont.c (struct OpenTypeSpec): Rename members script_tag to
8294 script, langsys_tag to langsys, new member script.
8295 (OTF_TAG_STR): Terminate by '\0'.
8296 (ftfont_get_open_type_spec): If :otf prop is is spec, Limit the
8297 listing to the script specified in that property. Fix arg to
8298 OTF_check_features.
8299
83002008-02-01 Jason Rumney <jasonr@gnu.org>
8301
8302 * w32font.h: New file.
8303
8304 * w32font.c: Include it.
8305 (struct w32font_info): Add owning_frame field. Move to w32font.h.
8306 (w32font_open): Set owning_frame.
8307 (w32font_text_extents): Use owning_frame.
8308 (struct font_callback_data): Add opentype_only field.
8309 (add_font_entity_to_list): Use it to filter fonts.
8310 Don't check against full name.
8311 (w32font_list_internal): New function.
8312 (w32font_list): Use it.
8313 (w32font_match_internal): New function.
8314 (w32font_match): Use it.
8315 (w32font_open_internal): New function.
8316 (w32font_open): Use it.
8317 (w32font_get_cache, w32font_close, w32font_has_char)
8318 (w32font_encode_char, w32font_text_extents, w32font_draw):
8319 Make non-static.
8320
8321 * makefile.w32-in (w32font.o): Depend on w32font.h.
8322
83232008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
8324
8325 * charset.c (Fdefine_charset_internal): Record a supplementary
8326 charset at the tail of Vcharset_order_list.
8327
8328 * font.c (Ffont_shape_text): Fix the return value.
8329
8330 * ftfont.c (OTF_SYM_TAG, OTF_TAG_STR): Fix argument names.
8331
8332 * xdisp.c (handle_auto_composed_prop): Fix previous change.
8333
83342008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
8335
8336 * ftfont.c (struct OpenTypeSpec): New struct.
8337 (OTF_SYM_TAG, OTF_TAG_STR): New macros.
8338 (ftfont_get_open_type_spec): New function.
8339 (ftfont_list) [HAVE_LIBOTF]: Check otf-spec property.
8340
8341 * lread.c (read1): Redo the previous change with checking Vpurify_flag.
8342
83432008-02-01 Jason Rumney <jasonr@gnu.org>
8344
8345 * w32font.c (add_font_entity_to_list): Compare only the beginning
8346 of full name.
8347
83482008-02-01 Kenichi Handa <handa@m17n.org>
8349
8350 * xdisp.c (handle_auto_composed_prop): Simplify the code.
8351 Never return HANDLED_RECOMPUTE_PROPS.
8352
83532008-02-01 Kenichi Handa <handa@m17n.org>
8354
8355 * font.c (font_gstring_produce): Delete it.
8356
8357 * composite.h (COMPOSITION_METHOD):
8358 Handle COMPOSITION_WITH_GLYPH_STRING.
8359
83602008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
8361
8362 * xfont.c (Qx): Delete.
8363 (syms_of_xfont): Don't initialize Qx.
8364
8365 * composite.h (enum composition_method):
8366 Define COMPOSITION_WITH_GLYPH_STRING unconditionally.
8367
83682008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
8369
8370 * xfaces.c [HAVE_WINDOW_SYSTEM]: Include "font.h" unconditionally.
8371 (choose_face_font): Accept new form of font-spec.
8372
8373 * frame.h (font_driver_list): Declare it unconditionally.
8374 (struct frame): Define members font_driver_list and font_data_list
8375 unconditionally.
8376
8377 * fontset.c: Include "font.h" unconditionally.
8378 (generate_ascii_font_name): Use font_parse_xlfd and font_unparse_xlfd.
8379 (Fset_fontset_font): Accept a font-spec object.
8380
8381 * font.c (font_unparse_xlfd): If pixel_size is zero, make the
8382 PIXEL_SIZE part a wild card.
8383
8384 * dispextern.h (struct glyph_string): Define members clip and
8385 num_clips unconditionally.
8386 (struct face): Define members font_info and extra unconditionally.
8387
8388 * ftfont.c (ftfont_open): Set members maybe_otf and otf of
8389 ftfont_info only when HAVE_LIBOTF is defined.
8390
83912008-02-01 Andreas Schwab <schwab@suse.de>
8392
8393 * xdisp.c (back_to_previous_visible_line_start): Fix type of beg
8394 and end.
8395
83962008-02-01 Jason Rumney <jasonr@gnu.org>
8397
8398 * w32font.c (w32font_driver): Add new fields.
8399
84002008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
8401
8402 * Makefile.in (ALL_CFLAGS): Add @M17N_FLT_CFLAGS@.
8403 (FONTSRC, FONTOBJ) [HAVE_WINDOW_SYSTEM]: Set them unconditionally.
8404 (LIBES): Add @M17N_FLT_CFLAGS@.
8405
8406 * composite.c (compose_text): Don't treat the new style
8407 composition specially.
8408
8409 * emacs.c (main): Call syms_of_font unconditionally.
8410
8411 * font.h (FONT_ENTITY_NOT_LOADABLE)
8412 (FONT_ENTITY_SET_NOT_LOADABLE): New macros.
8413 (LGSTRING_XXXX, LGLYPH_XXX): Adjust for the change of lispy gstring.
8414 (struct font_driver): New member shape.
8415 (font_registry_charsets): Extern it.
8416 (font_find_for_lface, font_prepare_composition): Adjust prototype.
8417 (font_otf_capability, font_drive_otf): Delete their externs.
8418
8419 * font.c [HAVE_M17N_FLT]: Include <m17n-flt.h>.
8420 (font_charset_alist, font_registry_charsets): Move from xfont.c
8421 and rename.
8422 (font_prop_validate_otf): New function.
8423 (font_property_table): Register it for QCotf.
8424 (DEVICE_DELTA, adjust_anchor, REPLACEMENT_CHARACTER)
8425 (font_drive_otf): Delete.
8426 (font_prepare_composition): New arg F. Adjust for the change of
8427 lispy gstring.
8428 (font_find_for_lface): New arg C.
8429 (font_load_for_face): Adjust for the change of font_find_for_lface.
8430 (Ffont_make_gstring, Ffont_fill_gstring): Adjust for the change of
8431 lispy gstring.
8432 (Ffont_shape_text): New function.
8433 (Fopen_font): If the font size is not given, use 12-pixel.
8434 (Ffont_at): New arg STRING.
8435 (syms_of_font): Initalize font_charset_alist.
8436 Declare Ffont_shape_text as a Lisp function. Call syms_of_XXfont
8437 conditionally.
8438
8439 * fontset.c (fontset_find_font) [USE_FONT_BACKEND]: Try multiple
8440 fonts of the same font-spec. Change the format of RFONT-DEF.
8441 (face_for_char, make_fontset_for_ascii_face, Finternal_char_font):
8442 Adjust for the change of RFONT-DEF.
8443 (Fset_fontset_font) [USE_FONT_BACKEND]: Handle new format of font-spec.
8444
8445 * ftfont.h: New file.
8446
8447 * ftfont.c: Don't include Freetype headers. Include "ftfont.h".
8448 (struct ftfont_info) [HAVE_LIBOTF]: New members maybe_otf and otf.
8449 (ftfont_open) [HAVE_LIBOTF]: Initialize the above members.
8450 (ftfont_driver) [HAVE_LIBOTF, HAVE_M17N_FLT]: Don't set
8451 font_otf_capability and font_drive_otf, set ftfont_shape.
8452 (ftfont_list): Adjust for the change of :otf property value.
8453 (struct MFLTFontFT) [HAVE_LIBOTF, HAVE_M17N_FLT]: New struct.
8454 (ftfont_get_glyph_id, ftfont_get_metrics, ftfont_check_otf)
8455 (adjust_anchor, ftfont_drive_otf, ftfont_shape_by_flt)
8456 (ftfont_shape) [HAVE_LIBOTF, HAVE_M17N_FLT]: New function.
8457 (DEVICE_DELTA) [HAVE_LIBOTF, HAVE_M17N_FLT]: New macro.
8458 (otf_gstring, gstring, m17n_flt_initialized): New variables.
8459
8460 * w32term.c (x_draw_composite_glyph_string_foreground):
8461 Adjust for the change of lispy gstring.
8462
8463 * xdisp.c (handle_composition_prop): Adjust for the change of
8464 lispy gstring. Call a function for auto-composition with the
8465 third arg it->window.
8466 (fill_composite_glyph_string): Adjust for the change of lispy string.
8467 (x_produce_glyphs): Adjust for the change of font_prepare_compositionl.
8468
8469 * xfaces.c (set_font_frame_param): Adjust for the change of
8470 font_find_for_lface.
8471
8472 * xfont.c (x_font_charset_alist): Move to font.c and rename.
8473 (xfont_registry_charsets): Likewise. Change caller.
8474 (syms_of_xfont): Don't handle x_font_charset_alist.
8475
8476 * xftfont.c: Include "ftfont.h".
8477 (struct xftfont_info) [HAVE_LIBOTF]: New members maybe_otf and otf.
8478 (xftfont_open) [HAVE_LIBOTF]: Initialize the above members.
8479 (xftfont_close) [HAVE_LIBOTF]: Close otf.
8480 (xftfont_shape) [HAVE_LIBOTF, HAVE_M17N_FLT]: New function.
8481 (syms_of_xftfont) [HAVE_LIBOTF, HAVE_M17N_FLT]:
8482 Set xftfont_driver.shape to xftfont_shape.
8483
8484 * xterm.c (x_draw_composite_glyph_string_foreground): Adjust for
8485 the change of lispy gstring.
8486
84872008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
8488
8489 * ftxfont.c (ftxfont_end_for_frame): Fix array indexing error.
8490
84912008-02-01 Jason Rumney <jasonr@gnu.org>
8492
8493 * w32font.c (w32font_draw): Fill background manually.
8494
84952008-02-01 Jason Rumney <jasonr@gnu.org>
8496
8497 * font.c (Qfontp): Remove unused symbol.
8498 (QCantialias): New symbol.
8499 (syms_of_font): Define it.
8500 (font_property_table): Set a validator for QCantialias.
8501
8502 * w32font.c (CLEARTYPE_QUALITY, CLEARTYPE_NATURAL_QUALITY):
8503 Define if not already.
8504 (QCfamily): Share with xfaces.c.
8505 (Qstandard, Qsubpixel, Qnatural): New symbols.
8506 (syms_of_w32font): Define them. Don't define QCfamily here.
8507 (w32_antialias_type, lispy_antialias_type): New functions.
8508 (w32_enumfont_pattern_entity): New arg requested_font.
8509 Set antialias parameter if non-default was requested.
8510 (fill_in_logfont): Fill in lfQuality if :antialias specified.
8511
85122008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
8513
8514 * lread.c (read1): Undo the previous change.
8515
85162008-02-01 CHENG Gao <chenggao@gmail.com> (tiny change)
8517
8518 * frame.c (Fdelete_frame): Call font_update_drivers only when
8519 USE_FONT_BACKEND is defined.
8520
85212008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
8522
8523 * font.h (struct font_bitmap): New member bits_per_pixel.
8524 (struct font_driver): New members start_for_frame and end_for_frame.
8525 (struct font_data_list): New struct.
8526 (font_put_frame_data, font_get_frame_data): Extern them.
8527
8528 * frame.h (struct frame): New member font_data_list.
8529
8530 * font.c (font_update_drivers): Call driver->start_for_frame and
8531 driver->end_for_frame at proper timings.
8532 (font_put_frame_data, font_get_frame_data): New functions.
8533 (Ffont_spec): Add usage in the docstring.
8534
8535 * frame.c (make_frame): Initialize f->font_data_list to NULL.
8536 (Fdelete_frame): Call font_update_drivers.
8537
8538 * xftfont.c (struct xftface_info): Delete the member xft_draw.
8539 (xftfont_prepare_face, xftfont_done_face): Adjust for the above change.
8540 (xftfont_get_xft_draw): New function.
8541 (xftfont_draw): Get XftDraw by xftfont_get_xft_draw.
8542 (xftfont_end_for_frame): New function.
8543 (syms_of_xftfont): Set xftfont_driver.end_for_frame.
8544
8545 * ftxfont.c (ftxfont_get_gcs): Rename from ftxfont_create_gcs.
8546 Change argument. Cache GCs in the per-frame data.
8547 (struct ftxfont_frame_data): New struct.
8548 (ftxfont_draw_bitmap): New arg gc_fore and flush.
8549 (ftxfont_prepare_face, ftxfont_done_face): Delete them.
8550 (ftxfont_draw): Get GCs by ftxfont_get_gcs. Reflect s->clip in GCs.
8551 (ftxfont_end_for_frame): New function.
8552 (syms_of_ftxfont): Set ftxfont_driver.end_for_frame.
8553
8554 * ftfont.c (ftfont_get_bitmap): Set bitmap->bits_per_pixel.
8555
85562008-02-01 Kenichi Handa <handa@m17n.org>
8557
8558 * xselect.c (Vselection_coding_system)
8559 (Vnext_selection_coding_system): Delete them.
8560 (syms_of_xselect): Don't declare selection-coding-system and
8561 next-selection-coding-system. They are declared in select.el.
8562
85632008-02-01 Jason Rumney <jasonr@gnu.org>
8564
8565 * w32term.h (WM_UNICHAR, UNICODE_NOCHAR): Define if not already.
8566
8567 * w32fns.c: Include imm.h.
8568 (get_composition_string_fn, get_ime_context_fn): New optional
8569 system functions.
8570 (globals_of_w32fns): Load them from imm32.dll.
8571 (ignore_ime_char): New flag.
8572 (w32_wnd_proc): Handle WM_UNICHAR, WM_IME_CHAR and
8573 WM_IME_ENDCOMPOSITION messages.
8574
8575 * w32term.c (w32_read_socket) [WM_UNICHAR]: Handle as
8576 MULTIBYTE_CHAR_KEYSTROKE_EVENT.
8577
85782008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
8579
8580 * lread.c (READCHAR): Call readchar with the 2nd arg NULL.
8581 (READCHAR_REPORT_MULTIBYTE): New macro.
8582 (readchar): New 2nd arg MULTIBYTE.
8583 (read1): Use READCHAR_REPORT_MULTIBYTE for the first read.
8584 Make symbol's name multibyte according to the multibyteness of the
8585 source.
8586
85872008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
8588
8589 * xfaces.c (face_for_overlay_string): Call lookup_face with
8590 correct arguments (fix of synching with the trunk).
8591
85922008-02-01 Kenichi Handa <handa@m17n.org>
8593
8594 * font.c (font_prop_validate_symbol, font_prop_validate_style)
8595 (font_prop_validate_non_neg, font_prop_validate_spacing):
8596 Delete argument prop_index.
8597 (font_property_table): Change arguments to validater. Change Callers.
8598 (font_lispy_object): Delete.
8599 (font_at): Use font_find_object instead fo font_lispy_object.
8600
86012008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
8602
8603 * fileio.c (Fexpand_file_name): Adjust multibyteness of directory
8604 and file names.
8605
86062008-02-01 Jason Rumney <jasonr@gnu.org>
8607
8608 * w32font.c (add_font_name_to_list): Avoid vertical fonts.
8609 (font_matches_spec): Remove debug output.
8610 (add_font_entity_to_list): Avoid using substituted fonts.
8611
86122008-02-01 Jason Rumney <jasonr@gnu.org>
8613
8614 * doc.c (Fsnarf_documentation):
8615 * Makefile.in (temacs${EXEEXT}, mostlyclean): Undo last change.
8616
86172008-02-01 Miles Bader <miles@gnu.org>
8618
8619 * dispextern.h (struct glyph_row): Only define "clip" field if
8620 HAVE_WINDOW_SYSTEM is defined.
8621
86222008-02-01 Stefan Monnier <monnier@iro.umontreal.ca>
8623
8624 Fix up multi-tty merge.
8625
8626 * xterm.c (handle_one_xevent): Remove duplicate code and fix up nesting
8627 and indentation.
8628
8629 * xfaces.c (free_realized_face, clear_face_gcs):
8630 Include font_done_for_face in the input_blocked section, just in case.
8631
8632 * xdisp.c (decode_mode_spec): Use terminal-local coding systems.
8633 (get_char_face_and_encoding): Undo last change and remove the *other*
8634 duplicate definition (i.e. keep the one that's better scoped and that
8635 includes code for the font-backend).
8636
8637 * terminal.c (create_terminal): Default keyboard_coding to
8638 `no-conversion' and terminal_coding to `undecided'.
8639
8640 * lread.c (read1): Use XSETPVECTYPE to set a pseudovector's tag.
8641
8642 * fontset.c (free_realized_fontsets): Check that the table entry does
8643 contain a fontset before trying to compare it to `base'.
8644
8645 * emacs.c (main): Move syms_of_data, syms_of_fileio, syms_of_alloc,
8646 syms_of_charset, and syms_of_coding earlier because init_window_once
8647 now needs Vcoding_system_hash_table to be setup.
8648
8649 * coding.h (default_buffer_file_coding): Remove.
8650
8651 * coding.c (default_buffer_file_coding): Remove.
8652 (Fterminal_coding_system, Fkeyboard_coding_system): Use ->id rather
8653 than ->symbol, and use the terminal-local coding system.
8654 (syms_of_coding): Don't setup the coding-systems that are not
8655 terminal-local.
8656 (Fdefine_coding_system_internal): Use XCAR/XCDR.
8657
8658 * chartab.c (Fmake_char_table, make_sub_char_table, copy_char_table):
8659 Use XSETPVECTYPE now that XSETCHAR_TABLE doesn't set the tag anymore.
8660
8661 * alloc.c (Fmake_char_table, make_sub_char_table): Remove. They're now
8662 in chartab.c and were re-added here by mistake.
8663 (Fpurecopy): Use XSETPVECTYPE after copying a COMPILED pseudovector.
8664
8665 * doc.c (Fsnarf_documentation):
8666 * Makefile.in (temacs${EXEEXT}, mostlyclean): Move buildobj.lst from
8667 src to etc.
8668
8669 * ChangeLog.10: Add mistakenly removed entry.
8670
86712008-02-01 Dan Nicolaescu <dann@ics.uci.edu>
8672
8673 * Makefile.in (fringe.o, minibuf.o): Fix dependencies.
8674
86752008-02-01 Miles Bader <miles@gnu.org>
8676
8677 * xdisp.c (get_char_face_and_encoding): Remove extraneous definition.
8678 Add extra args to FACE_FOR_CHAR.
8679
86802008-02-01 Kenichi Handa <handa@m17n.org>
8681
8682 * keymap.c (where_is_internal_1): If key is a cons, store the copy
8683 in sequence.
8684
8685 * chartab.c (map_sub_char_table, map_char_table): If the range
8686 contains just one character, call the function with that character
8687 even if the depth is not 3.
8688
86892008-02-01 Jason Rumney <jasonr@gnu.org>
8690
8691 * w32font.c (w32font_text_extents): Calculate metrics for the
8692 whole string.
8693
86942008-02-01 Jason Rumney <jasonr@gnu.org>
8695
8696 * w32xfns.c (get_next_msg): Consolidate WM_PAINT messages.
8697
86982008-02-01 Jason Rumney <jasonr@gnu.org>
8699
8700 * w32term.c (x_set_glyph_string_clipping): Use
8701 get_glyph_string_clip_rects.
8702 (x_set_glyph_string_clipping_exactly, x_draw_glyph_string):
8703 Adjust for the change of struct glyph_string.
8704
8705 * w32font.c (w32font_draw): Do clipping here.
8706
87072008-02-01 Kenichi Handa <handa@m17n.org>
8708
8709 * xftfont.c (xftfont_draw): Adjust for the change of struct
8710 glyph_string.
8711
8712 * xterm.c (x_set_glyph_string_clipping): Use
8713 get_glyph_string_clip_rects.
8714 (x_set_glyph_string_clipping_exactly, x_draw_glyph_string):
8715 Adjust for the change of struct glyph_string.
8716
8717 * xdisp.c (get_glyph_string_clip_rects): Reflect s->row->clip to
8718 the resulting clip(s}.
8719 (expose_overlaps): Add arg r. Change callers. Set it to
8720 row->clip temporarily.
8721 (expose_window): Redraw rows overlapping the exposed area.
8722
8723 * dispextern.h (struct glyph_row): New member clip.
8724 (struct glyph_string): Delete members clip_x, clip_y, clip_width,
8725 clip_height, new member clip, and num_clips.
8726
87272008-02-01 Kenichi Handa <handa@m17n.org>
8728
8729 * data.c (Fchar_or_string_p): Fix docstring.
8730
87312008-02-01 Kenichi Handa <handa@m17n.org>
8732
8733 * xftfont.c (xftfont_draw): If s->font_info != s->face->font_info,
8734 create a temporary XftDraw object.
8735
87362008-02-01 Kenichi Handa <handa@m17n.org>
8737
8738 * font.c (Ffontp): Fix docstring.
8739
8740 * coding.c (detect_coding_iso_2022): Don't treat SI/SO codes as a
8741 strong evidence of ISO-2022.
8742
87432008-02-01 Kenichi Handa <handa@m17n.org>
8744
8745 * abbrev.c (abbrev_check_chars): Use CHAR_TABLE_REF, not
8746 SYNTAX_ENTRY_FOLLOW_PARENT.
8747
87482008-02-01 Stefan Monnier <monnier@iro.umontreal.ca>
8749
8750 * fns.c (weak_hash_tables): Rename from Vweak_hash_tables and change
8751 its type.
8752 (make_hash_table, copy_hash_table, sweep_weak_hash_tables, init_fns):
8753 Update to the new type of weak_hash_tables and next_weak.
8754
8755 * lisp.h (struct Lisp_Hash_Table): Change next_weak from Lisp_Object to
8756 a plain C pointer to Lisp_Hash_Table.
8757
8758 * lisp.h (XGCTYPE, GC_HASH_TABLE_P, GC_NILP, GC_NUMBERP, GC_NATNUMP)
8759 (GC_INTEGERP, GC_SYMBOLP, GC_MISCP, GC_VECTORLIKEP, GC_STRINGP)
8760 (GC_CONSP, GC_FLOATP, GC_VECTORP, GC_OVERLAYP, GC_MARKERP)
8761 (GC_INTFWDP, GC_BOOLFWDP, GC_OBJFWDP, GC_BUFFER_OBJFWDP)
8762 (GC_BUFFER_LOCAL_VALUEP, GC_SOME_BUFFER_LOCAL_VALUEP)
8763 (GC_KBOARD_OBJFWDP, GC_PSEUDOVECTORP, GC_WINDOW_CONFIGURATIONP)
8764 (GC_PROCESSP, GC_WINDOWP, GC_SUBRP, GC_COMPILEDP, GC_BUFFERP)
8765 (GC_SUB_CHAR_TABLE_P, GC_CHAR_TABLE_P, GC_BOOL_VECTOR_P, GC_FRAMEP)
8766 (GC_EQ): Remove since they've been identical to their non-GC_
8767 alter-egos ever since the markbit was eradicated.
8768
8769 * alloc.c:
8770 * buffer.c:
8771 * buffer.h:
8772 * data.c:
8773 * fileio.c:
8774 * filelock.c:
8775 * fns.c:
8776 * frame.h:
8777 * lisp.h:
8778 * macterm.c:
8779 * print.c:
8780 * process.c:
8781 * w32fns.c:
8782 * w32menu.c:
8783 * w32term.c:
8784 * xfns.c:
8785 * xmenu.c:
8786 * xterm.c: Replace uses of GC_* macros with the non-GC_ versions.
8787
87882008-02-01 Kenichi Handa <handa@m17n.org>
8789
8790 * chartab.c (map_sub_char_table): Make it work for the top-level
8791 char-table. Fix handling of parent char-table.
8792 (map_char_table): Adjust for the above change.
8793
87942008-02-01 Jason Rumney <jasonr@gnu.org>
8795
8796 * w32font.c (Qgdi): Rename from Qw32.
8797
87982008-02-01 Jason Rumney <jasonr@gnu.org>
8799
8800 * w32bdf.c (get_quoted_string): Make function static.
8801
88022008-02-01 Kenichi Handa <handa@m17n.org>
8803
8804 * xftfont.c (xftfont_open): If one of font's ASCII glyph has
8805 bigger ascent and descent than those of the font, use them as
8806 font's ascent and descent.
8807
88082008-02-01 Kenichi Handa <handa@m17n.org>
8809
8810 * Makefile.in (${lispsource}international/charprop.el): Move this
8811 target within "#ifdef HAVE_UNIDATA" and "#endif".
8812
88132008-02-01 Kenichi Handa <handa@m17n.org>
8814
8815 * Makefile.in (lisp): Add ${lispsource}language/tai-viet.el.
8816 (shortlisp): Add ../lisp/language/tai-viet.el.
8817
88182008-02-01 Ulrich Mueller <ulm@gentoo.org>
8819
8820 * Makefile.in (${lispsource}international/charprop.el): Depend on
8821 temacs${EXEEXT}.
8822
88232008-02-01 Jason Rumney <jasonr@gnu.org>
8824
8825 * w32font.c (w32font_close): Delete the GDI font object.
8826
8827 * w32menu.c: Include character.h.
8828
8829 * w32proc.c: Likewise.
8830
8831 * w32select.c: Likewise.
8832
8833 * makefile.w32-in (w32proc.o): Depend on character.h.
8834
88352008-02-01 Jason Rumney <jasonr@gnu.org>
8836
8837 * w32fns.c (syms_of_w32fns): Use DEFSYM macro.
8838
8839 * w32menu.c (syms_of_w32menu): Likewise.
8840
8841 * w32proc.c (syms_of_ntproc): Likewise.
8842
8843 * w32select.c (syms_of_w32select): Likewise.
8844
8845 * w32term.c (syms_of_w32term): Likewise.
8846
88472008-02-01 Jason Rumney <jasonr@gnu.org>
8848
8849 * w32font.c (w32font_draw): Delete brush after using it.
8850
88512008-02-01 Jason Rumney <jasonr@gnu.org>
8852
8853 * w32font.c (w32font_open): Don't set font_idx.
8854 (w32font_text_extents): Try GetTextExtentPoint32W before defaulting
8855 to font settings.
8856 (w32font_draw): Fill background explicitly.
8857
88582008-02-01 Jason Rumney <jasonr@gnu.org>
8859
8860 * w32term.c (w32_initialize): Don't call w32font_initialize.
8861
8862 * w32font.c (w32font_info): Remove subranges.
8863 (QCsubranges, Qmodern, Qswiss, Qroman): Remove.
8864 (QCfamily, Qmonospace, Qsans_serif, Qmono, Qsans, Qsans__serif)
8865 (Qraster, Qoutline, Qlatin, Qgreek, Qcoptic, Qcyrillic, Qarmenian)
8866 (Qhebrew, Qarabic, Qsyriac, Qnko, Qthaana, Qdevanagari, Qbengali)
8867 (Qgurmukhi, Qgujarati, Qoriya, Qtamil, Qtelugu, Qkannada)
8868 (Qmalayalam, Qsinhala, Qthai, Qlao, Qtibetan, Qmyanmar, Qgeorgian)
8869 (Qhangul, Qethiopic, Qcherokee, Qcanadian_aboriginal, Qogham)
8870 (Qrunic, Qkhmer, Qmongolian, Qsymbol, Qbraille, Qhan)
8871 (Qideographic_description, Qcjk_misc, Qkana, Qbopomofo, Qkanbun)
8872 (Qyi, Qbyzantine_musical_symbol, Qmusical_symbol, Qmathematical):
8873 New symbols.
8874 (font_callback_data): New struct.
8875 (w32font_list, w32font_match): Use it.
8876 (w32font_open): Don't populate subranges.
8877 (w32font_has_char): Use script Lisp symbols, not subrange bitmask.
8878 (w32font_encode_char): Always return unicode code-point as-is.
8879 (w32font_text_extents): Supply a transformation matrix to
8880 GetGlyphOutline. Never look up by glyph index. Avoid looping
8881 twice. Use unicode version of GetTexExtentPoint32 instead of
8882 glyph index version.
8883 (set_fonts_frame): Remove.
8884 (w32_enumfont_pattern_entity): Add frame parameter, use it to
8885 set frame parameter. Use backward compatible fake foundries.
8886 Save generic family in extra slot under QCfamily. Make width slot
8887 constant. Save QCspacing value. Save list of scripts instead of
8888 binary subranges.
8889 (w32_generic_family, logfonts_match, font_matches_spec): New functions.
8890 (add_font_entity_to_list): Use font_callback_data struct. Filter
8891 unwanted fonts.
8892 (add_one_font_entity_to_list): Use font_callback_data struct.
8893 (w32_registry): Default to iso10646_1.
8894 (fill_in_logfont): Use dpi from extra slot. Don't bother with
8895 string font registries. Don't fill in font name if it is a generic
8896 family name, fill family instead. Use spacing, family and script
8897 extra info to fill pitch, family and charset fields.
8898 (list_all_matching_fonts): Use font_callback_data struct.
8899 (unicode_range_for_char): Remove.
8900 (font_supported_scripts): New function.
8901 (w32font_initialize): Remove.
8902 (syms_of_w32font): Update which symbols are defined.
8903
89042008-02-01 Jason Rumney <jasonr@gnu.org>
8905
8906 * font.c (font_pixel_size): Reverse assq_no_quit args.
8907
8908 * w32term.h (FONT_WIDTH): Report max width, not average.
8909 (FONT_MAX_WIDTH): Remove.
8910 (FONT_AVG_WIDTH): New macro.
8911
8912 * xfaces.c (Fx_list_fonts) [WINDOWSNT]: Remove Windows only
8913 redefinition of FONT_WIDTH.
8914
8915 * w32term.c (x_font_min_bounds): Use FONT_AVG_WIDTH.
8916 (w32_cache_char_metrics): Use FONT_WIDTH.
8917
8918 * w32fns.c (w32_load_system_font, w32_list_fonts): Use FONT_AVG_WIDTH.
8919
89202008-02-01 Jason Rumney <jasonr@gnu.org>
8921
8922 * w32font.c (w32font_open): Make lfHeight negative.
8923
8924 * w32fns.c (x_default_font_parameter): Use new style font name.
8925 (Fx_create_frame, x_create_tip_frame): Initialize resx and resy.
8926
89272008-02-01 Jason Rumney <jasonr@gnu.org>
8928
8929 * w32font.c (QCsubranges): New symbol.
8930 (w32font_open, w32font_has_char): Get subranges from subproperty
8931 of extra.
8932 (w32_enumfont_pattern_entity): Set subranges as subproperty of extra.
8933 (syms_of_w32font): Define :subranges symbol.
8934
8935 * font.c (font_put_extra): Expose externally.
8936
8937 * font.h (font_put_extra): Move declaration from font.c.
8938
8939 * font.c (Ffont_get): Use font driver to determine otf capability.
8940 (adjust_anchor): Check if driver defines anchor_point before using.
8941
8942 * w32font.c (w32font_open): Handle size, height and pixel_size better.
8943 (w32font_draw): Use options.
8944 (w32_enumfont_pattern_entity): Set size to 0 for scalable fonts.
8945 Fix detection of truetype fonts.
8946 (registry_to_w32_charset): Handle charsets other than iso8859-1
8947 expressed as lisp symbols.
8948 (w32_registry): Express charset as lisp symbol.
8949 (fill_in_logfont): Reverse pixel and point height logic.
8950 Don't set width here. Set quality to default.
8951
8952 * w32fns.c (w32_load_system_font): Fix detecting FIXED_PITCH fonts.
8953 (x_to_w32_font): Fill in lfPitchAndFamily correctly.
8954
8955 * xterm.c (x_draw_glyph_string_foreground) [USE_FONT_BACKEND]:
8956 Remove redundant loop and allocation.
8957
8958 * makefile.w32-in (font.o, w32font.o): New objects.
8959 (fontset.o, xdisp.o, xfaces.o, w32fns.o, w32term.o): Depend on font.h.
8960 (FONTOBJ): New group of objects conditioned on USE_FONT_BACKEND.
8961
8962 * xdisp.c (fill_composite_glyph_string): Make the first arg to
8963 STORE_XCHARB a valid l-value.
8964
8965 * w32term.c (w32_native_per_char_metric): Swap width and rbearing
8966 calculations for non-Truetype fonts.
8967 (x_draw_glyph_string): Sync with xterm.c.
8968 (x_draw_glyph_string_foreground) [USE_FONT_BACKEND]:
8969 Remove redundant code.
8970 (w32_initialize) [USE_FONT_BACKEND]: Call w32font_initialize.
8971
8972 * w32term.h (w32_output_data) [USE_FONT_BACKEND]: Add fontp member.
8973 (FRAME_FONT_OBJECT) [USE_FONT_BACKEND]: New macro from xterm.h.
8974
8975 * w32fns.c [USE_FONT_BACKEND]: Port font backend changes from xfns.c.
8976 (x_to_w32_charset, w32_to_x_charset): Expose externally.
8977
8978 * w32font.c: New file for w32 font backend.
8979
89802008-02-01 Kenichi Handa <handa@m17n.org>
8981
8982 * term.c: Don't include "buffer.h" twice.
8983
89842008-02-01 Kenichi Handa <handa@m17n.org>
8985
8986 * character.c (Funibyte_string): New function.
8987 (syms_of_character): Defsubr it.
8988
89892008-02-01 Jason Rumney <jasonr@gnu.org>
8990
8991 * w32term.c [USE_FONT_BACKEND]:
8992 (x_get_font_repertory, note_mouse_movement, x_set_mouse_face_gc)
8993 (x_set_glyph_string_clipping, x_set_glyph_string_clipping_exactly)
8994 (x_draw_glyph_string, x_draw_glyph_string_foreground)
8995 (x_draw_composite_glyph_string_foreground, x_new_fontset2)
8996 (x_free_frame_resources): Sync with xterm.c.
8997
89982008-02-01 Andreas Schwab <schwab@suse.de>
8999
9000 * lread.c (read1): Use CHAR_TABLE_STANDARD_SLOTS to validate
9001 char-table size.
9002
90032008-02-01 Kenichi Handa <handa@m17n.org>
9004
9005 * font.c (check_otf_features): Define it regardless of HAVE_LIBOTF.
9006
90072008-02-01 Kenichi Handa <handa@m17n.org>
9008
9009 * ftfont.c (ftfont_driver): Delete font_otf_gsub and
9010 font_otf_gpos, add font_drive_otf.
9011
9012 * fontset.c (fontset_find_font): Pay attention to font size
9013 specified for a font.
9014 (reorder_font_vector): Check contents of font_def.
9015
9016 * font.c (struct otf_list): Delete it.
9017 (otf_list): Make it a lisp variable.
9018 (otf_open): Use lispy otf_list.
9019 (generate_otf_features): Rename from parse_gsub_gpos_spec.
9020 (check_otf_features): New function.
9021 (font_otf_DeviceTable, font_otf_ValueRecord, font_otf_Anchor):
9022 New functions.
9023 (font_drive_otf): New function merging font_otf_gsub and
9024 font_otf_gpos.
9025 (font_open_for_lface): New arg spec. Change argument order.
9026 (font_load_for_face): Adjust for the change of font_open_for_lface.
9027 (Ffont_drive_otf): New function merging Ffont_otf_gsub and
9028 Ffont_otf_gpos.
9029 (syms_of_font): Staticpro otf_list. Delete defsubr of
9030 Sfont_otf_gsub and Sfont_otf_gpos. Defsubr Sfont_drive_otf.
9031
9032 * xfaces.c (set_font_frame_param): Adjust for the change of
9033 font_open_for_lface.
9034
9035 * font.h (font_open_for_lface): Adjust prototype.
9036 (struct font_driver): Delete members otf_gsub and otf_gpos, add
9037 member otf_drive.
9038 (font_otf_gsub, font_otf_gpos): Delete externs.
9039 (font_drive_otf): Extern it.
9040
90412008-02-01 Kenichi Handa <handa@m17n.org>
9042
9043 * font.c (font_at): If the window W is not on a window system,
9044 return Qnil.
9045
9046 * coding.c (produce_chars, encode_coding): Don't call
9047 insert_from_gap if no characters to produce.
9048
90492008-02-01 Kenichi Handa <handa@m17n.org>
9050
9051 * fontset.c (free_realized_fontsets): Avoid unnecessary call of
9052 Fclear_face_cache.
9053
9054 * xfaces.c (face_for_font): Check also face->font==font->font.font.
9055
90562008-02-01 Miles Bader <miles@gnu.org>
9057
9058 * emacs.c (main): Change default value of `enable_font_backend' to 1.
9059 Parse "--disable-font-backend" option.
9060 (standard_args): Add "--disable-font-backend" option.
9061
90622008-02-01 Kenichi Handa <handa@m17n.org>
9063
9064 * fontset.c (fontset_find_font): New function.
9065 (fontset_font): Use fontset_find_font.
9066 (make_fontset_for_ascii_face): Don't set face ID in rfont_def.
9067 Register the specified font for all Latin characters.
9068 (new_fontset_from_font): Register the specified font for all Latin
9069 characters.
9070 (dump_fontset): For a realized fontset, include the base fontset
9071 name in the returned vector.
9072
90732008-02-01 Kenichi Handa <handa@m17n.org>
9074
9075 * character.h (CHAR_STRING): Cast C to unsigned on calling
9076 char_string.
9077
9078 * character.c (char_string): Type of arg C changed to unsigned.
9079 Signal an error if C is an invalid character code.
9080
9081 * editfns.c (general_insert_function, Fchar_to_string):
9082 Use CHARACTERP, not INTEGERP.
9083
90842008-02-01 Kenichi Handa <handa@m17n.org>
9085
9086 * character.h (MIN_MULTIBYTE_LEADING_CODE)
9087 (MAX_MULTIBYTE_LEADING_CODE): New macros.
9088
9089 * regex.c (analyse_first): Fix for multibyte characters in "case
9090 charset:" and "case categoryspec:".
9091
90922008-02-01 Andreas Schwab <schwab@suse.de>
9093
9094 * Makefile.in (LIBES): Move standard libraries to the end.
9095
90962008-02-01 Kenichi Handa <handa@m17n.org>
9097
9098 * alloc.c (Fgarbage_collect): If nextb->text->inhibit_shrinking is
9099 nonzero, don't shrink the buffer nextb.
9100
9101 * buffer.h (struct buffer_text): New member inhibit_shrinking.
9102
9103 * coding.c (coding_alloc_by_making_gap): New arg offset.
9104 (alloc_destination): Call coding_alloc_by_making_gap with the arg
9105 offset.
9106 (decode_coding_iso_2022): Update coding->safe_charsets.
9107 (decode_coding_gap): Temporarily set
9108 current_buffer->text->inhibit_shrinking to 1.
9109
91102008-02-01 Kenichi Handa <handa@m17n.org>
9111
9112 * xterm.c (x_draw_composite_glyph_string_foreground): Fix
9113 indexing into elements of s->cmp and s->char2b.
9114
91152008-02-01 Juanma Barranquero <lekktu@gmail.com>
9116
9117 * regex.c (RE_STRING_CHAR_AND_LENGTH) [! emacs]: Add missing arg `len'.
9118
91192008-02-01 Kenichi Handa <handa@m17n.org>
9120
9121 * regex.c (GET_CHAR_BEFORE_2, GET_CHAR_AFTER): Check the variable
9122 target_multibyte instead of multibyte.
9123 (re_match_2_internal): Call bcmp_translate with target_multibyte.
9124 (bcmp_translate): Change the argument name from multibyte to
9125 target_multibyte.
9126
91272008-02-01 Kenichi Handa <handa@m17n.org>
9128
9129 These changes are to compile a regexp into a pattern that can be
9130 used both for multibyte and unibyte targets.
9131
9132 * Makefile.in (search.o): Depend on charset.h.
9133
9134 * character.c (multibyte_char_to_unibyte_safe): New function.
9135
9136 * search.c: Include "charset.h".
9137 (compile_pattern_1): Delete argument multibyte. Don't set
9138 cp->buf.target_multibyte here. Set cp->buf.charset_unibyte.
9139 (compile_pattern): Don't compare cp->buf.target_multibyte.
9140 Compare cp->buf.charset_unibyte.
9141 (compile_pattern): Set cp->buf.target_multibyte.
9142
9143 * lisp.h (multibyte_char_to_unibyte_safe): Extern it.
9144
9145 * regex.h (struct re_pattern_buffer): New member charset_unibyte.
9146
9147 * regex.c (RE_STRING_CHAR, RE_STRING_CHAR_AND_LENGTH): New arg
9148 multibyte. Change callers.
9149 (RE_CHAR_TO_MULTIBYTE, RE_CHAR_TO_UNIBYTE): New macros.
9150 (MAKE_CHAR_MULTIBYTE, MAKE_CHAR_UNIBYTE): Delete. Change callers
9151 to use RE_CHAR_TO_MULTIBYTE and RE_CHAR_TO_UNIBYTE, respectively.
9152 (SETUP_ASCII_RANGE, SETUP_UNIBYTE_RANGE): New macros.
9153 (SETUP_MULTIBYTE_RANGE): Generate a more compact range_table.
9154 (regex_compile): Make the compiled pattern usable both for
9155 multibyte and unibyte targets.
9156 (analyse_first): Make the fastmap usable both for multibyte and
9157 unibyte targets.
9158 (TRANSLATE_VIA_MULTIBYTE): Delete.
9159 (re_match_2_internal): Pay attention to the case that the
9160 multibyteness of bufp and target may be different.
9161
91622008-02-01 Kenichi Handa <handa@m17n.org>
9163
9164 * xdisp.c (x_produce_glyphs): When a font is not found, make the
9165 empty box occupy at least one column width.
9166
91672008-02-01 Miles Bader <miles@gnu.org>
9168
9169 * Makefile.in: Remove redundant HAVE_XFT clause.
9170
91712008-02-01 Kenichi Handa <handa@m17n.org>
9172
9173 * xrdb.c (x_load_resources): Setup the default fontSet X resource.
9174
91752008-02-01 Kenichi Handa <handa@m17n.org>
9176
9177 * fontset.c (Finternal_char_font): Fix for the case of POSITION
9178 being nil.
9179
91802008-02-01 Kenichi Handa <handa@m17n.org>
9181
9182 * xftfont.c (xftfont_open): Call FcConfigSubstitute.
9183
91842008-02-01 Kenichi Handa <handa@m17n.org>
9185
9186 * xftfont.c (xftfont_open): Don't enable antialias explicitly.
9187
91882008-02-01 Kenichi Handa <handa@m17n.org>
9189
9190 * search.c (simple_search): Fix previous change.
9191
91922008-02-01 Kenichi Handa <handa@m17n.org>
9193
9194 * xftfont.c (ftfont_font_format): Extern declaration.
9195
9196 * frame.c (x_set_font): Fix the second arg to fs_query_fontset.
9197
9198 * xfont.c (xfont_driver): Initialize ftfont_driver.type by 0.
9199 (xfont_list): Don't directly use Lisp_Object as an operand of &&.
9200
9201 * ftfont.c (ftfont_driver): Initialize ftfont_driver.type by 0.
9202 (ftfont_font_format): Fix previous change.
9203
9204 * font.h (Ffont_xlfd_name): EXFUN it.
9205
9206 * font.c (font_parse_xlfd): Fix the array size of `f'.
9207 (register_font_driver): Use EQ to compare driver->type.
9208
9209 * xfns.c (xic_create_xfontset2) [USE_FONT_BACKEND]: New function.
9210 (create_frame_xic) [USE_FONT_BACKEND]: Call xic_create_xfontset2.
9211 (xic_set_xfontset) [USE_FONT_BACKEND]: Likewise.
9212
92132008-02-01 Kenichi Handa <handa@m17n.org>
9214
9215 * ftfont.c (ftfont_pattern_entity, ftfont_list_generic_family)
9216 (ftfont_list, ftfont_font_format): Check if FC_FONTFORMAT is defined.
9217
92182008-02-01 Kenichi Handa <handa@m17n.org>
9219
9220 * xfont.c (xfont_open): Set font->format.
9221
9222 * xftfont.c (xftfont_open): Set font->format.
9223
9224 * ftfont.c (ftfont_pattern_entity): Add fontformat in a pattern.
9225 (ftfont_list): Include FC_FONTFORMAT in FcObject.
9226 (ftfont_open): Set font->format.
9227 (ftfont_font_format): New function.
9228
9229 * font.h (struct font): New member format.
9230
9231 * font.c (Qopentype): New variable.
9232 (syms_of_font): Defsym it.
9233 (Fquery_font): Change the format of the last element of the return
9234 value.
9235
92362008-02-01 Kenichi Handa <handa@m17n.org>
9237
9238 * xfns.c (xic_create_xfontset): Try the default fontset name as a
9239 last resort.
9240
92412008-02-01 Kenichi Handa <handa@m17n.org>
9242
9243 * coding.c (detect_coding_charset): Fix detection of multi-byte
9244 charset.
9245
92462008-02-01 Bob Halley <halley@play-bow.org> (tiny change)
9247
9248 * ccl.c (ccl_driver): If DST is NULL, set ccl->produced to 0.
9249
92502008-02-01 Kenichi Handa <handa@m17n.org>
9251
9252 * xdisp.c (get_next_display_element): Set it->face_id for the
9253 first component of a composition.
9254 (x_produce_glyphs): Check if the font is changed or not for composition.
9255
92562008-02-01 Kenichi Handa <handa@m17n.org>
9257
9258 * fontset.c (Qlatin): New variable.
9259 (syms_of_fontset): Define it as a lisp symbol.
9260 (Fset_fontset_font): If TARGET is `latin', use FONT_SPEC for ASCII.
9261
92622008-02-01 Kenichi Handa <handa@m17n.org>
9263
9264 * font.c (font_unparse_fcname): Pay attention to the case that
9265 some of font property is a null string.
9266
92672008-02-01 Kenichi Handa <handa@m17n.org>
9268
9269 * term.c: Include "composite.h".
9270 (encode_terminal_code): Output all components of composition.
9271 Check the size of encode_terminal_src.
9272 (produce_glyphs): For composition, call produce_composite_glyph.
9273 (append_composite_glyph, produce_composite_glyph): New functions.
9274
9275 * xdisp.c (x_produce_glyphs): In handling composition, if a font
9276 is not found, get font_info from the current ascii face.
9277
92782008-02-01 Kenichi Handa <handa@m17n.org>
9279
9280 * fileio.c (Finsert_file_contents): On replacing, temporarily bind
9281 buffer-file-name to Qnil before calling insert_from_buffer.
9282
9283 * font.c (font_unparse_fcname): Pay attention to the case that
9284 foundry is a null string.
9285
92862008-02-01 Kenichi Handa <handa@m17n.org>
9287
9288 * ftfont.c (ftfont_list): Allow registry "unicode-sip".
9289
9290 * font.c (Qunicode_sip): New variable.
9291 (syms_of_font): Declare it as a Lisp symbol.
9292
9293 * font.h (Qunicode_sip): Extern it.
9294
92952008-02-01 Kenichi Handa <handa@m17n.org>
9296
9297 * composite.c (get_composition_id): Pay attention to TAB component.
9298
9299 * xterm.c (x_draw_composite_glyph_string_foreground): Don't draw
9300 TAB. Adjust for the change of s->char2b which always points to
9301 the first element of allocated memory.
9302
9303 * xftfont.c (xftfont_text_extents): Fix calculation of descent value.
9304
9305 * xdisp.c (handle_composition_prop): Set it->c to the first
9306 non-TAB component.
9307 (fill_composite_glyph_string): Change argument.
9308 (BUILD_COMPOSITE_GLYPH_STRING): Adjust for the above change.
9309 (x_produce_glyphs): Fix handling of left/right padding.
9310
93112008-02-01 Kenichi Handa <handa@m17n.org>
9312
9313 * coding.c (detect_coding_system): Fix for handling off
9314 inhibit_iso_escape_detection. Fix for the case that no coding
9315 system is defined for a specific coding category.
9316
93172008-02-01 Kenichi Handa <handa@m17n.org>
9318
9319 * font.c (font_matching_entity): Delete unused local var.
9320
9321 * xftfont.c (xftfont_open): Call XftDefaultSubstitute before
9322 opening a font.
9323
9324 * fileio.c (Finsert_file_contents): On recovering a file, assume
9325 Unix-like eol.
9326 (choose_write_coding_system): On auto-saving a file, force
9327 Unix-like eol.
9328
9329 * coding.c (setup_coding_system): Fix setting of
9330 coding->common_flags based on eol_type.
9331 (coding_inherit_eol_type): If PARENT is not nil, be sure to
9332 inherit from it.
9333
93342008-02-01 Kenichi Handa <handa@m17n.org>
9335
9336 * alloc.c (NSTATICS): Increas to 0x600.
9337
93382008-02-01 Kenichi Handa <handa@m17n.org>
9339
9340 * ftfont.c (ftfont_driver): Set ftfont_driver.match to ftfont_match.
9341 (ftfont_list): Don't check :name property.
9342 (ftfont_match): New function.
9343 (ftfont_pattern_entity): If the pattern doesn't contain
9344 FC_SPACING, don't assume FC_MONO.
9345
9346 * font.h (struct font_driver): New member `match'.
9347 (font_update_drivers): Adjust prototype.
9348
9349 * font.c (font_parse_fcname, font_parse_name): Don't change :name
9350 property of FONT.
9351 (LGSTRING_HEADER_SIZE, LGSTRING_GLYPH_SIZE, check_gstring): Define
9352 them unconditionally.
9353 (font_matching_entity): New function.
9354 (font_open_by_name): Try font_matching_entity if exact match is
9355 not found.
9356 (font_update_drivers): Delete the arg FONT. Return a list of
9357 actually used backends. Don't free faces, font caches here.
9358 Don't store data in frame parameters. Don't call x_set_font.
9359 (Ffont_spec): Store :name property as is.
9360 (Ffont_get): Check HAVE_LIBOTF before calling font_otf_capability.
9361 (Ffont_otf_gsub): Call font->driver->otf_gsub instead of font_otf_gsub.
9362 (Ffont_otf_gpos): Call font->driver->otf_gpos instead of font_otf_gpos.
9363 (Ffont_otf_alternates): Check if the driver has otf_gsub function.
9364 Call font->driver->otf_gsub instead of font_otf_gsub.
9365
9366 * frame.c (x_set_font_backend): Do more works that were done in
9367 font_update_drivers before.
9368
9369 * xfont.c (xfont_match): New function.
9370 (xfont_driver): Set xfont_driver.match to xfont_match.
9371 (xfont_draw): Set font in GC if necessary.
9372
9373 * ftxfont.c (ftxfont_match): New function.
9374 (syms_of_ftxfont): Set ftxfont_driver.match to ftxfont_match.
9375
9376 * xftfont.c (xftfont_match): New function.
9377 (syms_of_xftfont): Set xftfont_driver.match to xftfont_match.
9378
93792008-02-01 Kenichi Handa <handa@m17n.org>
9380
9381 * font.h (struct font): New member scalable.
9382 (struct font_driver): New arg ALTERANTE_SUBST to otf_gsub.
9383 (font_otf_gsub): Adjust prototype.
9384
9385 * font.c (font_otf_capability): Fix handling of the default langsys.
9386 (parse_gsub_gpos_spec): Change type to void. New arg nbytes.
9387 Check the contents of SPEC.
9388 (LGSTRING_HEADER_SIZE, LGSTRING_GLYPH_SIZE): New macros.
9389 (check_gstring): New function.
9390 (REPLACEMENT_CHARACTER): New macro.
9391 (font_otf_gsub): New arg alternate_subst. Be sure to set all
9392 glyph codes of GSTRING.
9393 (font_otf_gpos): Be sure to set all glyph codes of GSTRING.
9394 (font_prepare_composition): Set cmp->glyph_len.
9395 (font_open_entity): Set font->scalable.
9396 (Ffont_get): Handle :otf property.
9397 (Ffont_otf_gsub, Ffont_otf_gpos, Ffont_otf_alternates): New
9398 functions.
9399 (Fquery_font): Use font->font.full_name.
9400 (syms_of_font): Defsubr Sfont_otf_gsub, Sfont_otf_gpos, and
9401 Sfont_otf_alternates.
9402
9403 * ftfont.c (ftfont_open): Set font->font.full_name and
9404 font->font.name properly. Fix calculation of font->font.height
9405 and font->min_width.
9406
9407 * ftxfont.c (ftxfont_create_gcs): New function.
9408 (ftxfont_draw_bitmap): Fix arg to ftfont_driver.get_bitmap.
9409 (ftxfont_draw_backgrond): Fix filling region.
9410 (ftxfont_default_fid): New function.
9411 (ftxfont_open): Set xfont->fid to the return value of
9412 ftxfont_default_fid.
9413 (ftxfont_prepare_face): Use ftxfont_create_gcs to create GCs.
9414 (ftxfont_done_face): Free only GCs that are created by
9415 ftxfont_create_gcs.
9416 (ftxfont_draw): If face->gc != s->gc, create proper GCs.
9417
9418 * xterm.c (x_set_glyph_string_clipping_exactly) [USE_FONT_BACKEND]:
9419 Clip to src->width, etc (not src->clip_XXX).
9420
9421 * xfns.c (x_create_tip_frame) [USE_FONT_BACKEND]: Handle
9422 FontBackend frame parameter.
9423
94242008-02-01 Kenichi Handa <handa@m17n.org>
9425
9426 * font.h (struct font_driver_list): New member `on'.
9427 (Fclear_font_cache): EXFUN it.
9428 (font_update_drivers): Extern it.
9429
9430 * font.c (font_unparse_fcname): Fix typo (swidth->width).
9431 (font_list_entities): Check driver_list->on.
9432 (register_font_driver): Initalize `on' member to 0.
9433 (font_update_drivers): New function.
9434 (Fclear_font_cache): Check driver_list->on.
9435
9436 * frame.h (Qfont_backend): Extern it.
9437 (x_set_font_backend): Extern it.
9438
9439 * frame.c (Qfont_backend): New variable.
9440 (frame_parms): New element for font-backend.
9441 (x_set_font_backend): New function.
9442
9443 * xfns.c (Fx_create_frame) [USE_FONT_BACKEND]: Handle
9444 FontBackend frame parameter.
9445 (x_frame_parm_handlers) [USE_FONT_BACKEND]: New element
9446 x_set_font_backend.
9447
9448 * xfont.c (xfont_list): Don't try listing by :name property if the
9449 name is not for XLFD.
9450
94512008-02-01 Kenichi Handa <handa@m17n.org>
9452
9453 * font.h (LGLYPH_FROM, LGLYPH_TO, LGLYPH_SET_FROM)
9454 (LGLYPH_SET_TO): New macros.
9455 (LGLYPH_XOFF, LGLYPH_YOFF, LGLYPH_WADJUST): Check if adjustment
9456 element of G is vector or not.
9457 (font_at): Extern it.
9458
9459 * font.c: Include window.h.
9460 (font_lispy_object): New function.
9461 (font_prepare_composition): Check LGLYPH_FORM (g) to detect the
9462 end of valid glyph.
9463 (font_close_object): Fix getting (struct font *).
9464 (font_at): New function.
9465 (Ffont_get): If FONT is a font-object, get entity from it.
9466 (Ffont_make_gstring): Initialize elements of glyphs with nil.
9467 (Ffont_fill_gstring): Use macro LGSTRING_XXX and LGLYPH_XXX. Fix
9468 range check.
9469 (Ffont_at): New function.
9470 (syms_of_font): Defsubr Sfont_at.
9471
9472 * xdisp.c (it_props): Move the entry for Qauto_composed to just
9473 before the entry for Qcomposition.
9474 (handle_auto_composed_prop): Call auto-composition-function with 4 args.
9475 (handle_composition_prop) [USE_FONT_BACKEND]: Set it->face_id from
9476 the font in gstring.
9477 (fill_composite_glyph_string) [USE_FONT_BACKEND]: Check
9478 LGLYPH_FORM (g) to detect the end of valid glyph.
9479 (x_produce_glyphs) [USE_FONT_BACKEND]: Don't update it->face_id if
9480 we are composing with gstring.
9481
9482 * xterm.c (x_draw_composite_glyph_string_foreground) [USE_FONT_BACKEND]:
9483 Check if adjustment is vector or not.
9484
9485 * Makefile.in (font.o): Make it depends on window.h.
9486
94872008-02-01 Kenichi Handa <handa@m17n.org>
9488
9489 * xterm.c (x_draw_composite_glyph_string_foreground): Check if
9490 adjustment is vector or not.
9491
94922008-02-01 Miles Bader <miles@gnu.org>
9493
9494 * character.h (CHECK_CHARACTER): Redefine in terms of CHECK_TYPE.
9495
94962008-02-01 Kenichi Handa <handa@m17n.org>
9497
9498 * font.h (LGLYPH_XOFF, LGLYPH_YOFF, LGLYPH_WIDTH, LGLYPH_WADJUST)
9499 (LGLYPH_SET_WIDTH): Adjusted for the change of LGLYPH format.
9500 (LGLYPH_ADJUSTMENT, LGLYPH_SET_ADJUSTMENT): New macros.
9501
9502 * font.c (font_merge_old_spec): Treat '*' in foundry as a wild card.
9503 (DEVICE_DELTA): Fix typo.
9504 (font_otf_gpos, font_prepare_compositio): Adjust for the change of
9505 LGLYPH format.
9506
9507 * xterm.c (x_draw_composite_glyph_string_foreground): Adjust for
9508 the change of LGLYPH format.
9509
95102008-02-01 Kenichi Handa <handa@m17n.org>
9511
9512 * ftfont.c (ftfont_list): Fix typo.
9513 (ftfont_build_basic_charsets): Don't include letters with diacritics.
9514
95152008-02-01 Jan Djärv <jan.h.d@swipnet.se>
9516
9517 * xfaces.c (realize_non_ascii_face): Set face->extra to NULL.
9518
9519 * xftfont.c (xftfont_done_face): Call XftDrawDestroy only if
9520 xftface_info is non-NULL.
9521
95222008-02-01 Jan Djärv <jan.h.d@swipnet.se>
9523
9524 * ftfont.c (ftfont_list): Move misplaced #endif.
9525
95262008-02-01 Kenichi Handa <handa@m17n.org>
9527
9528 * ftfont.c (ftfont_list): Pay attention to the case that
9529 FC_CAPABILITY is not defined.
9530
95312008-02-01 Kenichi Handa <handa@m17n.org>
9532
9533 * xftfont.c (xftfont_open): Set charset related members to -1.
9534
9535 * ftfont.c (ftfont_list): Handle QCotf property. Fix handling of
9536 QCname.
9537 (ftfont_open): Set charset related members to -1.
9538
9539 * fontset.c (Votf_script_alist): New variable.
9540 (syms_of_fontset): Initialize it.
9541 (fontset_font): Delete unused variable.
9542
9543 * fontset.h (Votf_script_alist): Extern it.
9544
9545 * font.c (font_find_for_lface): Optimize code.
9546
9547 * font.h (font_close_object, font_merge_old_spec): Extern them.
9548
95492008-02-01 Kenichi Handa <handa@m17n.org>
9550
9551 * font.c (QCscalable, Qc, Qm, Qp, Qd): New variables.
9552 (syms_of_font): Initialize them.
9553 (font_pixel_size): Allow float value in dpi.
9554 (font_prop_validate_type): Delete.
9555 (font_prop_validate_symbol, font_prop_validate_style): Change argument.
9556 Change caller.
9557 (font_prop_validate_non_neg): Rename from font_prop_validate_size.
9558 (font_prop_validate_extra): Delete.
9559 (font_prop_validate_spacing): New function.
9560 (font_property_table): Add elements for all known properties.
9561 (get_font_prop_index): Rename from check_font_prop_name. New
9562 argument FROM. Change caller.
9563 (font_prop_validate): Validate all known properties.
9564 (font_put_extra): Delete argument force. Change caller.
9565 (font_expand_wildcards): Make it static. Fix the way of shrinking
9566 the possible range.
9567 (font_parse_xlfd): Delete argument merge. Fix handling of RESX,
9568 RESY, SPACING, and AVGWIDTH. Don't validate property values here.
9569 Change caller.
9570 (font_unparse_xlfd): Handle dpi, spacing, and scalable properties.
9571 (font_parse_fcname): Delete argument merge. Fix parsing of point
9572 size. Don't validate properties values here. Change caller.
9573 (font_unparse_fcname): Handle dpi, spacing, and scalable properties.
9574 (font_open_by_name): Delete unused variable.
9575 (Ffont_spec): Likewise. Validate property values.
9576 (Ffont_match_p): New function.
9577
9578 * font.h (QCscalable): Extern it.
9579 (font_parse_xlfd, font_parse_fcname): Adjust prototype.
9580
9581 * ftfont.c (ftfont_list): Handle properties dpi, spacing, and scalable.
9582
9583 * xfont.c (xfont_query_font): Adjust for the change of font_parse_xlfd.
9584 (xfont_list_pattern): New function.
9585 (xfont_list): Use xfont_list_pattern.
9586
95872008-02-01 Kenichi Handa <handa@m17n.org>
9588
9589 * font.h (Flist_fonts): EXFUN it.
9590
95912008-02-01 Jason Rumney <jasonr@gnu.org>
9592
9593 * w32term.c (w32_initialize): Add back smoothing_type and
9594 smoothing_enabled definitions.
9595
95962008-02-01 Kenichi Handa <handa@m17n.org>
9597
9598 * xterm.c (x_draw_glyph_string) [USE_FONT_BACKEND]: Check
9599 s->face->font on determining underline position.
9600
96012008-02-01 Kenichi Handa <handa@m17n.org>
9602
9603 * font.c (font_parse_xlfd): Fix generating of CHARSET_REGISTRY field.
9604 (font_has_char): Accept font-object too.
9605 (font_find_for_lface): Try at first with a size specified in face.
9606
96072008-02-01 Kenichi Handa <handa@m17n.org>
9608
9609 * frame.c (x_set_font) [USE_FONT_BACKEND]: Fix argument to
9610 font_open_by_name.
9611
96122008-02-01 Kenichi Handa <handa@m17n.org>
9613
9614 * font.h (QCspacing, QCdpi): Extern them.
9615 (enum font_spacing): New enum.
9616 (FONT_PIXEL_SIZE_QUANTUM): New macro.
9617
9618 * font.c (POINT_TO_PIXEL): Don't divide POINT by 10.
9619 (QCspacing, QCdpi): New variables.
9620 (syms_of_font): Initialize them.
9621 (font_pixel_size): New function.
9622 (font_put_extra): New function.
9623 (font_parse_xlfd): Fix handling of font size. Add QCdpi property
9624 in FONT_EXTRA.
9625 (font_parse_fcname): Handle enumerated values (e.g. bold).
9626 Fix handling font size. Add QCname property that contains only
9627 unknown properties.
9628 (font_score): Change argument. Change caller. Pay attention to
9629 FONT_PIXEL_SIZE_QUANTUM.
9630 (font_sort_entites, font_list_entities, font_find_for_lface)
9631 (font_open_for_lface, font_open_by_name): Fix handling of font size.
9632 (Ffont_spec): Add QCname property that contains only unknown properties.
9633
9634 * ftfont.c (ftfont_list): Use assq_no_quit, not Fassq. Don't
9635 include weight in listing pattern, instead check weight of each
9636 listed font. Don't include scalable in pattern. Pay attention to
9637 FONT_PIXEL_SIZE_QUANTUM.
9638
96392008-02-01 Kenichi Handa <handa@m17n.org>
9640
9641 * font.c (font_parse_fcname): Fix parsing of point-size.
9642 (font_unparse_fcname): Produce symbolic names for style properties.
9643 (font_list_entities): Handle float size correctly.
9644 (font_open_by_name): Prefer `normal' property values if the name
9645 doesn't specify them.
9646
9647 * fontset.c (Finternal_char_font): Use font_get_name, not
9648 Ffont_xlfd_name.
9649
9650 * ftfont.c (ftfont_pattern_entity): Use the numeric value 100 for
9651 FC_WEIGHT_REGULAR. Exclude FC_SIZE and FC_PIXEL_SIZE from listing
9652 pattern. Don't force scalable.
9653
9654 * xftfont.c (xftfont_open): For generating a name, start from
9655 96-byte buffer.
9656
96572008-02-01 Jan Djärv <jan.h.d@swipnet.se>
9658
9659 * frame.h (x_new_fontset2): Fix prototype.
9660
96612008-02-01 Kenichi Handa <handa@m17n.org>
9662
9663 * font.h (struct font_driver): Delete member parse_name.
9664 (font_match_p, font_get_spec, font_parse_fcname)
9665 (font_unparse_fcname): Extern them.
9666 (font_get_name): Adjust prototype.
9667
9668 * font.c (XLFD_SMALLNUM_MASK): Delete this macro.
9669 (XLFD_LARGENUM_MASK): Delete XLFD_ENCODING_MASK from it.
9670 (font_expand_wildcards): Fix handling ENCODING field. Avoid
9671 unnecessary checks for weight, slant, and swidth.
9672 (font_parse_fcname): New function.
9673 (font_unparse_fcname): New function.
9674 (font_parse_name): New function.
9675 (font_match_p): New function.
9676 (font_get_name): Change return value to Lisp string.
9677 (font_get_spec): New function.
9678 (Qunspecified, Qignore_defface): Don't extern them.
9679 (font_find_for_lface): Assume that LFACE is fully specified.
9680 (font_load_for_face): If lface[LFACE_FONT_INDEX] is an font
9681 object, use it for FACE.
9682 (font_open_by_name): Call Ffont_spec with QCname prop. Don't call
9683 driver->parse_name.
9684 (Ffont_spec): Call font_parse_name, not font_parse_xlfd.
9685
9686 * fontset.h (new_fontset_from_font) [USE_FONT_BACKEND]: Adjust
9687 prototype.
9688
9689 * fontset.c (new_fontset_from_font) [USE_FONT_BACKEND]: Delete
9690 argument F. Don't call Fnew_fontset. Instead, directly call
9691 make_fontset.
9692
9693 * frame.h (x_new_fontset2) [USE_FONT_BACKEND]: Adjust prototype.
9694
9695 * frame.c (x_set_font) [USE_FONT_BACKEND]: Adjust for the change
9696 of x_new_fontset2.
9697
9698 * ftfont.c (Qmonospace, Qsans_serif, Qserif, Qmono, Qsans)
9699 (Qsans__serif): New variables.
9700 (ftfont_generic_family_list): New variable.
9701 (syms_of_ftfont): Initialize the above variables.
9702 (ftfont_pattern_entity): Delete argument NAME.
9703 (ftfont_list_generic_family): New function.
9704 (ftfont_parse_name): Delete this function.
9705 (ftfont_list): Try generic family only when FcFontList found no font.
9706 (ftfont_list_family): Fix args to FcObjectSetBuild.
9707
9708 * xfaces.c (check_lface_attrs) [USE_FONT_BACKEND]: Accept font
9709 object in attrs[LFACE_FONT_INDEX].
9710 (set_lface_from_font_name): Cancel all changes for font-backend.
9711 (set_lface_from_font_and_fontset) [USE_FONT_BACKEND]: New
9712 function.
9713 (Finternal_set_lisp_face_attribute) [USE_FONT_BACKEND]: Accept a
9714 font object in QCfont attribute.
9715 (set_font_frame_param) [USE_FONT_BACKEND]: Likewise.
9716 (realize_default_face) [USE_FONT_BACKEND]: Call
9717 set_lface_from_font_and_fontset.
9718
9719 * xfns.c (x_default_font_parameter) [USE_FONT_BACKEND]: Try also
9720 "fixed", and signal error here if no suitable font was found.
9721
9722 * xfont.c (xfont_parse_name): Delete this function.
9723
9724 * xftfont.c (xftfont_open): Change coding style of error
9725 handling. Generate fontconfig's fontname pattern.
9726
9727 * xterm.h (struct x_output) [USE_FONT_BACKEND]: New member fontp.
9728 (FRAME_FONT_OBJECT) [USE_FONT_BACKEND]: New macro.
9729
9730 * xterm.c (x_new_fontset2) [USE_FONT_BACKEND]: Change arguments.
9731 Both args FONTSET and FONT_OBJECT must be existing ones.
9732
97332008-02-01 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
9734
9735 * macterm.c (mac_set_unicode_keystroke_event): Don't use MAKE_CHAR.
9736
97372008-02-01 Kenichi Handa <handa@m17n.org>
9738
9739 * xfont.c (xfont_open, xfont_encode_char): Fix typo.
9740
9741 * font.h (struct font): Fix typo.
9742
9743 * font.c (enum xlfd_field_index): Rename XLFD_XXX_SIZE_INDEX to
9744 XLFD_XXX_INDEX.
9745 (enum xlfd_field_mask): New enum.
9746 (intern_font_field): Changed argument. Change caller. If digits
9747 are followed by non-digits, return a symbol.
9748 (font_expand_wildcards): New function.
9749 (font_parse_xlfd): Fix wildcard handling.
9750 (Ffont_spec): If :name is specified, reflect the info in the other
9751 properties.
9752
9753 * ftfont.c (ftfont_pattern_entity): Fix typo.
9754 (ftfont_list): Enforce FC_LANG in PATTERN to cancel the effect of
9755 locale.
9756
97572008-02-01 Kenichi Handa <handa@m17n.org>
9758
9759 * font.h (Qiso8859_1, Qiso10646_1, Qunicode_bmp): Extern them.
9760
9761 * font.c (Qiso8859_1, Qiso10646_1, Qunicode_bmp): Move from ftfont.c.
9762 (font_unparse_xlfd): Fix argument type declaration. Append "*" if
9763 registry doesn't specify encoding part.
9764 (font_find_for_lface): Pay attention to LFACE_FONT_INDEX.
9765 (font_open_by_name): At first try parsing the name.
9766 (syms_of_font): Declare Qiso8859_1, Qiso10646_1, and Qunicode_bmp
9767 as Lisp symbols.
9768
9769 * fontset.c (reorder_font_vector): Pay attention to the case that
9770 the 3rd element of font_def is nil.
9771 (fontset_font): For the default fontset, append one more fontset
9772 elements for a script-based font specification. Don't add script
9773 attribute on finding a font.
9774 (new_fontset_from_font): Unconditionally set FONTSET_ASCII to the
9775 font name.
9776 (fontset_ascii_font): If a font can't be opened, return nil.
9777
9778 * ftfont.c (Qiso8859_1, Qiso10646_1, Qunicode_bmp): Move to font.c.
9779 (ftfont_pattern_entity): New function.
9780 (ftfont_get_cache): Assume that freetype_font_cache is already
9781 initialized.
9782 (ftfont_list): Handle the case that a file is specified in font
9783 name. Use ftfont_pattern_entity to generate entities.
9784 (ftfont_has_char): Check if the pattern contains FC_CHARSET.
9785 (syms_of_ftfont): Initialize freetype_font_cache.
9786
9787 * xftfont.c (xftfont_open): Make the font name fontconfig's
9788 style. Add BLOCK_INPUT and UNBLOCK_INPUT.
9789 (xftfont_close): Free font->font.name if not NULL.
9790
9791 * xfont.c (xfont_list): If script is specified for a font, return
9792 null_vector.
9793 (xfont_list_family): Declare argument type.
9794
9795 * xfaces.c (set_lface_from_font_name): If a font doesn't have a
9796 name, set LFACE_FONT (lface) to nil.
9797
9798 * xterm.c (x_new_fontset2): If an ASCII font couldn't be loaded,
9799 return Qnil.
9800
98012008-02-01 Kenichi Handa <handa@m17n.org>
9802
9803 * emacs.c (main): Check -enable-font-backend arg after the check of -nl.
9804 (standard_args): Add "-enable-font-backend".
9805
98062008-02-01 Kenichi Handa <handa@m17n.org>
9807
9808 * xftfont.c (xftfont_default_fid): Set fid_known to 1.
9809 (struct xftdraw_list, xftdraw_list): Delete them.
9810 (register_xftdraw, check_xftdraw): Delete them.
9811 (xftfont_prepare_face): Don't call register_xftdraw.
9812 (xftfont_done_face): Don't call check_xftdraw.
9813 (xftfont_draw): Get background color only when with_background is
9814 nonzero.
9815
9816 * xfont.c (xfont_encode_char): Fix calculation of char2b.
9817
98182008-02-01 Kenichi Handa <handa@m17n.org>
9819
9820 These changes are for the new font handling codes.
9821
9822 * Makefile.in (ALL_CFLAGS): Add @FREETYPE_CFLAGS@,
9823 @FONTCONFIG_CFLAGS@, and @LIBOTF_CFLAGS@.
9824 (LIB_X11_LIB): If HAVE_XFT is defined, set to @XFT_LIBS@.
9825 (FONTSRC, FONTOBJ): New variables.
9826 (obj): Add $(FONTOBJ).
9827 (SOME_MACHINE_OBJECTS): Lib_X11_Lib.
9828 (LIBES): Add @FREETYPE_LIBS@, @FONTCONFIG_LIBS@, and
9829 @LIBOTF_LIBS@.
9830 (font.o, ftfont.o, xfont.o, xftfont.o, ftxfont.o): New targets.
9831 (fontset.o, xdisp.o, xfaces.o, xfns.o, xterm.o): Depend on $(FONTSRC).
9832
9833 * font.h, font.c, xfont.c, ftfont.c, xftfont.c, ftxfont.c: New files.
9834
9835 * character.h (Vscript_representative_chars): Extern it.
9836
9837 * character.c (Vscript_representative_chars): New variable.
9838 (syms_of_character): Declare it as a Lisp variable.
9839
9840 * composite.c (get_composition_id) [USE_FONT_BACKEND]: If
9841 enable_font_backend is nonzero, accept the composition method
9842 COMPOSITION_WITH_GLYPH_STRING.
9843
9844 * composite.h (enum composition_method) [USE_FONT_BACKEND]: New
9845 enumeration COMPOSITION_WITH_GLYPH_STRING.
9846
9847 * dispextern.h (struct glyph_string) [USE_FONT_BACKEND]: New
9848 members clip_x, clip_y, clip_width, and clip_height.
9849 (struct face) [USE_FONT_BACKEND]: New members font_info and extra.
9850
9851 * emacs.c (main) [USE_FONT_BACKEND]: Handle arg
9852 --enable-font-backend. Call syms_of_font.
9853
9854 * fns.c (assoc_no_quit): New function.
9855
9856 * fontset.h (FONT_INFO_FROM_FACE): New macro.
9857 (face_for_font, new_fontset_from_font)
9858 (fontset_ascii_font) [USE_FONT_BACKEND]: Extern them.
9859
9860 * fontset.c [USE_FONT_BACKEND]: Include "font.h".
9861 (fontset_font, fontset_ascii, face_for_char)
9862 (make_fontset_for_ascii_face, Ffont_info)
9863 (Finternal_char_font) [USE_FONT_BACKEND]: If enable_font_backend
9864 is nonzero, use font-backend mechanism.
9865 (find_font_encoding): Make it non-static.
9866 (new_fontset_from_font, fontset_ascii_font) [USE_FONT_BACKEND]:
9867 New functions.
9868
9869 * frame.h (struct frame): New members resx and resy.
9870 (struct frame) [USE_FONT_BACKEND]: New member font_driver_list.
9871 (x_new_fontset2) [USE_FONT_BACKEND]: Extern it.
9872
9873 * frame.c [USE_FONT_BACKEND]: Include "font.h".
9874 (make_frame, x_set_font) [USE_FONT_BACKEND]: Use font-backend mechanism.
9875
9876 * lisp.h (assoc_no_quit): Extern it.
9877
9878 * xdisp.c: If USE_FONT_BACKEND is defined, include "font.h".
9879 Through out the file, use FONT_INFO_FROM_FACE instead of
9880 FONT_INFO_FROM_ID, use get_per_char_metric instead of
9881 rif->per_char_metric.
9882 (handle_composition_prop) [USE_FONT_BACKEND]: If the composition
9883 method is COMPOSITION_WITH_GLYPH_STRING, just set it->c to ' '.
9884 (get_glyph_face_and_encoding, fill_composite_glyph_string)
9885 (get_char_face_and_encoding, BUILD_COMPOSITE_GLYPH_STRING)
9886 (x_produce_glyphs) [USE_FONT_BACKEND]: If enable_font_backend is
9887 nonzero, use font-backend mechanism.
9888 (get_per_char_metric): New function.
9889
9890 * xfaces.c [USE_FONT_BACKEND]: Include "font.h".
9891 (set_lface_from_font_name)
9892 (set_font_frame_param, free_realized_face)
9893 (prepare_face_for_display, clear_face_gcs)
9894 (Finternal_set_font_selection_order, realize_x_face)
9895 [USE_FONT_BACKEND]: If enable_font_backend is nonzero, use
9896 font-backend mechanism.
9897 (clear_face_cache) [USE_FONT_BACKEND]: Don't call clear_font_table.
9898 (load_face_font) [USE_FONT_BACKEND]: Abort.
9899 (face_symbolic_value, face_symbolic_weight, face_symbolic_slant)
9900 (face_symbolic_swidth, face_for_font) [USE_FONT_BACKEND]: New functions.
9901
9902 * xfns.c [USE_FONT_BACKEND]: Include "font.h".
9903 (x_default_font_parameter) [USE_FONT_BACKEND]: New function.
9904 (Fx_create_frame) [USE_FONT_BACKEND]: If enable_font_backend is
9905 nonzero, register all available font drivers. Call
9906 x_default_font_parameter for deciding a font.
9907 (x_create_tip_frame) [USE_FONT_BACKEND]: Likewise.
9908
9909 * xterm.c [USE_FONT_BACKEND]: Include "font.h".
9910 (x_set_mouse_face_gc, x_set_glyph_string_clipping)
9911 (x_set_glyph_string_clipping_exactly)
9912 (x_compute_glyph_string_overhangs)
9913 (x_draw_glyph_string_foreground)
9914 (x_draw_composite_glyph_string_foreground, x_draw_glyph_string)
9915 (x_free_frame_resources) [USE_FONT_BACKEND]: If
9916 enable_font_backend is nonzero, use font-backend mechanism.
9917 (x_new_fontset2) [USE_FONT_BACKEND]: New function.
9918
99192008-02-01 Kenichi Handa <handa@m17n.org>
9920
9921 * coding.c (coding_inherit_eol_type): If PARENT is nil, inherit from
9922 system_eol_type.
9923 (syms_of_coding): Initialize system_eol_type.
9924
9925 * process.c (Fset_process_coding_system): Inherit system's eol
9926 format if necessary.
9927
99282008-02-01 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
9929
9930 * macgui.h (USE_ATSUI): Don't enable on emacs-unicode-2 branch.
9931
99322008-02-01 Kenichi Handa <handa@m17n.org>
9933
9934 * coding.c (decode_eol): Pay attention to buffer relocation in
9935 del_range_2.
9936 (decode_coding): Call decode_eol before restoring undo_list.
9937
99382008-02-01 Kenichi Handa <handa@m17n.org>
9939
9940 * charset.c (Fdefine_charset_internal): Fix setting of
9941 emacs_mule_bytes.
9942
99432008-02-01 Kenichi Handa <handa@m17n.org>
9944
9945 * keyboard.c (read_char): Check if C is a character or not before
9946 looking up Vkeyboard_translate_table.
9947
99482008-02-01 Kenichi Handa <handa@m17n.org>
9949
9950 * coding.c (DECODE_EMACS_MULE_20_RELATIVE_COMPOSITION): Fix
9951 condition to terminate the loop.
9952
99532008-02-01 Kenichi Handa <handa@m17n.org>
9954
9955 * coding.c (produce_composition): Compare charbuf[i] instead of
9956 args[i] against 0.
9957 (Fterminal_coding_system): Use EQ to compare Lisp objects.
9958
99592008-02-01 Kenichi Handa <handa@m17n.org>
9960
9961 * coding.c (DECODE_COMPOSITION_START): If the source is short, set
9962 coding->result to CODING_RESULT_INSUFFICIENT_SRC.
9963 (decode_coding_gap): Set CODING_MODE_LAST_BLOCK after the call of
9964 detect_coding.
9965 (emacs_mule_char): Handle old style (Emacs 20) component character
9966 of a composition.
9967 (DECODE_EMACS_MULE_COMPOSITION_RULE_20)
9968 (DECODE_EMACS_MULE_20_RULEBASE_COMPOSITION): Fix parsing a
9969 composition rule.
9970 (decode_coding_emacs_mule): Handle invalid bytes correctly.
9971
99722008-02-01 Kenichi Handa <handa@m17n.org>
9973
9974 * coding.c (encode_coding_ccl): Allocate destination dynamically
9975 when necessary.
9976
99772008-02-01 Kenichi Handa <handa@m17n.org>
9978
9979 * ccl.c (Fccl_execute_on_string): Fix the condition of terminating
9980 the loop. When quitted, show a proper error message.
9981
99822008-02-01 Kenichi Handa <handa@m17n.org>
9983
9984 * xterm.c (x_set_glyph_string_clipping_exactly): Set
9985 src->clip_head and src->clip_tail temporarily instead of src->hl.
9986
9987 * ccl.c (CCL_WRITE_STRING): Handle a flag bit for multibyte
9988 character sequence.
9989 (Fccl_execute_on_string): Use ASET, not XSET.
9990
99912008-02-01 Kenichi Handa <handa@m17n.org>
9992
9993 * search.c (search_buffer): Fix handling of "\\" in a trivial regexp.
9994
99952008-02-01 Kenichi Handa <handa@m17n.org>
9996
9997 * coding.c (decode_coding): Fix the condition of terminating the
9998 decoding loop.
9999
100002008-02-01 Kenichi Handa <handa@m17n.org>
10001
10002 * data.c (Faset): On setting a character bigger than 255 in a
10003 unibyte string, signal an error instead of make the string multibyte.
10004
100052008-02-01 Kenichi Handa <handa@m17n.org>
10006
10007 * charset.c (map_charset_chars): Fix for ascii-compatible charset
10008 made by a mapping table.
10009
100102008-02-01 Kenichi Handa <handa@m17n.org>
10011
10012 * xdisp.c (fill_composite_glyph_string): Check s->face is NULL or
10013 not.
10014 (BUILD_COMPOSITE_GLYPH_STRING): If C is TAB, set s->face to NULL.
10015 (x_produce_glyphs): If CH is TAB, set cmp->offsets properly.
10016
10017 * xterm.c (x_draw_composite_glyph_string_foreground): Check
10018 s->face is NULL or not.
10019
100202008-02-01 Kenichi Handa <handa@m17n.org>
10021
10022 * xterm.c (x_set_glyph_string_clipping_exactly): New function.
10023 (x_draw_glyph_string): Fix drawing of right_overhang and
10024 left_overhang around/on cursor.
10025
10026 * xdisp.c (draw_glyphs): Fix inclusion of right_overwriting glyphs.
10027
100282008-02-01 Kenichi Handa <handa@m17n.org>
10029
10030 * xdisp.c (x_produce_glyphs): Handle composition with TAB.
10031
100322008-02-01 Kenichi Handa <handa@m17n.org>
10033
10034 * coding.c (Fdefine_coding_system_internal)
10035 (Fdefine_coding_system_alias): Avoid a duplicated element in
10036 Vcoding_system_alist.
10037
100382008-02-01 Kenichi Handa <handa@m17n.org>
10039
10040 * xterm.c (handle_one_xevent): Handle keysyms 0x1000000..0x10000FF.
10041
10042 * coding.c (Qcoding_system_define_form): New variable.
10043 (syms_of_coding): Intern and staticpro it.
10044 (Fcoding_system_p): Check Qcoding_system_define_form.
10045 (Fcheck_coding_system): Try to autoload the definition of CODING-SYSTEM.
10046
10047 * coding.h (CODING_SYSTEM_P): If ID is not available, call
10048 Fcoding_system_p.
10049 (CHECK_CODING_SYSTEM): If ID is not available, call
10050 Fcheck_coding_system.
10051 (CHECK_CODING_SYSTEM_GET_SPEC, CHECK_CODING_SYSTEM_GET_ID):
10052 Try also Fcheck_coding_system.
10053
100542008-02-01 Kenichi Handa <handa@m17n.org>
10055
10056 * coding.c (code_conversion_restore): GCPRO arg.
10057
100582008-02-01 Kenichi Handa <handa@m17n.org>
10059
10060 * character.c (lisp_string_width): Check multibyteness of STRING.
10061
100622008-02-01 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
10063
10064 * macterm.c (mac_encode_char): Call ccl_driver with the last arg
10065 Qnil. Use JIS_TO_SJIS instead of ENCODE_SJIS.
10066 (decode_mac_font_name): Use decode_coding_c_string instead of
10067 decode_coding.
10068 (x_load_font): Initialize fontp->fontset to -1. Set
10069 fontp->encoding_type.
10070
100712008-02-01 Kenichi Handa <handa@m17n.org>
10072
10073 * search.c (search_buffer): Give up BM search on case-fold-search
10074 if one of a target character has a case-equivalence of different
10075 byte length even if that target charcter is an ASCII.
10076 (simple_search): Fix calculation of byte length of matched text.
10077 (boyer_moore): Fix handling of case-equivalent multibyte characters.
10078
100792008-02-01 Kenichi Handa <handa@m17n.org>
10080
10081 * coding.c (decode_coding): Fix handling of invalid bytes.
10082
100832008-02-01 Kenichi Handa <handa@m17n.org>
10084
10085 * xterm.c (handle_one_xevent): Handle keysyms directly mapped to
10086 Unicode characters.
10087
100882008-02-01 Kenichi Handa <handa@m17n.org>
10089
10090 * coding.c (encode_coding_object): If a pre-write-conversion
10091 function makes a new buffer, kill it.
10092
100932008-02-01 Kenichi Handa <handa@m17n.org>
10094
10095 * coding.c (QCascii_compatible_p): New variable.
10096 (syms_of_coding): Initialize it.
10097 (ONE_MORE_BYTE, ONE_MORE_BYTE_NO_CHECK): Decrement `src' before
10098 calling string_char.
10099 (record_conversion_result): Add `default:' case.
10100 (coding_charset_list): Delete unused variable `coding_type'.
10101 (Fdefine_coding_system_internal): Add `ascii-compatible-p'
10102 property in the plist of the coding system.
10103 (Fcoding_system_put): Check QCascii_compatible_p.
10104
101052008-02-01 Miles Bader <miles@gnu.org>
10106
10107 * xfaces.c (Finternal_lisp_face_equal_p): Restore previously
10108 removed calculation of frame `f', as it's now used.
10109
101102008-02-01 Kenichi Handa <handa@m17n.org>
10111
10112 * Makefile.in (RUN_TEMACS): Include "-nl" if HAVE_SHM is defined.
10113 (emacs${EXEEXT}): Run $(RUN_TEMACS) unconditionally.
10114 (UNIDATA): New variable.
10115 (${lispsource}international/charprop.el): Depends on ${UNIDATA}.
10116 (bootstrap-emacs${EXEEXT}): Depends on charprop.el. Run
10117 $(RUN_TEMACS) unconditionally.
10118
101192008-02-01 Kenichi Handa <handa@m17n.org>
10120
10121 * Makefile.in (temacs${EXEEXT}): Build charprop.el if necessary.
10122 (admindir): New variable.
10123 ($(lispsource)international/charprop.el): New target.
10124
101252008-02-01 Miles Bader <miles@gnu.org>
10126
10127 * character.c (chars-in-region): Remove obsolete function.
10128 (syms_of_character): Remove its initialization.
10129
101302008-02-01 Benjamin Riefenstahl <b.riefenstahl@turtle-trading.net>
10131
10132 * w32select.c (validate_coding_system)
10133 (setup_windows_coding_system): New functions.
10134 (convert_to_handle_as_coded, Fw32_get_clipboard_data): Use
10135 setup_windows_coding_system.
10136 (setup_config, Fw32_get_clipboard_data): Use
10137 validate_coding_system.
10138 (Fx_selection_exists): Move call to setup_config to a place
10139 where signals are allowed.
10140
10141 * lisp.h (Fcoding_system_base, Fcoding_system_eol_type)
10142 (Fcheck_coding_system): Add declarations.
10143
101442008-02-01 Kenichi Handa <handa@m17n.org>
10145
10146 * charset.c (load_charset_map_from_vector): Fix for the first iteration.
10147
101482008-02-01 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
10149
10150 * macfns.c (Fx_create_frame, x_create_tip_frame): Pass Lisp
10151 string as the second argument for x_new_fontset.
10152
101532008-02-01 Kenichi Handa <handa@m17n.org>
10154
10155 * coding.c (decode_coding_object): Use safe_call1 instead of call1.
10156 (encode_coding_object): Use safe_call instead of call2.
10157
101582008-02-01 Kenichi Handa <handa@m17n.org>
10159
10160 * fontset.c (Fset_fontset_font): Check family element of a given vector.
10161
10162 * Makefile.in (lisp): Include charprop.el.
10163
101642008-02-01 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
10165
10166 * macfns.c (Fx_create_frame, x_create_tip_frame): Fix crash.
10167 Not sure if it's unnecessary.
10168
101692008-02-01 Steven Tamm <steventamm@mac.com>
10170
10171 * macfns.c (Fx_create_frame, x_create_tip_frame): ifdef'd out
10172 some possibly unnecessary fontset checking code that crashed
10173 when creating a new frame.
10174
101752008-02-01 Kenichi Handa <handa@m17n.org>
10176
10177 * xfaces.c (merge_faces): Fix argument to lookup_derived_face and
10178 lookup_face.
10179
10180 * xdisp.c (Fformat_mode_line): Fix argument to lookup_named_face.
10181
10182 * fringe.c (draw_fringe_bitmap_1): Fix argument to lookup_named_face.
10183
101842008-02-01 Kenichi Handa <handa@m17n.org>
10185
10186 * coding.c: Cancel the change done in HEAD on 2008-02-01.
10187 (coding_charset_list): New function.
10188
10189 * coding.h (coding_charset_list): Extern it.
10190
101912008-02-01 Kenichi Handa <handa@m17n.org>
10192
10193 * fontset.c (Fset_fontset_font): Call find_font_encoding with
10194 concatenation of family and registry.
10195
101962008-02-01 Kenichi Handa <handa@m17n.org>
10197
10198 * character.h (BYTE8_STRING): Fix typo.
10199
10200 * editfns.c (Ftranslate_region_internal): Don't convert unibyte
10201 string to multibyte (sync to HEAD).
10202
10203 * casefiddle.c (casify_region): Handle changes in byte-length
10204 using replace_range_2 (sync to HEAD).
10205
102062008-02-01 Andreas Schwab <schwab@suse.de>
10207
10208 * chartab.c (map_char_table): GCPRO table and arg.
10209
102102008-02-01 Kenichi Handa <handa@m17n.org>
10211
10212 * syntax.c (skip_syntaxes): Return lispy 0 (not nil) if point is
10213 already at limit.
10214
102152008-02-01 Kenichi Handa <handa@m17n.org>
10216
10217 * fontset.c (fs_load_font): Use fast_string_match_ignore_case
10218 instead of fast_c_string_match_ignore_case.
10219 (find_font_encoding): Change argument to Lisp_Object. Use
10220 fast_string_match_ignore_case instead of
10221 fast_c_string_match_ignore_case. Change caller.
10222
102232008-02-01 Kenichi Handa <handa@m17n.org>
10224
10225 * xdisp.c (get_next_display_element): In unibyte case, decide to
10226 display in octal form by checking a character by
10227 UNIBYTE_CHAR_HAS_MULTIBYTE_P.
10228
10229 * charset.c (Fset_unibyte_charset): Setup unibyte_has_multibyte_table.
10230
10231 * character.c (unibyte_has_multibyte_table): New variable.
10232
10233 * character.h (unibyte_has_multibyte_table): Extern it.
10234 (UNIBYTE_CHAR_HAS_MULTIBYTE_P): New macro.
10235
102362008-02-01 Kenichi Handa <handa@m17n.org>
10237
10238 * coding.c (encode_coding_iso_2022): Fix handling of charset
10239 annotation.
10240
102412008-02-01 Kenichi Handa <handa@m17n.org>
10242
10243 * coding.c (setup_coding_system): If coding_system is nil, use
10244 Qundecided.
10245 (Fterminal_coding_system): Return nil if terminal coding system is
10246 `undecided'.
10247 (syms_of_coding): Define coding-system `undecided' here. Setup
10248 terminal_coding as `undecided'.
10249
102502008-02-01 Kenichi Handa <handa@m17n.org>
10251
10252 * xdisp.c (message_dolog, set_message_1): Call
10253 unibyte_char_to_multibyte with arg type int.
10254
10255 * lread.c (read1): Fix reading of a char-table.
10256
10257 * print.c (print_object): Include sub char-table in circularities
10258 detection.
10259
102602008-02-01 Kenichi Handa <handa@m17n.org>
10261
10262 * keymap.c (where_is_internal_2): Fix for the case that KEY is a cons.
10263 Append the found sequences in car of ARGS instead of prepending.
10264
102652008-02-01 Kenichi Handa <handa@m17n.org>
10266
10267 * fileio.c (report_file_error): Make a unibyte string from
10268 strerror (errorno).
10269 (Fsubstitute_in_file_name): Fix the arg to
10270 unibyte_char_to_multibyte. It is evaluated twice.
10271
102722008-02-01 Kenichi Handa <handa@m17n.org>
10273
10274 * charset.h (CHAR_CHARSET): Shortcut for ASCII case.
10275
102762008-02-01 Kenichi Handa <handa@m17n.org>
10277
10278 * coding.c (detect_coding_utf_16): Don't set detect_info->found if
10279 BOM is not found.
10280 (detect_coding, detect_coding_system): Optimization for ISO-2022
10281 when no 8-bit data is found.
10282
102832008-02-01 Jason Rumney <jasonr@gnu.org>
10284
10285 * w32fns.c (x_to_w32_font): Update to use new coding struct.
10286
102872008-02-01 Kenichi Handa <handa@m17n.org>
10288
10289 * charset.c (Fdeclare_equiv_charset, Fiso_charset): Fix handing of
10290 CHARS.
10291
102922008-02-01 Steven Tamm <steventamm@mac.com>
10293
10294 * macterm.c (mac_encode_char): Add charset argument and update
10295 to use encoding_type.
10296 (x_new_font, x_new_fontset): Merge in changes from xterm.c;
10297 switch to pure fontset.
10298 (decode_mac_font_name): Temporarily remove decoding.
10299 (x_font_name_to_mac_font_name): Temporarily remove encoding.
10300 (x_load_font): Temporarily remove encoding.
10301
103022008-02-01 Kenichi Handa <handa@m17n.org>
10303
10304 * xfaces.c (Fface_font): If frame is not on a window system,
10305 ignore CHARACTER arg. If HAVE_WINDOW_SYSTEM is not defined, don't
10306 refer to face->font.
10307 (split_font_name_into_vector, build_font_name_from_vector)
10308 (lookup_non_ascii_face, realize_non_ascii_face): Define them only
10309 when HAVE_WINDOW_SYSTEM is defined.
10310
103112008-02-01 Kenichi Handa <handa@m17n.org>
10312
10313 * xdisp.c (BUILD_GLYPH_STRINGS): Check if s is NULL.
10314 (x_produce_glyphs): Fix setting of members of cmp in case
10315 cmp->glyph_len is zero.
10316
10317 * fontset.c (Fset_fontset_font): Fix docstring.
10318 (Ffontset_info): Make it backward compatible. New arg ALL.
10319
103202008-02-01 Kim F. Storm <storm@cua.dk>
10321
10322 * process.c (read_process_output): Grow decoding_buf when needed;
10323 this could cause a crash in allocate_string and compact_small_strings.
10324
103252008-02-01 Kenichi Handa <handa@m17n.org>
10326
10327 * fileio.c (WRITE_BUF_SIZE): Delete this macro.
10328
103292008-02-01 Kenichi Handa <handa@m17n.org>
10330
10331 * coding.c (setup_coding_system): Set coding->common_flags
10332 correctly for raw-text.
10333 (consume_chars): On encoding unibyte text by raw-text, don't check
10334 multibyte form.
10335 (encode_coding): On encoding by raw-text, never use translation tables.
10336
10337 * fileio.c (e_write): Short cut for the case of no encoding.
10338
103392008-02-01 Kenichi Handa <handa@m17n.org>
10340
10341 * coding.c (detect_coding, detect_coding_system): Delete unused
10342 variables.
10343
103442008-02-01 Kenichi Handa <handa@m17n.org>
10345
10346 * coding.c (encode_coding_utf_8): Fix handling of raw-byte char.
10347 (consume_chars): Fix handling of 8-bit bytes in unibyte source.
10348
103492008-02-01 Kenichi Handa <handa@m17n.org>
10350
10351 * coding.c (Ffind_coding_systems_region_internal): Include
10352 raw-text and no-conversion in the result.
10353
103542008-02-01 Kenichi Handa <handa@m17n.org>
10355
10356 * fontset.c (find_font_encoding): Return `ascii' for unknown encoding.
10357 (load_font_get_repertory): Delete unnecessary check of ENCODING of
10358 FONT_DEF.
10359 (font_def_arg, add_arg, from_arg, to_arg): New args.
10360 (set_fontset_font): Change argument.
10361 (Fset_fontset_font): Fix for the case that TARGET is a script
10362 name and charset name.
10363 (new_fontset_from_font_name): Fix argument to Fnew_fontset.
10364
103652008-02-01 Kenichi Handa <handa@m17n.org>
10366
10367 * fontset.c (fontset_font): Rename from fontset_face. Change return
10368 value.
10369 (face_suitable_for_char_p, face_for_char): Adjust for the change
10370 of fontset_font.
10371 (make_fontset_for_ascii_face): Fix setting of the fontset element
10372 for ASCII.
10373 (Finternal_char_font): Use fontset_font instead of FACE_FOR_CHAR
10374 to get a font name.
10375 (Ffontset_info): Adjust for the change of fontset_font.
10376
10377 * coding.c (emacs_mule_char): Check invalid code more rigidly.
10378
10379 * character.h (LEADING_CODE_LATIN_1_MIN)
10380 (LEADING_CODE_LATIN_1_MAX): Delete these macros.
10381
103822008-02-01 Kenichi Handa <handa@m17n.org>
10383
10384 * editfns.c (check_translation): New function.
10385 (Ftranslate_region_internal): Handle M:N mapping.
10386
103872008-02-01 Kenichi Handa <handa@m17n.org>
10388
10389 * xfaces.c (xlfd_point_size): Set font->numeric[XLFD_PIXEL_SIZE].
10390
103912008-02-01 Kenichi Handa <handa@m17n.org>
10392
10393 * coding.c (DECODE_DESIGNATION): Set chars_96 to -1 instead of
10394 goto invalid_code.
10395 (decode_coding_iso_2022): Fix handling of invalid designation.
10396
10397 * fileio.c (Finsert_file_contents): Be sure to call unbind_to
10398 after calling code_conversion_save.
10399
104002008-02-01 Kenichi Handa <handa@m17n.org>
10401
10402 * xdisp.c (handle_auto_composed_prop): Fix Lisp_Object/int mixup.
10403
10404 * print.c (print_prune_string_charset): Fix Lisp_Object/int mixup.
10405
10406 * fontset.c: Include "intervals.h".
10407 (fontset_face): Fix comparing of Lisp_Objects.
10408 (free_face_fontset, new_fontset_from_font_name): Fix
10409 Lisp_Object/int mixup.
10410
10411 * editfns.c (Ftranslate_region_internal): Fix Lisp_Object/int mixup.
10412
10413 * coding.c: Add many prototypes for static functions.
10414 (get_translation_table): Allow max_lookup to be NULL.
10415 (decode_coding, Ffind_coding_systems_region_internal)
10416 (Funencodable_char_position, Fcheck_coding_systems_region): Call
10417 get_translation_table with max_lookup NULL.
10418
104192008-02-01 Kenichi Handa <handa@m17n.org>
10420
10421 * coding.c (get_translation_table): Declare it as Lisp_Object.
10422 (LOOKUP_TRANSLATION_TABLE): New macro.
10423 (produce_chars, consume_chars): Use LOOKUP_TRANSLATION_TABLE
10424 instead of CHAR_TABLE_REF.
10425
104262008-02-01 Kenichi Handa <handa@m17n.org>
10427
10428 * coding.c (MAX_ANNOTATION_LENGTH): Adjust for the change of
10429 annotation data format.
10430 (ADD_ANNOTATION_DATA, ADD_COMPOSITION_DATA, ADD_CHARSET_DATA):
10431 Change arguments FROM and TO to single argument NCHARS. Change caller.
10432 (decode_coding_utf_8, decode_coding_utf_16, decode_coding_emacs_mule)
10433 (decode_coding_iso_2022, decode_coding_sjis, decode_coding_big5)
10434 (decode_coding_ccl, decode_coding_charset): Pay attention to
10435 coding->charbuf_used.
10436 (get_translation): New function.
10437 (produce_chars): New arguments translation_table and last_block.
10438 Translate characters here. Return number of carryover chars.
10439 Change caller.
10440 (produce_composition): New argument pos. Change caller.
10441 Adjust for the change of annotation data format.
10442 (produce_charset, produce_annotation): Likewise.
10443 (decode_coding, encode_coding): Don't call translate_chars.
10444 (consume_chars): New arg translation_table. Change caller.
10445 (translate_chars): Delete.
10446 (syms_of_coding): Make translation-table's number of extra slots 2.
10447
104482008-02-01 Kenichi Handa <handa@m17n.org>
10449
10450 * search.c (simple_search): Fix setting this_pos_byte in backward
10451 search.
10452
10453 * coding.c (detect_coding_emacs_mule): Fix counting of encoded
10454 byte sequence.
10455 (detect_coding_ccl): Fix setting of the variable valids.
10456
104572008-02-01 Kenichi Handa <handa@m17n.org>
10458
10459 * xterm.c (x_list_fonts): Fix the detection of an auto-scaled font.
10460
10461 * coding.c (decode_coding_utf_16): Fix handling of surrogate pair.
10462
10463 * editfns.c (Ftranslate_region_internal): Rename from
10464 Ftranslate_region. Accept a char-table in TABLE.
10465 (syms_of_editfns): Defsubr Stranslate_region_internal.
10466
10467 * xfaces.c (set_lface_from_font_name): If a font is specified for
10468 a frame, generate a fontset from the font.
10469 (build_scalable_font_name): If the scalable font is requested for
10470 a specific size, don't change that size.
10471 (try_font_list): Try a scalable font also in the case that a
10472 pattern string is specified.
10473
104742008-02-01 Kenichi Handa <handa@m17n.org>
10475
10476 * xfaces.c (Fface_font): New optional arg CHARACTER.
10477
104782008-02-01 Kenichi Handa <handa@m17n.org>
10479
10480 * charset.h (CHARSET_OFFSET): New macro.
10481
104822008-02-01 Kenichi Handa <handa@m17n.org>
10483
10484 * xterm.c (x_get_font_repertory): Fix for non-Unicode-bmp charset.
10485
10486 * fontset.c (fontset_face): Handle the case that repertory is a
10487 char-table.
10488 (find_font_encoding): Return nil for unknown encoding.
10489 (Fset_fontset_font): Ignore a font of unknown encoding.
10490
104912008-02-01 Kenichi Handa <handa@m17n.org>
10492
10493 * keymap.c (describe_vector): Handle default value of a char table.
10494
10495 * fontset.c (fontset_face): Handle fallback fonts correctly.
10496 (Ffontset_info): Return infomation about fallback fonts.
10497
104982008-02-01 Kenichi Handa <handa@m17n.org>
10499
10500 * fontset.c (FONTSET_DEFAULT): New macro.
10501 (FONTSET_ADD, fontset_add): Handle the case that range is nil.
10502 (Fset_fontset_font): Change the 2nd arg name to TARGET, and handle
10503 the case that it is nil.
10504 (dump_fontset): Call FONTSET_DEFAULT, not FONTSET_FALLBACK.
10505 (syms_of_fontset): Set char-table-extra-slots property of fontset to 9.
10506
10507 * charset.h (CHAR_CHARSET_P): Fix for the case that the method is
10508 subset or superset.
10509
105102008-02-01 Kenichi Handa <handa@m17n.org>
10511
10512 * emacs.c (main): Call init_charset after syms_of_XXX.
10513
10514 * charset.c (Vcharset_map_directory): Delete.
10515 (Vcharset_map_path): New variable.
10516 (load_charset_map_from_file): Use Vcharset_map_path instead.
10517 (init_charset): Initialize Vcharset_map_path.
10518 (syms_of_charset): Delete declaration of "charset-map-directory",
10519 add declaration of "charset-map-path".
10520
105212008-02-01 Kenichi Handa <handa@m17n.org>
10522
10523 * fns.c (string_char_to_byte, string_byte_to_char): Optimize for
10524 ASCII only string.
10525
10526 * fileio.c (Finsert_file_contents): Avoid detecting a code twice.
10527
10528 * coding.c (detect_coding_iso_2022): Fix handling of SS2 and SS3.
10529 (detect_coding, detect_coding_system): Treat '\0' as normal ASCII byte.
10530
105312008-02-01 Kenichi Handa <handa@m17n.org>
10532
10533 * coding.h (SJIS_TO_JIS2, JIS_TO_SJIS2): New macros.
10534
10535 * coding.c (QCmnemonic, QCdefalut_char)
10536 (QCdecode_translation_table, QCencode_translation_table)
10537 (QCpost_read_conversion, QCpre_write_conversion): New variables.
10538 (get_translation_table): Return a list of translation tables if
10539 necessary.
10540 (decode_coding): Call get_translation_table with ENCODEP 0.
10541 (char_encodable_p): If translation_table is non-nil, always call
10542 translate_char.
10543 (Fdefine_coding_system_internal): Accept list of translation
10544 tables as :encode-translation-table and :decode-translation-table.
10545 (Fcoding_system_put): New function.
10546 (syms_of_coding): Declare new symbols. Defsubr
10547 Scoding_system_put.
10548 (decode_coding_sjis, encode_coding_sjis): Handle 4th charset,
10549 typically JISX0212.
10550
10551 * charset.c (map_charset_chars): Fix arg to map_charset_chars in
10552 when the charset is superset type.
10553
10554 * character.c (translate_char): Accept list of translation tables.
10555
105562008-02-01 Kenichi Handa <handa@m17n.org>
10557
10558 * coding.h (enum coding_attr_index): New member coding_attr_trans_tbl.
10559 (CODING_ATTR_TRANS_TBL): New macro.
10560
10561 * coding.c (get_translation_table): New function.
10562 (translate_chars): Fix the bug of skipping annotation data.
10563 (decode_coding, encode_coding): Utilize get_translation_table.
10564 (char_encodable_p, Funencodable_char_position): Translate char if
10565 necessary.
10566 (Ffind_coding_systems_region_internal)
10567 (Fcheck_coding_systems_region): Setup translation table for encode
10568 in a coding system attribute vector in advance.
10569 (Fdefine_coding_system_internal): Allow a symbol as translation
10570 table. For shift-jis type coding system, allow 4th charset.
10571
105722008-02-01 Kenichi Handa <handa@m17n.org>
10573
10574 * coding.c (decode_coding_sjis): Check the first byte rigidly.
10575
10576 * xdisp.c (get_next_display_element): Pass -1 as POS to
10577 FACE_FOR_CHAR if displaying a C-string.
10578
105792008-02-01 Kenichi Handa <handa@m17n.org>
10580
10581 * composite.c (get_composition_id): Handle xoff and yoff in a
10582 composition rule.
10583
10584 * composite.h (COMPOSITION_DECODE_RULE): New arg xoff and yoff.
10585 (struct composition): New member lbearing and rbearing.
10586
10587 * xdisp.c (move_it_to): Optimize for the case (op & MOVE_TO_Y).
10588 (x_get_glyph_overhangs): Handle a composition glyph.
10589 (x_produce_glyphs): Setup lbearing and rbreaing for a composition glyph.
10590
10591 * xterm.c (x_compute_glyph_string_overhangs): Handle also a
10592 composition glyph.
10593
105942008-02-01 Kenichi Handa <handa@m17n.org>
10595
10596 * print.c: Include charset.h.
10597 (Vprint_charset_text_property): New variable.
10598 (Qdefault): Extern it.
10599 (PRINT_STRING_NON_CHARSET_FOUND)
10600 (PRINT_STRING_UNSAFE_CHARSET_FOUND): New macros.
10601 (print_check_string_result): New variable.
10602 (print_check_string_charset_prop): New function.
10603 (print_prune_charset_plist): New variable.
10604 (print_prune_string_charset): New function.
10605 (print_object): Call print_prune_string_charset if
10606 Vprint_charset_text_property is not t.
10607 (print_interval): Print nothing if interval->plist is nil.
10608 (syms_of_print): Declare Vprint_charset_text_property as a lisp
10609 variable. Init and staticpro print_prune_charset_plist.
10610
106112008-02-01 Kenichi Handa <handa@m17n.org>
10612
10613 * fontset.c (new_fontset_from_font_name): Use the specified font
10614 for all characters in the new fontset.
10615
10616 * macterm.c (x_set_mouse_face_gc): Call FACE_FOR_CHAR with POS and
10617 OBJECT args.
10618
10619 * xdisp.c (x_produce_glyphs): Call FACE_FOR_CHAR with POS and
10620 OBJECT args for composition too.
10621
10622 * w32term.c (x_set_mouse_face_gc): Call FACE_FOR_CHAR with POS and
10623 OBJECT args.
10624
106252008-02-01 Kenichi Handa <handa@m17n.org>
10626
10627 * dispextern.h (FACE_FOR_CHAR): New args POS and OBJECT.
10628
10629 * fontset.c (reorder_font_vector): Adjust for the change of
10630 FONT_DEF format.
10631 (fontset_face): New arg id. Change caller.
10632 (face_for_char): New args pos and object.
10633 (make_fontset_for_ascii_face): Adjust for the change of FONT_DEF format.
10634 (fs_query_fontset): Check NAME by Fassoc too.
10635 (Fset_fontset_font): Allow non-XLFD font name.
10636 (Ffontset_info): Adjust for the change of FONT_DEF format.
10637
10638 * fontset.h (face_for_char): Adjust prototype.
10639
10640 * xdisp.c (face_before_or_after_it_pos, get_next_display_element)
10641 (append_space, extend_face_to_end_of_line)
10642 (get_char_face_and_encoding, BUILD_COMPOSITE_GLYPH_STRING)
10643 (x_produce_glyphs): Call FACE_FOR_CHAR with POS and OBJECT args.
10644
10645 * xfaces.c (compute_char_face): Call FACE_FOR_CHAR with
10646 POS and OBJECT args.
10647
10648 * xterm.c (x_set_mouse_face_gc): Call FACE_FOR_CHAR with
10649 POS and OBJECT args.
10650
106512008-02-01 Jason Rumney <jasonr@gnu.org>
10652
10653 * w32select.c (Fw32_set_clipboard_data): Avoid potential realloc
10654 of GlobalAlloc'ed memory.
10655
106562008-02-01 Kenichi Handa <handa@m17n.org>
10657
10658 * ccl.c (Fccl_execute_on_string): Fix the condition of loop.
10659
10660 * charset.h (charset_table_used): Delete extern.
10661
10662 * charset.c (charset_table_used): Make it static.
10663 (map_charset_chars): Fix args to c_function with.
10664
10665 * chartab.c (map_sub_char_table_for_charset): Fix args to
10666 c_function with.
10667
10668 * coding.h (enum coding_result_code): Delete
10669 CODING_RESULT_INSUFFICIENT_CMP, add CODING_RESULT_INVALID_SRC.
10670
10671 * coding.c (Qinsufficient_source, Qinconsistent_eol)
10672 (Qinvalid_source, Qinterrupted, Qinsufficient_memory): New variables.
10673 (Vlast_code_conversion_error): New variables.
10674 (syms_of_coding): DEFSYM or DEFVAR_LISP them.
10675 (ONE_MORE_BYTE): Record error if any instead of signaling an
10676 error. If non-ASCII multibyte char is found, return the negative
10677 value of the code. All callers changed to check it.
10678 (ONE_MORE_BYTE_NO_CHECK): Likewise.
10679 (record_conversion_result): New function. Change all codes setting
10680 coding->result to call this function.
10681 (detect_coding_utf_8, decode_coding_utf_8)
10682 (detect_coding_emacs_mule, detect_coding_sji, detect_coding_big5):
10683 Don't use the local variable incomplete.
10684 (emacs_mule_char): Change the second arg to `const'.
10685 (decode_coding): Fix of flushing out unprocessed data.
10686 (make_conversion_work_buffer): Fix making of a work buffer.
10687 (decode_coding_object): Return coding->dst_object.
10688
10689 * fontset.c (set_fontset_font): Fix args.
10690
10691 * lisp.h (CHARACTERBITS): Define as 22.
10692
10693 * process.c (send_process): Be sure to set coding->src_multibyte.
10694
10695 * xdisp.c (handle_auto_composed_prop): Fix setting of limit.
10696
106972008-02-01 Kenichi Handa <handa@m17n.org>
10698
10699 * xdisp.c (handle_auto_composed_prop): Give limit to
10700 Fnext_single_char_property_change.
10701
107022008-02-01 Kenichi Handa <handa@m17n.org>
10703
10704 * composite.c (syms_of_composite): Don't make the composition hash
10705 table weak.
10706
10707 * fontset.c (Fset_fontset_font): Fix docstring.
10708
10709 * lisp.h (detect_coding_system): Adjust prototype.
10710
10711 * fileio.c (kill_workbuf_unwind): Delete this function.
10712 (Finsert_file_contents): Adjust the call of detect_coding_system.
10713 Get conversion_buffer by code_conversion_save. Use the macro
10714 CODING_MAY_REQUIRE_DECODING. After decoding, update
10715 coding_system.
10716
10717 * coding.h (make_conversion_work_buffer): Delete extern.
10718 (code_conversion_save): Extern it.
10719
10720 * coding.c (enum iso_code_class_type): Delete ISO_carriage_return.
10721 (CODING_GET_INFO): Delete argument eol_type. Change callers.
10722 (decode_coding_utf_8): Don't do eol converion.
10723 (detect_coding_utf_16): Check coding->src_chars, not
10724 coding->src_bytes. Add heuristics for those that have no signature.
10725 (decode_coding_emacs_mule, decode_coding_iso_2022)
10726 (decode_coding_sjis, decode_coding_big5, decode_coding_charset):
10727 Don't do eol converion.
10728 (adjust_coding_eol_type): Return a new coding system.
10729 (detect_coding): Don't detect eol. Fix for utf-16 detection.
10730 (decode_eol): In case of CRLF->LF conversion, use del_range_2 on
10731 each change.
10732 (decode_coding): Pay attention to undo_list. Do eol conversion for
10733 all types of coding-systems (if necessary).
10734 (Vcode_conversion_work_buf_list): Delete it.
10735 (Vcode_conversion_reused_workbuf): Rename from
10736 Vcode_conversion_reused_work_buf.
10737 (Vcode_conversion_workbuf_name): New variable.
10738 (reused_workbuf_in_use): New variable.
10739 (make_conversion_work_buffer): Delete the arg DEPTH.
10740 (code_conversion_restore): Change argument to cons.
10741 (code_conversion_save): Delete the argument BUFFER. Change callers.
10742 (detect_coding_system): New argument src_chars. Change callers.
10743 Fix for utf-16 detection.
10744 (init_coding_once): Don't use ISO_carriage_return.
10745 (syms_of_coding): Initialize Vcode_conversion_workbuf_name and
10746 reused_workbuf_in_use.
10747
107482008-02-01 Kenichi Handa <handa@m17n.org>
10749
10750 * keymap.c (store_in_keymap): Pay attention to the case that idx
10751 is a cons specifying a character range.
10752
107532008-02-01 Kenichi Handa <handa@m17n.org>
10754
10755 * xdisp.c (handle_auto_composed_prop): Fix the case of returning
10756 HANDLED_RECOMPUTE_PROPS.
10757
10758 * coding.c (Fdefine_coding_system_internal): Fix checking of
10759 ascii compatibility.
10760
107612008-02-01 Kenichi Handa <handa@m17n.org>
10762
10763 * charset.c (find_charsets_in_text): Delete unused locale variable.
10764 (Fset_charset_priority): Update Vemacs_mule_charset_list too.
10765
10766 * coding.c (encode_coding_emacs_mule): Emit bytes with MSB.
10767 Resync charset_list to Vemacs_mule_charset_list.
10768
10769 * keymap.c (store_in_keymap): Pay attention to the case that idx
10770 is a cons specifying a character range.
10771
107722008-02-01 Kenichi Handa <handa@m17n.org>
10773
10774 * composite.c (update_compositions): Bind inhibit-read-only, etc
10775 to t before calling remove-list-of-text-properties.
10776
10777 * print.c (print_object): Always print ASCII chars as is.
10778
107792008-02-01 Kenichi Handa <handa@m17n.org>
10780
10781 * keymap.c (Fdefine_key): Fix handling of Lucid style event type list.
10782
10783 * fns.c (Fmapconcat, Fmapcar, Fmapc): Signal an error if SEQUENCE
10784 is a char table.
10785
107862008-02-01 Kenichi Handa <handa@m17n.org>
10787
10788 * syntax.c (skip_chars): Be sure to alloca char_ranges when necessary.
10789
107902008-02-01 Kenichi Handa <handa@m17n.org>
10791
10792 * xfaces.c (set_lface_from_font_name): Fix for the case that
10793 FONTNAME is not fontset name.
10794
107952008-02-01 Kenichi Handa <handa@m17n.org>
10796
10797 * fns.c (base64_encode_1): Fix previous change.
10798
107992008-02-01 Kenichi Handa <handa@m17n.org>
10800
10801 * fontset.c (set_fontset_font): New function.
10802 (Fset_fontset_font): If a font is specified for a charset, use
10803 map_charset_chars to store the font spec in a fontset.
10804
108052008-02-01 Kenichi Handa <handa@m17n.org>
10806
10807 * fontset.c (fontset_face): Create a fallback fontset on demand.
10808 (make_fontset): Don't create a fallback fontset here.
10809 (free_face_fontset): Free a fallback fontset (if any) too.
10810 (n_auto_fontsets): Delete this variable.
10811 (auto_fontset_alist): New variable.
10812 (new_fontset_from_font_name): Check auto_fontset_alist.
10813 (dump_fontset) [FONTSET_DEBUG]: Fully re-written.
10814 (Ffontset_list_all) [FONTSET_DEBUG]: New function.
10815 (syms_of_fontset): Initialize and staticpro auto_fontset_alist.
10816 Defsubr Sfontset_list_all.
10817
108182008-02-01 Kenichi Handa <handa@m17n.org>
10819
10820 * xterm.c (x_list_fonts): Fix excluding of auto-scaled fonts.
10821
108222008-02-01 Kenichi Handa <handa@m17n.org>
10823
10824 * fontset.c (Fnew_fontset): Check NAME more rigidly.
10825
108262008-02-01 Kenichi Handa <handa@m17n.org>
10827
10828 * editfns.c (Fgoto_char): Fix docstring.
10829
108302008-02-01 Kenichi Handa <handa@m17n.org>
10831
10832 * insdel.c (insert_from_gap): Adjust intervals correctly.
10833
108342008-02-01 Jason Rumney <jasonr@gnu.org>
10835
10836 * w32term.c (GLYPHSET, WCRANGE): Define if system headers don't.
10837 (pfnGetFontUnicodeRanges): New dynamically loaded function.
10838 (w32_initialize): Try to load it.
10839 (x_get_font_repertory): Use it if available.
10840 (w32_encode_char): Add shortcut for unicode output.
10841
10842 * w32fns.c (w32_load_system_font): Default charset to -1.
10843 (x_to_w32_charset): Match all fonts for unicode.
10844 (w32_to_x_charset): New parameter matching. Don't return partial
10845 or wildcard charsets.
10846 (w32_to_all_x_charsets): Don't return partial or wildcard charsets.
10847 (w32_codepage_for_font): Return CP_UNICODE for unicode.
10848 (w32_to_x_font): Match charset to real charset.
10849 (enum_font_cb2): Always list unicode versions.
10850
10851 * makefile.w32-in (temacs): Increase EMHEAP.
10852
108532008-02-01 Jason Rumney <jasonr@gnu.org>
10854
10855 * w32term.c (w32_encode_char): New charset parameter.
10856 font_info.encoding becomes encoding_type.
10857 (x_get_font_repertory): New function. Warning: stub only!
10858 (x_new_font): Return quickly if font already set.
10859 (x_new_fontset): fontsetname parameter is Lisp_Object.
10860 Use new fs_query_fontset. Try new_fontset_from_font_name.
10861 Use fontset_name for return value.
10862
10863 * w32term.h: Declare x_get_font_repertory.
10864
10865 * w32select.c (Fw32_set_clipboard_data): Use string_x_string_p in
10866 place of find_charset_in_text. Use encode_coding_object in place
10867 of encode_coding.
10868 (Fw32_get_clipboard_data): Use decode_coding_c_string in place of
10869 decode_coding.
10870
10871 * w32fns.c (Fx_create_frame, x_create_tip_frame): Use new version
10872 of x_new_fontset.
10873 (w32_load_system_font): Initialize charset as unicode.
10874 font_info.encoding becomes encoding_type.
10875 (w32_to_x_font): Use decode_coding_c_string in place of decode_coding.
10876 (x_to_w32_font): Use encode_coding_object in place of encode_coding.
10877 (syms_of_w32fns): Set get_font_repertory_func.
10878
10879 * w32console.c: Include character.h. Use terminal_encode_buffer
10880 from term.c.
10881 (write_glyphs): Use new version of encode_terminal_code. Use
10882 encode_coding_object in place of encode_coding.
10883
10884 * w32bdf.c (w32_load_bdf_font): Clear font_info before filling.
10885 encoding becomes encoding_type.
10886
10887 * term.c (terminal_encode_buffer): Make externally visible.
10888
10889 * makefile.w32-in: Add character.h dependancies.
10890 (character.o, chartab.o): New targets.
10891
108922008-02-01 Kenichi Handa <handa@m17n.org>
10893
10894 * fileio.c (Finsert_file_contents) [DOS_NT]: Use the macro
10895 CODING_ID_EOL_TYPE.
10896
108972008-02-01 Andreas Schwab <schwab@suse.de>
10898
10899 * coding.c (produce_chars): Revert last change.
10900
109012008-02-01 Kenichi Handa <handa@m17n.org>
10902
10903 * charset.h (charset_unicode): Extern it.
10904
10905 * charset.c (string_xstring_p): Check by (C >= 0x100).
10906 (find_charsets_in_text): Change format of the arc CHARSETS. New
10907 arg MULTIBYTE.
10908 (Ffind_charset_region, Ffind_charset_string): Adjust for the
10909 change of find_charsets_in_text.
10910 (Fsplit_char): Fix doc. Never return unknown.
10911
10912 * chartab.c (char_table_translate): Use CHARACTERP, not INTEGERP.
10913
10914 * coding.c (Fdefine_coding_system_alias): Update
10915 Vcoding_system_list.
10916
10917 * fontset.c (load_font_get_repertory): Pay attention to the case
10918 that ENCODING of a font is specified by a char-table.
10919
10920 * xterm.c (x_get_font_repertory): Handle the case that the
10921 encoding of font is other than Unicode.
10922
109232008-02-01 Kenichi Handa <handa@m17n.org>
10924
10925 * term.c (encode_terminal_code): Don't handle glyph-table. Check
10926 if a character is encodable by the terminal coding system. If
10927 not, produces proper number of `?'s. Update
10928 terminal_encode_buffer and terminal_encode_buf_size if necessary.
10929 (produce_glyphs): Check by CHAR_BYTE8_P, not SINGLE_BYTE_CHAR_P.
10930
109312008-02-01 Kenichi Handa <handa@m17n.org>
10932
10933 * term.c (terminal_encode_buffer, terminal_encode_buf_size): New
10934 variables.
10935 (encode_terminal_code): Change argument. Encode multiple
10936 characters at once. Store the result of encoding in
10937 terminal_encode_buffer.
10938 (write_glyphs, insert_glyphs): Adjust for the change of
10939 encode_terminal_code.
10940 (term_init): Initialize terminal_encode_buffer and
10941 terminal_encode_buf_size.
10942
10943 * coding.c (consume_chars): If coding->src_object is nil, don't
10944 check annotation.
10945
109462008-02-01 Kenichi Handa <handa@m17n.org>
10947
10948 * character.c (char_string): Use ASCII_CHAR_P instead of
10949 SINGLE_BYTE_CHAR_P.
10950
109512008-02-01 Kenichi Handa <handa@m17n.org>
10952
10953 * xdisp.c (handle_auto_composed_prop): Check if the last
10954 characters of auto-composed region is newly composed with the
10955 following characters.
10956 (handle_composition_prop): Fix checking of point being inside
10957 composition.
10958
109592008-02-01 Kenichi Handa <handa@m17n.org>
10960
10961 * fns.c (concat): Don't change multibyteness of the result by
10962 concatenating an 8-bit character.
10963
10964 * data.c (Faset): Check newelt by CHECK_CHARACTER. Don't change
10965 multibyteness of the result when newelt is an 8-bit character.
10966
109672008-02-01 Dave Love <fx@gnu.org>
10968
10969 * xmenu.c (find_and_call_menu_selection): Make menu_bar_items_used
10970 EMACS_INT.
10971
10972 * xfns.c (DefaultDepthOfScreen, x_encode_text): Remove unused vars.
10973
10974 * xfaces.c (face_numeric_value): Declare dim size_t.
10975 (Finternal_lisp_face_equal_p): Remove unused f.
10976
10977 * xdisp.c (BUILD_CHAR_GLYPH_STRINGS, display_and_set_cursor)
10978 (MATRIX_ROW): Remove unused vars.
10979 (draw_glyphs, x_insert_glyphs, fast_find_position)
10980 (fast_find_position, fast_find_string_pos): Use EMACS_INT for
10981 byte/char counts.
10982
10983 * regex.c (regex_compile): Remove unused var.
10984
10985 * minibuf.c (Fminibuffer_complete_word): Remove unused var.
10986
10987 * keymap.c (Fset_keymap_parent, map_keymap, Fcopy_keymap)
10988 (Faccessible_keymaps, where_is_internal): Remove unused vars.
10989
10990 * keyboard.c (cancel_hourglass_unwind): Return Qnil.
10991
10992 * frame.c (frame_name_fnn_p): Make len EMACS_INT.
10993
10994 * fileio.c (Fwrite_region): Remove unused var.
10995
10996 * dispnew.c (adjust_frame_glyphs_for_frame_redisplay)
10997 (adjust_frame_glyphs_for_window_redisplay): Remove unused ch_dim.
10998
10999 * composite.c (Fremove_list_of_text_properties): Declare.
11000
11001 * coding.c (inhibit_pre_post_conversion): Remove (unused).
11002 (alloc_destination, produce_chars): Use EMACS_INT for byte/char counts.
11003 (coding_inherit_eol_type): Remove unused attrs.
11004 (detect_coding): Cast arg of detect_eol.
11005
11006 * charset.c (syms_of_charset): Remove unused var p.
11007 (find_charsets_in_text, Ffind_charset_region): Use EMACS_INT for
11008 byte/char counts.
11009
11010 * casetab.c (set_case_table): Remove unused var.
11011
11012 * window.c (Fdisplay_buffer, Fframe_selected_window): Remove
11013 unused vars.
11014
110152008-02-01 Dave Love <fx@gnu.org>
11016
11017 * xterm.c (x_bitmap_mask): Declare.
11018
110192008-02-01 Dave Love <fx@gnu.org>
11020
11021 * xterm.c (x_term_init): Fix type error.
11022
11023 * lisp.h: Add Funibyte_char_to_multibyte.
11024
11025 * coding.c (Fread_coding_system): Fix arg of XSETSTRING.
11026 (Fset_coding_system_priority): Doc fix.
11027
11028 * ccl.c (ccl_driver): Fix arg of CHARACTERP.
11029
11030 * indent.c (check_composition): Make start and end EMACS_INT.
11031
11032 * character.c (lisp_string_width): Make ignore and end EMACS_INT.
11033
11034 * xdisp.c (handle_composition_prop, check_point_in_composition):
11035 Make buffer positions EMACS_INT.
11036
11037 * composite.c (find_composition, run_composition_function)
11038 (update_compositions, Ffind_composition_internal): Make buffer
11039 positions EMACS_INT.
11040
11041 * composite.h (find_composition, update_compositions): Make
11042 position args EMACS_INT.
11043
11044 * keyboard.c (adjust_point_for_property): Make beg and end EMACS_INT.
11045
11046 * intervals.c (get_property_and_range):
11047 * intervals.h (get_property_and_range): Make start and end EMACS_INT.
11048
11049 * unexalpha.c: Don't include varargs.h.
11050
110512008-02-01 Dave Love <fx@gnu.org>
11052
11053 * coding.h (ENCODE_UTF_8): New.
11054
11055 * Makefile.in (gtkutil.o): Depend on coding.h.
11056
11057 * coding.c (Fset_coding_system_priority): Doc fix.
11058
110592008-02-01 Kenichi Handa <handa@m17n.org>
11060
11061 * fileio.c (Finsert_file_contents): Call setup_coding_system in
11062 the case of auto saving.
11063
110642008-02-01 Andreas Schwab <schwab@suse.de>
11065
11066 * chartab.c (map_char_table, map_char_table_for_charset): Protect
11067 `range' from GC.
11068
110692008-02-01 Kenichi Handa <handa@m17n.org>
11070
11071 * coding.c (decode_coding_sjis): Check bytes more rigidly.
11072
110732008-02-01 Kenichi Handa <handa@m17n.org>
11074
11075 * fileio.c (choose_write_coding_system): Return a decided coding system.
11076 (Fwrite_region): Set Vlast_coding_system_used to the return value
11077 of choose_write_coding_system.
11078
110792008-02-01 Kenichi Handa <handa@m17n.org>
11080
11081 * charset.c (Fset_charset_priority): Pay attention to duplicated
11082 arguments.
11083
11084 * coding.c (QCcategory): New variable.
11085 (syms_of_coding): Defsym it. Set all elements of
11086 Vcoding_category_table and their symbol values.
11087 (Fset_coding_system_priority): Doc fix. Update symbol qvalues of
11088 coding-category-XXX, and coding-category-list.
11089 (Fdefine_coding_system_internal): Add category in the plist.
11090
110912008-02-01 Kenichi Handa <handa@m17n.org>
11092
11093 * callproc.c (Fcall_process): Handle carryover correctly.
11094
11095 * coding.c (decode_coding_iso_2022): Fix handling of invalid bytes.
11096 (raw_text_coding_system): Check NILP (coding_system).
11097 (coding_inherit_eol_type): Check NILP (coding_system) and
11098 NILP (parent).
11099 (consume_chars): Fix for the case of raw-text.
11100
11101 * process.c (read_process_output): Handle carryover correctly.
11102
111032008-02-01 Dave Love <fx@gnu.org>
11104
11105 * regex.c (re_search_2): Fix last change.
11106
111072008-02-01 Kenichi Handa <handa@m17n.org>
11108
11109 * regex.c (GET_CHAR_BEFORE_2): Check multibyte, not
11110 target_multibyte. Even in a unibyte case, return a converted
11111 multibyte char.
11112 (GET_CHAR_AFTER): New macro.
11113 (PATFETCH): Translate via multibyte char.
11114 (HANDLE_UNIBYTE_RANGE): Delete this macro.
11115 (SETUP_MULTIBYTE_RANGE): New macro.
11116 (regex_compile): Setup compiled code so that its multibyteness
11117 matches that of a target. Fix the handling of "[X-YZ]" using
11118 SETUP_MULTIBYTE_RANGE.
11119 (analyse_first) <charset>: For filling fastmap for all multibyte
11120 characters, don't check by BASE_LEADING_CODE_P.
11121 (re_search_2): Don't check RE_TARGET_MULTIBYTE_P (bufp). It is
11122 the same as RE_MULTIBYTE_P (bufp) now.
11123 (mutually_exclusive_p): Check by (! multibyte || IS_REAL_ASCII (c)).
11124 (TARGET_CHAR_AND_LENGTH): Delete this macro.
11125 (TRANSLATE_VIA_MULTIBYTE): New macro.
11126 (re_match_2_internal): Don't check RE_TARGET_MULTIBYTE_P (bufp).
11127 It is the same as RE_MULTIBYTE_P (bufp) now.
11128 <exactn>: Translate via multibyte.
11129 <anychar>: Fetch a character by RE_STRING_CHAR_AND_LENGTH. Don't
11130 translate it.
11131 <charset, charset_not>: Fetch a character by
11132 RE_STRING_CHAR_AND_LENGTH. Translate via multibyte.
11133 <duplicate>: Call bcmp_translate with the last arg `multibyte'.
11134 <wordbound, notwordbound, wordbeg, wordend, syntaxspec,
11135 notsyntaxspec, categoryspec, notcategoryspec> Fetch a character
11136 by GET_CHAR_AFTER.
11137 (bcmp_translate): Likewise.
11138
11139 * search.c (compile_pattern): Check the member target_multibyte,
11140 not the member multibyte of buf.
11141
11142 * lread.c (read1): While reading a string, set force_singlebyte
11143 and force_multibyte correctly.
11144
11145 * charset.c (Fset_unibyte_charset, init_charset_once): Fix setting
11146 up of unibyte_to_multibyte_table.
11147
111482008-02-01 Kenichi Handa <handa@m17n.org>
11149
11150 * coding.c (setup_coding_system): If coding has
11151 post-read-conversion or pre-write-conversion, set
11152 CODING_REQUIRE_DECODING_MASK and CODING_REQUIRE_ENCODING_MASK
11153 respectively.
11154 (decode_coding_gap): Run post-read-conversion if any.
11155
11156 * fileio.c (Finsert_file_contents): Even if we read into a
11157 unibyte buffer, check if we must decode the result or not.
11158
111592008-02-01 Kenichi Handa <handa@m17n.org>
11160
11161 * coding.c (make_conversion_work_buffer): Change the work buffer
11162 name to the same one as that of Emacs 21.
11163
111642008-02-01 Kenichi Handa <handa@m17n.org>
11165
11166 * coding.h (make_conversion_work_buffer): Adjust prototype.
11167 (code_conversion_restore): Don't extern it.
11168
11169 * coding.c (detected_mask): Delete unused variable.
11170 (decode_coding_iso_2022): Pay attention to the byte sequence of
11171 CTEXT extended segment, and retain those bytes as is.
11172 (decode_coding_ccl): Delete unused variable `valids'.
11173 (setup_coding_system): Delete unused variable `category'.
11174 (consume_chars): Delete unused variable `category'. Make it work
11175 for non-multibyte case.
11176 (make_conversion_work_buffer): Change argument.
11177 (saved_coding): Delete unused variable.
11178 (code_conversion_restore): Don't check saved_coding->destination.
11179 (code_conversion_save): New function.
11180 (decode_coding_gap, encode_coding_gap): Call code_conversion_save
11181 instead of record_unwind_protect.
11182 (decode_coding_object, encode_coding_object): Likewise. Recover PT.
11183 (detect_coding_system): Delete unused variable `mask'.
11184 (Fdefine_coding_system_internal): Delete unused variable id.
11185
11186 * fileio.c (kill_workbuf_unwind): New function.
11187 (Finsert_file_contents): On replacing, call
11188 make_conversion_work_buffer with correct args, and call
11189 record_unwind_protect with the first arg kill_workbuf_unwind.
11190
11191 * lisp.h (Fgenerate_new_buffer_name): EXFUN it.
11192
111932008-02-01 Kenichi Handa <handa@m17n.org>
11194
11195 * fontset.c (BASE_FONTSET_P): Check FONTSET_BASE, not FONTSET_NAME.
11196 (fontset_add): Fix for the case that TO is less than TO1.
11197 (Ffontset_info): Don't use fallback fontset on checking the
11198 default fontset.
11199 (dump_fontset): New function for debugging.
11200
11201 * coding.c (Fdefine_coding_system_internal): Fix for the case that
11202 coding_type is Qcharset.
11203
112042008-02-01 Kenichi Handa <handa@m17n.org>
11205
11206 * chartab.c (map_sub_char_table): New argument DEFAULT_VAL.
11207 (map_char_table): Don't inherit the value from the parent on
11208 initializing VAL. Adjust for the above change.
11209
112102008-02-01 Kenichi Handa <handa@m17n.org>
11211
11212 * coding.c (Qsignature, Qendian): Delete these variables.
11213 (syms_of_coding): Don't initialize them.
11214 (CATEGORY_MASK_UTF_16_AUTO): New macro.
11215 (detect_coding_utf_16): Add CATEGORY_MASK_UTF_16_AUTO in
11216 detect_info->found.
11217 (decode_coding_utf_16): Don't detect BOM here.
11218 (encode_coding_utf_16): Produce BOM if CODING_UTF_16_BOM (coding)
11219 is NOT utf_16_without_bom.
11220 (setup_coding_system): For a coding system of type utf-16, check
11221 if the attribute :endian is Qbig or not (not nil or not), and set
11222 CODING_REQUIRE_DETECTION_MASK if BOM detection is required.
11223 (detect_coding): If coding type is utf-16 and BOM detection is
11224 required, detect it.
11225 (Fdefine_coding_system_internal): For a coding system of type
11226 utf-16, check if the attribute :endian is Qbig or not (not nil or not).
11227
112282008-02-01 Kenichi Handa <handa@m17n.org>
11229
11230 * coding.c (coding_set_source): Fix for the case that the current
11231 buffer is different from coding->src_object.
11232 (decode_coding_object): Don't use the conversion work buffer if
11233 DST_OBJECT is a buffer.
11234
112352008-02-01 Dave Love <fx@gnu.org>
11236
11237 * lread.c (read_emacs_mule_char) [len==2]: Index
11238 emacs_mule_charset correctly.
11239
112402008-02-01 Dave Love <fx@gnu.org>
11241
11242 * coding.c (Qbig5, Vbig5_coding_system, CATEGORY_MASK_BIG5)
11243 (detect_coding_big5, decode_coding_big5, encode_coding_big5)
11244 (Fdecode_big5_char, Fencode_big5_char): Delete. (Big5 no longer
11245 treated specially.)
11246 (setup_coding_system, coding_category, CATEGORY_MASK_ANY)
11247 (detected_mask): Remove Big5 bits.
11248
112492008-02-01 Kenichi Handa <handa@m17n.org>
11250
11251 The following changes are to make the font rescaling facility
11252 compatible with Emacs 21.
11253
11254 * xfaces.c (Vface_font_rescale_alist): Rename from
11255 Vface_resizing_fonts.
11256 (struct font_name): Rename member resizing_ratio to rescale_ratio.
11257 (font_rescale_ratio): Rename from font_resizing_ratio.
11258 (split_font_name): Set font->rescale_ratio.
11259 (better_font_p): Pay attention to font->rescale_ratio.
11260 (build_scalable_font_name): Likewise. Change RESX, and RESY
11261 fields.
11262 (syms_of_xfaces): Declare Vface_font_rescale_alist as a Lisp variable.
11263
112642008-02-01 Kenichi Handa <handa@m17n.org>
11265
11266 * coding.c (Qutf_16_be_nosig, Qutf_16_be, Qutf_16_le_nosig)
11267 (Qutf_16_le): Remove these variables.
11268 (syms_of_coding): Don't DEFSYM them.
11269 (decode_coding_utf_16): Fix handling of BOM.
11270 (encode_coding_utf_16): Fix handling of BOM.
11271
112722008-02-01 Kenichi Handa <handa@m17n.org>
11273
11274 * fileio.c (Finsert_file_contents): On replacing, before decoding
11275 the file into the work buffer, set point of the work buffer to the end.
11276
112772008-02-01 Dave Love <fx@gnu.org>
11278
11279 * coding.c (Fcheck_coding_systems_region): Fix type errors.
11280
112812008-02-01 Dave Love <fx@gnu.org>
11282
11283 * xterm.c (XTread_socket): Check Lisp types for Vx_keysym_table
11284 and fix C types.
11285
112862008-02-01 Kenichi Handa <handa@m17n.org>
11287
11288 * xdisp.c (SKIP_GLYPHS): New macro.
11289 (set_cursor_from_row): Pay attention to string display properties.
11290
11291 * category.c (copy_category_entry): Fix for the case that RANGE
11292 is an integer.
11293
11294 * xterm.c (x_encode_char): Call ccl_driver with the last arg Qnil.
11295
11296 * w32term.c (w32_encode_char): Call ccl_driver with the last arg Qnil.
11297
112982008-02-01 Kenichi Handa <handa@m17n.org>
11299
11300 * charset.c (Fcharset_id_internal): New function.
11301 (syms_of_charset): Defsubr it.
11302
11303 * coding.c (decode_coding_ccl, encode_coding_ccl): Call ccl_driver
11304 with the last arg charset_list acquired from coding.
11305 (Fdefine_coding_system_internal): For ccl-based coding system, fix
11306 the attribute coding_attr_ccl_valids.
11307
11308 * coding.h (enum define_coding_ccl_arg_index): Set the first
11309 member coding_arg_ccl_decoder to coding_arg_max.
11310
11311 * ccl.h (ccl_driver): Adjust prototype.
11312
11313 * ccl.c (CCL_DECODE_CHAR, CCL_ENCODE_CHAR): New macros.
11314 (ccl_driver): New arg CHARSET_LIST. Use the above macros instead
60612c8f 11315 of DECODE_CHAR, ENCODE_CHAR, CHAR_CHARSET.
aac0c6e3
MR
11316 (Fccl_execute, Fccl_execute_on_string): Call ccl_driver with the
11317 last arg Qnil.
11318
113192008-02-01 Kenichi Handa <handa@m17n.org>
11320
11321 * charset.h (ENCODE_CHAR): If the method is SUBSET or SUPERSET,
11322 call encode_char.
11323
11324 * charset.c (encode_char): Fix handling of methods SUBSET and SUPERSET.
11325
113262008-02-01 Dave Love <fx@gnu.org>
11327
11328 * composite.c (syms_of_composite): Make composition_hash_table weak.
11329
113302008-02-01 Kenichi Handa <handa@m17n.org>
11331
11332 * dispextern.h (check_face_attributes, generate_ascii_font_name)
11333 (font_name_registry): Don't extern them.
11334 (split_font_name_into_vector, build_font_name_from_vector): Extern them.
11335
11336 * fontset.h (Qfontset): Don't extern it.
11337 (new_fontset_from_font_name): Extern it.
11338
11339 * fontset.c: Give 8 extra slots to fontset objects.
11340 (Qfontset_info): New variable.
11341 (syms_of_fontset): Defsym it.
11342 (FONTSET_FALLBACK): New macro.
11343 (fontset_face): Try also the default fontset.
11344 (make_fontset): Realize a fallback fontset from the default fontset.
11345 (generate_ascii_font_name): Move from xfaces.c. Rewritten by
11346 using split_font_name_into_vector and build_font_name_from_vector.
11347 (Fset_fontset_font): Access the elements of font_spec by enum
11348 FONT_SPEC_INDEX. If font_spec is a string, extract the registry
11349 name by using split_font_name_into_vector.
11350 (Fnew_fontset): If no ASCII font is specified in FONTLIST,
11351 generate a proper font name from the fontset name. Update
11352 Vfontset_alias_alist.
11353 (n_auto_fontsets): New variable.
11354 (new_fontset_from_font_name): New function.
11355 (Ffont_info): Store the information about fonts generated from the
11356 default fontset in the first extra slot of the returned char-table.
11357
11358 * xfaces.c (generate_ascii_font_name): Move to fontset.c.
11359 (font_name_registry): Delete function.
11360 (split_font_name_into_vector): New function.
11361 (build_font_name_from_vector): New function.
11362 (font_list): The argument REGISTRY is now a list of registry names.
11363 (choose_face_font): If we are choosing an ASCII font, and ATTRS
11364 specifies an explicit font name, return the name as is. Make a
11365 list of registy names.
11366
11367 * xfns.c (x_set_font, x_create_tip_frame): Adjust for the change
11368 of x_new_fontset.
11369 (Fx_create_frame): Don't call x_new_fontset here. Just use
11370 x_list_fonts to check the existence of fonts.
11371
11372 * xterm.h (x_new_fontset): Adjust prototype.
11373
11374 * xterm.c (x_new_fontset): Change the arg FONTSETNAME to Lisp
11375 string. Use new_fontset_from_font_name to create a fontset from a
11376 font name.
11377
113782008-02-01 Kenichi Handa <handa@m17n.org>
11379
11380 * syntax.c (Vfind_word_boundary_function_table): New name for
11381 Vnext_word_boundary_function_table.
11382 (find-word-boundary-function-table): New name for
11383 next-word-boundary-function-table.
11384
113852008-02-01 Dave Love <fx@gnu.org>
11386
11387 * Makefile.in: Fix some dependencies.
11388
11389 * keymap.c (Fapropos_internal): Don't gcpro apropos_predicate but
11390 set it to nil before returning.
11391
11392 * composite.c (update_compositions): Fix type error.
11393
11394 * syntax.c (skip_chars, skip_syntaxes): Fix type errors.
11395
113962008-02-01 Kenichi Handa <handa@m17n.org>
11397
11398 * xterm.c (x_new_font): Optimize for the case that the font is
11399 already set for the frame.
11400
114012008-02-01 Kenichi Handa <handa@m17n.org>
11402
11403 * chartab.c (char_table_ascii): Check if the char table contents
11404 is sub-char-table or not.
11405 (char_table_set, char_table_set_range): Fix argument to
11406 char_table_ascii.
11407
11408 * coding.c (CATEGORY_MASK_RAW_TEXT): New macro.
11409 (detect_coding_utf_8, detect_coding_utf_16)
11410 (detect_coding_emacs_mule, detect_coding_iso_2022)
11411 (detect_coding_sjis, detect_coding_big5)
11412 (detect_coding_ccl, detect_coding_charset): Change argument MASK
11413 to DETECT_INFO. Update DETECT_INFO and return 1 if the byte
11414 sequence is valid in this coding system. Change callers.
11415 (MAX_ANNOTATION_LENGTH): New macro.
11416 (ADD_ANNOTATION_DATA): New macro.
11417 (ADD_COMPOSITION_DATA): Change argument. Change callers. Call
11418 ADD_ANNOTATION_DATA. Change the format of annotation data.
11419 (ADD_CHARSET_DATA): New macro.
11420 (emacs_mule_char): New argument ID. Change callers.
11421 (decode_coding_emacs_mule, decode_coding_iso_2022)
11422 (decode_coding_sjis, decode_coding_big5, decode_coding_charset):
11423 Produce charset annotation data in coding->charbuf.
11424 (encode_coding_emacs_mule, encode_coding_iso_2022): Pay attention
11425 to charset annotation data in coding->charbuf.
11426 (setup_coding_system): Add CODING_ANNOTATE_CHARSET_MASK
11427 coding->common_flags if the coding system is iso-2022 based and
11428 uses designation.
11429 (produce_composition): Adjust for the new annotation data format.
11430 (produce_charset): New function.
11431 (produce_annotation): Handle charset annotation.
11432 (handle_composition_annotation, handle_charset_annotation): New
11433 functions.
11434 (consume_chars): Handle charset annotation. Utilize the above two
11435 functions.
11436 (encode_coding_object): If SRC_OBJECT and DST_OBJECT are the same
11437 buffer, get the deleted text as a string and set
11438 coding->src_object to that string.
11439 (detect_coding, detect_coding_system): Use the new struct
11440 coding_detection_info.
11441
11442 * coding.h (struct coding_detection_info): New structure.
11443 (struct coding_system): Adjust prototype of the member `detector'.
11444 (CODING_ANNOTATE_CHARSET_MASK): New macro.
11445
114462008-02-01 Kenichi Handa <handa@m17n.org>
11447
11448 * insdel.c (insert_from_gap): Fix argument to offset_intervals.
11449
114502008-02-01 Dave Love <fx@gnu.org>
11451
11452 * keymap.c (apropos_predicate, apropos_accumulate): Declare static.
11453 (Fapropos_internal): Don't gcpro apropos_accumulate. Set result
11454 to new local and nullify apropos_accumulate before returning.
11455 (syms_of_keymap): Staticpro and initialize apropos_accumulate.
11456
114572008-02-01 Kenichi Handa <handa@m17n.org>
11458
11459 * charset.c (Fdefine_charset_internal): Setup charset.fast_map
11460 correctly.
e3eea1fc 11461
aac0c6e3
MR
114622008-02-01 Dave Love <fx@gnu.org>
11463
11464 * fns.c (Flanginfo): Call synchronize_system_time_locale.
11465
114662008-02-01 Kenichi Handa <handa@m17n.org>
11467
11468 The following changes are to make character composition happen
11469 automatically on displaying.
11470
11471 * Makefile.in (lisp, shortlisp): Add composite.elc.
11472
11473 * composite.h (Qauto_composed, Vauto_composition_function)
11474 (Qauto_composition_function): Extern them.
11475
11476 * composite.c (Vcomposition_function_table)
11477 (Qcomposition_function_table): Delete variables.
11478 (Qauto_composed, Vauto_composition_function)
11479 (Qauto_composition_function): New variables.
11480 (run_composition_function): Don't call
11481 compose-chars-after-function.
11482 (update_compositions): Clear `auto-composed' text property.
11483 (compose_chars_in_text): Delete this function.
11484 (syms_of_composite): Staticpro Qauto_composed and
11485 Qauto_composition_function. Declare Vauto_composition_function as
11486 a Lisp variable.
11487
11488 * dispextern.h (enum prop_idx): Add member AUTO_COMPOSED_PROP_IDX.
11489
11490 * xdisp.c (it_props): Add an entry for Qauto_composed.
11491 (handle_auto_composed_prop): New function.
11492
11493 * xselect.c (selection_data_to_lisp_data): Don't call
11494 compose_chars_in_text.
11495
114962008-02-01 Dave Love <fx@gnu.org>
11497
11498 * keyboard.c (read_char): Modify checking around use of
11499 Vkeyboard_translate_table.
11500
11501 * xterm.c (XTread_socket): Check Lisp types for Vx_keysym_table
11502 and fix C types.
11503
115042008-02-01 Kenichi Handa <handa@m17n.org>
11505
11506 * coding.c (decode_coding_utf_8, decode_coding_emacs_mule)
11507 (decode_coding_iso_2022, decode_coding_sjis, decode_coding_big5)
11508 (decode_coding_charset, produce_chars): When eol_type is Qdos, handle
11509 the case that the last byte is '\r' correctly.
11510 (decode_coding): Flush out the unprocessed data correctly.
11511 (decode_coding_gap): Set CODING_MODE_LAST_BLOCK bit of coding->mode.
11512
115132008-02-01 Dave Love <fx@gnu.org>
11514
11515 * xterm.c (XTread_socket): Fix changes for defined keysyms.
11516 Add XK_ISO... case.
11517 (xaw_scroll_callback): Revert last change.
11518
115192008-02-01 Kenichi Handa <handa@m17n.org>
11520
11521 * charset.c (Fset_charset_priority): Update Viso_2022_charset_list.
11522
115232008-02-01 Kenichi Handa <handa@m17n.org>
11524
11525 * xfaces.c (Vface_resizing_fonts): New variable.
11526 (struct font_name): New member `resizing_ratio'.
11527 (font_resizing_ratio): New function.
11528 (split_font_name): Set font->resizing_ratio.
11529 (better_font_p): Pay attention to font->resizing_ratio.
11530 (build_scalable_font_name): Likewise. Don't change POINT_SIZE,
11531 RESX, and RESY fields.
11532 (try_alternative_families): Try scalable fonts if
11533 Vscalable_fonts_allowed is not Qt.
11534 (syms_of_xfaces): Declare Vface_resizing_fonts as a Lisp variable.
11535
115362008-02-01 Dave Love <fx@gnu.org>
11537
11538 * xterm.c (xaw_scroll_callback): Cast correctly.
11539
115402008-02-01 Dave Love <fx@gnu.org>
11541
11542 * keyboard.c (lispy_accent_codes, lispy_accent_keys): Extend.
11543 (lispy_kana_keys): Comment out.
11544 (make_lispy_event) [XK_kana_A]: Comment out.
11545
11546 * xterm.c (xaw_scroll_callback): Cast call_data.
11547 (XTread_socket): Deal with ASCII keysyms.
11548 (syms_of_xterm) <Vx_keysym_table>: Fix args of make_hash_table.
11549
115502008-02-01 Dave Love <fx@gnu.org>
11551
11552 * xterm.c (Vx_keysym_table): New.
11553 (syms_of_xterm): Initialize it.
11554 (XTread_socket): Use it.
11555 From head: Eliminate incorrect optimization that tried to avoid
11556 decoding the output of X*LookupString.
11557 (x_get_font_repertory): Delete charset declaration.
11558
115592008-02-01 Kenichi Handa <handa@m17n.org>
11560
11561 * coding.c (detect_coding_charset): If only ASCII bytes are found,
11562 return 0.
11563 (Fdefine_coding_system_internal): Setup
11564 CODING_ATTR_ASCII_COMPAT (attrs) correctly.
11565
115662008-02-01 Dave Love <fx@gnu.org>
11567
11568 * coding.c (Fcheck_coding_system): Doc fix.
11569
11570 * editfns.c (Finsert_byte): Return a proper value.
11571
115722008-02-01 Kenichi Handa <handa@m17n.org>
11573
11574 * coding.c (decode_coding): Fix args to translate_chars. Pay
11575 attention to Vstandard_translation_table_for_decode.
11576 (encode_coding): Fix args to translate_chars. Pay attention to
11577 Vstandard_translation_table_for_encode.
11578
11579 * data.c (Faset): Check NEWELT by ASCII_CHAR_P, not by
11580 SINGLE_BYTE_CHAR_P.
11581
11582 * editfns.c (general_insert_function): Check VAL by ASCII_CHAR_P,
11583 not by SINGLE_BYTE_CHAR_P.
11584
11585 * fns.c (concat): Check CH by ASCII_CHAR_P, not by
11586 SINGLE_BYTE_CHAR_P.
11587
11588 * insdel.c (copy_text): Check C by ASCII_CHAR_P, not by
11589 SINGLE_BYTE_CHAR_P.
11590
11591 * keymap.c (Ftext_char_description): Check C by ASCII_CHAR_P, not
11592 by SINGLE_BYTE_CHAR_P.
11593
11594 * search.c (Freplace_match): Check C by ASCII_CHAR_P, not by
11595 SINGLE_BYTE_CHAR_P.
11596
115972008-02-01 Dave Love <fx@gnu.org>
11598
11599 * fns.c (Fstring_as_multibyte, Fstring_to_multibyte): Doc fix.
11600
116012008-02-01 Dave Love <fx@gnu.org>
11602
11603 * fns.c (Flanginfo): Fix typo.
11604
11605 * unexelf.c (unexec): Make last change conditional on Irix 6.5.
11606
116072008-02-01 Kenichi Handa <handa@m17n.org>
11608
11609 * coding.c (detect_coding_utf_8, detect_coding_utf_16)
11610 (detect_coding_emacs_mule, detect_coding_iso_2022)
11611 (detect_coding_sjis, detect_coding_big5, detect_coding_ccl): Check
11612 incomplete byte sequence. Don't update *mask when correctly detected.
11613 (decode_coding_sjis): Fix decoding of katakana-jisx0201.
11614 (detect_eol): Delete the argument CODING, and add the argument CATEGORY.
11615 (detect_coding, detect_coding_system): Adjust for the changes above.
11616
116172008-02-01 Kenichi Handa <handa@m17n.org>
11618
11619 * character.c (char_string): Rename from
11620 char_string_with_unification. Pay attention to CHAR_MODIFIER_MASK.
11621 (string_char): Rename from string_char.
11622
11623 * character.h (CHAR_STRING, CHAR_STRING_ADVANCE): Call char_string
11624 if C is greater than MAX_3_BYTE_CHAR.
11625 (STRING_CHAR, STRING_CHAR_AND_LENGTH, STRING_CHAR_ADVANCE): Call
11626 string_char instead of string_char_with_unification.
11627
116282008-02-01 Dave Love <fx@gnu.org>
11629
11630 * coding.c (decode_coding_utf_8): Treat surrogates as invalid.
11631
116322008-02-01 Kenichi Handa <handa@m17n.org>
11633
11634 * keymap.c (push_key_description): Pay attention to force_multibyte.
11635
11636 * regex.c (re_search_2): Fix for the case of unibyte buffer.
11637
116382008-02-01 Dave Love <fx@gnu.org>
11639
11640 * charset.c (define_charset_internal): Rename `supprementary'.
11641
11642 * Makefile.in (lisp, shortlisp): Remove latin-N.
11643
116442008-02-01 Dave Love <fx@gnu.org>
11645
11646 * xfns.c (x_window, x_window): Use use_xim.
11647
11648 * xterm.c (use_xim): Initialize.
11649 (xim_open_dpy, xim_initialize, xim_close_dpy): Use use_xim.
11650 (x_term_init): Maybe set use_xim.
11651
11652 * xterm.h (use_xim) [HAVE_X_I18N]: Declare.
11653
116542008-02-01 Kenichi Handa <handa@m17n.org>
11655
11656 * search.c (search_buffer): Fix case-fold-search of multibyte
11657 characters.
11658 (boyer_moore): Rename the last argument to char_high_bits.
11659
116602008-02-01 Kenichi Handa <handa@m17n.org>
11661
11662 * xdisp.c (display_string): Fix for the case of zero width glyph.
11663
11664 * xfns.c (x_set_font): Change the error message of the case that
11665 x_new_fontset returns Qt.
11666
11667 * xfaces.c (set_lface_from_font_name): Reject the default fontset.
11668 (Finternal_set_lisp_face_attribute): Use signal_error for the
11669 error of invalid fontset.
11670
11671 * xterm.c (x_new_fontset): If FONTSETNAME specifies the default
11672 fontset, return Qt.
11673
116742008-02-01 Dave Love <fx@gnu.org>
11675
11676 * unexelf.c (unexec): Make .got handling not SGI-specific.
11677
11678 * syntax.c (syms_of_syntax) <multibyte-syntax-as-symbol>: Doc fix.
11679
11680 * regex.c: Use `ifdef HAVE_ALLOCA_H', not `if HAVE_ALLOCA_H'.
11681
11682 * keyboard.c (read_key_sequence): Fix type error.
11683
11684 * buffer.c (Fset_buffer_multibyte, Fset_buffer_multibyte): Fix
11685 type error.
11686
11687 * fontset.c (fontset_add): Return Lisp_Object.
11688
116892008-02-01 Dave Love <fx@gnu.org>
11690
11691 * charset.h (charset_ordered_list_tick): Declare extern.
11692
116932008-02-01 Kenichi Handa <handa@m17n.org>
11694
11695 The following changes (and some of 2008-02-01 changes of mine) are
11696 for handling syntax, category, and case conversion for unibyte
11697 characters by converting them to multibyte on the fly. With these
11698 changes, we don't have to setup syntax and case tables for unibyte
11699 characters in each language environment.
11700
11701 * abbrev.c (Fexpand_abbrev): Convert a unibyte character to
11702 multibyte if necessary.
11703
11704 * bytecode.c (Fbyte_code): Likewise.
11705
11706 * character.h (LEADING_CODE_LATIN_1_MIN)
11707 (LEADING_CODE_LATIN_1_MAX): New macros.
11708 (unibyte_to_multibyte_table): Extern it.
11709 (unibyte_char_to_multibyte): New macro.
11710 (MAKE_CHAR_MULTIBYTE): Use unibyte_to_multibyte_table.
11711 (CHAR_LEADING_CODE): New macro.
11712 (FETCH_STRING_CHAR_AS_MULTIBYTE_ADVANCE): New macro.
11713
11714 * character.c (unibyte_to_multibyte_table): New variable.
11715 (unibyte_char_to_multibyte): Move to character.h and define as macro.
11716 (multibyte_char_to_unibyte): If C is an eight-bit character,
11717 convert it to the corresponding byte value.
11718
11719 * charset.c (Fset_unibyte_charset): If the dimension of CHARSET is
11720 not 1, signals an error. Update the elements of
11721 unibyte_to_multibyte_table.
11722 (init_charset_once): Initialize unibyte_to_multibyte_table.
11723 (syms_of_charset): Define the charset `iso-8859-1'.
11724
11725 * cmds.c (internal_self_insert): In a multibyte buffer, insert C
11726 as is without converting it to unibyte. In a unibyte buffer,
11727 convert C to multibyte before checking the syntax.
11728
11729 * lisp.h (unibyte_char_to_multibyte): Delete extern.
11730
11731 * minibuf.c (Fminibuffer_complete_word): Use the macro
11732 FETCH_STRING_CHAR_AS_MULTIBYTE_ADVANCE.
11733
11734 * regex.h (struct re_pattern_buffer): New member target_multibyte.
11735
11736 * regex.c (RE_TARGET_MULTIBYTE_P): New macro.
11737 (GET_CHAR_BEFORE_2): Check target_multibyte, not multibyte. If
11738 that is zero, convert an eight-bit char to multibyte.
11739 (MAKE_CHAR_MULTIBYTE, CHAR_LEADING_CODE): New dummy new macros for
11740 non-emacs case.
11741 (PATFETCH): Convert an eight-bit char to multibyte.
11742 (HANDLE_UNIBYTE_RANGE): New macro.
11743 (regex_compile): Setup the compiled pattern for multibyte chars
11744 even if the given regex string is unibyte. Use PATFETCH_RAW
11745 instead of PATFETCH in many places. To handle `charset'
11746 specification of unibyte, call HANDLE_UNIBYTE_RANGE. Use bitmap
11747 only for ASCII chars.
11748 (analyse_first) <exactn>: Simplify because the compiled pattern
11749 is multibyte.
11750 <charset_not>: Setup fastmap from bitmap only for ASCII chars.
11751 <charset>: Use CHAR_LEADING_CODE to get leading codes.
11752 <categoryspec>: If multibyte, setup fastmap only for ASCII chars here.
11753 (re_compile_fastmap) [emacs]: Call analyse_first with the arg
11754 multibyte always 1.
11755 (re_search_2): In emacs, set the locale variable multibyte to 1,
11756 otherwise to 0. New local variable target_multibyte. Check it
11757 to decide the multibyteness of STR1 and STR2. If
11758 target_multibyte is zero, convert unibyte chars to multibyte
11759 before translating and checking fastmap.
11760 (TARGET_CHAR_AND_LENGTH): New macro.
11761 (re_match_2_internal): In emacs, set the locale variable multibyte
11762 to 1, otherwise to 0. New local variable target_multibyte. Check
11763 it to decide the multibyteness of STR1 and STR2. Use
11764 TARGET_CHAR_AND_LENGTH to fetch a character from D.
11765 <charset, charset_not>: If multibyte is nonzero, check fastmap
11766 only for ASCII chars. Call bcmp_translate with
11767 target_multibyte, not with multibyte.
11768 <begline>: Declare the local variable C as `unsigned'.
11769 (bcmp_translate): Change the last arg name to target_multibyte.
11770
11771 * search.c (compile_pattern_1): Don't adjust the multibyteness of
11772 the regexp pattern and the matching target. Set cp->buf.multibyte
11773 to the multibyteness of the regexp pattern. Set
11774 cp->but.target_multibyte to the multibyteness of the matching target.
11775 (wordify): Use FETCH_STRING_CHAR_AS_MULTIBYTE_ADVANCE instead of
11776 FETCH_STRING_CHAR_ADVANCE.
11777 (Freplace_match): Convert unibyte chars to multibyte.
11778
11779 * syntax.c (char_quoted, back_comment, scan_words)
11780 (Fforward_comment, scan_lists, Fbackward_prefix_chars)
11781 (scan_sexps_forward): Use FETCH_CHAR_AS_MULTIBYTE to convert
11782 unibyte chars to multibyte.
11783 (skip_chars): Delete the arg syntaxp, and move the code for
11784 handling syntaxes to skip_syntaxes. Change callers.
11785 Fix the case that the multibyteness of STRING and the current
11786 buffer doesn't match.
11787 (skip_syntaxes): New function.
11788 (SYNTAX_WITH_MULTIBYTE_CHECK): Check C by ASCII_CHAR_P, not by
11789 SINGLE_BYTE_CHAR_P.
11790
117912008-02-01 Kenichi Handa <handa@m17n.org>
11792
11793 * xfaces.c (QCfontset): New variable.
11794 (LFACE_FONTSET): New macro.
11795 (check_lface_attrs): Check also LFACE_FONTSET_INDEX.
11796 (set_lface_from_font_name): Setup LFACE_FONTSET (lface).
11797 (Finternal_set_lisp_face_attribute)
11798 (Finternal_get_lisp_face_attribute): Handle QCfontset.
11799 (lface_same_font_attributes_p): Fix checking of LFACE_FONT_INDEX,
11800 check also LFACE_FONTSET_INDEX.
11801 (face_fontset): Check attrs[LFACE_FONTSET_INDEX], not
11802 attrs[LFACE_FONT_INDEX].
11803 (syms_of_xfaces): Intern and staticpro QCfontset.
11804
11805 * dispextern.h (enum lface_attribute_index): New member
11806 LFACE_FONTSET_INDEX.
11807
11808 * fns.c (base64_encode_1): Handle eight-bit chars correctly.
11809
118102008-02-01 Kenichi Handa <handa@m17n.org>
11811
11812 * coding.c (coding_set_destination): Fix coding->destination for
11813 the case converting a region.
11814 (encode_coding_utf_8): Encode eight-bit chars as single byte.
11815 (encode_coding_object): Fix coding->dst_pos and
11816 coding->dst_pos_byte for the case converting a region.
11817
11818 * insdel.c (insert_from_gap): Make it work even if PT != GTP.
11819
11820 * character.h (BYTE8_STRING): New macro.
11821
11822 * fns.c (base64_decode_1): Insert eight-bit chars correctly.
11823
118242008-02-01 Kenichi Handa <handa@m17n.org>
11825
11826 * xdisp.c (get_next_display_element): Don't display unibyte 8-bit
11827 characters by octal form.
11828
11829 * abbrev.c (Fexpand_abbrev): Fix for the multibyte case.
11830
11831 * buffer.h (_fetch_multibyte_char_len): Delete extern.
11832 (FETCH_MULTIBYTE_CHAR, BUF_FETCH_MULTIBYTE_CHAR): Don't use
11833 _fetch_multibyte_char_len.
11834 (FETCH_CHAR_AS_MULTIBYTE): New macro.
11835
11836 * casetab.c (set_canon, set_identity, shuffle): Simplify.
11837
11838 * casefiddle.c (casify_object): Simplify. Handle the case that
11839 the case conversion change the byte length.
11840 (casify_region): Likewise.
11841
11842 * character.h (MAKE_CHAR_UNIBYTE, MAKE_CHAR_MULTIBYTE): New macros.
11843
11844 * character.c (_fetch_multibyte_char_len): Delete this variable.
11845 (syms_of_character): Setup Vprintable_chars.
11846
11847 * editfns.c (Fchar_equal): Fix for the unibyte case.
11848 (Finsert_byte): New function.
11849 (syms_of_editfns): Defsubr it.
11850
11851 * keyboard.c (read_key_sequence): Use ~CHAR_MODIFIER_MASK instead
11852 of direct code 0x3ffff.
11853
11854 * search.c (Freplace_match): Fix for the unibyte case.
11855
118562008-02-01 Kenichi Handa <handa@m17n.org>
11857
11858 * lread.c (safe_to_load_p): Fix the logic.
11859
11860 * syntax.c (scan_words): Don't treat characters belonging to
11861 different scripts as constituting a word.
11862
11863 * editfns.c (Fformat): Use ASCII_CHAR_P, not SINGLE_BYTE_CHAR_P.
11864
11865 * fontset.c (Fset_fontset_font): Treat `ascii' as charset, not script.
11866
11867 * emacs.c (main): In the case of --unibyte, instead of aborting on
11868 finding non-empty buffer, make it unibyte.
11869
118702008-02-01 Kenichi Handa <handa@m17n.org>
11871
11872 * xterm.c (x_new_fontset): Call `create-fontset-from-ascii-font'
11873 to create a fontset.
11874
118752008-02-01 Dave Love <fx@gnu.org>
11876
11877 * character.c (Funibyte_char_to_multibyte): Doc fix.
11878
11879 * xfns.c [HAVE_STDLIB_H]: Fix last change.
11880
118812008-02-01 Kenichi Handa <handa@m17n.org>
11882
11883 * fontset.c (fontset_add): Make the type `int'.
11884 (fontset_id_valid_p): Define it if FONTSET_DEBUG is defined.
11885
11886 * character.c (unibyte_char_to_multibyte)
11887 (multibyte_char_to_unibyte, Funibyte_char_to_multibyte): Refer to
11888 charset_unibyte, not charset_primary.
11889
11890 * charset.h (charset_unibyte): Extern it instead of charset_primary.
11891
11892 * charset.c (charset_unibyte): Rename from charset_primary.
11893 (Funibyte_charset): Rename from Fprimary_charset.
11894 (Fset_unibyte_charset): Rename from Fset_primary_charset.
11895 (syms_of_charset): Adjust for the above changes.
11896
11897 * w32term.c (x_produce_glyphs): Use ASCII_CHAR_P, not
11898 SINGLE_BYTE_CHAR_P. Fix the logic of handling non-ASCII char when
11899 it->multibyte_p is zero.
11900
11901 * lisp.h (nonascii_insert_offset, Vnonascii_translation_table):
11902 Delete extern.
11903
119042008-02-01 Kenichi Handa <handa@m17n.org>
11905
11906 * coding.c (Fdefine_coding_system_internal): Fix category setting
11907 for a coding system of type iso-2022.
11908
119092008-02-01 Kenichi Handa <handa@m17n.org>
11910
11911 * fontset.h (FS_LOAD_FONT): Call fs_load_font with the arg CHARSET -1.
11912
119132008-02-01 Kenichi Handa <handa@m17n.org>
11914
11915 * syntax.c (Vnext_word_boundary_function_table): New variable.
11916 (next-word-boundary-function-table): Declare it as a Lisp variable
11917 in syms_of_syntax.
11918 (scan_words): Call functions in Vnext_word_boundary_function_table
11919 if any.
11920
11921 * xterm.c (x_load_font): Initialize fontp->fontset to -1.
11922
11923 * fontset.c (fs_load_font): If fontp->charset is not negative,
11924 return fontp without setting its members.
11925
119262008-02-01 Dave Love <fx@gnu.org>
11927
11928 * xfns.c [HAVE_STDLIB_H]: Change logic (instead of fixing typo).
11929
11930 * m/sparc.h (HAVE_ALLOCA): Delete.
11931
11932 * s/irix6-5.h: Don't include strings.h.
11933 (bcopy, bzero, bcmp): Don't undef.
11934
11935 * s/irix6-0.h (bcopy, bzero, bcmp): Don't undef.
11936
11937 * s/usg5-4.h (NO_SIOCTL_H): Don't define.
11938 (TIOCSIGSEND): Don't test IRIX6.
11939 (bcopy, bzero, bcmp): Define conditionally.
11940
119412008-02-01 Kenichi Handa <handa@m17n.org>
11942
11943 * buffer.c (Qas, Qmake, Qto): New variables.
11944 (Fset_buffer_multibyte): New optional arg METHOD. Change caller.
11945 (syms_of_buffer): Intern and staticpro Qas, Qmake, and Qto.
11946
11947 * callproc.c (Fcall_process): Don't call insert_1_both directly if
11948 we are inserting a process output into a multibyte buffer.
11949
11950 * character.h (CHAR_TO_BYTE8): If C is not eight-bit char, call
11951 multibyte_char_to_unibyte.
11952
11953 * character.c (Funibyte_char_to_multibyte): If C can't be decoded
11954 by the primary charset, make it eight-bit char.
11955 (Fmultibyte_char_to_unibyte): Call CHAR_TO_BYTE8.
11956
11957 * charset.c (charset_eight_bit, Qeight_bit_control): New variables.
11958 (charset_8_bit__control, charset_8_bit_graphic)
11959 (Qeight_bit_control, Qeight_bit_graphic): Delete these variables.
11960 (define_charset_internal): New function.
11961 (syms_of_charset): Call define_charset_internal for pre-defined
11962 charsets.
11963
11964 * charset.h (charset_8_bit): Extern it.
11965
11966 * coding.c (make_conversion_work_buffer): Adjust for the change
11967 of Fset_buffer_multibyte.
11968 (encode_coding_raw_text): Increment p0 in the loop.
11969
11970 * lisp.h (Fset_buffer_multibyte): Adjust prototype.
11971
11972 * xdisp.c (setup_echo_area_for_printing, set_message_1): Adjust
11973 for the change of Fset_buffer_multibyte.
11974
11975 * fns.c (Fstring_to_multibyte): New function.
11976 (syms_of_fns): Declare Fstring_to_multibyte as Lisp subroutine.
11977
119782008-02-01 Dave Love <fx@gnu.org>
11979
11980 * xfns.c (x_put_x_image): Declare args.
11981
11982 * xfaces.c (font_name_registry, choose_face_font): Delete unused vars.
11983 (try_font_list): Declare an arg.
11984
11985 * xdisp.c (message2_nolog, set_message): Declare an arg.
11986
11987 * terminfo.c (tparam): Declare an arg. Use P_ to declare tparm.
11988
11989 * syntax.c (scan_sexps_forward): Declare an arg.
11990
11991 * scroll.c (calculate_scrolling, calculate_direct_scrolling):
11992 Declare an arg.
11993
11994 * lisp.h (Fnew_fontset): Declare.
11995
11996 * keymap.c (push_key_description): Call CHARACTERP correctly.
11997
11998 * fontset.c (fontset_add): Declare args. Call make_number correctly.
11999 (face_for_char): Delete unused vars.
12000 (Fset_fontset_font): Doc fix. Delete unused vars.
12001
12002 * doc.c (Fsubstitute_command_keys): Delete unused vars.
12003
12004 * composite.c (update_compositions): Declare arg.
12005
12006 * cm.c (calccost, cmgoto): Declare args.
12007
12008 * charset.c: Remove `emacs' conditional. Doc fixes.
12009 (map_char_table_for_charset): Declare.
12010
12011 * character.c (syms_of_character) <translation-table-vector>: Doc fix.
12012
12013 * ccl.c: Remove `emacs' conditional.
12014
120152008-02-01 Kenichi Handa <handa@m17n.org>
12016
12017 The following changes are to allow specifying multiple font
12018 patterns for a character range (specified by script or charset).
12019
12020 * Makefile.in (abbrev.o): Depend on syntax.h.
12021 (xfaces.o): Depend on charset.h.
12022
12023 * alloc.c (Fmake_string): Use ASCII_CHAR_P, not
12024 SINGLE_BYTE_CHAR_P.
12025
12026 * ccl.c (Fccl_execute_on_string): Add `const' to local variables.
12027
12028 * character.h (Vchar_script_table): Extern it.
12029
12030 * character.c (Vscript_alist): Delete.
12031 (Vchar_script_table, Qchar_script_table): New variable.
12032 (syms_of_character): Declare Vchar_script_table as a lisp variable
12033 and initialize it.
12034
12035 * chartab.c (Fmake_char_table): Doc fix. If PURPOSE doesn't
12036 have property char-table-extra-slots, make no extra slot.
12037
12038 * dispextern.h (struct face): Delete member `charset'.
12039 (FACE_SUITABLE_FOR_CHAR_P, FACE_FOR): Use ASCII_CHAR_P, not
12040 SINGLE_BYTE_CHAR_P.
12041 (choose_face_font, lookup_non_ascii_face, font_name_registry):
12042 Add prototypes.
12043 (lookup_face, lookup_named_face, lookup_derived_face): Fix prototype.
12044 (generate_ascii_font_name): Rename from generate_ascii_font.
12045
12046 * fontset.h (get_font_repertory_func): New prototype.
12047 (make_fontset_for_ascii_face, fs_load_font): Fix prototypes.
12048 (FS_LOAD_FONT): Call fs_load_font with the 3rd arg charset_ascii.
12049
12050 * fontset.c (Qprepend, Qappend): New variables.
12051 (FONTSET_CHARSET_ALIST, FONTSET_FACE_ALIST): Delete.
12052 (FONTSET_NOFONT_FACE, FONTSET_REPERTORY): New macros.
12053 (FONTSET_REF): Optimize if FONTSET is Vdefault_fontset.
12054 (FONTSET_REF_AND_RANGE, FONTSET_ADD): New macros.
12055 (fontset_ref_and_range, fontset_add, reorder_font_vector)
12056 (load_font_get_repertory): New functions.
12057 (fontset_set): Delete.
12058 (fontset_face): New arg FACE. Return face ID, not face.
12059 Complete re-write to handle new fontset structure. Change caller.
12060 (free_face_fontset): Use ASET istead of AREF (X) = Y.
12061 (face_for_char): Don't call lookup_face.
12062 (make_fontset_for_ascii_face): New arg FACE.
12063 (fs_load_font): New arg CHARSET_ID. Don't check
12064 Vfont_encoding_alist here.
12065 (find_font_encoding): New function.
12066 (list_fontsets): Use STRINGP, not ! NILP.
12067 (accumulate_script_ranges): New function.
12068 (Fset_fontset_font, Fnew_fontset, Ffontset_info): Completely
12069 re-written to handle new fontset structure.
12070 (Ffontset_font): Return a copy of element.
12071 (syms_of_fontset): Define symbols Qprepend and Qappend. Fix
12072 docstring of font-encoding-alist.
12073
12074 * lisp.h (CHAR_TABLE_REF): Remove unnecessary check (IDX >= 0).
12075 (Fset_fotset_font): Fix arguments to 5.
12076
12077 * msdos.c (XMenuActivate): Adjust for the change of lookup_derived_face.
12078
12079 * xdisp.c (message_dolog, set_message_1, extend_face_to_end_of_line):
12080 Use ASCII_CHAR_P, not SINGLE_BYTE_CHAR_P.
12081 (highlight_trailing_whitespace): Adjust for the change of
12082 lookup_named_face.
12083
12084 * xfaces.c: Include charset.h.
12085 (load_face_font): Delete argument C. Change caller.
12086 (generate_ascii_font_name): Rename from generate_ascii_font.
12087 (font_name_registry): New function.
12088 (cache_face): Store ascii faces before non-ascii faces in buckets.
12089 (lookup_face): Delete arguments C and BASE_FACE. Change caller.
12090 Lookup only ascii faces.
12091 (lookup_non_ascii_face): New function.
12092 (lookup_named_face): Delete argument C. Change caller.
12093 (lookup_derived_face): Delete argument C. Change caller.
12094 (try_font_list): New arg PATTERN. Change caller. If PATTERN is
12095 a string, just call font_list with it.
12096 (choose_face_font): Delete arguments FACE and C. New arg
12097 FONT_SPEC. Change caller.
12098 (realize_face, realize_x_face): Delete arguments C and BASE_FACE.
12099 Change caller.
12100 (realize_non_ascii_face): New function.
12101 (realize_x_face): Call load_face_font here.
12102 (realize_tty_face): Delete argument C. Change caller.
12103 (compute_char_face): If CH is not ascii, call FACE_FOR_CHAR to
12104 get a face ID.
12105 (dump_realized_face): Don't print charset of FACE.
12106
12107 * xfns.c (x_set_font): Always call x_new_fontset and
12108 store_frame_parameter.
12109 (Fx_create_frame): Call x_new_fontset, not x_new_font.
12110 (syms_of_xfns): Set get_font_repertory_func to x_get_font_repertory.
12111
12112 * xterm.h (x_get_font_repertory): Extern it.
12113
12114 * xterm.c (x_produce_glyphs): Use ASCII_CHAR_P, not
12115 SINGLE_BYTE_CHAR_P. Fix the logic of handling non-ASCII char when
12116 it->multibyte_p is zero.
12117 (XTread_socket): Use ASCII_CHAR_P, not SINGLE_BYTE_CHAR_P.
12118 (x_new_fontset): If FONTSETNAME doesn't match any existing
12119 fontsets, create a new one.
12120 (x_get_font_repertory): New function.
12121
121222008-02-01 Kenichi Handa <handa@m17n.org>
12123
12124 * coding.c (Ffind_coding_systems_region_internal): Detect an
12125 ASCII only string correctly.
12126
12127 * lread.c (Fload): Don't load with Qload_force_doc_strings t if
12128 version is 0.
12129
121302008-02-01 Kenichi Handa <handa@m17n.org>
12131
12132 * lread.c: Include "coding.h".
12133 (Qget_emacs_mule_file_char, Qload_force_doc_strings)
12134 (load_each_byte, unread_char): New variables.
12135 (readchar_backlog): Delete.
12136 (readchar): Return a character unless load_each_byte is nonzero.
12137 Handle the case that readcharfun is Qget_emacs_mule_file_char or a
12138 cons. If unread_char is not -1, simply return it.
12139 (unreadchar): Handle the case that readcharfun is
12140 Qget_emacs_mule_file_char or a cons. Set unread_char if necessary.
12141 (read_multibyte): Delete.
12142 (readbyte_for_lambda, readbyte_from_file, readbyte_from_string)
12143 (read_emacs_mule_char): New functions.
12144 (Fload): Even if the file doesn't have the extension ".elc", if
12145 safe_to_load_p returns a positive version number, assume that the
12146 file contains bytecompiled code. If the version is less than 22,
12147 load the file while decoding multibyte sequences by emacs-mule.
12148 (readevalloop): Don't use readchar_backlog.
12149 (Fread): Likewise. Pay attention to the case that STREAM is a cons.
12150 (Fread_from_string): Pay attention to the case that STREAM is a cons.
12151 (read_escape): Delete the arg BYTEREP.
12152 (read1): Set load_each_byte to 1 temporarily while handling
12153 #@NUMBER. Don't call read_multibyte.
12154 (read_vector): Call Fread with a cons. If readcharfun is
12155 Qget_emacs_mule_file_char, decode the read string by emacs-mule.
12156 (read_list): If doc_reference is 2, make the cdr part string as unibyte.
12157 (syms_of_lread): Intern and staticpro Qget_emacs_mule_file_char
12158 and Qload_force_doc_strings.
12159
121602008-02-01 Kenichi Handa <handa@m17n.org>
12161
12162 * xdisp.c (face_before_or_after_it_pos): Call
12163 FETCH_MULTIBYTE_CHAR with byte postion, not char position.
12164
121652008-02-01 Kenichi Handa <handa@m17n.org>
12166
12167 * character.h (TRAILING_CODE_P): New macro.
12168 (MAYBE_UNIFY_CHAR): Adjust for the change of Funify_charset.
12169 (string_char_with_unification): Fix prototype.
12170 (Vscript_alist): Extern it.
12171
12172 * character.c (Vscript_alist): New variable.
12173 (string_char_with_unification, str_as_unibyte)
12174 (string_escape_byte8): Add `const' to local variables.
12175 (syms_of_character): Declare script-alist as a Lisp variable.
12176
12177 * charset.h (Vcharset_ordered_list): Extern it.
12178 (charset_ordered_list_tick): Extern it.
12179 (EMACS_MULE_LEADING_CODE_PRIVATE_11)
12180 (EMACS_MULE_LEADING_CODE_PRIVATE_12)
12181 (EMACS_MULE_LEADING_CODE_PRIVATE_21)
12182 (EMACS_MULE_LEADING_CODE_PRIVATE_22): New macros.
12183 (Funify_charset): Adjust for the change of Funify_charset.
12184
12185 * charset.c (charset_ordered_list_tick): New variable.
12186 (Fdefine_charset_internal): Increment charset_ordered_list_tick.
12187 (Funify_charset): New optional arg DEUNIFY. If it is non-nil,
12188 deunify intead of unify a charset.
12189 (string_xstring_p): Add `const' to local variables.
12190 (find_charsets_in_text): Add `const' to arguments and local variables.
12191 (encode_char): Adjust for the change of Funify_charset. Fix
12192 detecting of invalid code.
12193 (Fset_charset_priority): Increment charset_ordered_list_tick.
12194 (Fmap_charset_chars): Fix handling of default value for FROM_CODE
12195 and TO_CODE.
12196
12197 * coding.c (LEADING_CODE_PRIVATE_11, LEADING_CODE_PRIVATE_12)
12198 (LEADING_CODE_PRIVATE_21, LEADING_CODE_PRIVATE_22): Delete macros.
12199 Changed callers to use EMACS_MULE_LEADING_CODE_PRIVATE_11, etc.
12200 (decode_coding_ccl, consume_chars)
12201 (Ffind_coding_systems_region_internal)
12202 (Fcheck_coding_systems_region): Add `const' to local variables.
12203
12204 * print.c (print_object): Use octal form for printing the
12205 contents of a bool vector.
12206
122072008-02-01 Dave Love <fx@gnu.org>
12208
12209 * lread.c (Fload) <!load_dangerous_libraries>: Don't leak fd.
12210 <version == 20>: Refuse to load.
12211
122122008-02-01 Dave Love <fx@gnu.org>
12213
12214 * fns.c: Move coding.h.
12215 (Qcodeset, Qdays, Qmonths): New.
12216 (concat): Use CHARACTERP instead of INTEGERP.
12217 (Flocale_codeset): Delete.
12218 (Flanginfo): New function.
12219 (syms_of_fns): Change accordingly.
12220
12221 * coding.c (adjust_coding_eol_type): Fix eol_type/eol_seen mixup.
12222
122232008-02-01 Dave Love <fx@gnu.org>
12224
12225 * casetab.c (init_casetab_once, init_casetab_once): Fix
12226 CHAR_TABLE_SET call.
12227
12228 * category.c (Fmodify_category_entry): Fix CATEGORY_MEMBER call.
12229
12230 * character.c (syms_of_character): Fix CHAR_TABLE_SET call.
12231
12232 * charset.c (Fmap_charset_chars): Check args. Convert Lisp types.
12233 (load_charset_map, Fdeclare_equiv_charset, Fencode_char)
12234 (Fset_charset_priority, syms_of_charset): Convert Lisp types.
12235
12236 * charset.h (CHECK_CHARSET_GET_ID): Use XINT on AREF result.
12237
12238 * coding.c (ENCODE_DESIGNATION, decode_eol)
12239 (make_conversion_work_buffer, code_conversion_restore)
12240 (Fdefine_coding_system_internal): Convert Lisp types.
12241 (code_conversion_restore): Use EQ, not ==.
12242 (Fencode_coding_string): Fix code_convert_string call.
12243
12244 * coding.h (code_convert_region): Fix prototype.
12245
12246 * dispextern.h (redraw_frame, redraw_garbaged_frames): Remove.
12247
12248 * fontset.c (fontset_ref, fontset_set, fs_load_font)
12249 (Ffontset_info): Convert Lisp types.
12250
12251 * syntax.h (SYNTAX_ENTRY_INT): Don't use make_number.
12252
12253 * xterm.c (note_mouse_movement): Fix call of window_from_coordinates.
12254
12255 * xdisp.c (display_mode_element): Fix call of Fset_text_properties.
12256
12257 * chartab.c: Include "...h", not <...h> in some cases.
12258
12259 * callproc.c (Fcall_process): Remove unused variables.
12260
122612008-02-01 Dave Love <fx@gnu.org>
12262
12263 * coding.c (Fset_coding_system_priority): Allow null arg list.
12264
122652008-02-01 Dave Love <fx@gnu.org>
12266
12267 * minibuf.c (Fminibuffer_complete_word): Remove unused var.
12268 (Fself_insert_and_exit): Use CHARACTERP.
12269
12270 * callproc.c (Fcall_process): Remove unused vars.
12271
12272 * xterm.c (XTread_socket): Add extra dead keysyms.
12273
12274 * xdisp.c (decode_mode_spec_coding): Use CHARACTERP.
12275
12276 * dispextern.h: Remove prototypes for redraw_frame,
12277 redraw_garbaged_frames.
12278
12279 * cmds.c (Fself_insert_command): Use CHARACTERP.
12280
12281 * chartab.c (make_sub_char_table): Remove unused var.
12282 (Fset_char_table_default, Fmap_char_table): Doc fix.
12283
12284 * keymap.c (access_keymap): Remove generic char code.
12285 (push_key_description): Use CHARACTERP.
12286
122872008-02-01 Dave Love <fx@gnu.org>
12288
12289 * charset.c: Doc fixes.
12290 (Funify_charset): Extra checking.
12291
122922008-02-01 Dave Love <fx@gnu.org>
12293
12294 * lread.c: Remove some unused variables.
12295 (safe_to_load_p): If safe, return the magic number version byte.
12296 (Fload): Maybe use load-with-code-conversion.
12297
122982008-02-01 Kenichi Handa <handa@m17n.org>
12299
12300 * category.c (Fmodify_category_entry): Don't modify the contents
12301 of category_set for characters out of the range. Avoid
12302 unnecessary modification.
12303
12304 * character.h (MAYBE_UNIFY_CHAR): Adjust for the change of
12305 Vchar_unify_table. The default value of the table is now nil.
12306
12307 * character.c (syms_of_character): Setup Vchar_width_table for
12308 eight-bit-control and raw-byte chars.
12309
12310 * charset.h (enum define_charset_arg_index): Delete
12311 charset_arg_parents and add charset_arg_subset and
12312 charset_arg_superset.
12313 (enum charset_attr_index): Delete charset_parents and add
12314 charset_subset and charset_superset.
12315 (enum charset_method): Delete CHARSET_METHOD_INHERIT and add
12316 CHARSET_METHOD_SUBSET and CHARSET_METHOD_SUPERSET.
12317 (CHARSET_ATTR_PARENTS, CHARSET_PARENTS): Delete.
12318 (CHARSET_ATTR_SUBSET, CHARSET_ATTR_SUPERSET, CHARSET_SUBSET)
12319 (CHARSET_SUPERSET): New macros.
12320 (charset_work): Extern it.
12321 (ENCODE_CHAR): Use charset_work.
12322 (CHAR_CHARSET_P): Adjust for the change of encoder format.
12323 (map_charset_chars): Extern it.
12324
12325 * charset.c (load_charset_map): Set the default value of encoder
12326 and deunifier char-tables to nil.
12327 (map_charset_chars): Change argument. Change callers. Use
12328 map_char_table_for_charset instead of map_char_table.
12329 (Fmap_charset_chars): New optional args from_code and to_code.
12330 (Fdefine_charset_internal): Adjust for the change of
12331 `define-charset' (:parents -> :subset or :superset).
12332 (charset_work): New variable.
12333 (encode_char, syms_of_charset): Adjust for the change of
12334 Fdefine_charset_internal.
12335 (Ffind_charset_string): Setup the vector `charsets' correctly.
12336
12337 * chartab.c (sub_char_table_ref_and_range): New arg default. Fix
12338 the previous change.
12339 (char_table_ref_and_range): Adjust for the above change.
12340 (map_sub_char_table_for_charset): New function.
12341 (map_char_table_for_charset): New function.
12342
12343 * keymap.c (describe_vector): Handle a char-table directly here.
12344 (describe_char_table): Delete.
12345
12346 * lisp.h (map_charset_chars): Delete.
12347
123482008-02-01 Dave Love <fx@gnu.org>
12349
12350 * fns.c (count_combining): Comment out (unused).
12351 (Flocale_codeset): New.
12352 (syms_of_fns): Defsubr it.
12353
12354 * config.in (HAVE_PTY_H, HAVE_SIZE_T, HAVE_LANGINFO_CODESET): New.
12355 (size_t): Remove.
12356
123572008-02-01 Dave Love <fx@gnu.org>
12358
12359 * Makefile.in (chartab.o): Depend on charset.h.
12360
123612008-02-01 Kenichi Handa <handa@m17n.org>
12362
12363 * character.c (syms_of_character): Set the default value of
12364 Vprintable_chars to Qnil.
12365
123662008-02-01 Dave Love <fx@gnu.org>
12367
12368 * Makefile.in (lisp, shortlisp): Change indian.elc to indian.el.
12369
123702008-02-01 Kenichi Handa <handa@m17n.org>
12371
12372 * charset.c (load_charset_map): Handle the case that from < to
12373 correctly.
12374
12375 * coding.c (encode_coding_emacs_mule, encode_coding_iso_2022)
12376 (encode_coding_sjis, encode_coding_big5, encode_coding_charset):
12377 Pay attention to raw-8-bit chars.
12378
123792008-02-01 Kenichi Handa <handa@m17n.org>
12380
12381 * Makefile.in (lisp, shortlisp): Change chinese.elc to chinese.el.
12382 It is not bytecompiled now.
12383
12384 * charset.c (charset_jisx0201_roman, charset_jisx0208_1978)
12385 (charset_jisx0208): New variables.
12386 (Fdefine_charset_internal): Setup them if appropriate.
12387 (init_charset_once): Initialize them to -1.
12388
12389 * charset.h (charset_jisx0201_roman, charset_jisx0208_1978)
12390 (charset_jisx0208): Extern them.
12391
12392 * coding.c (CODING_ISO_FLAG_USE_ROMAN): New macro.
12393 (CODING_ISO_FLAG_USE_OLDJIS): New macro.
12394 (CODING_ISO_FLAG_FULL_SUPPORT): Change macro definition.
12395 (setup_iso_safe_charsets): Fix arguments to Fassq.
12396 (DECODE_DESIGNATION, ENCODE_ISO_CHARACTER_DIMENSION1)
12397 (ENCODE_ISO_CHARACTER_DIMENSION2): Pay attention to
12398 CODING_ISO_FLAG_USE_ROMAN and CODING_ISO_FLAG_USE_OLDJIS.
12399 (encode_coding_iso_2022): Change the 1st arg to
12400 ENCODE_ISO_CHARACTER to a variable.
12401
124022008-02-01 Kenichi Handa <handa@m17n.org>
12403
12404 * charset.h (enum define_charset_arg_index): New enums
12405 charset_arg_min_code and charset_arg_max_code.
12406 (struct charset): New member char_index_offset.
12407
12408 * charset.c (CODE_POINT_TO_INDEX, INDEX_TO_CODE_POINT):
12409 Take charset->char_index_offset into account.
12410 (Fdefine_charset_internal): Handle args[charset_arg_min_code] and
12411 args[charset_arg_max_code]. Setup charset.char_index_offset.
12412 (syms_of_charset): Fix args to Fdefine_charset_internal.
12413
124142008-02-01 Dave Love <fx@gnu.org>
12415
12416 * coding.c (decode_coding_utf_8): Reject overlong sequences.
12417
124182008-02-01 Dave Love <fx@gnu.org>
12419
12420 * coding.c: Doc fixes.
12421 (Fcoding_system_aliases): Fix return value.
12422 (Qmac): Remove (duplicated) definition.
12423
124242008-02-01 Dave Love <fx@gnu.org>
12425
12426 * charset.c (Fcharset_priority_list, Fset_charset_priority): New
12427 functions.
12428
12429 * character.c (Fstring): Doc fix.
12430
12431 * charset.c (Fdefine_charset_alias): Update Vcharset_list.
12432
12433 * fontset.c (Ffontset_info): Doc fix. Return charset names, not
12434 ids.
12435 (font-encoding-alist): Doc fix.
12436
124372008-02-01 Dave Love <fx@gnu.org>
12438
12439 * term.c (costs_set): Declare static, non-initialized for pcc.
12440 (encode_terminal_code): Remove unused var.
12441
12442 * keyboard.c (kbd_buffer_store_event): Fix interrupt_signal decl
12443 for K&R.
12444
12445 * xterm.c (xlwmenu_window_p): Fix prototype for K&R.
12446
12447 * coding.c (setup_iso_safe_charsets): Fix arg decl for K&R.
12448 (suffixes): Move out of make_subsidiaries for K&R.
12449
12450 * charset.c (map_charset_chars): Fix c_function declaration for K&R.
12451
12452 * lisp.h (DEFUN) [!PROTOTYPES]: Remove spurious `args'.
12453
124542008-02-01 Dave Love <fx@gnu.org>
12455
12456 * data.c (Fchar_or_string_p): Doc fix. Use CHARACTERP.
12457
12458 * category.c (Fmodify_category_entry): Doc fix. Remove unused vars.
12459
124602008-02-01 Yong Lu <lyongu@asia-infonet.com>
12461
12462 * charset.c (Fdefine_charset_internal): Fix argument to bzero.
12463
12464 * coding.c (decode_coding_charset): Workaround for the bug of GCC 2.96.
12465
124662008-02-01 Kenichi Handa <handa@m17n.org>
12467
12468 * Makefile.in (lisp, shortlisp): Change cyrillic.elc to cyrillic.el,
12469 vietnamese.elc to vietnamese.el. They are not bytecompiled now.
12470
124712008-02-01 Kenichi Handa <handa@m17n.org>
12472
12473 * coding.c (decode_coding_charset): Adjust for the change of
12474 Fdefine_coding_system_internal.
12475 (Fdefine_coding_system_internal): For a coding system of
12476 `charset' type, store a list of charset IDs in
12477 `charset_attr_charset_valids' element of coding attributes.
12478
124792008-02-01 Kenichi Handa <handa@m17n.org>
12480
12481 * coding.c (ONE_MORE_BYTE_NO_CHECK): Increment consumed_chars.
12482 (emacs_mule_char): New arg src. Delete arg `composition'. Change
12483 caller. Handle 2-byte and 3-byte charsets correctly.
12484 (DECODE_EMACS_MULE_COMPOSITION_RULE_20): Rename from
12485 DECODE_EMACS_MULE_COMPOSITION_RULE. Change caller.
12486 (DECODE_EMACS_MULE_COMPOSITION_RULE_21): New macro.
12487 (DECODE_EMACS_MULE_21_COMPOSITION): Call
12488 DECODE_EMACS_MULE_COMPOSITION_RULE_21. Produce correct annotation
12489 sequence.
12490 (decode_coding_emacs_mule): Handle composition correctly. Rewind
12491 `src' and `consumed_chars' correctly before calling emacs_mule_char.
12492 (DECODE_COMPOSITION_START): Correctly handle the case of altchar
12493 and alt&rule composition.
12494 (decode_coding_iso_2022): Handle composition correctly.
12495 (init_coding_once): Setup emacs_mule_bytes for private charsets.
12496
12497 * charset.c (Fdefine_charset_internal): Fix bug for the case of
12498 re-defining a charset. If the charset has :emacs-mule-id, setup
12499 emacs_mule_bytes.
12500 (Fmake_char): If CODE1 is nil, use the minimum code of the charset.
12501
125022008-02-01 Kenichi Handa <handa@m17n.org>
12503
12504 * coding.c (encode_coding_iso_2022, encode_coding_sjis)
12505 (encode_coding_big5, encode_coding_charset): If coding requires safe
12506 encoding, produce a character specified by
12507 CODING_INHIBIT_CHARACTER_SUBSTITUTION.
12508
125092008-02-01 Dave Love <fx@gnu.org>
12510
12511 * xterm.c (XSetIMValues): Declare.
12512
12513 * process.c: Conditionally include sys/wait.h, pty.h.
12514
12515 * print.c (print_object): Fix print format for 64-bit systems.
12516
12517 * keyboard.c (modify_event_symbol): Fix print format for 64-bit systems.
12518
12519 * buffer.c (emacs_strerror): Declare.
12520
12521 * fontset.c (Fclear_face_cache): Declare.
12522 (accumulate_font_info): Comment-out (unused).
12523 (face_for_char, Fset_fontset_font, Ffontset_info): Remove unused
12524 variables.
12525
12526 * character.h (string_escape_byte8): Declare.
12527
12528 * charset.c (load_charset_map, load_charset_map_from_file): Remove
12529 unused vars.
12530 (Fdefine_charset_internal, Fsplit_char, syms_of_charset)
12531 (Fmap_charset_chars): Doc fix.
12532
12533 * coding.c (Vchar_coding_system_table, Qchar_coding_system): Remove.
12534 (Fset_coding_system_priority, Fset_coding_system_priority)
12535 (Fdefine_coding_system_internal): Doc fix.
12536
125372008-02-01 Dave Love <fx@gnu.org>
12538
12539 * s/osf5-0.h (C_SWITCH_SYSTEM) [!__GNUC__]: Remove -nointrinsics.
12540
125412008-02-01 Kenichi Handa <handa@m17n.org>
12542
12543 * character.c (string_escape_byte8): Make multibyte string with
12544 correct size.
12545
12546 * charset.c (Fmake_char): Delete unnecessary code.
12547
125482008-02-01 Kenichi Handa <handa@m17n.org>
12549
12550 * xfns.c (x_encode_text): Allocate coding.destination here, and
12551 call encode_coding_object with dst_object Qnil.
12552
12553 * buffer.c (Fset_buffer_multibyte): Convert 8-bit bytes to
12554 multibyte form correctly.
12555
12556 * fontset.c (fs_load_font): Check fontp->full_name (not fontname)
12557 against Vfont_encoding_alist.
12558
12559 * coding.c (Fdecode_sjis_char): Fix typo (0x7F->0xFF). Fix the
12560 handling of charset list.
12561 (encode_coding_iso_2022): Setup coding->safe_charsets in advance.
12562 (decode_coding_object): Move point to coding->dst_pos before
12563 calling post-read-conversion function.
12564 (encode_coding_object): Give correct arguments to
12565 pre-write-conversion. Ignore the return value of
12566 pre-write-conversion function. Pay attention to the case that
12567 pre-write-conversion changes the current buffer. If dst_object is
12568 Qt, even if coding->src_bytes is zero, allocate at least one byte
12569 to coding->destination.
12570
12571 * coding.h (JIS_TO_SJIS): Fix typo (j1->s1, j2->s2).
12572
12573 * charset.c (Fmake_char): Make it more backward compatible.
12574 (Fmap_charset_chars): Fix docstring.
12575
125762008-02-01 Dave Love <fx@gnu.org>
12577
12578 * coding.c: Doc fixes.
12579 (Fdefine_coding_system_alias): Use names, not symbols, in
12580 coding-system-alist.
12581
125822008-02-01 Kenichi Handa <handa@m17n.org>
12583
12584 * fontset.c (free_realized_fontsets): Call Fclear_face_cache instead
12585 of calling free_realized_face.
12586
125872008-02-01 Yong Lu <lyongu@asia-infonet.com>
12588
12589 * charset.c (read_hex): Don't treat SPC as a comment starter.
12590 (decode_char): If CODE_POINT_TO_INDEX returns -1, always return -1.
12591 (Fdecode_char): Fix typo.
12592
125932008-02-01 Kenichi Handa <handa@m17n.org>
12594
12595 * charset.h (struct charset): New member `code_space_mask'.
12596
12597 * coding.c (coding_set_source): Delete the local variable beg_byte.
12598 (encode_coding_charset, Fdefine_coding_system_internal):
12599 Delete the local variable charset.
12600 (Fdefine_coding_system_internal): Setup
12601 attrs[coding_attr_charset_valids] correctly.
12602
12603 * charset.c (CODE_POINT_TO_INDEX): Utilize `code_space_mask'
12604 member to check if CODE is valid or not.
12605 (Fdefine_charset_internal): Initialize `code_space_mask' member.
12606 (encode_char): Before calling CODE_POINT_TO_INDEX, check if CODE
12607 is within the range of charset->min_code and carset->max_code.
12608
126092008-02-01 Dave Love <fx@gnu.org>
12610
12611 * syntax.h (syntax_temp) [!__GNUC__]: Declare.
12612
12613 * dispextern.h (generate_ascii_font): Fix return type.
12614
12615 * xfaces.c (generate_ascii_font): Fix arg declaration.
12616
12617 * coding.c (coding_inherit_eol_type)
12618 (Fset_terminal_coding_system_internal)
12619 (Fset_safe_terminal_coding_system_internal): Fix arg declarations.
12620
126212008-02-01 Kenichi Handa <handa@m17n.org>
12622
12623 * coding.c (decode_coding_charset, encode_coding_charset): Handle
12624 multiple charsets correctly.
12625
126262008-02-01 Kenichi Handa <handa@m17n.org>
12627
12628 * search.c (boyer_moore): Fix handling of multibyte character
12629 translation.
12630
12631 * xdisp.c (display_mode_element): When the variable `elt' is
12632 changed, update `this' and `lisp_string'.
12633
126342008-02-01 Kenichi Handa <handa@m17n.org>
12635
12636 * buffer.c (Fset_buffer_multibyte): Fix 8-bit char handling.
12637
12638 * callproc.c (Fcall_process): Be sure to give the current buffer
12639 to decode_coding_c_string. Update PT and PT_BYTE after the insertion.
12640
12641 * charset.c (struct charset_map_entries): New struct.
12642 (load_charset_map): Rename from parse_charset_map. New args
12643 entries and n_entries. Change caller.
12644 (load_charset_map_from_file): Rename from load_charset_map.
12645 Change caller. New arg control_flag. Call load_charset_map at
12646 the tail.
12647 (load_charset_map_from_vector): New function.
12648 (Fdefine_charset_internal): Setup charset.compact_codes_p.
12649 (encode_char): If the charset is compact, change a character index
12650 to a code point.
12651
12652 * coding.c (coding_alloc_by_making_gap): Check the case that the
12653 source and destination are the same correctly.
12654 (decode_coding_raw_text): Set coding->consumed_char and
12655 coding->consumed to 0.
12656 (produce_chars): If coding->chars_at_source is nonzero, update
12657 coding->consumed_char and coding->consumed before calling
12658 alloc_destination.
12659 (Fdefine_coding_system_alias): Register ALIAS in
12660 Vcoding_system_alist.
12661 (syms_of_coding): Define `no-conversion' coding system at the tail.
12662
12663 * fileio.c (Finsert_file_contents): Set coding_system instead of
12664 val. If the current buffer is multibyte, always call
12665 decode_coding_gap.
12666
12667 * xfaces.c (try_font_list): Give higher priority to fontset's
12668 family than face's family.
12669
126702008-02-01 Kenichi Handa <handa@m17n.org>
12671
12672 * callproc.c (Fcall_process): Be sure to give the current buffer
12673 to decode_coding_c_string.
12674
12675 * xfaces.c (try_font_list): Give a family specified in a fontset
12676 higher priority than a family specified in a face.
12677
126782008-02-01 Kenichi Handa <handa@m17n.org>
12679
12680 * fileio.c (Finsert_file_contents): Fix calculation of `inserted'.
12681 Fix arguments to insert_from_buffer.
12682
12683 * xdisp.c (display_mode_element): Fix calculation of `bytepos'.
12684
126852008-02-01 Kenichi Handa <handa@m17n.org>
12686
12687 * coding.c (produce_chars): Set the variable `multibytep' correctly.
12688 (decode_coding_gap): Set coding->dst_multibyte correctly.
12689
126902008-02-01 Kenichi Handa <handa@m17n.org>
12691
12692 * coding.c (encode_coding_utf_8): Initialize produced_chars to 0.
12693 (decode_coding_utf_16): Fix converting high and low bytes to code-point.
12694 (encode_coding_utf_16): Substitute coding->default_char for
12695 non-Unicode characters.
12696 (decode_coding): Don't call record_insert here.
12697 (setup_coding_system): Initialize `surrogate' of
12698 coding->spec.utf_16 to 0.
12699 (EMIT_ONE_BYTE): Fix for multibyte case.
12700
12701 * insdel.c (insert_from_gap): Call record_insert.
12702
127032008-02-01 Kenichi Handa <handa@m17n.org>
12704
12705 * casefiddle.c (casify_region): Fix multibyte case.
12706
12707 * character.c (c_string_width): Add return type `int'.
12708 (char_string_with_unification): Delete arg ADVANCED.
12709
12710 * character.h (CHAR_VALID_P): Don't call CHARACTERP.
12711 (CHAR_STRING): Adjust for the change of char_string_with_unification.
12712 (CHAR_STRING_ADVANCE): Make it do-while statement.
12713
12714 * chartab.c (sub_char_table_set_range): Optimize for the case
12715 DEPTH == 3. Add workaround code for a GCC optimization bug.
12716
12717 * charset.c (parse_charset_map): Remove an unused variable.
12718
12719 * coding.c: Delete unused variables.
12720
12721 * fileio.c (Finsert_file_contents): Set coding_system to Qnil
12722 earlier. If inserted is zero and the coding system doesn't
12723 require flushing, don't call decode_coding_gap.
12724
12725 * syntax.h (SET_RAW_SYNTAX_ENTRY): Don't call make_number.
12726
127272008-02-01 Kenichi Handa <handa@m17n.org>
12728
12729 The following changes are for using Unicode as an internal
12730 character model, and use UTF-8 format for buffer/string
12731 representation.
12732
12733 * .gdbinit (xchartable): Adjust for the change of char table structure.
12734 (xsubchartable, xcoding, xcharset, xcurbuf): New commands.
12735
12736 * Makefile.in (obj): Add character.o and chartab.o.
12737 (lisp, shortlisp): Remove utf-8.elc.
12738 (*.o): For many files, change dependency on charset.h to
12739 character.h, and add dependency on character.h.
12740 (character.o, chartab.o): New targets.
12741
12742 * abbrev.c, bytecode.c, casefiddle.c, cmds.c, dispnew.c, doc.c:
12743 * doprnt.c, dosfns.c, frame.c, marker.c, minibuf.c, msdos.c:
12744 * w16select.c, w32bdf.c, w32console.c: Include "character.h" instead
12745 of "charset.h".
12746
12747 * dired.c, filelock.c: Include "character.h".
12748
12749 * alloc.c: Include "character.h" instead of "charset.h".
12750 (Fmake_char_table, make_sub_char_table): Move to chartab.c.
12751 (syms_of_alloc): Remove defsubr for Smake_char_table.
12752
12753 * buffer.c: Include "character.h" instead of "charset.h", don't
12754 include "coding.h".
12755 (Fset_buffer_multibyte): Adjust for UTF-8.
12756
12757 * buffer.h: EXFUN Fbuffer_live_p.
12758
12759 * callproc.c: Include "character.h" instead of "charset.h".
12760 (Fcall_process): Big change for the new code-conversion APIs.
12761
12762 * casetab.c: Include "character.h" instead of "charset.h".
12763 (set_canon, set_identity, shuffle): Adjust for the new
12764 map_char_table spec.
12765 (init_casetab_once): Call CHAR_TABLE_SET instead of directly
12766 accessing the char table structure.
12767
12768 * chartab.c: New file that implements char table.
12769
12770 * category.c: Include "character.h".
12771 (copy_category_entry): New function.
12772 (copy_category_table): Call map_char_table and copy_category_entry.
12773 (Fmake_category_table): Initialize all top-level slots.
12774 (char_category_set): New function.
12775 (modify_lower_category_set): Delete.
12776 (Fmodify_category_entry): Call char_table_ref_and_range.
12777
12778 * category.h (CATEGORY_SET): Just call char_category_set.
12779
12780 * ccl.c: Include "character.h".
12781 (Qccl, Qcclp): New variables.
12782 (CCL_WRITE_CHAR): Alway treat the arg CH as a character even if
12783 it's less than 256.
12784 (CCL_WRITE_MULTIBYTE_CHAR): Delete.
12785 (CCL_WRITE_STRING, CCL_READ_CHAR): Adjust for the change of SRC
12786 and DST type.
12787 (ccl_driver): Change types of argument, adjust code accordingly.
12788 (Fccl_execute, Fccl_execute_on_string): Adjust for the change of
12789 ccl_driver.
12790 (syms_of_ccl): Intern and staticpro Qccl and Qcclp.
12791
12792 * ccl.h (struct ccl_program): Delete members eol_type and multibyte.
12793 New members src_multibyte, dst_multibyte, consumed, and produced.
12794 (struct ccl_spec): Delete members decoder and encoder. New member ccl.
12795 (CODING_SPEC_CCL_PROGRAM): New macro.
12796 (ccl_driver): Update prototype.
12797 (Qccl, Qcclp, Fccl_program_p): Extern them.
12798 (CHECK_CCL_PROGRAM): New macro.
12799
12800 * character.c, character.h, chartab.c: New files.
12801
12802 * charset.c: Mostly re-written. Move character and multibyte sequence
12803 handling codes to character.c.
12804
12805 * charset.h: Mostly re-written. Move character and multibyte sequence
12806 handling codes to character.h.
12807
12808 * coding.c, coding.h: Mostly re-written.
12809
12810 * composite.c: Include "character.h" instead of "charset.h".
12811 (CHAR_WIDTH): Move to character.h.
12812 (HASH_KEY, HASH_VALUE): Delete.
12813
12814 * composite.h (enum composition_method): Change order of enumeration
12815 symbols.
12816
12817 * data.c: Include "character.h" instead of "charset.h".
12818 (Faref): Call CHAR_TABLE_REF for a char table.
12819 (Faset): Call CHAR_TABLE_SET for a char table.
12820
12821 * dispextern.h (free_realized_face, check_face_attribytes)
12822 (generate_ascii_font): Extern them.
12823 (free_realized_multibyte_face): Delete extern.
12824
12825 * disptab.h (DISP_CHAR_VECTOR): Adjust for the change of char
12826 table structure.
12827
12828 * editfns.c: Include "character.h" instead of "charset.h".
12829 (Fchar_to_string): Always call CHAR_STRING.
12830
12831 * emacs.c (main): Call init_charset_once, init_charset,
12832 syms_of_chartab, and syms_of_character.
12833
12834 * fileio.c: Include "character.h" instead of "charset.h".
12835 (Finsert_file_contents): Big change for the new code-conversion API.
12836 (choose_write_coding_system, Fwrite_region): Likewise.
12837 (build_annotations_2): Delete.
12838 (e_write): Big change for the new code-conversion API.
12839
12840 * fns.c: Include "character.h" instead of "charset.h".
12841 (copy_sub_char_table): Move to chartab.c.
12842 (Fcopy_sequence): Call copy_char_table for a char table.
12843 (concat): Delete codes calling count_multibyte.
12844 (string_char_to_byte, string_byte_to_char): Adjust for the new
12845 multibyte form.
12846 (internal_equal): Adjust for the change of char table structure.
12847 (Fchar_table_subtype, Fchar_table_parent, Fset_char_table_parent)
12848 (Fchar_table_extra_slot, Fset_char_table_extra_slot)
12849 (Fchar_table_range, Fset_char_table_range, Fset_char_table_default)
12850 (char_table_translate, optimize_sub_char_table)
12851 (Foptimize_char_table, map_char_table, Fmap_char_table): Move to
12852 chartab.c.
12853 (char_table_ref_and_index): Delete.
12854 (HASH_KEY, HASH_VALUE): Move to lisp.h.
12855 (Fmd5): Call preferred_coding_system instead of accessing
12856 Vcoding_category_list. Adjust for the new code-conversion API.
12857 (syms_of_fns): Move defsubr for char table related functions to
12858 chartab.c.
12859
12860 * fontset.c: Mostly re-written.
12861
12862 * fontset.h (struct font_info): Change type of the member encoding_type.
12863 (enum FONT_SPEC_INDEX): New enum.
12864 (fontset_font_pattern, fs_load_font): Update prototype.
12865 (FS_LOAD_FONT): Adjust for the change of fs_load_font.
12866
12867 * indent.c: Include "character.h" instead of "charset.h".
12868 (MULTIBYTE_BYTES_WIDTH): Call CHAR_WIDTH instead of WIDTH_BY_CHAR_HEAD.
12869
12870 * insdel.c: Include "character.h" instead of "charset.h".
12871 (copy_text): Don't refer to Vnonascii_translation_table.
12872 (insert_from_gap): New function.
12873
12874 * keyboard.c: Include "character.h" instead of "charset.h".
12875 (command_loop_1): Never call direct_output_forward_char before
12876 a non-ASCII character.
12877 (read_char): If Vkeyboard_translate_table is a char table, always
12878 translate a character.
12879
12880 * keymap.c: Include "character.h".
12881 (store_in_keymap): Handle the case that IDX is a cons.
12882 (Fdefine_key): Handle the case that KEY is a cons and the car part
12883 is also a cons (range).
12884 (push_key_description): Adjust for the new character code.
12885 (describe_vector): Call describe_char_table for a char table.
12886 (describe_char_table): New function.
12887
12888 * keymap.h (describe_char_table): Extern it.
12889
12890 * lisp.h (enum pvec_type): New member PVEC_SUB_CHAR_TABLE.
12891 (XSUB_CHAR_TABLE, XSETSUB_CHAR_TABLE): New macros.
12892 (CHAR_TABLE_ORDINARY_SLOTS, CHAR_TABLE_SINGLE_BYTE_SLOTS)
12893 (SUB_CHAR_TABLE_ORDINARY_SLOTS, SUB_CHAR_TABLE_STANDARD_SLOTS):
12894 Delete.
12895 (CHAR_TABLE_REF, CHAR_TABLE_SET): Adjust for the new char table
12896 structure.
12897 (CHAR_TABLE_TRANSLATE): Just call char_table_translate.
12898 (CHARTAB_SIZE_BITS_0, CHARTAB_SIZE_BITS_1, CHARTAB_SIZE_BITS_2)
12899 (CHARTAB_SIZE_BITS_3): New macros.
12900 (chartab_size): Extern it.
12901 (struct Lisp_Char_Table): Re-design.
12902 (struct Lisp_Sub_Char_Table): New structure.
12903 (HASH_KEY, HASH_VALUE): Move from fns.c.
12904 (CHARACTERBITS): Define as 22.
12905 (GLYPH_MASK_FACE, GLYPH_MASK_CHAR): Adjust for the above change.
12906 (SUB_CHAR_TABLE_P): Check PVEC_CHAR_TABLE.
12907 (GC_SUB_CHAR_TABLE_P): New macro.
12908 (Fencode_coding_string, Fdecode_coding_string): Update EXFUN.
12909 (code_convert_string_norecord): Deleted extern.
12910 (init_character_once, syms_of_character, init_charset)
12911 (syms_of_composite, Qeq, Fmakehash, insert_from_gap): Extern them.
12912
12913 * lread.c: Include "character.h".
12914 (read_multibyte): New arg NBYTES.
12915 (read_escape): Change the meaning of returned *BYTEREP.
12916 (to_multibyte): Delete.
12917 (read1): Adjust the handling of char table and string.
12918
12919 * print.c: Include "character.h" instead of "charset.h".
12920 (print_string): Convert 8-bit raw bytes to octal form by
12921 string_escape_byte8.
12922 (print_object): Adjust for the new multibyte form. Print 8-bit
12923 raw bytes always in octal form. Handle sub char table correctly.
12924
12925 * process.c: Include "character.h" instead of "charset.h".
12926 (read_process_output, send_process): Adjust for the new
12927 code-conversion API.
12928
12929 * puresize.h (BASE_PURESIZE): Increase.
12930
12931 * regex.c: Include "character.h" instead of "charset.h".
12932 (BYTE8_TO_CHAR, CHAR_BYTE8_P) [not emacs]: New dummy macros.
12933 (regex_compile): Accept a range whose starting and ending
12934 character have different leading bytes.
12935 (analyse_first): Adjust for the above change.
12936
12937 * search.c: Include "character.h" instead of "charset.h".
12938 (search_buffer, boyer_moore): Adjust for the new multibyte form.
12939 (Freplace_match): Adjust for the change of multibyte_char_to_unibyte.
12940
12941 * syntax.c: Include "character.h" instead of "charset.h".
12942 (syntax_parent_lookup): Delete.
12943 (Fmodify_syntax_entry): Accept a cons as CHAR.
12944 (skip_chars): Adjust for the new multibyte form.
12945 (init_syntax_once): Call char_table_set_range instead of directly
12946 accessing the structure of a char table.
12947
12948 * syntax.h (SET_RAW_SYNTAX_ENTRY): Call CHAR_TABLE_SET.
12949 (SYNTAX_ENTRY_FOLLOW_PARENT): Delete macro.
12950 (SET_RAW_SYNTAX_ENTRY_RANGE): New macro.
12951 (SYNTAX_ENTRY_INT): Call CHAR_TABLE_REF.
12952
12953 * term.c: Include "buffer.h" and "character.h".
12954 (encode_terminal_code, write_glyphs): Adjust for the new
12955 code-conversion API.
12956 (produce_glyphs): Call CHAR_WIDTH instead of CHARSET_WIDTH.
12957
12958 * w32term.c (x_new_font): Adjust for the change of FS_LOAD_FONT.
12959
12960 * xdisp.c: Include "character.h".
12961 (get_next_display_element): Adjust for the new multibyte form.
12962 (disp_char_vector): Adjust for the new char table structure.
12963 (decode_mode_spec_coding): Adjust for the new structure of
12964 coding system.
12965 (decode_mode_spec): Adjust for the new code-conversion API.
12966
12967 * xfaces.c: Include "character.h" instead of "charset.h".
12968 (load_face_font): Adjust for the change of choose_face_font and
12969 FS_LOAD_FONT.
12970 (generate_ascii_font): New function.
12971 (set_lface_from_font_name): Adjust for the change of FS_LOAD_FONT.
12972 (set_font_frame_param): Adjust for the change of choose_face_font.
12973 (free_realized_face): Make it public.
12974 (free_realized_faces_for_fontset): Rename from
12975 free_realized_multibyte_face. Free also faces realized for ASCII.
12976 (choose_face_font): Change arguments. Adjust for the change of
12977 fontset_font_pattern and FS_LOAD_FONT.
12978
12979 * xfns.c: Include "character.h".
12980 (x_encode_text): Adjust for the new code-conversion API.
12981
12982 * xselect.c: Don't include "charset.h".
12983 (selection_data_to_lisp_data): Adjust for the new code conversion API.
12984
12985 * xterm.c: Include "character.h".
12986 (x_encode_char): New argument CHARSET. Change caller.
12987 (x_get_char_face_and_encoding, x_get_glyph_face_and_encoding):
12988 Call ENCODE_CHAR instead of SPLIT_CHAR.
12989 (x_produce_glyphs): Don't check Vnonascii_translation_table Call
12990 CHAR_WIDTH instead of CHARSET_WIDTH.
12991 (XTread_socket): Adjust for the new code-conversion API.
12992 (x_new_font): Adjust for the change of FS_LOAD_FONT.
12993 (x_load_font): Adjust for the change of struct font.
12994
129952008-02-01 Stefan Monnier <monnier@iro.umontreal.ca>
12996
12997 * xfaces.c (face_at_buffer_position): Remove unused vars.
12998
129992008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
13000
13001 * ccl.c (CCL_WRITE_CHAR, CCL_WRITE_MULTIBYTE_CHAR):
13002 Fix overflow checking.
13003
130042008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
13005
13006 * ccl.c (CCL_WRITE_CHAR, CCL_WRITE_MULTIBYTE_CHAR, ccl_driver):
13007 Cancel previous change.
13008
130092008-01-31 Kenichi Handa <handa@ni.aist.go.jp>
13010
13011 * ccl.c (CCL_WRITE_CHAR): Increment extra_bytes only when
13012 ccl->eight_bit_control. Fix check for buffer overflow.
13013 (CCL_WRITE_MULTIBYTE_CHAR): Fix check for buffer overflow.
13014 (ccl_driver): Initialize extra_bytes to 0.
13015
130162008-01-31 Kenichi Handa <handa@ni.aist.go.jp>
13017
13018 * keyboard.c (make_ctrl_char): If C is a multibyte character, just
13019 return it ORed with ctrl_modifier.
13020
130212008-01-29 Miles Bader <miles@gnu.org>
13022
13023 * macterm.c (XTset_vertical_scroll_bar): Fix merge mistake.
13024
130252008-01-28 Jason Rumney <jasonr@gnu.org>
13026
13027 * w32.c (stat): Don't double check for networked drive.
13028
130292008-01-28 Stefan Monnier <monnier@iro.umontreal.ca>
13030
13031 * window.c (run_window_configuration_change_hook): New function.
13032 Code extracted from set_window_buffer. Set the selected frame.
13033 (set_window_buffer): Use it.
13034 * window.h (run_window_configuration_change_hook): Declare.
13035 * dispnew.c (change_frame_size_1): Use it instead of set-window-buffer.
13036
13037 * keyboard.c (read_char): Yet another int/Lisp_Object mixup (YAILOM).
13038
130392008-01-27 Dan Nicolaescu <dann@ics.uci.edu>
13040
13041 * Makefile.in: Remove references to unused macros.
13042
130432008-01-26 Eli Zaretskii <eliz@gnu.org>
13044
13045 * w32.c (g_b_init_get_sid_sub_authority)
13046 (g_b_init_get_sid_sub_authority_count): New static variables.
13047 (GetSidSubAuthority_Proc, GetSidSubAuthorityCount_Proc): New typedefs.
13048 (get_sid_sub_authority, get_sid_sub_authority_count): New functions.
13049 (init_user_info): Use them to retrieve uid and gid.
13050 Use 500/513, the Windows defaults, as Administrator's uid/gid.
13051 (fstat): Use pw_uid and pw_gid from the_passwd structure for
13052 st_uid and st_gid of the file.
13053
130542008-01-26 Jason Rumney <jasonr@gnu.org>
13055
13056 * w32.c (logon_network_drive): New function.
13057 (stat): Use it.
13058
130592008-01-26 Chong Yidong <cyd@stupidchicken.com>
13060
13061 * xdisp.c (pos_visible_p): Handle the case where charpos falls on
13062 invisible text covered with an ellipsis.
13063
130642008-01-25 Richard Stallman <rms@gnu.org>
13065
13066 * xdisp.c (redisplay_window): Run Qwindow_text_change_functions and
13067 jump back to beginning. Move some other initializations after that.
13068 (Qwindow_text_change_functions, Vwindow_text_change_functions):
13069 New variables.
13070 (syms_of_xdisp): Init them.
13071
13072 * keyboard.c (read_char): Restore echo_message_buffer after redisplay.
13073
13074 * buffer.c (reset_buffer_local_variables):
13075 Implement `permanent-local-hook'.
13076 (Qpermanent_local_hook): New variable.
13077 (syms_of_buffer): Init and staticpro it.
13078
130792008-01-25 Michael Albinus <michael.albinus@gmx.de>
13080
13081 * dbusbind.c (xd_retrieve_arg): Pacify GCC on x86_64 GNU/Linux.
13082
130832008-01-25 Thien-Thi Nguyen <ttn@gnuvola.org>
13084
13085 * fns.c (Fclrhash): Return TABLE.
13086
130872008-01-23 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
13088
13089 * macterm.c (x_scroll_bar_create): Initialize bar->redraw_needed_p.
13090 (XTset_vertical_scroll_bar): Redraw scroll bar if bar->redraw_needed_p
13091 is set even without positional changes.
13092 (x_scroll_bar_clear): Set bar->redraw_needed_p.
13093
13094 * macterm.h (struct scroll_bar): New member `redraw_needed_p'.
13095
130962008-01-23 Jason Rumney <jasonr@gnu.org>
13097
13098 * xterm.c (handle_one_xevent): Revert to counting chars not bytes.
13099
13100 * w32term.c (w32_read_socket) <WM_CHAR>: Decode characters outside
13101 the unicode range available in MULE by locale-coding-system.
13102 Improve dbcs lead byte detection. Set event timestamp and modifiers
13103 earlier.
13104
131052008-01-23 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
13106
13107 * mac.c (mac_emacs_pid) [MAC_OSX]: New variable.
13108 [MAC_OSX] (init_mac_osx_environment): Initialize it.
13109 [MAC_OSX] (mac_try_close_socket) [SELECT_USE_CFSOCKET]: Return 0
13110 when used on child processes.
13111
131122008-01-21 Michael Albinus <michael.albinus@gmx.de>
13113
13114 * dbusbind.c (Fdbus_method_return_internal): Rename from
13115 Fdbus_method_return.
13116 (Fdbus_unregister_object): Move to dbus.el.
13117 (Fdbus_call_method, Fdbus_method_return_internal)
13118 (Fdbus_send_signal): Improve debug messages.
13119
131202008-01-20 Martin Rudalics <rudalics@gmx.at>
13121
13122 * undo.c (undo_inhibit_record_point): New variable.
13123 (syms_of_undo): Initialize it.
13124 (record_point): Don't record point when undo_inhibit_record_point
13125 is set.
13126
131272008-01-19 Stefan Monnier <monnier@iro.umontreal.ca>
13128
13129 * process.c (list_processes_1): Don't use SCHARS on a nil buffer name.
13130
13131 * xdisp.c (Qauto_hscroll_mode): New var.
13132 (syms_of_xdisp): Initialize it.
13133 (hscroll_window_tree): Use it to lookup `auto-hscroll-mode' in each
13134 window's buffer.
13135 (hscroll_windows): Don't check automatic_hscrolling_p here.
13136
13137 * window.c (set_window_buffer): Don't unnecessarily reset hscroll and
13138 vscroll if we're setting window-buffer to the value it already has.
13139
131402008-01-18 Dan Nicolaescu <dann@ics.uci.edu>
13141
13142 * m/intel386.h: Remove references to XENIX.
13143
131442008-01-17 Andreas Schwab <schwab@suse.de>
13145
13146 * m/amdx86-64.h (START_FILES, LIB_STANDARD): Use HAVE_LIB64_DIR
13147 instead of HAVE_X86_64_LIB64_DIR.
13148 * m/ibms390x.h (START_FILES, LIB_STANDARD): Likewise.
13149
131502008-01-17 Glenn Morris <rgm@gnu.org>
13151
13152 * m/ibms390x.h (START_FILES, LIB_STANDARD): Adjust value according
13153 to HAVE_X86_64_LIB64_DIR.
13154
131552008-01-16 Dan Nicolaescu <dann@ics.uci.edu>
13156
13157 * s/irix3-3.h:
13158 * s/irix4-0.h:
13159 * s/386-ix.h:
13160 * s/domain.h:
13161 * s/hpux9-x11r4.h:
13162 * s/hpux9shxr4.h: Remove files for systems no longer supported.
13163
13164 * sysdep.c: Remove code containing references to symbols defined
13165 by unsupported systems.
13166
131672008-01-16 Glenn Morris <rgm@gnu.org>
13168
13169 * coding.c (select-safe-coding-system-function): Doc fix.
13170
131712008-01-15 Glenn Morris <rgm@gnu.org>
13172
13173 * config.in: Revert 2008-01-13 change: this is a generated file.
13174
131752008-01-13 Tom Tromey <tromey@redhat.com>
13176
13177 * lisp.h: Fix typo.
13178
131792008-01-13 Dan Nicolaescu <dann@ics.uci.edu>
13180
13181 * m/sequent-ptx.h:
13182 * m/sequent.h:
13183 * s/ptx.h:
13184 * s/ptx4-2.h:
13185 * s/ptx4.h: Remove files for systems no longer supported.
13186
13187 * callproc.c (Fcall_process): Fix previous change.
13188
131892008-01-13 Dan Nicolaescu <dann@ics.uci.edu>
13190
13191 * unexsunos4.c: Remove file, system not supported anymore.
13192
13193 * m/mips.h:
13194 * m/intel386.h:
13195 * callproc.c:
13196 * config.in:
13197 * ecrt0.c:
13198 * emacs.c:
13199 * fileio.c:
13200 * frame.c:
13201 * getpagesize.h:
13202 * keyboard.c:
13203 * lread.c:
13204 * process.c:
13205 * puresize.h:
13206 * sysdep.c:
13207 * systty.h:
13208 * syswait.h:
13209 * unexec.c:
13210 * xdisp.c:
13211 * alloc.c: Remove code containing references to symbols defined by
13212 unsupported systems.
13213
132142008-01-11 Kenichi Handa <handa@ni.aist.go.jp>
13215
13216 * coding.c (detect_coding_mask): Fix previous change.
13217
132182008-01-09 Kenichi Handa <handa@ni.aist.go.jp>
13219
13220 * coding.c (detect_coding_iso2022): New arg
13221 latin_extra_code_state. Allow Latin extra codes only
13222 when *latin_extra_code_state is nonzero.
13223 (detect_coding_mask): If there is a NULL byte, detect the encoding
13224 as UTF-16 or binary. If Latin extra codes exist, detect the
13225 encoding as ISO-2022 only when there's no other proper encoding is
13226 found.
13227
132282008-01-08 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
13229
13230 * frame.c (Fmake_terminal_frame): Use #ifdef MAC_OS8 instead of
13231 #ifdef MAC_OS.
13232
132332008-01-08 Richard Stallman <rms@gnu.org>
13234
13235 * fileio.c (Ffile_name_directory, Fexpand_file_name): Doc fixes.
13236
132372008-01-06 Nick Roberts <nickrob@snap.net.nz>
13238
13239 * keyboard.c (parse_menu_item): Don't enclose key bindings on
13240 menu bar in parentheses.
13241
132422008-01-06 Dan Nicolaescu <dann@ics.uci.edu>
13243
13244 * m/7300.h:
13245 * m/acorn.h:
13246 * m/alliant-2800.h:
13247 * m/alliant.h:
13248 * m/alliant1.h:
13249 * m/alliant4.h:
13250 * m/altos.h:
13251 * m/amdahl.h:
13252 * m/apollo.h:
13253 * m/att3b.h:
13254 * m/aviion-intel.h:
13255 * m/aviion.h:
13256 * m/celerity.h:
13257 * m/clipper.h:
13258 * m/cnvrgnt.h:
13259 * m/convex.h:
13260 * m/cydra5.h:
13261 * m/delta88k.h:
13262 * m/dpx2.h:
13263 * m/dual.h:
13264 * m/elxsi.h:
13265 * m/f301.h:
13266 * m/gould-np1.h:
13267 * m/gould.h:
13268 * m/i860.h:
13269 * m/ibmps2-aix.h:
13270 * m/ibmrt-aix.h:
13271 * m/ibmrt.h:
13272 * m/irist.h:
13273 * m/is386.h:
13274 * m/isi-ov.h:
13275 * m/mega68.h:
13276 * m/mg1.h:
13277 * m/news-r6.h:
13278 * m/news-risc.h:
13279 * m/news.h:
13280 * m/nh3000.h:
13281 * m/nh4000.h:
13282 * m/ns16000.h:
13283 * m/ns32000.h:
13284 * m/nu.h:
13285 * m/orion.h:
13286 * m/orion105.h:
13287 * m/paragon.h:
13288 * m/pfa50.h:
13289 * m/plexus.h:
13290 * m/pyramid.h:
13291 * m/pyrmips.h:
13292 * m/sh3el.h:
13293 * m/sps7.h:
13294 * m/sr2k.h:
13295 * m/stride.h:
13296 * m/sun1.h:
13297 * m/sun2.h:
13298 * m/sun3-68881.h:
13299 * m/sun3-fpa.h:
13300 * m/sun3-soft.h:
13301 * m/sun3.h:
13302 * m/sun386.h:
13303 * m/symmetry.h:
13304 * m/tad68k.h:
13305 * m/tahoe.h:
13306 * m/targon31.h:
13307 * m/tek4300.h:
13308 * m/tekxd88.h:
13309 * m/tower32.h:
13310 * m/tower32v3.h:
13311 * m/ustation.h:
13312 * m/wicat.h:
13313 * m/xps100.h:
13314 * s/cxux.h:
13315 * s/cxux7.h:
13316 * s/dgux.h:
13317 * s/dgux4.h:
13318 * s/dgux5-4-3.h:
13319 * s/dgux5-4r2.h:
13320 * s/esix.h:
13321 * s/esix5r4.h:
13322 * s/hiuxmpp.h:
13323 * s/hiuxwe2.h:
13324 * s/iris3-5.h:
13325 * s/iris3-6.h:
13326 * s/isc2-2.h:
13327 * s/isc3-0.h:
13328 * s/isc4-0.h:
13329 * s/isc4-1.h:
13330 * s/newsos5.h:
13331 * s/newsos6.h:
13332 * s/osf1.h:
13333 * s/osf5-0.h:
13334 * s/riscix1-1.h:
13335 * s/riscix12.h:
13336 * s/sco4.h:
13337 * s/sco5.h:
13338 * s/sunos4-0.h:
13339 * s/sunos4-1.h:
13340 * s/sunos413.h:
13341 * s/sunos4shr.h:
13342 * s/umax.h:
13343 * s/unipl5-2.h:
13344 * s/xenix.h:
13345 * cxux-crt0.s:
13346 * unexapollo.c:
13347 * unexconvex.c:
13348 * unexenix.c:
13349 * unexsni.c: Remove files for systems no longer supported.
13350
13351 * m/intel386.h: Remove references to unsupported systems.
13352
13353 * w32.c (get_emacs_configuration): Remove reference to i860.
13354
13355 * sysdep.c: Remove dead code.
13356
133572008-01-05 Dan Nicolaescu <dann@ics.uci.edu>
13358
13359 * s/rtu.h:
13360 * m/masscomp.h: Remove files. Platform is obsolete.
13361
133622008-01-04 Michael Albinus <michael.albinus@gmx.de>
13363
13364 * dbusbind.c (Fdbus_method_return): New function.
13365 (xd_read_message): Add the serial number to the event.
13366 (Fdbus_register_method): Activate the function.
13367
133682008-01-03 Stefan Monnier <monnier@iro.umontreal.ca>
13369
13370 * keyboard.c (read_key_sequence): Fix typo.
13371
133722008-01-03 Michael Albinus <michael.albinus@gmx.de>
13373
13374 * dbusbind.c (all): Replace XCAR by CAR_SAFE and XCDR by CDR_SAFE.
13375 (xd_signature, xd_append_arg): Handle element type detection for
13376 empty arrays.
13377 (Fdbus_call_method, Fdbus_send_signal): Undo type casting for
13378 SDATA () calls; this must be solved more general.
13379 (Fdbus_register_signal): Use SBYTES instead of strlen.
13380
133812008-01-03 Magnus Henoch <magnus@zemdatav>
13382
13383 * dbusbind.c (xd_append_arg): Use unsigned char instead of
13384 unsigned int for byte values (necessary for big-endian platform).
13385 (Fdbus_call_method): Handle the case of no returned arguments.
13386
133872007-12-31 Tom Tromey <tromey@redhat.com> (tiny change)
13388
13389 * dbusbind.c (xd_read_message): Use non-static input_event struct.
13390
133912007-12-31 Magnus Henoch <mange@freemail.hu>
13392
13393 * dbusbind.c (xd_signature): Signature of variant is just "v".
13394
133952007-12-30 Michael Albinus <michael.albinus@gmx.de>
13396
13397 * dbusbind.c: Fix several errors and compiler warnings.
13398 Reported by Tom Tromey <tromey@redhat.com>.
13399 (XD_ERROR, XD_DEBUG_MESSAGE)
13400 (XD_DEBUG_VALID_LISP_OBJECT_P): Wrap code with "do ... while (0)".
13401 (xd_append_arg): Part for basic D-Bus types rewritten.
13402 (xd_retrieve_arg): Split implementation of DBUS_TYPE_BYTE and
13403 DBUS_TYPE_(U)INT16. Don't call XD_DEBUG_MESSAGE with "%f" if not
13404 appropriate.
13405 (xd_read_message): Return Qnil. Don't signal an error; it is not
13406 useful during event reading.
13407 (Fdbus_register_signal): Signal an error if the check for
13408 FUNCTIONP fails.
13409 (Fdbus_register_method): New function. The implementation is not
13410 complete, the call of the function signals an error therefore.
13411 (Fdbus_unregister_object): New function, renamed from
13412 Fdbus_unregister_signal. The initial check signals an error, if
13413 the object is not well formed.
13414
134152007-12-30 Richard Stallman <rms@gnu.org>
13416
13417 * textprop.c (get_char_property_and_overlay):
13418 Signal error if POSITION is out of range in a buffer.
13419
134202007-12-29 Martin Rudalics <rudalics@gmx.at>
13421
13422 * w32fns.c (Fx_create_frame): Make copy of frame parameters
13423 because the original parameters are in pure storage now.
13424
134252007-12-24 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
13426
13427 * xdisp.c (phys_cursor_in_rect_p): Check if cursor is in fringe area.
13428
134292007-12-22 Eli Zaretskii <eliz@gnu.org>
13430
13431 * callint.c (syms_of_callint) <command-history>: Add reference to
13432 history-length in the doc string.
13433
134342007-12-17 Jason Rumney <jasonr@gnu.org>
13435
13436 * w32fns.c (w32_wnd_proc) <WM_KEYDOWN>: Cast char to unsigned
13437 before passing as wParam.
13438
134392007-12-22 Michael Albinus <michael.albinus@gmx.de>
13440
13441 * dbusbind.c (xd_retrieve_arg): Handle DBUS_TYPE_BYTE,
13442 DBUS_TYPE_INT16, DBUS_TYPE_UINT16, DBUS_TYPE_INT64,
13443 DBUS_TYPE_UINT64, DBUS_TYPE_DOUBLE and DBUS_TYPE_SIGNATURE.
13444 Return float when DBUS_TYPE_INT32 or DBUS_TYPE_UINT32 do not fit
13445 as number.
13446 (Fdbus_call_method): Fix docstring.
13447
134482007-12-21 Michael Albinus <michael.albinus@gmx.de>
13449
13450 * dbusbind.c (XD_BASIC_DBUS_TYPE, XD_DBUS_TYPE_P, XD_NEXT_VALUE):
13451 New macros.
13452 (XD_SYMBOL_TO_DBUS_TYPE): Rename from XD_LISP_SYMBOL_TO_DBUS_TYPE.
13453 (XD_OBJECT_TO_DBUS_TYPE): Rename from XD_LISP_OBJECT_TO_DBUS_TYPE.
13454 Simplify.
13455 (xd_signature): New function.
13456 (xd_append_arg): Compute also signatures. Major rewrite.
13457 (xd_retrieve_arg): Make debug messages friendly.
13458 (Fdbus_call_method, Fdbus_send_signal): Extend docstring.
13459 Check for signatures of arguments.
13460
134612007-12-19 Michael Albinus <michael.albinus@gmx.de>
13462
13463 * dbusbind.c (QCdbus_type_byte, QCdbus_type_boolean)
13464 (QCdbus_type_int16, QCdbus_type_uint16, QCdbus_type_int32)
13465 (QCdbus_type_uint32, QCdbus_type_int64, QCdbus_type_uint64)
13466 (QCdbus_type_double, QCdbus_type_string, QCdbus_type_object_path)
13467 (QCdbus_type_signature, QCdbus_type_array, QCdbus_type_variant)
13468 (QCdbus_type_struct, QCdbus_type_dict_entry): New D-Bus type symbols.
13469 (XD_LISP_SYMBOL_TO_DBUS_TYPE): New macro.
13470 (XD_LISP_OBJECT_TO_DBUS_TYPE): Add compound types.
13471 (xd_retrieve_value): Remove. Functionality included in ...
13472 (xd_append_arg): New function.
13473 (Fdbus_call_method, Fdbus_send_signal): Apply it.
13474
134752007-12-16 Michael Albinus <michael.albinus@gmx.de>
13476
13477 * dbusbind.c (top): Include <stdio.h>.
13478 (Fdbus_call_method, Fdbus_send_signal): Apply type cast in
13479 dbus_message_new_method_call and dbus_message_new_signal.
13480 (Fdbus_register_signal): Rename unique_name to uname.
13481 Check handler for FUNCTIONP instead of CHECK_SYMBOL. Handle case of
13482 non-existing unique name. Fix typos in matching rule. Return an
13483 object which is useful in Fdbus_unregister_signal.
13484 (Fdbus_unregister_signal): Reimplementation, in order to remove
13485 only the corresponding entry.
13486 (Vdbus_registered_functions_table): Change the order of entries.
13487 Apply these changes in xd_read_message and Fdbus_register_signal.
13488
134892007-12-16 Andreas Schwab <schwab@suse.de>
13490
13491 * fileio.c (Finsert_file_contents): Fix overflow check to not
13492 depend on undefined integer overflow.
13493
134942007-12-14 Jason Rumney <jasonr@gnu.org>
13495
13496 * w32term.c (w32_read_socket): Use MULTIBYTE_CHAR_KEYSTROKE_EVENT
13497 for characters above 127.
13498
134992007-12-13 Jason Rumney <jasonr@gnu.org>
13500
13501 * w32fns.c (w32_wnd_proc, Fw32_reconstruct_hot_key): Range check
13502 before dereferencing array.
13503 (lookup_vk_code): Remove zero comparison.
13504
135052007-12-14 Michael Albinus <michael.albinus@gmx.de>
13506
13507 * dbusbind.c (xd_retrieve_value, xd_retrieve_arg)
13508 (Fdbus_call_method, Fdbus_send_signal, xd_read_message):
13509 Use `unsigned int' instead of `uint'.
13510 (xd_read_message, Fdbus_register_signal): Split expressions into
13511 multiple lines before operators "&&" and "||", according to the
13512 GNU Coding Standards.
13513
135142007-12-14 Eli Zaretskii <eliz@gnu.org>
13515
13516 * dispextern.h (WINDOWS_NT): Fix incorrect spelling of WINDOWSNT.
13517
135182007-12-12 Juri Linkov <juri@jurta.org>
13519
13520 * buffer.c (Frename_buffer): In interactive spec replace
13521 `read-buffer' with `read-string' that uses `buffer-name-history'
13522 as history, and the current buffer's name as default.
13523
135242007-12-10 Stefan Monnier <monnier@iro.umontreal.ca>
13525
13526 * keyboard.c (Fcommand_execute): Call Qcall_interactively instead of
13527 manipulating the backtrace manually.
13528 (make_lispy_event): Merge the ASCII and MULTIBYTE cases.
13529 (struct backtrace, backtrace_list): Remove.
13530 (command_loop_1): Remove dead var `no_direct'.
13531
13532 * buffer.c (reset_buffer_local_variables): If permanent_too is 0, also
13533 preserve non-built-in buffer-local variables.
13534 (Fkill_all_local_variables): Don't re-create&re-set permanent
13535 buffer-local variables.
13536
135372007-12-09 Juri Linkov <juri@jurta.org>
13538
13539 * buffer.c (Frename_buffer): Change interactive spec from "s" to
13540 Lisp code that uses `read-buffer' with current buffer as default.
13541
135422007-12-08 Michael Albinus <michael.albinus@gmx.de>
13543
13544 * dbusbind.c (xd_read_message): Generate an event for every
13545 registered handler. There might be several handlers registered
13546 for the same signal.
13547 (Fdbus_register_signal): Don't overwrite a registration for the
13548 same signal. Add a new registration if handlers are different.
13549 (Vdbus_registered_functions_table): Rework doc string.
13550
135512007-12-07 Michael Albinus <michael.albinus@gmx.de>
13552
13553 * dbusbind.c (Fdbus_get_unique_name, xd_read_message)
13554 (Fdbus_register_signal): Use DBUS_MAXIMUM_NAME_LENGTH and
13555 DBUS_MAXIMUM_MATCH_RULE_LENGTH for string lengths.
13556 (Fdbus_call_method, Fdbus_send_signal, Fdbus_register_signal):
13557 Unify argument lists.
13558 (xd_read_message, Fdbus_register_signal): Reorder and extend event
13559 arguments and hash table keys. Use unique name for service.
13560 (Fdbus_unregister_signal): Remove checks.
13561 (Vdbus_registered_functions_table): Fix doc string.
13562
135632007-12-05 Magnus Henoch <mange@freemail.hu>
13564
13565 * process.c (make_process): Initialize pty_flag to 0.
13566
135672007-12-05 Jason Rumney <jasonr@gnu.org>
13568
13569 * image.c (xbm_load) [WINDOWSNT]: Shuffle the bits of directly
13570 specified XBMs.
13571
135722007-12-05 Richard Stallman <rms@gnu.org>
13573
13574 * xdisp.c (syms_of_xdisp) <scroll-conservatively>: Doc fix.
13575
135762007-12-05 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
13577
13578 * mac.c (cfsockets_for_select) [MAC_OSX && SELECT_USE_CFSOCKET]:
13579 New variable.
13580 (mac_try_close_socket) [MAC_OSX]: New function.
13581 [MAC_OSX] (sys_select) [SELECT_USE_CFSOCKET]:
13582 Update cfsockets_for_select. Replace invalid CFRunLoop source.
13583
13584 * sysdep.c (emacs_close) [MAC_OSX && HAVE_CARBON]:
13585 Use mac_try_close_socket.
13586
135872007-12-05 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
13588
13589 * unexmacosx.c (unrelocate): New argument BASE. Use it instead of
13590 reloc_base.
13591 (copy_dysymtab): Compute relocation base here.
13592 (rebase_reloc_address) [__ppc64__]: New function.
13593 (copy_dysymtab) [__ppc64__]: Use it if relocation base needs to be
13594 changed.
13595
135962007-12-05 Jason Rumney <jasonr@gnu.org>
13597
13598 * w32proc.c (sys_spawnve): Quote args with wildcards.
13599
136002007-12-05 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
13601
13602 * unexmacosx.c (copy_data_segment): Also copy __gcc_except_tab and
13603 __objc_* sections.
13604 (unrelocate) [_LP64]: Set relocation base to address of data segment.
13605
136062007-12-05 Michael Albinus <michael.albinus@gmx.de>
13607
13608 * dbusbind.c (xd_read_message): Return value is a Lisp_Object.
13609 Move check for Vdbus_registered_functions_table to
13610 xd_read_queued_messages.
13611 (xd_read_queued_messages): Protect xd_read_message calls by
13612 internal_condition_case_1.
13613
136142007-12-04 Michael Albinus <michael.albinus@gmx.de>
13615
13616 * dbusbind.c (QCdbus_system_bus, QCdbus_session_bus): Rename from
13617 Qdbus_system_bus and Qdbus_session_bus, respectively.
13618 (Vdbus_intern_symbols): Remove.
13619 (Vdbus_registered_functions_table): New hash table.
13620 (XD_SYMBOL_INTERN_SYMBOL): Remove.
13621 (xd_read_message, Fdbus_register_signal, Fdbus_unregister_signal):
13622 Rewrite in order to manage registered functions by hash table
13623 Vdbus_registered_functions_table.
13624
136252007-12-03 Jan Djärv <jan.h.d@swipnet.se>
13626
13627 * xterm.c: Update URL to Window Manager Specification in comment.
13628
136292007-12-02 Michael Albinus <michael.albinus@gmx.de>
13630
13631 * config.in (HAVE_DBUS): Add.
13632
13633 * Makefile.in (HAVE_DBUS): Add D-Bus definitions if defined.
13634 (ALL_CFLAGS): Add ${DBUS_CFLAGS}.
13635 (obj): Add $(DBUS_OBJ).
13636 (LIBES): Add $(DBUS_LIBS).
13637 (dbusbind.o): New target.
13638
13639 * dbusbind.c: New file.
13640
13641 * emacs.c (main): Call syms_of_dbusbind when HAVE_DBUS is defined.
13642
13643 * keyboard.c: All D-Bus related code is wrapped by "#ifdef HAVE_DBUS".
13644 (Qdbus_event): New Lisp symbol.
13645 (kbd_buffer_get_event, make_lispy_event): Handle DBUS_EVENT.
13646 (gobble_input): Call xd_read_queued_messages, reading D-Bus messages.
b97439ce 13647 (keys_of_keyboard): Define dbus-event.
aac0c6e3
MR
13648
13649 * termhooks.h (event_kind): Add DBUS_EVENT when HAVE_DBUS is defined.
13650
136512007-12-01 Richard Stallman <rms@gnu.org>
13652
13653 * search.c (syms_of_search) <inhibit-changing-match-data>: Doc fix.
13654
136552007-11-30 Jason Rumney <jasonr@gnu.org>
13656
13657 * w32console.c (w32con_ins_del_lines, scroll_line): Clip to window.
13658 (w32con_reset_terminal_modes): Clear screen buffer.
13659 (w32_face_attributes): Don't use color indexes that are out of range.
13660 Only reverse the default colors.
13661
13662 * xfaces.c (map_tty_color, tty_color_name): Remove special case for
13663 WINDOWSNT.
13664
13665 * w32console.c, w32term.h (vga_stdcolor_name): Remove.
13666
136672007-11-29 Jason Rumney <jasonr@gnu.org>
13668
13669 * w32console.c: Leave HAVE_WINDOW_SYSTEM defined.
13670 (w32_face_attributes): Use Vtty_defined_color_alist to determine
13671 if the terminal colors are initialized.
13672 (unspecified_fg, unspecified_bg): Remove unused declarations.
13673
136742007-11-29 Andreas Schwab <schwab@suse.de>
13675
13676 * keyboard.c (apply_modifiers): Fix typo.
13677
136782007-11-29 Richard Stallman <rms@gnu.org>
13679
13680 * keymap.c (Fcurrent_local_map): Doc fix.
13681
136822007-11-28 Petr Salinger <Petr.Salinger@seznam.cz> (tiny change)
13683
13684 * s/gnu-kfreebsd.h: New file.
13685
136862007-11-28 Stefan Monnier <monnier@iro.umontreal.ca>
13687
13688 * buffer.c (Fget_buffer_create, Fmake_indirect_buffer):
13689 Don't cast redundantly.
13690
13691 * keyboard.c (KEY_TO_CHAR): New macro.
13692 (parse_modifiers, apply_modifiers): Accept integer arguments.
13693 (read_key_sequence): Use them to unify the "shift->unshift" mapping
13694 for chars and symbol keys.
13695 After doing such remapping, apply function-key-map again.
13696
136972007-11-27 Dan Nicolaescu <dann@ics.uci.edu>
13698
13699 * Makefile.in (SOME_MACHINE_LISP): Remove VMS files, they are not
13700 compiled anymore.
13701
137022007-11-26 Andreas Schwab <schwab@suse.de>
13703
13704 * process.c (list_processes_1): Fix indentation level of the
13705 command column.
13706
137072007-11-23 Andreas Schwab <schwab@suse.de>
13708
13709 * editfns.c (Fformat): Handle %c specially since it requires the
13710 argument to be of type int.
13711
137122007-11-23 Markus Triska <markus.triska@gmx.at>
13713
13714 * emacs.c (main): Call init_editfns before init_process, since
13715 init_process sets Vprocess_connection_type depending on OS release.
13716
137172007-11-22 Stefan Monnier <monnier@iro.umontreal.ca>
13718
13719 * data.c (do_symval_forwarding): Use same code as in find_symbol_value.
13720 (find_symbol_value): Use do_symval_forwarding.
13721
13722 * data.c (set_internal): Set the value in the `cons-cell' (for
13723 Buffer_Local_values) not only for frame-local variables.
13724
137252007-11-22 Andreas Schwab <schwab@suse.de>
13726
13727 * data.c (Fnumber_to_string): Add cast when passing EMACS_INT
13728 values to sprintf.
13729 * keymap.c (Fsingle_key_description): Likewise.
13730 * print.c (print_object): Likewise.
13731
137322007-11-22 Jan Djärv <jan.h.d@swipnet.se>
13733
13734 * gtkutil.c (update_frame_tool_bar): Don't call x-gtk-map-stock if
13735 file for image is nil.
13736
137372007-11-22 Dan Nicolaescu <dann@ics.uci.edu>
13738
13739 * term.c: Include stdarg.h.
13740 (fatal): Implement using varargs.
13741 * lisp.h (fatal): Add argument types. (Restore 2005-09-30 change).
13742
137432007-11-21 Stefan Monnier <monnier@iro.umontreal.ca>
13744
13745 * lisp.h (struct Lisp_Buffer_Objfwd): Add a `slottype' field.
13746 * data.c (store_symval_forwarding): Get type from buffer_objfwd.
13747 Update call to buffer_slot_type_mismatch.
13748 * buffer.h (buffer_local_types, PER_BUFFER_TYPE): Remove.
13749 (buffer_slot_type_mismatch): Update.
13750 * buffer.c (buffer_local_types): Remove.
13751 (buffer_slot_type_mismatch): Get the symbol and type as arguments.
13752 (defvar_per_buffer): Set the type in the buffer_objfwd.
13753
137542007-11-21 Jason Rumney <jasonr@gnu.org>
13755
13756 * w32bdf.c (w32_init_bdf_font, w32_BDF_to_x_font):
13757 CreateFileMapping returns NULL on failure.
13758
137592007-11-21 Stefan Monnier <monnier@iro.umontreal.ca>
13760
13761 * search.c (Fset_match_data): Remove the `evaporate' feature.
13762 (unwind_set_match_data): Don't use the `evaporate' feature.
13763
137642007-11-21 Jason Rumney <jasonr@gnu.org>
13765
13766 * dispnew.c (init_display) [WINDOWSNT]: Hardcode terminal_type.
13767
13768 * w32console.c (w32con_write_glyphs): Remove unused variables.
13769
137702007-11-20 Dan Nicolaescu <dann@ics.uci.edu>
13771
13772 * macterm.c (mac_term_init): Call add_keyboard_wait_descriptor.
13773
13774 * s/darwin.h (MULTI_KBOARD): Remove.
13775
13776 * macfns.c (x_create_tip_frame, Fx_create_frame)
13777 (x_create_tip_frame): Don't deal with MULTI_KBOARD.
13778
137792007-11-19 Stefan Monnier <monnier@iro.umontreal.ca>
13780
13781 * buffer.c (Fbuffer_local_value): Remove redundant test.
13782 (swap_out_buffer_local_variables): Swap out binding in `buffer' rather
13783 than in `current-buffer' to match the comment.
13784 Do the swap using swap_in_global_binding.
13785
13786 * data.c (store_symval_forwarding, set_internal):
13787 * eval.c (specbind): Remove dead code.
13788
13789 * coding.c (detect_coding, Fupdate_coding_systems_internal):
13790 * fns.c (Fmd5): Use find_symbol_value rather than SYMBOL_VALUE
13791 Since we do not want to see internal Lisp_*fwd objects here.
13792
137932007-11-18 Jan Djärv <jan.h.d@swipnet.se>
13794
13795 * sysdep.c (init_system_name): Use getaddrinfo if available.
13796
13797 * xterm.c (x_scroll_bar_set_handle, x_scroll_bar_handle_click)
13798 (x_scroll_bar_note_movement): start, end, with, height in struct
13799 scroll_bar are integers and not Lisp_Object, so remove XINT for them.
13800
138012007-11-17 Dan Nicolaescu <dann@ics.uci.edu>
13802
13803 * puresize.h (BASE_PURESIZE): Increase to 1190000.
13804
138052007-11-16 Stefan Monnier <monnier@iro.umontreal.ca>
13806
13807 * buffer.h (struct buffer): Move `undo_list' back to before `name'.
13808 This undoes Richard's change of 14-Oct-2002.
13809
13810 * alloc.c (allocate_other_vector):
13811 * lisp.h (allocate_other_vector): Remove.
13812
13813 * window.c (struct save_window_data): Move non-lisp data to the end
13814 and make it `int' rather than Lisp_Object.
13815 (Fcurrent_window_configuration): Use ALLOCATE_PSEUDOVECTOR.
13816 Done wrap/unwrap integer values.
13817 (Fset_window_configuration, compare_window_configurations):
13818 Update use of fields to their new types.
13819
13820 * xterm.h (struct scroll_bar): Only use Lisp_Object for lisp data.
13821 Turn integer fields into `int'. Merge x_window_low and x_window_high.
13822 (SCROLL_BAR_PACK, SCROLL_BAR_UNPACK, SCROLL_BAR_X_WINDOW)
13823 (SET_SCROLL_BAR_X_WINDOW): Remove.
13824 (SCROLL_BAR_X_WIDGET, SET_SCROLL_BAR_X_WIDGET):
13825 Access the new x_window field directly.
13826 * xterm.c (x_scroll_bar_create): Use a pseudovector.
13827 Don't wrap/unwrap integers into Lisp_Objects.
13828 (XTset_vertical_scroll_bar, x_scroll_bar_handle_click)
13829 (x_scroll_bar_report_motion):
13830 Don't wrap/unwrap integers into Lisp_Objects.
13831 (x_term_init): Use SDATA.
13832 (x_window_to_scroll_bar, x_create_toolkit_scroll_bar)
13833 (x_scroll_bar_set_handle, x_scroll_bar_remove)
13834 (XTset_vertical_scroll_bar, x_scroll_bar_expose)
13835 (x_scroll_bar_report_motion, x_scroll_bar_clear):
13836 * xfns.c (x_set_background_color):
13837 * gtkutil.c (xg_create_scroll_bar, xg_set_toolkit_scroll_bar_thumb):
13838 Access the new x_window field directly.
13839
13840 * alloc.c (ALLOCATE_PSEUDOVECTOR): Move to lisp.h.
13841 (allocate_pseudovector): Make non-static.
13842
13843 * lisp.h (enum pvec_type): New tag PVEC_OTHER.
13844 (allocate_pseudovector): Declare.
13845 (ALLOCATE_PSEUDOVECTOR): Move from alloc.c.
13846
138472007-11-15 Andreas Schwab <schwab@suse.de>
13848
13849 * editfns.c (Fformat): Correctly format EMACS_INT values.
13850 Also take precision into account when formatting an integer.
13851
13852 * keyboard.c (Fevent_symbol_parse_modifiers): Fix declaration.
13853
138542007-11-15 Stefan Monnier <monnier@iro.umontreal.ca>
13855
13856 * keyboard.c (Fevent_symbol_parse_modifiers): New function.
13857 (syms_of_keyboard): Defsubr it.
13858
13859 * data.c (swap_in_global_binding): Fix longstanding bug where
13860 store_symval_forwarding was not called with the right second argument,
13861 thus causing objfwd-ing from being dropped.
13862
138632007-11-14 Juanma Barranquero <lekktu@gmail.com>
13864
13865 * macfns.c (Fx_create_frame, Fx_display_pixel_width)
13866 (Fx_display_pixel_height, Fx_display_planes)
13867 (Fx_display_color_cells, Fx_server_max_request_size)
13868 (Fx_server_vendor, Fx_server_version, Fx_display_backing_store)
13869 (Fx_display_visual_class, Fx_display_save_under):
13870 * w32fns.c (Fx_create_frame, Fx_display_pixel_width)
13871 (Fx_display_pixel_height, Fx_display_planes)
13872 (Fx_display_color_cells, Fx_server_max_request_size)
13873 (Fx_server_vendor, Fx_server_version, Fx_display_screens)
13874 (Fx_display_mm_height, Fx_display_mm_width)
13875 (Fx_display_backing_store, Fx_display_visual_class)
13876 (Fw32_select_font, Fx_display_save_under):
13877 * xfns.c (Fx_create_frame, Fx_display_pixel_width)
13878 (Fx_display_pixel_height, Fx_display_planes)
13879 (Fx_display_color_cells, Fx_server_max_request_size)
13880 (Fx_server_vendor, Fx_server_version, Fx_display_backing_store)
13881 (Fx_display_save_under): Fix typos in docstrings.
13882
138832007-11-14 Juanma Barranquero <lekktu@gmail.com>
13884
13885 * w32fns.c (Fw32_registered_hot_keys): Don't return the nil values
13886 corresponding to deleted entries; they are an implementation detail.
13887 (gray_bitmap_width, gray_bitmap_height, gray_bitmap_bits):
13888 Remove variables.
13889 (w32_pass_extra_mouse_buttons_to_system, w32_strict_fontnames)
13890 (w32_pass_multimedia_buttons_to_system, w32_strict_painting)
13891 (Vw32_charset_info_alist, w32_to_x_color, w32_init_class)
13892 (w32_createscrollbar, w32_createwindow, my_post_msg, w32_get_modifiers)
13893 (w32_grabbed_keys, cancel_all_deferred_msgs): Make static.
13894 (Fw32_define_rgb_color, Fw32_load_color_file)
13895 (syms_of_w32fns) <w32-pass-multimedia-buttons-to-system>:
13896 Fix typos in docstrings.
13897 (Fx_server_version): Reflow docstring.
13898 (Fw32_shell_execute): Doc fixes.
13899
139002007-11-13 Juanma Barranquero <lekktu@gmail.com>
13901
13902 * w32fns.c (Fw32_register_hot_key): Don't try to register hot key
13903 if w32_parse_hot_key returned nil.
13904
139052007-11-10 Stefan Monnier <monnier@iro.umontreal.ca>
13906
13907 * xdisp.c (load_overlay_strings): Fix copy&paste typo.
13908
139092007-11-09 Jason Rumney <jasonr@gnu.org>
d6c952f8 13910
aac0c6e3
MR
13911 * s/ms-w32.c (USE_TOOLKIT_SCROLL_BARS): Define.
13912
13913 * w32term.c (w32_scroll_bar_handle_click): Use SCROLL_BAR_CLICK_EVENT.
13914
13915 * keyboard.c (discard_mouse_events, make_lispy_event) [WINDOWSNT]:
13916 Remove W32_SCROLL_BAR_CLICK_EVENT.
13917
13918 * termhooks.h (enum event_kind) [WINDOWSNT]: Likewise.
13919 Add MULTIMEDIA_KEY_EVENT.
13920
13921 * keyboard.c (lispy_function_keys) [WINDOWSNT]: Add more keys.
13922 (lispy_multimedia_keys) [WINDOWSNT]: New array.
13923 (make_lispy_event) [WINDOWSNT]: Use it to translate
13924 MULTIMEDIA_KEY_EVENT.
13925
13926 * w32term.h (WM_APPCOMMAND): Define if not already.
13927 (GET_APPCOMMAND_LPARAM): Likewise.
13928
13929 * w32term.c (w32_read_socket): Generate MULTIMEDIA_KEY_EVENT from
13930 WM_APPCOMMAND.
13931
13932 * w32fns.c (w32_pass_multimedia_buttons_to_system): New user option.
13933 (syms_of_w32fns): Export and initialize it.
13934 (w32_wnd_proc): Pass WM_APPCOMMAND on to w32_read_socket.
13935
139362007-11-09 Chong Yidong <cyd@stupidchicken.com>
13937
13938 * dispextern.h (struct it): Don't define OVERLAY_STRING_CHUNK_SIZE
13939 twice.
13940
13941 * xdisp.c (handle_face_prop): Fix last change.
13942
139432007-11-09 Richard Stallman <rms@gnu.org>
13944
13945 * xdisp.c (handle_face_prop): Test for strings that came from overlays,
13946 not just for after-strings and before-strings.
13947 Call face_for_overlay_string and pass the overlay to it.
13948 (handle_display_prop): Determine whether property came from an overlay.
13949 Pass OVERLAY arg to handle_single_display_spec.
13950 (handle_single_display_spec): New arg OVERLAY sets it->from_overlay.
13951 (load_overlay_strings): Fill in it->string_overlays.
13952 (get_overlay_strings_1, push_it, pop_it): Handle it->from_overlays.
13953
13954 * xfaces.c (face_for_overlay_string): Function renamed from
13955 face_at_buffer_position_no_overlays, and add arg OVERLAY.
13956
13957 * dispextern.h (struct it): New elt string_overlays.
13958 New elt from_overlay, also in stack.
13959 Rearrange a few elements.
13960 (face_for_overlay_string): Decl renamed from
13961 face_at_buffer_position_no_overlays, and add argument.
13962
139632007-11-09 Richard Stallman <rms@gnu.org>
13964
13965 * xdisp.c (handle_face_prop): Use face_at_buffer_position_no_overlays
13966 to get the base face for an overlay string.
13967
13968 * dispextern.h (face_at_buffer_position_no_overlays): Add decl.
13969
13970 * xfaces.c (face_at_buffer_position_no_overlays): New function.
13971
13972 * xdisp.c (handle_stop): Move some code out of loop.
13973
139742007-11-09 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
13975
13976 * macfns.c [USE_ATSUI] (Fmac_atsu_font_face_attributes):
13977 Fix conversion from Lisp object to ATSUFontID.
13978
139792007-11-09 Jason Rumney <jasonr@gnu.org>
13980
13981 * xdisp.c (Fformat_mode_line): Do nothing when noninteractive.
13982
139832007-11-09 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
13984
13985 * unexmacosx.c (unexec_regions_recorder, unexec_regions_merge):
13986 Don't assume regions are aligned to page boundary.
13987 (print_load_command_name): Add LC_UUID if defined.
13988
139892007-11-09 Richard Stallman <rms@gnu.org>
13990
13991 * emacs.c (syms_of_emacs) <installation-directory>: Reflow docstring.
13992
139932007-11-07 Jason Rumney <jasonr@gnu.org>
13994
13995 * s/windows95.h: Remove.
13996
139972007-11-06 Jan Djärv <jan.h.d@swipnet.se>
13998
13999 * gtkutil.c (xg_tool_bar_menu_proxy): Handle GTK_IMAGE_ICON_NAME and
14000 abort with a message on unhandled store_type values.
14001
140022007-11-01 Jan Djärv <jan.h.d@swipnet.se>
14003
14004 * xterm.c, xfns.c, xselect.c, xterm.h, s/msdos.h, s/sco4.h, s/sco5.h:
14005 Remove HAVE_X11R5 and HAVE_X11R4.
14006
140072007-11-01 Dan Nicolaescu <dann@ics.uci.edu>
14008
14009 * Makefile.in: Remove references to sunfns.c and sunfns.o.
14010
140112007-11-01 Johan Bockgård <bojohan@gnu.org>
14012
14013 * macterm.c, w32term.c, xterm.c (x_draw_stretch_glyph_string):
14014 Don't set s->stippled_p here, since it has already been set by
14015 x_set_glyph_string_gc from x_draw_glyph_string.
14016
140172007-11-01 Dan Nicolaescu <dann@ics.uci.edu>
14018
14019 * sunfns.c: Remove file.
14020
14021 * m/sun386.h:
14022 * m/sun2.h:
14023 * m/sparc.h: Remove Sun windows code.
14024
140252007-10-31 Stefan Monnier <monnier@iro.umontreal.ca>
14026
14027 * keyboard.c (syms_of_keyboard): Initialize the initial_kboard.
14028 (init_keyboard): Set current_kboard's window-system to nil.
14029 (tty_read_avail_input): Typo.
14030 * frame.c (make_initial_frame): Don't initialize the initial_kboard.
14031
140322007-10-31 Dan Nicolaescu <dann@ics.uci.edu>
14033
14034 * s/usg5-4.h:
14035 * s/usg5-3.h:
14036 * s/ptx.h:
14037 * m/is386.h:
14038 * m/ibmps2-aix.h:
14039 * Makefile.in: Remove all mentions of X10.
14040
14041 * dispnew.c (syms_of_display): Don't mention version 10.
14042
140432007-10-28 Juanma Barranquero <lekktu@gmail.com>
14044
14045 * makefile.w32-in (OBJ1): Remove abbrev.$(O).
14046 ($(BLD)/abbrev.$(O)): Remove.
14047
140482007-10-28 Stefan Monnier <monnier@iro.umontreal.ca>
14049
14050 Rewrite abbrev.c in Elisp.
14051 * image.c (Qcount): Don't declare as extern.
14052 (syms_of_image): Initialize and staticpro `Qcount'.
14053 * puresize.h (BASE_PURESIZE): Increase for the new abbrev.el functions.
14054 * emacs.c (main): Don't call syms_of_abbrev.
14055 * Makefile.in (obj): Remove abbrev.o.
14056 (abbrev.o): Remove.
14057 * abbrev.c: Remove.
14058
140592007-10-26 Martin Rudalics <rudalics@gmx.at>
14060
14061 * window.c (window_min_size_2): Don't count header-line.
14062
140632007-10-26 Dan Nicolaescu <dann@ics.uci.edu>
14064
14065 * frame.h (struct frame): Move all bit fields after the first bit
14066 field to take advantage of the available space. Group all the
14067 chars together to reduce wasted space due to padding.
14068
140692007-10-26 Juanma Barranquero <lekktu@gmail.com>
14070
14071 * minibuf.c (Fread_minibuffer, Feval_minibuffer): Reflow docstrings.
14072
14073 * alloc.c (spare_memory, stack_copy, stack_copy_size, ignore_warnings)
14074 (Vdead, dont_register_blocks, staticvec, staticidx, interval_block)
14075 (n_interval_blocks, init_strings, check_string_bytes, check_sblock)
14076 (init_float, free_float, n_cons_blocks, init_cons, all_vectors)
14077 (n_vectors, symbol_block, symbol_block_index, symbol_free_list)
14078 (n_symbol_blocks, init_symbol, marker_block, marker_free_list)
14079 (n_marker_blocks, init_marker, valid_pointer_p, make_pure_float)
14080 (last_marked, mark_object_loop_halt): Make static.
14081
14082 * frame.c (syms_of_frame) <delete-frame-functions>:
14083 Fix typo in docstring.
14084
140852007-10-25 Juanma Barranquero <lekktu@gmail.com>
14086
14087 * w32.c (init_environment): Fix tiny memory leak.
14088 (w32_get_resource): Remove unused variable `ok'.
14089
140902007-10-25 Stefan Monnier <monnier@iro.umontreal.ca>
14091
14092 Make `window-system' into a keyboard-local variable (rather than
14093 frame-local as done originally by multi-tty).
14094
14095 * keyboard.h (struct kboard): Add Vwindow_system.
14096 * keyboard.c (init_kboard): Set a default for Vwindow_system.
14097 (mark_kboards): Mark Vwindow_system.
14098
14099 * dispnew.c (syms_of_display) <window-system>: Declare terminal-local.
14100 (init_display): Don't set the obsolete `window-system' frame-param.
14101
14102 * xterm.c (x_term_init):
14103 * w32term.c (w32_create_terminal):
14104 * term.c (init_tty): Set Vwindow_system.
14105 * macterm.c (mac_create_terminal): Set a keyboard (missing piece of the
14106 multi-tty merge maybe?), copied from w32term.c. Set Vwindow_system.
14107
14108 * xfns.c (Fx_create_frame, x_create_tip_frame):
14109 * w32fns.c (Fx_create_frame, x_create_tip_frame):
14110 * macfns.c (Fx_create_frame):
14111 Don't set the obsolete `window-system' frame-param.
14112
14113 * frame.h (Qwindow_system): Remove.
14114 * frame.c (Qwindow_system): Remove. In `syms_of_frame' as well.
14115 (Fmake_terminal_frame): Don't set obsolete `window-system' frame-param.
14116
141172007-10-24 Richard Stallman <rms@gnu.org>
14118
14119 * frame.c (x_figure_window_size): For fullscreen case,
14120 set USPosition | PPosition without clobbering rest of window_prompting.
14121
14122 * keyboard.c (Fcurrent_idle_time): Doc fix.
14123
14124 * print.c (Fwith_output_to_temp_buffer): Doc fix.
14125
141262007-10-23 Stefan Monnier <monnier@iro.umontreal.ca>
14127
14128 * process.c (unwind_request_sigio): Only define if __ultrix__.
14129
14130 * callproc.c (child_setup): Remove spurious *.
14131
14132 * lisp.h (Fget_text_property): Declare.
14133 (have_menus_p): Declare it here rather than in sys-dep header files.
14134 * macterm.h (have_menus_p):
14135 * msdos.h (have_menus_p):
14136 * xterm.h (have_menus_p): Remove.
14137
14138 * data.c (Fmake_variable_buffer_local, Fmake_local_variable)
14139 (Fmake_variable_frame_local): Just check the variable's const-ness
14140 rather than checking nil or t.
14141
141422007-10-22 Jason Rumney <jasonr@gnu.org>
14143
14144 * w32fns.c: Include math.h.
14145 (w32_abort): Declaration moved to nt/config.nt.
14146
14147 * s/ms-w32.h (HAVE_STDLIB_H): Define.
14148 (abort): Redefinition moved to nt/config.nt.
14149
14150 * m/windowsnt.h: Remove.
14151
141522007-10-22 Juanma Barranquero <lekktu@gmail.com>
14153
14154 * emacs.c (Fdump_emacs): Fix typo in message.
14155 (syms_of_emacs) <kill-emacs-hook>: Fix typo in docstring.
14156 <installation-directory>: Reflow docstring.
14157
141582007-10-22 Juri Linkov <juri@jurta.org>
14159
14160 * minibuf.c: Allow minibuffer default to be a list of default values.
14161 With empty input use the first element of this list as returned default.
14162 (string_to_object)
14163 (read_minibuf_noninteractive): If defalt is cons, set val to its car.
14164 (read_minibuf): If defalt is cons, set histstring to its car.
14165 (Fread_string): If default_value is cons, set val to its car.
14166 (Fread_buffer): If def is cons, use its car.
14167 (Fcompleting_read): If defalt is cons, set val to its car.
14168
141692007-10-21 Michael Albinus <michael.albinus@gmx.de>
14170
14171 * fileio.c (Fcopy_file): Call file name handler with preserve_uid_gid.
14172
141732007-10-20 Juanma Barranquero <lekktu@gmail.com>
14174
14175 * doc.c (Fdocumentation): Check for advice in all cases.
14176
141772007-10-19 Chong Yidong <cyd@stupidchicken.com>
14178
14179 * Makefile.in [HAVE_LIBRESOLV]: Add -lresolv to linker flags.
14180
141812007-10-19 Richard Stallman <rms@gnu.org>
14182
14183 * doc.c (Fdocumentation): Check for and handle an advised function.
14184
141852007-10-19 Juanma Barranquero <lekktu@gmail.com>
14186
14187 * process.c (Fset_process_filter): Doc fix.
14188
141892007-10-18 Stefan Monnier <monnier@iro.umontreal.ca>
14190
14191 * keyboard.c (read_key_sequence): Undo a change introduced by multi-tty
14192 which caused key-translation-map to applied repeatedly (thus breaking
14193 double-mode).
14194
141952007-10-17 Stefan Monnier <monnier@iro.umontreal.ca>
14196
14197 * xselect.c (x_own_selection, x_handle_selection_clear)
14198 (x_clear_frame_selections):
14199 * w32menu.c (list_of_panes, list_of_items):
14200 * w32fns.c (w32_color_map_lookup, Fx_create_frame, Fx_display_list):
14201 * textprop.c (validate_plist, interval_has_all_properties)
14202 (interval_has_some_properties, interval_has_some_properties_list)
14203 (add_properties, text_property_list):
14204 * process.c (Fget_buffer_process, list_processes_1, status_notify):
14205 * minibuf.c (Fassoc_string):
14206 * macselect.c (x_own_selection, x_clear_frame_selections)
14207 (Fx_disown_selection_internal):
14208 * keymap.c (Fcommand_remapping, where_is_internal, describe_map_tree):
14209 Use CONSP rather than !NILP and XC[AD]R rather than Fc[ad]r.
14210
142112007-10-17 Chong Yidong <cyd@stupidchicken.com>
14212
14213 * process.c: Link to libs for calling res_init() if available.
14214 (Fmake_network_process): Call res_init() before getaddrinfo or
14215 gethostbyname, if possible.
14216
142172007-10-17 Stefan Monnier <monnier@iro.umontreal.ca>
14218
14219 * lread.c (read1): Set pvectype for char_tables.
14220
14221 * lisp.h (XMISCANY, XMARKER, XINTFWD, XBOOLFWD, XOBJFWD, XOVERLAY)
14222 (XBUFFER_OBJFWD, XBUFFER_LOCAL_VALUE, XKBOARD_OBJFWD, XSAVE_VALUE):
14223 Add type checks.
14224 (SOME_BUFFER_LOCAL_VALUEP, GC_SOME_BUFFER_LOCAL_VALUEP): Remove.
14225
14226 * alloc.c (free_misc): Use XMISCTYPE.
14227 (live_misc_p, gc_sweep): Use Lisp_Misc_Any.
14228
142292007-10-17 Glenn Morris <rgm@gnu.org>
14230
14231 * minibuf.c (Qcompletion_ignore_case): New Lisp_Object.
14232 (syms_of_minibuf): Add Qcompletion_ignore_case.
14233 * dired.c (Qcompletion_ignore_case): Change to external.
14234 (syms_of_dired) [VMS]: Remove Qcompletion_ignore_case.
14235 * fileio.c (Qcompletion_ignore_case): New external Lisp_Object.
14236 (Fread_file_name): Use it rather than intern'ing.
14237
14238 * coding.c (Qcompletion_ignore_case): New external Lisp_Object.
14239 (Fread_coding_system): Ignore case of user input.
14240
142412007-10-16 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
14242
14243 * xdisp.c (handle_display_prop): Ignore display specs after
14244 replacing one when string text is being replaced.
14245 (handle_single_display_spec): Pretend as if characters with display
14246 property haven't been consumed only when buffer text is being replaced.
14247
142482007-10-16 Stefan Monnier <monnier@iro.umontreal.ca>
14249
14250 * xfns.c (Fx_create_frame, Fx_display_list):
14251 * window.c (window_fixed_size_p, enlarge_window)
14252 (shrink_window_lowest_first):
14253 * macterm.c (init_font_name_table):
14254 * macfns.c (Fx_create_frame, Fx_display_list):
14255 * lread.c (close_load_descs):
14256 * keyboard.c (read_char_x_menu_prompt):
14257 * fns.c (Fmember, Fmemql, Fdelete, Fset_char_table_parent):
14258 * coding.c (code_convert_region_unwind): Test the type of an object
14259 rather than just !NILP before extracting data from it.
14260
14261 * alloc.c (Fpurecopy): Set the pvec tag on pseudo vectors.
14262
14263 * lisp.h (enum Lisp_Misc_Type): Del Lisp_Misc_Some_Buffer_Local_Value.
14264 (XMISCANY): New macro.
14265 (XMISCTYPE): Use it.
14266 (struct Lisp_Misc_Any): New type.
14267 (union Lisp_Misc): Use it.
14268 (struct Lisp_Buffer_Local_Value): Add `local_if_set' bit.
14269 * data.c (Fboundp, store_symval_forwarding, swap_in_global_binding)
14270 (find_symbol_value, set_internal, default_value, Fset_default)
14271 (Fmake_variable_buffer_local, Fmake_local_variable)
14272 (Fkill_local_variable, Fmake_variable_frame_local, Flocal_variable_p)
14273 (Flocal_variable_if_set_p, Fvariable_binding_locus):
14274 The SOME_BUFFER_LOCAL_VALUEP distinction is replaced by local_if_set.
14275 * alloc.c (allocate_buffer): Set the size and tag.
14276 (allocate_misc, mark_maybe_object, mark_object, survives_gc_p):
14277 Use XMISCANY.
14278 (die): Follow the GNU convention for error messages.
14279 * print.c (print_object): SOME_BUFFER_LOCAL_VALUEP -> local_if_set.
14280 * buffer.c (Fget_buffer_create, Fmake_indirect_buffer): Don't set the
14281 tag any more.
14282 (set_buffer_internal_1):
14283 * frame.c (store_frame_param):
14284 * eval.c (specbind):
14285 * xdisp.c (select_frame_for_redisplay): Drop SOME_BUFFER_LOCAL_VALUEP.
14286
14287 * doc.c (Fsnarf_documentation): Simplify.
14288
142892007-10-14 Juanma Barranquero <lekktu@gmail.com>
14290
14291 * w32term.c (w32_font_is_double_byte, my_create_scrollbar): Make static.
14292 (syms_of_w32term) <w32-enable-unicode-output>: Fix typo in docstring.
14293
142942007-10-14 Stefan Monnier <monnier@iro.umontreal.ca>
14295
14296 * buffer.c (Fmake_indirect_buffer): Set the buffer's tag.
14297
142982007-10-14 Juanma Barranquero <lekktu@gmail.com>
14299
14300 * eval.c (do_autoload): Don't save autoloads.
14301
14302 * data.c (Ffset): Save autoload of the function being set.
14303
143042007-10-07 John Paul Wallington <jpw@pobox.com>
14305
14306 * xfns.c (x_create_tip_frame): Set the `display-type' frame
14307 parameter before setting up faces.
14308
143092007-10-13 Eli Zaretskii <eliz@gnu.org>
14310
14311 * ccl.c (Fregister_code_conversion_map):
14312 * keyboard.c (append_tool_bar_item): Reformat last change.
14313
14314 * lisp.h (eabs): Rename from `abs'. All callers changed.
14315
143162007-10-05 Dmitry Antipov <dmantipov@yandex.ru>
14317
14318 * buffer.c (add_overlay_mod_hooklist):
14319 * ccl.c (Fregister_ccl_program, Fregister_code_conversion_map):
14320 * fontset.c (make_fontset):
14321 * keyboard.c (GROW_RAW_KEYBUF, menu_bar_items, menu_bar_item)
14322 (append_tool_bar_item):
14323 * macmenu.c (grow_menu_items):
14324 * w32menu.c (grow_menu_items):
14325 * xmenu.c (grow_menu_items): Use larger_vector.
14326
143272007-10-13 Eli Zaretskii <eliz@gnu.org>
14328
14329 * msdos.c (dos_rawgetc): Undo last change (there's no ``leaving
14330 selected frame'' on MSDOS).
14331
143322007-10-12 Martin Rudalics <rudalics@gmx.at>
14333
14334 * frame.c (Qexplicit_name): New variable.
14335 (x_report_frame_params): Report it in parameter alist.
14336 (syms_of_frame): Intern and staticpro it.
14337
143382007-10-10 Patrick Mahan <mahan@mahan.org> (tiny change)
14339
14340 * macfns.c (x_create_tip_frame): Set terminal for frame.
14341
143422007-10-10 Stefan Monnier <monnier@iro.umontreal.ca>
14343
14344 * frame.c (Qenvironment): Remove.
14345 (syms_of_frame) <Qenvironment>: Don't initialize.
14346 (Fdelete_frame): Don't treat the `environment' param specially.
14347 * frame.h (Qenvironment): Don't declare.
14348 * callproc.c (set_initial_environment): Don't set unused frame param.
14349
14350 * frame.c (Fframe_with_environment): Remove.
14351 (syms_of_frame) <Sframe_with_environment>: Don't declare.
14352
14353 * lisp.h (Fframe_with_environment): Don't declare.
14354
143552007-10-10 Juanma Barranquero <lekktu@gmail.com>
14356
14357 * indent.c (indent_tabs_mode, last_known_column)
14358 (last_known_column_modified): Make static.
14359 (syms_of_indent) <indent-tabs-mode>: Remove redundant info in docstring.
14360
143612007-10-10 Katsumi Yamaoka <yamaoka@jpl.org>
14362
14363 * puresize.h (BASE_PURESIZE): Increase to 1170000.
14364
143652007-10-09 Jason Rumney <jasonr@gnu.org>
14366
14367 * w32term.c (x_set_window_size): Disable code that attempts to tell
14368 Lisp code about a size change before it actually happens.
14369
143702007-10-09 Richard Stallman <rms@gnu.org>
14371
14372 * xdisp.c (handle_invisible_prop): After setting up an ellipsis,
14373 return HANDLED_RETURN.
14374
143752007-10-08 Martin Rudalics <rudalics@gmx.at>
14376
14377 * keyboard.c (kbd_buffer_get_event): Break loop waiting for input
14378 when there's an unread command event.
14379
14380 * frame.c (focus_follows_mouse): Move here from frame.el to allow
14381 window autoselection act appropriately when leaving selected frame.
14382 (syms_of_frame): Initialize focus_follows_mouse.
14383 * frame.h (focus_follows_mouse): Extern it.
14384 * macterm.c (XTread_socket): When focus_follows_mouse is nil
14385 make SELECT_WINDOW_EVENT only if we don't leave the selected frame.
14386 * msdos.c (dos_rawgetc): Likewise.
14387 * w32term.c (w32_read_socket): Likewise.
14388 * xterm.c (handle_one_xevent): Likewise.
14389 * xdisp.c (syms_of_xdisp): In doc-string of
14390 mouse-autoselect-window mention focus-follows-mouse.
14391
143922007-10-08 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
14393
14394 * macterm.c (mac_load_query_font): Fix missing return value.
14395 [USE_CG_DRAWING] (mac_define_fringe_bitmap, mac_destroy_fringe_bitmap):
14396 Add BLOCK_INPUT.
14397
143982007-10-08 Richard Stallman <rms@gnu.org>
14399
14400 * xdisp.c (get_window_cursor_type): Implement documented behavior
14401 for cursor-in-non-selected-windows = t.
14402
144032007-10-08 Jason Rumney <jasonr@gnu.org>
14404
14405 * w32.c (w32_get_resource): Always close registry keys.
14406
144072007-10-08 Jason Rumney <jasonr@gnu.org>
14408
14409 * makefile.w32-in (LIBS): Add COMCTL32.
14410
14411 * w32fns.c (globals_of_w32fns): Init common controls.
14412
144132007-10-08 Richard Stallman <rms@gnu.org>
14414
14415 * image.c (our_memory_buffer): Rename from omfib_buffer.
14416
144172007-10-08 Richard Stallman <rms@gnu.org>
14418
14419 * buffer.c (Foverlays_at): Doc fix.
14420
144212007-10-08 Stefan Monnier <monnier@iro.umontreal.ca>
14422
14423 * fns.c (Fplist_put): Preserve uneven tail data.
14424
144252007-10-08 Peter O'Gorman <bug-gnu-emacs@mlists.thewrittenword.com> (tiny change)
14426
14427 * termhooks.h (enum event_kind): Remove trailing comma.
14428
14429 * frame.h (enum): Remove trailing comma.
14430
144312007-10-08 Dhruva Krishnamurthy <dhruvakm@gmail.com> (tiny change)
14432
14433 * w32proc.c (delete_child): Don't terminate threads of zombies.
14434
144352007-10-08 Martin Rudalics <rudalics@gmx.at>
14436
14437 * keyboard.h (struct kboard): New elt Vlast_repeatable_command.
14438
14439 * keyboard.c (syms_of_keyboard): Set up new Lisp variable
14440 last-repeatable-command.
14441 (init_kboard): Initialize Vlast_repeatable_command.
14442 (command_loop_1): Set it to real_this_command unless that was
14443 bound to an input event.
14444 (mark_kboards): Mark it.
14445
144462007-10-08 Richard Stallman <rms@gnu.org>
14447
14448 * eval.c (condition-case): Doc fix.
14449
144502007-10-08 Masatake YAMATO <jet@gyve.org>
14451
14452 * xfaces.c (tty_supports_face_attributes_p): Fix code
14453 for LFACE_INVERSE_INDEX and LFACE_BACKGROUND_INDEX; code
14454 was copied and not edited.
14455
144562007-10-09 Stefan Monnier <monnier@iro.umontreal.ca>
14457
14458 Add new `input-decode-map' keymap and use it for terminal
14459 escape sequences.
14460 * keyboard.h (struct kboard): Add Vinput_decode_map.
14461 Remove Vlocal_key_translation_map.
14462 * keyboard.c (read_key_sequence): Add support for input-decode-map.
14463 (init_kboard): Init input-decode-map.
14464 Replace local-key-translation-map back with key-translation-map.
14465 (syms_of_keyboard): Declare input-decode-map.
14466 Remove local-key-translation-map. Update docstrings.
14467 (mark_kboards): Mark Vinput_decode_map.
14468 Don't mark Vlocal_key_translation_map.
14469 * keymap.c (Fdescribe_buffer_bindings): Describe input-decode-map.
14470 Replace local-key-translation-map back with key-translation-map.
14471 * term.c (term_get_fkeys_1, CONDITIONAL_REASSIGN):
14472 Bind in input-decode-map rather than function-key-map.
14473
14474 * lisp.h (XSETPSEUDOVECTOR): Don't set the tag anymore.
14475 This was made redundant by the previous introduction of XSETPVECTYPE.
14476
144772007-10-09 Richard Stallman <rms@gnu.org>
14478
14479 * image.c (free_bitmap_record): Rename from Free_Bitmap_Record.
14480
144812007-09-29 Richard Stallman <rms@gnu.org>
14482
14483 * eval.c (internal_condition_case_2, internal_condition_case_1)
14484 (internal_condition_case): Reenable abort if x_catching_errors ()
14485 to see if that really happens and why.
14486
144872007-10-06 Andreas Schwab <schwab@suse.de>
14488
14489 * fileio.c (Fwrite_region): Ignore EINVAL error from fsync.
14490
144912007-10-04 Juanma Barranquero <lekktu@gmail.com>
14492
14493 * image.c (syms_of_image) <image-types>: Fix typo in docstring.
14494
144952007-10-03 Stefan Monnier <monnier@iro.umontreal.ca>
14496
14497 * frame.h (struct frame): Don't try to GC-mark menu_bar_items_used.
14498
144992007-10-02 Stefan Monnier <monnier@iro.umontreal.ca>
14500
14501 * window.h (struct window):
14502 * window.c (struct save_window_data, struct saved_window):
14503 * termhooks.h (struct terminal):
14504 * process.h (struct Lisp_Process):
14505 * frame.h (struct frame):
14506 * buffer.h (struct buffer):
14507 * lisp.h (struct Lisp_Vector, struct Lisp_Char_Table)
14508 (struct Lisp_Bool_Vector, struct Lisp_Subr, struct Lisp_Hash_Table):
14509 The size field of (pseudo)vectors is now unsigned.
14510 (ARRAY_MARK_FLAG, PSEUDOVECTOR_FLAG): Simplify accordingly.
14511
14512 * lisp.h (struct Lisp_Hash_Table): Move non-traced elements at the end.
14513 Turn `count' into an integer.
14514
14515 * fns.c (make_hash_table, hash_put, hash_remove, hash_clear)
14516 (sweep_weak_table, sweep_weak_hash_tables, Fhash_table_count):
14517 * print.c (print_object) <HASH_TABLE_P>: `count' is an int.
14518 * alloc.c (allocate_hash_table): Use ALLOCATE_PSEUDOVECTOR.
14519 (mark_object) <HASH_TABLE_P>: Use mark_vectorlike.
14520
14521 * alloc.c (allocate_pseudovector): New fun.
14522 (ALLOCATE_PSEUDOVECTOR): New macro.
14523 (allocate_window, allocate_terminal, allocate_frame)
14524 (allocate_process): Use it.
14525 (mark_vectorlike): New function.
14526 (mark_object) <FRAMEP, WINDOWP, BOOL_VECTOR_P, VECTORP>: Use it.
14527 (mark_terminals): Use it.
14528 (Fmake_bool_vector, Fmake_char_table, make_sub_char_table)
14529 (Fmake_byte_code): Use XSETPVECTYPE.
14530
14531 * frame.c (Fframe_parameters): Minor simplification.
14532
14533 * insdel.c (adjust_markers_for_insert): Generalize assertion checks.
14534
14535 * marker.c (Fmarker_buffer): Make test for odd case into a failure.
14536
14537 * buffer.c (Fget_buffer_create, init_buffer_once):
14538 * lread.c (defsubr):
14539 * window.c (Fcurrent_window_configuration): Use XSETPVECTYPE.
14540
14541 * lisp.h (ARRAY_MARK_FLAG, PSEUDOVECTOR_FLAG): Don't let them be
14542 defined differently in the m/*.h files.
14543 (XCHAR_TABLE, XBOOL_VECTOR): Add assertion checking.
14544 (XSETPVECTYPE): New macro.
14545 (XSETPSEUDOVECTOR): Use it.
14546
14547 * buffer.c (syms_of_buffer) <local-abbrev-table>: Move from abbrev.c.
14548 (DEFVAR_PER_BUFFER, defvar_per_buffer): Move from lisp.h and lread.c.
14549
14550 * lisp.h (defvar_per_buffer, DEFVAR_PER_BUFFER):
14551 * lread.c (defvar_per_buffer):
14552 * abbrev.c (syms_of_abbrev) <local-abbrev-tabl>: Move to buffer.c.
14553
14554 * window.c (candidate_window_p): Only consider as visible frames that
14555 are on the same terminal.
14556
14557 * m/ibms390x.h (MARKBIT): Remove unused macro.
14558
145592007-10-01 Juanma Barranquero <lekktu@gmail.com>
14560
14561 * lread.c (Fload): Fix typo in docstring.
14562
145632007-10-01 Michaël Cadilhac <michael@cadilhac.name>
14564
14565 * floatfns.c (Fexpt): Manually check for overflows, so that a power
14566 of a non-zero value can't yield zero.
14567
145682007-09-29 Stefan Monnier <monnier@iro.umontreal.ca>
14569
14570 * term.c (term_clear_mouse_face, term_mouse_highlight)
14571 (tty_write_glyphs_with_face): Only define is HAVE_GPM.
14572
14573 * print.c (safe_debug_print): Use XHASH.
14574
14575 * lisp.h (DECL_ALIGN, USE_LSB_TAG): Move logic to before definition of
14576 Lisp elements such as tags.
14577 (XHASH): New macro.
14578 (EQ): Use it.
14579 (SREF, SSET, STRING_COPYIN): Use SDATA.
14580 (VOID_TO_LISP, CVOID_TO_LISP, LISP_TO_VOID, LISP_TO_CVOID): Remove.
14581
14582 * alloc.c (mark_terminal): Remove left-over declaration.
14583 (enum mem_type): Replace all vector subtypes -> MEM_TYPE_VECTORLIKE.
14584 (allocate_vectorlike): Remove type argument. Adjust callers.
14585 (live_vector_p, mark_maybe_pointer, valid_lisp_object_p):
14586 Only handle the one remaining MEM_TYPE_VECTORLIKE.
14587
14588 * alloc.c (MALLOC_BLOCK_INPUT, MALLOC_UNBLOCK_INPUT): New macros
14589 to avoid unnecessary BLOCK_INPUTs when SYNC_INPUT is used.
14590 (xmalloc, xrealloc, xfree, lisp_malloc, lisp_free, lisp_align_malloc)
14591 (lisp_align_free, make_interval, allocate_string, allocate_string_data)
14592 (make_float, Fcons, allocate_vectorlike, Fmake_symbol, allocate_misc):
14593 Use them.
14594
14595 * xfaces.c (load_face_font, free_realized_face, clear_face_gcs):
14596 Don't let signal handlers run when a GC is freed but not yet NULL'ed.
14597 (x_free_gc): Remove BLOCK_INPUT since it's now redundant.
14598
145992007-09-28 Dan Nicolaescu <dann@ics.uci.edu>
14600
14601 * Makefile.in (lisp, shortlisp): Delete server.elc, it is not
14602 loaded by default.
14603
146042007-09-28 Stefan Monnier <monnier@iro.umontreal.ca>
14605
14606 * term.c (Fgpm_mouse_start): Don't signal an error if already activated
14607 on this tty.
14608 (Fgpm_mouse_stop): Only deactivate if it was activated on this tty.
14609
14610 * term.c (mouse_face_window): Rename from Qmouse_face_window.
14611 Update all users.
14612 (handle_one_term_event): Use Gpm_DrawPointer.
14613 (Fgpm_mouse_start): Rename from Fterm_open_connection.
14614 Signal errors instead of returning nil. Always return nil.
14615 (Fgpm_mouse_stop): Rename from Fterm_close_connection.
14616 Make it a noop if gpm-mouse was not activated.
14617 (syms_of_term): Update names.
14618
146192007-09-27 Stefan Monnier <monnier@iro.umontreal.ca>
14620
14621 * sysdep.c (narrow_foreground_group, widen_foreground_group): Static.
14622 (init_sys_modes): Check that gpm_tty is the current tty.
14623
14624 * alloc.c (allocate_terminal): Set the vector size to only count the
14625 lisp fields. Initialize those to nil.
14626 (mark_object): Don't treat terminals specially.
14627 (mark_terminal): Remove.
14628 (mark_terminals): Use mark_object instead.
14629
14630 * termhooks.h (struct terminal): Move all Lisp_Object fields traced by
14631 the GC to the beginning.
14632
14633 * indent.h:
14634 * indent.c: Use EMACS_INT for ints coming from Elisp data.
14635
14636 * indent.c (Fmove_to_column): Use EMACS_INT for buffer positions.
14637
146382007-09-25 Jason Rumney <jasonr@gnu.org>
14639
14640 * frame.c (make_terminal_frame): Remove special case for WINDOWSNT.
14641
14642 * w32console.c (create_w32cons_output): Remove.
14643
14644 * term.c (init_tty): Call init_sys_modes on WINDOWSNT also.
14645
14646 * sysdep.c (init_sys_modes): Use set_terminal_modes_hook.
14647 (reset_sys_modes): Use reset_terminal_modes_hook.
14648
146492007-09-24 Stefan Monnier <monnier@iro.umontreal.ca>
14650
14651 * eval.c (do_autoload): Don't output any message.
14652
146532007-09-24 Juri Linkov <juri@jurta.org>
14654
14655 * emacs.c (standard_args): Change priority of "--no-splash"
14656 from 40 to 3. Add "--no-desktop" with the same priority.
14657
146582007-09-23 Dmitry Antipov <dmantipov@yandex.ru>
14659
14660 * alloc.c (gc_sweep): Check cons cell mark bits word by word
14661 and optimize the case where they are all 1.
14662
146632007-09-23 Johannes Weiner <hannes@saeurebad.de>
14664
14665 * lisp.h (abs): Define if not defined.
14666 * keyboard.c, sound.c, w32term.c, xfaces.c, xterm.c:
14667 Don't define `abs', since it's defined in lisp.h.
14668
146692007-09-22 Eli Zaretskii <eliz@gnu.org>
14670
14671 * term.c (DEV_TTY): New macro. Provide a definition for MS-Windows.
14672 (FRAME_TERMCAP_P) [WINDOWSNT]: Don't define to zero.
14673 (Fcontrolling_tty_p, Fresume_tty, dissociate_if_controlling_tty)
14674 (init_tty): Use DEV_TTY instead of "/dev/tty".
14675 [WINDOWSNT]: No need to protect from NAME arg being null.
14676
146772007-09-21 Dan Nicolaescu <dann@ics.uci.edu>
14678
14679 * term.c (Fsuspend_tty): Run suspend-tty-functions before cleaning
14680 up the tty state.
14681
146822007-09-21 Stefan Monnier <monnier@iro.umontreal.ca>
14683
14684 * termhooks.h (term_gpm): Delete. Use gpm_tty's NULLness instead.
14685 (gpm_tty): Change its type.
14686 * term.c (term_gpm): Delete. Use gpm_tty's NULLness instead.
14687 (gpm_tty): Change its type and initialize it.
14688 (Fterm_open_connection): Check the frame is indeed a tty.
14689 Use the new gpm_tty.
14690 (Fterm_close_connection): Use the new gpm_tty.
14691 * keyboard.c (tty_read_avail_input): Use the new gpm_tty.
14692 * sysdep.c (init_sys_modes): term_gpm -> gpm_tty.
14693
146942007-09-21 Juanma Barranquero <lekktu@gmail.com>
14695
14696 * w32term.c (x_draw_glyph_string): Use strike_through_color, not
14697 underline_color, to draw strike-through.
14698
146992007-09-21 Stefan Monnier <monnier@iro.umontreal.ca>
14700
14701 * lisp.h (allocate_terminal): Declare.
14702
14703 * window.c (candidate_window_p): Consider frames that are being placed
14704 by the user as somewhere between visible and iconified.
14705 (window_loop): Prefer windows on the current frame.
14706 (Fselect_window): Move the use of select-frame to the beginning so we
14707 can just delegate all the work (it'll call us back anyway).
14708
14709 * frame.c (Qdisplay_environment_variable):
14710 * frame.h (Qdisplay_environment_variable): Delete.
14711
14712 * .gdbinit (xbacktrace): Print the arg's address rather than the value
14713 of the first arg, since that value may be a union.
14714
14715 * callproc.c (child_setup, getenv_internal): Use the frame's `display'
14716 parameter rather than Qdisplay_environment_variable. If all else
14717 fails, look for DISPLAY in initial-environment.
14718
147192007-09-21 Glenn Morris <rgm@gnu.org>
14720
14721 * Makefile.in (emacstool): Remove target.
14722 (lisp, shortlisp): Remove termdev.elc.
14723
147242007-09-21 Markus Triska <markus.triska@gmx.at>
14725
14726 * xterm.c (x_delete_display): Compile session management conditionally.
14727
147282007-09-20 Stefan Monnier <monnier@iro.umontreal.ca>
14729
14730 * callproc.c (getenv_internal_1): New function.
14731 (getenv_internal): Use it.
14732 (Fgetenv_internal): Use it. Accept an env-list as optional arg.
14733
14734 * terminal.c (get_terminal): Don't accept ints to represent terminals.
14735 (Fterminal_name, Fterminal_parameters, Fterminal_parameter)
14736 (Fset_terminal_parameter): Work with dead terminals as well.
14737 (Fmodify_terminal_parameters): Remove.
14738
14739 * terminal.c (get_terminal): Handle terminals.
14740 Make sure the terminal returned is live.
14741 (create_terminal): Use allocate_terminal.
14742 (mark_terminals): Move to alloc.c.
14743 (delete_terminal): Use terminal->name as liveness status.
14744 NULL out fields after freeing their contents.
14745 Don't deallocate the object.
14746 (Fframe_terminal): Use FRAME_TERMINAL. Return the terminal object
14747 rather than an int.
14748 (Fterminal_live_p): Accept non-integer arguments.
14749 (Fterminal_list): Return terminal objects rather than an ints.
14750
14751 * alloc.c (enum mem_type): New member for `terminal' objects.
14752 (allocate_terminal): New function.
14753 (mark_maybe_pointer, valid_lisp_object_p, mark_object):
14754 Handle terminals.
14755 (mark_terminal): New fun.
14756 (mark_terminals): Move from terminal.c.
14757
14758 * term.c (get_tty_terminal): Don't treat output_initial specially.
14759 (Fsuspend_tty, Fresume_tty): Use terminal objects rather than ints.
14760 (delete_tty): Use terminal->name as liveness status.
14761
14762 * termhooks.h (struct terminal): Make it into a pseudovector.
14763 Remove `deleted' replaced by checking `name's nullness.
14764
14765 * print.c (print_object): Handle terminals.
14766
14767 * lisp.h (enum pvec_type): New `terminal' pseudovector.
14768 (XTERMINAL, XSETTERMINAL, TERMINALP, GC_TERMINALP): New macros.
14769
14770 * frame.c (make_terminal_frame):
14771 * keyboard.c (tty_read_avail_input):
14772 * w32term.c (x_delete_terminal):
14773 * xfns.c (Fx_create_frame, x_create_tip_frame):
14774 * xterm.c (x_delete_terminal): Use terminal->name as liveness status.
14775
147762007-09-20 Glenn Morris <rgm@gnu.org>
14777
14778 * process.c (Fmake_network_process): Doc fix.
14779
147802007-09-19 Jason Rumney <jasonr@gnu.org>
14781
14782 * dispextern.h (w32_init_fringe, mac_init_fringe): Declare rif argument.
14783
147842007-09-19 Michaël Cadilhac <michael@cadilhac.name>
14785
14786 * coding.c (detect_eol_type, detect_eol_type_in_2_octet_form):
14787 Fix a C warning regarding variable constness.
14788
14789 * xterm.c (handle_one_xevent): Fix a C warning.
14790
147912007-09-18 Jason Rumney <jasonr@gnu.org>
14792
14793 * w32fns.c (Fx_focus_frame): Rename from Fw32_focus_frame.
14794
147952007-09-17 Jan Djärv <jan.h.d@swipnet.se>
14796
14797 * gtkutil.c (gdpy_def): New variable.
14798 (xg_initialize): Initialize gdpy_def.
14799 (xg_display_close): If no other display exists, set gdpy_def to a
14800 new connection.
14801
148022007-09-16 Jan Djärv <jan.h.d@swipnet.se>
14803
14804 * gtkutil.c (xg_get_image_for_pixmap): Always create a GdkPixbuf
14805 when we have no file name for the icon.
14806 (xg_tool_bar_expose_callback): Remove.
14807 (xg_create_tool_bar): Don't connect expose signal to
14808 xg_tool_bar_expose_callback.
14809 (xg_get_file_with_chooser): Move GCPRO1 after declarations.
14810
148112007-09-16 Andreas Schwab <schwab@suse.de>
14812
14813 * alloc.c (reset_malloc_hooks): Set the hooks to the previous
14814 values instead of zapping them.
14815
148162007-09-14 Glenn Morris <rgm@gnu.org>
14817
14818 * fringe.c (init_fringe_bitmap) <swap_nibble>: Move to file scope.
14819 * gtkutil.c (xg_separator_p) <separator_names>: Move to file scope.
14820 * image.c (our_memory_fill_input_buffer) <buffer>: Move to file
14821 scope and rename to omfib_buffer for clarity.
14822 (gif_load) <interlace_start, interlace_increment>: Move to file scope.
14823
148242007-09-14 Kenichi Handa <handa@m17n.org>
14825
14826 * xterm.c (handle_one_xevent): Skip decoding if nbytes is zero.
14827
148282007-09-13 Jason Rumney <jasonr@gnu.org>
14829
14830 * fringe.c (w32_init_fringe, mac_init_fringe): Add rif argument.
14831
14832 * w32term.c (w32_term_init): Pass rif to w32_init_fringe.
14833
14834 * macterm.c (mac_initialize): Don't call mac_init_fringe here.
14835 (mac_term_init): Call here instead, passing rif.
14836
148372007-09-13 Glenn Morris <rgm@gnu.org>
14838
14839 * s/hpux.h: No longer define `static' as nothing.
14840
148412007-09-13 Johan Bockgård <bojohan@gnu.org>
14842
14843 * callint.c (Fcall_interactively): Remove unused var `fun'.
14844
148452007-09-12 Romain Francoise <romain@orebokech.com>
14846
14847 * window.c (prefer_window_split_horizontally, display_buffer):
14848 Revert 2007-09-08 change.
14849
148502007-09-12 Glenn Morris <rgm@gnu.org>
14851
14852 * alloca.c: Remove file.
14853 * Makefile.in (alloca): Do not undef.
14854 (allocaobj, alloca.o): Remove.
14855 (otherobj): Remove allocaobj.
14856 * keyboard.c (command_loop_1): Remove #ifdef C_ALLOCA block.
14857 * regex.c (C_ALLOCA): Remove all references and code that was only
14858 used when this was defined.
14859 * search.c (boyer_moore): Remove #ifdef C_ALLOCA block.
14860 * xmenu.c (xmenu_show): Remove #ifdef C_ALLOCA block.
14861 * m/ibms390x.h, m/sh3el.h (C_ALLOCA): Remove references to this.
14862
14863 * Makefile.in (SOURCES, unlock, relock): Delete.
14864
14865 * gtkutil.c (cnt): Rename to menu_grab_callback_cnt for clarity.
14866 (menu_grab_callback): All uses changed.
14867
14868 * xselect.c (cnt): Rename to x_reply_selection_request_cnt for clarity.
14869 (x_reply_selection_request): All uses changed.
14870
148712007-09-11 Stefan Monnier <monnier@iro.umontreal.ca>
14872
14873 * lread.c (load_warn_old_style_backquotes): Change message to look
14874 better when it appears in the middle of byte-compiler messages.
14875
148762007-09-10 Dan Nicolaescu <dann@ics.uci.edu>
14877
14878 * s/darwin.h (MULTI_KBOARD): Only define for Carbon.
14879
14880 * xterm.c (x_create_terminal): Add comment.
14881
14882 * term.c (clear_tty_hooks, set_tty_hooks): Add comments.
14883
148842007-09-10 Richard Stallman <rms@gnu.org>
14885
14886 * xterm.c (x_term_init): Give error if can't open DISPLAY_NAME.
14887
148882007-09-10 Michaël Cadilhac <michael@cadilhac.name>
14889
14890 * lisp.h (struct Lisp_Subr): Rename `prompt' field to `intspec'.
14891 (DEFUN): Document `intspec', use it instead of `prompt'.
14892
14893 * eval.c (Fcommandp): Change `->prompt' to `->intspec'.
14894
14895 * data.c (Finteractive_form): If the interactive specification starts
14896 with a `(', use it as a Lisp form.
14897
14898 * fileio.c (Fset_file_modes): Add an interactive spec that reads a file
14899 name and file modes.
14900
14901 * callint.c (Fcall_interactively): Comment fixes.
14902
149032007-09-10 Stefan Monnier <monnier@iro.umontreal.ca>
14904
14905 * callint.c (Fcall_interactively): Use Finteractive_form also for subrs
14906 and compiled functions.
14907
149082007-09-08 Fredrik Axelsson <f.axelsson@gmail.com>
14909
14910 * window.c (prefer_window_split_horizontally): New variable.
14911 (display_buffer): Consider splitting window horizontally depending
14912 on prefer_window_split_horizontally.
14913
149142007-09-08 Eli Zaretskii <eliz@gnu.org>
14915
14916 * sysdep.c [WINDOWSNT]: Don't include sysselect.h.
14917
149182007-09-07 Stefan Monnier <monnier@iro.umontreal.ca>
14919
14920 * s/cygwin.h (GC_MARK_STACK): Enable conservative stack marking.
14921
14922 * frame.c (x_set_frame_parameters): Check number is positive before
14923 using XFASTINT.
14924
14925 * window.c (freeze_window_start): Don't presume selected_window holds
14926 a window object.
14927 (Fdisplay_buffer): Remove `register' since `buffer' needs to be gcpro'd.
14928
149292007-09-07 Angelo Graziosi <Angelo.Graziosi@roma1.infn.it> (tiny change)
14930
14931 * term.c (dissociate_if_controlling_tty): Call setsid on CYGWIN.
14932
149332007-09-07 Stefan Monnier <monnier@iro.umontreal.ca>
14934
14935 * window.c (Vsplit_window_preferred_function): New var.
14936 (Fdisplay_buffer): Use it.
14937 (syms_of_window): Export, and initialize it.
14938
149392007-09-06 Pixel <pixel@mandriva.com> (tiny change)
14940
14941 * image.c (gif_load): Fix bug: Handle nonexistent colormap.
14942
149432007-09-06 Glenn Morris <rgm@gnu.org>
14944
14945 * gtkutil.c (menu_grab_callback) <cnt>:
14946 * xselect.c (x_reply_selection_request) <cnt>: Move static
14947 variable to file scope.
14948
149492007-09-06 Stefan Monnier <monnier@iro.umontreal.ca>
14950
14951 * xdisp.c (redisplay_internal): Make sure Elisp code always sees
14952 consistent values of selected_frame and selected_window.
14953
149542007-09-04 Jason Rumney <jasonr@gnu.org>
14955
14956 * w32console.c (initialize_w32_display): Zero unused hooks.
14957
149582007-09-04 Dan Nicolaescu <dann@ics.uci.edu>
14959
14960 * term.c (Vsuspend_tty_functions, Vresume_tty_functions)
14961 (syms_of_term, Fsuspend_tty, Fresume_tty): Undo previous change.
14962
149632007-09-04 Jason Rumney <jasonr@gnu.org>
14964
14965 * term.c (init_tty) [WINDOWSNT]: Add hooks that are not accessible
14966 in w32console.c. Set up input. Remove XXX comments that have been
14967 confirmed as correct.
14968
14969 * s/ms-w32.h (MULTI_KBOARD): Define.
14970
14971 * w32console.c (one_and_only_w32cons): Remove.
14972 (initialize_w32_display): Take terminal argument.
14973
14974 * term.c (init_tty) [WINDOWSNT]: Pass terminal to
14975 initialize_w32_display.
14976 (init_tty) [MULTI_KBOARD]: Include this code on WINDOWSNT too.
14977
14978 * termhooks.h (enum event_kind) <HORIZ_WHEEL_EVENT>: New event.
14979
14980 * keyboard.c (discard_mouse_events): Discard it.
14981 (make_lispy_event): Translate it to a lisp event.
14982 (lispy_wheel_names): Add wheel-left and right events.
14983 (syms_of_keyboard): Enlarge wheel_syms.
14984
14985 * w32fns.c (w32_wnd_proc) <WM_DROPFILES>: Merge with WM_MOUSEWHEEL.
14986 <WM_MOUSEHWHEEL>: Pass new system message to lisp.
14987
14988 * w32term.h (WM_MOUSEHWHEEL): Define if system headers don't.
14989
14990 * w32term.c (construct_mouse_wheel): Make HORIZ_WHEEL_EVENT
14991 from WM_MOUSEHWHEEL.
14992 (w32_read_socket) <WM_MOUSEHWHEEL>: Treat as WM_MOUSEWHEEL.
14993
14994 * w32fns.c (x_create_tip_frame) [MULTI_KBOARD]: Get keyboard from
14995 terminal.
14996
14997 * w32term.c (w32_create_terminal) [MULTI_KBOARD]: Create a new
14998 keyboard for the terminal.
14999
150002007-09-04 Dan Nicolaescu <dann@ics.uci.edu>
15001
15002 * term.c (Vsuspend_tty_hook): Rename from Vsuspend_tty_functions.
15003 (Vresume_tty_hook): Rename from Vresume_tty_functions.
15004 (syms_of_term): Rename suspend-tty-functions to suspend-tty-hook
15005 and resume-tty-function to resume-tty-hook.
15006 (Fsuspend_tty, Fresume_tty): Use new names.
15007
150082007-09-02 Jan Djärv <jan.h.d@swipnet.se>
15009
15010 * gtkutil.c (update_frame_tool_bar): Handle stock name as a named icon
15011 if it starts with "n:".
15012
150132007-08-31 Jan Djärv <jan.h.d@swipnet.se>
15014
15015 * gtkutil.c (update_frame_tool_bar): Initialize wbutton to NULL.
15016
150172007-08-31 Stefan Monnier <monnier@iro.umontreal.ca>
15018
15019 * frame.h:
15020 * frame.c (Qterm_environment_variable): Remove.
15021 (syms_of_frame): Don't init and staticpro it.
15022
15023 * callproc.c (getenv_internal): Remove special case for $TERM.
15024
15025 * callproc.c (Vinitial_environment): New variable.
15026 (set_initial_environment): Initialize it.
15027 (syms_of_callproc): Declare it.
15028 (child_setup): Don't mess with TERM via Qterm_environment_variable; the
15029 TERM under which a process runs is never related to the TERM in which
15030 Emacs is running.
15031
150322007-08-29 Dan Nicolaescu <dann@ics.uci.edu>
15033
15034 * config.in (HAVE_WINDOW_SYSTEM): Don't undef MULTI_KBOARD here...
15035 * s/darwin.h: ... do it here.
15036
150372007-08-29 Stefan Monnier <monnier@iro.umontreal.ca>
15038
15039 * lisp.h (set_initial_environment): Rename from set_global_environment.
15040
15041 * Makefile.in (${etc}DOC): Re-add a ${EXEEXT} which seems to have been
15042 removed by mistake on the multi-tty branch.
15043
15044 * frame.c (make_terminal_frame): Yet Another Int/Lisp_Object Mixup.
15045 (Fmodify_frame_parameters): Return a value.
15046
15047 * image.c (png_load): Comment-out var only used in commented-out code.
15048
15049 * term.c (mark_ttys): Don't bother checking top_frame (incorrectly)
15050 before passing it to mark_object.
15051
15052 * xfaces.c (internal_resolve_face_name): Return a value.
15053 (internal_resolve_face_name, resolve_face_name_error): Comment out.
15054
15055 * xfns.c (check_x_display_info): Yet Another Int/Lisp_Object Mixup.
15056 (x_icon): Comment-out var only used in commented-out code.
15057
150582007-08-29 Romain Francoise <romain@orebokech.com>
15059
15060 * keyboard.c (Fset_input_mode): Don't call `Fset_quit_char' if
15061 QUIT hasn't been provided.
15062
150632007-08-29 Dan Nicolaescu <dann@ics.uci.edu>
15064
15065 * callproc.c (child_setup, getenv_internal): Use the
15066 display-environment-variable and term-environment-variable frame params.
15067 (set_initial_environment): Initialise Vprocess_environment.
15068
15069 * config.in: Disable multi-keyboard support on a mac.
15070
15071 * frame.c (Qterm_environment_variable)
15072 (Qdisplay_environment_variable): New variables.
15073 (syms_of_frame): Intern and staticpro them.
15074 (Fmake_terminal_frame): Disable output method test.
15075
15076 * frame.h: Declare them here.
15077
15078 * macfns.c (x_set_mouse_color): Get rif from the frame.
15079 (x_set_tool_bar_lines): Don't use updating_frame.
15080 (mac_window): Add 2 new parameters for consistency with other systems.
15081 (Fx_create_frame): Fix doc string. Rename the parameter. Set the
15082 frame parameters following what is done in X11 and w32. Don't use
15083 FRAME_MAC_DISPLAY_INFO.
15084 (Fx_open_connection, start_hourglass): Remove window-system check.
15085 (x_create_tip_frame): Get the keyboard from the terminal.
15086
15087 * macmenu.c: Reorder includes.
15088 (Fx_popup_menu): Use terminal specific mouse_position_hook.
15089
15090 * macterm.c (XTset_terminal_modes, XTreset_terminal_modes): Add a
15091 terminal parameter.
15092 (x_clear_frame): Add a frame parameter.
15093 (note_mouse_movement): Get rif from the frame.
15094 (mac_term_init): Initialize the terminal.
15095 (mac_initialize): Make static and move terminal initialization ...
15096 (mac_create_terminal): ... to this new function.
15097
15098 * macterm.h (struct mac_display_info): Add terminal.
15099 (mac_initialize): Delete declaration.
15100
15101 * puresize.h (BASE_PURESIZE): Increase base value to 1164000.
15102
15103 * sysdep.c: Comment out text after #endif.
15104
15105 * term.c (init_tty): Only use terminal->kboard when MULTI_KBOARD
15106 is defined. Better initialize ttys in windows. Use terminal
15107 specific mouse_position_hook.
15108
15109 * termhooks.h (union display_info): Add mac_display_info.
15110
15111 * w32fns.c (Fx_create_frame): Use kboard from the terminal.
15112 Set the default minibuffer frame, window_system and the rest of the
15113 frame parameters following what is done in X11.
15114
15115 * w32term.c (w32_initialize): Make static.
15116
15117 * xselect.c (x_handle_selection_clear): Only access
15118 terminal->kboard when MULTI_KBOARD is defined.
15119
15120 * s/darwin.h (SYSTEM_PURESIZE_EXTRA): Define here.
15121 (SYSTEM_PURESIZE_EXTRA): Only define on Carbon.
15122
151232007-08-29 Jason Rumney <jasonr@gnu.org>
15124
15125 * frame.c (Fdelete_frame): Only get kboard when MULTI_KBOARD defined.
15126 (make_terminal_frame) [WINDOWSNT]: Initialize terminal.
15127
15128 * fringe.c (w32_init_fringe w32_reset_fringes) [HAVE_NTGUI]:
15129 (mac_init_fringe) [MAC_OS]: Get rif from selected_frame.
15130
15131 * keyboard.c (restore_kboard_configuration): Only define when
15132 MULTI_KBOARD defined.
15133
15134 * makefile.w32-in: Update dependancies from Makefile.in.
15135 (OBJ1): Add terminal.$(O)
15136
15137 * term.c (dissociate_if_controlling_tty) [WINDOWSNT]:
15138 Don't define function body.
15139 (init_tty) [WINDOWSNT]: Use selected_frame for initializing.
15140
15141 * termhooks.h (display_info) [WINDOWSNT]: Add w32.
15142
15143 * w32.c (request_sigio, unrequest_sigio): Remove.
15144
15145 * w32console.c (w32con_move_cursor, w32con_clear_to_end)
15146 (w32con_clear_frame, w32con_clear_end_of_line)
15147 (w32con_ins_del_lines, w32con_insert_glyphs, w32con_write_glyphs)
15148 (w32con_delete_glyphs, w32con_set_terminal_window)
15149 (scroll_line, w32_sys_ring_bell): Add frame arg.
15150 (w32con_set_terminal_modes, w32con_reset_terminal_modes):
15151 Add terminal arg.
15152 (PICK_FRAME): Remove.
15153 (w32con_write_glyphs): Use frame specific terminal coding.
15154 (one_and_only_w32cons): New global variable.
15155 (initialize_w32_display): Use it for storing hooks.
15156 (create_w32cons_output): New function.
15157
15158 * w32inevt.c, w32inevt.h (w32_console_read_socket): Make first
15159 arg a frame.
15160
15161 * w32fns.c (x_create_tip_frame): Set terminal and ref count.
15162 Set window_system.
15163 (x_set_tool_bar_lines): Don't use updating_frame.
15164 (Fx_create_frame): Set terminal and ref count.
15165 (Fx_open_connection): Remove window-system check.
15166
15167 * w32menu.c (Fx_popup_menu): Use terminal specific mouse_position_hook.
15168
15169 * w32term.c (w32_term_init): Call add_keyboard_wait_descriptor.
15170 (w32_set_terminal_modes, w32_reset_terminal_modes): Add terminal arg.
15171 (x_clear_frame, x_delete_glyphs, w32_ring_bell, x_ins_del_lines):
15172 Add frame arg.
15173 (x_delete_terminal, w32_create_terminal): New functions.
15174 (w32_term_init): Create a terminal.
15175 (w32_initialize): Move terminal specific initialization to
15176 w32_create_terminal.
15177
15178 * w32term.h (x_output): Remove foreground_pixel and background_pixel.
15179 (w32_clear_rect, w32_clear_area): Use background from frame.
15180 (w32_display_info): Add terminal.
15181 (w32_sys_ring_bell, x_delete_display): Declare here.
15182
15183 * xdisp.c (display_menu_bar) [HAVE_NTGUI]: Check frame type.
15184
15185 * s/ms-w32.h (SYSTEM_PURESIZE_EXTRA): Bump to 50k.
15186
151872007-08-29 Kalle Olavi Niemitalo <kon@iki.fi> (tiny change)
15188
15189 * keyboard.c (interrupt_signal, handle_interrupt, Fset_quit_char):
15190 Fix get_named_tty calls for the controlling tty.
15191
151922007-08-29 ARISAWA Akihiro <ari@mbf.ocn.ne.jp> (tiny change)
15193
15194 * term.c (dissociate_if_controlling_tty)[USG]: Fix parse error.
15195
151962007-08-29 Yoshiaki Kasahara <kasahara@nc.kyushu-u.ac.jp> (tiny change)
15197
15198 * term.c (tty_insert_glyphs): Add missing first parameter.
15199
152002007-08-29 Károly Lőrentey <karoly@lorentey.hu>
15201
15202 * buffer.c (Fbuffer_list, Fbury_buffer):
15203 Take frame->buried_buffer_list into account.
15204
15205 * cm.c (current_tty): New variable, for cmputc().
15206 (cmputc): Use it.
15207 (cmcheckmagic): Add tty parameter, look up terminal streams there.
15208 (calccost): Add tty parameter. Use emacs_tputs() instead of tputs().
15209 (cmgoto): Add tty parameter. Pass it on to calccost().
15210 Use emacs_tputs() instead of tputs().
15211
15212 * cm.h (emacs_tputs): New macro to set current_tty, and then call
15213 tputs().
15214 (current_tty): New variable, for cmputc().
15215 (cmcheckmagic, cmputc, cmgoto): Add prototypes.
15216
15217 * eval.c (unwind_to_catch): Don't call x_fully_uncatch_errors.
15218 (internal_condition_case, internal_condition_case_1)
15219 (internal_condition_case_2): Don't abort when x_catching_errors.
15220
15221 * fns.c (Fyes_or_no_p): Don't try to open an X dialog on tty terminals.
15222 (Fy_or_n_p): Likewise. Use temporarily_switch_to_single_kboard to
15223 prevent crashes caused by bogus longjmps in read_char.
15224
15225 * keymap.h (Fset_keymap_parent): Add EXFUN.
15226
15227 * macterm.h (FRAME_FOREGROUND_PIXEL, FRAME_BACKGROUND_PIXEL)
15228 * w32term.h (FRAME_FOREGROUND_PIXEL, FRAME_BACKGROUND_PIXEL):
15229 Remove redundant definition.
15230
15231 * macfns.c (x_set_mouse_color, x_make_gc):
15232 Use FRAME_BACKGROUND_PIXEL and FRAME_FOREGROUND_PIXEL.
15233
15234 * w32term.c (x_free_frame_resources):
15235 Use FRAME_BACKGROUND_PIXEL and FRAME_FOREGROUND_PIXEL.
15236 (w32_initialize): Use the accessor macros for terminal characteristics.
15237
15238 * macterm.c (mac_initialize): Use Fset_input_interrupt_mode.
15239 Use the accessor macros for terminal characteristics.
15240 * msdos.c (internal_terminal_init): Use the accessor macros for
15241 terminal characteristics.
15242 (ScreenVisualBell, internal_terminal_init):
15243 Use FRAME_BACKGROUND_PIXEL and FRAME_FOREGROUND_PIXEL.
15244
15245 * termopts.h (no_redraw_on_reenter): Declare.
15246
15247 * alloc.c (emacs_blocked_malloc): Disable mallopt call.
15248 (mark_terminals, mark_ttys): Declare.
15249 (Fgarbage_collect): Call them.
15250 (mark_object): Mark buried_buffer_list.
15251
15252 * prefix-args.c: Include stdlib.h for exit.
15253
15254 * syssignal.h: Add comment.
15255
15256 * indent.c: Include stdio.h.
15257
15258 * window.h (Vinitial_window_system): Declare.
15259 (Vwindow_system): Delete declaration.
15260
15261 * fontset.c (Finternal_char_font): Use FRAME_RIF.
15262
15263 * image.c (lookup_image): Don't initialize `c' until the xasserts
15264 have been run.
15265
15266 * gtkutil.c (xg_create_frame_widgets): Use FRAME_BACKGROUND_PIXEL and
15267 FRAME_FOREGROUND_PIXEL.
15268
15269 * print.c (print_preprocess): Don't lose print_depth levels while
15270 iterating.
15271
15272 * widget.c (update_from_various_frame_slots):
15273 Use FRAME_BACKGROUND_PIXEL and FRAME_FOREGROUND_PIXEL.
15274
15275 * window.c (set_window_buffer): Don't call clear_mouse_face on tty
15276 frames.
15277 (window_internal_height): Remove bogus make_number call.
15278 (init_window_once): Call make_terminal_frame with two zero parameters.
15279
15280 * fileio.c (Fread_file_name): Update comment.
15281
15282 * callint.c (Fcall_interactively):
15283 Use temporarily_switch_to_single_kboard instead of single_kboard_state.
15284 Make sure it is correctly unwound.
15285
15286 * xsmfns.c (x_session_close): New function.
15287
15288 * coding.h (terminal_coding, safe_terminal_coding, keyboard_coding):
15289 Delete declarations.
15290
15291 * xterm.h: Remove declaration for x_fully_uncatch_errors.
15292 (x_output): Remove background_pixel and foreground_pixel fields.
15293 (x_display_info): Add new field TERMINAL. Remove KBOARD field.
15294 (x_delete_device, x_session_close): Declare.
15295
15296 * lread.c: Include setjmp.h. Update declaration of `read_char'.
15297 (read_filtered_event): Call `read_char' with a local
15298 `wrong_kboard_jmpbuf'.
15299
15300 * minibuf.c (read_minibuf): Call temporarily_switch_to_single_kboard.
15301 Don't call single_kboard_state. Use FRAME_RIF.
15302
15303 * process.c (Fmake_network_process): Don't unrequest_sigio on modern
15304 systems.
15305
15306 * lisp.h (set_process_environment): Rename to `set_global_environment'.
15307 (Fframe_with_environment, Fset_input_meta_mode)
15308 (Fset_quit_char): EXFUN.
15309 (x_create_device, tty_output, terminal, tty_display_info): Declare.
15310 (init_sys_modes, reset_sys_modes): Update prototypes.
15311 (init_all_sys_modes, reset_all_sys_modes): New prototypes.
15312
15313 * keyboard.h (struct kboard): Add new fields Vlocal_function_key_map,
15314 Vlocal_key_translation_map, and Vkeyboard_translate_table.
15315 (Vfunction_key_map, Vkeyboard_translate_table, single_kboard_state):
15316 Delete declarations.
15317 (Vfunction_key_map, Vkey_translation_map, push_kboard, pop_kboard)
15318 (temporarily_switch_to_single_kboard, tty_read_avail_input):
15319 New declarations.
15320
15321 * emacs.c (main): Don't call init_sys_modes(), the new term_init()
15322 already does that during init_display(). Call syms_of_keymap
15323 before syms_of_keyboard. Call `syms_of_terminal'.
15324 Call set_initial_environment, not set_process_environment.
15325 (shut_down_emacs): Call reset_all_sys_modes() instead of
15326 reset_sys_modes().
15327
15328 * xfaces.c (x_free_gc): Protect xassert with GLYPH_DEBUG.
15329 (internal_resolve_face_name, resolve_face_name_error): New functions.
15330 (resolve_face_name): Protect against loops and errors thrown by Fget.
15331 (realize_default_face): Don't use FRAME_FONT unless frame is an X frame.
15332 (Ftty_supports_face_attributes_p): Update tty_capable_p call.
15333
15334 * scroll.c: Replace CURTTY() with local variables throughout the
15335 file (where applicable).
15336 (calculate_scrolling, calculate_direct_scrolling)
15337 (scrolling_1, scroll_cost): Use the accessor macros for terminal
15338 characteristics.
15339
15340 * keymap.c (Vfunction_key_map): Remove.
15341 (Fdescribe_buffer_bindings): Update references to Vfunction_key_map.
15342 (syms_of_keymap): Remove DEFVAR for Vfunction_key_map.
15343 (Vkey_translation_map): Remove.
15344 (syms_of_keymap): Remove DEFVAR for key-translation-map.
15345 (Fdescribe_buffer_bindings)
15346 (read_key_sequence, init_kboard, syms_of_keyboard, mark_kboards):
15347 Update for terminal-local key-translation-map.
15348
15349 * Makefile.in (callproc.o): Update dependencies.
15350 (lisp, shortlisp): Add termdev.elc.
15351 (obj): Add terminal.o.
15352 (terminal.o): Add dependencies.
15353 [HAVE_CARBON]: Make terminal.o depend on macgui.h.
15354 (data.o, fns.o): Add termhooks.h dependency.
15355 (SOME_MACHINE_LISP): Add dnd.elc.
15356 (minibuf.o): Fix typo.
15357 Update dependencies.
15358
15359 * data.c (do_symval_forwarding, store_symval_forwarding)
15360 (find_symbol_value): Use the selected frame's keyboard, not
15361 current_kboard.
15362
15363 * .gdbinit (init_sys_modes): Use Vinitial_window_system instead of
15364 Vwindow_system.
15365
15366 * xmenu.c (Fx_menu_bar_open) [USE_X_TOOLKIT, USE_GTK]: Rename from
15367 Fmenu_bar_open.
15368 (syms_of_xmenu): Update defsubr.
15369 (mouse_position_for_popup, Fx_popup_menu)
15370 (Fx_popup_dialog, x_activate_menubar, update_frame_menubar)
15371 (set_frame_menubar, free_frame_menubar)
b97439ce 15372 (create_and_show_popup_menu, xmenu_show)
aac0c6e3
MR
15373 (create_and_show_dialog, xdialog_show, xmenu_show): Abort if not
15374 an X frame.
15375
15376 * xselect.c (x_own_selection): Abort if not an X frame.
15377 (some_frame_on_display): Check if it is an X frame.
15378 (x_handle_selection_clear): Deal with MULTI_KBOARD.
15379
15380 * coding.c: Include frame.h and termhooks.h.
15381 (terminal_coding, keyboard_coding): Delete.
15382 (Fset_terminal_coding_system_internal)
15383 (Fset_keyboard_coding_system_internal)
15384 (Fkeyboard_coding_system)
15385 (Fterminal_coding_system): Add a terminal parameter.
15386 Get terminal_coding from the terminal.
15387 (init_coding_once): Don't call setup_coding_system here.
15388
15389 * dispextern.h (set_scroll_region, turn_off_insert)
15390 (turn_off_highlight, background_highlight, clear_end_of_line_raw)
15391 (tty_clear_end_of_line, tty_setup_colors)
15392 (delete_tty, updating_frame)
15393 (produce_special_glyphs, produce_glyphs, write_glyphs)
15394 (insert_glyphs): Remove.
15395 (raw_cursor_to, clear_to_end, tty_turn_off_insert)
15396 (tty_turn_off_highlight, get_tty_size): Add declaration.
15397 (tabs_safe_p, init_baud_rate, get_tty_terminal): Update prototypes.
15398
15399 * frame.h (enum output_method): Add output_initial.
15400 (struct x_output): Delete.
15401 (FRAME_FOREGROUND_PIXEL, FRAME_BACKGROUND_PIXEL):
15402 Access foreground_pixel and background_pixel directly from the frame.
15403 (tty_display): Delete.
15404 (struct frame): Add buried_buffer_list, foreground_pixel,
15405 background_pixel and terminal. Delete kboard.
15406 (union output_data): Add tty.
15407 (FRAME_KBOARD): Get the kboard from the terminal.
15408 (FRAME_INITIAL_P): New macro.
15409 (Qtty, Qtty_type, Qterminal, Qterminal_live_p, Qenvironment)
15410 (Qterm_environment_variable, Qdisplay_environment_variable)
15411 (make_terminal_frame, Qburied_buffer_list, Qwindow_system):
15412 New declarations.
15413
15414 * termchar.h (tty_output, tty_display_info): New structures.
15415 (tty_list): Declare.
15416 (FRAME_TTY, CURTTY): New macros.
15417 (must_write_spaces, min_padding_speed, fast_clear_end_of_line)
15418 (line_ins_del_ok, char_ins_del_ok, scroll_region_ok)
15419 (scroll_region_cost, memory_below_frame, fast_clear_end_of_line)
15420 (dont_calculate_costs, no_redraw_on_reenter): Remove declarations.
15421
15422 * callproc.c: Include frame.h and termhooks.h, for terminal
15423 parameters.
15424 (add_env): New function.
15425 (child_setup): Use it.
15426 (child_setup, getenv_internal): Handle the new Vprocess_environment.
15427 (getenv_internal): Fix get_terminal_param call.
15428 (Fgetenv_internal, egetenv): Update doc.
15429 (syms_of_callproc): Initialize Vprocess_environment to nil.
15430 Register and initialize them. Remove obsolete defvars. Update doc
15431 strings.
15432 (child_setup): Handle Vlocal_environment_variables.
15433 (getenv_internal): Add terminal parameter.
15434 Handle Vlocal_environment_variables.
15435 (Fgetenv_internal): Add terminal parameter.
15436 (child_setup, getenv_internal, Fgetenv_internal): Store the local
15437 environment in a frame (not terminal) parameter. Update doc strings.
15438 (set_initial_environment): Rename from set_global_environment.
15439 Store Emacs environment in initial frame parameter.
15440
15441 * xdisp.c (redisplay_internal): Update references to
15442 `previous_terminal_frame'.
15443 (display_mode_line, Fformat_mode_line): Replace calls to
15444 `push_frame_kboard' with `push_kboard'.
15445 (get_glyph_string_clip_rects): Add extra parentheses and
15446 braces to prevent compiler warnings.
15447 (calc_pixel_width_or_height): Add xassert to check that the
15448 frame is alive. Don't call `lookup_image' on a termcap frame.
15449 (message2_nolog, message3_nolog, redisplay_internal)
15450 (set_vertical_scroll_bar, redisplay_window, check_x_display_info)
15451 (x_set_scroll_bar_foreground, x_set_scroll_bar_background)
15452 (Fx_create_frame, Fxw_display_color_p, Fx_display_grayscale_p)
15453 (Fx_display_pixel_width, Fx_display_pixel_height)
15454 (Fx_display_planes, Fx_display_color_cells)
15455 (Fx_server_max_request_size, Fx_server_vendor, Fx_server_version)
15456 (Fx_display_screens, Fx_display_mm_height, Fx_display_mm_width)
15457 (Fx_display_backing_store, Fx_display_visual_class)
15458 (Fx_display_save_under, Fx_close_connection, x_create_tip_frame):
15459 Use FRAME_TERMINAL_P, FRAME_WINDOW_P, FRAME_TTY and FRAME_RIF.
15460
15461 * xfns.c (x_set_foreground_color x_set_background_color)
15462 (x_set_mouse_color, x_set_cursor_color, x_make_gc):
15463 Use FRAME_BACKGROUND_PIXEL and FRAME_FOREGROUND_PIXEL.
15464 (Fx_create_frame, x_create_tip_frame, build_string, x_window)
15465 (Fx_create_frame, x_create_tip_frame): Don't create frames on a
15466 terminal that is being deleted.
15467 (Fx_create_frame): Use `store_frame_param' to set `window-system'
15468 frame parameter, and make sure it overrides any user-supplied setting.
15469 (Fx_close_connection, Fx_synchronize): Unify argument names with
15470 the rest of the DEFUNs.
15471
15472 * dispnew.c (Fsend_string_to_terminal): Update call to
15473 `get_tty_terminal'.
15474 (Fredraw_frame, Fsend_string_to_terminal)
15475 (Fsend_string_to_terminal, init_display): Use FRAME_RIF,
15476 FRAME_TERMCAP_P and FRAME_TTY.
15477 (window_change_signal): Don't believe width/height values that are
15478 impossibly small.
15479 (Vinitial_window_system): Rename from Vwindow_system.
15480 (termscript, Wcm, rif): Delete.
15481
15482 * termhooks.h (struct terminal): New struct containing the
15483 previously global text display hooks and new members NAME,
15484 DELETED and PARAM_ALIST.
15485 (FRAME_TERMINAL, TERMINAL_TERMINAL_CODING)
15486 (TERMINAL_KEYBOARD_CODING, TERMINAL_ACTIVE_P, FRAME_WINDOW_P)
15487 (FRAME_RIF): New macros.
15488 (get_terminal_param, get_device): New declarations.
15489 (termscript): Delete declaration.
15490
15491 * xterm.c (x_initialize): Use Fset_input_interrupt_mode.
15492 (XTflash, x_free_frame_resources, x_scroll_bar_create)
15493 (x_scroll_bar_set_handle): Use FRAME_BACKGROUND_PIXEL and
15494 FRAME_FOREGROUND_PIXEL.
15495 (x_fully_uncatch_errors): Disable definition.
15496 (x_scroll_bar_expose): Fix reference to foreground pixel.
15497 (XTread_socket): Disable loop on all X displays.
15498 (x_delete_terminal): Don't set terminal->deleted and let
15499 delete_terminal delete the frames on the terminal.
15500 (x_delete_display): Doc update to reflect changes in
15501 delete_terminal.
15502 (x_display_info) <terminal>: Move member earlier in the struct.
15503 (deleting_tty): Remove old variable.
15504 (Fsuspend_tty): Call clear_tty_hooks.
15505 (Fresume_tty, init_tty): Call set_tty_hooks.
15506 (Ftty_display_color_p, Ftty_display_color_cells): Don't throw
15507 errors on X frames.
15508 (x_catch_errors_unwind): Abort if x_error_message is NULL.
15509 (handle_one_xevent): Initialize `f' to NULL.
15510 (x_delete_terminal, x_create_terminal): New functions.
15511 (XTset_terminal_modes, XTreset_terminal_modes)
15512 (XTread_socket, x_connection_closed, x_term_init)
15513 (x_term_init, x_delete_display): Add terminal parameter.
15514 (x_term_init) [!HAVE_GTK_MULTIDISPLAY]: Refuse to create secondary
15515 X connections.
15516
15517 * frame.c: Include termchar.h.
15518 (Qterminal, Qterminal_live_p, Qburied_buffer_list, Qtty, Qtty_type)
15519 (Qwindow_system, Qenvironment, Qterm_environment_variable)
15520 (Qdisplay_environment_variable): New vars.
15521 (Fframep): Deal with output_initial.
15522 (Fframe-live-p): Doc fix.
15523 (Fwindow-system): New function.
15524 (x_set_screen_gamma, store_frame_param): Fix compilation errors.
15525 (make_terminal_frame): Don't create frames on a terminal that is
15526 being deleted. Use FRAME_BACKGROUND_PIXEL and FRAME_FOREGROUND_PIXEL.
15527 (store_frame_param): Check for found_for_frame before calling XFRAME.
15528 (Fmake_terminal_frame): Handle NULL tty names correctly.
15529 (syms_of_frame): Enhance doc string of `default-frame-alist'.
15530 (Fdelete_frame): Remove unused variable `count'. Don't allow other
15531 frames to refer to a deleted frame in their 'environment parameter.
15532 (Fframe_with_environment): New function.
15533 (syms_of_frame): Defsubr it. Initialize and staticpro Qenvironment.
15534 (get_future_frame_param): New function.
15535 (Fmake_terminal_frame): Use it.
15536 (x_set_frame_parameters, x_set_screen_gamma): Use FRAME_RIF.
15537
15538 * sysdep.c (init_sys_modes, reset_sys_modes): Update for renames.
15539 * sysdep.c (reset_sys_modes): Update for renames.
15540
15541 * keyboard.c (tty_read_avail_input): New function.
15542 (Fset_input_interrupt_mode, Fset_output_flow_control): New functions.
15543 (syms_of_keyboard): Defsubr them.
15544 (Fset_input_meta_mode, Fset_quit_char): New functions.
15545 (Fset_input_mode): Split to above functions.
15546 (read_char_minibuf_menu_prompt): Add wrong_kboard_jmpbuf
15547 parameter. Use it in call to `read_char'.
15548 (read_char): Declare. Update call to `read_char_minibuf_menu_prompt'.
15549 Set wrong_kboard_jmpbuf correctly in recursive calls.
15550 Use current_kboard to access Vkeyboard_translate_table.
15551 Enhance comment before extra longjmp to wrong_kboard_jmpbuf.
15552 Add wrong_kboard_jmpbuf parameter to allow for recursive calls.
15553 Update longjmp invocations. Remember the original current_kboard,
15554 and longjmp to `wrong_kboard_jmpbuf' when a filter, timer or sentinel
15555 changes it. Comment out unnecessary calls to
15556 `record_single_kboard_state' and `any_kboard_state'.
15557 Update recursive calls.
15558 (wrong_kboard_jmpbuf): Remove global variable.
15559 (read_key_sequence): Remove unused variable wrong_kboard_jmpbuf.
15560 Handle deleted interrupted_kboards correctly; that is a legal
15561 case. Add `wrong_kboard_jmpbuf' local variable. Update setjmp
15562 and read_char calls. Abort if interrupted_kboard died in read_char.
15563 (any_kboard_state, single_kboard_state)
15564 (push_frame_kboard): Remove function.
15565 (pop_kboard): Switch out of single_kboard mode if the kboard has
15566 been deleted. Remove unused variable. Help debugging by not
15567 changing current_kboard unnecessarily. Set current_kboard to the
15568 kboard of the selected frame when the stored kboard object has
15569 been deleted before pop_kboard.
15570 (temporarily_switch_to_single_kboard): Change first parameter to a
15571 frame pointer. Throw an error when caller wants to change kboards
15572 while in single_kboard mode. Don't push_kboard if we weren't in
15573 single kboard state. Don't pop_kboard if we popped into any
15574 kboard state.
15575 (restore_kboard_configuration): Abort if pop_kboard changed the
15576 kboard in single_kboard mode. Call pop_kboard only after setting
15577 up single_kboard mode.
15578 (Frecursive_edit): Switch to single_kboard mode only in nested
15579 command loops.
15580 (cmd_error, command_loop, command_loop_1, timer_check):
15581 Comment out unnecessary call to `any_kboard_state' and
15582 `record_single_kboard_state'.
15583 (delete_kboard): Exit single_kboard mode if we have just deleted
15584 that kboard. Use FRAME_KBOARD.
15585 (interrupt_signal): Use `Fkill_emacs' to exit Emacs, not
15586 `fatal_error_signal'.
15587 (record_single_kboard_state): Don't push_kboard if we weren't in
15588 single kboard state. Don't pop_kboard if we popped into any
15589 kboard state.
15590 (push_frame_kboard): Rename to push_kboard.
15591 (kbd_buffer_get_event): Use FRAME_TERMINAL.
15592 (read_avail_input): Read input from all terminals.
15593 (mark_kboards): Also mark Vkeyboard_translate_table.
15594 (kbd_buffer_store_event_hold): Simplify condition.
15595 (read_key_sequence): Reinitialize fkey and keytran at each replay.
15596 (Vkeyboard_translate_table): Move to struct kboard.
15597 (init_kboard): Initialize Vkeyboard_translate_table.
15598 (syms_of_keyboard): Use DEFVAR_KBOARD to define
15599 Vkeyboard_translate_table. Update doc strings. Update docs of
15600 local-function-key-map and function-key-map.
15601
15602 * terminal.c: New file.
15603
15604 * term.c: Include errno.h.
15605 (Vring_bell_function, device_list, initial_device)
15606 (next_device_id, ring_bell, update_begin, update_end)
15607 (set_terminal_window, cursor_to, raw_cursor_to)
15608 (clear_to_end, clear_frame, clear_end_of_line)
15609 (write_glyphs, insert_glyphs, delete_glyphs, ins_del_lines)
15610 (Fdisplay_name, create_device, delete_device): Move to terminal.c.
15611 (syms_of_term): Move their initialization to terminal.c.
15612 (get_tty_terminal, Fdisplay_tty_type, Ftty_display_color_p)
15613 (Ftty_display_color_cells)
15614 (Ftty_no_underline, Fsuspend_tty, Fresume_tty, create_tty_output)
15615 (clear_tty_hooks, set_tty_hooks)
15616 (init_tty, maybe_fatal): New functions.
15617 (Ftty_type): Return nil if terminal is not on a tty instead of
15618 throwing an error. Doc update.
15619 (syms_of_term) <Vsuspend_tty_functions, Vresume_tty_functions>:
15620 Doc update. Initialize new subrs and variables.
15621 (delete_tty): Use terminal->deleted.
15622 (tty_set_terminal_modes): Rename from set_terminal_modes.
15623 (tty_reset_terminal_modes): Rename from reset_terminal_modes.
15624 (set_scroll_region): Rename to `tty_set_scroll_region'.
15625 (turn_on_insert): Rename to `tty_turn_on_insert'.
15626 (turn_off_insert): Rename to `tty_turn_off_insert'.
15627 (turn_off_highlight): Rename to `tty_turn_off_highlight'.
15628 (turn_on_highlight): Rename to `tty_turn_on_highlight'.
15629 (toggle_highligh): Rename to `tty_toggle_highlight'.
15630 (background_highlight): Rename to `tty_background_highlight'.
15631 (highlight_if_desired): Rename to `tty_highlight_if_desired'.
15632 (tty_ring_bell, tty_update_end, tty_set_terminal_window)
15633 (tty_set_scroll_region, tty_background_highlight)
15634 (tty_cursor_to, tty_raw_cursor_to, tty_clear_to_end)
15635 (tty_clear_frame, tty_clear_end_of_line, tty_write_glyphs)
15636 (tty_insert_glyphs, tty_delete_glyphs, tty_ins_del_lines)
15637 (term_get_fkeys, tty_setup_colors, dissociate_if_controlling_tty):
15638 Add static modifier.
15639 (tty_reset_terminal_modes, tty_set_terminal_window)
15640 (tty_set_scroll_region, tty_background_highlight)
15641 (tty_highlight_if_desired, tty_cursor_to)
15642 (tty_raw_cursor_to, tty_clear_to_end, tty_clear_frame)
15643 (tty_clear_end_of_line, tty_write_glyphs, tty_insert_glyphs)
15644 (tty_delete_glyphs, tty_ins_del_lines, turn_on_face): Update for
15645 renames.
15646
156472007-08-28 Jan Djärv <jan.h.d@swipnet.se>
15648
15649 * keyboard.c: Qrtl is new.
15650 (parse_tool_bar_item): Handle :rtl keyword.
15651 (syms_of_keyboard): Intern :rtl keyword.
15652
15653 * dispextern.h (enum tool_bar_item_idx): Add TOOL_BAR_ITEM_RTL_IMAGE.
15654
15655 * gtkutil.c (xg_tool_bar_expose_callback): Just do SET_FRAME_GARBAGED
15656 so no Lisp code is executed.
15657 (file_for_image, find_rtl_image): New functions.
15658 (xg_get_image_for_pixmap): Use file_for_image.
15659 (update_frame_tool_bar): If direction is RTL, use RTL image if
15660 defined. Use Gtk stock images if defined.
15661
156622007-08-27 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
15663
15664 * macterm.c (x_draw_composite_glyph_string_foreground): Draw rectangle
15665 for nonexistent or zero-width glyph in composition glyph.
15666
156672007-08-25 Stefan Monnier <monnier@iro.umontreal.ca>
15668
15669 * m/amdx86-64.h: Redirect to intel386.h if compiling for i386.
15670
15671 * xdisp.c (Finvisible_p): New function.
15672 (syms_of_xdisp): defsubr it.
15673
156742007-08-24 Juanma Barranquero <lekktu@gmail.com>
15675
15676 * image.c (syms_of_image) <image-library-alist, cross-disabled-images>:
15677 Doc fixes.
15678
156792007-08-24 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
15680
15681 * mac.c [MAC_OSX] (select_and_poll_event, sys_select): Fix last changes.
15682
156832007-08-24 Martin Rudalics <rudalics@gmx.at>
15684
15685 * fileio.c (Finsert_file_contents): Consult CHARS_MODIFF to tell
15686 whether decoding has modified buffer contents.
15687
156882007-08-24 Jason Rumney <jasonr@gnu.org>
15689
15690 * image.c [HAVE_NTGUI]: Define dynamic loaded functions for SVG.
15691 (Qgdk_pixbuf, Qglib) [HAVE_NTGUI]: New symbols.
15692 (syms_of_image) [HAVE_NTGUI]: Intern and staticpro them.
15693 (init_svg_functions) [HAVE_NTGUI]: New function.
15694 (fn_g_type_init, fn_g_object_unref, fn_g_error_free): New #defines.
15695 (svg_load_image): Use them.
15696 (svg_load_image) [HAVE_NTGUI]: Implement background.
15697
156982007-08-23 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
15699
15700 * Makefile.in (RSVG_LIBS, RSVG_CFLAGS): New variables.
15701 (ALL_CFLAGS): Use ${RSVG_CFLAGS} instead of @RSVG_CFLAGS@.
15702 (LIBX): Remove @RSVG_LIBS@.
15703 (LIBES): Add $(RSVG_LIBS).
15704
15705 * image.c (svg_load_image): Blend with specified background if exists.
15706 Use IMAGE_BACKGROUND. Add Mac OS Support.
15707
15708 * mac.c (wakeup_from_rne_enabled_p) [MAC_OSX]: Remove variable.
15709 (ENABLE_WAKEUP_FROM_RNE, DISABLE_WAKEUP_FROM_RNE) [MAC_OSX]:
15710 Remove macros.
15711 [MAC_OSX] (socket_callback): Do nothing.
15712 [MAC_OSX] (select_and_poll_event): Use CFRunLoopRunInMode instead of
15713 ReceiveNextEvent.
15714 [MAC_OSX] (sys_select): Likewise. Don't set context as argument to
15715 socket_callback.
15716 (mac_wakeup_from_rne) [MAC_OSX]: Do nothing.
15717
157182007-08-22 Glenn Morris <rgm@gnu.org>
15719
15720 * image.c (x_find_image_file): Search in etc/images/ rather than etc/.
15721
157222007-08-22 Paul Pogonyshev <pogonyshev@gmx.net>
15723
15724 * Makefile.in (ALL_CFLAGS, LIBX): Add RSVG_LIBS.
15725
15726 * image.c: Add support for SVG images. Some additional comments
15727 by Joakim Verona <joakim@verona.se>. When HAVE_RSVG is defined:
15728 (svg_image_p): New function to test for SVG image.
15729 (svg_load): New function to load SVG image.
15730 (svg_load_image): New function, helper for svg_load.
15731 (Qsvg): New Lisp_object.
15732 (svg_keyword_index): New enum.
15733 (svg_format): New static `image_keyword' struct.
15734 (svg_type): New static `image_type' struct.
15735 (librsvg/rsvg.h): Include it.
15736
157372007-08-23 Stefan Monnier <monnier@iro.umontreal.ca>
15738
15739 * lread.c (load_warn_old_style_backquotes): Fix up array size typo.
15740
157412007-08-22 Stefan Monnier <monnier@iro.umontreal.ca>
15742
15743 * lread.c (Qold_style_backquotes): New var.
15744 (syms_of_lread): Init and staticpro it.
15745 (load_warn_old_style_backquotes): New fun.
15746 (Fload): Use them to warn about old style backquotes.
15747 (end_of_file_error, Fload): Remove unused vars.
15748
15749 * lisp.h (Fclear_face_cache, Fx_send_client_event): Declare.
15750
15751 * lread.c (Vold_style_backquotes): New var.
15752 (syms_of_lread): Init and export it to Elisp.
15753 (read1): Set it when we find an old-style (back)quote.
15754
157552007-08-22 Jason Rumney <jasonr@gnu.org>
15756
15757 * w32reg.c (SYSTEM_DEFAULT_RESOURCES): Add missing NULL terminator.
15758
157592007-08-22 Katsumi Yamaoka <yamaoka@jpl.org>
15760
15761 * puresize.h (BASE_PURESIZE): Increase to 1140000.
15762
157632007-08-19 Richard Stallman <rms@gnu.org>
15764
15765 * eval.c (Ffunction, Fquote): Signal error if not 1 argument.
15766
157672007-08-19 Andreas Schwab <schwab@suse.de>
15768
15769 * alloc.c (pure): Round PURESIZE up.
15770
157712007-08-17 Jan Djärv <jan.h.d@swipnet.se>
15772
15773 * xterm.c (handle_one_xevent): Remove check that mouse click is in
15774 active frame.
15775
157762007-08-16 Richard Stallman <rms@gnu.org>
15777
15778 * eval.c (Fcommandp): Add parens to clarify.
15779
15780 * minibuf.c (Fall_completions): Use enum for type of table.
15781
15782 * emacs.c (USAGE2): Improve text.
15783
157842007-08-15 Philippe Waroquiers <philippe.waroquiers@eurocontrol.int>
15785
15786 * term.c (tty_default_color_capabilities): Declare static
15787 variables in file scope, to avoid HPUX compiler problem.
15788
157892007-08-13 Jan Djärv <jan.h.d@swipnet.se>
15790
15791 * gtkutil.c (update_frame_tool_bar): Use -1 as index
15792 to gtk_toolbar_insert.
15793
157942007-08-13 Stefan Monnier <monnier@iro.umontreal.ca>
15795
15796 * fileio.c (Finsert_file_contents): Yet Another Int/Lisp_Object Mixup.
15797
15798 * insdel.c (reset_var_on_error): New fun.
15799 (signal_before_change, signal_after_change):
15800 Use it to reset (after|before)-change-functions to nil in case of error.
15801 Bind inhibit-modification-hooks to t.
15802 Don't bind (after|before)-change-functions to nil while they run.
15803
158042007-08-11 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
15805
15806 * xterm.c (x_draw_image_glyph_string): Adjust stipple origin when
15807 filling pixmap with stippled background.
15808
158092007-08-10 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
15810
15811 * macterm.c [TARGET_API_MAC_CARBON] (mac_handle_window_event):
15812 Don't use invisible frame as parent window for repositioning.
15813
158142007-08-10 Stefan Monnier <monnier@iro.umontreal.ca>
15815
15816 * print.c (new_backquote_output): Rename from old_backquote_output.
15817 (print): Inverse its logic (according to its name) so as to match the
15818 behavior of new_backquote_flag in lread.c.
15819
158202007-08-09 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
15821
15822 * gmalloc.c (posix_memalign): New function.
15823
15824 * macterm.c (frame_highlight, frame_unhighlight): Don't call
15825 ActivateControl/DeactivateControl here.
15826 [USE_MAC_TOOLBAR] (free_frame_tool_bar): Suppress animation when
15827 frame-notice-user-settings is non-nil.
15828 [USE_MAC_FONT_PANEL] (mac_handle_font_event): Also record parameter
15829 for kEventParamFMFontStyle.
15830 [TARGET_API_MAC_CARBON] (mac_handle_keyboard_event): Don't check
15831 mac_pass_command_to_system and mac_pass_control_to_system here.
15832 (XTread_socket): Call ActivateControl/DeactivateControl here.
15833 (XTread_socket) [TARGET_API_MAC_CARBON]:
15834 Check mac_pass_command_to_system and mac_pass_control_to_system here.
15835 (mac_handle_window_event) [USE_MAC_TOOLBAR]: Add further workaround
15836 for window repositioning.
15837
158382007-08-08 Glenn Morris <rgm@gnu.org>
15839
15840 * Replace `iff' in doc-strings and comments.
15841
158422007-08-07 Chong Yidong <cyd@stupidchicken.com>
15843
15844 * xdisp.c (move_it_by_lines): Remove incorrect optimization.
15845
158462007-08-07 Martin Rudalics <rudalics@gmx.at>
15847
15848 * fileio.c (Finsert_file_contents): Run format-decode and
15849 after_insert_file_functions on entire buffer when REPLACE is
15850 non-nil and inhibit modification_hooks and point_motion_hooks.
15851 For consistency, run after_insert_file_functions iff something
15852 got inserted. Move signal_after_change and update_compositions
15853 after code running after_insert_file_functions. Make sure that
15854 undo_list doesn't record intermediate steps of the decoding process.
15855
158562007-08-07 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
15857
15858 * emacs.c (main)
15859 [HAVE_GTK_AND_PTHREAD && !SYSTEM_MALLOC && !DOUG_LEA_MALLOC]:
15860 Call malloc_enable_thread on interactive startup.
15861
15862 * gmalloc.c (_malloc_thread_enabled_p) [USE_PTHREAD]: New variable.
15863 (LOCK, UNLOCK, LOCK_ALIGNED_BLOCKS, UNLOCK_ALIGNED_BLOCKS)
15864 [USE_PTHREAD]: Conditionalize with it.
15865 (malloc_atfork_handler_prepare, malloc_atfork_handler_parent)
15866 (malloc_atfork_handler_child, malloc_enable_thread) [USE_PTHREAD]:
15867 New functions.
15868
158692007-08-06 Chong Yidong <cyd@stupidchicken.com>
15870
15871 * xdisp.c (redisplay_window): When restoring original buffer
15872 position, make sure it is still valid.
15873
15874 * image.c (png_load): Ignore png-supplied background color.
15875
158762007-08-06 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
15877
15878 * mac.c [TARGET_API_MAC_CARBON] (cfdate_to_lisp): Obtain microsec value.
15879 Use kCFAbsoluteTimeIntervalSince1970.
15880
15881 * macmenu.c (quit_dialog_event_loop) [TARGET_API_MAC_CARBON]:
15882 New variable.
15883 [TARGET_API_MAC_CARBON] (mac_handle_dialog_event): Set it if dialog
15884 event loop should be quit.
15885 [TARGET_API_MAC_CARBON] (create_and_show_dialog) [!MAC_OSX]:
15886 Quit dialog event loop if quit_dialog_event_loop is set.
15887
15888 * macselect.c [!TARGET_API_MAC_CARBON]: Include Scrap.h.
15889 (Selection): New typedef. Use instead of ScrapRef.
15890 (mac_get_selection_from_symbol): Rename from get_scrap_from_symbol.
15891 (mac_valid_selection_target_p): Rename from valid_scrap_target_type_p.
15892 (mac_clear_selection): Rename from clear_scrap.
15893 (get_flavor_type_from_symbol): New argument SEL and subsume function of
15894 scrap_has_target_type. All uses changed.
15895 (mac_get_selection_ownership_info, mac_valid_selection_value_p)
15896 (mac_selection_has_target_p): New functions.
15897 (mac_put_selection_value): Rename from put_scrap_string.
15898 (mac_get_selection_value): Rename from get_scrap_string.
15899 (mac_get_selection_target_list): Rename from get_scrap_target_type_list.
15900 (put_scrap_private_timestamp, scrap_has_target_type)
15901 (get_scrap_private_timestamp): Remove functions.
15902 (SCRAP_FLAVOR_TYPE_EMACS_TIMESTAMP): Remove define.
15903 (x_own_selection, x_get_local_selection):
15904 Use mac_valid_selection_value_p.
15905 (x_own_selection): Don't use put_scrap_private_timestamp.
15906 Record OWNERSHIP-INFO into Vselection_alist instead.
15907 (x_get_local_selection): Don't check type if request is local.
15908 (Fx_selection_owner_p): Don't use get_scrap_private_timestamp.
15909 Detect ownership change with OWNERSHIP-INFO in Vselection_alist instead.
15910
159112007-08-04 Jan Djärv <jan.h.d@swipnet.se>
15912
15913 * gtkutil.c (xg_tool_bar_callback): Generate two TOOL_BAR_EVENT:s,
15914 add comment explaining why.
15915
159162007-08-03 Richard Stallman <rms@gnu.org>
15917
15918 * fileio.c (Fvisited_file_modtime): Use make_time.
15919
159202007-08-01 Ryo Yoshitake <ryo@shiftmode.net> (tiny change)
15921
15922 * mac.c (init_mac_osx_environment): Adjust load-path on self-contained
15923 build.
15924
159252007-07-31 Stefan Monnier <monnier@iro.umontreal.ca>
15926
15927 * gtkutil.c (xg_tool_bar_callback): Generate a single TOOL_BAR_EVENT.
15928
159292007-07-30 Katsumi Yamaoka <yamaoka@jpl.org>
15930
15931 * puresize.h (BASE_PURESIZE): Increase to 1130000.
15932
159332007-07-30 Richard Stallman <rms@gnu.org>
15934
15935 * lread.c (readevalloop, read1): Treat NBSP as whitespace.
15936
159372007-07-29 Jan Djärv <jan.h.d@swipnet.se>
15938
15939 * gmalloc.c (__malloc_initialize): Remove pthread_once. Not needed.
15940
159412007-07-28 Nick Roberts <nickrob@snap.net.nz>
15942
15943 * xdisp.c (decode_mode_spec): Use '@' instead of 'R' to test for
15944 remote default-directory.
15945
15946 * buffer.c (mode-line-format): Update doc string.
15947
159482007-07-27 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
15949
15950 * w32term.c (w32_draw_fringe_bitmap): Extend fringe background to
15951 scroll bar gap.
15952 (x_scroll_bar_create): Set bar->fringe_extended_p.
15953 (w32_set_vertical_scroll_bar): Put leftmost/rightmost scroll bars
15954 on frame edge. Check fringe background extension. Don't clear
15955 extended fringe background area.
15956
15957 * w32term.h (struct scroll_bar): New member fringe_extended_p.
15958 (w32_fill_area): Enclose multiple statements with do ... while (0).
15959
15960 * xterm.c (x_draw_fringe_bitmap) [USE_TOOLKIT_SCROLL_BARS]:
15961 Extend fringe background to scroll bar gap.
15962 (x_scroll_bar_create) [USE_TOOLKIT_SCROLL_BARS]:
15963 Set bar->fringe_extended_p.
15964 (XTset_vertical_scroll_bar) [USE_TOOLKIT_SCROLL_BARS]:
15965 Put leftmost/rightmost scroll bars on frame edge. Check fringe
15966 background extension. Don't clear extended fringe background area.
15967
15968 * xterm.h (struct scroll_bar) [USE_TOOLKIT_SCROLL_BARS]:
15969 New member fringe_extended_p.
15970
159712007-07-25 Glenn Morris <rgm@gnu.org>
15972
15973 * Relicense all FSF files to GPLv3 or later.
15974
15975 * COPYING: Switch to GPLv3.
15976
159772007-07-25 Stefan Monnier <monnier@iro.umontreal.ca>
15978
15979 * eval.c (Fcommandp): Pay attention to the `interactive-form' property.
15980
15981 * data.c (Finteractive_form): Check for the presence of an
15982 `interactive-form' symbol property more thoroughly.
15983
15984 * data.c (Finteractive_form): Use an `interactive-form' property if
15985 present, analogous to the function-documentation property.
15986
159872007-07-24 Jason Rumney <jasonr@gnu.org>
15988
15989 * w32fns.c (x_real_positions): Get real position from OS instead of
15990 calculating it.
15991
159922007-07-23 Jason Rumney <jasonr@gnu.org>
15993
15994 * filelock.c (current_lock_owner): Allow for @ sign in username.
15995
159962007-07-22 Nick Roberts <nickrob@snap.net.nz>
15997
15998 * xdisp.c (decode_mode_spec): Add case 'R' for to test for
15999 remote default-directory.
16000
16001 * buffer.c (mode-line-format): Describe above case in doc string.
16002
160032007-07-20 Eli Zaretskii <eliz@gnu.org>
16004
16005 * w32proc.c (IMAGE_NT_OPTIONAL_HDR32_MAGIC, IMAGE_OPTIONAL_HEADER32):
16006 Define if not defined.
16007
160082007-07-18 Jason Rumney <jasonr@gnu.org>
16009
16010 * w32proc.c (w32_executable_type): Handle 64 bit executables.
16011
160122007-07-18 Richard Stallman <rms@gnu.org>
16013
16014 * data.c (Fsetq_default): Doc fix.
16015
16016 * eval.c (Fsetq): Doc fix.
16017
160182007-07-18 Juanma Barranquero <lekktu@gmail.com>
16019
16020 * coding.c (Ffind_operation_coding_system):
16021 * eval.c (For, Fand): Doc fixes.
16022 Reported by Johan Bockgård.
16023
160242007-07-18 Jan Djärv <jan.h.d@swipnet.se>
16025
16026 * xfns.c (Fx_focus_frame): Call x_ewmh_activate_frame.
16027
16028 * xterm.h: Declare x_ewmh_activate_frame.
16029
16030 * xterm.c (x_ewmh_activate_frame): New function.
16031 (XTframe_raise_lower): Move code to x_ewmh_activate_frame.
16032
160332007-07-17 Martin Rudalics <rudalics@gmx.at>
16034
16035 * window.c (Fdisplay_buffer): If largest or LRU window is the
16036 only window, split it even if it is not eligible for splitting.
16037 This restores the original behavior broken by the 2007-07-15
16038 change.
16039
160402007-07-17 Glenn Morris <rgm@gnu.org>
16041
16042 * abbrev.c (abbrev_check_chars): New function.
16043 (Fdefine_global_abbrev, Fdefine_mode_abbrev):
16044 Call abbrev_check_chars to check abbrev characters are word
16045 constituents. Doc fix.
16046
160472007-07-17 Stefan Monnier <monnier@iro.umontreal.ca>
16048
16049 * process.c (Fstart_process, Fmake_network_process)
16050 (read_process_output): Fix up last changes.
16051
160522007-07-16 Eli Zaretskii <eliz@gnu.org>
16053
16054 * makefile.w32-in (clean): Don't delete *~.
16055
160562007-07-16 Andreas Schwab <schwab@suse.de>
16057
16058 * window.c (Fdisplay_buffer): Use NILP.
16059 (Fset_window_scroll_bars): Likewise.
16060
160612007-07-15 Martin Rudalics <rudalics@gmx.at>
16062
16063 * window.c (window_min_size_2): New function.
16064 (window_min_size_1, size_window, Fdisplay_buffer)
16065 (Fsplit_window, adjust_window_trailing_edge): Use it to avoid
16066 windows without mode- or header-lines when window-min-height is
16067 too small.
16068 (size_window): Reset nodelete_p after testing it, following an
16069 earlier note by Kim F. Storm.
16070 (display_buffer): Do not set split_height_threshold to twice the
16071 value of window_min_height to avoid changing the value of a
16072 customizable variable. Rather explicitly check whether the
16073 height of the window that shall be splitted is at least as large
16074 as split_height_threshold.
16075 (Fwindow_full_width_p): New defun.
16076 (syms_of_window): Defsubr it.
16077
16078 * window.h: Add EXFUN for Fwindow_full_width_p.
16079
160802007-07-14 Jason Rumney <jasonr@gnu.org>
16081
16082 * process.c [WINDOWSNT]: Don't undefine AF_INET6.
16083
160842007-07-14 Richard Stallman <rms@gnu.org>
16085
16086 * eval.c (maybe_call_debugger): New function.
16087 (find_handler_clause): Use maybe_call_debugger.
16088 Call it when the handler says `debug'.
16089 Eliminate DEBUGGER_VALUE_PTR.
16090 (Fsignal): Eliminate debugger_value.
16091 (Qdebug): New variable.
16092 (syms_of_eval): Initialize it.
16093
160942007-07-14 Juanma Barranquero <lekktu@gmail.com>
16095
16096 * eval.c (Fprogn):
16097 * keyboard.c (Ftrack_mouse):
16098 * print.c (Fwith_output_to_temp_buffer):
16099 * window.c (Fsave_window_excursion): Doc fix.
16100
161012007-07-13 Stefan Monnier <monnier@iro.umontreal.ca>
16102
16103 * eval.c (init_eval_once): Bump max_lisp_eval_depth to 400.
16104
161052007-07-12 Stefan Monnier <monnier@iro.umontreal.ca>
16106
16107 * process.h (struct Lisp_Process): Turn slots infd, outfd,
16108 kill_without_query, pty_flag, tick, update_tick, decoding_carryover,
16109 inherit_coding_system_flag, filter_multibyte, adaptive_read_buffering,
16110 read_output_delay, and read_output_skip from Lisp_Objects to ints.
16111 Remove unused encoding_carryover.
16112 * process.c: Adjust all functions accordingly.
16113
161142007-07-12 Richard Stallman <rms@gnu.org>
16115
16116 * term.c: Include unistd.h only if HAVE_UNISTD_H.
16117
161182007-07-11 Jason Rumney <jasonr@gnu.org>
16119
16120 * makefile.w32-in (LIBS): Include OLE32.
16121
16122 * w32fns.c (w32_msg_pump) <WM_EMACS_CREATEWINDOW>: Initialize COM.
16123 (w32_msg_pump) <WM_DESTROY>: Uninitialize COM.
16124
161252007-07-11 Stefan Monnier <monnier@iro.umontreal.ca>
16126
16127 * lisp.h (struct Lisp_Hash_Table): Turn next_weak into a bare pointer.
16128 * fns.c (weak_hash_tables): Rename from Vweak_hash_tables and turned
16129 from a Lisp_Object into a bare pointer.
16130 (make_hash_table, copy_hash_table, sweep_weak_hash_tables, init_fns):
16131 Adjust the code correspondingly.
16132
16133 * alloc.c (emacs_blocked_free): Remove unused var `bytes_used_now'.
16134
16135 * term.c: Include unistd.h for ttyname, used in handle_one_term_event.
16136 (term_show_mouse_face): Remove unused var `j'.
16137 (handle_one_term_event): Remove unused vars `i' and `j'.
16138 Don't cast return value of ttyname since it's not necessary.
16139
161402007-07-10 Stefan Monnier <monnier@iro.umontreal.ca>
16141
16142 * alloc.c (mark_maybe_pointer): Enforce mult-of-8 alignment when using
16143 USE_LSB_TAG. Suggested by Dmitry Antipov <dmantipov@yandex.ru>.
16144
16145 * fns.c (map_char_table): Use an array of int for `indices' rather than
16146 an array of Lisp_Objects (which are only ever integers anyway).
16147 (Fmap_char_table): Update caller.
16148 * lisp.h: Update prototype.
16149 * keymap.c (Fset_keymap_parent, map_keymap, Fcopy_keymap):
16150 * fontset.c (Ffontset_info):
16151 * casetab.c (set_case_table): Update callers.
16152
16153 * editfns.c (Ftranspose_regions): Use EMACS_INT for positions.
16154
16155 * keymap.c (struct accessible_keymaps_data)
16156 (struct where_is_internal_data): New structures.
16157 (accessible_keymaps_1, where_is_internal_1): Use them to change
16158 interface to adhere to the one used by map_keymap.
16159 (Faccessible_keymaps, where_is_internal): Use map_keymap.
16160 (accessible_keymaps_char_table, where_is_internal_2): Remove.
16161
16162 * keymap.h (map_keymap_function_t): More informative prototype.
16163
161642007-07-10 Guanpeng Xu <herberteuler@hotmail.com>
16165
16166 * search.c (Vinhibit_changing_match_data, search_regs_1): New vars.
16167 (looking_at_1): Don't change search_regs and last_thing_searched
16168 if `inhibit-changing-match-data' is non-nil.
16169 (string_match_1, search_buffer, set_search_regs): Likewise.
16170 (syms_of_search): Add Lisp level definition for
16171 `inhibit-changing-match-data' and set it to nil.
16172 (boyer_moore): If `inhibit-changing-match-data' is non-nil, compute
16173 start and end of the match, instead of using values in search_regs.
16174
161752007-07-01 Stefan Monnier <monnier@iro.umontreal.ca>
16176
16177 * minibuf.c (Fcompleting_read): New value `confirm-only'
16178 for `require-match'.
16179
161802007-06-28 Stefan Monnier <monnier@iro.umontreal.ca>
16181
16182 * fileio.c (Fdo_auto_save): Revert last patch installed unwillingly as
16183 part of the 2007-06-27 change to syms_of_fileio.
16184
161852007-06-28 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
16186
16187 * macterm.c [USE_MAC_TSM] (mac_handle_text_input_event):
16188 Check WINDOWP before using XWINDOW. Consolidate return statements.
16189
161902007-06-27 Richard Stallman <rms@gnu.org>
16191
16192 * fileio.c (syms_of_fileio) <after-insert-file-functions>: Doc fix.
16193
161942007-06-27 Juanma Barranquero <lekktu@gmail.com>
16195
16196 * buffer.c (syms_of_buffer) <selective-display>: Fix typo in docstring.
16197
161982007-06-26 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
16199
16200 * gmalloc.c [HAVE_GTK_AND_PTHREAD]: Check this after including config.h.
16201 (_aligned_blocks_mutex) [USE_PTHREAD]: New variable.
16202 (LOCK_ALIGNED_BLOCKS, UNLOCK_ALIGNED_BLOCKS): New macros.
16203 (_free_internal, memalign): Use them.
16204 (_malloc_mutex, _aligned_blocks_mutex) [USE_PTHREAD]:
16205 Initialize to PTHREAD_MUTEX_INITIALIZER.
16206 (malloc_initialize_1) [USE_PTHREAD]: Don't use recursive mutex.
16207 (morecore_nolock): Rename from morecore. All uses changed.
16208 Use only nolock versions of internal allocation functions.
16209 (_malloc_internal_nolock, _realloc_internal_nolock)
16210 (_free_internal_nolock): New functions created from
16211 _malloc_internal, _realloc_internal, and _free_internal.
16212 (_malloc_internal, _realloc_internal, _free_internal): Use them.
16213 Copy hook value to automatic variable before its use.
16214 (memalign): Copy hook value to automatic variable before its use.
16215
162162007-06-26 Kenichi Handa <handa@m17n.org>
16217
16218 * coding.c (Ffind_operation_coding_system): Docstring improved.
16219 (syms_of_coding): Docstring of `file-coding-system-alist' improved.
16220
162212007-06-25 David Kastrup <dak@gnu.org>
16222
16223 * keymap.c (Fcurrent_active_maps): Add `position' argument.
16224 (Fwhere_is_internal): Adjust call to `current-active-maps' to
16225 cater for additional parameter.
16226
16227 * keymap.h: Adjust number of parameters to `current-active-maps'.
16228
16229 * doc.c (Fsubstitute_command_keys): Adjust call of
16230 `current-active-maps'.
16231
162322007-06-25 David Kastrup <dak@gnu.org>
16233
16234 * callint.c (Fcall_interactively): Make the parsing of interactive
16235 specs somewhat more readable.
16236
162372007-06-23 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
16238
16239 * macterm.c (x_draw_fringe_bitmap) [MAC_OSX]: Extend fringe background
16240 to scroll bar gap also when bitmap fills fringe. Draw only foreground
16241 if extended background has already been filled.
16242
162432007-06-22 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
16244
16245 * macgui.h (USE_CG_DRAWING): Don't require USE_ATSUI.
16246 (USE_MAC_TOOLBAR): Require USE_CG_DRAWING.
16247
16248 * macmenu.c (mac_dialog_modal_filter, Fx_popup_dialog) [MAC_OSX]:
16249 Put special treatment for Fmessage_box, Fyes_or_no_p, and Fy_or_n_p
16250 in #if 0 as it is not compatible with y-or-n-p-with-timeout.
16251 (timer_check) [TARGET_API_MAC_CARBON]: Add extern.
16252 [TARGET_API_MAC_CARBON] (mac_handle_dialog_event): Use QuitEventLoop
16253 instead of QuitAppModalLoopForWindow. Consolidate QuitEventLoop calls.
16254 (pop_down_dialog) [TARGET_API_MAC_CARBON]: New function.
16255 [TARGET_API_MAC_CARBON] (create_and_show_dialog): Use it for unwind.
16256 Run timers during dialog popup.
16257 (Fmenu_or_popup_active_p) [TARGET_API_MAC_CARBON]: Use popup_activated.
16258
162592007-06-21 Jason Rumney <jasonr@gnu.org>
16260
16261 * image.c (convert_mono_to_color_image): Swap fore and background.
16262
162632007-06-20 Jason Rumney <jasonr@gnu.org>
16264
16265 * w32bdf.c (w32_BDF_to_x_font): Unmap memory when finished.
16266 (w32_free_bdf_font): Unmap memory not handle.
16267
162682007-06-20 Sam Steingold <sds@gnu.org>
16269
16270 * gmalloc.c (__morecore): Fix the declaration to comply with the
16271 definition.
16272
162732007-06-20 Juanma Barranquero <lekktu@gmail.com>
16274
16275 * w32term.c (w32_delete_display): Remove leftover declaration.
16276 (w32_define_cursor, w32_initialize): Make static.
16277
16278 * w32.c (_wsa_errlist): Fix typo in error message.
16279 (init_environment): Ignore any environment variable from the
16280 registry having a null value.
16281
162822007-06-20 Glenn Morris <rgm@gnu.org>
16283
16284 * Makefile.in (LIBGIF): Default to -lgif.
16285
162862007-06-17 Jason Rumney <jasonr@gnu.org>
16287
16288 * w32menu.c (add_menu_item): Don't use multibyte string functions on
16289 unicode strings.
16290
162912007-06-16 Juanma Barranquero <lekktu@gmail.com>
16292
16293 * xdisp.c (syms_of_xdisp) <auto-resize-tool-bars>:
16294 Fix typo in docstring.
16295
162962007-06-16 Eli Zaretskii <eliz@gnu.org>
16297
16298 * w32menu.c (add_menu_item): Escape `&' characters in menu items
16299 and their keybindings.
16300
163012007-06-15 Chong Yidong <cyd@stupidchicken.com>
16302
16303 * composite.c (update_compositions): Fix last fix.
16304
163052007-06-14 Jason Rumney <jasonr@gnu.org>
16306
16307 * w32.c (get_process_times_fn): New function pointer.
16308 (globals_of_w32): Intialize it if present in kernel32.dll.
16309 (w32_get_internal_run_time): New function.
16310
16311 * editfns.c (Fget_internal_run_time) [WINDOWSNT]: Use it.
16312
163132007-06-14 Kenichi Handa <handa@etlken.m17n.org>
16314
16315 * composite.c (update_compositions): Check the validness of
16316 compositions.
16317
163182007-06-14 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
16319
16320 * frame.h (struct frame) [MAC_OS]: New member external_tool_bar.
16321 (FRAME_EXTERNAL_TOOL_BAR) [MAC_OS]: Use it.
16322
16323 * macfns.c (mac_window) [USE_MAC_TOOLBAR]: Set toolbar_win_gravity.
16324 (x_set_tool_bar_lines) [USE_MAC_TOOLBAR]: Set FRAME_EXTERNAL_TOOL_BAR.
16325
16326 * macgui.h (USE_MAC_TOOLBAR): New define.
16327
16328 * macmenu.c [TARGET_API_MAC_CARBON] (menu_target_item_handler):
16329 Return immediately unless popup is activated.
16330
16331 * macterm.c (x_draw_fringe_bitmap) [MAC_OSX]: Extend fringe
16332 background to scroll bar gap.
16333 (x_scroll_bar_create) [MAC_OSX]: Set bar->fringe_extended_p.
16334 (XTset_vertical_scroll_bar) [MAC_OSX]: Put leftmost/rightmost
16335 scroll bars on frame edge. Check fringe background extension.
16336 Don't clear extended fringe background area.
16337 (TOOLBAR_IDENTIFIER, TOOLBAR_ICON_ITEM_IDENTIFIER)
16338 (TOOLBAR_ITEM_COMMAND_ID_OFFSET, TOOLBAR_ITEM_COMMAND_ID_P)
16339 (TOOLBAR_ITEM_COMMAND_ID_VALUE, TOOLBAR_ITEM_MAKE_COMMAND_ID):
16340 [USE_MAC_TOOLBAR]: New macros.
16341 (mac_move_window_with_gravity, mac_get_window_origin_with_gravity)
16342 (mac_handle_toolbar_event, mac_image_spec_to_cg_image)
16343 (mac_create_frame_tool_bar, update_frame_tool_bar, free_frame_tool_bar)
16344 (mac_tool_bar_note_mouse_movement, mac_handle_toolbar_command_event)
16345 [USE_MAC_TOOLBAR]: New functions.
16346 (mac_handle_window_event) [USE_MAC_TOOLBAR]: Reposition window
16347 manually if previous repositioning has failed.
16348 (mac_handle_keyboard_event): Use precomputed event kind.
16349 (XTread_socket) [USE_MAC_TOOLBAR]: Handle click in structure region
16350 as tool bar item click. Handle mouse movement over tool bar items.
16351
16352 * macterm.h (struct mac_output) [USE_MAC_TOOLBAR]: New member
16353 toolbar_win_gravity.
16354 (struct scroll_bar) [MAC_OSX]: New member fringe_extended_p.
16355 (update_frame_tool_bar, free_frame_tool_bar) [USE_MAC_TOOLBAR]:
16356 Add externs.
16357
16358 * xdisp.c (update_tool_bar, redisplay_tool_bar, redisplay_window)
16359 [USE_MAC_TOOLBAR]: Sync with GTK+ tool bar display.
16360
163612007-06-14 Chong Yidong <cyd@stupidchicken.com>
16362
16363 * image.c (search_image_cache): Remove unused variable.
16364
163652007-06-13 Chong Yidong <cyd@stupidchicken.com>
16366
16367 * xfns.c, xmenu.c: Link to xaw3d if available.
16368
163692007-06-13 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
16370
16371 * dispextern.h (struct image) [HAVE_WINDOW_SYSTEM]: New members
16372 frame_foreground and frame_background.
16373
16374 * image.c (lookup_image): Save frame foreground and background colors.
16375 (search_image_cache): Check if saved and current frame colors match.
16376
163772007-06-12 Stefan Monnier <monnier@iro.umontreal.ca>
16378
16379 * regex.c (regex_compile): Remove the `regnum' counter.
16380 Use bufp->re_nsub instead. Add support for \(?N:RE\).
16381
163822007-06-11 Stefan Monnier <monnier@iro.umontreal.ca>
16383
16384 * term.c: Include intervals.h to declare Fget_text_property.
16385
163862007-06-10 Jason Rumney <jasonr@gnu.org>
16387
16388 * w32fns.c (Fx_file_dialog): Take size from struct not pointer.
16389
163902007-06-08 Juanma Barranquero <lekktu@gmail.com>
16391
16392 * callint.c (Fcall_interactively):
16393 * editfns.c (Fdelete_and_extract_region):
16394 * fileio.c (Fread_file_name):
16395 * fns.c (Fmapconcat):
16396 * keyboard.c (cmd_error_internal):
16397 * keymap.c (Fkey_description):
16398 * lread.c (openp):
16399 * minibuf.c (read_minibuf):
16400 * search.c (wordify):
16401 * sunfns.c (sel_read):
16402 * xdisp.c (Fformat_mode_line, syms_of_xdisp):
16403 * xfns.c (x_default_scroll_bar_color_parameter):
16404 * xmenu.c (menu_help_callback):
16405 * xselect.c (Fx_get_atom_name):
16406 * xterm.c (x_term_init): Use empty_unibyte_string.
16407
164082007-06-08 Dmitry Antipov <dmantipov@yandex.ru> (tiny change)
16409
16410 * alloc.c (init_strings): Initialize canonical empty strings.
16411 (make_uninit_string, make_uninit_multibyte_string): Return appropriate
16412 canonical empty string when the requested size is 0.
16413
16414 * emacs.c (empty_unibyte_string): Rename from empty_string.
16415 (empty_multibyte_string): New canonical empty string.
16416 (syms_of_emacs): Don't initialize empty_string.
16417
16418 * lisp.h (STRING_SET_UNIBYTE): Return the canonical empty unibyte
16419 string, if appropriate.
16420 (empty_unibyte_string, empty_multibyte_string): New externs.
16421 (empty_string): Remove extern.
16422
16423 * lread.c (syms_of_lread): Use empty_unibyte_string.
16424
164252007-06-07 Jason Rumney <jasonr@gnu.org>
16426
16427 * s/ms-w32.h: Don't define HAVE_TZNAME.
16428
16429 * editfns.c (Fcurrent_time_zone): Remove hack for Japanese Windows.
16430
164312007-06-07 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
16432
16433 * mac.c (xrm_get_preference_database): Remove BLOCK_INPUT.
16434
16435 * macfns.c (mac_get_window_bounds): Move extern to macterm.h.
16436 (compute_tip_xy) [TARGET_API_MAC_CARBON]: Use GetGlobalMouse.
16437
16438 * macmenu.c [TARGET_API_MAC_CARBON] (menu_target_item_handler):
16439 Don't call next handler.
16440 [TARGET_API_MAC_CARBON] (install_menu_target_item_handler):
16441 Remove argument. Install handler to application.
16442 (set_frame_menubar): Don't change deep_p.
16443 (mac_menu_show): Use FRAME_OUTER_TO_INNER_DIFF_X and
16444 FRAME_OUTER_TO_INNER_DIFF_Y.
16445 (DIALOG_BUTTON_COMMAND_ID_OFFSET, DIALOG_BUTTON_COMMAND_ID_P)
16446 (DIALOG_BUTTON_COMMAND_ID_VALUE, DIALOG_BUTTON_MAKE_COMMAND_ID)
16447 [HAVE_DIALOGS]: New macros.
16448 [HAVE_DIALOGS] (mac_handle_dialog_event, create_and_show_dialog):
16449 Use them.
16450 (fill_menubar) [TARGET_API_MAC_CARBON]: Use CFString.
16451
16452 * macselect.c [MAC_OSX] (install_service_handler): Rename from
16453 init_service_handler. All callers changed. Return OSStatus value.
16454
16455 * macterm.c (mac_begin_cg_clip): New arg F. Call SetPortWindowPort.
16456 All callers changed so as not to call SetPortWindowPort.
16457 (mac_begin_cg_clip) [USE_CG_DRAWING]: Call mac_prepare_for_quickdraw.
16458 (mac_draw_image_string_atsui) [USE_ATSUI]: New function created from
16459 mac_draw_string_common.
16460 (mac_draw_image_string_qd): Likewise.
16461 (mac_draw_string_common): Use them. Add INLINE.
16462 (XTmouse_position, x_scroll_bar_report_motion) [TARGET_API_MAC_CARBON]:
16463 Use FRAME_OUTER_TO_INNER_DIFF_X, FRAME_OUTER_TO_INNER_DIFF_Y, and
16464 GetGlobalMouse.
16465 (x_set_mouse_pixel_position) [MAC_OSX]: Use FRAME_OUTER_TO_INNER_DIFF_X
16466 and FRAME_OUTER_TO_INNER_DIFF_Y.
16467 [TARGET_API_MAC_CARBON] (mac_handle_mouse_event): Likewise.
16468 [USE_MAC_TSM] (mac_handle_text_input_event): Likewise.
16469 (x_make_frame_visible) [TARGET_API_MAC_CARBON]: Move code for
16470 repositioning window to mac_handle_window_event.
16471 (x_make_frame_invisible) [TARGET_API_MAC_CARBON]: Move code for
16472 saving window location to mac_handle_window_event
16473 [USE_MAC_FONT_PANEL] (mac_show_hide_font_panel): Install handler here.
16474 (install_menu_target_item_handler): Remove argument in extern.
16475 [TARGET_API_MAC_CARBON] (mac_event_to_emacs_modifiers):
16476 Also accept command events.
16477 (do_keystroke): New function created from XTread_socket.
16478 (init_command_handler): Remove functions.
16479 [TARGET_API_MAC_CARBON] (mac_handle_window_event): Reposition window
16480 and save window location by kEventWindowShowing and kEventWindowHiding
16481 handlers here. Don't call next handler for window state change and
16482 focus events.
16483 (mac_handle_application_event, mac_handle_keyboard_event)
16484 [TARGET_API_MAC_CARBON]: New functions.
16485 (install_window_handler) [TARGET_API_MAC_CARBON]: Register handlers for
16486 kEventWindowShowing and kEventWindowHiding events. Move installation
16487 of mouse, font, text input and menu target item handlers to
16488 install_application_handler.
16489 (install_application_handler) [TARGET_API_MAC_CARBON]: New function.
16490 (mac_handle_cg_display_reconfig) [MAC_OS_X_VERSION_MAX_ALLOWED >= 1030]:
16491 New function.
16492 (init_dm_notification_handler) [MAC_OS_X_VERSION_MAX_ALLOWED >= 1030]:
16493 Register it.
16494 (XTread_socket) [TARGET_API_MAC_CARBON]:
16495 Consolidate SendEventToEventTarget calls.
16496 Use FRAME_OUTER_TO_INNER_DIFF_X and FRAME_OUTER_TO_INNER_DIFF_Y.
16497 Move application activation handler to mac_handle_application_event.
16498 Move keyboard handler to mac_handle_keyboard_event.
16499 (XTread_socket) [!TARGET_API_MAC_CARBON]: Use do_keystroke.
16500 (mac_initialize) [TARGET_API_MAC_CARBON]: Don't call
16501 init_command_handler. Call install_application_handler.
16502
16503 * macterm.h (mac_get_window_bounds): Move extern from macfns.c.
16504 (FRAME_OUTER_TO_INNER_DIFF_X, FRAME_OUTER_TO_INNER_DIFF_Y): New macros.
16505
165062007-06-07 Glenn Morris <rgm@gnu.org>
16507
16508 * emacs.c (main): Use `emacs-copyright' in --version output.
16509
165102007-06-06 Chong Yidong <cyd@stupidchicken.com>
16511
16512 * image.c (xpm_load): Remove spurious call to xpm_init_color_cache.
16513
165142007-06-06 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
16515
16516 * macfns.c (mac_window): Replace WindowPtr with WindowRef.
16517
16518 * macgui.h: Replace WindowPtr with WindowRef.
16519
16520 * macmenu.c: Replace MenuHandle and GetMenuHandle with MenuRef and
16521 GetMenuRef, respectively. Replace WindowPtr with WindowRef.
16522 Replace ControlHandle with ControlRef.
16523 (install_menu_quit_handler): Rename arg MENU_HANDLE to ROOT_MENU.
16524
16525 * macterm.c: Replace MenuHandle and GetMenuHandle with MenuRef and
16526 GetMenuRef, respectively. Replace WindowPtr with WindowRef.
16527 Replace ControlHandle with ControlRef.
16528 (USE_CARBON_EVENTS): Remove. Use TARGET_API_MAC_CARBON instead.
16529 [MAC_OS8] (do_get_menus): Rename variable `menu_handle' to `menu'.
16530
16531 * macterm.h (struct scroll_bar): Rename member control_handle_low
16532 and control_handle_high to control_ref_low and control_ref_high.
16533 All uses changed.
16534 (SCROLL_BAR_CONTROL_REF, SET_SCROLL_BAR_CONTROL_REF): Rename from
16535 SCROLL_BAR_CONTROL_HANDLE and SET_SCROLL_BAR_CONTROL_HANDLE,
16536 respectively. All uses changed.
16537 (XCreatePixmap, XCreatePixmapFromBitmapData, XSetWindowBackground)
16538 (install_window_handler, remove_window_handler): Replace WindowPtr
16539 with WindowRef in externs.
16540
165412007-06-05 Juanma Barranquero <lekktu@gmail.com>
16542
16543 * xfaces.c (Finternal_lisp_face_p): Signal error for face alias loops.
16544
165452007-06-03 Nick Roberts <nickrob@snap.net.nz>
16546
16547 * keyboard.c (discard_mouse_events): Add GPM_CLICK_EVENT case.
16548
16549 * frame.c (Fmouse_position, Fmouse_pixel_position):
16550 Condition on HAVE_GPM too.
16551
16552 * term.c (term_mouse_highlight): Remove unused variables.
16553 (Fterm_open_connection): Set gpm_zerobased to 1.
16554 (term_mouse_movement, term_mouse_click, handle_one_term_event):
16555 Use zero based co-ordinates.
16556 (handle_one_term_event): Report a drag as mouse movement too.
16557
16558 * Makefile.in (MOUSE_SUPPORT): Define for HAVE_GPM.
16559
165602007-06-03 Chong Yidong <cyd@stupidchicken.com>
16561
16562 * image.c (search_image_cache): New function. Require background
16563 color match if background color is unspecified in the image spec.
16564 (uncache_image, lookup_image): Use it.
16565
165662007-06-01 Juanma Barranquero <lekktu@gmail.com>
16567
16568 * window.c (Fshrink_window): Reflow docstring.
16569
165702007-06-02 Chong Yidong <cyd@stupidchicken.com>
16571
16572 * Version 22.1 released.
16573
165742007-06-01 Richard Stallman <rms@gnu.org>
16575
16576 * xfns.c (x_encode_text): Add GCPRO.
16577
165782007-06-01 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
16579
16580 * xfns.c (x_set_name_internal): Save encoded name before
16581 x_encode_text in case string data is relocated.
16582
165832007-05-31 Richard Stallman <rms@gnu.org>
16584
16585 * buffer.c (syms_of_buffer): Doc fix.
16586
165872007-05-30 Nick Roberts <nickrob@snap.net.nz>
16588
16589 * sysdep.c (init_sys_modes): Add rather than replace with
16590 O_NONBLOCK.
16591
16592 * frame.c [HAVE_GPM] (Fset_mouse_pixel_position): Add call to
16593 term_mouse_moveto.
16594
16595 * termhooks.h (term_mouse_moveto): New extern.
16596
16597 * term.c (mouse_face_window): Rename...
16598 (Qmouse_face_window): ...to this.
16599 (term_show_mouse_face, term_clear_mouse_face)
16600 (term_mouse_highlight): Use Qmouse_face_window.
16601 (term_mouse_moveto): New function.
16602 (term_mouse_position): Make it work.
16603 (syms_of_term): Uncomment assignment to mouse_position_hook.
16604 Staticpro Qmouse_face_window.
16605
166062007-05-28 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
16607
16608 * xdisp.c (redisplay_internal): Bind inhibit-point-motion-hooks to t
16609 around current_column call.
16610
166112007-05-26 Dan Nicolaescu <dann@ics.uci.edu>
16612
16613 * xfaces.c (syms_of_xfaces): Delete stray semicolon.
16614 * xdisp.c (next_element_from_buffer):
16615 * window.c (delete_window):
16616 * term.c (term_mouse_highlight):
16617 * msdos.c (getdefdir):
16618 * macterm.c (mac_create_bitmap_from_bitmap_data)
16619 (init_font_name_table):
16620 * fns.c (Fsxhash):
16621 * data.c (Fmake_local_variable):
16622 * ccl.c (ccl_driver): Likewise.
16623
166242007-05-24 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
16625
16626 * macterm.c [USE_CARBON_EVENTS] (mac_handle_window_event):
16627 Call mac_wakeup_from_rne on window size change.
16628
166292007-05-25 Chong Yidong <cyd@stupidchicken.com>
16630
16631 * image.c (uncache_image): Fix typo.
16632
166332007-05-23 Johannes Weiner <hannes@saeurebad.de> (tiny change)
16634
16635 * keyboard.c (make_lispy_movement): Condition on HAVE_GPM too.
16636
166372007-05-22 Richard Stallman <rms@gnu.org>
16638
16639 * xterm.c (x_connection_closed): Remove NO_RETURN.
16640
166412007-05-22 Martin Rudalics <rudalics@gmx.at>
16642
16643 * syntax.c (scan_words): Fix arg to UPDATE_SYNTAX_TABLE_BACKWARD.
16644
166452007-05-21 Chong Yidong <cyd@stupidchicken.com>
16646
16647 * image.c (uncache_image): New function.
16648 (Fimage_refresh): New function.
16649
166502007-05-20 Jan Djärv <jan.h.d@swipnet.se>
16651
16652 * Makefile.in: Move GPM check outside HAVE_X_WINDOWS.
16653
166542007-05-20 Nick Roberts <nickrob@snap.net.nz>
16655
16656 * config.in, keyboard.c, Makefile.in, sysdep.c, term.c,
16657 * termhooks.h: Use HAVE_GPM instead of HAVE_GPM_H.
16658
166592007-05-20 Nick Roberts <nickrob@snap.net.nz>
16660
16661 * keyboard.c (make_lispy_event): Make case GPM_CLICK_EVENT
16662 conditional on [HAVE_GPM_H].
16663
166642007-05-19 Stefan Monnier <monnier@iro.umontreal.ca>
16665
16666 * syntax.c (skip_chars): Update syntax-table only after we checked that
16667 the new location is valid.
16668
166692007-05-19 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
16670
16671 * macterm.c (x_calc_absolute_position): Add BLOCK_INPUT around
16672 mac_get_window_bounds.
16673
166742007-05-20 Nick Roberts <nickrob@snap.net.nz>
16675
16676 * Makefile.in (LIBGPM): Allow it to be set from configure.
16677 If set then link Emacs with it.
16678
16679 * config.in: Regenerate.
16680
16681 * lisp.h (add_gpm_wait_descriptor, delete_gpm_wait_descriptor):
16682 New externs.
16683
16684 * termhooks.h [HAVE_GPM_H] (enum event_kind): Add GPM_CLICK_EVENT.
16685 Include gpm.h.
16686 (handle_one_term_event, term_gpm): New externs.
16687
16688 * sysdep.c [HAVE_GPM_H] (init_sys_modes): Make gpm_fd nonblocking
16689 and allow it to be interrupted by SIGIO.
16690
16691 * process.c (gpm_wait_mask, max_gpm_desc): New variables.
16692 (wait_reading_process_output): Wait on gpm_fd too.
16693 (add_gpm_wait_descriptor, delete_gpm_wait_descriptor)): New functions.
16694 (add_gpm_wait_descriptor_called_flag): New variable.
16695 (delete_keyboard_wait_descriptor): Check gpm_wait_mask.
16696
16697 * keyboard.c [HAVE_GPM_H] (Qmouse_fixup_help_message)
16698 (make_lispy_movement, tracking_off, Ftrack_mouse, some_mouse_moved)
16699 (show_help_echo, readable_events, kbd_buffer_get_event, init_keyboard):
16700 Extend HAVE_MOUSE ifdefs to HAVE_GPM_H.
16701 (make_lispy_event): Add case GPM_CLICK_EVENT.
16702 (read_avail_input): Handle mouse input.
16703
16704 * term.c (write_glyphs_with_face): New function.
16705 [HAVE_GPM_H]: Include buffer.h, sys/fcntl.h.
16706 (mouse_face_beg_row, mouse_face_beg_col, mouse_face_end_row)
16707 (mouse_face_end_col, mouse_face_past_end, mouse_face_window)
16708 (mouse_face_face_id, term_gpm, pos_x, pos_y)
16709 (last_mouse_x, last_mouse_y): New variables.
16710 (term_show_mouse_face, term_clear_mouse_face, fast_find_position)
16711 (term_mouse_highlight, term_mouse_movement, term_mouse_position)
16712 (term_mouse_click, handle_one_term_event, Fterm_open_connection)
16713 (Fterm_close_connection): New functions.
16714 (term_init): Initialise mouse_face_window.
16715
167162007-05-19 Chong Yidong <cyd@stupidchicken.com>
16717
16718 * xdisp.c (redisplay_window): If first window line is a
16719 continuation line, recompute the new window start instead of
16720 recentering.
16721
167222007-05-18 Glenn Morris <rgm@gnu.org>
16723
16724 * m/alpha.h (ORDINARY_LINK): No longer define on OpenBSD.
16725 Suggested by Alfred M. Szmidt <ams@gnu.org>.
16726
167272007-05-17 Glenn Morris <rgm@gnu.org>
16728
16729 * m/macppc.h (ORDINARY_LINK): No longer define on OpenBSD.
16730
167312007-05-16 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
16732
16733 * macterm.c [USE_CARBON_EVENTS] (mac_convert_event_ref): Also convert
16734 dead key repeat and up events.
16735
167362007-05-14 Chong Yidong <cyd@stupidchicken.com>
16737
16738 * image.c (pbm_load): Check image size for monochrome pbm.
16739
167402007-05-13 Chong Yidong <cyd@stupidchicken.com>
16741
16742 * xterm.c (XTread_socket): Revert last change.
16743
167442007-05-12 Chong Yidong <cyd@stupidchicken.com>
16745
16746 * image.c (pbm_load): Correctly check image size for greyscale pbm.
16747
16748 * xterm.c (XTread_socket): Yet Another Uncaught X Error Crash (YAUXEC).
16749
167502007-05-07 Stefan Monnier <monnier@iro.umontreal.ca>
16751
16752 * editfns.c (Ftranspose_regions): Yet another int/Lisp_Object
16753 mixup (YAILOM).
16754
167552007-05-07 Andreas Schwab <schwab@suse.de>
16756
16757 * keymap.c (Flookup_key): Fix typo in last change.
16758
167592007-05-07 Stefan Monnier <monnier@iro.umontreal.ca>
16760
16761 * keymap.c (Fdefine_key, Flookup_key): Only do the 0x80->meta_modifier
16762 mapping for unibyte strings.
16763
167642007-05-01 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
16765
16766 * macmenu.c (mac_dialog_show): Apply 2007-04-27 change for xmenu.c.
16767 (Fx_popup_dialog) [MAC_OSX]: Likewise.
16768
167692007-04-29 Richard Stallman <rms@gnu.org>
16770
16771 * insdel.c (replace_range): For undo, record insertion first.
16772
167732007-04-29 Andreas Schwab <schwab@suse.de>
16774
16775 * lisp.h (VECSIZE): Use OFFSETOF.
16776
167772007-04-29 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
16778
16779 * xdisp.c (try_window_reusing_current_matrix): Fix number of
16780 disabled lines.
16781
167822007-04-28 Richard Stallman <rms@gnu.org>
16783
16784 * lread.c (read_escape): In a string, \s is always space.
16785
167862007-04-27 Jan Djärv <jan.h.d@swipnet.se>
16787
16788 * xmenu.c (xdialog_show): Call Fredisplay before showing the dialog.
16789
16790 * gtkutil.c (xg_update_menubar, create_menus): Create empty
16791 submenu for menu bar items.
16792
16793See ChangeLog.10 for earlier changes.
16794
16795;; Local Variables:
16796;; coding: utf-8
16797;; add-log-time-zone-rule: t
16798;; bug-reference-url-format: "http://emacsbugs.donarmstrong.com/cgi-bin/bugreport.cgi?bug=%s"
16799;; End:
16800
16801 Copyright (C) 2007, 2008 Free Software Foundation, Inc.
16802
16803 This file is part of GNU Emacs.
16804
16805 GNU Emacs is free software: you can redistribute it and/or modify
16806 it under the terms of the GNU General Public License as published by
16807 the Free Software Foundation, either version 3 of the License, or
16808 (at your option) any later version.
16809
16810 GNU Emacs is distributed in the hope that it will be useful,
16811 but WITHOUT ANY WARRANTY; without even the implied warranty of
16812 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
16813 GNU General Public License for more details.
16814
16815 You should have received a copy of the GNU General Public License
16816 along with GNU Emacs. If not, see <http://www.gnu.org/licenses/>.
16817
16818;; arch-tag: dfb6ad96-1550-4905-9e53-d2059ee84c40