(read-file-name): Treat confirm options to
[bpt/emacs.git] / src / ChangeLog
CommitLineData
1586503c
AR
12009-07-29 Adrian Robert <Adrian.B.Robert@gmail.com>
2
3 * nsfont.m (ns_findfonts): Fix 2009-07-24 change to return only one
4 element, not a list, for match case.
5
087048cd
KH
62009-07-28 Kenichi Handa <handa@m17n.org>
7
8 * font.c (font_parse_xlfd): Check DPI and AVGWIDTH properties more
9 rigidly.
10
11 * xfont.c (xfont_list_pattern): Don't ignore the return value of
12 font_parse_xlfd. Check font properties more rigidly.
13
780c2506
DN
142009-07-27 Dan Nicolaescu <dann@ics.uci.edu>
15
16 * s/netbsd.h (SIGNALS_VIA_CHARACTERS): Remove, already defined in bsd-common.h
17
a8c0cc18
KH
182009-07-27 Kenichi Handa <handa@m17n.org>
19
20 * xfaces.c (face_with_height): Call font_clear_prop.
21
4fbe2306
CY
222009-07-26 Chong Yidong <cyd@stupidchicken.com>
23
111d9af3
CY
24 * dispnew.c (init_display): Use Qx, Qw32, and Qns.
25
26 * xterm.c (x_term_init): Use Qx.
27
4fbe2306
CY
28 * nsfont.m (nsfont_draw): Revert 2009-07-15 change.
29
30 * nsterm.m (ns_maybe_dumpglyphs_background): Revert 2009-07-15
31 change.
32 (ns_get_color): Revert 2009-07-16 change.
33
beb0b7f9
EZ
342009-07-25 Eli Zaretskii <eliz@gnu.org>
35
36 * lread.c (syms_of_lread) <force_load_messages>: New variable.
37 (Fload): Use it to force load messages, even if NOMESSAGES is
38 non-nil.
39
2baf5e76
KR
402009-07-25 Ken Raeburn <raeburn@raeburn.org>
41
8890e5f5
KR
42 * coding.h (decode_coding_string, encode_coding_string): Use
43 SCHARS macro.
44
2baf5e76
KR
45 * lread.c: Rewrite 2009-07-21 changes.
46 (load_depth): Deleted.
47 (Qload_in_progress): New variable.
48 (load_unwind): Don't reference load_depth or load_in_progress.
49 (Fload): Likewise; specbind Qload_in_progress instead.
50 (init_lread): Don't initialize load_depth.
51 (syms_of_lread): Initialize and protect Qload_in_progress.
52
1395c6f5
AR
532009-07-24 Adrian Robert <Adrian.B.Robert@gmail.com>
54
55 * nsfont.m (ns_findfonts): Correctly return fallback in match case.
56
4e2f36cf
AR
572009-07-23 Yavor Doganov <yavor@gnu.org>
58
59 * nsfont.m (NSFontDescriptor.h): Explicitly include under GNUstep.
60
5dd9a6f7
AR
612009-07-23 Adrian Robert <Adrian.B.Robert@gmail.com>
62
63 * nsterm.m (EmacsView-keyUp:): Only act when running under Tiger.
7f6ad209
AR
64 Bugs 3792, 3720, 2402.
65 (ns_lookup_indexed_color): Check for bad index.
66 (ns_index_color): Init unused slot to 0.
67 (ns_dumpglyphs_box_or_relief): Replace useless xassert with an if().
68 Bug 3714, possibly 3082.
5dd9a6f7 69
c902b920
JR
702009-07-22 Jason Rumney <jasonr@gnu.org>
71
72 * w32fns.c (w32_wnd_proc) [WM_IME_STARTCOMPOSITION]: Position
73 IME window at cursor (Bug#2570).
74 (w32_wnd_proc) [WM_IME_CHAR]: Release context when finished.
75 (globals_of_w32fns): Dynamically load functions required above.
76
77 * w32term.c (w32_draw_window_cursor): Send message to reposition
78 any IME window.
79
090101cf
CY
802009-07-21 Chong Yidong <cyd@stupidchicken.com>
81
82 * fileio.c: Revert 2009-07-16 changes.
83 (Vauto_save_include_big_deletions): New variable.
84 (Fdo_auto_save): Disable auto-save only if
85 auto-save-include-big-deletions is nil.
86
e6583e3d
CY
872009-07-21 Chong Yidong <cyd@stupidchicken.com>
88
89 * xdisp.c (move_it_to): For continued lines ending in a tab, take
90 the overflowed pixels into account (Bug#3879).
91
ece435a5
KR
922009-07-21 Ken Raeburn <raeburn@raeburn.org>
93
94 * lread.c (load_depth): New variable.
95 (Fload, load_unwind, init_lread): Set it to the load recursion
96 depth; set load_in_progress as a simple boolean based on the
97 current load_depth. (Bug#3892)
98
40b2d973
AR
992009-07-20 Adrian Robert <Adrian.B.Robert@gmail.com>
100
101 * nsfont.m (ns_has_attribute): Remove.
102 (ns_findfonts, nsfont_open): Use ns_attribute_fvalue() instead.
103
10be7e0d
JL
1042009-07-18 Juri Linkov <juri@jurta.org>
105
106 * process.c (Fset_process_query_on_exit_flag): Mention killing
107 a buffer in docstring.
108
fa055055
KH
1092009-07-17 Kenichi Handa <handa@m17n.org>
110
111 * casetab.c (shuffle): Fix the logic of setting up the cycle.
112
042f7b69
YM
1132009-07-16 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
114
115 * nsfns.m (Fns_set_alpha): Remove function.
116 (syms_of_nsfns): Don't defsubr it.
117
118 * nsterm.m (ns_get_color): Remove incompatible color formats.
119 (ns_color_to_lisp): Generate #rrggbb color format string.
120
4be941e3
RS
1212009-07-16 Richard Stallman <rms@gnu.org>
122
123 * fileio.c (Fwrite_region, Fdo_auto_save): Handle save_length = -2.
124 (Fset_buffer_auto_saved): Handle save_length = -2.
125
4e6b227d
CY
1262009-07-16 Chong Yidong <cyd@stupidchicken.com>
127
128 * xterm.c (Qx_gtk_map_stock): New var.
129
130 * gtkutil.c (update_frame_tool_bar): Use Qx_gtk_map_stock instead
131 of calling intern each time.
132
a1856973
YM
1332009-07-15 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
134
135 * nsfont.m (nsfont_draw): Remove code for stippling, which actually
136 does tiling.
137
138 * nsterm.m (ns_maybe_dumpglyphs_background): Likewise.
139
497e54d8
KH
1402009-07-14 Kenichi Handa <handa@m17n.org>
141
72d36834
KH
142 * font.c (font_vconcat_entity_vectors): New function.
143 (struct font_sort_data): New member font_driver_preference.
144 (font_compare): Check font_driver_preference.
145 (font_sort_entities): The format of the first argument changed.
146 (font_delete_unmatched): Likewise.
147 (font_list_entities): The return type changed.
148 (font_select_entity): The format of the second argument changed.
149 (font_find_for_lface): Adjusted for the above changes. Don't
150 suppress the checking of C even if the repertory supports it.
151 (Flist_fonts): Adjusted for the above changes.
152
497e54d8
KH
153 * ftfont.c (ftfont_spec_pattern): New arg langname. Caller
154 changed.
155 (ftfont_list): Adjusted for the change of ftfont_spec_pattern.
156 Reject a font who has adstyle property that is different from a
157 langname derived from registry property.
158 (ftfont_match): Adjusted for the change of ftfont_spec_pattern.
159
b6046155
EZ
1602009-07-13 Eli Zaretskii <eliz@gnu.org>
161
162 * dired.c (directory_files_internal) [WINDOWSNT]: Don't make a
163 local copy of dirfilename.
164
fb6b6049
KH
1652009-07-13 Kenichi Handa <handa@m17n.org>
166
e2402a5e
KH
167 * chartab.c (sub_char_table_ref_and_range): Fix the range check
168 against max_char.
169
fb6b6049
KH
170 * cmds.c (internal_self_insert): Check sym by SYMBOLP before
171 calling XSYMBOL (sym).
172
65156807
EZ
1732009-07-11 Eli Zaretskii <eliz@gnu.org>
174
175 * dired.c (directory_files_internal_w32_unwind) [WINDOWSNT]: New
176 function.
177 (directory_files_internal) [WINDOWSNT]: Bind
178 w32-get-true-file-attributes to either t or nil, depending whether
179 the filesystem of the directory is fast or slow.
180
181 * w32.c (logon_network_drive): Don't assume PATH is an absolute
182 file name.
183 (is_slow_fs): New function.
184 (stat): Use it to determine whether to issue more system calls to
185 get accurate file attributes, when w32-get-true-file-attributes is
186 `local'.
187
e0ab5fcf
JD
1882009-07-10 Jan Djärv <jan.h.d@swipnet.se>
189
190 * xfns.c (Fx_select_font): Remember last font selected in
191 x_last_font_name and use that the next time. Also try the frame
192 parameter font-parameter as default to the font dialog.
193
784ceded
KH
1942009-07-10 Kenichi Handa <handa@m17n.org>
195
196 * xftfont.c (xftfont_open): Fix typo: FC_RGBA->FC_HINT_STYLE.
197
fb8edc0b
EZ
1982009-07-09 Eli Zaretskii <eliz@gnu.org>
199
017dab84
EZ
200 * w32proc.c (syms_of_ntproc) <w32-get-true-file-attributes>: Doc
201 fix.
202
fb8edc0b
EZ
203 * w32.c (stat): Treat UNC file names as residing on remote
204 drives. (Bug#3542)
205
635c75b1
KH
2062009-07-09 Kenichi Handa <handa@m17n.org>
207
208 * fontset.c (fontset_find_font): Fix previous change.
209
c1d5ce94
MA
2102009-07-08 Michael Albinus <michael.albinus@gmx.de>
211
212 * dbusbind.c (xd_initialize, Fdbus_call_method, xd_read_message)
213 (Fdbus_register_signal, Fdbus_register_method): Cleanup memory of
214 error flag.
215
edb61b39
KH
2162009-07-08 Kenichi Handa <handa@m17n.org>
217
374bf7e4
KH
218 * fontset.c (fontset_find_font): Fix the logic of handling
219 charset_matched.
220 (font_for_char): Delete unused var.
221 (generate_ascii_font_name): Delete it.
222
edb61b39
KH
223 * coding.h (JIS_TO_SJIS2): Fix the code range check.
224
225 * coding.c (detect_coding_sjis): Handle shift_jis-2004 correctly.
226 (encode_coding_sjis): Fix the code range check.
227
0f3f018c
CY
2282009-07-07 Chong Yidong <cyd@stupidchicken.com>
229
230 * fileio.c (Fsubstitute_in_file_name, Ffile_name_directory)
231 (Fexpand_file_name): Copy string data properly (Bug#3772).
232
fcaf6f3a
JD
2332009-07-07 Jan Djärv <jan.h.d@swipnet.se>
234
235 * xterm.c (handle_one_xevent): Only call x_check_fullscreen on the
236 first MapNotify.
237
6809ca75
KH
2382009-07-07 Kenichi Handa <handa@m17n.org>
239
240 * character.h (unibyte_has_multibyte_table): Delete extern.
241 (UNIBYTE_CHAR_HAS_MULTIBYTE_P): Delete it.
242
243 * charset.c (Fset_charset_priority): Update charset_unibyte.
244 (syms_of_charset): Initialize charset_unibyte.
245
246 * character.c (unibyte_has_multibyte_table): Delete it.
247 (multibyte_char_to_unibyte): Use CHAR_TO_BYTE8 instead of checking
248 charset_unibyte.
249 (multibyte_char_to_unibyte_safe): Likewise.
250 (Funibyte_char_to_multibyte): Don't check charset_unibyte.
251
252 * xdisp.c (get_next_display_element): Decode it->c by
253 charset_unibyte.
254 (x_produce_glyphs): Likewise.
255
256 * .gdbinit (xcharset): Fix the treating $arg0.
257
ad9e2d54
EZ
2582009-07-04 Eli Zaretskii <eliz@gnu.org>
259
260 Emulation of `getloadavg' on MS-Windows.
261 * w32.c: Include float.h
262 (g_b_init_get_native_system_info, g_b_init_get_system_times)
263 (GetNativeSystemInfo_Proc, GetSystemTimes_Proc): Declare.
264 (get_native_system_info, get_system_times): New functions.
265 (buf_next, buf_prev, sample_system_load, getavg): New subroutines.
266 (getloadavg): Rewrite using GetSystemTimes and GetNativeSystemInfo.
267 (globals_of_w32): Initialize g_b_init_get_native_system_info,
268 g_b_init_get_system_times, and num_of_processors.
269
0a3472c7
JR
2702009-07-03 Jason Rumney <jasonr@gnu.org>
271
272 * w32term.c (w32_initialize): Use standard types.
273
80904120
EZ
2742009-07-03 Eli Zaretskii <eliz@gnu.org>
275
276 * dired.c (Ffile_attributes): Decode user and group names by the
277 locale's encoding. (Bug#3443)
278
6978862d
DN
2792009-07-03 Dan Nicolaescu <dann@ics.uci.edu>
280
f8d23104
DN
281 * sysdep.c (sys_suspend): Remove USG_JOBCTRL #ifdef, unused.
282 (mkdir): Remove MKDIR_PROTOTYPE #ifdef, unused.
283
284 * callproc.c (child_setup): Use #else instead of a separate #ifdef.
285
286 * term.c (init_tty): Remove spurious #ifdef.
287
6978862d
DN
288 * m/mips.h: Mention this file is also used for netbsd.
289 * m/pmax.h: Remove file.
290
e044e4fc
JD
2912009-07-03 Jan Djärv <jan.h.d@swipnet.se>
292
293 * xterm.h (struct x_display_info): Add invisible_cursor.
294 (struct x_output): Add current_cursor.
295
296 * xterm.c (XTtoggle_invisible_pointer): New function.
297 (x_define_frame_cursor): Don't define cursor if invisible or the
298 same as before. Set current_cursor.
299 (x_create_terminal): Set toggle_invisible_pointer_hook.
300
301 * xfns.c (make_invisible_cursor): New function.
302 (x_set_mouse_color): Call make_invisible_cursor.
303 Set current_cursor.
304 (x_window): Set current_cursor.
305
306 * termhooks.h (struct terminal): Add toggle_invisible_pointer_hook.
307
308 * keyboard.c (command_loop_1): Call frame_make_pointer_invisible after
309 inserting a character.
310 (read_avail_input): Call frame_make_pointer_visible.
311
312 * frame.c (Vmake_pointer_invisible): New variable.
313 (frame_make_pointer_invisible, frame_make_pointer_visible): New
314 functions.
315 (syms_of_frame): DEFVAR make-pointer-invisible, initialize to Qt.
316
317 * frame.h: Declare frame_make_pointer_invisible and
318 frame_make_pointer_visible.
319 (struct frame): Add pointer_invisible.
320
574c8efa
JD
3212009-07-02 Jan Djärv <jan.h.d@swipnet.se>
322
7b507248
JD
323 * gtkutil.c (xg_frame_set_char_size): Do set width/height if the
324 frame isn't visible.
325 (xg_frame_resized): If width/height is -1, get size of window
326 from X server.
327
328 * xterm.c (handle_one_xevent): Call xg_frame_resized for USE_GTK
329 for MapNotify.
330
835bdaa7
JD
331 * gtkutil.c (xg_frame_set_char_size): Do not set pixel width/height
332 here or call change_frame_size. Just call flush_and_sync.
333 (flush_and_sync): Reintroduced.
574c8efa 334
3f1c6666 3352009-07-01 Jan Djärv <jan.h.d@swipnet.se>
69b16610 336
acd51077
JD
337 * xterm.h (struct x_display_info): Add Xatom_net_wm_state_sticky
338
339 * xterm.c (x_handle_net_wm_state): Also look for sticky.
340 (x_term_init): Initialize Xatom_net_wm_state_sticky.
341
342 * frame.h: Declare Qsticky.
343
cad9ef74
JD
344 * w32fns.c (w32_frame_parm_handlers): Set 0 for sticky.
345
346 * nsfns.m (ns_frame_parm_handlers): Ditto.
347
348 * frame.c: Declare Qsticky.
349 (frame_parms): Add sticky.
350
351 * xfns.c (x_frame_parm_handlers): Let x_set_sticky handle sticky.
352
353 * xterm.h: Declare x_set_sticky.
354
355 * xterm.c (x_set_sticky): New function.
356
69b16610
JD
357 * gtkutil.c (xg_tool_bar_proxy_help_callback): New function.
358 (xg_tool_bar_menu_proxy): Attach enter/leave events to
359 xg_tool_bar_proxy_help_callback.
3f1c6666
JD
360
361 * emacs.c (USAGE3, standard_args): Add -mm and --maximized.
362
363 * frame.c: Qmaximized is new.
364 (x_set_frame_parameters): Do not handle fullscreen specially.
365 Only set width and height if explicitly set.
366 (x_set_fullscreen): Handle Qmaximized.
367 (x_set_font, x_figure_window_size): Do not handle fullscreen specially.
368 (syms_of_frame): Initialize Qmaximized.
369
370 * frame.h (fullscreen_type): Add FULLSCREEN_MAXIMIZED. Declare
371 Qfullwidth, Qfullheight, Qfullboth, Qmaximized.
372
373 * xterm.c (handle_one_xevent): Remove call to x_check_fullscreen
374 for Expose event. Add call to x_check_fullscreen for MapNotify event.
375 Remove all code w.r.t. fullscreen from ConfigureNotify event. Do not
376 set gravity to NorthWestGravity when USE_GTK.
377 (set_wm_state): New function.
378 (do_ewmh_fullscreen): Use set_wm_state. Also handle FULLSCREEN_MAXIMIZED.
379 (x_handle_net_wm_state): Handle FULLSCREEN_MAXIMIZED.
380 (x_check_fullscreen): Simplify so we only handle EMWH type of fullscreen
381 or the case when no window manager is running. That means remove calls
382 to x_real_positions and x_fullscreen_adjust.
383
384 * gtkutil.c (flush_and_sync, x_wm_size_hint_off): Remove.
385 (xg_frame_set_char_size): Remove calls to x_wm_size_hint_off and
386 flush_and_sync.
387 (xg_height_changed): New function.
388 (xg_create_frame_widgets): Remove call to gtk_widget_set_size_request
389 and gtk_window_set_policy. Set frame gravity after parsing the geometry
390 string.
391 (xg_update_frame_menubar, free_frame_menubar)
392 (xg_tool_bar_detach_callback, xg_tool_bar_attach_callback)
393 (update_frame_tool_bar, free_frame_tool_bar): Call xg_height_changed.
394 Remove calls to xg_frame_set_char_size.
395
fd503d99
KH
3962009-07-01 Kenichi Handa <handa@m17n.org>
397
398 * keyboard.c (decode_keyboard_code): New function.
399 (tty_read_avail_input): Decode the input bytes if necessary.
400
401 * coding.c (setup_coding_system): Initialize
402 coding->carryover_bytes to 0.
403 (Fset_keyboard_coding_system_internal): If CODING-SYSTEM is nil,
404 use Qno_conversion.
405
24ed93fb
YM
4062009-07-01 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
407
408 * Makefile.in (SOME_MACHINE_LISP): Add ../lisp/term/common-win.elc.
409
99061dfc
CY
4102009-06-30 Chong Yidong <cyd@stupidchicken.com>
411
412 * xftfont.c (xftfont_open): Avoid passing NULL argument to
413 XftLockFace.
414
ff90fbde
JR
4152009-06-30 Jason Rumney <jasonr@gnu.org>
416
417 * w32term.c (w32_initialize): Use GetModuleHandle for library that
418 is already loaded.
419 Set user model ID if supported (bug#1849).
420
5f445726
JM
4212009-06-29 Jim Meyering <meyering@redhat.com>
422
423 Remove useless if-before-xfree test.
424 * nsfont.m (nsfont_close): Remove useless test.
425 * term.c (delete_tty): Likewise.
426 * w32.c (system_process_attributes): Likewise.
427 * w32font.c (w32font_close): Likewise.
428 * xfaces.c (x_free_gc): Likewise.
429 * xselect.c (buffer): Likewise.
430
b9607587
AS
4312009-06-28 Andreas Schwab <schwab@linux-m68k.org>
432
433 * process.c (send_process): Keep decoded string in a local
434 variable and protect it from GC. (Bug#3521)
435
89ba96f4
EZ
4362009-06-28 Eli Zaretskii <eliz@gnu.org>
437
438 * term.c (create_tty_output) [MSDOS]: #ifdef away.
439 (tty_free_frame_resources) [MSDOS]: Add a DOS-specific version.
440
098a1589
CY
4412009-06-28 Chong Yidong <cyd@stupidchicken.com>
442
485422be
CY
443 * xdisp.c (start_display, handle_face_prop)
444 (move_it_vertically_backward, cursor_row_fully_visible_p)
445 (redisplay_window, try_window_id, produce_image_glyph): Delete
446 some #ifdef-ed out code chunks that are now obsolete.
447
098a1589
CY
448 * xterm.c (x_update_window_begin, x_new_focus_frame)
449 (x_scroll_bar_handle_click, handle_one_xevent)
450 (handle_one_xevent, XTread_socket, x_focus_on_frame)
451 (x_make_frame_visible, x_make_frame_invisible)
452 (x_wm_set_icon_pixmap, x_initialize): Delete some #ifdef-ed out
453 code chunks that are now obsolete.
454
78c38319
MA
4552009-06-28 Michael Albinus <michael.albinus@gmx.de>
456
457 * dbusbind.c (XD_SYMBOL_TO_DBUS_TYPE): Convert macro into function
458 xd_symbol_to_dbus_type. With Solaris 2.11, it was said to compile
459 for hours, when optimzation is enabled.
460 (xd_signature, xd_append_arg, xd_retrieve_arg, xd_initialize)
461 (xd_read_message): Make them static.
462
4189ed40
CY
4632009-06-27 Chuck Blake <cblake@pdos.csail.mit.edu> (tiny change)
464
465 * term.c (turn_on_face): Allow simultaneously bold and dim
466 terminal faces (Bug#3530).
467
cd9b5e16
CY
4682009-06-27 Chong Yidong <cyd@stupidchicken.com>
469
4e23bedb
CY
470 * frame.c (x_get_arg): Check if dpyinfo is non-NULL.
471
cd9b5e16
CY
472 * xdisp.c (mouse_face_from_buffer_pos): Fix detection of
473 truncation glyphs (Bug#3686).
474
07cc3c35
GM
4752009-06-27 Glenn Morris <rgm@gnu.org>
476
477 * m/pmax.h: Restore file, with only netbsd portions.
478
25c5550f
DR
4792009-06-26 David Reitter <david.reitter@gmail.com>
480
cd9b5e16 481 * nsterm.m (keydown): Avoid infinite loop.
25c5550f 482
42d4a64f
KH
4832009-06-26 Peter Jolly <peter@jollys.org> (tiny change)
484
485 * ftfont.c (get_adstyle_property): Call font_intern_prop with 1 as
486 the arg FORCE_SYMBOL.
487
930fe55b 4882009-06-25 Kenichi Handa <handa@m17n.org>
a71ccf3a
KH
489
490 * fontset.c (fontset_find_font): When a usable rfont_def is found
491 in a fallback font-group, make it the first element of the group.
492
57ebc3fd
CY
4932009-06-24 Chong Yidong <cyd@stupidchicken.com>
494
495 * emacs-icon.h: Always define gnu_xpm_bits on GTK (bug#3671).
496
f084f942
KH
4972009-06-24 Kenichi Handa <handa@m17n.org>
498
499 * fontset.c (fontset_get_font_group): Return 0 if no font-group is
500 set for C.
501 (fontset_font): Record the availability of a font for C both in
502 the realized fontsets of the current one and the default one.
503
2f686c87
DN
5042009-06-23 Dan Nicolaescu <dann@ics.uci.edu>
505
506 * sysdep.c (child_setup_tty): Remove SIGNALS_VIA_CHARACTERS
507 conditional, it is always defined on AIX.
508
666e158e
MB
5092009-06-23 Miles Bader <miles@gnu.org>
510
511 * window.c (Vrecenter_redisplay): New variable.
512 (syms_of_window): Initialize it.
513 (Qtty): New extern declaration.
514 (Frecenter): Only do redisplay if Vrecenter_redisplay requests it.
515
c6da7cd2
JM
5162009-06-23 Jim Meyering <meyering@redhat.com>
517
632c2030
CY
518 * src/ftfont.c (setup_otf_gstring, ftfont_shape_by_flt): Use
519 xmalloc and xrealloc (not malloc and realloc), so subsequent heap
520 pointer dereferences are guaranteed to be valid.
c6da7cd2 521
678dca3d
KH
5222009-06-23 Kenichi Handa <handa@m17n.org>
523
74d75424
KH
524 * emacs.c (main): Call init_font ().
525
526 * font.h (Vfont_log): Extern it.
527 (FONT_ADD_LOG, FONT_DEFERRED_LOG): New macros.
528
529 * font.c (font_sort_entities, font_list_entities)
530 (font_matching_entity, font_open_entity)
531 (font_close_object): Change font_add_log to FONT_ADD_LOG.
532 (Vfont_log): Delete static.
533 (font_log_env_checked): Delete this variable.
534 (font_add_log): Don't check font_log_env_checked.
535 (font_deferred_log): Check Vfont_log.
536 (init_font): New function.
537
678dca3d
KH
538 * ftfont.c: Change font_add_log to FONT_ADD_LOG.
539
540 * w32font.c: Change font_add_log to FONT_ADD_LOG.
541
542 * w32uniscribe.c: Change font_add_log to FONT_ADD_LOG.
543
544 * xfont.c: Change font_add_log to FONT_ADD_LOG.
545
546 * fontset.c (fontset_font): Call FONT_DEFERRED_LOG.
547 (face_for_char): Don't call font_deferred_log here.
548 (font_for_char): Likewise.
549
8a668709
CY
5502009-06-22 Chong Yidong <cyd@stupidchicken.com>
551
9a01ee33
CY
552 * w32term.c (x_draw_glyph_string): Use the glyph string's width
553 rather than its background_width for drawing the overline and
554 underline (Bug#489).
555
556 * xterm.c (x_draw_glyph_string): Use the glyph string's width
557 rather than its background_width for drawing the overline and
558 underline (Bug#489).
ec7c9926
CY
559 (xg_default_icon_file): New variable.
560 (syms_of_xterm): Initialize it to the Emacs SVG icon file.
561 (x_bitmap_icon): Under GTK, use xg_default_icon_file.
9a01ee33 562
8a668709
CY
563 * xdisp.c (Qbefore_string, Qafter_string): Add externs.
564 (load_overlay_strings): Remove externs.
565 (fast_find_position): Function deleted.
566 (mouse_face_from_buffer_pos): New function, based on
567 fast_find_position. Correctly handle before-strings,
568 display-strings, and after-strings (Bug#1220).
569 (note_mouse_highlight): Use mouse_face_from_buffer_pos.
570
4d4c02d8
CY
5712009-06-21 Chong Yidong <cyd@stupidchicken.com>
572
573 * xdisp.c (IT_DISPLAYING_WHITESPACE): Define for
574 !HAVE_WINDOW_SYSTEM.
575 (move_it_in_display_line_to, move_it_in_display_line_to)
576 (display_line): Remove #ifdef HAVE_WINDOW_SYSTEM.
577
70243478
CY
5782009-06-21 Chong Yidong <cyd@stupidchicken.com>
579
580 * Branch for 23.1.
581
13087e59
JR
5822009-06-21 Jason Rumney <jasonr@gnu.org>
583
584 * w32term.c (keyboard_codepage): New static variable.
585 (w32_read_socket) [WM_INPUTLANGCHANGE]: Update it.
586 (w32_read_socket) [WM_CHAR]: Use it to decode character
587 input (bug#3237).
588 (w32_initialize): Initialize it.
589 (codepage_for_locale): New function.
590
4735b74e
KR
5912009-06-20 Ken Raeburn <raeburn@raeburn.org>
592
593 * process.c (status_message): Pass Faset index argument as a lisp
594 object, so as to work with USE_LISP_UNION_TYPE.
595
0e727afa
YM
5962009-06-19 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
597
598 * coding.c (Ffind_coding_systems_region_internal):
599 Cache checked characters.
600
cf299835
KH
6012009-06-18 Kenichi Handa <handa@m17n.org>
602
603 * coding.c (decode_coding_iso_2022): Check MSB of bytes more
604 rigidly.
605
90f20d94
AS
6062009-06-18 Andreas Schwab <aschwab@redhat.com>
607
608 * xdisp.c (redisplay_internal): Check that the frame is still
609 live after redisplay of its windows.
610 (redisplay_windows): Check that the window is still live.
611
7f1faf1c
KH
6122009-06-17 Andreas Schwab <schwab@linux-m68k.org>
613
614 * coding.c (detect_coding_utf_16): Fix previous change.
615
cc13543e
KH
6162009-06-16 Kenichi Handa <handa@m17n.org>
617
618 * coding.c (detect_coding_utf_16): Fix the logic of rejecting
619 UTF-16 by checking the dispersion of Eth and Oth bytes.
620
977b85f4
AS
6212009-06-15 Andreas Schwab <schwab@linux-m68k.org>
622
623 * coding.c (detect_coding_utf_16): Fix typo counting odd bytes.
624
66bd43d1
KH
6252009-06-15 Kenichi Handa <handa@m17n.org>
626
627 * process.c (status_message): Fix previous change. Be sure to
628 decode a localized string.
629
cb5ca9c5
YM
6302009-06-15 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
631
632 * xterm.c (x_delete_terminal): Put previous change in #if 0 and
633 add comment explaining why.
634
ec7709ba 6352009-06-14 Sidney Markowitz <sidney@sidney.com>
5ee6f629 636
ec7709ba 637 * nsmenu.m (EmacsTooltip: setText): Set height of tooltip.
5ee6f629 638
4b7f335c
AR
6392009-06-14 Adrian Robert <Adrian.B.Robert@gmail.com>
640
641 * nsfont.m (ns_attribute_value): Remove.
642 (ns_attribute_fvalue): Incorporate code from ns_attribute_value.
643 (ns_has_attribute): Shrink the normal range.
644 (ns_findfonts): Don't worry about requested spec in determining
645 need for synthItal.
e41820ee 646 (ns_get_covering_families): Retain scriptToFamilies.
4b7f335c 647
73b26103
SZ
6482009-06-14 Seiji Zenitani <zenitani@mac.com>
649
650 * xdisp.c [USE_MAC_TOOLBAR]: Remove obsolete definition for Mac Carbon.
651
5753e4da
KH
6522009-06-11 Kenichi Handa <handa@m17n.org>
653
654 * xdisp.c (x_get_glyph_overhangs): Fix calculation of right
655 overhang for the static composition case.
656
3561b671
KH
6572009-06-11 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
658
5753e4da
KH
659 * xdisp.c (x_get_glyph_overhangs): Fix calculation of right
660 overhang for the automatic composition case.
661
3561b671
KH
662 * xterm.c (x_compute_glyph_string_overhangs): Handle the automatic
663 composition case.
664
852bbd41
CY
6652009-06-10 Chong Yidong <cyd@stupidchicken.com>
666
667 * xdisp.c (get_next_display_element): When handling wrap-prefix
668 and line-prefix, treat \n as a control character (bug#3502).
669
9903d1e6
KH
6702009-06-10 Kenichi Handa <handa@m17n.org>
671
672 * font.c (font_parse_family_registry): Fix for one-char foundry.
673 (font_sort_entities): Initialize prefer_prop[FONT_AVGWIDTH_INDEX].
674
0bcbaaaa
CY
6752009-06-09 Dmitry Dzhus <dima@sphinx.net.ru> (tiny change)
676
677 * process.c (status_message): Fix handling of multibyte signal
678 string (Bug#3499).
679
40aa3f13
JM
6802009-06-09 Jim Meyering <meyering@redhat.com>
681
1f80c7e2
CY
682 * xfaces.c (Fx_load_color_file): Avoid array bounds error if the
683 color name is missing.
40aa3f13 684
72d51285
KH
6852009-06-09 Kenichi Handa <handa@m17n.org>
686
687 * charset.c (Fmap_charset_chars): In docstring, state clearly that
688 FROM-CODE and TO-CODE are codepoints of CHARSET.
689
c1d04d84
AR
6902009-06-08 Adrian Robert <Adrian.B.Robert@gmail.com>
691
692 * nsterm.m (ns_use_system_highlight_color): Drop, unused.
693
6942009-06-08 Adrian Robert <Adrian.B.Robert@gmail.com>
695
696 Changes to support :script/:lang/:otf in NS font driver.
697 * nsfont.m (nsfont_escape_name, nsfont_unescape_name)
698 (nsfont_get_family, nsfont_char_width): Rename to ns_ prefix to
699 indicate not part of font driver interface, and change callers.
700 (ns_get_family): Remove pointless null check.
701 (nsfont_spec_to_traits, nsfont_fmember_to_entity): Replace with
702 ns_spec_to_descriptor, ns_descriptor_to_entity.
703 (nsfont_trait_distance, nsfont_make_fontset_for_font): Remove.
704 (ns_attribute_value, ns_attribute_fvalue, ns_has_attribute)
705 (ns_spec_to_descriptor, ns_descriptor_to_entity)
706 (ns_charset_covers, ns_lang_to_script, ns_otf_to_script)
707 (ns_get_req_script, ns_accumulate_script_ranges)
708 (ns_script_to_charset, ns_get_covering_families, ns_findfonts):
709 New functions.
710 (nsfont_list, nsfont_match): Use ns_findfonts.
711 (nsfont_open): Use font descriptor instead of traits.
712 (nsfont_draw): Handle "automatic" (lookup-table) compositions.
713 (dump_glyphstring): Rename to ns_dump_glyphstring.
714
c7eb9816
AR
715 * nsterm.h (dump_glyphstring): Rename to ns_dump_glyphstring.
716
c1d04d84
AR
717 * nsfns.m (Fns_popup_font_panel): Use shared font manager.
718
719 * fontset.c (fontset_from_font): Remove NS-specific code.
720
ec7709ba 7212009-06-08 Peter Jones <pjones@pmade.com> (tiny change)
c1d04d84
AR
722
723 * nsterm.m (ns_draw_window_cursor): Respect cursor_type for
724 nonactive windows.
725
7262009-06-08 Felix Mueller <felix@enqueue.eu> (tiny change)
727
728 * nsterm.m (ns_init_paths): Append path separator to INFOPATH
729 variable.
730
68852c13 7312009-06-08 Wolfgang Lux <wolfgang.lux@gmail.com> (tiny change)
e7777236
AR
732
733 * keyboard.c (kbd_buffer_get_event): Null-check used_mouse_menu.
734
6756cd1d
CY
7352009-06-07 Chong Yidong <cyd@stupidchicken.com>
736
737 * xdisp.c (move_it_in_display_line_to): On text-only terminals,
738 account for the overflowing of newlines into the last glyph on the
739 display line (Bug#3482).
740
28bf482a
DR
7412009-06-05 David Reitter <david.reitter@gmail.com>
742
ec7709ba
JB
743 * nsselect.m (Fx_own_selection_internal, Fx_selection_exists_p)
744 (Fx_selection_owner_p): Rename from Fns_own_selection_internal,
28bf482a
DR
745 Fns_selection_exists_p, Fns_selection_owner_p.
746
fdb55376
JR
7472009-06-03 Jason Rumney <jasonr@gnu.org>
748
749 * w32fns.c (x_create_tip_frame): Use the uniscribe font backend if
750 available. (Bug#3379)
751
05129fbe
KH
7522009-05-29 Kenichi Handa <handa@m17n.org>
753
754 * coding.c (get_translation_table): Check
755 Venable_character_translation.
756
ec7709ba 7572009-05-26 David Reitter <david.reitter@gmail.com>
15891144 758
ec7709ba
JB
759 * nsterm.m (ns_raise_frame): Only raise frame if visible.
760 (x_make_frame_visible): Move frame to front rather than calling
15891144 761 ns_raise_frame().
ec7709ba 762 (keyDown:): Do not swallow events that aren't re-sent if frame
15891144 763 isn't key window.
ec7709ba 764 (drawRect:): Do not set visibility/iconified flags because
15891144
DR
765 drawRect may be called by NSView even if the frame is hidden.
766
ec7709ba
JB
767 * nsfns.m (Fx_create_frame): Follow other ports in
768 determining visibility; default to t. Ensure async_visible is set.
15891144 769
21f73755
EZ
7702009-05-23 Eli Zaretskii <eliz@gnu.org>
771
772 * dired.c (Ffile_attributes): Doc fix.
773
34001e41
CY
7742009-05-22 Chong Yidong <cyd@stupidchicken.com>
775
776 * m/mips.h [GNU_LINUX]: Don't define DATA_START (Bug#2685).
777
46306a17
SM
7782009-05-21 Stefan Monnier <monnier@iro.umontreal.ca>
779
780 * xfont.c (xfont_list_pattern): Don't initialize xfont_scripts_cache
781 and xfont_scratch_props.
782 (syms_of_xfont): Do it here instead.
783 (xfont_find_ccl_program): Delete, unused.
784 (xfont_open): Delete unused var `i'.
785
ef6e0694
KH
7862009-05-21 Kenichi Handa <handa@m17n.org>
787
788 * fontset.c (Qlatin): Don't make it static.
789
46306a17
SM
790 * xfont.c (xfont_chars_supported, xfont_supported_scripts):
791 New functions.
ef6e0694
KH
792 (xfont_scripts_cache, xfont_scratch_props): New variables.
793 (Qlatin, Vscalable_fonts_allowed): Extern it.
46306a17
SM
794 (xfont_list_pattern): Argument changed. Callers changed.
795 Check Vscalable_fonts_allowed. Check the support of a script.
ef6e0694
KH
796 (xfont_list): Don't reject a font spec with :script property.
797 (xfont_has_char): Fix setting of encoding.
798 (syms_of_xfont): Staticpro and initialize xfont_scripts_cache and
799 xfont_scratch_props.
800
8012009-05-19 Kenichi Handa <handa@m17n.org>
802
46306a17 803 * font.c (font_sort_entities): Rename from font_sort_entites.
ef6e0694
KH
804 Callers changed.
805
8062009-05-18 Kenichi Handa <handa@m17n.org>
807
808 * font.c (font_find_for_lface): Copy SPEC's FONT_TYPE too.
809
ac71ced7
SM
8102009-05-19 Stefan Monnier <monnier@iro.umontreal.ca>
811
812 * frame.c (do_switch_frame) [NS_IMPL_COCOA]: Don't raise any window.
813 (delete_frame) [NS_IMPL_COCOA]: Instead, do it here.
814
1c6d1051
YM
8152009-05-19 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
816
817 * xterm.c (x_delete_display): Don't call XrmDestroyDatabase here.
818 (x_delete_terminal): Dissociate resource database from display and
819 then call XrmDestroyDatabase before closing display.
820
9b9b779c
AR
8212009-05-18 Adrian Robert <Adrian.B.Robert@gmail.com>
822
823 * nsterm.m (ns_read_socket): Remove unused variable.
1564e649
AR
824 * frame.c (do_switch_frame): Under NS_IMPL_COCOA section, check
825 whether selected frame is viable before raising it (based on patch
826 by David Reitter), and improve commentary.
827 * nsfont.m (nsfont_make_fontset_for_font): Avoid a compiler warning.
9b9b779c 828
cccd42d5
KH
8292009-05-15 Kenichi Handa <handa@m17n.org>
830
831 * font.c (Ffont_spec): Check arguments.
832
337fbd17
CY
8332009-05-14 Chong Yidong <cyd@stupidchicken.com>
834
835 * xfaces.c (tty_supports_face_attributes_p): Recognize unspecified
836 weight when testing attributes (Bug#3282).
837
47a6002f
JD
8382009-05-11 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
839
840 * gtkutil.c (xg_frame_set_char_size): Set frame pixel width/height to
841 what we expect to get in the next ConfigureNotify event.
842
9cb363db
YM
843 * xftfont.c (xftfont_open): Make sure that Xrender extension is added
844 before Xft one (Bug#1696).
845
b9126609
CY
8462009-05-07 David Reitter <david.reitter@gmail.com>
847
848 * nsfns.m (Fx_display_planes): Compute bitplanes using
849 NSBitsPerPixelFromDepth (Bug#3207).
850
27a69fd9
CY
8512009-05-10 Chong Yidong <cyd@stupidchicken.com>
852
853 * editfns.c (Ftranspose_regions): Doc fix (Bug#3248).
854
00f37552
TTN
8552009-05-10 Ulrich Mueller <ulm@gentoo.org>
856
857 * s/gnu-linux.h: Make GCPROs and UNGCPRO no-ops also on SuperH.
858
2d82a920
DR
8592009-05-07 David Reitter <david.reitter@gmail.com>
860
ec7709ba
JB
861 * nsterm.m (ns_dumpglyphs_stretch, ns_dumpglyphs_image):
862 Respect mouse face background.
2d82a920 863
46b0d52d
DR
8642009-05-07 David Reitter <david.reitter@gmail.com>
865
ec7709ba
JB
866 * nsterm.m (note_mouse_movement, ns_frame_up_to_date):
867 Mouse movement/highlight: bracket drawing operations
46b0d52d
DR
868 in ns_update_begin and ns_update_end.
869
ce1b23bb
SM
8702009-05-06 Stefan Monnier <monnier@iro.umontreal.ca>
871
5996e1b7
SM
872 * nsfns.m (ns_get_screen): Rewrite.
873 Don't presume selected-frame is of type `ns'.
874
ba98e3a0
SM
875 * font.c (font_update_drivers): Sanity fallback to avoid disabling
876 all drivers.
877
ce1b23bb
SM
878 * nsterm.m (-windowDidResize:): Avoid inf-loop under GNUStep.
879
bcda200f
YM
8802009-05-06 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
881
882 * keyboard.h (add_user_signal): Fix typo in extern.
883
884 * lisp.h (add_user_signal): Remove extern.
885
886 * unexelf.c (unexec): Consider a section to precede the .bss section
887 if its addresses overlap that of .bss.
888 (unexec) [NS_IMPL_GNUSTEP]: Copy ObjC-related data from old file
889 instead of dumping process.
890
864660a2
SM
8912009-05-06 Stefan Monnier <monnier@iro.umontreal.ca>
892
893 * keyboard.c (syms_of_keyboard): Staticpro pending_funcalls.
894
50da4e56
SM
8952009-05-04 Stefan Monnier <monnier@iro.umontreal.ca>
896
897 * Makefile.in (ctagsfiles1, ctagsfiles2): Include ObjC files in TAGS.
898
51520a1a
DN
8992009-05-02 Dan Nicolaescu <dann@ics.uci.edu>
900
901 * xterm.c (x_handle_net_wm_state): Move declaration of lval before
902 any statements.
903
409ea3a1
AS
9042009-05-02 Andreas Schwab <schwab@linux-m68k.org>
905
59c4c60f
AS
906 * process.c (read_process_output): Make sure the current buffer is
907 always restored.
908
409ea3a1
AS
909 * coding.c (record_conversion_result): Don't modify
910 Vlast_code_conversion_error for successful result.
911 (alloc_destination): Don't clobber conversion result. (Bug#1650)
912
56f00ed2
KH
9132009-05-01 Emanuele Giaquinta <emanuele.giaquinta@gmail.com> (tiny change)
914
915 * charset.c (load_charset): Reformat X==Y==Z to (X==Y)==Z.
896b1cc9 916 (load_charset_map): Remove unnecessary code.
56f00ed2 917
4491c9d2
DR
9182009-04-30 David Reitter <david.reitter@gmail.com>
919
35f5b128 920 * nsterm.m (convert_ns_to_X_keysym): Define function keys f16
4491c9d2
DR
921 through f24.
922
6970f632
CY
9232009-04-30 Chong Yidong <cyd@stupidchicken.com>
924
925 * xfaces.c (face_at_buffer_position): New arg base_face_id.
926
927 * xdisp.c (handle_face_prop): Pass base_face_id of iterator to
928 face_at_buffer_position.
929 (face_before_or_after_it_pos, get_next_display_element)
930 (note_mouse_highlight): Update face_at_buffer_position call.
931
932 * term.c (term_mouse_highlight):
933 * msdos.c (IT_note_mouse_highlight):
934 * fontset.c (Finternal_char_font):
35f5b128 935 * font.c (font_at, font_range): Update face_at_buffer_position call.
6970f632
CY
936
937 * dispextern.h (face_at_buffer_position): Update prototype.
938
0c616f63
KH
9392009-04-30 Kenichi Handa <handa@m17n.org>
940
35f5b128 941 * fontset.c (fontset_find_font): Check if rfont_def is Qnil or not.
0c616f63 942
ad3aaf33
AS
9432009-04-29 Andreas Schwab <schwab@linux-m68k.org>
944
945 * callproc.c (Fcall_process): Fix GC protection. Make sure
946 current buffer is always restored.
947
c3c963a0
YM
9482009-04-29 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
949
950 * atimer.c (init_atimer): Also clear stopped_atimers.
951
952 * keyboard.c (init_keyboard) [POLL_FOR_INPUT]: Reset poll_timer.
953
7e3386cb
YM
954 * process.c (create_process): Clean up merger residues of
955 2008-07-17 change.
956
91f68422
CY
9572009-04-29 Ulrich Mueller <ulm@gentoo.org>
958
959 * lread.c (Vread_circle): New variable.
960 (read1): Disable recursive read if Vread_circle is nil.
961
24b34550
KH
9622009-04-29 Kenichi Handa <handa@m17n.org>
963
964 * fontset.h (set_default_ascii_font): Delete extern.
965
966 * fontset.c (set_default_ascii_font): Delete this unused function.
967
968 * frame.c (x_set_font): When ARG is a font-object, check if the
969 font-object matches with the ASCII font-spec of the frame's
9c358bda 970 fontset. If not, create a new fontset for the frame. (Bug #3075)
24b34550 971
77bf07e1
AS
9722009-04-28 Andreas Schwab <schwab@linux-m68k.org>
973
974 * fns.c (Flocale_info): Protect vector from GC during decoding.
975
976 * process.c (Fstart_process): Protect argv strings from GC during
977 encoding.
978
2c55aacf
AS
9792009-04-27 Andreas Schwab <schwab@linux-m68k.org>
980
981 * sysdep.c: Include <ctype.h>.
982
b892d3c9
DR
9832009-04-27 David Reitter <david.reitter@gmail.com>
984
35f5b128 985 * nsfont.m (nsfont_open): Remove unused variable shrink.
b892d3c9
DR
986 Remove commented-out code.
987
9d0644c4
JB
9882009-04-26 Johan Bockgård <bojohan@gnu.org>
989
990 * keyboard.c (syms_of_keyboard) <input-decode-map>: Doc fix.
991
b7053016
JR
9922009-04-25 Jason Rumney <jasonr@gnu.org>
993
994 * w32font.c (clear_cached_metrics): Remove, unused since 2008-08-02.
995
4e8231f3
YM
9962009-04-25 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
997
998 * fringe.c (init_fringe_bitmap) [HAVE_X_WINDOWS && WORDS_BIG_ENDIAN]:
999 Swap bytes in short integer if fringe bitmap width > 8.
1000
493dcf2c
KH
10012009-04-23 Kenichi Handa <handa@m17n.org>
1002
1003 * xfaces.c (Fx_list_fonts): If a font size is specified in
1004 PATTERN, set it in returned scalable fonts.
1005
401e9e57
CY
10062009-04-22 Chong Yidong <cyd@stupidchicken.com>
1007
708e05dc
CY
1008 * keyboard.c (Fset_input_meta_mode): Doc fix.
1009
1010 * dispnew.c (Fsend_string_to_terminal): Doc fix.
1011
1012 * data.c (Fterminal_local_value, Fset_terminal_local_value): Doc
1013 fixes.
1014
1015 * coding.c (Fterminal_coding_system): Doc fix.
1016
1017 * xfns.c (Fx_display_grayscale_p, Fx_display_pixel_width)
1018 (Fx_display_pixel_height, Fx_display_planes)
1019 (Fx_display_color_cells, Fx_server_max_request_size)
1020 (Fx_server_vendor, Fx_server_version, Fx_display_screens)
1021 (Fx_display_mm_height, Fx_display_mm_width)
1022 (Fx_display_backing_store, Fx_display_visual_class)
1023 (Fx_display_save_under, Fx_close_connection, Fx_synchronize): Doc
1024 fixes, replacing "terminal id" with "terminal object".
1025 (check_x_display_info): Handle terminal objects instead of
1026 terminal ids.
1027
401e9e57
CY
1028 * term.c (Ftty_display_color_p, Ftty_display_color_cells)
1029 (Ftty_type, Fcontrolling_tty_p, Ftty_no_underline, Fsuspend_tty)
fdc496e7
CY
1030 (Fresume_tty, Vsuspend_tty_functions, Vresume_tty_functions): Doc
1031 fixes, replacing "terminal id" with "terminal object".
401e9e57 1032
df80c7f0
KH
10332009-04-21 Kenichi Handa <handa@m17n.org>
1034
5a8f12af 1035 * font.c (font_load_for_lface): Cancel previous change (bug#2994).
c0a6070d 1036 (font_score): Check AVGWIDTH too.
908567ef 1037
df80c7f0
KH
1038 * coding.c (decode_coding_utf_16): Reduce charbuf_end for the
1039 worst case.
1040 (decode_coding_emacs_mule, decode_coding_iso_2022)
1041 (decode_coding_sjis, decode_coding_big5, decode_coding_charset):
1042 Likewise.
1043
705af33f
JR
10442009-04-19 Jason Rumney <jasonr@gnu.org>
1045
1046 The following changes fix Bug#3005 for wide glyphs on each platform,
b71ac3dd 1047 without reintroducing Bug#1258 for stretch glyphs.
705af33f
JR
1048
1049 * xterm.c (x_draw_bar_cursor): Limit cursor width differently for
1050 BAR_CURSOR and HBAR_CURSOR. Calculate width of HBAR_CURSOR using
1051 get_phys_cursor_geometry.
1052
b71ac3dd 1053 * w32term.c (x_draw_bar_cursor): Limit cursor width differently
705af33f
JR
1054 for BAR_CURSOR and HBAR_CURSOR. Calculate width of HBAR_CURSOR
1055 using get_phys_cursor_geometry.
1056
1057 * nsterm.m (ns_draw_window_cursor): HBAR_CURSOR width already
1058 correctly calculated.
1059
dc2933eb
JD
10602009-04-19 Jan Djärv <jan.h.d@swipnet.se>
1061
1062 * gtkutil.c (xg_tool_bar_menu_proxy, update_frame_tool_bar): Use
1063 G_CALLBACK instead of GTK_SIGNAL_FUNC which is deprecated.
1064 (xg_initialize): Use g_type_class_ref instead of gtk_type_class which
1065 is deprecated.
1066
973e7849
AS
10672009-04-18 Andreas Schwab <schwab@linux-m68k.org>
1068
1069 * font.c (font_put_frame_data): Use xfree instead of free.
1070
314d66f4
JB
10712009-04-17 Juanma Barranquero <lekktu@gmail.com>
1072
1073 * w32font.c (Qja, Qko): Remove declarations.
1074 (syms_of_w32font): Don't DEFSYM them.
1075
cf702558
CY
10762009-04-17 Chong Yidong <cyd@stupidchicken.com>
1077
1078 * font.c (Qja, Qko): Move definitions here from ftfont.c.
1079
1080 * font.h (Qja, Qko): Extern them.
1081
1082 * ftfont.c (Qja, Qko): Remove declarations.
1083
1084 * xfont.c (Qja, Qko): Remove declarations.
1085
b50504f5
KH
10862009-04-17 Kenichi Handa <handa@m17n.org>
1087
bde25748
KH
1088 * editfns.c (Ftranslate_region_internal): Use Fconcat to make a
1089 string from a vector to handle Latin-1 characters correctly.
1090
b50504f5
KH
1091 * ftfont.c (ftfont_pattern_entity): Return a newly allocated
1092 entity even if the cache hits.
1093
f4646fff
AS
10942009-04-16 Andreas Schwab <schwab@linux-m68k.org>
1095
1096 * search.c (boyer_moore): Use zero as marker value for a possible
6340c70e 1097 match instead of depending on overflow behavior. (Bug#2844)
f4646fff 1098
e7deaab0
AS
1099 * search.c: Use EMACS_INT for buffer positions. Add prototypes.
1100 * lisp.h: Adjust prototypes.
1101
0a0e7d49
CY
11022009-04-16 Chong Yidong <cyd@stupidchicken.com>
1103
1104 * keyboard.c (adjust_point_for_property): Disable 2009-02-12
1105 change (Bug#3003).
1106
3c908a57
KH
11072009-04-16 Kenichi Handa <handa@m17n.org>
1108
bd0af90d
KH
1109 * xfont.c (xfont_has_char): Special handling of `ja' and `ko'
1110 adstyle.
1111
1112 * xftfont.c (xftfont_has_char): Special handling of `ja' and `ko'
1113 adstyle.
1114
1115 * ftfont.c (Qja, Qko): Don't make them static.
1116 (enum ftfont_cache_for): New enum.
1117 (fc_charset_table): Undo the previous change.
1118 (ftfont_get_latin1_charset): Delete it.
1119 (ftfont_pattern_entity): Check cache by ftfont_lookup_cache. Set
1120 FONT_SIZE_INDEX of the entity to 0 for a scalable font. For a
1121 non-scarable font, try to get AVERAGE_WIDTH.
1122 (ftfont_lookup_cache): Argument FOR-FACE is changed to CACHE_FOR.
1123 Change ft_face_cache from a list of a hash-table. Don't check
1124 `ja' and `ko' adstyle here.
1125 (ftfont_get_fc_charset): Call ftfont_lookup_cache with
1126 FTFONT_CACHE_FOR_CHARET.
1127 (ftfont_get_charset): Undo the previous change.
1128 (ftfont_open): Call ftfont_lookup_cache with
1129 FTFONT_CACHE_FOR_FACE.
1130 (ftfont_close): Likewise.
1131 (ftfont_has_char): Special handling of `ja' and `ko' adstyle.
1132
1133 * font.c (font_sort_entites): Change the meaning of the arg
1134 BEST-ONLY. Don't optimize for VEC of lenght 1.
1135 (font_select_entity): Just return the value of font_sort_entites.
1136
1137 * xfaces.c (merge_face_vectors): Reflect font properties in
1138 to[LFACE_FONT_INDEX] to the other face attributes. Don't call
1139 font_clear_prop if a face attribute doesn't change.
1140
3c908a57
KH
1141 * charset.h (charset_ksc5601): Extern it.
1142
1143 * charset.c (charset_ksc5601): New variable.
1144 (Fdefine_charset_internal): Set charset_ksc5601.
1145 (init_charset_once): Initialize charset_ksc5601 to -1.
1146
d65859c3
DN
11472009-04-15 Dan Nicolaescu <dann@ics.uci.edu>
1148
1149 * fileio.c (history_delete_duplicates): Remove unused declaration.
1150
1151 * callint.c (history_delete_duplicates): New declaration.
1152 (Fcall_interactively): Remove command history duplicates when
1153 history_delete_duplicates is true.
1154
3ba010e5
EZ
11552009-04-14 Eli Zaretskii <eliz@gnu.org>
1156
1157 * buffer.c (syms_of_buffer) <line-spacing>: Doc fix.
1158
06f19b91
KH
11592009-04-14 Kenichi Handa <handa@m17n.org>
1160
1161 * font.c (Ffont_info): Fix docstring. Fix the second element of
1162 the returned value (bug#2949).
1163
2cce8bfc
CY
11642009-04-14 Chong Yidong <cyd@stupidchicken.com>
1165
1166 * xdisp.c (Vwrap_prefix, Vline_prefix): Reflow docstrings.
1167
d156542d
KH
11682009-04-14 Kenichi Handa <handa@m17n.org>
1169
1170 * xfont.c (xfont_has_char): The font has C if C is ASCII and the
1171 encoding charset is ascii_compatible.
1172
1173 * charset.c (Fdefine_charset_internal): Make charset
1174 ascii-compatible if the method is CHARSET_METHOD_OFFSET, the
1175 code_offset is 0, and covers all ASCII characters.
1176
86fa089e
SM
11772009-04-13 Stefan Monnier <monnier@iro.umontreal.ca>
1178
1179 * nsselect.m (symbol_to_nsstring, clean_local_selection_data)
1180 (ns_string_to_pasteboard_internal):
1181 * nsmenu.m (process_dialog):
1182 * nsimage.m (ns_load_image): Use SDATA and ASET where appropriate.
1183 * nsfont.m (nsfont_open): Use XHASH to make it compile with LISP_UNION.
1184 * lisp.h (Fx_load_color_file): Declare.
1185
a8a3728b
KH
11862009-04-13 Kenichi Handa <handa@m17n.org>
1187
1188 * font.c (font_delete_unmatched): Preserve the order of list
1189 elements.
1190 (font_select_entity): Suppress the code to optimize for the same
1191 kind of fonts.
1192 (font_load_for_lface): Get a font that supports at least ASCII
1193 characters.
1194
1195 * ftfont.c (Qja, Qko): New variables.
1196 (fc_charset_table): Delete uniquifier data for iso8859-1.
1197 (ftfont_get_latin1_charset): New function.
1198 (get_adstyle_property): New function.
1199 (ftfont_pattern_entity): Set FONT_ADSTYLE_INDEX of entity for
1200 bitmap fonts.
1201 (ftfont_lookup_cache): Handle the case that KEY is a font-entity.
1202 Delete iso-8859-1 range from the charset of fonts whose adstyle is
1203 `ko' or `ja'.
1204 (ftfont_get_fc_charset): Call ftfont_lookup_cache with ENTITY.
1205 (ftfont_get_charset): For iso8859-1, call
1206 ftfont_get_latin1_charset.
1207 (ftfont_list): Don't refuse a font spec with non-nil `adstyle'
1208 property.
1209 (ftfont_open): Call ftfont_lookup_cache with ENTITY.
1210 (syms_of_ftfont): DEFSYM Qja and Qko.
1211
483670b5
KH
12122009-04-09 Kenichi Handa <handa@m17n.org>
1213
12b55765
KH
1214 * charset.c (map_charset_chars): For a charset of `superset'
1215 method, fix calculation of code range.
1216
483670b5
KH
1217 * font.c (font_put_extra): If VAL is nil, delete the slot for PROP
1218 from the list of extra properties.
1219 (font_clear_prop): Be sure to delete `:name' font property.
1220
57d3b93b
KH
12212009-04-08 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
1222
b4b2c2ca
YM
1223 * dispnew.c (redraw_overlapping_rows): Fix detection of
1224 overlapping for topmost and bottommost rows.
1225
57d3b93b
KH
1226 * ftfont.c (ftfont_text_extents): Fix calculation of
1227 metrics->descent.
1228
472c3609
JR
12292009-04-06 Jason Rumney <jasonr@gnu.org>
1230
1231 * frame.c (x_set_font): Avoid C99 mid-block variable declaration.
1232
ab193662
KH
12332009-04-06 Kenichi Handa <handa@m17n.org>
1234
1235 * ftxfont.c (ftxfont_draw_backgrond): Fix args to XFillRectangle.
1236
1237 * xftfont.c (xftfont_open): Fix setting font->underline_thickness.
1238
0c26f026
KH
12392009-04-06 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
1240
1241 * ftfont.c (ftfont_open): Fix checking of the return value of
1242 FT_Load_Char. Fix setting font->underline_thickness.
1243
e173bbce
CY
12442009-04-04 Chong Yidong <cyd@stupidchicken.com>
1245
1246 * terminal.c (Fterminal_name, Fdelete_terminal, Fterminal_name)
1247 (Fterminal_parameters, Fterminal_parameter)
1248 (Fset_terminal_parameter): In doc string, refer to terminal
1249 objects rather than terminal ids.
1250
693a2698
EZ
12512009-04-04 Eli Zaretskii <eliz@gnu.org>
1252
1253 * dosfns.c (system_process_attributes) [SYSTEM_MALLOC]: Don't call
1254 ret_lim_data. (Bug#2867)
1255
d5221487
CY
12562009-04-03 Chong Yidong <cyd@stupidchicken.com>
1257
1258 * term.c (produce_stretch_glyph): Reduce width of stretch glyphs
1259 so they don't get wider than the window, matching 2006-01-23
1260 change to the partner function in xdisp.c (Bug#2800).
1261
223509a3
KH
12622009-04-03 Kenichi Handa <handa@m17n.org>
1263
1264 * print.c (print_object): Make each lowest sub_char_table start a
1265 new line (Bug#2866).
1266
74fcd0b1
KH
12672009-04-02 Kenichi Handa <handa@m17n.org>
1268
1269 * fontset.c (fontset_font): Record no-font when a fontset
1270 explicitly tells not to try another font-specs.
1271
c542407d
SM
12722009-03-30 Pierre Poissinger <pierre.poissinger@gmail.com> (tiny change)
1273
1274 * charset.c (map_charset_for_dump): Add missing UNGCPRO.
1275
e3869731
KH
12762009-03-30 Kenichi Handa <handa@m17n.org>
1277
d8d2f142
KH
1278 * fontset.c (fontset_from_font): Specify only registry in a
1279 font-spec for all characters supported by that registry.
1280
e3869731
KH
1281 * ftfont.c: Fix previous change. Define ftfont_variation_glyphs
1282 even if HAVE_M17N_FLT is not defined.
1283
5da5f805
CY
12842009-03-29 Sebastian Rose <sebastian_rose@gmx.de> (tiny change)
1285
1286 * ftfont.c: Conditionalize prototyping and use of
1287 ftfont_variation_glyphs.
1288
ab226c50
SM
12892009-03-28 Stefan Monnier <monnier@iro.umontreal.ca>
1290
9628fed7
SM
1291 * frame.c (delete_frame): Work around compiler bug.
1292
1293 * editfns.c (general_insert_function): Adjust to insdel.c changes.
1294 * insdel.c (prepare_to_modify_buffer, signal_before_change):
1295 Some more EMACS_INT.
1296 * lisp.h (copy_text, count_size_as_multibyte): Fix last change.
1297
1298 * xdisp.c (dump_glyph): Fix typo.
1299
ae19ba7c
SM
1300 * insdel.c (move_gap, move_gap_both, gap_left, gap_right)
1301 (adjust_markers_gap_motion, adjust_markers_for_delete)
1302 (adjust_markers_for_insert, adjust_point)
1303 (adjust_markers_for_replace, make_gap_larger, make_gap_smaller)
1304 (make_gap, copy_text, count_size_as_multibyte, insert)
1305 (insert_and_inherit, insert_before_markers)
1306 (insert_before_markers_and_inherit, insert_1)
1307 (count_combining_before, count_combining_after, insert_1_both)
1308 (insert_from_string, insert_from_string_before_markers)
1309 (insert_from_string_1, insert_from_gap, insert_from_buffer)
1310 (insert_from_buffer_1, adjust_after_replace)
1311 (adjust_after_replace_noundo, adjust_after_insert, replace_range)
1312 (replace_range_2, del_range, del_range_1, del_range_byte)
1313 (del_range_both, del_range_2, modify_region)
1314 (prepare_to_modify_buffer, signal_before_change)
1315 (signal_after_change, Fcombine_after_change_execute): Use EMACS_INT
1316 for buffer positions and sizes.
1317 * lisp.h: Adjust prototypes accordingly.
1318
1319 * fileio.c (adjust_markers_for_delete): Move declaration to lisp.h.
1320 (non_regular_inserted, non_regular_nbytes, read_non_regular)
1321 (Finsert_file_contents): Use EMACS_INT for buffer positions.
1322
ab226c50
SM
1323 * fileio.c (Finsert_file_contents): Don't limit size to INT_MAX/4.
1324
46dfb8fb
JD
13252009-03-27 Jan Djärv <jan.h.d@swipnet.se>
1326
1327 * frame.c (x_set_font): If the fullscreen property is non-nil, adjust
1328 lines and columns so we keep the same pixel height and width.
1329
1330 * xterm.c (handle_one_xevent): Call x_handle_net_wm_state if
1331 the property _NET_WM_STATE has changed.
46dfb8fb
JD
1332 (x_handle_net_wm_state): New function to update frame parameter
1333 fullscreen.
1334 (x_term_init): Initialize atoms for _NET_WM_STATE.
1335
1336 * xterm.h (struct x_display_info): Add atoms for _NET_WM_STATE.
1337
d347e494
SM
13382009-03-27 Kevin Ryde <user42@zip.com.au>
1339
1340 * keyboard.c (tty_read_avail_input): Don't treat a -1 return from
1341 Gpm_GetEvent as an error that justifies closing the filedescriptor.
1342 * term.c (close_gpm): Get the filedescriptor as a (new) parameter.
1343 (Fgpm_mouse_stop): Pass that new parameter.
1344 * termhooks.h (close_gpm): Adjust prototype.
1345
84db11d6
SM
13462009-03-26 Stefan Monnier <monnier@iro.umontreal.ca>
1347
c95a5008
SM
1348 * lisp.h (Fx_focus_frame): Declare.
1349
84db11d6
SM
1350 * callint.c (Fcall_interactively): For '^' just delegate the work to
1351 handle-shift-selection.
1352 (syms_of_callint): Move declaration of shift-select-mode to simple.el.
1353
0a1958d6
CY
13542009-03-24 Chong Yidong <cyd@stupidchicken.com>
1355
0bfdff23
CY
1356 * editfns.c (Ffloat_time): Doc fix (Bug#2768).
1357
0a1958d6
CY
1358 * data.c (Qinteractive_form): New variable.
1359 (Finteractive_form): Use it.
1360
1361 * eval.c (Fcommandp): Use Qinteractive_form.
1362
58aec0d6
JR
13632009-03-24 Jason Rumney <jasonr@gnu.org>
1364
1365 * fileio.c (Fsubstitute_in_file_name): Always work on a copy.
1366 Calculate total size precisely. Decode environment variables
1367 before substituting. (Bug#38)
1368
553dd618
KH
13692009-03-24 Kenichi Handa <handa@m17n.org>
1370
1371 * font.c (find_font_encoding): Return Qnil for unsupported
639239cf 1372 encoding (Bug#2722).
553dd618 1373
c39ea606
JD
13742009-03-23 Jan Djärv <jan.h.d@swipnet.se>
1375
1376 * gtkutil.c (xg_display_open): Assign a value to gdpy_def, check
1377 that gdpy is set.
1378
bc9b2b5e
AM
13792009-03-22 Alan Mackenzie <acm@muc.de>
1380
1381 * callint.c (Finteractive): Clarify the doc string - even
1382 promptless elements need \n separators.
1383
9f995a76
JR
13842009-03-22 Jason Rumney <jasonr@gnu.org>
1385
1386 * w32term.c (syms_of_w32term): Doc fix for
1387 x-use-underline-position-properties.
1388
22749e9a
EZ
13892009-03-21 Eli Zaretskii <eliz@gnu.org>
1390
1391 * w32.c (getpwuid): Change argument type to unsigned.
1392 (struct w32_id): Change type of `rid' member to unsigned.
1393 (w32_cached_id, w32_add_to_cache, get_name_and_id): Change type of
1394 argument ID to unsigned. All callers changed.
1395 (getuid, geteuid, getgid, getegid): Change return type to unsigned.
1396
e00553bf
EZ
13972009-03-20 Eli Zaretskii <eliz@gnu.org>
1398
1399 * editfns.c (Fuser_uid, Fuser_real_uid): If UID as EMACS_INT is
1400 negative, produce a float value.
1401
1402 * dired.c (make_uid, make_gid): New functions.
1403 (Ffile_attributes): Use them to avoid negative UID and GID.
1404
f761d6b6
JB
14052009-03-20 Juanma Barranquero <lekktu@gmail.com>
1406
1407 * keyboard.c (Fcurrent_idle_time): Reflow docstring.
1408 (syms_of_keyboard) <command-hook-internal, input-method-function>:
1409 Fix typos in docstrings.
1410
d507f8d7
KH
14112009-03-19 Kenichi Handa <handa@m17n.org>
1412
1413 * fontset.c (Fset_fontset_font): When a spec of ASCII font is
f761d6b6
JB
1414 changed, use font_load_for_lface to get a new font object.
1415 Call free_realized_fontset after handling ASCII font change.
d507f8d7
KH
1416
1417 * frame.c (x_set_font): Handle the case that ARG is a cons.
1418
c68845e0
GM
14192009-03-19 Glenn Morris <rgm@gnu.org>
1420
1421 * fileio.c (Fsubstitute_in_file_name): Doc fix.
1422
bfa49dd1
CY
14232009-03-19 Chong Yidong <cyd@stupidchicken.com>
1424
1425 * indent.c (Fvertical_motion): Undo 2005-01-19 change (Bug#2694).
1426
8458d4c1
KH
14272009-03-19 Kenichi Handa <handa@m17n.org>
1428
1429 * charset.c (load_charset_map_from_file): When a mapfile can't be
1430 loaded, signal an error.
1431
78e7d1fe
EZ
14322009-03-18 Eli Zaretskii <eliz@gnu.org>
1433
1434 * dired.c (Ffile_attributes): Make sure UID and GID are always
1435 positive, even if the value is too large for a positive EMACS_INT.
1436 Doc fix.
1437
1438 * editfns.c (Fuser_login_name): Support float arguments. Doc fix.
1439
5da9fdfa
YM
14402009-03-18 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
1441
1442 * xmenu.c (xdialog_show): Move Fredisplay call ...
1443 (Fx_popup_dialog): ... here.
1444
7519c40d
SM
14452009-03-18 Stefan Monnier <monnier@iro.umontreal.ca>
1446
1447 * dired.c (file_name_completion): Disable the first optimization just
1448 installed, since it is not implemented correctly.
1449
2cd298e2
SM
14502009-03-17 Stefan Monnier <monnier@iro.umontreal.ca>
1451
1452 * dired.c (file_name_completion): Check completion-ignored-extensions
c95a5008 1453 only if the entry can affect bestmatch.
2cd298e2
SM
1454 Stop the search early, as Ftry_completion already does.
1455
48d37adf
CY
14562009-03-17 Chong Yidong <cyd@stupidchicken.com>
1457
e10c9c93 1458 * minibuf.c (Vminibuffer_completion_confirm): Doc fix.
48d37adf 1459
9286b16a
CY
14602009-03-15 Chong Yidong <cyd@stupidchicken.com>
1461
1462 * keyboard.c (parse_menu_item): Don't display remappings as menu
1463 equivalent bindings (Bug#788).
1464
f7b146dc
JR
14652009-03-15 Jason Rumney <jasonr@gnu.org>
1466
1467 * w32term.h (WM_EMACS_PAINT): New message.
1468 * w32term.c (w32_read_socket): Use it instead of WM_PAINT.
1469 * w32fns.c (w32_wnd_proc): Change WM_PAINT to WM_EMACS_PAINT
1470 before passing to lisp thread. (Bug#950)
1471
f761d6b6 14722009-03-14 David Reitter <david.reitter@gmail.com>
c6c62e78 1473
d93f9575
CY
1474 * nsterm.m (ns_shutdown_properly, -terminate): Remove global state
1475 variable as it was never reset.
1476 (ns_term_init): Remove initialization of Lisp-settable defaults
1477 and ns_expand_space.
1478 (-setPanelFromDefaultValues): Remove ns_expand_space.
1479 (-showPreferencesWindow): Send new KEY_NS_SHOW_PREFS key.
1480 * nsfont.m (nsfont_open): Remove ns_expand_space, assume -0.5
c6c62e78
DR
1481 i.e. no additional spacing, similar to Carbon port.
1482
d93f9575
CY
1483 * nsterm.h: Define KEY_NS_SHOW_PREFS key.
1484 * nsfns.m (ns-popup-prefs-panel): Remove.
c6c62e78 1485
305018ec
JD
14862009-03-14 Jan Djärv <jan.h.d@swipnet.se>
1487
1488 * sound.c (alsa_configure): Remove call to deprecated
1489 snd_pcm_sw_params_set_xfer_align.
1490
f761d6b6 14912009-03-14 Stephen Berman <stephen.berman@gmx.net>
4a02423f
JD
1492
1493 * gtkutil.c (xg_tool_bar_callback): Set focus back to the frame
1494 after clicking in a detached tool bar.
1495 (xg_tool_bar_proxy_callback): Remove call to Fx_focus_frame.
1496
46e722a9
SM
14972009-03-13 Stefan Monnier <monnier@iro.umontreal.ca>
1498
348db3dd
SM
1499 * fontset.c (fontset_from_font, Ffontset_info): YAILOM (Yet another
1500 int/Lisp_Object mixup).
46e722a9 1501
a3d16f39
KH
15022009-03-13 Kenichi Handa <handa@m17n.org>
1503
1504 * fontset.c (Ffontset_info, check_fontset_name): New arg frame.
fe24f56a 1505 Handle NAME nil and t correctly. Callers changed.
a3d16f39
KH
1506 (font_def_arg, add_arg, from_arg, to_arg): Delete them.
1507 (set_fontset_font): Change ARG to a vector. Handle range_list in
1508 ARG correctly.
1509 (Fset_fontset_font): Fix the case that TARGET is both a script
fe24f56a 1510 name and charset name. Adjust the arg to set_fontset_font for
a3d16f39
KH
1511 the above change.
1512 (fontset_from_font): Fix previous change.
fe24f56a 1513 (Ffontset_info): Adjust for the 2008-07-09 change of fontset
a3d16f39
KH
1514 entry. If FONTSET is the default fontset, don't set the extra
1515 slot of the returning char-table.
1516
b066e6b6
JB
15172009-03-12 Juanma Barranquero <lekktu@gmail.com>
1518
1519 * nsfns.m (Fx_close_connection): Doc fix.
1520 (Fns_do_applescript): Reflow docstring.
1521 (Fns_hide_others, Fns_hide_emacs, Fns_convert_utf8_nfd_to_nfc)
1522 (Fx_display_pixel_width, Fx_display_pixel_height)
1523 (Fns_display_usable_bounds, Fx_display_planes, Fx_show_tip):
1524 Fix typos in docstrings.
1525 (Fns_set_alpha): Fix typos in error messages.
1526
d472514e 15272009-03-12 David Reitter <david.reitter@gmail.com>
d6220c13 1528
d472514e 1529 * termhooks.h [HAVE_NS]: Define NS_NONKEY_EVENT to be used for
d6220c13
DR
1530 non-key system events on NS. Formerly, NON_ASCII_KEYSTROKE_EVENT
1531 were used for such events.
1532
d472514e
JB
1533 * nsterm.m (newFrame, openFile, fulfillService, changeFont)
1534 (toggleToolbar, performDragOperation, runHelp): Use it.
d6220c13 1535
d472514e 1536 * keyboard.c (parse_menu_item) [HAVE_NS]: Treat new event like
d6220c13
DR
1537 NON_ASCII_KEYSTROKE_EVENT, but set used_mouse_menu.
1538
fb930676
KH
15392009-03-11 Kenichi Handa <handa@m17n.org>
1540
ff85581a
KH
1541 * font.h (font_open_by_spec): Extern it.
1542
c50b7e98
KH
1543 * font.c (font_open_by_spec): New function.
1544 (font_open_by_name): Use font_open_by_spec.
1545
fb930676
KH
1546 * frame.c (x_set_font): When ARG is a font-object, don't alter the
1547 fontset of the frame.
1548
1549 * fontset.c (Fset_fontset_font): When a font for ASCII is changed,
1550 modify the default font of frames that use this fontset.
1551 (num_auto_fontsets): New variable.
1552 (fontset_from_font): Use num_auto_fontsets to decide a fontset
1553 name. Be sure to set FONTSET_ASCII to the correct font name.
1554 (update_auto_fontset_alist): New function.
1555
df4e8455
JB
15562009-03-11 Juanma Barranquero <lekktu@gmail.com>
1557
1558 * makefile.w32-in: Update dependencies.
1559
0a375797
AR
15602009-03-06 Adrian Robert <Adrian.B.Robert@gmail.com>
1561
1562 * nsfns.m (syms_of_nsfns): Remove Qbuffered.
1563
61313fa3
SM
15642009-03-10 Stefan Monnier <monnier@iro.umontreal.ca>
1565
1566 * buffer.c (Fswitch_to_buffer): Revert part of 2008-10-21's change.
1567
b55103fb
CY
15682009-03-10 Chong Yidong <cyd@stupidchicken.com>
1569
1570 * lread.c (Feval_buffer): Doc fix.
1571
dde2559c
KH
15722009-03-09 Kenichi Handa <handa@m17n.org>
1573
1574 * charset.c (Qfile_name_handler_alist): Extern it.
1575 (load_charset_map_from_file): Temporarily bind
1576 `file-name-handler-alist' to nil while calling openp. (Bug#2435)
1577
df4e8455 15782009-03-06 Aaron Ecay <aaronecay@gmail.com> (tiny change)
340e08a4 1579
47f588bb
GM
1580 * nsterm.m (ns_draw_vertical_window_border): Draw 1 pixel wide,
1581 not two, and use NSRectFill instead of NSDrawGroove. (Bug#2352)
340e08a4 1582
4ddf94bd
AR
15832009-03-06 Adrian Robert <Adrian.B.Robert@gmail.com>
1584
4c9bdfc2
AR
1585 * nsterm.m: Include <signal.h> for SIGTERM used in ns_term_shutdown.
1586 (x_set_window_size): Change back to calculated method of setting
1587 toolbar height under Cocoa. (Bug#2546)
4ddf94bd
AR
1588 (EmacsView-windowWillUseStandardFrame:defaultFrame:): New method.
1589 (EmacsView-drawRect:): Completely shortcircuit if ns_in_resize.
1590
fe41ae9e
AR
1591 * nsfns.m (ns_appkit_version_int): Fix typo in the version macro.
1592
4c9bdfc2
AR
1593 * nsmenu.m (EmacsMenu-addItemWithWidgetValue:): Don't add
1594 accelerator in parens under GNUstep.
1595
825d0875
KH
15962009-03-06 Kenichi Handa <handa@m17n.org>
1597
1598 These changes are to detect incorrect composition sequence without
f3b3be74 1599 looking ahead the source. (Bug#2370)
825d0875
KH
1600
1601 * coding.h: Include "composite.h".
1602 (enum compisition_state): New enum.
1603 (struct compisition_status): New struct.
1604 (struct iso_2022_spec): New member cmp_status.
1605 (struct emacs_mule_spec): New struct.
1606 (struct coding_system): New members ctext_extended_segment_len and
1607 embedded_utf_8. Change the union member
1608 spec.emacs_mule_full_support to spec.emacs_mule.
1609
1610 * coding.c (CODING_ISO_CMP_STATUS): New macro.
1611 (CODING_ISO_EXTSEGMENT_LEN, CODING_ISO_EMBEDDED_UTF_8): New macros.
98a326f7 1612 (MAX_ANNOTATION_LENGTH): Define to 5.
825d0875
KH
1613 (ADD_COMPOSITION_DATA): New arg nbytes.
1614 (emacs_mule_char): New arg cmp_status.
1615 (DECODE_EMACS_MULE_COMPOSITION_CHAR): Delete it.
1616 (DECODE_EMACS_MULE_COMPOSITION_RULE_20): New arg c.
1617 (DECODE_EMACS_MULE_COMPOSITION_RULE_21): New arg c.
1618 (DECODE_EMACS_MULE_21_COMPOSITION): Delete the arg c.
1619 (DECODE_EMACS_MULE_20_RELATIVE_COMPOSITION): Likewise.
1620 (DECODE_EMACS_MULE_20_RULEBASE_COMPOSITION): Likewise.
1621 (DECODE_EMACS_MULE_COMPOSITION_START): New macro.
1622 (EMACS_MULE_COMPOSITION_END): New macro.
1623 (emacs_mule_finish_composition): New function.
1624 (EMACS_MULE_MAYBE_FINISH_COMPOSITION): New macro.
1625 (decode_coding_emacs_mule): Avoid long looking ahead while
1626 handling composition.
1627 (DECODE_COMPOSITION_RULE): Argument changed to rule and nbytes.
1628 (ENCODE_COMPOSITION_RULE): New macro.
1629 (finish_composition): New function.
1630 (MAYBE_FINISH_COMPOSITION): Call finish_composition.
1631 (DECODE_COMPOSITION_START): New implementation.
1632 (DECODE_COMPOSITION_END): Likewise.
1633 (STORE_COMPOSITION_RULE): New macro.
1634 (decode_coding_iso_2022): Avoid long looking ahead while handling
1635 composition, CTEXT extended segment, and embedded UTF-8.
1636 (setup_coding_system): For a coding of type iso-2022, reset
1637 CODING_ISO_EXTSEGMENT_LEN (coding) and
1638 CODING_ISO_EMBEDDED_UTF_8 (coding).
1639 (get_translation): Delete arguments last_block, from_nchars,
1640 to_nchars. Callers changed.
1641 (produce_chars): Don't modify charbuf. Adjusted for the change of
1642 get_translation.
98a326f7 1643 (produce_composition): Adjust for the new annotation sequence.
825d0875 1644 (handle_composition_annotation): Likewise.
98a326f7 1645 (consume_chars): Adjust for the change of get_translation.
825d0875 1646
ccbc4452
AR
16472009-03-05 Adrian Robert <Adrian.B.Robert@gmail.com>
1648
4ddf94bd 1649 * nsterm.m (ns_select): Shortcircuit if reentrant call. (Bug#2564)
ccbc4452 1650
988a7ddb
KH
16512009-03-05 Kenichi Handa <handa@m17n.org>
1652
1653 * font.c (font_select_entity): New function.
1654 (font_find_for_lface): Use font_select_entity to select a font.
1655
1656 * fontset.c (fontset_find_font): If a font found without
a8a3728b 1657 restricting to the characters C doesn't support C, try to find a
988a7ddb
KH
1658 font with C restriction.
1659
98a326f7 16602009-03-04 Nikolaj Schumacher <me@nschum.de>
2f462d73 1661
be1bce46 1662 * nsfont.m (nsfont_draw): Compare ns_antialias_text against lisp value.
2f462d73 1663
10ea2b82
JR
16642009-03-04 Jason Rumney <jasonr@gnu.org>
1665
2c93b248 1666 * w32fns.c (w32_wnd_proc): Only ignore IME messages for the
4891ba1d 1667 characters that have already been read. (Bug#2569)
2c93b248 1668
10ea2b82
JR
1669 * image.c (xbm_read_bitmap_data, png_load, svg_load_image):
1670 Log an error message if check_image_size failed.
1671 (xpm_load_image, pbm_load, jpeg_load, tiff_load, gif_load)
4891ba1d 1672 (gs_load): Mention max-image-size in size error message. (Bug#2560)
10ea2b82 1673
71a0c011
EZ
16742009-03-02 Eli Zaretskii <eliz@gnu.org>
1675
1676 * callproc.c (Fcall_process): Bind inhibit-modification-hooks to t
1677 when decoding process output.
1678
2f63bba8
RS
16792009-03-01 Richard M Stallman <rms@gnu.org>
1680
1681 * m/mips.h (DATA_SEG_BITS, XUINT, XSET): Definitions disabled.
1682
1683 * emacs.c (gdb_data_seg_bits) [USE_LSB_TAG]: Make it 0.
1684
0a9564cb
EZ
16852009-02-28 Eli Zaretskii <eliz@gnu.org>
1686
1687 * coding.c (decode_coding_utf_8, decode_coding_utf_16)
1688 (decode_coding_emacs_mule, decode_coding_iso_2022)
1689 (encode_coding_iso_2022, decode_coding_sjis, decode_coding_big5)
1690 (decode_coding_raw_text, decode_coding_charset)
1691 (setup_coding_system, decode_eol, decode_coding, consume_chars):
1692 Honor inhibit-eol-conversion. (Bug #2186)
1693
449148b3
JR
16942009-02-28 Jason Rumney <jasonr@gnu.org>
1695
1696 * coding.c (detect_coding_charset): If not checking latin extra,
1697 fail on characters between 0x80 and 0xA0. (Bug#2354)
1698
a4aee864
EZ
16992009-02-28 Eli Zaretskii <eliz@gnu.org>
1700
1701 * coding.c (detect_coding_charset): Fix change from 2008-10-21.
2a1573ff 1702 Also, check iso-latin-*, not only iso-8859-*. (Bug#2497)
a4aee864 1703
d88bee5a
GM
17042009-02-27 Glenn Morris <rgm@gnu.org>
1705
1706 * callint.c (Finteractive): Doc fix.
1707
a808f22d
KH
17082009-02-27 Kenichi Handa <handa@m17n.org>
1709
1710 * lread.c (read_escape): Signal an error for invalid \UXXXXXXXX.
1711
caf8d60c
CY
17122009-02-27 Chong Yidong <cyd@stupidchicken.com>
1713
1714 * font.c (font_style_to_value): Set value for unknown symbols to
1715 100 instead of 255.
b61137ea
CY
1716 (weight_table, slant_table, width_table): Treat "unspecified" as
1717 the default value.
caf8d60c 1718
1a0de25c
JB
17192009-02-26 Juanma Barranquero <lekktu@gmail.com>
1720
1721 * fileio.c (Fnext_read_file_uses_dialog_p): Fix typo in docstring.
1722
8fc45744
JB
17232009-02-25 Juanma Barranquero <lekktu@gmail.com>
1724
107bd7d1
JB
1725 * lread.c (Fload): Stop checking Vloads_in_progress and signal
1726 error as soon as a recursive load is detected.
8fc45744 1727
f097e223
AR
17282009-02-24 Adrian Robert <Adrian.B.Robert@gmail.com>
1729
1730 * nsterm.m (ns_ring_bell): Convert rect to window coordinates
1731 before caching.
1732
8810a12f
KH
17332009-02-24 Kenichi Handa <handa@m17n.org>
1734
1735 * fontset.c (fontset_find_font): Fix the condition for checking
1736 unavailable font.
1737
2c7d1565
GM
17382009-02-24 Glenn Morris <rgm@gnu.org>
1739
1740 * xfaces.c (Finternal_set_font_selection_order): Remove leading
1741 whitespace that confuses documentation.
1742
a20878b6
MB
17432009-02-23 Miles Bader <miles@gnu.org>
1744
1745 * process.c (Flist_system_processes, Fprocess_attributes)
1746 (syms_of_process): Rename `system-process-attributes' to
1747 `process-attributes'.
1748
b3b58c01
AS
17492009-02-22 Andreas Schwab <schwab@linux-m68k.org>
1750
1b3b981b
AS
1751 * coding.h (struct coding_system): Make safe_charsets a pointer to
1752 unsigned char.
1753 * coding.c (CODING_ISO_REQUEST): Check for safe_charsets content
1754 being 255.
1755 (SAFE_CHARSET_P): Likewise.
1756 (setup_iso_safe_charsets): Properly setup safe_charsets.
1757 (Fdefine_coding_system_internal): Likewise.
1758 (setup_coding_system): Likewise. Remove unneeded casts.
1759 (detect_coding_iso_2022): Compare Viso_2022_charset_list with
1760 CODING_ATTR_CHARSET_LIST, not CODING_ATTR_SAFE_CHARSETS. Remove
1761 unneeded casts.
1762
b3b58c01
AS
1763 * insdel.c (del_range_2): Don't modify gap contents when called
1764 from decode_coding_object. (Bug#1809)
1765
0b6f228c
CY
17662009-02-21 Chong Yidong <cyd@stupidchicken.com>
1767
1768 * data.c (syms_of_data): Define Qfont_spec, Qfont_entity, and
1769 Qfont_object.
1770 (Ftype_of): Recognize font objects.
1771
1772 * lisp.h: Define Qfont_spec, Qfont_entity, Qfont_object extern.
1773
1774 * font.c (Qfont_spec, Qfont_entity, Qfont_object): Definitions
1775 moved to data.c.
1776
52f8870b
AR
17772009-02-20 Adrian Robert <Adrian.B.Robert@gmail.com>
1778
1779 * nsterm.m (x_make_frame_invisible): Unset async_visible,
1780 async_iconified. Based on a patch by Christian Lynbech
1781 <christian.lynbech@tieto.com>.
1782 (EmacsView-windowDidMiniaturize:): Unset async_visible.
1783
7087d5e9
GM
17842009-02-20 Glenn Morris <rgm@gnu.org>
1785
1786 * syntax.c (Fskip_chars_forward): Fix doc typo.
1787
41d2ceef
CY
17882009-02-20 Chong Yidong <cyd@stupidchicken.com>
1789
1790 * keymap.c (Fkeymap_parent): Doc fix (Bug#2391).
1791
1a3b7ca6
CY
17922009-02-19 Chong Yidong <cyd@stupidchicken.com>
1793
1794 * xfns.c (Fx_create_frame): Give Xft driver a higher priority.
1795
73cce38d
KH
17962009-02-19 Kenichi Handa <handa@m17n.org>
1797
1798 * coding.c (detect_coding): Preserve coding->mode.
2bc550cb 1799 Don't overflow coding->carryover. (Bug#2370)
73cce38d 1800
a51092ee
DN
18012009-02-18 Dan Nicolaescu <dann@ics.uci.edu>
1802
1803 * m/ibmrs6000.h (ADDR_CORRECT): Restore, removed by mistake on 2008-07-23.
1804
c423ecca
KH
18052009-02-18 Kenichi Handa <handa@m17n.org>
1806
1807 * font.c (font_check_otf_features): Fix handling of `nil' element.
1808 (Ffont_spec): Describe :lang and :otf in the docstring.
1809
4c1958f4
AS
18102009-02-16 Andreas Schwab <schwab@suse.de>
1811
1812 * coding.c (Fcheck_coding_systems_region): Fix test for unibyte
1813 string.
1814
5704f39a
KH
18152009-02-16 Kenichi Handa <handa@m17n.org>
1816
1817 * coding.c (Fcheck_coding_systems_region): Fix typo; Qt -> Qnil.
a057d86a 1818 (Bug#1723)
5704f39a 1819
8f0085aa
CY
18202009-02-14 Chong Yidong <cyd@stupidchicken.com>
1821
a057d86a 1822 * dispextern.h (struct iterator_stack_entry): New line_wrap member.
8f0085aa
CY
1823
1824 * xdisp.c (push_it, pop_it): Save and restore line_wrap.
1825 (handle_line_prefix): Suppress wrapping of wrap prefixes.
1826
aff01dd9
EZ
18272009-02-14 Eli Zaretskii <eliz@gnu.org>
1828
1829 * msdos.c (MAX_SCREEN_BUF): New macro.
1830 (IT_write_glyphs): Make screen_buf[] always be MAX_SCREEN_BUF-long.
1831 Encode the entire run of glyphs sharing the same face, instead of
1832 doing that one glyph at a time (fixes a bug with displaying
1833 double-size characters).
1834
ba301db3
AR
18352009-02-13 Adrian Robert <Adrian.B.Robert@gmail.com>
1836
1837 * nsfns.m (ns-read-file-name): BLOCK_INPUT while showing dialog.
1838
1839 * nsmenu.m (pop_down_menu): Check popup_activated_flag.
1840 (ns_popup_dialog, EmacsDialogPanel-runDialogAt:): Let
a057d86a 1841 pop_down_menu do the cleanup work as it is always called. (Bug#2154)
ba301db3
AR
1842
1843 * nsfont.m (nsfont_make_fontset_for_font): For now, don't try to
a057d86a 1844 set fontset font for "mathematical-" sub-scripts. (Bug #2218)
ba301db3 1845
51d861de
SM
18462009-02-12 Stefan Monnier <monnier@iro.umontreal.ca>
1847
1848 * keyboard.c (adjust_point_for_property): Allow stopping betwen two
1849 invisible areas.
1850
7fed8996
JR
18512009-02-12 Jason Rumney <jasonr@gnu.org>
1852
631ea4fb
JR
1853 * w32font.c (check_face_name): Check for fake helv. (Bug#2275)
1854 (add_font_entity_to_list): Call check_face_name even when family
1855 is unspecified.
1856
cb4a3e42
JR
1857 * w32term.c (x_display_pixel_height, x_display_pixel_width):
1858 Release DC when finished. Use NULL window to refer to desktop.
631ea4fb 1859 (w32_term_init): Use NULL window to refer to desktop. (Bug#460)
cb4a3e42 1860
7fed8996 1861 * w32font.c (add_font_entity_to_list): Fix check for substituted
631ea4fb 1862 raster fonts. (Bug#2219)
7fed8996 1863
895416e3
KH
18642009-02-12 Kenichi Handa <handa@m17n.org>
1865
1866 * composite.c (MAX_AUTO_COMPOSITION_LOOKBACK): New macro.
1867 (composition_gstring_width): Fix handling of LGLYPH_YOFF.
1868 (autocmp_chars): Use fast_looking_at. Don't compose more
1dacf998 1869 characters than MAX_COMPOSITION_COMPONENTS.
895416e3
KH
1870 (find_automatic_composition): While looking forward and backward,
1871 check static composition. Fix where to stop looking forward.
1872 (composition_adjust_point): Fix checking of static composition.
1873 (Fcomposition_get_gstring): Pay attention to
1dacf998 1874 MAX_COMPOSITION_COMPONENTS.
895416e3
KH
1875
1876 * lisp.h (fast_looking_at): Extern it.
1877
1878 * search.c (fast_looking_at): New function.
1879
51d861de 1880 * term.c (encode_terminal_code): Adjust for the change of
895416e3
KH
1881 <struct glyph>.u.cmp.to.
1882 (append_composite_glyph): Likewise.
1883
51d861de 1884 * xdisp.c (fill_gstring_glyph_string): Adjust for the change of
895416e3
KH
1885 <struct glyph>.u.cmp.to. Check if the glyph belongs to the same
1886 composition.
51d861de 1887 (append_composite_glyph): Adjust for the change of
895416e3
KH
1888 <strcut glyph>.u.cmp.to.
1889
8510724d
JB
18902009-02-11 Juanma Barranquero <lekktu@gmail.com>
1891
1892 * casetab.c (init_casetab_once):
1893 * coding.c (ALLOC_CONVERSION_WORK_AREA):
1894 * font.c (font_update_lface):
1895 * fontset.c (Fnew_fontset):
1896 * ftfont.c (ftfont_drive_otf):
1897 * xfont.c (xfont_open):
1898 * xftfont.c (xftfont_get_xft_draw): Remove spurious semicolons.
1899
294fa707
SM
19002009-02-11 Stefan Monnier <monnier@iro.umontreal.ca>
1901
1902 * fileio.c (Fwrite_region): !NILP -> CONSP.
1903
b5bfebec
AS
19042009-02-10 Andreas Schwab <schwab@suse.de>
1905
1906 * process.c (send_process): Properly relocate pointer into data
adab88bd 1907 when using encoded data. (Bug#2272)
b5bfebec 1908
cb84a2be
KH
19092009-02-08 ARISAWA Akihiro <ari@mbf.sphere.ne.jp>
1910
1911 * coding.c (detect_coding_charset): Fix previous change.
1912
89e09428
JR
19132009-02-08 Jason Rumney <jasonr@gnu.org>
1914
1915 * w32fns.c (w32_hide_hourglass): Handle case where frame
adab88bd 1916 disappeared while hourglass was displayed. (Bug #2193)
89e09428 1917
4470a277
AS
19182009-02-07 Andreas Schwab <schwab@suse.de>
1919
1920 * unexelf.c (unexec): Fix error message.
1921
3175b12a
AR
19222009-02-07 Adrian Robert <Adrian.B.Robert@gmail.com>
1923
1924 * nsterm.m (EmacsApp-sendEvent:): Defer NSApplicationDefined event
adab88bd 1925 when modal window is active. (Bug #2152)
3175b12a
AR
1926 (applicationShouldTerminate:): Remove now-unneeded while loop
1927 around NSRunAlertPanel.
1928
1929 * nsmenu.m (popupSession): New file-global variable.
1930 (pop_down_menu): End the popupSession before closing dialog.
1931 (ns_popup_dialog): BLOCK_INPUT around dialog presentation.
1932 (EmacsDialogPanel-runDialogAt:): Don't place window (superfluous),
1933 don't query NSApp for events (just sleep instead).
1934
8434d0b8
EZ
19352009-02-07 Eli Zaretskii <eliz@gnu.org>
1936
51d861de
SM
1937 * coding.c (syms_of_coding) <translation-table-for-input>:
1938 Modify doc string to discourage use for character code unification.
8434d0b8 1939
aa82edfd
CY
19402009-02-07 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
1941
1942 * atimer.c (run_timers): Update pending_atimers.
1943
2d283c7c
CY
19442009-02-06 Chong Yidong <cyd@stupidchicken.com>
1945
eb306cab
CY
1946 * image.c (svg_load_image): Fix last change.
1947
2d283c7c
CY
1948 * xfns.c (Fx_create_frame): Signal an error if no font is
1949 found (Bug#2147).
1950
4d8e170e
JB
19512009-02-05 Juanma Barranquero <lekktu@gmail.com>
1952
1953 * character.c (syms_of_character) <script-representative-chars>:
1954 Fix typo in docstring.
1955
c96169a0
AR
19562009-02-04 Adrian Robert <Adrian.B.Robert@gmail.com>
1957
1958 * nsmenu.m (pop_down_menu): New function.
1959 (ns_popup_dialog): Call it on unwind.
1960 (EmacsDialogPanel-runDialogAt:): Check popup_activated_flag and
1961 call timer_check() (Bug#2154).
1962 (EmacsMenu-menuNeedsUpdate:): Don't call ns_update_menu if
1963 handling_signal is set.
1964 (EmacsMenu-fillWithWidgetValue:): Set submenu title.
1965
1966 * config.in: Get rid of COCOA_EXPERIMENTAL_CTRL_G
1967
1968 * s/darwin.h: Same and NO_SOCK_SIGIO as well.
1969
1970 * nsterm.m (ns_read_socket): Same and don't set handling_signal.
1971
51d861de
SM
1972 * keyboard.c (poll_for_input_1, handle_async_input):
1973 Set handling_signal under HAVE_NS.
c96169a0 1974
aacd8ba1
GM
19752009-02-04 Glenn Morris <rgm@gnu.org>
1976
1977 * fileio.c (Fwrite_region): Doc fix (mention annotate-functions).
1978
4cb75c4b
KH
19792009-02-04 Kenichi Handa <handa@m17n.org>
1980
1981 * Makefile.in (composite.o): Depends on frame.h and termhooks.h.
1982
1983 * charset.c (Fchar_charset): New optional arg restriction.
1984
1985 * coding.h (coding_system_charset_list): Extern it.
1986
1987 * coding.c (coding_system_charset_list): New function.
1988
1989 * composite.c: Include coding.h and termhooks.h.
1990 (composition_gstring_p): Fix for the terminal case.
1991 (composition_gstring_width): Likewise.
1992 (fill_gstring_body): Likewise.
1993 (autocmp_chars): For terminal, call Fcomposition_get_gstring with
1994 the frame.
1995 (composition_compute_stop_pos): Adjust cmp_it->stop_pos if point
1996 is within a composition.
867d4bb3 1997 (Fcomposition_get_gstring): Fix the terminal case.
4cb75c4b
KH
1998
1999 * term.c (encode_terminal_code): Fix handling of composition.
2000 (produce_composite_glyph): For static composition, get pixel_width
2001 from struct composition.
2002
826ba17e
AS
20032009-02-02 Andreas Schwab <schwab@suse.de>
2004
2005 * unexelf.c (unexec): Handle unaligned bss offset.
2006
8ad093db
AR
20072009-02-01 Adrian Robert <Adrian.B.Robert@gmail.com>
2008
2009 * nsterm.m (ns_read_socket): Copy 2009-01-29 and 2009-01-30
2010 XT,w32read_socket changes to ns_read_socket.
d0a76a6e 2011
8ad093db
AR
2012 * keyboard.c (handle_interrupt): Don't call
2013 quit_throw_to_read_char() under NS.
d0a76a6e 2014
8ad093db
AR
2015 * blockinput.h: Remove NS-specific code.
2016
4d18a7a2
DN
20172009-01-30 Dan Nicolaescu <dann@ics.uci.edu>
2018
db878925
DN
2019 * dispnew.c (window_change_signal): Don't try to get the size of a
2020 suspended tty frame.
2021 * term.c (Fresume_tty): Resize if the size has changed while the
2022 tty was suspended.
2023
4d18a7a2
DN
2024 * alloc.c (mark_stack): Properly conditionalize previous change.
2025
8984df7c
JB
20262009-01-30 Juanma Barranquero <lekktu@gmail.com>
2027
2028 * w32inevt.c (w32_console_read_socket) [SYNC_INPUT]:
2029 * w32term.c (w32_read_socket) [SYNC_INPUT]:
2030 Remove; this code is not used on Windows.
2031
75f4f1ac
EZ
20322009-01-30 Eli Zaretskii <eliz@gnu.org>
2033
2034 * coding.c (detect_eol, decode_eol): Handle text with DOS-style
2035 EOLs that also has stray ^M characters.
2036
07a1e794
JB
20372009-01-30 Juanma Barranquero <lekktu@gmail.com>
2038
2039 * atimer.c (run_timers, alarm_signal_handler):
2040 * keyboard.c (pending_signals, handle_async_input, init_keyboard):
2041 * w32inevt.c (w32_console_read_socket):
2042 * w32term.c (w32_read_socket):
2043 * xterm.c (XTread_socket): Use "#ifdef SYNC_INPUT" where appropriate.
2044
a8b11cc9
CY
20452009-01-30 Chong Yidong <cyd@stupidchicken.com>
2046
2047 * callproc.c (Vtemp_file_name_pattern): Remove DEFVAR_LISP.
2048 Initialize it as a relative filename pattern.
2049 (init_callproc): Don't initialize Vtemp_file_name_pattern here.
2050 (Fcall_process_region): Simplify temp file creation using
2051 temporary-file-directory.
2052
c279587b
EZ
20532009-01-29 Eli Zaretskii <eliz@gnu.org>
2054
2055 * msdos.c: Rename pending_signals to msdos_pending_signals.
2056 (sig_suspender, sigprocmask): Adjust.
2057
a8fe3242
CY
20582009-01-29 Chong Yidong <cyd@stupidchicken.com>
2059
2060 * keyboard.c (pending_signals): New var.
2061 (poll_for_input, input_available_signal, init_keyboard): Set it.
2062 (process_pending_signals): New function.
2063
2064 * lisp.h (QUIT): Check pending_signals instead of
2065 interrupt_input_pending. Use process_pending_signals.
2066
51d861de 2067 * atimer.c (run_timers, alarm_signal_handler): Update pending_signals.
a8fe3242 2068
51d861de 2069 * process.c (wait_reading_process_output): Use process_pending_signals.
a8fe3242
CY
2070
2071 * sysdep.c (emacs_write): Use process_pending_signals.
2072
2073 * xterm.c (XTread_socket): Update pending_signals.
2074
2075 * w32term.c (w32_read_socket): Update pending_signals.
2076
2077 * w32inevt.c (w32_console_read_socket): Update pending_signals.
2078
6570a1c4
KH
20792009-01-29 Kenichi Handa <handa@m17n.org>
2080
2081 * xftfont.c (xftfont_has_char): New function.
2082 (syms_of_xftfont): Register xftfont_has_char in xftfont_driver.
2083
d72a4afa
AR
20842009-01-29 Adrian Robert <Adrian.B.Robert@gmail.com>
2085
2086 * nsterm.h (EmacsPrefsController.cursorBlinkSlider): Only define
2087 under GNUstep.
2088 (ns_query_color): New declaration.
2089
2090 * nsterm.m (ns_confirm_quit): New variable.
2091 (ns_set_default_prefs, syms_of_nsterm, ns_term_init): Initialize it.
2092 (EmacsApp-applicationShouldTerminate:): Use it.
2093 (EmacsPrefsController): Let user set it.
2094 (ns_query_color): New function.
2095 (ns_defined_color): Use it.
2096 (ns_initialize): Drop.
2097 (ns_term_init): Add two lines from ns_initialize(), and set
2098 input_interrupt_mode to nil.
2099
2100 * image.c (svg_load_image): Don't right-shift background RGB when
6af84d77 2101 obtained from FRAME_BACKGROUND_PIXEL. Under HAVE_NS use ns_query_color.
d72a4afa 2102
9fe78804
KH
21032009-01-28 Kenichi Handa <handa@m17n.org>
2104
2105 * fontset.c (font_for_char): Use assq_no_quit, not assoc_no_quit.
f088b054
KH
2106 (fontset_get_font_group): Remember that no font-group is specified
2107 for C.
9fe78804 2108
fa57de36
CY
21092009-01-27 Chong Yidong <cyd@stupidchicken.com>
2110
930600e9
CY
2111 * fns.c (concat): Check for string overflow (bug#1787).
2112
fa57de36
CY
2113 * undo.c (undo_limit, undo_strong_limit, Vundo_outer_limit):
2114 Quadruple undo limits (bug#1501).
2115
7179ce7b
KH
21162009-01-27 Kenichi Handa <handa@m17n.org>
2117
2118 * ftfont.c (ftfont_has_char): If the arg FONT is a font-object,
2119 directly use GT_Get_Char_index.
2120
2121 * xftfont.c (struct xftfont_info): New member `index'.
2122
2123 * fontset.c (font_for_char): Use assq_no_quit, not assoc_no_quit.
51d861de 2124 (Ffontset_font): Adjust for the change of fontset entry.
7179ce7b 2125
5be8fcc0
CY
21262009-01-26 Kenichi Handa <handa@m17n.org>
2127
2128 * fontset.c (fontset_find_font): Fix handling of non-cons return
2129 value of fontset_get_font_group.
2130 (fontset_font): Revert last change.
2131
19ae3e61
JR
21322009-01-26 Jason Rumney <jasonr@gnu.org>
2133
2134 * w32font.c (w32font_list_internal): Return quickly if registry is
2135 unknown. Simplify final return.
2136 (add_font_entity_to_list): Break complex logic down into more
2137 manageable chunks. Move unknown registry check to
2138 w32font_list_internal.
2139
8612b71a
AR
21402009-01-25 Adrian Robert <Adrian.B.Robert@gmail.com>
2141
2142 Changes to remove Feval calls from GUI under NS.
2143
d8038940
JB
2144 * nsterm.h: Move KEY_NS_... definitions here from nsterm.m.
2145 Add NS_TOGGLE_TOOLBAR, NS_PUT_WORKING_TEXT, NS_UNPUT_WORKING_TEXT.
8612b71a
AR
2146 Remove NS_INSERT_WORKING_TEXT, NS_DELETE_WORKING_TEXT.
2147
2148 * nsterm.m: Move KEY_NS_... definitions to nsterm.h.
2149 (EmacsView-toggleToolbar:): Use KEY_NS_TOGGLE_TOOLBAR.
2150 (EmacsView-setMarkedText:,-deleteWorkingText:): Use NS_TEXT_EVENT
2151 instead of NON_ASCII_KEYSTROKE_EVENT.
2152 (EmacsApp-terminate:): Use KEY_NS_POWER_OFF instead of Feval.
2153 (EmacsApp-applicationShouldTerminate:): Query user.
2154 (EmacsPreferencesController-runHelp:): Use KEY_NS_INFO_PREFS
2155 instead of Feval.
2156
2157 * termhooks.h (NS_TEXT_EVENT): New event type under HAVE_NS.
2158
2159 * keyboard.c (kbd_buffer_get_event): Check for it.
2160 (keys_of_keyboard): Define lispy keys for
2161 ns-put/unput-working-text.
2162
2163 * nsmenu.m (ns_popup_dialog): Resync window setting with X and W32
2164 versions.
2165 (EmacsDialog-runDialogAt:): Use NSModalPanelRunLoopMode.
2166
6288ae55
CY
21672009-01-25 Chong Yidong <cyd@stupidchicken.com>
2168
2169 * dispnew.c (buffer_posn_from_coords): Use Fset_buffer instead of
64cc3cf6 2170 setting current_buffer directly. (Bug#2044)
6288ae55 2171
289e7f8f
CY
21722009-01-24 Chong Yidong <cyd@stupidchicken.com>
2173
5ce87308 2174 * fontset.c (fontset_font): If we know there is no font, don't do
d8038940 2175 any work. (Bug#1952, bug#1990).
5ce87308 2176
64cc3cf6 2177 * font.c (font_parse_xlfd): Handle patterns of length < 2. (Bug#1802)
289e7f8f 2178
b3243e6f
AR
21792009-01-23 Adrian Robert <Adrian.B.Robert@gmail.com>
2180
2181 * emacs.c (main): Do fork+exec under --daemon in Cocoa.
d900b2af
AR
2182 (ns_no_defaults): New declaration.
2183 (main): Use it.
e0d2e69a 2184
d900b2af 2185 * nsterm.h (ns_no_defaults): New declaration.
e0d2e69a 2186
d900b2af 2187 * nsfns.m (x_get_string_resource): Don't read when ns_no_defaults.
e0d2e69a 2188
d900b2af
AR
2189 * nsterm.m (ns_no_defaults): New variable.
2190 (ns_initialize): Don't read defaults when ns_no_defaults.
2191 (EmacsView-readSelectionFromPasteboard:)
2192 (writeSelectionToPasteboard:types:): New stubbed-out methods for
d8038940 2193 NSServicesRequests protocol. (Bug#1435)
27521ca6
AR
2194 (ns_dumpglyphs_stretch): New function.
2195 (ns_draw_glyph_string): Use it, parallel Yamamoto Mitsuharu change
d8038940 2196 of 2008-11-15 to other terms. (Bug#615)
b3243e6f 2197
e0d2e69a
AR
2198 * nsimage.m (setPixmapData:): Set to ignore image DPI.
2199
3ac71f5d
CY
22002009-01-23 Giorgos Keramidas <keramida@freebsd.org> (tiny change)
2201
2202 * alloc.c (mark_stack): Use "flushw" instead of "ta 3" assembly
2203 call for Sparc64.
2204
3fe53a83
AR
22052009-01-22 Adrian Robert <Adrian.B.Robert@gmail.com>
2206
2207 * nsfns.m:
2208 * nsgui.h:
2209 * nsmenu.m:
2210 * nsselect.m:
2211 * nsterm.h:
2212 * nsterm.m: Remove '23' comments that indicated code added during
2213 update from emacs-20 -> emacs-23.
2214
10f87c6f 22152009-01-22 Adrian Robert <Adrian.B.Robert@gmail.com>
a3b53a85
AR
2216
2217 * nsterm.m (EmavsView-keyDown:): Treat nil as Qnone for
3a88a825 2218 ns_alternate_modifier. (Bug#1217)
a3b53a85 2219
c7cef62d
AR
2220 * nsmenu.m (EmacsMenu-parseKeyEquiv:, addItemWithWidgetValue:):
2221 Display all shortcuts, including those w/o super modifier.
2222
575fb8bd
AR
2223 * nsfns.m (ns-read-file-name): Fix typo in assignment statement.
2224
918b848b
CY
22252009-01-22 Chong Yidong <cyd@stupidchicken.com>
2226
2227 * fileio.c (Vwrite_region_post_annotation_function)
2228 (Vwrite_region_annotation_buffers): New vars.
2229 (build_annotations_unwind): Just reset
2230 Vwrite_region_annotation_buffers.
2231 (Fwrite_region): Initialize Vwrite_region_annotation_buffers.
2232 Call write-region-post-annotation-function.
2233 (build_annotations): Add to Vwrite_region_annotation_buffers if
2234 buffer changes.
2235
a39e2539
AR
22362009-01-21 Adrian Robert <Adrian.B.Robert@gmail.com>
2237
2238 * nsterm.h (EmacsApp-setAppleMenu:): Conditionalize more correctly on
2239 Tiger.
51d861de
SM
2240 * nsfns.m (ns_do_applescript):
2241 Conditionalize typeUTF16ExternalRepresentation on Tiger.
a39e2539 2242
35ed44db
AR
22432009-01-21 Wolfgang Lux <wolfgang.lux@gmail.com> (tiny change)
2244
2245 * nsterm.m (EV_TRAILER): Always use emacsframe for frame_or_window.
2246
cbe0b5bf
AR
22472009-01-21 Adrian Robert <Adrian.B.Robert@gmail.com>
2248
2249 * nsmenu.m (NSMENUPROFILE): Change #if style.
4c7077c3 2250
6049d3a0
AR
2251 * nsterm.h (EmacsPrefsController): Add -setPanelFromDefaultValues.
2252
2253 * nsterm.m (x_set_frame_alpha): Add prototype.
a9b4df69
AR
2254 (ns_fake_keydown, EmacsView-keyUp:): New variable and function to
2255 handle Ctrl-tab. (Bug#1841)
2256 (ns_get_color): Use unsigned long long for scanned hex string value.
2257 (ns_term_shutdown): Abort on non SIGTERM signals.
e889fa06 2258 (EmacsPrefsController-setDefaultFont:,-setColors:): Raise the frame.
b71ac3dd 2259 (EmacsPrefsController-setPanelFromDefaultValues): New function.
3a88a825 2260 (EmacsPrefsController-resetToDefaults:): Use it. (Bug#1801)
35ed44db 2261 (ns_font_to_xlfd, ns_fontname_to_xlfd): Remove, unused.
d3810c21 2262 (ns_defined_color): Fix settings of the XColor variable fields:
3a88a825 2263 red,green,blue scale to 2-byte, pixel's parts to 1-byte. (Bug#1663)
cbe0b5bf 2264
d3810c21 2265 * nsimage.m (EmacsImage+allocInitFromFile:): Set to ignore image
3a88a825 2266 DPI. (Bug#1316)
d3810c21
AR
2267 (EmacsImage-setPixelAtX:Y:toRed:green:blue:alpha:): Fix color
2268 values in onTiger section.
4c7077c3 2269
e301e634
CY
22702009-01-19 Chong Yidong <cyd@stupidchicken.com>
2271
7f82490b
CY
2272 * xfaces.c (Finternal_set_lisp_face_attribute, Fx_list_fonts):
2273 Check return value of font_spec_from_name.
64cc3cf6 2274 (Fx_list_fonts): Doc fix. (Bug#1951)
7f82490b
CY
2275
2276 * font.c (font_spec_from_name): Return Qnil if font name could not
2277 be parsed.
2278 (font_parse_name): Treat a `?' character as part of an XLFD.
2279
e301e634
CY
2280 * fns.c (Fsubstring): Doc fix.
2281
1c0db158
KH
22822009-01-19 Kenichi Handa <handa@m17n.org>
2283
51d861de 2284 * ftfont.c (ftfont_lookup_cache): Check the return value of FcFontList.
1c0db158
KH
2285 (ftfont_list): Likewise.
2286
acf20901
JB
22872009-01-18 Juanma Barranquero <lekktu@gmail.com>
2288
fff4e459
JB
2289 * dbusbind.c (Fdbus_register_signal):
2290 * process.c (conv_sockaddr_to_lisp):
2291 * w32fns.c (Fw32_battery_status): Use empty_unibyte_string.
2292
acf20901
JB
2293 * callproc.c (Fgetenv_internal): Doc fix.
2294
e7abcdfb
CY
22952009-01-16 Chong Yidong <cyd@stupidchicken.com>
2296
2297 * xfns.c (x_make_gc): Don't allocate stipple member for gc_values;
2298 it is not even used.
2299
b60861e6
GM
23002009-01-16 Glenn Morris <rgm@gnu.org>
2301
2302 * font.c (Ffont_variation_glyphs): Silence compiler.
2303
8db52afe
JB
23042009-01-15 Juanma Barranquero <lekktu@gmail.com>
2305
2306 * sound.c (SOUND_WARNING): Use _snprintf, for MSVC compatibility.
2307 Reported by David Robinow <drobinow@gmail.com>.
2308
4cddb209
KH
23092009-01-15 Kenichi Handa <handa@m17n.org>
2310
51d861de 2311 * coding.c (detect_coding_system): Fix handling of null_byte_found.
4cddb209 2312
f247f67b
JR
23132009-01-14 Jason Rumney <jasonr@gnu.org>
2314
2315 * frame.c (x_set_font): Always store a font to the font parameter,
fff4e459 2316 never a fontset. (Bug#1562)
f247f67b 2317
f56a4450
KH
23182009-01-14 Kenichi Handa <handa@m17n.org>
2319
2320 * coding.c (TWO_MORE_BYTES): New macro.
fff4e459 2321 (detect_coding_utf_16): Use TWO_MORE_BYTES instead of ONE_MORE_BYTE.
f56a4450 2322
4e99855e
CY
23232009-01-13 Chong Yidong <cyd@stupidchicken.com>
2324
2325 * font.c (font_clear_prop): If clearing the family, clear the font
2326 width index too.
2327
fff4e459 2328 * xfaces.c (Finternal_set_lisp_face_attribute): Revert last change.
4e99855e 2329
24f01470
JB
23302009-01-12 Juanma Barranquero <lekktu@gmail.com>
2331
2332 * sound.c [WINDOWSNT] (SOUND_WARNING): New macro.
2333 (do_play_sound): Use it. Don't pass a hardcoded buffer size to mci
2334 functions, use sizeof.
2335
a41240a3
MR
23362009-01-12 Martin Rudalics <rudalics@gmx.at>
2337
2338 * keyboard.c (read_char): Fix case where last_nonmenu_event
2339 returned a bad value with submenus. (Bug#447)
2340
944636b8
CY
23412009-01-12 Chong Yidong <cyd@stupidchicken.com>
2342
2343 * xfaces.c (Finternal_set_lisp_face_attribute): If setting the
2344 family, clear the font width index too.
2345
0dad7c6f
JR
23462009-01-11 Jason Rumney <jasonr@gnu.org>
2347
2348 * keyboard.c (cmd_error_internal): Exit when errors occur before
2349 frame creation and not in daemon mode. (Bug#1836)
2350
7c2363af
CY
23512009-01-10 Chong Yidong <cyd@stupidchicken.com>
2352
2353 * xdisp.c (pos_visible_p): When iterator stops on the last glyph
2354 of a display vector, backtrack.
2355 (try_window_reusing_current_matrix): Check glyph type before
2356 referencing charpos member.
2357
97b1b294
EZ
23582009-01-10 Eli Zaretskii <eliz@gnu.org>
2359
2360 Fix Bug #876:
2361
2362 * coding.c (inhibit_null_byte_detection): New variable.
2363 (detect_coding, detect_coding_system): Don't pay attention to null
2364 bytes if inhibit_null_byte_detection is non-zero.
51d861de 2365 (syms_of_coding) <inhibit-null-byte-detection>: Declare and document.
97b1b294
EZ
2366 <inhibit-iso-escape-detection>: Doc fix.
2367
4624b6e3
JR
23682009-01-09 Jason Rumney <jasonr@gnu.org>
2369
2370 * w32font.c (add_font_entity_to_list): Don't report unknown
fff4e459 2371 Windows charset as any unrecognized registry. (Bug#1548)
4624b6e3
JR
2372 Only report Unicode Plane 2 fonts as unicode-sip.
2373
323b840c
CY
23742009-01-09 Chong Yidong <cyd@stupidchicken.com>
2375
51d861de
SM
2376 * xfaces.c (Fx_font_family_list): Delete function.
2377 Move compatibility version to faces.el.
323b840c 2378
51d861de 2379 * font.c (Ffont_family_list): Return a list of strings, not symbols.
323b840c 2380
eba7400d
MR
23812009-01-09 Martin Rudalics <rudalics@gmx.at>
2382
2383 * frame.c (x_set_frame_parameters): Remember requested value for
2384 fullscreen before it's reset by the parameter handler.
2385
4b09796d
GM
23862009-01-09 Glenn Morris <rgm@gnu.org>
2387
2388 * keyboard.c (last_command_char): For clarity, rename to...
46e722a9 2389 (last_command_event): ... and update all users.
4b09796d
GM
2390 (last_input_char): For clarity, rename to...
2391 (last_input_event): ... and update all users.
2392 (last-command-char, last-input-char): Move to subr.el as aliases.
2393 * cmds.c, commands.h: Update for last_command_char rename.
2394
14ccea62
CY
23952009-01-08 Chong Yidong <cyd@stupidchicken.com>
2396
51d861de 2397 * font.c (font_open_for_lface): Handle unspecified height attribute.
14ccea62 2398
5f004711
JR
23992009-01-08 Jason Rumney <jasonr@gnu.org>
2400
2401 * w32fns.c (Vx_pointer_shape, Vx_nontext_pointer_shape)
2402 (Vx_mode_pointer_shape, Vx_window_horizontal_drag_shape)
2403 (Vx_hourglass_pointer_shape, Vx_sensitive_text_pointer_shape):
2404 Don't declare.
fff4e459 2405 (syms_of_w32fns): Don't define x-pointer-shape variable. (Bug#1485)
5f004711
JR
2406 (x_create_tip_frame) [GLYPH_DEBUG]: Enable image debugging code.
2407
b71f6f73
KH
24082009-01-07 Kenichi Handa <handa@m17n.org>
2409
50b06221 2410 * fileio.c (Finsert_file_contents): In the case of replace,
f56a4450 2411 remember the coding system used for decoding in
50b06221
KH
2412 coding_system (Bug#1039).
2413
b71f6f73 2414 * coding.c (decode_coding_utf_8): Check byte_after_cr before
79a97217 2415 breaking the loop. (Bug#870)
b71f6f73
KH
2416 (decode_coding_utf_16, decode_coding_emacs_mule)
2417 (decode_coding_iso_2022, decode_coding_sjis, decode_coding_big5)
2418 (decode_coding_charset): Likewise.
2419
56f668f7
MR
24202009-01-05 Martin Rudalics <rudalics@gmx.at>
2421
2422 * frame.c (x_set_frame_parameters): Make sure height (width) get
2423 applied when fullwidth (fullheight) is set. (Bug#1522)
2424
5da9424d
JB
24252009-01-04 Juanma Barranquero <lekktu@gmail.com>
2426
2427 * w32.c: Use 64-bit arithmetic to do FILETIME conversions. (Bug#1766)
2428 (utc_base): Declare as ULONGLONG, not long double.
2429 (convert_time_raw): Delete.
2430 (FILETIME_TO_U64, U64_TO_LISP_TIME): New macros.
2431 (initialize_utc_base): New function.
2432 (convert_time): Use FILETIME_TO_U64, initialize_utc_base.
2433 (convert_from_time_t): Use initialize_utc_base; compute result with
2434 64-bit arithmetic.
2435 (process_times): Use FILETIME_TO_U64, U64_TO_LISP_TIME.
2436
c4605e09
EZ
24372009-01-03 Eli Zaretskii <eliz@gnu.org>
2438
9acef61c 2439 * process.c (Qeuid, Qegid, Qcomm, Qstate, Qppid, Qpgrp, Qsess)
c4605e09
EZ
2440 (Qttname, Qminflt, Qmajflt, Qcminflt, Qcmajflt, Qutime, Qstime)
2441 (Qcutime, Qpri, Qnice, Qthcount, Qstart, Qvsize, Qrss, Qargs)
2442 (Quser, Qgroup, Qetime, Qpcpu, Qpmem, Qtpgid, Qcstime)
2443 [!subprocesses]: Define.
2444 (syms_of_process) [!subprocesses]: Intern and staticpro them.
2445 (Flist_system_processes, Fsystem_process_attributes)
2446 [!subprocesses]: Call list_system_processes and
2447 system_process_attributes instead of returning Qnil.
2448
9acef61c
JB
2449 * dosfns.c (system_process_attributes, list_system_processes):
2450 New functions.
c4605e09
EZ
2451
2452 * vm-limit.c (ret_lim_data) [MSDOS]: New function.
2453
2454 * sysdep.c (list_system_processes, system_process_attributes) [MSDOS]:
2455 Don't use the default (no-op) implementation.
2456
8b7d0a16
JR
24572009-01-03 Jason Rumney <jasonr@gnu.org>
2458
a6d46bc1
JR
2459 * keyboard.c (parse_modifiers_uncached): Wheel events are
2460 clicks (bug#687).
2461
8b7d0a16
JR
2462 * w32term.c (x_query_colors, x_query_color): New functions.
2463
2464 * image.c (x_to_xcolors, png_load): Eliminate W32 specific code.
2465 (svg_load_image): Cast returned pointers from dynamically loaded
2466 functions. Eliminate W32 specific code.
2467
bfe11752
DN
24682009-01-02 Dan Nicolaescu <dann@ics.uci.edu>
2469
89e2438a
DN
2470 * nsfns.m (x_set_foreground_color, x_set_background_color)
2471 (x_set_cursor_color, x_set_icon_name, x_explicitly_set_name)
2472 (x_set_title, x_set_icon_type, x_set_cursor_type): Rename to use
2473 x_ prefix instead of ns_. Update references.
2474 (syms_of_nsfns): Add a FIXME comment.
2475
2476 * nsterm.m (x_set_cursor_type): New prototype.
2477 (setValuesFromPanel): Use it instead of the old ns_ prefixed name.
2478
bfe11752
DN
2479 * sysdep.c (system_process_attributes): Provide Qtime and Qctime
2480 for Solaris instead of incorrectly providing Qutime and Qcutime.
2481
031da700
EZ
24822009-01-02 Eli Zaretskii <eliz@gnu.org>
2483
2484 * w32.c (process_times): Compute sum of utime and stime.
2485 (system_process_attributes): Add Qtime to the alist.
2486
2487 * sysdep.c (system_process_attributes): Compute Qtime and Qctime
2488 and add them to the alist.
2489
2490 * process.c (top level) <Qtime, Qctime>: New variables.
2491 (syms_of_process): staticpro them.
2492 (Fsystem_process_attributes): Add their documentation to the doc
2493 string.
2494
2495 * process.h: Declare Qtime and Qctime.
2496
df23bf08
JR
24972009-01-02 Jason Rumney <jasonr@gnu.org>
2498
9acef61c 2499 * image.c (Qgobject): New symbol.
df23bf08
JR
2500 (syms_of_image): Initialize it.
2501 (init_svg_functions): Load some functions from gobject library.
2502
5bbdf7aa
DN
25032009-01-01 Dan Nicolaescu <dann@ics.uci.edu>
2504
2505 * frame.c (make_terminal_frame): Remove redundant code and useless
2506 block.
2507
63136da6
AS
25082009-01-01 Andreas Schwab <schwab@suse.de>
2509
2510 * process.c (conv_sockaddr_to_lisp): Add workaround for
2511 getsockname bug on BSD.
2512
9ef69046
CY
25132009-01-01 Chong Yidong <cyd@stupidchicken.com>
2514
d6fafbe0
CY
2515 * xfns.c (x_create_tip_frame): Set border width of the X window.
2516
51d861de 2517 * xfaces.c (Finternal_set_lisp_face_attribute): Improve error message.
9ef69046 2518
f9c34147
JR
25192009-01-01 Jason Rumney <jasonr@gnu.org>
2520
9acef61c 2521 * w32term.c (x_new_font): Return font object, not fontset. (Bug#119)
f9c34147
JR
2522 Don't block input, as per earlier xterm.c changes.
2523
f5497e45
AR
25242008-12-31 Adrian Robert <Adrian.B.Robert@gmail.com>
2525
2526 * nsfns.m (ns_appkit_version_str): Rename from ns_appkit_version.
2527 (ns_appkit_version_int): New function.
2528 (x-server-version): Use ns_appkit_version_int and follow 21+
2529 convention of returning 3 integers.
2530
c19cab20
KH
25312008-12-30 Kenichi Handa <handa@m17n.org>
2532
2533 * character.h (CHAR_VARIATION_SELECTOR_P): New macro.
2534 (CHAR_SURROGATE_PAIR_P): New macro.
2535
2536 * font.h (struct font_driver): New member get_variation_glyphs.
2537
9acef61c 2538 * font.c (font_range): Don't require a font for a variation selector.
c19cab20
KH
2539 (Ffont_variation_glyphs): New function.
2540 (syms_of_font): Defsubr it.
2541
2542 * ftfont.c (ftfont_driver): Set the member get_variation_glyphs to
2543 ftfont_variation_glyphs.
2544 (setup_otf_gstring): New function.
2545 (ftfont_drive_otf): Use it.
2546 (ftfont_shape_by_flt): Handle variation selector.
2547 (ftfont_variation_glyphs): New function.
2548
28cd591f
MR
25492008-12-30 Martin Rudalics <rudalics@gmx.at>
2550
2551 * frame.c (Vemacs_iconified): Remove.
2552
7f714baf
JR
25532008-12-30 Jason Rumney <jasonr@gnu.org>
2554
2555 * frame.c (store_frame_param, x_get_arg): Enable newer code on
9acef61c 2556 WINDOWSNT too, as related changes have already been synced. (Bug#117)
7f714baf 2557
9d2d22ab
CY
25582008-12-30 Chong Yidong <cyd@stupidchicken.com>
2559
2560 * indent.c (Fvertical_motion): Don't advance iterator if we have
2561 reseated to the desired position.
2562
2563 * xdisp.c (move_it_to): Handle GET_FROM_STRETCH method when
2564 checking for pos match.
2565
545312c2
KH
25662008-12-30 Kenichi Handa <handa@m17n.org>
2567
1ede3eb6
KH
2568 * insdel.c (copy_text): To convert a non-ASCII char to unibyte,
2569 just get the low 8-bit of the code.
2570
545312c2
KH
2571 * font.c (font_intern_prop): Validate str as multibyte.
2572
bd7bbf29
DN
25732008-12-29 Dan Nicolaescu <dann@ics.uci.edu>
2574
31e0750e
DN
2575 * dispextern.h (struct face): Move lface and hash from the middle
2576 of bitfields.
2577
bd7bbf29
DN
2578 * Makefile.in (INTERVALS_H): Rename from INTERVAL_SRC, update all users.
2579
b5672e7c
DN
25802008-12-29 Dan Nicolaescu <dann@ics.uci.edu>
2581
2582 * Makefile.in (INTERVAL_SRC): Also depend on dispextern.h.
2583 (coding.o, dispnew.o, keymap.o, msdos.o): Depend on INTERVAL_SRC
2584 instead of intervals.h.
2585
d704470f
AS
25862008-12-26 Andreas Schwab <schwab@suse.de>
2587
2588 * keymap.c (map_keymap_char_table_item): Make a copy of KEY if it is a
2589 cons.
2590
54b33868
MR
25912008-12-26 Martin Rudalics <rudalics@gmx.at>
2592
2593 * textprop.c (Qminibuffer_prompt): New variable.
2594 (syms_of_textprop): Initialize it.
2595 * callint.c (Fcall_interactively): For `c', `k', and `K' prompt
2596 in minibuffer-prompt face. (Bug#1662)
2597
40b615d6
JR
25982008-12-25 Jason Rumney <jasonr@gnu.org>
2599
2600 * buffer.c (Fbuffer_swap_text): Use POINTER_TYPE.
2601
baae5c2d
JR
26022008-12-24 Jason Rumney <jasonr@gnu.org>
2603
2604 * ralloc.c (r_alloc_reset_variable): New function.
2605
2606 * buffer.c (Fbuffer_swap_text) [REL_ALLOC]: Reset ralloc's internal
9acef61c 2607 record of what points where. (Bug#716)
baae5c2d 2608
a9051c88
DN
26092008-12-22 Dan Nicolaescu <dann@ics.uci.edu>
2610
2611 * minibuf.c (read_minibuf): Follow the non-interactive case when
2612 running as a daemon, before detaching.
2613
8b146312
AS
26142008-12-22 Andreas Schwab <schwab@suse.de>
2615
2616 * buffer.c (init_buffer): Use realloc instead of xrealloc.
2617 * gtkutil.c (free_widget_value): Use xfree instead of free.
2618
56f2de10
MR
26192008-12-22 Martin Rudalics <rudalics@gmx.at>
2620
2621 * frame.c (delete_frame): New function derived from
2622 Fdelete_frame to handle Qnoelisp value for FORCE argument.
2623 Delete last frame iff FORCE equals Qnoelisp. (Bug#1450)
2624 (Fdelete_frame): Call delete_frame. Remove line from doc-string
2625 saying that FORCE non-nil doesn't run `delete-frame-functions'.
2626 * frame.h: Extern delete_frame.
2627 * window.c (window_loop):
2628 * terminal.c (delete_terminal):
2629 * xterm.c (x_connection_closed):
2630 * xfns.c (Fx_hide_tip):
9acef61c 2631 * w32fns.c (Fx_hide_tip): Call delete_frame instead of Fdelete_frame.
56f2de10 2632
1fc200d6
JR
26332008-12-21 Jason Rumney <jasonr@gnu.org>
2634
2635 * w32uniscribe.c (uniscribe_encode_char): Return FONT_INVALID_CHAR
2636 when character maps to .notdef character.
2637
5e252df2
SM
26382008-12-21 Stefan Monnier <monnier@iro.umontreal.ca>
2639
2640 * keyboard.c (cmd_error_internal): Don't exit in daemon mode, bug#1310.
2641
99b72cc4
JR
26422008-12-20 Jason Rumney <jasonr@gnu.org>
2643
2644 * frame.c (Fmake_terminal_frame): Raise an error when called from
9acef61c 2645 a graphical frame on Windows. (Bug#1325)
99b72cc4 2646
acc49a52
JD
26472008-12-20 Jan Djärv <jan.h.d@swipnet.se>
2648
2649 * frame.c (Fdelete_frame): Set f->menu_bar_vector to Qnil.
2650
6ea15123
CY
26512008-12-20 Chong Yidong <cyd@stupidchicken.com>
2652
2653 * minibuf.c (Fread_buffer): Doc fix.
2654
b2dab6c8
JR
26552008-12-20 Jason Rumney <jasonr@gnu.org>
2656
54ea0c87 2657 * fileio.c (Fexpand_file_name): Do not allow ../ to go beyond the
9acef61c 2658 server name in UNC paths. (Bug#719)
54ea0c87 2659
b2dab6c8 2660 * coding.c (decode_coding): Clear chars_at_source flag when using
9acef61c 2661 charbuf. (Bug#1035)
b2dab6c8 2662
6d1921be
DN
26632008-12-19 Daniel Engeler <engeler@gmail.com>
2664
2665 * sysdep.c (serial_configure): Fix typo.
2666
53934c98
DN
26672008-12-19 Dan Nicolaescu <dann@ics.uci.edu>
2668
2669 * sysdep.c: Include alloca.h.
f4f634e8
DN
2670 (system_process_attributes): Add implementation for Solaris.
2671
2672 * s/sol2-10.h (HAVE_PROCFS, _STRUCTURED_PROC): New defines.
53934c98 2673
06e111a6
DN
26742008-12-19 Dan Nicolaescu <dann@ics.uci.edu>
2675
2676 Reorganize implementation of Flist_system_processes and
2677 Fsystem_process_attributes. No functional changes.
2678 * process.c: Don't #include pwd.h, grp.h and limits.h.
2679 (Flist_system_processes): Just call list_system_processes.
2680 (Fsystem_process_attributes): Just call system_process_attributes.
2681 (procfs_list_system_processes, time_from_jiffies)
2682 (ltime_from_jiffies, get_up_time, procfs_ttyname, MAJOR, MINOR)
2683 (procfs_get_total_memory, procfs_system_process_attributes): Move ...
2684
2685 * sysdep.c: ... here. Include pwd.h, grp.h and limits.h.
2686 (list_system_processes): Rename from
2687 procfs_list_system_processes. Enclose in #ifdef HAVE_PROCFS.
2688 Provide a do nothing implementation.
2689 (system_process_attributes): Rename from
2690 procfs_list_system_processes.
2691 (ltime_from_jiffies, get_up_time, procfs_ttyname, MAJOR, MINOR)
9acef61c 2692 (procfs_get_total_memory): Enclose in #ifdef GNU_LINUX.
06e111a6
DN
2693
2694 * w32.c (list_system_processes): Rename from
2695 w32_list_system_processes.
2696 (system_process_attributes): Rename from
2697 w32_system_process_attributes.
2698
2699 * s/gnu-linux.h (LISTPROC, PROCATTR): Remove.
2700
2701 * process.h (w32_list_system_processes)
2702 (w32_system_process_attributes): Remove.
2703 (list_system_processes, system_process_attributes): New
2704 prototypes.
2705
6a705b23
KH
27062008-12-19 Kenichi Handa <handa@m17n.org>
2707
2708 * xfont.c (xfont_decode_coding_xlfd): New function.
2709 (xfont_encode_coding_xlfd): New function.
2710 (xfont_list_pattern): Decode XLFD by iso-8859-1.
2711 (xfont_list): Decode and encode XLFD by iso-8859-1.
2712 (xfont_match): Likewise.
2713 (xfont_list_family): Likewise.
2714 (xfont_open): Likewise.
2715
d66c0241 2716 * ftfont.c (ftfont_open): Generate a multibyte string if given
6a705b23
KH
2717 names are utf-8.
2718
d66c0241 2719 * xftfont.c (xftfont_open): Generate a multibyte string if given
6a705b23
KH
2720 names are utf-8.
2721
5a130941
JD
27222008-12-18 Jan Djärv <jan.h.d@swipnet.se>
2723
2724 * gtkutil.c (xg_frame_resized): Remove check if rows/columns have
2725 changed.
bfd20325
JD
2726 (xg_tool_bar_proxy_callback): Put focus on the frame after we have
2727 clicked on a detached tool bar button.
5a130941 2728
fd95644b
DN
27292008-12-18 Dan Nicolaescu <dann@ics.uci.edu>
2730
2731 * emacs.c (main): Print and error and exit when no data is read
2732 from the pipe.
2733
e6eee6ae
JR
27342008-12-17 Jason Rumney <jasonr@gnu.org>
2735
2736 * w32font.c (w32font_has_char): Always return -1.
2737
a35dd56b
KH
27382008-12-16 Kenichi Handa <handa@m17n.org>
2739
2740 * font.c (font_open_entity): Fix previous change.
2741
0e3635c2
DN
27422008-12-16 Dan Nicolaescu <dann@ics.uci.edu>
2743
2744 * process.c: Include <limits.h>.
2745
d4835507 27462008-12-16 Chetan Pandya <pandyacus@sbcglobal.net> (tiny change)
b5356c39
CY
2747
2748 * font.c (font_update_drivers): Fix mistake in reconstructing the
2749 driver list.
2750
27512008-12-16 Chong Yidong <cyd@stupidchicken.com>
2752
2753 * font.c (font_clear_cache): Fix format of font cache data.
2754
e2cbc401
CY
27552008-12-15 Chong Yidong <cyd@stupidchicken.com>
2756
2757 * xftfont.c (xftfont_open): Free Xft font pattern if
2758 XftFontOpenPattern fails.
2759
2760 * xterm.c (x_free_frame_resources): Remove extraneous call to
2761 free_frame_faces.
2762
b131d535
CY
27632008-12-13 Chong Yidong <cyd@stupidchicken.com>
2764
2765 * xterm.c (x_delete_display): Move xim_close_dpy call to
2766 x_delete_terminal.
2767 (x_delete_terminal): Call xim_close_dpy.
2768
e6df5336
JR
27692008-12-13 Jason Rumney <jasonr@gnu.org>
2770
2771 * w32font.c (intern_font_name): New function.
2772 (add_font_name_to_list, w32_enumfont_pattern_entity): Use it.
2773 (w32font_open_internal, Fx_select_font): Decode font name.
2774 (fill_in_logfont, list_all_matching_fonts): Encode font name.
2775
2776 * w32font.h (intern_font_name): Declare new function.
2777
2778 * w32uniscribe.c (add_opentype_font_name_to_list):
2779 Use intern_font_name.
2780
20d68145
CY
27812008-12-13 Chong Yidong <cyd@stupidchicken.com>
2782
9f2554de
CY
2783 * frame.c (Fdelete_frame): Call free_font_driver_list.
2784
3d9bec9a
CY
2785 * font.c (free_font_driver_list): Implement missing function.
2786
20d68145
CY
2787 * w32term.c (w32_term_init): Don't initialize the image cache
2788 here; it will be done in init_frame_faces.
2789
2790 * xterm.h (struct xim_inst_t): Definition moved from xterm.c.
2791 (struct x_display_info): Remove unused member null_pixel. New
2792 member xim_callback_data.
2793
2794 * xterm.c (struct xim_inst_t): Definition moved to xterm.h.
2795 (xim_initialize): Save pointer to callback function data.
2796 (xim_close_dpy): Free callback function data. Call XCloseIM,
2797 reverting 2008-11-04 change by David Smith.
2798 (x_term_init): Don't initialize the image cache here; it will be
2799 done in init_frame_faces. Remove ancient "null_pixel" cruft.
2800 (x_delete_display): Free x_dnd_atoms member.
2801
96f9306b
KH
28022008-12-13 Kenichi Handa <handa@m17n.org>
2803
6dec9044
JB
2804 * font.c (font_rescale_ratio): Moved from xfaces.c.
2805 Argument type changed. Handle a font-spec too.
96f9306b 2806 (font_score): Check Vface_font_rescale_alist.
6dec9044 2807 (font_open_entity): Likewise. (Bug#1547)
96f9306b
KH
2808
2809 * xfaces.c (font_rescale_ratio): Moved to font.c.
2810
8d5b4964
CY
28112008-12-13 Chong Yidong <cyd@stupidchicken.com>
2812
2813 * xfns.c (Fx_wm_set_size_hint): Check if the frame is an X frame.
2814
e6df5336
JR
28152008-12-12 Jason Rumney <jasonr@gnu.org>
2816
2817 * w32fns.c (x_display_info_for_name, Fx_open_connection): Set
2818 Vwindow_system_version to the real w32 major version.
2819
97c6058a
DN
28202008-12-12 Dan Nicolaescu <dann@ics.uci.edu>
2821
2822 * term.c (init_tty): Move setting the terminal name before the
2823 potential user: maybe_fatal.
2824
ec4e88d7
CY
28252008-12-11 Chong Yidong <cyd@stupidchicken.com>
2826
d4835507
JB
2827 * term.c (tty_free_frame_resources): Renamed from delete_tty_output;
2828 all callers changed. Call free_frame_faces to free the face cache.
ec4e88d7 2829
b4233ec9
JR
28302008-12-11 Jason Rumney <jasonr@gnu.org>
2831
8ec71e23 2832 * w32font.c (fill_in_logfont): Don't assume symbol script means
9acef61c 2833 SYMBOL_CHARSET. (Bug#547)
8ec71e23 2834
b4233ec9 2835 * w32uniscribe.c (uniscribe_encode_char): Increase glyph buffer
9acef61c 2836 size for surrogates. (Bug#1096, bug#872)
b4233ec9 2837
011a0143
JB
28382008-12-11 Juanma Barranquero <lekktu@gmail.com>
2839
2840 * w32proc.c (Fw32_get_locale_info): Decode long form of locale name.
2841
3c309f34
JB
28422008-12-11 Juanma Barranquero <lekktu@gmail.com>
2843
2844 * process.c (Fsystem_process_attributes, syms_of_process):
2845 Fix typo in name of Ssystem_process_attributes.
2846 Reported by Ulrich Mueller <ulm@kph.uni-mainz.de>.
2847
fedc6ab5
JB
28482008-12-11 Juanma Barranquero <lekktu@gmail.com>
2849
2850 * syntax.c (Fmodify_syntax_entry): Doc fix.
2851
ba3de0e8
JB
28522008-12-10 Juanma Barranquero <lekktu@gmail.com>
2853
2854 * font.c (Ffont_spec): Move usage to end of docstring.
2855
174f1c74
JR
28562008-12-10 Jason Rumney <jasonr@gnu.org>
2857
2858 * w32font.c (Qcham): New symbol.
2859 (font_supported_scripts): Add cham, and comments for other new
2860 scripts in bitfield from OpenType spec.
9d32f818
JR
2861 (add_font_entity_to_list): Limit unicode-sip fonts to those that
2862 contain characters beyond the bmp.
174f1c74 2863
7b649478
KH
28642008-12-10 Kenichi Handa <handa@m17n.org>
2865
2866 * ftfont.c (fc_charset_table): Add "unicode-sip".
2ae37cf0 2867 (ftfont_spec_pattern): Lookup fc_charset_table for the registry
7b649478
KH
2868 Qunicode_sip.
2869
2133e2d1
JB
28702008-12-10 Juanma Barranquero <lekktu@gmail.com>
2871
2872 * coding.c (QCdefault_char): Rename from QCdefalut_char.
2873 (Fcoding_system_put): Use QCdefault_char.
2874 (syms_of_coding): Set QCdefault_char, not QCdefalut_char.
2875
9af886ee
CY
28762008-12-09 Chong Yidong <cyd@stupidchicken.com>
2877
74d819eb
CY
2878 * xftfont.c (syms_of_xftfont): Fix typo.
2879
4ccfa1c0 2880 * buffer.c (Fbuffer_swap_text): Signal error if swapping a dead buffer.
9af886ee 2881
7c19d3ae
DN
28822008-12-08 Dan Nicolaescu <dann@ics.uci.edu>
2883
2884 * emacs.c (main): Close daemon_pipe on exec.
2885
567826bb
CY
28862008-12-08 Chong Yidong <cyd@stupidchicken.com>
2887
2888 * termchar.h (struct tty): New members termcap_term_buffer and
2889 termcap_strings_buffer.
2890
2891 * term.c (encode_terminal_code): Free any previous memory blocks
4ccfa1c0 2892 before calling xmalloc for encode_terminal_src or encode_terminal_dst.
567826bb
CY
2893 (maybe_fatal): Buffer argument deleted. Don't free buffer here.
2894 All callers changed.
2895 (init_tty): Store termcap data and string buffers in new struct
2896 tty members termcap_term_buffer and termcap_strings_buffer.
2897 (delete_tty): Free them.
4ccfa1c0 2898 (syms_of_term): Initialize encode_terminal_src and encode_terminal_dst.
567826bb 2899
aa96c42b
SZ
29002008-12-07 Seiji Zenitani <zenitani@mac.com>
2901
2902 * nsfns.m (ns_set_background_color): Remove code duplication.
4ccfa1c0 2903 It was a substitute for face-transparency on OS X 10.3.
aa96c42b 2904
b7e1d896
CY
29052008-12-06 Chong Yidong <cyd@stupidchicken.com>
2906
2907 * coding.c (make_conversion_work_buffer): Disable buffer
2908 modification hooks in the work buffer.
2909
b5ec91a5
EZ
29102008-12-05 Eli Zaretskii <eliz@gnu.org>
2911
2912 * process.c (procfs_system_process_attributes): If `nread' has a
2913 negative value, assign zero to it.
2914
a5d2a52b
CY
29152008-12-05 Chong Yidong <cyd@stupidchicken.com>
2916
68c5540b 2917 * eval.c (Vdebug_on_error): Doc fix.
a5d2a52b 2918
7bf1bb21
KH
29192008-12-05 Kenichi Handa <handa@m17n.org>
2920
2921 * ftfont.c (ftfont_shape_by_flt): Use "combining" flt if the
2922 second character is a combining character.
2923
2fdc7d00
EZ
29242008-12-05 Eli Zaretskii <eliz@gnu.org>
2925
2926 * process.c (procfs_system_process_attributes): Don't use cmd,
2927 cmdsize, and q without initializing them first.
2928
bf6bfba8
JR
29292008-12-04 Jason Rumney <jasonr@gnu.org>
2930
2931 * w32font.c (w32font_draw): Initialize orig_clip before getting
2932 it, and delete it when finished.
2933
a3b1a468
DN
29342008-12-04 Dan Nicolaescu <dann@ics.uci.edu>
2935
2936 * keyboard.c (kbd_buffer_get_event): Follow the non-interactive
2937 case when running as a daemon before detaching.
2938
8b8be8eb
JB
29392008-12-03 Juanma Barranquero <lekktu@gmail.com>
2940
805f2638 2941 * w32.c (init_environment): Don't unload library shell32.dll.
8b8be8eb 2942
b1bde622
KH
29432008-12-03 Kenichi Handa <handa@m17n.org>
2944
e500c47d
KH
2945 * font.c (font_at): Set `multibyte' at first.
2946
ca516334
KH
2947 * coding.c (decode_coding_charset): Check type of an element of
2948 vector VALIDS.
7bf1bb21 2949 (encode_coding_emacs_mule): Be sure to set `code'.
ca516334 2950
4ccfa1c0 2951 * fontset.c (face_for_char): Handle invalid charset property correctly.
b1bde622
KH
2952 (font_for_char): Likewise.
2953
1e5ecd37
CY
29542008-12-03 Chong Yidong <cyd@stupidchicken.com>
2955
d5b01609 2956 * font.c (Fopen_font): Compute pixel size correctly.
ba207571
CY
2957 (font_update_lface): Handle fonts with corrupted size specs,
2958 i.e. non-int and non-float.
d5b01609 2959
11e3a6e4 2960 * ftfont.c (ftfont_match): Initialize entity variable.
9a48c8cb 2961 (ftfont_resolve_generic_family): Avoid using uninitialized var.
8adb3a3b 2962 (ftfont_list_family): Initialize list var earlier.
11e3a6e4 2963
ab06788b
CY
2964 * xselect.c (Fx_get_cut_buffer_internal): Fix memory leak.
2965
1e5ecd37 2966 * xterm.c (x_draw_glyph_string): Fall back on
0cff82ab 2967 underline_minimum_offset for underline position.
1e5ecd37 2968
63c125ab
DN
29692008-12-03 Dan Nicolaescu <dann@ics.uci.edu>
2970
2971 * keyboard.c (read_char_help_form_unwind): Specify the type for ARG.
2972
2973 * character.c (c_string_width): Specify the type for LEN.
2974
3a8406e1
KH
29752008-12-03 Kenichi Handa <handa@m17n.org>
2976
4ccfa1c0 2977 * coding.c (decode_coding_utf_16): Initialize consumed_chars_base to 0.
453b38f0 2978 (decode_coding_utf_8): Likewise.
4ccfa1c0 2979 (detect_coding_system): Initialize utf_16_le_eol to -1, val to Qnil.
4533845d 2980 (produce_chars): Initialize consumed_chars to 0.
3a8406e1 2981
651df7d9
CY
29822008-12-02 Chong Yidong <cyd@stupidchicken.com>
2983
2984 * keyboard.c (make_lispy_position): Only use PT if the selected
2985 window is current.
2986
1f625c6c
AS
29872008-12-02 Andreas Schwab <schwab@suse.de>
2988
f7741ce9
AS
2989 * font.c (font_unparse_fcname): Fix use of uninitialized variable.
2990
1f625c6c
AS
2991 * doprnt.c (doprnt1): Fix size of charbuf.
2992
92bc2678
CY
29932008-12-02 Chong Yidong <cyd@stupidchicken.com>
2994
2995 * keyboard.c (timer_check): Revert last change.
2996
93b9e8cc
JB
29972008-12-02 Juanma Barranquero <lekktu@gmail.com>
2998
2999 * makefile.w32-in ($(BLD)/w32console.$(O)): Fix silly, silly typo.
3000
fd7a37d5
JB
30012008-12-01 Juanma Barranquero <lekktu@gmail.com>
3002
3003 * makefile.w32-in: Update dependencies.
3004 (CONFIG_H): Add $(EMACS_ROOT)/nt/inc/sys/time.h.
3005
c115043b
AS
30062008-12-01 Andreas Schwab <schwab@suse.de>
3007
3008 * font.c (register_font_driver): Use xmalloc.
3009 (font_put_frame_data): Likewise.
3010
f5668d2a
CY
30112008-12-01 Chong Yidong <cyd@stupidchicken.com>
3012
860d96be
CY
3013 * xfaces.c (realize_x_face): Make abort condition clearer.
3014
f5668d2a
CY
3015 * gtkutil.c (update_frame_tool_bar): Initialize variable.
3016
379c17e7
CY
30172008-11-30 Chong Yidong <cyd@stupidchicken.com>
3018
3019 * keyboard.c (timer_check): After a timer runs, ensure that the
3020 selected window's buffer is current.
3021
35f36d65
JB
30222008-11-30 Juanma Barranquero <lekktu@gmail.com>
3023
f952c61c
JB
3024 * makefile.w32-in ($(BLD)/abbrev.$(O)): Remove.
3025 It was accidentally restored by the Unicode merge.
3026
35f36d65
JB
3027 * w32proc.c (Fw32_get_locale_info): Fix typo in docstring.
3028
b23077df
JB
30292008-11-29 Juanma Barranquero <lekktu@gmail.com>
3030
3031 * w32proc.c: Include "coding.h".
3032 (Fw32_short_file_name): Encode filename passed to Windows API.
3033 (Fw32_long_file_name): Encode filename passed to Windows API and
3034 decode back the result. (Bug#1433)
3035
b8ebe9dd
KH
30362008-11-29 Kenichi Handa <handa@m17n.org>
3037
8cc53f96
KH
3038 * charset.h (CHAR_CHARSET_P): Check if the encoder is loaded or
3039 not before accessing it.
3040
b8ebe9dd
KH
3041 * charset.c (Fdefine_charset_internal): After calculating
3042 min_char, max_char, and fastmap, copy the charset structure again.
3043 (encode_char): Fix the previous change.
3044
59bc82c0
SZ
30452008-11-28 Seiji Zenitani <zenitani@mac.com>
3046
3047 * frame.c (x_set_alpha) [NS_IMPL_COCOA]: Call x_set_frame_alpha.
3048
3049 * nsfns.m (ns_frame_parm_handlers): Set alpha handler.
3050
3051 * nsterm.m (x_set_frame_alpha): New function.
3052
32247e3d
EZ
30532008-11-27 Eli Zaretskii <eliz@gnu.org>
3054
3055 * xfaces.c (Fx_font_family_list, syms_of_xfaces): Fix last change.
3056
b003e5ff
JB
30572008-11-27 Juanma Barranquero <lekktu@gmail.com>
3058
3059 * w32font.c (add_font_entity_to_list): Pass the right LOGFONT
3060 pointer to check_face_name.
3061
708550f5
KH
30622008-11-27 Kenichi Handa <handa@m17n.org>
3063
3064 * category.h (SET_CATEGORY_SET): Call set_category_set.
3065 (set_category_set): Extern it.
3066
3067 * category.c (hash_get_category_set): New function.
3068 (Fmodify_category_entry): Adjusted for the change of
3069 char_table_ref_and_range. Call hash_get_category_set to get a
3070 category set to store in the table.
3071
3072 * character.h (MAYBE_UNIFY_CHAR): Call maybe_unify_char instead of
3073 Funify_charset.
3074
2ae37cf0 3075 * charset.h (enum charset_method): Delete CHARSET_METHOD_MAP_DEFERRED.
708550f5
KH
3076 (DECODE_CHAR): Check if the decoder vector is ready.
3077 (ENCODE_CHAR): Check if the encoder char-table is ready.
3078 (maybe_unify_char): Extern it.
3079
3080 * charset.c (Vchar_unified_charset_table): Delete it.
3081 (inhibit_load_charset_map): New variable.
3082 (temp_charset_work): New variable.
3083 (SET_TEMP_CHARSET_WORK_ENCODER, GET_TEMP_CHARSET_WORK_ENCODER)
3084 (SET_TEMP_CHARSET_WORK_DECODER, GET_TEMP_CHARSET_WORK_DECODER):
3085 New macros.
3086 (load_charset_map): Meaning of control_flag changed. If
3087 inhibit_load_charset_map is nonzero, setup a table in
3088 temp_charset_work.
3089 (load_charset): New argument control_flag.
3090 (map_charset_for_dump): New function.
3091 (map_charset_chars): If inhibit_load_charset_map is nonzero, use
3092 map_charset_for_dump.
3093 (Fdefine_charset_internal): If the charset method is MAP, load
3094 mapping tables by calling load_charset.
3095 (Funify_charset): Don't load a mapping table but directly set
3096 Vchar_unify_table.
3097 (maybe_unify_char): New function.
3098 (decode_char): Don't handle the deleted method MAP_DEFERRED.
3099 Handle the case of inhibit_load_charset_map being nonzero.
3100 (encode_char): Don't handle the deleted method MAP_DEFERRED.
3101 Handle the case of inhibit_load_charset_map being nonzero.
3102 (Fclear_charset_maps): Just free temp_charset_work.
3103 (syms_of_charset): Make `inhibit-load-charset-map' a Lisp
3104 variable.
3105
3106 * chartab.c (sub_char_table_ref_and_range): Adjusted for the
3107 change of char_table_ref_and_range.
3108 (char_table_ref_and_range): Change the meaning of argument FROM
3109 and TO. Now the caller must provide initial values for *FROM
3110 and *TO.
3111
3112 * fontset.c (fontset_add): Adjusted for the change of
3113 char_table_ref_and_range.
3114 (fontset_get_font_group): Likewise.
3115 (Ffontset_info): Likewise.
3116
3117 * keymap.c (describe_vector): Adjusted for the change of
3118 char_table_ref_and_range. For char-table, put boundary between
3119 non-ASCII and 8-bit characters.
3120
3121 * print.c (print_object): For bool-vector, delete unnecessary
3122 check of ASCII_BYTE_P.
3123
9196133b
JR
31242008-11-26 Jason Rumney <jasonr@gnu.org>
3125
3126 * w32font.c (w32font_open_internal): Don't include external
9acef61c 3127 leading in font height. (Bug#879)
9196133b 3128
9f688acf
GM
31292008-11-26 Glenn Morris <rgm@gnu.org>
3130
3131 * xfaces.c (Fx_font_family_list): Replace lisp/term/pc-win.el
3132 redefinition with ifdef. (Bug#1383)
3133
90d19aff
AR
31342008-11-24 Adrian Robert <Adrian.B.Robert@gmail.com>
3135
3136 * nsterm.m (ns_get_color): Handle long hex strings (fixes bug #1044).
3137
4ccfa1c0 31382008-11-24 Wolfgang Lux <wolfgang.lux@gmail.com> (tiny change)
90d19aff
AR
3139
3140 * nsterm.m (-otherMouseDown:, -otherMouseUp:, -otherMouseDragged):
3141 New EmacsView methods.
3142 (EV_UDMODIFIERS, EV_BUTTON): Add OtherMouse constants.
3143 Fixes bug #1048,1357,1414.
3144
31452008-11-24 Adrian Robert <Adrian.B.Robert@gmail.com>
3146
3147 Fix bug #1362.
3148 * image.c (x_clear_image_1): Do not free background under HAVE_NS, it
3149 is not an indexed color.
3150 * nsterm.m (free_indexed_color): Add argument checking.
3151 * nsfns.m: Move config.h to before system includes (advised by Dan N.).
3152
e7d5ecb3
CY
31532008-11-24 Chong Yidong <cyd@stupidchicken.com>
3154
3155 * minibuf.c (Fcompleting_read, Vminibuffer_completion_confirm):
3156 Document confirm-after-completion value for
3157 minibuffer-completion-confirm.
3158
c285743c
JR
31592008-11-24 Jason Rumney <jasonr@gnu.org>
3160
3161 * w32font.c (check_face_name): Use xstrcasecmp. Avoid compiler
3162 warning.
3163
b0857706
JR
31642008-11-23 Jason Rumney <jasonr@gnu.org>
3165
3166 * w32uniscribe.c (uniscribe_encode_char): Ensure context is
3167 restored before returning.
3168
3169 * w32font.c (check_face_name): New function.
3170 (add_font_entity_to_list): Use it to filter out common substituted
9acef61c 3171 fonts. (Bug#642)
b0857706 3172
ee50ff07
MR
31732008-11-22 Martin Rudalics <rudalics@gmx.at>
3174
3175 * buffer.c (Fswitch_to_buffer): Reword and mention new option
3176 confirm-nonexistent-file-or-buffer in doc-string.
3177
b8ff72fa
SM
31782008-11-21 Stefan Monnier <monnier@iro.umontreal.ca>
3179
3180 * buffer.c (Fbuffer_swap_text): Remove redundant marker manipulation.
3181 Fix copy/paste typo. Add checks.
3182
cee53ed4
KH
31832008-11-21 Kenichi Handa <handa@m17n.org>
3184
3185 * coding.c (detect_coding_iso_2022): Reject invalid composition
3186 sequence.
3187 (DECODE_COMPOSITION_START): If the current source is the last
3188 block, and the current composition doesn't end, regard this
3189 sequence as invalid.
3190 (decode_coding_iso_2022): Handle invalid composition sequence.
3191
f6ef1e65
MR
31922008-11-20 Martin Rudalics <rudalics@gmx.at>
3193
3194 * window.c (coordinates_in_window): Don't return
3195 ON_VERTICAL_BORDER for the rightmost position of a mode/header
3196 line when the window is not the rightmost one. (Bug#1372)
3197
e08b1705
MR
31982008-11-16 Ben North <ben@redfrontdoor.org> (tiny change)
3199
3200 * buffer.c (syms_of_buffer): Fix doc-string of cursor-type.
3201
ad98e89f
EZ
32022008-11-15 Eli Zaretskii <eliz@gnu.org>
3203
3204 * msdos.c (run_msdos_command): Don't call dos_ttcooked, dos_ttraw,
3205 and bright_bg if noninteractive is non-zero.
3206
fb098a4b
CY
32072008-11-15 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
3208
3209 * xterm.c (x_draw_glyph_string): For stretch glyphs, don't call
3210 x_draw_glyph_string_background.
3211
3212 * w32term.c (x_draw_glyph_string): Likewise.
3213
ce952b6e
CY
32142008-11-15 Chong Yidong <cyd@stupidchicken.com>
3215
3216 * xterm.c (x_draw_glyph_string): Stop drawing the background of
3217 the next glyph string once past the overhang width.
3218
3219 * nsterm.m (ns_draw_glyph_string): Likewise.
3220
3221 * w32term.c (x_draw_glyph_string): Likewise.
3222
26ea7079
CY
32232008-11-14 Fabrice Popineau <fabrice.popineau@supelec.fr> (tiny change)
3224
3225 * fileio.c (Finsert_file_contents): Decrement specpdl_ptr to avoid
3226 double file close.
3227
1c33c906
MR
32282008-11-14 Martin Rudalics <rudalics@gmx.at>
3229
3230 * window.c (window_loop): In DELETE_BUFFER_WINDOWS case, reset
3231 dedicated status of window before attempting to display another
3232 buffer in it.
3233
8fc29035
JB
32342008-11-14 Juanma Barranquero <lekktu@gmail.com>
3235
3236 * msdos.c (Fmsdos_long_file_names):
3237 (syms_of_msdos) <dos-unsupported-char-glyph>:
3238 * dosfns.c (Fint86): Fix typos in docstrings.
3239
55fb4286
EZ
32402008-11-14 Eli Zaretskii <eliz@gnu.org>
3241
3242 * makefile.w32-in (OBJ1, WIN32OBJ): Fix whitespace.
3243
3fda0315
KY
32442008-11-14 Katsumi Yamaoka <yamaoka@jpl.org>
3245
3246 * puresize.h (BASE_PURESIZE): Increase to 1260000.
3247
7e849c17
CY
32482008-11-12 Michal Nazarewicz <mina86@tlen.pl> (tiny change)
3249
3250 * frame.c (x_set_alpha): Set alpha to -1 if nil given.
3251
3252 * frame.h: Negative alpha means "don't touch".
3253
3254 * w32term.c (x_set_frame_alpha): Do nothing if alpha is negative.
3255
3256 * xterm.c (x_set_frame_alpha): Do nothing if alpha is negative.
3257
b9fd67bd
DN
32582008-11-12 Dan Nicolaescu <dann@ics.uci.edu>
3259
3260 * hftctl.c:
3261 * chpdef.h:
3262 * acldef.h: Remove files used only for systems no longer supported.
3263
3264 * Makefile.in: Fix .o alphabetical ordering.
3265 (hftctl.o): Remove dependency, file removed.
3266 (keymap.o, print.o): Depend on charset.h.
3267
d5998e03
KH
32682008-11-10 Kenichi Handa <handa@m17n.org>
3269
2ae37cf0 3270 * character.c (Fget_byte): Fix and make it faster for unibyte target.
d5998e03 3271
be70e183
CY
32722008-11-08 Chong Yidong <cyd@stupidchicken.com>
3273
3274 * dired.c (file_name_completion): If completion_ignore_case is
3275 enabled, ignore case when checking completion-regexp-list.
3276
7cf94eac
EZ
32772008-11-08 Eli Zaretskii <eliz@gnu.org>
3278
3279 * vm-limit.c (get_lim_data): Fix last change.
3280
ee107a89
KH
32812008-11-08 Kenichi Handa <handa@m17n.org>
3282
3283 * character.c (Fget_byte): New function.
3284 (syms_of_character): Defsubr Fget_byte.
3285
5fd15622
CY
32862008-11-07 Chong Yidong <cyd@stupidchicken.com>
3287
3288 * xdisp.c (try_window_reusing_current_matrix): Ensure that window
3289 cursor position is valid after scrolling.
3290
13d62fad
JB
32912008-11-06 Juanma Barranquero <lekktu@gmail.com>
3292
3293 * fns.c (Frandom): Rename arg N to LIMIT to match the docs; doc fix.
3294
a1dd2936
GM
32952008-11-06 Glenn Morris <rgm@gnu.org>
3296
3297 * xterm.c (handle_one_xevent): Don't let popup menus cause
3298 mouse-autoselect-window related window switching. (Bug#1261)
3299
860cd236
CY
33002008-11-04 David Smith <davidsmith@acm.org> (tiny change)
3301
3302 * xterm.c (xim_close_dpy): Avoid double-free on X11R6 XIM.
3303
653a3150
AS
33042008-11-04 Andreas Schwab <schwab@suse.de>
3305
3306 * xfns.c (Fx_wm_set_size_hint): Add missing return value.
3307
870f5cac
CY
33082008-11-03 Chong Yidong <cyd@stupidchicken.com>
3309
3310 * xfns.c (Fx_wm_set_size_hint): New function.
3311
1e02f3cb
MR
33122008-11-03 Martin Rudalics <rudalics@gmx.at>
3313
3314 * textprop.c (Fprevious_single_char_property_change): Return 0
3315 when there's no change in a string. (Bug#1301)
3316
e630dfc6
MR
33172008-11-02 Martin Rudalics <rudalics@gmx.at>
3318
3319 * frame.c (do_switch_frame): New argument NORECORD passed to
3320 Fselect_window.
3321 (Fselect_frame): New argument NORECORD passed to
3322 do_switch_frame.
3323 (Fset_frame_selected_window): New argument NORECORD passed to
3324 Fselect_frame.
3325 (Fhandle_switch_frame, Fdelete_frame): Handle NORECORD argument
3326 in call of do_switch_frame.
3327 (Fset_mouse_position, Fset_mouse_pixel_position, Fraise_frame):
3328 Handle NORECORD argument in call of Fselect_frame.
3329 * lisp.h (do_switch_frame, Fselect_frame)
3330 (Fset_frame_selected_window): Adjust declarations.
3331 * window.c (select_frame_norecord): New function.
3332 (run_window_configuration_change_hook): Use it and call
3333 Fselect_frame with NORECORD set.
3334 (Fselect_window): Pass NORECORD to Fselect_frame.
3335 (Fset_window_configuration): Handle NORECORD argument in call of
3336 do_switch_frame.
3337 * minibuf.c (choose_minibuf_frame): Handle NORECORD in call of
3338 Fset_frame_selected_window.
3339 * keyboard.c (command_loop_1): Handle NORECORD in call of
3340 Fselect_frame (currently ifdefd).
3341
9020b223
GM
33422008-11-02 Ulrich Mueller <ulm@kph.uni-mainz.de>
3343
3344 * emacs.c (USAGE2): Untabify.
3345
793ffee8
SM
33462008-11-01 Stefan Monnier <monnier@iro.umontreal.ca>
3347
3348 * composite.c (fill_gstring_header): Fix copy/paste typo.
3349
ab6d1131
MR
33502008-10-31 Martin Rudalics <rudalics@gmx.at>
3351
3352 * window.c (Fnext_window, Fprevious_window): Rewrite doc-string.
3353 (Fother_window): Rename argument and rewrite doc-string.
3354 (select_window_norecord): Fix return value. (Bug#1276)
3355
601a9cf1
JB
33562008-10-30 Juanma Barranquero <lekktu@gmail.com>
3357
3358 * w32fns.c (x_create_tip_frame): Prevent default foreground color for
3359 new frames overriding foreground for tooltips. Based on similar patch
3360 from Martin Rudalics <rudalics@gmx.at>. (Bug#1032)
3361
813b0652
CY
33622008-10-29 Chong Yidong <cyd@stupidchicken.com>
3363
3364 * emacs.c (Fdaemon_initialized): Initialize nfd.
3365
4414f58f
MR
33662008-10-29 Martin Rudalics <rudalics@gmx.at>
3367
3368 * window.c (Fwindow_height, Fdelete_window, set_window_buffer)
3369 (Fwindow_text_height): Clarify doc-strings.
3370 * xdisp.c (syms_of_xdisp): Mention set-window-buffer in
3371 doc-string of window-scroll-functions.
3372
ecdcaa09
RS
33732008-10-28 Reiner Steib <Reiner.Steib@gmx.de>
3374
3375 * category.c (syms_of_category): Fix typo in docstring.
3376
23fe745a
JB
33772008-10-28 Juanma Barranquero <lekktu@gmail.com>
3378
3379 * window.c (Fwindowp, Fwindow_live_p, Fwindow_minibuffer_p)
3380 (Fcoordinates_in_window_p, Fscroll_left, Fscroll_right):
3381 Fix typos in docstrings.
3382
ff808935
DN
33832008-10-28 Dan Nicolaescu <dann@ics.uci.edu>
3384
3385 * emacs.c (daemon_pipe): Make non-static.
3386 (IS_DAEMON): Move definition ...
3387 * lisp.h (IS_DAEMON): ... here.
3388 (daemon_pipe): Declare.
3389 (is_daemon): Remove.
3390 * dispnew.c (init_display): Use IS_DAEMON.
3391
fc012771
SM
33922008-10-28 Stefan Monnier <monnier@iro.umontreal.ca>
3393
3394 * xdisp.c (pos_visible_p, redisplay_internal, message3_nolog)
3395 (message2_nolog): Check FRAME_INITIAL_P instead of noninteractively.
3396
3397 * emacs.c (is_daemon): Remove.
3398 (main): Don't set is_daemon.
3399 (IS_DAEMON): New macro.
3400 (Fdaemonp, Fdaemon_initialized): Use it.
601a9cf1 3401 (Fdaemon_initialized): Write a char into the pipe to make sure the
fc012771
SM
3402 parent exits.
3403 (syms_of_emacs): Explicitly initialize daemon_pipe[1].
3404
d8bdbe6f
CY
34052008-10-27 Chong Yidong <cyd@stupidchicken.com>
3406
d1a072bf
CY
3407 * nsterm.m (ns_draw_window_cursor): When hbar cursor is on
3408 over-sized glyph, draw it with the default glyph width.
3409
e2e325aa
CY
3410 * w32term.c (x_draw_bar_cursor): When hbar cursor is on over-sized
3411 glyph, draw it with the default glyph width.
3412
3413 * xterm.c (x_draw_bar_cursor): When hbar cursor is on over-sized
3414 glyph, draw it with the default glyph width.
3415
d8bdbe6f
CY
3416 * xdisp.c (try_scrolling): When computing the distance from the
3417 scroll margin to PT, try moving some distance past the window
3418 bottom before giving up.
3419
7bfac547
MR
34202008-10-27 Martin Rudalics <rudalics@gmx.at>
3421
3422 * window.c (Fwindow_dedicated_p, Fset_window_dedicated_p)
3423 (Fset_window_buffer): Explain in doc-string that a window can be
3424 "strongly" dedicated to its buffer.
3425
4ff029f6
DN
34262008-10-27 Dan Nicolaescu <dann@ics.uci.edu>
3427
3428 * emacs.c (daemon_name): New variable.
3429 (main): Deal with --daemon=SERVER_NAME.
3430 (Fdaemonp): Return a name if one was passed to --daemon.
3431
5790ef40
DN
34322008-10-26 Romain Francoise <romain@orebokech.com>
3433
f9bd0df9 3434 * emacs.c (daemon_pipe): New variable.
5790ef40
DN
3435 (main): Create a pipe before forking, make the parent exit only after
3436 the child has closed its end of the pipe. Move closing the
3437 descriptors ...
3438 (Fdaemon_initialized): ... here. New function.
3439
f5385255
SM
34402008-10-26 Stefan Monnier <monnier@iro.umontreal.ca>
3441
4d632321
SM
3442 * chartab.c (Foptimize_char_table): Make sure `ascii' doesn't point to
3443 the previous unoptimized table.
3444
f5385255
SM
3445 * window.c (Fset_window_buffer): Undo 2008-10-18 change to re-instate
3446 the distinction between non-nil and non-t value of `dedicated'.
3447
6c56a0f3
CY
34482008-10-25 Chong Yidong <cyd@stupidchicken.com>
3449
3450 * keyboard.c (read_char_minibuf_menu_prompt): Ensure that
f5385255 3451 read_char_minibuf_menu_text is large enough to hold the menu string.
6c56a0f3 3452
fec89261
MR
34532008-10-25 Martin Rudalics <rudalics@gmx.at>
3454
3455 * window.c (Fget_buffer_window, Fdelete_windows_on)
3456 (Freplace_buffer_in_windows): Make buffer argument optional and
3457 rename to buffer_or_name.
3458
34fcddd0
CY
34592008-10-24 Chong Yidong <cyd@stupidchicken.com>
3460
f5385255
SM
3461 * xdisp.c (handle_single_display_spec, handle_display_prop):
3462 Undo 2005-05-16 change.
34fcddd0
CY
3463 (handle_stop): Pop iterator if it's loaded with an empty string.
3464 (get_overlay_strings_1): Don't save iterator if it's loaded with
3465 an empty string (bug#1201).
3466
064766f2
KH
34672008-10-24 Kenichi Handa <handa@m17n.org>
3468
3469 * ftfont.c (ftfont_otf_features): Fix previous change.
3470 (ftfont_otf_capability): Check FeatureList.FeatureCount before
3471 calling ftfont_otf_features.
3472
f9bd0df9 34732008-10-24 Kenichi Handa <handa@m17n.org>
064766f2
KH
3474
3475 * font.c (font_match_p): Fix for the case that a vector of
3476 characters is in script-representative-chars.
3477
1dae9197
MA
34782008-10-24 Michael Albinus <michael.albinus@gmx.de>
3479
3480 * dbusbind.c (xd_in_read_queued_messages): New variable.
f5385255 3481 (XD_SIGNAL1, XD_SIGNAL2, XD_SIGNAL3): New macros. Throw Qdbus_error.
1dae9197
MA
3482 (xd_read_queued_messages): Catch Qdbus_error from the macros.
3483 (all): Replace xsignal1, xsignal2, xsignal3 by the respective
3484 macro. (Bug#1186).
3485
f9bd0df9 34862008-10-23 Ali Bahrami <ali_gnu@emvision.com> (tiny change)
9b3362b8
DN
3487
3488 * s/sol2-10.h: New file.
3489
878a4584
JB
34902008-10-23 Juanma Barranquero <lekktu@gmail.com>
3491
3492 * xdisp.c (fill_glyph_string): Fix typo in source (though the
3493 poor beast has survived 9+ years and the jump from xterm.c!).
3494
cd265ca6
MR
34952008-10-23 Martin Rudalics <rudalics@gmx.at>
3496
3497 * buffer.c (Fget_buffer_create): Rename arg to buffer_or_name.
3498 Reword doc-string.
f5385255 3499 (Fbury_buffer): In doc-string say what happens to the buffer's window.
cd265ca6 3500
472a4dc9
JB
35012008-10-23 Juanma Barranquero <lekktu@gmail.com>
3502
3503 * character.c (syms_of_character) <script-representative-chars>:
3504 <unicode-category-table>: Doc fixes.
3505
159bd5a2
NF
35062008-10-23 Noah Friedman <friedman@splode.com>
3507
3508 * coding.c (make_conversion_work_buffer): Check that
3509 Vcode_conversion_reused_workbuf is a live buffer, otherwise call
3510 Fget_buffer_create.
3511
49f9c344
KH
35122008-10-23 Kenichi Handa <handa@m17n.org>
3513
3514 * font.c (font_add_log): Check the values of extra properties.
3515
12bb3111
MR
35162008-10-22 Martin Rudalics <rudalics@gmx.at>
3517
3518 * window.c (Fwindow_dedicated_p, Fset_window_dedicated_p):
3519 Reword doc-string.
3520 (Fset_window_parameter): Use NILP.
3521 (Fscroll_up, Fscroll_down, Fminibuffer_selected_window)
f5385255 3522 (Frecenter): Use "selected" instead of "current" window in doc-strings.
12bb3111 3523
bbeb4e99
JB
35242008-10-22 Juanma Barranquero <lekktu@gmail.com>
3525
3526 * xdisp.c (next_element_from_buffer): Remove bogus xassert condition.
3527
35282008-10-22 Adrian Robert <Adrian.B.Robert@gmail.com>
cb83c00b
AR
3529
3530 * nsfns.m (ns_appkit_version): New function.
3531 (x-server-version): Use it.
3532 (syms_of_nsfns): Define ns-version-string here, not nsterm.m.
3533 (x-server-vendor): Don't check_ns().
3534
3535 * nsterm.m (syms_of_nsterm): Drop ns-version-string.
3536
a9b555d3
JB
35372008-10-22 Juanma Barranquero <lekktu@gmail.com>
3538
3539 * w32fns.c (unwind_create_frame) [!GLYPH_DEBUG]: Fix xassert.
3540 Copied from 2005-02-03 change to xfns.c by Kim F. Storm.
3541
4626499f
KH
35422008-10-22 Kenichi Handa <handa@m17n.org>
3543
e3681952
KH
3544 * syntax.c (scan_words): Call word_boundary_p instead of comparing
3545 scripts.
3546
4626499f
KH
3547 * category.c (word_boundary_p): Check scripts instead of charset.
3548 Handle nil value in word-separating-categories and
3549 word-combining-categories.
3550 (syms_of_category): Fix docstrings of word-separating-categories
3551 and word-combining-categories.
3552
1560f91a
EZ
35532008-10-21 Eli Zaretskii <eliz@gnu.org>
3554
3555 * coding.c (Fencode_coding_region, Fdecode_coding_region)
3556 (Fdecode_coding_string, Fencode_coding_string): Doc fix.
3557
f4668441
MR
35582008-10-21 Martin Rudalics <rudalics@gmx.at>
3559
3560 * buffer.c (Fget_buffer, Fbury_buffer, switch_to_buffer_1):
3561 Rename arg "buffer" to "buffer_or_name".
3562 (Fkill_buffer): Rename arg "buffer" to "buffer_or_name" and make
3563 it optional.
3564 (no_switch_window): Remove since the return value is not used.
a9b555d3 3565 (Fswitch_to_buffer): Rename arg "buffer" to "buffer_or_name".
f4668441
MR
3566 Consider window as dedicated when Fwindow_dedicated_p returns a
3567 non-nil value.
3568 * lisp.h: Remove prototype for no_switch_window.
3569
fd75ddb2
JD
35702008-10-21 Jan Djärv <jan.h.d@swipnet.se>
3571
3572 * emacs.c (main): Unconditionally set PER_LINUX32 and exec
2ae37cf0 3573 temacs when dumping if HAVE_PERSONALITY_LINUX32 is defined.
fd75ddb2 3574
07295713
KH
35752008-10-21 Kenichi Handa <handa@m17n.org>
3576
3577 * coding.c (detect_coding_charset): For iso-8859-* coding systems,
3578 check Vlatin_extra_code_table.
3579
712adc82
EZ
35802008-10-20 Eli Zaretskii <eliz@gnu.org>
3581
3582 * fileio.c (Fset_file_modes): Doc fix.
3583
f549eb0b
MA
35842008-10-19 Michael Albinus <michael.albinus@gmx.de>
3585
3586 * dbusbind.c (XD_OBJECT_TO_DBUS_TYPE): Handle simple type symbols
3587 in arrays.
3588
aac0c6e3
MR
35892008-10-19 Martin Rudalics <rudalics@gmx.at>
3590
3591 * window.c (Fwindow_dedicated_p, Fset_window_dedicated_p):
3592 Mention kill-buffer in doc-string.
3593 (Fset_window_buffer): Reinsert tem check removed in last commit.
3594 (Fenlarge_window, Fshrink_window): Have argument names and
3595 doc-string follow Elisp manual more closely.
3596
35972008-10-18 Eli Zaretskii <eliz@gnu.org>
3598
3599 * fileio.c (Fset_file_modes): Doc fix.
3600
36012008-10-18 Martin Rudalics <rudalics@gmx.at>
3602
3603 * window.c (Fwindow_width, Fset_window_start)
3604 (Fwindow_parameters, Fwindow_parameter, Fset_window_parameter)
f5385255
SM
3605 (Fdelete_windows_on, Freplace_buffer_in_windows):
3606 Make doc-strings follow code and Elisp manual more closely.
aac0c6e3
MR
3607 (Fwindow_dedicated_p): Make window argument optional.
3608 (Fset_window_dedicated_p): Rename argument "arg" to "flag".
3609 (Fset_window_buffer): Respect any non-nil dedicated value for
3610 window. Rename "buffer" argument to "buffer_or_name".
3611
36122008-10-18 Ulrich Mueller <ulm@gentoo.org>
3613
3614 * m/sh3.h: New file, machine description for SuperH.
3615
36162008-10-17 Martin Rudalics <rudalics@gmx.at>
3617
3618 * window.c (Fsplit_window): Rename arg horflag to horizontal.
3619
36202008-10-17 Kenichi Handa <handa@m17n.org>
3621
3622 * ftfont.c (ftfont_otf_features): Fix indexing
3623 gsub_gpos->FeatureList.Feature. Check the validity of indices.
3624
36252008-10-16 Magnus Henoch <mange@freemail.hu>
3626
3627 * dbusbind.c (Fdbus_call_method): Unbreak usage line.
3628 (Fdbus_call_method_asynchronously): Ditto.
3629 This change makes C-h f display the argument list.
3630
36312008-10-16 Chong Yidong <cyd@stupidchicken.com>
3632
3633 * fileio.c (Fexpand_file_name): Doc fix.
3634
3635 * xfaces.c (Finternal_set_lisp_face_attribute): Make null values
3636 of :foreground and :background equivalent to unspecified (20.x
3637 compatibility).
3638
36392008-10-15 Eli Zaretskii <eliz@gnu.org>
3640
3641 * buffer.c (syms_of_buffer): Doc fix.
3642
36432008-10-14 Kenichi Handa <handa@m17n.org>
3644
3645 * font.c (font_clear_prop): When clearing font width, clear the
3646 average width field too.
3647
36482008-10-12 Andreas Schwab <schwab@suse.de>
3649
3650 * ftfont.c (ftfont_shape_by_flt): Make static.
3651 * ftfont.h (ftfont_shape_by_flt): Don't declare.
3652
3653 * font.c: Don't include <m17n-flt.h>.
3654
36552008-10-10 Eli Zaretskii <eliz@gnu.org>
3656
3657 * s/msdos.h (SYSTEM_PURESIZE_EXTRA): Decrease to 10000.
3658
36592008-10-09 Eli Zaretskii <eliz@gnu.org>
3660
3661 * frame.c (make_terminal_frame) [MSDOS]: Remove unused #ifdef'ed
3662 away code.
3663
36642008-10-09 Chong Yidong <cyd@stupidchicken.com>
3665
3666 * dispnew.c (update_text_area): Avoid looping due to large glyph
3667 overhangs (bug#1070).
3668
36692008-10-09 Kenichi Handa <handa@m17n.org>
3670
3671 * fontset.c (face_for_char): If face->fontset is negative, just
3672 return ascii_face.
3673
f5385255
SM
3674 * font.c (font_delete_unmatched): Fix previous change.
3675 Don't reject an entity if DPI and AVGWIDTH of an entity are 0.
aac0c6e3
MR
3676
36772008-10-09 Martin Rudalics <rudalics@gmx.at>
3678
3679 * frame.c (Fraise_frame): On text-only terminals select frame in
3680 order to make it visible. (Bug#1061)
3681
36822008-10-08 Chong Yidong <cyd@stupidchicken.com>
3683
3684 * fontset.c (fontset_find_font): Check frame validity.
3685
36862008-10-07 Chong Yidong <cyd@stupidchicken.com>
3687
a9b555d3 3688 * gtkutil.c (xg_display_open): Reset default display if none exists.
aac0c6e3
MR
3689 (xg_display_close): Allow Emacs to close all displays (bug#985).
3690
36912008-10-06 Andreas Schwab <schwab@suse.de>
3692
f5385255 3693 * sysdep.c (sys_signal): Always set SA_RESTART when noninteractively.
aac0c6e3
MR
3694
36952008-10-06 Chong Yidong <cyd@stupidchicken.com>
3696
f5385255 3697 * emacs.c (Vbefore_init_time, Vafter_init_time): Move from startup.el.
aac0c6e3 3698
a9b555d3 3699 * lisp.h (Vbefore_init_time, Vafter_init_time): Declare.
aac0c6e3
MR
3700
3701 * gtkutil.c (x_wm_set_size_hint): Return immediately if called
3702 during initialization.
3703
37042008-10-04 Eli Zaretskii <eliz@gnu.org>
3705
3706 * xdisp.c (redisplay_internal): If frame switched, redisplay the
3707 whole thing on MSDOS frames as well as on a TTY.
3708
3709 * dispnew.c (update_frame): Flush termscript for MSDOS frames as
3710 well as for TTY.
3711 (Fopen_termscript): Allow opening a termscript on MSDOS frames as
3712 well as on a TTY.
3713
3714 * sysdep.c (init_sys_modes): Set FRAME_GARBAGED_P for MSDOS frames
3715 as well as for TTY.
3716
3717 * systime.h (EMACS_TIME_CMP): Cast EMACS_SECS values to `long'.
3718
3719 * dispnew.c (change_frame_size_1): Set FrameRows and FrameCols for
3720 MSDOS frames as well.
3721
37222008-10-02 Adrian Robert <Adrian.B.Robert@gmail.com>
3723
3724 * image.c (x_clear_image_1): Under NS, call ns_free_indexed_color with
3725 correct arguments.
b71ac3dd 3726 * menu.c (find_and_return_menu_selection): Add cast.
aac0c6e3
MR
3727
37282008-10-03 Glenn Morris <rgm@gnu.org>
3729
3730 * emacs.c (USAGE1): Add --daemon.
3731
37322008-10-02 Eli Zaretskii <eliz@gnu.org>
3733
3734 * process.c (procfs_system_process_attributes): Multiply `pcpu' by
3735 100, so it's in percents as advertised.
3736
37372008-10-02 Adrian Robert <Adrian.B.Robert@gmail.com>
3738
3739 * nsterm.h (ns_cursor_types, ns_output.desired_cursor_color)
3740 (ns_output.current_cursor, ns_output.desired_cursor)
3741 (ns_output.last_inactive, FRAME_CURSOR, FRAME_NEW_CURSOR)
3742 (FRAME_NEW_CURSOR_COLOR): Remove.
3743
3744 * nsfns.m (ns_set_cursor_color): Use FRAME_CURSOR_COLOR.
a9b555d3 3745 (ns_lisp_to_cursor_type, ns_cursor_type_to_lisp): Use core Emacs
aac0c6e3
MR
3746 enumeration (HOLLOW_BOX_CURSOR, etc.).
3747
3748 * nsterm.m (ns_frame_rehighlight): Remove commented code.
3749 (draw_window_cursor): Simplify code.
f5385255
SM
3750 (EmacsView-windowDidBecomeKey:,-windowDidResignKey:):
3751 Don't change cursor type. In latter, call rehighlight instead of doing
aac0c6e3 3752 updates manually.
a9b555d3
JB
3753 (EmacsPrefsController-setPanelFromValues,-setValuesFromPanel):
3754 Use core Emacs cursor types.
aac0c6e3 3755
b8ff72fa 3756 * xdisp.c (draw_glyphs): Don't call notice_overwritten_cursor under NS.
aac0c6e3
MR
3757
37582008-10-02 Martin Rudalics <rudalics@gmx.at>
3759
3760 * process.c (Faccept_process_output): Fix doc-string.
3761
37622008-10-02 Dan Nicolaescu <dann@ics.uci.edu>
3763
3764 * gmalloc.c (__sbrk): Also define for uClibc.
3765
3766 * s/gnu-linux.h (GNU_LIBRARY_PENDING_OUTPUT_COUNT): Add definition
3767 for uClibc.
3768
37692008-10-01 Adrian Robert <Adrian.B.Robert@gmail.com>
3770
3771 * nsfont.m (nsfont_spec_to_traits): Use UnXX masks only for non-normal
3772 styles.
3773 (nsfont_open): Reenable the cache.
3774
37752008-10-01 Adrian Robert <Adrian.B.Robert@gmail.com>
3776
3777 * font.c (font_matching_entity): Reflect ATTRS in font selection.
3778 (font_find_for_lface) [HAVE_NS]: Don't ignore case.
3779
37802008-09-30 Stefan Monnier <monnier@iro.umontreal.ca>
3781
3782 * dispnew.c (Fsend_string_to_terminal): Don't try to send a string to
3783 a suspended terminal.
3784
37852008-09-30 Michael Albinus <michael.albinus@gmx.de>
3786
3787 * dbusbind.c (xd_signature): Use strcat instead of sprintf.
3788
37892008-09-30 Eli Zaretskii <eliz@gnu.org>
3790
3791 * Makefile.in (MSDOS_SUPPORT): Remove ccl.elc and codepage.elc.
3792
37932008-09-30 Chong Yidong <cyd@stupidchicken.com>
3794
3795 * xdisp.c (move_it_to): Don't advance the iterator if the last tab
3796 in a continued line coincides with a line beginning.
3797
37982008-09-29 Adrian Robert <Adrian.B.Robert@gmail.com>
3799
3800 * nsfont.m (nsfont_trait_distance): Fix bug.
3801 (nsfont_list): Return a list rather than a vector (syncs with Handa
3802 changes of 2008-05-14).
3803 (nsfont_open): Improve logging.
3804
38052008-09-29 Andreas Schwab <schwab@suse.de>
3806
3807 * keyboard.c (syms_of_keyboard) <input-decode-map>: Doc fix.
3808
38092008-09-28 Martin Rudalics <rudalics@gmx.at>
3810
3811 * character.c (Fchar_resolve_modifiers): Rewrite Elisp function
3812 name as char-resolve-modifiers.
3813 Reported by: Markus Triska <markus.triska@gmx.at>
3814
38152008-09-28 Dan Nicolaescu <dann@ics.uci.edu>
3816
3817 * dispnew.c (init_display): Return earlier when running as a daemon.
3818
38192008-09-27 Adrian Robert <Adrian.B.Robert@gmail.com>
3820
3821 * nsfont.m (nsfont_draw): Fix up composition rendering (cmp_from, ...).
3822
38232008-09-27 Eli Zaretskii <eliz@gnu.org>
3824
3825 * composite.c (Fcomposition_get_gstring)
3826 (Fcompose_region_internal, Fcompose_string_internal)
3827 (Ffind_composition_internal): Doc fix.
3828 (syms_of_composite) <compose-chars-after-function>: Doc fix.
3829 (syms_of_composite) <auto-composition-function>: Doc fix.
3830 (syms_of_composite) <composition-function-table>: Doc fix.
3831
38322008-09-25 Chong Yidong <cyd@stupidchicken.com>
3833
3834 * search.c (wordify): New argument for lax word-ends.
3835 (Fword_search_forward_lax, Fword_search_backward_lax): New funs.
3836
38372008-09-24 Dan Nicolaescu <dann@ics.uci.edu>
3838
3839 * lisp.h (is_daemon): Declare.
3840 * dispnew.c (init_display): Do not try to initialize the terminal
3841 when running as a daemon.
3842
38432008-09-22 Chong Yidong <cyd@stupidchicken.com>
3844
3845 * nsfns.m (compute_tip_xy): Use x_display_pixel_width and
3846 x_display_pixel_height.
3847
38482008-09-22 Martin Rudalics <rudalics@gmx.at>
3849
3850 * undo.c (record_point): Don't call Fundo_boundary for first
3851 change. (Bug#731)
3852
38532008-09-22 Juanma Barranquero <lekktu@gmail.com>
3854
3855 * emacs.c (Fdaemonp): Doc fix.
3856
38572008-09-22 Dan Nicolaescu <dann@ics.uci.edu>
3858
3859 * emacs.c (main): Place #ifdef in the proper place.
3860
38612008-09-21 Dan Nicolaescu <dann@ics.uci.edu>
3862
3863 * emacs.c (standard_args): Add --daemon.
3864 (main): Disconnect from the terminal when --daemon is passed.
3865 (is_daemon): New variable.
3866 (Fdaemonp): New function.
3867 (syms_of_emacs): Defsubr it.
3868
38692008-09-20 Chong Yidong <cyd@stupidchicken.com>
3870
3871 * xdisp.c (get_next_display_element): Handle string display
3872 correctly when checking for the end of a box run.
3873
38742008-09-20 Glenn Morris <rgm@gnu.org>
3875
3876 * fileio.c (Qdelete_by_moving_to_trash): New Lisp_Object.
3877 (syms_of_fileio): Add Qdelete_by_moving_to_trash.
3878 (Frename_file): Avoid copying to trash if a rename involves
3879 a delete. (Bug#964).
3880
38812008-09-20 Eli Zaretskii <eliz@gnu.org>
3882
3883 * keyboard.c (Fset_quit_char, Fset_input_meta_mode)
3884 (Fset_output_flow_control, Fcurrent_input_mode): Support MSDOS
3885 frames as well as termcap frames.
3886 (handle_interrupt): Remove "#ifndef MSDOS" around the call to
3887 get_named_tty.
3888
38892008-09-19 Eli Zaretskii <eliz@gnu.org>
3890
3891 * process.c (procfs_system_process_attributes): Fix cmdline in
3892 case /proc/PID/cmdline is empty.
3893
3894 * xterm.c (x_wm_set_size_hint): Use x_display_pixel_width and
3895 x_display_pixel_height.
3896
38972008-09-19 Juanma Barranquero <lekktu@gmail.com>
3898
3899 * frame.c (x_fullscreen_adjust): Declare var as Display_Info.
3900
3901 * w32fns.c (Fx_display_pixel_width, Fx_display_pixel_height)
3902 (compute_tip_xy): Use x_display_pixel_width, x_display_pixel_height.
3903
39042008-09-19 Dan Nicolaescu <dann@ics.uci.edu>
3905
3906 * dispextern.h (struct it): Move line_wrap away from the middle of
3907 bitfields. Move voffset in struct iterator_stack_entry after the
3908 bitfields. Move tab_width near after another short.
3909
39102008-09-18 Dan Nicolaescu <dann@ics.uci.edu>
3911
3912 * frame.h (struct frame): Move alpha from the middle of bitfields.
3913
3914 * window.h (struct window): Move frozen_window_start_p after the
3915 rest of the bitfields to reduce padding.
3916
39172008-09-18 Chong Yidong <cyd@stupidchicken.com>
3918
3919 * xterm.h (x_display_info): Remove `height' and `width' members.
3920
3921 * nsterm.h (ns_display_info): Remove `height' and `width' members.
3922
3923 * w32term.h (w32_display_info): Remove `height', `width',
3924 `height_in', and `width_in' members.
3925
b8ff72fa
SM
3926 * xterm.c (x_display_pixel_height, x_display_pixel_width):
3927 New functions.
aac0c6e3
MR
3928 (x_calc_absolute_position): Use them.
3929 (x_term_init): Omit removed `height' and `width' members.
3930
b8ff72fa
SM
3931 * w32term.c (x_display_pixel_height, x_display_pixel_width):
3932 New functions.
aac0c6e3
MR
3933 (w32_read_socket, x_calc_absolute_position): Use them.
3934 (w32_initialize_display_info, w32_term_init): Omit removed members
3935 of w32_display_info.
3936
b8ff72fa
SM
3937 * nsterm.m (x_display_pixel_height, x_display_pixel_width):
3938 New functions.
3939 (ns_initialize_display_info): Omit removed members of ns_display_info.
aac0c6e3 3940
b8ff72fa
SM
3941 * xterm.c (x_display_pixel_height, x_display_pixel_width):
3942 New functions.
aac0c6e3
MR
3943 (x_calc_absolute_position): Use them.
3944 (x_term_init): Omit removed `height' and `width' members.
3945
3946 * xfns.c (Fx_display_pixel_width, Fx_display_pixel_height)
b8ff72fa
SM
3947 (compute_tip_xy):
3948 * frame.c (x_fullscreen_adjust):
aac0c6e3
MR
3949 * xmenu.c (menu_position_func): Use x_display_pixel_height and
3950 x_display_pixel_width.
3951
39522008-09-18 Kenichi Handa <handa@m17n.org>
3953
3954 * composite.c (fill_gstring_header): Don't check FROM and TO here.
3955 (composition_compute_stop_pos): Fix handling of static composition.
3956 (Fcomposition_get_gstring): Check FROM and TO at first.
3957
39582008-09-17 Stefan Monnier <monnier@iro.umontreal.ca>
3959
46e722a9 3960 * composite.c (Fcomposition_get_gstring): Yet another int/Lisp_Object
aac0c6e3
MR
3961 mixup (YAILOM).
3962
39632008-09-17 Chong Yidong <cyd@stupidchicken.com>
3964
3965 * indent.c (Fvertical_motion): Use position reported by iterator
3966 instead of PT for determining screen motion (bug#943).
3967
39682008-09-17 Romain Francoise <romain@orebokech.com>
3969
3970 * composite.c (composition_adjust_point): Fix int/EMACS_INT mixup.
3971
39722008-09-17 Kenichi Handa <handa@m17n.org>
3973
3974 * ftfont.c (ftfont_shape_by_flt): Downcase family name.
3975
3976 * composite.c (Fcomposition_get_gstring): Make bigger gstring_work
3977 if necessary.
3978
39792008-09-16 Kenichi Handa <handa@m17n.org>
3980
3981 * coding.c (make_conversion_work_buffer): Avoid calling
3982 Fget_buffer_create if it is not necessary.
3983
39842008-09-15 Martin Rudalics <rudalics@gmx.at>
3985
3986 * window.c (Fselect_window): Don't update window_select_count and
3987 use_time when norecord is not nil.
3988
39892008-09-14 Kenichi Handa <handa@m17n.org>
3990
3991 * fileio.c (Finsert_file_contents): Delete incorrect decrement of
3992 specpdl_ptr.
3993
39942008-09-12 Kenichi Handa <handa@m17n.org>
3995
3996 * indent.c (scan_for_column): Don't handle automatic composition
3997 if the current buffer is not associated with a window.
3998
3999 * composite.c (composition_reseat_it): If the current buffer is
4000 not associated with a window, ignore the automatic composition.
4001 (find_automatic_composition): Likewise.
4002
40032008-09-12 Stefan Monnier <monnier@iro.umontreal.ca>
4004
4005 * term.c (close_gpm): New fun extracted from Fgpm_mouse_stop.
4006 (Fgpm_mouse_stop): Use it.
4007 * termhooks.h (close_gpm): Declare.
4008 * keyboard.c (tty_read_avail_input): Forcefully close the gpm
4009 connection if Gpm_GetEvent fails.
4010
4011 * window.c (set_window_buffer): Always preserve current-buffer.
4012
40132008-09-12 Glenn Morris <rgm@gnu.org>
4014
4015 * charset.c (init_charset): Warn if etc/charsets not found. (Bug#909)
4016
40172008-09-11 Glenn Morris <rgm@gnu.org>
4018
4019 * charset.c (charset-map-path): Doc fix.
4020
40212008-09-10 Kenichi Handa <handa@m17n.org>
4022
4023 * xdisp.c (handle_composition_prop): Set it->cmp_it.ch to -1.
4024
4025 * font.c (Ffont_shape_gstring): Make glyphs of non-nil adjustment
4026 compose a grapheme cluster with the preceding base glyph.
4027
4028 * composite.c (composition_compute_stop_pos): Fix previous change.
4029 Reset cmp_it->id to -1 at first.
4030
40312008-09-10 Glenn Morris <rgm@gnu.org>
4032
4033 * Makefile.in (character.o, chartab.o): Fix config.h typo.
4034
40352008-09-09 Chong Yidong <cyd@stupidchicken.com>
4036
4037 * keyboard.c (read_key_sequence): Reapply translation maps when
4038 switching keyboards.
4039
40402008-09-09 Kenichi Handa <handa@m17n.org>
4041
4042 * ftfont.c (ftfont_shape_by_flt): Use "combining" FLT for ASCII
4043 characters.
4044
4045 * composite.c (FORWARD_CHAR): Fix calculation
4046 of (POSITION).pos_byte.
4047 (composition_compute_stop_pos): Limit the search of composition to
4048 at most 500 characters ahead. If we reach the limit or find a
4049 newline, set cmp_it->ch to -2 and return 0.
4050 (composition_reseat_it): Handle the case that cmp_it->ch is -2.
4051
40522008-09-08 Kenichi Handa <handa@m17n.org>
4053
4054 * indent.c (Fvertical_motion): Be sure to set
4055 it_overshoot_expected if it.cmp_it.id is non-negative.
4056
40572008-09-07 Andreas Schwab <schwab@suse.de>
4058
4059 * callproc.c (Fcall_process): Don't hold references to string data
4060 across garbage collection. Move initialisation of new_argv down
4061 to avoid compiler bug.
4062
40632008-09-07 Roland Winkler <Roland.Winkler@physik.uni-erlangen.de>
4064
4065 * process.c (Fsystem_process_attributes): Doc fix.
4066
40672008-09-07 Chong Yidong <cyd@stupidchicken.com>
4068
4069 * callproc.c (Fcall_process): Canonicalize current directory name.
4070
4071 * xdisp.c (move_it_to): When moving by vpos, ensure that the
4072 iterator advances to the next line if the current line ends in a
4073 continued tab.
4074
40752008-09-07 Teodor Zlatanov <tzz@lifelogs.com>
4076
4077 * nsfont.m (nsfont_draw): Fix the references to missing gidx data
4078 member to point to cmp_from.
4079
4080 * xdisp.c: Doc fix for references to gidx data member.
4081
40822008-09-07 Stefan Monnier <monnier@iro.umontreal.ca>
4083
4084 * buffer.c (Fbuffer_swap_text): Reset window->point markers.
4085
40862008-09-07 Kenichi Handa <handa@m17n.org>
4087
4088 * composite.c (FORWARD_CHAR): Check STOP after
4089 incrementing (POSITION).pos.
4090
40912008-09-06 Roland Winkler <Roland.Winkler@physik.uni-erlangen.de>
4092
4093 * process.c (Fsystem_process_attributes): Doc fix.
4094
40952008-09-06 Chong Yidong <cyd@stupidchicken.com>
4096
4097 * keyboard.c (Ftop_level): Doc fix.
4098
40992008-09-06 Eli Zaretskii <eliz@gnu.org>
4100
4101 * xmenu.c (xmenu_show) [!HAVE_X_WINDOWS]: If frame has a
4102 minibuffer, don't let lower part of menu invade the echo area.
4103
4104 * msdos.c (IT_menu_display): Use STRING_CHAR_ADVANCE instead of a
4105 "char *q" to access menu text and advance through it. Revert the
4106 change that displayed ">" instead of ASCII character 0x10.
4107
41082008-09-05 Eli Zaretskii <eliz@gnu.org>
4109
4110 * menu.c (single_menu_item) [!HAVE_BOXES]: Enable emulation of
4111 toggle boxes and radio buttons on MS-DOS as well.
4112
41132008-09-05 Kenichi Handa <handa@m17n.org>
4114
4115 * composite.c (autocmp_chars): Check lookback count.
4116 (composition_compute_stop_pos): Set cmp_it->lookback.
4117 (composition_reseat_it): Check lookback count.
4118 (struct position_record): New struct.
4119 (FORWARD_CHAR, BACKWARD_CHAR, CHAR_COMPOSABLE_P): New macros.
4120 (find_automatic_composition): New function.
4121 (composition_adjust_point): Use find_automatic_composition.
4122
4123 * dispextern.h (struct composition_it): New member lookback.
4124
41252008-09-02 Chong Yidong <cyd@stupidchicken.com>
4126
4127 * indent.c (Fvertical_motion): Don't call move_it_by_lines again
4128 if moving by a single line.
4129
41302008-09-02 Andreas Schwab <schwab@suse.de>
4131
4132 * xterm.c (x_delete_display): Fix merge error.
4133
4134 * fileio.c (Fexpand_file_name): Remove unused variables.
4135
41362008-09-02 Eli Zaretskii <eliz@gnu.org>
4137
4138 * fileio.c (Fexpand_file_name): Copy argument `name' into local
4139 storage on all platforms, not just on DOS_NT.
4140
41412008-09-02 Jason Rumney <jasonr@gnu.org>
4142
b8ff72fa
SM
4143 * w32menu.c (Fx_popup_menu, Fx_popup_dialog, w32_menu_show):
4144 Ensure mouse is not grabbed after menu is finished.
aac0c6e3
MR
4145
41462008-09-01 Chong Yidong <cyd@stupidchicken.com>
4147
4148 * xfaces.c (Finternal_set_alternative_font_family_alist)
4149 (Finternal_set_alternative_font_registry_alist): Properly copy
4150 entire alist structure.
4151
41522008-09-01 Kenichi Handa <handa@m17n.org>
4153
d66c0241 4154 * ftfont.c (ftfont_spec_pattern): Don't create a charset if the
aac0c6e3 4155 representative chars of the script is a vector.
d66c0241
JB
4156 (ftfont_list): Handle the case where the representative chars of
4157 the script is a vector.
aac0c6e3
MR
4158
4159 * character.c (syms_of_character): Docstring of
4160 script-representative-chars fixed.
4161
41622008-08-31 Eli Zaretskii <eliz@gnu.org>
4163
4164 * msdos.c (BUILD_CHAR_GLYPH): New macro.
4165 (IT_menu_display): Use it instead of SET_CHAR_GLYPH to construct
4166 the menu. Allocate larger buffer for `text', to account for
4167 possible ^C characters.
4168
41692008-08-31 Martin Rudalics <rudalics@gmx.at>
4170
4171 * xdisp.c (prepare_menu_bars): Don't call
4172 Vwindow_size_change_functions with arg Qt.
4173
41742008-08-31 Stefan Monnier <monnier@iro.umontreal.ca>
4175
4176 * font.h (font_range):
4177 * fileio.c (report_file_error):
46e722a9
SM
4178 * composite.c (composition_update_it): Yet another int/Lisp_Object
4179 mixup (YAILOM).
aac0c6e3
MR
4180
41812008-08-30 Glenn Morris <rgm@gnu.org>
4182
4183 * data.c (Fmake_variable_frame_local): Doc fix.
4184
4185 * frame.c (Fmodify_frame_parameters): Doc fix.
4186
41872008-08-30 Eli Zaretskii <eliz@gnu.org>
4188
4189 * w32.c (init_user_info): Allocate buf[] with xmalloc using the size
4190 needed by GetTokenInformation.
4191 (w32_system_process_attributes): Check return values of all system
4192 APIs.
4193
4194 * msdos.c (IT_display_cursor): Write "CURSOR ON/OFF" to termscript
4195 only when the state changes.
4196 (IT_update_begin, IT_update_end): Add termscript trace.
4197
4198 * w16select.c (Fw16_set_clipboard_data): Don't encode text if
4199 clipboard is unavailable. Set dst to NULL if it doesn't point to
4200 malloc'ed data.
4201 (Fw16_get_clipboard_data): Initialize htext to NULL, to avoid
4202 passing random values to xfree.
4203
4204 * dispnew.c (init_display): Set `tty's association in frame's
b8ff72fa 4205 parameters alist to the name of the terminal device, if that is known.
aac0c6e3
MR
4206
42072008-08-29 Jason Rumney <jasonr@gnu.org>
4208
4209 * w32uniscribe.c (uniscribe_check_otf): Don't fallback on DFLT script.
4210
42112008-08-29 Eli Zaretskii <eliz@gnu.org>
4212
4213 * composite.c (fill_gstring_body): Avoid compiler warnings.
4214
4215 * font.c (font_fill_lglyph_metrics): Use EMACS_INT in
4216 LGLYPH_SET_CODE to avoid compiler warnings.
4217
2ae37cf0 4218 * makefile.w32-in ($(BLD)/w32uniscribe.$(O)): Depend on composite.h.
aac0c6e3
MR
4219
4220 * composite.h (LGLYPH_SET_CODE): Cast `val' to EMACS_INT.
4221
4222 * w32uniscribe.c (uniscribe_shape): Shut up compiler warning in
4223 LGLYPH_SET_CODE.
4224
42252008-08-29 Kenichi Handa <handa@m17n.org>
4226
4227 * fileio.c (report_file_error): Don't downcase the first character
4228 of errstring if it is still unibyte.
4229
42302008-08-29 Kenichi Handa <handa@m17n.org>
4231
4232 These changes are to re-implement the automatic composition so
4233 that it doesn't use text properties.
4234
4235 * Makefile.in (ftfont.o): Depend on composite.h.
4236 (composite.o): Depend dispextern.h, font.h, frame, and window.h.
4237
4238 * character.h (Vunicode_category_table): Extern it.
4239
4240 * character.c (Vunicode_category_table): New variable.
4241 (syms_of_character): DEFVAR_LISP Vunicode_category_table.
4242
4243 * chartab.c (optimize_sub_char_table): Perform more greedy
4244 optimization.
4245
b8ff72fa
SM
4246 * composite.h (enum composition_method):
4247 Delete COMPOSITION_WITH_GLYPH_STRING.
aac0c6e3
MR
4248 (COMPOSITION_METHOD): Don't check COMPOSITION_WITH_GLYPH_STRING.
4249 (Vcomposition_function_table): Extern it.
4250 (LGSTRING_XXX, LGLYPH_XXX): Macros moved from font.h.
4251 (composition_gstring_put_cache, composition_gstring_from_id)
4252 (composition_gstring_p, composition_gstring_width)
4253 (composition_compute_stop_pos, composition_reseat_it)
4254 (composition_update_it, composition_adjust_point): Extern them.
4255 (Fcomposition_get_gstring): EXFUN it.
4256
d66c0241 4257 * composite.c: Include window.h, frame.h, dispextern.h, font.h.
aac0c6e3
MR
4258 (Vcomposition_function_table)
4259 (get_composition_id): Don't handle COMPOSITION_WITH_GLYPH_STRING.
b8ff72fa
SM
4260 (gstring_hash_table, gstring_work, gstring_work_headers):
4261 New variables.
aac0c6e3
MR
4262 (gstring_lookup_cache, composition_gstring_put_cache)
4263 (composition_gstring_from_id, composition_gstring_p)
4264 (composition_gstring_width, fill_gstring_header)
4265 (fill_gstring_body, autocmp_chars, composition_compute_stop_pos)
4266 (composition_reseat_it, composition_update_it)
b8ff72fa 4267 (composition_adjust_point, Fcomposition_get_gstring): New functions.
aac0c6e3
MR
4268 (syms_of_composite): Initialize gstring_hash_table, gstrint_work,
4269 and gstring_work_headers. DEFVAR_LISP composition-function-table.
4270 Defsubr compostion_get_gstring.
4271
4272 * dispextern.h (struct glyph): New union u.cmp. Delete the member
4273 cmp_id.
4274 (struct glyph_string): Delete the member gidx. New members
4275 cmp_id, cmp_from, and cmp_to.
4276 (enum it_method): Delete GET_FROM_COMPOSITION.
4277 (struct composition_it): New struct.
4278 (struct it): New member cmp_it, and iterator_stack_entry.cmp_it.
4279 Delete c, len, cmp_id, cmp_len in u.comp.
4280
4281 * font.h (enum lgstring_indices): Delete it.
b8ff72fa 4282 (LGSTRING_XXX, LGLYPH_XXX): Move these macros to composite.h.
aac0c6e3 4283 (enum lglyph_indices): Likewise.
b8ff72fa 4284 (font_range): Adjust extern.
aac0c6e3
MR
4285 (font_fill_lglyph_metrics): Extern it.
4286
4287 * font.c (QCf): New variable.
4288 (check_gstring): Use LGSTRING_GLYPH_LEN, not LGSTRING_LENGTH.
4289 (font_prepare_composition): Delete this function.
4290 (font_range): Type and arguments changed.
4291 (Ffont_make_gstring, Ffont_fill_gstring): Delete them.
4292 (font_fill_lglyph_metrics): New function.
b8ff72fa 4293 (Ffont_shape_text): Rename to Ffont_shape_gstring and change arguments.
aac0c6e3 4294 (syms_of_font): DEFSYM QCf. Delete defsubr for
b8ff72fa
SM
4295 Sfont_make_gstring, Sfont_fill_gstring, Sfont_shape_text.
4296 Defsubr Sfont_shape_gstring.
aac0c6e3
MR
4297
4298 * fontset.h (font_for_char): Extern it.
4299
4300 * fontset.c (font_for_char): New function.
4301
4302 * ftfont.c: Include composite.h.
4303 (ftfont_resolve_generic_family): Add langset "en" to pattern.
b8ff72fa 4304 (ftfont_shape_by_flt): Use LGSTRING_GLYPH_LEN, not LGSTRING_LENGTH.
aac0c6e3
MR
4305
4306 * indent.c: Include composite.h and dispextern.h.
4307 (check_composition): Delete this function.
4308 (scan_for_column): Handle composition by
4309 composition_compute_stop_pos, composition_reseat_it, and
4310 composition_update_it.
4311 (compute_motion): Likewise.
4312 (Fvertical_motion): Fix checking of composition.
4313
4314 * keyboard.c (adjust_point_for_property): Check composition by
4315 composition_adjust_point.
4316
b8ff72fa 4317 * nsterm.m (ns_draw_glyph_string): Adjust for the change of
aac0c6e3
MR
4318 struct glyph_string.
4319
b8ff72fa
SM
4320 * term.c (encode_terminal_code): Adjust for the change of struct glyph.
4321 (append_composite_glyph): Adjust for the change of struct it and
aac0c6e3
MR
4322 struct glyph.
4323 (produce_composite_glyph): Likewise.
4324
b8ff72fa
SM
4325 * w32term.c (x_draw_composite_glyph_string_foreground):
4326 Adjust for the change of struct glyph_string.
aac0c6e3
MR
4327 (x_draw_glyph_string): Likewise.
4328
4329 * w32uniscribe.c (struct uniscribe_font_info): Include composite.h.
4330 (uniscribe_shape): Use LGSTRING_GLYPH_LEN, not LGSTRING_LENGTH.
4331
4332 * xdisp.c: Include font.h.
4333 (it_props): Delete the entry for Qauto_composed.
4334 (init_iterator): Initialize it->cmp_it.id to -1.
4335 (compute_stop_pos): Call composition_compute_stop_pos.
b8ff72fa 4336 (face_before_or_after_it_pos): Adjust for the change of struct it.
aac0c6e3
MR
4337 (handle_auto_composed_prop): Delete it.
4338 (handle_composition_prop): Handle only static composition.
4339 (next_overlay_string): Remove it->method == GET_FROM_COMPOSITION
4340 from xassert. Initialize it->cmp_it.stop_pos.
b8ff72fa 4341 (push_it): Adjust for the change of struct it.
aac0c6e3
MR
4342 (pop_it): Likewise.
4343 (get_next_element): Delete next_element_from_composition.
4344 (CHAR_COMPOSED_P): New macro.
4345 (get_next_display_element): For automatic composition, get a face
4346 from the font in the glyph-string.
4347 (set_iterator_to_next): For GET_FROM_BUFFER and GET_FROM_STRING,
b8ff72fa 4348 check composition by it->cmp_it.id. Delete GET_FROM_COMPOSITION case.
aac0c6e3
MR
4349 (next_element_from_string): Check if the character at the current
4350 position is composed by CHAR_COMPOSED_P.
4351 (next_element_from_buffer): Likewise.
d66c0241
JB
4352 (next_element_from_composition): Adjust for the change of struct it.
4353 Update it->cmp_it.
b8ff72fa
SM
4354 (dump_glyph): Adjust for the change of struct glyph.
4355 (fill_composite_glyph_string): Adjust for the change of struct
aac0c6e3
MR
4356 it and struct glyph. Don't handle automatic composition here.
4357 (fill_gstring_glyph_string): New function.
4358 (x_get_glyph_overhangs): Handle automatic composition.
b8ff72fa 4359 (BUILD_COMPOSITE_GLYPH_STRING): Adjust for the change of struct glyph.
aac0c6e3
MR
4360 (BUILD_GSTRING_GLYPH_STRING): New macro.
4361 (BUILD_GLYPH_STRINGS): Call BUILD_GSTRING_GLYPH_STRING for
4362 automatic composition.
b8ff72fa 4363 (append_composite_glyph): Adjust for the change of struct it and
aac0c6e3 4364 struct glyph.
b8ff72fa 4365 (x_produce_glyphs): Adjust for the change of struct it.
aac0c6e3 4366
b8ff72fa 4367 * xterm.c (x_draw_composite_glyph_string_foreground): Adjust for
aac0c6e3
MR
4368 the change of struct glyph_string.
4369 (x_draw_glyph_string): Likewise.
4370
43712008-08-29 Glenn Morris <rgm@gnu.org>
4372
4373 * buffer.c (word-wrap): Doc fix.
4374 * xdisp.c (truncate-partial-width-windows): Doc fix.
4375 Increase default to 50.
4376
43772008-08-29 Chong Yidong <cyd@stupidchicken.com>
4378
4379 * xdisp.c (update_tool_bar_unwind): New function.
4380 (update_tool_bar): Temporarily set selected frame before building
4381 tool-bar items.
4382
43832008-08-28 Michael Albinus <michael.albinus@gmx.de>
4384
4385 * dbusbind.c (XD_ERROR, XD_DEBUG_MESSAGE): Use strncpy and
4386 snprintf, respectively.
4387 (xd_append_arg): Convert strings with Fstring_make_unibyte.
4388
43892008-08-28 Chong Yidong <cyd@stupidchicken.com>
4390
4391 * Makefile.in: Revert (undocumented) 2008-08-20 change adding
4392 LDFLAGS to GNUstep CC invocation.
4393
43942008-08-27 Chong Yidong <cyd@stupidchicken.com>
4395
4396 * indent.c (Fvertical_motion): Revert last change. Handle the
4397 general case where we are moving forward, and PT spans multiple
4398 screen lines.
4399
4400 * eval.c (find_handler_clause): Temporarily increase
4401 max-lisp-eval-depth while printing the backtrace buffer, to
4402 guarantee that help-mode code can run.
4403
44042008-08-27 Eli Zaretskii <eliz@gnu.org>
4405
4406 * msdos.c (Fmsdos_remember_default_colors): Don't reverse frame
4407 colors under -rv.
4408 (IT_set_frame_parameters): Don't swap foreground and background
4409 colors if `(reverse . t)' is present in the frame properties.
4410 (internal_terminal_init): Call init_frame_faces only for the
4411 initial frame.
4412
44132008-08-27 Andreas Schwab <schwab@suse.de>
4414
4415 * dired.c (Ffile_attributes): Avoid compiler warning in bitshift.
4416
44172008-08-27 Andreas Schwab <schwab@suse.de>
4418
4419 * search.c (search_buffer): Set char_base to zero only at the end.
4420
44212008-08-27 Kenichi Handa <handa@m17n.org>
4422
b8ff72fa 4423 * fileio.c (report_file_error): Fix handling of multibyte error string.
aac0c6e3
MR
4424
44252008-08-27 Andreas Seltenreich <seltenreich@gmx.de>
4426
4427 * xterm.c (x_term_init): Temporarily hide the partially
4428 initialized terminal while calling vendor-specific-keysyms.
4429
44302008-08-26 Eli Zaretskii <eliz@gnu.org>
4431
4432 * msdos.c (internal_terminal_init): Most initializations done only
4433 once, especially initial_screen_colors[] and termscript open.
4434
44352008-08-26 Chong Yidong <cyd@stupidchicken.com>
4436
4437 * eval.c (Fcondition_case): Doc fix.
4438
4439 * widgetprv.h (EmacsFramePart): Change font member to the new font
4440 struct.
4441
4442 * widget.c: Include character.h and font.h for XSETFONT.
4443 (setup_frame_gcs): Compute X font id from font struct, just once.
4444
44452008-08-26 Eli Zaretskii <eliz@gnu.org>
4446
4447 * term.c (get_named_tty): Fix last change.
4448
44492008-08-26 Chong Yidong <cyd@stupidchicken.com>
4450
4451 * indent.c (Fvertical_motion): If moving forward starting from a
b8ff72fa 4452 multi-line string, move the iterator to the last line of that string.
aac0c6e3
MR
4453
44542008-08-25 Eli Zaretskii <eliz@gnu.org>
4455
4456 * frame.c (do_switch_frame): Mark previously displayed frame as
4457 obscured for FRAME_MSDOS_P frames as well.
4458
44592008-08-24 Eli Zaretskii <eliz@gnu.org>
4460
4461 * frame.c (make_terminal_frame): Initialize f->terminal,
4462 f->terminal->reference_count, and scroll bars on MS-DOS as well.
4463 Set the top frame to newly created frame.
4464 (Fmake_terminal_frame): Reuse the_only_display_info.
4465
4466 * vm-limit.c (get_lim_data) [MSDOS]: Use alternative methods of
4467 estimating available memory.
4468
b97439ce 44692008-08-23 David Reitter <david.reitter@gmail.com>
aac0c6e3
MR
4470
4471 * nsterm.m (ns_draw_window_cursor): Don't call
4472 NSDisableScreenUpdates and NSEnableScreenUpdates on
4473 non-NS_IMPL_COCOA systems.
4474
44752008-08-23 Andreas Schwab <schwab@suse.de>
4476
4477 * process.c (procfs_system_process_attributes): Fix use of
4478 uninitialized variables.
4479
44802008-08-23 Eli Zaretskii <eliz@gnu.org>
4481
4482 * emacs.c (main) [MSDOS]: Call syms_of_xmenu.
4483
4484 * dispnew.c (init_display): Remove MS-DOS specific conditions for
4485 calling tty-set-up-initial-frame-faces.
4486
b8ff72fa
SM
4487 * xmenu.c (Fx_popup_dialog, Fx_popup_menu, xmenu_show):
4488 Allow MSDOS frames along with X frames.
aac0c6e3
MR
4489
4490 * termhooks.h (TERMINAL_ACTIVE_P): Handle output_msdos_raw in
4491 addition to output_termcap.
4492
4493 * xdisp.c (redisplay_internal) [MSDOS]: Don't call set_tty_color_mode.
4494
4495 * termchar.h (FRAME_TTY): Support output_msdos_raw.
4496 (struct tty_display_info) [MSDOS]: Add fields related to mouse
4497 highlight.
4498
4499 * process.c [!subprocesses]: Define QCname.
4500 (syms_of_process): Intern and staticpro it.
4501
4502 * w16select.c (Fw16_set_clipboard_data, Fw16_get_clipboard_data):
b8ff72fa
SM
4503 Adjust for changes in encoding/decoding routines.
4504 Use encode_coding_object and decode_coding_object instead of
aac0c6e3
MR
4505 encode_coding and decode_coding.
4506
b8ff72fa 4507 * sysdep.c (init_sys_modes): Call dos_ttraw with tty_out as argument.
aac0c6e3
MR
4508
4509 * dosfns.c: Include frame.h before termhooks.h.
4510 (dos_cleanup): Use CURTTY ()->termscript instead of a global
4511 variable termscript.
4512
4513 * s/msdos.h (USER_FULL_NAME): Define.
4514 (SYSTEM_PURESIZE_EXTRA): Bump up to 100K.
4515
4516 * editfns.c (USER_FULL_NAME): Define to pw->pw_gecos if undefined.
4517 (Fuser_full_name): Use USER_FULL_NAME instead of a literal
4518 pw->pw_gecos.
4519
4520 * keyboard.c (handle_interrupt) [MSDOS]: Call cursor_to with
4521 SELECTED_FRAME as additional (1st) argument.
4522 (tty_read_avail_input): Handle output_msdos_raw in
4523 addition to output_termcap.
4524
4525 * msdos.c: Include frame.h before termhooks.h.
4526 (mouse_on, mouse_off, mouse_moveto, mouse_init)
4527 (msdos_set_cursor_shape, IT_set_face, IT_write_glyphs)
4528 (show_mouse_face, IT_clear_end_of_line, IT_clear_screen)
4529 (IT_clear_to_end, IT_cursor_to, IT_display_cursor, IT_cmgoto)
4530 (IT_set_terminal_modes, IT_reset_terminal_modes)
4531 (IT_set_frame_parameters): Use tty->termscript instead of a global
4532 variable termscript.
4533 (IT_write_glyphs): Use tty->terminal->terminal_coding instead of a
4534 global variable terminal_coding. Don't refer to
4535 Vnonascii_translation_table.
4536 (internal_terminal_init): Set Vwindow_system in current_kboard.
4537 Don't use TTY_CHAR_INS_DEL_OK. Set Vinitial_window_system.
4538 Announce date and time of session start, if termscript is open.
4539 Don't zero out the_only_display_info (it is done in
b8ff72fa
SM
4540 term.c:init_tty). Open termscript only of not already open.
4541 Log "SCREEN SAVED" here, instead of IT_set_terminal_modes. Init mouse
aac0c6e3
MR
4542 here instead of dos_ttraw. Don't initialize display if this is an
4543 initial tty. Don't set FRAME_FONT.
4544 (Vwindow_system_version): Bump to 23.
4545 (dos_ttraw): Accept a TTY argument; all callers fixed. If mouse
4546 is available, set up mouse_position_hook.
4547 (dos_ttraw, IT_set_terminal_modes): If called with initial
4548 terminal, do nothing.
4549 (IT_set_frame_parameters): Handle the Qtty_type frame
4550 parameter by calling internal_terminal_init.
4551 (dos_set_window_size, show_mouse_face)
4552 (clear_mouse_face, IT_note_mode_line_highlight)
4553 (IT_note_mouse_highlight, IT_update_begin, IT_frame_up_to_date)
4554 (dos_rawgetc): Use tty_display_info instead of x_display_info.
4555 (initialize_msdos_display): New function.
4556 (IT_cursor_to, IT_clear_to_end, IT_clear_screen)
4557 (IT_clear_end_of_line, IT_insert_glyphs, IT_write_glyphs)
4558 (IT_delete_glyphs, IT_ring_bell, IT_reset_terminal_modes)
4559 (IT_set_terminal_modes, IT_set_terminal_window, IT_update_begin):
b8ff72fa 4560 Accept additional argument: a pointer to a frame. Update all callers.
aac0c6e3
MR
4561 (request_sigio, unrequest_sigio): Don't define, now defined on
4562 sysdep.c.
4563 (IT_write_glyphs): Rewrite to use encode_terminal_code.
4564
4565 * term.c [MSDOS]: Include msdos.h.
4566 (init_tty) [MSDOS]: Reuse most of WINDOWSNT branch. Change cpp
4567 conditional to DOS_NT. Allow only one call to this function in a
4568 session. Don't allocate a new struct tty_display_info; instead,
4569 reuse the_only_display_info. Call get_tty_size to get screen
4570 dimensions. Call init_baud_rate to set bad_rate.
4571 (dissociate_if_controlling_tty) [MSDOS]: Ifdef away function body.
4572 (Fsuspend_tty) [MSDOS]: Don't close input and output.
b8ff72fa 4573 (Fresume_tty) [MSDOS]: Don't reopen the TTY; instead, use stdin/stdout.
aac0c6e3
MR
4574 (get_tty_terminal, get_named_tty, Ftty_type)
4575 (Fcontrolling_tty_p): Handle output_msdos_raw in addition to
4576 output_termcap.
b8ff72fa
SM
4577 (Fresume_tty, Fsuspend_tty, init_tty, delete_tty):
4578 Call add_keyboard_wait_descriptor and delete_keyboard_wait_descriptor
2ae37cf0 4579 only when subprocesses are supported.
aac0c6e3
MR
4580
4581 * frame.c (make_terminal_frame) [MSDOS]: Adjust initialization of
4582 f->output_data.x.
4583 (Fmake_terminal_frame) [MSDOS]: Don't allow creation of new
4584 terminal devices.
4585
5582fbc7 4586 * msdos.h: Remove definition of struct x_display_info and struct
aac0c6e3
MR
4587 x_output.
4588 (FRAME_FONT): Use output_data.tty.
4589 (FRAME_FOREGROUND_PIXEL, FRAME_BACKGROUND_PIXEL): Don't define.
b8ff72fa
SM
4590 (struct x_display_info): Rename from display_info. Update all users in
4591 msdos.c.
aac0c6e3 4592 (struct x_output): Remove background_pixel and foreground_pixel.
b8ff72fa 4593 (the_only_display_info): Rename from the_only_x_display.
aac0c6e3
MR
4594 (dos_ttraw): Update prototype.
4595
4596 * Makefile.in (MSDOS_OBJ): Add xmenu.o.
4597 (SOME_MACHINE_LISP): Add ../lisp/term/pc-win.elc.
4598
45992008-08-23 Jason Rumney <jasonr@gnu.org>
4600
4601 * image.c (enum tiff_keyword_index, tiff_format): Add :index keyword.
4602 (fn_TIFFSetDirectory): New library function used.
4603 (init_tiff_functions) [HAVE_NTGUI]: Initialize it.
4604 (tiff_load): Use :index to select among multiple images. Set count
4605 property when multiple images exist.
4606 (gif_format): Use :index, not :image.
4607
46082008-08-23 Chong Yidong <cyd@stupidchicken.com>
4609
4610 * xdisp.c (try_scrolling): Check INT_MAX instead of
4611 MOST_POSITIVE_FIXNUM for maximum integer value. Include limits.h
4612 to obtain INT_MAX.
4613
46142008-08-21 İsmail Dönmez <ismail@namtrac.org> (tiny change)
4615
4616 * xterm.c (x_delete_display): Don't call XrmDestroyDatabase on GTK+.
4617
46182008-08-21 Christian Faulhammer <opfer@gentoo.org> (tiny change)
4619
4620 * Makefile.in (temacs${EXEEXT}): On GNUstep, link to appropriate
4621 GNUstep library location.
4622
46232008-08-21 Chong Yidong <cyd@stupidchicken.com>
4624
4625 * xfaces.c (x_update_menu_appearance): Check validity of menu font
4626 before using it.
4627
4628 * puresize.h (BASE_PURESIZE): Increase to 1250000.
4629
46302008-08-20 Adrian Robert <Adrian.B.Robert@gmail.com>
4631
4632 * nsfns.m (ns-read-file-name): Add casts to avoid warning.
4633 (ns-convert-utf8-nfd-to-nfc): Warn if cannot execute correctly.
4634 * nsfont.m (nsfont_draw): Compare indexed colors to 0, not nil.
4635 * nsterm.h (EmacsView-unlockFocusNeedsFlush:): Add declaration.
4636 (EmacsApp-cursor_blink_handler): Remove declaration.
4637 * nsterm.m (ns_draw_glyph_string): Update first conditional body to
4638 match 01 Feb 2008 changes in xterm.c.
4639 (ns_read_socket): Add cast to avoid warning.
4640 (EmacsApp-application:openFiles:): Don't call replyToOpenOrPrint: on
4641 GNUstep.
4642
46432008-08-20 Chong Yidong <cyd@stupidchicken.com>
4644
4645 * xselect.c (x_get_foreign_selection): Return nil if desired
4646 selection could not be obtained, instead of signalling an error.
4647
46482008-08-20 David Reitter <david.reitter@gmail.com>
4649
4650 * nsfns.m (ns_lisp_to_cursor_type): Replace with generic xfns.c.
4651 * nsterm.m: Remove ns-specific code for cursor blinking.
4652 (ns_draw_window_cursor): Clear cursor properly rather than
4653 redrawing the area. Respect width of bar cursors.
4654 These changes enable the use of generic blink-cursor-mode and
4655 generic cursor types in NS and support smooth cursor movements (do
4656 not blink off after command).
4657 * xdisp.c (get_phys_cursor_geometry): Redraw wider rectangle on
4658 Nextstep, too.
4659
46602008-08-19 Kenichi Handa <handa@m17n.org>
4661
4662 * font.c (Vfont_log_deferred): New variable.
4663 (font_add_log): Check Vfont_log_deferred.
4664 (font_deferred_log): New function.
4665
4666 * font.h (font_deferred_log): Extern it.
4667
4668 * fontset.c (reorder_font_vector): Use encoding charset of fonts
4669 for sorting.
4670 (face_for_char): Use deferred log.
4671
46722008-08-18 Kenichi Handa <handa@m17n.org>
4673
4674 * fontset.c (face_for_char): Add font log.
4675
4676 * font.c (font_add_log): Add the font properties :script, :lang,
4677 and :otf in the log.
4678
46792008-08-17 Chong Yidong <cyd@stupidchicken.com>
4680
4681 * xdisp.c: Remove dead code.
4682 (handle_invisible_prop, next_overlay_string): Defer call to
4683 setup_for_ellipsis.
4684 (handle_stop, set_iterator_to_next): Call setup_for_ellipsis.
4685
46862008-08-15 Chong Yidong <cyd@stupidchicken.com>
4687
4688 * xfaces.c (lookup_derived_face): Properly handle possible zero
4689 return value of get_lface_attributes.
4690 (merge_faces): Don't tell lookup_derived_face to signal an error
4691 if face is not found.
4692
4693 * dired.c (Fdirectory_files): Doc fix.
4694
4695 * process.c (make_process): Initialize kill_without_query struct
4696 member.
4697
46982008-08-15 Eli Zaretskii <eliz@gnu.org>
4699
4700 * w32.c (w32_system_process_attributes) [_MSC_VER < 1300]:
4701 Alternative calculation of totphys for Visual Studio 6.
4702
4703 * w32fns.c [_MSC_VER && _MSC_VER < 1300]: Declare HMONITOR.
4704
4705 * w32.c (_MEMORY_STATUS_EX, MEMORY_STATUS_EX, LPMEMORY_STATUS_EX):
4706 Rename from _MEMORYSTATUSEX, MEMORYSTATUSEX, LPMEMORYSTATUSEX.
4707 All users changed.
4708 (stat): Only root directory passed to GetDriveType. Allow RAM
4709 disk as well as local fixed disk when w32-get-true-file-attributes
4710 is set to `local'.
4711 (CopySid_Proc, EqualSid_Proc, GetLengthSid_Proc): New typedefs.
4712 (equal_sid, get_length_sid, copy_sid): New wrapper functions.
4713 (w32_cached_id, w32_add_to_cache): New functions.
4714 (get_name_and_id): Look account names in the cache before calling
4715 lookup_account_sid.
4716 (g_b_init_get_length_sid, g_b_init_equal_sid, g_b_init_copy_sid):
4717 New initialization flags.
4718 (globals_of_w32): Initialize them to zero.
4719 (w32_system_process_attributes): Use w32_cached_id and
4720 w32_add_to_cache.
4721
47222008-08-14 Lawrence Mitchell <wence@gmx.li>
4723
4724 * lread.c (Fread_char, Fread_char_exclusive): If no character
4725 event is read before timeout is reached, return nil, rather than
4726 converting to a number.
4727
47282008-08-14 Chong Yidong <cyd@stupidchicken.com>
4729
4730 * fns.c (use_dialog_box): Doc fix.
4731
4732 * s/darwin.h: Undefine HAVE_RES_INIT, which appears to be harmful
4733 on OS X.
4734
47352008-08-13 Chong Yidong <cyd@stupidchicken.com>
4736
4737 * frame.c (Qns_parse_geometry): New var.
4738 (Fx_parse_geometry): For HAVE_NS, call ns-parse-geometry.
4739
47402008-08-11 Chong Yidong <cyd@stupidchicken.com>
4741
4742 * xdisp.c (x_produce_glyphs): Handle the case when font has no
4743 space character in calculating tabs.
4744
47452008-08-11 Dan Nicolaescu <dann@ics.uci.edu>
4746
4747 * Makefile.in (bootstrap-emacs): Use ln -f in the CANNOT_DUMP case.
4748
47492008-08-10 Glenn Morris <rgm@gnu.org>
4750
4751 * process.c (procfs_system_process_attributes): Use EMACS_INTs to
4752 silence gcc "limited range of data type" warnings in some
4753 make_fixnum_or_float calls.
4754
47552008-08-09 Eli Zaretskii <eliz@gnu.org>
4756
4757 * w32.c (w32_system_process_attributes): If the process does not
4758 exist, return nil.
4759
4760 * w32.c: Include thelp32.h, psapi.h and coding.h.
4761 (_MEMORYSTATUSEX, _PROCESS_MEMORY_COUNTERS_EX): New struct
4762 declarations.
4763 (CreateToolhelp32Snapshot_Proc, Process32First_Proc)
4764 (Process32Next_Proc): New typedefs.
4765 (g_b_init_create_toolhelp32_snapshot, g_b_init_process32_first)
4766 (g_b_init_process32_next, g_b_init_open_thread_token)
4767 (g_b_init_impersonate_self, g_b_init_revert_to_self)
4768 (g_b_init_get_process_memory_info, g_b_init_global_memory_status)
4769 (g_b_init_get_process_working_set_size)
4770 (g_b_init_global_memory_status_ex): New static variables.
4771 (globals_of_w32): Initialize them.
4772 (create_toolhelp32_snapshot, process32_first, process32_next)
4773 (open_thread_token, impersonate_self, revert_to_self)
4774 (get_process_memory_info, get_process_working_set_size)
4775 (global_memory_status, global_memory_status_ex): New wrapper
4776 functions.
4777 (w32_list_system_processes, w32_system_process_attributes)
4778 (enable_privilege, restore_privilege, ltime, process_times):
4779 New functions.
4780 (convert_time_raw): New function.
4781 (convert_time): Remove conversion of FILETIME into time in 100
4782 nsec units, call convert_time_raw instead.
4783
4784 * process.h (w32_list_system_processes, w32_system_process_attributes):
4785 Add prototypes.
4786 (Qeuid, Qegid, Qcomm, Qstate, Qppid, Qpgrp, Qsess, Qttname)
4787 (Qminflt, Qmajflt, Qcminflt, Qcmajflt, Qutime, Qstime, Qcutime)
4788 (Qpri, Qnice, Qthcount, Qstart, Qvsize, Qrss, Qargs, Quser, Qgroup)
4789 (Qetime, Qpcpu, Qpmem, Qtpgid, Qcstime): Add extern declarations.
4790
4791 * process.c (Fsystem_process_attributes): Doc fix.
4792
47932008-08-08 Chong Yidong <cyd@stupidchicken.com>
4794
4795 * xdisp.c (move_it_to): When stopping at a charpos, check if that's
4796 a continued multi-char glyph; if so, advance to the actual glyph.
4797
47982008-08-07 Dan Nicolaescu <dann@ics.uci.edu>
4799
4800 * s/darwin.h (OTHER_FILES): Do not define here, defined in config.in.
4801
4802 * Makefile.in (ALL_OBJC_CFLAGS): New variable.
4803 (.m.o): Use it.
4804 * config.in: Regenerate.
4805
48062008-08-07 Chong Yidong <cyd@stupidchicken.com>
4807
4808 * xdisp.c (redisplay_window): Revert last change.
4809 (try_window): Check bottom scroll margin too.
4810
48112008-08-06 Adrian Robert <Adrian.B.Robert@gmail.com>
4812
4813 * config.in: Regenerate.
4814
4815 * Makefile.in (emacs): Remove ifndef NS conditional for 'emacs
4816 -list-load-path-shadows'.
4817 (nsgui.h): Reduce number of things depending on it.
4818
48192008-08-06 Chong Yidong <cyd@stupidchicken.com>
4820
4821 * xdisp.c (try_scrolling): Use iterator to find the scroll margin,
4822 instead of window-end which does the wrong thing at eob.
4823 (try_cursor_movement): Minor optimization.
4824 (redisplay_window): If scroll margin is defined, don't assume
4825 window doesn't need scrolling.
4826
48272008-08-06 Adrian Robert <Adrian.B.Robert@gmail.com>
4828
4829 * config.in: Regenerate.
4830
4831 * Makefile.in: Move nsXXX.m dependencies into big alphabetical list.
4832 (mostlyclean): Don't delete *.d under NS.
4833
4834 * nsterm.h (NS_HAVE_INTEGER): Change to NS_HAVE_NSINTEGER.
4835
48362008-08-06 Kenichi Handa <handa@m17n.org>
4837
4838 * xfont.c (xfont_list_family): Return a list of symbols, not strings.
4839
48402008-08-06 Andreas Schwab <schwab@suse.de>
4841
4842 * config.in: Regenerate.
4843
48442008-08-05 Chong Yidong <cyd@stupidchicken.com>
4845
4846 * xdisp.c (redisplay_window): Don't enforce scroll-margin when
4847 forcing a window start.
4848
4849 * fileio.c (Vauto_save_list_file_name): Move here from file.el.
4850 (auto_save_1): Update modtime when auto-save-list-file-name is on.
4851
48522008-08-04 Adrian Robert <Adrian.B.Robert@gmail.com>
4853
4854 * emacs.c (main): Under NS, set working dir to HOME when get a "psn"
4855 argument.
4856
48572008-08-05 Juanma Barranquero <lekktu@gmail.com>
4858
4859 * buffer.c (syms_of_buffer) <scroll-up-aggressively>:
4860 <scroll-down-aggressively, before-change-functions>:
4861 <after-change-functions>: Reflow docstrings.
4862
48632008-08-04 Adrian Robert <Adrian.B.Robert@gmail.com>
4864 Ken Raeburn <raeburn@gnu.org>
4865
4866 Dock menu customization, based on a patch by Ken Raeburn, plus some
4867 other fixes.
4868 * nsmenu.m (dockMenu): New variable.
4869 (EmacsDialog -clicked:): Fix mistake in change of 2008-07-17.
4870
4871 * nsterm.h (dockMenu): Declare.
4872
4873 * nsterm.m (KEY_NS_NEW_FRAME): New definition.
4874 (ns_term_init): Initialize dockMenu.
4875 (EmacsApp -newFrame:, -applicationDockMenu:): New methods.
4876 (EmacsView -windowShouldClose:): Don't behave specially if <= 1 frame
4877 left.
4878
4879 * lisp.h (LSB_TAG): Use on DARWIN_OS, not NS_IMPL_COCOA.
4880
48812008-08-04 Chong Yidong <cyd@stupidchicken.com>
4882
4883 * nsterm.h: Test directly for NS_HAVE_INTEGER before defining it.
4884
4885 * config.in: Regenerate.
4886
48872008-08-04 Seiji Zenitani <zenitani@mac.com>
4888
4889 * nsfns.m (x-create-frame): Set the frame parameter alpha to nil.
4890
48912008-08-04 Chong Yidong <cyd@stupidchicken.com>
4892
4893 * nsterm.h (find_and_call_menu_selection): Fix prototype.
4894
48952008-08-04 Adrian Robert <Adrian.B.Robert@gmail.com>
4896
4897 * emacs.c (main: unexec_init_emacs_zone): Call if on DARWIN_OS.
4898
4899 * keyboard.h: Comment an #endif.
4900
4901 * lisp.h (have_menus_p): Adjust comment.
4902
4903 * menu.c (find_and_return_menu_selection): Fix comparison with
4904 client_data.
4905
4906 * nsmenu.m (popup_activated_flag): New variable.
4907 (popup_activated): New function.
4908 (menu-or-popup-active-p): New exported lisp definition.
4909 (ns_popup_menu): Set popup_activated_flag. Call discard_menu_items()
4910 when popup done.
4911 (ns_popup_dialog): Set popup_activated_flag.
4912
4913 * nsterm.m (EmacsView -conversationIdentifier): Use NSInteger
4914 version for GNUstep (handled by conditional typedef in nsterm.m).
4915 (ns_get_color): Remove special-casing for "darkblue", "dark blue" (now
4916 in rgb.txt).
4917
4918 * process.c (init_process): Use DARWIN_OS, not DARWIN.
4919
4920 * sysselect.h: Conditionalize init_process undef on DARWIN_OS.
4921
4922 * syssignal.h (FORWARD_SIGNAL_TO_MAIN_THREAD): Do it also under NS.
4923
4924 * xdisp.c (redisplay_internal, note_mouse_highlight): Under NS,
4925 shortcircuit if popup_activated like GTK and X toolkit.
4926
4927 * m/inter386.h: Change DARWIN to DARWIN_OS.
4928
4929 * s/darwin.h: Add #define DARWIN_OS. Get rid of C_SWITCH_SYSTEM def.
4930 Change LIBS_MACGUI to LIBS_NSGUI. Move temacs-conditionalized defs
4931 closer to C_SWITCH_SYSTEM_TEMACS so usage is understood. Expand
4932 comment on NO_SOCK_SIGIO.
4933
49342008-08-03 Chong Yidong <cyd@stupidchicken.com>
4935
4936 * nsterm.m (windowDidResize): Remove stopModal call.
4937
49382008-08-03 Andreas Schwab <schwab@suse.de>
4939
4940 * vm-limit.c (get_lim_data) [HAVE_GETRLIMIT && RLIMIT_AS]: Define.
4941 (check_memory_limits): Don't handle HAVE_GETRLIMIT here.
4942
49432008-08-02 Chong Yidong <cyd@stupidchicken.com>
4944
4945 * vm-limit.c (check_memory_limits): Don't use getrlimit on cygwin.
4946 Don't use uninitialized pointer variable when using getrlimit.
4947
49482008-08-02 Jason Rumney <jasonr@gnu.org>
4949
4950 * w32font.c (compute_metrics): Don't mess with glyph_idx setting here.
4951
49522008-08-02 Eli Zaretskii <eliz@gnu.org>
4953
4954 * alloc.c (NSTATICS): Bump to 0x640.
4955
4956 * s/gnu-linux.h (HAVE_PROCFS, LISTPROC, PROCATTR): New defines.
4957
4958 * lisp.h: Add prototype for directory_files_internal.
4959
4960 * process.c (Fsystem_processes_list, Fsystem_process_attributes):
4961 New functions.
4962 (syms_of_process): Defsubr them. Add initializations for various
4963 Q* symbols used in procfs_system_process_attributes.
4964 (procfs_list_system_processes, procfs_system_process_attributes)
4965 [HAVE_PROCFS]: New functions.
4966 (time_from_jiffies, ltime_from_jiffies, get_up_time, procfs_ttyname)
4967 (procfs_get_total_memory): New functions.
4968
49692008-08-01 Juanma Barranquero <lekktu@gmail.com>
4970
4971 * xfaces.c (Fx_load_color_file): Fix previous change;
4972 it is #ifdef WINDOWSNT, not WINDOWS_NT.
4973
49742008-08-01 Michael Albinus <michael.albinus@gmx.de>
4975
4976 * dbusbind.c (xd_read_message): Handle D-Bus error messages.
4977
49782008-08-01 Adrian Robert <Adrian.B.Robert@gmail.com>
4979
4980 * nsterm.h (NSInteger, NSUInteger): Add defines for non-Leopard.
4981
49822008-08-01 Chong Yidong <cyd@stupidchicken.com>
4983
4984 * nsfns.m (ns_frame_parm_handlers): Add empty entry for x_set_alpha.
4985
4986 * nsterm.m (EmacsApp -application:openFiles:): GNUstep does not
4987 define NSApplicationDelegateReplySuccess.
4988 (EmacsView -converstationIdentifier): Use long instead of
4989 NSInteger for GNUstep, since it doesn't have NSInteger.
4990
4991 * xmenu.c: Revert last change.
4992
4993 * keyboard.h: Fix last change.
4994
49952008-08-01 Juanma Barranquero <lekktu@gmail.com>
4996
4997 * xfaces.c (x-load-color-file): Use RGB() instead of manually shifting
4998 on Windows.
4999
50002008-08-01 Adrian Robert <Adrian.B.Robert@gmail.com>
5001
5002 Warning clearing and clean-up in NS port.
5003 * keyboard.h (xmalloc_widget_value, digest_single_submenu):
5004 Add prototypes.
5005 * nsgui.h (FACE_DEFAULT): Remove, unused.
5006 (XGCValues): Change colors to unsigned long.
5007 * nsterm.h (EmacsApp): Add declaration of all methods implemented in
5008 nsterm.m.
5009 (EmacsMenu -addItemWithWidgetValue:): Change to use NSMenuItem class.
5010 (ns_list_fonts): Remove, unused.
5011 (ns_font_to_xlfd, ns_fontname_to_xlfd): Drop prototypes.
5012 * nsfns.m (interpret_services_menu): Use NSMenuItem class.
5013 * nsfont.m (nsfont_open): Fix cast error in glyphs,metrics alloc.
5014 (nsfont_draw): Compare face colors to 0, not nil.
5015 * nsmenu.m (struct widget_value): Drop unneeded declaration.
5016 (EmacsMenu -addItemWithWidgetValue:, -fillWithWidgetValue:)
5017 (-addSubmenuWithTitle:): Use NSMenuItem class.
5018 (ns_popup_menu): Use NO, not NULL, for enabled setting.
5019 * nsterm.m (ns_draw_glyph_string): Don't compare font to ~0.
5020 (ns_clip_to_row): Make gc arg a BOOL.
5021 (ns_draw_fringe_bitmap, ns_draw_window_cursor): Use YES, NO in
5022 ns_clip_to_row() call.
5023 (ns_draw_glyph_string): Drop face comparison to ~0 (no longer
5024 used). Cast FRAME_FONT assignments.
5025 (ns_read_socket): Cast call to EmacsApp-fulfillService:withArg:.
5026 (ns_string_to_lispmod): Change arg to const char.
5027 (ns_term_init): Use NSMenuItem class.
5028 (EmacsApp -openFile:): Move to different section of file.
5029 (EmacsApp -application:openFiles:): Don't return a value, call
5030 -replyToOpenOrPrint:.
5031 (EmacsView -keyDown:): Fix up cast.
5032 (EmacsView -converstationIdentifier): Use NSInteger instead of long.
5033 (EmacsView -menuDown:): Cast tag in call to
5034 find_and_call_menu_selection().
5035 (ns_list_fonts): Remove, unused.
5036 (ns_font_to_xlfd): Make static. Cast result of UTF8String.
5037 (ns_fontname_to_xlfd): Make static.
5038 * w32menu.c (xmalloc_widget_value, digest_single_submenu):
5039 Remove prototypes (now in keyboard.h).
5040 (next_menubar_widget_id): Remove, unused.
5041 * xmenu.c (xmalloc_widget_value, digest_single_submenu):
5042 Remove prototypes (now in keyboard.h).
5043 * xfaces.c (ns_list_fonts, w32_list_fonts): Remove, unused.
5044
50452008-08-01 Dan Nicolaescu <dann@ics.uci.edu>
5046
5047 * Makefile.in (dispnew.o, gtkutil.o, sound.o, atimer.o)
5048 (floatfns.o): Depend on syssignal.h.
5049 (term.o): Depend on syssignal.h, systty.h, and $(INTERVAL_SRC).
5050
5051 * systty.h: Fix previous change that removed BSD_TERMIOS.
5052 Add comments to #ifdefs.
5053
50542008-08-01 Adrian Robert <Adrian.B.Robert@gmail.com>
5055
5056 * w32fns.c (w32-load-color-file): Remove.
5057 (x-open-connection): Use renamed Fx_load_color_file.
5058 * xfaces.c (x-load-color-file): Add.
5059 * nsterm.m (ns_initialize): Load colors from etc/rgb.txt instead of
5060 Emacs.clr.
5061 (hide_hourglass): BLOCK_INPUT before UNBLOCK.
5062
50632008-07-31 Michael Albinus <michael.albinus@gmx.de>
5064
5065 * dbusbind.c (Fdbus_call_method_asynchronously)
5066 (Fdbus_method_error_internal): New defuns.
5067 (xd_read_message): Handle also reply messages.
5068 (Vdbus_registered_functions_table): Extend docstring.
5069
50702008-07-31 Juanma Barranquero <lekktu@gmail.com>
5071
5072 * keyboard.c (gobble_input): Fix previous change.
5073
50742008-07-31 Dan Nicolaescu <dann@ics.uci.edu>
5075
5076 * bitmaps/README:
5077 * xfns.c:
5078 * termcap.c:
5079 * term.c:
5080 * syswait.h:
5081 * systty.h:
5082 * systime.h:
5083 * syssignal.h:
5084 * sysdep.c:
5085 * process.h:
5086 * process.c:
5087 * print.c:
5088 * ndir.h:
5089 * lread.c:
5090 * keyboard.c:
5091 * getpagesize.h:
5092 * floatfns.c:
5093 * fileio.c:
5094 * emacs.c:
5095 * doc.c:
5096 * dispnew.c:
5097 * dired.c:
5098 * data.c:
5099 * callproc.c:
5100 * buffer.c:
5101 * README:
5102 * Makefile.in:
5103 * s/template.h:
5104 * s/msdos.h:
5105 * m/vax.h: Remove VMS support.
5106 * s/vms.h:
5107 * vlimit.h:
5108 * uaf.h:
5109 * temacs.opt:
5110 * param.h:
5111 * ioctl.h: Remove file.
5112
51132008-07-31 Dan Nicolaescu <dann@ics.uci.edu>
5114
5115 * s/ms-w32.h (MULTI_KBOARD): Remove.
5116 * xterm.c:
5117 * xselect.c:
5118 * xfns.c:
5119 * window.c:
5120 * w32term.c:
5121 * w32fns.c:
5122 * terminal.c:
5123 * termhooks.h:
5124 * term.c:
5125 * sysdep.c:
5126 * keyboard.h:
5127 * keyboard.c:
5128 * frame.h:
5129 * frame.c:
5130 * frame.c: Remove references to MULTI_KBOARD, it is now the default.
5131 * config.in: Regenerate.
5132
51332008-07-30 Jason Rumney <jasonr@gnu.org>
5134
5135 * w32font.h (struct w32font_info): Use unicode version of textmetrics.
5136
5137 * w32font.c (w32font_encode_char): Leave as unicode if in range.
5138 (w32font_open_internal): Get unicode version of textmetrics.
5139 Don't enable or disable glyph indices here.
5140 (w32font_open): Disable use of glyph indices.
5141
5142 * w32uniscribe.c (uniscribe_open): Enable use of glyph indices.
5143
51442008-07-30 Chong Yidong <cyd@stupidchicken.com>
5145
5146 * minibuf.c (Vread_buffer_function): Doc fix.
5147
51482008-07-30 John Paul Wallington <jpw@pobox.com>
5149
5150 * minibuf.c (read_buffer_completion_ignore_case): New var.
5151 (Fread_buffer): Use it.
5152
51532008-07-30 Dan Nicolaescu <dann@ics.uci.edu>
5154
5155 * systty.h (sensemode): Remove empty #if. Remove reference to
5156 BSD_TERMIOS, unused.
5157
5158 * sysdep.c: Remove reference to DGUX.
5159 (closedir): Remove reference to BROKEN_CLOSEDIR, unused.
5160
5161 * config.in: Regenerate.
5162
51632008-07-30 Jason Rumney <jasonr@gnu.org>
5164
5165 * w32uniscribe.c (uniscribe_encode_char): Fix glyph buffer size.
5166
51672008-07-29 Jason Rumney <jasonr@gnu.org>
5168
5169 * w32uniscribe.c (uniscribe_shape): Avoid using context if cache
5170 is populated.
5171 (uniscribe_encode_char): Always use uniscribe.
5172 Avoid using context if cache is populated.
5173
51742008-07-29 Jan Djärv <jan.h.d@swipnet.se>
5175
5176 * xmenu.c (Fx_menu_bar_open_internal): Use activate_item signal to
5177 open menu.
5178
5179 * gtkutil.c (menu_nav_ended): Remove.
5180 (create_menus): Remove signal connect for menu_nav_ended.
5181
51822008-07-28 Chong Yidong <cyd@stupidchicken.com>
5183
5184 * xdisp.c (redisplay_window): Check return value of
5185 compute_window_start_on_continuation_line before forcing a window
5186 start.
5187
51882008-07-28 Jason Rumney <jasonr@gnu.org>
5189
5190 * w32font.c (w32font_text_extents): Use w32_metric_cache consistently.
5191
5192 * w32term.c (w32_enable_unicode_output, cleartype_active):
5193 Remove obsolete display options.
5194 (x_draw_glyph_string_background): Don't use old cleartype_active
5195 workaround.
5196 (w32_initialize): Remove cleartype_active initialization.
5197 (syms_of_w32term): Remove w32_enable_unicode_output initialization.
5198
51992008-07-28 Andreas Schwab <schwab@suse.de>
5200
5201 * lisp.h (init_weak_hash_tables, syms_of_font)
5202 (xd_read_queued_messages, syms_of_dbusbind): Declare.
5203 (remove_hash_entry): Don't declare.
5204 * eval.c (maybe_call_debugger): Make static and move before use.
5205 * gtkutil.c: Include <X11/Xft/Xft.h> if HAVE_XFT.
5206 * xdisp.c: Include "gtkutil.h" if USE_GTK.
5207 * xterm.h (x_set_frame_alpha): Declare.
5208
52092008-07-28 Jan Djärv <jan.h.d@swipnet.se>
5210
5211 * gtkutil.c (menu_nav_ended): Revert change from 2008-07-24.
5212 (create_menus): Connect selection-done to menu_nav_ended.
5213
52142008-07-27 Adrian Robert <Adrian.B.Robert@gmail.com>
5215
5216 * nsfns.m (x-create-frame): Add copy of parms argument to beginning.
5217 Set Vx_resource_name to a fallback. Replace read of 'buffered'
5218 parameter with read of 'alpha' one.
5219 (Qns_frame_parameter): Remove.
5582fbc7 5220 * nsselect.m (selection-coding-system)
aac0c6e3
MR
5221 (next-selection-coding-system, Vselection_coding_system)
5222 (Vnext_selection_coding_system): Drop.
5223
52242008-07-27 Adrian Robert <Adrian.B.Robert@gmail.com>
5225
5226 * nsfns.m (do-applescript, do_applescript): Rename to
5227 ns-do-applescript, ns_do_applescript, and move within file.
5228
52292008-07-27 Dan Nicolaescu <dann@ics.uci.edu>
5230
5231 Remove support for Mac Carbon.
5232 * mactoolbox.c:
5233 * macterm.h:
5234 * macterm.c:
5235 * macselect.c:
5236 * macmenu.c:
5237 * macgui.h:
5238 * macfns.c:
5239 * mac.c: Remove file.
5240 * s/darwin.h:
5241 * m/intel386.h:
5242 * xfaces.c:
5243 * xdisp.c:
5244 * window.c:
5245 * tparam.c:
5246 * termhooks.h:
5247 * termcap.c:
5248 * term.c:
5249 * syssignal.h:
5250 * sysselect.h:
5251 * sysdep.c:
5252 * process.c:
5253 * lread.c:
5254 * lisp.h:
5255 * keyboard.c:
5256 * image.c:
5257 * fringe.c:
5258 * frame.h:
5259 * frame.c:
5260 * fontset.c:
5261 * font.h:
5262 * font.c:
5263 * fns.c:
5264 * fileio.c:
5265 * emacs.c:
5266 * dispnew.c:
5267 * dispextern.h:
5268 * config.in:
5269 * atimer.c:
2ae37cf0 5270 * Makefile.in: Remove code for Carbon.
aac0c6e3 5271
f0131492 52722008-07-26 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
aac0c6e3
MR
5273
5274 * macterm.c (XDrawLine) [USE_MAC_IMAGE_IO]: Remove spurious return.
5275
52762008-07-26 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
5277
5278 * macterm.h (kCGBitmapByteOrder32Host): New define for
5279 non-universal SDKs.
5280
5281 * image.c (mac_create_cg_image_from_image, image_load_image_io)
5282 [USE_MAC_IMAGE_IO]: Remove conditionals for kCGBitmapByteOrder32Host.
5283
5284 * macterm.c (XDrawLine, XCreatePixmapFromBitmapData)
5285 [USE_MAC_IMAGE_IO]: Remove conditionals for kCGBitmapByteOrder32Host.
5286
52872008-07-26 David Robinow <drobinow@gmail.com> (tiny change)
5288
5289 * w32inevt.c: Include dispextern.h.
5290
52912008-07-26 Andreas Schwab <schwab@suse.de>
5292
5293 * print.c (print_object): Fix off-by-one in last change.
5294
52952008-07-25 Juanma Barranquero <lekktu@gmail.com>
5296
5297 * term.c (syms_of_term): Don't initialize default_orig_pair,
5298 default_set_foreground and default_set_background on Windows.
5299
53002008-07-25 Jason Rumney <jasonr@gnu.org>
5301
5302 * w32uniscribe.c (uniscribe_shape): Pass NULL for control arg to
5303 ScriptItemize. Clean up return value checking. Remove unused
5304 variables.
5305 (uniscribe_encode_char): Encode non-BMP characters with uniscribe
5306 shaping engine.
5307
5308 * w32font.c (w32font_has_char): Handle the case where we can't
5309 determine the script for a character.
5310
53112008-07-25 Chong Yidong <cyd@stupidchicken.com>
5312
5313 * term.c (syms_of_term): Initialize default_orig_pair,
5314 default_set_foreground, and default_set_background.
5315
5316 * getloadavg.c (nl): Rename to name_list to avoid ncurses.h
5317 clash (bug#86).
5318 (getloadavg): Callers changed.
5319
5320 * image.c (svg_load_image): Fix last change.
5321 (svg_load_image): Use rsvg_handle_get_dimensions to check that
5322 image size is valid. Use g_object_unref instead of deprecated
5323 rsvg_handle_free to free rsvg handle.
5324 (x_from_xcolors): Don't initialize pixmap (silence compiler).
5325
53262008-07-25 Jason Rumney <jasonr@gnu.org>
5327
5328 * w32font.c (w32font_encode_char): Encode characters outside BMP as
5329 surrogates before looking up glyph index.
5330 (w32font_text_extents): Encode as surrogates if falling back to
5331 functions that need UTF-16 wide chars.
5332
5333 * w32uniscribe.c (uniscribe_encode_char): Encode characters outside
5334 BMP as surrogates before looking up glyph index.
5335
53362008-07-25 Chong Yidong <cyd@stupidchicken.com>
5337
5338 * image.c (svg_load_image): Check for failure in return value of
5339 rsvg_handle_get_pixbuf. Free rsvg handle when done.
5340
53412008-07-25 Jason Rumney <jasonr@gnu.org>
5342
5343 * w32font.c (Fx_select_font): Reverse sense of second arg.
5344
53452008-07-24 Stefan Monnier <monnier@iro.umontreal.ca>
5346
5347 * syntax.c (struct lisp_parse_state, char_quoted, inc_bytepos)
5348 (dec_bytepos, find_defun_start): Use EMACS_INT for buffer positions.
5349
5350 * puresize.h (PURESIZE_CHECKING_RATIO): New macro.
5351 (PURESIZE): Use it.
5352
53532008-07-24 Dan Nicolaescu <dann@ics.uci.edu>
5354
5355 * m/amdx86-64.h (HAVE_LIB64_DIR): Consolidate ifdefs.
5356 * m/alpha.h (TEXT_END):
5357 * m/ibmrs6000.h (TEXT_END):
5358 * m/macppc.h (TEXT_END):
5359 * s/darwin.h (TEXT_END):
5360 * s/msdos.h (TEXT_END): Remove, unused.
5361 * s/gnu-linux.h (BSD_PGRPS): Add a comment.
5362 * s/cygwin.h: Remove comment.
5363
5364 * ecrt0.c (NODOT_GLOBAL_START): Remove code, unused.
5365 (DOT_GLOBAL_START): Remove conditional, redundant for CRT0_DUMMIES.
5366 * m/intel386.h (DOT_GLOBAL_START):
5367 * m/vax.h (DOT_GLOBAL_START): Remove, redundant with CRT0_DUMMIES.
5368 (USG): Remove, file not used on USG platforms.
5369
5370 * Makefile.in (HAVE_X11): Remove empty #else.
5371
53722008-07-24 Andreas Schwab <schwab@suse.de>
5373
5374 * fileio.c (Finsert_file_contents): Properly adjust undo list
5375 after format conversion.
5376
53772008-07-24 Jan Djärv <jan.h.d@swipnet.se>
5378
5379 * gtkutil.c (xg_get_font_name): Cast w to GTK_FONT_SELECTION_DIALOG.
5380 (menu_nav_ended): Remove.
5381 (create_menus): Remove signal connect for menu_nav_ended.
5382 (xg_update_menubar): Also take deactivate_cb as parameter, pass it to
5383 create_menus.
5384 (xg_modify_menubar_widgets): Pass deactivate_cb to xg_update_menubar.
5385
53862008-07-23 Jason Rumney <jasonr@gnu.org>
5387
5388 * w32font.c (w32_enumfont_pattern_entity): Return height consistent
5389 with opened font.
5390 (w32font_open): Set font type to gdi.
5391
5392 * w32uniscribe.c (uniscribe_open): Set font type to uniscribe.
5393
53942008-07-23 Dan Nicolaescu <dann@ics.uci.edu>
5395
5396 * s/usg5-4.h (ADDR_CORRECT): Remove, unused.
5397 * unexaix.c (ADDR_CORRECT): Remove conditional, the only user
5398 defines it.
5399 * unexec.c (ADDR_CORRECT): Define unconditionally.
5400
5401 * m/ibmrs6000.h (C_SWITCH_MACHINE): Remove.
5402
5403 * unexec.c: Remove code depending on !COFF and USG, the file is
5404 not used for such systems.
5405
5406 * s/netbsd.h (A_TEXT_OFFSET, A_TEXT_SEEK):
5407 * s/freebsd.h (A_TEXT_OFFSET, A_TEXT_SEEK): Remove, unused.
5408 (LD_SWITCH_SYSTEM_1): Remove, update users.
5409
5410 * s/darwin.h (DATA_END):
5411 * m/intel386.h (DATA_END):
5412 * m/ibmrs6000.h (DATA_END):
5413 * m/alpha.h (DATA_END): Remove, unused.
5414
5415 * config.in: Regenerate.
5416 * s/ms-w32.h (subprocesses): Define unconditionally.
5417 * s/template.h (subprocesses): Update comment.
5418 * s/vms.h (subprocesses):
5419 * s/usg5-4.h (subprocesses):
5420 * s/hpux10-20.h (subprocesses):
5421 * s/gnu-linux.h (subprocesses):
5422 * s/cygwin.h (subprocesses):
5423 * s/bsd-common.h (subprocesses):
5424 * s/aix4-2.h (subprocesses):
5425 * s/darwin.h (subprocesses): Do not define, defined by default now.
5426
5427 * Makefile.in (C_SWITCH_SITE, LD_SWITCH_SITE): Remove, unused.
5428 Remove all references.
5429 (temacs): Add GNUstep specific ld flags.
5430
5431 * nsterm.m (syms_of_nsterm): Provide ns, not ns-windowing,
5432 similarly to what X does.
5433
54342008-07-22 Adrian Robert <Adrian.B.Robert@gmail.com>
5435
5436 * nsfns.m (x-list-fonts): Remove.
5437 (syms_of_nsfns): Drop the x-list-fonts declaration.
5438 * nsterm.m: Get rid of remaining "//" comments.
5439
54402008-07-22 Chong Yidong <cyd@stupidchicken.com>
5441
5442 * xselect.c (Fx_rotate_cut_buffers_internal): Doc fix.
5443
5444 * nsselect.m (Fns_selection_exists_p, Fns_selection_owner_p)
5445 (Fx_get_selection_internal, Fns_rotate_cut_buffers_internal)
5446 (Fns_own_selection_internal, Fx_disown_selection_internal)
5447 (Fns_get_cut_buffer_internal, Fns_store_cut_buffer_internal):
5448
5449 * nsmenu.m (Fns_reset_menu, Fx_popup_menu): Change to use 'doc: /*
5450 ... */' style of docstrings. Doc fixes.
5451
54522008-07-22 Dan Nicolaescu <dann@ics.uci.edu>
5453
5454 * terminfo.c (UP, BC, PC): Undo previous change.
5455
5456 * nsfns.m: Rename ns prefixed functions/variables to the
5457 corresponding x versions. Update references.
5458
54592008-07-22 Stefan Monnier <monnier@iro.umontreal.ca>
5460
5461 * syntax.c (char_quoted): Check "charpos > beg" before decrementing.
5462
54632008-07-22 Dan Nicolaescu <dann@ics.uci.edu>
5464
5465 * nsfns.m (x_set_menu_bar_lines, x_set_tool_bar_lines):
5466 Remove forwarding functions.
5467 (ns_set_menu_bar_lines): Rename to x_set_menu_bar_lines, make
5468 non-static.
5469 (ns_set_tool_bar_lines): Rename to x_set_tool_bar_lines, make
5470 non-static.
5471 (ns_frame_parm_handlers): Use the new names.
5472 (syms_of_nsfns): Move to the end of file.
5473
5474 * nsterm.m (syms_of_nsterm): Move to the end of file.
5475
5476 * dispnew.c (init_display): Remove code for X10.
5477
54782008-07-22 Jason Rumney <jasonr@gnu.org>
5479
5480 * w32proc.c (Fw32_long_file_name): Don't append dir separator to
5481 bare drive.
5482
54832008-07-22 Adrian Robert <Adrian.B.Robert@gmail.com>
5484
5485 * nsterm.m (syms_of_nsterm): Remove debugging println.
5486
54872008-07-22 David Reitter <david.reitter@gmail.com>
5488
5489 * nsfns.m (do_applescript, F_do_applescript): NS version of the
5490 Carbon implementation of the same functionality: execute arbitrary
5491 AppleScript code.
5492
54932008-07-21 Adrian Robert <Adrian.B.Robert@gmail.com>
5494
5495 * nsfns.m (Fx_create_frame, Fx_read_file_name, Fx_get_resource)
5496 (Fx_set_resource, Fx_set_alpha, Fx_server_max_request_size)
5497 (Fx_server_vendor, Fx_server_version, Fx_display_screens)
5498 (Fx_display_mm_height, Fx_display_mm_width)
5499 (Fx_display_backing_store, Fx_display_visual_class)
5500 (Fx_display_save_under, Fx_open_connection)
5501 (Fx_close_connection, Fx_hide_emacs, Fx_font_name)
5502 (Fx_list_colors, Fx_perform_service, Fx_color_defined_p)
5503 (Fx_color_values, Fxw_display_color_p, Fx_display_grayscale_p)
5504 (Fx_display_pixel_width, Fx_display_pixel_height)
5505 (Fx_display_usable_bounds, Fx_display_planes)
5506 (Fx_display_color_cells, Vns_icon_type_alist): Change to use 'doc: /*
5507 ... */' style of docstrings.
5508
55092008-07-21 Dan Nicolaescu <dann@ics.uci.edu>
5510
5511 * m/mips.h (LOAD_AVE_TYPE, LOAD_AVE_CVT): Do not define, not used
5512 on this platform.
5513 (mips):
5514 * m/iris4d.h (mips): Do not define.
5515 * sysdep.c (init_sys_modes): Use __mips__ instead of mips.
5516
5517 * m/ibmrs6000.h (LD_SWITCH_SITE): Remove.
5518
5519 * image.c:
5520 * nsfns.m:
5521 * nsselect.m:
5522 * nsterm.h:
5523 * nsterm.m: Rename ns prefixed functions/variables to the
5524 corresponding x versions. Update references.
5525
5526 * m/ibms390x.h (NO_REMAP): Do not undefine.
5527
5528 * m/amdx86-64.h: Use SOLARIS2 instead of sun.
5529
55302008-07-21 Chong Yidong <cyd@stupidchicken.com>
5531
5532 * nsfns.m: Change NS to Nextstep in docstrings and error messages.
5533 (Fns_create_frame, Fns_read_file_name, Fns_get_resource)
5534 (Fns_set_resource, Fns_set_alpha, Fns_server_max_request_size)
5535 (Fns_server_vendor, Fns_server_version, Fns_display_screens)
5536 (Fns_display_mm_height, Fns_display_mm_width)
5537 (Fns_display_backing_store, Fns_display_visual_class)
5538 (Fns_display_save_under, Fns_open_connection)
5539 (Fns_close_connection, Fns_hide_emacs, Fns_font_name)
5540 (Fns_list_colors, Fns_perform_service, Fns_color_defined_p)
5541 (Fns_color_values, Fxw_display_color_p, Fx_display_grayscale_p)
5542 (Fns_display_pixel_width, Fns_display_pixel_height)
5543 (Fns_display_usable_bounds, Fx_display_planes)
5544 (Fns_display_color_cells, Vns_icon_type_alist): Doc fixes.
5545
55462008-07-21 Ami Fischman <ami@fischman.org> (tiny change)
5547
5548 * print.c (print_object): Check print_depth before searching for
5549 circularities.
5550
55512008-07-21 Michael Albinus <michael.albinus@gmx.de>
5552
5553 * dbusbind.c (Fdbus_register_signal): Use sprintf + strcat instead
5554 only sprintf.
5555
55562008-07-21 Kenichi Handa <handa@m17n.org>
5557
5558 * ftfont.c (adjust_anchor): Check if DeltaValue is not NULL.
5559
55602008-07-20 Andreas Schwab <schwab@suse.de>
5561
5562 * syntax.c (find_start_pos, find_start_value)
5563 (find_start_value_byte, find_start_begv, find_defun_start)
5564 (back_comment, scan_sexps_forward): Use EMACS_INT for buffer positions.
5565
55662008-07-20 Dan Nicolaescu <dann@ics.uci.edu>
5567
5568 * s/sol2-3.h: Insert contents of s/sol2.h.
5569 (LD_SWITCH_SYSTEM): Remove redundant definition.
5570 * s/sol2.h: Remove, unused.
5571
55722008-07-20 Adrian Robert <Adrian.B.Robert@gmail.com>
5573
5574 * nsterm.m (ns_get_color): Recognize HSB,AHSB be synonyms for HSV,AHSV.
5575
55762008-07-20 Adrian Robert <Adrian.B.Robert@gmail.com>
5577
5578 * Makefile.in (ns_appdir): Fix typo in find command.
5579
55802008-07-20 Dan Nicolaescu <dann@ics.uci.edu>
5581
5582 * m/intel386.h (NO_REMAP): Do no define for USG, not used.
5583
5584 * s/usg5-4.h (LIBS_SYSTEM): Remove, system for which this was
5585 added not supported anymore.
5586
5587 * s/usg5-4-2.h (LIBS_SYSTEM):
5588 * s/sol2.h (LIBS_SYSTEM): Do not undefine.
5589
5590 * s/netbsd.h (GETPGRP_NO_ARG, N_TRELOFF):
5591 * s/lynxos.h (GETPGRP_NO_ARG):
5592 * s/hpux10-20.h (NO_SIOCTL_H):
5593 * s/gnu.h (GETPGRP_NO_ARG):
5594 * s/gnu-linux.h (NO_SIOCTL_H):
5595 * s/freebsd.h (GETPGRP_NO_ARG, N_TRELOFF):
5596 * s/cygwin.h (GETPGRP_NO_ARG):
5597 * s/irix6-5.h (LIBS_SYSTEM, GETPGRP_NO_ARG): Remove, unused.
5598 (C_DEBUG_SWITCH): Remove duplicate definition.
5599
5600 * m/ibms390.h: Remove boilerplate comments.
5601
5602 * sysdep.c (closedir): Use SOLARIS2 instead of sun && USG5_4.
5603
5604 * process.c (HAVE_SERIAL): Consolidate ifdefs.
5605 (wait_reading_process_output): Remove code for SunOS, platform not
5606 supported anymore. Use SOLARIS2 instead of sun.
5607
56082008-07-19 Adrian Robert <Adrian.B.Robert@gmail.com>
5609
5610 * font.c (font_open_by_name): Under NS, default lface height to zero.
5611 (font_open_for_lface): Under NS, set size based on frame fontsize.
5612 * nsterm.m (EmacsView-changeFont:): Remove some commented code.
5613 * frame.c (x_set_frame_parameters): Remove HAVE_NS ifdef.
5614
56152008-07-19 Adrian Robert <Adrian.B.Robert@gmail.com>
5616
5617 * nsterm.m (ns_antialias_text, ns_use_qd_smoothing)
5618 (ns_use_system_highlight_color): Switch these from DEFVAR_BOOL to
5619 DEFVAR_LISP and change all code accordingly to use Qt/Qnil instead of
5620 YES/NO.
5621 * nsterm.h (prevUseHighlightColor): Make a Lisp_Object.
5622 * nsfont.m (nsfont_draw): Treat ns_use_qd_smoothing as Lisp_Object.
5623 * Makefile.in (clean): Clear out build destination dir.
5624
56252008-07-19 Adrian Robert <Adrian.B.Robert@gmail.com>
5626
5627 * Makefile.in (nsgui.h-related dependencies): Remove abbrev, xfns,
5628 xterm, xselect.
5629 * lisp.h: Remove declaration of hash_remove.
5630 * nsgui.h: Remove redefinitions of hash_remove.
5631 * fns.c (hash_remove): Rename to hash_remove_from_table.
5632
56332008-07-19 Seiji Zenitani <zenitani@mac.com>
5634
5635 * nsfont.m (nsfont_fmember_to_entity, nsfont_make_fontset_for_font):
5636 strdup() the family UTF8String before modifying it.
5637
56382008-07-19 Adrian Robert <Adrian.B.Robert@gmail.com>
5639
5640 * nsterm.m (ns_maybe_dumpglyphs_background): Compare result from
5641 NS_FACE_BACKGROUND with 0 instead of nil.
5642 * nsfont.m (nsfont_draw): Same.
5643
56442008-07-19 Chong Yidong <cyd@stupidchicken.com>
5645
5646 * nsfns.m (ns_set_background_color): Fix crash.
5647
56482008-07-18 Chong Yidong <cyd@stupidchicken.com>
5649
5650 * Makefile.in (SOME_MACHINE_LISP): Remove ns-carbon-compat.elc.
5651
56522008-07-18 Dan Nicolaescu <dann@ics.uci.edu>
5653
5654 * puresize.h (BASE_PURESIZE): Increase to 1240000.
5655
56562008-07-17 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
5657
5658 * gtkutil.c: Include <config.h> instead of "config.h".
5659
5660 * lisp.h (Foverlay_buffer): Add EXFUN.
5661
5662 * process.c (create_process) [!WINDOWSNT && FD_CLOEXEC]: Wait for
5663 child process to complete child_setup. Undo 2005-09-21 change.
5664
5665 * s/darwin.h: Mention setsid after vfork.
5666
56672008-07-17 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
5668
5669 * Makefile.in (frame.o, keyboard.o, xdisp.o, xfaces.o):
5670 Depend on macgui.h.
5671
5672 * macfns.c (Fx_server_version): Don't use gestaltSystemVersionMajor,
5673 gestaltSystemVersionMinor, or gestaltSystemVersionBugFix.
5674
5675 * macterm.c (keycode_to_xkeysym_table): Add entries for f17, f18,
5676 and f19.
5677 [MAC_OSX] (fn_keycode_to_keycode_table): Likewise.
5678
5679 * macterm.h (gestaltSystemVersionMajor, gestaltSystemVersionMinor)
5680 (gestaltSystemVersionBugFix) [MAC_OS_X_VERSION_MAX_ALLOWED < 1040]:
5681 Remove enumerators.
5682
5683 * mactoolbox.c [USE_MAC_TSM] (mac_handle_text_input_event):
5684 Check if FACE_FROM_ID returns NULL.
5685
56862008-07-17 David Robinow <drobinow@gmail.com> (tiny change)
5687
5688 * w32inevt.c (change_frame_size): Remove extern declaration.
5689 (resize_event, maybe_generate_resize_event): Pass SAFE arg to
5690 change_frame_size.
5691
56922008-07-17 Adrian Robert <Adrian.B.Robert@gmail.com>
5693
5694 * getloadavg.c: Revert last change (2008-07-15).
5695
56962008-07-17 Adrian Robert <Adrian.B.Robert@gmail.com>
5697
5698 * Makefile.in: Replace emacsapp, emacsbindir, emacsappsrc variables
5699 set here with ns_appdir, ns_appresdir, ns_appbindir, ns_appsrc) set
5700 from configure.
5701
57022008-07-17 Dan Nicolaescu <dann@ics.uci.edu>
5703
5704 * s/sol2.h:
5705 * s/sol2-4.h: Reorganize conditionals.
5706
5707 * ecrt0.c: Remove code depending on m68000, not used anymore.
5708
5709 * fns.c (hash_remove): Make static.
5710 * lisp.h (hash_remove): Don't prototype.
5711
5712 * m/ibmrs6000.h:
5713 * m/ibms390x.h:
5714 * m/macppc.h: Remove boilerplate comments.
5715
5716 * m/sparc.h (A_TEXT_OFFSET, A_TEXT_SEEK): Remove, only used on
5717 Solaris, which does not need them.
5718
5719 * m/vax.h: Remove comments about unsupported systems.
5720
5721 * s/darwin.h: Reorganize ifdefs.
5722
57232008-07-17 Andreas Schwab <schwab@suse.de>
5724
5725 * s/cygwin.h (LIB_STANDARD_LIBSRC): Don't define.
5726
57272008-07-17 Stefan Monnier <monnier@iro.umontreal.ca>
5728
5729 Use SDATA. Follow coding convention of placing operators at
5730 beginning of next line rather than end of previous line, and placing
5731 spaces around infix operators.
5732
5733 * Makefile.in: Undef LIB_STANDARD before defining it to silence warning
5734 in case it was defined already.
5735 USE @GNUSTEP_MAKEFILES@ rather than envvars.
5736 * nsterm.m (ns_term_init): Pass Qt and Qnil rather than YES/NO to
5737 ns_default.
5738 (applicationShouldTerminate, setValuesFromPanel): Use EQ to compare
5739 Lisp_Objects.
5740 * nsterm.h (Fx_display_grayscale_p, Fx_display_planes)
5741 (ns_defined_color, ns_color_to_lisp): Declare.
5742 * nsselect.m (ns_handle_selection_request, ns_handle_selection_clear)
5743 (Fns_own_selection_internal): Make the big ugly hack more explicit, so
5744 it's accepted even with USE_LISP_UNION_TYPE.
5745 * nsmenu.m (ns_update_menubar): Use EQ to compare Lisp_Objects.
5746 (update_frame_tool_bar): Remove apparently obsolete tests for
5747 non-integerness of f->tool_bar_lines.
5748 (windowShouldClose, addButton, clicked, runDialogAt): Make the big ugly
5749 hack more explicit, so it's accepted even with USE_LISP_UNION_TYPE.
5750 * nsfont.m (nsfont_driver): Use just 0 rather than an invalid cast.
5751 (nsfont_open): Don't confuse NULL for Qnil.
5752 * nsfns.m (ns_implicitly_set_icon_type): Use EQ to compare Lisp_Objects.
5753 * menu.h (find_and_call_menu_selection):
5754 * menu.c (find_and_call_menu_selection): Use just int for vector size.
5755 (find_and_return_menu_selection): Always return something.
5756 * frame.h: Include dispextern.h for Display_Info.
5757 (display_x_get_resource): Declare.
5758
57592008-07-16 Adrian Robert <Adrian.B.Robert@gmail.com>
5760
5761 * syntax.c: Remove stdio.h include accidentally introduced in
5762 Emacs.app commit.
5763 * Makefile.in: Change GNUSTEP to NS_IMPL_GNUSTEP, COCOA to
5764 NS_IMPL_COCOA.
5765 * keyboard.c (handle_async_input, input_available_signal): Remove
5766 BSD4_1 conditional code, introduced accidentally in Emacs.app commit.
5767
57682008-07-16 Stefan Monnier <monnier@iro.umontreal.ca>
5769
5770 * nsterm.m (lisp_to_mod): Use parse_solitary_modifier instead.
5771 (ns_lisp_to_color): Don't mess with internal Lisp data fields.
5772 (ns_term_init, ns_term_shutdown, initFrameFromEmacs, ns_list_fonts):
5773 Use SDATA.
5774
5775 * keymap.c: Remove all NS-specific code.
5776 (where_is_preferred_modifier, Vwhere_is_preferred_modifier): New vars.
5777 (preferred_sequence_p): Rename from ascii_sequence_p; pay attention to
5778 where_is_preferred_modifier, return a different value depending on how
5779 preferred is the binding.
5780 (where_is_internal): Adjust accordingly.
5781 (Fwhere_is_internal): Refresh where_is_preferred_modifier.
5782 Adjust to new preferred_sequence_p.
5783 (syms_of_keymap): Declare `where-is-preferred-modifier'.
5784 * keyboard.c (parse_solitary_modifier): Not static any more.
5785 * keyboard.h (parse_solitary_modifier): Declare.
5786
57872008-07-16 Andreas Schwab <schwab@suse.de>
5788
5789 * Makefile.in (SOME_MACHINE_LISP): Remove easy-mmode, fix spelling
5790 of easymenu.
5791
57922008-07-16 Chong Yidong <cyd@stupidchicken.com>
5793
5794 * xdisp.c (move_it_in_display_line): Account for word wrap, so
5795 that we don't move off the line.
5796
57972008-07-16 Stefan Monnier <monnier@iro.umontreal.ca>
5798
5799 * keyboard.c (Qsuper): Remove.
5800 (parse_menu_item): Don't call where_is_internal specially for NS.
5801
58022008-07-16 Dan Nicolaescu <dann@ics.uci.edu>
5803
5804 * s/gnu-linux.h: Remove boilerplate comments.
5805
5806 * m/alpha.h (__ELF__): Consolidate conditions.
5807
5808 * m/m68k.h (linux): Use GNU_LINUX instead.
5809 Remove boilerplate comments.
5810
5811 * m/intel386.h: Undo refactoring from previous change.
5812 (LIB_STANDARD): All systems that define USG define LIB_STANDARD
5813 too, remove dead code.
5814 (linux): Use GNU_LINUX instead.
5815
58162008-07-16 Jason Rumney <jasonr@gnu.org>
5817
5818 * w32gui.h: Repeat 26 June changes lost by last change.
5819
58202008-07-16 Dan Nicolaescu <dann@ics.uci.edu>
5821
5822 * systty.h: Remove code for Aix on 386, unsupported platform.
5823
5824 * s/ms-w32.h: Remove boilerplate comments.
5825 (fcloseall, fgetchar, flushall, fputchar, getw, putw): Remove, unused.
5826
5827 * s/gnu-linux.h (TERM): Remove support.
5828 (HAVE_SYSVIPC): Remove, unused.
5829 (A_TEXT_OFFSET, A_TEXT_SEEK, ADJUST_EXEC_HEADER): Remove, not used
5830 for this system.
5831
5832 * process.c: Remove support for IRIS, unused.
5833 Remove support for TERM, not relevant anymore.
5834
5835 * unexalpha.c (DEFAULT_ENTRY_ADDRESS): Remove, replace the only
5836 used with the definition.
5837
5838 * s/aix4-2.h (static): Do not undef.
5839
5840 * m/ibmrs6000.h: Remove code depending on USG5_4, this file is
5841 only used on Aix.
5842 (HAVE_SYSVIPC): Remove, unused.
5843
5844 * m/hp800.h (CANNOT_DUMP): Do not undef.
5845
5846 * m/alpha.h: Fix comment.
5847
5848 * s/usg5-4.h (HAVE_SYSVIPC): Remove, unused.
5849 (USG_SHARED_LIBRARIES): Remove, only used in unexec.c which is not
5850 used by this configuration.
5851 * emacs.c: Remove code depending on USG_SHARED_LIBRARIES.
5852 * unexec.c: Remove code depending on HPUX and
5853 USG_SHARED_LIBRARIES, not used with this file. Remove code
5854 depending on IRIS, unused. Remove if 0-ed code.
5855
5856 * s/template.h: Remove comments about static.
5857
5858 * sysdep.c: Remove code depending on NEED_PTEM_H, unused.
5859 Remove if 0-ed code.
5860 (baud_convert): Don't depend on BAUD_CONVERT, all definitions the
5861 were the same as the default.
5862 * s/vms.h (BAUD_CONVERT): Remove, same as the default.
5863 Remove boilerplate comments.
5864 * s/hpux10-20.h (BAUD_CONVERT): Remove, same as the default.
5865 (HAVE_SYSVIPC): Remove, unused.
5866 (LD_SWITCH_SYSTEM_TEMACS): Simplify, hp9000s700 not supported anymore.
5867
5868 * m/ia64.h (PNTR_COMPARISON_TYPE): Remove, same as the default.
5869 Remove boilerplate comments.
5870 * m/amdx86-64.h (PNTR_COMPARISON_TYPE): Remove, same as the default.
5871 Remove boilerplate comments.
5872 * m/ibms390x.h (PNTR_COMPARISON_TYPE): Remove, same as the default.
5873 Remove boilerplate comments.
5874 * lisp.h (PNTR_COMPARISON_TYPE): Define it unconditionally.
5875
5876 * m/intel386.h (DATA_SEG_BITS): Remove definitions, only used on
5877 USG systems which do not use DATA_SEG_BITS.
5878 Refactor code. Remove boilerplate comments.
5879
5880 * m/ibms390.h:
5881 * m/m68k.h:
5882 * s/bsd-common.h:
5883 * s/cygwin.h:
5884 * s/darwin.h:
5885 * s/freebsd.h:
5886 * s/gnu.h:
5887 * s/msdos.h: Remove boilerplate comments.
5888
5889 * m/iris4d.h: Remove boilerplate comments and code for systems that
5890 do not use this file.
5891 (IRIS_4D): Remove, unused.
5892
5893 * m/mips.h: Remove boilerplate comments and code for systems that
5894 do not use this file.
5895 (SIGN_EXTEND_CHAR):
5896 * m/arm.h (SIGN_EXTEND_CHAR): Remove, unused.
5897 * unexmips.c: Remove file, unused.
5898
5899 * editfns.c (Fuser_full_name): Replace the only use of
5900 USER_FULL_NAME with its value.
5901 * config.in: Regenerate.
5902
59032008-07-16 David Reitter <david.reitter@gmail.com>
5904
5905 * Makefile.in: Add ns-win, ns-carbon-compat, easy-mmode and
5906 easy-menu to SOME_MACHINE_LISP for the new NeXTstep port.
5907
59082008-07-16 Glenn Morris <rgm@gnu.org>
5909
5910 * emacs.c (system-type): Doc fix.
5911
59122008-07-15 Stefan Monnier <monnier@iro.umontreal.ca>
5913
5914 * keyboard.c (parse_menu_item): Don't use cachelist, even under NS.
5915 If the cache doesn't work, let's fix it, rather than work around it.
5916
59172008-07-15 Adrian Robert <Adrian.B.Robert@gmail.com>
5918
5919 * Makefile.in: Correct additions for nsfont.o in last commit.
5920 * nsfont.m: New file (forgot last commit).
5921
59222008-07-15 Chris Hall <chris@web.workinglinux.com> (tiny change)
5923
5924 * callproc.c (set_initial_environment): Initialize
5925 Vprocess_environment under CANNOT_DUMP (fixes crash when
5926 batch-compiling for bootstrap).
5927
59282008-07-15 Chris Hall <chris@web.workinglinux.com> (tiny change)
5929 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
5930
5931 (make_initial_frame): Call init_frame_faces(f) in CANNOT_DUMP case --
5932 fix crash due to different init order.
5933
59342008-07-15 Adrian Robert <Adrian.B.Robert@gmail.com>
5935
5936 Changes and additions for NeXTstep windowing system (Cocoa and
5937 GNUstep) support.
5938
5939 * Makefile.in:
5940 * config.in: Support defines and build commands for NS port.
5941 * blockinput.h (BLOCK_INPUT, UNBLOCK_INPUT, TOTALLY_UNBLOCK_INPUT)
5942 (UNBLOCK_INPUT_TO): Don't use under NS unless EXPERIMENTAL_CONTROL_G.
5943 * dispextern.h: Include nsgui.h and add needed typedefs under NS
5944 windowing.
5945 (struct face): Add synth_ital field.
5946 * dispnew.c: Include nsterm.h when compiling under NS windowing.
5947 (init_display): Initialize Vinitial_window_system to "ns" when so
5948 compiled.
5949 * emacs.c: Include GSConfig.h when compiling under GNUstep.
5950 (display_arg): Use under NS.
5951 (main): Under NS, allocate autorelease pool and handle command line
5952 args. Move syms_of_xmenu() call under #ifdef HAVE_X_WINDOWS.
5953 (standard_args): Add NS-specific args.
5954 (shut_down_emacs): Shut down NS terminal if compiled under NS.
5955 * font.c (DEFAULT_ENCODING): New variable.
5956 (font_find_for_lface): Use it.
5957 (syms_of_font): Load syms_of_nsfont under NS.
5958 * font.h: Declare nsfont_driver when compiled under NS.
5959 * fontset.c: When compiling under NS, include nsterm.h.
5960 (fontset_from_font): Autoconstruct fontset under NS.
5961 * frame.c (various): Under NS, include nsterm.h, add Qns window system
5962 symbol, document and use it.
5963 (do_switch_frame): When for_deletion under Cocoa, add
5964 Fraise_frame(Qnil).
5965 (x_set_frame_parameters): Ensure font attribute changes are picked up.
5966 (x_get_arg): Allow "yes" and "no" as boolean values.
5967 (syms_of_frame): Declare Qns. Init Vdefault_frame_scroll_bars to
5968 Qright under Cocoa.
5969 (focus-follows-mouse): Default to 0 under NS.
5970 * frame.h (enum output_method): Add output_ns.
5971 (external_tool_bar, external_menu_bar, FRAME_EXTERNAL_TOOLBAR)
5972 (FRAME_EXTERNAL_MENU_BAR): Use under NS.
5973 (FRAME_WINDOW_P): NS-specific definition.
5974 * fringe.c (max_used_fringe_bitmap): Make public.
5975 * getloadavg.c (mach/mach.h): Include it under NeXT descendant OS's.
5976 (getloadavg): Use NeXT code under descendant OS's.
5977 * image.c (includes and header section, x_create_bitmap_from_data)
5978 (x_create_bitmap_from_file, free_bitmap_record, image_background)
5979 (image_background_transparent, x_clear_image_1)
5980 (x_create_x_image_and_pixmap, x_destroy_x_image, x_put_x_image)
5981 (Create_Pixmap_From_Bitmap_Data, xpm_load_image, lookup_rgb_color)
5982 (x_to_xcolors, x_from_xcolors, x_disable_image)
5983 (x_build_heuristic_mask, syms_of_image): Add NS support parallel to
5984 other GUIs, including XPM support using code originally written for
5985 Carbon GUI.
5986 (png_load, jpeg_load, tiff_load, gif_load): Add implementations
5987 using NS API.
5988 (image_ascent): Use font metrics macros instead of direct struct field
5989 access.
5990 * keyboard.c (includes): Add nsterm.h when compiling under NS.
5991 (kbd_buffer_get_event): Handle NS as other GUI windowing systems.
5992 Also, handle NS as GTK for menu bar purposes.
5993 (make_lispy_event): Handle NS as other GUI windowing systems, and as X
5994 toolkit where they differ.
5995 (parse_menu_item): Prefer keybindings using 'super' modifier. Also,
5996 use cachelist, still needed under NS.
5997 * keyboard.h (ENCODE_MENU_STRING, XtPointer, Boolean): Handle as NTGUI.
5998 (struct widget_value): Define it here for menu.c.
5999 * keymap.c (includes): Include modifier internals.
6000 (lisp_to_mod, modifier_sequence_p): New functions, compiled only under
6001 NS.
6002 (where_is_internal, Fwhere_is_internal): When compiled under NS, add
6003 support for preferring sequences using certain modifiers, specified by
6004 the FIRSTONLY argument.
6005 * lisp.h (hash_remove): Rename to avoid name clash when compiling
6006 under NS GNUstep implementation.
6007 (USE_LSB_TAG): Use it under Cocoa when compiling under NS.
6008 * lread.c (init_lread): Treat NS as HAVE_CARBON for turn_off_warning.
6009 * menu.c: Include nsterm.h under NS.
6010 (single_menu_item, parse_single_submenu, xmalloc_widget_value)
6011 (free_menubar_widget_tree_value, update_submenu_strings)
6012 (find_and_call_menu_selection): Treat NS as X and NT.
6013 (find_and_return_menu_selection): New function, used for popup menus.
6014 * nsgui.h:
6015 * nsterm.h:
6016 * nsfns.m:
6017 * nsimage.m:
6018 * nsmenu.m:
6019 * nsselect.m:
6020 * nsterm.m: New files.
6021 * process.c (wait_reading_process_output): Under NS, call ns_select()
6022 instead of plain select().
6023 * syntax.c (char_quoted): Under NS, avoid a crash when called near
6024 beginning of buffer.
6025 * sysselect.h (init_process): Rename when compiling under Cocoa to
6026 avoid name conflict.
6027 * termhooks.h (display_info): Add ns_display_info to union.
6028 * terminal.c (Fterminal_live_p): Add ns to terminal types.
6029 * terminfo.c (UP, BC, PC): Don't declare when compiling under NS in
6030 COCOA environment.
6031 * unexnext.c: Update to work with mach API on Mac OS X, and to use new
6032 unexec() signature. (Note, this will dump, but the resulting file
6033 crashes; unexosx is used instead; keeping around for reference and
6034 possible aid in getting dump working under GNUstep.)
6035 * w32gui.h (button_type, widget_value): Remove definitions (now in
6036 keyboard.h).
6037 * window.c: Include nsterm.h when compiling under NS.
6038 * xdisp.c (includes): Include nsterm.h when compiling under NS.
6039 (set_frame_menubar, update_menu_bar, display_menu_bar): Handle NS as
6040 other GUI windowing systems.
6041 (update_tool_bar, redisplay_tool_bar, redisplay_window): Handle NS as
6042 GTK.
6043 (x_consider_frame_title): Under NS, set icon type and frame
6044 modified-state indicator; use ns_set_name_as_filename() when using
6045 formatted title.
6046 (update_window_cursor): Make public when compiling under NS.
6047 (display_hourglass_p, syms_of_xdisp, hourglass_shown_p)
6048 (hourglass_atimer, Vhourglass_delay
6049 * xfaces.c (header section, init_frame_faces, clear_font_table)
6050 (defined_color, unload_color, x_face_list_fonts)
6051 (prepare_face_for_display): Add NS support parallel to other GUIs.
6052 Emulate GCs like other non-X GUIs.
6053 (split_font_name): Don't lowercase font name under NS.
6054 (merge_face_ref, Finternal_set_lisp_face_attribute): Support stippling
6055 under NS.
6056 * s/darwin.h: Add support for compilation under NS.
6057
60582008-07-15 Jason Rumney <jasonr@gnu.org>
6059
6060 * w32fns.c (Fx_create_frame): Remove duplicate unwind_protect.
6061 (w32_show_hourglass): Rename from show_hourglass.
6062 (w32_hide_hourglass): Rename from hide_hourglass.
6063 (DEFAULT_HOURGLASS_DELAY): Revert from last change.
6064 (Vhourglass_delay): Declare extern.
6065 (hourglass_started): Remove.
6066
6067 * xdisp.c (Vhourglass_delay): Remove static.
6068 (hourglass_started, start_hourglass, cancel_hourglass):
6069 Don't include these versions on WINDOWSNT.
6070
60712008-07-15 Adrian Robert <Adrian.B.Robert@gmail.com>
6072
6073 * dispextern.h (hourglass_shown_p, hourglass_atimer): New extern
6074 variables (formerly in xfns.c).
6075 (show_hourglass, hide_hourglass): New prototypes (same).
6076 * xdisp.c (display_hourglass_p, hourglass_shown_p, hourglass_atimer)
6077 (Vhourglass_delay, DEFAULT_HOURGLASS_DELAY): New variables (formerly
6078 in xfns.c).
6079 (syms_of_xdisp): Declare/initialize display-hourglass,
6080 hourglass-delay. Initialize hourglass_atimer, hourglass_shown_p.
6081 (hourglass_started, start_hourglass, cancel_hourglass): New functions,
6082 formerly in xfns.c.
6083 * xfns.c (display_hourglass_p, hourglass_atimer, hourglass_shown_p)
6084 (Vhourglass_delay, DEFAULT_HOURGLASS_DELAY, hourglass_started)
6085 (start_hourglass, cancel_hourglass): Remove.
6086 (show_hourglass, hide_hourglass): Remove prototypes and static
6087 modifiers.
6088 (syms_of_xfns): Remove display-hourglass, hourglass-delay,
6089 hourglass_atimer, hourglass_shown_p declaration/initialization.
6090 * macfns.c (display_hourglass_p, hourglass_atimer, hourglass_shown_p)
6091 (Vhourglass_delay, DEFAULT_HOURGLASS_DELAY, hourglass_started)
6092 (start_hourglass, cancel_hourglass): Remove.
6093 (show_hourglass, hide_hourglass): Remove prototypes and static
6094 modifiers.
6095 (syms_of_macfns): Remove display-hourglass, hourglass-delay,
6096 hourglass_atimer, hourglass_shown_p declaration/initialization.
6097 * w32fns.c (display_hourglass_p, Vhourglass_delay)
6098 (DEFAULT_HOURGLASS_DELAY): Remove.
6099 (syms_of_w32fns): Remove display-hourglass, hourglass-delay,
6100 hourglass_shown_p declaration/initialization.
6101
61022008-07-14 Jason Rumney <jasonr@gnu.org>
6103
6104 * w32fns.c (w32_get_arg): Remove wrapper function.
6105 (w32_createwindow, x_icon, x_create_tip_frame): Use x_get_arg
6106 directly.
6107 (Fx_create_frame): Sync with xfns.c. Use x_get_arg directly.
6108
61092008-07-14 Kenichi Handa <handa@m17n.org>
6110
6111 * xfont.c (xfont_open): Add workaround for X's bug.
6112
61132008-07-14 Emanuele Giaquinta <emanuele.giaquinta@gmail.com> (tiny change)
6114
6115 * fontset.c: Include <stdio.h> unconditionally.
6116
61172008-07-13 Michael Albinus <michael.albinus@gmx.de>
6118
6119 * dbusbind.c (Fdbus_register_signal): Allow also signal arguments
6120 for filtering.
6121
61222008-07-13 Dan Nicolaescu <dann@ics.uci.edu>
6123
6124 * s/vms.h: Use __GNUC__ instead of _GNUC_.
6125
6126 * m/macppc.h:
6127 * m/alpha.h: Use GNU_LINUX instead of LINUX. Reorganize conditionals.
6128
6129 * m/ibms390x.h (XINT, XUINT): Don't define, same as the default
6130 (SPECIAL_EMACS_INT):
6131 * m/ia64.h (SPECIAL_EMACS_INT):
6132 * m/amdx86-64.h (SPECIAL_EMACS_INT):
6133 * s/gnu.h (NLIST_STRUCT):
6134 * s/aix4-2.h (X11R5_INHIBIT_I18N):
6135 * s/gnu-linux.h (LINUX):
6136 * s/msdos.h (HAVE_FACES):
6137 * s/ms-w32.h (HAVE_FACES): Don't define, unused.
6138
6139 * systty.h:
6140 * sysdep.c (setup_pty): Don't depend on SYSV_PTYS, it is not used
6141 anymore.
6142
61432008-07-12 Dan Nicolaescu <dann@ics.uci.edu>
6144
6145 * syswait.h: Remove old if 0 code. Do not define WAITTYPE, it was
6146 always defined as int.
6147
6148 * s/netbsd.h (HAVE_UNION_WAIT, HAVE_WAIT_HEADER, WAIT_USE_INT):
6149 * s/gnu.h (HAVE_WAIT_HEADER, WAIT_USE_INT, HAVE_UNION_WAIT):
6150 * s/gnu-linux.h (HAVE_WAIT_HEADER):
6151 * s/freebsd.h (HAVE_WAIT_HEADER):
6152 * s/bsd-common.h (HAVE_UNION_WAIT):
6153 * s/aix4-2.h (HAVE_WAIT_HEADER):
6154 * m/mips.h (HAVE_UNION_WAIT):
6155 * s/usg5-4.h (HAVE_WAIT_HEADER, WAITTYPE): Do not define, not used.
6156 (COFF, static): Do not define, they are undefined later in the file.
6157
6158 * process.c (update_status): Don't use a union.
6159 (status_convert):
6160 (sigchld_handler): Use int instead of WAITTYPE.
6161
61622008-07-12 Chong Yidong <cyd@stupidchicken.com>
6163
6164 * indent.c (Fvertical_motion): Restore hscroll before moving to
6165 goal column.
6166
61672008-07-11 Dan Nicolaescu <dann@ics.uci.edu>
6168
6169 * lisp.h: Remove left over code.
6170
61712008-07-11 Andreas Schwab <schwab@suse.de>
6172
6173 * lisp.h: Fix logic in last change.
6174
6175 * menu.h: New file.
6176 * menu.c: Include it.
6177 * xmenu.c: Likewise.
6178 * Makefile.in: Update dependencies.
6179
61802008-07-11 Kenichi Handa <handa@m17n.org>
6181
6182 * fontset.c (fontset_from_font): Cancel the previous change.
6183
61842008-07-11 Dan Nicolaescu <dann@ics.uci.edu>
6185
6186 * lisp.h:
6187 * w32heap.c:
6188 * emacs.c:
6189 * alloc.c: Replace all references of NO_UNION_TYPE with
6190 USE_LISP_UNION_TYPE.
6191
6192 * m/xtensa.h (NO_UNION_TYPE):
6193 * m/vax.h (NO_UNION_TYPE):
6194 * m/template.h (NO_UNION_TYPE):
6195 * m/sparc.h (NO_UNION_TYPE):
6196 * m/mips.h (NO_UNION_TYPE):
6197 * m/macppc.h (NO_UNION_TYPE):
6198 * m/m68k.h (NO_UNION_TYPE):
6199 * m/iris4d.h (NO_UNION_TYPE):
6200 * m/intel386.h (NO_UNION_TYPE):
6201 * m/ibms390x.h (NO_UNION_TYPE):
6202 * m/ibms390.h (NO_UNION_TYPE):
6203 * m/ibmrs6000.h (NO_UNION_TYPE):
6204 * m/ia64.h (NO_UNION_TYPE):
6205 * m/hp800.h (NO_UNION_TYPE):
6206 * m/arm.h (NO_UNION_TYPE):
6207 * m/amdx86-64.h (NO_UNION_TYPE):
6208 * m/alpha.h (NO_UNION_TYPE): Remove definition, all platform were
6209 defining it the same.
6210
62112008-07-10 Chong Yidong <cyd@stupidchicken.com>
6212
6213 * xdisp.c (move_it_to): Backtrack if past the edge of a wrapped line.
6214
62152008-07-10 Dan Nicolaescu <dann@ics.uci.edu>
6216
6217 * fileio.c:
6218 * sysdep.c
6219 * systty.h:
6220 * m/ibmrs6000.h:
6221 * m/iris4d.h:
6222 * s/aix4-2.h:
6223 * s/freebsd.h:
6224 * s/gnu-linux.h:
6225 * s/hpux10-20.h:
6226 * s/hpux11.h:
6227 * s/netbsd.h:
6228 * s/sol2-3.h:
6229 * s/sol2-4.h:
6230 * s/sol2.h:
6231 * s/usg5-4.h:
6232 * s/vms.h: Remove references to unused variables.
6233
62342008-07-10 Andreas Schwab <schwab@suse.de>
6235
6236 * ftfont.c (ftfont_resolve_generic_family): Remove foundry from
6237 pattern before matching the generic family.
6238
62392008-07-10 Dan Nicolaescu <dann@ics.uci.edu>
6240
6241 * unexec.c:
6242 * s/vms.h:
6243 * s/usg5-4-2.h:
6244 * s/sol2-5.h:
6245 * s/freebsd.h:
6246 * s/darwin.h: Remove dead code.
6247
6248 * m/template.h:
6249 * m/sparc.h:
6250 * m/mips.h:
6251 * m/m68k.h:
6252 * m/iris4d.h:
6253 * m/intel386.h:
6254 * m/ibms390x.h:
6255 * m/ibms390.h:
6256 * m/ia64.h:
6257 * m/hp800.h:
6258 * m/arm.h:
6259 * m/amdx86-64.h: Remove dead code and references to unused
6260 and compiler defined symbols.
6261
6262 * unexmips.c:
6263 * unexelf.c: Remove references to desupported systems.
6264
6265 * m/powermac.h: Remove file, it is now identical to m/macppc.h.
6266
6267 * m/powermac.h: Remove boilerplate comments.
6268 (NO_REMAP): Remove unused definition.
6269
6270 * m/macppc.h (UNEXEC, NO_TERMIO): Don't define, the s/ files
6271 define them.
6272
62732008-07-10 Kenichi Handa <handa@m17n.org>
6274
6275 * xfont.c (xfont_open): Log the reason of failure.
6276
62772008-07-09 Stefan Monnier <monnier@iro.umontreal.ca>
6278
6279 * fontset.c (fontset_get_font_group):
6280 * font.c (font_check_otf): Specify argument types.
6281
62822008-07-09 Kenichi Handa <handa@m17n.org>
6283
6284 * coding.c (detect_coding_utf_8): Set detect_info->found only when
6285 non-ASCII char is found.
6286
6287 * fontset.c (fontset_compare_rfontdef): Fix plus/minus.
6288 (reorder_font_vector): Change the arg preferred_family to font.
6289 Prefer the spec matching with font.
6290 (fontset_get_font_group): New function.
6291 (fontset_find_font): Change the format of an element of a realized
6292 fontset. Use fontset_get_font_group.
6293 (fontset_font): Try the current fontset, the default fontset, the
6294 fallbacks of the current fontset, and the fallbacks of the default
6295 fontset in this order.
6296 (face_for_char): Delete the shortcut to use the current font.
6297 (fontset_from_font): Don't set fonts for Latin in the fontset.
6298
6299 * font.h (font_make_object, font_match_p): Adjust prototypes.
6300
6301 * ftfont.h [FT_BDF_H]: Include FT_BDF_H.
6302
6303 * font.c (font_make_object): New arg entity and pixelsize.
6304 (font_check_otf_features, font_check_otf): New functions.
6305 (font_match_p): Check :lang, :script, and :otf properties.
6306
6307 * xfont.c (xfont_open): Adjust it for the change of
6308 font_make_object.
6309 (xfont_text_extents): Fix initial setting of metrics.
6310
6311 * ftfont.c (struct ftfont_info): New member index, delete member
6312 fc_charset_idx. Make the member order compatible with struct
6313 xftfont_info.
6314 (fc_charset_table): Change charset names to registry names.
6315 (ftfont_pattern_entity): Delete the args registry and
6316 fc_charset_idx. Change the value of :font-entity property
6317 to (FONTNAME . INDEX). Always set :registry property to
6318 `iso10646-1'.
6319 (struct ftfont_cache_data): New struct.
6320 (ftfont_lookup_cache): New arg for_face.
6321 (ftfont_get_fc_charset, ftfont_get_otf): New functions.
6322 (ftfont_driver): Set the member otf_capability.
6323 (ftfont_get_charset): Adjust it for the change of
6324 fc_charset_table.
6325 (OTF_TAG_SYM): New macro.
6326 (ftfont_spec_pattern): Delete the arg fc_charset_idx. Adjust it
6327 for the change of fc_charset_table.
6328 (ftfont_list): Adjust it for the change of ftfont_spec_pattern and
6329 ftfont_pattern_entity. Add FC_INDEX to objset.
6330 (ftfont_match): Adjust it for the change of ftfont_spec_pattern
6331 and ftfont_pattern_entity.
6332 (ftfont_open): Adjust it for the change of ftfont_lookup_cache,
6333 font_make_object, struct ftfont_info.
6334 (ftfont_has_char): Use ftfont_get_fc_charset.
6335 (ftfont_otf_features, ftfont_otf_capability): New functions.
6336 (ftfont_shape): Use ftfont_get_otf.
6337 (ftfont_text_extents): Fix initial setting of metrics.
6338
6339 * xftfont.c (struct xftfont_info): New member ft_size. Make the
6340 member order compatible with struct ftfont_info.
6341 (xftfont_open): Add FC_CHARSET to the pattern. Set
6342 xftfont_info->ft_size. Don't unlock the face. Check BDF
6343 properties if appropriate.
6344 (xftfont_close): Unlock the face.
6345 (xftfont_anchor_point, xftfont_shape): Deleted.
6346 (syms_of_xftfont): Don't set members anchor_point and shape of
6347 xftfont_driver.
6348
6349 * w32uniscribe.c (uniscribe_open): Adjust it for the change of
6350 font_make_object.
6351
6352 * w32font.c (w32font_open): Adjust it for the change of
6353 font_make_object.
6354 (w32font_open_internal): Don't set properties of font_object here.
6355
63562008-07-08 Chong Yidong <cyd@stupidchicken.com>
6357
6358 * macfns.c (x_create_tip_frame):
6359 * w32fns.c (x_create_tip_frame):
6360 * xfns.c (x_create_tip_frame): Pass parameter argument to
6361 face-set-after-frame-default.
6362
6363 * xfaces.c (Finternal_merge_in_global_face): Save merged
6364 attributes for the default face back into the face vector.
6365
63662008-07-08 Andreas Schwab <schwab@suse.de>
6367
6368 * fontset.h: Declare fontset_from_font. Don't declare
6369 new_fontset_from_font and fontset_from_font_name.
6370 * xterm.c: Include "fontset.h".
6371 * Makefile.in (xterm.o): Update dependencies.
6372
63732008-07-08 Glenn Morris <rgm@gnu.org>
6374
6375 * m/sparc.h: Define __sparc__ rather than sparc. (Bug#507.)
6376 * alloc.c, ecrt0.c: Use __sparc__ rather than sparc.
6377
63782008-07-07 Chong Yidong <cyd@stupidchicken.com>
6379
6380 * frame.c (Qinhibit_face_set_after_frame_default): Var deleted.
6381 (x_set_frame_parameters): Don't bind it.
6382
63832008-07-07 Juanma Barranquero <lekktu@gmail.com>
6384
6385 * w32fns.c (map_w32_filename): Declare extern.
6386
63872008-07-07 Jason Rumney <jasonr@gnu.org>
6388
6389 * w32term.c (WS_EX_LAYERED): Define if not already.
6390
63912008-07-06 Chong Yidong <cyd@stupidchicken.com>
6392
6393 * xfaces.c (set_font_frame_param): Don't try to set the font
6394 parameter if it is still unspecified in the lface.
6395
63962008-07-05 Chong Yidong <cyd@stupidchicken.com>
6397
6398 * xfaces.c (Finternal_merge_in_global_face): Don't realize default
6399 face if it didn't already exist.
6400
6401 * xdisp.c (try_window_id): Give up if word-wrapping is on.
6402
64032008-07-05 Andreas Schwab <schwab@suse.de>
6404
6405 * xdisp.c (get_it_property): Move out of HAVE_WINDOW_SYSTEM section.
6406
64072008-07-05 Chong Yidong <cyd@stupidchicken.com>
6408
6409 * xdisp.c (IT_OVERFLOW_NEWLINE_INTO_FRINGE): Turn it off if
6410 word-wrapping.
6411 (IT_DISPLAYING_WHITESPACE): New macro.
6412 (move_it_in_display_line_to): Handle MOVE_TO_X requests properly
6413 when word-wrapping. Simplify word-wrapping logic. Use correct
6414 pixel positions when saving copies of the iterator.
6415 (display_line): Use proper wrap point if the last character on a
6416 line was preceded by whitespace.
6417
64182008-07-04 Stefan Monnier <monnier@iro.umontreal.ca>
6419
6420 * Makefile.in (${etc}DOC): Depend on ${lisp} rather than ${shortlisp}.
6421
64222008-07-04 Kenichi Handa <handa@m17n.org>
6423
6424 * fns.c (Fstring_to_unibyte): Delete the arg ACCEPT-LATIN-1.
6425
6426 * lisp.h: EXFUN adjusted for the change of Fstring_to_unibyte.
6427
64282008-07-02 Jason Rumney <jasonr@gnu.org>
6429
6430 * xfns.c (syms_of_xfns): Only define x-select-font when both
2ae37cf0 6431 HAVE_FREETYPE and USE_GTK.
aac0c6e3
MR
6432
6433 * xdisp.c (next_element_from_display_vector): Move assignment out
6434 of if statement.
6435
64362008-07-02 Toru Tsuneyoshi <t_tuneyosi@hotmail.com>
6437
6438 * lisp.h (Qdelete_file, Qdelete_directory): Declare extern.
6439
6440 * fileio.c (delete_by_moving_to_trash, Qmove_file_to_trash): New vars.
6441 (syms_of_fileio): Initialize and export them.
6442 (Fdelete_directory, Fdelete_file): Optionally delete via trash.
6443
6444 * w32fns.c (FOF_NO_CONNECTED_ELEMENTS): Define if not already.
6445 (Fsystem_move_file_to_trash): New function.
6446 (syms_of_w32fns): Export it to lisp.
6447
64482008-07-01 Jason Rumney <jasonr@gnu.org>
6449
6450 * w32font.c (w32font_text_extents): Don't count overhang as part
6451 of width.
6452
64532008-06-30 Miles Bader <miles@gnu.org>
6454
6455 * dispextern.h (struct glyph, struct it, struct iterator_stack_entry):
6456 Add `avoid_cursor_p' field.
6457
6458 * xdisp.c (push_it, pop_it): Save/restore avoid_cursor_p field.
6459 (set_cursor_from_row): Skip glyphs with avoid_cursor_p set.
6460 (append_glyph, append_composite_glyph, produce_image_glyph)
6461 (append_stretch_glyph): Initialize avoid_cursor_p.
6462 (get_it_property): Rename from `get_line_height_property'.
6463 (x_produce_glyphs): Use get_it_property.
6464 (handle_line_prefix, push_display_prop): New functions.
6465 (display_line, move_it_in_display_line_to): Handle line/wrap prefixes.
6466 (Vwrap_prefix, Qwrap_prefix, Vline_prefix, Qline_prefix):
6467 New variables.
6468 (syms_of_xdisp): Initialize them.
6469
64702008-06-30 Kenichi Handa <handa@m17n.org>
6471
6472 * xftfont.c (xftfont_open): Don't call FcConfigSubstitute and
6473 XftDefaultSubstitute (they are called in XftFontMatch).
6474 (xftfont_open): Fix args to ftfont_font_format.
6475
6476 * ftfont.c (fc_charset_table): New member lang.
6477 (ftfont_resolve_generic_family): New arg pattern.
60612c8f 6478 (ftfont_spec_pattern): Check fc_charset_table[]->lang.
aac0c6e3
MR
6479 (ftfont_list): Call ftfont_resolve_generic_family with `pattern'.
6480 (ftfont_open): Fix args to ftfont_font_format.
6481 (ftfont_font_format): New arg filename.
6482
64832008-06-30 Chong Yidong <cyd@stupidchicken.com>
6484
6485 * xfaces.c (Finternal_merge_in_global_face): If default face was
6486 modified, realize it again. Update the font face attribute.
6487
64882008-06-29 Jason Rumney <jasonr@gnu.org>
6489
6490 * w32term.c (x_set_frame_alpha): Fix logic.
6491
64922008-06-29 Kenichi Handa <handa@m17n.org>
6493
6494 * fontset.c (Finternal_char_font): Return font-object instead of
6495 font-name.
6496
6497 * composite.c (get_composition_id): Fix the width calculation for TAB.
6498
64992008-06-29 Stefan Monnier <monnier@iro.umontreal.ca>
6500
6501 * indent.c (Fvertical_motion): Properly handle float column arg.
6502
65032008-06-28 Jason Rumney <jasonr@gnu.org>
6504
6505 * w32term.c (pfnGetFontUnicodeRanges): Remove unused function pointer.
6506 (pfnSetLayeredWindowAttributes): New function pointer.
6507 (w32_initialize): Initialize it when supported.
6508 (x_set_frame_alpha): New function.
6509
6510 * w32fns.c (Fx_create_frame): Initialize frame parameter `alpha'.
6511 (w32_frame_parm_handlers): Set alpha handler.
6512
6513 * frame.c (x_set_alpha) [HAVE_NTGUI]: Call x_set_frame_alpha.
6514
65152008-06-27 Jason Rumney <jasonr@gnu.org>
6516
6517 * w32fns.c (x_to_w32_font, w32_to_x_font, x_to_w32_weight)
6518 (w32_to_x_weight, w32_to_all_x_charsets): Remove obsolete functions.
6519 (w32_to_x_charset, x_to_w32_charset)
6520 (Qw32_charset_ansi, Qw32_charset_symbol, Qw32_charset_default)
6521 (Qw32_charset_shiftjis, Qw32_charset_hangeul, Qw32_charset_johab)
6522 (Qw32_charset_chinesebig5, Qw32_charset_gb2312, Qw32_charset_oem)
6523 (Qw32_charset_easteurope, Qw32_charset_turkish, Qw32_charset_baltic)
6524 (Qw32_charset_russian, Qw32_charset_arabic, Qw32_charset_greek)
6525 (Qw32_charset_hebrew, Qw32_charset_vietnamese, Qw32_charset_thai)
6526 (Qw32_charset_mac, Vw32_charset_info_alist): Move to w32font.c.
6527 (Qw32_charset_unicode): Remove.
6528 (syms_of_w32fns): Update for above changes.
6529
6530 * w32font.c (w32_to_x_charset, x_to_w32_charset)
6531 (Qw32_charset_ansi, Qw32_charset_symbol, Qw32_charset_default)
6532 (Qw32_charset_shiftjis, Qw32_charset_hangeul, Qw32_charset_johab)
6533 (Qw32_charset_chinesebig5, Qw32_charset_gb2312, Qw32_charset_oem)
6534 (Qw32_charset_easteurope, Qw32_charset_turkish, Qw32_charset_baltic)
6535 (Qw32_charset_russian, Qw32_charset_arabic, Qw32_charset_greek)
6536 (Qw32_charset_hebrew, Qw32_charset_vietnamese, Qw32_charset_thai)
6537 (Qw32_charset_mac, Vw32_charset_info_alist): Move from w32fns.c.
6538 (syms_of_w32font): Update for above changes.
6539
65402008-06-27 Dan Nicolaescu <dann@ics.uci.edu>
6541
6542 * s/usg5-4.h: Fix previous change: keep the correct branch of a
6543 removed #if.
6544 (USG_SHARED_LIBRARIES): Remove duplicate definition.
6545
65462008-06-26 Juanma Barranquero <lekktu@gmail.com>
6547 Eli Zaretskii <eliz@gnu.org>
6548
6549 * makefile.w32-in (LOCAL_FLAGS):
6550 Don't include WINDOWSNT, DOS_NT and _UCHAR_T.
6551
6552 * sysdep.c (_spawnlp, _getpid):
6553 Declare with explicit _cdecl instead of _CRTAPI1.
6554
6555 * editfns.c (Fget_internal_run_time):
6556 Check for WINDOWSNT with #ifdef, not #if.
6557
65582008-06-26 Jason Rumney <jasonr@gnu.org>
6559
6560 * w32font.h (FONT_HANDLE, FONT_TEXTMETRIC): New macros.
6561
6562 * w32term.c (x_draw_glyph_string_foreground)
6563 (x_draw_composite_glyph_string_foreground): Sync with xterm.c.
6564 Use FONT_HANDLE macro.
6565 (x_draw_glyph_string): Use FONT_TEXTMETRIC macro.
6566
6567 * w32uniscribe.c (uniscribe_otf_capability, uniscribe_shape)
6568 (uniscribe_encode_char): Use FONT_HANDLE macro.
6569
6570 * w32font.c (Fx_select_font): Use FONT_HANDLE macro.
6571 (w32font_text_extents): Use precast w32_font.
6572 (w32font_close): Free cached metrics.
6573 (w32font_open_internal): Allocate space for name on stack.
6574
65752008-06-26 Chong Yidong <cyd@stupidchicken.com>
6576
6577 * xdisp.c (extend_face_to_end_of_line): Fix last change.
6578
65792008-06-26 Jason Rumney <jasonr@gnu.org>
6580
6581 * w32term.h (FONT_AVG_WIDTH): Remove obsolete macro.
6582 (CP_8BIT, CP_UNICODE, CP_UNKNOWN): Remove obsolete constants.
6583
65842008-06-26 Juanma Barranquero <lekktu@gmail.com>
6585
6586 * Makefile.in (SOME_MACHINE_OBJECTS): Remove w32bdf.o.
6587
65882008-06-26 Jason Rumney <jasonr@gnu.org>
6589
6590 * w32bdf.c, w32bdf.h: Remove obsolete files.
6591
6592 * makefile.w32-in: Remove refs to w32bdf.h and w32bdf.c.
6593
6594 * w32gui.h: Don't include w32bdf.h.
6595 (XCharStruct, enum w32_char_font_type, W32FontStruct):
6596 Remove obsolete font support.
6597
6598 * w32font.h (struct w32font_info): Remove compat_w32_font.
6599 Add hfont member.
6600 (FONT_COMPAT): Remove obsolete macro.
6601
6602 * w32font.c (w32font_close): Remove compat code. Delete hfont member.
6603 (w32font_encode_char, w32font_text_extents): Use new hfont member.
6604 (w32font_open_internal): Remove compat code. Set new hfont member.
6605 (Fx_select_font): Use new hfont member.
6606
6607 * w32uniscribe.c (uniscribe_otf_capability, uniscribe_shape)
6608 (uniscribe_encode_char): Use new hfont member.
6609
6610 * w32term.c (x_draw_glyph_string_foreground)
6611 (x_draw_composite_glyph_string_foreground): Use new hfont member.
6612 (x_draw_glyph_string): Use metrics in w32font_info.
6613
66142008-06-26 Kenichi Handa <handa@m17n.org>
6615
6616 * xdisp.c (handle_auto_composed_prop): Fix for the terminal case.
6617
66182008-06-26 Dan Nicolaescu <dann@ics.uci.edu>
6619
6620 * unexnext.c:
6621 * m/ews4800.h:
6622 * m/hp9000s300.h:
6623 * m/ibm370aix.h:
6624 * m/mips-siemens.h:
6625 * m/ncr386.h:
6626 * m/next.h:
6627 * m/pmax.h:
6628 * m/powerpcle.h:
6629 * m/tandem-s2.h:
6630 * s/386bsd.h:
6631 * s/bsd386.h:
6632 * s/bsd4-1.h:
6633 * s/bsd4-2.h:
6634 * s/bsdos2-1.h:
6635 * s/bsdos2.h:
6636 * s/bsdos3.h:
6637 * s/bsdos4.h:
6638 * s/nextstep.h:
6639 * s/ultrix4-3.h:
6640 * s/usg5-0.h:
6641 * s/usg5-2-2.h:
6642 * s/usg5-2.h:
6643 * s/usg5-4-3.h:
6644 * s/ux4800.h:
6645 * s/uxpds.h:
6646 * s/uxpv.h: Remove support for obsolete systems.
6647 * s/hpux.h, s/hpux10.h, s/hpux8.h, s/hpux9.h, s/hpux9shr.h:
8f3a3ac2 6648 Remove, insert contents in s/hpux10-20.h.
aac0c6e3
MR
6649 * s/aix3-1.h, s/aix3-2-5.h, s/aix3-2.h, s/aix4-1.h, s/aix4.h:
6650 Remove, insert contents in s/aix4-2.h.
6651 * s/usg5-3.h: Remove, insert contents in s/usg5-4.h.
6652 * s/bsd4-3.h: Rename to ...
6653 * s/bsd-common.h: ... this.
6654 * data.c:
6655 * doc.c:
6656 * ecrt0.c:
6657 * emacs.c:
6658 * fileio.c:
6659 * floatfns.c:
6660 * keyboard.c:
6661 * mem-limits.h:
6662 * print.c:
6663 * process.c:
6664 * sysdep.c:
6665 * syssignal.h:
6666 * systty.h:
6667 * syswait.h:
6668 * term.c:
6669 * unexec.c:
6670 * unexelf.c:
6671 * unexhp9k800.c:
6672 * m/hp800.h:
6673 * m/ibmrs6000.h:
6674 * m/mips.h:
6675 * m/vax.h:
6676 * s/darwin.h:
6677 * s/freebsd.h:
6678 * s/gnu.h:
6679 * s/ms-w32.h:
6680 * s/msdos.h:
6681 * s/netbsd.h:
6682 * s/template.h: Remove references to obsolete variables.
6683
6684 * Makefile.in: Add dependencies for all unexec files.
6685 (admindir): Remove unused variable.
6686 (UNEXEC_SRC): Remove references.
6687
66882008-06-25 Chong Yidong <cyd@stupidchicken.com>
6689
6690 * xfns.c (x_default_font_parameter): If Xft is available, first
6691 try Monospace-12 for the default font.
6692
66932008-06-25 Jason Rumney <jasonr@gnu.org>
6694
6695 * xdisp.c (get_glyph_face_and_encoding): Encode invalid glyphs as 0.
6696
66972008-06-25 Stefan Monnier <monnier@iro.umontreal.ca>
6698
6699 * bytecode.c (Fbyte_code): Disable debugging code that doesn't compile.
6700
6701 * buffer.c (syms_of_buffer): Remove default-word-wrap.
6702
67032008-06-25 Juanma Barranquero <lekktu@gmail.com>
6704
6705 * xdisp.c (syms_of_xdisp) <truncate-partial-width-windows>: Doc fix.
6706 <scroll-conservatively>: Fix typo in docstring.
6707
6708 * xselect.c (Fx_send_client_event): Doc fix.
6709
67102008-06-25 Kenichi Handa <handa@m17n.org>
6711
6712 * xfaces.c (Fx_list_fonts): Call Flist_fonts with the arg PREFER.
6713
6714 * font.c (font_parse_fcname): Remove unused variables.
6715 (font_sort_entites): Delete the arg SPEC. Caller changed.
6716 Fix for the case of ! best_only.
6717 (font_delete_unmatched): Check DPI and AVGWIDTH too.
6718
6719 * lisp.h (Fstring_to_unibyte): EXFUN it.
6720
6721 * character.h (str_to_unibyte): Extern it.
6722
6723 * character.c (str_to_unibyte): New function.
6724
6725 * fns.c (Fstring_to_unibyte): New function.
6726 (syms_of_fns): Defsubr it.
6727
67282008-06-24 Kenichi Handa <handa@m17n.org>
6729
6730 * font.c (font_score): Even if the PIXEL_SIZE is the same, check
6731 DPI too.
6732 (font_sort_entites): Setup prefer_prop[FONT_DPI_INDEX] too.
6733
67342008-06-24 Andreas Schwab <schwab@suse.de>
6735
6736 * Makefile.in (${lispsource}loaddefs.el): Rename from
6737 ../lisp/loaddefs.el.
6738 (bootstrap-clean): Do what distclean does but don't remove
6739 Makefile.
6740 (distclean): Depend on bootstrap-clean and remove Makefile.
6741
67422008-06-24 Chong Yidong <cyd@stupidchicken.com>
6743
6744 * buffer.h (struct buffer): New member word_wrap.
6745
6746 * buffer.c (syms_of_buffer): New variables default-word-wrap and
6747 word-wrap.
6748 (init_buffer_once): Initialize them.
6749
6750 * dispextern.h (struct it): Replace bool truncate_lines_p with a
6751 line_wrap enum possessing three possible values.
6752
6753 * termopts.h: Replace truncate_partial_width_windows with
6754 Vtruncate_partial_width_windows.
6755
6756 * dispnew.c (direct_output_for_insert): Avoid direct output when
6757 inserting a space with word wrap on.
6758
6759 * indent.c (compute_motion): Obey integer values of
6760 truncate-partial-width-windows.
6761
6762 * xdisp.c (Vtruncate_partial_width_windows): New Lisp_Object,
6763 replacing truncate_partial_width_windows.
6764 (init_iterator): If Vtruncate_partial_width_windows is an integer,
6765 truncate only if the window width is below that integer.
6766 (start_display, resize_mini_window, produce_stretch_glyph)
6767 (display_string, move_it_in_display_line_to): Use line_wrap.
6768 (back_to_previous_visible_line_start, reseat_1): Reset
6769 string_from_display_prop_p.
6770 (display_line): Extend default face to end of line when wrapping.
6771
67722008-06-24 Kim F. Storm <storm@cua.dk>
6773
6774 * xdisp.c (display_line, move_it_in_display_line_to): Add ability
6775 to wrap continued lines at word boundaries.
6776
67772008-06-24 Jason Rumney <jasonr@gnu.org>
6778
6779 * font.c (Ffont_face_attributes): Multiply pixel size before point
6780 conversion to avoid multiplying rounding error.
6781
67822008-06-23 Jason Rumney <jasonr@gnu.org>
6783
6784 * w32term.c (x_draw_glyph_string_background)
6785 (x_draw_glyph_string): Remove old bdf font code.
6786
6787 * w32term.h (FONT_TYPE_FOR_UNIBYTE, FONT_TYPE_FOR_MULTIBYTE): Remove.
6788
67892008-06-22 Kenichi Handa <handa@m17n.org>
6790
6791 * font.c (font_find_for_lface): Try the adstyle specified in
6792 the property of LFACE_FONT of LFACE (if any).
6793
67942008-06-21 Seiji Zenitani <zenitani@mac.com>
6795 Ryo Yoshitake <ryo@shiftmode.net>
6796
6797 * xterm.c (x_set_frame_alpha): Add x_catch_errors for bug#437.
6798
67992008-06-22 Stefan Monnier <monnier@iro.umontreal.ca>
6800
6801 * Makefile.in (${lisp} ${SOME_MACHINE_LISP}, ../lisp/loaddefs.el):
6802 Use $(BOOTSTRAPEMACS) rather than witness-emacs.
6803 (bootstrap-emacs${EXEEXT}): Merge witness-emacs into it.
6804 (witness-emacs): Remove.
6805 (lisp, shortlisp): Move loaddefs.el earlier.
6806 (mostlyclean): Forget about witness-emacs.
6807
68082008-06-22 Glenn Morris <rgm@gnu.org>
6809
6810 * Makefile.in (witness-emacs): Depend on temacs${EXEEXT}.
6811 (.SUFFIXES): Declare .el.elc as a suffix rule, for non-GNU makes.
6812
68132008-06-21 Stefan Monnier <monnier@iro.umontreal.ca>
6814
6815 * Makefile.in (PRECOMP): Remove.
6816 (${lisp} ${SOME_MACHINE_LISP}): Remove pseudo dependency on PRECOMP.
6817 (witness-emacs): Run `compile-first'.
6818 (.el.elc): Use the new compile-onefile target.
6819
68202008-06-21 Kenichi Handa <handa@m17n.org>
6821
6822 * xftfont.c (xftfont_open): Handle QCembolden only when
6823 FC_EMBOLDEN is defined.
6824
68252008-06-21 Andreas Schwab <schwab@suse.de>
6826
6827 * Makefile.in (witness-emacs): Use ../lisp, not $(lispsource).
6828 (.el.elc): Likewise.
6829
68302008-06-21 Miles Bader <miles@gnu.org>
6831
6832 * Makefile.in (../lisp/loaddefs.el): Build autoloads in the lisp
6833 build dir, not the lisp source dir.
6834
68352008-06-21 Stefan Monnier <monnier@iro.umontreal.ca>
6836
6837 * Makefile.in (emacs${EXEEXT}): Link the new emacs to bootstrap-emacs.
6838 (bootstrapclean): Remove.
6839 (.el.elc): New rule.
6840 (PRECOMP): New var.
6841 (../lisp/subdirs.el): Remove.
6842 (bootstrap-emacs${EXEEXT}): Remove subdirs.el and charpro.el dependency.
6843 (witness-emacs): New target.
6844 (mostlyclean): Remove witness-emacs as well.
6845 (../lisp/loaddefs.el, ${lisp} ${SOME_MACHINE_LISP}):
6846 Add witness-emacs dependency.
6847
68482008-06-20 Chong Yidong <cyd@stupidchicken.com>
6849
6850 * font.c (Ffont_face_attributes): Omit key-attribute pairs not
6851 defined by the font.
6852
68532008-06-20 Stefan Monnier <monnier@iro.umontreal.ca>
6854
6855 * Makefile.in (emacs${EXEEXT}): Depend on the machine-specific files.
6856 (bootstrap-clean): New target that keeps TAGS around.
6857 (../lisp/subdirs.el, ../lisp/loaddefs.el): New targets.
6858 (bootstrap-emacs${EXEEXT}): Depend on subdirs.el.
6859
68602008-06-20 Jason Rumney <jasonr@gnu.org>
6861
6862 * w32fns.c, w32term.c, w32term.h, w32gui.h [OLD_FONT]:
6863 Remove obsolete font code.
6864
6865 * w32font.c (font_matches_spec): Use csb bitfield from font signature
6866 to determine language support.
6867
68682008-06-20 Stefan Monnier <monnier@iro.umontreal.ca>
6869
6870 * sysdep.c (cfsetspeed): New fun extracted from the code.
6871 (cfmakeraw): Move before first use.
6872
68732008-06-20 Angelo Graziosi <angelo.graziosi@alice.it> (tiny change)
6874
6875 * sysdep.c (cfmakeraw): Provide fallback implementation.
6876 (serial_configure): Provide fallback implementation of cfsetspeed.
6877
68782008-06-20 Kenichi Handa <handa@m17n.org>
6879
6880 * xftfont.c (xftfont_open): Add FOUNDRY, SPACING, DPI, SCALABLE to
6881 the pattern.
6882
6883 * fontset.c (fontset_from_font): Copy font_spec before changing
6884 the elements.
6885
6886 * xfns.c (x_default_font_parameter): Try "monospace-12" too.
6887
68882008-06-20 Stefan Monnier <monnier@iro.umontreal.ca>
6889
6890 * w32fns.c, xfns.c (x_default_font_parameter): Only set `font-param'
6891 for explicit `font' parameters.
6892
6893 * frame.c (x_set_font): Remove unexplained call to fix inf-recursion.
6894
68952008-06-19 Kenichi Handa <handa@m17n.org>
6896
6897 * frame.c: Include <ctype.h>.
6898 (x_set_font_backend): Allow spacing characters in the X resource
6899 for FontBackend.
6900
69012008-06-19 Stefan Monnier <monnier@iro.umontreal.ca>
6902
6903 * w32fns.c, xfns.c (Qfont_param): New var.
6904 (syms_of_w32fns): Initialize it.
6905 (x_default_font_parameter): Record explicit `font' into
6906 `font-parameter'.
6907
69082008-06-18 Kenichi Handa <handa@m17n.org>
6909
6910 * font.c (font_parse_xlfd): Fix previous change.
6911 (font_parse_fcname): Don't use :fc-unknown-spec.
6912 (FRAME_X_DISPLAY_INFO): Be sure to have at least 1 pixel height.
6913 (Fcopy_font_spec): Preserve the order of elements in FONT_EXTRA.
6914 (font_add_log): Prepend the driver name to the resulting fonts.
6915
6916 * ftfont.c (ftfont_pattern_entity): New arg extra. Caller changed.
6917 (ftfont_spec_pattern): Don't check QCfc_unknown_spec and QCname.
6918 (ftfont_list) [FC_FONTFORMAT]: Include FC_FONTFORMAT in objset.
6919
6920 * xftfont.c (QChinting , QCautohint, QChintstyle, QCrgba)
6921 (QCembolden): New variables.
6922 (syms_of_xftfont): DEFSYM them.
6923 (xftfont_open): Call XftFontMatch. Don't trust the result of
6924 XftTextExtents8 if the pixel_size is less than 5.
6925
69262008-06-18 Andreas Schwab <schwab@suse.de>
6927
6928 * font.c (Ffont_face_attributes): Only define if HAVE_WINDOW_SYSTEM.
6929 (syms_of_font): Only defsubr if HAVE_WINDOW_SYSTEM.
6930
69312008-06-18 Jason Rumney <jasonr@gnu.org>
6932
6933 * w32font.c (w32font_list, w32font_match): Add logging.
6934
6935 * w32uniscribe.c (uniscribe_list, uniscribe_match): Add logging.
6936
69372008-06-17 Chong Yidong <cyd@stupidchicken.com>
6938
6939 * font.c (font_parse_fcname): Store divider characters for
6940 unknown-spec list. For known key symbols, intern using correct
6941 symbol name.
6942
69432008-06-17 Kenichi Handa <handa@m17n.org>
6944
6945 * xfaces.c (realize_default_face): If the frame is not on window
6946 system, set the fontset of face to nil.
6947
69482008-06-17 Naohiro Aota <nao.aota@gmail.com> (tiny change)
6949
6950 * fontset.c (fontset_pattern_regexp): Escape some reg-expr characters.
6951
69522008-06-16 Juanma Barranquero <lekktu@gmail.com>
6953
6954 * dispextern.h (lookup_non_ascii_face, split_font_name_into_vector)
6955 (build_font_name_from_vector): Delete externs.
6956
6957 * xfaces.c (struct font_name): Don't declare.
6958
69592008-06-16 Stefan Monnier <monnier@iro.umontreal.ca>
6960
6961 * font.c (font_unparse_gtkname): Use EQ to compare Lisp_Objects.
6962
69632008-06-16 Chong Yidong <cyd@stupidchicken.com>
6964
6965 * font.c (font_parse_fcname): Fix handling of unknown-spec string.
6966
69672008-06-16 Juanma Barranquero <lekktu@gmail.com>
6968
6969 * font.c (Ffont_spec): Fix usage in docstring.
6970 (Ffont_face_attributes): Doc fix.
6971
69722008-06-16 Andreas Schwab <schwab@suse.de>
6973
6974 * font.c (Ffont_face_attributes): Fix definition.
6975
69762008-06-16 Jason Rumney <jasonr@gnu.org>
6977
6978 * font.h (font_style_symbolic_from_value): Remove.
6979
6980 * font.c (font_style_symbolic_from_value): Remove.
6981 (font_style_symbolic): Revert to pre 2008-06-13 version.
6982
6983 * w32font.c (w32_to_fc_weight): New function.
6984 (w32font_full_name, logfont_to_fcname): Use it.
6985
69862008-06-16 Kenichi Handa <handa@m17n.org>
6987
6988 * font.c (font_check_object): Delete it.
6989 (font_clear_cache): Check if a font-object is alive.
6990 (font_open_entity): Likewise. Set FONT_OBJLST_INDEX of a
6991 font-object to nil.
6992 (font_close_object): Don't check FONT_CLOSE_OBJECT.
6993 (font_at): Don't call font_check_object.
6994 (Ffont_get): Return a symbol for :weight, :slant, and :width.
6995
69962008-06-16 Katsumi Yamaoka <yamaoka@jpl.org>
6997
6998 * puresize.h (BASE_PURESIZE): Increase to 1230000.
6999
70002008-06-16 Chong Yidong <cyd@stupidchicken.com>
7001
7002 * font.c (font_parse_fcname): Correctly parse KEY=VAL values.
7003
70042008-06-15 Chong Yidong <cyd@stupidchicken.com>
7005
7006 * font.c (font_parse_fcname): Only one decimal point.
7007 (font_unparse_fcname): Handle data in family and foundry indices
7008 as symbols, not strings.
7009 (font_unparse_gtkname, Ffont_face_attributes): New functions.
7010
7011 * xfns.c (Fx_select_font): Give GTK font dialog the default font name.
7012
7013 * font.h (font_unparse_gtkname): Add prototype.
7014
70152008-06-15 Naohiro Aota <nao.aota@gmail.com> (tiny change)
7016
7017 * fontset.c (fontset_pattern_regexp): Escape `+' characters in pattern.
7018
70192008-06-15 Andreas Schwab <schwab@suse.de>
7020
7021 * font.c (font_update_drivers): Fix crash when no drivers match.
7022
70232008-06-15 Stefan Monnier <monnier@iro.umontreal.ca>
7024
7025 * xfns.c (Fx_create_frame): internal-border-width default to 0 for Gtk.
7026 * gtkutil.c (xg_create_frame_widgets): Don't set internal_border_width.
7027
70282008-06-14 Stefan Monnier <monnier@iro.umontreal.ca>
7029
7030 * xdisp.c (syms_of_xdisp): Default underline-minimum-offset to 1.
7031
70322008-06-13 Stefan Monnier <monnier@iro.umontreal.ca>
7033
7034 * process.c (Fserial_process_configure, Fprocess_send_eof):
7035 Use EQ to compare Lisp_Objects.
7036
70372008-06-13 Jason Rumney <jasonr@gnu.org>
7038
7039 * w32fns.c (Fw32_select_font): Remove old font API function.
7040
7041 * w32font.c (logfont_to_fcname): New function.
7042 (Fx_select_font): New font dialog function compatible with
7043 GTK/fontconfig version.
7044
7045 * font.c (font_style_symbolic_from_value): New function.
7046 (font_style_symbolic): Use it.
7047
7048 * font.h (font_style_symbolic_from_value): Declare new function.
7049
70502008-06-13 Juanma Barranquero <lekktu@gmail.com>
7051
7052 * font.c (syms_of_font) <font-weight-table, font-slant-table>:
7053 <font-width-table>: Fix typos in docstrings.
7054
70552008-06-13 Daniel Engeler <engeler@gmail.com>
7056
7057 These changes add serial port access.
7058 * process.c: Add HAVE_SERIAL.
7059 (Fdelete_process, Fprocess_status, Fset_process_buffer)
7060 (Fset_process_filter, Fset_process_sentinel, Fprocess_contact)
7061 (list_processes_1, select_wrapper, Fstop_process)
7062 (Fcontinue_process, Fprocess_send_eof, kill_buffer_processes)
7063 (status_notify): Modify to handle serial processes.
7064 [HAVE_SERIAL] (Fserial_process_configure)
7065 [HAVE_SERIAL] (make_serial_process_unwind, Fmake_serial_process):
7066 New functions.
7067 * process.h (struct Lisp_Process): Add `type'.
7068 * sysdep.c [HAVE_TERMIOS] (serial_open, serial_configure):
7069 New functions.
7070 * w32.c (_sys_read_ahead, sys_read, sys_write): Modify to handle
7071 serial ports.
b71ac3dd 7072 (serial_open, serial_configure): New functions.
aac0c6e3
MR
7073 * w32.h: Add FILE_SERIAL.
7074 (struct _child_process): Add ovl_read, ovl_write.
7075
70762008-06-13 Kenichi Handa <handa@m17n.org>
7077
7078 * dispextern.h (enum lface_attribute_index): New member
7079 LFACE_FOUNDRY_INDEX.
7080
7081 * font.c (font_score): Delete arg alternate_families. Check only
7082 weight, slant, width, and size. Ignore the difference of alias
7083 style symbols.
7084 (font_sort_entites): Adjust for the above change. Reflect the
7085 order of font-driver to scores.
7086 (font_list_entities): Don't check alternate_familes here.
7087 (font_clear_prop): Handle foundry.
7088 (font_update_lface): Don't parse "foundry-family" form here.
7089 Handle FONT_FOUNDRY_INDEX.
7090 (font_find_for_lface): Likewise. Handle alternate families here.
7091 If registry is nil, try iso8859-1 and ascii-0.
7092 (font_open_for_lface): Pay attention to size in ENTITY.
7093 (font_open_by_name): Simplify by calling font_load_for_lface.
7094 (free_font_driver_list): Delete it.
7095 (font_update_drivers): Preserve the order of backends.
7096 (syms_of_font): Setting of sort_shift_bits adjusted for the change
7097 of font_score and font_sort_entites.
7098 (font_update_sort_order): Likewise.
7099
7100 * xfaces.c (LFACE_FOUNDRY): New macro.
7101 (check_lface_attrs): Check foundry.
7102 (set_lface_from_font): Don't parse "FOUNDRY-FAMILY" form.
7103 (merge_face_vectors): Check foundry.
7104 (merge_face_ref): Likewise.
7105 (Finternal_set_lisp_face_attribute): Likewise.
7106 (x_update_menu_appearance): Likewise.
7107 (Finternal_get_lisp_face_attribute): Likewise.
7108 (lface_hash): Likewise.
7109 (lface_same_font_attributes_p): Likewise.
7110 (x_supports_face_attributes_p): Likewise.
7111 (tty_supports_face_attributes_p): Likewise.
7112 (Finternal_set_alternative_font_family_alist): Intern strings.
7113 (Finternal_set_alternative_font_registry_alist): Downcase strings.
7114 (realize_default_face): Set LFACE_FOUNDRY (lface).
7115
7116 * xfns.c (Fx_create_frame, x_create_tip_frame): Register X
7117 font-driver at first.
7118
7119 * ftfont.c (ftfont_font_format) [! FC_FONTFORMAT]: Declare "int len;".
7120
71212008-06-12 Emanuele Giaquinta <emanuele.giaquinta@gmail.com> (tiny change)
7122
7123 * lread.c (Fload): Use xfree, not free on saved_doc_string.
7124
71252008-06-12 Jim Meyering <meyering@redhat.com>
7126
7127 Make unexec_free handle NULL the same way free does.
7128 * unexmacosx.c (unexec_free): Ignore a NULL argument.
7129
71302008-06-12 Stefan Monnier <monnier@iro.umontreal.ca>
7131
7132 * character.h (CHAR_TO_BYTE_SAFE): New macro.
7133 * character.c (Fmultibyte_char_to_unibyte): Obey the docstring.
7134 * regex.c (RE_CHAR_TO_UNIBYTE): Use the new macro.
7135 (WEAK_ALIAS): Simplify.
7136 * syntax.c (skip_chars): Don't mark non-byte chars in the fastmap
7137 when searching a unibyte buffer.
7138
71392008-06-12 Chong Yidong <cyd@stupidchicken.com>
7140
7141 * xfns.c (Fx_select_font): Rename from x-font-dialog.
7142
71432008-06-12 Juanma Barranquero <lekktu@gmail.com>
7144
7145 * w32font.c: Include ctype.h.
7146
71472008-06-11 Jason Rumney <jasonr@gnu.org>
7148
7149 * w32font.c (w32font_encode_char): Detect missing glyphs that are
7150 misreported as space.
7151 (add_font_entity_to_list): Support unicode-bmp and unicode-sip
7152 as aliases for registry iso10646-1.
7153
71542008-06-11 Stefan Monnier <monnier@iro.umontreal.ca>
7155
7156 * buffer.c (clone_per_buffer_values): Skip `name'.
7157
71582008-06-11 Chong Yidong <cyd@stupidchicken.com>
7159
7160 * font.c (font_parse_fcname): Fix last change; accept decimal
7161 points in font size.
7162
71632008-06-10 Jason Rumney <jasonr@gnu.org>
7164
7165 * w32uniscribe.c (add_opentype_font_name_to_list):
7166 Skip non unicode fonts.
7167
71682008-06-10 Chong Yidong <cyd@stupidchicken.com>
7169
7170 * xfns.c (Fx_font_dialog): New function.
7171
7172 * gtkutil.c (xg_dialog_response_cb): Rename from
7173 xg_file_response_callback.
7174 (pop_down_dialog): Rename from pop_down_file_dialog.
7175 (xg_get_file_name): Callers changed.
7176 (xg_get_font_name): New function.
7177
7178 * gtkutil.h (xg_get_font_name): Insert prototype.
7179
71802008-06-10 Stefan Monnier <monnier@iro.umontreal.ca>
7181
7182 * xdisp.c (underline_minimum_offset): Rename from xterm.c's
7183 x_underline_minimum_display_offset.
7184 (syms_of_xdisp): Declare it here rather than in xterm.c.
7185 * dispextern.h (underline_minimum_offset): Declare it.
7186 * w32term.c (x_draw_glyph_string): Use it.
7187 * xterm.c (x_underline_minimum_display_offset): Move to xdisp.c.
7188 (syms_of_xterm): Don't declare it any more.
7189 (x_draw_glyph_string): Adjust to the new name.
7190
71912008-06-10 David De La Harpe Golden <david@harpegolden.net> (tiny change)
7192
7193 * xterm.c (x_underline_minimum_display_offset): New var.
7194 (x_draw_glyph_string): Use it.
7195 (syms_of_xterm): Declare it.
7196
71972008-06-10 Chong Yidong <cyd@stupidchicken.com>
7198
7199 * font.c (font_parse_fcname): Accept GTK-style font names too.
7200
72012008-06-10 Stefan Monnier <monnier@iro.umontreal.ca>
7202
7203 * dired.c (file_name_completion): Don't return t if the match is exact
7204 but with different capitalization.
7205 * minibuf.c (Ftry_completion): Simplify.
7206
7207 * window.c (Vwindow_point_insertion_type): New var.
7208 (set_window_buffer): Use it.
7209 (syms_of_window): Init and export it to Lisp.
7210
72112008-06-10 Kenichi Handa <handa@m17n.org>
7212
7213 * font.h (font_intern_prop): Prototype adjusted.
7214
7215 * font.c (font_intern_prop): New arg force_symbol.
7216 (font_parse_xlfd, font_parse_fcname, font_parse_family_registry):
7217 Adjust for the change of font_intern_prop.
7218
7219 * ftfont.c (ftfont_pattern_entity):
7220 * w32font.c (add_font_name_to_list, w32_enumfont_pattern_entity)
7221 (w32_registry):
7222 * w32uniscribe.c (add_opentype_font_name_to_list): Adjust for
7223 the change of font_intern_prop.
7224
72252008-06-09 Juanma Barranquero <lekktu@gmail.com>
7226
7227 * w32menu.c (digest_single_submenu): Declare extern.
7228
72292008-06-09 Jason Rumney <jasonr@gnu.org>
7230
7231 * w32term.c (x_make_frame_visible): Use alternate restore flags.
7232
7233 * w32menu.c (Fx_popup_menu): Unwind protect while building menu.
7234 (parse_single_submenu): Remove.
7235 (digest_single_submenu): Remove.
7236 (syms_of_w32menu): Don't initialise variables that have moved
7237 to menu.c.
7238 (set_frame_menubar): Sync with version in xmenu.c.
7239 (w32_menu_show): Sync with xmenu_show in xmenu.c.
7240
7241 * menu.c (single_keymap_panes, push_menu_pane, push_menu_item):
7242 Make static again.
7243
72442008-06-09 Jason Rumney <jasonr@gnu.org>
7245
7246 Changes to w32 files related to the move of common menu code
7247 to menu.c on 2008-06-08 by Chong Yidong.
7248
7249 * menu.c [HAVE_NTGUI]: Include w32term.h, move widget related
7250 defs to w32gui.h.
7251 (single_keymap_panes, push_menu_item, push_menu_pane):
7252 Make globally visible.
7253
7254 * w32menu.c (enum button_type, widget_value, local_heap, local_alloc)
7255 (local_free, malloc_widget_value, free_widget_value)
7256 (MENU_ITEMS_ITEM_NAME, MENU_ITEMS_ITEM_ENABLE, MENU_ITEMS_ITEM_VALUE)
7257 (MENU_ITEMS_ITEM_EQUIV_KEY, MENU_ITEMS_ITEM_DEFINITION)
7258 (MENU_ITEMS_ITEM_TYPE, MENU_ITEMS_ITEM_SELECTED, MENU_ITEMS_ITEM_HELP)
7259 (MENU_ITEMS_ITEM_LENGTH, enum menu_item_idx): Remove defs.
7260 (menu_items, menu_items_allocated, menu_items_used)
7261 (menu_items_n_panes, menu_items_submenu_depth): Remove global vars.
7262 (init_menu_items, finish_menu_items, discard_menu_items)
7263 (grow_menu_items, push_submenu_start, push_submenu_end)
7264 (push_left_right_boundary, push_menu_pane, push_menu_item)
7265 (keymap_panes, single_keymap_panes, list_of_panes, list_of_items)
7266 (free_menubar_widget_tree_value, parse_single_submenu)
7267 (update_submenu_strings): Remove functions.
7268 (xmalloc_widget_value): Remove and declare extern.
7269
7270 * makefile.w32-in ($(SRC)/menu.$(O)): New target.
7271 (OBJ1): Build it.
7272
7273 * w32gui.h (widget_value, XtPointer, Boolean, enum button_type)
7274 (local_heap, local_alloc, local_free, malloc_widget_value)
7275 (free_widget_value): Define here.
7276
72772008-06-09 Kenichi Handa <handa@m17n.org>
7278
7279 * font.h (Qascii_0): Extern it.
7280
7281 * font.c (Qascii_0): New variable.
7282 (syms_of_font): DEFSYM it.
7283 (font_open_by_name): If the registry "iso8859-1" fails, try also
7284 "ascii-0".
7285
7286 * ftfont.c (ftfont_spec_pattern): Accept the registry `ascii-0'.
7287
72882008-06-08 Kenichi Handa <handa@m17n.org>
7289
7290 * .gdbinit (xfont): New command.
7291
72922008-06-08 Andreas Schwab <schwab@suse.de>
7293
7294 * menu.c [HAVE_X_WINDOWS]: Include "xterm.h".
7295 * Makefile.in (menu.o): Update dependencies.
7296
7297 * Makefile.in (obj): Always add menu.o.
7298 * emacs.c (main): Always call syms_of_menu.
7299 * keyboard.h: Remove extra #ifdef HAVE_X_WINDOW.
7300
73012008-06-08 Chong Yidong <cyd@stupidchicken.com>
7302
7303 * Makefile.in: Compile menu.c.
7304
7305 * lisp.h: Declare syms_of_menu.
7306
7307 * emacs.c (main): Call syms_of_menu.
7308
7309 * keyboard.h: Relocate platform-independent menu definitions from
7310 xmenu.c.
7311
7312 * menu.c: New file. Relocate platform-independent menu
7313 definitions from xmenu.c. Suggested by Adrian Robert.
7314
7315 * xmenu.c: Remove platform-independent menu definitions.
7316 (menu_items menu_items_inuse, menu_items_allocated)
7317 (menu_items_used, menu_items_n_panes)
7318 (menu_items_submenu_depth): Move to keyboard.h.
7319 (init_menu_items, finish_menu_items, unuse_menu_items)
7320 (discard_menu_items, restore_menu_items, save_menu_items)
7321 (grow_menu_items, push_submenu_start, push_submenu_end)
7322 (push_left_right_boundary, push_menu_pane, push_menu_item)
7323 (keymap_panes, single_keymap_panes, single_menu_item)
7324 (list_of_panes, list_of_items, find_and_call_menu_selection)
7325 (xmalloc_widget_value, free_menubar_widget_value_tree)
7326 (parse_single_submenu, digest_single_submenu)
7327 (update_submenu_strings): Move to menu.c.
7328
73292008-06-07 Stefan Monnier <monnier@iro.umontreal.ca>
7330
7331 * dispnew.c (Flast_nonminibuf_frame): Handle the NULL case.
7332
73332008-06-06 Miles Bader <miles@gnu.org>
7334
7335 * xdisp.c (x_produce_glyphs): Calculate tab width based on current
7336 face, not frame default.
7337
73382008-06-05 Martin Rudalics <rudalics@gmx.at>
7339
7340 * window.c (pop_up_windows, pop_up_frames)
7341 (display_buffer_reuse_frames, Vpop_up_frame_function)
7342 (Vdisplay_buffer_function, Veven_window_heights)
7343 (Vspecial_display_buffer_names, Vspecial_display_regexps)
7344 (Vspecial_display_function, Vsame_window_buffer_names)
7345 (Vsame_window_regexps, split_height_threshold)
7346 (Vsplit_window_preferred_function): Move those vars to window.el.
7347 (display_buffer_1, Fspecial_display_p, Fsame_window_p)
7348 (Fdisplay_buffer): Move those functions to window.el.
7349 (syms_of_window): Remove corresponding declarations.
7350 (display_buffer): New function.
7351 (temp_output_buffer_show, Fother_window_for_scrolling): Use it.
7352 * dispnew.c (Flast_nonminibuf_frame): New function.
7353 * buffer.c (Fpop_to_buffer): Move to window.el.
7354
73552008-06-05 Stefan Monnier <monnier@iro.umontreal.ca>
7356
7357 * data.c (set_internal): Fix up call to let_shadows_buffer_binding_p.
7358
73592008-06-05 Kenichi Handa <handa@m17n.org>
7360
7361 * coding.c (detect_coding): Fix previous change.
7362 (detect_coding_system): Likewise.
7363
73642008-06-05 Stefan Monnier <monnier@iro.umontreal.ca>
7365
7366 * character.h (MAKE_CHAR_MULTIBYTE): Check the arg is a (uni)byte.
7367
7368 * keymap.c (Vminibuffer_local_filename_must_match_map):
7369 Rename from Vminibuffer_local_must_match_filename_map.
7370 (syms_of_keymap):
7371 * minibuf.c (Fcompleting_read): Adjust accordingly.
7372 * commands.h: Rename declaration as well.
7373
73742008-06-05 Kenichi Handa <handa@m17n.org>
7375
7376 * font.c (Ffont_spec): Don't use font_parse_family_registry for
7377 family name.
7378 (Ffont_put): Likewise.
7379
7380 * fontset.c (fontset_find_font): Call font_open_for_lface with the
7381 current font-spec.
7382
7383 * xfont.c (xfont_list): Don't set registry to iso8859-1 even if it
7384 is unspecified.
7385
7386 * xfaces.c (realize_x_face): If the font-related face attributes
7387 are the same as those of default face, realize a new fontset from
7388 default->fontset.
7389 (Fx_family_fonts): Use font_parse_family_registry instead of Ffont_put.
7390
73912008-06-05 Stefan Monnier <monnier@iro.umontreal.ca>
7392
7393 * xdisp.c (move_it_in_display_line_to): Improve the type of its args.
7394 (move_it_in_display_line): New wrapper.
7395
7396 * window.c (window_scroll_pixel_based_preserve_x)
7397 (window_scroll_preserve_hpos, window_scroll_preserve_vpos): New vars.
7398 (window_scroll_pixel_based, window_scroll_line_based):
7399 Use them to preserve column positions.
7400 (syms_of_window): Initialize them.
7401
7402 * indent.c (Fvertical_motion): Extend first arg to allow passing an
7403 (HPOS . VPOS) pair.
7404
7405 * dispextern.h (move_it_in_display_line): Declare.
7406
74072008-06-05 Juanma Barranquero <lekktu@gmail.com>
7408
7409 * window.c (Fwindow_parameter): Return VALUE, not (PARAMETER . VALUE).
7410 (Fwindow_parameters): Return copy of parameter alist. Doc fix.
7411 (Fset_window_parameter): Return VALUE, not parameter alist. Doc fix.
7412
74132008-06-04 Juanma Barranquero <lekktu@gmail.com>
7414
7415 * window.c (Fset_window_parameter): Doc fix.
7416 (Fwindow_parameters, Fwindow_parameter): Remove redundant check.
7417
74182008-06-04 Joakim Verona <joakim@verona.se>
7419
7420 * window.h (struct window): Add new member window_parameters.
7421
7422 * window.c (Fwindow_parameters, Fwindow_parameter)
7423 (Fset_window_parameter): New defuns.
7424 (syms_of_window): Defsubr the new defuns.
7425 (make_window): Initialize window_parameters to nil.
7426
74272008-06-04 John Paul Wallington <jpw@pobox.com>
7428
7429 * eval.c (Fdefmacro): Doc fix.
7430
74312008-06-04 Kenichi Handa <handa@m17n.org>
7432
7433 * coding.c (detect_coding): Fix handling of coding->head_ascii.
7434 Be sure to call setup_coding_system when we find a proper coding system.
7435 (detect_coding_system): Fix handling of coding->head_ascii.
7436
74372008-06-03 Andreas Schwab <schwab@suse.de>
7438
7439 * font.c (font_prop_validate_spacing): Fix last change.
7440
74412008-06-03 Kenichi Handa <handa@m17n.org>
7442
7443 * font.c (font_prop_validate_spacing): Handle uppercase symbols.
7444 (font_parse_fcname): Fix handling of unknown key.
7445
7446 * xfont.c (xfont_list): Try an alias.
7447
7448 * charset.c (char_charset): Return NULL if the arg charset_list is
7449 specified and C doesn't belong to any of them.
7450
74512008-06-02 Chip Coldwell <coldwell@redhat.com>
7452
7453 * font.c (font_pixel_size): Don't take cdr of an integer.
7454
74552008-06-02 Jim Meyering <meyering@redhat.com>
7456
7457 Make "xfree (NULL)" a no-op; remove useless if-before-xfree.
7458 * alloc.c (xfree): Return right away for a NULL arg.
7459 * lread.c (nosuffix): Remove now-useless if-before-xfree tests.
7460 * gtkutil.c (xg_gtk_scroll_destroy): Likewise.
7461 * mac.c (create_apple_event_from_event_ref): Likewise.
7462 (create_apple_event_from_drag_ref, cfstring_create_normalized):
7463 Likewise.
7464 * doprnt.c (doprnt1): Likewise.
7465 * frame.c (frame): Likewise.
7466 * keyboard.c (wipe_kboard): Likewise.
7467 * macterm.c (x_free_frame_resources, xlfdpat_destroy, XFreePixmap)
7468 (init_font_name_table, mac_unload_font, x_delete_display): Likewise.
7469 * term.c (tty_default_color_capabilities, maybe_fatal)
7470 (delete_tty): Likewise.
7471 * w16select.c (string): Likewise.
7472 * w32.c (w32_get_resource, SET_ENV_BUF_SIZE): Likewise.
7473 * w32bdf.c (w32_free_bdf_font): Likewise.
7474 * w32fns.c (w32_unload_font): Likewise.
7475 * w32font.c (w32font_close): Likewise.
7476 * window.c (size_window): Likewise.
7477 * xselect.c (receive_incremental_selection): Likewise.
7478 * xterm.c (x_free_frame_resources, x_delete_display): Likewise.
7479 * mactoolbox.c (create_apple_event_from_drag_ref): Likewise.
7480 * w32.c (stat): Likewise.
7481
7482 Remove useless if-before-free tests.
7483 * editfns.c (Fset_time_zone_rule): Likewise.
7484 * lread.c (nosuffix): Likewise.
7485 * ralloc.c (get_bloc): Likewise.
7486 * regex.c (reg_free): Likewise.
7487 * xftfont.c (xftfont_open, xftfont_close): Likewise.
7488 * xrdb.c (get_user_app, get_environ_db, x_load_resources): Likewise.
7489 * xsmfns.c (smc_save_yourself_CB): Likewise.
7490
74912008-06-02 Kenichi Handa <handa@m17n.org>
7492
7493 * font.c (font_find_for_lface): Handle float font size.
7494 (font_open_for_lface): Likewise.
7495
7496 * xfaces.c (x_supports_face_attributes_p): Check face->font before
7497 comparing the properties.
7498
74992008-06-01 Jason Rumney <jasonr@gnu.org>
7500
7501 * w32font.c (w32_enumfont_pattern_entity): Use requested registry.
7502 Treat iso10646-1 and Windows DEFAULT_CHARSET specially.
7503 Duplicate iso8859-1 fonts as iso10646-1 if no registry specified.
7504 Don't add empty script list.
7505 (w32_registry): Only map DEFAULT_CHARSET to iso10646-1 here.
7506
75072008-06-01 Dan Nicolaescu <dann@ics.uci.edu>
7508
7509 * Makefile.in (dot, dotdot): Remove, update users.
7510 ".." has been used elsewhere in the file for a long time.
7511 (LIBXT_STATIC): Remove conditional based on unused variable.
7512
75132008-06-01 Miles Bader <miles@gnu.org>
7514
7515 * xfaces.c (Vface_remapping_alist): New variable.
7516 (syms_of_xfaces): Initialize it.
7517 (enum named_merge_point_kind): New type.
7518 (struct named_merge_point): Add `named_merge_point_kind' field.
7519 (push_named_merge_point): Make cycle detection respect different
7520 named-merge-point kinds.
7521 (lface_from_face_name_no_resolve): Rename from `lface_from_face_name'.
7522 Remove face-name alias resolution.
7523 (lface_from_face_name): New definition using
7524 `lface_from_face_name_no_resolve'.
7525 (get_lface_attributes_no_remap): Rename from `get_lface_attributes'.
7526 Call lface_from_face_name_no_resolve instead of lface_from_face_name.
7527 (get_lface_attributes): New definition that layers face-remapping on
7528 top of get_lface_attributes_no_remap. New arg `named_merge_points'.
7529 (lookup_basic_face): New function.
7530 (lookup_derived_face): Pass new last arg to `get_lface_attributes'.
7531 (realize_named_face): Call `get_lface_attributes_no_remap' instead of
7532 `get_lface_attributes'.
7533 (face_at_buffer_position): Use `lookup_basic_face' to lookup
7534 DEFAULT_FACE_ID if necessary. When optimizing the default-face case,
7535 return default_face's face-id instead of the constant DEFAULT_FACE_ID.
7536
7537 * xdisp.c (init_iterator): Pass base_face_id through
7538 `lookup_basic_face' when we actually use it as a face-id.
7539 (handle_single_display_prop): Use `lookup_basic_face' to lookup
7540 DEFAULT_FACE_ID.
7541
7542 * fontset.c (Finternal_char_font): Use `lookup_basic_face' to
7543 lookup the initial face-id.
7544
7545 * dispextern.h (lookup_basic_face, Vface_remapping_alist): New decls.
7546
75472008-06-01 Juanma Barranquero <lekktu@gmail.com>
7548
7549 * textprop.c (syms_of_textprop) <text-property-default-nonsticky>:
7550 (Fremove_text_properties): Fix typos in docstrings.
7551
75522008-05-31 Kenichi Handa <handa@m17n.org>
7553
7554 * font.c (font_list_entities): Fix the car part of data to be
7555 stored in the cache.
7556
7557 * ftfont.c (ftfont_font_format): Don't use strcasestr.
7558
75592008-05-30 Stefan Monnier <monnier@iro.umontreal.ca>
7560
7561 * chartab.c (Foptimize_char_table, optimize_sub_char_table):
7562 Add a `test' argument so another predicate than `equal' can be used.
7563 (map_sub_char_table): Use `eq' rather than `equal' to merge ranges.
7564 (map_char_table): Remove unused vars `c' and `i'.
7565 * lisp.h (Foptimize_char_table): Adjust declaration.
7566 * charset.c (Fclear_charset_maps): Adjust call to Foptimize_char_table.
7567
75682008-05-30 Kenichi Handa <handa@m17n.org>
7569
7570 * font.c (Ffont_info): Define only if HAVE_WINDOW_SYSTEM is defined.
7571 (syms_of_font): Defsubr Sfont_info only if HAVE_WINDOW_SYSTEM is
7572 defined.
7573
75742008-05-30 Stefan Monnier <monnier@iro.umontreal.ca>
7575
7576 * data.c (Fmake_variable_buffer_local, Fmake_local_variable)
7577 (Fmake_variable_frame_local): Disallow mixing buffer-local and
7578 frame-local settings for the same variable.
7579
75802008-05-30 Kenichi Handa <handa@m17n.org>
7581
7582 * fontset.c (Ffont_info): Move to font.c.
7583 (syms_of_fontset): Delete defsubr of Sfont_info.
7584
7585 * font.c (font_style_to_value, font_score): Delete casting of the
7586 args to xstcasecmp.
7587 (register_font_driver): Increment num_font_drivers only when
7588 registering the driver globally.
7589 (Ffont_info): Move from fontset.c. Handle a font object too.
7590 (syms_of_font): Defsubr Sfont_info.
7591
75922008-05-29 Kenichi Handa <handa@m17n.org>
7593
7594 * coding.h (enum define_coding_utf8_arg_index): New enum.
7595 (enum coding_attr_index): Change coding_attr_utf_16_bom to
7596 coding_attr_utf_bom.
7597 (enum utf_bom_type): Rename from utf_16_bom_type.
7598 (struct utf_16_spec): Adjust for the above change.
7599 (struct coding_system): Add utf_8_bom in `spec' union.
7600
7601 * coding.c (CODING_UTF_8_BOM): New macro.
7602 (enum coding_category): Delete coding_category_utf_8, add
7603 coding_category_utf_8_auto, coding_category_utf_8_nosig, and
7604 coding_category_utf_8_sig.
7605 (CATEGORY_MASK_UTF_8): Delete it.
7606 (CATEGORY_MASK_UTF_8_AUTO, CATEGORY_MASK_UTF_8_NOSIG)
7607 (CATEGORY_MASK_UTF_8_SIG): New macros.
7608 (CATEGORY_MASK_ANY): Delete CATEGORY_MASK_UTF_8, add
7609 CATEGORY_MASK_UTF_8_AUTO, CATEGORY_MASK_UTF_8_NOSIG, and
7610 CATEGORY_MASK_UTF_8_SIG.
7611 (CATEGORY_MASK_UTF_8): New macro.
7612 (UTF_BOM, UTF_8_BOM_1, UTF_8_BOM_2, UTF_8_BOM_3): New macros.
7613 (detect_coding_utf_8): Check BOM.
7614 (decode_coding_utf_8, encode_coding_utf_8): Handle BOM.
7615 (decode_coding_utf_16): Adjust for the change of enum utf_bom_type.
7616 (encode_coding_utf_16): Likewise.
7617 (setup_coding_system): Likewise. Set CODING_UTF_8_BOM (coding).
7618 (detect_coding, detect_coding_system): Handle utf-8-auto.
7619 (Fdefine_coding_system_internal): Handle `bom' property for utf-8.
7620 (syms_of_coding): Fix setting up of Vcoding_category_table.
7621
76222008-05-29 Stefan Monnier <monnier@iro.umontreal.ca>
7623
7624 * process.c (Faccept_process_output): If `millisec' is non-nil,
7625 `seconds' default to 0.
7626 (wait_reading_process_output): Also return non-nil if we read output
7627 from a non-running process.
7628
76292008-05-29 Jason Rumney <jasonr@gnu.org>
7630
7631 * w32font.c (w32font_open_internal): Prefer truetype fonts unless
7632 `raster' specified.
7633 (add_font_entity_to_list): Allow non-opentype truetype fonts back
7634 in the uniscribe backend, but disallow any font that has no
7635 unicode subrange support.
7636
76372008-05-29 Juanma Barranquero <lekktu@gmail.com>
7638
7639 * xfaces.c (Fx_list_fonts, Finternal_copy_lisp_face):
7640 Fix typos in docstrings.
7641
76422008-05-29 Kenichi Handa <handa@m17n.org>
7643
7644 * xfaces.c (Fx_list_fonts): Make it return a list of font names.
7645 (Fx_family_fonts): Set frame correctly.
7646
76472008-05-28 Jason Rumney <jasonr@gnu.org>
7648
7649 * w32term.c (x_draw_glyph_string): Use clipmask if specified.
7650
76512008-05-28 Stefan Monnier <monnier@iro.umontreal.ca>
7652
7653 * fileio.c (Fwrite_region): Delay the defaulting to beg&z to after
7654 calling build_annotations.
7655
76562008-05-28 Juanma Barranquero <lekktu@gmail.com>
7657
7658 * coding.c (Fdecode_coding_region, Fencode_coding_region)
7659 (Fencode_coding_string):
7660 (syms_of_coding) <coding-system-for-read, coding-system-for-write>:
7661 <latin-extra-code-table>: Fix typos in docstrings.
7662 (syms_of_coding) <coding-system-alist>: Doc fix.
7663 (syms_of_coding) <translation-table-for-input>: Reflow docstring.
7664
76652008-05-28 Kenichi Handa <handa@m17n.org>
7666
7667 * fontset.c (Ffont_info): Don't call font_close_object.
7668
7669 * font.c (font_parse_family_registry): Use Ffont_put to validate
7670 foundry and family.
7671 (font_delete_unmatched): Don't check spacing.
7672 (font_list_entities): Add spacing to the spec to list fonts.
7673
7674 * ftfont.c (ftfont_spec_pattern): Don't set FC_SPACING to pattern.
7675 (ftfont_list): Check spacing here. Don't include FC_CHARSET in objset.
7676
7677 * coding.c (encode_coding_raw_text): Fix previous change.
7678 (encode_coding_object): When the dst_object is a buffer and is
7679 different from src_object, move gap to PT.
7680
76812008-05-27 Chong Yidong <cyd@stupidchicken.com>
7682
7683 * xterm.c (x_draw_glyph_string): If a clipmask is specified, use it.
7684
76852008-05-27 Stefan Monnier <monnier@iro.umontreal.ca>
7686
7687 * coding.c (encode_coding_raw_text): Set coding->produced_char for
7688 all branches. Compute it differently.
7689
7690 * xdisp.c [!HAVE_WINDOW_SYSTEM]: Include font.h for --without-x.
7691
76922008-05-27 Juanma Barranquero <lekktu@gmail.com>
7693
7694 * w32font.c (compute_metrics): Rewrite an "else { if () ... else ... }"
7695 into "else if () ... else ...".
7696
76972008-05-27 Jason Rumney <jasonr@gnu.org>
7698
7699 * w32font.c (w32font_open_internal): Determine if glyph indices
7700 are likely to work here.
7701
77022008-05-27 Chong Yidong <cyd@stupidchicken.com>
7703
7704 * xdisp.c (draw_glyphs): If mouse-highlighting is on, attempt to
7705 draw overlap glyphs with appropriate highlighting.
7706
77072008-05-27 Kenichi Handa <handa@m17n.org>
7708
7709 * xfont.c (xfont_open): Fix calculation of font->average_width.
7710
77112008-05-27 Stefan Monnier <monnier@iro.umontreal.ca>
7712
7713 * casefiddle.c (casify_object): Try to guess better whether the
7714 argument is a byte or a char.
7715
77162008-05-26 Andreas Schwab <schwab@suse.de>
7717
7718 * xselect.c (x_reply_selection_request): Properly handle format == 32.
7719 Always send multiples of format size.
7720
7721 * xterm.c (x_set_frame_alpha): Fix type mismatch.
7722
77232008-05-26 Jason Rumney <jasonr@gnu.org>
7724
7725 * w32font.c (w32font_text_extents): Zero whole metrics struct first.
7726 (compute_metrics): Don't set failure if we just cleared the cache.
7727 (w32_weight_table): Remove unused variable.
7728 (w32_enumfont_pattern_entity): Use FONT_SPACING_CHARCELL for
7729 backwards compatibility.
7730
77312008-05-25 Kenichi Handa <handa@m17n.org>
7732
7733 * w32term.c (x_draw_glyph_string):
7734 * xterm.c (x_draw_glyph_string): Fix calculation of underline position.
7735
7736 * xfaces.c: Delete unused function prototypes.
7737 (xstrlwr, font_frame): Delete them.
7738 (clear_face_cache): Delete unused variable.
7739
7740 * xftfont.c (xftfont_open): Delete unused variable.
7741 If underline_thickness is not 1, adjust underline_position.
7742
7743 * ftxfont.c (ftxfont_open): Delete unused variable.
7744
7745 * fontset.c (face_for_char): Optimize for the case of no charset
7746 property.
7747
7748 * font.c (LGSTRING_HEADER_SIZE, LGSTRING_GLYPH_SIZE)
7749 (check_gstring, check_otf_features, otf_list, otf_tag_symbol)
7750 (otf_open, font_otf_capability, generate_otf_features)
7751 (font_otf_DeviceTable, font_otf_ValueRecord, font_otf_Anchor):
7752 Comment out by surrounding "#if 0" and "#endif" for the moment.
7753 (Ffont_drive_otf, Ffont_otf_alternates): Likewise.
7754 (syms_of_font): Codes for accessing above commented out.
7755
77562008-05-24 Eli Zaretskii <eliz@gnu.org>
7757
7758 * w32proc.c: Include dispextern.h.
7759
7760 * w32.c: Include dispextern.h.
7761
77622008-05-23 Juanma Barranquero <lekktu@gmail.com>
7763
7764 * charset.c (Fencode_char, Fsplit_char): Doc fixes.
7765 (Fget_unused_iso_final_char, Fdecode_char, Fiso_charset):
7766 Fix typos in docstrings.
7767
77682008-05-23 Jason Rumney <jasonr@gnu.org>
7769
7770 * xsmfns.c: Remove includes that are already included by config.h.
7771
77722008-05-23 Kenichi Handa <handa@m17n.org>
7773
7774 * charset.c (Qemacs, charset_emacs): New variables.
7775 (char_charset): Fix for non-Unicode characters.
7776 (syms_of_charset): Define charset_emacs.
7777
7778 * w32term.c (x_draw_glyph_string): Be sure to update
7779 s->underline_thickness and s->underline_position. Be sure to draw
7780 underline within the current line area.
7781
7782 * xterm.c (x_draw_glyph_string): Be sure to update
7783 s->underline_thickness and s->underline_position. Be sure to draw
7784 underline within the current line area.
7785
7786 * fontset.c: Delete unused variables and add casting for char *
7787 throughout the file.
7788 (fontset_font): Try the fallback fonts of the current fontset
7789 before consulting the default fontset.
7790
7791 * ftfont.c (ftfont_spec_pattern): Free charset if necessary.
7792
7793 * xfont.c (xfont_list_pattern): Free names returned from XListFonts.
7794
77952008-05-22 Jason Rumney <jasonr@gnu.org>
7796
7797 * font.c: Don't include strings.h.
7798
7799 * dispextern.h, xfaces.c (xstrcasecmp): Rename from xstricmp.
7800
7801 * dosfns.c, fileio.c, font.c, fontset.c, image.c, macfns.c:
7802 * macterm.c, process.c, w32.c, w32fns.c, w32proc.c, xfaces.c:
7803 * xfns.c, xfont.c: All callers of stricmp and strcasecmp changed
7804 to call xstrcasecmp.
7805
7806 * xfont.c (xfont_list_pattern, compare_font_names): Use xstrcasecmp.
7807
7808 * fontset.c (fs_query_fontset): Use xstrcasecmp.
7809
7810 * font.c (font_style_to_value, font_score): Use xstrcasecmp.
7811
7812 * dosfns.c (msdos_stdcolor_idx): Use xstrcasecmp.
7813
78142008-05-22 Kenichi Handa <handa@m17n.org>
7815
7816 * puresize.h (BASE_PURESIZE): Increase to 1220000.
7817
7818 * font.c (font_prop_validate_style): Adjust for the format
7819 change of font_style_table.
7820
7821 * w32font.c (w32font_open_internal): Call Ffont_xlfd_name with
7822 two args.
7823
7824 * xfaces.c (x_update_menu_appearance): Call Ffont_xlfd_name with
7825 two args.
7826
78272008-05-22 Stefan Monnier <monnier@iro.umontreal.ca>
7828
7829 * minibuf.c (keys_of_minibuf): Delete.
7830 * lisp.h (keys_of_minibuf): Delete.
7831 * emacs.c (main): Don't call keys_of_minibuf.
7832
78332008-05-22 Kenichi Handa <handa@m17n.org>
7834
7835 * ftfont.c (ftfont_resolve_generic_family): Rename from
7836 ftfont_list_generic_family. Return a single family for each
7837 generic family.
7838 (ftfont_spec_pattern): Add FC_FAMILY to pattern.
7839 (ftfont_list): Adjust for the change of ftfont_resolve_generic_family.
7840 Call font_add_log.
7841 (ftfont_match): Call font_add_log.
7842
7843 * font.h (Ffont_xlfd_name): EXFUN adjusted.
7844 (FONT_DEBUG): Define it.
7845 (font_add_log): Extern it.
7846 (font_assert): Rename from xassert.
7847
7848 * xfont.c (xfont_get_pcm): Change xassert to font_assert.
7849 (xfont_list_family): Call font_add_log.
7850 (xfont_match): Likewise.
7851 (memq_no_quit): Delete.
7852
7853 * fontset.c (fontset_from_font, Ffontset_info): Add the 2nd arg in
7854 call of Ffont_xlfd_name.
7855
7856 * xfaces.c (struct table_entry, slant_table, weight_table)
7857 (swidth_table): Move to font.c.
7858
7859 * font.c: Checking of FONT_DEBUG is moved to font.h. All calls of
7860 xassert are changed to font_assert. Delete many unused variables.
7861 (Vfont_weight_table, Vfont_slant_table, Vfont_width_table):
7862 New variables.
7863 (struct table_entry): Move from xfaces.c and modified.
7864 (weight_table, slant_table, width_table): Move from xfaces.c and
7865 contents adjusted for the change of struct table_entry.
7866 (font_style_to_value, font_style_symbolic): Adjust for the
7867 format change of font_style_table.
7868 (font_parse_family_registry): Don't overwrite existing foundry and
7869 family of font_spec.
7870 (font_score): Fix calculation of diff for sizes.
7871 (font_sort_entites): Call font_add_log.
7872 (font_delete_unmatched): Return a newly created list.
7873 (font_list_entities): Fix previous change. Call font_add_log.
7874 (font_matching_entity, font_open_entity, font_close_entity):
7875 Call font_add_log.
7876 (Ffont_xlfd_name): New arg FOLD-WILDCARDS.
7877 (Finternal_set_font_style_table): Delete.
7878 (BUILD_STYLE_TABLE): New macro.
7879 (build_style_table): New function.
7880 (Vfont_log, font_log_env_checked): New variables.
7881 (font_add_log): New function.
7882 (syms_of_font): Delete defsubr Sinternal_set_font_style_table.
7883 Declare Lisp variables "font-weight-table", "font-slant-table",
7884 "font-width-table", and "font-log". Initialize font_style_table.
7885
78862008-05-21 Dan Nicolaescu <dann@ics.uci.edu>
7887
7888 * xterm.c (x_set_frame_alpha): Move declarations before statements.
7889
78902008-05-21 Seiji Zenitani <zenitani@mac.com>
7891 Ryo Yoshitake <ryo@shiftmode.net>
7892
7893 * frame.c (Qalpha): Add a new frame parameter `alpha'.
7894 (Vframe_alpha_lower_limit): New variable.
7895 (x_set_alpha): New function.
7896
7897 * frame.h (Qalpha, Vframe_parameter_lower_limit): Export them.
7898
7899 * xfns.c (x-create-frame, Qalpha):
7900 Initialize the frame parameter `alpha'.
7901 * xterm.c (OPAQUE, OPACITY): New.
7902 (x_set_frame_alpha): New function.
7903 (frame_highlight, frame_unhighlight): Call x_set_frame_alpha.
7904
7905 * macfns.c (mac_frame_parm_handlers): A null handler for x_set_alpha.
7906 * w32fns.c (w32_frame_parm_handlers): Likewise.
7907
79082008-05-20 Jason Rumney <jasonr@gnu.org>
7909
7910 * w32font.c (add_font_entity_to_list): Don't add non-opentype
7911 truetype fonts to opentype list.
7912
79132008-05-20 Juanma Barranquero <lekktu@gmail.com>
7914
7915 * fontset.c (Ffontset_info): Doc fix.
7916 (syms_of_fontset) <font-encoding-charset-alist, use-default-ascent>:
7917 <ignore-relative-composition>: Fix typos in docstrings.
7918
7919 * font.c (syms-of-font) <font-encoding-alist>:
7920 (Ffontp, Ffont_make_gstring): Fix typos in docstrings.
7921 (Flist_fonts, Ffont_family_list, Ffont_fill_gstring, Fquery_font)
7922 (Ffont_otf_alternates): Doc fixes.
7923
79242008-05-20 Kenichi Handa <handa@m17n.org>
7925
7926 * Makefile.in (FONTSRC): Delete it. Change all $(FONTSRC) to
7927 font.h through out the file.
7928 (FONT_DRIVERS): Rename from FONTOBJ.
7929 (obj): Change $(FONTOBJ) to $(FONT_DRIVERS). Add font.o.
7930 (SOME_MACHINE_OBJECTS): Change $(FONTOBJ) to $(FONT_DRIVERS).
7931
7932 * emacs.c (main): Call syms_of_font unconditionally.
7933
7934 * font.h (find_font_encoding): Extern it.
7935
7936 * font.c (Vfont_encoding_alist, find_font_encoding): Move from
7937 fontset.c.
7938 (font_pixel_size)[! HAVE_WINDOW_SYSTEM]: Return 1.
7939 (font_open_entity): Update FRAME_X_DISPLAY_INFO (f)->n_fonts,
7940 FRAME_SMALLEST_CHAR_WIDTH (f), and FRAME_SMALLEST_FONT_HEIGHT (f)
7941 only when HAVE_WINDOW_SYSTEM is defined.
7942 (font_close_object): Update FRAME_X_DISPLAY_INFO (f)->n_fonts only
7943 when HAVE_WINDOW_SYSTEM is defined.
7944
7945 * fontset.c (Vfont_encoding_alist, find_font_encoding): Move to font.c.
7946 (syms_of_fontset): Move declaration of font-encoding-alist to font.c.
7947
7948 * xfaces.c: Include font.h unconditionally.
7949 (merge_face_ref, merge_face_vectors)
7950 (Finternal_set_lisp_face_attribute): Cancel the previous change.
7951
79522008-05-20 Stefan Monnier <monnier@iro.umontreal.ca>
7953
7954 * xdisp.c (select_frame_for_redisplay): Adjust for last change to
7955 indirect_variable.
7956 * eval.c (lisp_indirect_variable): New fun.
7957 (Fuser_variable_p): Use it.
7958
79592008-05-19 Stefan Monnier <monnier@iro.umontreal.ca>
7960
7961 * lisp.h (indirect_variable):
7962 * data.c (indirect_variable, let_shadows_buffer_binding_p):
7963 Use Lisp_Symbol pointers rather than Lisp_Object.
7964 Adjust callers.
7965 * buffer.c (buffer_slot_type_mismatch): Use wrong-type-argument.
7966 To this end, change calling-convention.
7967
7968 * minibuf.c (Finternal_complete_buffer): Only strip out hidden buffers
7969 if some non-hidden buffers are selected by string&pred.
7970
79712008-05-19 Chong Yidong <cyd@stupidchicken.com>
7972
7973 * process.c (wait_reading_process_output): Always check status
7974 when in batch mode.
7975
79762008-05-19 Kenichi Handa <handa@m17n.org>
7977
7978 * font.c (font_list_entities): Fix handling of cache.
7979 (font_matching_entity): Likewise.
7980
7981 * ftfont.c (cs_iso8859_1): Delete.
7982 (ft_face_cache): New variable.
7983 (struct ftfont_info): New member fc_charset_idx.
7984 (ftfont_build_basic_charsets): Delete.
7985 (fc_charset_table): New variable.
7986 (ftfont_pattern_entity): New arg fc_charset_idx. Store (FILENAME
7987 . FC_CHARSET_IDX) as :font-entity property in the font entity.
7988 Callers changed.
7989 (ftfont_lookup_cache, ftfont_get_charset): New functions.
7990 (ftfont_spec_pattern): New argument fc_charset_idx.
7991 Check registry more rigidly. Change callers.
7992 (ftfont_open, ftfont_close, ftfont_has_char): Adjust for the
7993 change of :font-entity property of the font.
7994
7995 * xftfont.c (xftfont_open): Adjust for the change of :font-entity
7996 property of the font.
7997
79982008-05-18 Juanma Barranquero <lekktu@gmail.com>
7999
8000 * coding.c (Fcoding_system_p): Rename argument to match docstring.
8001 (Funencodable_char_position, Fcheck_coding_systems_region)
8002 (Fdecode_coding_string, Fencode_coding_string): Fix typos in docstrings.
8003 (Fdetect_coding_region, Fdetect_coding_string, Fencode_coding_region)
8004 (Ffind_operation_coding_system, Fset_coding_system_priority)
8005 (Fcoding_system_eol_type): Doc fixes.
8006
80072008-05-17 Glenn Morris <rgm@gnu.org>
8008
8009 * sysdep.c (child_setup_tty): Handle systems with NLDLY, without FFDLY.
8010
80112008-05-16 Eli Zaretskii <eliz@gnu.org>
8012
8013 * dired.c (Ffile_attributes): Shut up GCC warnings about st_uid
8014 and st_gid.
8015
8016 * frame.c (Fdelete_frame): Don't call font_update_drivers if
8017 HAVE_WINDOW_SYSTEM is not defined.
8018
8019 * xfaces.c (merge_face_ref, merge_face_vectors)
8020 (Finternal_set_lisp_face_attribute): Use FONT_*_INDEX only when
8021 HAVE_WINDOW_SYSTEM is defined.
8022 (Fface_font): Fix non-HAVE_WINDOW_SYSTEM case.
8023
80242008-05-16 Stefan Monnier <monnier@iro.umontreal.ca>
8025
8026 * keyboard.c (parse_menu_item): Do not cache key shortcut any more.
8027
80282008-05-15 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
8029
8030 * macterm.c (x_draw_relief_rect): Remove unused variable `dpy'.
8031
80322008-05-15 Kenichi Handa <handa@m17n.org>
8033
8034 * font.c (font_find_for_lface): Reflect LFACE_FONT in the font
8035 preference.
8036
80372008-05-15 Glenn Morris <rgm@gnu.org>
8038
8039 * emacs.c (USAGE1, standard_args): Remove -disable-font-backend.
8040
80412008-05-15 Chong Yidong <cyd@stupidchicken.com>
8042
8043 * fns.c (init_fns): Don't initialize weak_hash_tables here.
8044 (init_weak_hash_tables): New fun. Initialize weak_hash_tables.
8045
8046 * alloc.c (init_alloc_once): Call init_weak_hash_tables.
8047
80482008-05-15 Kenichi Handa <handa@m17n.org>
8049
8050 * ftfont.c (ftfont_list): Downcase family name to check generic
8051 families.
8052
8053 * xfaces.c (Finternal_set_lisp_face_attribute): Be sure to make a
8054 font-spec for QCfont value.
8055
8056 * fontset.c (Fnew_fontset): Call font_unparse_xlfd with 256-byte
8057 buffer. Check the return value of it.
8058
80592008-05-14 Jason Rumney <jasonr@gnu.org>
8060
8061 * w32term.c (w32_get_glyph_overhangs): Remove.
8062 (w32_redisplay_interface): Use x_get_glyph_overhangs instead.
8063
80642008-05-14 Kenichi Handa <handa@m17n.org>
8065
8066 * font.c (font_prop_validate): Make nil a valid value.
8067 (font_clear_cache): Check if the cached vector of entities is nil
8068 or not.
8069
80702008-05-14 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
8071
8072 * emacs.c (main_thread): Conditionalize on
8073 FORWARD_SIGNAL_TO_MAIN_THREAD instead of HAVE_GTK_AND_PTHREAD.
8074 (main) [FORWARD_SIGNAL_TO_MAIN_THREAD]: Initialize it.
8075
8076 * syssignal.h (FORWARD_SIGNAL_TO_MAIN_THREAD): New define.
8077 (main_thread, SIGNAL_THREAD_CHECK): Conditionalize on
8078 FORWARD_SIGNAL_TO_MAIN_THREAD instead of HAVE_GTK_AND_PTHREAD.
8079
80802008-05-14 Kenichi Handa <handa@m17n.org>
8081
8082 * coding.c (detect_coding_iso_2022): Ignore a coding category that
8083 has no corresponding coding system.
8084
80852008-05-14 Jason Rumney <jasonr@gnu.org>
8086
8087 * font.h (struct font) [WINDOWSNT]: Remove codepage member.
8088
8089 * w32font.h (w32font_open_internal): Update declaration.
8090
8091 * w32font.c (w32font_open_internal): Change last argument from
8092 w32font_info struct to font object. Fill in font object from
8093 font_entity. Get Outline metrics if possible. Use them to
8094 calculate underline position and thickness. Use xlfd name as name
8095 property. Don't set codepage.
8096 (w32font_open): Pass font_object to w32font_open_internal. Don't
8097 update dpyinfo->smallest_font_height and dpyinfo->smallest_char_width.
8098 (w32font_draw): Use s->font.
8099 (clear_cached_metrics): Don't clear non-existent blocks.
8100
8101 * w32term.c (w32_compute_glyph_string_overhangs): Don't compute if
8102 font was not found.
8103 (x_draw_glyph_string): Use underline position and thickness from font.
8104
8105 * w32uniscribe.c (uniscribe_open): Pass font_object to
8106 w32font_open_internal.
8107
81082008-05-14 Kenichi Handa <handa@m17n.org>
8109
8110 These changes are to delete all legacy font-handling codes, and
8111 make Emacs use only font-backends.
8112
8113 * Makefile.in: Delete USE_FONT_BACKEND conditionals.
8114 (frame.o, image.o, print.o): Depend on $(FONTSRC).
8115
8116 * makefile.w32-in (WIN32OBJ): Add w32reg.$(O), remove w32bdf.$(O).
8117
8118 * charset.h (Vcharset_non_preferred_head)
8119 (Vcurrent_iso639_language): Extern them.
8120
8121 * charset.c (Vcharset_non_preferred_head): New variable.
8122 (Vcurrent_iso639_language): New variable.
8123 (syms_of_charset): Declare it as a Lisp variable.
8124 (char_charset): Don't check non preferred charsets. As a last
8125 resort, return charset_unicode.
8126 (Fset_charset_priority): Update Vcharset_non_preferred_head.
8127
8128 * composite.c: Throughout the file, delete all USE_FONT_BACKEND
8129 conditionals. Don't check enable_font_backend. Delete all codes
8130 used only when USE_FONT_BACKEND is not defined.
8131
8132 * dispextern.h (struct glyph_string): Change type of `font' to
8133 `struct font *'.
8134 (struct glyph_string): New member underline_position and
8135 underline_thickness.
8136 (enum lface_attribute_index): Remove LFACE_AVGWIDTH_INDEX.
8137 (struct face): Change type of `font' to `struct font *'. Remove
8138 members `font_name', `font_info_id'.
8139 (per_char_metric, encode_char): Delete externs.
8140 (calc_pixel_width_or_height): Adjust the prototype.
8141
8142 * emacs.c (enable_font_backend): Delete extern.
8143 (main): Don't set enable_font_backend. Don't check the command
8144 line argument "-disable-font-backend".
8145
8146 * font.h (Qfont_spec, Qfont_entity, Qfont_object): Extern them.
8147 (enum font_property_index): New members FONT_DPI_INDEX,
8148 FONT_SPACING_INDEX, FONT_AVGWIDTH_INDEX, FONT_NAME_INDEX,
8149 FONT_FULLNAME_INDEX, FONT_FILE_INDEX, FONT_FORMAT_INDEX,
8150 FONT_OBJECT_MAX. Delete FONT_FRAME_INDEX.
8151 (FONT_WEIGHT_NUMERIC, FONT_SLANT_NUMERIC, FONT_WIDTH_NUMERIC)
8152 (FONT_WEIGHT_SYMBOLIC, FONT_SLANT_SYMBOLIC, FONT_WIDTH_SYMBOLIC)
8153 (FONT_WEIGHT_FOR_FACE, FONT_SLANT_FOR_FACE, FONT_WIDTH_FOR_FACE)
8154 (FONT_WEIGHT_NAME_NUMERIC, FONT_SLANT_NAME_NUMERIC)
8155 (FONT_WIDTH_NAME_NUMERIC, FONT_SET_STYLE): New macros.
8156 (struct font_spec, struct font_entity): New structs.
8157 (FONT_ENCODING_NOT_DECIDED): Moved from fontset.h.
8158 (struct font): Many members from old "struct font_info" moved to
8159 here. Members font and entity deleted.
8160 (FONT_SPEC_P, FONT_ENTITY_P, FONT_OBJECT_P, FONTP): Modified for
8161 the new font-related objects.
8162 (CHECK_FONT_SPEC, CHECK_FONT_ENTITY, CHECK_FONT_OBJECT)
8163 (CHECK_FONT_GET_OBJECT): Likewise.
8164 (XFONT_SPEC, XFONT_ENTITY, XFONT_OBJECT, XSETFONT): New macros.
8165 (PT_PER_INCH, POINT_TO_PIXEL, PIXEL_TO_POINT): Moved from font.h.
8166 (struct font_driver): New members case_sensitive anc check. Type
8167 of the member list and open changed.
8168 (enable_font_backend, font_symbolic_weight, font_symbolic_slant)
8169 (font_symbolic_width, font_find_object, font_get_spec)
8170 (font_set_lface_from_name): Delete extern.
8171 (Fcopy_font_spec, Fmerge_font_spec, Ffont_family_list): New EXFUNs.
8172
8173 * font.c: Include <strings.h>.
8174 (enable_font_backend): Delete it.
8175 (Qfont_spec, Qfont_entity, Qfont_object): New variables.
8176 (CHECK_VALIDATE_FONT_SPEC): Delete it.
8177 (PT_PER_INCH, POINT_TO_PIXEL, PIXEL_TO_POINT): Moved to font.h.
8178 (null_string): Delete it.
8179 (null_vector): Make it static.
8180 (font_family_alist): Delete it.
8181 (Qnormal): Extern it.
8182 (QCextra, QClanguage): Delete it.
8183 (QClang, QCavgwidth, QCfont_entity, QCfc_unknown_spec): New variables.
8184 (font_make_spec, font_make_entity, font_make_object)
8185 (font_intern_prop): Renamed from intern_downcase. Don't downcase
8186 the string. Callers changed.
8187 (font_pixel_size): Adjusted for the format change of font-related
8188 objects.
8189 (prop_name_to_numeric, prop_numeric_to_name): Delete them.
8190 (font_style_to_value, font_style_symbolic): New function.
8191 (build_font_family_alist): Delete it.
8192 (font_registry_charsets): Use Fassoc_string instead of
8193 assq_no_quit.
8194 (font_prop_validate_symbol): Don't return null_string.
8195 (font_prop_validate_style): Adjusted for the change of
8196 style-related values in a font vector.
8197 (font_property_table): Delete entries for QClanguage and
8198 QCantialias, add entries for QCavgwidth.
8199 (get_font_prop_index): Delete the 2nd argument FROM.
8200 (font_prop_validate): Arguments changed.
8201 (font_put_extra): Adjusted for the change of font-related objects.
8202 (font_expand_wildcards, font_parse_xlfd, font_unparse_xlfd)
8203 (font_parse_fcname, font_unparse_fcname)
8204 (font_prepare_composition): Likewise.
8205 (font_parse_family_registry): Renamed from font_merge_old_spec.
8206 (otf_open): Delete the 1st arg entity.
8207 (font_otf_capability): Adjusted for the above change.
8208 (font_score): New arg alternate_families. Adjusted for the change
8209 of font-related objects.
8210 (font_sort_entites): New arg best_only.
8211 (font_symbolic_weight, font_symbolic_slant, font_symbolic_width):
8212 Delete them.
8213 (font_match_p): Check alternate families.
8214 (font_find_object): Delete it.
8215 (font_check_object): New function.
8216 (font_clear_cache): Adjusted for the change of font-related objects.
8217 (font_delete_unmatched): New arg.
8218 (font_list_entities): Call font_driver->list with a spec that
8219 doesn't specify style-related properties.
8220 (font_matching_entity): Arguments changed. Caller changed.
8221 (font_open_entity): Adjusted for the change of font-related objects.
8222 (font_close_object, font_has_char, font_encode_char)
8223 (font_get_name, font_get_spec): Likewise.
8224 (font_spec_from_name, font_clear_prop, font_update_lface):
8225 New functions.
8226 (font_find_for_lface, font_open_for_lface, font_load_for_lface)
8227 (font_prepare_for_face, font_done_for_face, font_open_by_name)
8228 (font_at): Adjusted for the change of font-related objects.
8229 (font_range): New function.
8230 (Ffontp, Ffont_spec, Ffont_get, Ffont_put, Flist_fonts)
8231 (Ffont_xlfd_name): Adjusted for the change of font-related objects.
8232 (Fcopy_font_spec, Fmerge_font_spec): New function.
8233 (Ffont_family_list): Renamed from list-families.
8234 (Finternal_set_font_style_table): Arguments changed.
8235 (Ffont_fill_gstring, Ffont_shape_text, Fopen_font)
8236 (Ffont_drive_otf, Fquery_font, Ffont_match_p): Adjusted for the
8237 change of font-related objects.
8238 (syms_of_font): Delete "ifdef USE_FONT_BACKEND". DEFSYM new symbols.
8239
8240 * fontset.h (struct font_info): Delete it. Most members go to
8241 struct font.
8242 (FONT_ENCODING_NOT_DECIDED): Moved to font.h.
8243 (enum FONT_SPEC_INDEX): Delete it.
8244 (font_info, list_fonts_func, load_font_func, query_font_func)
8245 (set_frame_fontset_func, find_ccl_program_func)
8246 (get_font_repertory_func, new_fontset_from_font_name): Delete
8247 externs.
8248 (fontset_from_font_name): Extern it.
8249 (FS_LOAD_FONT, FONT_INFO_ID, FONT_INFO_FROM_ID)
8250 (FONT_INFO_FROM_FACE): Deleted.
8251 (face_for_font): Adjust prototype.
8252
8253 * fontset.c: Throughout the file, delete all USE_FONT_BACKEND
8254 conditionals. Don't check enable_font_backend. Delete all codes
8255 used only when USE_FONT_BACKEND is not defined.
8256 (get_font_info_func, list_font_func, load_font_func)
8257 (query_font_func, set_frame_fontset_func, find_ccl_program_func)
8258 (get_font_repertory_func): Delete them.
8259 (FONTSET_SPEC, FONT_DEF_NEW, FONT_DEF_SPEC, FONT_DEF_ENCODING)
8260 (FONT_DEF_REPERTORY, RFONT_DEF_FACE, RFONT_DEF_SET_FACE)
8261 (RFONT_DEF_FONT_DEF, RFONT_DEF_SPEC, RFONT_DEF_REPERTORY)
8262 (RFONT_DEF_OBJECT, RFONT_DEF_SET_OBJECT, RFONT_DEF_SCORE)
8263 (RFONT_DEF_SET_SCORE, RFONT_DEF_NEW): New macros.
8264 (fontset_compare_rfontdef): New function.
8265 (reorder_font_vector): Remove the argument CHARSET-ID. Sort
8266 rfont-defs by qsort. Adjusted for the change of font-group vector.
8267 (load_font_get_repertory): Deleted.
8268 (fontset_find_font): Use new macros to ref/set elements of
8269 font-def and rfont-def.
8270 (fontset_font): Fix the timing of remembering that no font for C.
8271 (free_face_fontset): Do nothing if the face has no fontset.
8272 (face_suitable_for_char_p): Use new macros to ref/set elements of
8273 rfont-def.
8274 (face_for_char): Likewise. Call face_for_char with font_object.
8275 (fs_load_font): Delete. Delete #pragma surrounding it.
8276 (fs_query_fontset): Use strcasecmp instead of strcmp.
8277 (generate_ascii_font_name): Adjusted for the format change of
8278 font-spec.
8279 (Fset_fontset_font): Likewise. Use new macros to set elements of
8280 font-def.
8281 (Fnew_fontset): Use font_unparse_xlfd to generate
8282 FONTSET_ASCII (fontset).
8283 (new_fontset_from_font_name): Deleted.
8284 (fontset_from_font): Renamed from new_fontset_from_font. Check if
8285 a fontset is already created for the font. FIx updating of
8286 Vfontset_alias_alist.
8287 (fontset_ascii_font): Deleted.
8288 (Ffont_info): Adjusted for the format change of font-spec.
8289 (Finternal_char_font): Likewise.
8290 (Ffontset_info): Likewise.
8291 (syms_of_fontset): Don't check load_font_func.
8292
8293 * fns.c (internal_equal): Handle PREV_FONT.
8294
8295 * frame.h: Delete USE_FONT_BACKEND conditional.
8296
8297 * frame.c: Throughout the file, delete all USE_FONT_BACKEND
8298 conditionals. Don't check enable_font_backend. Delete all codes
8299 used only when USE_FONT_BACKEND is not defined.
8300 (x_set_font): Call x_new_font, not x_new_fontset2.
8301 (x_set_font_backend): Use FRAME_FONT macro to check if a font is
8302 already set for the frame.
8303
8304 * ftfont.c (ftfont_pattern_entity): Argument FRAME removed. Make
8305 a font-entity by font_make_entity. Use font_intern_prop instead
8306 of intern_downcase. Use FONT_SET_STYLE to set a style-related
8307 font property. If a font is scalable, set avgwidth property to 0.
8308 Set font-entity property by font_put_extra.
8309 (ftfont_list_generic_family): Argument SPEC and REGISTRY removed.
8310 (ffont_driver): Adjusted for the change of struct font_driver.
8311 (ftfont_spec_pattern): New function.
8312 (ftfont_list): Return a list, not vector.
8313 (ftfont_match): Use ftfont_spec_pattern to get a pattern.
8314 (ftfont_list_family): Don't downcase names.
8315 (ftfont_free_entity): Deleted.
8316 (ftfont_open): Return a font-object. Adjusted for the change of
8317 struct font. Get underline_thickness and underline_position from
8318 font property. Don't update dpyinfo->smallest_font_height and
8319 dpyinfo->smallest_char_width.
8320 (ftfont_close): Don't free `struct font'.
8321 (ftfont_has_char): Adjusted for the format change of font-entity.
8322 (ftfont_encode_char, ftfont_text_extents): Likewise.
8323
8324 * ftxfont.c (ftxfont_list): Return a list, not vector.
8325 (ftxfont_open): Return a font-object. Adjusted for the change of
8326 struct font. Get underline_thickness and underline_position from
8327 font property. Don't update dpyinfo->smallest_font_height and
8328 dpyinfo->smallest_char_width.
8329 (ftxfont_close): Don't decrease FRAME_X_DISPLAY_INFO (f)->n_fonts.
8330 (ftxfont_draw): Adjusted for the change of struct font.
8331
8332 * image.c (image_ascent): Don't include "charset.h". Include
8333 "character.h" and "font.h".
8334
8335 * lisp.h (enum pvec_type): New member PREV_FONT.
8336 (Fassoc_string): EXFUN it.
8337
8338 * print.c: Include font.h.
8339 (print_object): Handle font-related objects.
8340
8341 * xdisp.c: Throughout the file, delete all USE_FONT_BACKEND
8342 conditionals. Don't check enable_font_backend. Delete all codes
8343 used only when USE_FONT_BACKEND is not defined.
8344 (handle_auto_composed_prop): Do nothing if it->f is not on a
8345 window system. Check how many following characters can be
8346 displayed by the same font.
8347 (calc_pixel_width_or_height): Type of the 4th arg is changed to
8348 'struct font *'.
8349 (get_char_face_and_encoding): Assign the whole encoding task to
8350 the `encode-char' method of a font driver.
8351 (fill_composite_glyph_string): Adjusted for the change of `struct
8352 face' and `struct glyph_string'.
8353 (fill_glyph_string): Likewise.
8354 (get_per_char_metric): Arguments changed.
8355 (x_get_glyph_overhangs): Adjusted for the change of `struct face'
8356 and `struct glyph_string'.
8357 (produce_stretch_glyph, calc_line_height_property)
8358 (x_produce_glyphs): Likewise.
8359
8360 * xfaces.c: Throughout the file, delete all USE_FONT_BACKEND
8361 conditionals. Don't check enable_font_backend. Delete all codes
8362 used only when USE_FONT_BACKEND is not defined. Use
8363 FONT_XXX_NAME_NUMERIC instead of face_numeric_xxx.
8364 (QCfoundry, QCadstyle, QCregistry, QCspacing, QCsize, QCavgwidth)
8365 (Qp): Extern them.
8366 (clear_font_table, load_face_font, xlfd_lookup_field_contents):
8367 Deleted.
8368 (struct font_name): Deleted.
8369 (xlfd_numeric_value, xlfd_symbolic_value): Deleted.
8370 (compare_fonts_by_sort_order): New function.
8371 (xlfd_numeric_slant, xlfd_symbolic_slant, xlfd_numeric_weight)
8372 (xlfd_symbolic_weight, xlfd_numeric_swidth, xlfd_symbolic_swidth):
8373 Deleted.
8374 (Fx_family_fonts): Use font_list_entities, and sort fonts by
8375 compare_fonts_by_sort_order.
8376 (Fx_font_family_list): Call Ffont_family_list.
8377 (face_numeric_value, face_numeric_weight, face_numeric_slant)
8378 (face_numeric_swidth, face_symbolic_value, face_symbolic_weight)
8379 (face_symbolic_slant, face_symbolic_swidth)
8380 (split_font_name_into_vector, build_font_name_from_vector)
8381 (xlfd_fixed_p, xlfd_point_size, pixel_point_size)
8382 (font_rescale_ratio, split_font_name, build_font_name)
8383 (free_font_names, sort_fonts, x_face_list_fonts)
8384 (face_font_available_p, sorted_font_list, cmp_font_names)
8385 (font_list_1, concat_font_list, font_list, remove_duplicates):
8386 Deleted.
8387 (Fx_list_fonts): Use Ffont_list.
8388 (LFACE_AVGWIDTH): Deleted.
8389 (check_lface_attrs): Don't check LFACE_AVGWIDTH. Check LFACE_FONT
8390 by FONTP.
8391 (lface_fully_specified_p): Don't check LFACE_AVGWIDTH.
8392 (set_lface_from_font_name): Delete it.
8393 (set_lface_from_font): Renamed from
8394 set_lface_from_font_and_fontset. Caller changed. Don't set
8395 LFACE_AVGWIDTH. Use FONT_XXX_FOR_FACE to get a symbol suitable
8396 for face.
8397 (merge_face_vectors): Copy font-spec if necessary.
8398 Clear properties of the font-spec if necessary.
8399 (merge_face_ref): Clear properties of the font-spec if necessary.
8400 (Finternal_set_lisp_face_attribute): Likewise.
8401 (set_font_frame_param): Use font_load_for_lface to load a
8402 font-object, and call Fmodify_frame_parameters with it.
8403 (x_update_menu_appearance): Don't check LFACE_AVGWIDTH. Get XLFD
8404 font name by Ffont_xlfd_name.
8405 (Finternal_lisp_face_attribute_values): Don't check QCweight,
8406 QCslant, and QCwidth.
8407 (Fface_font): Get a font name from font->props[FONT_NAME_INDEX].
8408 (lface_same_font_attributes_p): Don't check LFACE_AVGWIDTH.
8409 Compare fonts by EQ.
8410 (lookup_non_ascii_face): Deleted.
8411 (face_for_font): The 2nd argument changed.
8412 (x_supports_face_attributes_p): Don't check LFACE_AVGWIDTH.
8413 Check atomic font properties by case insensitive.
8414 (realize_non_ascii_face): Set face->overstrike correctly.
8415 (realize_x_face): Likewise. Check if LFACE_FONT is a font_object.
8416 (dump_realized_face): Get font name from
8417 font->props[FONT_NAME_INDEX]. Don't print font_info_id.
8418
8419 * xfns.c: Throughout the file, delete all USE_FONT_BACKEND
8420 conditionals. Don't check enable_font_backend. Delete all codes
8421 used only when USE_FONT_BACKEND is not defined.
8422 (xic_create_xfontset): Original code deleted and renamed from
8423 xic_create_xfontset2. Use FRAME_FONT, not FRAME_FONT_OBJECT.
8424 (x_make_gc): Don't set GCFont in GCs.
8425 (Fx_create_frame) [USE_LUCID]: Set xlwmenu_default_font to a font
8426 opened by "fixed".
8427 (syms_of_xfns): Don't set get_font_info_func, load_font_func,
8428 find_ccl_program_func, query_font_func, set_frame_fontset_func,
8429 get_font_repertory_func.
8430
8431 * xfont.c: Include <stdlib.h> and "ccl.h".
8432 (struct xfont_info): New structure.
8433 (xfont_query_font): Deleted.
8434 (xfont_find_ccl_program): Renamed from x_find_ccl_program and
8435 moved from xterm.c.
8436 (xfont_driver): Adjusted for the change of struct font_driver.
8437 (compare_font_names): New function.
8438 (xfont_list_pattern): Sort font names case insensitively. Make
8439 font_entity by calling font_make_entity. Avoid auto-scaled fonts.
8440 (xfont_list): Return a list, not vector.
8441 (xfont_match): If the font doesn't have QCname property, generate
8442 a name from the other font properties.
8443 (xfont_open): Return a font-object. Adjusted for the change of
8444 struct font. Get underline_thickness and underline_position from
8445 font property. Don't update dpyinfo->smallest_font_height and
8446 dpyinfo->smallest_char_width.
8447 (xfont_close): Don't free struct font.
8448 (xfont_prepare_face): Adjusted for the change of struct font.
8449 (xfont_done_face): Deleted.
8450 (xfont_has_char): Adjusted for the change of struct font.
8451 (xfont_encode_char, xfont_draw): Likewise.
8452 (xfont_check): New function.
8453
8454 * xftfont.c (xftfont_list): Adjusted for the change of `list'
8455 callback function.
8456 (xftfont_match): Adjusted for the format change of font-entity.
8457 (xftfont_open): Adjusted for the format change of font-entity and
8458 font-object. Adjusted for the change of struct font. Return a
8459 font-object. Don't update dpyinfo->smallest_font_height and
8460 dpyinfo->smallest_char_width.
8461 (xftfont_close): Block input while calling XftFontClose.
8462 (xftfont_prepare_face): Don't block input while calling
8463 xftfont_get_colors. Adjusted for the change of struct font.
8464 (xftfont_shape): Return value of error case fixed.
8465
8466 * xrdb.c (x_load_resources): Don't setup a fontset resource.
8467
8468 * xterm.h: Throughout the file, delete all USE_FONT_BACKEND
8469 conditionals.
8470 (FONT_WIDTH): Return (f)->max_width.
8471 (struct x_display_info): Delete member `font'.
8472 (x_list_fonts, x_get_font_info, x_load_font, x_query_font)
8473 (x_find_ccl_program, x_get_font_repertory): Delete externs.
8474 (struct x_output): Change type of `font' to `struct font *'.
8475
8476 * xterm.c: Throughout the file, delete all USE_FONT_BACKEND
8477 conditionals. Don't check enable_font_backend. Delete all codes
8478 used only when USE_FONT_BACKEND is not defined. Don't include ccl.h.
8479 (x_per_char_metric, x_encode_char): Deleted.
8480 (x_set_cursor_gc, x_set_mouse_face_gc): Don't set GCFont.
8481 (x_compute_glyph_string_overhangs): Adjusted for the change of
8482 `struct face'.
8483 (x_draw_glyph_string_foreground)
8484 (x_draw_composite_glyph_string_foreground): Likewise.
8485 (x_draw_glyph_string): Likewise. Use font->underline_position and
8486 font->underline_thickness.
8487 (x_new_font): Renamed from x_new_fontset2.
8488 (x_new_fontset, x_get_font_info, x_list_fonts): Deleted.
8489 (x_check_font): Call `check' method of a font driver.
8490 (x_font_min_bounds, x_compute_min_glyph_bounds, x_load_font)
8491 (x_query_font, x_get_font_repertory): Deleted.
8492 (x_find_ccl_program): Renamed and moved to xfont.c.
8493 (x_redisplay_interface): Adjusted for the change of `struct
8494 redisplay_interface'.
8495
8496 * w32fns.c: Throughout the file, delete all USE_FONT_BACKEND
8497 conditionals. Don't check enable_font_backend. Delete all codes
8498 used only when USE_FONT_BACKEND is not defined. Surround non-used
8499 code by "#ifdef OLD_FONT" and "endif".
8500 (Fw32_select_font): Use FONT_COMPAT to get old font structure.
8501
8502 * w32font.h (struct w32font_info): New member.
8503 (FONT_COMPAT): New macro.
8504 (w32font_open_internal): Prototype adjusted.
8505
8506 * w32gui.h (XGCValues): Surround `XFontStruct *font' by "if
8507 OLD_FONT" and "endif".
8508
8509 * w32font.c: Throughout the file, delete all USE_FONT_BACKEND
8510 conditionals. Don't check enable_font_backend. Delete all codes
8511 used only when USE_FONT_BACKEND is not defined.
8512 (w32font_open): Return a font-object. Make a font-object by
8513 font_make_object. Adjusted for the change of struct w32font_info.
8514 (w32font_close): Don't free struct font. Adjusted for the change
8515 of struct w32font_info.
8516 (w32font_encode_char, w32font_text_extents, w32font_draw):
8517 Adjusted for the change of struct w32font_info.
8518 (w32font_draw): Likewise.
8519 (w32font_list_internal): Return a list, not vector.
8520 (w32font_open_internal): Change the 4th arg to font-object.
8521 Adjusted for the change of struct w32font_info and font-object format.
8522 (add_font_name_to_list): Don't downcase names.
8523 (w32_enumfont_pattern_entity): Make a font-entity by
8524 font_make_entity. Adjusted for the format change of font-entity.
8525 Use FONT_SET_STYLE to set a style-related font property. If a
8526 font is scalable, set avgwidth property to 0. Set font-entity
8527 property by font_put_extra.
8528 (font_matches_spec): Adjusted for the format change of font-entity.
8529 (w32_weight_table, w32_decode_weight): New variables.
8530 (w32_encode_weight): New function.
8531 (fill_in_logfont): Adjusted for the format change of font-spec.
8532 (w32font_full_name): Use FONT_WEIGHT_SYMBOLIC to get a symbol
8533 weight value.
8534 (w32font_driver): Adjusted for the change of struct font_driver.
8535
8536 * w32term.h: Throughout the file, delete all USE_FONT_BACKEND
8537 conditionals. Don't check enable_font_backend. Surround non-used
8538 code by "#ifdef OLD_FONT" and "endif".
8539 (FONT_WIDTH, FONT_HEIGHT, FONT_BASE, FONT_DESCENT)
8540 (FONT_AVG_WIDTH): Adjusted for the change of struct font.
8541
8542 * w32term.c: Throughout the file, delete all USE_FONT_BACKEND
8543 conditionals. Don't check enable_font_backend. Delete all codes
8544 used only when USE_FONT_BACKEND is not defined. Surround non-used
8545 code by "#ifdef OLD_FONT" and "endif".
8546
8547 * w32uniscribe.c: Delete USE_FONT_BACKEND conditional.
8548 (uniscribe_open): Return value changed to font-object.
8549 Adjusted for the format change of font-object.
8550 (uniscribe_otf_capability): Adjusted for the change of struct font.
8551 (add_opentype_font_name_to_list): Don't downcase names.
8552 (uniscribe_font_driver): Adjusted for the change of struct
8553 font_driver.
8554
85552008-05-13 Chong Yidong <cyd@stupidchicken.com>
8556
8557 * dispnew.c (update_frame_1): Check if tty output is still valid
8558 before flushing it.
8559
85602008-05-13 Jan Djärv <jan.h.d@swipnet.se>
8561
8562 * xterm.c (handle_one_xevent): Don't pass buttons higher than 3
8563 to Gtk+ menus.
8564
85652008-05-13 Stefan Monnier <monnier@iro.umontreal.ca>
8566
8567 * dired.c (file_name_completion): Tweak the code so as to always do it
8568 in a single pass. Tighten the scope of some variables.
8569
8570 * dired.c (Qdefault_directory): New var.
8571 (file_name_completion): Use it instead of Fexpand_file_name.
8572 (syms_of_dired): Initialize it.
8573
85742008-05-12 Stefan Monnier <monnier@iro.umontreal.ca>
8575
8576 * fileio.c (double_dollars): Remove dead code.
8577
85782008-05-10 Eli Zaretskii <eliz@gnu.org>
8579
8580 * dired.c (Ffile_attributes, Fdirectory_files_and_attributes):
8581 Mention w32-get-true-file-attributes in doc string.
8582
8583 * w32proc.c (syms_of_ntproc) <w32-get-true-file-attributes>: Doc fix.
8584
85852008-05-09 Glenn Morris <rgm@gnu.org>
8586
8587 * fileio.c (Fread_file_name): Remove reference to insdef, deleted
8588 2008-04-23.
8589
85902008-05-09 Eli Zaretskii <eliz@gnu.org>
8591
8592 Support for reporting owner and group of each file on MS-Windows:
8593 * dired.c (stat_uname, stat_gname): New functions, with special
8594 implementation for w32.
8595 (Ffile_attributes): Use them instead of getpwuid and getgrgid.
8596
8597 * w32.c: Rename the_passwd_* to dflt_passwd_*.
8598 (dflt_group_name): New static variable.
8599 (dflt_group): Rename from the_group.
8600 (init_user_info): Init dflt_group fields. Get user's group name
8601 from LookupAccountSid.
8602 (g_b_init_get_file_security, g_b_init_get_security_descriptor_owner)
8603 (g_b_init_get_security_descriptor_group, g_b_init_is_valid_sid):
8604 New initialization states.
8605 (globals_of_w32): Initialize them to zero. Initialize the default
8606 group name to "None".
8607 (GetFileSecurity_Name): New global var, the name of the function
8608 to call for GetFileSecurity.
8609 (GetFileSecurity_Proc, GetSecurityDescriptorOwner_Proc)
8610 (GetSecurityDescriptorGroup_Proc, IsValidSid_Proc): New typedefs.
8611 (get_file_security, get_security_descriptor_owner)
8612 (get_security_descriptor_group, is_valid_sid)
8613 (get_file_security_desc, get_rid, get_name_and_id)
8614 (get_file_owner_and_group): New functions.
8615 (stat): Use get_file_security_desc and get_file_owner_and_group to
8616 report the owner and primary group of each file. Don't ignore the
8617 high 32 bits of file's size, now that st_size is 64-bit wide.
8618 Fix test when to get true file attributes.
8619 (init_user_info): Use get_rid instead of equivalent inline code.
8620 (fstat): Don't ignore the high 32 bits of file's size.
8621
86222008-05-09 Chong Yidong <cyd@stupidchicken.com>
8623
8624 * image.c (png_load): Use correct bit-depth for setting background
8625 color.
8626
86272008-05-08 Eli Zaretskii <eliz@gnu.org>
8628
8629 * Makefile.in (lisp, shortlisp): Rename epa-file-hook.elc to
8630 epa-hook.elc.
8631
86322008-05-08 Juanma Barranquero <lekktu@gmail.com>
8633
8634 * font.c (Ffont_match_p): Don't use `iff' in docstring.
8635
86362008-05-07 Dan Nicolaescu <dann@ics.uci.edu>
8637
8638 * macfns.c (Fx_create_frame): Make a copy of frame parameters
8639 because the original parameters are in pure storage now.
8640 (mac_window): Remove unused params. Update callers.
8641
86422008-05-06 Stefan Monnier <monnier@iro.umontreal.ca>
8643
8644 * lread.c (substitute_object_recurse): Use lower-level primitives.
8645 Don't signal errors when traversing sub-char-tables.
8646 Don't loop over all the possible characters when traversing char-tables.
8647
8648 * print.c (print_preprocess): Add sub-char-tables to the print-table,
8649 just like we do in print.c.
8650
86512008-05-05 Stefan Monnier <monnier@iro.umontreal.ca>
8652
8653 * minibuf.c (Ftry_completion): Remove code left over from when we used
8654 scmp instead of Fcompare_strings.
8655
86562008-05-04 Juanma Barranquero <lekktu@gmail.com>
8657
8658 * w32fns.c (Fw32_battery_status): Fix computation of %t (h:min) format.
8659
86602008-05-04 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
8661
8662 * image.c [USE_MAC_IMAGE_IO] (image_load_image_io):
8663 Create bitmap context in native byte order.
8664
8665 * macterm.c (XDrawLine)
8666 (XCreatePixmapFromBitmapData) [USE_MAC_IMAGE_IO]: Create bitmap
8667 context in native byte order.
8668
86692008-05-04 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
8670
8671 * config.in: Regenerate.
8672
8673 * image.c (PIX_MASK_DRAW, PIX_MASK_RETAIN) [USE_MAC_IMAGE_IO]:
8674 New definitions for Image I/O support.
8675 (XGetImage, XPutPixel, XGetPixel, XDestroyImage)
8676 (mac_create_cg_image_from_image, x_create_x_image_and_pixmap)
8677 [USE_MAC_IMAGE_IO]: Add implementations for Image I/O support.
8678 (mac_data_provider_release_data, image_load_image_io)
8679 [USE_MAC_IMAGE_IO]: New functions.
8680 (CGImageCreateWithPNGDataProviderProcType) [MAC_OSX]: Remove typedef.
8681 (MyCGImageCreateWithPNGDataProvider) [MAC_OSX]: Remove variable.
8682 (init_image_func_pointer) [MAC_OSX]: Remove function.
8683 (image_load_quartz2d) [MAC_OSX]: Check availability of
8684 CGImageCreateWithPNGDataProvider at compile time.
8685 Use lowercase `false' for boolean constant.
8686 (png_load, jpeg_load, tiff_load, gif_load) [USE_MAC_IMAGE_IO]:
8687 Use image_load_image_io.
8688 (png_load) [!USE_MAC_IMAGE_IO && MAC_OSX]:
8689 Don't check MyCGImageCreateWithPNGDataProvider.
8690 (init_image) [MAC_OSX && TARGET_API_MAC_CARBON]:
8691 Don't call init_image_func_pointer.
8692
8693 * macgui.h (Pixmap) [USE_MAC_IMAGE_IO]: New definition for Image I/O.
8694
8695 * macterm.c (mac_cg_color_space_rgb) [USE_CG_DRAWING]:
8696 Make variable non-static.
8697 (XDrawLine, XCreatePixmap, XCreatePixmapFromBitmapData, XFreePixmap)
8698 [USE_MAC_IMAGE_IO]: Add implementations for Image I/O support.
8699
8700 * macterm.h (ARGB_TO_ULONG, ALPHA_FROM_ULONG): New macros.
8701 (RED_FROM_ULONG): Mask off higher bits.
8702 (mac_cg_color_space_rgb) [USE_MAC_IMAGE_IO]: New extern.
8703
8704 * s/darwin.h [HAVE_CARBON && HAVE_AVAILABILITYMACROS_H]:
8705 Include AvailabilityMacros.h.
8706 (USE_MAC_IMAGE_IO, LIBS_IMAGE) [HAVE_CARBON]: New defines.
8707 (LIBS_CARBON) [HAVE_CARBON]: Use LIBS_IMAGE.
8708
87092008-05-03 Stefan Monnier <monnier@iro.umontreal.ca>
8710
8711 * chartab.c (Fset_char_table_range): If range is t, really set all
8712 chars to that value.
8713
87142008-05-03 Eli Zaretskii <eliz@gnu.org>
8715
8716 * dired.c (Ffile_attributes): Don't allow the device number become
8717 negative.
8718
87192008-05-02 Daiki Ueno <ueno@unixuser.org>
8720
8721 * Makefile.in (lisp, shortlisp): Add epa-file-hook.elc.
8722
87232008-05-02 Juri Linkov <juri@jurta.org>
8724
8725 * minibuf.c (Fread_from_minibuffer, Fread_string, Fread_command)
8726 (Fread_variable, Fread_buffer, Fcompleting_read): Document the
8727 DEFAULT argument as a list of default values in docstrings.
8728
87292008-05-01 Chong Yidong <cyd@stupidchicken.com>
8730
8731 * puresize.h (BASE_PURESIZE): Increase to 1210000.
8732
87332008-05-01 Martin Rudalics <rudalics@gmx.at>
8734
8735 * dispnew.c (change_frame_size_1): Preserve small windows when
8736 shrinking frames by calling set_window_height|width with third
8737 arg 2.
8738
8739 * window.h (struct window): Replace field too_small_ok by field
8740 resize_proportionally.
8741
8742 * window.c (make_window): Initialize resize_proportionally.
8743 (enlarge_window): Temporarily set resize_proportionally to make
8744 sure that shrink_windows does scale the window proportionally.
8745 (shrink_windows): When window has resize_proportionally set try
8746 to shrink it proportionally by stealing from other windows.
8747 (struct saved_window, Fset_window_configuration)
8748 (compare_window_configurations): Handle resize_proportionally.
8749 (WINDOW_TOTAL_SIZE): New macro.
8750 (window_min_size, shrink_windows, size_window): Use it.
8751 (check_min_window_sizes): Remove. Invalid values of
8752 window-min-height|width are handled by window_min_size_2 now.
8753 (size_window, Fsplit_window, enlarge_window)
8754 (adjust_window_trailing_edge, grow_mini_window): Don't call
8755 check_min_window_sizes.
8756 (window_min_size_2, window_min_size_1, window_min_size):
8757 New argument safe_p for retrieving "safe" minimum sizes.
8758 (Fdisplay_buffer, Fsplit_window, enlarge_window)
8759 (adjust_window_trailing_edge, grow_mini_window):
8760 Adjust arguments of window_min_size... functions.
8761 (shrink_windows): Argument min_size removed. New argument
8762 safe_p allows shrinking windows to their safe minimum sizes.
8763 Calculate minimum size and decide whether a window shall be
8764 deleted for each window individually.
8765 (size_window): When nodelete_p equals 2, tell shrink_windows to
8766 delete windows only if their new minimum size is no more safe.
8767 (shrink_window_lowest_first): Call window_min_size_1 to make
8768 sure to preserve modeline of bottom-most window when resizing
8769 the minibuffer.
8770 (Fset_window_configuration, Fcurrent_window_configuration)
8771 (compare_window_configurations): Do not handle
8772 window-min-height|width any more.
8773 (syms_of_window): Clarify window-min-height|width doc-strings.
8774
87752008-04-30 Stefan Monnier <monnier@iro.umontreal.ca>
8776
8777 * dired.c (file_name_completion): Fix up the encoding/decoding issue
8778 some more. Copy some of the code from Ftry_completions.
8779 Remove special case code that dates back to initial revision when the
8780 slash was only added when necessary and that can't trigger nowadays.
8781
87822008-04-27 Kenichi Handa <handa@m17n.org>
8783
8784 * font.c (font_prop_validate): Signal `error' instead of `font'.
8785
87862008-04-29 Jason Rumney <jasonr@gnu.org>
8787
8788 * w32fns.c (Fw32_battery_status): New defun.
8789 (syms_of_w32fns): Defsubr it.
8790
87912008-04-28 Andreas Schwab <schwab@suse.de>
8792
8793 * dired.c (file_name_completion): Fix another mixing of encoded
8794 and decoded names.
8795
87962008-04-28 Juanma Barranquero <lekktu@gmail.com>
8797
8798 * w32fns.c (Fw32_define_rgb_color): Fix typo in docstring.
8799
88002008-04-27 Juanma Barranquero <lekktu@gmail.com>
8801
8802 * fringe.c (Fdefine_fringe_bitmap): Doc fix.
8803
88042008-04-27 Andreas Schwab <schwab@suse.de>
8805
8806 * dired.c (file_name_completion): Fix inappropriate mixing of
8807 encoded and decoded names.
8808
8809 * xterm.c (XTread_socket): Fix use of uninitialized variable.
8810
8811 * puresize.h (BASE_PURESIZE): Increase to 1200000.
8812
88132008-04-26 Eli Zaretskii <eliz@gnu.org>
8814
8815 * dired.c (Ffile_attributes) [WINDOWSNT]: Undo change from
8816 2008-03-31, it's not needed anymore with `struct stat' definition
8817 on nt/inc/sys/stat.h. Undo changes from 2007-01-12 and 2007-01-13
8818 for the same reasons.
8819
88202008-04-25 Dennis Gilmore <ausil@fedoraproject.org> (tiny change)
8821
8822 * m/sparc.h: Additional redefinitions for GNU/Linux.
8823
88242008-04-23 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
8825
8826 * macterm.c (Vmac_ts_active_input_buf) [USE_MAC_TSM]: New variable.
8827 (syms_of_macterm) [USE_MAC_TSM]: Defvar it.
8828 (Qmouse_drag_overlay) [MAC_OSX]: New variable.
8829 (syms_of_macterm) [MAC_OSX]: Intern and staticpro it.
8830 (mac_get_selected_range, mac_store_buffer_text_to_unicode_chars)
8831 (mac_ax_selected_text_range) [MAC_OSX]: New functions.
8832 (mac_ax_number_of_characters) [MAC_OS_X_VERSION_MAX_ALLOWED >= 1030]:
8833 Likewise.
8834
8835 * mactoolbox.c (Vmac_ts_active_input_buf) [USE_MAC_TSM]: Add extern.
8836 (fast_find_position, x_y_to_hpos_vpos, mac_ax_selected_text_range)
8837 (mac_ax_number_of_characters): Add externs.
8838 (mac_get_selected_range, mac_store_buffer_text_to_unicode_chars)
8839 [USE_MAC_TSM]: Likewise.
8840 (mac_handle_text_input_event) [MAC_OSX]:
8841 Handle kEventTextInputOffsetToPos for no active input area case.
8842 Handle kEventTextInputPosToOffset and kEventTextInputGetSelectedText.
8843 (mac_handle_document_access_event)
8844 [MAC_OS_X_VERSION_MAX_ALLOWED >= 1030]: New function.
8845 (install_application_handler) [MAC_OSX]: Register handlers for
8846 kEventTextInputPosToOffset and kEventTextInputGetSelectedText.
8847 (install_application_handler) [MAC_OS_X_VERSION_MAX_ALLOWED >= 1030]:
8848 Register mac_handle_document_access_event.
8849
8850 * xdisp.c (x_y_to_hpos_vpos, fast_find_position) [HAVE_CARBON]:
8851 Make functions non-static.
8852
88532008-04-23 Stefan Monnier <monnier@iro.umontreal.ca>
8854
8855 * fileio.c (Vread_file_name_function, Vread_file_name_predicate)
8856 (read_file_name_completion_ignore_case, insert_default_directory)
8857 (Qdefault_directory): Move to minibuffer.el.
8858 (Fread_file_name): Call the new `read-file-name' instead.
8859
88602008-04-23 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
8861
8862 * mac.c (create_apple_event) [TARGET_API_MAC_CARBON]:
8863 Make function non-static.
8864 (create_apple_event_from_event_ref) [TARGET_API_MAC_CARBON]:
8865 Remove function.
8866 (create_apple_event_from_drag_ref) [TARGET_API_MAC_CARBON]:
8867 Move to mactoolbox.c.
8868 (mac_event_parameters_to_lisp) [TARGET_API_MAC_CARBON]: New function.
8869
8870 * macgui.h (CGFloat) [!CGFLOAT_DEFINED]: New typedef.
8871 (mac_rect_make): New macro.
8872
8873 * macterm.c (mac_draw_image_string_atsui) [MAC_OSX]: Use CGFloat
8874 instead of float.
8875 (mac_draw_image_string_cg) [USE_CG_TEXT_DRAWING]: Likewise.
8876 (init_cg_color, mac_draw_line, mac_draw_cg_image, XSetForeground)
8877 (XSetBackground) [USE_CG_DRAWING]: Likewise.
8878 (mac_draw_image_string_atsui) [MAC_OSX]: Use mac_rect_make instead of
8879 CGRectMake.
8880 (mac_draw_image_string_cg) [USE_CG_TEXT_DRAWING]: Likewise.
8881 (mac_erase_rectangle, mac_draw_cg_image, mac_fill_rectangle)
8882 (mac_set_clip_rectangles) [USE_CG_DRAWING]: Likewise.
8883 (XCreatePixmap, XCreatePixmapFromBitmapData): Use Window
8884 instead of WindowRef in argument type.
8885 (XCreatePixmap) [!MAC_OS8]: Don't call SetPortWindowPort.
8886 (mac_invert_rectangle): Use CGContextSetBlendMode if available.
8887 (mac_set_clip_rectangles, mac_reset_clip_rectangles): Take argument F
8888 instead of DISPLAY. All uses changed.
8889 (mac_handle_size_change): Don't call SET_FRAME_GARBAGED.
8890 (x_calc_absolute_position): Simplify so as not to use
8891 FRAME_PIXEL_WIDTH/FRAME_PIXEL_HEIGHT.
8892
8893 * macterm.h (XCreatePixmap, XCreatePixmapFromBitmapData): Use Window
8894 instead of WindowRef in argument type.
8895 (create_apple_event_from_event_ref, create_apple_event_from_drag_ref)
8896 [TARGET_API_MAC_CARBON]: Remove externs.
8897 (create_apple_event, mac_event_parameters_to_lisp)
8898 [TARGET_API_MAC_CARBON]: Add externs.
8899
8900 * mactoolbox.c (Vmac_ts_script_language_on_focus)
8901 (saved_ts_script_language_on_focus) [USE_MAC_TSM]: Remove externs.
8902 (XTread_socket) [USE_MAC_TOOLBAR]: Select window if its structure part
8903 is clicked.
8904 (x_activate_menubar): Remove extern for saved_menu_event_location.
8905 (create_apple_event_from_drag_ref) [TARGET_API_MAC_CARBON]:
8906 Move from mac.c.
8907
89082008-04-23 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
8909
8910 * alloc.c [!SYSTEM_MALLOC && !SYNC_INPUT] (uninterrupt_malloc)
8911 [HAVE_GTK_AND_PTHREAD && !DOUG_LEA_MALLOC]: Don't use recursive mutex.
8912
89132008-04-23 Jason Rumney <jasonr@gnu.org>
8914
8915 * w32.c (stat): When Vw32_get_true_file_attributes is Qlocal, get
8916 attributes only for local files.
8917
8918 * w32proc.c (syms_of_ntproc): Change Vw32_get_true_file attributes
8919 default to Qlocal.
8920
89212008-04-22 Juri Linkov <juri@jurta.org>
8922
8923 * buffer.c (Fswitch_to_buffer): Change interactive spec to call
8924 read-buffer-to-switch instead of using the letter "B".
8925
89262008-04-21 Stefan Monnier <monnier@iro.umontreal.ca>
8927
8928 * fileio.c (Qdefault_directory): New variable.
8929 (Fread_file_name): Use it to pass `dir' to the completion functions.
8930
89312008-04-20 Chong Yidong <cyd@stupidchicken.com>
8932
8933 * xdisp.c (pos_visible_p): Check if iterator stops on a display string.
8934
89352008-04-19 Stefan Monnier <monnier@iro.umontreal.ca>
8936
8937 * keyboard.c (Vpre_help_message): Remove.
8938 (show_help_echo): Remove default C code.
8939
8940 * dired.c (directory_files_internal, file_name_completion):
8941 Only call ENCODE_FILE if the string is indeed decoded.
8942
89432008-04-18 Stefan Monnier <monnier@iro.umontreal.ca>
8944
8945 * Makefile.in (TOOLKIT_DEFINES): Remove.
8946 (LIBW): Use a bit less #if, remove left over OPEN_LOOK stuff.
8947
89482008-04-18 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
8949
8950 * Makefile.in (MAC_OBJ): Add mactoolbox.o.
8951 (mactoolbox.o): New target.
8952
8953 * mac.c [MAC_OSX] (select_and_poll_event, sys_select):
8954 Use mac_run_loop_run_once instead of CFRunLoopRunInMode.
8955
8956 * macfns.c (x_set_background_color, mac_window, x_create_tip_frame):
8957 Use mac_set_frame_window_background instead of XSetWindowBackground.
8958 (x_set_tool_bar_lines) [USE_MAC_TOOLBAR]:
8959 Use mac_is_window_toolbar_visible instead of IsWindowToolbarVisible.
8960 (x_set_name_internal) [TARGET_API_MAC_CARBON]: Use mac_set_window_title
8961 instead of SetWindowTitleWithCFString.
8962 (mac_update_proxy_icon) [TARGET_API_MAC_CARBON]: Remove BLOCK_INPUT.
8963 Move function to mactoolbox.c.
8964 (mac_update_title_bar) [TARGET_API_MAC_CARBON]:
8965 Use mac_set_window_modified instead of SetWindowModified.
8966 Add BLOCK_INPUT around mac_set_window_modified/mac_update_proxy_icon.
8967 (mac_window, x_create_tip_frame): Use mac_create_frame_window.
8968 (Fx_focus_frame): Use mac_front_non_floating_window instead of
8969 FrontNonFloatingWindow. Use mac_activate_window instead of
8970 ActivateWindow. Use mac_active_non_floating_window instead of
8971 ActiveNonFloatingWindow.
8972 (show_hourglass, hide_hourglass) [TARGET_API_MAC_CARBON]:
8973 Use mac_show_hourglass and mac_hide_hourglass.
8974 (compute_tip_xy) [TARGET_API_MAC_CARBON]: Use mac_get_global_mouse
8975 instead of GetGlobalMouse.
8976 (Fx_show_tip): Use mac_move_window/mac_size_window/mac_show_window
8977 instead of MoveWindow/SizeWindow/ShowWindow, respectively.
8978 Use mac_bring_window_to_front instead of BringToFront.
8979 (Qfile_name_history) [TARGET_API_MAC_CARBON]: Move extern to
8980 mactoolbox.c.
8981 (Fx_file_dialog) [TARGET_API_MAC_CARBON]: Move function body to
8982 mac_file_dialog in mactoolbox.c. Use mac_file_dialog.
8983 (mac_nav_event_callback) [TARGET_API_MAC_CARBON]: Move function to
8984 mactoolbox.c.
8985
8986 * macgui.h [!HAVE_CARBON]: Include Quickdraw.h instead of QuickDraw.h.
8987 (XtPointer): Move typedef from macmenu.c.
8988 (enum button_type): Move enum from macmenu.c.
8989 (widget_value): Move typedef from macmenu.c.
8990 (M_APPLE, I_ABOUT, EXTRA_STACK_ALLOC, ARGV_STRING_LIST_ID)
8991 (DIALOG_LEFT_MARGIN, DIALOG_TOP_MARGIN, DIALOG_RIGHT_MARGIN)
8992 (DIALOG_BOTTOM_MARGIN, DIALOG_MIN_INNER_WIDTH, DIALOG_MAX_INNER_WIDTH)
8993 (DIALOG_BUTTON_BUTTON_HORIZONTAL_SPACE)
8994 (DIALOG_BUTTON_BUTTON_VERTICAL_SPACE, DIALOG_BUTTON_MIN_WIDTH)
8995 (DIALOG_TEXT_MIN_HEIGHT, DIALOG_TEXT_BUTTONS_VERTICAL_SPACE)
8996 (DIALOG_ICON_WIDTH, DIALOG_ICON_HEIGHT, DIALOG_ICON_LEFT_MARGIN)
8997 (DIALOG_ICON_TOP_MARGIN): Move defines from macmenu.c.
8998 (Selection): Move typedef from macselect.c.
8999 (RAM_TOO_LARGE_ALERT_ID, ABOUT_ALERT_ID) [MAC_OS8]: Move defines from
9000 macterm.c.
9001 (mac_set_window_title, mac_set_window_modified, mac_is_window_visible)
9002 (mac_is_window_collapsed, mac_bring_window_to_front)
9003 (mac_send_window_behind, mac_hide_window, mac_show_window)
9004 (mac_collapse_window, mac_front_non_floating_window)
9005 (mac_active_non_floating_window, mac_activate_window)
9006 (mac_move_window_structure, mac_move_window, mac_size_window)
9007 (mac_get_global_mouse, mac_is_window_toolbar_visible): New defines.
9008
9009 * macmenu.c [!TARGET_API_MAC_CARBON]: Move includes to mactoolbox.c.
9010 (enum mac_menu_kind): Move enum to mactoolbox.c.
9011 (min_menu_id): Move variable to mactoolbox.c.
9012 (quit_dialog_event_loop) [TARGET_API_MAC_CARBON]: Likewise.
9013 (DIALOG_WINDOW_RESOURCE): Move define to mactoolbox.c.
9014 (DIALOG_BUTTON_COMMAND_ID_OFFSET, DIALOG_BUTTON_COMMAND_ID_P)
9015 (DIALOG_BUTTON_COMMAND_ID_VALUE, DIALOG_BUTTON_MAKE_COMMAND_ID)
9016 [TARGET_API_MAC_CARBON]: Likewise.
9017 (XtPointer): Move typedef to macgui.h.
9018 (enum button_type): Move enum to macgui.h.
9019 (widget_value): Move typedef to macgui.h.
9020 (DIALOG_LEFT_MARGIN, DIALOG_TOP_MARGIN, DIALOG_RIGHT_MARGIN)
9021 (DIALOG_BOTTOM_MARGIN, DIALOG_MIN_INNER_WIDTH, DIALOG_MAX_INNER_WIDTH)
9022 (DIALOG_BUTTON_BUTTON_HORIZONTAL_SPACE)
9023 (DIALOG_BUTTON_BUTTON_VERTICAL_SPACE, DIALOG_BUTTON_MIN_WIDTH)
9024 (DIALOG_TEXT_MIN_HEIGHT, DIALOG_TEXT_BUTTONS_VERTICAL_SPACE)
9025 (DIALOG_ICON_WIDTH, DIALOG_ICON_HEIGHT, DIALOG_ICON_LEFT_MARGIN)
9026 (DIALOG_ICON_TOP_MARGIN): Move defines to macgui.h.
9027 (popup_activated_flag): Make variable non-static.
9028 (x_activate_menubar, install_menu_quit_handler, pop_down_menu)
9029 (add_menu_item, fill_menu, dispose_menus):
9030 Move functions to mactoolbox.c.
9031 (restore_show_help_function, menu_target_item_handler)
9032 (install_menu_target_item_handler, mac_handle_dialog_event)
9033 (install_dialog_event_handler, pop_down_dialog, create_and_show_dialog)
9034 [TARGET_API_MAC_CARBON]: Likewise.
9035 (menu_quit_handler) [MAC_OS_X_VERSION_MAX_ALLOWED >= 1030]: Likewise.
9036 (mac_dialog) [!TARGET_API_MAC_CARBON]: Likewise.
9037 (find_and_call_menu_selection, name_is_separator): Make function
9038 non-static.
9039 (Vshow_help_function, timer_check) [TARGET_API_MAC_CARBON]: Move extern
9040 to mactoolbox.c.
9041 (set_frame_menubar): Don't call install_menu_quit_handler.
9042 (menu_item_selection): New variable.
9043 (mac_menu_show): Use create_and_show_popup_menu.
9044 (create_and_show_dialog) [TARGET_API_MAC_CARBON]: Don't return
9045 selection but set variable menu_item_selection. All uses changed.
9046 (mac_fill_menubar): Rename from fill_menubar. All uses changed.
9047 Call install_menu_quit_handler. Move to mactoolbox.c.
9048
9049 * macselect.c [!TARGET_API_MAC_CARBON]: Don't include Scrap.h.
9050 (Selection): Move typedef to macgui.h.
9051 (Vselection_converter_alist, Qmac_scrap_name, Qmac_ostype)
9052 (Vmac_apple_event_map, Qmac_apple_event_class, Qmac_apple_event_id):
9053 Make variables non-static.
9054 (Vmac_dnd_known_types) [TARGET_API_MAC_CARBON]: Likewise.
9055 (mac_handle_apple_event, cleanup_all_suspended_apple_events):
9056 Make functions non-static.
9057 (Vmac_service_selection) [MAC_OSX]: Likewise.
9058 (mac_get_selection_from_symbol, get_flavor_type_from_symbol)
9059 (mac_valid_selection_target_p, mac_clear_selection)
9060 (mac_get_selection_ownership_info, mac_valid_selection_value_p)
9061 (mac_put_selection_value, mac_selection_has_target_p)
9062 (mac_get_selection_value, mac_get_selection_target_list)
9063 (init_apple_event_handler, install_drag_handler, remove_drag_handler):
9064 Move functions to mactoolbox.c.
9065 (mac_do_track_drag, mac_do_receive_drag) [TARGET_API_MAC_CARBON]:
9066 Likewise.
9067 (copy_scrap_flavor_data, mac_handle_service_event)
9068 (install_service_handler) [MAC_OSX]: Likewise.
9069 (syms_of_macselect) <Vmac_dnd_known_types>:
9070 Use mac_dnd_default_known_types.
9071
9072 * macterm.h (FRAME_OUTER_TO_INNER_DIFF_X, FRAME_OUTER_TO_INNER_DIFF_Y):
9073 Move to mactoolbox.c.
9074 (HOURGLASS_WIDTH, HOURGLASS_HEIGHT): Change to 15.
9075 (Fx_selection_owner_p): Add EXFUN.
9076 (install_window_handler, remove_window_handler, XSetWindowBackground):
9077 Remove externs.
9078 (do_apple_menu) [!TARGET_API_MAC_CARBON]: Likewise.
9079 (mac_prepare_for_quickdraw) [USE_CG_DRAWING]: Likewise.
9080 (x_raise_frame, x_lower_frame, mac_alert_sound_play)
9081 (install_application_handler, mac_get_frame_bounds, mac_get_frame_mouse)
9082 (mac_convert_frame_point_to_global, mac_set_frame_window_background)
9083 (mac_update_begin mac_update_end, mac_frame_up_to_date, x_flush)
9084 (mac_create_frame_window, mac_dispose_frame_window, mac_begin_clip)
9085 (mac_end_clip, mac_create_scroll_bar, mac_dispose_scroll_bar)
9086 (mac_set_scroll_bar_bounds, mac_redraw_scroll_bar, mac_fill_menubar)
9087 (create_and_show_popup_menu, mac_get_selection_from_symbol)
9088 (mac_valid_selection_target_p, mac_clear_selection)
9089 (mac_get_selection_ownership_info, mac_valid_selection_value_p)
9090 (mac_put_selection_value, mac_selection_has_target_p)
9091 (mac_get_selection_value, mac_get_selection_target_list): Add externs.
9092 (mac_update_proxy_icon, mac_show_hourglass, mac_hide_hourglass)
9093 (mac_reposition_hourglass, mac_file_dialog, create_and_show_dialog)
9094 (mac_dnd_default_known_types) [TARGET_API_MAC_CARBON]: Likewise.
9095 (mac_run_loop_run_once) [MAC_OSX]: Likewise.
9096 (mac_dialog) [!TARGET_API_MAC_CARBON]: Likewise.
9097 (mac_begin_cg_clip, mac_end_cg_clip) [USE_CG_DRAWING]: Likewise.
9098 (x_set_toolkit_scroll_bar_thumb) [!USE_TOOLKIT_SCROLL_BARS]: Likewise.
9099 (x_scroll_bar_set_handle) [!USE_TOOLKIT_SCROLL_BARS]: Likewise.
9100
9101 * mactoolbox.c: New file.
9102
91032008-04-18 Jason Rumney <jasonr@gnu.org>
9104
9105 * dired.c (Ffile_attributes) [WINDOWSNT]: Cast uid and gid to unsigned.
9106
91072008-04-18 Stefan Monnier <monnier@iro.umontreal.ca>
9108
9109 * character.c (Fmultibyte_char_to_unibyte):
9110 Return latin1 chars unchanged.
9111
9112 * fileio.c (Fexpand_file_name): Refine last fix so `nm' is only
9113 relocated if it points to `name'.
9114
91152008-04-17 Kenichi Handa <handa@m17n.org>
9116
9117 * data.c (Faset): Allow setting a multibyte character in an
9118 ASCII-only unibyte string.
9119
9120 * lisp.h (STRING_SET_MULTIBYTE): New macro.
9121
91222008-04-16 Stefan Monnier <monnier@iro.umontreal.ca>
9123
9124 * Makefile.in: Don't use HAVE_GTK and don't -DUSE_GTK since it's now
9125 done in config.h.
9126
91272008-04-16 Juanma Barranquero <lekktu@gmail.com>
9128
9129 * character.c (Fchar_bytes, Fchar_width, Fstring_width)
9130 (Fchar_direction): Add usage in the docstring.
9131
91322008-04-15 Chong Yidong <cyd@stupidchicken.com>
9133
9134 * keyboard.c (read_key_sequence): Remove always-true checks.
9135
91362008-04-14 Jason Rumney <jasonr@gnu.org>
9137
9138 * w32font.c (w32font_open_internal): Set max_bounds.descent in
9139 compatibility struct, for better underline positioning.
9140
91412008-04-13 David Hansen <david.hansen@gmx.net>
9142
9143 * dbusbind.c (dbus-get-unique-name): Remove extra copying of name
9144 string.
9145
91462008-04-12 Dan Nicolaescu <dann@ics.uci.edu>
9147
9148 * m/hp800.h (XUINT, XSET): Remove.
9149
91502008-04-12 Juanma Barranquero <lekktu@gmail.com>
9151
9152 * fileio.c (Fexpand_file_name): Add declaration for `p' missing in
9153 previous change.
9154
91552008-04-12 Stefan Monnier <monnier@iro.umontreal.ca>
9156
9157 * fileio.c (Fexpand_file_name): Tighten the scope of `p' and `o' vars.
9158 Relocate `nm' after calling DECODE_FILE, in case the GC was run.
9159
91602008-04-11 Stefan Monnier <monnier@iro.umontreal.ca>
9161
9162 * keymap.h (map_keymap_canonical): Declare.
9163 * xmenu.c (single_keymap_panes): Use it.
9164
91652008-04-11 Glenn Morris <rgm@gnu.org>
9166
9167 * eval.c (Fdefvaralias): If the alias is bound and the target is not,
9168 set the target's value to that of the alias.
9169
91702008-04-11 Stefan Monnier <monnier@iro.umontreal.ca>
9171
9172 * term.c (set_tty_color_mode): Left over typo.
9173
91742008-04-10 Michael Albinus <michael.albinus@gmx.de>
9175
9176 * fileio.c (Fmake_symbolic_link): Surround code by #ifdef S_IFLNK
9177 only after check for file name handler functions. Signal, when
9178 native functionality is not supported.
9179 (syms_of_fileio): Declare it unconditionally.
9180
91812008-04-10 Jason Rumney <jasonr@gnu.org>
9182
9183 * w32menu.c (is_simple_dialog, simple_dialog_show): New functions.
9184 (Fx_popup_dialog): Handle simple yes/no questions as dialogs.
9185
9186 * w32.c (logon_network_drive): Also logon to remote drives that
9187 are mapped to drive letters.
9188
91892008-04-10 Glenn Morris <rgm@gnu.org>
9190
9191 * xdisp.c (truncate-partial-width-windows): Doc fix.
9192
91932008-04-10 Stefan Monnier <monnier@iro.umontreal.ca>
9194
9195 * fileio.c (read_file_name_cleanup, Fread_file_name_internal):
9196 Move functions to minibuffer.el.
9197 (syms_of_fileio): Don't declare them.
9198
91992008-04-09 Stefan Monnier <monnier@iro.umontreal.ca>
9200
9201 * minibuf.c (Vcompletion_auto_help): Move to minibuffer.el.
9202 (syms_of_minibuf): Remove its initialization.
9203
9204 * minibuf.c (temp_echo_area_glyphs): Remove unused function.
9205
92062008-04-09 Juanma Barranquero <lekktu@gmail.com>
9207
9208 * editfns.c (Ffield_string_no_properties): Fix typo in docstring.
9209
92102008-04-09 Jason Rumney <jasonr@gnu.org>
9211
9212 * makefile.w32-in (distclean): Delete makefile too.
9213 (maintainer-clean): New target.
9214
9215 * xdisp.c (redisplay_internal) [!WINDOWSNT]: Conditionalize last change.
9216
9217 * w32term.c (w32_compute_glyph_string_overhangs): Compute overhangs
9218 for new font backend and composite cases.
9219
92202008-04-09 Jan Djärv <jan.h.d@swipnet.se>
9221
9222 * atimer.c (alarm_signal_handler): Call run_timers if not SYNC_INPUT.
9223 Most of the code moved to run_timers.
9224 (do_pending_atimers): Call run_timers.
9225 (run_timers): New function.
9226
9227 * sysdep.c (emacs_write): If SYNC_INPUT and pending_atimers,
9228 run atimers.
9229
9230 * process.c (wait_reading_process_output): The same as above.
9231
92322008-04-09 Stefan Monnier <monnier@iro.umontreal.ca>
9233
9234 * minibuf.c (last_exact_completion): Remove variable.
9235 (Fdelete_minibuffer_contents, do_completion, Fminibuffer_complete)
9236 (complete_and_exit_1, complete_and_exit_2)
9237 (Fminibuffer_complete_and_exit, Fminibuffer_complete_word)
9238 (Fdisplay_completion_list, display_completion_list_1)
9239 (Fminibuffer_completion_help, Fself_insert_and_exit)
9240 (Fexit_minibuffer, Fminibuffer_message): Move functions to
9241 minibuffer.el.
9242 (syms_of_minibuf): Remove corresponding initializations.
9243
9244 * keyboard.c (Qdeactivate_mark): New var.
9245 (command_loop_1): Use it to call `deactivate-mark'.
9246 (syms_of_keyboard): Initialize it.
9247
9248 * xdisp.c (redisplay_internal): Reset tty's color_mode when switching
9249 to another frame.
9250 * frame.c (do_switch_frame): Refine the top_frame/async_visible code.
9251 Don't call set_tty_color_mode.
9252 (store_frame_param): Reset previous_frame rather than call
9253 set_tty_color_mode.
9254 * term.c (set_tty_color_mode): Rewrite.
9255 * dispextern.h (set_tty_color_mode): New type.
9256 * termchar.h (struct tty_display_info): Add `previous_color_mode'.
9257
92582008-04-08 Stefan Monnier <monnier@iro.umontreal.ca>
9259
9260 * keymap.c (access_keymap): Remove the value 2 for t_ok which was used
9261 for generic chars, which do not exist any more in emacs-unicode.
9262
92632008-04-08 Michael Albinus <michael.albinus@gmx.de>
9264
9265 * coding.c (detect_coding_emacs_mule)
9266 (Ffind_operation_coding_system): Fix typo.
9267
92682008-04-08 Jason Rumney <jasonr@gnu.org>
9269
9270 * w32uniscribe.c (SNAME): Extract only symbol name.
9271
9272 * w32font.h (struct w32_metric_cache): New struct.
9273 (w32font_info): Use it.
9274 (W32METRIC_NO_ATTEMPT, W32METRIC_SUCCESS, W32METRIC_FAIL)
9275 (CACHE_BLOCKSIZE): New constants.
9276
9277 * w32font.c (Qja, Qko, Qzh): New symbols.
9278 (syms_of_w32font): Initialise them.
9279 (font_matches_spec): Use them to filter by language.
9280 (recompute_cached_metrics): Remove function.
9281 (compute_metrics, clear_cached_metrics): New functions.
9282 (w32font_encode_char): Use them to manage metric cache.
9283 (w32font_text_extents): Cache metrics for all glyphs on demand.
9284 Delay converting glyph indices to WORD until needed.
9285 (w32font_open_internal): Initialize metric cache to empty.
9286 (registry_to_w32_charset): Charset should always be a symbol.
9287 (fill_in_logfont, list_all_matching_fonts): Family should
9288 always be a symbol.
9289
92902008-04-06 Jason Rumney <jasonr@gnu.org>
9291
9292 * w32uniscribe.c (uniscribe_shape): Increase items buffer size.
9293 Give up if glyph indices not supported. Use uniscribe obtained
9294 ABC widths for individual metrics. Map glyph clusters back to
9295 characters using fClusterStart flag. Return number of glyphs
9296 produced, not chars processed.
9297 (uniscribe_shape): Map char at FROM to current glyph.
9298
92992008-04-05 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
9300
9301 * macmenu.c (fill_menu) [TARGET_API_MAC_CARBON]:
9302 Use SetMenuItemHierarchicalMenu.
9303
93042008-04-05 Jason Rumney <jasonr@gnu.org>
9305
9306 * image.c (pbm_load): Allow color values up to 65535.
9307 Throw an error if max_color_idx is outside the supported range.
9308 Report an error when image size is invalid.
9309 Read two bytes at a time when raw images have max_color_idx above 255.
9310
93112008-04-05 Eli Zaretskii <eliz@gnu.org>
9312
9313 * w32.c (readdir): If FindFirstFile/FindNextFile return in
9314 cFileName a file name that includes `?' characters, use the 8+3
9315 alias in cAlternateFileName instead.
9316
93172008-04-05 Kenichi Handa <handa@ni.aist.go.jp>
9318
9319 * ccl.c (ccl_driver): If ccl->quit_silently is nonzero, don't
9320 append "CCL: Quitted" when the CCL program is quitted.
9321 (setup_ccl_program): Initialize ccl->quit_silently to zero.
9322
9323 * ccl.h (struct ccl_program): New member quit_silently.
9324
93252008-04-05 Chong Yidong <cyd@stupidchicken.com>
9326
9327 * search.c (compile_pattern_1): Treat non-nil and non-string of
9328 search-spaces-regexp as nil.
9329
9330 * minibuf.c (Fassoc_string): Tweak docstring.
9331
93322008-04-05 Eli Zaretskii <eliz@gnu.org>
9333
9334 * dired.c (Ffile_attributes): Support inode numbers wider than 32
9335 bits. Remove ugly WINDOWSNT-specific kludge introduced on
9336 2008-03-14 to force inode be positive.
9337
9338 * w32.c (sys_chown, stat, fstat): Use S_* constants instead of
9339 _S_* ones, since we now use our own sys/stat.h.
9340 (stat, fstat): Don't mangle the inode number.
9341 (init_user_info): Don't restrict UID and GID to 0-60000 range.
9342
93432008-04-04 Stefan Monnier <monnier@iro.umontreal.ca>
9344
9345 * frame.h (struct frame): Give one more bit to `visible' since we use
9346 values larger than 1 to indicate obscured frames on ttys.
9347
9348 * keymap.c (Qkeymap_canonicalize): New var.
9349 (Fmap_keymap_internal): New fun.
9350 (describe_map): Use keymap-canonicalize.
9351
9352 * undo.c (last_boundary_buffer, last_boundary_position): New vars.
9353 (Fundo_boundary): Set them.
9354 (syms_of_undo): Initialize them.
9355 (record_point): Use them instead of last_point_position*.
9356 (last_undo_buffer): Change type.
9357
93582008-04-04 Jason Rumney <jasonr@gnu.org>
9359
9360 * w32font.c (w32font_text_extents): Use font's ascent and descent.
9361 (recompute_cached_metrics): Don't set ascent and descent per char.
9362
9363 * w32uniscribe.c (uniscribe_check_otf): Fix last change.
9364 (uniscribe_check_otf): Add GC protection before consing.
9365 Rearrange loop for counting features.
9366
93672008-04-03 Stefan Monnier <monnier@iro.umontreal.ca>
9368
9369 * insdel.c (insert_from_buffer_1): Don't compare bytes in destination
9370 buffer with byte-size of source buffer.
9371
93722008-04-03 Chong Yidong <cyd@stupidchicken.com>
9373
9374 * callint.c (Fcall_interactively): Handle temporary region even
9375 when shift-select-mode is off.
9376
93772008-04-03 Jason Rumney <jasonr@gnu.org>
9378
9379 * w32uniscribe.c (uniscribe_check_otf): Sanity check otf_spec.
9380
93812008-04-03 Kenichi Handa <handa@m17n.org>
9382
9383 * coding.c (CATEGORY_MASK_ANY): Add CATEGORY_MASK_UTF_16_AUTO.
9384 (CATEGORY_MASK_UTF_16): Likewise.
9385 (detect_coding_utf_16): Add heuristics to reject utf-16 for a
9386 binary file.
9387 (detect_coding): Add null-byte detection for a binary file.
9388 (detect_coding_system): Likewise.
9389
93902008-04-03 Jason Rumney <jasonr@gnu.org>
9391
9392 * w32uniscribe.c: New file.
9393
9394 * font.h (uniscribe_font_driver) [WINDOWSNT]: Declare for w32fns.c.
9395
9396 * w32font.h (uniscribe_check_otf): Declare for w32font.c.
9397
9398 * w32font.c (Qbalinese, Qbuginese, Qbuhid, Qcuneiform, Qcypriot)
9399 (Qdeseret, Qglagolitic, Qgothic, Qhanunoo, Qkharoshthi)
9400 (Qlimbu, Qlinear_b, Qold_italic, Qold_persian, Qosmanya)
9401 (Qphags_pa, Qphoenician, Qshavian, Qsyloti_nagri)
9402 (Qtagalog, Qtagbanwa, Qtai_le, Qtifinagh, Qugaritic)
9403 (Qphonetic): New symbols.
9404 (syms_of_w32font): Initialize them.
9405 (font_supported_scripts): Use them.
9406 (w32font_list_family): List all charsets.
9407 (w32font_text_extents, recompute_cached_metrics): Fix metric
9408 calculations.
9409 (w32_enumfont_pattern_entity): Make full_type a DWORD.
9410 Give opentype fonts their own format.
9411 (font_matches_spec): New arguments backend and logfont.
9412 Handle :otf spec for uniscribe backend.
9413 (add_font_entity_to_list): Match truetype fonts in uniscribe backend.
9414 (fill_in_logfont): Use DEFAULT_CHARSET when charset not supplied.
9415
9416 * w32fns.c (Fx_create_frame): Conditionally register uniscribe
9417 font backend.
9418 (globals_of_w32fns): Initialize uniscribe font backend.
9419
9420 * makefile.w32-in (CONFIG_H): New variable. Use it to clean up
9421 dependencies.
9422 (w32uniscribe.$(O)): New file to build.
9423 (FONT_OBJ): Include w32uniscribe.$(O).
9424 (LIBS): Add uniscribe libraries.
9425
9426 * ftfont.c (ftfont_get_open_type_spec): Check spec->script, not val.
9427
94282008-04-02 Chong Yidong <cyd@stupidchicken.com>
9429
9430 * callint.c (Vshift_select_mode): New var.
9431 (Finteractive): Document new ^ spec.
9432 (Fcall_interactively): Call handle-shift-selection if the ^ spec
9433 is present.
9434
9435 * keyboard.c (Vthis_command_keys_shift_translated): New var.
9436 (command_loop_1): Avoid running the direct display versions of
9437 forward-char and backward-char if shift-selection may occur.
9438 (read_key_sequence): Set Vthis_command_keys_shift_translated if
9439 shift-translation takes place.
9440
9441 * buffer.c (Vtransient_mark_mode): Move docstring to simple.el to
9442 avoid clobbering by define-minor-mode.
9443
9444 * cmds.c (Fforward_char, Fbackward_char, Fforward_line)
9445 (Fbeginning_of_line, Fend_of_line): Add ^ interactive spec.
9446
9447 * syntax.c (Fforward_word): Add ^ interactive spec.
9448
9449 * window.c (Fscroll_up, Fscroll_down, Fscroll_left)
9450 (Fscroll_right): Add ^ interactive spec.
9451
94522008-04-01 Stefan Monnier <monnier@iro.umontreal.ca>
9453
9454 * xdisp.c (try_window_id): Don't forget to reset delta_bytes.
9455
9456 * casefiddle.c (casify_object): Fix up int/EMACS_INT mixup.
9457
9458 * charset.c (Funibyte_charset, Fset_unibyte_charset): Remove.
9459
94602008-03-31 Juri Linkov <juri@jurta.org>
9461
9462 * window.c (Fdisplay_buffer): Reinitialize `tem' to nil.
9463
94642008-03-30 Jan Djärv <jan.h.d@swipnet.se>
9465
9466 * gtkutil.c (xg_set_geometry): Fix indentation.
9467 (xg_resize_outer_widget): Remove.
9468 (x_wm_size_hint_off): Fix indentation.
9469 (xg_frame_set_char_size): Call flush_and_sync after
9470 gtk_window_resize.
9471 (x_wm_set_size_hint): Pass NULL as geometry window to
9472 gtk_window_set_geometry_hints due to Gtk+ bug nr 68668.
9473 Add menu bar and tool bar height to base height.
9474 (xg_update_frame_menubar, free_frame_menubar)
9475 (xg_tool_bar_detach_callback, xg_tool_bar_attach_callback)
9476 (update_frame_tool_bar, free_frame_tool_bar):
9477 Change xg_resize_outer_widget to xg_frame_set_char_size.
9478
94792008-03-30 Michael Albinus <michael.albinus@gmx.de>
9480
9481 * dbusbind.c (QCdbus_timeout): New D-Bus internal symbol.
9482 (Fdbus_call_method): New parameter TIMEOUT.
9483 (dbus-send-signal): Optimize UNGCPRO call.
9484
94852008-03-29 Juri Linkov <juri@jurta.org>
9486
9487 * window.c (Fdisplay_buffer): Move call to
9488 Vsplit_window_preferred_function out of conditions that check
9489 if window is eligible for vertical splitting.
9490 When Vsplit_window_preferred_function is non-nil, call it and use
9491 its non-nil return value as window. Otherwise, continue doing
9492 vertical splitting using Fsplit_window with arg horflag=nil.
9493 (syms_of_window) <Vsplit_window_preferred_function>: Change the
9494 default value from `split-window' to nil.
9495
94962008-03-29 Juri Linkov <juri@jurta.org>
9497
9498 * callint.c (Fcall_interactively): Revert 2008-03-16 change
9499 for interactive code letters 'b' and 'B'.
9500
95012008-03-29 Eli Zaretskii <eliz@gnu.org>
9502
9503 * fileio.c (Fexpand_file_name): Convert the value of $HOME to a
9504 multibyte string.
9505
95062008-03-29 Stefan Monnier <monnier@iro.umontreal.ca>
9507
9508 * keyboard.c (pending_funcalls): New var.
9509 (timer_check): Run it.
9510 (syms_of_keyboard): Initialize it.
9511 * terminal.c (Qrun_hook_with_args, Qdelete_terminal_functions)
9512 (Vdelete_terminal_functions): New vars.
9513 (syms_of_terminal): Initialize them.
9514 (Fdelete_terminal): Run delete-terminal-functions.
9515 * xdisp.c (safe_eval): Rewrite.
9516 (safe_call2): New fun.
9517 * frame.c (Qdelete_frame_functions): New var.
9518 (syms_of_frame): Initialize it.
9519 (Fdelete_frame): Use it and use safe_call2 and pending_funcalls.
9520 * lisp.h (safe_call2, pending_funcalls): Declare.
9521
95222008-03-28 Andreas Schwab <schwab@suse.de>
9523
9524 * indent.c (Fmove_to_column): Move declaration before statements.
9525
95262008-03-27 Stefan Monnier <monnier@iro.umontreal.ca>
9527
9528 * frame.h (enum fullscreen_type): Give it a name. Move it before use.
9529 (struct frame): Use bit fields for boolean vars.
9530
9531 * process.c (server_accept_connection): Simplify naming.
9532 (emacs_get_tty_pgrp): Use SDATA.
9533
9534 * coding.c (decode_coding_object): Fix last change.
9535
95362008-03-27 Jason Rumney <jasonr@gnu.org>
9537
9538 * w32fns.c (start_hourglass): Suppress hourglass on tty frames.
9539
95402008-03-27 Kenichi Handa <handa@ni.aist.go.jp>
9541
9542 * charset.c (Fdefine_charset_internal): Change the way of
9543 registering charsets in Vcharset_order_list.
9544 (syms_of_charset): Make the charset `eight-bit' supplementary.
9545
95462008-03-26 Alexandre Oliva <aoliva@redhat.com> (tiny change)
9547
9548 * regex.c (EXTEND_BUFFER): Change order of pointer addition
9549 operations, to avoid having the difference between pointers
9550 overflow.
9551
95522008-03-26 Stefan Monnier <monnier@iro.umontreal.ca>
9553
9554 * indent.c (check_display_width): New fun.
9555 (scan_for_column): Use it.
9556
9557 * data.c (syms_of_data): Mark most-positive-fixnum and
9558 most-negative-fixnum as constants.
9559
9560 * xdisp.c (redisplay_internal): Reset selected_frame earlier.
9561
9562 * indent.c (scan_for_column): Extract from current_column_1.
9563 Merge with the same code from Fmove_to_column.
9564 (current_column_1, Fmove_to_column): Use it.
9565
95662008-03-25 Stefan Monnier <monnier@iro.umontreal.ca>
9567
9568 * keymap.c (map_keymap_internal): New fun.
9569 (map_keymap): Use it.
9570 (Fmap_keymap_internal): New fun.
9571 (Fmap_keymap): Remove left-out test from before make_save_value.
9572
9573 * keymap.c (Fmap_keymap): Use `map-keymap-sorted.
9574
9575 * frame.c (Fmodify_frame_parameters, x_set_frame_parameters):
9576 Use XCAR/XCDR.
9577
9578 * process.h (struct Lisp_Process): Remove filter_multibyte.
9579 * process.c (QCfilter_multibyte): Remove.
9580 (setup_process_coding_systems): Don't use filter_multibyte.
9581 (Fstart_process, Fmake_network_process): Don't set filter_multibyte.
9582 (read_process_output): Don't adjust multibyteness to filter_multibyte.
9583 (Fset_process_filter_multibyte): Change the coding-system to
9584 approximate the previous behavior.
9585 (Fprocess_filter_multibyte_p): Get the multibyteness straight from the
9586 coding-system.
9587
9588 * coding.c (decode_coding_object): When not decoding into a buffer,
9589 obey the coding system's preference of (uni|multi)byte.
9590
95912008-03-24 Stefan Monnier <monnier@iro.umontreal.ca>
9592
9593 * casefiddle.c (casify_object): Avoid pathological N^2 worst case if
9594 every char is changed and has a different byte-length.
9595 (Fupcase_word, Fdowncase_word, Fcapitalize_word, operate_on_word):
9596 Fix int -> EMACS_INT.
9597
95982008-03-23 David Hansen <david.hansen@gmx.net>
9599
9600 * dbusbind.c (xd_read_message): Remove extra copying of message
9601 strings. Check for NULL `interface' or `member'.
9602
96032008-03-22 Eli Zaretskii <eliz@gnu.org>
9604
9605 * w32.c (readdir): If FindFirstFile/FindNextFile return in
9606 cFileName a file name that includes `?' characters, use the 8+3
9607 alias in cAlternateFileName instead.
9608
96092008-03-21 Stefan Monnier <monnier@iro.umontreal.ca>
9610
9611 * buffer.c (enlarge_buffer_text): Fix int -> EMACS_INT.
9612
96132008-03-20 Stefan Monnier <monnier@iro.umontreal.ca>
9614
9615 * intervals.c (temp_set_point, temp_set_point_both): Use EMACS_INT.
9616 (set_point, set_point_both): Use EMACS_INT. Remove `buffer' arg,
9617 work on current_buffer only instead (that was already the case
9618 for some of the code anyway).
9619 * buffer.h (set_point, set_point_both): Remove buffer arg, use long int.
9620 (temp_set_point, temp_set_point_both): Use EMACS_INT.
9621 (SET_PT, SET_PT_BOTH): Adjust.
9622 * intervals.h (set_point, temp_set_point, set_point_both)
9623 (temp_set_point_both): Remove redundant declarations.
9624
96252008-03-20 Stefan Monnier <monnier@iro.umontreal.ca>
9626
9627 * fileio.c (Finsert_file_contents):
9628 * lread.c (Feval_buffer): Use BUF_TEMP_SET_PT.
9629 * buffer.h (BUF_SET_PT): Remove. set_point_both doesn't work right
9630 when buffer != current_buffer anyway.
9631
96322008-03-20 Andreas Schwab <schwab@suse.de>
9633
9634 * callint.c (Fcall_interactively) [case 'B']: Use other-buffer
9635 as default.
9636
96372008-03-19 Jason Rumney <jasonr@gnu.org>
9638
9639 * w32fns.c (hourglass_timer, hourglass_hwnd): New variables.
9640 (syms_of_w32fns): Initialize them.
9641 (HOURGLASS_ID): New constant.
9642 (x_window_to_frame): Don't check hourglass_window.
9643 (w32_wnd_proc) <WM_TIMER>: Handle hourglass_timer.
9644 (w32_wnd_proc) <WM_EXITMENULOOP>: Set pending hourglass cursor.
9645 (w32_wnd_proc) <WM_SETCURSOR>: Set the hourglass or current cursor.
9646 (w32_wnd_proc) <WM_EMACS_SETCURSOR>: Set frame's current_cursor.
9647 Only change the cursor if hourglass is not active.
9648 (Fx_create_frame): Initialize frame's current_cursor.
9649 (hourglass_atimer): Remove.
9650 (hourglass_started): New function.
9651 (start_hourglass, cancel_hourglass, hide_hourglass): Adapt to w32.
9652 (show_hourglass): Adapt to w32, changing argument to frame.
9653
9654 * w32term.h (struct w32_output): Remove hourglass_window.
9655 Add current_cursor.
9656
9657 * eval.c (call_debugger, Fsignal):
9658 * keyboard.c (recursive_edit_1, cmd_error, Ftop_level)
9659 (command_loop_1, Fread_key_sequence, Fread_key_sequence_vector)
9660 (Fexecute_extended_command, cancel_hourglass_unwind):
9661 * minibuf.c (read_minibuf):
9662 * fns.c (Fy_or_n_p): Enable hourglass when HAVE_WINDOW_SYSTEM.
9663
96642008-03-19 Stefan Monnier <monnier@iro.umontreal.ca>
9665
9666 * window.c (run_funs): New fun.
9667 (run_window_configuration_change_hook): Use it to run the buffer-local
9668 and the global part of the hook.
9669
9670 * xdisp.c (format_mode_line_unwind_data): Add window argument.
9671 (unwind_format_mode_line): Restore selected window.
9672 (x_consider_frame_title, Fformat_mode_line): Set selected window.
9673
96742008-03-17 Stefan Monnier <monnier@iro.umontreal.ca>
9675
9676 * editfns.c (Fchar_equal): Check they are valid characters.
9677
9678 * buffer.h (Fbuffer_list): Declare (for use in callint.c).
9679
96802008-03-17 Andreas Schwab <schwab@suse.de>
9681
9682 * regex.c (re_match_2_internal): Properly match raw 8-bit bytes
9683 against a charset.
9684
9685 * lisp.h (Fbuffer_list): Declare.
9686
96872008-03-17 Jan Djärv <jan.h.d@swipnet.se>
d6c952f8 9688
aac0c6e3
MR
9689 * gtkutil.c (free_frame_tool_bar): Only call gtk_container_remove if
9690 handlebox_widget is != 0.
9691
96922008-03-16 Juri Linkov <juri@jurta.org>
9693
9694 * callint.c (Fcall_interactively): For interactive code letters
9695 'b' and 'B' put the buffer list into the list of default "future"
9696 values of the minibuffer.
9697
96982008-03-16 Andreas Schwab <schwab@suse.de>
9699
9700 * keyboard.c (read_key_sequence): Fix downcasing of letters with
9701 modifiers.
9702
9703 * regex.c (re_match_2_internal): Correct matching of a charset
9704 against latin-1 characters.
9705
97062008-03-16 Kenichi Handa <handa@m17n.org>
9707
9708 * coding.c (CHAR_STRING_ADVANCE_NO_UNIFY)
9709 (STRING_CHAR_ADVANCE_NO_UNIFY): New macros.
9710 (coding_alloc_by_making_gap): Fix the way to preserve data in the gap.
9711 (alloc_destination): Fix the 2nd arg to coding_alloc_by_making_gap.
9712 (encode_coding_utf_8): Use CHAR_STRING_ADVANCE_NO_UNIFY instead of
9713 CHAR_STRING_ADVANCE.
9714 (produce_chars): Fix for the case that the source and the
9715 destination are the same buffer. Use CHAR_STRING_ADVANCE_NO_UNIFY
9716 instead of CHAR_STRING_ADVANCE.
9717 (consume_chars): Use STRING_CHAR_ADVANCE_NO_UNIFY instead of
9718 STRING_CHAR_ADVANCE.
9719
97202008-03-15 Andreas Schwab <schwab@suse.de>
9721
9722 * regex.c (re_match_2_internal): Correct matching of eight bit
9723 characters in unibyte strings.
9724
97252008-03-15 Martin Rudalics <rudalics@gmx.at>
9726
9727 * buffer.c (overlays_in, Foverlays_in): Include empty overlays
9728 at end of range when it coincides with the end of the buffer.
9729
97302008-03-14 Eli Zaretskii <eliz@gnu.org>
9731
9732 * dired.c (Ffile_attributes) [WINDOWSNT]: Force inode be positive.
9733
9734 * w32fns.c (globals_of_w32fns, Fx_create_frame): Fix last change.
9735
97362008-03-14 Jason Rumney <jasonr@gnu.org>
9737
9738 * editfns.c (initial_tz): New variable.
9739 (syms_of_editfns): Initialize it.
9740 (Fset_time_zone_rule): Set it when first called.
9741 Use it when TZSTRING is nil.
9742
9743 * w32fns.c (MONITOR_DEFAULT_TO_NEAREST, struct MONITOR_INFO)
9744 (MonitorFromPoint_Proc, GetMonitorInfo_Proc): New definitions.
9745 (monitor_from_point_fn, get_monitor_info_fn): New globals.
9746 (globals_of_w32fns): Initialize them.
9747 (compute_tip_xy): Use them to position tooltips.
9748
97492008-03-14 Glenn Morris <rgm@gnu.org>
9750
9751 * emacs.c (main): Revert previous change.
9752 (standard_args): Revert -internal-script back to -scriptload,
9753 and remove the long-option form.
9754
97552008-03-13 Glenn Morris <rgm@gnu.org>
9756
9757 * emacs.c (main, standard_args): Rename -scriptload to -internal-script.
9758 Remove option -enable-font-backend.
9759
97602008-03-12 Stefan Monnier <monnier@iro.umontreal.ca>
9761
9762 * buffer.c (Fswitch_to_buffer): Fall back on pop-to-buffer.
9763
97642008-03-11 Jan Djärv <jan.h.d@swipnet.se>
9765
9766 * xterm.c (x_connection_closed): For GTK: If this is the last
9767 terminal just exit without closing the display.
9768
97692008-03-11 Jason Rumney <jasonr@gnu.org>
9770
9771 * w32font.c (w32font_full_name): Use floor to round.
9772
f0131492 97732008-03-10 Dhruva Krishnamurthy <dhruvakm@gmail.com> (tiny change)
aac0c6e3
MR
9774
9775 * sound.c (alsa_configure): Declare vol at beginning of block.
9776
9777 * fontset.c (Ffontset_info): Remove extra semicolon.
9778
97792008-03-10 Stefan Monnier <monnier@iro.umontreal.ca>
9780
9781 * fileio.c (Fsubstitute_in_file_name): Fix up computation of maximum
9782 size of resulting string.
9783
97842008-03-10 Jason Rumney <jasonr@gnu.org>
9785
9786 * dispnew.c (adjust_glyph_matrix): Initialize window_height.
9787
97882008-03-10 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
9789
9790 * xdisp.c (handle_single_display_spec): Undo 2007-10-16 changes.
9791 Don't pretend as if characters with display property haven't been
9792 consumed for string-replacing-string case.
9793
97942008-03-08 Kim F. Storm <storm@cua.dk>
9795
9796 * xdisp.c (GET_NEXT_DISPLAY_ELEMENT): New macro.
9797 (get_next_display_element, next_element_from_string)
9798 (next_element_from_ellipsis, next_element_from_buffer): Use it.
9799
98002008-03-08 Andreas Schwab <schwab@suse.de>
9801
9802 * process.h (struct Lisp_Process): Declare bit fields as unsigned.
9803
98042008-03-06 Jason Rumney <jasonr@gnu.org>
9805
9806 * w32font.c (w32_registry): Take font_type argument. Use ANSI
9807 when charset not specified. Only translate ANSI to unicode when
9808 font_type is truetype.
9809 (w32font_coverage_ok): New function.
9810 (add_font_entity_to_list): Use it to filter unsuitable fonts.
9811
98122008-03-05 Kenichi Handa <handa@ni.aist.go.jp>
9813
9814 * lread.c (Fread_char): Resolve modifiers.
9815 (Fread_char_exclusive): Likewise.
9816
9817 * character.c (char_resolve_modifier_mask): New function.
9818 (char_string): Use char_resolve_modifier_mask.
9819 (Fchar_resolve_modifiers): New function.
9820 (syms_of_character): Declare Fchar_resolve_modifiers as Lisp
9821 function.
9822
98232008-03-04 Jason Rumney <jasonr@gnu.org>
9824
9825 * makefile.w32-in: Always include w32font.c in the build.
9826 * w32font.c: Wrap in USE_FONT_BACKEND conditional.
9827
98282008-03-04 Andreas Schwab <schwab@suse.de>
9829
9830 * Makefile.in (clean): Remove emacs-*.*.* instead of emacs-*.
9831 (versionclean): Likewise.
9832
98332008-03-04 Juanma Barranquero <lekktu@gmail.com>
9834
9835 * .cvsignore: Add oo.
9836
98372008-03-03 Andreas Schwab <schwab@suse.de>
9838
9839 * coding.c (decode_coding_object): Inhibit gap shrinking while
9840 decoding in place.
9841
98422008-03-03 Dan Nicolaescu <dann@ics.uci.edu>
9843
9844 * w32term.c: Remove unused include "gnu.h".
9845 * makefile.w32-in (w32term.o): Don't depend on gnu.h.
9846
9847 * gnu.h: Rename to ...
9848 * emacs-icon.h: ... this.
9849 * xterm.c: Use emacs-icon.h instead of gnu.h.
9850 * Makefile (xterm.o): Depend on emacs-icon.h, not gnu.h.
9851
98522008-03-03 Juanma Barranquero <lekktu@gmail.com>
9853
9854 * w32font.c: Include math.h.
9855
98562008-03-03 Jason Rumney <jasonr@gnu.org>
9857
9858 * w32font.c (recompute_cached_metrics): Change font arg to w32font_info.
9859 Compute options separately.
9860 (w32font_open_internal): Set glyph_idx before caching metrics.
9861
9862 * w32font.h (NTM_PS_OPENTYPE, NTM_TT_OPENTYPE, NTM_TYPE1):
9863 Define if system headers don't.
9864 (struct w32font_info): Enlarge ascii_metrics. Add glyph_idx.
9865 (w32font_encode_char): Don't declare here.
9866
9867 * w32font.c (Quniscribe, QCformat): New symbols.
9868 (syms_of_w32font): Define them.
9869 (w32font_has_char): Indicate uncertainty.
9870 (w32font_encode_char): Encode as glyph point. Make static.
9871 (recompute_cached_metrics): New function.
9872 (w32font_open_internal): Use it. Set font to use glyph points
9873 initially. Set format based on type of font.
9874 (w32font_text_extents, w32font_draw): Optionally use glyph points.
9875 (w32_enumfont_pattern_entity): Accept backend arg. Set type based
9876 on it. Set format based on information available here.
9877 (add_font_entity_to_list): Identify backend based on opentype_only.
9878
98792008-03-02 Andreas Schwab <schwab@suse.de>
9880
9881 * ftfont.c (ftfont_pattern_entity): Fix aliasing violations.
9882
9883 * coding.c (decode_coding_big5, produce_chars):
9884 Fix typos in last change.
9885
98862008-03-02 Kentaro Ohkouchi <nanasess@fsm.ne.jp>
9887
9888 * gnu.h: New icon.
9889
98902008-03-02 Kenichi Handa <handa@m17n.org>
9891
9892 * coding.c (decode_coding_utf_8): When eol-type of CODING is
9893 `dos', don't decode '\r' if that is the last in the source.
9894 (decode_coding_utf_16, decode_coding_emacs_mule)
9895 (decode_coding_iso_2022, decode_coding_sjis, decode_coding_big5)
9896 (decode_coding_raw_text, decode_coding_charset): Likewise.
9897 (produce_chars): Don't decode EOL here. Use EMACS_INT.
9898
98992008-03-01 Jason Rumney <jasonr@gnu.org>
9900
9901 * w32font.c (w32font_full_name): Report point size for scalable fonts.
9902
99032008-03-01 Kim F. Storm <storm@cua.dk>
9904
9905 * dispextern.h (CHAR_GLYPH_SPACE_P): Check for default face.
9906
99072008-03-01 Jason Rumney <jasonr@gnu.org>
9908
9909 * w32font.c (w32font_full_name): New function.
9910 (w32font_open_internal): Use it.
9911
99122008-03-01 Kim F. Storm <storm@cua.dk>
9913
9914 * dispnew.c (line_draw_cost): Fix invalid glyph check.
9915
99162008-03-01 Jason Rumney <jasonr@gnu.org>
9917
9918 * font.c (font_unparse_fcname): Increase len when style is a symbol.
9919
99202008-03-01 Jan Djärv <jan.h.d@swipnet.se>
9921
9922 * xterm.c (handle_one_xevent): For Gtk+ and ConfigureNotify, call
9923 xg_frame_resized when the event is for the edit widget.
9924
9925 * gtkutil.h (xg_frame_resized): Renamed from xg_resize_widgets.
9926
9927 * gtkutil.c (xg_resize_outer_widget): Only do one of set_geometry or
9928 set_char_size.
9929 (xg_frame_resized): Renamed from xg_resize_widgets. Remove all
9930 operations on widgets here. Just set frame size if needed.
9931 (flush_and_sync, x_wm_size_hint_off, xg_pack_tool_bar): New functions.
9932 (xg_frame_set_char_size): Call x_wm_size_hint_off before resizing.
9933 (x_wm_set_size_hint): Set size hints on the edit widget only, not
9934 the whole frame.
9935 (xg_create_tool_bar): Move attachment of the tool bar to
9936 xg_pack_tool_bar. Do not attach the tool bar if there are no items.
9937 (free_frame_tool_bar): Remove call to SET_FRAME_GARBAGED.
9938
99392008-03-01 Jason Rumney <jasonr@gnu.org>
9940
9941 * w32fns.c (w32_msg_pump): Disable debug code.
9942
99432008-03-01 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
9944
9945 * m/intel386.h [MAC_OSX || DARWIN]: Define NO_ARG_ARRAY if _LP64.
9946
99472008-02-29 Chong Yidong <cyd@stupidchicken.com>
9948
9949 * xdisp.c (next_overlay_string): Don't set
9950 overlay_strings_at_end_processed_p if we're currently reading from
9951 a display string.
9952
99532008-02-29 Stefan Monnier <monnier@iro.umontreal.ca>
9954
9955 * xdisp.c (get_overlay_strings_1): Fix typo.
9956
99572008-02-29 Chong Yidong <cyd@stupidchicken.com>
9958
9959 * xdisp.c (get_overlay_strings_1): Add missing argument type.
9960
99612008-02-28 Kenichi Handa <handa@ni.aist.go.jp>
9962
9963 * ftfont.c (ftfont_match): Explicitly set pixelsize in pattern.
9964
9965 * xdisp.c (display_mode_element): Cancel the previous change.
9966 (decode_mode_spec): Likewise.
9967 (handle_auto_composed_prop): Don't make composition if it->string
9968 is a string.
9969
99702008-02-27 Kim F. Storm <storm@cua.dk>
9971
9972 * lisp.h (GLYPH): Change type from int to struct with separate char
9973 and face_id members.
9974 (GLYPH_MASK_FACE, GLYPH_MASK_CHAR): Delete macros.
9975 (GLYPH_CHAR, GLYPH_FACE): Remove slow versions with frame arg.
9976 (FAST_GLYPH_CHAR, FAST_GLYPH_FACE): Rename macros to ...
9977 (GLYPH_CHAR, GLYPH_FACE): ... these. Change users.
9978 (FAST_MAKE_GLYPH, MAKE_GLYPH): Remove. Rewrite users to use ...
9979 (SET_GLYPH, SET_GLYPH_CHAR, SET_GLYPH_FACE): ... these macros instead.
9980 (GLYPH_CODE_CHAR, GLYPH_CODE_FACE, GLYPH_CODE_P)
9981 (GLYPH_CODE_CHAR_VALID_P, SET_GLYPH_FROM_GLYPH_CODE): New macros to
9982 handle new Lisp glyph code encoding, either an integer or a cons.
9983
9984 * disptab.h (GLYPH_SIMPLE_P): Rewrite.
9985 (GLYPH_ALIAS): Delete.
9986 (GLYPH_ALIAS_P, GLYPH_FOLLOW_ALIASES): Rewrite.
9987 (GLYPH_LENGTH, GLYPH_STRING): Use GLYPH_CHAR.
9988 (GLYPH_FROM_CHAR): Replace macro by ...
9989 (SET_GLYPH_FROM_CHAR): ... this macro. Change users.
9990
9991 * dispextern.h (CHAR_GLYPH_SPACE_P): Simplify.
9992 (GLYPH_FROM_CHAR_GLYPH): Replace macro by ...
9993 (SET_GLYPH_FROM_CHAR_GLYPH): ... this macro. Change users.
9994 (GLYPH_INVALID_P): New macro.
9995 (spec_glyph_lookup_face): Update prototype.
9996
9997 * dispnew.c (line_draw_cost): Adapt to new glyph type.
9998 (build_frame_matrix_from_leaf_window): Adapt to new glyph type and
9999 new glyph code encoding.
10000 (spec_glyph_lookup_face): No return value; update passed glyph instead.
10001 (init_display): Use SET_CHAR_GLYPH to initialize space_glyph.
10002
10003 * xdisp.c (get_next_display_element, next_element_from_display_vector):
10004 Adapt to new glyph type and new glyph code encoding.
10005
10006 * term.c (encode_terminal_code, produce_special_glyphs): Likewise.
10007
10008 * indent.c (current_column, current_column_1, Fmove_to_column)
10009 (compute_motion): Adapt to new glyph code encoding.
10010
10011 * msdos.c (IT_write_glyphs): Adapt to new glyph type.
10012
100132008-02-27 Chong Yidong <cyd@stupidchicken.com>
10014
10015 * process.c (wait_reading_process_output): Check for window
10016 changes caused by timers.
10017 Suggested by Johan Bockgård.
10018
100192008-02-27 Glenn Morris <rgm@gnu.org>
10020
10021 * emacs.c (USAGE1): Add `--disable-font-backend'.
10022
100232008-02-27 Stefan Monnier <monnier@iro.umontreal.ca>
10024
10025 * fileio.c (Finsert_file_contents): Don't reset undo_list if no change
10026 is made to the buffer.
10027
100282008-02-26 Stefan Monnier <monnier@iro.umontreal.ca>
10029
10030 * dispextern.h (face_at_buffer_position, face_for_overlay_string)
10031 (face_at_string_position):
10032 * xfaces.c (face_at_buffer_position, face_for_overlay_string)
10033 (face_at_string_position):
10034 * xdisp.c (display_string, next_overlay_change):
10035 * buffer.h (overlays_at):
10036 * buffer.c (overlays_at): Use EMACS_INT for buffer positions.
10037 Update callers.
10038
100392008-02-26 Chong Yidong <cyd@stupidchicken.com>
10040
10041 * editfns.c (Fformat): Doc fix.
10042
100432008-02-26 Juanma Barranquero <lekktu@gmail.com>
10044
10045 * font.c (Ffont_spec, Ffont_at): Fix typos in docstrings.
10046 (Ffont_put, Flist_families, Ffont_fill_gstring, Ffont_drive_otf)
10047 (Ffont_otf_alternates, Fquery_font): Doc fixes.
10048
100492008-02-25 Stefan Monnier <monnier@iro.umontreal.ca>
10050
10051 * buffer.c (Fbuffer_swap_text): New function.
10052 (syms_of_buffer): Defsubr it.
10053
100542008-02-25 Chong Yidong <cyd@stupidchicken.com>
10055
10056 * keyboard.c (command_loop_1): Revert 2006-10-09 change.
10057
100582008-02-25 Jason Rumney <jasonr@gnu.org>
10059
10060 * w32font.c (w32font_draw): Draw one character at a time when padding.
10061
100622008-02-25 Stefan Monnier <monnier@iro.umontreal.ca>
10063
10064 * window.c (Fdelete_window, Fadjust_window_trailing_edge):
10065 Handle a nil arg. Use run_window_configuration_change_hook.
10066 (delete_window, adjust_window_trailing_edge): Don't handle nil any more.
10067 (Fenlarge_window, Fshrink_window, Fset_window_configuration):
10068 Use run_window_configuration_change_hook.
10069
100702008-02-25 Kenichi Handa <handa@ni.aist.go.jp>
10071
10072 * xdisp.c (x_produce_glyphs): For a visible glyph, assure at least
10073 1-pixel width.
10074
100752008-02-25 Kenichi Handa <handa@ni.aist.go.jp>
10076
10077 * xdisp.c (fill_glyph_string): Pay attention to glyph->padding_p.
10078 (append_glyph): Set glyph->pixel_width and glyph->padding_p to 1
10079 if the glyph in the font is zero pixel with.
10080
10081 * dispextern.h (struct glyph_string): New member padding_p.
10082
10083 * w32font.c (w32font_draw): Pay attention to s->padding_p.
10084
10085 * ftxfont.c (ftxfont_draw): Pay attention to s->padding_p.
10086
10087 * xfont.c (xfont_draw): Pay attention to s->padding_p.
10088
10089 * xftfont.c (xftfont_draw): Pay attention to s->padding_p.
10090
10091 * font.c: If the font driver doesn't have `shape' function, return Qnil.
10092
100932008-02-25 Jason Rumney <jasonr@gnu.org>
10094
10095 * w32fns.c (enum_font_cb2): Don't use raster fonts for Unicode.
10096
100972008-02-24 Stefan Monnier <monnier@iro.umontreal.ca>
10098
10099 Allow fine-grained image-cache flushing.
10100 * dispextern.h (struct image): Add `dependencies' field.
10101 (clear_image_caches): Change arg to Lisp_Object.
10102 * image.c (make_image): Initialize `dependencies' field.
10103 (clear_image_cache): Change arg to allow fine-grained flushing.
10104 Perform the flush even if image-cache-eviction-delay is nil.
10105 (clear_image_caches): Change arg to Lisp_Object.
10106 (Fclear_image_cache): Expand meaning of the argument.
10107 (mark_image): Mark `dependencies' field.
10108 * xfaces.c (clear_face_cache): Adapt arg to call to clear_image_caches.
10109 (lface_hash): Use XHASH rather than XFASTINT.
10110 (face_at_buffer_position): Fix int -> EMACS_INT position.
10111 * xdisp.c (next_overlay_change): Fix int -> EMACS_INT position.
10112 (select_frame_for_redisplay): Remove code duplication.
10113 (redisplay_internal): Adapt arg to call to clear_image_caches.
10114
101152008-02-24 Dan Nicolaescu <dann@ics.uci.edu>
10116
10117 * s/vms4-0.h:
10118 * s/vms4-2.h:
10119 * s/vms4-4.h:
10120 * s/vms5-5.h: Remove, unused.
10121
10122 * s/irix5-2.h:
10123 * s/irix6-0.h:
10124 * s/riscos5.h:
10125 * s/mach-bsd4-3.h:
10126 * m/mips4.h: Remove files for obsolete systems.
10127
10128 * Makefile.in:
10129 * filelock.c:
10130 * unexmips.c:
10131 * m/hp9000s300.h:
10132 * m/iris4d.h:
10133 * s/aix3-1.h:
10134 * s/hpux.h:
10135 * s/msdos.h:
10136 * s/usg5-0.h:
10137 * s/usg5-2-2.h:
10138 * s/usg5-2.h:
10139 * s/usg5-3.h: Remove references to obsolete variables.
10140
10141 * s/irix5-0.h: Remove, move all the contents ...
10142 * s/irix6-5.h: ... here. Simplify.
10143 * config.in: Regenerate.
10144
101452008-02-24 Jason Rumney <jasonr@gnu.org>
10146
10147 * w32term.c (x_draw_glyph_string_background): Clear the background
10148 manually when cleartype is in use.
10149 (x_draw_glyph_string_foreground): Draw text transparently when
10150 cleartype is in use.
10151
10152 * w32font.c (w32font_text_extents): Avoid getting HDC and selecting
10153 a font into it unless we have to.
10154
101552008-02-19 Stefan Monnier <monnier@iro.umontreal.ca>
10156
10157 * intervals.h (INT_LISPLIKE): Remove. It may misfire.
10158 (NULL_INTERVAL_P, SET_INTERVAL_PARENT): Don't use it.
d6c952f8 10159
aac0c6e3
MR
101602008-02-18 Jason Rumney <jasonr@gnu.org>
10161
10162 * w32fns.c (Fw32_shell_execute): Encode parameters.
10163
101642008-02-09 Eli Zaretskii <eliz@gnu.org>
10165
10166 * fileio.c (syms_of_fileio) <insert-default-directory>: Doc fix.
10167
101682008-02-05 Juanma Barranquero <lekktu@gmail.com>
10169
10170 * unexhp9k800.c (read_header): Replace `legal' with `valid'.
10171
101722008-02-24 Ulrich Neumerkel <ulrich@complang.tuwien.ac.at> (tiny change)
10173
10174 * xterm.c (x_set_offset): Don't change the gravity if
10175 CHANGE_GRAVITY is -1.
10176
101772008-02-23 Chong Yidong <cyd@stupidchicken.com>
10178
10179 * fileio.c (auto_save_error_occurred): New var.
10180 (auto_save_error): Set it.
10181 (Fdo_auto_save): Don't overwrite the error message if an auto-save
10182 error occurred.
10183
101842008-02-23 Eli Zaretskii <eliz@gnu.org>
10185
10186 * w32.c (globals_of_w32): Add initializations for
10187 g_b_init_get_sid_sub_authority and
10188 g_b_init_get_sid_sub_authority_count.
10189
101902008-02-22 Stefan Monnier <monnier@iro.umontreal.ca>
10191
10192 * font.c (font_match_xlfd, font_check_xlfd_parse): New funs.
10193 (font_parse_xlfd): Use them for sanity check.
10194 (Finternal_set_font_style_table): Make sure the table is bijective.
10195
10196 Consolidate the image_cache to the terminal struct.
10197 * termhooks.h (P_): Remove redundant def.
10198 (struct terminal): New field `image_cache'.
10199 * frame.h (FRAME_IMAGE_CACHE): New macro. Use it everywhere in place
10200 of FRAME_X_IMAGE_CACHE.
10201 * xterm.h (struct x_display_info): Remove image_cache field.
10202 (FRAME_X_IMAGE_CACHE): Remove. Use FRAME_IMAGE_CACHE instead.
10203 * w32term.h (struct w32_display_info): Remove image_cache field.
10204 (FRAME_X_IMAGE_CACHE): Remove. Use FRAME_IMAGE_CACHE instead.
10205 * macterm.h (struct mac_display_info): Remove image_cache field.
10206 (FRAME_X_IMAGE_CACHE): Remove. Use FRAME_IMAGE_CACHE instead.
10207 * xterm.c (x_term_init):
10208 * w32term.c (w32_term_init):
10209 * macterm.c (mac_term_init): Set the image_cache in the terminal.
10210 * dispextern.h (clear_image_cache, forall_images_in_image_cache):
10211 Remove declarations.
10212 (clear_image_caches, mark_image_cache): New declarations.
10213 * xfaces.c (clear_face_cache):
10214 * xdisp.c (redisplay_internal): Use clear_image_caches.
10215 * image.c (clear_image_cache): Don't check that a frame is on
10216 a window-system before checking if it shares the same cache.
10217 (clear_image_caches): New function.
10218 (Fclear_image_cache): Use it.
10219 (mark_image): Move from allo.c.
10220 (mark_image_cache): Move from alloc.c and forall_images_in_image_cache.
10221 * alloc.c (mark_image, mark_image_cache): Move to image.c.
10222 (mark_object): Don't call mark_image_cache for frames.
10223 (mark_terminals): Call mark_image_cache.
10224
10225 * lisp.h (Fdelete_terminal): Declare.
10226
10227 * charset.h (CHECK_CHARSET, CHECK_CHARSET_GET_ID)
10228 (CHECK_CHARSET_GET_ATTR): Don't use the inexistent return value of
10229 wrong_type_argument.
10230
102312008-02-22 Kenichi Handa <handa@ni.aist.go.jp>
10232
10233 * Makefile.in (lisp): Remove devanagari.el, kannada.el,
10234 malayalam.el, and tamil.el. Add sinhala.el.
10235
102362008-02-21 Stefan Monnier <monnier@iro.umontreal.ca>
10237
10238 * xterm.c (x_connection_closed): Consolidate identical tests.
10239 (x_delete_terminal): Don't crash if called via x_connection_closed.
10240
102412008-02-21 Kenichi Handa <handa@ni.aist.go.jp>
10242
10243 * xdisp.c (decode_mode_spec): New arg string.
10244 (display_mode_element): Adjust for the above change.
10245
102462008-02-19 Stefan Monnier <monnier@iro.umontreal.ca>
10247
10248 * callint.c (Fcall_interactively): Use AREF.
10249
102502008-02-18 Stefan Monnier <monnier@iro.umontreal.ca>
10251
10252 * font.c (font_unparse_xlfd): Don't ignore integer pixel size specs.
10253
102542008-02-18 Jan Djärv <jan.h.d@swipnet.se>
10255
10256 * xfns.c (Fx_show_tip): Set string to " " if empty.
10257
102582008-02-17 Dan Nicolaescu <dann@ics.uci.edu>
10259
10260 * callint.c (syms_of_callint): Initialize Vmark_even_if_inactive
10261 with Qt.
10262
102632008-02-17 Kenichi Handa <handa@m17n.org>
10264
10265 * ftfont.c (ftfont_shape): Return Lispy number.
10266
10267 * xfaces.c (prepare_face_for_display): Use display_info->font->fid
10268 for GCs.
10269 (Finternal_set_font_selection_order): Call font_update_sort_order
10270 only when enable_font_backend is set.
10271 (realize_x_face): Set face->font_info to that of default face only
10272 when enable_font_backend is set.
10273
10274 * xdisp.c (handle_composition_prop): Set it->c to the fist
10275 character of the composed region.
10276 (fill_composite_glyph_string): Set base_face->font_info to
10277 s->font_info. Get a face for ascii from base_face->ascii_face.
10278 (BUILD_COMPOSITE_GLYPH_STRING): Call fill_composite_glyph_string
10279 with a face already decided.
10280 (x_produce_glyphs): Be sure to set it->ascent and it->descent to
10281 non-negative.
10282 (x_produce_glyphs): If the composition method is ..._WITH_GLYPH_STRING,
10283 call font_prepare_composition unconditionally.
10284
10285 * xfns.c (x_make_gc): Use the default font id of the frame for GCs.
10286
10287 * xterm.h (struct x_display_info): New member font.
10288
10289 * xterm.c (x_set_cursor_gc): Use display_info->font->fid for GCs.
10290 (x_set_mouse_face_gc, x_new_font): Likewise.
10291 (x_term_init): Setup display_info->font.
10292 (x_delete_terminal): Free display_info->font.
10293
10294 * xfont.c (xfont_draw): Use BLOCK_INPUT and UNBLOCK_INPUT.
10295
10296 * ftxfont.c (ftxfont_default_fid): Delete it.
10297 (ftxfont_open): Set xfont->fid to 0.
10298 (ftxfont_end_for_frame): Clear data specific to the frame and the
10299 font-driver.
10300
10301 * xftfont.c (xftfont_default_fid): Delete it.
10302 (xftfont_open): Set xfont->fid to 0.
10303
10304 * fontset.c (FONTSET_OBJLIST): New macro.
10305 (fontset_find_font): Update font-object list of the fontset.
10306 (free_realized_fontset): New function.
10307 (free_face_fontset): Call free_realized_fontset.
10308 (Ffont_info): Call font_close_object only when enable_font_backend
10309 is set.
10310
10311 * font.c [HAVE_X_WINDOWS]: Include xterm.h.
10312 [HAVE_NTGUI]: Include w32term.h.
10313 [MAC_OS]: Include macterm.ch.
10314 (font_otf_ValueRecord): Use make_number.
10315 (font_finish_cache): Fix handling of reference count.
10316 (font_clear_cache): Update num_fonts.
10317 (font_open_entity): Update smallest_char_width and
10318 smallest_font_height of the frame.
10319 (font_close_object): Update num_fonts.
10320 (Fclear_font_cache): Fix finding the target cache data.
10321
103222008-02-16 Glenn Morris <rgm@gnu.org>
10323
10324 * fontset.c (Finternal_char_font): Fix compilation warning.
10325
103262008-02-16 Eli Zaretskii <eliz@gnu.org>
10327
10328 * w32.c (init_user_info): Use TOKEN_USER and TOKEN_PRIMARY_GROUP
10329 instead of char arrays. Enlarge the size of array passed to
10330 get_token_information.
10331
10332 * font.c (Ffont_fill_gstring, Fget_font_glyphs): Fix compilation
10333 warnings.
10334
103352008-02-15 Dan Nicolaescu <dann@ics.uci.edu>
10336
10337 * .gdbinit: Don't set `args', it breaks gdb --args.
10338
103392008-02-14 Stefan Monnier <monnier@iro.umontreal.ca>
10340
10341 * fileio.c (Finsert_file_contents): Adjust offsets when replacing
10342 within a narrowed buffer.
10343
103442008-02-14 Kenichi Handa <handa@ni.aist.go.jp>
10345
10346 * coding.c (decode_coding_object, encode_coding_object):
10347 Preserve Vdeactivate_mark. Delete unnecessary call of Fcurrent_buffer.
10348
103492008-02-12 Stefan Monnier <monnier@iro.umontreal.ca>
10350
10351 * coding.c (coding_set_destination): Use BEG_BYTE rather than
10352 hardcoding 1.
10353 (detect_coding_system):
10354 * lisp.h (detect_coding_system, chars_in_text, multibyte_chars_in_text)
10355 (string_char_to_byte, string_byte_to_char, insert_from_gap):
10356 * insdel.c (insert_from_gap):
10357 * fns.c (string_char_byte_cache_charpos, string_char_byte_cache_bytepos)
10358 (string_char_to_byte, string_byte_to_char, string_make_multibyte)
10359 (string_to_multibyte):
10360 * character.c (chars_in_text, multibyte_chars_in_text):
10361 * fileio.c (Finsert_file_contents): Use EMACS_INT for buffer positions.
10362
10363 * character.h (FETCH_STRING_CHAR_ADVANCE)
10364 (FETCH_STRING_CHAR_AS_MULTIBYTE_ADVANCE)
10365 (FETCH_STRING_CHAR_ADVANCE_NO_CHECK): Use SDATA and SREF.
10366 (DEC_POS, BUF_DEC_POS): Use BEG_BYTE rather than hardcoding 1.
10367
10368 * casefiddle.c (casify_region): Only call after-change and composition
10369 functions on the part of the region that was changed.
10370
10371 * keyboard.c (read_avail_input):
10372 * frame.c (Fdelete_frame): Call Fdelete_terminal.
10373
103742008-02-11 Stefan Monnier <monnier@iro.umontreal.ca>
10375
10376 * buffer.c (clone_per_buffer_values, reset_buffer_local_variables)
10377 (Fbuffer_local_value, Fbuffer_local_variables): Don't forget undo_list.
10378
103792008-02-11 Juanma Barranquero <lekktu@gmail.com>
10380
10381 * w32menu.c (push_submenu_start, push_submenu_end)
10382 (push_left_right_boundary, push_menu_pane, push_menu_item):
10383 * keyboard.c (read_key_sequence): Don't pass args with side effects
10384 to AREF, it fails when compiling with -DENABLE_CHECKING.
10385
103862008-02-11 Kenichi Handa <handa@ni.aist.go.jp>
10387
10388 * Makefile.in (${lispsource}international/charprop.el):
10389 Delete this target.
10390
10391 * search.c (boyer_moore): Fix incorrect synching of the trunk and
10392 emacs-unicode-2.
10393
103942008-02-11 Stefan Monnier <monnier@iro.umontreal.ca>
10395
10396 * terminal.c (Fdelete_terminal): Clean up the `force' path.
10397
103982008-02-10 Stefan Monnier <monnier@iro.umontreal.ca>
10399
10400 * frame.c (Qnoelisp): New symbol.
10401 (syms_of_frame): Initialize it.
10402 (Fdelete_frame): Use it to distinguish a mere `force' passed from some
10403 harmless Elisp code, from a strong `force' from x_connection_closed.
10404 * frame.h (Qnoelisp): Declare.
10405 * xterm.c (x_connection_closed): Pass `noelisp'.
10406
10407 * lisp.h (struct Lisp_Misc_Any, struct Lisp_Marker)
10408 (struct Lisp_Overlay, struct Lisp_Kboard_Objfwd)
10409 (struct Lisp_Save_Value, struct Lisp_Free): Use enum Lisp_Misc_Type
10410 rather than `int' for the type of `type'.
10411
104122008-02-10 Dan Nicolaescu <dann@ics.uci.edu>
10413
10414 * s/gnu-linux.h: Remove support for non-ELF and linux-1.x.
10415
10416 * Makefile.in (GNUC): Remove support for gcc-1.x.
10417
104182008-02-10 Richard Stallman <rms@gnu.org>
10419
10420 * lisp.h (ASET): Use AREF, not ASLOT.
10421
104222008-02-10 Stefan Monnier <monnier@iro.umontreal.ca>
10423
10424 * lisp.h (ASET): Check bounds.
10425
104262008-02-10 Glenn Morris <rgm@gnu.org>
10427
10428 * buffer.c (mode-name): Doc fix.
10429
104302008-02-09 Dan Nicolaescu <dann@ics.uci.edu>
10431
10432 * Makefile.in:
10433 * emacs.c:
10434 * gmalloc.c:
10435 * keyboard.c:
10436 * lisp.h:
10437 * m/ibm370aix.h:
10438 * process.c:
10439 * regex.c:
10440 * s/hpux.h:
10441 * sysdep.c:
10442 * sysselect.h:
10443 * systty.h:
10444 * unexec.c:
10445 * w32term.c:
10446 * xsmfns.c:
10447 * xterm.c: Remove code that deals with obsolete variables.
10448
10449 * s/msdos.h (DONT_NEED_ENVIRON): Don't define.
10450
10451 * ecrt0.c: Replace the DONT_NEED_ENVIRON test with MSDOS test,
10452 nothing else needs it anymore.
10453
104542008-02-09 Eli Zaretskii <eliz@gnu.org>
10455
10456 * buffer.h (FETCH_CHAR_AS_MULTIBYTE): Use unibyte_to_multibyte_table
10457 instead of unibyte_char_to_multibyte.
10458
104592008-02-09 Dan Nicolaescu <dann@ics.uci.edu>
10460
10461 * s/gnu-linux.h: Remove commented out code.
10462
10463 * unexec.c: Remove references to obsolete variable COFF_ENCAPSULATE.
10464
10465 * Makefile.in: Update what RMS says about using autoconf.
10466 (C_COMPILER, COFF_ENCAPSULATE, MAKE_PARALLEL): Remove obsolete variable.
10467 (C_SWITCH_MACHINE_1, C_SWITCH_SYSTEM_1, C_SWITCH_SITE_1)
10468 (C_SWITCH_X_SITE_1, C_SWITCH_X_MACHINE_1)
10469 (C_SWITCH_X_SYSTEM_1): Move invariant code outside conditional.
10470
104712008-02-08 Stefan Monnier <monnier@iro.umontreal.ca>
10472
10473 * keymap.c (Fkey_description): Move side effect outside of macro call.
10474
10475 * xfaces.c (Finternal_make_lisp_face):
10476 * keyboard.c (add_command_key, parse_menu_item): Use ASET.
10477
10478 * fontset.c (free_face_fontset): Use FONTSET_FROM_ID.
10479 (syms_of_fontset): Use ASET.
10480
10481 * fns.c (concat): Move side effect outside of macro call.
10482 (hash_clear): Use ASET.
10483
104842008-02-08 Richard Stallman <rms@gnu.org>
10485
10486 * frame.c (Fdelete_frame): If FORCE, don't call hooks.
10487 If FORCE, and frame has a surrogate minibuffer for another frame,
10488 delete the other frame first.
10489
104902008-02-07 Timo Savola <timo.savola@iki.fi>
10491
10492 * xterm.c (x_detect_focus_change): Handle embed client message.
10493 (handle_one_xevent): Ditto.
10494 (handle_one_xevent): If embedded and we get a button press/release,
10495 request focus.
10496 (xembed_set_info, xembed_send_message): New functions.
10497 (x_make_frame_visible): Call xembed_set_info if embedded.
10498 (x_make_frame_invisible): Call xembed_set_info if embedded.
10499 (x_term_init): Initialize Xatom_XEMBED.
10500 (x_make_frame_visible): Check for FRAME_X_EMBEDDED_P also.
10501 (x_iconify_frame): Ditto.
10502
10503 * xterm.h (struct x_display_info): Add AtomXatom_XEMBED.
10504 (enum xembed_info, enum xembed_message, enum xembed_focus)
10505 (enum xembed_modifier, enum xembed_accelerator): New.
10506 (xembed_set_info, xembed_send_message): Declare.
10507 (FRAME_X_EMBEDDED_P): New.
10508
10509 * gtkutil.c (xg_create_frame_widgets): If frame is embedded, call
10510 gtk_plug_new.
10511
10512 * xfns.c (Fx_create_frame): Do not override the explicitly set parent
10513 window ID of a frame.
10514 (x_window): Reparent frame if embedded.
10515 (Fx_create_frame): Don't set border width if embedded.
10516
10517 * emacs.c (USAGE3): Add --parent-id.
10518 (standard_args): Ditto.
10519
105202008-02-07 Jan Djärv <jan.h.d@swipnet.se>
10521
10522 * coding.c (DECODE_EMACS_MULE_COMPOSITION_CHAR): Use "do...while (0)".
10523
105242008-02-07 Jim Meyering <meyering@redhat.com>
10525
10526 Use "do...while (0)", not "if (1)...else" in macro definitions.
10527 The latter provokes a warning from gcc about the empty else, when
10528 followed by ";". Also, without that trailing semicolon, it would
10529 silently swallow up any following statement.
10530 * syntax.h (SETUP_SYNTAX_TABLE)
10531 (SETUP_SYNTAX_TABLE_FOR_OBJECT): Likewise.
10532 * buffer.h (DECODE_POSITION): Likewise.
10533 * character.h (FETCH_STRING_CHAR_ADVANCE): Likewise.
10534 (FETCH_STRING_CHAR_AS_MULTIBYTE_ADVANCE): Likewise.
10535 (FETCH_STRING_CHAR_ADVANCE_NO_CHECK): Likewise.
10536 (FETCH_CHAR_ADVANCE): Likewise.
10537 (FETCH_CHAR_ADVANCE_NO_CHECK): Likewise.
10538
105392008-02-07 Jim Meyering <meyering@redhat.com>
10540
10541 * lread.c [lint]: Don't include <sys/inode.h>.
10542
105432008-02-07 Stefan Monnier <monnier@iro.umontreal.ca>
10544
10545 * xselect.c (x_handle_dnd_message):
10546 * xmenu.c (digest_single_submenu, xmenu_show):
10547 * xdisp.c (with_echo_area_buffer_unwind_data)
10548 (format_mode_line_unwind_data, unwind_format_mode_line)
10549 (display_menu_bar):
10550 * eval.c (Ffetch_bytecode):
10551 * doc.c (store_function_docstring):
10552 * ccl.c (resolve_symbol_ccl_program, ccl_get_compiled_code)
10553 (Fccl_execute, Fccl_execute_on_string, Fregister_code_conversion_map):
10554 * buffer.c (add_overlay_mod_hooklist): Use ASET.
10555
105562008-02-07 Kenichi Handa <handa@m17n.org>
10557
10558 * ftxfont.c (ftxfont_open): Don't set
10559 dpyinfo->smallest_font_height and dpyinfo->smallest_char_width to 0.
10560
10561 * ftfont.c (ftfont_open): Fix previous change.
10562
105632008-02-06 Jason Rumney <jasonr@gnu.org>
10564
10565 * w32font.c (w32font_text_extents): Fill in lbearing metric.
10566 Use cached metrics for ASCII characters.
10567 (w32font_open_internal): Don't set font's owning_frame.
10568 Cache metrics for ASCII characters.
10569
10570 * w32font.h (struct w32font_info): Add ascii_metrics.
10571 Remove owning_frame.
10572
105732008-02-06 Kenichi Handa <handa@ni.aist.go.jp>
10574
10575 * xdisp.c (x_produce_glyphs): Don't set it->ascent and it->descent
10576 to negative value.
10577
10578 * ftxfont.c (ftxfont_draw): Use s->font_info, not face->font_info.
10579
10580 * ftfont.c (ftfont_open): Fix calculation of font->font.average_width.
10581
10582 * charset.c (syms_of_charset): Set QCtest and Qeq.
10583
105842008-02-06 Stefan Monnier <monnier@iro.umontreal.ca>
10585
10586 * process.c (Fstart_process):
10587 * callproc.c (Fcall_process): Handle the case where
10588 Funhandled_file_name_directory returns nil.
10589
10590 * font.h (enum lgstring_indices, enum lglyph_indices): New enums.
10591 (LGSTRING_SLOT, LGSTRING_SET_SLOT): New macros.
10592 * font.c (check_gstring): Use them and AREF to access the vector before
10593 we know it's really a gstring.
10594 (Ffont_shape_text): Fix typo.
46e722a9 10595 (Ffont_shape_text, Ffont_otf_alternates): Fix up int/Lisp_Object mixups.
aac0c6e3
MR
10596
10597 * composite.h (Fcompose_region_internal, Fcompose_string_internal):
10598 Declare.
10599
10600 * chartab.c (make_sub_char_table): Remove noop-yet-incorrect statement.
10601
106022008-02-05 Jason Rumney <jasonr@gnu.org>
10603
10604 * w32font.c (w32font_open_internal): Fill min_width with tmAveCharWidth.
10605 Set smallest_font_height and smallest_char_width in display info.
10606
106072008-02-05 Kenichi Handa <handa@ni.aist.go.jp>
10608
10609 * coding.c (decode_eol): Pay attention to coding->dst_multibyte.
10610
106112008-02-05 Miles Bader <miles@gnu.org>
10612
10613 * xfaces.c (get_lface_attributes, merge_named_face)
10614 (lookup_named_face, lookup_derived_face, realize_named_face):
10615 Revert 2008-02-01 change by cyd@stupidchicken.com.
10616
106172008-02-04 Kenichi Handa <handa@ni.aist.go.jp>
10618
10619 * fontset.c (Ffontset_info): Handle the case of inhibitting the
10620 fallback fonts.
10621 (Ffontset_info) [USE_FONT_BACKEND]: Fix getting of opened font names.
10622
106232008-02-04 Jason Rumney <jasonr@gnu.org>
10624
10625 * w32font.c (w32font_open_internal): Use font_unparse_fcname to
10626 set full_name.
10627 (w32font_open_internal): Use xmalloc, xrealloc, xfree.
10628
106292008-02-03 Jason Rumney <jasonr@gnu.org>
10630
10631 * makefile.w32-in (OBJ1): Include font.o here.
10632 (FONTOBJ) [USE_FONTBACKEND]: Instead of here.
10633
106342008-02-02 Jason Rumney <jasonr@gnu.org>
10635
10636 * makefile.w32-in (temacs): Bump EMHEAP to 21.
10637
106382008-02-01 Jason Rumney <jasonr@gnu.org>
10639
10640 * s/cygwin.h: Define VIRT_ADDR_VARIES.
10641
10642 * puresize.h [VIRT_ADDR_VARIES]: Don't include CYGWIN in condition.
10643
106442008-02-01 Andreas Schwab <schwab@suse.de>
10645
10646 * Makefile.in (shortlisp, lisp): Update for rename of
10647 ../lisp/language/myanmar.el.
10648
106492008-02-01 Chong Yidong <cyd@stupidchicken.com>
10650
10651 * xfaces.c (get_lface_attributes): Delete function.
10652 (merge_named_face, lookup_named_face, lookup_derived_face)
10653 (realize_named_face): Call lface_from_face_name directly, and use
10654 the fact that merge_face_vectors does not alter its FROM argument.
10655
106562008-02-01 Jason Rumney <jasonr@gnu.org>
10657
10658 * w32term.c (w32_read_socket) <WM_CHAR>: Decode non-Unicode
10659 input in the default locale. Handle non-Unicode multibyte input.
10660
106612008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
10662
10663 * fontset.c (reorder_font_vector): Exclude nil elements from the
10664 font group. Don't try multiple fonts.
10665 (fontset_font): Adjust for the above change.
10666 (Finternal_char_font): Return nil if the found font doesn't
10667 contain the character ch.
10668
10669 * Makefile.in (lisp, shortlisp): Add cham.el.
10670
106712008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
10672
10673 * font.h (FONTP): Make it return 1 also for a font-object.
10674
10675 * .gdbinit (xfontset): New function.
10676
10677 * font.c (font_find_for_lface): Check if the character C is
10678 supported or not only for the first font.
10679
10680 * fontset.c (reorder_font_vector): Fix typo.
10681 (fontset_find_font): Don't add a font-spec specifying a script.
10682 Use 0 (not Qt) for the indication of empty font-group. Change the
10683 format of RFONT-DEF. Return Qt if no font in the font-group
10684 support the character.
10685 (fontset_font): Adjust for the above change. If no font was
10686 found the character, remember that.
10687 (face_for_char): Adjust for the change of RFONT-DEF.
10688 (Fset_fontset_font): Allow nil for FONT-SPEC to explicitly specify
10689 no font for the target.
10690 (Finternal_char_font): Adjust for the change of RFONT-DEF.
10691
106922008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
10693
10694 * font.c (font_load_for_face): Handle the case that the font in
10695 face->lface is a string.
10696
106972008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
10698
10699 * xfaces.c (set_lface_from_font_and_fontset): Set the fontname in lface.
10700
107012008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
10702
10703 * xfaces.c (Finternal_set_lisp_face_attribute) [USE_FONT_BACKEND]:
10704 Fix previous change. If the frame is not on a window system,
10705 signal an error.
10706
107072008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
10708
10709 * coding.c (decode_coding_object, encode_coding_object): Adjust
10710 marker positions after conversion.
10711
10712 * lisp.h (struct Lisp_Marker): New member need_adjustment.
10713
107142008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
10715
10716 * font.c (font_find_for_lface): Fix the handling of the return
10717 value of font_has_char.
10718 (Ffont_shape_text): Fix previous change.
10719
10720 * fontset.c (FONTSET_REF_AND_RANGE): Delete it.
10721 (fontset_ref_and_range): Delete it.
10722 (fontset_find_font): Call char_table_ref_and_range instead of
10723 FONTSET_REF_AND_RANGE.
10724 (make_fontset): Don't setup font groups of Latin here.
10725 (Fset_fontset_font): Don't overwrite the setting of FONTSET_ASCII.
10726 (new_fontset_from_font): Make the specified font the default for
10727 all Latin characters.
10728
107292008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
10730
10731 * xfaces.c (Finternal_set_lisp_face_attribute): Check if the frame
10732 is on a window system before accessing the fontset of the frame.
10733
107342008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
10735
10736 * Makefile.in (lisp, shortlisp): Add kherm.el and myanmar.el.
10737
10738 * ftfont.c (ftfont_driver): Set ftfont_shape in ftfont_driver only
10739 when both HAVE_M17N_FLT and HAVE_LIBOTF are defined.
10740
10741 * font.c (Ffont_shape_text): If the font driver doesn't have a
10742 shaper function, make zero-width glyphs to have at least one-pixel
10743 width. Fix setting of `to' field of glyphs.
10744
107452008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
10746
10747 * ftfont.c (ftfont_drive_otf): Fix setting of FROM and TO slots of
10748 glyphs.
10749
10750 * font.h (struct font_driver): Improve docstring of member `shape'.
10751
107522008-02-01 Kenichi Handa <handa@m17n.org>
10753
10754 * composite.c (syms_of_composite): Fix docstring of
10755 auto-composition-function.
10756
10757 * font.h (LGLYPH_SIZE): New macro.
10758
10759 * font.c (Ffont_fill_gstring): Stop filling when a character not
10760 supported by the font is found.
10761 (Ffont_shape_text): When a shape callback function returns nil,
10762 try at most two more times with larger gstring.
10763 (Ffont_at): Fix getting of w. Call font_at with correct 5th argument.
10764
10765 * xdisp.c (handle_auto_composed_prop): Change the argument to
10766 auto-composition-function.
10767
10768 * ftfont.c (ftfont_encode_char): Use the macro FONT_INVALID_CODE.
10769 (ftfont_shape_by_flt): If an element of lgstring is nil, make a
10770 Lispy glyph and store it in the lgstring.
10771
10772 * xfont.c (xfont_encode_char): Use the macro FONT_INVALID_CODE.
10773
10774 * xftfont.c (xftfont_encode_char): Use the macro FONT_INVALID_CODE.
10775
107762008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
10777
10778 * font.c (Ffont_shape_text): Avoid unnecessary composition.
10779
10780 * fontset.c (Vfont_encoding_charset_alist): New variable.
10781 (syms_of_fontset): DEFVAR it.
10782 (reorder_font_vector, fontset_find_font): Optimize for the case of
10783 no need of reordering.
10784 (face_for_char): Map the charset property by
10785 Vfont_encoding_charset_alist.
10786
107872008-02-01 Jason Rumney <jasonr@gnu.org>
10788
10789 * w32font.c (logfonts_match): Don't check adstyle here.
10790 (font_matches_spec): Check here against physical font instead.
10791 (add_font_entity_to_list): Avoid some substitutions.
10792
10793 * font.c (font_parse_fcname): Default weight and slant to normal.
10794 (font_score): Prefer normal fonts if weight or slant unspecified.
10795 (font_score) [WINDOWSNT]: Scale weight difference down to closer
10796 match freetype scores.
10797
107982008-02-01 Jason Rumney <jasonr@gnu.org>
10799
10800 * w32font.c (w32font_text_extents): Don't use the frame stored in the
10801 font, as it may have been deleted.
10802 (w32_enumfont_pattern_entity): Map generic family to adstyle using
10803 most common hyphenless variation.
10804 (logfonts_match): Check generic family.
10805 (font_matches_spec): Don't check generic family here.
10806 (fill_in_logfont): Set generic family based on adstyle.
10807
10808 * w32font.h (w32font_get_cache): Update declaration.
10809
108102008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
10811
10812 * ftfont.c (ftfont_get_cache): Adjust the argument type.
10813
10814 * frame.c (x_set_font_backend): Don't call Fclear_font_cache.
10815 If none of the new drivers are available, call font_update_drivers
10816 with the old drivers.
10817
10818 * w32font.c (w32font_get_cache): Adjust the argument type.
10819
10820 * xfont.c (xfont_get_cache): Adjust the argument type.
10821
10822 * font.h (struct font_driver): Change argument type of get_cache.
10823
10824 * xftfont.c (xftfont_start_for_frame): Delete prototype.
10825
10826 * font.c (Ffont_get): Fix arguments to Fassoc.
10827 (font_prepare_cache, font_finish_cache, font_get_cache): New functions.
10828 (font_clear_cache): New function.
10829 (font_list_entities, font_matching_entity): Use font_get_cache.
10830 (font_update_drivers): Call font_clear_cache when finishing a driver.
10831
10832 * fontset.c (fontset_find_font): Fix previous change.
10833
108342008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
10835
10836 * xterm.c (x_check_font) [USE_FONT_BACKEND]: Don't access
10837 dpyinfo->font_table.
10838 (x_delete_display) [USE_FONT_BACKEND]: Likewise.
10839 (x_delete_terminal) [USE_FONT_BACKEND]: Likewise.
10840
10841 * font.c (font_at): Handle the case that the arg C is negative.
10842 Handle the unibyte case.
10843 (Ffont_at): Call font_at with the arg C -1.
10844
10845 * xdisp.c (handle_auto_composed_prop): Don't get a character at
10846 the position here, and call font_at with the arg C -1.
10847 Don't check the range of the existing composition at the point.
10848
108492008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
10850
10851 * fontset.c (fontset_add): New args charset_id and family.
10852 Change caller.
10853 (load_font_get_repertory, fontset_find_font): Assume that
10854 font_spec is always a font-spec object.
10855 (Fset_fontset_font): Always store a font-spec object in a fontset.
10856
10857 * xdisp.c (handle_auto_composed_prop): Use Fget_text_property
10858 instead of get_property_and_range.
10859
108602008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
10861
10862 * xftfont.c (struct xftfont_info): Delete the member ft_face.
10863 (xftfont_open): Don't keep locking face.
10864 (xftfont_close): Don't unlock face.
10865 (xftfont_anchor_point, xftfont_shape): Lock and unlock face.
10866
10867 * fontset.c (fontset_find_font): Don't prefer a font of
10868 supplementary charset.
10869
108702008-02-01 Kenichi Handa <handa@m17n.org>
10871
10872 * ftfont.c (struct OpenTypeSpec): Rename members script_tag to
10873 script, langsys_tag to langsys, new member script.
10874 (OTF_TAG_STR): Terminate by '\0'.
867d4bb3 10875 (ftfont_get_open_type_spec): If :otf prop is spec, limit the
aac0c6e3
MR
10876 listing to the script specified in that property. Fix arg to
10877 OTF_check_features.
10878
108792008-02-01 Jason Rumney <jasonr@gnu.org>
10880
10881 * w32font.h: New file.
10882
10883 * w32font.c: Include it.
10884 (struct w32font_info): Add owning_frame field. Move to w32font.h.
10885 (w32font_open): Set owning_frame.
10886 (w32font_text_extents): Use owning_frame.
10887 (struct font_callback_data): Add opentype_only field.
10888 (add_font_entity_to_list): Use it to filter fonts.
10889 Don't check against full name.
10890 (w32font_list_internal): New function.
10891 (w32font_list): Use it.
10892 (w32font_match_internal): New function.
10893 (w32font_match): Use it.
10894 (w32font_open_internal): New function.
10895 (w32font_open): Use it.
10896 (w32font_get_cache, w32font_close, w32font_has_char)
10897 (w32font_encode_char, w32font_text_extents, w32font_draw):
10898 Make non-static.
10899
10900 * makefile.w32-in (w32font.o): Depend on w32font.h.
10901
109022008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
10903
10904 * charset.c (Fdefine_charset_internal): Record a supplementary
10905 charset at the tail of Vcharset_order_list.
10906
10907 * font.c (Ffont_shape_text): Fix the return value.
10908
10909 * ftfont.c (OTF_SYM_TAG, OTF_TAG_STR): Fix argument names.
10910
10911 * xdisp.c (handle_auto_composed_prop): Fix previous change.
10912
109132008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
10914
10915 * ftfont.c (struct OpenTypeSpec): New struct.
10916 (OTF_SYM_TAG, OTF_TAG_STR): New macros.
10917 (ftfont_get_open_type_spec): New function.
10918 (ftfont_list) [HAVE_LIBOTF]: Check otf-spec property.
10919
10920 * lread.c (read1): Redo the previous change with checking Vpurify_flag.
10921
109222008-02-01 Jason Rumney <jasonr@gnu.org>
10923
10924 * w32font.c (add_font_entity_to_list): Compare only the beginning
10925 of full name.
10926
109272008-02-01 Kenichi Handa <handa@m17n.org>
10928
10929 * xdisp.c (handle_auto_composed_prop): Simplify the code.
10930 Never return HANDLED_RECOMPUTE_PROPS.
10931
109322008-02-01 Kenichi Handa <handa@m17n.org>
10933
10934 * font.c (font_gstring_produce): Delete it.
10935
10936 * composite.h (COMPOSITION_METHOD):
10937 Handle COMPOSITION_WITH_GLYPH_STRING.
10938
109392008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
10940
10941 * xfont.c (Qx): Delete.
10942 (syms_of_xfont): Don't initialize Qx.
10943
10944 * composite.h (enum composition_method):
10945 Define COMPOSITION_WITH_GLYPH_STRING unconditionally.
10946
109472008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
10948
10949 * xfaces.c [HAVE_WINDOW_SYSTEM]: Include "font.h" unconditionally.
10950 (choose_face_font): Accept new form of font-spec.
10951
10952 * frame.h (font_driver_list): Declare it unconditionally.
10953 (struct frame): Define members font_driver_list and font_data_list
10954 unconditionally.
10955
10956 * fontset.c: Include "font.h" unconditionally.
10957 (generate_ascii_font_name): Use font_parse_xlfd and font_unparse_xlfd.
10958 (Fset_fontset_font): Accept a font-spec object.
10959
10960 * font.c (font_unparse_xlfd): If pixel_size is zero, make the
10961 PIXEL_SIZE part a wild card.
10962
10963 * dispextern.h (struct glyph_string): Define members clip and
10964 num_clips unconditionally.
10965 (struct face): Define members font_info and extra unconditionally.
10966
10967 * ftfont.c (ftfont_open): Set members maybe_otf and otf of
10968 ftfont_info only when HAVE_LIBOTF is defined.
10969
109702008-02-01 Andreas Schwab <schwab@suse.de>
10971
10972 * xdisp.c (back_to_previous_visible_line_start): Fix type of beg
10973 and end.
10974
109752008-02-01 Jason Rumney <jasonr@gnu.org>
10976
10977 * w32font.c (w32font_driver): Add new fields.
10978
109792008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
10980
10981 * Makefile.in (ALL_CFLAGS): Add @M17N_FLT_CFLAGS@.
10982 (FONTSRC, FONTOBJ) [HAVE_WINDOW_SYSTEM]: Set them unconditionally.
10983 (LIBES): Add @M17N_FLT_CFLAGS@.
10984
10985 * composite.c (compose_text): Don't treat the new style
10986 composition specially.
10987
10988 * emacs.c (main): Call syms_of_font unconditionally.
10989
10990 * font.h (FONT_ENTITY_NOT_LOADABLE)
10991 (FONT_ENTITY_SET_NOT_LOADABLE): New macros.
10992 (LGSTRING_XXXX, LGLYPH_XXX): Adjust for the change of lispy gstring.
10993 (struct font_driver): New member shape.
10994 (font_registry_charsets): Extern it.
10995 (font_find_for_lface, font_prepare_composition): Adjust prototype.
10996 (font_otf_capability, font_drive_otf): Delete their externs.
10997
10998 * font.c [HAVE_M17N_FLT]: Include <m17n-flt.h>.
10999 (font_charset_alist, font_registry_charsets): Move from xfont.c
11000 and rename.
11001 (font_prop_validate_otf): New function.
11002 (font_property_table): Register it for QCotf.
11003 (DEVICE_DELTA, adjust_anchor, REPLACEMENT_CHARACTER)
11004 (font_drive_otf): Delete.
11005 (font_prepare_composition): New arg F. Adjust for the change of
11006 lispy gstring.
11007 (font_find_for_lface): New arg C.
11008 (font_load_for_face): Adjust for the change of font_find_for_lface.
11009 (Ffont_make_gstring, Ffont_fill_gstring): Adjust for the change of
11010 lispy gstring.
11011 (Ffont_shape_text): New function.
11012 (Fopen_font): If the font size is not given, use 12-pixel.
11013 (Ffont_at): New arg STRING.
11014 (syms_of_font): Initalize font_charset_alist.
11015 Declare Ffont_shape_text as a Lisp function. Call syms_of_XXfont
11016 conditionally.
11017
11018 * fontset.c (fontset_find_font) [USE_FONT_BACKEND]: Try multiple
11019 fonts of the same font-spec. Change the format of RFONT-DEF.
11020 (face_for_char, make_fontset_for_ascii_face, Finternal_char_font):
11021 Adjust for the change of RFONT-DEF.
11022 (Fset_fontset_font) [USE_FONT_BACKEND]: Handle new format of font-spec.
11023
11024 * ftfont.h: New file.
11025
11026 * ftfont.c: Don't include Freetype headers. Include "ftfont.h".
11027 (struct ftfont_info) [HAVE_LIBOTF]: New members maybe_otf and otf.
11028 (ftfont_open) [HAVE_LIBOTF]: Initialize the above members.
11029 (ftfont_driver) [HAVE_LIBOTF, HAVE_M17N_FLT]: Don't set
11030 font_otf_capability and font_drive_otf, set ftfont_shape.
11031 (ftfont_list): Adjust for the change of :otf property value.
11032 (struct MFLTFontFT) [HAVE_LIBOTF, HAVE_M17N_FLT]: New struct.
11033 (ftfont_get_glyph_id, ftfont_get_metrics, ftfont_check_otf)
11034 (adjust_anchor, ftfont_drive_otf, ftfont_shape_by_flt)
11035 (ftfont_shape) [HAVE_LIBOTF, HAVE_M17N_FLT]: New function.
11036 (DEVICE_DELTA) [HAVE_LIBOTF, HAVE_M17N_FLT]: New macro.
11037 (otf_gstring, gstring, m17n_flt_initialized): New variables.
11038
11039 * w32term.c (x_draw_composite_glyph_string_foreground):
11040 Adjust for the change of lispy gstring.
11041
11042 * xdisp.c (handle_composition_prop): Adjust for the change of
11043 lispy gstring. Call a function for auto-composition with the
11044 third arg it->window.
11045 (fill_composite_glyph_string): Adjust for the change of lispy string.
11046 (x_produce_glyphs): Adjust for the change of font_prepare_compositionl.
11047
11048 * xfaces.c (set_font_frame_param): Adjust for the change of
11049 font_find_for_lface.
11050
11051 * xfont.c (x_font_charset_alist): Move to font.c and rename.
11052 (xfont_registry_charsets): Likewise. Change caller.
11053 (syms_of_xfont): Don't handle x_font_charset_alist.
11054
11055 * xftfont.c: Include "ftfont.h".
11056 (struct xftfont_info) [HAVE_LIBOTF]: New members maybe_otf and otf.
11057 (xftfont_open) [HAVE_LIBOTF]: Initialize the above members.
11058 (xftfont_close) [HAVE_LIBOTF]: Close otf.
11059 (xftfont_shape) [HAVE_LIBOTF, HAVE_M17N_FLT]: New function.
11060 (syms_of_xftfont) [HAVE_LIBOTF, HAVE_M17N_FLT]:
11061 Set xftfont_driver.shape to xftfont_shape.
11062
11063 * xterm.c (x_draw_composite_glyph_string_foreground): Adjust for
11064 the change of lispy gstring.
11065
110662008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
11067
11068 * ftxfont.c (ftxfont_end_for_frame): Fix array indexing error.
11069
110702008-02-01 Jason Rumney <jasonr@gnu.org>
11071
11072 * w32font.c (w32font_draw): Fill background manually.
11073
110742008-02-01 Jason Rumney <jasonr@gnu.org>
11075
11076 * font.c (Qfontp): Remove unused symbol.
11077 (QCantialias): New symbol.
11078 (syms_of_font): Define it.
11079 (font_property_table): Set a validator for QCantialias.
11080
11081 * w32font.c (CLEARTYPE_QUALITY, CLEARTYPE_NATURAL_QUALITY):
11082 Define if not already.
11083 (QCfamily): Share with xfaces.c.
11084 (Qstandard, Qsubpixel, Qnatural): New symbols.
11085 (syms_of_w32font): Define them. Don't define QCfamily here.
11086 (w32_antialias_type, lispy_antialias_type): New functions.
11087 (w32_enumfont_pattern_entity): New arg requested_font.
11088 Set antialias parameter if non-default was requested.
11089 (fill_in_logfont): Fill in lfQuality if :antialias specified.
11090
110912008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
11092
11093 * lread.c (read1): Undo the previous change.
11094
110952008-02-01 CHENG Gao <chenggao@gmail.com> (tiny change)
11096
11097 * frame.c (Fdelete_frame): Call font_update_drivers only when
11098 USE_FONT_BACKEND is defined.
11099
111002008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
11101
11102 * font.h (struct font_bitmap): New member bits_per_pixel.
11103 (struct font_driver): New members start_for_frame and end_for_frame.
11104 (struct font_data_list): New struct.
11105 (font_put_frame_data, font_get_frame_data): Extern them.
11106
11107 * frame.h (struct frame): New member font_data_list.
11108
11109 * font.c (font_update_drivers): Call driver->start_for_frame and
11110 driver->end_for_frame at proper timings.
11111 (font_put_frame_data, font_get_frame_data): New functions.
11112 (Ffont_spec): Add usage in the docstring.
11113
11114 * frame.c (make_frame): Initialize f->font_data_list to NULL.
11115 (Fdelete_frame): Call font_update_drivers.
11116
11117 * xftfont.c (struct xftface_info): Delete the member xft_draw.
11118 (xftfont_prepare_face, xftfont_done_face): Adjust for the above change.
11119 (xftfont_get_xft_draw): New function.
11120 (xftfont_draw): Get XftDraw by xftfont_get_xft_draw.
11121 (xftfont_end_for_frame): New function.
11122 (syms_of_xftfont): Set xftfont_driver.end_for_frame.
11123
11124 * ftxfont.c (ftxfont_get_gcs): Rename from ftxfont_create_gcs.
11125 Change argument. Cache GCs in the per-frame data.
11126 (struct ftxfont_frame_data): New struct.
11127 (ftxfont_draw_bitmap): New arg gc_fore and flush.
11128 (ftxfont_prepare_face, ftxfont_done_face): Delete them.
11129 (ftxfont_draw): Get GCs by ftxfont_get_gcs. Reflect s->clip in GCs.
11130 (ftxfont_end_for_frame): New function.
11131 (syms_of_ftxfont): Set ftxfont_driver.end_for_frame.
11132
11133 * ftfont.c (ftfont_get_bitmap): Set bitmap->bits_per_pixel.
11134
111352008-02-01 Kenichi Handa <handa@m17n.org>
11136
11137 * xselect.c (Vselection_coding_system)
11138 (Vnext_selection_coding_system): Delete them.
11139 (syms_of_xselect): Don't declare selection-coding-system and
11140 next-selection-coding-system. They are declared in select.el.
11141
111422008-02-01 Jason Rumney <jasonr@gnu.org>
11143
11144 * w32term.h (WM_UNICHAR, UNICODE_NOCHAR): Define if not already.
11145
11146 * w32fns.c: Include imm.h.
11147 (get_composition_string_fn, get_ime_context_fn): New optional
11148 system functions.
11149 (globals_of_w32fns): Load them from imm32.dll.
11150 (ignore_ime_char): New flag.
11151 (w32_wnd_proc): Handle WM_UNICHAR, WM_IME_CHAR and
11152 WM_IME_ENDCOMPOSITION messages.
11153
11154 * w32term.c (w32_read_socket) [WM_UNICHAR]: Handle as
11155 MULTIBYTE_CHAR_KEYSTROKE_EVENT.
11156
111572008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
11158
11159 * lread.c (READCHAR): Call readchar with the 2nd arg NULL.
11160 (READCHAR_REPORT_MULTIBYTE): New macro.
11161 (readchar): New 2nd arg MULTIBYTE.
11162 (read1): Use READCHAR_REPORT_MULTIBYTE for the first read.
11163 Make symbol's name multibyte according to the multibyteness of the
11164 source.
11165
111662008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
11167
11168 * xfaces.c (face_for_overlay_string): Call lookup_face with
11169 correct arguments (fix of synching with the trunk).
11170
111712008-02-01 Kenichi Handa <handa@m17n.org>
11172
11173 * font.c (font_prop_validate_symbol, font_prop_validate_style)
11174 (font_prop_validate_non_neg, font_prop_validate_spacing):
11175 Delete argument prop_index.
11176 (font_property_table): Change arguments to validater. Change Callers.
11177 (font_lispy_object): Delete.
11178 (font_at): Use font_find_object instead fo font_lispy_object.
11179
111802008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
11181
11182 * fileio.c (Fexpand_file_name): Adjust multibyteness of directory
11183 and file names.
11184
111852008-02-01 Jason Rumney <jasonr@gnu.org>
11186
11187 * w32font.c (add_font_name_to_list): Avoid vertical fonts.
11188 (font_matches_spec): Remove debug output.
11189 (add_font_entity_to_list): Avoid using substituted fonts.
11190
111912008-02-01 Jason Rumney <jasonr@gnu.org>
11192
11193 * doc.c (Fsnarf_documentation):
11194 * Makefile.in (temacs${EXEEXT}, mostlyclean): Undo last change.
11195
111962008-02-01 Miles Bader <miles@gnu.org>
11197
11198 * dispextern.h (struct glyph_row): Only define "clip" field if
11199 HAVE_WINDOW_SYSTEM is defined.
11200
112012008-02-01 Stefan Monnier <monnier@iro.umontreal.ca>
11202
11203 Fix up multi-tty merge.
11204
11205 * xterm.c (handle_one_xevent): Remove duplicate code and fix up nesting
11206 and indentation.
11207
11208 * xfaces.c (free_realized_face, clear_face_gcs):
11209 Include font_done_for_face in the input_blocked section, just in case.
11210
11211 * xdisp.c (decode_mode_spec): Use terminal-local coding systems.
11212 (get_char_face_and_encoding): Undo last change and remove the *other*
11213 duplicate definition (i.e. keep the one that's better scoped and that
11214 includes code for the font-backend).
11215
11216 * terminal.c (create_terminal): Default keyboard_coding to
11217 `no-conversion' and terminal_coding to `undecided'.
11218
11219 * lread.c (read1): Use XSETPVECTYPE to set a pseudovector's tag.
11220
11221 * fontset.c (free_realized_fontsets): Check that the table entry does
11222 contain a fontset before trying to compare it to `base'.
11223
11224 * emacs.c (main): Move syms_of_data, syms_of_fileio, syms_of_alloc,
11225 syms_of_charset, and syms_of_coding earlier because init_window_once
11226 now needs Vcoding_system_hash_table to be setup.
11227
11228 * coding.h (default_buffer_file_coding): Remove.
11229
11230 * coding.c (default_buffer_file_coding): Remove.
11231 (Fterminal_coding_system, Fkeyboard_coding_system): Use ->id rather
11232 than ->symbol, and use the terminal-local coding system.
11233 (syms_of_coding): Don't setup the coding-systems that are not
11234 terminal-local.
11235 (Fdefine_coding_system_internal): Use XCAR/XCDR.
11236
11237 * chartab.c (Fmake_char_table, make_sub_char_table, copy_char_table):
11238 Use XSETPVECTYPE now that XSETCHAR_TABLE doesn't set the tag anymore.
11239
11240 * alloc.c (Fmake_char_table, make_sub_char_table): Remove. They're now
11241 in chartab.c and were re-added here by mistake.
11242 (Fpurecopy): Use XSETPVECTYPE after copying a COMPILED pseudovector.
11243
11244 * doc.c (Fsnarf_documentation):
11245 * Makefile.in (temacs${EXEEXT}, mostlyclean): Move buildobj.lst from
11246 src to etc.
11247
11248 * ChangeLog.10: Add mistakenly removed entry.
11249
112502008-02-01 Dan Nicolaescu <dann@ics.uci.edu>
11251
11252 * Makefile.in (fringe.o, minibuf.o): Fix dependencies.
11253
112542008-02-01 Miles Bader <miles@gnu.org>
11255
11256 * xdisp.c (get_char_face_and_encoding): Remove extraneous definition.
11257 Add extra args to FACE_FOR_CHAR.
11258
112592008-02-01 Kenichi Handa <handa@m17n.org>
11260
11261 * keymap.c (where_is_internal_1): If key is a cons, store the copy
11262 in sequence.
11263
11264 * chartab.c (map_sub_char_table, map_char_table): If the range
11265 contains just one character, call the function with that character
11266 even if the depth is not 3.
11267
112682008-02-01 Jason Rumney <jasonr@gnu.org>
11269
11270 * w32font.c (w32font_text_extents): Calculate metrics for the
11271 whole string.
11272
112732008-02-01 Jason Rumney <jasonr@gnu.org>
11274
11275 * w32xfns.c (get_next_msg): Consolidate WM_PAINT messages.
11276
112772008-02-01 Jason Rumney <jasonr@gnu.org>
11278
11279 * w32term.c (x_set_glyph_string_clipping): Use
11280 get_glyph_string_clip_rects.
11281 (x_set_glyph_string_clipping_exactly, x_draw_glyph_string):
11282 Adjust for the change of struct glyph_string.
11283
11284 * w32font.c (w32font_draw): Do clipping here.
11285
112862008-02-01 Kenichi Handa <handa@m17n.org>
11287
11288 * xftfont.c (xftfont_draw): Adjust for the change of struct
11289 glyph_string.
11290
11291 * xterm.c (x_set_glyph_string_clipping): Use
11292 get_glyph_string_clip_rects.
11293 (x_set_glyph_string_clipping_exactly, x_draw_glyph_string):
11294 Adjust for the change of struct glyph_string.
11295
11296 * xdisp.c (get_glyph_string_clip_rects): Reflect s->row->clip to
11297 the resulting clip(s}.
11298 (expose_overlaps): Add arg r. Change callers. Set it to
11299 row->clip temporarily.
11300 (expose_window): Redraw rows overlapping the exposed area.
11301
11302 * dispextern.h (struct glyph_row): New member clip.
11303 (struct glyph_string): Delete members clip_x, clip_y, clip_width,
11304 clip_height, new member clip, and num_clips.
11305
113062008-02-01 Kenichi Handa <handa@m17n.org>
11307
11308 * data.c (Fchar_or_string_p): Fix docstring.
11309
113102008-02-01 Kenichi Handa <handa@m17n.org>
11311
11312 * xftfont.c (xftfont_draw): If s->font_info != s->face->font_info,
11313 create a temporary XftDraw object.
11314
113152008-02-01 Kenichi Handa <handa@m17n.org>
11316
11317 * font.c (Ffontp): Fix docstring.
11318
11319 * coding.c (detect_coding_iso_2022): Don't treat SI/SO codes as a
11320 strong evidence of ISO-2022.
11321
113222008-02-01 Kenichi Handa <handa@m17n.org>
11323
11324 * abbrev.c (abbrev_check_chars): Use CHAR_TABLE_REF, not
11325 SYNTAX_ENTRY_FOLLOW_PARENT.
11326
113272008-02-01 Stefan Monnier <monnier@iro.umontreal.ca>
11328
11329 * fns.c (weak_hash_tables): Rename from Vweak_hash_tables and change
11330 its type.
11331 (make_hash_table, copy_hash_table, sweep_weak_hash_tables, init_fns):
11332 Update to the new type of weak_hash_tables and next_weak.
11333
11334 * lisp.h (struct Lisp_Hash_Table): Change next_weak from Lisp_Object to
11335 a plain C pointer to Lisp_Hash_Table.
11336
11337 * lisp.h (XGCTYPE, GC_HASH_TABLE_P, GC_NILP, GC_NUMBERP, GC_NATNUMP)
11338 (GC_INTEGERP, GC_SYMBOLP, GC_MISCP, GC_VECTORLIKEP, GC_STRINGP)
11339 (GC_CONSP, GC_FLOATP, GC_VECTORP, GC_OVERLAYP, GC_MARKERP)
11340 (GC_INTFWDP, GC_BOOLFWDP, GC_OBJFWDP, GC_BUFFER_OBJFWDP)
11341 (GC_BUFFER_LOCAL_VALUEP, GC_SOME_BUFFER_LOCAL_VALUEP)
11342 (GC_KBOARD_OBJFWDP, GC_PSEUDOVECTORP, GC_WINDOW_CONFIGURATIONP)
11343 (GC_PROCESSP, GC_WINDOWP, GC_SUBRP, GC_COMPILEDP, GC_BUFFERP)
11344 (GC_SUB_CHAR_TABLE_P, GC_CHAR_TABLE_P, GC_BOOL_VECTOR_P, GC_FRAMEP)
11345 (GC_EQ): Remove since they've been identical to their non-GC_
11346 alter-egos ever since the markbit was eradicated.
11347
11348 * alloc.c:
11349 * buffer.c:
11350 * buffer.h:
11351 * data.c:
11352 * fileio.c:
11353 * filelock.c:
11354 * fns.c:
11355 * frame.h:
11356 * lisp.h:
11357 * macterm.c:
11358 * print.c:
11359 * process.c:
11360 * w32fns.c:
11361 * w32menu.c:
11362 * w32term.c:
11363 * xfns.c:
11364 * xmenu.c:
11365 * xterm.c: Replace uses of GC_* macros with the non-GC_ versions.
11366
113672008-02-01 Kenichi Handa <handa@m17n.org>
11368
11369 * chartab.c (map_sub_char_table): Make it work for the top-level
11370 char-table. Fix handling of parent char-table.
11371 (map_char_table): Adjust for the above change.
11372
113732008-02-01 Jason Rumney <jasonr@gnu.org>
11374
11375 * w32font.c (Qgdi): Rename from Qw32.
11376
113772008-02-01 Jason Rumney <jasonr@gnu.org>
11378
11379 * w32bdf.c (get_quoted_string): Make function static.
11380
113812008-02-01 Kenichi Handa <handa@m17n.org>
11382
11383 * xftfont.c (xftfont_open): If one of font's ASCII glyph has
11384 bigger ascent and descent than those of the font, use them as
11385 font's ascent and descent.
11386
113872008-02-01 Kenichi Handa <handa@m17n.org>
11388
11389 * Makefile.in (${lispsource}international/charprop.el): Move this
11390 target within "#ifdef HAVE_UNIDATA" and "#endif".
11391
113922008-02-01 Kenichi Handa <handa@m17n.org>
11393
11394 * Makefile.in (lisp): Add ${lispsource}language/tai-viet.el.
11395 (shortlisp): Add ../lisp/language/tai-viet.el.
11396
113972008-02-01 Ulrich Mueller <ulm@gentoo.org>
11398
11399 * Makefile.in (${lispsource}international/charprop.el): Depend on
11400 temacs${EXEEXT}.
11401
114022008-02-01 Jason Rumney <jasonr@gnu.org>
11403
11404 * w32font.c (w32font_close): Delete the GDI font object.
11405
11406 * w32menu.c: Include character.h.
11407
11408 * w32proc.c: Likewise.
11409
11410 * w32select.c: Likewise.
11411
11412 * makefile.w32-in (w32proc.o): Depend on character.h.
11413
114142008-02-01 Jason Rumney <jasonr@gnu.org>
11415
11416 * w32fns.c (syms_of_w32fns): Use DEFSYM macro.
11417
11418 * w32menu.c (syms_of_w32menu): Likewise.
11419
11420 * w32proc.c (syms_of_ntproc): Likewise.
11421
11422 * w32select.c (syms_of_w32select): Likewise.
11423
11424 * w32term.c (syms_of_w32term): Likewise.
11425
114262008-02-01 Jason Rumney <jasonr@gnu.org>
11427
11428 * w32font.c (w32font_draw): Delete brush after using it.
11429
114302008-02-01 Jason Rumney <jasonr@gnu.org>
11431
11432 * w32font.c (w32font_open): Don't set font_idx.
11433 (w32font_text_extents): Try GetTextExtentPoint32W before defaulting
11434 to font settings.
11435 (w32font_draw): Fill background explicitly.
11436
114372008-02-01 Jason Rumney <jasonr@gnu.org>
11438
11439 * w32term.c (w32_initialize): Don't call w32font_initialize.
11440
11441 * w32font.c (w32font_info): Remove subranges.
11442 (QCsubranges, Qmodern, Qswiss, Qroman): Remove.
11443 (QCfamily, Qmonospace, Qsans_serif, Qmono, Qsans, Qsans__serif)
11444 (Qraster, Qoutline, Qlatin, Qgreek, Qcoptic, Qcyrillic, Qarmenian)
11445 (Qhebrew, Qarabic, Qsyriac, Qnko, Qthaana, Qdevanagari, Qbengali)
11446 (Qgurmukhi, Qgujarati, Qoriya, Qtamil, Qtelugu, Qkannada)
11447 (Qmalayalam, Qsinhala, Qthai, Qlao, Qtibetan, Qmyanmar, Qgeorgian)
11448 (Qhangul, Qethiopic, Qcherokee, Qcanadian_aboriginal, Qogham)
11449 (Qrunic, Qkhmer, Qmongolian, Qsymbol, Qbraille, Qhan)
11450 (Qideographic_description, Qcjk_misc, Qkana, Qbopomofo, Qkanbun)
11451 (Qyi, Qbyzantine_musical_symbol, Qmusical_symbol, Qmathematical):
11452 New symbols.
11453 (font_callback_data): New struct.
11454 (w32font_list, w32font_match): Use it.
11455 (w32font_open): Don't populate subranges.
11456 (w32font_has_char): Use script Lisp symbols, not subrange bitmask.
11457 (w32font_encode_char): Always return unicode code-point as-is.
11458 (w32font_text_extents): Supply a transformation matrix to
11459 GetGlyphOutline. Never look up by glyph index. Avoid looping
11460 twice. Use unicode version of GetTexExtentPoint32 instead of
11461 glyph index version.
11462 (set_fonts_frame): Remove.
11463 (w32_enumfont_pattern_entity): Add frame parameter, use it to
11464 set frame parameter. Use backward compatible fake foundries.
11465 Save generic family in extra slot under QCfamily. Make width slot
11466 constant. Save QCspacing value. Save list of scripts instead of
11467 binary subranges.
11468 (w32_generic_family, logfonts_match, font_matches_spec): New functions.
11469 (add_font_entity_to_list): Use font_callback_data struct. Filter
11470 unwanted fonts.
11471 (add_one_font_entity_to_list): Use font_callback_data struct.
11472 (w32_registry): Default to iso10646_1.
11473 (fill_in_logfont): Use dpi from extra slot. Don't bother with
11474 string font registries. Don't fill in font name if it is a generic
11475 family name, fill family instead. Use spacing, family and script
11476 extra info to fill pitch, family and charset fields.
11477 (list_all_matching_fonts): Use font_callback_data struct.
11478 (unicode_range_for_char): Remove.
11479 (font_supported_scripts): New function.
11480 (w32font_initialize): Remove.
11481 (syms_of_w32font): Update which symbols are defined.
11482
114832008-02-01 Jason Rumney <jasonr@gnu.org>
11484
11485 * font.c (font_pixel_size): Reverse assq_no_quit args.
11486
11487 * w32term.h (FONT_WIDTH): Report max width, not average.
11488 (FONT_MAX_WIDTH): Remove.
11489 (FONT_AVG_WIDTH): New macro.
11490
11491 * xfaces.c (Fx_list_fonts) [WINDOWSNT]: Remove Windows only
11492 redefinition of FONT_WIDTH.
11493
11494 * w32term.c (x_font_min_bounds): Use FONT_AVG_WIDTH.
11495 (w32_cache_char_metrics): Use FONT_WIDTH.
11496
11497 * w32fns.c (w32_load_system_font, w32_list_fonts): Use FONT_AVG_WIDTH.
11498
114992008-02-01 Jason Rumney <jasonr@gnu.org>
11500
11501 * w32font.c (w32font_open): Make lfHeight negative.
11502
11503 * w32fns.c (x_default_font_parameter): Use new style font name.
11504 (Fx_create_frame, x_create_tip_frame): Initialize resx and resy.
11505
115062008-02-01 Jason Rumney <jasonr@gnu.org>
11507
11508 * w32font.c (QCsubranges): New symbol.
11509 (w32font_open, w32font_has_char): Get subranges from subproperty
11510 of extra.
11511 (w32_enumfont_pattern_entity): Set subranges as subproperty of extra.
11512 (syms_of_w32font): Define :subranges symbol.
11513
11514 * font.c (font_put_extra): Expose externally.
11515
11516 * font.h (font_put_extra): Move declaration from font.c.
11517
11518 * font.c (Ffont_get): Use font driver to determine otf capability.
11519 (adjust_anchor): Check if driver defines anchor_point before using.
11520
11521 * w32font.c (w32font_open): Handle size, height and pixel_size better.
11522 (w32font_draw): Use options.
11523 (w32_enumfont_pattern_entity): Set size to 0 for scalable fonts.
11524 Fix detection of truetype fonts.
11525 (registry_to_w32_charset): Handle charsets other than iso8859-1
11526 expressed as lisp symbols.
11527 (w32_registry): Express charset as lisp symbol.
11528 (fill_in_logfont): Reverse pixel and point height logic.
11529 Don't set width here. Set quality to default.
11530
11531 * w32fns.c (w32_load_system_font): Fix detecting FIXED_PITCH fonts.
11532 (x_to_w32_font): Fill in lfPitchAndFamily correctly.
11533
11534 * xterm.c (x_draw_glyph_string_foreground) [USE_FONT_BACKEND]:
11535 Remove redundant loop and allocation.
11536
11537 * makefile.w32-in (font.o, w32font.o): New objects.
11538 (fontset.o, xdisp.o, xfaces.o, w32fns.o, w32term.o): Depend on font.h.
11539 (FONTOBJ): New group of objects conditioned on USE_FONT_BACKEND.
11540
11541 * xdisp.c (fill_composite_glyph_string): Make the first arg to
11542 STORE_XCHARB a valid l-value.
11543
11544 * w32term.c (w32_native_per_char_metric): Swap width and rbearing
11545 calculations for non-Truetype fonts.
11546 (x_draw_glyph_string): Sync with xterm.c.
11547 (x_draw_glyph_string_foreground) [USE_FONT_BACKEND]:
11548 Remove redundant code.
11549 (w32_initialize) [USE_FONT_BACKEND]: Call w32font_initialize.
11550
11551 * w32term.h (w32_output_data) [USE_FONT_BACKEND]: Add fontp member.
11552 (FRAME_FONT_OBJECT) [USE_FONT_BACKEND]: New macro from xterm.h.
11553
11554 * w32fns.c [USE_FONT_BACKEND]: Port font backend changes from xfns.c.
11555 (x_to_w32_charset, w32_to_x_charset): Expose externally.
11556
11557 * w32font.c: New file for w32 font backend.
11558
115592008-02-01 Kenichi Handa <handa@m17n.org>
11560
11561 * term.c: Don't include "buffer.h" twice.
11562
115632008-02-01 Kenichi Handa <handa@m17n.org>
11564
11565 * character.c (Funibyte_string): New function.
11566 (syms_of_character): Defsubr it.
11567
115682008-02-01 Jason Rumney <jasonr@gnu.org>
11569
11570 * w32term.c [USE_FONT_BACKEND]:
11571 (x_get_font_repertory, note_mouse_movement, x_set_mouse_face_gc)
11572 (x_set_glyph_string_clipping, x_set_glyph_string_clipping_exactly)
11573 (x_draw_glyph_string, x_draw_glyph_string_foreground)
11574 (x_draw_composite_glyph_string_foreground, x_new_fontset2)
11575 (x_free_frame_resources): Sync with xterm.c.
11576
115772008-02-01 Andreas Schwab <schwab@suse.de>
11578
11579 * lread.c (read1): Use CHAR_TABLE_STANDARD_SLOTS to validate
11580 char-table size.
11581
115822008-02-01 Kenichi Handa <handa@m17n.org>
11583
11584 * font.c (check_otf_features): Define it regardless of HAVE_LIBOTF.
11585
115862008-02-01 Kenichi Handa <handa@m17n.org>
11587
11588 * ftfont.c (ftfont_driver): Delete font_otf_gsub and
11589 font_otf_gpos, add font_drive_otf.
11590
11591 * fontset.c (fontset_find_font): Pay attention to font size
11592 specified for a font.
11593 (reorder_font_vector): Check contents of font_def.
11594
11595 * font.c (struct otf_list): Delete it.
11596 (otf_list): Make it a lisp variable.
11597 (otf_open): Use lispy otf_list.
11598 (generate_otf_features): Rename from parse_gsub_gpos_spec.
11599 (check_otf_features): New function.
11600 (font_otf_DeviceTable, font_otf_ValueRecord, font_otf_Anchor):
11601 New functions.
11602 (font_drive_otf): New function merging font_otf_gsub and
11603 font_otf_gpos.
11604 (font_open_for_lface): New arg spec. Change argument order.
11605 (font_load_for_face): Adjust for the change of font_open_for_lface.
11606 (Ffont_drive_otf): New function merging Ffont_otf_gsub and
11607 Ffont_otf_gpos.
11608 (syms_of_font): Staticpro otf_list. Delete defsubr of
11609 Sfont_otf_gsub and Sfont_otf_gpos. Defsubr Sfont_drive_otf.
11610
11611 * xfaces.c (set_font_frame_param): Adjust for the change of
11612 font_open_for_lface.
11613
11614 * font.h (font_open_for_lface): Adjust prototype.
11615 (struct font_driver): Delete members otf_gsub and otf_gpos, add
11616 member otf_drive.
11617 (font_otf_gsub, font_otf_gpos): Delete externs.
11618 (font_drive_otf): Extern it.
11619
116202008-02-01 Kenichi Handa <handa@m17n.org>
11621
11622 * font.c (font_at): If the window W is not on a window system,
11623 return Qnil.
11624
11625 * coding.c (produce_chars, encode_coding): Don't call
11626 insert_from_gap if no characters to produce.
11627
116282008-02-01 Kenichi Handa <handa@m17n.org>
11629
11630 * fontset.c (free_realized_fontsets): Avoid unnecessary call of
11631 Fclear_face_cache.
11632
11633 * xfaces.c (face_for_font): Check also face->font==font->font.font.
11634
116352008-02-01 Miles Bader <miles@gnu.org>
11636
11637 * emacs.c (main): Change default value of `enable_font_backend' to 1.
11638 Parse "--disable-font-backend" option.
11639 (standard_args): Add "--disable-font-backend" option.
11640
116412008-02-01 Kenichi Handa <handa@m17n.org>
11642
11643 * fontset.c (fontset_find_font): New function.
11644 (fontset_font): Use fontset_find_font.
11645 (make_fontset_for_ascii_face): Don't set face ID in rfont_def.
11646 Register the specified font for all Latin characters.
11647 (new_fontset_from_font): Register the specified font for all Latin
11648 characters.
11649 (dump_fontset): For a realized fontset, include the base fontset
11650 name in the returned vector.
11651
116522008-02-01 Kenichi Handa <handa@m17n.org>
11653
11654 * character.h (CHAR_STRING): Cast C to unsigned on calling
11655 char_string.
11656
11657 * character.c (char_string): Type of arg C changed to unsigned.
11658 Signal an error if C is an invalid character code.
11659
11660 * editfns.c (general_insert_function, Fchar_to_string):
11661 Use CHARACTERP, not INTEGERP.
11662
116632008-02-01 Kenichi Handa <handa@m17n.org>
11664
11665 * character.h (MIN_MULTIBYTE_LEADING_CODE)
11666 (MAX_MULTIBYTE_LEADING_CODE): New macros.
11667
11668 * regex.c (analyse_first): Fix for multibyte characters in "case
11669 charset:" and "case categoryspec:".
11670
116712008-02-01 Andreas Schwab <schwab@suse.de>
11672
11673 * Makefile.in (LIBES): Move standard libraries to the end.
11674
116752008-02-01 Kenichi Handa <handa@m17n.org>
11676
11677 * alloc.c (Fgarbage_collect): If nextb->text->inhibit_shrinking is
11678 nonzero, don't shrink the buffer nextb.
11679
11680 * buffer.h (struct buffer_text): New member inhibit_shrinking.
11681
11682 * coding.c (coding_alloc_by_making_gap): New arg offset.
11683 (alloc_destination): Call coding_alloc_by_making_gap with the arg
11684 offset.
11685 (decode_coding_iso_2022): Update coding->safe_charsets.
11686 (decode_coding_gap): Temporarily set
11687 current_buffer->text->inhibit_shrinking to 1.
11688
116892008-02-01 Kenichi Handa <handa@m17n.org>
11690
11691 * xterm.c (x_draw_composite_glyph_string_foreground): Fix
11692 indexing into elements of s->cmp and s->char2b.
11693
116942008-02-01 Juanma Barranquero <lekktu@gmail.com>
11695
11696 * regex.c (RE_STRING_CHAR_AND_LENGTH) [! emacs]: Add missing arg `len'.
11697
116982008-02-01 Kenichi Handa <handa@m17n.org>
11699
11700 * regex.c (GET_CHAR_BEFORE_2, GET_CHAR_AFTER): Check the variable
11701 target_multibyte instead of multibyte.
11702 (re_match_2_internal): Call bcmp_translate with target_multibyte.
11703 (bcmp_translate): Change the argument name from multibyte to
11704 target_multibyte.
11705
117062008-02-01 Kenichi Handa <handa@m17n.org>
11707
11708 These changes are to compile a regexp into a pattern that can be
11709 used both for multibyte and unibyte targets.
11710
11711 * Makefile.in (search.o): Depend on charset.h.
11712
11713 * character.c (multibyte_char_to_unibyte_safe): New function.
11714
11715 * search.c: Include "charset.h".
11716 (compile_pattern_1): Delete argument multibyte. Don't set
11717 cp->buf.target_multibyte here. Set cp->buf.charset_unibyte.
11718 (compile_pattern): Don't compare cp->buf.target_multibyte.
11719 Compare cp->buf.charset_unibyte.
11720 (compile_pattern): Set cp->buf.target_multibyte.
11721
11722 * lisp.h (multibyte_char_to_unibyte_safe): Extern it.
11723
11724 * regex.h (struct re_pattern_buffer): New member charset_unibyte.
11725
11726 * regex.c (RE_STRING_CHAR, RE_STRING_CHAR_AND_LENGTH): New arg
11727 multibyte. Change callers.
11728 (RE_CHAR_TO_MULTIBYTE, RE_CHAR_TO_UNIBYTE): New macros.
11729 (MAKE_CHAR_MULTIBYTE, MAKE_CHAR_UNIBYTE): Delete. Change callers
11730 to use RE_CHAR_TO_MULTIBYTE and RE_CHAR_TO_UNIBYTE, respectively.
11731 (SETUP_ASCII_RANGE, SETUP_UNIBYTE_RANGE): New macros.
11732 (SETUP_MULTIBYTE_RANGE): Generate a more compact range_table.
11733 (regex_compile): Make the compiled pattern usable both for
11734 multibyte and unibyte targets.
11735 (analyse_first): Make the fastmap usable both for multibyte and
11736 unibyte targets.
11737 (TRANSLATE_VIA_MULTIBYTE): Delete.
11738 (re_match_2_internal): Pay attention to the case that the
11739 multibyteness of bufp and target may be different.
11740
117412008-02-01 Kenichi Handa <handa@m17n.org>
11742
11743 * xdisp.c (x_produce_glyphs): When a font is not found, make the
11744 empty box occupy at least one column width.
11745
117462008-02-01 Miles Bader <miles@gnu.org>
11747
11748 * Makefile.in: Remove redundant HAVE_XFT clause.
11749
117502008-02-01 Kenichi Handa <handa@m17n.org>
11751
11752 * xrdb.c (x_load_resources): Setup the default fontSet X resource.
11753
117542008-02-01 Kenichi Handa <handa@m17n.org>
11755
11756 * fontset.c (Finternal_char_font): Fix for the case of POSITION
11757 being nil.
11758
117592008-02-01 Kenichi Handa <handa@m17n.org>
11760
11761 * xftfont.c (xftfont_open): Call FcConfigSubstitute.
11762
117632008-02-01 Kenichi Handa <handa@m17n.org>
11764
11765 * xftfont.c (xftfont_open): Don't enable antialias explicitly.
11766
117672008-02-01 Kenichi Handa <handa@m17n.org>
11768
11769 * search.c (simple_search): Fix previous change.
11770
117712008-02-01 Kenichi Handa <handa@m17n.org>
11772
11773 * xftfont.c (ftfont_font_format): Extern declaration.
11774
11775 * frame.c (x_set_font): Fix the second arg to fs_query_fontset.
11776
11777 * xfont.c (xfont_driver): Initialize ftfont_driver.type by 0.
11778 (xfont_list): Don't directly use Lisp_Object as an operand of &&.
11779
11780 * ftfont.c (ftfont_driver): Initialize ftfont_driver.type by 0.
11781 (ftfont_font_format): Fix previous change.
11782
11783 * font.h (Ffont_xlfd_name): EXFUN it.
11784
11785 * font.c (font_parse_xlfd): Fix the array size of `f'.
11786 (register_font_driver): Use EQ to compare driver->type.
11787
11788 * xfns.c (xic_create_xfontset2) [USE_FONT_BACKEND]: New function.
11789 (create_frame_xic) [USE_FONT_BACKEND]: Call xic_create_xfontset2.
11790 (xic_set_xfontset) [USE_FONT_BACKEND]: Likewise.
11791
117922008-02-01 Kenichi Handa <handa@m17n.org>
11793
11794 * ftfont.c (ftfont_pattern_entity, ftfont_list_generic_family)
11795 (ftfont_list, ftfont_font_format): Check if FC_FONTFORMAT is defined.
11796
117972008-02-01 Kenichi Handa <handa@m17n.org>
11798
11799 * xfont.c (xfont_open): Set font->format.
11800
11801 * xftfont.c (xftfont_open): Set font->format.
11802
11803 * ftfont.c (ftfont_pattern_entity): Add fontformat in a pattern.
11804 (ftfont_list): Include FC_FONTFORMAT in FcObject.
11805 (ftfont_open): Set font->format.
11806 (ftfont_font_format): New function.
11807
11808 * font.h (struct font): New member format.
11809
11810 * font.c (Qopentype): New variable.
11811 (syms_of_font): Defsym it.
11812 (Fquery_font): Change the format of the last element of the return
11813 value.
11814
118152008-02-01 Kenichi Handa <handa@m17n.org>
11816
11817 * xfns.c (xic_create_xfontset): Try the default fontset name as a
11818 last resort.
11819
118202008-02-01 Kenichi Handa <handa@m17n.org>
11821
11822 * coding.c (detect_coding_charset): Fix detection of multi-byte
11823 charset.
11824
118252008-02-01 Bob Halley <halley@play-bow.org> (tiny change)
11826
11827 * ccl.c (ccl_driver): If DST is NULL, set ccl->produced to 0.
11828
118292008-02-01 Kenichi Handa <handa@m17n.org>
11830
11831 * xdisp.c (get_next_display_element): Set it->face_id for the
11832 first component of a composition.
11833 (x_produce_glyphs): Check if the font is changed or not for composition.
11834
118352008-02-01 Kenichi Handa <handa@m17n.org>
11836
11837 * fontset.c (Qlatin): New variable.
11838 (syms_of_fontset): Define it as a lisp symbol.
11839 (Fset_fontset_font): If TARGET is `latin', use FONT_SPEC for ASCII.
11840
118412008-02-01 Kenichi Handa <handa@m17n.org>
11842
11843 * font.c (font_unparse_fcname): Pay attention to the case that
11844 some of font property is a null string.
11845
118462008-02-01 Kenichi Handa <handa@m17n.org>
11847
11848 * term.c: Include "composite.h".
11849 (encode_terminal_code): Output all components of composition.
11850 Check the size of encode_terminal_src.
11851 (produce_glyphs): For composition, call produce_composite_glyph.
11852 (append_composite_glyph, produce_composite_glyph): New functions.
11853
11854 * xdisp.c (x_produce_glyphs): In handling composition, if a font
11855 is not found, get font_info from the current ascii face.
11856
118572008-02-01 Kenichi Handa <handa@m17n.org>
11858
11859 * fileio.c (Finsert_file_contents): On replacing, temporarily bind
11860 buffer-file-name to Qnil before calling insert_from_buffer.
11861
11862 * font.c (font_unparse_fcname): Pay attention to the case that
11863 foundry is a null string.
11864
118652008-02-01 Kenichi Handa <handa@m17n.org>
11866
11867 * ftfont.c (ftfont_list): Allow registry "unicode-sip".
11868
11869 * font.c (Qunicode_sip): New variable.
11870 (syms_of_font): Declare it as a Lisp symbol.
11871
11872 * font.h (Qunicode_sip): Extern it.
11873
118742008-02-01 Kenichi Handa <handa@m17n.org>
11875
11876 * composite.c (get_composition_id): Pay attention to TAB component.
11877
11878 * xterm.c (x_draw_composite_glyph_string_foreground): Don't draw
11879 TAB. Adjust for the change of s->char2b which always points to
11880 the first element of allocated memory.
11881
11882 * xftfont.c (xftfont_text_extents): Fix calculation of descent value.
11883
11884 * xdisp.c (handle_composition_prop): Set it->c to the first
11885 non-TAB component.
11886 (fill_composite_glyph_string): Change argument.
11887 (BUILD_COMPOSITE_GLYPH_STRING): Adjust for the above change.
11888 (x_produce_glyphs): Fix handling of left/right padding.
11889
118902008-02-01 Kenichi Handa <handa@m17n.org>
11891
11892 * coding.c (detect_coding_system): Fix for handling off
11893 inhibit_iso_escape_detection. Fix for the case that no coding
11894 system is defined for a specific coding category.
11895
118962008-02-01 Kenichi Handa <handa@m17n.org>
11897
11898 * font.c (font_matching_entity): Delete unused local var.
11899
11900 * xftfont.c (xftfont_open): Call XftDefaultSubstitute before
11901 opening a font.
11902
11903 * fileio.c (Finsert_file_contents): On recovering a file, assume
11904 Unix-like eol.
11905 (choose_write_coding_system): On auto-saving a file, force
11906 Unix-like eol.
11907
11908 * coding.c (setup_coding_system): Fix setting of
11909 coding->common_flags based on eol_type.
11910 (coding_inherit_eol_type): If PARENT is not nil, be sure to
11911 inherit from it.
11912
119132008-02-01 Kenichi Handa <handa@m17n.org>
11914
11915 * alloc.c (NSTATICS): Increas to 0x600.
11916
119172008-02-01 Kenichi Handa <handa@m17n.org>
11918
11919 * ftfont.c (ftfont_driver): Set ftfont_driver.match to ftfont_match.
11920 (ftfont_list): Don't check :name property.
11921 (ftfont_match): New function.
11922 (ftfont_pattern_entity): If the pattern doesn't contain
11923 FC_SPACING, don't assume FC_MONO.
11924
11925 * font.h (struct font_driver): New member `match'.
11926 (font_update_drivers): Adjust prototype.
11927
11928 * font.c (font_parse_fcname, font_parse_name): Don't change :name
11929 property of FONT.
11930 (LGSTRING_HEADER_SIZE, LGSTRING_GLYPH_SIZE, check_gstring): Define
11931 them unconditionally.
11932 (font_matching_entity): New function.
11933 (font_open_by_name): Try font_matching_entity if exact match is
11934 not found.
11935 (font_update_drivers): Delete the arg FONT. Return a list of
11936 actually used backends. Don't free faces, font caches here.
11937 Don't store data in frame parameters. Don't call x_set_font.
11938 (Ffont_spec): Store :name property as is.
11939 (Ffont_get): Check HAVE_LIBOTF before calling font_otf_capability.
11940 (Ffont_otf_gsub): Call font->driver->otf_gsub instead of font_otf_gsub.
11941 (Ffont_otf_gpos): Call font->driver->otf_gpos instead of font_otf_gpos.
11942 (Ffont_otf_alternates): Check if the driver has otf_gsub function.
11943 Call font->driver->otf_gsub instead of font_otf_gsub.
11944
11945 * frame.c (x_set_font_backend): Do more works that were done in
11946 font_update_drivers before.
11947
11948 * xfont.c (xfont_match): New function.
11949 (xfont_driver): Set xfont_driver.match to xfont_match.
11950 (xfont_draw): Set font in GC if necessary.
11951
11952 * ftxfont.c (ftxfont_match): New function.
11953 (syms_of_ftxfont): Set ftxfont_driver.match to ftxfont_match.
11954
11955 * xftfont.c (xftfont_match): New function.
11956 (syms_of_xftfont): Set xftfont_driver.match to xftfont_match.
11957
119582008-02-01 Kenichi Handa <handa@m17n.org>
11959
11960 * font.h (struct font): New member scalable.
11961 (struct font_driver): New arg ALTERANTE_SUBST to otf_gsub.
11962 (font_otf_gsub): Adjust prototype.
11963
11964 * font.c (font_otf_capability): Fix handling of the default langsys.
11965 (parse_gsub_gpos_spec): Change type to void. New arg nbytes.
11966 Check the contents of SPEC.
11967 (LGSTRING_HEADER_SIZE, LGSTRING_GLYPH_SIZE): New macros.
11968 (check_gstring): New function.
11969 (REPLACEMENT_CHARACTER): New macro.
11970 (font_otf_gsub): New arg alternate_subst. Be sure to set all
11971 glyph codes of GSTRING.
11972 (font_otf_gpos): Be sure to set all glyph codes of GSTRING.
11973 (font_prepare_composition): Set cmp->glyph_len.
11974 (font_open_entity): Set font->scalable.
11975 (Ffont_get): Handle :otf property.
11976 (Ffont_otf_gsub, Ffont_otf_gpos, Ffont_otf_alternates): New
11977 functions.
11978 (Fquery_font): Use font->font.full_name.
11979 (syms_of_font): Defsubr Sfont_otf_gsub, Sfont_otf_gpos, and
11980 Sfont_otf_alternates.
11981
11982 * ftfont.c (ftfont_open): Set font->font.full_name and
11983 font->font.name properly. Fix calculation of font->font.height
11984 and font->min_width.
11985
11986 * ftxfont.c (ftxfont_create_gcs): New function.
11987 (ftxfont_draw_bitmap): Fix arg to ftfont_driver.get_bitmap.
11988 (ftxfont_draw_backgrond): Fix filling region.
11989 (ftxfont_default_fid): New function.
11990 (ftxfont_open): Set xfont->fid to the return value of
11991 ftxfont_default_fid.
11992 (ftxfont_prepare_face): Use ftxfont_create_gcs to create GCs.
11993 (ftxfont_done_face): Free only GCs that are created by
11994 ftxfont_create_gcs.
11995 (ftxfont_draw): If face->gc != s->gc, create proper GCs.
11996
11997 * xterm.c (x_set_glyph_string_clipping_exactly) [USE_FONT_BACKEND]:
11998 Clip to src->width, etc (not src->clip_XXX).
11999
12000 * xfns.c (x_create_tip_frame) [USE_FONT_BACKEND]: Handle
12001 FontBackend frame parameter.
12002
120032008-02-01 Kenichi Handa <handa@m17n.org>
12004
12005 * font.h (struct font_driver_list): New member `on'.
12006 (Fclear_font_cache): EXFUN it.
12007 (font_update_drivers): Extern it.
12008
12009 * font.c (font_unparse_fcname): Fix typo (swidth->width).
12010 (font_list_entities): Check driver_list->on.
12011 (register_font_driver): Initalize `on' member to 0.
12012 (font_update_drivers): New function.
12013 (Fclear_font_cache): Check driver_list->on.
12014
12015 * frame.h (Qfont_backend): Extern it.
12016 (x_set_font_backend): Extern it.
12017
12018 * frame.c (Qfont_backend): New variable.
12019 (frame_parms): New element for font-backend.
12020 (x_set_font_backend): New function.
12021
12022 * xfns.c (Fx_create_frame) [USE_FONT_BACKEND]: Handle
12023 FontBackend frame parameter.
12024 (x_frame_parm_handlers) [USE_FONT_BACKEND]: New element
12025 x_set_font_backend.
12026
12027 * xfont.c (xfont_list): Don't try listing by :name property if the
12028 name is not for XLFD.
12029
120302008-02-01 Kenichi Handa <handa@m17n.org>
12031
12032 * font.h (LGLYPH_FROM, LGLYPH_TO, LGLYPH_SET_FROM)
12033 (LGLYPH_SET_TO): New macros.
12034 (LGLYPH_XOFF, LGLYPH_YOFF, LGLYPH_WADJUST): Check if adjustment
12035 element of G is vector or not.
12036 (font_at): Extern it.
12037
12038 * font.c: Include window.h.
12039 (font_lispy_object): New function.
12040 (font_prepare_composition): Check LGLYPH_FORM (g) to detect the
12041 end of valid glyph.
12042 (font_close_object): Fix getting (struct font *).
12043 (font_at): New function.
12044 (Ffont_get): If FONT is a font-object, get entity from it.
12045 (Ffont_make_gstring): Initialize elements of glyphs with nil.
12046 (Ffont_fill_gstring): Use macro LGSTRING_XXX and LGLYPH_XXX. Fix
12047 range check.
12048 (Ffont_at): New function.
12049 (syms_of_font): Defsubr Sfont_at.
12050
12051 * xdisp.c (it_props): Move the entry for Qauto_composed to just
12052 before the entry for Qcomposition.
12053 (handle_auto_composed_prop): Call auto-composition-function with 4 args.
12054 (handle_composition_prop) [USE_FONT_BACKEND]: Set it->face_id from
12055 the font in gstring.
12056 (fill_composite_glyph_string) [USE_FONT_BACKEND]: Check
12057 LGLYPH_FORM (g) to detect the end of valid glyph.
12058 (x_produce_glyphs) [USE_FONT_BACKEND]: Don't update it->face_id if
12059 we are composing with gstring.
12060
12061 * xterm.c (x_draw_composite_glyph_string_foreground) [USE_FONT_BACKEND]:
12062 Check if adjustment is vector or not.
12063
12064 * Makefile.in (font.o): Make it depends on window.h.
12065
120662008-02-01 Kenichi Handa <handa@m17n.org>
12067
12068 * xterm.c (x_draw_composite_glyph_string_foreground): Check if
12069 adjustment is vector or not.
12070
120712008-02-01 Miles Bader <miles@gnu.org>
12072
12073 * character.h (CHECK_CHARACTER): Redefine in terms of CHECK_TYPE.
12074
120752008-02-01 Kenichi Handa <handa@m17n.org>
12076
12077 * font.h (LGLYPH_XOFF, LGLYPH_YOFF, LGLYPH_WIDTH, LGLYPH_WADJUST)
12078 (LGLYPH_SET_WIDTH): Adjusted for the change of LGLYPH format.
12079 (LGLYPH_ADJUSTMENT, LGLYPH_SET_ADJUSTMENT): New macros.
12080
12081 * font.c (font_merge_old_spec): Treat '*' in foundry as a wild card.
12082 (DEVICE_DELTA): Fix typo.
12083 (font_otf_gpos, font_prepare_compositio): Adjust for the change of
12084 LGLYPH format.
12085
12086 * xterm.c (x_draw_composite_glyph_string_foreground): Adjust for
12087 the change of LGLYPH format.
12088
120892008-02-01 Kenichi Handa <handa@m17n.org>
12090
12091 * ftfont.c (ftfont_list): Fix typo.
12092 (ftfont_build_basic_charsets): Don't include letters with diacritics.
12093
120942008-02-01 Jan Djärv <jan.h.d@swipnet.se>
12095
12096 * xfaces.c (realize_non_ascii_face): Set face->extra to NULL.
12097
12098 * xftfont.c (xftfont_done_face): Call XftDrawDestroy only if
12099 xftface_info is non-NULL.
12100
121012008-02-01 Jan Djärv <jan.h.d@swipnet.se>
12102
12103 * ftfont.c (ftfont_list): Move misplaced #endif.
12104
121052008-02-01 Kenichi Handa <handa@m17n.org>
12106
12107 * ftfont.c (ftfont_list): Pay attention to the case that
12108 FC_CAPABILITY is not defined.
12109
121102008-02-01 Kenichi Handa <handa@m17n.org>
12111
12112 * xftfont.c (xftfont_open): Set charset related members to -1.
12113
12114 * ftfont.c (ftfont_list): Handle QCotf property. Fix handling of
12115 QCname.
12116 (ftfont_open): Set charset related members to -1.
12117
12118 * fontset.c (Votf_script_alist): New variable.
12119 (syms_of_fontset): Initialize it.
12120 (fontset_font): Delete unused variable.
12121
12122 * fontset.h (Votf_script_alist): Extern it.
12123
12124 * font.c (font_find_for_lface): Optimize code.
12125
12126 * font.h (font_close_object, font_merge_old_spec): Extern them.
12127
121282008-02-01 Kenichi Handa <handa@m17n.org>
12129
12130 * font.c (QCscalable, Qc, Qm, Qp, Qd): New variables.
12131 (syms_of_font): Initialize them.
12132 (font_pixel_size): Allow float value in dpi.
12133 (font_prop_validate_type): Delete.
12134 (font_prop_validate_symbol, font_prop_validate_style): Change argument.
12135 Change caller.
12136 (font_prop_validate_non_neg): Rename from font_prop_validate_size.
12137 (font_prop_validate_extra): Delete.
12138 (font_prop_validate_spacing): New function.
12139 (font_property_table): Add elements for all known properties.
12140 (get_font_prop_index): Rename from check_font_prop_name. New
12141 argument FROM. Change caller.
12142 (font_prop_validate): Validate all known properties.
12143 (font_put_extra): Delete argument force. Change caller.
12144 (font_expand_wildcards): Make it static. Fix the way of shrinking
12145 the possible range.
12146 (font_parse_xlfd): Delete argument merge. Fix handling of RESX,
12147 RESY, SPACING, and AVGWIDTH. Don't validate property values here.
12148 Change caller.
12149 (font_unparse_xlfd): Handle dpi, spacing, and scalable properties.
12150 (font_parse_fcname): Delete argument merge. Fix parsing of point
12151 size. Don't validate properties values here. Change caller.
12152 (font_unparse_fcname): Handle dpi, spacing, and scalable properties.
12153 (font_open_by_name): Delete unused variable.
12154 (Ffont_spec): Likewise. Validate property values.
12155 (Ffont_match_p): New function.
12156
12157 * font.h (QCscalable): Extern it.
12158 (font_parse_xlfd, font_parse_fcname): Adjust prototype.
12159
12160 * ftfont.c (ftfont_list): Handle properties dpi, spacing, and scalable.
12161
12162 * xfont.c (xfont_query_font): Adjust for the change of font_parse_xlfd.
12163 (xfont_list_pattern): New function.
12164 (xfont_list): Use xfont_list_pattern.
12165
121662008-02-01 Kenichi Handa <handa@m17n.org>
12167
12168 * font.h (Flist_fonts): EXFUN it.
12169
121702008-02-01 Jason Rumney <jasonr@gnu.org>
12171
12172 * w32term.c (w32_initialize): Add back smoothing_type and
12173 smoothing_enabled definitions.
12174
121752008-02-01 Kenichi Handa <handa@m17n.org>
12176
12177 * xterm.c (x_draw_glyph_string) [USE_FONT_BACKEND]: Check
12178 s->face->font on determining underline position.
12179
121802008-02-01 Kenichi Handa <handa@m17n.org>
12181
12182 * font.c (font_parse_xlfd): Fix generating of CHARSET_REGISTRY field.
12183 (font_has_char): Accept font-object too.
12184 (font_find_for_lface): Try at first with a size specified in face.
12185
121862008-02-01 Kenichi Handa <handa@m17n.org>
12187
12188 * frame.c (x_set_font) [USE_FONT_BACKEND]: Fix argument to
12189 font_open_by_name.
12190
121912008-02-01 Kenichi Handa <handa@m17n.org>
12192
12193 * font.h (QCspacing, QCdpi): Extern them.
12194 (enum font_spacing): New enum.
12195 (FONT_PIXEL_SIZE_QUANTUM): New macro.
12196
12197 * font.c (POINT_TO_PIXEL): Don't divide POINT by 10.
12198 (QCspacing, QCdpi): New variables.
12199 (syms_of_font): Initialize them.
12200 (font_pixel_size): New function.
12201 (font_put_extra): New function.
12202 (font_parse_xlfd): Fix handling of font size. Add QCdpi property
12203 in FONT_EXTRA.
12204 (font_parse_fcname): Handle enumerated values (e.g. bold).
12205 Fix handling font size. Add QCname property that contains only
12206 unknown properties.
12207 (font_score): Change argument. Change caller. Pay attention to
12208 FONT_PIXEL_SIZE_QUANTUM.
12209 (font_sort_entites, font_list_entities, font_find_for_lface)
12210 (font_open_for_lface, font_open_by_name): Fix handling of font size.
12211 (Ffont_spec): Add QCname property that contains only unknown properties.
12212
12213 * ftfont.c (ftfont_list): Use assq_no_quit, not Fassq. Don't
12214 include weight in listing pattern, instead check weight of each
12215 listed font. Don't include scalable in pattern. Pay attention to
12216 FONT_PIXEL_SIZE_QUANTUM.
12217
122182008-02-01 Kenichi Handa <handa@m17n.org>
12219
12220 * font.c (font_parse_fcname): Fix parsing of point-size.
12221 (font_unparse_fcname): Produce symbolic names for style properties.
12222 (font_list_entities): Handle float size correctly.
12223 (font_open_by_name): Prefer `normal' property values if the name
12224 doesn't specify them.
12225
12226 * fontset.c (Finternal_char_font): Use font_get_name, not
12227 Ffont_xlfd_name.
12228
12229 * ftfont.c (ftfont_pattern_entity): Use the numeric value 100 for
12230 FC_WEIGHT_REGULAR. Exclude FC_SIZE and FC_PIXEL_SIZE from listing
12231 pattern. Don't force scalable.
12232
12233 * xftfont.c (xftfont_open): For generating a name, start from
12234 96-byte buffer.
12235
122362008-02-01 Jan Djärv <jan.h.d@swipnet.se>
12237
12238 * frame.h (x_new_fontset2): Fix prototype.
12239
122402008-02-01 Kenichi Handa <handa@m17n.org>
12241
12242 * font.h (struct font_driver): Delete member parse_name.
12243 (font_match_p, font_get_spec, font_parse_fcname)
12244 (font_unparse_fcname): Extern them.
12245 (font_get_name): Adjust prototype.
12246
12247 * font.c (XLFD_SMALLNUM_MASK): Delete this macro.
12248 (XLFD_LARGENUM_MASK): Delete XLFD_ENCODING_MASK from it.
12249 (font_expand_wildcards): Fix handling ENCODING field. Avoid
12250 unnecessary checks for weight, slant, and swidth.
12251 (font_parse_fcname): New function.
12252 (font_unparse_fcname): New function.
12253 (font_parse_name): New function.
12254 (font_match_p): New function.
12255 (font_get_name): Change return value to Lisp string.
12256 (font_get_spec): New function.
12257 (Qunspecified, Qignore_defface): Don't extern them.
12258 (font_find_for_lface): Assume that LFACE is fully specified.
12259 (font_load_for_face): If lface[LFACE_FONT_INDEX] is an font
12260 object, use it for FACE.
12261 (font_open_by_name): Call Ffont_spec with QCname prop. Don't call
12262 driver->parse_name.
12263 (Ffont_spec): Call font_parse_name, not font_parse_xlfd.
12264
12265 * fontset.h (new_fontset_from_font) [USE_FONT_BACKEND]: Adjust
12266 prototype.
12267
12268 * fontset.c (new_fontset_from_font) [USE_FONT_BACKEND]: Delete
12269 argument F. Don't call Fnew_fontset. Instead, directly call
12270 make_fontset.
12271
12272 * frame.h (x_new_fontset2) [USE_FONT_BACKEND]: Adjust prototype.
12273
12274 * frame.c (x_set_font) [USE_FONT_BACKEND]: Adjust for the change
12275 of x_new_fontset2.
12276
12277 * ftfont.c (Qmonospace, Qsans_serif, Qserif, Qmono, Qsans)
12278 (Qsans__serif): New variables.
12279 (ftfont_generic_family_list): New variable.
12280 (syms_of_ftfont): Initialize the above variables.
12281 (ftfont_pattern_entity): Delete argument NAME.
12282 (ftfont_list_generic_family): New function.
12283 (ftfont_parse_name): Delete this function.
12284 (ftfont_list): Try generic family only when FcFontList found no font.
12285 (ftfont_list_family): Fix args to FcObjectSetBuild.
12286
12287 * xfaces.c (check_lface_attrs) [USE_FONT_BACKEND]: Accept font
12288 object in attrs[LFACE_FONT_INDEX].
12289 (set_lface_from_font_name): Cancel all changes for font-backend.
12290 (set_lface_from_font_and_fontset) [USE_FONT_BACKEND]: New
12291 function.
12292 (Finternal_set_lisp_face_attribute) [USE_FONT_BACKEND]: Accept a
12293 font object in QCfont attribute.
12294 (set_font_frame_param) [USE_FONT_BACKEND]: Likewise.
12295 (realize_default_face) [USE_FONT_BACKEND]: Call
12296 set_lface_from_font_and_fontset.
12297
12298 * xfns.c (x_default_font_parameter) [USE_FONT_BACKEND]: Try also
12299 "fixed", and signal error here if no suitable font was found.
12300
12301 * xfont.c (xfont_parse_name): Delete this function.
12302
12303 * xftfont.c (xftfont_open): Change coding style of error
12304 handling. Generate fontconfig's fontname pattern.
12305
12306 * xterm.h (struct x_output) [USE_FONT_BACKEND]: New member fontp.
12307 (FRAME_FONT_OBJECT) [USE_FONT_BACKEND]: New macro.
12308
12309 * xterm.c (x_new_fontset2) [USE_FONT_BACKEND]: Change arguments.
12310 Both args FONTSET and FONT_OBJECT must be existing ones.
12311
123122008-02-01 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
12313
12314 * macterm.c (mac_set_unicode_keystroke_event): Don't use MAKE_CHAR.
12315
123162008-02-01 Kenichi Handa <handa@m17n.org>
12317
12318 * xfont.c (xfont_open, xfont_encode_char): Fix typo.
12319
12320 * font.h (struct font): Fix typo.
12321
12322 * font.c (enum xlfd_field_index): Rename XLFD_XXX_SIZE_INDEX to
12323 XLFD_XXX_INDEX.
12324 (enum xlfd_field_mask): New enum.
12325 (intern_font_field): Changed argument. Change caller. If digits
12326 are followed by non-digits, return a symbol.
12327 (font_expand_wildcards): New function.
12328 (font_parse_xlfd): Fix wildcard handling.
12329 (Ffont_spec): If :name is specified, reflect the info in the other
12330 properties.
12331
12332 * ftfont.c (ftfont_pattern_entity): Fix typo.
12333 (ftfont_list): Enforce FC_LANG in PATTERN to cancel the effect of
12334 locale.
12335
123362008-02-01 Kenichi Handa <handa@m17n.org>
12337
12338 * font.h (Qiso8859_1, Qiso10646_1, Qunicode_bmp): Extern them.
12339
12340 * font.c (Qiso8859_1, Qiso10646_1, Qunicode_bmp): Move from ftfont.c.
12341 (font_unparse_xlfd): Fix argument type declaration. Append "*" if
12342 registry doesn't specify encoding part.
12343 (font_find_for_lface): Pay attention to LFACE_FONT_INDEX.
12344 (font_open_by_name): At first try parsing the name.
12345 (syms_of_font): Declare Qiso8859_1, Qiso10646_1, and Qunicode_bmp
12346 as Lisp symbols.
12347
12348 * fontset.c (reorder_font_vector): Pay attention to the case that
12349 the 3rd element of font_def is nil.
12350 (fontset_font): For the default fontset, append one more fontset
12351 elements for a script-based font specification. Don't add script
12352 attribute on finding a font.
12353 (new_fontset_from_font): Unconditionally set FONTSET_ASCII to the
12354 font name.
12355 (fontset_ascii_font): If a font can't be opened, return nil.
12356
12357 * ftfont.c (Qiso8859_1, Qiso10646_1, Qunicode_bmp): Move to font.c.
12358 (ftfont_pattern_entity): New function.
12359 (ftfont_get_cache): Assume that freetype_font_cache is already
12360 initialized.
12361 (ftfont_list): Handle the case that a file is specified in font
12362 name. Use ftfont_pattern_entity to generate entities.
12363 (ftfont_has_char): Check if the pattern contains FC_CHARSET.
12364 (syms_of_ftfont): Initialize freetype_font_cache.
12365
12366 * xftfont.c (xftfont_open): Make the font name fontconfig's
12367 style. Add BLOCK_INPUT and UNBLOCK_INPUT.
12368 (xftfont_close): Free font->font.name if not NULL.
12369
12370 * xfont.c (xfont_list): If script is specified for a font, return
12371 null_vector.
12372 (xfont_list_family): Declare argument type.
12373
12374 * xfaces.c (set_lface_from_font_name): If a font doesn't have a
12375 name, set LFACE_FONT (lface) to nil.
12376
12377 * xterm.c (x_new_fontset2): If an ASCII font couldn't be loaded,
12378 return Qnil.
12379
123802008-02-01 Kenichi Handa <handa@m17n.org>
12381
12382 * emacs.c (main): Check -enable-font-backend arg after the check of -nl.
12383 (standard_args): Add "-enable-font-backend".
12384
123852008-02-01 Kenichi Handa <handa@m17n.org>
12386
12387 * xftfont.c (xftfont_default_fid): Set fid_known to 1.
12388 (struct xftdraw_list, xftdraw_list): Delete them.
12389 (register_xftdraw, check_xftdraw): Delete them.
12390 (xftfont_prepare_face): Don't call register_xftdraw.
12391 (xftfont_done_face): Don't call check_xftdraw.
12392 (xftfont_draw): Get background color only when with_background is
12393 nonzero.
12394
12395 * xfont.c (xfont_encode_char): Fix calculation of char2b.
12396
123972008-02-01 Kenichi Handa <handa@m17n.org>
12398
12399 These changes are for the new font handling codes.
12400
12401 * Makefile.in (ALL_CFLAGS): Add @FREETYPE_CFLAGS@,
12402 @FONTCONFIG_CFLAGS@, and @LIBOTF_CFLAGS@.
12403 (LIB_X11_LIB): If HAVE_XFT is defined, set to @XFT_LIBS@.
12404 (FONTSRC, FONTOBJ): New variables.
12405 (obj): Add $(FONTOBJ).
12406 (SOME_MACHINE_OBJECTS): Lib_X11_Lib.
12407 (LIBES): Add @FREETYPE_LIBS@, @FONTCONFIG_LIBS@, and
12408 @LIBOTF_LIBS@.
12409 (font.o, ftfont.o, xfont.o, xftfont.o, ftxfont.o): New targets.
12410 (fontset.o, xdisp.o, xfaces.o, xfns.o, xterm.o): Depend on $(FONTSRC).
12411
12412 * font.h, font.c, xfont.c, ftfont.c, xftfont.c, ftxfont.c: New files.
12413
12414 * character.h (Vscript_representative_chars): Extern it.
12415
12416 * character.c (Vscript_representative_chars): New variable.
12417 (syms_of_character): Declare it as a Lisp variable.
12418
12419 * composite.c (get_composition_id) [USE_FONT_BACKEND]: If
12420 enable_font_backend is nonzero, accept the composition method
12421 COMPOSITION_WITH_GLYPH_STRING.
12422
12423 * composite.h (enum composition_method) [USE_FONT_BACKEND]: New
12424 enumeration COMPOSITION_WITH_GLYPH_STRING.
12425
12426 * dispextern.h (struct glyph_string) [USE_FONT_BACKEND]: New
12427 members clip_x, clip_y, clip_width, and clip_height.
12428 (struct face) [USE_FONT_BACKEND]: New members font_info and extra.
12429
12430 * emacs.c (main) [USE_FONT_BACKEND]: Handle arg
12431 --enable-font-backend. Call syms_of_font.
12432
12433 * fns.c (assoc_no_quit): New function.
12434
12435 * fontset.h (FONT_INFO_FROM_FACE): New macro.
12436 (face_for_font, new_fontset_from_font)
12437 (fontset_ascii_font) [USE_FONT_BACKEND]: Extern them.
12438
12439 * fontset.c [USE_FONT_BACKEND]: Include "font.h".
12440 (fontset_font, fontset_ascii, face_for_char)
12441 (make_fontset_for_ascii_face, Ffont_info)
12442 (Finternal_char_font) [USE_FONT_BACKEND]: If enable_font_backend
12443 is nonzero, use font-backend mechanism.
12444 (find_font_encoding): Make it non-static.
12445 (new_fontset_from_font, fontset_ascii_font) [USE_FONT_BACKEND]:
12446 New functions.
12447
12448 * frame.h (struct frame): New members resx and resy.
12449 (struct frame) [USE_FONT_BACKEND]: New member font_driver_list.
12450 (x_new_fontset2) [USE_FONT_BACKEND]: Extern it.
12451
12452 * frame.c [USE_FONT_BACKEND]: Include "font.h".
12453 (make_frame, x_set_font) [USE_FONT_BACKEND]: Use font-backend mechanism.
12454
12455 * lisp.h (assoc_no_quit): Extern it.
12456
12457 * xdisp.c: If USE_FONT_BACKEND is defined, include "font.h".
12458 Through out the file, use FONT_INFO_FROM_FACE instead of
12459 FONT_INFO_FROM_ID, use get_per_char_metric instead of
12460 rif->per_char_metric.
12461 (handle_composition_prop) [USE_FONT_BACKEND]: If the composition
12462 method is COMPOSITION_WITH_GLYPH_STRING, just set it->c to ' '.
12463 (get_glyph_face_and_encoding, fill_composite_glyph_string)
12464 (get_char_face_and_encoding, BUILD_COMPOSITE_GLYPH_STRING)
12465 (x_produce_glyphs) [USE_FONT_BACKEND]: If enable_font_backend is
12466 nonzero, use font-backend mechanism.
12467 (get_per_char_metric): New function.
12468
12469 * xfaces.c [USE_FONT_BACKEND]: Include "font.h".
12470 (set_lface_from_font_name)
12471 (set_font_frame_param, free_realized_face)
12472 (prepare_face_for_display, clear_face_gcs)
12473 (Finternal_set_font_selection_order, realize_x_face)
12474 [USE_FONT_BACKEND]: If enable_font_backend is nonzero, use
12475 font-backend mechanism.
12476 (clear_face_cache) [USE_FONT_BACKEND]: Don't call clear_font_table.
12477 (load_face_font) [USE_FONT_BACKEND]: Abort.
12478 (face_symbolic_value, face_symbolic_weight, face_symbolic_slant)
12479 (face_symbolic_swidth, face_for_font) [USE_FONT_BACKEND]: New functions.
12480
12481 * xfns.c [USE_FONT_BACKEND]: Include "font.h".
12482 (x_default_font_parameter) [USE_FONT_BACKEND]: New function.
12483 (Fx_create_frame) [USE_FONT_BACKEND]: If enable_font_backend is
12484 nonzero, register all available font drivers. Call
12485 x_default_font_parameter for deciding a font.
12486 (x_create_tip_frame) [USE_FONT_BACKEND]: Likewise.
12487
12488 * xterm.c [USE_FONT_BACKEND]: Include "font.h".
12489 (x_set_mouse_face_gc, x_set_glyph_string_clipping)
12490 (x_set_glyph_string_clipping_exactly)
12491 (x_compute_glyph_string_overhangs)
12492 (x_draw_glyph_string_foreground)
12493 (x_draw_composite_glyph_string_foreground, x_draw_glyph_string)
12494 (x_free_frame_resources) [USE_FONT_BACKEND]: If
12495 enable_font_backend is nonzero, use font-backend mechanism.
12496 (x_new_fontset2) [USE_FONT_BACKEND]: New function.
12497
124982008-02-01 Kenichi Handa <handa@m17n.org>
12499
12500 * coding.c (coding_inherit_eol_type): If PARENT is nil, inherit from
12501 system_eol_type.
12502 (syms_of_coding): Initialize system_eol_type.
12503
12504 * process.c (Fset_process_coding_system): Inherit system's eol
12505 format if necessary.
12506
125072008-02-01 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
12508
12509 * macgui.h (USE_ATSUI): Don't enable on emacs-unicode-2 branch.
12510
125112008-02-01 Kenichi Handa <handa@m17n.org>
12512
12513 * coding.c (decode_eol): Pay attention to buffer relocation in
12514 del_range_2.
12515 (decode_coding): Call decode_eol before restoring undo_list.
12516
125172008-02-01 Kenichi Handa <handa@m17n.org>
12518
12519 * charset.c (Fdefine_charset_internal): Fix setting of
12520 emacs_mule_bytes.
12521
125222008-02-01 Kenichi Handa <handa@m17n.org>
12523
12524 * keyboard.c (read_char): Check if C is a character or not before
12525 looking up Vkeyboard_translate_table.
12526
125272008-02-01 Kenichi Handa <handa@m17n.org>
12528
12529 * coding.c (DECODE_EMACS_MULE_20_RELATIVE_COMPOSITION): Fix
12530 condition to terminate the loop.
12531
125322008-02-01 Kenichi Handa <handa@m17n.org>
12533
12534 * coding.c (produce_composition): Compare charbuf[i] instead of
12535 args[i] against 0.
12536 (Fterminal_coding_system): Use EQ to compare Lisp objects.
12537
125382008-02-01 Kenichi Handa <handa@m17n.org>
12539
12540 * coding.c (DECODE_COMPOSITION_START): If the source is short, set
12541 coding->result to CODING_RESULT_INSUFFICIENT_SRC.
12542 (decode_coding_gap): Set CODING_MODE_LAST_BLOCK after the call of
12543 detect_coding.
12544 (emacs_mule_char): Handle old style (Emacs 20) component character
12545 of a composition.
12546 (DECODE_EMACS_MULE_COMPOSITION_RULE_20)
12547 (DECODE_EMACS_MULE_20_RULEBASE_COMPOSITION): Fix parsing a
12548 composition rule.
12549 (decode_coding_emacs_mule): Handle invalid bytes correctly.
12550
125512008-02-01 Kenichi Handa <handa@m17n.org>
12552
12553 * coding.c (encode_coding_ccl): Allocate destination dynamically
12554 when necessary.
12555
125562008-02-01 Kenichi Handa <handa@m17n.org>
12557
12558 * ccl.c (Fccl_execute_on_string): Fix the condition of terminating
12559 the loop. When quitted, show a proper error message.
12560
125612008-02-01 Kenichi Handa <handa@m17n.org>
12562
12563 * xterm.c (x_set_glyph_string_clipping_exactly): Set
12564 src->clip_head and src->clip_tail temporarily instead of src->hl.
12565
12566 * ccl.c (CCL_WRITE_STRING): Handle a flag bit for multibyte
12567 character sequence.
12568 (Fccl_execute_on_string): Use ASET, not XSET.
12569
125702008-02-01 Kenichi Handa <handa@m17n.org>
12571
12572 * search.c (search_buffer): Fix handling of "\\" in a trivial regexp.
12573
125742008-02-01 Kenichi Handa <handa@m17n.org>
12575
12576 * coding.c (decode_coding): Fix the condition of terminating the
12577 decoding loop.
12578
125792008-02-01 Kenichi Handa <handa@m17n.org>
12580
12581 * data.c (Faset): On setting a character bigger than 255 in a
12582 unibyte string, signal an error instead of make the string multibyte.
12583
125842008-02-01 Kenichi Handa <handa@m17n.org>
12585
12586 * charset.c (map_charset_chars): Fix for ascii-compatible charset
12587 made by a mapping table.
12588
125892008-02-01 Kenichi Handa <handa@m17n.org>
12590
12591 * xdisp.c (fill_composite_glyph_string): Check s->face is NULL or
12592 not.
12593 (BUILD_COMPOSITE_GLYPH_STRING): If C is TAB, set s->face to NULL.
12594 (x_produce_glyphs): If CH is TAB, set cmp->offsets properly.
12595
12596 * xterm.c (x_draw_composite_glyph_string_foreground): Check
12597 s->face is NULL or not.
12598
125992008-02-01 Kenichi Handa <handa@m17n.org>
12600
12601 * xterm.c (x_set_glyph_string_clipping_exactly): New function.
12602 (x_draw_glyph_string): Fix drawing of right_overhang and
12603 left_overhang around/on cursor.
12604
12605 * xdisp.c (draw_glyphs): Fix inclusion of right_overwriting glyphs.
12606
126072008-02-01 Kenichi Handa <handa@m17n.org>
12608
12609 * xdisp.c (x_produce_glyphs): Handle composition with TAB.
12610
126112008-02-01 Kenichi Handa <handa@m17n.org>
12612
12613 * coding.c (Fdefine_coding_system_internal)
12614 (Fdefine_coding_system_alias): Avoid a duplicated element in
12615 Vcoding_system_alist.
12616
126172008-02-01 Kenichi Handa <handa@m17n.org>
12618
12619 * xterm.c (handle_one_xevent): Handle keysyms 0x1000000..0x10000FF.
12620
12621 * coding.c (Qcoding_system_define_form): New variable.
12622 (syms_of_coding): Intern and staticpro it.
12623 (Fcoding_system_p): Check Qcoding_system_define_form.
12624 (Fcheck_coding_system): Try to autoload the definition of CODING-SYSTEM.
12625
12626 * coding.h (CODING_SYSTEM_P): If ID is not available, call
12627 Fcoding_system_p.
12628 (CHECK_CODING_SYSTEM): If ID is not available, call
12629 Fcheck_coding_system.
12630 (CHECK_CODING_SYSTEM_GET_SPEC, CHECK_CODING_SYSTEM_GET_ID):
12631 Try also Fcheck_coding_system.
12632
126332008-02-01 Kenichi Handa <handa@m17n.org>
12634
12635 * coding.c (code_conversion_restore): GCPRO arg.
12636
126372008-02-01 Kenichi Handa <handa@m17n.org>
12638
12639 * character.c (lisp_string_width): Check multibyteness of STRING.
12640
126412008-02-01 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
12642
12643 * macterm.c (mac_encode_char): Call ccl_driver with the last arg
12644 Qnil. Use JIS_TO_SJIS instead of ENCODE_SJIS.
12645 (decode_mac_font_name): Use decode_coding_c_string instead of
12646 decode_coding.
12647 (x_load_font): Initialize fontp->fontset to -1. Set
12648 fontp->encoding_type.
12649
126502008-02-01 Kenichi Handa <handa@m17n.org>
12651
12652 * search.c (search_buffer): Give up BM search on case-fold-search
12653 if one of a target character has a case-equivalence of different
12654 byte length even if that target charcter is an ASCII.
12655 (simple_search): Fix calculation of byte length of matched text.
12656 (boyer_moore): Fix handling of case-equivalent multibyte characters.
12657
126582008-02-01 Kenichi Handa <handa@m17n.org>
12659
12660 * coding.c (decode_coding): Fix handling of invalid bytes.
12661
126622008-02-01 Kenichi Handa <handa@m17n.org>
12663
12664 * xterm.c (handle_one_xevent): Handle keysyms directly mapped to
12665 Unicode characters.
12666
126672008-02-01 Kenichi Handa <handa@m17n.org>
12668
12669 * coding.c (encode_coding_object): If a pre-write-conversion
12670 function makes a new buffer, kill it.
12671
126722008-02-01 Kenichi Handa <handa@m17n.org>
12673
12674 * coding.c (QCascii_compatible_p): New variable.
12675 (syms_of_coding): Initialize it.
12676 (ONE_MORE_BYTE, ONE_MORE_BYTE_NO_CHECK): Decrement `src' before
12677 calling string_char.
12678 (record_conversion_result): Add `default:' case.
12679 (coding_charset_list): Delete unused variable `coding_type'.
12680 (Fdefine_coding_system_internal): Add `ascii-compatible-p'
12681 property in the plist of the coding system.
12682 (Fcoding_system_put): Check QCascii_compatible_p.
12683
126842008-02-01 Miles Bader <miles@gnu.org>
12685
12686 * xfaces.c (Finternal_lisp_face_equal_p): Restore previously
12687 removed calculation of frame `f', as it's now used.
12688
126892008-02-01 Kenichi Handa <handa@m17n.org>
12690
12691 * Makefile.in (RUN_TEMACS): Include "-nl" if HAVE_SHM is defined.
12692 (emacs${EXEEXT}): Run $(RUN_TEMACS) unconditionally.
12693 (UNIDATA): New variable.
12694 (${lispsource}international/charprop.el): Depends on ${UNIDATA}.
12695 (bootstrap-emacs${EXEEXT}): Depends on charprop.el. Run
12696 $(RUN_TEMACS) unconditionally.
12697
126982008-02-01 Kenichi Handa <handa@m17n.org>
12699
12700 * Makefile.in (temacs${EXEEXT}): Build charprop.el if necessary.
12701 (admindir): New variable.
12702 ($(lispsource)international/charprop.el): New target.
12703
127042008-02-01 Miles Bader <miles@gnu.org>
12705
12706 * character.c (chars-in-region): Remove obsolete function.
12707 (syms_of_character): Remove its initialization.
12708
127092008-02-01 Benjamin Riefenstahl <b.riefenstahl@turtle-trading.net>
12710
12711 * w32select.c (validate_coding_system)
12712 (setup_windows_coding_system): New functions.
12713 (convert_to_handle_as_coded, Fw32_get_clipboard_data): Use
12714 setup_windows_coding_system.
12715 (setup_config, Fw32_get_clipboard_data): Use
12716 validate_coding_system.
12717 (Fx_selection_exists): Move call to setup_config to a place
12718 where signals are allowed.
12719
12720 * lisp.h (Fcoding_system_base, Fcoding_system_eol_type)
12721 (Fcheck_coding_system): Add declarations.
12722
127232008-02-01 Kenichi Handa <handa@m17n.org>
12724
12725 * charset.c (load_charset_map_from_vector): Fix for the first iteration.
12726
127272008-02-01 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
12728
12729 * macfns.c (Fx_create_frame, x_create_tip_frame): Pass Lisp
12730 string as the second argument for x_new_fontset.
12731
127322008-02-01 Kenichi Handa <handa@m17n.org>
12733
12734 * coding.c (decode_coding_object): Use safe_call1 instead of call1.
12735 (encode_coding_object): Use safe_call instead of call2.
12736
127372008-02-01 Kenichi Handa <handa@m17n.org>
12738
12739 * fontset.c (Fset_fontset_font): Check family element of a given vector.
12740
12741 * Makefile.in (lisp): Include charprop.el.
12742
127432008-02-01 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
12744
12745 * macfns.c (Fx_create_frame, x_create_tip_frame): Fix crash.
12746 Not sure if it's unnecessary.
12747
127482008-02-01 Steven Tamm <steventamm@mac.com>
12749
12750 * macfns.c (Fx_create_frame, x_create_tip_frame): ifdef'd out
12751 some possibly unnecessary fontset checking code that crashed
12752 when creating a new frame.
12753
127542008-02-01 Kenichi Handa <handa@m17n.org>
12755
12756 * xfaces.c (merge_faces): Fix argument to lookup_derived_face and
12757 lookup_face.
12758
12759 * xdisp.c (Fformat_mode_line): Fix argument to lookup_named_face.
12760
12761 * fringe.c (draw_fringe_bitmap_1): Fix argument to lookup_named_face.
12762
127632008-02-01 Kenichi Handa <handa@m17n.org>
12764
12765 * coding.c: Cancel the change done in HEAD on 2008-02-01.
12766 (coding_charset_list): New function.
12767
12768 * coding.h (coding_charset_list): Extern it.
12769
127702008-02-01 Kenichi Handa <handa@m17n.org>
12771
12772 * fontset.c (Fset_fontset_font): Call find_font_encoding with
12773 concatenation of family and registry.
12774
127752008-02-01 Kenichi Handa <handa@m17n.org>
12776
12777 * character.h (BYTE8_STRING): Fix typo.
12778
12779 * editfns.c (Ftranslate_region_internal): Don't convert unibyte
12780 string to multibyte (sync to HEAD).
12781
12782 * casefiddle.c (casify_region): Handle changes in byte-length
12783 using replace_range_2 (sync to HEAD).
12784
127852008-02-01 Andreas Schwab <schwab@suse.de>
12786
12787 * chartab.c (map_char_table): GCPRO table and arg.
12788
127892008-02-01 Kenichi Handa <handa@m17n.org>
12790
12791 * syntax.c (skip_syntaxes): Return lispy 0 (not nil) if point is
12792 already at limit.
12793
127942008-02-01 Kenichi Handa <handa@m17n.org>
12795
12796 * fontset.c (fs_load_font): Use fast_string_match_ignore_case
12797 instead of fast_c_string_match_ignore_case.
12798 (find_font_encoding): Change argument to Lisp_Object. Use
12799 fast_string_match_ignore_case instead of
12800 fast_c_string_match_ignore_case. Change caller.
12801
128022008-02-01 Kenichi Handa <handa@m17n.org>
12803
12804 * xdisp.c (get_next_display_element): In unibyte case, decide to
12805 display in octal form by checking a character by
12806 UNIBYTE_CHAR_HAS_MULTIBYTE_P.
12807
12808 * charset.c (Fset_unibyte_charset): Setup unibyte_has_multibyte_table.
12809
12810 * character.c (unibyte_has_multibyte_table): New variable.
12811
12812 * character.h (unibyte_has_multibyte_table): Extern it.
12813 (UNIBYTE_CHAR_HAS_MULTIBYTE_P): New macro.
12814
128152008-02-01 Kenichi Handa <handa@m17n.org>
12816
12817 * coding.c (encode_coding_iso_2022): Fix handling of charset
12818 annotation.
12819
128202008-02-01 Kenichi Handa <handa@m17n.org>
12821
12822 * coding.c (setup_coding_system): If coding_system is nil, use
12823 Qundecided.
12824 (Fterminal_coding_system): Return nil if terminal coding system is
12825 `undecided'.
12826 (syms_of_coding): Define coding-system `undecided' here. Setup
12827 terminal_coding as `undecided'.
12828
128292008-02-01 Kenichi Handa <handa@m17n.org>
12830
12831 * xdisp.c (message_dolog, set_message_1): Call
12832 unibyte_char_to_multibyte with arg type int.
12833
12834 * lread.c (read1): Fix reading of a char-table.
12835
12836 * print.c (print_object): Include sub char-table in circularities
12837 detection.
12838
128392008-02-01 Kenichi Handa <handa@m17n.org>
12840
12841 * keymap.c (where_is_internal_2): Fix for the case that KEY is a cons.
12842 Append the found sequences in car of ARGS instead of prepending.
12843
128442008-02-01 Kenichi Handa <handa@m17n.org>
12845
12846 * fileio.c (report_file_error): Make a unibyte string from
12847 strerror (errorno).
12848 (Fsubstitute_in_file_name): Fix the arg to
12849 unibyte_char_to_multibyte. It is evaluated twice.
12850
128512008-02-01 Kenichi Handa <handa@m17n.org>
12852
12853 * charset.h (CHAR_CHARSET): Shortcut for ASCII case.
12854
128552008-02-01 Kenichi Handa <handa@m17n.org>
12856
12857 * coding.c (detect_coding_utf_16): Don't set detect_info->found if
12858 BOM is not found.
12859 (detect_coding, detect_coding_system): Optimization for ISO-2022
12860 when no 8-bit data is found.
12861
128622008-02-01 Jason Rumney <jasonr@gnu.org>
12863
12864 * w32fns.c (x_to_w32_font): Update to use new coding struct.
12865
128662008-02-01 Kenichi Handa <handa@m17n.org>
12867
12868 * charset.c (Fdeclare_equiv_charset, Fiso_charset): Fix handing of
12869 CHARS.
12870
128712008-02-01 Steven Tamm <steventamm@mac.com>
12872
12873 * macterm.c (mac_encode_char): Add charset argument and update
12874 to use encoding_type.
12875 (x_new_font, x_new_fontset): Merge in changes from xterm.c;
12876 switch to pure fontset.
12877 (decode_mac_font_name): Temporarily remove decoding.
12878 (x_font_name_to_mac_font_name): Temporarily remove encoding.
12879 (x_load_font): Temporarily remove encoding.
12880
128812008-02-01 Kenichi Handa <handa@m17n.org>
12882
12883 * xfaces.c (Fface_font): If frame is not on a window system,
12884 ignore CHARACTER arg. If HAVE_WINDOW_SYSTEM is not defined, don't
12885 refer to face->font.
12886 (split_font_name_into_vector, build_font_name_from_vector)
12887 (lookup_non_ascii_face, realize_non_ascii_face): Define them only
12888 when HAVE_WINDOW_SYSTEM is defined.
12889
128902008-02-01 Kenichi Handa <handa@m17n.org>
12891
12892 * xdisp.c (BUILD_GLYPH_STRINGS): Check if s is NULL.
12893 (x_produce_glyphs): Fix setting of members of cmp in case
12894 cmp->glyph_len is zero.
12895
12896 * fontset.c (Fset_fontset_font): Fix docstring.
12897 (Ffontset_info): Make it backward compatible. New arg ALL.
12898
128992008-02-01 Kim F. Storm <storm@cua.dk>
12900
12901 * process.c (read_process_output): Grow decoding_buf when needed;
12902 this could cause a crash in allocate_string and compact_small_strings.
12903
129042008-02-01 Kenichi Handa <handa@m17n.org>
12905
12906 * fileio.c (WRITE_BUF_SIZE): Delete this macro.
12907
129082008-02-01 Kenichi Handa <handa@m17n.org>
12909
12910 * coding.c (setup_coding_system): Set coding->common_flags
12911 correctly for raw-text.
12912 (consume_chars): On encoding unibyte text by raw-text, don't check
12913 multibyte form.
12914 (encode_coding): On encoding by raw-text, never use translation tables.
12915
12916 * fileio.c (e_write): Short cut for the case of no encoding.
12917
129182008-02-01 Kenichi Handa <handa@m17n.org>
12919
12920 * coding.c (detect_coding, detect_coding_system): Delete unused
12921 variables.
12922
129232008-02-01 Kenichi Handa <handa@m17n.org>
12924
12925 * coding.c (encode_coding_utf_8): Fix handling of raw-byte char.
12926 (consume_chars): Fix handling of 8-bit bytes in unibyte source.
12927
129282008-02-01 Kenichi Handa <handa@m17n.org>
12929
12930 * coding.c (Ffind_coding_systems_region_internal): Include
12931 raw-text and no-conversion in the result.
12932
129332008-02-01 Kenichi Handa <handa@m17n.org>
12934
12935 * fontset.c (find_font_encoding): Return `ascii' for unknown encoding.
12936 (load_font_get_repertory): Delete unnecessary check of ENCODING of
12937 FONT_DEF.
12938 (font_def_arg, add_arg, from_arg, to_arg): New args.
12939 (set_fontset_font): Change argument.
12940 (Fset_fontset_font): Fix for the case that TARGET is a script
12941 name and charset name.
12942 (new_fontset_from_font_name): Fix argument to Fnew_fontset.
12943
129442008-02-01 Kenichi Handa <handa@m17n.org>
12945
12946 * fontset.c (fontset_font): Rename from fontset_face. Change return
12947 value.
12948 (face_suitable_for_char_p, face_for_char): Adjust for the change
12949 of fontset_font.
12950 (make_fontset_for_ascii_face): Fix setting of the fontset element
12951 for ASCII.
12952 (Finternal_char_font): Use fontset_font instead of FACE_FOR_CHAR
12953 to get a font name.
12954 (Ffontset_info): Adjust for the change of fontset_font.
12955
12956 * coding.c (emacs_mule_char): Check invalid code more rigidly.
12957
12958 * character.h (LEADING_CODE_LATIN_1_MIN)
12959 (LEADING_CODE_LATIN_1_MAX): Delete these macros.
12960
129612008-02-01 Kenichi Handa <handa@m17n.org>
12962
12963 * editfns.c (check_translation): New function.
12964 (Ftranslate_region_internal): Handle M:N mapping.
12965
129662008-02-01 Kenichi Handa <handa@m17n.org>
12967
12968 * xfaces.c (xlfd_point_size): Set font->numeric[XLFD_PIXEL_SIZE].
12969
129702008-02-01 Kenichi Handa <handa@m17n.org>
12971
12972 * coding.c (DECODE_DESIGNATION): Set chars_96 to -1 instead of
12973 goto invalid_code.
12974 (decode_coding_iso_2022): Fix handling of invalid designation.
12975
12976 * fileio.c (Finsert_file_contents): Be sure to call unbind_to
12977 after calling code_conversion_save.
12978
129792008-02-01 Kenichi Handa <handa@m17n.org>
12980
12981 * xdisp.c (handle_auto_composed_prop): Fix Lisp_Object/int mixup.
12982
12983 * print.c (print_prune_string_charset): Fix Lisp_Object/int mixup.
12984
12985 * fontset.c: Include "intervals.h".
12986 (fontset_face): Fix comparing of Lisp_Objects.
12987 (free_face_fontset, new_fontset_from_font_name): Fix
12988 Lisp_Object/int mixup.
12989
12990 * editfns.c (Ftranslate_region_internal): Fix Lisp_Object/int mixup.
12991
12992 * coding.c: Add many prototypes for static functions.
12993 (get_translation_table): Allow max_lookup to be NULL.
12994 (decode_coding, Ffind_coding_systems_region_internal)
12995 (Funencodable_char_position, Fcheck_coding_systems_region): Call
12996 get_translation_table with max_lookup NULL.
12997
129982008-02-01 Kenichi Handa <handa@m17n.org>
12999
13000 * coding.c (get_translation_table): Declare it as Lisp_Object.
13001 (LOOKUP_TRANSLATION_TABLE): New macro.
13002 (produce_chars, consume_chars): Use LOOKUP_TRANSLATION_TABLE
13003 instead of CHAR_TABLE_REF.
13004
130052008-02-01 Kenichi Handa <handa@m17n.org>
13006
13007 * coding.c (MAX_ANNOTATION_LENGTH): Adjust for the change of
13008 annotation data format.
13009 (ADD_ANNOTATION_DATA, ADD_COMPOSITION_DATA, ADD_CHARSET_DATA):
13010 Change arguments FROM and TO to single argument NCHARS. Change caller.
13011 (decode_coding_utf_8, decode_coding_utf_16, decode_coding_emacs_mule)
13012 (decode_coding_iso_2022, decode_coding_sjis, decode_coding_big5)
13013 (decode_coding_ccl, decode_coding_charset): Pay attention to
13014 coding->charbuf_used.
13015 (get_translation): New function.
13016 (produce_chars): New arguments translation_table and last_block.
13017 Translate characters here. Return number of carryover chars.
13018 Change caller.
13019 (produce_composition): New argument pos. Change caller.
13020 Adjust for the change of annotation data format.
13021 (produce_charset, produce_annotation): Likewise.
13022 (decode_coding, encode_coding): Don't call translate_chars.
13023 (consume_chars): New arg translation_table. Change caller.
13024 (translate_chars): Delete.
13025 (syms_of_coding): Make translation-table's number of extra slots 2.
13026
130272008-02-01 Kenichi Handa <handa@m17n.org>
13028
13029 * search.c (simple_search): Fix setting this_pos_byte in backward
13030 search.
13031
13032 * coding.c (detect_coding_emacs_mule): Fix counting of encoded
13033 byte sequence.
13034 (detect_coding_ccl): Fix setting of the variable valids.
13035
130362008-02-01 Kenichi Handa <handa@m17n.org>
13037
13038 * xterm.c (x_list_fonts): Fix the detection of an auto-scaled font.
13039
13040 * coding.c (decode_coding_utf_16): Fix handling of surrogate pair.
13041
13042 * editfns.c (Ftranslate_region_internal): Rename from
13043 Ftranslate_region. Accept a char-table in TABLE.
13044 (syms_of_editfns): Defsubr Stranslate_region_internal.
13045
13046 * xfaces.c (set_lface_from_font_name): If a font is specified for
13047 a frame, generate a fontset from the font.
13048 (build_scalable_font_name): If the scalable font is requested for
13049 a specific size, don't change that size.
13050 (try_font_list): Try a scalable font also in the case that a
13051 pattern string is specified.
13052
130532008-02-01 Kenichi Handa <handa@m17n.org>
13054
13055 * xfaces.c (Fface_font): New optional arg CHARACTER.
13056
130572008-02-01 Kenichi Handa <handa@m17n.org>
13058
13059 * charset.h (CHARSET_OFFSET): New macro.
13060
130612008-02-01 Kenichi Handa <handa@m17n.org>
13062
13063 * xterm.c (x_get_font_repertory): Fix for non-Unicode-bmp charset.
13064
13065 * fontset.c (fontset_face): Handle the case that repertory is a
13066 char-table.
13067 (find_font_encoding): Return nil for unknown encoding.
13068 (Fset_fontset_font): Ignore a font of unknown encoding.
13069
130702008-02-01 Kenichi Handa <handa@m17n.org>
13071
13072 * keymap.c (describe_vector): Handle default value of a char table.
13073
13074 * fontset.c (fontset_face): Handle fallback fonts correctly.
13075 (Ffontset_info): Return infomation about fallback fonts.
13076
130772008-02-01 Kenichi Handa <handa@m17n.org>
13078
13079 * fontset.c (FONTSET_DEFAULT): New macro.
13080 (FONTSET_ADD, fontset_add): Handle the case that range is nil.
13081 (Fset_fontset_font): Change the 2nd arg name to TARGET, and handle
13082 the case that it is nil.
13083 (dump_fontset): Call FONTSET_DEFAULT, not FONTSET_FALLBACK.
13084 (syms_of_fontset): Set char-table-extra-slots property of fontset to 9.
13085
13086 * charset.h (CHAR_CHARSET_P): Fix for the case that the method is
13087 subset or superset.
13088
130892008-02-01 Kenichi Handa <handa@m17n.org>
13090
13091 * emacs.c (main): Call init_charset after syms_of_XXX.
13092
13093 * charset.c (Vcharset_map_directory): Delete.
13094 (Vcharset_map_path): New variable.
13095 (load_charset_map_from_file): Use Vcharset_map_path instead.
13096 (init_charset): Initialize Vcharset_map_path.
13097 (syms_of_charset): Delete declaration of "charset-map-directory",
13098 add declaration of "charset-map-path".
13099
131002008-02-01 Kenichi Handa <handa@m17n.org>
13101
13102 * fns.c (string_char_to_byte, string_byte_to_char): Optimize for
13103 ASCII only string.
13104
13105 * fileio.c (Finsert_file_contents): Avoid detecting a code twice.
13106
13107 * coding.c (detect_coding_iso_2022): Fix handling of SS2 and SS3.
13108 (detect_coding, detect_coding_system): Treat '\0' as normal ASCII byte.
13109
131102008-02-01 Kenichi Handa <handa@m17n.org>
13111
13112 * coding.h (SJIS_TO_JIS2, JIS_TO_SJIS2): New macros.
13113
13114 * coding.c (QCmnemonic, QCdefalut_char)
13115 (QCdecode_translation_table, QCencode_translation_table)
13116 (QCpost_read_conversion, QCpre_write_conversion): New variables.
13117 (get_translation_table): Return a list of translation tables if
13118 necessary.
13119 (decode_coding): Call get_translation_table with ENCODEP 0.
13120 (char_encodable_p): If translation_table is non-nil, always call
13121 translate_char.
13122 (Fdefine_coding_system_internal): Accept list of translation
13123 tables as :encode-translation-table and :decode-translation-table.
13124 (Fcoding_system_put): New function.
13125 (syms_of_coding): Declare new symbols. Defsubr
13126 Scoding_system_put.
13127 (decode_coding_sjis, encode_coding_sjis): Handle 4th charset,
13128 typically JISX0212.
13129
13130 * charset.c (map_charset_chars): Fix arg to map_charset_chars in
13131 when the charset is superset type.
13132
13133 * character.c (translate_char): Accept list of translation tables.
13134
131352008-02-01 Kenichi Handa <handa@m17n.org>
13136
13137 * coding.h (enum coding_attr_index): New member coding_attr_trans_tbl.
13138 (CODING_ATTR_TRANS_TBL): New macro.
13139
13140 * coding.c (get_translation_table): New function.
13141 (translate_chars): Fix the bug of skipping annotation data.
13142 (decode_coding, encode_coding): Utilize get_translation_table.
13143 (char_encodable_p, Funencodable_char_position): Translate char if
13144 necessary.
13145 (Ffind_coding_systems_region_internal)
13146 (Fcheck_coding_systems_region): Setup translation table for encode
13147 in a coding system attribute vector in advance.
13148 (Fdefine_coding_system_internal): Allow a symbol as translation
13149 table. For shift-jis type coding system, allow 4th charset.
13150
131512008-02-01 Kenichi Handa <handa@m17n.org>
13152
13153 * coding.c (decode_coding_sjis): Check the first byte rigidly.
13154
13155 * xdisp.c (get_next_display_element): Pass -1 as POS to
13156 FACE_FOR_CHAR if displaying a C-string.
13157
131582008-02-01 Kenichi Handa <handa@m17n.org>
13159
13160 * composite.c (get_composition_id): Handle xoff and yoff in a
13161 composition rule.
13162
13163 * composite.h (COMPOSITION_DECODE_RULE): New arg xoff and yoff.
13164 (struct composition): New member lbearing and rbearing.
13165
13166 * xdisp.c (move_it_to): Optimize for the case (op & MOVE_TO_Y).
13167 (x_get_glyph_overhangs): Handle a composition glyph.
13168 (x_produce_glyphs): Setup lbearing and rbreaing for a composition glyph.
13169
13170 * xterm.c (x_compute_glyph_string_overhangs): Handle also a
13171 composition glyph.
13172
131732008-02-01 Kenichi Handa <handa@m17n.org>
13174
13175 * print.c: Include charset.h.
13176 (Vprint_charset_text_property): New variable.
13177 (Qdefault): Extern it.
13178 (PRINT_STRING_NON_CHARSET_FOUND)
13179 (PRINT_STRING_UNSAFE_CHARSET_FOUND): New macros.
13180 (print_check_string_result): New variable.
13181 (print_check_string_charset_prop): New function.
13182 (print_prune_charset_plist): New variable.
13183 (print_prune_string_charset): New function.
13184 (print_object): Call print_prune_string_charset if
13185 Vprint_charset_text_property is not t.
13186 (print_interval): Print nothing if interval->plist is nil.
13187 (syms_of_print): Declare Vprint_charset_text_property as a lisp
13188 variable. Init and staticpro print_prune_charset_plist.
13189
131902008-02-01 Kenichi Handa <handa@m17n.org>
13191
13192 * fontset.c (new_fontset_from_font_name): Use the specified font
13193 for all characters in the new fontset.
13194
13195 * macterm.c (x_set_mouse_face_gc): Call FACE_FOR_CHAR with POS and
13196 OBJECT args.
13197
13198 * xdisp.c (x_produce_glyphs): Call FACE_FOR_CHAR with POS and
13199 OBJECT args for composition too.
13200
13201 * w32term.c (x_set_mouse_face_gc): Call FACE_FOR_CHAR with POS and
13202 OBJECT args.
13203
132042008-02-01 Kenichi Handa <handa@m17n.org>
13205
13206 * dispextern.h (FACE_FOR_CHAR): New args POS and OBJECT.
13207
13208 * fontset.c (reorder_font_vector): Adjust for the change of
13209 FONT_DEF format.
13210 (fontset_face): New arg id. Change caller.
13211 (face_for_char): New args pos and object.
13212 (make_fontset_for_ascii_face): Adjust for the change of FONT_DEF format.
13213 (fs_query_fontset): Check NAME by Fassoc too.
13214 (Fset_fontset_font): Allow non-XLFD font name.
13215 (Ffontset_info): Adjust for the change of FONT_DEF format.
13216
13217 * fontset.h (face_for_char): Adjust prototype.
13218
13219 * xdisp.c (face_before_or_after_it_pos, get_next_display_element)
13220 (append_space, extend_face_to_end_of_line)
13221 (get_char_face_and_encoding, BUILD_COMPOSITE_GLYPH_STRING)
13222 (x_produce_glyphs): Call FACE_FOR_CHAR with POS and OBJECT args.
13223
13224 * xfaces.c (compute_char_face): Call FACE_FOR_CHAR with
13225 POS and OBJECT args.
13226
13227 * xterm.c (x_set_mouse_face_gc): Call FACE_FOR_CHAR with
13228 POS and OBJECT args.
13229
132302008-02-01 Jason Rumney <jasonr@gnu.org>
13231
13232 * w32select.c (Fw32_set_clipboard_data): Avoid potential realloc
13233 of GlobalAlloc'ed memory.
13234
132352008-02-01 Kenichi Handa <handa@m17n.org>
13236
13237 * ccl.c (Fccl_execute_on_string): Fix the condition of loop.
13238
13239 * charset.h (charset_table_used): Delete extern.
13240
13241 * charset.c (charset_table_used): Make it static.
13242 (map_charset_chars): Fix args to c_function with.
13243
13244 * chartab.c (map_sub_char_table_for_charset): Fix args to
13245 c_function with.
13246
13247 * coding.h (enum coding_result_code): Delete
13248 CODING_RESULT_INSUFFICIENT_CMP, add CODING_RESULT_INVALID_SRC.
13249
13250 * coding.c (Qinsufficient_source, Qinconsistent_eol)
13251 (Qinvalid_source, Qinterrupted, Qinsufficient_memory): New variables.
13252 (Vlast_code_conversion_error): New variables.
13253 (syms_of_coding): DEFSYM or DEFVAR_LISP them.
13254 (ONE_MORE_BYTE): Record error if any instead of signaling an
13255 error. If non-ASCII multibyte char is found, return the negative
13256 value of the code. All callers changed to check it.
13257 (ONE_MORE_BYTE_NO_CHECK): Likewise.
13258 (record_conversion_result): New function. Change all codes setting
13259 coding->result to call this function.
13260 (detect_coding_utf_8, decode_coding_utf_8)
13261 (detect_coding_emacs_mule, detect_coding_sji, detect_coding_big5):
13262 Don't use the local variable incomplete.
13263 (emacs_mule_char): Change the second arg to `const'.
13264 (decode_coding): Fix of flushing out unprocessed data.
13265 (make_conversion_work_buffer): Fix making of a work buffer.
13266 (decode_coding_object): Return coding->dst_object.
13267
13268 * fontset.c (set_fontset_font): Fix args.
13269
13270 * lisp.h (CHARACTERBITS): Define as 22.
13271
13272 * process.c (send_process): Be sure to set coding->src_multibyte.
13273
13274 * xdisp.c (handle_auto_composed_prop): Fix setting of limit.
13275
132762008-02-01 Kenichi Handa <handa@m17n.org>
13277
13278 * xdisp.c (handle_auto_composed_prop): Give limit to
13279 Fnext_single_char_property_change.
13280
132812008-02-01 Kenichi Handa <handa@m17n.org>
13282
13283 * composite.c (syms_of_composite): Don't make the composition hash
13284 table weak.
13285
13286 * fontset.c (Fset_fontset_font): Fix docstring.
13287
13288 * lisp.h (detect_coding_system): Adjust prototype.
13289
13290 * fileio.c (kill_workbuf_unwind): Delete this function.
13291 (Finsert_file_contents): Adjust the call of detect_coding_system.
13292 Get conversion_buffer by code_conversion_save. Use the macro
13293 CODING_MAY_REQUIRE_DECODING. After decoding, update
13294 coding_system.
13295
13296 * coding.h (make_conversion_work_buffer): Delete extern.
13297 (code_conversion_save): Extern it.
13298
13299 * coding.c (enum iso_code_class_type): Delete ISO_carriage_return.
13300 (CODING_GET_INFO): Delete argument eol_type. Change callers.
13301 (decode_coding_utf_8): Don't do eol converion.
13302 (detect_coding_utf_16): Check coding->src_chars, not
13303 coding->src_bytes. Add heuristics for those that have no signature.
13304 (decode_coding_emacs_mule, decode_coding_iso_2022)
13305 (decode_coding_sjis, decode_coding_big5, decode_coding_charset):
13306 Don't do eol converion.
13307 (adjust_coding_eol_type): Return a new coding system.
13308 (detect_coding): Don't detect eol. Fix for utf-16 detection.
13309 (decode_eol): In case of CRLF->LF conversion, use del_range_2 on
13310 each change.
13311 (decode_coding): Pay attention to undo_list. Do eol conversion for
13312 all types of coding-systems (if necessary).
13313 (Vcode_conversion_work_buf_list): Delete it.
13314 (Vcode_conversion_reused_workbuf): Rename from
13315 Vcode_conversion_reused_work_buf.
13316 (Vcode_conversion_workbuf_name): New variable.
13317 (reused_workbuf_in_use): New variable.
13318 (make_conversion_work_buffer): Delete the arg DEPTH.
13319 (code_conversion_restore): Change argument to cons.
13320 (code_conversion_save): Delete the argument BUFFER. Change callers.
13321 (detect_coding_system): New argument src_chars. Change callers.
13322 Fix for utf-16 detection.
13323 (init_coding_once): Don't use ISO_carriage_return.
13324 (syms_of_coding): Initialize Vcode_conversion_workbuf_name and
13325 reused_workbuf_in_use.
13326
133272008-02-01 Kenichi Handa <handa@m17n.org>
13328
13329 * keymap.c (store_in_keymap): Pay attention to the case that idx
13330 is a cons specifying a character range.
13331
133322008-02-01 Kenichi Handa <handa@m17n.org>
13333
13334 * xdisp.c (handle_auto_composed_prop): Fix the case of returning
13335 HANDLED_RECOMPUTE_PROPS.
13336
13337 * coding.c (Fdefine_coding_system_internal): Fix checking of
13338 ascii compatibility.
13339
133402008-02-01 Kenichi Handa <handa@m17n.org>
13341
13342 * charset.c (find_charsets_in_text): Delete unused locale variable.
13343 (Fset_charset_priority): Update Vemacs_mule_charset_list too.
13344
13345 * coding.c (encode_coding_emacs_mule): Emit bytes with MSB.
13346 Resync charset_list to Vemacs_mule_charset_list.
13347
13348 * keymap.c (store_in_keymap): Pay attention to the case that idx
13349 is a cons specifying a character range.
13350
133512008-02-01 Kenichi Handa <handa@m17n.org>
13352
13353 * composite.c (update_compositions): Bind inhibit-read-only, etc
13354 to t before calling remove-list-of-text-properties.
13355
13356 * print.c (print_object): Always print ASCII chars as is.
13357
133582008-02-01 Kenichi Handa <handa@m17n.org>
13359
13360 * keymap.c (Fdefine_key): Fix handling of Lucid style event type list.
13361
13362 * fns.c (Fmapconcat, Fmapcar, Fmapc): Signal an error if SEQUENCE
13363 is a char table.
13364
133652008-02-01 Kenichi Handa <handa@m17n.org>
13366
13367 * syntax.c (skip_chars): Be sure to alloca char_ranges when necessary.
13368
133692008-02-01 Kenichi Handa <handa@m17n.org>
13370
13371 * xfaces.c (set_lface_from_font_name): Fix for the case that
13372 FONTNAME is not fontset name.
13373
133742008-02-01 Kenichi Handa <handa@m17n.org>
13375
13376 * fns.c (base64_encode_1): Fix previous change.
13377
133782008-02-01 Kenichi Handa <handa@m17n.org>
13379
13380 * fontset.c (set_fontset_font): New function.
13381 (Fset_fontset_font): If a font is specified for a charset, use
13382 map_charset_chars to store the font spec in a fontset.
13383
133842008-02-01 Kenichi Handa <handa@m17n.org>
13385
13386 * fontset.c (fontset_face): Create a fallback fontset on demand.
13387 (make_fontset): Don't create a fallback fontset here.
13388 (free_face_fontset): Free a fallback fontset (if any) too.
13389 (n_auto_fontsets): Delete this variable.
13390 (auto_fontset_alist): New variable.
13391 (new_fontset_from_font_name): Check auto_fontset_alist.
13392 (dump_fontset) [FONTSET_DEBUG]: Fully re-written.
13393 (Ffontset_list_all) [FONTSET_DEBUG]: New function.
13394 (syms_of_fontset): Initialize and staticpro auto_fontset_alist.
13395 Defsubr Sfontset_list_all.
13396
133972008-02-01 Kenichi Handa <handa@m17n.org>
13398
13399 * xterm.c (x_list_fonts): Fix excluding of auto-scaled fonts.
13400
134012008-02-01 Kenichi Handa <handa@m17n.org>
13402
13403 * fontset.c (Fnew_fontset): Check NAME more rigidly.
13404
134052008-02-01 Kenichi Handa <handa@m17n.org>
13406
13407 * editfns.c (Fgoto_char): Fix docstring.
13408
134092008-02-01 Kenichi Handa <handa@m17n.org>
13410
13411 * insdel.c (insert_from_gap): Adjust intervals correctly.
13412
134132008-02-01 Jason Rumney <jasonr@gnu.org>
13414
13415 * w32term.c (GLYPHSET, WCRANGE): Define if system headers don't.
13416 (pfnGetFontUnicodeRanges): New dynamically loaded function.
13417 (w32_initialize): Try to load it.
13418 (x_get_font_repertory): Use it if available.
13419 (w32_encode_char): Add shortcut for unicode output.
13420
13421 * w32fns.c (w32_load_system_font): Default charset to -1.
13422 (x_to_w32_charset): Match all fonts for unicode.
13423 (w32_to_x_charset): New parameter matching. Don't return partial
13424 or wildcard charsets.
13425 (w32_to_all_x_charsets): Don't return partial or wildcard charsets.
13426 (w32_codepage_for_font): Return CP_UNICODE for unicode.
13427 (w32_to_x_font): Match charset to real charset.
13428 (enum_font_cb2): Always list unicode versions.
13429
13430 * makefile.w32-in (temacs): Increase EMHEAP.
13431
134322008-02-01 Jason Rumney <jasonr@gnu.org>
13433
13434 * w32term.c (w32_encode_char): New charset parameter.
13435 font_info.encoding becomes encoding_type.
13436 (x_get_font_repertory): New function. Warning: stub only!
13437 (x_new_font): Return quickly if font already set.
13438 (x_new_fontset): fontsetname parameter is Lisp_Object.
13439 Use new fs_query_fontset. Try new_fontset_from_font_name.
13440 Use fontset_name for return value.
13441
13442 * w32term.h: Declare x_get_font_repertory.
13443
13444 * w32select.c (Fw32_set_clipboard_data): Use string_x_string_p in
13445 place of find_charset_in_text. Use encode_coding_object in place
13446 of encode_coding.
13447 (Fw32_get_clipboard_data): Use decode_coding_c_string in place of
13448 decode_coding.
13449
13450 * w32fns.c (Fx_create_frame, x_create_tip_frame): Use new version
13451 of x_new_fontset.
13452 (w32_load_system_font): Initialize charset as unicode.
13453 font_info.encoding becomes encoding_type.
13454 (w32_to_x_font): Use decode_coding_c_string in place of decode_coding.
13455 (x_to_w32_font): Use encode_coding_object in place of encode_coding.
13456 (syms_of_w32fns): Set get_font_repertory_func.
13457
13458 * w32console.c: Include character.h. Use terminal_encode_buffer
13459 from term.c.
13460 (write_glyphs): Use new version of encode_terminal_code. Use
13461 encode_coding_object in place of encode_coding.
13462
13463 * w32bdf.c (w32_load_bdf_font): Clear font_info before filling.
13464 encoding becomes encoding_type.
13465
13466 * term.c (terminal_encode_buffer): Make externally visible.
13467
13468 * makefile.w32-in: Add character.h dependancies.
13469 (character.o, chartab.o): New targets.
13470
134712008-02-01 Kenichi Handa <handa@m17n.org>
13472
13473 * fileio.c (Finsert_file_contents) [DOS_NT]: Use the macro
13474 CODING_ID_EOL_TYPE.
13475
134762008-02-01 Andreas Schwab <schwab@suse.de>
13477
13478 * coding.c (produce_chars): Revert last change.
13479
134802008-02-01 Kenichi Handa <handa@m17n.org>
13481
13482 * charset.h (charset_unicode): Extern it.
13483
13484 * charset.c (string_xstring_p): Check by (C >= 0x100).
13485 (find_charsets_in_text): Change format of the arc CHARSETS. New
13486 arg MULTIBYTE.
13487 (Ffind_charset_region, Ffind_charset_string): Adjust for the
13488 change of find_charsets_in_text.
13489 (Fsplit_char): Fix doc. Never return unknown.
13490
13491 * chartab.c (char_table_translate): Use CHARACTERP, not INTEGERP.
13492
13493 * coding.c (Fdefine_coding_system_alias): Update
13494 Vcoding_system_list.
13495
13496 * fontset.c (load_font_get_repertory): Pay attention to the case
13497 that ENCODING of a font is specified by a char-table.
13498
13499 * xterm.c (x_get_font_repertory): Handle the case that the
13500 encoding of font is other than Unicode.
13501
135022008-02-01 Kenichi Handa <handa@m17n.org>
13503
13504 * term.c (encode_terminal_code): Don't handle glyph-table. Check
13505 if a character is encodable by the terminal coding system. If
13506 not, produces proper number of `?'s. Update
13507 terminal_encode_buffer and terminal_encode_buf_size if necessary.
13508 (produce_glyphs): Check by CHAR_BYTE8_P, not SINGLE_BYTE_CHAR_P.
13509
135102008-02-01 Kenichi Handa <handa@m17n.org>
13511
13512 * term.c (terminal_encode_buffer, terminal_encode_buf_size): New
13513 variables.
13514 (encode_terminal_code): Change argument. Encode multiple
13515 characters at once. Store the result of encoding in
13516 terminal_encode_buffer.
13517 (write_glyphs, insert_glyphs): Adjust for the change of
13518 encode_terminal_code.
13519 (term_init): Initialize terminal_encode_buffer and
13520 terminal_encode_buf_size.
13521
13522 * coding.c (consume_chars): If coding->src_object is nil, don't
13523 check annotation.
13524
135252008-02-01 Kenichi Handa <handa@m17n.org>
13526
13527 * character.c (char_string): Use ASCII_CHAR_P instead of
13528 SINGLE_BYTE_CHAR_P.
13529
135302008-02-01 Kenichi Handa <handa@m17n.org>
13531
13532 * xdisp.c (handle_auto_composed_prop): Check if the last
13533 characters of auto-composed region is newly composed with the
13534 following characters.
13535 (handle_composition_prop): Fix checking of point being inside
13536 composition.
13537
135382008-02-01 Kenichi Handa <handa@m17n.org>
13539
13540 * fns.c (concat): Don't change multibyteness of the result by
13541 concatenating an 8-bit character.
13542
13543 * data.c (Faset): Check newelt by CHECK_CHARACTER. Don't change
13544 multibyteness of the result when newelt is an 8-bit character.
13545
135462008-02-01 Dave Love <fx@gnu.org>
13547
13548 * xmenu.c (find_and_call_menu_selection): Make menu_bar_items_used
13549 EMACS_INT.
13550
13551 * xfns.c (DefaultDepthOfScreen, x_encode_text): Remove unused vars.
13552
13553 * xfaces.c (face_numeric_value): Declare dim size_t.
13554 (Finternal_lisp_face_equal_p): Remove unused f.
13555
13556 * xdisp.c (BUILD_CHAR_GLYPH_STRINGS, display_and_set_cursor)
13557 (MATRIX_ROW): Remove unused vars.
13558 (draw_glyphs, x_insert_glyphs, fast_find_position)
13559 (fast_find_position, fast_find_string_pos): Use EMACS_INT for
13560 byte/char counts.
13561
13562 * regex.c (regex_compile): Remove unused var.
13563
13564 * minibuf.c (Fminibuffer_complete_word): Remove unused var.
13565
13566 * keymap.c (Fset_keymap_parent, map_keymap, Fcopy_keymap)
13567 (Faccessible_keymaps, where_is_internal): Remove unused vars.
13568
13569 * keyboard.c (cancel_hourglass_unwind): Return Qnil.
13570
13571 * frame.c (frame_name_fnn_p): Make len EMACS_INT.
13572
13573 * fileio.c (Fwrite_region): Remove unused var.
13574
13575 * dispnew.c (adjust_frame_glyphs_for_frame_redisplay)
13576 (adjust_frame_glyphs_for_window_redisplay): Remove unused ch_dim.
13577
13578 * composite.c (Fremove_list_of_text_properties): Declare.
13579
13580 * coding.c (inhibit_pre_post_conversion): Remove (unused).
13581 (alloc_destination, produce_chars): Use EMACS_INT for byte/char counts.
13582 (coding_inherit_eol_type): Remove unused attrs.
13583 (detect_coding): Cast arg of detect_eol.
13584
13585 * charset.c (syms_of_charset): Remove unused var p.
13586 (find_charsets_in_text, Ffind_charset_region): Use EMACS_INT for
13587 byte/char counts.
13588
13589 * casetab.c (set_case_table): Remove unused var.
13590
13591 * window.c (Fdisplay_buffer, Fframe_selected_window): Remove
13592 unused vars.
13593
135942008-02-01 Dave Love <fx@gnu.org>
13595
13596 * xterm.c (x_bitmap_mask): Declare.
13597
135982008-02-01 Dave Love <fx@gnu.org>
13599
13600 * xterm.c (x_term_init): Fix type error.
13601
13602 * lisp.h: Add Funibyte_char_to_multibyte.
13603
13604 * coding.c (Fread_coding_system): Fix arg of XSETSTRING.
13605 (Fset_coding_system_priority): Doc fix.
13606
13607 * ccl.c (ccl_driver): Fix arg of CHARACTERP.
13608
13609 * indent.c (check_composition): Make start and end EMACS_INT.
13610
13611 * character.c (lisp_string_width): Make ignore and end EMACS_INT.
13612
13613 * xdisp.c (handle_composition_prop, check_point_in_composition):
13614 Make buffer positions EMACS_INT.
13615
13616 * composite.c (find_composition, run_composition_function)
13617 (update_compositions, Ffind_composition_internal): Make buffer
13618 positions EMACS_INT.
13619
13620 * composite.h (find_composition, update_compositions): Make
13621 position args EMACS_INT.
13622
13623 * keyboard.c (adjust_point_for_property): Make beg and end EMACS_INT.
13624
13625 * intervals.c (get_property_and_range):
13626 * intervals.h (get_property_and_range): Make start and end EMACS_INT.
13627
13628 * unexalpha.c: Don't include varargs.h.
13629
136302008-02-01 Dave Love <fx@gnu.org>
13631
13632 * coding.h (ENCODE_UTF_8): New.
13633
13634 * Makefile.in (gtkutil.o): Depend on coding.h.
13635
13636 * coding.c (Fset_coding_system_priority): Doc fix.
13637
136382008-02-01 Kenichi Handa <handa@m17n.org>
13639
13640 * fileio.c (Finsert_file_contents): Call setup_coding_system in
13641 the case of auto saving.
13642
136432008-02-01 Andreas Schwab <schwab@suse.de>
13644
13645 * chartab.c (map_char_table, map_char_table_for_charset): Protect
13646 `range' from GC.
13647
136482008-02-01 Kenichi Handa <handa@m17n.org>
13649
13650 * coding.c (decode_coding_sjis): Check bytes more rigidly.
13651
136522008-02-01 Kenichi Handa <handa@m17n.org>
13653
13654 * fileio.c (choose_write_coding_system): Return a decided coding system.
13655 (Fwrite_region): Set Vlast_coding_system_used to the return value
13656 of choose_write_coding_system.
13657
136582008-02-01 Kenichi Handa <handa@m17n.org>
13659
13660 * charset.c (Fset_charset_priority): Pay attention to duplicated
13661 arguments.
13662
13663 * coding.c (QCcategory): New variable.
13664 (syms_of_coding): Defsym it. Set all elements of
13665 Vcoding_category_table and their symbol values.
13666 (Fset_coding_system_priority): Doc fix. Update symbol qvalues of
13667 coding-category-XXX, and coding-category-list.
13668 (Fdefine_coding_system_internal): Add category in the plist.
13669
136702008-02-01 Kenichi Handa <handa@m17n.org>
13671
13672 * callproc.c (Fcall_process): Handle carryover correctly.
13673
13674 * coding.c (decode_coding_iso_2022): Fix handling of invalid bytes.
13675 (raw_text_coding_system): Check NILP (coding_system).
13676 (coding_inherit_eol_type): Check NILP (coding_system) and
13677 NILP (parent).
13678 (consume_chars): Fix for the case of raw-text.
13679
13680 * process.c (read_process_output): Handle carryover correctly.
13681
136822008-02-01 Dave Love <fx@gnu.org>
13683
13684 * regex.c (re_search_2): Fix last change.
13685
136862008-02-01 Kenichi Handa <handa@m17n.org>
13687
13688 * regex.c (GET_CHAR_BEFORE_2): Check multibyte, not
13689 target_multibyte. Even in a unibyte case, return a converted
13690 multibyte char.
13691 (GET_CHAR_AFTER): New macro.
13692 (PATFETCH): Translate via multibyte char.
13693 (HANDLE_UNIBYTE_RANGE): Delete this macro.
13694 (SETUP_MULTIBYTE_RANGE): New macro.
13695 (regex_compile): Setup compiled code so that its multibyteness
13696 matches that of a target. Fix the handling of "[X-YZ]" using
13697 SETUP_MULTIBYTE_RANGE.
13698 (analyse_first) <charset>: For filling fastmap for all multibyte
13699 characters, don't check by BASE_LEADING_CODE_P.
13700 (re_search_2): Don't check RE_TARGET_MULTIBYTE_P (bufp). It is
13701 the same as RE_MULTIBYTE_P (bufp) now.
13702 (mutually_exclusive_p): Check by (! multibyte || IS_REAL_ASCII (c)).
13703 (TARGET_CHAR_AND_LENGTH): Delete this macro.
13704 (TRANSLATE_VIA_MULTIBYTE): New macro.
13705 (re_match_2_internal): Don't check RE_TARGET_MULTIBYTE_P (bufp).
13706 It is the same as RE_MULTIBYTE_P (bufp) now.
13707 <exactn>: Translate via multibyte.
13708 <anychar>: Fetch a character by RE_STRING_CHAR_AND_LENGTH. Don't
13709 translate it.
13710 <charset, charset_not>: Fetch a character by
13711 RE_STRING_CHAR_AND_LENGTH. Translate via multibyte.
13712 <duplicate>: Call bcmp_translate with the last arg `multibyte'.
13713 <wordbound, notwordbound, wordbeg, wordend, syntaxspec,
13714 notsyntaxspec, categoryspec, notcategoryspec> Fetch a character
13715 by GET_CHAR_AFTER.
13716 (bcmp_translate): Likewise.
13717
13718 * search.c (compile_pattern): Check the member target_multibyte,
13719 not the member multibyte of buf.
13720
13721 * lread.c (read1): While reading a string, set force_singlebyte
13722 and force_multibyte correctly.
13723
13724 * charset.c (Fset_unibyte_charset, init_charset_once): Fix setting
13725 up of unibyte_to_multibyte_table.
13726
137272008-02-01 Kenichi Handa <handa@m17n.org>
13728
13729 * coding.c (setup_coding_system): If coding has
13730 post-read-conversion or pre-write-conversion, set
13731 CODING_REQUIRE_DECODING_MASK and CODING_REQUIRE_ENCODING_MASK
13732 respectively.
13733 (decode_coding_gap): Run post-read-conversion if any.
13734
13735 * fileio.c (Finsert_file_contents): Even if we read into a
13736 unibyte buffer, check if we must decode the result or not.
13737
137382008-02-01 Kenichi Handa <handa@m17n.org>
13739
13740 * coding.c (make_conversion_work_buffer): Change the work buffer
13741 name to the same one as that of Emacs 21.
13742
137432008-02-01 Kenichi Handa <handa@m17n.org>
13744
13745 * coding.h (make_conversion_work_buffer): Adjust prototype.
13746 (code_conversion_restore): Don't extern it.
13747
13748 * coding.c (detected_mask): Delete unused variable.
13749 (decode_coding_iso_2022): Pay attention to the byte sequence of
13750 CTEXT extended segment, and retain those bytes as is.
13751 (decode_coding_ccl): Delete unused variable `valids'.
13752 (setup_coding_system): Delete unused variable `category'.
13753 (consume_chars): Delete unused variable `category'. Make it work
13754 for non-multibyte case.
13755 (make_conversion_work_buffer): Change argument.
13756 (saved_coding): Delete unused variable.
13757 (code_conversion_restore): Don't check saved_coding->destination.
13758 (code_conversion_save): New function.
13759 (decode_coding_gap, encode_coding_gap): Call code_conversion_save
13760 instead of record_unwind_protect.
13761 (decode_coding_object, encode_coding_object): Likewise. Recover PT.
13762 (detect_coding_system): Delete unused variable `mask'.
13763 (Fdefine_coding_system_internal): Delete unused variable id.
13764
13765 * fileio.c (kill_workbuf_unwind): New function.
13766 (Finsert_file_contents): On replacing, call
13767 make_conversion_work_buffer with correct args, and call
13768 record_unwind_protect with the first arg kill_workbuf_unwind.
13769
13770 * lisp.h (Fgenerate_new_buffer_name): EXFUN it.
13771
137722008-02-01 Kenichi Handa <handa@m17n.org>
13773
13774 * fontset.c (BASE_FONTSET_P): Check FONTSET_BASE, not FONTSET_NAME.
13775 (fontset_add): Fix for the case that TO is less than TO1.
13776 (Ffontset_info): Don't use fallback fontset on checking the
13777 default fontset.
13778 (dump_fontset): New function for debugging.
13779
13780 * coding.c (Fdefine_coding_system_internal): Fix for the case that
13781 coding_type is Qcharset.
13782
137832008-02-01 Kenichi Handa <handa@m17n.org>
13784
13785 * chartab.c (map_sub_char_table): New argument DEFAULT_VAL.
13786 (map_char_table): Don't inherit the value from the parent on
13787 initializing VAL. Adjust for the above change.
13788
137892008-02-01 Kenichi Handa <handa@m17n.org>
13790
13791 * coding.c (Qsignature, Qendian): Delete these variables.
13792 (syms_of_coding): Don't initialize them.
13793 (CATEGORY_MASK_UTF_16_AUTO): New macro.
13794 (detect_coding_utf_16): Add CATEGORY_MASK_UTF_16_AUTO in
13795 detect_info->found.
13796 (decode_coding_utf_16): Don't detect BOM here.
13797 (encode_coding_utf_16): Produce BOM if CODING_UTF_16_BOM (coding)
13798 is NOT utf_16_without_bom.
13799 (setup_coding_system): For a coding system of type utf-16, check
13800 if the attribute :endian is Qbig or not (not nil or not), and set
13801 CODING_REQUIRE_DETECTION_MASK if BOM detection is required.
13802 (detect_coding): If coding type is utf-16 and BOM detection is
13803 required, detect it.
13804 (Fdefine_coding_system_internal): For a coding system of type
13805 utf-16, check if the attribute :endian is Qbig or not (not nil or not).
13806
138072008-02-01 Kenichi Handa <handa@m17n.org>
13808
13809 * coding.c (coding_set_source): Fix for the case that the current
13810 buffer is different from coding->src_object.
13811 (decode_coding_object): Don't use the conversion work buffer if
13812 DST_OBJECT is a buffer.
13813
138142008-02-01 Dave Love <fx@gnu.org>
13815
13816 * lread.c (read_emacs_mule_char) [len==2]: Index
13817 emacs_mule_charset correctly.
13818
138192008-02-01 Dave Love <fx@gnu.org>
13820
13821 * coding.c (Qbig5, Vbig5_coding_system, CATEGORY_MASK_BIG5)
13822 (detect_coding_big5, decode_coding_big5, encode_coding_big5)
13823 (Fdecode_big5_char, Fencode_big5_char): Delete. (Big5 no longer
13824 treated specially.)
13825 (setup_coding_system, coding_category, CATEGORY_MASK_ANY)
13826 (detected_mask): Remove Big5 bits.
13827
138282008-02-01 Kenichi Handa <handa@m17n.org>
13829
13830 The following changes are to make the font rescaling facility
13831 compatible with Emacs 21.
13832
13833 * xfaces.c (Vface_font_rescale_alist): Rename from
13834 Vface_resizing_fonts.
13835 (struct font_name): Rename member resizing_ratio to rescale_ratio.
13836 (font_rescale_ratio): Rename from font_resizing_ratio.
13837 (split_font_name): Set font->rescale_ratio.
13838 (better_font_p): Pay attention to font->rescale_ratio.
13839 (build_scalable_font_name): Likewise. Change RESX, and RESY
13840 fields.
13841 (syms_of_xfaces): Declare Vface_font_rescale_alist as a Lisp variable.
13842
138432008-02-01 Kenichi Handa <handa@m17n.org>
13844
13845 * coding.c (Qutf_16_be_nosig, Qutf_16_be, Qutf_16_le_nosig)
13846 (Qutf_16_le): Remove these variables.
13847 (syms_of_coding): Don't DEFSYM them.
13848 (decode_coding_utf_16): Fix handling of BOM.
13849 (encode_coding_utf_16): Fix handling of BOM.
13850
138512008-02-01 Kenichi Handa <handa@m17n.org>
13852
13853 * fileio.c (Finsert_file_contents): On replacing, before decoding
13854 the file into the work buffer, set point of the work buffer to the end.
13855
138562008-02-01 Dave Love <fx@gnu.org>
13857
13858 * coding.c (Fcheck_coding_systems_region): Fix type errors.
13859
138602008-02-01 Dave Love <fx@gnu.org>
13861
13862 * xterm.c (XTread_socket): Check Lisp types for Vx_keysym_table
13863 and fix C types.
13864
138652008-02-01 Kenichi Handa <handa@m17n.org>
13866
13867 * xdisp.c (SKIP_GLYPHS): New macro.
13868 (set_cursor_from_row): Pay attention to string display properties.
13869
13870 * category.c (copy_category_entry): Fix for the case that RANGE
13871 is an integer.
13872
13873 * xterm.c (x_encode_char): Call ccl_driver with the last arg Qnil.
13874
13875 * w32term.c (w32_encode_char): Call ccl_driver with the last arg Qnil.
13876
138772008-02-01 Kenichi Handa <handa@m17n.org>
13878
13879 * charset.c (Fcharset_id_internal): New function.
13880 (syms_of_charset): Defsubr it.
13881
13882 * coding.c (decode_coding_ccl, encode_coding_ccl): Call ccl_driver
13883 with the last arg charset_list acquired from coding.
13884 (Fdefine_coding_system_internal): For ccl-based coding system, fix
13885 the attribute coding_attr_ccl_valids.
13886
13887 * coding.h (enum define_coding_ccl_arg_index): Set the first
13888 member coding_arg_ccl_decoder to coding_arg_max.
13889
13890 * ccl.h (ccl_driver): Adjust prototype.
13891
13892 * ccl.c (CCL_DECODE_CHAR, CCL_ENCODE_CHAR): New macros.
13893 (ccl_driver): New arg CHARSET_LIST. Use the above macros instead
60612c8f 13894 of DECODE_CHAR, ENCODE_CHAR, CHAR_CHARSET.
aac0c6e3
MR
13895 (Fccl_execute, Fccl_execute_on_string): Call ccl_driver with the
13896 last arg Qnil.
13897
138982008-02-01 Kenichi Handa <handa@m17n.org>
13899
13900 * charset.h (ENCODE_CHAR): If the method is SUBSET or SUPERSET,
13901 call encode_char.
13902
13903 * charset.c (encode_char): Fix handling of methods SUBSET and SUPERSET.
13904
139052008-02-01 Dave Love <fx@gnu.org>
13906
13907 * composite.c (syms_of_composite): Make composition_hash_table weak.
13908
139092008-02-01 Kenichi Handa <handa@m17n.org>
13910
13911 * dispextern.h (check_face_attributes, generate_ascii_font_name)
13912 (font_name_registry): Don't extern them.
13913 (split_font_name_into_vector, build_font_name_from_vector): Extern them.
13914
13915 * fontset.h (Qfontset): Don't extern it.
13916 (new_fontset_from_font_name): Extern it.
13917
13918 * fontset.c: Give 8 extra slots to fontset objects.
13919 (Qfontset_info): New variable.
13920 (syms_of_fontset): Defsym it.
13921 (FONTSET_FALLBACK): New macro.
13922 (fontset_face): Try also the default fontset.
13923 (make_fontset): Realize a fallback fontset from the default fontset.
13924 (generate_ascii_font_name): Move from xfaces.c. Rewritten by
13925 using split_font_name_into_vector and build_font_name_from_vector.
13926 (Fset_fontset_font): Access the elements of font_spec by enum
13927 FONT_SPEC_INDEX. If font_spec is a string, extract the registry
13928 name by using split_font_name_into_vector.
13929 (Fnew_fontset): If no ASCII font is specified in FONTLIST,
13930 generate a proper font name from the fontset name. Update
13931 Vfontset_alias_alist.
13932 (n_auto_fontsets): New variable.
13933 (new_fontset_from_font_name): New function.
13934 (Ffont_info): Store the information about fonts generated from the
13935 default fontset in the first extra slot of the returned char-table.
13936
13937 * xfaces.c (generate_ascii_font_name): Move to fontset.c.
13938 (font_name_registry): Delete function.
13939 (split_font_name_into_vector): New function.
13940 (build_font_name_from_vector): New function.
13941 (font_list): The argument REGISTRY is now a list of registry names.
13942 (choose_face_font): If we are choosing an ASCII font, and ATTRS
13943 specifies an explicit font name, return the name as is. Make a
13944 list of registy names.
13945
13946 * xfns.c (x_set_font, x_create_tip_frame): Adjust for the change
13947 of x_new_fontset.
13948 (Fx_create_frame): Don't call x_new_fontset here. Just use
13949 x_list_fonts to check the existence of fonts.
13950
13951 * xterm.h (x_new_fontset): Adjust prototype.
13952
13953 * xterm.c (x_new_fontset): Change the arg FONTSETNAME to Lisp
13954 string. Use new_fontset_from_font_name to create a fontset from a
13955 font name.
13956
139572008-02-01 Kenichi Handa <handa@m17n.org>
13958
13959 * syntax.c (Vfind_word_boundary_function_table): New name for
13960 Vnext_word_boundary_function_table.
13961 (find-word-boundary-function-table): New name for
13962 next-word-boundary-function-table.
13963
139642008-02-01 Dave Love <fx@gnu.org>
13965
13966 * Makefile.in: Fix some dependencies.
13967
13968 * keymap.c (Fapropos_internal): Don't gcpro apropos_predicate but
13969 set it to nil before returning.
13970
13971 * composite.c (update_compositions): Fix type error.
13972
13973 * syntax.c (skip_chars, skip_syntaxes): Fix type errors.
13974
139752008-02-01 Kenichi Handa <handa@m17n.org>
13976
13977 * xterm.c (x_new_font): Optimize for the case that the font is
13978 already set for the frame.
13979
139802008-02-01 Kenichi Handa <handa@m17n.org>
13981
13982 * chartab.c (char_table_ascii): Check if the char table contents
13983 is sub-char-table or not.
13984 (char_table_set, char_table_set_range): Fix argument to
13985 char_table_ascii.
13986
13987 * coding.c (CATEGORY_MASK_RAW_TEXT): New macro.
13988 (detect_coding_utf_8, detect_coding_utf_16)
13989 (detect_coding_emacs_mule, detect_coding_iso_2022)
13990 (detect_coding_sjis, detect_coding_big5)
13991 (detect_coding_ccl, detect_coding_charset): Change argument MASK
13992 to DETECT_INFO. Update DETECT_INFO and return 1 if the byte
13993 sequence is valid in this coding system. Change callers.
13994 (MAX_ANNOTATION_LENGTH): New macro.
13995 (ADD_ANNOTATION_DATA): New macro.
13996 (ADD_COMPOSITION_DATA): Change argument. Change callers. Call
13997 ADD_ANNOTATION_DATA. Change the format of annotation data.
13998 (ADD_CHARSET_DATA): New macro.
13999 (emacs_mule_char): New argument ID. Change callers.
14000 (decode_coding_emacs_mule, decode_coding_iso_2022)
14001 (decode_coding_sjis, decode_coding_big5, decode_coding_charset):
14002 Produce charset annotation data in coding->charbuf.
14003 (encode_coding_emacs_mule, encode_coding_iso_2022): Pay attention
14004 to charset annotation data in coding->charbuf.
14005 (setup_coding_system): Add CODING_ANNOTATE_CHARSET_MASK
14006 coding->common_flags if the coding system is iso-2022 based and
14007 uses designation.
14008 (produce_composition): Adjust for the new annotation data format.
14009 (produce_charset): New function.
14010 (produce_annotation): Handle charset annotation.
14011 (handle_composition_annotation, handle_charset_annotation): New
14012 functions.
14013 (consume_chars): Handle charset annotation. Utilize the above two
14014 functions.
14015 (encode_coding_object): If SRC_OBJECT and DST_OBJECT are the same
14016 buffer, get the deleted text as a string and set
14017 coding->src_object to that string.
14018 (detect_coding, detect_coding_system): Use the new struct
14019 coding_detection_info.
14020
14021 * coding.h (struct coding_detection_info): New structure.
14022 (struct coding_system): Adjust prototype of the member `detector'.
14023 (CODING_ANNOTATE_CHARSET_MASK): New macro.
14024
140252008-02-01 Kenichi Handa <handa@m17n.org>
14026
14027 * insdel.c (insert_from_gap): Fix argument to offset_intervals.
14028
140292008-02-01 Dave Love <fx@gnu.org>
14030
14031 * keymap.c (apropos_predicate, apropos_accumulate): Declare static.
14032 (Fapropos_internal): Don't gcpro apropos_accumulate. Set result
14033 to new local and nullify apropos_accumulate before returning.
14034 (syms_of_keymap): Staticpro and initialize apropos_accumulate.
14035
140362008-02-01 Kenichi Handa <handa@m17n.org>
14037
14038 * charset.c (Fdefine_charset_internal): Setup charset.fast_map
14039 correctly.
e3eea1fc 14040
aac0c6e3
MR
140412008-02-01 Dave Love <fx@gnu.org>
14042
14043 * fns.c (Flanginfo): Call synchronize_system_time_locale.
14044
140452008-02-01 Kenichi Handa <handa@m17n.org>
14046
14047 The following changes are to make character composition happen
14048 automatically on displaying.
14049
14050 * Makefile.in (lisp, shortlisp): Add composite.elc.
14051
14052 * composite.h (Qauto_composed, Vauto_composition_function)
14053 (Qauto_composition_function): Extern them.
14054
14055 * composite.c (Vcomposition_function_table)
14056 (Qcomposition_function_table): Delete variables.
14057 (Qauto_composed, Vauto_composition_function)
14058 (Qauto_composition_function): New variables.
14059 (run_composition_function): Don't call
14060 compose-chars-after-function.
14061 (update_compositions): Clear `auto-composed' text property.
14062 (compose_chars_in_text): Delete this function.
14063 (syms_of_composite): Staticpro Qauto_composed and
14064 Qauto_composition_function. Declare Vauto_composition_function as
14065 a Lisp variable.
14066
14067 * dispextern.h (enum prop_idx): Add member AUTO_COMPOSED_PROP_IDX.
14068
14069 * xdisp.c (it_props): Add an entry for Qauto_composed.
14070 (handle_auto_composed_prop): New function.
14071
14072 * xselect.c (selection_data_to_lisp_data): Don't call
14073 compose_chars_in_text.
14074
140752008-02-01 Dave Love <fx@gnu.org>
14076
14077 * keyboard.c (read_char): Modify checking around use of
14078 Vkeyboard_translate_table.
14079
14080 * xterm.c (XTread_socket): Check Lisp types for Vx_keysym_table
14081 and fix C types.
14082
140832008-02-01 Kenichi Handa <handa@m17n.org>
14084
14085 * coding.c (decode_coding_utf_8, decode_coding_emacs_mule)
14086 (decode_coding_iso_2022, decode_coding_sjis, decode_coding_big5)
14087 (decode_coding_charset, produce_chars): When eol_type is Qdos, handle
14088 the case that the last byte is '\r' correctly.
14089 (decode_coding): Flush out the unprocessed data correctly.
14090 (decode_coding_gap): Set CODING_MODE_LAST_BLOCK bit of coding->mode.
14091
140922008-02-01 Dave Love <fx@gnu.org>
14093
14094 * xterm.c (XTread_socket): Fix changes for defined keysyms.
14095 Add XK_ISO... case.
14096 (xaw_scroll_callback): Revert last change.
14097
140982008-02-01 Kenichi Handa <handa@m17n.org>
14099
14100 * charset.c (Fset_charset_priority): Update Viso_2022_charset_list.
14101
141022008-02-01 Kenichi Handa <handa@m17n.org>
14103
14104 * xfaces.c (Vface_resizing_fonts): New variable.
14105 (struct font_name): New member `resizing_ratio'.
14106 (font_resizing_ratio): New function.
14107 (split_font_name): Set font->resizing_ratio.
14108 (better_font_p): Pay attention to font->resizing_ratio.
14109 (build_scalable_font_name): Likewise. Don't change POINT_SIZE,
14110 RESX, and RESY fields.
14111 (try_alternative_families): Try scalable fonts if
14112 Vscalable_fonts_allowed is not Qt.
14113 (syms_of_xfaces): Declare Vface_resizing_fonts as a Lisp variable.
14114
141152008-02-01 Dave Love <fx@gnu.org>
14116
14117 * xterm.c (xaw_scroll_callback): Cast correctly.
14118
141192008-02-01 Dave Love <fx@gnu.org>
14120
14121 * keyboard.c (lispy_accent_codes, lispy_accent_keys): Extend.
14122 (lispy_kana_keys): Comment out.
14123 (make_lispy_event) [XK_kana_A]: Comment out.
14124
14125 * xterm.c (xaw_scroll_callback): Cast call_data.
14126 (XTread_socket): Deal with ASCII keysyms.
14127 (syms_of_xterm) <Vx_keysym_table>: Fix args of make_hash_table.
14128
141292008-02-01 Dave Love <fx@gnu.org>
14130
14131 * xterm.c (Vx_keysym_table): New.
14132 (syms_of_xterm): Initialize it.
14133 (XTread_socket): Use it.
14134 From head: Eliminate incorrect optimization that tried to avoid
14135 decoding the output of X*LookupString.
14136 (x_get_font_repertory): Delete charset declaration.
14137
141382008-02-01 Kenichi Handa <handa@m17n.org>
14139
14140 * coding.c (detect_coding_charset): If only ASCII bytes are found,
14141 return 0.
14142 (Fdefine_coding_system_internal): Setup
14143 CODING_ATTR_ASCII_COMPAT (attrs) correctly.
14144
141452008-02-01 Dave Love <fx@gnu.org>
14146
14147 * coding.c (Fcheck_coding_system): Doc fix.
14148
14149 * editfns.c (Finsert_byte): Return a proper value.
14150
141512008-02-01 Kenichi Handa <handa@m17n.org>
14152
14153 * coding.c (decode_coding): Fix args to translate_chars. Pay
14154 attention to Vstandard_translation_table_for_decode.
14155 (encode_coding): Fix args to translate_chars. Pay attention to
14156 Vstandard_translation_table_for_encode.
14157
14158 * data.c (Faset): Check NEWELT by ASCII_CHAR_P, not by
14159 SINGLE_BYTE_CHAR_P.
14160
14161 * editfns.c (general_insert_function): Check VAL by ASCII_CHAR_P,
14162 not by SINGLE_BYTE_CHAR_P.
14163
14164 * fns.c (concat): Check CH by ASCII_CHAR_P, not by
14165 SINGLE_BYTE_CHAR_P.
14166
14167 * insdel.c (copy_text): Check C by ASCII_CHAR_P, not by
14168 SINGLE_BYTE_CHAR_P.
14169
14170 * keymap.c (Ftext_char_description): Check C by ASCII_CHAR_P, not
14171 by SINGLE_BYTE_CHAR_P.
14172
14173 * search.c (Freplace_match): Check C by ASCII_CHAR_P, not by
14174 SINGLE_BYTE_CHAR_P.
14175
141762008-02-01 Dave Love <fx@gnu.org>
14177
14178 * fns.c (Fstring_as_multibyte, Fstring_to_multibyte): Doc fix.
14179
141802008-02-01 Dave Love <fx@gnu.org>
14181
14182 * fns.c (Flanginfo): Fix typo.
14183
14184 * unexelf.c (unexec): Make last change conditional on Irix 6.5.
14185
141862008-02-01 Kenichi Handa <handa@m17n.org>
14187
14188 * coding.c (detect_coding_utf_8, detect_coding_utf_16)
14189 (detect_coding_emacs_mule, detect_coding_iso_2022)
14190 (detect_coding_sjis, detect_coding_big5, detect_coding_ccl): Check
14191 incomplete byte sequence. Don't update *mask when correctly detected.
14192 (decode_coding_sjis): Fix decoding of katakana-jisx0201.
14193 (detect_eol): Delete the argument CODING, and add the argument CATEGORY.
14194 (detect_coding, detect_coding_system): Adjust for the changes above.
14195
141962008-02-01 Kenichi Handa <handa@m17n.org>
14197
14198 * character.c (char_string): Rename from
14199 char_string_with_unification. Pay attention to CHAR_MODIFIER_MASK.
14200 (string_char): Rename from string_char.
14201
14202 * character.h (CHAR_STRING, CHAR_STRING_ADVANCE): Call char_string
14203 if C is greater than MAX_3_BYTE_CHAR.
14204 (STRING_CHAR, STRING_CHAR_AND_LENGTH, STRING_CHAR_ADVANCE): Call
14205 string_char instead of string_char_with_unification.
14206
142072008-02-01 Dave Love <fx@gnu.org>
14208
14209 * coding.c (decode_coding_utf_8): Treat surrogates as invalid.
14210
142112008-02-01 Kenichi Handa <handa@m17n.org>
14212
14213 * keymap.c (push_key_description): Pay attention to force_multibyte.
14214
14215 * regex.c (re_search_2): Fix for the case of unibyte buffer.
14216
142172008-02-01 Dave Love <fx@gnu.org>
14218
14219 * charset.c (define_charset_internal): Rename `supprementary'.
14220
14221 * Makefile.in (lisp, shortlisp): Remove latin-N.
14222
142232008-02-01 Dave Love <fx@gnu.org>
14224
14225 * xfns.c (x_window, x_window): Use use_xim.
14226
14227 * xterm.c (use_xim): Initialize.
14228 (xim_open_dpy, xim_initialize, xim_close_dpy): Use use_xim.
14229 (x_term_init): Maybe set use_xim.
14230
14231 * xterm.h (use_xim) [HAVE_X_I18N]: Declare.
14232
142332008-02-01 Kenichi Handa <handa@m17n.org>
14234
14235 * search.c (search_buffer): Fix case-fold-search of multibyte
14236 characters.
14237 (boyer_moore): Rename the last argument to char_high_bits.
14238
142392008-02-01 Kenichi Handa <handa@m17n.org>
14240
14241 * xdisp.c (display_string): Fix for the case of zero width glyph.
14242
14243 * xfns.c (x_set_font): Change the error message of the case that
14244 x_new_fontset returns Qt.
14245
14246 * xfaces.c (set_lface_from_font_name): Reject the default fontset.
14247 (Finternal_set_lisp_face_attribute): Use signal_error for the
14248 error of invalid fontset.
14249
14250 * xterm.c (x_new_fontset): If FONTSETNAME specifies the default
14251 fontset, return Qt.
14252
142532008-02-01 Dave Love <fx@gnu.org>
14254
14255 * unexelf.c (unexec): Make .got handling not SGI-specific.
14256
14257 * syntax.c (syms_of_syntax) <multibyte-syntax-as-symbol>: Doc fix.
14258
14259 * regex.c: Use `ifdef HAVE_ALLOCA_H', not `if HAVE_ALLOCA_H'.
14260
14261 * keyboard.c (read_key_sequence): Fix type error.
14262
14263 * buffer.c (Fset_buffer_multibyte, Fset_buffer_multibyte): Fix
14264 type error.
14265
14266 * fontset.c (fontset_add): Return Lisp_Object.
14267
142682008-02-01 Dave Love <fx@gnu.org>
14269
14270 * charset.h (charset_ordered_list_tick): Declare extern.
14271
142722008-02-01 Kenichi Handa <handa@m17n.org>
14273
14274 The following changes (and some of 2008-02-01 changes of mine) are
14275 for handling syntax, category, and case conversion for unibyte
14276 characters by converting them to multibyte on the fly. With these
14277 changes, we don't have to setup syntax and case tables for unibyte
14278 characters in each language environment.
14279
14280 * abbrev.c (Fexpand_abbrev): Convert a unibyte character to
14281 multibyte if necessary.
14282
14283 * bytecode.c (Fbyte_code): Likewise.
14284
14285 * character.h (LEADING_CODE_LATIN_1_MIN)
14286 (LEADING_CODE_LATIN_1_MAX): New macros.
14287 (unibyte_to_multibyte_table): Extern it.
14288 (unibyte_char_to_multibyte): New macro.
14289 (MAKE_CHAR_MULTIBYTE): Use unibyte_to_multibyte_table.
14290 (CHAR_LEADING_CODE): New macro.
14291 (FETCH_STRING_CHAR_AS_MULTIBYTE_ADVANCE): New macro.
14292
14293 * character.c (unibyte_to_multibyte_table): New variable.
14294 (unibyte_char_to_multibyte): Move to character.h and define as macro.
14295 (multibyte_char_to_unibyte): If C is an eight-bit character,
14296 convert it to the corresponding byte value.
14297
14298 * charset.c (Fset_unibyte_charset): If the dimension of CHARSET is
14299 not 1, signals an error. Update the elements of
14300 unibyte_to_multibyte_table.
14301 (init_charset_once): Initialize unibyte_to_multibyte_table.
14302 (syms_of_charset): Define the charset `iso-8859-1'.
14303
14304 * cmds.c (internal_self_insert): In a multibyte buffer, insert C
14305 as is without converting it to unibyte. In a unibyte buffer,
14306 convert C to multibyte before checking the syntax.
14307
14308 * lisp.h (unibyte_char_to_multibyte): Delete extern.
14309
14310 * minibuf.c (Fminibuffer_complete_word): Use the macro
14311 FETCH_STRING_CHAR_AS_MULTIBYTE_ADVANCE.
14312
14313 * regex.h (struct re_pattern_buffer): New member target_multibyte.
14314
14315 * regex.c (RE_TARGET_MULTIBYTE_P): New macro.
14316 (GET_CHAR_BEFORE_2): Check target_multibyte, not multibyte. If
14317 that is zero, convert an eight-bit char to multibyte.
14318 (MAKE_CHAR_MULTIBYTE, CHAR_LEADING_CODE): New dummy new macros for
14319 non-emacs case.
14320 (PATFETCH): Convert an eight-bit char to multibyte.
14321 (HANDLE_UNIBYTE_RANGE): New macro.
14322 (regex_compile): Setup the compiled pattern for multibyte chars
14323 even if the given regex string is unibyte. Use PATFETCH_RAW
14324 instead of PATFETCH in many places. To handle `charset'
14325 specification of unibyte, call HANDLE_UNIBYTE_RANGE. Use bitmap
14326 only for ASCII chars.
14327 (analyse_first) <exactn>: Simplify because the compiled pattern
14328 is multibyte.
14329 <charset_not>: Setup fastmap from bitmap only for ASCII chars.
14330 <charset>: Use CHAR_LEADING_CODE to get leading codes.
14331 <categoryspec>: If multibyte, setup fastmap only for ASCII chars here.
14332 (re_compile_fastmap) [emacs]: Call analyse_first with the arg
14333 multibyte always 1.
14334 (re_search_2): In emacs, set the locale variable multibyte to 1,
14335 otherwise to 0. New local variable target_multibyte. Check it
14336 to decide the multibyteness of STR1 and STR2. If
14337 target_multibyte is zero, convert unibyte chars to multibyte
14338 before translating and checking fastmap.
14339 (TARGET_CHAR_AND_LENGTH): New macro.
14340 (re_match_2_internal): In emacs, set the locale variable multibyte
14341 to 1, otherwise to 0. New local variable target_multibyte. Check
14342 it to decide the multibyteness of STR1 and STR2. Use
14343 TARGET_CHAR_AND_LENGTH to fetch a character from D.
14344 <charset, charset_not>: If multibyte is nonzero, check fastmap
14345 only for ASCII chars. Call bcmp_translate with
14346 target_multibyte, not with multibyte.
14347 <begline>: Declare the local variable C as `unsigned'.
14348 (bcmp_translate): Change the last arg name to target_multibyte.
14349
14350 * search.c (compile_pattern_1): Don't adjust the multibyteness of
14351 the regexp pattern and the matching target. Set cp->buf.multibyte
14352 to the multibyteness of the regexp pattern. Set
14353 cp->but.target_multibyte to the multibyteness of the matching target.
14354 (wordify): Use FETCH_STRING_CHAR_AS_MULTIBYTE_ADVANCE instead of
14355 FETCH_STRING_CHAR_ADVANCE.
14356 (Freplace_match): Convert unibyte chars to multibyte.
14357
14358 * syntax.c (char_quoted, back_comment, scan_words)
14359 (Fforward_comment, scan_lists, Fbackward_prefix_chars)
14360 (scan_sexps_forward): Use FETCH_CHAR_AS_MULTIBYTE to convert
14361 unibyte chars to multibyte.
14362 (skip_chars): Delete the arg syntaxp, and move the code for
14363 handling syntaxes to skip_syntaxes. Change callers.
14364 Fix the case that the multibyteness of STRING and the current
14365 buffer doesn't match.
14366 (skip_syntaxes): New function.
14367 (SYNTAX_WITH_MULTIBYTE_CHECK): Check C by ASCII_CHAR_P, not by
14368 SINGLE_BYTE_CHAR_P.
14369
143702008-02-01 Kenichi Handa <handa@m17n.org>
14371
14372 * xfaces.c (QCfontset): New variable.
14373 (LFACE_FONTSET): New macro.
14374 (check_lface_attrs): Check also LFACE_FONTSET_INDEX.
14375 (set_lface_from_font_name): Setup LFACE_FONTSET (lface).
14376 (Finternal_set_lisp_face_attribute)
14377 (Finternal_get_lisp_face_attribute): Handle QCfontset.
14378 (lface_same_font_attributes_p): Fix checking of LFACE_FONT_INDEX,
14379 check also LFACE_FONTSET_INDEX.
14380 (face_fontset): Check attrs[LFACE_FONTSET_INDEX], not
14381 attrs[LFACE_FONT_INDEX].
14382 (syms_of_xfaces): Intern and staticpro QCfontset.
14383
14384 * dispextern.h (enum lface_attribute_index): New member
14385 LFACE_FONTSET_INDEX.
14386
14387 * fns.c (base64_encode_1): Handle eight-bit chars correctly.
14388
143892008-02-01 Kenichi Handa <handa@m17n.org>
14390
14391 * coding.c (coding_set_destination): Fix coding->destination for
14392 the case converting a region.
14393 (encode_coding_utf_8): Encode eight-bit chars as single byte.
14394 (encode_coding_object): Fix coding->dst_pos and
14395 coding->dst_pos_byte for the case converting a region.
14396
14397 * insdel.c (insert_from_gap): Make it work even if PT != GTP.
14398
14399 * character.h (BYTE8_STRING): New macro.
14400
14401 * fns.c (base64_decode_1): Insert eight-bit chars correctly.
14402
144032008-02-01 Kenichi Handa <handa@m17n.org>
14404
14405 * xdisp.c (get_next_display_element): Don't display unibyte 8-bit
14406 characters by octal form.
14407
14408 * abbrev.c (Fexpand_abbrev): Fix for the multibyte case.
14409
14410 * buffer.h (_fetch_multibyte_char_len): Delete extern.
14411 (FETCH_MULTIBYTE_CHAR, BUF_FETCH_MULTIBYTE_CHAR): Don't use
14412 _fetch_multibyte_char_len.
14413 (FETCH_CHAR_AS_MULTIBYTE): New macro.
14414
14415 * casetab.c (set_canon, set_identity, shuffle): Simplify.
14416
14417 * casefiddle.c (casify_object): Simplify. Handle the case that
14418 the case conversion change the byte length.
14419 (casify_region): Likewise.
14420
14421 * character.h (MAKE_CHAR_UNIBYTE, MAKE_CHAR_MULTIBYTE): New macros.
14422
14423 * character.c (_fetch_multibyte_char_len): Delete this variable.
14424 (syms_of_character): Setup Vprintable_chars.
14425
14426 * editfns.c (Fchar_equal): Fix for the unibyte case.
14427 (Finsert_byte): New function.
14428 (syms_of_editfns): Defsubr it.
14429
14430 * keyboard.c (read_key_sequence): Use ~CHAR_MODIFIER_MASK instead
14431 of direct code 0x3ffff.
14432
14433 * search.c (Freplace_match): Fix for the unibyte case.
14434
144352008-02-01 Kenichi Handa <handa@m17n.org>
14436
14437 * lread.c (safe_to_load_p): Fix the logic.
14438
14439 * syntax.c (scan_words): Don't treat characters belonging to
14440 different scripts as constituting a word.
14441
14442 * editfns.c (Fformat): Use ASCII_CHAR_P, not SINGLE_BYTE_CHAR_P.
14443
14444 * fontset.c (Fset_fontset_font): Treat `ascii' as charset, not script.
14445
14446 * emacs.c (main): In the case of --unibyte, instead of aborting on
14447 finding non-empty buffer, make it unibyte.
14448
144492008-02-01 Kenichi Handa <handa@m17n.org>
14450
14451 * xterm.c (x_new_fontset): Call `create-fontset-from-ascii-font'
14452 to create a fontset.
14453
144542008-02-01 Dave Love <fx@gnu.org>
14455
14456 * character.c (Funibyte_char_to_multibyte): Doc fix.
14457
14458 * xfns.c [HAVE_STDLIB_H]: Fix last change.
14459
144602008-02-01 Kenichi Handa <handa@m17n.org>
14461
14462 * fontset.c (fontset_add): Make the type `int'.
14463 (fontset_id_valid_p): Define it if FONTSET_DEBUG is defined.
14464
14465 * character.c (unibyte_char_to_multibyte)
14466 (multibyte_char_to_unibyte, Funibyte_char_to_multibyte): Refer to
14467 charset_unibyte, not charset_primary.
14468
14469 * charset.h (charset_unibyte): Extern it instead of charset_primary.
14470
14471 * charset.c (charset_unibyte): Rename from charset_primary.
14472 (Funibyte_charset): Rename from Fprimary_charset.
14473 (Fset_unibyte_charset): Rename from Fset_primary_charset.
14474 (syms_of_charset): Adjust for the above changes.
14475
14476 * w32term.c (x_produce_glyphs): Use ASCII_CHAR_P, not
14477 SINGLE_BYTE_CHAR_P. Fix the logic of handling non-ASCII char when
14478 it->multibyte_p is zero.
14479
14480 * lisp.h (nonascii_insert_offset, Vnonascii_translation_table):
14481 Delete extern.
14482
144832008-02-01 Kenichi Handa <handa@m17n.org>
14484
14485 * coding.c (Fdefine_coding_system_internal): Fix category setting
14486 for a coding system of type iso-2022.
14487
144882008-02-01 Kenichi Handa <handa@m17n.org>
14489
14490 * fontset.h (FS_LOAD_FONT): Call fs_load_font with the arg CHARSET -1.
14491
144922008-02-01 Kenichi Handa <handa@m17n.org>
14493
14494 * syntax.c (Vnext_word_boundary_function_table): New variable.
14495 (next-word-boundary-function-table): Declare it as a Lisp variable
14496 in syms_of_syntax.
14497 (scan_words): Call functions in Vnext_word_boundary_function_table
14498 if any.
14499
14500 * xterm.c (x_load_font): Initialize fontp->fontset to -1.
14501
14502 * fontset.c (fs_load_font): If fontp->charset is not negative,
14503 return fontp without setting its members.
14504
145052008-02-01 Dave Love <fx@gnu.org>
14506
14507 * xfns.c [HAVE_STDLIB_H]: Change logic (instead of fixing typo).
14508
14509 * m/sparc.h (HAVE_ALLOCA): Delete.
14510
14511 * s/irix6-5.h: Don't include strings.h.
14512 (bcopy, bzero, bcmp): Don't undef.
14513
14514 * s/irix6-0.h (bcopy, bzero, bcmp): Don't undef.
14515
14516 * s/usg5-4.h (NO_SIOCTL_H): Don't define.
14517 (TIOCSIGSEND): Don't test IRIX6.
14518 (bcopy, bzero, bcmp): Define conditionally.
14519
145202008-02-01 Kenichi Handa <handa@m17n.org>
14521
14522 * buffer.c (Qas, Qmake, Qto): New variables.
14523 (Fset_buffer_multibyte): New optional arg METHOD. Change caller.
14524 (syms_of_buffer): Intern and staticpro Qas, Qmake, and Qto.
14525
14526 * callproc.c (Fcall_process): Don't call insert_1_both directly if
14527 we are inserting a process output into a multibyte buffer.
14528
14529 * character.h (CHAR_TO_BYTE8): If C is not eight-bit char, call
14530 multibyte_char_to_unibyte.
14531
14532 * character.c (Funibyte_char_to_multibyte): If C can't be decoded
14533 by the primary charset, make it eight-bit char.
14534 (Fmultibyte_char_to_unibyte): Call CHAR_TO_BYTE8.
14535
14536 * charset.c (charset_eight_bit, Qeight_bit_control): New variables.
14537 (charset_8_bit__control, charset_8_bit_graphic)
14538 (Qeight_bit_control, Qeight_bit_graphic): Delete these variables.
14539 (define_charset_internal): New function.
14540 (syms_of_charset): Call define_charset_internal for pre-defined
14541 charsets.
14542
14543 * charset.h (charset_8_bit): Extern it.
14544
14545 * coding.c (make_conversion_work_buffer): Adjust for the change
14546 of Fset_buffer_multibyte.
14547 (encode_coding_raw_text): Increment p0 in the loop.
14548
14549 * lisp.h (Fset_buffer_multibyte): Adjust prototype.
14550
14551 * xdisp.c (setup_echo_area_for_printing, set_message_1): Adjust
14552 for the change of Fset_buffer_multibyte.
14553
14554 * fns.c (Fstring_to_multibyte): New function.
14555 (syms_of_fns): Declare Fstring_to_multibyte as Lisp subroutine.
14556
145572008-02-01 Dave Love <fx@gnu.org>
14558
14559 * xfns.c (x_put_x_image): Declare args.
14560
14561 * xfaces.c (font_name_registry, choose_face_font): Delete unused vars.
14562 (try_font_list): Declare an arg.
14563
14564 * xdisp.c (message2_nolog, set_message): Declare an arg.
14565
14566 * terminfo.c (tparam): Declare an arg. Use P_ to declare tparm.
14567
14568 * syntax.c (scan_sexps_forward): Declare an arg.
14569
14570 * scroll.c (calculate_scrolling, calculate_direct_scrolling):
14571 Declare an arg.
14572
14573 * lisp.h (Fnew_fontset): Declare.
14574
14575 * keymap.c (push_key_description): Call CHARACTERP correctly.
14576
14577 * fontset.c (fontset_add): Declare args. Call make_number correctly.
14578 (face_for_char): Delete unused vars.
14579 (Fset_fontset_font): Doc fix. Delete unused vars.
14580
14581 * doc.c (Fsubstitute_command_keys): Delete unused vars.
14582
14583 * composite.c (update_compositions): Declare arg.
14584
14585 * cm.c (calccost, cmgoto): Declare args.
14586
14587 * charset.c: Remove `emacs' conditional. Doc fixes.
14588 (map_char_table_for_charset): Declare.
14589
14590 * character.c (syms_of_character) <translation-table-vector>: Doc fix.
14591
14592 * ccl.c: Remove `emacs' conditional.
14593
145942008-02-01 Kenichi Handa <handa@m17n.org>
14595
14596 The following changes are to allow specifying multiple font
14597 patterns for a character range (specified by script or charset).
14598
14599 * Makefile.in (abbrev.o): Depend on syntax.h.
14600 (xfaces.o): Depend on charset.h.
14601
14602 * alloc.c (Fmake_string): Use ASCII_CHAR_P, not
14603 SINGLE_BYTE_CHAR_P.
14604
14605 * ccl.c (Fccl_execute_on_string): Add `const' to local variables.
14606
14607 * character.h (Vchar_script_table): Extern it.
14608
14609 * character.c (Vscript_alist): Delete.
14610 (Vchar_script_table, Qchar_script_table): New variable.
14611 (syms_of_character): Declare Vchar_script_table as a lisp variable
14612 and initialize it.
14613
14614 * chartab.c (Fmake_char_table): Doc fix. If PURPOSE doesn't
14615 have property char-table-extra-slots, make no extra slot.
14616
14617 * dispextern.h (struct face): Delete member `charset'.
14618 (FACE_SUITABLE_FOR_CHAR_P, FACE_FOR): Use ASCII_CHAR_P, not
14619 SINGLE_BYTE_CHAR_P.
14620 (choose_face_font, lookup_non_ascii_face, font_name_registry):
14621 Add prototypes.
14622 (lookup_face, lookup_named_face, lookup_derived_face): Fix prototype.
14623 (generate_ascii_font_name): Rename from generate_ascii_font.
14624
14625 * fontset.h (get_font_repertory_func): New prototype.
14626 (make_fontset_for_ascii_face, fs_load_font): Fix prototypes.
14627 (FS_LOAD_FONT): Call fs_load_font with the 3rd arg charset_ascii.
14628
14629 * fontset.c (Qprepend, Qappend): New variables.
14630 (FONTSET_CHARSET_ALIST, FONTSET_FACE_ALIST): Delete.
14631 (FONTSET_NOFONT_FACE, FONTSET_REPERTORY): New macros.
14632 (FONTSET_REF): Optimize if FONTSET is Vdefault_fontset.
14633 (FONTSET_REF_AND_RANGE, FONTSET_ADD): New macros.
14634 (fontset_ref_and_range, fontset_add, reorder_font_vector)
14635 (load_font_get_repertory): New functions.
14636 (fontset_set): Delete.
14637 (fontset_face): New arg FACE. Return face ID, not face.
14638 Complete re-write to handle new fontset structure. Change caller.
14639 (free_face_fontset): Use ASET istead of AREF (X) = Y.
14640 (face_for_char): Don't call lookup_face.
14641 (make_fontset_for_ascii_face): New arg FACE.
14642 (fs_load_font): New arg CHARSET_ID. Don't check
14643 Vfont_encoding_alist here.
14644 (find_font_encoding): New function.
14645 (list_fontsets): Use STRINGP, not ! NILP.
14646 (accumulate_script_ranges): New function.
14647 (Fset_fontset_font, Fnew_fontset, Ffontset_info): Completely
14648 re-written to handle new fontset structure.
14649 (Ffontset_font): Return a copy of element.
14650 (syms_of_fontset): Define symbols Qprepend and Qappend. Fix
14651 docstring of font-encoding-alist.
14652
14653 * lisp.h (CHAR_TABLE_REF): Remove unnecessary check (IDX >= 0).
14654 (Fset_fotset_font): Fix arguments to 5.
14655
14656 * msdos.c (XMenuActivate): Adjust for the change of lookup_derived_face.
14657
14658 * xdisp.c (message_dolog, set_message_1, extend_face_to_end_of_line):
14659 Use ASCII_CHAR_P, not SINGLE_BYTE_CHAR_P.
14660 (highlight_trailing_whitespace): Adjust for the change of
14661 lookup_named_face.
14662
14663 * xfaces.c: Include charset.h.
14664 (load_face_font): Delete argument C. Change caller.
14665 (generate_ascii_font_name): Rename from generate_ascii_font.
14666 (font_name_registry): New function.
14667 (cache_face): Store ascii faces before non-ascii faces in buckets.
14668 (lookup_face): Delete arguments C and BASE_FACE. Change caller.
14669 Lookup only ascii faces.
14670 (lookup_non_ascii_face): New function.
14671 (lookup_named_face): Delete argument C. Change caller.
14672 (lookup_derived_face): Delete argument C. Change caller.
14673 (try_font_list): New arg PATTERN. Change caller. If PATTERN is
14674 a string, just call font_list with it.
14675 (choose_face_font): Delete arguments FACE and C. New arg
14676 FONT_SPEC. Change caller.
14677 (realize_face, realize_x_face): Delete arguments C and BASE_FACE.
14678 Change caller.
14679 (realize_non_ascii_face): New function.
14680 (realize_x_face): Call load_face_font here.
14681 (realize_tty_face): Delete argument C. Change caller.
14682 (compute_char_face): If CH is not ascii, call FACE_FOR_CHAR to
14683 get a face ID.
14684 (dump_realized_face): Don't print charset of FACE.
14685
14686 * xfns.c (x_set_font): Always call x_new_fontset and
14687 store_frame_parameter.
14688 (Fx_create_frame): Call x_new_fontset, not x_new_font.
14689 (syms_of_xfns): Set get_font_repertory_func to x_get_font_repertory.
14690
14691 * xterm.h (x_get_font_repertory): Extern it.
14692
14693 * xterm.c (x_produce_glyphs): Use ASCII_CHAR_P, not
14694 SINGLE_BYTE_CHAR_P. Fix the logic of handling non-ASCII char when
14695 it->multibyte_p is zero.
14696 (XTread_socket): Use ASCII_CHAR_P, not SINGLE_BYTE_CHAR_P.
14697 (x_new_fontset): If FONTSETNAME doesn't match any existing
14698 fontsets, create a new one.
14699 (x_get_font_repertory): New function.
14700
147012008-02-01 Kenichi Handa <handa@m17n.org>
14702
14703 * coding.c (Ffind_coding_systems_region_internal): Detect an
14704 ASCII only string correctly.
14705
14706 * lread.c (Fload): Don't load with Qload_force_doc_strings t if
14707 version is 0.
14708
147092008-02-01 Kenichi Handa <handa@m17n.org>
14710
14711 * lread.c: Include "coding.h".
14712 (Qget_emacs_mule_file_char, Qload_force_doc_strings)
14713 (load_each_byte, unread_char): New variables.
14714 (readchar_backlog): Delete.
14715 (readchar): Return a character unless load_each_byte is nonzero.
14716 Handle the case that readcharfun is Qget_emacs_mule_file_char or a
14717 cons. If unread_char is not -1, simply return it.
14718 (unreadchar): Handle the case that readcharfun is
14719 Qget_emacs_mule_file_char or a cons. Set unread_char if necessary.
14720 (read_multibyte): Delete.
14721 (readbyte_for_lambda, readbyte_from_file, readbyte_from_string)
14722 (read_emacs_mule_char): New functions.
14723 (Fload): Even if the file doesn't have the extension ".elc", if
14724 safe_to_load_p returns a positive version number, assume that the
14725 file contains bytecompiled code. If the version is less than 22,
14726 load the file while decoding multibyte sequences by emacs-mule.
14727 (readevalloop): Don't use readchar_backlog.
14728 (Fread): Likewise. Pay attention to the case that STREAM is a cons.
14729 (Fread_from_string): Pay attention to the case that STREAM is a cons.
14730 (read_escape): Delete the arg BYTEREP.
14731 (read1): Set load_each_byte to 1 temporarily while handling
14732 #@NUMBER. Don't call read_multibyte.
14733 (read_vector): Call Fread with a cons. If readcharfun is
14734 Qget_emacs_mule_file_char, decode the read string by emacs-mule.
14735 (read_list): If doc_reference is 2, make the cdr part string as unibyte.
14736 (syms_of_lread): Intern and staticpro Qget_emacs_mule_file_char
14737 and Qload_force_doc_strings.
14738
147392008-02-01 Kenichi Handa <handa@m17n.org>
14740
14741 * xdisp.c (face_before_or_after_it_pos): Call
14742 FETCH_MULTIBYTE_CHAR with byte postion, not char position.
14743
147442008-02-01 Kenichi Handa <handa@m17n.org>
14745
14746 * character.h (TRAILING_CODE_P): New macro.
14747 (MAYBE_UNIFY_CHAR): Adjust for the change of Funify_charset.
14748 (string_char_with_unification): Fix prototype.
14749 (Vscript_alist): Extern it.
14750
14751 * character.c (Vscript_alist): New variable.
14752 (string_char_with_unification, str_as_unibyte)
14753 (string_escape_byte8): Add `const' to local variables.
14754 (syms_of_character): Declare script-alist as a Lisp variable.
14755
14756 * charset.h (Vcharset_ordered_list): Extern it.
14757 (charset_ordered_list_tick): Extern it.
14758 (EMACS_MULE_LEADING_CODE_PRIVATE_11)
14759 (EMACS_MULE_LEADING_CODE_PRIVATE_12)
14760 (EMACS_MULE_LEADING_CODE_PRIVATE_21)
14761 (EMACS_MULE_LEADING_CODE_PRIVATE_22): New macros.
14762 (Funify_charset): Adjust for the change of Funify_charset.
14763
14764 * charset.c (charset_ordered_list_tick): New variable.
14765 (Fdefine_charset_internal): Increment charset_ordered_list_tick.
14766 (Funify_charset): New optional arg DEUNIFY. If it is non-nil,
14767 deunify intead of unify a charset.
14768 (string_xstring_p): Add `const' to local variables.
14769 (find_charsets_in_text): Add `const' to arguments and local variables.
14770 (encode_char): Adjust for the change of Funify_charset. Fix
14771 detecting of invalid code.
14772 (Fset_charset_priority): Increment charset_ordered_list_tick.
14773 (Fmap_charset_chars): Fix handling of default value for FROM_CODE
14774 and TO_CODE.
14775
14776 * coding.c (LEADING_CODE_PRIVATE_11, LEADING_CODE_PRIVATE_12)
14777 (LEADING_CODE_PRIVATE_21, LEADING_CODE_PRIVATE_22): Delete macros.
14778 Changed callers to use EMACS_MULE_LEADING_CODE_PRIVATE_11, etc.
14779 (decode_coding_ccl, consume_chars)
14780 (Ffind_coding_systems_region_internal)
14781 (Fcheck_coding_systems_region): Add `const' to local variables.
14782
14783 * print.c (print_object): Use octal form for printing the
14784 contents of a bool vector.
14785
147862008-02-01 Dave Love <fx@gnu.org>
14787
14788 * lread.c (Fload) <!load_dangerous_libraries>: Don't leak fd.
14789 <version == 20>: Refuse to load.
14790
147912008-02-01 Dave Love <fx@gnu.org>
14792
14793 * fns.c: Move coding.h.
14794 (Qcodeset, Qdays, Qmonths): New.
14795 (concat): Use CHARACTERP instead of INTEGERP.
14796 (Flocale_codeset): Delete.
14797 (Flanginfo): New function.
14798 (syms_of_fns): Change accordingly.
14799
14800 * coding.c (adjust_coding_eol_type): Fix eol_type/eol_seen mixup.
14801
148022008-02-01 Dave Love <fx@gnu.org>
14803
14804 * casetab.c (init_casetab_once, init_casetab_once): Fix
14805 CHAR_TABLE_SET call.
14806
14807 * category.c (Fmodify_category_entry): Fix CATEGORY_MEMBER call.
14808
14809 * character.c (syms_of_character): Fix CHAR_TABLE_SET call.
14810
14811 * charset.c (Fmap_charset_chars): Check args. Convert Lisp types.
14812 (load_charset_map, Fdeclare_equiv_charset, Fencode_char)
14813 (Fset_charset_priority, syms_of_charset): Convert Lisp types.
14814
14815 * charset.h (CHECK_CHARSET_GET_ID): Use XINT on AREF result.
14816
14817 * coding.c (ENCODE_DESIGNATION, decode_eol)
14818 (make_conversion_work_buffer, code_conversion_restore)
14819 (Fdefine_coding_system_internal): Convert Lisp types.
14820 (code_conversion_restore): Use EQ, not ==.
14821 (Fencode_coding_string): Fix code_convert_string call.
14822
14823 * coding.h (code_convert_region): Fix prototype.
14824
14825 * dispextern.h (redraw_frame, redraw_garbaged_frames): Remove.
14826
14827 * fontset.c (fontset_ref, fontset_set, fs_load_font)
14828 (Ffontset_info): Convert Lisp types.
14829
14830 * syntax.h (SYNTAX_ENTRY_INT): Don't use make_number.
14831
14832 * xterm.c (note_mouse_movement): Fix call of window_from_coordinates.
14833
14834 * xdisp.c (display_mode_element): Fix call of Fset_text_properties.
14835
14836 * chartab.c: Include "...h", not <...h> in some cases.
14837
14838 * callproc.c (Fcall_process): Remove unused variables.
14839
148402008-02-01 Dave Love <fx@gnu.org>
14841
14842 * coding.c (Fset_coding_system_priority): Allow null arg list.
14843
148442008-02-01 Dave Love <fx@gnu.org>
14845
14846 * minibuf.c (Fminibuffer_complete_word): Remove unused var.
14847 (Fself_insert_and_exit): Use CHARACTERP.
14848
14849 * callproc.c (Fcall_process): Remove unused vars.
14850
14851 * xterm.c (XTread_socket): Add extra dead keysyms.
14852
14853 * xdisp.c (decode_mode_spec_coding): Use CHARACTERP.
14854
14855 * dispextern.h: Remove prototypes for redraw_frame,
14856 redraw_garbaged_frames.
14857
14858 * cmds.c (Fself_insert_command): Use CHARACTERP.
14859
14860 * chartab.c (make_sub_char_table): Remove unused var.
14861 (Fset_char_table_default, Fmap_char_table): Doc fix.
14862
14863 * keymap.c (access_keymap): Remove generic char code.
14864 (push_key_description): Use CHARACTERP.
14865
148662008-02-01 Dave Love <fx@gnu.org>
14867
14868 * charset.c: Doc fixes.
14869 (Funify_charset): Extra checking.
14870
148712008-02-01 Dave Love <fx@gnu.org>
14872
14873 * lread.c: Remove some unused variables.
14874 (safe_to_load_p): If safe, return the magic number version byte.
14875 (Fload): Maybe use load-with-code-conversion.
14876
148772008-02-01 Kenichi Handa <handa@m17n.org>
14878
14879 * category.c (Fmodify_category_entry): Don't modify the contents
14880 of category_set for characters out of the range. Avoid
14881 unnecessary modification.
14882
14883 * character.h (MAYBE_UNIFY_CHAR): Adjust for the change of
14884 Vchar_unify_table. The default value of the table is now nil.
14885
14886 * character.c (syms_of_character): Setup Vchar_width_table for
14887 eight-bit-control and raw-byte chars.
14888
14889 * charset.h (enum define_charset_arg_index): Delete
14890 charset_arg_parents and add charset_arg_subset and
14891 charset_arg_superset.
14892 (enum charset_attr_index): Delete charset_parents and add
14893 charset_subset and charset_superset.
14894 (enum charset_method): Delete CHARSET_METHOD_INHERIT and add
14895 CHARSET_METHOD_SUBSET and CHARSET_METHOD_SUPERSET.
14896 (CHARSET_ATTR_PARENTS, CHARSET_PARENTS): Delete.
14897 (CHARSET_ATTR_SUBSET, CHARSET_ATTR_SUPERSET, CHARSET_SUBSET)
14898 (CHARSET_SUPERSET): New macros.
14899 (charset_work): Extern it.
14900 (ENCODE_CHAR): Use charset_work.
14901 (CHAR_CHARSET_P): Adjust for the change of encoder format.
14902 (map_charset_chars): Extern it.
14903
14904 * charset.c (load_charset_map): Set the default value of encoder
14905 and deunifier char-tables to nil.
14906 (map_charset_chars): Change argument. Change callers. Use
14907 map_char_table_for_charset instead of map_char_table.
14908 (Fmap_charset_chars): New optional args from_code and to_code.
14909 (Fdefine_charset_internal): Adjust for the change of
14910 `define-charset' (:parents -> :subset or :superset).
14911 (charset_work): New variable.
14912 (encode_char, syms_of_charset): Adjust for the change of
14913 Fdefine_charset_internal.
14914 (Ffind_charset_string): Setup the vector `charsets' correctly.
14915
14916 * chartab.c (sub_char_table_ref_and_range): New arg default. Fix
14917 the previous change.
14918 (char_table_ref_and_range): Adjust for the above change.
14919 (map_sub_char_table_for_charset): New function.
14920 (map_char_table_for_charset): New function.
14921
14922 * keymap.c (describe_vector): Handle a char-table directly here.
14923 (describe_char_table): Delete.
14924
14925 * lisp.h (map_charset_chars): Delete.
14926
149272008-02-01 Dave Love <fx@gnu.org>
14928
14929 * fns.c (count_combining): Comment out (unused).
14930 (Flocale_codeset): New.
14931 (syms_of_fns): Defsubr it.
14932
14933 * config.in (HAVE_PTY_H, HAVE_SIZE_T, HAVE_LANGINFO_CODESET): New.
14934 (size_t): Remove.
14935
149362008-02-01 Dave Love <fx@gnu.org>
14937
14938 * Makefile.in (chartab.o): Depend on charset.h.
14939
149402008-02-01 Kenichi Handa <handa@m17n.org>
14941
14942 * character.c (syms_of_character): Set the default value of
14943 Vprintable_chars to Qnil.
14944
149452008-02-01 Dave Love <fx@gnu.org>
14946
14947 * Makefile.in (lisp, shortlisp): Change indian.elc to indian.el.
14948
149492008-02-01 Kenichi Handa <handa@m17n.org>
14950
14951 * charset.c (load_charset_map): Handle the case that from < to
14952 correctly.
14953
14954 * coding.c (encode_coding_emacs_mule, encode_coding_iso_2022)
14955 (encode_coding_sjis, encode_coding_big5, encode_coding_charset):
14956 Pay attention to raw-8-bit chars.
14957
149582008-02-01 Kenichi Handa <handa@m17n.org>
14959
14960 * Makefile.in (lisp, shortlisp): Change chinese.elc to chinese.el.
14961 It is not bytecompiled now.
14962
14963 * charset.c (charset_jisx0201_roman, charset_jisx0208_1978)
14964 (charset_jisx0208): New variables.
14965 (Fdefine_charset_internal): Setup them if appropriate.
14966 (init_charset_once): Initialize them to -1.
14967
14968 * charset.h (charset_jisx0201_roman, charset_jisx0208_1978)
14969 (charset_jisx0208): Extern them.
14970
14971 * coding.c (CODING_ISO_FLAG_USE_ROMAN): New macro.
14972 (CODING_ISO_FLAG_USE_OLDJIS): New macro.
14973 (CODING_ISO_FLAG_FULL_SUPPORT): Change macro definition.
14974 (setup_iso_safe_charsets): Fix arguments to Fassq.
14975 (DECODE_DESIGNATION, ENCODE_ISO_CHARACTER_DIMENSION1)
14976 (ENCODE_ISO_CHARACTER_DIMENSION2): Pay attention to
14977 CODING_ISO_FLAG_USE_ROMAN and CODING_ISO_FLAG_USE_OLDJIS.
14978 (encode_coding_iso_2022): Change the 1st arg to
14979 ENCODE_ISO_CHARACTER to a variable.
14980
149812008-02-01 Kenichi Handa <handa@m17n.org>
14982
14983 * charset.h (enum define_charset_arg_index): New enums
14984 charset_arg_min_code and charset_arg_max_code.
14985 (struct charset): New member char_index_offset.
14986
14987 * charset.c (CODE_POINT_TO_INDEX, INDEX_TO_CODE_POINT):
14988 Take charset->char_index_offset into account.
14989 (Fdefine_charset_internal): Handle args[charset_arg_min_code] and
14990 args[charset_arg_max_code]. Setup charset.char_index_offset.
14991 (syms_of_charset): Fix args to Fdefine_charset_internal.
14992
149932008-02-01 Dave Love <fx@gnu.org>
14994
14995 * coding.c (decode_coding_utf_8): Reject overlong sequences.
14996
149972008-02-01 Dave Love <fx@gnu.org>
14998
14999 * coding.c: Doc fixes.
15000 (Fcoding_system_aliases): Fix return value.
15001 (Qmac): Remove (duplicated) definition.
15002
150032008-02-01 Dave Love <fx@gnu.org>
15004
15005 * charset.c (Fcharset_priority_list, Fset_charset_priority): New
15006 functions.
15007
15008 * character.c (Fstring): Doc fix.
15009
15010 * charset.c (Fdefine_charset_alias): Update Vcharset_list.
15011
15012 * fontset.c (Ffontset_info): Doc fix. Return charset names, not
15013 ids.
15014 (font-encoding-alist): Doc fix.
15015
150162008-02-01 Dave Love <fx@gnu.org>
15017
15018 * term.c (costs_set): Declare static, non-initialized for pcc.
15019 (encode_terminal_code): Remove unused var.
15020
15021 * keyboard.c (kbd_buffer_store_event): Fix interrupt_signal decl
15022 for K&R.
15023
15024 * xterm.c (xlwmenu_window_p): Fix prototype for K&R.
15025
15026 * coding.c (setup_iso_safe_charsets): Fix arg decl for K&R.
15027 (suffixes): Move out of make_subsidiaries for K&R.
15028
15029 * charset.c (map_charset_chars): Fix c_function declaration for K&R.
15030
15031 * lisp.h (DEFUN) [!PROTOTYPES]: Remove spurious `args'.
15032
150332008-02-01 Dave Love <fx@gnu.org>
15034
15035 * data.c (Fchar_or_string_p): Doc fix. Use CHARACTERP.
15036
15037 * category.c (Fmodify_category_entry): Doc fix. Remove unused vars.
15038
150392008-02-01 Yong Lu <lyongu@asia-infonet.com>
15040
15041 * charset.c (Fdefine_charset_internal): Fix argument to bzero.
15042
15043 * coding.c (decode_coding_charset): Workaround for the bug of GCC 2.96.
15044
150452008-02-01 Kenichi Handa <handa@m17n.org>
15046
15047 * Makefile.in (lisp, shortlisp): Change cyrillic.elc to cyrillic.el,
15048 vietnamese.elc to vietnamese.el. They are not bytecompiled now.
15049
150502008-02-01 Kenichi Handa <handa@m17n.org>
15051
15052 * coding.c (decode_coding_charset): Adjust for the change of
15053 Fdefine_coding_system_internal.
15054 (Fdefine_coding_system_internal): For a coding system of
15055 `charset' type, store a list of charset IDs in
15056 `charset_attr_charset_valids' element of coding attributes.
15057
150582008-02-01 Kenichi Handa <handa@m17n.org>
15059
15060 * coding.c (ONE_MORE_BYTE_NO_CHECK): Increment consumed_chars.
15061 (emacs_mule_char): New arg src. Delete arg `composition'. Change
15062 caller. Handle 2-byte and 3-byte charsets correctly.
15063 (DECODE_EMACS_MULE_COMPOSITION_RULE_20): Rename from
15064 DECODE_EMACS_MULE_COMPOSITION_RULE. Change caller.
15065 (DECODE_EMACS_MULE_COMPOSITION_RULE_21): New macro.
15066 (DECODE_EMACS_MULE_21_COMPOSITION): Call
15067 DECODE_EMACS_MULE_COMPOSITION_RULE_21. Produce correct annotation
15068 sequence.
15069 (decode_coding_emacs_mule): Handle composition correctly. Rewind
15070 `src' and `consumed_chars' correctly before calling emacs_mule_char.
15071 (DECODE_COMPOSITION_START): Correctly handle the case of altchar
15072 and alt&rule composition.
15073 (decode_coding_iso_2022): Handle composition correctly.
15074 (init_coding_once): Setup emacs_mule_bytes for private charsets.
15075
15076 * charset.c (Fdefine_charset_internal): Fix bug for the case of
15077 re-defining a charset. If the charset has :emacs-mule-id, setup
15078 emacs_mule_bytes.
15079 (Fmake_char): If CODE1 is nil, use the minimum code of the charset.
15080
150812008-02-01 Kenichi Handa <handa@m17n.org>
15082
15083 * coding.c (encode_coding_iso_2022, encode_coding_sjis)
15084 (encode_coding_big5, encode_coding_charset): If coding requires safe
15085 encoding, produce a character specified by
15086 CODING_INHIBIT_CHARACTER_SUBSTITUTION.
15087
150882008-02-01 Dave Love <fx@gnu.org>
15089
15090 * xterm.c (XSetIMValues): Declare.
15091
15092 * process.c: Conditionally include sys/wait.h, pty.h.
15093
15094 * print.c (print_object): Fix print format for 64-bit systems.
15095
15096 * keyboard.c (modify_event_symbol): Fix print format for 64-bit systems.
15097
15098 * buffer.c (emacs_strerror): Declare.
15099
15100 * fontset.c (Fclear_face_cache): Declare.
15101 (accumulate_font_info): Comment-out (unused).
15102 (face_for_char, Fset_fontset_font, Ffontset_info): Remove unused
15103 variables.
15104
15105 * character.h (string_escape_byte8): Declare.
15106
15107 * charset.c (load_charset_map, load_charset_map_from_file): Remove
15108 unused vars.
15109 (Fdefine_charset_internal, Fsplit_char, syms_of_charset)
15110 (Fmap_charset_chars): Doc fix.
15111
15112 * coding.c (Vchar_coding_system_table, Qchar_coding_system): Remove.
15113 (Fset_coding_system_priority, Fset_coding_system_priority)
15114 (Fdefine_coding_system_internal): Doc fix.
15115
151162008-02-01 Dave Love <fx@gnu.org>
15117
15118 * s/osf5-0.h (C_SWITCH_SYSTEM) [!__GNUC__]: Remove -nointrinsics.
15119
151202008-02-01 Kenichi Handa <handa@m17n.org>
15121
15122 * character.c (string_escape_byte8): Make multibyte string with
15123 correct size.
15124
15125 * charset.c (Fmake_char): Delete unnecessary code.
15126
151272008-02-01 Kenichi Handa <handa@m17n.org>
15128
15129 * xfns.c (x_encode_text): Allocate coding.destination here, and
15130 call encode_coding_object with dst_object Qnil.
15131
15132 * buffer.c (Fset_buffer_multibyte): Convert 8-bit bytes to
15133 multibyte form correctly.
15134
15135 * fontset.c (fs_load_font): Check fontp->full_name (not fontname)
15136 against Vfont_encoding_alist.
15137
15138 * coding.c (Fdecode_sjis_char): Fix typo (0x7F->0xFF). Fix the
15139 handling of charset list.
15140 (encode_coding_iso_2022): Setup coding->safe_charsets in advance.
15141 (decode_coding_object): Move point to coding->dst_pos before
15142 calling post-read-conversion function.
15143 (encode_coding_object): Give correct arguments to
15144 pre-write-conversion. Ignore the return value of
15145 pre-write-conversion function. Pay attention to the case that
15146 pre-write-conversion changes the current buffer. If dst_object is
15147 Qt, even if coding->src_bytes is zero, allocate at least one byte
15148 to coding->destination.
15149
15150 * coding.h (JIS_TO_SJIS): Fix typo (j1->s1, j2->s2).
15151
15152 * charset.c (Fmake_char): Make it more backward compatible.
15153 (Fmap_charset_chars): Fix docstring.
15154
151552008-02-01 Dave Love <fx@gnu.org>
15156
15157 * coding.c: Doc fixes.
15158 (Fdefine_coding_system_alias): Use names, not symbols, in
15159 coding-system-alist.
15160
151612008-02-01 Kenichi Handa <handa@m17n.org>
15162
15163 * fontset.c (free_realized_fontsets): Call Fclear_face_cache instead
15164 of calling free_realized_face.
15165
151662008-02-01 Yong Lu <lyongu@asia-infonet.com>
15167
15168 * charset.c (read_hex): Don't treat SPC as a comment starter.
15169 (decode_char): If CODE_POINT_TO_INDEX returns -1, always return -1.
15170 (Fdecode_char): Fix typo.
15171
151722008-02-01 Kenichi Handa <handa@m17n.org>
15173
15174 * charset.h (struct charset): New member `code_space_mask'.
15175
15176 * coding.c (coding_set_source): Delete the local variable beg_byte.
15177 (encode_coding_charset, Fdefine_coding_system_internal):
15178 Delete the local variable charset.
15179 (Fdefine_coding_system_internal): Setup
15180 attrs[coding_attr_charset_valids] correctly.
15181
15182 * charset.c (CODE_POINT_TO_INDEX): Utilize `code_space_mask'
15183 member to check if CODE is valid or not.
15184 (Fdefine_charset_internal): Initialize `code_space_mask' member.
15185 (encode_char): Before calling CODE_POINT_TO_INDEX, check if CODE
15186 is within the range of charset->min_code and carset->max_code.
15187
151882008-02-01 Dave Love <fx@gnu.org>
15189
15190 * syntax.h (syntax_temp) [!__GNUC__]: Declare.
15191
15192 * dispextern.h (generate_ascii_font): Fix return type.
15193
15194 * xfaces.c (generate_ascii_font): Fix arg declaration.
15195
15196 * coding.c (coding_inherit_eol_type)
15197 (Fset_terminal_coding_system_internal)
15198 (Fset_safe_terminal_coding_system_internal): Fix arg declarations.
15199
152002008-02-01 Kenichi Handa <handa@m17n.org>
15201
15202 * coding.c (decode_coding_charset, encode_coding_charset): Handle
15203 multiple charsets correctly.
15204
152052008-02-01 Kenichi Handa <handa@m17n.org>
15206
15207 * search.c (boyer_moore): Fix handling of multibyte character
15208 translation.
15209
15210 * xdisp.c (display_mode_element): When the variable `elt' is
15211 changed, update `this' and `lisp_string'.
15212
152132008-02-01 Kenichi Handa <handa@m17n.org>
15214
15215 * buffer.c (Fset_buffer_multibyte): Fix 8-bit char handling.
15216
15217 * callproc.c (Fcall_process): Be sure to give the current buffer
15218 to decode_coding_c_string. Update PT and PT_BYTE after the insertion.
15219
15220 * charset.c (struct charset_map_entries): New struct.
15221 (load_charset_map): Rename from parse_charset_map. New args
15222 entries and n_entries. Change caller.
15223 (load_charset_map_from_file): Rename from load_charset_map.
15224 Change caller. New arg control_flag. Call load_charset_map at
15225 the tail.
15226 (load_charset_map_from_vector): New function.
15227 (Fdefine_charset_internal): Setup charset.compact_codes_p.
15228 (encode_char): If the charset is compact, change a character index
15229 to a code point.
15230
15231 * coding.c (coding_alloc_by_making_gap): Check the case that the
15232 source and destination are the same correctly.
15233 (decode_coding_raw_text): Set coding->consumed_char and
15234 coding->consumed to 0.
15235 (produce_chars): If coding->chars_at_source is nonzero, update
15236 coding->consumed_char and coding->consumed before calling
15237 alloc_destination.
15238 (Fdefine_coding_system_alias): Register ALIAS in
15239 Vcoding_system_alist.
15240 (syms_of_coding): Define `no-conversion' coding system at the tail.
15241
15242 * fileio.c (Finsert_file_contents): Set coding_system instead of
15243 val. If the current buffer is multibyte, always call
15244 decode_coding_gap.
15245
15246 * xfaces.c (try_font_list): Give higher priority to fontset's
15247 family than face's family.
15248
152492008-02-01 Kenichi Handa <handa@m17n.org>
15250
15251 * callproc.c (Fcall_process): Be sure to give the current buffer
15252 to decode_coding_c_string.
15253
15254 * xfaces.c (try_font_list): Give a family specified in a fontset
15255 higher priority than a family specified in a face.
15256
152572008-02-01 Kenichi Handa <handa@m17n.org>
15258
15259 * fileio.c (Finsert_file_contents): Fix calculation of `inserted'.
15260 Fix arguments to insert_from_buffer.
15261
15262 * xdisp.c (display_mode_element): Fix calculation of `bytepos'.
15263
152642008-02-01 Kenichi Handa <handa@m17n.org>
15265
15266 * coding.c (produce_chars): Set the variable `multibytep' correctly.
15267 (decode_coding_gap): Set coding->dst_multibyte correctly.
15268
152692008-02-01 Kenichi Handa <handa@m17n.org>
15270
15271 * coding.c (encode_coding_utf_8): Initialize produced_chars to 0.
15272 (decode_coding_utf_16): Fix converting high and low bytes to code-point.
15273 (encode_coding_utf_16): Substitute coding->default_char for
15274 non-Unicode characters.
15275 (decode_coding): Don't call record_insert here.
15276 (setup_coding_system): Initialize `surrogate' of
15277 coding->spec.utf_16 to 0.
15278 (EMIT_ONE_BYTE): Fix for multibyte case.
15279
15280 * insdel.c (insert_from_gap): Call record_insert.
15281
152822008-02-01 Kenichi Handa <handa@m17n.org>
15283
15284 * casefiddle.c (casify_region): Fix multibyte case.
15285
15286 * character.c (c_string_width): Add return type `int'.
15287 (char_string_with_unification): Delete arg ADVANCED.
15288
15289 * character.h (CHAR_VALID_P): Don't call CHARACTERP.
15290 (CHAR_STRING): Adjust for the change of char_string_with_unification.
15291 (CHAR_STRING_ADVANCE): Make it do-while statement.
15292
15293 * chartab.c (sub_char_table_set_range): Optimize for the case
15294 DEPTH == 3. Add workaround code for a GCC optimization bug.
15295
15296 * charset.c (parse_charset_map): Remove an unused variable.
15297
15298 * coding.c: Delete unused variables.
15299
15300 * fileio.c (Finsert_file_contents): Set coding_system to Qnil
15301 earlier. If inserted is zero and the coding system doesn't
15302 require flushing, don't call decode_coding_gap.
15303
15304 * syntax.h (SET_RAW_SYNTAX_ENTRY): Don't call make_number.
15305
153062008-02-01 Kenichi Handa <handa@m17n.org>
15307
15308 The following changes are for using Unicode as an internal
15309 character model, and use UTF-8 format for buffer/string
15310 representation.
15311
15312 * .gdbinit (xchartable): Adjust for the change of char table structure.
15313 (xsubchartable, xcoding, xcharset, xcurbuf): New commands.
15314
15315 * Makefile.in (obj): Add character.o and chartab.o.
15316 (lisp, shortlisp): Remove utf-8.elc.
15317 (*.o): For many files, change dependency on charset.h to
15318 character.h, and add dependency on character.h.
15319 (character.o, chartab.o): New targets.
15320
15321 * abbrev.c, bytecode.c, casefiddle.c, cmds.c, dispnew.c, doc.c:
15322 * doprnt.c, dosfns.c, frame.c, marker.c, minibuf.c, msdos.c:
15323 * w16select.c, w32bdf.c, w32console.c: Include "character.h" instead
15324 of "charset.h".
15325
15326 * dired.c, filelock.c: Include "character.h".
15327
15328 * alloc.c: Include "character.h" instead of "charset.h".
15329 (Fmake_char_table, make_sub_char_table): Move to chartab.c.
15330 (syms_of_alloc): Remove defsubr for Smake_char_table.
15331
15332 * buffer.c: Include "character.h" instead of "charset.h", don't
15333 include "coding.h".
15334 (Fset_buffer_multibyte): Adjust for UTF-8.
15335
15336 * buffer.h: EXFUN Fbuffer_live_p.
15337
15338 * callproc.c: Include "character.h" instead of "charset.h".
15339 (Fcall_process): Big change for the new code-conversion APIs.
15340
15341 * casetab.c: Include "character.h" instead of "charset.h".
15342 (set_canon, set_identity, shuffle): Adjust for the new
15343 map_char_table spec.
15344 (init_casetab_once): Call CHAR_TABLE_SET instead of directly
15345 accessing the char table structure.
15346
15347 * chartab.c: New file that implements char table.
15348
15349 * category.c: Include "character.h".
15350 (copy_category_entry): New function.
15351 (copy_category_table): Call map_char_table and copy_category_entry.
15352 (Fmake_category_table): Initialize all top-level slots.
15353 (char_category_set): New function.
15354 (modify_lower_category_set): Delete.
15355 (Fmodify_category_entry): Call char_table_ref_and_range.
15356
15357 * category.h (CATEGORY_SET): Just call char_category_set.
15358
15359 * ccl.c: Include "character.h".
15360 (Qccl, Qcclp): New variables.
15361 (CCL_WRITE_CHAR): Alway treat the arg CH as a character even if
15362 it's less than 256.
15363 (CCL_WRITE_MULTIBYTE_CHAR): Delete.
15364 (CCL_WRITE_STRING, CCL_READ_CHAR): Adjust for the change of SRC
15365 and DST type.
15366 (ccl_driver): Change types of argument, adjust code accordingly.
15367 (Fccl_execute, Fccl_execute_on_string): Adjust for the change of
15368 ccl_driver.
15369 (syms_of_ccl): Intern and staticpro Qccl and Qcclp.
15370
15371 * ccl.h (struct ccl_program): Delete members eol_type and multibyte.
15372 New members src_multibyte, dst_multibyte, consumed, and produced.
15373 (struct ccl_spec): Delete members decoder and encoder. New member ccl.
15374 (CODING_SPEC_CCL_PROGRAM): New macro.
15375 (ccl_driver): Update prototype.
15376 (Qccl, Qcclp, Fccl_program_p): Extern them.
15377 (CHECK_CCL_PROGRAM): New macro.
15378
15379 * character.c, character.h, chartab.c: New files.
15380
15381 * charset.c: Mostly re-written. Move character and multibyte sequence
15382 handling codes to character.c.
15383
15384 * charset.h: Mostly re-written. Move character and multibyte sequence
15385 handling codes to character.h.
15386
15387 * coding.c, coding.h: Mostly re-written.
15388
15389 * composite.c: Include "character.h" instead of "charset.h".
15390 (CHAR_WIDTH): Move to character.h.
15391 (HASH_KEY, HASH_VALUE): Delete.
15392
15393 * composite.h (enum composition_method): Change order of enumeration
15394 symbols.
15395
15396 * data.c: Include "character.h" instead of "charset.h".
15397 (Faref): Call CHAR_TABLE_REF for a char table.
15398 (Faset): Call CHAR_TABLE_SET for a char table.
15399
15400 * dispextern.h (free_realized_face, check_face_attribytes)
15401 (generate_ascii_font): Extern them.
15402 (free_realized_multibyte_face): Delete extern.
15403
15404 * disptab.h (DISP_CHAR_VECTOR): Adjust for the change of char
15405 table structure.
15406
15407 * editfns.c: Include "character.h" instead of "charset.h".
15408 (Fchar_to_string): Always call CHAR_STRING.
15409
15410 * emacs.c (main): Call init_charset_once, init_charset,
15411 syms_of_chartab, and syms_of_character.
15412
15413 * fileio.c: Include "character.h" instead of "charset.h".
15414 (Finsert_file_contents): Big change for the new code-conversion API.
15415 (choose_write_coding_system, Fwrite_region): Likewise.
15416 (build_annotations_2): Delete.
15417 (e_write): Big change for the new code-conversion API.
15418
15419 * fns.c: Include "character.h" instead of "charset.h".
15420 (copy_sub_char_table): Move to chartab.c.
15421 (Fcopy_sequence): Call copy_char_table for a char table.
15422 (concat): Delete codes calling count_multibyte.
15423 (string_char_to_byte, string_byte_to_char): Adjust for the new
15424 multibyte form.
15425 (internal_equal): Adjust for the change of char table structure.
15426 (Fchar_table_subtype, Fchar_table_parent, Fset_char_table_parent)
15427 (Fchar_table_extra_slot, Fset_char_table_extra_slot)
15428 (Fchar_table_range, Fset_char_table_range, Fset_char_table_default)
15429 (char_table_translate, optimize_sub_char_table)
15430 (Foptimize_char_table, map_char_table, Fmap_char_table): Move to
15431 chartab.c.
15432 (char_table_ref_and_index): Delete.
15433 (HASH_KEY, HASH_VALUE): Move to lisp.h.
15434 (Fmd5): Call preferred_coding_system instead of accessing
15435 Vcoding_category_list. Adjust for the new code-conversion API.
15436 (syms_of_fns): Move defsubr for char table related functions to
15437 chartab.c.
15438
15439 * fontset.c: Mostly re-written.
15440
15441 * fontset.h (struct font_info): Change type of the member encoding_type.
15442 (enum FONT_SPEC_INDEX): New enum.
15443 (fontset_font_pattern, fs_load_font): Update prototype.
15444 (FS_LOAD_FONT): Adjust for the change of fs_load_font.
15445
15446 * indent.c: Include "character.h" instead of "charset.h".
15447 (MULTIBYTE_BYTES_WIDTH): Call CHAR_WIDTH instead of WIDTH_BY_CHAR_HEAD.
15448
15449 * insdel.c: Include "character.h" instead of "charset.h".
15450 (copy_text): Don't refer to Vnonascii_translation_table.
15451 (insert_from_gap): New function.
15452
15453 * keyboard.c: Include "character.h" instead of "charset.h".
15454 (command_loop_1): Never call direct_output_forward_char before
15455 a non-ASCII character.
15456 (read_char): If Vkeyboard_translate_table is a char table, always
15457 translate a character.
15458
15459 * keymap.c: Include "character.h".
15460 (store_in_keymap): Handle the case that IDX is a cons.
15461 (Fdefine_key): Handle the case that KEY is a cons and the car part
15462 is also a cons (range).
15463 (push_key_description): Adjust for the new character code.
15464 (describe_vector): Call describe_char_table for a char table.
15465 (describe_char_table): New function.
15466
15467 * keymap.h (describe_char_table): Extern it.
15468
15469 * lisp.h (enum pvec_type): New member PVEC_SUB_CHAR_TABLE.
15470 (XSUB_CHAR_TABLE, XSETSUB_CHAR_TABLE): New macros.
15471 (CHAR_TABLE_ORDINARY_SLOTS, CHAR_TABLE_SINGLE_BYTE_SLOTS)
15472 (SUB_CHAR_TABLE_ORDINARY_SLOTS, SUB_CHAR_TABLE_STANDARD_SLOTS):
15473 Delete.
15474 (CHAR_TABLE_REF, CHAR_TABLE_SET): Adjust for the new char table
15475 structure.
15476 (CHAR_TABLE_TRANSLATE): Just call char_table_translate.
15477 (CHARTAB_SIZE_BITS_0, CHARTAB_SIZE_BITS_1, CHARTAB_SIZE_BITS_2)
15478 (CHARTAB_SIZE_BITS_3): New macros.
15479 (chartab_size): Extern it.
15480 (struct Lisp_Char_Table): Re-design.
15481 (struct Lisp_Sub_Char_Table): New structure.
15482 (HASH_KEY, HASH_VALUE): Move from fns.c.
15483 (CHARACTERBITS): Define as 22.
15484 (GLYPH_MASK_FACE, GLYPH_MASK_CHAR): Adjust for the above change.
15485 (SUB_CHAR_TABLE_P): Check PVEC_CHAR_TABLE.
15486 (GC_SUB_CHAR_TABLE_P): New macro.
15487 (Fencode_coding_string, Fdecode_coding_string): Update EXFUN.
15488 (code_convert_string_norecord): Deleted extern.
15489 (init_character_once, syms_of_character, init_charset)
15490 (syms_of_composite, Qeq, Fmakehash, insert_from_gap): Extern them.
15491
15492 * lread.c: Include "character.h".
15493 (read_multibyte): New arg NBYTES.
15494 (read_escape): Change the meaning of returned *BYTEREP.
15495 (to_multibyte): Delete.
15496 (read1): Adjust the handling of char table and string.
15497
15498 * print.c: Include "character.h" instead of "charset.h".
15499 (print_string): Convert 8-bit raw bytes to octal form by
15500 string_escape_byte8.
15501 (print_object): Adjust for the new multibyte form. Print 8-bit
15502 raw bytes always in octal form. Handle sub char table correctly.
15503
15504 * process.c: Include "character.h" instead of "charset.h".
15505 (read_process_output, send_process): Adjust for the new
15506 code-conversion API.
15507
15508 * puresize.h (BASE_PURESIZE): Increase.
15509
15510 * regex.c: Include "character.h" instead of "charset.h".
15511 (BYTE8_TO_CHAR, CHAR_BYTE8_P) [not emacs]: New dummy macros.
15512 (regex_compile): Accept a range whose starting and ending
15513 character have different leading bytes.
15514 (analyse_first): Adjust for the above change.
15515
15516 * search.c: Include "character.h" instead of "charset.h".
15517 (search_buffer, boyer_moore): Adjust for the new multibyte form.
15518 (Freplace_match): Adjust for the change of multibyte_char_to_unibyte.
15519
15520 * syntax.c: Include "character.h" instead of "charset.h".
15521 (syntax_parent_lookup): Delete.
15522 (Fmodify_syntax_entry): Accept a cons as CHAR.
15523 (skip_chars): Adjust for the new multibyte form.
15524 (init_syntax_once): Call char_table_set_range instead of directly
15525 accessing the structure of a char table.
15526
15527 * syntax.h (SET_RAW_SYNTAX_ENTRY): Call CHAR_TABLE_SET.
15528 (SYNTAX_ENTRY_FOLLOW_PARENT): Delete macro.
15529 (SET_RAW_SYNTAX_ENTRY_RANGE): New macro.
15530 (SYNTAX_ENTRY_INT): Call CHAR_TABLE_REF.
15531
15532 * term.c: Include "buffer.h" and "character.h".
15533 (encode_terminal_code, write_glyphs): Adjust for the new
15534 code-conversion API.
15535 (produce_glyphs): Call CHAR_WIDTH instead of CHARSET_WIDTH.
15536
15537 * w32term.c (x_new_font): Adjust for the change of FS_LOAD_FONT.
15538
15539 * xdisp.c: Include "character.h".
15540 (get_next_display_element): Adjust for the new multibyte form.
15541 (disp_char_vector): Adjust for the new char table structure.
15542 (decode_mode_spec_coding): Adjust for the new structure of
15543 coding system.
15544 (decode_mode_spec): Adjust for the new code-conversion API.
15545
15546 * xfaces.c: Include "character.h" instead of "charset.h".
15547 (load_face_font): Adjust for the change of choose_face_font and
15548 FS_LOAD_FONT.
15549 (generate_ascii_font): New function.
15550 (set_lface_from_font_name): Adjust for the change of FS_LOAD_FONT.
15551 (set_font_frame_param): Adjust for the change of choose_face_font.
15552 (free_realized_face): Make it public.
15553 (free_realized_faces_for_fontset): Rename from
15554 free_realized_multibyte_face. Free also faces realized for ASCII.
15555 (choose_face_font): Change arguments. Adjust for the change of
15556 fontset_font_pattern and FS_LOAD_FONT.
15557
15558 * xfns.c: Include "character.h".
15559 (x_encode_text): Adjust for the new code-conversion API.
15560
15561 * xselect.c: Don't include "charset.h".
15562 (selection_data_to_lisp_data): Adjust for the new code conversion API.
15563
15564 * xterm.c: Include "character.h".
15565 (x_encode_char): New argument CHARSET. Change caller.
15566 (x_get_char_face_and_encoding, x_get_glyph_face_and_encoding):
15567 Call ENCODE_CHAR instead of SPLIT_CHAR.
15568 (x_produce_glyphs): Don't check Vnonascii_translation_table Call
15569 CHAR_WIDTH instead of CHARSET_WIDTH.
15570 (XTread_socket): Adjust for the new code-conversion API.
15571 (x_new_font): Adjust for the change of FS_LOAD_FONT.
15572 (x_load_font): Adjust for the change of struct font.
15573
155742008-02-01 Stefan Monnier <monnier@iro.umontreal.ca>
15575
15576 * xfaces.c (face_at_buffer_position): Remove unused vars.
15577
155782008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
15579
15580 * ccl.c (CCL_WRITE_CHAR, CCL_WRITE_MULTIBYTE_CHAR):
15581 Fix overflow checking.
15582
155832008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
15584
15585 * ccl.c (CCL_WRITE_CHAR, CCL_WRITE_MULTIBYTE_CHAR, ccl_driver):
15586 Cancel previous change.
15587
155882008-01-31 Kenichi Handa <handa@ni.aist.go.jp>
15589
15590 * ccl.c (CCL_WRITE_CHAR): Increment extra_bytes only when
15591 ccl->eight_bit_control. Fix check for buffer overflow.
15592 (CCL_WRITE_MULTIBYTE_CHAR): Fix check for buffer overflow.
15593 (ccl_driver): Initialize extra_bytes to 0.
15594
155952008-01-31 Kenichi Handa <handa@ni.aist.go.jp>
15596
15597 * keyboard.c (make_ctrl_char): If C is a multibyte character, just
15598 return it ORed with ctrl_modifier.
15599
156002008-01-29 Miles Bader <miles@gnu.org>
15601
15602 * macterm.c (XTset_vertical_scroll_bar): Fix merge mistake.
15603
156042008-01-28 Jason Rumney <jasonr@gnu.org>
15605
15606 * w32.c (stat): Don't double check for networked drive.
15607
156082008-01-28 Stefan Monnier <monnier@iro.umontreal.ca>
15609
15610 * window.c (run_window_configuration_change_hook): New function.
15611 Code extracted from set_window_buffer. Set the selected frame.
15612 (set_window_buffer): Use it.
15613 * window.h (run_window_configuration_change_hook): Declare.
15614 * dispnew.c (change_frame_size_1): Use it instead of set-window-buffer.
15615
15616 * keyboard.c (read_char): Yet another int/Lisp_Object mixup (YAILOM).
15617
156182008-01-27 Dan Nicolaescu <dann@ics.uci.edu>
15619
15620 * Makefile.in: Remove references to unused macros.
15621
156222008-01-26 Eli Zaretskii <eliz@gnu.org>
15623
15624 * w32.c (g_b_init_get_sid_sub_authority)
15625 (g_b_init_get_sid_sub_authority_count): New static variables.
15626 (GetSidSubAuthority_Proc, GetSidSubAuthorityCount_Proc): New typedefs.
15627 (get_sid_sub_authority, get_sid_sub_authority_count): New functions.
15628 (init_user_info): Use them to retrieve uid and gid.
15629 Use 500/513, the Windows defaults, as Administrator's uid/gid.
15630 (fstat): Use pw_uid and pw_gid from the_passwd structure for
15631 st_uid and st_gid of the file.
15632
156332008-01-26 Jason Rumney <jasonr@gnu.org>
15634
15635 * w32.c (logon_network_drive): New function.
15636 (stat): Use it.
15637
156382008-01-26 Chong Yidong <cyd@stupidchicken.com>
15639
15640 * xdisp.c (pos_visible_p): Handle the case where charpos falls on
15641 invisible text covered with an ellipsis.
15642
156432008-01-25 Richard Stallman <rms@gnu.org>
15644
15645 * xdisp.c (redisplay_window): Run Qwindow_text_change_functions and
15646 jump back to beginning. Move some other initializations after that.
15647 (Qwindow_text_change_functions, Vwindow_text_change_functions):
15648 New variables.
15649 (syms_of_xdisp): Init them.
15650
15651 * keyboard.c (read_char): Restore echo_message_buffer after redisplay.
15652
15653 * buffer.c (reset_buffer_local_variables):
15654 Implement `permanent-local-hook'.
15655 (Qpermanent_local_hook): New variable.
15656 (syms_of_buffer): Init and staticpro it.
15657
156582008-01-25 Michael Albinus <michael.albinus@gmx.de>
15659
15660 * dbusbind.c (xd_retrieve_arg): Pacify GCC on x86_64 GNU/Linux.
15661
156622008-01-25 Thien-Thi Nguyen <ttn@gnuvola.org>
15663
15664 * fns.c (Fclrhash): Return TABLE.
15665
156662008-01-23 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
15667
15668 * macterm.c (x_scroll_bar_create): Initialize bar->redraw_needed_p.
15669 (XTset_vertical_scroll_bar): Redraw scroll bar if bar->redraw_needed_p
15670 is set even without positional changes.
15671 (x_scroll_bar_clear): Set bar->redraw_needed_p.
15672
15673 * macterm.h (struct scroll_bar): New member `redraw_needed_p'.
15674
156752008-01-23 Jason Rumney <jasonr@gnu.org>
15676
15677 * xterm.c (handle_one_xevent): Revert to counting chars not bytes.
15678
15679 * w32term.c (w32_read_socket) <WM_CHAR>: Decode characters outside
15680 the unicode range available in MULE by locale-coding-system.
15681 Improve dbcs lead byte detection. Set event timestamp and modifiers
15682 earlier.
15683
156842008-01-23 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
15685
15686 * mac.c (mac_emacs_pid) [MAC_OSX]: New variable.
15687 [MAC_OSX] (init_mac_osx_environment): Initialize it.
15688 [MAC_OSX] (mac_try_close_socket) [SELECT_USE_CFSOCKET]: Return 0
15689 when used on child processes.
15690
156912008-01-21 Michael Albinus <michael.albinus@gmx.de>
15692
15693 * dbusbind.c (Fdbus_method_return_internal): Rename from
15694 Fdbus_method_return.
15695 (Fdbus_unregister_object): Move to dbus.el.
15696 (Fdbus_call_method, Fdbus_method_return_internal)
15697 (Fdbus_send_signal): Improve debug messages.
15698
156992008-01-20 Martin Rudalics <rudalics@gmx.at>
15700
15701 * undo.c (undo_inhibit_record_point): New variable.
15702 (syms_of_undo): Initialize it.
15703 (record_point): Don't record point when undo_inhibit_record_point
15704 is set.
15705
157062008-01-19 Stefan Monnier <monnier@iro.umontreal.ca>
15707
15708 * process.c (list_processes_1): Don't use SCHARS on a nil buffer name.
15709
15710 * xdisp.c (Qauto_hscroll_mode): New var.
15711 (syms_of_xdisp): Initialize it.
15712 (hscroll_window_tree): Use it to lookup `auto-hscroll-mode' in each
15713 window's buffer.
15714 (hscroll_windows): Don't check automatic_hscrolling_p here.
15715
15716 * window.c (set_window_buffer): Don't unnecessarily reset hscroll and
15717 vscroll if we're setting window-buffer to the value it already has.
15718
157192008-01-18 Dan Nicolaescu <dann@ics.uci.edu>
15720
15721 * m/intel386.h: Remove references to XENIX.
15722
157232008-01-17 Andreas Schwab <schwab@suse.de>
15724
15725 * m/amdx86-64.h (START_FILES, LIB_STANDARD): Use HAVE_LIB64_DIR
15726 instead of HAVE_X86_64_LIB64_DIR.
15727 * m/ibms390x.h (START_FILES, LIB_STANDARD): Likewise.
15728
157292008-01-17 Glenn Morris <rgm@gnu.org>
15730
15731 * m/ibms390x.h (START_FILES, LIB_STANDARD): Adjust value according
15732 to HAVE_X86_64_LIB64_DIR.
15733
157342008-01-16 Dan Nicolaescu <dann@ics.uci.edu>
15735
15736 * s/irix3-3.h:
15737 * s/irix4-0.h:
15738 * s/386-ix.h:
15739 * s/domain.h:
15740 * s/hpux9-x11r4.h:
15741 * s/hpux9shxr4.h: Remove files for systems no longer supported.
15742
15743 * sysdep.c: Remove code containing references to symbols defined
15744 by unsupported systems.
15745
157462008-01-16 Glenn Morris <rgm@gnu.org>
15747
15748 * coding.c (select-safe-coding-system-function): Doc fix.
15749
157502008-01-15 Glenn Morris <rgm@gnu.org>
15751
15752 * config.in: Revert 2008-01-13 change: this is a generated file.
15753
157542008-01-13 Tom Tromey <tromey@redhat.com>
15755
15756 * lisp.h: Fix typo.
15757
157582008-01-13 Dan Nicolaescu <dann@ics.uci.edu>
15759
15760 * m/sequent-ptx.h:
15761 * m/sequent.h:
15762 * s/ptx.h:
15763 * s/ptx4-2.h:
15764 * s/ptx4.h: Remove files for systems no longer supported.
15765
15766 * callproc.c (Fcall_process): Fix previous change.
15767
157682008-01-13 Dan Nicolaescu <dann@ics.uci.edu>
15769
15770 * unexsunos4.c: Remove file, system not supported anymore.
15771
15772 * m/mips.h:
15773 * m/intel386.h:
15774 * callproc.c:
15775 * config.in:
15776 * ecrt0.c:
15777 * emacs.c:
15778 * fileio.c:
15779 * frame.c:
15780 * getpagesize.h:
15781 * keyboard.c:
15782 * lread.c:
15783 * process.c:
15784 * puresize.h:
15785 * sysdep.c:
15786 * systty.h:
15787 * syswait.h:
15788 * unexec.c:
15789 * xdisp.c:
15790 * alloc.c: Remove code containing references to symbols defined by
15791 unsupported systems.
15792
157932008-01-11 Kenichi Handa <handa@ni.aist.go.jp>
15794
15795 * coding.c (detect_coding_mask): Fix previous change.
15796
157972008-01-09 Kenichi Handa <handa@ni.aist.go.jp>
15798
15799 * coding.c (detect_coding_iso2022): New arg
15800 latin_extra_code_state. Allow Latin extra codes only
15801 when *latin_extra_code_state is nonzero.
15802 (detect_coding_mask): If there is a NULL byte, detect the encoding
15803 as UTF-16 or binary. If Latin extra codes exist, detect the
15804 encoding as ISO-2022 only when there's no other proper encoding is
15805 found.
15806
158072008-01-08 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
15808
15809 * frame.c (Fmake_terminal_frame): Use #ifdef MAC_OS8 instead of
15810 #ifdef MAC_OS.
15811
158122008-01-08 Richard Stallman <rms@gnu.org>
15813
15814 * fileio.c (Ffile_name_directory, Fexpand_file_name): Doc fixes.
15815
158162008-01-06 Nick Roberts <nickrob@snap.net.nz>
15817
15818 * keyboard.c (parse_menu_item): Don't enclose key bindings on
15819 menu bar in parentheses.
15820
158212008-01-06 Dan Nicolaescu <dann@ics.uci.edu>
15822
15823 * m/7300.h:
15824 * m/acorn.h:
15825 * m/alliant-2800.h:
15826 * m/alliant.h:
15827 * m/alliant1.h:
15828 * m/alliant4.h:
15829 * m/altos.h:
15830 * m/amdahl.h:
15831 * m/apollo.h:
15832 * m/att3b.h:
15833 * m/aviion-intel.h:
15834 * m/aviion.h:
15835 * m/celerity.h:
15836 * m/clipper.h:
15837 * m/cnvrgnt.h:
15838 * m/convex.h:
15839 * m/cydra5.h:
15840 * m/delta88k.h:
15841 * m/dpx2.h:
15842 * m/dual.h:
15843 * m/elxsi.h:
15844 * m/f301.h:
15845 * m/gould-np1.h:
15846 * m/gould.h:
15847 * m/i860.h:
15848 * m/ibmps2-aix.h:
15849 * m/ibmrt-aix.h:
15850 * m/ibmrt.h:
15851 * m/irist.h:
15852 * m/is386.h:
15853 * m/isi-ov.h:
15854 * m/mega68.h:
15855 * m/mg1.h:
15856 * m/news-r6.h:
15857 * m/news-risc.h:
15858 * m/news.h:
15859 * m/nh3000.h:
15860 * m/nh4000.h:
15861 * m/ns16000.h:
15862 * m/ns32000.h:
15863 * m/nu.h:
15864 * m/orion.h:
15865 * m/orion105.h:
15866 * m/paragon.h:
15867 * m/pfa50.h:
15868 * m/plexus.h:
15869 * m/pyramid.h:
15870 * m/pyrmips.h:
15871 * m/sh3el.h:
15872 * m/sps7.h:
15873 * m/sr2k.h:
15874 * m/stride.h:
15875 * m/sun1.h:
15876 * m/sun2.h:
15877 * m/sun3-68881.h:
15878 * m/sun3-fpa.h:
15879 * m/sun3-soft.h:
15880 * m/sun3.h:
15881 * m/sun386.h:
15882 * m/symmetry.h:
15883 * m/tad68k.h:
15884 * m/tahoe.h:
15885 * m/targon31.h:
15886 * m/tek4300.h:
15887 * m/tekxd88.h:
15888 * m/tower32.h:
15889 * m/tower32v3.h:
15890 * m/ustation.h:
15891 * m/wicat.h:
15892 * m/xps100.h:
15893 * s/cxux.h:
15894 * s/cxux7.h:
15895 * s/dgux.h:
15896 * s/dgux4.h:
15897 * s/dgux5-4-3.h:
15898 * s/dgux5-4r2.h:
15899 * s/esix.h:
15900 * s/esix5r4.h:
15901 * s/hiuxmpp.h:
15902 * s/hiuxwe2.h:
15903 * s/iris3-5.h:
15904 * s/iris3-6.h:
15905 * s/isc2-2.h:
15906 * s/isc3-0.h:
15907 * s/isc4-0.h:
15908 * s/isc4-1.h:
15909 * s/newsos5.h:
15910 * s/newsos6.h:
15911 * s/osf1.h:
15912 * s/osf5-0.h:
15913 * s/riscix1-1.h:
15914 * s/riscix12.h:
15915 * s/sco4.h:
15916 * s/sco5.h:
15917 * s/sunos4-0.h:
15918 * s/sunos4-1.h:
15919 * s/sunos413.h:
15920 * s/sunos4shr.h:
15921 * s/umax.h:
15922 * s/unipl5-2.h:
15923 * s/xenix.h:
15924 * cxux-crt0.s:
15925 * unexapollo.c:
15926 * unexconvex.c:
15927 * unexenix.c:
15928 * unexsni.c: Remove files for systems no longer supported.
15929
15930 * m/intel386.h: Remove references to unsupported systems.
15931
15932 * w32.c (get_emacs_configuration): Remove reference to i860.
15933
15934 * sysdep.c: Remove dead code.
15935
159362008-01-05 Dan Nicolaescu <dann@ics.uci.edu>
15937
15938 * s/rtu.h:
15939 * m/masscomp.h: Remove files. Platform is obsolete.
15940
159412008-01-04 Michael Albinus <michael.albinus@gmx.de>
15942
15943 * dbusbind.c (Fdbus_method_return): New function.
15944 (xd_read_message): Add the serial number to the event.
15945 (Fdbus_register_method): Activate the function.
15946
159472008-01-03 Stefan Monnier <monnier@iro.umontreal.ca>
15948
15949 * keyboard.c (read_key_sequence): Fix typo.
15950
159512008-01-03 Michael Albinus <michael.albinus@gmx.de>
15952
15953 * dbusbind.c (all): Replace XCAR by CAR_SAFE and XCDR by CDR_SAFE.
15954 (xd_signature, xd_append_arg): Handle element type detection for
15955 empty arrays.
15956 (Fdbus_call_method, Fdbus_send_signal): Undo type casting for
15957 SDATA () calls; this must be solved more general.
15958 (Fdbus_register_signal): Use SBYTES instead of strlen.
15959
159602008-01-03 Magnus Henoch <magnus@zemdatav>
15961
15962 * dbusbind.c (xd_append_arg): Use unsigned char instead of
15963 unsigned int for byte values (necessary for big-endian platform).
15964 (Fdbus_call_method): Handle the case of no returned arguments.
15965
159662007-12-31 Tom Tromey <tromey@redhat.com> (tiny change)
15967
15968 * dbusbind.c (xd_read_message): Use non-static input_event struct.
15969
159702007-12-31 Magnus Henoch <mange@freemail.hu>
15971
15972 * dbusbind.c (xd_signature): Signature of variant is just "v".
15973
159742007-12-30 Michael Albinus <michael.albinus@gmx.de>
15975
15976 * dbusbind.c: Fix several errors and compiler warnings.
15977 Reported by Tom Tromey <tromey@redhat.com>.
15978 (XD_ERROR, XD_DEBUG_MESSAGE)
15979 (XD_DEBUG_VALID_LISP_OBJECT_P): Wrap code with "do ... while (0)".
15980 (xd_append_arg): Part for basic D-Bus types rewritten.
15981 (xd_retrieve_arg): Split implementation of DBUS_TYPE_BYTE and
15982 DBUS_TYPE_(U)INT16. Don't call XD_DEBUG_MESSAGE with "%f" if not
15983 appropriate.
15984 (xd_read_message): Return Qnil. Don't signal an error; it is not
15985 useful during event reading.
15986 (Fdbus_register_signal): Signal an error if the check for
15987 FUNCTIONP fails.
15988 (Fdbus_register_method): New function. The implementation is not
15989 complete, the call of the function signals an error therefore.
15990 (Fdbus_unregister_object): New function, renamed from
15991 Fdbus_unregister_signal. The initial check signals an error, if
15992 the object is not well formed.
15993
159942007-12-30 Richard Stallman <rms@gnu.org>
15995
15996 * textprop.c (get_char_property_and_overlay):
15997 Signal error if POSITION is out of range in a buffer.
15998
159992007-12-29 Martin Rudalics <rudalics@gmx.at>
16000
16001 * w32fns.c (Fx_create_frame): Make copy of frame parameters
16002 because the original parameters are in pure storage now.
16003
160042007-12-24 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
16005
16006 * xdisp.c (phys_cursor_in_rect_p): Check if cursor is in fringe area.
16007
160082007-12-22 Eli Zaretskii <eliz@gnu.org>
16009
16010 * callint.c (syms_of_callint) <command-history>: Add reference to
16011 history-length in the doc string.
16012
160132007-12-17 Jason Rumney <jasonr@gnu.org>
16014
16015 * w32fns.c (w32_wnd_proc) <WM_KEYDOWN>: Cast char to unsigned
16016 before passing as wParam.
16017
160182007-12-22 Michael Albinus <michael.albinus@gmx.de>
16019
16020 * dbusbind.c (xd_retrieve_arg): Handle DBUS_TYPE_BYTE,
16021 DBUS_TYPE_INT16, DBUS_TYPE_UINT16, DBUS_TYPE_INT64,
16022 DBUS_TYPE_UINT64, DBUS_TYPE_DOUBLE and DBUS_TYPE_SIGNATURE.
16023 Return float when DBUS_TYPE_INT32 or DBUS_TYPE_UINT32 do not fit
16024 as number.
16025 (Fdbus_call_method): Fix docstring.
16026
160272007-12-21 Michael Albinus <michael.albinus@gmx.de>
16028
16029 * dbusbind.c (XD_BASIC_DBUS_TYPE, XD_DBUS_TYPE_P, XD_NEXT_VALUE):
16030 New macros.
16031 (XD_SYMBOL_TO_DBUS_TYPE): Rename from XD_LISP_SYMBOL_TO_DBUS_TYPE.
16032 (XD_OBJECT_TO_DBUS_TYPE): Rename from XD_LISP_OBJECT_TO_DBUS_TYPE.
16033 Simplify.
16034 (xd_signature): New function.
16035 (xd_append_arg): Compute also signatures. Major rewrite.
16036 (xd_retrieve_arg): Make debug messages friendly.
16037 (Fdbus_call_method, Fdbus_send_signal): Extend docstring.
16038 Check for signatures of arguments.
16039
160402007-12-19 Michael Albinus <michael.albinus@gmx.de>
16041
16042 * dbusbind.c (QCdbus_type_byte, QCdbus_type_boolean)
16043 (QCdbus_type_int16, QCdbus_type_uint16, QCdbus_type_int32)
16044 (QCdbus_type_uint32, QCdbus_type_int64, QCdbus_type_uint64)
16045 (QCdbus_type_double, QCdbus_type_string, QCdbus_type_object_path)
16046 (QCdbus_type_signature, QCdbus_type_array, QCdbus_type_variant)
16047 (QCdbus_type_struct, QCdbus_type_dict_entry): New D-Bus type symbols.
16048 (XD_LISP_SYMBOL_TO_DBUS_TYPE): New macro.
16049 (XD_LISP_OBJECT_TO_DBUS_TYPE): Add compound types.
16050 (xd_retrieve_value): Remove. Functionality included in ...
16051 (xd_append_arg): New function.
16052 (Fdbus_call_method, Fdbus_send_signal): Apply it.
16053
160542007-12-16 Michael Albinus <michael.albinus@gmx.de>
16055
16056 * dbusbind.c (top): Include <stdio.h>.
16057 (Fdbus_call_method, Fdbus_send_signal): Apply type cast in
16058 dbus_message_new_method_call and dbus_message_new_signal.
16059 (Fdbus_register_signal): Rename unique_name to uname.
16060 Check handler for FUNCTIONP instead of CHECK_SYMBOL. Handle case of
16061 non-existing unique name. Fix typos in matching rule. Return an
16062 object which is useful in Fdbus_unregister_signal.
16063 (Fdbus_unregister_signal): Reimplementation, in order to remove
16064 only the corresponding entry.
16065 (Vdbus_registered_functions_table): Change the order of entries.
16066 Apply these changes in xd_read_message and Fdbus_register_signal.
16067
160682007-12-16 Andreas Schwab <schwab@suse.de>
16069
16070 * fileio.c (Finsert_file_contents): Fix overflow check to not
16071 depend on undefined integer overflow.
16072
160732007-12-14 Jason Rumney <jasonr@gnu.org>
16074
16075 * w32term.c (w32_read_socket): Use MULTIBYTE_CHAR_KEYSTROKE_EVENT
16076 for characters above 127.
16077
160782007-12-13 Jason Rumney <jasonr@gnu.org>
16079
16080 * w32fns.c (w32_wnd_proc, Fw32_reconstruct_hot_key): Range check
16081 before dereferencing array.
16082 (lookup_vk_code): Remove zero comparison.
16083
160842007-12-14 Michael Albinus <michael.albinus@gmx.de>
16085
16086 * dbusbind.c (xd_retrieve_value, xd_retrieve_arg)
16087 (Fdbus_call_method, Fdbus_send_signal, xd_read_message):
16088 Use `unsigned int' instead of `uint'.
16089 (xd_read_message, Fdbus_register_signal): Split expressions into
16090 multiple lines before operators "&&" and "||", according to the
16091 GNU Coding Standards.
16092
160932007-12-14 Eli Zaretskii <eliz@gnu.org>
16094
16095 * dispextern.h (WINDOWS_NT): Fix incorrect spelling of WINDOWSNT.
16096
160972007-12-12 Juri Linkov <juri@jurta.org>
16098
16099 * buffer.c (Frename_buffer): In interactive spec replace
16100 `read-buffer' with `read-string' that uses `buffer-name-history'
16101 as history, and the current buffer's name as default.
16102
161032007-12-10 Stefan Monnier <monnier@iro.umontreal.ca>
16104
16105 * keyboard.c (Fcommand_execute): Call Qcall_interactively instead of
16106 manipulating the backtrace manually.
16107 (make_lispy_event): Merge the ASCII and MULTIBYTE cases.
16108 (struct backtrace, backtrace_list): Remove.
16109 (command_loop_1): Remove dead var `no_direct'.
16110
16111 * buffer.c (reset_buffer_local_variables): If permanent_too is 0, also
16112 preserve non-built-in buffer-local variables.
16113 (Fkill_all_local_variables): Don't re-create&re-set permanent
16114 buffer-local variables.
16115
161162007-12-09 Juri Linkov <juri@jurta.org>
16117
16118 * buffer.c (Frename_buffer): Change interactive spec from "s" to
16119 Lisp code that uses `read-buffer' with current buffer as default.
16120
161212007-12-08 Michael Albinus <michael.albinus@gmx.de>
16122
16123 * dbusbind.c (xd_read_message): Generate an event for every
16124 registered handler. There might be several handlers registered
16125 for the same signal.
16126 (Fdbus_register_signal): Don't overwrite a registration for the
16127 same signal. Add a new registration if handlers are different.
16128 (Vdbus_registered_functions_table): Rework doc string.
16129
161302007-12-07 Michael Albinus <michael.albinus@gmx.de>
16131
16132 * dbusbind.c (Fdbus_get_unique_name, xd_read_message)
16133 (Fdbus_register_signal): Use DBUS_MAXIMUM_NAME_LENGTH and
16134 DBUS_MAXIMUM_MATCH_RULE_LENGTH for string lengths.
16135 (Fdbus_call_method, Fdbus_send_signal, Fdbus_register_signal):
16136 Unify argument lists.
16137 (xd_read_message, Fdbus_register_signal): Reorder and extend event
16138 arguments and hash table keys. Use unique name for service.
16139 (Fdbus_unregister_signal): Remove checks.
16140 (Vdbus_registered_functions_table): Fix doc string.
16141
161422007-12-05 Magnus Henoch <mange@freemail.hu>
16143
16144 * process.c (make_process): Initialize pty_flag to 0.
16145
161462007-12-05 Jason Rumney <jasonr@gnu.org>
16147
16148 * image.c (xbm_load) [WINDOWSNT]: Shuffle the bits of directly
16149 specified XBMs.
16150
161512007-12-05 Richard Stallman <rms@gnu.org>
16152
16153 * xdisp.c (syms_of_xdisp) <scroll-conservatively>: Doc fix.
16154
161552007-12-05 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
16156
16157 * mac.c (cfsockets_for_select) [MAC_OSX && SELECT_USE_CFSOCKET]:
16158 New variable.
16159 (mac_try_close_socket) [MAC_OSX]: New function.
16160 [MAC_OSX] (sys_select) [SELECT_USE_CFSOCKET]:
16161 Update cfsockets_for_select. Replace invalid CFRunLoop source.
16162
16163 * sysdep.c (emacs_close) [MAC_OSX && HAVE_CARBON]:
16164 Use mac_try_close_socket.
16165
161662007-12-05 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
16167
16168 * unexmacosx.c (unrelocate): New argument BASE. Use it instead of
16169 reloc_base.
16170 (copy_dysymtab): Compute relocation base here.
16171 (rebase_reloc_address) [__ppc64__]: New function.
16172 (copy_dysymtab) [__ppc64__]: Use it if relocation base needs to be
16173 changed.
16174
161752007-12-05 Jason Rumney <jasonr@gnu.org>
16176
16177 * w32proc.c (sys_spawnve): Quote args with wildcards.
16178
161792007-12-05 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
16180
16181 * unexmacosx.c (copy_data_segment): Also copy __gcc_except_tab and
16182 __objc_* sections.
16183 (unrelocate) [_LP64]: Set relocation base to address of data segment.
16184
161852007-12-05 Michael Albinus <michael.albinus@gmx.de>
16186
16187 * dbusbind.c (xd_read_message): Return value is a Lisp_Object.
16188 Move check for Vdbus_registered_functions_table to
16189 xd_read_queued_messages.
16190 (xd_read_queued_messages): Protect xd_read_message calls by
16191 internal_condition_case_1.
16192
161932007-12-04 Michael Albinus <michael.albinus@gmx.de>
16194
16195 * dbusbind.c (QCdbus_system_bus, QCdbus_session_bus): Rename from
16196 Qdbus_system_bus and Qdbus_session_bus, respectively.
16197 (Vdbus_intern_symbols): Remove.
16198 (Vdbus_registered_functions_table): New hash table.
16199 (XD_SYMBOL_INTERN_SYMBOL): Remove.
16200 (xd_read_message, Fdbus_register_signal, Fdbus_unregister_signal):
16201 Rewrite in order to manage registered functions by hash table
16202 Vdbus_registered_functions_table.
16203
162042007-12-03 Jan Djärv <jan.h.d@swipnet.se>
16205
16206 * xterm.c: Update URL to Window Manager Specification in comment.
16207
162082007-12-02 Michael Albinus <michael.albinus@gmx.de>
16209
16210 * config.in (HAVE_DBUS): Add.
16211
16212 * Makefile.in (HAVE_DBUS): Add D-Bus definitions if defined.
16213 (ALL_CFLAGS): Add ${DBUS_CFLAGS}.
16214 (obj): Add $(DBUS_OBJ).
16215 (LIBES): Add $(DBUS_LIBS).
16216 (dbusbind.o): New target.
16217
16218 * dbusbind.c: New file.
16219
16220 * emacs.c (main): Call syms_of_dbusbind when HAVE_DBUS is defined.
16221
16222 * keyboard.c: All D-Bus related code is wrapped by "#ifdef HAVE_DBUS".
16223 (Qdbus_event): New Lisp symbol.
16224 (kbd_buffer_get_event, make_lispy_event): Handle DBUS_EVENT.
16225 (gobble_input): Call xd_read_queued_messages, reading D-Bus messages.
b97439ce 16226 (keys_of_keyboard): Define dbus-event.
aac0c6e3
MR
16227
16228 * termhooks.h (event_kind): Add DBUS_EVENT when HAVE_DBUS is defined.
16229
162302007-12-01 Richard Stallman <rms@gnu.org>
16231
16232 * search.c (syms_of_search) <inhibit-changing-match-data>: Doc fix.
16233
162342007-11-30 Jason Rumney <jasonr@gnu.org>
16235
16236 * w32console.c (w32con_ins_del_lines, scroll_line): Clip to window.
16237 (w32con_reset_terminal_modes): Clear screen buffer.
16238 (w32_face_attributes): Don't use color indexes that are out of range.
16239 Only reverse the default colors.
16240
16241 * xfaces.c (map_tty_color, tty_color_name): Remove special case for
16242 WINDOWSNT.
16243
16244 * w32console.c, w32term.h (vga_stdcolor_name): Remove.
16245
162462007-11-29 Jason Rumney <jasonr@gnu.org>
16247
16248 * w32console.c: Leave HAVE_WINDOW_SYSTEM defined.
16249 (w32_face_attributes): Use Vtty_defined_color_alist to determine
16250 if the terminal colors are initialized.
16251 (unspecified_fg, unspecified_bg): Remove unused declarations.
16252
162532007-11-29 Andreas Schwab <schwab@suse.de>
16254
16255 * keyboard.c (apply_modifiers): Fix typo.
16256
162572007-11-29 Richard Stallman <rms@gnu.org>
16258
16259 * keymap.c (Fcurrent_local_map): Doc fix.
16260
162612007-11-28 Petr Salinger <Petr.Salinger@seznam.cz> (tiny change)
16262
16263 * s/gnu-kfreebsd.h: New file.
16264
162652007-11-28 Stefan Monnier <monnier@iro.umontreal.ca>
16266
16267 * buffer.c (Fget_buffer_create, Fmake_indirect_buffer):
16268 Don't cast redundantly.
16269
16270 * keyboard.c (KEY_TO_CHAR): New macro.
16271 (parse_modifiers, apply_modifiers): Accept integer arguments.
16272 (read_key_sequence): Use them to unify the "shift->unshift" mapping
16273 for chars and symbol keys.
16274 After doing such remapping, apply function-key-map again.
16275
162762007-11-27 Dan Nicolaescu <dann@ics.uci.edu>
16277
16278 * Makefile.in (SOME_MACHINE_LISP): Remove VMS files, they are not
16279 compiled anymore.
16280
162812007-11-26 Andreas Schwab <schwab@suse.de>
16282
16283 * process.c (list_processes_1): Fix indentation level of the
16284 command column.
16285
162862007-11-23 Andreas Schwab <schwab@suse.de>
16287
16288 * editfns.c (Fformat): Handle %c specially since it requires the
16289 argument to be of type int.
16290
162912007-11-23 Markus Triska <markus.triska@gmx.at>
16292
16293 * emacs.c (main): Call init_editfns before init_process, since
16294 init_process sets Vprocess_connection_type depending on OS release.
16295
162962007-11-22 Stefan Monnier <monnier@iro.umontreal.ca>
16297
16298 * data.c (do_symval_forwarding): Use same code as in find_symbol_value.
16299 (find_symbol_value): Use do_symval_forwarding.
16300
16301 * data.c (set_internal): Set the value in the `cons-cell' (for
16302 Buffer_Local_values) not only for frame-local variables.
16303
163042007-11-22 Andreas Schwab <schwab@suse.de>
16305
16306 * data.c (Fnumber_to_string): Add cast when passing EMACS_INT
16307 values to sprintf.
16308 * keymap.c (Fsingle_key_description): Likewise.
16309 * print.c (print_object): Likewise.
16310
163112007-11-22 Jan Djärv <jan.h.d@swipnet.se>
16312
16313 * gtkutil.c (update_frame_tool_bar): Don't call x-gtk-map-stock if
16314 file for image is nil.
16315
163162007-11-22 Dan Nicolaescu <dann@ics.uci.edu>
16317
16318 * term.c: Include stdarg.h.
16319 (fatal): Implement using varargs.
16320 * lisp.h (fatal): Add argument types. (Restore 2005-09-30 change).
16321
163222007-11-21 Stefan Monnier <monnier@iro.umontreal.ca>
16323
16324 * lisp.h (struct Lisp_Buffer_Objfwd): Add a `slottype' field.
16325 * data.c (store_symval_forwarding): Get type from buffer_objfwd.
16326 Update call to buffer_slot_type_mismatch.
16327 * buffer.h (buffer_local_types, PER_BUFFER_TYPE): Remove.
16328 (buffer_slot_type_mismatch): Update.
16329 * buffer.c (buffer_local_types): Remove.
16330 (buffer_slot_type_mismatch): Get the symbol and type as arguments.
16331 (defvar_per_buffer): Set the type in the buffer_objfwd.
16332
163332007-11-21 Jason Rumney <jasonr@gnu.org>
16334
16335 * w32bdf.c (w32_init_bdf_font, w32_BDF_to_x_font):
16336 CreateFileMapping returns NULL on failure.
16337
163382007-11-21 Stefan Monnier <monnier@iro.umontreal.ca>
16339
16340 * search.c (Fset_match_data): Remove the `evaporate' feature.
16341 (unwind_set_match_data): Don't use the `evaporate' feature.
16342
163432007-11-21 Jason Rumney <jasonr@gnu.org>
16344
16345 * dispnew.c (init_display) [WINDOWSNT]: Hardcode terminal_type.
16346
16347 * w32console.c (w32con_write_glyphs): Remove unused variables.
16348
163492007-11-20 Dan Nicolaescu <dann@ics.uci.edu>
16350
16351 * macterm.c (mac_term_init): Call add_keyboard_wait_descriptor.
16352
16353 * s/darwin.h (MULTI_KBOARD): Remove.
16354
16355 * macfns.c (x_create_tip_frame, Fx_create_frame)
16356 (x_create_tip_frame): Don't deal with MULTI_KBOARD.
16357
163582007-11-19 Stefan Monnier <monnier@iro.umontreal.ca>
16359
16360 * buffer.c (Fbuffer_local_value): Remove redundant test.
16361 (swap_out_buffer_local_variables): Swap out binding in `buffer' rather
16362 than in `current-buffer' to match the comment.
16363 Do the swap using swap_in_global_binding.
16364
16365 * data.c (store_symval_forwarding, set_internal):
16366 * eval.c (specbind): Remove dead code.
16367
16368 * coding.c (detect_coding, Fupdate_coding_systems_internal):
16369 * fns.c (Fmd5): Use find_symbol_value rather than SYMBOL_VALUE
16370 Since we do not want to see internal Lisp_*fwd objects here.
16371
163722007-11-18 Jan Djärv <jan.h.d@swipnet.se>
16373
16374 * sysdep.c (init_system_name): Use getaddrinfo if available.
16375
16376 * xterm.c (x_scroll_bar_set_handle, x_scroll_bar_handle_click)
16377 (x_scroll_bar_note_movement): start, end, with, height in struct
16378 scroll_bar are integers and not Lisp_Object, so remove XINT for them.
16379
163802007-11-17 Dan Nicolaescu <dann@ics.uci.edu>
16381
16382 * puresize.h (BASE_PURESIZE): Increase to 1190000.
16383
163842007-11-16 Stefan Monnier <monnier@iro.umontreal.ca>
16385
16386 * buffer.h (struct buffer): Move `undo_list' back to before `name'.
16387 This undoes Richard's change of 14-Oct-2002.
16388
16389 * alloc.c (allocate_other_vector):
16390 * lisp.h (allocate_other_vector): Remove.
16391
16392 * window.c (struct save_window_data): Move non-lisp data to the end
16393 and make it `int' rather than Lisp_Object.
16394 (Fcurrent_window_configuration): Use ALLOCATE_PSEUDOVECTOR.
16395 Done wrap/unwrap integer values.
16396 (Fset_window_configuration, compare_window_configurations):
16397 Update use of fields to their new types.
16398
16399 * xterm.h (struct scroll_bar): Only use Lisp_Object for lisp data.
16400 Turn integer fields into `int'. Merge x_window_low and x_window_high.
16401 (SCROLL_BAR_PACK, SCROLL_BAR_UNPACK, SCROLL_BAR_X_WINDOW)
16402 (SET_SCROLL_BAR_X_WINDOW): Remove.
16403 (SCROLL_BAR_X_WIDGET, SET_SCROLL_BAR_X_WIDGET):
16404 Access the new x_window field directly.
16405 * xterm.c (x_scroll_bar_create): Use a pseudovector.
16406 Don't wrap/unwrap integers into Lisp_Objects.
16407 (XTset_vertical_scroll_bar, x_scroll_bar_handle_click)
16408 (x_scroll_bar_report_motion):
16409 Don't wrap/unwrap integers into Lisp_Objects.
16410 (x_term_init): Use SDATA.
16411 (x_window_to_scroll_bar, x_create_toolkit_scroll_bar)
16412 (x_scroll_bar_set_handle, x_scroll_bar_remove)
16413 (XTset_vertical_scroll_bar, x_scroll_bar_expose)
16414 (x_scroll_bar_report_motion, x_scroll_bar_clear):
16415 * xfns.c (x_set_background_color):
16416 * gtkutil.c (xg_create_scroll_bar, xg_set_toolkit_scroll_bar_thumb):
16417 Access the new x_window field directly.
16418
16419 * alloc.c (ALLOCATE_PSEUDOVECTOR): Move to lisp.h.
16420 (allocate_pseudovector): Make non-static.
16421
16422 * lisp.h (enum pvec_type): New tag PVEC_OTHER.
16423 (allocate_pseudovector): Declare.
16424 (ALLOCATE_PSEUDOVECTOR): Move from alloc.c.
16425
164262007-11-15 Andreas Schwab <schwab@suse.de>
16427
16428 * editfns.c (Fformat): Correctly format EMACS_INT values.
16429 Also take precision into account when formatting an integer.
16430
16431 * keyboard.c (Fevent_symbol_parse_modifiers): Fix declaration.
16432
164332007-11-15 Stefan Monnier <monnier@iro.umontreal.ca>
16434
16435 * keyboard.c (Fevent_symbol_parse_modifiers): New function.
16436 (syms_of_keyboard): Defsubr it.
16437
16438 * data.c (swap_in_global_binding): Fix longstanding bug where
16439 store_symval_forwarding was not called with the right second argument,
16440 thus causing objfwd-ing from being dropped.
16441
164422007-11-14 Juanma Barranquero <lekktu@gmail.com>
16443
16444 * macfns.c (Fx_create_frame, Fx_display_pixel_width)
16445 (Fx_display_pixel_height, Fx_display_planes)
16446 (Fx_display_color_cells, Fx_server_max_request_size)
16447 (Fx_server_vendor, Fx_server_version, Fx_display_backing_store)
16448 (Fx_display_visual_class, Fx_display_save_under):
16449 * w32fns.c (Fx_create_frame, Fx_display_pixel_width)
16450 (Fx_display_pixel_height, Fx_display_planes)
16451 (Fx_display_color_cells, Fx_server_max_request_size)
16452 (Fx_server_vendor, Fx_server_version, Fx_display_screens)
16453 (Fx_display_mm_height, Fx_display_mm_width)
16454 (Fx_display_backing_store, Fx_display_visual_class)
16455 (Fw32_select_font, Fx_display_save_under):
16456 * xfns.c (Fx_create_frame, Fx_display_pixel_width)
16457 (Fx_display_pixel_height, Fx_display_planes)
16458 (Fx_display_color_cells, Fx_server_max_request_size)
16459 (Fx_server_vendor, Fx_server_version, Fx_display_backing_store)
16460 (Fx_display_save_under): Fix typos in docstrings.
16461
164622007-11-14 Juanma Barranquero <lekktu@gmail.com>
16463
16464 * w32fns.c (Fw32_registered_hot_keys): Don't return the nil values
16465 corresponding to deleted entries; they are an implementation detail.
16466 (gray_bitmap_width, gray_bitmap_height, gray_bitmap_bits):
16467 Remove variables.
16468 (w32_pass_extra_mouse_buttons_to_system, w32_strict_fontnames)
16469 (w32_pass_multimedia_buttons_to_system, w32_strict_painting)
16470 (Vw32_charset_info_alist, w32_to_x_color, w32_init_class)
16471 (w32_createscrollbar, w32_createwindow, my_post_msg, w32_get_modifiers)
16472 (w32_grabbed_keys, cancel_all_deferred_msgs): Make static.
16473 (Fw32_define_rgb_color, Fw32_load_color_file)
16474 (syms_of_w32fns) <w32-pass-multimedia-buttons-to-system>:
16475 Fix typos in docstrings.
16476 (Fx_server_version): Reflow docstring.
16477 (Fw32_shell_execute): Doc fixes.
16478
164792007-11-13 Juanma Barranquero <lekktu@gmail.com>
16480
16481 * w32fns.c (Fw32_register_hot_key): Don't try to register hot key
16482 if w32_parse_hot_key returned nil.
16483
164842007-11-10 Stefan Monnier <monnier@iro.umontreal.ca>
16485
16486 * xdisp.c (load_overlay_strings): Fix copy&paste typo.
16487
164882007-11-09 Jason Rumney <jasonr@gnu.org>
d6c952f8 16489
aac0c6e3
MR
16490 * s/ms-w32.c (USE_TOOLKIT_SCROLL_BARS): Define.
16491
16492 * w32term.c (w32_scroll_bar_handle_click): Use SCROLL_BAR_CLICK_EVENT.
16493
16494 * keyboard.c (discard_mouse_events, make_lispy_event) [WINDOWSNT]:
16495 Remove W32_SCROLL_BAR_CLICK_EVENT.
16496
16497 * termhooks.h (enum event_kind) [WINDOWSNT]: Likewise.
16498 Add MULTIMEDIA_KEY_EVENT.
16499
16500 * keyboard.c (lispy_function_keys) [WINDOWSNT]: Add more keys.
16501 (lispy_multimedia_keys) [WINDOWSNT]: New array.
16502 (make_lispy_event) [WINDOWSNT]: Use it to translate
16503 MULTIMEDIA_KEY_EVENT.
16504
16505 * w32term.h (WM_APPCOMMAND): Define if not already.
16506 (GET_APPCOMMAND_LPARAM): Likewise.
16507
16508 * w32term.c (w32_read_socket): Generate MULTIMEDIA_KEY_EVENT from
16509 WM_APPCOMMAND.
16510
16511 * w32fns.c (w32_pass_multimedia_buttons_to_system): New user option.
16512 (syms_of_w32fns): Export and initialize it.
16513 (w32_wnd_proc): Pass WM_APPCOMMAND on to w32_read_socket.
16514
165152007-11-09 Chong Yidong <cyd@stupidchicken.com>
16516
16517 * dispextern.h (struct it): Don't define OVERLAY_STRING_CHUNK_SIZE
16518 twice.
16519
16520 * xdisp.c (handle_face_prop): Fix last change.
16521
165222007-11-09 Richard Stallman <rms@gnu.org>
16523
16524 * xdisp.c (handle_face_prop): Test for strings that came from overlays,
16525 not just for after-strings and before-strings.
16526 Call face_for_overlay_string and pass the overlay to it.
16527 (handle_display_prop): Determine whether property came from an overlay.
16528 Pass OVERLAY arg to handle_single_display_spec.
16529 (handle_single_display_spec): New arg OVERLAY sets it->from_overlay.
16530 (load_overlay_strings): Fill in it->string_overlays.
16531 (get_overlay_strings_1, push_it, pop_it): Handle it->from_overlays.
16532
16533 * xfaces.c (face_for_overlay_string): Function renamed from
16534 face_at_buffer_position_no_overlays, and add arg OVERLAY.
16535
16536 * dispextern.h (struct it): New elt string_overlays.
16537 New elt from_overlay, also in stack.
16538 Rearrange a few elements.
16539 (face_for_overlay_string): Decl renamed from
16540 face_at_buffer_position_no_overlays, and add argument.
16541
165422007-11-09 Richard Stallman <rms@gnu.org>
16543
16544 * xdisp.c (handle_face_prop): Use face_at_buffer_position_no_overlays
16545 to get the base face for an overlay string.
16546
16547 * dispextern.h (face_at_buffer_position_no_overlays): Add decl.
16548
16549 * xfaces.c (face_at_buffer_position_no_overlays): New function.
16550
16551 * xdisp.c (handle_stop): Move some code out of loop.
16552
165532007-11-09 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
16554
16555 * macfns.c [USE_ATSUI] (Fmac_atsu_font_face_attributes):
16556 Fix conversion from Lisp object to ATSUFontID.
16557
165582007-11-09 Jason Rumney <jasonr@gnu.org>
16559
16560 * xdisp.c (Fformat_mode_line): Do nothing when noninteractive.
16561
165622007-11-09 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
16563
16564 * unexmacosx.c (unexec_regions_recorder, unexec_regions_merge):
16565 Don't assume regions are aligned to page boundary.
16566 (print_load_command_name): Add LC_UUID if defined.
16567
165682007-11-09 Richard Stallman <rms@gnu.org>
16569
16570 * emacs.c (syms_of_emacs) <installation-directory>: Reflow docstring.
16571
165722007-11-07 Jason Rumney <jasonr@gnu.org>
16573
16574 * s/windows95.h: Remove.
16575
165762007-11-06 Jan Djärv <jan.h.d@swipnet.se>
16577
16578 * gtkutil.c (xg_tool_bar_menu_proxy): Handle GTK_IMAGE_ICON_NAME and
16579 abort with a message on unhandled store_type values.
16580
165812007-11-01 Jan Djärv <jan.h.d@swipnet.se>
16582
16583 * xterm.c, xfns.c, xselect.c, xterm.h, s/msdos.h, s/sco4.h, s/sco5.h:
16584 Remove HAVE_X11R5 and HAVE_X11R4.
16585
165862007-11-01 Dan Nicolaescu <dann@ics.uci.edu>
16587
16588 * Makefile.in: Remove references to sunfns.c and sunfns.o.
16589
165902007-11-01 Johan Bockgård <bojohan@gnu.org>
16591
16592 * macterm.c, w32term.c, xterm.c (x_draw_stretch_glyph_string):
16593 Don't set s->stippled_p here, since it has already been set by
16594 x_set_glyph_string_gc from x_draw_glyph_string.
16595
165962007-11-01 Dan Nicolaescu <dann@ics.uci.edu>
16597
16598 * sunfns.c: Remove file.
16599
16600 * m/sun386.h:
16601 * m/sun2.h:
16602 * m/sparc.h: Remove Sun windows code.
16603
166042007-10-31 Stefan Monnier <monnier@iro.umontreal.ca>
16605
16606 * keyboard.c (syms_of_keyboard): Initialize the initial_kboard.
16607 (init_keyboard): Set current_kboard's window-system to nil.
16608 (tty_read_avail_input): Typo.
16609 * frame.c (make_initial_frame): Don't initialize the initial_kboard.
16610
166112007-10-31 Dan Nicolaescu <dann@ics.uci.edu>
16612
16613 * s/usg5-4.h:
16614 * s/usg5-3.h:
16615 * s/ptx.h:
16616 * m/is386.h:
16617 * m/ibmps2-aix.h:
16618 * Makefile.in: Remove all mentions of X10.
16619
16620 * dispnew.c (syms_of_display): Don't mention version 10.
16621
166222007-10-28 Juanma Barranquero <lekktu@gmail.com>
16623
16624 * makefile.w32-in (OBJ1): Remove abbrev.$(O).
16625 ($(BLD)/abbrev.$(O)): Remove.
16626
166272007-10-28 Stefan Monnier <monnier@iro.umontreal.ca>
16628
16629 Rewrite abbrev.c in Elisp.
16630 * image.c (Qcount): Don't declare as extern.
16631 (syms_of_image): Initialize and staticpro `Qcount'.
16632 * puresize.h (BASE_PURESIZE): Increase for the new abbrev.el functions.
16633 * emacs.c (main): Don't call syms_of_abbrev.
16634 * Makefile.in (obj): Remove abbrev.o.
16635 (abbrev.o): Remove.
16636 * abbrev.c: Remove.
16637
166382007-10-26 Martin Rudalics <rudalics@gmx.at>
16639
16640 * window.c (window_min_size_2): Don't count header-line.
16641
166422007-10-26 Dan Nicolaescu <dann@ics.uci.edu>
16643
16644 * frame.h (struct frame): Move all bit fields after the first bit
16645 field to take advantage of the available space. Group all the
16646 chars together to reduce wasted space due to padding.
16647
166482007-10-26 Juanma Barranquero <lekktu@gmail.com>
16649
16650 * minibuf.c (Fread_minibuffer, Feval_minibuffer): Reflow docstrings.
16651
16652 * alloc.c (spare_memory, stack_copy, stack_copy_size, ignore_warnings)
16653 (Vdead, dont_register_blocks, staticvec, staticidx, interval_block)
16654 (n_interval_blocks, init_strings, check_string_bytes, check_sblock)
16655 (init_float, free_float, n_cons_blocks, init_cons, all_vectors)
16656 (n_vectors, symbol_block, symbol_block_index, symbol_free_list)
16657 (n_symbol_blocks, init_symbol, marker_block, marker_free_list)
16658 (n_marker_blocks, init_marker, valid_pointer_p, make_pure_float)
16659 (last_marked, mark_object_loop_halt): Make static.
16660
16661 * frame.c (syms_of_frame) <delete-frame-functions>:
16662 Fix typo in docstring.
16663
166642007-10-25 Juanma Barranquero <lekktu@gmail.com>
16665
16666 * w32.c (init_environment): Fix tiny memory leak.
16667 (w32_get_resource): Remove unused variable `ok'.
16668
166692007-10-25 Stefan Monnier <monnier@iro.umontreal.ca>
16670
16671 Make `window-system' into a keyboard-local variable (rather than
16672 frame-local as done originally by multi-tty).
16673
16674 * keyboard.h (struct kboard): Add Vwindow_system.
16675 * keyboard.c (init_kboard): Set a default for Vwindow_system.
16676 (mark_kboards): Mark Vwindow_system.
16677
16678 * dispnew.c (syms_of_display) <window-system>: Declare terminal-local.
16679 (init_display): Don't set the obsolete `window-system' frame-param.
16680
16681 * xterm.c (x_term_init):
16682 * w32term.c (w32_create_terminal):
16683 * term.c (init_tty): Set Vwindow_system.
16684 * macterm.c (mac_create_terminal): Set a keyboard (missing piece of the
16685 multi-tty merge maybe?), copied from w32term.c. Set Vwindow_system.
16686
16687 * xfns.c (Fx_create_frame, x_create_tip_frame):
16688 * w32fns.c (Fx_create_frame, x_create_tip_frame):
16689 * macfns.c (Fx_create_frame):
16690 Don't set the obsolete `window-system' frame-param.
16691
16692 * frame.h (Qwindow_system): Remove.
16693 * frame.c (Qwindow_system): Remove. In `syms_of_frame' as well.
16694 (Fmake_terminal_frame): Don't set obsolete `window-system' frame-param.
16695
166962007-10-24 Richard Stallman <rms@gnu.org>
16697
16698 * frame.c (x_figure_window_size): For fullscreen case,
16699 set USPosition | PPosition without clobbering rest of window_prompting.
16700
16701 * keyboard.c (Fcurrent_idle_time): Doc fix.
16702
16703 * print.c (Fwith_output_to_temp_buffer): Doc fix.
16704
167052007-10-23 Stefan Monnier <monnier@iro.umontreal.ca>
16706
16707 * process.c (unwind_request_sigio): Only define if __ultrix__.
16708
16709 * callproc.c (child_setup): Remove spurious *.
16710
16711 * lisp.h (Fget_text_property): Declare.
16712 (have_menus_p): Declare it here rather than in sys-dep header files.
16713 * macterm.h (have_menus_p):
16714 * msdos.h (have_menus_p):
16715 * xterm.h (have_menus_p): Remove.
16716
16717 * data.c (Fmake_variable_buffer_local, Fmake_local_variable)
16718 (Fmake_variable_frame_local): Just check the variable's const-ness
16719 rather than checking nil or t.
16720
167212007-10-22 Jason Rumney <jasonr@gnu.org>
16722
16723 * w32fns.c: Include math.h.
16724 (w32_abort): Declaration moved to nt/config.nt.
16725
16726 * s/ms-w32.h (HAVE_STDLIB_H): Define.
16727 (abort): Redefinition moved to nt/config.nt.
16728
16729 * m/windowsnt.h: Remove.
16730
167312007-10-22 Juanma Barranquero <lekktu@gmail.com>
16732
16733 * emacs.c (Fdump_emacs): Fix typo in message.
16734 (syms_of_emacs) <kill-emacs-hook>: Fix typo in docstring.
16735 <installation-directory>: Reflow docstring.
16736
167372007-10-22 Juri Linkov <juri@jurta.org>
16738
16739 * minibuf.c: Allow minibuffer default to be a list of default values.
16740 With empty input use the first element of this list as returned default.
16741 (string_to_object)
16742 (read_minibuf_noninteractive): If defalt is cons, set val to its car.
16743 (read_minibuf): If defalt is cons, set histstring to its car.
16744 (Fread_string): If default_value is cons, set val to its car.
16745 (Fread_buffer): If def is cons, use its car.
16746 (Fcompleting_read): If defalt is cons, set val to its car.
16747
167482007-10-21 Michael Albinus <michael.albinus@gmx.de>
16749
16750 * fileio.c (Fcopy_file): Call file name handler with preserve_uid_gid.
16751
167522007-10-20 Juanma Barranquero <lekktu@gmail.com>
16753
16754 * doc.c (Fdocumentation): Check for advice in all cases.
16755
167562007-10-19 Chong Yidong <cyd@stupidchicken.com>
16757
16758 * Makefile.in [HAVE_LIBRESOLV]: Add -lresolv to linker flags.
16759
167602007-10-19 Richard Stallman <rms@gnu.org>
16761
16762 * doc.c (Fdocumentation): Check for and handle an advised function.
16763
167642007-10-19 Juanma Barranquero <lekktu@gmail.com>
16765
16766 * process.c (Fset_process_filter): Doc fix.
16767
167682007-10-18 Stefan Monnier <monnier@iro.umontreal.ca>
16769
16770 * keyboard.c (read_key_sequence): Undo a change introduced by multi-tty
16771 which caused key-translation-map to applied repeatedly (thus breaking
16772 double-mode).
16773
167742007-10-17 Stefan Monnier <monnier@iro.umontreal.ca>
16775
16776 * xselect.c (x_own_selection, x_handle_selection_clear)
16777 (x_clear_frame_selections):
16778 * w32menu.c (list_of_panes, list_of_items):
16779 * w32fns.c (w32_color_map_lookup, Fx_create_frame, Fx_display_list):
16780 * textprop.c (validate_plist, interval_has_all_properties)
16781 (interval_has_some_properties, interval_has_some_properties_list)
16782 (add_properties, text_property_list):
16783 * process.c (Fget_buffer_process, list_processes_1, status_notify):
16784 * minibuf.c (Fassoc_string):
16785 * macselect.c (x_own_selection, x_clear_frame_selections)
16786 (Fx_disown_selection_internal):
16787 * keymap.c (Fcommand_remapping, where_is_internal, describe_map_tree):
16788 Use CONSP rather than !NILP and XC[AD]R rather than Fc[ad]r.
16789
167902007-10-17 Chong Yidong <cyd@stupidchicken.com>
16791
16792 * process.c: Link to libs for calling res_init() if available.
16793 (Fmake_network_process): Call res_init() before getaddrinfo or
16794 gethostbyname, if possible.
16795
167962007-10-17 Stefan Monnier <monnier@iro.umontreal.ca>
16797
16798 * lread.c (read1): Set pvectype for char_tables.
16799
16800 * lisp.h (XMISCANY, XMARKER, XINTFWD, XBOOLFWD, XOBJFWD, XOVERLAY)
16801 (XBUFFER_OBJFWD, XBUFFER_LOCAL_VALUE, XKBOARD_OBJFWD, XSAVE_VALUE):
16802 Add type checks.
16803 (SOME_BUFFER_LOCAL_VALUEP, GC_SOME_BUFFER_LOCAL_VALUEP): Remove.
16804
16805 * alloc.c (free_misc): Use XMISCTYPE.
16806 (live_misc_p, gc_sweep): Use Lisp_Misc_Any.
16807
168082007-10-17 Glenn Morris <rgm@gnu.org>
16809
16810 * minibuf.c (Qcompletion_ignore_case): New Lisp_Object.
16811 (syms_of_minibuf): Add Qcompletion_ignore_case.
16812 * dired.c (Qcompletion_ignore_case): Change to external.
16813 (syms_of_dired) [VMS]: Remove Qcompletion_ignore_case.
16814 * fileio.c (Qcompletion_ignore_case): New external Lisp_Object.
16815 (Fread_file_name): Use it rather than intern'ing.
16816
16817 * coding.c (Qcompletion_ignore_case): New external Lisp_Object.
16818 (Fread_coding_system): Ignore case of user input.
16819
168202007-10-16 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
16821
16822 * xdisp.c (handle_display_prop): Ignore display specs after
16823 replacing one when string text is being replaced.
16824 (handle_single_display_spec): Pretend as if characters with display
16825 property haven't been consumed only when buffer text is being replaced.
16826
168272007-10-16 Stefan Monnier <monnier@iro.umontreal.ca>
16828
16829 * xfns.c (Fx_create_frame, Fx_display_list):
16830 * window.c (window_fixed_size_p, enlarge_window)
16831 (shrink_window_lowest_first):
16832 * macterm.c (init_font_name_table):
16833 * macfns.c (Fx_create_frame, Fx_display_list):
16834 * lread.c (close_load_descs):
16835 * keyboard.c (read_char_x_menu_prompt):
16836 * fns.c (Fmember, Fmemql, Fdelete, Fset_char_table_parent):
16837 * coding.c (code_convert_region_unwind): Test the type of an object
16838 rather than just !NILP before extracting data from it.
16839
16840 * alloc.c (Fpurecopy): Set the pvec tag on pseudo vectors.
16841
16842 * lisp.h (enum Lisp_Misc_Type): Del Lisp_Misc_Some_Buffer_Local_Value.
16843 (XMISCANY): New macro.
16844 (XMISCTYPE): Use it.
16845 (struct Lisp_Misc_Any): New type.
16846 (union Lisp_Misc): Use it.
16847 (struct Lisp_Buffer_Local_Value): Add `local_if_set' bit.
16848 * data.c (Fboundp, store_symval_forwarding, swap_in_global_binding)
16849 (find_symbol_value, set_internal, default_value, Fset_default)
16850 (Fmake_variable_buffer_local, Fmake_local_variable)
16851 (Fkill_local_variable, Fmake_variable_frame_local, Flocal_variable_p)
16852 (Flocal_variable_if_set_p, Fvariable_binding_locus):
16853 The SOME_BUFFER_LOCAL_VALUEP distinction is replaced by local_if_set.
16854 * alloc.c (allocate_buffer): Set the size and tag.
16855 (allocate_misc, mark_maybe_object, mark_object, survives_gc_p):
16856 Use XMISCANY.
16857 (die): Follow the GNU convention for error messages.
16858 * print.c (print_object): SOME_BUFFER_LOCAL_VALUEP -> local_if_set.
16859 * buffer.c (Fget_buffer_create, Fmake_indirect_buffer): Don't set the
16860 tag any more.
16861 (set_buffer_internal_1):
16862 * frame.c (store_frame_param):
16863 * eval.c (specbind):
16864 * xdisp.c (select_frame_for_redisplay): Drop SOME_BUFFER_LOCAL_VALUEP.
16865
16866 * doc.c (Fsnarf_documentation): Simplify.
16867
168682007-10-14 Juanma Barranquero <lekktu@gmail.com>
16869
16870 * w32term.c (w32_font_is_double_byte, my_create_scrollbar): Make static.
16871 (syms_of_w32term) <w32-enable-unicode-output>: Fix typo in docstring.
16872
168732007-10-14 Stefan Monnier <monnier@iro.umontreal.ca>
16874
16875 * buffer.c (Fmake_indirect_buffer): Set the buffer's tag.
16876
168772007-10-14 Juanma Barranquero <lekktu@gmail.com>
16878
16879 * eval.c (do_autoload): Don't save autoloads.
16880
16881 * data.c (Ffset): Save autoload of the function being set.
16882
168832007-10-07 John Paul Wallington <jpw@pobox.com>
16884
16885 * xfns.c (x_create_tip_frame): Set the `display-type' frame
16886 parameter before setting up faces.
16887
168882007-10-13 Eli Zaretskii <eliz@gnu.org>
16889
16890 * ccl.c (Fregister_code_conversion_map):
16891 * keyboard.c (append_tool_bar_item): Reformat last change.
16892
16893 * lisp.h (eabs): Rename from `abs'. All callers changed.
16894
168952007-10-05 Dmitry Antipov <dmantipov@yandex.ru>
16896
16897 * buffer.c (add_overlay_mod_hooklist):
16898 * ccl.c (Fregister_ccl_program, Fregister_code_conversion_map):
16899 * fontset.c (make_fontset):
16900 * keyboard.c (GROW_RAW_KEYBUF, menu_bar_items, menu_bar_item)
16901 (append_tool_bar_item):
16902 * macmenu.c (grow_menu_items):
16903 * w32menu.c (grow_menu_items):
16904 * xmenu.c (grow_menu_items): Use larger_vector.
16905
169062007-10-13 Eli Zaretskii <eliz@gnu.org>
16907
16908 * msdos.c (dos_rawgetc): Undo last change (there's no ``leaving
16909 selected frame'' on MSDOS).
16910
169112007-10-12 Martin Rudalics <rudalics@gmx.at>
16912
16913 * frame.c (Qexplicit_name): New variable.
16914 (x_report_frame_params): Report it in parameter alist.
16915 (syms_of_frame): Intern and staticpro it.
16916
169172007-10-10 Patrick Mahan <mahan@mahan.org> (tiny change)
16918
16919 * macfns.c (x_create_tip_frame): Set terminal for frame.
16920
169212007-10-10 Stefan Monnier <monnier@iro.umontreal.ca>
16922
16923 * frame.c (Qenvironment): Remove.
16924 (syms_of_frame) <Qenvironment>: Don't initialize.
16925 (Fdelete_frame): Don't treat the `environment' param specially.
16926 * frame.h (Qenvironment): Don't declare.
16927 * callproc.c (set_initial_environment): Don't set unused frame param.
16928
16929 * frame.c (Fframe_with_environment): Remove.
16930 (syms_of_frame) <Sframe_with_environment>: Don't declare.
16931
16932 * lisp.h (Fframe_with_environment): Don't declare.
16933
169342007-10-10 Juanma Barranquero <lekktu@gmail.com>
16935
16936 * indent.c (indent_tabs_mode, last_known_column)
16937 (last_known_column_modified): Make static.
16938 (syms_of_indent) <indent-tabs-mode>: Remove redundant info in docstring.
16939
169402007-10-10 Katsumi Yamaoka <yamaoka@jpl.org>
16941
16942 * puresize.h (BASE_PURESIZE): Increase to 1170000.
16943
169442007-10-09 Jason Rumney <jasonr@gnu.org>
16945
16946 * w32term.c (x_set_window_size): Disable code that attempts to tell
16947 Lisp code about a size change before it actually happens.
16948
169492007-10-09 Richard Stallman <rms@gnu.org>
16950
16951 * xdisp.c (handle_invisible_prop): After setting up an ellipsis,
16952 return HANDLED_RETURN.
16953
169542007-10-08 Martin Rudalics <rudalics@gmx.at>
16955
16956 * keyboard.c (kbd_buffer_get_event): Break loop waiting for input
16957 when there's an unread command event.
16958
16959 * frame.c (focus_follows_mouse): Move here from frame.el to allow
16960 window autoselection act appropriately when leaving selected frame.
16961 (syms_of_frame): Initialize focus_follows_mouse.
16962 * frame.h (focus_follows_mouse): Extern it.
16963 * macterm.c (XTread_socket): When focus_follows_mouse is nil
16964 make SELECT_WINDOW_EVENT only if we don't leave the selected frame.
16965 * msdos.c (dos_rawgetc): Likewise.
16966 * w32term.c (w32_read_socket): Likewise.
16967 * xterm.c (handle_one_xevent): Likewise.
16968 * xdisp.c (syms_of_xdisp): In doc-string of
16969 mouse-autoselect-window mention focus-follows-mouse.
16970
169712007-10-08 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
16972
16973 * macterm.c (mac_load_query_font): Fix missing return value.
16974 [USE_CG_DRAWING] (mac_define_fringe_bitmap, mac_destroy_fringe_bitmap):
16975 Add BLOCK_INPUT.
16976
169772007-10-08 Richard Stallman <rms@gnu.org>
16978
16979 * xdisp.c (get_window_cursor_type): Implement documented behavior
16980 for cursor-in-non-selected-windows = t.
16981
169822007-10-08 Jason Rumney <jasonr@gnu.org>
16983
16984 * w32.c (w32_get_resource): Always close registry keys.
16985
169862007-10-08 Jason Rumney <jasonr@gnu.org>
16987
16988 * makefile.w32-in (LIBS): Add COMCTL32.
16989
16990 * w32fns.c (globals_of_w32fns): Init common controls.
16991
169922007-10-08 Richard Stallman <rms@gnu.org>
16993
16994 * image.c (our_memory_buffer): Rename from omfib_buffer.
16995
169962007-10-08 Richard Stallman <rms@gnu.org>
16997
16998 * buffer.c (Foverlays_at): Doc fix.
16999
170002007-10-08 Stefan Monnier <monnier@iro.umontreal.ca>
17001
17002 * fns.c (Fplist_put): Preserve uneven tail data.
17003
170042007-10-08 Peter O'Gorman <bug-gnu-emacs@mlists.thewrittenword.com> (tiny change)
17005
17006 * termhooks.h (enum event_kind): Remove trailing comma.
17007
17008 * frame.h (enum): Remove trailing comma.
17009
170102007-10-08 Dhruva Krishnamurthy <dhruvakm@gmail.com> (tiny change)
17011
17012 * w32proc.c (delete_child): Don't terminate threads of zombies.
17013
170142007-10-08 Martin Rudalics <rudalics@gmx.at>
17015
17016 * keyboard.h (struct kboard): New elt Vlast_repeatable_command.
17017
17018 * keyboard.c (syms_of_keyboard): Set up new Lisp variable
17019 last-repeatable-command.
17020 (init_kboard): Initialize Vlast_repeatable_command.
17021 (command_loop_1): Set it to real_this_command unless that was
17022 bound to an input event.
17023 (mark_kboards): Mark it.
17024
170252007-10-08 Richard Stallman <rms@gnu.org>
17026
17027 * eval.c (condition-case): Doc fix.
17028
170292007-10-08 Masatake YAMATO <jet@gyve.org>
17030
17031 * xfaces.c (tty_supports_face_attributes_p): Fix code
17032 for LFACE_INVERSE_INDEX and LFACE_BACKGROUND_INDEX; code
17033 was copied and not edited.
17034
170352007-10-09 Stefan Monnier <monnier@iro.umontreal.ca>
17036
17037 Add new `input-decode-map' keymap and use it for terminal
17038 escape sequences.
17039 * keyboard.h (struct kboard): Add Vinput_decode_map.
17040 Remove Vlocal_key_translation_map.
17041 * keyboard.c (read_key_sequence): Add support for input-decode-map.
17042 (init_kboard): Init input-decode-map.
17043 Replace local-key-translation-map back with key-translation-map.
17044 (syms_of_keyboard): Declare input-decode-map.
17045 Remove local-key-translation-map. Update docstrings.
17046 (mark_kboards): Mark Vinput_decode_map.
17047 Don't mark Vlocal_key_translation_map.
17048 * keymap.c (Fdescribe_buffer_bindings): Describe input-decode-map.
17049 Replace local-key-translation-map back with key-translation-map.
17050 * term.c (term_get_fkeys_1, CONDITIONAL_REASSIGN):
17051 Bind in input-decode-map rather than function-key-map.
17052
17053 * lisp.h (XSETPSEUDOVECTOR): Don't set the tag anymore.
17054 This was made redundant by the previous introduction of XSETPVECTYPE.
17055
170562007-10-09 Richard Stallman <rms@gnu.org>
17057
17058 * image.c (free_bitmap_record): Rename from Free_Bitmap_Record.
17059
170602007-09-29 Richard Stallman <rms@gnu.org>
17061
17062 * eval.c (internal_condition_case_2, internal_condition_case_1)
17063 (internal_condition_case): Reenable abort if x_catching_errors ()
17064 to see if that really happens and why.
17065
170662007-10-06 Andreas Schwab <schwab@suse.de>
17067
17068 * fileio.c (Fwrite_region): Ignore EINVAL error from fsync.
17069
170702007-10-04 Juanma Barranquero <lekktu@gmail.com>
17071
17072 * image.c (syms_of_image) <image-types>: Fix typo in docstring.
17073
170742007-10-03 Stefan Monnier <monnier@iro.umontreal.ca>
17075
17076 * frame.h (struct frame): Don't try to GC-mark menu_bar_items_used.
17077
170782007-10-02 Stefan Monnier <monnier@iro.umontreal.ca>
17079
17080 * window.h (struct window):
17081 * window.c (struct save_window_data, struct saved_window):
17082 * termhooks.h (struct terminal):
17083 * process.h (struct Lisp_Process):
17084 * frame.h (struct frame):
17085 * buffer.h (struct buffer):
17086 * lisp.h (struct Lisp_Vector, struct Lisp_Char_Table)
17087 (struct Lisp_Bool_Vector, struct Lisp_Subr, struct Lisp_Hash_Table):
17088 The size field of (pseudo)vectors is now unsigned.
17089 (ARRAY_MARK_FLAG, PSEUDOVECTOR_FLAG): Simplify accordingly.
17090
17091 * lisp.h (struct Lisp_Hash_Table): Move non-traced elements at the end.
17092 Turn `count' into an integer.
17093
17094 * fns.c (make_hash_table, hash_put, hash_remove, hash_clear)
17095 (sweep_weak_table, sweep_weak_hash_tables, Fhash_table_count):
17096 * print.c (print_object) <HASH_TABLE_P>: `count' is an int.
17097 * alloc.c (allocate_hash_table): Use ALLOCATE_PSEUDOVECTOR.
17098 (mark_object) <HASH_TABLE_P>: Use mark_vectorlike.
17099
17100 * alloc.c (allocate_pseudovector): New fun.
17101 (ALLOCATE_PSEUDOVECTOR): New macro.
17102 (allocate_window, allocate_terminal, allocate_frame)
17103 (allocate_process): Use it.
17104 (mark_vectorlike): New function.
17105 (mark_object) <FRAMEP, WINDOWP, BOOL_VECTOR_P, VECTORP>: Use it.
17106 (mark_terminals): Use it.
17107 (Fmake_bool_vector, Fmake_char_table, make_sub_char_table)
17108 (Fmake_byte_code): Use XSETPVECTYPE.
17109
17110 * frame.c (Fframe_parameters): Minor simplification.
17111
17112 * insdel.c (adjust_markers_for_insert): Generalize assertion checks.
17113
17114 * marker.c (Fmarker_buffer): Make test for odd case into a failure.
17115
17116 * buffer.c (Fget_buffer_create, init_buffer_once):
17117 * lread.c (defsubr):
17118 * window.c (Fcurrent_window_configuration): Use XSETPVECTYPE.
17119
17120 * lisp.h (ARRAY_MARK_FLAG, PSEUDOVECTOR_FLAG): Don't let them be
17121 defined differently in the m/*.h files.
17122 (XCHAR_TABLE, XBOOL_VECTOR): Add assertion checking.
17123 (XSETPVECTYPE): New macro.
17124 (XSETPSEUDOVECTOR): Use it.
17125
17126 * buffer.c (syms_of_buffer) <local-abbrev-table>: Move from abbrev.c.
17127 (DEFVAR_PER_BUFFER, defvar_per_buffer): Move from lisp.h and lread.c.
17128
17129 * lisp.h (defvar_per_buffer, DEFVAR_PER_BUFFER):
17130 * lread.c (defvar_per_buffer):
17131 * abbrev.c (syms_of_abbrev) <local-abbrev-tabl>: Move to buffer.c.
17132
17133 * window.c (candidate_window_p): Only consider as visible frames that
17134 are on the same terminal.
17135
17136 * m/ibms390x.h (MARKBIT): Remove unused macro.
17137
171382007-10-01 Juanma Barranquero <lekktu@gmail.com>
17139
17140 * lread.c (Fload): Fix typo in docstring.
17141
171422007-10-01 Michaël Cadilhac <michael@cadilhac.name>
17143
17144 * floatfns.c (Fexpt): Manually check for overflows, so that a power
17145 of a non-zero value can't yield zero.
17146
171472007-09-29 Stefan Monnier <monnier@iro.umontreal.ca>
17148
17149 * term.c (term_clear_mouse_face, term_mouse_highlight)
17150 (tty_write_glyphs_with_face): Only define is HAVE_GPM.
17151
17152 * print.c (safe_debug_print): Use XHASH.
17153
17154 * lisp.h (DECL_ALIGN, USE_LSB_TAG): Move logic to before definition of
17155 Lisp elements such as tags.
17156 (XHASH): New macro.
17157 (EQ): Use it.
17158 (SREF, SSET, STRING_COPYIN): Use SDATA.
17159 (VOID_TO_LISP, CVOID_TO_LISP, LISP_TO_VOID, LISP_TO_CVOID): Remove.
17160
17161 * alloc.c (mark_terminal): Remove left-over declaration.
17162 (enum mem_type): Replace all vector subtypes -> MEM_TYPE_VECTORLIKE.
17163 (allocate_vectorlike): Remove type argument. Adjust callers.
17164 (live_vector_p, mark_maybe_pointer, valid_lisp_object_p):
17165 Only handle the one remaining MEM_TYPE_VECTORLIKE.
17166
17167 * alloc.c (MALLOC_BLOCK_INPUT, MALLOC_UNBLOCK_INPUT): New macros
17168 to avoid unnecessary BLOCK_INPUTs when SYNC_INPUT is used.
17169 (xmalloc, xrealloc, xfree, lisp_malloc, lisp_free, lisp_align_malloc)
17170 (lisp_align_free, make_interval, allocate_string, allocate_string_data)
17171 (make_float, Fcons, allocate_vectorlike, Fmake_symbol, allocate_misc):
17172 Use them.
17173
17174 * xfaces.c (load_face_font, free_realized_face, clear_face_gcs):
17175 Don't let signal handlers run when a GC is freed but not yet NULL'ed.
17176 (x_free_gc): Remove BLOCK_INPUT since it's now redundant.
17177
171782007-09-28 Dan Nicolaescu <dann@ics.uci.edu>
17179
17180 * Makefile.in (lisp, shortlisp): Delete server.elc, it is not
17181 loaded by default.
17182
171832007-09-28 Stefan Monnier <monnier@iro.umontreal.ca>
17184
17185 * term.c (Fgpm_mouse_start): Don't signal an error if already activated
17186 on this tty.
17187 (Fgpm_mouse_stop): Only deactivate if it was activated on this tty.
17188
17189 * term.c (mouse_face_window): Rename from Qmouse_face_window.
17190 Update all users.
17191 (handle_one_term_event): Use Gpm_DrawPointer.
17192 (Fgpm_mouse_start): Rename from Fterm_open_connection.
17193 Signal errors instead of returning nil. Always return nil.
17194 (Fgpm_mouse_stop): Rename from Fterm_close_connection.
17195 Make it a noop if gpm-mouse was not activated.
17196 (syms_of_term): Update names.
17197
171982007-09-27 Stefan Monnier <monnier@iro.umontreal.ca>
17199
17200 * sysdep.c (narrow_foreground_group, widen_foreground_group): Static.
17201 (init_sys_modes): Check that gpm_tty is the current tty.
17202
17203 * alloc.c (allocate_terminal): Set the vector size to only count the
17204 lisp fields. Initialize those to nil.
17205 (mark_object): Don't treat terminals specially.
17206 (mark_terminal): Remove.
17207 (mark_terminals): Use mark_object instead.
17208
17209 * termhooks.h (struct terminal): Move all Lisp_Object fields traced by
17210 the GC to the beginning.
17211
17212 * indent.h:
17213 * indent.c: Use EMACS_INT for ints coming from Elisp data.
17214
17215 * indent.c (Fmove_to_column): Use EMACS_INT for buffer positions.
17216
172172007-09-25 Jason Rumney <jasonr@gnu.org>
17218
17219 * frame.c (make_terminal_frame): Remove special case for WINDOWSNT.
17220
17221 * w32console.c (create_w32cons_output): Remove.
17222
17223 * term.c (init_tty): Call init_sys_modes on WINDOWSNT also.
17224
17225 * sysdep.c (init_sys_modes): Use set_terminal_modes_hook.
17226 (reset_sys_modes): Use reset_terminal_modes_hook.
17227
172282007-09-24 Stefan Monnier <monnier@iro.umontreal.ca>
17229
17230 * eval.c (do_autoload): Don't output any message.
17231
172322007-09-24 Juri Linkov <juri@jurta.org>
17233
17234 * emacs.c (standard_args): Change priority of "--no-splash"
17235 from 40 to 3. Add "--no-desktop" with the same priority.
17236
172372007-09-23 Dmitry Antipov <dmantipov@yandex.ru>
17238
17239 * alloc.c (gc_sweep): Check cons cell mark bits word by word
17240 and optimize the case where they are all 1.
17241
172422007-09-23 Johannes Weiner <hannes@saeurebad.de>
17243
17244 * lisp.h (abs): Define if not defined.
17245 * keyboard.c, sound.c, w32term.c, xfaces.c, xterm.c:
17246 Don't define `abs', since it's defined in lisp.h.
17247
172482007-09-22 Eli Zaretskii <eliz@gnu.org>
17249
17250 * term.c (DEV_TTY): New macro. Provide a definition for MS-Windows.
17251 (FRAME_TERMCAP_P) [WINDOWSNT]: Don't define to zero.
17252 (Fcontrolling_tty_p, Fresume_tty, dissociate_if_controlling_tty)
17253 (init_tty): Use DEV_TTY instead of "/dev/tty".
17254 [WINDOWSNT]: No need to protect from NAME arg being null.
17255
172562007-09-21 Dan Nicolaescu <dann@ics.uci.edu>
17257
17258 * term.c (Fsuspend_tty): Run suspend-tty-functions before cleaning
17259 up the tty state.
17260
172612007-09-21 Stefan Monnier <monnier@iro.umontreal.ca>
17262
17263 * termhooks.h (term_gpm): Delete. Use gpm_tty's NULLness instead.
17264 (gpm_tty): Change its type.
17265 * term.c (term_gpm): Delete. Use gpm_tty's NULLness instead.
17266 (gpm_tty): Change its type and initialize it.
17267 (Fterm_open_connection): Check the frame is indeed a tty.
17268 Use the new gpm_tty.
17269 (Fterm_close_connection): Use the new gpm_tty.
17270 * keyboard.c (tty_read_avail_input): Use the new gpm_tty.
17271 * sysdep.c (init_sys_modes): term_gpm -> gpm_tty.
17272
172732007-09-21 Juanma Barranquero <lekktu@gmail.com>
17274
17275 * w32term.c (x_draw_glyph_string): Use strike_through_color, not
17276 underline_color, to draw strike-through.
17277
172782007-09-21 Stefan Monnier <monnier@iro.umontreal.ca>
17279
17280 * lisp.h (allocate_terminal): Declare.
17281
17282 * window.c (candidate_window_p): Consider frames that are being placed
17283 by the user as somewhere between visible and iconified.
17284 (window_loop): Prefer windows on the current frame.
17285 (Fselect_window): Move the use of select-frame to the beginning so we
17286 can just delegate all the work (it'll call us back anyway).
17287
17288 * frame.c (Qdisplay_environment_variable):
17289 * frame.h (Qdisplay_environment_variable): Delete.
17290
17291 * .gdbinit (xbacktrace): Print the arg's address rather than the value
17292 of the first arg, since that value may be a union.
17293
17294 * callproc.c (child_setup, getenv_internal): Use the frame's `display'
17295 parameter rather than Qdisplay_environment_variable. If all else
17296 fails, look for DISPLAY in initial-environment.
17297
172982007-09-21 Glenn Morris <rgm@gnu.org>
17299
17300 * Makefile.in (emacstool): Remove target.
17301 (lisp, shortlisp): Remove termdev.elc.
17302
173032007-09-21 Markus Triska <markus.triska@gmx.at>
17304
17305 * xterm.c (x_delete_display): Compile session management conditionally.
17306
173072007-09-20 Stefan Monnier <monnier@iro.umontreal.ca>
17308
17309 * callproc.c (getenv_internal_1): New function.
17310 (getenv_internal): Use it.
17311 (Fgetenv_internal): Use it. Accept an env-list as optional arg.
17312
17313 * terminal.c (get_terminal): Don't accept ints to represent terminals.
17314 (Fterminal_name, Fterminal_parameters, Fterminal_parameter)
17315 (Fset_terminal_parameter): Work with dead terminals as well.
17316 (Fmodify_terminal_parameters): Remove.
17317
17318 * terminal.c (get_terminal): Handle terminals.
17319 Make sure the terminal returned is live.
17320 (create_terminal): Use allocate_terminal.
17321 (mark_terminals): Move to alloc.c.
17322 (delete_terminal): Use terminal->name as liveness status.
17323 NULL out fields after freeing their contents.
17324 Don't deallocate the object.
17325 (Fframe_terminal): Use FRAME_TERMINAL. Return the terminal object
17326 rather than an int.
17327 (Fterminal_live_p): Accept non-integer arguments.
17328 (Fterminal_list): Return terminal objects rather than an ints.
17329
17330 * alloc.c (enum mem_type): New member for `terminal' objects.
17331 (allocate_terminal): New function.
17332 (mark_maybe_pointer, valid_lisp_object_p, mark_object):
17333 Handle terminals.
17334 (mark_terminal): New fun.
17335 (mark_terminals): Move from terminal.c.
17336
17337 * term.c (get_tty_terminal): Don't treat output_initial specially.
17338 (Fsuspend_tty, Fresume_tty): Use terminal objects rather than ints.
17339 (delete_tty): Use terminal->name as liveness status.
17340
17341 * termhooks.h (struct terminal): Make it into a pseudovector.
17342 Remove `deleted' replaced by checking `name's nullness.
17343
17344 * print.c (print_object): Handle terminals.
17345
17346 * lisp.h (enum pvec_type): New `terminal' pseudovector.
17347 (XTERMINAL, XSETTERMINAL, TERMINALP, GC_TERMINALP): New macros.
17348
17349 * frame.c (make_terminal_frame):
17350 * keyboard.c (tty_read_avail_input):
17351 * w32term.c (x_delete_terminal):
17352 * xfns.c (Fx_create_frame, x_create_tip_frame):
17353 * xterm.c (x_delete_terminal): Use terminal->name as liveness status.
17354
173552007-09-20 Glenn Morris <rgm@gnu.org>
17356
17357 * process.c (Fmake_network_process): Doc fix.
17358
173592007-09-19 Jason Rumney <jasonr@gnu.org>
17360
17361 * dispextern.h (w32_init_fringe, mac_init_fringe): Declare rif argument.
17362
173632007-09-19 Michaël Cadilhac <michael@cadilhac.name>
17364
17365 * coding.c (detect_eol_type, detect_eol_type_in_2_octet_form):
17366 Fix a C warning regarding variable constness.
17367
17368 * xterm.c (handle_one_xevent): Fix a C warning.
17369
173702007-09-18 Jason Rumney <jasonr@gnu.org>
17371
17372 * w32fns.c (Fx_focus_frame): Rename from Fw32_focus_frame.
17373
173742007-09-17 Jan Djärv <jan.h.d@swipnet.se>
17375
17376 * gtkutil.c (gdpy_def): New variable.
17377 (xg_initialize): Initialize gdpy_def.
17378 (xg_display_close): If no other display exists, set gdpy_def to a
17379 new connection.
17380
173812007-09-16 Jan Djärv <jan.h.d@swipnet.se>
17382
17383 * gtkutil.c (xg_get_image_for_pixmap): Always create a GdkPixbuf
17384 when we have no file name for the icon.
17385 (xg_tool_bar_expose_callback): Remove.
17386 (xg_create_tool_bar): Don't connect expose signal to
17387 xg_tool_bar_expose_callback.
17388 (xg_get_file_with_chooser): Move GCPRO1 after declarations.
17389
173902007-09-16 Andreas Schwab <schwab@suse.de>
17391
17392 * alloc.c (reset_malloc_hooks): Set the hooks to the previous
17393 values instead of zapping them.
17394
173952007-09-14 Glenn Morris <rgm@gnu.org>
17396
17397 * fringe.c (init_fringe_bitmap) <swap_nibble>: Move to file scope.
17398 * gtkutil.c (xg_separator_p) <separator_names>: Move to file scope.
17399 * image.c (our_memory_fill_input_buffer) <buffer>: Move to file
17400 scope and rename to omfib_buffer for clarity.
17401 (gif_load) <interlace_start, interlace_increment>: Move to file scope.
17402
174032007-09-14 Kenichi Handa <handa@m17n.org>
17404
17405 * xterm.c (handle_one_xevent): Skip decoding if nbytes is zero.
17406
174072007-09-13 Jason Rumney <jasonr@gnu.org>
17408
17409 * fringe.c (w32_init_fringe, mac_init_fringe): Add rif argument.
17410
17411 * w32term.c (w32_term_init): Pass rif to w32_init_fringe.
17412
17413 * macterm.c (mac_initialize): Don't call mac_init_fringe here.
17414 (mac_term_init): Call here instead, passing rif.
17415
174162007-09-13 Glenn Morris <rgm@gnu.org>
17417
17418 * s/hpux.h: No longer define `static' as nothing.
17419
174202007-09-13 Johan Bockgård <bojohan@gnu.org>
17421
17422 * callint.c (Fcall_interactively): Remove unused var `fun'.
17423
174242007-09-12 Romain Francoise <romain@orebokech.com>
17425
17426 * window.c (prefer_window_split_horizontally, display_buffer):
17427 Revert 2007-09-08 change.
17428
174292007-09-12 Glenn Morris <rgm@gnu.org>
17430
17431 * alloca.c: Remove file.
17432 * Makefile.in (alloca): Do not undef.
17433 (allocaobj, alloca.o): Remove.
17434 (otherobj): Remove allocaobj.
17435 * keyboard.c (command_loop_1): Remove #ifdef C_ALLOCA block.
17436 * regex.c (C_ALLOCA): Remove all references and code that was only
17437 used when this was defined.
17438 * search.c (boyer_moore): Remove #ifdef C_ALLOCA block.
17439 * xmenu.c (xmenu_show): Remove #ifdef C_ALLOCA block.
17440 * m/ibms390x.h, m/sh3el.h (C_ALLOCA): Remove references to this.
17441
17442 * Makefile.in (SOURCES, unlock, relock): Delete.
17443
17444 * gtkutil.c (cnt): Rename to menu_grab_callback_cnt for clarity.
17445 (menu_grab_callback): All uses changed.
17446
17447 * xselect.c (cnt): Rename to x_reply_selection_request_cnt for clarity.
17448 (x_reply_selection_request): All uses changed.
17449
174502007-09-11 Stefan Monnier <monnier@iro.umontreal.ca>
17451
17452 * lread.c (load_warn_old_style_backquotes): Change message to look
17453 better when it appears in the middle of byte-compiler messages.
17454
174552007-09-10 Dan Nicolaescu <dann@ics.uci.edu>
17456
17457 * s/darwin.h (MULTI_KBOARD): Only define for Carbon.
17458
17459 * xterm.c (x_create_terminal): Add comment.
17460
17461 * term.c (clear_tty_hooks, set_tty_hooks): Add comments.
17462
174632007-09-10 Richard Stallman <rms@gnu.org>
17464
17465 * xterm.c (x_term_init): Give error if can't open DISPLAY_NAME.
17466
174672007-09-10 Michaël Cadilhac <michael@cadilhac.name>
17468
17469 * lisp.h (struct Lisp_Subr): Rename `prompt' field to `intspec'.
17470 (DEFUN): Document `intspec', use it instead of `prompt'.
17471
17472 * eval.c (Fcommandp): Change `->prompt' to `->intspec'.
17473
17474 * data.c (Finteractive_form): If the interactive specification starts
17475 with a `(', use it as a Lisp form.
17476
17477 * fileio.c (Fset_file_modes): Add an interactive spec that reads a file
17478 name and file modes.
17479
17480 * callint.c (Fcall_interactively): Comment fixes.
17481
174822007-09-10 Stefan Monnier <monnier@iro.umontreal.ca>
17483
17484 * callint.c (Fcall_interactively): Use Finteractive_form also for subrs
17485 and compiled functions.
17486
174872007-09-08 Fredrik Axelsson <f.axelsson@gmail.com>
17488
17489 * window.c (prefer_window_split_horizontally): New variable.
17490 (display_buffer): Consider splitting window horizontally depending
17491 on prefer_window_split_horizontally.
17492
174932007-09-08 Eli Zaretskii <eliz@gnu.org>
17494
17495 * sysdep.c [WINDOWSNT]: Don't include sysselect.h.
17496
174972007-09-07 Stefan Monnier <monnier@iro.umontreal.ca>
17498
17499 * s/cygwin.h (GC_MARK_STACK): Enable conservative stack marking.
17500
17501 * frame.c (x_set_frame_parameters): Check number is positive before
17502 using XFASTINT.
17503
17504 * window.c (freeze_window_start): Don't presume selected_window holds
17505 a window object.
17506 (Fdisplay_buffer): Remove `register' since `buffer' needs to be gcpro'd.
17507
175082007-09-07 Angelo Graziosi <Angelo.Graziosi@roma1.infn.it> (tiny change)
17509
17510 * term.c (dissociate_if_controlling_tty): Call setsid on CYGWIN.
17511
175122007-09-07 Stefan Monnier <monnier@iro.umontreal.ca>
17513
17514 * window.c (Vsplit_window_preferred_function): New var.
17515 (Fdisplay_buffer): Use it.
17516 (syms_of_window): Export, and initialize it.
17517
175182007-09-06 Pixel <pixel@mandriva.com> (tiny change)
17519
17520 * image.c (gif_load): Fix bug: Handle nonexistent colormap.
17521
175222007-09-06 Glenn Morris <rgm@gnu.org>
17523
17524 * gtkutil.c (menu_grab_callback) <cnt>:
17525 * xselect.c (x_reply_selection_request) <cnt>: Move static
17526 variable to file scope.
17527
175282007-09-06 Stefan Monnier <monnier@iro.umontreal.ca>
17529
17530 * xdisp.c (redisplay_internal): Make sure Elisp code always sees
17531 consistent values of selected_frame and selected_window.
17532
175332007-09-04 Jason Rumney <jasonr@gnu.org>
17534
17535 * w32console.c (initialize_w32_display): Zero unused hooks.
17536
175372007-09-04 Dan Nicolaescu <dann@ics.uci.edu>
17538
17539 * term.c (Vsuspend_tty_functions, Vresume_tty_functions)
17540 (syms_of_term, Fsuspend_tty, Fresume_tty): Undo previous change.
17541
175422007-09-04 Jason Rumney <jasonr@gnu.org>
17543
17544 * term.c (init_tty) [WINDOWSNT]: Add hooks that are not accessible
17545 in w32console.c. Set up input. Remove XXX comments that have been
17546 confirmed as correct.
17547
17548 * s/ms-w32.h (MULTI_KBOARD): Define.
17549
17550 * w32console.c (one_and_only_w32cons): Remove.
17551 (initialize_w32_display): Take terminal argument.
17552
17553 * term.c (init_tty) [WINDOWSNT]: Pass terminal to
17554 initialize_w32_display.
17555 (init_tty) [MULTI_KBOARD]: Include this code on WINDOWSNT too.
17556
17557 * termhooks.h (enum event_kind) <HORIZ_WHEEL_EVENT>: New event.
17558
17559 * keyboard.c (discard_mouse_events): Discard it.
17560 (make_lispy_event): Translate it to a lisp event.
17561 (lispy_wheel_names): Add wheel-left and right events.
17562 (syms_of_keyboard): Enlarge wheel_syms.
17563
17564 * w32fns.c (w32_wnd_proc) <WM_DROPFILES>: Merge with WM_MOUSEWHEEL.
17565 <WM_MOUSEHWHEEL>: Pass new system message to lisp.
17566
17567 * w32term.h (WM_MOUSEHWHEEL): Define if system headers don't.
17568
17569 * w32term.c (construct_mouse_wheel): Make HORIZ_WHEEL_EVENT
17570 from WM_MOUSEHWHEEL.
17571 (w32_read_socket) <WM_MOUSEHWHEEL>: Treat as WM_MOUSEWHEEL.
17572
17573 * w32fns.c (x_create_tip_frame) [MULTI_KBOARD]: Get keyboard from
17574 terminal.
17575
17576 * w32term.c (w32_create_terminal) [MULTI_KBOARD]: Create a new
17577 keyboard for the terminal.
17578
175792007-09-04 Dan Nicolaescu <dann@ics.uci.edu>
17580
17581 * term.c (Vsuspend_tty_hook): Rename from Vsuspend_tty_functions.
17582 (Vresume_tty_hook): Rename from Vresume_tty_functions.
17583 (syms_of_term): Rename suspend-tty-functions to suspend-tty-hook
17584 and resume-tty-function to resume-tty-hook.
17585 (Fsuspend_tty, Fresume_tty): Use new names.
17586
175872007-09-02 Jan Djärv <jan.h.d@swipnet.se>
17588
17589 * gtkutil.c (update_frame_tool_bar): Handle stock name as a named icon
17590 if it starts with "n:".
17591
175922007-08-31 Jan Djärv <jan.h.d@swipnet.se>
17593
17594 * gtkutil.c (update_frame_tool_bar): Initialize wbutton to NULL.
17595
175962007-08-31 Stefan Monnier <monnier@iro.umontreal.ca>
17597
17598 * frame.h:
17599 * frame.c (Qterm_environment_variable): Remove.
17600 (syms_of_frame): Don't init and staticpro it.
17601
17602 * callproc.c (getenv_internal): Remove special case for $TERM.
17603
17604 * callproc.c (Vinitial_environment): New variable.
17605 (set_initial_environment): Initialize it.
17606 (syms_of_callproc): Declare it.
17607 (child_setup): Don't mess with TERM via Qterm_environment_variable; the
17608 TERM under which a process runs is never related to the TERM in which
17609 Emacs is running.
17610
176112007-08-29 Dan Nicolaescu <dann@ics.uci.edu>
17612
17613 * config.in (HAVE_WINDOW_SYSTEM): Don't undef MULTI_KBOARD here...
17614 * s/darwin.h: ... do it here.
17615
176162007-08-29 Stefan Monnier <monnier@iro.umontreal.ca>
17617
17618 * lisp.h (set_initial_environment): Rename from set_global_environment.
17619
17620 * Makefile.in (${etc}DOC): Re-add a ${EXEEXT} which seems to have been
17621 removed by mistake on the multi-tty branch.
17622
17623 * frame.c (make_terminal_frame): Yet Another Int/Lisp_Object Mixup.
17624 (Fmodify_frame_parameters): Return a value.
17625
17626 * image.c (png_load): Comment-out var only used in commented-out code.
17627
17628 * term.c (mark_ttys): Don't bother checking top_frame (incorrectly)
17629 before passing it to mark_object.
17630
17631 * xfaces.c (internal_resolve_face_name): Return a value.
17632 (internal_resolve_face_name, resolve_face_name_error): Comment out.
17633
17634 * xfns.c (check_x_display_info): Yet Another Int/Lisp_Object Mixup.
17635 (x_icon): Comment-out var only used in commented-out code.
17636
176372007-08-29 Romain Francoise <romain@orebokech.com>
17638
17639 * keyboard.c (Fset_input_mode): Don't call `Fset_quit_char' if
17640 QUIT hasn't been provided.
17641
176422007-08-29 Dan Nicolaescu <dann@ics.uci.edu>
17643
17644 * callproc.c (child_setup, getenv_internal): Use the
17645 display-environment-variable and term-environment-variable frame params.
17646 (set_initial_environment): Initialise Vprocess_environment.
17647
17648 * config.in: Disable multi-keyboard support on a mac.
17649
17650 * frame.c (Qterm_environment_variable)
17651 (Qdisplay_environment_variable): New variables.
17652 (syms_of_frame): Intern and staticpro them.
17653 (Fmake_terminal_frame): Disable output method test.
17654
17655 * frame.h: Declare them here.
17656
17657 * macfns.c (x_set_mouse_color): Get rif from the frame.
17658 (x_set_tool_bar_lines): Don't use updating_frame.
17659 (mac_window): Add 2 new parameters for consistency with other systems.
17660 (Fx_create_frame): Fix doc string. Rename the parameter. Set the
17661 frame parameters following what is done in X11 and w32. Don't use
17662 FRAME_MAC_DISPLAY_INFO.
17663 (Fx_open_connection, start_hourglass): Remove window-system check.
17664 (x_create_tip_frame): Get the keyboard from the terminal.
17665
17666 * macmenu.c: Reorder includes.
17667 (Fx_popup_menu): Use terminal specific mouse_position_hook.
17668
17669 * macterm.c (XTset_terminal_modes, XTreset_terminal_modes): Add a
17670 terminal parameter.
17671 (x_clear_frame): Add a frame parameter.
17672 (note_mouse_movement): Get rif from the frame.
17673 (mac_term_init): Initialize the terminal.
17674 (mac_initialize): Make static and move terminal initialization ...
17675 (mac_create_terminal): ... to this new function.
17676
17677 * macterm.h (struct mac_display_info): Add terminal.
17678 (mac_initialize): Delete declaration.
17679
17680 * puresize.h (BASE_PURESIZE): Increase base value to 1164000.
17681
17682 * sysdep.c: Comment out text after #endif.
17683
17684 * term.c (init_tty): Only use terminal->kboard when MULTI_KBOARD
17685 is defined. Better initialize ttys in windows. Use terminal
17686 specific mouse_position_hook.
17687
17688 * termhooks.h (union display_info): Add mac_display_info.
17689
17690 * w32fns.c (Fx_create_frame): Use kboard from the terminal.
17691 Set the default minibuffer frame, window_system and the rest of the
17692 frame parameters following what is done in X11.
17693
17694 * w32term.c (w32_initialize): Make static.
17695
17696 * xselect.c (x_handle_selection_clear): Only access
17697 terminal->kboard when MULTI_KBOARD is defined.
17698
17699 * s/darwin.h (SYSTEM_PURESIZE_EXTRA): Define here.
17700 (SYSTEM_PURESIZE_EXTRA): Only define on Carbon.
17701
177022007-08-29 Jason Rumney <jasonr@gnu.org>
17703
17704 * frame.c (Fdelete_frame): Only get kboard when MULTI_KBOARD defined.
17705 (make_terminal_frame) [WINDOWSNT]: Initialize terminal.
17706
17707 * fringe.c (w32_init_fringe w32_reset_fringes) [HAVE_NTGUI]:
17708 (mac_init_fringe) [MAC_OS]: Get rif from selected_frame.
17709
17710 * keyboard.c (restore_kboard_configuration): Only define when
17711 MULTI_KBOARD defined.
17712
17713 * makefile.w32-in: Update dependancies from Makefile.in.
17714 (OBJ1): Add terminal.$(O)
17715
17716 * term.c (dissociate_if_controlling_tty) [WINDOWSNT]:
17717 Don't define function body.
17718 (init_tty) [WINDOWSNT]: Use selected_frame for initializing.
17719
17720 * termhooks.h (display_info) [WINDOWSNT]: Add w32.
17721
17722 * w32.c (request_sigio, unrequest_sigio): Remove.
17723
17724 * w32console.c (w32con_move_cursor, w32con_clear_to_end)
17725 (w32con_clear_frame, w32con_clear_end_of_line)
17726 (w32con_ins_del_lines, w32con_insert_glyphs, w32con_write_glyphs)
17727 (w32con_delete_glyphs, w32con_set_terminal_window)
17728 (scroll_line, w32_sys_ring_bell): Add frame arg.
17729 (w32con_set_terminal_modes, w32con_reset_terminal_modes):
17730 Add terminal arg.
17731 (PICK_FRAME): Remove.
17732 (w32con_write_glyphs): Use frame specific terminal coding.
17733 (one_and_only_w32cons): New global variable.
17734 (initialize_w32_display): Use it for storing hooks.
17735 (create_w32cons_output): New function.
17736
17737 * w32inevt.c, w32inevt.h (w32_console_read_socket): Make first
17738 arg a frame.
17739
17740 * w32fns.c (x_create_tip_frame): Set terminal and ref count.
17741 Set window_system.
17742 (x_set_tool_bar_lines): Don't use updating_frame.
17743 (Fx_create_frame): Set terminal and ref count.
17744 (Fx_open_connection): Remove window-system check.
17745
17746 * w32menu.c (Fx_popup_menu): Use terminal specific mouse_position_hook.
17747
17748 * w32term.c (w32_term_init): Call add_keyboard_wait_descriptor.
17749 (w32_set_terminal_modes, w32_reset_terminal_modes): Add terminal arg.
17750 (x_clear_frame, x_delete_glyphs, w32_ring_bell, x_ins_del_lines):
17751 Add frame arg.
17752 (x_delete_terminal, w32_create_terminal): New functions.
17753 (w32_term_init): Create a terminal.
17754 (w32_initialize): Move terminal specific initialization to
17755 w32_create_terminal.
17756
17757 * w32term.h (x_output): Remove foreground_pixel and background_pixel.
17758 (w32_clear_rect, w32_clear_area): Use background from frame.
17759 (w32_display_info): Add terminal.
17760 (w32_sys_ring_bell, x_delete_display): Declare here.
17761
17762 * xdisp.c (display_menu_bar) [HAVE_NTGUI]: Check frame type.
17763
17764 * s/ms-w32.h (SYSTEM_PURESIZE_EXTRA): Bump to 50k.
17765
177662007-08-29 Kalle Olavi Niemitalo <kon@iki.fi> (tiny change)
17767
17768 * keyboard.c (interrupt_signal, handle_interrupt, Fset_quit_char):
17769 Fix get_named_tty calls for the controlling tty.
17770
177712007-08-29 ARISAWA Akihiro <ari@mbf.ocn.ne.jp> (tiny change)
17772
17773 * term.c (dissociate_if_controlling_tty)[USG]: Fix parse error.
17774
177752007-08-29 Yoshiaki Kasahara <kasahara@nc.kyushu-u.ac.jp> (tiny change)
17776
17777 * term.c (tty_insert_glyphs): Add missing first parameter.
17778
177792007-08-29 Károly Lőrentey <karoly@lorentey.hu>
17780
17781 * buffer.c (Fbuffer_list, Fbury_buffer):
17782 Take frame->buried_buffer_list into account.
17783
17784 * cm.c (current_tty): New variable, for cmputc().
17785 (cmputc): Use it.
17786 (cmcheckmagic): Add tty parameter, look up terminal streams there.
17787 (calccost): Add tty parameter. Use emacs_tputs() instead of tputs().
17788 (cmgoto): Add tty parameter. Pass it on to calccost().
17789 Use emacs_tputs() instead of tputs().
17790
17791 * cm.h (emacs_tputs): New macro to set current_tty, and then call
17792 tputs().
17793 (current_tty): New variable, for cmputc().
17794 (cmcheckmagic, cmputc, cmgoto): Add prototypes.
17795
17796 * eval.c (unwind_to_catch): Don't call x_fully_uncatch_errors.
17797 (internal_condition_case, internal_condition_case_1)
17798 (internal_condition_case_2): Don't abort when x_catching_errors.
17799
17800 * fns.c (Fyes_or_no_p): Don't try to open an X dialog on tty terminals.
17801 (Fy_or_n_p): Likewise. Use temporarily_switch_to_single_kboard to
17802 prevent crashes caused by bogus longjmps in read_char.
17803
17804 * keymap.h (Fset_keymap_parent): Add EXFUN.
17805
17806 * macterm.h (FRAME_FOREGROUND_PIXEL, FRAME_BACKGROUND_PIXEL)
17807 * w32term.h (FRAME_FOREGROUND_PIXEL, FRAME_BACKGROUND_PIXEL):
17808 Remove redundant definition.
17809
17810 * macfns.c (x_set_mouse_color, x_make_gc):
17811 Use FRAME_BACKGROUND_PIXEL and FRAME_FOREGROUND_PIXEL.
17812
17813 * w32term.c (x_free_frame_resources):
17814 Use FRAME_BACKGROUND_PIXEL and FRAME_FOREGROUND_PIXEL.
17815 (w32_initialize): Use the accessor macros for terminal characteristics.
17816
17817 * macterm.c (mac_initialize): Use Fset_input_interrupt_mode.
17818 Use the accessor macros for terminal characteristics.
17819 * msdos.c (internal_terminal_init): Use the accessor macros for
17820 terminal characteristics.
17821 (ScreenVisualBell, internal_terminal_init):
17822 Use FRAME_BACKGROUND_PIXEL and FRAME_FOREGROUND_PIXEL.
17823
17824 * termopts.h (no_redraw_on_reenter): Declare.
17825
17826 * alloc.c (emacs_blocked_malloc): Disable mallopt call.
17827 (mark_terminals, mark_ttys): Declare.
17828 (Fgarbage_collect): Call them.
17829 (mark_object): Mark buried_buffer_list.
17830
17831 * prefix-args.c: Include stdlib.h for exit.
17832
17833 * syssignal.h: Add comment.
17834
17835 * indent.c: Include stdio.h.
17836
17837 * window.h (Vinitial_window_system): Declare.
17838 (Vwindow_system): Delete declaration.
17839
17840 * fontset.c (Finternal_char_font): Use FRAME_RIF.
17841
17842 * image.c (lookup_image): Don't initialize `c' until the xasserts
17843 have been run.
17844
17845 * gtkutil.c (xg_create_frame_widgets): Use FRAME_BACKGROUND_PIXEL and
17846 FRAME_FOREGROUND_PIXEL.
17847
17848 * print.c (print_preprocess): Don't lose print_depth levels while
17849 iterating.
17850
17851 * widget.c (update_from_various_frame_slots):
17852 Use FRAME_BACKGROUND_PIXEL and FRAME_FOREGROUND_PIXEL.
17853
17854 * window.c (set_window_buffer): Don't call clear_mouse_face on tty
17855 frames.
17856 (window_internal_height): Remove bogus make_number call.
17857 (init_window_once): Call make_terminal_frame with two zero parameters.
17858
17859 * fileio.c (Fread_file_name): Update comment.
17860
17861 * callint.c (Fcall_interactively):
17862 Use temporarily_switch_to_single_kboard instead of single_kboard_state.
17863 Make sure it is correctly unwound.
17864
17865 * xsmfns.c (x_session_close): New function.
17866
17867 * coding.h (terminal_coding, safe_terminal_coding, keyboard_coding):
17868 Delete declarations.
17869
17870 * xterm.h: Remove declaration for x_fully_uncatch_errors.
17871 (x_output): Remove background_pixel and foreground_pixel fields.
17872 (x_display_info): Add new field TERMINAL. Remove KBOARD field.
17873 (x_delete_device, x_session_close): Declare.
17874
17875 * lread.c: Include setjmp.h. Update declaration of `read_char'.
17876 (read_filtered_event): Call `read_char' with a local
17877 `wrong_kboard_jmpbuf'.
17878
17879 * minibuf.c (read_minibuf): Call temporarily_switch_to_single_kboard.
17880 Don't call single_kboard_state. Use FRAME_RIF.
17881
17882 * process.c (Fmake_network_process): Don't unrequest_sigio on modern
17883 systems.
17884
17885 * lisp.h (set_process_environment): Rename to `set_global_environment'.
17886 (Fframe_with_environment, Fset_input_meta_mode)
17887 (Fset_quit_char): EXFUN.
17888 (x_create_device, tty_output, terminal, tty_display_info): Declare.
17889 (init_sys_modes, reset_sys_modes): Update prototypes.
17890 (init_all_sys_modes, reset_all_sys_modes): New prototypes.
17891
17892 * keyboard.h (struct kboard): Add new fields Vlocal_function_key_map,
17893 Vlocal_key_translation_map, and Vkeyboard_translate_table.
17894 (Vfunction_key_map, Vkeyboard_translate_table, single_kboard_state):
17895 Delete declarations.
17896 (Vfunction_key_map, Vkey_translation_map, push_kboard, pop_kboard)
17897 (temporarily_switch_to_single_kboard, tty_read_avail_input):
17898 New declarations.
17899
17900 * emacs.c (main): Don't call init_sys_modes(), the new term_init()
17901 already does that during init_display(). Call syms_of_keymap
17902 before syms_of_keyboard. Call `syms_of_terminal'.
17903 Call set_initial_environment, not set_process_environment.
17904 (shut_down_emacs): Call reset_all_sys_modes() instead of
17905 reset_sys_modes().
17906
17907 * xfaces.c (x_free_gc): Protect xassert with GLYPH_DEBUG.
17908 (internal_resolve_face_name, resolve_face_name_error): New functions.
17909 (resolve_face_name): Protect against loops and errors thrown by Fget.
17910 (realize_default_face): Don't use FRAME_FONT unless frame is an X frame.
17911 (Ftty_supports_face_attributes_p): Update tty_capable_p call.
17912
17913 * scroll.c: Replace CURTTY() with local variables throughout the
17914 file (where applicable).
17915 (calculate_scrolling, calculate_direct_scrolling)
17916 (scrolling_1, scroll_cost): Use the accessor macros for terminal
17917 characteristics.
17918
17919 * keymap.c (Vfunction_key_map): Remove.
17920 (Fdescribe_buffer_bindings): Update references to Vfunction_key_map.
17921 (syms_of_keymap): Remove DEFVAR for Vfunction_key_map.
17922 (Vkey_translation_map): Remove.
17923 (syms_of_keymap): Remove DEFVAR for key-translation-map.
17924 (Fdescribe_buffer_bindings)
17925 (read_key_sequence, init_kboard, syms_of_keyboard, mark_kboards):
17926 Update for terminal-local key-translation-map.
17927
17928 * Makefile.in (callproc.o): Update dependencies.
17929 (lisp, shortlisp): Add termdev.elc.
17930 (obj): Add terminal.o.
17931 (terminal.o): Add dependencies.
17932 [HAVE_CARBON]: Make terminal.o depend on macgui.h.
17933 (data.o, fns.o): Add termhooks.h dependency.
17934 (SOME_MACHINE_LISP): Add dnd.elc.
17935 (minibuf.o): Fix typo.
17936 Update dependencies.
17937
17938 * data.c (do_symval_forwarding, store_symval_forwarding)
17939 (find_symbol_value): Use the selected frame's keyboard, not
17940 current_kboard.
17941
17942 * .gdbinit (init_sys_modes): Use Vinitial_window_system instead of
17943 Vwindow_system.
17944
17945 * xmenu.c (Fx_menu_bar_open) [USE_X_TOOLKIT, USE_GTK]: Rename from
17946 Fmenu_bar_open.
17947 (syms_of_xmenu): Update defsubr.
17948 (mouse_position_for_popup, Fx_popup_menu)
17949 (Fx_popup_dialog, x_activate_menubar, update_frame_menubar)
17950 (set_frame_menubar, free_frame_menubar)
b97439ce 17951 (create_and_show_popup_menu, xmenu_show)
aac0c6e3
MR
17952 (create_and_show_dialog, xdialog_show, xmenu_show): Abort if not
17953 an X frame.
17954
17955 * xselect.c (x_own_selection): Abort if not an X frame.
17956 (some_frame_on_display): Check if it is an X frame.
17957 (x_handle_selection_clear): Deal with MULTI_KBOARD.
17958
17959 * coding.c: Include frame.h and termhooks.h.
17960 (terminal_coding, keyboard_coding): Delete.
17961 (Fset_terminal_coding_system_internal)
17962 (Fset_keyboard_coding_system_internal)
17963 (Fkeyboard_coding_system)
17964 (Fterminal_coding_system): Add a terminal parameter.
17965 Get terminal_coding from the terminal.
17966 (init_coding_once): Don't call setup_coding_system here.
17967
17968 * dispextern.h (set_scroll_region, turn_off_insert)
17969 (turn_off_highlight, background_highlight, clear_end_of_line_raw)
17970 (tty_clear_end_of_line, tty_setup_colors)
17971 (delete_tty, updating_frame)
17972 (produce_special_glyphs, produce_glyphs, write_glyphs)
17973 (insert_glyphs): Remove.
17974 (raw_cursor_to, clear_to_end, tty_turn_off_insert)
17975 (tty_turn_off_highlight, get_tty_size): Add declaration.
17976 (tabs_safe_p, init_baud_rate, get_tty_terminal): Update prototypes.
17977
17978 * frame.h (enum output_method): Add output_initial.
17979 (struct x_output): Delete.
17980 (FRAME_FOREGROUND_PIXEL, FRAME_BACKGROUND_PIXEL):
17981 Access foreground_pixel and background_pixel directly from the frame.
17982 (tty_display): Delete.
17983 (struct frame): Add buried_buffer_list, foreground_pixel,
17984 background_pixel and terminal. Delete kboard.
17985 (union output_data): Add tty.
17986 (FRAME_KBOARD): Get the kboard from the terminal.
17987 (FRAME_INITIAL_P): New macro.
17988 (Qtty, Qtty_type, Qterminal, Qterminal_live_p, Qenvironment)
17989 (Qterm_environment_variable, Qdisplay_environment_variable)
17990 (make_terminal_frame, Qburied_buffer_list, Qwindow_system):
17991 New declarations.
17992
17993 * termchar.h (tty_output, tty_display_info): New structures.
17994 (tty_list): Declare.
17995 (FRAME_TTY, CURTTY): New macros.
17996 (must_write_spaces, min_padding_speed, fast_clear_end_of_line)
17997 (line_ins_del_ok, char_ins_del_ok, scroll_region_ok)
17998 (scroll_region_cost, memory_below_frame, fast_clear_end_of_line)
17999 (dont_calculate_costs, no_redraw_on_reenter): Remove declarations.
18000
18001 * callproc.c: Include frame.h and termhooks.h, for terminal
18002 parameters.
18003 (add_env): New function.
18004 (child_setup): Use it.
18005 (child_setup, getenv_internal): Handle the new Vprocess_environment.
18006 (getenv_internal): Fix get_terminal_param call.
18007 (Fgetenv_internal, egetenv): Update doc.
18008 (syms_of_callproc): Initialize Vprocess_environment to nil.
18009 Register and initialize them. Remove obsolete defvars. Update doc
18010 strings.
18011 (child_setup): Handle Vlocal_environment_variables.
18012 (getenv_internal): Add terminal parameter.
18013 Handle Vlocal_environment_variables.
18014 (Fgetenv_internal): Add terminal parameter.
18015 (child_setup, getenv_internal, Fgetenv_internal): Store the local
18016 environment in a frame (not terminal) parameter. Update doc strings.
18017 (set_initial_environment): Rename from set_global_environment.
18018 Store Emacs environment in initial frame parameter.
18019
18020 * xdisp.c (redisplay_internal): Update references to
18021 `previous_terminal_frame'.
18022 (display_mode_line, Fformat_mode_line): Replace calls to
18023 `push_frame_kboard' with `push_kboard'.
18024 (get_glyph_string_clip_rects): Add extra parentheses and
18025 braces to prevent compiler warnings.
18026 (calc_pixel_width_or_height): Add xassert to check that the
18027 frame is alive. Don't call `lookup_image' on a termcap frame.
18028 (message2_nolog, message3_nolog, redisplay_internal)
18029 (set_vertical_scroll_bar, redisplay_window, check_x_display_info)
18030 (x_set_scroll_bar_foreground, x_set_scroll_bar_background)
18031 (Fx_create_frame, Fxw_display_color_p, Fx_display_grayscale_p)
18032 (Fx_display_pixel_width, Fx_display_pixel_height)
18033 (Fx_display_planes, Fx_display_color_cells)
18034 (Fx_server_max_request_size, Fx_server_vendor, Fx_server_version)
18035 (Fx_display_screens, Fx_display_mm_height, Fx_display_mm_width)
18036 (Fx_display_backing_store, Fx_display_visual_class)
18037 (Fx_display_save_under, Fx_close_connection, x_create_tip_frame):
18038 Use FRAME_TERMINAL_P, FRAME_WINDOW_P, FRAME_TTY and FRAME_RIF.
18039
18040 * xfns.c (x_set_foreground_color x_set_background_color)
18041 (x_set_mouse_color, x_set_cursor_color, x_make_gc):
18042 Use FRAME_BACKGROUND_PIXEL and FRAME_FOREGROUND_PIXEL.
18043 (Fx_create_frame, x_create_tip_frame, build_string, x_window)
18044 (Fx_create_frame, x_create_tip_frame): Don't create frames on a
18045 terminal that is being deleted.
18046 (Fx_create_frame): Use `store_frame_param' to set `window-system'
18047 frame parameter, and make sure it overrides any user-supplied setting.
18048 (Fx_close_connection, Fx_synchronize): Unify argument names with
18049 the rest of the DEFUNs.
18050
18051 * dispnew.c (Fsend_string_to_terminal): Update call to
18052 `get_tty_terminal'.
18053 (Fredraw_frame, Fsend_string_to_terminal)
18054 (Fsend_string_to_terminal, init_display): Use FRAME_RIF,
18055 FRAME_TERMCAP_P and FRAME_TTY.
18056 (window_change_signal): Don't believe width/height values that are
18057 impossibly small.
18058 (Vinitial_window_system): Rename from Vwindow_system.
18059 (termscript, Wcm, rif): Delete.
18060
18061 * termhooks.h (struct terminal): New struct containing the
18062 previously global text display hooks and new members NAME,
18063 DELETED and PARAM_ALIST.
18064 (FRAME_TERMINAL, TERMINAL_TERMINAL_CODING)
18065 (TERMINAL_KEYBOARD_CODING, TERMINAL_ACTIVE_P, FRAME_WINDOW_P)
18066 (FRAME_RIF): New macros.
18067 (get_terminal_param, get_device): New declarations.
18068 (termscript): Delete declaration.
18069
18070 * xterm.c (x_initialize): Use Fset_input_interrupt_mode.
18071 (XTflash, x_free_frame_resources, x_scroll_bar_create)
18072 (x_scroll_bar_set_handle): Use FRAME_BACKGROUND_PIXEL and
18073 FRAME_FOREGROUND_PIXEL.
18074 (x_fully_uncatch_errors): Disable definition.
18075 (x_scroll_bar_expose): Fix reference to foreground pixel.
18076 (XTread_socket): Disable loop on all X displays.
18077 (x_delete_terminal): Don't set terminal->deleted and let
18078 delete_terminal delete the frames on the terminal.
18079 (x_delete_display): Doc update to reflect changes in
18080 delete_terminal.
18081 (x_display_info) <terminal>: Move member earlier in the struct.
18082 (deleting_tty): Remove old variable.
18083 (Fsuspend_tty): Call clear_tty_hooks.
18084 (Fresume_tty, init_tty): Call set_tty_hooks.
18085 (Ftty_display_color_p, Ftty_display_color_cells): Don't throw
18086 errors on X frames.
18087 (x_catch_errors_unwind): Abort if x_error_message is NULL.
18088 (handle_one_xevent): Initialize `f' to NULL.
18089 (x_delete_terminal, x_create_terminal): New functions.
18090 (XTset_terminal_modes, XTreset_terminal_modes)
18091 (XTread_socket, x_connection_closed, x_term_init)
18092 (x_term_init, x_delete_display): Add terminal parameter.
18093 (x_term_init) [!HAVE_GTK_MULTIDISPLAY]: Refuse to create secondary
18094 X connections.
18095
18096 * frame.c: Include termchar.h.
18097 (Qterminal, Qterminal_live_p, Qburied_buffer_list, Qtty, Qtty_type)
18098 (Qwindow_system, Qenvironment, Qterm_environment_variable)
18099 (Qdisplay_environment_variable): New vars.
18100 (Fframep): Deal with output_initial.
18101 (Fframe-live-p): Doc fix.
18102 (Fwindow-system): New function.
18103 (x_set_screen_gamma, store_frame_param): Fix compilation errors.
18104 (make_terminal_frame): Don't create frames on a terminal that is
18105 being deleted. Use FRAME_BACKGROUND_PIXEL and FRAME_FOREGROUND_PIXEL.
18106 (store_frame_param): Check for found_for_frame before calling XFRAME.
18107 (Fmake_terminal_frame): Handle NULL tty names correctly.
18108 (syms_of_frame): Enhance doc string of `default-frame-alist'.
18109 (Fdelete_frame): Remove unused variable `count'. Don't allow other
18110 frames to refer to a deleted frame in their 'environment parameter.
18111 (Fframe_with_environment): New function.
18112 (syms_of_frame): Defsubr it. Initialize and staticpro Qenvironment.
18113 (get_future_frame_param): New function.
18114 (Fmake_terminal_frame): Use it.
18115 (x_set_frame_parameters, x_set_screen_gamma): Use FRAME_RIF.
18116
18117 * sysdep.c (init_sys_modes, reset_sys_modes): Update for renames.
18118 * sysdep.c (reset_sys_modes): Update for renames.
18119
18120 * keyboard.c (tty_read_avail_input): New function.
18121 (Fset_input_interrupt_mode, Fset_output_flow_control): New functions.
18122 (syms_of_keyboard): Defsubr them.
18123 (Fset_input_meta_mode, Fset_quit_char): New functions.
18124 (Fset_input_mode): Split to above functions.
18125 (read_char_minibuf_menu_prompt): Add wrong_kboard_jmpbuf
18126 parameter. Use it in call to `read_char'.
18127 (read_char): Declare. Update call to `read_char_minibuf_menu_prompt'.
18128 Set wrong_kboard_jmpbuf correctly in recursive calls.
18129 Use current_kboard to access Vkeyboard_translate_table.
18130 Enhance comment before extra longjmp to wrong_kboard_jmpbuf.
18131 Add wrong_kboard_jmpbuf parameter to allow for recursive calls.
18132 Update longjmp invocations. Remember the original current_kboard,
18133 and longjmp to `wrong_kboard_jmpbuf' when a filter, timer or sentinel
18134 changes it. Comment out unnecessary calls to
18135 `record_single_kboard_state' and `any_kboard_state'.
18136 Update recursive calls.
18137 (wrong_kboard_jmpbuf): Remove global variable.
18138 (read_key_sequence): Remove unused variable wrong_kboard_jmpbuf.
18139 Handle deleted interrupted_kboards correctly; that is a legal
18140 case. Add `wrong_kboard_jmpbuf' local variable. Update setjmp
18141 and read_char calls. Abort if interrupted_kboard died in read_char.
18142 (any_kboard_state, single_kboard_state)
18143 (push_frame_kboard): Remove function.
18144 (pop_kboard): Switch out of single_kboard mode if the kboard has
18145 been deleted. Remove unused variable. Help debugging by not
18146 changing current_kboard unnecessarily. Set current_kboard to the
18147 kboard of the selected frame when the stored kboard object has
18148 been deleted before pop_kboard.
18149 (temporarily_switch_to_single_kboard): Change first parameter to a
18150 frame pointer. Throw an error when caller wants to change kboards
18151 while in single_kboard mode. Don't push_kboard if we weren't in
18152 single kboard state. Don't pop_kboard if we popped into any
18153 kboard state.
18154 (restore_kboard_configuration): Abort if pop_kboard changed the
18155 kboard in single_kboard mode. Call pop_kboard only after setting
18156 up single_kboard mode.
18157 (Frecursive_edit): Switch to single_kboard mode only in nested
18158 command loops.
18159 (cmd_error, command_loop, command_loop_1, timer_check):
18160 Comment out unnecessary call to `any_kboard_state' and
18161 `record_single_kboard_state'.
18162 (delete_kboard): Exit single_kboard mode if we have just deleted
18163 that kboard. Use FRAME_KBOARD.
18164 (interrupt_signal): Use `Fkill_emacs' to exit Emacs, not
18165 `fatal_error_signal'.
18166 (record_single_kboard_state): Don't push_kboard if we weren't in
18167 single kboard state. Don't pop_kboard if we popped into any
18168 kboard state.
18169 (push_frame_kboard): Rename to push_kboard.
18170 (kbd_buffer_get_event): Use FRAME_TERMINAL.
18171 (read_avail_input): Read input from all terminals.
18172 (mark_kboards): Also mark Vkeyboard_translate_table.
18173 (kbd_buffer_store_event_hold): Simplify condition.
18174 (read_key_sequence): Reinitialize fkey and keytran at each replay.
18175 (Vkeyboard_translate_table): Move to struct kboard.
18176 (init_kboard): Initialize Vkeyboard_translate_table.
18177 (syms_of_keyboard): Use DEFVAR_KBOARD to define
18178 Vkeyboard_translate_table. Update doc strings. Update docs of
18179 local-function-key-map and function-key-map.
18180
18181 * terminal.c: New file.
18182
18183 * term.c: Include errno.h.
18184 (Vring_bell_function, device_list, initial_device)
18185 (next_device_id, ring_bell, update_begin, update_end)
18186 (set_terminal_window, cursor_to, raw_cursor_to)
18187 (clear_to_end, clear_frame, clear_end_of_line)
18188 (write_glyphs, insert_glyphs, delete_glyphs, ins_del_lines)
18189 (Fdisplay_name, create_device, delete_device): Move to terminal.c.
18190 (syms_of_term): Move their initialization to terminal.c.
18191 (get_tty_terminal, Fdisplay_tty_type, Ftty_display_color_p)
18192 (Ftty_display_color_cells)
18193 (Ftty_no_underline, Fsuspend_tty, Fresume_tty, create_tty_output)
18194 (clear_tty_hooks, set_tty_hooks)
18195 (init_tty, maybe_fatal): New functions.
18196 (Ftty_type): Return nil if terminal is not on a tty instead of
18197 throwing an error. Doc update.
18198 (syms_of_term) <Vsuspend_tty_functions, Vresume_tty_functions>:
18199 Doc update. Initialize new subrs and variables.
18200 (delete_tty): Use terminal->deleted.
18201 (tty_set_terminal_modes): Rename from set_terminal_modes.
18202 (tty_reset_terminal_modes): Rename from reset_terminal_modes.
18203 (set_scroll_region): Rename to `tty_set_scroll_region'.
18204 (turn_on_insert): Rename to `tty_turn_on_insert'.
18205 (turn_off_insert): Rename to `tty_turn_off_insert'.
18206 (turn_off_highlight): Rename to `tty_turn_off_highlight'.
18207 (turn_on_highlight): Rename to `tty_turn_on_highlight'.
18208 (toggle_highligh): Rename to `tty_toggle_highlight'.
18209 (background_highlight): Rename to `tty_background_highlight'.
18210 (highlight_if_desired): Rename to `tty_highlight_if_desired'.
18211 (tty_ring_bell, tty_update_end, tty_set_terminal_window)
18212 (tty_set_scroll_region, tty_background_highlight)
18213 (tty_cursor_to, tty_raw_cursor_to, tty_clear_to_end)
18214 (tty_clear_frame, tty_clear_end_of_line, tty_write_glyphs)
18215 (tty_insert_glyphs, tty_delete_glyphs, tty_ins_del_lines)
18216 (term_get_fkeys, tty_setup_colors, dissociate_if_controlling_tty):
18217 Add static modifier.
18218 (tty_reset_terminal_modes, tty_set_terminal_window)
18219 (tty_set_scroll_region, tty_background_highlight)
18220 (tty_highlight_if_desired, tty_cursor_to)
18221 (tty_raw_cursor_to, tty_clear_to_end, tty_clear_frame)
18222 (tty_clear_end_of_line, tty_write_glyphs, tty_insert_glyphs)
18223 (tty_delete_glyphs, tty_ins_del_lines, turn_on_face): Update for
18224 renames.
18225
182262007-08-28 Jan Djärv <jan.h.d@swipnet.se>
18227
18228 * keyboard.c: Qrtl is new.
18229 (parse_tool_bar_item): Handle :rtl keyword.
18230 (syms_of_keyboard): Intern :rtl keyword.
18231
18232 * dispextern.h (enum tool_bar_item_idx): Add TOOL_BAR_ITEM_RTL_IMAGE.
18233
18234 * gtkutil.c (xg_tool_bar_expose_callback): Just do SET_FRAME_GARBAGED
18235 so no Lisp code is executed.
18236 (file_for_image, find_rtl_image): New functions.
18237 (xg_get_image_for_pixmap): Use file_for_image.
18238 (update_frame_tool_bar): If direction is RTL, use RTL image if
18239 defined. Use Gtk stock images if defined.
18240
182412007-08-27 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
18242
18243 * macterm.c (x_draw_composite_glyph_string_foreground): Draw rectangle
18244 for nonexistent or zero-width glyph in composition glyph.
18245
182462007-08-25 Stefan Monnier <monnier@iro.umontreal.ca>
18247
18248 * m/amdx86-64.h: Redirect to intel386.h if compiling for i386.
18249
18250 * xdisp.c (Finvisible_p): New function.
18251 (syms_of_xdisp): defsubr it.
18252
182532007-08-24 Juanma Barranquero <lekktu@gmail.com>
18254
18255 * image.c (syms_of_image) <image-library-alist, cross-disabled-images>:
18256 Doc fixes.
18257
182582007-08-24 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
18259
18260 * mac.c [MAC_OSX] (select_and_poll_event, sys_select): Fix last changes.
18261
182622007-08-24 Martin Rudalics <rudalics@gmx.at>
18263
18264 * fileio.c (Finsert_file_contents): Consult CHARS_MODIFF to tell
18265 whether decoding has modified buffer contents.
18266
182672007-08-24 Jason Rumney <jasonr@gnu.org>
18268
18269 * image.c [HAVE_NTGUI]: Define dynamic loaded functions for SVG.
18270 (Qgdk_pixbuf, Qglib) [HAVE_NTGUI]: New symbols.
18271 (syms_of_image) [HAVE_NTGUI]: Intern and staticpro them.
18272 (init_svg_functions) [HAVE_NTGUI]: New function.
18273 (fn_g_type_init, fn_g_object_unref, fn_g_error_free): New #defines.
18274 (svg_load_image): Use them.
18275 (svg_load_image) [HAVE_NTGUI]: Implement background.
18276
182772007-08-23 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
18278
18279 * Makefile.in (RSVG_LIBS, RSVG_CFLAGS): New variables.
18280 (ALL_CFLAGS): Use ${RSVG_CFLAGS} instead of @RSVG_CFLAGS@.
18281 (LIBX): Remove @RSVG_LIBS@.
18282 (LIBES): Add $(RSVG_LIBS).
18283
18284 * image.c (svg_load_image): Blend with specified background if exists.
18285 Use IMAGE_BACKGROUND. Add Mac OS Support.
18286
18287 * mac.c (wakeup_from_rne_enabled_p) [MAC_OSX]: Remove variable.
18288 (ENABLE_WAKEUP_FROM_RNE, DISABLE_WAKEUP_FROM_RNE) [MAC_OSX]:
18289 Remove macros.
18290 [MAC_OSX] (socket_callback): Do nothing.
18291 [MAC_OSX] (select_and_poll_event): Use CFRunLoopRunInMode instead of
18292 ReceiveNextEvent.
18293 [MAC_OSX] (sys_select): Likewise. Don't set context as argument to
18294 socket_callback.
18295 (mac_wakeup_from_rne) [MAC_OSX]: Do nothing.
18296
182972007-08-22 Glenn Morris <rgm@gnu.org>
18298
18299 * image.c (x_find_image_file): Search in etc/images/ rather than etc/.
18300
183012007-08-22 Paul Pogonyshev <pogonyshev@gmx.net>
18302
18303 * Makefile.in (ALL_CFLAGS, LIBX): Add RSVG_LIBS.
18304
18305 * image.c: Add support for SVG images. Some additional comments
18306 by Joakim Verona <joakim@verona.se>. When HAVE_RSVG is defined:
18307 (svg_image_p): New function to test for SVG image.
18308 (svg_load): New function to load SVG image.
18309 (svg_load_image): New function, helper for svg_load.
18310 (Qsvg): New Lisp_object.
18311 (svg_keyword_index): New enum.
18312 (svg_format): New static `image_keyword' struct.
18313 (svg_type): New static `image_type' struct.
18314 (librsvg/rsvg.h): Include it.
18315
183162007-08-23 Stefan Monnier <monnier@iro.umontreal.ca>
18317
18318 * lread.c (load_warn_old_style_backquotes): Fix up array size typo.
18319
183202007-08-22 Stefan Monnier <monnier@iro.umontreal.ca>
18321
18322 * lread.c (Qold_style_backquotes): New var.
18323 (syms_of_lread): Init and staticpro it.
18324 (load_warn_old_style_backquotes): New fun.
18325 (Fload): Use them to warn about old style backquotes.
18326 (end_of_file_error, Fload): Remove unused vars.
18327
18328 * lisp.h (Fclear_face_cache, Fx_send_client_event): Declare.
18329
18330 * lread.c (Vold_style_backquotes): New var.
18331 (syms_of_lread): Init and export it to Elisp.
18332 (read1): Set it when we find an old-style (back)quote.
18333
183342007-08-22 Jason Rumney <jasonr@gnu.org>
18335
18336 * w32reg.c (SYSTEM_DEFAULT_RESOURCES): Add missing NULL terminator.
18337
183382007-08-22 Katsumi Yamaoka <yamaoka@jpl.org>
18339
18340 * puresize.h (BASE_PURESIZE): Increase to 1140000.
18341
183422007-08-19 Richard Stallman <rms@gnu.org>
18343
18344 * eval.c (Ffunction, Fquote): Signal error if not 1 argument.
18345
183462007-08-19 Andreas Schwab <schwab@suse.de>
18347
18348 * alloc.c (pure): Round PURESIZE up.
18349
183502007-08-17 Jan Djärv <jan.h.d@swipnet.se>
18351
18352 * xterm.c (handle_one_xevent): Remove check that mouse click is in
18353 active frame.
18354
183552007-08-16 Richard Stallman <rms@gnu.org>
18356
18357 * eval.c (Fcommandp): Add parens to clarify.
18358
18359 * minibuf.c (Fall_completions): Use enum for type of table.
18360
18361 * emacs.c (USAGE2): Improve text.
18362
183632007-08-15 Philippe Waroquiers <philippe.waroquiers@eurocontrol.int>
18364
18365 * term.c (tty_default_color_capabilities): Declare static
18366 variables in file scope, to avoid HPUX compiler problem.
18367
183682007-08-13 Jan Djärv <jan.h.d@swipnet.se>
18369
18370 * gtkutil.c (update_frame_tool_bar): Use -1 as index
18371 to gtk_toolbar_insert.
18372
183732007-08-13 Stefan Monnier <monnier@iro.umontreal.ca>
18374
18375 * fileio.c (Finsert_file_contents): Yet Another Int/Lisp_Object Mixup.
18376
18377 * insdel.c (reset_var_on_error): New fun.
18378 (signal_before_change, signal_after_change):
18379 Use it to reset (after|before)-change-functions to nil in case of error.
18380 Bind inhibit-modification-hooks to t.
18381 Don't bind (after|before)-change-functions to nil while they run.
18382
183832007-08-11 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
18384
18385 * xterm.c (x_draw_image_glyph_string): Adjust stipple origin when
18386 filling pixmap with stippled background.
18387
183882007-08-10 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
18389
18390 * macterm.c [TARGET_API_MAC_CARBON] (mac_handle_window_event):
18391 Don't use invisible frame as parent window for repositioning.
18392
183932007-08-10 Stefan Monnier <monnier@iro.umontreal.ca>
18394
18395 * print.c (new_backquote_output): Rename from old_backquote_output.
18396 (print): Inverse its logic (according to its name) so as to match the
18397 behavior of new_backquote_flag in lread.c.
18398
183992007-08-09 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
18400
18401 * gmalloc.c (posix_memalign): New function.
18402
18403 * macterm.c (frame_highlight, frame_unhighlight): Don't call
18404 ActivateControl/DeactivateControl here.
18405 [USE_MAC_TOOLBAR] (free_frame_tool_bar): Suppress animation when
18406 frame-notice-user-settings is non-nil.
18407 [USE_MAC_FONT_PANEL] (mac_handle_font_event): Also record parameter
18408 for kEventParamFMFontStyle.
18409 [TARGET_API_MAC_CARBON] (mac_handle_keyboard_event): Don't check
18410 mac_pass_command_to_system and mac_pass_control_to_system here.
18411 (XTread_socket): Call ActivateControl/DeactivateControl here.
18412 (XTread_socket) [TARGET_API_MAC_CARBON]:
18413 Check mac_pass_command_to_system and mac_pass_control_to_system here.
18414 (mac_handle_window_event) [USE_MAC_TOOLBAR]: Add further workaround
18415 for window repositioning.
18416
184172007-08-08 Glenn Morris <rgm@gnu.org>
18418
18419 * Replace `iff' in doc-strings and comments.
18420
184212007-08-07 Chong Yidong <cyd@stupidchicken.com>
18422
18423 * xdisp.c (move_it_by_lines): Remove incorrect optimization.
18424
184252007-08-07 Martin Rudalics <rudalics@gmx.at>
18426
18427 * fileio.c (Finsert_file_contents): Run format-decode and
18428 after_insert_file_functions on entire buffer when REPLACE is
18429 non-nil and inhibit modification_hooks and point_motion_hooks.
18430 For consistency, run after_insert_file_functions iff something
18431 got inserted. Move signal_after_change and update_compositions
18432 after code running after_insert_file_functions. Make sure that
18433 undo_list doesn't record intermediate steps of the decoding process.
18434
184352007-08-07 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
18436
18437 * emacs.c (main)
18438 [HAVE_GTK_AND_PTHREAD && !SYSTEM_MALLOC && !DOUG_LEA_MALLOC]:
18439 Call malloc_enable_thread on interactive startup.
18440
18441 * gmalloc.c (_malloc_thread_enabled_p) [USE_PTHREAD]: New variable.
18442 (LOCK, UNLOCK, LOCK_ALIGNED_BLOCKS, UNLOCK_ALIGNED_BLOCKS)
18443 [USE_PTHREAD]: Conditionalize with it.
18444 (malloc_atfork_handler_prepare, malloc_atfork_handler_parent)
18445 (malloc_atfork_handler_child, malloc_enable_thread) [USE_PTHREAD]:
18446 New functions.
18447
184482007-08-06 Chong Yidong <cyd@stupidchicken.com>
18449
18450 * xdisp.c (redisplay_window): When restoring original buffer
18451 position, make sure it is still valid.
18452
18453 * image.c (png_load): Ignore png-supplied background color.
18454
184552007-08-06 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
18456
18457 * mac.c [TARGET_API_MAC_CARBON] (cfdate_to_lisp): Obtain microsec value.
18458 Use kCFAbsoluteTimeIntervalSince1970.
18459
18460 * macmenu.c (quit_dialog_event_loop) [TARGET_API_MAC_CARBON]:
18461 New variable.
18462 [TARGET_API_MAC_CARBON] (mac_handle_dialog_event): Set it if dialog
18463 event loop should be quit.
18464 [TARGET_API_MAC_CARBON] (create_and_show_dialog) [!MAC_OSX]:
18465 Quit dialog event loop if quit_dialog_event_loop is set.
18466
18467 * macselect.c [!TARGET_API_MAC_CARBON]: Include Scrap.h.
18468 (Selection): New typedef. Use instead of ScrapRef.
18469 (mac_get_selection_from_symbol): Rename from get_scrap_from_symbol.
18470 (mac_valid_selection_target_p): Rename from valid_scrap_target_type_p.
18471 (mac_clear_selection): Rename from clear_scrap.
18472 (get_flavor_type_from_symbol): New argument SEL and subsume function of
18473 scrap_has_target_type. All uses changed.
18474 (mac_get_selection_ownership_info, mac_valid_selection_value_p)
18475 (mac_selection_has_target_p): New functions.
18476 (mac_put_selection_value): Rename from put_scrap_string.
18477 (mac_get_selection_value): Rename from get_scrap_string.
18478 (mac_get_selection_target_list): Rename from get_scrap_target_type_list.
18479 (put_scrap_private_timestamp, scrap_has_target_type)
18480 (get_scrap_private_timestamp): Remove functions.
18481 (SCRAP_FLAVOR_TYPE_EMACS_TIMESTAMP): Remove define.
18482 (x_own_selection, x_get_local_selection):
18483 Use mac_valid_selection_value_p.
18484 (x_own_selection): Don't use put_scrap_private_timestamp.
18485 Record OWNERSHIP-INFO into Vselection_alist instead.
18486 (x_get_local_selection): Don't check type if request is local.
18487 (Fx_selection_owner_p): Don't use get_scrap_private_timestamp.
18488 Detect ownership change with OWNERSHIP-INFO in Vselection_alist instead.
18489
184902007-08-04 Jan Djärv <jan.h.d@swipnet.se>
18491
18492 * gtkutil.c (xg_tool_bar_callback): Generate two TOOL_BAR_EVENT:s,
18493 add comment explaining why.
18494
184952007-08-03 Richard Stallman <rms@gnu.org>
18496
18497 * fileio.c (Fvisited_file_modtime): Use make_time.
18498
184992007-08-01 Ryo Yoshitake <ryo@shiftmode.net> (tiny change)
18500
18501 * mac.c (init_mac_osx_environment): Adjust load-path on self-contained
18502 build.
18503
185042007-07-31 Stefan Monnier <monnier@iro.umontreal.ca>
18505
18506 * gtkutil.c (xg_tool_bar_callback): Generate a single TOOL_BAR_EVENT.
18507
185082007-07-30 Katsumi Yamaoka <yamaoka@jpl.org>
18509
18510 * puresize.h (BASE_PURESIZE): Increase to 1130000.
18511
185122007-07-30 Richard Stallman <rms@gnu.org>
18513
18514 * lread.c (readevalloop, read1): Treat NBSP as whitespace.
18515
185162007-07-29 Jan Djärv <jan.h.d@swipnet.se>
18517
18518 * gmalloc.c (__malloc_initialize): Remove pthread_once. Not needed.
18519
185202007-07-28 Nick Roberts <nickrob@snap.net.nz>
18521
18522 * xdisp.c (decode_mode_spec): Use '@' instead of 'R' to test for
18523 remote default-directory.
18524
18525 * buffer.c (mode-line-format): Update doc string.
18526
185272007-07-27 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
18528
18529 * w32term.c (w32_draw_fringe_bitmap): Extend fringe background to
18530 scroll bar gap.
18531 (x_scroll_bar_create): Set bar->fringe_extended_p.
18532 (w32_set_vertical_scroll_bar): Put leftmost/rightmost scroll bars
18533 on frame edge. Check fringe background extension. Don't clear
18534 extended fringe background area.
18535
18536 * w32term.h (struct scroll_bar): New member fringe_extended_p.
18537 (w32_fill_area): Enclose multiple statements with do ... while (0).
18538
18539 * xterm.c (x_draw_fringe_bitmap) [USE_TOOLKIT_SCROLL_BARS]:
18540 Extend fringe background to scroll bar gap.
18541 (x_scroll_bar_create) [USE_TOOLKIT_SCROLL_BARS]:
18542 Set bar->fringe_extended_p.
18543 (XTset_vertical_scroll_bar) [USE_TOOLKIT_SCROLL_BARS]:
18544 Put leftmost/rightmost scroll bars on frame edge. Check fringe
18545 background extension. Don't clear extended fringe background area.
18546
18547 * xterm.h (struct scroll_bar) [USE_TOOLKIT_SCROLL_BARS]:
18548 New member fringe_extended_p.
18549
185502007-07-25 Glenn Morris <rgm@gnu.org>
18551
18552 * Relicense all FSF files to GPLv3 or later.
18553
18554 * COPYING: Switch to GPLv3.
18555
185562007-07-25 Stefan Monnier <monnier@iro.umontreal.ca>
18557
18558 * eval.c (Fcommandp): Pay attention to the `interactive-form' property.
18559
18560 * data.c (Finteractive_form): Check for the presence of an
18561 `interactive-form' symbol property more thoroughly.
18562
18563 * data.c (Finteractive_form): Use an `interactive-form' property if
18564 present, analogous to the function-documentation property.
18565
185662007-07-24 Jason Rumney <jasonr@gnu.org>
18567
18568 * w32fns.c (x_real_positions): Get real position from OS instead of
18569 calculating it.
18570
185712007-07-23 Jason Rumney <jasonr@gnu.org>
18572
18573 * filelock.c (current_lock_owner): Allow for @ sign in username.
18574
185752007-07-22 Nick Roberts <nickrob@snap.net.nz>
18576
18577 * xdisp.c (decode_mode_spec): Add case 'R' for to test for
18578 remote default-directory.
18579
18580 * buffer.c (mode-line-format): Describe above case in doc string.
18581
185822007-07-20 Eli Zaretskii <eliz@gnu.org>
18583
18584 * w32proc.c (IMAGE_NT_OPTIONAL_HDR32_MAGIC, IMAGE_OPTIONAL_HEADER32):
18585 Define if not defined.
18586
185872007-07-18 Jason Rumney <jasonr@gnu.org>
18588
18589 * w32proc.c (w32_executable_type): Handle 64 bit executables.
18590
185912007-07-18 Richard Stallman <rms@gnu.org>
18592
18593 * data.c (Fsetq_default): Doc fix.
18594
18595 * eval.c (Fsetq): Doc fix.
18596
185972007-07-18 Juanma Barranquero <lekktu@gmail.com>
18598
18599 * coding.c (Ffind_operation_coding_system):
18600 * eval.c (For, Fand): Doc fixes.
18601 Reported by Johan Bockgård.
18602
186032007-07-18 Jan Djärv <jan.h.d@swipnet.se>
18604
18605 * xfns.c (Fx_focus_frame): Call x_ewmh_activate_frame.
18606
18607 * xterm.h: Declare x_ewmh_activate_frame.
18608
18609 * xterm.c (x_ewmh_activate_frame): New function.
18610 (XTframe_raise_lower): Move code to x_ewmh_activate_frame.
18611
186122007-07-17 Martin Rudalics <rudalics@gmx.at>
18613
18614 * window.c (Fdisplay_buffer): If largest or LRU window is the
18615 only window, split it even if it is not eligible for splitting.
18616 This restores the original behavior broken by the 2007-07-15
18617 change.
18618
186192007-07-17 Glenn Morris <rgm@gnu.org>
18620
18621 * abbrev.c (abbrev_check_chars): New function.
18622 (Fdefine_global_abbrev, Fdefine_mode_abbrev):
18623 Call abbrev_check_chars to check abbrev characters are word
18624 constituents. Doc fix.
18625
186262007-07-17 Stefan Monnier <monnier@iro.umontreal.ca>
18627
18628 * process.c (Fstart_process, Fmake_network_process)
18629 (read_process_output): Fix up last changes.
18630
186312007-07-16 Eli Zaretskii <eliz@gnu.org>
18632
18633 * makefile.w32-in (clean): Don't delete *~.
18634
186352007-07-16 Andreas Schwab <schwab@suse.de>
18636
18637 * window.c (Fdisplay_buffer): Use NILP.
18638 (Fset_window_scroll_bars): Likewise.
18639
186402007-07-15 Martin Rudalics <rudalics@gmx.at>
18641
18642 * window.c (window_min_size_2): New function.
18643 (window_min_size_1, size_window, Fdisplay_buffer)
18644 (Fsplit_window, adjust_window_trailing_edge): Use it to avoid
18645 windows without mode- or header-lines when window-min-height is
18646 too small.
18647 (size_window): Reset nodelete_p after testing it, following an
18648 earlier note by Kim F. Storm.
18649 (display_buffer): Do not set split_height_threshold to twice the
18650 value of window_min_height to avoid changing the value of a
18651 customizable variable. Rather explicitly check whether the
18652 height of the window that shall be splitted is at least as large
18653 as split_height_threshold.
18654 (Fwindow_full_width_p): New defun.
18655 (syms_of_window): Defsubr it.
18656
18657 * window.h: Add EXFUN for Fwindow_full_width_p.
18658
186592007-07-14 Jason Rumney <jasonr@gnu.org>
18660
18661 * process.c [WINDOWSNT]: Don't undefine AF_INET6.
18662
186632007-07-14 Richard Stallman <rms@gnu.org>
18664
18665 * eval.c (maybe_call_debugger): New function.
18666 (find_handler_clause): Use maybe_call_debugger.
18667 Call it when the handler says `debug'.
18668 Eliminate DEBUGGER_VALUE_PTR.
18669 (Fsignal): Eliminate debugger_value.
18670 (Qdebug): New variable.
18671 (syms_of_eval): Initialize it.
18672
186732007-07-14 Juanma Barranquero <lekktu@gmail.com>
18674
18675 * eval.c (Fprogn):
18676 * keyboard.c (Ftrack_mouse):
18677 * print.c (Fwith_output_to_temp_buffer):
18678 * window.c (Fsave_window_excursion): Doc fix.
18679
186802007-07-13 Stefan Monnier <monnier@iro.umontreal.ca>
18681
18682 * eval.c (init_eval_once): Bump max_lisp_eval_depth to 400.
18683
186842007-07-12 Stefan Monnier <monnier@iro.umontreal.ca>
18685
18686 * process.h (struct Lisp_Process): Turn slots infd, outfd,
18687 kill_without_query, pty_flag, tick, update_tick, decoding_carryover,
18688 inherit_coding_system_flag, filter_multibyte, adaptive_read_buffering,
18689 read_output_delay, and read_output_skip from Lisp_Objects to ints.
18690 Remove unused encoding_carryover.
18691 * process.c: Adjust all functions accordingly.
18692
186932007-07-12 Richard Stallman <rms@gnu.org>
18694
18695 * term.c: Include unistd.h only if HAVE_UNISTD_H.
18696
186972007-07-11 Jason Rumney <jasonr@gnu.org>
18698
18699 * makefile.w32-in (LIBS): Include OLE32.
18700
18701 * w32fns.c (w32_msg_pump) <WM_EMACS_CREATEWINDOW>: Initialize COM.
18702 (w32_msg_pump) <WM_DESTROY>: Uninitialize COM.
18703
187042007-07-11 Stefan Monnier <monnier@iro.umontreal.ca>
18705
18706 * lisp.h (struct Lisp_Hash_Table): Turn next_weak into a bare pointer.
18707 * fns.c (weak_hash_tables): Rename from Vweak_hash_tables and turned
18708 from a Lisp_Object into a bare pointer.
18709 (make_hash_table, copy_hash_table, sweep_weak_hash_tables, init_fns):
18710 Adjust the code correspondingly.
18711
18712 * alloc.c (emacs_blocked_free): Remove unused var `bytes_used_now'.
18713
18714 * term.c: Include unistd.h for ttyname, used in handle_one_term_event.
18715 (term_show_mouse_face): Remove unused var `j'.
18716 (handle_one_term_event): Remove unused vars `i' and `j'.
18717 Don't cast return value of ttyname since it's not necessary.
18718
187192007-07-10 Stefan Monnier <monnier@iro.umontreal.ca>
18720
18721 * alloc.c (mark_maybe_pointer): Enforce mult-of-8 alignment when using
18722 USE_LSB_TAG. Suggested by Dmitry Antipov <dmantipov@yandex.ru>.
18723
18724 * fns.c (map_char_table): Use an array of int for `indices' rather than
18725 an array of Lisp_Objects (which are only ever integers anyway).
18726 (Fmap_char_table): Update caller.
18727 * lisp.h: Update prototype.
18728 * keymap.c (Fset_keymap_parent, map_keymap, Fcopy_keymap):
18729 * fontset.c (Ffontset_info):
18730 * casetab.c (set_case_table): Update callers.
18731
18732 * editfns.c (Ftranspose_regions): Use EMACS_INT for positions.
18733
18734 * keymap.c (struct accessible_keymaps_data)
18735 (struct where_is_internal_data): New structures.
18736 (accessible_keymaps_1, where_is_internal_1): Use them to change
18737 interface to adhere to the one used by map_keymap.
18738 (Faccessible_keymaps, where_is_internal): Use map_keymap.
18739 (accessible_keymaps_char_table, where_is_internal_2): Remove.
18740
18741 * keymap.h (map_keymap_function_t): More informative prototype.
18742
187432007-07-10 Guanpeng Xu <herberteuler@hotmail.com>
18744
18745 * search.c (Vinhibit_changing_match_data, search_regs_1): New vars.
18746 (looking_at_1): Don't change search_regs and last_thing_searched
18747 if `inhibit-changing-match-data' is non-nil.
18748 (string_match_1, search_buffer, set_search_regs): Likewise.
18749 (syms_of_search): Add Lisp level definition for
18750 `inhibit-changing-match-data' and set it to nil.
18751 (boyer_moore): If `inhibit-changing-match-data' is non-nil, compute
18752 start and end of the match, instead of using values in search_regs.
18753
187542007-07-01 Stefan Monnier <monnier@iro.umontreal.ca>
18755
18756 * minibuf.c (Fcompleting_read): New value `confirm-only'
18757 for `require-match'.
18758
187592007-06-28 Stefan Monnier <monnier@iro.umontreal.ca>
18760
18761 * fileio.c (Fdo_auto_save): Revert last patch installed unwillingly as
18762 part of the 2007-06-27 change to syms_of_fileio.
18763
187642007-06-28 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
18765
18766 * macterm.c [USE_MAC_TSM] (mac_handle_text_input_event):
18767 Check WINDOWP before using XWINDOW. Consolidate return statements.
18768
187692007-06-27 Richard Stallman <rms@gnu.org>
18770
18771 * fileio.c (syms_of_fileio) <after-insert-file-functions>: Doc fix.
18772
187732007-06-27 Juanma Barranquero <lekktu@gmail.com>
18774
18775 * buffer.c (syms_of_buffer) <selective-display>: Fix typo in docstring.
18776
187772007-06-26 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
18778
18779 * gmalloc.c [HAVE_GTK_AND_PTHREAD]: Check this after including config.h.
18780 (_aligned_blocks_mutex) [USE_PTHREAD]: New variable.
18781 (LOCK_ALIGNED_BLOCKS, UNLOCK_ALIGNED_BLOCKS): New macros.
18782 (_free_internal, memalign): Use them.
18783 (_malloc_mutex, _aligned_blocks_mutex) [USE_PTHREAD]:
18784 Initialize to PTHREAD_MUTEX_INITIALIZER.
18785 (malloc_initialize_1) [USE_PTHREAD]: Don't use recursive mutex.
18786 (morecore_nolock): Rename from morecore. All uses changed.
18787 Use only nolock versions of internal allocation functions.
18788 (_malloc_internal_nolock, _realloc_internal_nolock)
18789 (_free_internal_nolock): New functions created from
18790 _malloc_internal, _realloc_internal, and _free_internal.
18791 (_malloc_internal, _realloc_internal, _free_internal): Use them.
18792 Copy hook value to automatic variable before its use.
18793 (memalign): Copy hook value to automatic variable before its use.
18794
187952007-06-26 Kenichi Handa <handa@m17n.org>
18796
18797 * coding.c (Ffind_operation_coding_system): Docstring improved.
18798 (syms_of_coding): Docstring of `file-coding-system-alist' improved.
18799
188002007-06-25 David Kastrup <dak@gnu.org>
18801
18802 * keymap.c (Fcurrent_active_maps): Add `position' argument.
18803 (Fwhere_is_internal): Adjust call to `current-active-maps' to
18804 cater for additional parameter.
18805
18806 * keymap.h: Adjust number of parameters to `current-active-maps'.
18807
18808 * doc.c (Fsubstitute_command_keys): Adjust call of
18809 `current-active-maps'.
18810
188112007-06-25 David Kastrup <dak@gnu.org>
18812
18813 * callint.c (Fcall_interactively): Make the parsing of interactive
18814 specs somewhat more readable.
18815
188162007-06-23 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
18817
18818 * macterm.c (x_draw_fringe_bitmap) [MAC_OSX]: Extend fringe background
18819 to scroll bar gap also when bitmap fills fringe. Draw only foreground
18820 if extended background has already been filled.
18821
188222007-06-22 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
18823
18824 * macgui.h (USE_CG_DRAWING): Don't require USE_ATSUI.
18825 (USE_MAC_TOOLBAR): Require USE_CG_DRAWING.
18826
18827 * macmenu.c (mac_dialog_modal_filter, Fx_popup_dialog) [MAC_OSX]:
18828 Put special treatment for Fmessage_box, Fyes_or_no_p, and Fy_or_n_p
18829 in #if 0 as it is not compatible with y-or-n-p-with-timeout.
18830 (timer_check) [TARGET_API_MAC_CARBON]: Add extern.
18831 [TARGET_API_MAC_CARBON] (mac_handle_dialog_event): Use QuitEventLoop
18832 instead of QuitAppModalLoopForWindow. Consolidate QuitEventLoop calls.
18833 (pop_down_dialog) [TARGET_API_MAC_CARBON]: New function.
18834 [TARGET_API_MAC_CARBON] (create_and_show_dialog): Use it for unwind.
18835 Run timers during dialog popup.
18836 (Fmenu_or_popup_active_p) [TARGET_API_MAC_CARBON]: Use popup_activated.
18837
188382007-06-21 Jason Rumney <jasonr@gnu.org>
18839
18840 * image.c (convert_mono_to_color_image): Swap fore and background.
18841
188422007-06-20 Jason Rumney <jasonr@gnu.org>
18843
18844 * w32bdf.c (w32_BDF_to_x_font): Unmap memory when finished.
18845 (w32_free_bdf_font): Unmap memory not handle.
18846
188472007-06-20 Sam Steingold <sds@gnu.org>
18848
18849 * gmalloc.c (__morecore): Fix the declaration to comply with the
18850 definition.
18851
188522007-06-20 Juanma Barranquero <lekktu@gmail.com>
18853
18854 * w32term.c (w32_delete_display): Remove leftover declaration.
18855 (w32_define_cursor, w32_initialize): Make static.
18856
18857 * w32.c (_wsa_errlist): Fix typo in error message.
18858 (init_environment): Ignore any environment variable from the
18859 registry having a null value.
18860
188612007-06-20 Glenn Morris <rgm@gnu.org>
18862
18863 * Makefile.in (LIBGIF): Default to -lgif.
18864
188652007-06-17 Jason Rumney <jasonr@gnu.org>
18866
18867 * w32menu.c (add_menu_item): Don't use multibyte string functions on
18868 unicode strings.
18869
188702007-06-16 Juanma Barranquero <lekktu@gmail.com>
18871
18872 * xdisp.c (syms_of_xdisp) <auto-resize-tool-bars>:
18873 Fix typo in docstring.
18874
188752007-06-16 Eli Zaretskii <eliz@gnu.org>
18876
18877 * w32menu.c (add_menu_item): Escape `&' characters in menu items
18878 and their keybindings.
18879
188802007-06-15 Chong Yidong <cyd@stupidchicken.com>
18881
18882 * composite.c (update_compositions): Fix last fix.
18883
188842007-06-14 Jason Rumney <jasonr@gnu.org>
18885
18886 * w32.c (get_process_times_fn): New function pointer.
18887 (globals_of_w32): Intialize it if present in kernel32.dll.
18888 (w32_get_internal_run_time): New function.
18889
18890 * editfns.c (Fget_internal_run_time) [WINDOWSNT]: Use it.
18891
188922007-06-14 Kenichi Handa <handa@etlken.m17n.org>
18893
18894 * composite.c (update_compositions): Check the validness of
18895 compositions.
18896
188972007-06-14 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
18898
18899 * frame.h (struct frame) [MAC_OS]: New member external_tool_bar.
18900 (FRAME_EXTERNAL_TOOL_BAR) [MAC_OS]: Use it.
18901
18902 * macfns.c (mac_window) [USE_MAC_TOOLBAR]: Set toolbar_win_gravity.
18903 (x_set_tool_bar_lines) [USE_MAC_TOOLBAR]: Set FRAME_EXTERNAL_TOOL_BAR.
18904
18905 * macgui.h (USE_MAC_TOOLBAR): New define.
18906
18907 * macmenu.c [TARGET_API_MAC_CARBON] (menu_target_item_handler):
18908 Return immediately unless popup is activated.
18909
18910 * macterm.c (x_draw_fringe_bitmap) [MAC_OSX]: Extend fringe
18911 background to scroll bar gap.
18912 (x_scroll_bar_create) [MAC_OSX]: Set bar->fringe_extended_p.
18913 (XTset_vertical_scroll_bar) [MAC_OSX]: Put leftmost/rightmost
18914 scroll bars on frame edge. Check fringe background extension.
18915 Don't clear extended fringe background area.
18916 (TOOLBAR_IDENTIFIER, TOOLBAR_ICON_ITEM_IDENTIFIER)
18917 (TOOLBAR_ITEM_COMMAND_ID_OFFSET, TOOLBAR_ITEM_COMMAND_ID_P)
18918 (TOOLBAR_ITEM_COMMAND_ID_VALUE, TOOLBAR_ITEM_MAKE_COMMAND_ID):
18919 [USE_MAC_TOOLBAR]: New macros.
18920 (mac_move_window_with_gravity, mac_get_window_origin_with_gravity)
18921 (mac_handle_toolbar_event, mac_image_spec_to_cg_image)
18922 (mac_create_frame_tool_bar, update_frame_tool_bar, free_frame_tool_bar)
18923 (mac_tool_bar_note_mouse_movement, mac_handle_toolbar_command_event)
18924 [USE_MAC_TOOLBAR]: New functions.
18925 (mac_handle_window_event) [USE_MAC_TOOLBAR]: Reposition window
18926 manually if previous repositioning has failed.
18927 (mac_handle_keyboard_event): Use precomputed event kind.
18928 (XTread_socket) [USE_MAC_TOOLBAR]: Handle click in structure region
18929 as tool bar item click. Handle mouse movement over tool bar items.
18930
18931 * macterm.h (struct mac_output) [USE_MAC_TOOLBAR]: New member
18932 toolbar_win_gravity.
18933 (struct scroll_bar) [MAC_OSX]: New member fringe_extended_p.
18934 (update_frame_tool_bar, free_frame_tool_bar) [USE_MAC_TOOLBAR]:
18935 Add externs.
18936
18937 * xdisp.c (update_tool_bar, redisplay_tool_bar, redisplay_window)
18938 [USE_MAC_TOOLBAR]: Sync with GTK+ tool bar display.
18939
189402007-06-14 Chong Yidong <cyd@stupidchicken.com>
18941
18942 * image.c (search_image_cache): Remove unused variable.
18943
189442007-06-13 Chong Yidong <cyd@stupidchicken.com>
18945
18946 * xfns.c, xmenu.c: Link to xaw3d if available.
18947
189482007-06-13 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
18949
18950 * dispextern.h (struct image) [HAVE_WINDOW_SYSTEM]: New members
18951 frame_foreground and frame_background.
18952
18953 * image.c (lookup_image): Save frame foreground and background colors.
18954 (search_image_cache): Check if saved and current frame colors match.
18955
189562007-06-12 Stefan Monnier <monnier@iro.umontreal.ca>
18957
18958 * regex.c (regex_compile): Remove the `regnum' counter.
18959 Use bufp->re_nsub instead. Add support for \(?N:RE\).
18960
189612007-06-11 Stefan Monnier <monnier@iro.umontreal.ca>
18962
18963 * term.c: Include intervals.h to declare Fget_text_property.
18964
189652007-06-10 Jason Rumney <jasonr@gnu.org>
18966
18967 * w32fns.c (Fx_file_dialog): Take size from struct not pointer.
18968
189692007-06-08 Juanma Barranquero <lekktu@gmail.com>
18970
18971 * callint.c (Fcall_interactively):
18972 * editfns.c (Fdelete_and_extract_region):
18973 * fileio.c (Fread_file_name):
18974 * fns.c (Fmapconcat):
18975 * keyboard.c (cmd_error_internal):
18976 * keymap.c (Fkey_description):
18977 * lread.c (openp):
18978 * minibuf.c (read_minibuf):
18979 * search.c (wordify):
18980 * sunfns.c (sel_read):
18981 * xdisp.c (Fformat_mode_line, syms_of_xdisp):
18982 * xfns.c (x_default_scroll_bar_color_parameter):
18983 * xmenu.c (menu_help_callback):
18984 * xselect.c (Fx_get_atom_name):
18985 * xterm.c (x_term_init): Use empty_unibyte_string.
18986
189872007-06-08 Dmitry Antipov <dmantipov@yandex.ru> (tiny change)
18988
18989 * alloc.c (init_strings): Initialize canonical empty strings.
18990 (make_uninit_string, make_uninit_multibyte_string): Return appropriate
18991 canonical empty string when the requested size is 0.
18992
18993 * emacs.c (empty_unibyte_string): Rename from empty_string.
18994 (empty_multibyte_string): New canonical empty string.
18995 (syms_of_emacs): Don't initialize empty_string.
18996
18997 * lisp.h (STRING_SET_UNIBYTE): Return the canonical empty unibyte
18998 string, if appropriate.
18999 (empty_unibyte_string, empty_multibyte_string): New externs.
19000 (empty_string): Remove extern.
19001
19002 * lread.c (syms_of_lread): Use empty_unibyte_string.
19003
190042007-06-07 Jason Rumney <jasonr@gnu.org>
19005
19006 * s/ms-w32.h: Don't define HAVE_TZNAME.
19007
19008 * editfns.c (Fcurrent_time_zone): Remove hack for Japanese Windows.
19009
190102007-06-07 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
19011
19012 * mac.c (xrm_get_preference_database): Remove BLOCK_INPUT.
19013
19014 * macfns.c (mac_get_window_bounds): Move extern to macterm.h.
19015 (compute_tip_xy) [TARGET_API_MAC_CARBON]: Use GetGlobalMouse.
19016
19017 * macmenu.c [TARGET_API_MAC_CARBON] (menu_target_item_handler):
19018 Don't call next handler.
19019 [TARGET_API_MAC_CARBON] (install_menu_target_item_handler):
19020 Remove argument. Install handler to application.
19021 (set_frame_menubar): Don't change deep_p.
19022 (mac_menu_show): Use FRAME_OUTER_TO_INNER_DIFF_X and
19023 FRAME_OUTER_TO_INNER_DIFF_Y.
19024 (DIALOG_BUTTON_COMMAND_ID_OFFSET, DIALOG_BUTTON_COMMAND_ID_P)
19025 (DIALOG_BUTTON_COMMAND_ID_VALUE, DIALOG_BUTTON_MAKE_COMMAND_ID)
19026 [HAVE_DIALOGS]: New macros.
19027 [HAVE_DIALOGS] (mac_handle_dialog_event, create_and_show_dialog):
19028 Use them.
19029 (fill_menubar) [TARGET_API_MAC_CARBON]: Use CFString.
19030
19031 * macselect.c [MAC_OSX] (install_service_handler): Rename from
19032 init_service_handler. All callers changed. Return OSStatus value.
19033
19034 * macterm.c (mac_begin_cg_clip): New arg F. Call SetPortWindowPort.
19035 All callers changed so as not to call SetPortWindowPort.
19036 (mac_begin_cg_clip) [USE_CG_DRAWING]: Call mac_prepare_for_quickdraw.
19037 (mac_draw_image_string_atsui) [USE_ATSUI]: New function created from
19038 mac_draw_string_common.
19039 (mac_draw_image_string_qd): Likewise.
19040 (mac_draw_string_common): Use them. Add INLINE.
19041 (XTmouse_position, x_scroll_bar_report_motion) [TARGET_API_MAC_CARBON]:
19042 Use FRAME_OUTER_TO_INNER_DIFF_X, FRAME_OUTER_TO_INNER_DIFF_Y, and
19043 GetGlobalMouse.
19044 (x_set_mouse_pixel_position) [MAC_OSX]: Use FRAME_OUTER_TO_INNER_DIFF_X
19045 and FRAME_OUTER_TO_INNER_DIFF_Y.
19046 [TARGET_API_MAC_CARBON] (mac_handle_mouse_event): Likewise.
19047 [USE_MAC_TSM] (mac_handle_text_input_event): Likewise.
19048 (x_make_frame_visible) [TARGET_API_MAC_CARBON]: Move code for
19049 repositioning window to mac_handle_window_event.
19050 (x_make_frame_invisible) [TARGET_API_MAC_CARBON]: Move code for
19051 saving window location to mac_handle_window_event
19052 [USE_MAC_FONT_PANEL] (mac_show_hide_font_panel): Install handler here.
19053 (install_menu_target_item_handler): Remove argument in extern.
19054 [TARGET_API_MAC_CARBON] (mac_event_to_emacs_modifiers):
19055 Also accept command events.
19056 (do_keystroke): New function created from XTread_socket.
19057 (init_command_handler): Remove functions.
19058 [TARGET_API_MAC_CARBON] (mac_handle_window_event): Reposition window
19059 and save window location by kEventWindowShowing and kEventWindowHiding
19060 handlers here. Don't call next handler for window state change and
19061 focus events.
19062 (mac_handle_application_event, mac_handle_keyboard_event)
19063 [TARGET_API_MAC_CARBON]: New functions.
19064 (install_window_handler) [TARGET_API_MAC_CARBON]: Register handlers for
19065 kEventWindowShowing and kEventWindowHiding events. Move installation
19066 of mouse, font, text input and menu target item handlers to
19067 install_application_handler.
19068 (install_application_handler) [TARGET_API_MAC_CARBON]: New function.
19069 (mac_handle_cg_display_reconfig) [MAC_OS_X_VERSION_MAX_ALLOWED >= 1030]:
19070 New function.
19071 (init_dm_notification_handler) [MAC_OS_X_VERSION_MAX_ALLOWED >= 1030]:
19072 Register it.
19073 (XTread_socket) [TARGET_API_MAC_CARBON]:
19074 Consolidate SendEventToEventTarget calls.
19075 Use FRAME_OUTER_TO_INNER_DIFF_X and FRAME_OUTER_TO_INNER_DIFF_Y.
19076 Move application activation handler to mac_handle_application_event.
19077 Move keyboard handler to mac_handle_keyboard_event.
19078 (XTread_socket) [!TARGET_API_MAC_CARBON]: Use do_keystroke.
19079 (mac_initialize) [TARGET_API_MAC_CARBON]: Don't call
19080 init_command_handler. Call install_application_handler.
19081
19082 * macterm.h (mac_get_window_bounds): Move extern from macfns.c.
19083 (FRAME_OUTER_TO_INNER_DIFF_X, FRAME_OUTER_TO_INNER_DIFF_Y): New macros.
19084
190852007-06-07 Glenn Morris <rgm@gnu.org>
19086
19087 * emacs.c (main): Use `emacs-copyright' in --version output.
19088
190892007-06-06 Chong Yidong <cyd@stupidchicken.com>
19090
19091 * image.c (xpm_load): Remove spurious call to xpm_init_color_cache.
19092
190932007-06-06 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
19094
19095 * macfns.c (mac_window): Replace WindowPtr with WindowRef.
19096
19097 * macgui.h: Replace WindowPtr with WindowRef.
19098
19099 * macmenu.c: Replace MenuHandle and GetMenuHandle with MenuRef and
19100 GetMenuRef, respectively. Replace WindowPtr with WindowRef.
19101 Replace ControlHandle with ControlRef.
19102 (install_menu_quit_handler): Rename arg MENU_HANDLE to ROOT_MENU.
19103
19104 * macterm.c: Replace MenuHandle and GetMenuHandle with MenuRef and
19105 GetMenuRef, respectively. Replace WindowPtr with WindowRef.
19106 Replace ControlHandle with ControlRef.
19107 (USE_CARBON_EVENTS): Remove. Use TARGET_API_MAC_CARBON instead.
19108 [MAC_OS8] (do_get_menus): Rename variable `menu_handle' to `menu'.
19109
19110 * macterm.h (struct scroll_bar): Rename member control_handle_low
19111 and control_handle_high to control_ref_low and control_ref_high.
19112 All uses changed.
19113 (SCROLL_BAR_CONTROL_REF, SET_SCROLL_BAR_CONTROL_REF): Rename from
19114 SCROLL_BAR_CONTROL_HANDLE and SET_SCROLL_BAR_CONTROL_HANDLE,
19115 respectively. All uses changed.
19116 (XCreatePixmap, XCreatePixmapFromBitmapData, XSetWindowBackground)
19117 (install_window_handler, remove_window_handler): Replace WindowPtr
19118 with WindowRef in externs.
19119
191202007-06-05 Juanma Barranquero <lekktu@gmail.com>
19121
19122 * xfaces.c (Finternal_lisp_face_p): Signal error for face alias loops.
19123
191242007-06-03 Nick Roberts <nickrob@snap.net.nz>
19125
19126 * keyboard.c (discard_mouse_events): Add GPM_CLICK_EVENT case.
19127
19128 * frame.c (Fmouse_position, Fmouse_pixel_position):
19129 Condition on HAVE_GPM too.
19130
19131 * term.c (term_mouse_highlight): Remove unused variables.
19132 (Fterm_open_connection): Set gpm_zerobased to 1.
19133 (term_mouse_movement, term_mouse_click, handle_one_term_event):
19134 Use zero based co-ordinates.
19135 (handle_one_term_event): Report a drag as mouse movement too.
19136
19137 * Makefile.in (MOUSE_SUPPORT): Define for HAVE_GPM.
19138
191392007-06-03 Chong Yidong <cyd@stupidchicken.com>
19140
19141 * image.c (search_image_cache): New function. Require background
19142 color match if background color is unspecified in the image spec.
19143 (uncache_image, lookup_image): Use it.
19144
191452007-06-01 Juanma Barranquero <lekktu@gmail.com>
19146
19147 * window.c (Fshrink_window): Reflow docstring.
19148
191492007-06-02 Chong Yidong <cyd@stupidchicken.com>
19150
19151 * Version 22.1 released.
19152
191532007-06-01 Richard Stallman <rms@gnu.org>
19154
19155 * xfns.c (x_encode_text): Add GCPRO.
19156
191572007-06-01 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
19158
19159 * xfns.c (x_set_name_internal): Save encoded name before
19160 x_encode_text in case string data is relocated.
19161
191622007-05-31 Richard Stallman <rms@gnu.org>
19163
19164 * buffer.c (syms_of_buffer): Doc fix.
19165
191662007-05-30 Nick Roberts <nickrob@snap.net.nz>
19167
19168 * sysdep.c (init_sys_modes): Add rather than replace with
19169 O_NONBLOCK.
19170
19171 * frame.c [HAVE_GPM] (Fset_mouse_pixel_position): Add call to
19172 term_mouse_moveto.
19173
19174 * termhooks.h (term_mouse_moveto): New extern.
19175
19176 * term.c (mouse_face_window): Rename...
19177 (Qmouse_face_window): ...to this.
19178 (term_show_mouse_face, term_clear_mouse_face)
19179 (term_mouse_highlight): Use Qmouse_face_window.
19180 (term_mouse_moveto): New function.
19181 (term_mouse_position): Make it work.
19182 (syms_of_term): Uncomment assignment to mouse_position_hook.
19183 Staticpro Qmouse_face_window.
19184
191852007-05-28 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
19186
19187 * xdisp.c (redisplay_internal): Bind inhibit-point-motion-hooks to t
19188 around current_column call.
19189
191902007-05-26 Dan Nicolaescu <dann@ics.uci.edu>
19191
19192 * xfaces.c (syms_of_xfaces): Delete stray semicolon.
19193 * xdisp.c (next_element_from_buffer):
19194 * window.c (delete_window):
19195 * term.c (term_mouse_highlight):
19196 * msdos.c (getdefdir):
19197 * macterm.c (mac_create_bitmap_from_bitmap_data)
19198 (init_font_name_table):
19199 * fns.c (Fsxhash):
19200 * data.c (Fmake_local_variable):
19201 * ccl.c (ccl_driver): Likewise.
19202
192032007-05-24 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
19204
19205 * macterm.c [USE_CARBON_EVENTS] (mac_handle_window_event):
19206 Call mac_wakeup_from_rne on window size change.
19207
192082007-05-25 Chong Yidong <cyd@stupidchicken.com>
19209
19210 * image.c (uncache_image): Fix typo.
19211
192122007-05-23 Johannes Weiner <hannes@saeurebad.de> (tiny change)
19213
19214 * keyboard.c (make_lispy_movement): Condition on HAVE_GPM too.
19215
192162007-05-22 Richard Stallman <rms@gnu.org>
19217
19218 * xterm.c (x_connection_closed): Remove NO_RETURN.
19219
192202007-05-22 Martin Rudalics <rudalics@gmx.at>
19221
19222 * syntax.c (scan_words): Fix arg to UPDATE_SYNTAX_TABLE_BACKWARD.
19223
192242007-05-21 Chong Yidong <cyd@stupidchicken.com>
19225
19226 * image.c (uncache_image): New function.
19227 (Fimage_refresh): New function.
19228
192292007-05-20 Jan Djärv <jan.h.d@swipnet.se>
19230
19231 * Makefile.in: Move GPM check outside HAVE_X_WINDOWS.
19232
192332007-05-20 Nick Roberts <nickrob@snap.net.nz>
19234
19235 * config.in, keyboard.c, Makefile.in, sysdep.c, term.c,
19236 * termhooks.h: Use HAVE_GPM instead of HAVE_GPM_H.
19237
192382007-05-20 Nick Roberts <nickrob@snap.net.nz>
19239
19240 * keyboard.c (make_lispy_event): Make case GPM_CLICK_EVENT
19241 conditional on [HAVE_GPM_H].
19242
192432007-05-19 Stefan Monnier <monnier@iro.umontreal.ca>
19244
19245 * syntax.c (skip_chars): Update syntax-table only after we checked that
19246 the new location is valid.
19247
192482007-05-19 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
19249
19250 * macterm.c (x_calc_absolute_position): Add BLOCK_INPUT around
19251 mac_get_window_bounds.
19252
192532007-05-20 Nick Roberts <nickrob@snap.net.nz>
19254
19255 * Makefile.in (LIBGPM): Allow it to be set from configure.
19256 If set then link Emacs with it.
19257
19258 * config.in: Regenerate.
19259
19260 * lisp.h (add_gpm_wait_descriptor, delete_gpm_wait_descriptor):
19261 New externs.
19262
19263 * termhooks.h [HAVE_GPM_H] (enum event_kind): Add GPM_CLICK_EVENT.
19264 Include gpm.h.
19265 (handle_one_term_event, term_gpm): New externs.
19266
19267 * sysdep.c [HAVE_GPM_H] (init_sys_modes): Make gpm_fd nonblocking
19268 and allow it to be interrupted by SIGIO.
19269
19270 * process.c (gpm_wait_mask, max_gpm_desc): New variables.
19271 (wait_reading_process_output): Wait on gpm_fd too.
19272 (add_gpm_wait_descriptor, delete_gpm_wait_descriptor)): New functions.
19273 (add_gpm_wait_descriptor_called_flag): New variable.
19274 (delete_keyboard_wait_descriptor): Check gpm_wait_mask.
19275
19276 * keyboard.c [HAVE_GPM_H] (Qmouse_fixup_help_message)
19277 (make_lispy_movement, tracking_off, Ftrack_mouse, some_mouse_moved)
19278 (show_help_echo, readable_events, kbd_buffer_get_event, init_keyboard):
19279 Extend HAVE_MOUSE ifdefs to HAVE_GPM_H.
19280 (make_lispy_event): Add case GPM_CLICK_EVENT.
19281 (read_avail_input): Handle mouse input.
19282
19283 * term.c (write_glyphs_with_face): New function.
19284 [HAVE_GPM_H]: Include buffer.h, sys/fcntl.h.
19285 (mouse_face_beg_row, mouse_face_beg_col, mouse_face_end_row)
19286 (mouse_face_end_col, mouse_face_past_end, mouse_face_window)
19287 (mouse_face_face_id, term_gpm, pos_x, pos_y)
19288 (last_mouse_x, last_mouse_y): New variables.
19289 (term_show_mouse_face, term_clear_mouse_face, fast_find_position)
19290 (term_mouse_highlight, term_mouse_movement, term_mouse_position)
19291 (term_mouse_click, handle_one_term_event, Fterm_open_connection)
19292 (Fterm_close_connection): New functions.
19293 (term_init): Initialise mouse_face_window.
19294
192952007-05-19 Chong Yidong <cyd@stupidchicken.com>
19296
19297 * xdisp.c (redisplay_window): If first window line is a
19298 continuation line, recompute the new window start instead of
19299 recentering.
19300
193012007-05-18 Glenn Morris <rgm@gnu.org>
19302
19303 * m/alpha.h (ORDINARY_LINK): No longer define on OpenBSD.
19304 Suggested by Alfred M. Szmidt <ams@gnu.org>.
19305
193062007-05-17 Glenn Morris <rgm@gnu.org>
19307
19308 * m/macppc.h (ORDINARY_LINK): No longer define on OpenBSD.
19309
193102007-05-16 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
19311
19312 * macterm.c [USE_CARBON_EVENTS] (mac_convert_event_ref): Also convert
19313 dead key repeat and up events.
19314
193152007-05-14 Chong Yidong <cyd@stupidchicken.com>
19316
19317 * image.c (pbm_load): Check image size for monochrome pbm.
19318
193192007-05-13 Chong Yidong <cyd@stupidchicken.com>
19320
19321 * xterm.c (XTread_socket): Revert last change.
19322
193232007-05-12 Chong Yidong <cyd@stupidchicken.com>
19324
19325 * image.c (pbm_load): Correctly check image size for greyscale pbm.
19326
19327 * xterm.c (XTread_socket): Yet Another Uncaught X Error Crash (YAUXEC).
19328
193292007-05-07 Stefan Monnier <monnier@iro.umontreal.ca>
19330
19331 * editfns.c (Ftranspose_regions): Yet another int/Lisp_Object
19332 mixup (YAILOM).
19333
193342007-05-07 Andreas Schwab <schwab@suse.de>
19335
19336 * keymap.c (Flookup_key): Fix typo in last change.
19337
193382007-05-07 Stefan Monnier <monnier@iro.umontreal.ca>
19339
19340 * keymap.c (Fdefine_key, Flookup_key): Only do the 0x80->meta_modifier
19341 mapping for unibyte strings.
19342
193432007-05-01 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
19344
19345 * macmenu.c (mac_dialog_show): Apply 2007-04-27 change for xmenu.c.
19346 (Fx_popup_dialog) [MAC_OSX]: Likewise.
19347
193482007-04-29 Richard Stallman <rms@gnu.org>
19349
19350 * insdel.c (replace_range): For undo, record insertion first.
19351
193522007-04-29 Andreas Schwab <schwab@suse.de>
19353
19354 * lisp.h (VECSIZE): Use OFFSETOF.
19355
193562007-04-29 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
19357
19358 * xdisp.c (try_window_reusing_current_matrix): Fix number of
19359 disabled lines.
19360
193612007-04-28 Richard Stallman <rms@gnu.org>
19362
19363 * lread.c (read_escape): In a string, \s is always space.
19364
193652007-04-27 Jan Djärv <jan.h.d@swipnet.se>
19366
19367 * xmenu.c (xdialog_show): Call Fredisplay before showing the dialog.
19368
19369 * gtkutil.c (xg_update_menubar, create_menus): Create empty
19370 submenu for menu bar items.
19371
19372See ChangeLog.10 for earlier changes.
19373
19374;; Local Variables:
19375;; coding: utf-8
19376;; add-log-time-zone-rule: t
aac0c6e3
MR
19377;; End:
19378
76b6f707 19379 Copyright (C) 2007, 2008, 2009 Free Software Foundation, Inc.
aac0c6e3
MR
19380
19381 This file is part of GNU Emacs.
19382
19383 GNU Emacs is free software: you can redistribute it and/or modify
19384 it under the terms of the GNU General Public License as published by
19385 the Free Software Foundation, either version 3 of the License, or
19386 (at your option) any later version.
19387
19388 GNU Emacs is distributed in the hope that it will be useful,
19389 but WITHOUT ANY WARRANTY; without even the implied warranty of
19390 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
19391 GNU General Public License for more details.
19392
19393 You should have received a copy of the GNU General Public License
19394 along with GNU Emacs. If not, see <http://www.gnu.org/licenses/>.
19395
19396;; arch-tag: dfb6ad96-1550-4905-9e53-d2059ee84c40