(syms_of_print): Undo previous change.
[bpt/emacs.git] / src / ChangeLog
1 2009-08-07 Dan Nicolaescu <dann@ics.uci.edu>
2
3 * print.c (syms_of_print): Undo previous change.
4
5 2009-08-05 Teodor Zlatanov <tzz@lifelogs.com>
6
7 * lread.c (read1, syms_of_lread): Read hashtables back from the
8 readable format.
9
10 * print.c (print_preprocess, print_object): Print hashtables fully
11 and readably.
12 (syms_of_print): Provide 'hashtable-print-readable.
13
14 2009-08-02 Adrian Robert <Adrian.B.Robert@gmail.com>
15
16 * nsfont.m (ns_descriptor_to_entity): Handle case when descriptor has
17 no family set.
18 (nsfont_open): Handle case when entity has no family.
19
20 2009-07-29 Adrian Robert <Adrian.B.Robert@gmail.com>
21
22 * nsfont.m (ns_findfonts): Fix 2009-07-24 change to return only one
23 element, not a list, for match case.
24
25 2009-07-28 Kenichi Handa <handa@m17n.org>
26
27 * font.c (font_parse_xlfd): Check DPI and AVGWIDTH properties more
28 rigidly.
29
30 * xfont.c (xfont_list_pattern): Don't ignore the return value of
31 font_parse_xlfd. Check font properties more rigidly.
32
33 2009-07-27 Dan Nicolaescu <dann@ics.uci.edu>
34
35 * s/netbsd.h (SIGNALS_VIA_CHARACTERS): Remove, already defined in bsd-common.h
36
37 2009-07-27 Kenichi Handa <handa@m17n.org>
38
39 * xfaces.c (face_with_height): Call font_clear_prop.
40
41 2009-07-26 Chong Yidong <cyd@stupidchicken.com>
42
43 * dispnew.c (init_display): Use Qx, Qw32, and Qns.
44
45 * xterm.c (x_term_init): Use Qx.
46
47 * nsfont.m (nsfont_draw): Revert 2009-07-15 change.
48
49 * nsterm.m (ns_maybe_dumpglyphs_background): Revert 2009-07-15
50 change.
51 (ns_get_color): Revert 2009-07-16 change.
52
53 2009-07-25 Eli Zaretskii <eliz@gnu.org>
54
55 * lread.c (syms_of_lread) <force_load_messages>: New variable.
56 (Fload): Use it to force load messages, even if NOMESSAGES is
57 non-nil.
58
59 2009-07-25 Ken Raeburn <raeburn@raeburn.org>
60
61 * coding.h (decode_coding_string, encode_coding_string): Use
62 SCHARS macro.
63
64 * lread.c: Rewrite 2009-07-21 changes.
65 (load_depth): Deleted.
66 (Qload_in_progress): New variable.
67 (load_unwind): Don't reference load_depth or load_in_progress.
68 (Fload): Likewise; specbind Qload_in_progress instead.
69 (init_lread): Don't initialize load_depth.
70 (syms_of_lread): Initialize and protect Qload_in_progress.
71
72 2009-07-24 Adrian Robert <Adrian.B.Robert@gmail.com>
73
74 * nsfont.m (ns_findfonts): Correctly return fallback in match case.
75
76 2009-07-23 Yavor Doganov <yavor@gnu.org>
77
78 * nsfont.m (NSFontDescriptor.h): Explicitly include under GNUstep.
79
80 2009-07-23 Adrian Robert <Adrian.B.Robert@gmail.com>
81
82 * nsterm.m (EmacsView-keyUp:): Only act when running under Tiger.
83 Bugs 3792, 3720, 2402.
84 (ns_lookup_indexed_color): Check for bad index.
85 (ns_index_color): Init unused slot to 0.
86 (ns_dumpglyphs_box_or_relief): Replace useless xassert with an if().
87 Bug 3714, possibly 3082.
88
89 2009-07-22 Jason Rumney <jasonr@gnu.org>
90
91 * w32fns.c (w32_wnd_proc) [WM_IME_STARTCOMPOSITION]: Position
92 IME window at cursor (Bug#2570).
93 (w32_wnd_proc) [WM_IME_CHAR]: Release context when finished.
94 (globals_of_w32fns): Dynamically load functions required above.
95
96 * w32term.c (w32_draw_window_cursor): Send message to reposition
97 any IME window.
98
99 2009-07-21 Chong Yidong <cyd@stupidchicken.com>
100
101 * fileio.c: Revert 2009-07-16 changes.
102 (Vauto_save_include_big_deletions): New variable.
103 (Fdo_auto_save): Disable auto-save only if
104 auto-save-include-big-deletions is nil.
105
106 2009-07-21 Chong Yidong <cyd@stupidchicken.com>
107
108 * xdisp.c (move_it_to): For continued lines ending in a tab, take
109 the overflowed pixels into account (Bug#3879).
110
111 2009-07-21 Ken Raeburn <raeburn@raeburn.org>
112
113 * lread.c (load_depth): New variable.
114 (Fload, load_unwind, init_lread): Set it to the load recursion
115 depth; set load_in_progress as a simple boolean based on the
116 current load_depth. (Bug#3892)
117
118 2009-07-20 Adrian Robert <Adrian.B.Robert@gmail.com>
119
120 * nsfont.m (ns_has_attribute): Remove.
121 (ns_findfonts, nsfont_open): Use ns_attribute_fvalue() instead.
122
123 2009-07-18 Juri Linkov <juri@jurta.org>
124
125 * process.c (Fset_process_query_on_exit_flag): Mention killing
126 a buffer in docstring.
127
128 2009-07-17 Kenichi Handa <handa@m17n.org>
129
130 * casetab.c (shuffle): Fix the logic of setting up the cycle.
131
132 2009-07-16 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
133
134 * nsfns.m (Fns_set_alpha): Remove function.
135 (syms_of_nsfns): Don't defsubr it.
136
137 * nsterm.m (ns_get_color): Remove incompatible color formats.
138 (ns_color_to_lisp): Generate #rrggbb color format string.
139
140 2009-07-16 Richard Stallman <rms@gnu.org>
141
142 * fileio.c (Fwrite_region, Fdo_auto_save): Handle save_length = -2.
143 (Fset_buffer_auto_saved): Handle save_length = -2.
144
145 2009-07-16 Chong Yidong <cyd@stupidchicken.com>
146
147 * xterm.c (Qx_gtk_map_stock): New var.
148
149 * gtkutil.c (update_frame_tool_bar): Use Qx_gtk_map_stock instead
150 of calling intern each time.
151
152 2009-07-15 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
153
154 * nsfont.m (nsfont_draw): Remove code for stippling, which actually
155 does tiling.
156
157 * nsterm.m (ns_maybe_dumpglyphs_background): Likewise.
158
159 2009-07-14 Kenichi Handa <handa@m17n.org>
160
161 * font.c (font_vconcat_entity_vectors): New function.
162 (struct font_sort_data): New member font_driver_preference.
163 (font_compare): Check font_driver_preference.
164 (font_sort_entities): The format of the first argument changed.
165 (font_delete_unmatched): Likewise.
166 (font_list_entities): The return type changed.
167 (font_select_entity): The format of the second argument changed.
168 (font_find_for_lface): Adjusted for the above changes. Don't
169 suppress the checking of C even if the repertory supports it.
170 (Flist_fonts): Adjusted for the above changes.
171
172 * ftfont.c (ftfont_spec_pattern): New arg langname. Caller
173 changed.
174 (ftfont_list): Adjusted for the change of ftfont_spec_pattern.
175 Reject a font who has adstyle property that is different from a
176 langname derived from registry property.
177 (ftfont_match): Adjusted for the change of ftfont_spec_pattern.
178
179 2009-07-13 Eli Zaretskii <eliz@gnu.org>
180
181 * dired.c (directory_files_internal) [WINDOWSNT]: Don't make a
182 local copy of dirfilename.
183
184 2009-07-13 Kenichi Handa <handa@m17n.org>
185
186 * chartab.c (sub_char_table_ref_and_range): Fix the range check
187 against max_char.
188
189 * cmds.c (internal_self_insert): Check sym by SYMBOLP before
190 calling XSYMBOL (sym).
191
192 2009-07-11 Eli Zaretskii <eliz@gnu.org>
193
194 * dired.c (directory_files_internal_w32_unwind) [WINDOWSNT]: New
195 function.
196 (directory_files_internal) [WINDOWSNT]: Bind
197 w32-get-true-file-attributes to either t or nil, depending whether
198 the filesystem of the directory is fast or slow.
199
200 * w32.c (logon_network_drive): Don't assume PATH is an absolute
201 file name.
202 (is_slow_fs): New function.
203 (stat): Use it to determine whether to issue more system calls to
204 get accurate file attributes, when w32-get-true-file-attributes is
205 `local'.
206
207 2009-07-10 Jan Djärv <jan.h.d@swipnet.se>
208
209 * xfns.c (Fx_select_font): Remember last font selected in
210 x_last_font_name and use that the next time. Also try the frame
211 parameter font-parameter as default to the font dialog.
212
213 2009-07-10 Kenichi Handa <handa@m17n.org>
214
215 * xftfont.c (xftfont_open): Fix typo: FC_RGBA->FC_HINT_STYLE.
216
217 2009-07-09 Eli Zaretskii <eliz@gnu.org>
218
219 * w32proc.c (syms_of_ntproc) <w32-get-true-file-attributes>: Doc
220 fix.
221
222 * w32.c (stat): Treat UNC file names as residing on remote
223 drives. (Bug#3542)
224
225 2009-07-09 Kenichi Handa <handa@m17n.org>
226
227 * fontset.c (fontset_find_font): Fix previous change.
228
229 2009-07-08 Michael Albinus <michael.albinus@gmx.de>
230
231 * dbusbind.c (xd_initialize, Fdbus_call_method, xd_read_message)
232 (Fdbus_register_signal, Fdbus_register_method): Cleanup memory of
233 error flag.
234
235 2009-07-08 Kenichi Handa <handa@m17n.org>
236
237 * fontset.c (fontset_find_font): Fix the logic of handling
238 charset_matched.
239 (font_for_char): Delete unused var.
240 (generate_ascii_font_name): Delete it.
241
242 * coding.h (JIS_TO_SJIS2): Fix the code range check.
243
244 * coding.c (detect_coding_sjis): Handle shift_jis-2004 correctly.
245 (encode_coding_sjis): Fix the code range check.
246
247 2009-07-07 Chong Yidong <cyd@stupidchicken.com>
248
249 * fileio.c (Fsubstitute_in_file_name, Ffile_name_directory)
250 (Fexpand_file_name): Copy string data properly (Bug#3772).
251
252 2009-07-07 Jan Djärv <jan.h.d@swipnet.se>
253
254 * xterm.c (handle_one_xevent): Only call x_check_fullscreen on the
255 first MapNotify.
256
257 2009-07-07 Kenichi Handa <handa@m17n.org>
258
259 * character.h (unibyte_has_multibyte_table): Delete extern.
260 (UNIBYTE_CHAR_HAS_MULTIBYTE_P): Delete it.
261
262 * charset.c (Fset_charset_priority): Update charset_unibyte.
263 (syms_of_charset): Initialize charset_unibyte.
264
265 * character.c (unibyte_has_multibyte_table): Delete it.
266 (multibyte_char_to_unibyte): Use CHAR_TO_BYTE8 instead of checking
267 charset_unibyte.
268 (multibyte_char_to_unibyte_safe): Likewise.
269 (Funibyte_char_to_multibyte): Don't check charset_unibyte.
270
271 * xdisp.c (get_next_display_element): Decode it->c by
272 charset_unibyte.
273 (x_produce_glyphs): Likewise.
274
275 * .gdbinit (xcharset): Fix the treating $arg0.
276
277 2009-07-04 Eli Zaretskii <eliz@gnu.org>
278
279 Emulation of `getloadavg' on MS-Windows.
280 * w32.c: Include float.h
281 (g_b_init_get_native_system_info, g_b_init_get_system_times)
282 (GetNativeSystemInfo_Proc, GetSystemTimes_Proc): Declare.
283 (get_native_system_info, get_system_times): New functions.
284 (buf_next, buf_prev, sample_system_load, getavg): New subroutines.
285 (getloadavg): Rewrite using GetSystemTimes and GetNativeSystemInfo.
286 (globals_of_w32): Initialize g_b_init_get_native_system_info,
287 g_b_init_get_system_times, and num_of_processors.
288
289 2009-07-03 Jason Rumney <jasonr@gnu.org>
290
291 * w32term.c (w32_initialize): Use standard types.
292
293 2009-07-03 Eli Zaretskii <eliz@gnu.org>
294
295 * dired.c (Ffile_attributes): Decode user and group names by the
296 locale's encoding. (Bug#3443)
297
298 2009-07-03 Dan Nicolaescu <dann@ics.uci.edu>
299
300 * sysdep.c (sys_suspend): Remove USG_JOBCTRL #ifdef, unused.
301 (mkdir): Remove MKDIR_PROTOTYPE #ifdef, unused.
302
303 * callproc.c (child_setup): Use #else instead of a separate #ifdef.
304
305 * term.c (init_tty): Remove spurious #ifdef.
306
307 * m/mips.h: Mention this file is also used for netbsd.
308 * m/pmax.h: Remove file.
309
310 2009-07-03 Jan Djärv <jan.h.d@swipnet.se>
311
312 * xterm.h (struct x_display_info): Add invisible_cursor.
313 (struct x_output): Add current_cursor.
314
315 * xterm.c (XTtoggle_invisible_pointer): New function.
316 (x_define_frame_cursor): Don't define cursor if invisible or the
317 same as before. Set current_cursor.
318 (x_create_terminal): Set toggle_invisible_pointer_hook.
319
320 * xfns.c (make_invisible_cursor): New function.
321 (x_set_mouse_color): Call make_invisible_cursor.
322 Set current_cursor.
323 (x_window): Set current_cursor.
324
325 * termhooks.h (struct terminal): Add toggle_invisible_pointer_hook.
326
327 * keyboard.c (command_loop_1): Call frame_make_pointer_invisible after
328 inserting a character.
329 (read_avail_input): Call frame_make_pointer_visible.
330
331 * frame.c (Vmake_pointer_invisible): New variable.
332 (frame_make_pointer_invisible, frame_make_pointer_visible): New
333 functions.
334 (syms_of_frame): DEFVAR make-pointer-invisible, initialize to Qt.
335
336 * frame.h: Declare frame_make_pointer_invisible and
337 frame_make_pointer_visible.
338 (struct frame): Add pointer_invisible.
339
340 2009-07-02 Jan Djärv <jan.h.d@swipnet.se>
341
342 * gtkutil.c (xg_frame_set_char_size): Do set width/height if the
343 frame isn't visible.
344 (xg_frame_resized): If width/height is -1, get size of window
345 from X server.
346
347 * xterm.c (handle_one_xevent): Call xg_frame_resized for USE_GTK
348 for MapNotify.
349
350 * gtkutil.c (xg_frame_set_char_size): Do not set pixel width/height
351 here or call change_frame_size. Just call flush_and_sync.
352 (flush_and_sync): Reintroduced.
353
354 2009-07-01 Jan Djärv <jan.h.d@swipnet.se>
355
356 * xterm.h (struct x_display_info): Add Xatom_net_wm_state_sticky
357
358 * xterm.c (x_handle_net_wm_state): Also look for sticky.
359 (x_term_init): Initialize Xatom_net_wm_state_sticky.
360
361 * frame.h: Declare Qsticky.
362
363 * w32fns.c (w32_frame_parm_handlers): Set 0 for sticky.
364
365 * nsfns.m (ns_frame_parm_handlers): Ditto.
366
367 * frame.c: Declare Qsticky.
368 (frame_parms): Add sticky.
369
370 * xfns.c (x_frame_parm_handlers): Let x_set_sticky handle sticky.
371
372 * xterm.h: Declare x_set_sticky.
373
374 * xterm.c (x_set_sticky): New function.
375
376 * gtkutil.c (xg_tool_bar_proxy_help_callback): New function.
377 (xg_tool_bar_menu_proxy): Attach enter/leave events to
378 xg_tool_bar_proxy_help_callback.
379
380 * emacs.c (USAGE3, standard_args): Add -mm and --maximized.
381
382 * frame.c: Qmaximized is new.
383 (x_set_frame_parameters): Do not handle fullscreen specially.
384 Only set width and height if explicitly set.
385 (x_set_fullscreen): Handle Qmaximized.
386 (x_set_font, x_figure_window_size): Do not handle fullscreen specially.
387 (syms_of_frame): Initialize Qmaximized.
388
389 * frame.h (fullscreen_type): Add FULLSCREEN_MAXIMIZED. Declare
390 Qfullwidth, Qfullheight, Qfullboth, Qmaximized.
391
392 * xterm.c (handle_one_xevent): Remove call to x_check_fullscreen
393 for Expose event. Add call to x_check_fullscreen for MapNotify event.
394 Remove all code w.r.t. fullscreen from ConfigureNotify event. Do not
395 set gravity to NorthWestGravity when USE_GTK.
396 (set_wm_state): New function.
397 (do_ewmh_fullscreen): Use set_wm_state. Also handle FULLSCREEN_MAXIMIZED.
398 (x_handle_net_wm_state): Handle FULLSCREEN_MAXIMIZED.
399 (x_check_fullscreen): Simplify so we only handle EMWH type of fullscreen
400 or the case when no window manager is running. That means remove calls
401 to x_real_positions and x_fullscreen_adjust.
402
403 * gtkutil.c (flush_and_sync, x_wm_size_hint_off): Remove.
404 (xg_frame_set_char_size): Remove calls to x_wm_size_hint_off and
405 flush_and_sync.
406 (xg_height_changed): New function.
407 (xg_create_frame_widgets): Remove call to gtk_widget_set_size_request
408 and gtk_window_set_policy. Set frame gravity after parsing the geometry
409 string.
410 (xg_update_frame_menubar, free_frame_menubar)
411 (xg_tool_bar_detach_callback, xg_tool_bar_attach_callback)
412 (update_frame_tool_bar, free_frame_tool_bar): Call xg_height_changed.
413 Remove calls to xg_frame_set_char_size.
414
415 2009-07-01 Kenichi Handa <handa@m17n.org>
416
417 * keyboard.c (decode_keyboard_code): New function.
418 (tty_read_avail_input): Decode the input bytes if necessary.
419
420 * coding.c (setup_coding_system): Initialize
421 coding->carryover_bytes to 0.
422 (Fset_keyboard_coding_system_internal): If CODING-SYSTEM is nil,
423 use Qno_conversion.
424
425 2009-07-01 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
426
427 * Makefile.in (SOME_MACHINE_LISP): Add ../lisp/term/common-win.elc.
428
429 2009-06-30 Chong Yidong <cyd@stupidchicken.com>
430
431 * xftfont.c (xftfont_open): Avoid passing NULL argument to
432 XftLockFace.
433
434 2009-06-30 Jason Rumney <jasonr@gnu.org>
435
436 * w32term.c (w32_initialize): Use GetModuleHandle for library that
437 is already loaded.
438 Set user model ID if supported (bug#1849).
439
440 2009-06-29 Jim Meyering <meyering@redhat.com>
441
442 Remove useless if-before-xfree test.
443 * nsfont.m (nsfont_close): Remove useless test.
444 * term.c (delete_tty): Likewise.
445 * w32.c (system_process_attributes): Likewise.
446 * w32font.c (w32font_close): Likewise.
447 * xfaces.c (x_free_gc): Likewise.
448 * xselect.c (buffer): Likewise.
449
450 2009-06-28 Andreas Schwab <schwab@linux-m68k.org>
451
452 * process.c (send_process): Keep decoded string in a local
453 variable and protect it from GC. (Bug#3521)
454
455 2009-06-28 Eli Zaretskii <eliz@gnu.org>
456
457 * term.c (create_tty_output) [MSDOS]: #ifdef away.
458 (tty_free_frame_resources) [MSDOS]: Add a DOS-specific version.
459
460 2009-06-28 Chong Yidong <cyd@stupidchicken.com>
461
462 * xdisp.c (start_display, handle_face_prop)
463 (move_it_vertically_backward, cursor_row_fully_visible_p)
464 (redisplay_window, try_window_id, produce_image_glyph): Delete
465 some #ifdef-ed out code chunks that are now obsolete.
466
467 * xterm.c (x_update_window_begin, x_new_focus_frame)
468 (x_scroll_bar_handle_click, handle_one_xevent)
469 (handle_one_xevent, XTread_socket, x_focus_on_frame)
470 (x_make_frame_visible, x_make_frame_invisible)
471 (x_wm_set_icon_pixmap, x_initialize): Delete some #ifdef-ed out
472 code chunks that are now obsolete.
473
474 2009-06-28 Michael Albinus <michael.albinus@gmx.de>
475
476 * dbusbind.c (XD_SYMBOL_TO_DBUS_TYPE): Convert macro into function
477 xd_symbol_to_dbus_type. With Solaris 2.11, it was said to compile
478 for hours, when optimzation is enabled.
479 (xd_signature, xd_append_arg, xd_retrieve_arg, xd_initialize)
480 (xd_read_message): Make them static.
481
482 2009-06-27 Chuck Blake <cblake@pdos.csail.mit.edu> (tiny change)
483
484 * term.c (turn_on_face): Allow simultaneously bold and dim
485 terminal faces (Bug#3530).
486
487 2009-06-27 Chong Yidong <cyd@stupidchicken.com>
488
489 * frame.c (x_get_arg): Check if dpyinfo is non-NULL.
490
491 * xdisp.c (mouse_face_from_buffer_pos): Fix detection of
492 truncation glyphs (Bug#3686).
493
494 2009-06-27 Glenn Morris <rgm@gnu.org>
495
496 * m/pmax.h: Restore file, with only netbsd portions.
497
498 2009-06-26 David Reitter <david.reitter@gmail.com>
499
500 * nsterm.m (keydown): Avoid infinite loop.
501
502 2009-06-26 Peter Jolly <peter@jollys.org> (tiny change)
503
504 * ftfont.c (get_adstyle_property): Call font_intern_prop with 1 as
505 the arg FORCE_SYMBOL.
506
507 2009-06-25 Kenichi Handa <handa@m17n.org>
508
509 * fontset.c (fontset_find_font): When a usable rfont_def is found
510 in a fallback font-group, make it the first element of the group.
511
512 2009-06-24 Chong Yidong <cyd@stupidchicken.com>
513
514 * emacs-icon.h: Always define gnu_xpm_bits on GTK (bug#3671).
515
516 2009-06-24 Kenichi Handa <handa@m17n.org>
517
518 * fontset.c (fontset_get_font_group): Return 0 if no font-group is
519 set for C.
520 (fontset_font): Record the availability of a font for C both in
521 the realized fontsets of the current one and the default one.
522
523 2009-06-23 Dan Nicolaescu <dann@ics.uci.edu>
524
525 * sysdep.c (child_setup_tty): Remove SIGNALS_VIA_CHARACTERS
526 conditional, it is always defined on AIX.
527
528 2009-06-23 Miles Bader <miles@gnu.org>
529
530 * window.c (Vrecenter_redisplay): New variable.
531 (syms_of_window): Initialize it.
532 (Qtty): New extern declaration.
533 (Frecenter): Only do redisplay if Vrecenter_redisplay requests it.
534
535 2009-06-23 Jim Meyering <meyering@redhat.com>
536
537 * src/ftfont.c (setup_otf_gstring, ftfont_shape_by_flt): Use
538 xmalloc and xrealloc (not malloc and realloc), so subsequent heap
539 pointer dereferences are guaranteed to be valid.
540
541 2009-06-23 Kenichi Handa <handa@m17n.org>
542
543 * emacs.c (main): Call init_font ().
544
545 * font.h (Vfont_log): Extern it.
546 (FONT_ADD_LOG, FONT_DEFERRED_LOG): New macros.
547
548 * font.c (font_sort_entities, font_list_entities)
549 (font_matching_entity, font_open_entity)
550 (font_close_object): Change font_add_log to FONT_ADD_LOG.
551 (Vfont_log): Delete static.
552 (font_log_env_checked): Delete this variable.
553 (font_add_log): Don't check font_log_env_checked.
554 (font_deferred_log): Check Vfont_log.
555 (init_font): New function.
556
557 * ftfont.c: Change font_add_log to FONT_ADD_LOG.
558
559 * w32font.c: Change font_add_log to FONT_ADD_LOG.
560
561 * w32uniscribe.c: Change font_add_log to FONT_ADD_LOG.
562
563 * xfont.c: Change font_add_log to FONT_ADD_LOG.
564
565 * fontset.c (fontset_font): Call FONT_DEFERRED_LOG.
566 (face_for_char): Don't call font_deferred_log here.
567 (font_for_char): Likewise.
568
569 2009-06-22 Chong Yidong <cyd@stupidchicken.com>
570
571 * w32term.c (x_draw_glyph_string): Use the glyph string's width
572 rather than its background_width for drawing the overline and
573 underline (Bug#489).
574
575 * xterm.c (x_draw_glyph_string): Use the glyph string's width
576 rather than its background_width for drawing the overline and
577 underline (Bug#489).
578 (xg_default_icon_file): New variable.
579 (syms_of_xterm): Initialize it to the Emacs SVG icon file.
580 (x_bitmap_icon): Under GTK, use xg_default_icon_file.
581
582 * xdisp.c (Qbefore_string, Qafter_string): Add externs.
583 (load_overlay_strings): Remove externs.
584 (fast_find_position): Function deleted.
585 (mouse_face_from_buffer_pos): New function, based on
586 fast_find_position. Correctly handle before-strings,
587 display-strings, and after-strings (Bug#1220).
588 (note_mouse_highlight): Use mouse_face_from_buffer_pos.
589
590 2009-06-21 Chong Yidong <cyd@stupidchicken.com>
591
592 * xdisp.c (IT_DISPLAYING_WHITESPACE): Define for
593 !HAVE_WINDOW_SYSTEM.
594 (move_it_in_display_line_to, move_it_in_display_line_to)
595 (display_line): Remove #ifdef HAVE_WINDOW_SYSTEM.
596
597 2009-06-21 Chong Yidong <cyd@stupidchicken.com>
598
599 * Branch for 23.1.
600
601 2009-06-21 Jason Rumney <jasonr@gnu.org>
602
603 * w32term.c (keyboard_codepage): New static variable.
604 (w32_read_socket) [WM_INPUTLANGCHANGE]: Update it.
605 (w32_read_socket) [WM_CHAR]: Use it to decode character
606 input (bug#3237).
607 (w32_initialize): Initialize it.
608 (codepage_for_locale): New function.
609
610 2009-06-20 Ken Raeburn <raeburn@raeburn.org>
611
612 * process.c (status_message): Pass Faset index argument as a lisp
613 object, so as to work with USE_LISP_UNION_TYPE.
614
615 2009-06-19 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
616
617 * coding.c (Ffind_coding_systems_region_internal):
618 Cache checked characters.
619
620 2009-06-18 Kenichi Handa <handa@m17n.org>
621
622 * coding.c (decode_coding_iso_2022): Check MSB of bytes more
623 rigidly.
624
625 2009-06-18 Andreas Schwab <aschwab@redhat.com>
626
627 * xdisp.c (redisplay_internal): Check that the frame is still
628 live after redisplay of its windows.
629 (redisplay_windows): Check that the window is still live.
630
631 2009-06-17 Andreas Schwab <schwab@linux-m68k.org>
632
633 * coding.c (detect_coding_utf_16): Fix previous change.
634
635 2009-06-16 Kenichi Handa <handa@m17n.org>
636
637 * coding.c (detect_coding_utf_16): Fix the logic of rejecting
638 UTF-16 by checking the dispersion of Eth and Oth bytes.
639
640 2009-06-15 Andreas Schwab <schwab@linux-m68k.org>
641
642 * coding.c (detect_coding_utf_16): Fix typo counting odd bytes.
643
644 2009-06-15 Kenichi Handa <handa@m17n.org>
645
646 * process.c (status_message): Fix previous change. Be sure to
647 decode a localized string.
648
649 2009-06-15 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
650
651 * xterm.c (x_delete_terminal): Put previous change in #if 0 and
652 add comment explaining why.
653
654 2009-06-14 Sidney Markowitz <sidney@sidney.com>
655
656 * nsmenu.m (EmacsTooltip: setText): Set height of tooltip.
657
658 2009-06-14 Adrian Robert <Adrian.B.Robert@gmail.com>
659
660 * nsfont.m (ns_attribute_value): Remove.
661 (ns_attribute_fvalue): Incorporate code from ns_attribute_value.
662 (ns_has_attribute): Shrink the normal range.
663 (ns_findfonts): Don't worry about requested spec in determining
664 need for synthItal.
665 (ns_get_covering_families): Retain scriptToFamilies.
666
667 2009-06-14 Seiji Zenitani <zenitani@mac.com>
668
669 * xdisp.c [USE_MAC_TOOLBAR]: Remove obsolete definition for Mac Carbon.
670
671 2009-06-11 Kenichi Handa <handa@m17n.org>
672
673 * xdisp.c (x_get_glyph_overhangs): Fix calculation of right
674 overhang for the static composition case.
675
676 2009-06-11 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
677
678 * xdisp.c (x_get_glyph_overhangs): Fix calculation of right
679 overhang for the automatic composition case.
680
681 * xterm.c (x_compute_glyph_string_overhangs): Handle the automatic
682 composition case.
683
684 2009-06-10 Chong Yidong <cyd@stupidchicken.com>
685
686 * xdisp.c (get_next_display_element): When handling wrap-prefix
687 and line-prefix, treat \n as a control character (bug#3502).
688
689 2009-06-10 Kenichi Handa <handa@m17n.org>
690
691 * font.c (font_parse_family_registry): Fix for one-char foundry.
692 (font_sort_entities): Initialize prefer_prop[FONT_AVGWIDTH_INDEX].
693
694 2009-06-09 Dmitry Dzhus <dima@sphinx.net.ru> (tiny change)
695
696 * process.c (status_message): Fix handling of multibyte signal
697 string (Bug#3499).
698
699 2009-06-09 Jim Meyering <meyering@redhat.com>
700
701 * xfaces.c (Fx_load_color_file): Avoid array bounds error if the
702 color name is missing.
703
704 2009-06-09 Kenichi Handa <handa@m17n.org>
705
706 * charset.c (Fmap_charset_chars): In docstring, state clearly that
707 FROM-CODE and TO-CODE are codepoints of CHARSET.
708
709 2009-06-08 Adrian Robert <Adrian.B.Robert@gmail.com>
710
711 * nsterm.m (ns_use_system_highlight_color): Drop, unused.
712
713 2009-06-08 Adrian Robert <Adrian.B.Robert@gmail.com>
714
715 Changes to support :script/:lang/:otf in NS font driver.
716 * nsfont.m (nsfont_escape_name, nsfont_unescape_name)
717 (nsfont_get_family, nsfont_char_width): Rename to ns_ prefix to
718 indicate not part of font driver interface, and change callers.
719 (ns_get_family): Remove pointless null check.
720 (nsfont_spec_to_traits, nsfont_fmember_to_entity): Replace with
721 ns_spec_to_descriptor, ns_descriptor_to_entity.
722 (nsfont_trait_distance, nsfont_make_fontset_for_font): Remove.
723 (ns_attribute_value, ns_attribute_fvalue, ns_has_attribute)
724 (ns_spec_to_descriptor, ns_descriptor_to_entity)
725 (ns_charset_covers, ns_lang_to_script, ns_otf_to_script)
726 (ns_get_req_script, ns_accumulate_script_ranges)
727 (ns_script_to_charset, ns_get_covering_families, ns_findfonts):
728 New functions.
729 (nsfont_list, nsfont_match): Use ns_findfonts.
730 (nsfont_open): Use font descriptor instead of traits.
731 (nsfont_draw): Handle "automatic" (lookup-table) compositions.
732 (dump_glyphstring): Rename to ns_dump_glyphstring.
733
734 * nsterm.h (dump_glyphstring): Rename to ns_dump_glyphstring.
735
736 * nsfns.m (Fns_popup_font_panel): Use shared font manager.
737
738 * fontset.c (fontset_from_font): Remove NS-specific code.
739
740 2009-06-08 Peter Jones <pjones@pmade.com> (tiny change)
741
742 * nsterm.m (ns_draw_window_cursor): Respect cursor_type for
743 nonactive windows.
744
745 2009-06-08 Felix Mueller <felix@enqueue.eu> (tiny change)
746
747 * nsterm.m (ns_init_paths): Append path separator to INFOPATH
748 variable.
749
750 2009-06-08 Wolfgang Lux <wolfgang.lux@gmail.com> (tiny change)
751
752 * keyboard.c (kbd_buffer_get_event): Null-check used_mouse_menu.
753
754 2009-06-07 Chong Yidong <cyd@stupidchicken.com>
755
756 * xdisp.c (move_it_in_display_line_to): On text-only terminals,
757 account for the overflowing of newlines into the last glyph on the
758 display line (Bug#3482).
759
760 2009-06-05 David Reitter <david.reitter@gmail.com>
761
762 * nsselect.m (Fx_own_selection_internal, Fx_selection_exists_p)
763 (Fx_selection_owner_p): Rename from Fns_own_selection_internal,
764 Fns_selection_exists_p, Fns_selection_owner_p.
765
766 2009-06-03 Jason Rumney <jasonr@gnu.org>
767
768 * w32fns.c (x_create_tip_frame): Use the uniscribe font backend if
769 available. (Bug#3379)
770
771 2009-05-29 Kenichi Handa <handa@m17n.org>
772
773 * coding.c (get_translation_table): Check
774 Venable_character_translation.
775
776 2009-05-26 David Reitter <david.reitter@gmail.com>
777
778 * nsterm.m (ns_raise_frame): Only raise frame if visible.
779 (x_make_frame_visible): Move frame to front rather than calling
780 ns_raise_frame().
781 (keyDown:): Do not swallow events that aren't re-sent if frame
782 isn't key window.
783 (drawRect:): Do not set visibility/iconified flags because
784 drawRect may be called by NSView even if the frame is hidden.
785
786 * nsfns.m (Fx_create_frame): Follow other ports in
787 determining visibility; default to t. Ensure async_visible is set.
788
789 2009-05-23 Eli Zaretskii <eliz@gnu.org>
790
791 * dired.c (Ffile_attributes): Doc fix.
792
793 2009-05-22 Chong Yidong <cyd@stupidchicken.com>
794
795 * m/mips.h [GNU_LINUX]: Don't define DATA_START (Bug#2685).
796
797 2009-05-21 Stefan Monnier <monnier@iro.umontreal.ca>
798
799 * xfont.c (xfont_list_pattern): Don't initialize xfont_scripts_cache
800 and xfont_scratch_props.
801 (syms_of_xfont): Do it here instead.
802 (xfont_find_ccl_program): Delete, unused.
803 (xfont_open): Delete unused var `i'.
804
805 2009-05-21 Kenichi Handa <handa@m17n.org>
806
807 * fontset.c (Qlatin): Don't make it static.
808
809 * xfont.c (xfont_chars_supported, xfont_supported_scripts):
810 New functions.
811 (xfont_scripts_cache, xfont_scratch_props): New variables.
812 (Qlatin, Vscalable_fonts_allowed): Extern it.
813 (xfont_list_pattern): Argument changed. Callers changed.
814 Check Vscalable_fonts_allowed. Check the support of a script.
815 (xfont_list): Don't reject a font spec with :script property.
816 (xfont_has_char): Fix setting of encoding.
817 (syms_of_xfont): Staticpro and initialize xfont_scripts_cache and
818 xfont_scratch_props.
819
820 2009-05-19 Kenichi Handa <handa@m17n.org>
821
822 * font.c (font_sort_entities): Rename from font_sort_entites.
823 Callers changed.
824
825 2009-05-18 Kenichi Handa <handa@m17n.org>
826
827 * font.c (font_find_for_lface): Copy SPEC's FONT_TYPE too.
828
829 2009-05-19 Stefan Monnier <monnier@iro.umontreal.ca>
830
831 * frame.c (do_switch_frame) [NS_IMPL_COCOA]: Don't raise any window.
832 (delete_frame) [NS_IMPL_COCOA]: Instead, do it here.
833
834 2009-05-19 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
835
836 * xterm.c (x_delete_display): Don't call XrmDestroyDatabase here.
837 (x_delete_terminal): Dissociate resource database from display and
838 then call XrmDestroyDatabase before closing display.
839
840 2009-05-18 Adrian Robert <Adrian.B.Robert@gmail.com>
841
842 * nsterm.m (ns_read_socket): Remove unused variable.
843 * frame.c (do_switch_frame): Under NS_IMPL_COCOA section, check
844 whether selected frame is viable before raising it (based on patch
845 by David Reitter), and improve commentary.
846 * nsfont.m (nsfont_make_fontset_for_font): Avoid a compiler warning.
847
848 2009-05-15 Kenichi Handa <handa@m17n.org>
849
850 * font.c (Ffont_spec): Check arguments.
851
852 2009-05-14 Chong Yidong <cyd@stupidchicken.com>
853
854 * xfaces.c (tty_supports_face_attributes_p): Recognize unspecified
855 weight when testing attributes (Bug#3282).
856
857 2009-05-11 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
858
859 * gtkutil.c (xg_frame_set_char_size): Set frame pixel width/height to
860 what we expect to get in the next ConfigureNotify event.
861
862 * xftfont.c (xftfont_open): Make sure that Xrender extension is added
863 before Xft one (Bug#1696).
864
865 2009-05-07 David Reitter <david.reitter@gmail.com>
866
867 * nsfns.m (Fx_display_planes): Compute bitplanes using
868 NSBitsPerPixelFromDepth (Bug#3207).
869
870 2009-05-10 Chong Yidong <cyd@stupidchicken.com>
871
872 * editfns.c (Ftranspose_regions): Doc fix (Bug#3248).
873
874 2009-05-10 Ulrich Mueller <ulm@gentoo.org>
875
876 * s/gnu-linux.h: Make GCPROs and UNGCPRO no-ops also on SuperH.
877
878 2009-05-07 David Reitter <david.reitter@gmail.com>
879
880 * nsterm.m (ns_dumpglyphs_stretch, ns_dumpglyphs_image):
881 Respect mouse face background.
882
883 2009-05-07 David Reitter <david.reitter@gmail.com>
884
885 * nsterm.m (note_mouse_movement, ns_frame_up_to_date):
886 Mouse movement/highlight: bracket drawing operations
887 in ns_update_begin and ns_update_end.
888
889 2009-05-06 Stefan Monnier <monnier@iro.umontreal.ca>
890
891 * nsfns.m (ns_get_screen): Rewrite.
892 Don't presume selected-frame is of type `ns'.
893
894 * font.c (font_update_drivers): Sanity fallback to avoid disabling
895 all drivers.
896
897 * nsterm.m (-windowDidResize:): Avoid inf-loop under GNUStep.
898
899 2009-05-06 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
900
901 * keyboard.h (add_user_signal): Fix typo in extern.
902
903 * lisp.h (add_user_signal): Remove extern.
904
905 * unexelf.c (unexec): Consider a section to precede the .bss section
906 if its addresses overlap that of .bss.
907 (unexec) [NS_IMPL_GNUSTEP]: Copy ObjC-related data from old file
908 instead of dumping process.
909
910 2009-05-06 Stefan Monnier <monnier@iro.umontreal.ca>
911
912 * keyboard.c (syms_of_keyboard): Staticpro pending_funcalls.
913
914 2009-05-04 Stefan Monnier <monnier@iro.umontreal.ca>
915
916 * Makefile.in (ctagsfiles1, ctagsfiles2): Include ObjC files in TAGS.
917
918 2009-05-02 Dan Nicolaescu <dann@ics.uci.edu>
919
920 * xterm.c (x_handle_net_wm_state): Move declaration of lval before
921 any statements.
922
923 2009-05-02 Andreas Schwab <schwab@linux-m68k.org>
924
925 * process.c (read_process_output): Make sure the current buffer is
926 always restored.
927
928 * coding.c (record_conversion_result): Don't modify
929 Vlast_code_conversion_error for successful result.
930 (alloc_destination): Don't clobber conversion result. (Bug#1650)
931
932 2009-05-01 Emanuele Giaquinta <emanuele.giaquinta@gmail.com> (tiny change)
933
934 * charset.c (load_charset): Reformat X==Y==Z to (X==Y)==Z.
935 (load_charset_map): Remove unnecessary code.
936
937 2009-04-30 David Reitter <david.reitter@gmail.com>
938
939 * nsterm.m (convert_ns_to_X_keysym): Define function keys f16
940 through f24.
941
942 2009-04-30 Chong Yidong <cyd@stupidchicken.com>
943
944 * xfaces.c (face_at_buffer_position): New arg base_face_id.
945
946 * xdisp.c (handle_face_prop): Pass base_face_id of iterator to
947 face_at_buffer_position.
948 (face_before_or_after_it_pos, get_next_display_element)
949 (note_mouse_highlight): Update face_at_buffer_position call.
950
951 * term.c (term_mouse_highlight):
952 * msdos.c (IT_note_mouse_highlight):
953 * fontset.c (Finternal_char_font):
954 * font.c (font_at, font_range): Update face_at_buffer_position call.
955
956 * dispextern.h (face_at_buffer_position): Update prototype.
957
958 2009-04-30 Kenichi Handa <handa@m17n.org>
959
960 * fontset.c (fontset_find_font): Check if rfont_def is Qnil or not.
961
962 2009-04-29 Andreas Schwab <schwab@linux-m68k.org>
963
964 * callproc.c (Fcall_process): Fix GC protection. Make sure
965 current buffer is always restored.
966
967 2009-04-29 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
968
969 * atimer.c (init_atimer): Also clear stopped_atimers.
970
971 * keyboard.c (init_keyboard) [POLL_FOR_INPUT]: Reset poll_timer.
972
973 * process.c (create_process): Clean up merger residues of
974 2008-07-17 change.
975
976 2009-04-29 Ulrich Mueller <ulm@gentoo.org>
977
978 * lread.c (Vread_circle): New variable.
979 (read1): Disable recursive read if Vread_circle is nil.
980
981 2009-04-29 Kenichi Handa <handa@m17n.org>
982
983 * fontset.h (set_default_ascii_font): Delete extern.
984
985 * fontset.c (set_default_ascii_font): Delete this unused function.
986
987 * frame.c (x_set_font): When ARG is a font-object, check if the
988 font-object matches with the ASCII font-spec of the frame's
989 fontset. If not, create a new fontset for the frame. (Bug #3075)
990
991 2009-04-28 Andreas Schwab <schwab@linux-m68k.org>
992
993 * fns.c (Flocale_info): Protect vector from GC during decoding.
994
995 * process.c (Fstart_process): Protect argv strings from GC during
996 encoding.
997
998 2009-04-27 Andreas Schwab <schwab@linux-m68k.org>
999
1000 * sysdep.c: Include <ctype.h>.
1001
1002 2009-04-27 David Reitter <david.reitter@gmail.com>
1003
1004 * nsfont.m (nsfont_open): Remove unused variable shrink.
1005 Remove commented-out code.
1006
1007 2009-04-26 Johan Bockgård <bojohan@gnu.org>
1008
1009 * keyboard.c (syms_of_keyboard) <input-decode-map>: Doc fix.
1010
1011 2009-04-25 Jason Rumney <jasonr@gnu.org>
1012
1013 * w32font.c (clear_cached_metrics): Remove, unused since 2008-08-02.
1014
1015 2009-04-25 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
1016
1017 * fringe.c (init_fringe_bitmap) [HAVE_X_WINDOWS && WORDS_BIG_ENDIAN]:
1018 Swap bytes in short integer if fringe bitmap width > 8.
1019
1020 2009-04-23 Kenichi Handa <handa@m17n.org>
1021
1022 * xfaces.c (Fx_list_fonts): If a font size is specified in
1023 PATTERN, set it in returned scalable fonts.
1024
1025 2009-04-22 Chong Yidong <cyd@stupidchicken.com>
1026
1027 * keyboard.c (Fset_input_meta_mode): Doc fix.
1028
1029 * dispnew.c (Fsend_string_to_terminal): Doc fix.
1030
1031 * data.c (Fterminal_local_value, Fset_terminal_local_value): Doc
1032 fixes.
1033
1034 * coding.c (Fterminal_coding_system): Doc fix.
1035
1036 * xfns.c (Fx_display_grayscale_p, Fx_display_pixel_width)
1037 (Fx_display_pixel_height, Fx_display_planes)
1038 (Fx_display_color_cells, Fx_server_max_request_size)
1039 (Fx_server_vendor, Fx_server_version, Fx_display_screens)
1040 (Fx_display_mm_height, Fx_display_mm_width)
1041 (Fx_display_backing_store, Fx_display_visual_class)
1042 (Fx_display_save_under, Fx_close_connection, Fx_synchronize): Doc
1043 fixes, replacing "terminal id" with "terminal object".
1044 (check_x_display_info): Handle terminal objects instead of
1045 terminal ids.
1046
1047 * term.c (Ftty_display_color_p, Ftty_display_color_cells)
1048 (Ftty_type, Fcontrolling_tty_p, Ftty_no_underline, Fsuspend_tty)
1049 (Fresume_tty, Vsuspend_tty_functions, Vresume_tty_functions): Doc
1050 fixes, replacing "terminal id" with "terminal object".
1051
1052 2009-04-21 Kenichi Handa <handa@m17n.org>
1053
1054 * font.c (font_load_for_lface): Cancel previous change (bug#2994).
1055 (font_score): Check AVGWIDTH too.
1056
1057 * coding.c (decode_coding_utf_16): Reduce charbuf_end for the
1058 worst case.
1059 (decode_coding_emacs_mule, decode_coding_iso_2022)
1060 (decode_coding_sjis, decode_coding_big5, decode_coding_charset):
1061 Likewise.
1062
1063 2009-04-19 Jason Rumney <jasonr@gnu.org>
1064
1065 The following changes fix Bug#3005 for wide glyphs on each platform,
1066 without reintroducing Bug#1258 for stretch glyphs.
1067
1068 * xterm.c (x_draw_bar_cursor): Limit cursor width differently for
1069 BAR_CURSOR and HBAR_CURSOR. Calculate width of HBAR_CURSOR using
1070 get_phys_cursor_geometry.
1071
1072 * w32term.c (x_draw_bar_cursor): Limit cursor width differently
1073 for BAR_CURSOR and HBAR_CURSOR. Calculate width of HBAR_CURSOR
1074 using get_phys_cursor_geometry.
1075
1076 * nsterm.m (ns_draw_window_cursor): HBAR_CURSOR width already
1077 correctly calculated.
1078
1079 2009-04-19 Jan Djärv <jan.h.d@swipnet.se>
1080
1081 * gtkutil.c (xg_tool_bar_menu_proxy, update_frame_tool_bar): Use
1082 G_CALLBACK instead of GTK_SIGNAL_FUNC which is deprecated.
1083 (xg_initialize): Use g_type_class_ref instead of gtk_type_class which
1084 is deprecated.
1085
1086 2009-04-18 Andreas Schwab <schwab@linux-m68k.org>
1087
1088 * font.c (font_put_frame_data): Use xfree instead of free.
1089
1090 2009-04-17 Juanma Barranquero <lekktu@gmail.com>
1091
1092 * w32font.c (Qja, Qko): Remove declarations.
1093 (syms_of_w32font): Don't DEFSYM them.
1094
1095 2009-04-17 Chong Yidong <cyd@stupidchicken.com>
1096
1097 * font.c (Qja, Qko): Move definitions here from ftfont.c.
1098
1099 * font.h (Qja, Qko): Extern them.
1100
1101 * ftfont.c (Qja, Qko): Remove declarations.
1102
1103 * xfont.c (Qja, Qko): Remove declarations.
1104
1105 2009-04-17 Kenichi Handa <handa@m17n.org>
1106
1107 * editfns.c (Ftranslate_region_internal): Use Fconcat to make a
1108 string from a vector to handle Latin-1 characters correctly.
1109
1110 * ftfont.c (ftfont_pattern_entity): Return a newly allocated
1111 entity even if the cache hits.
1112
1113 2009-04-16 Andreas Schwab <schwab@linux-m68k.org>
1114
1115 * search.c (boyer_moore): Use zero as marker value for a possible
1116 match instead of depending on overflow behavior. (Bug#2844)
1117
1118 * search.c: Use EMACS_INT for buffer positions. Add prototypes.
1119 * lisp.h: Adjust prototypes.
1120
1121 2009-04-16 Chong Yidong <cyd@stupidchicken.com>
1122
1123 * keyboard.c (adjust_point_for_property): Disable 2009-02-12
1124 change (Bug#3003).
1125
1126 2009-04-16 Kenichi Handa <handa@m17n.org>
1127
1128 * xfont.c (xfont_has_char): Special handling of `ja' and `ko'
1129 adstyle.
1130
1131 * xftfont.c (xftfont_has_char): Special handling of `ja' and `ko'
1132 adstyle.
1133
1134 * ftfont.c (Qja, Qko): Don't make them static.
1135 (enum ftfont_cache_for): New enum.
1136 (fc_charset_table): Undo the previous change.
1137 (ftfont_get_latin1_charset): Delete it.
1138 (ftfont_pattern_entity): Check cache by ftfont_lookup_cache. Set
1139 FONT_SIZE_INDEX of the entity to 0 for a scalable font. For a
1140 non-scarable font, try to get AVERAGE_WIDTH.
1141 (ftfont_lookup_cache): Argument FOR-FACE is changed to CACHE_FOR.
1142 Change ft_face_cache from a list of a hash-table. Don't check
1143 `ja' and `ko' adstyle here.
1144 (ftfont_get_fc_charset): Call ftfont_lookup_cache with
1145 FTFONT_CACHE_FOR_CHARET.
1146 (ftfont_get_charset): Undo the previous change.
1147 (ftfont_open): Call ftfont_lookup_cache with
1148 FTFONT_CACHE_FOR_FACE.
1149 (ftfont_close): Likewise.
1150 (ftfont_has_char): Special handling of `ja' and `ko' adstyle.
1151
1152 * font.c (font_sort_entites): Change the meaning of the arg
1153 BEST-ONLY. Don't optimize for VEC of lenght 1.
1154 (font_select_entity): Just return the value of font_sort_entites.
1155
1156 * xfaces.c (merge_face_vectors): Reflect font properties in
1157 to[LFACE_FONT_INDEX] to the other face attributes. Don't call
1158 font_clear_prop if a face attribute doesn't change.
1159
1160 * charset.h (charset_ksc5601): Extern it.
1161
1162 * charset.c (charset_ksc5601): New variable.
1163 (Fdefine_charset_internal): Set charset_ksc5601.
1164 (init_charset_once): Initialize charset_ksc5601 to -1.
1165
1166 2009-04-15 Dan Nicolaescu <dann@ics.uci.edu>
1167
1168 * fileio.c (history_delete_duplicates): Remove unused declaration.
1169
1170 * callint.c (history_delete_duplicates): New declaration.
1171 (Fcall_interactively): Remove command history duplicates when
1172 history_delete_duplicates is true.
1173
1174 2009-04-14 Eli Zaretskii <eliz@gnu.org>
1175
1176 * buffer.c (syms_of_buffer) <line-spacing>: Doc fix.
1177
1178 2009-04-14 Kenichi Handa <handa@m17n.org>
1179
1180 * font.c (Ffont_info): Fix docstring. Fix the second element of
1181 the returned value (bug#2949).
1182
1183 2009-04-14 Chong Yidong <cyd@stupidchicken.com>
1184
1185 * xdisp.c (Vwrap_prefix, Vline_prefix): Reflow docstrings.
1186
1187 2009-04-14 Kenichi Handa <handa@m17n.org>
1188
1189 * xfont.c (xfont_has_char): The font has C if C is ASCII and the
1190 encoding charset is ascii_compatible.
1191
1192 * charset.c (Fdefine_charset_internal): Make charset
1193 ascii-compatible if the method is CHARSET_METHOD_OFFSET, the
1194 code_offset is 0, and covers all ASCII characters.
1195
1196 2009-04-13 Stefan Monnier <monnier@iro.umontreal.ca>
1197
1198 * nsselect.m (symbol_to_nsstring, clean_local_selection_data)
1199 (ns_string_to_pasteboard_internal):
1200 * nsmenu.m (process_dialog):
1201 * nsimage.m (ns_load_image): Use SDATA and ASET where appropriate.
1202 * nsfont.m (nsfont_open): Use XHASH to make it compile with LISP_UNION.
1203 * lisp.h (Fx_load_color_file): Declare.
1204
1205 2009-04-13 Kenichi Handa <handa@m17n.org>
1206
1207 * font.c (font_delete_unmatched): Preserve the order of list
1208 elements.
1209 (font_select_entity): Suppress the code to optimize for the same
1210 kind of fonts.
1211 (font_load_for_lface): Get a font that supports at least ASCII
1212 characters.
1213
1214 * ftfont.c (Qja, Qko): New variables.
1215 (fc_charset_table): Delete uniquifier data for iso8859-1.
1216 (ftfont_get_latin1_charset): New function.
1217 (get_adstyle_property): New function.
1218 (ftfont_pattern_entity): Set FONT_ADSTYLE_INDEX of entity for
1219 bitmap fonts.
1220 (ftfont_lookup_cache): Handle the case that KEY is a font-entity.
1221 Delete iso-8859-1 range from the charset of fonts whose adstyle is
1222 `ko' or `ja'.
1223 (ftfont_get_fc_charset): Call ftfont_lookup_cache with ENTITY.
1224 (ftfont_get_charset): For iso8859-1, call
1225 ftfont_get_latin1_charset.
1226 (ftfont_list): Don't refuse a font spec with non-nil `adstyle'
1227 property.
1228 (ftfont_open): Call ftfont_lookup_cache with ENTITY.
1229 (syms_of_ftfont): DEFSYM Qja and Qko.
1230
1231 2009-04-09 Kenichi Handa <handa@m17n.org>
1232
1233 * charset.c (map_charset_chars): For a charset of `superset'
1234 method, fix calculation of code range.
1235
1236 * font.c (font_put_extra): If VAL is nil, delete the slot for PROP
1237 from the list of extra properties.
1238 (font_clear_prop): Be sure to delete `:name' font property.
1239
1240 2009-04-08 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
1241
1242 * dispnew.c (redraw_overlapping_rows): Fix detection of
1243 overlapping for topmost and bottommost rows.
1244
1245 * ftfont.c (ftfont_text_extents): Fix calculation of
1246 metrics->descent.
1247
1248 2009-04-06 Jason Rumney <jasonr@gnu.org>
1249
1250 * frame.c (x_set_font): Avoid C99 mid-block variable declaration.
1251
1252 2009-04-06 Kenichi Handa <handa@m17n.org>
1253
1254 * ftxfont.c (ftxfont_draw_backgrond): Fix args to XFillRectangle.
1255
1256 * xftfont.c (xftfont_open): Fix setting font->underline_thickness.
1257
1258 2009-04-06 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
1259
1260 * ftfont.c (ftfont_open): Fix checking of the return value of
1261 FT_Load_Char. Fix setting font->underline_thickness.
1262
1263 2009-04-04 Chong Yidong <cyd@stupidchicken.com>
1264
1265 * terminal.c (Fterminal_name, Fdelete_terminal, Fterminal_name)
1266 (Fterminal_parameters, Fterminal_parameter)
1267 (Fset_terminal_parameter): In doc string, refer to terminal
1268 objects rather than terminal ids.
1269
1270 2009-04-04 Eli Zaretskii <eliz@gnu.org>
1271
1272 * dosfns.c (system_process_attributes) [SYSTEM_MALLOC]: Don't call
1273 ret_lim_data. (Bug#2867)
1274
1275 2009-04-03 Chong Yidong <cyd@stupidchicken.com>
1276
1277 * term.c (produce_stretch_glyph): Reduce width of stretch glyphs
1278 so they don't get wider than the window, matching 2006-01-23
1279 change to the partner function in xdisp.c (Bug#2800).
1280
1281 2009-04-03 Kenichi Handa <handa@m17n.org>
1282
1283 * print.c (print_object): Make each lowest sub_char_table start a
1284 new line (Bug#2866).
1285
1286 2009-04-02 Kenichi Handa <handa@m17n.org>
1287
1288 * fontset.c (fontset_font): Record no-font when a fontset
1289 explicitly tells not to try another font-specs.
1290
1291 2009-03-30 Pierre Poissinger <pierre.poissinger@gmail.com> (tiny change)
1292
1293 * charset.c (map_charset_for_dump): Add missing UNGCPRO.
1294
1295 2009-03-30 Kenichi Handa <handa@m17n.org>
1296
1297 * fontset.c (fontset_from_font): Specify only registry in a
1298 font-spec for all characters supported by that registry.
1299
1300 * ftfont.c: Fix previous change. Define ftfont_variation_glyphs
1301 even if HAVE_M17N_FLT is not defined.
1302
1303 2009-03-29 Sebastian Rose <sebastian_rose@gmx.de> (tiny change)
1304
1305 * ftfont.c: Conditionalize prototyping and use of
1306 ftfont_variation_glyphs.
1307
1308 2009-03-28 Stefan Monnier <monnier@iro.umontreal.ca>
1309
1310 * frame.c (delete_frame): Work around compiler bug.
1311
1312 * editfns.c (general_insert_function): Adjust to insdel.c changes.
1313 * insdel.c (prepare_to_modify_buffer, signal_before_change):
1314 Some more EMACS_INT.
1315 * lisp.h (copy_text, count_size_as_multibyte): Fix last change.
1316
1317 * xdisp.c (dump_glyph): Fix typo.
1318
1319 * insdel.c (move_gap, move_gap_both, gap_left, gap_right)
1320 (adjust_markers_gap_motion, adjust_markers_for_delete)
1321 (adjust_markers_for_insert, adjust_point)
1322 (adjust_markers_for_replace, make_gap_larger, make_gap_smaller)
1323 (make_gap, copy_text, count_size_as_multibyte, insert)
1324 (insert_and_inherit, insert_before_markers)
1325 (insert_before_markers_and_inherit, insert_1)
1326 (count_combining_before, count_combining_after, insert_1_both)
1327 (insert_from_string, insert_from_string_before_markers)
1328 (insert_from_string_1, insert_from_gap, insert_from_buffer)
1329 (insert_from_buffer_1, adjust_after_replace)
1330 (adjust_after_replace_noundo, adjust_after_insert, replace_range)
1331 (replace_range_2, del_range, del_range_1, del_range_byte)
1332 (del_range_both, del_range_2, modify_region)
1333 (prepare_to_modify_buffer, signal_before_change)
1334 (signal_after_change, Fcombine_after_change_execute): Use EMACS_INT
1335 for buffer positions and sizes.
1336 * lisp.h: Adjust prototypes accordingly.
1337
1338 * fileio.c (adjust_markers_for_delete): Move declaration to lisp.h.
1339 (non_regular_inserted, non_regular_nbytes, read_non_regular)
1340 (Finsert_file_contents): Use EMACS_INT for buffer positions.
1341
1342 * fileio.c (Finsert_file_contents): Don't limit size to INT_MAX/4.
1343
1344 2009-03-27 Jan Djärv <jan.h.d@swipnet.se>
1345
1346 * frame.c (x_set_font): If the fullscreen property is non-nil, adjust
1347 lines and columns so we keep the same pixel height and width.
1348
1349 * xterm.c (handle_one_xevent): Call x_handle_net_wm_state if
1350 the property _NET_WM_STATE has changed.
1351 (x_handle_net_wm_state): New function to update frame parameter
1352 fullscreen.
1353 (x_term_init): Initialize atoms for _NET_WM_STATE.
1354
1355 * xterm.h (struct x_display_info): Add atoms for _NET_WM_STATE.
1356
1357 2009-03-27 Kevin Ryde <user42@zip.com.au>
1358
1359 * keyboard.c (tty_read_avail_input): Don't treat a -1 return from
1360 Gpm_GetEvent as an error that justifies closing the filedescriptor.
1361 * term.c (close_gpm): Get the filedescriptor as a (new) parameter.
1362 (Fgpm_mouse_stop): Pass that new parameter.
1363 * termhooks.h (close_gpm): Adjust prototype.
1364
1365 2009-03-26 Stefan Monnier <monnier@iro.umontreal.ca>
1366
1367 * lisp.h (Fx_focus_frame): Declare.
1368
1369 * callint.c (Fcall_interactively): For '^' just delegate the work to
1370 handle-shift-selection.
1371 (syms_of_callint): Move declaration of shift-select-mode to simple.el.
1372
1373 2009-03-24 Chong Yidong <cyd@stupidchicken.com>
1374
1375 * editfns.c (Ffloat_time): Doc fix (Bug#2768).
1376
1377 * data.c (Qinteractive_form): New variable.
1378 (Finteractive_form): Use it.
1379
1380 * eval.c (Fcommandp): Use Qinteractive_form.
1381
1382 2009-03-24 Jason Rumney <jasonr@gnu.org>
1383
1384 * fileio.c (Fsubstitute_in_file_name): Always work on a copy.
1385 Calculate total size precisely. Decode environment variables
1386 before substituting. (Bug#38)
1387
1388 2009-03-24 Kenichi Handa <handa@m17n.org>
1389
1390 * font.c (find_font_encoding): Return Qnil for unsupported
1391 encoding (Bug#2722).
1392
1393 2009-03-23 Jan Djärv <jan.h.d@swipnet.se>
1394
1395 * gtkutil.c (xg_display_open): Assign a value to gdpy_def, check
1396 that gdpy is set.
1397
1398 2009-03-22 Alan Mackenzie <acm@muc.de>
1399
1400 * callint.c (Finteractive): Clarify the doc string - even
1401 promptless elements need \n separators.
1402
1403 2009-03-22 Jason Rumney <jasonr@gnu.org>
1404
1405 * w32term.c (syms_of_w32term): Doc fix for
1406 x-use-underline-position-properties.
1407
1408 2009-03-21 Eli Zaretskii <eliz@gnu.org>
1409
1410 * w32.c (getpwuid): Change argument type to unsigned.
1411 (struct w32_id): Change type of `rid' member to unsigned.
1412 (w32_cached_id, w32_add_to_cache, get_name_and_id): Change type of
1413 argument ID to unsigned. All callers changed.
1414 (getuid, geteuid, getgid, getegid): Change return type to unsigned.
1415
1416 2009-03-20 Eli Zaretskii <eliz@gnu.org>
1417
1418 * editfns.c (Fuser_uid, Fuser_real_uid): If UID as EMACS_INT is
1419 negative, produce a float value.
1420
1421 * dired.c (make_uid, make_gid): New functions.
1422 (Ffile_attributes): Use them to avoid negative UID and GID.
1423
1424 2009-03-20 Juanma Barranquero <lekktu@gmail.com>
1425
1426 * keyboard.c (Fcurrent_idle_time): Reflow docstring.
1427 (syms_of_keyboard) <command-hook-internal, input-method-function>:
1428 Fix typos in docstrings.
1429
1430 2009-03-19 Kenichi Handa <handa@m17n.org>
1431
1432 * fontset.c (Fset_fontset_font): When a spec of ASCII font is
1433 changed, use font_load_for_lface to get a new font object.
1434 Call free_realized_fontset after handling ASCII font change.
1435
1436 * frame.c (x_set_font): Handle the case that ARG is a cons.
1437
1438 2009-03-19 Glenn Morris <rgm@gnu.org>
1439
1440 * fileio.c (Fsubstitute_in_file_name): Doc fix.
1441
1442 2009-03-19 Chong Yidong <cyd@stupidchicken.com>
1443
1444 * indent.c (Fvertical_motion): Undo 2005-01-19 change (Bug#2694).
1445
1446 2009-03-19 Kenichi Handa <handa@m17n.org>
1447
1448 * charset.c (load_charset_map_from_file): When a mapfile can't be
1449 loaded, signal an error.
1450
1451 2009-03-18 Eli Zaretskii <eliz@gnu.org>
1452
1453 * dired.c (Ffile_attributes): Make sure UID and GID are always
1454 positive, even if the value is too large for a positive EMACS_INT.
1455 Doc fix.
1456
1457 * editfns.c (Fuser_login_name): Support float arguments. Doc fix.
1458
1459 2009-03-18 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
1460
1461 * xmenu.c (xdialog_show): Move Fredisplay call ...
1462 (Fx_popup_dialog): ... here.
1463
1464 2009-03-18 Stefan Monnier <monnier@iro.umontreal.ca>
1465
1466 * dired.c (file_name_completion): Disable the first optimization just
1467 installed, since it is not implemented correctly.
1468
1469 2009-03-17 Stefan Monnier <monnier@iro.umontreal.ca>
1470
1471 * dired.c (file_name_completion): Check completion-ignored-extensions
1472 only if the entry can affect bestmatch.
1473 Stop the search early, as Ftry_completion already does.
1474
1475 2009-03-17 Chong Yidong <cyd@stupidchicken.com>
1476
1477 * minibuf.c (Vminibuffer_completion_confirm): Doc fix.
1478
1479 2009-03-15 Chong Yidong <cyd@stupidchicken.com>
1480
1481 * keyboard.c (parse_menu_item): Don't display remappings as menu
1482 equivalent bindings (Bug#788).
1483
1484 2009-03-15 Jason Rumney <jasonr@gnu.org>
1485
1486 * w32term.h (WM_EMACS_PAINT): New message.
1487 * w32term.c (w32_read_socket): Use it instead of WM_PAINT.
1488 * w32fns.c (w32_wnd_proc): Change WM_PAINT to WM_EMACS_PAINT
1489 before passing to lisp thread. (Bug#950)
1490
1491 2009-03-14 David Reitter <david.reitter@gmail.com>
1492
1493 * nsterm.m (ns_shutdown_properly, -terminate): Remove global state
1494 variable as it was never reset.
1495 (ns_term_init): Remove initialization of Lisp-settable defaults
1496 and ns_expand_space.
1497 (-setPanelFromDefaultValues): Remove ns_expand_space.
1498 (-showPreferencesWindow): Send new KEY_NS_SHOW_PREFS key.
1499 * nsfont.m (nsfont_open): Remove ns_expand_space, assume -0.5
1500 i.e. no additional spacing, similar to Carbon port.
1501
1502 * nsterm.h: Define KEY_NS_SHOW_PREFS key.
1503 * nsfns.m (ns-popup-prefs-panel): Remove.
1504
1505 2009-03-14 Jan Djärv <jan.h.d@swipnet.se>
1506
1507 * sound.c (alsa_configure): Remove call to deprecated
1508 snd_pcm_sw_params_set_xfer_align.
1509
1510 2009-03-14 Stephen Berman <stephen.berman@gmx.net>
1511
1512 * gtkutil.c (xg_tool_bar_callback): Set focus back to the frame
1513 after clicking in a detached tool bar.
1514 (xg_tool_bar_proxy_callback): Remove call to Fx_focus_frame.
1515
1516 2009-03-13 Stefan Monnier <monnier@iro.umontreal.ca>
1517
1518 * fontset.c (fontset_from_font, Ffontset_info): YAILOM (Yet another
1519 int/Lisp_Object mixup).
1520
1521 2009-03-13 Kenichi Handa <handa@m17n.org>
1522
1523 * fontset.c (Ffontset_info, check_fontset_name): New arg frame.
1524 Handle NAME nil and t correctly. Callers changed.
1525 (font_def_arg, add_arg, from_arg, to_arg): Delete them.
1526 (set_fontset_font): Change ARG to a vector. Handle range_list in
1527 ARG correctly.
1528 (Fset_fontset_font): Fix the case that TARGET is both a script
1529 name and charset name. Adjust the arg to set_fontset_font for
1530 the above change.
1531 (fontset_from_font): Fix previous change.
1532 (Ffontset_info): Adjust for the 2008-07-09 change of fontset
1533 entry. If FONTSET is the default fontset, don't set the extra
1534 slot of the returning char-table.
1535
1536 2009-03-12 Juanma Barranquero <lekktu@gmail.com>
1537
1538 * nsfns.m (Fx_close_connection): Doc fix.
1539 (Fns_do_applescript): Reflow docstring.
1540 (Fns_hide_others, Fns_hide_emacs, Fns_convert_utf8_nfd_to_nfc)
1541 (Fx_display_pixel_width, Fx_display_pixel_height)
1542 (Fns_display_usable_bounds, Fx_display_planes, Fx_show_tip):
1543 Fix typos in docstrings.
1544 (Fns_set_alpha): Fix typos in error messages.
1545
1546 2009-03-12 David Reitter <david.reitter@gmail.com>
1547
1548 * termhooks.h [HAVE_NS]: Define NS_NONKEY_EVENT to be used for
1549 non-key system events on NS. Formerly, NON_ASCII_KEYSTROKE_EVENT
1550 were used for such events.
1551
1552 * nsterm.m (newFrame, openFile, fulfillService, changeFont)
1553 (toggleToolbar, performDragOperation, runHelp): Use it.
1554
1555 * keyboard.c (parse_menu_item) [HAVE_NS]: Treat new event like
1556 NON_ASCII_KEYSTROKE_EVENT, but set used_mouse_menu.
1557
1558 2009-03-11 Kenichi Handa <handa@m17n.org>
1559
1560 * font.h (font_open_by_spec): Extern it.
1561
1562 * font.c (font_open_by_spec): New function.
1563 (font_open_by_name): Use font_open_by_spec.
1564
1565 * frame.c (x_set_font): When ARG is a font-object, don't alter the
1566 fontset of the frame.
1567
1568 * fontset.c (Fset_fontset_font): When a font for ASCII is changed,
1569 modify the default font of frames that use this fontset.
1570 (num_auto_fontsets): New variable.
1571 (fontset_from_font): Use num_auto_fontsets to decide a fontset
1572 name. Be sure to set FONTSET_ASCII to the correct font name.
1573 (update_auto_fontset_alist): New function.
1574
1575 2009-03-11 Juanma Barranquero <lekktu@gmail.com>
1576
1577 * makefile.w32-in: Update dependencies.
1578
1579 2009-03-06 Adrian Robert <Adrian.B.Robert@gmail.com>
1580
1581 * nsfns.m (syms_of_nsfns): Remove Qbuffered.
1582
1583 2009-03-10 Stefan Monnier <monnier@iro.umontreal.ca>
1584
1585 * buffer.c (Fswitch_to_buffer): Revert part of 2008-10-21's change.
1586
1587 2009-03-10 Chong Yidong <cyd@stupidchicken.com>
1588
1589 * lread.c (Feval_buffer): Doc fix.
1590
1591 2009-03-09 Kenichi Handa <handa@m17n.org>
1592
1593 * charset.c (Qfile_name_handler_alist): Extern it.
1594 (load_charset_map_from_file): Temporarily bind
1595 `file-name-handler-alist' to nil while calling openp. (Bug#2435)
1596
1597 2009-03-06 Aaron Ecay <aaronecay@gmail.com> (tiny change)
1598
1599 * nsterm.m (ns_draw_vertical_window_border): Draw 1 pixel wide,
1600 not two, and use NSRectFill instead of NSDrawGroove. (Bug#2352)
1601
1602 2009-03-06 Adrian Robert <Adrian.B.Robert@gmail.com>
1603
1604 * nsterm.m: Include <signal.h> for SIGTERM used in ns_term_shutdown.
1605 (x_set_window_size): Change back to calculated method of setting
1606 toolbar height under Cocoa. (Bug#2546)
1607 (EmacsView-windowWillUseStandardFrame:defaultFrame:): New method.
1608 (EmacsView-drawRect:): Completely shortcircuit if ns_in_resize.
1609
1610 * nsfns.m (ns_appkit_version_int): Fix typo in the version macro.
1611
1612 * nsmenu.m (EmacsMenu-addItemWithWidgetValue:): Don't add
1613 accelerator in parens under GNUstep.
1614
1615 2009-03-06 Kenichi Handa <handa@m17n.org>
1616
1617 These changes are to detect incorrect composition sequence without
1618 looking ahead the source. (Bug#2370)
1619
1620 * coding.h: Include "composite.h".
1621 (enum compisition_state): New enum.
1622 (struct compisition_status): New struct.
1623 (struct iso_2022_spec): New member cmp_status.
1624 (struct emacs_mule_spec): New struct.
1625 (struct coding_system): New members ctext_extended_segment_len and
1626 embedded_utf_8. Change the union member
1627 spec.emacs_mule_full_support to spec.emacs_mule.
1628
1629 * coding.c (CODING_ISO_CMP_STATUS): New macro.
1630 (CODING_ISO_EXTSEGMENT_LEN, CODING_ISO_EMBEDDED_UTF_8): New macros.
1631 (MAX_ANNOTATION_LENGTH): Define to 5.
1632 (ADD_COMPOSITION_DATA): New arg nbytes.
1633 (emacs_mule_char): New arg cmp_status.
1634 (DECODE_EMACS_MULE_COMPOSITION_CHAR): Delete it.
1635 (DECODE_EMACS_MULE_COMPOSITION_RULE_20): New arg c.
1636 (DECODE_EMACS_MULE_COMPOSITION_RULE_21): New arg c.
1637 (DECODE_EMACS_MULE_21_COMPOSITION): Delete the arg c.
1638 (DECODE_EMACS_MULE_20_RELATIVE_COMPOSITION): Likewise.
1639 (DECODE_EMACS_MULE_20_RULEBASE_COMPOSITION): Likewise.
1640 (DECODE_EMACS_MULE_COMPOSITION_START): New macro.
1641 (EMACS_MULE_COMPOSITION_END): New macro.
1642 (emacs_mule_finish_composition): New function.
1643 (EMACS_MULE_MAYBE_FINISH_COMPOSITION): New macro.
1644 (decode_coding_emacs_mule): Avoid long looking ahead while
1645 handling composition.
1646 (DECODE_COMPOSITION_RULE): Argument changed to rule and nbytes.
1647 (ENCODE_COMPOSITION_RULE): New macro.
1648 (finish_composition): New function.
1649 (MAYBE_FINISH_COMPOSITION): Call finish_composition.
1650 (DECODE_COMPOSITION_START): New implementation.
1651 (DECODE_COMPOSITION_END): Likewise.
1652 (STORE_COMPOSITION_RULE): New macro.
1653 (decode_coding_iso_2022): Avoid long looking ahead while handling
1654 composition, CTEXT extended segment, and embedded UTF-8.
1655 (setup_coding_system): For a coding of type iso-2022, reset
1656 CODING_ISO_EXTSEGMENT_LEN (coding) and
1657 CODING_ISO_EMBEDDED_UTF_8 (coding).
1658 (get_translation): Delete arguments last_block, from_nchars,
1659 to_nchars. Callers changed.
1660 (produce_chars): Don't modify charbuf. Adjusted for the change of
1661 get_translation.
1662 (produce_composition): Adjust for the new annotation sequence.
1663 (handle_composition_annotation): Likewise.
1664 (consume_chars): Adjust for the change of get_translation.
1665
1666 2009-03-05 Adrian Robert <Adrian.B.Robert@gmail.com>
1667
1668 * nsterm.m (ns_select): Shortcircuit if reentrant call. (Bug#2564)
1669
1670 2009-03-05 Kenichi Handa <handa@m17n.org>
1671
1672 * font.c (font_select_entity): New function.
1673 (font_find_for_lface): Use font_select_entity to select a font.
1674
1675 * fontset.c (fontset_find_font): If a font found without
1676 restricting to the characters C doesn't support C, try to find a
1677 font with C restriction.
1678
1679 2009-03-04 Nikolaj Schumacher <me@nschum.de>
1680
1681 * nsfont.m (nsfont_draw): Compare ns_antialias_text against lisp value.
1682
1683 2009-03-04 Jason Rumney <jasonr@gnu.org>
1684
1685 * w32fns.c (w32_wnd_proc): Only ignore IME messages for the
1686 characters that have already been read. (Bug#2569)
1687
1688 * image.c (xbm_read_bitmap_data, png_load, svg_load_image):
1689 Log an error message if check_image_size failed.
1690 (xpm_load_image, pbm_load, jpeg_load, tiff_load, gif_load)
1691 (gs_load): Mention max-image-size in size error message. (Bug#2560)
1692
1693 2009-03-02 Eli Zaretskii <eliz@gnu.org>
1694
1695 * callproc.c (Fcall_process): Bind inhibit-modification-hooks to t
1696 when decoding process output.
1697
1698 2009-03-01 Richard M Stallman <rms@gnu.org>
1699
1700 * m/mips.h (DATA_SEG_BITS, XUINT, XSET): Definitions disabled.
1701
1702 * emacs.c (gdb_data_seg_bits) [USE_LSB_TAG]: Make it 0.
1703
1704 2009-02-28 Eli Zaretskii <eliz@gnu.org>
1705
1706 * coding.c (decode_coding_utf_8, decode_coding_utf_16)
1707 (decode_coding_emacs_mule, decode_coding_iso_2022)
1708 (encode_coding_iso_2022, decode_coding_sjis, decode_coding_big5)
1709 (decode_coding_raw_text, decode_coding_charset)
1710 (setup_coding_system, decode_eol, decode_coding, consume_chars):
1711 Honor inhibit-eol-conversion. (Bug #2186)
1712
1713 2009-02-28 Jason Rumney <jasonr@gnu.org>
1714
1715 * coding.c (detect_coding_charset): If not checking latin extra,
1716 fail on characters between 0x80 and 0xA0. (Bug#2354)
1717
1718 2009-02-28 Eli Zaretskii <eliz@gnu.org>
1719
1720 * coding.c (detect_coding_charset): Fix change from 2008-10-21.
1721 Also, check iso-latin-*, not only iso-8859-*. (Bug#2497)
1722
1723 2009-02-27 Glenn Morris <rgm@gnu.org>
1724
1725 * callint.c (Finteractive): Doc fix.
1726
1727 2009-02-27 Kenichi Handa <handa@m17n.org>
1728
1729 * lread.c (read_escape): Signal an error for invalid \UXXXXXXXX.
1730
1731 2009-02-27 Chong Yidong <cyd@stupidchicken.com>
1732
1733 * font.c (font_style_to_value): Set value for unknown symbols to
1734 100 instead of 255.
1735 (weight_table, slant_table, width_table): Treat "unspecified" as
1736 the default value.
1737
1738 2009-02-26 Juanma Barranquero <lekktu@gmail.com>
1739
1740 * fileio.c (Fnext_read_file_uses_dialog_p): Fix typo in docstring.
1741
1742 2009-02-25 Juanma Barranquero <lekktu@gmail.com>
1743
1744 * lread.c (Fload): Stop checking Vloads_in_progress and signal
1745 error as soon as a recursive load is detected.
1746
1747 2009-02-24 Adrian Robert <Adrian.B.Robert@gmail.com>
1748
1749 * nsterm.m (ns_ring_bell): Convert rect to window coordinates
1750 before caching.
1751
1752 2009-02-24 Kenichi Handa <handa@m17n.org>
1753
1754 * fontset.c (fontset_find_font): Fix the condition for checking
1755 unavailable font.
1756
1757 2009-02-24 Glenn Morris <rgm@gnu.org>
1758
1759 * xfaces.c (Finternal_set_font_selection_order): Remove leading
1760 whitespace that confuses documentation.
1761
1762 2009-02-23 Miles Bader <miles@gnu.org>
1763
1764 * process.c (Flist_system_processes, Fprocess_attributes)
1765 (syms_of_process): Rename `system-process-attributes' to
1766 `process-attributes'.
1767
1768 2009-02-22 Andreas Schwab <schwab@linux-m68k.org>
1769
1770 * coding.h (struct coding_system): Make safe_charsets a pointer to
1771 unsigned char.
1772 * coding.c (CODING_ISO_REQUEST): Check for safe_charsets content
1773 being 255.
1774 (SAFE_CHARSET_P): Likewise.
1775 (setup_iso_safe_charsets): Properly setup safe_charsets.
1776 (Fdefine_coding_system_internal): Likewise.
1777 (setup_coding_system): Likewise. Remove unneeded casts.
1778 (detect_coding_iso_2022): Compare Viso_2022_charset_list with
1779 CODING_ATTR_CHARSET_LIST, not CODING_ATTR_SAFE_CHARSETS. Remove
1780 unneeded casts.
1781
1782 * insdel.c (del_range_2): Don't modify gap contents when called
1783 from decode_coding_object. (Bug#1809)
1784
1785 2009-02-21 Chong Yidong <cyd@stupidchicken.com>
1786
1787 * data.c (syms_of_data): Define Qfont_spec, Qfont_entity, and
1788 Qfont_object.
1789 (Ftype_of): Recognize font objects.
1790
1791 * lisp.h: Define Qfont_spec, Qfont_entity, Qfont_object extern.
1792
1793 * font.c (Qfont_spec, Qfont_entity, Qfont_object): Definitions
1794 moved to data.c.
1795
1796 2009-02-20 Adrian Robert <Adrian.B.Robert@gmail.com>
1797
1798 * nsterm.m (x_make_frame_invisible): Unset async_visible,
1799 async_iconified. Based on a patch by Christian Lynbech
1800 <christian.lynbech@tieto.com>.
1801 (EmacsView-windowDidMiniaturize:): Unset async_visible.
1802
1803 2009-02-20 Glenn Morris <rgm@gnu.org>
1804
1805 * syntax.c (Fskip_chars_forward): Fix doc typo.
1806
1807 2009-02-20 Chong Yidong <cyd@stupidchicken.com>
1808
1809 * keymap.c (Fkeymap_parent): Doc fix (Bug#2391).
1810
1811 2009-02-19 Chong Yidong <cyd@stupidchicken.com>
1812
1813 * xfns.c (Fx_create_frame): Give Xft driver a higher priority.
1814
1815 2009-02-19 Kenichi Handa <handa@m17n.org>
1816
1817 * coding.c (detect_coding): Preserve coding->mode.
1818 Don't overflow coding->carryover. (Bug#2370)
1819
1820 2009-02-18 Dan Nicolaescu <dann@ics.uci.edu>
1821
1822 * m/ibmrs6000.h (ADDR_CORRECT): Restore, removed by mistake on 2008-07-23.
1823
1824 2009-02-18 Kenichi Handa <handa@m17n.org>
1825
1826 * font.c (font_check_otf_features): Fix handling of `nil' element.
1827 (Ffont_spec): Describe :lang and :otf in the docstring.
1828
1829 2009-02-16 Andreas Schwab <schwab@suse.de>
1830
1831 * coding.c (Fcheck_coding_systems_region): Fix test for unibyte
1832 string.
1833
1834 2009-02-16 Kenichi Handa <handa@m17n.org>
1835
1836 * coding.c (Fcheck_coding_systems_region): Fix typo; Qt -> Qnil.
1837 (Bug#1723)
1838
1839 2009-02-14 Chong Yidong <cyd@stupidchicken.com>
1840
1841 * dispextern.h (struct iterator_stack_entry): New line_wrap member.
1842
1843 * xdisp.c (push_it, pop_it): Save and restore line_wrap.
1844 (handle_line_prefix): Suppress wrapping of wrap prefixes.
1845
1846 2009-02-14 Eli Zaretskii <eliz@gnu.org>
1847
1848 * msdos.c (MAX_SCREEN_BUF): New macro.
1849 (IT_write_glyphs): Make screen_buf[] always be MAX_SCREEN_BUF-long.
1850 Encode the entire run of glyphs sharing the same face, instead of
1851 doing that one glyph at a time (fixes a bug with displaying
1852 double-size characters).
1853
1854 2009-02-13 Adrian Robert <Adrian.B.Robert@gmail.com>
1855
1856 * nsfns.m (ns-read-file-name): BLOCK_INPUT while showing dialog.
1857
1858 * nsmenu.m (pop_down_menu): Check popup_activated_flag.
1859 (ns_popup_dialog, EmacsDialogPanel-runDialogAt:): Let
1860 pop_down_menu do the cleanup work as it is always called. (Bug#2154)
1861
1862 * nsfont.m (nsfont_make_fontset_for_font): For now, don't try to
1863 set fontset font for "mathematical-" sub-scripts. (Bug #2218)
1864
1865 2009-02-12 Stefan Monnier <monnier@iro.umontreal.ca>
1866
1867 * keyboard.c (adjust_point_for_property): Allow stopping betwen two
1868 invisible areas.
1869
1870 2009-02-12 Jason Rumney <jasonr@gnu.org>
1871
1872 * w32font.c (check_face_name): Check for fake helv. (Bug#2275)
1873 (add_font_entity_to_list): Call check_face_name even when family
1874 is unspecified.
1875
1876 * w32term.c (x_display_pixel_height, x_display_pixel_width):
1877 Release DC when finished. Use NULL window to refer to desktop.
1878 (w32_term_init): Use NULL window to refer to desktop. (Bug#460)
1879
1880 * w32font.c (add_font_entity_to_list): Fix check for substituted
1881 raster fonts. (Bug#2219)
1882
1883 2009-02-12 Kenichi Handa <handa@m17n.org>
1884
1885 * composite.c (MAX_AUTO_COMPOSITION_LOOKBACK): New macro.
1886 (composition_gstring_width): Fix handling of LGLYPH_YOFF.
1887 (autocmp_chars): Use fast_looking_at. Don't compose more
1888 characters than MAX_COMPOSITION_COMPONENTS.
1889 (find_automatic_composition): While looking forward and backward,
1890 check static composition. Fix where to stop looking forward.
1891 (composition_adjust_point): Fix checking of static composition.
1892 (Fcomposition_get_gstring): Pay attention to
1893 MAX_COMPOSITION_COMPONENTS.
1894
1895 * lisp.h (fast_looking_at): Extern it.
1896
1897 * search.c (fast_looking_at): New function.
1898
1899 * term.c (encode_terminal_code): Adjust for the change of
1900 <struct glyph>.u.cmp.to.
1901 (append_composite_glyph): Likewise.
1902
1903 * xdisp.c (fill_gstring_glyph_string): Adjust for the change of
1904 <struct glyph>.u.cmp.to. Check if the glyph belongs to the same
1905 composition.
1906 (append_composite_glyph): Adjust for the change of
1907 <strcut glyph>.u.cmp.to.
1908
1909 2009-02-11 Juanma Barranquero <lekktu@gmail.com>
1910
1911 * casetab.c (init_casetab_once):
1912 * coding.c (ALLOC_CONVERSION_WORK_AREA):
1913 * font.c (font_update_lface):
1914 * fontset.c (Fnew_fontset):
1915 * ftfont.c (ftfont_drive_otf):
1916 * xfont.c (xfont_open):
1917 * xftfont.c (xftfont_get_xft_draw): Remove spurious semicolons.
1918
1919 2009-02-11 Stefan Monnier <monnier@iro.umontreal.ca>
1920
1921 * fileio.c (Fwrite_region): !NILP -> CONSP.
1922
1923 2009-02-10 Andreas Schwab <schwab@suse.de>
1924
1925 * process.c (send_process): Properly relocate pointer into data
1926 when using encoded data. (Bug#2272)
1927
1928 2009-02-08 ARISAWA Akihiro <ari@mbf.sphere.ne.jp>
1929
1930 * coding.c (detect_coding_charset): Fix previous change.
1931
1932 2009-02-08 Jason Rumney <jasonr@gnu.org>
1933
1934 * w32fns.c (w32_hide_hourglass): Handle case where frame
1935 disappeared while hourglass was displayed. (Bug #2193)
1936
1937 2009-02-07 Andreas Schwab <schwab@suse.de>
1938
1939 * unexelf.c (unexec): Fix error message.
1940
1941 2009-02-07 Adrian Robert <Adrian.B.Robert@gmail.com>
1942
1943 * nsterm.m (EmacsApp-sendEvent:): Defer NSApplicationDefined event
1944 when modal window is active. (Bug #2152)
1945 (applicationShouldTerminate:): Remove now-unneeded while loop
1946 around NSRunAlertPanel.
1947
1948 * nsmenu.m (popupSession): New file-global variable.
1949 (pop_down_menu): End the popupSession before closing dialog.
1950 (ns_popup_dialog): BLOCK_INPUT around dialog presentation.
1951 (EmacsDialogPanel-runDialogAt:): Don't place window (superfluous),
1952 don't query NSApp for events (just sleep instead).
1953
1954 2009-02-07 Eli Zaretskii <eliz@gnu.org>
1955
1956 * coding.c (syms_of_coding) <translation-table-for-input>:
1957 Modify doc string to discourage use for character code unification.
1958
1959 2009-02-07 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
1960
1961 * atimer.c (run_timers): Update pending_atimers.
1962
1963 2009-02-06 Chong Yidong <cyd@stupidchicken.com>
1964
1965 * image.c (svg_load_image): Fix last change.
1966
1967 * xfns.c (Fx_create_frame): Signal an error if no font is
1968 found (Bug#2147).
1969
1970 2009-02-05 Juanma Barranquero <lekktu@gmail.com>
1971
1972 * character.c (syms_of_character) <script-representative-chars>:
1973 Fix typo in docstring.
1974
1975 2009-02-04 Adrian Robert <Adrian.B.Robert@gmail.com>
1976
1977 * nsmenu.m (pop_down_menu): New function.
1978 (ns_popup_dialog): Call it on unwind.
1979 (EmacsDialogPanel-runDialogAt:): Check popup_activated_flag and
1980 call timer_check() (Bug#2154).
1981 (EmacsMenu-menuNeedsUpdate:): Don't call ns_update_menu if
1982 handling_signal is set.
1983 (EmacsMenu-fillWithWidgetValue:): Set submenu title.
1984
1985 * config.in: Get rid of COCOA_EXPERIMENTAL_CTRL_G
1986
1987 * s/darwin.h: Same and NO_SOCK_SIGIO as well.
1988
1989 * nsterm.m (ns_read_socket): Same and don't set handling_signal.
1990
1991 * keyboard.c (poll_for_input_1, handle_async_input):
1992 Set handling_signal under HAVE_NS.
1993
1994 2009-02-04 Glenn Morris <rgm@gnu.org>
1995
1996 * fileio.c (Fwrite_region): Doc fix (mention annotate-functions).
1997
1998 2009-02-04 Kenichi Handa <handa@m17n.org>
1999
2000 * Makefile.in (composite.o): Depends on frame.h and termhooks.h.
2001
2002 * charset.c (Fchar_charset): New optional arg restriction.
2003
2004 * coding.h (coding_system_charset_list): Extern it.
2005
2006 * coding.c (coding_system_charset_list): New function.
2007
2008 * composite.c: Include coding.h and termhooks.h.
2009 (composition_gstring_p): Fix for the terminal case.
2010 (composition_gstring_width): Likewise.
2011 (fill_gstring_body): Likewise.
2012 (autocmp_chars): For terminal, call Fcomposition_get_gstring with
2013 the frame.
2014 (composition_compute_stop_pos): Adjust cmp_it->stop_pos if point
2015 is within a composition.
2016 (Fcomposition_get_gstring): Fix the terminal case.
2017
2018 * term.c (encode_terminal_code): Fix handling of composition.
2019 (produce_composite_glyph): For static composition, get pixel_width
2020 from struct composition.
2021
2022 2009-02-02 Andreas Schwab <schwab@suse.de>
2023
2024 * unexelf.c (unexec): Handle unaligned bss offset.
2025
2026 2009-02-01 Adrian Robert <Adrian.B.Robert@gmail.com>
2027
2028 * nsterm.m (ns_read_socket): Copy 2009-01-29 and 2009-01-30
2029 XT,w32read_socket changes to ns_read_socket.
2030
2031 * keyboard.c (handle_interrupt): Don't call
2032 quit_throw_to_read_char() under NS.
2033
2034 * blockinput.h: Remove NS-specific code.
2035
2036 2009-01-30 Dan Nicolaescu <dann@ics.uci.edu>
2037
2038 * dispnew.c (window_change_signal): Don't try to get the size of a
2039 suspended tty frame.
2040 * term.c (Fresume_tty): Resize if the size has changed while the
2041 tty was suspended.
2042
2043 * alloc.c (mark_stack): Properly conditionalize previous change.
2044
2045 2009-01-30 Juanma Barranquero <lekktu@gmail.com>
2046
2047 * w32inevt.c (w32_console_read_socket) [SYNC_INPUT]:
2048 * w32term.c (w32_read_socket) [SYNC_INPUT]:
2049 Remove; this code is not used on Windows.
2050
2051 2009-01-30 Eli Zaretskii <eliz@gnu.org>
2052
2053 * coding.c (detect_eol, decode_eol): Handle text with DOS-style
2054 EOLs that also has stray ^M characters.
2055
2056 2009-01-30 Juanma Barranquero <lekktu@gmail.com>
2057
2058 * atimer.c (run_timers, alarm_signal_handler):
2059 * keyboard.c (pending_signals, handle_async_input, init_keyboard):
2060 * w32inevt.c (w32_console_read_socket):
2061 * w32term.c (w32_read_socket):
2062 * xterm.c (XTread_socket): Use "#ifdef SYNC_INPUT" where appropriate.
2063
2064 2009-01-30 Chong Yidong <cyd@stupidchicken.com>
2065
2066 * callproc.c (Vtemp_file_name_pattern): Remove DEFVAR_LISP.
2067 Initialize it as a relative filename pattern.
2068 (init_callproc): Don't initialize Vtemp_file_name_pattern here.
2069 (Fcall_process_region): Simplify temp file creation using
2070 temporary-file-directory.
2071
2072 2009-01-29 Eli Zaretskii <eliz@gnu.org>
2073
2074 * msdos.c: Rename pending_signals to msdos_pending_signals.
2075 (sig_suspender, sigprocmask): Adjust.
2076
2077 2009-01-29 Chong Yidong <cyd@stupidchicken.com>
2078
2079 * keyboard.c (pending_signals): New var.
2080 (poll_for_input, input_available_signal, init_keyboard): Set it.
2081 (process_pending_signals): New function.
2082
2083 * lisp.h (QUIT): Check pending_signals instead of
2084 interrupt_input_pending. Use process_pending_signals.
2085
2086 * atimer.c (run_timers, alarm_signal_handler): Update pending_signals.
2087
2088 * process.c (wait_reading_process_output): Use process_pending_signals.
2089
2090 * sysdep.c (emacs_write): Use process_pending_signals.
2091
2092 * xterm.c (XTread_socket): Update pending_signals.
2093
2094 * w32term.c (w32_read_socket): Update pending_signals.
2095
2096 * w32inevt.c (w32_console_read_socket): Update pending_signals.
2097
2098 2009-01-29 Kenichi Handa <handa@m17n.org>
2099
2100 * xftfont.c (xftfont_has_char): New function.
2101 (syms_of_xftfont): Register xftfont_has_char in xftfont_driver.
2102
2103 2009-01-29 Adrian Robert <Adrian.B.Robert@gmail.com>
2104
2105 * nsterm.h (EmacsPrefsController.cursorBlinkSlider): Only define
2106 under GNUstep.
2107 (ns_query_color): New declaration.
2108
2109 * nsterm.m (ns_confirm_quit): New variable.
2110 (ns_set_default_prefs, syms_of_nsterm, ns_term_init): Initialize it.
2111 (EmacsApp-applicationShouldTerminate:): Use it.
2112 (EmacsPrefsController): Let user set it.
2113 (ns_query_color): New function.
2114 (ns_defined_color): Use it.
2115 (ns_initialize): Drop.
2116 (ns_term_init): Add two lines from ns_initialize(), and set
2117 input_interrupt_mode to nil.
2118
2119 * image.c (svg_load_image): Don't right-shift background RGB when
2120 obtained from FRAME_BACKGROUND_PIXEL. Under HAVE_NS use ns_query_color.
2121
2122 2009-01-28 Kenichi Handa <handa@m17n.org>
2123
2124 * fontset.c (font_for_char): Use assq_no_quit, not assoc_no_quit.
2125 (fontset_get_font_group): Remember that no font-group is specified
2126 for C.
2127
2128 2009-01-27 Chong Yidong <cyd@stupidchicken.com>
2129
2130 * fns.c (concat): Check for string overflow (bug#1787).
2131
2132 * undo.c (undo_limit, undo_strong_limit, Vundo_outer_limit):
2133 Quadruple undo limits (bug#1501).
2134
2135 2009-01-27 Kenichi Handa <handa@m17n.org>
2136
2137 * ftfont.c (ftfont_has_char): If the arg FONT is a font-object,
2138 directly use GT_Get_Char_index.
2139
2140 * xftfont.c (struct xftfont_info): New member `index'.
2141
2142 * fontset.c (font_for_char): Use assq_no_quit, not assoc_no_quit.
2143 (Ffontset_font): Adjust for the change of fontset entry.
2144
2145 2009-01-26 Kenichi Handa <handa@m17n.org>
2146
2147 * fontset.c (fontset_find_font): Fix handling of non-cons return
2148 value of fontset_get_font_group.
2149 (fontset_font): Revert last change.
2150
2151 2009-01-26 Jason Rumney <jasonr@gnu.org>
2152
2153 * w32font.c (w32font_list_internal): Return quickly if registry is
2154 unknown. Simplify final return.
2155 (add_font_entity_to_list): Break complex logic down into more
2156 manageable chunks. Move unknown registry check to
2157 w32font_list_internal.
2158
2159 2009-01-25 Adrian Robert <Adrian.B.Robert@gmail.com>
2160
2161 Changes to remove Feval calls from GUI under NS.
2162
2163 * nsterm.h: Move KEY_NS_... definitions here from nsterm.m.
2164 Add NS_TOGGLE_TOOLBAR, NS_PUT_WORKING_TEXT, NS_UNPUT_WORKING_TEXT.
2165 Remove NS_INSERT_WORKING_TEXT, NS_DELETE_WORKING_TEXT.
2166
2167 * nsterm.m: Move KEY_NS_... definitions to nsterm.h.
2168 (EmacsView-toggleToolbar:): Use KEY_NS_TOGGLE_TOOLBAR.
2169 (EmacsView-setMarkedText:,-deleteWorkingText:): Use NS_TEXT_EVENT
2170 instead of NON_ASCII_KEYSTROKE_EVENT.
2171 (EmacsApp-terminate:): Use KEY_NS_POWER_OFF instead of Feval.
2172 (EmacsApp-applicationShouldTerminate:): Query user.
2173 (EmacsPreferencesController-runHelp:): Use KEY_NS_INFO_PREFS
2174 instead of Feval.
2175
2176 * termhooks.h (NS_TEXT_EVENT): New event type under HAVE_NS.
2177
2178 * keyboard.c (kbd_buffer_get_event): Check for it.
2179 (keys_of_keyboard): Define lispy keys for
2180 ns-put/unput-working-text.
2181
2182 * nsmenu.m (ns_popup_dialog): Resync window setting with X and W32
2183 versions.
2184 (EmacsDialog-runDialogAt:): Use NSModalPanelRunLoopMode.
2185
2186 2009-01-25 Chong Yidong <cyd@stupidchicken.com>
2187
2188 * dispnew.c (buffer_posn_from_coords): Use Fset_buffer instead of
2189 setting current_buffer directly. (Bug#2044)
2190
2191 2009-01-24 Chong Yidong <cyd@stupidchicken.com>
2192
2193 * fontset.c (fontset_font): If we know there is no font, don't do
2194 any work. (Bug#1952, bug#1990).
2195
2196 * font.c (font_parse_xlfd): Handle patterns of length < 2. (Bug#1802)
2197
2198 2009-01-23 Adrian Robert <Adrian.B.Robert@gmail.com>
2199
2200 * emacs.c (main): Do fork+exec under --daemon in Cocoa.
2201 (ns_no_defaults): New declaration.
2202 (main): Use it.
2203
2204 * nsterm.h (ns_no_defaults): New declaration.
2205
2206 * nsfns.m (x_get_string_resource): Don't read when ns_no_defaults.
2207
2208 * nsterm.m (ns_no_defaults): New variable.
2209 (ns_initialize): Don't read defaults when ns_no_defaults.
2210 (EmacsView-readSelectionFromPasteboard:)
2211 (writeSelectionToPasteboard:types:): New stubbed-out methods for
2212 NSServicesRequests protocol. (Bug#1435)
2213 (ns_dumpglyphs_stretch): New function.
2214 (ns_draw_glyph_string): Use it, parallel Yamamoto Mitsuharu change
2215 of 2008-11-15 to other terms. (Bug#615)
2216
2217 * nsimage.m (setPixmapData:): Set to ignore image DPI.
2218
2219 2009-01-23 Giorgos Keramidas <keramida@freebsd.org> (tiny change)
2220
2221 * alloc.c (mark_stack): Use "flushw" instead of "ta 3" assembly
2222 call for Sparc64.
2223
2224 2009-01-22 Adrian Robert <Adrian.B.Robert@gmail.com>
2225
2226 * nsfns.m:
2227 * nsgui.h:
2228 * nsmenu.m:
2229 * nsselect.m:
2230 * nsterm.h:
2231 * nsterm.m: Remove '23' comments that indicated code added during
2232 update from emacs-20 -> emacs-23.
2233
2234 2009-01-22 Adrian Robert <Adrian.B.Robert@gmail.com>
2235
2236 * nsterm.m (EmavsView-keyDown:): Treat nil as Qnone for
2237 ns_alternate_modifier. (Bug#1217)
2238
2239 * nsmenu.m (EmacsMenu-parseKeyEquiv:, addItemWithWidgetValue:):
2240 Display all shortcuts, including those w/o super modifier.
2241
2242 * nsfns.m (ns-read-file-name): Fix typo in assignment statement.
2243
2244 2009-01-22 Chong Yidong <cyd@stupidchicken.com>
2245
2246 * fileio.c (Vwrite_region_post_annotation_function)
2247 (Vwrite_region_annotation_buffers): New vars.
2248 (build_annotations_unwind): Just reset
2249 Vwrite_region_annotation_buffers.
2250 (Fwrite_region): Initialize Vwrite_region_annotation_buffers.
2251 Call write-region-post-annotation-function.
2252 (build_annotations): Add to Vwrite_region_annotation_buffers if
2253 buffer changes.
2254
2255 2009-01-21 Adrian Robert <Adrian.B.Robert@gmail.com>
2256
2257 * nsterm.h (EmacsApp-setAppleMenu:): Conditionalize more correctly on
2258 Tiger.
2259 * nsfns.m (ns_do_applescript):
2260 Conditionalize typeUTF16ExternalRepresentation on Tiger.
2261
2262 2009-01-21 Wolfgang Lux <wolfgang.lux@gmail.com> (tiny change)
2263
2264 * nsterm.m (EV_TRAILER): Always use emacsframe for frame_or_window.
2265
2266 2009-01-21 Adrian Robert <Adrian.B.Robert@gmail.com>
2267
2268 * nsmenu.m (NSMENUPROFILE): Change #if style.
2269
2270 * nsterm.h (EmacsPrefsController): Add -setPanelFromDefaultValues.
2271
2272 * nsterm.m (x_set_frame_alpha): Add prototype.
2273 (ns_fake_keydown, EmacsView-keyUp:): New variable and function to
2274 handle Ctrl-tab. (Bug#1841)
2275 (ns_get_color): Use unsigned long long for scanned hex string value.
2276 (ns_term_shutdown): Abort on non SIGTERM signals.
2277 (EmacsPrefsController-setDefaultFont:,-setColors:): Raise the frame.
2278 (EmacsPrefsController-setPanelFromDefaultValues): New function.
2279 (EmacsPrefsController-resetToDefaults:): Use it. (Bug#1801)
2280 (ns_font_to_xlfd, ns_fontname_to_xlfd): Remove, unused.
2281 (ns_defined_color): Fix settings of the XColor variable fields:
2282 red,green,blue scale to 2-byte, pixel's parts to 1-byte. (Bug#1663)
2283
2284 * nsimage.m (EmacsImage+allocInitFromFile:): Set to ignore image
2285 DPI. (Bug#1316)
2286 (EmacsImage-setPixelAtX:Y:toRed:green:blue:alpha:): Fix color
2287 values in onTiger section.
2288
2289 2009-01-19 Chong Yidong <cyd@stupidchicken.com>
2290
2291 * xfaces.c (Finternal_set_lisp_face_attribute, Fx_list_fonts):
2292 Check return value of font_spec_from_name.
2293 (Fx_list_fonts): Doc fix. (Bug#1951)
2294
2295 * font.c (font_spec_from_name): Return Qnil if font name could not
2296 be parsed.
2297 (font_parse_name): Treat a `?' character as part of an XLFD.
2298
2299 * fns.c (Fsubstring): Doc fix.
2300
2301 2009-01-19 Kenichi Handa <handa@m17n.org>
2302
2303 * ftfont.c (ftfont_lookup_cache): Check the return value of FcFontList.
2304 (ftfont_list): Likewise.
2305
2306 2009-01-18 Juanma Barranquero <lekktu@gmail.com>
2307
2308 * dbusbind.c (Fdbus_register_signal):
2309 * process.c (conv_sockaddr_to_lisp):
2310 * w32fns.c (Fw32_battery_status): Use empty_unibyte_string.
2311
2312 * callproc.c (Fgetenv_internal): Doc fix.
2313
2314 2009-01-16 Chong Yidong <cyd@stupidchicken.com>
2315
2316 * xfns.c (x_make_gc): Don't allocate stipple member for gc_values;
2317 it is not even used.
2318
2319 2009-01-16 Glenn Morris <rgm@gnu.org>
2320
2321 * font.c (Ffont_variation_glyphs): Silence compiler.
2322
2323 2009-01-15 Juanma Barranquero <lekktu@gmail.com>
2324
2325 * sound.c (SOUND_WARNING): Use _snprintf, for MSVC compatibility.
2326 Reported by David Robinow <drobinow@gmail.com>.
2327
2328 2009-01-15 Kenichi Handa <handa@m17n.org>
2329
2330 * coding.c (detect_coding_system): Fix handling of null_byte_found.
2331
2332 2009-01-14 Jason Rumney <jasonr@gnu.org>
2333
2334 * frame.c (x_set_font): Always store a font to the font parameter,
2335 never a fontset. (Bug#1562)
2336
2337 2009-01-14 Kenichi Handa <handa@m17n.org>
2338
2339 * coding.c (TWO_MORE_BYTES): New macro.
2340 (detect_coding_utf_16): Use TWO_MORE_BYTES instead of ONE_MORE_BYTE.
2341
2342 2009-01-13 Chong Yidong <cyd@stupidchicken.com>
2343
2344 * font.c (font_clear_prop): If clearing the family, clear the font
2345 width index too.
2346
2347 * xfaces.c (Finternal_set_lisp_face_attribute): Revert last change.
2348
2349 2009-01-12 Juanma Barranquero <lekktu@gmail.com>
2350
2351 * sound.c [WINDOWSNT] (SOUND_WARNING): New macro.
2352 (do_play_sound): Use it. Don't pass a hardcoded buffer size to mci
2353 functions, use sizeof.
2354
2355 2009-01-12 Martin Rudalics <rudalics@gmx.at>
2356
2357 * keyboard.c (read_char): Fix case where last_nonmenu_event
2358 returned a bad value with submenus. (Bug#447)
2359
2360 2009-01-12 Chong Yidong <cyd@stupidchicken.com>
2361
2362 * xfaces.c (Finternal_set_lisp_face_attribute): If setting the
2363 family, clear the font width index too.
2364
2365 2009-01-11 Jason Rumney <jasonr@gnu.org>
2366
2367 * keyboard.c (cmd_error_internal): Exit when errors occur before
2368 frame creation and not in daemon mode. (Bug#1836)
2369
2370 2009-01-10 Chong Yidong <cyd@stupidchicken.com>
2371
2372 * xdisp.c (pos_visible_p): When iterator stops on the last glyph
2373 of a display vector, backtrack.
2374 (try_window_reusing_current_matrix): Check glyph type before
2375 referencing charpos member.
2376
2377 2009-01-10 Eli Zaretskii <eliz@gnu.org>
2378
2379 Fix Bug #876:
2380
2381 * coding.c (inhibit_null_byte_detection): New variable.
2382 (detect_coding, detect_coding_system): Don't pay attention to null
2383 bytes if inhibit_null_byte_detection is non-zero.
2384 (syms_of_coding) <inhibit-null-byte-detection>: Declare and document.
2385 <inhibit-iso-escape-detection>: Doc fix.
2386
2387 2009-01-09 Jason Rumney <jasonr@gnu.org>
2388
2389 * w32font.c (add_font_entity_to_list): Don't report unknown
2390 Windows charset as any unrecognized registry. (Bug#1548)
2391 Only report Unicode Plane 2 fonts as unicode-sip.
2392
2393 2009-01-09 Chong Yidong <cyd@stupidchicken.com>
2394
2395 * xfaces.c (Fx_font_family_list): Delete function.
2396 Move compatibility version to faces.el.
2397
2398 * font.c (Ffont_family_list): Return a list of strings, not symbols.
2399
2400 2009-01-09 Martin Rudalics <rudalics@gmx.at>
2401
2402 * frame.c (x_set_frame_parameters): Remember requested value for
2403 fullscreen before it's reset by the parameter handler.
2404
2405 2009-01-09 Glenn Morris <rgm@gnu.org>
2406
2407 * keyboard.c (last_command_char): For clarity, rename to...
2408 (last_command_event): ... and update all users.
2409 (last_input_char): For clarity, rename to...
2410 (last_input_event): ... and update all users.
2411 (last-command-char, last-input-char): Move to subr.el as aliases.
2412 * cmds.c, commands.h: Update for last_command_char rename.
2413
2414 2009-01-08 Chong Yidong <cyd@stupidchicken.com>
2415
2416 * font.c (font_open_for_lface): Handle unspecified height attribute.
2417
2418 2009-01-08 Jason Rumney <jasonr@gnu.org>
2419
2420 * w32fns.c (Vx_pointer_shape, Vx_nontext_pointer_shape)
2421 (Vx_mode_pointer_shape, Vx_window_horizontal_drag_shape)
2422 (Vx_hourglass_pointer_shape, Vx_sensitive_text_pointer_shape):
2423 Don't declare.
2424 (syms_of_w32fns): Don't define x-pointer-shape variable. (Bug#1485)
2425 (x_create_tip_frame) [GLYPH_DEBUG]: Enable image debugging code.
2426
2427 2009-01-07 Kenichi Handa <handa@m17n.org>
2428
2429 * fileio.c (Finsert_file_contents): In the case of replace,
2430 remember the coding system used for decoding in
2431 coding_system (Bug#1039).
2432
2433 * coding.c (decode_coding_utf_8): Check byte_after_cr before
2434 breaking the loop. (Bug#870)
2435 (decode_coding_utf_16, decode_coding_emacs_mule)
2436 (decode_coding_iso_2022, decode_coding_sjis, decode_coding_big5)
2437 (decode_coding_charset): Likewise.
2438
2439 2009-01-05 Martin Rudalics <rudalics@gmx.at>
2440
2441 * frame.c (x_set_frame_parameters): Make sure height (width) get
2442 applied when fullwidth (fullheight) is set. (Bug#1522)
2443
2444 2009-01-04 Juanma Barranquero <lekktu@gmail.com>
2445
2446 * w32.c: Use 64-bit arithmetic to do FILETIME conversions. (Bug#1766)
2447 (utc_base): Declare as ULONGLONG, not long double.
2448 (convert_time_raw): Delete.
2449 (FILETIME_TO_U64, U64_TO_LISP_TIME): New macros.
2450 (initialize_utc_base): New function.
2451 (convert_time): Use FILETIME_TO_U64, initialize_utc_base.
2452 (convert_from_time_t): Use initialize_utc_base; compute result with
2453 64-bit arithmetic.
2454 (process_times): Use FILETIME_TO_U64, U64_TO_LISP_TIME.
2455
2456 2009-01-03 Eli Zaretskii <eliz@gnu.org>
2457
2458 * process.c (Qeuid, Qegid, Qcomm, Qstate, Qppid, Qpgrp, Qsess)
2459 (Qttname, Qminflt, Qmajflt, Qcminflt, Qcmajflt, Qutime, Qstime)
2460 (Qcutime, Qpri, Qnice, Qthcount, Qstart, Qvsize, Qrss, Qargs)
2461 (Quser, Qgroup, Qetime, Qpcpu, Qpmem, Qtpgid, Qcstime)
2462 [!subprocesses]: Define.
2463 (syms_of_process) [!subprocesses]: Intern and staticpro them.
2464 (Flist_system_processes, Fsystem_process_attributes)
2465 [!subprocesses]: Call list_system_processes and
2466 system_process_attributes instead of returning Qnil.
2467
2468 * dosfns.c (system_process_attributes, list_system_processes):
2469 New functions.
2470
2471 * vm-limit.c (ret_lim_data) [MSDOS]: New function.
2472
2473 * sysdep.c (list_system_processes, system_process_attributes) [MSDOS]:
2474 Don't use the default (no-op) implementation.
2475
2476 2009-01-03 Jason Rumney <jasonr@gnu.org>
2477
2478 * keyboard.c (parse_modifiers_uncached): Wheel events are
2479 clicks (bug#687).
2480
2481 * w32term.c (x_query_colors, x_query_color): New functions.
2482
2483 * image.c (x_to_xcolors, png_load): Eliminate W32 specific code.
2484 (svg_load_image): Cast returned pointers from dynamically loaded
2485 functions. Eliminate W32 specific code.
2486
2487 2009-01-02 Dan Nicolaescu <dann@ics.uci.edu>
2488
2489 * nsfns.m (x_set_foreground_color, x_set_background_color)
2490 (x_set_cursor_color, x_set_icon_name, x_explicitly_set_name)
2491 (x_set_title, x_set_icon_type, x_set_cursor_type): Rename to use
2492 x_ prefix instead of ns_. Update references.
2493 (syms_of_nsfns): Add a FIXME comment.
2494
2495 * nsterm.m (x_set_cursor_type): New prototype.
2496 (setValuesFromPanel): Use it instead of the old ns_ prefixed name.
2497
2498 * sysdep.c (system_process_attributes): Provide Qtime and Qctime
2499 for Solaris instead of incorrectly providing Qutime and Qcutime.
2500
2501 2009-01-02 Eli Zaretskii <eliz@gnu.org>
2502
2503 * w32.c (process_times): Compute sum of utime and stime.
2504 (system_process_attributes): Add Qtime to the alist.
2505
2506 * sysdep.c (system_process_attributes): Compute Qtime and Qctime
2507 and add them to the alist.
2508
2509 * process.c (top level) <Qtime, Qctime>: New variables.
2510 (syms_of_process): staticpro them.
2511 (Fsystem_process_attributes): Add their documentation to the doc
2512 string.
2513
2514 * process.h: Declare Qtime and Qctime.
2515
2516 2009-01-02 Jason Rumney <jasonr@gnu.org>
2517
2518 * image.c (Qgobject): New symbol.
2519 (syms_of_image): Initialize it.
2520 (init_svg_functions): Load some functions from gobject library.
2521
2522 2009-01-01 Dan Nicolaescu <dann@ics.uci.edu>
2523
2524 * frame.c (make_terminal_frame): Remove redundant code and useless
2525 block.
2526
2527 2009-01-01 Andreas Schwab <schwab@suse.de>
2528
2529 * process.c (conv_sockaddr_to_lisp): Add workaround for
2530 getsockname bug on BSD.
2531
2532 2009-01-01 Chong Yidong <cyd@stupidchicken.com>
2533
2534 * xfns.c (x_create_tip_frame): Set border width of the X window.
2535
2536 * xfaces.c (Finternal_set_lisp_face_attribute): Improve error message.
2537
2538 2009-01-01 Jason Rumney <jasonr@gnu.org>
2539
2540 * w32term.c (x_new_font): Return font object, not fontset. (Bug#119)
2541 Don't block input, as per earlier xterm.c changes.
2542
2543 2008-12-31 Adrian Robert <Adrian.B.Robert@gmail.com>
2544
2545 * nsfns.m (ns_appkit_version_str): Rename from ns_appkit_version.
2546 (ns_appkit_version_int): New function.
2547 (x-server-version): Use ns_appkit_version_int and follow 21+
2548 convention of returning 3 integers.
2549
2550 2008-12-30 Kenichi Handa <handa@m17n.org>
2551
2552 * character.h (CHAR_VARIATION_SELECTOR_P): New macro.
2553 (CHAR_SURROGATE_PAIR_P): New macro.
2554
2555 * font.h (struct font_driver): New member get_variation_glyphs.
2556
2557 * font.c (font_range): Don't require a font for a variation selector.
2558 (Ffont_variation_glyphs): New function.
2559 (syms_of_font): Defsubr it.
2560
2561 * ftfont.c (ftfont_driver): Set the member get_variation_glyphs to
2562 ftfont_variation_glyphs.
2563 (setup_otf_gstring): New function.
2564 (ftfont_drive_otf): Use it.
2565 (ftfont_shape_by_flt): Handle variation selector.
2566 (ftfont_variation_glyphs): New function.
2567
2568 2008-12-30 Martin Rudalics <rudalics@gmx.at>
2569
2570 * frame.c (Vemacs_iconified): Remove.
2571
2572 2008-12-30 Jason Rumney <jasonr@gnu.org>
2573
2574 * frame.c (store_frame_param, x_get_arg): Enable newer code on
2575 WINDOWSNT too, as related changes have already been synced. (Bug#117)
2576
2577 2008-12-30 Chong Yidong <cyd@stupidchicken.com>
2578
2579 * indent.c (Fvertical_motion): Don't advance iterator if we have
2580 reseated to the desired position.
2581
2582 * xdisp.c (move_it_to): Handle GET_FROM_STRETCH method when
2583 checking for pos match.
2584
2585 2008-12-30 Kenichi Handa <handa@m17n.org>
2586
2587 * insdel.c (copy_text): To convert a non-ASCII char to unibyte,
2588 just get the low 8-bit of the code.
2589
2590 * font.c (font_intern_prop): Validate str as multibyte.
2591
2592 2008-12-29 Dan Nicolaescu <dann@ics.uci.edu>
2593
2594 * dispextern.h (struct face): Move lface and hash from the middle
2595 of bitfields.
2596
2597 * Makefile.in (INTERVALS_H): Rename from INTERVAL_SRC, update all users.
2598
2599 2008-12-29 Dan Nicolaescu <dann@ics.uci.edu>
2600
2601 * Makefile.in (INTERVAL_SRC): Also depend on dispextern.h.
2602 (coding.o, dispnew.o, keymap.o, msdos.o): Depend on INTERVAL_SRC
2603 instead of intervals.h.
2604
2605 2008-12-26 Andreas Schwab <schwab@suse.de>
2606
2607 * keymap.c (map_keymap_char_table_item): Make a copy of KEY if it is a
2608 cons.
2609
2610 2008-12-26 Martin Rudalics <rudalics@gmx.at>
2611
2612 * textprop.c (Qminibuffer_prompt): New variable.
2613 (syms_of_textprop): Initialize it.
2614 * callint.c (Fcall_interactively): For `c', `k', and `K' prompt
2615 in minibuffer-prompt face. (Bug#1662)
2616
2617 2008-12-25 Jason Rumney <jasonr@gnu.org>
2618
2619 * buffer.c (Fbuffer_swap_text): Use POINTER_TYPE.
2620
2621 2008-12-24 Jason Rumney <jasonr@gnu.org>
2622
2623 * ralloc.c (r_alloc_reset_variable): New function.
2624
2625 * buffer.c (Fbuffer_swap_text) [REL_ALLOC]: Reset ralloc's internal
2626 record of what points where. (Bug#716)
2627
2628 2008-12-22 Dan Nicolaescu <dann@ics.uci.edu>
2629
2630 * minibuf.c (read_minibuf): Follow the non-interactive case when
2631 running as a daemon, before detaching.
2632
2633 2008-12-22 Andreas Schwab <schwab@suse.de>
2634
2635 * buffer.c (init_buffer): Use realloc instead of xrealloc.
2636 * gtkutil.c (free_widget_value): Use xfree instead of free.
2637
2638 2008-12-22 Martin Rudalics <rudalics@gmx.at>
2639
2640 * frame.c (delete_frame): New function derived from
2641 Fdelete_frame to handle Qnoelisp value for FORCE argument.
2642 Delete last frame iff FORCE equals Qnoelisp. (Bug#1450)
2643 (Fdelete_frame): Call delete_frame. Remove line from doc-string
2644 saying that FORCE non-nil doesn't run `delete-frame-functions'.
2645 * frame.h: Extern delete_frame.
2646 * window.c (window_loop):
2647 * terminal.c (delete_terminal):
2648 * xterm.c (x_connection_closed):
2649 * xfns.c (Fx_hide_tip):
2650 * w32fns.c (Fx_hide_tip): Call delete_frame instead of Fdelete_frame.
2651
2652 2008-12-21 Jason Rumney <jasonr@gnu.org>
2653
2654 * w32uniscribe.c (uniscribe_encode_char): Return FONT_INVALID_CHAR
2655 when character maps to .notdef character.
2656
2657 2008-12-21 Stefan Monnier <monnier@iro.umontreal.ca>
2658
2659 * keyboard.c (cmd_error_internal): Don't exit in daemon mode, bug#1310.
2660
2661 2008-12-20 Jason Rumney <jasonr@gnu.org>
2662
2663 * frame.c (Fmake_terminal_frame): Raise an error when called from
2664 a graphical frame on Windows. (Bug#1325)
2665
2666 2008-12-20 Jan Djärv <jan.h.d@swipnet.se>
2667
2668 * frame.c (Fdelete_frame): Set f->menu_bar_vector to Qnil.
2669
2670 2008-12-20 Chong Yidong <cyd@stupidchicken.com>
2671
2672 * minibuf.c (Fread_buffer): Doc fix.
2673
2674 2008-12-20 Jason Rumney <jasonr@gnu.org>
2675
2676 * fileio.c (Fexpand_file_name): Do not allow ../ to go beyond the
2677 server name in UNC paths. (Bug#719)
2678
2679 * coding.c (decode_coding): Clear chars_at_source flag when using
2680 charbuf. (Bug#1035)
2681
2682 2008-12-19 Daniel Engeler <engeler@gmail.com>
2683
2684 * sysdep.c (serial_configure): Fix typo.
2685
2686 2008-12-19 Dan Nicolaescu <dann@ics.uci.edu>
2687
2688 * sysdep.c: Include alloca.h.
2689 (system_process_attributes): Add implementation for Solaris.
2690
2691 * s/sol2-10.h (HAVE_PROCFS, _STRUCTURED_PROC): New defines.
2692
2693 2008-12-19 Dan Nicolaescu <dann@ics.uci.edu>
2694
2695 Reorganize implementation of Flist_system_processes and
2696 Fsystem_process_attributes. No functional changes.
2697 * process.c: Don't #include pwd.h, grp.h and limits.h.
2698 (Flist_system_processes): Just call list_system_processes.
2699 (Fsystem_process_attributes): Just call system_process_attributes.
2700 (procfs_list_system_processes, time_from_jiffies)
2701 (ltime_from_jiffies, get_up_time, procfs_ttyname, MAJOR, MINOR)
2702 (procfs_get_total_memory, procfs_system_process_attributes): Move ...
2703
2704 * sysdep.c: ... here. Include pwd.h, grp.h and limits.h.
2705 (list_system_processes): Rename from
2706 procfs_list_system_processes. Enclose in #ifdef HAVE_PROCFS.
2707 Provide a do nothing implementation.
2708 (system_process_attributes): Rename from
2709 procfs_list_system_processes.
2710 (ltime_from_jiffies, get_up_time, procfs_ttyname, MAJOR, MINOR)
2711 (procfs_get_total_memory): Enclose in #ifdef GNU_LINUX.
2712
2713 * w32.c (list_system_processes): Rename from
2714 w32_list_system_processes.
2715 (system_process_attributes): Rename from
2716 w32_system_process_attributes.
2717
2718 * s/gnu-linux.h (LISTPROC, PROCATTR): Remove.
2719
2720 * process.h (w32_list_system_processes)
2721 (w32_system_process_attributes): Remove.
2722 (list_system_processes, system_process_attributes): New
2723 prototypes.
2724
2725 2008-12-19 Kenichi Handa <handa@m17n.org>
2726
2727 * xfont.c (xfont_decode_coding_xlfd): New function.
2728 (xfont_encode_coding_xlfd): New function.
2729 (xfont_list_pattern): Decode XLFD by iso-8859-1.
2730 (xfont_list): Decode and encode XLFD by iso-8859-1.
2731 (xfont_match): Likewise.
2732 (xfont_list_family): Likewise.
2733 (xfont_open): Likewise.
2734
2735 * ftfont.c (ftfont_open): Generate a multibyte string if given
2736 names are utf-8.
2737
2738 * xftfont.c (xftfont_open): Generate a multibyte string if given
2739 names are utf-8.
2740
2741 2008-12-18 Jan Djärv <jan.h.d@swipnet.se>
2742
2743 * gtkutil.c (xg_frame_resized): Remove check if rows/columns have
2744 changed.
2745 (xg_tool_bar_proxy_callback): Put focus on the frame after we have
2746 clicked on a detached tool bar button.
2747
2748 2008-12-18 Dan Nicolaescu <dann@ics.uci.edu>
2749
2750 * emacs.c (main): Print and error and exit when no data is read
2751 from the pipe.
2752
2753 2008-12-17 Jason Rumney <jasonr@gnu.org>
2754
2755 * w32font.c (w32font_has_char): Always return -1.
2756
2757 2008-12-16 Kenichi Handa <handa@m17n.org>
2758
2759 * font.c (font_open_entity): Fix previous change.
2760
2761 2008-12-16 Dan Nicolaescu <dann@ics.uci.edu>
2762
2763 * process.c: Include <limits.h>.
2764
2765 2008-12-16 Chetan Pandya <pandyacus@sbcglobal.net> (tiny change)
2766
2767 * font.c (font_update_drivers): Fix mistake in reconstructing the
2768 driver list.
2769
2770 2008-12-16 Chong Yidong <cyd@stupidchicken.com>
2771
2772 * font.c (font_clear_cache): Fix format of font cache data.
2773
2774 2008-12-15 Chong Yidong <cyd@stupidchicken.com>
2775
2776 * xftfont.c (xftfont_open): Free Xft font pattern if
2777 XftFontOpenPattern fails.
2778
2779 * xterm.c (x_free_frame_resources): Remove extraneous call to
2780 free_frame_faces.
2781
2782 2008-12-13 Chong Yidong <cyd@stupidchicken.com>
2783
2784 * xterm.c (x_delete_display): Move xim_close_dpy call to
2785 x_delete_terminal.
2786 (x_delete_terminal): Call xim_close_dpy.
2787
2788 2008-12-13 Jason Rumney <jasonr@gnu.org>
2789
2790 * w32font.c (intern_font_name): New function.
2791 (add_font_name_to_list, w32_enumfont_pattern_entity): Use it.
2792 (w32font_open_internal, Fx_select_font): Decode font name.
2793 (fill_in_logfont, list_all_matching_fonts): Encode font name.
2794
2795 * w32font.h (intern_font_name): Declare new function.
2796
2797 * w32uniscribe.c (add_opentype_font_name_to_list):
2798 Use intern_font_name.
2799
2800 2008-12-13 Chong Yidong <cyd@stupidchicken.com>
2801
2802 * frame.c (Fdelete_frame): Call free_font_driver_list.
2803
2804 * font.c (free_font_driver_list): Implement missing function.
2805
2806 * w32term.c (w32_term_init): Don't initialize the image cache
2807 here; it will be done in init_frame_faces.
2808
2809 * xterm.h (struct xim_inst_t): Definition moved from xterm.c.
2810 (struct x_display_info): Remove unused member null_pixel. New
2811 member xim_callback_data.
2812
2813 * xterm.c (struct xim_inst_t): Definition moved to xterm.h.
2814 (xim_initialize): Save pointer to callback function data.
2815 (xim_close_dpy): Free callback function data. Call XCloseIM,
2816 reverting 2008-11-04 change by David Smith.
2817 (x_term_init): Don't initialize the image cache here; it will be
2818 done in init_frame_faces. Remove ancient "null_pixel" cruft.
2819 (x_delete_display): Free x_dnd_atoms member.
2820
2821 2008-12-13 Kenichi Handa <handa@m17n.org>
2822
2823 * font.c (font_rescale_ratio): Moved from xfaces.c.
2824 Argument type changed. Handle a font-spec too.
2825 (font_score): Check Vface_font_rescale_alist.
2826 (font_open_entity): Likewise. (Bug#1547)
2827
2828 * xfaces.c (font_rescale_ratio): Moved to font.c.
2829
2830 2008-12-13 Chong Yidong <cyd@stupidchicken.com>
2831
2832 * xfns.c (Fx_wm_set_size_hint): Check if the frame is an X frame.
2833
2834 2008-12-12 Jason Rumney <jasonr@gnu.org>
2835
2836 * w32fns.c (x_display_info_for_name, Fx_open_connection): Set
2837 Vwindow_system_version to the real w32 major version.
2838
2839 2008-12-12 Dan Nicolaescu <dann@ics.uci.edu>
2840
2841 * term.c (init_tty): Move setting the terminal name before the
2842 potential user: maybe_fatal.
2843
2844 2008-12-11 Chong Yidong <cyd@stupidchicken.com>
2845
2846 * term.c (tty_free_frame_resources): Renamed from delete_tty_output;
2847 all callers changed. Call free_frame_faces to free the face cache.
2848
2849 2008-12-11 Jason Rumney <jasonr@gnu.org>
2850
2851 * w32font.c (fill_in_logfont): Don't assume symbol script means
2852 SYMBOL_CHARSET. (Bug#547)
2853
2854 * w32uniscribe.c (uniscribe_encode_char): Increase glyph buffer
2855 size for surrogates. (Bug#1096, bug#872)
2856
2857 2008-12-11 Juanma Barranquero <lekktu@gmail.com>
2858
2859 * w32proc.c (Fw32_get_locale_info): Decode long form of locale name.
2860
2861 2008-12-11 Juanma Barranquero <lekktu@gmail.com>
2862
2863 * process.c (Fsystem_process_attributes, syms_of_process):
2864 Fix typo in name of Ssystem_process_attributes.
2865 Reported by Ulrich Mueller <ulm@kph.uni-mainz.de>.
2866
2867 2008-12-11 Juanma Barranquero <lekktu@gmail.com>
2868
2869 * syntax.c (Fmodify_syntax_entry): Doc fix.
2870
2871 2008-12-10 Juanma Barranquero <lekktu@gmail.com>
2872
2873 * font.c (Ffont_spec): Move usage to end of docstring.
2874
2875 2008-12-10 Jason Rumney <jasonr@gnu.org>
2876
2877 * w32font.c (Qcham): New symbol.
2878 (font_supported_scripts): Add cham, and comments for other new
2879 scripts in bitfield from OpenType spec.
2880 (add_font_entity_to_list): Limit unicode-sip fonts to those that
2881 contain characters beyond the bmp.
2882
2883 2008-12-10 Kenichi Handa <handa@m17n.org>
2884
2885 * ftfont.c (fc_charset_table): Add "unicode-sip".
2886 (ftfont_spec_pattern): Lookup fc_charset_table for the registry
2887 Qunicode_sip.
2888
2889 2008-12-10 Juanma Barranquero <lekktu@gmail.com>
2890
2891 * coding.c (QCdefault_char): Rename from QCdefalut_char.
2892 (Fcoding_system_put): Use QCdefault_char.
2893 (syms_of_coding): Set QCdefault_char, not QCdefalut_char.
2894
2895 2008-12-09 Chong Yidong <cyd@stupidchicken.com>
2896
2897 * xftfont.c (syms_of_xftfont): Fix typo.
2898
2899 * buffer.c (Fbuffer_swap_text): Signal error if swapping a dead buffer.
2900
2901 2008-12-08 Dan Nicolaescu <dann@ics.uci.edu>
2902
2903 * emacs.c (main): Close daemon_pipe on exec.
2904
2905 2008-12-08 Chong Yidong <cyd@stupidchicken.com>
2906
2907 * termchar.h (struct tty): New members termcap_term_buffer and
2908 termcap_strings_buffer.
2909
2910 * term.c (encode_terminal_code): Free any previous memory blocks
2911 before calling xmalloc for encode_terminal_src or encode_terminal_dst.
2912 (maybe_fatal): Buffer argument deleted. Don't free buffer here.
2913 All callers changed.
2914 (init_tty): Store termcap data and string buffers in new struct
2915 tty members termcap_term_buffer and termcap_strings_buffer.
2916 (delete_tty): Free them.
2917 (syms_of_term): Initialize encode_terminal_src and encode_terminal_dst.
2918
2919 2008-12-07 Seiji Zenitani <zenitani@mac.com>
2920
2921 * nsfns.m (ns_set_background_color): Remove code duplication.
2922 It was a substitute for face-transparency on OS X 10.3.
2923
2924 2008-12-06 Chong Yidong <cyd@stupidchicken.com>
2925
2926 * coding.c (make_conversion_work_buffer): Disable buffer
2927 modification hooks in the work buffer.
2928
2929 2008-12-05 Eli Zaretskii <eliz@gnu.org>
2930
2931 * process.c (procfs_system_process_attributes): If `nread' has a
2932 negative value, assign zero to it.
2933
2934 2008-12-05 Chong Yidong <cyd@stupidchicken.com>
2935
2936 * eval.c (Vdebug_on_error): Doc fix.
2937
2938 2008-12-05 Kenichi Handa <handa@m17n.org>
2939
2940 * ftfont.c (ftfont_shape_by_flt): Use "combining" flt if the
2941 second character is a combining character.
2942
2943 2008-12-05 Eli Zaretskii <eliz@gnu.org>
2944
2945 * process.c (procfs_system_process_attributes): Don't use cmd,
2946 cmdsize, and q without initializing them first.
2947
2948 2008-12-04 Jason Rumney <jasonr@gnu.org>
2949
2950 * w32font.c (w32font_draw): Initialize orig_clip before getting
2951 it, and delete it when finished.
2952
2953 2008-12-04 Dan Nicolaescu <dann@ics.uci.edu>
2954
2955 * keyboard.c (kbd_buffer_get_event): Follow the non-interactive
2956 case when running as a daemon before detaching.
2957
2958 2008-12-03 Juanma Barranquero <lekktu@gmail.com>
2959
2960 * w32.c (init_environment): Don't unload library shell32.dll.
2961
2962 2008-12-03 Kenichi Handa <handa@m17n.org>
2963
2964 * font.c (font_at): Set `multibyte' at first.
2965
2966 * coding.c (decode_coding_charset): Check type of an element of
2967 vector VALIDS.
2968 (encode_coding_emacs_mule): Be sure to set `code'.
2969
2970 * fontset.c (face_for_char): Handle invalid charset property correctly.
2971 (font_for_char): Likewise.
2972
2973 2008-12-03 Chong Yidong <cyd@stupidchicken.com>
2974
2975 * font.c (Fopen_font): Compute pixel size correctly.
2976 (font_update_lface): Handle fonts with corrupted size specs,
2977 i.e. non-int and non-float.
2978
2979 * ftfont.c (ftfont_match): Initialize entity variable.
2980 (ftfont_resolve_generic_family): Avoid using uninitialized var.
2981 (ftfont_list_family): Initialize list var earlier.
2982
2983 * xselect.c (Fx_get_cut_buffer_internal): Fix memory leak.
2984
2985 * xterm.c (x_draw_glyph_string): Fall back on
2986 underline_minimum_offset for underline position.
2987
2988 2008-12-03 Dan Nicolaescu <dann@ics.uci.edu>
2989
2990 * keyboard.c (read_char_help_form_unwind): Specify the type for ARG.
2991
2992 * character.c (c_string_width): Specify the type for LEN.
2993
2994 2008-12-03 Kenichi Handa <handa@m17n.org>
2995
2996 * coding.c (decode_coding_utf_16): Initialize consumed_chars_base to 0.
2997 (decode_coding_utf_8): Likewise.
2998 (detect_coding_system): Initialize utf_16_le_eol to -1, val to Qnil.
2999 (produce_chars): Initialize consumed_chars to 0.
3000
3001 2008-12-02 Chong Yidong <cyd@stupidchicken.com>
3002
3003 * keyboard.c (make_lispy_position): Only use PT if the selected
3004 window is current.
3005
3006 2008-12-02 Andreas Schwab <schwab@suse.de>
3007
3008 * font.c (font_unparse_fcname): Fix use of uninitialized variable.
3009
3010 * doprnt.c (doprnt1): Fix size of charbuf.
3011
3012 2008-12-02 Chong Yidong <cyd@stupidchicken.com>
3013
3014 * keyboard.c (timer_check): Revert last change.
3015
3016 2008-12-02 Juanma Barranquero <lekktu@gmail.com>
3017
3018 * makefile.w32-in ($(BLD)/w32console.$(O)): Fix silly, silly typo.
3019
3020 2008-12-01 Juanma Barranquero <lekktu@gmail.com>
3021
3022 * makefile.w32-in: Update dependencies.
3023 (CONFIG_H): Add $(EMACS_ROOT)/nt/inc/sys/time.h.
3024
3025 2008-12-01 Andreas Schwab <schwab@suse.de>
3026
3027 * font.c (register_font_driver): Use xmalloc.
3028 (font_put_frame_data): Likewise.
3029
3030 2008-12-01 Chong Yidong <cyd@stupidchicken.com>
3031
3032 * xfaces.c (realize_x_face): Make abort condition clearer.
3033
3034 * gtkutil.c (update_frame_tool_bar): Initialize variable.
3035
3036 2008-11-30 Chong Yidong <cyd@stupidchicken.com>
3037
3038 * keyboard.c (timer_check): After a timer runs, ensure that the
3039 selected window's buffer is current.
3040
3041 2008-11-30 Juanma Barranquero <lekktu@gmail.com>
3042
3043 * makefile.w32-in ($(BLD)/abbrev.$(O)): Remove.
3044 It was accidentally restored by the Unicode merge.
3045
3046 * w32proc.c (Fw32_get_locale_info): Fix typo in docstring.
3047
3048 2008-11-29 Juanma Barranquero <lekktu@gmail.com>
3049
3050 * w32proc.c: Include "coding.h".
3051 (Fw32_short_file_name): Encode filename passed to Windows API.
3052 (Fw32_long_file_name): Encode filename passed to Windows API and
3053 decode back the result. (Bug#1433)
3054
3055 2008-11-29 Kenichi Handa <handa@m17n.org>
3056
3057 * charset.h (CHAR_CHARSET_P): Check if the encoder is loaded or
3058 not before accessing it.
3059
3060 * charset.c (Fdefine_charset_internal): After calculating
3061 min_char, max_char, and fastmap, copy the charset structure again.
3062 (encode_char): Fix the previous change.
3063
3064 2008-11-28 Seiji Zenitani <zenitani@mac.com>
3065
3066 * frame.c (x_set_alpha) [NS_IMPL_COCOA]: Call x_set_frame_alpha.
3067
3068 * nsfns.m (ns_frame_parm_handlers): Set alpha handler.
3069
3070 * nsterm.m (x_set_frame_alpha): New function.
3071
3072 2008-11-27 Eli Zaretskii <eliz@gnu.org>
3073
3074 * xfaces.c (Fx_font_family_list, syms_of_xfaces): Fix last change.
3075
3076 2008-11-27 Juanma Barranquero <lekktu@gmail.com>
3077
3078 * w32font.c (add_font_entity_to_list): Pass the right LOGFONT
3079 pointer to check_face_name.
3080
3081 2008-11-27 Kenichi Handa <handa@m17n.org>
3082
3083 * category.h (SET_CATEGORY_SET): Call set_category_set.
3084 (set_category_set): Extern it.
3085
3086 * category.c (hash_get_category_set): New function.
3087 (Fmodify_category_entry): Adjusted for the change of
3088 char_table_ref_and_range. Call hash_get_category_set to get a
3089 category set to store in the table.
3090
3091 * character.h (MAYBE_UNIFY_CHAR): Call maybe_unify_char instead of
3092 Funify_charset.
3093
3094 * charset.h (enum charset_method): Delete CHARSET_METHOD_MAP_DEFERRED.
3095 (DECODE_CHAR): Check if the decoder vector is ready.
3096 (ENCODE_CHAR): Check if the encoder char-table is ready.
3097 (maybe_unify_char): Extern it.
3098
3099 * charset.c (Vchar_unified_charset_table): Delete it.
3100 (inhibit_load_charset_map): New variable.
3101 (temp_charset_work): New variable.
3102 (SET_TEMP_CHARSET_WORK_ENCODER, GET_TEMP_CHARSET_WORK_ENCODER)
3103 (SET_TEMP_CHARSET_WORK_DECODER, GET_TEMP_CHARSET_WORK_DECODER):
3104 New macros.
3105 (load_charset_map): Meaning of control_flag changed. If
3106 inhibit_load_charset_map is nonzero, setup a table in
3107 temp_charset_work.
3108 (load_charset): New argument control_flag.
3109 (map_charset_for_dump): New function.
3110 (map_charset_chars): If inhibit_load_charset_map is nonzero, use
3111 map_charset_for_dump.
3112 (Fdefine_charset_internal): If the charset method is MAP, load
3113 mapping tables by calling load_charset.
3114 (Funify_charset): Don't load a mapping table but directly set
3115 Vchar_unify_table.
3116 (maybe_unify_char): New function.
3117 (decode_char): Don't handle the deleted method MAP_DEFERRED.
3118 Handle the case of inhibit_load_charset_map being nonzero.
3119 (encode_char): Don't handle the deleted method MAP_DEFERRED.
3120 Handle the case of inhibit_load_charset_map being nonzero.
3121 (Fclear_charset_maps): Just free temp_charset_work.
3122 (syms_of_charset): Make `inhibit-load-charset-map' a Lisp
3123 variable.
3124
3125 * chartab.c (sub_char_table_ref_and_range): Adjusted for the
3126 change of char_table_ref_and_range.
3127 (char_table_ref_and_range): Change the meaning of argument FROM
3128 and TO. Now the caller must provide initial values for *FROM
3129 and *TO.
3130
3131 * fontset.c (fontset_add): Adjusted for the change of
3132 char_table_ref_and_range.
3133 (fontset_get_font_group): Likewise.
3134 (Ffontset_info): Likewise.
3135
3136 * keymap.c (describe_vector): Adjusted for the change of
3137 char_table_ref_and_range. For char-table, put boundary between
3138 non-ASCII and 8-bit characters.
3139
3140 * print.c (print_object): For bool-vector, delete unnecessary
3141 check of ASCII_BYTE_P.
3142
3143 2008-11-26 Jason Rumney <jasonr@gnu.org>
3144
3145 * w32font.c (w32font_open_internal): Don't include external
3146 leading in font height. (Bug#879)
3147
3148 2008-11-26 Glenn Morris <rgm@gnu.org>
3149
3150 * xfaces.c (Fx_font_family_list): Replace lisp/term/pc-win.el
3151 redefinition with ifdef. (Bug#1383)
3152
3153 2008-11-24 Adrian Robert <Adrian.B.Robert@gmail.com>
3154
3155 * nsterm.m (ns_get_color): Handle long hex strings (fixes bug #1044).
3156
3157 2008-11-24 Wolfgang Lux <wolfgang.lux@gmail.com> (tiny change)
3158
3159 * nsterm.m (-otherMouseDown:, -otherMouseUp:, -otherMouseDragged):
3160 New EmacsView methods.
3161 (EV_UDMODIFIERS, EV_BUTTON): Add OtherMouse constants.
3162 Fixes bug #1048,1357,1414.
3163
3164 2008-11-24 Adrian Robert <Adrian.B.Robert@gmail.com>
3165
3166 Fix bug #1362.
3167 * image.c (x_clear_image_1): Do not free background under HAVE_NS, it
3168 is not an indexed color.
3169 * nsterm.m (free_indexed_color): Add argument checking.
3170 * nsfns.m: Move config.h to before system includes (advised by Dan N.).
3171
3172 2008-11-24 Chong Yidong <cyd@stupidchicken.com>
3173
3174 * minibuf.c (Fcompleting_read, Vminibuffer_completion_confirm):
3175 Document confirm-after-completion value for
3176 minibuffer-completion-confirm.
3177
3178 2008-11-24 Jason Rumney <jasonr@gnu.org>
3179
3180 * w32font.c (check_face_name): Use xstrcasecmp. Avoid compiler
3181 warning.
3182
3183 2008-11-23 Jason Rumney <jasonr@gnu.org>
3184
3185 * w32uniscribe.c (uniscribe_encode_char): Ensure context is
3186 restored before returning.
3187
3188 * w32font.c (check_face_name): New function.
3189 (add_font_entity_to_list): Use it to filter out common substituted
3190 fonts. (Bug#642)
3191
3192 2008-11-22 Martin Rudalics <rudalics@gmx.at>
3193
3194 * buffer.c (Fswitch_to_buffer): Reword and mention new option
3195 confirm-nonexistent-file-or-buffer in doc-string.
3196
3197 2008-11-21 Stefan Monnier <monnier@iro.umontreal.ca>
3198
3199 * buffer.c (Fbuffer_swap_text): Remove redundant marker manipulation.
3200 Fix copy/paste typo. Add checks.
3201
3202 2008-11-21 Kenichi Handa <handa@m17n.org>
3203
3204 * coding.c (detect_coding_iso_2022): Reject invalid composition
3205 sequence.
3206 (DECODE_COMPOSITION_START): If the current source is the last
3207 block, and the current composition doesn't end, regard this
3208 sequence as invalid.
3209 (decode_coding_iso_2022): Handle invalid composition sequence.
3210
3211 2008-11-20 Martin Rudalics <rudalics@gmx.at>
3212
3213 * window.c (coordinates_in_window): Don't return
3214 ON_VERTICAL_BORDER for the rightmost position of a mode/header
3215 line when the window is not the rightmost one. (Bug#1372)
3216
3217 2008-11-16 Ben North <ben@redfrontdoor.org> (tiny change)
3218
3219 * buffer.c (syms_of_buffer): Fix doc-string of cursor-type.
3220
3221 2008-11-15 Eli Zaretskii <eliz@gnu.org>
3222
3223 * msdos.c (run_msdos_command): Don't call dos_ttcooked, dos_ttraw,
3224 and bright_bg if noninteractive is non-zero.
3225
3226 2008-11-15 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
3227
3228 * xterm.c (x_draw_glyph_string): For stretch glyphs, don't call
3229 x_draw_glyph_string_background.
3230
3231 * w32term.c (x_draw_glyph_string): Likewise.
3232
3233 2008-11-15 Chong Yidong <cyd@stupidchicken.com>
3234
3235 * xterm.c (x_draw_glyph_string): Stop drawing the background of
3236 the next glyph string once past the overhang width.
3237
3238 * nsterm.m (ns_draw_glyph_string): Likewise.
3239
3240 * w32term.c (x_draw_glyph_string): Likewise.
3241
3242 2008-11-14 Fabrice Popineau <fabrice.popineau@supelec.fr> (tiny change)
3243
3244 * fileio.c (Finsert_file_contents): Decrement specpdl_ptr to avoid
3245 double file close.
3246
3247 2008-11-14 Martin Rudalics <rudalics@gmx.at>
3248
3249 * window.c (window_loop): In DELETE_BUFFER_WINDOWS case, reset
3250 dedicated status of window before attempting to display another
3251 buffer in it.
3252
3253 2008-11-14 Juanma Barranquero <lekktu@gmail.com>
3254
3255 * msdos.c (Fmsdos_long_file_names):
3256 (syms_of_msdos) <dos-unsupported-char-glyph>:
3257 * dosfns.c (Fint86): Fix typos in docstrings.
3258
3259 2008-11-14 Eli Zaretskii <eliz@gnu.org>
3260
3261 * makefile.w32-in (OBJ1, WIN32OBJ): Fix whitespace.
3262
3263 2008-11-14 Katsumi Yamaoka <yamaoka@jpl.org>
3264
3265 * puresize.h (BASE_PURESIZE): Increase to 1260000.
3266
3267 2008-11-12 Michal Nazarewicz <mina86@tlen.pl> (tiny change)
3268
3269 * frame.c (x_set_alpha): Set alpha to -1 if nil given.
3270
3271 * frame.h: Negative alpha means "don't touch".
3272
3273 * w32term.c (x_set_frame_alpha): Do nothing if alpha is negative.
3274
3275 * xterm.c (x_set_frame_alpha): Do nothing if alpha is negative.
3276
3277 2008-11-12 Dan Nicolaescu <dann@ics.uci.edu>
3278
3279 * hftctl.c:
3280 * chpdef.h:
3281 * acldef.h: Remove files used only for systems no longer supported.
3282
3283 * Makefile.in: Fix .o alphabetical ordering.
3284 (hftctl.o): Remove dependency, file removed.
3285 (keymap.o, print.o): Depend on charset.h.
3286
3287 2008-11-10 Kenichi Handa <handa@m17n.org>
3288
3289 * character.c (Fget_byte): Fix and make it faster for unibyte target.
3290
3291 2008-11-08 Chong Yidong <cyd@stupidchicken.com>
3292
3293 * dired.c (file_name_completion): If completion_ignore_case is
3294 enabled, ignore case when checking completion-regexp-list.
3295
3296 2008-11-08 Eli Zaretskii <eliz@gnu.org>
3297
3298 * vm-limit.c (get_lim_data): Fix last change.
3299
3300 2008-11-08 Kenichi Handa <handa@m17n.org>
3301
3302 * character.c (Fget_byte): New function.
3303 (syms_of_character): Defsubr Fget_byte.
3304
3305 2008-11-07 Chong Yidong <cyd@stupidchicken.com>
3306
3307 * xdisp.c (try_window_reusing_current_matrix): Ensure that window
3308 cursor position is valid after scrolling.
3309
3310 2008-11-06 Juanma Barranquero <lekktu@gmail.com>
3311
3312 * fns.c (Frandom): Rename arg N to LIMIT to match the docs; doc fix.
3313
3314 2008-11-06 Glenn Morris <rgm@gnu.org>
3315
3316 * xterm.c (handle_one_xevent): Don't let popup menus cause
3317 mouse-autoselect-window related window switching. (Bug#1261)
3318
3319 2008-11-04 David Smith <davidsmith@acm.org> (tiny change)
3320
3321 * xterm.c (xim_close_dpy): Avoid double-free on X11R6 XIM.
3322
3323 2008-11-04 Andreas Schwab <schwab@suse.de>
3324
3325 * xfns.c (Fx_wm_set_size_hint): Add missing return value.
3326
3327 2008-11-03 Chong Yidong <cyd@stupidchicken.com>
3328
3329 * xfns.c (Fx_wm_set_size_hint): New function.
3330
3331 2008-11-03 Martin Rudalics <rudalics@gmx.at>
3332
3333 * textprop.c (Fprevious_single_char_property_change): Return 0
3334 when there's no change in a string. (Bug#1301)
3335
3336 2008-11-02 Martin Rudalics <rudalics@gmx.at>
3337
3338 * frame.c (do_switch_frame): New argument NORECORD passed to
3339 Fselect_window.
3340 (Fselect_frame): New argument NORECORD passed to
3341 do_switch_frame.
3342 (Fset_frame_selected_window): New argument NORECORD passed to
3343 Fselect_frame.
3344 (Fhandle_switch_frame, Fdelete_frame): Handle NORECORD argument
3345 in call of do_switch_frame.
3346 (Fset_mouse_position, Fset_mouse_pixel_position, Fraise_frame):
3347 Handle NORECORD argument in call of Fselect_frame.
3348 * lisp.h (do_switch_frame, Fselect_frame)
3349 (Fset_frame_selected_window): Adjust declarations.
3350 * window.c (select_frame_norecord): New function.
3351 (run_window_configuration_change_hook): Use it and call
3352 Fselect_frame with NORECORD set.
3353 (Fselect_window): Pass NORECORD to Fselect_frame.
3354 (Fset_window_configuration): Handle NORECORD argument in call of
3355 do_switch_frame.
3356 * minibuf.c (choose_minibuf_frame): Handle NORECORD in call of
3357 Fset_frame_selected_window.
3358 * keyboard.c (command_loop_1): Handle NORECORD in call of
3359 Fselect_frame (currently ifdefd).
3360
3361 2008-11-02 Ulrich Mueller <ulm@kph.uni-mainz.de>
3362
3363 * emacs.c (USAGE2): Untabify.
3364
3365 2008-11-01 Stefan Monnier <monnier@iro.umontreal.ca>
3366
3367 * composite.c (fill_gstring_header): Fix copy/paste typo.
3368
3369 2008-10-31 Martin Rudalics <rudalics@gmx.at>
3370
3371 * window.c (Fnext_window, Fprevious_window): Rewrite doc-string.
3372 (Fother_window): Rename argument and rewrite doc-string.
3373 (select_window_norecord): Fix return value. (Bug#1276)
3374
3375 2008-10-30 Juanma Barranquero <lekktu@gmail.com>
3376
3377 * w32fns.c (x_create_tip_frame): Prevent default foreground color for
3378 new frames overriding foreground for tooltips. Based on similar patch
3379 from Martin Rudalics <rudalics@gmx.at>. (Bug#1032)
3380
3381 2008-10-29 Chong Yidong <cyd@stupidchicken.com>
3382
3383 * emacs.c (Fdaemon_initialized): Initialize nfd.
3384
3385 2008-10-29 Martin Rudalics <rudalics@gmx.at>
3386
3387 * window.c (Fwindow_height, Fdelete_window, set_window_buffer)
3388 (Fwindow_text_height): Clarify doc-strings.
3389 * xdisp.c (syms_of_xdisp): Mention set-window-buffer in
3390 doc-string of window-scroll-functions.
3391
3392 2008-10-28 Reiner Steib <Reiner.Steib@gmx.de>
3393
3394 * category.c (syms_of_category): Fix typo in docstring.
3395
3396 2008-10-28 Juanma Barranquero <lekktu@gmail.com>
3397
3398 * window.c (Fwindowp, Fwindow_live_p, Fwindow_minibuffer_p)
3399 (Fcoordinates_in_window_p, Fscroll_left, Fscroll_right):
3400 Fix typos in docstrings.
3401
3402 2008-10-28 Dan Nicolaescu <dann@ics.uci.edu>
3403
3404 * emacs.c (daemon_pipe): Make non-static.
3405 (IS_DAEMON): Move definition ...
3406 * lisp.h (IS_DAEMON): ... here.
3407 (daemon_pipe): Declare.
3408 (is_daemon): Remove.
3409 * dispnew.c (init_display): Use IS_DAEMON.
3410
3411 2008-10-28 Stefan Monnier <monnier@iro.umontreal.ca>
3412
3413 * xdisp.c (pos_visible_p, redisplay_internal, message3_nolog)
3414 (message2_nolog): Check FRAME_INITIAL_P instead of noninteractively.
3415
3416 * emacs.c (is_daemon): Remove.
3417 (main): Don't set is_daemon.
3418 (IS_DAEMON): New macro.
3419 (Fdaemonp, Fdaemon_initialized): Use it.
3420 (Fdaemon_initialized): Write a char into the pipe to make sure the
3421 parent exits.
3422 (syms_of_emacs): Explicitly initialize daemon_pipe[1].
3423
3424 2008-10-27 Chong Yidong <cyd@stupidchicken.com>
3425
3426 * nsterm.m (ns_draw_window_cursor): When hbar cursor is on
3427 over-sized glyph, draw it with the default glyph width.
3428
3429 * w32term.c (x_draw_bar_cursor): When hbar cursor is on over-sized
3430 glyph, draw it with the default glyph width.
3431
3432 * xterm.c (x_draw_bar_cursor): When hbar cursor is on over-sized
3433 glyph, draw it with the default glyph width.
3434
3435 * xdisp.c (try_scrolling): When computing the distance from the
3436 scroll margin to PT, try moving some distance past the window
3437 bottom before giving up.
3438
3439 2008-10-27 Martin Rudalics <rudalics@gmx.at>
3440
3441 * window.c (Fwindow_dedicated_p, Fset_window_dedicated_p)
3442 (Fset_window_buffer): Explain in doc-string that a window can be
3443 "strongly" dedicated to its buffer.
3444
3445 2008-10-27 Dan Nicolaescu <dann@ics.uci.edu>
3446
3447 * emacs.c (daemon_name): New variable.
3448 (main): Deal with --daemon=SERVER_NAME.
3449 (Fdaemonp): Return a name if one was passed to --daemon.
3450
3451 2008-10-26 Romain Francoise <romain@orebokech.com>
3452
3453 * emacs.c (daemon_pipe): New variable.
3454 (main): Create a pipe before forking, make the parent exit only after
3455 the child has closed its end of the pipe. Move closing the
3456 descriptors ...
3457 (Fdaemon_initialized): ... here. New function.
3458
3459 2008-10-26 Stefan Monnier <monnier@iro.umontreal.ca>
3460
3461 * chartab.c (Foptimize_char_table): Make sure `ascii' doesn't point to
3462 the previous unoptimized table.
3463
3464 * window.c (Fset_window_buffer): Undo 2008-10-18 change to re-instate
3465 the distinction between non-nil and non-t value of `dedicated'.
3466
3467 2008-10-25 Chong Yidong <cyd@stupidchicken.com>
3468
3469 * keyboard.c (read_char_minibuf_menu_prompt): Ensure that
3470 read_char_minibuf_menu_text is large enough to hold the menu string.
3471
3472 2008-10-25 Martin Rudalics <rudalics@gmx.at>
3473
3474 * window.c (Fget_buffer_window, Fdelete_windows_on)
3475 (Freplace_buffer_in_windows): Make buffer argument optional and
3476 rename to buffer_or_name.
3477
3478 2008-10-24 Chong Yidong <cyd@stupidchicken.com>
3479
3480 * xdisp.c (handle_single_display_spec, handle_display_prop):
3481 Undo 2005-05-16 change.
3482 (handle_stop): Pop iterator if it's loaded with an empty string.
3483 (get_overlay_strings_1): Don't save iterator if it's loaded with
3484 an empty string (bug#1201).
3485
3486 2008-10-24 Kenichi Handa <handa@m17n.org>
3487
3488 * ftfont.c (ftfont_otf_features): Fix previous change.
3489 (ftfont_otf_capability): Check FeatureList.FeatureCount before
3490 calling ftfont_otf_features.
3491
3492 2008-10-24 Kenichi Handa <handa@m17n.org>
3493
3494 * font.c (font_match_p): Fix for the case that a vector of
3495 characters is in script-representative-chars.
3496
3497 2008-10-24 Michael Albinus <michael.albinus@gmx.de>
3498
3499 * dbusbind.c (xd_in_read_queued_messages): New variable.
3500 (XD_SIGNAL1, XD_SIGNAL2, XD_SIGNAL3): New macros. Throw Qdbus_error.
3501 (xd_read_queued_messages): Catch Qdbus_error from the macros.
3502 (all): Replace xsignal1, xsignal2, xsignal3 by the respective
3503 macro. (Bug#1186).
3504
3505 2008-10-23 Ali Bahrami <ali_gnu@emvision.com> (tiny change)
3506
3507 * s/sol2-10.h: New file.
3508
3509 2008-10-23 Juanma Barranquero <lekktu@gmail.com>
3510
3511 * xdisp.c (fill_glyph_string): Fix typo in source (though the
3512 poor beast has survived 9+ years and the jump from xterm.c!).
3513
3514 2008-10-23 Martin Rudalics <rudalics@gmx.at>
3515
3516 * buffer.c (Fget_buffer_create): Rename arg to buffer_or_name.
3517 Reword doc-string.
3518 (Fbury_buffer): In doc-string say what happens to the buffer's window.
3519
3520 2008-10-23 Juanma Barranquero <lekktu@gmail.com>
3521
3522 * character.c (syms_of_character) <script-representative-chars>:
3523 <unicode-category-table>: Doc fixes.
3524
3525 2008-10-23 Noah Friedman <friedman@splode.com>
3526
3527 * coding.c (make_conversion_work_buffer): Check that
3528 Vcode_conversion_reused_workbuf is a live buffer, otherwise call
3529 Fget_buffer_create.
3530
3531 2008-10-23 Kenichi Handa <handa@m17n.org>
3532
3533 * font.c (font_add_log): Check the values of extra properties.
3534
3535 2008-10-22 Martin Rudalics <rudalics@gmx.at>
3536
3537 * window.c (Fwindow_dedicated_p, Fset_window_dedicated_p):
3538 Reword doc-string.
3539 (Fset_window_parameter): Use NILP.
3540 (Fscroll_up, Fscroll_down, Fminibuffer_selected_window)
3541 (Frecenter): Use "selected" instead of "current" window in doc-strings.
3542
3543 2008-10-22 Juanma Barranquero <lekktu@gmail.com>
3544
3545 * xdisp.c (next_element_from_buffer): Remove bogus xassert condition.
3546
3547 2008-10-22 Adrian Robert <Adrian.B.Robert@gmail.com>
3548
3549 * nsfns.m (ns_appkit_version): New function.
3550 (x-server-version): Use it.
3551 (syms_of_nsfns): Define ns-version-string here, not nsterm.m.
3552 (x-server-vendor): Don't check_ns().
3553
3554 * nsterm.m (syms_of_nsterm): Drop ns-version-string.
3555
3556 2008-10-22 Juanma Barranquero <lekktu@gmail.com>
3557
3558 * w32fns.c (unwind_create_frame) [!GLYPH_DEBUG]: Fix xassert.
3559 Copied from 2005-02-03 change to xfns.c by Kim F. Storm.
3560
3561 2008-10-22 Kenichi Handa <handa@m17n.org>
3562
3563 * syntax.c (scan_words): Call word_boundary_p instead of comparing
3564 scripts.
3565
3566 * category.c (word_boundary_p): Check scripts instead of charset.
3567 Handle nil value in word-separating-categories and
3568 word-combining-categories.
3569 (syms_of_category): Fix docstrings of word-separating-categories
3570 and word-combining-categories.
3571
3572 2008-10-21 Eli Zaretskii <eliz@gnu.org>
3573
3574 * coding.c (Fencode_coding_region, Fdecode_coding_region)
3575 (Fdecode_coding_string, Fencode_coding_string): Doc fix.
3576
3577 2008-10-21 Martin Rudalics <rudalics@gmx.at>
3578
3579 * buffer.c (Fget_buffer, Fbury_buffer, switch_to_buffer_1):
3580 Rename arg "buffer" to "buffer_or_name".
3581 (Fkill_buffer): Rename arg "buffer" to "buffer_or_name" and make
3582 it optional.
3583 (no_switch_window): Remove since the return value is not used.
3584 (Fswitch_to_buffer): Rename arg "buffer" to "buffer_or_name".
3585 Consider window as dedicated when Fwindow_dedicated_p returns a
3586 non-nil value.
3587 * lisp.h: Remove prototype for no_switch_window.
3588
3589 2008-10-21 Jan Djärv <jan.h.d@swipnet.se>
3590
3591 * emacs.c (main): Unconditionally set PER_LINUX32 and exec
3592 temacs when dumping if HAVE_PERSONALITY_LINUX32 is defined.
3593
3594 2008-10-21 Kenichi Handa <handa@m17n.org>
3595
3596 * coding.c (detect_coding_charset): For iso-8859-* coding systems,
3597 check Vlatin_extra_code_table.
3598
3599 2008-10-20 Eli Zaretskii <eliz@gnu.org>
3600
3601 * fileio.c (Fset_file_modes): Doc fix.
3602
3603 2008-10-19 Michael Albinus <michael.albinus@gmx.de>
3604
3605 * dbusbind.c (XD_OBJECT_TO_DBUS_TYPE): Handle simple type symbols
3606 in arrays.
3607
3608 2008-10-19 Martin Rudalics <rudalics@gmx.at>
3609
3610 * window.c (Fwindow_dedicated_p, Fset_window_dedicated_p):
3611 Mention kill-buffer in doc-string.
3612 (Fset_window_buffer): Reinsert tem check removed in last commit.
3613 (Fenlarge_window, Fshrink_window): Have argument names and
3614 doc-string follow Elisp manual more closely.
3615
3616 2008-10-18 Eli Zaretskii <eliz@gnu.org>
3617
3618 * fileio.c (Fset_file_modes): Doc fix.
3619
3620 2008-10-18 Martin Rudalics <rudalics@gmx.at>
3621
3622 * window.c (Fwindow_width, Fset_window_start)
3623 (Fwindow_parameters, Fwindow_parameter, Fset_window_parameter)
3624 (Fdelete_windows_on, Freplace_buffer_in_windows):
3625 Make doc-strings follow code and Elisp manual more closely.
3626 (Fwindow_dedicated_p): Make window argument optional.
3627 (Fset_window_dedicated_p): Rename argument "arg" to "flag".
3628 (Fset_window_buffer): Respect any non-nil dedicated value for
3629 window. Rename "buffer" argument to "buffer_or_name".
3630
3631 2008-10-18 Ulrich Mueller <ulm@gentoo.org>
3632
3633 * m/sh3.h: New file, machine description for SuperH.
3634
3635 2008-10-17 Martin Rudalics <rudalics@gmx.at>
3636
3637 * window.c (Fsplit_window): Rename arg horflag to horizontal.
3638
3639 2008-10-17 Kenichi Handa <handa@m17n.org>
3640
3641 * ftfont.c (ftfont_otf_features): Fix indexing
3642 gsub_gpos->FeatureList.Feature. Check the validity of indices.
3643
3644 2008-10-16 Magnus Henoch <mange@freemail.hu>
3645
3646 * dbusbind.c (Fdbus_call_method): Unbreak usage line.
3647 (Fdbus_call_method_asynchronously): Ditto.
3648 This change makes C-h f display the argument list.
3649
3650 2008-10-16 Chong Yidong <cyd@stupidchicken.com>
3651
3652 * fileio.c (Fexpand_file_name): Doc fix.
3653
3654 * xfaces.c (Finternal_set_lisp_face_attribute): Make null values
3655 of :foreground and :background equivalent to unspecified (20.x
3656 compatibility).
3657
3658 2008-10-15 Eli Zaretskii <eliz@gnu.org>
3659
3660 * buffer.c (syms_of_buffer): Doc fix.
3661
3662 2008-10-14 Kenichi Handa <handa@m17n.org>
3663
3664 * font.c (font_clear_prop): When clearing font width, clear the
3665 average width field too.
3666
3667 2008-10-12 Andreas Schwab <schwab@suse.de>
3668
3669 * ftfont.c (ftfont_shape_by_flt): Make static.
3670 * ftfont.h (ftfont_shape_by_flt): Don't declare.
3671
3672 * font.c: Don't include <m17n-flt.h>.
3673
3674 2008-10-10 Eli Zaretskii <eliz@gnu.org>
3675
3676 * s/msdos.h (SYSTEM_PURESIZE_EXTRA): Decrease to 10000.
3677
3678 2008-10-09 Eli Zaretskii <eliz@gnu.org>
3679
3680 * frame.c (make_terminal_frame) [MSDOS]: Remove unused #ifdef'ed
3681 away code.
3682
3683 2008-10-09 Chong Yidong <cyd@stupidchicken.com>
3684
3685 * dispnew.c (update_text_area): Avoid looping due to large glyph
3686 overhangs (bug#1070).
3687
3688 2008-10-09 Kenichi Handa <handa@m17n.org>
3689
3690 * fontset.c (face_for_char): If face->fontset is negative, just
3691 return ascii_face.
3692
3693 * font.c (font_delete_unmatched): Fix previous change.
3694 Don't reject an entity if DPI and AVGWIDTH of an entity are 0.
3695
3696 2008-10-09 Martin Rudalics <rudalics@gmx.at>
3697
3698 * frame.c (Fraise_frame): On text-only terminals select frame in
3699 order to make it visible. (Bug#1061)
3700
3701 2008-10-08 Chong Yidong <cyd@stupidchicken.com>
3702
3703 * fontset.c (fontset_find_font): Check frame validity.
3704
3705 2008-10-07 Chong Yidong <cyd@stupidchicken.com>
3706
3707 * gtkutil.c (xg_display_open): Reset default display if none exists.
3708 (xg_display_close): Allow Emacs to close all displays (bug#985).
3709
3710 2008-10-06 Andreas Schwab <schwab@suse.de>
3711
3712 * sysdep.c (sys_signal): Always set SA_RESTART when noninteractively.
3713
3714 2008-10-06 Chong Yidong <cyd@stupidchicken.com>
3715
3716 * emacs.c (Vbefore_init_time, Vafter_init_time): Move from startup.el.
3717
3718 * lisp.h (Vbefore_init_time, Vafter_init_time): Declare.
3719
3720 * gtkutil.c (x_wm_set_size_hint): Return immediately if called
3721 during initialization.
3722
3723 2008-10-04 Eli Zaretskii <eliz@gnu.org>
3724
3725 * xdisp.c (redisplay_internal): If frame switched, redisplay the
3726 whole thing on MSDOS frames as well as on a TTY.
3727
3728 * dispnew.c (update_frame): Flush termscript for MSDOS frames as
3729 well as for TTY.
3730 (Fopen_termscript): Allow opening a termscript on MSDOS frames as
3731 well as on a TTY.
3732
3733 * sysdep.c (init_sys_modes): Set FRAME_GARBAGED_P for MSDOS frames
3734 as well as for TTY.
3735
3736 * systime.h (EMACS_TIME_CMP): Cast EMACS_SECS values to `long'.
3737
3738 * dispnew.c (change_frame_size_1): Set FrameRows and FrameCols for
3739 MSDOS frames as well.
3740
3741 2008-10-02 Adrian Robert <Adrian.B.Robert@gmail.com>
3742
3743 * image.c (x_clear_image_1): Under NS, call ns_free_indexed_color with
3744 correct arguments.
3745 * menu.c (find_and_return_menu_selection): Add cast.
3746
3747 2008-10-03 Glenn Morris <rgm@gnu.org>
3748
3749 * emacs.c (USAGE1): Add --daemon.
3750
3751 2008-10-02 Eli Zaretskii <eliz@gnu.org>
3752
3753 * process.c (procfs_system_process_attributes): Multiply `pcpu' by
3754 100, so it's in percents as advertised.
3755
3756 2008-10-02 Adrian Robert <Adrian.B.Robert@gmail.com>
3757
3758 * nsterm.h (ns_cursor_types, ns_output.desired_cursor_color)
3759 (ns_output.current_cursor, ns_output.desired_cursor)
3760 (ns_output.last_inactive, FRAME_CURSOR, FRAME_NEW_CURSOR)
3761 (FRAME_NEW_CURSOR_COLOR): Remove.
3762
3763 * nsfns.m (ns_set_cursor_color): Use FRAME_CURSOR_COLOR.
3764 (ns_lisp_to_cursor_type, ns_cursor_type_to_lisp): Use core Emacs
3765 enumeration (HOLLOW_BOX_CURSOR, etc.).
3766
3767 * nsterm.m (ns_frame_rehighlight): Remove commented code.
3768 (draw_window_cursor): Simplify code.
3769 (EmacsView-windowDidBecomeKey:,-windowDidResignKey:):
3770 Don't change cursor type. In latter, call rehighlight instead of doing
3771 updates manually.
3772 (EmacsPrefsController-setPanelFromValues,-setValuesFromPanel):
3773 Use core Emacs cursor types.
3774
3775 * xdisp.c (draw_glyphs): Don't call notice_overwritten_cursor under NS.
3776
3777 2008-10-02 Martin Rudalics <rudalics@gmx.at>
3778
3779 * process.c (Faccept_process_output): Fix doc-string.
3780
3781 2008-10-02 Dan Nicolaescu <dann@ics.uci.edu>
3782
3783 * gmalloc.c (__sbrk): Also define for uClibc.
3784
3785 * s/gnu-linux.h (GNU_LIBRARY_PENDING_OUTPUT_COUNT): Add definition
3786 for uClibc.
3787
3788 2008-10-01 Adrian Robert <Adrian.B.Robert@gmail.com>
3789
3790 * nsfont.m (nsfont_spec_to_traits): Use UnXX masks only for non-normal
3791 styles.
3792 (nsfont_open): Reenable the cache.
3793
3794 2008-10-01 Adrian Robert <Adrian.B.Robert@gmail.com>
3795
3796 * font.c (font_matching_entity): Reflect ATTRS in font selection.
3797 (font_find_for_lface) [HAVE_NS]: Don't ignore case.
3798
3799 2008-09-30 Stefan Monnier <monnier@iro.umontreal.ca>
3800
3801 * dispnew.c (Fsend_string_to_terminal): Don't try to send a string to
3802 a suspended terminal.
3803
3804 2008-09-30 Michael Albinus <michael.albinus@gmx.de>
3805
3806 * dbusbind.c (xd_signature): Use strcat instead of sprintf.
3807
3808 2008-09-30 Eli Zaretskii <eliz@gnu.org>
3809
3810 * Makefile.in (MSDOS_SUPPORT): Remove ccl.elc and codepage.elc.
3811
3812 2008-09-30 Chong Yidong <cyd@stupidchicken.com>
3813
3814 * xdisp.c (move_it_to): Don't advance the iterator if the last tab
3815 in a continued line coincides with a line beginning.
3816
3817 2008-09-29 Adrian Robert <Adrian.B.Robert@gmail.com>
3818
3819 * nsfont.m (nsfont_trait_distance): Fix bug.
3820 (nsfont_list): Return a list rather than a vector (syncs with Handa
3821 changes of 2008-05-14).
3822 (nsfont_open): Improve logging.
3823
3824 2008-09-29 Andreas Schwab <schwab@suse.de>
3825
3826 * keyboard.c (syms_of_keyboard) <input-decode-map>: Doc fix.
3827
3828 2008-09-28 Martin Rudalics <rudalics@gmx.at>
3829
3830 * character.c (Fchar_resolve_modifiers): Rewrite Elisp function
3831 name as char-resolve-modifiers.
3832 Reported by: Markus Triska <markus.triska@gmx.at>
3833
3834 2008-09-28 Dan Nicolaescu <dann@ics.uci.edu>
3835
3836 * dispnew.c (init_display): Return earlier when running as a daemon.
3837
3838 2008-09-27 Adrian Robert <Adrian.B.Robert@gmail.com>
3839
3840 * nsfont.m (nsfont_draw): Fix up composition rendering (cmp_from, ...).
3841
3842 2008-09-27 Eli Zaretskii <eliz@gnu.org>
3843
3844 * composite.c (Fcomposition_get_gstring)
3845 (Fcompose_region_internal, Fcompose_string_internal)
3846 (Ffind_composition_internal): Doc fix.
3847 (syms_of_composite) <compose-chars-after-function>: Doc fix.
3848 (syms_of_composite) <auto-composition-function>: Doc fix.
3849 (syms_of_composite) <composition-function-table>: Doc fix.
3850
3851 2008-09-25 Chong Yidong <cyd@stupidchicken.com>
3852
3853 * search.c (wordify): New argument for lax word-ends.
3854 (Fword_search_forward_lax, Fword_search_backward_lax): New funs.
3855
3856 2008-09-24 Dan Nicolaescu <dann@ics.uci.edu>
3857
3858 * lisp.h (is_daemon): Declare.
3859 * dispnew.c (init_display): Do not try to initialize the terminal
3860 when running as a daemon.
3861
3862 2008-09-22 Chong Yidong <cyd@stupidchicken.com>
3863
3864 * nsfns.m (compute_tip_xy): Use x_display_pixel_width and
3865 x_display_pixel_height.
3866
3867 2008-09-22 Martin Rudalics <rudalics@gmx.at>
3868
3869 * undo.c (record_point): Don't call Fundo_boundary for first
3870 change. (Bug#731)
3871
3872 2008-09-22 Juanma Barranquero <lekktu@gmail.com>
3873
3874 * emacs.c (Fdaemonp): Doc fix.
3875
3876 2008-09-22 Dan Nicolaescu <dann@ics.uci.edu>
3877
3878 * emacs.c (main): Place #ifdef in the proper place.
3879
3880 2008-09-21 Dan Nicolaescu <dann@ics.uci.edu>
3881
3882 * emacs.c (standard_args): Add --daemon.
3883 (main): Disconnect from the terminal when --daemon is passed.
3884 (is_daemon): New variable.
3885 (Fdaemonp): New function.
3886 (syms_of_emacs): Defsubr it.
3887
3888 2008-09-20 Chong Yidong <cyd@stupidchicken.com>
3889
3890 * xdisp.c (get_next_display_element): Handle string display
3891 correctly when checking for the end of a box run.
3892
3893 2008-09-20 Glenn Morris <rgm@gnu.org>
3894
3895 * fileio.c (Qdelete_by_moving_to_trash): New Lisp_Object.
3896 (syms_of_fileio): Add Qdelete_by_moving_to_trash.
3897 (Frename_file): Avoid copying to trash if a rename involves
3898 a delete. (Bug#964).
3899
3900 2008-09-20 Eli Zaretskii <eliz@gnu.org>
3901
3902 * keyboard.c (Fset_quit_char, Fset_input_meta_mode)
3903 (Fset_output_flow_control, Fcurrent_input_mode): Support MSDOS
3904 frames as well as termcap frames.
3905 (handle_interrupt): Remove "#ifndef MSDOS" around the call to
3906 get_named_tty.
3907
3908 2008-09-19 Eli Zaretskii <eliz@gnu.org>
3909
3910 * process.c (procfs_system_process_attributes): Fix cmdline in
3911 case /proc/PID/cmdline is empty.
3912
3913 * xterm.c (x_wm_set_size_hint): Use x_display_pixel_width and
3914 x_display_pixel_height.
3915
3916 2008-09-19 Juanma Barranquero <lekktu@gmail.com>
3917
3918 * frame.c (x_fullscreen_adjust): Declare var as Display_Info.
3919
3920 * w32fns.c (Fx_display_pixel_width, Fx_display_pixel_height)
3921 (compute_tip_xy): Use x_display_pixel_width, x_display_pixel_height.
3922
3923 2008-09-19 Dan Nicolaescu <dann@ics.uci.edu>
3924
3925 * dispextern.h (struct it): Move line_wrap away from the middle of
3926 bitfields. Move voffset in struct iterator_stack_entry after the
3927 bitfields. Move tab_width near after another short.
3928
3929 2008-09-18 Dan Nicolaescu <dann@ics.uci.edu>
3930
3931 * frame.h (struct frame): Move alpha from the middle of bitfields.
3932
3933 * window.h (struct window): Move frozen_window_start_p after the
3934 rest of the bitfields to reduce padding.
3935
3936 2008-09-18 Chong Yidong <cyd@stupidchicken.com>
3937
3938 * xterm.h (x_display_info): Remove `height' and `width' members.
3939
3940 * nsterm.h (ns_display_info): Remove `height' and `width' members.
3941
3942 * w32term.h (w32_display_info): Remove `height', `width',
3943 `height_in', and `width_in' members.
3944
3945 * xterm.c (x_display_pixel_height, x_display_pixel_width):
3946 New functions.
3947 (x_calc_absolute_position): Use them.
3948 (x_term_init): Omit removed `height' and `width' members.
3949
3950 * w32term.c (x_display_pixel_height, x_display_pixel_width):
3951 New functions.
3952 (w32_read_socket, x_calc_absolute_position): Use them.
3953 (w32_initialize_display_info, w32_term_init): Omit removed members
3954 of w32_display_info.
3955
3956 * nsterm.m (x_display_pixel_height, x_display_pixel_width):
3957 New functions.
3958 (ns_initialize_display_info): Omit removed members of ns_display_info.
3959
3960 * xterm.c (x_display_pixel_height, x_display_pixel_width):
3961 New functions.
3962 (x_calc_absolute_position): Use them.
3963 (x_term_init): Omit removed `height' and `width' members.
3964
3965 * xfns.c (Fx_display_pixel_width, Fx_display_pixel_height)
3966 (compute_tip_xy):
3967 * frame.c (x_fullscreen_adjust):
3968 * xmenu.c (menu_position_func): Use x_display_pixel_height and
3969 x_display_pixel_width.
3970
3971 2008-09-18 Kenichi Handa <handa@m17n.org>
3972
3973 * composite.c (fill_gstring_header): Don't check FROM and TO here.
3974 (composition_compute_stop_pos): Fix handling of static composition.
3975 (Fcomposition_get_gstring): Check FROM and TO at first.
3976
3977 2008-09-17 Stefan Monnier <monnier@iro.umontreal.ca>
3978
3979 * composite.c (Fcomposition_get_gstring): Yet another int/Lisp_Object
3980 mixup (YAILOM).
3981
3982 2008-09-17 Chong Yidong <cyd@stupidchicken.com>
3983
3984 * indent.c (Fvertical_motion): Use position reported by iterator
3985 instead of PT for determining screen motion (bug#943).
3986
3987 2008-09-17 Romain Francoise <romain@orebokech.com>
3988
3989 * composite.c (composition_adjust_point): Fix int/EMACS_INT mixup.
3990
3991 2008-09-17 Kenichi Handa <handa@m17n.org>
3992
3993 * ftfont.c (ftfont_shape_by_flt): Downcase family name.
3994
3995 * composite.c (Fcomposition_get_gstring): Make bigger gstring_work
3996 if necessary.
3997
3998 2008-09-16 Kenichi Handa <handa@m17n.org>
3999
4000 * coding.c (make_conversion_work_buffer): Avoid calling
4001 Fget_buffer_create if it is not necessary.
4002
4003 2008-09-15 Martin Rudalics <rudalics@gmx.at>
4004
4005 * window.c (Fselect_window): Don't update window_select_count and
4006 use_time when norecord is not nil.
4007
4008 2008-09-14 Kenichi Handa <handa@m17n.org>
4009
4010 * fileio.c (Finsert_file_contents): Delete incorrect decrement of
4011 specpdl_ptr.
4012
4013 2008-09-12 Kenichi Handa <handa@m17n.org>
4014
4015 * indent.c (scan_for_column): Don't handle automatic composition
4016 if the current buffer is not associated with a window.
4017
4018 * composite.c (composition_reseat_it): If the current buffer is
4019 not associated with a window, ignore the automatic composition.
4020 (find_automatic_composition): Likewise.
4021
4022 2008-09-12 Stefan Monnier <monnier@iro.umontreal.ca>
4023
4024 * term.c (close_gpm): New fun extracted from Fgpm_mouse_stop.
4025 (Fgpm_mouse_stop): Use it.
4026 * termhooks.h (close_gpm): Declare.
4027 * keyboard.c (tty_read_avail_input): Forcefully close the gpm
4028 connection if Gpm_GetEvent fails.
4029
4030 * window.c (set_window_buffer): Always preserve current-buffer.
4031
4032 2008-09-12 Glenn Morris <rgm@gnu.org>
4033
4034 * charset.c (init_charset): Warn if etc/charsets not found. (Bug#909)
4035
4036 2008-09-11 Glenn Morris <rgm@gnu.org>
4037
4038 * charset.c (charset-map-path): Doc fix.
4039
4040 2008-09-10 Kenichi Handa <handa@m17n.org>
4041
4042 * xdisp.c (handle_composition_prop): Set it->cmp_it.ch to -1.
4043
4044 * font.c (Ffont_shape_gstring): Make glyphs of non-nil adjustment
4045 compose a grapheme cluster with the preceding base glyph.
4046
4047 * composite.c (composition_compute_stop_pos): Fix previous change.
4048 Reset cmp_it->id to -1 at first.
4049
4050 2008-09-10 Glenn Morris <rgm@gnu.org>
4051
4052 * Makefile.in (character.o, chartab.o): Fix config.h typo.
4053
4054 2008-09-09 Chong Yidong <cyd@stupidchicken.com>
4055
4056 * keyboard.c (read_key_sequence): Reapply translation maps when
4057 switching keyboards.
4058
4059 2008-09-09 Kenichi Handa <handa@m17n.org>
4060
4061 * ftfont.c (ftfont_shape_by_flt): Use "combining" FLT for ASCII
4062 characters.
4063
4064 * composite.c (FORWARD_CHAR): Fix calculation
4065 of (POSITION).pos_byte.
4066 (composition_compute_stop_pos): Limit the search of composition to
4067 at most 500 characters ahead. If we reach the limit or find a
4068 newline, set cmp_it->ch to -2 and return 0.
4069 (composition_reseat_it): Handle the case that cmp_it->ch is -2.
4070
4071 2008-09-08 Kenichi Handa <handa@m17n.org>
4072
4073 * indent.c (Fvertical_motion): Be sure to set
4074 it_overshoot_expected if it.cmp_it.id is non-negative.
4075
4076 2008-09-07 Andreas Schwab <schwab@suse.de>
4077
4078 * callproc.c (Fcall_process): Don't hold references to string data
4079 across garbage collection. Move initialisation of new_argv down
4080 to avoid compiler bug.
4081
4082 2008-09-07 Roland Winkler <Roland.Winkler@physik.uni-erlangen.de>
4083
4084 * process.c (Fsystem_process_attributes): Doc fix.
4085
4086 2008-09-07 Chong Yidong <cyd@stupidchicken.com>
4087
4088 * callproc.c (Fcall_process): Canonicalize current directory name.
4089
4090 * xdisp.c (move_it_to): When moving by vpos, ensure that the
4091 iterator advances to the next line if the current line ends in a
4092 continued tab.
4093
4094 2008-09-07 Teodor Zlatanov <tzz@lifelogs.com>
4095
4096 * nsfont.m (nsfont_draw): Fix the references to missing gidx data
4097 member to point to cmp_from.
4098
4099 * xdisp.c: Doc fix for references to gidx data member.
4100
4101 2008-09-07 Stefan Monnier <monnier@iro.umontreal.ca>
4102
4103 * buffer.c (Fbuffer_swap_text): Reset window->point markers.
4104
4105 2008-09-07 Kenichi Handa <handa@m17n.org>
4106
4107 * composite.c (FORWARD_CHAR): Check STOP after
4108 incrementing (POSITION).pos.
4109
4110 2008-09-06 Roland Winkler <Roland.Winkler@physik.uni-erlangen.de>
4111
4112 * process.c (Fsystem_process_attributes): Doc fix.
4113
4114 2008-09-06 Chong Yidong <cyd@stupidchicken.com>
4115
4116 * keyboard.c (Ftop_level): Doc fix.
4117
4118 2008-09-06 Eli Zaretskii <eliz@gnu.org>
4119
4120 * xmenu.c (xmenu_show) [!HAVE_X_WINDOWS]: If frame has a
4121 minibuffer, don't let lower part of menu invade the echo area.
4122
4123 * msdos.c (IT_menu_display): Use STRING_CHAR_ADVANCE instead of a
4124 "char *q" to access menu text and advance through it. Revert the
4125 change that displayed ">" instead of ASCII character 0x10.
4126
4127 2008-09-05 Eli Zaretskii <eliz@gnu.org>
4128
4129 * menu.c (single_menu_item) [!HAVE_BOXES]: Enable emulation of
4130 toggle boxes and radio buttons on MS-DOS as well.
4131
4132 2008-09-05 Kenichi Handa <handa@m17n.org>
4133
4134 * composite.c (autocmp_chars): Check lookback count.
4135 (composition_compute_stop_pos): Set cmp_it->lookback.
4136 (composition_reseat_it): Check lookback count.
4137 (struct position_record): New struct.
4138 (FORWARD_CHAR, BACKWARD_CHAR, CHAR_COMPOSABLE_P): New macros.
4139 (find_automatic_composition): New function.
4140 (composition_adjust_point): Use find_automatic_composition.
4141
4142 * dispextern.h (struct composition_it): New member lookback.
4143
4144 2008-09-02 Chong Yidong <cyd@stupidchicken.com>
4145
4146 * indent.c (Fvertical_motion): Don't call move_it_by_lines again
4147 if moving by a single line.
4148
4149 2008-09-02 Andreas Schwab <schwab@suse.de>
4150
4151 * xterm.c (x_delete_display): Fix merge error.
4152
4153 * fileio.c (Fexpand_file_name): Remove unused variables.
4154
4155 2008-09-02 Eli Zaretskii <eliz@gnu.org>
4156
4157 * fileio.c (Fexpand_file_name): Copy argument `name' into local
4158 storage on all platforms, not just on DOS_NT.
4159
4160 2008-09-02 Jason Rumney <jasonr@gnu.org>
4161
4162 * w32menu.c (Fx_popup_menu, Fx_popup_dialog, w32_menu_show):
4163 Ensure mouse is not grabbed after menu is finished.
4164
4165 2008-09-01 Chong Yidong <cyd@stupidchicken.com>
4166
4167 * xfaces.c (Finternal_set_alternative_font_family_alist)
4168 (Finternal_set_alternative_font_registry_alist): Properly copy
4169 entire alist structure.
4170
4171 2008-09-01 Kenichi Handa <handa@m17n.org>
4172
4173 * ftfont.c (ftfont_spec_pattern): Don't create a charset if the
4174 representative chars of the script is a vector.
4175 (ftfont_list): Handle the case where the representative chars of
4176 the script is a vector.
4177
4178 * character.c (syms_of_character): Docstring of
4179 script-representative-chars fixed.
4180
4181 2008-08-31 Eli Zaretskii <eliz@gnu.org>
4182
4183 * msdos.c (BUILD_CHAR_GLYPH): New macro.
4184 (IT_menu_display): Use it instead of SET_CHAR_GLYPH to construct
4185 the menu. Allocate larger buffer for `text', to account for
4186 possible ^C characters.
4187
4188 2008-08-31 Martin Rudalics <rudalics@gmx.at>
4189
4190 * xdisp.c (prepare_menu_bars): Don't call
4191 Vwindow_size_change_functions with arg Qt.
4192
4193 2008-08-31 Stefan Monnier <monnier@iro.umontreal.ca>
4194
4195 * font.h (font_range):
4196 * fileio.c (report_file_error):
4197 * composite.c (composition_update_it): Yet another int/Lisp_Object
4198 mixup (YAILOM).
4199
4200 2008-08-30 Glenn Morris <rgm@gnu.org>
4201
4202 * data.c (Fmake_variable_frame_local): Doc fix.
4203
4204 * frame.c (Fmodify_frame_parameters): Doc fix.
4205
4206 2008-08-30 Eli Zaretskii <eliz@gnu.org>
4207
4208 * w32.c (init_user_info): Allocate buf[] with xmalloc using the size
4209 needed by GetTokenInformation.
4210 (w32_system_process_attributes): Check return values of all system
4211 APIs.
4212
4213 * msdos.c (IT_display_cursor): Write "CURSOR ON/OFF" to termscript
4214 only when the state changes.
4215 (IT_update_begin, IT_update_end): Add termscript trace.
4216
4217 * w16select.c (Fw16_set_clipboard_data): Don't encode text if
4218 clipboard is unavailable. Set dst to NULL if it doesn't point to
4219 malloc'ed data.
4220 (Fw16_get_clipboard_data): Initialize htext to NULL, to avoid
4221 passing random values to xfree.
4222
4223 * dispnew.c (init_display): Set `tty's association in frame's
4224 parameters alist to the name of the terminal device, if that is known.
4225
4226 2008-08-29 Jason Rumney <jasonr@gnu.org>
4227
4228 * w32uniscribe.c (uniscribe_check_otf): Don't fallback on DFLT script.
4229
4230 2008-08-29 Eli Zaretskii <eliz@gnu.org>
4231
4232 * composite.c (fill_gstring_body): Avoid compiler warnings.
4233
4234 * font.c (font_fill_lglyph_metrics): Use EMACS_INT in
4235 LGLYPH_SET_CODE to avoid compiler warnings.
4236
4237 * makefile.w32-in ($(BLD)/w32uniscribe.$(O)): Depend on composite.h.
4238
4239 * composite.h (LGLYPH_SET_CODE): Cast `val' to EMACS_INT.
4240
4241 * w32uniscribe.c (uniscribe_shape): Shut up compiler warning in
4242 LGLYPH_SET_CODE.
4243
4244 2008-08-29 Kenichi Handa <handa@m17n.org>
4245
4246 * fileio.c (report_file_error): Don't downcase the first character
4247 of errstring if it is still unibyte.
4248
4249 2008-08-29 Kenichi Handa <handa@m17n.org>
4250
4251 These changes are to re-implement the automatic composition so
4252 that it doesn't use text properties.
4253
4254 * Makefile.in (ftfont.o): Depend on composite.h.
4255 (composite.o): Depend dispextern.h, font.h, frame, and window.h.
4256
4257 * character.h (Vunicode_category_table): Extern it.
4258
4259 * character.c (Vunicode_category_table): New variable.
4260 (syms_of_character): DEFVAR_LISP Vunicode_category_table.
4261
4262 * chartab.c (optimize_sub_char_table): Perform more greedy
4263 optimization.
4264
4265 * composite.h (enum composition_method):
4266 Delete COMPOSITION_WITH_GLYPH_STRING.
4267 (COMPOSITION_METHOD): Don't check COMPOSITION_WITH_GLYPH_STRING.
4268 (Vcomposition_function_table): Extern it.
4269 (LGSTRING_XXX, LGLYPH_XXX): Macros moved from font.h.
4270 (composition_gstring_put_cache, composition_gstring_from_id)
4271 (composition_gstring_p, composition_gstring_width)
4272 (composition_compute_stop_pos, composition_reseat_it)
4273 (composition_update_it, composition_adjust_point): Extern them.
4274 (Fcomposition_get_gstring): EXFUN it.
4275
4276 * composite.c: Include window.h, frame.h, dispextern.h, font.h.
4277 (Vcomposition_function_table)
4278 (get_composition_id): Don't handle COMPOSITION_WITH_GLYPH_STRING.
4279 (gstring_hash_table, gstring_work, gstring_work_headers):
4280 New variables.
4281 (gstring_lookup_cache, composition_gstring_put_cache)
4282 (composition_gstring_from_id, composition_gstring_p)
4283 (composition_gstring_width, fill_gstring_header)
4284 (fill_gstring_body, autocmp_chars, composition_compute_stop_pos)
4285 (composition_reseat_it, composition_update_it)
4286 (composition_adjust_point, Fcomposition_get_gstring): New functions.
4287 (syms_of_composite): Initialize gstring_hash_table, gstrint_work,
4288 and gstring_work_headers. DEFVAR_LISP composition-function-table.
4289 Defsubr compostion_get_gstring.
4290
4291 * dispextern.h (struct glyph): New union u.cmp. Delete the member
4292 cmp_id.
4293 (struct glyph_string): Delete the member gidx. New members
4294 cmp_id, cmp_from, and cmp_to.
4295 (enum it_method): Delete GET_FROM_COMPOSITION.
4296 (struct composition_it): New struct.
4297 (struct it): New member cmp_it, and iterator_stack_entry.cmp_it.
4298 Delete c, len, cmp_id, cmp_len in u.comp.
4299
4300 * font.h (enum lgstring_indices): Delete it.
4301 (LGSTRING_XXX, LGLYPH_XXX): Move these macros to composite.h.
4302 (enum lglyph_indices): Likewise.
4303 (font_range): Adjust extern.
4304 (font_fill_lglyph_metrics): Extern it.
4305
4306 * font.c (QCf): New variable.
4307 (check_gstring): Use LGSTRING_GLYPH_LEN, not LGSTRING_LENGTH.
4308 (font_prepare_composition): Delete this function.
4309 (font_range): Type and arguments changed.
4310 (Ffont_make_gstring, Ffont_fill_gstring): Delete them.
4311 (font_fill_lglyph_metrics): New function.
4312 (Ffont_shape_text): Rename to Ffont_shape_gstring and change arguments.
4313 (syms_of_font): DEFSYM QCf. Delete defsubr for
4314 Sfont_make_gstring, Sfont_fill_gstring, Sfont_shape_text.
4315 Defsubr Sfont_shape_gstring.
4316
4317 * fontset.h (font_for_char): Extern it.
4318
4319 * fontset.c (font_for_char): New function.
4320
4321 * ftfont.c: Include composite.h.
4322 (ftfont_resolve_generic_family): Add langset "en" to pattern.
4323 (ftfont_shape_by_flt): Use LGSTRING_GLYPH_LEN, not LGSTRING_LENGTH.
4324
4325 * indent.c: Include composite.h and dispextern.h.
4326 (check_composition): Delete this function.
4327 (scan_for_column): Handle composition by
4328 composition_compute_stop_pos, composition_reseat_it, and
4329 composition_update_it.
4330 (compute_motion): Likewise.
4331 (Fvertical_motion): Fix checking of composition.
4332
4333 * keyboard.c (adjust_point_for_property): Check composition by
4334 composition_adjust_point.
4335
4336 * nsterm.m (ns_draw_glyph_string): Adjust for the change of
4337 struct glyph_string.
4338
4339 * term.c (encode_terminal_code): Adjust for the change of struct glyph.
4340 (append_composite_glyph): Adjust for the change of struct it and
4341 struct glyph.
4342 (produce_composite_glyph): Likewise.
4343
4344 * w32term.c (x_draw_composite_glyph_string_foreground):
4345 Adjust for the change of struct glyph_string.
4346 (x_draw_glyph_string): Likewise.
4347
4348 * w32uniscribe.c (struct uniscribe_font_info): Include composite.h.
4349 (uniscribe_shape): Use LGSTRING_GLYPH_LEN, not LGSTRING_LENGTH.
4350
4351 * xdisp.c: Include font.h.
4352 (it_props): Delete the entry for Qauto_composed.
4353 (init_iterator): Initialize it->cmp_it.id to -1.
4354 (compute_stop_pos): Call composition_compute_stop_pos.
4355 (face_before_or_after_it_pos): Adjust for the change of struct it.
4356 (handle_auto_composed_prop): Delete it.
4357 (handle_composition_prop): Handle only static composition.
4358 (next_overlay_string): Remove it->method == GET_FROM_COMPOSITION
4359 from xassert. Initialize it->cmp_it.stop_pos.
4360 (push_it): Adjust for the change of struct it.
4361 (pop_it): Likewise.
4362 (get_next_element): Delete next_element_from_composition.
4363 (CHAR_COMPOSED_P): New macro.
4364 (get_next_display_element): For automatic composition, get a face
4365 from the font in the glyph-string.
4366 (set_iterator_to_next): For GET_FROM_BUFFER and GET_FROM_STRING,
4367 check composition by it->cmp_it.id. Delete GET_FROM_COMPOSITION case.
4368 (next_element_from_string): Check if the character at the current
4369 position is composed by CHAR_COMPOSED_P.
4370 (next_element_from_buffer): Likewise.
4371 (next_element_from_composition): Adjust for the change of struct it.
4372 Update it->cmp_it.
4373 (dump_glyph): Adjust for the change of struct glyph.
4374 (fill_composite_glyph_string): Adjust for the change of struct
4375 it and struct glyph. Don't handle automatic composition here.
4376 (fill_gstring_glyph_string): New function.
4377 (x_get_glyph_overhangs): Handle automatic composition.
4378 (BUILD_COMPOSITE_GLYPH_STRING): Adjust for the change of struct glyph.
4379 (BUILD_GSTRING_GLYPH_STRING): New macro.
4380 (BUILD_GLYPH_STRINGS): Call BUILD_GSTRING_GLYPH_STRING for
4381 automatic composition.
4382 (append_composite_glyph): Adjust for the change of struct it and
4383 struct glyph.
4384 (x_produce_glyphs): Adjust for the change of struct it.
4385
4386 * xterm.c (x_draw_composite_glyph_string_foreground): Adjust for
4387 the change of struct glyph_string.
4388 (x_draw_glyph_string): Likewise.
4389
4390 2008-08-29 Glenn Morris <rgm@gnu.org>
4391
4392 * buffer.c (word-wrap): Doc fix.
4393 * xdisp.c (truncate-partial-width-windows): Doc fix.
4394 Increase default to 50.
4395
4396 2008-08-29 Chong Yidong <cyd@stupidchicken.com>
4397
4398 * xdisp.c (update_tool_bar_unwind): New function.
4399 (update_tool_bar): Temporarily set selected frame before building
4400 tool-bar items.
4401
4402 2008-08-28 Michael Albinus <michael.albinus@gmx.de>
4403
4404 * dbusbind.c (XD_ERROR, XD_DEBUG_MESSAGE): Use strncpy and
4405 snprintf, respectively.
4406 (xd_append_arg): Convert strings with Fstring_make_unibyte.
4407
4408 2008-08-28 Chong Yidong <cyd@stupidchicken.com>
4409
4410 * Makefile.in: Revert (undocumented) 2008-08-20 change adding
4411 LDFLAGS to GNUstep CC invocation.
4412
4413 2008-08-27 Chong Yidong <cyd@stupidchicken.com>
4414
4415 * indent.c (Fvertical_motion): Revert last change. Handle the
4416 general case where we are moving forward, and PT spans multiple
4417 screen lines.
4418
4419 * eval.c (find_handler_clause): Temporarily increase
4420 max-lisp-eval-depth while printing the backtrace buffer, to
4421 guarantee that help-mode code can run.
4422
4423 2008-08-27 Eli Zaretskii <eliz@gnu.org>
4424
4425 * msdos.c (Fmsdos_remember_default_colors): Don't reverse frame
4426 colors under -rv.
4427 (IT_set_frame_parameters): Don't swap foreground and background
4428 colors if `(reverse . t)' is present in the frame properties.
4429 (internal_terminal_init): Call init_frame_faces only for the
4430 initial frame.
4431
4432 2008-08-27 Andreas Schwab <schwab@suse.de>
4433
4434 * dired.c (Ffile_attributes): Avoid compiler warning in bitshift.
4435
4436 2008-08-27 Andreas Schwab <schwab@suse.de>
4437
4438 * search.c (search_buffer): Set char_base to zero only at the end.
4439
4440 2008-08-27 Kenichi Handa <handa@m17n.org>
4441
4442 * fileio.c (report_file_error): Fix handling of multibyte error string.
4443
4444 2008-08-27 Andreas Seltenreich <seltenreich@gmx.de>
4445
4446 * xterm.c (x_term_init): Temporarily hide the partially
4447 initialized terminal while calling vendor-specific-keysyms.
4448
4449 2008-08-26 Eli Zaretskii <eliz@gnu.org>
4450
4451 * msdos.c (internal_terminal_init): Most initializations done only
4452 once, especially initial_screen_colors[] and termscript open.
4453
4454 2008-08-26 Chong Yidong <cyd@stupidchicken.com>
4455
4456 * eval.c (Fcondition_case): Doc fix.
4457
4458 * widgetprv.h (EmacsFramePart): Change font member to the new font
4459 struct.
4460
4461 * widget.c: Include character.h and font.h for XSETFONT.
4462 (setup_frame_gcs): Compute X font id from font struct, just once.
4463
4464 2008-08-26 Eli Zaretskii <eliz@gnu.org>
4465
4466 * term.c (get_named_tty): Fix last change.
4467
4468 2008-08-26 Chong Yidong <cyd@stupidchicken.com>
4469
4470 * indent.c (Fvertical_motion): If moving forward starting from a
4471 multi-line string, move the iterator to the last line of that string.
4472
4473 2008-08-25 Eli Zaretskii <eliz@gnu.org>
4474
4475 * frame.c (do_switch_frame): Mark previously displayed frame as
4476 obscured for FRAME_MSDOS_P frames as well.
4477
4478 2008-08-24 Eli Zaretskii <eliz@gnu.org>
4479
4480 * frame.c (make_terminal_frame): Initialize f->terminal,
4481 f->terminal->reference_count, and scroll bars on MS-DOS as well.
4482 Set the top frame to newly created frame.
4483 (Fmake_terminal_frame): Reuse the_only_display_info.
4484
4485 * vm-limit.c (get_lim_data) [MSDOS]: Use alternative methods of
4486 estimating available memory.
4487
4488 2008-08-23 David Reitter <david.reitter@gmail.com>
4489
4490 * nsterm.m (ns_draw_window_cursor): Don't call
4491 NSDisableScreenUpdates and NSEnableScreenUpdates on
4492 non-NS_IMPL_COCOA systems.
4493
4494 2008-08-23 Andreas Schwab <schwab@suse.de>
4495
4496 * process.c (procfs_system_process_attributes): Fix use of
4497 uninitialized variables.
4498
4499 2008-08-23 Eli Zaretskii <eliz@gnu.org>
4500
4501 * emacs.c (main) [MSDOS]: Call syms_of_xmenu.
4502
4503 * dispnew.c (init_display): Remove MS-DOS specific conditions for
4504 calling tty-set-up-initial-frame-faces.
4505
4506 * xmenu.c (Fx_popup_dialog, Fx_popup_menu, xmenu_show):
4507 Allow MSDOS frames along with X frames.
4508
4509 * termhooks.h (TERMINAL_ACTIVE_P): Handle output_msdos_raw in
4510 addition to output_termcap.
4511
4512 * xdisp.c (redisplay_internal) [MSDOS]: Don't call set_tty_color_mode.
4513
4514 * termchar.h (FRAME_TTY): Support output_msdos_raw.
4515 (struct tty_display_info) [MSDOS]: Add fields related to mouse
4516 highlight.
4517
4518 * process.c [!subprocesses]: Define QCname.
4519 (syms_of_process): Intern and staticpro it.
4520
4521 * w16select.c (Fw16_set_clipboard_data, Fw16_get_clipboard_data):
4522 Adjust for changes in encoding/decoding routines.
4523 Use encode_coding_object and decode_coding_object instead of
4524 encode_coding and decode_coding.
4525
4526 * sysdep.c (init_sys_modes): Call dos_ttraw with tty_out as argument.
4527
4528 * dosfns.c: Include frame.h before termhooks.h.
4529 (dos_cleanup): Use CURTTY ()->termscript instead of a global
4530 variable termscript.
4531
4532 * s/msdos.h (USER_FULL_NAME): Define.
4533 (SYSTEM_PURESIZE_EXTRA): Bump up to 100K.
4534
4535 * editfns.c (USER_FULL_NAME): Define to pw->pw_gecos if undefined.
4536 (Fuser_full_name): Use USER_FULL_NAME instead of a literal
4537 pw->pw_gecos.
4538
4539 * keyboard.c (handle_interrupt) [MSDOS]: Call cursor_to with
4540 SELECTED_FRAME as additional (1st) argument.
4541 (tty_read_avail_input): Handle output_msdos_raw in
4542 addition to output_termcap.
4543
4544 * msdos.c: Include frame.h before termhooks.h.
4545 (mouse_on, mouse_off, mouse_moveto, mouse_init)
4546 (msdos_set_cursor_shape, IT_set_face, IT_write_glyphs)
4547 (show_mouse_face, IT_clear_end_of_line, IT_clear_screen)
4548 (IT_clear_to_end, IT_cursor_to, IT_display_cursor, IT_cmgoto)
4549 (IT_set_terminal_modes, IT_reset_terminal_modes)
4550 (IT_set_frame_parameters): Use tty->termscript instead of a global
4551 variable termscript.
4552 (IT_write_glyphs): Use tty->terminal->terminal_coding instead of a
4553 global variable terminal_coding. Don't refer to
4554 Vnonascii_translation_table.
4555 (internal_terminal_init): Set Vwindow_system in current_kboard.
4556 Don't use TTY_CHAR_INS_DEL_OK. Set Vinitial_window_system.
4557 Announce date and time of session start, if termscript is open.
4558 Don't zero out the_only_display_info (it is done in
4559 term.c:init_tty). Open termscript only of not already open.
4560 Log "SCREEN SAVED" here, instead of IT_set_terminal_modes. Init mouse
4561 here instead of dos_ttraw. Don't initialize display if this is an
4562 initial tty. Don't set FRAME_FONT.
4563 (Vwindow_system_version): Bump to 23.
4564 (dos_ttraw): Accept a TTY argument; all callers fixed. If mouse
4565 is available, set up mouse_position_hook.
4566 (dos_ttraw, IT_set_terminal_modes): If called with initial
4567 terminal, do nothing.
4568 (IT_set_frame_parameters): Handle the Qtty_type frame
4569 parameter by calling internal_terminal_init.
4570 (dos_set_window_size, show_mouse_face)
4571 (clear_mouse_face, IT_note_mode_line_highlight)
4572 (IT_note_mouse_highlight, IT_update_begin, IT_frame_up_to_date)
4573 (dos_rawgetc): Use tty_display_info instead of x_display_info.
4574 (initialize_msdos_display): New function.
4575 (IT_cursor_to, IT_clear_to_end, IT_clear_screen)
4576 (IT_clear_end_of_line, IT_insert_glyphs, IT_write_glyphs)
4577 (IT_delete_glyphs, IT_ring_bell, IT_reset_terminal_modes)
4578 (IT_set_terminal_modes, IT_set_terminal_window, IT_update_begin):
4579 Accept additional argument: a pointer to a frame. Update all callers.
4580 (request_sigio, unrequest_sigio): Don't define, now defined on
4581 sysdep.c.
4582 (IT_write_glyphs): Rewrite to use encode_terminal_code.
4583
4584 * term.c [MSDOS]: Include msdos.h.
4585 (init_tty) [MSDOS]: Reuse most of WINDOWSNT branch. Change cpp
4586 conditional to DOS_NT. Allow only one call to this function in a
4587 session. Don't allocate a new struct tty_display_info; instead,
4588 reuse the_only_display_info. Call get_tty_size to get screen
4589 dimensions. Call init_baud_rate to set bad_rate.
4590 (dissociate_if_controlling_tty) [MSDOS]: Ifdef away function body.
4591 (Fsuspend_tty) [MSDOS]: Don't close input and output.
4592 (Fresume_tty) [MSDOS]: Don't reopen the TTY; instead, use stdin/stdout.
4593 (get_tty_terminal, get_named_tty, Ftty_type)
4594 (Fcontrolling_tty_p): Handle output_msdos_raw in addition to
4595 output_termcap.
4596 (Fresume_tty, Fsuspend_tty, init_tty, delete_tty):
4597 Call add_keyboard_wait_descriptor and delete_keyboard_wait_descriptor
4598 only when subprocesses are supported.
4599
4600 * frame.c (make_terminal_frame) [MSDOS]: Adjust initialization of
4601 f->output_data.x.
4602 (Fmake_terminal_frame) [MSDOS]: Don't allow creation of new
4603 terminal devices.
4604
4605 * msdos.h: Remove definition of struct x_display_info and struct
4606 x_output.
4607 (FRAME_FONT): Use output_data.tty.
4608 (FRAME_FOREGROUND_PIXEL, FRAME_BACKGROUND_PIXEL): Don't define.
4609 (struct x_display_info): Rename from display_info. Update all users in
4610 msdos.c.
4611 (struct x_output): Remove background_pixel and foreground_pixel.
4612 (the_only_display_info): Rename from the_only_x_display.
4613 (dos_ttraw): Update prototype.
4614
4615 * Makefile.in (MSDOS_OBJ): Add xmenu.o.
4616 (SOME_MACHINE_LISP): Add ../lisp/term/pc-win.elc.
4617
4618 2008-08-23 Jason Rumney <jasonr@gnu.org>
4619
4620 * image.c (enum tiff_keyword_index, tiff_format): Add :index keyword.
4621 (fn_TIFFSetDirectory): New library function used.
4622 (init_tiff_functions) [HAVE_NTGUI]: Initialize it.
4623 (tiff_load): Use :index to select among multiple images. Set count
4624 property when multiple images exist.
4625 (gif_format): Use :index, not :image.
4626
4627 2008-08-23 Chong Yidong <cyd@stupidchicken.com>
4628
4629 * xdisp.c (try_scrolling): Check INT_MAX instead of
4630 MOST_POSITIVE_FIXNUM for maximum integer value. Include limits.h
4631 to obtain INT_MAX.
4632
4633 2008-08-21 İsmail Dönmez <ismail@namtrac.org> (tiny change)
4634
4635 * xterm.c (x_delete_display): Don't call XrmDestroyDatabase on GTK+.
4636
4637 2008-08-21 Christian Faulhammer <opfer@gentoo.org> (tiny change)
4638
4639 * Makefile.in (temacs${EXEEXT}): On GNUstep, link to appropriate
4640 GNUstep library location.
4641
4642 2008-08-21 Chong Yidong <cyd@stupidchicken.com>
4643
4644 * xfaces.c (x_update_menu_appearance): Check validity of menu font
4645 before using it.
4646
4647 * puresize.h (BASE_PURESIZE): Increase to 1250000.
4648
4649 2008-08-20 Adrian Robert <Adrian.B.Robert@gmail.com>
4650
4651 * nsfns.m (ns-read-file-name): Add casts to avoid warning.
4652 (ns-convert-utf8-nfd-to-nfc): Warn if cannot execute correctly.
4653 * nsfont.m (nsfont_draw): Compare indexed colors to 0, not nil.
4654 * nsterm.h (EmacsView-unlockFocusNeedsFlush:): Add declaration.
4655 (EmacsApp-cursor_blink_handler): Remove declaration.
4656 * nsterm.m (ns_draw_glyph_string): Update first conditional body to
4657 match 01 Feb 2008 changes in xterm.c.
4658 (ns_read_socket): Add cast to avoid warning.
4659 (EmacsApp-application:openFiles:): Don't call replyToOpenOrPrint: on
4660 GNUstep.
4661
4662 2008-08-20 Chong Yidong <cyd@stupidchicken.com>
4663
4664 * xselect.c (x_get_foreign_selection): Return nil if desired
4665 selection could not be obtained, instead of signalling an error.
4666
4667 2008-08-20 David Reitter <david.reitter@gmail.com>
4668
4669 * nsfns.m (ns_lisp_to_cursor_type): Replace with generic xfns.c.
4670 * nsterm.m: Remove ns-specific code for cursor blinking.
4671 (ns_draw_window_cursor): Clear cursor properly rather than
4672 redrawing the area. Respect width of bar cursors.
4673 These changes enable the use of generic blink-cursor-mode and
4674 generic cursor types in NS and support smooth cursor movements (do
4675 not blink off after command).
4676 * xdisp.c (get_phys_cursor_geometry): Redraw wider rectangle on
4677 Nextstep, too.
4678
4679 2008-08-19 Kenichi Handa <handa@m17n.org>
4680
4681 * font.c (Vfont_log_deferred): New variable.
4682 (font_add_log): Check Vfont_log_deferred.
4683 (font_deferred_log): New function.
4684
4685 * font.h (font_deferred_log): Extern it.
4686
4687 * fontset.c (reorder_font_vector): Use encoding charset of fonts
4688 for sorting.
4689 (face_for_char): Use deferred log.
4690
4691 2008-08-18 Kenichi Handa <handa@m17n.org>
4692
4693 * fontset.c (face_for_char): Add font log.
4694
4695 * font.c (font_add_log): Add the font properties :script, :lang,
4696 and :otf in the log.
4697
4698 2008-08-17 Chong Yidong <cyd@stupidchicken.com>
4699
4700 * xdisp.c: Remove dead code.
4701 (handle_invisible_prop, next_overlay_string): Defer call to
4702 setup_for_ellipsis.
4703 (handle_stop, set_iterator_to_next): Call setup_for_ellipsis.
4704
4705 2008-08-15 Chong Yidong <cyd@stupidchicken.com>
4706
4707 * xfaces.c (lookup_derived_face): Properly handle possible zero
4708 return value of get_lface_attributes.
4709 (merge_faces): Don't tell lookup_derived_face to signal an error
4710 if face is not found.
4711
4712 * dired.c (Fdirectory_files): Doc fix.
4713
4714 * process.c (make_process): Initialize kill_without_query struct
4715 member.
4716
4717 2008-08-15 Eli Zaretskii <eliz@gnu.org>
4718
4719 * w32.c (w32_system_process_attributes) [_MSC_VER < 1300]:
4720 Alternative calculation of totphys for Visual Studio 6.
4721
4722 * w32fns.c [_MSC_VER && _MSC_VER < 1300]: Declare HMONITOR.
4723
4724 * w32.c (_MEMORY_STATUS_EX, MEMORY_STATUS_EX, LPMEMORY_STATUS_EX):
4725 Rename from _MEMORYSTATUSEX, MEMORYSTATUSEX, LPMEMORYSTATUSEX.
4726 All users changed.
4727 (stat): Only root directory passed to GetDriveType. Allow RAM
4728 disk as well as local fixed disk when w32-get-true-file-attributes
4729 is set to `local'.
4730 (CopySid_Proc, EqualSid_Proc, GetLengthSid_Proc): New typedefs.
4731 (equal_sid, get_length_sid, copy_sid): New wrapper functions.
4732 (w32_cached_id, w32_add_to_cache): New functions.
4733 (get_name_and_id): Look account names in the cache before calling
4734 lookup_account_sid.
4735 (g_b_init_get_length_sid, g_b_init_equal_sid, g_b_init_copy_sid):
4736 New initialization flags.
4737 (globals_of_w32): Initialize them to zero.
4738 (w32_system_process_attributes): Use w32_cached_id and
4739 w32_add_to_cache.
4740
4741 2008-08-14 Lawrence Mitchell <wence@gmx.li>
4742
4743 * lread.c (Fread_char, Fread_char_exclusive): If no character
4744 event is read before timeout is reached, return nil, rather than
4745 converting to a number.
4746
4747 2008-08-14 Chong Yidong <cyd@stupidchicken.com>
4748
4749 * fns.c (use_dialog_box): Doc fix.
4750
4751 * s/darwin.h: Undefine HAVE_RES_INIT, which appears to be harmful
4752 on OS X.
4753
4754 2008-08-13 Chong Yidong <cyd@stupidchicken.com>
4755
4756 * frame.c (Qns_parse_geometry): New var.
4757 (Fx_parse_geometry): For HAVE_NS, call ns-parse-geometry.
4758
4759 2008-08-11 Chong Yidong <cyd@stupidchicken.com>
4760
4761 * xdisp.c (x_produce_glyphs): Handle the case when font has no
4762 space character in calculating tabs.
4763
4764 2008-08-11 Dan Nicolaescu <dann@ics.uci.edu>
4765
4766 * Makefile.in (bootstrap-emacs): Use ln -f in the CANNOT_DUMP case.
4767
4768 2008-08-10 Glenn Morris <rgm@gnu.org>
4769
4770 * process.c (procfs_system_process_attributes): Use EMACS_INTs to
4771 silence gcc "limited range of data type" warnings in some
4772 make_fixnum_or_float calls.
4773
4774 2008-08-09 Eli Zaretskii <eliz@gnu.org>
4775
4776 * w32.c (w32_system_process_attributes): If the process does not
4777 exist, return nil.
4778
4779 * w32.c: Include thelp32.h, psapi.h and coding.h.
4780 (_MEMORYSTATUSEX, _PROCESS_MEMORY_COUNTERS_EX): New struct
4781 declarations.
4782 (CreateToolhelp32Snapshot_Proc, Process32First_Proc)
4783 (Process32Next_Proc): New typedefs.
4784 (g_b_init_create_toolhelp32_snapshot, g_b_init_process32_first)
4785 (g_b_init_process32_next, g_b_init_open_thread_token)
4786 (g_b_init_impersonate_self, g_b_init_revert_to_self)
4787 (g_b_init_get_process_memory_info, g_b_init_global_memory_status)
4788 (g_b_init_get_process_working_set_size)
4789 (g_b_init_global_memory_status_ex): New static variables.
4790 (globals_of_w32): Initialize them.
4791 (create_toolhelp32_snapshot, process32_first, process32_next)
4792 (open_thread_token, impersonate_self, revert_to_self)
4793 (get_process_memory_info, get_process_working_set_size)
4794 (global_memory_status, global_memory_status_ex): New wrapper
4795 functions.
4796 (w32_list_system_processes, w32_system_process_attributes)
4797 (enable_privilege, restore_privilege, ltime, process_times):
4798 New functions.
4799 (convert_time_raw): New function.
4800 (convert_time): Remove conversion of FILETIME into time in 100
4801 nsec units, call convert_time_raw instead.
4802
4803 * process.h (w32_list_system_processes, w32_system_process_attributes):
4804 Add prototypes.
4805 (Qeuid, Qegid, Qcomm, Qstate, Qppid, Qpgrp, Qsess, Qttname)
4806 (Qminflt, Qmajflt, Qcminflt, Qcmajflt, Qutime, Qstime, Qcutime)
4807 (Qpri, Qnice, Qthcount, Qstart, Qvsize, Qrss, Qargs, Quser, Qgroup)
4808 (Qetime, Qpcpu, Qpmem, Qtpgid, Qcstime): Add extern declarations.
4809
4810 * process.c (Fsystem_process_attributes): Doc fix.
4811
4812 2008-08-08 Chong Yidong <cyd@stupidchicken.com>
4813
4814 * xdisp.c (move_it_to): When stopping at a charpos, check if that's
4815 a continued multi-char glyph; if so, advance to the actual glyph.
4816
4817 2008-08-07 Dan Nicolaescu <dann@ics.uci.edu>
4818
4819 * s/darwin.h (OTHER_FILES): Do not define here, defined in config.in.
4820
4821 * Makefile.in (ALL_OBJC_CFLAGS): New variable.
4822 (.m.o): Use it.
4823 * config.in: Regenerate.
4824
4825 2008-08-07 Chong Yidong <cyd@stupidchicken.com>
4826
4827 * xdisp.c (redisplay_window): Revert last change.
4828 (try_window): Check bottom scroll margin too.
4829
4830 2008-08-06 Adrian Robert <Adrian.B.Robert@gmail.com>
4831
4832 * config.in: Regenerate.
4833
4834 * Makefile.in (emacs): Remove ifndef NS conditional for 'emacs
4835 -list-load-path-shadows'.
4836 (nsgui.h): Reduce number of things depending on it.
4837
4838 2008-08-06 Chong Yidong <cyd@stupidchicken.com>
4839
4840 * xdisp.c (try_scrolling): Use iterator to find the scroll margin,
4841 instead of window-end which does the wrong thing at eob.
4842 (try_cursor_movement): Minor optimization.
4843 (redisplay_window): If scroll margin is defined, don't assume
4844 window doesn't need scrolling.
4845
4846 2008-08-06 Adrian Robert <Adrian.B.Robert@gmail.com>
4847
4848 * config.in: Regenerate.
4849
4850 * Makefile.in: Move nsXXX.m dependencies into big alphabetical list.
4851 (mostlyclean): Don't delete *.d under NS.
4852
4853 * nsterm.h (NS_HAVE_INTEGER): Change to NS_HAVE_NSINTEGER.
4854
4855 2008-08-06 Kenichi Handa <handa@m17n.org>
4856
4857 * xfont.c (xfont_list_family): Return a list of symbols, not strings.
4858
4859 2008-08-06 Andreas Schwab <schwab@suse.de>
4860
4861 * config.in: Regenerate.
4862
4863 2008-08-05 Chong Yidong <cyd@stupidchicken.com>
4864
4865 * xdisp.c (redisplay_window): Don't enforce scroll-margin when
4866 forcing a window start.
4867
4868 * fileio.c (Vauto_save_list_file_name): Move here from file.el.
4869 (auto_save_1): Update modtime when auto-save-list-file-name is on.
4870
4871 2008-08-04 Adrian Robert <Adrian.B.Robert@gmail.com>
4872
4873 * emacs.c (main): Under NS, set working dir to HOME when get a "psn"
4874 argument.
4875
4876 2008-08-05 Juanma Barranquero <lekktu@gmail.com>
4877
4878 * buffer.c (syms_of_buffer) <scroll-up-aggressively>:
4879 <scroll-down-aggressively, before-change-functions>:
4880 <after-change-functions>: Reflow docstrings.
4881
4882 2008-08-04 Adrian Robert <Adrian.B.Robert@gmail.com>
4883 Ken Raeburn <raeburn@gnu.org>
4884
4885 Dock menu customization, based on a patch by Ken Raeburn, plus some
4886 other fixes.
4887 * nsmenu.m (dockMenu): New variable.
4888 (EmacsDialog -clicked:): Fix mistake in change of 2008-07-17.
4889
4890 * nsterm.h (dockMenu): Declare.
4891
4892 * nsterm.m (KEY_NS_NEW_FRAME): New definition.
4893 (ns_term_init): Initialize dockMenu.
4894 (EmacsApp -newFrame:, -applicationDockMenu:): New methods.
4895 (EmacsView -windowShouldClose:): Don't behave specially if <= 1 frame
4896 left.
4897
4898 * lisp.h (LSB_TAG): Use on DARWIN_OS, not NS_IMPL_COCOA.
4899
4900 2008-08-04 Chong Yidong <cyd@stupidchicken.com>
4901
4902 * nsterm.h: Test directly for NS_HAVE_INTEGER before defining it.
4903
4904 * config.in: Regenerate.
4905
4906 2008-08-04 Seiji Zenitani <zenitani@mac.com>
4907
4908 * nsfns.m (x-create-frame): Set the frame parameter alpha to nil.
4909
4910 2008-08-04 Chong Yidong <cyd@stupidchicken.com>
4911
4912 * nsterm.h (find_and_call_menu_selection): Fix prototype.
4913
4914 2008-08-04 Adrian Robert <Adrian.B.Robert@gmail.com>
4915
4916 * emacs.c (main: unexec_init_emacs_zone): Call if on DARWIN_OS.
4917
4918 * keyboard.h: Comment an #endif.
4919
4920 * lisp.h (have_menus_p): Adjust comment.
4921
4922 * menu.c (find_and_return_menu_selection): Fix comparison with
4923 client_data.
4924
4925 * nsmenu.m (popup_activated_flag): New variable.
4926 (popup_activated): New function.
4927 (menu-or-popup-active-p): New exported lisp definition.
4928 (ns_popup_menu): Set popup_activated_flag. Call discard_menu_items()
4929 when popup done.
4930 (ns_popup_dialog): Set popup_activated_flag.
4931
4932 * nsterm.m (EmacsView -conversationIdentifier): Use NSInteger
4933 version for GNUstep (handled by conditional typedef in nsterm.m).
4934 (ns_get_color): Remove special-casing for "darkblue", "dark blue" (now
4935 in rgb.txt).
4936
4937 * process.c (init_process): Use DARWIN_OS, not DARWIN.
4938
4939 * sysselect.h: Conditionalize init_process undef on DARWIN_OS.
4940
4941 * syssignal.h (FORWARD_SIGNAL_TO_MAIN_THREAD): Do it also under NS.
4942
4943 * xdisp.c (redisplay_internal, note_mouse_highlight): Under NS,
4944 shortcircuit if popup_activated like GTK and X toolkit.
4945
4946 * m/inter386.h: Change DARWIN to DARWIN_OS.
4947
4948 * s/darwin.h: Add #define DARWIN_OS. Get rid of C_SWITCH_SYSTEM def.
4949 Change LIBS_MACGUI to LIBS_NSGUI. Move temacs-conditionalized defs
4950 closer to C_SWITCH_SYSTEM_TEMACS so usage is understood. Expand
4951 comment on NO_SOCK_SIGIO.
4952
4953 2008-08-03 Chong Yidong <cyd@stupidchicken.com>
4954
4955 * nsterm.m (windowDidResize): Remove stopModal call.
4956
4957 2008-08-03 Andreas Schwab <schwab@suse.de>
4958
4959 * vm-limit.c (get_lim_data) [HAVE_GETRLIMIT && RLIMIT_AS]: Define.
4960 (check_memory_limits): Don't handle HAVE_GETRLIMIT here.
4961
4962 2008-08-02 Chong Yidong <cyd@stupidchicken.com>
4963
4964 * vm-limit.c (check_memory_limits): Don't use getrlimit on cygwin.
4965 Don't use uninitialized pointer variable when using getrlimit.
4966
4967 2008-08-02 Jason Rumney <jasonr@gnu.org>
4968
4969 * w32font.c (compute_metrics): Don't mess with glyph_idx setting here.
4970
4971 2008-08-02 Eli Zaretskii <eliz@gnu.org>
4972
4973 * alloc.c (NSTATICS): Bump to 0x640.
4974
4975 * s/gnu-linux.h (HAVE_PROCFS, LISTPROC, PROCATTR): New defines.
4976
4977 * lisp.h: Add prototype for directory_files_internal.
4978
4979 * process.c (Fsystem_processes_list, Fsystem_process_attributes):
4980 New functions.
4981 (syms_of_process): Defsubr them. Add initializations for various
4982 Q* symbols used in procfs_system_process_attributes.
4983 (procfs_list_system_processes, procfs_system_process_attributes)
4984 [HAVE_PROCFS]: New functions.
4985 (time_from_jiffies, ltime_from_jiffies, get_up_time, procfs_ttyname)
4986 (procfs_get_total_memory): New functions.
4987
4988 2008-08-01 Juanma Barranquero <lekktu@gmail.com>
4989
4990 * xfaces.c (Fx_load_color_file): Fix previous change;
4991 it is #ifdef WINDOWSNT, not WINDOWS_NT.
4992
4993 2008-08-01 Michael Albinus <michael.albinus@gmx.de>
4994
4995 * dbusbind.c (xd_read_message): Handle D-Bus error messages.
4996
4997 2008-08-01 Adrian Robert <Adrian.B.Robert@gmail.com>
4998
4999 * nsterm.h (NSInteger, NSUInteger): Add defines for non-Leopard.
5000
5001 2008-08-01 Chong Yidong <cyd@stupidchicken.com>
5002
5003 * nsfns.m (ns_frame_parm_handlers): Add empty entry for x_set_alpha.
5004
5005 * nsterm.m (EmacsApp -application:openFiles:): GNUstep does not
5006 define NSApplicationDelegateReplySuccess.
5007 (EmacsView -converstationIdentifier): Use long instead of
5008 NSInteger for GNUstep, since it doesn't have NSInteger.
5009
5010 * xmenu.c: Revert last change.
5011
5012 * keyboard.h: Fix last change.
5013
5014 2008-08-01 Juanma Barranquero <lekktu@gmail.com>
5015
5016 * xfaces.c (x-load-color-file): Use RGB() instead of manually shifting
5017 on Windows.
5018
5019 2008-08-01 Adrian Robert <Adrian.B.Robert@gmail.com>
5020
5021 Warning clearing and clean-up in NS port.
5022 * keyboard.h (xmalloc_widget_value, digest_single_submenu):
5023 Add prototypes.
5024 * nsgui.h (FACE_DEFAULT): Remove, unused.
5025 (XGCValues): Change colors to unsigned long.
5026 * nsterm.h (EmacsApp): Add declaration of all methods implemented in
5027 nsterm.m.
5028 (EmacsMenu -addItemWithWidgetValue:): Change to use NSMenuItem class.
5029 (ns_list_fonts): Remove, unused.
5030 (ns_font_to_xlfd, ns_fontname_to_xlfd): Drop prototypes.
5031 * nsfns.m (interpret_services_menu): Use NSMenuItem class.
5032 * nsfont.m (nsfont_open): Fix cast error in glyphs,metrics alloc.
5033 (nsfont_draw): Compare face colors to 0, not nil.
5034 * nsmenu.m (struct widget_value): Drop unneeded declaration.
5035 (EmacsMenu -addItemWithWidgetValue:, -fillWithWidgetValue:)
5036 (-addSubmenuWithTitle:): Use NSMenuItem class.
5037 (ns_popup_menu): Use NO, not NULL, for enabled setting.
5038 * nsterm.m (ns_draw_glyph_string): Don't compare font to ~0.
5039 (ns_clip_to_row): Make gc arg a BOOL.
5040 (ns_draw_fringe_bitmap, ns_draw_window_cursor): Use YES, NO in
5041 ns_clip_to_row() call.
5042 (ns_draw_glyph_string): Drop face comparison to ~0 (no longer
5043 used). Cast FRAME_FONT assignments.
5044 (ns_read_socket): Cast call to EmacsApp-fulfillService:withArg:.
5045 (ns_string_to_lispmod): Change arg to const char.
5046 (ns_term_init): Use NSMenuItem class.
5047 (EmacsApp -openFile:): Move to different section of file.
5048 (EmacsApp -application:openFiles:): Don't return a value, call
5049 -replyToOpenOrPrint:.
5050 (EmacsView -keyDown:): Fix up cast.
5051 (EmacsView -converstationIdentifier): Use NSInteger instead of long.
5052 (EmacsView -menuDown:): Cast tag in call to
5053 find_and_call_menu_selection().
5054 (ns_list_fonts): Remove, unused.
5055 (ns_font_to_xlfd): Make static. Cast result of UTF8String.
5056 (ns_fontname_to_xlfd): Make static.
5057 * w32menu.c (xmalloc_widget_value, digest_single_submenu):
5058 Remove prototypes (now in keyboard.h).
5059 (next_menubar_widget_id): Remove, unused.
5060 * xmenu.c (xmalloc_widget_value, digest_single_submenu):
5061 Remove prototypes (now in keyboard.h).
5062 * xfaces.c (ns_list_fonts, w32_list_fonts): Remove, unused.
5063
5064 2008-08-01 Dan Nicolaescu <dann@ics.uci.edu>
5065
5066 * Makefile.in (dispnew.o, gtkutil.o, sound.o, atimer.o)
5067 (floatfns.o): Depend on syssignal.h.
5068 (term.o): Depend on syssignal.h, systty.h, and $(INTERVAL_SRC).
5069
5070 * systty.h: Fix previous change that removed BSD_TERMIOS.
5071 Add comments to #ifdefs.
5072
5073 2008-08-01 Adrian Robert <Adrian.B.Robert@gmail.com>
5074
5075 * w32fns.c (w32-load-color-file): Remove.
5076 (x-open-connection): Use renamed Fx_load_color_file.
5077 * xfaces.c (x-load-color-file): Add.
5078 * nsterm.m (ns_initialize): Load colors from etc/rgb.txt instead of
5079 Emacs.clr.
5080 (hide_hourglass): BLOCK_INPUT before UNBLOCK.
5081
5082 2008-07-31 Michael Albinus <michael.albinus@gmx.de>
5083
5084 * dbusbind.c (Fdbus_call_method_asynchronously)
5085 (Fdbus_method_error_internal): New defuns.
5086 (xd_read_message): Handle also reply messages.
5087 (Vdbus_registered_functions_table): Extend docstring.
5088
5089 2008-07-31 Juanma Barranquero <lekktu@gmail.com>
5090
5091 * keyboard.c (gobble_input): Fix previous change.
5092
5093 2008-07-31 Dan Nicolaescu <dann@ics.uci.edu>
5094
5095 * bitmaps/README:
5096 * xfns.c:
5097 * termcap.c:
5098 * term.c:
5099 * syswait.h:
5100 * systty.h:
5101 * systime.h:
5102 * syssignal.h:
5103 * sysdep.c:
5104 * process.h:
5105 * process.c:
5106 * print.c:
5107 * ndir.h:
5108 * lread.c:
5109 * keyboard.c:
5110 * getpagesize.h:
5111 * floatfns.c:
5112 * fileio.c:
5113 * emacs.c:
5114 * doc.c:
5115 * dispnew.c:
5116 * dired.c:
5117 * data.c:
5118 * callproc.c:
5119 * buffer.c:
5120 * README:
5121 * Makefile.in:
5122 * s/template.h:
5123 * s/msdos.h:
5124 * m/vax.h: Remove VMS support.
5125 * s/vms.h:
5126 * vlimit.h:
5127 * uaf.h:
5128 * temacs.opt:
5129 * param.h:
5130 * ioctl.h: Remove file.
5131
5132 2008-07-31 Dan Nicolaescu <dann@ics.uci.edu>
5133
5134 * s/ms-w32.h (MULTI_KBOARD): Remove.
5135 * xterm.c:
5136 * xselect.c:
5137 * xfns.c:
5138 * window.c:
5139 * w32term.c:
5140 * w32fns.c:
5141 * terminal.c:
5142 * termhooks.h:
5143 * term.c:
5144 * sysdep.c:
5145 * keyboard.h:
5146 * keyboard.c:
5147 * frame.h:
5148 * frame.c:
5149 * frame.c: Remove references to MULTI_KBOARD, it is now the default.
5150 * config.in: Regenerate.
5151
5152 2008-07-30 Jason Rumney <jasonr@gnu.org>
5153
5154 * w32font.h (struct w32font_info): Use unicode version of textmetrics.
5155
5156 * w32font.c (w32font_encode_char): Leave as unicode if in range.
5157 (w32font_open_internal): Get unicode version of textmetrics.
5158 Don't enable or disable glyph indices here.
5159 (w32font_open): Disable use of glyph indices.
5160
5161 * w32uniscribe.c (uniscribe_open): Enable use of glyph indices.
5162
5163 2008-07-30 Chong Yidong <cyd@stupidchicken.com>
5164
5165 * minibuf.c (Vread_buffer_function): Doc fix.
5166
5167 2008-07-30 John Paul Wallington <jpw@pobox.com>
5168
5169 * minibuf.c (read_buffer_completion_ignore_case): New var.
5170 (Fread_buffer): Use it.
5171
5172 2008-07-30 Dan Nicolaescu <dann@ics.uci.edu>
5173
5174 * systty.h (sensemode): Remove empty #if. Remove reference to
5175 BSD_TERMIOS, unused.
5176
5177 * sysdep.c: Remove reference to DGUX.
5178 (closedir): Remove reference to BROKEN_CLOSEDIR, unused.
5179
5180 * config.in: Regenerate.
5181
5182 2008-07-30 Jason Rumney <jasonr@gnu.org>
5183
5184 * w32uniscribe.c (uniscribe_encode_char): Fix glyph buffer size.
5185
5186 2008-07-29 Jason Rumney <jasonr@gnu.org>
5187
5188 * w32uniscribe.c (uniscribe_shape): Avoid using context if cache
5189 is populated.
5190 (uniscribe_encode_char): Always use uniscribe.
5191 Avoid using context if cache is populated.
5192
5193 2008-07-29 Jan Djärv <jan.h.d@swipnet.se>
5194
5195 * xmenu.c (Fx_menu_bar_open_internal): Use activate_item signal to
5196 open menu.
5197
5198 * gtkutil.c (menu_nav_ended): Remove.
5199 (create_menus): Remove signal connect for menu_nav_ended.
5200
5201 2008-07-28 Chong Yidong <cyd@stupidchicken.com>
5202
5203 * xdisp.c (redisplay_window): Check return value of
5204 compute_window_start_on_continuation_line before forcing a window
5205 start.
5206
5207 2008-07-28 Jason Rumney <jasonr@gnu.org>
5208
5209 * w32font.c (w32font_text_extents): Use w32_metric_cache consistently.
5210
5211 * w32term.c (w32_enable_unicode_output, cleartype_active):
5212 Remove obsolete display options.
5213 (x_draw_glyph_string_background): Don't use old cleartype_active
5214 workaround.
5215 (w32_initialize): Remove cleartype_active initialization.
5216 (syms_of_w32term): Remove w32_enable_unicode_output initialization.
5217
5218 2008-07-28 Andreas Schwab <schwab@suse.de>
5219
5220 * lisp.h (init_weak_hash_tables, syms_of_font)
5221 (xd_read_queued_messages, syms_of_dbusbind): Declare.
5222 (remove_hash_entry): Don't declare.
5223 * eval.c (maybe_call_debugger): Make static and move before use.
5224 * gtkutil.c: Include <X11/Xft/Xft.h> if HAVE_XFT.
5225 * xdisp.c: Include "gtkutil.h" if USE_GTK.
5226 * xterm.h (x_set_frame_alpha): Declare.
5227
5228 2008-07-28 Jan Djärv <jan.h.d@swipnet.se>
5229
5230 * gtkutil.c (menu_nav_ended): Revert change from 2008-07-24.
5231 (create_menus): Connect selection-done to menu_nav_ended.
5232
5233 2008-07-27 Adrian Robert <Adrian.B.Robert@gmail.com>
5234
5235 * nsfns.m (x-create-frame): Add copy of parms argument to beginning.
5236 Set Vx_resource_name to a fallback. Replace read of 'buffered'
5237 parameter with read of 'alpha' one.
5238 (Qns_frame_parameter): Remove.
5239 * nsselect.m (selection-coding-system)
5240 (next-selection-coding-system, Vselection_coding_system)
5241 (Vnext_selection_coding_system): Drop.
5242
5243 2008-07-27 Adrian Robert <Adrian.B.Robert@gmail.com>
5244
5245 * nsfns.m (do-applescript, do_applescript): Rename to
5246 ns-do-applescript, ns_do_applescript, and move within file.
5247
5248 2008-07-27 Dan Nicolaescu <dann@ics.uci.edu>
5249
5250 Remove support for Mac Carbon.
5251 * mactoolbox.c:
5252 * macterm.h:
5253 * macterm.c:
5254 * macselect.c:
5255 * macmenu.c:
5256 * macgui.h:
5257 * macfns.c:
5258 * mac.c: Remove file.
5259 * s/darwin.h:
5260 * m/intel386.h:
5261 * xfaces.c:
5262 * xdisp.c:
5263 * window.c:
5264 * tparam.c:
5265 * termhooks.h:
5266 * termcap.c:
5267 * term.c:
5268 * syssignal.h:
5269 * sysselect.h:
5270 * sysdep.c:
5271 * process.c:
5272 * lread.c:
5273 * lisp.h:
5274 * keyboard.c:
5275 * image.c:
5276 * fringe.c:
5277 * frame.h:
5278 * frame.c:
5279 * fontset.c:
5280 * font.h:
5281 * font.c:
5282 * fns.c:
5283 * fileio.c:
5284 * emacs.c:
5285 * dispnew.c:
5286 * dispextern.h:
5287 * config.in:
5288 * atimer.c:
5289 * Makefile.in: Remove code for Carbon.
5290
5291 2008-07-26 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
5292
5293 * macterm.c (XDrawLine) [USE_MAC_IMAGE_IO]: Remove spurious return.
5294
5295 2008-07-26 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
5296
5297 * macterm.h (kCGBitmapByteOrder32Host): New define for
5298 non-universal SDKs.
5299
5300 * image.c (mac_create_cg_image_from_image, image_load_image_io)
5301 [USE_MAC_IMAGE_IO]: Remove conditionals for kCGBitmapByteOrder32Host.
5302
5303 * macterm.c (XDrawLine, XCreatePixmapFromBitmapData)
5304 [USE_MAC_IMAGE_IO]: Remove conditionals for kCGBitmapByteOrder32Host.
5305
5306 2008-07-26 David Robinow <drobinow@gmail.com> (tiny change)
5307
5308 * w32inevt.c: Include dispextern.h.
5309
5310 2008-07-26 Andreas Schwab <schwab@suse.de>
5311
5312 * print.c (print_object): Fix off-by-one in last change.
5313
5314 2008-07-25 Juanma Barranquero <lekktu@gmail.com>
5315
5316 * term.c (syms_of_term): Don't initialize default_orig_pair,
5317 default_set_foreground and default_set_background on Windows.
5318
5319 2008-07-25 Jason Rumney <jasonr@gnu.org>
5320
5321 * w32uniscribe.c (uniscribe_shape): Pass NULL for control arg to
5322 ScriptItemize. Clean up return value checking. Remove unused
5323 variables.
5324 (uniscribe_encode_char): Encode non-BMP characters with uniscribe
5325 shaping engine.
5326
5327 * w32font.c (w32font_has_char): Handle the case where we can't
5328 determine the script for a character.
5329
5330 2008-07-25 Chong Yidong <cyd@stupidchicken.com>
5331
5332 * term.c (syms_of_term): Initialize default_orig_pair,
5333 default_set_foreground, and default_set_background.
5334
5335 * getloadavg.c (nl): Rename to name_list to avoid ncurses.h
5336 clash (bug#86).
5337 (getloadavg): Callers changed.
5338
5339 * image.c (svg_load_image): Fix last change.
5340 (svg_load_image): Use rsvg_handle_get_dimensions to check that
5341 image size is valid. Use g_object_unref instead of deprecated
5342 rsvg_handle_free to free rsvg handle.
5343 (x_from_xcolors): Don't initialize pixmap (silence compiler).
5344
5345 2008-07-25 Jason Rumney <jasonr@gnu.org>
5346
5347 * w32font.c (w32font_encode_char): Encode characters outside BMP as
5348 surrogates before looking up glyph index.
5349 (w32font_text_extents): Encode as surrogates if falling back to
5350 functions that need UTF-16 wide chars.
5351
5352 * w32uniscribe.c (uniscribe_encode_char): Encode characters outside
5353 BMP as surrogates before looking up glyph index.
5354
5355 2008-07-25 Chong Yidong <cyd@stupidchicken.com>
5356
5357 * image.c (svg_load_image): Check for failure in return value of
5358 rsvg_handle_get_pixbuf. Free rsvg handle when done.
5359
5360 2008-07-25 Jason Rumney <jasonr@gnu.org>
5361
5362 * w32font.c (Fx_select_font): Reverse sense of second arg.
5363
5364 2008-07-24 Stefan Monnier <monnier@iro.umontreal.ca>
5365
5366 * syntax.c (struct lisp_parse_state, char_quoted, inc_bytepos)
5367 (dec_bytepos, find_defun_start): Use EMACS_INT for buffer positions.
5368
5369 * puresize.h (PURESIZE_CHECKING_RATIO): New macro.
5370 (PURESIZE): Use it.
5371
5372 2008-07-24 Dan Nicolaescu <dann@ics.uci.edu>
5373
5374 * m/amdx86-64.h (HAVE_LIB64_DIR): Consolidate ifdefs.
5375 * m/alpha.h (TEXT_END):
5376 * m/ibmrs6000.h (TEXT_END):
5377 * m/macppc.h (TEXT_END):
5378 * s/darwin.h (TEXT_END):
5379 * s/msdos.h (TEXT_END): Remove, unused.
5380 * s/gnu-linux.h (BSD_PGRPS): Add a comment.
5381 * s/cygwin.h: Remove comment.
5382
5383 * ecrt0.c (NODOT_GLOBAL_START): Remove code, unused.
5384 (DOT_GLOBAL_START): Remove conditional, redundant for CRT0_DUMMIES.
5385 * m/intel386.h (DOT_GLOBAL_START):
5386 * m/vax.h (DOT_GLOBAL_START): Remove, redundant with CRT0_DUMMIES.
5387 (USG): Remove, file not used on USG platforms.
5388
5389 * Makefile.in (HAVE_X11): Remove empty #else.
5390
5391 2008-07-24 Andreas Schwab <schwab@suse.de>
5392
5393 * fileio.c (Finsert_file_contents): Properly adjust undo list
5394 after format conversion.
5395
5396 2008-07-24 Jan Djärv <jan.h.d@swipnet.se>
5397
5398 * gtkutil.c (xg_get_font_name): Cast w to GTK_FONT_SELECTION_DIALOG.
5399 (menu_nav_ended): Remove.
5400 (create_menus): Remove signal connect for menu_nav_ended.
5401 (xg_update_menubar): Also take deactivate_cb as parameter, pass it to
5402 create_menus.
5403 (xg_modify_menubar_widgets): Pass deactivate_cb to xg_update_menubar.
5404
5405 2008-07-23 Jason Rumney <jasonr@gnu.org>
5406
5407 * w32font.c (w32_enumfont_pattern_entity): Return height consistent
5408 with opened font.
5409 (w32font_open): Set font type to gdi.
5410
5411 * w32uniscribe.c (uniscribe_open): Set font type to uniscribe.
5412
5413 2008-07-23 Dan Nicolaescu <dann@ics.uci.edu>
5414
5415 * s/usg5-4.h (ADDR_CORRECT): Remove, unused.
5416 * unexaix.c (ADDR_CORRECT): Remove conditional, the only user
5417 defines it.
5418 * unexec.c (ADDR_CORRECT): Define unconditionally.
5419
5420 * m/ibmrs6000.h (C_SWITCH_MACHINE): Remove.
5421
5422 * unexec.c: Remove code depending on !COFF and USG, the file is
5423 not used for such systems.
5424
5425 * s/netbsd.h (A_TEXT_OFFSET, A_TEXT_SEEK):
5426 * s/freebsd.h (A_TEXT_OFFSET, A_TEXT_SEEK): Remove, unused.
5427 (LD_SWITCH_SYSTEM_1): Remove, update users.
5428
5429 * s/darwin.h (DATA_END):
5430 * m/intel386.h (DATA_END):
5431 * m/ibmrs6000.h (DATA_END):
5432 * m/alpha.h (DATA_END): Remove, unused.
5433
5434 * config.in: Regenerate.
5435 * s/ms-w32.h (subprocesses): Define unconditionally.
5436 * s/template.h (subprocesses): Update comment.
5437 * s/vms.h (subprocesses):
5438 * s/usg5-4.h (subprocesses):
5439 * s/hpux10-20.h (subprocesses):
5440 * s/gnu-linux.h (subprocesses):
5441 * s/cygwin.h (subprocesses):
5442 * s/bsd-common.h (subprocesses):
5443 * s/aix4-2.h (subprocesses):
5444 * s/darwin.h (subprocesses): Do not define, defined by default now.
5445
5446 * Makefile.in (C_SWITCH_SITE, LD_SWITCH_SITE): Remove, unused.
5447 Remove all references.
5448 (temacs): Add GNUstep specific ld flags.
5449
5450 * nsterm.m (syms_of_nsterm): Provide ns, not ns-windowing,
5451 similarly to what X does.
5452
5453 2008-07-22 Adrian Robert <Adrian.B.Robert@gmail.com>
5454
5455 * nsfns.m (x-list-fonts): Remove.
5456 (syms_of_nsfns): Drop the x-list-fonts declaration.
5457 * nsterm.m: Get rid of remaining "//" comments.
5458
5459 2008-07-22 Chong Yidong <cyd@stupidchicken.com>
5460
5461 * xselect.c (Fx_rotate_cut_buffers_internal): Doc fix.
5462
5463 * nsselect.m (Fns_selection_exists_p, Fns_selection_owner_p)
5464 (Fx_get_selection_internal, Fns_rotate_cut_buffers_internal)
5465 (Fns_own_selection_internal, Fx_disown_selection_internal)
5466 (Fns_get_cut_buffer_internal, Fns_store_cut_buffer_internal):
5467
5468 * nsmenu.m (Fns_reset_menu, Fx_popup_menu): Change to use 'doc: /*
5469 ... */' style of docstrings. Doc fixes.
5470
5471 2008-07-22 Dan Nicolaescu <dann@ics.uci.edu>
5472
5473 * terminfo.c (UP, BC, PC): Undo previous change.
5474
5475 * nsfns.m: Rename ns prefixed functions/variables to the
5476 corresponding x versions. Update references.
5477
5478 2008-07-22 Stefan Monnier <monnier@iro.umontreal.ca>
5479
5480 * syntax.c (char_quoted): Check "charpos > beg" before decrementing.
5481
5482 2008-07-22 Dan Nicolaescu <dann@ics.uci.edu>
5483
5484 * nsfns.m (x_set_menu_bar_lines, x_set_tool_bar_lines):
5485 Remove forwarding functions.
5486 (ns_set_menu_bar_lines): Rename to x_set_menu_bar_lines, make
5487 non-static.
5488 (ns_set_tool_bar_lines): Rename to x_set_tool_bar_lines, make
5489 non-static.
5490 (ns_frame_parm_handlers): Use the new names.
5491 (syms_of_nsfns): Move to the end of file.
5492
5493 * nsterm.m (syms_of_nsterm): Move to the end of file.
5494
5495 * dispnew.c (init_display): Remove code for X10.
5496
5497 2008-07-22 Jason Rumney <jasonr@gnu.org>
5498
5499 * w32proc.c (Fw32_long_file_name): Don't append dir separator to
5500 bare drive.
5501
5502 2008-07-22 Adrian Robert <Adrian.B.Robert@gmail.com>
5503
5504 * nsterm.m (syms_of_nsterm): Remove debugging println.
5505
5506 2008-07-22 David Reitter <david.reitter@gmail.com>
5507
5508 * nsfns.m (do_applescript, F_do_applescript): NS version of the
5509 Carbon implementation of the same functionality: execute arbitrary
5510 AppleScript code.
5511
5512 2008-07-21 Adrian Robert <Adrian.B.Robert@gmail.com>
5513
5514 * nsfns.m (Fx_create_frame, Fx_read_file_name, Fx_get_resource)
5515 (Fx_set_resource, Fx_set_alpha, Fx_server_max_request_size)
5516 (Fx_server_vendor, Fx_server_version, Fx_display_screens)
5517 (Fx_display_mm_height, Fx_display_mm_width)
5518 (Fx_display_backing_store, Fx_display_visual_class)
5519 (Fx_display_save_under, Fx_open_connection)
5520 (Fx_close_connection, Fx_hide_emacs, Fx_font_name)
5521 (Fx_list_colors, Fx_perform_service, Fx_color_defined_p)
5522 (Fx_color_values, Fxw_display_color_p, Fx_display_grayscale_p)
5523 (Fx_display_pixel_width, Fx_display_pixel_height)
5524 (Fx_display_usable_bounds, Fx_display_planes)
5525 (Fx_display_color_cells, Vns_icon_type_alist): Change to use 'doc: /*
5526 ... */' style of docstrings.
5527
5528 2008-07-21 Dan Nicolaescu <dann@ics.uci.edu>
5529
5530 * m/mips.h (LOAD_AVE_TYPE, LOAD_AVE_CVT): Do not define, not used
5531 on this platform.
5532 (mips):
5533 * m/iris4d.h (mips): Do not define.
5534 * sysdep.c (init_sys_modes): Use __mips__ instead of mips.
5535
5536 * m/ibmrs6000.h (LD_SWITCH_SITE): Remove.
5537
5538 * image.c:
5539 * nsfns.m:
5540 * nsselect.m:
5541 * nsterm.h:
5542 * nsterm.m: Rename ns prefixed functions/variables to the
5543 corresponding x versions. Update references.
5544
5545 * m/ibms390x.h (NO_REMAP): Do not undefine.
5546
5547 * m/amdx86-64.h: Use SOLARIS2 instead of sun.
5548
5549 2008-07-21 Chong Yidong <cyd@stupidchicken.com>
5550
5551 * nsfns.m: Change NS to Nextstep in docstrings and error messages.
5552 (Fns_create_frame, Fns_read_file_name, Fns_get_resource)
5553 (Fns_set_resource, Fns_set_alpha, Fns_server_max_request_size)
5554 (Fns_server_vendor, Fns_server_version, Fns_display_screens)
5555 (Fns_display_mm_height, Fns_display_mm_width)
5556 (Fns_display_backing_store, Fns_display_visual_class)
5557 (Fns_display_save_under, Fns_open_connection)
5558 (Fns_close_connection, Fns_hide_emacs, Fns_font_name)
5559 (Fns_list_colors, Fns_perform_service, Fns_color_defined_p)
5560 (Fns_color_values, Fxw_display_color_p, Fx_display_grayscale_p)
5561 (Fns_display_pixel_width, Fns_display_pixel_height)
5562 (Fns_display_usable_bounds, Fx_display_planes)
5563 (Fns_display_color_cells, Vns_icon_type_alist): Doc fixes.
5564
5565 2008-07-21 Ami Fischman <ami@fischman.org> (tiny change)
5566
5567 * print.c (print_object): Check print_depth before searching for
5568 circularities.
5569
5570 2008-07-21 Michael Albinus <michael.albinus@gmx.de>
5571
5572 * dbusbind.c (Fdbus_register_signal): Use sprintf + strcat instead
5573 only sprintf.
5574
5575 2008-07-21 Kenichi Handa <handa@m17n.org>
5576
5577 * ftfont.c (adjust_anchor): Check if DeltaValue is not NULL.
5578
5579 2008-07-20 Andreas Schwab <schwab@suse.de>
5580
5581 * syntax.c (find_start_pos, find_start_value)
5582 (find_start_value_byte, find_start_begv, find_defun_start)
5583 (back_comment, scan_sexps_forward): Use EMACS_INT for buffer positions.
5584
5585 2008-07-20 Dan Nicolaescu <dann@ics.uci.edu>
5586
5587 * s/sol2-3.h: Insert contents of s/sol2.h.
5588 (LD_SWITCH_SYSTEM): Remove redundant definition.
5589 * s/sol2.h: Remove, unused.
5590
5591 2008-07-20 Adrian Robert <Adrian.B.Robert@gmail.com>
5592
5593 * nsterm.m (ns_get_color): Recognize HSB,AHSB be synonyms for HSV,AHSV.
5594
5595 2008-07-20 Adrian Robert <Adrian.B.Robert@gmail.com>
5596
5597 * Makefile.in (ns_appdir): Fix typo in find command.
5598
5599 2008-07-20 Dan Nicolaescu <dann@ics.uci.edu>
5600
5601 * m/intel386.h (NO_REMAP): Do no define for USG, not used.
5602
5603 * s/usg5-4.h (LIBS_SYSTEM): Remove, system for which this was
5604 added not supported anymore.
5605
5606 * s/usg5-4-2.h (LIBS_SYSTEM):
5607 * s/sol2.h (LIBS_SYSTEM): Do not undefine.
5608
5609 * s/netbsd.h (GETPGRP_NO_ARG, N_TRELOFF):
5610 * s/lynxos.h (GETPGRP_NO_ARG):
5611 * s/hpux10-20.h (NO_SIOCTL_H):
5612 * s/gnu.h (GETPGRP_NO_ARG):
5613 * s/gnu-linux.h (NO_SIOCTL_H):
5614 * s/freebsd.h (GETPGRP_NO_ARG, N_TRELOFF):
5615 * s/cygwin.h (GETPGRP_NO_ARG):
5616 * s/irix6-5.h (LIBS_SYSTEM, GETPGRP_NO_ARG): Remove, unused.
5617 (C_DEBUG_SWITCH): Remove duplicate definition.
5618
5619 * m/ibms390.h: Remove boilerplate comments.
5620
5621 * sysdep.c (closedir): Use SOLARIS2 instead of sun && USG5_4.
5622
5623 * process.c (HAVE_SERIAL): Consolidate ifdefs.
5624 (wait_reading_process_output): Remove code for SunOS, platform not
5625 supported anymore. Use SOLARIS2 instead of sun.
5626
5627 2008-07-19 Adrian Robert <Adrian.B.Robert@gmail.com>
5628
5629 * font.c (font_open_by_name): Under NS, default lface height to zero.
5630 (font_open_for_lface): Under NS, set size based on frame fontsize.
5631 * nsterm.m (EmacsView-changeFont:): Remove some commented code.
5632 * frame.c (x_set_frame_parameters): Remove HAVE_NS ifdef.
5633
5634 2008-07-19 Adrian Robert <Adrian.B.Robert@gmail.com>
5635
5636 * nsterm.m (ns_antialias_text, ns_use_qd_smoothing)
5637 (ns_use_system_highlight_color): Switch these from DEFVAR_BOOL to
5638 DEFVAR_LISP and change all code accordingly to use Qt/Qnil instead of
5639 YES/NO.
5640 * nsterm.h (prevUseHighlightColor): Make a Lisp_Object.
5641 * nsfont.m (nsfont_draw): Treat ns_use_qd_smoothing as Lisp_Object.
5642 * Makefile.in (clean): Clear out build destination dir.
5643
5644 2008-07-19 Adrian Robert <Adrian.B.Robert@gmail.com>
5645
5646 * Makefile.in (nsgui.h-related dependencies): Remove abbrev, xfns,
5647 xterm, xselect.
5648 * lisp.h: Remove declaration of hash_remove.
5649 * nsgui.h: Remove redefinitions of hash_remove.
5650 * fns.c (hash_remove): Rename to hash_remove_from_table.
5651
5652 2008-07-19 Seiji Zenitani <zenitani@mac.com>
5653
5654 * nsfont.m (nsfont_fmember_to_entity, nsfont_make_fontset_for_font):
5655 strdup() the family UTF8String before modifying it.
5656
5657 2008-07-19 Adrian Robert <Adrian.B.Robert@gmail.com>
5658
5659 * nsterm.m (ns_maybe_dumpglyphs_background): Compare result from
5660 NS_FACE_BACKGROUND with 0 instead of nil.
5661 * nsfont.m (nsfont_draw): Same.
5662
5663 2008-07-19 Chong Yidong <cyd@stupidchicken.com>
5664
5665 * nsfns.m (ns_set_background_color): Fix crash.
5666
5667 2008-07-18 Chong Yidong <cyd@stupidchicken.com>
5668
5669 * Makefile.in (SOME_MACHINE_LISP): Remove ns-carbon-compat.elc.
5670
5671 2008-07-18 Dan Nicolaescu <dann@ics.uci.edu>
5672
5673 * puresize.h (BASE_PURESIZE): Increase to 1240000.
5674
5675 2008-07-17 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
5676
5677 * gtkutil.c: Include <config.h> instead of "config.h".
5678
5679 * lisp.h (Foverlay_buffer): Add EXFUN.
5680
5681 * process.c (create_process) [!WINDOWSNT && FD_CLOEXEC]: Wait for
5682 child process to complete child_setup. Undo 2005-09-21 change.
5683
5684 * s/darwin.h: Mention setsid after vfork.
5685
5686 2008-07-17 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
5687
5688 * Makefile.in (frame.o, keyboard.o, xdisp.o, xfaces.o):
5689 Depend on macgui.h.
5690
5691 * macfns.c (Fx_server_version): Don't use gestaltSystemVersionMajor,
5692 gestaltSystemVersionMinor, or gestaltSystemVersionBugFix.
5693
5694 * macterm.c (keycode_to_xkeysym_table): Add entries for f17, f18,
5695 and f19.
5696 [MAC_OSX] (fn_keycode_to_keycode_table): Likewise.
5697
5698 * macterm.h (gestaltSystemVersionMajor, gestaltSystemVersionMinor)
5699 (gestaltSystemVersionBugFix) [MAC_OS_X_VERSION_MAX_ALLOWED < 1040]:
5700 Remove enumerators.
5701
5702 * mactoolbox.c [USE_MAC_TSM] (mac_handle_text_input_event):
5703 Check if FACE_FROM_ID returns NULL.
5704
5705 2008-07-17 David Robinow <drobinow@gmail.com> (tiny change)
5706
5707 * w32inevt.c (change_frame_size): Remove extern declaration.
5708 (resize_event, maybe_generate_resize_event): Pass SAFE arg to
5709 change_frame_size.
5710
5711 2008-07-17 Adrian Robert <Adrian.B.Robert@gmail.com>
5712
5713 * getloadavg.c: Revert last change (2008-07-15).
5714
5715 2008-07-17 Adrian Robert <Adrian.B.Robert@gmail.com>
5716
5717 * Makefile.in: Replace emacsapp, emacsbindir, emacsappsrc variables
5718 set here with ns_appdir, ns_appresdir, ns_appbindir, ns_appsrc) set
5719 from configure.
5720
5721 2008-07-17 Dan Nicolaescu <dann@ics.uci.edu>
5722
5723 * s/sol2.h:
5724 * s/sol2-4.h: Reorganize conditionals.
5725
5726 * ecrt0.c: Remove code depending on m68000, not used anymore.
5727
5728 * fns.c (hash_remove): Make static.
5729 * lisp.h (hash_remove): Don't prototype.
5730
5731 * m/ibmrs6000.h:
5732 * m/ibms390x.h:
5733 * m/macppc.h: Remove boilerplate comments.
5734
5735 * m/sparc.h (A_TEXT_OFFSET, A_TEXT_SEEK): Remove, only used on
5736 Solaris, which does not need them.
5737
5738 * m/vax.h: Remove comments about unsupported systems.
5739
5740 * s/darwin.h: Reorganize ifdefs.
5741
5742 2008-07-17 Andreas Schwab <schwab@suse.de>
5743
5744 * s/cygwin.h (LIB_STANDARD_LIBSRC): Don't define.
5745
5746 2008-07-17 Stefan Monnier <monnier@iro.umontreal.ca>
5747
5748 Use SDATA. Follow coding convention of placing operators at
5749 beginning of next line rather than end of previous line, and placing
5750 spaces around infix operators.
5751
5752 * Makefile.in: Undef LIB_STANDARD before defining it to silence warning
5753 in case it was defined already.
5754 USE @GNUSTEP_MAKEFILES@ rather than envvars.
5755 * nsterm.m (ns_term_init): Pass Qt and Qnil rather than YES/NO to
5756 ns_default.
5757 (applicationShouldTerminate, setValuesFromPanel): Use EQ to compare
5758 Lisp_Objects.
5759 * nsterm.h (Fx_display_grayscale_p, Fx_display_planes)
5760 (ns_defined_color, ns_color_to_lisp): Declare.
5761 * nsselect.m (ns_handle_selection_request, ns_handle_selection_clear)
5762 (Fns_own_selection_internal): Make the big ugly hack more explicit, so
5763 it's accepted even with USE_LISP_UNION_TYPE.
5764 * nsmenu.m (ns_update_menubar): Use EQ to compare Lisp_Objects.
5765 (update_frame_tool_bar): Remove apparently obsolete tests for
5766 non-integerness of f->tool_bar_lines.
5767 (windowShouldClose, addButton, clicked, runDialogAt): Make the big ugly
5768 hack more explicit, so it's accepted even with USE_LISP_UNION_TYPE.
5769 * nsfont.m (nsfont_driver): Use just 0 rather than an invalid cast.
5770 (nsfont_open): Don't confuse NULL for Qnil.
5771 * nsfns.m (ns_implicitly_set_icon_type): Use EQ to compare Lisp_Objects.
5772 * menu.h (find_and_call_menu_selection):
5773 * menu.c (find_and_call_menu_selection): Use just int for vector size.
5774 (find_and_return_menu_selection): Always return something.
5775 * frame.h: Include dispextern.h for Display_Info.
5776 (display_x_get_resource): Declare.
5777
5778 2008-07-16 Adrian Robert <Adrian.B.Robert@gmail.com>
5779
5780 * syntax.c: Remove stdio.h include accidentally introduced in
5781 Emacs.app commit.
5782 * Makefile.in: Change GNUSTEP to NS_IMPL_GNUSTEP, COCOA to
5783 NS_IMPL_COCOA.
5784 * keyboard.c (handle_async_input, input_available_signal): Remove
5785 BSD4_1 conditional code, introduced accidentally in Emacs.app commit.
5786
5787 2008-07-16 Stefan Monnier <monnier@iro.umontreal.ca>
5788
5789 * nsterm.m (lisp_to_mod): Use parse_solitary_modifier instead.
5790 (ns_lisp_to_color): Don't mess with internal Lisp data fields.
5791 (ns_term_init, ns_term_shutdown, initFrameFromEmacs, ns_list_fonts):
5792 Use SDATA.
5793
5794 * keymap.c: Remove all NS-specific code.
5795 (where_is_preferred_modifier, Vwhere_is_preferred_modifier): New vars.
5796 (preferred_sequence_p): Rename from ascii_sequence_p; pay attention to
5797 where_is_preferred_modifier, return a different value depending on how
5798 preferred is the binding.
5799 (where_is_internal): Adjust accordingly.
5800 (Fwhere_is_internal): Refresh where_is_preferred_modifier.
5801 Adjust to new preferred_sequence_p.
5802 (syms_of_keymap): Declare `where-is-preferred-modifier'.
5803 * keyboard.c (parse_solitary_modifier): Not static any more.
5804 * keyboard.h (parse_solitary_modifier): Declare.
5805
5806 2008-07-16 Andreas Schwab <schwab@suse.de>
5807
5808 * Makefile.in (SOME_MACHINE_LISP): Remove easy-mmode, fix spelling
5809 of easymenu.
5810
5811 2008-07-16 Chong Yidong <cyd@stupidchicken.com>
5812
5813 * xdisp.c (move_it_in_display_line): Account for word wrap, so
5814 that we don't move off the line.
5815
5816 2008-07-16 Stefan Monnier <monnier@iro.umontreal.ca>
5817
5818 * keyboard.c (Qsuper): Remove.
5819 (parse_menu_item): Don't call where_is_internal specially for NS.
5820
5821 2008-07-16 Dan Nicolaescu <dann@ics.uci.edu>
5822
5823 * s/gnu-linux.h: Remove boilerplate comments.
5824
5825 * m/alpha.h (__ELF__): Consolidate conditions.
5826
5827 * m/m68k.h (linux): Use GNU_LINUX instead.
5828 Remove boilerplate comments.
5829
5830 * m/intel386.h: Undo refactoring from previous change.
5831 (LIB_STANDARD): All systems that define USG define LIB_STANDARD
5832 too, remove dead code.
5833 (linux): Use GNU_LINUX instead.
5834
5835 2008-07-16 Jason Rumney <jasonr@gnu.org>
5836
5837 * w32gui.h: Repeat 26 June changes lost by last change.
5838
5839 2008-07-16 Dan Nicolaescu <dann@ics.uci.edu>
5840
5841 * systty.h: Remove code for Aix on 386, unsupported platform.
5842
5843 * s/ms-w32.h: Remove boilerplate comments.
5844 (fcloseall, fgetchar, flushall, fputchar, getw, putw): Remove, unused.
5845
5846 * s/gnu-linux.h (TERM): Remove support.
5847 (HAVE_SYSVIPC): Remove, unused.
5848 (A_TEXT_OFFSET, A_TEXT_SEEK, ADJUST_EXEC_HEADER): Remove, not used
5849 for this system.
5850
5851 * process.c: Remove support for IRIS, unused.
5852 Remove support for TERM, not relevant anymore.
5853
5854 * unexalpha.c (DEFAULT_ENTRY_ADDRESS): Remove, replace the only
5855 used with the definition.
5856
5857 * s/aix4-2.h (static): Do not undef.
5858
5859 * m/ibmrs6000.h: Remove code depending on USG5_4, this file is
5860 only used on Aix.
5861 (HAVE_SYSVIPC): Remove, unused.
5862
5863 * m/hp800.h (CANNOT_DUMP): Do not undef.
5864
5865 * m/alpha.h: Fix comment.
5866
5867 * s/usg5-4.h (HAVE_SYSVIPC): Remove, unused.
5868 (USG_SHARED_LIBRARIES): Remove, only used in unexec.c which is not
5869 used by this configuration.
5870 * emacs.c: Remove code depending on USG_SHARED_LIBRARIES.
5871 * unexec.c: Remove code depending on HPUX and
5872 USG_SHARED_LIBRARIES, not used with this file. Remove code
5873 depending on IRIS, unused. Remove if 0-ed code.
5874
5875 * s/template.h: Remove comments about static.
5876
5877 * sysdep.c: Remove code depending on NEED_PTEM_H, unused.
5878 Remove if 0-ed code.
5879 (baud_convert): Don't depend on BAUD_CONVERT, all definitions the
5880 were the same as the default.
5881 * s/vms.h (BAUD_CONVERT): Remove, same as the default.
5882 Remove boilerplate comments.
5883 * s/hpux10-20.h (BAUD_CONVERT): Remove, same as the default.
5884 (HAVE_SYSVIPC): Remove, unused.
5885 (LD_SWITCH_SYSTEM_TEMACS): Simplify, hp9000s700 not supported anymore.
5886
5887 * m/ia64.h (PNTR_COMPARISON_TYPE): Remove, same as the default.
5888 Remove boilerplate comments.
5889 * m/amdx86-64.h (PNTR_COMPARISON_TYPE): Remove, same as the default.
5890 Remove boilerplate comments.
5891 * m/ibms390x.h (PNTR_COMPARISON_TYPE): Remove, same as the default.
5892 Remove boilerplate comments.
5893 * lisp.h (PNTR_COMPARISON_TYPE): Define it unconditionally.
5894
5895 * m/intel386.h (DATA_SEG_BITS): Remove definitions, only used on
5896 USG systems which do not use DATA_SEG_BITS.
5897 Refactor code. Remove boilerplate comments.
5898
5899 * m/ibms390.h:
5900 * m/m68k.h:
5901 * s/bsd-common.h:
5902 * s/cygwin.h:
5903 * s/darwin.h:
5904 * s/freebsd.h:
5905 * s/gnu.h:
5906 * s/msdos.h: Remove boilerplate comments.
5907
5908 * m/iris4d.h: Remove boilerplate comments and code for systems that
5909 do not use this file.
5910 (IRIS_4D): Remove, unused.
5911
5912 * m/mips.h: Remove boilerplate comments and code for systems that
5913 do not use this file.
5914 (SIGN_EXTEND_CHAR):
5915 * m/arm.h (SIGN_EXTEND_CHAR): Remove, unused.
5916 * unexmips.c: Remove file, unused.
5917
5918 * editfns.c (Fuser_full_name): Replace the only use of
5919 USER_FULL_NAME with its value.
5920 * config.in: Regenerate.
5921
5922 2008-07-16 David Reitter <david.reitter@gmail.com>
5923
5924 * Makefile.in: Add ns-win, ns-carbon-compat, easy-mmode and
5925 easy-menu to SOME_MACHINE_LISP for the new NeXTstep port.
5926
5927 2008-07-16 Glenn Morris <rgm@gnu.org>
5928
5929 * emacs.c (system-type): Doc fix.
5930
5931 2008-07-15 Stefan Monnier <monnier@iro.umontreal.ca>
5932
5933 * keyboard.c (parse_menu_item): Don't use cachelist, even under NS.
5934 If the cache doesn't work, let's fix it, rather than work around it.
5935
5936 2008-07-15 Adrian Robert <Adrian.B.Robert@gmail.com>
5937
5938 * Makefile.in: Correct additions for nsfont.o in last commit.
5939 * nsfont.m: New file (forgot last commit).
5940
5941 2008-07-15 Chris Hall <chris@web.workinglinux.com> (tiny change)
5942
5943 * callproc.c (set_initial_environment): Initialize
5944 Vprocess_environment under CANNOT_DUMP (fixes crash when
5945 batch-compiling for bootstrap).
5946
5947 2008-07-15 Chris Hall <chris@web.workinglinux.com> (tiny change)
5948 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
5949
5950 (make_initial_frame): Call init_frame_faces(f) in CANNOT_DUMP case --
5951 fix crash due to different init order.
5952
5953 2008-07-15 Adrian Robert <Adrian.B.Robert@gmail.com>
5954
5955 Changes and additions for NeXTstep windowing system (Cocoa and
5956 GNUstep) support.
5957
5958 * Makefile.in:
5959 * config.in: Support defines and build commands for NS port.
5960 * blockinput.h (BLOCK_INPUT, UNBLOCK_INPUT, TOTALLY_UNBLOCK_INPUT)
5961 (UNBLOCK_INPUT_TO): Don't use under NS unless EXPERIMENTAL_CONTROL_G.
5962 * dispextern.h: Include nsgui.h and add needed typedefs under NS
5963 windowing.
5964 (struct face): Add synth_ital field.
5965 * dispnew.c: Include nsterm.h when compiling under NS windowing.
5966 (init_display): Initialize Vinitial_window_system to "ns" when so
5967 compiled.
5968 * emacs.c: Include GSConfig.h when compiling under GNUstep.
5969 (display_arg): Use under NS.
5970 (main): Under NS, allocate autorelease pool and handle command line
5971 args. Move syms_of_xmenu() call under #ifdef HAVE_X_WINDOWS.
5972 (standard_args): Add NS-specific args.
5973 (shut_down_emacs): Shut down NS terminal if compiled under NS.
5974 * font.c (DEFAULT_ENCODING): New variable.
5975 (font_find_for_lface): Use it.
5976 (syms_of_font): Load syms_of_nsfont under NS.
5977 * font.h: Declare nsfont_driver when compiled under NS.
5978 * fontset.c: When compiling under NS, include nsterm.h.
5979 (fontset_from_font): Autoconstruct fontset under NS.
5980 * frame.c (various): Under NS, include nsterm.h, add Qns window system
5981 symbol, document and use it.
5982 (do_switch_frame): When for_deletion under Cocoa, add
5983 Fraise_frame(Qnil).
5984 (x_set_frame_parameters): Ensure font attribute changes are picked up.
5985 (x_get_arg): Allow "yes" and "no" as boolean values.
5986 (syms_of_frame): Declare Qns. Init Vdefault_frame_scroll_bars to
5987 Qright under Cocoa.
5988 (focus-follows-mouse): Default to 0 under NS.
5989 * frame.h (enum output_method): Add output_ns.
5990 (external_tool_bar, external_menu_bar, FRAME_EXTERNAL_TOOLBAR)
5991 (FRAME_EXTERNAL_MENU_BAR): Use under NS.
5992 (FRAME_WINDOW_P): NS-specific definition.
5993 * fringe.c (max_used_fringe_bitmap): Make public.
5994 * getloadavg.c (mach/mach.h): Include it under NeXT descendant OS's.
5995 (getloadavg): Use NeXT code under descendant OS's.
5996 * image.c (includes and header section, x_create_bitmap_from_data)
5997 (x_create_bitmap_from_file, free_bitmap_record, image_background)
5998 (image_background_transparent, x_clear_image_1)
5999 (x_create_x_image_and_pixmap, x_destroy_x_image, x_put_x_image)
6000 (Create_Pixmap_From_Bitmap_Data, xpm_load_image, lookup_rgb_color)
6001 (x_to_xcolors, x_from_xcolors, x_disable_image)
6002 (x_build_heuristic_mask, syms_of_image): Add NS support parallel to
6003 other GUIs, including XPM support using code originally written for
6004 Carbon GUI.
6005 (png_load, jpeg_load, tiff_load, gif_load): Add implementations
6006 using NS API.
6007 (image_ascent): Use font metrics macros instead of direct struct field
6008 access.
6009 * keyboard.c (includes): Add nsterm.h when compiling under NS.
6010 (kbd_buffer_get_event): Handle NS as other GUI windowing systems.
6011 Also, handle NS as GTK for menu bar purposes.
6012 (make_lispy_event): Handle NS as other GUI windowing systems, and as X
6013 toolkit where they differ.
6014 (parse_menu_item): Prefer keybindings using 'super' modifier. Also,
6015 use cachelist, still needed under NS.
6016 * keyboard.h (ENCODE_MENU_STRING, XtPointer, Boolean): Handle as NTGUI.
6017 (struct widget_value): Define it here for menu.c.
6018 * keymap.c (includes): Include modifier internals.
6019 (lisp_to_mod, modifier_sequence_p): New functions, compiled only under
6020 NS.
6021 (where_is_internal, Fwhere_is_internal): When compiled under NS, add
6022 support for preferring sequences using certain modifiers, specified by
6023 the FIRSTONLY argument.
6024 * lisp.h (hash_remove): Rename to avoid name clash when compiling
6025 under NS GNUstep implementation.
6026 (USE_LSB_TAG): Use it under Cocoa when compiling under NS.
6027 * lread.c (init_lread): Treat NS as HAVE_CARBON for turn_off_warning.
6028 * menu.c: Include nsterm.h under NS.
6029 (single_menu_item, parse_single_submenu, xmalloc_widget_value)
6030 (free_menubar_widget_tree_value, update_submenu_strings)
6031 (find_and_call_menu_selection): Treat NS as X and NT.
6032 (find_and_return_menu_selection): New function, used for popup menus.
6033 * nsgui.h:
6034 * nsterm.h:
6035 * nsfns.m:
6036 * nsimage.m:
6037 * nsmenu.m:
6038 * nsselect.m:
6039 * nsterm.m: New files.
6040 * process.c (wait_reading_process_output): Under NS, call ns_select()
6041 instead of plain select().
6042 * syntax.c (char_quoted): Under NS, avoid a crash when called near
6043 beginning of buffer.
6044 * sysselect.h (init_process): Rename when compiling under Cocoa to
6045 avoid name conflict.
6046 * termhooks.h (display_info): Add ns_display_info to union.
6047 * terminal.c (Fterminal_live_p): Add ns to terminal types.
6048 * terminfo.c (UP, BC, PC): Don't declare when compiling under NS in
6049 COCOA environment.
6050 * unexnext.c: Update to work with mach API on Mac OS X, and to use new
6051 unexec() signature. (Note, this will dump, but the resulting file
6052 crashes; unexosx is used instead; keeping around for reference and
6053 possible aid in getting dump working under GNUstep.)
6054 * w32gui.h (button_type, widget_value): Remove definitions (now in
6055 keyboard.h).
6056 * window.c: Include nsterm.h when compiling under NS.
6057 * xdisp.c (includes): Include nsterm.h when compiling under NS.
6058 (set_frame_menubar, update_menu_bar, display_menu_bar): Handle NS as
6059 other GUI windowing systems.
6060 (update_tool_bar, redisplay_tool_bar, redisplay_window): Handle NS as
6061 GTK.
6062 (x_consider_frame_title): Under NS, set icon type and frame
6063 modified-state indicator; use ns_set_name_as_filename() when using
6064 formatted title.
6065 (update_window_cursor): Make public when compiling under NS.
6066 (display_hourglass_p, syms_of_xdisp, hourglass_shown_p)
6067 (hourglass_atimer, Vhourglass_delay
6068 * xfaces.c (header section, init_frame_faces, clear_font_table)
6069 (defined_color, unload_color, x_face_list_fonts)
6070 (prepare_face_for_display): Add NS support parallel to other GUIs.
6071 Emulate GCs like other non-X GUIs.
6072 (split_font_name): Don't lowercase font name under NS.
6073 (merge_face_ref, Finternal_set_lisp_face_attribute): Support stippling
6074 under NS.
6075 * s/darwin.h: Add support for compilation under NS.
6076
6077 2008-07-15 Jason Rumney <jasonr@gnu.org>
6078
6079 * w32fns.c (Fx_create_frame): Remove duplicate unwind_protect.
6080 (w32_show_hourglass): Rename from show_hourglass.
6081 (w32_hide_hourglass): Rename from hide_hourglass.
6082 (DEFAULT_HOURGLASS_DELAY): Revert from last change.
6083 (Vhourglass_delay): Declare extern.
6084 (hourglass_started): Remove.
6085
6086 * xdisp.c (Vhourglass_delay): Remove static.
6087 (hourglass_started, start_hourglass, cancel_hourglass):
6088 Don't include these versions on WINDOWSNT.
6089
6090 2008-07-15 Adrian Robert <Adrian.B.Robert@gmail.com>
6091
6092 * dispextern.h (hourglass_shown_p, hourglass_atimer): New extern
6093 variables (formerly in xfns.c).
6094 (show_hourglass, hide_hourglass): New prototypes (same).
6095 * xdisp.c (display_hourglass_p, hourglass_shown_p, hourglass_atimer)
6096 (Vhourglass_delay, DEFAULT_HOURGLASS_DELAY): New variables (formerly
6097 in xfns.c).
6098 (syms_of_xdisp): Declare/initialize display-hourglass,
6099 hourglass-delay. Initialize hourglass_atimer, hourglass_shown_p.
6100 (hourglass_started, start_hourglass, cancel_hourglass): New functions,
6101 formerly in xfns.c.
6102 * xfns.c (display_hourglass_p, hourglass_atimer, hourglass_shown_p)
6103 (Vhourglass_delay, DEFAULT_HOURGLASS_DELAY, hourglass_started)
6104 (start_hourglass, cancel_hourglass): Remove.
6105 (show_hourglass, hide_hourglass): Remove prototypes and static
6106 modifiers.
6107 (syms_of_xfns): Remove display-hourglass, hourglass-delay,
6108 hourglass_atimer, hourglass_shown_p declaration/initialization.
6109 * macfns.c (display_hourglass_p, hourglass_atimer, hourglass_shown_p)
6110 (Vhourglass_delay, DEFAULT_HOURGLASS_DELAY, hourglass_started)
6111 (start_hourglass, cancel_hourglass): Remove.
6112 (show_hourglass, hide_hourglass): Remove prototypes and static
6113 modifiers.
6114 (syms_of_macfns): Remove display-hourglass, hourglass-delay,
6115 hourglass_atimer, hourglass_shown_p declaration/initialization.
6116 * w32fns.c (display_hourglass_p, Vhourglass_delay)
6117 (DEFAULT_HOURGLASS_DELAY): Remove.
6118 (syms_of_w32fns): Remove display-hourglass, hourglass-delay,
6119 hourglass_shown_p declaration/initialization.
6120
6121 2008-07-14 Jason Rumney <jasonr@gnu.org>
6122
6123 * w32fns.c (w32_get_arg): Remove wrapper function.
6124 (w32_createwindow, x_icon, x_create_tip_frame): Use x_get_arg
6125 directly.
6126 (Fx_create_frame): Sync with xfns.c. Use x_get_arg directly.
6127
6128 2008-07-14 Kenichi Handa <handa@m17n.org>
6129
6130 * xfont.c (xfont_open): Add workaround for X's bug.
6131
6132 2008-07-14 Emanuele Giaquinta <emanuele.giaquinta@gmail.com> (tiny change)
6133
6134 * fontset.c: Include <stdio.h> unconditionally.
6135
6136 2008-07-13 Michael Albinus <michael.albinus@gmx.de>
6137
6138 * dbusbind.c (Fdbus_register_signal): Allow also signal arguments
6139 for filtering.
6140
6141 2008-07-13 Dan Nicolaescu <dann@ics.uci.edu>
6142
6143 * s/vms.h: Use __GNUC__ instead of _GNUC_.
6144
6145 * m/macppc.h:
6146 * m/alpha.h: Use GNU_LINUX instead of LINUX. Reorganize conditionals.
6147
6148 * m/ibms390x.h (XINT, XUINT): Don't define, same as the default
6149 (SPECIAL_EMACS_INT):
6150 * m/ia64.h (SPECIAL_EMACS_INT):
6151 * m/amdx86-64.h (SPECIAL_EMACS_INT):
6152 * s/gnu.h (NLIST_STRUCT):
6153 * s/aix4-2.h (X11R5_INHIBIT_I18N):
6154 * s/gnu-linux.h (LINUX):
6155 * s/msdos.h (HAVE_FACES):
6156 * s/ms-w32.h (HAVE_FACES): Don't define, unused.
6157
6158 * systty.h:
6159 * sysdep.c (setup_pty): Don't depend on SYSV_PTYS, it is not used
6160 anymore.
6161
6162 2008-07-12 Dan Nicolaescu <dann@ics.uci.edu>
6163
6164 * syswait.h: Remove old if 0 code. Do not define WAITTYPE, it was
6165 always defined as int.
6166
6167 * s/netbsd.h (HAVE_UNION_WAIT, HAVE_WAIT_HEADER, WAIT_USE_INT):
6168 * s/gnu.h (HAVE_WAIT_HEADER, WAIT_USE_INT, HAVE_UNION_WAIT):
6169 * s/gnu-linux.h (HAVE_WAIT_HEADER):
6170 * s/freebsd.h (HAVE_WAIT_HEADER):
6171 * s/bsd-common.h (HAVE_UNION_WAIT):
6172 * s/aix4-2.h (HAVE_WAIT_HEADER):
6173 * m/mips.h (HAVE_UNION_WAIT):
6174 * s/usg5-4.h (HAVE_WAIT_HEADER, WAITTYPE): Do not define, not used.
6175 (COFF, static): Do not define, they are undefined later in the file.
6176
6177 * process.c (update_status): Don't use a union.
6178 (status_convert):
6179 (sigchld_handler): Use int instead of WAITTYPE.
6180
6181 2008-07-12 Chong Yidong <cyd@stupidchicken.com>
6182
6183 * indent.c (Fvertical_motion): Restore hscroll before moving to
6184 goal column.
6185
6186 2008-07-11 Dan Nicolaescu <dann@ics.uci.edu>
6187
6188 * lisp.h: Remove left over code.
6189
6190 2008-07-11 Andreas Schwab <schwab@suse.de>
6191
6192 * lisp.h: Fix logic in last change.
6193
6194 * menu.h: New file.
6195 * menu.c: Include it.
6196 * xmenu.c: Likewise.
6197 * Makefile.in: Update dependencies.
6198
6199 2008-07-11 Kenichi Handa <handa@m17n.org>
6200
6201 * fontset.c (fontset_from_font): Cancel the previous change.
6202
6203 2008-07-11 Dan Nicolaescu <dann@ics.uci.edu>
6204
6205 * lisp.h:
6206 * w32heap.c:
6207 * emacs.c:
6208 * alloc.c: Replace all references of NO_UNION_TYPE with
6209 USE_LISP_UNION_TYPE.
6210
6211 * m/xtensa.h (NO_UNION_TYPE):
6212 * m/vax.h (NO_UNION_TYPE):
6213 * m/template.h (NO_UNION_TYPE):
6214 * m/sparc.h (NO_UNION_TYPE):
6215 * m/mips.h (NO_UNION_TYPE):
6216 * m/macppc.h (NO_UNION_TYPE):
6217 * m/m68k.h (NO_UNION_TYPE):
6218 * m/iris4d.h (NO_UNION_TYPE):
6219 * m/intel386.h (NO_UNION_TYPE):
6220 * m/ibms390x.h (NO_UNION_TYPE):
6221 * m/ibms390.h (NO_UNION_TYPE):
6222 * m/ibmrs6000.h (NO_UNION_TYPE):
6223 * m/ia64.h (NO_UNION_TYPE):
6224 * m/hp800.h (NO_UNION_TYPE):
6225 * m/arm.h (NO_UNION_TYPE):
6226 * m/amdx86-64.h (NO_UNION_TYPE):
6227 * m/alpha.h (NO_UNION_TYPE): Remove definition, all platform were
6228 defining it the same.
6229
6230 2008-07-10 Chong Yidong <cyd@stupidchicken.com>
6231
6232 * xdisp.c (move_it_to): Backtrack if past the edge of a wrapped line.
6233
6234 2008-07-10 Dan Nicolaescu <dann@ics.uci.edu>
6235
6236 * fileio.c:
6237 * sysdep.c
6238 * systty.h:
6239 * m/ibmrs6000.h:
6240 * m/iris4d.h:
6241 * s/aix4-2.h:
6242 * s/freebsd.h:
6243 * s/gnu-linux.h:
6244 * s/hpux10-20.h:
6245 * s/hpux11.h:
6246 * s/netbsd.h:
6247 * s/sol2-3.h:
6248 * s/sol2-4.h:
6249 * s/sol2.h:
6250 * s/usg5-4.h:
6251 * s/vms.h: Remove references to unused variables.
6252
6253 2008-07-10 Andreas Schwab <schwab@suse.de>
6254
6255 * ftfont.c (ftfont_resolve_generic_family): Remove foundry from
6256 pattern before matching the generic family.
6257
6258 2008-07-10 Dan Nicolaescu <dann@ics.uci.edu>
6259
6260 * unexec.c:
6261 * s/vms.h:
6262 * s/usg5-4-2.h:
6263 * s/sol2-5.h:
6264 * s/freebsd.h:
6265 * s/darwin.h: Remove dead code.
6266
6267 * m/template.h:
6268 * m/sparc.h:
6269 * m/mips.h:
6270 * m/m68k.h:
6271 * m/iris4d.h:
6272 * m/intel386.h:
6273 * m/ibms390x.h:
6274 * m/ibms390.h:
6275 * m/ia64.h:
6276 * m/hp800.h:
6277 * m/arm.h:
6278 * m/amdx86-64.h: Remove dead code and references to unused
6279 and compiler defined symbols.
6280
6281 * unexmips.c:
6282 * unexelf.c: Remove references to desupported systems.
6283
6284 * m/powermac.h: Remove file, it is now identical to m/macppc.h.
6285
6286 * m/powermac.h: Remove boilerplate comments.
6287 (NO_REMAP): Remove unused definition.
6288
6289 * m/macppc.h (UNEXEC, NO_TERMIO): Don't define, the s/ files
6290 define them.
6291
6292 2008-07-10 Kenichi Handa <handa@m17n.org>
6293
6294 * xfont.c (xfont_open): Log the reason of failure.
6295
6296 2008-07-09 Stefan Monnier <monnier@iro.umontreal.ca>
6297
6298 * fontset.c (fontset_get_font_group):
6299 * font.c (font_check_otf): Specify argument types.
6300
6301 2008-07-09 Kenichi Handa <handa@m17n.org>
6302
6303 * coding.c (detect_coding_utf_8): Set detect_info->found only when
6304 non-ASCII char is found.
6305
6306 * fontset.c (fontset_compare_rfontdef): Fix plus/minus.
6307 (reorder_font_vector): Change the arg preferred_family to font.
6308 Prefer the spec matching with font.
6309 (fontset_get_font_group): New function.
6310 (fontset_find_font): Change the format of an element of a realized
6311 fontset. Use fontset_get_font_group.
6312 (fontset_font): Try the current fontset, the default fontset, the
6313 fallbacks of the current fontset, and the fallbacks of the default
6314 fontset in this order.
6315 (face_for_char): Delete the shortcut to use the current font.
6316 (fontset_from_font): Don't set fonts for Latin in the fontset.
6317
6318 * font.h (font_make_object, font_match_p): Adjust prototypes.
6319
6320 * ftfont.h [FT_BDF_H]: Include FT_BDF_H.
6321
6322 * font.c (font_make_object): New arg entity and pixelsize.
6323 (font_check_otf_features, font_check_otf): New functions.
6324 (font_match_p): Check :lang, :script, and :otf properties.
6325
6326 * xfont.c (xfont_open): Adjust it for the change of
6327 font_make_object.
6328 (xfont_text_extents): Fix initial setting of metrics.
6329
6330 * ftfont.c (struct ftfont_info): New member index, delete member
6331 fc_charset_idx. Make the member order compatible with struct
6332 xftfont_info.
6333 (fc_charset_table): Change charset names to registry names.
6334 (ftfont_pattern_entity): Delete the args registry and
6335 fc_charset_idx. Change the value of :font-entity property
6336 to (FONTNAME . INDEX). Always set :registry property to
6337 `iso10646-1'.
6338 (struct ftfont_cache_data): New struct.
6339 (ftfont_lookup_cache): New arg for_face.
6340 (ftfont_get_fc_charset, ftfont_get_otf): New functions.
6341 (ftfont_driver): Set the member otf_capability.
6342 (ftfont_get_charset): Adjust it for the change of
6343 fc_charset_table.
6344 (OTF_TAG_SYM): New macro.
6345 (ftfont_spec_pattern): Delete the arg fc_charset_idx. Adjust it
6346 for the change of fc_charset_table.
6347 (ftfont_list): Adjust it for the change of ftfont_spec_pattern and
6348 ftfont_pattern_entity. Add FC_INDEX to objset.
6349 (ftfont_match): Adjust it for the change of ftfont_spec_pattern
6350 and ftfont_pattern_entity.
6351 (ftfont_open): Adjust it for the change of ftfont_lookup_cache,
6352 font_make_object, struct ftfont_info.
6353 (ftfont_has_char): Use ftfont_get_fc_charset.
6354 (ftfont_otf_features, ftfont_otf_capability): New functions.
6355 (ftfont_shape): Use ftfont_get_otf.
6356 (ftfont_text_extents): Fix initial setting of metrics.
6357
6358 * xftfont.c (struct xftfont_info): New member ft_size. Make the
6359 member order compatible with struct ftfont_info.
6360 (xftfont_open): Add FC_CHARSET to the pattern. Set
6361 xftfont_info->ft_size. Don't unlock the face. Check BDF
6362 properties if appropriate.
6363 (xftfont_close): Unlock the face.
6364 (xftfont_anchor_point, xftfont_shape): Deleted.
6365 (syms_of_xftfont): Don't set members anchor_point and shape of
6366 xftfont_driver.
6367
6368 * w32uniscribe.c (uniscribe_open): Adjust it for the change of
6369 font_make_object.
6370
6371 * w32font.c (w32font_open): Adjust it for the change of
6372 font_make_object.
6373 (w32font_open_internal): Don't set properties of font_object here.
6374
6375 2008-07-08 Chong Yidong <cyd@stupidchicken.com>
6376
6377 * macfns.c (x_create_tip_frame):
6378 * w32fns.c (x_create_tip_frame):
6379 * xfns.c (x_create_tip_frame): Pass parameter argument to
6380 face-set-after-frame-default.
6381
6382 * xfaces.c (Finternal_merge_in_global_face): Save merged
6383 attributes for the default face back into the face vector.
6384
6385 2008-07-08 Andreas Schwab <schwab@suse.de>
6386
6387 * fontset.h: Declare fontset_from_font. Don't declare
6388 new_fontset_from_font and fontset_from_font_name.
6389 * xterm.c: Include "fontset.h".
6390 * Makefile.in (xterm.o): Update dependencies.
6391
6392 2008-07-08 Glenn Morris <rgm@gnu.org>
6393
6394 * m/sparc.h: Define __sparc__ rather than sparc. (Bug#507.)
6395 * alloc.c, ecrt0.c: Use __sparc__ rather than sparc.
6396
6397 2008-07-07 Chong Yidong <cyd@stupidchicken.com>
6398
6399 * frame.c (Qinhibit_face_set_after_frame_default): Var deleted.
6400 (x_set_frame_parameters): Don't bind it.
6401
6402 2008-07-07 Juanma Barranquero <lekktu@gmail.com>
6403
6404 * w32fns.c (map_w32_filename): Declare extern.
6405
6406 2008-07-07 Jason Rumney <jasonr@gnu.org>
6407
6408 * w32term.c (WS_EX_LAYERED): Define if not already.
6409
6410 2008-07-06 Chong Yidong <cyd@stupidchicken.com>
6411
6412 * xfaces.c (set_font_frame_param): Don't try to set the font
6413 parameter if it is still unspecified in the lface.
6414
6415 2008-07-05 Chong Yidong <cyd@stupidchicken.com>
6416
6417 * xfaces.c (Finternal_merge_in_global_face): Don't realize default
6418 face if it didn't already exist.
6419
6420 * xdisp.c (try_window_id): Give up if word-wrapping is on.
6421
6422 2008-07-05 Andreas Schwab <schwab@suse.de>
6423
6424 * xdisp.c (get_it_property): Move out of HAVE_WINDOW_SYSTEM section.
6425
6426 2008-07-05 Chong Yidong <cyd@stupidchicken.com>
6427
6428 * xdisp.c (IT_OVERFLOW_NEWLINE_INTO_FRINGE): Turn it off if
6429 word-wrapping.
6430 (IT_DISPLAYING_WHITESPACE): New macro.
6431 (move_it_in_display_line_to): Handle MOVE_TO_X requests properly
6432 when word-wrapping. Simplify word-wrapping logic. Use correct
6433 pixel positions when saving copies of the iterator.
6434 (display_line): Use proper wrap point if the last character on a
6435 line was preceded by whitespace.
6436
6437 2008-07-04 Stefan Monnier <monnier@iro.umontreal.ca>
6438
6439 * Makefile.in (${etc}DOC): Depend on ${lisp} rather than ${shortlisp}.
6440
6441 2008-07-04 Kenichi Handa <handa@m17n.org>
6442
6443 * fns.c (Fstring_to_unibyte): Delete the arg ACCEPT-LATIN-1.
6444
6445 * lisp.h: EXFUN adjusted for the change of Fstring_to_unibyte.
6446
6447 2008-07-02 Jason Rumney <jasonr@gnu.org>
6448
6449 * xfns.c (syms_of_xfns): Only define x-select-font when both
6450 HAVE_FREETYPE and USE_GTK.
6451
6452 * xdisp.c (next_element_from_display_vector): Move assignment out
6453 of if statement.
6454
6455 2008-07-02 Toru Tsuneyoshi <t_tuneyosi@hotmail.com>
6456
6457 * lisp.h (Qdelete_file, Qdelete_directory): Declare extern.
6458
6459 * fileio.c (delete_by_moving_to_trash, Qmove_file_to_trash): New vars.
6460 (syms_of_fileio): Initialize and export them.
6461 (Fdelete_directory, Fdelete_file): Optionally delete via trash.
6462
6463 * w32fns.c (FOF_NO_CONNECTED_ELEMENTS): Define if not already.
6464 (Fsystem_move_file_to_trash): New function.
6465 (syms_of_w32fns): Export it to lisp.
6466
6467 2008-07-01 Jason Rumney <jasonr@gnu.org>
6468
6469 * w32font.c (w32font_text_extents): Don't count overhang as part
6470 of width.
6471
6472 2008-06-30 Miles Bader <miles@gnu.org>
6473
6474 * dispextern.h (struct glyph, struct it, struct iterator_stack_entry):
6475 Add `avoid_cursor_p' field.
6476
6477 * xdisp.c (push_it, pop_it): Save/restore avoid_cursor_p field.
6478 (set_cursor_from_row): Skip glyphs with avoid_cursor_p set.
6479 (append_glyph, append_composite_glyph, produce_image_glyph)
6480 (append_stretch_glyph): Initialize avoid_cursor_p.
6481 (get_it_property): Rename from `get_line_height_property'.
6482 (x_produce_glyphs): Use get_it_property.
6483 (handle_line_prefix, push_display_prop): New functions.
6484 (display_line, move_it_in_display_line_to): Handle line/wrap prefixes.
6485 (Vwrap_prefix, Qwrap_prefix, Vline_prefix, Qline_prefix):
6486 New variables.
6487 (syms_of_xdisp): Initialize them.
6488
6489 2008-06-30 Kenichi Handa <handa@m17n.org>
6490
6491 * xftfont.c (xftfont_open): Don't call FcConfigSubstitute and
6492 XftDefaultSubstitute (they are called in XftFontMatch).
6493 (xftfont_open): Fix args to ftfont_font_format.
6494
6495 * ftfont.c (fc_charset_table): New member lang.
6496 (ftfont_resolve_generic_family): New arg pattern.
6497 (ftfont_spec_pattern): Check fc_charset_table[]->lang.
6498 (ftfont_list): Call ftfont_resolve_generic_family with `pattern'.
6499 (ftfont_open): Fix args to ftfont_font_format.
6500 (ftfont_font_format): New arg filename.
6501
6502 2008-06-30 Chong Yidong <cyd@stupidchicken.com>
6503
6504 * xfaces.c (Finternal_merge_in_global_face): If default face was
6505 modified, realize it again. Update the font face attribute.
6506
6507 2008-06-29 Jason Rumney <jasonr@gnu.org>
6508
6509 * w32term.c (x_set_frame_alpha): Fix logic.
6510
6511 2008-06-29 Kenichi Handa <handa@m17n.org>
6512
6513 * fontset.c (Finternal_char_font): Return font-object instead of
6514 font-name.
6515
6516 * composite.c (get_composition_id): Fix the width calculation for TAB.
6517
6518 2008-06-29 Stefan Monnier <monnier@iro.umontreal.ca>
6519
6520 * indent.c (Fvertical_motion): Properly handle float column arg.
6521
6522 2008-06-28 Jason Rumney <jasonr@gnu.org>
6523
6524 * w32term.c (pfnGetFontUnicodeRanges): Remove unused function pointer.
6525 (pfnSetLayeredWindowAttributes): New function pointer.
6526 (w32_initialize): Initialize it when supported.
6527 (x_set_frame_alpha): New function.
6528
6529 * w32fns.c (Fx_create_frame): Initialize frame parameter `alpha'.
6530 (w32_frame_parm_handlers): Set alpha handler.
6531
6532 * frame.c (x_set_alpha) [HAVE_NTGUI]: Call x_set_frame_alpha.
6533
6534 2008-06-27 Jason Rumney <jasonr@gnu.org>
6535
6536 * w32fns.c (x_to_w32_font, w32_to_x_font, x_to_w32_weight)
6537 (w32_to_x_weight, w32_to_all_x_charsets): Remove obsolete functions.
6538 (w32_to_x_charset, x_to_w32_charset)
6539 (Qw32_charset_ansi, Qw32_charset_symbol, Qw32_charset_default)
6540 (Qw32_charset_shiftjis, Qw32_charset_hangeul, Qw32_charset_johab)
6541 (Qw32_charset_chinesebig5, Qw32_charset_gb2312, Qw32_charset_oem)
6542 (Qw32_charset_easteurope, Qw32_charset_turkish, Qw32_charset_baltic)
6543 (Qw32_charset_russian, Qw32_charset_arabic, Qw32_charset_greek)
6544 (Qw32_charset_hebrew, Qw32_charset_vietnamese, Qw32_charset_thai)
6545 (Qw32_charset_mac, Vw32_charset_info_alist): Move to w32font.c.
6546 (Qw32_charset_unicode): Remove.
6547 (syms_of_w32fns): Update for above changes.
6548
6549 * w32font.c (w32_to_x_charset, x_to_w32_charset)
6550 (Qw32_charset_ansi, Qw32_charset_symbol, Qw32_charset_default)
6551 (Qw32_charset_shiftjis, Qw32_charset_hangeul, Qw32_charset_johab)
6552 (Qw32_charset_chinesebig5, Qw32_charset_gb2312, Qw32_charset_oem)
6553 (Qw32_charset_easteurope, Qw32_charset_turkish, Qw32_charset_baltic)
6554 (Qw32_charset_russian, Qw32_charset_arabic, Qw32_charset_greek)
6555 (Qw32_charset_hebrew, Qw32_charset_vietnamese, Qw32_charset_thai)
6556 (Qw32_charset_mac, Vw32_charset_info_alist): Move from w32fns.c.
6557 (syms_of_w32font): Update for above changes.
6558
6559 2008-06-27 Dan Nicolaescu <dann@ics.uci.edu>
6560
6561 * s/usg5-4.h: Fix previous change: keep the correct branch of a
6562 removed #if.
6563 (USG_SHARED_LIBRARIES): Remove duplicate definition.
6564
6565 2008-06-26 Juanma Barranquero <lekktu@gmail.com>
6566 Eli Zaretskii <eliz@gnu.org>
6567
6568 * makefile.w32-in (LOCAL_FLAGS):
6569 Don't include WINDOWSNT, DOS_NT and _UCHAR_T.
6570
6571 * sysdep.c (_spawnlp, _getpid):
6572 Declare with explicit _cdecl instead of _CRTAPI1.
6573
6574 * editfns.c (Fget_internal_run_time):
6575 Check for WINDOWSNT with #ifdef, not #if.
6576
6577 2008-06-26 Jason Rumney <jasonr@gnu.org>
6578
6579 * w32font.h (FONT_HANDLE, FONT_TEXTMETRIC): New macros.
6580
6581 * w32term.c (x_draw_glyph_string_foreground)
6582 (x_draw_composite_glyph_string_foreground): Sync with xterm.c.
6583 Use FONT_HANDLE macro.
6584 (x_draw_glyph_string): Use FONT_TEXTMETRIC macro.
6585
6586 * w32uniscribe.c (uniscribe_otf_capability, uniscribe_shape)
6587 (uniscribe_encode_char): Use FONT_HANDLE macro.
6588
6589 * w32font.c (Fx_select_font): Use FONT_HANDLE macro.
6590 (w32font_text_extents): Use precast w32_font.
6591 (w32font_close): Free cached metrics.
6592 (w32font_open_internal): Allocate space for name on stack.
6593
6594 2008-06-26 Chong Yidong <cyd@stupidchicken.com>
6595
6596 * xdisp.c (extend_face_to_end_of_line): Fix last change.
6597
6598 2008-06-26 Jason Rumney <jasonr@gnu.org>
6599
6600 * w32term.h (FONT_AVG_WIDTH): Remove obsolete macro.
6601 (CP_8BIT, CP_UNICODE, CP_UNKNOWN): Remove obsolete constants.
6602
6603 2008-06-26 Juanma Barranquero <lekktu@gmail.com>
6604
6605 * Makefile.in (SOME_MACHINE_OBJECTS): Remove w32bdf.o.
6606
6607 2008-06-26 Jason Rumney <jasonr@gnu.org>
6608
6609 * w32bdf.c, w32bdf.h: Remove obsolete files.
6610
6611 * makefile.w32-in: Remove refs to w32bdf.h and w32bdf.c.
6612
6613 * w32gui.h: Don't include w32bdf.h.
6614 (XCharStruct, enum w32_char_font_type, W32FontStruct):
6615 Remove obsolete font support.
6616
6617 * w32font.h (struct w32font_info): Remove compat_w32_font.
6618 Add hfont member.
6619 (FONT_COMPAT): Remove obsolete macro.
6620
6621 * w32font.c (w32font_close): Remove compat code. Delete hfont member.
6622 (w32font_encode_char, w32font_text_extents): Use new hfont member.
6623 (w32font_open_internal): Remove compat code. Set new hfont member.
6624 (Fx_select_font): Use new hfont member.
6625
6626 * w32uniscribe.c (uniscribe_otf_capability, uniscribe_shape)
6627 (uniscribe_encode_char): Use new hfont member.
6628
6629 * w32term.c (x_draw_glyph_string_foreground)
6630 (x_draw_composite_glyph_string_foreground): Use new hfont member.
6631 (x_draw_glyph_string): Use metrics in w32font_info.
6632
6633 2008-06-26 Kenichi Handa <handa@m17n.org>
6634
6635 * xdisp.c (handle_auto_composed_prop): Fix for the terminal case.
6636
6637 2008-06-26 Dan Nicolaescu <dann@ics.uci.edu>
6638
6639 * unexnext.c:
6640 * m/ews4800.h:
6641 * m/hp9000s300.h:
6642 * m/ibm370aix.h:
6643 * m/mips-siemens.h:
6644 * m/ncr386.h:
6645 * m/next.h:
6646 * m/pmax.h:
6647 * m/powerpcle.h:
6648 * m/tandem-s2.h:
6649 * s/386bsd.h:
6650 * s/bsd386.h:
6651 * s/bsd4-1.h:
6652 * s/bsd4-2.h:
6653 * s/bsdos2-1.h:
6654 * s/bsdos2.h:
6655 * s/bsdos3.h:
6656 * s/bsdos4.h:
6657 * s/nextstep.h:
6658 * s/ultrix4-3.h:
6659 * s/usg5-0.h:
6660 * s/usg5-2-2.h:
6661 * s/usg5-2.h:
6662 * s/usg5-4-3.h:
6663 * s/ux4800.h:
6664 * s/uxpds.h:
6665 * s/uxpv.h: Remove support for obsolete systems.
6666 * s/hpux.h, s/hpux10.h, s/hpux8.h, s/hpux9.h, s/hpux9shr.h:
6667 Remove, insert contents in s/hpux10-20.h.
6668 * s/aix3-1.h, s/aix3-2-5.h, s/aix3-2.h, s/aix4-1.h, s/aix4.h:
6669 Remove, insert contents in s/aix4-2.h.
6670 * s/usg5-3.h: Remove, insert contents in s/usg5-4.h.
6671 * s/bsd4-3.h: Rename to ...
6672 * s/bsd-common.h: ... this.
6673 * data.c:
6674 * doc.c:
6675 * ecrt0.c:
6676 * emacs.c:
6677 * fileio.c:
6678 * floatfns.c:
6679 * keyboard.c:
6680 * mem-limits.h:
6681 * print.c:
6682 * process.c:
6683 * sysdep.c:
6684 * syssignal.h:
6685 * systty.h:
6686 * syswait.h:
6687 * term.c:
6688 * unexec.c:
6689 * unexelf.c:
6690 * unexhp9k800.c:
6691 * m/hp800.h:
6692 * m/ibmrs6000.h:
6693 * m/mips.h:
6694 * m/vax.h:
6695 * s/darwin.h:
6696 * s/freebsd.h:
6697 * s/gnu.h:
6698 * s/ms-w32.h:
6699 * s/msdos.h:
6700 * s/netbsd.h:
6701 * s/template.h: Remove references to obsolete variables.
6702
6703 * Makefile.in: Add dependencies for all unexec files.
6704 (admindir): Remove unused variable.
6705 (UNEXEC_SRC): Remove references.
6706
6707 2008-06-25 Chong Yidong <cyd@stupidchicken.com>
6708
6709 * xfns.c (x_default_font_parameter): If Xft is available, first
6710 try Monospace-12 for the default font.
6711
6712 2008-06-25 Jason Rumney <jasonr@gnu.org>
6713
6714 * xdisp.c (get_glyph_face_and_encoding): Encode invalid glyphs as 0.
6715
6716 2008-06-25 Stefan Monnier <monnier@iro.umontreal.ca>
6717
6718 * bytecode.c (Fbyte_code): Disable debugging code that doesn't compile.
6719
6720 * buffer.c (syms_of_buffer): Remove default-word-wrap.
6721
6722 2008-06-25 Juanma Barranquero <lekktu@gmail.com>
6723
6724 * xdisp.c (syms_of_xdisp) <truncate-partial-width-windows>: Doc fix.
6725 <scroll-conservatively>: Fix typo in docstring.
6726
6727 * xselect.c (Fx_send_client_event): Doc fix.
6728
6729 2008-06-25 Kenichi Handa <handa@m17n.org>
6730
6731 * xfaces.c (Fx_list_fonts): Call Flist_fonts with the arg PREFER.
6732
6733 * font.c (font_parse_fcname): Remove unused variables.
6734 (font_sort_entites): Delete the arg SPEC. Caller changed.
6735 Fix for the case of ! best_only.
6736 (font_delete_unmatched): Check DPI and AVGWIDTH too.
6737
6738 * lisp.h (Fstring_to_unibyte): EXFUN it.
6739
6740 * character.h (str_to_unibyte): Extern it.
6741
6742 * character.c (str_to_unibyte): New function.
6743
6744 * fns.c (Fstring_to_unibyte): New function.
6745 (syms_of_fns): Defsubr it.
6746
6747 2008-06-24 Kenichi Handa <handa@m17n.org>
6748
6749 * font.c (font_score): Even if the PIXEL_SIZE is the same, check
6750 DPI too.
6751 (font_sort_entites): Setup prefer_prop[FONT_DPI_INDEX] too.
6752
6753 2008-06-24 Andreas Schwab <schwab@suse.de>
6754
6755 * Makefile.in (${lispsource}loaddefs.el): Rename from
6756 ../lisp/loaddefs.el.
6757 (bootstrap-clean): Do what distclean does but don't remove
6758 Makefile.
6759 (distclean): Depend on bootstrap-clean and remove Makefile.
6760
6761 2008-06-24 Chong Yidong <cyd@stupidchicken.com>
6762
6763 * buffer.h (struct buffer): New member word_wrap.
6764
6765 * buffer.c (syms_of_buffer): New variables default-word-wrap and
6766 word-wrap.
6767 (init_buffer_once): Initialize them.
6768
6769 * dispextern.h (struct it): Replace bool truncate_lines_p with a
6770 line_wrap enum possessing three possible values.
6771
6772 * termopts.h: Replace truncate_partial_width_windows with
6773 Vtruncate_partial_width_windows.
6774
6775 * dispnew.c (direct_output_for_insert): Avoid direct output when
6776 inserting a space with word wrap on.
6777
6778 * indent.c (compute_motion): Obey integer values of
6779 truncate-partial-width-windows.
6780
6781 * xdisp.c (Vtruncate_partial_width_windows): New Lisp_Object,
6782 replacing truncate_partial_width_windows.
6783 (init_iterator): If Vtruncate_partial_width_windows is an integer,
6784 truncate only if the window width is below that integer.
6785 (start_display, resize_mini_window, produce_stretch_glyph)
6786 (display_string, move_it_in_display_line_to): Use line_wrap.
6787 (back_to_previous_visible_line_start, reseat_1): Reset
6788 string_from_display_prop_p.
6789 (display_line): Extend default face to end of line when wrapping.
6790
6791 2008-06-24 Kim F. Storm <storm@cua.dk>
6792
6793 * xdisp.c (display_line, move_it_in_display_line_to): Add ability
6794 to wrap continued lines at word boundaries.
6795
6796 2008-06-24 Jason Rumney <jasonr@gnu.org>
6797
6798 * font.c (Ffont_face_attributes): Multiply pixel size before point
6799 conversion to avoid multiplying rounding error.
6800
6801 2008-06-23 Jason Rumney <jasonr@gnu.org>
6802
6803 * w32term.c (x_draw_glyph_string_background)
6804 (x_draw_glyph_string): Remove old bdf font code.
6805
6806 * w32term.h (FONT_TYPE_FOR_UNIBYTE, FONT_TYPE_FOR_MULTIBYTE): Remove.
6807
6808 2008-06-22 Kenichi Handa <handa@m17n.org>
6809
6810 * font.c (font_find_for_lface): Try the adstyle specified in
6811 the property of LFACE_FONT of LFACE (if any).
6812
6813 2008-06-21 Seiji Zenitani <zenitani@mac.com>
6814 Ryo Yoshitake <ryo@shiftmode.net>
6815
6816 * xterm.c (x_set_frame_alpha): Add x_catch_errors for bug#437.
6817
6818 2008-06-22 Stefan Monnier <monnier@iro.umontreal.ca>
6819
6820 * Makefile.in (${lisp} ${SOME_MACHINE_LISP}, ../lisp/loaddefs.el):
6821 Use $(BOOTSTRAPEMACS) rather than witness-emacs.
6822 (bootstrap-emacs${EXEEXT}): Merge witness-emacs into it.
6823 (witness-emacs): Remove.
6824 (lisp, shortlisp): Move loaddefs.el earlier.
6825 (mostlyclean): Forget about witness-emacs.
6826
6827 2008-06-22 Glenn Morris <rgm@gnu.org>
6828
6829 * Makefile.in (witness-emacs): Depend on temacs${EXEEXT}.
6830 (.SUFFIXES): Declare .el.elc as a suffix rule, for non-GNU makes.
6831
6832 2008-06-21 Stefan Monnier <monnier@iro.umontreal.ca>
6833
6834 * Makefile.in (PRECOMP): Remove.
6835 (${lisp} ${SOME_MACHINE_LISP}): Remove pseudo dependency on PRECOMP.
6836 (witness-emacs): Run `compile-first'.
6837 (.el.elc): Use the new compile-onefile target.
6838
6839 2008-06-21 Kenichi Handa <handa@m17n.org>
6840
6841 * xftfont.c (xftfont_open): Handle QCembolden only when
6842 FC_EMBOLDEN is defined.
6843
6844 2008-06-21 Andreas Schwab <schwab@suse.de>
6845
6846 * Makefile.in (witness-emacs): Use ../lisp, not $(lispsource).
6847 (.el.elc): Likewise.
6848
6849 2008-06-21 Miles Bader <miles@gnu.org>
6850
6851 * Makefile.in (../lisp/loaddefs.el): Build autoloads in the lisp
6852 build dir, not the lisp source dir.
6853
6854 2008-06-21 Stefan Monnier <monnier@iro.umontreal.ca>
6855
6856 * Makefile.in (emacs${EXEEXT}): Link the new emacs to bootstrap-emacs.
6857 (bootstrapclean): Remove.
6858 (.el.elc): New rule.
6859 (PRECOMP): New var.
6860 (../lisp/subdirs.el): Remove.
6861 (bootstrap-emacs${EXEEXT}): Remove subdirs.el and charpro.el dependency.
6862 (witness-emacs): New target.
6863 (mostlyclean): Remove witness-emacs as well.
6864 (../lisp/loaddefs.el, ${lisp} ${SOME_MACHINE_LISP}):
6865 Add witness-emacs dependency.
6866
6867 2008-06-20 Chong Yidong <cyd@stupidchicken.com>
6868
6869 * font.c (Ffont_face_attributes): Omit key-attribute pairs not
6870 defined by the font.
6871
6872 2008-06-20 Stefan Monnier <monnier@iro.umontreal.ca>
6873
6874 * Makefile.in (emacs${EXEEXT}): Depend on the machine-specific files.
6875 (bootstrap-clean): New target that keeps TAGS around.
6876 (../lisp/subdirs.el, ../lisp/loaddefs.el): New targets.
6877 (bootstrap-emacs${EXEEXT}): Depend on subdirs.el.
6878
6879 2008-06-20 Jason Rumney <jasonr@gnu.org>
6880
6881 * w32fns.c, w32term.c, w32term.h, w32gui.h [OLD_FONT]:
6882 Remove obsolete font code.
6883
6884 * w32font.c (font_matches_spec): Use csb bitfield from font signature
6885 to determine language support.
6886
6887 2008-06-20 Stefan Monnier <monnier@iro.umontreal.ca>
6888
6889 * sysdep.c (cfsetspeed): New fun extracted from the code.
6890 (cfmakeraw): Move before first use.
6891
6892 2008-06-20 Angelo Graziosi <angelo.graziosi@alice.it> (tiny change)
6893
6894 * sysdep.c (cfmakeraw): Provide fallback implementation.
6895 (serial_configure): Provide fallback implementation of cfsetspeed.
6896
6897 2008-06-20 Kenichi Handa <handa@m17n.org>
6898
6899 * xftfont.c (xftfont_open): Add FOUNDRY, SPACING, DPI, SCALABLE to
6900 the pattern.
6901
6902 * fontset.c (fontset_from_font): Copy font_spec before changing
6903 the elements.
6904
6905 * xfns.c (x_default_font_parameter): Try "monospace-12" too.
6906
6907 2008-06-20 Stefan Monnier <monnier@iro.umontreal.ca>
6908
6909 * w32fns.c, xfns.c (x_default_font_parameter): Only set `font-param'
6910 for explicit `font' parameters.
6911
6912 * frame.c (x_set_font): Remove unexplained call to fix inf-recursion.
6913
6914 2008-06-19 Kenichi Handa <handa@m17n.org>
6915
6916 * frame.c: Include <ctype.h>.
6917 (x_set_font_backend): Allow spacing characters in the X resource
6918 for FontBackend.
6919
6920 2008-06-19 Stefan Monnier <monnier@iro.umontreal.ca>
6921
6922 * w32fns.c, xfns.c (Qfont_param): New var.
6923 (syms_of_w32fns): Initialize it.
6924 (x_default_font_parameter): Record explicit `font' into
6925 `font-parameter'.
6926
6927 2008-06-18 Kenichi Handa <handa@m17n.org>
6928
6929 * font.c (font_parse_xlfd): Fix previous change.
6930 (font_parse_fcname): Don't use :fc-unknown-spec.
6931 (FRAME_X_DISPLAY_INFO): Be sure to have at least 1 pixel height.
6932 (Fcopy_font_spec): Preserve the order of elements in FONT_EXTRA.
6933 (font_add_log): Prepend the driver name to the resulting fonts.
6934
6935 * ftfont.c (ftfont_pattern_entity): New arg extra. Caller changed.
6936 (ftfont_spec_pattern): Don't check QCfc_unknown_spec and QCname.
6937 (ftfont_list) [FC_FONTFORMAT]: Include FC_FONTFORMAT in objset.
6938
6939 * xftfont.c (QChinting , QCautohint, QChintstyle, QCrgba)
6940 (QCembolden): New variables.
6941 (syms_of_xftfont): DEFSYM them.
6942 (xftfont_open): Call XftFontMatch. Don't trust the result of
6943 XftTextExtents8 if the pixel_size is less than 5.
6944
6945 2008-06-18 Andreas Schwab <schwab@suse.de>
6946
6947 * font.c (Ffont_face_attributes): Only define if HAVE_WINDOW_SYSTEM.
6948 (syms_of_font): Only defsubr if HAVE_WINDOW_SYSTEM.
6949
6950 2008-06-18 Jason Rumney <jasonr@gnu.org>
6951
6952 * w32font.c (w32font_list, w32font_match): Add logging.
6953
6954 * w32uniscribe.c (uniscribe_list, uniscribe_match): Add logging.
6955
6956 2008-06-17 Chong Yidong <cyd@stupidchicken.com>
6957
6958 * font.c (font_parse_fcname): Store divider characters for
6959 unknown-spec list. For known key symbols, intern using correct
6960 symbol name.
6961
6962 2008-06-17 Kenichi Handa <handa@m17n.org>
6963
6964 * xfaces.c (realize_default_face): If the frame is not on window
6965 system, set the fontset of face to nil.
6966
6967 2008-06-17 Naohiro Aota <nao.aota@gmail.com> (tiny change)
6968
6969 * fontset.c (fontset_pattern_regexp): Escape some reg-expr characters.
6970
6971 2008-06-16 Juanma Barranquero <lekktu@gmail.com>
6972
6973 * dispextern.h (lookup_non_ascii_face, split_font_name_into_vector)
6974 (build_font_name_from_vector): Delete externs.
6975
6976 * xfaces.c (struct font_name): Don't declare.
6977
6978 2008-06-16 Stefan Monnier <monnier@iro.umontreal.ca>
6979
6980 * font.c (font_unparse_gtkname): Use EQ to compare Lisp_Objects.
6981
6982 2008-06-16 Chong Yidong <cyd@stupidchicken.com>
6983
6984 * font.c (font_parse_fcname): Fix handling of unknown-spec string.
6985
6986 2008-06-16 Juanma Barranquero <lekktu@gmail.com>
6987
6988 * font.c (Ffont_spec): Fix usage in docstring.
6989 (Ffont_face_attributes): Doc fix.
6990
6991 2008-06-16 Andreas Schwab <schwab@suse.de>
6992
6993 * font.c (Ffont_face_attributes): Fix definition.
6994
6995 2008-06-16 Jason Rumney <jasonr@gnu.org>
6996
6997 * font.h (font_style_symbolic_from_value): Remove.
6998
6999 * font.c (font_style_symbolic_from_value): Remove.
7000 (font_style_symbolic): Revert to pre 2008-06-13 version.
7001
7002 * w32font.c (w32_to_fc_weight): New function.
7003 (w32font_full_name, logfont_to_fcname): Use it.
7004
7005 2008-06-16 Kenichi Handa <handa@m17n.org>
7006
7007 * font.c (font_check_object): Delete it.
7008 (font_clear_cache): Check if a font-object is alive.
7009 (font_open_entity): Likewise. Set FONT_OBJLST_INDEX of a
7010 font-object to nil.
7011 (font_close_object): Don't check FONT_CLOSE_OBJECT.
7012 (font_at): Don't call font_check_object.
7013 (Ffont_get): Return a symbol for :weight, :slant, and :width.
7014
7015 2008-06-16 Katsumi Yamaoka <yamaoka@jpl.org>
7016
7017 * puresize.h (BASE_PURESIZE): Increase to 1230000.
7018
7019 2008-06-16 Chong Yidong <cyd@stupidchicken.com>
7020
7021 * font.c (font_parse_fcname): Correctly parse KEY=VAL values.
7022
7023 2008-06-15 Chong Yidong <cyd@stupidchicken.com>
7024
7025 * font.c (font_parse_fcname): Only one decimal point.
7026 (font_unparse_fcname): Handle data in family and foundry indices
7027 as symbols, not strings.
7028 (font_unparse_gtkname, Ffont_face_attributes): New functions.
7029
7030 * xfns.c (Fx_select_font): Give GTK font dialog the default font name.
7031
7032 * font.h (font_unparse_gtkname): Add prototype.
7033
7034 2008-06-15 Naohiro Aota <nao.aota@gmail.com> (tiny change)
7035
7036 * fontset.c (fontset_pattern_regexp): Escape `+' characters in pattern.
7037
7038 2008-06-15 Andreas Schwab <schwab@suse.de>
7039
7040 * font.c (font_update_drivers): Fix crash when no drivers match.
7041
7042 2008-06-15 Stefan Monnier <monnier@iro.umontreal.ca>
7043
7044 * xfns.c (Fx_create_frame): internal-border-width default to 0 for Gtk.
7045 * gtkutil.c (xg_create_frame_widgets): Don't set internal_border_width.
7046
7047 2008-06-14 Stefan Monnier <monnier@iro.umontreal.ca>
7048
7049 * xdisp.c (syms_of_xdisp): Default underline-minimum-offset to 1.
7050
7051 2008-06-13 Stefan Monnier <monnier@iro.umontreal.ca>
7052
7053 * process.c (Fserial_process_configure, Fprocess_send_eof):
7054 Use EQ to compare Lisp_Objects.
7055
7056 2008-06-13 Jason Rumney <jasonr@gnu.org>
7057
7058 * w32fns.c (Fw32_select_font): Remove old font API function.
7059
7060 * w32font.c (logfont_to_fcname): New function.
7061 (Fx_select_font): New font dialog function compatible with
7062 GTK/fontconfig version.
7063
7064 * font.c (font_style_symbolic_from_value): New function.
7065 (font_style_symbolic): Use it.
7066
7067 * font.h (font_style_symbolic_from_value): Declare new function.
7068
7069 2008-06-13 Juanma Barranquero <lekktu@gmail.com>
7070
7071 * font.c (syms_of_font) <font-weight-table, font-slant-table>:
7072 <font-width-table>: Fix typos in docstrings.
7073
7074 2008-06-13 Daniel Engeler <engeler@gmail.com>
7075
7076 These changes add serial port access.
7077 * process.c: Add HAVE_SERIAL.
7078 (Fdelete_process, Fprocess_status, Fset_process_buffer)
7079 (Fset_process_filter, Fset_process_sentinel, Fprocess_contact)
7080 (list_processes_1, select_wrapper, Fstop_process)
7081 (Fcontinue_process, Fprocess_send_eof, kill_buffer_processes)
7082 (status_notify): Modify to handle serial processes.
7083 [HAVE_SERIAL] (Fserial_process_configure)
7084 [HAVE_SERIAL] (make_serial_process_unwind, Fmake_serial_process):
7085 New functions.
7086 * process.h (struct Lisp_Process): Add `type'.
7087 * sysdep.c [HAVE_TERMIOS] (serial_open, serial_configure):
7088 New functions.
7089 * w32.c (_sys_read_ahead, sys_read, sys_write): Modify to handle
7090 serial ports.
7091 (serial_open, serial_configure): New functions.
7092 * w32.h: Add FILE_SERIAL.
7093 (struct _child_process): Add ovl_read, ovl_write.
7094
7095 2008-06-13 Kenichi Handa <handa@m17n.org>
7096
7097 * dispextern.h (enum lface_attribute_index): New member
7098 LFACE_FOUNDRY_INDEX.
7099
7100 * font.c (font_score): Delete arg alternate_families. Check only
7101 weight, slant, width, and size. Ignore the difference of alias
7102 style symbols.
7103 (font_sort_entites): Adjust for the above change. Reflect the
7104 order of font-driver to scores.
7105 (font_list_entities): Don't check alternate_familes here.
7106 (font_clear_prop): Handle foundry.
7107 (font_update_lface): Don't parse "foundry-family" form here.
7108 Handle FONT_FOUNDRY_INDEX.
7109 (font_find_for_lface): Likewise. Handle alternate families here.
7110 If registry is nil, try iso8859-1 and ascii-0.
7111 (font_open_for_lface): Pay attention to size in ENTITY.
7112 (font_open_by_name): Simplify by calling font_load_for_lface.
7113 (free_font_driver_list): Delete it.
7114 (font_update_drivers): Preserve the order of backends.
7115 (syms_of_font): Setting of sort_shift_bits adjusted for the change
7116 of font_score and font_sort_entites.
7117 (font_update_sort_order): Likewise.
7118
7119 * xfaces.c (LFACE_FOUNDRY): New macro.
7120 (check_lface_attrs): Check foundry.
7121 (set_lface_from_font): Don't parse "FOUNDRY-FAMILY" form.
7122 (merge_face_vectors): Check foundry.
7123 (merge_face_ref): Likewise.
7124 (Finternal_set_lisp_face_attribute): Likewise.
7125 (x_update_menu_appearance): Likewise.
7126 (Finternal_get_lisp_face_attribute): Likewise.
7127 (lface_hash): Likewise.
7128 (lface_same_font_attributes_p): Likewise.
7129 (x_supports_face_attributes_p): Likewise.
7130 (tty_supports_face_attributes_p): Likewise.
7131 (Finternal_set_alternative_font_family_alist): Intern strings.
7132 (Finternal_set_alternative_font_registry_alist): Downcase strings.
7133 (realize_default_face): Set LFACE_FOUNDRY (lface).
7134
7135 * xfns.c (Fx_create_frame, x_create_tip_frame): Register X
7136 font-driver at first.
7137
7138 * ftfont.c (ftfont_font_format) [! FC_FONTFORMAT]: Declare "int len;".
7139
7140 2008-06-12 Emanuele Giaquinta <emanuele.giaquinta@gmail.com> (tiny change)
7141
7142 * lread.c (Fload): Use xfree, not free on saved_doc_string.
7143
7144 2008-06-12 Jim Meyering <meyering@redhat.com>
7145
7146 Make unexec_free handle NULL the same way free does.
7147 * unexmacosx.c (unexec_free): Ignore a NULL argument.
7148
7149 2008-06-12 Stefan Monnier <monnier@iro.umontreal.ca>
7150
7151 * character.h (CHAR_TO_BYTE_SAFE): New macro.
7152 * character.c (Fmultibyte_char_to_unibyte): Obey the docstring.
7153 * regex.c (RE_CHAR_TO_UNIBYTE): Use the new macro.
7154 (WEAK_ALIAS): Simplify.
7155 * syntax.c (skip_chars): Don't mark non-byte chars in the fastmap
7156 when searching a unibyte buffer.
7157
7158 2008-06-12 Chong Yidong <cyd@stupidchicken.com>
7159
7160 * xfns.c (Fx_select_font): Rename from x-font-dialog.
7161
7162 2008-06-12 Juanma Barranquero <lekktu@gmail.com>
7163
7164 * w32font.c: Include ctype.h.
7165
7166 2008-06-11 Jason Rumney <jasonr@gnu.org>
7167
7168 * w32font.c (w32font_encode_char): Detect missing glyphs that are
7169 misreported as space.
7170 (add_font_entity_to_list): Support unicode-bmp and unicode-sip
7171 as aliases for registry iso10646-1.
7172
7173 2008-06-11 Stefan Monnier <monnier@iro.umontreal.ca>
7174
7175 * buffer.c (clone_per_buffer_values): Skip `name'.
7176
7177 2008-06-11 Chong Yidong <cyd@stupidchicken.com>
7178
7179 * font.c (font_parse_fcname): Fix last change; accept decimal
7180 points in font size.
7181
7182 2008-06-10 Jason Rumney <jasonr@gnu.org>
7183
7184 * w32uniscribe.c (add_opentype_font_name_to_list):
7185 Skip non unicode fonts.
7186
7187 2008-06-10 Chong Yidong <cyd@stupidchicken.com>
7188
7189 * xfns.c (Fx_font_dialog): New function.
7190
7191 * gtkutil.c (xg_dialog_response_cb): Rename from
7192 xg_file_response_callback.
7193 (pop_down_dialog): Rename from pop_down_file_dialog.
7194 (xg_get_file_name): Callers changed.
7195 (xg_get_font_name): New function.
7196
7197 * gtkutil.h (xg_get_font_name): Insert prototype.
7198
7199 2008-06-10 Stefan Monnier <monnier@iro.umontreal.ca>
7200
7201 * xdisp.c (underline_minimum_offset): Rename from xterm.c's
7202 x_underline_minimum_display_offset.
7203 (syms_of_xdisp): Declare it here rather than in xterm.c.
7204 * dispextern.h (underline_minimum_offset): Declare it.
7205 * w32term.c (x_draw_glyph_string): Use it.
7206 * xterm.c (x_underline_minimum_display_offset): Move to xdisp.c.
7207 (syms_of_xterm): Don't declare it any more.
7208 (x_draw_glyph_string): Adjust to the new name.
7209
7210 2008-06-10 David De La Harpe Golden <david@harpegolden.net> (tiny change)
7211
7212 * xterm.c (x_underline_minimum_display_offset): New var.
7213 (x_draw_glyph_string): Use it.
7214 (syms_of_xterm): Declare it.
7215
7216 2008-06-10 Chong Yidong <cyd@stupidchicken.com>
7217
7218 * font.c (font_parse_fcname): Accept GTK-style font names too.
7219
7220 2008-06-10 Stefan Monnier <monnier@iro.umontreal.ca>
7221
7222 * dired.c (file_name_completion): Don't return t if the match is exact
7223 but with different capitalization.
7224 * minibuf.c (Ftry_completion): Simplify.
7225
7226 * window.c (Vwindow_point_insertion_type): New var.
7227 (set_window_buffer): Use it.
7228 (syms_of_window): Init and export it to Lisp.
7229
7230 2008-06-10 Kenichi Handa <handa@m17n.org>
7231
7232 * font.h (font_intern_prop): Prototype adjusted.
7233
7234 * font.c (font_intern_prop): New arg force_symbol.
7235 (font_parse_xlfd, font_parse_fcname, font_parse_family_registry):
7236 Adjust for the change of font_intern_prop.
7237
7238 * ftfont.c (ftfont_pattern_entity):
7239 * w32font.c (add_font_name_to_list, w32_enumfont_pattern_entity)
7240 (w32_registry):
7241 * w32uniscribe.c (add_opentype_font_name_to_list): Adjust for
7242 the change of font_intern_prop.
7243
7244 2008-06-09 Juanma Barranquero <lekktu@gmail.com>
7245
7246 * w32menu.c (digest_single_submenu): Declare extern.
7247
7248 2008-06-09 Jason Rumney <jasonr@gnu.org>
7249
7250 * w32term.c (x_make_frame_visible): Use alternate restore flags.
7251
7252 * w32menu.c (Fx_popup_menu): Unwind protect while building menu.
7253 (parse_single_submenu): Remove.
7254 (digest_single_submenu): Remove.
7255 (syms_of_w32menu): Don't initialise variables that have moved
7256 to menu.c.
7257 (set_frame_menubar): Sync with version in xmenu.c.
7258 (w32_menu_show): Sync with xmenu_show in xmenu.c.
7259
7260 * menu.c (single_keymap_panes, push_menu_pane, push_menu_item):
7261 Make static again.
7262
7263 2008-06-09 Jason Rumney <jasonr@gnu.org>
7264
7265 Changes to w32 files related to the move of common menu code
7266 to menu.c on 2008-06-08 by Chong Yidong.
7267
7268 * menu.c [HAVE_NTGUI]: Include w32term.h, move widget related
7269 defs to w32gui.h.
7270 (single_keymap_panes, push_menu_item, push_menu_pane):
7271 Make globally visible.
7272
7273 * w32menu.c (enum button_type, widget_value, local_heap, local_alloc)
7274 (local_free, malloc_widget_value, free_widget_value)
7275 (MENU_ITEMS_ITEM_NAME, MENU_ITEMS_ITEM_ENABLE, MENU_ITEMS_ITEM_VALUE)
7276 (MENU_ITEMS_ITEM_EQUIV_KEY, MENU_ITEMS_ITEM_DEFINITION)
7277 (MENU_ITEMS_ITEM_TYPE, MENU_ITEMS_ITEM_SELECTED, MENU_ITEMS_ITEM_HELP)
7278 (MENU_ITEMS_ITEM_LENGTH, enum menu_item_idx): Remove defs.
7279 (menu_items, menu_items_allocated, menu_items_used)
7280 (menu_items_n_panes, menu_items_submenu_depth): Remove global vars.
7281 (init_menu_items, finish_menu_items, discard_menu_items)
7282 (grow_menu_items, push_submenu_start, push_submenu_end)
7283 (push_left_right_boundary, push_menu_pane, push_menu_item)
7284 (keymap_panes, single_keymap_panes, list_of_panes, list_of_items)
7285 (free_menubar_widget_tree_value, parse_single_submenu)
7286 (update_submenu_strings): Remove functions.
7287 (xmalloc_widget_value): Remove and declare extern.
7288
7289 * makefile.w32-in ($(SRC)/menu.$(O)): New target.
7290 (OBJ1): Build it.
7291
7292 * w32gui.h (widget_value, XtPointer, Boolean, enum button_type)
7293 (local_heap, local_alloc, local_free, malloc_widget_value)
7294 (free_widget_value): Define here.
7295
7296 2008-06-09 Kenichi Handa <handa@m17n.org>
7297
7298 * font.h (Qascii_0): Extern it.
7299
7300 * font.c (Qascii_0): New variable.
7301 (syms_of_font): DEFSYM it.
7302 (font_open_by_name): If the registry "iso8859-1" fails, try also
7303 "ascii-0".
7304
7305 * ftfont.c (ftfont_spec_pattern): Accept the registry `ascii-0'.
7306
7307 2008-06-08 Kenichi Handa <handa@m17n.org>
7308
7309 * .gdbinit (xfont): New command.
7310
7311 2008-06-08 Andreas Schwab <schwab@suse.de>
7312
7313 * menu.c [HAVE_X_WINDOWS]: Include "xterm.h".
7314 * Makefile.in (menu.o): Update dependencies.
7315
7316 * Makefile.in (obj): Always add menu.o.
7317 * emacs.c (main): Always call syms_of_menu.
7318 * keyboard.h: Remove extra #ifdef HAVE_X_WINDOW.
7319
7320 2008-06-08 Chong Yidong <cyd@stupidchicken.com>
7321
7322 * Makefile.in: Compile menu.c.
7323
7324 * lisp.h: Declare syms_of_menu.
7325
7326 * emacs.c (main): Call syms_of_menu.
7327
7328 * keyboard.h: Relocate platform-independent menu definitions from
7329 xmenu.c.
7330
7331 * menu.c: New file. Relocate platform-independent menu
7332 definitions from xmenu.c. Suggested by Adrian Robert.
7333
7334 * xmenu.c: Remove platform-independent menu definitions.
7335 (menu_items menu_items_inuse, menu_items_allocated)
7336 (menu_items_used, menu_items_n_panes)
7337 (menu_items_submenu_depth): Move to keyboard.h.
7338 (init_menu_items, finish_menu_items, unuse_menu_items)
7339 (discard_menu_items, restore_menu_items, save_menu_items)
7340 (grow_menu_items, push_submenu_start, push_submenu_end)
7341 (push_left_right_boundary, push_menu_pane, push_menu_item)
7342 (keymap_panes, single_keymap_panes, single_menu_item)
7343 (list_of_panes, list_of_items, find_and_call_menu_selection)
7344 (xmalloc_widget_value, free_menubar_widget_value_tree)
7345 (parse_single_submenu, digest_single_submenu)
7346 (update_submenu_strings): Move to menu.c.
7347
7348 2008-06-07 Stefan Monnier <monnier@iro.umontreal.ca>
7349
7350 * dispnew.c (Flast_nonminibuf_frame): Handle the NULL case.
7351
7352 2008-06-06 Miles Bader <miles@gnu.org>
7353
7354 * xdisp.c (x_produce_glyphs): Calculate tab width based on current
7355 face, not frame default.
7356
7357 2008-06-05 Martin Rudalics <rudalics@gmx.at>
7358
7359 * window.c (pop_up_windows, pop_up_frames)
7360 (display_buffer_reuse_frames, Vpop_up_frame_function)
7361 (Vdisplay_buffer_function, Veven_window_heights)
7362 (Vspecial_display_buffer_names, Vspecial_display_regexps)
7363 (Vspecial_display_function, Vsame_window_buffer_names)
7364 (Vsame_window_regexps, split_height_threshold)
7365 (Vsplit_window_preferred_function): Move those vars to window.el.
7366 (display_buffer_1, Fspecial_display_p, Fsame_window_p)
7367 (Fdisplay_buffer): Move those functions to window.el.
7368 (syms_of_window): Remove corresponding declarations.
7369 (display_buffer): New function.
7370 (temp_output_buffer_show, Fother_window_for_scrolling): Use it.
7371 * dispnew.c (Flast_nonminibuf_frame): New function.
7372 * buffer.c (Fpop_to_buffer): Move to window.el.
7373
7374 2008-06-05 Stefan Monnier <monnier@iro.umontreal.ca>
7375
7376 * data.c (set_internal): Fix up call to let_shadows_buffer_binding_p.
7377
7378 2008-06-05 Kenichi Handa <handa@m17n.org>
7379
7380 * coding.c (detect_coding): Fix previous change.
7381 (detect_coding_system): Likewise.
7382
7383 2008-06-05 Stefan Monnier <monnier@iro.umontreal.ca>
7384
7385 * character.h (MAKE_CHAR_MULTIBYTE): Check the arg is a (uni)byte.
7386
7387 * keymap.c (Vminibuffer_local_filename_must_match_map):
7388 Rename from Vminibuffer_local_must_match_filename_map.
7389 (syms_of_keymap):
7390 * minibuf.c (Fcompleting_read): Adjust accordingly.
7391 * commands.h: Rename declaration as well.
7392
7393 2008-06-05 Kenichi Handa <handa@m17n.org>
7394
7395 * font.c (Ffont_spec): Don't use font_parse_family_registry for
7396 family name.
7397 (Ffont_put): Likewise.
7398
7399 * fontset.c (fontset_find_font): Call font_open_for_lface with the
7400 current font-spec.
7401
7402 * xfont.c (xfont_list): Don't set registry to iso8859-1 even if it
7403 is unspecified.
7404
7405 * xfaces.c (realize_x_face): If the font-related face attributes
7406 are the same as those of default face, realize a new fontset from
7407 default->fontset.
7408 (Fx_family_fonts): Use font_parse_family_registry instead of Ffont_put.
7409
7410 2008-06-05 Stefan Monnier <monnier@iro.umontreal.ca>
7411
7412 * xdisp.c (move_it_in_display_line_to): Improve the type of its args.
7413 (move_it_in_display_line): New wrapper.
7414
7415 * window.c (window_scroll_pixel_based_preserve_x)
7416 (window_scroll_preserve_hpos, window_scroll_preserve_vpos): New vars.
7417 (window_scroll_pixel_based, window_scroll_line_based):
7418 Use them to preserve column positions.
7419 (syms_of_window): Initialize them.
7420
7421 * indent.c (Fvertical_motion): Extend first arg to allow passing an
7422 (HPOS . VPOS) pair.
7423
7424 * dispextern.h (move_it_in_display_line): Declare.
7425
7426 2008-06-05 Juanma Barranquero <lekktu@gmail.com>
7427
7428 * window.c (Fwindow_parameter): Return VALUE, not (PARAMETER . VALUE).
7429 (Fwindow_parameters): Return copy of parameter alist. Doc fix.
7430 (Fset_window_parameter): Return VALUE, not parameter alist. Doc fix.
7431
7432 2008-06-04 Juanma Barranquero <lekktu@gmail.com>
7433
7434 * window.c (Fset_window_parameter): Doc fix.
7435 (Fwindow_parameters, Fwindow_parameter): Remove redundant check.
7436
7437 2008-06-04 Joakim Verona <joakim@verona.se>
7438
7439 * window.h (struct window): Add new member window_parameters.
7440
7441 * window.c (Fwindow_parameters, Fwindow_parameter)
7442 (Fset_window_parameter): New defuns.
7443 (syms_of_window): Defsubr the new defuns.
7444 (make_window): Initialize window_parameters to nil.
7445
7446 2008-06-04 John Paul Wallington <jpw@pobox.com>
7447
7448 * eval.c (Fdefmacro): Doc fix.
7449
7450 2008-06-04 Kenichi Handa <handa@m17n.org>
7451
7452 * coding.c (detect_coding): Fix handling of coding->head_ascii.
7453 Be sure to call setup_coding_system when we find a proper coding system.
7454 (detect_coding_system): Fix handling of coding->head_ascii.
7455
7456 2008-06-03 Andreas Schwab <schwab@suse.de>
7457
7458 * font.c (font_prop_validate_spacing): Fix last change.
7459
7460 2008-06-03 Kenichi Handa <handa@m17n.org>
7461
7462 * font.c (font_prop_validate_spacing): Handle uppercase symbols.
7463 (font_parse_fcname): Fix handling of unknown key.
7464
7465 * xfont.c (xfont_list): Try an alias.
7466
7467 * charset.c (char_charset): Return NULL if the arg charset_list is
7468 specified and C doesn't belong to any of them.
7469
7470 2008-06-02 Chip Coldwell <coldwell@redhat.com>
7471
7472 * font.c (font_pixel_size): Don't take cdr of an integer.
7473
7474 2008-06-02 Jim Meyering <meyering@redhat.com>
7475
7476 Make "xfree (NULL)" a no-op; remove useless if-before-xfree.
7477 * alloc.c (xfree): Return right away for a NULL arg.
7478 * lread.c (nosuffix): Remove now-useless if-before-xfree tests.
7479 * gtkutil.c (xg_gtk_scroll_destroy): Likewise.
7480 * mac.c (create_apple_event_from_event_ref): Likewise.
7481 (create_apple_event_from_drag_ref, cfstring_create_normalized):
7482 Likewise.
7483 * doprnt.c (doprnt1): Likewise.
7484 * frame.c (frame): Likewise.
7485 * keyboard.c (wipe_kboard): Likewise.
7486 * macterm.c (x_free_frame_resources, xlfdpat_destroy, XFreePixmap)
7487 (init_font_name_table, mac_unload_font, x_delete_display): Likewise.
7488 * term.c (tty_default_color_capabilities, maybe_fatal)
7489 (delete_tty): Likewise.
7490 * w16select.c (string): Likewise.
7491 * w32.c (w32_get_resource, SET_ENV_BUF_SIZE): Likewise.
7492 * w32bdf.c (w32_free_bdf_font): Likewise.
7493 * w32fns.c (w32_unload_font): Likewise.
7494 * w32font.c (w32font_close): Likewise.
7495 * window.c (size_window): Likewise.
7496 * xselect.c (receive_incremental_selection): Likewise.
7497 * xterm.c (x_free_frame_resources, x_delete_display): Likewise.
7498 * mactoolbox.c (create_apple_event_from_drag_ref): Likewise.
7499 * w32.c (stat): Likewise.
7500
7501 Remove useless if-before-free tests.
7502 * editfns.c (Fset_time_zone_rule): Likewise.
7503 * lread.c (nosuffix): Likewise.
7504 * ralloc.c (get_bloc): Likewise.
7505 * regex.c (reg_free): Likewise.
7506 * xftfont.c (xftfont_open, xftfont_close): Likewise.
7507 * xrdb.c (get_user_app, get_environ_db, x_load_resources): Likewise.
7508 * xsmfns.c (smc_save_yourself_CB): Likewise.
7509
7510 2008-06-02 Kenichi Handa <handa@m17n.org>
7511
7512 * font.c (font_find_for_lface): Handle float font size.
7513 (font_open_for_lface): Likewise.
7514
7515 * xfaces.c (x_supports_face_attributes_p): Check face->font before
7516 comparing the properties.
7517
7518 2008-06-01 Jason Rumney <jasonr@gnu.org>
7519
7520 * w32font.c (w32_enumfont_pattern_entity): Use requested registry.
7521 Treat iso10646-1 and Windows DEFAULT_CHARSET specially.
7522 Duplicate iso8859-1 fonts as iso10646-1 if no registry specified.
7523 Don't add empty script list.
7524 (w32_registry): Only map DEFAULT_CHARSET to iso10646-1 here.
7525
7526 2008-06-01 Dan Nicolaescu <dann@ics.uci.edu>
7527
7528 * Makefile.in (dot, dotdot): Remove, update users.
7529 ".." has been used elsewhere in the file for a long time.
7530 (LIBXT_STATIC): Remove conditional based on unused variable.
7531
7532 2008-06-01 Miles Bader <miles@gnu.org>
7533
7534 * xfaces.c (Vface_remapping_alist): New variable.
7535 (syms_of_xfaces): Initialize it.
7536 (enum named_merge_point_kind): New type.
7537 (struct named_merge_point): Add `named_merge_point_kind' field.
7538 (push_named_merge_point): Make cycle detection respect different
7539 named-merge-point kinds.
7540 (lface_from_face_name_no_resolve): Rename from `lface_from_face_name'.
7541 Remove face-name alias resolution.
7542 (lface_from_face_name): New definition using
7543 `lface_from_face_name_no_resolve'.
7544 (get_lface_attributes_no_remap): Rename from `get_lface_attributes'.
7545 Call lface_from_face_name_no_resolve instead of lface_from_face_name.
7546 (get_lface_attributes): New definition that layers face-remapping on
7547 top of get_lface_attributes_no_remap. New arg `named_merge_points'.
7548 (lookup_basic_face): New function.
7549 (lookup_derived_face): Pass new last arg to `get_lface_attributes'.
7550 (realize_named_face): Call `get_lface_attributes_no_remap' instead of
7551 `get_lface_attributes'.
7552 (face_at_buffer_position): Use `lookup_basic_face' to lookup
7553 DEFAULT_FACE_ID if necessary. When optimizing the default-face case,
7554 return default_face's face-id instead of the constant DEFAULT_FACE_ID.
7555
7556 * xdisp.c (init_iterator): Pass base_face_id through
7557 `lookup_basic_face' when we actually use it as a face-id.
7558 (handle_single_display_prop): Use `lookup_basic_face' to lookup
7559 DEFAULT_FACE_ID.
7560
7561 * fontset.c (Finternal_char_font): Use `lookup_basic_face' to
7562 lookup the initial face-id.
7563
7564 * dispextern.h (lookup_basic_face, Vface_remapping_alist): New decls.
7565
7566 2008-06-01 Juanma Barranquero <lekktu@gmail.com>
7567
7568 * textprop.c (syms_of_textprop) <text-property-default-nonsticky>:
7569 (Fremove_text_properties): Fix typos in docstrings.
7570
7571 2008-05-31 Kenichi Handa <handa@m17n.org>
7572
7573 * font.c (font_list_entities): Fix the car part of data to be
7574 stored in the cache.
7575
7576 * ftfont.c (ftfont_font_format): Don't use strcasestr.
7577
7578 2008-05-30 Stefan Monnier <monnier@iro.umontreal.ca>
7579
7580 * chartab.c (Foptimize_char_table, optimize_sub_char_table):
7581 Add a `test' argument so another predicate than `equal' can be used.
7582 (map_sub_char_table): Use `eq' rather than `equal' to merge ranges.
7583 (map_char_table): Remove unused vars `c' and `i'.
7584 * lisp.h (Foptimize_char_table): Adjust declaration.
7585 * charset.c (Fclear_charset_maps): Adjust call to Foptimize_char_table.
7586
7587 2008-05-30 Kenichi Handa <handa@m17n.org>
7588
7589 * font.c (Ffont_info): Define only if HAVE_WINDOW_SYSTEM is defined.
7590 (syms_of_font): Defsubr Sfont_info only if HAVE_WINDOW_SYSTEM is
7591 defined.
7592
7593 2008-05-30 Stefan Monnier <monnier@iro.umontreal.ca>
7594
7595 * data.c (Fmake_variable_buffer_local, Fmake_local_variable)
7596 (Fmake_variable_frame_local): Disallow mixing buffer-local and
7597 frame-local settings for the same variable.
7598
7599 2008-05-30 Kenichi Handa <handa@m17n.org>
7600
7601 * fontset.c (Ffont_info): Move to font.c.
7602 (syms_of_fontset): Delete defsubr of Sfont_info.
7603
7604 * font.c (font_style_to_value, font_score): Delete casting of the
7605 args to xstcasecmp.
7606 (register_font_driver): Increment num_font_drivers only when
7607 registering the driver globally.
7608 (Ffont_info): Move from fontset.c. Handle a font object too.
7609 (syms_of_font): Defsubr Sfont_info.
7610
7611 2008-05-29 Kenichi Handa <handa@m17n.org>
7612
7613 * coding.h (enum define_coding_utf8_arg_index): New enum.
7614 (enum coding_attr_index): Change coding_attr_utf_16_bom to
7615 coding_attr_utf_bom.
7616 (enum utf_bom_type): Rename from utf_16_bom_type.
7617 (struct utf_16_spec): Adjust for the above change.
7618 (struct coding_system): Add utf_8_bom in `spec' union.
7619
7620 * coding.c (CODING_UTF_8_BOM): New macro.
7621 (enum coding_category): Delete coding_category_utf_8, add
7622 coding_category_utf_8_auto, coding_category_utf_8_nosig, and
7623 coding_category_utf_8_sig.
7624 (CATEGORY_MASK_UTF_8): Delete it.
7625 (CATEGORY_MASK_UTF_8_AUTO, CATEGORY_MASK_UTF_8_NOSIG)
7626 (CATEGORY_MASK_UTF_8_SIG): New macros.
7627 (CATEGORY_MASK_ANY): Delete CATEGORY_MASK_UTF_8, add
7628 CATEGORY_MASK_UTF_8_AUTO, CATEGORY_MASK_UTF_8_NOSIG, and
7629 CATEGORY_MASK_UTF_8_SIG.
7630 (CATEGORY_MASK_UTF_8): New macro.
7631 (UTF_BOM, UTF_8_BOM_1, UTF_8_BOM_2, UTF_8_BOM_3): New macros.
7632 (detect_coding_utf_8): Check BOM.
7633 (decode_coding_utf_8, encode_coding_utf_8): Handle BOM.
7634 (decode_coding_utf_16): Adjust for the change of enum utf_bom_type.
7635 (encode_coding_utf_16): Likewise.
7636 (setup_coding_system): Likewise. Set CODING_UTF_8_BOM (coding).
7637 (detect_coding, detect_coding_system): Handle utf-8-auto.
7638 (Fdefine_coding_system_internal): Handle `bom' property for utf-8.
7639 (syms_of_coding): Fix setting up of Vcoding_category_table.
7640
7641 2008-05-29 Stefan Monnier <monnier@iro.umontreal.ca>
7642
7643 * process.c (Faccept_process_output): If `millisec' is non-nil,
7644 `seconds' default to 0.
7645 (wait_reading_process_output): Also return non-nil if we read output
7646 from a non-running process.
7647
7648 2008-05-29 Jason Rumney <jasonr@gnu.org>
7649
7650 * w32font.c (w32font_open_internal): Prefer truetype fonts unless
7651 `raster' specified.
7652 (add_font_entity_to_list): Allow non-opentype truetype fonts back
7653 in the uniscribe backend, but disallow any font that has no
7654 unicode subrange support.
7655
7656 2008-05-29 Juanma Barranquero <lekktu@gmail.com>
7657
7658 * xfaces.c (Fx_list_fonts, Finternal_copy_lisp_face):
7659 Fix typos in docstrings.
7660
7661 2008-05-29 Kenichi Handa <handa@m17n.org>
7662
7663 * xfaces.c (Fx_list_fonts): Make it return a list of font names.
7664 (Fx_family_fonts): Set frame correctly.
7665
7666 2008-05-28 Jason Rumney <jasonr@gnu.org>
7667
7668 * w32term.c (x_draw_glyph_string): Use clipmask if specified.
7669
7670 2008-05-28 Stefan Monnier <monnier@iro.umontreal.ca>
7671
7672 * fileio.c (Fwrite_region): Delay the defaulting to beg&z to after
7673 calling build_annotations.
7674
7675 2008-05-28 Juanma Barranquero <lekktu@gmail.com>
7676
7677 * coding.c (Fdecode_coding_region, Fencode_coding_region)
7678 (Fencode_coding_string):
7679 (syms_of_coding) <coding-system-for-read, coding-system-for-write>:
7680 <latin-extra-code-table>: Fix typos in docstrings.
7681 (syms_of_coding) <coding-system-alist>: Doc fix.
7682 (syms_of_coding) <translation-table-for-input>: Reflow docstring.
7683
7684 2008-05-28 Kenichi Handa <handa@m17n.org>
7685
7686 * fontset.c (Ffont_info): Don't call font_close_object.
7687
7688 * font.c (font_parse_family_registry): Use Ffont_put to validate
7689 foundry and family.
7690 (font_delete_unmatched): Don't check spacing.
7691 (font_list_entities): Add spacing to the spec to list fonts.
7692
7693 * ftfont.c (ftfont_spec_pattern): Don't set FC_SPACING to pattern.
7694 (ftfont_list): Check spacing here. Don't include FC_CHARSET in objset.
7695
7696 * coding.c (encode_coding_raw_text): Fix previous change.
7697 (encode_coding_object): When the dst_object is a buffer and is
7698 different from src_object, move gap to PT.
7699
7700 2008-05-27 Chong Yidong <cyd@stupidchicken.com>
7701
7702 * xterm.c (x_draw_glyph_string): If a clipmask is specified, use it.
7703
7704 2008-05-27 Stefan Monnier <monnier@iro.umontreal.ca>
7705
7706 * coding.c (encode_coding_raw_text): Set coding->produced_char for
7707 all branches. Compute it differently.
7708
7709 * xdisp.c [!HAVE_WINDOW_SYSTEM]: Include font.h for --without-x.
7710
7711 2008-05-27 Juanma Barranquero <lekktu@gmail.com>
7712
7713 * w32font.c (compute_metrics): Rewrite an "else { if () ... else ... }"
7714 into "else if () ... else ...".
7715
7716 2008-05-27 Jason Rumney <jasonr@gnu.org>
7717
7718 * w32font.c (w32font_open_internal): Determine if glyph indices
7719 are likely to work here.
7720
7721 2008-05-27 Chong Yidong <cyd@stupidchicken.com>
7722
7723 * xdisp.c (draw_glyphs): If mouse-highlighting is on, attempt to
7724 draw overlap glyphs with appropriate highlighting.
7725
7726 2008-05-27 Kenichi Handa <handa@m17n.org>
7727
7728 * xfont.c (xfont_open): Fix calculation of font->average_width.
7729
7730 2008-05-27 Stefan Monnier <monnier@iro.umontreal.ca>
7731
7732 * casefiddle.c (casify_object): Try to guess better whether the
7733 argument is a byte or a char.
7734
7735 2008-05-26 Andreas Schwab <schwab@suse.de>
7736
7737 * xselect.c (x_reply_selection_request): Properly handle format == 32.
7738 Always send multiples of format size.
7739
7740 * xterm.c (x_set_frame_alpha): Fix type mismatch.
7741
7742 2008-05-26 Jason Rumney <jasonr@gnu.org>
7743
7744 * w32font.c (w32font_text_extents): Zero whole metrics struct first.
7745 (compute_metrics): Don't set failure if we just cleared the cache.
7746 (w32_weight_table): Remove unused variable.
7747 (w32_enumfont_pattern_entity): Use FONT_SPACING_CHARCELL for
7748 backwards compatibility.
7749
7750 2008-05-25 Kenichi Handa <handa@m17n.org>
7751
7752 * w32term.c (x_draw_glyph_string):
7753 * xterm.c (x_draw_glyph_string): Fix calculation of underline position.
7754
7755 * xfaces.c: Delete unused function prototypes.
7756 (xstrlwr, font_frame): Delete them.
7757 (clear_face_cache): Delete unused variable.
7758
7759 * xftfont.c (xftfont_open): Delete unused variable.
7760 If underline_thickness is not 1, adjust underline_position.
7761
7762 * ftxfont.c (ftxfont_open): Delete unused variable.
7763
7764 * fontset.c (face_for_char): Optimize for the case of no charset
7765 property.
7766
7767 * font.c (LGSTRING_HEADER_SIZE, LGSTRING_GLYPH_SIZE)
7768 (check_gstring, check_otf_features, otf_list, otf_tag_symbol)
7769 (otf_open, font_otf_capability, generate_otf_features)
7770 (font_otf_DeviceTable, font_otf_ValueRecord, font_otf_Anchor):
7771 Comment out by surrounding "#if 0" and "#endif" for the moment.
7772 (Ffont_drive_otf, Ffont_otf_alternates): Likewise.
7773 (syms_of_font): Codes for accessing above commented out.
7774
7775 2008-05-24 Eli Zaretskii <eliz@gnu.org>
7776
7777 * w32proc.c: Include dispextern.h.
7778
7779 * w32.c: Include dispextern.h.
7780
7781 2008-05-23 Juanma Barranquero <lekktu@gmail.com>
7782
7783 * charset.c (Fencode_char, Fsplit_char): Doc fixes.
7784 (Fget_unused_iso_final_char, Fdecode_char, Fiso_charset):
7785 Fix typos in docstrings.
7786
7787 2008-05-23 Jason Rumney <jasonr@gnu.org>
7788
7789 * xsmfns.c: Remove includes that are already included by config.h.
7790
7791 2008-05-23 Kenichi Handa <handa@m17n.org>
7792
7793 * charset.c (Qemacs, charset_emacs): New variables.
7794 (char_charset): Fix for non-Unicode characters.
7795 (syms_of_charset): Define charset_emacs.
7796
7797 * w32term.c (x_draw_glyph_string): Be sure to update
7798 s->underline_thickness and s->underline_position. Be sure to draw
7799 underline within the current line area.
7800
7801 * xterm.c (x_draw_glyph_string): Be sure to update
7802 s->underline_thickness and s->underline_position. Be sure to draw
7803 underline within the current line area.
7804
7805 * fontset.c: Delete unused variables and add casting for char *
7806 throughout the file.
7807 (fontset_font): Try the fallback fonts of the current fontset
7808 before consulting the default fontset.
7809
7810 * ftfont.c (ftfont_spec_pattern): Free charset if necessary.
7811
7812 * xfont.c (xfont_list_pattern): Free names returned from XListFonts.
7813
7814 2008-05-22 Jason Rumney <jasonr@gnu.org>
7815
7816 * font.c: Don't include strings.h.
7817
7818 * dispextern.h, xfaces.c (xstrcasecmp): Rename from xstricmp.
7819
7820 * dosfns.c, fileio.c, font.c, fontset.c, image.c, macfns.c:
7821 * macterm.c, process.c, w32.c, w32fns.c, w32proc.c, xfaces.c:
7822 * xfns.c, xfont.c: All callers of stricmp and strcasecmp changed
7823 to call xstrcasecmp.
7824
7825 * xfont.c (xfont_list_pattern, compare_font_names): Use xstrcasecmp.
7826
7827 * fontset.c (fs_query_fontset): Use xstrcasecmp.
7828
7829 * font.c (font_style_to_value, font_score): Use xstrcasecmp.
7830
7831 * dosfns.c (msdos_stdcolor_idx): Use xstrcasecmp.
7832
7833 2008-05-22 Kenichi Handa <handa@m17n.org>
7834
7835 * puresize.h (BASE_PURESIZE): Increase to 1220000.
7836
7837 * font.c (font_prop_validate_style): Adjust for the format
7838 change of font_style_table.
7839
7840 * w32font.c (w32font_open_internal): Call Ffont_xlfd_name with
7841 two args.
7842
7843 * xfaces.c (x_update_menu_appearance): Call Ffont_xlfd_name with
7844 two args.
7845
7846 2008-05-22 Stefan Monnier <monnier@iro.umontreal.ca>
7847
7848 * minibuf.c (keys_of_minibuf): Delete.
7849 * lisp.h (keys_of_minibuf): Delete.
7850 * emacs.c (main): Don't call keys_of_minibuf.
7851
7852 2008-05-22 Kenichi Handa <handa@m17n.org>
7853
7854 * ftfont.c (ftfont_resolve_generic_family): Rename from
7855 ftfont_list_generic_family. Return a single family for each
7856 generic family.
7857 (ftfont_spec_pattern): Add FC_FAMILY to pattern.
7858 (ftfont_list): Adjust for the change of ftfont_resolve_generic_family.
7859 Call font_add_log.
7860 (ftfont_match): Call font_add_log.
7861
7862 * font.h (Ffont_xlfd_name): EXFUN adjusted.
7863 (FONT_DEBUG): Define it.
7864 (font_add_log): Extern it.
7865 (font_assert): Rename from xassert.
7866
7867 * xfont.c (xfont_get_pcm): Change xassert to font_assert.
7868 (xfont_list_family): Call font_add_log.
7869 (xfont_match): Likewise.
7870 (memq_no_quit): Delete.
7871
7872 * fontset.c (fontset_from_font, Ffontset_info): Add the 2nd arg in
7873 call of Ffont_xlfd_name.
7874
7875 * xfaces.c (struct table_entry, slant_table, weight_table)
7876 (swidth_table): Move to font.c.
7877
7878 * font.c: Checking of FONT_DEBUG is moved to font.h. All calls of
7879 xassert are changed to font_assert. Delete many unused variables.
7880 (Vfont_weight_table, Vfont_slant_table, Vfont_width_table):
7881 New variables.
7882 (struct table_entry): Move from xfaces.c and modified.
7883 (weight_table, slant_table, width_table): Move from xfaces.c and
7884 contents adjusted for the change of struct table_entry.
7885 (font_style_to_value, font_style_symbolic): Adjust for the
7886 format change of font_style_table.
7887 (font_parse_family_registry): Don't overwrite existing foundry and
7888 family of font_spec.
7889 (font_score): Fix calculation of diff for sizes.
7890 (font_sort_entites): Call font_add_log.
7891 (font_delete_unmatched): Return a newly created list.
7892 (font_list_entities): Fix previous change. Call font_add_log.
7893 (font_matching_entity, font_open_entity, font_close_entity):
7894 Call font_add_log.
7895 (Ffont_xlfd_name): New arg FOLD-WILDCARDS.
7896 (Finternal_set_font_style_table): Delete.
7897 (BUILD_STYLE_TABLE): New macro.
7898 (build_style_table): New function.
7899 (Vfont_log, font_log_env_checked): New variables.
7900 (font_add_log): New function.
7901 (syms_of_font): Delete defsubr Sinternal_set_font_style_table.
7902 Declare Lisp variables "font-weight-table", "font-slant-table",
7903 "font-width-table", and "font-log". Initialize font_style_table.
7904
7905 2008-05-21 Dan Nicolaescu <dann@ics.uci.edu>
7906
7907 * xterm.c (x_set_frame_alpha): Move declarations before statements.
7908
7909 2008-05-21 Seiji Zenitani <zenitani@mac.com>
7910 Ryo Yoshitake <ryo@shiftmode.net>
7911
7912 * frame.c (Qalpha): Add a new frame parameter `alpha'.
7913 (Vframe_alpha_lower_limit): New variable.
7914 (x_set_alpha): New function.
7915
7916 * frame.h (Qalpha, Vframe_parameter_lower_limit): Export them.
7917
7918 * xfns.c (x-create-frame, Qalpha):
7919 Initialize the frame parameter `alpha'.
7920 * xterm.c (OPAQUE, OPACITY): New.
7921 (x_set_frame_alpha): New function.
7922 (frame_highlight, frame_unhighlight): Call x_set_frame_alpha.
7923
7924 * macfns.c (mac_frame_parm_handlers): A null handler for x_set_alpha.
7925 * w32fns.c (w32_frame_parm_handlers): Likewise.
7926
7927 2008-05-20 Jason Rumney <jasonr@gnu.org>
7928
7929 * w32font.c (add_font_entity_to_list): Don't add non-opentype
7930 truetype fonts to opentype list.
7931
7932 2008-05-20 Juanma Barranquero <lekktu@gmail.com>
7933
7934 * fontset.c (Ffontset_info): Doc fix.
7935 (syms_of_fontset) <font-encoding-charset-alist, use-default-ascent>:
7936 <ignore-relative-composition>: Fix typos in docstrings.
7937
7938 * font.c (syms-of-font) <font-encoding-alist>:
7939 (Ffontp, Ffont_make_gstring): Fix typos in docstrings.
7940 (Flist_fonts, Ffont_family_list, Ffont_fill_gstring, Fquery_font)
7941 (Ffont_otf_alternates): Doc fixes.
7942
7943 2008-05-20 Kenichi Handa <handa@m17n.org>
7944
7945 * Makefile.in (FONTSRC): Delete it. Change all $(FONTSRC) to
7946 font.h through out the file.
7947 (FONT_DRIVERS): Rename from FONTOBJ.
7948 (obj): Change $(FONTOBJ) to $(FONT_DRIVERS). Add font.o.
7949 (SOME_MACHINE_OBJECTS): Change $(FONTOBJ) to $(FONT_DRIVERS).
7950
7951 * emacs.c (main): Call syms_of_font unconditionally.
7952
7953 * font.h (find_font_encoding): Extern it.
7954
7955 * font.c (Vfont_encoding_alist, find_font_encoding): Move from
7956 fontset.c.
7957 (font_pixel_size)[! HAVE_WINDOW_SYSTEM]: Return 1.
7958 (font_open_entity): Update FRAME_X_DISPLAY_INFO (f)->n_fonts,
7959 FRAME_SMALLEST_CHAR_WIDTH (f), and FRAME_SMALLEST_FONT_HEIGHT (f)
7960 only when HAVE_WINDOW_SYSTEM is defined.
7961 (font_close_object): Update FRAME_X_DISPLAY_INFO (f)->n_fonts only
7962 when HAVE_WINDOW_SYSTEM is defined.
7963
7964 * fontset.c (Vfont_encoding_alist, find_font_encoding): Move to font.c.
7965 (syms_of_fontset): Move declaration of font-encoding-alist to font.c.
7966
7967 * xfaces.c: Include font.h unconditionally.
7968 (merge_face_ref, merge_face_vectors)
7969 (Finternal_set_lisp_face_attribute): Cancel the previous change.
7970
7971 2008-05-20 Stefan Monnier <monnier@iro.umontreal.ca>
7972
7973 * xdisp.c (select_frame_for_redisplay): Adjust for last change to
7974 indirect_variable.
7975 * eval.c (lisp_indirect_variable): New fun.
7976 (Fuser_variable_p): Use it.
7977
7978 2008-05-19 Stefan Monnier <monnier@iro.umontreal.ca>
7979
7980 * lisp.h (indirect_variable):
7981 * data.c (indirect_variable, let_shadows_buffer_binding_p):
7982 Use Lisp_Symbol pointers rather than Lisp_Object.
7983 Adjust callers.
7984 * buffer.c (buffer_slot_type_mismatch): Use wrong-type-argument.
7985 To this end, change calling-convention.
7986
7987 * minibuf.c (Finternal_complete_buffer): Only strip out hidden buffers
7988 if some non-hidden buffers are selected by string&pred.
7989
7990 2008-05-19 Chong Yidong <cyd@stupidchicken.com>
7991
7992 * process.c (wait_reading_process_output): Always check status
7993 when in batch mode.
7994
7995 2008-05-19 Kenichi Handa <handa@m17n.org>
7996
7997 * font.c (font_list_entities): Fix handling of cache.
7998 (font_matching_entity): Likewise.
7999
8000 * ftfont.c (cs_iso8859_1): Delete.
8001 (ft_face_cache): New variable.
8002 (struct ftfont_info): New member fc_charset_idx.
8003 (ftfont_build_basic_charsets): Delete.
8004 (fc_charset_table): New variable.
8005 (ftfont_pattern_entity): New arg fc_charset_idx. Store (FILENAME
8006 . FC_CHARSET_IDX) as :font-entity property in the font entity.
8007 Callers changed.
8008 (ftfont_lookup_cache, ftfont_get_charset): New functions.
8009 (ftfont_spec_pattern): New argument fc_charset_idx.
8010 Check registry more rigidly. Change callers.
8011 (ftfont_open, ftfont_close, ftfont_has_char): Adjust for the
8012 change of :font-entity property of the font.
8013
8014 * xftfont.c (xftfont_open): Adjust for the change of :font-entity
8015 property of the font.
8016
8017 2008-05-18 Juanma Barranquero <lekktu@gmail.com>
8018
8019 * coding.c (Fcoding_system_p): Rename argument to match docstring.
8020 (Funencodable_char_position, Fcheck_coding_systems_region)
8021 (Fdecode_coding_string, Fencode_coding_string): Fix typos in docstrings.
8022 (Fdetect_coding_region, Fdetect_coding_string, Fencode_coding_region)
8023 (Ffind_operation_coding_system, Fset_coding_system_priority)
8024 (Fcoding_system_eol_type): Doc fixes.
8025
8026 2008-05-17 Glenn Morris <rgm@gnu.org>
8027
8028 * sysdep.c (child_setup_tty): Handle systems with NLDLY, without FFDLY.
8029
8030 2008-05-16 Eli Zaretskii <eliz@gnu.org>
8031
8032 * dired.c (Ffile_attributes): Shut up GCC warnings about st_uid
8033 and st_gid.
8034
8035 * frame.c (Fdelete_frame): Don't call font_update_drivers if
8036 HAVE_WINDOW_SYSTEM is not defined.
8037
8038 * xfaces.c (merge_face_ref, merge_face_vectors)
8039 (Finternal_set_lisp_face_attribute): Use FONT_*_INDEX only when
8040 HAVE_WINDOW_SYSTEM is defined.
8041 (Fface_font): Fix non-HAVE_WINDOW_SYSTEM case.
8042
8043 2008-05-16 Stefan Monnier <monnier@iro.umontreal.ca>
8044
8045 * keyboard.c (parse_menu_item): Do not cache key shortcut any more.
8046
8047 2008-05-15 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
8048
8049 * macterm.c (x_draw_relief_rect): Remove unused variable `dpy'.
8050
8051 2008-05-15 Kenichi Handa <handa@m17n.org>
8052
8053 * font.c (font_find_for_lface): Reflect LFACE_FONT in the font
8054 preference.
8055
8056 2008-05-15 Glenn Morris <rgm@gnu.org>
8057
8058 * emacs.c (USAGE1, standard_args): Remove -disable-font-backend.
8059
8060 2008-05-15 Chong Yidong <cyd@stupidchicken.com>
8061
8062 * fns.c (init_fns): Don't initialize weak_hash_tables here.
8063 (init_weak_hash_tables): New fun. Initialize weak_hash_tables.
8064
8065 * alloc.c (init_alloc_once): Call init_weak_hash_tables.
8066
8067 2008-05-15 Kenichi Handa <handa@m17n.org>
8068
8069 * ftfont.c (ftfont_list): Downcase family name to check generic
8070 families.
8071
8072 * xfaces.c (Finternal_set_lisp_face_attribute): Be sure to make a
8073 font-spec for QCfont value.
8074
8075 * fontset.c (Fnew_fontset): Call font_unparse_xlfd with 256-byte
8076 buffer. Check the return value of it.
8077
8078 2008-05-14 Jason Rumney <jasonr@gnu.org>
8079
8080 * w32term.c (w32_get_glyph_overhangs): Remove.
8081 (w32_redisplay_interface): Use x_get_glyph_overhangs instead.
8082
8083 2008-05-14 Kenichi Handa <handa@m17n.org>
8084
8085 * font.c (font_prop_validate): Make nil a valid value.
8086 (font_clear_cache): Check if the cached vector of entities is nil
8087 or not.
8088
8089 2008-05-14 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
8090
8091 * emacs.c (main_thread): Conditionalize on
8092 FORWARD_SIGNAL_TO_MAIN_THREAD instead of HAVE_GTK_AND_PTHREAD.
8093 (main) [FORWARD_SIGNAL_TO_MAIN_THREAD]: Initialize it.
8094
8095 * syssignal.h (FORWARD_SIGNAL_TO_MAIN_THREAD): New define.
8096 (main_thread, SIGNAL_THREAD_CHECK): Conditionalize on
8097 FORWARD_SIGNAL_TO_MAIN_THREAD instead of HAVE_GTK_AND_PTHREAD.
8098
8099 2008-05-14 Kenichi Handa <handa@m17n.org>
8100
8101 * coding.c (detect_coding_iso_2022): Ignore a coding category that
8102 has no corresponding coding system.
8103
8104 2008-05-14 Jason Rumney <jasonr@gnu.org>
8105
8106 * font.h (struct font) [WINDOWSNT]: Remove codepage member.
8107
8108 * w32font.h (w32font_open_internal): Update declaration.
8109
8110 * w32font.c (w32font_open_internal): Change last argument from
8111 w32font_info struct to font object. Fill in font object from
8112 font_entity. Get Outline metrics if possible. Use them to
8113 calculate underline position and thickness. Use xlfd name as name
8114 property. Don't set codepage.
8115 (w32font_open): Pass font_object to w32font_open_internal. Don't
8116 update dpyinfo->smallest_font_height and dpyinfo->smallest_char_width.
8117 (w32font_draw): Use s->font.
8118 (clear_cached_metrics): Don't clear non-existent blocks.
8119
8120 * w32term.c (w32_compute_glyph_string_overhangs): Don't compute if
8121 font was not found.
8122 (x_draw_glyph_string): Use underline position and thickness from font.
8123
8124 * w32uniscribe.c (uniscribe_open): Pass font_object to
8125 w32font_open_internal.
8126
8127 2008-05-14 Kenichi Handa <handa@m17n.org>
8128
8129 These changes are to delete all legacy font-handling codes, and
8130 make Emacs use only font-backends.
8131
8132 * Makefile.in: Delete USE_FONT_BACKEND conditionals.
8133 (frame.o, image.o, print.o): Depend on $(FONTSRC).
8134
8135 * makefile.w32-in (WIN32OBJ): Add w32reg.$(O), remove w32bdf.$(O).
8136
8137 * charset.h (Vcharset_non_preferred_head)
8138 (Vcurrent_iso639_language): Extern them.
8139
8140 * charset.c (Vcharset_non_preferred_head): New variable.
8141 (Vcurrent_iso639_language): New variable.
8142 (syms_of_charset): Declare it as a Lisp variable.
8143 (char_charset): Don't check non preferred charsets. As a last
8144 resort, return charset_unicode.
8145 (Fset_charset_priority): Update Vcharset_non_preferred_head.
8146
8147 * composite.c: Throughout the file, delete all USE_FONT_BACKEND
8148 conditionals. Don't check enable_font_backend. Delete all codes
8149 used only when USE_FONT_BACKEND is not defined.
8150
8151 * dispextern.h (struct glyph_string): Change type of `font' to
8152 `struct font *'.
8153 (struct glyph_string): New member underline_position and
8154 underline_thickness.
8155 (enum lface_attribute_index): Remove LFACE_AVGWIDTH_INDEX.
8156 (struct face): Change type of `font' to `struct font *'. Remove
8157 members `font_name', `font_info_id'.
8158 (per_char_metric, encode_char): Delete externs.
8159 (calc_pixel_width_or_height): Adjust the prototype.
8160
8161 * emacs.c (enable_font_backend): Delete extern.
8162 (main): Don't set enable_font_backend. Don't check the command
8163 line argument "-disable-font-backend".
8164
8165 * font.h (Qfont_spec, Qfont_entity, Qfont_object): Extern them.
8166 (enum font_property_index): New members FONT_DPI_INDEX,
8167 FONT_SPACING_INDEX, FONT_AVGWIDTH_INDEX, FONT_NAME_INDEX,
8168 FONT_FULLNAME_INDEX, FONT_FILE_INDEX, FONT_FORMAT_INDEX,
8169 FONT_OBJECT_MAX. Delete FONT_FRAME_INDEX.
8170 (FONT_WEIGHT_NUMERIC, FONT_SLANT_NUMERIC, FONT_WIDTH_NUMERIC)
8171 (FONT_WEIGHT_SYMBOLIC, FONT_SLANT_SYMBOLIC, FONT_WIDTH_SYMBOLIC)
8172 (FONT_WEIGHT_FOR_FACE, FONT_SLANT_FOR_FACE, FONT_WIDTH_FOR_FACE)
8173 (FONT_WEIGHT_NAME_NUMERIC, FONT_SLANT_NAME_NUMERIC)
8174 (FONT_WIDTH_NAME_NUMERIC, FONT_SET_STYLE): New macros.
8175 (struct font_spec, struct font_entity): New structs.
8176 (FONT_ENCODING_NOT_DECIDED): Moved from fontset.h.
8177 (struct font): Many members from old "struct font_info" moved to
8178 here. Members font and entity deleted.
8179 (FONT_SPEC_P, FONT_ENTITY_P, FONT_OBJECT_P, FONTP): Modified for
8180 the new font-related objects.
8181 (CHECK_FONT_SPEC, CHECK_FONT_ENTITY, CHECK_FONT_OBJECT)
8182 (CHECK_FONT_GET_OBJECT): Likewise.
8183 (XFONT_SPEC, XFONT_ENTITY, XFONT_OBJECT, XSETFONT): New macros.
8184 (PT_PER_INCH, POINT_TO_PIXEL, PIXEL_TO_POINT): Moved from font.h.
8185 (struct font_driver): New members case_sensitive anc check. Type
8186 of the member list and open changed.
8187 (enable_font_backend, font_symbolic_weight, font_symbolic_slant)
8188 (font_symbolic_width, font_find_object, font_get_spec)
8189 (font_set_lface_from_name): Delete extern.
8190 (Fcopy_font_spec, Fmerge_font_spec, Ffont_family_list): New EXFUNs.
8191
8192 * font.c: Include <strings.h>.
8193 (enable_font_backend): Delete it.
8194 (Qfont_spec, Qfont_entity, Qfont_object): New variables.
8195 (CHECK_VALIDATE_FONT_SPEC): Delete it.
8196 (PT_PER_INCH, POINT_TO_PIXEL, PIXEL_TO_POINT): Moved to font.h.
8197 (null_string): Delete it.
8198 (null_vector): Make it static.
8199 (font_family_alist): Delete it.
8200 (Qnormal): Extern it.
8201 (QCextra, QClanguage): Delete it.
8202 (QClang, QCavgwidth, QCfont_entity, QCfc_unknown_spec): New variables.
8203 (font_make_spec, font_make_entity, font_make_object)
8204 (font_intern_prop): Renamed from intern_downcase. Don't downcase
8205 the string. Callers changed.
8206 (font_pixel_size): Adjusted for the format change of font-related
8207 objects.
8208 (prop_name_to_numeric, prop_numeric_to_name): Delete them.
8209 (font_style_to_value, font_style_symbolic): New function.
8210 (build_font_family_alist): Delete it.
8211 (font_registry_charsets): Use Fassoc_string instead of
8212 assq_no_quit.
8213 (font_prop_validate_symbol): Don't return null_string.
8214 (font_prop_validate_style): Adjusted for the change of
8215 style-related values in a font vector.
8216 (font_property_table): Delete entries for QClanguage and
8217 QCantialias, add entries for QCavgwidth.
8218 (get_font_prop_index): Delete the 2nd argument FROM.
8219 (font_prop_validate): Arguments changed.
8220 (font_put_extra): Adjusted for the change of font-related objects.
8221 (font_expand_wildcards, font_parse_xlfd, font_unparse_xlfd)
8222 (font_parse_fcname, font_unparse_fcname)
8223 (font_prepare_composition): Likewise.
8224 (font_parse_family_registry): Renamed from font_merge_old_spec.
8225 (otf_open): Delete the 1st arg entity.
8226 (font_otf_capability): Adjusted for the above change.
8227 (font_score): New arg alternate_families. Adjusted for the change
8228 of font-related objects.
8229 (font_sort_entites): New arg best_only.
8230 (font_symbolic_weight, font_symbolic_slant, font_symbolic_width):
8231 Delete them.
8232 (font_match_p): Check alternate families.
8233 (font_find_object): Delete it.
8234 (font_check_object): New function.
8235 (font_clear_cache): Adjusted for the change of font-related objects.
8236 (font_delete_unmatched): New arg.
8237 (font_list_entities): Call font_driver->list with a spec that
8238 doesn't specify style-related properties.
8239 (font_matching_entity): Arguments changed. Caller changed.
8240 (font_open_entity): Adjusted for the change of font-related objects.
8241 (font_close_object, font_has_char, font_encode_char)
8242 (font_get_name, font_get_spec): Likewise.
8243 (font_spec_from_name, font_clear_prop, font_update_lface):
8244 New functions.
8245 (font_find_for_lface, font_open_for_lface, font_load_for_lface)
8246 (font_prepare_for_face, font_done_for_face, font_open_by_name)
8247 (font_at): Adjusted for the change of font-related objects.
8248 (font_range): New function.
8249 (Ffontp, Ffont_spec, Ffont_get, Ffont_put, Flist_fonts)
8250 (Ffont_xlfd_name): Adjusted for the change of font-related objects.
8251 (Fcopy_font_spec, Fmerge_font_spec): New function.
8252 (Ffont_family_list): Renamed from list-families.
8253 (Finternal_set_font_style_table): Arguments changed.
8254 (Ffont_fill_gstring, Ffont_shape_text, Fopen_font)
8255 (Ffont_drive_otf, Fquery_font, Ffont_match_p): Adjusted for the
8256 change of font-related objects.
8257 (syms_of_font): Delete "ifdef USE_FONT_BACKEND". DEFSYM new symbols.
8258
8259 * fontset.h (struct font_info): Delete it. Most members go to
8260 struct font.
8261 (FONT_ENCODING_NOT_DECIDED): Moved to font.h.
8262 (enum FONT_SPEC_INDEX): Delete it.
8263 (font_info, list_fonts_func, load_font_func, query_font_func)
8264 (set_frame_fontset_func, find_ccl_program_func)
8265 (get_font_repertory_func, new_fontset_from_font_name): Delete
8266 externs.
8267 (fontset_from_font_name): Extern it.
8268 (FS_LOAD_FONT, FONT_INFO_ID, FONT_INFO_FROM_ID)
8269 (FONT_INFO_FROM_FACE): Deleted.
8270 (face_for_font): Adjust prototype.
8271
8272 * fontset.c: Throughout the file, delete all USE_FONT_BACKEND
8273 conditionals. Don't check enable_font_backend. Delete all codes
8274 used only when USE_FONT_BACKEND is not defined.
8275 (get_font_info_func, list_font_func, load_font_func)
8276 (query_font_func, set_frame_fontset_func, find_ccl_program_func)
8277 (get_font_repertory_func): Delete them.
8278 (FONTSET_SPEC, FONT_DEF_NEW, FONT_DEF_SPEC, FONT_DEF_ENCODING)
8279 (FONT_DEF_REPERTORY, RFONT_DEF_FACE, RFONT_DEF_SET_FACE)
8280 (RFONT_DEF_FONT_DEF, RFONT_DEF_SPEC, RFONT_DEF_REPERTORY)
8281 (RFONT_DEF_OBJECT, RFONT_DEF_SET_OBJECT, RFONT_DEF_SCORE)
8282 (RFONT_DEF_SET_SCORE, RFONT_DEF_NEW): New macros.
8283 (fontset_compare_rfontdef): New function.
8284 (reorder_font_vector): Remove the argument CHARSET-ID. Sort
8285 rfont-defs by qsort. Adjusted for the change of font-group vector.
8286 (load_font_get_repertory): Deleted.
8287 (fontset_find_font): Use new macros to ref/set elements of
8288 font-def and rfont-def.
8289 (fontset_font): Fix the timing of remembering that no font for C.
8290 (free_face_fontset): Do nothing if the face has no fontset.
8291 (face_suitable_for_char_p): Use new macros to ref/set elements of
8292 rfont-def.
8293 (face_for_char): Likewise. Call face_for_char with font_object.
8294 (fs_load_font): Delete. Delete #pragma surrounding it.
8295 (fs_query_fontset): Use strcasecmp instead of strcmp.
8296 (generate_ascii_font_name): Adjusted for the format change of
8297 font-spec.
8298 (Fset_fontset_font): Likewise. Use new macros to set elements of
8299 font-def.
8300 (Fnew_fontset): Use font_unparse_xlfd to generate
8301 FONTSET_ASCII (fontset).
8302 (new_fontset_from_font_name): Deleted.
8303 (fontset_from_font): Renamed from new_fontset_from_font. Check if
8304 a fontset is already created for the font. FIx updating of
8305 Vfontset_alias_alist.
8306 (fontset_ascii_font): Deleted.
8307 (Ffont_info): Adjusted for the format change of font-spec.
8308 (Finternal_char_font): Likewise.
8309 (Ffontset_info): Likewise.
8310 (syms_of_fontset): Don't check load_font_func.
8311
8312 * fns.c (internal_equal): Handle PREV_FONT.
8313
8314 * frame.h: Delete USE_FONT_BACKEND conditional.
8315
8316 * frame.c: Throughout the file, delete all USE_FONT_BACKEND
8317 conditionals. Don't check enable_font_backend. Delete all codes
8318 used only when USE_FONT_BACKEND is not defined.
8319 (x_set_font): Call x_new_font, not x_new_fontset2.
8320 (x_set_font_backend): Use FRAME_FONT macro to check if a font is
8321 already set for the frame.
8322
8323 * ftfont.c (ftfont_pattern_entity): Argument FRAME removed. Make
8324 a font-entity by font_make_entity. Use font_intern_prop instead
8325 of intern_downcase. Use FONT_SET_STYLE to set a style-related
8326 font property. If a font is scalable, set avgwidth property to 0.
8327 Set font-entity property by font_put_extra.
8328 (ftfont_list_generic_family): Argument SPEC and REGISTRY removed.
8329 (ffont_driver): Adjusted for the change of struct font_driver.
8330 (ftfont_spec_pattern): New function.
8331 (ftfont_list): Return a list, not vector.
8332 (ftfont_match): Use ftfont_spec_pattern to get a pattern.
8333 (ftfont_list_family): Don't downcase names.
8334 (ftfont_free_entity): Deleted.
8335 (ftfont_open): Return a font-object. Adjusted for the change of
8336 struct font. Get underline_thickness and underline_position from
8337 font property. Don't update dpyinfo->smallest_font_height and
8338 dpyinfo->smallest_char_width.
8339 (ftfont_close): Don't free `struct font'.
8340 (ftfont_has_char): Adjusted for the format change of font-entity.
8341 (ftfont_encode_char, ftfont_text_extents): Likewise.
8342
8343 * ftxfont.c (ftxfont_list): Return a list, not vector.
8344 (ftxfont_open): Return a font-object. Adjusted for the change of
8345 struct font. Get underline_thickness and underline_position from
8346 font property. Don't update dpyinfo->smallest_font_height and
8347 dpyinfo->smallest_char_width.
8348 (ftxfont_close): Don't decrease FRAME_X_DISPLAY_INFO (f)->n_fonts.
8349 (ftxfont_draw): Adjusted for the change of struct font.
8350
8351 * image.c (image_ascent): Don't include "charset.h". Include
8352 "character.h" and "font.h".
8353
8354 * lisp.h (enum pvec_type): New member PREV_FONT.
8355 (Fassoc_string): EXFUN it.
8356
8357 * print.c: Include font.h.
8358 (print_object): Handle font-related objects.
8359
8360 * xdisp.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.
8363 (handle_auto_composed_prop): Do nothing if it->f is not on a
8364 window system. Check how many following characters can be
8365 displayed by the same font.
8366 (calc_pixel_width_or_height): Type of the 4th arg is changed to
8367 'struct font *'.
8368 (get_char_face_and_encoding): Assign the whole encoding task to
8369 the `encode-char' method of a font driver.
8370 (fill_composite_glyph_string): Adjusted for the change of `struct
8371 face' and `struct glyph_string'.
8372 (fill_glyph_string): Likewise.
8373 (get_per_char_metric): Arguments changed.
8374 (x_get_glyph_overhangs): Adjusted for the change of `struct face'
8375 and `struct glyph_string'.
8376 (produce_stretch_glyph, calc_line_height_property)
8377 (x_produce_glyphs): Likewise.
8378
8379 * xfaces.c: Throughout the file, delete all USE_FONT_BACKEND
8380 conditionals. Don't check enable_font_backend. Delete all codes
8381 used only when USE_FONT_BACKEND is not defined. Use
8382 FONT_XXX_NAME_NUMERIC instead of face_numeric_xxx.
8383 (QCfoundry, QCadstyle, QCregistry, QCspacing, QCsize, QCavgwidth)
8384 (Qp): Extern them.
8385 (clear_font_table, load_face_font, xlfd_lookup_field_contents):
8386 Deleted.
8387 (struct font_name): Deleted.
8388 (xlfd_numeric_value, xlfd_symbolic_value): Deleted.
8389 (compare_fonts_by_sort_order): New function.
8390 (xlfd_numeric_slant, xlfd_symbolic_slant, xlfd_numeric_weight)
8391 (xlfd_symbolic_weight, xlfd_numeric_swidth, xlfd_symbolic_swidth):
8392 Deleted.
8393 (Fx_family_fonts): Use font_list_entities, and sort fonts by
8394 compare_fonts_by_sort_order.
8395 (Fx_font_family_list): Call Ffont_family_list.
8396 (face_numeric_value, face_numeric_weight, face_numeric_slant)
8397 (face_numeric_swidth, face_symbolic_value, face_symbolic_weight)
8398 (face_symbolic_slant, face_symbolic_swidth)
8399 (split_font_name_into_vector, build_font_name_from_vector)
8400 (xlfd_fixed_p, xlfd_point_size, pixel_point_size)
8401 (font_rescale_ratio, split_font_name, build_font_name)
8402 (free_font_names, sort_fonts, x_face_list_fonts)
8403 (face_font_available_p, sorted_font_list, cmp_font_names)
8404 (font_list_1, concat_font_list, font_list, remove_duplicates):
8405 Deleted.
8406 (Fx_list_fonts): Use Ffont_list.
8407 (LFACE_AVGWIDTH): Deleted.
8408 (check_lface_attrs): Don't check LFACE_AVGWIDTH. Check LFACE_FONT
8409 by FONTP.
8410 (lface_fully_specified_p): Don't check LFACE_AVGWIDTH.
8411 (set_lface_from_font_name): Delete it.
8412 (set_lface_from_font): Renamed from
8413 set_lface_from_font_and_fontset. Caller changed. Don't set
8414 LFACE_AVGWIDTH. Use FONT_XXX_FOR_FACE to get a symbol suitable
8415 for face.
8416 (merge_face_vectors): Copy font-spec if necessary.
8417 Clear properties of the font-spec if necessary.
8418 (merge_face_ref): Clear properties of the font-spec if necessary.
8419 (Finternal_set_lisp_face_attribute): Likewise.
8420 (set_font_frame_param): Use font_load_for_lface to load a
8421 font-object, and call Fmodify_frame_parameters with it.
8422 (x_update_menu_appearance): Don't check LFACE_AVGWIDTH. Get XLFD
8423 font name by Ffont_xlfd_name.
8424 (Finternal_lisp_face_attribute_values): Don't check QCweight,
8425 QCslant, and QCwidth.
8426 (Fface_font): Get a font name from font->props[FONT_NAME_INDEX].
8427 (lface_same_font_attributes_p): Don't check LFACE_AVGWIDTH.
8428 Compare fonts by EQ.
8429 (lookup_non_ascii_face): Deleted.
8430 (face_for_font): The 2nd argument changed.
8431 (x_supports_face_attributes_p): Don't check LFACE_AVGWIDTH.
8432 Check atomic font properties by case insensitive.
8433 (realize_non_ascii_face): Set face->overstrike correctly.
8434 (realize_x_face): Likewise. Check if LFACE_FONT is a font_object.
8435 (dump_realized_face): Get font name from
8436 font->props[FONT_NAME_INDEX]. Don't print font_info_id.
8437
8438 * xfns.c: Throughout the file, delete all USE_FONT_BACKEND
8439 conditionals. Don't check enable_font_backend. Delete all codes
8440 used only when USE_FONT_BACKEND is not defined.
8441 (xic_create_xfontset): Original code deleted and renamed from
8442 xic_create_xfontset2. Use FRAME_FONT, not FRAME_FONT_OBJECT.
8443 (x_make_gc): Don't set GCFont in GCs.
8444 (Fx_create_frame) [USE_LUCID]: Set xlwmenu_default_font to a font
8445 opened by "fixed".
8446 (syms_of_xfns): Don't set get_font_info_func, load_font_func,
8447 find_ccl_program_func, query_font_func, set_frame_fontset_func,
8448 get_font_repertory_func.
8449
8450 * xfont.c: Include <stdlib.h> and "ccl.h".
8451 (struct xfont_info): New structure.
8452 (xfont_query_font): Deleted.
8453 (xfont_find_ccl_program): Renamed from x_find_ccl_program and
8454 moved from xterm.c.
8455 (xfont_driver): Adjusted for the change of struct font_driver.
8456 (compare_font_names): New function.
8457 (xfont_list_pattern): Sort font names case insensitively. Make
8458 font_entity by calling font_make_entity. Avoid auto-scaled fonts.
8459 (xfont_list): Return a list, not vector.
8460 (xfont_match): If the font doesn't have QCname property, generate
8461 a name from the other font properties.
8462 (xfont_open): Return a font-object. Adjusted for the change of
8463 struct font. Get underline_thickness and underline_position from
8464 font property. Don't update dpyinfo->smallest_font_height and
8465 dpyinfo->smallest_char_width.
8466 (xfont_close): Don't free struct font.
8467 (xfont_prepare_face): Adjusted for the change of struct font.
8468 (xfont_done_face): Deleted.
8469 (xfont_has_char): Adjusted for the change of struct font.
8470 (xfont_encode_char, xfont_draw): Likewise.
8471 (xfont_check): New function.
8472
8473 * xftfont.c (xftfont_list): Adjusted for the change of `list'
8474 callback function.
8475 (xftfont_match): Adjusted for the format change of font-entity.
8476 (xftfont_open): Adjusted for the format change of font-entity and
8477 font-object. Adjusted for the change of struct font. Return a
8478 font-object. Don't update dpyinfo->smallest_font_height and
8479 dpyinfo->smallest_char_width.
8480 (xftfont_close): Block input while calling XftFontClose.
8481 (xftfont_prepare_face): Don't block input while calling
8482 xftfont_get_colors. Adjusted for the change of struct font.
8483 (xftfont_shape): Return value of error case fixed.
8484
8485 * xrdb.c (x_load_resources): Don't setup a fontset resource.
8486
8487 * xterm.h: Throughout the file, delete all USE_FONT_BACKEND
8488 conditionals.
8489 (FONT_WIDTH): Return (f)->max_width.
8490 (struct x_display_info): Delete member `font'.
8491 (x_list_fonts, x_get_font_info, x_load_font, x_query_font)
8492 (x_find_ccl_program, x_get_font_repertory): Delete externs.
8493 (struct x_output): Change type of `font' to `struct font *'.
8494
8495 * xterm.c: Throughout the file, delete all USE_FONT_BACKEND
8496 conditionals. Don't check enable_font_backend. Delete all codes
8497 used only when USE_FONT_BACKEND is not defined. Don't include ccl.h.
8498 (x_per_char_metric, x_encode_char): Deleted.
8499 (x_set_cursor_gc, x_set_mouse_face_gc): Don't set GCFont.
8500 (x_compute_glyph_string_overhangs): Adjusted for the change of
8501 `struct face'.
8502 (x_draw_glyph_string_foreground)
8503 (x_draw_composite_glyph_string_foreground): Likewise.
8504 (x_draw_glyph_string): Likewise. Use font->underline_position and
8505 font->underline_thickness.
8506 (x_new_font): Renamed from x_new_fontset2.
8507 (x_new_fontset, x_get_font_info, x_list_fonts): Deleted.
8508 (x_check_font): Call `check' method of a font driver.
8509 (x_font_min_bounds, x_compute_min_glyph_bounds, x_load_font)
8510 (x_query_font, x_get_font_repertory): Deleted.
8511 (x_find_ccl_program): Renamed and moved to xfont.c.
8512 (x_redisplay_interface): Adjusted for the change of `struct
8513 redisplay_interface'.
8514
8515 * w32fns.c: Throughout the file, delete all USE_FONT_BACKEND
8516 conditionals. Don't check enable_font_backend. Delete all codes
8517 used only when USE_FONT_BACKEND is not defined. Surround non-used
8518 code by "#ifdef OLD_FONT" and "endif".
8519 (Fw32_select_font): Use FONT_COMPAT to get old font structure.
8520
8521 * w32font.h (struct w32font_info): New member.
8522 (FONT_COMPAT): New macro.
8523 (w32font_open_internal): Prototype adjusted.
8524
8525 * w32gui.h (XGCValues): Surround `XFontStruct *font' by "if
8526 OLD_FONT" and "endif".
8527
8528 * w32font.c: Throughout the file, delete all USE_FONT_BACKEND
8529 conditionals. Don't check enable_font_backend. Delete all codes
8530 used only when USE_FONT_BACKEND is not defined.
8531 (w32font_open): Return a font-object. Make a font-object by
8532 font_make_object. Adjusted for the change of struct w32font_info.
8533 (w32font_close): Don't free struct font. Adjusted for the change
8534 of struct w32font_info.
8535 (w32font_encode_char, w32font_text_extents, w32font_draw):
8536 Adjusted for the change of struct w32font_info.
8537 (w32font_draw): Likewise.
8538 (w32font_list_internal): Return a list, not vector.
8539 (w32font_open_internal): Change the 4th arg to font-object.
8540 Adjusted for the change of struct w32font_info and font-object format.
8541 (add_font_name_to_list): Don't downcase names.
8542 (w32_enumfont_pattern_entity): Make a font-entity by
8543 font_make_entity. Adjusted for the format change of font-entity.
8544 Use FONT_SET_STYLE to set a style-related font property. If a
8545 font is scalable, set avgwidth property to 0. Set font-entity
8546 property by font_put_extra.
8547 (font_matches_spec): Adjusted for the format change of font-entity.
8548 (w32_weight_table, w32_decode_weight): New variables.
8549 (w32_encode_weight): New function.
8550 (fill_in_logfont): Adjusted for the format change of font-spec.
8551 (w32font_full_name): Use FONT_WEIGHT_SYMBOLIC to get a symbol
8552 weight value.
8553 (w32font_driver): Adjusted for the change of struct font_driver.
8554
8555 * w32term.h: Throughout the file, delete all USE_FONT_BACKEND
8556 conditionals. Don't check enable_font_backend. Surround non-used
8557 code by "#ifdef OLD_FONT" and "endif".
8558 (FONT_WIDTH, FONT_HEIGHT, FONT_BASE, FONT_DESCENT)
8559 (FONT_AVG_WIDTH): Adjusted for the change of struct font.
8560
8561 * w32term.c: Throughout the file, delete all USE_FONT_BACKEND
8562 conditionals. Don't check enable_font_backend. Delete all codes
8563 used only when USE_FONT_BACKEND is not defined. Surround non-used
8564 code by "#ifdef OLD_FONT" and "endif".
8565
8566 * w32uniscribe.c: Delete USE_FONT_BACKEND conditional.
8567 (uniscribe_open): Return value changed to font-object.
8568 Adjusted for the format change of font-object.
8569 (uniscribe_otf_capability): Adjusted for the change of struct font.
8570 (add_opentype_font_name_to_list): Don't downcase names.
8571 (uniscribe_font_driver): Adjusted for the change of struct
8572 font_driver.
8573
8574 2008-05-13 Chong Yidong <cyd@stupidchicken.com>
8575
8576 * dispnew.c (update_frame_1): Check if tty output is still valid
8577 before flushing it.
8578
8579 2008-05-13 Jan Djärv <jan.h.d@swipnet.se>
8580
8581 * xterm.c (handle_one_xevent): Don't pass buttons higher than 3
8582 to Gtk+ menus.
8583
8584 2008-05-13 Stefan Monnier <monnier@iro.umontreal.ca>
8585
8586 * dired.c (file_name_completion): Tweak the code so as to always do it
8587 in a single pass. Tighten the scope of some variables.
8588
8589 * dired.c (Qdefault_directory): New var.
8590 (file_name_completion): Use it instead of Fexpand_file_name.
8591 (syms_of_dired): Initialize it.
8592
8593 2008-05-12 Stefan Monnier <monnier@iro.umontreal.ca>
8594
8595 * fileio.c (double_dollars): Remove dead code.
8596
8597 2008-05-10 Eli Zaretskii <eliz@gnu.org>
8598
8599 * dired.c (Ffile_attributes, Fdirectory_files_and_attributes):
8600 Mention w32-get-true-file-attributes in doc string.
8601
8602 * w32proc.c (syms_of_ntproc) <w32-get-true-file-attributes>: Doc fix.
8603
8604 2008-05-09 Glenn Morris <rgm@gnu.org>
8605
8606 * fileio.c (Fread_file_name): Remove reference to insdef, deleted
8607 2008-04-23.
8608
8609 2008-05-09 Eli Zaretskii <eliz@gnu.org>
8610
8611 Support for reporting owner and group of each file on MS-Windows:
8612 * dired.c (stat_uname, stat_gname): New functions, with special
8613 implementation for w32.
8614 (Ffile_attributes): Use them instead of getpwuid and getgrgid.
8615
8616 * w32.c: Rename the_passwd_* to dflt_passwd_*.
8617 (dflt_group_name): New static variable.
8618 (dflt_group): Rename from the_group.
8619 (init_user_info): Init dflt_group fields. Get user's group name
8620 from LookupAccountSid.
8621 (g_b_init_get_file_security, g_b_init_get_security_descriptor_owner)
8622 (g_b_init_get_security_descriptor_group, g_b_init_is_valid_sid):
8623 New initialization states.
8624 (globals_of_w32): Initialize them to zero. Initialize the default
8625 group name to "None".
8626 (GetFileSecurity_Name): New global var, the name of the function
8627 to call for GetFileSecurity.
8628 (GetFileSecurity_Proc, GetSecurityDescriptorOwner_Proc)
8629 (GetSecurityDescriptorGroup_Proc, IsValidSid_Proc): New typedefs.
8630 (get_file_security, get_security_descriptor_owner)
8631 (get_security_descriptor_group, is_valid_sid)
8632 (get_file_security_desc, get_rid, get_name_and_id)
8633 (get_file_owner_and_group): New functions.
8634 (stat): Use get_file_security_desc and get_file_owner_and_group to
8635 report the owner and primary group of each file. Don't ignore the
8636 high 32 bits of file's size, now that st_size is 64-bit wide.
8637 Fix test when to get true file attributes.
8638 (init_user_info): Use get_rid instead of equivalent inline code.
8639 (fstat): Don't ignore the high 32 bits of file's size.
8640
8641 2008-05-09 Chong Yidong <cyd@stupidchicken.com>
8642
8643 * image.c (png_load): Use correct bit-depth for setting background
8644 color.
8645
8646 2008-05-08 Eli Zaretskii <eliz@gnu.org>
8647
8648 * Makefile.in (lisp, shortlisp): Rename epa-file-hook.elc to
8649 epa-hook.elc.
8650
8651 2008-05-08 Juanma Barranquero <lekktu@gmail.com>
8652
8653 * font.c (Ffont_match_p): Don't use `iff' in docstring.
8654
8655 2008-05-07 Dan Nicolaescu <dann@ics.uci.edu>
8656
8657 * macfns.c (Fx_create_frame): Make a copy of frame parameters
8658 because the original parameters are in pure storage now.
8659 (mac_window): Remove unused params. Update callers.
8660
8661 2008-05-06 Stefan Monnier <monnier@iro.umontreal.ca>
8662
8663 * lread.c (substitute_object_recurse): Use lower-level primitives.
8664 Don't signal errors when traversing sub-char-tables.
8665 Don't loop over all the possible characters when traversing char-tables.
8666
8667 * print.c (print_preprocess): Add sub-char-tables to the print-table,
8668 just like we do in print.c.
8669
8670 2008-05-05 Stefan Monnier <monnier@iro.umontreal.ca>
8671
8672 * minibuf.c (Ftry_completion): Remove code left over from when we used
8673 scmp instead of Fcompare_strings.
8674
8675 2008-05-04 Juanma Barranquero <lekktu@gmail.com>
8676
8677 * w32fns.c (Fw32_battery_status): Fix computation of %t (h:min) format.
8678
8679 2008-05-04 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
8680
8681 * image.c [USE_MAC_IMAGE_IO] (image_load_image_io):
8682 Create bitmap context in native byte order.
8683
8684 * macterm.c (XDrawLine)
8685 (XCreatePixmapFromBitmapData) [USE_MAC_IMAGE_IO]: Create bitmap
8686 context in native byte order.
8687
8688 2008-05-04 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
8689
8690 * config.in: Regenerate.
8691
8692 * image.c (PIX_MASK_DRAW, PIX_MASK_RETAIN) [USE_MAC_IMAGE_IO]:
8693 New definitions for Image I/O support.
8694 (XGetImage, XPutPixel, XGetPixel, XDestroyImage)
8695 (mac_create_cg_image_from_image, x_create_x_image_and_pixmap)
8696 [USE_MAC_IMAGE_IO]: Add implementations for Image I/O support.
8697 (mac_data_provider_release_data, image_load_image_io)
8698 [USE_MAC_IMAGE_IO]: New functions.
8699 (CGImageCreateWithPNGDataProviderProcType) [MAC_OSX]: Remove typedef.
8700 (MyCGImageCreateWithPNGDataProvider) [MAC_OSX]: Remove variable.
8701 (init_image_func_pointer) [MAC_OSX]: Remove function.
8702 (image_load_quartz2d) [MAC_OSX]: Check availability of
8703 CGImageCreateWithPNGDataProvider at compile time.
8704 Use lowercase `false' for boolean constant.
8705 (png_load, jpeg_load, tiff_load, gif_load) [USE_MAC_IMAGE_IO]:
8706 Use image_load_image_io.
8707 (png_load) [!USE_MAC_IMAGE_IO && MAC_OSX]:
8708 Don't check MyCGImageCreateWithPNGDataProvider.
8709 (init_image) [MAC_OSX && TARGET_API_MAC_CARBON]:
8710 Don't call init_image_func_pointer.
8711
8712 * macgui.h (Pixmap) [USE_MAC_IMAGE_IO]: New definition for Image I/O.
8713
8714 * macterm.c (mac_cg_color_space_rgb) [USE_CG_DRAWING]:
8715 Make variable non-static.
8716 (XDrawLine, XCreatePixmap, XCreatePixmapFromBitmapData, XFreePixmap)
8717 [USE_MAC_IMAGE_IO]: Add implementations for Image I/O support.
8718
8719 * macterm.h (ARGB_TO_ULONG, ALPHA_FROM_ULONG): New macros.
8720 (RED_FROM_ULONG): Mask off higher bits.
8721 (mac_cg_color_space_rgb) [USE_MAC_IMAGE_IO]: New extern.
8722
8723 * s/darwin.h [HAVE_CARBON && HAVE_AVAILABILITYMACROS_H]:
8724 Include AvailabilityMacros.h.
8725 (USE_MAC_IMAGE_IO, LIBS_IMAGE) [HAVE_CARBON]: New defines.
8726 (LIBS_CARBON) [HAVE_CARBON]: Use LIBS_IMAGE.
8727
8728 2008-05-03 Stefan Monnier <monnier@iro.umontreal.ca>
8729
8730 * chartab.c (Fset_char_table_range): If range is t, really set all
8731 chars to that value.
8732
8733 2008-05-03 Eli Zaretskii <eliz@gnu.org>
8734
8735 * dired.c (Ffile_attributes): Don't allow the device number become
8736 negative.
8737
8738 2008-05-02 Daiki Ueno <ueno@unixuser.org>
8739
8740 * Makefile.in (lisp, shortlisp): Add epa-file-hook.elc.
8741
8742 2008-05-02 Juri Linkov <juri@jurta.org>
8743
8744 * minibuf.c (Fread_from_minibuffer, Fread_string, Fread_command)
8745 (Fread_variable, Fread_buffer, Fcompleting_read): Document the
8746 DEFAULT argument as a list of default values in docstrings.
8747
8748 2008-05-01 Chong Yidong <cyd@stupidchicken.com>
8749
8750 * puresize.h (BASE_PURESIZE): Increase to 1210000.
8751
8752 2008-05-01 Martin Rudalics <rudalics@gmx.at>
8753
8754 * dispnew.c (change_frame_size_1): Preserve small windows when
8755 shrinking frames by calling set_window_height|width with third
8756 arg 2.
8757
8758 * window.h (struct window): Replace field too_small_ok by field
8759 resize_proportionally.
8760
8761 * window.c (make_window): Initialize resize_proportionally.
8762 (enlarge_window): Temporarily set resize_proportionally to make
8763 sure that shrink_windows does scale the window proportionally.
8764 (shrink_windows): When window has resize_proportionally set try
8765 to shrink it proportionally by stealing from other windows.
8766 (struct saved_window, Fset_window_configuration)
8767 (compare_window_configurations): Handle resize_proportionally.
8768 (WINDOW_TOTAL_SIZE): New macro.
8769 (window_min_size, shrink_windows, size_window): Use it.
8770 (check_min_window_sizes): Remove. Invalid values of
8771 window-min-height|width are handled by window_min_size_2 now.
8772 (size_window, Fsplit_window, enlarge_window)
8773 (adjust_window_trailing_edge, grow_mini_window): Don't call
8774 check_min_window_sizes.
8775 (window_min_size_2, window_min_size_1, window_min_size):
8776 New argument safe_p for retrieving "safe" minimum sizes.
8777 (Fdisplay_buffer, Fsplit_window, enlarge_window)
8778 (adjust_window_trailing_edge, grow_mini_window):
8779 Adjust arguments of window_min_size... functions.
8780 (shrink_windows): Argument min_size removed. New argument
8781 safe_p allows shrinking windows to their safe minimum sizes.
8782 Calculate minimum size and decide whether a window shall be
8783 deleted for each window individually.
8784 (size_window): When nodelete_p equals 2, tell shrink_windows to
8785 delete windows only if their new minimum size is no more safe.
8786 (shrink_window_lowest_first): Call window_min_size_1 to make
8787 sure to preserve modeline of bottom-most window when resizing
8788 the minibuffer.
8789 (Fset_window_configuration, Fcurrent_window_configuration)
8790 (compare_window_configurations): Do not handle
8791 window-min-height|width any more.
8792 (syms_of_window): Clarify window-min-height|width doc-strings.
8793
8794 2008-04-30 Stefan Monnier <monnier@iro.umontreal.ca>
8795
8796 * dired.c (file_name_completion): Fix up the encoding/decoding issue
8797 some more. Copy some of the code from Ftry_completions.
8798 Remove special case code that dates back to initial revision when the
8799 slash was only added when necessary and that can't trigger nowadays.
8800
8801 2008-04-27 Kenichi Handa <handa@m17n.org>
8802
8803 * font.c (font_prop_validate): Signal `error' instead of `font'.
8804
8805 2008-04-29 Jason Rumney <jasonr@gnu.org>
8806
8807 * w32fns.c (Fw32_battery_status): New defun.
8808 (syms_of_w32fns): Defsubr it.
8809
8810 2008-04-28 Andreas Schwab <schwab@suse.de>
8811
8812 * dired.c (file_name_completion): Fix another mixing of encoded
8813 and decoded names.
8814
8815 2008-04-28 Juanma Barranquero <lekktu@gmail.com>
8816
8817 * w32fns.c (Fw32_define_rgb_color): Fix typo in docstring.
8818
8819 2008-04-27 Juanma Barranquero <lekktu@gmail.com>
8820
8821 * fringe.c (Fdefine_fringe_bitmap): Doc fix.
8822
8823 2008-04-27 Andreas Schwab <schwab@suse.de>
8824
8825 * dired.c (file_name_completion): Fix inappropriate mixing of
8826 encoded and decoded names.
8827
8828 * xterm.c (XTread_socket): Fix use of uninitialized variable.
8829
8830 * puresize.h (BASE_PURESIZE): Increase to 1200000.
8831
8832 2008-04-26 Eli Zaretskii <eliz@gnu.org>
8833
8834 * dired.c (Ffile_attributes) [WINDOWSNT]: Undo change from
8835 2008-03-31, it's not needed anymore with `struct stat' definition
8836 on nt/inc/sys/stat.h. Undo changes from 2007-01-12 and 2007-01-13
8837 for the same reasons.
8838
8839 2008-04-25 Dennis Gilmore <ausil@fedoraproject.org> (tiny change)
8840
8841 * m/sparc.h: Additional redefinitions for GNU/Linux.
8842
8843 2008-04-23 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
8844
8845 * macterm.c (Vmac_ts_active_input_buf) [USE_MAC_TSM]: New variable.
8846 (syms_of_macterm) [USE_MAC_TSM]: Defvar it.
8847 (Qmouse_drag_overlay) [MAC_OSX]: New variable.
8848 (syms_of_macterm) [MAC_OSX]: Intern and staticpro it.
8849 (mac_get_selected_range, mac_store_buffer_text_to_unicode_chars)
8850 (mac_ax_selected_text_range) [MAC_OSX]: New functions.
8851 (mac_ax_number_of_characters) [MAC_OS_X_VERSION_MAX_ALLOWED >= 1030]:
8852 Likewise.
8853
8854 * mactoolbox.c (Vmac_ts_active_input_buf) [USE_MAC_TSM]: Add extern.
8855 (fast_find_position, x_y_to_hpos_vpos, mac_ax_selected_text_range)
8856 (mac_ax_number_of_characters): Add externs.
8857 (mac_get_selected_range, mac_store_buffer_text_to_unicode_chars)
8858 [USE_MAC_TSM]: Likewise.
8859 (mac_handle_text_input_event) [MAC_OSX]:
8860 Handle kEventTextInputOffsetToPos for no active input area case.
8861 Handle kEventTextInputPosToOffset and kEventTextInputGetSelectedText.
8862 (mac_handle_document_access_event)
8863 [MAC_OS_X_VERSION_MAX_ALLOWED >= 1030]: New function.
8864 (install_application_handler) [MAC_OSX]: Register handlers for
8865 kEventTextInputPosToOffset and kEventTextInputGetSelectedText.
8866 (install_application_handler) [MAC_OS_X_VERSION_MAX_ALLOWED >= 1030]:
8867 Register mac_handle_document_access_event.
8868
8869 * xdisp.c (x_y_to_hpos_vpos, fast_find_position) [HAVE_CARBON]:
8870 Make functions non-static.
8871
8872 2008-04-23 Stefan Monnier <monnier@iro.umontreal.ca>
8873
8874 * fileio.c (Vread_file_name_function, Vread_file_name_predicate)
8875 (read_file_name_completion_ignore_case, insert_default_directory)
8876 (Qdefault_directory): Move to minibuffer.el.
8877 (Fread_file_name): Call the new `read-file-name' instead.
8878
8879 2008-04-23 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
8880
8881 * mac.c (create_apple_event) [TARGET_API_MAC_CARBON]:
8882 Make function non-static.
8883 (create_apple_event_from_event_ref) [TARGET_API_MAC_CARBON]:
8884 Remove function.
8885 (create_apple_event_from_drag_ref) [TARGET_API_MAC_CARBON]:
8886 Move to mactoolbox.c.
8887 (mac_event_parameters_to_lisp) [TARGET_API_MAC_CARBON]: New function.
8888
8889 * macgui.h (CGFloat) [!CGFLOAT_DEFINED]: New typedef.
8890 (mac_rect_make): New macro.
8891
8892 * macterm.c (mac_draw_image_string_atsui) [MAC_OSX]: Use CGFloat
8893 instead of float.
8894 (mac_draw_image_string_cg) [USE_CG_TEXT_DRAWING]: Likewise.
8895 (init_cg_color, mac_draw_line, mac_draw_cg_image, XSetForeground)
8896 (XSetBackground) [USE_CG_DRAWING]: Likewise.
8897 (mac_draw_image_string_atsui) [MAC_OSX]: Use mac_rect_make instead of
8898 CGRectMake.
8899 (mac_draw_image_string_cg) [USE_CG_TEXT_DRAWING]: Likewise.
8900 (mac_erase_rectangle, mac_draw_cg_image, mac_fill_rectangle)
8901 (mac_set_clip_rectangles) [USE_CG_DRAWING]: Likewise.
8902 (XCreatePixmap, XCreatePixmapFromBitmapData): Use Window
8903 instead of WindowRef in argument type.
8904 (XCreatePixmap) [!MAC_OS8]: Don't call SetPortWindowPort.
8905 (mac_invert_rectangle): Use CGContextSetBlendMode if available.
8906 (mac_set_clip_rectangles, mac_reset_clip_rectangles): Take argument F
8907 instead of DISPLAY. All uses changed.
8908 (mac_handle_size_change): Don't call SET_FRAME_GARBAGED.
8909 (x_calc_absolute_position): Simplify so as not to use
8910 FRAME_PIXEL_WIDTH/FRAME_PIXEL_HEIGHT.
8911
8912 * macterm.h (XCreatePixmap, XCreatePixmapFromBitmapData): Use Window
8913 instead of WindowRef in argument type.
8914 (create_apple_event_from_event_ref, create_apple_event_from_drag_ref)
8915 [TARGET_API_MAC_CARBON]: Remove externs.
8916 (create_apple_event, mac_event_parameters_to_lisp)
8917 [TARGET_API_MAC_CARBON]: Add externs.
8918
8919 * mactoolbox.c (Vmac_ts_script_language_on_focus)
8920 (saved_ts_script_language_on_focus) [USE_MAC_TSM]: Remove externs.
8921 (XTread_socket) [USE_MAC_TOOLBAR]: Select window if its structure part
8922 is clicked.
8923 (x_activate_menubar): Remove extern for saved_menu_event_location.
8924 (create_apple_event_from_drag_ref) [TARGET_API_MAC_CARBON]:
8925 Move from mac.c.
8926
8927 2008-04-23 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
8928
8929 * alloc.c [!SYSTEM_MALLOC && !SYNC_INPUT] (uninterrupt_malloc)
8930 [HAVE_GTK_AND_PTHREAD && !DOUG_LEA_MALLOC]: Don't use recursive mutex.
8931
8932 2008-04-23 Jason Rumney <jasonr@gnu.org>
8933
8934 * w32.c (stat): When Vw32_get_true_file_attributes is Qlocal, get
8935 attributes only for local files.
8936
8937 * w32proc.c (syms_of_ntproc): Change Vw32_get_true_file attributes
8938 default to Qlocal.
8939
8940 2008-04-22 Juri Linkov <juri@jurta.org>
8941
8942 * buffer.c (Fswitch_to_buffer): Change interactive spec to call
8943 read-buffer-to-switch instead of using the letter "B".
8944
8945 2008-04-21 Stefan Monnier <monnier@iro.umontreal.ca>
8946
8947 * fileio.c (Qdefault_directory): New variable.
8948 (Fread_file_name): Use it to pass `dir' to the completion functions.
8949
8950 2008-04-20 Chong Yidong <cyd@stupidchicken.com>
8951
8952 * xdisp.c (pos_visible_p): Check if iterator stops on a display string.
8953
8954 2008-04-19 Stefan Monnier <monnier@iro.umontreal.ca>
8955
8956 * keyboard.c (Vpre_help_message): Remove.
8957 (show_help_echo): Remove default C code.
8958
8959 * dired.c (directory_files_internal, file_name_completion):
8960 Only call ENCODE_FILE if the string is indeed decoded.
8961
8962 2008-04-18 Stefan Monnier <monnier@iro.umontreal.ca>
8963
8964 * Makefile.in (TOOLKIT_DEFINES): Remove.
8965 (LIBW): Use a bit less #if, remove left over OPEN_LOOK stuff.
8966
8967 2008-04-18 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
8968
8969 * Makefile.in (MAC_OBJ): Add mactoolbox.o.
8970 (mactoolbox.o): New target.
8971
8972 * mac.c [MAC_OSX] (select_and_poll_event, sys_select):
8973 Use mac_run_loop_run_once instead of CFRunLoopRunInMode.
8974
8975 * macfns.c (x_set_background_color, mac_window, x_create_tip_frame):
8976 Use mac_set_frame_window_background instead of XSetWindowBackground.
8977 (x_set_tool_bar_lines) [USE_MAC_TOOLBAR]:
8978 Use mac_is_window_toolbar_visible instead of IsWindowToolbarVisible.
8979 (x_set_name_internal) [TARGET_API_MAC_CARBON]: Use mac_set_window_title
8980 instead of SetWindowTitleWithCFString.
8981 (mac_update_proxy_icon) [TARGET_API_MAC_CARBON]: Remove BLOCK_INPUT.
8982 Move function to mactoolbox.c.
8983 (mac_update_title_bar) [TARGET_API_MAC_CARBON]:
8984 Use mac_set_window_modified instead of SetWindowModified.
8985 Add BLOCK_INPUT around mac_set_window_modified/mac_update_proxy_icon.
8986 (mac_window, x_create_tip_frame): Use mac_create_frame_window.
8987 (Fx_focus_frame): Use mac_front_non_floating_window instead of
8988 FrontNonFloatingWindow. Use mac_activate_window instead of
8989 ActivateWindow. Use mac_active_non_floating_window instead of
8990 ActiveNonFloatingWindow.
8991 (show_hourglass, hide_hourglass) [TARGET_API_MAC_CARBON]:
8992 Use mac_show_hourglass and mac_hide_hourglass.
8993 (compute_tip_xy) [TARGET_API_MAC_CARBON]: Use mac_get_global_mouse
8994 instead of GetGlobalMouse.
8995 (Fx_show_tip): Use mac_move_window/mac_size_window/mac_show_window
8996 instead of MoveWindow/SizeWindow/ShowWindow, respectively.
8997 Use mac_bring_window_to_front instead of BringToFront.
8998 (Qfile_name_history) [TARGET_API_MAC_CARBON]: Move extern to
8999 mactoolbox.c.
9000 (Fx_file_dialog) [TARGET_API_MAC_CARBON]: Move function body to
9001 mac_file_dialog in mactoolbox.c. Use mac_file_dialog.
9002 (mac_nav_event_callback) [TARGET_API_MAC_CARBON]: Move function to
9003 mactoolbox.c.
9004
9005 * macgui.h [!HAVE_CARBON]: Include Quickdraw.h instead of QuickDraw.h.
9006 (XtPointer): Move typedef from macmenu.c.
9007 (enum button_type): Move enum from macmenu.c.
9008 (widget_value): Move typedef from macmenu.c.
9009 (M_APPLE, I_ABOUT, EXTRA_STACK_ALLOC, ARGV_STRING_LIST_ID)
9010 (DIALOG_LEFT_MARGIN, DIALOG_TOP_MARGIN, DIALOG_RIGHT_MARGIN)
9011 (DIALOG_BOTTOM_MARGIN, DIALOG_MIN_INNER_WIDTH, DIALOG_MAX_INNER_WIDTH)
9012 (DIALOG_BUTTON_BUTTON_HORIZONTAL_SPACE)
9013 (DIALOG_BUTTON_BUTTON_VERTICAL_SPACE, DIALOG_BUTTON_MIN_WIDTH)
9014 (DIALOG_TEXT_MIN_HEIGHT, DIALOG_TEXT_BUTTONS_VERTICAL_SPACE)
9015 (DIALOG_ICON_WIDTH, DIALOG_ICON_HEIGHT, DIALOG_ICON_LEFT_MARGIN)
9016 (DIALOG_ICON_TOP_MARGIN): Move defines from macmenu.c.
9017 (Selection): Move typedef from macselect.c.
9018 (RAM_TOO_LARGE_ALERT_ID, ABOUT_ALERT_ID) [MAC_OS8]: Move defines from
9019 macterm.c.
9020 (mac_set_window_title, mac_set_window_modified, mac_is_window_visible)
9021 (mac_is_window_collapsed, mac_bring_window_to_front)
9022 (mac_send_window_behind, mac_hide_window, mac_show_window)
9023 (mac_collapse_window, mac_front_non_floating_window)
9024 (mac_active_non_floating_window, mac_activate_window)
9025 (mac_move_window_structure, mac_move_window, mac_size_window)
9026 (mac_get_global_mouse, mac_is_window_toolbar_visible): New defines.
9027
9028 * macmenu.c [!TARGET_API_MAC_CARBON]: Move includes to mactoolbox.c.
9029 (enum mac_menu_kind): Move enum to mactoolbox.c.
9030 (min_menu_id): Move variable to mactoolbox.c.
9031 (quit_dialog_event_loop) [TARGET_API_MAC_CARBON]: Likewise.
9032 (DIALOG_WINDOW_RESOURCE): Move define to mactoolbox.c.
9033 (DIALOG_BUTTON_COMMAND_ID_OFFSET, DIALOG_BUTTON_COMMAND_ID_P)
9034 (DIALOG_BUTTON_COMMAND_ID_VALUE, DIALOG_BUTTON_MAKE_COMMAND_ID)
9035 [TARGET_API_MAC_CARBON]: Likewise.
9036 (XtPointer): Move typedef to macgui.h.
9037 (enum button_type): Move enum to macgui.h.
9038 (widget_value): Move typedef to macgui.h.
9039 (DIALOG_LEFT_MARGIN, DIALOG_TOP_MARGIN, DIALOG_RIGHT_MARGIN)
9040 (DIALOG_BOTTOM_MARGIN, DIALOG_MIN_INNER_WIDTH, DIALOG_MAX_INNER_WIDTH)
9041 (DIALOG_BUTTON_BUTTON_HORIZONTAL_SPACE)
9042 (DIALOG_BUTTON_BUTTON_VERTICAL_SPACE, DIALOG_BUTTON_MIN_WIDTH)
9043 (DIALOG_TEXT_MIN_HEIGHT, DIALOG_TEXT_BUTTONS_VERTICAL_SPACE)
9044 (DIALOG_ICON_WIDTH, DIALOG_ICON_HEIGHT, DIALOG_ICON_LEFT_MARGIN)
9045 (DIALOG_ICON_TOP_MARGIN): Move defines to macgui.h.
9046 (popup_activated_flag): Make variable non-static.
9047 (x_activate_menubar, install_menu_quit_handler, pop_down_menu)
9048 (add_menu_item, fill_menu, dispose_menus):
9049 Move functions to mactoolbox.c.
9050 (restore_show_help_function, menu_target_item_handler)
9051 (install_menu_target_item_handler, mac_handle_dialog_event)
9052 (install_dialog_event_handler, pop_down_dialog, create_and_show_dialog)
9053 [TARGET_API_MAC_CARBON]: Likewise.
9054 (menu_quit_handler) [MAC_OS_X_VERSION_MAX_ALLOWED >= 1030]: Likewise.
9055 (mac_dialog) [!TARGET_API_MAC_CARBON]: Likewise.
9056 (find_and_call_menu_selection, name_is_separator): Make function
9057 non-static.
9058 (Vshow_help_function, timer_check) [TARGET_API_MAC_CARBON]: Move extern
9059 to mactoolbox.c.
9060 (set_frame_menubar): Don't call install_menu_quit_handler.
9061 (menu_item_selection): New variable.
9062 (mac_menu_show): Use create_and_show_popup_menu.
9063 (create_and_show_dialog) [TARGET_API_MAC_CARBON]: Don't return
9064 selection but set variable menu_item_selection. All uses changed.
9065 (mac_fill_menubar): Rename from fill_menubar. All uses changed.
9066 Call install_menu_quit_handler. Move to mactoolbox.c.
9067
9068 * macselect.c [!TARGET_API_MAC_CARBON]: Don't include Scrap.h.
9069 (Selection): Move typedef to macgui.h.
9070 (Vselection_converter_alist, Qmac_scrap_name, Qmac_ostype)
9071 (Vmac_apple_event_map, Qmac_apple_event_class, Qmac_apple_event_id):
9072 Make variables non-static.
9073 (Vmac_dnd_known_types) [TARGET_API_MAC_CARBON]: Likewise.
9074 (mac_handle_apple_event, cleanup_all_suspended_apple_events):
9075 Make functions non-static.
9076 (Vmac_service_selection) [MAC_OSX]: Likewise.
9077 (mac_get_selection_from_symbol, get_flavor_type_from_symbol)
9078 (mac_valid_selection_target_p, mac_clear_selection)
9079 (mac_get_selection_ownership_info, mac_valid_selection_value_p)
9080 (mac_put_selection_value, mac_selection_has_target_p)
9081 (mac_get_selection_value, mac_get_selection_target_list)
9082 (init_apple_event_handler, install_drag_handler, remove_drag_handler):
9083 Move functions to mactoolbox.c.
9084 (mac_do_track_drag, mac_do_receive_drag) [TARGET_API_MAC_CARBON]:
9085 Likewise.
9086 (copy_scrap_flavor_data, mac_handle_service_event)
9087 (install_service_handler) [MAC_OSX]: Likewise.
9088 (syms_of_macselect) <Vmac_dnd_known_types>:
9089 Use mac_dnd_default_known_types.
9090
9091 * macterm.h (FRAME_OUTER_TO_INNER_DIFF_X, FRAME_OUTER_TO_INNER_DIFF_Y):
9092 Move to mactoolbox.c.
9093 (HOURGLASS_WIDTH, HOURGLASS_HEIGHT): Change to 15.
9094 (Fx_selection_owner_p): Add EXFUN.
9095 (install_window_handler, remove_window_handler, XSetWindowBackground):
9096 Remove externs.
9097 (do_apple_menu) [!TARGET_API_MAC_CARBON]: Likewise.
9098 (mac_prepare_for_quickdraw) [USE_CG_DRAWING]: Likewise.
9099 (x_raise_frame, x_lower_frame, mac_alert_sound_play)
9100 (install_application_handler, mac_get_frame_bounds, mac_get_frame_mouse)
9101 (mac_convert_frame_point_to_global, mac_set_frame_window_background)
9102 (mac_update_begin mac_update_end, mac_frame_up_to_date, x_flush)
9103 (mac_create_frame_window, mac_dispose_frame_window, mac_begin_clip)
9104 (mac_end_clip, mac_create_scroll_bar, mac_dispose_scroll_bar)
9105 (mac_set_scroll_bar_bounds, mac_redraw_scroll_bar, mac_fill_menubar)
9106 (create_and_show_popup_menu, mac_get_selection_from_symbol)
9107 (mac_valid_selection_target_p, mac_clear_selection)
9108 (mac_get_selection_ownership_info, mac_valid_selection_value_p)
9109 (mac_put_selection_value, mac_selection_has_target_p)
9110 (mac_get_selection_value, mac_get_selection_target_list): Add externs.
9111 (mac_update_proxy_icon, mac_show_hourglass, mac_hide_hourglass)
9112 (mac_reposition_hourglass, mac_file_dialog, create_and_show_dialog)
9113 (mac_dnd_default_known_types) [TARGET_API_MAC_CARBON]: Likewise.
9114 (mac_run_loop_run_once) [MAC_OSX]: Likewise.
9115 (mac_dialog) [!TARGET_API_MAC_CARBON]: Likewise.
9116 (mac_begin_cg_clip, mac_end_cg_clip) [USE_CG_DRAWING]: Likewise.
9117 (x_set_toolkit_scroll_bar_thumb) [!USE_TOOLKIT_SCROLL_BARS]: Likewise.
9118 (x_scroll_bar_set_handle) [!USE_TOOLKIT_SCROLL_BARS]: Likewise.
9119
9120 * mactoolbox.c: New file.
9121
9122 2008-04-18 Jason Rumney <jasonr@gnu.org>
9123
9124 * dired.c (Ffile_attributes) [WINDOWSNT]: Cast uid and gid to unsigned.
9125
9126 2008-04-18 Stefan Monnier <monnier@iro.umontreal.ca>
9127
9128 * character.c (Fmultibyte_char_to_unibyte):
9129 Return latin1 chars unchanged.
9130
9131 * fileio.c (Fexpand_file_name): Refine last fix so `nm' is only
9132 relocated if it points to `name'.
9133
9134 2008-04-17 Kenichi Handa <handa@m17n.org>
9135
9136 * data.c (Faset): Allow setting a multibyte character in an
9137 ASCII-only unibyte string.
9138
9139 * lisp.h (STRING_SET_MULTIBYTE): New macro.
9140
9141 2008-04-16 Stefan Monnier <monnier@iro.umontreal.ca>
9142
9143 * Makefile.in: Don't use HAVE_GTK and don't -DUSE_GTK since it's now
9144 done in config.h.
9145
9146 2008-04-16 Juanma Barranquero <lekktu@gmail.com>
9147
9148 * character.c (Fchar_bytes, Fchar_width, Fstring_width)
9149 (Fchar_direction): Add usage in the docstring.
9150
9151 2008-04-15 Chong Yidong <cyd@stupidchicken.com>
9152
9153 * keyboard.c (read_key_sequence): Remove always-true checks.
9154
9155 2008-04-14 Jason Rumney <jasonr@gnu.org>
9156
9157 * w32font.c (w32font_open_internal): Set max_bounds.descent in
9158 compatibility struct, for better underline positioning.
9159
9160 2008-04-13 David Hansen <david.hansen@gmx.net>
9161
9162 * dbusbind.c (dbus-get-unique-name): Remove extra copying of name
9163 string.
9164
9165 2008-04-12 Dan Nicolaescu <dann@ics.uci.edu>
9166
9167 * m/hp800.h (XUINT, XSET): Remove.
9168
9169 2008-04-12 Juanma Barranquero <lekktu@gmail.com>
9170
9171 * fileio.c (Fexpand_file_name): Add declaration for `p' missing in
9172 previous change.
9173
9174 2008-04-12 Stefan Monnier <monnier@iro.umontreal.ca>
9175
9176 * fileio.c (Fexpand_file_name): Tighten the scope of `p' and `o' vars.
9177 Relocate `nm' after calling DECODE_FILE, in case the GC was run.
9178
9179 2008-04-11 Stefan Monnier <monnier@iro.umontreal.ca>
9180
9181 * keymap.h (map_keymap_canonical): Declare.
9182 * xmenu.c (single_keymap_panes): Use it.
9183
9184 2008-04-11 Glenn Morris <rgm@gnu.org>
9185
9186 * eval.c (Fdefvaralias): If the alias is bound and the target is not,
9187 set the target's value to that of the alias.
9188
9189 2008-04-11 Stefan Monnier <monnier@iro.umontreal.ca>
9190
9191 * term.c (set_tty_color_mode): Left over typo.
9192
9193 2008-04-10 Michael Albinus <michael.albinus@gmx.de>
9194
9195 * fileio.c (Fmake_symbolic_link): Surround code by #ifdef S_IFLNK
9196 only after check for file name handler functions. Signal, when
9197 native functionality is not supported.
9198 (syms_of_fileio): Declare it unconditionally.
9199
9200 2008-04-10 Jason Rumney <jasonr@gnu.org>
9201
9202 * w32menu.c (is_simple_dialog, simple_dialog_show): New functions.
9203 (Fx_popup_dialog): Handle simple yes/no questions as dialogs.
9204
9205 * w32.c (logon_network_drive): Also logon to remote drives that
9206 are mapped to drive letters.
9207
9208 2008-04-10 Glenn Morris <rgm@gnu.org>
9209
9210 * xdisp.c (truncate-partial-width-windows): Doc fix.
9211
9212 2008-04-10 Stefan Monnier <monnier@iro.umontreal.ca>
9213
9214 * fileio.c (read_file_name_cleanup, Fread_file_name_internal):
9215 Move functions to minibuffer.el.
9216 (syms_of_fileio): Don't declare them.
9217
9218 2008-04-09 Stefan Monnier <monnier@iro.umontreal.ca>
9219
9220 * minibuf.c (Vcompletion_auto_help): Move to minibuffer.el.
9221 (syms_of_minibuf): Remove its initialization.
9222
9223 * minibuf.c (temp_echo_area_glyphs): Remove unused function.
9224
9225 2008-04-09 Juanma Barranquero <lekktu@gmail.com>
9226
9227 * editfns.c (Ffield_string_no_properties): Fix typo in docstring.
9228
9229 2008-04-09 Jason Rumney <jasonr@gnu.org>
9230
9231 * makefile.w32-in (distclean): Delete makefile too.
9232 (maintainer-clean): New target.
9233
9234 * xdisp.c (redisplay_internal) [!WINDOWSNT]: Conditionalize last change.
9235
9236 * w32term.c (w32_compute_glyph_string_overhangs): Compute overhangs
9237 for new font backend and composite cases.
9238
9239 2008-04-09 Jan Djärv <jan.h.d@swipnet.se>
9240
9241 * atimer.c (alarm_signal_handler): Call run_timers if not SYNC_INPUT.
9242 Most of the code moved to run_timers.
9243 (do_pending_atimers): Call run_timers.
9244 (run_timers): New function.
9245
9246 * sysdep.c (emacs_write): If SYNC_INPUT and pending_atimers,
9247 run atimers.
9248
9249 * process.c (wait_reading_process_output): The same as above.
9250
9251 2008-04-09 Stefan Monnier <monnier@iro.umontreal.ca>
9252
9253 * minibuf.c (last_exact_completion): Remove variable.
9254 (Fdelete_minibuffer_contents, do_completion, Fminibuffer_complete)
9255 (complete_and_exit_1, complete_and_exit_2)
9256 (Fminibuffer_complete_and_exit, Fminibuffer_complete_word)
9257 (Fdisplay_completion_list, display_completion_list_1)
9258 (Fminibuffer_completion_help, Fself_insert_and_exit)
9259 (Fexit_minibuffer, Fminibuffer_message): Move functions to
9260 minibuffer.el.
9261 (syms_of_minibuf): Remove corresponding initializations.
9262
9263 * keyboard.c (Qdeactivate_mark): New var.
9264 (command_loop_1): Use it to call `deactivate-mark'.
9265 (syms_of_keyboard): Initialize it.
9266
9267 * xdisp.c (redisplay_internal): Reset tty's color_mode when switching
9268 to another frame.
9269 * frame.c (do_switch_frame): Refine the top_frame/async_visible code.
9270 Don't call set_tty_color_mode.
9271 (store_frame_param): Reset previous_frame rather than call
9272 set_tty_color_mode.
9273 * term.c (set_tty_color_mode): Rewrite.
9274 * dispextern.h (set_tty_color_mode): New type.
9275 * termchar.h (struct tty_display_info): Add `previous_color_mode'.
9276
9277 2008-04-08 Stefan Monnier <monnier@iro.umontreal.ca>
9278
9279 * keymap.c (access_keymap): Remove the value 2 for t_ok which was used
9280 for generic chars, which do not exist any more in emacs-unicode.
9281
9282 2008-04-08 Michael Albinus <michael.albinus@gmx.de>
9283
9284 * coding.c (detect_coding_emacs_mule)
9285 (Ffind_operation_coding_system): Fix typo.
9286
9287 2008-04-08 Jason Rumney <jasonr@gnu.org>
9288
9289 * w32uniscribe.c (SNAME): Extract only symbol name.
9290
9291 * w32font.h (struct w32_metric_cache): New struct.
9292 (w32font_info): Use it.
9293 (W32METRIC_NO_ATTEMPT, W32METRIC_SUCCESS, W32METRIC_FAIL)
9294 (CACHE_BLOCKSIZE): New constants.
9295
9296 * w32font.c (Qja, Qko, Qzh): New symbols.
9297 (syms_of_w32font): Initialise them.
9298 (font_matches_spec): Use them to filter by language.
9299 (recompute_cached_metrics): Remove function.
9300 (compute_metrics, clear_cached_metrics): New functions.
9301 (w32font_encode_char): Use them to manage metric cache.
9302 (w32font_text_extents): Cache metrics for all glyphs on demand.
9303 Delay converting glyph indices to WORD until needed.
9304 (w32font_open_internal): Initialize metric cache to empty.
9305 (registry_to_w32_charset): Charset should always be a symbol.
9306 (fill_in_logfont, list_all_matching_fonts): Family should
9307 always be a symbol.
9308
9309 2008-04-06 Jason Rumney <jasonr@gnu.org>
9310
9311 * w32uniscribe.c (uniscribe_shape): Increase items buffer size.
9312 Give up if glyph indices not supported. Use uniscribe obtained
9313 ABC widths for individual metrics. Map glyph clusters back to
9314 characters using fClusterStart flag. Return number of glyphs
9315 produced, not chars processed.
9316 (uniscribe_shape): Map char at FROM to current glyph.
9317
9318 2008-04-05 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
9319
9320 * macmenu.c (fill_menu) [TARGET_API_MAC_CARBON]:
9321 Use SetMenuItemHierarchicalMenu.
9322
9323 2008-04-05 Jason Rumney <jasonr@gnu.org>
9324
9325 * image.c (pbm_load): Allow color values up to 65535.
9326 Throw an error if max_color_idx is outside the supported range.
9327 Report an error when image size is invalid.
9328 Read two bytes at a time when raw images have max_color_idx above 255.
9329
9330 2008-04-05 Eli Zaretskii <eliz@gnu.org>
9331
9332 * w32.c (readdir): If FindFirstFile/FindNextFile return in
9333 cFileName a file name that includes `?' characters, use the 8+3
9334 alias in cAlternateFileName instead.
9335
9336 2008-04-05 Kenichi Handa <handa@ni.aist.go.jp>
9337
9338 * ccl.c (ccl_driver): If ccl->quit_silently is nonzero, don't
9339 append "CCL: Quitted" when the CCL program is quitted.
9340 (setup_ccl_program): Initialize ccl->quit_silently to zero.
9341
9342 * ccl.h (struct ccl_program): New member quit_silently.
9343
9344 2008-04-05 Chong Yidong <cyd@stupidchicken.com>
9345
9346 * search.c (compile_pattern_1): Treat non-nil and non-string of
9347 search-spaces-regexp as nil.
9348
9349 * minibuf.c (Fassoc_string): Tweak docstring.
9350
9351 2008-04-05 Eli Zaretskii <eliz@gnu.org>
9352
9353 * dired.c (Ffile_attributes): Support inode numbers wider than 32
9354 bits. Remove ugly WINDOWSNT-specific kludge introduced on
9355 2008-03-14 to force inode be positive.
9356
9357 * w32.c (sys_chown, stat, fstat): Use S_* constants instead of
9358 _S_* ones, since we now use our own sys/stat.h.
9359 (stat, fstat): Don't mangle the inode number.
9360 (init_user_info): Don't restrict UID and GID to 0-60000 range.
9361
9362 2008-04-04 Stefan Monnier <monnier@iro.umontreal.ca>
9363
9364 * frame.h (struct frame): Give one more bit to `visible' since we use
9365 values larger than 1 to indicate obscured frames on ttys.
9366
9367 * keymap.c (Qkeymap_canonicalize): New var.
9368 (Fmap_keymap_internal): New fun.
9369 (describe_map): Use keymap-canonicalize.
9370
9371 * undo.c (last_boundary_buffer, last_boundary_position): New vars.
9372 (Fundo_boundary): Set them.
9373 (syms_of_undo): Initialize them.
9374 (record_point): Use them instead of last_point_position*.
9375 (last_undo_buffer): Change type.
9376
9377 2008-04-04 Jason Rumney <jasonr@gnu.org>
9378
9379 * w32font.c (w32font_text_extents): Use font's ascent and descent.
9380 (recompute_cached_metrics): Don't set ascent and descent per char.
9381
9382 * w32uniscribe.c (uniscribe_check_otf): Fix last change.
9383 (uniscribe_check_otf): Add GC protection before consing.
9384 Rearrange loop for counting features.
9385
9386 2008-04-03 Stefan Monnier <monnier@iro.umontreal.ca>
9387
9388 * insdel.c (insert_from_buffer_1): Don't compare bytes in destination
9389 buffer with byte-size of source buffer.
9390
9391 2008-04-03 Chong Yidong <cyd@stupidchicken.com>
9392
9393 * callint.c (Fcall_interactively): Handle temporary region even
9394 when shift-select-mode is off.
9395
9396 2008-04-03 Jason Rumney <jasonr@gnu.org>
9397
9398 * w32uniscribe.c (uniscribe_check_otf): Sanity check otf_spec.
9399
9400 2008-04-03 Kenichi Handa <handa@m17n.org>
9401
9402 * coding.c (CATEGORY_MASK_ANY): Add CATEGORY_MASK_UTF_16_AUTO.
9403 (CATEGORY_MASK_UTF_16): Likewise.
9404 (detect_coding_utf_16): Add heuristics to reject utf-16 for a
9405 binary file.
9406 (detect_coding): Add null-byte detection for a binary file.
9407 (detect_coding_system): Likewise.
9408
9409 2008-04-03 Jason Rumney <jasonr@gnu.org>
9410
9411 * w32uniscribe.c: New file.
9412
9413 * font.h (uniscribe_font_driver) [WINDOWSNT]: Declare for w32fns.c.
9414
9415 * w32font.h (uniscribe_check_otf): Declare for w32font.c.
9416
9417 * w32font.c (Qbalinese, Qbuginese, Qbuhid, Qcuneiform, Qcypriot)
9418 (Qdeseret, Qglagolitic, Qgothic, Qhanunoo, Qkharoshthi)
9419 (Qlimbu, Qlinear_b, Qold_italic, Qold_persian, Qosmanya)
9420 (Qphags_pa, Qphoenician, Qshavian, Qsyloti_nagri)
9421 (Qtagalog, Qtagbanwa, Qtai_le, Qtifinagh, Qugaritic)
9422 (Qphonetic): New symbols.
9423 (syms_of_w32font): Initialize them.
9424 (font_supported_scripts): Use them.
9425 (w32font_list_family): List all charsets.
9426 (w32font_text_extents, recompute_cached_metrics): Fix metric
9427 calculations.
9428 (w32_enumfont_pattern_entity): Make full_type a DWORD.
9429 Give opentype fonts their own format.
9430 (font_matches_spec): New arguments backend and logfont.
9431 Handle :otf spec for uniscribe backend.
9432 (add_font_entity_to_list): Match truetype fonts in uniscribe backend.
9433 (fill_in_logfont): Use DEFAULT_CHARSET when charset not supplied.
9434
9435 * w32fns.c (Fx_create_frame): Conditionally register uniscribe
9436 font backend.
9437 (globals_of_w32fns): Initialize uniscribe font backend.
9438
9439 * makefile.w32-in (CONFIG_H): New variable. Use it to clean up
9440 dependencies.
9441 (w32uniscribe.$(O)): New file to build.
9442 (FONT_OBJ): Include w32uniscribe.$(O).
9443 (LIBS): Add uniscribe libraries.
9444
9445 * ftfont.c (ftfont_get_open_type_spec): Check spec->script, not val.
9446
9447 2008-04-02 Chong Yidong <cyd@stupidchicken.com>
9448
9449 * callint.c (Vshift_select_mode): New var.
9450 (Finteractive): Document new ^ spec.
9451 (Fcall_interactively): Call handle-shift-selection if the ^ spec
9452 is present.
9453
9454 * keyboard.c (Vthis_command_keys_shift_translated): New var.
9455 (command_loop_1): Avoid running the direct display versions of
9456 forward-char and backward-char if shift-selection may occur.
9457 (read_key_sequence): Set Vthis_command_keys_shift_translated if
9458 shift-translation takes place.
9459
9460 * buffer.c (Vtransient_mark_mode): Move docstring to simple.el to
9461 avoid clobbering by define-minor-mode.
9462
9463 * cmds.c (Fforward_char, Fbackward_char, Fforward_line)
9464 (Fbeginning_of_line, Fend_of_line): Add ^ interactive spec.
9465
9466 * syntax.c (Fforward_word): Add ^ interactive spec.
9467
9468 * window.c (Fscroll_up, Fscroll_down, Fscroll_left)
9469 (Fscroll_right): Add ^ interactive spec.
9470
9471 2008-04-01 Stefan Monnier <monnier@iro.umontreal.ca>
9472
9473 * xdisp.c (try_window_id): Don't forget to reset delta_bytes.
9474
9475 * casefiddle.c (casify_object): Fix up int/EMACS_INT mixup.
9476
9477 * charset.c (Funibyte_charset, Fset_unibyte_charset): Remove.
9478
9479 2008-03-31 Juri Linkov <juri@jurta.org>
9480
9481 * window.c (Fdisplay_buffer): Reinitialize `tem' to nil.
9482
9483 2008-03-30 Jan Djärv <jan.h.d@swipnet.se>
9484
9485 * gtkutil.c (xg_set_geometry): Fix indentation.
9486 (xg_resize_outer_widget): Remove.
9487 (x_wm_size_hint_off): Fix indentation.
9488 (xg_frame_set_char_size): Call flush_and_sync after
9489 gtk_window_resize.
9490 (x_wm_set_size_hint): Pass NULL as geometry window to
9491 gtk_window_set_geometry_hints due to Gtk+ bug nr 68668.
9492 Add menu bar and tool bar height to base height.
9493 (xg_update_frame_menubar, free_frame_menubar)
9494 (xg_tool_bar_detach_callback, xg_tool_bar_attach_callback)
9495 (update_frame_tool_bar, free_frame_tool_bar):
9496 Change xg_resize_outer_widget to xg_frame_set_char_size.
9497
9498 2008-03-30 Michael Albinus <michael.albinus@gmx.de>
9499
9500 * dbusbind.c (QCdbus_timeout): New D-Bus internal symbol.
9501 (Fdbus_call_method): New parameter TIMEOUT.
9502 (dbus-send-signal): Optimize UNGCPRO call.
9503
9504 2008-03-29 Juri Linkov <juri@jurta.org>
9505
9506 * window.c (Fdisplay_buffer): Move call to
9507 Vsplit_window_preferred_function out of conditions that check
9508 if window is eligible for vertical splitting.
9509 When Vsplit_window_preferred_function is non-nil, call it and use
9510 its non-nil return value as window. Otherwise, continue doing
9511 vertical splitting using Fsplit_window with arg horflag=nil.
9512 (syms_of_window) <Vsplit_window_preferred_function>: Change the
9513 default value from `split-window' to nil.
9514
9515 2008-03-29 Juri Linkov <juri@jurta.org>
9516
9517 * callint.c (Fcall_interactively): Revert 2008-03-16 change
9518 for interactive code letters 'b' and 'B'.
9519
9520 2008-03-29 Eli Zaretskii <eliz@gnu.org>
9521
9522 * fileio.c (Fexpand_file_name): Convert the value of $HOME to a
9523 multibyte string.
9524
9525 2008-03-29 Stefan Monnier <monnier@iro.umontreal.ca>
9526
9527 * keyboard.c (pending_funcalls): New var.
9528 (timer_check): Run it.
9529 (syms_of_keyboard): Initialize it.
9530 * terminal.c (Qrun_hook_with_args, Qdelete_terminal_functions)
9531 (Vdelete_terminal_functions): New vars.
9532 (syms_of_terminal): Initialize them.
9533 (Fdelete_terminal): Run delete-terminal-functions.
9534 * xdisp.c (safe_eval): Rewrite.
9535 (safe_call2): New fun.
9536 * frame.c (Qdelete_frame_functions): New var.
9537 (syms_of_frame): Initialize it.
9538 (Fdelete_frame): Use it and use safe_call2 and pending_funcalls.
9539 * lisp.h (safe_call2, pending_funcalls): Declare.
9540
9541 2008-03-28 Andreas Schwab <schwab@suse.de>
9542
9543 * indent.c (Fmove_to_column): Move declaration before statements.
9544
9545 2008-03-27 Stefan Monnier <monnier@iro.umontreal.ca>
9546
9547 * frame.h (enum fullscreen_type): Give it a name. Move it before use.
9548 (struct frame): Use bit fields for boolean vars.
9549
9550 * process.c (server_accept_connection): Simplify naming.
9551 (emacs_get_tty_pgrp): Use SDATA.
9552
9553 * coding.c (decode_coding_object): Fix last change.
9554
9555 2008-03-27 Jason Rumney <jasonr@gnu.org>
9556
9557 * w32fns.c (start_hourglass): Suppress hourglass on tty frames.
9558
9559 2008-03-27 Kenichi Handa <handa@ni.aist.go.jp>
9560
9561 * charset.c (Fdefine_charset_internal): Change the way of
9562 registering charsets in Vcharset_order_list.
9563 (syms_of_charset): Make the charset `eight-bit' supplementary.
9564
9565 2008-03-26 Alexandre Oliva <aoliva@redhat.com> (tiny change)
9566
9567 * regex.c (EXTEND_BUFFER): Change order of pointer addition
9568 operations, to avoid having the difference between pointers
9569 overflow.
9570
9571 2008-03-26 Stefan Monnier <monnier@iro.umontreal.ca>
9572
9573 * indent.c (check_display_width): New fun.
9574 (scan_for_column): Use it.
9575
9576 * data.c (syms_of_data): Mark most-positive-fixnum and
9577 most-negative-fixnum as constants.
9578
9579 * xdisp.c (redisplay_internal): Reset selected_frame earlier.
9580
9581 * indent.c (scan_for_column): Extract from current_column_1.
9582 Merge with the same code from Fmove_to_column.
9583 (current_column_1, Fmove_to_column): Use it.
9584
9585 2008-03-25 Stefan Monnier <monnier@iro.umontreal.ca>
9586
9587 * keymap.c (map_keymap_internal): New fun.
9588 (map_keymap): Use it.
9589 (Fmap_keymap_internal): New fun.
9590 (Fmap_keymap): Remove left-out test from before make_save_value.
9591
9592 * keymap.c (Fmap_keymap): Use `map-keymap-sorted.
9593
9594 * frame.c (Fmodify_frame_parameters, x_set_frame_parameters):
9595 Use XCAR/XCDR.
9596
9597 * process.h (struct Lisp_Process): Remove filter_multibyte.
9598 * process.c (QCfilter_multibyte): Remove.
9599 (setup_process_coding_systems): Don't use filter_multibyte.
9600 (Fstart_process, Fmake_network_process): Don't set filter_multibyte.
9601 (read_process_output): Don't adjust multibyteness to filter_multibyte.
9602 (Fset_process_filter_multibyte): Change the coding-system to
9603 approximate the previous behavior.
9604 (Fprocess_filter_multibyte_p): Get the multibyteness straight from the
9605 coding-system.
9606
9607 * coding.c (decode_coding_object): When not decoding into a buffer,
9608 obey the coding system's preference of (uni|multi)byte.
9609
9610 2008-03-24 Stefan Monnier <monnier@iro.umontreal.ca>
9611
9612 * casefiddle.c (casify_object): Avoid pathological N^2 worst case if
9613 every char is changed and has a different byte-length.
9614 (Fupcase_word, Fdowncase_word, Fcapitalize_word, operate_on_word):
9615 Fix int -> EMACS_INT.
9616
9617 2008-03-23 David Hansen <david.hansen@gmx.net>
9618
9619 * dbusbind.c (xd_read_message): Remove extra copying of message
9620 strings. Check for NULL `interface' or `member'.
9621
9622 2008-03-22 Eli Zaretskii <eliz@gnu.org>
9623
9624 * w32.c (readdir): If FindFirstFile/FindNextFile return in
9625 cFileName a file name that includes `?' characters, use the 8+3
9626 alias in cAlternateFileName instead.
9627
9628 2008-03-21 Stefan Monnier <monnier@iro.umontreal.ca>
9629
9630 * buffer.c (enlarge_buffer_text): Fix int -> EMACS_INT.
9631
9632 2008-03-20 Stefan Monnier <monnier@iro.umontreal.ca>
9633
9634 * intervals.c (temp_set_point, temp_set_point_both): Use EMACS_INT.
9635 (set_point, set_point_both): Use EMACS_INT. Remove `buffer' arg,
9636 work on current_buffer only instead (that was already the case
9637 for some of the code anyway).
9638 * buffer.h (set_point, set_point_both): Remove buffer arg, use long int.
9639 (temp_set_point, temp_set_point_both): Use EMACS_INT.
9640 (SET_PT, SET_PT_BOTH): Adjust.
9641 * intervals.h (set_point, temp_set_point, set_point_both)
9642 (temp_set_point_both): Remove redundant declarations.
9643
9644 2008-03-20 Stefan Monnier <monnier@iro.umontreal.ca>
9645
9646 * fileio.c (Finsert_file_contents):
9647 * lread.c (Feval_buffer): Use BUF_TEMP_SET_PT.
9648 * buffer.h (BUF_SET_PT): Remove. set_point_both doesn't work right
9649 when buffer != current_buffer anyway.
9650
9651 2008-03-20 Andreas Schwab <schwab@suse.de>
9652
9653 * callint.c (Fcall_interactively) [case 'B']: Use other-buffer
9654 as default.
9655
9656 2008-03-19 Jason Rumney <jasonr@gnu.org>
9657
9658 * w32fns.c (hourglass_timer, hourglass_hwnd): New variables.
9659 (syms_of_w32fns): Initialize them.
9660 (HOURGLASS_ID): New constant.
9661 (x_window_to_frame): Don't check hourglass_window.
9662 (w32_wnd_proc) <WM_TIMER>: Handle hourglass_timer.
9663 (w32_wnd_proc) <WM_EXITMENULOOP>: Set pending hourglass cursor.
9664 (w32_wnd_proc) <WM_SETCURSOR>: Set the hourglass or current cursor.
9665 (w32_wnd_proc) <WM_EMACS_SETCURSOR>: Set frame's current_cursor.
9666 Only change the cursor if hourglass is not active.
9667 (Fx_create_frame): Initialize frame's current_cursor.
9668 (hourglass_atimer): Remove.
9669 (hourglass_started): New function.
9670 (start_hourglass, cancel_hourglass, hide_hourglass): Adapt to w32.
9671 (show_hourglass): Adapt to w32, changing argument to frame.
9672
9673 * w32term.h (struct w32_output): Remove hourglass_window.
9674 Add current_cursor.
9675
9676 * eval.c (call_debugger, Fsignal):
9677 * keyboard.c (recursive_edit_1, cmd_error, Ftop_level)
9678 (command_loop_1, Fread_key_sequence, Fread_key_sequence_vector)
9679 (Fexecute_extended_command, cancel_hourglass_unwind):
9680 * minibuf.c (read_minibuf):
9681 * fns.c (Fy_or_n_p): Enable hourglass when HAVE_WINDOW_SYSTEM.
9682
9683 2008-03-19 Stefan Monnier <monnier@iro.umontreal.ca>
9684
9685 * window.c (run_funs): New fun.
9686 (run_window_configuration_change_hook): Use it to run the buffer-local
9687 and the global part of the hook.
9688
9689 * xdisp.c (format_mode_line_unwind_data): Add window argument.
9690 (unwind_format_mode_line): Restore selected window.
9691 (x_consider_frame_title, Fformat_mode_line): Set selected window.
9692
9693 2008-03-17 Stefan Monnier <monnier@iro.umontreal.ca>
9694
9695 * editfns.c (Fchar_equal): Check they are valid characters.
9696
9697 * buffer.h (Fbuffer_list): Declare (for use in callint.c).
9698
9699 2008-03-17 Andreas Schwab <schwab@suse.de>
9700
9701 * regex.c (re_match_2_internal): Properly match raw 8-bit bytes
9702 against a charset.
9703
9704 * lisp.h (Fbuffer_list): Declare.
9705
9706 2008-03-17 Jan Djärv <jan.h.d@swipnet.se>
9707
9708 * gtkutil.c (free_frame_tool_bar): Only call gtk_container_remove if
9709 handlebox_widget is != 0.
9710
9711 2008-03-16 Juri Linkov <juri@jurta.org>
9712
9713 * callint.c (Fcall_interactively): For interactive code letters
9714 'b' and 'B' put the buffer list into the list of default "future"
9715 values of the minibuffer.
9716
9717 2008-03-16 Andreas Schwab <schwab@suse.de>
9718
9719 * keyboard.c (read_key_sequence): Fix downcasing of letters with
9720 modifiers.
9721
9722 * regex.c (re_match_2_internal): Correct matching of a charset
9723 against latin-1 characters.
9724
9725 2008-03-16 Kenichi Handa <handa@m17n.org>
9726
9727 * coding.c (CHAR_STRING_ADVANCE_NO_UNIFY)
9728 (STRING_CHAR_ADVANCE_NO_UNIFY): New macros.
9729 (coding_alloc_by_making_gap): Fix the way to preserve data in the gap.
9730 (alloc_destination): Fix the 2nd arg to coding_alloc_by_making_gap.
9731 (encode_coding_utf_8): Use CHAR_STRING_ADVANCE_NO_UNIFY instead of
9732 CHAR_STRING_ADVANCE.
9733 (produce_chars): Fix for the case that the source and the
9734 destination are the same buffer. Use CHAR_STRING_ADVANCE_NO_UNIFY
9735 instead of CHAR_STRING_ADVANCE.
9736 (consume_chars): Use STRING_CHAR_ADVANCE_NO_UNIFY instead of
9737 STRING_CHAR_ADVANCE.
9738
9739 2008-03-15 Andreas Schwab <schwab@suse.de>
9740
9741 * regex.c (re_match_2_internal): Correct matching of eight bit
9742 characters in unibyte strings.
9743
9744 2008-03-15 Martin Rudalics <rudalics@gmx.at>
9745
9746 * buffer.c (overlays_in, Foverlays_in): Include empty overlays
9747 at end of range when it coincides with the end of the buffer.
9748
9749 2008-03-14 Eli Zaretskii <eliz@gnu.org>
9750
9751 * dired.c (Ffile_attributes) [WINDOWSNT]: Force inode be positive.
9752
9753 * w32fns.c (globals_of_w32fns, Fx_create_frame): Fix last change.
9754
9755 2008-03-14 Jason Rumney <jasonr@gnu.org>
9756
9757 * editfns.c (initial_tz): New variable.
9758 (syms_of_editfns): Initialize it.
9759 (Fset_time_zone_rule): Set it when first called.
9760 Use it when TZSTRING is nil.
9761
9762 * w32fns.c (MONITOR_DEFAULT_TO_NEAREST, struct MONITOR_INFO)
9763 (MonitorFromPoint_Proc, GetMonitorInfo_Proc): New definitions.
9764 (monitor_from_point_fn, get_monitor_info_fn): New globals.
9765 (globals_of_w32fns): Initialize them.
9766 (compute_tip_xy): Use them to position tooltips.
9767
9768 2008-03-14 Glenn Morris <rgm@gnu.org>
9769
9770 * emacs.c (main): Revert previous change.
9771 (standard_args): Revert -internal-script back to -scriptload,
9772 and remove the long-option form.
9773
9774 2008-03-13 Glenn Morris <rgm@gnu.org>
9775
9776 * emacs.c (main, standard_args): Rename -scriptload to -internal-script.
9777 Remove option -enable-font-backend.
9778
9779 2008-03-12 Stefan Monnier <monnier@iro.umontreal.ca>
9780
9781 * buffer.c (Fswitch_to_buffer): Fall back on pop-to-buffer.
9782
9783 2008-03-11 Jan Djärv <jan.h.d@swipnet.se>
9784
9785 * xterm.c (x_connection_closed): For GTK: If this is the last
9786 terminal just exit without closing the display.
9787
9788 2008-03-11 Jason Rumney <jasonr@gnu.org>
9789
9790 * w32font.c (w32font_full_name): Use floor to round.
9791
9792 2008-03-10 Dhruva Krishnamurthy <dhruvakm@gmail.com> (tiny change)
9793
9794 * sound.c (alsa_configure): Declare vol at beginning of block.
9795
9796 * fontset.c (Ffontset_info): Remove extra semicolon.
9797
9798 2008-03-10 Stefan Monnier <monnier@iro.umontreal.ca>
9799
9800 * fileio.c (Fsubstitute_in_file_name): Fix up computation of maximum
9801 size of resulting string.
9802
9803 2008-03-10 Jason Rumney <jasonr@gnu.org>
9804
9805 * dispnew.c (adjust_glyph_matrix): Initialize window_height.
9806
9807 2008-03-10 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
9808
9809 * xdisp.c (handle_single_display_spec): Undo 2007-10-16 changes.
9810 Don't pretend as if characters with display property haven't been
9811 consumed for string-replacing-string case.
9812
9813 2008-03-08 Kim F. Storm <storm@cua.dk>
9814
9815 * xdisp.c (GET_NEXT_DISPLAY_ELEMENT): New macro.
9816 (get_next_display_element, next_element_from_string)
9817 (next_element_from_ellipsis, next_element_from_buffer): Use it.
9818
9819 2008-03-08 Andreas Schwab <schwab@suse.de>
9820
9821 * process.h (struct Lisp_Process): Declare bit fields as unsigned.
9822
9823 2008-03-06 Jason Rumney <jasonr@gnu.org>
9824
9825 * w32font.c (w32_registry): Take font_type argument. Use ANSI
9826 when charset not specified. Only translate ANSI to unicode when
9827 font_type is truetype.
9828 (w32font_coverage_ok): New function.
9829 (add_font_entity_to_list): Use it to filter unsuitable fonts.
9830
9831 2008-03-05 Kenichi Handa <handa@ni.aist.go.jp>
9832
9833 * lread.c (Fread_char): Resolve modifiers.
9834 (Fread_char_exclusive): Likewise.
9835
9836 * character.c (char_resolve_modifier_mask): New function.
9837 (char_string): Use char_resolve_modifier_mask.
9838 (Fchar_resolve_modifiers): New function.
9839 (syms_of_character): Declare Fchar_resolve_modifiers as Lisp
9840 function.
9841
9842 2008-03-04 Jason Rumney <jasonr@gnu.org>
9843
9844 * makefile.w32-in: Always include w32font.c in the build.
9845 * w32font.c: Wrap in USE_FONT_BACKEND conditional.
9846
9847 2008-03-04 Andreas Schwab <schwab@suse.de>
9848
9849 * Makefile.in (clean): Remove emacs-*.*.* instead of emacs-*.
9850 (versionclean): Likewise.
9851
9852 2008-03-04 Juanma Barranquero <lekktu@gmail.com>
9853
9854 * .cvsignore: Add oo.
9855
9856 2008-03-03 Andreas Schwab <schwab@suse.de>
9857
9858 * coding.c (decode_coding_object): Inhibit gap shrinking while
9859 decoding in place.
9860
9861 2008-03-03 Dan Nicolaescu <dann@ics.uci.edu>
9862
9863 * w32term.c: Remove unused include "gnu.h".
9864 * makefile.w32-in (w32term.o): Don't depend on gnu.h.
9865
9866 * gnu.h: Rename to ...
9867 * emacs-icon.h: ... this.
9868 * xterm.c: Use emacs-icon.h instead of gnu.h.
9869 * Makefile (xterm.o): Depend on emacs-icon.h, not gnu.h.
9870
9871 2008-03-03 Juanma Barranquero <lekktu@gmail.com>
9872
9873 * w32font.c: Include math.h.
9874
9875 2008-03-03 Jason Rumney <jasonr@gnu.org>
9876
9877 * w32font.c (recompute_cached_metrics): Change font arg to w32font_info.
9878 Compute options separately.
9879 (w32font_open_internal): Set glyph_idx before caching metrics.
9880
9881 * w32font.h (NTM_PS_OPENTYPE, NTM_TT_OPENTYPE, NTM_TYPE1):
9882 Define if system headers don't.
9883 (struct w32font_info): Enlarge ascii_metrics. Add glyph_idx.
9884 (w32font_encode_char): Don't declare here.
9885
9886 * w32font.c (Quniscribe, QCformat): New symbols.
9887 (syms_of_w32font): Define them.
9888 (w32font_has_char): Indicate uncertainty.
9889 (w32font_encode_char): Encode as glyph point. Make static.
9890 (recompute_cached_metrics): New function.
9891 (w32font_open_internal): Use it. Set font to use glyph points
9892 initially. Set format based on type of font.
9893 (w32font_text_extents, w32font_draw): Optionally use glyph points.
9894 (w32_enumfont_pattern_entity): Accept backend arg. Set type based
9895 on it. Set format based on information available here.
9896 (add_font_entity_to_list): Identify backend based on opentype_only.
9897
9898 2008-03-02 Andreas Schwab <schwab@suse.de>
9899
9900 * ftfont.c (ftfont_pattern_entity): Fix aliasing violations.
9901
9902 * coding.c (decode_coding_big5, produce_chars):
9903 Fix typos in last change.
9904
9905 2008-03-02 Kentaro Ohkouchi <nanasess@fsm.ne.jp>
9906
9907 * gnu.h: New icon.
9908
9909 2008-03-02 Kenichi Handa <handa@m17n.org>
9910
9911 * coding.c (decode_coding_utf_8): When eol-type of CODING is
9912 `dos', don't decode '\r' if that is the last in the source.
9913 (decode_coding_utf_16, decode_coding_emacs_mule)
9914 (decode_coding_iso_2022, decode_coding_sjis, decode_coding_big5)
9915 (decode_coding_raw_text, decode_coding_charset): Likewise.
9916 (produce_chars): Don't decode EOL here. Use EMACS_INT.
9917
9918 2008-03-01 Jason Rumney <jasonr@gnu.org>
9919
9920 * w32font.c (w32font_full_name): Report point size for scalable fonts.
9921
9922 2008-03-01 Kim F. Storm <storm@cua.dk>
9923
9924 * dispextern.h (CHAR_GLYPH_SPACE_P): Check for default face.
9925
9926 2008-03-01 Jason Rumney <jasonr@gnu.org>
9927
9928 * w32font.c (w32font_full_name): New function.
9929 (w32font_open_internal): Use it.
9930
9931 2008-03-01 Kim F. Storm <storm@cua.dk>
9932
9933 * dispnew.c (line_draw_cost): Fix invalid glyph check.
9934
9935 2008-03-01 Jason Rumney <jasonr@gnu.org>
9936
9937 * font.c (font_unparse_fcname): Increase len when style is a symbol.
9938
9939 2008-03-01 Jan Djärv <jan.h.d@swipnet.se>
9940
9941 * xterm.c (handle_one_xevent): For Gtk+ and ConfigureNotify, call
9942 xg_frame_resized when the event is for the edit widget.
9943
9944 * gtkutil.h (xg_frame_resized): Renamed from xg_resize_widgets.
9945
9946 * gtkutil.c (xg_resize_outer_widget): Only do one of set_geometry or
9947 set_char_size.
9948 (xg_frame_resized): Renamed from xg_resize_widgets. Remove all
9949 operations on widgets here. Just set frame size if needed.
9950 (flush_and_sync, x_wm_size_hint_off, xg_pack_tool_bar): New functions.
9951 (xg_frame_set_char_size): Call x_wm_size_hint_off before resizing.
9952 (x_wm_set_size_hint): Set size hints on the edit widget only, not
9953 the whole frame.
9954 (xg_create_tool_bar): Move attachment of the tool bar to
9955 xg_pack_tool_bar. Do not attach the tool bar if there are no items.
9956 (free_frame_tool_bar): Remove call to SET_FRAME_GARBAGED.
9957
9958 2008-03-01 Jason Rumney <jasonr@gnu.org>
9959
9960 * w32fns.c (w32_msg_pump): Disable debug code.
9961
9962 2008-03-01 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
9963
9964 * m/intel386.h [MAC_OSX || DARWIN]: Define NO_ARG_ARRAY if _LP64.
9965
9966 2008-02-29 Chong Yidong <cyd@stupidchicken.com>
9967
9968 * xdisp.c (next_overlay_string): Don't set
9969 overlay_strings_at_end_processed_p if we're currently reading from
9970 a display string.
9971
9972 2008-02-29 Stefan Monnier <monnier@iro.umontreal.ca>
9973
9974 * xdisp.c (get_overlay_strings_1): Fix typo.
9975
9976 2008-02-29 Chong Yidong <cyd@stupidchicken.com>
9977
9978 * xdisp.c (get_overlay_strings_1): Add missing argument type.
9979
9980 2008-02-28 Kenichi Handa <handa@ni.aist.go.jp>
9981
9982 * ftfont.c (ftfont_match): Explicitly set pixelsize in pattern.
9983
9984 * xdisp.c (display_mode_element): Cancel the previous change.
9985 (decode_mode_spec): Likewise.
9986 (handle_auto_composed_prop): Don't make composition if it->string
9987 is a string.
9988
9989 2008-02-27 Kim F. Storm <storm@cua.dk>
9990
9991 * lisp.h (GLYPH): Change type from int to struct with separate char
9992 and face_id members.
9993 (GLYPH_MASK_FACE, GLYPH_MASK_CHAR): Delete macros.
9994 (GLYPH_CHAR, GLYPH_FACE): Remove slow versions with frame arg.
9995 (FAST_GLYPH_CHAR, FAST_GLYPH_FACE): Rename macros to ...
9996 (GLYPH_CHAR, GLYPH_FACE): ... these. Change users.
9997 (FAST_MAKE_GLYPH, MAKE_GLYPH): Remove. Rewrite users to use ...
9998 (SET_GLYPH, SET_GLYPH_CHAR, SET_GLYPH_FACE): ... these macros instead.
9999 (GLYPH_CODE_CHAR, GLYPH_CODE_FACE, GLYPH_CODE_P)
10000 (GLYPH_CODE_CHAR_VALID_P, SET_GLYPH_FROM_GLYPH_CODE): New macros to
10001 handle new Lisp glyph code encoding, either an integer or a cons.
10002
10003 * disptab.h (GLYPH_SIMPLE_P): Rewrite.
10004 (GLYPH_ALIAS): Delete.
10005 (GLYPH_ALIAS_P, GLYPH_FOLLOW_ALIASES): Rewrite.
10006 (GLYPH_LENGTH, GLYPH_STRING): Use GLYPH_CHAR.
10007 (GLYPH_FROM_CHAR): Replace macro by ...
10008 (SET_GLYPH_FROM_CHAR): ... this macro. Change users.
10009
10010 * dispextern.h (CHAR_GLYPH_SPACE_P): Simplify.
10011 (GLYPH_FROM_CHAR_GLYPH): Replace macro by ...
10012 (SET_GLYPH_FROM_CHAR_GLYPH): ... this macro. Change users.
10013 (GLYPH_INVALID_P): New macro.
10014 (spec_glyph_lookup_face): Update prototype.
10015
10016 * dispnew.c (line_draw_cost): Adapt to new glyph type.
10017 (build_frame_matrix_from_leaf_window): Adapt to new glyph type and
10018 new glyph code encoding.
10019 (spec_glyph_lookup_face): No return value; update passed glyph instead.
10020 (init_display): Use SET_CHAR_GLYPH to initialize space_glyph.
10021
10022 * xdisp.c (get_next_display_element, next_element_from_display_vector):
10023 Adapt to new glyph type and new glyph code encoding.
10024
10025 * term.c (encode_terminal_code, produce_special_glyphs): Likewise.
10026
10027 * indent.c (current_column, current_column_1, Fmove_to_column)
10028 (compute_motion): Adapt to new glyph code encoding.
10029
10030 * msdos.c (IT_write_glyphs): Adapt to new glyph type.
10031
10032 2008-02-27 Chong Yidong <cyd@stupidchicken.com>
10033
10034 * process.c (wait_reading_process_output): Check for window
10035 changes caused by timers.
10036 Suggested by Johan Bockgård.
10037
10038 2008-02-27 Glenn Morris <rgm@gnu.org>
10039
10040 * emacs.c (USAGE1): Add `--disable-font-backend'.
10041
10042 2008-02-27 Stefan Monnier <monnier@iro.umontreal.ca>
10043
10044 * fileio.c (Finsert_file_contents): Don't reset undo_list if no change
10045 is made to the buffer.
10046
10047 2008-02-26 Stefan Monnier <monnier@iro.umontreal.ca>
10048
10049 * dispextern.h (face_at_buffer_position, face_for_overlay_string)
10050 (face_at_string_position):
10051 * xfaces.c (face_at_buffer_position, face_for_overlay_string)
10052 (face_at_string_position):
10053 * xdisp.c (display_string, next_overlay_change):
10054 * buffer.h (overlays_at):
10055 * buffer.c (overlays_at): Use EMACS_INT for buffer positions.
10056 Update callers.
10057
10058 2008-02-26 Chong Yidong <cyd@stupidchicken.com>
10059
10060 * editfns.c (Fformat): Doc fix.
10061
10062 2008-02-26 Juanma Barranquero <lekktu@gmail.com>
10063
10064 * font.c (Ffont_spec, Ffont_at): Fix typos in docstrings.
10065 (Ffont_put, Flist_families, Ffont_fill_gstring, Ffont_drive_otf)
10066 (Ffont_otf_alternates, Fquery_font): Doc fixes.
10067
10068 2008-02-25 Stefan Monnier <monnier@iro.umontreal.ca>
10069
10070 * buffer.c (Fbuffer_swap_text): New function.
10071 (syms_of_buffer): Defsubr it.
10072
10073 2008-02-25 Chong Yidong <cyd@stupidchicken.com>
10074
10075 * keyboard.c (command_loop_1): Revert 2006-10-09 change.
10076
10077 2008-02-25 Jason Rumney <jasonr@gnu.org>
10078
10079 * w32font.c (w32font_draw): Draw one character at a time when padding.
10080
10081 2008-02-25 Stefan Monnier <monnier@iro.umontreal.ca>
10082
10083 * window.c (Fdelete_window, Fadjust_window_trailing_edge):
10084 Handle a nil arg. Use run_window_configuration_change_hook.
10085 (delete_window, adjust_window_trailing_edge): Don't handle nil any more.
10086 (Fenlarge_window, Fshrink_window, Fset_window_configuration):
10087 Use run_window_configuration_change_hook.
10088
10089 2008-02-25 Kenichi Handa <handa@ni.aist.go.jp>
10090
10091 * xdisp.c (x_produce_glyphs): For a visible glyph, assure at least
10092 1-pixel width.
10093
10094 2008-02-25 Kenichi Handa <handa@ni.aist.go.jp>
10095
10096 * xdisp.c (fill_glyph_string): Pay attention to glyph->padding_p.
10097 (append_glyph): Set glyph->pixel_width and glyph->padding_p to 1
10098 if the glyph in the font is zero pixel with.
10099
10100 * dispextern.h (struct glyph_string): New member padding_p.
10101
10102 * w32font.c (w32font_draw): Pay attention to s->padding_p.
10103
10104 * ftxfont.c (ftxfont_draw): Pay attention to s->padding_p.
10105
10106 * xfont.c (xfont_draw): Pay attention to s->padding_p.
10107
10108 * xftfont.c (xftfont_draw): Pay attention to s->padding_p.
10109
10110 * font.c: If the font driver doesn't have `shape' function, return Qnil.
10111
10112 2008-02-25 Jason Rumney <jasonr@gnu.org>
10113
10114 * w32fns.c (enum_font_cb2): Don't use raster fonts for Unicode.
10115
10116 2008-02-24 Stefan Monnier <monnier@iro.umontreal.ca>
10117
10118 Allow fine-grained image-cache flushing.
10119 * dispextern.h (struct image): Add `dependencies' field.
10120 (clear_image_caches): Change arg to Lisp_Object.
10121 * image.c (make_image): Initialize `dependencies' field.
10122 (clear_image_cache): Change arg to allow fine-grained flushing.
10123 Perform the flush even if image-cache-eviction-delay is nil.
10124 (clear_image_caches): Change arg to Lisp_Object.
10125 (Fclear_image_cache): Expand meaning of the argument.
10126 (mark_image): Mark `dependencies' field.
10127 * xfaces.c (clear_face_cache): Adapt arg to call to clear_image_caches.
10128 (lface_hash): Use XHASH rather than XFASTINT.
10129 (face_at_buffer_position): Fix int -> EMACS_INT position.
10130 * xdisp.c (next_overlay_change): Fix int -> EMACS_INT position.
10131 (select_frame_for_redisplay): Remove code duplication.
10132 (redisplay_internal): Adapt arg to call to clear_image_caches.
10133
10134 2008-02-24 Dan Nicolaescu <dann@ics.uci.edu>
10135
10136 * s/vms4-0.h:
10137 * s/vms4-2.h:
10138 * s/vms4-4.h:
10139 * s/vms5-5.h: Remove, unused.
10140
10141 * s/irix5-2.h:
10142 * s/irix6-0.h:
10143 * s/riscos5.h:
10144 * s/mach-bsd4-3.h:
10145 * m/mips4.h: Remove files for obsolete systems.
10146
10147 * Makefile.in:
10148 * filelock.c:
10149 * unexmips.c:
10150 * m/hp9000s300.h:
10151 * m/iris4d.h:
10152 * s/aix3-1.h:
10153 * s/hpux.h:
10154 * s/msdos.h:
10155 * s/usg5-0.h:
10156 * s/usg5-2-2.h:
10157 * s/usg5-2.h:
10158 * s/usg5-3.h: Remove references to obsolete variables.
10159
10160 * s/irix5-0.h: Remove, move all the contents ...
10161 * s/irix6-5.h: ... here. Simplify.
10162 * config.in: Regenerate.
10163
10164 2008-02-24 Jason Rumney <jasonr@gnu.org>
10165
10166 * w32term.c (x_draw_glyph_string_background): Clear the background
10167 manually when cleartype is in use.
10168 (x_draw_glyph_string_foreground): Draw text transparently when
10169 cleartype is in use.
10170
10171 * w32font.c (w32font_text_extents): Avoid getting HDC and selecting
10172 a font into it unless we have to.
10173
10174 2008-02-19 Stefan Monnier <monnier@iro.umontreal.ca>
10175
10176 * intervals.h (INT_LISPLIKE): Remove. It may misfire.
10177 (NULL_INTERVAL_P, SET_INTERVAL_PARENT): Don't use it.
10178
10179 2008-02-18 Jason Rumney <jasonr@gnu.org>
10180
10181 * w32fns.c (Fw32_shell_execute): Encode parameters.
10182
10183 2008-02-09 Eli Zaretskii <eliz@gnu.org>
10184
10185 * fileio.c (syms_of_fileio) <insert-default-directory>: Doc fix.
10186
10187 2008-02-05 Juanma Barranquero <lekktu@gmail.com>
10188
10189 * unexhp9k800.c (read_header): Replace `legal' with `valid'.
10190
10191 2008-02-24 Ulrich Neumerkel <ulrich@complang.tuwien.ac.at> (tiny change)
10192
10193 * xterm.c (x_set_offset): Don't change the gravity if
10194 CHANGE_GRAVITY is -1.
10195
10196 2008-02-23 Chong Yidong <cyd@stupidchicken.com>
10197
10198 * fileio.c (auto_save_error_occurred): New var.
10199 (auto_save_error): Set it.
10200 (Fdo_auto_save): Don't overwrite the error message if an auto-save
10201 error occurred.
10202
10203 2008-02-23 Eli Zaretskii <eliz@gnu.org>
10204
10205 * w32.c (globals_of_w32): Add initializations for
10206 g_b_init_get_sid_sub_authority and
10207 g_b_init_get_sid_sub_authority_count.
10208
10209 2008-02-22 Stefan Monnier <monnier@iro.umontreal.ca>
10210
10211 * font.c (font_match_xlfd, font_check_xlfd_parse): New funs.
10212 (font_parse_xlfd): Use them for sanity check.
10213 (Finternal_set_font_style_table): Make sure the table is bijective.
10214
10215 Consolidate the image_cache to the terminal struct.
10216 * termhooks.h (P_): Remove redundant def.
10217 (struct terminal): New field `image_cache'.
10218 * frame.h (FRAME_IMAGE_CACHE): New macro. Use it everywhere in place
10219 of FRAME_X_IMAGE_CACHE.
10220 * xterm.h (struct x_display_info): Remove image_cache field.
10221 (FRAME_X_IMAGE_CACHE): Remove. Use FRAME_IMAGE_CACHE instead.
10222 * w32term.h (struct w32_display_info): Remove image_cache field.
10223 (FRAME_X_IMAGE_CACHE): Remove. Use FRAME_IMAGE_CACHE instead.
10224 * macterm.h (struct mac_display_info): Remove image_cache field.
10225 (FRAME_X_IMAGE_CACHE): Remove. Use FRAME_IMAGE_CACHE instead.
10226 * xterm.c (x_term_init):
10227 * w32term.c (w32_term_init):
10228 * macterm.c (mac_term_init): Set the image_cache in the terminal.
10229 * dispextern.h (clear_image_cache, forall_images_in_image_cache):
10230 Remove declarations.
10231 (clear_image_caches, mark_image_cache): New declarations.
10232 * xfaces.c (clear_face_cache):
10233 * xdisp.c (redisplay_internal): Use clear_image_caches.
10234 * image.c (clear_image_cache): Don't check that a frame is on
10235 a window-system before checking if it shares the same cache.
10236 (clear_image_caches): New function.
10237 (Fclear_image_cache): Use it.
10238 (mark_image): Move from allo.c.
10239 (mark_image_cache): Move from alloc.c and forall_images_in_image_cache.
10240 * alloc.c (mark_image, mark_image_cache): Move to image.c.
10241 (mark_object): Don't call mark_image_cache for frames.
10242 (mark_terminals): Call mark_image_cache.
10243
10244 * lisp.h (Fdelete_terminal): Declare.
10245
10246 * charset.h (CHECK_CHARSET, CHECK_CHARSET_GET_ID)
10247 (CHECK_CHARSET_GET_ATTR): Don't use the inexistent return value of
10248 wrong_type_argument.
10249
10250 2008-02-22 Kenichi Handa <handa@ni.aist.go.jp>
10251
10252 * Makefile.in (lisp): Remove devanagari.el, kannada.el,
10253 malayalam.el, and tamil.el. Add sinhala.el.
10254
10255 2008-02-21 Stefan Monnier <monnier@iro.umontreal.ca>
10256
10257 * xterm.c (x_connection_closed): Consolidate identical tests.
10258 (x_delete_terminal): Don't crash if called via x_connection_closed.
10259
10260 2008-02-21 Kenichi Handa <handa@ni.aist.go.jp>
10261
10262 * xdisp.c (decode_mode_spec): New arg string.
10263 (display_mode_element): Adjust for the above change.
10264
10265 2008-02-19 Stefan Monnier <monnier@iro.umontreal.ca>
10266
10267 * callint.c (Fcall_interactively): Use AREF.
10268
10269 2008-02-18 Stefan Monnier <monnier@iro.umontreal.ca>
10270
10271 * font.c (font_unparse_xlfd): Don't ignore integer pixel size specs.
10272
10273 2008-02-18 Jan Djärv <jan.h.d@swipnet.se>
10274
10275 * xfns.c (Fx_show_tip): Set string to " " if empty.
10276
10277 2008-02-17 Dan Nicolaescu <dann@ics.uci.edu>
10278
10279 * callint.c (syms_of_callint): Initialize Vmark_even_if_inactive
10280 with Qt.
10281
10282 2008-02-17 Kenichi Handa <handa@m17n.org>
10283
10284 * ftfont.c (ftfont_shape): Return Lispy number.
10285
10286 * xfaces.c (prepare_face_for_display): Use display_info->font->fid
10287 for GCs.
10288 (Finternal_set_font_selection_order): Call font_update_sort_order
10289 only when enable_font_backend is set.
10290 (realize_x_face): Set face->font_info to that of default face only
10291 when enable_font_backend is set.
10292
10293 * xdisp.c (handle_composition_prop): Set it->c to the fist
10294 character of the composed region.
10295 (fill_composite_glyph_string): Set base_face->font_info to
10296 s->font_info. Get a face for ascii from base_face->ascii_face.
10297 (BUILD_COMPOSITE_GLYPH_STRING): Call fill_composite_glyph_string
10298 with a face already decided.
10299 (x_produce_glyphs): Be sure to set it->ascent and it->descent to
10300 non-negative.
10301 (x_produce_glyphs): If the composition method is ..._WITH_GLYPH_STRING,
10302 call font_prepare_composition unconditionally.
10303
10304 * xfns.c (x_make_gc): Use the default font id of the frame for GCs.
10305
10306 * xterm.h (struct x_display_info): New member font.
10307
10308 * xterm.c (x_set_cursor_gc): Use display_info->font->fid for GCs.
10309 (x_set_mouse_face_gc, x_new_font): Likewise.
10310 (x_term_init): Setup display_info->font.
10311 (x_delete_terminal): Free display_info->font.
10312
10313 * xfont.c (xfont_draw): Use BLOCK_INPUT and UNBLOCK_INPUT.
10314
10315 * ftxfont.c (ftxfont_default_fid): Delete it.
10316 (ftxfont_open): Set xfont->fid to 0.
10317 (ftxfont_end_for_frame): Clear data specific to the frame and the
10318 font-driver.
10319
10320 * xftfont.c (xftfont_default_fid): Delete it.
10321 (xftfont_open): Set xfont->fid to 0.
10322
10323 * fontset.c (FONTSET_OBJLIST): New macro.
10324 (fontset_find_font): Update font-object list of the fontset.
10325 (free_realized_fontset): New function.
10326 (free_face_fontset): Call free_realized_fontset.
10327 (Ffont_info): Call font_close_object only when enable_font_backend
10328 is set.
10329
10330 * font.c [HAVE_X_WINDOWS]: Include xterm.h.
10331 [HAVE_NTGUI]: Include w32term.h.
10332 [MAC_OS]: Include macterm.ch.
10333 (font_otf_ValueRecord): Use make_number.
10334 (font_finish_cache): Fix handling of reference count.
10335 (font_clear_cache): Update num_fonts.
10336 (font_open_entity): Update smallest_char_width and
10337 smallest_font_height of the frame.
10338 (font_close_object): Update num_fonts.
10339 (Fclear_font_cache): Fix finding the target cache data.
10340
10341 2008-02-16 Glenn Morris <rgm@gnu.org>
10342
10343 * fontset.c (Finternal_char_font): Fix compilation warning.
10344
10345 2008-02-16 Eli Zaretskii <eliz@gnu.org>
10346
10347 * w32.c (init_user_info): Use TOKEN_USER and TOKEN_PRIMARY_GROUP
10348 instead of char arrays. Enlarge the size of array passed to
10349 get_token_information.
10350
10351 * font.c (Ffont_fill_gstring, Fget_font_glyphs): Fix compilation
10352 warnings.
10353
10354 2008-02-15 Dan Nicolaescu <dann@ics.uci.edu>
10355
10356 * .gdbinit: Don't set `args', it breaks gdb --args.
10357
10358 2008-02-14 Stefan Monnier <monnier@iro.umontreal.ca>
10359
10360 * fileio.c (Finsert_file_contents): Adjust offsets when replacing
10361 within a narrowed buffer.
10362
10363 2008-02-14 Kenichi Handa <handa@ni.aist.go.jp>
10364
10365 * coding.c (decode_coding_object, encode_coding_object):
10366 Preserve Vdeactivate_mark. Delete unnecessary call of Fcurrent_buffer.
10367
10368 2008-02-12 Stefan Monnier <monnier@iro.umontreal.ca>
10369
10370 * coding.c (coding_set_destination): Use BEG_BYTE rather than
10371 hardcoding 1.
10372 (detect_coding_system):
10373 * lisp.h (detect_coding_system, chars_in_text, multibyte_chars_in_text)
10374 (string_char_to_byte, string_byte_to_char, insert_from_gap):
10375 * insdel.c (insert_from_gap):
10376 * fns.c (string_char_byte_cache_charpos, string_char_byte_cache_bytepos)
10377 (string_char_to_byte, string_byte_to_char, string_make_multibyte)
10378 (string_to_multibyte):
10379 * character.c (chars_in_text, multibyte_chars_in_text):
10380 * fileio.c (Finsert_file_contents): Use EMACS_INT for buffer positions.
10381
10382 * character.h (FETCH_STRING_CHAR_ADVANCE)
10383 (FETCH_STRING_CHAR_AS_MULTIBYTE_ADVANCE)
10384 (FETCH_STRING_CHAR_ADVANCE_NO_CHECK): Use SDATA and SREF.
10385 (DEC_POS, BUF_DEC_POS): Use BEG_BYTE rather than hardcoding 1.
10386
10387 * casefiddle.c (casify_region): Only call after-change and composition
10388 functions on the part of the region that was changed.
10389
10390 * keyboard.c (read_avail_input):
10391 * frame.c (Fdelete_frame): Call Fdelete_terminal.
10392
10393 2008-02-11 Stefan Monnier <monnier@iro.umontreal.ca>
10394
10395 * buffer.c (clone_per_buffer_values, reset_buffer_local_variables)
10396 (Fbuffer_local_value, Fbuffer_local_variables): Don't forget undo_list.
10397
10398 2008-02-11 Juanma Barranquero <lekktu@gmail.com>
10399
10400 * w32menu.c (push_submenu_start, push_submenu_end)
10401 (push_left_right_boundary, push_menu_pane, push_menu_item):
10402 * keyboard.c (read_key_sequence): Don't pass args with side effects
10403 to AREF, it fails when compiling with -DENABLE_CHECKING.
10404
10405 2008-02-11 Kenichi Handa <handa@ni.aist.go.jp>
10406
10407 * Makefile.in (${lispsource}international/charprop.el):
10408 Delete this target.
10409
10410 * search.c (boyer_moore): Fix incorrect synching of the trunk and
10411 emacs-unicode-2.
10412
10413 2008-02-11 Stefan Monnier <monnier@iro.umontreal.ca>
10414
10415 * terminal.c (Fdelete_terminal): Clean up the `force' path.
10416
10417 2008-02-10 Stefan Monnier <monnier@iro.umontreal.ca>
10418
10419 * frame.c (Qnoelisp): New symbol.
10420 (syms_of_frame): Initialize it.
10421 (Fdelete_frame): Use it to distinguish a mere `force' passed from some
10422 harmless Elisp code, from a strong `force' from x_connection_closed.
10423 * frame.h (Qnoelisp): Declare.
10424 * xterm.c (x_connection_closed): Pass `noelisp'.
10425
10426 * lisp.h (struct Lisp_Misc_Any, struct Lisp_Marker)
10427 (struct Lisp_Overlay, struct Lisp_Kboard_Objfwd)
10428 (struct Lisp_Save_Value, struct Lisp_Free): Use enum Lisp_Misc_Type
10429 rather than `int' for the type of `type'.
10430
10431 2008-02-10 Dan Nicolaescu <dann@ics.uci.edu>
10432
10433 * s/gnu-linux.h: Remove support for non-ELF and linux-1.x.
10434
10435 * Makefile.in (GNUC): Remove support for gcc-1.x.
10436
10437 2008-02-10 Richard Stallman <rms@gnu.org>
10438
10439 * lisp.h (ASET): Use AREF, not ASLOT.
10440
10441 2008-02-10 Stefan Monnier <monnier@iro.umontreal.ca>
10442
10443 * lisp.h (ASET): Check bounds.
10444
10445 2008-02-10 Glenn Morris <rgm@gnu.org>
10446
10447 * buffer.c (mode-name): Doc fix.
10448
10449 2008-02-09 Dan Nicolaescu <dann@ics.uci.edu>
10450
10451 * Makefile.in:
10452 * emacs.c:
10453 * gmalloc.c:
10454 * keyboard.c:
10455 * lisp.h:
10456 * m/ibm370aix.h:
10457 * process.c:
10458 * regex.c:
10459 * s/hpux.h:
10460 * sysdep.c:
10461 * sysselect.h:
10462 * systty.h:
10463 * unexec.c:
10464 * w32term.c:
10465 * xsmfns.c:
10466 * xterm.c: Remove code that deals with obsolete variables.
10467
10468 * s/msdos.h (DONT_NEED_ENVIRON): Don't define.
10469
10470 * ecrt0.c: Replace the DONT_NEED_ENVIRON test with MSDOS test,
10471 nothing else needs it anymore.
10472
10473 2008-02-09 Eli Zaretskii <eliz@gnu.org>
10474
10475 * buffer.h (FETCH_CHAR_AS_MULTIBYTE): Use unibyte_to_multibyte_table
10476 instead of unibyte_char_to_multibyte.
10477
10478 2008-02-09 Dan Nicolaescu <dann@ics.uci.edu>
10479
10480 * s/gnu-linux.h: Remove commented out code.
10481
10482 * unexec.c: Remove references to obsolete variable COFF_ENCAPSULATE.
10483
10484 * Makefile.in: Update what RMS says about using autoconf.
10485 (C_COMPILER, COFF_ENCAPSULATE, MAKE_PARALLEL): Remove obsolete variable.
10486 (C_SWITCH_MACHINE_1, C_SWITCH_SYSTEM_1, C_SWITCH_SITE_1)
10487 (C_SWITCH_X_SITE_1, C_SWITCH_X_MACHINE_1)
10488 (C_SWITCH_X_SYSTEM_1): Move invariant code outside conditional.
10489
10490 2008-02-08 Stefan Monnier <monnier@iro.umontreal.ca>
10491
10492 * keymap.c (Fkey_description): Move side effect outside of macro call.
10493
10494 * xfaces.c (Finternal_make_lisp_face):
10495 * keyboard.c (add_command_key, parse_menu_item): Use ASET.
10496
10497 * fontset.c (free_face_fontset): Use FONTSET_FROM_ID.
10498 (syms_of_fontset): Use ASET.
10499
10500 * fns.c (concat): Move side effect outside of macro call.
10501 (hash_clear): Use ASET.
10502
10503 2008-02-08 Richard Stallman <rms@gnu.org>
10504
10505 * frame.c (Fdelete_frame): If FORCE, don't call hooks.
10506 If FORCE, and frame has a surrogate minibuffer for another frame,
10507 delete the other frame first.
10508
10509 2008-02-07 Timo Savola <timo.savola@iki.fi>
10510
10511 * xterm.c (x_detect_focus_change): Handle embed client message.
10512 (handle_one_xevent): Ditto.
10513 (handle_one_xevent): If embedded and we get a button press/release,
10514 request focus.
10515 (xembed_set_info, xembed_send_message): New functions.
10516 (x_make_frame_visible): Call xembed_set_info if embedded.
10517 (x_make_frame_invisible): Call xembed_set_info if embedded.
10518 (x_term_init): Initialize Xatom_XEMBED.
10519 (x_make_frame_visible): Check for FRAME_X_EMBEDDED_P also.
10520 (x_iconify_frame): Ditto.
10521
10522 * xterm.h (struct x_display_info): Add AtomXatom_XEMBED.
10523 (enum xembed_info, enum xembed_message, enum xembed_focus)
10524 (enum xembed_modifier, enum xembed_accelerator): New.
10525 (xembed_set_info, xembed_send_message): Declare.
10526 (FRAME_X_EMBEDDED_P): New.
10527
10528 * gtkutil.c (xg_create_frame_widgets): If frame is embedded, call
10529 gtk_plug_new.
10530
10531 * xfns.c (Fx_create_frame): Do not override the explicitly set parent
10532 window ID of a frame.
10533 (x_window): Reparent frame if embedded.
10534 (Fx_create_frame): Don't set border width if embedded.
10535
10536 * emacs.c (USAGE3): Add --parent-id.
10537 (standard_args): Ditto.
10538
10539 2008-02-07 Jan Djärv <jan.h.d@swipnet.se>
10540
10541 * coding.c (DECODE_EMACS_MULE_COMPOSITION_CHAR): Use "do...while (0)".
10542
10543 2008-02-07 Jim Meyering <meyering@redhat.com>
10544
10545 Use "do...while (0)", not "if (1)...else" in macro definitions.
10546 The latter provokes a warning from gcc about the empty else, when
10547 followed by ";". Also, without that trailing semicolon, it would
10548 silently swallow up any following statement.
10549 * syntax.h (SETUP_SYNTAX_TABLE)
10550 (SETUP_SYNTAX_TABLE_FOR_OBJECT): Likewise.
10551 * buffer.h (DECODE_POSITION): Likewise.
10552 * character.h (FETCH_STRING_CHAR_ADVANCE): Likewise.
10553 (FETCH_STRING_CHAR_AS_MULTIBYTE_ADVANCE): Likewise.
10554 (FETCH_STRING_CHAR_ADVANCE_NO_CHECK): Likewise.
10555 (FETCH_CHAR_ADVANCE): Likewise.
10556 (FETCH_CHAR_ADVANCE_NO_CHECK): Likewise.
10557
10558 2008-02-07 Jim Meyering <meyering@redhat.com>
10559
10560 * lread.c [lint]: Don't include <sys/inode.h>.
10561
10562 2008-02-07 Stefan Monnier <monnier@iro.umontreal.ca>
10563
10564 * xselect.c (x_handle_dnd_message):
10565 * xmenu.c (digest_single_submenu, xmenu_show):
10566 * xdisp.c (with_echo_area_buffer_unwind_data)
10567 (format_mode_line_unwind_data, unwind_format_mode_line)
10568 (display_menu_bar):
10569 * eval.c (Ffetch_bytecode):
10570 * doc.c (store_function_docstring):
10571 * ccl.c (resolve_symbol_ccl_program, ccl_get_compiled_code)
10572 (Fccl_execute, Fccl_execute_on_string, Fregister_code_conversion_map):
10573 * buffer.c (add_overlay_mod_hooklist): Use ASET.
10574
10575 2008-02-07 Kenichi Handa <handa@m17n.org>
10576
10577 * ftxfont.c (ftxfont_open): Don't set
10578 dpyinfo->smallest_font_height and dpyinfo->smallest_char_width to 0.
10579
10580 * ftfont.c (ftfont_open): Fix previous change.
10581
10582 2008-02-06 Jason Rumney <jasonr@gnu.org>
10583
10584 * w32font.c (w32font_text_extents): Fill in lbearing metric.
10585 Use cached metrics for ASCII characters.
10586 (w32font_open_internal): Don't set font's owning_frame.
10587 Cache metrics for ASCII characters.
10588
10589 * w32font.h (struct w32font_info): Add ascii_metrics.
10590 Remove owning_frame.
10591
10592 2008-02-06 Kenichi Handa <handa@ni.aist.go.jp>
10593
10594 * xdisp.c (x_produce_glyphs): Don't set it->ascent and it->descent
10595 to negative value.
10596
10597 * ftxfont.c (ftxfont_draw): Use s->font_info, not face->font_info.
10598
10599 * ftfont.c (ftfont_open): Fix calculation of font->font.average_width.
10600
10601 * charset.c (syms_of_charset): Set QCtest and Qeq.
10602
10603 2008-02-06 Stefan Monnier <monnier@iro.umontreal.ca>
10604
10605 * process.c (Fstart_process):
10606 * callproc.c (Fcall_process): Handle the case where
10607 Funhandled_file_name_directory returns nil.
10608
10609 * font.h (enum lgstring_indices, enum lglyph_indices): New enums.
10610 (LGSTRING_SLOT, LGSTRING_SET_SLOT): New macros.
10611 * font.c (check_gstring): Use them and AREF to access the vector before
10612 we know it's really a gstring.
10613 (Ffont_shape_text): Fix typo.
10614 (Ffont_shape_text, Ffont_otf_alternates): Fix up int/Lisp_Object mixups.
10615
10616 * composite.h (Fcompose_region_internal, Fcompose_string_internal):
10617 Declare.
10618
10619 * chartab.c (make_sub_char_table): Remove noop-yet-incorrect statement.
10620
10621 2008-02-05 Jason Rumney <jasonr@gnu.org>
10622
10623 * w32font.c (w32font_open_internal): Fill min_width with tmAveCharWidth.
10624 Set smallest_font_height and smallest_char_width in display info.
10625
10626 2008-02-05 Kenichi Handa <handa@ni.aist.go.jp>
10627
10628 * coding.c (decode_eol): Pay attention to coding->dst_multibyte.
10629
10630 2008-02-05 Miles Bader <miles@gnu.org>
10631
10632 * xfaces.c (get_lface_attributes, merge_named_face)
10633 (lookup_named_face, lookup_derived_face, realize_named_face):
10634 Revert 2008-02-01 change by cyd@stupidchicken.com.
10635
10636 2008-02-04 Kenichi Handa <handa@ni.aist.go.jp>
10637
10638 * fontset.c (Ffontset_info): Handle the case of inhibitting the
10639 fallback fonts.
10640 (Ffontset_info) [USE_FONT_BACKEND]: Fix getting of opened font names.
10641
10642 2008-02-04 Jason Rumney <jasonr@gnu.org>
10643
10644 * w32font.c (w32font_open_internal): Use font_unparse_fcname to
10645 set full_name.
10646 (w32font_open_internal): Use xmalloc, xrealloc, xfree.
10647
10648 2008-02-03 Jason Rumney <jasonr@gnu.org>
10649
10650 * makefile.w32-in (OBJ1): Include font.o here.
10651 (FONTOBJ) [USE_FONTBACKEND]: Instead of here.
10652
10653 2008-02-02 Jason Rumney <jasonr@gnu.org>
10654
10655 * makefile.w32-in (temacs): Bump EMHEAP to 21.
10656
10657 2008-02-01 Jason Rumney <jasonr@gnu.org>
10658
10659 * s/cygwin.h: Define VIRT_ADDR_VARIES.
10660
10661 * puresize.h [VIRT_ADDR_VARIES]: Don't include CYGWIN in condition.
10662
10663 2008-02-01 Andreas Schwab <schwab@suse.de>
10664
10665 * Makefile.in (shortlisp, lisp): Update for rename of
10666 ../lisp/language/myanmar.el.
10667
10668 2008-02-01 Chong Yidong <cyd@stupidchicken.com>
10669
10670 * xfaces.c (get_lface_attributes): Delete function.
10671 (merge_named_face, lookup_named_face, lookup_derived_face)
10672 (realize_named_face): Call lface_from_face_name directly, and use
10673 the fact that merge_face_vectors does not alter its FROM argument.
10674
10675 2008-02-01 Jason Rumney <jasonr@gnu.org>
10676
10677 * w32term.c (w32_read_socket) <WM_CHAR>: Decode non-Unicode
10678 input in the default locale. Handle non-Unicode multibyte input.
10679
10680 2008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
10681
10682 * fontset.c (reorder_font_vector): Exclude nil elements from the
10683 font group. Don't try multiple fonts.
10684 (fontset_font): Adjust for the above change.
10685 (Finternal_char_font): Return nil if the found font doesn't
10686 contain the character ch.
10687
10688 * Makefile.in (lisp, shortlisp): Add cham.el.
10689
10690 2008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
10691
10692 * font.h (FONTP): Make it return 1 also for a font-object.
10693
10694 * .gdbinit (xfontset): New function.
10695
10696 * font.c (font_find_for_lface): Check if the character C is
10697 supported or not only for the first font.
10698
10699 * fontset.c (reorder_font_vector): Fix typo.
10700 (fontset_find_font): Don't add a font-spec specifying a script.
10701 Use 0 (not Qt) for the indication of empty font-group. Change the
10702 format of RFONT-DEF. Return Qt if no font in the font-group
10703 support the character.
10704 (fontset_font): Adjust for the above change. If no font was
10705 found the character, remember that.
10706 (face_for_char): Adjust for the change of RFONT-DEF.
10707 (Fset_fontset_font): Allow nil for FONT-SPEC to explicitly specify
10708 no font for the target.
10709 (Finternal_char_font): Adjust for the change of RFONT-DEF.
10710
10711 2008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
10712
10713 * font.c (font_load_for_face): Handle the case that the font in
10714 face->lface is a string.
10715
10716 2008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
10717
10718 * xfaces.c (set_lface_from_font_and_fontset): Set the fontname in lface.
10719
10720 2008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
10721
10722 * xfaces.c (Finternal_set_lisp_face_attribute) [USE_FONT_BACKEND]:
10723 Fix previous change. If the frame is not on a window system,
10724 signal an error.
10725
10726 2008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
10727
10728 * coding.c (decode_coding_object, encode_coding_object): Adjust
10729 marker positions after conversion.
10730
10731 * lisp.h (struct Lisp_Marker): New member need_adjustment.
10732
10733 2008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
10734
10735 * font.c (font_find_for_lface): Fix the handling of the return
10736 value of font_has_char.
10737 (Ffont_shape_text): Fix previous change.
10738
10739 * fontset.c (FONTSET_REF_AND_RANGE): Delete it.
10740 (fontset_ref_and_range): Delete it.
10741 (fontset_find_font): Call char_table_ref_and_range instead of
10742 FONTSET_REF_AND_RANGE.
10743 (make_fontset): Don't setup font groups of Latin here.
10744 (Fset_fontset_font): Don't overwrite the setting of FONTSET_ASCII.
10745 (new_fontset_from_font): Make the specified font the default for
10746 all Latin characters.
10747
10748 2008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
10749
10750 * xfaces.c (Finternal_set_lisp_face_attribute): Check if the frame
10751 is on a window system before accessing the fontset of the frame.
10752
10753 2008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
10754
10755 * Makefile.in (lisp, shortlisp): Add kherm.el and myanmar.el.
10756
10757 * ftfont.c (ftfont_driver): Set ftfont_shape in ftfont_driver only
10758 when both HAVE_M17N_FLT and HAVE_LIBOTF are defined.
10759
10760 * font.c (Ffont_shape_text): If the font driver doesn't have a
10761 shaper function, make zero-width glyphs to have at least one-pixel
10762 width. Fix setting of `to' field of glyphs.
10763
10764 2008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
10765
10766 * ftfont.c (ftfont_drive_otf): Fix setting of FROM and TO slots of
10767 glyphs.
10768
10769 * font.h (struct font_driver): Improve docstring of member `shape'.
10770
10771 2008-02-01 Kenichi Handa <handa@m17n.org>
10772
10773 * composite.c (syms_of_composite): Fix docstring of
10774 auto-composition-function.
10775
10776 * font.h (LGLYPH_SIZE): New macro.
10777
10778 * font.c (Ffont_fill_gstring): Stop filling when a character not
10779 supported by the font is found.
10780 (Ffont_shape_text): When a shape callback function returns nil,
10781 try at most two more times with larger gstring.
10782 (Ffont_at): Fix getting of w. Call font_at with correct 5th argument.
10783
10784 * xdisp.c (handle_auto_composed_prop): Change the argument to
10785 auto-composition-function.
10786
10787 * ftfont.c (ftfont_encode_char): Use the macro FONT_INVALID_CODE.
10788 (ftfont_shape_by_flt): If an element of lgstring is nil, make a
10789 Lispy glyph and store it in the lgstring.
10790
10791 * xfont.c (xfont_encode_char): Use the macro FONT_INVALID_CODE.
10792
10793 * xftfont.c (xftfont_encode_char): Use the macro FONT_INVALID_CODE.
10794
10795 2008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
10796
10797 * font.c (Ffont_shape_text): Avoid unnecessary composition.
10798
10799 * fontset.c (Vfont_encoding_charset_alist): New variable.
10800 (syms_of_fontset): DEFVAR it.
10801 (reorder_font_vector, fontset_find_font): Optimize for the case of
10802 no need of reordering.
10803 (face_for_char): Map the charset property by
10804 Vfont_encoding_charset_alist.
10805
10806 2008-02-01 Jason Rumney <jasonr@gnu.org>
10807
10808 * w32font.c (logfonts_match): Don't check adstyle here.
10809 (font_matches_spec): Check here against physical font instead.
10810 (add_font_entity_to_list): Avoid some substitutions.
10811
10812 * font.c (font_parse_fcname): Default weight and slant to normal.
10813 (font_score): Prefer normal fonts if weight or slant unspecified.
10814 (font_score) [WINDOWSNT]: Scale weight difference down to closer
10815 match freetype scores.
10816
10817 2008-02-01 Jason Rumney <jasonr@gnu.org>
10818
10819 * w32font.c (w32font_text_extents): Don't use the frame stored in the
10820 font, as it may have been deleted.
10821 (w32_enumfont_pattern_entity): Map generic family to adstyle using
10822 most common hyphenless variation.
10823 (logfonts_match): Check generic family.
10824 (font_matches_spec): Don't check generic family here.
10825 (fill_in_logfont): Set generic family based on adstyle.
10826
10827 * w32font.h (w32font_get_cache): Update declaration.
10828
10829 2008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
10830
10831 * ftfont.c (ftfont_get_cache): Adjust the argument type.
10832
10833 * frame.c (x_set_font_backend): Don't call Fclear_font_cache.
10834 If none of the new drivers are available, call font_update_drivers
10835 with the old drivers.
10836
10837 * w32font.c (w32font_get_cache): Adjust the argument type.
10838
10839 * xfont.c (xfont_get_cache): Adjust the argument type.
10840
10841 * font.h (struct font_driver): Change argument type of get_cache.
10842
10843 * xftfont.c (xftfont_start_for_frame): Delete prototype.
10844
10845 * font.c (Ffont_get): Fix arguments to Fassoc.
10846 (font_prepare_cache, font_finish_cache, font_get_cache): New functions.
10847 (font_clear_cache): New function.
10848 (font_list_entities, font_matching_entity): Use font_get_cache.
10849 (font_update_drivers): Call font_clear_cache when finishing a driver.
10850
10851 * fontset.c (fontset_find_font): Fix previous change.
10852
10853 2008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
10854
10855 * xterm.c (x_check_font) [USE_FONT_BACKEND]: Don't access
10856 dpyinfo->font_table.
10857 (x_delete_display) [USE_FONT_BACKEND]: Likewise.
10858 (x_delete_terminal) [USE_FONT_BACKEND]: Likewise.
10859
10860 * font.c (font_at): Handle the case that the arg C is negative.
10861 Handle the unibyte case.
10862 (Ffont_at): Call font_at with the arg C -1.
10863
10864 * xdisp.c (handle_auto_composed_prop): Don't get a character at
10865 the position here, and call font_at with the arg C -1.
10866 Don't check the range of the existing composition at the point.
10867
10868 2008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
10869
10870 * fontset.c (fontset_add): New args charset_id and family.
10871 Change caller.
10872 (load_font_get_repertory, fontset_find_font): Assume that
10873 font_spec is always a font-spec object.
10874 (Fset_fontset_font): Always store a font-spec object in a fontset.
10875
10876 * xdisp.c (handle_auto_composed_prop): Use Fget_text_property
10877 instead of get_property_and_range.
10878
10879 2008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
10880
10881 * xftfont.c (struct xftfont_info): Delete the member ft_face.
10882 (xftfont_open): Don't keep locking face.
10883 (xftfont_close): Don't unlock face.
10884 (xftfont_anchor_point, xftfont_shape): Lock and unlock face.
10885
10886 * fontset.c (fontset_find_font): Don't prefer a font of
10887 supplementary charset.
10888
10889 2008-02-01 Kenichi Handa <handa@m17n.org>
10890
10891 * ftfont.c (struct OpenTypeSpec): Rename members script_tag to
10892 script, langsys_tag to langsys, new member script.
10893 (OTF_TAG_STR): Terminate by '\0'.
10894 (ftfont_get_open_type_spec): If :otf prop is spec, limit the
10895 listing to the script specified in that property. Fix arg to
10896 OTF_check_features.
10897
10898 2008-02-01 Jason Rumney <jasonr@gnu.org>
10899
10900 * w32font.h: New file.
10901
10902 * w32font.c: Include it.
10903 (struct w32font_info): Add owning_frame field. Move to w32font.h.
10904 (w32font_open): Set owning_frame.
10905 (w32font_text_extents): Use owning_frame.
10906 (struct font_callback_data): Add opentype_only field.
10907 (add_font_entity_to_list): Use it to filter fonts.
10908 Don't check against full name.
10909 (w32font_list_internal): New function.
10910 (w32font_list): Use it.
10911 (w32font_match_internal): New function.
10912 (w32font_match): Use it.
10913 (w32font_open_internal): New function.
10914 (w32font_open): Use it.
10915 (w32font_get_cache, w32font_close, w32font_has_char)
10916 (w32font_encode_char, w32font_text_extents, w32font_draw):
10917 Make non-static.
10918
10919 * makefile.w32-in (w32font.o): Depend on w32font.h.
10920
10921 2008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
10922
10923 * charset.c (Fdefine_charset_internal): Record a supplementary
10924 charset at the tail of Vcharset_order_list.
10925
10926 * font.c (Ffont_shape_text): Fix the return value.
10927
10928 * ftfont.c (OTF_SYM_TAG, OTF_TAG_STR): Fix argument names.
10929
10930 * xdisp.c (handle_auto_composed_prop): Fix previous change.
10931
10932 2008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
10933
10934 * ftfont.c (struct OpenTypeSpec): New struct.
10935 (OTF_SYM_TAG, OTF_TAG_STR): New macros.
10936 (ftfont_get_open_type_spec): New function.
10937 (ftfont_list) [HAVE_LIBOTF]: Check otf-spec property.
10938
10939 * lread.c (read1): Redo the previous change with checking Vpurify_flag.
10940
10941 2008-02-01 Jason Rumney <jasonr@gnu.org>
10942
10943 * w32font.c (add_font_entity_to_list): Compare only the beginning
10944 of full name.
10945
10946 2008-02-01 Kenichi Handa <handa@m17n.org>
10947
10948 * xdisp.c (handle_auto_composed_prop): Simplify the code.
10949 Never return HANDLED_RECOMPUTE_PROPS.
10950
10951 2008-02-01 Kenichi Handa <handa@m17n.org>
10952
10953 * font.c (font_gstring_produce): Delete it.
10954
10955 * composite.h (COMPOSITION_METHOD):
10956 Handle COMPOSITION_WITH_GLYPH_STRING.
10957
10958 2008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
10959
10960 * xfont.c (Qx): Delete.
10961 (syms_of_xfont): Don't initialize Qx.
10962
10963 * composite.h (enum composition_method):
10964 Define COMPOSITION_WITH_GLYPH_STRING unconditionally.
10965
10966 2008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
10967
10968 * xfaces.c [HAVE_WINDOW_SYSTEM]: Include "font.h" unconditionally.
10969 (choose_face_font): Accept new form of font-spec.
10970
10971 * frame.h (font_driver_list): Declare it unconditionally.
10972 (struct frame): Define members font_driver_list and font_data_list
10973 unconditionally.
10974
10975 * fontset.c: Include "font.h" unconditionally.
10976 (generate_ascii_font_name): Use font_parse_xlfd and font_unparse_xlfd.
10977 (Fset_fontset_font): Accept a font-spec object.
10978
10979 * font.c (font_unparse_xlfd): If pixel_size is zero, make the
10980 PIXEL_SIZE part a wild card.
10981
10982 * dispextern.h (struct glyph_string): Define members clip and
10983 num_clips unconditionally.
10984 (struct face): Define members font_info and extra unconditionally.
10985
10986 * ftfont.c (ftfont_open): Set members maybe_otf and otf of
10987 ftfont_info only when HAVE_LIBOTF is defined.
10988
10989 2008-02-01 Andreas Schwab <schwab@suse.de>
10990
10991 * xdisp.c (back_to_previous_visible_line_start): Fix type of beg
10992 and end.
10993
10994 2008-02-01 Jason Rumney <jasonr@gnu.org>
10995
10996 * w32font.c (w32font_driver): Add new fields.
10997
10998 2008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
10999
11000 * Makefile.in (ALL_CFLAGS): Add @M17N_FLT_CFLAGS@.
11001 (FONTSRC, FONTOBJ) [HAVE_WINDOW_SYSTEM]: Set them unconditionally.
11002 (LIBES): Add @M17N_FLT_CFLAGS@.
11003
11004 * composite.c (compose_text): Don't treat the new style
11005 composition specially.
11006
11007 * emacs.c (main): Call syms_of_font unconditionally.
11008
11009 * font.h (FONT_ENTITY_NOT_LOADABLE)
11010 (FONT_ENTITY_SET_NOT_LOADABLE): New macros.
11011 (LGSTRING_XXXX, LGLYPH_XXX): Adjust for the change of lispy gstring.
11012 (struct font_driver): New member shape.
11013 (font_registry_charsets): Extern it.
11014 (font_find_for_lface, font_prepare_composition): Adjust prototype.
11015 (font_otf_capability, font_drive_otf): Delete their externs.
11016
11017 * font.c [HAVE_M17N_FLT]: Include <m17n-flt.h>.
11018 (font_charset_alist, font_registry_charsets): Move from xfont.c
11019 and rename.
11020 (font_prop_validate_otf): New function.
11021 (font_property_table): Register it for QCotf.
11022 (DEVICE_DELTA, adjust_anchor, REPLACEMENT_CHARACTER)
11023 (font_drive_otf): Delete.
11024 (font_prepare_composition): New arg F. Adjust for the change of
11025 lispy gstring.
11026 (font_find_for_lface): New arg C.
11027 (font_load_for_face): Adjust for the change of font_find_for_lface.
11028 (Ffont_make_gstring, Ffont_fill_gstring): Adjust for the change of
11029 lispy gstring.
11030 (Ffont_shape_text): New function.
11031 (Fopen_font): If the font size is not given, use 12-pixel.
11032 (Ffont_at): New arg STRING.
11033 (syms_of_font): Initalize font_charset_alist.
11034 Declare Ffont_shape_text as a Lisp function. Call syms_of_XXfont
11035 conditionally.
11036
11037 * fontset.c (fontset_find_font) [USE_FONT_BACKEND]: Try multiple
11038 fonts of the same font-spec. Change the format of RFONT-DEF.
11039 (face_for_char, make_fontset_for_ascii_face, Finternal_char_font):
11040 Adjust for the change of RFONT-DEF.
11041 (Fset_fontset_font) [USE_FONT_BACKEND]: Handle new format of font-spec.
11042
11043 * ftfont.h: New file.
11044
11045 * ftfont.c: Don't include Freetype headers. Include "ftfont.h".
11046 (struct ftfont_info) [HAVE_LIBOTF]: New members maybe_otf and otf.
11047 (ftfont_open) [HAVE_LIBOTF]: Initialize the above members.
11048 (ftfont_driver) [HAVE_LIBOTF, HAVE_M17N_FLT]: Don't set
11049 font_otf_capability and font_drive_otf, set ftfont_shape.
11050 (ftfont_list): Adjust for the change of :otf property value.
11051 (struct MFLTFontFT) [HAVE_LIBOTF, HAVE_M17N_FLT]: New struct.
11052 (ftfont_get_glyph_id, ftfont_get_metrics, ftfont_check_otf)
11053 (adjust_anchor, ftfont_drive_otf, ftfont_shape_by_flt)
11054 (ftfont_shape) [HAVE_LIBOTF, HAVE_M17N_FLT]: New function.
11055 (DEVICE_DELTA) [HAVE_LIBOTF, HAVE_M17N_FLT]: New macro.
11056 (otf_gstring, gstring, m17n_flt_initialized): New variables.
11057
11058 * w32term.c (x_draw_composite_glyph_string_foreground):
11059 Adjust for the change of lispy gstring.
11060
11061 * xdisp.c (handle_composition_prop): Adjust for the change of
11062 lispy gstring. Call a function for auto-composition with the
11063 third arg it->window.
11064 (fill_composite_glyph_string): Adjust for the change of lispy string.
11065 (x_produce_glyphs): Adjust for the change of font_prepare_compositionl.
11066
11067 * xfaces.c (set_font_frame_param): Adjust for the change of
11068 font_find_for_lface.
11069
11070 * xfont.c (x_font_charset_alist): Move to font.c and rename.
11071 (xfont_registry_charsets): Likewise. Change caller.
11072 (syms_of_xfont): Don't handle x_font_charset_alist.
11073
11074 * xftfont.c: Include "ftfont.h".
11075 (struct xftfont_info) [HAVE_LIBOTF]: New members maybe_otf and otf.
11076 (xftfont_open) [HAVE_LIBOTF]: Initialize the above members.
11077 (xftfont_close) [HAVE_LIBOTF]: Close otf.
11078 (xftfont_shape) [HAVE_LIBOTF, HAVE_M17N_FLT]: New function.
11079 (syms_of_xftfont) [HAVE_LIBOTF, HAVE_M17N_FLT]:
11080 Set xftfont_driver.shape to xftfont_shape.
11081
11082 * xterm.c (x_draw_composite_glyph_string_foreground): Adjust for
11083 the change of lispy gstring.
11084
11085 2008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
11086
11087 * ftxfont.c (ftxfont_end_for_frame): Fix array indexing error.
11088
11089 2008-02-01 Jason Rumney <jasonr@gnu.org>
11090
11091 * w32font.c (w32font_draw): Fill background manually.
11092
11093 2008-02-01 Jason Rumney <jasonr@gnu.org>
11094
11095 * font.c (Qfontp): Remove unused symbol.
11096 (QCantialias): New symbol.
11097 (syms_of_font): Define it.
11098 (font_property_table): Set a validator for QCantialias.
11099
11100 * w32font.c (CLEARTYPE_QUALITY, CLEARTYPE_NATURAL_QUALITY):
11101 Define if not already.
11102 (QCfamily): Share with xfaces.c.
11103 (Qstandard, Qsubpixel, Qnatural): New symbols.
11104 (syms_of_w32font): Define them. Don't define QCfamily here.
11105 (w32_antialias_type, lispy_antialias_type): New functions.
11106 (w32_enumfont_pattern_entity): New arg requested_font.
11107 Set antialias parameter if non-default was requested.
11108 (fill_in_logfont): Fill in lfQuality if :antialias specified.
11109
11110 2008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
11111
11112 * lread.c (read1): Undo the previous change.
11113
11114 2008-02-01 CHENG Gao <chenggao@gmail.com> (tiny change)
11115
11116 * frame.c (Fdelete_frame): Call font_update_drivers only when
11117 USE_FONT_BACKEND is defined.
11118
11119 2008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
11120
11121 * font.h (struct font_bitmap): New member bits_per_pixel.
11122 (struct font_driver): New members start_for_frame and end_for_frame.
11123 (struct font_data_list): New struct.
11124 (font_put_frame_data, font_get_frame_data): Extern them.
11125
11126 * frame.h (struct frame): New member font_data_list.
11127
11128 * font.c (font_update_drivers): Call driver->start_for_frame and
11129 driver->end_for_frame at proper timings.
11130 (font_put_frame_data, font_get_frame_data): New functions.
11131 (Ffont_spec): Add usage in the docstring.
11132
11133 * frame.c (make_frame): Initialize f->font_data_list to NULL.
11134 (Fdelete_frame): Call font_update_drivers.
11135
11136 * xftfont.c (struct xftface_info): Delete the member xft_draw.
11137 (xftfont_prepare_face, xftfont_done_face): Adjust for the above change.
11138 (xftfont_get_xft_draw): New function.
11139 (xftfont_draw): Get XftDraw by xftfont_get_xft_draw.
11140 (xftfont_end_for_frame): New function.
11141 (syms_of_xftfont): Set xftfont_driver.end_for_frame.
11142
11143 * ftxfont.c (ftxfont_get_gcs): Rename from ftxfont_create_gcs.
11144 Change argument. Cache GCs in the per-frame data.
11145 (struct ftxfont_frame_data): New struct.
11146 (ftxfont_draw_bitmap): New arg gc_fore and flush.
11147 (ftxfont_prepare_face, ftxfont_done_face): Delete them.
11148 (ftxfont_draw): Get GCs by ftxfont_get_gcs. Reflect s->clip in GCs.
11149 (ftxfont_end_for_frame): New function.
11150 (syms_of_ftxfont): Set ftxfont_driver.end_for_frame.
11151
11152 * ftfont.c (ftfont_get_bitmap): Set bitmap->bits_per_pixel.
11153
11154 2008-02-01 Kenichi Handa <handa@m17n.org>
11155
11156 * xselect.c (Vselection_coding_system)
11157 (Vnext_selection_coding_system): Delete them.
11158 (syms_of_xselect): Don't declare selection-coding-system and
11159 next-selection-coding-system. They are declared in select.el.
11160
11161 2008-02-01 Jason Rumney <jasonr@gnu.org>
11162
11163 * w32term.h (WM_UNICHAR, UNICODE_NOCHAR): Define if not already.
11164
11165 * w32fns.c: Include imm.h.
11166 (get_composition_string_fn, get_ime_context_fn): New optional
11167 system functions.
11168 (globals_of_w32fns): Load them from imm32.dll.
11169 (ignore_ime_char): New flag.
11170 (w32_wnd_proc): Handle WM_UNICHAR, WM_IME_CHAR and
11171 WM_IME_ENDCOMPOSITION messages.
11172
11173 * w32term.c (w32_read_socket) [WM_UNICHAR]: Handle as
11174 MULTIBYTE_CHAR_KEYSTROKE_EVENT.
11175
11176 2008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
11177
11178 * lread.c (READCHAR): Call readchar with the 2nd arg NULL.
11179 (READCHAR_REPORT_MULTIBYTE): New macro.
11180 (readchar): New 2nd arg MULTIBYTE.
11181 (read1): Use READCHAR_REPORT_MULTIBYTE for the first read.
11182 Make symbol's name multibyte according to the multibyteness of the
11183 source.
11184
11185 2008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
11186
11187 * xfaces.c (face_for_overlay_string): Call lookup_face with
11188 correct arguments (fix of synching with the trunk).
11189
11190 2008-02-01 Kenichi Handa <handa@m17n.org>
11191
11192 * font.c (font_prop_validate_symbol, font_prop_validate_style)
11193 (font_prop_validate_non_neg, font_prop_validate_spacing):
11194 Delete argument prop_index.
11195 (font_property_table): Change arguments to validater. Change Callers.
11196 (font_lispy_object): Delete.
11197 (font_at): Use font_find_object instead fo font_lispy_object.
11198
11199 2008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
11200
11201 * fileio.c (Fexpand_file_name): Adjust multibyteness of directory
11202 and file names.
11203
11204 2008-02-01 Jason Rumney <jasonr@gnu.org>
11205
11206 * w32font.c (add_font_name_to_list): Avoid vertical fonts.
11207 (font_matches_spec): Remove debug output.
11208 (add_font_entity_to_list): Avoid using substituted fonts.
11209
11210 2008-02-01 Jason Rumney <jasonr@gnu.org>
11211
11212 * doc.c (Fsnarf_documentation):
11213 * Makefile.in (temacs${EXEEXT}, mostlyclean): Undo last change.
11214
11215 2008-02-01 Miles Bader <miles@gnu.org>
11216
11217 * dispextern.h (struct glyph_row): Only define "clip" field if
11218 HAVE_WINDOW_SYSTEM is defined.
11219
11220 2008-02-01 Stefan Monnier <monnier@iro.umontreal.ca>
11221
11222 Fix up multi-tty merge.
11223
11224 * xterm.c (handle_one_xevent): Remove duplicate code and fix up nesting
11225 and indentation.
11226
11227 * xfaces.c (free_realized_face, clear_face_gcs):
11228 Include font_done_for_face in the input_blocked section, just in case.
11229
11230 * xdisp.c (decode_mode_spec): Use terminal-local coding systems.
11231 (get_char_face_and_encoding): Undo last change and remove the *other*
11232 duplicate definition (i.e. keep the one that's better scoped and that
11233 includes code for the font-backend).
11234
11235 * terminal.c (create_terminal): Default keyboard_coding to
11236 `no-conversion' and terminal_coding to `undecided'.
11237
11238 * lread.c (read1): Use XSETPVECTYPE to set a pseudovector's tag.
11239
11240 * fontset.c (free_realized_fontsets): Check that the table entry does
11241 contain a fontset before trying to compare it to `base'.
11242
11243 * emacs.c (main): Move syms_of_data, syms_of_fileio, syms_of_alloc,
11244 syms_of_charset, and syms_of_coding earlier because init_window_once
11245 now needs Vcoding_system_hash_table to be setup.
11246
11247 * coding.h (default_buffer_file_coding): Remove.
11248
11249 * coding.c (default_buffer_file_coding): Remove.
11250 (Fterminal_coding_system, Fkeyboard_coding_system): Use ->id rather
11251 than ->symbol, and use the terminal-local coding system.
11252 (syms_of_coding): Don't setup the coding-systems that are not
11253 terminal-local.
11254 (Fdefine_coding_system_internal): Use XCAR/XCDR.
11255
11256 * chartab.c (Fmake_char_table, make_sub_char_table, copy_char_table):
11257 Use XSETPVECTYPE now that XSETCHAR_TABLE doesn't set the tag anymore.
11258
11259 * alloc.c (Fmake_char_table, make_sub_char_table): Remove. They're now
11260 in chartab.c and were re-added here by mistake.
11261 (Fpurecopy): Use XSETPVECTYPE after copying a COMPILED pseudovector.
11262
11263 * doc.c (Fsnarf_documentation):
11264 * Makefile.in (temacs${EXEEXT}, mostlyclean): Move buildobj.lst from
11265 src to etc.
11266
11267 * ChangeLog.10: Add mistakenly removed entry.
11268
11269 2008-02-01 Dan Nicolaescu <dann@ics.uci.edu>
11270
11271 * Makefile.in (fringe.o, minibuf.o): Fix dependencies.
11272
11273 2008-02-01 Miles Bader <miles@gnu.org>
11274
11275 * xdisp.c (get_char_face_and_encoding): Remove extraneous definition.
11276 Add extra args to FACE_FOR_CHAR.
11277
11278 2008-02-01 Kenichi Handa <handa@m17n.org>
11279
11280 * keymap.c (where_is_internal_1): If key is a cons, store the copy
11281 in sequence.
11282
11283 * chartab.c (map_sub_char_table, map_char_table): If the range
11284 contains just one character, call the function with that character
11285 even if the depth is not 3.
11286
11287 2008-02-01 Jason Rumney <jasonr@gnu.org>
11288
11289 * w32font.c (w32font_text_extents): Calculate metrics for the
11290 whole string.
11291
11292 2008-02-01 Jason Rumney <jasonr@gnu.org>
11293
11294 * w32xfns.c (get_next_msg): Consolidate WM_PAINT messages.
11295
11296 2008-02-01 Jason Rumney <jasonr@gnu.org>
11297
11298 * w32term.c (x_set_glyph_string_clipping): Use
11299 get_glyph_string_clip_rects.
11300 (x_set_glyph_string_clipping_exactly, x_draw_glyph_string):
11301 Adjust for the change of struct glyph_string.
11302
11303 * w32font.c (w32font_draw): Do clipping here.
11304
11305 2008-02-01 Kenichi Handa <handa@m17n.org>
11306
11307 * xftfont.c (xftfont_draw): Adjust for the change of struct
11308 glyph_string.
11309
11310 * xterm.c (x_set_glyph_string_clipping): Use
11311 get_glyph_string_clip_rects.
11312 (x_set_glyph_string_clipping_exactly, x_draw_glyph_string):
11313 Adjust for the change of struct glyph_string.
11314
11315 * xdisp.c (get_glyph_string_clip_rects): Reflect s->row->clip to
11316 the resulting clip(s}.
11317 (expose_overlaps): Add arg r. Change callers. Set it to
11318 row->clip temporarily.
11319 (expose_window): Redraw rows overlapping the exposed area.
11320
11321 * dispextern.h (struct glyph_row): New member clip.
11322 (struct glyph_string): Delete members clip_x, clip_y, clip_width,
11323 clip_height, new member clip, and num_clips.
11324
11325 2008-02-01 Kenichi Handa <handa@m17n.org>
11326
11327 * data.c (Fchar_or_string_p): Fix docstring.
11328
11329 2008-02-01 Kenichi Handa <handa@m17n.org>
11330
11331 * xftfont.c (xftfont_draw): If s->font_info != s->face->font_info,
11332 create a temporary XftDraw object.
11333
11334 2008-02-01 Kenichi Handa <handa@m17n.org>
11335
11336 * font.c (Ffontp): Fix docstring.
11337
11338 * coding.c (detect_coding_iso_2022): Don't treat SI/SO codes as a
11339 strong evidence of ISO-2022.
11340
11341 2008-02-01 Kenichi Handa <handa@m17n.org>
11342
11343 * abbrev.c (abbrev_check_chars): Use CHAR_TABLE_REF, not
11344 SYNTAX_ENTRY_FOLLOW_PARENT.
11345
11346 2008-02-01 Stefan Monnier <monnier@iro.umontreal.ca>
11347
11348 * fns.c (weak_hash_tables): Rename from Vweak_hash_tables and change
11349 its type.
11350 (make_hash_table, copy_hash_table, sweep_weak_hash_tables, init_fns):
11351 Update to the new type of weak_hash_tables and next_weak.
11352
11353 * lisp.h (struct Lisp_Hash_Table): Change next_weak from Lisp_Object to
11354 a plain C pointer to Lisp_Hash_Table.
11355
11356 * lisp.h (XGCTYPE, GC_HASH_TABLE_P, GC_NILP, GC_NUMBERP, GC_NATNUMP)
11357 (GC_INTEGERP, GC_SYMBOLP, GC_MISCP, GC_VECTORLIKEP, GC_STRINGP)
11358 (GC_CONSP, GC_FLOATP, GC_VECTORP, GC_OVERLAYP, GC_MARKERP)
11359 (GC_INTFWDP, GC_BOOLFWDP, GC_OBJFWDP, GC_BUFFER_OBJFWDP)
11360 (GC_BUFFER_LOCAL_VALUEP, GC_SOME_BUFFER_LOCAL_VALUEP)
11361 (GC_KBOARD_OBJFWDP, GC_PSEUDOVECTORP, GC_WINDOW_CONFIGURATIONP)
11362 (GC_PROCESSP, GC_WINDOWP, GC_SUBRP, GC_COMPILEDP, GC_BUFFERP)
11363 (GC_SUB_CHAR_TABLE_P, GC_CHAR_TABLE_P, GC_BOOL_VECTOR_P, GC_FRAMEP)
11364 (GC_EQ): Remove since they've been identical to their non-GC_
11365 alter-egos ever since the markbit was eradicated.
11366
11367 * alloc.c:
11368 * buffer.c:
11369 * buffer.h:
11370 * data.c:
11371 * fileio.c:
11372 * filelock.c:
11373 * fns.c:
11374 * frame.h:
11375 * lisp.h:
11376 * macterm.c:
11377 * print.c:
11378 * process.c:
11379 * w32fns.c:
11380 * w32menu.c:
11381 * w32term.c:
11382 * xfns.c:
11383 * xmenu.c:
11384 * xterm.c: Replace uses of GC_* macros with the non-GC_ versions.
11385
11386 2008-02-01 Kenichi Handa <handa@m17n.org>
11387
11388 * chartab.c (map_sub_char_table): Make it work for the top-level
11389 char-table. Fix handling of parent char-table.
11390 (map_char_table): Adjust for the above change.
11391
11392 2008-02-01 Jason Rumney <jasonr@gnu.org>
11393
11394 * w32font.c (Qgdi): Rename from Qw32.
11395
11396 2008-02-01 Jason Rumney <jasonr@gnu.org>
11397
11398 * w32bdf.c (get_quoted_string): Make function static.
11399
11400 2008-02-01 Kenichi Handa <handa@m17n.org>
11401
11402 * xftfont.c (xftfont_open): If one of font's ASCII glyph has
11403 bigger ascent and descent than those of the font, use them as
11404 font's ascent and descent.
11405
11406 2008-02-01 Kenichi Handa <handa@m17n.org>
11407
11408 * Makefile.in (${lispsource}international/charprop.el): Move this
11409 target within "#ifdef HAVE_UNIDATA" and "#endif".
11410
11411 2008-02-01 Kenichi Handa <handa@m17n.org>
11412
11413 * Makefile.in (lisp): Add ${lispsource}language/tai-viet.el.
11414 (shortlisp): Add ../lisp/language/tai-viet.el.
11415
11416 2008-02-01 Ulrich Mueller <ulm@gentoo.org>
11417
11418 * Makefile.in (${lispsource}international/charprop.el): Depend on
11419 temacs${EXEEXT}.
11420
11421 2008-02-01 Jason Rumney <jasonr@gnu.org>
11422
11423 * w32font.c (w32font_close): Delete the GDI font object.
11424
11425 * w32menu.c: Include character.h.
11426
11427 * w32proc.c: Likewise.
11428
11429 * w32select.c: Likewise.
11430
11431 * makefile.w32-in (w32proc.o): Depend on character.h.
11432
11433 2008-02-01 Jason Rumney <jasonr@gnu.org>
11434
11435 * w32fns.c (syms_of_w32fns): Use DEFSYM macro.
11436
11437 * w32menu.c (syms_of_w32menu): Likewise.
11438
11439 * w32proc.c (syms_of_ntproc): Likewise.
11440
11441 * w32select.c (syms_of_w32select): Likewise.
11442
11443 * w32term.c (syms_of_w32term): Likewise.
11444
11445 2008-02-01 Jason Rumney <jasonr@gnu.org>
11446
11447 * w32font.c (w32font_draw): Delete brush after using it.
11448
11449 2008-02-01 Jason Rumney <jasonr@gnu.org>
11450
11451 * w32font.c (w32font_open): Don't set font_idx.
11452 (w32font_text_extents): Try GetTextExtentPoint32W before defaulting
11453 to font settings.
11454 (w32font_draw): Fill background explicitly.
11455
11456 2008-02-01 Jason Rumney <jasonr@gnu.org>
11457
11458 * w32term.c (w32_initialize): Don't call w32font_initialize.
11459
11460 * w32font.c (w32font_info): Remove subranges.
11461 (QCsubranges, Qmodern, Qswiss, Qroman): Remove.
11462 (QCfamily, Qmonospace, Qsans_serif, Qmono, Qsans, Qsans__serif)
11463 (Qraster, Qoutline, Qlatin, Qgreek, Qcoptic, Qcyrillic, Qarmenian)
11464 (Qhebrew, Qarabic, Qsyriac, Qnko, Qthaana, Qdevanagari, Qbengali)
11465 (Qgurmukhi, Qgujarati, Qoriya, Qtamil, Qtelugu, Qkannada)
11466 (Qmalayalam, Qsinhala, Qthai, Qlao, Qtibetan, Qmyanmar, Qgeorgian)
11467 (Qhangul, Qethiopic, Qcherokee, Qcanadian_aboriginal, Qogham)
11468 (Qrunic, Qkhmer, Qmongolian, Qsymbol, Qbraille, Qhan)
11469 (Qideographic_description, Qcjk_misc, Qkana, Qbopomofo, Qkanbun)
11470 (Qyi, Qbyzantine_musical_symbol, Qmusical_symbol, Qmathematical):
11471 New symbols.
11472 (font_callback_data): New struct.
11473 (w32font_list, w32font_match): Use it.
11474 (w32font_open): Don't populate subranges.
11475 (w32font_has_char): Use script Lisp symbols, not subrange bitmask.
11476 (w32font_encode_char): Always return unicode code-point as-is.
11477 (w32font_text_extents): Supply a transformation matrix to
11478 GetGlyphOutline. Never look up by glyph index. Avoid looping
11479 twice. Use unicode version of GetTexExtentPoint32 instead of
11480 glyph index version.
11481 (set_fonts_frame): Remove.
11482 (w32_enumfont_pattern_entity): Add frame parameter, use it to
11483 set frame parameter. Use backward compatible fake foundries.
11484 Save generic family in extra slot under QCfamily. Make width slot
11485 constant. Save QCspacing value. Save list of scripts instead of
11486 binary subranges.
11487 (w32_generic_family, logfonts_match, font_matches_spec): New functions.
11488 (add_font_entity_to_list): Use font_callback_data struct. Filter
11489 unwanted fonts.
11490 (add_one_font_entity_to_list): Use font_callback_data struct.
11491 (w32_registry): Default to iso10646_1.
11492 (fill_in_logfont): Use dpi from extra slot. Don't bother with
11493 string font registries. Don't fill in font name if it is a generic
11494 family name, fill family instead. Use spacing, family and script
11495 extra info to fill pitch, family and charset fields.
11496 (list_all_matching_fonts): Use font_callback_data struct.
11497 (unicode_range_for_char): Remove.
11498 (font_supported_scripts): New function.
11499 (w32font_initialize): Remove.
11500 (syms_of_w32font): Update which symbols are defined.
11501
11502 2008-02-01 Jason Rumney <jasonr@gnu.org>
11503
11504 * font.c (font_pixel_size): Reverse assq_no_quit args.
11505
11506 * w32term.h (FONT_WIDTH): Report max width, not average.
11507 (FONT_MAX_WIDTH): Remove.
11508 (FONT_AVG_WIDTH): New macro.
11509
11510 * xfaces.c (Fx_list_fonts) [WINDOWSNT]: Remove Windows only
11511 redefinition of FONT_WIDTH.
11512
11513 * w32term.c (x_font_min_bounds): Use FONT_AVG_WIDTH.
11514 (w32_cache_char_metrics): Use FONT_WIDTH.
11515
11516 * w32fns.c (w32_load_system_font, w32_list_fonts): Use FONT_AVG_WIDTH.
11517
11518 2008-02-01 Jason Rumney <jasonr@gnu.org>
11519
11520 * w32font.c (w32font_open): Make lfHeight negative.
11521
11522 * w32fns.c (x_default_font_parameter): Use new style font name.
11523 (Fx_create_frame, x_create_tip_frame): Initialize resx and resy.
11524
11525 2008-02-01 Jason Rumney <jasonr@gnu.org>
11526
11527 * w32font.c (QCsubranges): New symbol.
11528 (w32font_open, w32font_has_char): Get subranges from subproperty
11529 of extra.
11530 (w32_enumfont_pattern_entity): Set subranges as subproperty of extra.
11531 (syms_of_w32font): Define :subranges symbol.
11532
11533 * font.c (font_put_extra): Expose externally.
11534
11535 * font.h (font_put_extra): Move declaration from font.c.
11536
11537 * font.c (Ffont_get): Use font driver to determine otf capability.
11538 (adjust_anchor): Check if driver defines anchor_point before using.
11539
11540 * w32font.c (w32font_open): Handle size, height and pixel_size better.
11541 (w32font_draw): Use options.
11542 (w32_enumfont_pattern_entity): Set size to 0 for scalable fonts.
11543 Fix detection of truetype fonts.
11544 (registry_to_w32_charset): Handle charsets other than iso8859-1
11545 expressed as lisp symbols.
11546 (w32_registry): Express charset as lisp symbol.
11547 (fill_in_logfont): Reverse pixel and point height logic.
11548 Don't set width here. Set quality to default.
11549
11550 * w32fns.c (w32_load_system_font): Fix detecting FIXED_PITCH fonts.
11551 (x_to_w32_font): Fill in lfPitchAndFamily correctly.
11552
11553 * xterm.c (x_draw_glyph_string_foreground) [USE_FONT_BACKEND]:
11554 Remove redundant loop and allocation.
11555
11556 * makefile.w32-in (font.o, w32font.o): New objects.
11557 (fontset.o, xdisp.o, xfaces.o, w32fns.o, w32term.o): Depend on font.h.
11558 (FONTOBJ): New group of objects conditioned on USE_FONT_BACKEND.
11559
11560 * xdisp.c (fill_composite_glyph_string): Make the first arg to
11561 STORE_XCHARB a valid l-value.
11562
11563 * w32term.c (w32_native_per_char_metric): Swap width and rbearing
11564 calculations for non-Truetype fonts.
11565 (x_draw_glyph_string): Sync with xterm.c.
11566 (x_draw_glyph_string_foreground) [USE_FONT_BACKEND]:
11567 Remove redundant code.
11568 (w32_initialize) [USE_FONT_BACKEND]: Call w32font_initialize.
11569
11570 * w32term.h (w32_output_data) [USE_FONT_BACKEND]: Add fontp member.
11571 (FRAME_FONT_OBJECT) [USE_FONT_BACKEND]: New macro from xterm.h.
11572
11573 * w32fns.c [USE_FONT_BACKEND]: Port font backend changes from xfns.c.
11574 (x_to_w32_charset, w32_to_x_charset): Expose externally.
11575
11576 * w32font.c: New file for w32 font backend.
11577
11578 2008-02-01 Kenichi Handa <handa@m17n.org>
11579
11580 * term.c: Don't include "buffer.h" twice.
11581
11582 2008-02-01 Kenichi Handa <handa@m17n.org>
11583
11584 * character.c (Funibyte_string): New function.
11585 (syms_of_character): Defsubr it.
11586
11587 2008-02-01 Jason Rumney <jasonr@gnu.org>
11588
11589 * w32term.c [USE_FONT_BACKEND]:
11590 (x_get_font_repertory, note_mouse_movement, x_set_mouse_face_gc)
11591 (x_set_glyph_string_clipping, x_set_glyph_string_clipping_exactly)
11592 (x_draw_glyph_string, x_draw_glyph_string_foreground)
11593 (x_draw_composite_glyph_string_foreground, x_new_fontset2)
11594 (x_free_frame_resources): Sync with xterm.c.
11595
11596 2008-02-01 Andreas Schwab <schwab@suse.de>
11597
11598 * lread.c (read1): Use CHAR_TABLE_STANDARD_SLOTS to validate
11599 char-table size.
11600
11601 2008-02-01 Kenichi Handa <handa@m17n.org>
11602
11603 * font.c (check_otf_features): Define it regardless of HAVE_LIBOTF.
11604
11605 2008-02-01 Kenichi Handa <handa@m17n.org>
11606
11607 * ftfont.c (ftfont_driver): Delete font_otf_gsub and
11608 font_otf_gpos, add font_drive_otf.
11609
11610 * fontset.c (fontset_find_font): Pay attention to font size
11611 specified for a font.
11612 (reorder_font_vector): Check contents of font_def.
11613
11614 * font.c (struct otf_list): Delete it.
11615 (otf_list): Make it a lisp variable.
11616 (otf_open): Use lispy otf_list.
11617 (generate_otf_features): Rename from parse_gsub_gpos_spec.
11618 (check_otf_features): New function.
11619 (font_otf_DeviceTable, font_otf_ValueRecord, font_otf_Anchor):
11620 New functions.
11621 (font_drive_otf): New function merging font_otf_gsub and
11622 font_otf_gpos.
11623 (font_open_for_lface): New arg spec. Change argument order.
11624 (font_load_for_face): Adjust for the change of font_open_for_lface.
11625 (Ffont_drive_otf): New function merging Ffont_otf_gsub and
11626 Ffont_otf_gpos.
11627 (syms_of_font): Staticpro otf_list. Delete defsubr of
11628 Sfont_otf_gsub and Sfont_otf_gpos. Defsubr Sfont_drive_otf.
11629
11630 * xfaces.c (set_font_frame_param): Adjust for the change of
11631 font_open_for_lface.
11632
11633 * font.h (font_open_for_lface): Adjust prototype.
11634 (struct font_driver): Delete members otf_gsub and otf_gpos, add
11635 member otf_drive.
11636 (font_otf_gsub, font_otf_gpos): Delete externs.
11637 (font_drive_otf): Extern it.
11638
11639 2008-02-01 Kenichi Handa <handa@m17n.org>
11640
11641 * font.c (font_at): If the window W is not on a window system,
11642 return Qnil.
11643
11644 * coding.c (produce_chars, encode_coding): Don't call
11645 insert_from_gap if no characters to produce.
11646
11647 2008-02-01 Kenichi Handa <handa@m17n.org>
11648
11649 * fontset.c (free_realized_fontsets): Avoid unnecessary call of
11650 Fclear_face_cache.
11651
11652 * xfaces.c (face_for_font): Check also face->font==font->font.font.
11653
11654 2008-02-01 Miles Bader <miles@gnu.org>
11655
11656 * emacs.c (main): Change default value of `enable_font_backend' to 1.
11657 Parse "--disable-font-backend" option.
11658 (standard_args): Add "--disable-font-backend" option.
11659
11660 2008-02-01 Kenichi Handa <handa@m17n.org>
11661
11662 * fontset.c (fontset_find_font): New function.
11663 (fontset_font): Use fontset_find_font.
11664 (make_fontset_for_ascii_face): Don't set face ID in rfont_def.
11665 Register the specified font for all Latin characters.
11666 (new_fontset_from_font): Register the specified font for all Latin
11667 characters.
11668 (dump_fontset): For a realized fontset, include the base fontset
11669 name in the returned vector.
11670
11671 2008-02-01 Kenichi Handa <handa@m17n.org>
11672
11673 * character.h (CHAR_STRING): Cast C to unsigned on calling
11674 char_string.
11675
11676 * character.c (char_string): Type of arg C changed to unsigned.
11677 Signal an error if C is an invalid character code.
11678
11679 * editfns.c (general_insert_function, Fchar_to_string):
11680 Use CHARACTERP, not INTEGERP.
11681
11682 2008-02-01 Kenichi Handa <handa@m17n.org>
11683
11684 * character.h (MIN_MULTIBYTE_LEADING_CODE)
11685 (MAX_MULTIBYTE_LEADING_CODE): New macros.
11686
11687 * regex.c (analyse_first): Fix for multibyte characters in "case
11688 charset:" and "case categoryspec:".
11689
11690 2008-02-01 Andreas Schwab <schwab@suse.de>
11691
11692 * Makefile.in (LIBES): Move standard libraries to the end.
11693
11694 2008-02-01 Kenichi Handa <handa@m17n.org>
11695
11696 * alloc.c (Fgarbage_collect): If nextb->text->inhibit_shrinking is
11697 nonzero, don't shrink the buffer nextb.
11698
11699 * buffer.h (struct buffer_text): New member inhibit_shrinking.
11700
11701 * coding.c (coding_alloc_by_making_gap): New arg offset.
11702 (alloc_destination): Call coding_alloc_by_making_gap with the arg
11703 offset.
11704 (decode_coding_iso_2022): Update coding->safe_charsets.
11705 (decode_coding_gap): Temporarily set
11706 current_buffer->text->inhibit_shrinking to 1.
11707
11708 2008-02-01 Kenichi Handa <handa@m17n.org>
11709
11710 * xterm.c (x_draw_composite_glyph_string_foreground): Fix
11711 indexing into elements of s->cmp and s->char2b.
11712
11713 2008-02-01 Juanma Barranquero <lekktu@gmail.com>
11714
11715 * regex.c (RE_STRING_CHAR_AND_LENGTH) [! emacs]: Add missing arg `len'.
11716
11717 2008-02-01 Kenichi Handa <handa@m17n.org>
11718
11719 * regex.c (GET_CHAR_BEFORE_2, GET_CHAR_AFTER): Check the variable
11720 target_multibyte instead of multibyte.
11721 (re_match_2_internal): Call bcmp_translate with target_multibyte.
11722 (bcmp_translate): Change the argument name from multibyte to
11723 target_multibyte.
11724
11725 2008-02-01 Kenichi Handa <handa@m17n.org>
11726
11727 These changes are to compile a regexp into a pattern that can be
11728 used both for multibyte and unibyte targets.
11729
11730 * Makefile.in (search.o): Depend on charset.h.
11731
11732 * character.c (multibyte_char_to_unibyte_safe): New function.
11733
11734 * search.c: Include "charset.h".
11735 (compile_pattern_1): Delete argument multibyte. Don't set
11736 cp->buf.target_multibyte here. Set cp->buf.charset_unibyte.
11737 (compile_pattern): Don't compare cp->buf.target_multibyte.
11738 Compare cp->buf.charset_unibyte.
11739 (compile_pattern): Set cp->buf.target_multibyte.
11740
11741 * lisp.h (multibyte_char_to_unibyte_safe): Extern it.
11742
11743 * regex.h (struct re_pattern_buffer): New member charset_unibyte.
11744
11745 * regex.c (RE_STRING_CHAR, RE_STRING_CHAR_AND_LENGTH): New arg
11746 multibyte. Change callers.
11747 (RE_CHAR_TO_MULTIBYTE, RE_CHAR_TO_UNIBYTE): New macros.
11748 (MAKE_CHAR_MULTIBYTE, MAKE_CHAR_UNIBYTE): Delete. Change callers
11749 to use RE_CHAR_TO_MULTIBYTE and RE_CHAR_TO_UNIBYTE, respectively.
11750 (SETUP_ASCII_RANGE, SETUP_UNIBYTE_RANGE): New macros.
11751 (SETUP_MULTIBYTE_RANGE): Generate a more compact range_table.
11752 (regex_compile): Make the compiled pattern usable both for
11753 multibyte and unibyte targets.
11754 (analyse_first): Make the fastmap usable both for multibyte and
11755 unibyte targets.
11756 (TRANSLATE_VIA_MULTIBYTE): Delete.
11757 (re_match_2_internal): Pay attention to the case that the
11758 multibyteness of bufp and target may be different.
11759
11760 2008-02-01 Kenichi Handa <handa@m17n.org>
11761
11762 * xdisp.c (x_produce_glyphs): When a font is not found, make the
11763 empty box occupy at least one column width.
11764
11765 2008-02-01 Miles Bader <miles@gnu.org>
11766
11767 * Makefile.in: Remove redundant HAVE_XFT clause.
11768
11769 2008-02-01 Kenichi Handa <handa@m17n.org>
11770
11771 * xrdb.c (x_load_resources): Setup the default fontSet X resource.
11772
11773 2008-02-01 Kenichi Handa <handa@m17n.org>
11774
11775 * fontset.c (Finternal_char_font): Fix for the case of POSITION
11776 being nil.
11777
11778 2008-02-01 Kenichi Handa <handa@m17n.org>
11779
11780 * xftfont.c (xftfont_open): Call FcConfigSubstitute.
11781
11782 2008-02-01 Kenichi Handa <handa@m17n.org>
11783
11784 * xftfont.c (xftfont_open): Don't enable antialias explicitly.
11785
11786 2008-02-01 Kenichi Handa <handa@m17n.org>
11787
11788 * search.c (simple_search): Fix previous change.
11789
11790 2008-02-01 Kenichi Handa <handa@m17n.org>
11791
11792 * xftfont.c (ftfont_font_format): Extern declaration.
11793
11794 * frame.c (x_set_font): Fix the second arg to fs_query_fontset.
11795
11796 * xfont.c (xfont_driver): Initialize ftfont_driver.type by 0.
11797 (xfont_list): Don't directly use Lisp_Object as an operand of &&.
11798
11799 * ftfont.c (ftfont_driver): Initialize ftfont_driver.type by 0.
11800 (ftfont_font_format): Fix previous change.
11801
11802 * font.h (Ffont_xlfd_name): EXFUN it.
11803
11804 * font.c (font_parse_xlfd): Fix the array size of `f'.
11805 (register_font_driver): Use EQ to compare driver->type.
11806
11807 * xfns.c (xic_create_xfontset2) [USE_FONT_BACKEND]: New function.
11808 (create_frame_xic) [USE_FONT_BACKEND]: Call xic_create_xfontset2.
11809 (xic_set_xfontset) [USE_FONT_BACKEND]: Likewise.
11810
11811 2008-02-01 Kenichi Handa <handa@m17n.org>
11812
11813 * ftfont.c (ftfont_pattern_entity, ftfont_list_generic_family)
11814 (ftfont_list, ftfont_font_format): Check if FC_FONTFORMAT is defined.
11815
11816 2008-02-01 Kenichi Handa <handa@m17n.org>
11817
11818 * xfont.c (xfont_open): Set font->format.
11819
11820 * xftfont.c (xftfont_open): Set font->format.
11821
11822 * ftfont.c (ftfont_pattern_entity): Add fontformat in a pattern.
11823 (ftfont_list): Include FC_FONTFORMAT in FcObject.
11824 (ftfont_open): Set font->format.
11825 (ftfont_font_format): New function.
11826
11827 * font.h (struct font): New member format.
11828
11829 * font.c (Qopentype): New variable.
11830 (syms_of_font): Defsym it.
11831 (Fquery_font): Change the format of the last element of the return
11832 value.
11833
11834 2008-02-01 Kenichi Handa <handa@m17n.org>
11835
11836 * xfns.c (xic_create_xfontset): Try the default fontset name as a
11837 last resort.
11838
11839 2008-02-01 Kenichi Handa <handa@m17n.org>
11840
11841 * coding.c (detect_coding_charset): Fix detection of multi-byte
11842 charset.
11843
11844 2008-02-01 Bob Halley <halley@play-bow.org> (tiny change)
11845
11846 * ccl.c (ccl_driver): If DST is NULL, set ccl->produced to 0.
11847
11848 2008-02-01 Kenichi Handa <handa@m17n.org>
11849
11850 * xdisp.c (get_next_display_element): Set it->face_id for the
11851 first component of a composition.
11852 (x_produce_glyphs): Check if the font is changed or not for composition.
11853
11854 2008-02-01 Kenichi Handa <handa@m17n.org>
11855
11856 * fontset.c (Qlatin): New variable.
11857 (syms_of_fontset): Define it as a lisp symbol.
11858 (Fset_fontset_font): If TARGET is `latin', use FONT_SPEC for ASCII.
11859
11860 2008-02-01 Kenichi Handa <handa@m17n.org>
11861
11862 * font.c (font_unparse_fcname): Pay attention to the case that
11863 some of font property is a null string.
11864
11865 2008-02-01 Kenichi Handa <handa@m17n.org>
11866
11867 * term.c: Include "composite.h".
11868 (encode_terminal_code): Output all components of composition.
11869 Check the size of encode_terminal_src.
11870 (produce_glyphs): For composition, call produce_composite_glyph.
11871 (append_composite_glyph, produce_composite_glyph): New functions.
11872
11873 * xdisp.c (x_produce_glyphs): In handling composition, if a font
11874 is not found, get font_info from the current ascii face.
11875
11876 2008-02-01 Kenichi Handa <handa@m17n.org>
11877
11878 * fileio.c (Finsert_file_contents): On replacing, temporarily bind
11879 buffer-file-name to Qnil before calling insert_from_buffer.
11880
11881 * font.c (font_unparse_fcname): Pay attention to the case that
11882 foundry is a null string.
11883
11884 2008-02-01 Kenichi Handa <handa@m17n.org>
11885
11886 * ftfont.c (ftfont_list): Allow registry "unicode-sip".
11887
11888 * font.c (Qunicode_sip): New variable.
11889 (syms_of_font): Declare it as a Lisp symbol.
11890
11891 * font.h (Qunicode_sip): Extern it.
11892
11893 2008-02-01 Kenichi Handa <handa@m17n.org>
11894
11895 * composite.c (get_composition_id): Pay attention to TAB component.
11896
11897 * xterm.c (x_draw_composite_glyph_string_foreground): Don't draw
11898 TAB. Adjust for the change of s->char2b which always points to
11899 the first element of allocated memory.
11900
11901 * xftfont.c (xftfont_text_extents): Fix calculation of descent value.
11902
11903 * xdisp.c (handle_composition_prop): Set it->c to the first
11904 non-TAB component.
11905 (fill_composite_glyph_string): Change argument.
11906 (BUILD_COMPOSITE_GLYPH_STRING): Adjust for the above change.
11907 (x_produce_glyphs): Fix handling of left/right padding.
11908
11909 2008-02-01 Kenichi Handa <handa@m17n.org>
11910
11911 * coding.c (detect_coding_system): Fix for handling off
11912 inhibit_iso_escape_detection. Fix for the case that no coding
11913 system is defined for a specific coding category.
11914
11915 2008-02-01 Kenichi Handa <handa@m17n.org>
11916
11917 * font.c (font_matching_entity): Delete unused local var.
11918
11919 * xftfont.c (xftfont_open): Call XftDefaultSubstitute before
11920 opening a font.
11921
11922 * fileio.c (Finsert_file_contents): On recovering a file, assume
11923 Unix-like eol.
11924 (choose_write_coding_system): On auto-saving a file, force
11925 Unix-like eol.
11926
11927 * coding.c (setup_coding_system): Fix setting of
11928 coding->common_flags based on eol_type.
11929 (coding_inherit_eol_type): If PARENT is not nil, be sure to
11930 inherit from it.
11931
11932 2008-02-01 Kenichi Handa <handa@m17n.org>
11933
11934 * alloc.c (NSTATICS): Increas to 0x600.
11935
11936 2008-02-01 Kenichi Handa <handa@m17n.org>
11937
11938 * ftfont.c (ftfont_driver): Set ftfont_driver.match to ftfont_match.
11939 (ftfont_list): Don't check :name property.
11940 (ftfont_match): New function.
11941 (ftfont_pattern_entity): If the pattern doesn't contain
11942 FC_SPACING, don't assume FC_MONO.
11943
11944 * font.h (struct font_driver): New member `match'.
11945 (font_update_drivers): Adjust prototype.
11946
11947 * font.c (font_parse_fcname, font_parse_name): Don't change :name
11948 property of FONT.
11949 (LGSTRING_HEADER_SIZE, LGSTRING_GLYPH_SIZE, check_gstring): Define
11950 them unconditionally.
11951 (font_matching_entity): New function.
11952 (font_open_by_name): Try font_matching_entity if exact match is
11953 not found.
11954 (font_update_drivers): Delete the arg FONT. Return a list of
11955 actually used backends. Don't free faces, font caches here.
11956 Don't store data in frame parameters. Don't call x_set_font.
11957 (Ffont_spec): Store :name property as is.
11958 (Ffont_get): Check HAVE_LIBOTF before calling font_otf_capability.
11959 (Ffont_otf_gsub): Call font->driver->otf_gsub instead of font_otf_gsub.
11960 (Ffont_otf_gpos): Call font->driver->otf_gpos instead of font_otf_gpos.
11961 (Ffont_otf_alternates): Check if the driver has otf_gsub function.
11962 Call font->driver->otf_gsub instead of font_otf_gsub.
11963
11964 * frame.c (x_set_font_backend): Do more works that were done in
11965 font_update_drivers before.
11966
11967 * xfont.c (xfont_match): New function.
11968 (xfont_driver): Set xfont_driver.match to xfont_match.
11969 (xfont_draw): Set font in GC if necessary.
11970
11971 * ftxfont.c (ftxfont_match): New function.
11972 (syms_of_ftxfont): Set ftxfont_driver.match to ftxfont_match.
11973
11974 * xftfont.c (xftfont_match): New function.
11975 (syms_of_xftfont): Set xftfont_driver.match to xftfont_match.
11976
11977 2008-02-01 Kenichi Handa <handa@m17n.org>
11978
11979 * font.h (struct font): New member scalable.
11980 (struct font_driver): New arg ALTERANTE_SUBST to otf_gsub.
11981 (font_otf_gsub): Adjust prototype.
11982
11983 * font.c (font_otf_capability): Fix handling of the default langsys.
11984 (parse_gsub_gpos_spec): Change type to void. New arg nbytes.
11985 Check the contents of SPEC.
11986 (LGSTRING_HEADER_SIZE, LGSTRING_GLYPH_SIZE): New macros.
11987 (check_gstring): New function.
11988 (REPLACEMENT_CHARACTER): New macro.
11989 (font_otf_gsub): New arg alternate_subst. Be sure to set all
11990 glyph codes of GSTRING.
11991 (font_otf_gpos): Be sure to set all glyph codes of GSTRING.
11992 (font_prepare_composition): Set cmp->glyph_len.
11993 (font_open_entity): Set font->scalable.
11994 (Ffont_get): Handle :otf property.
11995 (Ffont_otf_gsub, Ffont_otf_gpos, Ffont_otf_alternates): New
11996 functions.
11997 (Fquery_font): Use font->font.full_name.
11998 (syms_of_font): Defsubr Sfont_otf_gsub, Sfont_otf_gpos, and
11999 Sfont_otf_alternates.
12000
12001 * ftfont.c (ftfont_open): Set font->font.full_name and
12002 font->font.name properly. Fix calculation of font->font.height
12003 and font->min_width.
12004
12005 * ftxfont.c (ftxfont_create_gcs): New function.
12006 (ftxfont_draw_bitmap): Fix arg to ftfont_driver.get_bitmap.
12007 (ftxfont_draw_backgrond): Fix filling region.
12008 (ftxfont_default_fid): New function.
12009 (ftxfont_open): Set xfont->fid to the return value of
12010 ftxfont_default_fid.
12011 (ftxfont_prepare_face): Use ftxfont_create_gcs to create GCs.
12012 (ftxfont_done_face): Free only GCs that are created by
12013 ftxfont_create_gcs.
12014 (ftxfont_draw): If face->gc != s->gc, create proper GCs.
12015
12016 * xterm.c (x_set_glyph_string_clipping_exactly) [USE_FONT_BACKEND]:
12017 Clip to src->width, etc (not src->clip_XXX).
12018
12019 * xfns.c (x_create_tip_frame) [USE_FONT_BACKEND]: Handle
12020 FontBackend frame parameter.
12021
12022 2008-02-01 Kenichi Handa <handa@m17n.org>
12023
12024 * font.h (struct font_driver_list): New member `on'.
12025 (Fclear_font_cache): EXFUN it.
12026 (font_update_drivers): Extern it.
12027
12028 * font.c (font_unparse_fcname): Fix typo (swidth->width).
12029 (font_list_entities): Check driver_list->on.
12030 (register_font_driver): Initalize `on' member to 0.
12031 (font_update_drivers): New function.
12032 (Fclear_font_cache): Check driver_list->on.
12033
12034 * frame.h (Qfont_backend): Extern it.
12035 (x_set_font_backend): Extern it.
12036
12037 * frame.c (Qfont_backend): New variable.
12038 (frame_parms): New element for font-backend.
12039 (x_set_font_backend): New function.
12040
12041 * xfns.c (Fx_create_frame) [USE_FONT_BACKEND]: Handle
12042 FontBackend frame parameter.
12043 (x_frame_parm_handlers) [USE_FONT_BACKEND]: New element
12044 x_set_font_backend.
12045
12046 * xfont.c (xfont_list): Don't try listing by :name property if the
12047 name is not for XLFD.
12048
12049 2008-02-01 Kenichi Handa <handa@m17n.org>
12050
12051 * font.h (LGLYPH_FROM, LGLYPH_TO, LGLYPH_SET_FROM)
12052 (LGLYPH_SET_TO): New macros.
12053 (LGLYPH_XOFF, LGLYPH_YOFF, LGLYPH_WADJUST): Check if adjustment
12054 element of G is vector or not.
12055 (font_at): Extern it.
12056
12057 * font.c: Include window.h.
12058 (font_lispy_object): New function.
12059 (font_prepare_composition): Check LGLYPH_FORM (g) to detect the
12060 end of valid glyph.
12061 (font_close_object): Fix getting (struct font *).
12062 (font_at): New function.
12063 (Ffont_get): If FONT is a font-object, get entity from it.
12064 (Ffont_make_gstring): Initialize elements of glyphs with nil.
12065 (Ffont_fill_gstring): Use macro LGSTRING_XXX and LGLYPH_XXX. Fix
12066 range check.
12067 (Ffont_at): New function.
12068 (syms_of_font): Defsubr Sfont_at.
12069
12070 * xdisp.c (it_props): Move the entry for Qauto_composed to just
12071 before the entry for Qcomposition.
12072 (handle_auto_composed_prop): Call auto-composition-function with 4 args.
12073 (handle_composition_prop) [USE_FONT_BACKEND]: Set it->face_id from
12074 the font in gstring.
12075 (fill_composite_glyph_string) [USE_FONT_BACKEND]: Check
12076 LGLYPH_FORM (g) to detect the end of valid glyph.
12077 (x_produce_glyphs) [USE_FONT_BACKEND]: Don't update it->face_id if
12078 we are composing with gstring.
12079
12080 * xterm.c (x_draw_composite_glyph_string_foreground) [USE_FONT_BACKEND]:
12081 Check if adjustment is vector or not.
12082
12083 * Makefile.in (font.o): Make it depends on window.h.
12084
12085 2008-02-01 Kenichi Handa <handa@m17n.org>
12086
12087 * xterm.c (x_draw_composite_glyph_string_foreground): Check if
12088 adjustment is vector or not.
12089
12090 2008-02-01 Miles Bader <miles@gnu.org>
12091
12092 * character.h (CHECK_CHARACTER): Redefine in terms of CHECK_TYPE.
12093
12094 2008-02-01 Kenichi Handa <handa@m17n.org>
12095
12096 * font.h (LGLYPH_XOFF, LGLYPH_YOFF, LGLYPH_WIDTH, LGLYPH_WADJUST)
12097 (LGLYPH_SET_WIDTH): Adjusted for the change of LGLYPH format.
12098 (LGLYPH_ADJUSTMENT, LGLYPH_SET_ADJUSTMENT): New macros.
12099
12100 * font.c (font_merge_old_spec): Treat '*' in foundry as a wild card.
12101 (DEVICE_DELTA): Fix typo.
12102 (font_otf_gpos, font_prepare_compositio): Adjust for the change of
12103 LGLYPH format.
12104
12105 * xterm.c (x_draw_composite_glyph_string_foreground): Adjust for
12106 the change of LGLYPH format.
12107
12108 2008-02-01 Kenichi Handa <handa@m17n.org>
12109
12110 * ftfont.c (ftfont_list): Fix typo.
12111 (ftfont_build_basic_charsets): Don't include letters with diacritics.
12112
12113 2008-02-01 Jan Djärv <jan.h.d@swipnet.se>
12114
12115 * xfaces.c (realize_non_ascii_face): Set face->extra to NULL.
12116
12117 * xftfont.c (xftfont_done_face): Call XftDrawDestroy only if
12118 xftface_info is non-NULL.
12119
12120 2008-02-01 Jan Djärv <jan.h.d@swipnet.se>
12121
12122 * ftfont.c (ftfont_list): Move misplaced #endif.
12123
12124 2008-02-01 Kenichi Handa <handa@m17n.org>
12125
12126 * ftfont.c (ftfont_list): Pay attention to the case that
12127 FC_CAPABILITY is not defined.
12128
12129 2008-02-01 Kenichi Handa <handa@m17n.org>
12130
12131 * xftfont.c (xftfont_open): Set charset related members to -1.
12132
12133 * ftfont.c (ftfont_list): Handle QCotf property. Fix handling of
12134 QCname.
12135 (ftfont_open): Set charset related members to -1.
12136
12137 * fontset.c (Votf_script_alist): New variable.
12138 (syms_of_fontset): Initialize it.
12139 (fontset_font): Delete unused variable.
12140
12141 * fontset.h (Votf_script_alist): Extern it.
12142
12143 * font.c (font_find_for_lface): Optimize code.
12144
12145 * font.h (font_close_object, font_merge_old_spec): Extern them.
12146
12147 2008-02-01 Kenichi Handa <handa@m17n.org>
12148
12149 * font.c (QCscalable, Qc, Qm, Qp, Qd): New variables.
12150 (syms_of_font): Initialize them.
12151 (font_pixel_size): Allow float value in dpi.
12152 (font_prop_validate_type): Delete.
12153 (font_prop_validate_symbol, font_prop_validate_style): Change argument.
12154 Change caller.
12155 (font_prop_validate_non_neg): Rename from font_prop_validate_size.
12156 (font_prop_validate_extra): Delete.
12157 (font_prop_validate_spacing): New function.
12158 (font_property_table): Add elements for all known properties.
12159 (get_font_prop_index): Rename from check_font_prop_name. New
12160 argument FROM. Change caller.
12161 (font_prop_validate): Validate all known properties.
12162 (font_put_extra): Delete argument force. Change caller.
12163 (font_expand_wildcards): Make it static. Fix the way of shrinking
12164 the possible range.
12165 (font_parse_xlfd): Delete argument merge. Fix handling of RESX,
12166 RESY, SPACING, and AVGWIDTH. Don't validate property values here.
12167 Change caller.
12168 (font_unparse_xlfd): Handle dpi, spacing, and scalable properties.
12169 (font_parse_fcname): Delete argument merge. Fix parsing of point
12170 size. Don't validate properties values here. Change caller.
12171 (font_unparse_fcname): Handle dpi, spacing, and scalable properties.
12172 (font_open_by_name): Delete unused variable.
12173 (Ffont_spec): Likewise. Validate property values.
12174 (Ffont_match_p): New function.
12175
12176 * font.h (QCscalable): Extern it.
12177 (font_parse_xlfd, font_parse_fcname): Adjust prototype.
12178
12179 * ftfont.c (ftfont_list): Handle properties dpi, spacing, and scalable.
12180
12181 * xfont.c (xfont_query_font): Adjust for the change of font_parse_xlfd.
12182 (xfont_list_pattern): New function.
12183 (xfont_list): Use xfont_list_pattern.
12184
12185 2008-02-01 Kenichi Handa <handa@m17n.org>
12186
12187 * font.h (Flist_fonts): EXFUN it.
12188
12189 2008-02-01 Jason Rumney <jasonr@gnu.org>
12190
12191 * w32term.c (w32_initialize): Add back smoothing_type and
12192 smoothing_enabled definitions.
12193
12194 2008-02-01 Kenichi Handa <handa@m17n.org>
12195
12196 * xterm.c (x_draw_glyph_string) [USE_FONT_BACKEND]: Check
12197 s->face->font on determining underline position.
12198
12199 2008-02-01 Kenichi Handa <handa@m17n.org>
12200
12201 * font.c (font_parse_xlfd): Fix generating of CHARSET_REGISTRY field.
12202 (font_has_char): Accept font-object too.
12203 (font_find_for_lface): Try at first with a size specified in face.
12204
12205 2008-02-01 Kenichi Handa <handa@m17n.org>
12206
12207 * frame.c (x_set_font) [USE_FONT_BACKEND]: Fix argument to
12208 font_open_by_name.
12209
12210 2008-02-01 Kenichi Handa <handa@m17n.org>
12211
12212 * font.h (QCspacing, QCdpi): Extern them.
12213 (enum font_spacing): New enum.
12214 (FONT_PIXEL_SIZE_QUANTUM): New macro.
12215
12216 * font.c (POINT_TO_PIXEL): Don't divide POINT by 10.
12217 (QCspacing, QCdpi): New variables.
12218 (syms_of_font): Initialize them.
12219 (font_pixel_size): New function.
12220 (font_put_extra): New function.
12221 (font_parse_xlfd): Fix handling of font size. Add QCdpi property
12222 in FONT_EXTRA.
12223 (font_parse_fcname): Handle enumerated values (e.g. bold).
12224 Fix handling font size. Add QCname property that contains only
12225 unknown properties.
12226 (font_score): Change argument. Change caller. Pay attention to
12227 FONT_PIXEL_SIZE_QUANTUM.
12228 (font_sort_entites, font_list_entities, font_find_for_lface)
12229 (font_open_for_lface, font_open_by_name): Fix handling of font size.
12230 (Ffont_spec): Add QCname property that contains only unknown properties.
12231
12232 * ftfont.c (ftfont_list): Use assq_no_quit, not Fassq. Don't
12233 include weight in listing pattern, instead check weight of each
12234 listed font. Don't include scalable in pattern. Pay attention to
12235 FONT_PIXEL_SIZE_QUANTUM.
12236
12237 2008-02-01 Kenichi Handa <handa@m17n.org>
12238
12239 * font.c (font_parse_fcname): Fix parsing of point-size.
12240 (font_unparse_fcname): Produce symbolic names for style properties.
12241 (font_list_entities): Handle float size correctly.
12242 (font_open_by_name): Prefer `normal' property values if the name
12243 doesn't specify them.
12244
12245 * fontset.c (Finternal_char_font): Use font_get_name, not
12246 Ffont_xlfd_name.
12247
12248 * ftfont.c (ftfont_pattern_entity): Use the numeric value 100 for
12249 FC_WEIGHT_REGULAR. Exclude FC_SIZE and FC_PIXEL_SIZE from listing
12250 pattern. Don't force scalable.
12251
12252 * xftfont.c (xftfont_open): For generating a name, start from
12253 96-byte buffer.
12254
12255 2008-02-01 Jan Djärv <jan.h.d@swipnet.se>
12256
12257 * frame.h (x_new_fontset2): Fix prototype.
12258
12259 2008-02-01 Kenichi Handa <handa@m17n.org>
12260
12261 * font.h (struct font_driver): Delete member parse_name.
12262 (font_match_p, font_get_spec, font_parse_fcname)
12263 (font_unparse_fcname): Extern them.
12264 (font_get_name): Adjust prototype.
12265
12266 * font.c (XLFD_SMALLNUM_MASK): Delete this macro.
12267 (XLFD_LARGENUM_MASK): Delete XLFD_ENCODING_MASK from it.
12268 (font_expand_wildcards): Fix handling ENCODING field. Avoid
12269 unnecessary checks for weight, slant, and swidth.
12270 (font_parse_fcname): New function.
12271 (font_unparse_fcname): New function.
12272 (font_parse_name): New function.
12273 (font_match_p): New function.
12274 (font_get_name): Change return value to Lisp string.
12275 (font_get_spec): New function.
12276 (Qunspecified, Qignore_defface): Don't extern them.
12277 (font_find_for_lface): Assume that LFACE is fully specified.
12278 (font_load_for_face): If lface[LFACE_FONT_INDEX] is an font
12279 object, use it for FACE.
12280 (font_open_by_name): Call Ffont_spec with QCname prop. Don't call
12281 driver->parse_name.
12282 (Ffont_spec): Call font_parse_name, not font_parse_xlfd.
12283
12284 * fontset.h (new_fontset_from_font) [USE_FONT_BACKEND]: Adjust
12285 prototype.
12286
12287 * fontset.c (new_fontset_from_font) [USE_FONT_BACKEND]: Delete
12288 argument F. Don't call Fnew_fontset. Instead, directly call
12289 make_fontset.
12290
12291 * frame.h (x_new_fontset2) [USE_FONT_BACKEND]: Adjust prototype.
12292
12293 * frame.c (x_set_font) [USE_FONT_BACKEND]: Adjust for the change
12294 of x_new_fontset2.
12295
12296 * ftfont.c (Qmonospace, Qsans_serif, Qserif, Qmono, Qsans)
12297 (Qsans__serif): New variables.
12298 (ftfont_generic_family_list): New variable.
12299 (syms_of_ftfont): Initialize the above variables.
12300 (ftfont_pattern_entity): Delete argument NAME.
12301 (ftfont_list_generic_family): New function.
12302 (ftfont_parse_name): Delete this function.
12303 (ftfont_list): Try generic family only when FcFontList found no font.
12304 (ftfont_list_family): Fix args to FcObjectSetBuild.
12305
12306 * xfaces.c (check_lface_attrs) [USE_FONT_BACKEND]: Accept font
12307 object in attrs[LFACE_FONT_INDEX].
12308 (set_lface_from_font_name): Cancel all changes for font-backend.
12309 (set_lface_from_font_and_fontset) [USE_FONT_BACKEND]: New
12310 function.
12311 (Finternal_set_lisp_face_attribute) [USE_FONT_BACKEND]: Accept a
12312 font object in QCfont attribute.
12313 (set_font_frame_param) [USE_FONT_BACKEND]: Likewise.
12314 (realize_default_face) [USE_FONT_BACKEND]: Call
12315 set_lface_from_font_and_fontset.
12316
12317 * xfns.c (x_default_font_parameter) [USE_FONT_BACKEND]: Try also
12318 "fixed", and signal error here if no suitable font was found.
12319
12320 * xfont.c (xfont_parse_name): Delete this function.
12321
12322 * xftfont.c (xftfont_open): Change coding style of error
12323 handling. Generate fontconfig's fontname pattern.
12324
12325 * xterm.h (struct x_output) [USE_FONT_BACKEND]: New member fontp.
12326 (FRAME_FONT_OBJECT) [USE_FONT_BACKEND]: New macro.
12327
12328 * xterm.c (x_new_fontset2) [USE_FONT_BACKEND]: Change arguments.
12329 Both args FONTSET and FONT_OBJECT must be existing ones.
12330
12331 2008-02-01 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
12332
12333 * macterm.c (mac_set_unicode_keystroke_event): Don't use MAKE_CHAR.
12334
12335 2008-02-01 Kenichi Handa <handa@m17n.org>
12336
12337 * xfont.c (xfont_open, xfont_encode_char): Fix typo.
12338
12339 * font.h (struct font): Fix typo.
12340
12341 * font.c (enum xlfd_field_index): Rename XLFD_XXX_SIZE_INDEX to
12342 XLFD_XXX_INDEX.
12343 (enum xlfd_field_mask): New enum.
12344 (intern_font_field): Changed argument. Change caller. If digits
12345 are followed by non-digits, return a symbol.
12346 (font_expand_wildcards): New function.
12347 (font_parse_xlfd): Fix wildcard handling.
12348 (Ffont_spec): If :name is specified, reflect the info in the other
12349 properties.
12350
12351 * ftfont.c (ftfont_pattern_entity): Fix typo.
12352 (ftfont_list): Enforce FC_LANG in PATTERN to cancel the effect of
12353 locale.
12354
12355 2008-02-01 Kenichi Handa <handa@m17n.org>
12356
12357 * font.h (Qiso8859_1, Qiso10646_1, Qunicode_bmp): Extern them.
12358
12359 * font.c (Qiso8859_1, Qiso10646_1, Qunicode_bmp): Move from ftfont.c.
12360 (font_unparse_xlfd): Fix argument type declaration. Append "*" if
12361 registry doesn't specify encoding part.
12362 (font_find_for_lface): Pay attention to LFACE_FONT_INDEX.
12363 (font_open_by_name): At first try parsing the name.
12364 (syms_of_font): Declare Qiso8859_1, Qiso10646_1, and Qunicode_bmp
12365 as Lisp symbols.
12366
12367 * fontset.c (reorder_font_vector): Pay attention to the case that
12368 the 3rd element of font_def is nil.
12369 (fontset_font): For the default fontset, append one more fontset
12370 elements for a script-based font specification. Don't add script
12371 attribute on finding a font.
12372 (new_fontset_from_font): Unconditionally set FONTSET_ASCII to the
12373 font name.
12374 (fontset_ascii_font): If a font can't be opened, return nil.
12375
12376 * ftfont.c (Qiso8859_1, Qiso10646_1, Qunicode_bmp): Move to font.c.
12377 (ftfont_pattern_entity): New function.
12378 (ftfont_get_cache): Assume that freetype_font_cache is already
12379 initialized.
12380 (ftfont_list): Handle the case that a file is specified in font
12381 name. Use ftfont_pattern_entity to generate entities.
12382 (ftfont_has_char): Check if the pattern contains FC_CHARSET.
12383 (syms_of_ftfont): Initialize freetype_font_cache.
12384
12385 * xftfont.c (xftfont_open): Make the font name fontconfig's
12386 style. Add BLOCK_INPUT and UNBLOCK_INPUT.
12387 (xftfont_close): Free font->font.name if not NULL.
12388
12389 * xfont.c (xfont_list): If script is specified for a font, return
12390 null_vector.
12391 (xfont_list_family): Declare argument type.
12392
12393 * xfaces.c (set_lface_from_font_name): If a font doesn't have a
12394 name, set LFACE_FONT (lface) to nil.
12395
12396 * xterm.c (x_new_fontset2): If an ASCII font couldn't be loaded,
12397 return Qnil.
12398
12399 2008-02-01 Kenichi Handa <handa@m17n.org>
12400
12401 * emacs.c (main): Check -enable-font-backend arg after the check of -nl.
12402 (standard_args): Add "-enable-font-backend".
12403
12404 2008-02-01 Kenichi Handa <handa@m17n.org>
12405
12406 * xftfont.c (xftfont_default_fid): Set fid_known to 1.
12407 (struct xftdraw_list, xftdraw_list): Delete them.
12408 (register_xftdraw, check_xftdraw): Delete them.
12409 (xftfont_prepare_face): Don't call register_xftdraw.
12410 (xftfont_done_face): Don't call check_xftdraw.
12411 (xftfont_draw): Get background color only when with_background is
12412 nonzero.
12413
12414 * xfont.c (xfont_encode_char): Fix calculation of char2b.
12415
12416 2008-02-01 Kenichi Handa <handa@m17n.org>
12417
12418 These changes are for the new font handling codes.
12419
12420 * Makefile.in (ALL_CFLAGS): Add @FREETYPE_CFLAGS@,
12421 @FONTCONFIG_CFLAGS@, and @LIBOTF_CFLAGS@.
12422 (LIB_X11_LIB): If HAVE_XFT is defined, set to @XFT_LIBS@.
12423 (FONTSRC, FONTOBJ): New variables.
12424 (obj): Add $(FONTOBJ).
12425 (SOME_MACHINE_OBJECTS): Lib_X11_Lib.
12426 (LIBES): Add @FREETYPE_LIBS@, @FONTCONFIG_LIBS@, and
12427 @LIBOTF_LIBS@.
12428 (font.o, ftfont.o, xfont.o, xftfont.o, ftxfont.o): New targets.
12429 (fontset.o, xdisp.o, xfaces.o, xfns.o, xterm.o): Depend on $(FONTSRC).
12430
12431 * font.h, font.c, xfont.c, ftfont.c, xftfont.c, ftxfont.c: New files.
12432
12433 * character.h (Vscript_representative_chars): Extern it.
12434
12435 * character.c (Vscript_representative_chars): New variable.
12436 (syms_of_character): Declare it as a Lisp variable.
12437
12438 * composite.c (get_composition_id) [USE_FONT_BACKEND]: If
12439 enable_font_backend is nonzero, accept the composition method
12440 COMPOSITION_WITH_GLYPH_STRING.
12441
12442 * composite.h (enum composition_method) [USE_FONT_BACKEND]: New
12443 enumeration COMPOSITION_WITH_GLYPH_STRING.
12444
12445 * dispextern.h (struct glyph_string) [USE_FONT_BACKEND]: New
12446 members clip_x, clip_y, clip_width, and clip_height.
12447 (struct face) [USE_FONT_BACKEND]: New members font_info and extra.
12448
12449 * emacs.c (main) [USE_FONT_BACKEND]: Handle arg
12450 --enable-font-backend. Call syms_of_font.
12451
12452 * fns.c (assoc_no_quit): New function.
12453
12454 * fontset.h (FONT_INFO_FROM_FACE): New macro.
12455 (face_for_font, new_fontset_from_font)
12456 (fontset_ascii_font) [USE_FONT_BACKEND]: Extern them.
12457
12458 * fontset.c [USE_FONT_BACKEND]: Include "font.h".
12459 (fontset_font, fontset_ascii, face_for_char)
12460 (make_fontset_for_ascii_face, Ffont_info)
12461 (Finternal_char_font) [USE_FONT_BACKEND]: If enable_font_backend
12462 is nonzero, use font-backend mechanism.
12463 (find_font_encoding): Make it non-static.
12464 (new_fontset_from_font, fontset_ascii_font) [USE_FONT_BACKEND]:
12465 New functions.
12466
12467 * frame.h (struct frame): New members resx and resy.
12468 (struct frame) [USE_FONT_BACKEND]: New member font_driver_list.
12469 (x_new_fontset2) [USE_FONT_BACKEND]: Extern it.
12470
12471 * frame.c [USE_FONT_BACKEND]: Include "font.h".
12472 (make_frame, x_set_font) [USE_FONT_BACKEND]: Use font-backend mechanism.
12473
12474 * lisp.h (assoc_no_quit): Extern it.
12475
12476 * xdisp.c: If USE_FONT_BACKEND is defined, include "font.h".
12477 Through out the file, use FONT_INFO_FROM_FACE instead of
12478 FONT_INFO_FROM_ID, use get_per_char_metric instead of
12479 rif->per_char_metric.
12480 (handle_composition_prop) [USE_FONT_BACKEND]: If the composition
12481 method is COMPOSITION_WITH_GLYPH_STRING, just set it->c to ' '.
12482 (get_glyph_face_and_encoding, fill_composite_glyph_string)
12483 (get_char_face_and_encoding, BUILD_COMPOSITE_GLYPH_STRING)
12484 (x_produce_glyphs) [USE_FONT_BACKEND]: If enable_font_backend is
12485 nonzero, use font-backend mechanism.
12486 (get_per_char_metric): New function.
12487
12488 * xfaces.c [USE_FONT_BACKEND]: Include "font.h".
12489 (set_lface_from_font_name)
12490 (set_font_frame_param, free_realized_face)
12491 (prepare_face_for_display, clear_face_gcs)
12492 (Finternal_set_font_selection_order, realize_x_face)
12493 [USE_FONT_BACKEND]: If enable_font_backend is nonzero, use
12494 font-backend mechanism.
12495 (clear_face_cache) [USE_FONT_BACKEND]: Don't call clear_font_table.
12496 (load_face_font) [USE_FONT_BACKEND]: Abort.
12497 (face_symbolic_value, face_symbolic_weight, face_symbolic_slant)
12498 (face_symbolic_swidth, face_for_font) [USE_FONT_BACKEND]: New functions.
12499
12500 * xfns.c [USE_FONT_BACKEND]: Include "font.h".
12501 (x_default_font_parameter) [USE_FONT_BACKEND]: New function.
12502 (Fx_create_frame) [USE_FONT_BACKEND]: If enable_font_backend is
12503 nonzero, register all available font drivers. Call
12504 x_default_font_parameter for deciding a font.
12505 (x_create_tip_frame) [USE_FONT_BACKEND]: Likewise.
12506
12507 * xterm.c [USE_FONT_BACKEND]: Include "font.h".
12508 (x_set_mouse_face_gc, x_set_glyph_string_clipping)
12509 (x_set_glyph_string_clipping_exactly)
12510 (x_compute_glyph_string_overhangs)
12511 (x_draw_glyph_string_foreground)
12512 (x_draw_composite_glyph_string_foreground, x_draw_glyph_string)
12513 (x_free_frame_resources) [USE_FONT_BACKEND]: If
12514 enable_font_backend is nonzero, use font-backend mechanism.
12515 (x_new_fontset2) [USE_FONT_BACKEND]: New function.
12516
12517 2008-02-01 Kenichi Handa <handa@m17n.org>
12518
12519 * coding.c (coding_inherit_eol_type): If PARENT is nil, inherit from
12520 system_eol_type.
12521 (syms_of_coding): Initialize system_eol_type.
12522
12523 * process.c (Fset_process_coding_system): Inherit system's eol
12524 format if necessary.
12525
12526 2008-02-01 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
12527
12528 * macgui.h (USE_ATSUI): Don't enable on emacs-unicode-2 branch.
12529
12530 2008-02-01 Kenichi Handa <handa@m17n.org>
12531
12532 * coding.c (decode_eol): Pay attention to buffer relocation in
12533 del_range_2.
12534 (decode_coding): Call decode_eol before restoring undo_list.
12535
12536 2008-02-01 Kenichi Handa <handa@m17n.org>
12537
12538 * charset.c (Fdefine_charset_internal): Fix setting of
12539 emacs_mule_bytes.
12540
12541 2008-02-01 Kenichi Handa <handa@m17n.org>
12542
12543 * keyboard.c (read_char): Check if C is a character or not before
12544 looking up Vkeyboard_translate_table.
12545
12546 2008-02-01 Kenichi Handa <handa@m17n.org>
12547
12548 * coding.c (DECODE_EMACS_MULE_20_RELATIVE_COMPOSITION): Fix
12549 condition to terminate the loop.
12550
12551 2008-02-01 Kenichi Handa <handa@m17n.org>
12552
12553 * coding.c (produce_composition): Compare charbuf[i] instead of
12554 args[i] against 0.
12555 (Fterminal_coding_system): Use EQ to compare Lisp objects.
12556
12557 2008-02-01 Kenichi Handa <handa@m17n.org>
12558
12559 * coding.c (DECODE_COMPOSITION_START): If the source is short, set
12560 coding->result to CODING_RESULT_INSUFFICIENT_SRC.
12561 (decode_coding_gap): Set CODING_MODE_LAST_BLOCK after the call of
12562 detect_coding.
12563 (emacs_mule_char): Handle old style (Emacs 20) component character
12564 of a composition.
12565 (DECODE_EMACS_MULE_COMPOSITION_RULE_20)
12566 (DECODE_EMACS_MULE_20_RULEBASE_COMPOSITION): Fix parsing a
12567 composition rule.
12568 (decode_coding_emacs_mule): Handle invalid bytes correctly.
12569
12570 2008-02-01 Kenichi Handa <handa@m17n.org>
12571
12572 * coding.c (encode_coding_ccl): Allocate destination dynamically
12573 when necessary.
12574
12575 2008-02-01 Kenichi Handa <handa@m17n.org>
12576
12577 * ccl.c (Fccl_execute_on_string): Fix the condition of terminating
12578 the loop. When quitted, show a proper error message.
12579
12580 2008-02-01 Kenichi Handa <handa@m17n.org>
12581
12582 * xterm.c (x_set_glyph_string_clipping_exactly): Set
12583 src->clip_head and src->clip_tail temporarily instead of src->hl.
12584
12585 * ccl.c (CCL_WRITE_STRING): Handle a flag bit for multibyte
12586 character sequence.
12587 (Fccl_execute_on_string): Use ASET, not XSET.
12588
12589 2008-02-01 Kenichi Handa <handa@m17n.org>
12590
12591 * search.c (search_buffer): Fix handling of "\\" in a trivial regexp.
12592
12593 2008-02-01 Kenichi Handa <handa@m17n.org>
12594
12595 * coding.c (decode_coding): Fix the condition of terminating the
12596 decoding loop.
12597
12598 2008-02-01 Kenichi Handa <handa@m17n.org>
12599
12600 * data.c (Faset): On setting a character bigger than 255 in a
12601 unibyte string, signal an error instead of make the string multibyte.
12602
12603 2008-02-01 Kenichi Handa <handa@m17n.org>
12604
12605 * charset.c (map_charset_chars): Fix for ascii-compatible charset
12606 made by a mapping table.
12607
12608 2008-02-01 Kenichi Handa <handa@m17n.org>
12609
12610 * xdisp.c (fill_composite_glyph_string): Check s->face is NULL or
12611 not.
12612 (BUILD_COMPOSITE_GLYPH_STRING): If C is TAB, set s->face to NULL.
12613 (x_produce_glyphs): If CH is TAB, set cmp->offsets properly.
12614
12615 * xterm.c (x_draw_composite_glyph_string_foreground): Check
12616 s->face is NULL or not.
12617
12618 2008-02-01 Kenichi Handa <handa@m17n.org>
12619
12620 * xterm.c (x_set_glyph_string_clipping_exactly): New function.
12621 (x_draw_glyph_string): Fix drawing of right_overhang and
12622 left_overhang around/on cursor.
12623
12624 * xdisp.c (draw_glyphs): Fix inclusion of right_overwriting glyphs.
12625
12626 2008-02-01 Kenichi Handa <handa@m17n.org>
12627
12628 * xdisp.c (x_produce_glyphs): Handle composition with TAB.
12629
12630 2008-02-01 Kenichi Handa <handa@m17n.org>
12631
12632 * coding.c (Fdefine_coding_system_internal)
12633 (Fdefine_coding_system_alias): Avoid a duplicated element in
12634 Vcoding_system_alist.
12635
12636 2008-02-01 Kenichi Handa <handa@m17n.org>
12637
12638 * xterm.c (handle_one_xevent): Handle keysyms 0x1000000..0x10000FF.
12639
12640 * coding.c (Qcoding_system_define_form): New variable.
12641 (syms_of_coding): Intern and staticpro it.
12642 (Fcoding_system_p): Check Qcoding_system_define_form.
12643 (Fcheck_coding_system): Try to autoload the definition of CODING-SYSTEM.
12644
12645 * coding.h (CODING_SYSTEM_P): If ID is not available, call
12646 Fcoding_system_p.
12647 (CHECK_CODING_SYSTEM): If ID is not available, call
12648 Fcheck_coding_system.
12649 (CHECK_CODING_SYSTEM_GET_SPEC, CHECK_CODING_SYSTEM_GET_ID):
12650 Try also Fcheck_coding_system.
12651
12652 2008-02-01 Kenichi Handa <handa@m17n.org>
12653
12654 * coding.c (code_conversion_restore): GCPRO arg.
12655
12656 2008-02-01 Kenichi Handa <handa@m17n.org>
12657
12658 * character.c (lisp_string_width): Check multibyteness of STRING.
12659
12660 2008-02-01 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
12661
12662 * macterm.c (mac_encode_char): Call ccl_driver with the last arg
12663 Qnil. Use JIS_TO_SJIS instead of ENCODE_SJIS.
12664 (decode_mac_font_name): Use decode_coding_c_string instead of
12665 decode_coding.
12666 (x_load_font): Initialize fontp->fontset to -1. Set
12667 fontp->encoding_type.
12668
12669 2008-02-01 Kenichi Handa <handa@m17n.org>
12670
12671 * search.c (search_buffer): Give up BM search on case-fold-search
12672 if one of a target character has a case-equivalence of different
12673 byte length even if that target charcter is an ASCII.
12674 (simple_search): Fix calculation of byte length of matched text.
12675 (boyer_moore): Fix handling of case-equivalent multibyte characters.
12676
12677 2008-02-01 Kenichi Handa <handa@m17n.org>
12678
12679 * coding.c (decode_coding): Fix handling of invalid bytes.
12680
12681 2008-02-01 Kenichi Handa <handa@m17n.org>
12682
12683 * xterm.c (handle_one_xevent): Handle keysyms directly mapped to
12684 Unicode characters.
12685
12686 2008-02-01 Kenichi Handa <handa@m17n.org>
12687
12688 * coding.c (encode_coding_object): If a pre-write-conversion
12689 function makes a new buffer, kill it.
12690
12691 2008-02-01 Kenichi Handa <handa@m17n.org>
12692
12693 * coding.c (QCascii_compatible_p): New variable.
12694 (syms_of_coding): Initialize it.
12695 (ONE_MORE_BYTE, ONE_MORE_BYTE_NO_CHECK): Decrement `src' before
12696 calling string_char.
12697 (record_conversion_result): Add `default:' case.
12698 (coding_charset_list): Delete unused variable `coding_type'.
12699 (Fdefine_coding_system_internal): Add `ascii-compatible-p'
12700 property in the plist of the coding system.
12701 (Fcoding_system_put): Check QCascii_compatible_p.
12702
12703 2008-02-01 Miles Bader <miles@gnu.org>
12704
12705 * xfaces.c (Finternal_lisp_face_equal_p): Restore previously
12706 removed calculation of frame `f', as it's now used.
12707
12708 2008-02-01 Kenichi Handa <handa@m17n.org>
12709
12710 * Makefile.in (RUN_TEMACS): Include "-nl" if HAVE_SHM is defined.
12711 (emacs${EXEEXT}): Run $(RUN_TEMACS) unconditionally.
12712 (UNIDATA): New variable.
12713 (${lispsource}international/charprop.el): Depends on ${UNIDATA}.
12714 (bootstrap-emacs${EXEEXT}): Depends on charprop.el. Run
12715 $(RUN_TEMACS) unconditionally.
12716
12717 2008-02-01 Kenichi Handa <handa@m17n.org>
12718
12719 * Makefile.in (temacs${EXEEXT}): Build charprop.el if necessary.
12720 (admindir): New variable.
12721 ($(lispsource)international/charprop.el): New target.
12722
12723 2008-02-01 Miles Bader <miles@gnu.org>
12724
12725 * character.c (chars-in-region): Remove obsolete function.
12726 (syms_of_character): Remove its initialization.
12727
12728 2008-02-01 Benjamin Riefenstahl <b.riefenstahl@turtle-trading.net>
12729
12730 * w32select.c (validate_coding_system)
12731 (setup_windows_coding_system): New functions.
12732 (convert_to_handle_as_coded, Fw32_get_clipboard_data): Use
12733 setup_windows_coding_system.
12734 (setup_config, Fw32_get_clipboard_data): Use
12735 validate_coding_system.
12736 (Fx_selection_exists): Move call to setup_config to a place
12737 where signals are allowed.
12738
12739 * lisp.h (Fcoding_system_base, Fcoding_system_eol_type)
12740 (Fcheck_coding_system): Add declarations.
12741
12742 2008-02-01 Kenichi Handa <handa@m17n.org>
12743
12744 * charset.c (load_charset_map_from_vector): Fix for the first iteration.
12745
12746 2008-02-01 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
12747
12748 * macfns.c (Fx_create_frame, x_create_tip_frame): Pass Lisp
12749 string as the second argument for x_new_fontset.
12750
12751 2008-02-01 Kenichi Handa <handa@m17n.org>
12752
12753 * coding.c (decode_coding_object): Use safe_call1 instead of call1.
12754 (encode_coding_object): Use safe_call instead of call2.
12755
12756 2008-02-01 Kenichi Handa <handa@m17n.org>
12757
12758 * fontset.c (Fset_fontset_font): Check family element of a given vector.
12759
12760 * Makefile.in (lisp): Include charprop.el.
12761
12762 2008-02-01 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
12763
12764 * macfns.c (Fx_create_frame, x_create_tip_frame): Fix crash.
12765 Not sure if it's unnecessary.
12766
12767 2008-02-01 Steven Tamm <steventamm@mac.com>
12768
12769 * macfns.c (Fx_create_frame, x_create_tip_frame): ifdef'd out
12770 some possibly unnecessary fontset checking code that crashed
12771 when creating a new frame.
12772
12773 2008-02-01 Kenichi Handa <handa@m17n.org>
12774
12775 * xfaces.c (merge_faces): Fix argument to lookup_derived_face and
12776 lookup_face.
12777
12778 * xdisp.c (Fformat_mode_line): Fix argument to lookup_named_face.
12779
12780 * fringe.c (draw_fringe_bitmap_1): Fix argument to lookup_named_face.
12781
12782 2008-02-01 Kenichi Handa <handa@m17n.org>
12783
12784 * coding.c: Cancel the change done in HEAD on 2008-02-01.
12785 (coding_charset_list): New function.
12786
12787 * coding.h (coding_charset_list): Extern it.
12788
12789 2008-02-01 Kenichi Handa <handa@m17n.org>
12790
12791 * fontset.c (Fset_fontset_font): Call find_font_encoding with
12792 concatenation of family and registry.
12793
12794 2008-02-01 Kenichi Handa <handa@m17n.org>
12795
12796 * character.h (BYTE8_STRING): Fix typo.
12797
12798 * editfns.c (Ftranslate_region_internal): Don't convert unibyte
12799 string to multibyte (sync to HEAD).
12800
12801 * casefiddle.c (casify_region): Handle changes in byte-length
12802 using replace_range_2 (sync to HEAD).
12803
12804 2008-02-01 Andreas Schwab <schwab@suse.de>
12805
12806 * chartab.c (map_char_table): GCPRO table and arg.
12807
12808 2008-02-01 Kenichi Handa <handa@m17n.org>
12809
12810 * syntax.c (skip_syntaxes): Return lispy 0 (not nil) if point is
12811 already at limit.
12812
12813 2008-02-01 Kenichi Handa <handa@m17n.org>
12814
12815 * fontset.c (fs_load_font): Use fast_string_match_ignore_case
12816 instead of fast_c_string_match_ignore_case.
12817 (find_font_encoding): Change argument to Lisp_Object. Use
12818 fast_string_match_ignore_case instead of
12819 fast_c_string_match_ignore_case. Change caller.
12820
12821 2008-02-01 Kenichi Handa <handa@m17n.org>
12822
12823 * xdisp.c (get_next_display_element): In unibyte case, decide to
12824 display in octal form by checking a character by
12825 UNIBYTE_CHAR_HAS_MULTIBYTE_P.
12826
12827 * charset.c (Fset_unibyte_charset): Setup unibyte_has_multibyte_table.
12828
12829 * character.c (unibyte_has_multibyte_table): New variable.
12830
12831 * character.h (unibyte_has_multibyte_table): Extern it.
12832 (UNIBYTE_CHAR_HAS_MULTIBYTE_P): New macro.
12833
12834 2008-02-01 Kenichi Handa <handa@m17n.org>
12835
12836 * coding.c (encode_coding_iso_2022): Fix handling of charset
12837 annotation.
12838
12839 2008-02-01 Kenichi Handa <handa@m17n.org>
12840
12841 * coding.c (setup_coding_system): If coding_system is nil, use
12842 Qundecided.
12843 (Fterminal_coding_system): Return nil if terminal coding system is
12844 `undecided'.
12845 (syms_of_coding): Define coding-system `undecided' here. Setup
12846 terminal_coding as `undecided'.
12847
12848 2008-02-01 Kenichi Handa <handa@m17n.org>
12849
12850 * xdisp.c (message_dolog, set_message_1): Call
12851 unibyte_char_to_multibyte with arg type int.
12852
12853 * lread.c (read1): Fix reading of a char-table.
12854
12855 * print.c (print_object): Include sub char-table in circularities
12856 detection.
12857
12858 2008-02-01 Kenichi Handa <handa@m17n.org>
12859
12860 * keymap.c (where_is_internal_2): Fix for the case that KEY is a cons.
12861 Append the found sequences in car of ARGS instead of prepending.
12862
12863 2008-02-01 Kenichi Handa <handa@m17n.org>
12864
12865 * fileio.c (report_file_error): Make a unibyte string from
12866 strerror (errorno).
12867 (Fsubstitute_in_file_name): Fix the arg to
12868 unibyte_char_to_multibyte. It is evaluated twice.
12869
12870 2008-02-01 Kenichi Handa <handa@m17n.org>
12871
12872 * charset.h (CHAR_CHARSET): Shortcut for ASCII case.
12873
12874 2008-02-01 Kenichi Handa <handa@m17n.org>
12875
12876 * coding.c (detect_coding_utf_16): Don't set detect_info->found if
12877 BOM is not found.
12878 (detect_coding, detect_coding_system): Optimization for ISO-2022
12879 when no 8-bit data is found.
12880
12881 2008-02-01 Jason Rumney <jasonr@gnu.org>
12882
12883 * w32fns.c (x_to_w32_font): Update to use new coding struct.
12884
12885 2008-02-01 Kenichi Handa <handa@m17n.org>
12886
12887 * charset.c (Fdeclare_equiv_charset, Fiso_charset): Fix handing of
12888 CHARS.
12889
12890 2008-02-01 Steven Tamm <steventamm@mac.com>
12891
12892 * macterm.c (mac_encode_char): Add charset argument and update
12893 to use encoding_type.
12894 (x_new_font, x_new_fontset): Merge in changes from xterm.c;
12895 switch to pure fontset.
12896 (decode_mac_font_name): Temporarily remove decoding.
12897 (x_font_name_to_mac_font_name): Temporarily remove encoding.
12898 (x_load_font): Temporarily remove encoding.
12899
12900 2008-02-01 Kenichi Handa <handa@m17n.org>
12901
12902 * xfaces.c (Fface_font): If frame is not on a window system,
12903 ignore CHARACTER arg. If HAVE_WINDOW_SYSTEM is not defined, don't
12904 refer to face->font.
12905 (split_font_name_into_vector, build_font_name_from_vector)
12906 (lookup_non_ascii_face, realize_non_ascii_face): Define them only
12907 when HAVE_WINDOW_SYSTEM is defined.
12908
12909 2008-02-01 Kenichi Handa <handa@m17n.org>
12910
12911 * xdisp.c (BUILD_GLYPH_STRINGS): Check if s is NULL.
12912 (x_produce_glyphs): Fix setting of members of cmp in case
12913 cmp->glyph_len is zero.
12914
12915 * fontset.c (Fset_fontset_font): Fix docstring.
12916 (Ffontset_info): Make it backward compatible. New arg ALL.
12917
12918 2008-02-01 Kim F. Storm <storm@cua.dk>
12919
12920 * process.c (read_process_output): Grow decoding_buf when needed;
12921 this could cause a crash in allocate_string and compact_small_strings.
12922
12923 2008-02-01 Kenichi Handa <handa@m17n.org>
12924
12925 * fileio.c (WRITE_BUF_SIZE): Delete this macro.
12926
12927 2008-02-01 Kenichi Handa <handa@m17n.org>
12928
12929 * coding.c (setup_coding_system): Set coding->common_flags
12930 correctly for raw-text.
12931 (consume_chars): On encoding unibyte text by raw-text, don't check
12932 multibyte form.
12933 (encode_coding): On encoding by raw-text, never use translation tables.
12934
12935 * fileio.c (e_write): Short cut for the case of no encoding.
12936
12937 2008-02-01 Kenichi Handa <handa@m17n.org>
12938
12939 * coding.c (detect_coding, detect_coding_system): Delete unused
12940 variables.
12941
12942 2008-02-01 Kenichi Handa <handa@m17n.org>
12943
12944 * coding.c (encode_coding_utf_8): Fix handling of raw-byte char.
12945 (consume_chars): Fix handling of 8-bit bytes in unibyte source.
12946
12947 2008-02-01 Kenichi Handa <handa@m17n.org>
12948
12949 * coding.c (Ffind_coding_systems_region_internal): Include
12950 raw-text and no-conversion in the result.
12951
12952 2008-02-01 Kenichi Handa <handa@m17n.org>
12953
12954 * fontset.c (find_font_encoding): Return `ascii' for unknown encoding.
12955 (load_font_get_repertory): Delete unnecessary check of ENCODING of
12956 FONT_DEF.
12957 (font_def_arg, add_arg, from_arg, to_arg): New args.
12958 (set_fontset_font): Change argument.
12959 (Fset_fontset_font): Fix for the case that TARGET is a script
12960 name and charset name.
12961 (new_fontset_from_font_name): Fix argument to Fnew_fontset.
12962
12963 2008-02-01 Kenichi Handa <handa@m17n.org>
12964
12965 * fontset.c (fontset_font): Rename from fontset_face. Change return
12966 value.
12967 (face_suitable_for_char_p, face_for_char): Adjust for the change
12968 of fontset_font.
12969 (make_fontset_for_ascii_face): Fix setting of the fontset element
12970 for ASCII.
12971 (Finternal_char_font): Use fontset_font instead of FACE_FOR_CHAR
12972 to get a font name.
12973 (Ffontset_info): Adjust for the change of fontset_font.
12974
12975 * coding.c (emacs_mule_char): Check invalid code more rigidly.
12976
12977 * character.h (LEADING_CODE_LATIN_1_MIN)
12978 (LEADING_CODE_LATIN_1_MAX): Delete these macros.
12979
12980 2008-02-01 Kenichi Handa <handa@m17n.org>
12981
12982 * editfns.c (check_translation): New function.
12983 (Ftranslate_region_internal): Handle M:N mapping.
12984
12985 2008-02-01 Kenichi Handa <handa@m17n.org>
12986
12987 * xfaces.c (xlfd_point_size): Set font->numeric[XLFD_PIXEL_SIZE].
12988
12989 2008-02-01 Kenichi Handa <handa@m17n.org>
12990
12991 * coding.c (DECODE_DESIGNATION): Set chars_96 to -1 instead of
12992 goto invalid_code.
12993 (decode_coding_iso_2022): Fix handling of invalid designation.
12994
12995 * fileio.c (Finsert_file_contents): Be sure to call unbind_to
12996 after calling code_conversion_save.
12997
12998 2008-02-01 Kenichi Handa <handa@m17n.org>
12999
13000 * xdisp.c (handle_auto_composed_prop): Fix Lisp_Object/int mixup.
13001
13002 * print.c (print_prune_string_charset): Fix Lisp_Object/int mixup.
13003
13004 * fontset.c: Include "intervals.h".
13005 (fontset_face): Fix comparing of Lisp_Objects.
13006 (free_face_fontset, new_fontset_from_font_name): Fix
13007 Lisp_Object/int mixup.
13008
13009 * editfns.c (Ftranslate_region_internal): Fix Lisp_Object/int mixup.
13010
13011 * coding.c: Add many prototypes for static functions.
13012 (get_translation_table): Allow max_lookup to be NULL.
13013 (decode_coding, Ffind_coding_systems_region_internal)
13014 (Funencodable_char_position, Fcheck_coding_systems_region): Call
13015 get_translation_table with max_lookup NULL.
13016
13017 2008-02-01 Kenichi Handa <handa@m17n.org>
13018
13019 * coding.c (get_translation_table): Declare it as Lisp_Object.
13020 (LOOKUP_TRANSLATION_TABLE): New macro.
13021 (produce_chars, consume_chars): Use LOOKUP_TRANSLATION_TABLE
13022 instead of CHAR_TABLE_REF.
13023
13024 2008-02-01 Kenichi Handa <handa@m17n.org>
13025
13026 * coding.c (MAX_ANNOTATION_LENGTH): Adjust for the change of
13027 annotation data format.
13028 (ADD_ANNOTATION_DATA, ADD_COMPOSITION_DATA, ADD_CHARSET_DATA):
13029 Change arguments FROM and TO to single argument NCHARS. Change caller.
13030 (decode_coding_utf_8, decode_coding_utf_16, decode_coding_emacs_mule)
13031 (decode_coding_iso_2022, decode_coding_sjis, decode_coding_big5)
13032 (decode_coding_ccl, decode_coding_charset): Pay attention to
13033 coding->charbuf_used.
13034 (get_translation): New function.
13035 (produce_chars): New arguments translation_table and last_block.
13036 Translate characters here. Return number of carryover chars.
13037 Change caller.
13038 (produce_composition): New argument pos. Change caller.
13039 Adjust for the change of annotation data format.
13040 (produce_charset, produce_annotation): Likewise.
13041 (decode_coding, encode_coding): Don't call translate_chars.
13042 (consume_chars): New arg translation_table. Change caller.
13043 (translate_chars): Delete.
13044 (syms_of_coding): Make translation-table's number of extra slots 2.
13045
13046 2008-02-01 Kenichi Handa <handa@m17n.org>
13047
13048 * search.c (simple_search): Fix setting this_pos_byte in backward
13049 search.
13050
13051 * coding.c (detect_coding_emacs_mule): Fix counting of encoded
13052 byte sequence.
13053 (detect_coding_ccl): Fix setting of the variable valids.
13054
13055 2008-02-01 Kenichi Handa <handa@m17n.org>
13056
13057 * xterm.c (x_list_fonts): Fix the detection of an auto-scaled font.
13058
13059 * coding.c (decode_coding_utf_16): Fix handling of surrogate pair.
13060
13061 * editfns.c (Ftranslate_region_internal): Rename from
13062 Ftranslate_region. Accept a char-table in TABLE.
13063 (syms_of_editfns): Defsubr Stranslate_region_internal.
13064
13065 * xfaces.c (set_lface_from_font_name): If a font is specified for
13066 a frame, generate a fontset from the font.
13067 (build_scalable_font_name): If the scalable font is requested for
13068 a specific size, don't change that size.
13069 (try_font_list): Try a scalable font also in the case that a
13070 pattern string is specified.
13071
13072 2008-02-01 Kenichi Handa <handa@m17n.org>
13073
13074 * xfaces.c (Fface_font): New optional arg CHARACTER.
13075
13076 2008-02-01 Kenichi Handa <handa@m17n.org>
13077
13078 * charset.h (CHARSET_OFFSET): New macro.
13079
13080 2008-02-01 Kenichi Handa <handa@m17n.org>
13081
13082 * xterm.c (x_get_font_repertory): Fix for non-Unicode-bmp charset.
13083
13084 * fontset.c (fontset_face): Handle the case that repertory is a
13085 char-table.
13086 (find_font_encoding): Return nil for unknown encoding.
13087 (Fset_fontset_font): Ignore a font of unknown encoding.
13088
13089 2008-02-01 Kenichi Handa <handa@m17n.org>
13090
13091 * keymap.c (describe_vector): Handle default value of a char table.
13092
13093 * fontset.c (fontset_face): Handle fallback fonts correctly.
13094 (Ffontset_info): Return infomation about fallback fonts.
13095
13096 2008-02-01 Kenichi Handa <handa@m17n.org>
13097
13098 * fontset.c (FONTSET_DEFAULT): New macro.
13099 (FONTSET_ADD, fontset_add): Handle the case that range is nil.
13100 (Fset_fontset_font): Change the 2nd arg name to TARGET, and handle
13101 the case that it is nil.
13102 (dump_fontset): Call FONTSET_DEFAULT, not FONTSET_FALLBACK.
13103 (syms_of_fontset): Set char-table-extra-slots property of fontset to 9.
13104
13105 * charset.h (CHAR_CHARSET_P): Fix for the case that the method is
13106 subset or superset.
13107
13108 2008-02-01 Kenichi Handa <handa@m17n.org>
13109
13110 * emacs.c (main): Call init_charset after syms_of_XXX.
13111
13112 * charset.c (Vcharset_map_directory): Delete.
13113 (Vcharset_map_path): New variable.
13114 (load_charset_map_from_file): Use Vcharset_map_path instead.
13115 (init_charset): Initialize Vcharset_map_path.
13116 (syms_of_charset): Delete declaration of "charset-map-directory",
13117 add declaration of "charset-map-path".
13118
13119 2008-02-01 Kenichi Handa <handa@m17n.org>
13120
13121 * fns.c (string_char_to_byte, string_byte_to_char): Optimize for
13122 ASCII only string.
13123
13124 * fileio.c (Finsert_file_contents): Avoid detecting a code twice.
13125
13126 * coding.c (detect_coding_iso_2022): Fix handling of SS2 and SS3.
13127 (detect_coding, detect_coding_system): Treat '\0' as normal ASCII byte.
13128
13129 2008-02-01 Kenichi Handa <handa@m17n.org>
13130
13131 * coding.h (SJIS_TO_JIS2, JIS_TO_SJIS2): New macros.
13132
13133 * coding.c (QCmnemonic, QCdefalut_char)
13134 (QCdecode_translation_table, QCencode_translation_table)
13135 (QCpost_read_conversion, QCpre_write_conversion): New variables.
13136 (get_translation_table): Return a list of translation tables if
13137 necessary.
13138 (decode_coding): Call get_translation_table with ENCODEP 0.
13139 (char_encodable_p): If translation_table is non-nil, always call
13140 translate_char.
13141 (Fdefine_coding_system_internal): Accept list of translation
13142 tables as :encode-translation-table and :decode-translation-table.
13143 (Fcoding_system_put): New function.
13144 (syms_of_coding): Declare new symbols. Defsubr
13145 Scoding_system_put.
13146 (decode_coding_sjis, encode_coding_sjis): Handle 4th charset,
13147 typically JISX0212.
13148
13149 * charset.c (map_charset_chars): Fix arg to map_charset_chars in
13150 when the charset is superset type.
13151
13152 * character.c (translate_char): Accept list of translation tables.
13153
13154 2008-02-01 Kenichi Handa <handa@m17n.org>
13155
13156 * coding.h (enum coding_attr_index): New member coding_attr_trans_tbl.
13157 (CODING_ATTR_TRANS_TBL): New macro.
13158
13159 * coding.c (get_translation_table): New function.
13160 (translate_chars): Fix the bug of skipping annotation data.
13161 (decode_coding, encode_coding): Utilize get_translation_table.
13162 (char_encodable_p, Funencodable_char_position): Translate char if
13163 necessary.
13164 (Ffind_coding_systems_region_internal)
13165 (Fcheck_coding_systems_region): Setup translation table for encode
13166 in a coding system attribute vector in advance.
13167 (Fdefine_coding_system_internal): Allow a symbol as translation
13168 table. For shift-jis type coding system, allow 4th charset.
13169
13170 2008-02-01 Kenichi Handa <handa@m17n.org>
13171
13172 * coding.c (decode_coding_sjis): Check the first byte rigidly.
13173
13174 * xdisp.c (get_next_display_element): Pass -1 as POS to
13175 FACE_FOR_CHAR if displaying a C-string.
13176
13177 2008-02-01 Kenichi Handa <handa@m17n.org>
13178
13179 * composite.c (get_composition_id): Handle xoff and yoff in a
13180 composition rule.
13181
13182 * composite.h (COMPOSITION_DECODE_RULE): New arg xoff and yoff.
13183 (struct composition): New member lbearing and rbearing.
13184
13185 * xdisp.c (move_it_to): Optimize for the case (op & MOVE_TO_Y).
13186 (x_get_glyph_overhangs): Handle a composition glyph.
13187 (x_produce_glyphs): Setup lbearing and rbreaing for a composition glyph.
13188
13189 * xterm.c (x_compute_glyph_string_overhangs): Handle also a
13190 composition glyph.
13191
13192 2008-02-01 Kenichi Handa <handa@m17n.org>
13193
13194 * print.c: Include charset.h.
13195 (Vprint_charset_text_property): New variable.
13196 (Qdefault): Extern it.
13197 (PRINT_STRING_NON_CHARSET_FOUND)
13198 (PRINT_STRING_UNSAFE_CHARSET_FOUND): New macros.
13199 (print_check_string_result): New variable.
13200 (print_check_string_charset_prop): New function.
13201 (print_prune_charset_plist): New variable.
13202 (print_prune_string_charset): New function.
13203 (print_object): Call print_prune_string_charset if
13204 Vprint_charset_text_property is not t.
13205 (print_interval): Print nothing if interval->plist is nil.
13206 (syms_of_print): Declare Vprint_charset_text_property as a lisp
13207 variable. Init and staticpro print_prune_charset_plist.
13208
13209 2008-02-01 Kenichi Handa <handa@m17n.org>
13210
13211 * fontset.c (new_fontset_from_font_name): Use the specified font
13212 for all characters in the new fontset.
13213
13214 * macterm.c (x_set_mouse_face_gc): Call FACE_FOR_CHAR with POS and
13215 OBJECT args.
13216
13217 * xdisp.c (x_produce_glyphs): Call FACE_FOR_CHAR with POS and
13218 OBJECT args for composition too.
13219
13220 * w32term.c (x_set_mouse_face_gc): Call FACE_FOR_CHAR with POS and
13221 OBJECT args.
13222
13223 2008-02-01 Kenichi Handa <handa@m17n.org>
13224
13225 * dispextern.h (FACE_FOR_CHAR): New args POS and OBJECT.
13226
13227 * fontset.c (reorder_font_vector): Adjust for the change of
13228 FONT_DEF format.
13229 (fontset_face): New arg id. Change caller.
13230 (face_for_char): New args pos and object.
13231 (make_fontset_for_ascii_face): Adjust for the change of FONT_DEF format.
13232 (fs_query_fontset): Check NAME by Fassoc too.
13233 (Fset_fontset_font): Allow non-XLFD font name.
13234 (Ffontset_info): Adjust for the change of FONT_DEF format.
13235
13236 * fontset.h (face_for_char): Adjust prototype.
13237
13238 * xdisp.c (face_before_or_after_it_pos, get_next_display_element)
13239 (append_space, extend_face_to_end_of_line)
13240 (get_char_face_and_encoding, BUILD_COMPOSITE_GLYPH_STRING)
13241 (x_produce_glyphs): Call FACE_FOR_CHAR with POS and OBJECT args.
13242
13243 * xfaces.c (compute_char_face): Call FACE_FOR_CHAR with
13244 POS and OBJECT args.
13245
13246 * xterm.c (x_set_mouse_face_gc): Call FACE_FOR_CHAR with
13247 POS and OBJECT args.
13248
13249 2008-02-01 Jason Rumney <jasonr@gnu.org>
13250
13251 * w32select.c (Fw32_set_clipboard_data): Avoid potential realloc
13252 of GlobalAlloc'ed memory.
13253
13254 2008-02-01 Kenichi Handa <handa@m17n.org>
13255
13256 * ccl.c (Fccl_execute_on_string): Fix the condition of loop.
13257
13258 * charset.h (charset_table_used): Delete extern.
13259
13260 * charset.c (charset_table_used): Make it static.
13261 (map_charset_chars): Fix args to c_function with.
13262
13263 * chartab.c (map_sub_char_table_for_charset): Fix args to
13264 c_function with.
13265
13266 * coding.h (enum coding_result_code): Delete
13267 CODING_RESULT_INSUFFICIENT_CMP, add CODING_RESULT_INVALID_SRC.
13268
13269 * coding.c (Qinsufficient_source, Qinconsistent_eol)
13270 (Qinvalid_source, Qinterrupted, Qinsufficient_memory): New variables.
13271 (Vlast_code_conversion_error): New variables.
13272 (syms_of_coding): DEFSYM or DEFVAR_LISP them.
13273 (ONE_MORE_BYTE): Record error if any instead of signaling an
13274 error. If non-ASCII multibyte char is found, return the negative
13275 value of the code. All callers changed to check it.
13276 (ONE_MORE_BYTE_NO_CHECK): Likewise.
13277 (record_conversion_result): New function. Change all codes setting
13278 coding->result to call this function.
13279 (detect_coding_utf_8, decode_coding_utf_8)
13280 (detect_coding_emacs_mule, detect_coding_sji, detect_coding_big5):
13281 Don't use the local variable incomplete.
13282 (emacs_mule_char): Change the second arg to `const'.
13283 (decode_coding): Fix of flushing out unprocessed data.
13284 (make_conversion_work_buffer): Fix making of a work buffer.
13285 (decode_coding_object): Return coding->dst_object.
13286
13287 * fontset.c (set_fontset_font): Fix args.
13288
13289 * lisp.h (CHARACTERBITS): Define as 22.
13290
13291 * process.c (send_process): Be sure to set coding->src_multibyte.
13292
13293 * xdisp.c (handle_auto_composed_prop): Fix setting of limit.
13294
13295 2008-02-01 Kenichi Handa <handa@m17n.org>
13296
13297 * xdisp.c (handle_auto_composed_prop): Give limit to
13298 Fnext_single_char_property_change.
13299
13300 2008-02-01 Kenichi Handa <handa@m17n.org>
13301
13302 * composite.c (syms_of_composite): Don't make the composition hash
13303 table weak.
13304
13305 * fontset.c (Fset_fontset_font): Fix docstring.
13306
13307 * lisp.h (detect_coding_system): Adjust prototype.
13308
13309 * fileio.c (kill_workbuf_unwind): Delete this function.
13310 (Finsert_file_contents): Adjust the call of detect_coding_system.
13311 Get conversion_buffer by code_conversion_save. Use the macro
13312 CODING_MAY_REQUIRE_DECODING. After decoding, update
13313 coding_system.
13314
13315 * coding.h (make_conversion_work_buffer): Delete extern.
13316 (code_conversion_save): Extern it.
13317
13318 * coding.c (enum iso_code_class_type): Delete ISO_carriage_return.
13319 (CODING_GET_INFO): Delete argument eol_type. Change callers.
13320 (decode_coding_utf_8): Don't do eol converion.
13321 (detect_coding_utf_16): Check coding->src_chars, not
13322 coding->src_bytes. Add heuristics for those that have no signature.
13323 (decode_coding_emacs_mule, decode_coding_iso_2022)
13324 (decode_coding_sjis, decode_coding_big5, decode_coding_charset):
13325 Don't do eol converion.
13326 (adjust_coding_eol_type): Return a new coding system.
13327 (detect_coding): Don't detect eol. Fix for utf-16 detection.
13328 (decode_eol): In case of CRLF->LF conversion, use del_range_2 on
13329 each change.
13330 (decode_coding): Pay attention to undo_list. Do eol conversion for
13331 all types of coding-systems (if necessary).
13332 (Vcode_conversion_work_buf_list): Delete it.
13333 (Vcode_conversion_reused_workbuf): Rename from
13334 Vcode_conversion_reused_work_buf.
13335 (Vcode_conversion_workbuf_name): New variable.
13336 (reused_workbuf_in_use): New variable.
13337 (make_conversion_work_buffer): Delete the arg DEPTH.
13338 (code_conversion_restore): Change argument to cons.
13339 (code_conversion_save): Delete the argument BUFFER. Change callers.
13340 (detect_coding_system): New argument src_chars. Change callers.
13341 Fix for utf-16 detection.
13342 (init_coding_once): Don't use ISO_carriage_return.
13343 (syms_of_coding): Initialize Vcode_conversion_workbuf_name and
13344 reused_workbuf_in_use.
13345
13346 2008-02-01 Kenichi Handa <handa@m17n.org>
13347
13348 * keymap.c (store_in_keymap): Pay attention to the case that idx
13349 is a cons specifying a character range.
13350
13351 2008-02-01 Kenichi Handa <handa@m17n.org>
13352
13353 * xdisp.c (handle_auto_composed_prop): Fix the case of returning
13354 HANDLED_RECOMPUTE_PROPS.
13355
13356 * coding.c (Fdefine_coding_system_internal): Fix checking of
13357 ascii compatibility.
13358
13359 2008-02-01 Kenichi Handa <handa@m17n.org>
13360
13361 * charset.c (find_charsets_in_text): Delete unused locale variable.
13362 (Fset_charset_priority): Update Vemacs_mule_charset_list too.
13363
13364 * coding.c (encode_coding_emacs_mule): Emit bytes with MSB.
13365 Resync charset_list to Vemacs_mule_charset_list.
13366
13367 * keymap.c (store_in_keymap): Pay attention to the case that idx
13368 is a cons specifying a character range.
13369
13370 2008-02-01 Kenichi Handa <handa@m17n.org>
13371
13372 * composite.c (update_compositions): Bind inhibit-read-only, etc
13373 to t before calling remove-list-of-text-properties.
13374
13375 * print.c (print_object): Always print ASCII chars as is.
13376
13377 2008-02-01 Kenichi Handa <handa@m17n.org>
13378
13379 * keymap.c (Fdefine_key): Fix handling of Lucid style event type list.
13380
13381 * fns.c (Fmapconcat, Fmapcar, Fmapc): Signal an error if SEQUENCE
13382 is a char table.
13383
13384 2008-02-01 Kenichi Handa <handa@m17n.org>
13385
13386 * syntax.c (skip_chars): Be sure to alloca char_ranges when necessary.
13387
13388 2008-02-01 Kenichi Handa <handa@m17n.org>
13389
13390 * xfaces.c (set_lface_from_font_name): Fix for the case that
13391 FONTNAME is not fontset name.
13392
13393 2008-02-01 Kenichi Handa <handa@m17n.org>
13394
13395 * fns.c (base64_encode_1): Fix previous change.
13396
13397 2008-02-01 Kenichi Handa <handa@m17n.org>
13398
13399 * fontset.c (set_fontset_font): New function.
13400 (Fset_fontset_font): If a font is specified for a charset, use
13401 map_charset_chars to store the font spec in a fontset.
13402
13403 2008-02-01 Kenichi Handa <handa@m17n.org>
13404
13405 * fontset.c (fontset_face): Create a fallback fontset on demand.
13406 (make_fontset): Don't create a fallback fontset here.
13407 (free_face_fontset): Free a fallback fontset (if any) too.
13408 (n_auto_fontsets): Delete this variable.
13409 (auto_fontset_alist): New variable.
13410 (new_fontset_from_font_name): Check auto_fontset_alist.
13411 (dump_fontset) [FONTSET_DEBUG]: Fully re-written.
13412 (Ffontset_list_all) [FONTSET_DEBUG]: New function.
13413 (syms_of_fontset): Initialize and staticpro auto_fontset_alist.
13414 Defsubr Sfontset_list_all.
13415
13416 2008-02-01 Kenichi Handa <handa@m17n.org>
13417
13418 * xterm.c (x_list_fonts): Fix excluding of auto-scaled fonts.
13419
13420 2008-02-01 Kenichi Handa <handa@m17n.org>
13421
13422 * fontset.c (Fnew_fontset): Check NAME more rigidly.
13423
13424 2008-02-01 Kenichi Handa <handa@m17n.org>
13425
13426 * editfns.c (Fgoto_char): Fix docstring.
13427
13428 2008-02-01 Kenichi Handa <handa@m17n.org>
13429
13430 * insdel.c (insert_from_gap): Adjust intervals correctly.
13431
13432 2008-02-01 Jason Rumney <jasonr@gnu.org>
13433
13434 * w32term.c (GLYPHSET, WCRANGE): Define if system headers don't.
13435 (pfnGetFontUnicodeRanges): New dynamically loaded function.
13436 (w32_initialize): Try to load it.
13437 (x_get_font_repertory): Use it if available.
13438 (w32_encode_char): Add shortcut for unicode output.
13439
13440 * w32fns.c (w32_load_system_font): Default charset to -1.
13441 (x_to_w32_charset): Match all fonts for unicode.
13442 (w32_to_x_charset): New parameter matching. Don't return partial
13443 or wildcard charsets.
13444 (w32_to_all_x_charsets): Don't return partial or wildcard charsets.
13445 (w32_codepage_for_font): Return CP_UNICODE for unicode.
13446 (w32_to_x_font): Match charset to real charset.
13447 (enum_font_cb2): Always list unicode versions.
13448
13449 * makefile.w32-in (temacs): Increase EMHEAP.
13450
13451 2008-02-01 Jason Rumney <jasonr@gnu.org>
13452
13453 * w32term.c (w32_encode_char): New charset parameter.
13454 font_info.encoding becomes encoding_type.
13455 (x_get_font_repertory): New function. Warning: stub only!
13456 (x_new_font): Return quickly if font already set.
13457 (x_new_fontset): fontsetname parameter is Lisp_Object.
13458 Use new fs_query_fontset. Try new_fontset_from_font_name.
13459 Use fontset_name for return value.
13460
13461 * w32term.h: Declare x_get_font_repertory.
13462
13463 * w32select.c (Fw32_set_clipboard_data): Use string_x_string_p in
13464 place of find_charset_in_text. Use encode_coding_object in place
13465 of encode_coding.
13466 (Fw32_get_clipboard_data): Use decode_coding_c_string in place of
13467 decode_coding.
13468
13469 * w32fns.c (Fx_create_frame, x_create_tip_frame): Use new version
13470 of x_new_fontset.
13471 (w32_load_system_font): Initialize charset as unicode.
13472 font_info.encoding becomes encoding_type.
13473 (w32_to_x_font): Use decode_coding_c_string in place of decode_coding.
13474 (x_to_w32_font): Use encode_coding_object in place of encode_coding.
13475 (syms_of_w32fns): Set get_font_repertory_func.
13476
13477 * w32console.c: Include character.h. Use terminal_encode_buffer
13478 from term.c.
13479 (write_glyphs): Use new version of encode_terminal_code. Use
13480 encode_coding_object in place of encode_coding.
13481
13482 * w32bdf.c (w32_load_bdf_font): Clear font_info before filling.
13483 encoding becomes encoding_type.
13484
13485 * term.c (terminal_encode_buffer): Make externally visible.
13486
13487 * makefile.w32-in: Add character.h dependancies.
13488 (character.o, chartab.o): New targets.
13489
13490 2008-02-01 Kenichi Handa <handa@m17n.org>
13491
13492 * fileio.c (Finsert_file_contents) [DOS_NT]: Use the macro
13493 CODING_ID_EOL_TYPE.
13494
13495 2008-02-01 Andreas Schwab <schwab@suse.de>
13496
13497 * coding.c (produce_chars): Revert last change.
13498
13499 2008-02-01 Kenichi Handa <handa@m17n.org>
13500
13501 * charset.h (charset_unicode): Extern it.
13502
13503 * charset.c (string_xstring_p): Check by (C >= 0x100).
13504 (find_charsets_in_text): Change format of the arc CHARSETS. New
13505 arg MULTIBYTE.
13506 (Ffind_charset_region, Ffind_charset_string): Adjust for the
13507 change of find_charsets_in_text.
13508 (Fsplit_char): Fix doc. Never return unknown.
13509
13510 * chartab.c (char_table_translate): Use CHARACTERP, not INTEGERP.
13511
13512 * coding.c (Fdefine_coding_system_alias): Update
13513 Vcoding_system_list.
13514
13515 * fontset.c (load_font_get_repertory): Pay attention to the case
13516 that ENCODING of a font is specified by a char-table.
13517
13518 * xterm.c (x_get_font_repertory): Handle the case that the
13519 encoding of font is other than Unicode.
13520
13521 2008-02-01 Kenichi Handa <handa@m17n.org>
13522
13523 * term.c (encode_terminal_code): Don't handle glyph-table. Check
13524 if a character is encodable by the terminal coding system. If
13525 not, produces proper number of `?'s. Update
13526 terminal_encode_buffer and terminal_encode_buf_size if necessary.
13527 (produce_glyphs): Check by CHAR_BYTE8_P, not SINGLE_BYTE_CHAR_P.
13528
13529 2008-02-01 Kenichi Handa <handa@m17n.org>
13530
13531 * term.c (terminal_encode_buffer, terminal_encode_buf_size): New
13532 variables.
13533 (encode_terminal_code): Change argument. Encode multiple
13534 characters at once. Store the result of encoding in
13535 terminal_encode_buffer.
13536 (write_glyphs, insert_glyphs): Adjust for the change of
13537 encode_terminal_code.
13538 (term_init): Initialize terminal_encode_buffer and
13539 terminal_encode_buf_size.
13540
13541 * coding.c (consume_chars): If coding->src_object is nil, don't
13542 check annotation.
13543
13544 2008-02-01 Kenichi Handa <handa@m17n.org>
13545
13546 * character.c (char_string): Use ASCII_CHAR_P instead of
13547 SINGLE_BYTE_CHAR_P.
13548
13549 2008-02-01 Kenichi Handa <handa@m17n.org>
13550
13551 * xdisp.c (handle_auto_composed_prop): Check if the last
13552 characters of auto-composed region is newly composed with the
13553 following characters.
13554 (handle_composition_prop): Fix checking of point being inside
13555 composition.
13556
13557 2008-02-01 Kenichi Handa <handa@m17n.org>
13558
13559 * fns.c (concat): Don't change multibyteness of the result by
13560 concatenating an 8-bit character.
13561
13562 * data.c (Faset): Check newelt by CHECK_CHARACTER. Don't change
13563 multibyteness of the result when newelt is an 8-bit character.
13564
13565 2008-02-01 Dave Love <fx@gnu.org>
13566
13567 * xmenu.c (find_and_call_menu_selection): Make menu_bar_items_used
13568 EMACS_INT.
13569
13570 * xfns.c (DefaultDepthOfScreen, x_encode_text): Remove unused vars.
13571
13572 * xfaces.c (face_numeric_value): Declare dim size_t.
13573 (Finternal_lisp_face_equal_p): Remove unused f.
13574
13575 * xdisp.c (BUILD_CHAR_GLYPH_STRINGS, display_and_set_cursor)
13576 (MATRIX_ROW): Remove unused vars.
13577 (draw_glyphs, x_insert_glyphs, fast_find_position)
13578 (fast_find_position, fast_find_string_pos): Use EMACS_INT for
13579 byte/char counts.
13580
13581 * regex.c (regex_compile): Remove unused var.
13582
13583 * minibuf.c (Fminibuffer_complete_word): Remove unused var.
13584
13585 * keymap.c (Fset_keymap_parent, map_keymap, Fcopy_keymap)
13586 (Faccessible_keymaps, where_is_internal): Remove unused vars.
13587
13588 * keyboard.c (cancel_hourglass_unwind): Return Qnil.
13589
13590 * frame.c (frame_name_fnn_p): Make len EMACS_INT.
13591
13592 * fileio.c (Fwrite_region): Remove unused var.
13593
13594 * dispnew.c (adjust_frame_glyphs_for_frame_redisplay)
13595 (adjust_frame_glyphs_for_window_redisplay): Remove unused ch_dim.
13596
13597 * composite.c (Fremove_list_of_text_properties): Declare.
13598
13599 * coding.c (inhibit_pre_post_conversion): Remove (unused).
13600 (alloc_destination, produce_chars): Use EMACS_INT for byte/char counts.
13601 (coding_inherit_eol_type): Remove unused attrs.
13602 (detect_coding): Cast arg of detect_eol.
13603
13604 * charset.c (syms_of_charset): Remove unused var p.
13605 (find_charsets_in_text, Ffind_charset_region): Use EMACS_INT for
13606 byte/char counts.
13607
13608 * casetab.c (set_case_table): Remove unused var.
13609
13610 * window.c (Fdisplay_buffer, Fframe_selected_window): Remove
13611 unused vars.
13612
13613 2008-02-01 Dave Love <fx@gnu.org>
13614
13615 * xterm.c (x_bitmap_mask): Declare.
13616
13617 2008-02-01 Dave Love <fx@gnu.org>
13618
13619 * xterm.c (x_term_init): Fix type error.
13620
13621 * lisp.h: Add Funibyte_char_to_multibyte.
13622
13623 * coding.c (Fread_coding_system): Fix arg of XSETSTRING.
13624 (Fset_coding_system_priority): Doc fix.
13625
13626 * ccl.c (ccl_driver): Fix arg of CHARACTERP.
13627
13628 * indent.c (check_composition): Make start and end EMACS_INT.
13629
13630 * character.c (lisp_string_width): Make ignore and end EMACS_INT.
13631
13632 * xdisp.c (handle_composition_prop, check_point_in_composition):
13633 Make buffer positions EMACS_INT.
13634
13635 * composite.c (find_composition, run_composition_function)
13636 (update_compositions, Ffind_composition_internal): Make buffer
13637 positions EMACS_INT.
13638
13639 * composite.h (find_composition, update_compositions): Make
13640 position args EMACS_INT.
13641
13642 * keyboard.c (adjust_point_for_property): Make beg and end EMACS_INT.
13643
13644 * intervals.c (get_property_and_range):
13645 * intervals.h (get_property_and_range): Make start and end EMACS_INT.
13646
13647 * unexalpha.c: Don't include varargs.h.
13648
13649 2008-02-01 Dave Love <fx@gnu.org>
13650
13651 * coding.h (ENCODE_UTF_8): New.
13652
13653 * Makefile.in (gtkutil.o): Depend on coding.h.
13654
13655 * coding.c (Fset_coding_system_priority): Doc fix.
13656
13657 2008-02-01 Kenichi Handa <handa@m17n.org>
13658
13659 * fileio.c (Finsert_file_contents): Call setup_coding_system in
13660 the case of auto saving.
13661
13662 2008-02-01 Andreas Schwab <schwab@suse.de>
13663
13664 * chartab.c (map_char_table, map_char_table_for_charset): Protect
13665 `range' from GC.
13666
13667 2008-02-01 Kenichi Handa <handa@m17n.org>
13668
13669 * coding.c (decode_coding_sjis): Check bytes more rigidly.
13670
13671 2008-02-01 Kenichi Handa <handa@m17n.org>
13672
13673 * fileio.c (choose_write_coding_system): Return a decided coding system.
13674 (Fwrite_region): Set Vlast_coding_system_used to the return value
13675 of choose_write_coding_system.
13676
13677 2008-02-01 Kenichi Handa <handa@m17n.org>
13678
13679 * charset.c (Fset_charset_priority): Pay attention to duplicated
13680 arguments.
13681
13682 * coding.c (QCcategory): New variable.
13683 (syms_of_coding): Defsym it. Set all elements of
13684 Vcoding_category_table and their symbol values.
13685 (Fset_coding_system_priority): Doc fix. Update symbol qvalues of
13686 coding-category-XXX, and coding-category-list.
13687 (Fdefine_coding_system_internal): Add category in the plist.
13688
13689 2008-02-01 Kenichi Handa <handa@m17n.org>
13690
13691 * callproc.c (Fcall_process): Handle carryover correctly.
13692
13693 * coding.c (decode_coding_iso_2022): Fix handling of invalid bytes.
13694 (raw_text_coding_system): Check NILP (coding_system).
13695 (coding_inherit_eol_type): Check NILP (coding_system) and
13696 NILP (parent).
13697 (consume_chars): Fix for the case of raw-text.
13698
13699 * process.c (read_process_output): Handle carryover correctly.
13700
13701 2008-02-01 Dave Love <fx@gnu.org>
13702
13703 * regex.c (re_search_2): Fix last change.
13704
13705 2008-02-01 Kenichi Handa <handa@m17n.org>
13706
13707 * regex.c (GET_CHAR_BEFORE_2): Check multibyte, not
13708 target_multibyte. Even in a unibyte case, return a converted
13709 multibyte char.
13710 (GET_CHAR_AFTER): New macro.
13711 (PATFETCH): Translate via multibyte char.
13712 (HANDLE_UNIBYTE_RANGE): Delete this macro.
13713 (SETUP_MULTIBYTE_RANGE): New macro.
13714 (regex_compile): Setup compiled code so that its multibyteness
13715 matches that of a target. Fix the handling of "[X-YZ]" using
13716 SETUP_MULTIBYTE_RANGE.
13717 (analyse_first) <charset>: For filling fastmap for all multibyte
13718 characters, don't check by BASE_LEADING_CODE_P.
13719 (re_search_2): Don't check RE_TARGET_MULTIBYTE_P (bufp). It is
13720 the same as RE_MULTIBYTE_P (bufp) now.
13721 (mutually_exclusive_p): Check by (! multibyte || IS_REAL_ASCII (c)).
13722 (TARGET_CHAR_AND_LENGTH): Delete this macro.
13723 (TRANSLATE_VIA_MULTIBYTE): New macro.
13724 (re_match_2_internal): Don't check RE_TARGET_MULTIBYTE_P (bufp).
13725 It is the same as RE_MULTIBYTE_P (bufp) now.
13726 <exactn>: Translate via multibyte.
13727 <anychar>: Fetch a character by RE_STRING_CHAR_AND_LENGTH. Don't
13728 translate it.
13729 <charset, charset_not>: Fetch a character by
13730 RE_STRING_CHAR_AND_LENGTH. Translate via multibyte.
13731 <duplicate>: Call bcmp_translate with the last arg `multibyte'.
13732 <wordbound, notwordbound, wordbeg, wordend, syntaxspec,
13733 notsyntaxspec, categoryspec, notcategoryspec> Fetch a character
13734 by GET_CHAR_AFTER.
13735 (bcmp_translate): Likewise.
13736
13737 * search.c (compile_pattern): Check the member target_multibyte,
13738 not the member multibyte of buf.
13739
13740 * lread.c (read1): While reading a string, set force_singlebyte
13741 and force_multibyte correctly.
13742
13743 * charset.c (Fset_unibyte_charset, init_charset_once): Fix setting
13744 up of unibyte_to_multibyte_table.
13745
13746 2008-02-01 Kenichi Handa <handa@m17n.org>
13747
13748 * coding.c (setup_coding_system): If coding has
13749 post-read-conversion or pre-write-conversion, set
13750 CODING_REQUIRE_DECODING_MASK and CODING_REQUIRE_ENCODING_MASK
13751 respectively.
13752 (decode_coding_gap): Run post-read-conversion if any.
13753
13754 * fileio.c (Finsert_file_contents): Even if we read into a
13755 unibyte buffer, check if we must decode the result or not.
13756
13757 2008-02-01 Kenichi Handa <handa@m17n.org>
13758
13759 * coding.c (make_conversion_work_buffer): Change the work buffer
13760 name to the same one as that of Emacs 21.
13761
13762 2008-02-01 Kenichi Handa <handa@m17n.org>
13763
13764 * coding.h (make_conversion_work_buffer): Adjust prototype.
13765 (code_conversion_restore): Don't extern it.
13766
13767 * coding.c (detected_mask): Delete unused variable.
13768 (decode_coding_iso_2022): Pay attention to the byte sequence of
13769 CTEXT extended segment, and retain those bytes as is.
13770 (decode_coding_ccl): Delete unused variable `valids'.
13771 (setup_coding_system): Delete unused variable `category'.
13772 (consume_chars): Delete unused variable `category'. Make it work
13773 for non-multibyte case.
13774 (make_conversion_work_buffer): Change argument.
13775 (saved_coding): Delete unused variable.
13776 (code_conversion_restore): Don't check saved_coding->destination.
13777 (code_conversion_save): New function.
13778 (decode_coding_gap, encode_coding_gap): Call code_conversion_save
13779 instead of record_unwind_protect.
13780 (decode_coding_object, encode_coding_object): Likewise. Recover PT.
13781 (detect_coding_system): Delete unused variable `mask'.
13782 (Fdefine_coding_system_internal): Delete unused variable id.
13783
13784 * fileio.c (kill_workbuf_unwind): New function.
13785 (Finsert_file_contents): On replacing, call
13786 make_conversion_work_buffer with correct args, and call
13787 record_unwind_protect with the first arg kill_workbuf_unwind.
13788
13789 * lisp.h (Fgenerate_new_buffer_name): EXFUN it.
13790
13791 2008-02-01 Kenichi Handa <handa@m17n.org>
13792
13793 * fontset.c (BASE_FONTSET_P): Check FONTSET_BASE, not FONTSET_NAME.
13794 (fontset_add): Fix for the case that TO is less than TO1.
13795 (Ffontset_info): Don't use fallback fontset on checking the
13796 default fontset.
13797 (dump_fontset): New function for debugging.
13798
13799 * coding.c (Fdefine_coding_system_internal): Fix for the case that
13800 coding_type is Qcharset.
13801
13802 2008-02-01 Kenichi Handa <handa@m17n.org>
13803
13804 * chartab.c (map_sub_char_table): New argument DEFAULT_VAL.
13805 (map_char_table): Don't inherit the value from the parent on
13806 initializing VAL. Adjust for the above change.
13807
13808 2008-02-01 Kenichi Handa <handa@m17n.org>
13809
13810 * coding.c (Qsignature, Qendian): Delete these variables.
13811 (syms_of_coding): Don't initialize them.
13812 (CATEGORY_MASK_UTF_16_AUTO): New macro.
13813 (detect_coding_utf_16): Add CATEGORY_MASK_UTF_16_AUTO in
13814 detect_info->found.
13815 (decode_coding_utf_16): Don't detect BOM here.
13816 (encode_coding_utf_16): Produce BOM if CODING_UTF_16_BOM (coding)
13817 is NOT utf_16_without_bom.
13818 (setup_coding_system): For a coding system of type utf-16, check
13819 if the attribute :endian is Qbig or not (not nil or not), and set
13820 CODING_REQUIRE_DETECTION_MASK if BOM detection is required.
13821 (detect_coding): If coding type is utf-16 and BOM detection is
13822 required, detect it.
13823 (Fdefine_coding_system_internal): For a coding system of type
13824 utf-16, check if the attribute :endian is Qbig or not (not nil or not).
13825
13826 2008-02-01 Kenichi Handa <handa@m17n.org>
13827
13828 * coding.c (coding_set_source): Fix for the case that the current
13829 buffer is different from coding->src_object.
13830 (decode_coding_object): Don't use the conversion work buffer if
13831 DST_OBJECT is a buffer.
13832
13833 2008-02-01 Dave Love <fx@gnu.org>
13834
13835 * lread.c (read_emacs_mule_char) [len==2]: Index
13836 emacs_mule_charset correctly.
13837
13838 2008-02-01 Dave Love <fx@gnu.org>
13839
13840 * coding.c (Qbig5, Vbig5_coding_system, CATEGORY_MASK_BIG5)
13841 (detect_coding_big5, decode_coding_big5, encode_coding_big5)
13842 (Fdecode_big5_char, Fencode_big5_char): Delete. (Big5 no longer
13843 treated specially.)
13844 (setup_coding_system, coding_category, CATEGORY_MASK_ANY)
13845 (detected_mask): Remove Big5 bits.
13846
13847 2008-02-01 Kenichi Handa <handa@m17n.org>
13848
13849 The following changes are to make the font rescaling facility
13850 compatible with Emacs 21.
13851
13852 * xfaces.c (Vface_font_rescale_alist): Rename from
13853 Vface_resizing_fonts.
13854 (struct font_name): Rename member resizing_ratio to rescale_ratio.
13855 (font_rescale_ratio): Rename from font_resizing_ratio.
13856 (split_font_name): Set font->rescale_ratio.
13857 (better_font_p): Pay attention to font->rescale_ratio.
13858 (build_scalable_font_name): Likewise. Change RESX, and RESY
13859 fields.
13860 (syms_of_xfaces): Declare Vface_font_rescale_alist as a Lisp variable.
13861
13862 2008-02-01 Kenichi Handa <handa@m17n.org>
13863
13864 * coding.c (Qutf_16_be_nosig, Qutf_16_be, Qutf_16_le_nosig)
13865 (Qutf_16_le): Remove these variables.
13866 (syms_of_coding): Don't DEFSYM them.
13867 (decode_coding_utf_16): Fix handling of BOM.
13868 (encode_coding_utf_16): Fix handling of BOM.
13869
13870 2008-02-01 Kenichi Handa <handa@m17n.org>
13871
13872 * fileio.c (Finsert_file_contents): On replacing, before decoding
13873 the file into the work buffer, set point of the work buffer to the end.
13874
13875 2008-02-01 Dave Love <fx@gnu.org>
13876
13877 * coding.c (Fcheck_coding_systems_region): Fix type errors.
13878
13879 2008-02-01 Dave Love <fx@gnu.org>
13880
13881 * xterm.c (XTread_socket): Check Lisp types for Vx_keysym_table
13882 and fix C types.
13883
13884 2008-02-01 Kenichi Handa <handa@m17n.org>
13885
13886 * xdisp.c (SKIP_GLYPHS): New macro.
13887 (set_cursor_from_row): Pay attention to string display properties.
13888
13889 * category.c (copy_category_entry): Fix for the case that RANGE
13890 is an integer.
13891
13892 * xterm.c (x_encode_char): Call ccl_driver with the last arg Qnil.
13893
13894 * w32term.c (w32_encode_char): Call ccl_driver with the last arg Qnil.
13895
13896 2008-02-01 Kenichi Handa <handa@m17n.org>
13897
13898 * charset.c (Fcharset_id_internal): New function.
13899 (syms_of_charset): Defsubr it.
13900
13901 * coding.c (decode_coding_ccl, encode_coding_ccl): Call ccl_driver
13902 with the last arg charset_list acquired from coding.
13903 (Fdefine_coding_system_internal): For ccl-based coding system, fix
13904 the attribute coding_attr_ccl_valids.
13905
13906 * coding.h (enum define_coding_ccl_arg_index): Set the first
13907 member coding_arg_ccl_decoder to coding_arg_max.
13908
13909 * ccl.h (ccl_driver): Adjust prototype.
13910
13911 * ccl.c (CCL_DECODE_CHAR, CCL_ENCODE_CHAR): New macros.
13912 (ccl_driver): New arg CHARSET_LIST. Use the above macros instead
13913 of DECODE_CHAR, ENCODE_CHAR, CHAR_CHARSET.
13914 (Fccl_execute, Fccl_execute_on_string): Call ccl_driver with the
13915 last arg Qnil.
13916
13917 2008-02-01 Kenichi Handa <handa@m17n.org>
13918
13919 * charset.h (ENCODE_CHAR): If the method is SUBSET or SUPERSET,
13920 call encode_char.
13921
13922 * charset.c (encode_char): Fix handling of methods SUBSET and SUPERSET.
13923
13924 2008-02-01 Dave Love <fx@gnu.org>
13925
13926 * composite.c (syms_of_composite): Make composition_hash_table weak.
13927
13928 2008-02-01 Kenichi Handa <handa@m17n.org>
13929
13930 * dispextern.h (check_face_attributes, generate_ascii_font_name)
13931 (font_name_registry): Don't extern them.
13932 (split_font_name_into_vector, build_font_name_from_vector): Extern them.
13933
13934 * fontset.h (Qfontset): Don't extern it.
13935 (new_fontset_from_font_name): Extern it.
13936
13937 * fontset.c: Give 8 extra slots to fontset objects.
13938 (Qfontset_info): New variable.
13939 (syms_of_fontset): Defsym it.
13940 (FONTSET_FALLBACK): New macro.
13941 (fontset_face): Try also the default fontset.
13942 (make_fontset): Realize a fallback fontset from the default fontset.
13943 (generate_ascii_font_name): Move from xfaces.c. Rewritten by
13944 using split_font_name_into_vector and build_font_name_from_vector.
13945 (Fset_fontset_font): Access the elements of font_spec by enum
13946 FONT_SPEC_INDEX. If font_spec is a string, extract the registry
13947 name by using split_font_name_into_vector.
13948 (Fnew_fontset): If no ASCII font is specified in FONTLIST,
13949 generate a proper font name from the fontset name. Update
13950 Vfontset_alias_alist.
13951 (n_auto_fontsets): New variable.
13952 (new_fontset_from_font_name): New function.
13953 (Ffont_info): Store the information about fonts generated from the
13954 default fontset in the first extra slot of the returned char-table.
13955
13956 * xfaces.c (generate_ascii_font_name): Move to fontset.c.
13957 (font_name_registry): Delete function.
13958 (split_font_name_into_vector): New function.
13959 (build_font_name_from_vector): New function.
13960 (font_list): The argument REGISTRY is now a list of registry names.
13961 (choose_face_font): If we are choosing an ASCII font, and ATTRS
13962 specifies an explicit font name, return the name as is. Make a
13963 list of registy names.
13964
13965 * xfns.c (x_set_font, x_create_tip_frame): Adjust for the change
13966 of x_new_fontset.
13967 (Fx_create_frame): Don't call x_new_fontset here. Just use
13968 x_list_fonts to check the existence of fonts.
13969
13970 * xterm.h (x_new_fontset): Adjust prototype.
13971
13972 * xterm.c (x_new_fontset): Change the arg FONTSETNAME to Lisp
13973 string. Use new_fontset_from_font_name to create a fontset from a
13974 font name.
13975
13976 2008-02-01 Kenichi Handa <handa@m17n.org>
13977
13978 * syntax.c (Vfind_word_boundary_function_table): New name for
13979 Vnext_word_boundary_function_table.
13980 (find-word-boundary-function-table): New name for
13981 next-word-boundary-function-table.
13982
13983 2008-02-01 Dave Love <fx@gnu.org>
13984
13985 * Makefile.in: Fix some dependencies.
13986
13987 * keymap.c (Fapropos_internal): Don't gcpro apropos_predicate but
13988 set it to nil before returning.
13989
13990 * composite.c (update_compositions): Fix type error.
13991
13992 * syntax.c (skip_chars, skip_syntaxes): Fix type errors.
13993
13994 2008-02-01 Kenichi Handa <handa@m17n.org>
13995
13996 * xterm.c (x_new_font): Optimize for the case that the font is
13997 already set for the frame.
13998
13999 2008-02-01 Kenichi Handa <handa@m17n.org>
14000
14001 * chartab.c (char_table_ascii): Check if the char table contents
14002 is sub-char-table or not.
14003 (char_table_set, char_table_set_range): Fix argument to
14004 char_table_ascii.
14005
14006 * coding.c (CATEGORY_MASK_RAW_TEXT): New macro.
14007 (detect_coding_utf_8, detect_coding_utf_16)
14008 (detect_coding_emacs_mule, detect_coding_iso_2022)
14009 (detect_coding_sjis, detect_coding_big5)
14010 (detect_coding_ccl, detect_coding_charset): Change argument MASK
14011 to DETECT_INFO. Update DETECT_INFO and return 1 if the byte
14012 sequence is valid in this coding system. Change callers.
14013 (MAX_ANNOTATION_LENGTH): New macro.
14014 (ADD_ANNOTATION_DATA): New macro.
14015 (ADD_COMPOSITION_DATA): Change argument. Change callers. Call
14016 ADD_ANNOTATION_DATA. Change the format of annotation data.
14017 (ADD_CHARSET_DATA): New macro.
14018 (emacs_mule_char): New argument ID. Change callers.
14019 (decode_coding_emacs_mule, decode_coding_iso_2022)
14020 (decode_coding_sjis, decode_coding_big5, decode_coding_charset):
14021 Produce charset annotation data in coding->charbuf.
14022 (encode_coding_emacs_mule, encode_coding_iso_2022): Pay attention
14023 to charset annotation data in coding->charbuf.
14024 (setup_coding_system): Add CODING_ANNOTATE_CHARSET_MASK
14025 coding->common_flags if the coding system is iso-2022 based and
14026 uses designation.
14027 (produce_composition): Adjust for the new annotation data format.
14028 (produce_charset): New function.
14029 (produce_annotation): Handle charset annotation.
14030 (handle_composition_annotation, handle_charset_annotation): New
14031 functions.
14032 (consume_chars): Handle charset annotation. Utilize the above two
14033 functions.
14034 (encode_coding_object): If SRC_OBJECT and DST_OBJECT are the same
14035 buffer, get the deleted text as a string and set
14036 coding->src_object to that string.
14037 (detect_coding, detect_coding_system): Use the new struct
14038 coding_detection_info.
14039
14040 * coding.h (struct coding_detection_info): New structure.
14041 (struct coding_system): Adjust prototype of the member `detector'.
14042 (CODING_ANNOTATE_CHARSET_MASK): New macro.
14043
14044 2008-02-01 Kenichi Handa <handa@m17n.org>
14045
14046 * insdel.c (insert_from_gap): Fix argument to offset_intervals.
14047
14048 2008-02-01 Dave Love <fx@gnu.org>
14049
14050 * keymap.c (apropos_predicate, apropos_accumulate): Declare static.
14051 (Fapropos_internal): Don't gcpro apropos_accumulate. Set result
14052 to new local and nullify apropos_accumulate before returning.
14053 (syms_of_keymap): Staticpro and initialize apropos_accumulate.
14054
14055 2008-02-01 Kenichi Handa <handa@m17n.org>
14056
14057 * charset.c (Fdefine_charset_internal): Setup charset.fast_map
14058 correctly.
14059
14060 2008-02-01 Dave Love <fx@gnu.org>
14061
14062 * fns.c (Flanginfo): Call synchronize_system_time_locale.
14063
14064 2008-02-01 Kenichi Handa <handa@m17n.org>
14065
14066 The following changes are to make character composition happen
14067 automatically on displaying.
14068
14069 * Makefile.in (lisp, shortlisp): Add composite.elc.
14070
14071 * composite.h (Qauto_composed, Vauto_composition_function)
14072 (Qauto_composition_function): Extern them.
14073
14074 * composite.c (Vcomposition_function_table)
14075 (Qcomposition_function_table): Delete variables.
14076 (Qauto_composed, Vauto_composition_function)
14077 (Qauto_composition_function): New variables.
14078 (run_composition_function): Don't call
14079 compose-chars-after-function.
14080 (update_compositions): Clear `auto-composed' text property.
14081 (compose_chars_in_text): Delete this function.
14082 (syms_of_composite): Staticpro Qauto_composed and
14083 Qauto_composition_function. Declare Vauto_composition_function as
14084 a Lisp variable.
14085
14086 * dispextern.h (enum prop_idx): Add member AUTO_COMPOSED_PROP_IDX.
14087
14088 * xdisp.c (it_props): Add an entry for Qauto_composed.
14089 (handle_auto_composed_prop): New function.
14090
14091 * xselect.c (selection_data_to_lisp_data): Don't call
14092 compose_chars_in_text.
14093
14094 2008-02-01 Dave Love <fx@gnu.org>
14095
14096 * keyboard.c (read_char): Modify checking around use of
14097 Vkeyboard_translate_table.
14098
14099 * xterm.c (XTread_socket): Check Lisp types for Vx_keysym_table
14100 and fix C types.
14101
14102 2008-02-01 Kenichi Handa <handa@m17n.org>
14103
14104 * coding.c (decode_coding_utf_8, decode_coding_emacs_mule)
14105 (decode_coding_iso_2022, decode_coding_sjis, decode_coding_big5)
14106 (decode_coding_charset, produce_chars): When eol_type is Qdos, handle
14107 the case that the last byte is '\r' correctly.
14108 (decode_coding): Flush out the unprocessed data correctly.
14109 (decode_coding_gap): Set CODING_MODE_LAST_BLOCK bit of coding->mode.
14110
14111 2008-02-01 Dave Love <fx@gnu.org>
14112
14113 * xterm.c (XTread_socket): Fix changes for defined keysyms.
14114 Add XK_ISO... case.
14115 (xaw_scroll_callback): Revert last change.
14116
14117 2008-02-01 Kenichi Handa <handa@m17n.org>
14118
14119 * charset.c (Fset_charset_priority): Update Viso_2022_charset_list.
14120
14121 2008-02-01 Kenichi Handa <handa@m17n.org>
14122
14123 * xfaces.c (Vface_resizing_fonts): New variable.
14124 (struct font_name): New member `resizing_ratio'.
14125 (font_resizing_ratio): New function.
14126 (split_font_name): Set font->resizing_ratio.
14127 (better_font_p): Pay attention to font->resizing_ratio.
14128 (build_scalable_font_name): Likewise. Don't change POINT_SIZE,
14129 RESX, and RESY fields.
14130 (try_alternative_families): Try scalable fonts if
14131 Vscalable_fonts_allowed is not Qt.
14132 (syms_of_xfaces): Declare Vface_resizing_fonts as a Lisp variable.
14133
14134 2008-02-01 Dave Love <fx@gnu.org>
14135
14136 * xterm.c (xaw_scroll_callback): Cast correctly.
14137
14138 2008-02-01 Dave Love <fx@gnu.org>
14139
14140 * keyboard.c (lispy_accent_codes, lispy_accent_keys): Extend.
14141 (lispy_kana_keys): Comment out.
14142 (make_lispy_event) [XK_kana_A]: Comment out.
14143
14144 * xterm.c (xaw_scroll_callback): Cast call_data.
14145 (XTread_socket): Deal with ASCII keysyms.
14146 (syms_of_xterm) <Vx_keysym_table>: Fix args of make_hash_table.
14147
14148 2008-02-01 Dave Love <fx@gnu.org>
14149
14150 * xterm.c (Vx_keysym_table): New.
14151 (syms_of_xterm): Initialize it.
14152 (XTread_socket): Use it.
14153 From head: Eliminate incorrect optimization that tried to avoid
14154 decoding the output of X*LookupString.
14155 (x_get_font_repertory): Delete charset declaration.
14156
14157 2008-02-01 Kenichi Handa <handa@m17n.org>
14158
14159 * coding.c (detect_coding_charset): If only ASCII bytes are found,
14160 return 0.
14161 (Fdefine_coding_system_internal): Setup
14162 CODING_ATTR_ASCII_COMPAT (attrs) correctly.
14163
14164 2008-02-01 Dave Love <fx@gnu.org>
14165
14166 * coding.c (Fcheck_coding_system): Doc fix.
14167
14168 * editfns.c (Finsert_byte): Return a proper value.
14169
14170 2008-02-01 Kenichi Handa <handa@m17n.org>
14171
14172 * coding.c (decode_coding): Fix args to translate_chars. Pay
14173 attention to Vstandard_translation_table_for_decode.
14174 (encode_coding): Fix args to translate_chars. Pay attention to
14175 Vstandard_translation_table_for_encode.
14176
14177 * data.c (Faset): Check NEWELT by ASCII_CHAR_P, not by
14178 SINGLE_BYTE_CHAR_P.
14179
14180 * editfns.c (general_insert_function): Check VAL by ASCII_CHAR_P,
14181 not by SINGLE_BYTE_CHAR_P.
14182
14183 * fns.c (concat): Check CH by ASCII_CHAR_P, not by
14184 SINGLE_BYTE_CHAR_P.
14185
14186 * insdel.c (copy_text): Check C by ASCII_CHAR_P, not by
14187 SINGLE_BYTE_CHAR_P.
14188
14189 * keymap.c (Ftext_char_description): Check C by ASCII_CHAR_P, not
14190 by SINGLE_BYTE_CHAR_P.
14191
14192 * search.c (Freplace_match): Check C by ASCII_CHAR_P, not by
14193 SINGLE_BYTE_CHAR_P.
14194
14195 2008-02-01 Dave Love <fx@gnu.org>
14196
14197 * fns.c (Fstring_as_multibyte, Fstring_to_multibyte): Doc fix.
14198
14199 2008-02-01 Dave Love <fx@gnu.org>
14200
14201 * fns.c (Flanginfo): Fix typo.
14202
14203 * unexelf.c (unexec): Make last change conditional on Irix 6.5.
14204
14205 2008-02-01 Kenichi Handa <handa@m17n.org>
14206
14207 * coding.c (detect_coding_utf_8, detect_coding_utf_16)
14208 (detect_coding_emacs_mule, detect_coding_iso_2022)
14209 (detect_coding_sjis, detect_coding_big5, detect_coding_ccl): Check
14210 incomplete byte sequence. Don't update *mask when correctly detected.
14211 (decode_coding_sjis): Fix decoding of katakana-jisx0201.
14212 (detect_eol): Delete the argument CODING, and add the argument CATEGORY.
14213 (detect_coding, detect_coding_system): Adjust for the changes above.
14214
14215 2008-02-01 Kenichi Handa <handa@m17n.org>
14216
14217 * character.c (char_string): Rename from
14218 char_string_with_unification. Pay attention to CHAR_MODIFIER_MASK.
14219 (string_char): Rename from string_char.
14220
14221 * character.h (CHAR_STRING, CHAR_STRING_ADVANCE): Call char_string
14222 if C is greater than MAX_3_BYTE_CHAR.
14223 (STRING_CHAR, STRING_CHAR_AND_LENGTH, STRING_CHAR_ADVANCE): Call
14224 string_char instead of string_char_with_unification.
14225
14226 2008-02-01 Dave Love <fx@gnu.org>
14227
14228 * coding.c (decode_coding_utf_8): Treat surrogates as invalid.
14229
14230 2008-02-01 Kenichi Handa <handa@m17n.org>
14231
14232 * keymap.c (push_key_description): Pay attention to force_multibyte.
14233
14234 * regex.c (re_search_2): Fix for the case of unibyte buffer.
14235
14236 2008-02-01 Dave Love <fx@gnu.org>
14237
14238 * charset.c (define_charset_internal): Rename `supprementary'.
14239
14240 * Makefile.in (lisp, shortlisp): Remove latin-N.
14241
14242 2008-02-01 Dave Love <fx@gnu.org>
14243
14244 * xfns.c (x_window, x_window): Use use_xim.
14245
14246 * xterm.c (use_xim): Initialize.
14247 (xim_open_dpy, xim_initialize, xim_close_dpy): Use use_xim.
14248 (x_term_init): Maybe set use_xim.
14249
14250 * xterm.h (use_xim) [HAVE_X_I18N]: Declare.
14251
14252 2008-02-01 Kenichi Handa <handa@m17n.org>
14253
14254 * search.c (search_buffer): Fix case-fold-search of multibyte
14255 characters.
14256 (boyer_moore): Rename the last argument to char_high_bits.
14257
14258 2008-02-01 Kenichi Handa <handa@m17n.org>
14259
14260 * xdisp.c (display_string): Fix for the case of zero width glyph.
14261
14262 * xfns.c (x_set_font): Change the error message of the case that
14263 x_new_fontset returns Qt.
14264
14265 * xfaces.c (set_lface_from_font_name): Reject the default fontset.
14266 (Finternal_set_lisp_face_attribute): Use signal_error for the
14267 error of invalid fontset.
14268
14269 * xterm.c (x_new_fontset): If FONTSETNAME specifies the default
14270 fontset, return Qt.
14271
14272 2008-02-01 Dave Love <fx@gnu.org>
14273
14274 * unexelf.c (unexec): Make .got handling not SGI-specific.
14275
14276 * syntax.c (syms_of_syntax) <multibyte-syntax-as-symbol>: Doc fix.
14277
14278 * regex.c: Use `ifdef HAVE_ALLOCA_H', not `if HAVE_ALLOCA_H'.
14279
14280 * keyboard.c (read_key_sequence): Fix type error.
14281
14282 * buffer.c (Fset_buffer_multibyte, Fset_buffer_multibyte): Fix
14283 type error.
14284
14285 * fontset.c (fontset_add): Return Lisp_Object.
14286
14287 2008-02-01 Dave Love <fx@gnu.org>
14288
14289 * charset.h (charset_ordered_list_tick): Declare extern.
14290
14291 2008-02-01 Kenichi Handa <handa@m17n.org>
14292
14293 The following changes (and some of 2008-02-01 changes of mine) are
14294 for handling syntax, category, and case conversion for unibyte
14295 characters by converting them to multibyte on the fly. With these
14296 changes, we don't have to setup syntax and case tables for unibyte
14297 characters in each language environment.
14298
14299 * abbrev.c (Fexpand_abbrev): Convert a unibyte character to
14300 multibyte if necessary.
14301
14302 * bytecode.c (Fbyte_code): Likewise.
14303
14304 * character.h (LEADING_CODE_LATIN_1_MIN)
14305 (LEADING_CODE_LATIN_1_MAX): New macros.
14306 (unibyte_to_multibyte_table): Extern it.
14307 (unibyte_char_to_multibyte): New macro.
14308 (MAKE_CHAR_MULTIBYTE): Use unibyte_to_multibyte_table.
14309 (CHAR_LEADING_CODE): New macro.
14310 (FETCH_STRING_CHAR_AS_MULTIBYTE_ADVANCE): New macro.
14311
14312 * character.c (unibyte_to_multibyte_table): New variable.
14313 (unibyte_char_to_multibyte): Move to character.h and define as macro.
14314 (multibyte_char_to_unibyte): If C is an eight-bit character,
14315 convert it to the corresponding byte value.
14316
14317 * charset.c (Fset_unibyte_charset): If the dimension of CHARSET is
14318 not 1, signals an error. Update the elements of
14319 unibyte_to_multibyte_table.
14320 (init_charset_once): Initialize unibyte_to_multibyte_table.
14321 (syms_of_charset): Define the charset `iso-8859-1'.
14322
14323 * cmds.c (internal_self_insert): In a multibyte buffer, insert C
14324 as is without converting it to unibyte. In a unibyte buffer,
14325 convert C to multibyte before checking the syntax.
14326
14327 * lisp.h (unibyte_char_to_multibyte): Delete extern.
14328
14329 * minibuf.c (Fminibuffer_complete_word): Use the macro
14330 FETCH_STRING_CHAR_AS_MULTIBYTE_ADVANCE.
14331
14332 * regex.h (struct re_pattern_buffer): New member target_multibyte.
14333
14334 * regex.c (RE_TARGET_MULTIBYTE_P): New macro.
14335 (GET_CHAR_BEFORE_2): Check target_multibyte, not multibyte. If
14336 that is zero, convert an eight-bit char to multibyte.
14337 (MAKE_CHAR_MULTIBYTE, CHAR_LEADING_CODE): New dummy new macros for
14338 non-emacs case.
14339 (PATFETCH): Convert an eight-bit char to multibyte.
14340 (HANDLE_UNIBYTE_RANGE): New macro.
14341 (regex_compile): Setup the compiled pattern for multibyte chars
14342 even if the given regex string is unibyte. Use PATFETCH_RAW
14343 instead of PATFETCH in many places. To handle `charset'
14344 specification of unibyte, call HANDLE_UNIBYTE_RANGE. Use bitmap
14345 only for ASCII chars.
14346 (analyse_first) <exactn>: Simplify because the compiled pattern
14347 is multibyte.
14348 <charset_not>: Setup fastmap from bitmap only for ASCII chars.
14349 <charset>: Use CHAR_LEADING_CODE to get leading codes.
14350 <categoryspec>: If multibyte, setup fastmap only for ASCII chars here.
14351 (re_compile_fastmap) [emacs]: Call analyse_first with the arg
14352 multibyte always 1.
14353 (re_search_2): In emacs, set the locale variable multibyte to 1,
14354 otherwise to 0. New local variable target_multibyte. Check it
14355 to decide the multibyteness of STR1 and STR2. If
14356 target_multibyte is zero, convert unibyte chars to multibyte
14357 before translating and checking fastmap.
14358 (TARGET_CHAR_AND_LENGTH): New macro.
14359 (re_match_2_internal): In emacs, set the locale variable multibyte
14360 to 1, otherwise to 0. New local variable target_multibyte. Check
14361 it to decide the multibyteness of STR1 and STR2. Use
14362 TARGET_CHAR_AND_LENGTH to fetch a character from D.
14363 <charset, charset_not>: If multibyte is nonzero, check fastmap
14364 only for ASCII chars. Call bcmp_translate with
14365 target_multibyte, not with multibyte.
14366 <begline>: Declare the local variable C as `unsigned'.
14367 (bcmp_translate): Change the last arg name to target_multibyte.
14368
14369 * search.c (compile_pattern_1): Don't adjust the multibyteness of
14370 the regexp pattern and the matching target. Set cp->buf.multibyte
14371 to the multibyteness of the regexp pattern. Set
14372 cp->but.target_multibyte to the multibyteness of the matching target.
14373 (wordify): Use FETCH_STRING_CHAR_AS_MULTIBYTE_ADVANCE instead of
14374 FETCH_STRING_CHAR_ADVANCE.
14375 (Freplace_match): Convert unibyte chars to multibyte.
14376
14377 * syntax.c (char_quoted, back_comment, scan_words)
14378 (Fforward_comment, scan_lists, Fbackward_prefix_chars)
14379 (scan_sexps_forward): Use FETCH_CHAR_AS_MULTIBYTE to convert
14380 unibyte chars to multibyte.
14381 (skip_chars): Delete the arg syntaxp, and move the code for
14382 handling syntaxes to skip_syntaxes. Change callers.
14383 Fix the case that the multibyteness of STRING and the current
14384 buffer doesn't match.
14385 (skip_syntaxes): New function.
14386 (SYNTAX_WITH_MULTIBYTE_CHECK): Check C by ASCII_CHAR_P, not by
14387 SINGLE_BYTE_CHAR_P.
14388
14389 2008-02-01 Kenichi Handa <handa@m17n.org>
14390
14391 * xfaces.c (QCfontset): New variable.
14392 (LFACE_FONTSET): New macro.
14393 (check_lface_attrs): Check also LFACE_FONTSET_INDEX.
14394 (set_lface_from_font_name): Setup LFACE_FONTSET (lface).
14395 (Finternal_set_lisp_face_attribute)
14396 (Finternal_get_lisp_face_attribute): Handle QCfontset.
14397 (lface_same_font_attributes_p): Fix checking of LFACE_FONT_INDEX,
14398 check also LFACE_FONTSET_INDEX.
14399 (face_fontset): Check attrs[LFACE_FONTSET_INDEX], not
14400 attrs[LFACE_FONT_INDEX].
14401 (syms_of_xfaces): Intern and staticpro QCfontset.
14402
14403 * dispextern.h (enum lface_attribute_index): New member
14404 LFACE_FONTSET_INDEX.
14405
14406 * fns.c (base64_encode_1): Handle eight-bit chars correctly.
14407
14408 2008-02-01 Kenichi Handa <handa@m17n.org>
14409
14410 * coding.c (coding_set_destination): Fix coding->destination for
14411 the case converting a region.
14412 (encode_coding_utf_8): Encode eight-bit chars as single byte.
14413 (encode_coding_object): Fix coding->dst_pos and
14414 coding->dst_pos_byte for the case converting a region.
14415
14416 * insdel.c (insert_from_gap): Make it work even if PT != GTP.
14417
14418 * character.h (BYTE8_STRING): New macro.
14419
14420 * fns.c (base64_decode_1): Insert eight-bit chars correctly.
14421
14422 2008-02-01 Kenichi Handa <handa@m17n.org>
14423
14424 * xdisp.c (get_next_display_element): Don't display unibyte 8-bit
14425 characters by octal form.
14426
14427 * abbrev.c (Fexpand_abbrev): Fix for the multibyte case.
14428
14429 * buffer.h (_fetch_multibyte_char_len): Delete extern.
14430 (FETCH_MULTIBYTE_CHAR, BUF_FETCH_MULTIBYTE_CHAR): Don't use
14431 _fetch_multibyte_char_len.
14432 (FETCH_CHAR_AS_MULTIBYTE): New macro.
14433
14434 * casetab.c (set_canon, set_identity, shuffle): Simplify.
14435
14436 * casefiddle.c (casify_object): Simplify. Handle the case that
14437 the case conversion change the byte length.
14438 (casify_region): Likewise.
14439
14440 * character.h (MAKE_CHAR_UNIBYTE, MAKE_CHAR_MULTIBYTE): New macros.
14441
14442 * character.c (_fetch_multibyte_char_len): Delete this variable.
14443 (syms_of_character): Setup Vprintable_chars.
14444
14445 * editfns.c (Fchar_equal): Fix for the unibyte case.
14446 (Finsert_byte): New function.
14447 (syms_of_editfns): Defsubr it.
14448
14449 * keyboard.c (read_key_sequence): Use ~CHAR_MODIFIER_MASK instead
14450 of direct code 0x3ffff.
14451
14452 * search.c (Freplace_match): Fix for the unibyte case.
14453
14454 2008-02-01 Kenichi Handa <handa@m17n.org>
14455
14456 * lread.c (safe_to_load_p): Fix the logic.
14457
14458 * syntax.c (scan_words): Don't treat characters belonging to
14459 different scripts as constituting a word.
14460
14461 * editfns.c (Fformat): Use ASCII_CHAR_P, not SINGLE_BYTE_CHAR_P.
14462
14463 * fontset.c (Fset_fontset_font): Treat `ascii' as charset, not script.
14464
14465 * emacs.c (main): In the case of --unibyte, instead of aborting on
14466 finding non-empty buffer, make it unibyte.
14467
14468 2008-02-01 Kenichi Handa <handa@m17n.org>
14469
14470 * xterm.c (x_new_fontset): Call `create-fontset-from-ascii-font'
14471 to create a fontset.
14472
14473 2008-02-01 Dave Love <fx@gnu.org>
14474
14475 * character.c (Funibyte_char_to_multibyte): Doc fix.
14476
14477 * xfns.c [HAVE_STDLIB_H]: Fix last change.
14478
14479 2008-02-01 Kenichi Handa <handa@m17n.org>
14480
14481 * fontset.c (fontset_add): Make the type `int'.
14482 (fontset_id_valid_p): Define it if FONTSET_DEBUG is defined.
14483
14484 * character.c (unibyte_char_to_multibyte)
14485 (multibyte_char_to_unibyte, Funibyte_char_to_multibyte): Refer to
14486 charset_unibyte, not charset_primary.
14487
14488 * charset.h (charset_unibyte): Extern it instead of charset_primary.
14489
14490 * charset.c (charset_unibyte): Rename from charset_primary.
14491 (Funibyte_charset): Rename from Fprimary_charset.
14492 (Fset_unibyte_charset): Rename from Fset_primary_charset.
14493 (syms_of_charset): Adjust for the above changes.
14494
14495 * w32term.c (x_produce_glyphs): Use ASCII_CHAR_P, not
14496 SINGLE_BYTE_CHAR_P. Fix the logic of handling non-ASCII char when
14497 it->multibyte_p is zero.
14498
14499 * lisp.h (nonascii_insert_offset, Vnonascii_translation_table):
14500 Delete extern.
14501
14502 2008-02-01 Kenichi Handa <handa@m17n.org>
14503
14504 * coding.c (Fdefine_coding_system_internal): Fix category setting
14505 for a coding system of type iso-2022.
14506
14507 2008-02-01 Kenichi Handa <handa@m17n.org>
14508
14509 * fontset.h (FS_LOAD_FONT): Call fs_load_font with the arg CHARSET -1.
14510
14511 2008-02-01 Kenichi Handa <handa@m17n.org>
14512
14513 * syntax.c (Vnext_word_boundary_function_table): New variable.
14514 (next-word-boundary-function-table): Declare it as a Lisp variable
14515 in syms_of_syntax.
14516 (scan_words): Call functions in Vnext_word_boundary_function_table
14517 if any.
14518
14519 * xterm.c (x_load_font): Initialize fontp->fontset to -1.
14520
14521 * fontset.c (fs_load_font): If fontp->charset is not negative,
14522 return fontp without setting its members.
14523
14524 2008-02-01 Dave Love <fx@gnu.org>
14525
14526 * xfns.c [HAVE_STDLIB_H]: Change logic (instead of fixing typo).
14527
14528 * m/sparc.h (HAVE_ALLOCA): Delete.
14529
14530 * s/irix6-5.h: Don't include strings.h.
14531 (bcopy, bzero, bcmp): Don't undef.
14532
14533 * s/irix6-0.h (bcopy, bzero, bcmp): Don't undef.
14534
14535 * s/usg5-4.h (NO_SIOCTL_H): Don't define.
14536 (TIOCSIGSEND): Don't test IRIX6.
14537 (bcopy, bzero, bcmp): Define conditionally.
14538
14539 2008-02-01 Kenichi Handa <handa@m17n.org>
14540
14541 * buffer.c (Qas, Qmake, Qto): New variables.
14542 (Fset_buffer_multibyte): New optional arg METHOD. Change caller.
14543 (syms_of_buffer): Intern and staticpro Qas, Qmake, and Qto.
14544
14545 * callproc.c (Fcall_process): Don't call insert_1_both directly if
14546 we are inserting a process output into a multibyte buffer.
14547
14548 * character.h (CHAR_TO_BYTE8): If C is not eight-bit char, call
14549 multibyte_char_to_unibyte.
14550
14551 * character.c (Funibyte_char_to_multibyte): If C can't be decoded
14552 by the primary charset, make it eight-bit char.
14553 (Fmultibyte_char_to_unibyte): Call CHAR_TO_BYTE8.
14554
14555 * charset.c (charset_eight_bit, Qeight_bit_control): New variables.
14556 (charset_8_bit__control, charset_8_bit_graphic)
14557 (Qeight_bit_control, Qeight_bit_graphic): Delete these variables.
14558 (define_charset_internal): New function.
14559 (syms_of_charset): Call define_charset_internal for pre-defined
14560 charsets.
14561
14562 * charset.h (charset_8_bit): Extern it.
14563
14564 * coding.c (make_conversion_work_buffer): Adjust for the change
14565 of Fset_buffer_multibyte.
14566 (encode_coding_raw_text): Increment p0 in the loop.
14567
14568 * lisp.h (Fset_buffer_multibyte): Adjust prototype.
14569
14570 * xdisp.c (setup_echo_area_for_printing, set_message_1): Adjust
14571 for the change of Fset_buffer_multibyte.
14572
14573 * fns.c (Fstring_to_multibyte): New function.
14574 (syms_of_fns): Declare Fstring_to_multibyte as Lisp subroutine.
14575
14576 2008-02-01 Dave Love <fx@gnu.org>
14577
14578 * xfns.c (x_put_x_image): Declare args.
14579
14580 * xfaces.c (font_name_registry, choose_face_font): Delete unused vars.
14581 (try_font_list): Declare an arg.
14582
14583 * xdisp.c (message2_nolog, set_message): Declare an arg.
14584
14585 * terminfo.c (tparam): Declare an arg. Use P_ to declare tparm.
14586
14587 * syntax.c (scan_sexps_forward): Declare an arg.
14588
14589 * scroll.c (calculate_scrolling, calculate_direct_scrolling):
14590 Declare an arg.
14591
14592 * lisp.h (Fnew_fontset): Declare.
14593
14594 * keymap.c (push_key_description): Call CHARACTERP correctly.
14595
14596 * fontset.c (fontset_add): Declare args. Call make_number correctly.
14597 (face_for_char): Delete unused vars.
14598 (Fset_fontset_font): Doc fix. Delete unused vars.
14599
14600 * doc.c (Fsubstitute_command_keys): Delete unused vars.
14601
14602 * composite.c (update_compositions): Declare arg.
14603
14604 * cm.c (calccost, cmgoto): Declare args.
14605
14606 * charset.c: Remove `emacs' conditional. Doc fixes.
14607 (map_char_table_for_charset): Declare.
14608
14609 * character.c (syms_of_character) <translation-table-vector>: Doc fix.
14610
14611 * ccl.c: Remove `emacs' conditional.
14612
14613 2008-02-01 Kenichi Handa <handa@m17n.org>
14614
14615 The following changes are to allow specifying multiple font
14616 patterns for a character range (specified by script or charset).
14617
14618 * Makefile.in (abbrev.o): Depend on syntax.h.
14619 (xfaces.o): Depend on charset.h.
14620
14621 * alloc.c (Fmake_string): Use ASCII_CHAR_P, not
14622 SINGLE_BYTE_CHAR_P.
14623
14624 * ccl.c (Fccl_execute_on_string): Add `const' to local variables.
14625
14626 * character.h (Vchar_script_table): Extern it.
14627
14628 * character.c (Vscript_alist): Delete.
14629 (Vchar_script_table, Qchar_script_table): New variable.
14630 (syms_of_character): Declare Vchar_script_table as a lisp variable
14631 and initialize it.
14632
14633 * chartab.c (Fmake_char_table): Doc fix. If PURPOSE doesn't
14634 have property char-table-extra-slots, make no extra slot.
14635
14636 * dispextern.h (struct face): Delete member `charset'.
14637 (FACE_SUITABLE_FOR_CHAR_P, FACE_FOR): Use ASCII_CHAR_P, not
14638 SINGLE_BYTE_CHAR_P.
14639 (choose_face_font, lookup_non_ascii_face, font_name_registry):
14640 Add prototypes.
14641 (lookup_face, lookup_named_face, lookup_derived_face): Fix prototype.
14642 (generate_ascii_font_name): Rename from generate_ascii_font.
14643
14644 * fontset.h (get_font_repertory_func): New prototype.
14645 (make_fontset_for_ascii_face, fs_load_font): Fix prototypes.
14646 (FS_LOAD_FONT): Call fs_load_font with the 3rd arg charset_ascii.
14647
14648 * fontset.c (Qprepend, Qappend): New variables.
14649 (FONTSET_CHARSET_ALIST, FONTSET_FACE_ALIST): Delete.
14650 (FONTSET_NOFONT_FACE, FONTSET_REPERTORY): New macros.
14651 (FONTSET_REF): Optimize if FONTSET is Vdefault_fontset.
14652 (FONTSET_REF_AND_RANGE, FONTSET_ADD): New macros.
14653 (fontset_ref_and_range, fontset_add, reorder_font_vector)
14654 (load_font_get_repertory): New functions.
14655 (fontset_set): Delete.
14656 (fontset_face): New arg FACE. Return face ID, not face.
14657 Complete re-write to handle new fontset structure. Change caller.
14658 (free_face_fontset): Use ASET istead of AREF (X) = Y.
14659 (face_for_char): Don't call lookup_face.
14660 (make_fontset_for_ascii_face): New arg FACE.
14661 (fs_load_font): New arg CHARSET_ID. Don't check
14662 Vfont_encoding_alist here.
14663 (find_font_encoding): New function.
14664 (list_fontsets): Use STRINGP, not ! NILP.
14665 (accumulate_script_ranges): New function.
14666 (Fset_fontset_font, Fnew_fontset, Ffontset_info): Completely
14667 re-written to handle new fontset structure.
14668 (Ffontset_font): Return a copy of element.
14669 (syms_of_fontset): Define symbols Qprepend and Qappend. Fix
14670 docstring of font-encoding-alist.
14671
14672 * lisp.h (CHAR_TABLE_REF): Remove unnecessary check (IDX >= 0).
14673 (Fset_fotset_font): Fix arguments to 5.
14674
14675 * msdos.c (XMenuActivate): Adjust for the change of lookup_derived_face.
14676
14677 * xdisp.c (message_dolog, set_message_1, extend_face_to_end_of_line):
14678 Use ASCII_CHAR_P, not SINGLE_BYTE_CHAR_P.
14679 (highlight_trailing_whitespace): Adjust for the change of
14680 lookup_named_face.
14681
14682 * xfaces.c: Include charset.h.
14683 (load_face_font): Delete argument C. Change caller.
14684 (generate_ascii_font_name): Rename from generate_ascii_font.
14685 (font_name_registry): New function.
14686 (cache_face): Store ascii faces before non-ascii faces in buckets.
14687 (lookup_face): Delete arguments C and BASE_FACE. Change caller.
14688 Lookup only ascii faces.
14689 (lookup_non_ascii_face): New function.
14690 (lookup_named_face): Delete argument C. Change caller.
14691 (lookup_derived_face): Delete argument C. Change caller.
14692 (try_font_list): New arg PATTERN. Change caller. If PATTERN is
14693 a string, just call font_list with it.
14694 (choose_face_font): Delete arguments FACE and C. New arg
14695 FONT_SPEC. Change caller.
14696 (realize_face, realize_x_face): Delete arguments C and BASE_FACE.
14697 Change caller.
14698 (realize_non_ascii_face): New function.
14699 (realize_x_face): Call load_face_font here.
14700 (realize_tty_face): Delete argument C. Change caller.
14701 (compute_char_face): If CH is not ascii, call FACE_FOR_CHAR to
14702 get a face ID.
14703 (dump_realized_face): Don't print charset of FACE.
14704
14705 * xfns.c (x_set_font): Always call x_new_fontset and
14706 store_frame_parameter.
14707 (Fx_create_frame): Call x_new_fontset, not x_new_font.
14708 (syms_of_xfns): Set get_font_repertory_func to x_get_font_repertory.
14709
14710 * xterm.h (x_get_font_repertory): Extern it.
14711
14712 * xterm.c (x_produce_glyphs): Use ASCII_CHAR_P, not
14713 SINGLE_BYTE_CHAR_P. Fix the logic of handling non-ASCII char when
14714 it->multibyte_p is zero.
14715 (XTread_socket): Use ASCII_CHAR_P, not SINGLE_BYTE_CHAR_P.
14716 (x_new_fontset): If FONTSETNAME doesn't match any existing
14717 fontsets, create a new one.
14718 (x_get_font_repertory): New function.
14719
14720 2008-02-01 Kenichi Handa <handa@m17n.org>
14721
14722 * coding.c (Ffind_coding_systems_region_internal): Detect an
14723 ASCII only string correctly.
14724
14725 * lread.c (Fload): Don't load with Qload_force_doc_strings t if
14726 version is 0.
14727
14728 2008-02-01 Kenichi Handa <handa@m17n.org>
14729
14730 * lread.c: Include "coding.h".
14731 (Qget_emacs_mule_file_char, Qload_force_doc_strings)
14732 (load_each_byte, unread_char): New variables.
14733 (readchar_backlog): Delete.
14734 (readchar): Return a character unless load_each_byte is nonzero.
14735 Handle the case that readcharfun is Qget_emacs_mule_file_char or a
14736 cons. If unread_char is not -1, simply return it.
14737 (unreadchar): Handle the case that readcharfun is
14738 Qget_emacs_mule_file_char or a cons. Set unread_char if necessary.
14739 (read_multibyte): Delete.
14740 (readbyte_for_lambda, readbyte_from_file, readbyte_from_string)
14741 (read_emacs_mule_char): New functions.
14742 (Fload): Even if the file doesn't have the extension ".elc", if
14743 safe_to_load_p returns a positive version number, assume that the
14744 file contains bytecompiled code. If the version is less than 22,
14745 load the file while decoding multibyte sequences by emacs-mule.
14746 (readevalloop): Don't use readchar_backlog.
14747 (Fread): Likewise. Pay attention to the case that STREAM is a cons.
14748 (Fread_from_string): Pay attention to the case that STREAM is a cons.
14749 (read_escape): Delete the arg BYTEREP.
14750 (read1): Set load_each_byte to 1 temporarily while handling
14751 #@NUMBER. Don't call read_multibyte.
14752 (read_vector): Call Fread with a cons. If readcharfun is
14753 Qget_emacs_mule_file_char, decode the read string by emacs-mule.
14754 (read_list): If doc_reference is 2, make the cdr part string as unibyte.
14755 (syms_of_lread): Intern and staticpro Qget_emacs_mule_file_char
14756 and Qload_force_doc_strings.
14757
14758 2008-02-01 Kenichi Handa <handa@m17n.org>
14759
14760 * xdisp.c (face_before_or_after_it_pos): Call
14761 FETCH_MULTIBYTE_CHAR with byte postion, not char position.
14762
14763 2008-02-01 Kenichi Handa <handa@m17n.org>
14764
14765 * character.h (TRAILING_CODE_P): New macro.
14766 (MAYBE_UNIFY_CHAR): Adjust for the change of Funify_charset.
14767 (string_char_with_unification): Fix prototype.
14768 (Vscript_alist): Extern it.
14769
14770 * character.c (Vscript_alist): New variable.
14771 (string_char_with_unification, str_as_unibyte)
14772 (string_escape_byte8): Add `const' to local variables.
14773 (syms_of_character): Declare script-alist as a Lisp variable.
14774
14775 * charset.h (Vcharset_ordered_list): Extern it.
14776 (charset_ordered_list_tick): Extern it.
14777 (EMACS_MULE_LEADING_CODE_PRIVATE_11)
14778 (EMACS_MULE_LEADING_CODE_PRIVATE_12)
14779 (EMACS_MULE_LEADING_CODE_PRIVATE_21)
14780 (EMACS_MULE_LEADING_CODE_PRIVATE_22): New macros.
14781 (Funify_charset): Adjust for the change of Funify_charset.
14782
14783 * charset.c (charset_ordered_list_tick): New variable.
14784 (Fdefine_charset_internal): Increment charset_ordered_list_tick.
14785 (Funify_charset): New optional arg DEUNIFY. If it is non-nil,
14786 deunify intead of unify a charset.
14787 (string_xstring_p): Add `const' to local variables.
14788 (find_charsets_in_text): Add `const' to arguments and local variables.
14789 (encode_char): Adjust for the change of Funify_charset. Fix
14790 detecting of invalid code.
14791 (Fset_charset_priority): Increment charset_ordered_list_tick.
14792 (Fmap_charset_chars): Fix handling of default value for FROM_CODE
14793 and TO_CODE.
14794
14795 * coding.c (LEADING_CODE_PRIVATE_11, LEADING_CODE_PRIVATE_12)
14796 (LEADING_CODE_PRIVATE_21, LEADING_CODE_PRIVATE_22): Delete macros.
14797 Changed callers to use EMACS_MULE_LEADING_CODE_PRIVATE_11, etc.
14798 (decode_coding_ccl, consume_chars)
14799 (Ffind_coding_systems_region_internal)
14800 (Fcheck_coding_systems_region): Add `const' to local variables.
14801
14802 * print.c (print_object): Use octal form for printing the
14803 contents of a bool vector.
14804
14805 2008-02-01 Dave Love <fx@gnu.org>
14806
14807 * lread.c (Fload) <!load_dangerous_libraries>: Don't leak fd.
14808 <version == 20>: Refuse to load.
14809
14810 2008-02-01 Dave Love <fx@gnu.org>
14811
14812 * fns.c: Move coding.h.
14813 (Qcodeset, Qdays, Qmonths): New.
14814 (concat): Use CHARACTERP instead of INTEGERP.
14815 (Flocale_codeset): Delete.
14816 (Flanginfo): New function.
14817 (syms_of_fns): Change accordingly.
14818
14819 * coding.c (adjust_coding_eol_type): Fix eol_type/eol_seen mixup.
14820
14821 2008-02-01 Dave Love <fx@gnu.org>
14822
14823 * casetab.c (init_casetab_once, init_casetab_once): Fix
14824 CHAR_TABLE_SET call.
14825
14826 * category.c (Fmodify_category_entry): Fix CATEGORY_MEMBER call.
14827
14828 * character.c (syms_of_character): Fix CHAR_TABLE_SET call.
14829
14830 * charset.c (Fmap_charset_chars): Check args. Convert Lisp types.
14831 (load_charset_map, Fdeclare_equiv_charset, Fencode_char)
14832 (Fset_charset_priority, syms_of_charset): Convert Lisp types.
14833
14834 * charset.h (CHECK_CHARSET_GET_ID): Use XINT on AREF result.
14835
14836 * coding.c (ENCODE_DESIGNATION, decode_eol)
14837 (make_conversion_work_buffer, code_conversion_restore)
14838 (Fdefine_coding_system_internal): Convert Lisp types.
14839 (code_conversion_restore): Use EQ, not ==.
14840 (Fencode_coding_string): Fix code_convert_string call.
14841
14842 * coding.h (code_convert_region): Fix prototype.
14843
14844 * dispextern.h (redraw_frame, redraw_garbaged_frames): Remove.
14845
14846 * fontset.c (fontset_ref, fontset_set, fs_load_font)
14847 (Ffontset_info): Convert Lisp types.
14848
14849 * syntax.h (SYNTAX_ENTRY_INT): Don't use make_number.
14850
14851 * xterm.c (note_mouse_movement): Fix call of window_from_coordinates.
14852
14853 * xdisp.c (display_mode_element): Fix call of Fset_text_properties.
14854
14855 * chartab.c: Include "...h", not <...h> in some cases.
14856
14857 * callproc.c (Fcall_process): Remove unused variables.
14858
14859 2008-02-01 Dave Love <fx@gnu.org>
14860
14861 * coding.c (Fset_coding_system_priority): Allow null arg list.
14862
14863 2008-02-01 Dave Love <fx@gnu.org>
14864
14865 * minibuf.c (Fminibuffer_complete_word): Remove unused var.
14866 (Fself_insert_and_exit): Use CHARACTERP.
14867
14868 * callproc.c (Fcall_process): Remove unused vars.
14869
14870 * xterm.c (XTread_socket): Add extra dead keysyms.
14871
14872 * xdisp.c (decode_mode_spec_coding): Use CHARACTERP.
14873
14874 * dispextern.h: Remove prototypes for redraw_frame,
14875 redraw_garbaged_frames.
14876
14877 * cmds.c (Fself_insert_command): Use CHARACTERP.
14878
14879 * chartab.c (make_sub_char_table): Remove unused var.
14880 (Fset_char_table_default, Fmap_char_table): Doc fix.
14881
14882 * keymap.c (access_keymap): Remove generic char code.
14883 (push_key_description): Use CHARACTERP.
14884
14885 2008-02-01 Dave Love <fx@gnu.org>
14886
14887 * charset.c: Doc fixes.
14888 (Funify_charset): Extra checking.
14889
14890 2008-02-01 Dave Love <fx@gnu.org>
14891
14892 * lread.c: Remove some unused variables.
14893 (safe_to_load_p): If safe, return the magic number version byte.
14894 (Fload): Maybe use load-with-code-conversion.
14895
14896 2008-02-01 Kenichi Handa <handa@m17n.org>
14897
14898 * category.c (Fmodify_category_entry): Don't modify the contents
14899 of category_set for characters out of the range. Avoid
14900 unnecessary modification.
14901
14902 * character.h (MAYBE_UNIFY_CHAR): Adjust for the change of
14903 Vchar_unify_table. The default value of the table is now nil.
14904
14905 * character.c (syms_of_character): Setup Vchar_width_table for
14906 eight-bit-control and raw-byte chars.
14907
14908 * charset.h (enum define_charset_arg_index): Delete
14909 charset_arg_parents and add charset_arg_subset and
14910 charset_arg_superset.
14911 (enum charset_attr_index): Delete charset_parents and add
14912 charset_subset and charset_superset.
14913 (enum charset_method): Delete CHARSET_METHOD_INHERIT and add
14914 CHARSET_METHOD_SUBSET and CHARSET_METHOD_SUPERSET.
14915 (CHARSET_ATTR_PARENTS, CHARSET_PARENTS): Delete.
14916 (CHARSET_ATTR_SUBSET, CHARSET_ATTR_SUPERSET, CHARSET_SUBSET)
14917 (CHARSET_SUPERSET): New macros.
14918 (charset_work): Extern it.
14919 (ENCODE_CHAR): Use charset_work.
14920 (CHAR_CHARSET_P): Adjust for the change of encoder format.
14921 (map_charset_chars): Extern it.
14922
14923 * charset.c (load_charset_map): Set the default value of encoder
14924 and deunifier char-tables to nil.
14925 (map_charset_chars): Change argument. Change callers. Use
14926 map_char_table_for_charset instead of map_char_table.
14927 (Fmap_charset_chars): New optional args from_code and to_code.
14928 (Fdefine_charset_internal): Adjust for the change of
14929 `define-charset' (:parents -> :subset or :superset).
14930 (charset_work): New variable.
14931 (encode_char, syms_of_charset): Adjust for the change of
14932 Fdefine_charset_internal.
14933 (Ffind_charset_string): Setup the vector `charsets' correctly.
14934
14935 * chartab.c (sub_char_table_ref_and_range): New arg default. Fix
14936 the previous change.
14937 (char_table_ref_and_range): Adjust for the above change.
14938 (map_sub_char_table_for_charset): New function.
14939 (map_char_table_for_charset): New function.
14940
14941 * keymap.c (describe_vector): Handle a char-table directly here.
14942 (describe_char_table): Delete.
14943
14944 * lisp.h (map_charset_chars): Delete.
14945
14946 2008-02-01 Dave Love <fx@gnu.org>
14947
14948 * fns.c (count_combining): Comment out (unused).
14949 (Flocale_codeset): New.
14950 (syms_of_fns): Defsubr it.
14951
14952 * config.in (HAVE_PTY_H, HAVE_SIZE_T, HAVE_LANGINFO_CODESET): New.
14953 (size_t): Remove.
14954
14955 2008-02-01 Dave Love <fx@gnu.org>
14956
14957 * Makefile.in (chartab.o): Depend on charset.h.
14958
14959 2008-02-01 Kenichi Handa <handa@m17n.org>
14960
14961 * character.c (syms_of_character): Set the default value of
14962 Vprintable_chars to Qnil.
14963
14964 2008-02-01 Dave Love <fx@gnu.org>
14965
14966 * Makefile.in (lisp, shortlisp): Change indian.elc to indian.el.
14967
14968 2008-02-01 Kenichi Handa <handa@m17n.org>
14969
14970 * charset.c (load_charset_map): Handle the case that from < to
14971 correctly.
14972
14973 * coding.c (encode_coding_emacs_mule, encode_coding_iso_2022)
14974 (encode_coding_sjis, encode_coding_big5, encode_coding_charset):
14975 Pay attention to raw-8-bit chars.
14976
14977 2008-02-01 Kenichi Handa <handa@m17n.org>
14978
14979 * Makefile.in (lisp, shortlisp): Change chinese.elc to chinese.el.
14980 It is not bytecompiled now.
14981
14982 * charset.c (charset_jisx0201_roman, charset_jisx0208_1978)
14983 (charset_jisx0208): New variables.
14984 (Fdefine_charset_internal): Setup them if appropriate.
14985 (init_charset_once): Initialize them to -1.
14986
14987 * charset.h (charset_jisx0201_roman, charset_jisx0208_1978)
14988 (charset_jisx0208): Extern them.
14989
14990 * coding.c (CODING_ISO_FLAG_USE_ROMAN): New macro.
14991 (CODING_ISO_FLAG_USE_OLDJIS): New macro.
14992 (CODING_ISO_FLAG_FULL_SUPPORT): Change macro definition.
14993 (setup_iso_safe_charsets): Fix arguments to Fassq.
14994 (DECODE_DESIGNATION, ENCODE_ISO_CHARACTER_DIMENSION1)
14995 (ENCODE_ISO_CHARACTER_DIMENSION2): Pay attention to
14996 CODING_ISO_FLAG_USE_ROMAN and CODING_ISO_FLAG_USE_OLDJIS.
14997 (encode_coding_iso_2022): Change the 1st arg to
14998 ENCODE_ISO_CHARACTER to a variable.
14999
15000 2008-02-01 Kenichi Handa <handa@m17n.org>
15001
15002 * charset.h (enum define_charset_arg_index): New enums
15003 charset_arg_min_code and charset_arg_max_code.
15004 (struct charset): New member char_index_offset.
15005
15006 * charset.c (CODE_POINT_TO_INDEX, INDEX_TO_CODE_POINT):
15007 Take charset->char_index_offset into account.
15008 (Fdefine_charset_internal): Handle args[charset_arg_min_code] and
15009 args[charset_arg_max_code]. Setup charset.char_index_offset.
15010 (syms_of_charset): Fix args to Fdefine_charset_internal.
15011
15012 2008-02-01 Dave Love <fx@gnu.org>
15013
15014 * coding.c (decode_coding_utf_8): Reject overlong sequences.
15015
15016 2008-02-01 Dave Love <fx@gnu.org>
15017
15018 * coding.c: Doc fixes.
15019 (Fcoding_system_aliases): Fix return value.
15020 (Qmac): Remove (duplicated) definition.
15021
15022 2008-02-01 Dave Love <fx@gnu.org>
15023
15024 * charset.c (Fcharset_priority_list, Fset_charset_priority): New
15025 functions.
15026
15027 * character.c (Fstring): Doc fix.
15028
15029 * charset.c (Fdefine_charset_alias): Update Vcharset_list.
15030
15031 * fontset.c (Ffontset_info): Doc fix. Return charset names, not
15032 ids.
15033 (font-encoding-alist): Doc fix.
15034
15035 2008-02-01 Dave Love <fx@gnu.org>
15036
15037 * term.c (costs_set): Declare static, non-initialized for pcc.
15038 (encode_terminal_code): Remove unused var.
15039
15040 * keyboard.c (kbd_buffer_store_event): Fix interrupt_signal decl
15041 for K&R.
15042
15043 * xterm.c (xlwmenu_window_p): Fix prototype for K&R.
15044
15045 * coding.c (setup_iso_safe_charsets): Fix arg decl for K&R.
15046 (suffixes): Move out of make_subsidiaries for K&R.
15047
15048 * charset.c (map_charset_chars): Fix c_function declaration for K&R.
15049
15050 * lisp.h (DEFUN) [!PROTOTYPES]: Remove spurious `args'.
15051
15052 2008-02-01 Dave Love <fx@gnu.org>
15053
15054 * data.c (Fchar_or_string_p): Doc fix. Use CHARACTERP.
15055
15056 * category.c (Fmodify_category_entry): Doc fix. Remove unused vars.
15057
15058 2008-02-01 Yong Lu <lyongu@asia-infonet.com>
15059
15060 * charset.c (Fdefine_charset_internal): Fix argument to bzero.
15061
15062 * coding.c (decode_coding_charset): Workaround for the bug of GCC 2.96.
15063
15064 2008-02-01 Kenichi Handa <handa@m17n.org>
15065
15066 * Makefile.in (lisp, shortlisp): Change cyrillic.elc to cyrillic.el,
15067 vietnamese.elc to vietnamese.el. They are not bytecompiled now.
15068
15069 2008-02-01 Kenichi Handa <handa@m17n.org>
15070
15071 * coding.c (decode_coding_charset): Adjust for the change of
15072 Fdefine_coding_system_internal.
15073 (Fdefine_coding_system_internal): For a coding system of
15074 `charset' type, store a list of charset IDs in
15075 `charset_attr_charset_valids' element of coding attributes.
15076
15077 2008-02-01 Kenichi Handa <handa@m17n.org>
15078
15079 * coding.c (ONE_MORE_BYTE_NO_CHECK): Increment consumed_chars.
15080 (emacs_mule_char): New arg src. Delete arg `composition'. Change
15081 caller. Handle 2-byte and 3-byte charsets correctly.
15082 (DECODE_EMACS_MULE_COMPOSITION_RULE_20): Rename from
15083 DECODE_EMACS_MULE_COMPOSITION_RULE. Change caller.
15084 (DECODE_EMACS_MULE_COMPOSITION_RULE_21): New macro.
15085 (DECODE_EMACS_MULE_21_COMPOSITION): Call
15086 DECODE_EMACS_MULE_COMPOSITION_RULE_21. Produce correct annotation
15087 sequence.
15088 (decode_coding_emacs_mule): Handle composition correctly. Rewind
15089 `src' and `consumed_chars' correctly before calling emacs_mule_char.
15090 (DECODE_COMPOSITION_START): Correctly handle the case of altchar
15091 and alt&rule composition.
15092 (decode_coding_iso_2022): Handle composition correctly.
15093 (init_coding_once): Setup emacs_mule_bytes for private charsets.
15094
15095 * charset.c (Fdefine_charset_internal): Fix bug for the case of
15096 re-defining a charset. If the charset has :emacs-mule-id, setup
15097 emacs_mule_bytes.
15098 (Fmake_char): If CODE1 is nil, use the minimum code of the charset.
15099
15100 2008-02-01 Kenichi Handa <handa@m17n.org>
15101
15102 * coding.c (encode_coding_iso_2022, encode_coding_sjis)
15103 (encode_coding_big5, encode_coding_charset): If coding requires safe
15104 encoding, produce a character specified by
15105 CODING_INHIBIT_CHARACTER_SUBSTITUTION.
15106
15107 2008-02-01 Dave Love <fx@gnu.org>
15108
15109 * xterm.c (XSetIMValues): Declare.
15110
15111 * process.c: Conditionally include sys/wait.h, pty.h.
15112
15113 * print.c (print_object): Fix print format for 64-bit systems.
15114
15115 * keyboard.c (modify_event_symbol): Fix print format for 64-bit systems.
15116
15117 * buffer.c (emacs_strerror): Declare.
15118
15119 * fontset.c (Fclear_face_cache): Declare.
15120 (accumulate_font_info): Comment-out (unused).
15121 (face_for_char, Fset_fontset_font, Ffontset_info): Remove unused
15122 variables.
15123
15124 * character.h (string_escape_byte8): Declare.
15125
15126 * charset.c (load_charset_map, load_charset_map_from_file): Remove
15127 unused vars.
15128 (Fdefine_charset_internal, Fsplit_char, syms_of_charset)
15129 (Fmap_charset_chars): Doc fix.
15130
15131 * coding.c (Vchar_coding_system_table, Qchar_coding_system): Remove.
15132 (Fset_coding_system_priority, Fset_coding_system_priority)
15133 (Fdefine_coding_system_internal): Doc fix.
15134
15135 2008-02-01 Dave Love <fx@gnu.org>
15136
15137 * s/osf5-0.h (C_SWITCH_SYSTEM) [!__GNUC__]: Remove -nointrinsics.
15138
15139 2008-02-01 Kenichi Handa <handa@m17n.org>
15140
15141 * character.c (string_escape_byte8): Make multibyte string with
15142 correct size.
15143
15144 * charset.c (Fmake_char): Delete unnecessary code.
15145
15146 2008-02-01 Kenichi Handa <handa@m17n.org>
15147
15148 * xfns.c (x_encode_text): Allocate coding.destination here, and
15149 call encode_coding_object with dst_object Qnil.
15150
15151 * buffer.c (Fset_buffer_multibyte): Convert 8-bit bytes to
15152 multibyte form correctly.
15153
15154 * fontset.c (fs_load_font): Check fontp->full_name (not fontname)
15155 against Vfont_encoding_alist.
15156
15157 * coding.c (Fdecode_sjis_char): Fix typo (0x7F->0xFF). Fix the
15158 handling of charset list.
15159 (encode_coding_iso_2022): Setup coding->safe_charsets in advance.
15160 (decode_coding_object): Move point to coding->dst_pos before
15161 calling post-read-conversion function.
15162 (encode_coding_object): Give correct arguments to
15163 pre-write-conversion. Ignore the return value of
15164 pre-write-conversion function. Pay attention to the case that
15165 pre-write-conversion changes the current buffer. If dst_object is
15166 Qt, even if coding->src_bytes is zero, allocate at least one byte
15167 to coding->destination.
15168
15169 * coding.h (JIS_TO_SJIS): Fix typo (j1->s1, j2->s2).
15170
15171 * charset.c (Fmake_char): Make it more backward compatible.
15172 (Fmap_charset_chars): Fix docstring.
15173
15174 2008-02-01 Dave Love <fx@gnu.org>
15175
15176 * coding.c: Doc fixes.
15177 (Fdefine_coding_system_alias): Use names, not symbols, in
15178 coding-system-alist.
15179
15180 2008-02-01 Kenichi Handa <handa@m17n.org>
15181
15182 * fontset.c (free_realized_fontsets): Call Fclear_face_cache instead
15183 of calling free_realized_face.
15184
15185 2008-02-01 Yong Lu <lyongu@asia-infonet.com>
15186
15187 * charset.c (read_hex): Don't treat SPC as a comment starter.
15188 (decode_char): If CODE_POINT_TO_INDEX returns -1, always return -1.
15189 (Fdecode_char): Fix typo.
15190
15191 2008-02-01 Kenichi Handa <handa@m17n.org>
15192
15193 * charset.h (struct charset): New member `code_space_mask'.
15194
15195 * coding.c (coding_set_source): Delete the local variable beg_byte.
15196 (encode_coding_charset, Fdefine_coding_system_internal):
15197 Delete the local variable charset.
15198 (Fdefine_coding_system_internal): Setup
15199 attrs[coding_attr_charset_valids] correctly.
15200
15201 * charset.c (CODE_POINT_TO_INDEX): Utilize `code_space_mask'
15202 member to check if CODE is valid or not.
15203 (Fdefine_charset_internal): Initialize `code_space_mask' member.
15204 (encode_char): Before calling CODE_POINT_TO_INDEX, check if CODE
15205 is within the range of charset->min_code and carset->max_code.
15206
15207 2008-02-01 Dave Love <fx@gnu.org>
15208
15209 * syntax.h (syntax_temp) [!__GNUC__]: Declare.
15210
15211 * dispextern.h (generate_ascii_font): Fix return type.
15212
15213 * xfaces.c (generate_ascii_font): Fix arg declaration.
15214
15215 * coding.c (coding_inherit_eol_type)
15216 (Fset_terminal_coding_system_internal)
15217 (Fset_safe_terminal_coding_system_internal): Fix arg declarations.
15218
15219 2008-02-01 Kenichi Handa <handa@m17n.org>
15220
15221 * coding.c (decode_coding_charset, encode_coding_charset): Handle
15222 multiple charsets correctly.
15223
15224 2008-02-01 Kenichi Handa <handa@m17n.org>
15225
15226 * search.c (boyer_moore): Fix handling of multibyte character
15227 translation.
15228
15229 * xdisp.c (display_mode_element): When the variable `elt' is
15230 changed, update `this' and `lisp_string'.
15231
15232 2008-02-01 Kenichi Handa <handa@m17n.org>
15233
15234 * buffer.c (Fset_buffer_multibyte): Fix 8-bit char handling.
15235
15236 * callproc.c (Fcall_process): Be sure to give the current buffer
15237 to decode_coding_c_string. Update PT and PT_BYTE after the insertion.
15238
15239 * charset.c (struct charset_map_entries): New struct.
15240 (load_charset_map): Rename from parse_charset_map. New args
15241 entries and n_entries. Change caller.
15242 (load_charset_map_from_file): Rename from load_charset_map.
15243 Change caller. New arg control_flag. Call load_charset_map at
15244 the tail.
15245 (load_charset_map_from_vector): New function.
15246 (Fdefine_charset_internal): Setup charset.compact_codes_p.
15247 (encode_char): If the charset is compact, change a character index
15248 to a code point.
15249
15250 * coding.c (coding_alloc_by_making_gap): Check the case that the
15251 source and destination are the same correctly.
15252 (decode_coding_raw_text): Set coding->consumed_char and
15253 coding->consumed to 0.
15254 (produce_chars): If coding->chars_at_source is nonzero, update
15255 coding->consumed_char and coding->consumed before calling
15256 alloc_destination.
15257 (Fdefine_coding_system_alias): Register ALIAS in
15258 Vcoding_system_alist.
15259 (syms_of_coding): Define `no-conversion' coding system at the tail.
15260
15261 * fileio.c (Finsert_file_contents): Set coding_system instead of
15262 val. If the current buffer is multibyte, always call
15263 decode_coding_gap.
15264
15265 * xfaces.c (try_font_list): Give higher priority to fontset's
15266 family than face's family.
15267
15268 2008-02-01 Kenichi Handa <handa@m17n.org>
15269
15270 * callproc.c (Fcall_process): Be sure to give the current buffer
15271 to decode_coding_c_string.
15272
15273 * xfaces.c (try_font_list): Give a family specified in a fontset
15274 higher priority than a family specified in a face.
15275
15276 2008-02-01 Kenichi Handa <handa@m17n.org>
15277
15278 * fileio.c (Finsert_file_contents): Fix calculation of `inserted'.
15279 Fix arguments to insert_from_buffer.
15280
15281 * xdisp.c (display_mode_element): Fix calculation of `bytepos'.
15282
15283 2008-02-01 Kenichi Handa <handa@m17n.org>
15284
15285 * coding.c (produce_chars): Set the variable `multibytep' correctly.
15286 (decode_coding_gap): Set coding->dst_multibyte correctly.
15287
15288 2008-02-01 Kenichi Handa <handa@m17n.org>
15289
15290 * coding.c (encode_coding_utf_8): Initialize produced_chars to 0.
15291 (decode_coding_utf_16): Fix converting high and low bytes to code-point.
15292 (encode_coding_utf_16): Substitute coding->default_char for
15293 non-Unicode characters.
15294 (decode_coding): Don't call record_insert here.
15295 (setup_coding_system): Initialize `surrogate' of
15296 coding->spec.utf_16 to 0.
15297 (EMIT_ONE_BYTE): Fix for multibyte case.
15298
15299 * insdel.c (insert_from_gap): Call record_insert.
15300
15301 2008-02-01 Kenichi Handa <handa@m17n.org>
15302
15303 * casefiddle.c (casify_region): Fix multibyte case.
15304
15305 * character.c (c_string_width): Add return type `int'.
15306 (char_string_with_unification): Delete arg ADVANCED.
15307
15308 * character.h (CHAR_VALID_P): Don't call CHARACTERP.
15309 (CHAR_STRING): Adjust for the change of char_string_with_unification.
15310 (CHAR_STRING_ADVANCE): Make it do-while statement.
15311
15312 * chartab.c (sub_char_table_set_range): Optimize for the case
15313 DEPTH == 3. Add workaround code for a GCC optimization bug.
15314
15315 * charset.c (parse_charset_map): Remove an unused variable.
15316
15317 * coding.c: Delete unused variables.
15318
15319 * fileio.c (Finsert_file_contents): Set coding_system to Qnil
15320 earlier. If inserted is zero and the coding system doesn't
15321 require flushing, don't call decode_coding_gap.
15322
15323 * syntax.h (SET_RAW_SYNTAX_ENTRY): Don't call make_number.
15324
15325 2008-02-01 Kenichi Handa <handa@m17n.org>
15326
15327 The following changes are for using Unicode as an internal
15328 character model, and use UTF-8 format for buffer/string
15329 representation.
15330
15331 * .gdbinit (xchartable): Adjust for the change of char table structure.
15332 (xsubchartable, xcoding, xcharset, xcurbuf): New commands.
15333
15334 * Makefile.in (obj): Add character.o and chartab.o.
15335 (lisp, shortlisp): Remove utf-8.elc.
15336 (*.o): For many files, change dependency on charset.h to
15337 character.h, and add dependency on character.h.
15338 (character.o, chartab.o): New targets.
15339
15340 * abbrev.c, bytecode.c, casefiddle.c, cmds.c, dispnew.c, doc.c:
15341 * doprnt.c, dosfns.c, frame.c, marker.c, minibuf.c, msdos.c:
15342 * w16select.c, w32bdf.c, w32console.c: Include "character.h" instead
15343 of "charset.h".
15344
15345 * dired.c, filelock.c: Include "character.h".
15346
15347 * alloc.c: Include "character.h" instead of "charset.h".
15348 (Fmake_char_table, make_sub_char_table): Move to chartab.c.
15349 (syms_of_alloc): Remove defsubr for Smake_char_table.
15350
15351 * buffer.c: Include "character.h" instead of "charset.h", don't
15352 include "coding.h".
15353 (Fset_buffer_multibyte): Adjust for UTF-8.
15354
15355 * buffer.h: EXFUN Fbuffer_live_p.
15356
15357 * callproc.c: Include "character.h" instead of "charset.h".
15358 (Fcall_process): Big change for the new code-conversion APIs.
15359
15360 * casetab.c: Include "character.h" instead of "charset.h".
15361 (set_canon, set_identity, shuffle): Adjust for the new
15362 map_char_table spec.
15363 (init_casetab_once): Call CHAR_TABLE_SET instead of directly
15364 accessing the char table structure.
15365
15366 * chartab.c: New file that implements char table.
15367
15368 * category.c: Include "character.h".
15369 (copy_category_entry): New function.
15370 (copy_category_table): Call map_char_table and copy_category_entry.
15371 (Fmake_category_table): Initialize all top-level slots.
15372 (char_category_set): New function.
15373 (modify_lower_category_set): Delete.
15374 (Fmodify_category_entry): Call char_table_ref_and_range.
15375
15376 * category.h (CATEGORY_SET): Just call char_category_set.
15377
15378 * ccl.c: Include "character.h".
15379 (Qccl, Qcclp): New variables.
15380 (CCL_WRITE_CHAR): Alway treat the arg CH as a character even if
15381 it's less than 256.
15382 (CCL_WRITE_MULTIBYTE_CHAR): Delete.
15383 (CCL_WRITE_STRING, CCL_READ_CHAR): Adjust for the change of SRC
15384 and DST type.
15385 (ccl_driver): Change types of argument, adjust code accordingly.
15386 (Fccl_execute, Fccl_execute_on_string): Adjust for the change of
15387 ccl_driver.
15388 (syms_of_ccl): Intern and staticpro Qccl and Qcclp.
15389
15390 * ccl.h (struct ccl_program): Delete members eol_type and multibyte.
15391 New members src_multibyte, dst_multibyte, consumed, and produced.
15392 (struct ccl_spec): Delete members decoder and encoder. New member ccl.
15393 (CODING_SPEC_CCL_PROGRAM): New macro.
15394 (ccl_driver): Update prototype.
15395 (Qccl, Qcclp, Fccl_program_p): Extern them.
15396 (CHECK_CCL_PROGRAM): New macro.
15397
15398 * character.c, character.h, chartab.c: New files.
15399
15400 * charset.c: Mostly re-written. Move character and multibyte sequence
15401 handling codes to character.c.
15402
15403 * charset.h: Mostly re-written. Move character and multibyte sequence
15404 handling codes to character.h.
15405
15406 * coding.c, coding.h: Mostly re-written.
15407
15408 * composite.c: Include "character.h" instead of "charset.h".
15409 (CHAR_WIDTH): Move to character.h.
15410 (HASH_KEY, HASH_VALUE): Delete.
15411
15412 * composite.h (enum composition_method): Change order of enumeration
15413 symbols.
15414
15415 * data.c: Include "character.h" instead of "charset.h".
15416 (Faref): Call CHAR_TABLE_REF for a char table.
15417 (Faset): Call CHAR_TABLE_SET for a char table.
15418
15419 * dispextern.h (free_realized_face, check_face_attribytes)
15420 (generate_ascii_font): Extern them.
15421 (free_realized_multibyte_face): Delete extern.
15422
15423 * disptab.h (DISP_CHAR_VECTOR): Adjust for the change of char
15424 table structure.
15425
15426 * editfns.c: Include "character.h" instead of "charset.h".
15427 (Fchar_to_string): Always call CHAR_STRING.
15428
15429 * emacs.c (main): Call init_charset_once, init_charset,
15430 syms_of_chartab, and syms_of_character.
15431
15432 * fileio.c: Include "character.h" instead of "charset.h".
15433 (Finsert_file_contents): Big change for the new code-conversion API.
15434 (choose_write_coding_system, Fwrite_region): Likewise.
15435 (build_annotations_2): Delete.
15436 (e_write): Big change for the new code-conversion API.
15437
15438 * fns.c: Include "character.h" instead of "charset.h".
15439 (copy_sub_char_table): Move to chartab.c.
15440 (Fcopy_sequence): Call copy_char_table for a char table.
15441 (concat): Delete codes calling count_multibyte.
15442 (string_char_to_byte, string_byte_to_char): Adjust for the new
15443 multibyte form.
15444 (internal_equal): Adjust for the change of char table structure.
15445 (Fchar_table_subtype, Fchar_table_parent, Fset_char_table_parent)
15446 (Fchar_table_extra_slot, Fset_char_table_extra_slot)
15447 (Fchar_table_range, Fset_char_table_range, Fset_char_table_default)
15448 (char_table_translate, optimize_sub_char_table)
15449 (Foptimize_char_table, map_char_table, Fmap_char_table): Move to
15450 chartab.c.
15451 (char_table_ref_and_index): Delete.
15452 (HASH_KEY, HASH_VALUE): Move to lisp.h.
15453 (Fmd5): Call preferred_coding_system instead of accessing
15454 Vcoding_category_list. Adjust for the new code-conversion API.
15455 (syms_of_fns): Move defsubr for char table related functions to
15456 chartab.c.
15457
15458 * fontset.c: Mostly re-written.
15459
15460 * fontset.h (struct font_info): Change type of the member encoding_type.
15461 (enum FONT_SPEC_INDEX): New enum.
15462 (fontset_font_pattern, fs_load_font): Update prototype.
15463 (FS_LOAD_FONT): Adjust for the change of fs_load_font.
15464
15465 * indent.c: Include "character.h" instead of "charset.h".
15466 (MULTIBYTE_BYTES_WIDTH): Call CHAR_WIDTH instead of WIDTH_BY_CHAR_HEAD.
15467
15468 * insdel.c: Include "character.h" instead of "charset.h".
15469 (copy_text): Don't refer to Vnonascii_translation_table.
15470 (insert_from_gap): New function.
15471
15472 * keyboard.c: Include "character.h" instead of "charset.h".
15473 (command_loop_1): Never call direct_output_forward_char before
15474 a non-ASCII character.
15475 (read_char): If Vkeyboard_translate_table is a char table, always
15476 translate a character.
15477
15478 * keymap.c: Include "character.h".
15479 (store_in_keymap): Handle the case that IDX is a cons.
15480 (Fdefine_key): Handle the case that KEY is a cons and the car part
15481 is also a cons (range).
15482 (push_key_description): Adjust for the new character code.
15483 (describe_vector): Call describe_char_table for a char table.
15484 (describe_char_table): New function.
15485
15486 * keymap.h (describe_char_table): Extern it.
15487
15488 * lisp.h (enum pvec_type): New member PVEC_SUB_CHAR_TABLE.
15489 (XSUB_CHAR_TABLE, XSETSUB_CHAR_TABLE): New macros.
15490 (CHAR_TABLE_ORDINARY_SLOTS, CHAR_TABLE_SINGLE_BYTE_SLOTS)
15491 (SUB_CHAR_TABLE_ORDINARY_SLOTS, SUB_CHAR_TABLE_STANDARD_SLOTS):
15492 Delete.
15493 (CHAR_TABLE_REF, CHAR_TABLE_SET): Adjust for the new char table
15494 structure.
15495 (CHAR_TABLE_TRANSLATE): Just call char_table_translate.
15496 (CHARTAB_SIZE_BITS_0, CHARTAB_SIZE_BITS_1, CHARTAB_SIZE_BITS_2)
15497 (CHARTAB_SIZE_BITS_3): New macros.
15498 (chartab_size): Extern it.
15499 (struct Lisp_Char_Table): Re-design.
15500 (struct Lisp_Sub_Char_Table): New structure.
15501 (HASH_KEY, HASH_VALUE): Move from fns.c.
15502 (CHARACTERBITS): Define as 22.
15503 (GLYPH_MASK_FACE, GLYPH_MASK_CHAR): Adjust for the above change.
15504 (SUB_CHAR_TABLE_P): Check PVEC_CHAR_TABLE.
15505 (GC_SUB_CHAR_TABLE_P): New macro.
15506 (Fencode_coding_string, Fdecode_coding_string): Update EXFUN.
15507 (code_convert_string_norecord): Deleted extern.
15508 (init_character_once, syms_of_character, init_charset)
15509 (syms_of_composite, Qeq, Fmakehash, insert_from_gap): Extern them.
15510
15511 * lread.c: Include "character.h".
15512 (read_multibyte): New arg NBYTES.
15513 (read_escape): Change the meaning of returned *BYTEREP.
15514 (to_multibyte): Delete.
15515 (read1): Adjust the handling of char table and string.
15516
15517 * print.c: Include "character.h" instead of "charset.h".
15518 (print_string): Convert 8-bit raw bytes to octal form by
15519 string_escape_byte8.
15520 (print_object): Adjust for the new multibyte form. Print 8-bit
15521 raw bytes always in octal form. Handle sub char table correctly.
15522
15523 * process.c: Include "character.h" instead of "charset.h".
15524 (read_process_output, send_process): Adjust for the new
15525 code-conversion API.
15526
15527 * puresize.h (BASE_PURESIZE): Increase.
15528
15529 * regex.c: Include "character.h" instead of "charset.h".
15530 (BYTE8_TO_CHAR, CHAR_BYTE8_P) [not emacs]: New dummy macros.
15531 (regex_compile): Accept a range whose starting and ending
15532 character have different leading bytes.
15533 (analyse_first): Adjust for the above change.
15534
15535 * search.c: Include "character.h" instead of "charset.h".
15536 (search_buffer, boyer_moore): Adjust for the new multibyte form.
15537 (Freplace_match): Adjust for the change of multibyte_char_to_unibyte.
15538
15539 * syntax.c: Include "character.h" instead of "charset.h".
15540 (syntax_parent_lookup): Delete.
15541 (Fmodify_syntax_entry): Accept a cons as CHAR.
15542 (skip_chars): Adjust for the new multibyte form.
15543 (init_syntax_once): Call char_table_set_range instead of directly
15544 accessing the structure of a char table.
15545
15546 * syntax.h (SET_RAW_SYNTAX_ENTRY): Call CHAR_TABLE_SET.
15547 (SYNTAX_ENTRY_FOLLOW_PARENT): Delete macro.
15548 (SET_RAW_SYNTAX_ENTRY_RANGE): New macro.
15549 (SYNTAX_ENTRY_INT): Call CHAR_TABLE_REF.
15550
15551 * term.c: Include "buffer.h" and "character.h".
15552 (encode_terminal_code, write_glyphs): Adjust for the new
15553 code-conversion API.
15554 (produce_glyphs): Call CHAR_WIDTH instead of CHARSET_WIDTH.
15555
15556 * w32term.c (x_new_font): Adjust for the change of FS_LOAD_FONT.
15557
15558 * xdisp.c: Include "character.h".
15559 (get_next_display_element): Adjust for the new multibyte form.
15560 (disp_char_vector): Adjust for the new char table structure.
15561 (decode_mode_spec_coding): Adjust for the new structure of
15562 coding system.
15563 (decode_mode_spec): Adjust for the new code-conversion API.
15564
15565 * xfaces.c: Include "character.h" instead of "charset.h".
15566 (load_face_font): Adjust for the change of choose_face_font and
15567 FS_LOAD_FONT.
15568 (generate_ascii_font): New function.
15569 (set_lface_from_font_name): Adjust for the change of FS_LOAD_FONT.
15570 (set_font_frame_param): Adjust for the change of choose_face_font.
15571 (free_realized_face): Make it public.
15572 (free_realized_faces_for_fontset): Rename from
15573 free_realized_multibyte_face. Free also faces realized for ASCII.
15574 (choose_face_font): Change arguments. Adjust for the change of
15575 fontset_font_pattern and FS_LOAD_FONT.
15576
15577 * xfns.c: Include "character.h".
15578 (x_encode_text): Adjust for the new code-conversion API.
15579
15580 * xselect.c: Don't include "charset.h".
15581 (selection_data_to_lisp_data): Adjust for the new code conversion API.
15582
15583 * xterm.c: Include "character.h".
15584 (x_encode_char): New argument CHARSET. Change caller.
15585 (x_get_char_face_and_encoding, x_get_glyph_face_and_encoding):
15586 Call ENCODE_CHAR instead of SPLIT_CHAR.
15587 (x_produce_glyphs): Don't check Vnonascii_translation_table Call
15588 CHAR_WIDTH instead of CHARSET_WIDTH.
15589 (XTread_socket): Adjust for the new code-conversion API.
15590 (x_new_font): Adjust for the change of FS_LOAD_FONT.
15591 (x_load_font): Adjust for the change of struct font.
15592
15593 2008-02-01 Stefan Monnier <monnier@iro.umontreal.ca>
15594
15595 * xfaces.c (face_at_buffer_position): Remove unused vars.
15596
15597 2008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
15598
15599 * ccl.c (CCL_WRITE_CHAR, CCL_WRITE_MULTIBYTE_CHAR):
15600 Fix overflow checking.
15601
15602 2008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
15603
15604 * ccl.c (CCL_WRITE_CHAR, CCL_WRITE_MULTIBYTE_CHAR, ccl_driver):
15605 Cancel previous change.
15606
15607 2008-01-31 Kenichi Handa <handa@ni.aist.go.jp>
15608
15609 * ccl.c (CCL_WRITE_CHAR): Increment extra_bytes only when
15610 ccl->eight_bit_control. Fix check for buffer overflow.
15611 (CCL_WRITE_MULTIBYTE_CHAR): Fix check for buffer overflow.
15612 (ccl_driver): Initialize extra_bytes to 0.
15613
15614 2008-01-31 Kenichi Handa <handa@ni.aist.go.jp>
15615
15616 * keyboard.c (make_ctrl_char): If C is a multibyte character, just
15617 return it ORed with ctrl_modifier.
15618
15619 2008-01-29 Miles Bader <miles@gnu.org>
15620
15621 * macterm.c (XTset_vertical_scroll_bar): Fix merge mistake.
15622
15623 2008-01-28 Jason Rumney <jasonr@gnu.org>
15624
15625 * w32.c (stat): Don't double check for networked drive.
15626
15627 2008-01-28 Stefan Monnier <monnier@iro.umontreal.ca>
15628
15629 * window.c (run_window_configuration_change_hook): New function.
15630 Code extracted from set_window_buffer. Set the selected frame.
15631 (set_window_buffer): Use it.
15632 * window.h (run_window_configuration_change_hook): Declare.
15633 * dispnew.c (change_frame_size_1): Use it instead of set-window-buffer.
15634
15635 * keyboard.c (read_char): Yet another int/Lisp_Object mixup (YAILOM).
15636
15637 2008-01-27 Dan Nicolaescu <dann@ics.uci.edu>
15638
15639 * Makefile.in: Remove references to unused macros.
15640
15641 2008-01-26 Eli Zaretskii <eliz@gnu.org>
15642
15643 * w32.c (g_b_init_get_sid_sub_authority)
15644 (g_b_init_get_sid_sub_authority_count): New static variables.
15645 (GetSidSubAuthority_Proc, GetSidSubAuthorityCount_Proc): New typedefs.
15646 (get_sid_sub_authority, get_sid_sub_authority_count): New functions.
15647 (init_user_info): Use them to retrieve uid and gid.
15648 Use 500/513, the Windows defaults, as Administrator's uid/gid.
15649 (fstat): Use pw_uid and pw_gid from the_passwd structure for
15650 st_uid and st_gid of the file.
15651
15652 2008-01-26 Jason Rumney <jasonr@gnu.org>
15653
15654 * w32.c (logon_network_drive): New function.
15655 (stat): Use it.
15656
15657 2008-01-26 Chong Yidong <cyd@stupidchicken.com>
15658
15659 * xdisp.c (pos_visible_p): Handle the case where charpos falls on
15660 invisible text covered with an ellipsis.
15661
15662 2008-01-25 Richard Stallman <rms@gnu.org>
15663
15664 * xdisp.c (redisplay_window): Run Qwindow_text_change_functions and
15665 jump back to beginning. Move some other initializations after that.
15666 (Qwindow_text_change_functions, Vwindow_text_change_functions):
15667 New variables.
15668 (syms_of_xdisp): Init them.
15669
15670 * keyboard.c (read_char): Restore echo_message_buffer after redisplay.
15671
15672 * buffer.c (reset_buffer_local_variables):
15673 Implement `permanent-local-hook'.
15674 (Qpermanent_local_hook): New variable.
15675 (syms_of_buffer): Init and staticpro it.
15676
15677 2008-01-25 Michael Albinus <michael.albinus@gmx.de>
15678
15679 * dbusbind.c (xd_retrieve_arg): Pacify GCC on x86_64 GNU/Linux.
15680
15681 2008-01-25 Thien-Thi Nguyen <ttn@gnuvola.org>
15682
15683 * fns.c (Fclrhash): Return TABLE.
15684
15685 2008-01-23 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
15686
15687 * macterm.c (x_scroll_bar_create): Initialize bar->redraw_needed_p.
15688 (XTset_vertical_scroll_bar): Redraw scroll bar if bar->redraw_needed_p
15689 is set even without positional changes.
15690 (x_scroll_bar_clear): Set bar->redraw_needed_p.
15691
15692 * macterm.h (struct scroll_bar): New member `redraw_needed_p'.
15693
15694 2008-01-23 Jason Rumney <jasonr@gnu.org>
15695
15696 * xterm.c (handle_one_xevent): Revert to counting chars not bytes.
15697
15698 * w32term.c (w32_read_socket) <WM_CHAR>: Decode characters outside
15699 the unicode range available in MULE by locale-coding-system.
15700 Improve dbcs lead byte detection. Set event timestamp and modifiers
15701 earlier.
15702
15703 2008-01-23 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
15704
15705 * mac.c (mac_emacs_pid) [MAC_OSX]: New variable.
15706 [MAC_OSX] (init_mac_osx_environment): Initialize it.
15707 [MAC_OSX] (mac_try_close_socket) [SELECT_USE_CFSOCKET]: Return 0
15708 when used on child processes.
15709
15710 2008-01-21 Michael Albinus <michael.albinus@gmx.de>
15711
15712 * dbusbind.c (Fdbus_method_return_internal): Rename from
15713 Fdbus_method_return.
15714 (Fdbus_unregister_object): Move to dbus.el.
15715 (Fdbus_call_method, Fdbus_method_return_internal)
15716 (Fdbus_send_signal): Improve debug messages.
15717
15718 2008-01-20 Martin Rudalics <rudalics@gmx.at>
15719
15720 * undo.c (undo_inhibit_record_point): New variable.
15721 (syms_of_undo): Initialize it.
15722 (record_point): Don't record point when undo_inhibit_record_point
15723 is set.
15724
15725 2008-01-19 Stefan Monnier <monnier@iro.umontreal.ca>
15726
15727 * process.c (list_processes_1): Don't use SCHARS on a nil buffer name.
15728
15729 * xdisp.c (Qauto_hscroll_mode): New var.
15730 (syms_of_xdisp): Initialize it.
15731 (hscroll_window_tree): Use it to lookup `auto-hscroll-mode' in each
15732 window's buffer.
15733 (hscroll_windows): Don't check automatic_hscrolling_p here.
15734
15735 * window.c (set_window_buffer): Don't unnecessarily reset hscroll and
15736 vscroll if we're setting window-buffer to the value it already has.
15737
15738 2008-01-18 Dan Nicolaescu <dann@ics.uci.edu>
15739
15740 * m/intel386.h: Remove references to XENIX.
15741
15742 2008-01-17 Andreas Schwab <schwab@suse.de>
15743
15744 * m/amdx86-64.h (START_FILES, LIB_STANDARD): Use HAVE_LIB64_DIR
15745 instead of HAVE_X86_64_LIB64_DIR.
15746 * m/ibms390x.h (START_FILES, LIB_STANDARD): Likewise.
15747
15748 2008-01-17 Glenn Morris <rgm@gnu.org>
15749
15750 * m/ibms390x.h (START_FILES, LIB_STANDARD): Adjust value according
15751 to HAVE_X86_64_LIB64_DIR.
15752
15753 2008-01-16 Dan Nicolaescu <dann@ics.uci.edu>
15754
15755 * s/irix3-3.h:
15756 * s/irix4-0.h:
15757 * s/386-ix.h:
15758 * s/domain.h:
15759 * s/hpux9-x11r4.h:
15760 * s/hpux9shxr4.h: Remove files for systems no longer supported.
15761
15762 * sysdep.c: Remove code containing references to symbols defined
15763 by unsupported systems.
15764
15765 2008-01-16 Glenn Morris <rgm@gnu.org>
15766
15767 * coding.c (select-safe-coding-system-function): Doc fix.
15768
15769 2008-01-15 Glenn Morris <rgm@gnu.org>
15770
15771 * config.in: Revert 2008-01-13 change: this is a generated file.
15772
15773 2008-01-13 Tom Tromey <tromey@redhat.com>
15774
15775 * lisp.h: Fix typo.
15776
15777 2008-01-13 Dan Nicolaescu <dann@ics.uci.edu>
15778
15779 * m/sequent-ptx.h:
15780 * m/sequent.h:
15781 * s/ptx.h:
15782 * s/ptx4-2.h:
15783 * s/ptx4.h: Remove files for systems no longer supported.
15784
15785 * callproc.c (Fcall_process): Fix previous change.
15786
15787 2008-01-13 Dan Nicolaescu <dann@ics.uci.edu>
15788
15789 * unexsunos4.c: Remove file, system not supported anymore.
15790
15791 * m/mips.h:
15792 * m/intel386.h:
15793 * callproc.c:
15794 * config.in:
15795 * ecrt0.c:
15796 * emacs.c:
15797 * fileio.c:
15798 * frame.c:
15799 * getpagesize.h:
15800 * keyboard.c:
15801 * lread.c:
15802 * process.c:
15803 * puresize.h:
15804 * sysdep.c:
15805 * systty.h:
15806 * syswait.h:
15807 * unexec.c:
15808 * xdisp.c:
15809 * alloc.c: Remove code containing references to symbols defined by
15810 unsupported systems.
15811
15812 2008-01-11 Kenichi Handa <handa@ni.aist.go.jp>
15813
15814 * coding.c (detect_coding_mask): Fix previous change.
15815
15816 2008-01-09 Kenichi Handa <handa@ni.aist.go.jp>
15817
15818 * coding.c (detect_coding_iso2022): New arg
15819 latin_extra_code_state. Allow Latin extra codes only
15820 when *latin_extra_code_state is nonzero.
15821 (detect_coding_mask): If there is a NULL byte, detect the encoding
15822 as UTF-16 or binary. If Latin extra codes exist, detect the
15823 encoding as ISO-2022 only when there's no other proper encoding is
15824 found.
15825
15826 2008-01-08 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
15827
15828 * frame.c (Fmake_terminal_frame): Use #ifdef MAC_OS8 instead of
15829 #ifdef MAC_OS.
15830
15831 2008-01-08 Richard Stallman <rms@gnu.org>
15832
15833 * fileio.c (Ffile_name_directory, Fexpand_file_name): Doc fixes.
15834
15835 2008-01-06 Nick Roberts <nickrob@snap.net.nz>
15836
15837 * keyboard.c (parse_menu_item): Don't enclose key bindings on
15838 menu bar in parentheses.
15839
15840 2008-01-06 Dan Nicolaescu <dann@ics.uci.edu>
15841
15842 * m/7300.h:
15843 * m/acorn.h:
15844 * m/alliant-2800.h:
15845 * m/alliant.h:
15846 * m/alliant1.h:
15847 * m/alliant4.h:
15848 * m/altos.h:
15849 * m/amdahl.h:
15850 * m/apollo.h:
15851 * m/att3b.h:
15852 * m/aviion-intel.h:
15853 * m/aviion.h:
15854 * m/celerity.h:
15855 * m/clipper.h:
15856 * m/cnvrgnt.h:
15857 * m/convex.h:
15858 * m/cydra5.h:
15859 * m/delta88k.h:
15860 * m/dpx2.h:
15861 * m/dual.h:
15862 * m/elxsi.h:
15863 * m/f301.h:
15864 * m/gould-np1.h:
15865 * m/gould.h:
15866 * m/i860.h:
15867 * m/ibmps2-aix.h:
15868 * m/ibmrt-aix.h:
15869 * m/ibmrt.h:
15870 * m/irist.h:
15871 * m/is386.h:
15872 * m/isi-ov.h:
15873 * m/mega68.h:
15874 * m/mg1.h:
15875 * m/news-r6.h:
15876 * m/news-risc.h:
15877 * m/news.h:
15878 * m/nh3000.h:
15879 * m/nh4000.h:
15880 * m/ns16000.h:
15881 * m/ns32000.h:
15882 * m/nu.h:
15883 * m/orion.h:
15884 * m/orion105.h:
15885 * m/paragon.h:
15886 * m/pfa50.h:
15887 * m/plexus.h:
15888 * m/pyramid.h:
15889 * m/pyrmips.h:
15890 * m/sh3el.h:
15891 * m/sps7.h:
15892 * m/sr2k.h:
15893 * m/stride.h:
15894 * m/sun1.h:
15895 * m/sun2.h:
15896 * m/sun3-68881.h:
15897 * m/sun3-fpa.h:
15898 * m/sun3-soft.h:
15899 * m/sun3.h:
15900 * m/sun386.h:
15901 * m/symmetry.h:
15902 * m/tad68k.h:
15903 * m/tahoe.h:
15904 * m/targon31.h:
15905 * m/tek4300.h:
15906 * m/tekxd88.h:
15907 * m/tower32.h:
15908 * m/tower32v3.h:
15909 * m/ustation.h:
15910 * m/wicat.h:
15911 * m/xps100.h:
15912 * s/cxux.h:
15913 * s/cxux7.h:
15914 * s/dgux.h:
15915 * s/dgux4.h:
15916 * s/dgux5-4-3.h:
15917 * s/dgux5-4r2.h:
15918 * s/esix.h:
15919 * s/esix5r4.h:
15920 * s/hiuxmpp.h:
15921 * s/hiuxwe2.h:
15922 * s/iris3-5.h:
15923 * s/iris3-6.h:
15924 * s/isc2-2.h:
15925 * s/isc3-0.h:
15926 * s/isc4-0.h:
15927 * s/isc4-1.h:
15928 * s/newsos5.h:
15929 * s/newsos6.h:
15930 * s/osf1.h:
15931 * s/osf5-0.h:
15932 * s/riscix1-1.h:
15933 * s/riscix12.h:
15934 * s/sco4.h:
15935 * s/sco5.h:
15936 * s/sunos4-0.h:
15937 * s/sunos4-1.h:
15938 * s/sunos413.h:
15939 * s/sunos4shr.h:
15940 * s/umax.h:
15941 * s/unipl5-2.h:
15942 * s/xenix.h:
15943 * cxux-crt0.s:
15944 * unexapollo.c:
15945 * unexconvex.c:
15946 * unexenix.c:
15947 * unexsni.c: Remove files for systems no longer supported.
15948
15949 * m/intel386.h: Remove references to unsupported systems.
15950
15951 * w32.c (get_emacs_configuration): Remove reference to i860.
15952
15953 * sysdep.c: Remove dead code.
15954
15955 2008-01-05 Dan Nicolaescu <dann@ics.uci.edu>
15956
15957 * s/rtu.h:
15958 * m/masscomp.h: Remove files. Platform is obsolete.
15959
15960 2008-01-04 Michael Albinus <michael.albinus@gmx.de>
15961
15962 * dbusbind.c (Fdbus_method_return): New function.
15963 (xd_read_message): Add the serial number to the event.
15964 (Fdbus_register_method): Activate the function.
15965
15966 2008-01-03 Stefan Monnier <monnier@iro.umontreal.ca>
15967
15968 * keyboard.c (read_key_sequence): Fix typo.
15969
15970 2008-01-03 Michael Albinus <michael.albinus@gmx.de>
15971
15972 * dbusbind.c (all): Replace XCAR by CAR_SAFE and XCDR by CDR_SAFE.
15973 (xd_signature, xd_append_arg): Handle element type detection for
15974 empty arrays.
15975 (Fdbus_call_method, Fdbus_send_signal): Undo type casting for
15976 SDATA () calls; this must be solved more general.
15977 (Fdbus_register_signal): Use SBYTES instead of strlen.
15978
15979 2008-01-03 Magnus Henoch <magnus@zemdatav>
15980
15981 * dbusbind.c (xd_append_arg): Use unsigned char instead of
15982 unsigned int for byte values (necessary for big-endian platform).
15983 (Fdbus_call_method): Handle the case of no returned arguments.
15984
15985 2007-12-31 Tom Tromey <tromey@redhat.com> (tiny change)
15986
15987 * dbusbind.c (xd_read_message): Use non-static input_event struct.
15988
15989 2007-12-31 Magnus Henoch <mange@freemail.hu>
15990
15991 * dbusbind.c (xd_signature): Signature of variant is just "v".
15992
15993 2007-12-30 Michael Albinus <michael.albinus@gmx.de>
15994
15995 * dbusbind.c: Fix several errors and compiler warnings.
15996 Reported by Tom Tromey <tromey@redhat.com>.
15997 (XD_ERROR, XD_DEBUG_MESSAGE)
15998 (XD_DEBUG_VALID_LISP_OBJECT_P): Wrap code with "do ... while (0)".
15999 (xd_append_arg): Part for basic D-Bus types rewritten.
16000 (xd_retrieve_arg): Split implementation of DBUS_TYPE_BYTE and
16001 DBUS_TYPE_(U)INT16. Don't call XD_DEBUG_MESSAGE with "%f" if not
16002 appropriate.
16003 (xd_read_message): Return Qnil. Don't signal an error; it is not
16004 useful during event reading.
16005 (Fdbus_register_signal): Signal an error if the check for
16006 FUNCTIONP fails.
16007 (Fdbus_register_method): New function. The implementation is not
16008 complete, the call of the function signals an error therefore.
16009 (Fdbus_unregister_object): New function, renamed from
16010 Fdbus_unregister_signal. The initial check signals an error, if
16011 the object is not well formed.
16012
16013 2007-12-30 Richard Stallman <rms@gnu.org>
16014
16015 * textprop.c (get_char_property_and_overlay):
16016 Signal error if POSITION is out of range in a buffer.
16017
16018 2007-12-29 Martin Rudalics <rudalics@gmx.at>
16019
16020 * w32fns.c (Fx_create_frame): Make copy of frame parameters
16021 because the original parameters are in pure storage now.
16022
16023 2007-12-24 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
16024
16025 * xdisp.c (phys_cursor_in_rect_p): Check if cursor is in fringe area.
16026
16027 2007-12-22 Eli Zaretskii <eliz@gnu.org>
16028
16029 * callint.c (syms_of_callint) <command-history>: Add reference to
16030 history-length in the doc string.
16031
16032 2007-12-17 Jason Rumney <jasonr@gnu.org>
16033
16034 * w32fns.c (w32_wnd_proc) <WM_KEYDOWN>: Cast char to unsigned
16035 before passing as wParam.
16036
16037 2007-12-22 Michael Albinus <michael.albinus@gmx.de>
16038
16039 * dbusbind.c (xd_retrieve_arg): Handle DBUS_TYPE_BYTE,
16040 DBUS_TYPE_INT16, DBUS_TYPE_UINT16, DBUS_TYPE_INT64,
16041 DBUS_TYPE_UINT64, DBUS_TYPE_DOUBLE and DBUS_TYPE_SIGNATURE.
16042 Return float when DBUS_TYPE_INT32 or DBUS_TYPE_UINT32 do not fit
16043 as number.
16044 (Fdbus_call_method): Fix docstring.
16045
16046 2007-12-21 Michael Albinus <michael.albinus@gmx.de>
16047
16048 * dbusbind.c (XD_BASIC_DBUS_TYPE, XD_DBUS_TYPE_P, XD_NEXT_VALUE):
16049 New macros.
16050 (XD_SYMBOL_TO_DBUS_TYPE): Rename from XD_LISP_SYMBOL_TO_DBUS_TYPE.
16051 (XD_OBJECT_TO_DBUS_TYPE): Rename from XD_LISP_OBJECT_TO_DBUS_TYPE.
16052 Simplify.
16053 (xd_signature): New function.
16054 (xd_append_arg): Compute also signatures. Major rewrite.
16055 (xd_retrieve_arg): Make debug messages friendly.
16056 (Fdbus_call_method, Fdbus_send_signal): Extend docstring.
16057 Check for signatures of arguments.
16058
16059 2007-12-19 Michael Albinus <michael.albinus@gmx.de>
16060
16061 * dbusbind.c (QCdbus_type_byte, QCdbus_type_boolean)
16062 (QCdbus_type_int16, QCdbus_type_uint16, QCdbus_type_int32)
16063 (QCdbus_type_uint32, QCdbus_type_int64, QCdbus_type_uint64)
16064 (QCdbus_type_double, QCdbus_type_string, QCdbus_type_object_path)
16065 (QCdbus_type_signature, QCdbus_type_array, QCdbus_type_variant)
16066 (QCdbus_type_struct, QCdbus_type_dict_entry): New D-Bus type symbols.
16067 (XD_LISP_SYMBOL_TO_DBUS_TYPE): New macro.
16068 (XD_LISP_OBJECT_TO_DBUS_TYPE): Add compound types.
16069 (xd_retrieve_value): Remove. Functionality included in ...
16070 (xd_append_arg): New function.
16071 (Fdbus_call_method, Fdbus_send_signal): Apply it.
16072
16073 2007-12-16 Michael Albinus <michael.albinus@gmx.de>
16074
16075 * dbusbind.c (top): Include <stdio.h>.
16076 (Fdbus_call_method, Fdbus_send_signal): Apply type cast in
16077 dbus_message_new_method_call and dbus_message_new_signal.
16078 (Fdbus_register_signal): Rename unique_name to uname.
16079 Check handler for FUNCTIONP instead of CHECK_SYMBOL. Handle case of
16080 non-existing unique name. Fix typos in matching rule. Return an
16081 object which is useful in Fdbus_unregister_signal.
16082 (Fdbus_unregister_signal): Reimplementation, in order to remove
16083 only the corresponding entry.
16084 (Vdbus_registered_functions_table): Change the order of entries.
16085 Apply these changes in xd_read_message and Fdbus_register_signal.
16086
16087 2007-12-16 Andreas Schwab <schwab@suse.de>
16088
16089 * fileio.c (Finsert_file_contents): Fix overflow check to not
16090 depend on undefined integer overflow.
16091
16092 2007-12-14 Jason Rumney <jasonr@gnu.org>
16093
16094 * w32term.c (w32_read_socket): Use MULTIBYTE_CHAR_KEYSTROKE_EVENT
16095 for characters above 127.
16096
16097 2007-12-13 Jason Rumney <jasonr@gnu.org>
16098
16099 * w32fns.c (w32_wnd_proc, Fw32_reconstruct_hot_key): Range check
16100 before dereferencing array.
16101 (lookup_vk_code): Remove zero comparison.
16102
16103 2007-12-14 Michael Albinus <michael.albinus@gmx.de>
16104
16105 * dbusbind.c (xd_retrieve_value, xd_retrieve_arg)
16106 (Fdbus_call_method, Fdbus_send_signal, xd_read_message):
16107 Use `unsigned int' instead of `uint'.
16108 (xd_read_message, Fdbus_register_signal): Split expressions into
16109 multiple lines before operators "&&" and "||", according to the
16110 GNU Coding Standards.
16111
16112 2007-12-14 Eli Zaretskii <eliz@gnu.org>
16113
16114 * dispextern.h (WINDOWS_NT): Fix incorrect spelling of WINDOWSNT.
16115
16116 2007-12-12 Juri Linkov <juri@jurta.org>
16117
16118 * buffer.c (Frename_buffer): In interactive spec replace
16119 `read-buffer' with `read-string' that uses `buffer-name-history'
16120 as history, and the current buffer's name as default.
16121
16122 2007-12-10 Stefan Monnier <monnier@iro.umontreal.ca>
16123
16124 * keyboard.c (Fcommand_execute): Call Qcall_interactively instead of
16125 manipulating the backtrace manually.
16126 (make_lispy_event): Merge the ASCII and MULTIBYTE cases.
16127 (struct backtrace, backtrace_list): Remove.
16128 (command_loop_1): Remove dead var `no_direct'.
16129
16130 * buffer.c (reset_buffer_local_variables): If permanent_too is 0, also
16131 preserve non-built-in buffer-local variables.
16132 (Fkill_all_local_variables): Don't re-create&re-set permanent
16133 buffer-local variables.
16134
16135 2007-12-09 Juri Linkov <juri@jurta.org>
16136
16137 * buffer.c (Frename_buffer): Change interactive spec from "s" to
16138 Lisp code that uses `read-buffer' with current buffer as default.
16139
16140 2007-12-08 Michael Albinus <michael.albinus@gmx.de>
16141
16142 * dbusbind.c (xd_read_message): Generate an event for every
16143 registered handler. There might be several handlers registered
16144 for the same signal.
16145 (Fdbus_register_signal): Don't overwrite a registration for the
16146 same signal. Add a new registration if handlers are different.
16147 (Vdbus_registered_functions_table): Rework doc string.
16148
16149 2007-12-07 Michael Albinus <michael.albinus@gmx.de>
16150
16151 * dbusbind.c (Fdbus_get_unique_name, xd_read_message)
16152 (Fdbus_register_signal): Use DBUS_MAXIMUM_NAME_LENGTH and
16153 DBUS_MAXIMUM_MATCH_RULE_LENGTH for string lengths.
16154 (Fdbus_call_method, Fdbus_send_signal, Fdbus_register_signal):
16155 Unify argument lists.
16156 (xd_read_message, Fdbus_register_signal): Reorder and extend event
16157 arguments and hash table keys. Use unique name for service.
16158 (Fdbus_unregister_signal): Remove checks.
16159 (Vdbus_registered_functions_table): Fix doc string.
16160
16161 2007-12-05 Magnus Henoch <mange@freemail.hu>
16162
16163 * process.c (make_process): Initialize pty_flag to 0.
16164
16165 2007-12-05 Jason Rumney <jasonr@gnu.org>
16166
16167 * image.c (xbm_load) [WINDOWSNT]: Shuffle the bits of directly
16168 specified XBMs.
16169
16170 2007-12-05 Richard Stallman <rms@gnu.org>
16171
16172 * xdisp.c (syms_of_xdisp) <scroll-conservatively>: Doc fix.
16173
16174 2007-12-05 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
16175
16176 * mac.c (cfsockets_for_select) [MAC_OSX && SELECT_USE_CFSOCKET]:
16177 New variable.
16178 (mac_try_close_socket) [MAC_OSX]: New function.
16179 [MAC_OSX] (sys_select) [SELECT_USE_CFSOCKET]:
16180 Update cfsockets_for_select. Replace invalid CFRunLoop source.
16181
16182 * sysdep.c (emacs_close) [MAC_OSX && HAVE_CARBON]:
16183 Use mac_try_close_socket.
16184
16185 2007-12-05 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
16186
16187 * unexmacosx.c (unrelocate): New argument BASE. Use it instead of
16188 reloc_base.
16189 (copy_dysymtab): Compute relocation base here.
16190 (rebase_reloc_address) [__ppc64__]: New function.
16191 (copy_dysymtab) [__ppc64__]: Use it if relocation base needs to be
16192 changed.
16193
16194 2007-12-05 Jason Rumney <jasonr@gnu.org>
16195
16196 * w32proc.c (sys_spawnve): Quote args with wildcards.
16197
16198 2007-12-05 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
16199
16200 * unexmacosx.c (copy_data_segment): Also copy __gcc_except_tab and
16201 __objc_* sections.
16202 (unrelocate) [_LP64]: Set relocation base to address of data segment.
16203
16204 2007-12-05 Michael Albinus <michael.albinus@gmx.de>
16205
16206 * dbusbind.c (xd_read_message): Return value is a Lisp_Object.
16207 Move check for Vdbus_registered_functions_table to
16208 xd_read_queued_messages.
16209 (xd_read_queued_messages): Protect xd_read_message calls by
16210 internal_condition_case_1.
16211
16212 2007-12-04 Michael Albinus <michael.albinus@gmx.de>
16213
16214 * dbusbind.c (QCdbus_system_bus, QCdbus_session_bus): Rename from
16215 Qdbus_system_bus and Qdbus_session_bus, respectively.
16216 (Vdbus_intern_symbols): Remove.
16217 (Vdbus_registered_functions_table): New hash table.
16218 (XD_SYMBOL_INTERN_SYMBOL): Remove.
16219 (xd_read_message, Fdbus_register_signal, Fdbus_unregister_signal):
16220 Rewrite in order to manage registered functions by hash table
16221 Vdbus_registered_functions_table.
16222
16223 2007-12-03 Jan Djärv <jan.h.d@swipnet.se>
16224
16225 * xterm.c: Update URL to Window Manager Specification in comment.
16226
16227 2007-12-02 Michael Albinus <michael.albinus@gmx.de>
16228
16229 * config.in (HAVE_DBUS): Add.
16230
16231 * Makefile.in (HAVE_DBUS): Add D-Bus definitions if defined.
16232 (ALL_CFLAGS): Add ${DBUS_CFLAGS}.
16233 (obj): Add $(DBUS_OBJ).
16234 (LIBES): Add $(DBUS_LIBS).
16235 (dbusbind.o): New target.
16236
16237 * dbusbind.c: New file.
16238
16239 * emacs.c (main): Call syms_of_dbusbind when HAVE_DBUS is defined.
16240
16241 * keyboard.c: All D-Bus related code is wrapped by "#ifdef HAVE_DBUS".
16242 (Qdbus_event): New Lisp symbol.
16243 (kbd_buffer_get_event, make_lispy_event): Handle DBUS_EVENT.
16244 (gobble_input): Call xd_read_queued_messages, reading D-Bus messages.
16245 (keys_of_keyboard): Define dbus-event.
16246
16247 * termhooks.h (event_kind): Add DBUS_EVENT when HAVE_DBUS is defined.
16248
16249 2007-12-01 Richard Stallman <rms@gnu.org>
16250
16251 * search.c (syms_of_search) <inhibit-changing-match-data>: Doc fix.
16252
16253 2007-11-30 Jason Rumney <jasonr@gnu.org>
16254
16255 * w32console.c (w32con_ins_del_lines, scroll_line): Clip to window.
16256 (w32con_reset_terminal_modes): Clear screen buffer.
16257 (w32_face_attributes): Don't use color indexes that are out of range.
16258 Only reverse the default colors.
16259
16260 * xfaces.c (map_tty_color, tty_color_name): Remove special case for
16261 WINDOWSNT.
16262
16263 * w32console.c, w32term.h (vga_stdcolor_name): Remove.
16264
16265 2007-11-29 Jason Rumney <jasonr@gnu.org>
16266
16267 * w32console.c: Leave HAVE_WINDOW_SYSTEM defined.
16268 (w32_face_attributes): Use Vtty_defined_color_alist to determine
16269 if the terminal colors are initialized.
16270 (unspecified_fg, unspecified_bg): Remove unused declarations.
16271
16272 2007-11-29 Andreas Schwab <schwab@suse.de>
16273
16274 * keyboard.c (apply_modifiers): Fix typo.
16275
16276 2007-11-29 Richard Stallman <rms@gnu.org>
16277
16278 * keymap.c (Fcurrent_local_map): Doc fix.
16279
16280 2007-11-28 Petr Salinger <Petr.Salinger@seznam.cz> (tiny change)
16281
16282 * s/gnu-kfreebsd.h: New file.
16283
16284 2007-11-28 Stefan Monnier <monnier@iro.umontreal.ca>
16285
16286 * buffer.c (Fget_buffer_create, Fmake_indirect_buffer):
16287 Don't cast redundantly.
16288
16289 * keyboard.c (KEY_TO_CHAR): New macro.
16290 (parse_modifiers, apply_modifiers): Accept integer arguments.
16291 (read_key_sequence): Use them to unify the "shift->unshift" mapping
16292 for chars and symbol keys.
16293 After doing such remapping, apply function-key-map again.
16294
16295 2007-11-27 Dan Nicolaescu <dann@ics.uci.edu>
16296
16297 * Makefile.in (SOME_MACHINE_LISP): Remove VMS files, they are not
16298 compiled anymore.
16299
16300 2007-11-26 Andreas Schwab <schwab@suse.de>
16301
16302 * process.c (list_processes_1): Fix indentation level of the
16303 command column.
16304
16305 2007-11-23 Andreas Schwab <schwab@suse.de>
16306
16307 * editfns.c (Fformat): Handle %c specially since it requires the
16308 argument to be of type int.
16309
16310 2007-11-23 Markus Triska <markus.triska@gmx.at>
16311
16312 * emacs.c (main): Call init_editfns before init_process, since
16313 init_process sets Vprocess_connection_type depending on OS release.
16314
16315 2007-11-22 Stefan Monnier <monnier@iro.umontreal.ca>
16316
16317 * data.c (do_symval_forwarding): Use same code as in find_symbol_value.
16318 (find_symbol_value): Use do_symval_forwarding.
16319
16320 * data.c (set_internal): Set the value in the `cons-cell' (for
16321 Buffer_Local_values) not only for frame-local variables.
16322
16323 2007-11-22 Andreas Schwab <schwab@suse.de>
16324
16325 * data.c (Fnumber_to_string): Add cast when passing EMACS_INT
16326 values to sprintf.
16327 * keymap.c (Fsingle_key_description): Likewise.
16328 * print.c (print_object): Likewise.
16329
16330 2007-11-22 Jan Djärv <jan.h.d@swipnet.se>
16331
16332 * gtkutil.c (update_frame_tool_bar): Don't call x-gtk-map-stock if
16333 file for image is nil.
16334
16335 2007-11-22 Dan Nicolaescu <dann@ics.uci.edu>
16336
16337 * term.c: Include stdarg.h.
16338 (fatal): Implement using varargs.
16339 * lisp.h (fatal): Add argument types. (Restore 2005-09-30 change).
16340
16341 2007-11-21 Stefan Monnier <monnier@iro.umontreal.ca>
16342
16343 * lisp.h (struct Lisp_Buffer_Objfwd): Add a `slottype' field.
16344 * data.c (store_symval_forwarding): Get type from buffer_objfwd.
16345 Update call to buffer_slot_type_mismatch.
16346 * buffer.h (buffer_local_types, PER_BUFFER_TYPE): Remove.
16347 (buffer_slot_type_mismatch): Update.
16348 * buffer.c (buffer_local_types): Remove.
16349 (buffer_slot_type_mismatch): Get the symbol and type as arguments.
16350 (defvar_per_buffer): Set the type in the buffer_objfwd.
16351
16352 2007-11-21 Jason Rumney <jasonr@gnu.org>
16353
16354 * w32bdf.c (w32_init_bdf_font, w32_BDF_to_x_font):
16355 CreateFileMapping returns NULL on failure.
16356
16357 2007-11-21 Stefan Monnier <monnier@iro.umontreal.ca>
16358
16359 * search.c (Fset_match_data): Remove the `evaporate' feature.
16360 (unwind_set_match_data): Don't use the `evaporate' feature.
16361
16362 2007-11-21 Jason Rumney <jasonr@gnu.org>
16363
16364 * dispnew.c (init_display) [WINDOWSNT]: Hardcode terminal_type.
16365
16366 * w32console.c (w32con_write_glyphs): Remove unused variables.
16367
16368 2007-11-20 Dan Nicolaescu <dann@ics.uci.edu>
16369
16370 * macterm.c (mac_term_init): Call add_keyboard_wait_descriptor.
16371
16372 * s/darwin.h (MULTI_KBOARD): Remove.
16373
16374 * macfns.c (x_create_tip_frame, Fx_create_frame)
16375 (x_create_tip_frame): Don't deal with MULTI_KBOARD.
16376
16377 2007-11-19 Stefan Monnier <monnier@iro.umontreal.ca>
16378
16379 * buffer.c (Fbuffer_local_value): Remove redundant test.
16380 (swap_out_buffer_local_variables): Swap out binding in `buffer' rather
16381 than in `current-buffer' to match the comment.
16382 Do the swap using swap_in_global_binding.
16383
16384 * data.c (store_symval_forwarding, set_internal):
16385 * eval.c (specbind): Remove dead code.
16386
16387 * coding.c (detect_coding, Fupdate_coding_systems_internal):
16388 * fns.c (Fmd5): Use find_symbol_value rather than SYMBOL_VALUE
16389 Since we do not want to see internal Lisp_*fwd objects here.
16390
16391 2007-11-18 Jan Djärv <jan.h.d@swipnet.se>
16392
16393 * sysdep.c (init_system_name): Use getaddrinfo if available.
16394
16395 * xterm.c (x_scroll_bar_set_handle, x_scroll_bar_handle_click)
16396 (x_scroll_bar_note_movement): start, end, with, height in struct
16397 scroll_bar are integers and not Lisp_Object, so remove XINT for them.
16398
16399 2007-11-17 Dan Nicolaescu <dann@ics.uci.edu>
16400
16401 * puresize.h (BASE_PURESIZE): Increase to 1190000.
16402
16403 2007-11-16 Stefan Monnier <monnier@iro.umontreal.ca>
16404
16405 * buffer.h (struct buffer): Move `undo_list' back to before `name'.
16406 This undoes Richard's change of 14-Oct-2002.
16407
16408 * alloc.c (allocate_other_vector):
16409 * lisp.h (allocate_other_vector): Remove.
16410
16411 * window.c (struct save_window_data): Move non-lisp data to the end
16412 and make it `int' rather than Lisp_Object.
16413 (Fcurrent_window_configuration): Use ALLOCATE_PSEUDOVECTOR.
16414 Done wrap/unwrap integer values.
16415 (Fset_window_configuration, compare_window_configurations):
16416 Update use of fields to their new types.
16417
16418 * xterm.h (struct scroll_bar): Only use Lisp_Object for lisp data.
16419 Turn integer fields into `int'. Merge x_window_low and x_window_high.
16420 (SCROLL_BAR_PACK, SCROLL_BAR_UNPACK, SCROLL_BAR_X_WINDOW)
16421 (SET_SCROLL_BAR_X_WINDOW): Remove.
16422 (SCROLL_BAR_X_WIDGET, SET_SCROLL_BAR_X_WIDGET):
16423 Access the new x_window field directly.
16424 * xterm.c (x_scroll_bar_create): Use a pseudovector.
16425 Don't wrap/unwrap integers into Lisp_Objects.
16426 (XTset_vertical_scroll_bar, x_scroll_bar_handle_click)
16427 (x_scroll_bar_report_motion):
16428 Don't wrap/unwrap integers into Lisp_Objects.
16429 (x_term_init): Use SDATA.
16430 (x_window_to_scroll_bar, x_create_toolkit_scroll_bar)
16431 (x_scroll_bar_set_handle, x_scroll_bar_remove)
16432 (XTset_vertical_scroll_bar, x_scroll_bar_expose)
16433 (x_scroll_bar_report_motion, x_scroll_bar_clear):
16434 * xfns.c (x_set_background_color):
16435 * gtkutil.c (xg_create_scroll_bar, xg_set_toolkit_scroll_bar_thumb):
16436 Access the new x_window field directly.
16437
16438 * alloc.c (ALLOCATE_PSEUDOVECTOR): Move to lisp.h.
16439 (allocate_pseudovector): Make non-static.
16440
16441 * lisp.h (enum pvec_type): New tag PVEC_OTHER.
16442 (allocate_pseudovector): Declare.
16443 (ALLOCATE_PSEUDOVECTOR): Move from alloc.c.
16444
16445 2007-11-15 Andreas Schwab <schwab@suse.de>
16446
16447 * editfns.c (Fformat): Correctly format EMACS_INT values.
16448 Also take precision into account when formatting an integer.
16449
16450 * keyboard.c (Fevent_symbol_parse_modifiers): Fix declaration.
16451
16452 2007-11-15 Stefan Monnier <monnier@iro.umontreal.ca>
16453
16454 * keyboard.c (Fevent_symbol_parse_modifiers): New function.
16455 (syms_of_keyboard): Defsubr it.
16456
16457 * data.c (swap_in_global_binding): Fix longstanding bug where
16458 store_symval_forwarding was not called with the right second argument,
16459 thus causing objfwd-ing from being dropped.
16460
16461 2007-11-14 Juanma Barranquero <lekktu@gmail.com>
16462
16463 * macfns.c (Fx_create_frame, Fx_display_pixel_width)
16464 (Fx_display_pixel_height, Fx_display_planes)
16465 (Fx_display_color_cells, Fx_server_max_request_size)
16466 (Fx_server_vendor, Fx_server_version, Fx_display_backing_store)
16467 (Fx_display_visual_class, Fx_display_save_under):
16468 * w32fns.c (Fx_create_frame, Fx_display_pixel_width)
16469 (Fx_display_pixel_height, Fx_display_planes)
16470 (Fx_display_color_cells, Fx_server_max_request_size)
16471 (Fx_server_vendor, Fx_server_version, Fx_display_screens)
16472 (Fx_display_mm_height, Fx_display_mm_width)
16473 (Fx_display_backing_store, Fx_display_visual_class)
16474 (Fw32_select_font, Fx_display_save_under):
16475 * xfns.c (Fx_create_frame, Fx_display_pixel_width)
16476 (Fx_display_pixel_height, Fx_display_planes)
16477 (Fx_display_color_cells, Fx_server_max_request_size)
16478 (Fx_server_vendor, Fx_server_version, Fx_display_backing_store)
16479 (Fx_display_save_under): Fix typos in docstrings.
16480
16481 2007-11-14 Juanma Barranquero <lekktu@gmail.com>
16482
16483 * w32fns.c (Fw32_registered_hot_keys): Don't return the nil values
16484 corresponding to deleted entries; they are an implementation detail.
16485 (gray_bitmap_width, gray_bitmap_height, gray_bitmap_bits):
16486 Remove variables.
16487 (w32_pass_extra_mouse_buttons_to_system, w32_strict_fontnames)
16488 (w32_pass_multimedia_buttons_to_system, w32_strict_painting)
16489 (Vw32_charset_info_alist, w32_to_x_color, w32_init_class)
16490 (w32_createscrollbar, w32_createwindow, my_post_msg, w32_get_modifiers)
16491 (w32_grabbed_keys, cancel_all_deferred_msgs): Make static.
16492 (Fw32_define_rgb_color, Fw32_load_color_file)
16493 (syms_of_w32fns) <w32-pass-multimedia-buttons-to-system>:
16494 Fix typos in docstrings.
16495 (Fx_server_version): Reflow docstring.
16496 (Fw32_shell_execute): Doc fixes.
16497
16498 2007-11-13 Juanma Barranquero <lekktu@gmail.com>
16499
16500 * w32fns.c (Fw32_register_hot_key): Don't try to register hot key
16501 if w32_parse_hot_key returned nil.
16502
16503 2007-11-10 Stefan Monnier <monnier@iro.umontreal.ca>
16504
16505 * xdisp.c (load_overlay_strings): Fix copy&paste typo.
16506
16507 2007-11-09 Jason Rumney <jasonr@gnu.org>
16508
16509 * s/ms-w32.c (USE_TOOLKIT_SCROLL_BARS): Define.
16510
16511 * w32term.c (w32_scroll_bar_handle_click): Use SCROLL_BAR_CLICK_EVENT.
16512
16513 * keyboard.c (discard_mouse_events, make_lispy_event) [WINDOWSNT]:
16514 Remove W32_SCROLL_BAR_CLICK_EVENT.
16515
16516 * termhooks.h (enum event_kind) [WINDOWSNT]: Likewise.
16517 Add MULTIMEDIA_KEY_EVENT.
16518
16519 * keyboard.c (lispy_function_keys) [WINDOWSNT]: Add more keys.
16520 (lispy_multimedia_keys) [WINDOWSNT]: New array.
16521 (make_lispy_event) [WINDOWSNT]: Use it to translate
16522 MULTIMEDIA_KEY_EVENT.
16523
16524 * w32term.h (WM_APPCOMMAND): Define if not already.
16525 (GET_APPCOMMAND_LPARAM): Likewise.
16526
16527 * w32term.c (w32_read_socket): Generate MULTIMEDIA_KEY_EVENT from
16528 WM_APPCOMMAND.
16529
16530 * w32fns.c (w32_pass_multimedia_buttons_to_system): New user option.
16531 (syms_of_w32fns): Export and initialize it.
16532 (w32_wnd_proc): Pass WM_APPCOMMAND on to w32_read_socket.
16533
16534 2007-11-09 Chong Yidong <cyd@stupidchicken.com>
16535
16536 * dispextern.h (struct it): Don't define OVERLAY_STRING_CHUNK_SIZE
16537 twice.
16538
16539 * xdisp.c (handle_face_prop): Fix last change.
16540
16541 2007-11-09 Richard Stallman <rms@gnu.org>
16542
16543 * xdisp.c (handle_face_prop): Test for strings that came from overlays,
16544 not just for after-strings and before-strings.
16545 Call face_for_overlay_string and pass the overlay to it.
16546 (handle_display_prop): Determine whether property came from an overlay.
16547 Pass OVERLAY arg to handle_single_display_spec.
16548 (handle_single_display_spec): New arg OVERLAY sets it->from_overlay.
16549 (load_overlay_strings): Fill in it->string_overlays.
16550 (get_overlay_strings_1, push_it, pop_it): Handle it->from_overlays.
16551
16552 * xfaces.c (face_for_overlay_string): Function renamed from
16553 face_at_buffer_position_no_overlays, and add arg OVERLAY.
16554
16555 * dispextern.h (struct it): New elt string_overlays.
16556 New elt from_overlay, also in stack.
16557 Rearrange a few elements.
16558 (face_for_overlay_string): Decl renamed from
16559 face_at_buffer_position_no_overlays, and add argument.
16560
16561 2007-11-09 Richard Stallman <rms@gnu.org>
16562
16563 * xdisp.c (handle_face_prop): Use face_at_buffer_position_no_overlays
16564 to get the base face for an overlay string.
16565
16566 * dispextern.h (face_at_buffer_position_no_overlays): Add decl.
16567
16568 * xfaces.c (face_at_buffer_position_no_overlays): New function.
16569
16570 * xdisp.c (handle_stop): Move some code out of loop.
16571
16572 2007-11-09 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
16573
16574 * macfns.c [USE_ATSUI] (Fmac_atsu_font_face_attributes):
16575 Fix conversion from Lisp object to ATSUFontID.
16576
16577 2007-11-09 Jason Rumney <jasonr@gnu.org>
16578
16579 * xdisp.c (Fformat_mode_line): Do nothing when noninteractive.
16580
16581 2007-11-09 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
16582
16583 * unexmacosx.c (unexec_regions_recorder, unexec_regions_merge):
16584 Don't assume regions are aligned to page boundary.
16585 (print_load_command_name): Add LC_UUID if defined.
16586
16587 2007-11-09 Richard Stallman <rms@gnu.org>
16588
16589 * emacs.c (syms_of_emacs) <installation-directory>: Reflow docstring.
16590
16591 2007-11-07 Jason Rumney <jasonr@gnu.org>
16592
16593 * s/windows95.h: Remove.
16594
16595 2007-11-06 Jan Djärv <jan.h.d@swipnet.se>
16596
16597 * gtkutil.c (xg_tool_bar_menu_proxy): Handle GTK_IMAGE_ICON_NAME and
16598 abort with a message on unhandled store_type values.
16599
16600 2007-11-01 Jan Djärv <jan.h.d@swipnet.se>
16601
16602 * xterm.c, xfns.c, xselect.c, xterm.h, s/msdos.h, s/sco4.h, s/sco5.h:
16603 Remove HAVE_X11R5 and HAVE_X11R4.
16604
16605 2007-11-01 Dan Nicolaescu <dann@ics.uci.edu>
16606
16607 * Makefile.in: Remove references to sunfns.c and sunfns.o.
16608
16609 2007-11-01 Johan Bockgård <bojohan@gnu.org>
16610
16611 * macterm.c, w32term.c, xterm.c (x_draw_stretch_glyph_string):
16612 Don't set s->stippled_p here, since it has already been set by
16613 x_set_glyph_string_gc from x_draw_glyph_string.
16614
16615 2007-11-01 Dan Nicolaescu <dann@ics.uci.edu>
16616
16617 * sunfns.c: Remove file.
16618
16619 * m/sun386.h:
16620 * m/sun2.h:
16621 * m/sparc.h: Remove Sun windows code.
16622
16623 2007-10-31 Stefan Monnier <monnier@iro.umontreal.ca>
16624
16625 * keyboard.c (syms_of_keyboard): Initialize the initial_kboard.
16626 (init_keyboard): Set current_kboard's window-system to nil.
16627 (tty_read_avail_input): Typo.
16628 * frame.c (make_initial_frame): Don't initialize the initial_kboard.
16629
16630 2007-10-31 Dan Nicolaescu <dann@ics.uci.edu>
16631
16632 * s/usg5-4.h:
16633 * s/usg5-3.h:
16634 * s/ptx.h:
16635 * m/is386.h:
16636 * m/ibmps2-aix.h:
16637 * Makefile.in: Remove all mentions of X10.
16638
16639 * dispnew.c (syms_of_display): Don't mention version 10.
16640
16641 2007-10-28 Juanma Barranquero <lekktu@gmail.com>
16642
16643 * makefile.w32-in (OBJ1): Remove abbrev.$(O).
16644 ($(BLD)/abbrev.$(O)): Remove.
16645
16646 2007-10-28 Stefan Monnier <monnier@iro.umontreal.ca>
16647
16648 Rewrite abbrev.c in Elisp.
16649 * image.c (Qcount): Don't declare as extern.
16650 (syms_of_image): Initialize and staticpro `Qcount'.
16651 * puresize.h (BASE_PURESIZE): Increase for the new abbrev.el functions.
16652 * emacs.c (main): Don't call syms_of_abbrev.
16653 * Makefile.in (obj): Remove abbrev.o.
16654 (abbrev.o): Remove.
16655 * abbrev.c: Remove.
16656
16657 2007-10-26 Martin Rudalics <rudalics@gmx.at>
16658
16659 * window.c (window_min_size_2): Don't count header-line.
16660
16661 2007-10-26 Dan Nicolaescu <dann@ics.uci.edu>
16662
16663 * frame.h (struct frame): Move all bit fields after the first bit
16664 field to take advantage of the available space. Group all the
16665 chars together to reduce wasted space due to padding.
16666
16667 2007-10-26 Juanma Barranquero <lekktu@gmail.com>
16668
16669 * minibuf.c (Fread_minibuffer, Feval_minibuffer): Reflow docstrings.
16670
16671 * alloc.c (spare_memory, stack_copy, stack_copy_size, ignore_warnings)
16672 (Vdead, dont_register_blocks, staticvec, staticidx, interval_block)
16673 (n_interval_blocks, init_strings, check_string_bytes, check_sblock)
16674 (init_float, free_float, n_cons_blocks, init_cons, all_vectors)
16675 (n_vectors, symbol_block, symbol_block_index, symbol_free_list)
16676 (n_symbol_blocks, init_symbol, marker_block, marker_free_list)
16677 (n_marker_blocks, init_marker, valid_pointer_p, make_pure_float)
16678 (last_marked, mark_object_loop_halt): Make static.
16679
16680 * frame.c (syms_of_frame) <delete-frame-functions>:
16681 Fix typo in docstring.
16682
16683 2007-10-25 Juanma Barranquero <lekktu@gmail.com>
16684
16685 * w32.c (init_environment): Fix tiny memory leak.
16686 (w32_get_resource): Remove unused variable `ok'.
16687
16688 2007-10-25 Stefan Monnier <monnier@iro.umontreal.ca>
16689
16690 Make `window-system' into a keyboard-local variable (rather than
16691 frame-local as done originally by multi-tty).
16692
16693 * keyboard.h (struct kboard): Add Vwindow_system.
16694 * keyboard.c (init_kboard): Set a default for Vwindow_system.
16695 (mark_kboards): Mark Vwindow_system.
16696
16697 * dispnew.c (syms_of_display) <window-system>: Declare terminal-local.
16698 (init_display): Don't set the obsolete `window-system' frame-param.
16699
16700 * xterm.c (x_term_init):
16701 * w32term.c (w32_create_terminal):
16702 * term.c (init_tty): Set Vwindow_system.
16703 * macterm.c (mac_create_terminal): Set a keyboard (missing piece of the
16704 multi-tty merge maybe?), copied from w32term.c. Set Vwindow_system.
16705
16706 * xfns.c (Fx_create_frame, x_create_tip_frame):
16707 * w32fns.c (Fx_create_frame, x_create_tip_frame):
16708 * macfns.c (Fx_create_frame):
16709 Don't set the obsolete `window-system' frame-param.
16710
16711 * frame.h (Qwindow_system): Remove.
16712 * frame.c (Qwindow_system): Remove. In `syms_of_frame' as well.
16713 (Fmake_terminal_frame): Don't set obsolete `window-system' frame-param.
16714
16715 2007-10-24 Richard Stallman <rms@gnu.org>
16716
16717 * frame.c (x_figure_window_size): For fullscreen case,
16718 set USPosition | PPosition without clobbering rest of window_prompting.
16719
16720 * keyboard.c (Fcurrent_idle_time): Doc fix.
16721
16722 * print.c (Fwith_output_to_temp_buffer): Doc fix.
16723
16724 2007-10-23 Stefan Monnier <monnier@iro.umontreal.ca>
16725
16726 * process.c (unwind_request_sigio): Only define if __ultrix__.
16727
16728 * callproc.c (child_setup): Remove spurious *.
16729
16730 * lisp.h (Fget_text_property): Declare.
16731 (have_menus_p): Declare it here rather than in sys-dep header files.
16732 * macterm.h (have_menus_p):
16733 * msdos.h (have_menus_p):
16734 * xterm.h (have_menus_p): Remove.
16735
16736 * data.c (Fmake_variable_buffer_local, Fmake_local_variable)
16737 (Fmake_variable_frame_local): Just check the variable's const-ness
16738 rather than checking nil or t.
16739
16740 2007-10-22 Jason Rumney <jasonr@gnu.org>
16741
16742 * w32fns.c: Include math.h.
16743 (w32_abort): Declaration moved to nt/config.nt.
16744
16745 * s/ms-w32.h (HAVE_STDLIB_H): Define.
16746 (abort): Redefinition moved to nt/config.nt.
16747
16748 * m/windowsnt.h: Remove.
16749
16750 2007-10-22 Juanma Barranquero <lekktu@gmail.com>
16751
16752 * emacs.c (Fdump_emacs): Fix typo in message.
16753 (syms_of_emacs) <kill-emacs-hook>: Fix typo in docstring.
16754 <installation-directory>: Reflow docstring.
16755
16756 2007-10-22 Juri Linkov <juri@jurta.org>
16757
16758 * minibuf.c: Allow minibuffer default to be a list of default values.
16759 With empty input use the first element of this list as returned default.
16760 (string_to_object)
16761 (read_minibuf_noninteractive): If defalt is cons, set val to its car.
16762 (read_minibuf): If defalt is cons, set histstring to its car.
16763 (Fread_string): If default_value is cons, set val to its car.
16764 (Fread_buffer): If def is cons, use its car.
16765 (Fcompleting_read): If defalt is cons, set val to its car.
16766
16767 2007-10-21 Michael Albinus <michael.albinus@gmx.de>
16768
16769 * fileio.c (Fcopy_file): Call file name handler with preserve_uid_gid.
16770
16771 2007-10-20 Juanma Barranquero <lekktu@gmail.com>
16772
16773 * doc.c (Fdocumentation): Check for advice in all cases.
16774
16775 2007-10-19 Chong Yidong <cyd@stupidchicken.com>
16776
16777 * Makefile.in [HAVE_LIBRESOLV]: Add -lresolv to linker flags.
16778
16779 2007-10-19 Richard Stallman <rms@gnu.org>
16780
16781 * doc.c (Fdocumentation): Check for and handle an advised function.
16782
16783 2007-10-19 Juanma Barranquero <lekktu@gmail.com>
16784
16785 * process.c (Fset_process_filter): Doc fix.
16786
16787 2007-10-18 Stefan Monnier <monnier@iro.umontreal.ca>
16788
16789 * keyboard.c (read_key_sequence): Undo a change introduced by multi-tty
16790 which caused key-translation-map to applied repeatedly (thus breaking
16791 double-mode).
16792
16793 2007-10-17 Stefan Monnier <monnier@iro.umontreal.ca>
16794
16795 * xselect.c (x_own_selection, x_handle_selection_clear)
16796 (x_clear_frame_selections):
16797 * w32menu.c (list_of_panes, list_of_items):
16798 * w32fns.c (w32_color_map_lookup, Fx_create_frame, Fx_display_list):
16799 * textprop.c (validate_plist, interval_has_all_properties)
16800 (interval_has_some_properties, interval_has_some_properties_list)
16801 (add_properties, text_property_list):
16802 * process.c (Fget_buffer_process, list_processes_1, status_notify):
16803 * minibuf.c (Fassoc_string):
16804 * macselect.c (x_own_selection, x_clear_frame_selections)
16805 (Fx_disown_selection_internal):
16806 * keymap.c (Fcommand_remapping, where_is_internal, describe_map_tree):
16807 Use CONSP rather than !NILP and XC[AD]R rather than Fc[ad]r.
16808
16809 2007-10-17 Chong Yidong <cyd@stupidchicken.com>
16810
16811 * process.c: Link to libs for calling res_init() if available.
16812 (Fmake_network_process): Call res_init() before getaddrinfo or
16813 gethostbyname, if possible.
16814
16815 2007-10-17 Stefan Monnier <monnier@iro.umontreal.ca>
16816
16817 * lread.c (read1): Set pvectype for char_tables.
16818
16819 * lisp.h (XMISCANY, XMARKER, XINTFWD, XBOOLFWD, XOBJFWD, XOVERLAY)
16820 (XBUFFER_OBJFWD, XBUFFER_LOCAL_VALUE, XKBOARD_OBJFWD, XSAVE_VALUE):
16821 Add type checks.
16822 (SOME_BUFFER_LOCAL_VALUEP, GC_SOME_BUFFER_LOCAL_VALUEP): Remove.
16823
16824 * alloc.c (free_misc): Use XMISCTYPE.
16825 (live_misc_p, gc_sweep): Use Lisp_Misc_Any.
16826
16827 2007-10-17 Glenn Morris <rgm@gnu.org>
16828
16829 * minibuf.c (Qcompletion_ignore_case): New Lisp_Object.
16830 (syms_of_minibuf): Add Qcompletion_ignore_case.
16831 * dired.c (Qcompletion_ignore_case): Change to external.
16832 (syms_of_dired) [VMS]: Remove Qcompletion_ignore_case.
16833 * fileio.c (Qcompletion_ignore_case): New external Lisp_Object.
16834 (Fread_file_name): Use it rather than intern'ing.
16835
16836 * coding.c (Qcompletion_ignore_case): New external Lisp_Object.
16837 (Fread_coding_system): Ignore case of user input.
16838
16839 2007-10-16 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
16840
16841 * xdisp.c (handle_display_prop): Ignore display specs after
16842 replacing one when string text is being replaced.
16843 (handle_single_display_spec): Pretend as if characters with display
16844 property haven't been consumed only when buffer text is being replaced.
16845
16846 2007-10-16 Stefan Monnier <monnier@iro.umontreal.ca>
16847
16848 * xfns.c (Fx_create_frame, Fx_display_list):
16849 * window.c (window_fixed_size_p, enlarge_window)
16850 (shrink_window_lowest_first):
16851 * macterm.c (init_font_name_table):
16852 * macfns.c (Fx_create_frame, Fx_display_list):
16853 * lread.c (close_load_descs):
16854 * keyboard.c (read_char_x_menu_prompt):
16855 * fns.c (Fmember, Fmemql, Fdelete, Fset_char_table_parent):
16856 * coding.c (code_convert_region_unwind): Test the type of an object
16857 rather than just !NILP before extracting data from it.
16858
16859 * alloc.c (Fpurecopy): Set the pvec tag on pseudo vectors.
16860
16861 * lisp.h (enum Lisp_Misc_Type): Del Lisp_Misc_Some_Buffer_Local_Value.
16862 (XMISCANY): New macro.
16863 (XMISCTYPE): Use it.
16864 (struct Lisp_Misc_Any): New type.
16865 (union Lisp_Misc): Use it.
16866 (struct Lisp_Buffer_Local_Value): Add `local_if_set' bit.
16867 * data.c (Fboundp, store_symval_forwarding, swap_in_global_binding)
16868 (find_symbol_value, set_internal, default_value, Fset_default)
16869 (Fmake_variable_buffer_local, Fmake_local_variable)
16870 (Fkill_local_variable, Fmake_variable_frame_local, Flocal_variable_p)
16871 (Flocal_variable_if_set_p, Fvariable_binding_locus):
16872 The SOME_BUFFER_LOCAL_VALUEP distinction is replaced by local_if_set.
16873 * alloc.c (allocate_buffer): Set the size and tag.
16874 (allocate_misc, mark_maybe_object, mark_object, survives_gc_p):
16875 Use XMISCANY.
16876 (die): Follow the GNU convention for error messages.
16877 * print.c (print_object): SOME_BUFFER_LOCAL_VALUEP -> local_if_set.
16878 * buffer.c (Fget_buffer_create, Fmake_indirect_buffer): Don't set the
16879 tag any more.
16880 (set_buffer_internal_1):
16881 * frame.c (store_frame_param):
16882 * eval.c (specbind):
16883 * xdisp.c (select_frame_for_redisplay): Drop SOME_BUFFER_LOCAL_VALUEP.
16884
16885 * doc.c (Fsnarf_documentation): Simplify.
16886
16887 2007-10-14 Juanma Barranquero <lekktu@gmail.com>
16888
16889 * w32term.c (w32_font_is_double_byte, my_create_scrollbar): Make static.
16890 (syms_of_w32term) <w32-enable-unicode-output>: Fix typo in docstring.
16891
16892 2007-10-14 Stefan Monnier <monnier@iro.umontreal.ca>
16893
16894 * buffer.c (Fmake_indirect_buffer): Set the buffer's tag.
16895
16896 2007-10-14 Juanma Barranquero <lekktu@gmail.com>
16897
16898 * eval.c (do_autoload): Don't save autoloads.
16899
16900 * data.c (Ffset): Save autoload of the function being set.
16901
16902 2007-10-07 John Paul Wallington <jpw@pobox.com>
16903
16904 * xfns.c (x_create_tip_frame): Set the `display-type' frame
16905 parameter before setting up faces.
16906
16907 2007-10-13 Eli Zaretskii <eliz@gnu.org>
16908
16909 * ccl.c (Fregister_code_conversion_map):
16910 * keyboard.c (append_tool_bar_item): Reformat last change.
16911
16912 * lisp.h (eabs): Rename from `abs'. All callers changed.
16913
16914 2007-10-05 Dmitry Antipov <dmantipov@yandex.ru>
16915
16916 * buffer.c (add_overlay_mod_hooklist):
16917 * ccl.c (Fregister_ccl_program, Fregister_code_conversion_map):
16918 * fontset.c (make_fontset):
16919 * keyboard.c (GROW_RAW_KEYBUF, menu_bar_items, menu_bar_item)
16920 (append_tool_bar_item):
16921 * macmenu.c (grow_menu_items):
16922 * w32menu.c (grow_menu_items):
16923 * xmenu.c (grow_menu_items): Use larger_vector.
16924
16925 2007-10-13 Eli Zaretskii <eliz@gnu.org>
16926
16927 * msdos.c (dos_rawgetc): Undo last change (there's no ``leaving
16928 selected frame'' on MSDOS).
16929
16930 2007-10-12 Martin Rudalics <rudalics@gmx.at>
16931
16932 * frame.c (Qexplicit_name): New variable.
16933 (x_report_frame_params): Report it in parameter alist.
16934 (syms_of_frame): Intern and staticpro it.
16935
16936 2007-10-10 Patrick Mahan <mahan@mahan.org> (tiny change)
16937
16938 * macfns.c (x_create_tip_frame): Set terminal for frame.
16939
16940 2007-10-10 Stefan Monnier <monnier@iro.umontreal.ca>
16941
16942 * frame.c (Qenvironment): Remove.
16943 (syms_of_frame) <Qenvironment>: Don't initialize.
16944 (Fdelete_frame): Don't treat the `environment' param specially.
16945 * frame.h (Qenvironment): Don't declare.
16946 * callproc.c (set_initial_environment): Don't set unused frame param.
16947
16948 * frame.c (Fframe_with_environment): Remove.
16949 (syms_of_frame) <Sframe_with_environment>: Don't declare.
16950
16951 * lisp.h (Fframe_with_environment): Don't declare.
16952
16953 2007-10-10 Juanma Barranquero <lekktu@gmail.com>
16954
16955 * indent.c (indent_tabs_mode, last_known_column)
16956 (last_known_column_modified): Make static.
16957 (syms_of_indent) <indent-tabs-mode>: Remove redundant info in docstring.
16958
16959 2007-10-10 Katsumi Yamaoka <yamaoka@jpl.org>
16960
16961 * puresize.h (BASE_PURESIZE): Increase to 1170000.
16962
16963 2007-10-09 Jason Rumney <jasonr@gnu.org>
16964
16965 * w32term.c (x_set_window_size): Disable code that attempts to tell
16966 Lisp code about a size change before it actually happens.
16967
16968 2007-10-09 Richard Stallman <rms@gnu.org>
16969
16970 * xdisp.c (handle_invisible_prop): After setting up an ellipsis,
16971 return HANDLED_RETURN.
16972
16973 2007-10-08 Martin Rudalics <rudalics@gmx.at>
16974
16975 * keyboard.c (kbd_buffer_get_event): Break loop waiting for input
16976 when there's an unread command event.
16977
16978 * frame.c (focus_follows_mouse): Move here from frame.el to allow
16979 window autoselection act appropriately when leaving selected frame.
16980 (syms_of_frame): Initialize focus_follows_mouse.
16981 * frame.h (focus_follows_mouse): Extern it.
16982 * macterm.c (XTread_socket): When focus_follows_mouse is nil
16983 make SELECT_WINDOW_EVENT only if we don't leave the selected frame.
16984 * msdos.c (dos_rawgetc): Likewise.
16985 * w32term.c (w32_read_socket): Likewise.
16986 * xterm.c (handle_one_xevent): Likewise.
16987 * xdisp.c (syms_of_xdisp): In doc-string of
16988 mouse-autoselect-window mention focus-follows-mouse.
16989
16990 2007-10-08 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
16991
16992 * macterm.c (mac_load_query_font): Fix missing return value.
16993 [USE_CG_DRAWING] (mac_define_fringe_bitmap, mac_destroy_fringe_bitmap):
16994 Add BLOCK_INPUT.
16995
16996 2007-10-08 Richard Stallman <rms@gnu.org>
16997
16998 * xdisp.c (get_window_cursor_type): Implement documented behavior
16999 for cursor-in-non-selected-windows = t.
17000
17001 2007-10-08 Jason Rumney <jasonr@gnu.org>
17002
17003 * w32.c (w32_get_resource): Always close registry keys.
17004
17005 2007-10-08 Jason Rumney <jasonr@gnu.org>
17006
17007 * makefile.w32-in (LIBS): Add COMCTL32.
17008
17009 * w32fns.c (globals_of_w32fns): Init common controls.
17010
17011 2007-10-08 Richard Stallman <rms@gnu.org>
17012
17013 * image.c (our_memory_buffer): Rename from omfib_buffer.
17014
17015 2007-10-08 Richard Stallman <rms@gnu.org>
17016
17017 * buffer.c (Foverlays_at): Doc fix.
17018
17019 2007-10-08 Stefan Monnier <monnier@iro.umontreal.ca>
17020
17021 * fns.c (Fplist_put): Preserve uneven tail data.
17022
17023 2007-10-08 Peter O'Gorman <bug-gnu-emacs@mlists.thewrittenword.com> (tiny change)
17024
17025 * termhooks.h (enum event_kind): Remove trailing comma.
17026
17027 * frame.h (enum): Remove trailing comma.
17028
17029 2007-10-08 Dhruva Krishnamurthy <dhruvakm@gmail.com> (tiny change)
17030
17031 * w32proc.c (delete_child): Don't terminate threads of zombies.
17032
17033 2007-10-08 Martin Rudalics <rudalics@gmx.at>
17034
17035 * keyboard.h (struct kboard): New elt Vlast_repeatable_command.
17036
17037 * keyboard.c (syms_of_keyboard): Set up new Lisp variable
17038 last-repeatable-command.
17039 (init_kboard): Initialize Vlast_repeatable_command.
17040 (command_loop_1): Set it to real_this_command unless that was
17041 bound to an input event.
17042 (mark_kboards): Mark it.
17043
17044 2007-10-08 Richard Stallman <rms@gnu.org>
17045
17046 * eval.c (condition-case): Doc fix.
17047
17048 2007-10-08 Masatake YAMATO <jet@gyve.org>
17049
17050 * xfaces.c (tty_supports_face_attributes_p): Fix code
17051 for LFACE_INVERSE_INDEX and LFACE_BACKGROUND_INDEX; code
17052 was copied and not edited.
17053
17054 2007-10-09 Stefan Monnier <monnier@iro.umontreal.ca>
17055
17056 Add new `input-decode-map' keymap and use it for terminal
17057 escape sequences.
17058 * keyboard.h (struct kboard): Add Vinput_decode_map.
17059 Remove Vlocal_key_translation_map.
17060 * keyboard.c (read_key_sequence): Add support for input-decode-map.
17061 (init_kboard): Init input-decode-map.
17062 Replace local-key-translation-map back with key-translation-map.
17063 (syms_of_keyboard): Declare input-decode-map.
17064 Remove local-key-translation-map. Update docstrings.
17065 (mark_kboards): Mark Vinput_decode_map.
17066 Don't mark Vlocal_key_translation_map.
17067 * keymap.c (Fdescribe_buffer_bindings): Describe input-decode-map.
17068 Replace local-key-translation-map back with key-translation-map.
17069 * term.c (term_get_fkeys_1, CONDITIONAL_REASSIGN):
17070 Bind in input-decode-map rather than function-key-map.
17071
17072 * lisp.h (XSETPSEUDOVECTOR): Don't set the tag anymore.
17073 This was made redundant by the previous introduction of XSETPVECTYPE.
17074
17075 2007-10-09 Richard Stallman <rms@gnu.org>
17076
17077 * image.c (free_bitmap_record): Rename from Free_Bitmap_Record.
17078
17079 2007-09-29 Richard Stallman <rms@gnu.org>
17080
17081 * eval.c (internal_condition_case_2, internal_condition_case_1)
17082 (internal_condition_case): Reenable abort if x_catching_errors ()
17083 to see if that really happens and why.
17084
17085 2007-10-06 Andreas Schwab <schwab@suse.de>
17086
17087 * fileio.c (Fwrite_region): Ignore EINVAL error from fsync.
17088
17089 2007-10-04 Juanma Barranquero <lekktu@gmail.com>
17090
17091 * image.c (syms_of_image) <image-types>: Fix typo in docstring.
17092
17093 2007-10-03 Stefan Monnier <monnier@iro.umontreal.ca>
17094
17095 * frame.h (struct frame): Don't try to GC-mark menu_bar_items_used.
17096
17097 2007-10-02 Stefan Monnier <monnier@iro.umontreal.ca>
17098
17099 * window.h (struct window):
17100 * window.c (struct save_window_data, struct saved_window):
17101 * termhooks.h (struct terminal):
17102 * process.h (struct Lisp_Process):
17103 * frame.h (struct frame):
17104 * buffer.h (struct buffer):
17105 * lisp.h (struct Lisp_Vector, struct Lisp_Char_Table)
17106 (struct Lisp_Bool_Vector, struct Lisp_Subr, struct Lisp_Hash_Table):
17107 The size field of (pseudo)vectors is now unsigned.
17108 (ARRAY_MARK_FLAG, PSEUDOVECTOR_FLAG): Simplify accordingly.
17109
17110 * lisp.h (struct Lisp_Hash_Table): Move non-traced elements at the end.
17111 Turn `count' into an integer.
17112
17113 * fns.c (make_hash_table, hash_put, hash_remove, hash_clear)
17114 (sweep_weak_table, sweep_weak_hash_tables, Fhash_table_count):
17115 * print.c (print_object) <HASH_TABLE_P>: `count' is an int.
17116 * alloc.c (allocate_hash_table): Use ALLOCATE_PSEUDOVECTOR.
17117 (mark_object) <HASH_TABLE_P>: Use mark_vectorlike.
17118
17119 * alloc.c (allocate_pseudovector): New fun.
17120 (ALLOCATE_PSEUDOVECTOR): New macro.
17121 (allocate_window, allocate_terminal, allocate_frame)
17122 (allocate_process): Use it.
17123 (mark_vectorlike): New function.
17124 (mark_object) <FRAMEP, WINDOWP, BOOL_VECTOR_P, VECTORP>: Use it.
17125 (mark_terminals): Use it.
17126 (Fmake_bool_vector, Fmake_char_table, make_sub_char_table)
17127 (Fmake_byte_code): Use XSETPVECTYPE.
17128
17129 * frame.c (Fframe_parameters): Minor simplification.
17130
17131 * insdel.c (adjust_markers_for_insert): Generalize assertion checks.
17132
17133 * marker.c (Fmarker_buffer): Make test for odd case into a failure.
17134
17135 * buffer.c (Fget_buffer_create, init_buffer_once):
17136 * lread.c (defsubr):
17137 * window.c (Fcurrent_window_configuration): Use XSETPVECTYPE.
17138
17139 * lisp.h (ARRAY_MARK_FLAG, PSEUDOVECTOR_FLAG): Don't let them be
17140 defined differently in the m/*.h files.
17141 (XCHAR_TABLE, XBOOL_VECTOR): Add assertion checking.
17142 (XSETPVECTYPE): New macro.
17143 (XSETPSEUDOVECTOR): Use it.
17144
17145 * buffer.c (syms_of_buffer) <local-abbrev-table>: Move from abbrev.c.
17146 (DEFVAR_PER_BUFFER, defvar_per_buffer): Move from lisp.h and lread.c.
17147
17148 * lisp.h (defvar_per_buffer, DEFVAR_PER_BUFFER):
17149 * lread.c (defvar_per_buffer):
17150 * abbrev.c (syms_of_abbrev) <local-abbrev-tabl>: Move to buffer.c.
17151
17152 * window.c (candidate_window_p): Only consider as visible frames that
17153 are on the same terminal.
17154
17155 * m/ibms390x.h (MARKBIT): Remove unused macro.
17156
17157 2007-10-01 Juanma Barranquero <lekktu@gmail.com>
17158
17159 * lread.c (Fload): Fix typo in docstring.
17160
17161 2007-10-01 Michaël Cadilhac <michael@cadilhac.name>
17162
17163 * floatfns.c (Fexpt): Manually check for overflows, so that a power
17164 of a non-zero value can't yield zero.
17165
17166 2007-09-29 Stefan Monnier <monnier@iro.umontreal.ca>
17167
17168 * term.c (term_clear_mouse_face, term_mouse_highlight)
17169 (tty_write_glyphs_with_face): Only define is HAVE_GPM.
17170
17171 * print.c (safe_debug_print): Use XHASH.
17172
17173 * lisp.h (DECL_ALIGN, USE_LSB_TAG): Move logic to before definition of
17174 Lisp elements such as tags.
17175 (XHASH): New macro.
17176 (EQ): Use it.
17177 (SREF, SSET, STRING_COPYIN): Use SDATA.
17178 (VOID_TO_LISP, CVOID_TO_LISP, LISP_TO_VOID, LISP_TO_CVOID): Remove.
17179
17180 * alloc.c (mark_terminal): Remove left-over declaration.
17181 (enum mem_type): Replace all vector subtypes -> MEM_TYPE_VECTORLIKE.
17182 (allocate_vectorlike): Remove type argument. Adjust callers.
17183 (live_vector_p, mark_maybe_pointer, valid_lisp_object_p):
17184 Only handle the one remaining MEM_TYPE_VECTORLIKE.
17185
17186 * alloc.c (MALLOC_BLOCK_INPUT, MALLOC_UNBLOCK_INPUT): New macros
17187 to avoid unnecessary BLOCK_INPUTs when SYNC_INPUT is used.
17188 (xmalloc, xrealloc, xfree, lisp_malloc, lisp_free, lisp_align_malloc)
17189 (lisp_align_free, make_interval, allocate_string, allocate_string_data)
17190 (make_float, Fcons, allocate_vectorlike, Fmake_symbol, allocate_misc):
17191 Use them.
17192
17193 * xfaces.c (load_face_font, free_realized_face, clear_face_gcs):
17194 Don't let signal handlers run when a GC is freed but not yet NULL'ed.
17195 (x_free_gc): Remove BLOCK_INPUT since it's now redundant.
17196
17197 2007-09-28 Dan Nicolaescu <dann@ics.uci.edu>
17198
17199 * Makefile.in (lisp, shortlisp): Delete server.elc, it is not
17200 loaded by default.
17201
17202 2007-09-28 Stefan Monnier <monnier@iro.umontreal.ca>
17203
17204 * term.c (Fgpm_mouse_start): Don't signal an error if already activated
17205 on this tty.
17206 (Fgpm_mouse_stop): Only deactivate if it was activated on this tty.
17207
17208 * term.c (mouse_face_window): Rename from Qmouse_face_window.
17209 Update all users.
17210 (handle_one_term_event): Use Gpm_DrawPointer.
17211 (Fgpm_mouse_start): Rename from Fterm_open_connection.
17212 Signal errors instead of returning nil. Always return nil.
17213 (Fgpm_mouse_stop): Rename from Fterm_close_connection.
17214 Make it a noop if gpm-mouse was not activated.
17215 (syms_of_term): Update names.
17216
17217 2007-09-27 Stefan Monnier <monnier@iro.umontreal.ca>
17218
17219 * sysdep.c (narrow_foreground_group, widen_foreground_group): Static.
17220 (init_sys_modes): Check that gpm_tty is the current tty.
17221
17222 * alloc.c (allocate_terminal): Set the vector size to only count the
17223 lisp fields. Initialize those to nil.
17224 (mark_object): Don't treat terminals specially.
17225 (mark_terminal): Remove.
17226 (mark_terminals): Use mark_object instead.
17227
17228 * termhooks.h (struct terminal): Move all Lisp_Object fields traced by
17229 the GC to the beginning.
17230
17231 * indent.h:
17232 * indent.c: Use EMACS_INT for ints coming from Elisp data.
17233
17234 * indent.c (Fmove_to_column): Use EMACS_INT for buffer positions.
17235
17236 2007-09-25 Jason Rumney <jasonr@gnu.org>
17237
17238 * frame.c (make_terminal_frame): Remove special case for WINDOWSNT.
17239
17240 * w32console.c (create_w32cons_output): Remove.
17241
17242 * term.c (init_tty): Call init_sys_modes on WINDOWSNT also.
17243
17244 * sysdep.c (init_sys_modes): Use set_terminal_modes_hook.
17245 (reset_sys_modes): Use reset_terminal_modes_hook.
17246
17247 2007-09-24 Stefan Monnier <monnier@iro.umontreal.ca>
17248
17249 * eval.c (do_autoload): Don't output any message.
17250
17251 2007-09-24 Juri Linkov <juri@jurta.org>
17252
17253 * emacs.c (standard_args): Change priority of "--no-splash"
17254 from 40 to 3. Add "--no-desktop" with the same priority.
17255
17256 2007-09-23 Dmitry Antipov <dmantipov@yandex.ru>
17257
17258 * alloc.c (gc_sweep): Check cons cell mark bits word by word
17259 and optimize the case where they are all 1.
17260
17261 2007-09-23 Johannes Weiner <hannes@saeurebad.de>
17262
17263 * lisp.h (abs): Define if not defined.
17264 * keyboard.c, sound.c, w32term.c, xfaces.c, xterm.c:
17265 Don't define `abs', since it's defined in lisp.h.
17266
17267 2007-09-22 Eli Zaretskii <eliz@gnu.org>
17268
17269 * term.c (DEV_TTY): New macro. Provide a definition for MS-Windows.
17270 (FRAME_TERMCAP_P) [WINDOWSNT]: Don't define to zero.
17271 (Fcontrolling_tty_p, Fresume_tty, dissociate_if_controlling_tty)
17272 (init_tty): Use DEV_TTY instead of "/dev/tty".
17273 [WINDOWSNT]: No need to protect from NAME arg being null.
17274
17275 2007-09-21 Dan Nicolaescu <dann@ics.uci.edu>
17276
17277 * term.c (Fsuspend_tty): Run suspend-tty-functions before cleaning
17278 up the tty state.
17279
17280 2007-09-21 Stefan Monnier <monnier@iro.umontreal.ca>
17281
17282 * termhooks.h (term_gpm): Delete. Use gpm_tty's NULLness instead.
17283 (gpm_tty): Change its type.
17284 * term.c (term_gpm): Delete. Use gpm_tty's NULLness instead.
17285 (gpm_tty): Change its type and initialize it.
17286 (Fterm_open_connection): Check the frame is indeed a tty.
17287 Use the new gpm_tty.
17288 (Fterm_close_connection): Use the new gpm_tty.
17289 * keyboard.c (tty_read_avail_input): Use the new gpm_tty.
17290 * sysdep.c (init_sys_modes): term_gpm -> gpm_tty.
17291
17292 2007-09-21 Juanma Barranquero <lekktu@gmail.com>
17293
17294 * w32term.c (x_draw_glyph_string): Use strike_through_color, not
17295 underline_color, to draw strike-through.
17296
17297 2007-09-21 Stefan Monnier <monnier@iro.umontreal.ca>
17298
17299 * lisp.h (allocate_terminal): Declare.
17300
17301 * window.c (candidate_window_p): Consider frames that are being placed
17302 by the user as somewhere between visible and iconified.
17303 (window_loop): Prefer windows on the current frame.
17304 (Fselect_window): Move the use of select-frame to the beginning so we
17305 can just delegate all the work (it'll call us back anyway).
17306
17307 * frame.c (Qdisplay_environment_variable):
17308 * frame.h (Qdisplay_environment_variable): Delete.
17309
17310 * .gdbinit (xbacktrace): Print the arg's address rather than the value
17311 of the first arg, since that value may be a union.
17312
17313 * callproc.c (child_setup, getenv_internal): Use the frame's `display'
17314 parameter rather than Qdisplay_environment_variable. If all else
17315 fails, look for DISPLAY in initial-environment.
17316
17317 2007-09-21 Glenn Morris <rgm@gnu.org>
17318
17319 * Makefile.in (emacstool): Remove target.
17320 (lisp, shortlisp): Remove termdev.elc.
17321
17322 2007-09-21 Markus Triska <markus.triska@gmx.at>
17323
17324 * xterm.c (x_delete_display): Compile session management conditionally.
17325
17326 2007-09-20 Stefan Monnier <monnier@iro.umontreal.ca>
17327
17328 * callproc.c (getenv_internal_1): New function.
17329 (getenv_internal): Use it.
17330 (Fgetenv_internal): Use it. Accept an env-list as optional arg.
17331
17332 * terminal.c (get_terminal): Don't accept ints to represent terminals.
17333 (Fterminal_name, Fterminal_parameters, Fterminal_parameter)
17334 (Fset_terminal_parameter): Work with dead terminals as well.
17335 (Fmodify_terminal_parameters): Remove.
17336
17337 * terminal.c (get_terminal): Handle terminals.
17338 Make sure the terminal returned is live.
17339 (create_terminal): Use allocate_terminal.
17340 (mark_terminals): Move to alloc.c.
17341 (delete_terminal): Use terminal->name as liveness status.
17342 NULL out fields after freeing their contents.
17343 Don't deallocate the object.
17344 (Fframe_terminal): Use FRAME_TERMINAL. Return the terminal object
17345 rather than an int.
17346 (Fterminal_live_p): Accept non-integer arguments.
17347 (Fterminal_list): Return terminal objects rather than an ints.
17348
17349 * alloc.c (enum mem_type): New member for `terminal' objects.
17350 (allocate_terminal): New function.
17351 (mark_maybe_pointer, valid_lisp_object_p, mark_object):
17352 Handle terminals.
17353 (mark_terminal): New fun.
17354 (mark_terminals): Move from terminal.c.
17355
17356 * term.c (get_tty_terminal): Don't treat output_initial specially.
17357 (Fsuspend_tty, Fresume_tty): Use terminal objects rather than ints.
17358 (delete_tty): Use terminal->name as liveness status.
17359
17360 * termhooks.h (struct terminal): Make it into a pseudovector.
17361 Remove `deleted' replaced by checking `name's nullness.
17362
17363 * print.c (print_object): Handle terminals.
17364
17365 * lisp.h (enum pvec_type): New `terminal' pseudovector.
17366 (XTERMINAL, XSETTERMINAL, TERMINALP, GC_TERMINALP): New macros.
17367
17368 * frame.c (make_terminal_frame):
17369 * keyboard.c (tty_read_avail_input):
17370 * w32term.c (x_delete_terminal):
17371 * xfns.c (Fx_create_frame, x_create_tip_frame):
17372 * xterm.c (x_delete_terminal): Use terminal->name as liveness status.
17373
17374 2007-09-20 Glenn Morris <rgm@gnu.org>
17375
17376 * process.c (Fmake_network_process): Doc fix.
17377
17378 2007-09-19 Jason Rumney <jasonr@gnu.org>
17379
17380 * dispextern.h (w32_init_fringe, mac_init_fringe): Declare rif argument.
17381
17382 2007-09-19 Michaël Cadilhac <michael@cadilhac.name>
17383
17384 * coding.c (detect_eol_type, detect_eol_type_in_2_octet_form):
17385 Fix a C warning regarding variable constness.
17386
17387 * xterm.c (handle_one_xevent): Fix a C warning.
17388
17389 2007-09-18 Jason Rumney <jasonr@gnu.org>
17390
17391 * w32fns.c (Fx_focus_frame): Rename from Fw32_focus_frame.
17392
17393 2007-09-17 Jan Djärv <jan.h.d@swipnet.se>
17394
17395 * gtkutil.c (gdpy_def): New variable.
17396 (xg_initialize): Initialize gdpy_def.
17397 (xg_display_close): If no other display exists, set gdpy_def to a
17398 new connection.
17399
17400 2007-09-16 Jan Djärv <jan.h.d@swipnet.se>
17401
17402 * gtkutil.c (xg_get_image_for_pixmap): Always create a GdkPixbuf
17403 when we have no file name for the icon.
17404 (xg_tool_bar_expose_callback): Remove.
17405 (xg_create_tool_bar): Don't connect expose signal to
17406 xg_tool_bar_expose_callback.
17407 (xg_get_file_with_chooser): Move GCPRO1 after declarations.
17408
17409 2007-09-16 Andreas Schwab <schwab@suse.de>
17410
17411 * alloc.c (reset_malloc_hooks): Set the hooks to the previous
17412 values instead of zapping them.
17413
17414 2007-09-14 Glenn Morris <rgm@gnu.org>
17415
17416 * fringe.c (init_fringe_bitmap) <swap_nibble>: Move to file scope.
17417 * gtkutil.c (xg_separator_p) <separator_names>: Move to file scope.
17418 * image.c (our_memory_fill_input_buffer) <buffer>: Move to file
17419 scope and rename to omfib_buffer for clarity.
17420 (gif_load) <interlace_start, interlace_increment>: Move to file scope.
17421
17422 2007-09-14 Kenichi Handa <handa@m17n.org>
17423
17424 * xterm.c (handle_one_xevent): Skip decoding if nbytes is zero.
17425
17426 2007-09-13 Jason Rumney <jasonr@gnu.org>
17427
17428 * fringe.c (w32_init_fringe, mac_init_fringe): Add rif argument.
17429
17430 * w32term.c (w32_term_init): Pass rif to w32_init_fringe.
17431
17432 * macterm.c (mac_initialize): Don't call mac_init_fringe here.
17433 (mac_term_init): Call here instead, passing rif.
17434
17435 2007-09-13 Glenn Morris <rgm@gnu.org>
17436
17437 * s/hpux.h: No longer define `static' as nothing.
17438
17439 2007-09-13 Johan Bockgård <bojohan@gnu.org>
17440
17441 * callint.c (Fcall_interactively): Remove unused var `fun'.
17442
17443 2007-09-12 Romain Francoise <romain@orebokech.com>
17444
17445 * window.c (prefer_window_split_horizontally, display_buffer):
17446 Revert 2007-09-08 change.
17447
17448 2007-09-12 Glenn Morris <rgm@gnu.org>
17449
17450 * alloca.c: Remove file.
17451 * Makefile.in (alloca): Do not undef.
17452 (allocaobj, alloca.o): Remove.
17453 (otherobj): Remove allocaobj.
17454 * keyboard.c (command_loop_1): Remove #ifdef C_ALLOCA block.
17455 * regex.c (C_ALLOCA): Remove all references and code that was only
17456 used when this was defined.
17457 * search.c (boyer_moore): Remove #ifdef C_ALLOCA block.
17458 * xmenu.c (xmenu_show): Remove #ifdef C_ALLOCA block.
17459 * m/ibms390x.h, m/sh3el.h (C_ALLOCA): Remove references to this.
17460
17461 * Makefile.in (SOURCES, unlock, relock): Delete.
17462
17463 * gtkutil.c (cnt): Rename to menu_grab_callback_cnt for clarity.
17464 (menu_grab_callback): All uses changed.
17465
17466 * xselect.c (cnt): Rename to x_reply_selection_request_cnt for clarity.
17467 (x_reply_selection_request): All uses changed.
17468
17469 2007-09-11 Stefan Monnier <monnier@iro.umontreal.ca>
17470
17471 * lread.c (load_warn_old_style_backquotes): Change message to look
17472 better when it appears in the middle of byte-compiler messages.
17473
17474 2007-09-10 Dan Nicolaescu <dann@ics.uci.edu>
17475
17476 * s/darwin.h (MULTI_KBOARD): Only define for Carbon.
17477
17478 * xterm.c (x_create_terminal): Add comment.
17479
17480 * term.c (clear_tty_hooks, set_tty_hooks): Add comments.
17481
17482 2007-09-10 Richard Stallman <rms@gnu.org>
17483
17484 * xterm.c (x_term_init): Give error if can't open DISPLAY_NAME.
17485
17486 2007-09-10 Michaël Cadilhac <michael@cadilhac.name>
17487
17488 * lisp.h (struct Lisp_Subr): Rename `prompt' field to `intspec'.
17489 (DEFUN): Document `intspec', use it instead of `prompt'.
17490
17491 * eval.c (Fcommandp): Change `->prompt' to `->intspec'.
17492
17493 * data.c (Finteractive_form): If the interactive specification starts
17494 with a `(', use it as a Lisp form.
17495
17496 * fileio.c (Fset_file_modes): Add an interactive spec that reads a file
17497 name and file modes.
17498
17499 * callint.c (Fcall_interactively): Comment fixes.
17500
17501 2007-09-10 Stefan Monnier <monnier@iro.umontreal.ca>
17502
17503 * callint.c (Fcall_interactively): Use Finteractive_form also for subrs
17504 and compiled functions.
17505
17506 2007-09-08 Fredrik Axelsson <f.axelsson@gmail.com>
17507
17508 * window.c (prefer_window_split_horizontally): New variable.
17509 (display_buffer): Consider splitting window horizontally depending
17510 on prefer_window_split_horizontally.
17511
17512 2007-09-08 Eli Zaretskii <eliz@gnu.org>
17513
17514 * sysdep.c [WINDOWSNT]: Don't include sysselect.h.
17515
17516 2007-09-07 Stefan Monnier <monnier@iro.umontreal.ca>
17517
17518 * s/cygwin.h (GC_MARK_STACK): Enable conservative stack marking.
17519
17520 * frame.c (x_set_frame_parameters): Check number is positive before
17521 using XFASTINT.
17522
17523 * window.c (freeze_window_start): Don't presume selected_window holds
17524 a window object.
17525 (Fdisplay_buffer): Remove `register' since `buffer' needs to be gcpro'd.
17526
17527 2007-09-07 Angelo Graziosi <Angelo.Graziosi@roma1.infn.it> (tiny change)
17528
17529 * term.c (dissociate_if_controlling_tty): Call setsid on CYGWIN.
17530
17531 2007-09-07 Stefan Monnier <monnier@iro.umontreal.ca>
17532
17533 * window.c (Vsplit_window_preferred_function): New var.
17534 (Fdisplay_buffer): Use it.
17535 (syms_of_window): Export, and initialize it.
17536
17537 2007-09-06 Pixel <pixel@mandriva.com> (tiny change)
17538
17539 * image.c (gif_load): Fix bug: Handle nonexistent colormap.
17540
17541 2007-09-06 Glenn Morris <rgm@gnu.org>
17542
17543 * gtkutil.c (menu_grab_callback) <cnt>:
17544 * xselect.c (x_reply_selection_request) <cnt>: Move static
17545 variable to file scope.
17546
17547 2007-09-06 Stefan Monnier <monnier@iro.umontreal.ca>
17548
17549 * xdisp.c (redisplay_internal): Make sure Elisp code always sees
17550 consistent values of selected_frame and selected_window.
17551
17552 2007-09-04 Jason Rumney <jasonr@gnu.org>
17553
17554 * w32console.c (initialize_w32_display): Zero unused hooks.
17555
17556 2007-09-04 Dan Nicolaescu <dann@ics.uci.edu>
17557
17558 * term.c (Vsuspend_tty_functions, Vresume_tty_functions)
17559 (syms_of_term, Fsuspend_tty, Fresume_tty): Undo previous change.
17560
17561 2007-09-04 Jason Rumney <jasonr@gnu.org>
17562
17563 * term.c (init_tty) [WINDOWSNT]: Add hooks that are not accessible
17564 in w32console.c. Set up input. Remove XXX comments that have been
17565 confirmed as correct.
17566
17567 * s/ms-w32.h (MULTI_KBOARD): Define.
17568
17569 * w32console.c (one_and_only_w32cons): Remove.
17570 (initialize_w32_display): Take terminal argument.
17571
17572 * term.c (init_tty) [WINDOWSNT]: Pass terminal to
17573 initialize_w32_display.
17574 (init_tty) [MULTI_KBOARD]: Include this code on WINDOWSNT too.
17575
17576 * termhooks.h (enum event_kind) <HORIZ_WHEEL_EVENT>: New event.
17577
17578 * keyboard.c (discard_mouse_events): Discard it.
17579 (make_lispy_event): Translate it to a lisp event.
17580 (lispy_wheel_names): Add wheel-left and right events.
17581 (syms_of_keyboard): Enlarge wheel_syms.
17582
17583 * w32fns.c (w32_wnd_proc) <WM_DROPFILES>: Merge with WM_MOUSEWHEEL.
17584 <WM_MOUSEHWHEEL>: Pass new system message to lisp.
17585
17586 * w32term.h (WM_MOUSEHWHEEL): Define if system headers don't.
17587
17588 * w32term.c (construct_mouse_wheel): Make HORIZ_WHEEL_EVENT
17589 from WM_MOUSEHWHEEL.
17590 (w32_read_socket) <WM_MOUSEHWHEEL>: Treat as WM_MOUSEWHEEL.
17591
17592 * w32fns.c (x_create_tip_frame) [MULTI_KBOARD]: Get keyboard from
17593 terminal.
17594
17595 * w32term.c (w32_create_terminal) [MULTI_KBOARD]: Create a new
17596 keyboard for the terminal.
17597
17598 2007-09-04 Dan Nicolaescu <dann@ics.uci.edu>
17599
17600 * term.c (Vsuspend_tty_hook): Rename from Vsuspend_tty_functions.
17601 (Vresume_tty_hook): Rename from Vresume_tty_functions.
17602 (syms_of_term): Rename suspend-tty-functions to suspend-tty-hook
17603 and resume-tty-function to resume-tty-hook.
17604 (Fsuspend_tty, Fresume_tty): Use new names.
17605
17606 2007-09-02 Jan Djärv <jan.h.d@swipnet.se>
17607
17608 * gtkutil.c (update_frame_tool_bar): Handle stock name as a named icon
17609 if it starts with "n:".
17610
17611 2007-08-31 Jan Djärv <jan.h.d@swipnet.se>
17612
17613 * gtkutil.c (update_frame_tool_bar): Initialize wbutton to NULL.
17614
17615 2007-08-31 Stefan Monnier <monnier@iro.umontreal.ca>
17616
17617 * frame.h:
17618 * frame.c (Qterm_environment_variable): Remove.
17619 (syms_of_frame): Don't init and staticpro it.
17620
17621 * callproc.c (getenv_internal): Remove special case for $TERM.
17622
17623 * callproc.c (Vinitial_environment): New variable.
17624 (set_initial_environment): Initialize it.
17625 (syms_of_callproc): Declare it.
17626 (child_setup): Don't mess with TERM via Qterm_environment_variable; the
17627 TERM under which a process runs is never related to the TERM in which
17628 Emacs is running.
17629
17630 2007-08-29 Dan Nicolaescu <dann@ics.uci.edu>
17631
17632 * config.in (HAVE_WINDOW_SYSTEM): Don't undef MULTI_KBOARD here...
17633 * s/darwin.h: ... do it here.
17634
17635 2007-08-29 Stefan Monnier <monnier@iro.umontreal.ca>
17636
17637 * lisp.h (set_initial_environment): Rename from set_global_environment.
17638
17639 * Makefile.in (${etc}DOC): Re-add a ${EXEEXT} which seems to have been
17640 removed by mistake on the multi-tty branch.
17641
17642 * frame.c (make_terminal_frame): Yet Another Int/Lisp_Object Mixup.
17643 (Fmodify_frame_parameters): Return a value.
17644
17645 * image.c (png_load): Comment-out var only used in commented-out code.
17646
17647 * term.c (mark_ttys): Don't bother checking top_frame (incorrectly)
17648 before passing it to mark_object.
17649
17650 * xfaces.c (internal_resolve_face_name): Return a value.
17651 (internal_resolve_face_name, resolve_face_name_error): Comment out.
17652
17653 * xfns.c (check_x_display_info): Yet Another Int/Lisp_Object Mixup.
17654 (x_icon): Comment-out var only used in commented-out code.
17655
17656 2007-08-29 Romain Francoise <romain@orebokech.com>
17657
17658 * keyboard.c (Fset_input_mode): Don't call `Fset_quit_char' if
17659 QUIT hasn't been provided.
17660
17661 2007-08-29 Dan Nicolaescu <dann@ics.uci.edu>
17662
17663 * callproc.c (child_setup, getenv_internal): Use the
17664 display-environment-variable and term-environment-variable frame params.
17665 (set_initial_environment): Initialise Vprocess_environment.
17666
17667 * config.in: Disable multi-keyboard support on a mac.
17668
17669 * frame.c (Qterm_environment_variable)
17670 (Qdisplay_environment_variable): New variables.
17671 (syms_of_frame): Intern and staticpro them.
17672 (Fmake_terminal_frame): Disable output method test.
17673
17674 * frame.h: Declare them here.
17675
17676 * macfns.c (x_set_mouse_color): Get rif from the frame.
17677 (x_set_tool_bar_lines): Don't use updating_frame.
17678 (mac_window): Add 2 new parameters for consistency with other systems.
17679 (Fx_create_frame): Fix doc string. Rename the parameter. Set the
17680 frame parameters following what is done in X11 and w32. Don't use
17681 FRAME_MAC_DISPLAY_INFO.
17682 (Fx_open_connection, start_hourglass): Remove window-system check.
17683 (x_create_tip_frame): Get the keyboard from the terminal.
17684
17685 * macmenu.c: Reorder includes.
17686 (Fx_popup_menu): Use terminal specific mouse_position_hook.
17687
17688 * macterm.c (XTset_terminal_modes, XTreset_terminal_modes): Add a
17689 terminal parameter.
17690 (x_clear_frame): Add a frame parameter.
17691 (note_mouse_movement): Get rif from the frame.
17692 (mac_term_init): Initialize the terminal.
17693 (mac_initialize): Make static and move terminal initialization ...
17694 (mac_create_terminal): ... to this new function.
17695
17696 * macterm.h (struct mac_display_info): Add terminal.
17697 (mac_initialize): Delete declaration.
17698
17699 * puresize.h (BASE_PURESIZE): Increase base value to 1164000.
17700
17701 * sysdep.c: Comment out text after #endif.
17702
17703 * term.c (init_tty): Only use terminal->kboard when MULTI_KBOARD
17704 is defined. Better initialize ttys in windows. Use terminal
17705 specific mouse_position_hook.
17706
17707 * termhooks.h (union display_info): Add mac_display_info.
17708
17709 * w32fns.c (Fx_create_frame): Use kboard from the terminal.
17710 Set the default minibuffer frame, window_system and the rest of the
17711 frame parameters following what is done in X11.
17712
17713 * w32term.c (w32_initialize): Make static.
17714
17715 * xselect.c (x_handle_selection_clear): Only access
17716 terminal->kboard when MULTI_KBOARD is defined.
17717
17718 * s/darwin.h (SYSTEM_PURESIZE_EXTRA): Define here.
17719 (SYSTEM_PURESIZE_EXTRA): Only define on Carbon.
17720
17721 2007-08-29 Jason Rumney <jasonr@gnu.org>
17722
17723 * frame.c (Fdelete_frame): Only get kboard when MULTI_KBOARD defined.
17724 (make_terminal_frame) [WINDOWSNT]: Initialize terminal.
17725
17726 * fringe.c (w32_init_fringe w32_reset_fringes) [HAVE_NTGUI]:
17727 (mac_init_fringe) [MAC_OS]: Get rif from selected_frame.
17728
17729 * keyboard.c (restore_kboard_configuration): Only define when
17730 MULTI_KBOARD defined.
17731
17732 * makefile.w32-in: Update dependancies from Makefile.in.
17733 (OBJ1): Add terminal.$(O)
17734
17735 * term.c (dissociate_if_controlling_tty) [WINDOWSNT]:
17736 Don't define function body.
17737 (init_tty) [WINDOWSNT]: Use selected_frame for initializing.
17738
17739 * termhooks.h (display_info) [WINDOWSNT]: Add w32.
17740
17741 * w32.c (request_sigio, unrequest_sigio): Remove.
17742
17743 * w32console.c (w32con_move_cursor, w32con_clear_to_end)
17744 (w32con_clear_frame, w32con_clear_end_of_line)
17745 (w32con_ins_del_lines, w32con_insert_glyphs, w32con_write_glyphs)
17746 (w32con_delete_glyphs, w32con_set_terminal_window)
17747 (scroll_line, w32_sys_ring_bell): Add frame arg.
17748 (w32con_set_terminal_modes, w32con_reset_terminal_modes):
17749 Add terminal arg.
17750 (PICK_FRAME): Remove.
17751 (w32con_write_glyphs): Use frame specific terminal coding.
17752 (one_and_only_w32cons): New global variable.
17753 (initialize_w32_display): Use it for storing hooks.
17754 (create_w32cons_output): New function.
17755
17756 * w32inevt.c, w32inevt.h (w32_console_read_socket): Make first
17757 arg a frame.
17758
17759 * w32fns.c (x_create_tip_frame): Set terminal and ref count.
17760 Set window_system.
17761 (x_set_tool_bar_lines): Don't use updating_frame.
17762 (Fx_create_frame): Set terminal and ref count.
17763 (Fx_open_connection): Remove window-system check.
17764
17765 * w32menu.c (Fx_popup_menu): Use terminal specific mouse_position_hook.
17766
17767 * w32term.c (w32_term_init): Call add_keyboard_wait_descriptor.
17768 (w32_set_terminal_modes, w32_reset_terminal_modes): Add terminal arg.
17769 (x_clear_frame, x_delete_glyphs, w32_ring_bell, x_ins_del_lines):
17770 Add frame arg.
17771 (x_delete_terminal, w32_create_terminal): New functions.
17772 (w32_term_init): Create a terminal.
17773 (w32_initialize): Move terminal specific initialization to
17774 w32_create_terminal.
17775
17776 * w32term.h (x_output): Remove foreground_pixel and background_pixel.
17777 (w32_clear_rect, w32_clear_area): Use background from frame.
17778 (w32_display_info): Add terminal.
17779 (w32_sys_ring_bell, x_delete_display): Declare here.
17780
17781 * xdisp.c (display_menu_bar) [HAVE_NTGUI]: Check frame type.
17782
17783 * s/ms-w32.h (SYSTEM_PURESIZE_EXTRA): Bump to 50k.
17784
17785 2007-08-29 Kalle Olavi Niemitalo <kon@iki.fi> (tiny change)
17786
17787 * keyboard.c (interrupt_signal, handle_interrupt, Fset_quit_char):
17788 Fix get_named_tty calls for the controlling tty.
17789
17790 2007-08-29 ARISAWA Akihiro <ari@mbf.ocn.ne.jp> (tiny change)
17791
17792 * term.c (dissociate_if_controlling_tty)[USG]: Fix parse error.
17793
17794 2007-08-29 Yoshiaki Kasahara <kasahara@nc.kyushu-u.ac.jp> (tiny change)
17795
17796 * term.c (tty_insert_glyphs): Add missing first parameter.
17797
17798 2007-08-29 Károly Lőrentey <karoly@lorentey.hu>
17799
17800 * buffer.c (Fbuffer_list, Fbury_buffer):
17801 Take frame->buried_buffer_list into account.
17802
17803 * cm.c (current_tty): New variable, for cmputc().
17804 (cmputc): Use it.
17805 (cmcheckmagic): Add tty parameter, look up terminal streams there.
17806 (calccost): Add tty parameter. Use emacs_tputs() instead of tputs().
17807 (cmgoto): Add tty parameter. Pass it on to calccost().
17808 Use emacs_tputs() instead of tputs().
17809
17810 * cm.h (emacs_tputs): New macro to set current_tty, and then call
17811 tputs().
17812 (current_tty): New variable, for cmputc().
17813 (cmcheckmagic, cmputc, cmgoto): Add prototypes.
17814
17815 * eval.c (unwind_to_catch): Don't call x_fully_uncatch_errors.
17816 (internal_condition_case, internal_condition_case_1)
17817 (internal_condition_case_2): Don't abort when x_catching_errors.
17818
17819 * fns.c (Fyes_or_no_p): Don't try to open an X dialog on tty terminals.
17820 (Fy_or_n_p): Likewise. Use temporarily_switch_to_single_kboard to
17821 prevent crashes caused by bogus longjmps in read_char.
17822
17823 * keymap.h (Fset_keymap_parent): Add EXFUN.
17824
17825 * macterm.h (FRAME_FOREGROUND_PIXEL, FRAME_BACKGROUND_PIXEL)
17826 * w32term.h (FRAME_FOREGROUND_PIXEL, FRAME_BACKGROUND_PIXEL):
17827 Remove redundant definition.
17828
17829 * macfns.c (x_set_mouse_color, x_make_gc):
17830 Use FRAME_BACKGROUND_PIXEL and FRAME_FOREGROUND_PIXEL.
17831
17832 * w32term.c (x_free_frame_resources):
17833 Use FRAME_BACKGROUND_PIXEL and FRAME_FOREGROUND_PIXEL.
17834 (w32_initialize): Use the accessor macros for terminal characteristics.
17835
17836 * macterm.c (mac_initialize): Use Fset_input_interrupt_mode.
17837 Use the accessor macros for terminal characteristics.
17838 * msdos.c (internal_terminal_init): Use the accessor macros for
17839 terminal characteristics.
17840 (ScreenVisualBell, internal_terminal_init):
17841 Use FRAME_BACKGROUND_PIXEL and FRAME_FOREGROUND_PIXEL.
17842
17843 * termopts.h (no_redraw_on_reenter): Declare.
17844
17845 * alloc.c (emacs_blocked_malloc): Disable mallopt call.
17846 (mark_terminals, mark_ttys): Declare.
17847 (Fgarbage_collect): Call them.
17848 (mark_object): Mark buried_buffer_list.
17849
17850 * prefix-args.c: Include stdlib.h for exit.
17851
17852 * syssignal.h: Add comment.
17853
17854 * indent.c: Include stdio.h.
17855
17856 * window.h (Vinitial_window_system): Declare.
17857 (Vwindow_system): Delete declaration.
17858
17859 * fontset.c (Finternal_char_font): Use FRAME_RIF.
17860
17861 * image.c (lookup_image): Don't initialize `c' until the xasserts
17862 have been run.
17863
17864 * gtkutil.c (xg_create_frame_widgets): Use FRAME_BACKGROUND_PIXEL and
17865 FRAME_FOREGROUND_PIXEL.
17866
17867 * print.c (print_preprocess): Don't lose print_depth levels while
17868 iterating.
17869
17870 * widget.c (update_from_various_frame_slots):
17871 Use FRAME_BACKGROUND_PIXEL and FRAME_FOREGROUND_PIXEL.
17872
17873 * window.c (set_window_buffer): Don't call clear_mouse_face on tty
17874 frames.
17875 (window_internal_height): Remove bogus make_number call.
17876 (init_window_once): Call make_terminal_frame with two zero parameters.
17877
17878 * fileio.c (Fread_file_name): Update comment.
17879
17880 * callint.c (Fcall_interactively):
17881 Use temporarily_switch_to_single_kboard instead of single_kboard_state.
17882 Make sure it is correctly unwound.
17883
17884 * xsmfns.c (x_session_close): New function.
17885
17886 * coding.h (terminal_coding, safe_terminal_coding, keyboard_coding):
17887 Delete declarations.
17888
17889 * xterm.h: Remove declaration for x_fully_uncatch_errors.
17890 (x_output): Remove background_pixel and foreground_pixel fields.
17891 (x_display_info): Add new field TERMINAL. Remove KBOARD field.
17892 (x_delete_device, x_session_close): Declare.
17893
17894 * lread.c: Include setjmp.h. Update declaration of `read_char'.
17895 (read_filtered_event): Call `read_char' with a local
17896 `wrong_kboard_jmpbuf'.
17897
17898 * minibuf.c (read_minibuf): Call temporarily_switch_to_single_kboard.
17899 Don't call single_kboard_state. Use FRAME_RIF.
17900
17901 * process.c (Fmake_network_process): Don't unrequest_sigio on modern
17902 systems.
17903
17904 * lisp.h (set_process_environment): Rename to `set_global_environment'.
17905 (Fframe_with_environment, Fset_input_meta_mode)
17906 (Fset_quit_char): EXFUN.
17907 (x_create_device, tty_output, terminal, tty_display_info): Declare.
17908 (init_sys_modes, reset_sys_modes): Update prototypes.
17909 (init_all_sys_modes, reset_all_sys_modes): New prototypes.
17910
17911 * keyboard.h (struct kboard): Add new fields Vlocal_function_key_map,
17912 Vlocal_key_translation_map, and Vkeyboard_translate_table.
17913 (Vfunction_key_map, Vkeyboard_translate_table, single_kboard_state):
17914 Delete declarations.
17915 (Vfunction_key_map, Vkey_translation_map, push_kboard, pop_kboard)
17916 (temporarily_switch_to_single_kboard, tty_read_avail_input):
17917 New declarations.
17918
17919 * emacs.c (main): Don't call init_sys_modes(), the new term_init()
17920 already does that during init_display(). Call syms_of_keymap
17921 before syms_of_keyboard. Call `syms_of_terminal'.
17922 Call set_initial_environment, not set_process_environment.
17923 (shut_down_emacs): Call reset_all_sys_modes() instead of
17924 reset_sys_modes().
17925
17926 * xfaces.c (x_free_gc): Protect xassert with GLYPH_DEBUG.
17927 (internal_resolve_face_name, resolve_face_name_error): New functions.
17928 (resolve_face_name): Protect against loops and errors thrown by Fget.
17929 (realize_default_face): Don't use FRAME_FONT unless frame is an X frame.
17930 (Ftty_supports_face_attributes_p): Update tty_capable_p call.
17931
17932 * scroll.c: Replace CURTTY() with local variables throughout the
17933 file (where applicable).
17934 (calculate_scrolling, calculate_direct_scrolling)
17935 (scrolling_1, scroll_cost): Use the accessor macros for terminal
17936 characteristics.
17937
17938 * keymap.c (Vfunction_key_map): Remove.
17939 (Fdescribe_buffer_bindings): Update references to Vfunction_key_map.
17940 (syms_of_keymap): Remove DEFVAR for Vfunction_key_map.
17941 (Vkey_translation_map): Remove.
17942 (syms_of_keymap): Remove DEFVAR for key-translation-map.
17943 (Fdescribe_buffer_bindings)
17944 (read_key_sequence, init_kboard, syms_of_keyboard, mark_kboards):
17945 Update for terminal-local key-translation-map.
17946
17947 * Makefile.in (callproc.o): Update dependencies.
17948 (lisp, shortlisp): Add termdev.elc.
17949 (obj): Add terminal.o.
17950 (terminal.o): Add dependencies.
17951 [HAVE_CARBON]: Make terminal.o depend on macgui.h.
17952 (data.o, fns.o): Add termhooks.h dependency.
17953 (SOME_MACHINE_LISP): Add dnd.elc.
17954 (minibuf.o): Fix typo.
17955 Update dependencies.
17956
17957 * data.c (do_symval_forwarding, store_symval_forwarding)
17958 (find_symbol_value): Use the selected frame's keyboard, not
17959 current_kboard.
17960
17961 * .gdbinit (init_sys_modes): Use Vinitial_window_system instead of
17962 Vwindow_system.
17963
17964 * xmenu.c (Fx_menu_bar_open) [USE_X_TOOLKIT, USE_GTK]: Rename from
17965 Fmenu_bar_open.
17966 (syms_of_xmenu): Update defsubr.
17967 (mouse_position_for_popup, Fx_popup_menu)
17968 (Fx_popup_dialog, x_activate_menubar, update_frame_menubar)
17969 (set_frame_menubar, free_frame_menubar)
17970 (create_and_show_popup_menu, xmenu_show)
17971 (create_and_show_dialog, xdialog_show, xmenu_show): Abort if not
17972 an X frame.
17973
17974 * xselect.c (x_own_selection): Abort if not an X frame.
17975 (some_frame_on_display): Check if it is an X frame.
17976 (x_handle_selection_clear): Deal with MULTI_KBOARD.
17977
17978 * coding.c: Include frame.h and termhooks.h.
17979 (terminal_coding, keyboard_coding): Delete.
17980 (Fset_terminal_coding_system_internal)
17981 (Fset_keyboard_coding_system_internal)
17982 (Fkeyboard_coding_system)
17983 (Fterminal_coding_system): Add a terminal parameter.
17984 Get terminal_coding from the terminal.
17985 (init_coding_once): Don't call setup_coding_system here.
17986
17987 * dispextern.h (set_scroll_region, turn_off_insert)
17988 (turn_off_highlight, background_highlight, clear_end_of_line_raw)
17989 (tty_clear_end_of_line, tty_setup_colors)
17990 (delete_tty, updating_frame)
17991 (produce_special_glyphs, produce_glyphs, write_glyphs)
17992 (insert_glyphs): Remove.
17993 (raw_cursor_to, clear_to_end, tty_turn_off_insert)
17994 (tty_turn_off_highlight, get_tty_size): Add declaration.
17995 (tabs_safe_p, init_baud_rate, get_tty_terminal): Update prototypes.
17996
17997 * frame.h (enum output_method): Add output_initial.
17998 (struct x_output): Delete.
17999 (FRAME_FOREGROUND_PIXEL, FRAME_BACKGROUND_PIXEL):
18000 Access foreground_pixel and background_pixel directly from the frame.
18001 (tty_display): Delete.
18002 (struct frame): Add buried_buffer_list, foreground_pixel,
18003 background_pixel and terminal. Delete kboard.
18004 (union output_data): Add tty.
18005 (FRAME_KBOARD): Get the kboard from the terminal.
18006 (FRAME_INITIAL_P): New macro.
18007 (Qtty, Qtty_type, Qterminal, Qterminal_live_p, Qenvironment)
18008 (Qterm_environment_variable, Qdisplay_environment_variable)
18009 (make_terminal_frame, Qburied_buffer_list, Qwindow_system):
18010 New declarations.
18011
18012 * termchar.h (tty_output, tty_display_info): New structures.
18013 (tty_list): Declare.
18014 (FRAME_TTY, CURTTY): New macros.
18015 (must_write_spaces, min_padding_speed, fast_clear_end_of_line)
18016 (line_ins_del_ok, char_ins_del_ok, scroll_region_ok)
18017 (scroll_region_cost, memory_below_frame, fast_clear_end_of_line)
18018 (dont_calculate_costs, no_redraw_on_reenter): Remove declarations.
18019
18020 * callproc.c: Include frame.h and termhooks.h, for terminal
18021 parameters.
18022 (add_env): New function.
18023 (child_setup): Use it.
18024 (child_setup, getenv_internal): Handle the new Vprocess_environment.
18025 (getenv_internal): Fix get_terminal_param call.
18026 (Fgetenv_internal, egetenv): Update doc.
18027 (syms_of_callproc): Initialize Vprocess_environment to nil.
18028 Register and initialize them. Remove obsolete defvars. Update doc
18029 strings.
18030 (child_setup): Handle Vlocal_environment_variables.
18031 (getenv_internal): Add terminal parameter.
18032 Handle Vlocal_environment_variables.
18033 (Fgetenv_internal): Add terminal parameter.
18034 (child_setup, getenv_internal, Fgetenv_internal): Store the local
18035 environment in a frame (not terminal) parameter. Update doc strings.
18036 (set_initial_environment): Rename from set_global_environment.
18037 Store Emacs environment in initial frame parameter.
18038
18039 * xdisp.c (redisplay_internal): Update references to
18040 `previous_terminal_frame'.
18041 (display_mode_line, Fformat_mode_line): Replace calls to
18042 `push_frame_kboard' with `push_kboard'.
18043 (get_glyph_string_clip_rects): Add extra parentheses and
18044 braces to prevent compiler warnings.
18045 (calc_pixel_width_or_height): Add xassert to check that the
18046 frame is alive. Don't call `lookup_image' on a termcap frame.
18047 (message2_nolog, message3_nolog, redisplay_internal)
18048 (set_vertical_scroll_bar, redisplay_window, check_x_display_info)
18049 (x_set_scroll_bar_foreground, x_set_scroll_bar_background)
18050 (Fx_create_frame, Fxw_display_color_p, Fx_display_grayscale_p)
18051 (Fx_display_pixel_width, Fx_display_pixel_height)
18052 (Fx_display_planes, Fx_display_color_cells)
18053 (Fx_server_max_request_size, Fx_server_vendor, Fx_server_version)
18054 (Fx_display_screens, Fx_display_mm_height, Fx_display_mm_width)
18055 (Fx_display_backing_store, Fx_display_visual_class)
18056 (Fx_display_save_under, Fx_close_connection, x_create_tip_frame):
18057 Use FRAME_TERMINAL_P, FRAME_WINDOW_P, FRAME_TTY and FRAME_RIF.
18058
18059 * xfns.c (x_set_foreground_color x_set_background_color)
18060 (x_set_mouse_color, x_set_cursor_color, x_make_gc):
18061 Use FRAME_BACKGROUND_PIXEL and FRAME_FOREGROUND_PIXEL.
18062 (Fx_create_frame, x_create_tip_frame, build_string, x_window)
18063 (Fx_create_frame, x_create_tip_frame): Don't create frames on a
18064 terminal that is being deleted.
18065 (Fx_create_frame): Use `store_frame_param' to set `window-system'
18066 frame parameter, and make sure it overrides any user-supplied setting.
18067 (Fx_close_connection, Fx_synchronize): Unify argument names with
18068 the rest of the DEFUNs.
18069
18070 * dispnew.c (Fsend_string_to_terminal): Update call to
18071 `get_tty_terminal'.
18072 (Fredraw_frame, Fsend_string_to_terminal)
18073 (Fsend_string_to_terminal, init_display): Use FRAME_RIF,
18074 FRAME_TERMCAP_P and FRAME_TTY.
18075 (window_change_signal): Don't believe width/height values that are
18076 impossibly small.
18077 (Vinitial_window_system): Rename from Vwindow_system.
18078 (termscript, Wcm, rif): Delete.
18079
18080 * termhooks.h (struct terminal): New struct containing the
18081 previously global text display hooks and new members NAME,
18082 DELETED and PARAM_ALIST.
18083 (FRAME_TERMINAL, TERMINAL_TERMINAL_CODING)
18084 (TERMINAL_KEYBOARD_CODING, TERMINAL_ACTIVE_P, FRAME_WINDOW_P)
18085 (FRAME_RIF): New macros.
18086 (get_terminal_param, get_device): New declarations.
18087 (termscript): Delete declaration.
18088
18089 * xterm.c (x_initialize): Use Fset_input_interrupt_mode.
18090 (XTflash, x_free_frame_resources, x_scroll_bar_create)
18091 (x_scroll_bar_set_handle): Use FRAME_BACKGROUND_PIXEL and
18092 FRAME_FOREGROUND_PIXEL.
18093 (x_fully_uncatch_errors): Disable definition.
18094 (x_scroll_bar_expose): Fix reference to foreground pixel.
18095 (XTread_socket): Disable loop on all X displays.
18096 (x_delete_terminal): Don't set terminal->deleted and let
18097 delete_terminal delete the frames on the terminal.
18098 (x_delete_display): Doc update to reflect changes in
18099 delete_terminal.
18100 (x_display_info) <terminal>: Move member earlier in the struct.
18101 (deleting_tty): Remove old variable.
18102 (Fsuspend_tty): Call clear_tty_hooks.
18103 (Fresume_tty, init_tty): Call set_tty_hooks.
18104 (Ftty_display_color_p, Ftty_display_color_cells): Don't throw
18105 errors on X frames.
18106 (x_catch_errors_unwind): Abort if x_error_message is NULL.
18107 (handle_one_xevent): Initialize `f' to NULL.
18108 (x_delete_terminal, x_create_terminal): New functions.
18109 (XTset_terminal_modes, XTreset_terminal_modes)
18110 (XTread_socket, x_connection_closed, x_term_init)
18111 (x_term_init, x_delete_display): Add terminal parameter.
18112 (x_term_init) [!HAVE_GTK_MULTIDISPLAY]: Refuse to create secondary
18113 X connections.
18114
18115 * frame.c: Include termchar.h.
18116 (Qterminal, Qterminal_live_p, Qburied_buffer_list, Qtty, Qtty_type)
18117 (Qwindow_system, Qenvironment, Qterm_environment_variable)
18118 (Qdisplay_environment_variable): New vars.
18119 (Fframep): Deal with output_initial.
18120 (Fframe-live-p): Doc fix.
18121 (Fwindow-system): New function.
18122 (x_set_screen_gamma, store_frame_param): Fix compilation errors.
18123 (make_terminal_frame): Don't create frames on a terminal that is
18124 being deleted. Use FRAME_BACKGROUND_PIXEL and FRAME_FOREGROUND_PIXEL.
18125 (store_frame_param): Check for found_for_frame before calling XFRAME.
18126 (Fmake_terminal_frame): Handle NULL tty names correctly.
18127 (syms_of_frame): Enhance doc string of `default-frame-alist'.
18128 (Fdelete_frame): Remove unused variable `count'. Don't allow other
18129 frames to refer to a deleted frame in their 'environment parameter.
18130 (Fframe_with_environment): New function.
18131 (syms_of_frame): Defsubr it. Initialize and staticpro Qenvironment.
18132 (get_future_frame_param): New function.
18133 (Fmake_terminal_frame): Use it.
18134 (x_set_frame_parameters, x_set_screen_gamma): Use FRAME_RIF.
18135
18136 * sysdep.c (init_sys_modes, reset_sys_modes): Update for renames.
18137 * sysdep.c (reset_sys_modes): Update for renames.
18138
18139 * keyboard.c (tty_read_avail_input): New function.
18140 (Fset_input_interrupt_mode, Fset_output_flow_control): New functions.
18141 (syms_of_keyboard): Defsubr them.
18142 (Fset_input_meta_mode, Fset_quit_char): New functions.
18143 (Fset_input_mode): Split to above functions.
18144 (read_char_minibuf_menu_prompt): Add wrong_kboard_jmpbuf
18145 parameter. Use it in call to `read_char'.
18146 (read_char): Declare. Update call to `read_char_minibuf_menu_prompt'.
18147 Set wrong_kboard_jmpbuf correctly in recursive calls.
18148 Use current_kboard to access Vkeyboard_translate_table.
18149 Enhance comment before extra longjmp to wrong_kboard_jmpbuf.
18150 Add wrong_kboard_jmpbuf parameter to allow for recursive calls.
18151 Update longjmp invocations. Remember the original current_kboard,
18152 and longjmp to `wrong_kboard_jmpbuf' when a filter, timer or sentinel
18153 changes it. Comment out unnecessary calls to
18154 `record_single_kboard_state' and `any_kboard_state'.
18155 Update recursive calls.
18156 (wrong_kboard_jmpbuf): Remove global variable.
18157 (read_key_sequence): Remove unused variable wrong_kboard_jmpbuf.
18158 Handle deleted interrupted_kboards correctly; that is a legal
18159 case. Add `wrong_kboard_jmpbuf' local variable. Update setjmp
18160 and read_char calls. Abort if interrupted_kboard died in read_char.
18161 (any_kboard_state, single_kboard_state)
18162 (push_frame_kboard): Remove function.
18163 (pop_kboard): Switch out of single_kboard mode if the kboard has
18164 been deleted. Remove unused variable. Help debugging by not
18165 changing current_kboard unnecessarily. Set current_kboard to the
18166 kboard of the selected frame when the stored kboard object has
18167 been deleted before pop_kboard.
18168 (temporarily_switch_to_single_kboard): Change first parameter to a
18169 frame pointer. Throw an error when caller wants to change kboards
18170 while in single_kboard mode. Don't push_kboard if we weren't in
18171 single kboard state. Don't pop_kboard if we popped into any
18172 kboard state.
18173 (restore_kboard_configuration): Abort if pop_kboard changed the
18174 kboard in single_kboard mode. Call pop_kboard only after setting
18175 up single_kboard mode.
18176 (Frecursive_edit): Switch to single_kboard mode only in nested
18177 command loops.
18178 (cmd_error, command_loop, command_loop_1, timer_check):
18179 Comment out unnecessary call to `any_kboard_state' and
18180 `record_single_kboard_state'.
18181 (delete_kboard): Exit single_kboard mode if we have just deleted
18182 that kboard. Use FRAME_KBOARD.
18183 (interrupt_signal): Use `Fkill_emacs' to exit Emacs, not
18184 `fatal_error_signal'.
18185 (record_single_kboard_state): Don't push_kboard if we weren't in
18186 single kboard state. Don't pop_kboard if we popped into any
18187 kboard state.
18188 (push_frame_kboard): Rename to push_kboard.
18189 (kbd_buffer_get_event): Use FRAME_TERMINAL.
18190 (read_avail_input): Read input from all terminals.
18191 (mark_kboards): Also mark Vkeyboard_translate_table.
18192 (kbd_buffer_store_event_hold): Simplify condition.
18193 (read_key_sequence): Reinitialize fkey and keytran at each replay.
18194 (Vkeyboard_translate_table): Move to struct kboard.
18195 (init_kboard): Initialize Vkeyboard_translate_table.
18196 (syms_of_keyboard): Use DEFVAR_KBOARD to define
18197 Vkeyboard_translate_table. Update doc strings. Update docs of
18198 local-function-key-map and function-key-map.
18199
18200 * terminal.c: New file.
18201
18202 * term.c: Include errno.h.
18203 (Vring_bell_function, device_list, initial_device)
18204 (next_device_id, ring_bell, update_begin, update_end)
18205 (set_terminal_window, cursor_to, raw_cursor_to)
18206 (clear_to_end, clear_frame, clear_end_of_line)
18207 (write_glyphs, insert_glyphs, delete_glyphs, ins_del_lines)
18208 (Fdisplay_name, create_device, delete_device): Move to terminal.c.
18209 (syms_of_term): Move their initialization to terminal.c.
18210 (get_tty_terminal, Fdisplay_tty_type, Ftty_display_color_p)
18211 (Ftty_display_color_cells)
18212 (Ftty_no_underline, Fsuspend_tty, Fresume_tty, create_tty_output)
18213 (clear_tty_hooks, set_tty_hooks)
18214 (init_tty, maybe_fatal): New functions.
18215 (Ftty_type): Return nil if terminal is not on a tty instead of
18216 throwing an error. Doc update.
18217 (syms_of_term) <Vsuspend_tty_functions, Vresume_tty_functions>:
18218 Doc update. Initialize new subrs and variables.
18219 (delete_tty): Use terminal->deleted.
18220 (tty_set_terminal_modes): Rename from set_terminal_modes.
18221 (tty_reset_terminal_modes): Rename from reset_terminal_modes.
18222 (set_scroll_region): Rename to `tty_set_scroll_region'.
18223 (turn_on_insert): Rename to `tty_turn_on_insert'.
18224 (turn_off_insert): Rename to `tty_turn_off_insert'.
18225 (turn_off_highlight): Rename to `tty_turn_off_highlight'.
18226 (turn_on_highlight): Rename to `tty_turn_on_highlight'.
18227 (toggle_highligh): Rename to `tty_toggle_highlight'.
18228 (background_highlight): Rename to `tty_background_highlight'.
18229 (highlight_if_desired): Rename to `tty_highlight_if_desired'.
18230 (tty_ring_bell, tty_update_end, tty_set_terminal_window)
18231 (tty_set_scroll_region, tty_background_highlight)
18232 (tty_cursor_to, tty_raw_cursor_to, tty_clear_to_end)
18233 (tty_clear_frame, tty_clear_end_of_line, tty_write_glyphs)
18234 (tty_insert_glyphs, tty_delete_glyphs, tty_ins_del_lines)
18235 (term_get_fkeys, tty_setup_colors, dissociate_if_controlling_tty):
18236 Add static modifier.
18237 (tty_reset_terminal_modes, tty_set_terminal_window)
18238 (tty_set_scroll_region, tty_background_highlight)
18239 (tty_highlight_if_desired, tty_cursor_to)
18240 (tty_raw_cursor_to, tty_clear_to_end, tty_clear_frame)
18241 (tty_clear_end_of_line, tty_write_glyphs, tty_insert_glyphs)
18242 (tty_delete_glyphs, tty_ins_del_lines, turn_on_face): Update for
18243 renames.
18244
18245 2007-08-28 Jan Djärv <jan.h.d@swipnet.se>
18246
18247 * keyboard.c: Qrtl is new.
18248 (parse_tool_bar_item): Handle :rtl keyword.
18249 (syms_of_keyboard): Intern :rtl keyword.
18250
18251 * dispextern.h (enum tool_bar_item_idx): Add TOOL_BAR_ITEM_RTL_IMAGE.
18252
18253 * gtkutil.c (xg_tool_bar_expose_callback): Just do SET_FRAME_GARBAGED
18254 so no Lisp code is executed.
18255 (file_for_image, find_rtl_image): New functions.
18256 (xg_get_image_for_pixmap): Use file_for_image.
18257 (update_frame_tool_bar): If direction is RTL, use RTL image if
18258 defined. Use Gtk stock images if defined.
18259
18260 2007-08-27 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
18261
18262 * macterm.c (x_draw_composite_glyph_string_foreground): Draw rectangle
18263 for nonexistent or zero-width glyph in composition glyph.
18264
18265 2007-08-25 Stefan Monnier <monnier@iro.umontreal.ca>
18266
18267 * m/amdx86-64.h: Redirect to intel386.h if compiling for i386.
18268
18269 * xdisp.c (Finvisible_p): New function.
18270 (syms_of_xdisp): defsubr it.
18271
18272 2007-08-24 Juanma Barranquero <lekktu@gmail.com>
18273
18274 * image.c (syms_of_image) <image-library-alist, cross-disabled-images>:
18275 Doc fixes.
18276
18277 2007-08-24 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
18278
18279 * mac.c [MAC_OSX] (select_and_poll_event, sys_select): Fix last changes.
18280
18281 2007-08-24 Martin Rudalics <rudalics@gmx.at>
18282
18283 * fileio.c (Finsert_file_contents): Consult CHARS_MODIFF to tell
18284 whether decoding has modified buffer contents.
18285
18286 2007-08-24 Jason Rumney <jasonr@gnu.org>
18287
18288 * image.c [HAVE_NTGUI]: Define dynamic loaded functions for SVG.
18289 (Qgdk_pixbuf, Qglib) [HAVE_NTGUI]: New symbols.
18290 (syms_of_image) [HAVE_NTGUI]: Intern and staticpro them.
18291 (init_svg_functions) [HAVE_NTGUI]: New function.
18292 (fn_g_type_init, fn_g_object_unref, fn_g_error_free): New #defines.
18293 (svg_load_image): Use them.
18294 (svg_load_image) [HAVE_NTGUI]: Implement background.
18295
18296 2007-08-23 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
18297
18298 * Makefile.in (RSVG_LIBS, RSVG_CFLAGS): New variables.
18299 (ALL_CFLAGS): Use ${RSVG_CFLAGS} instead of @RSVG_CFLAGS@.
18300 (LIBX): Remove @RSVG_LIBS@.
18301 (LIBES): Add $(RSVG_LIBS).
18302
18303 * image.c (svg_load_image): Blend with specified background if exists.
18304 Use IMAGE_BACKGROUND. Add Mac OS Support.
18305
18306 * mac.c (wakeup_from_rne_enabled_p) [MAC_OSX]: Remove variable.
18307 (ENABLE_WAKEUP_FROM_RNE, DISABLE_WAKEUP_FROM_RNE) [MAC_OSX]:
18308 Remove macros.
18309 [MAC_OSX] (socket_callback): Do nothing.
18310 [MAC_OSX] (select_and_poll_event): Use CFRunLoopRunInMode instead of
18311 ReceiveNextEvent.
18312 [MAC_OSX] (sys_select): Likewise. Don't set context as argument to
18313 socket_callback.
18314 (mac_wakeup_from_rne) [MAC_OSX]: Do nothing.
18315
18316 2007-08-22 Glenn Morris <rgm@gnu.org>
18317
18318 * image.c (x_find_image_file): Search in etc/images/ rather than etc/.
18319
18320 2007-08-22 Paul Pogonyshev <pogonyshev@gmx.net>
18321
18322 * Makefile.in (ALL_CFLAGS, LIBX): Add RSVG_LIBS.
18323
18324 * image.c: Add support for SVG images. Some additional comments
18325 by Joakim Verona <joakim@verona.se>. When HAVE_RSVG is defined:
18326 (svg_image_p): New function to test for SVG image.
18327 (svg_load): New function to load SVG image.
18328 (svg_load_image): New function, helper for svg_load.
18329 (Qsvg): New Lisp_object.
18330 (svg_keyword_index): New enum.
18331 (svg_format): New static `image_keyword' struct.
18332 (svg_type): New static `image_type' struct.
18333 (librsvg/rsvg.h): Include it.
18334
18335 2007-08-23 Stefan Monnier <monnier@iro.umontreal.ca>
18336
18337 * lread.c (load_warn_old_style_backquotes): Fix up array size typo.
18338
18339 2007-08-22 Stefan Monnier <monnier@iro.umontreal.ca>
18340
18341 * lread.c (Qold_style_backquotes): New var.
18342 (syms_of_lread): Init and staticpro it.
18343 (load_warn_old_style_backquotes): New fun.
18344 (Fload): Use them to warn about old style backquotes.
18345 (end_of_file_error, Fload): Remove unused vars.
18346
18347 * lisp.h (Fclear_face_cache, Fx_send_client_event): Declare.
18348
18349 * lread.c (Vold_style_backquotes): New var.
18350 (syms_of_lread): Init and export it to Elisp.
18351 (read1): Set it when we find an old-style (back)quote.
18352
18353 2007-08-22 Jason Rumney <jasonr@gnu.org>
18354
18355 * w32reg.c (SYSTEM_DEFAULT_RESOURCES): Add missing NULL terminator.
18356
18357 2007-08-22 Katsumi Yamaoka <yamaoka@jpl.org>
18358
18359 * puresize.h (BASE_PURESIZE): Increase to 1140000.
18360
18361 2007-08-19 Richard Stallman <rms@gnu.org>
18362
18363 * eval.c (Ffunction, Fquote): Signal error if not 1 argument.
18364
18365 2007-08-19 Andreas Schwab <schwab@suse.de>
18366
18367 * alloc.c (pure): Round PURESIZE up.
18368
18369 2007-08-17 Jan Djärv <jan.h.d@swipnet.se>
18370
18371 * xterm.c (handle_one_xevent): Remove check that mouse click is in
18372 active frame.
18373
18374 2007-08-16 Richard Stallman <rms@gnu.org>
18375
18376 * eval.c (Fcommandp): Add parens to clarify.
18377
18378 * minibuf.c (Fall_completions): Use enum for type of table.
18379
18380 * emacs.c (USAGE2): Improve text.
18381
18382 2007-08-15 Philippe Waroquiers <philippe.waroquiers@eurocontrol.int>
18383
18384 * term.c (tty_default_color_capabilities): Declare static
18385 variables in file scope, to avoid HPUX compiler problem.
18386
18387 2007-08-13 Jan Djärv <jan.h.d@swipnet.se>
18388
18389 * gtkutil.c (update_frame_tool_bar): Use -1 as index
18390 to gtk_toolbar_insert.
18391
18392 2007-08-13 Stefan Monnier <monnier@iro.umontreal.ca>
18393
18394 * fileio.c (Finsert_file_contents): Yet Another Int/Lisp_Object Mixup.
18395
18396 * insdel.c (reset_var_on_error): New fun.
18397 (signal_before_change, signal_after_change):
18398 Use it to reset (after|before)-change-functions to nil in case of error.
18399 Bind inhibit-modification-hooks to t.
18400 Don't bind (after|before)-change-functions to nil while they run.
18401
18402 2007-08-11 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
18403
18404 * xterm.c (x_draw_image_glyph_string): Adjust stipple origin when
18405 filling pixmap with stippled background.
18406
18407 2007-08-10 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
18408
18409 * macterm.c [TARGET_API_MAC_CARBON] (mac_handle_window_event):
18410 Don't use invisible frame as parent window for repositioning.
18411
18412 2007-08-10 Stefan Monnier <monnier@iro.umontreal.ca>
18413
18414 * print.c (new_backquote_output): Rename from old_backquote_output.
18415 (print): Inverse its logic (according to its name) so as to match the
18416 behavior of new_backquote_flag in lread.c.
18417
18418 2007-08-09 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
18419
18420 * gmalloc.c (posix_memalign): New function.
18421
18422 * macterm.c (frame_highlight, frame_unhighlight): Don't call
18423 ActivateControl/DeactivateControl here.
18424 [USE_MAC_TOOLBAR] (free_frame_tool_bar): Suppress animation when
18425 frame-notice-user-settings is non-nil.
18426 [USE_MAC_FONT_PANEL] (mac_handle_font_event): Also record parameter
18427 for kEventParamFMFontStyle.
18428 [TARGET_API_MAC_CARBON] (mac_handle_keyboard_event): Don't check
18429 mac_pass_command_to_system and mac_pass_control_to_system here.
18430 (XTread_socket): Call ActivateControl/DeactivateControl here.
18431 (XTread_socket) [TARGET_API_MAC_CARBON]:
18432 Check mac_pass_command_to_system and mac_pass_control_to_system here.
18433 (mac_handle_window_event) [USE_MAC_TOOLBAR]: Add further workaround
18434 for window repositioning.
18435
18436 2007-08-08 Glenn Morris <rgm@gnu.org>
18437
18438 * Replace `iff' in doc-strings and comments.
18439
18440 2007-08-07 Chong Yidong <cyd@stupidchicken.com>
18441
18442 * xdisp.c (move_it_by_lines): Remove incorrect optimization.
18443
18444 2007-08-07 Martin Rudalics <rudalics@gmx.at>
18445
18446 * fileio.c (Finsert_file_contents): Run format-decode and
18447 after_insert_file_functions on entire buffer when REPLACE is
18448 non-nil and inhibit modification_hooks and point_motion_hooks.
18449 For consistency, run after_insert_file_functions iff something
18450 got inserted. Move signal_after_change and update_compositions
18451 after code running after_insert_file_functions. Make sure that
18452 undo_list doesn't record intermediate steps of the decoding process.
18453
18454 2007-08-07 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
18455
18456 * emacs.c (main)
18457 [HAVE_GTK_AND_PTHREAD && !SYSTEM_MALLOC && !DOUG_LEA_MALLOC]:
18458 Call malloc_enable_thread on interactive startup.
18459
18460 * gmalloc.c (_malloc_thread_enabled_p) [USE_PTHREAD]: New variable.
18461 (LOCK, UNLOCK, LOCK_ALIGNED_BLOCKS, UNLOCK_ALIGNED_BLOCKS)
18462 [USE_PTHREAD]: Conditionalize with it.
18463 (malloc_atfork_handler_prepare, malloc_atfork_handler_parent)
18464 (malloc_atfork_handler_child, malloc_enable_thread) [USE_PTHREAD]:
18465 New functions.
18466
18467 2007-08-06 Chong Yidong <cyd@stupidchicken.com>
18468
18469 * xdisp.c (redisplay_window): When restoring original buffer
18470 position, make sure it is still valid.
18471
18472 * image.c (png_load): Ignore png-supplied background color.
18473
18474 2007-08-06 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
18475
18476 * mac.c [TARGET_API_MAC_CARBON] (cfdate_to_lisp): Obtain microsec value.
18477 Use kCFAbsoluteTimeIntervalSince1970.
18478
18479 * macmenu.c (quit_dialog_event_loop) [TARGET_API_MAC_CARBON]:
18480 New variable.
18481 [TARGET_API_MAC_CARBON] (mac_handle_dialog_event): Set it if dialog
18482 event loop should be quit.
18483 [TARGET_API_MAC_CARBON] (create_and_show_dialog) [!MAC_OSX]:
18484 Quit dialog event loop if quit_dialog_event_loop is set.
18485
18486 * macselect.c [!TARGET_API_MAC_CARBON]: Include Scrap.h.
18487 (Selection): New typedef. Use instead of ScrapRef.
18488 (mac_get_selection_from_symbol): Rename from get_scrap_from_symbol.
18489 (mac_valid_selection_target_p): Rename from valid_scrap_target_type_p.
18490 (mac_clear_selection): Rename from clear_scrap.
18491 (get_flavor_type_from_symbol): New argument SEL and subsume function of
18492 scrap_has_target_type. All uses changed.
18493 (mac_get_selection_ownership_info, mac_valid_selection_value_p)
18494 (mac_selection_has_target_p): New functions.
18495 (mac_put_selection_value): Rename from put_scrap_string.
18496 (mac_get_selection_value): Rename from get_scrap_string.
18497 (mac_get_selection_target_list): Rename from get_scrap_target_type_list.
18498 (put_scrap_private_timestamp, scrap_has_target_type)
18499 (get_scrap_private_timestamp): Remove functions.
18500 (SCRAP_FLAVOR_TYPE_EMACS_TIMESTAMP): Remove define.
18501 (x_own_selection, x_get_local_selection):
18502 Use mac_valid_selection_value_p.
18503 (x_own_selection): Don't use put_scrap_private_timestamp.
18504 Record OWNERSHIP-INFO into Vselection_alist instead.
18505 (x_get_local_selection): Don't check type if request is local.
18506 (Fx_selection_owner_p): Don't use get_scrap_private_timestamp.
18507 Detect ownership change with OWNERSHIP-INFO in Vselection_alist instead.
18508
18509 2007-08-04 Jan Djärv <jan.h.d@swipnet.se>
18510
18511 * gtkutil.c (xg_tool_bar_callback): Generate two TOOL_BAR_EVENT:s,
18512 add comment explaining why.
18513
18514 2007-08-03 Richard Stallman <rms@gnu.org>
18515
18516 * fileio.c (Fvisited_file_modtime): Use make_time.
18517
18518 2007-08-01 Ryo Yoshitake <ryo@shiftmode.net> (tiny change)
18519
18520 * mac.c (init_mac_osx_environment): Adjust load-path on self-contained
18521 build.
18522
18523 2007-07-31 Stefan Monnier <monnier@iro.umontreal.ca>
18524
18525 * gtkutil.c (xg_tool_bar_callback): Generate a single TOOL_BAR_EVENT.
18526
18527 2007-07-30 Katsumi Yamaoka <yamaoka@jpl.org>
18528
18529 * puresize.h (BASE_PURESIZE): Increase to 1130000.
18530
18531 2007-07-30 Richard Stallman <rms@gnu.org>
18532
18533 * lread.c (readevalloop, read1): Treat NBSP as whitespace.
18534
18535 2007-07-29 Jan Djärv <jan.h.d@swipnet.se>
18536
18537 * gmalloc.c (__malloc_initialize): Remove pthread_once. Not needed.
18538
18539 2007-07-28 Nick Roberts <nickrob@snap.net.nz>
18540
18541 * xdisp.c (decode_mode_spec): Use '@' instead of 'R' to test for
18542 remote default-directory.
18543
18544 * buffer.c (mode-line-format): Update doc string.
18545
18546 2007-07-27 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
18547
18548 * w32term.c (w32_draw_fringe_bitmap): Extend fringe background to
18549 scroll bar gap.
18550 (x_scroll_bar_create): Set bar->fringe_extended_p.
18551 (w32_set_vertical_scroll_bar): Put leftmost/rightmost scroll bars
18552 on frame edge. Check fringe background extension. Don't clear
18553 extended fringe background area.
18554
18555 * w32term.h (struct scroll_bar): New member fringe_extended_p.
18556 (w32_fill_area): Enclose multiple statements with do ... while (0).
18557
18558 * xterm.c (x_draw_fringe_bitmap) [USE_TOOLKIT_SCROLL_BARS]:
18559 Extend fringe background to scroll bar gap.
18560 (x_scroll_bar_create) [USE_TOOLKIT_SCROLL_BARS]:
18561 Set bar->fringe_extended_p.
18562 (XTset_vertical_scroll_bar) [USE_TOOLKIT_SCROLL_BARS]:
18563 Put leftmost/rightmost scroll bars on frame edge. Check fringe
18564 background extension. Don't clear extended fringe background area.
18565
18566 * xterm.h (struct scroll_bar) [USE_TOOLKIT_SCROLL_BARS]:
18567 New member fringe_extended_p.
18568
18569 2007-07-25 Glenn Morris <rgm@gnu.org>
18570
18571 * Relicense all FSF files to GPLv3 or later.
18572
18573 * COPYING: Switch to GPLv3.
18574
18575 2007-07-25 Stefan Monnier <monnier@iro.umontreal.ca>
18576
18577 * eval.c (Fcommandp): Pay attention to the `interactive-form' property.
18578
18579 * data.c (Finteractive_form): Check for the presence of an
18580 `interactive-form' symbol property more thoroughly.
18581
18582 * data.c (Finteractive_form): Use an `interactive-form' property if
18583 present, analogous to the function-documentation property.
18584
18585 2007-07-24 Jason Rumney <jasonr@gnu.org>
18586
18587 * w32fns.c (x_real_positions): Get real position from OS instead of
18588 calculating it.
18589
18590 2007-07-23 Jason Rumney <jasonr@gnu.org>
18591
18592 * filelock.c (current_lock_owner): Allow for @ sign in username.
18593
18594 2007-07-22 Nick Roberts <nickrob@snap.net.nz>
18595
18596 * xdisp.c (decode_mode_spec): Add case 'R' for to test for
18597 remote default-directory.
18598
18599 * buffer.c (mode-line-format): Describe above case in doc string.
18600
18601 2007-07-20 Eli Zaretskii <eliz@gnu.org>
18602
18603 * w32proc.c (IMAGE_NT_OPTIONAL_HDR32_MAGIC, IMAGE_OPTIONAL_HEADER32):
18604 Define if not defined.
18605
18606 2007-07-18 Jason Rumney <jasonr@gnu.org>
18607
18608 * w32proc.c (w32_executable_type): Handle 64 bit executables.
18609
18610 2007-07-18 Richard Stallman <rms@gnu.org>
18611
18612 * data.c (Fsetq_default): Doc fix.
18613
18614 * eval.c (Fsetq): Doc fix.
18615
18616 2007-07-18 Juanma Barranquero <lekktu@gmail.com>
18617
18618 * coding.c (Ffind_operation_coding_system):
18619 * eval.c (For, Fand): Doc fixes.
18620 Reported by Johan Bockgård.
18621
18622 2007-07-18 Jan Djärv <jan.h.d@swipnet.se>
18623
18624 * xfns.c (Fx_focus_frame): Call x_ewmh_activate_frame.
18625
18626 * xterm.h: Declare x_ewmh_activate_frame.
18627
18628 * xterm.c (x_ewmh_activate_frame): New function.
18629 (XTframe_raise_lower): Move code to x_ewmh_activate_frame.
18630
18631 2007-07-17 Martin Rudalics <rudalics@gmx.at>
18632
18633 * window.c (Fdisplay_buffer): If largest or LRU window is the
18634 only window, split it even if it is not eligible for splitting.
18635 This restores the original behavior broken by the 2007-07-15
18636 change.
18637
18638 2007-07-17 Glenn Morris <rgm@gnu.org>
18639
18640 * abbrev.c (abbrev_check_chars): New function.
18641 (Fdefine_global_abbrev, Fdefine_mode_abbrev):
18642 Call abbrev_check_chars to check abbrev characters are word
18643 constituents. Doc fix.
18644
18645 2007-07-17 Stefan Monnier <monnier@iro.umontreal.ca>
18646
18647 * process.c (Fstart_process, Fmake_network_process)
18648 (read_process_output): Fix up last changes.
18649
18650 2007-07-16 Eli Zaretskii <eliz@gnu.org>
18651
18652 * makefile.w32-in (clean): Don't delete *~.
18653
18654 2007-07-16 Andreas Schwab <schwab@suse.de>
18655
18656 * window.c (Fdisplay_buffer): Use NILP.
18657 (Fset_window_scroll_bars): Likewise.
18658
18659 2007-07-15 Martin Rudalics <rudalics@gmx.at>
18660
18661 * window.c (window_min_size_2): New function.
18662 (window_min_size_1, size_window, Fdisplay_buffer)
18663 (Fsplit_window, adjust_window_trailing_edge): Use it to avoid
18664 windows without mode- or header-lines when window-min-height is
18665 too small.
18666 (size_window): Reset nodelete_p after testing it, following an
18667 earlier note by Kim F. Storm.
18668 (display_buffer): Do not set split_height_threshold to twice the
18669 value of window_min_height to avoid changing the value of a
18670 customizable variable. Rather explicitly check whether the
18671 height of the window that shall be splitted is at least as large
18672 as split_height_threshold.
18673 (Fwindow_full_width_p): New defun.
18674 (syms_of_window): Defsubr it.
18675
18676 * window.h: Add EXFUN for Fwindow_full_width_p.
18677
18678 2007-07-14 Jason Rumney <jasonr@gnu.org>
18679
18680 * process.c [WINDOWSNT]: Don't undefine AF_INET6.
18681
18682 2007-07-14 Richard Stallman <rms@gnu.org>
18683
18684 * eval.c (maybe_call_debugger): New function.
18685 (find_handler_clause): Use maybe_call_debugger.
18686 Call it when the handler says `debug'.
18687 Eliminate DEBUGGER_VALUE_PTR.
18688 (Fsignal): Eliminate debugger_value.
18689 (Qdebug): New variable.
18690 (syms_of_eval): Initialize it.
18691
18692 2007-07-14 Juanma Barranquero <lekktu@gmail.com>
18693
18694 * eval.c (Fprogn):
18695 * keyboard.c (Ftrack_mouse):
18696 * print.c (Fwith_output_to_temp_buffer):
18697 * window.c (Fsave_window_excursion): Doc fix.
18698
18699 2007-07-13 Stefan Monnier <monnier@iro.umontreal.ca>
18700
18701 * eval.c (init_eval_once): Bump max_lisp_eval_depth to 400.
18702
18703 2007-07-12 Stefan Monnier <monnier@iro.umontreal.ca>
18704
18705 * process.h (struct Lisp_Process): Turn slots infd, outfd,
18706 kill_without_query, pty_flag, tick, update_tick, decoding_carryover,
18707 inherit_coding_system_flag, filter_multibyte, adaptive_read_buffering,
18708 read_output_delay, and read_output_skip from Lisp_Objects to ints.
18709 Remove unused encoding_carryover.
18710 * process.c: Adjust all functions accordingly.
18711
18712 2007-07-12 Richard Stallman <rms@gnu.org>
18713
18714 * term.c: Include unistd.h only if HAVE_UNISTD_H.
18715
18716 2007-07-11 Jason Rumney <jasonr@gnu.org>
18717
18718 * makefile.w32-in (LIBS): Include OLE32.
18719
18720 * w32fns.c (w32_msg_pump) <WM_EMACS_CREATEWINDOW>: Initialize COM.
18721 (w32_msg_pump) <WM_DESTROY>: Uninitialize COM.
18722
18723 2007-07-11 Stefan Monnier <monnier@iro.umontreal.ca>
18724
18725 * lisp.h (struct Lisp_Hash_Table): Turn next_weak into a bare pointer.
18726 * fns.c (weak_hash_tables): Rename from Vweak_hash_tables and turned
18727 from a Lisp_Object into a bare pointer.
18728 (make_hash_table, copy_hash_table, sweep_weak_hash_tables, init_fns):
18729 Adjust the code correspondingly.
18730
18731 * alloc.c (emacs_blocked_free): Remove unused var `bytes_used_now'.
18732
18733 * term.c: Include unistd.h for ttyname, used in handle_one_term_event.
18734 (term_show_mouse_face): Remove unused var `j'.
18735 (handle_one_term_event): Remove unused vars `i' and `j'.
18736 Don't cast return value of ttyname since it's not necessary.
18737
18738 2007-07-10 Stefan Monnier <monnier@iro.umontreal.ca>
18739
18740 * alloc.c (mark_maybe_pointer): Enforce mult-of-8 alignment when using
18741 USE_LSB_TAG. Suggested by Dmitry Antipov <dmantipov@yandex.ru>.
18742
18743 * fns.c (map_char_table): Use an array of int for `indices' rather than
18744 an array of Lisp_Objects (which are only ever integers anyway).
18745 (Fmap_char_table): Update caller.
18746 * lisp.h: Update prototype.
18747 * keymap.c (Fset_keymap_parent, map_keymap, Fcopy_keymap):
18748 * fontset.c (Ffontset_info):
18749 * casetab.c (set_case_table): Update callers.
18750
18751 * editfns.c (Ftranspose_regions): Use EMACS_INT for positions.
18752
18753 * keymap.c (struct accessible_keymaps_data)
18754 (struct where_is_internal_data): New structures.
18755 (accessible_keymaps_1, where_is_internal_1): Use them to change
18756 interface to adhere to the one used by map_keymap.
18757 (Faccessible_keymaps, where_is_internal): Use map_keymap.
18758 (accessible_keymaps_char_table, where_is_internal_2): Remove.
18759
18760 * keymap.h (map_keymap_function_t): More informative prototype.
18761
18762 2007-07-10 Guanpeng Xu <herberteuler@hotmail.com>
18763
18764 * search.c (Vinhibit_changing_match_data, search_regs_1): New vars.
18765 (looking_at_1): Don't change search_regs and last_thing_searched
18766 if `inhibit-changing-match-data' is non-nil.
18767 (string_match_1, search_buffer, set_search_regs): Likewise.
18768 (syms_of_search): Add Lisp level definition for
18769 `inhibit-changing-match-data' and set it to nil.
18770 (boyer_moore): If `inhibit-changing-match-data' is non-nil, compute
18771 start and end of the match, instead of using values in search_regs.
18772
18773 2007-07-01 Stefan Monnier <monnier@iro.umontreal.ca>
18774
18775 * minibuf.c (Fcompleting_read): New value `confirm-only'
18776 for `require-match'.
18777
18778 2007-06-28 Stefan Monnier <monnier@iro.umontreal.ca>
18779
18780 * fileio.c (Fdo_auto_save): Revert last patch installed unwillingly as
18781 part of the 2007-06-27 change to syms_of_fileio.
18782
18783 2007-06-28 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
18784
18785 * macterm.c [USE_MAC_TSM] (mac_handle_text_input_event):
18786 Check WINDOWP before using XWINDOW. Consolidate return statements.
18787
18788 2007-06-27 Richard Stallman <rms@gnu.org>
18789
18790 * fileio.c (syms_of_fileio) <after-insert-file-functions>: Doc fix.
18791
18792 2007-06-27 Juanma Barranquero <lekktu@gmail.com>
18793
18794 * buffer.c (syms_of_buffer) <selective-display>: Fix typo in docstring.
18795
18796 2007-06-26 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
18797
18798 * gmalloc.c [HAVE_GTK_AND_PTHREAD]: Check this after including config.h.
18799 (_aligned_blocks_mutex) [USE_PTHREAD]: New variable.
18800 (LOCK_ALIGNED_BLOCKS, UNLOCK_ALIGNED_BLOCKS): New macros.
18801 (_free_internal, memalign): Use them.
18802 (_malloc_mutex, _aligned_blocks_mutex) [USE_PTHREAD]:
18803 Initialize to PTHREAD_MUTEX_INITIALIZER.
18804 (malloc_initialize_1) [USE_PTHREAD]: Don't use recursive mutex.
18805 (morecore_nolock): Rename from morecore. All uses changed.
18806 Use only nolock versions of internal allocation functions.
18807 (_malloc_internal_nolock, _realloc_internal_nolock)
18808 (_free_internal_nolock): New functions created from
18809 _malloc_internal, _realloc_internal, and _free_internal.
18810 (_malloc_internal, _realloc_internal, _free_internal): Use them.
18811 Copy hook value to automatic variable before its use.
18812 (memalign): Copy hook value to automatic variable before its use.
18813
18814 2007-06-26 Kenichi Handa <handa@m17n.org>
18815
18816 * coding.c (Ffind_operation_coding_system): Docstring improved.
18817 (syms_of_coding): Docstring of `file-coding-system-alist' improved.
18818
18819 2007-06-25 David Kastrup <dak@gnu.org>
18820
18821 * keymap.c (Fcurrent_active_maps): Add `position' argument.
18822 (Fwhere_is_internal): Adjust call to `current-active-maps' to
18823 cater for additional parameter.
18824
18825 * keymap.h: Adjust number of parameters to `current-active-maps'.
18826
18827 * doc.c (Fsubstitute_command_keys): Adjust call of
18828 `current-active-maps'.
18829
18830 2007-06-25 David Kastrup <dak@gnu.org>
18831
18832 * callint.c (Fcall_interactively): Make the parsing of interactive
18833 specs somewhat more readable.
18834
18835 2007-06-23 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
18836
18837 * macterm.c (x_draw_fringe_bitmap) [MAC_OSX]: Extend fringe background
18838 to scroll bar gap also when bitmap fills fringe. Draw only foreground
18839 if extended background has already been filled.
18840
18841 2007-06-22 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
18842
18843 * macgui.h (USE_CG_DRAWING): Don't require USE_ATSUI.
18844 (USE_MAC_TOOLBAR): Require USE_CG_DRAWING.
18845
18846 * macmenu.c (mac_dialog_modal_filter, Fx_popup_dialog) [MAC_OSX]:
18847 Put special treatment for Fmessage_box, Fyes_or_no_p, and Fy_or_n_p
18848 in #if 0 as it is not compatible with y-or-n-p-with-timeout.
18849 (timer_check) [TARGET_API_MAC_CARBON]: Add extern.
18850 [TARGET_API_MAC_CARBON] (mac_handle_dialog_event): Use QuitEventLoop
18851 instead of QuitAppModalLoopForWindow. Consolidate QuitEventLoop calls.
18852 (pop_down_dialog) [TARGET_API_MAC_CARBON]: New function.
18853 [TARGET_API_MAC_CARBON] (create_and_show_dialog): Use it for unwind.
18854 Run timers during dialog popup.
18855 (Fmenu_or_popup_active_p) [TARGET_API_MAC_CARBON]: Use popup_activated.
18856
18857 2007-06-21 Jason Rumney <jasonr@gnu.org>
18858
18859 * image.c (convert_mono_to_color_image): Swap fore and background.
18860
18861 2007-06-20 Jason Rumney <jasonr@gnu.org>
18862
18863 * w32bdf.c (w32_BDF_to_x_font): Unmap memory when finished.
18864 (w32_free_bdf_font): Unmap memory not handle.
18865
18866 2007-06-20 Sam Steingold <sds@gnu.org>
18867
18868 * gmalloc.c (__morecore): Fix the declaration to comply with the
18869 definition.
18870
18871 2007-06-20 Juanma Barranquero <lekktu@gmail.com>
18872
18873 * w32term.c (w32_delete_display): Remove leftover declaration.
18874 (w32_define_cursor, w32_initialize): Make static.
18875
18876 * w32.c (_wsa_errlist): Fix typo in error message.
18877 (init_environment): Ignore any environment variable from the
18878 registry having a null value.
18879
18880 2007-06-20 Glenn Morris <rgm@gnu.org>
18881
18882 * Makefile.in (LIBGIF): Default to -lgif.
18883
18884 2007-06-17 Jason Rumney <jasonr@gnu.org>
18885
18886 * w32menu.c (add_menu_item): Don't use multibyte string functions on
18887 unicode strings.
18888
18889 2007-06-16 Juanma Barranquero <lekktu@gmail.com>
18890
18891 * xdisp.c (syms_of_xdisp) <auto-resize-tool-bars>:
18892 Fix typo in docstring.
18893
18894 2007-06-16 Eli Zaretskii <eliz@gnu.org>
18895
18896 * w32menu.c (add_menu_item): Escape `&' characters in menu items
18897 and their keybindings.
18898
18899 2007-06-15 Chong Yidong <cyd@stupidchicken.com>
18900
18901 * composite.c (update_compositions): Fix last fix.
18902
18903 2007-06-14 Jason Rumney <jasonr@gnu.org>
18904
18905 * w32.c (get_process_times_fn): New function pointer.
18906 (globals_of_w32): Intialize it if present in kernel32.dll.
18907 (w32_get_internal_run_time): New function.
18908
18909 * editfns.c (Fget_internal_run_time) [WINDOWSNT]: Use it.
18910
18911 2007-06-14 Kenichi Handa <handa@etlken.m17n.org>
18912
18913 * composite.c (update_compositions): Check the validness of
18914 compositions.
18915
18916 2007-06-14 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
18917
18918 * frame.h (struct frame) [MAC_OS]: New member external_tool_bar.
18919 (FRAME_EXTERNAL_TOOL_BAR) [MAC_OS]: Use it.
18920
18921 * macfns.c (mac_window) [USE_MAC_TOOLBAR]: Set toolbar_win_gravity.
18922 (x_set_tool_bar_lines) [USE_MAC_TOOLBAR]: Set FRAME_EXTERNAL_TOOL_BAR.
18923
18924 * macgui.h (USE_MAC_TOOLBAR): New define.
18925
18926 * macmenu.c [TARGET_API_MAC_CARBON] (menu_target_item_handler):
18927 Return immediately unless popup is activated.
18928
18929 * macterm.c (x_draw_fringe_bitmap) [MAC_OSX]: Extend fringe
18930 background to scroll bar gap.
18931 (x_scroll_bar_create) [MAC_OSX]: Set bar->fringe_extended_p.
18932 (XTset_vertical_scroll_bar) [MAC_OSX]: Put leftmost/rightmost
18933 scroll bars on frame edge. Check fringe background extension.
18934 Don't clear extended fringe background area.
18935 (TOOLBAR_IDENTIFIER, TOOLBAR_ICON_ITEM_IDENTIFIER)
18936 (TOOLBAR_ITEM_COMMAND_ID_OFFSET, TOOLBAR_ITEM_COMMAND_ID_P)
18937 (TOOLBAR_ITEM_COMMAND_ID_VALUE, TOOLBAR_ITEM_MAKE_COMMAND_ID):
18938 [USE_MAC_TOOLBAR]: New macros.
18939 (mac_move_window_with_gravity, mac_get_window_origin_with_gravity)
18940 (mac_handle_toolbar_event, mac_image_spec_to_cg_image)
18941 (mac_create_frame_tool_bar, update_frame_tool_bar, free_frame_tool_bar)
18942 (mac_tool_bar_note_mouse_movement, mac_handle_toolbar_command_event)
18943 [USE_MAC_TOOLBAR]: New functions.
18944 (mac_handle_window_event) [USE_MAC_TOOLBAR]: Reposition window
18945 manually if previous repositioning has failed.
18946 (mac_handle_keyboard_event): Use precomputed event kind.
18947 (XTread_socket) [USE_MAC_TOOLBAR]: Handle click in structure region
18948 as tool bar item click. Handle mouse movement over tool bar items.
18949
18950 * macterm.h (struct mac_output) [USE_MAC_TOOLBAR]: New member
18951 toolbar_win_gravity.
18952 (struct scroll_bar) [MAC_OSX]: New member fringe_extended_p.
18953 (update_frame_tool_bar, free_frame_tool_bar) [USE_MAC_TOOLBAR]:
18954 Add externs.
18955
18956 * xdisp.c (update_tool_bar, redisplay_tool_bar, redisplay_window)
18957 [USE_MAC_TOOLBAR]: Sync with GTK+ tool bar display.
18958
18959 2007-06-14 Chong Yidong <cyd@stupidchicken.com>
18960
18961 * image.c (search_image_cache): Remove unused variable.
18962
18963 2007-06-13 Chong Yidong <cyd@stupidchicken.com>
18964
18965 * xfns.c, xmenu.c: Link to xaw3d if available.
18966
18967 2007-06-13 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
18968
18969 * dispextern.h (struct image) [HAVE_WINDOW_SYSTEM]: New members
18970 frame_foreground and frame_background.
18971
18972 * image.c (lookup_image): Save frame foreground and background colors.
18973 (search_image_cache): Check if saved and current frame colors match.
18974
18975 2007-06-12 Stefan Monnier <monnier@iro.umontreal.ca>
18976
18977 * regex.c (regex_compile): Remove the `regnum' counter.
18978 Use bufp->re_nsub instead. Add support for \(?N:RE\).
18979
18980 2007-06-11 Stefan Monnier <monnier@iro.umontreal.ca>
18981
18982 * term.c: Include intervals.h to declare Fget_text_property.
18983
18984 2007-06-10 Jason Rumney <jasonr@gnu.org>
18985
18986 * w32fns.c (Fx_file_dialog): Take size from struct not pointer.
18987
18988 2007-06-08 Juanma Barranquero <lekktu@gmail.com>
18989
18990 * callint.c (Fcall_interactively):
18991 * editfns.c (Fdelete_and_extract_region):
18992 * fileio.c (Fread_file_name):
18993 * fns.c (Fmapconcat):
18994 * keyboard.c (cmd_error_internal):
18995 * keymap.c (Fkey_description):
18996 * lread.c (openp):
18997 * minibuf.c (read_minibuf):
18998 * search.c (wordify):
18999 * sunfns.c (sel_read):
19000 * xdisp.c (Fformat_mode_line, syms_of_xdisp):
19001 * xfns.c (x_default_scroll_bar_color_parameter):
19002 * xmenu.c (menu_help_callback):
19003 * xselect.c (Fx_get_atom_name):
19004 * xterm.c (x_term_init): Use empty_unibyte_string.
19005
19006 2007-06-08 Dmitry Antipov <dmantipov@yandex.ru> (tiny change)
19007
19008 * alloc.c (init_strings): Initialize canonical empty strings.
19009 (make_uninit_string, make_uninit_multibyte_string): Return appropriate
19010 canonical empty string when the requested size is 0.
19011
19012 * emacs.c (empty_unibyte_string): Rename from empty_string.
19013 (empty_multibyte_string): New canonical empty string.
19014 (syms_of_emacs): Don't initialize empty_string.
19015
19016 * lisp.h (STRING_SET_UNIBYTE): Return the canonical empty unibyte
19017 string, if appropriate.
19018 (empty_unibyte_string, empty_multibyte_string): New externs.
19019 (empty_string): Remove extern.
19020
19021 * lread.c (syms_of_lread): Use empty_unibyte_string.
19022
19023 2007-06-07 Jason Rumney <jasonr@gnu.org>
19024
19025 * s/ms-w32.h: Don't define HAVE_TZNAME.
19026
19027 * editfns.c (Fcurrent_time_zone): Remove hack for Japanese Windows.
19028
19029 2007-06-07 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
19030
19031 * mac.c (xrm_get_preference_database): Remove BLOCK_INPUT.
19032
19033 * macfns.c (mac_get_window_bounds): Move extern to macterm.h.
19034 (compute_tip_xy) [TARGET_API_MAC_CARBON]: Use GetGlobalMouse.
19035
19036 * macmenu.c [TARGET_API_MAC_CARBON] (menu_target_item_handler):
19037 Don't call next handler.
19038 [TARGET_API_MAC_CARBON] (install_menu_target_item_handler):
19039 Remove argument. Install handler to application.
19040 (set_frame_menubar): Don't change deep_p.
19041 (mac_menu_show): Use FRAME_OUTER_TO_INNER_DIFF_X and
19042 FRAME_OUTER_TO_INNER_DIFF_Y.
19043 (DIALOG_BUTTON_COMMAND_ID_OFFSET, DIALOG_BUTTON_COMMAND_ID_P)
19044 (DIALOG_BUTTON_COMMAND_ID_VALUE, DIALOG_BUTTON_MAKE_COMMAND_ID)
19045 [HAVE_DIALOGS]: New macros.
19046 [HAVE_DIALOGS] (mac_handle_dialog_event, create_and_show_dialog):
19047 Use them.
19048 (fill_menubar) [TARGET_API_MAC_CARBON]: Use CFString.
19049
19050 * macselect.c [MAC_OSX] (install_service_handler): Rename from
19051 init_service_handler. All callers changed. Return OSStatus value.
19052
19053 * macterm.c (mac_begin_cg_clip): New arg F. Call SetPortWindowPort.
19054 All callers changed so as not to call SetPortWindowPort.
19055 (mac_begin_cg_clip) [USE_CG_DRAWING]: Call mac_prepare_for_quickdraw.
19056 (mac_draw_image_string_atsui) [USE_ATSUI]: New function created from
19057 mac_draw_string_common.
19058 (mac_draw_image_string_qd): Likewise.
19059 (mac_draw_string_common): Use them. Add INLINE.
19060 (XTmouse_position, x_scroll_bar_report_motion) [TARGET_API_MAC_CARBON]:
19061 Use FRAME_OUTER_TO_INNER_DIFF_X, FRAME_OUTER_TO_INNER_DIFF_Y, and
19062 GetGlobalMouse.
19063 (x_set_mouse_pixel_position) [MAC_OSX]: Use FRAME_OUTER_TO_INNER_DIFF_X
19064 and FRAME_OUTER_TO_INNER_DIFF_Y.
19065 [TARGET_API_MAC_CARBON] (mac_handle_mouse_event): Likewise.
19066 [USE_MAC_TSM] (mac_handle_text_input_event): Likewise.
19067 (x_make_frame_visible) [TARGET_API_MAC_CARBON]: Move code for
19068 repositioning window to mac_handle_window_event.
19069 (x_make_frame_invisible) [TARGET_API_MAC_CARBON]: Move code for
19070 saving window location to mac_handle_window_event
19071 [USE_MAC_FONT_PANEL] (mac_show_hide_font_panel): Install handler here.
19072 (install_menu_target_item_handler): Remove argument in extern.
19073 [TARGET_API_MAC_CARBON] (mac_event_to_emacs_modifiers):
19074 Also accept command events.
19075 (do_keystroke): New function created from XTread_socket.
19076 (init_command_handler): Remove functions.
19077 [TARGET_API_MAC_CARBON] (mac_handle_window_event): Reposition window
19078 and save window location by kEventWindowShowing and kEventWindowHiding
19079 handlers here. Don't call next handler for window state change and
19080 focus events.
19081 (mac_handle_application_event, mac_handle_keyboard_event)
19082 [TARGET_API_MAC_CARBON]: New functions.
19083 (install_window_handler) [TARGET_API_MAC_CARBON]: Register handlers for
19084 kEventWindowShowing and kEventWindowHiding events. Move installation
19085 of mouse, font, text input and menu target item handlers to
19086 install_application_handler.
19087 (install_application_handler) [TARGET_API_MAC_CARBON]: New function.
19088 (mac_handle_cg_display_reconfig) [MAC_OS_X_VERSION_MAX_ALLOWED >= 1030]:
19089 New function.
19090 (init_dm_notification_handler) [MAC_OS_X_VERSION_MAX_ALLOWED >= 1030]:
19091 Register it.
19092 (XTread_socket) [TARGET_API_MAC_CARBON]:
19093 Consolidate SendEventToEventTarget calls.
19094 Use FRAME_OUTER_TO_INNER_DIFF_X and FRAME_OUTER_TO_INNER_DIFF_Y.
19095 Move application activation handler to mac_handle_application_event.
19096 Move keyboard handler to mac_handle_keyboard_event.
19097 (XTread_socket) [!TARGET_API_MAC_CARBON]: Use do_keystroke.
19098 (mac_initialize) [TARGET_API_MAC_CARBON]: Don't call
19099 init_command_handler. Call install_application_handler.
19100
19101 * macterm.h (mac_get_window_bounds): Move extern from macfns.c.
19102 (FRAME_OUTER_TO_INNER_DIFF_X, FRAME_OUTER_TO_INNER_DIFF_Y): New macros.
19103
19104 2007-06-07 Glenn Morris <rgm@gnu.org>
19105
19106 * emacs.c (main): Use `emacs-copyright' in --version output.
19107
19108 2007-06-06 Chong Yidong <cyd@stupidchicken.com>
19109
19110 * image.c (xpm_load): Remove spurious call to xpm_init_color_cache.
19111
19112 2007-06-06 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
19113
19114 * macfns.c (mac_window): Replace WindowPtr with WindowRef.
19115
19116 * macgui.h: Replace WindowPtr with WindowRef.
19117
19118 * macmenu.c: Replace MenuHandle and GetMenuHandle with MenuRef and
19119 GetMenuRef, respectively. Replace WindowPtr with WindowRef.
19120 Replace ControlHandle with ControlRef.
19121 (install_menu_quit_handler): Rename arg MENU_HANDLE to ROOT_MENU.
19122
19123 * macterm.c: Replace MenuHandle and GetMenuHandle with MenuRef and
19124 GetMenuRef, respectively. Replace WindowPtr with WindowRef.
19125 Replace ControlHandle with ControlRef.
19126 (USE_CARBON_EVENTS): Remove. Use TARGET_API_MAC_CARBON instead.
19127 [MAC_OS8] (do_get_menus): Rename variable `menu_handle' to `menu'.
19128
19129 * macterm.h (struct scroll_bar): Rename member control_handle_low
19130 and control_handle_high to control_ref_low and control_ref_high.
19131 All uses changed.
19132 (SCROLL_BAR_CONTROL_REF, SET_SCROLL_BAR_CONTROL_REF): Rename from
19133 SCROLL_BAR_CONTROL_HANDLE and SET_SCROLL_BAR_CONTROL_HANDLE,
19134 respectively. All uses changed.
19135 (XCreatePixmap, XCreatePixmapFromBitmapData, XSetWindowBackground)
19136 (install_window_handler, remove_window_handler): Replace WindowPtr
19137 with WindowRef in externs.
19138
19139 2007-06-05 Juanma Barranquero <lekktu@gmail.com>
19140
19141 * xfaces.c (Finternal_lisp_face_p): Signal error for face alias loops.
19142
19143 2007-06-03 Nick Roberts <nickrob@snap.net.nz>
19144
19145 * keyboard.c (discard_mouse_events): Add GPM_CLICK_EVENT case.
19146
19147 * frame.c (Fmouse_position, Fmouse_pixel_position):
19148 Condition on HAVE_GPM too.
19149
19150 * term.c (term_mouse_highlight): Remove unused variables.
19151 (Fterm_open_connection): Set gpm_zerobased to 1.
19152 (term_mouse_movement, term_mouse_click, handle_one_term_event):
19153 Use zero based co-ordinates.
19154 (handle_one_term_event): Report a drag as mouse movement too.
19155
19156 * Makefile.in (MOUSE_SUPPORT): Define for HAVE_GPM.
19157
19158 2007-06-03 Chong Yidong <cyd@stupidchicken.com>
19159
19160 * image.c (search_image_cache): New function. Require background
19161 color match if background color is unspecified in the image spec.
19162 (uncache_image, lookup_image): Use it.
19163
19164 2007-06-01 Juanma Barranquero <lekktu@gmail.com>
19165
19166 * window.c (Fshrink_window): Reflow docstring.
19167
19168 2007-06-02 Chong Yidong <cyd@stupidchicken.com>
19169
19170 * Version 22.1 released.
19171
19172 2007-06-01 Richard Stallman <rms@gnu.org>
19173
19174 * xfns.c (x_encode_text): Add GCPRO.
19175
19176 2007-06-01 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
19177
19178 * xfns.c (x_set_name_internal): Save encoded name before
19179 x_encode_text in case string data is relocated.
19180
19181 2007-05-31 Richard Stallman <rms@gnu.org>
19182
19183 * buffer.c (syms_of_buffer): Doc fix.
19184
19185 2007-05-30 Nick Roberts <nickrob@snap.net.nz>
19186
19187 * sysdep.c (init_sys_modes): Add rather than replace with
19188 O_NONBLOCK.
19189
19190 * frame.c [HAVE_GPM] (Fset_mouse_pixel_position): Add call to
19191 term_mouse_moveto.
19192
19193 * termhooks.h (term_mouse_moveto): New extern.
19194
19195 * term.c (mouse_face_window): Rename...
19196 (Qmouse_face_window): ...to this.
19197 (term_show_mouse_face, term_clear_mouse_face)
19198 (term_mouse_highlight): Use Qmouse_face_window.
19199 (term_mouse_moveto): New function.
19200 (term_mouse_position): Make it work.
19201 (syms_of_term): Uncomment assignment to mouse_position_hook.
19202 Staticpro Qmouse_face_window.
19203
19204 2007-05-28 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
19205
19206 * xdisp.c (redisplay_internal): Bind inhibit-point-motion-hooks to t
19207 around current_column call.
19208
19209 2007-05-26 Dan Nicolaescu <dann@ics.uci.edu>
19210
19211 * xfaces.c (syms_of_xfaces): Delete stray semicolon.
19212 * xdisp.c (next_element_from_buffer):
19213 * window.c (delete_window):
19214 * term.c (term_mouse_highlight):
19215 * msdos.c (getdefdir):
19216 * macterm.c (mac_create_bitmap_from_bitmap_data)
19217 (init_font_name_table):
19218 * fns.c (Fsxhash):
19219 * data.c (Fmake_local_variable):
19220 * ccl.c (ccl_driver): Likewise.
19221
19222 2007-05-24 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
19223
19224 * macterm.c [USE_CARBON_EVENTS] (mac_handle_window_event):
19225 Call mac_wakeup_from_rne on window size change.
19226
19227 2007-05-25 Chong Yidong <cyd@stupidchicken.com>
19228
19229 * image.c (uncache_image): Fix typo.
19230
19231 2007-05-23 Johannes Weiner <hannes@saeurebad.de> (tiny change)
19232
19233 * keyboard.c (make_lispy_movement): Condition on HAVE_GPM too.
19234
19235 2007-05-22 Richard Stallman <rms@gnu.org>
19236
19237 * xterm.c (x_connection_closed): Remove NO_RETURN.
19238
19239 2007-05-22 Martin Rudalics <rudalics@gmx.at>
19240
19241 * syntax.c (scan_words): Fix arg to UPDATE_SYNTAX_TABLE_BACKWARD.
19242
19243 2007-05-21 Chong Yidong <cyd@stupidchicken.com>
19244
19245 * image.c (uncache_image): New function.
19246 (Fimage_refresh): New function.
19247
19248 2007-05-20 Jan Djärv <jan.h.d@swipnet.se>
19249
19250 * Makefile.in: Move GPM check outside HAVE_X_WINDOWS.
19251
19252 2007-05-20 Nick Roberts <nickrob@snap.net.nz>
19253
19254 * config.in, keyboard.c, Makefile.in, sysdep.c, term.c,
19255 * termhooks.h: Use HAVE_GPM instead of HAVE_GPM_H.
19256
19257 2007-05-20 Nick Roberts <nickrob@snap.net.nz>
19258
19259 * keyboard.c (make_lispy_event): Make case GPM_CLICK_EVENT
19260 conditional on [HAVE_GPM_H].
19261
19262 2007-05-19 Stefan Monnier <monnier@iro.umontreal.ca>
19263
19264 * syntax.c (skip_chars): Update syntax-table only after we checked that
19265 the new location is valid.
19266
19267 2007-05-19 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
19268
19269 * macterm.c (x_calc_absolute_position): Add BLOCK_INPUT around
19270 mac_get_window_bounds.
19271
19272 2007-05-20 Nick Roberts <nickrob@snap.net.nz>
19273
19274 * Makefile.in (LIBGPM): Allow it to be set from configure.
19275 If set then link Emacs with it.
19276
19277 * config.in: Regenerate.
19278
19279 * lisp.h (add_gpm_wait_descriptor, delete_gpm_wait_descriptor):
19280 New externs.
19281
19282 * termhooks.h [HAVE_GPM_H] (enum event_kind): Add GPM_CLICK_EVENT.
19283 Include gpm.h.
19284 (handle_one_term_event, term_gpm): New externs.
19285
19286 * sysdep.c [HAVE_GPM_H] (init_sys_modes): Make gpm_fd nonblocking
19287 and allow it to be interrupted by SIGIO.
19288
19289 * process.c (gpm_wait_mask, max_gpm_desc): New variables.
19290 (wait_reading_process_output): Wait on gpm_fd too.
19291 (add_gpm_wait_descriptor, delete_gpm_wait_descriptor)): New functions.
19292 (add_gpm_wait_descriptor_called_flag): New variable.
19293 (delete_keyboard_wait_descriptor): Check gpm_wait_mask.
19294
19295 * keyboard.c [HAVE_GPM_H] (Qmouse_fixup_help_message)
19296 (make_lispy_movement, tracking_off, Ftrack_mouse, some_mouse_moved)
19297 (show_help_echo, readable_events, kbd_buffer_get_event, init_keyboard):
19298 Extend HAVE_MOUSE ifdefs to HAVE_GPM_H.
19299 (make_lispy_event): Add case GPM_CLICK_EVENT.
19300 (read_avail_input): Handle mouse input.
19301
19302 * term.c (write_glyphs_with_face): New function.
19303 [HAVE_GPM_H]: Include buffer.h, sys/fcntl.h.
19304 (mouse_face_beg_row, mouse_face_beg_col, mouse_face_end_row)
19305 (mouse_face_end_col, mouse_face_past_end, mouse_face_window)
19306 (mouse_face_face_id, term_gpm, pos_x, pos_y)
19307 (last_mouse_x, last_mouse_y): New variables.
19308 (term_show_mouse_face, term_clear_mouse_face, fast_find_position)
19309 (term_mouse_highlight, term_mouse_movement, term_mouse_position)
19310 (term_mouse_click, handle_one_term_event, Fterm_open_connection)
19311 (Fterm_close_connection): New functions.
19312 (term_init): Initialise mouse_face_window.
19313
19314 2007-05-19 Chong Yidong <cyd@stupidchicken.com>
19315
19316 * xdisp.c (redisplay_window): If first window line is a
19317 continuation line, recompute the new window start instead of
19318 recentering.
19319
19320 2007-05-18 Glenn Morris <rgm@gnu.org>
19321
19322 * m/alpha.h (ORDINARY_LINK): No longer define on OpenBSD.
19323 Suggested by Alfred M. Szmidt <ams@gnu.org>.
19324
19325 2007-05-17 Glenn Morris <rgm@gnu.org>
19326
19327 * m/macppc.h (ORDINARY_LINK): No longer define on OpenBSD.
19328
19329 2007-05-16 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
19330
19331 * macterm.c [USE_CARBON_EVENTS] (mac_convert_event_ref): Also convert
19332 dead key repeat and up events.
19333
19334 2007-05-14 Chong Yidong <cyd@stupidchicken.com>
19335
19336 * image.c (pbm_load): Check image size for monochrome pbm.
19337
19338 2007-05-13 Chong Yidong <cyd@stupidchicken.com>
19339
19340 * xterm.c (XTread_socket): Revert last change.
19341
19342 2007-05-12 Chong Yidong <cyd@stupidchicken.com>
19343
19344 * image.c (pbm_load): Correctly check image size for greyscale pbm.
19345
19346 * xterm.c (XTread_socket): Yet Another Uncaught X Error Crash (YAUXEC).
19347
19348 2007-05-07 Stefan Monnier <monnier@iro.umontreal.ca>
19349
19350 * editfns.c (Ftranspose_regions): Yet another int/Lisp_Object
19351 mixup (YAILOM).
19352
19353 2007-05-07 Andreas Schwab <schwab@suse.de>
19354
19355 * keymap.c (Flookup_key): Fix typo in last change.
19356
19357 2007-05-07 Stefan Monnier <monnier@iro.umontreal.ca>
19358
19359 * keymap.c (Fdefine_key, Flookup_key): Only do the 0x80->meta_modifier
19360 mapping for unibyte strings.
19361
19362 2007-05-01 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
19363
19364 * macmenu.c (mac_dialog_show): Apply 2007-04-27 change for xmenu.c.
19365 (Fx_popup_dialog) [MAC_OSX]: Likewise.
19366
19367 2007-04-29 Richard Stallman <rms@gnu.org>
19368
19369 * insdel.c (replace_range): For undo, record insertion first.
19370
19371 2007-04-29 Andreas Schwab <schwab@suse.de>
19372
19373 * lisp.h (VECSIZE): Use OFFSETOF.
19374
19375 2007-04-29 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
19376
19377 * xdisp.c (try_window_reusing_current_matrix): Fix number of
19378 disabled lines.
19379
19380 2007-04-28 Richard Stallman <rms@gnu.org>
19381
19382 * lread.c (read_escape): In a string, \s is always space.
19383
19384 2007-04-27 Jan Djärv <jan.h.d@swipnet.se>
19385
19386 * xmenu.c (xdialog_show): Call Fredisplay before showing the dialog.
19387
19388 * gtkutil.c (xg_update_menubar, create_menus): Create empty
19389 submenu for menu bar items.
19390
19391 See ChangeLog.10 for earlier changes.
19392
19393 ;; Local Variables:
19394 ;; coding: utf-8
19395 ;; add-log-time-zone-rule: t
19396 ;; End:
19397
19398 Copyright (C) 2007, 2008, 2009 Free Software Foundation, Inc.
19399
19400 This file is part of GNU Emacs.
19401
19402 GNU Emacs is free software: you can redistribute it and/or modify
19403 it under the terms of the GNU General Public License as published by
19404 the Free Software Foundation, either version 3 of the License, or
19405 (at your option) any later version.
19406
19407 GNU Emacs is distributed in the hope that it will be useful,
19408 but WITHOUT ANY WARRANTY; without even the implied warranty of
19409 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
19410 GNU General Public License for more details.
19411
19412 You should have received a copy of the GNU General Public License
19413 along with GNU Emacs. If not, see <http://www.gnu.org/licenses/>.
19414
19415 ;; arch-tag: dfb6ad96-1550-4905-9e53-d2059ee84c40