* nsfont.m (ns_findfonts): Correctly return fallback in match case.
[bpt/emacs.git] / src / ChangeLog
1 2009-07-24 Adrian Robert <Adrian.B.Robert@gmail.com>
2
3 * nsfont.m (ns_findfonts): Correctly return fallback in match case.
4
5 2009-07-23 Yavor Doganov <yavor@gnu.org>
6
7 * nsfont.m (NSFontDescriptor.h): Explicitly include under GNUstep.
8
9 2009-07-23 Adrian Robert <Adrian.B.Robert@gmail.com>
10
11 * nsterm.m (EmacsView-keyUp:): Only act when running under Tiger.
12 Bugs 3792, 3720, 2402.
13 (ns_lookup_indexed_color): Check for bad index.
14 (ns_index_color): Init unused slot to 0.
15 (ns_dumpglyphs_box_or_relief): Replace useless xassert with an if().
16 Bug 3714, possibly 3082.
17
18 2009-07-22 Jason Rumney <jasonr@gnu.org>
19
20 * w32fns.c (w32_wnd_proc) [WM_IME_STARTCOMPOSITION]: Position
21 IME window at cursor (Bug#2570).
22 (w32_wnd_proc) [WM_IME_CHAR]: Release context when finished.
23 (globals_of_w32fns): Dynamically load functions required above.
24
25 * w32term.c (w32_draw_window_cursor): Send message to reposition
26 any IME window.
27
28 2009-07-21 Chong Yidong <cyd@stupidchicken.com>
29
30 * fileio.c: Revert 2009-07-16 changes.
31 (Vauto_save_include_big_deletions): New variable.
32 (Fdo_auto_save): Disable auto-save only if
33 auto-save-include-big-deletions is nil.
34
35 2009-07-21 Chong Yidong <cyd@stupidchicken.com>
36
37 * xdisp.c (move_it_to): For continued lines ending in a tab, take
38 the overflowed pixels into account (Bug#3879).
39
40 2009-07-21 Ken Raeburn <raeburn@raeburn.org>
41
42 * lread.c (load_depth): New variable.
43 (Fload, load_unwind, init_lread): Set it to the load recursion
44 depth; set load_in_progress as a simple boolean based on the
45 current load_depth. (Bug#3892)
46
47 2009-07-20 Adrian Robert <Adrian.B.Robert@gmail.com>
48
49 * nsfont.m (ns_has_attribute): Remove.
50 (ns_findfonts, nsfont_open): Use ns_attribute_fvalue() instead.
51
52 2009-07-18 Juri Linkov <juri@jurta.org>
53
54 * process.c (Fset_process_query_on_exit_flag): Mention killing
55 a buffer in docstring.
56
57 2009-07-17 Kenichi Handa <handa@m17n.org>
58
59 * casetab.c (shuffle): Fix the logic of setting up the cycle.
60
61 2009-07-16 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
62
63 * nsfns.m (Fns_set_alpha): Remove function.
64 (syms_of_nsfns): Don't defsubr it.
65
66 * nsterm.m (ns_get_color): Remove incompatible color formats.
67 (ns_color_to_lisp): Generate #rrggbb color format string.
68
69 2009-07-16 Richard Stallman <rms@gnu.org>
70
71 * fileio.c (Fwrite_region, Fdo_auto_save): Handle save_length = -2.
72 (Fset_buffer_auto_saved): Handle save_length = -2.
73
74 2009-07-16 Chong Yidong <cyd@stupidchicken.com>
75
76 * xterm.c (Qx_gtk_map_stock): New var.
77
78 * gtkutil.c (update_frame_tool_bar): Use Qx_gtk_map_stock instead
79 of calling intern each time.
80
81 2009-07-15 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
82
83 * nsfont.m (nsfont_draw): Remove code for stippling, which actually
84 does tiling.
85
86 * nsterm.m (ns_maybe_dumpglyphs_background): Likewise.
87
88 2009-07-14 Kenichi Handa <handa@m17n.org>
89
90 * font.c (font_vconcat_entity_vectors): New function.
91 (struct font_sort_data): New member font_driver_preference.
92 (font_compare): Check font_driver_preference.
93 (font_sort_entities): The format of the first argument changed.
94 (font_delete_unmatched): Likewise.
95 (font_list_entities): The return type changed.
96 (font_select_entity): The format of the second argument changed.
97 (font_find_for_lface): Adjusted for the above changes. Don't
98 suppress the checking of C even if the repertory supports it.
99 (Flist_fonts): Adjusted for the above changes.
100
101 * ftfont.c (ftfont_spec_pattern): New arg langname. Caller
102 changed.
103 (ftfont_list): Adjusted for the change of ftfont_spec_pattern.
104 Reject a font who has adstyle property that is different from a
105 langname derived from registry property.
106 (ftfont_match): Adjusted for the change of ftfont_spec_pattern.
107
108 2009-07-13 Eli Zaretskii <eliz@gnu.org>
109
110 * dired.c (directory_files_internal) [WINDOWSNT]: Don't make a
111 local copy of dirfilename.
112
113 2009-07-13 Kenichi Handa <handa@m17n.org>
114
115 * chartab.c (sub_char_table_ref_and_range): Fix the range check
116 against max_char.
117
118 * cmds.c (internal_self_insert): Check sym by SYMBOLP before
119 calling XSYMBOL (sym).
120
121 2009-07-11 Eli Zaretskii <eliz@gnu.org>
122
123 * dired.c (directory_files_internal_w32_unwind) [WINDOWSNT]: New
124 function.
125 (directory_files_internal) [WINDOWSNT]: Bind
126 w32-get-true-file-attributes to either t or nil, depending whether
127 the filesystem of the directory is fast or slow.
128
129 * w32.c (logon_network_drive): Don't assume PATH is an absolute
130 file name.
131 (is_slow_fs): New function.
132 (stat): Use it to determine whether to issue more system calls to
133 get accurate file attributes, when w32-get-true-file-attributes is
134 `local'.
135
136 2009-07-10 Jan Djärv <jan.h.d@swipnet.se>
137
138 * xfns.c (Fx_select_font): Remember last font selected in
139 x_last_font_name and use that the next time. Also try the frame
140 parameter font-parameter as default to the font dialog.
141
142 2009-07-10 Kenichi Handa <handa@m17n.org>
143
144 * xftfont.c (xftfont_open): Fix typo: FC_RGBA->FC_HINT_STYLE.
145
146 2009-07-09 Eli Zaretskii <eliz@gnu.org>
147
148 * w32proc.c (syms_of_ntproc) <w32-get-true-file-attributes>: Doc
149 fix.
150
151 * w32.c (stat): Treat UNC file names as residing on remote
152 drives. (Bug#3542)
153
154 2009-07-09 Kenichi Handa <handa@m17n.org>
155
156 * fontset.c (fontset_find_font): Fix previous change.
157
158 2009-07-08 Michael Albinus <michael.albinus@gmx.de>
159
160 * dbusbind.c (xd_initialize, Fdbus_call_method, xd_read_message)
161 (Fdbus_register_signal, Fdbus_register_method): Cleanup memory of
162 error flag.
163
164 2009-07-08 Kenichi Handa <handa@m17n.org>
165
166 * fontset.c (fontset_find_font): Fix the logic of handling
167 charset_matched.
168 (font_for_char): Delete unused var.
169 (generate_ascii_font_name): Delete it.
170
171 * coding.h (JIS_TO_SJIS2): Fix the code range check.
172
173 * coding.c (detect_coding_sjis): Handle shift_jis-2004 correctly.
174 (encode_coding_sjis): Fix the code range check.
175
176 2009-07-07 Chong Yidong <cyd@stupidchicken.com>
177
178 * fileio.c (Fsubstitute_in_file_name, Ffile_name_directory)
179 (Fexpand_file_name): Copy string data properly (Bug#3772).
180
181 2009-07-07 Jan Djärv <jan.h.d@swipnet.se>
182
183 * xterm.c (handle_one_xevent): Only call x_check_fullscreen on the
184 first MapNotify.
185
186 2009-07-07 Kenichi Handa <handa@m17n.org>
187
188 * character.h (unibyte_has_multibyte_table): Delete extern.
189 (UNIBYTE_CHAR_HAS_MULTIBYTE_P): Delete it.
190
191 * charset.c (Fset_charset_priority): Update charset_unibyte.
192 (syms_of_charset): Initialize charset_unibyte.
193
194 * character.c (unibyte_has_multibyte_table): Delete it.
195 (multibyte_char_to_unibyte): Use CHAR_TO_BYTE8 instead of checking
196 charset_unibyte.
197 (multibyte_char_to_unibyte_safe): Likewise.
198 (Funibyte_char_to_multibyte): Don't check charset_unibyte.
199
200 * xdisp.c (get_next_display_element): Decode it->c by
201 charset_unibyte.
202 (x_produce_glyphs): Likewise.
203
204 * .gdbinit (xcharset): Fix the treating $arg0.
205
206 2009-07-04 Eli Zaretskii <eliz@gnu.org>
207
208 Emulation of `getloadavg' on MS-Windows.
209 * w32.c: Include float.h
210 (g_b_init_get_native_system_info, g_b_init_get_system_times)
211 (GetNativeSystemInfo_Proc, GetSystemTimes_Proc): Declare.
212 (get_native_system_info, get_system_times): New functions.
213 (buf_next, buf_prev, sample_system_load, getavg): New subroutines.
214 (getloadavg): Rewrite using GetSystemTimes and GetNativeSystemInfo.
215 (globals_of_w32): Initialize g_b_init_get_native_system_info,
216 g_b_init_get_system_times, and num_of_processors.
217
218 2009-07-03 Jason Rumney <jasonr@gnu.org>
219
220 * w32term.c (w32_initialize): Use standard types.
221
222 2009-07-03 Eli Zaretskii <eliz@gnu.org>
223
224 * dired.c (Ffile_attributes): Decode user and group names by the
225 locale's encoding. (Bug#3443)
226
227 2009-07-03 Dan Nicolaescu <dann@ics.uci.edu>
228
229 * sysdep.c (sys_suspend): Remove USG_JOBCTRL #ifdef, unused.
230 (mkdir): Remove MKDIR_PROTOTYPE #ifdef, unused.
231
232 * callproc.c (child_setup): Use #else instead of a separate #ifdef.
233
234 * term.c (init_tty): Remove spurious #ifdef.
235
236 * m/mips.h: Mention this file is also used for netbsd.
237 * m/pmax.h: Remove file.
238
239 2009-07-03 Jan Djärv <jan.h.d@swipnet.se>
240
241 * xterm.h (struct x_display_info): Add invisible_cursor.
242 (struct x_output): Add current_cursor.
243
244 * xterm.c (XTtoggle_invisible_pointer): New function.
245 (x_define_frame_cursor): Don't define cursor if invisible or the
246 same as before. Set current_cursor.
247 (x_create_terminal): Set toggle_invisible_pointer_hook.
248
249 * xfns.c (make_invisible_cursor): New function.
250 (x_set_mouse_color): Call make_invisible_cursor.
251 Set current_cursor.
252 (x_window): Set current_cursor.
253
254 * termhooks.h (struct terminal): Add toggle_invisible_pointer_hook.
255
256 * keyboard.c (command_loop_1): Call frame_make_pointer_invisible after
257 inserting a character.
258 (read_avail_input): Call frame_make_pointer_visible.
259
260 * frame.c (Vmake_pointer_invisible): New variable.
261 (frame_make_pointer_invisible, frame_make_pointer_visible): New
262 functions.
263 (syms_of_frame): DEFVAR make-pointer-invisible, initialize to Qt.
264
265 * frame.h: Declare frame_make_pointer_invisible and
266 frame_make_pointer_visible.
267 (struct frame): Add pointer_invisible.
268
269 2009-07-02 Jan Djärv <jan.h.d@swipnet.se>
270
271 * gtkutil.c (xg_frame_set_char_size): Do set width/height if the
272 frame isn't visible.
273 (xg_frame_resized): If width/height is -1, get size of window
274 from X server.
275
276 * xterm.c (handle_one_xevent): Call xg_frame_resized for USE_GTK
277 for MapNotify.
278
279 * gtkutil.c (xg_frame_set_char_size): Do not set pixel width/height
280 here or call change_frame_size. Just call flush_and_sync.
281 (flush_and_sync): Reintroduced.
282
283 2009-07-01 Jan Djärv <jan.h.d@swipnet.se>
284
285 * xterm.h (struct x_display_info): Add Xatom_net_wm_state_sticky
286
287 * xterm.c (x_handle_net_wm_state): Also look for sticky.
288 (x_term_init): Initialize Xatom_net_wm_state_sticky.
289
290 * frame.h: Declare Qsticky.
291
292 * w32fns.c (w32_frame_parm_handlers): Set 0 for sticky.
293
294 * nsfns.m (ns_frame_parm_handlers): Ditto.
295
296 * frame.c: Declare Qsticky.
297 (frame_parms): Add sticky.
298
299 * xfns.c (x_frame_parm_handlers): Let x_set_sticky handle sticky.
300
301 * xterm.h: Declare x_set_sticky.
302
303 * xterm.c (x_set_sticky): New function.
304
305 * gtkutil.c (xg_tool_bar_proxy_help_callback): New function.
306 (xg_tool_bar_menu_proxy): Attach enter/leave events to
307 xg_tool_bar_proxy_help_callback.
308
309 * emacs.c (USAGE3, standard_args): Add -mm and --maximized.
310
311 * frame.c: Qmaximized is new.
312 (x_set_frame_parameters): Do not handle fullscreen specially.
313 Only set width and height if explicitly set.
314 (x_set_fullscreen): Handle Qmaximized.
315 (x_set_font, x_figure_window_size): Do not handle fullscreen specially.
316 (syms_of_frame): Initialize Qmaximized.
317
318 * frame.h (fullscreen_type): Add FULLSCREEN_MAXIMIZED. Declare
319 Qfullwidth, Qfullheight, Qfullboth, Qmaximized.
320
321 * xterm.c (handle_one_xevent): Remove call to x_check_fullscreen
322 for Expose event. Add call to x_check_fullscreen for MapNotify event.
323 Remove all code w.r.t. fullscreen from ConfigureNotify event. Do not
324 set gravity to NorthWestGravity when USE_GTK.
325 (set_wm_state): New function.
326 (do_ewmh_fullscreen): Use set_wm_state. Also handle FULLSCREEN_MAXIMIZED.
327 (x_handle_net_wm_state): Handle FULLSCREEN_MAXIMIZED.
328 (x_check_fullscreen): Simplify so we only handle EMWH type of fullscreen
329 or the case when no window manager is running. That means remove calls
330 to x_real_positions and x_fullscreen_adjust.
331
332 * gtkutil.c (flush_and_sync, x_wm_size_hint_off): Remove.
333 (xg_frame_set_char_size): Remove calls to x_wm_size_hint_off and
334 flush_and_sync.
335 (xg_height_changed): New function.
336 (xg_create_frame_widgets): Remove call to gtk_widget_set_size_request
337 and gtk_window_set_policy. Set frame gravity after parsing the geometry
338 string.
339 (xg_update_frame_menubar, free_frame_menubar)
340 (xg_tool_bar_detach_callback, xg_tool_bar_attach_callback)
341 (update_frame_tool_bar, free_frame_tool_bar): Call xg_height_changed.
342 Remove calls to xg_frame_set_char_size.
343
344 2009-07-01 Kenichi Handa <handa@m17n.org>
345
346 * keyboard.c (decode_keyboard_code): New function.
347 (tty_read_avail_input): Decode the input bytes if necessary.
348
349 * coding.c (setup_coding_system): Initialize
350 coding->carryover_bytes to 0.
351 (Fset_keyboard_coding_system_internal): If CODING-SYSTEM is nil,
352 use Qno_conversion.
353
354 2009-07-01 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
355
356 * Makefile.in (SOME_MACHINE_LISP): Add ../lisp/term/common-win.elc.
357
358 2009-06-30 Chong Yidong <cyd@stupidchicken.com>
359
360 * xftfont.c (xftfont_open): Avoid passing NULL argument to
361 XftLockFace.
362
363 2009-06-30 Jason Rumney <jasonr@gnu.org>
364
365 * w32term.c (w32_initialize): Use GetModuleHandle for library that
366 is already loaded.
367 Set user model ID if supported (bug#1849).
368
369 2009-06-29 Jim Meyering <meyering@redhat.com>
370
371 Remove useless if-before-xfree test.
372 * nsfont.m (nsfont_close): Remove useless test.
373 * term.c (delete_tty): Likewise.
374 * w32.c (system_process_attributes): Likewise.
375 * w32font.c (w32font_close): Likewise.
376 * xfaces.c (x_free_gc): Likewise.
377 * xselect.c (buffer): Likewise.
378
379 2009-06-28 Andreas Schwab <schwab@linux-m68k.org>
380
381 * process.c (send_process): Keep decoded string in a local
382 variable and protect it from GC. (Bug#3521)
383
384 2009-06-28 Eli Zaretskii <eliz@gnu.org>
385
386 * term.c (create_tty_output) [MSDOS]: #ifdef away.
387 (tty_free_frame_resources) [MSDOS]: Add a DOS-specific version.
388
389 2009-06-28 Chong Yidong <cyd@stupidchicken.com>
390
391 * xdisp.c (start_display, handle_face_prop)
392 (move_it_vertically_backward, cursor_row_fully_visible_p)
393 (redisplay_window, try_window_id, produce_image_glyph): Delete
394 some #ifdef-ed out code chunks that are now obsolete.
395
396 * xterm.c (x_update_window_begin, x_new_focus_frame)
397 (x_scroll_bar_handle_click, handle_one_xevent)
398 (handle_one_xevent, XTread_socket, x_focus_on_frame)
399 (x_make_frame_visible, x_make_frame_invisible)
400 (x_wm_set_icon_pixmap, x_initialize): Delete some #ifdef-ed out
401 code chunks that are now obsolete.
402
403 2009-06-28 Michael Albinus <michael.albinus@gmx.de>
404
405 * dbusbind.c (XD_SYMBOL_TO_DBUS_TYPE): Convert macro into function
406 xd_symbol_to_dbus_type. With Solaris 2.11, it was said to compile
407 for hours, when optimzation is enabled.
408 (xd_signature, xd_append_arg, xd_retrieve_arg, xd_initialize)
409 (xd_read_message): Make them static.
410
411 2009-06-27 Chuck Blake <cblake@pdos.csail.mit.edu> (tiny change)
412
413 * term.c (turn_on_face): Allow simultaneously bold and dim
414 terminal faces (Bug#3530).
415
416 2009-06-27 Chong Yidong <cyd@stupidchicken.com>
417
418 * frame.c (x_get_arg): Check if dpyinfo is non-NULL.
419
420 * xdisp.c (mouse_face_from_buffer_pos): Fix detection of
421 truncation glyphs (Bug#3686).
422
423 2009-06-27 Glenn Morris <rgm@gnu.org>
424
425 * m/pmax.h: Restore file, with only netbsd portions.
426
427 2009-06-26 David Reitter <david.reitter@gmail.com>
428
429 * nsterm.m (keydown): Avoid infinite loop.
430
431 2009-06-26 Peter Jolly <peter@jollys.org> (tiny change)
432
433 * ftfont.c (get_adstyle_property): Call font_intern_prop with 1 as
434 the arg FORCE_SYMBOL.
435
436 2009-06-25 Kenichi Handa <handa@m17n.org>
437
438 * fontset.c (fontset_find_font): When a usable rfont_def is found
439 in a fallback font-group, make it the first element of the group.
440
441 2009-06-24 Chong Yidong <cyd@stupidchicken.com>
442
443 * emacs-icon.h: Always define gnu_xpm_bits on GTK (bug#3671).
444
445 2009-06-24 Kenichi Handa <handa@m17n.org>
446
447 * fontset.c (fontset_get_font_group): Return 0 if no font-group is
448 set for C.
449 (fontset_font): Record the availability of a font for C both in
450 the realized fontsets of the current one and the default one.
451
452 2009-06-23 Dan Nicolaescu <dann@ics.uci.edu>
453
454 * sysdep.c (child_setup_tty): Remove SIGNALS_VIA_CHARACTERS
455 conditional, it is always defined on AIX.
456
457 2009-06-23 Miles Bader <miles@gnu.org>
458
459 * window.c (Vrecenter_redisplay): New variable.
460 (syms_of_window): Initialize it.
461 (Qtty): New extern declaration.
462 (Frecenter): Only do redisplay if Vrecenter_redisplay requests it.
463
464 2009-06-23 Jim Meyering <meyering@redhat.com>
465
466 * src/ftfont.c (setup_otf_gstring, ftfont_shape_by_flt): Use
467 xmalloc and xrealloc (not malloc and realloc), so subsequent heap
468 pointer dereferences are guaranteed to be valid.
469
470 2009-06-23 Kenichi Handa <handa@m17n.org>
471
472 * emacs.c (main): Call init_font ().
473
474 * font.h (Vfont_log): Extern it.
475 (FONT_ADD_LOG, FONT_DEFERRED_LOG): New macros.
476
477 * font.c (font_sort_entities, font_list_entities)
478 (font_matching_entity, font_open_entity)
479 (font_close_object): Change font_add_log to FONT_ADD_LOG.
480 (Vfont_log): Delete static.
481 (font_log_env_checked): Delete this variable.
482 (font_add_log): Don't check font_log_env_checked.
483 (font_deferred_log): Check Vfont_log.
484 (init_font): New function.
485
486 * ftfont.c: Change font_add_log to FONT_ADD_LOG.
487
488 * w32font.c: Change font_add_log to FONT_ADD_LOG.
489
490 * w32uniscribe.c: Change font_add_log to FONT_ADD_LOG.
491
492 * xfont.c: Change font_add_log to FONT_ADD_LOG.
493
494 * fontset.c (fontset_font): Call FONT_DEFERRED_LOG.
495 (face_for_char): Don't call font_deferred_log here.
496 (font_for_char): Likewise.
497
498 2009-06-22 Chong Yidong <cyd@stupidchicken.com>
499
500 * w32term.c (x_draw_glyph_string): Use the glyph string's width
501 rather than its background_width for drawing the overline and
502 underline (Bug#489).
503
504 * xterm.c (x_draw_glyph_string): Use the glyph string's width
505 rather than its background_width for drawing the overline and
506 underline (Bug#489).
507 (xg_default_icon_file): New variable.
508 (syms_of_xterm): Initialize it to the Emacs SVG icon file.
509 (x_bitmap_icon): Under GTK, use xg_default_icon_file.
510
511 * xdisp.c (Qbefore_string, Qafter_string): Add externs.
512 (load_overlay_strings): Remove externs.
513 (fast_find_position): Function deleted.
514 (mouse_face_from_buffer_pos): New function, based on
515 fast_find_position. Correctly handle before-strings,
516 display-strings, and after-strings (Bug#1220).
517 (note_mouse_highlight): Use mouse_face_from_buffer_pos.
518
519 2009-06-21 Chong Yidong <cyd@stupidchicken.com>
520
521 * xdisp.c (IT_DISPLAYING_WHITESPACE): Define for
522 !HAVE_WINDOW_SYSTEM.
523 (move_it_in_display_line_to, move_it_in_display_line_to)
524 (display_line): Remove #ifdef HAVE_WINDOW_SYSTEM.
525
526 2009-06-21 Chong Yidong <cyd@stupidchicken.com>
527
528 * Branch for 23.1.
529
530 2009-06-21 Jason Rumney <jasonr@gnu.org>
531
532 * w32term.c (keyboard_codepage): New static variable.
533 (w32_read_socket) [WM_INPUTLANGCHANGE]: Update it.
534 (w32_read_socket) [WM_CHAR]: Use it to decode character
535 input (bug#3237).
536 (w32_initialize): Initialize it.
537 (codepage_for_locale): New function.
538
539 2009-06-20 Ken Raeburn <raeburn@raeburn.org>
540
541 * process.c (status_message): Pass Faset index argument as a lisp
542 object, so as to work with USE_LISP_UNION_TYPE.
543
544 2009-06-19 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
545
546 * coding.c (Ffind_coding_systems_region_internal):
547 Cache checked characters.
548
549 2009-06-18 Kenichi Handa <handa@m17n.org>
550
551 * coding.c (decode_coding_iso_2022): Check MSB of bytes more
552 rigidly.
553
554 2009-06-18 Andreas Schwab <aschwab@redhat.com>
555
556 * xdisp.c (redisplay_internal): Check that the frame is still
557 live after redisplay of its windows.
558 (redisplay_windows): Check that the window is still live.
559
560 2009-06-17 Andreas Schwab <schwab@linux-m68k.org>
561
562 * coding.c (detect_coding_utf_16): Fix previous change.
563
564 2009-06-16 Kenichi Handa <handa@m17n.org>
565
566 * coding.c (detect_coding_utf_16): Fix the logic of rejecting
567 UTF-16 by checking the dispersion of Eth and Oth bytes.
568
569 2009-06-15 Andreas Schwab <schwab@linux-m68k.org>
570
571 * coding.c (detect_coding_utf_16): Fix typo counting odd bytes.
572
573 2009-06-15 Kenichi Handa <handa@m17n.org>
574
575 * process.c (status_message): Fix previous change. Be sure to
576 decode a localized string.
577
578 2009-06-15 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
579
580 * xterm.c (x_delete_terminal): Put previous change in #if 0 and
581 add comment explaining why.
582
583 2009-06-14 Sidney Markowitz <sidney@sidney.com>
584
585 * nsmenu.m (EmacsTooltip: setText): Set height of tooltip.
586
587 2009-06-14 Adrian Robert <Adrian.B.Robert@gmail.com>
588
589 * nsfont.m (ns_attribute_value): Remove.
590 (ns_attribute_fvalue): Incorporate code from ns_attribute_value.
591 (ns_has_attribute): Shrink the normal range.
592 (ns_findfonts): Don't worry about requested spec in determining
593 need for synthItal.
594 (ns_get_covering_families): Retain scriptToFamilies.
595
596 2009-06-14 Seiji Zenitani <zenitani@mac.com>
597
598 * xdisp.c [USE_MAC_TOOLBAR]: Remove obsolete definition for Mac Carbon.
599
600 2009-06-11 Kenichi Handa <handa@m17n.org>
601
602 * xdisp.c (x_get_glyph_overhangs): Fix calculation of right
603 overhang for the static composition case.
604
605 2009-06-11 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
606
607 * xdisp.c (x_get_glyph_overhangs): Fix calculation of right
608 overhang for the automatic composition case.
609
610 * xterm.c (x_compute_glyph_string_overhangs): Handle the automatic
611 composition case.
612
613 2009-06-10 Chong Yidong <cyd@stupidchicken.com>
614
615 * xdisp.c (get_next_display_element): When handling wrap-prefix
616 and line-prefix, treat \n as a control character (bug#3502).
617
618 2009-06-10 Kenichi Handa <handa@m17n.org>
619
620 * font.c (font_parse_family_registry): Fix for one-char foundry.
621 (font_sort_entities): Initialize prefer_prop[FONT_AVGWIDTH_INDEX].
622
623 2009-06-09 Dmitry Dzhus <dima@sphinx.net.ru> (tiny change)
624
625 * process.c (status_message): Fix handling of multibyte signal
626 string (Bug#3499).
627
628 2009-06-09 Jim Meyering <meyering@redhat.com>
629
630 * xfaces.c (Fx_load_color_file): Avoid array bounds error if the
631 color name is missing.
632
633 2009-06-09 Kenichi Handa <handa@m17n.org>
634
635 * charset.c (Fmap_charset_chars): In docstring, state clearly that
636 FROM-CODE and TO-CODE are codepoints of CHARSET.
637
638 2009-06-08 Adrian Robert <Adrian.B.Robert@gmail.com>
639
640 * nsterm.m (ns_use_system_highlight_color): Drop, unused.
641
642 2009-06-08 Adrian Robert <Adrian.B.Robert@gmail.com>
643
644 Changes to support :script/:lang/:otf in NS font driver.
645 * nsfont.m (nsfont_escape_name, nsfont_unescape_name)
646 (nsfont_get_family, nsfont_char_width): Rename to ns_ prefix to
647 indicate not part of font driver interface, and change callers.
648 (ns_get_family): Remove pointless null check.
649 (nsfont_spec_to_traits, nsfont_fmember_to_entity): Replace with
650 ns_spec_to_descriptor, ns_descriptor_to_entity.
651 (nsfont_trait_distance, nsfont_make_fontset_for_font): Remove.
652 (ns_attribute_value, ns_attribute_fvalue, ns_has_attribute)
653 (ns_spec_to_descriptor, ns_descriptor_to_entity)
654 (ns_charset_covers, ns_lang_to_script, ns_otf_to_script)
655 (ns_get_req_script, ns_accumulate_script_ranges)
656 (ns_script_to_charset, ns_get_covering_families, ns_findfonts):
657 New functions.
658 (nsfont_list, nsfont_match): Use ns_findfonts.
659 (nsfont_open): Use font descriptor instead of traits.
660 (nsfont_draw): Handle "automatic" (lookup-table) compositions.
661 (dump_glyphstring): Rename to ns_dump_glyphstring.
662
663 * nsterm.h (dump_glyphstring): Rename to ns_dump_glyphstring.
664
665 * nsfns.m (Fns_popup_font_panel): Use shared font manager.
666
667 * fontset.c (fontset_from_font): Remove NS-specific code.
668
669 2009-06-08 Peter Jones <pjones@pmade.com> (tiny change)
670
671 * nsterm.m (ns_draw_window_cursor): Respect cursor_type for
672 nonactive windows.
673
674 2009-06-08 Felix Mueller <felix@enqueue.eu> (tiny change)
675
676 * nsterm.m (ns_init_paths): Append path separator to INFOPATH
677 variable.
678
679 2009-06-08 Wolfgang Lux <wolfgang.lux@gmail.com> (tiny change)
680
681 * keyboard.c (kbd_buffer_get_event): Null-check used_mouse_menu.
682
683 2009-06-07 Chong Yidong <cyd@stupidchicken.com>
684
685 * xdisp.c (move_it_in_display_line_to): On text-only terminals,
686 account for the overflowing of newlines into the last glyph on the
687 display line (Bug#3482).
688
689 2009-06-05 David Reitter <david.reitter@gmail.com>
690
691 * nsselect.m (Fx_own_selection_internal, Fx_selection_exists_p)
692 (Fx_selection_owner_p): Rename from Fns_own_selection_internal,
693 Fns_selection_exists_p, Fns_selection_owner_p.
694
695 2009-06-03 Jason Rumney <jasonr@gnu.org>
696
697 * w32fns.c (x_create_tip_frame): Use the uniscribe font backend if
698 available. (Bug#3379)
699
700 2009-05-29 Kenichi Handa <handa@m17n.org>
701
702 * coding.c (get_translation_table): Check
703 Venable_character_translation.
704
705 2009-05-26 David Reitter <david.reitter@gmail.com>
706
707 * nsterm.m (ns_raise_frame): Only raise frame if visible.
708 (x_make_frame_visible): Move frame to front rather than calling
709 ns_raise_frame().
710 (keyDown:): Do not swallow events that aren't re-sent if frame
711 isn't key window.
712 (drawRect:): Do not set visibility/iconified flags because
713 drawRect may be called by NSView even if the frame is hidden.
714
715 * nsfns.m (Fx_create_frame): Follow other ports in
716 determining visibility; default to t. Ensure async_visible is set.
717
718 2009-05-23 Eli Zaretskii <eliz@gnu.org>
719
720 * dired.c (Ffile_attributes): Doc fix.
721
722 2009-05-22 Chong Yidong <cyd@stupidchicken.com>
723
724 * m/mips.h [GNU_LINUX]: Don't define DATA_START (Bug#2685).
725
726 2009-05-21 Stefan Monnier <monnier@iro.umontreal.ca>
727
728 * xfont.c (xfont_list_pattern): Don't initialize xfont_scripts_cache
729 and xfont_scratch_props.
730 (syms_of_xfont): Do it here instead.
731 (xfont_find_ccl_program): Delete, unused.
732 (xfont_open): Delete unused var `i'.
733
734 2009-05-21 Kenichi Handa <handa@m17n.org>
735
736 * fontset.c (Qlatin): Don't make it static.
737
738 * xfont.c (xfont_chars_supported, xfont_supported_scripts):
739 New functions.
740 (xfont_scripts_cache, xfont_scratch_props): New variables.
741 (Qlatin, Vscalable_fonts_allowed): Extern it.
742 (xfont_list_pattern): Argument changed. Callers changed.
743 Check Vscalable_fonts_allowed. Check the support of a script.
744 (xfont_list): Don't reject a font spec with :script property.
745 (xfont_has_char): Fix setting of encoding.
746 (syms_of_xfont): Staticpro and initialize xfont_scripts_cache and
747 xfont_scratch_props.
748
749 2009-05-19 Kenichi Handa <handa@m17n.org>
750
751 * font.c (font_sort_entities): Rename from font_sort_entites.
752 Callers changed.
753
754 2009-05-18 Kenichi Handa <handa@m17n.org>
755
756 * font.c (font_find_for_lface): Copy SPEC's FONT_TYPE too.
757
758 2009-05-19 Stefan Monnier <monnier@iro.umontreal.ca>
759
760 * frame.c (do_switch_frame) [NS_IMPL_COCOA]: Don't raise any window.
761 (delete_frame) [NS_IMPL_COCOA]: Instead, do it here.
762
763 2009-05-19 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
764
765 * xterm.c (x_delete_display): Don't call XrmDestroyDatabase here.
766 (x_delete_terminal): Dissociate resource database from display and
767 then call XrmDestroyDatabase before closing display.
768
769 2009-05-18 Adrian Robert <Adrian.B.Robert@gmail.com>
770
771 * nsterm.m (ns_read_socket): Remove unused variable.
772 * frame.c (do_switch_frame): Under NS_IMPL_COCOA section, check
773 whether selected frame is viable before raising it (based on patch
774 by David Reitter), and improve commentary.
775 * nsfont.m (nsfont_make_fontset_for_font): Avoid a compiler warning.
776
777 2009-05-15 Kenichi Handa <handa@m17n.org>
778
779 * font.c (Ffont_spec): Check arguments.
780
781 2009-05-14 Chong Yidong <cyd@stupidchicken.com>
782
783 * xfaces.c (tty_supports_face_attributes_p): Recognize unspecified
784 weight when testing attributes (Bug#3282).
785
786 2009-05-11 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
787
788 * gtkutil.c (xg_frame_set_char_size): Set frame pixel width/height to
789 what we expect to get in the next ConfigureNotify event.
790
791 * xftfont.c (xftfont_open): Make sure that Xrender extension is added
792 before Xft one (Bug#1696).
793
794 2009-05-07 David Reitter <david.reitter@gmail.com>
795
796 * nsfns.m (Fx_display_planes): Compute bitplanes using
797 NSBitsPerPixelFromDepth (Bug#3207).
798
799 2009-05-10 Chong Yidong <cyd@stupidchicken.com>
800
801 * editfns.c (Ftranspose_regions): Doc fix (Bug#3248).
802
803 2009-05-10 Ulrich Mueller <ulm@gentoo.org>
804
805 * s/gnu-linux.h: Make GCPROs and UNGCPRO no-ops also on SuperH.
806
807 2009-05-07 David Reitter <david.reitter@gmail.com>
808
809 * nsterm.m (ns_dumpglyphs_stretch, ns_dumpglyphs_image):
810 Respect mouse face background.
811
812 2009-05-07 David Reitter <david.reitter@gmail.com>
813
814 * nsterm.m (note_mouse_movement, ns_frame_up_to_date):
815 Mouse movement/highlight: bracket drawing operations
816 in ns_update_begin and ns_update_end.
817
818 2009-05-06 Stefan Monnier <monnier@iro.umontreal.ca>
819
820 * nsfns.m (ns_get_screen): Rewrite.
821 Don't presume selected-frame is of type `ns'.
822
823 * font.c (font_update_drivers): Sanity fallback to avoid disabling
824 all drivers.
825
826 * nsterm.m (-windowDidResize:): Avoid inf-loop under GNUStep.
827
828 2009-05-06 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
829
830 * keyboard.h (add_user_signal): Fix typo in extern.
831
832 * lisp.h (add_user_signal): Remove extern.
833
834 * unexelf.c (unexec): Consider a section to precede the .bss section
835 if its addresses overlap that of .bss.
836 (unexec) [NS_IMPL_GNUSTEP]: Copy ObjC-related data from old file
837 instead of dumping process.
838
839 2009-05-06 Stefan Monnier <monnier@iro.umontreal.ca>
840
841 * keyboard.c (syms_of_keyboard): Staticpro pending_funcalls.
842
843 2009-05-04 Stefan Monnier <monnier@iro.umontreal.ca>
844
845 * Makefile.in (ctagsfiles1, ctagsfiles2): Include ObjC files in TAGS.
846
847 2009-05-02 Dan Nicolaescu <dann@ics.uci.edu>
848
849 * xterm.c (x_handle_net_wm_state): Move declaration of lval before
850 any statements.
851
852 2009-05-02 Andreas Schwab <schwab@linux-m68k.org>
853
854 * process.c (read_process_output): Make sure the current buffer is
855 always restored.
856
857 * coding.c (record_conversion_result): Don't modify
858 Vlast_code_conversion_error for successful result.
859 (alloc_destination): Don't clobber conversion result. (Bug#1650)
860
861 2009-05-01 Emanuele Giaquinta <emanuele.giaquinta@gmail.com> (tiny change)
862
863 * charset.c (load_charset): Reformat X==Y==Z to (X==Y)==Z.
864 (load_charset_map): Remove unnecessary code.
865
866 2009-04-30 David Reitter <david.reitter@gmail.com>
867
868 * nsterm.m (convert_ns_to_X_keysym): Define function keys f16
869 through f24.
870
871 2009-04-30 Chong Yidong <cyd@stupidchicken.com>
872
873 * xfaces.c (face_at_buffer_position): New arg base_face_id.
874
875 * xdisp.c (handle_face_prop): Pass base_face_id of iterator to
876 face_at_buffer_position.
877 (face_before_or_after_it_pos, get_next_display_element)
878 (note_mouse_highlight): Update face_at_buffer_position call.
879
880 * term.c (term_mouse_highlight):
881 * msdos.c (IT_note_mouse_highlight):
882 * fontset.c (Finternal_char_font):
883 * font.c (font_at, font_range): Update face_at_buffer_position call.
884
885 * dispextern.h (face_at_buffer_position): Update prototype.
886
887 2009-04-30 Kenichi Handa <handa@m17n.org>
888
889 * fontset.c (fontset_find_font): Check if rfont_def is Qnil or not.
890
891 2009-04-29 Andreas Schwab <schwab@linux-m68k.org>
892
893 * callproc.c (Fcall_process): Fix GC protection. Make sure
894 current buffer is always restored.
895
896 2009-04-29 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
897
898 * atimer.c (init_atimer): Also clear stopped_atimers.
899
900 * keyboard.c (init_keyboard) [POLL_FOR_INPUT]: Reset poll_timer.
901
902 * process.c (create_process): Clean up merger residues of
903 2008-07-17 change.
904
905 2009-04-29 Ulrich Mueller <ulm@gentoo.org>
906
907 * lread.c (Vread_circle): New variable.
908 (read1): Disable recursive read if Vread_circle is nil.
909
910 2009-04-29 Kenichi Handa <handa@m17n.org>
911
912 * fontset.h (set_default_ascii_font): Delete extern.
913
914 * fontset.c (set_default_ascii_font): Delete this unused function.
915
916 * frame.c (x_set_font): When ARG is a font-object, check if the
917 font-object matches with the ASCII font-spec of the frame's
918 fontset. If not, create a new fontset for the frame. (Bug #3075)
919
920 2009-04-28 Andreas Schwab <schwab@linux-m68k.org>
921
922 * fns.c (Flocale_info): Protect vector from GC during decoding.
923
924 * process.c (Fstart_process): Protect argv strings from GC during
925 encoding.
926
927 2009-04-27 Andreas Schwab <schwab@linux-m68k.org>
928
929 * sysdep.c: Include <ctype.h>.
930
931 2009-04-27 David Reitter <david.reitter@gmail.com>
932
933 * nsfont.m (nsfont_open): Remove unused variable shrink.
934 Remove commented-out code.
935
936 2009-04-26 Johan Bockgård <bojohan@gnu.org>
937
938 * keyboard.c (syms_of_keyboard) <input-decode-map>: Doc fix.
939
940 2009-04-25 Jason Rumney <jasonr@gnu.org>
941
942 * w32font.c (clear_cached_metrics): Remove, unused since 2008-08-02.
943
944 2009-04-25 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
945
946 * fringe.c (init_fringe_bitmap) [HAVE_X_WINDOWS && WORDS_BIG_ENDIAN]:
947 Swap bytes in short integer if fringe bitmap width > 8.
948
949 2009-04-23 Kenichi Handa <handa@m17n.org>
950
951 * xfaces.c (Fx_list_fonts): If a font size is specified in
952 PATTERN, set it in returned scalable fonts.
953
954 2009-04-22 Chong Yidong <cyd@stupidchicken.com>
955
956 * keyboard.c (Fset_input_meta_mode): Doc fix.
957
958 * dispnew.c (Fsend_string_to_terminal): Doc fix.
959
960 * data.c (Fterminal_local_value, Fset_terminal_local_value): Doc
961 fixes.
962
963 * coding.c (Fterminal_coding_system): Doc fix.
964
965 * xfns.c (Fx_display_grayscale_p, Fx_display_pixel_width)
966 (Fx_display_pixel_height, Fx_display_planes)
967 (Fx_display_color_cells, Fx_server_max_request_size)
968 (Fx_server_vendor, Fx_server_version, Fx_display_screens)
969 (Fx_display_mm_height, Fx_display_mm_width)
970 (Fx_display_backing_store, Fx_display_visual_class)
971 (Fx_display_save_under, Fx_close_connection, Fx_synchronize): Doc
972 fixes, replacing "terminal id" with "terminal object".
973 (check_x_display_info): Handle terminal objects instead of
974 terminal ids.
975
976 * term.c (Ftty_display_color_p, Ftty_display_color_cells)
977 (Ftty_type, Fcontrolling_tty_p, Ftty_no_underline, Fsuspend_tty)
978 (Fresume_tty, Vsuspend_tty_functions, Vresume_tty_functions): Doc
979 fixes, replacing "terminal id" with "terminal object".
980
981 2009-04-21 Kenichi Handa <handa@m17n.org>
982
983 * font.c (font_load_for_lface): Cancel previous change (bug#2994).
984 (font_score): Check AVGWIDTH too.
985
986 * coding.c (decode_coding_utf_16): Reduce charbuf_end for the
987 worst case.
988 (decode_coding_emacs_mule, decode_coding_iso_2022)
989 (decode_coding_sjis, decode_coding_big5, decode_coding_charset):
990 Likewise.
991
992 2009-04-19 Jason Rumney <jasonr@gnu.org>
993
994 The following changes fix Bug#3005 for wide glyphs on each platform,
995 without reintroducing Bug#1258 for stretch glyphs.
996
997 * xterm.c (x_draw_bar_cursor): Limit cursor width differently for
998 BAR_CURSOR and HBAR_CURSOR. Calculate width of HBAR_CURSOR using
999 get_phys_cursor_geometry.
1000
1001 * w32term.c (x_draw_bar_cursor): Limit cursor width differently
1002 for BAR_CURSOR and HBAR_CURSOR. Calculate width of HBAR_CURSOR
1003 using get_phys_cursor_geometry.
1004
1005 * nsterm.m (ns_draw_window_cursor): HBAR_CURSOR width already
1006 correctly calculated.
1007
1008 2009-04-19 Jan Djärv <jan.h.d@swipnet.se>
1009
1010 * gtkutil.c (xg_tool_bar_menu_proxy, update_frame_tool_bar): Use
1011 G_CALLBACK instead of GTK_SIGNAL_FUNC which is deprecated.
1012 (xg_initialize): Use g_type_class_ref instead of gtk_type_class which
1013 is deprecated.
1014
1015 2009-04-18 Andreas Schwab <schwab@linux-m68k.org>
1016
1017 * font.c (font_put_frame_data): Use xfree instead of free.
1018
1019 2009-04-17 Juanma Barranquero <lekktu@gmail.com>
1020
1021 * w32font.c (Qja, Qko): Remove declarations.
1022 (syms_of_w32font): Don't DEFSYM them.
1023
1024 2009-04-17 Chong Yidong <cyd@stupidchicken.com>
1025
1026 * font.c (Qja, Qko): Move definitions here from ftfont.c.
1027
1028 * font.h (Qja, Qko): Extern them.
1029
1030 * ftfont.c (Qja, Qko): Remove declarations.
1031
1032 * xfont.c (Qja, Qko): Remove declarations.
1033
1034 2009-04-17 Kenichi Handa <handa@m17n.org>
1035
1036 * editfns.c (Ftranslate_region_internal): Use Fconcat to make a
1037 string from a vector to handle Latin-1 characters correctly.
1038
1039 * ftfont.c (ftfont_pattern_entity): Return a newly allocated
1040 entity even if the cache hits.
1041
1042 2009-04-16 Andreas Schwab <schwab@linux-m68k.org>
1043
1044 * search.c (boyer_moore): Use zero as marker value for a possible
1045 match instead of depending on overflow behavior. (Bug#2844)
1046
1047 * search.c: Use EMACS_INT for buffer positions. Add prototypes.
1048 * lisp.h: Adjust prototypes.
1049
1050 2009-04-16 Chong Yidong <cyd@stupidchicken.com>
1051
1052 * keyboard.c (adjust_point_for_property): Disable 2009-02-12
1053 change (Bug#3003).
1054
1055 2009-04-16 Kenichi Handa <handa@m17n.org>
1056
1057 * xfont.c (xfont_has_char): Special handling of `ja' and `ko'
1058 adstyle.
1059
1060 * xftfont.c (xftfont_has_char): Special handling of `ja' and `ko'
1061 adstyle.
1062
1063 * ftfont.c (Qja, Qko): Don't make them static.
1064 (enum ftfont_cache_for): New enum.
1065 (fc_charset_table): Undo the previous change.
1066 (ftfont_get_latin1_charset): Delete it.
1067 (ftfont_pattern_entity): Check cache by ftfont_lookup_cache. Set
1068 FONT_SIZE_INDEX of the entity to 0 for a scalable font. For a
1069 non-scarable font, try to get AVERAGE_WIDTH.
1070 (ftfont_lookup_cache): Argument FOR-FACE is changed to CACHE_FOR.
1071 Change ft_face_cache from a list of a hash-table. Don't check
1072 `ja' and `ko' adstyle here.
1073 (ftfont_get_fc_charset): Call ftfont_lookup_cache with
1074 FTFONT_CACHE_FOR_CHARET.
1075 (ftfont_get_charset): Undo the previous change.
1076 (ftfont_open): Call ftfont_lookup_cache with
1077 FTFONT_CACHE_FOR_FACE.
1078 (ftfont_close): Likewise.
1079 (ftfont_has_char): Special handling of `ja' and `ko' adstyle.
1080
1081 * font.c (font_sort_entites): Change the meaning of the arg
1082 BEST-ONLY. Don't optimize for VEC of lenght 1.
1083 (font_select_entity): Just return the value of font_sort_entites.
1084
1085 * xfaces.c (merge_face_vectors): Reflect font properties in
1086 to[LFACE_FONT_INDEX] to the other face attributes. Don't call
1087 font_clear_prop if a face attribute doesn't change.
1088
1089 * charset.h (charset_ksc5601): Extern it.
1090
1091 * charset.c (charset_ksc5601): New variable.
1092 (Fdefine_charset_internal): Set charset_ksc5601.
1093 (init_charset_once): Initialize charset_ksc5601 to -1.
1094
1095 2009-04-15 Dan Nicolaescu <dann@ics.uci.edu>
1096
1097 * fileio.c (history_delete_duplicates): Remove unused declaration.
1098
1099 * callint.c (history_delete_duplicates): New declaration.
1100 (Fcall_interactively): Remove command history duplicates when
1101 history_delete_duplicates is true.
1102
1103 2009-04-14 Eli Zaretskii <eliz@gnu.org>
1104
1105 * buffer.c (syms_of_buffer) <line-spacing>: Doc fix.
1106
1107 2009-04-14 Kenichi Handa <handa@m17n.org>
1108
1109 * font.c (Ffont_info): Fix docstring. Fix the second element of
1110 the returned value (bug#2949).
1111
1112 2009-04-14 Chong Yidong <cyd@stupidchicken.com>
1113
1114 * xdisp.c (Vwrap_prefix, Vline_prefix): Reflow docstrings.
1115
1116 2009-04-14 Kenichi Handa <handa@m17n.org>
1117
1118 * xfont.c (xfont_has_char): The font has C if C is ASCII and the
1119 encoding charset is ascii_compatible.
1120
1121 * charset.c (Fdefine_charset_internal): Make charset
1122 ascii-compatible if the method is CHARSET_METHOD_OFFSET, the
1123 code_offset is 0, and covers all ASCII characters.
1124
1125 2009-04-13 Stefan Monnier <monnier@iro.umontreal.ca>
1126
1127 * nsselect.m (symbol_to_nsstring, clean_local_selection_data)
1128 (ns_string_to_pasteboard_internal):
1129 * nsmenu.m (process_dialog):
1130 * nsimage.m (ns_load_image): Use SDATA and ASET where appropriate.
1131 * nsfont.m (nsfont_open): Use XHASH to make it compile with LISP_UNION.
1132 * lisp.h (Fx_load_color_file): Declare.
1133
1134 2009-04-13 Kenichi Handa <handa@m17n.org>
1135
1136 * font.c (font_delete_unmatched): Preserve the order of list
1137 elements.
1138 (font_select_entity): Suppress the code to optimize for the same
1139 kind of fonts.
1140 (font_load_for_lface): Get a font that supports at least ASCII
1141 characters.
1142
1143 * ftfont.c (Qja, Qko): New variables.
1144 (fc_charset_table): Delete uniquifier data for iso8859-1.
1145 (ftfont_get_latin1_charset): New function.
1146 (get_adstyle_property): New function.
1147 (ftfont_pattern_entity): Set FONT_ADSTYLE_INDEX of entity for
1148 bitmap fonts.
1149 (ftfont_lookup_cache): Handle the case that KEY is a font-entity.
1150 Delete iso-8859-1 range from the charset of fonts whose adstyle is
1151 `ko' or `ja'.
1152 (ftfont_get_fc_charset): Call ftfont_lookup_cache with ENTITY.
1153 (ftfont_get_charset): For iso8859-1, call
1154 ftfont_get_latin1_charset.
1155 (ftfont_list): Don't refuse a font spec with non-nil `adstyle'
1156 property.
1157 (ftfont_open): Call ftfont_lookup_cache with ENTITY.
1158 (syms_of_ftfont): DEFSYM Qja and Qko.
1159
1160 2009-04-09 Kenichi Handa <handa@m17n.org>
1161
1162 * charset.c (map_charset_chars): For a charset of `superset'
1163 method, fix calculation of code range.
1164
1165 * font.c (font_put_extra): If VAL is nil, delete the slot for PROP
1166 from the list of extra properties.
1167 (font_clear_prop): Be sure to delete `:name' font property.
1168
1169 2009-04-08 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
1170
1171 * dispnew.c (redraw_overlapping_rows): Fix detection of
1172 overlapping for topmost and bottommost rows.
1173
1174 * ftfont.c (ftfont_text_extents): Fix calculation of
1175 metrics->descent.
1176
1177 2009-04-06 Jason Rumney <jasonr@gnu.org>
1178
1179 * frame.c (x_set_font): Avoid C99 mid-block variable declaration.
1180
1181 2009-04-06 Kenichi Handa <handa@m17n.org>
1182
1183 * ftxfont.c (ftxfont_draw_backgrond): Fix args to XFillRectangle.
1184
1185 * xftfont.c (xftfont_open): Fix setting font->underline_thickness.
1186
1187 2009-04-06 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
1188
1189 * ftfont.c (ftfont_open): Fix checking of the return value of
1190 FT_Load_Char. Fix setting font->underline_thickness.
1191
1192 2009-04-04 Chong Yidong <cyd@stupidchicken.com>
1193
1194 * terminal.c (Fterminal_name, Fdelete_terminal, Fterminal_name)
1195 (Fterminal_parameters, Fterminal_parameter)
1196 (Fset_terminal_parameter): In doc string, refer to terminal
1197 objects rather than terminal ids.
1198
1199 2009-04-04 Eli Zaretskii <eliz@gnu.org>
1200
1201 * dosfns.c (system_process_attributes) [SYSTEM_MALLOC]: Don't call
1202 ret_lim_data. (Bug#2867)
1203
1204 2009-04-03 Chong Yidong <cyd@stupidchicken.com>
1205
1206 * term.c (produce_stretch_glyph): Reduce width of stretch glyphs
1207 so they don't get wider than the window, matching 2006-01-23
1208 change to the partner function in xdisp.c (Bug#2800).
1209
1210 2009-04-03 Kenichi Handa <handa@m17n.org>
1211
1212 * print.c (print_object): Make each lowest sub_char_table start a
1213 new line (Bug#2866).
1214
1215 2009-04-02 Kenichi Handa <handa@m17n.org>
1216
1217 * fontset.c (fontset_font): Record no-font when a fontset
1218 explicitly tells not to try another font-specs.
1219
1220 2009-03-30 Pierre Poissinger <pierre.poissinger@gmail.com> (tiny change)
1221
1222 * charset.c (map_charset_for_dump): Add missing UNGCPRO.
1223
1224 2009-03-30 Kenichi Handa <handa@m17n.org>
1225
1226 * fontset.c (fontset_from_font): Specify only registry in a
1227 font-spec for all characters supported by that registry.
1228
1229 * ftfont.c: Fix previous change. Define ftfont_variation_glyphs
1230 even if HAVE_M17N_FLT is not defined.
1231
1232 2009-03-29 Sebastian Rose <sebastian_rose@gmx.de> (tiny change)
1233
1234 * ftfont.c: Conditionalize prototyping and use of
1235 ftfont_variation_glyphs.
1236
1237 2009-03-28 Stefan Monnier <monnier@iro.umontreal.ca>
1238
1239 * frame.c (delete_frame): Work around compiler bug.
1240
1241 * editfns.c (general_insert_function): Adjust to insdel.c changes.
1242 * insdel.c (prepare_to_modify_buffer, signal_before_change):
1243 Some more EMACS_INT.
1244 * lisp.h (copy_text, count_size_as_multibyte): Fix last change.
1245
1246 * xdisp.c (dump_glyph): Fix typo.
1247
1248 * insdel.c (move_gap, move_gap_both, gap_left, gap_right)
1249 (adjust_markers_gap_motion, adjust_markers_for_delete)
1250 (adjust_markers_for_insert, adjust_point)
1251 (adjust_markers_for_replace, make_gap_larger, make_gap_smaller)
1252 (make_gap, copy_text, count_size_as_multibyte, insert)
1253 (insert_and_inherit, insert_before_markers)
1254 (insert_before_markers_and_inherit, insert_1)
1255 (count_combining_before, count_combining_after, insert_1_both)
1256 (insert_from_string, insert_from_string_before_markers)
1257 (insert_from_string_1, insert_from_gap, insert_from_buffer)
1258 (insert_from_buffer_1, adjust_after_replace)
1259 (adjust_after_replace_noundo, adjust_after_insert, replace_range)
1260 (replace_range_2, del_range, del_range_1, del_range_byte)
1261 (del_range_both, del_range_2, modify_region)
1262 (prepare_to_modify_buffer, signal_before_change)
1263 (signal_after_change, Fcombine_after_change_execute): Use EMACS_INT
1264 for buffer positions and sizes.
1265 * lisp.h: Adjust prototypes accordingly.
1266
1267 * fileio.c (adjust_markers_for_delete): Move declaration to lisp.h.
1268 (non_regular_inserted, non_regular_nbytes, read_non_regular)
1269 (Finsert_file_contents): Use EMACS_INT for buffer positions.
1270
1271 * fileio.c (Finsert_file_contents): Don't limit size to INT_MAX/4.
1272
1273 2009-03-27 Jan Djärv <jan.h.d@swipnet.se>
1274
1275 * frame.c (x_set_font): If the fullscreen property is non-nil, adjust
1276 lines and columns so we keep the same pixel height and width.
1277
1278 * xterm.c (handle_one_xevent): Call x_handle_net_wm_state if
1279 the property _NET_WM_STATE has changed.
1280 (x_handle_net_wm_state): New function to update frame parameter
1281 fullscreen.
1282 (x_term_init): Initialize atoms for _NET_WM_STATE.
1283
1284 * xterm.h (struct x_display_info): Add atoms for _NET_WM_STATE.
1285
1286 2009-03-27 Kevin Ryde <user42@zip.com.au>
1287
1288 * keyboard.c (tty_read_avail_input): Don't treat a -1 return from
1289 Gpm_GetEvent as an error that justifies closing the filedescriptor.
1290 * term.c (close_gpm): Get the filedescriptor as a (new) parameter.
1291 (Fgpm_mouse_stop): Pass that new parameter.
1292 * termhooks.h (close_gpm): Adjust prototype.
1293
1294 2009-03-26 Stefan Monnier <monnier@iro.umontreal.ca>
1295
1296 * lisp.h (Fx_focus_frame): Declare.
1297
1298 * callint.c (Fcall_interactively): For '^' just delegate the work to
1299 handle-shift-selection.
1300 (syms_of_callint): Move declaration of shift-select-mode to simple.el.
1301
1302 2009-03-24 Chong Yidong <cyd@stupidchicken.com>
1303
1304 * editfns.c (Ffloat_time): Doc fix (Bug#2768).
1305
1306 * data.c (Qinteractive_form): New variable.
1307 (Finteractive_form): Use it.
1308
1309 * eval.c (Fcommandp): Use Qinteractive_form.
1310
1311 2009-03-24 Jason Rumney <jasonr@gnu.org>
1312
1313 * fileio.c (Fsubstitute_in_file_name): Always work on a copy.
1314 Calculate total size precisely. Decode environment variables
1315 before substituting. (Bug#38)
1316
1317 2009-03-24 Kenichi Handa <handa@m17n.org>
1318
1319 * font.c (find_font_encoding): Return Qnil for unsupported
1320 encoding (Bug#2722).
1321
1322 2009-03-23 Jan Djärv <jan.h.d@swipnet.se>
1323
1324 * gtkutil.c (xg_display_open): Assign a value to gdpy_def, check
1325 that gdpy is set.
1326
1327 2009-03-22 Alan Mackenzie <acm@muc.de>
1328
1329 * callint.c (Finteractive): Clarify the doc string - even
1330 promptless elements need \n separators.
1331
1332 2009-03-22 Jason Rumney <jasonr@gnu.org>
1333
1334 * w32term.c (syms_of_w32term): Doc fix for
1335 x-use-underline-position-properties.
1336
1337 2009-03-21 Eli Zaretskii <eliz@gnu.org>
1338
1339 * w32.c (getpwuid): Change argument type to unsigned.
1340 (struct w32_id): Change type of `rid' member to unsigned.
1341 (w32_cached_id, w32_add_to_cache, get_name_and_id): Change type of
1342 argument ID to unsigned. All callers changed.
1343 (getuid, geteuid, getgid, getegid): Change return type to unsigned.
1344
1345 2009-03-20 Eli Zaretskii <eliz@gnu.org>
1346
1347 * editfns.c (Fuser_uid, Fuser_real_uid): If UID as EMACS_INT is
1348 negative, produce a float value.
1349
1350 * dired.c (make_uid, make_gid): New functions.
1351 (Ffile_attributes): Use them to avoid negative UID and GID.
1352
1353 2009-03-20 Juanma Barranquero <lekktu@gmail.com>
1354
1355 * keyboard.c (Fcurrent_idle_time): Reflow docstring.
1356 (syms_of_keyboard) <command-hook-internal, input-method-function>:
1357 Fix typos in docstrings.
1358
1359 2009-03-19 Kenichi Handa <handa@m17n.org>
1360
1361 * fontset.c (Fset_fontset_font): When a spec of ASCII font is
1362 changed, use font_load_for_lface to get a new font object.
1363 Call free_realized_fontset after handling ASCII font change.
1364
1365 * frame.c (x_set_font): Handle the case that ARG is a cons.
1366
1367 2009-03-19 Glenn Morris <rgm@gnu.org>
1368
1369 * fileio.c (Fsubstitute_in_file_name): Doc fix.
1370
1371 2009-03-19 Chong Yidong <cyd@stupidchicken.com>
1372
1373 * indent.c (Fvertical_motion): Undo 2005-01-19 change (Bug#2694).
1374
1375 2009-03-19 Kenichi Handa <handa@m17n.org>
1376
1377 * charset.c (load_charset_map_from_file): When a mapfile can't be
1378 loaded, signal an error.
1379
1380 2009-03-18 Eli Zaretskii <eliz@gnu.org>
1381
1382 * dired.c (Ffile_attributes): Make sure UID and GID are always
1383 positive, even if the value is too large for a positive EMACS_INT.
1384 Doc fix.
1385
1386 * editfns.c (Fuser_login_name): Support float arguments. Doc fix.
1387
1388 2009-03-18 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
1389
1390 * xmenu.c (xdialog_show): Move Fredisplay call ...
1391 (Fx_popup_dialog): ... here.
1392
1393 2009-03-18 Stefan Monnier <monnier@iro.umontreal.ca>
1394
1395 * dired.c (file_name_completion): Disable the first optimization just
1396 installed, since it is not implemented correctly.
1397
1398 2009-03-17 Stefan Monnier <monnier@iro.umontreal.ca>
1399
1400 * dired.c (file_name_completion): Check completion-ignored-extensions
1401 only if the entry can affect bestmatch.
1402 Stop the search early, as Ftry_completion already does.
1403
1404 2009-03-17 Chong Yidong <cyd@stupidchicken.com>
1405
1406 * minibuf.c (Vminibuffer_completion_confirm): Doc fix.
1407
1408 2009-03-15 Chong Yidong <cyd@stupidchicken.com>
1409
1410 * keyboard.c (parse_menu_item): Don't display remappings as menu
1411 equivalent bindings (Bug#788).
1412
1413 2009-03-15 Jason Rumney <jasonr@gnu.org>
1414
1415 * w32term.h (WM_EMACS_PAINT): New message.
1416 * w32term.c (w32_read_socket): Use it instead of WM_PAINT.
1417 * w32fns.c (w32_wnd_proc): Change WM_PAINT to WM_EMACS_PAINT
1418 before passing to lisp thread. (Bug#950)
1419
1420 2009-03-14 David Reitter <david.reitter@gmail.com>
1421
1422 * nsterm.m (ns_shutdown_properly, -terminate): Remove global state
1423 variable as it was never reset.
1424 (ns_term_init): Remove initialization of Lisp-settable defaults
1425 and ns_expand_space.
1426 (-setPanelFromDefaultValues): Remove ns_expand_space.
1427 (-showPreferencesWindow): Send new KEY_NS_SHOW_PREFS key.
1428 * nsfont.m (nsfont_open): Remove ns_expand_space, assume -0.5
1429 i.e. no additional spacing, similar to Carbon port.
1430
1431 * nsterm.h: Define KEY_NS_SHOW_PREFS key.
1432 * nsfns.m (ns-popup-prefs-panel): Remove.
1433
1434 2009-03-14 Jan Djärv <jan.h.d@swipnet.se>
1435
1436 * sound.c (alsa_configure): Remove call to deprecated
1437 snd_pcm_sw_params_set_xfer_align.
1438
1439 2009-03-14 Stephen Berman <stephen.berman@gmx.net>
1440
1441 * gtkutil.c (xg_tool_bar_callback): Set focus back to the frame
1442 after clicking in a detached tool bar.
1443 (xg_tool_bar_proxy_callback): Remove call to Fx_focus_frame.
1444
1445 2009-03-13 Stefan Monnier <monnier@iro.umontreal.ca>
1446
1447 * fontset.c (fontset_from_font, Ffontset_info): YAILOM (Yet another
1448 int/Lisp_Object mixup).
1449
1450 2009-03-13 Kenichi Handa <handa@m17n.org>
1451
1452 * fontset.c (Ffontset_info, check_fontset_name): New arg frame.
1453 Handle NAME nil and t correctly. Callers changed.
1454 (font_def_arg, add_arg, from_arg, to_arg): Delete them.
1455 (set_fontset_font): Change ARG to a vector. Handle range_list in
1456 ARG correctly.
1457 (Fset_fontset_font): Fix the case that TARGET is both a script
1458 name and charset name. Adjust the arg to set_fontset_font for
1459 the above change.
1460 (fontset_from_font): Fix previous change.
1461 (Ffontset_info): Adjust for the 2008-07-09 change of fontset
1462 entry. If FONTSET is the default fontset, don't set the extra
1463 slot of the returning char-table.
1464
1465 2009-03-12 Juanma Barranquero <lekktu@gmail.com>
1466
1467 * nsfns.m (Fx_close_connection): Doc fix.
1468 (Fns_do_applescript): Reflow docstring.
1469 (Fns_hide_others, Fns_hide_emacs, Fns_convert_utf8_nfd_to_nfc)
1470 (Fx_display_pixel_width, Fx_display_pixel_height)
1471 (Fns_display_usable_bounds, Fx_display_planes, Fx_show_tip):
1472 Fix typos in docstrings.
1473 (Fns_set_alpha): Fix typos in error messages.
1474
1475 2009-03-12 David Reitter <david.reitter@gmail.com>
1476
1477 * termhooks.h [HAVE_NS]: Define NS_NONKEY_EVENT to be used for
1478 non-key system events on NS. Formerly, NON_ASCII_KEYSTROKE_EVENT
1479 were used for such events.
1480
1481 * nsterm.m (newFrame, openFile, fulfillService, changeFont)
1482 (toggleToolbar, performDragOperation, runHelp): Use it.
1483
1484 * keyboard.c (parse_menu_item) [HAVE_NS]: Treat new event like
1485 NON_ASCII_KEYSTROKE_EVENT, but set used_mouse_menu.
1486
1487 2009-03-11 Kenichi Handa <handa@m17n.org>
1488
1489 * font.h (font_open_by_spec): Extern it.
1490
1491 * font.c (font_open_by_spec): New function.
1492 (font_open_by_name): Use font_open_by_spec.
1493
1494 * frame.c (x_set_font): When ARG is a font-object, don't alter the
1495 fontset of the frame.
1496
1497 * fontset.c (Fset_fontset_font): When a font for ASCII is changed,
1498 modify the default font of frames that use this fontset.
1499 (num_auto_fontsets): New variable.
1500 (fontset_from_font): Use num_auto_fontsets to decide a fontset
1501 name. Be sure to set FONTSET_ASCII to the correct font name.
1502 (update_auto_fontset_alist): New function.
1503
1504 2009-03-11 Juanma Barranquero <lekktu@gmail.com>
1505
1506 * makefile.w32-in: Update dependencies.
1507
1508 2009-03-06 Adrian Robert <Adrian.B.Robert@gmail.com>
1509
1510 * nsfns.m (syms_of_nsfns): Remove Qbuffered.
1511
1512 2009-03-10 Stefan Monnier <monnier@iro.umontreal.ca>
1513
1514 * buffer.c (Fswitch_to_buffer): Revert part of 2008-10-21's change.
1515
1516 2009-03-10 Chong Yidong <cyd@stupidchicken.com>
1517
1518 * lread.c (Feval_buffer): Doc fix.
1519
1520 2009-03-09 Kenichi Handa <handa@m17n.org>
1521
1522 * charset.c (Qfile_name_handler_alist): Extern it.
1523 (load_charset_map_from_file): Temporarily bind
1524 `file-name-handler-alist' to nil while calling openp. (Bug#2435)
1525
1526 2009-03-06 Aaron Ecay <aaronecay@gmail.com> (tiny change)
1527
1528 * nsterm.m (ns_draw_vertical_window_border): Draw 1 pixel wide,
1529 not two, and use NSRectFill instead of NSDrawGroove. (Bug#2352)
1530
1531 2009-03-06 Adrian Robert <Adrian.B.Robert@gmail.com>
1532
1533 * nsterm.m: Include <signal.h> for SIGTERM used in ns_term_shutdown.
1534 (x_set_window_size): Change back to calculated method of setting
1535 toolbar height under Cocoa. (Bug#2546)
1536 (EmacsView-windowWillUseStandardFrame:defaultFrame:): New method.
1537 (EmacsView-drawRect:): Completely shortcircuit if ns_in_resize.
1538
1539 * nsfns.m (ns_appkit_version_int): Fix typo in the version macro.
1540
1541 * nsmenu.m (EmacsMenu-addItemWithWidgetValue:): Don't add
1542 accelerator in parens under GNUstep.
1543
1544 2009-03-06 Kenichi Handa <handa@m17n.org>
1545
1546 These changes are to detect incorrect composition sequence without
1547 looking ahead the source. (Bug#2370)
1548
1549 * coding.h: Include "composite.h".
1550 (enum compisition_state): New enum.
1551 (struct compisition_status): New struct.
1552 (struct iso_2022_spec): New member cmp_status.
1553 (struct emacs_mule_spec): New struct.
1554 (struct coding_system): New members ctext_extended_segment_len and
1555 embedded_utf_8. Change the union member
1556 spec.emacs_mule_full_support to spec.emacs_mule.
1557
1558 * coding.c (CODING_ISO_CMP_STATUS): New macro.
1559 (CODING_ISO_EXTSEGMENT_LEN, CODING_ISO_EMBEDDED_UTF_8): New macros.
1560 (MAX_ANNOTATION_LENGTH): Define to 5.
1561 (ADD_COMPOSITION_DATA): New arg nbytes.
1562 (emacs_mule_char): New arg cmp_status.
1563 (DECODE_EMACS_MULE_COMPOSITION_CHAR): Delete it.
1564 (DECODE_EMACS_MULE_COMPOSITION_RULE_20): New arg c.
1565 (DECODE_EMACS_MULE_COMPOSITION_RULE_21): New arg c.
1566 (DECODE_EMACS_MULE_21_COMPOSITION): Delete the arg c.
1567 (DECODE_EMACS_MULE_20_RELATIVE_COMPOSITION): Likewise.
1568 (DECODE_EMACS_MULE_20_RULEBASE_COMPOSITION): Likewise.
1569 (DECODE_EMACS_MULE_COMPOSITION_START): New macro.
1570 (EMACS_MULE_COMPOSITION_END): New macro.
1571 (emacs_mule_finish_composition): New function.
1572 (EMACS_MULE_MAYBE_FINISH_COMPOSITION): New macro.
1573 (decode_coding_emacs_mule): Avoid long looking ahead while
1574 handling composition.
1575 (DECODE_COMPOSITION_RULE): Argument changed to rule and nbytes.
1576 (ENCODE_COMPOSITION_RULE): New macro.
1577 (finish_composition): New function.
1578 (MAYBE_FINISH_COMPOSITION): Call finish_composition.
1579 (DECODE_COMPOSITION_START): New implementation.
1580 (DECODE_COMPOSITION_END): Likewise.
1581 (STORE_COMPOSITION_RULE): New macro.
1582 (decode_coding_iso_2022): Avoid long looking ahead while handling
1583 composition, CTEXT extended segment, and embedded UTF-8.
1584 (setup_coding_system): For a coding of type iso-2022, reset
1585 CODING_ISO_EXTSEGMENT_LEN (coding) and
1586 CODING_ISO_EMBEDDED_UTF_8 (coding).
1587 (get_translation): Delete arguments last_block, from_nchars,
1588 to_nchars. Callers changed.
1589 (produce_chars): Don't modify charbuf. Adjusted for the change of
1590 get_translation.
1591 (produce_composition): Adjust for the new annotation sequence.
1592 (handle_composition_annotation): Likewise.
1593 (consume_chars): Adjust for the change of get_translation.
1594
1595 2009-03-05 Adrian Robert <Adrian.B.Robert@gmail.com>
1596
1597 * nsterm.m (ns_select): Shortcircuit if reentrant call. (Bug#2564)
1598
1599 2009-03-05 Kenichi Handa <handa@m17n.org>
1600
1601 * font.c (font_select_entity): New function.
1602 (font_find_for_lface): Use font_select_entity to select a font.
1603
1604 * fontset.c (fontset_find_font): If a font found without
1605 restricting to the characters C doesn't support C, try to find a
1606 font with C restriction.
1607
1608 2009-03-04 Nikolaj Schumacher <me@nschum.de>
1609
1610 * nsfont.m (nsfont_draw): Compare ns_antialias_text against lisp value.
1611
1612 2009-03-04 Jason Rumney <jasonr@gnu.org>
1613
1614 * w32fns.c (w32_wnd_proc): Only ignore IME messages for the
1615 characters that have already been read. (Bug#2569)
1616
1617 * image.c (xbm_read_bitmap_data, png_load, svg_load_image):
1618 Log an error message if check_image_size failed.
1619 (xpm_load_image, pbm_load, jpeg_load, tiff_load, gif_load)
1620 (gs_load): Mention max-image-size in size error message. (Bug#2560)
1621
1622 2009-03-02 Eli Zaretskii <eliz@gnu.org>
1623
1624 * callproc.c (Fcall_process): Bind inhibit-modification-hooks to t
1625 when decoding process output.
1626
1627 2009-03-01 Richard M Stallman <rms@gnu.org>
1628
1629 * m/mips.h (DATA_SEG_BITS, XUINT, XSET): Definitions disabled.
1630
1631 * emacs.c (gdb_data_seg_bits) [USE_LSB_TAG]: Make it 0.
1632
1633 2009-02-28 Eli Zaretskii <eliz@gnu.org>
1634
1635 * coding.c (decode_coding_utf_8, decode_coding_utf_16)
1636 (decode_coding_emacs_mule, decode_coding_iso_2022)
1637 (encode_coding_iso_2022, decode_coding_sjis, decode_coding_big5)
1638 (decode_coding_raw_text, decode_coding_charset)
1639 (setup_coding_system, decode_eol, decode_coding, consume_chars):
1640 Honor inhibit-eol-conversion. (Bug #2186)
1641
1642 2009-02-28 Jason Rumney <jasonr@gnu.org>
1643
1644 * coding.c (detect_coding_charset): If not checking latin extra,
1645 fail on characters between 0x80 and 0xA0. (Bug#2354)
1646
1647 2009-02-28 Eli Zaretskii <eliz@gnu.org>
1648
1649 * coding.c (detect_coding_charset): Fix change from 2008-10-21.
1650 Also, check iso-latin-*, not only iso-8859-*. (Bug#2497)
1651
1652 2009-02-27 Glenn Morris <rgm@gnu.org>
1653
1654 * callint.c (Finteractive): Doc fix.
1655
1656 2009-02-27 Kenichi Handa <handa@m17n.org>
1657
1658 * lread.c (read_escape): Signal an error for invalid \UXXXXXXXX.
1659
1660 2009-02-27 Chong Yidong <cyd@stupidchicken.com>
1661
1662 * font.c (font_style_to_value): Set value for unknown symbols to
1663 100 instead of 255.
1664 (weight_table, slant_table, width_table): Treat "unspecified" as
1665 the default value.
1666
1667 2009-02-26 Juanma Barranquero <lekktu@gmail.com>
1668
1669 * fileio.c (Fnext_read_file_uses_dialog_p): Fix typo in docstring.
1670
1671 2009-02-25 Juanma Barranquero <lekktu@gmail.com>
1672
1673 * lread.c (Fload): Stop checking Vloads_in_progress and signal
1674 error as soon as a recursive load is detected.
1675
1676 2009-02-24 Adrian Robert <Adrian.B.Robert@gmail.com>
1677
1678 * nsterm.m (ns_ring_bell): Convert rect to window coordinates
1679 before caching.
1680
1681 2009-02-24 Kenichi Handa <handa@m17n.org>
1682
1683 * fontset.c (fontset_find_font): Fix the condition for checking
1684 unavailable font.
1685
1686 2009-02-24 Glenn Morris <rgm@gnu.org>
1687
1688 * xfaces.c (Finternal_set_font_selection_order): Remove leading
1689 whitespace that confuses documentation.
1690
1691 2009-02-23 Miles Bader <miles@gnu.org>
1692
1693 * process.c (Flist_system_processes, Fprocess_attributes)
1694 (syms_of_process): Rename `system-process-attributes' to
1695 `process-attributes'.
1696
1697 2009-02-22 Andreas Schwab <schwab@linux-m68k.org>
1698
1699 * coding.h (struct coding_system): Make safe_charsets a pointer to
1700 unsigned char.
1701 * coding.c (CODING_ISO_REQUEST): Check for safe_charsets content
1702 being 255.
1703 (SAFE_CHARSET_P): Likewise.
1704 (setup_iso_safe_charsets): Properly setup safe_charsets.
1705 (Fdefine_coding_system_internal): Likewise.
1706 (setup_coding_system): Likewise. Remove unneeded casts.
1707 (detect_coding_iso_2022): Compare Viso_2022_charset_list with
1708 CODING_ATTR_CHARSET_LIST, not CODING_ATTR_SAFE_CHARSETS. Remove
1709 unneeded casts.
1710
1711 * insdel.c (del_range_2): Don't modify gap contents when called
1712 from decode_coding_object. (Bug#1809)
1713
1714 2009-02-21 Chong Yidong <cyd@stupidchicken.com>
1715
1716 * data.c (syms_of_data): Define Qfont_spec, Qfont_entity, and
1717 Qfont_object.
1718 (Ftype_of): Recognize font objects.
1719
1720 * lisp.h: Define Qfont_spec, Qfont_entity, Qfont_object extern.
1721
1722 * font.c (Qfont_spec, Qfont_entity, Qfont_object): Definitions
1723 moved to data.c.
1724
1725 2009-02-20 Adrian Robert <Adrian.B.Robert@gmail.com>
1726
1727 * nsterm.m (x_make_frame_invisible): Unset async_visible,
1728 async_iconified. Based on a patch by Christian Lynbech
1729 <christian.lynbech@tieto.com>.
1730 (EmacsView-windowDidMiniaturize:): Unset async_visible.
1731
1732 2009-02-20 Glenn Morris <rgm@gnu.org>
1733
1734 * syntax.c (Fskip_chars_forward): Fix doc typo.
1735
1736 2009-02-20 Chong Yidong <cyd@stupidchicken.com>
1737
1738 * keymap.c (Fkeymap_parent): Doc fix (Bug#2391).
1739
1740 2009-02-19 Chong Yidong <cyd@stupidchicken.com>
1741
1742 * xfns.c (Fx_create_frame): Give Xft driver a higher priority.
1743
1744 2009-02-19 Kenichi Handa <handa@m17n.org>
1745
1746 * coding.c (detect_coding): Preserve coding->mode.
1747 Don't overflow coding->carryover. (Bug#2370)
1748
1749 2009-02-18 Dan Nicolaescu <dann@ics.uci.edu>
1750
1751 * m/ibmrs6000.h (ADDR_CORRECT): Restore, removed by mistake on 2008-07-23.
1752
1753 2009-02-18 Kenichi Handa <handa@m17n.org>
1754
1755 * font.c (font_check_otf_features): Fix handling of `nil' element.
1756 (Ffont_spec): Describe :lang and :otf in the docstring.
1757
1758 2009-02-16 Andreas Schwab <schwab@suse.de>
1759
1760 * coding.c (Fcheck_coding_systems_region): Fix test for unibyte
1761 string.
1762
1763 2009-02-16 Kenichi Handa <handa@m17n.org>
1764
1765 * coding.c (Fcheck_coding_systems_region): Fix typo; Qt -> Qnil.
1766 (Bug#1723)
1767
1768 2009-02-14 Chong Yidong <cyd@stupidchicken.com>
1769
1770 * dispextern.h (struct iterator_stack_entry): New line_wrap member.
1771
1772 * xdisp.c (push_it, pop_it): Save and restore line_wrap.
1773 (handle_line_prefix): Suppress wrapping of wrap prefixes.
1774
1775 2009-02-14 Eli Zaretskii <eliz@gnu.org>
1776
1777 * msdos.c (MAX_SCREEN_BUF): New macro.
1778 (IT_write_glyphs): Make screen_buf[] always be MAX_SCREEN_BUF-long.
1779 Encode the entire run of glyphs sharing the same face, instead of
1780 doing that one glyph at a time (fixes a bug with displaying
1781 double-size characters).
1782
1783 2009-02-13 Adrian Robert <Adrian.B.Robert@gmail.com>
1784
1785 * nsfns.m (ns-read-file-name): BLOCK_INPUT while showing dialog.
1786
1787 * nsmenu.m (pop_down_menu): Check popup_activated_flag.
1788 (ns_popup_dialog, EmacsDialogPanel-runDialogAt:): Let
1789 pop_down_menu do the cleanup work as it is always called. (Bug#2154)
1790
1791 * nsfont.m (nsfont_make_fontset_for_font): For now, don't try to
1792 set fontset font for "mathematical-" sub-scripts. (Bug #2218)
1793
1794 2009-02-12 Stefan Monnier <monnier@iro.umontreal.ca>
1795
1796 * keyboard.c (adjust_point_for_property): Allow stopping betwen two
1797 invisible areas.
1798
1799 2009-02-12 Jason Rumney <jasonr@gnu.org>
1800
1801 * w32font.c (check_face_name): Check for fake helv. (Bug#2275)
1802 (add_font_entity_to_list): Call check_face_name even when family
1803 is unspecified.
1804
1805 * w32term.c (x_display_pixel_height, x_display_pixel_width):
1806 Release DC when finished. Use NULL window to refer to desktop.
1807 (w32_term_init): Use NULL window to refer to desktop. (Bug#460)
1808
1809 * w32font.c (add_font_entity_to_list): Fix check for substituted
1810 raster fonts. (Bug#2219)
1811
1812 2009-02-12 Kenichi Handa <handa@m17n.org>
1813
1814 * composite.c (MAX_AUTO_COMPOSITION_LOOKBACK): New macro.
1815 (composition_gstring_width): Fix handling of LGLYPH_YOFF.
1816 (autocmp_chars): Use fast_looking_at. Don't compose more
1817 characters than MAX_COMPOSITION_COMPONENTS.
1818 (find_automatic_composition): While looking forward and backward,
1819 check static composition. Fix where to stop looking forward.
1820 (composition_adjust_point): Fix checking of static composition.
1821 (Fcomposition_get_gstring): Pay attention to
1822 MAX_COMPOSITION_COMPONENTS.
1823
1824 * lisp.h (fast_looking_at): Extern it.
1825
1826 * search.c (fast_looking_at): New function.
1827
1828 * term.c (encode_terminal_code): Adjust for the change of
1829 <struct glyph>.u.cmp.to.
1830 (append_composite_glyph): Likewise.
1831
1832 * xdisp.c (fill_gstring_glyph_string): Adjust for the change of
1833 <struct glyph>.u.cmp.to. Check if the glyph belongs to the same
1834 composition.
1835 (append_composite_glyph): Adjust for the change of
1836 <strcut glyph>.u.cmp.to.
1837
1838 2009-02-11 Juanma Barranquero <lekktu@gmail.com>
1839
1840 * casetab.c (init_casetab_once):
1841 * coding.c (ALLOC_CONVERSION_WORK_AREA):
1842 * font.c (font_update_lface):
1843 * fontset.c (Fnew_fontset):
1844 * ftfont.c (ftfont_drive_otf):
1845 * xfont.c (xfont_open):
1846 * xftfont.c (xftfont_get_xft_draw): Remove spurious semicolons.
1847
1848 2009-02-11 Stefan Monnier <monnier@iro.umontreal.ca>
1849
1850 * fileio.c (Fwrite_region): !NILP -> CONSP.
1851
1852 2009-02-10 Andreas Schwab <schwab@suse.de>
1853
1854 * process.c (send_process): Properly relocate pointer into data
1855 when using encoded data. (Bug#2272)
1856
1857 2009-02-08 ARISAWA Akihiro <ari@mbf.sphere.ne.jp>
1858
1859 * coding.c (detect_coding_charset): Fix previous change.
1860
1861 2009-02-08 Jason Rumney <jasonr@gnu.org>
1862
1863 * w32fns.c (w32_hide_hourglass): Handle case where frame
1864 disappeared while hourglass was displayed. (Bug #2193)
1865
1866 2009-02-07 Andreas Schwab <schwab@suse.de>
1867
1868 * unexelf.c (unexec): Fix error message.
1869
1870 2009-02-07 Adrian Robert <Adrian.B.Robert@gmail.com>
1871
1872 * nsterm.m (EmacsApp-sendEvent:): Defer NSApplicationDefined event
1873 when modal window is active. (Bug #2152)
1874 (applicationShouldTerminate:): Remove now-unneeded while loop
1875 around NSRunAlertPanel.
1876
1877 * nsmenu.m (popupSession): New file-global variable.
1878 (pop_down_menu): End the popupSession before closing dialog.
1879 (ns_popup_dialog): BLOCK_INPUT around dialog presentation.
1880 (EmacsDialogPanel-runDialogAt:): Don't place window (superfluous),
1881 don't query NSApp for events (just sleep instead).
1882
1883 2009-02-07 Eli Zaretskii <eliz@gnu.org>
1884
1885 * coding.c (syms_of_coding) <translation-table-for-input>:
1886 Modify doc string to discourage use for character code unification.
1887
1888 2009-02-07 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
1889
1890 * atimer.c (run_timers): Update pending_atimers.
1891
1892 2009-02-06 Chong Yidong <cyd@stupidchicken.com>
1893
1894 * image.c (svg_load_image): Fix last change.
1895
1896 * xfns.c (Fx_create_frame): Signal an error if no font is
1897 found (Bug#2147).
1898
1899 2009-02-05 Juanma Barranquero <lekktu@gmail.com>
1900
1901 * character.c (syms_of_character) <script-representative-chars>:
1902 Fix typo in docstring.
1903
1904 2009-02-04 Adrian Robert <Adrian.B.Robert@gmail.com>
1905
1906 * nsmenu.m (pop_down_menu): New function.
1907 (ns_popup_dialog): Call it on unwind.
1908 (EmacsDialogPanel-runDialogAt:): Check popup_activated_flag and
1909 call timer_check() (Bug#2154).
1910 (EmacsMenu-menuNeedsUpdate:): Don't call ns_update_menu if
1911 handling_signal is set.
1912 (EmacsMenu-fillWithWidgetValue:): Set submenu title.
1913
1914 * config.in: Get rid of COCOA_EXPERIMENTAL_CTRL_G
1915
1916 * s/darwin.h: Same and NO_SOCK_SIGIO as well.
1917
1918 * nsterm.m (ns_read_socket): Same and don't set handling_signal.
1919
1920 * keyboard.c (poll_for_input_1, handle_async_input):
1921 Set handling_signal under HAVE_NS.
1922
1923 2009-02-04 Glenn Morris <rgm@gnu.org>
1924
1925 * fileio.c (Fwrite_region): Doc fix (mention annotate-functions).
1926
1927 2009-02-04 Kenichi Handa <handa@m17n.org>
1928
1929 * Makefile.in (composite.o): Depends on frame.h and termhooks.h.
1930
1931 * charset.c (Fchar_charset): New optional arg restriction.
1932
1933 * coding.h (coding_system_charset_list): Extern it.
1934
1935 * coding.c (coding_system_charset_list): New function.
1936
1937 * composite.c: Include coding.h and termhooks.h.
1938 (composition_gstring_p): Fix for the terminal case.
1939 (composition_gstring_width): Likewise.
1940 (fill_gstring_body): Likewise.
1941 (autocmp_chars): For terminal, call Fcomposition_get_gstring with
1942 the frame.
1943 (composition_compute_stop_pos): Adjust cmp_it->stop_pos if point
1944 is within a composition.
1945 (Fcomposition_get_gstring): Fix the terminal case.
1946
1947 * term.c (encode_terminal_code): Fix handling of composition.
1948 (produce_composite_glyph): For static composition, get pixel_width
1949 from struct composition.
1950
1951 2009-02-02 Andreas Schwab <schwab@suse.de>
1952
1953 * unexelf.c (unexec): Handle unaligned bss offset.
1954
1955 2009-02-01 Adrian Robert <Adrian.B.Robert@gmail.com>
1956
1957 * nsterm.m (ns_read_socket): Copy 2009-01-29 and 2009-01-30
1958 XT,w32read_socket changes to ns_read_socket.
1959
1960 * keyboard.c (handle_interrupt): Don't call
1961 quit_throw_to_read_char() under NS.
1962
1963 * blockinput.h: Remove NS-specific code.
1964
1965 2009-01-30 Dan Nicolaescu <dann@ics.uci.edu>
1966
1967 * dispnew.c (window_change_signal): Don't try to get the size of a
1968 suspended tty frame.
1969 * term.c (Fresume_tty): Resize if the size has changed while the
1970 tty was suspended.
1971
1972 * alloc.c (mark_stack): Properly conditionalize previous change.
1973
1974 2009-01-30 Juanma Barranquero <lekktu@gmail.com>
1975
1976 * w32inevt.c (w32_console_read_socket) [SYNC_INPUT]:
1977 * w32term.c (w32_read_socket) [SYNC_INPUT]:
1978 Remove; this code is not used on Windows.
1979
1980 2009-01-30 Eli Zaretskii <eliz@gnu.org>
1981
1982 * coding.c (detect_eol, decode_eol): Handle text with DOS-style
1983 EOLs that also has stray ^M characters.
1984
1985 2009-01-30 Juanma Barranquero <lekktu@gmail.com>
1986
1987 * atimer.c (run_timers, alarm_signal_handler):
1988 * keyboard.c (pending_signals, handle_async_input, init_keyboard):
1989 * w32inevt.c (w32_console_read_socket):
1990 * w32term.c (w32_read_socket):
1991 * xterm.c (XTread_socket): Use "#ifdef SYNC_INPUT" where appropriate.
1992
1993 2009-01-30 Chong Yidong <cyd@stupidchicken.com>
1994
1995 * callproc.c (Vtemp_file_name_pattern): Remove DEFVAR_LISP.
1996 Initialize it as a relative filename pattern.
1997 (init_callproc): Don't initialize Vtemp_file_name_pattern here.
1998 (Fcall_process_region): Simplify temp file creation using
1999 temporary-file-directory.
2000
2001 2009-01-29 Eli Zaretskii <eliz@gnu.org>
2002
2003 * msdos.c: Rename pending_signals to msdos_pending_signals.
2004 (sig_suspender, sigprocmask): Adjust.
2005
2006 2009-01-29 Chong Yidong <cyd@stupidchicken.com>
2007
2008 * keyboard.c (pending_signals): New var.
2009 (poll_for_input, input_available_signal, init_keyboard): Set it.
2010 (process_pending_signals): New function.
2011
2012 * lisp.h (QUIT): Check pending_signals instead of
2013 interrupt_input_pending. Use process_pending_signals.
2014
2015 * atimer.c (run_timers, alarm_signal_handler): Update pending_signals.
2016
2017 * process.c (wait_reading_process_output): Use process_pending_signals.
2018
2019 * sysdep.c (emacs_write): Use process_pending_signals.
2020
2021 * xterm.c (XTread_socket): Update pending_signals.
2022
2023 * w32term.c (w32_read_socket): Update pending_signals.
2024
2025 * w32inevt.c (w32_console_read_socket): Update pending_signals.
2026
2027 2009-01-29 Kenichi Handa <handa@m17n.org>
2028
2029 * xftfont.c (xftfont_has_char): New function.
2030 (syms_of_xftfont): Register xftfont_has_char in xftfont_driver.
2031
2032 2009-01-29 Adrian Robert <Adrian.B.Robert@gmail.com>
2033
2034 * nsterm.h (EmacsPrefsController.cursorBlinkSlider): Only define
2035 under GNUstep.
2036 (ns_query_color): New declaration.
2037
2038 * nsterm.m (ns_confirm_quit): New variable.
2039 (ns_set_default_prefs, syms_of_nsterm, ns_term_init): Initialize it.
2040 (EmacsApp-applicationShouldTerminate:): Use it.
2041 (EmacsPrefsController): Let user set it.
2042 (ns_query_color): New function.
2043 (ns_defined_color): Use it.
2044 (ns_initialize): Drop.
2045 (ns_term_init): Add two lines from ns_initialize(), and set
2046 input_interrupt_mode to nil.
2047
2048 * image.c (svg_load_image): Don't right-shift background RGB when
2049 obtained from FRAME_BACKGROUND_PIXEL. Under HAVE_NS use ns_query_color.
2050
2051 2009-01-28 Kenichi Handa <handa@m17n.org>
2052
2053 * fontset.c (font_for_char): Use assq_no_quit, not assoc_no_quit.
2054 (fontset_get_font_group): Remember that no font-group is specified
2055 for C.
2056
2057 2009-01-27 Chong Yidong <cyd@stupidchicken.com>
2058
2059 * fns.c (concat): Check for string overflow (bug#1787).
2060
2061 * undo.c (undo_limit, undo_strong_limit, Vundo_outer_limit):
2062 Quadruple undo limits (bug#1501).
2063
2064 2009-01-27 Kenichi Handa <handa@m17n.org>
2065
2066 * ftfont.c (ftfont_has_char): If the arg FONT is a font-object,
2067 directly use GT_Get_Char_index.
2068
2069 * xftfont.c (struct xftfont_info): New member `index'.
2070
2071 * fontset.c (font_for_char): Use assq_no_quit, not assoc_no_quit.
2072 (Ffontset_font): Adjust for the change of fontset entry.
2073
2074 2009-01-26 Kenichi Handa <handa@m17n.org>
2075
2076 * fontset.c (fontset_find_font): Fix handling of non-cons return
2077 value of fontset_get_font_group.
2078 (fontset_font): Revert last change.
2079
2080 2009-01-26 Jason Rumney <jasonr@gnu.org>
2081
2082 * w32font.c (w32font_list_internal): Return quickly if registry is
2083 unknown. Simplify final return.
2084 (add_font_entity_to_list): Break complex logic down into more
2085 manageable chunks. Move unknown registry check to
2086 w32font_list_internal.
2087
2088 2009-01-25 Adrian Robert <Adrian.B.Robert@gmail.com>
2089
2090 Changes to remove Feval calls from GUI under NS.
2091
2092 * nsterm.h: Move KEY_NS_... definitions here from nsterm.m.
2093 Add NS_TOGGLE_TOOLBAR, NS_PUT_WORKING_TEXT, NS_UNPUT_WORKING_TEXT.
2094 Remove NS_INSERT_WORKING_TEXT, NS_DELETE_WORKING_TEXT.
2095
2096 * nsterm.m: Move KEY_NS_... definitions to nsterm.h.
2097 (EmacsView-toggleToolbar:): Use KEY_NS_TOGGLE_TOOLBAR.
2098 (EmacsView-setMarkedText:,-deleteWorkingText:): Use NS_TEXT_EVENT
2099 instead of NON_ASCII_KEYSTROKE_EVENT.
2100 (EmacsApp-terminate:): Use KEY_NS_POWER_OFF instead of Feval.
2101 (EmacsApp-applicationShouldTerminate:): Query user.
2102 (EmacsPreferencesController-runHelp:): Use KEY_NS_INFO_PREFS
2103 instead of Feval.
2104
2105 * termhooks.h (NS_TEXT_EVENT): New event type under HAVE_NS.
2106
2107 * keyboard.c (kbd_buffer_get_event): Check for it.
2108 (keys_of_keyboard): Define lispy keys for
2109 ns-put/unput-working-text.
2110
2111 * nsmenu.m (ns_popup_dialog): Resync window setting with X and W32
2112 versions.
2113 (EmacsDialog-runDialogAt:): Use NSModalPanelRunLoopMode.
2114
2115 2009-01-25 Chong Yidong <cyd@stupidchicken.com>
2116
2117 * dispnew.c (buffer_posn_from_coords): Use Fset_buffer instead of
2118 setting current_buffer directly. (Bug#2044)
2119
2120 2009-01-24 Chong Yidong <cyd@stupidchicken.com>
2121
2122 * fontset.c (fontset_font): If we know there is no font, don't do
2123 any work. (Bug#1952, bug#1990).
2124
2125 * font.c (font_parse_xlfd): Handle patterns of length < 2. (Bug#1802)
2126
2127 2009-01-23 Adrian Robert <Adrian.B.Robert@gmail.com>
2128
2129 * emacs.c (main): Do fork+exec under --daemon in Cocoa.
2130 (ns_no_defaults): New declaration.
2131 (main): Use it.
2132
2133 * nsterm.h (ns_no_defaults): New declaration.
2134
2135 * nsfns.m (x_get_string_resource): Don't read when ns_no_defaults.
2136
2137 * nsterm.m (ns_no_defaults): New variable.
2138 (ns_initialize): Don't read defaults when ns_no_defaults.
2139 (EmacsView-readSelectionFromPasteboard:)
2140 (writeSelectionToPasteboard:types:): New stubbed-out methods for
2141 NSServicesRequests protocol. (Bug#1435)
2142 (ns_dumpglyphs_stretch): New function.
2143 (ns_draw_glyph_string): Use it, parallel Yamamoto Mitsuharu change
2144 of 2008-11-15 to other terms. (Bug#615)
2145
2146 * nsimage.m (setPixmapData:): Set to ignore image DPI.
2147
2148 2009-01-23 Giorgos Keramidas <keramida@freebsd.org> (tiny change)
2149
2150 * alloc.c (mark_stack): Use "flushw" instead of "ta 3" assembly
2151 call for Sparc64.
2152
2153 2009-01-22 Adrian Robert <Adrian.B.Robert@gmail.com>
2154
2155 * nsfns.m:
2156 * nsgui.h:
2157 * nsmenu.m:
2158 * nsselect.m:
2159 * nsterm.h:
2160 * nsterm.m: Remove '23' comments that indicated code added during
2161 update from emacs-20 -> emacs-23.
2162
2163 2009-01-22 Adrian Robert <Adrian.B.Robert@gmail.com>
2164
2165 * nsterm.m (EmavsView-keyDown:): Treat nil as Qnone for
2166 ns_alternate_modifier. (Bug#1217)
2167
2168 * nsmenu.m (EmacsMenu-parseKeyEquiv:, addItemWithWidgetValue:):
2169 Display all shortcuts, including those w/o super modifier.
2170
2171 * nsfns.m (ns-read-file-name): Fix typo in assignment statement.
2172
2173 2009-01-22 Chong Yidong <cyd@stupidchicken.com>
2174
2175 * fileio.c (Vwrite_region_post_annotation_function)
2176 (Vwrite_region_annotation_buffers): New vars.
2177 (build_annotations_unwind): Just reset
2178 Vwrite_region_annotation_buffers.
2179 (Fwrite_region): Initialize Vwrite_region_annotation_buffers.
2180 Call write-region-post-annotation-function.
2181 (build_annotations): Add to Vwrite_region_annotation_buffers if
2182 buffer changes.
2183
2184 2009-01-21 Adrian Robert <Adrian.B.Robert@gmail.com>
2185
2186 * nsterm.h (EmacsApp-setAppleMenu:): Conditionalize more correctly on
2187 Tiger.
2188 * nsfns.m (ns_do_applescript):
2189 Conditionalize typeUTF16ExternalRepresentation on Tiger.
2190
2191 2009-01-21 Wolfgang Lux <wolfgang.lux@gmail.com> (tiny change)
2192
2193 * nsterm.m (EV_TRAILER): Always use emacsframe for frame_or_window.
2194
2195 2009-01-21 Adrian Robert <Adrian.B.Robert@gmail.com>
2196
2197 * nsmenu.m (NSMENUPROFILE): Change #if style.
2198
2199 * nsterm.h (EmacsPrefsController): Add -setPanelFromDefaultValues.
2200
2201 * nsterm.m (x_set_frame_alpha): Add prototype.
2202 (ns_fake_keydown, EmacsView-keyUp:): New variable and function to
2203 handle Ctrl-tab. (Bug#1841)
2204 (ns_get_color): Use unsigned long long for scanned hex string value.
2205 (ns_term_shutdown): Abort on non SIGTERM signals.
2206 (EmacsPrefsController-setDefaultFont:,-setColors:): Raise the frame.
2207 (EmacsPrefsController-setPanelFromDefaultValues): New function.
2208 (EmacsPrefsController-resetToDefaults:): Use it. (Bug#1801)
2209 (ns_font_to_xlfd, ns_fontname_to_xlfd): Remove, unused.
2210 (ns_defined_color): Fix settings of the XColor variable fields:
2211 red,green,blue scale to 2-byte, pixel's parts to 1-byte. (Bug#1663)
2212
2213 * nsimage.m (EmacsImage+allocInitFromFile:): Set to ignore image
2214 DPI. (Bug#1316)
2215 (EmacsImage-setPixelAtX:Y:toRed:green:blue:alpha:): Fix color
2216 values in onTiger section.
2217
2218 2009-01-19 Chong Yidong <cyd@stupidchicken.com>
2219
2220 * xfaces.c (Finternal_set_lisp_face_attribute, Fx_list_fonts):
2221 Check return value of font_spec_from_name.
2222 (Fx_list_fonts): Doc fix. (Bug#1951)
2223
2224 * font.c (font_spec_from_name): Return Qnil if font name could not
2225 be parsed.
2226 (font_parse_name): Treat a `?' character as part of an XLFD.
2227
2228 * fns.c (Fsubstring): Doc fix.
2229
2230 2009-01-19 Kenichi Handa <handa@m17n.org>
2231
2232 * ftfont.c (ftfont_lookup_cache): Check the return value of FcFontList.
2233 (ftfont_list): Likewise.
2234
2235 2009-01-18 Juanma Barranquero <lekktu@gmail.com>
2236
2237 * dbusbind.c (Fdbus_register_signal):
2238 * process.c (conv_sockaddr_to_lisp):
2239 * w32fns.c (Fw32_battery_status): Use empty_unibyte_string.
2240
2241 * callproc.c (Fgetenv_internal): Doc fix.
2242
2243 2009-01-16 Chong Yidong <cyd@stupidchicken.com>
2244
2245 * xfns.c (x_make_gc): Don't allocate stipple member for gc_values;
2246 it is not even used.
2247
2248 2009-01-16 Glenn Morris <rgm@gnu.org>
2249
2250 * font.c (Ffont_variation_glyphs): Silence compiler.
2251
2252 2009-01-15 Juanma Barranquero <lekktu@gmail.com>
2253
2254 * sound.c (SOUND_WARNING): Use _snprintf, for MSVC compatibility.
2255 Reported by David Robinow <drobinow@gmail.com>.
2256
2257 2009-01-15 Kenichi Handa <handa@m17n.org>
2258
2259 * coding.c (detect_coding_system): Fix handling of null_byte_found.
2260
2261 2009-01-14 Jason Rumney <jasonr@gnu.org>
2262
2263 * frame.c (x_set_font): Always store a font to the font parameter,
2264 never a fontset. (Bug#1562)
2265
2266 2009-01-14 Kenichi Handa <handa@m17n.org>
2267
2268 * coding.c (TWO_MORE_BYTES): New macro.
2269 (detect_coding_utf_16): Use TWO_MORE_BYTES instead of ONE_MORE_BYTE.
2270
2271 2009-01-13 Chong Yidong <cyd@stupidchicken.com>
2272
2273 * font.c (font_clear_prop): If clearing the family, clear the font
2274 width index too.
2275
2276 * xfaces.c (Finternal_set_lisp_face_attribute): Revert last change.
2277
2278 2009-01-12 Juanma Barranquero <lekktu@gmail.com>
2279
2280 * sound.c [WINDOWSNT] (SOUND_WARNING): New macro.
2281 (do_play_sound): Use it. Don't pass a hardcoded buffer size to mci
2282 functions, use sizeof.
2283
2284 2009-01-12 Martin Rudalics <rudalics@gmx.at>
2285
2286 * keyboard.c (read_char): Fix case where last_nonmenu_event
2287 returned a bad value with submenus. (Bug#447)
2288
2289 2009-01-12 Chong Yidong <cyd@stupidchicken.com>
2290
2291 * xfaces.c (Finternal_set_lisp_face_attribute): If setting the
2292 family, clear the font width index too.
2293
2294 2009-01-11 Jason Rumney <jasonr@gnu.org>
2295
2296 * keyboard.c (cmd_error_internal): Exit when errors occur before
2297 frame creation and not in daemon mode. (Bug#1836)
2298
2299 2009-01-10 Chong Yidong <cyd@stupidchicken.com>
2300
2301 * xdisp.c (pos_visible_p): When iterator stops on the last glyph
2302 of a display vector, backtrack.
2303 (try_window_reusing_current_matrix): Check glyph type before
2304 referencing charpos member.
2305
2306 2009-01-10 Eli Zaretskii <eliz@gnu.org>
2307
2308 Fix Bug #876:
2309
2310 * coding.c (inhibit_null_byte_detection): New variable.
2311 (detect_coding, detect_coding_system): Don't pay attention to null
2312 bytes if inhibit_null_byte_detection is non-zero.
2313 (syms_of_coding) <inhibit-null-byte-detection>: Declare and document.
2314 <inhibit-iso-escape-detection>: Doc fix.
2315
2316 2009-01-09 Jason Rumney <jasonr@gnu.org>
2317
2318 * w32font.c (add_font_entity_to_list): Don't report unknown
2319 Windows charset as any unrecognized registry. (Bug#1548)
2320 Only report Unicode Plane 2 fonts as unicode-sip.
2321
2322 2009-01-09 Chong Yidong <cyd@stupidchicken.com>
2323
2324 * xfaces.c (Fx_font_family_list): Delete function.
2325 Move compatibility version to faces.el.
2326
2327 * font.c (Ffont_family_list): Return a list of strings, not symbols.
2328
2329 2009-01-09 Martin Rudalics <rudalics@gmx.at>
2330
2331 * frame.c (x_set_frame_parameters): Remember requested value for
2332 fullscreen before it's reset by the parameter handler.
2333
2334 2009-01-09 Glenn Morris <rgm@gnu.org>
2335
2336 * keyboard.c (last_command_char): For clarity, rename to...
2337 (last_command_event): ... and update all users.
2338 (last_input_char): For clarity, rename to...
2339 (last_input_event): ... and update all users.
2340 (last-command-char, last-input-char): Move to subr.el as aliases.
2341 * cmds.c, commands.h: Update for last_command_char rename.
2342
2343 2009-01-08 Chong Yidong <cyd@stupidchicken.com>
2344
2345 * font.c (font_open_for_lface): Handle unspecified height attribute.
2346
2347 2009-01-08 Jason Rumney <jasonr@gnu.org>
2348
2349 * w32fns.c (Vx_pointer_shape, Vx_nontext_pointer_shape)
2350 (Vx_mode_pointer_shape, Vx_window_horizontal_drag_shape)
2351 (Vx_hourglass_pointer_shape, Vx_sensitive_text_pointer_shape):
2352 Don't declare.
2353 (syms_of_w32fns): Don't define x-pointer-shape variable. (Bug#1485)
2354 (x_create_tip_frame) [GLYPH_DEBUG]: Enable image debugging code.
2355
2356 2009-01-07 Kenichi Handa <handa@m17n.org>
2357
2358 * fileio.c (Finsert_file_contents): In the case of replace,
2359 remember the coding system used for decoding in
2360 coding_system (Bug#1039).
2361
2362 * coding.c (decode_coding_utf_8): Check byte_after_cr before
2363 breaking the loop. (Bug#870)
2364 (decode_coding_utf_16, decode_coding_emacs_mule)
2365 (decode_coding_iso_2022, decode_coding_sjis, decode_coding_big5)
2366 (decode_coding_charset): Likewise.
2367
2368 2009-01-05 Martin Rudalics <rudalics@gmx.at>
2369
2370 * frame.c (x_set_frame_parameters): Make sure height (width) get
2371 applied when fullwidth (fullheight) is set. (Bug#1522)
2372
2373 2009-01-04 Juanma Barranquero <lekktu@gmail.com>
2374
2375 * w32.c: Use 64-bit arithmetic to do FILETIME conversions. (Bug#1766)
2376 (utc_base): Declare as ULONGLONG, not long double.
2377 (convert_time_raw): Delete.
2378 (FILETIME_TO_U64, U64_TO_LISP_TIME): New macros.
2379 (initialize_utc_base): New function.
2380 (convert_time): Use FILETIME_TO_U64, initialize_utc_base.
2381 (convert_from_time_t): Use initialize_utc_base; compute result with
2382 64-bit arithmetic.
2383 (process_times): Use FILETIME_TO_U64, U64_TO_LISP_TIME.
2384
2385 2009-01-03 Eli Zaretskii <eliz@gnu.org>
2386
2387 * process.c (Qeuid, Qegid, Qcomm, Qstate, Qppid, Qpgrp, Qsess)
2388 (Qttname, Qminflt, Qmajflt, Qcminflt, Qcmajflt, Qutime, Qstime)
2389 (Qcutime, Qpri, Qnice, Qthcount, Qstart, Qvsize, Qrss, Qargs)
2390 (Quser, Qgroup, Qetime, Qpcpu, Qpmem, Qtpgid, Qcstime)
2391 [!subprocesses]: Define.
2392 (syms_of_process) [!subprocesses]: Intern and staticpro them.
2393 (Flist_system_processes, Fsystem_process_attributes)
2394 [!subprocesses]: Call list_system_processes and
2395 system_process_attributes instead of returning Qnil.
2396
2397 * dosfns.c (system_process_attributes, list_system_processes):
2398 New functions.
2399
2400 * vm-limit.c (ret_lim_data) [MSDOS]: New function.
2401
2402 * sysdep.c (list_system_processes, system_process_attributes) [MSDOS]:
2403 Don't use the default (no-op) implementation.
2404
2405 2009-01-03 Jason Rumney <jasonr@gnu.org>
2406
2407 * keyboard.c (parse_modifiers_uncached): Wheel events are
2408 clicks (bug#687).
2409
2410 * w32term.c (x_query_colors, x_query_color): New functions.
2411
2412 * image.c (x_to_xcolors, png_load): Eliminate W32 specific code.
2413 (svg_load_image): Cast returned pointers from dynamically loaded
2414 functions. Eliminate W32 specific code.
2415
2416 2009-01-02 Dan Nicolaescu <dann@ics.uci.edu>
2417
2418 * nsfns.m (x_set_foreground_color, x_set_background_color)
2419 (x_set_cursor_color, x_set_icon_name, x_explicitly_set_name)
2420 (x_set_title, x_set_icon_type, x_set_cursor_type): Rename to use
2421 x_ prefix instead of ns_. Update references.
2422 (syms_of_nsfns): Add a FIXME comment.
2423
2424 * nsterm.m (x_set_cursor_type): New prototype.
2425 (setValuesFromPanel): Use it instead of the old ns_ prefixed name.
2426
2427 * sysdep.c (system_process_attributes): Provide Qtime and Qctime
2428 for Solaris instead of incorrectly providing Qutime and Qcutime.
2429
2430 2009-01-02 Eli Zaretskii <eliz@gnu.org>
2431
2432 * w32.c (process_times): Compute sum of utime and stime.
2433 (system_process_attributes): Add Qtime to the alist.
2434
2435 * sysdep.c (system_process_attributes): Compute Qtime and Qctime
2436 and add them to the alist.
2437
2438 * process.c (top level) <Qtime, Qctime>: New variables.
2439 (syms_of_process): staticpro them.
2440 (Fsystem_process_attributes): Add their documentation to the doc
2441 string.
2442
2443 * process.h: Declare Qtime and Qctime.
2444
2445 2009-01-02 Jason Rumney <jasonr@gnu.org>
2446
2447 * image.c (Qgobject): New symbol.
2448 (syms_of_image): Initialize it.
2449 (init_svg_functions): Load some functions from gobject library.
2450
2451 2009-01-01 Dan Nicolaescu <dann@ics.uci.edu>
2452
2453 * frame.c (make_terminal_frame): Remove redundant code and useless
2454 block.
2455
2456 2009-01-01 Andreas Schwab <schwab@suse.de>
2457
2458 * process.c (conv_sockaddr_to_lisp): Add workaround for
2459 getsockname bug on BSD.
2460
2461 2009-01-01 Chong Yidong <cyd@stupidchicken.com>
2462
2463 * xfns.c (x_create_tip_frame): Set border width of the X window.
2464
2465 * xfaces.c (Finternal_set_lisp_face_attribute): Improve error message.
2466
2467 2009-01-01 Jason Rumney <jasonr@gnu.org>
2468
2469 * w32term.c (x_new_font): Return font object, not fontset. (Bug#119)
2470 Don't block input, as per earlier xterm.c changes.
2471
2472 2008-12-31 Adrian Robert <Adrian.B.Robert@gmail.com>
2473
2474 * nsfns.m (ns_appkit_version_str): Rename from ns_appkit_version.
2475 (ns_appkit_version_int): New function.
2476 (x-server-version): Use ns_appkit_version_int and follow 21+
2477 convention of returning 3 integers.
2478
2479 2008-12-30 Kenichi Handa <handa@m17n.org>
2480
2481 * character.h (CHAR_VARIATION_SELECTOR_P): New macro.
2482 (CHAR_SURROGATE_PAIR_P): New macro.
2483
2484 * font.h (struct font_driver): New member get_variation_glyphs.
2485
2486 * font.c (font_range): Don't require a font for a variation selector.
2487 (Ffont_variation_glyphs): New function.
2488 (syms_of_font): Defsubr it.
2489
2490 * ftfont.c (ftfont_driver): Set the member get_variation_glyphs to
2491 ftfont_variation_glyphs.
2492 (setup_otf_gstring): New function.
2493 (ftfont_drive_otf): Use it.
2494 (ftfont_shape_by_flt): Handle variation selector.
2495 (ftfont_variation_glyphs): New function.
2496
2497 2008-12-30 Martin Rudalics <rudalics@gmx.at>
2498
2499 * frame.c (Vemacs_iconified): Remove.
2500
2501 2008-12-30 Jason Rumney <jasonr@gnu.org>
2502
2503 * frame.c (store_frame_param, x_get_arg): Enable newer code on
2504 WINDOWSNT too, as related changes have already been synced. (Bug#117)
2505
2506 2008-12-30 Chong Yidong <cyd@stupidchicken.com>
2507
2508 * indent.c (Fvertical_motion): Don't advance iterator if we have
2509 reseated to the desired position.
2510
2511 * xdisp.c (move_it_to): Handle GET_FROM_STRETCH method when
2512 checking for pos match.
2513
2514 2008-12-30 Kenichi Handa <handa@m17n.org>
2515
2516 * insdel.c (copy_text): To convert a non-ASCII char to unibyte,
2517 just get the low 8-bit of the code.
2518
2519 * font.c (font_intern_prop): Validate str as multibyte.
2520
2521 2008-12-29 Dan Nicolaescu <dann@ics.uci.edu>
2522
2523 * dispextern.h (struct face): Move lface and hash from the middle
2524 of bitfields.
2525
2526 * Makefile.in (INTERVALS_H): Rename from INTERVAL_SRC, update all users.
2527
2528 2008-12-29 Dan Nicolaescu <dann@ics.uci.edu>
2529
2530 * Makefile.in (INTERVAL_SRC): Also depend on dispextern.h.
2531 (coding.o, dispnew.o, keymap.o, msdos.o): Depend on INTERVAL_SRC
2532 instead of intervals.h.
2533
2534 2008-12-26 Andreas Schwab <schwab@suse.de>
2535
2536 * keymap.c (map_keymap_char_table_item): Make a copy of KEY if it is a
2537 cons.
2538
2539 2008-12-26 Martin Rudalics <rudalics@gmx.at>
2540
2541 * textprop.c (Qminibuffer_prompt): New variable.
2542 (syms_of_textprop): Initialize it.
2543 * callint.c (Fcall_interactively): For `c', `k', and `K' prompt
2544 in minibuffer-prompt face. (Bug#1662)
2545
2546 2008-12-25 Jason Rumney <jasonr@gnu.org>
2547
2548 * buffer.c (Fbuffer_swap_text): Use POINTER_TYPE.
2549
2550 2008-12-24 Jason Rumney <jasonr@gnu.org>
2551
2552 * ralloc.c (r_alloc_reset_variable): New function.
2553
2554 * buffer.c (Fbuffer_swap_text) [REL_ALLOC]: Reset ralloc's internal
2555 record of what points where. (Bug#716)
2556
2557 2008-12-22 Dan Nicolaescu <dann@ics.uci.edu>
2558
2559 * minibuf.c (read_minibuf): Follow the non-interactive case when
2560 running as a daemon, before detaching.
2561
2562 2008-12-22 Andreas Schwab <schwab@suse.de>
2563
2564 * buffer.c (init_buffer): Use realloc instead of xrealloc.
2565 * gtkutil.c (free_widget_value): Use xfree instead of free.
2566
2567 2008-12-22 Martin Rudalics <rudalics@gmx.at>
2568
2569 * frame.c (delete_frame): New function derived from
2570 Fdelete_frame to handle Qnoelisp value for FORCE argument.
2571 Delete last frame iff FORCE equals Qnoelisp. (Bug#1450)
2572 (Fdelete_frame): Call delete_frame. Remove line from doc-string
2573 saying that FORCE non-nil doesn't run `delete-frame-functions'.
2574 * frame.h: Extern delete_frame.
2575 * window.c (window_loop):
2576 * terminal.c (delete_terminal):
2577 * xterm.c (x_connection_closed):
2578 * xfns.c (Fx_hide_tip):
2579 * w32fns.c (Fx_hide_tip): Call delete_frame instead of Fdelete_frame.
2580
2581 2008-12-21 Jason Rumney <jasonr@gnu.org>
2582
2583 * w32uniscribe.c (uniscribe_encode_char): Return FONT_INVALID_CHAR
2584 when character maps to .notdef character.
2585
2586 2008-12-21 Stefan Monnier <monnier@iro.umontreal.ca>
2587
2588 * keyboard.c (cmd_error_internal): Don't exit in daemon mode, bug#1310.
2589
2590 2008-12-20 Jason Rumney <jasonr@gnu.org>
2591
2592 * frame.c (Fmake_terminal_frame): Raise an error when called from
2593 a graphical frame on Windows. (Bug#1325)
2594
2595 2008-12-20 Jan Djärv <jan.h.d@swipnet.se>
2596
2597 * frame.c (Fdelete_frame): Set f->menu_bar_vector to Qnil.
2598
2599 2008-12-20 Chong Yidong <cyd@stupidchicken.com>
2600
2601 * minibuf.c (Fread_buffer): Doc fix.
2602
2603 2008-12-20 Jason Rumney <jasonr@gnu.org>
2604
2605 * fileio.c (Fexpand_file_name): Do not allow ../ to go beyond the
2606 server name in UNC paths. (Bug#719)
2607
2608 * coding.c (decode_coding): Clear chars_at_source flag when using
2609 charbuf. (Bug#1035)
2610
2611 2008-12-19 Daniel Engeler <engeler@gmail.com>
2612
2613 * sysdep.c (serial_configure): Fix typo.
2614
2615 2008-12-19 Dan Nicolaescu <dann@ics.uci.edu>
2616
2617 * sysdep.c: Include alloca.h.
2618 (system_process_attributes): Add implementation for Solaris.
2619
2620 * s/sol2-10.h (HAVE_PROCFS, _STRUCTURED_PROC): New defines.
2621
2622 2008-12-19 Dan Nicolaescu <dann@ics.uci.edu>
2623
2624 Reorganize implementation of Flist_system_processes and
2625 Fsystem_process_attributes. No functional changes.
2626 * process.c: Don't #include pwd.h, grp.h and limits.h.
2627 (Flist_system_processes): Just call list_system_processes.
2628 (Fsystem_process_attributes): Just call system_process_attributes.
2629 (procfs_list_system_processes, time_from_jiffies)
2630 (ltime_from_jiffies, get_up_time, procfs_ttyname, MAJOR, MINOR)
2631 (procfs_get_total_memory, procfs_system_process_attributes): Move ...
2632
2633 * sysdep.c: ... here. Include pwd.h, grp.h and limits.h.
2634 (list_system_processes): Rename from
2635 procfs_list_system_processes. Enclose in #ifdef HAVE_PROCFS.
2636 Provide a do nothing implementation.
2637 (system_process_attributes): Rename from
2638 procfs_list_system_processes.
2639 (ltime_from_jiffies, get_up_time, procfs_ttyname, MAJOR, MINOR)
2640 (procfs_get_total_memory): Enclose in #ifdef GNU_LINUX.
2641
2642 * w32.c (list_system_processes): Rename from
2643 w32_list_system_processes.
2644 (system_process_attributes): Rename from
2645 w32_system_process_attributes.
2646
2647 * s/gnu-linux.h (LISTPROC, PROCATTR): Remove.
2648
2649 * process.h (w32_list_system_processes)
2650 (w32_system_process_attributes): Remove.
2651 (list_system_processes, system_process_attributes): New
2652 prototypes.
2653
2654 2008-12-19 Kenichi Handa <handa@m17n.org>
2655
2656 * xfont.c (xfont_decode_coding_xlfd): New function.
2657 (xfont_encode_coding_xlfd): New function.
2658 (xfont_list_pattern): Decode XLFD by iso-8859-1.
2659 (xfont_list): Decode and encode XLFD by iso-8859-1.
2660 (xfont_match): Likewise.
2661 (xfont_list_family): Likewise.
2662 (xfont_open): Likewise.
2663
2664 * ftfont.c (ftfont_open): Generate a multibyte string if given
2665 names are utf-8.
2666
2667 * xftfont.c (xftfont_open): Generate a multibyte string if given
2668 names are utf-8.
2669
2670 2008-12-18 Jan Djärv <jan.h.d@swipnet.se>
2671
2672 * gtkutil.c (xg_frame_resized): Remove check if rows/columns have
2673 changed.
2674 (xg_tool_bar_proxy_callback): Put focus on the frame after we have
2675 clicked on a detached tool bar button.
2676
2677 2008-12-18 Dan Nicolaescu <dann@ics.uci.edu>
2678
2679 * emacs.c (main): Print and error and exit when no data is read
2680 from the pipe.
2681
2682 2008-12-17 Jason Rumney <jasonr@gnu.org>
2683
2684 * w32font.c (w32font_has_char): Always return -1.
2685
2686 2008-12-16 Kenichi Handa <handa@m17n.org>
2687
2688 * font.c (font_open_entity): Fix previous change.
2689
2690 2008-12-16 Dan Nicolaescu <dann@ics.uci.edu>
2691
2692 * process.c: Include <limits.h>.
2693
2694 2008-12-16 Chetan Pandya <pandyacus@sbcglobal.net> (tiny change)
2695
2696 * font.c (font_update_drivers): Fix mistake in reconstructing the
2697 driver list.
2698
2699 2008-12-16 Chong Yidong <cyd@stupidchicken.com>
2700
2701 * font.c (font_clear_cache): Fix format of font cache data.
2702
2703 2008-12-15 Chong Yidong <cyd@stupidchicken.com>
2704
2705 * xftfont.c (xftfont_open): Free Xft font pattern if
2706 XftFontOpenPattern fails.
2707
2708 * xterm.c (x_free_frame_resources): Remove extraneous call to
2709 free_frame_faces.
2710
2711 2008-12-13 Chong Yidong <cyd@stupidchicken.com>
2712
2713 * xterm.c (x_delete_display): Move xim_close_dpy call to
2714 x_delete_terminal.
2715 (x_delete_terminal): Call xim_close_dpy.
2716
2717 2008-12-13 Jason Rumney <jasonr@gnu.org>
2718
2719 * w32font.c (intern_font_name): New function.
2720 (add_font_name_to_list, w32_enumfont_pattern_entity): Use it.
2721 (w32font_open_internal, Fx_select_font): Decode font name.
2722 (fill_in_logfont, list_all_matching_fonts): Encode font name.
2723
2724 * w32font.h (intern_font_name): Declare new function.
2725
2726 * w32uniscribe.c (add_opentype_font_name_to_list):
2727 Use intern_font_name.
2728
2729 2008-12-13 Chong Yidong <cyd@stupidchicken.com>
2730
2731 * frame.c (Fdelete_frame): Call free_font_driver_list.
2732
2733 * font.c (free_font_driver_list): Implement missing function.
2734
2735 * w32term.c (w32_term_init): Don't initialize the image cache
2736 here; it will be done in init_frame_faces.
2737
2738 * xterm.h (struct xim_inst_t): Definition moved from xterm.c.
2739 (struct x_display_info): Remove unused member null_pixel. New
2740 member xim_callback_data.
2741
2742 * xterm.c (struct xim_inst_t): Definition moved to xterm.h.
2743 (xim_initialize): Save pointer to callback function data.
2744 (xim_close_dpy): Free callback function data. Call XCloseIM,
2745 reverting 2008-11-04 change by David Smith.
2746 (x_term_init): Don't initialize the image cache here; it will be
2747 done in init_frame_faces. Remove ancient "null_pixel" cruft.
2748 (x_delete_display): Free x_dnd_atoms member.
2749
2750 2008-12-13 Kenichi Handa <handa@m17n.org>
2751
2752 * font.c (font_rescale_ratio): Moved from xfaces.c.
2753 Argument type changed. Handle a font-spec too.
2754 (font_score): Check Vface_font_rescale_alist.
2755 (font_open_entity): Likewise. (Bug#1547)
2756
2757 * xfaces.c (font_rescale_ratio): Moved to font.c.
2758
2759 2008-12-13 Chong Yidong <cyd@stupidchicken.com>
2760
2761 * xfns.c (Fx_wm_set_size_hint): Check if the frame is an X frame.
2762
2763 2008-12-12 Jason Rumney <jasonr@gnu.org>
2764
2765 * w32fns.c (x_display_info_for_name, Fx_open_connection): Set
2766 Vwindow_system_version to the real w32 major version.
2767
2768 2008-12-12 Dan Nicolaescu <dann@ics.uci.edu>
2769
2770 * term.c (init_tty): Move setting the terminal name before the
2771 potential user: maybe_fatal.
2772
2773 2008-12-11 Chong Yidong <cyd@stupidchicken.com>
2774
2775 * term.c (tty_free_frame_resources): Renamed from delete_tty_output;
2776 all callers changed. Call free_frame_faces to free the face cache.
2777
2778 2008-12-11 Jason Rumney <jasonr@gnu.org>
2779
2780 * w32font.c (fill_in_logfont): Don't assume symbol script means
2781 SYMBOL_CHARSET. (Bug#547)
2782
2783 * w32uniscribe.c (uniscribe_encode_char): Increase glyph buffer
2784 size for surrogates. (Bug#1096, bug#872)
2785
2786 2008-12-11 Juanma Barranquero <lekktu@gmail.com>
2787
2788 * w32proc.c (Fw32_get_locale_info): Decode long form of locale name.
2789
2790 2008-12-11 Juanma Barranquero <lekktu@gmail.com>
2791
2792 * process.c (Fsystem_process_attributes, syms_of_process):
2793 Fix typo in name of Ssystem_process_attributes.
2794 Reported by Ulrich Mueller <ulm@kph.uni-mainz.de>.
2795
2796 2008-12-11 Juanma Barranquero <lekktu@gmail.com>
2797
2798 * syntax.c (Fmodify_syntax_entry): Doc fix.
2799
2800 2008-12-10 Juanma Barranquero <lekktu@gmail.com>
2801
2802 * font.c (Ffont_spec): Move usage to end of docstring.
2803
2804 2008-12-10 Jason Rumney <jasonr@gnu.org>
2805
2806 * w32font.c (Qcham): New symbol.
2807 (font_supported_scripts): Add cham, and comments for other new
2808 scripts in bitfield from OpenType spec.
2809 (add_font_entity_to_list): Limit unicode-sip fonts to those that
2810 contain characters beyond the bmp.
2811
2812 2008-12-10 Kenichi Handa <handa@m17n.org>
2813
2814 * ftfont.c (fc_charset_table): Add "unicode-sip".
2815 (ftfont_spec_pattern): Lookup fc_charset_table for the registry
2816 Qunicode_sip.
2817
2818 2008-12-10 Juanma Barranquero <lekktu@gmail.com>
2819
2820 * coding.c (QCdefault_char): Rename from QCdefalut_char.
2821 (Fcoding_system_put): Use QCdefault_char.
2822 (syms_of_coding): Set QCdefault_char, not QCdefalut_char.
2823
2824 2008-12-09 Chong Yidong <cyd@stupidchicken.com>
2825
2826 * xftfont.c (syms_of_xftfont): Fix typo.
2827
2828 * buffer.c (Fbuffer_swap_text): Signal error if swapping a dead buffer.
2829
2830 2008-12-08 Dan Nicolaescu <dann@ics.uci.edu>
2831
2832 * emacs.c (main): Close daemon_pipe on exec.
2833
2834 2008-12-08 Chong Yidong <cyd@stupidchicken.com>
2835
2836 * termchar.h (struct tty): New members termcap_term_buffer and
2837 termcap_strings_buffer.
2838
2839 * term.c (encode_terminal_code): Free any previous memory blocks
2840 before calling xmalloc for encode_terminal_src or encode_terminal_dst.
2841 (maybe_fatal): Buffer argument deleted. Don't free buffer here.
2842 All callers changed.
2843 (init_tty): Store termcap data and string buffers in new struct
2844 tty members termcap_term_buffer and termcap_strings_buffer.
2845 (delete_tty): Free them.
2846 (syms_of_term): Initialize encode_terminal_src and encode_terminal_dst.
2847
2848 2008-12-07 Seiji Zenitani <zenitani@mac.com>
2849
2850 * nsfns.m (ns_set_background_color): Remove code duplication.
2851 It was a substitute for face-transparency on OS X 10.3.
2852
2853 2008-12-06 Chong Yidong <cyd@stupidchicken.com>
2854
2855 * coding.c (make_conversion_work_buffer): Disable buffer
2856 modification hooks in the work buffer.
2857
2858 2008-12-05 Eli Zaretskii <eliz@gnu.org>
2859
2860 * process.c (procfs_system_process_attributes): If `nread' has a
2861 negative value, assign zero to it.
2862
2863 2008-12-05 Chong Yidong <cyd@stupidchicken.com>
2864
2865 * eval.c (Vdebug_on_error): Doc fix.
2866
2867 2008-12-05 Kenichi Handa <handa@m17n.org>
2868
2869 * ftfont.c (ftfont_shape_by_flt): Use "combining" flt if the
2870 second character is a combining character.
2871
2872 2008-12-05 Eli Zaretskii <eliz@gnu.org>
2873
2874 * process.c (procfs_system_process_attributes): Don't use cmd,
2875 cmdsize, and q without initializing them first.
2876
2877 2008-12-04 Jason Rumney <jasonr@gnu.org>
2878
2879 * w32font.c (w32font_draw): Initialize orig_clip before getting
2880 it, and delete it when finished.
2881
2882 2008-12-04 Dan Nicolaescu <dann@ics.uci.edu>
2883
2884 * keyboard.c (kbd_buffer_get_event): Follow the non-interactive
2885 case when running as a daemon before detaching.
2886
2887 2008-12-03 Juanma Barranquero <lekktu@gmail.com>
2888
2889 * w32.c (init_environment): Don't unload library shell32.dll.
2890
2891 2008-12-03 Kenichi Handa <handa@m17n.org>
2892
2893 * font.c (font_at): Set `multibyte' at first.
2894
2895 * coding.c (decode_coding_charset): Check type of an element of
2896 vector VALIDS.
2897 (encode_coding_emacs_mule): Be sure to set `code'.
2898
2899 * fontset.c (face_for_char): Handle invalid charset property correctly.
2900 (font_for_char): Likewise.
2901
2902 2008-12-03 Chong Yidong <cyd@stupidchicken.com>
2903
2904 * font.c (Fopen_font): Compute pixel size correctly.
2905 (font_update_lface): Handle fonts with corrupted size specs,
2906 i.e. non-int and non-float.
2907
2908 * ftfont.c (ftfont_match): Initialize entity variable.
2909 (ftfont_resolve_generic_family): Avoid using uninitialized var.
2910 (ftfont_list_family): Initialize list var earlier.
2911
2912 * xselect.c (Fx_get_cut_buffer_internal): Fix memory leak.
2913
2914 * xterm.c (x_draw_glyph_string): Fall back on
2915 underline_minimum_offset for underline position.
2916
2917 2008-12-03 Dan Nicolaescu <dann@ics.uci.edu>
2918
2919 * keyboard.c (read_char_help_form_unwind): Specify the type for ARG.
2920
2921 * character.c (c_string_width): Specify the type for LEN.
2922
2923 2008-12-03 Kenichi Handa <handa@m17n.org>
2924
2925 * coding.c (decode_coding_utf_16): Initialize consumed_chars_base to 0.
2926 (decode_coding_utf_8): Likewise.
2927 (detect_coding_system): Initialize utf_16_le_eol to -1, val to Qnil.
2928 (produce_chars): Initialize consumed_chars to 0.
2929
2930 2008-12-02 Chong Yidong <cyd@stupidchicken.com>
2931
2932 * keyboard.c (make_lispy_position): Only use PT if the selected
2933 window is current.
2934
2935 2008-12-02 Andreas Schwab <schwab@suse.de>
2936
2937 * font.c (font_unparse_fcname): Fix use of uninitialized variable.
2938
2939 * doprnt.c (doprnt1): Fix size of charbuf.
2940
2941 2008-12-02 Chong Yidong <cyd@stupidchicken.com>
2942
2943 * keyboard.c (timer_check): Revert last change.
2944
2945 2008-12-02 Juanma Barranquero <lekktu@gmail.com>
2946
2947 * makefile.w32-in ($(BLD)/w32console.$(O)): Fix silly, silly typo.
2948
2949 2008-12-01 Juanma Barranquero <lekktu@gmail.com>
2950
2951 * makefile.w32-in: Update dependencies.
2952 (CONFIG_H): Add $(EMACS_ROOT)/nt/inc/sys/time.h.
2953
2954 2008-12-01 Andreas Schwab <schwab@suse.de>
2955
2956 * font.c (register_font_driver): Use xmalloc.
2957 (font_put_frame_data): Likewise.
2958
2959 2008-12-01 Chong Yidong <cyd@stupidchicken.com>
2960
2961 * xfaces.c (realize_x_face): Make abort condition clearer.
2962
2963 * gtkutil.c (update_frame_tool_bar): Initialize variable.
2964
2965 2008-11-30 Chong Yidong <cyd@stupidchicken.com>
2966
2967 * keyboard.c (timer_check): After a timer runs, ensure that the
2968 selected window's buffer is current.
2969
2970 2008-11-30 Juanma Barranquero <lekktu@gmail.com>
2971
2972 * makefile.w32-in ($(BLD)/abbrev.$(O)): Remove.
2973 It was accidentally restored by the Unicode merge.
2974
2975 * w32proc.c (Fw32_get_locale_info): Fix typo in docstring.
2976
2977 2008-11-29 Juanma Barranquero <lekktu@gmail.com>
2978
2979 * w32proc.c: Include "coding.h".
2980 (Fw32_short_file_name): Encode filename passed to Windows API.
2981 (Fw32_long_file_name): Encode filename passed to Windows API and
2982 decode back the result. (Bug#1433)
2983
2984 2008-11-29 Kenichi Handa <handa@m17n.org>
2985
2986 * charset.h (CHAR_CHARSET_P): Check if the encoder is loaded or
2987 not before accessing it.
2988
2989 * charset.c (Fdefine_charset_internal): After calculating
2990 min_char, max_char, and fastmap, copy the charset structure again.
2991 (encode_char): Fix the previous change.
2992
2993 2008-11-28 Seiji Zenitani <zenitani@mac.com>
2994
2995 * frame.c (x_set_alpha) [NS_IMPL_COCOA]: Call x_set_frame_alpha.
2996
2997 * nsfns.m (ns_frame_parm_handlers): Set alpha handler.
2998
2999 * nsterm.m (x_set_frame_alpha): New function.
3000
3001 2008-11-27 Eli Zaretskii <eliz@gnu.org>
3002
3003 * xfaces.c (Fx_font_family_list, syms_of_xfaces): Fix last change.
3004
3005 2008-11-27 Juanma Barranquero <lekktu@gmail.com>
3006
3007 * w32font.c (add_font_entity_to_list): Pass the right LOGFONT
3008 pointer to check_face_name.
3009
3010 2008-11-27 Kenichi Handa <handa@m17n.org>
3011
3012 * category.h (SET_CATEGORY_SET): Call set_category_set.
3013 (set_category_set): Extern it.
3014
3015 * category.c (hash_get_category_set): New function.
3016 (Fmodify_category_entry): Adjusted for the change of
3017 char_table_ref_and_range. Call hash_get_category_set to get a
3018 category set to store in the table.
3019
3020 * character.h (MAYBE_UNIFY_CHAR): Call maybe_unify_char instead of
3021 Funify_charset.
3022
3023 * charset.h (enum charset_method): Delete CHARSET_METHOD_MAP_DEFERRED.
3024 (DECODE_CHAR): Check if the decoder vector is ready.
3025 (ENCODE_CHAR): Check if the encoder char-table is ready.
3026 (maybe_unify_char): Extern it.
3027
3028 * charset.c (Vchar_unified_charset_table): Delete it.
3029 (inhibit_load_charset_map): New variable.
3030 (temp_charset_work): New variable.
3031 (SET_TEMP_CHARSET_WORK_ENCODER, GET_TEMP_CHARSET_WORK_ENCODER)
3032 (SET_TEMP_CHARSET_WORK_DECODER, GET_TEMP_CHARSET_WORK_DECODER):
3033 New macros.
3034 (load_charset_map): Meaning of control_flag changed. If
3035 inhibit_load_charset_map is nonzero, setup a table in
3036 temp_charset_work.
3037 (load_charset): New argument control_flag.
3038 (map_charset_for_dump): New function.
3039 (map_charset_chars): If inhibit_load_charset_map is nonzero, use
3040 map_charset_for_dump.
3041 (Fdefine_charset_internal): If the charset method is MAP, load
3042 mapping tables by calling load_charset.
3043 (Funify_charset): Don't load a mapping table but directly set
3044 Vchar_unify_table.
3045 (maybe_unify_char): New function.
3046 (decode_char): Don't handle the deleted method MAP_DEFERRED.
3047 Handle the case of inhibit_load_charset_map being nonzero.
3048 (encode_char): Don't handle the deleted method MAP_DEFERRED.
3049 Handle the case of inhibit_load_charset_map being nonzero.
3050 (Fclear_charset_maps): Just free temp_charset_work.
3051 (syms_of_charset): Make `inhibit-load-charset-map' a Lisp
3052 variable.
3053
3054 * chartab.c (sub_char_table_ref_and_range): Adjusted for the
3055 change of char_table_ref_and_range.
3056 (char_table_ref_and_range): Change the meaning of argument FROM
3057 and TO. Now the caller must provide initial values for *FROM
3058 and *TO.
3059
3060 * fontset.c (fontset_add): Adjusted for the change of
3061 char_table_ref_and_range.
3062 (fontset_get_font_group): Likewise.
3063 (Ffontset_info): Likewise.
3064
3065 * keymap.c (describe_vector): Adjusted for the change of
3066 char_table_ref_and_range. For char-table, put boundary between
3067 non-ASCII and 8-bit characters.
3068
3069 * print.c (print_object): For bool-vector, delete unnecessary
3070 check of ASCII_BYTE_P.
3071
3072 2008-11-26 Jason Rumney <jasonr@gnu.org>
3073
3074 * w32font.c (w32font_open_internal): Don't include external
3075 leading in font height. (Bug#879)
3076
3077 2008-11-26 Glenn Morris <rgm@gnu.org>
3078
3079 * xfaces.c (Fx_font_family_list): Replace lisp/term/pc-win.el
3080 redefinition with ifdef. (Bug#1383)
3081
3082 2008-11-24 Adrian Robert <Adrian.B.Robert@gmail.com>
3083
3084 * nsterm.m (ns_get_color): Handle long hex strings (fixes bug #1044).
3085
3086 2008-11-24 Wolfgang Lux <wolfgang.lux@gmail.com> (tiny change)
3087
3088 * nsterm.m (-otherMouseDown:, -otherMouseUp:, -otherMouseDragged):
3089 New EmacsView methods.
3090 (EV_UDMODIFIERS, EV_BUTTON): Add OtherMouse constants.
3091 Fixes bug #1048,1357,1414.
3092
3093 2008-11-24 Adrian Robert <Adrian.B.Robert@gmail.com>
3094
3095 Fix bug #1362.
3096 * image.c (x_clear_image_1): Do not free background under HAVE_NS, it
3097 is not an indexed color.
3098 * nsterm.m (free_indexed_color): Add argument checking.
3099 * nsfns.m: Move config.h to before system includes (advised by Dan N.).
3100
3101 2008-11-24 Chong Yidong <cyd@stupidchicken.com>
3102
3103 * minibuf.c (Fcompleting_read, Vminibuffer_completion_confirm):
3104 Document confirm-after-completion value for
3105 minibuffer-completion-confirm.
3106
3107 2008-11-24 Jason Rumney <jasonr@gnu.org>
3108
3109 * w32font.c (check_face_name): Use xstrcasecmp. Avoid compiler
3110 warning.
3111
3112 2008-11-23 Jason Rumney <jasonr@gnu.org>
3113
3114 * w32uniscribe.c (uniscribe_encode_char): Ensure context is
3115 restored before returning.
3116
3117 * w32font.c (check_face_name): New function.
3118 (add_font_entity_to_list): Use it to filter out common substituted
3119 fonts. (Bug#642)
3120
3121 2008-11-22 Martin Rudalics <rudalics@gmx.at>
3122
3123 * buffer.c (Fswitch_to_buffer): Reword and mention new option
3124 confirm-nonexistent-file-or-buffer in doc-string.
3125
3126 2008-11-21 Stefan Monnier <monnier@iro.umontreal.ca>
3127
3128 * buffer.c (Fbuffer_swap_text): Remove redundant marker manipulation.
3129 Fix copy/paste typo. Add checks.
3130
3131 2008-11-21 Kenichi Handa <handa@m17n.org>
3132
3133 * coding.c (detect_coding_iso_2022): Reject invalid composition
3134 sequence.
3135 (DECODE_COMPOSITION_START): If the current source is the last
3136 block, and the current composition doesn't end, regard this
3137 sequence as invalid.
3138 (decode_coding_iso_2022): Handle invalid composition sequence.
3139
3140 2008-11-20 Martin Rudalics <rudalics@gmx.at>
3141
3142 * window.c (coordinates_in_window): Don't return
3143 ON_VERTICAL_BORDER for the rightmost position of a mode/header
3144 line when the window is not the rightmost one. (Bug#1372)
3145
3146 2008-11-16 Ben North <ben@redfrontdoor.org> (tiny change)
3147
3148 * buffer.c (syms_of_buffer): Fix doc-string of cursor-type.
3149
3150 2008-11-15 Eli Zaretskii <eliz@gnu.org>
3151
3152 * msdos.c (run_msdos_command): Don't call dos_ttcooked, dos_ttraw,
3153 and bright_bg if noninteractive is non-zero.
3154
3155 2008-11-15 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
3156
3157 * xterm.c (x_draw_glyph_string): For stretch glyphs, don't call
3158 x_draw_glyph_string_background.
3159
3160 * w32term.c (x_draw_glyph_string): Likewise.
3161
3162 2008-11-15 Chong Yidong <cyd@stupidchicken.com>
3163
3164 * xterm.c (x_draw_glyph_string): Stop drawing the background of
3165 the next glyph string once past the overhang width.
3166
3167 * nsterm.m (ns_draw_glyph_string): Likewise.
3168
3169 * w32term.c (x_draw_glyph_string): Likewise.
3170
3171 2008-11-14 Fabrice Popineau <fabrice.popineau@supelec.fr> (tiny change)
3172
3173 * fileio.c (Finsert_file_contents): Decrement specpdl_ptr to avoid
3174 double file close.
3175
3176 2008-11-14 Martin Rudalics <rudalics@gmx.at>
3177
3178 * window.c (window_loop): In DELETE_BUFFER_WINDOWS case, reset
3179 dedicated status of window before attempting to display another
3180 buffer in it.
3181
3182 2008-11-14 Juanma Barranquero <lekktu@gmail.com>
3183
3184 * msdos.c (Fmsdos_long_file_names):
3185 (syms_of_msdos) <dos-unsupported-char-glyph>:
3186 * dosfns.c (Fint86): Fix typos in docstrings.
3187
3188 2008-11-14 Eli Zaretskii <eliz@gnu.org>
3189
3190 * makefile.w32-in (OBJ1, WIN32OBJ): Fix whitespace.
3191
3192 2008-11-14 Katsumi Yamaoka <yamaoka@jpl.org>
3193
3194 * puresize.h (BASE_PURESIZE): Increase to 1260000.
3195
3196 2008-11-12 Michal Nazarewicz <mina86@tlen.pl> (tiny change)
3197
3198 * frame.c (x_set_alpha): Set alpha to -1 if nil given.
3199
3200 * frame.h: Negative alpha means "don't touch".
3201
3202 * w32term.c (x_set_frame_alpha): Do nothing if alpha is negative.
3203
3204 * xterm.c (x_set_frame_alpha): Do nothing if alpha is negative.
3205
3206 2008-11-12 Dan Nicolaescu <dann@ics.uci.edu>
3207
3208 * hftctl.c:
3209 * chpdef.h:
3210 * acldef.h: Remove files used only for systems no longer supported.
3211
3212 * Makefile.in: Fix .o alphabetical ordering.
3213 (hftctl.o): Remove dependency, file removed.
3214 (keymap.o, print.o): Depend on charset.h.
3215
3216 2008-11-10 Kenichi Handa <handa@m17n.org>
3217
3218 * character.c (Fget_byte): Fix and make it faster for unibyte target.
3219
3220 2008-11-08 Chong Yidong <cyd@stupidchicken.com>
3221
3222 * dired.c (file_name_completion): If completion_ignore_case is
3223 enabled, ignore case when checking completion-regexp-list.
3224
3225 2008-11-08 Eli Zaretskii <eliz@gnu.org>
3226
3227 * vm-limit.c (get_lim_data): Fix last change.
3228
3229 2008-11-08 Kenichi Handa <handa@m17n.org>
3230
3231 * character.c (Fget_byte): New function.
3232 (syms_of_character): Defsubr Fget_byte.
3233
3234 2008-11-07 Chong Yidong <cyd@stupidchicken.com>
3235
3236 * xdisp.c (try_window_reusing_current_matrix): Ensure that window
3237 cursor position is valid after scrolling.
3238
3239 2008-11-06 Juanma Barranquero <lekktu@gmail.com>
3240
3241 * fns.c (Frandom): Rename arg N to LIMIT to match the docs; doc fix.
3242
3243 2008-11-06 Glenn Morris <rgm@gnu.org>
3244
3245 * xterm.c (handle_one_xevent): Don't let popup menus cause
3246 mouse-autoselect-window related window switching. (Bug#1261)
3247
3248 2008-11-04 David Smith <davidsmith@acm.org> (tiny change)
3249
3250 * xterm.c (xim_close_dpy): Avoid double-free on X11R6 XIM.
3251
3252 2008-11-04 Andreas Schwab <schwab@suse.de>
3253
3254 * xfns.c (Fx_wm_set_size_hint): Add missing return value.
3255
3256 2008-11-03 Chong Yidong <cyd@stupidchicken.com>
3257
3258 * xfns.c (Fx_wm_set_size_hint): New function.
3259
3260 2008-11-03 Martin Rudalics <rudalics@gmx.at>
3261
3262 * textprop.c (Fprevious_single_char_property_change): Return 0
3263 when there's no change in a string. (Bug#1301)
3264
3265 2008-11-02 Martin Rudalics <rudalics@gmx.at>
3266
3267 * frame.c (do_switch_frame): New argument NORECORD passed to
3268 Fselect_window.
3269 (Fselect_frame): New argument NORECORD passed to
3270 do_switch_frame.
3271 (Fset_frame_selected_window): New argument NORECORD passed to
3272 Fselect_frame.
3273 (Fhandle_switch_frame, Fdelete_frame): Handle NORECORD argument
3274 in call of do_switch_frame.
3275 (Fset_mouse_position, Fset_mouse_pixel_position, Fraise_frame):
3276 Handle NORECORD argument in call of Fselect_frame.
3277 * lisp.h (do_switch_frame, Fselect_frame)
3278 (Fset_frame_selected_window): Adjust declarations.
3279 * window.c (select_frame_norecord): New function.
3280 (run_window_configuration_change_hook): Use it and call
3281 Fselect_frame with NORECORD set.
3282 (Fselect_window): Pass NORECORD to Fselect_frame.
3283 (Fset_window_configuration): Handle NORECORD argument in call of
3284 do_switch_frame.
3285 * minibuf.c (choose_minibuf_frame): Handle NORECORD in call of
3286 Fset_frame_selected_window.
3287 * keyboard.c (command_loop_1): Handle NORECORD in call of
3288 Fselect_frame (currently ifdefd).
3289
3290 2008-11-02 Ulrich Mueller <ulm@kph.uni-mainz.de>
3291
3292 * emacs.c (USAGE2): Untabify.
3293
3294 2008-11-01 Stefan Monnier <monnier@iro.umontreal.ca>
3295
3296 * composite.c (fill_gstring_header): Fix copy/paste typo.
3297
3298 2008-10-31 Martin Rudalics <rudalics@gmx.at>
3299
3300 * window.c (Fnext_window, Fprevious_window): Rewrite doc-string.
3301 (Fother_window): Rename argument and rewrite doc-string.
3302 (select_window_norecord): Fix return value. (Bug#1276)
3303
3304 2008-10-30 Juanma Barranquero <lekktu@gmail.com>
3305
3306 * w32fns.c (x_create_tip_frame): Prevent default foreground color for
3307 new frames overriding foreground for tooltips. Based on similar patch
3308 from Martin Rudalics <rudalics@gmx.at>. (Bug#1032)
3309
3310 2008-10-29 Chong Yidong <cyd@stupidchicken.com>
3311
3312 * emacs.c (Fdaemon_initialized): Initialize nfd.
3313
3314 2008-10-29 Martin Rudalics <rudalics@gmx.at>
3315
3316 * window.c (Fwindow_height, Fdelete_window, set_window_buffer)
3317 (Fwindow_text_height): Clarify doc-strings.
3318 * xdisp.c (syms_of_xdisp): Mention set-window-buffer in
3319 doc-string of window-scroll-functions.
3320
3321 2008-10-28 Reiner Steib <Reiner.Steib@gmx.de>
3322
3323 * category.c (syms_of_category): Fix typo in docstring.
3324
3325 2008-10-28 Juanma Barranquero <lekktu@gmail.com>
3326
3327 * window.c (Fwindowp, Fwindow_live_p, Fwindow_minibuffer_p)
3328 (Fcoordinates_in_window_p, Fscroll_left, Fscroll_right):
3329 Fix typos in docstrings.
3330
3331 2008-10-28 Dan Nicolaescu <dann@ics.uci.edu>
3332
3333 * emacs.c (daemon_pipe): Make non-static.
3334 (IS_DAEMON): Move definition ...
3335 * lisp.h (IS_DAEMON): ... here.
3336 (daemon_pipe): Declare.
3337 (is_daemon): Remove.
3338 * dispnew.c (init_display): Use IS_DAEMON.
3339
3340 2008-10-28 Stefan Monnier <monnier@iro.umontreal.ca>
3341
3342 * xdisp.c (pos_visible_p, redisplay_internal, message3_nolog)
3343 (message2_nolog): Check FRAME_INITIAL_P instead of noninteractively.
3344
3345 * emacs.c (is_daemon): Remove.
3346 (main): Don't set is_daemon.
3347 (IS_DAEMON): New macro.
3348 (Fdaemonp, Fdaemon_initialized): Use it.
3349 (Fdaemon_initialized): Write a char into the pipe to make sure the
3350 parent exits.
3351 (syms_of_emacs): Explicitly initialize daemon_pipe[1].
3352
3353 2008-10-27 Chong Yidong <cyd@stupidchicken.com>
3354
3355 * nsterm.m (ns_draw_window_cursor): When hbar cursor is on
3356 over-sized glyph, draw it with the default glyph width.
3357
3358 * w32term.c (x_draw_bar_cursor): When hbar cursor is on over-sized
3359 glyph, draw it with the default glyph width.
3360
3361 * xterm.c (x_draw_bar_cursor): When hbar cursor is on over-sized
3362 glyph, draw it with the default glyph width.
3363
3364 * xdisp.c (try_scrolling): When computing the distance from the
3365 scroll margin to PT, try moving some distance past the window
3366 bottom before giving up.
3367
3368 2008-10-27 Martin Rudalics <rudalics@gmx.at>
3369
3370 * window.c (Fwindow_dedicated_p, Fset_window_dedicated_p)
3371 (Fset_window_buffer): Explain in doc-string that a window can be
3372 "strongly" dedicated to its buffer.
3373
3374 2008-10-27 Dan Nicolaescu <dann@ics.uci.edu>
3375
3376 * emacs.c (daemon_name): New variable.
3377 (main): Deal with --daemon=SERVER_NAME.
3378 (Fdaemonp): Return a name if one was passed to --daemon.
3379
3380 2008-10-26 Romain Francoise <romain@orebokech.com>
3381
3382 * emacs.c (daemon_pipe): New variable.
3383 (main): Create a pipe before forking, make the parent exit only after
3384 the child has closed its end of the pipe. Move closing the
3385 descriptors ...
3386 (Fdaemon_initialized): ... here. New function.
3387
3388 2008-10-26 Stefan Monnier <monnier@iro.umontreal.ca>
3389
3390 * chartab.c (Foptimize_char_table): Make sure `ascii' doesn't point to
3391 the previous unoptimized table.
3392
3393 * window.c (Fset_window_buffer): Undo 2008-10-18 change to re-instate
3394 the distinction between non-nil and non-t value of `dedicated'.
3395
3396 2008-10-25 Chong Yidong <cyd@stupidchicken.com>
3397
3398 * keyboard.c (read_char_minibuf_menu_prompt): Ensure that
3399 read_char_minibuf_menu_text is large enough to hold the menu string.
3400
3401 2008-10-25 Martin Rudalics <rudalics@gmx.at>
3402
3403 * window.c (Fget_buffer_window, Fdelete_windows_on)
3404 (Freplace_buffer_in_windows): Make buffer argument optional and
3405 rename to buffer_or_name.
3406
3407 2008-10-24 Chong Yidong <cyd@stupidchicken.com>
3408
3409 * xdisp.c (handle_single_display_spec, handle_display_prop):
3410 Undo 2005-05-16 change.
3411 (handle_stop): Pop iterator if it's loaded with an empty string.
3412 (get_overlay_strings_1): Don't save iterator if it's loaded with
3413 an empty string (bug#1201).
3414
3415 2008-10-24 Kenichi Handa <handa@m17n.org>
3416
3417 * ftfont.c (ftfont_otf_features): Fix previous change.
3418 (ftfont_otf_capability): Check FeatureList.FeatureCount before
3419 calling ftfont_otf_features.
3420
3421 2008-10-24 Kenichi Handa <handa@m17n.org>
3422
3423 * font.c (font_match_p): Fix for the case that a vector of
3424 characters is in script-representative-chars.
3425
3426 2008-10-24 Michael Albinus <michael.albinus@gmx.de>
3427
3428 * dbusbind.c (xd_in_read_queued_messages): New variable.
3429 (XD_SIGNAL1, XD_SIGNAL2, XD_SIGNAL3): New macros. Throw Qdbus_error.
3430 (xd_read_queued_messages): Catch Qdbus_error from the macros.
3431 (all): Replace xsignal1, xsignal2, xsignal3 by the respective
3432 macro. (Bug#1186).
3433
3434 2008-10-23 Ali Bahrami <ali_gnu@emvision.com> (tiny change)
3435
3436 * s/sol2-10.h: New file.
3437
3438 2008-10-23 Juanma Barranquero <lekktu@gmail.com>
3439
3440 * xdisp.c (fill_glyph_string): Fix typo in source (though the
3441 poor beast has survived 9+ years and the jump from xterm.c!).
3442
3443 2008-10-23 Martin Rudalics <rudalics@gmx.at>
3444
3445 * buffer.c (Fget_buffer_create): Rename arg to buffer_or_name.
3446 Reword doc-string.
3447 (Fbury_buffer): In doc-string say what happens to the buffer's window.
3448
3449 2008-10-23 Juanma Barranquero <lekktu@gmail.com>
3450
3451 * character.c (syms_of_character) <script-representative-chars>:
3452 <unicode-category-table>: Doc fixes.
3453
3454 2008-10-23 Noah Friedman <friedman@splode.com>
3455
3456 * coding.c (make_conversion_work_buffer): Check that
3457 Vcode_conversion_reused_workbuf is a live buffer, otherwise call
3458 Fget_buffer_create.
3459
3460 2008-10-23 Kenichi Handa <handa@m17n.org>
3461
3462 * font.c (font_add_log): Check the values of extra properties.
3463
3464 2008-10-22 Martin Rudalics <rudalics@gmx.at>
3465
3466 * window.c (Fwindow_dedicated_p, Fset_window_dedicated_p):
3467 Reword doc-string.
3468 (Fset_window_parameter): Use NILP.
3469 (Fscroll_up, Fscroll_down, Fminibuffer_selected_window)
3470 (Frecenter): Use "selected" instead of "current" window in doc-strings.
3471
3472 2008-10-22 Juanma Barranquero <lekktu@gmail.com>
3473
3474 * xdisp.c (next_element_from_buffer): Remove bogus xassert condition.
3475
3476 2008-10-22 Adrian Robert <Adrian.B.Robert@gmail.com>
3477
3478 * nsfns.m (ns_appkit_version): New function.
3479 (x-server-version): Use it.
3480 (syms_of_nsfns): Define ns-version-string here, not nsterm.m.
3481 (x-server-vendor): Don't check_ns().
3482
3483 * nsterm.m (syms_of_nsterm): Drop ns-version-string.
3484
3485 2008-10-22 Juanma Barranquero <lekktu@gmail.com>
3486
3487 * w32fns.c (unwind_create_frame) [!GLYPH_DEBUG]: Fix xassert.
3488 Copied from 2005-02-03 change to xfns.c by Kim F. Storm.
3489
3490 2008-10-22 Kenichi Handa <handa@m17n.org>
3491
3492 * syntax.c (scan_words): Call word_boundary_p instead of comparing
3493 scripts.
3494
3495 * category.c (word_boundary_p): Check scripts instead of charset.
3496 Handle nil value in word-separating-categories and
3497 word-combining-categories.
3498 (syms_of_category): Fix docstrings of word-separating-categories
3499 and word-combining-categories.
3500
3501 2008-10-21 Eli Zaretskii <eliz@gnu.org>
3502
3503 * coding.c (Fencode_coding_region, Fdecode_coding_region)
3504 (Fdecode_coding_string, Fencode_coding_string): Doc fix.
3505
3506 2008-10-21 Martin Rudalics <rudalics@gmx.at>
3507
3508 * buffer.c (Fget_buffer, Fbury_buffer, switch_to_buffer_1):
3509 Rename arg "buffer" to "buffer_or_name".
3510 (Fkill_buffer): Rename arg "buffer" to "buffer_or_name" and make
3511 it optional.
3512 (no_switch_window): Remove since the return value is not used.
3513 (Fswitch_to_buffer): Rename arg "buffer" to "buffer_or_name".
3514 Consider window as dedicated when Fwindow_dedicated_p returns a
3515 non-nil value.
3516 * lisp.h: Remove prototype for no_switch_window.
3517
3518 2008-10-21 Jan Djärv <jan.h.d@swipnet.se>
3519
3520 * emacs.c (main): Unconditionally set PER_LINUX32 and exec
3521 temacs when dumping if HAVE_PERSONALITY_LINUX32 is defined.
3522
3523 2008-10-21 Kenichi Handa <handa@m17n.org>
3524
3525 * coding.c (detect_coding_charset): For iso-8859-* coding systems,
3526 check Vlatin_extra_code_table.
3527
3528 2008-10-20 Eli Zaretskii <eliz@gnu.org>
3529
3530 * fileio.c (Fset_file_modes): Doc fix.
3531
3532 2008-10-19 Michael Albinus <michael.albinus@gmx.de>
3533
3534 * dbusbind.c (XD_OBJECT_TO_DBUS_TYPE): Handle simple type symbols
3535 in arrays.
3536
3537 2008-10-19 Martin Rudalics <rudalics@gmx.at>
3538
3539 * window.c (Fwindow_dedicated_p, Fset_window_dedicated_p):
3540 Mention kill-buffer in doc-string.
3541 (Fset_window_buffer): Reinsert tem check removed in last commit.
3542 (Fenlarge_window, Fshrink_window): Have argument names and
3543 doc-string follow Elisp manual more closely.
3544
3545 2008-10-18 Eli Zaretskii <eliz@gnu.org>
3546
3547 * fileio.c (Fset_file_modes): Doc fix.
3548
3549 2008-10-18 Martin Rudalics <rudalics@gmx.at>
3550
3551 * window.c (Fwindow_width, Fset_window_start)
3552 (Fwindow_parameters, Fwindow_parameter, Fset_window_parameter)
3553 (Fdelete_windows_on, Freplace_buffer_in_windows):
3554 Make doc-strings follow code and Elisp manual more closely.
3555 (Fwindow_dedicated_p): Make window argument optional.
3556 (Fset_window_dedicated_p): Rename argument "arg" to "flag".
3557 (Fset_window_buffer): Respect any non-nil dedicated value for
3558 window. Rename "buffer" argument to "buffer_or_name".
3559
3560 2008-10-18 Ulrich Mueller <ulm@gentoo.org>
3561
3562 * m/sh3.h: New file, machine description for SuperH.
3563
3564 2008-10-17 Martin Rudalics <rudalics@gmx.at>
3565
3566 * window.c (Fsplit_window): Rename arg horflag to horizontal.
3567
3568 2008-10-17 Kenichi Handa <handa@m17n.org>
3569
3570 * ftfont.c (ftfont_otf_features): Fix indexing
3571 gsub_gpos->FeatureList.Feature. Check the validity of indices.
3572
3573 2008-10-16 Magnus Henoch <mange@freemail.hu>
3574
3575 * dbusbind.c (Fdbus_call_method): Unbreak usage line.
3576 (Fdbus_call_method_asynchronously): Ditto.
3577 This change makes C-h f display the argument list.
3578
3579 2008-10-16 Chong Yidong <cyd@stupidchicken.com>
3580
3581 * fileio.c (Fexpand_file_name): Doc fix.
3582
3583 * xfaces.c (Finternal_set_lisp_face_attribute): Make null values
3584 of :foreground and :background equivalent to unspecified (20.x
3585 compatibility).
3586
3587 2008-10-15 Eli Zaretskii <eliz@gnu.org>
3588
3589 * buffer.c (syms_of_buffer): Doc fix.
3590
3591 2008-10-14 Kenichi Handa <handa@m17n.org>
3592
3593 * font.c (font_clear_prop): When clearing font width, clear the
3594 average width field too.
3595
3596 2008-10-12 Andreas Schwab <schwab@suse.de>
3597
3598 * ftfont.c (ftfont_shape_by_flt): Make static.
3599 * ftfont.h (ftfont_shape_by_flt): Don't declare.
3600
3601 * font.c: Don't include <m17n-flt.h>.
3602
3603 2008-10-10 Eli Zaretskii <eliz@gnu.org>
3604
3605 * s/msdos.h (SYSTEM_PURESIZE_EXTRA): Decrease to 10000.
3606
3607 2008-10-09 Eli Zaretskii <eliz@gnu.org>
3608
3609 * frame.c (make_terminal_frame) [MSDOS]: Remove unused #ifdef'ed
3610 away code.
3611
3612 2008-10-09 Chong Yidong <cyd@stupidchicken.com>
3613
3614 * dispnew.c (update_text_area): Avoid looping due to large glyph
3615 overhangs (bug#1070).
3616
3617 2008-10-09 Kenichi Handa <handa@m17n.org>
3618
3619 * fontset.c (face_for_char): If face->fontset is negative, just
3620 return ascii_face.
3621
3622 * font.c (font_delete_unmatched): Fix previous change.
3623 Don't reject an entity if DPI and AVGWIDTH of an entity are 0.
3624
3625 2008-10-09 Martin Rudalics <rudalics@gmx.at>
3626
3627 * frame.c (Fraise_frame): On text-only terminals select frame in
3628 order to make it visible. (Bug#1061)
3629
3630 2008-10-08 Chong Yidong <cyd@stupidchicken.com>
3631
3632 * fontset.c (fontset_find_font): Check frame validity.
3633
3634 2008-10-07 Chong Yidong <cyd@stupidchicken.com>
3635
3636 * gtkutil.c (xg_display_open): Reset default display if none exists.
3637 (xg_display_close): Allow Emacs to close all displays (bug#985).
3638
3639 2008-10-06 Andreas Schwab <schwab@suse.de>
3640
3641 * sysdep.c (sys_signal): Always set SA_RESTART when noninteractively.
3642
3643 2008-10-06 Chong Yidong <cyd@stupidchicken.com>
3644
3645 * emacs.c (Vbefore_init_time, Vafter_init_time): Move from startup.el.
3646
3647 * lisp.h (Vbefore_init_time, Vafter_init_time): Declare.
3648
3649 * gtkutil.c (x_wm_set_size_hint): Return immediately if called
3650 during initialization.
3651
3652 2008-10-04 Eli Zaretskii <eliz@gnu.org>
3653
3654 * xdisp.c (redisplay_internal): If frame switched, redisplay the
3655 whole thing on MSDOS frames as well as on a TTY.
3656
3657 * dispnew.c (update_frame): Flush termscript for MSDOS frames as
3658 well as for TTY.
3659 (Fopen_termscript): Allow opening a termscript on MSDOS frames as
3660 well as on a TTY.
3661
3662 * sysdep.c (init_sys_modes): Set FRAME_GARBAGED_P for MSDOS frames
3663 as well as for TTY.
3664
3665 * systime.h (EMACS_TIME_CMP): Cast EMACS_SECS values to `long'.
3666
3667 * dispnew.c (change_frame_size_1): Set FrameRows and FrameCols for
3668 MSDOS frames as well.
3669
3670 2008-10-02 Adrian Robert <Adrian.B.Robert@gmail.com>
3671
3672 * image.c (x_clear_image_1): Under NS, call ns_free_indexed_color with
3673 correct arguments.
3674 * menu.c (find_and_return_menu_selection): Add cast.
3675
3676 2008-10-03 Glenn Morris <rgm@gnu.org>
3677
3678 * emacs.c (USAGE1): Add --daemon.
3679
3680 2008-10-02 Eli Zaretskii <eliz@gnu.org>
3681
3682 * process.c (procfs_system_process_attributes): Multiply `pcpu' by
3683 100, so it's in percents as advertised.
3684
3685 2008-10-02 Adrian Robert <Adrian.B.Robert@gmail.com>
3686
3687 * nsterm.h (ns_cursor_types, ns_output.desired_cursor_color)
3688 (ns_output.current_cursor, ns_output.desired_cursor)
3689 (ns_output.last_inactive, FRAME_CURSOR, FRAME_NEW_CURSOR)
3690 (FRAME_NEW_CURSOR_COLOR): Remove.
3691
3692 * nsfns.m (ns_set_cursor_color): Use FRAME_CURSOR_COLOR.
3693 (ns_lisp_to_cursor_type, ns_cursor_type_to_lisp): Use core Emacs
3694 enumeration (HOLLOW_BOX_CURSOR, etc.).
3695
3696 * nsterm.m (ns_frame_rehighlight): Remove commented code.
3697 (draw_window_cursor): Simplify code.
3698 (EmacsView-windowDidBecomeKey:,-windowDidResignKey:):
3699 Don't change cursor type. In latter, call rehighlight instead of doing
3700 updates manually.
3701 (EmacsPrefsController-setPanelFromValues,-setValuesFromPanel):
3702 Use core Emacs cursor types.
3703
3704 * xdisp.c (draw_glyphs): Don't call notice_overwritten_cursor under NS.
3705
3706 2008-10-02 Martin Rudalics <rudalics@gmx.at>
3707
3708 * process.c (Faccept_process_output): Fix doc-string.
3709
3710 2008-10-02 Dan Nicolaescu <dann@ics.uci.edu>
3711
3712 * gmalloc.c (__sbrk): Also define for uClibc.
3713
3714 * s/gnu-linux.h (GNU_LIBRARY_PENDING_OUTPUT_COUNT): Add definition
3715 for uClibc.
3716
3717 2008-10-01 Adrian Robert <Adrian.B.Robert@gmail.com>
3718
3719 * nsfont.m (nsfont_spec_to_traits): Use UnXX masks only for non-normal
3720 styles.
3721 (nsfont_open): Reenable the cache.
3722
3723 2008-10-01 Adrian Robert <Adrian.B.Robert@gmail.com>
3724
3725 * font.c (font_matching_entity): Reflect ATTRS in font selection.
3726 (font_find_for_lface) [HAVE_NS]: Don't ignore case.
3727
3728 2008-09-30 Stefan Monnier <monnier@iro.umontreal.ca>
3729
3730 * dispnew.c (Fsend_string_to_terminal): Don't try to send a string to
3731 a suspended terminal.
3732
3733 2008-09-30 Michael Albinus <michael.albinus@gmx.de>
3734
3735 * dbusbind.c (xd_signature): Use strcat instead of sprintf.
3736
3737 2008-09-30 Eli Zaretskii <eliz@gnu.org>
3738
3739 * Makefile.in (MSDOS_SUPPORT): Remove ccl.elc and codepage.elc.
3740
3741 2008-09-30 Chong Yidong <cyd@stupidchicken.com>
3742
3743 * xdisp.c (move_it_to): Don't advance the iterator if the last tab
3744 in a continued line coincides with a line beginning.
3745
3746 2008-09-29 Adrian Robert <Adrian.B.Robert@gmail.com>
3747
3748 * nsfont.m (nsfont_trait_distance): Fix bug.
3749 (nsfont_list): Return a list rather than a vector (syncs with Handa
3750 changes of 2008-05-14).
3751 (nsfont_open): Improve logging.
3752
3753 2008-09-29 Andreas Schwab <schwab@suse.de>
3754
3755 * keyboard.c (syms_of_keyboard) <input-decode-map>: Doc fix.
3756
3757 2008-09-28 Martin Rudalics <rudalics@gmx.at>
3758
3759 * character.c (Fchar_resolve_modifiers): Rewrite Elisp function
3760 name as char-resolve-modifiers.
3761 Reported by: Markus Triska <markus.triska@gmx.at>
3762
3763 2008-09-28 Dan Nicolaescu <dann@ics.uci.edu>
3764
3765 * dispnew.c (init_display): Return earlier when running as a daemon.
3766
3767 2008-09-27 Adrian Robert <Adrian.B.Robert@gmail.com>
3768
3769 * nsfont.m (nsfont_draw): Fix up composition rendering (cmp_from, ...).
3770
3771 2008-09-27 Eli Zaretskii <eliz@gnu.org>
3772
3773 * composite.c (Fcomposition_get_gstring)
3774 (Fcompose_region_internal, Fcompose_string_internal)
3775 (Ffind_composition_internal): Doc fix.
3776 (syms_of_composite) <compose-chars-after-function>: Doc fix.
3777 (syms_of_composite) <auto-composition-function>: Doc fix.
3778 (syms_of_composite) <composition-function-table>: Doc fix.
3779
3780 2008-09-25 Chong Yidong <cyd@stupidchicken.com>
3781
3782 * search.c (wordify): New argument for lax word-ends.
3783 (Fword_search_forward_lax, Fword_search_backward_lax): New funs.
3784
3785 2008-09-24 Dan Nicolaescu <dann@ics.uci.edu>
3786
3787 * lisp.h (is_daemon): Declare.
3788 * dispnew.c (init_display): Do not try to initialize the terminal
3789 when running as a daemon.
3790
3791 2008-09-22 Chong Yidong <cyd@stupidchicken.com>
3792
3793 * nsfns.m (compute_tip_xy): Use x_display_pixel_width and
3794 x_display_pixel_height.
3795
3796 2008-09-22 Martin Rudalics <rudalics@gmx.at>
3797
3798 * undo.c (record_point): Don't call Fundo_boundary for first
3799 change. (Bug#731)
3800
3801 2008-09-22 Juanma Barranquero <lekktu@gmail.com>
3802
3803 * emacs.c (Fdaemonp): Doc fix.
3804
3805 2008-09-22 Dan Nicolaescu <dann@ics.uci.edu>
3806
3807 * emacs.c (main): Place #ifdef in the proper place.
3808
3809 2008-09-21 Dan Nicolaescu <dann@ics.uci.edu>
3810
3811 * emacs.c (standard_args): Add --daemon.
3812 (main): Disconnect from the terminal when --daemon is passed.
3813 (is_daemon): New variable.
3814 (Fdaemonp): New function.
3815 (syms_of_emacs): Defsubr it.
3816
3817 2008-09-20 Chong Yidong <cyd@stupidchicken.com>
3818
3819 * xdisp.c (get_next_display_element): Handle string display
3820 correctly when checking for the end of a box run.
3821
3822 2008-09-20 Glenn Morris <rgm@gnu.org>
3823
3824 * fileio.c (Qdelete_by_moving_to_trash): New Lisp_Object.
3825 (syms_of_fileio): Add Qdelete_by_moving_to_trash.
3826 (Frename_file): Avoid copying to trash if a rename involves
3827 a delete. (Bug#964).
3828
3829 2008-09-20 Eli Zaretskii <eliz@gnu.org>
3830
3831 * keyboard.c (Fset_quit_char, Fset_input_meta_mode)
3832 (Fset_output_flow_control, Fcurrent_input_mode): Support MSDOS
3833 frames as well as termcap frames.
3834 (handle_interrupt): Remove "#ifndef MSDOS" around the call to
3835 get_named_tty.
3836
3837 2008-09-19 Eli Zaretskii <eliz@gnu.org>
3838
3839 * process.c (procfs_system_process_attributes): Fix cmdline in
3840 case /proc/PID/cmdline is empty.
3841
3842 * xterm.c (x_wm_set_size_hint): Use x_display_pixel_width and
3843 x_display_pixel_height.
3844
3845 2008-09-19 Juanma Barranquero <lekktu@gmail.com>
3846
3847 * frame.c (x_fullscreen_adjust): Declare var as Display_Info.
3848
3849 * w32fns.c (Fx_display_pixel_width, Fx_display_pixel_height)
3850 (compute_tip_xy): Use x_display_pixel_width, x_display_pixel_height.
3851
3852 2008-09-19 Dan Nicolaescu <dann@ics.uci.edu>
3853
3854 * dispextern.h (struct it): Move line_wrap away from the middle of
3855 bitfields. Move voffset in struct iterator_stack_entry after the
3856 bitfields. Move tab_width near after another short.
3857
3858 2008-09-18 Dan Nicolaescu <dann@ics.uci.edu>
3859
3860 * frame.h (struct frame): Move alpha from the middle of bitfields.
3861
3862 * window.h (struct window): Move frozen_window_start_p after the
3863 rest of the bitfields to reduce padding.
3864
3865 2008-09-18 Chong Yidong <cyd@stupidchicken.com>
3866
3867 * xterm.h (x_display_info): Remove `height' and `width' members.
3868
3869 * nsterm.h (ns_display_info): Remove `height' and `width' members.
3870
3871 * w32term.h (w32_display_info): Remove `height', `width',
3872 `height_in', and `width_in' members.
3873
3874 * xterm.c (x_display_pixel_height, x_display_pixel_width):
3875 New functions.
3876 (x_calc_absolute_position): Use them.
3877 (x_term_init): Omit removed `height' and `width' members.
3878
3879 * w32term.c (x_display_pixel_height, x_display_pixel_width):
3880 New functions.
3881 (w32_read_socket, x_calc_absolute_position): Use them.
3882 (w32_initialize_display_info, w32_term_init): Omit removed members
3883 of w32_display_info.
3884
3885 * nsterm.m (x_display_pixel_height, x_display_pixel_width):
3886 New functions.
3887 (ns_initialize_display_info): Omit removed members of ns_display_info.
3888
3889 * xterm.c (x_display_pixel_height, x_display_pixel_width):
3890 New functions.
3891 (x_calc_absolute_position): Use them.
3892 (x_term_init): Omit removed `height' and `width' members.
3893
3894 * xfns.c (Fx_display_pixel_width, Fx_display_pixel_height)
3895 (compute_tip_xy):
3896 * frame.c (x_fullscreen_adjust):
3897 * xmenu.c (menu_position_func): Use x_display_pixel_height and
3898 x_display_pixel_width.
3899
3900 2008-09-18 Kenichi Handa <handa@m17n.org>
3901
3902 * composite.c (fill_gstring_header): Don't check FROM and TO here.
3903 (composition_compute_stop_pos): Fix handling of static composition.
3904 (Fcomposition_get_gstring): Check FROM and TO at first.
3905
3906 2008-09-17 Stefan Monnier <monnier@iro.umontreal.ca>
3907
3908 * composite.c (Fcomposition_get_gstring): Yet another int/Lisp_Object
3909 mixup (YAILOM).
3910
3911 2008-09-17 Chong Yidong <cyd@stupidchicken.com>
3912
3913 * indent.c (Fvertical_motion): Use position reported by iterator
3914 instead of PT for determining screen motion (bug#943).
3915
3916 2008-09-17 Romain Francoise <romain@orebokech.com>
3917
3918 * composite.c (composition_adjust_point): Fix int/EMACS_INT mixup.
3919
3920 2008-09-17 Kenichi Handa <handa@m17n.org>
3921
3922 * ftfont.c (ftfont_shape_by_flt): Downcase family name.
3923
3924 * composite.c (Fcomposition_get_gstring): Make bigger gstring_work
3925 if necessary.
3926
3927 2008-09-16 Kenichi Handa <handa@m17n.org>
3928
3929 * coding.c (make_conversion_work_buffer): Avoid calling
3930 Fget_buffer_create if it is not necessary.
3931
3932 2008-09-15 Martin Rudalics <rudalics@gmx.at>
3933
3934 * window.c (Fselect_window): Don't update window_select_count and
3935 use_time when norecord is not nil.
3936
3937 2008-09-14 Kenichi Handa <handa@m17n.org>
3938
3939 * fileio.c (Finsert_file_contents): Delete incorrect decrement of
3940 specpdl_ptr.
3941
3942 2008-09-12 Kenichi Handa <handa@m17n.org>
3943
3944 * indent.c (scan_for_column): Don't handle automatic composition
3945 if the current buffer is not associated with a window.
3946
3947 * composite.c (composition_reseat_it): If the current buffer is
3948 not associated with a window, ignore the automatic composition.
3949 (find_automatic_composition): Likewise.
3950
3951 2008-09-12 Stefan Monnier <monnier@iro.umontreal.ca>
3952
3953 * term.c (close_gpm): New fun extracted from Fgpm_mouse_stop.
3954 (Fgpm_mouse_stop): Use it.
3955 * termhooks.h (close_gpm): Declare.
3956 * keyboard.c (tty_read_avail_input): Forcefully close the gpm
3957 connection if Gpm_GetEvent fails.
3958
3959 * window.c (set_window_buffer): Always preserve current-buffer.
3960
3961 2008-09-12 Glenn Morris <rgm@gnu.org>
3962
3963 * charset.c (init_charset): Warn if etc/charsets not found. (Bug#909)
3964
3965 2008-09-11 Glenn Morris <rgm@gnu.org>
3966
3967 * charset.c (charset-map-path): Doc fix.
3968
3969 2008-09-10 Kenichi Handa <handa@m17n.org>
3970
3971 * xdisp.c (handle_composition_prop): Set it->cmp_it.ch to -1.
3972
3973 * font.c (Ffont_shape_gstring): Make glyphs of non-nil adjustment
3974 compose a grapheme cluster with the preceding base glyph.
3975
3976 * composite.c (composition_compute_stop_pos): Fix previous change.
3977 Reset cmp_it->id to -1 at first.
3978
3979 2008-09-10 Glenn Morris <rgm@gnu.org>
3980
3981 * Makefile.in (character.o, chartab.o): Fix config.h typo.
3982
3983 2008-09-09 Chong Yidong <cyd@stupidchicken.com>
3984
3985 * keyboard.c (read_key_sequence): Reapply translation maps when
3986 switching keyboards.
3987
3988 2008-09-09 Kenichi Handa <handa@m17n.org>
3989
3990 * ftfont.c (ftfont_shape_by_flt): Use "combining" FLT for ASCII
3991 characters.
3992
3993 * composite.c (FORWARD_CHAR): Fix calculation
3994 of (POSITION).pos_byte.
3995 (composition_compute_stop_pos): Limit the search of composition to
3996 at most 500 characters ahead. If we reach the limit or find a
3997 newline, set cmp_it->ch to -2 and return 0.
3998 (composition_reseat_it): Handle the case that cmp_it->ch is -2.
3999
4000 2008-09-08 Kenichi Handa <handa@m17n.org>
4001
4002 * indent.c (Fvertical_motion): Be sure to set
4003 it_overshoot_expected if it.cmp_it.id is non-negative.
4004
4005 2008-09-07 Andreas Schwab <schwab@suse.de>
4006
4007 * callproc.c (Fcall_process): Don't hold references to string data
4008 across garbage collection. Move initialisation of new_argv down
4009 to avoid compiler bug.
4010
4011 2008-09-07 Roland Winkler <Roland.Winkler@physik.uni-erlangen.de>
4012
4013 * process.c (Fsystem_process_attributes): Doc fix.
4014
4015 2008-09-07 Chong Yidong <cyd@stupidchicken.com>
4016
4017 * callproc.c (Fcall_process): Canonicalize current directory name.
4018
4019 * xdisp.c (move_it_to): When moving by vpos, ensure that the
4020 iterator advances to the next line if the current line ends in a
4021 continued tab.
4022
4023 2008-09-07 Teodor Zlatanov <tzz@lifelogs.com>
4024
4025 * nsfont.m (nsfont_draw): Fix the references to missing gidx data
4026 member to point to cmp_from.
4027
4028 * xdisp.c: Doc fix for references to gidx data member.
4029
4030 2008-09-07 Stefan Monnier <monnier@iro.umontreal.ca>
4031
4032 * buffer.c (Fbuffer_swap_text): Reset window->point markers.
4033
4034 2008-09-07 Kenichi Handa <handa@m17n.org>
4035
4036 * composite.c (FORWARD_CHAR): Check STOP after
4037 incrementing (POSITION).pos.
4038
4039 2008-09-06 Roland Winkler <Roland.Winkler@physik.uni-erlangen.de>
4040
4041 * process.c (Fsystem_process_attributes): Doc fix.
4042
4043 2008-09-06 Chong Yidong <cyd@stupidchicken.com>
4044
4045 * keyboard.c (Ftop_level): Doc fix.
4046
4047 2008-09-06 Eli Zaretskii <eliz@gnu.org>
4048
4049 * xmenu.c (xmenu_show) [!HAVE_X_WINDOWS]: If frame has a
4050 minibuffer, don't let lower part of menu invade the echo area.
4051
4052 * msdos.c (IT_menu_display): Use STRING_CHAR_ADVANCE instead of a
4053 "char *q" to access menu text and advance through it. Revert the
4054 change that displayed ">" instead of ASCII character 0x10.
4055
4056 2008-09-05 Eli Zaretskii <eliz@gnu.org>
4057
4058 * menu.c (single_menu_item) [!HAVE_BOXES]: Enable emulation of
4059 toggle boxes and radio buttons on MS-DOS as well.
4060
4061 2008-09-05 Kenichi Handa <handa@m17n.org>
4062
4063 * composite.c (autocmp_chars): Check lookback count.
4064 (composition_compute_stop_pos): Set cmp_it->lookback.
4065 (composition_reseat_it): Check lookback count.
4066 (struct position_record): New struct.
4067 (FORWARD_CHAR, BACKWARD_CHAR, CHAR_COMPOSABLE_P): New macros.
4068 (find_automatic_composition): New function.
4069 (composition_adjust_point): Use find_automatic_composition.
4070
4071 * dispextern.h (struct composition_it): New member lookback.
4072
4073 2008-09-02 Chong Yidong <cyd@stupidchicken.com>
4074
4075 * indent.c (Fvertical_motion): Don't call move_it_by_lines again
4076 if moving by a single line.
4077
4078 2008-09-02 Andreas Schwab <schwab@suse.de>
4079
4080 * xterm.c (x_delete_display): Fix merge error.
4081
4082 * fileio.c (Fexpand_file_name): Remove unused variables.
4083
4084 2008-09-02 Eli Zaretskii <eliz@gnu.org>
4085
4086 * fileio.c (Fexpand_file_name): Copy argument `name' into local
4087 storage on all platforms, not just on DOS_NT.
4088
4089 2008-09-02 Jason Rumney <jasonr@gnu.org>
4090
4091 * w32menu.c (Fx_popup_menu, Fx_popup_dialog, w32_menu_show):
4092 Ensure mouse is not grabbed after menu is finished.
4093
4094 2008-09-01 Chong Yidong <cyd@stupidchicken.com>
4095
4096 * xfaces.c (Finternal_set_alternative_font_family_alist)
4097 (Finternal_set_alternative_font_registry_alist): Properly copy
4098 entire alist structure.
4099
4100 2008-09-01 Kenichi Handa <handa@m17n.org>
4101
4102 * ftfont.c (ftfont_spec_pattern): Don't create a charset if the
4103 representative chars of the script is a vector.
4104 (ftfont_list): Handle the case where the representative chars of
4105 the script is a vector.
4106
4107 * character.c (syms_of_character): Docstring of
4108 script-representative-chars fixed.
4109
4110 2008-08-31 Eli Zaretskii <eliz@gnu.org>
4111
4112 * msdos.c (BUILD_CHAR_GLYPH): New macro.
4113 (IT_menu_display): Use it instead of SET_CHAR_GLYPH to construct
4114 the menu. Allocate larger buffer for `text', to account for
4115 possible ^C characters.
4116
4117 2008-08-31 Martin Rudalics <rudalics@gmx.at>
4118
4119 * xdisp.c (prepare_menu_bars): Don't call
4120 Vwindow_size_change_functions with arg Qt.
4121
4122 2008-08-31 Stefan Monnier <monnier@iro.umontreal.ca>
4123
4124 * font.h (font_range):
4125 * fileio.c (report_file_error):
4126 * composite.c (composition_update_it): Yet another int/Lisp_Object
4127 mixup (YAILOM).
4128
4129 2008-08-30 Glenn Morris <rgm@gnu.org>
4130
4131 * data.c (Fmake_variable_frame_local): Doc fix.
4132
4133 * frame.c (Fmodify_frame_parameters): Doc fix.
4134
4135 2008-08-30 Eli Zaretskii <eliz@gnu.org>
4136
4137 * w32.c (init_user_info): Allocate buf[] with xmalloc using the size
4138 needed by GetTokenInformation.
4139 (w32_system_process_attributes): Check return values of all system
4140 APIs.
4141
4142 * msdos.c (IT_display_cursor): Write "CURSOR ON/OFF" to termscript
4143 only when the state changes.
4144 (IT_update_begin, IT_update_end): Add termscript trace.
4145
4146 * w16select.c (Fw16_set_clipboard_data): Don't encode text if
4147 clipboard is unavailable. Set dst to NULL if it doesn't point to
4148 malloc'ed data.
4149 (Fw16_get_clipboard_data): Initialize htext to NULL, to avoid
4150 passing random values to xfree.
4151
4152 * dispnew.c (init_display): Set `tty's association in frame's
4153 parameters alist to the name of the terminal device, if that is known.
4154
4155 2008-08-29 Jason Rumney <jasonr@gnu.org>
4156
4157 * w32uniscribe.c (uniscribe_check_otf): Don't fallback on DFLT script.
4158
4159 2008-08-29 Eli Zaretskii <eliz@gnu.org>
4160
4161 * composite.c (fill_gstring_body): Avoid compiler warnings.
4162
4163 * font.c (font_fill_lglyph_metrics): Use EMACS_INT in
4164 LGLYPH_SET_CODE to avoid compiler warnings.
4165
4166 * makefile.w32-in ($(BLD)/w32uniscribe.$(O)): Depend on composite.h.
4167
4168 * composite.h (LGLYPH_SET_CODE): Cast `val' to EMACS_INT.
4169
4170 * w32uniscribe.c (uniscribe_shape): Shut up compiler warning in
4171 LGLYPH_SET_CODE.
4172
4173 2008-08-29 Kenichi Handa <handa@m17n.org>
4174
4175 * fileio.c (report_file_error): Don't downcase the first character
4176 of errstring if it is still unibyte.
4177
4178 2008-08-29 Kenichi Handa <handa@m17n.org>
4179
4180 These changes are to re-implement the automatic composition so
4181 that it doesn't use text properties.
4182
4183 * Makefile.in (ftfont.o): Depend on composite.h.
4184 (composite.o): Depend dispextern.h, font.h, frame, and window.h.
4185
4186 * character.h (Vunicode_category_table): Extern it.
4187
4188 * character.c (Vunicode_category_table): New variable.
4189 (syms_of_character): DEFVAR_LISP Vunicode_category_table.
4190
4191 * chartab.c (optimize_sub_char_table): Perform more greedy
4192 optimization.
4193
4194 * composite.h (enum composition_method):
4195 Delete COMPOSITION_WITH_GLYPH_STRING.
4196 (COMPOSITION_METHOD): Don't check COMPOSITION_WITH_GLYPH_STRING.
4197 (Vcomposition_function_table): Extern it.
4198 (LGSTRING_XXX, LGLYPH_XXX): Macros moved from font.h.
4199 (composition_gstring_put_cache, composition_gstring_from_id)
4200 (composition_gstring_p, composition_gstring_width)
4201 (composition_compute_stop_pos, composition_reseat_it)
4202 (composition_update_it, composition_adjust_point): Extern them.
4203 (Fcomposition_get_gstring): EXFUN it.
4204
4205 * composite.c: Include window.h, frame.h, dispextern.h, font.h.
4206 (Vcomposition_function_table)
4207 (get_composition_id): Don't handle COMPOSITION_WITH_GLYPH_STRING.
4208 (gstring_hash_table, gstring_work, gstring_work_headers):
4209 New variables.
4210 (gstring_lookup_cache, composition_gstring_put_cache)
4211 (composition_gstring_from_id, composition_gstring_p)
4212 (composition_gstring_width, fill_gstring_header)
4213 (fill_gstring_body, autocmp_chars, composition_compute_stop_pos)
4214 (composition_reseat_it, composition_update_it)
4215 (composition_adjust_point, Fcomposition_get_gstring): New functions.
4216 (syms_of_composite): Initialize gstring_hash_table, gstrint_work,
4217 and gstring_work_headers. DEFVAR_LISP composition-function-table.
4218 Defsubr compostion_get_gstring.
4219
4220 * dispextern.h (struct glyph): New union u.cmp. Delete the member
4221 cmp_id.
4222 (struct glyph_string): Delete the member gidx. New members
4223 cmp_id, cmp_from, and cmp_to.
4224 (enum it_method): Delete GET_FROM_COMPOSITION.
4225 (struct composition_it): New struct.
4226 (struct it): New member cmp_it, and iterator_stack_entry.cmp_it.
4227 Delete c, len, cmp_id, cmp_len in u.comp.
4228
4229 * font.h (enum lgstring_indices): Delete it.
4230 (LGSTRING_XXX, LGLYPH_XXX): Move these macros to composite.h.
4231 (enum lglyph_indices): Likewise.
4232 (font_range): Adjust extern.
4233 (font_fill_lglyph_metrics): Extern it.
4234
4235 * font.c (QCf): New variable.
4236 (check_gstring): Use LGSTRING_GLYPH_LEN, not LGSTRING_LENGTH.
4237 (font_prepare_composition): Delete this function.
4238 (font_range): Type and arguments changed.
4239 (Ffont_make_gstring, Ffont_fill_gstring): Delete them.
4240 (font_fill_lglyph_metrics): New function.
4241 (Ffont_shape_text): Rename to Ffont_shape_gstring and change arguments.
4242 (syms_of_font): DEFSYM QCf. Delete defsubr for
4243 Sfont_make_gstring, Sfont_fill_gstring, Sfont_shape_text.
4244 Defsubr Sfont_shape_gstring.
4245
4246 * fontset.h (font_for_char): Extern it.
4247
4248 * fontset.c (font_for_char): New function.
4249
4250 * ftfont.c: Include composite.h.
4251 (ftfont_resolve_generic_family): Add langset "en" to pattern.
4252 (ftfont_shape_by_flt): Use LGSTRING_GLYPH_LEN, not LGSTRING_LENGTH.
4253
4254 * indent.c: Include composite.h and dispextern.h.
4255 (check_composition): Delete this function.
4256 (scan_for_column): Handle composition by
4257 composition_compute_stop_pos, composition_reseat_it, and
4258 composition_update_it.
4259 (compute_motion): Likewise.
4260 (Fvertical_motion): Fix checking of composition.
4261
4262 * keyboard.c (adjust_point_for_property): Check composition by
4263 composition_adjust_point.
4264
4265 * nsterm.m (ns_draw_glyph_string): Adjust for the change of
4266 struct glyph_string.
4267
4268 * term.c (encode_terminal_code): Adjust for the change of struct glyph.
4269 (append_composite_glyph): Adjust for the change of struct it and
4270 struct glyph.
4271 (produce_composite_glyph): Likewise.
4272
4273 * w32term.c (x_draw_composite_glyph_string_foreground):
4274 Adjust for the change of struct glyph_string.
4275 (x_draw_glyph_string): Likewise.
4276
4277 * w32uniscribe.c (struct uniscribe_font_info): Include composite.h.
4278 (uniscribe_shape): Use LGSTRING_GLYPH_LEN, not LGSTRING_LENGTH.
4279
4280 * xdisp.c: Include font.h.
4281 (it_props): Delete the entry for Qauto_composed.
4282 (init_iterator): Initialize it->cmp_it.id to -1.
4283 (compute_stop_pos): Call composition_compute_stop_pos.
4284 (face_before_or_after_it_pos): Adjust for the change of struct it.
4285 (handle_auto_composed_prop): Delete it.
4286 (handle_composition_prop): Handle only static composition.
4287 (next_overlay_string): Remove it->method == GET_FROM_COMPOSITION
4288 from xassert. Initialize it->cmp_it.stop_pos.
4289 (push_it): Adjust for the change of struct it.
4290 (pop_it): Likewise.
4291 (get_next_element): Delete next_element_from_composition.
4292 (CHAR_COMPOSED_P): New macro.
4293 (get_next_display_element): For automatic composition, get a face
4294 from the font in the glyph-string.
4295 (set_iterator_to_next): For GET_FROM_BUFFER and GET_FROM_STRING,
4296 check composition by it->cmp_it.id. Delete GET_FROM_COMPOSITION case.
4297 (next_element_from_string): Check if the character at the current
4298 position is composed by CHAR_COMPOSED_P.
4299 (next_element_from_buffer): Likewise.
4300 (next_element_from_composition): Adjust for the change of struct it.
4301 Update it->cmp_it.
4302 (dump_glyph): Adjust for the change of struct glyph.
4303 (fill_composite_glyph_string): Adjust for the change of struct
4304 it and struct glyph. Don't handle automatic composition here.
4305 (fill_gstring_glyph_string): New function.
4306 (x_get_glyph_overhangs): Handle automatic composition.
4307 (BUILD_COMPOSITE_GLYPH_STRING): Adjust for the change of struct glyph.
4308 (BUILD_GSTRING_GLYPH_STRING): New macro.
4309 (BUILD_GLYPH_STRINGS): Call BUILD_GSTRING_GLYPH_STRING for
4310 automatic composition.
4311 (append_composite_glyph): Adjust for the change of struct it and
4312 struct glyph.
4313 (x_produce_glyphs): Adjust for the change of struct it.
4314
4315 * xterm.c (x_draw_composite_glyph_string_foreground): Adjust for
4316 the change of struct glyph_string.
4317 (x_draw_glyph_string): Likewise.
4318
4319 2008-08-29 Glenn Morris <rgm@gnu.org>
4320
4321 * buffer.c (word-wrap): Doc fix.
4322 * xdisp.c (truncate-partial-width-windows): Doc fix.
4323 Increase default to 50.
4324
4325 2008-08-29 Chong Yidong <cyd@stupidchicken.com>
4326
4327 * xdisp.c (update_tool_bar_unwind): New function.
4328 (update_tool_bar): Temporarily set selected frame before building
4329 tool-bar items.
4330
4331 2008-08-28 Michael Albinus <michael.albinus@gmx.de>
4332
4333 * dbusbind.c (XD_ERROR, XD_DEBUG_MESSAGE): Use strncpy and
4334 snprintf, respectively.
4335 (xd_append_arg): Convert strings with Fstring_make_unibyte.
4336
4337 2008-08-28 Chong Yidong <cyd@stupidchicken.com>
4338
4339 * Makefile.in: Revert (undocumented) 2008-08-20 change adding
4340 LDFLAGS to GNUstep CC invocation.
4341
4342 2008-08-27 Chong Yidong <cyd@stupidchicken.com>
4343
4344 * indent.c (Fvertical_motion): Revert last change. Handle the
4345 general case where we are moving forward, and PT spans multiple
4346 screen lines.
4347
4348 * eval.c (find_handler_clause): Temporarily increase
4349 max-lisp-eval-depth while printing the backtrace buffer, to
4350 guarantee that help-mode code can run.
4351
4352 2008-08-27 Eli Zaretskii <eliz@gnu.org>
4353
4354 * msdos.c (Fmsdos_remember_default_colors): Don't reverse frame
4355 colors under -rv.
4356 (IT_set_frame_parameters): Don't swap foreground and background
4357 colors if `(reverse . t)' is present in the frame properties.
4358 (internal_terminal_init): Call init_frame_faces only for the
4359 initial frame.
4360
4361 2008-08-27 Andreas Schwab <schwab@suse.de>
4362
4363 * dired.c (Ffile_attributes): Avoid compiler warning in bitshift.
4364
4365 2008-08-27 Andreas Schwab <schwab@suse.de>
4366
4367 * search.c (search_buffer): Set char_base to zero only at the end.
4368
4369 2008-08-27 Kenichi Handa <handa@m17n.org>
4370
4371 * fileio.c (report_file_error): Fix handling of multibyte error string.
4372
4373 2008-08-27 Andreas Seltenreich <seltenreich@gmx.de>
4374
4375 * xterm.c (x_term_init): Temporarily hide the partially
4376 initialized terminal while calling vendor-specific-keysyms.
4377
4378 2008-08-26 Eli Zaretskii <eliz@gnu.org>
4379
4380 * msdos.c (internal_terminal_init): Most initializations done only
4381 once, especially initial_screen_colors[] and termscript open.
4382
4383 2008-08-26 Chong Yidong <cyd@stupidchicken.com>
4384
4385 * eval.c (Fcondition_case): Doc fix.
4386
4387 * widgetprv.h (EmacsFramePart): Change font member to the new font
4388 struct.
4389
4390 * widget.c: Include character.h and font.h for XSETFONT.
4391 (setup_frame_gcs): Compute X font id from font struct, just once.
4392
4393 2008-08-26 Eli Zaretskii <eliz@gnu.org>
4394
4395 * term.c (get_named_tty): Fix last change.
4396
4397 2008-08-26 Chong Yidong <cyd@stupidchicken.com>
4398
4399 * indent.c (Fvertical_motion): If moving forward starting from a
4400 multi-line string, move the iterator to the last line of that string.
4401
4402 2008-08-25 Eli Zaretskii <eliz@gnu.org>
4403
4404 * frame.c (do_switch_frame): Mark previously displayed frame as
4405 obscured for FRAME_MSDOS_P frames as well.
4406
4407 2008-08-24 Eli Zaretskii <eliz@gnu.org>
4408
4409 * frame.c (make_terminal_frame): Initialize f->terminal,
4410 f->terminal->reference_count, and scroll bars on MS-DOS as well.
4411 Set the top frame to newly created frame.
4412 (Fmake_terminal_frame): Reuse the_only_display_info.
4413
4414 * vm-limit.c (get_lim_data) [MSDOS]: Use alternative methods of
4415 estimating available memory.
4416
4417 2008-08-23 David Reitter <david.reitter@gmail.com>
4418
4419 * nsterm.m (ns_draw_window_cursor): Don't call
4420 NSDisableScreenUpdates and NSEnableScreenUpdates on
4421 non-NS_IMPL_COCOA systems.
4422
4423 2008-08-23 Andreas Schwab <schwab@suse.de>
4424
4425 * process.c (procfs_system_process_attributes): Fix use of
4426 uninitialized variables.
4427
4428 2008-08-23 Eli Zaretskii <eliz@gnu.org>
4429
4430 * emacs.c (main) [MSDOS]: Call syms_of_xmenu.
4431
4432 * dispnew.c (init_display): Remove MS-DOS specific conditions for
4433 calling tty-set-up-initial-frame-faces.
4434
4435 * xmenu.c (Fx_popup_dialog, Fx_popup_menu, xmenu_show):
4436 Allow MSDOS frames along with X frames.
4437
4438 * termhooks.h (TERMINAL_ACTIVE_P): Handle output_msdos_raw in
4439 addition to output_termcap.
4440
4441 * xdisp.c (redisplay_internal) [MSDOS]: Don't call set_tty_color_mode.
4442
4443 * termchar.h (FRAME_TTY): Support output_msdos_raw.
4444 (struct tty_display_info) [MSDOS]: Add fields related to mouse
4445 highlight.
4446
4447 * process.c [!subprocesses]: Define QCname.
4448 (syms_of_process): Intern and staticpro it.
4449
4450 * w16select.c (Fw16_set_clipboard_data, Fw16_get_clipboard_data):
4451 Adjust for changes in encoding/decoding routines.
4452 Use encode_coding_object and decode_coding_object instead of
4453 encode_coding and decode_coding.
4454
4455 * sysdep.c (init_sys_modes): Call dos_ttraw with tty_out as argument.
4456
4457 * dosfns.c: Include frame.h before termhooks.h.
4458 (dos_cleanup): Use CURTTY ()->termscript instead of a global
4459 variable termscript.
4460
4461 * s/msdos.h (USER_FULL_NAME): Define.
4462 (SYSTEM_PURESIZE_EXTRA): Bump up to 100K.
4463
4464 * editfns.c (USER_FULL_NAME): Define to pw->pw_gecos if undefined.
4465 (Fuser_full_name): Use USER_FULL_NAME instead of a literal
4466 pw->pw_gecos.
4467
4468 * keyboard.c (handle_interrupt) [MSDOS]: Call cursor_to with
4469 SELECTED_FRAME as additional (1st) argument.
4470 (tty_read_avail_input): Handle output_msdos_raw in
4471 addition to output_termcap.
4472
4473 * msdos.c: Include frame.h before termhooks.h.
4474 (mouse_on, mouse_off, mouse_moveto, mouse_init)
4475 (msdos_set_cursor_shape, IT_set_face, IT_write_glyphs)
4476 (show_mouse_face, IT_clear_end_of_line, IT_clear_screen)
4477 (IT_clear_to_end, IT_cursor_to, IT_display_cursor, IT_cmgoto)
4478 (IT_set_terminal_modes, IT_reset_terminal_modes)
4479 (IT_set_frame_parameters): Use tty->termscript instead of a global
4480 variable termscript.
4481 (IT_write_glyphs): Use tty->terminal->terminal_coding instead of a
4482 global variable terminal_coding. Don't refer to
4483 Vnonascii_translation_table.
4484 (internal_terminal_init): Set Vwindow_system in current_kboard.
4485 Don't use TTY_CHAR_INS_DEL_OK. Set Vinitial_window_system.
4486 Announce date and time of session start, if termscript is open.
4487 Don't zero out the_only_display_info (it is done in
4488 term.c:init_tty). Open termscript only of not already open.
4489 Log "SCREEN SAVED" here, instead of IT_set_terminal_modes. Init mouse
4490 here instead of dos_ttraw. Don't initialize display if this is an
4491 initial tty. Don't set FRAME_FONT.
4492 (Vwindow_system_version): Bump to 23.
4493 (dos_ttraw): Accept a TTY argument; all callers fixed. If mouse
4494 is available, set up mouse_position_hook.
4495 (dos_ttraw, IT_set_terminal_modes): If called with initial
4496 terminal, do nothing.
4497 (IT_set_frame_parameters): Handle the Qtty_type frame
4498 parameter by calling internal_terminal_init.
4499 (dos_set_window_size, show_mouse_face)
4500 (clear_mouse_face, IT_note_mode_line_highlight)
4501 (IT_note_mouse_highlight, IT_update_begin, IT_frame_up_to_date)
4502 (dos_rawgetc): Use tty_display_info instead of x_display_info.
4503 (initialize_msdos_display): New function.
4504 (IT_cursor_to, IT_clear_to_end, IT_clear_screen)
4505 (IT_clear_end_of_line, IT_insert_glyphs, IT_write_glyphs)
4506 (IT_delete_glyphs, IT_ring_bell, IT_reset_terminal_modes)
4507 (IT_set_terminal_modes, IT_set_terminal_window, IT_update_begin):
4508 Accept additional argument: a pointer to a frame. Update all callers.
4509 (request_sigio, unrequest_sigio): Don't define, now defined on
4510 sysdep.c.
4511 (IT_write_glyphs): Rewrite to use encode_terminal_code.
4512
4513 * term.c [MSDOS]: Include msdos.h.
4514 (init_tty) [MSDOS]: Reuse most of WINDOWSNT branch. Change cpp
4515 conditional to DOS_NT. Allow only one call to this function in a
4516 session. Don't allocate a new struct tty_display_info; instead,
4517 reuse the_only_display_info. Call get_tty_size to get screen
4518 dimensions. Call init_baud_rate to set bad_rate.
4519 (dissociate_if_controlling_tty) [MSDOS]: Ifdef away function body.
4520 (Fsuspend_tty) [MSDOS]: Don't close input and output.
4521 (Fresume_tty) [MSDOS]: Don't reopen the TTY; instead, use stdin/stdout.
4522 (get_tty_terminal, get_named_tty, Ftty_type)
4523 (Fcontrolling_tty_p): Handle output_msdos_raw in addition to
4524 output_termcap.
4525 (Fresume_tty, Fsuspend_tty, init_tty, delete_tty):
4526 Call add_keyboard_wait_descriptor and delete_keyboard_wait_descriptor
4527 only when subprocesses are supported.
4528
4529 * frame.c (make_terminal_frame) [MSDOS]: Adjust initialization of
4530 f->output_data.x.
4531 (Fmake_terminal_frame) [MSDOS]: Don't allow creation of new
4532 terminal devices.
4533
4534 * msdos.h: Remove definition of struct x_display_info and struct
4535 x_output.
4536 (FRAME_FONT): Use output_data.tty.
4537 (FRAME_FOREGROUND_PIXEL, FRAME_BACKGROUND_PIXEL): Don't define.
4538 (struct x_display_info): Rename from display_info. Update all users in
4539 msdos.c.
4540 (struct x_output): Remove background_pixel and foreground_pixel.
4541 (the_only_display_info): Rename from the_only_x_display.
4542 (dos_ttraw): Update prototype.
4543
4544 * Makefile.in (MSDOS_OBJ): Add xmenu.o.
4545 (SOME_MACHINE_LISP): Add ../lisp/term/pc-win.elc.
4546
4547 2008-08-23 Jason Rumney <jasonr@gnu.org>
4548
4549 * image.c (enum tiff_keyword_index, tiff_format): Add :index keyword.
4550 (fn_TIFFSetDirectory): New library function used.
4551 (init_tiff_functions) [HAVE_NTGUI]: Initialize it.
4552 (tiff_load): Use :index to select among multiple images. Set count
4553 property when multiple images exist.
4554 (gif_format): Use :index, not :image.
4555
4556 2008-08-23 Chong Yidong <cyd@stupidchicken.com>
4557
4558 * xdisp.c (try_scrolling): Check INT_MAX instead of
4559 MOST_POSITIVE_FIXNUM for maximum integer value. Include limits.h
4560 to obtain INT_MAX.
4561
4562 2008-08-21 İsmail Dönmez <ismail@namtrac.org> (tiny change)
4563
4564 * xterm.c (x_delete_display): Don't call XrmDestroyDatabase on GTK+.
4565
4566 2008-08-21 Christian Faulhammer <opfer@gentoo.org> (tiny change)
4567
4568 * Makefile.in (temacs${EXEEXT}): On GNUstep, link to appropriate
4569 GNUstep library location.
4570
4571 2008-08-21 Chong Yidong <cyd@stupidchicken.com>
4572
4573 * xfaces.c (x_update_menu_appearance): Check validity of menu font
4574 before using it.
4575
4576 * puresize.h (BASE_PURESIZE): Increase to 1250000.
4577
4578 2008-08-20 Adrian Robert <Adrian.B.Robert@gmail.com>
4579
4580 * nsfns.m (ns-read-file-name): Add casts to avoid warning.
4581 (ns-convert-utf8-nfd-to-nfc): Warn if cannot execute correctly.
4582 * nsfont.m (nsfont_draw): Compare indexed colors to 0, not nil.
4583 * nsterm.h (EmacsView-unlockFocusNeedsFlush:): Add declaration.
4584 (EmacsApp-cursor_blink_handler): Remove declaration.
4585 * nsterm.m (ns_draw_glyph_string): Update first conditional body to
4586 match 01 Feb 2008 changes in xterm.c.
4587 (ns_read_socket): Add cast to avoid warning.
4588 (EmacsApp-application:openFiles:): Don't call replyToOpenOrPrint: on
4589 GNUstep.
4590
4591 2008-08-20 Chong Yidong <cyd@stupidchicken.com>
4592
4593 * xselect.c (x_get_foreign_selection): Return nil if desired
4594 selection could not be obtained, instead of signalling an error.
4595
4596 2008-08-20 David Reitter <david.reitter@gmail.com>
4597
4598 * nsfns.m (ns_lisp_to_cursor_type): Replace with generic xfns.c.
4599 * nsterm.m: Remove ns-specific code for cursor blinking.
4600 (ns_draw_window_cursor): Clear cursor properly rather than
4601 redrawing the area. Respect width of bar cursors.
4602 These changes enable the use of generic blink-cursor-mode and
4603 generic cursor types in NS and support smooth cursor movements (do
4604 not blink off after command).
4605 * xdisp.c (get_phys_cursor_geometry): Redraw wider rectangle on
4606 Nextstep, too.
4607
4608 2008-08-19 Kenichi Handa <handa@m17n.org>
4609
4610 * font.c (Vfont_log_deferred): New variable.
4611 (font_add_log): Check Vfont_log_deferred.
4612 (font_deferred_log): New function.
4613
4614 * font.h (font_deferred_log): Extern it.
4615
4616 * fontset.c (reorder_font_vector): Use encoding charset of fonts
4617 for sorting.
4618 (face_for_char): Use deferred log.
4619
4620 2008-08-18 Kenichi Handa <handa@m17n.org>
4621
4622 * fontset.c (face_for_char): Add font log.
4623
4624 * font.c (font_add_log): Add the font properties :script, :lang,
4625 and :otf in the log.
4626
4627 2008-08-17 Chong Yidong <cyd@stupidchicken.com>
4628
4629 * xdisp.c: Remove dead code.
4630 (handle_invisible_prop, next_overlay_string): Defer call to
4631 setup_for_ellipsis.
4632 (handle_stop, set_iterator_to_next): Call setup_for_ellipsis.
4633
4634 2008-08-15 Chong Yidong <cyd@stupidchicken.com>
4635
4636 * xfaces.c (lookup_derived_face): Properly handle possible zero
4637 return value of get_lface_attributes.
4638 (merge_faces): Don't tell lookup_derived_face to signal an error
4639 if face is not found.
4640
4641 * dired.c (Fdirectory_files): Doc fix.
4642
4643 * process.c (make_process): Initialize kill_without_query struct
4644 member.
4645
4646 2008-08-15 Eli Zaretskii <eliz@gnu.org>
4647
4648 * w32.c (w32_system_process_attributes) [_MSC_VER < 1300]:
4649 Alternative calculation of totphys for Visual Studio 6.
4650
4651 * w32fns.c [_MSC_VER && _MSC_VER < 1300]: Declare HMONITOR.
4652
4653 * w32.c (_MEMORY_STATUS_EX, MEMORY_STATUS_EX, LPMEMORY_STATUS_EX):
4654 Rename from _MEMORYSTATUSEX, MEMORYSTATUSEX, LPMEMORYSTATUSEX.
4655 All users changed.
4656 (stat): Only root directory passed to GetDriveType. Allow RAM
4657 disk as well as local fixed disk when w32-get-true-file-attributes
4658 is set to `local'.
4659 (CopySid_Proc, EqualSid_Proc, GetLengthSid_Proc): New typedefs.
4660 (equal_sid, get_length_sid, copy_sid): New wrapper functions.
4661 (w32_cached_id, w32_add_to_cache): New functions.
4662 (get_name_and_id): Look account names in the cache before calling
4663 lookup_account_sid.
4664 (g_b_init_get_length_sid, g_b_init_equal_sid, g_b_init_copy_sid):
4665 New initialization flags.
4666 (globals_of_w32): Initialize them to zero.
4667 (w32_system_process_attributes): Use w32_cached_id and
4668 w32_add_to_cache.
4669
4670 2008-08-14 Lawrence Mitchell <wence@gmx.li>
4671
4672 * lread.c (Fread_char, Fread_char_exclusive): If no character
4673 event is read before timeout is reached, return nil, rather than
4674 converting to a number.
4675
4676 2008-08-14 Chong Yidong <cyd@stupidchicken.com>
4677
4678 * fns.c (use_dialog_box): Doc fix.
4679
4680 * s/darwin.h: Undefine HAVE_RES_INIT, which appears to be harmful
4681 on OS X.
4682
4683 2008-08-13 Chong Yidong <cyd@stupidchicken.com>
4684
4685 * frame.c (Qns_parse_geometry): New var.
4686 (Fx_parse_geometry): For HAVE_NS, call ns-parse-geometry.
4687
4688 2008-08-11 Chong Yidong <cyd@stupidchicken.com>
4689
4690 * xdisp.c (x_produce_glyphs): Handle the case when font has no
4691 space character in calculating tabs.
4692
4693 2008-08-11 Dan Nicolaescu <dann@ics.uci.edu>
4694
4695 * Makefile.in (bootstrap-emacs): Use ln -f in the CANNOT_DUMP case.
4696
4697 2008-08-10 Glenn Morris <rgm@gnu.org>
4698
4699 * process.c (procfs_system_process_attributes): Use EMACS_INTs to
4700 silence gcc "limited range of data type" warnings in some
4701 make_fixnum_or_float calls.
4702
4703 2008-08-09 Eli Zaretskii <eliz@gnu.org>
4704
4705 * w32.c (w32_system_process_attributes): If the process does not
4706 exist, return nil.
4707
4708 * w32.c: Include thelp32.h, psapi.h and coding.h.
4709 (_MEMORYSTATUSEX, _PROCESS_MEMORY_COUNTERS_EX): New struct
4710 declarations.
4711 (CreateToolhelp32Snapshot_Proc, Process32First_Proc)
4712 (Process32Next_Proc): New typedefs.
4713 (g_b_init_create_toolhelp32_snapshot, g_b_init_process32_first)
4714 (g_b_init_process32_next, g_b_init_open_thread_token)
4715 (g_b_init_impersonate_self, g_b_init_revert_to_self)
4716 (g_b_init_get_process_memory_info, g_b_init_global_memory_status)
4717 (g_b_init_get_process_working_set_size)
4718 (g_b_init_global_memory_status_ex): New static variables.
4719 (globals_of_w32): Initialize them.
4720 (create_toolhelp32_snapshot, process32_first, process32_next)
4721 (open_thread_token, impersonate_self, revert_to_self)
4722 (get_process_memory_info, get_process_working_set_size)
4723 (global_memory_status, global_memory_status_ex): New wrapper
4724 functions.
4725 (w32_list_system_processes, w32_system_process_attributes)
4726 (enable_privilege, restore_privilege, ltime, process_times):
4727 New functions.
4728 (convert_time_raw): New function.
4729 (convert_time): Remove conversion of FILETIME into time in 100
4730 nsec units, call convert_time_raw instead.
4731
4732 * process.h (w32_list_system_processes, w32_system_process_attributes):
4733 Add prototypes.
4734 (Qeuid, Qegid, Qcomm, Qstate, Qppid, Qpgrp, Qsess, Qttname)
4735 (Qminflt, Qmajflt, Qcminflt, Qcmajflt, Qutime, Qstime, Qcutime)
4736 (Qpri, Qnice, Qthcount, Qstart, Qvsize, Qrss, Qargs, Quser, Qgroup)
4737 (Qetime, Qpcpu, Qpmem, Qtpgid, Qcstime): Add extern declarations.
4738
4739 * process.c (Fsystem_process_attributes): Doc fix.
4740
4741 2008-08-08 Chong Yidong <cyd@stupidchicken.com>
4742
4743 * xdisp.c (move_it_to): When stopping at a charpos, check if that's
4744 a continued multi-char glyph; if so, advance to the actual glyph.
4745
4746 2008-08-07 Dan Nicolaescu <dann@ics.uci.edu>
4747
4748 * s/darwin.h (OTHER_FILES): Do not define here, defined in config.in.
4749
4750 * Makefile.in (ALL_OBJC_CFLAGS): New variable.
4751 (.m.o): Use it.
4752 * config.in: Regenerate.
4753
4754 2008-08-07 Chong Yidong <cyd@stupidchicken.com>
4755
4756 * xdisp.c (redisplay_window): Revert last change.
4757 (try_window): Check bottom scroll margin too.
4758
4759 2008-08-06 Adrian Robert <Adrian.B.Robert@gmail.com>
4760
4761 * config.in: Regenerate.
4762
4763 * Makefile.in (emacs): Remove ifndef NS conditional for 'emacs
4764 -list-load-path-shadows'.
4765 (nsgui.h): Reduce number of things depending on it.
4766
4767 2008-08-06 Chong Yidong <cyd@stupidchicken.com>
4768
4769 * xdisp.c (try_scrolling): Use iterator to find the scroll margin,
4770 instead of window-end which does the wrong thing at eob.
4771 (try_cursor_movement): Minor optimization.
4772 (redisplay_window): If scroll margin is defined, don't assume
4773 window doesn't need scrolling.
4774
4775 2008-08-06 Adrian Robert <Adrian.B.Robert@gmail.com>
4776
4777 * config.in: Regenerate.
4778
4779 * Makefile.in: Move nsXXX.m dependencies into big alphabetical list.
4780 (mostlyclean): Don't delete *.d under NS.
4781
4782 * nsterm.h (NS_HAVE_INTEGER): Change to NS_HAVE_NSINTEGER.
4783
4784 2008-08-06 Kenichi Handa <handa@m17n.org>
4785
4786 * xfont.c (xfont_list_family): Return a list of symbols, not strings.
4787
4788 2008-08-06 Andreas Schwab <schwab@suse.de>
4789
4790 * config.in: Regenerate.
4791
4792 2008-08-05 Chong Yidong <cyd@stupidchicken.com>
4793
4794 * xdisp.c (redisplay_window): Don't enforce scroll-margin when
4795 forcing a window start.
4796
4797 * fileio.c (Vauto_save_list_file_name): Move here from file.el.
4798 (auto_save_1): Update modtime when auto-save-list-file-name is on.
4799
4800 2008-08-04 Adrian Robert <Adrian.B.Robert@gmail.com>
4801
4802 * emacs.c (main): Under NS, set working dir to HOME when get a "psn"
4803 argument.
4804
4805 2008-08-05 Juanma Barranquero <lekktu@gmail.com>
4806
4807 * buffer.c (syms_of_buffer) <scroll-up-aggressively>:
4808 <scroll-down-aggressively, before-change-functions>:
4809 <after-change-functions>: Reflow docstrings.
4810
4811 2008-08-04 Adrian Robert <Adrian.B.Robert@gmail.com>
4812 Ken Raeburn <raeburn@gnu.org>
4813
4814 Dock menu customization, based on a patch by Ken Raeburn, plus some
4815 other fixes.
4816 * nsmenu.m (dockMenu): New variable.
4817 (EmacsDialog -clicked:): Fix mistake in change of 2008-07-17.
4818
4819 * nsterm.h (dockMenu): Declare.
4820
4821 * nsterm.m (KEY_NS_NEW_FRAME): New definition.
4822 (ns_term_init): Initialize dockMenu.
4823 (EmacsApp -newFrame:, -applicationDockMenu:): New methods.
4824 (EmacsView -windowShouldClose:): Don't behave specially if <= 1 frame
4825 left.
4826
4827 * lisp.h (LSB_TAG): Use on DARWIN_OS, not NS_IMPL_COCOA.
4828
4829 2008-08-04 Chong Yidong <cyd@stupidchicken.com>
4830
4831 * nsterm.h: Test directly for NS_HAVE_INTEGER before defining it.
4832
4833 * config.in: Regenerate.
4834
4835 2008-08-04 Seiji Zenitani <zenitani@mac.com>
4836
4837 * nsfns.m (x-create-frame): Set the frame parameter alpha to nil.
4838
4839 2008-08-04 Chong Yidong <cyd@stupidchicken.com>
4840
4841 * nsterm.h (find_and_call_menu_selection): Fix prototype.
4842
4843 2008-08-04 Adrian Robert <Adrian.B.Robert@gmail.com>
4844
4845 * emacs.c (main: unexec_init_emacs_zone): Call if on DARWIN_OS.
4846
4847 * keyboard.h: Comment an #endif.
4848
4849 * lisp.h (have_menus_p): Adjust comment.
4850
4851 * menu.c (find_and_return_menu_selection): Fix comparison with
4852 client_data.
4853
4854 * nsmenu.m (popup_activated_flag): New variable.
4855 (popup_activated): New function.
4856 (menu-or-popup-active-p): New exported lisp definition.
4857 (ns_popup_menu): Set popup_activated_flag. Call discard_menu_items()
4858 when popup done.
4859 (ns_popup_dialog): Set popup_activated_flag.
4860
4861 * nsterm.m (EmacsView -conversationIdentifier): Use NSInteger
4862 version for GNUstep (handled by conditional typedef in nsterm.m).
4863 (ns_get_color): Remove special-casing for "darkblue", "dark blue" (now
4864 in rgb.txt).
4865
4866 * process.c (init_process): Use DARWIN_OS, not DARWIN.
4867
4868 * sysselect.h: Conditionalize init_process undef on DARWIN_OS.
4869
4870 * syssignal.h (FORWARD_SIGNAL_TO_MAIN_THREAD): Do it also under NS.
4871
4872 * xdisp.c (redisplay_internal, note_mouse_highlight): Under NS,
4873 shortcircuit if popup_activated like GTK and X toolkit.
4874
4875 * m/inter386.h: Change DARWIN to DARWIN_OS.
4876
4877 * s/darwin.h: Add #define DARWIN_OS. Get rid of C_SWITCH_SYSTEM def.
4878 Change LIBS_MACGUI to LIBS_NSGUI. Move temacs-conditionalized defs
4879 closer to C_SWITCH_SYSTEM_TEMACS so usage is understood. Expand
4880 comment on NO_SOCK_SIGIO.
4881
4882 2008-08-03 Chong Yidong <cyd@stupidchicken.com>
4883
4884 * nsterm.m (windowDidResize): Remove stopModal call.
4885
4886 2008-08-03 Andreas Schwab <schwab@suse.de>
4887
4888 * vm-limit.c (get_lim_data) [HAVE_GETRLIMIT && RLIMIT_AS]: Define.
4889 (check_memory_limits): Don't handle HAVE_GETRLIMIT here.
4890
4891 2008-08-02 Chong Yidong <cyd@stupidchicken.com>
4892
4893 * vm-limit.c (check_memory_limits): Don't use getrlimit on cygwin.
4894 Don't use uninitialized pointer variable when using getrlimit.
4895
4896 2008-08-02 Jason Rumney <jasonr@gnu.org>
4897
4898 * w32font.c (compute_metrics): Don't mess with glyph_idx setting here.
4899
4900 2008-08-02 Eli Zaretskii <eliz@gnu.org>
4901
4902 * alloc.c (NSTATICS): Bump to 0x640.
4903
4904 * s/gnu-linux.h (HAVE_PROCFS, LISTPROC, PROCATTR): New defines.
4905
4906 * lisp.h: Add prototype for directory_files_internal.
4907
4908 * process.c (Fsystem_processes_list, Fsystem_process_attributes):
4909 New functions.
4910 (syms_of_process): Defsubr them. Add initializations for various
4911 Q* symbols used in procfs_system_process_attributes.
4912 (procfs_list_system_processes, procfs_system_process_attributes)
4913 [HAVE_PROCFS]: New functions.
4914 (time_from_jiffies, ltime_from_jiffies, get_up_time, procfs_ttyname)
4915 (procfs_get_total_memory): New functions.
4916
4917 2008-08-01 Juanma Barranquero <lekktu@gmail.com>
4918
4919 * xfaces.c (Fx_load_color_file): Fix previous change;
4920 it is #ifdef WINDOWSNT, not WINDOWS_NT.
4921
4922 2008-08-01 Michael Albinus <michael.albinus@gmx.de>
4923
4924 * dbusbind.c (xd_read_message): Handle D-Bus error messages.
4925
4926 2008-08-01 Adrian Robert <Adrian.B.Robert@gmail.com>
4927
4928 * nsterm.h (NSInteger, NSUInteger): Add defines for non-Leopard.
4929
4930 2008-08-01 Chong Yidong <cyd@stupidchicken.com>
4931
4932 * nsfns.m (ns_frame_parm_handlers): Add empty entry for x_set_alpha.
4933
4934 * nsterm.m (EmacsApp -application:openFiles:): GNUstep does not
4935 define NSApplicationDelegateReplySuccess.
4936 (EmacsView -converstationIdentifier): Use long instead of
4937 NSInteger for GNUstep, since it doesn't have NSInteger.
4938
4939 * xmenu.c: Revert last change.
4940
4941 * keyboard.h: Fix last change.
4942
4943 2008-08-01 Juanma Barranquero <lekktu@gmail.com>
4944
4945 * xfaces.c (x-load-color-file): Use RGB() instead of manually shifting
4946 on Windows.
4947
4948 2008-08-01 Adrian Robert <Adrian.B.Robert@gmail.com>
4949
4950 Warning clearing and clean-up in NS port.
4951 * keyboard.h (xmalloc_widget_value, digest_single_submenu):
4952 Add prototypes.
4953 * nsgui.h (FACE_DEFAULT): Remove, unused.
4954 (XGCValues): Change colors to unsigned long.
4955 * nsterm.h (EmacsApp): Add declaration of all methods implemented in
4956 nsterm.m.
4957 (EmacsMenu -addItemWithWidgetValue:): Change to use NSMenuItem class.
4958 (ns_list_fonts): Remove, unused.
4959 (ns_font_to_xlfd, ns_fontname_to_xlfd): Drop prototypes.
4960 * nsfns.m (interpret_services_menu): Use NSMenuItem class.
4961 * nsfont.m (nsfont_open): Fix cast error in glyphs,metrics alloc.
4962 (nsfont_draw): Compare face colors to 0, not nil.
4963 * nsmenu.m (struct widget_value): Drop unneeded declaration.
4964 (EmacsMenu -addItemWithWidgetValue:, -fillWithWidgetValue:)
4965 (-addSubmenuWithTitle:): Use NSMenuItem class.
4966 (ns_popup_menu): Use NO, not NULL, for enabled setting.
4967 * nsterm.m (ns_draw_glyph_string): Don't compare font to ~0.
4968 (ns_clip_to_row): Make gc arg a BOOL.
4969 (ns_draw_fringe_bitmap, ns_draw_window_cursor): Use YES, NO in
4970 ns_clip_to_row() call.
4971 (ns_draw_glyph_string): Drop face comparison to ~0 (no longer
4972 used). Cast FRAME_FONT assignments.
4973 (ns_read_socket): Cast call to EmacsApp-fulfillService:withArg:.
4974 (ns_string_to_lispmod): Change arg to const char.
4975 (ns_term_init): Use NSMenuItem class.
4976 (EmacsApp -openFile:): Move to different section of file.
4977 (EmacsApp -application:openFiles:): Don't return a value, call
4978 -replyToOpenOrPrint:.
4979 (EmacsView -keyDown:): Fix up cast.
4980 (EmacsView -converstationIdentifier): Use NSInteger instead of long.
4981 (EmacsView -menuDown:): Cast tag in call to
4982 find_and_call_menu_selection().
4983 (ns_list_fonts): Remove, unused.
4984 (ns_font_to_xlfd): Make static. Cast result of UTF8String.
4985 (ns_fontname_to_xlfd): Make static.
4986 * w32menu.c (xmalloc_widget_value, digest_single_submenu):
4987 Remove prototypes (now in keyboard.h).
4988 (next_menubar_widget_id): Remove, unused.
4989 * xmenu.c (xmalloc_widget_value, digest_single_submenu):
4990 Remove prototypes (now in keyboard.h).
4991 * xfaces.c (ns_list_fonts, w32_list_fonts): Remove, unused.
4992
4993 2008-08-01 Dan Nicolaescu <dann@ics.uci.edu>
4994
4995 * Makefile.in (dispnew.o, gtkutil.o, sound.o, atimer.o)
4996 (floatfns.o): Depend on syssignal.h.
4997 (term.o): Depend on syssignal.h, systty.h, and $(INTERVAL_SRC).
4998
4999 * systty.h: Fix previous change that removed BSD_TERMIOS.
5000 Add comments to #ifdefs.
5001
5002 2008-08-01 Adrian Robert <Adrian.B.Robert@gmail.com>
5003
5004 * w32fns.c (w32-load-color-file): Remove.
5005 (x-open-connection): Use renamed Fx_load_color_file.
5006 * xfaces.c (x-load-color-file): Add.
5007 * nsterm.m (ns_initialize): Load colors from etc/rgb.txt instead of
5008 Emacs.clr.
5009 (hide_hourglass): BLOCK_INPUT before UNBLOCK.
5010
5011 2008-07-31 Michael Albinus <michael.albinus@gmx.de>
5012
5013 * dbusbind.c (Fdbus_call_method_asynchronously)
5014 (Fdbus_method_error_internal): New defuns.
5015 (xd_read_message): Handle also reply messages.
5016 (Vdbus_registered_functions_table): Extend docstring.
5017
5018 2008-07-31 Juanma Barranquero <lekktu@gmail.com>
5019
5020 * keyboard.c (gobble_input): Fix previous change.
5021
5022 2008-07-31 Dan Nicolaescu <dann@ics.uci.edu>
5023
5024 * bitmaps/README:
5025 * xfns.c:
5026 * termcap.c:
5027 * term.c:
5028 * syswait.h:
5029 * systty.h:
5030 * systime.h:
5031 * syssignal.h:
5032 * sysdep.c:
5033 * process.h:
5034 * process.c:
5035 * print.c:
5036 * ndir.h:
5037 * lread.c:
5038 * keyboard.c:
5039 * getpagesize.h:
5040 * floatfns.c:
5041 * fileio.c:
5042 * emacs.c:
5043 * doc.c:
5044 * dispnew.c:
5045 * dired.c:
5046 * data.c:
5047 * callproc.c:
5048 * buffer.c:
5049 * README:
5050 * Makefile.in:
5051 * s/template.h:
5052 * s/msdos.h:
5053 * m/vax.h: Remove VMS support.
5054 * s/vms.h:
5055 * vlimit.h:
5056 * uaf.h:
5057 * temacs.opt:
5058 * param.h:
5059 * ioctl.h: Remove file.
5060
5061 2008-07-31 Dan Nicolaescu <dann@ics.uci.edu>
5062
5063 * s/ms-w32.h (MULTI_KBOARD): Remove.
5064 * xterm.c:
5065 * xselect.c:
5066 * xfns.c:
5067 * window.c:
5068 * w32term.c:
5069 * w32fns.c:
5070 * terminal.c:
5071 * termhooks.h:
5072 * term.c:
5073 * sysdep.c:
5074 * keyboard.h:
5075 * keyboard.c:
5076 * frame.h:
5077 * frame.c:
5078 * frame.c: Remove references to MULTI_KBOARD, it is now the default.
5079 * config.in: Regenerate.
5080
5081 2008-07-30 Jason Rumney <jasonr@gnu.org>
5082
5083 * w32font.h (struct w32font_info): Use unicode version of textmetrics.
5084
5085 * w32font.c (w32font_encode_char): Leave as unicode if in range.
5086 (w32font_open_internal): Get unicode version of textmetrics.
5087 Don't enable or disable glyph indices here.
5088 (w32font_open): Disable use of glyph indices.
5089
5090 * w32uniscribe.c (uniscribe_open): Enable use of glyph indices.
5091
5092 2008-07-30 Chong Yidong <cyd@stupidchicken.com>
5093
5094 * minibuf.c (Vread_buffer_function): Doc fix.
5095
5096 2008-07-30 John Paul Wallington <jpw@pobox.com>
5097
5098 * minibuf.c (read_buffer_completion_ignore_case): New var.
5099 (Fread_buffer): Use it.
5100
5101 2008-07-30 Dan Nicolaescu <dann@ics.uci.edu>
5102
5103 * systty.h (sensemode): Remove empty #if. Remove reference to
5104 BSD_TERMIOS, unused.
5105
5106 * sysdep.c: Remove reference to DGUX.
5107 (closedir): Remove reference to BROKEN_CLOSEDIR, unused.
5108
5109 * config.in: Regenerate.
5110
5111 2008-07-30 Jason Rumney <jasonr@gnu.org>
5112
5113 * w32uniscribe.c (uniscribe_encode_char): Fix glyph buffer size.
5114
5115 2008-07-29 Jason Rumney <jasonr@gnu.org>
5116
5117 * w32uniscribe.c (uniscribe_shape): Avoid using context if cache
5118 is populated.
5119 (uniscribe_encode_char): Always use uniscribe.
5120 Avoid using context if cache is populated.
5121
5122 2008-07-29 Jan Djärv <jan.h.d@swipnet.se>
5123
5124 * xmenu.c (Fx_menu_bar_open_internal): Use activate_item signal to
5125 open menu.
5126
5127 * gtkutil.c (menu_nav_ended): Remove.
5128 (create_menus): Remove signal connect for menu_nav_ended.
5129
5130 2008-07-28 Chong Yidong <cyd@stupidchicken.com>
5131
5132 * xdisp.c (redisplay_window): Check return value of
5133 compute_window_start_on_continuation_line before forcing a window
5134 start.
5135
5136 2008-07-28 Jason Rumney <jasonr@gnu.org>
5137
5138 * w32font.c (w32font_text_extents): Use w32_metric_cache consistently.
5139
5140 * w32term.c (w32_enable_unicode_output, cleartype_active):
5141 Remove obsolete display options.
5142 (x_draw_glyph_string_background): Don't use old cleartype_active
5143 workaround.
5144 (w32_initialize): Remove cleartype_active initialization.
5145 (syms_of_w32term): Remove w32_enable_unicode_output initialization.
5146
5147 2008-07-28 Andreas Schwab <schwab@suse.de>
5148
5149 * lisp.h (init_weak_hash_tables, syms_of_font)
5150 (xd_read_queued_messages, syms_of_dbusbind): Declare.
5151 (remove_hash_entry): Don't declare.
5152 * eval.c (maybe_call_debugger): Make static and move before use.
5153 * gtkutil.c: Include <X11/Xft/Xft.h> if HAVE_XFT.
5154 * xdisp.c: Include "gtkutil.h" if USE_GTK.
5155 * xterm.h (x_set_frame_alpha): Declare.
5156
5157 2008-07-28 Jan Djärv <jan.h.d@swipnet.se>
5158
5159 * gtkutil.c (menu_nav_ended): Revert change from 2008-07-24.
5160 (create_menus): Connect selection-done to menu_nav_ended.
5161
5162 2008-07-27 Adrian Robert <Adrian.B.Robert@gmail.com>
5163
5164 * nsfns.m (x-create-frame): Add copy of parms argument to beginning.
5165 Set Vx_resource_name to a fallback. Replace read of 'buffered'
5166 parameter with read of 'alpha' one.
5167 (Qns_frame_parameter): Remove.
5168 * nsselect.m (selection-coding-system)
5169 (next-selection-coding-system, Vselection_coding_system)
5170 (Vnext_selection_coding_system): Drop.
5171
5172 2008-07-27 Adrian Robert <Adrian.B.Robert@gmail.com>
5173
5174 * nsfns.m (do-applescript, do_applescript): Rename to
5175 ns-do-applescript, ns_do_applescript, and move within file.
5176
5177 2008-07-27 Dan Nicolaescu <dann@ics.uci.edu>
5178
5179 Remove support for Mac Carbon.
5180 * mactoolbox.c:
5181 * macterm.h:
5182 * macterm.c:
5183 * macselect.c:
5184 * macmenu.c:
5185 * macgui.h:
5186 * macfns.c:
5187 * mac.c: Remove file.
5188 * s/darwin.h:
5189 * m/intel386.h:
5190 * xfaces.c:
5191 * xdisp.c:
5192 * window.c:
5193 * tparam.c:
5194 * termhooks.h:
5195 * termcap.c:
5196 * term.c:
5197 * syssignal.h:
5198 * sysselect.h:
5199 * sysdep.c:
5200 * process.c:
5201 * lread.c:
5202 * lisp.h:
5203 * keyboard.c:
5204 * image.c:
5205 * fringe.c:
5206 * frame.h:
5207 * frame.c:
5208 * fontset.c:
5209 * font.h:
5210 * font.c:
5211 * fns.c:
5212 * fileio.c:
5213 * emacs.c:
5214 * dispnew.c:
5215 * dispextern.h:
5216 * config.in:
5217 * atimer.c:
5218 * Makefile.in: Remove code for Carbon.
5219
5220 2008-07-26 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
5221
5222 * macterm.c (XDrawLine) [USE_MAC_IMAGE_IO]: Remove spurious return.
5223
5224 2008-07-26 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
5225
5226 * macterm.h (kCGBitmapByteOrder32Host): New define for
5227 non-universal SDKs.
5228
5229 * image.c (mac_create_cg_image_from_image, image_load_image_io)
5230 [USE_MAC_IMAGE_IO]: Remove conditionals for kCGBitmapByteOrder32Host.
5231
5232 * macterm.c (XDrawLine, XCreatePixmapFromBitmapData)
5233 [USE_MAC_IMAGE_IO]: Remove conditionals for kCGBitmapByteOrder32Host.
5234
5235 2008-07-26 David Robinow <drobinow@gmail.com> (tiny change)
5236
5237 * w32inevt.c: Include dispextern.h.
5238
5239 2008-07-26 Andreas Schwab <schwab@suse.de>
5240
5241 * print.c (print_object): Fix off-by-one in last change.
5242
5243 2008-07-25 Juanma Barranquero <lekktu@gmail.com>
5244
5245 * term.c (syms_of_term): Don't initialize default_orig_pair,
5246 default_set_foreground and default_set_background on Windows.
5247
5248 2008-07-25 Jason Rumney <jasonr@gnu.org>
5249
5250 * w32uniscribe.c (uniscribe_shape): Pass NULL for control arg to
5251 ScriptItemize. Clean up return value checking. Remove unused
5252 variables.
5253 (uniscribe_encode_char): Encode non-BMP characters with uniscribe
5254 shaping engine.
5255
5256 * w32font.c (w32font_has_char): Handle the case where we can't
5257 determine the script for a character.
5258
5259 2008-07-25 Chong Yidong <cyd@stupidchicken.com>
5260
5261 * term.c (syms_of_term): Initialize default_orig_pair,
5262 default_set_foreground, and default_set_background.
5263
5264 * getloadavg.c (nl): Rename to name_list to avoid ncurses.h
5265 clash (bug#86).
5266 (getloadavg): Callers changed.
5267
5268 * image.c (svg_load_image): Fix last change.
5269 (svg_load_image): Use rsvg_handle_get_dimensions to check that
5270 image size is valid. Use g_object_unref instead of deprecated
5271 rsvg_handle_free to free rsvg handle.
5272 (x_from_xcolors): Don't initialize pixmap (silence compiler).
5273
5274 2008-07-25 Jason Rumney <jasonr@gnu.org>
5275
5276 * w32font.c (w32font_encode_char): Encode characters outside BMP as
5277 surrogates before looking up glyph index.
5278 (w32font_text_extents): Encode as surrogates if falling back to
5279 functions that need UTF-16 wide chars.
5280
5281 * w32uniscribe.c (uniscribe_encode_char): Encode characters outside
5282 BMP as surrogates before looking up glyph index.
5283
5284 2008-07-25 Chong Yidong <cyd@stupidchicken.com>
5285
5286 * image.c (svg_load_image): Check for failure in return value of
5287 rsvg_handle_get_pixbuf. Free rsvg handle when done.
5288
5289 2008-07-25 Jason Rumney <jasonr@gnu.org>
5290
5291 * w32font.c (Fx_select_font): Reverse sense of second arg.
5292
5293 2008-07-24 Stefan Monnier <monnier@iro.umontreal.ca>
5294
5295 * syntax.c (struct lisp_parse_state, char_quoted, inc_bytepos)
5296 (dec_bytepos, find_defun_start): Use EMACS_INT for buffer positions.
5297
5298 * puresize.h (PURESIZE_CHECKING_RATIO): New macro.
5299 (PURESIZE): Use it.
5300
5301 2008-07-24 Dan Nicolaescu <dann@ics.uci.edu>
5302
5303 * m/amdx86-64.h (HAVE_LIB64_DIR): Consolidate ifdefs.
5304 * m/alpha.h (TEXT_END):
5305 * m/ibmrs6000.h (TEXT_END):
5306 * m/macppc.h (TEXT_END):
5307 * s/darwin.h (TEXT_END):
5308 * s/msdos.h (TEXT_END): Remove, unused.
5309 * s/gnu-linux.h (BSD_PGRPS): Add a comment.
5310 * s/cygwin.h: Remove comment.
5311
5312 * ecrt0.c (NODOT_GLOBAL_START): Remove code, unused.
5313 (DOT_GLOBAL_START): Remove conditional, redundant for CRT0_DUMMIES.
5314 * m/intel386.h (DOT_GLOBAL_START):
5315 * m/vax.h (DOT_GLOBAL_START): Remove, redundant with CRT0_DUMMIES.
5316 (USG): Remove, file not used on USG platforms.
5317
5318 * Makefile.in (HAVE_X11): Remove empty #else.
5319
5320 2008-07-24 Andreas Schwab <schwab@suse.de>
5321
5322 * fileio.c (Finsert_file_contents): Properly adjust undo list
5323 after format conversion.
5324
5325 2008-07-24 Jan Djärv <jan.h.d@swipnet.se>
5326
5327 * gtkutil.c (xg_get_font_name): Cast w to GTK_FONT_SELECTION_DIALOG.
5328 (menu_nav_ended): Remove.
5329 (create_menus): Remove signal connect for menu_nav_ended.
5330 (xg_update_menubar): Also take deactivate_cb as parameter, pass it to
5331 create_menus.
5332 (xg_modify_menubar_widgets): Pass deactivate_cb to xg_update_menubar.
5333
5334 2008-07-23 Jason Rumney <jasonr@gnu.org>
5335
5336 * w32font.c (w32_enumfont_pattern_entity): Return height consistent
5337 with opened font.
5338 (w32font_open): Set font type to gdi.
5339
5340 * w32uniscribe.c (uniscribe_open): Set font type to uniscribe.
5341
5342 2008-07-23 Dan Nicolaescu <dann@ics.uci.edu>
5343
5344 * s/usg5-4.h (ADDR_CORRECT): Remove, unused.
5345 * unexaix.c (ADDR_CORRECT): Remove conditional, the only user
5346 defines it.
5347 * unexec.c (ADDR_CORRECT): Define unconditionally.
5348
5349 * m/ibmrs6000.h (C_SWITCH_MACHINE): Remove.
5350
5351 * unexec.c: Remove code depending on !COFF and USG, the file is
5352 not used for such systems.
5353
5354 * s/netbsd.h (A_TEXT_OFFSET, A_TEXT_SEEK):
5355 * s/freebsd.h (A_TEXT_OFFSET, A_TEXT_SEEK): Remove, unused.
5356 (LD_SWITCH_SYSTEM_1): Remove, update users.
5357
5358 * s/darwin.h (DATA_END):
5359 * m/intel386.h (DATA_END):
5360 * m/ibmrs6000.h (DATA_END):
5361 * m/alpha.h (DATA_END): Remove, unused.
5362
5363 * config.in: Regenerate.
5364 * s/ms-w32.h (subprocesses): Define unconditionally.
5365 * s/template.h (subprocesses): Update comment.
5366 * s/vms.h (subprocesses):
5367 * s/usg5-4.h (subprocesses):
5368 * s/hpux10-20.h (subprocesses):
5369 * s/gnu-linux.h (subprocesses):
5370 * s/cygwin.h (subprocesses):
5371 * s/bsd-common.h (subprocesses):
5372 * s/aix4-2.h (subprocesses):
5373 * s/darwin.h (subprocesses): Do not define, defined by default now.
5374
5375 * Makefile.in (C_SWITCH_SITE, LD_SWITCH_SITE): Remove, unused.
5376 Remove all references.
5377 (temacs): Add GNUstep specific ld flags.
5378
5379 * nsterm.m (syms_of_nsterm): Provide ns, not ns-windowing,
5380 similarly to what X does.
5381
5382 2008-07-22 Adrian Robert <Adrian.B.Robert@gmail.com>
5383
5384 * nsfns.m (x-list-fonts): Remove.
5385 (syms_of_nsfns): Drop the x-list-fonts declaration.
5386 * nsterm.m: Get rid of remaining "//" comments.
5387
5388 2008-07-22 Chong Yidong <cyd@stupidchicken.com>
5389
5390 * xselect.c (Fx_rotate_cut_buffers_internal): Doc fix.
5391
5392 * nsselect.m (Fns_selection_exists_p, Fns_selection_owner_p)
5393 (Fx_get_selection_internal, Fns_rotate_cut_buffers_internal)
5394 (Fns_own_selection_internal, Fx_disown_selection_internal)
5395 (Fns_get_cut_buffer_internal, Fns_store_cut_buffer_internal):
5396
5397 * nsmenu.m (Fns_reset_menu, Fx_popup_menu): Change to use 'doc: /*
5398 ... */' style of docstrings. Doc fixes.
5399
5400 2008-07-22 Dan Nicolaescu <dann@ics.uci.edu>
5401
5402 * terminfo.c (UP, BC, PC): Undo previous change.
5403
5404 * nsfns.m: Rename ns prefixed functions/variables to the
5405 corresponding x versions. Update references.
5406
5407 2008-07-22 Stefan Monnier <monnier@iro.umontreal.ca>
5408
5409 * syntax.c (char_quoted): Check "charpos > beg" before decrementing.
5410
5411 2008-07-22 Dan Nicolaescu <dann@ics.uci.edu>
5412
5413 * nsfns.m (x_set_menu_bar_lines, x_set_tool_bar_lines):
5414 Remove forwarding functions.
5415 (ns_set_menu_bar_lines): Rename to x_set_menu_bar_lines, make
5416 non-static.
5417 (ns_set_tool_bar_lines): Rename to x_set_tool_bar_lines, make
5418 non-static.
5419 (ns_frame_parm_handlers): Use the new names.
5420 (syms_of_nsfns): Move to the end of file.
5421
5422 * nsterm.m (syms_of_nsterm): Move to the end of file.
5423
5424 * dispnew.c (init_display): Remove code for X10.
5425
5426 2008-07-22 Jason Rumney <jasonr@gnu.org>
5427
5428 * w32proc.c (Fw32_long_file_name): Don't append dir separator to
5429 bare drive.
5430
5431 2008-07-22 Adrian Robert <Adrian.B.Robert@gmail.com>
5432
5433 * nsterm.m (syms_of_nsterm): Remove debugging println.
5434
5435 2008-07-22 David Reitter <david.reitter@gmail.com>
5436
5437 * nsfns.m (do_applescript, F_do_applescript): NS version of the
5438 Carbon implementation of the same functionality: execute arbitrary
5439 AppleScript code.
5440
5441 2008-07-21 Adrian Robert <Adrian.B.Robert@gmail.com>
5442
5443 * nsfns.m (Fx_create_frame, Fx_read_file_name, Fx_get_resource)
5444 (Fx_set_resource, Fx_set_alpha, Fx_server_max_request_size)
5445 (Fx_server_vendor, Fx_server_version, Fx_display_screens)
5446 (Fx_display_mm_height, Fx_display_mm_width)
5447 (Fx_display_backing_store, Fx_display_visual_class)
5448 (Fx_display_save_under, Fx_open_connection)
5449 (Fx_close_connection, Fx_hide_emacs, Fx_font_name)
5450 (Fx_list_colors, Fx_perform_service, Fx_color_defined_p)
5451 (Fx_color_values, Fxw_display_color_p, Fx_display_grayscale_p)
5452 (Fx_display_pixel_width, Fx_display_pixel_height)
5453 (Fx_display_usable_bounds, Fx_display_planes)
5454 (Fx_display_color_cells, Vns_icon_type_alist): Change to use 'doc: /*
5455 ... */' style of docstrings.
5456
5457 2008-07-21 Dan Nicolaescu <dann@ics.uci.edu>
5458
5459 * m/mips.h (LOAD_AVE_TYPE, LOAD_AVE_CVT): Do not define, not used
5460 on this platform.
5461 (mips):
5462 * m/iris4d.h (mips): Do not define.
5463 * sysdep.c (init_sys_modes): Use __mips__ instead of mips.
5464
5465 * m/ibmrs6000.h (LD_SWITCH_SITE): Remove.
5466
5467 * image.c:
5468 * nsfns.m:
5469 * nsselect.m:
5470 * nsterm.h:
5471 * nsterm.m: Rename ns prefixed functions/variables to the
5472 corresponding x versions. Update references.
5473
5474 * m/ibms390x.h (NO_REMAP): Do not undefine.
5475
5476 * m/amdx86-64.h: Use SOLARIS2 instead of sun.
5477
5478 2008-07-21 Chong Yidong <cyd@stupidchicken.com>
5479
5480 * nsfns.m: Change NS to Nextstep in docstrings and error messages.
5481 (Fns_create_frame, Fns_read_file_name, Fns_get_resource)
5482 (Fns_set_resource, Fns_set_alpha, Fns_server_max_request_size)
5483 (Fns_server_vendor, Fns_server_version, Fns_display_screens)
5484 (Fns_display_mm_height, Fns_display_mm_width)
5485 (Fns_display_backing_store, Fns_display_visual_class)
5486 (Fns_display_save_under, Fns_open_connection)
5487 (Fns_close_connection, Fns_hide_emacs, Fns_font_name)
5488 (Fns_list_colors, Fns_perform_service, Fns_color_defined_p)
5489 (Fns_color_values, Fxw_display_color_p, Fx_display_grayscale_p)
5490 (Fns_display_pixel_width, Fns_display_pixel_height)
5491 (Fns_display_usable_bounds, Fx_display_planes)
5492 (Fns_display_color_cells, Vns_icon_type_alist): Doc fixes.
5493
5494 2008-07-21 Ami Fischman <ami@fischman.org> (tiny change)
5495
5496 * print.c (print_object): Check print_depth before searching for
5497 circularities.
5498
5499 2008-07-21 Michael Albinus <michael.albinus@gmx.de>
5500
5501 * dbusbind.c (Fdbus_register_signal): Use sprintf + strcat instead
5502 only sprintf.
5503
5504 2008-07-21 Kenichi Handa <handa@m17n.org>
5505
5506 * ftfont.c (adjust_anchor): Check if DeltaValue is not NULL.
5507
5508 2008-07-20 Andreas Schwab <schwab@suse.de>
5509
5510 * syntax.c (find_start_pos, find_start_value)
5511 (find_start_value_byte, find_start_begv, find_defun_start)
5512 (back_comment, scan_sexps_forward): Use EMACS_INT for buffer positions.
5513
5514 2008-07-20 Dan Nicolaescu <dann@ics.uci.edu>
5515
5516 * s/sol2-3.h: Insert contents of s/sol2.h.
5517 (LD_SWITCH_SYSTEM): Remove redundant definition.
5518 * s/sol2.h: Remove, unused.
5519
5520 2008-07-20 Adrian Robert <Adrian.B.Robert@gmail.com>
5521
5522 * nsterm.m (ns_get_color): Recognize HSB,AHSB be synonyms for HSV,AHSV.
5523
5524 2008-07-20 Adrian Robert <Adrian.B.Robert@gmail.com>
5525
5526 * Makefile.in (ns_appdir): Fix typo in find command.
5527
5528 2008-07-20 Dan Nicolaescu <dann@ics.uci.edu>
5529
5530 * m/intel386.h (NO_REMAP): Do no define for USG, not used.
5531
5532 * s/usg5-4.h (LIBS_SYSTEM): Remove, system for which this was
5533 added not supported anymore.
5534
5535 * s/usg5-4-2.h (LIBS_SYSTEM):
5536 * s/sol2.h (LIBS_SYSTEM): Do not undefine.
5537
5538 * s/netbsd.h (GETPGRP_NO_ARG, N_TRELOFF):
5539 * s/lynxos.h (GETPGRP_NO_ARG):
5540 * s/hpux10-20.h (NO_SIOCTL_H):
5541 * s/gnu.h (GETPGRP_NO_ARG):
5542 * s/gnu-linux.h (NO_SIOCTL_H):
5543 * s/freebsd.h (GETPGRP_NO_ARG, N_TRELOFF):
5544 * s/cygwin.h (GETPGRP_NO_ARG):
5545 * s/irix6-5.h (LIBS_SYSTEM, GETPGRP_NO_ARG): Remove, unused.
5546 (C_DEBUG_SWITCH): Remove duplicate definition.
5547
5548 * m/ibms390.h: Remove boilerplate comments.
5549
5550 * sysdep.c (closedir): Use SOLARIS2 instead of sun && USG5_4.
5551
5552 * process.c (HAVE_SERIAL): Consolidate ifdefs.
5553 (wait_reading_process_output): Remove code for SunOS, platform not
5554 supported anymore. Use SOLARIS2 instead of sun.
5555
5556 2008-07-19 Adrian Robert <Adrian.B.Robert@gmail.com>
5557
5558 * font.c (font_open_by_name): Under NS, default lface height to zero.
5559 (font_open_for_lface): Under NS, set size based on frame fontsize.
5560 * nsterm.m (EmacsView-changeFont:): Remove some commented code.
5561 * frame.c (x_set_frame_parameters): Remove HAVE_NS ifdef.
5562
5563 2008-07-19 Adrian Robert <Adrian.B.Robert@gmail.com>
5564
5565 * nsterm.m (ns_antialias_text, ns_use_qd_smoothing)
5566 (ns_use_system_highlight_color): Switch these from DEFVAR_BOOL to
5567 DEFVAR_LISP and change all code accordingly to use Qt/Qnil instead of
5568 YES/NO.
5569 * nsterm.h (prevUseHighlightColor): Make a Lisp_Object.
5570 * nsfont.m (nsfont_draw): Treat ns_use_qd_smoothing as Lisp_Object.
5571 * Makefile.in (clean): Clear out build destination dir.
5572
5573 2008-07-19 Adrian Robert <Adrian.B.Robert@gmail.com>
5574
5575 * Makefile.in (nsgui.h-related dependencies): Remove abbrev, xfns,
5576 xterm, xselect.
5577 * lisp.h: Remove declaration of hash_remove.
5578 * nsgui.h: Remove redefinitions of hash_remove.
5579 * fns.c (hash_remove): Rename to hash_remove_from_table.
5580
5581 2008-07-19 Seiji Zenitani <zenitani@mac.com>
5582
5583 * nsfont.m (nsfont_fmember_to_entity, nsfont_make_fontset_for_font):
5584 strdup() the family UTF8String before modifying it.
5585
5586 2008-07-19 Adrian Robert <Adrian.B.Robert@gmail.com>
5587
5588 * nsterm.m (ns_maybe_dumpglyphs_background): Compare result from
5589 NS_FACE_BACKGROUND with 0 instead of nil.
5590 * nsfont.m (nsfont_draw): Same.
5591
5592 2008-07-19 Chong Yidong <cyd@stupidchicken.com>
5593
5594 * nsfns.m (ns_set_background_color): Fix crash.
5595
5596 2008-07-18 Chong Yidong <cyd@stupidchicken.com>
5597
5598 * Makefile.in (SOME_MACHINE_LISP): Remove ns-carbon-compat.elc.
5599
5600 2008-07-18 Dan Nicolaescu <dann@ics.uci.edu>
5601
5602 * puresize.h (BASE_PURESIZE): Increase to 1240000.
5603
5604 2008-07-17 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
5605
5606 * gtkutil.c: Include <config.h> instead of "config.h".
5607
5608 * lisp.h (Foverlay_buffer): Add EXFUN.
5609
5610 * process.c (create_process) [!WINDOWSNT && FD_CLOEXEC]: Wait for
5611 child process to complete child_setup. Undo 2005-09-21 change.
5612
5613 * s/darwin.h: Mention setsid after vfork.
5614
5615 2008-07-17 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
5616
5617 * Makefile.in (frame.o, keyboard.o, xdisp.o, xfaces.o):
5618 Depend on macgui.h.
5619
5620 * macfns.c (Fx_server_version): Don't use gestaltSystemVersionMajor,
5621 gestaltSystemVersionMinor, or gestaltSystemVersionBugFix.
5622
5623 * macterm.c (keycode_to_xkeysym_table): Add entries for f17, f18,
5624 and f19.
5625 [MAC_OSX] (fn_keycode_to_keycode_table): Likewise.
5626
5627 * macterm.h (gestaltSystemVersionMajor, gestaltSystemVersionMinor)
5628 (gestaltSystemVersionBugFix) [MAC_OS_X_VERSION_MAX_ALLOWED < 1040]:
5629 Remove enumerators.
5630
5631 * mactoolbox.c [USE_MAC_TSM] (mac_handle_text_input_event):
5632 Check if FACE_FROM_ID returns NULL.
5633
5634 2008-07-17 David Robinow <drobinow@gmail.com> (tiny change)
5635
5636 * w32inevt.c (change_frame_size): Remove extern declaration.
5637 (resize_event, maybe_generate_resize_event): Pass SAFE arg to
5638 change_frame_size.
5639
5640 2008-07-17 Adrian Robert <Adrian.B.Robert@gmail.com>
5641
5642 * getloadavg.c: Revert last change (2008-07-15).
5643
5644 2008-07-17 Adrian Robert <Adrian.B.Robert@gmail.com>
5645
5646 * Makefile.in: Replace emacsapp, emacsbindir, emacsappsrc variables
5647 set here with ns_appdir, ns_appresdir, ns_appbindir, ns_appsrc) set
5648 from configure.
5649
5650 2008-07-17 Dan Nicolaescu <dann@ics.uci.edu>
5651
5652 * s/sol2.h:
5653 * s/sol2-4.h: Reorganize conditionals.
5654
5655 * ecrt0.c: Remove code depending on m68000, not used anymore.
5656
5657 * fns.c (hash_remove): Make static.
5658 * lisp.h (hash_remove): Don't prototype.
5659
5660 * m/ibmrs6000.h:
5661 * m/ibms390x.h:
5662 * m/macppc.h: Remove boilerplate comments.
5663
5664 * m/sparc.h (A_TEXT_OFFSET, A_TEXT_SEEK): Remove, only used on
5665 Solaris, which does not need them.
5666
5667 * m/vax.h: Remove comments about unsupported systems.
5668
5669 * s/darwin.h: Reorganize ifdefs.
5670
5671 2008-07-17 Andreas Schwab <schwab@suse.de>
5672
5673 * s/cygwin.h (LIB_STANDARD_LIBSRC): Don't define.
5674
5675 2008-07-17 Stefan Monnier <monnier@iro.umontreal.ca>
5676
5677 Use SDATA. Follow coding convention of placing operators at
5678 beginning of next line rather than end of previous line, and placing
5679 spaces around infix operators.
5680
5681 * Makefile.in: Undef LIB_STANDARD before defining it to silence warning
5682 in case it was defined already.
5683 USE @GNUSTEP_MAKEFILES@ rather than envvars.
5684 * nsterm.m (ns_term_init): Pass Qt and Qnil rather than YES/NO to
5685 ns_default.
5686 (applicationShouldTerminate, setValuesFromPanel): Use EQ to compare
5687 Lisp_Objects.
5688 * nsterm.h (Fx_display_grayscale_p, Fx_display_planes)
5689 (ns_defined_color, ns_color_to_lisp): Declare.
5690 * nsselect.m (ns_handle_selection_request, ns_handle_selection_clear)
5691 (Fns_own_selection_internal): Make the big ugly hack more explicit, so
5692 it's accepted even with USE_LISP_UNION_TYPE.
5693 * nsmenu.m (ns_update_menubar): Use EQ to compare Lisp_Objects.
5694 (update_frame_tool_bar): Remove apparently obsolete tests for
5695 non-integerness of f->tool_bar_lines.
5696 (windowShouldClose, addButton, clicked, runDialogAt): Make the big ugly
5697 hack more explicit, so it's accepted even with USE_LISP_UNION_TYPE.
5698 * nsfont.m (nsfont_driver): Use just 0 rather than an invalid cast.
5699 (nsfont_open): Don't confuse NULL for Qnil.
5700 * nsfns.m (ns_implicitly_set_icon_type): Use EQ to compare Lisp_Objects.
5701 * menu.h (find_and_call_menu_selection):
5702 * menu.c (find_and_call_menu_selection): Use just int for vector size.
5703 (find_and_return_menu_selection): Always return something.
5704 * frame.h: Include dispextern.h for Display_Info.
5705 (display_x_get_resource): Declare.
5706
5707 2008-07-16 Adrian Robert <Adrian.B.Robert@gmail.com>
5708
5709 * syntax.c: Remove stdio.h include accidentally introduced in
5710 Emacs.app commit.
5711 * Makefile.in: Change GNUSTEP to NS_IMPL_GNUSTEP, COCOA to
5712 NS_IMPL_COCOA.
5713 * keyboard.c (handle_async_input, input_available_signal): Remove
5714 BSD4_1 conditional code, introduced accidentally in Emacs.app commit.
5715
5716 2008-07-16 Stefan Monnier <monnier@iro.umontreal.ca>
5717
5718 * nsterm.m (lisp_to_mod): Use parse_solitary_modifier instead.
5719 (ns_lisp_to_color): Don't mess with internal Lisp data fields.
5720 (ns_term_init, ns_term_shutdown, initFrameFromEmacs, ns_list_fonts):
5721 Use SDATA.
5722
5723 * keymap.c: Remove all NS-specific code.
5724 (where_is_preferred_modifier, Vwhere_is_preferred_modifier): New vars.
5725 (preferred_sequence_p): Rename from ascii_sequence_p; pay attention to
5726 where_is_preferred_modifier, return a different value depending on how
5727 preferred is the binding.
5728 (where_is_internal): Adjust accordingly.
5729 (Fwhere_is_internal): Refresh where_is_preferred_modifier.
5730 Adjust to new preferred_sequence_p.
5731 (syms_of_keymap): Declare `where-is-preferred-modifier'.
5732 * keyboard.c (parse_solitary_modifier): Not static any more.
5733 * keyboard.h (parse_solitary_modifier): Declare.
5734
5735 2008-07-16 Andreas Schwab <schwab@suse.de>
5736
5737 * Makefile.in (SOME_MACHINE_LISP): Remove easy-mmode, fix spelling
5738 of easymenu.
5739
5740 2008-07-16 Chong Yidong <cyd@stupidchicken.com>
5741
5742 * xdisp.c (move_it_in_display_line): Account for word wrap, so
5743 that we don't move off the line.
5744
5745 2008-07-16 Stefan Monnier <monnier@iro.umontreal.ca>
5746
5747 * keyboard.c (Qsuper): Remove.
5748 (parse_menu_item): Don't call where_is_internal specially for NS.
5749
5750 2008-07-16 Dan Nicolaescu <dann@ics.uci.edu>
5751
5752 * s/gnu-linux.h: Remove boilerplate comments.
5753
5754 * m/alpha.h (__ELF__): Consolidate conditions.
5755
5756 * m/m68k.h (linux): Use GNU_LINUX instead.
5757 Remove boilerplate comments.
5758
5759 * m/intel386.h: Undo refactoring from previous change.
5760 (LIB_STANDARD): All systems that define USG define LIB_STANDARD
5761 too, remove dead code.
5762 (linux): Use GNU_LINUX instead.
5763
5764 2008-07-16 Jason Rumney <jasonr@gnu.org>
5765
5766 * w32gui.h: Repeat 26 June changes lost by last change.
5767
5768 2008-07-16 Dan Nicolaescu <dann@ics.uci.edu>
5769
5770 * systty.h: Remove code for Aix on 386, unsupported platform.
5771
5772 * s/ms-w32.h: Remove boilerplate comments.
5773 (fcloseall, fgetchar, flushall, fputchar, getw, putw): Remove, unused.
5774
5775 * s/gnu-linux.h (TERM): Remove support.
5776 (HAVE_SYSVIPC): Remove, unused.
5777 (A_TEXT_OFFSET, A_TEXT_SEEK, ADJUST_EXEC_HEADER): Remove, not used
5778 for this system.
5779
5780 * process.c: Remove support for IRIS, unused.
5781 Remove support for TERM, not relevant anymore.
5782
5783 * unexalpha.c (DEFAULT_ENTRY_ADDRESS): Remove, replace the only
5784 used with the definition.
5785
5786 * s/aix4-2.h (static): Do not undef.
5787
5788 * m/ibmrs6000.h: Remove code depending on USG5_4, this file is
5789 only used on Aix.
5790 (HAVE_SYSVIPC): Remove, unused.
5791
5792 * m/hp800.h (CANNOT_DUMP): Do not undef.
5793
5794 * m/alpha.h: Fix comment.
5795
5796 * s/usg5-4.h (HAVE_SYSVIPC): Remove, unused.
5797 (USG_SHARED_LIBRARIES): Remove, only used in unexec.c which is not
5798 used by this configuration.
5799 * emacs.c: Remove code depending on USG_SHARED_LIBRARIES.
5800 * unexec.c: Remove code depending on HPUX and
5801 USG_SHARED_LIBRARIES, not used with this file. Remove code
5802 depending on IRIS, unused. Remove if 0-ed code.
5803
5804 * s/template.h: Remove comments about static.
5805
5806 * sysdep.c: Remove code depending on NEED_PTEM_H, unused.
5807 Remove if 0-ed code.
5808 (baud_convert): Don't depend on BAUD_CONVERT, all definitions the
5809 were the same as the default.
5810 * s/vms.h (BAUD_CONVERT): Remove, same as the default.
5811 Remove boilerplate comments.
5812 * s/hpux10-20.h (BAUD_CONVERT): Remove, same as the default.
5813 (HAVE_SYSVIPC): Remove, unused.
5814 (LD_SWITCH_SYSTEM_TEMACS): Simplify, hp9000s700 not supported anymore.
5815
5816 * m/ia64.h (PNTR_COMPARISON_TYPE): Remove, same as the default.
5817 Remove boilerplate comments.
5818 * m/amdx86-64.h (PNTR_COMPARISON_TYPE): Remove, same as the default.
5819 Remove boilerplate comments.
5820 * m/ibms390x.h (PNTR_COMPARISON_TYPE): Remove, same as the default.
5821 Remove boilerplate comments.
5822 * lisp.h (PNTR_COMPARISON_TYPE): Define it unconditionally.
5823
5824 * m/intel386.h (DATA_SEG_BITS): Remove definitions, only used on
5825 USG systems which do not use DATA_SEG_BITS.
5826 Refactor code. Remove boilerplate comments.
5827
5828 * m/ibms390.h:
5829 * m/m68k.h:
5830 * s/bsd-common.h:
5831 * s/cygwin.h:
5832 * s/darwin.h:
5833 * s/freebsd.h:
5834 * s/gnu.h:
5835 * s/msdos.h: Remove boilerplate comments.
5836
5837 * m/iris4d.h: Remove boilerplate comments and code for systems that
5838 do not use this file.
5839 (IRIS_4D): Remove, unused.
5840
5841 * m/mips.h: Remove boilerplate comments and code for systems that
5842 do not use this file.
5843 (SIGN_EXTEND_CHAR):
5844 * m/arm.h (SIGN_EXTEND_CHAR): Remove, unused.
5845 * unexmips.c: Remove file, unused.
5846
5847 * editfns.c (Fuser_full_name): Replace the only use of
5848 USER_FULL_NAME with its value.
5849 * config.in: Regenerate.
5850
5851 2008-07-16 David Reitter <david.reitter@gmail.com>
5852
5853 * Makefile.in: Add ns-win, ns-carbon-compat, easy-mmode and
5854 easy-menu to SOME_MACHINE_LISP for the new NeXTstep port.
5855
5856 2008-07-16 Glenn Morris <rgm@gnu.org>
5857
5858 * emacs.c (system-type): Doc fix.
5859
5860 2008-07-15 Stefan Monnier <monnier@iro.umontreal.ca>
5861
5862 * keyboard.c (parse_menu_item): Don't use cachelist, even under NS.
5863 If the cache doesn't work, let's fix it, rather than work around it.
5864
5865 2008-07-15 Adrian Robert <Adrian.B.Robert@gmail.com>
5866
5867 * Makefile.in: Correct additions for nsfont.o in last commit.
5868 * nsfont.m: New file (forgot last commit).
5869
5870 2008-07-15 Chris Hall <chris@web.workinglinux.com> (tiny change)
5871
5872 * callproc.c (set_initial_environment): Initialize
5873 Vprocess_environment under CANNOT_DUMP (fixes crash when
5874 batch-compiling for bootstrap).
5875
5876 2008-07-15 Chris Hall <chris@web.workinglinux.com> (tiny change)
5877 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
5878
5879 (make_initial_frame): Call init_frame_faces(f) in CANNOT_DUMP case --
5880 fix crash due to different init order.
5881
5882 2008-07-15 Adrian Robert <Adrian.B.Robert@gmail.com>
5883
5884 Changes and additions for NeXTstep windowing system (Cocoa and
5885 GNUstep) support.
5886
5887 * Makefile.in:
5888 * config.in: Support defines and build commands for NS port.
5889 * blockinput.h (BLOCK_INPUT, UNBLOCK_INPUT, TOTALLY_UNBLOCK_INPUT)
5890 (UNBLOCK_INPUT_TO): Don't use under NS unless EXPERIMENTAL_CONTROL_G.
5891 * dispextern.h: Include nsgui.h and add needed typedefs under NS
5892 windowing.
5893 (struct face): Add synth_ital field.
5894 * dispnew.c: Include nsterm.h when compiling under NS windowing.
5895 (init_display): Initialize Vinitial_window_system to "ns" when so
5896 compiled.
5897 * emacs.c: Include GSConfig.h when compiling under GNUstep.
5898 (display_arg): Use under NS.
5899 (main): Under NS, allocate autorelease pool and handle command line
5900 args. Move syms_of_xmenu() call under #ifdef HAVE_X_WINDOWS.
5901 (standard_args): Add NS-specific args.
5902 (shut_down_emacs): Shut down NS terminal if compiled under NS.
5903 * font.c (DEFAULT_ENCODING): New variable.
5904 (font_find_for_lface): Use it.
5905 (syms_of_font): Load syms_of_nsfont under NS.
5906 * font.h: Declare nsfont_driver when compiled under NS.
5907 * fontset.c: When compiling under NS, include nsterm.h.
5908 (fontset_from_font): Autoconstruct fontset under NS.
5909 * frame.c (various): Under NS, include nsterm.h, add Qns window system
5910 symbol, document and use it.
5911 (do_switch_frame): When for_deletion under Cocoa, add
5912 Fraise_frame(Qnil).
5913 (x_set_frame_parameters): Ensure font attribute changes are picked up.
5914 (x_get_arg): Allow "yes" and "no" as boolean values.
5915 (syms_of_frame): Declare Qns. Init Vdefault_frame_scroll_bars to
5916 Qright under Cocoa.
5917 (focus-follows-mouse): Default to 0 under NS.
5918 * frame.h (enum output_method): Add output_ns.
5919 (external_tool_bar, external_menu_bar, FRAME_EXTERNAL_TOOLBAR)
5920 (FRAME_EXTERNAL_MENU_BAR): Use under NS.
5921 (FRAME_WINDOW_P): NS-specific definition.
5922 * fringe.c (max_used_fringe_bitmap): Make public.
5923 * getloadavg.c (mach/mach.h): Include it under NeXT descendant OS's.
5924 (getloadavg): Use NeXT code under descendant OS's.
5925 * image.c (includes and header section, x_create_bitmap_from_data)
5926 (x_create_bitmap_from_file, free_bitmap_record, image_background)
5927 (image_background_transparent, x_clear_image_1)
5928 (x_create_x_image_and_pixmap, x_destroy_x_image, x_put_x_image)
5929 (Create_Pixmap_From_Bitmap_Data, xpm_load_image, lookup_rgb_color)
5930 (x_to_xcolors, x_from_xcolors, x_disable_image)
5931 (x_build_heuristic_mask, syms_of_image): Add NS support parallel to
5932 other GUIs, including XPM support using code originally written for
5933 Carbon GUI.
5934 (png_load, jpeg_load, tiff_load, gif_load): Add implementations
5935 using NS API.
5936 (image_ascent): Use font metrics macros instead of direct struct field
5937 access.
5938 * keyboard.c (includes): Add nsterm.h when compiling under NS.
5939 (kbd_buffer_get_event): Handle NS as other GUI windowing systems.
5940 Also, handle NS as GTK for menu bar purposes.
5941 (make_lispy_event): Handle NS as other GUI windowing systems, and as X
5942 toolkit where they differ.
5943 (parse_menu_item): Prefer keybindings using 'super' modifier. Also,
5944 use cachelist, still needed under NS.
5945 * keyboard.h (ENCODE_MENU_STRING, XtPointer, Boolean): Handle as NTGUI.
5946 (struct widget_value): Define it here for menu.c.
5947 * keymap.c (includes): Include modifier internals.
5948 (lisp_to_mod, modifier_sequence_p): New functions, compiled only under
5949 NS.
5950 (where_is_internal, Fwhere_is_internal): When compiled under NS, add
5951 support for preferring sequences using certain modifiers, specified by
5952 the FIRSTONLY argument.
5953 * lisp.h (hash_remove): Rename to avoid name clash when compiling
5954 under NS GNUstep implementation.
5955 (USE_LSB_TAG): Use it under Cocoa when compiling under NS.
5956 * lread.c (init_lread): Treat NS as HAVE_CARBON for turn_off_warning.
5957 * menu.c: Include nsterm.h under NS.
5958 (single_menu_item, parse_single_submenu, xmalloc_widget_value)
5959 (free_menubar_widget_tree_value, update_submenu_strings)
5960 (find_and_call_menu_selection): Treat NS as X and NT.
5961 (find_and_return_menu_selection): New function, used for popup menus.
5962 * nsgui.h:
5963 * nsterm.h:
5964 * nsfns.m:
5965 * nsimage.m:
5966 * nsmenu.m:
5967 * nsselect.m:
5968 * nsterm.m: New files.
5969 * process.c (wait_reading_process_output): Under NS, call ns_select()
5970 instead of plain select().
5971 * syntax.c (char_quoted): Under NS, avoid a crash when called near
5972 beginning of buffer.
5973 * sysselect.h (init_process): Rename when compiling under Cocoa to
5974 avoid name conflict.
5975 * termhooks.h (display_info): Add ns_display_info to union.
5976 * terminal.c (Fterminal_live_p): Add ns to terminal types.
5977 * terminfo.c (UP, BC, PC): Don't declare when compiling under NS in
5978 COCOA environment.
5979 * unexnext.c: Update to work with mach API on Mac OS X, and to use new
5980 unexec() signature. (Note, this will dump, but the resulting file
5981 crashes; unexosx is used instead; keeping around for reference and
5982 possible aid in getting dump working under GNUstep.)
5983 * w32gui.h (button_type, widget_value): Remove definitions (now in
5984 keyboard.h).
5985 * window.c: Include nsterm.h when compiling under NS.
5986 * xdisp.c (includes): Include nsterm.h when compiling under NS.
5987 (set_frame_menubar, update_menu_bar, display_menu_bar): Handle NS as
5988 other GUI windowing systems.
5989 (update_tool_bar, redisplay_tool_bar, redisplay_window): Handle NS as
5990 GTK.
5991 (x_consider_frame_title): Under NS, set icon type and frame
5992 modified-state indicator; use ns_set_name_as_filename() when using
5993 formatted title.
5994 (update_window_cursor): Make public when compiling under NS.
5995 (display_hourglass_p, syms_of_xdisp, hourglass_shown_p)
5996 (hourglass_atimer, Vhourglass_delay
5997 * xfaces.c (header section, init_frame_faces, clear_font_table)
5998 (defined_color, unload_color, x_face_list_fonts)
5999 (prepare_face_for_display): Add NS support parallel to other GUIs.
6000 Emulate GCs like other non-X GUIs.
6001 (split_font_name): Don't lowercase font name under NS.
6002 (merge_face_ref, Finternal_set_lisp_face_attribute): Support stippling
6003 under NS.
6004 * s/darwin.h: Add support for compilation under NS.
6005
6006 2008-07-15 Jason Rumney <jasonr@gnu.org>
6007
6008 * w32fns.c (Fx_create_frame): Remove duplicate unwind_protect.
6009 (w32_show_hourglass): Rename from show_hourglass.
6010 (w32_hide_hourglass): Rename from hide_hourglass.
6011 (DEFAULT_HOURGLASS_DELAY): Revert from last change.
6012 (Vhourglass_delay): Declare extern.
6013 (hourglass_started): Remove.
6014
6015 * xdisp.c (Vhourglass_delay): Remove static.
6016 (hourglass_started, start_hourglass, cancel_hourglass):
6017 Don't include these versions on WINDOWSNT.
6018
6019 2008-07-15 Adrian Robert <Adrian.B.Robert@gmail.com>
6020
6021 * dispextern.h (hourglass_shown_p, hourglass_atimer): New extern
6022 variables (formerly in xfns.c).
6023 (show_hourglass, hide_hourglass): New prototypes (same).
6024 * xdisp.c (display_hourglass_p, hourglass_shown_p, hourglass_atimer)
6025 (Vhourglass_delay, DEFAULT_HOURGLASS_DELAY): New variables (formerly
6026 in xfns.c).
6027 (syms_of_xdisp): Declare/initialize display-hourglass,
6028 hourglass-delay. Initialize hourglass_atimer, hourglass_shown_p.
6029 (hourglass_started, start_hourglass, cancel_hourglass): New functions,
6030 formerly in xfns.c.
6031 * xfns.c (display_hourglass_p, hourglass_atimer, hourglass_shown_p)
6032 (Vhourglass_delay, DEFAULT_HOURGLASS_DELAY, hourglass_started)
6033 (start_hourglass, cancel_hourglass): Remove.
6034 (show_hourglass, hide_hourglass): Remove prototypes and static
6035 modifiers.
6036 (syms_of_xfns): Remove display-hourglass, hourglass-delay,
6037 hourglass_atimer, hourglass_shown_p declaration/initialization.
6038 * macfns.c (display_hourglass_p, hourglass_atimer, hourglass_shown_p)
6039 (Vhourglass_delay, DEFAULT_HOURGLASS_DELAY, hourglass_started)
6040 (start_hourglass, cancel_hourglass): Remove.
6041 (show_hourglass, hide_hourglass): Remove prototypes and static
6042 modifiers.
6043 (syms_of_macfns): Remove display-hourglass, hourglass-delay,
6044 hourglass_atimer, hourglass_shown_p declaration/initialization.
6045 * w32fns.c (display_hourglass_p, Vhourglass_delay)
6046 (DEFAULT_HOURGLASS_DELAY): Remove.
6047 (syms_of_w32fns): Remove display-hourglass, hourglass-delay,
6048 hourglass_shown_p declaration/initialization.
6049
6050 2008-07-14 Jason Rumney <jasonr@gnu.org>
6051
6052 * w32fns.c (w32_get_arg): Remove wrapper function.
6053 (w32_createwindow, x_icon, x_create_tip_frame): Use x_get_arg
6054 directly.
6055 (Fx_create_frame): Sync with xfns.c. Use x_get_arg directly.
6056
6057 2008-07-14 Kenichi Handa <handa@m17n.org>
6058
6059 * xfont.c (xfont_open): Add workaround for X's bug.
6060
6061 2008-07-14 Emanuele Giaquinta <emanuele.giaquinta@gmail.com> (tiny change)
6062
6063 * fontset.c: Include <stdio.h> unconditionally.
6064
6065 2008-07-13 Michael Albinus <michael.albinus@gmx.de>
6066
6067 * dbusbind.c (Fdbus_register_signal): Allow also signal arguments
6068 for filtering.
6069
6070 2008-07-13 Dan Nicolaescu <dann@ics.uci.edu>
6071
6072 * s/vms.h: Use __GNUC__ instead of _GNUC_.
6073
6074 * m/macppc.h:
6075 * m/alpha.h: Use GNU_LINUX instead of LINUX. Reorganize conditionals.
6076
6077 * m/ibms390x.h (XINT, XUINT): Don't define, same as the default
6078 (SPECIAL_EMACS_INT):
6079 * m/ia64.h (SPECIAL_EMACS_INT):
6080 * m/amdx86-64.h (SPECIAL_EMACS_INT):
6081 * s/gnu.h (NLIST_STRUCT):
6082 * s/aix4-2.h (X11R5_INHIBIT_I18N):
6083 * s/gnu-linux.h (LINUX):
6084 * s/msdos.h (HAVE_FACES):
6085 * s/ms-w32.h (HAVE_FACES): Don't define, unused.
6086
6087 * systty.h:
6088 * sysdep.c (setup_pty): Don't depend on SYSV_PTYS, it is not used
6089 anymore.
6090
6091 2008-07-12 Dan Nicolaescu <dann@ics.uci.edu>
6092
6093 * syswait.h: Remove old if 0 code. Do not define WAITTYPE, it was
6094 always defined as int.
6095
6096 * s/netbsd.h (HAVE_UNION_WAIT, HAVE_WAIT_HEADER, WAIT_USE_INT):
6097 * s/gnu.h (HAVE_WAIT_HEADER, WAIT_USE_INT, HAVE_UNION_WAIT):
6098 * s/gnu-linux.h (HAVE_WAIT_HEADER):
6099 * s/freebsd.h (HAVE_WAIT_HEADER):
6100 * s/bsd-common.h (HAVE_UNION_WAIT):
6101 * s/aix4-2.h (HAVE_WAIT_HEADER):
6102 * m/mips.h (HAVE_UNION_WAIT):
6103 * s/usg5-4.h (HAVE_WAIT_HEADER, WAITTYPE): Do not define, not used.
6104 (COFF, static): Do not define, they are undefined later in the file.
6105
6106 * process.c (update_status): Don't use a union.
6107 (status_convert):
6108 (sigchld_handler): Use int instead of WAITTYPE.
6109
6110 2008-07-12 Chong Yidong <cyd@stupidchicken.com>
6111
6112 * indent.c (Fvertical_motion): Restore hscroll before moving to
6113 goal column.
6114
6115 2008-07-11 Dan Nicolaescu <dann@ics.uci.edu>
6116
6117 * lisp.h: Remove left over code.
6118
6119 2008-07-11 Andreas Schwab <schwab@suse.de>
6120
6121 * lisp.h: Fix logic in last change.
6122
6123 * menu.h: New file.
6124 * menu.c: Include it.
6125 * xmenu.c: Likewise.
6126 * Makefile.in: Update dependencies.
6127
6128 2008-07-11 Kenichi Handa <handa@m17n.org>
6129
6130 * fontset.c (fontset_from_font): Cancel the previous change.
6131
6132 2008-07-11 Dan Nicolaescu <dann@ics.uci.edu>
6133
6134 * lisp.h:
6135 * w32heap.c:
6136 * emacs.c:
6137 * alloc.c: Replace all references of NO_UNION_TYPE with
6138 USE_LISP_UNION_TYPE.
6139
6140 * m/xtensa.h (NO_UNION_TYPE):
6141 * m/vax.h (NO_UNION_TYPE):
6142 * m/template.h (NO_UNION_TYPE):
6143 * m/sparc.h (NO_UNION_TYPE):
6144 * m/mips.h (NO_UNION_TYPE):
6145 * m/macppc.h (NO_UNION_TYPE):
6146 * m/m68k.h (NO_UNION_TYPE):
6147 * m/iris4d.h (NO_UNION_TYPE):
6148 * m/intel386.h (NO_UNION_TYPE):
6149 * m/ibms390x.h (NO_UNION_TYPE):
6150 * m/ibms390.h (NO_UNION_TYPE):
6151 * m/ibmrs6000.h (NO_UNION_TYPE):
6152 * m/ia64.h (NO_UNION_TYPE):
6153 * m/hp800.h (NO_UNION_TYPE):
6154 * m/arm.h (NO_UNION_TYPE):
6155 * m/amdx86-64.h (NO_UNION_TYPE):
6156 * m/alpha.h (NO_UNION_TYPE): Remove definition, all platform were
6157 defining it the same.
6158
6159 2008-07-10 Chong Yidong <cyd@stupidchicken.com>
6160
6161 * xdisp.c (move_it_to): Backtrack if past the edge of a wrapped line.
6162
6163 2008-07-10 Dan Nicolaescu <dann@ics.uci.edu>
6164
6165 * fileio.c:
6166 * sysdep.c
6167 * systty.h:
6168 * m/ibmrs6000.h:
6169 * m/iris4d.h:
6170 * s/aix4-2.h:
6171 * s/freebsd.h:
6172 * s/gnu-linux.h:
6173 * s/hpux10-20.h:
6174 * s/hpux11.h:
6175 * s/netbsd.h:
6176 * s/sol2-3.h:
6177 * s/sol2-4.h:
6178 * s/sol2.h:
6179 * s/usg5-4.h:
6180 * s/vms.h: Remove references to unused variables.
6181
6182 2008-07-10 Andreas Schwab <schwab@suse.de>
6183
6184 * ftfont.c (ftfont_resolve_generic_family): Remove foundry from
6185 pattern before matching the generic family.
6186
6187 2008-07-10 Dan Nicolaescu <dann@ics.uci.edu>
6188
6189 * unexec.c:
6190 * s/vms.h:
6191 * s/usg5-4-2.h:
6192 * s/sol2-5.h:
6193 * s/freebsd.h:
6194 * s/darwin.h: Remove dead code.
6195
6196 * m/template.h:
6197 * m/sparc.h:
6198 * m/mips.h:
6199 * m/m68k.h:
6200 * m/iris4d.h:
6201 * m/intel386.h:
6202 * m/ibms390x.h:
6203 * m/ibms390.h:
6204 * m/ia64.h:
6205 * m/hp800.h:
6206 * m/arm.h:
6207 * m/amdx86-64.h: Remove dead code and references to unused
6208 and compiler defined symbols.
6209
6210 * unexmips.c:
6211 * unexelf.c: Remove references to desupported systems.
6212
6213 * m/powermac.h: Remove file, it is now identical to m/macppc.h.
6214
6215 * m/powermac.h: Remove boilerplate comments.
6216 (NO_REMAP): Remove unused definition.
6217
6218 * m/macppc.h (UNEXEC, NO_TERMIO): Don't define, the s/ files
6219 define them.
6220
6221 2008-07-10 Kenichi Handa <handa@m17n.org>
6222
6223 * xfont.c (xfont_open): Log the reason of failure.
6224
6225 2008-07-09 Stefan Monnier <monnier@iro.umontreal.ca>
6226
6227 * fontset.c (fontset_get_font_group):
6228 * font.c (font_check_otf): Specify argument types.
6229
6230 2008-07-09 Kenichi Handa <handa@m17n.org>
6231
6232 * coding.c (detect_coding_utf_8): Set detect_info->found only when
6233 non-ASCII char is found.
6234
6235 * fontset.c (fontset_compare_rfontdef): Fix plus/minus.
6236 (reorder_font_vector): Change the arg preferred_family to font.
6237 Prefer the spec matching with font.
6238 (fontset_get_font_group): New function.
6239 (fontset_find_font): Change the format of an element of a realized
6240 fontset. Use fontset_get_font_group.
6241 (fontset_font): Try the current fontset, the default fontset, the
6242 fallbacks of the current fontset, and the fallbacks of the default
6243 fontset in this order.
6244 (face_for_char): Delete the shortcut to use the current font.
6245 (fontset_from_font): Don't set fonts for Latin in the fontset.
6246
6247 * font.h (font_make_object, font_match_p): Adjust prototypes.
6248
6249 * ftfont.h [FT_BDF_H]: Include FT_BDF_H.
6250
6251 * font.c (font_make_object): New arg entity and pixelsize.
6252 (font_check_otf_features, font_check_otf): New functions.
6253 (font_match_p): Check :lang, :script, and :otf properties.
6254
6255 * xfont.c (xfont_open): Adjust it for the change of
6256 font_make_object.
6257 (xfont_text_extents): Fix initial setting of metrics.
6258
6259 * ftfont.c (struct ftfont_info): New member index, delete member
6260 fc_charset_idx. Make the member order compatible with struct
6261 xftfont_info.
6262 (fc_charset_table): Change charset names to registry names.
6263 (ftfont_pattern_entity): Delete the args registry and
6264 fc_charset_idx. Change the value of :font-entity property
6265 to (FONTNAME . INDEX). Always set :registry property to
6266 `iso10646-1'.
6267 (struct ftfont_cache_data): New struct.
6268 (ftfont_lookup_cache): New arg for_face.
6269 (ftfont_get_fc_charset, ftfont_get_otf): New functions.
6270 (ftfont_driver): Set the member otf_capability.
6271 (ftfont_get_charset): Adjust it for the change of
6272 fc_charset_table.
6273 (OTF_TAG_SYM): New macro.
6274 (ftfont_spec_pattern): Delete the arg fc_charset_idx. Adjust it
6275 for the change of fc_charset_table.
6276 (ftfont_list): Adjust it for the change of ftfont_spec_pattern and
6277 ftfont_pattern_entity. Add FC_INDEX to objset.
6278 (ftfont_match): Adjust it for the change of ftfont_spec_pattern
6279 and ftfont_pattern_entity.
6280 (ftfont_open): Adjust it for the change of ftfont_lookup_cache,
6281 font_make_object, struct ftfont_info.
6282 (ftfont_has_char): Use ftfont_get_fc_charset.
6283 (ftfont_otf_features, ftfont_otf_capability): New functions.
6284 (ftfont_shape): Use ftfont_get_otf.
6285 (ftfont_text_extents): Fix initial setting of metrics.
6286
6287 * xftfont.c (struct xftfont_info): New member ft_size. Make the
6288 member order compatible with struct ftfont_info.
6289 (xftfont_open): Add FC_CHARSET to the pattern. Set
6290 xftfont_info->ft_size. Don't unlock the face. Check BDF
6291 properties if appropriate.
6292 (xftfont_close): Unlock the face.
6293 (xftfont_anchor_point, xftfont_shape): Deleted.
6294 (syms_of_xftfont): Don't set members anchor_point and shape of
6295 xftfont_driver.
6296
6297 * w32uniscribe.c (uniscribe_open): Adjust it for the change of
6298 font_make_object.
6299
6300 * w32font.c (w32font_open): Adjust it for the change of
6301 font_make_object.
6302 (w32font_open_internal): Don't set properties of font_object here.
6303
6304 2008-07-08 Chong Yidong <cyd@stupidchicken.com>
6305
6306 * macfns.c (x_create_tip_frame):
6307 * w32fns.c (x_create_tip_frame):
6308 * xfns.c (x_create_tip_frame): Pass parameter argument to
6309 face-set-after-frame-default.
6310
6311 * xfaces.c (Finternal_merge_in_global_face): Save merged
6312 attributes for the default face back into the face vector.
6313
6314 2008-07-08 Andreas Schwab <schwab@suse.de>
6315
6316 * fontset.h: Declare fontset_from_font. Don't declare
6317 new_fontset_from_font and fontset_from_font_name.
6318 * xterm.c: Include "fontset.h".
6319 * Makefile.in (xterm.o): Update dependencies.
6320
6321 2008-07-08 Glenn Morris <rgm@gnu.org>
6322
6323 * m/sparc.h: Define __sparc__ rather than sparc. (Bug#507.)
6324 * alloc.c, ecrt0.c: Use __sparc__ rather than sparc.
6325
6326 2008-07-07 Chong Yidong <cyd@stupidchicken.com>
6327
6328 * frame.c (Qinhibit_face_set_after_frame_default): Var deleted.
6329 (x_set_frame_parameters): Don't bind it.
6330
6331 2008-07-07 Juanma Barranquero <lekktu@gmail.com>
6332
6333 * w32fns.c (map_w32_filename): Declare extern.
6334
6335 2008-07-07 Jason Rumney <jasonr@gnu.org>
6336
6337 * w32term.c (WS_EX_LAYERED): Define if not already.
6338
6339 2008-07-06 Chong Yidong <cyd@stupidchicken.com>
6340
6341 * xfaces.c (set_font_frame_param): Don't try to set the font
6342 parameter if it is still unspecified in the lface.
6343
6344 2008-07-05 Chong Yidong <cyd@stupidchicken.com>
6345
6346 * xfaces.c (Finternal_merge_in_global_face): Don't realize default
6347 face if it didn't already exist.
6348
6349 * xdisp.c (try_window_id): Give up if word-wrapping is on.
6350
6351 2008-07-05 Andreas Schwab <schwab@suse.de>
6352
6353 * xdisp.c (get_it_property): Move out of HAVE_WINDOW_SYSTEM section.
6354
6355 2008-07-05 Chong Yidong <cyd@stupidchicken.com>
6356
6357 * xdisp.c (IT_OVERFLOW_NEWLINE_INTO_FRINGE): Turn it off if
6358 word-wrapping.
6359 (IT_DISPLAYING_WHITESPACE): New macro.
6360 (move_it_in_display_line_to): Handle MOVE_TO_X requests properly
6361 when word-wrapping. Simplify word-wrapping logic. Use correct
6362 pixel positions when saving copies of the iterator.
6363 (display_line): Use proper wrap point if the last character on a
6364 line was preceded by whitespace.
6365
6366 2008-07-04 Stefan Monnier <monnier@iro.umontreal.ca>
6367
6368 * Makefile.in (${etc}DOC): Depend on ${lisp} rather than ${shortlisp}.
6369
6370 2008-07-04 Kenichi Handa <handa@m17n.org>
6371
6372 * fns.c (Fstring_to_unibyte): Delete the arg ACCEPT-LATIN-1.
6373
6374 * lisp.h: EXFUN adjusted for the change of Fstring_to_unibyte.
6375
6376 2008-07-02 Jason Rumney <jasonr@gnu.org>
6377
6378 * xfns.c (syms_of_xfns): Only define x-select-font when both
6379 HAVE_FREETYPE and USE_GTK.
6380
6381 * xdisp.c (next_element_from_display_vector): Move assignment out
6382 of if statement.
6383
6384 2008-07-02 Toru Tsuneyoshi <t_tuneyosi@hotmail.com>
6385
6386 * lisp.h (Qdelete_file, Qdelete_directory): Declare extern.
6387
6388 * fileio.c (delete_by_moving_to_trash, Qmove_file_to_trash): New vars.
6389 (syms_of_fileio): Initialize and export them.
6390 (Fdelete_directory, Fdelete_file): Optionally delete via trash.
6391
6392 * w32fns.c (FOF_NO_CONNECTED_ELEMENTS): Define if not already.
6393 (Fsystem_move_file_to_trash): New function.
6394 (syms_of_w32fns): Export it to lisp.
6395
6396 2008-07-01 Jason Rumney <jasonr@gnu.org>
6397
6398 * w32font.c (w32font_text_extents): Don't count overhang as part
6399 of width.
6400
6401 2008-06-30 Miles Bader <miles@gnu.org>
6402
6403 * dispextern.h (struct glyph, struct it, struct iterator_stack_entry):
6404 Add `avoid_cursor_p' field.
6405
6406 * xdisp.c (push_it, pop_it): Save/restore avoid_cursor_p field.
6407 (set_cursor_from_row): Skip glyphs with avoid_cursor_p set.
6408 (append_glyph, append_composite_glyph, produce_image_glyph)
6409 (append_stretch_glyph): Initialize avoid_cursor_p.
6410 (get_it_property): Rename from `get_line_height_property'.
6411 (x_produce_glyphs): Use get_it_property.
6412 (handle_line_prefix, push_display_prop): New functions.
6413 (display_line, move_it_in_display_line_to): Handle line/wrap prefixes.
6414 (Vwrap_prefix, Qwrap_prefix, Vline_prefix, Qline_prefix):
6415 New variables.
6416 (syms_of_xdisp): Initialize them.
6417
6418 2008-06-30 Kenichi Handa <handa@m17n.org>
6419
6420 * xftfont.c (xftfont_open): Don't call FcConfigSubstitute and
6421 XftDefaultSubstitute (they are called in XftFontMatch).
6422 (xftfont_open): Fix args to ftfont_font_format.
6423
6424 * ftfont.c (fc_charset_table): New member lang.
6425 (ftfont_resolve_generic_family): New arg pattern.
6426 (ftfont_spec_pattern): Check fc_charset_table[]->lang.
6427 (ftfont_list): Call ftfont_resolve_generic_family with `pattern'.
6428 (ftfont_open): Fix args to ftfont_font_format.
6429 (ftfont_font_format): New arg filename.
6430
6431 2008-06-30 Chong Yidong <cyd@stupidchicken.com>
6432
6433 * xfaces.c (Finternal_merge_in_global_face): If default face was
6434 modified, realize it again. Update the font face attribute.
6435
6436 2008-06-29 Jason Rumney <jasonr@gnu.org>
6437
6438 * w32term.c (x_set_frame_alpha): Fix logic.
6439
6440 2008-06-29 Kenichi Handa <handa@m17n.org>
6441
6442 * fontset.c (Finternal_char_font): Return font-object instead of
6443 font-name.
6444
6445 * composite.c (get_composition_id): Fix the width calculation for TAB.
6446
6447 2008-06-29 Stefan Monnier <monnier@iro.umontreal.ca>
6448
6449 * indent.c (Fvertical_motion): Properly handle float column arg.
6450
6451 2008-06-28 Jason Rumney <jasonr@gnu.org>
6452
6453 * w32term.c (pfnGetFontUnicodeRanges): Remove unused function pointer.
6454 (pfnSetLayeredWindowAttributes): New function pointer.
6455 (w32_initialize): Initialize it when supported.
6456 (x_set_frame_alpha): New function.
6457
6458 * w32fns.c (Fx_create_frame): Initialize frame parameter `alpha'.
6459 (w32_frame_parm_handlers): Set alpha handler.
6460
6461 * frame.c (x_set_alpha) [HAVE_NTGUI]: Call x_set_frame_alpha.
6462
6463 2008-06-27 Jason Rumney <jasonr@gnu.org>
6464
6465 * w32fns.c (x_to_w32_font, w32_to_x_font, x_to_w32_weight)
6466 (w32_to_x_weight, w32_to_all_x_charsets): Remove obsolete functions.
6467 (w32_to_x_charset, x_to_w32_charset)
6468 (Qw32_charset_ansi, Qw32_charset_symbol, Qw32_charset_default)
6469 (Qw32_charset_shiftjis, Qw32_charset_hangeul, Qw32_charset_johab)
6470 (Qw32_charset_chinesebig5, Qw32_charset_gb2312, Qw32_charset_oem)
6471 (Qw32_charset_easteurope, Qw32_charset_turkish, Qw32_charset_baltic)
6472 (Qw32_charset_russian, Qw32_charset_arabic, Qw32_charset_greek)
6473 (Qw32_charset_hebrew, Qw32_charset_vietnamese, Qw32_charset_thai)
6474 (Qw32_charset_mac, Vw32_charset_info_alist): Move to w32font.c.
6475 (Qw32_charset_unicode): Remove.
6476 (syms_of_w32fns): Update for above changes.
6477
6478 * w32font.c (w32_to_x_charset, x_to_w32_charset)
6479 (Qw32_charset_ansi, Qw32_charset_symbol, Qw32_charset_default)
6480 (Qw32_charset_shiftjis, Qw32_charset_hangeul, Qw32_charset_johab)
6481 (Qw32_charset_chinesebig5, Qw32_charset_gb2312, Qw32_charset_oem)
6482 (Qw32_charset_easteurope, Qw32_charset_turkish, Qw32_charset_baltic)
6483 (Qw32_charset_russian, Qw32_charset_arabic, Qw32_charset_greek)
6484 (Qw32_charset_hebrew, Qw32_charset_vietnamese, Qw32_charset_thai)
6485 (Qw32_charset_mac, Vw32_charset_info_alist): Move from w32fns.c.
6486 (syms_of_w32font): Update for above changes.
6487
6488 2008-06-27 Dan Nicolaescu <dann@ics.uci.edu>
6489
6490 * s/usg5-4.h: Fix previous change: keep the correct branch of a
6491 removed #if.
6492 (USG_SHARED_LIBRARIES): Remove duplicate definition.
6493
6494 2008-06-26 Juanma Barranquero <lekktu@gmail.com>
6495 Eli Zaretskii <eliz@gnu.org>
6496
6497 * makefile.w32-in (LOCAL_FLAGS):
6498 Don't include WINDOWSNT, DOS_NT and _UCHAR_T.
6499
6500 * sysdep.c (_spawnlp, _getpid):
6501 Declare with explicit _cdecl instead of _CRTAPI1.
6502
6503 * editfns.c (Fget_internal_run_time):
6504 Check for WINDOWSNT with #ifdef, not #if.
6505
6506 2008-06-26 Jason Rumney <jasonr@gnu.org>
6507
6508 * w32font.h (FONT_HANDLE, FONT_TEXTMETRIC): New macros.
6509
6510 * w32term.c (x_draw_glyph_string_foreground)
6511 (x_draw_composite_glyph_string_foreground): Sync with xterm.c.
6512 Use FONT_HANDLE macro.
6513 (x_draw_glyph_string): Use FONT_TEXTMETRIC macro.
6514
6515 * w32uniscribe.c (uniscribe_otf_capability, uniscribe_shape)
6516 (uniscribe_encode_char): Use FONT_HANDLE macro.
6517
6518 * w32font.c (Fx_select_font): Use FONT_HANDLE macro.
6519 (w32font_text_extents): Use precast w32_font.
6520 (w32font_close): Free cached metrics.
6521 (w32font_open_internal): Allocate space for name on stack.
6522
6523 2008-06-26 Chong Yidong <cyd@stupidchicken.com>
6524
6525 * xdisp.c (extend_face_to_end_of_line): Fix last change.
6526
6527 2008-06-26 Jason Rumney <jasonr@gnu.org>
6528
6529 * w32term.h (FONT_AVG_WIDTH): Remove obsolete macro.
6530 (CP_8BIT, CP_UNICODE, CP_UNKNOWN): Remove obsolete constants.
6531
6532 2008-06-26 Juanma Barranquero <lekktu@gmail.com>
6533
6534 * Makefile.in (SOME_MACHINE_OBJECTS): Remove w32bdf.o.
6535
6536 2008-06-26 Jason Rumney <jasonr@gnu.org>
6537
6538 * w32bdf.c, w32bdf.h: Remove obsolete files.
6539
6540 * makefile.w32-in: Remove refs to w32bdf.h and w32bdf.c.
6541
6542 * w32gui.h: Don't include w32bdf.h.
6543 (XCharStruct, enum w32_char_font_type, W32FontStruct):
6544 Remove obsolete font support.
6545
6546 * w32font.h (struct w32font_info): Remove compat_w32_font.
6547 Add hfont member.
6548 (FONT_COMPAT): Remove obsolete macro.
6549
6550 * w32font.c (w32font_close): Remove compat code. Delete hfont member.
6551 (w32font_encode_char, w32font_text_extents): Use new hfont member.
6552 (w32font_open_internal): Remove compat code. Set new hfont member.
6553 (Fx_select_font): Use new hfont member.
6554
6555 * w32uniscribe.c (uniscribe_otf_capability, uniscribe_shape)
6556 (uniscribe_encode_char): Use new hfont member.
6557
6558 * w32term.c (x_draw_glyph_string_foreground)
6559 (x_draw_composite_glyph_string_foreground): Use new hfont member.
6560 (x_draw_glyph_string): Use metrics in w32font_info.
6561
6562 2008-06-26 Kenichi Handa <handa@m17n.org>
6563
6564 * xdisp.c (handle_auto_composed_prop): Fix for the terminal case.
6565
6566 2008-06-26 Dan Nicolaescu <dann@ics.uci.edu>
6567
6568 * unexnext.c:
6569 * m/ews4800.h:
6570 * m/hp9000s300.h:
6571 * m/ibm370aix.h:
6572 * m/mips-siemens.h:
6573 * m/ncr386.h:
6574 * m/next.h:
6575 * m/pmax.h:
6576 * m/powerpcle.h:
6577 * m/tandem-s2.h:
6578 * s/386bsd.h:
6579 * s/bsd386.h:
6580 * s/bsd4-1.h:
6581 * s/bsd4-2.h:
6582 * s/bsdos2-1.h:
6583 * s/bsdos2.h:
6584 * s/bsdos3.h:
6585 * s/bsdos4.h:
6586 * s/nextstep.h:
6587 * s/ultrix4-3.h:
6588 * s/usg5-0.h:
6589 * s/usg5-2-2.h:
6590 * s/usg5-2.h:
6591 * s/usg5-4-3.h:
6592 * s/ux4800.h:
6593 * s/uxpds.h:
6594 * s/uxpv.h: Remove support for obsolete systems.
6595 * s/hpux.h, s/hpux10.h, s/hpux8.h, s/hpux9.h, s/hpux9shr.h:
6596 Remove, insert contents in s/hpux10-20.h.
6597 * s/aix3-1.h, s/aix3-2-5.h, s/aix3-2.h, s/aix4-1.h, s/aix4.h:
6598 Remove, insert contents in s/aix4-2.h.
6599 * s/usg5-3.h: Remove, insert contents in s/usg5-4.h.
6600 * s/bsd4-3.h: Rename to ...
6601 * s/bsd-common.h: ... this.
6602 * data.c:
6603 * doc.c:
6604 * ecrt0.c:
6605 * emacs.c:
6606 * fileio.c:
6607 * floatfns.c:
6608 * keyboard.c:
6609 * mem-limits.h:
6610 * print.c:
6611 * process.c:
6612 * sysdep.c:
6613 * syssignal.h:
6614 * systty.h:
6615 * syswait.h:
6616 * term.c:
6617 * unexec.c:
6618 * unexelf.c:
6619 * unexhp9k800.c:
6620 * m/hp800.h:
6621 * m/ibmrs6000.h:
6622 * m/mips.h:
6623 * m/vax.h:
6624 * s/darwin.h:
6625 * s/freebsd.h:
6626 * s/gnu.h:
6627 * s/ms-w32.h:
6628 * s/msdos.h:
6629 * s/netbsd.h:
6630 * s/template.h: Remove references to obsolete variables.
6631
6632 * Makefile.in: Add dependencies for all unexec files.
6633 (admindir): Remove unused variable.
6634 (UNEXEC_SRC): Remove references.
6635
6636 2008-06-25 Chong Yidong <cyd@stupidchicken.com>
6637
6638 * xfns.c (x_default_font_parameter): If Xft is available, first
6639 try Monospace-12 for the default font.
6640
6641 2008-06-25 Jason Rumney <jasonr@gnu.org>
6642
6643 * xdisp.c (get_glyph_face_and_encoding): Encode invalid glyphs as 0.
6644
6645 2008-06-25 Stefan Monnier <monnier@iro.umontreal.ca>
6646
6647 * bytecode.c (Fbyte_code): Disable debugging code that doesn't compile.
6648
6649 * buffer.c (syms_of_buffer): Remove default-word-wrap.
6650
6651 2008-06-25 Juanma Barranquero <lekktu@gmail.com>
6652
6653 * xdisp.c (syms_of_xdisp) <truncate-partial-width-windows>: Doc fix.
6654 <scroll-conservatively>: Fix typo in docstring.
6655
6656 * xselect.c (Fx_send_client_event): Doc fix.
6657
6658 2008-06-25 Kenichi Handa <handa@m17n.org>
6659
6660 * xfaces.c (Fx_list_fonts): Call Flist_fonts with the arg PREFER.
6661
6662 * font.c (font_parse_fcname): Remove unused variables.
6663 (font_sort_entites): Delete the arg SPEC. Caller changed.
6664 Fix for the case of ! best_only.
6665 (font_delete_unmatched): Check DPI and AVGWIDTH too.
6666
6667 * lisp.h (Fstring_to_unibyte): EXFUN it.
6668
6669 * character.h (str_to_unibyte): Extern it.
6670
6671 * character.c (str_to_unibyte): New function.
6672
6673 * fns.c (Fstring_to_unibyte): New function.
6674 (syms_of_fns): Defsubr it.
6675
6676 2008-06-24 Kenichi Handa <handa@m17n.org>
6677
6678 * font.c (font_score): Even if the PIXEL_SIZE is the same, check
6679 DPI too.
6680 (font_sort_entites): Setup prefer_prop[FONT_DPI_INDEX] too.
6681
6682 2008-06-24 Andreas Schwab <schwab@suse.de>
6683
6684 * Makefile.in (${lispsource}loaddefs.el): Rename from
6685 ../lisp/loaddefs.el.
6686 (bootstrap-clean): Do what distclean does but don't remove
6687 Makefile.
6688 (distclean): Depend on bootstrap-clean and remove Makefile.
6689
6690 2008-06-24 Chong Yidong <cyd@stupidchicken.com>
6691
6692 * buffer.h (struct buffer): New member word_wrap.
6693
6694 * buffer.c (syms_of_buffer): New variables default-word-wrap and
6695 word-wrap.
6696 (init_buffer_once): Initialize them.
6697
6698 * dispextern.h (struct it): Replace bool truncate_lines_p with a
6699 line_wrap enum possessing three possible values.
6700
6701 * termopts.h: Replace truncate_partial_width_windows with
6702 Vtruncate_partial_width_windows.
6703
6704 * dispnew.c (direct_output_for_insert): Avoid direct output when
6705 inserting a space with word wrap on.
6706
6707 * indent.c (compute_motion): Obey integer values of
6708 truncate-partial-width-windows.
6709
6710 * xdisp.c (Vtruncate_partial_width_windows): New Lisp_Object,
6711 replacing truncate_partial_width_windows.
6712 (init_iterator): If Vtruncate_partial_width_windows is an integer,
6713 truncate only if the window width is below that integer.
6714 (start_display, resize_mini_window, produce_stretch_glyph)
6715 (display_string, move_it_in_display_line_to): Use line_wrap.
6716 (back_to_previous_visible_line_start, reseat_1): Reset
6717 string_from_display_prop_p.
6718 (display_line): Extend default face to end of line when wrapping.
6719
6720 2008-06-24 Kim F. Storm <storm@cua.dk>
6721
6722 * xdisp.c (display_line, move_it_in_display_line_to): Add ability
6723 to wrap continued lines at word boundaries.
6724
6725 2008-06-24 Jason Rumney <jasonr@gnu.org>
6726
6727 * font.c (Ffont_face_attributes): Multiply pixel size before point
6728 conversion to avoid multiplying rounding error.
6729
6730 2008-06-23 Jason Rumney <jasonr@gnu.org>
6731
6732 * w32term.c (x_draw_glyph_string_background)
6733 (x_draw_glyph_string): Remove old bdf font code.
6734
6735 * w32term.h (FONT_TYPE_FOR_UNIBYTE, FONT_TYPE_FOR_MULTIBYTE): Remove.
6736
6737 2008-06-22 Kenichi Handa <handa@m17n.org>
6738
6739 * font.c (font_find_for_lface): Try the adstyle specified in
6740 the property of LFACE_FONT of LFACE (if any).
6741
6742 2008-06-21 Seiji Zenitani <zenitani@mac.com>
6743 Ryo Yoshitake <ryo@shiftmode.net>
6744
6745 * xterm.c (x_set_frame_alpha): Add x_catch_errors for bug#437.
6746
6747 2008-06-22 Stefan Monnier <monnier@iro.umontreal.ca>
6748
6749 * Makefile.in (${lisp} ${SOME_MACHINE_LISP}, ../lisp/loaddefs.el):
6750 Use $(BOOTSTRAPEMACS) rather than witness-emacs.
6751 (bootstrap-emacs${EXEEXT}): Merge witness-emacs into it.
6752 (witness-emacs): Remove.
6753 (lisp, shortlisp): Move loaddefs.el earlier.
6754 (mostlyclean): Forget about witness-emacs.
6755
6756 2008-06-22 Glenn Morris <rgm@gnu.org>
6757
6758 * Makefile.in (witness-emacs): Depend on temacs${EXEEXT}.
6759 (.SUFFIXES): Declare .el.elc as a suffix rule, for non-GNU makes.
6760
6761 2008-06-21 Stefan Monnier <monnier@iro.umontreal.ca>
6762
6763 * Makefile.in (PRECOMP): Remove.
6764 (${lisp} ${SOME_MACHINE_LISP}): Remove pseudo dependency on PRECOMP.
6765 (witness-emacs): Run `compile-first'.
6766 (.el.elc): Use the new compile-onefile target.
6767
6768 2008-06-21 Kenichi Handa <handa@m17n.org>
6769
6770 * xftfont.c (xftfont_open): Handle QCembolden only when
6771 FC_EMBOLDEN is defined.
6772
6773 2008-06-21 Andreas Schwab <schwab@suse.de>
6774
6775 * Makefile.in (witness-emacs): Use ../lisp, not $(lispsource).
6776 (.el.elc): Likewise.
6777
6778 2008-06-21 Miles Bader <miles@gnu.org>
6779
6780 * Makefile.in (../lisp/loaddefs.el): Build autoloads in the lisp
6781 build dir, not the lisp source dir.
6782
6783 2008-06-21 Stefan Monnier <monnier@iro.umontreal.ca>
6784
6785 * Makefile.in (emacs${EXEEXT}): Link the new emacs to bootstrap-emacs.
6786 (bootstrapclean): Remove.
6787 (.el.elc): New rule.
6788 (PRECOMP): New var.
6789 (../lisp/subdirs.el): Remove.
6790 (bootstrap-emacs${EXEEXT}): Remove subdirs.el and charpro.el dependency.
6791 (witness-emacs): New target.
6792 (mostlyclean): Remove witness-emacs as well.
6793 (../lisp/loaddefs.el, ${lisp} ${SOME_MACHINE_LISP}):
6794 Add witness-emacs dependency.
6795
6796 2008-06-20 Chong Yidong <cyd@stupidchicken.com>
6797
6798 * font.c (Ffont_face_attributes): Omit key-attribute pairs not
6799 defined by the font.
6800
6801 2008-06-20 Stefan Monnier <monnier@iro.umontreal.ca>
6802
6803 * Makefile.in (emacs${EXEEXT}): Depend on the machine-specific files.
6804 (bootstrap-clean): New target that keeps TAGS around.
6805 (../lisp/subdirs.el, ../lisp/loaddefs.el): New targets.
6806 (bootstrap-emacs${EXEEXT}): Depend on subdirs.el.
6807
6808 2008-06-20 Jason Rumney <jasonr@gnu.org>
6809
6810 * w32fns.c, w32term.c, w32term.h, w32gui.h [OLD_FONT]:
6811 Remove obsolete font code.
6812
6813 * w32font.c (font_matches_spec): Use csb bitfield from font signature
6814 to determine language support.
6815
6816 2008-06-20 Stefan Monnier <monnier@iro.umontreal.ca>
6817
6818 * sysdep.c (cfsetspeed): New fun extracted from the code.
6819 (cfmakeraw): Move before first use.
6820
6821 2008-06-20 Angelo Graziosi <angelo.graziosi@alice.it> (tiny change)
6822
6823 * sysdep.c (cfmakeraw): Provide fallback implementation.
6824 (serial_configure): Provide fallback implementation of cfsetspeed.
6825
6826 2008-06-20 Kenichi Handa <handa@m17n.org>
6827
6828 * xftfont.c (xftfont_open): Add FOUNDRY, SPACING, DPI, SCALABLE to
6829 the pattern.
6830
6831 * fontset.c (fontset_from_font): Copy font_spec before changing
6832 the elements.
6833
6834 * xfns.c (x_default_font_parameter): Try "monospace-12" too.
6835
6836 2008-06-20 Stefan Monnier <monnier@iro.umontreal.ca>
6837
6838 * w32fns.c, xfns.c (x_default_font_parameter): Only set `font-param'
6839 for explicit `font' parameters.
6840
6841 * frame.c (x_set_font): Remove unexplained call to fix inf-recursion.
6842
6843 2008-06-19 Kenichi Handa <handa@m17n.org>
6844
6845 * frame.c: Include <ctype.h>.
6846 (x_set_font_backend): Allow spacing characters in the X resource
6847 for FontBackend.
6848
6849 2008-06-19 Stefan Monnier <monnier@iro.umontreal.ca>
6850
6851 * w32fns.c, xfns.c (Qfont_param): New var.
6852 (syms_of_w32fns): Initialize it.
6853 (x_default_font_parameter): Record explicit `font' into
6854 `font-parameter'.
6855
6856 2008-06-18 Kenichi Handa <handa@m17n.org>
6857
6858 * font.c (font_parse_xlfd): Fix previous change.
6859 (font_parse_fcname): Don't use :fc-unknown-spec.
6860 (FRAME_X_DISPLAY_INFO): Be sure to have at least 1 pixel height.
6861 (Fcopy_font_spec): Preserve the order of elements in FONT_EXTRA.
6862 (font_add_log): Prepend the driver name to the resulting fonts.
6863
6864 * ftfont.c (ftfont_pattern_entity): New arg extra. Caller changed.
6865 (ftfont_spec_pattern): Don't check QCfc_unknown_spec and QCname.
6866 (ftfont_list) [FC_FONTFORMAT]: Include FC_FONTFORMAT in objset.
6867
6868 * xftfont.c (QChinting , QCautohint, QChintstyle, QCrgba)
6869 (QCembolden): New variables.
6870 (syms_of_xftfont): DEFSYM them.
6871 (xftfont_open): Call XftFontMatch. Don't trust the result of
6872 XftTextExtents8 if the pixel_size is less than 5.
6873
6874 2008-06-18 Andreas Schwab <schwab@suse.de>
6875
6876 * font.c (Ffont_face_attributes): Only define if HAVE_WINDOW_SYSTEM.
6877 (syms_of_font): Only defsubr if HAVE_WINDOW_SYSTEM.
6878
6879 2008-06-18 Jason Rumney <jasonr@gnu.org>
6880
6881 * w32font.c (w32font_list, w32font_match): Add logging.
6882
6883 * w32uniscribe.c (uniscribe_list, uniscribe_match): Add logging.
6884
6885 2008-06-17 Chong Yidong <cyd@stupidchicken.com>
6886
6887 * font.c (font_parse_fcname): Store divider characters for
6888 unknown-spec list. For known key symbols, intern using correct
6889 symbol name.
6890
6891 2008-06-17 Kenichi Handa <handa@m17n.org>
6892
6893 * xfaces.c (realize_default_face): If the frame is not on window
6894 system, set the fontset of face to nil.
6895
6896 2008-06-17 Naohiro Aota <nao.aota@gmail.com> (tiny change)
6897
6898 * fontset.c (fontset_pattern_regexp): Escape some reg-expr characters.
6899
6900 2008-06-16 Juanma Barranquero <lekktu@gmail.com>
6901
6902 * dispextern.h (lookup_non_ascii_face, split_font_name_into_vector)
6903 (build_font_name_from_vector): Delete externs.
6904
6905 * xfaces.c (struct font_name): Don't declare.
6906
6907 2008-06-16 Stefan Monnier <monnier@iro.umontreal.ca>
6908
6909 * font.c (font_unparse_gtkname): Use EQ to compare Lisp_Objects.
6910
6911 2008-06-16 Chong Yidong <cyd@stupidchicken.com>
6912
6913 * font.c (font_parse_fcname): Fix handling of unknown-spec string.
6914
6915 2008-06-16 Juanma Barranquero <lekktu@gmail.com>
6916
6917 * font.c (Ffont_spec): Fix usage in docstring.
6918 (Ffont_face_attributes): Doc fix.
6919
6920 2008-06-16 Andreas Schwab <schwab@suse.de>
6921
6922 * font.c (Ffont_face_attributes): Fix definition.
6923
6924 2008-06-16 Jason Rumney <jasonr@gnu.org>
6925
6926 * font.h (font_style_symbolic_from_value): Remove.
6927
6928 * font.c (font_style_symbolic_from_value): Remove.
6929 (font_style_symbolic): Revert to pre 2008-06-13 version.
6930
6931 * w32font.c (w32_to_fc_weight): New function.
6932 (w32font_full_name, logfont_to_fcname): Use it.
6933
6934 2008-06-16 Kenichi Handa <handa@m17n.org>
6935
6936 * font.c (font_check_object): Delete it.
6937 (font_clear_cache): Check if a font-object is alive.
6938 (font_open_entity): Likewise. Set FONT_OBJLST_INDEX of a
6939 font-object to nil.
6940 (font_close_object): Don't check FONT_CLOSE_OBJECT.
6941 (font_at): Don't call font_check_object.
6942 (Ffont_get): Return a symbol for :weight, :slant, and :width.
6943
6944 2008-06-16 Katsumi Yamaoka <yamaoka@jpl.org>
6945
6946 * puresize.h (BASE_PURESIZE): Increase to 1230000.
6947
6948 2008-06-16 Chong Yidong <cyd@stupidchicken.com>
6949
6950 * font.c (font_parse_fcname): Correctly parse KEY=VAL values.
6951
6952 2008-06-15 Chong Yidong <cyd@stupidchicken.com>
6953
6954 * font.c (font_parse_fcname): Only one decimal point.
6955 (font_unparse_fcname): Handle data in family and foundry indices
6956 as symbols, not strings.
6957 (font_unparse_gtkname, Ffont_face_attributes): New functions.
6958
6959 * xfns.c (Fx_select_font): Give GTK font dialog the default font name.
6960
6961 * font.h (font_unparse_gtkname): Add prototype.
6962
6963 2008-06-15 Naohiro Aota <nao.aota@gmail.com> (tiny change)
6964
6965 * fontset.c (fontset_pattern_regexp): Escape `+' characters in pattern.
6966
6967 2008-06-15 Andreas Schwab <schwab@suse.de>
6968
6969 * font.c (font_update_drivers): Fix crash when no drivers match.
6970
6971 2008-06-15 Stefan Monnier <monnier@iro.umontreal.ca>
6972
6973 * xfns.c (Fx_create_frame): internal-border-width default to 0 for Gtk.
6974 * gtkutil.c (xg_create_frame_widgets): Don't set internal_border_width.
6975
6976 2008-06-14 Stefan Monnier <monnier@iro.umontreal.ca>
6977
6978 * xdisp.c (syms_of_xdisp): Default underline-minimum-offset to 1.
6979
6980 2008-06-13 Stefan Monnier <monnier@iro.umontreal.ca>
6981
6982 * process.c (Fserial_process_configure, Fprocess_send_eof):
6983 Use EQ to compare Lisp_Objects.
6984
6985 2008-06-13 Jason Rumney <jasonr@gnu.org>
6986
6987 * w32fns.c (Fw32_select_font): Remove old font API function.
6988
6989 * w32font.c (logfont_to_fcname): New function.
6990 (Fx_select_font): New font dialog function compatible with
6991 GTK/fontconfig version.
6992
6993 * font.c (font_style_symbolic_from_value): New function.
6994 (font_style_symbolic): Use it.
6995
6996 * font.h (font_style_symbolic_from_value): Declare new function.
6997
6998 2008-06-13 Juanma Barranquero <lekktu@gmail.com>
6999
7000 * font.c (syms_of_font) <font-weight-table, font-slant-table>:
7001 <font-width-table>: Fix typos in docstrings.
7002
7003 2008-06-13 Daniel Engeler <engeler@gmail.com>
7004
7005 These changes add serial port access.
7006 * process.c: Add HAVE_SERIAL.
7007 (Fdelete_process, Fprocess_status, Fset_process_buffer)
7008 (Fset_process_filter, Fset_process_sentinel, Fprocess_contact)
7009 (list_processes_1, select_wrapper, Fstop_process)
7010 (Fcontinue_process, Fprocess_send_eof, kill_buffer_processes)
7011 (status_notify): Modify to handle serial processes.
7012 [HAVE_SERIAL] (Fserial_process_configure)
7013 [HAVE_SERIAL] (make_serial_process_unwind, Fmake_serial_process):
7014 New functions.
7015 * process.h (struct Lisp_Process): Add `type'.
7016 * sysdep.c [HAVE_TERMIOS] (serial_open, serial_configure):
7017 New functions.
7018 * w32.c (_sys_read_ahead, sys_read, sys_write): Modify to handle
7019 serial ports.
7020 (serial_open, serial_configure): New functions.
7021 * w32.h: Add FILE_SERIAL.
7022 (struct _child_process): Add ovl_read, ovl_write.
7023
7024 2008-06-13 Kenichi Handa <handa@m17n.org>
7025
7026 * dispextern.h (enum lface_attribute_index): New member
7027 LFACE_FOUNDRY_INDEX.
7028
7029 * font.c (font_score): Delete arg alternate_families. Check only
7030 weight, slant, width, and size. Ignore the difference of alias
7031 style symbols.
7032 (font_sort_entites): Adjust for the above change. Reflect the
7033 order of font-driver to scores.
7034 (font_list_entities): Don't check alternate_familes here.
7035 (font_clear_prop): Handle foundry.
7036 (font_update_lface): Don't parse "foundry-family" form here.
7037 Handle FONT_FOUNDRY_INDEX.
7038 (font_find_for_lface): Likewise. Handle alternate families here.
7039 If registry is nil, try iso8859-1 and ascii-0.
7040 (font_open_for_lface): Pay attention to size in ENTITY.
7041 (font_open_by_name): Simplify by calling font_load_for_lface.
7042 (free_font_driver_list): Delete it.
7043 (font_update_drivers): Preserve the order of backends.
7044 (syms_of_font): Setting of sort_shift_bits adjusted for the change
7045 of font_score and font_sort_entites.
7046 (font_update_sort_order): Likewise.
7047
7048 * xfaces.c (LFACE_FOUNDRY): New macro.
7049 (check_lface_attrs): Check foundry.
7050 (set_lface_from_font): Don't parse "FOUNDRY-FAMILY" form.
7051 (merge_face_vectors): Check foundry.
7052 (merge_face_ref): Likewise.
7053 (Finternal_set_lisp_face_attribute): Likewise.
7054 (x_update_menu_appearance): Likewise.
7055 (Finternal_get_lisp_face_attribute): Likewise.
7056 (lface_hash): Likewise.
7057 (lface_same_font_attributes_p): Likewise.
7058 (x_supports_face_attributes_p): Likewise.
7059 (tty_supports_face_attributes_p): Likewise.
7060 (Finternal_set_alternative_font_family_alist): Intern strings.
7061 (Finternal_set_alternative_font_registry_alist): Downcase strings.
7062 (realize_default_face): Set LFACE_FOUNDRY (lface).
7063
7064 * xfns.c (Fx_create_frame, x_create_tip_frame): Register X
7065 font-driver at first.
7066
7067 * ftfont.c (ftfont_font_format) [! FC_FONTFORMAT]: Declare "int len;".
7068
7069 2008-06-12 Emanuele Giaquinta <emanuele.giaquinta@gmail.com> (tiny change)
7070
7071 * lread.c (Fload): Use xfree, not free on saved_doc_string.
7072
7073 2008-06-12 Jim Meyering <meyering@redhat.com>
7074
7075 Make unexec_free handle NULL the same way free does.
7076 * unexmacosx.c (unexec_free): Ignore a NULL argument.
7077
7078 2008-06-12 Stefan Monnier <monnier@iro.umontreal.ca>
7079
7080 * character.h (CHAR_TO_BYTE_SAFE): New macro.
7081 * character.c (Fmultibyte_char_to_unibyte): Obey the docstring.
7082 * regex.c (RE_CHAR_TO_UNIBYTE): Use the new macro.
7083 (WEAK_ALIAS): Simplify.
7084 * syntax.c (skip_chars): Don't mark non-byte chars in the fastmap
7085 when searching a unibyte buffer.
7086
7087 2008-06-12 Chong Yidong <cyd@stupidchicken.com>
7088
7089 * xfns.c (Fx_select_font): Rename from x-font-dialog.
7090
7091 2008-06-12 Juanma Barranquero <lekktu@gmail.com>
7092
7093 * w32font.c: Include ctype.h.
7094
7095 2008-06-11 Jason Rumney <jasonr@gnu.org>
7096
7097 * w32font.c (w32font_encode_char): Detect missing glyphs that are
7098 misreported as space.
7099 (add_font_entity_to_list): Support unicode-bmp and unicode-sip
7100 as aliases for registry iso10646-1.
7101
7102 2008-06-11 Stefan Monnier <monnier@iro.umontreal.ca>
7103
7104 * buffer.c (clone_per_buffer_values): Skip `name'.
7105
7106 2008-06-11 Chong Yidong <cyd@stupidchicken.com>
7107
7108 * font.c (font_parse_fcname): Fix last change; accept decimal
7109 points in font size.
7110
7111 2008-06-10 Jason Rumney <jasonr@gnu.org>
7112
7113 * w32uniscribe.c (add_opentype_font_name_to_list):
7114 Skip non unicode fonts.
7115
7116 2008-06-10 Chong Yidong <cyd@stupidchicken.com>
7117
7118 * xfns.c (Fx_font_dialog): New function.
7119
7120 * gtkutil.c (xg_dialog_response_cb): Rename from
7121 xg_file_response_callback.
7122 (pop_down_dialog): Rename from pop_down_file_dialog.
7123 (xg_get_file_name): Callers changed.
7124 (xg_get_font_name): New function.
7125
7126 * gtkutil.h (xg_get_font_name): Insert prototype.
7127
7128 2008-06-10 Stefan Monnier <monnier@iro.umontreal.ca>
7129
7130 * xdisp.c (underline_minimum_offset): Rename from xterm.c's
7131 x_underline_minimum_display_offset.
7132 (syms_of_xdisp): Declare it here rather than in xterm.c.
7133 * dispextern.h (underline_minimum_offset): Declare it.
7134 * w32term.c (x_draw_glyph_string): Use it.
7135 * xterm.c (x_underline_minimum_display_offset): Move to xdisp.c.
7136 (syms_of_xterm): Don't declare it any more.
7137 (x_draw_glyph_string): Adjust to the new name.
7138
7139 2008-06-10 David De La Harpe Golden <david@harpegolden.net> (tiny change)
7140
7141 * xterm.c (x_underline_minimum_display_offset): New var.
7142 (x_draw_glyph_string): Use it.
7143 (syms_of_xterm): Declare it.
7144
7145 2008-06-10 Chong Yidong <cyd@stupidchicken.com>
7146
7147 * font.c (font_parse_fcname): Accept GTK-style font names too.
7148
7149 2008-06-10 Stefan Monnier <monnier@iro.umontreal.ca>
7150
7151 * dired.c (file_name_completion): Don't return t if the match is exact
7152 but with different capitalization.
7153 * minibuf.c (Ftry_completion): Simplify.
7154
7155 * window.c (Vwindow_point_insertion_type): New var.
7156 (set_window_buffer): Use it.
7157 (syms_of_window): Init and export it to Lisp.
7158
7159 2008-06-10 Kenichi Handa <handa@m17n.org>
7160
7161 * font.h (font_intern_prop): Prototype adjusted.
7162
7163 * font.c (font_intern_prop): New arg force_symbol.
7164 (font_parse_xlfd, font_parse_fcname, font_parse_family_registry):
7165 Adjust for the change of font_intern_prop.
7166
7167 * ftfont.c (ftfont_pattern_entity):
7168 * w32font.c (add_font_name_to_list, w32_enumfont_pattern_entity)
7169 (w32_registry):
7170 * w32uniscribe.c (add_opentype_font_name_to_list): Adjust for
7171 the change of font_intern_prop.
7172
7173 2008-06-09 Juanma Barranquero <lekktu@gmail.com>
7174
7175 * w32menu.c (digest_single_submenu): Declare extern.
7176
7177 2008-06-09 Jason Rumney <jasonr@gnu.org>
7178
7179 * w32term.c (x_make_frame_visible): Use alternate restore flags.
7180
7181 * w32menu.c (Fx_popup_menu): Unwind protect while building menu.
7182 (parse_single_submenu): Remove.
7183 (digest_single_submenu): Remove.
7184 (syms_of_w32menu): Don't initialise variables that have moved
7185 to menu.c.
7186 (set_frame_menubar): Sync with version in xmenu.c.
7187 (w32_menu_show): Sync with xmenu_show in xmenu.c.
7188
7189 * menu.c (single_keymap_panes, push_menu_pane, push_menu_item):
7190 Make static again.
7191
7192 2008-06-09 Jason Rumney <jasonr@gnu.org>
7193
7194 Changes to w32 files related to the move of common menu code
7195 to menu.c on 2008-06-08 by Chong Yidong.
7196
7197 * menu.c [HAVE_NTGUI]: Include w32term.h, move widget related
7198 defs to w32gui.h.
7199 (single_keymap_panes, push_menu_item, push_menu_pane):
7200 Make globally visible.
7201
7202 * w32menu.c (enum button_type, widget_value, local_heap, local_alloc)
7203 (local_free, malloc_widget_value, free_widget_value)
7204 (MENU_ITEMS_ITEM_NAME, MENU_ITEMS_ITEM_ENABLE, MENU_ITEMS_ITEM_VALUE)
7205 (MENU_ITEMS_ITEM_EQUIV_KEY, MENU_ITEMS_ITEM_DEFINITION)
7206 (MENU_ITEMS_ITEM_TYPE, MENU_ITEMS_ITEM_SELECTED, MENU_ITEMS_ITEM_HELP)
7207 (MENU_ITEMS_ITEM_LENGTH, enum menu_item_idx): Remove defs.
7208 (menu_items, menu_items_allocated, menu_items_used)
7209 (menu_items_n_panes, menu_items_submenu_depth): Remove global vars.
7210 (init_menu_items, finish_menu_items, discard_menu_items)
7211 (grow_menu_items, push_submenu_start, push_submenu_end)
7212 (push_left_right_boundary, push_menu_pane, push_menu_item)
7213 (keymap_panes, single_keymap_panes, list_of_panes, list_of_items)
7214 (free_menubar_widget_tree_value, parse_single_submenu)
7215 (update_submenu_strings): Remove functions.
7216 (xmalloc_widget_value): Remove and declare extern.
7217
7218 * makefile.w32-in ($(SRC)/menu.$(O)): New target.
7219 (OBJ1): Build it.
7220
7221 * w32gui.h (widget_value, XtPointer, Boolean, enum button_type)
7222 (local_heap, local_alloc, local_free, malloc_widget_value)
7223 (free_widget_value): Define here.
7224
7225 2008-06-09 Kenichi Handa <handa@m17n.org>
7226
7227 * font.h (Qascii_0): Extern it.
7228
7229 * font.c (Qascii_0): New variable.
7230 (syms_of_font): DEFSYM it.
7231 (font_open_by_name): If the registry "iso8859-1" fails, try also
7232 "ascii-0".
7233
7234 * ftfont.c (ftfont_spec_pattern): Accept the registry `ascii-0'.
7235
7236 2008-06-08 Kenichi Handa <handa@m17n.org>
7237
7238 * .gdbinit (xfont): New command.
7239
7240 2008-06-08 Andreas Schwab <schwab@suse.de>
7241
7242 * menu.c [HAVE_X_WINDOWS]: Include "xterm.h".
7243 * Makefile.in (menu.o): Update dependencies.
7244
7245 * Makefile.in (obj): Always add menu.o.
7246 * emacs.c (main): Always call syms_of_menu.
7247 * keyboard.h: Remove extra #ifdef HAVE_X_WINDOW.
7248
7249 2008-06-08 Chong Yidong <cyd@stupidchicken.com>
7250
7251 * Makefile.in: Compile menu.c.
7252
7253 * lisp.h: Declare syms_of_menu.
7254
7255 * emacs.c (main): Call syms_of_menu.
7256
7257 * keyboard.h: Relocate platform-independent menu definitions from
7258 xmenu.c.
7259
7260 * menu.c: New file. Relocate platform-independent menu
7261 definitions from xmenu.c. Suggested by Adrian Robert.
7262
7263 * xmenu.c: Remove platform-independent menu definitions.
7264 (menu_items menu_items_inuse, menu_items_allocated)
7265 (menu_items_used, menu_items_n_panes)
7266 (menu_items_submenu_depth): Move to keyboard.h.
7267 (init_menu_items, finish_menu_items, unuse_menu_items)
7268 (discard_menu_items, restore_menu_items, save_menu_items)
7269 (grow_menu_items, push_submenu_start, push_submenu_end)
7270 (push_left_right_boundary, push_menu_pane, push_menu_item)
7271 (keymap_panes, single_keymap_panes, single_menu_item)
7272 (list_of_panes, list_of_items, find_and_call_menu_selection)
7273 (xmalloc_widget_value, free_menubar_widget_value_tree)
7274 (parse_single_submenu, digest_single_submenu)
7275 (update_submenu_strings): Move to menu.c.
7276
7277 2008-06-07 Stefan Monnier <monnier@iro.umontreal.ca>
7278
7279 * dispnew.c (Flast_nonminibuf_frame): Handle the NULL case.
7280
7281 2008-06-06 Miles Bader <miles@gnu.org>
7282
7283 * xdisp.c (x_produce_glyphs): Calculate tab width based on current
7284 face, not frame default.
7285
7286 2008-06-05 Martin Rudalics <rudalics@gmx.at>
7287
7288 * window.c (pop_up_windows, pop_up_frames)
7289 (display_buffer_reuse_frames, Vpop_up_frame_function)
7290 (Vdisplay_buffer_function, Veven_window_heights)
7291 (Vspecial_display_buffer_names, Vspecial_display_regexps)
7292 (Vspecial_display_function, Vsame_window_buffer_names)
7293 (Vsame_window_regexps, split_height_threshold)
7294 (Vsplit_window_preferred_function): Move those vars to window.el.
7295 (display_buffer_1, Fspecial_display_p, Fsame_window_p)
7296 (Fdisplay_buffer): Move those functions to window.el.
7297 (syms_of_window): Remove corresponding declarations.
7298 (display_buffer): New function.
7299 (temp_output_buffer_show, Fother_window_for_scrolling): Use it.
7300 * dispnew.c (Flast_nonminibuf_frame): New function.
7301 * buffer.c (Fpop_to_buffer): Move to window.el.
7302
7303 2008-06-05 Stefan Monnier <monnier@iro.umontreal.ca>
7304
7305 * data.c (set_internal): Fix up call to let_shadows_buffer_binding_p.
7306
7307 2008-06-05 Kenichi Handa <handa@m17n.org>
7308
7309 * coding.c (detect_coding): Fix previous change.
7310 (detect_coding_system): Likewise.
7311
7312 2008-06-05 Stefan Monnier <monnier@iro.umontreal.ca>
7313
7314 * character.h (MAKE_CHAR_MULTIBYTE): Check the arg is a (uni)byte.
7315
7316 * keymap.c (Vminibuffer_local_filename_must_match_map):
7317 Rename from Vminibuffer_local_must_match_filename_map.
7318 (syms_of_keymap):
7319 * minibuf.c (Fcompleting_read): Adjust accordingly.
7320 * commands.h: Rename declaration as well.
7321
7322 2008-06-05 Kenichi Handa <handa@m17n.org>
7323
7324 * font.c (Ffont_spec): Don't use font_parse_family_registry for
7325 family name.
7326 (Ffont_put): Likewise.
7327
7328 * fontset.c (fontset_find_font): Call font_open_for_lface with the
7329 current font-spec.
7330
7331 * xfont.c (xfont_list): Don't set registry to iso8859-1 even if it
7332 is unspecified.
7333
7334 * xfaces.c (realize_x_face): If the font-related face attributes
7335 are the same as those of default face, realize a new fontset from
7336 default->fontset.
7337 (Fx_family_fonts): Use font_parse_family_registry instead of Ffont_put.
7338
7339 2008-06-05 Stefan Monnier <monnier@iro.umontreal.ca>
7340
7341 * xdisp.c (move_it_in_display_line_to): Improve the type of its args.
7342 (move_it_in_display_line): New wrapper.
7343
7344 * window.c (window_scroll_pixel_based_preserve_x)
7345 (window_scroll_preserve_hpos, window_scroll_preserve_vpos): New vars.
7346 (window_scroll_pixel_based, window_scroll_line_based):
7347 Use them to preserve column positions.
7348 (syms_of_window): Initialize them.
7349
7350 * indent.c (Fvertical_motion): Extend first arg to allow passing an
7351 (HPOS . VPOS) pair.
7352
7353 * dispextern.h (move_it_in_display_line): Declare.
7354
7355 2008-06-05 Juanma Barranquero <lekktu@gmail.com>
7356
7357 * window.c (Fwindow_parameter): Return VALUE, not (PARAMETER . VALUE).
7358 (Fwindow_parameters): Return copy of parameter alist. Doc fix.
7359 (Fset_window_parameter): Return VALUE, not parameter alist. Doc fix.
7360
7361 2008-06-04 Juanma Barranquero <lekktu@gmail.com>
7362
7363 * window.c (Fset_window_parameter): Doc fix.
7364 (Fwindow_parameters, Fwindow_parameter): Remove redundant check.
7365
7366 2008-06-04 Joakim Verona <joakim@verona.se>
7367
7368 * window.h (struct window): Add new member window_parameters.
7369
7370 * window.c (Fwindow_parameters, Fwindow_parameter)
7371 (Fset_window_parameter): New defuns.
7372 (syms_of_window): Defsubr the new defuns.
7373 (make_window): Initialize window_parameters to nil.
7374
7375 2008-06-04 John Paul Wallington <jpw@pobox.com>
7376
7377 * eval.c (Fdefmacro): Doc fix.
7378
7379 2008-06-04 Kenichi Handa <handa@m17n.org>
7380
7381 * coding.c (detect_coding): Fix handling of coding->head_ascii.
7382 Be sure to call setup_coding_system when we find a proper coding system.
7383 (detect_coding_system): Fix handling of coding->head_ascii.
7384
7385 2008-06-03 Andreas Schwab <schwab@suse.de>
7386
7387 * font.c (font_prop_validate_spacing): Fix last change.
7388
7389 2008-06-03 Kenichi Handa <handa@m17n.org>
7390
7391 * font.c (font_prop_validate_spacing): Handle uppercase symbols.
7392 (font_parse_fcname): Fix handling of unknown key.
7393
7394 * xfont.c (xfont_list): Try an alias.
7395
7396 * charset.c (char_charset): Return NULL if the arg charset_list is
7397 specified and C doesn't belong to any of them.
7398
7399 2008-06-02 Chip Coldwell <coldwell@redhat.com>
7400
7401 * font.c (font_pixel_size): Don't take cdr of an integer.
7402
7403 2008-06-02 Jim Meyering <meyering@redhat.com>
7404
7405 Make "xfree (NULL)" a no-op; remove useless if-before-xfree.
7406 * alloc.c (xfree): Return right away for a NULL arg.
7407 * lread.c (nosuffix): Remove now-useless if-before-xfree tests.
7408 * gtkutil.c (xg_gtk_scroll_destroy): Likewise.
7409 * mac.c (create_apple_event_from_event_ref): Likewise.
7410 (create_apple_event_from_drag_ref, cfstring_create_normalized):
7411 Likewise.
7412 * doprnt.c (doprnt1): Likewise.
7413 * frame.c (frame): Likewise.
7414 * keyboard.c (wipe_kboard): Likewise.
7415 * macterm.c (x_free_frame_resources, xlfdpat_destroy, XFreePixmap)
7416 (init_font_name_table, mac_unload_font, x_delete_display): Likewise.
7417 * term.c (tty_default_color_capabilities, maybe_fatal)
7418 (delete_tty): Likewise.
7419 * w16select.c (string): Likewise.
7420 * w32.c (w32_get_resource, SET_ENV_BUF_SIZE): Likewise.
7421 * w32bdf.c (w32_free_bdf_font): Likewise.
7422 * w32fns.c (w32_unload_font): Likewise.
7423 * w32font.c (w32font_close): Likewise.
7424 * window.c (size_window): Likewise.
7425 * xselect.c (receive_incremental_selection): Likewise.
7426 * xterm.c (x_free_frame_resources, x_delete_display): Likewise.
7427 * mactoolbox.c (create_apple_event_from_drag_ref): Likewise.
7428 * w32.c (stat): Likewise.
7429
7430 Remove useless if-before-free tests.
7431 * editfns.c (Fset_time_zone_rule): Likewise.
7432 * lread.c (nosuffix): Likewise.
7433 * ralloc.c (get_bloc): Likewise.
7434 * regex.c (reg_free): Likewise.
7435 * xftfont.c (xftfont_open, xftfont_close): Likewise.
7436 * xrdb.c (get_user_app, get_environ_db, x_load_resources): Likewise.
7437 * xsmfns.c (smc_save_yourself_CB): Likewise.
7438
7439 2008-06-02 Kenichi Handa <handa@m17n.org>
7440
7441 * font.c (font_find_for_lface): Handle float font size.
7442 (font_open_for_lface): Likewise.
7443
7444 * xfaces.c (x_supports_face_attributes_p): Check face->font before
7445 comparing the properties.
7446
7447 2008-06-01 Jason Rumney <jasonr@gnu.org>
7448
7449 * w32font.c (w32_enumfont_pattern_entity): Use requested registry.
7450 Treat iso10646-1 and Windows DEFAULT_CHARSET specially.
7451 Duplicate iso8859-1 fonts as iso10646-1 if no registry specified.
7452 Don't add empty script list.
7453 (w32_registry): Only map DEFAULT_CHARSET to iso10646-1 here.
7454
7455 2008-06-01 Dan Nicolaescu <dann@ics.uci.edu>
7456
7457 * Makefile.in (dot, dotdot): Remove, update users.
7458 ".." has been used elsewhere in the file for a long time.
7459 (LIBXT_STATIC): Remove conditional based on unused variable.
7460
7461 2008-06-01 Miles Bader <miles@gnu.org>
7462
7463 * xfaces.c (Vface_remapping_alist): New variable.
7464 (syms_of_xfaces): Initialize it.
7465 (enum named_merge_point_kind): New type.
7466 (struct named_merge_point): Add `named_merge_point_kind' field.
7467 (push_named_merge_point): Make cycle detection respect different
7468 named-merge-point kinds.
7469 (lface_from_face_name_no_resolve): Rename from `lface_from_face_name'.
7470 Remove face-name alias resolution.
7471 (lface_from_face_name): New definition using
7472 `lface_from_face_name_no_resolve'.
7473 (get_lface_attributes_no_remap): Rename from `get_lface_attributes'.
7474 Call lface_from_face_name_no_resolve instead of lface_from_face_name.
7475 (get_lface_attributes): New definition that layers face-remapping on
7476 top of get_lface_attributes_no_remap. New arg `named_merge_points'.
7477 (lookup_basic_face): New function.
7478 (lookup_derived_face): Pass new last arg to `get_lface_attributes'.
7479 (realize_named_face): Call `get_lface_attributes_no_remap' instead of
7480 `get_lface_attributes'.
7481 (face_at_buffer_position): Use `lookup_basic_face' to lookup
7482 DEFAULT_FACE_ID if necessary. When optimizing the default-face case,
7483 return default_face's face-id instead of the constant DEFAULT_FACE_ID.
7484
7485 * xdisp.c (init_iterator): Pass base_face_id through
7486 `lookup_basic_face' when we actually use it as a face-id.
7487 (handle_single_display_prop): Use `lookup_basic_face' to lookup
7488 DEFAULT_FACE_ID.
7489
7490 * fontset.c (Finternal_char_font): Use `lookup_basic_face' to
7491 lookup the initial face-id.
7492
7493 * dispextern.h (lookup_basic_face, Vface_remapping_alist): New decls.
7494
7495 2008-06-01 Juanma Barranquero <lekktu@gmail.com>
7496
7497 * textprop.c (syms_of_textprop) <text-property-default-nonsticky>:
7498 (Fremove_text_properties): Fix typos in docstrings.
7499
7500 2008-05-31 Kenichi Handa <handa@m17n.org>
7501
7502 * font.c (font_list_entities): Fix the car part of data to be
7503 stored in the cache.
7504
7505 * ftfont.c (ftfont_font_format): Don't use strcasestr.
7506
7507 2008-05-30 Stefan Monnier <monnier@iro.umontreal.ca>
7508
7509 * chartab.c (Foptimize_char_table, optimize_sub_char_table):
7510 Add a `test' argument so another predicate than `equal' can be used.
7511 (map_sub_char_table): Use `eq' rather than `equal' to merge ranges.
7512 (map_char_table): Remove unused vars `c' and `i'.
7513 * lisp.h (Foptimize_char_table): Adjust declaration.
7514 * charset.c (Fclear_charset_maps): Adjust call to Foptimize_char_table.
7515
7516 2008-05-30 Kenichi Handa <handa@m17n.org>
7517
7518 * font.c (Ffont_info): Define only if HAVE_WINDOW_SYSTEM is defined.
7519 (syms_of_font): Defsubr Sfont_info only if HAVE_WINDOW_SYSTEM is
7520 defined.
7521
7522 2008-05-30 Stefan Monnier <monnier@iro.umontreal.ca>
7523
7524 * data.c (Fmake_variable_buffer_local, Fmake_local_variable)
7525 (Fmake_variable_frame_local): Disallow mixing buffer-local and
7526 frame-local settings for the same variable.
7527
7528 2008-05-30 Kenichi Handa <handa@m17n.org>
7529
7530 * fontset.c (Ffont_info): Move to font.c.
7531 (syms_of_fontset): Delete defsubr of Sfont_info.
7532
7533 * font.c (font_style_to_value, font_score): Delete casting of the
7534 args to xstcasecmp.
7535 (register_font_driver): Increment num_font_drivers only when
7536 registering the driver globally.
7537 (Ffont_info): Move from fontset.c. Handle a font object too.
7538 (syms_of_font): Defsubr Sfont_info.
7539
7540 2008-05-29 Kenichi Handa <handa@m17n.org>
7541
7542 * coding.h (enum define_coding_utf8_arg_index): New enum.
7543 (enum coding_attr_index): Change coding_attr_utf_16_bom to
7544 coding_attr_utf_bom.
7545 (enum utf_bom_type): Rename from utf_16_bom_type.
7546 (struct utf_16_spec): Adjust for the above change.
7547 (struct coding_system): Add utf_8_bom in `spec' union.
7548
7549 * coding.c (CODING_UTF_8_BOM): New macro.
7550 (enum coding_category): Delete coding_category_utf_8, add
7551 coding_category_utf_8_auto, coding_category_utf_8_nosig, and
7552 coding_category_utf_8_sig.
7553 (CATEGORY_MASK_UTF_8): Delete it.
7554 (CATEGORY_MASK_UTF_8_AUTO, CATEGORY_MASK_UTF_8_NOSIG)
7555 (CATEGORY_MASK_UTF_8_SIG): New macros.
7556 (CATEGORY_MASK_ANY): Delete CATEGORY_MASK_UTF_8, add
7557 CATEGORY_MASK_UTF_8_AUTO, CATEGORY_MASK_UTF_8_NOSIG, and
7558 CATEGORY_MASK_UTF_8_SIG.
7559 (CATEGORY_MASK_UTF_8): New macro.
7560 (UTF_BOM, UTF_8_BOM_1, UTF_8_BOM_2, UTF_8_BOM_3): New macros.
7561 (detect_coding_utf_8): Check BOM.
7562 (decode_coding_utf_8, encode_coding_utf_8): Handle BOM.
7563 (decode_coding_utf_16): Adjust for the change of enum utf_bom_type.
7564 (encode_coding_utf_16): Likewise.
7565 (setup_coding_system): Likewise. Set CODING_UTF_8_BOM (coding).
7566 (detect_coding, detect_coding_system): Handle utf-8-auto.
7567 (Fdefine_coding_system_internal): Handle `bom' property for utf-8.
7568 (syms_of_coding): Fix setting up of Vcoding_category_table.
7569
7570 2008-05-29 Stefan Monnier <monnier@iro.umontreal.ca>
7571
7572 * process.c (Faccept_process_output): If `millisec' is non-nil,
7573 `seconds' default to 0.
7574 (wait_reading_process_output): Also return non-nil if we read output
7575 from a non-running process.
7576
7577 2008-05-29 Jason Rumney <jasonr@gnu.org>
7578
7579 * w32font.c (w32font_open_internal): Prefer truetype fonts unless
7580 `raster' specified.
7581 (add_font_entity_to_list): Allow non-opentype truetype fonts back
7582 in the uniscribe backend, but disallow any font that has no
7583 unicode subrange support.
7584
7585 2008-05-29 Juanma Barranquero <lekktu@gmail.com>
7586
7587 * xfaces.c (Fx_list_fonts, Finternal_copy_lisp_face):
7588 Fix typos in docstrings.
7589
7590 2008-05-29 Kenichi Handa <handa@m17n.org>
7591
7592 * xfaces.c (Fx_list_fonts): Make it return a list of font names.
7593 (Fx_family_fonts): Set frame correctly.
7594
7595 2008-05-28 Jason Rumney <jasonr@gnu.org>
7596
7597 * w32term.c (x_draw_glyph_string): Use clipmask if specified.
7598
7599 2008-05-28 Stefan Monnier <monnier@iro.umontreal.ca>
7600
7601 * fileio.c (Fwrite_region): Delay the defaulting to beg&z to after
7602 calling build_annotations.
7603
7604 2008-05-28 Juanma Barranquero <lekktu@gmail.com>
7605
7606 * coding.c (Fdecode_coding_region, Fencode_coding_region)
7607 (Fencode_coding_string):
7608 (syms_of_coding) <coding-system-for-read, coding-system-for-write>:
7609 <latin-extra-code-table>: Fix typos in docstrings.
7610 (syms_of_coding) <coding-system-alist>: Doc fix.
7611 (syms_of_coding) <translation-table-for-input>: Reflow docstring.
7612
7613 2008-05-28 Kenichi Handa <handa@m17n.org>
7614
7615 * fontset.c (Ffont_info): Don't call font_close_object.
7616
7617 * font.c (font_parse_family_registry): Use Ffont_put to validate
7618 foundry and family.
7619 (font_delete_unmatched): Don't check spacing.
7620 (font_list_entities): Add spacing to the spec to list fonts.
7621
7622 * ftfont.c (ftfont_spec_pattern): Don't set FC_SPACING to pattern.
7623 (ftfont_list): Check spacing here. Don't include FC_CHARSET in objset.
7624
7625 * coding.c (encode_coding_raw_text): Fix previous change.
7626 (encode_coding_object): When the dst_object is a buffer and is
7627 different from src_object, move gap to PT.
7628
7629 2008-05-27 Chong Yidong <cyd@stupidchicken.com>
7630
7631 * xterm.c (x_draw_glyph_string): If a clipmask is specified, use it.
7632
7633 2008-05-27 Stefan Monnier <monnier@iro.umontreal.ca>
7634
7635 * coding.c (encode_coding_raw_text): Set coding->produced_char for
7636 all branches. Compute it differently.
7637
7638 * xdisp.c [!HAVE_WINDOW_SYSTEM]: Include font.h for --without-x.
7639
7640 2008-05-27 Juanma Barranquero <lekktu@gmail.com>
7641
7642 * w32font.c (compute_metrics): Rewrite an "else { if () ... else ... }"
7643 into "else if () ... else ...".
7644
7645 2008-05-27 Jason Rumney <jasonr@gnu.org>
7646
7647 * w32font.c (w32font_open_internal): Determine if glyph indices
7648 are likely to work here.
7649
7650 2008-05-27 Chong Yidong <cyd@stupidchicken.com>
7651
7652 * xdisp.c (draw_glyphs): If mouse-highlighting is on, attempt to
7653 draw overlap glyphs with appropriate highlighting.
7654
7655 2008-05-27 Kenichi Handa <handa@m17n.org>
7656
7657 * xfont.c (xfont_open): Fix calculation of font->average_width.
7658
7659 2008-05-27 Stefan Monnier <monnier@iro.umontreal.ca>
7660
7661 * casefiddle.c (casify_object): Try to guess better whether the
7662 argument is a byte or a char.
7663
7664 2008-05-26 Andreas Schwab <schwab@suse.de>
7665
7666 * xselect.c (x_reply_selection_request): Properly handle format == 32.
7667 Always send multiples of format size.
7668
7669 * xterm.c (x_set_frame_alpha): Fix type mismatch.
7670
7671 2008-05-26 Jason Rumney <jasonr@gnu.org>
7672
7673 * w32font.c (w32font_text_extents): Zero whole metrics struct first.
7674 (compute_metrics): Don't set failure if we just cleared the cache.
7675 (w32_weight_table): Remove unused variable.
7676 (w32_enumfont_pattern_entity): Use FONT_SPACING_CHARCELL for
7677 backwards compatibility.
7678
7679 2008-05-25 Kenichi Handa <handa@m17n.org>
7680
7681 * w32term.c (x_draw_glyph_string):
7682 * xterm.c (x_draw_glyph_string): Fix calculation of underline position.
7683
7684 * xfaces.c: Delete unused function prototypes.
7685 (xstrlwr, font_frame): Delete them.
7686 (clear_face_cache): Delete unused variable.
7687
7688 * xftfont.c (xftfont_open): Delete unused variable.
7689 If underline_thickness is not 1, adjust underline_position.
7690
7691 * ftxfont.c (ftxfont_open): Delete unused variable.
7692
7693 * fontset.c (face_for_char): Optimize for the case of no charset
7694 property.
7695
7696 * font.c (LGSTRING_HEADER_SIZE, LGSTRING_GLYPH_SIZE)
7697 (check_gstring, check_otf_features, otf_list, otf_tag_symbol)
7698 (otf_open, font_otf_capability, generate_otf_features)
7699 (font_otf_DeviceTable, font_otf_ValueRecord, font_otf_Anchor):
7700 Comment out by surrounding "#if 0" and "#endif" for the moment.
7701 (Ffont_drive_otf, Ffont_otf_alternates): Likewise.
7702 (syms_of_font): Codes for accessing above commented out.
7703
7704 2008-05-24 Eli Zaretskii <eliz@gnu.org>
7705
7706 * w32proc.c: Include dispextern.h.
7707
7708 * w32.c: Include dispextern.h.
7709
7710 2008-05-23 Juanma Barranquero <lekktu@gmail.com>
7711
7712 * charset.c (Fencode_char, Fsplit_char): Doc fixes.
7713 (Fget_unused_iso_final_char, Fdecode_char, Fiso_charset):
7714 Fix typos in docstrings.
7715
7716 2008-05-23 Jason Rumney <jasonr@gnu.org>
7717
7718 * xsmfns.c: Remove includes that are already included by config.h.
7719
7720 2008-05-23 Kenichi Handa <handa@m17n.org>
7721
7722 * charset.c (Qemacs, charset_emacs): New variables.
7723 (char_charset): Fix for non-Unicode characters.
7724 (syms_of_charset): Define charset_emacs.
7725
7726 * w32term.c (x_draw_glyph_string): Be sure to update
7727 s->underline_thickness and s->underline_position. Be sure to draw
7728 underline within the current line area.
7729
7730 * xterm.c (x_draw_glyph_string): Be sure to update
7731 s->underline_thickness and s->underline_position. Be sure to draw
7732 underline within the current line area.
7733
7734 * fontset.c: Delete unused variables and add casting for char *
7735 throughout the file.
7736 (fontset_font): Try the fallback fonts of the current fontset
7737 before consulting the default fontset.
7738
7739 * ftfont.c (ftfont_spec_pattern): Free charset if necessary.
7740
7741 * xfont.c (xfont_list_pattern): Free names returned from XListFonts.
7742
7743 2008-05-22 Jason Rumney <jasonr@gnu.org>
7744
7745 * font.c: Don't include strings.h.
7746
7747 * dispextern.h, xfaces.c (xstrcasecmp): Rename from xstricmp.
7748
7749 * dosfns.c, fileio.c, font.c, fontset.c, image.c, macfns.c:
7750 * macterm.c, process.c, w32.c, w32fns.c, w32proc.c, xfaces.c:
7751 * xfns.c, xfont.c: All callers of stricmp and strcasecmp changed
7752 to call xstrcasecmp.
7753
7754 * xfont.c (xfont_list_pattern, compare_font_names): Use xstrcasecmp.
7755
7756 * fontset.c (fs_query_fontset): Use xstrcasecmp.
7757
7758 * font.c (font_style_to_value, font_score): Use xstrcasecmp.
7759
7760 * dosfns.c (msdos_stdcolor_idx): Use xstrcasecmp.
7761
7762 2008-05-22 Kenichi Handa <handa@m17n.org>
7763
7764 * puresize.h (BASE_PURESIZE): Increase to 1220000.
7765
7766 * font.c (font_prop_validate_style): Adjust for the format
7767 change of font_style_table.
7768
7769 * w32font.c (w32font_open_internal): Call Ffont_xlfd_name with
7770 two args.
7771
7772 * xfaces.c (x_update_menu_appearance): Call Ffont_xlfd_name with
7773 two args.
7774
7775 2008-05-22 Stefan Monnier <monnier@iro.umontreal.ca>
7776
7777 * minibuf.c (keys_of_minibuf): Delete.
7778 * lisp.h (keys_of_minibuf): Delete.
7779 * emacs.c (main): Don't call keys_of_minibuf.
7780
7781 2008-05-22 Kenichi Handa <handa@m17n.org>
7782
7783 * ftfont.c (ftfont_resolve_generic_family): Rename from
7784 ftfont_list_generic_family. Return a single family for each
7785 generic family.
7786 (ftfont_spec_pattern): Add FC_FAMILY to pattern.
7787 (ftfont_list): Adjust for the change of ftfont_resolve_generic_family.
7788 Call font_add_log.
7789 (ftfont_match): Call font_add_log.
7790
7791 * font.h (Ffont_xlfd_name): EXFUN adjusted.
7792 (FONT_DEBUG): Define it.
7793 (font_add_log): Extern it.
7794 (font_assert): Rename from xassert.
7795
7796 * xfont.c (xfont_get_pcm): Change xassert to font_assert.
7797 (xfont_list_family): Call font_add_log.
7798 (xfont_match): Likewise.
7799 (memq_no_quit): Delete.
7800
7801 * fontset.c (fontset_from_font, Ffontset_info): Add the 2nd arg in
7802 call of Ffont_xlfd_name.
7803
7804 * xfaces.c (struct table_entry, slant_table, weight_table)
7805 (swidth_table): Move to font.c.
7806
7807 * font.c: Checking of FONT_DEBUG is moved to font.h. All calls of
7808 xassert are changed to font_assert. Delete many unused variables.
7809 (Vfont_weight_table, Vfont_slant_table, Vfont_width_table):
7810 New variables.
7811 (struct table_entry): Move from xfaces.c and modified.
7812 (weight_table, slant_table, width_table): Move from xfaces.c and
7813 contents adjusted for the change of struct table_entry.
7814 (font_style_to_value, font_style_symbolic): Adjust for the
7815 format change of font_style_table.
7816 (font_parse_family_registry): Don't overwrite existing foundry and
7817 family of font_spec.
7818 (font_score): Fix calculation of diff for sizes.
7819 (font_sort_entites): Call font_add_log.
7820 (font_delete_unmatched): Return a newly created list.
7821 (font_list_entities): Fix previous change. Call font_add_log.
7822 (font_matching_entity, font_open_entity, font_close_entity):
7823 Call font_add_log.
7824 (Ffont_xlfd_name): New arg FOLD-WILDCARDS.
7825 (Finternal_set_font_style_table): Delete.
7826 (BUILD_STYLE_TABLE): New macro.
7827 (build_style_table): New function.
7828 (Vfont_log, font_log_env_checked): New variables.
7829 (font_add_log): New function.
7830 (syms_of_font): Delete defsubr Sinternal_set_font_style_table.
7831 Declare Lisp variables "font-weight-table", "font-slant-table",
7832 "font-width-table", and "font-log". Initialize font_style_table.
7833
7834 2008-05-21 Dan Nicolaescu <dann@ics.uci.edu>
7835
7836 * xterm.c (x_set_frame_alpha): Move declarations before statements.
7837
7838 2008-05-21 Seiji Zenitani <zenitani@mac.com>
7839 Ryo Yoshitake <ryo@shiftmode.net>
7840
7841 * frame.c (Qalpha): Add a new frame parameter `alpha'.
7842 (Vframe_alpha_lower_limit): New variable.
7843 (x_set_alpha): New function.
7844
7845 * frame.h (Qalpha, Vframe_parameter_lower_limit): Export them.
7846
7847 * xfns.c (x-create-frame, Qalpha):
7848 Initialize the frame parameter `alpha'.
7849 * xterm.c (OPAQUE, OPACITY): New.
7850 (x_set_frame_alpha): New function.
7851 (frame_highlight, frame_unhighlight): Call x_set_frame_alpha.
7852
7853 * macfns.c (mac_frame_parm_handlers): A null handler for x_set_alpha.
7854 * w32fns.c (w32_frame_parm_handlers): Likewise.
7855
7856 2008-05-20 Jason Rumney <jasonr@gnu.org>
7857
7858 * w32font.c (add_font_entity_to_list): Don't add non-opentype
7859 truetype fonts to opentype list.
7860
7861 2008-05-20 Juanma Barranquero <lekktu@gmail.com>
7862
7863 * fontset.c (Ffontset_info): Doc fix.
7864 (syms_of_fontset) <font-encoding-charset-alist, use-default-ascent>:
7865 <ignore-relative-composition>: Fix typos in docstrings.
7866
7867 * font.c (syms-of-font) <font-encoding-alist>:
7868 (Ffontp, Ffont_make_gstring): Fix typos in docstrings.
7869 (Flist_fonts, Ffont_family_list, Ffont_fill_gstring, Fquery_font)
7870 (Ffont_otf_alternates): Doc fixes.
7871
7872 2008-05-20 Kenichi Handa <handa@m17n.org>
7873
7874 * Makefile.in (FONTSRC): Delete it. Change all $(FONTSRC) to
7875 font.h through out the file.
7876 (FONT_DRIVERS): Rename from FONTOBJ.
7877 (obj): Change $(FONTOBJ) to $(FONT_DRIVERS). Add font.o.
7878 (SOME_MACHINE_OBJECTS): Change $(FONTOBJ) to $(FONT_DRIVERS).
7879
7880 * emacs.c (main): Call syms_of_font unconditionally.
7881
7882 * font.h (find_font_encoding): Extern it.
7883
7884 * font.c (Vfont_encoding_alist, find_font_encoding): Move from
7885 fontset.c.
7886 (font_pixel_size)[! HAVE_WINDOW_SYSTEM]: Return 1.
7887 (font_open_entity): Update FRAME_X_DISPLAY_INFO (f)->n_fonts,
7888 FRAME_SMALLEST_CHAR_WIDTH (f), and FRAME_SMALLEST_FONT_HEIGHT (f)
7889 only when HAVE_WINDOW_SYSTEM is defined.
7890 (font_close_object): Update FRAME_X_DISPLAY_INFO (f)->n_fonts only
7891 when HAVE_WINDOW_SYSTEM is defined.
7892
7893 * fontset.c (Vfont_encoding_alist, find_font_encoding): Move to font.c.
7894 (syms_of_fontset): Move declaration of font-encoding-alist to font.c.
7895
7896 * xfaces.c: Include font.h unconditionally.
7897 (merge_face_ref, merge_face_vectors)
7898 (Finternal_set_lisp_face_attribute): Cancel the previous change.
7899
7900 2008-05-20 Stefan Monnier <monnier@iro.umontreal.ca>
7901
7902 * xdisp.c (select_frame_for_redisplay): Adjust for last change to
7903 indirect_variable.
7904 * eval.c (lisp_indirect_variable): New fun.
7905 (Fuser_variable_p): Use it.
7906
7907 2008-05-19 Stefan Monnier <monnier@iro.umontreal.ca>
7908
7909 * lisp.h (indirect_variable):
7910 * data.c (indirect_variable, let_shadows_buffer_binding_p):
7911 Use Lisp_Symbol pointers rather than Lisp_Object.
7912 Adjust callers.
7913 * buffer.c (buffer_slot_type_mismatch): Use wrong-type-argument.
7914 To this end, change calling-convention.
7915
7916 * minibuf.c (Finternal_complete_buffer): Only strip out hidden buffers
7917 if some non-hidden buffers are selected by string&pred.
7918
7919 2008-05-19 Chong Yidong <cyd@stupidchicken.com>
7920
7921 * process.c (wait_reading_process_output): Always check status
7922 when in batch mode.
7923
7924 2008-05-19 Kenichi Handa <handa@m17n.org>
7925
7926 * font.c (font_list_entities): Fix handling of cache.
7927 (font_matching_entity): Likewise.
7928
7929 * ftfont.c (cs_iso8859_1): Delete.
7930 (ft_face_cache): New variable.
7931 (struct ftfont_info): New member fc_charset_idx.
7932 (ftfont_build_basic_charsets): Delete.
7933 (fc_charset_table): New variable.
7934 (ftfont_pattern_entity): New arg fc_charset_idx. Store (FILENAME
7935 . FC_CHARSET_IDX) as :font-entity property in the font entity.
7936 Callers changed.
7937 (ftfont_lookup_cache, ftfont_get_charset): New functions.
7938 (ftfont_spec_pattern): New argument fc_charset_idx.
7939 Check registry more rigidly. Change callers.
7940 (ftfont_open, ftfont_close, ftfont_has_char): Adjust for the
7941 change of :font-entity property of the font.
7942
7943 * xftfont.c (xftfont_open): Adjust for the change of :font-entity
7944 property of the font.
7945
7946 2008-05-18 Juanma Barranquero <lekktu@gmail.com>
7947
7948 * coding.c (Fcoding_system_p): Rename argument to match docstring.
7949 (Funencodable_char_position, Fcheck_coding_systems_region)
7950 (Fdecode_coding_string, Fencode_coding_string): Fix typos in docstrings.
7951 (Fdetect_coding_region, Fdetect_coding_string, Fencode_coding_region)
7952 (Ffind_operation_coding_system, Fset_coding_system_priority)
7953 (Fcoding_system_eol_type): Doc fixes.
7954
7955 2008-05-17 Glenn Morris <rgm@gnu.org>
7956
7957 * sysdep.c (child_setup_tty): Handle systems with NLDLY, without FFDLY.
7958
7959 2008-05-16 Eli Zaretskii <eliz@gnu.org>
7960
7961 * dired.c (Ffile_attributes): Shut up GCC warnings about st_uid
7962 and st_gid.
7963
7964 * frame.c (Fdelete_frame): Don't call font_update_drivers if
7965 HAVE_WINDOW_SYSTEM is not defined.
7966
7967 * xfaces.c (merge_face_ref, merge_face_vectors)
7968 (Finternal_set_lisp_face_attribute): Use FONT_*_INDEX only when
7969 HAVE_WINDOW_SYSTEM is defined.
7970 (Fface_font): Fix non-HAVE_WINDOW_SYSTEM case.
7971
7972 2008-05-16 Stefan Monnier <monnier@iro.umontreal.ca>
7973
7974 * keyboard.c (parse_menu_item): Do not cache key shortcut any more.
7975
7976 2008-05-15 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
7977
7978 * macterm.c (x_draw_relief_rect): Remove unused variable `dpy'.
7979
7980 2008-05-15 Kenichi Handa <handa@m17n.org>
7981
7982 * font.c (font_find_for_lface): Reflect LFACE_FONT in the font
7983 preference.
7984
7985 2008-05-15 Glenn Morris <rgm@gnu.org>
7986
7987 * emacs.c (USAGE1, standard_args): Remove -disable-font-backend.
7988
7989 2008-05-15 Chong Yidong <cyd@stupidchicken.com>
7990
7991 * fns.c (init_fns): Don't initialize weak_hash_tables here.
7992 (init_weak_hash_tables): New fun. Initialize weak_hash_tables.
7993
7994 * alloc.c (init_alloc_once): Call init_weak_hash_tables.
7995
7996 2008-05-15 Kenichi Handa <handa@m17n.org>
7997
7998 * ftfont.c (ftfont_list): Downcase family name to check generic
7999 families.
8000
8001 * xfaces.c (Finternal_set_lisp_face_attribute): Be sure to make a
8002 font-spec for QCfont value.
8003
8004 * fontset.c (Fnew_fontset): Call font_unparse_xlfd with 256-byte
8005 buffer. Check the return value of it.
8006
8007 2008-05-14 Jason Rumney <jasonr@gnu.org>
8008
8009 * w32term.c (w32_get_glyph_overhangs): Remove.
8010 (w32_redisplay_interface): Use x_get_glyph_overhangs instead.
8011
8012 2008-05-14 Kenichi Handa <handa@m17n.org>
8013
8014 * font.c (font_prop_validate): Make nil a valid value.
8015 (font_clear_cache): Check if the cached vector of entities is nil
8016 or not.
8017
8018 2008-05-14 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
8019
8020 * emacs.c (main_thread): Conditionalize on
8021 FORWARD_SIGNAL_TO_MAIN_THREAD instead of HAVE_GTK_AND_PTHREAD.
8022 (main) [FORWARD_SIGNAL_TO_MAIN_THREAD]: Initialize it.
8023
8024 * syssignal.h (FORWARD_SIGNAL_TO_MAIN_THREAD): New define.
8025 (main_thread, SIGNAL_THREAD_CHECK): Conditionalize on
8026 FORWARD_SIGNAL_TO_MAIN_THREAD instead of HAVE_GTK_AND_PTHREAD.
8027
8028 2008-05-14 Kenichi Handa <handa@m17n.org>
8029
8030 * coding.c (detect_coding_iso_2022): Ignore a coding category that
8031 has no corresponding coding system.
8032
8033 2008-05-14 Jason Rumney <jasonr@gnu.org>
8034
8035 * font.h (struct font) [WINDOWSNT]: Remove codepage member.
8036
8037 * w32font.h (w32font_open_internal): Update declaration.
8038
8039 * w32font.c (w32font_open_internal): Change last argument from
8040 w32font_info struct to font object. Fill in font object from
8041 font_entity. Get Outline metrics if possible. Use them to
8042 calculate underline position and thickness. Use xlfd name as name
8043 property. Don't set codepage.
8044 (w32font_open): Pass font_object to w32font_open_internal. Don't
8045 update dpyinfo->smallest_font_height and dpyinfo->smallest_char_width.
8046 (w32font_draw): Use s->font.
8047 (clear_cached_metrics): Don't clear non-existent blocks.
8048
8049 * w32term.c (w32_compute_glyph_string_overhangs): Don't compute if
8050 font was not found.
8051 (x_draw_glyph_string): Use underline position and thickness from font.
8052
8053 * w32uniscribe.c (uniscribe_open): Pass font_object to
8054 w32font_open_internal.
8055
8056 2008-05-14 Kenichi Handa <handa@m17n.org>
8057
8058 These changes are to delete all legacy font-handling codes, and
8059 make Emacs use only font-backends.
8060
8061 * Makefile.in: Delete USE_FONT_BACKEND conditionals.
8062 (frame.o, image.o, print.o): Depend on $(FONTSRC).
8063
8064 * makefile.w32-in (WIN32OBJ): Add w32reg.$(O), remove w32bdf.$(O).
8065
8066 * charset.h (Vcharset_non_preferred_head)
8067 (Vcurrent_iso639_language): Extern them.
8068
8069 * charset.c (Vcharset_non_preferred_head): New variable.
8070 (Vcurrent_iso639_language): New variable.
8071 (syms_of_charset): Declare it as a Lisp variable.
8072 (char_charset): Don't check non preferred charsets. As a last
8073 resort, return charset_unicode.
8074 (Fset_charset_priority): Update Vcharset_non_preferred_head.
8075
8076 * composite.c: Throughout the file, delete all USE_FONT_BACKEND
8077 conditionals. Don't check enable_font_backend. Delete all codes
8078 used only when USE_FONT_BACKEND is not defined.
8079
8080 * dispextern.h (struct glyph_string): Change type of `font' to
8081 `struct font *'.
8082 (struct glyph_string): New member underline_position and
8083 underline_thickness.
8084 (enum lface_attribute_index): Remove LFACE_AVGWIDTH_INDEX.
8085 (struct face): Change type of `font' to `struct font *'. Remove
8086 members `font_name', `font_info_id'.
8087 (per_char_metric, encode_char): Delete externs.
8088 (calc_pixel_width_or_height): Adjust the prototype.
8089
8090 * emacs.c (enable_font_backend): Delete extern.
8091 (main): Don't set enable_font_backend. Don't check the command
8092 line argument "-disable-font-backend".
8093
8094 * font.h (Qfont_spec, Qfont_entity, Qfont_object): Extern them.
8095 (enum font_property_index): New members FONT_DPI_INDEX,
8096 FONT_SPACING_INDEX, FONT_AVGWIDTH_INDEX, FONT_NAME_INDEX,
8097 FONT_FULLNAME_INDEX, FONT_FILE_INDEX, FONT_FORMAT_INDEX,
8098 FONT_OBJECT_MAX. Delete FONT_FRAME_INDEX.
8099 (FONT_WEIGHT_NUMERIC, FONT_SLANT_NUMERIC, FONT_WIDTH_NUMERIC)
8100 (FONT_WEIGHT_SYMBOLIC, FONT_SLANT_SYMBOLIC, FONT_WIDTH_SYMBOLIC)
8101 (FONT_WEIGHT_FOR_FACE, FONT_SLANT_FOR_FACE, FONT_WIDTH_FOR_FACE)
8102 (FONT_WEIGHT_NAME_NUMERIC, FONT_SLANT_NAME_NUMERIC)
8103 (FONT_WIDTH_NAME_NUMERIC, FONT_SET_STYLE): New macros.
8104 (struct font_spec, struct font_entity): New structs.
8105 (FONT_ENCODING_NOT_DECIDED): Moved from fontset.h.
8106 (struct font): Many members from old "struct font_info" moved to
8107 here. Members font and entity deleted.
8108 (FONT_SPEC_P, FONT_ENTITY_P, FONT_OBJECT_P, FONTP): Modified for
8109 the new font-related objects.
8110 (CHECK_FONT_SPEC, CHECK_FONT_ENTITY, CHECK_FONT_OBJECT)
8111 (CHECK_FONT_GET_OBJECT): Likewise.
8112 (XFONT_SPEC, XFONT_ENTITY, XFONT_OBJECT, XSETFONT): New macros.
8113 (PT_PER_INCH, POINT_TO_PIXEL, PIXEL_TO_POINT): Moved from font.h.
8114 (struct font_driver): New members case_sensitive anc check. Type
8115 of the member list and open changed.
8116 (enable_font_backend, font_symbolic_weight, font_symbolic_slant)
8117 (font_symbolic_width, font_find_object, font_get_spec)
8118 (font_set_lface_from_name): Delete extern.
8119 (Fcopy_font_spec, Fmerge_font_spec, Ffont_family_list): New EXFUNs.
8120
8121 * font.c: Include <strings.h>.
8122 (enable_font_backend): Delete it.
8123 (Qfont_spec, Qfont_entity, Qfont_object): New variables.
8124 (CHECK_VALIDATE_FONT_SPEC): Delete it.
8125 (PT_PER_INCH, POINT_TO_PIXEL, PIXEL_TO_POINT): Moved to font.h.
8126 (null_string): Delete it.
8127 (null_vector): Make it static.
8128 (font_family_alist): Delete it.
8129 (Qnormal): Extern it.
8130 (QCextra, QClanguage): Delete it.
8131 (QClang, QCavgwidth, QCfont_entity, QCfc_unknown_spec): New variables.
8132 (font_make_spec, font_make_entity, font_make_object)
8133 (font_intern_prop): Renamed from intern_downcase. Don't downcase
8134 the string. Callers changed.
8135 (font_pixel_size): Adjusted for the format change of font-related
8136 objects.
8137 (prop_name_to_numeric, prop_numeric_to_name): Delete them.
8138 (font_style_to_value, font_style_symbolic): New function.
8139 (build_font_family_alist): Delete it.
8140 (font_registry_charsets): Use Fassoc_string instead of
8141 assq_no_quit.
8142 (font_prop_validate_symbol): Don't return null_string.
8143 (font_prop_validate_style): Adjusted for the change of
8144 style-related values in a font vector.
8145 (font_property_table): Delete entries for QClanguage and
8146 QCantialias, add entries for QCavgwidth.
8147 (get_font_prop_index): Delete the 2nd argument FROM.
8148 (font_prop_validate): Arguments changed.
8149 (font_put_extra): Adjusted for the change of font-related objects.
8150 (font_expand_wildcards, font_parse_xlfd, font_unparse_xlfd)
8151 (font_parse_fcname, font_unparse_fcname)
8152 (font_prepare_composition): Likewise.
8153 (font_parse_family_registry): Renamed from font_merge_old_spec.
8154 (otf_open): Delete the 1st arg entity.
8155 (font_otf_capability): Adjusted for the above change.
8156 (font_score): New arg alternate_families. Adjusted for the change
8157 of font-related objects.
8158 (font_sort_entites): New arg best_only.
8159 (font_symbolic_weight, font_symbolic_slant, font_symbolic_width):
8160 Delete them.
8161 (font_match_p): Check alternate families.
8162 (font_find_object): Delete it.
8163 (font_check_object): New function.
8164 (font_clear_cache): Adjusted for the change of font-related objects.
8165 (font_delete_unmatched): New arg.
8166 (font_list_entities): Call font_driver->list with a spec that
8167 doesn't specify style-related properties.
8168 (font_matching_entity): Arguments changed. Caller changed.
8169 (font_open_entity): Adjusted for the change of font-related objects.
8170 (font_close_object, font_has_char, font_encode_char)
8171 (font_get_name, font_get_spec): Likewise.
8172 (font_spec_from_name, font_clear_prop, font_update_lface):
8173 New functions.
8174 (font_find_for_lface, font_open_for_lface, font_load_for_lface)
8175 (font_prepare_for_face, font_done_for_face, font_open_by_name)
8176 (font_at): Adjusted for the change of font-related objects.
8177 (font_range): New function.
8178 (Ffontp, Ffont_spec, Ffont_get, Ffont_put, Flist_fonts)
8179 (Ffont_xlfd_name): Adjusted for the change of font-related objects.
8180 (Fcopy_font_spec, Fmerge_font_spec): New function.
8181 (Ffont_family_list): Renamed from list-families.
8182 (Finternal_set_font_style_table): Arguments changed.
8183 (Ffont_fill_gstring, Ffont_shape_text, Fopen_font)
8184 (Ffont_drive_otf, Fquery_font, Ffont_match_p): Adjusted for the
8185 change of font-related objects.
8186 (syms_of_font): Delete "ifdef USE_FONT_BACKEND". DEFSYM new symbols.
8187
8188 * fontset.h (struct font_info): Delete it. Most members go to
8189 struct font.
8190 (FONT_ENCODING_NOT_DECIDED): Moved to font.h.
8191 (enum FONT_SPEC_INDEX): Delete it.
8192 (font_info, list_fonts_func, load_font_func, query_font_func)
8193 (set_frame_fontset_func, find_ccl_program_func)
8194 (get_font_repertory_func, new_fontset_from_font_name): Delete
8195 externs.
8196 (fontset_from_font_name): Extern it.
8197 (FS_LOAD_FONT, FONT_INFO_ID, FONT_INFO_FROM_ID)
8198 (FONT_INFO_FROM_FACE): Deleted.
8199 (face_for_font): Adjust prototype.
8200
8201 * fontset.c: Throughout the file, delete all USE_FONT_BACKEND
8202 conditionals. Don't check enable_font_backend. Delete all codes
8203 used only when USE_FONT_BACKEND is not defined.
8204 (get_font_info_func, list_font_func, load_font_func)
8205 (query_font_func, set_frame_fontset_func, find_ccl_program_func)
8206 (get_font_repertory_func): Delete them.
8207 (FONTSET_SPEC, FONT_DEF_NEW, FONT_DEF_SPEC, FONT_DEF_ENCODING)
8208 (FONT_DEF_REPERTORY, RFONT_DEF_FACE, RFONT_DEF_SET_FACE)
8209 (RFONT_DEF_FONT_DEF, RFONT_DEF_SPEC, RFONT_DEF_REPERTORY)
8210 (RFONT_DEF_OBJECT, RFONT_DEF_SET_OBJECT, RFONT_DEF_SCORE)
8211 (RFONT_DEF_SET_SCORE, RFONT_DEF_NEW): New macros.
8212 (fontset_compare_rfontdef): New function.
8213 (reorder_font_vector): Remove the argument CHARSET-ID. Sort
8214 rfont-defs by qsort. Adjusted for the change of font-group vector.
8215 (load_font_get_repertory): Deleted.
8216 (fontset_find_font): Use new macros to ref/set elements of
8217 font-def and rfont-def.
8218 (fontset_font): Fix the timing of remembering that no font for C.
8219 (free_face_fontset): Do nothing if the face has no fontset.
8220 (face_suitable_for_char_p): Use new macros to ref/set elements of
8221 rfont-def.
8222 (face_for_char): Likewise. Call face_for_char with font_object.
8223 (fs_load_font): Delete. Delete #pragma surrounding it.
8224 (fs_query_fontset): Use strcasecmp instead of strcmp.
8225 (generate_ascii_font_name): Adjusted for the format change of
8226 font-spec.
8227 (Fset_fontset_font): Likewise. Use new macros to set elements of
8228 font-def.
8229 (Fnew_fontset): Use font_unparse_xlfd to generate
8230 FONTSET_ASCII (fontset).
8231 (new_fontset_from_font_name): Deleted.
8232 (fontset_from_font): Renamed from new_fontset_from_font. Check if
8233 a fontset is already created for the font. FIx updating of
8234 Vfontset_alias_alist.
8235 (fontset_ascii_font): Deleted.
8236 (Ffont_info): Adjusted for the format change of font-spec.
8237 (Finternal_char_font): Likewise.
8238 (Ffontset_info): Likewise.
8239 (syms_of_fontset): Don't check load_font_func.
8240
8241 * fns.c (internal_equal): Handle PREV_FONT.
8242
8243 * frame.h: Delete USE_FONT_BACKEND conditional.
8244
8245 * frame.c: Throughout the file, delete all USE_FONT_BACKEND
8246 conditionals. Don't check enable_font_backend. Delete all codes
8247 used only when USE_FONT_BACKEND is not defined.
8248 (x_set_font): Call x_new_font, not x_new_fontset2.
8249 (x_set_font_backend): Use FRAME_FONT macro to check if a font is
8250 already set for the frame.
8251
8252 * ftfont.c (ftfont_pattern_entity): Argument FRAME removed. Make
8253 a font-entity by font_make_entity. Use font_intern_prop instead
8254 of intern_downcase. Use FONT_SET_STYLE to set a style-related
8255 font property. If a font is scalable, set avgwidth property to 0.
8256 Set font-entity property by font_put_extra.
8257 (ftfont_list_generic_family): Argument SPEC and REGISTRY removed.
8258 (ffont_driver): Adjusted for the change of struct font_driver.
8259 (ftfont_spec_pattern): New function.
8260 (ftfont_list): Return a list, not vector.
8261 (ftfont_match): Use ftfont_spec_pattern to get a pattern.
8262 (ftfont_list_family): Don't downcase names.
8263 (ftfont_free_entity): Deleted.
8264 (ftfont_open): Return a font-object. Adjusted for the change of
8265 struct font. Get underline_thickness and underline_position from
8266 font property. Don't update dpyinfo->smallest_font_height and
8267 dpyinfo->smallest_char_width.
8268 (ftfont_close): Don't free `struct font'.
8269 (ftfont_has_char): Adjusted for the format change of font-entity.
8270 (ftfont_encode_char, ftfont_text_extents): Likewise.
8271
8272 * ftxfont.c (ftxfont_list): Return a list, not vector.
8273 (ftxfont_open): Return a font-object. Adjusted for the change of
8274 struct font. Get underline_thickness and underline_position from
8275 font property. Don't update dpyinfo->smallest_font_height and
8276 dpyinfo->smallest_char_width.
8277 (ftxfont_close): Don't decrease FRAME_X_DISPLAY_INFO (f)->n_fonts.
8278 (ftxfont_draw): Adjusted for the change of struct font.
8279
8280 * image.c (image_ascent): Don't include "charset.h". Include
8281 "character.h" and "font.h".
8282
8283 * lisp.h (enum pvec_type): New member PREV_FONT.
8284 (Fassoc_string): EXFUN it.
8285
8286 * print.c: Include font.h.
8287 (print_object): Handle font-related objects.
8288
8289 * xdisp.c: Throughout the file, delete all USE_FONT_BACKEND
8290 conditionals. Don't check enable_font_backend. Delete all codes
8291 used only when USE_FONT_BACKEND is not defined.
8292 (handle_auto_composed_prop): Do nothing if it->f is not on a
8293 window system. Check how many following characters can be
8294 displayed by the same font.
8295 (calc_pixel_width_or_height): Type of the 4th arg is changed to
8296 'struct font *'.
8297 (get_char_face_and_encoding): Assign the whole encoding task to
8298 the `encode-char' method of a font driver.
8299 (fill_composite_glyph_string): Adjusted for the change of `struct
8300 face' and `struct glyph_string'.
8301 (fill_glyph_string): Likewise.
8302 (get_per_char_metric): Arguments changed.
8303 (x_get_glyph_overhangs): Adjusted for the change of `struct face'
8304 and `struct glyph_string'.
8305 (produce_stretch_glyph, calc_line_height_property)
8306 (x_produce_glyphs): Likewise.
8307
8308 * xfaces.c: Throughout the file, delete all USE_FONT_BACKEND
8309 conditionals. Don't check enable_font_backend. Delete all codes
8310 used only when USE_FONT_BACKEND is not defined. Use
8311 FONT_XXX_NAME_NUMERIC instead of face_numeric_xxx.
8312 (QCfoundry, QCadstyle, QCregistry, QCspacing, QCsize, QCavgwidth)
8313 (Qp): Extern them.
8314 (clear_font_table, load_face_font, xlfd_lookup_field_contents):
8315 Deleted.
8316 (struct font_name): Deleted.
8317 (xlfd_numeric_value, xlfd_symbolic_value): Deleted.
8318 (compare_fonts_by_sort_order): New function.
8319 (xlfd_numeric_slant, xlfd_symbolic_slant, xlfd_numeric_weight)
8320 (xlfd_symbolic_weight, xlfd_numeric_swidth, xlfd_symbolic_swidth):
8321 Deleted.
8322 (Fx_family_fonts): Use font_list_entities, and sort fonts by
8323 compare_fonts_by_sort_order.
8324 (Fx_font_family_list): Call Ffont_family_list.
8325 (face_numeric_value, face_numeric_weight, face_numeric_slant)
8326 (face_numeric_swidth, face_symbolic_value, face_symbolic_weight)
8327 (face_symbolic_slant, face_symbolic_swidth)
8328 (split_font_name_into_vector, build_font_name_from_vector)
8329 (xlfd_fixed_p, xlfd_point_size, pixel_point_size)
8330 (font_rescale_ratio, split_font_name, build_font_name)
8331 (free_font_names, sort_fonts, x_face_list_fonts)
8332 (face_font_available_p, sorted_font_list, cmp_font_names)
8333 (font_list_1, concat_font_list, font_list, remove_duplicates):
8334 Deleted.
8335 (Fx_list_fonts): Use Ffont_list.
8336 (LFACE_AVGWIDTH): Deleted.
8337 (check_lface_attrs): Don't check LFACE_AVGWIDTH. Check LFACE_FONT
8338 by FONTP.
8339 (lface_fully_specified_p): Don't check LFACE_AVGWIDTH.
8340 (set_lface_from_font_name): Delete it.
8341 (set_lface_from_font): Renamed from
8342 set_lface_from_font_and_fontset. Caller changed. Don't set
8343 LFACE_AVGWIDTH. Use FONT_XXX_FOR_FACE to get a symbol suitable
8344 for face.
8345 (merge_face_vectors): Copy font-spec if necessary.
8346 Clear properties of the font-spec if necessary.
8347 (merge_face_ref): Clear properties of the font-spec if necessary.
8348 (Finternal_set_lisp_face_attribute): Likewise.
8349 (set_font_frame_param): Use font_load_for_lface to load a
8350 font-object, and call Fmodify_frame_parameters with it.
8351 (x_update_menu_appearance): Don't check LFACE_AVGWIDTH. Get XLFD
8352 font name by Ffont_xlfd_name.
8353 (Finternal_lisp_face_attribute_values): Don't check QCweight,
8354 QCslant, and QCwidth.
8355 (Fface_font): Get a font name from font->props[FONT_NAME_INDEX].
8356 (lface_same_font_attributes_p): Don't check LFACE_AVGWIDTH.
8357 Compare fonts by EQ.
8358 (lookup_non_ascii_face): Deleted.
8359 (face_for_font): The 2nd argument changed.
8360 (x_supports_face_attributes_p): Don't check LFACE_AVGWIDTH.
8361 Check atomic font properties by case insensitive.
8362 (realize_non_ascii_face): Set face->overstrike correctly.
8363 (realize_x_face): Likewise. Check if LFACE_FONT is a font_object.
8364 (dump_realized_face): Get font name from
8365 font->props[FONT_NAME_INDEX]. Don't print font_info_id.
8366
8367 * xfns.c: Throughout the file, delete all USE_FONT_BACKEND
8368 conditionals. Don't check enable_font_backend. Delete all codes
8369 used only when USE_FONT_BACKEND is not defined.
8370 (xic_create_xfontset): Original code deleted and renamed from
8371 xic_create_xfontset2. Use FRAME_FONT, not FRAME_FONT_OBJECT.
8372 (x_make_gc): Don't set GCFont in GCs.
8373 (Fx_create_frame) [USE_LUCID]: Set xlwmenu_default_font to a font
8374 opened by "fixed".
8375 (syms_of_xfns): Don't set get_font_info_func, load_font_func,
8376 find_ccl_program_func, query_font_func, set_frame_fontset_func,
8377 get_font_repertory_func.
8378
8379 * xfont.c: Include <stdlib.h> and "ccl.h".
8380 (struct xfont_info): New structure.
8381 (xfont_query_font): Deleted.
8382 (xfont_find_ccl_program): Renamed from x_find_ccl_program and
8383 moved from xterm.c.
8384 (xfont_driver): Adjusted for the change of struct font_driver.
8385 (compare_font_names): New function.
8386 (xfont_list_pattern): Sort font names case insensitively. Make
8387 font_entity by calling font_make_entity. Avoid auto-scaled fonts.
8388 (xfont_list): Return a list, not vector.
8389 (xfont_match): If the font doesn't have QCname property, generate
8390 a name from the other font properties.
8391 (xfont_open): Return a font-object. Adjusted for the change of
8392 struct font. Get underline_thickness and underline_position from
8393 font property. Don't update dpyinfo->smallest_font_height and
8394 dpyinfo->smallest_char_width.
8395 (xfont_close): Don't free struct font.
8396 (xfont_prepare_face): Adjusted for the change of struct font.
8397 (xfont_done_face): Deleted.
8398 (xfont_has_char): Adjusted for the change of struct font.
8399 (xfont_encode_char, xfont_draw): Likewise.
8400 (xfont_check): New function.
8401
8402 * xftfont.c (xftfont_list): Adjusted for the change of `list'
8403 callback function.
8404 (xftfont_match): Adjusted for the format change of font-entity.
8405 (xftfont_open): Adjusted for the format change of font-entity and
8406 font-object. Adjusted for the change of struct font. Return a
8407 font-object. Don't update dpyinfo->smallest_font_height and
8408 dpyinfo->smallest_char_width.
8409 (xftfont_close): Block input while calling XftFontClose.
8410 (xftfont_prepare_face): Don't block input while calling
8411 xftfont_get_colors. Adjusted for the change of struct font.
8412 (xftfont_shape): Return value of error case fixed.
8413
8414 * xrdb.c (x_load_resources): Don't setup a fontset resource.
8415
8416 * xterm.h: Throughout the file, delete all USE_FONT_BACKEND
8417 conditionals.
8418 (FONT_WIDTH): Return (f)->max_width.
8419 (struct x_display_info): Delete member `font'.
8420 (x_list_fonts, x_get_font_info, x_load_font, x_query_font)
8421 (x_find_ccl_program, x_get_font_repertory): Delete externs.
8422 (struct x_output): Change type of `font' to `struct font *'.
8423
8424 * xterm.c: Throughout the file, delete all USE_FONT_BACKEND
8425 conditionals. Don't check enable_font_backend. Delete all codes
8426 used only when USE_FONT_BACKEND is not defined. Don't include ccl.h.
8427 (x_per_char_metric, x_encode_char): Deleted.
8428 (x_set_cursor_gc, x_set_mouse_face_gc): Don't set GCFont.
8429 (x_compute_glyph_string_overhangs): Adjusted for the change of
8430 `struct face'.
8431 (x_draw_glyph_string_foreground)
8432 (x_draw_composite_glyph_string_foreground): Likewise.
8433 (x_draw_glyph_string): Likewise. Use font->underline_position and
8434 font->underline_thickness.
8435 (x_new_font): Renamed from x_new_fontset2.
8436 (x_new_fontset, x_get_font_info, x_list_fonts): Deleted.
8437 (x_check_font): Call `check' method of a font driver.
8438 (x_font_min_bounds, x_compute_min_glyph_bounds, x_load_font)
8439 (x_query_font, x_get_font_repertory): Deleted.
8440 (x_find_ccl_program): Renamed and moved to xfont.c.
8441 (x_redisplay_interface): Adjusted for the change of `struct
8442 redisplay_interface'.
8443
8444 * w32fns.c: Throughout the file, delete all USE_FONT_BACKEND
8445 conditionals. Don't check enable_font_backend. Delete all codes
8446 used only when USE_FONT_BACKEND is not defined. Surround non-used
8447 code by "#ifdef OLD_FONT" and "endif".
8448 (Fw32_select_font): Use FONT_COMPAT to get old font structure.
8449
8450 * w32font.h (struct w32font_info): New member.
8451 (FONT_COMPAT): New macro.
8452 (w32font_open_internal): Prototype adjusted.
8453
8454 * w32gui.h (XGCValues): Surround `XFontStruct *font' by "if
8455 OLD_FONT" and "endif".
8456
8457 * w32font.c: Throughout the file, delete all USE_FONT_BACKEND
8458 conditionals. Don't check enable_font_backend. Delete all codes
8459 used only when USE_FONT_BACKEND is not defined.
8460 (w32font_open): Return a font-object. Make a font-object by
8461 font_make_object. Adjusted for the change of struct w32font_info.
8462 (w32font_close): Don't free struct font. Adjusted for the change
8463 of struct w32font_info.
8464 (w32font_encode_char, w32font_text_extents, w32font_draw):
8465 Adjusted for the change of struct w32font_info.
8466 (w32font_draw): Likewise.
8467 (w32font_list_internal): Return a list, not vector.
8468 (w32font_open_internal): Change the 4th arg to font-object.
8469 Adjusted for the change of struct w32font_info and font-object format.
8470 (add_font_name_to_list): Don't downcase names.
8471 (w32_enumfont_pattern_entity): Make a font-entity by
8472 font_make_entity. Adjusted for the format change of font-entity.
8473 Use FONT_SET_STYLE to set a style-related font property. If a
8474 font is scalable, set avgwidth property to 0. Set font-entity
8475 property by font_put_extra.
8476 (font_matches_spec): Adjusted for the format change of font-entity.
8477 (w32_weight_table, w32_decode_weight): New variables.
8478 (w32_encode_weight): New function.
8479 (fill_in_logfont): Adjusted for the format change of font-spec.
8480 (w32font_full_name): Use FONT_WEIGHT_SYMBOLIC to get a symbol
8481 weight value.
8482 (w32font_driver): Adjusted for the change of struct font_driver.
8483
8484 * w32term.h: Throughout the file, delete all USE_FONT_BACKEND
8485 conditionals. Don't check enable_font_backend. Surround non-used
8486 code by "#ifdef OLD_FONT" and "endif".
8487 (FONT_WIDTH, FONT_HEIGHT, FONT_BASE, FONT_DESCENT)
8488 (FONT_AVG_WIDTH): Adjusted for the change of struct font.
8489
8490 * w32term.c: Throughout the file, delete all USE_FONT_BACKEND
8491 conditionals. Don't check enable_font_backend. Delete all codes
8492 used only when USE_FONT_BACKEND is not defined. Surround non-used
8493 code by "#ifdef OLD_FONT" and "endif".
8494
8495 * w32uniscribe.c: Delete USE_FONT_BACKEND conditional.
8496 (uniscribe_open): Return value changed to font-object.
8497 Adjusted for the format change of font-object.
8498 (uniscribe_otf_capability): Adjusted for the change of struct font.
8499 (add_opentype_font_name_to_list): Don't downcase names.
8500 (uniscribe_font_driver): Adjusted for the change of struct
8501 font_driver.
8502
8503 2008-05-13 Chong Yidong <cyd@stupidchicken.com>
8504
8505 * dispnew.c (update_frame_1): Check if tty output is still valid
8506 before flushing it.
8507
8508 2008-05-13 Jan Djärv <jan.h.d@swipnet.se>
8509
8510 * xterm.c (handle_one_xevent): Don't pass buttons higher than 3
8511 to Gtk+ menus.
8512
8513 2008-05-13 Stefan Monnier <monnier@iro.umontreal.ca>
8514
8515 * dired.c (file_name_completion): Tweak the code so as to always do it
8516 in a single pass. Tighten the scope of some variables.
8517
8518 * dired.c (Qdefault_directory): New var.
8519 (file_name_completion): Use it instead of Fexpand_file_name.
8520 (syms_of_dired): Initialize it.
8521
8522 2008-05-12 Stefan Monnier <monnier@iro.umontreal.ca>
8523
8524 * fileio.c (double_dollars): Remove dead code.
8525
8526 2008-05-10 Eli Zaretskii <eliz@gnu.org>
8527
8528 * dired.c (Ffile_attributes, Fdirectory_files_and_attributes):
8529 Mention w32-get-true-file-attributes in doc string.
8530
8531 * w32proc.c (syms_of_ntproc) <w32-get-true-file-attributes>: Doc fix.
8532
8533 2008-05-09 Glenn Morris <rgm@gnu.org>
8534
8535 * fileio.c (Fread_file_name): Remove reference to insdef, deleted
8536 2008-04-23.
8537
8538 2008-05-09 Eli Zaretskii <eliz@gnu.org>
8539
8540 Support for reporting owner and group of each file on MS-Windows:
8541 * dired.c (stat_uname, stat_gname): New functions, with special
8542 implementation for w32.
8543 (Ffile_attributes): Use them instead of getpwuid and getgrgid.
8544
8545 * w32.c: Rename the_passwd_* to dflt_passwd_*.
8546 (dflt_group_name): New static variable.
8547 (dflt_group): Rename from the_group.
8548 (init_user_info): Init dflt_group fields. Get user's group name
8549 from LookupAccountSid.
8550 (g_b_init_get_file_security, g_b_init_get_security_descriptor_owner)
8551 (g_b_init_get_security_descriptor_group, g_b_init_is_valid_sid):
8552 New initialization states.
8553 (globals_of_w32): Initialize them to zero. Initialize the default
8554 group name to "None".
8555 (GetFileSecurity_Name): New global var, the name of the function
8556 to call for GetFileSecurity.
8557 (GetFileSecurity_Proc, GetSecurityDescriptorOwner_Proc)
8558 (GetSecurityDescriptorGroup_Proc, IsValidSid_Proc): New typedefs.
8559 (get_file_security, get_security_descriptor_owner)
8560 (get_security_descriptor_group, is_valid_sid)
8561 (get_file_security_desc, get_rid, get_name_and_id)
8562 (get_file_owner_and_group): New functions.
8563 (stat): Use get_file_security_desc and get_file_owner_and_group to
8564 report the owner and primary group of each file. Don't ignore the
8565 high 32 bits of file's size, now that st_size is 64-bit wide.
8566 Fix test when to get true file attributes.
8567 (init_user_info): Use get_rid instead of equivalent inline code.
8568 (fstat): Don't ignore the high 32 bits of file's size.
8569
8570 2008-05-09 Chong Yidong <cyd@stupidchicken.com>
8571
8572 * image.c (png_load): Use correct bit-depth for setting background
8573 color.
8574
8575 2008-05-08 Eli Zaretskii <eliz@gnu.org>
8576
8577 * Makefile.in (lisp, shortlisp): Rename epa-file-hook.elc to
8578 epa-hook.elc.
8579
8580 2008-05-08 Juanma Barranquero <lekktu@gmail.com>
8581
8582 * font.c (Ffont_match_p): Don't use `iff' in docstring.
8583
8584 2008-05-07 Dan Nicolaescu <dann@ics.uci.edu>
8585
8586 * macfns.c (Fx_create_frame): Make a copy of frame parameters
8587 because the original parameters are in pure storage now.
8588 (mac_window): Remove unused params. Update callers.
8589
8590 2008-05-06 Stefan Monnier <monnier@iro.umontreal.ca>
8591
8592 * lread.c (substitute_object_recurse): Use lower-level primitives.
8593 Don't signal errors when traversing sub-char-tables.
8594 Don't loop over all the possible characters when traversing char-tables.
8595
8596 * print.c (print_preprocess): Add sub-char-tables to the print-table,
8597 just like we do in print.c.
8598
8599 2008-05-05 Stefan Monnier <monnier@iro.umontreal.ca>
8600
8601 * minibuf.c (Ftry_completion): Remove code left over from when we used
8602 scmp instead of Fcompare_strings.
8603
8604 2008-05-04 Juanma Barranquero <lekktu@gmail.com>
8605
8606 * w32fns.c (Fw32_battery_status): Fix computation of %t (h:min) format.
8607
8608 2008-05-04 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
8609
8610 * image.c [USE_MAC_IMAGE_IO] (image_load_image_io):
8611 Create bitmap context in native byte order.
8612
8613 * macterm.c (XDrawLine)
8614 (XCreatePixmapFromBitmapData) [USE_MAC_IMAGE_IO]: Create bitmap
8615 context in native byte order.
8616
8617 2008-05-04 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
8618
8619 * config.in: Regenerate.
8620
8621 * image.c (PIX_MASK_DRAW, PIX_MASK_RETAIN) [USE_MAC_IMAGE_IO]:
8622 New definitions for Image I/O support.
8623 (XGetImage, XPutPixel, XGetPixel, XDestroyImage)
8624 (mac_create_cg_image_from_image, x_create_x_image_and_pixmap)
8625 [USE_MAC_IMAGE_IO]: Add implementations for Image I/O support.
8626 (mac_data_provider_release_data, image_load_image_io)
8627 [USE_MAC_IMAGE_IO]: New functions.
8628 (CGImageCreateWithPNGDataProviderProcType) [MAC_OSX]: Remove typedef.
8629 (MyCGImageCreateWithPNGDataProvider) [MAC_OSX]: Remove variable.
8630 (init_image_func_pointer) [MAC_OSX]: Remove function.
8631 (image_load_quartz2d) [MAC_OSX]: Check availability of
8632 CGImageCreateWithPNGDataProvider at compile time.
8633 Use lowercase `false' for boolean constant.
8634 (png_load, jpeg_load, tiff_load, gif_load) [USE_MAC_IMAGE_IO]:
8635 Use image_load_image_io.
8636 (png_load) [!USE_MAC_IMAGE_IO && MAC_OSX]:
8637 Don't check MyCGImageCreateWithPNGDataProvider.
8638 (init_image) [MAC_OSX && TARGET_API_MAC_CARBON]:
8639 Don't call init_image_func_pointer.
8640
8641 * macgui.h (Pixmap) [USE_MAC_IMAGE_IO]: New definition for Image I/O.
8642
8643 * macterm.c (mac_cg_color_space_rgb) [USE_CG_DRAWING]:
8644 Make variable non-static.
8645 (XDrawLine, XCreatePixmap, XCreatePixmapFromBitmapData, XFreePixmap)
8646 [USE_MAC_IMAGE_IO]: Add implementations for Image I/O support.
8647
8648 * macterm.h (ARGB_TO_ULONG, ALPHA_FROM_ULONG): New macros.
8649 (RED_FROM_ULONG): Mask off higher bits.
8650 (mac_cg_color_space_rgb) [USE_MAC_IMAGE_IO]: New extern.
8651
8652 * s/darwin.h [HAVE_CARBON && HAVE_AVAILABILITYMACROS_H]:
8653 Include AvailabilityMacros.h.
8654 (USE_MAC_IMAGE_IO, LIBS_IMAGE) [HAVE_CARBON]: New defines.
8655 (LIBS_CARBON) [HAVE_CARBON]: Use LIBS_IMAGE.
8656
8657 2008-05-03 Stefan Monnier <monnier@iro.umontreal.ca>
8658
8659 * chartab.c (Fset_char_table_range): If range is t, really set all
8660 chars to that value.
8661
8662 2008-05-03 Eli Zaretskii <eliz@gnu.org>
8663
8664 * dired.c (Ffile_attributes): Don't allow the device number become
8665 negative.
8666
8667 2008-05-02 Daiki Ueno <ueno@unixuser.org>
8668
8669 * Makefile.in (lisp, shortlisp): Add epa-file-hook.elc.
8670
8671 2008-05-02 Juri Linkov <juri@jurta.org>
8672
8673 * minibuf.c (Fread_from_minibuffer, Fread_string, Fread_command)
8674 (Fread_variable, Fread_buffer, Fcompleting_read): Document the
8675 DEFAULT argument as a list of default values in docstrings.
8676
8677 2008-05-01 Chong Yidong <cyd@stupidchicken.com>
8678
8679 * puresize.h (BASE_PURESIZE): Increase to 1210000.
8680
8681 2008-05-01 Martin Rudalics <rudalics@gmx.at>
8682
8683 * dispnew.c (change_frame_size_1): Preserve small windows when
8684 shrinking frames by calling set_window_height|width with third
8685 arg 2.
8686
8687 * window.h (struct window): Replace field too_small_ok by field
8688 resize_proportionally.
8689
8690 * window.c (make_window): Initialize resize_proportionally.
8691 (enlarge_window): Temporarily set resize_proportionally to make
8692 sure that shrink_windows does scale the window proportionally.
8693 (shrink_windows): When window has resize_proportionally set try
8694 to shrink it proportionally by stealing from other windows.
8695 (struct saved_window, Fset_window_configuration)
8696 (compare_window_configurations): Handle resize_proportionally.
8697 (WINDOW_TOTAL_SIZE): New macro.
8698 (window_min_size, shrink_windows, size_window): Use it.
8699 (check_min_window_sizes): Remove. Invalid values of
8700 window-min-height|width are handled by window_min_size_2 now.
8701 (size_window, Fsplit_window, enlarge_window)
8702 (adjust_window_trailing_edge, grow_mini_window): Don't call
8703 check_min_window_sizes.
8704 (window_min_size_2, window_min_size_1, window_min_size):
8705 New argument safe_p for retrieving "safe" minimum sizes.
8706 (Fdisplay_buffer, Fsplit_window, enlarge_window)
8707 (adjust_window_trailing_edge, grow_mini_window):
8708 Adjust arguments of window_min_size... functions.
8709 (shrink_windows): Argument min_size removed. New argument
8710 safe_p allows shrinking windows to their safe minimum sizes.
8711 Calculate minimum size and decide whether a window shall be
8712 deleted for each window individually.
8713 (size_window): When nodelete_p equals 2, tell shrink_windows to
8714 delete windows only if their new minimum size is no more safe.
8715 (shrink_window_lowest_first): Call window_min_size_1 to make
8716 sure to preserve modeline of bottom-most window when resizing
8717 the minibuffer.
8718 (Fset_window_configuration, Fcurrent_window_configuration)
8719 (compare_window_configurations): Do not handle
8720 window-min-height|width any more.
8721 (syms_of_window): Clarify window-min-height|width doc-strings.
8722
8723 2008-04-30 Stefan Monnier <monnier@iro.umontreal.ca>
8724
8725 * dired.c (file_name_completion): Fix up the encoding/decoding issue
8726 some more. Copy some of the code from Ftry_completions.
8727 Remove special case code that dates back to initial revision when the
8728 slash was only added when necessary and that can't trigger nowadays.
8729
8730 2008-04-27 Kenichi Handa <handa@m17n.org>
8731
8732 * font.c (font_prop_validate): Signal `error' instead of `font'.
8733
8734 2008-04-29 Jason Rumney <jasonr@gnu.org>
8735
8736 * w32fns.c (Fw32_battery_status): New defun.
8737 (syms_of_w32fns): Defsubr it.
8738
8739 2008-04-28 Andreas Schwab <schwab@suse.de>
8740
8741 * dired.c (file_name_completion): Fix another mixing of encoded
8742 and decoded names.
8743
8744 2008-04-28 Juanma Barranquero <lekktu@gmail.com>
8745
8746 * w32fns.c (Fw32_define_rgb_color): Fix typo in docstring.
8747
8748 2008-04-27 Juanma Barranquero <lekktu@gmail.com>
8749
8750 * fringe.c (Fdefine_fringe_bitmap): Doc fix.
8751
8752 2008-04-27 Andreas Schwab <schwab@suse.de>
8753
8754 * dired.c (file_name_completion): Fix inappropriate mixing of
8755 encoded and decoded names.
8756
8757 * xterm.c (XTread_socket): Fix use of uninitialized variable.
8758
8759 * puresize.h (BASE_PURESIZE): Increase to 1200000.
8760
8761 2008-04-26 Eli Zaretskii <eliz@gnu.org>
8762
8763 * dired.c (Ffile_attributes) [WINDOWSNT]: Undo change from
8764 2008-03-31, it's not needed anymore with `struct stat' definition
8765 on nt/inc/sys/stat.h. Undo changes from 2007-01-12 and 2007-01-13
8766 for the same reasons.
8767
8768 2008-04-25 Dennis Gilmore <ausil@fedoraproject.org> (tiny change)
8769
8770 * m/sparc.h: Additional redefinitions for GNU/Linux.
8771
8772 2008-04-23 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
8773
8774 * macterm.c (Vmac_ts_active_input_buf) [USE_MAC_TSM]: New variable.
8775 (syms_of_macterm) [USE_MAC_TSM]: Defvar it.
8776 (Qmouse_drag_overlay) [MAC_OSX]: New variable.
8777 (syms_of_macterm) [MAC_OSX]: Intern and staticpro it.
8778 (mac_get_selected_range, mac_store_buffer_text_to_unicode_chars)
8779 (mac_ax_selected_text_range) [MAC_OSX]: New functions.
8780 (mac_ax_number_of_characters) [MAC_OS_X_VERSION_MAX_ALLOWED >= 1030]:
8781 Likewise.
8782
8783 * mactoolbox.c (Vmac_ts_active_input_buf) [USE_MAC_TSM]: Add extern.
8784 (fast_find_position, x_y_to_hpos_vpos, mac_ax_selected_text_range)
8785 (mac_ax_number_of_characters): Add externs.
8786 (mac_get_selected_range, mac_store_buffer_text_to_unicode_chars)
8787 [USE_MAC_TSM]: Likewise.
8788 (mac_handle_text_input_event) [MAC_OSX]:
8789 Handle kEventTextInputOffsetToPos for no active input area case.
8790 Handle kEventTextInputPosToOffset and kEventTextInputGetSelectedText.
8791 (mac_handle_document_access_event)
8792 [MAC_OS_X_VERSION_MAX_ALLOWED >= 1030]: New function.
8793 (install_application_handler) [MAC_OSX]: Register handlers for
8794 kEventTextInputPosToOffset and kEventTextInputGetSelectedText.
8795 (install_application_handler) [MAC_OS_X_VERSION_MAX_ALLOWED >= 1030]:
8796 Register mac_handle_document_access_event.
8797
8798 * xdisp.c (x_y_to_hpos_vpos, fast_find_position) [HAVE_CARBON]:
8799 Make functions non-static.
8800
8801 2008-04-23 Stefan Monnier <monnier@iro.umontreal.ca>
8802
8803 * fileio.c (Vread_file_name_function, Vread_file_name_predicate)
8804 (read_file_name_completion_ignore_case, insert_default_directory)
8805 (Qdefault_directory): Move to minibuffer.el.
8806 (Fread_file_name): Call the new `read-file-name' instead.
8807
8808 2008-04-23 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
8809
8810 * mac.c (create_apple_event) [TARGET_API_MAC_CARBON]:
8811 Make function non-static.
8812 (create_apple_event_from_event_ref) [TARGET_API_MAC_CARBON]:
8813 Remove function.
8814 (create_apple_event_from_drag_ref) [TARGET_API_MAC_CARBON]:
8815 Move to mactoolbox.c.
8816 (mac_event_parameters_to_lisp) [TARGET_API_MAC_CARBON]: New function.
8817
8818 * macgui.h (CGFloat) [!CGFLOAT_DEFINED]: New typedef.
8819 (mac_rect_make): New macro.
8820
8821 * macterm.c (mac_draw_image_string_atsui) [MAC_OSX]: Use CGFloat
8822 instead of float.
8823 (mac_draw_image_string_cg) [USE_CG_TEXT_DRAWING]: Likewise.
8824 (init_cg_color, mac_draw_line, mac_draw_cg_image, XSetForeground)
8825 (XSetBackground) [USE_CG_DRAWING]: Likewise.
8826 (mac_draw_image_string_atsui) [MAC_OSX]: Use mac_rect_make instead of
8827 CGRectMake.
8828 (mac_draw_image_string_cg) [USE_CG_TEXT_DRAWING]: Likewise.
8829 (mac_erase_rectangle, mac_draw_cg_image, mac_fill_rectangle)
8830 (mac_set_clip_rectangles) [USE_CG_DRAWING]: Likewise.
8831 (XCreatePixmap, XCreatePixmapFromBitmapData): Use Window
8832 instead of WindowRef in argument type.
8833 (XCreatePixmap) [!MAC_OS8]: Don't call SetPortWindowPort.
8834 (mac_invert_rectangle): Use CGContextSetBlendMode if available.
8835 (mac_set_clip_rectangles, mac_reset_clip_rectangles): Take argument F
8836 instead of DISPLAY. All uses changed.
8837 (mac_handle_size_change): Don't call SET_FRAME_GARBAGED.
8838 (x_calc_absolute_position): Simplify so as not to use
8839 FRAME_PIXEL_WIDTH/FRAME_PIXEL_HEIGHT.
8840
8841 * macterm.h (XCreatePixmap, XCreatePixmapFromBitmapData): Use Window
8842 instead of WindowRef in argument type.
8843 (create_apple_event_from_event_ref, create_apple_event_from_drag_ref)
8844 [TARGET_API_MAC_CARBON]: Remove externs.
8845 (create_apple_event, mac_event_parameters_to_lisp)
8846 [TARGET_API_MAC_CARBON]: Add externs.
8847
8848 * mactoolbox.c (Vmac_ts_script_language_on_focus)
8849 (saved_ts_script_language_on_focus) [USE_MAC_TSM]: Remove externs.
8850 (XTread_socket) [USE_MAC_TOOLBAR]: Select window if its structure part
8851 is clicked.
8852 (x_activate_menubar): Remove extern for saved_menu_event_location.
8853 (create_apple_event_from_drag_ref) [TARGET_API_MAC_CARBON]:
8854 Move from mac.c.
8855
8856 2008-04-23 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
8857
8858 * alloc.c [!SYSTEM_MALLOC && !SYNC_INPUT] (uninterrupt_malloc)
8859 [HAVE_GTK_AND_PTHREAD && !DOUG_LEA_MALLOC]: Don't use recursive mutex.
8860
8861 2008-04-23 Jason Rumney <jasonr@gnu.org>
8862
8863 * w32.c (stat): When Vw32_get_true_file_attributes is Qlocal, get
8864 attributes only for local files.
8865
8866 * w32proc.c (syms_of_ntproc): Change Vw32_get_true_file attributes
8867 default to Qlocal.
8868
8869 2008-04-22 Juri Linkov <juri@jurta.org>
8870
8871 * buffer.c (Fswitch_to_buffer): Change interactive spec to call
8872 read-buffer-to-switch instead of using the letter "B".
8873
8874 2008-04-21 Stefan Monnier <monnier@iro.umontreal.ca>
8875
8876 * fileio.c (Qdefault_directory): New variable.
8877 (Fread_file_name): Use it to pass `dir' to the completion functions.
8878
8879 2008-04-20 Chong Yidong <cyd@stupidchicken.com>
8880
8881 * xdisp.c (pos_visible_p): Check if iterator stops on a display string.
8882
8883 2008-04-19 Stefan Monnier <monnier@iro.umontreal.ca>
8884
8885 * keyboard.c (Vpre_help_message): Remove.
8886 (show_help_echo): Remove default C code.
8887
8888 * dired.c (directory_files_internal, file_name_completion):
8889 Only call ENCODE_FILE if the string is indeed decoded.
8890
8891 2008-04-18 Stefan Monnier <monnier@iro.umontreal.ca>
8892
8893 * Makefile.in (TOOLKIT_DEFINES): Remove.
8894 (LIBW): Use a bit less #if, remove left over OPEN_LOOK stuff.
8895
8896 2008-04-18 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
8897
8898 * Makefile.in (MAC_OBJ): Add mactoolbox.o.
8899 (mactoolbox.o): New target.
8900
8901 * mac.c [MAC_OSX] (select_and_poll_event, sys_select):
8902 Use mac_run_loop_run_once instead of CFRunLoopRunInMode.
8903
8904 * macfns.c (x_set_background_color, mac_window, x_create_tip_frame):
8905 Use mac_set_frame_window_background instead of XSetWindowBackground.
8906 (x_set_tool_bar_lines) [USE_MAC_TOOLBAR]:
8907 Use mac_is_window_toolbar_visible instead of IsWindowToolbarVisible.
8908 (x_set_name_internal) [TARGET_API_MAC_CARBON]: Use mac_set_window_title
8909 instead of SetWindowTitleWithCFString.
8910 (mac_update_proxy_icon) [TARGET_API_MAC_CARBON]: Remove BLOCK_INPUT.
8911 Move function to mactoolbox.c.
8912 (mac_update_title_bar) [TARGET_API_MAC_CARBON]:
8913 Use mac_set_window_modified instead of SetWindowModified.
8914 Add BLOCK_INPUT around mac_set_window_modified/mac_update_proxy_icon.
8915 (mac_window, x_create_tip_frame): Use mac_create_frame_window.
8916 (Fx_focus_frame): Use mac_front_non_floating_window instead of
8917 FrontNonFloatingWindow. Use mac_activate_window instead of
8918 ActivateWindow. Use mac_active_non_floating_window instead of
8919 ActiveNonFloatingWindow.
8920 (show_hourglass, hide_hourglass) [TARGET_API_MAC_CARBON]:
8921 Use mac_show_hourglass and mac_hide_hourglass.
8922 (compute_tip_xy) [TARGET_API_MAC_CARBON]: Use mac_get_global_mouse
8923 instead of GetGlobalMouse.
8924 (Fx_show_tip): Use mac_move_window/mac_size_window/mac_show_window
8925 instead of MoveWindow/SizeWindow/ShowWindow, respectively.
8926 Use mac_bring_window_to_front instead of BringToFront.
8927 (Qfile_name_history) [TARGET_API_MAC_CARBON]: Move extern to
8928 mactoolbox.c.
8929 (Fx_file_dialog) [TARGET_API_MAC_CARBON]: Move function body to
8930 mac_file_dialog in mactoolbox.c. Use mac_file_dialog.
8931 (mac_nav_event_callback) [TARGET_API_MAC_CARBON]: Move function to
8932 mactoolbox.c.
8933
8934 * macgui.h [!HAVE_CARBON]: Include Quickdraw.h instead of QuickDraw.h.
8935 (XtPointer): Move typedef from macmenu.c.
8936 (enum button_type): Move enum from macmenu.c.
8937 (widget_value): Move typedef from macmenu.c.
8938 (M_APPLE, I_ABOUT, EXTRA_STACK_ALLOC, ARGV_STRING_LIST_ID)
8939 (DIALOG_LEFT_MARGIN, DIALOG_TOP_MARGIN, DIALOG_RIGHT_MARGIN)
8940 (DIALOG_BOTTOM_MARGIN, DIALOG_MIN_INNER_WIDTH, DIALOG_MAX_INNER_WIDTH)
8941 (DIALOG_BUTTON_BUTTON_HORIZONTAL_SPACE)
8942 (DIALOG_BUTTON_BUTTON_VERTICAL_SPACE, DIALOG_BUTTON_MIN_WIDTH)
8943 (DIALOG_TEXT_MIN_HEIGHT, DIALOG_TEXT_BUTTONS_VERTICAL_SPACE)
8944 (DIALOG_ICON_WIDTH, DIALOG_ICON_HEIGHT, DIALOG_ICON_LEFT_MARGIN)
8945 (DIALOG_ICON_TOP_MARGIN): Move defines from macmenu.c.
8946 (Selection): Move typedef from macselect.c.
8947 (RAM_TOO_LARGE_ALERT_ID, ABOUT_ALERT_ID) [MAC_OS8]: Move defines from
8948 macterm.c.
8949 (mac_set_window_title, mac_set_window_modified, mac_is_window_visible)
8950 (mac_is_window_collapsed, mac_bring_window_to_front)
8951 (mac_send_window_behind, mac_hide_window, mac_show_window)
8952 (mac_collapse_window, mac_front_non_floating_window)
8953 (mac_active_non_floating_window, mac_activate_window)
8954 (mac_move_window_structure, mac_move_window, mac_size_window)
8955 (mac_get_global_mouse, mac_is_window_toolbar_visible): New defines.
8956
8957 * macmenu.c [!TARGET_API_MAC_CARBON]: Move includes to mactoolbox.c.
8958 (enum mac_menu_kind): Move enum to mactoolbox.c.
8959 (min_menu_id): Move variable to mactoolbox.c.
8960 (quit_dialog_event_loop) [TARGET_API_MAC_CARBON]: Likewise.
8961 (DIALOG_WINDOW_RESOURCE): Move define to mactoolbox.c.
8962 (DIALOG_BUTTON_COMMAND_ID_OFFSET, DIALOG_BUTTON_COMMAND_ID_P)
8963 (DIALOG_BUTTON_COMMAND_ID_VALUE, DIALOG_BUTTON_MAKE_COMMAND_ID)
8964 [TARGET_API_MAC_CARBON]: Likewise.
8965 (XtPointer): Move typedef to macgui.h.
8966 (enum button_type): Move enum to macgui.h.
8967 (widget_value): Move typedef to macgui.h.
8968 (DIALOG_LEFT_MARGIN, DIALOG_TOP_MARGIN, DIALOG_RIGHT_MARGIN)
8969 (DIALOG_BOTTOM_MARGIN, DIALOG_MIN_INNER_WIDTH, DIALOG_MAX_INNER_WIDTH)
8970 (DIALOG_BUTTON_BUTTON_HORIZONTAL_SPACE)
8971 (DIALOG_BUTTON_BUTTON_VERTICAL_SPACE, DIALOG_BUTTON_MIN_WIDTH)
8972 (DIALOG_TEXT_MIN_HEIGHT, DIALOG_TEXT_BUTTONS_VERTICAL_SPACE)
8973 (DIALOG_ICON_WIDTH, DIALOG_ICON_HEIGHT, DIALOG_ICON_LEFT_MARGIN)
8974 (DIALOG_ICON_TOP_MARGIN): Move defines to macgui.h.
8975 (popup_activated_flag): Make variable non-static.
8976 (x_activate_menubar, install_menu_quit_handler, pop_down_menu)
8977 (add_menu_item, fill_menu, dispose_menus):
8978 Move functions to mactoolbox.c.
8979 (restore_show_help_function, menu_target_item_handler)
8980 (install_menu_target_item_handler, mac_handle_dialog_event)
8981 (install_dialog_event_handler, pop_down_dialog, create_and_show_dialog)
8982 [TARGET_API_MAC_CARBON]: Likewise.
8983 (menu_quit_handler) [MAC_OS_X_VERSION_MAX_ALLOWED >= 1030]: Likewise.
8984 (mac_dialog) [!TARGET_API_MAC_CARBON]: Likewise.
8985 (find_and_call_menu_selection, name_is_separator): Make function
8986 non-static.
8987 (Vshow_help_function, timer_check) [TARGET_API_MAC_CARBON]: Move extern
8988 to mactoolbox.c.
8989 (set_frame_menubar): Don't call install_menu_quit_handler.
8990 (menu_item_selection): New variable.
8991 (mac_menu_show): Use create_and_show_popup_menu.
8992 (create_and_show_dialog) [TARGET_API_MAC_CARBON]: Don't return
8993 selection but set variable menu_item_selection. All uses changed.
8994 (mac_fill_menubar): Rename from fill_menubar. All uses changed.
8995 Call install_menu_quit_handler. Move to mactoolbox.c.
8996
8997 * macselect.c [!TARGET_API_MAC_CARBON]: Don't include Scrap.h.
8998 (Selection): Move typedef to macgui.h.
8999 (Vselection_converter_alist, Qmac_scrap_name, Qmac_ostype)
9000 (Vmac_apple_event_map, Qmac_apple_event_class, Qmac_apple_event_id):
9001 Make variables non-static.
9002 (Vmac_dnd_known_types) [TARGET_API_MAC_CARBON]: Likewise.
9003 (mac_handle_apple_event, cleanup_all_suspended_apple_events):
9004 Make functions non-static.
9005 (Vmac_service_selection) [MAC_OSX]: Likewise.
9006 (mac_get_selection_from_symbol, get_flavor_type_from_symbol)
9007 (mac_valid_selection_target_p, mac_clear_selection)
9008 (mac_get_selection_ownership_info, mac_valid_selection_value_p)
9009 (mac_put_selection_value, mac_selection_has_target_p)
9010 (mac_get_selection_value, mac_get_selection_target_list)
9011 (init_apple_event_handler, install_drag_handler, remove_drag_handler):
9012 Move functions to mactoolbox.c.
9013 (mac_do_track_drag, mac_do_receive_drag) [TARGET_API_MAC_CARBON]:
9014 Likewise.
9015 (copy_scrap_flavor_data, mac_handle_service_event)
9016 (install_service_handler) [MAC_OSX]: Likewise.
9017 (syms_of_macselect) <Vmac_dnd_known_types>:
9018 Use mac_dnd_default_known_types.
9019
9020 * macterm.h (FRAME_OUTER_TO_INNER_DIFF_X, FRAME_OUTER_TO_INNER_DIFF_Y):
9021 Move to mactoolbox.c.
9022 (HOURGLASS_WIDTH, HOURGLASS_HEIGHT): Change to 15.
9023 (Fx_selection_owner_p): Add EXFUN.
9024 (install_window_handler, remove_window_handler, XSetWindowBackground):
9025 Remove externs.
9026 (do_apple_menu) [!TARGET_API_MAC_CARBON]: Likewise.
9027 (mac_prepare_for_quickdraw) [USE_CG_DRAWING]: Likewise.
9028 (x_raise_frame, x_lower_frame, mac_alert_sound_play)
9029 (install_application_handler, mac_get_frame_bounds, mac_get_frame_mouse)
9030 (mac_convert_frame_point_to_global, mac_set_frame_window_background)
9031 (mac_update_begin mac_update_end, mac_frame_up_to_date, x_flush)
9032 (mac_create_frame_window, mac_dispose_frame_window, mac_begin_clip)
9033 (mac_end_clip, mac_create_scroll_bar, mac_dispose_scroll_bar)
9034 (mac_set_scroll_bar_bounds, mac_redraw_scroll_bar, mac_fill_menubar)
9035 (create_and_show_popup_menu, mac_get_selection_from_symbol)
9036 (mac_valid_selection_target_p, mac_clear_selection)
9037 (mac_get_selection_ownership_info, mac_valid_selection_value_p)
9038 (mac_put_selection_value, mac_selection_has_target_p)
9039 (mac_get_selection_value, mac_get_selection_target_list): Add externs.
9040 (mac_update_proxy_icon, mac_show_hourglass, mac_hide_hourglass)
9041 (mac_reposition_hourglass, mac_file_dialog, create_and_show_dialog)
9042 (mac_dnd_default_known_types) [TARGET_API_MAC_CARBON]: Likewise.
9043 (mac_run_loop_run_once) [MAC_OSX]: Likewise.
9044 (mac_dialog) [!TARGET_API_MAC_CARBON]: Likewise.
9045 (mac_begin_cg_clip, mac_end_cg_clip) [USE_CG_DRAWING]: Likewise.
9046 (x_set_toolkit_scroll_bar_thumb) [!USE_TOOLKIT_SCROLL_BARS]: Likewise.
9047 (x_scroll_bar_set_handle) [!USE_TOOLKIT_SCROLL_BARS]: Likewise.
9048
9049 * mactoolbox.c: New file.
9050
9051 2008-04-18 Jason Rumney <jasonr@gnu.org>
9052
9053 * dired.c (Ffile_attributes) [WINDOWSNT]: Cast uid and gid to unsigned.
9054
9055 2008-04-18 Stefan Monnier <monnier@iro.umontreal.ca>
9056
9057 * character.c (Fmultibyte_char_to_unibyte):
9058 Return latin1 chars unchanged.
9059
9060 * fileio.c (Fexpand_file_name): Refine last fix so `nm' is only
9061 relocated if it points to `name'.
9062
9063 2008-04-17 Kenichi Handa <handa@m17n.org>
9064
9065 * data.c (Faset): Allow setting a multibyte character in an
9066 ASCII-only unibyte string.
9067
9068 * lisp.h (STRING_SET_MULTIBYTE): New macro.
9069
9070 2008-04-16 Stefan Monnier <monnier@iro.umontreal.ca>
9071
9072 * Makefile.in: Don't use HAVE_GTK and don't -DUSE_GTK since it's now
9073 done in config.h.
9074
9075 2008-04-16 Juanma Barranquero <lekktu@gmail.com>
9076
9077 * character.c (Fchar_bytes, Fchar_width, Fstring_width)
9078 (Fchar_direction): Add usage in the docstring.
9079
9080 2008-04-15 Chong Yidong <cyd@stupidchicken.com>
9081
9082 * keyboard.c (read_key_sequence): Remove always-true checks.
9083
9084 2008-04-14 Jason Rumney <jasonr@gnu.org>
9085
9086 * w32font.c (w32font_open_internal): Set max_bounds.descent in
9087 compatibility struct, for better underline positioning.
9088
9089 2008-04-13 David Hansen <david.hansen@gmx.net>
9090
9091 * dbusbind.c (dbus-get-unique-name): Remove extra copying of name
9092 string.
9093
9094 2008-04-12 Dan Nicolaescu <dann@ics.uci.edu>
9095
9096 * m/hp800.h (XUINT, XSET): Remove.
9097
9098 2008-04-12 Juanma Barranquero <lekktu@gmail.com>
9099
9100 * fileio.c (Fexpand_file_name): Add declaration for `p' missing in
9101 previous change.
9102
9103 2008-04-12 Stefan Monnier <monnier@iro.umontreal.ca>
9104
9105 * fileio.c (Fexpand_file_name): Tighten the scope of `p' and `o' vars.
9106 Relocate `nm' after calling DECODE_FILE, in case the GC was run.
9107
9108 2008-04-11 Stefan Monnier <monnier@iro.umontreal.ca>
9109
9110 * keymap.h (map_keymap_canonical): Declare.
9111 * xmenu.c (single_keymap_panes): Use it.
9112
9113 2008-04-11 Glenn Morris <rgm@gnu.org>
9114
9115 * eval.c (Fdefvaralias): If the alias is bound and the target is not,
9116 set the target's value to that of the alias.
9117
9118 2008-04-11 Stefan Monnier <monnier@iro.umontreal.ca>
9119
9120 * term.c (set_tty_color_mode): Left over typo.
9121
9122 2008-04-10 Michael Albinus <michael.albinus@gmx.de>
9123
9124 * fileio.c (Fmake_symbolic_link): Surround code by #ifdef S_IFLNK
9125 only after check for file name handler functions. Signal, when
9126 native functionality is not supported.
9127 (syms_of_fileio): Declare it unconditionally.
9128
9129 2008-04-10 Jason Rumney <jasonr@gnu.org>
9130
9131 * w32menu.c (is_simple_dialog, simple_dialog_show): New functions.
9132 (Fx_popup_dialog): Handle simple yes/no questions as dialogs.
9133
9134 * w32.c (logon_network_drive): Also logon to remote drives that
9135 are mapped to drive letters.
9136
9137 2008-04-10 Glenn Morris <rgm@gnu.org>
9138
9139 * xdisp.c (truncate-partial-width-windows): Doc fix.
9140
9141 2008-04-10 Stefan Monnier <monnier@iro.umontreal.ca>
9142
9143 * fileio.c (read_file_name_cleanup, Fread_file_name_internal):
9144 Move functions to minibuffer.el.
9145 (syms_of_fileio): Don't declare them.
9146
9147 2008-04-09 Stefan Monnier <monnier@iro.umontreal.ca>
9148
9149 * minibuf.c (Vcompletion_auto_help): Move to minibuffer.el.
9150 (syms_of_minibuf): Remove its initialization.
9151
9152 * minibuf.c (temp_echo_area_glyphs): Remove unused function.
9153
9154 2008-04-09 Juanma Barranquero <lekktu@gmail.com>
9155
9156 * editfns.c (Ffield_string_no_properties): Fix typo in docstring.
9157
9158 2008-04-09 Jason Rumney <jasonr@gnu.org>
9159
9160 * makefile.w32-in (distclean): Delete makefile too.
9161 (maintainer-clean): New target.
9162
9163 * xdisp.c (redisplay_internal) [!WINDOWSNT]: Conditionalize last change.
9164
9165 * w32term.c (w32_compute_glyph_string_overhangs): Compute overhangs
9166 for new font backend and composite cases.
9167
9168 2008-04-09 Jan Djärv <jan.h.d@swipnet.se>
9169
9170 * atimer.c (alarm_signal_handler): Call run_timers if not SYNC_INPUT.
9171 Most of the code moved to run_timers.
9172 (do_pending_atimers): Call run_timers.
9173 (run_timers): New function.
9174
9175 * sysdep.c (emacs_write): If SYNC_INPUT and pending_atimers,
9176 run atimers.
9177
9178 * process.c (wait_reading_process_output): The same as above.
9179
9180 2008-04-09 Stefan Monnier <monnier@iro.umontreal.ca>
9181
9182 * minibuf.c (last_exact_completion): Remove variable.
9183 (Fdelete_minibuffer_contents, do_completion, Fminibuffer_complete)
9184 (complete_and_exit_1, complete_and_exit_2)
9185 (Fminibuffer_complete_and_exit, Fminibuffer_complete_word)
9186 (Fdisplay_completion_list, display_completion_list_1)
9187 (Fminibuffer_completion_help, Fself_insert_and_exit)
9188 (Fexit_minibuffer, Fminibuffer_message): Move functions to
9189 minibuffer.el.
9190 (syms_of_minibuf): Remove corresponding initializations.
9191
9192 * keyboard.c (Qdeactivate_mark): New var.
9193 (command_loop_1): Use it to call `deactivate-mark'.
9194 (syms_of_keyboard): Initialize it.
9195
9196 * xdisp.c (redisplay_internal): Reset tty's color_mode when switching
9197 to another frame.
9198 * frame.c (do_switch_frame): Refine the top_frame/async_visible code.
9199 Don't call set_tty_color_mode.
9200 (store_frame_param): Reset previous_frame rather than call
9201 set_tty_color_mode.
9202 * term.c (set_tty_color_mode): Rewrite.
9203 * dispextern.h (set_tty_color_mode): New type.
9204 * termchar.h (struct tty_display_info): Add `previous_color_mode'.
9205
9206 2008-04-08 Stefan Monnier <monnier@iro.umontreal.ca>
9207
9208 * keymap.c (access_keymap): Remove the value 2 for t_ok which was used
9209 for generic chars, which do not exist any more in emacs-unicode.
9210
9211 2008-04-08 Michael Albinus <michael.albinus@gmx.de>
9212
9213 * coding.c (detect_coding_emacs_mule)
9214 (Ffind_operation_coding_system): Fix typo.
9215
9216 2008-04-08 Jason Rumney <jasonr@gnu.org>
9217
9218 * w32uniscribe.c (SNAME): Extract only symbol name.
9219
9220 * w32font.h (struct w32_metric_cache): New struct.
9221 (w32font_info): Use it.
9222 (W32METRIC_NO_ATTEMPT, W32METRIC_SUCCESS, W32METRIC_FAIL)
9223 (CACHE_BLOCKSIZE): New constants.
9224
9225 * w32font.c (Qja, Qko, Qzh): New symbols.
9226 (syms_of_w32font): Initialise them.
9227 (font_matches_spec): Use them to filter by language.
9228 (recompute_cached_metrics): Remove function.
9229 (compute_metrics, clear_cached_metrics): New functions.
9230 (w32font_encode_char): Use them to manage metric cache.
9231 (w32font_text_extents): Cache metrics for all glyphs on demand.
9232 Delay converting glyph indices to WORD until needed.
9233 (w32font_open_internal): Initialize metric cache to empty.
9234 (registry_to_w32_charset): Charset should always be a symbol.
9235 (fill_in_logfont, list_all_matching_fonts): Family should
9236 always be a symbol.
9237
9238 2008-04-06 Jason Rumney <jasonr@gnu.org>
9239
9240 * w32uniscribe.c (uniscribe_shape): Increase items buffer size.
9241 Give up if glyph indices not supported. Use uniscribe obtained
9242 ABC widths for individual metrics. Map glyph clusters back to
9243 characters using fClusterStart flag. Return number of glyphs
9244 produced, not chars processed.
9245 (uniscribe_shape): Map char at FROM to current glyph.
9246
9247 2008-04-05 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
9248
9249 * macmenu.c (fill_menu) [TARGET_API_MAC_CARBON]:
9250 Use SetMenuItemHierarchicalMenu.
9251
9252 2008-04-05 Jason Rumney <jasonr@gnu.org>
9253
9254 * image.c (pbm_load): Allow color values up to 65535.
9255 Throw an error if max_color_idx is outside the supported range.
9256 Report an error when image size is invalid.
9257 Read two bytes at a time when raw images have max_color_idx above 255.
9258
9259 2008-04-05 Eli Zaretskii <eliz@gnu.org>
9260
9261 * w32.c (readdir): If FindFirstFile/FindNextFile return in
9262 cFileName a file name that includes `?' characters, use the 8+3
9263 alias in cAlternateFileName instead.
9264
9265 2008-04-05 Kenichi Handa <handa@ni.aist.go.jp>
9266
9267 * ccl.c (ccl_driver): If ccl->quit_silently is nonzero, don't
9268 append "CCL: Quitted" when the CCL program is quitted.
9269 (setup_ccl_program): Initialize ccl->quit_silently to zero.
9270
9271 * ccl.h (struct ccl_program): New member quit_silently.
9272
9273 2008-04-05 Chong Yidong <cyd@stupidchicken.com>
9274
9275 * search.c (compile_pattern_1): Treat non-nil and non-string of
9276 search-spaces-regexp as nil.
9277
9278 * minibuf.c (Fassoc_string): Tweak docstring.
9279
9280 2008-04-05 Eli Zaretskii <eliz@gnu.org>
9281
9282 * dired.c (Ffile_attributes): Support inode numbers wider than 32
9283 bits. Remove ugly WINDOWSNT-specific kludge introduced on
9284 2008-03-14 to force inode be positive.
9285
9286 * w32.c (sys_chown, stat, fstat): Use S_* constants instead of
9287 _S_* ones, since we now use our own sys/stat.h.
9288 (stat, fstat): Don't mangle the inode number.
9289 (init_user_info): Don't restrict UID and GID to 0-60000 range.
9290
9291 2008-04-04 Stefan Monnier <monnier@iro.umontreal.ca>
9292
9293 * frame.h (struct frame): Give one more bit to `visible' since we use
9294 values larger than 1 to indicate obscured frames on ttys.
9295
9296 * keymap.c (Qkeymap_canonicalize): New var.
9297 (Fmap_keymap_internal): New fun.
9298 (describe_map): Use keymap-canonicalize.
9299
9300 * undo.c (last_boundary_buffer, last_boundary_position): New vars.
9301 (Fundo_boundary): Set them.
9302 (syms_of_undo): Initialize them.
9303 (record_point): Use them instead of last_point_position*.
9304 (last_undo_buffer): Change type.
9305
9306 2008-04-04 Jason Rumney <jasonr@gnu.org>
9307
9308 * w32font.c (w32font_text_extents): Use font's ascent and descent.
9309 (recompute_cached_metrics): Don't set ascent and descent per char.
9310
9311 * w32uniscribe.c (uniscribe_check_otf): Fix last change.
9312 (uniscribe_check_otf): Add GC protection before consing.
9313 Rearrange loop for counting features.
9314
9315 2008-04-03 Stefan Monnier <monnier@iro.umontreal.ca>
9316
9317 * insdel.c (insert_from_buffer_1): Don't compare bytes in destination
9318 buffer with byte-size of source buffer.
9319
9320 2008-04-03 Chong Yidong <cyd@stupidchicken.com>
9321
9322 * callint.c (Fcall_interactively): Handle temporary region even
9323 when shift-select-mode is off.
9324
9325 2008-04-03 Jason Rumney <jasonr@gnu.org>
9326
9327 * w32uniscribe.c (uniscribe_check_otf): Sanity check otf_spec.
9328
9329 2008-04-03 Kenichi Handa <handa@m17n.org>
9330
9331 * coding.c (CATEGORY_MASK_ANY): Add CATEGORY_MASK_UTF_16_AUTO.
9332 (CATEGORY_MASK_UTF_16): Likewise.
9333 (detect_coding_utf_16): Add heuristics to reject utf-16 for a
9334 binary file.
9335 (detect_coding): Add null-byte detection for a binary file.
9336 (detect_coding_system): Likewise.
9337
9338 2008-04-03 Jason Rumney <jasonr@gnu.org>
9339
9340 * w32uniscribe.c: New file.
9341
9342 * font.h (uniscribe_font_driver) [WINDOWSNT]: Declare for w32fns.c.
9343
9344 * w32font.h (uniscribe_check_otf): Declare for w32font.c.
9345
9346 * w32font.c (Qbalinese, Qbuginese, Qbuhid, Qcuneiform, Qcypriot)
9347 (Qdeseret, Qglagolitic, Qgothic, Qhanunoo, Qkharoshthi)
9348 (Qlimbu, Qlinear_b, Qold_italic, Qold_persian, Qosmanya)
9349 (Qphags_pa, Qphoenician, Qshavian, Qsyloti_nagri)
9350 (Qtagalog, Qtagbanwa, Qtai_le, Qtifinagh, Qugaritic)
9351 (Qphonetic): New symbols.
9352 (syms_of_w32font): Initialize them.
9353 (font_supported_scripts): Use them.
9354 (w32font_list_family): List all charsets.
9355 (w32font_text_extents, recompute_cached_metrics): Fix metric
9356 calculations.
9357 (w32_enumfont_pattern_entity): Make full_type a DWORD.
9358 Give opentype fonts their own format.
9359 (font_matches_spec): New arguments backend and logfont.
9360 Handle :otf spec for uniscribe backend.
9361 (add_font_entity_to_list): Match truetype fonts in uniscribe backend.
9362 (fill_in_logfont): Use DEFAULT_CHARSET when charset not supplied.
9363
9364 * w32fns.c (Fx_create_frame): Conditionally register uniscribe
9365 font backend.
9366 (globals_of_w32fns): Initialize uniscribe font backend.
9367
9368 * makefile.w32-in (CONFIG_H): New variable. Use it to clean up
9369 dependencies.
9370 (w32uniscribe.$(O)): New file to build.
9371 (FONT_OBJ): Include w32uniscribe.$(O).
9372 (LIBS): Add uniscribe libraries.
9373
9374 * ftfont.c (ftfont_get_open_type_spec): Check spec->script, not val.
9375
9376 2008-04-02 Chong Yidong <cyd@stupidchicken.com>
9377
9378 * callint.c (Vshift_select_mode): New var.
9379 (Finteractive): Document new ^ spec.
9380 (Fcall_interactively): Call handle-shift-selection if the ^ spec
9381 is present.
9382
9383 * keyboard.c (Vthis_command_keys_shift_translated): New var.
9384 (command_loop_1): Avoid running the direct display versions of
9385 forward-char and backward-char if shift-selection may occur.
9386 (read_key_sequence): Set Vthis_command_keys_shift_translated if
9387 shift-translation takes place.
9388
9389 * buffer.c (Vtransient_mark_mode): Move docstring to simple.el to
9390 avoid clobbering by define-minor-mode.
9391
9392 * cmds.c (Fforward_char, Fbackward_char, Fforward_line)
9393 (Fbeginning_of_line, Fend_of_line): Add ^ interactive spec.
9394
9395 * syntax.c (Fforward_word): Add ^ interactive spec.
9396
9397 * window.c (Fscroll_up, Fscroll_down, Fscroll_left)
9398 (Fscroll_right): Add ^ interactive spec.
9399
9400 2008-04-01 Stefan Monnier <monnier@iro.umontreal.ca>
9401
9402 * xdisp.c (try_window_id): Don't forget to reset delta_bytes.
9403
9404 * casefiddle.c (casify_object): Fix up int/EMACS_INT mixup.
9405
9406 * charset.c (Funibyte_charset, Fset_unibyte_charset): Remove.
9407
9408 2008-03-31 Juri Linkov <juri@jurta.org>
9409
9410 * window.c (Fdisplay_buffer): Reinitialize `tem' to nil.
9411
9412 2008-03-30 Jan Djärv <jan.h.d@swipnet.se>
9413
9414 * gtkutil.c (xg_set_geometry): Fix indentation.
9415 (xg_resize_outer_widget): Remove.
9416 (x_wm_size_hint_off): Fix indentation.
9417 (xg_frame_set_char_size): Call flush_and_sync after
9418 gtk_window_resize.
9419 (x_wm_set_size_hint): Pass NULL as geometry window to
9420 gtk_window_set_geometry_hints due to Gtk+ bug nr 68668.
9421 Add menu bar and tool bar height to base height.
9422 (xg_update_frame_menubar, free_frame_menubar)
9423 (xg_tool_bar_detach_callback, xg_tool_bar_attach_callback)
9424 (update_frame_tool_bar, free_frame_tool_bar):
9425 Change xg_resize_outer_widget to xg_frame_set_char_size.
9426
9427 2008-03-30 Michael Albinus <michael.albinus@gmx.de>
9428
9429 * dbusbind.c (QCdbus_timeout): New D-Bus internal symbol.
9430 (Fdbus_call_method): New parameter TIMEOUT.
9431 (dbus-send-signal): Optimize UNGCPRO call.
9432
9433 2008-03-29 Juri Linkov <juri@jurta.org>
9434
9435 * window.c (Fdisplay_buffer): Move call to
9436 Vsplit_window_preferred_function out of conditions that check
9437 if window is eligible for vertical splitting.
9438 When Vsplit_window_preferred_function is non-nil, call it and use
9439 its non-nil return value as window. Otherwise, continue doing
9440 vertical splitting using Fsplit_window with arg horflag=nil.
9441 (syms_of_window) <Vsplit_window_preferred_function>: Change the
9442 default value from `split-window' to nil.
9443
9444 2008-03-29 Juri Linkov <juri@jurta.org>
9445
9446 * callint.c (Fcall_interactively): Revert 2008-03-16 change
9447 for interactive code letters 'b' and 'B'.
9448
9449 2008-03-29 Eli Zaretskii <eliz@gnu.org>
9450
9451 * fileio.c (Fexpand_file_name): Convert the value of $HOME to a
9452 multibyte string.
9453
9454 2008-03-29 Stefan Monnier <monnier@iro.umontreal.ca>
9455
9456 * keyboard.c (pending_funcalls): New var.
9457 (timer_check): Run it.
9458 (syms_of_keyboard): Initialize it.
9459 * terminal.c (Qrun_hook_with_args, Qdelete_terminal_functions)
9460 (Vdelete_terminal_functions): New vars.
9461 (syms_of_terminal): Initialize them.
9462 (Fdelete_terminal): Run delete-terminal-functions.
9463 * xdisp.c (safe_eval): Rewrite.
9464 (safe_call2): New fun.
9465 * frame.c (Qdelete_frame_functions): New var.
9466 (syms_of_frame): Initialize it.
9467 (Fdelete_frame): Use it and use safe_call2 and pending_funcalls.
9468 * lisp.h (safe_call2, pending_funcalls): Declare.
9469
9470 2008-03-28 Andreas Schwab <schwab@suse.de>
9471
9472 * indent.c (Fmove_to_column): Move declaration before statements.
9473
9474 2008-03-27 Stefan Monnier <monnier@iro.umontreal.ca>
9475
9476 * frame.h (enum fullscreen_type): Give it a name. Move it before use.
9477 (struct frame): Use bit fields for boolean vars.
9478
9479 * process.c (server_accept_connection): Simplify naming.
9480 (emacs_get_tty_pgrp): Use SDATA.
9481
9482 * coding.c (decode_coding_object): Fix last change.
9483
9484 2008-03-27 Jason Rumney <jasonr@gnu.org>
9485
9486 * w32fns.c (start_hourglass): Suppress hourglass on tty frames.
9487
9488 2008-03-27 Kenichi Handa <handa@ni.aist.go.jp>
9489
9490 * charset.c (Fdefine_charset_internal): Change the way of
9491 registering charsets in Vcharset_order_list.
9492 (syms_of_charset): Make the charset `eight-bit' supplementary.
9493
9494 2008-03-26 Alexandre Oliva <aoliva@redhat.com> (tiny change)
9495
9496 * regex.c (EXTEND_BUFFER): Change order of pointer addition
9497 operations, to avoid having the difference between pointers
9498 overflow.
9499
9500 2008-03-26 Stefan Monnier <monnier@iro.umontreal.ca>
9501
9502 * indent.c (check_display_width): New fun.
9503 (scan_for_column): Use it.
9504
9505 * data.c (syms_of_data): Mark most-positive-fixnum and
9506 most-negative-fixnum as constants.
9507
9508 * xdisp.c (redisplay_internal): Reset selected_frame earlier.
9509
9510 * indent.c (scan_for_column): Extract from current_column_1.
9511 Merge with the same code from Fmove_to_column.
9512 (current_column_1, Fmove_to_column): Use it.
9513
9514 2008-03-25 Stefan Monnier <monnier@iro.umontreal.ca>
9515
9516 * keymap.c (map_keymap_internal): New fun.
9517 (map_keymap): Use it.
9518 (Fmap_keymap_internal): New fun.
9519 (Fmap_keymap): Remove left-out test from before make_save_value.
9520
9521 * keymap.c (Fmap_keymap): Use `map-keymap-sorted.
9522
9523 * frame.c (Fmodify_frame_parameters, x_set_frame_parameters):
9524 Use XCAR/XCDR.
9525
9526 * process.h (struct Lisp_Process): Remove filter_multibyte.
9527 * process.c (QCfilter_multibyte): Remove.
9528 (setup_process_coding_systems): Don't use filter_multibyte.
9529 (Fstart_process, Fmake_network_process): Don't set filter_multibyte.
9530 (read_process_output): Don't adjust multibyteness to filter_multibyte.
9531 (Fset_process_filter_multibyte): Change the coding-system to
9532 approximate the previous behavior.
9533 (Fprocess_filter_multibyte_p): Get the multibyteness straight from the
9534 coding-system.
9535
9536 * coding.c (decode_coding_object): When not decoding into a buffer,
9537 obey the coding system's preference of (uni|multi)byte.
9538
9539 2008-03-24 Stefan Monnier <monnier@iro.umontreal.ca>
9540
9541 * casefiddle.c (casify_object): Avoid pathological N^2 worst case if
9542 every char is changed and has a different byte-length.
9543 (Fupcase_word, Fdowncase_word, Fcapitalize_word, operate_on_word):
9544 Fix int -> EMACS_INT.
9545
9546 2008-03-23 David Hansen <david.hansen@gmx.net>
9547
9548 * dbusbind.c (xd_read_message): Remove extra copying of message
9549 strings. Check for NULL `interface' or `member'.
9550
9551 2008-03-22 Eli Zaretskii <eliz@gnu.org>
9552
9553 * w32.c (readdir): If FindFirstFile/FindNextFile return in
9554 cFileName a file name that includes `?' characters, use the 8+3
9555 alias in cAlternateFileName instead.
9556
9557 2008-03-21 Stefan Monnier <monnier@iro.umontreal.ca>
9558
9559 * buffer.c (enlarge_buffer_text): Fix int -> EMACS_INT.
9560
9561 2008-03-20 Stefan Monnier <monnier@iro.umontreal.ca>
9562
9563 * intervals.c (temp_set_point, temp_set_point_both): Use EMACS_INT.
9564 (set_point, set_point_both): Use EMACS_INT. Remove `buffer' arg,
9565 work on current_buffer only instead (that was already the case
9566 for some of the code anyway).
9567 * buffer.h (set_point, set_point_both): Remove buffer arg, use long int.
9568 (temp_set_point, temp_set_point_both): Use EMACS_INT.
9569 (SET_PT, SET_PT_BOTH): Adjust.
9570 * intervals.h (set_point, temp_set_point, set_point_both)
9571 (temp_set_point_both): Remove redundant declarations.
9572
9573 2008-03-20 Stefan Monnier <monnier@iro.umontreal.ca>
9574
9575 * fileio.c (Finsert_file_contents):
9576 * lread.c (Feval_buffer): Use BUF_TEMP_SET_PT.
9577 * buffer.h (BUF_SET_PT): Remove. set_point_both doesn't work right
9578 when buffer != current_buffer anyway.
9579
9580 2008-03-20 Andreas Schwab <schwab@suse.de>
9581
9582 * callint.c (Fcall_interactively) [case 'B']: Use other-buffer
9583 as default.
9584
9585 2008-03-19 Jason Rumney <jasonr@gnu.org>
9586
9587 * w32fns.c (hourglass_timer, hourglass_hwnd): New variables.
9588 (syms_of_w32fns): Initialize them.
9589 (HOURGLASS_ID): New constant.
9590 (x_window_to_frame): Don't check hourglass_window.
9591 (w32_wnd_proc) <WM_TIMER>: Handle hourglass_timer.
9592 (w32_wnd_proc) <WM_EXITMENULOOP>: Set pending hourglass cursor.
9593 (w32_wnd_proc) <WM_SETCURSOR>: Set the hourglass or current cursor.
9594 (w32_wnd_proc) <WM_EMACS_SETCURSOR>: Set frame's current_cursor.
9595 Only change the cursor if hourglass is not active.
9596 (Fx_create_frame): Initialize frame's current_cursor.
9597 (hourglass_atimer): Remove.
9598 (hourglass_started): New function.
9599 (start_hourglass, cancel_hourglass, hide_hourglass): Adapt to w32.
9600 (show_hourglass): Adapt to w32, changing argument to frame.
9601
9602 * w32term.h (struct w32_output): Remove hourglass_window.
9603 Add current_cursor.
9604
9605 * eval.c (call_debugger, Fsignal):
9606 * keyboard.c (recursive_edit_1, cmd_error, Ftop_level)
9607 (command_loop_1, Fread_key_sequence, Fread_key_sequence_vector)
9608 (Fexecute_extended_command, cancel_hourglass_unwind):
9609 * minibuf.c (read_minibuf):
9610 * fns.c (Fy_or_n_p): Enable hourglass when HAVE_WINDOW_SYSTEM.
9611
9612 2008-03-19 Stefan Monnier <monnier@iro.umontreal.ca>
9613
9614 * window.c (run_funs): New fun.
9615 (run_window_configuration_change_hook): Use it to run the buffer-local
9616 and the global part of the hook.
9617
9618 * xdisp.c (format_mode_line_unwind_data): Add window argument.
9619 (unwind_format_mode_line): Restore selected window.
9620 (x_consider_frame_title, Fformat_mode_line): Set selected window.
9621
9622 2008-03-17 Stefan Monnier <monnier@iro.umontreal.ca>
9623
9624 * editfns.c (Fchar_equal): Check they are valid characters.
9625
9626 * buffer.h (Fbuffer_list): Declare (for use in callint.c).
9627
9628 2008-03-17 Andreas Schwab <schwab@suse.de>
9629
9630 * regex.c (re_match_2_internal): Properly match raw 8-bit bytes
9631 against a charset.
9632
9633 * lisp.h (Fbuffer_list): Declare.
9634
9635 2008-03-17 Jan Djärv <jan.h.d@swipnet.se>
9636
9637 * gtkutil.c (free_frame_tool_bar): Only call gtk_container_remove if
9638 handlebox_widget is != 0.
9639
9640 2008-03-16 Juri Linkov <juri@jurta.org>
9641
9642 * callint.c (Fcall_interactively): For interactive code letters
9643 'b' and 'B' put the buffer list into the list of default "future"
9644 values of the minibuffer.
9645
9646 2008-03-16 Andreas Schwab <schwab@suse.de>
9647
9648 * keyboard.c (read_key_sequence): Fix downcasing of letters with
9649 modifiers.
9650
9651 * regex.c (re_match_2_internal): Correct matching of a charset
9652 against latin-1 characters.
9653
9654 2008-03-16 Kenichi Handa <handa@m17n.org>
9655
9656 * coding.c (CHAR_STRING_ADVANCE_NO_UNIFY)
9657 (STRING_CHAR_ADVANCE_NO_UNIFY): New macros.
9658 (coding_alloc_by_making_gap): Fix the way to preserve data in the gap.
9659 (alloc_destination): Fix the 2nd arg to coding_alloc_by_making_gap.
9660 (encode_coding_utf_8): Use CHAR_STRING_ADVANCE_NO_UNIFY instead of
9661 CHAR_STRING_ADVANCE.
9662 (produce_chars): Fix for the case that the source and the
9663 destination are the same buffer. Use CHAR_STRING_ADVANCE_NO_UNIFY
9664 instead of CHAR_STRING_ADVANCE.
9665 (consume_chars): Use STRING_CHAR_ADVANCE_NO_UNIFY instead of
9666 STRING_CHAR_ADVANCE.
9667
9668 2008-03-15 Andreas Schwab <schwab@suse.de>
9669
9670 * regex.c (re_match_2_internal): Correct matching of eight bit
9671 characters in unibyte strings.
9672
9673 2008-03-15 Martin Rudalics <rudalics@gmx.at>
9674
9675 * buffer.c (overlays_in, Foverlays_in): Include empty overlays
9676 at end of range when it coincides with the end of the buffer.
9677
9678 2008-03-14 Eli Zaretskii <eliz@gnu.org>
9679
9680 * dired.c (Ffile_attributes) [WINDOWSNT]: Force inode be positive.
9681
9682 * w32fns.c (globals_of_w32fns, Fx_create_frame): Fix last change.
9683
9684 2008-03-14 Jason Rumney <jasonr@gnu.org>
9685
9686 * editfns.c (initial_tz): New variable.
9687 (syms_of_editfns): Initialize it.
9688 (Fset_time_zone_rule): Set it when first called.
9689 Use it when TZSTRING is nil.
9690
9691 * w32fns.c (MONITOR_DEFAULT_TO_NEAREST, struct MONITOR_INFO)
9692 (MonitorFromPoint_Proc, GetMonitorInfo_Proc): New definitions.
9693 (monitor_from_point_fn, get_monitor_info_fn): New globals.
9694 (globals_of_w32fns): Initialize them.
9695 (compute_tip_xy): Use them to position tooltips.
9696
9697 2008-03-14 Glenn Morris <rgm@gnu.org>
9698
9699 * emacs.c (main): Revert previous change.
9700 (standard_args): Revert -internal-script back to -scriptload,
9701 and remove the long-option form.
9702
9703 2008-03-13 Glenn Morris <rgm@gnu.org>
9704
9705 * emacs.c (main, standard_args): Rename -scriptload to -internal-script.
9706 Remove option -enable-font-backend.
9707
9708 2008-03-12 Stefan Monnier <monnier@iro.umontreal.ca>
9709
9710 * buffer.c (Fswitch_to_buffer): Fall back on pop-to-buffer.
9711
9712 2008-03-11 Jan Djärv <jan.h.d@swipnet.se>
9713
9714 * xterm.c (x_connection_closed): For GTK: If this is the last
9715 terminal just exit without closing the display.
9716
9717 2008-03-11 Jason Rumney <jasonr@gnu.org>
9718
9719 * w32font.c (w32font_full_name): Use floor to round.
9720
9721 2008-03-10 Dhruva Krishnamurthy <dhruvakm@gmail.com> (tiny change)
9722
9723 * sound.c (alsa_configure): Declare vol at beginning of block.
9724
9725 * fontset.c (Ffontset_info): Remove extra semicolon.
9726
9727 2008-03-10 Stefan Monnier <monnier@iro.umontreal.ca>
9728
9729 * fileio.c (Fsubstitute_in_file_name): Fix up computation of maximum
9730 size of resulting string.
9731
9732 2008-03-10 Jason Rumney <jasonr@gnu.org>
9733
9734 * dispnew.c (adjust_glyph_matrix): Initialize window_height.
9735
9736 2008-03-10 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
9737
9738 * xdisp.c (handle_single_display_spec): Undo 2007-10-16 changes.
9739 Don't pretend as if characters with display property haven't been
9740 consumed for string-replacing-string case.
9741
9742 2008-03-08 Kim F. Storm <storm@cua.dk>
9743
9744 * xdisp.c (GET_NEXT_DISPLAY_ELEMENT): New macro.
9745 (get_next_display_element, next_element_from_string)
9746 (next_element_from_ellipsis, next_element_from_buffer): Use it.
9747
9748 2008-03-08 Andreas Schwab <schwab@suse.de>
9749
9750 * process.h (struct Lisp_Process): Declare bit fields as unsigned.
9751
9752 2008-03-06 Jason Rumney <jasonr@gnu.org>
9753
9754 * w32font.c (w32_registry): Take font_type argument. Use ANSI
9755 when charset not specified. Only translate ANSI to unicode when
9756 font_type is truetype.
9757 (w32font_coverage_ok): New function.
9758 (add_font_entity_to_list): Use it to filter unsuitable fonts.
9759
9760 2008-03-05 Kenichi Handa <handa@ni.aist.go.jp>
9761
9762 * lread.c (Fread_char): Resolve modifiers.
9763 (Fread_char_exclusive): Likewise.
9764
9765 * character.c (char_resolve_modifier_mask): New function.
9766 (char_string): Use char_resolve_modifier_mask.
9767 (Fchar_resolve_modifiers): New function.
9768 (syms_of_character): Declare Fchar_resolve_modifiers as Lisp
9769 function.
9770
9771 2008-03-04 Jason Rumney <jasonr@gnu.org>
9772
9773 * makefile.w32-in: Always include w32font.c in the build.
9774 * w32font.c: Wrap in USE_FONT_BACKEND conditional.
9775
9776 2008-03-04 Andreas Schwab <schwab@suse.de>
9777
9778 * Makefile.in (clean): Remove emacs-*.*.* instead of emacs-*.
9779 (versionclean): Likewise.
9780
9781 2008-03-04 Juanma Barranquero <lekktu@gmail.com>
9782
9783 * .cvsignore: Add oo.
9784
9785 2008-03-03 Andreas Schwab <schwab@suse.de>
9786
9787 * coding.c (decode_coding_object): Inhibit gap shrinking while
9788 decoding in place.
9789
9790 2008-03-03 Dan Nicolaescu <dann@ics.uci.edu>
9791
9792 * w32term.c: Remove unused include "gnu.h".
9793 * makefile.w32-in (w32term.o): Don't depend on gnu.h.
9794
9795 * gnu.h: Rename to ...
9796 * emacs-icon.h: ... this.
9797 * xterm.c: Use emacs-icon.h instead of gnu.h.
9798 * Makefile (xterm.o): Depend on emacs-icon.h, not gnu.h.
9799
9800 2008-03-03 Juanma Barranquero <lekktu@gmail.com>
9801
9802 * w32font.c: Include math.h.
9803
9804 2008-03-03 Jason Rumney <jasonr@gnu.org>
9805
9806 * w32font.c (recompute_cached_metrics): Change font arg to w32font_info.
9807 Compute options separately.
9808 (w32font_open_internal): Set glyph_idx before caching metrics.
9809
9810 * w32font.h (NTM_PS_OPENTYPE, NTM_TT_OPENTYPE, NTM_TYPE1):
9811 Define if system headers don't.
9812 (struct w32font_info): Enlarge ascii_metrics. Add glyph_idx.
9813 (w32font_encode_char): Don't declare here.
9814
9815 * w32font.c (Quniscribe, QCformat): New symbols.
9816 (syms_of_w32font): Define them.
9817 (w32font_has_char): Indicate uncertainty.
9818 (w32font_encode_char): Encode as glyph point. Make static.
9819 (recompute_cached_metrics): New function.
9820 (w32font_open_internal): Use it. Set font to use glyph points
9821 initially. Set format based on type of font.
9822 (w32font_text_extents, w32font_draw): Optionally use glyph points.
9823 (w32_enumfont_pattern_entity): Accept backend arg. Set type based
9824 on it. Set format based on information available here.
9825 (add_font_entity_to_list): Identify backend based on opentype_only.
9826
9827 2008-03-02 Andreas Schwab <schwab@suse.de>
9828
9829 * ftfont.c (ftfont_pattern_entity): Fix aliasing violations.
9830
9831 * coding.c (decode_coding_big5, produce_chars):
9832 Fix typos in last change.
9833
9834 2008-03-02 Kentaro Ohkouchi <nanasess@fsm.ne.jp>
9835
9836 * gnu.h: New icon.
9837
9838 2008-03-02 Kenichi Handa <handa@m17n.org>
9839
9840 * coding.c (decode_coding_utf_8): When eol-type of CODING is
9841 `dos', don't decode '\r' if that is the last in the source.
9842 (decode_coding_utf_16, decode_coding_emacs_mule)
9843 (decode_coding_iso_2022, decode_coding_sjis, decode_coding_big5)
9844 (decode_coding_raw_text, decode_coding_charset): Likewise.
9845 (produce_chars): Don't decode EOL here. Use EMACS_INT.
9846
9847 2008-03-01 Jason Rumney <jasonr@gnu.org>
9848
9849 * w32font.c (w32font_full_name): Report point size for scalable fonts.
9850
9851 2008-03-01 Kim F. Storm <storm@cua.dk>
9852
9853 * dispextern.h (CHAR_GLYPH_SPACE_P): Check for default face.
9854
9855 2008-03-01 Jason Rumney <jasonr@gnu.org>
9856
9857 * w32font.c (w32font_full_name): New function.
9858 (w32font_open_internal): Use it.
9859
9860 2008-03-01 Kim F. Storm <storm@cua.dk>
9861
9862 * dispnew.c (line_draw_cost): Fix invalid glyph check.
9863
9864 2008-03-01 Jason Rumney <jasonr@gnu.org>
9865
9866 * font.c (font_unparse_fcname): Increase len when style is a symbol.
9867
9868 2008-03-01 Jan Djärv <jan.h.d@swipnet.se>
9869
9870 * xterm.c (handle_one_xevent): For Gtk+ and ConfigureNotify, call
9871 xg_frame_resized when the event is for the edit widget.
9872
9873 * gtkutil.h (xg_frame_resized): Renamed from xg_resize_widgets.
9874
9875 * gtkutil.c (xg_resize_outer_widget): Only do one of set_geometry or
9876 set_char_size.
9877 (xg_frame_resized): Renamed from xg_resize_widgets. Remove all
9878 operations on widgets here. Just set frame size if needed.
9879 (flush_and_sync, x_wm_size_hint_off, xg_pack_tool_bar): New functions.
9880 (xg_frame_set_char_size): Call x_wm_size_hint_off before resizing.
9881 (x_wm_set_size_hint): Set size hints on the edit widget only, not
9882 the whole frame.
9883 (xg_create_tool_bar): Move attachment of the tool bar to
9884 xg_pack_tool_bar. Do not attach the tool bar if there are no items.
9885 (free_frame_tool_bar): Remove call to SET_FRAME_GARBAGED.
9886
9887 2008-03-01 Jason Rumney <jasonr@gnu.org>
9888
9889 * w32fns.c (w32_msg_pump): Disable debug code.
9890
9891 2008-03-01 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
9892
9893 * m/intel386.h [MAC_OSX || DARWIN]: Define NO_ARG_ARRAY if _LP64.
9894
9895 2008-02-29 Chong Yidong <cyd@stupidchicken.com>
9896
9897 * xdisp.c (next_overlay_string): Don't set
9898 overlay_strings_at_end_processed_p if we're currently reading from
9899 a display string.
9900
9901 2008-02-29 Stefan Monnier <monnier@iro.umontreal.ca>
9902
9903 * xdisp.c (get_overlay_strings_1): Fix typo.
9904
9905 2008-02-29 Chong Yidong <cyd@stupidchicken.com>
9906
9907 * xdisp.c (get_overlay_strings_1): Add missing argument type.
9908
9909 2008-02-28 Kenichi Handa <handa@ni.aist.go.jp>
9910
9911 * ftfont.c (ftfont_match): Explicitly set pixelsize in pattern.
9912
9913 * xdisp.c (display_mode_element): Cancel the previous change.
9914 (decode_mode_spec): Likewise.
9915 (handle_auto_composed_prop): Don't make composition if it->string
9916 is a string.
9917
9918 2008-02-27 Kim F. Storm <storm@cua.dk>
9919
9920 * lisp.h (GLYPH): Change type from int to struct with separate char
9921 and face_id members.
9922 (GLYPH_MASK_FACE, GLYPH_MASK_CHAR): Delete macros.
9923 (GLYPH_CHAR, GLYPH_FACE): Remove slow versions with frame arg.
9924 (FAST_GLYPH_CHAR, FAST_GLYPH_FACE): Rename macros to ...
9925 (GLYPH_CHAR, GLYPH_FACE): ... these. Change users.
9926 (FAST_MAKE_GLYPH, MAKE_GLYPH): Remove. Rewrite users to use ...
9927 (SET_GLYPH, SET_GLYPH_CHAR, SET_GLYPH_FACE): ... these macros instead.
9928 (GLYPH_CODE_CHAR, GLYPH_CODE_FACE, GLYPH_CODE_P)
9929 (GLYPH_CODE_CHAR_VALID_P, SET_GLYPH_FROM_GLYPH_CODE): New macros to
9930 handle new Lisp glyph code encoding, either an integer or a cons.
9931
9932 * disptab.h (GLYPH_SIMPLE_P): Rewrite.
9933 (GLYPH_ALIAS): Delete.
9934 (GLYPH_ALIAS_P, GLYPH_FOLLOW_ALIASES): Rewrite.
9935 (GLYPH_LENGTH, GLYPH_STRING): Use GLYPH_CHAR.
9936 (GLYPH_FROM_CHAR): Replace macro by ...
9937 (SET_GLYPH_FROM_CHAR): ... this macro. Change users.
9938
9939 * dispextern.h (CHAR_GLYPH_SPACE_P): Simplify.
9940 (GLYPH_FROM_CHAR_GLYPH): Replace macro by ...
9941 (SET_GLYPH_FROM_CHAR_GLYPH): ... this macro. Change users.
9942 (GLYPH_INVALID_P): New macro.
9943 (spec_glyph_lookup_face): Update prototype.
9944
9945 * dispnew.c (line_draw_cost): Adapt to new glyph type.
9946 (build_frame_matrix_from_leaf_window): Adapt to new glyph type and
9947 new glyph code encoding.
9948 (spec_glyph_lookup_face): No return value; update passed glyph instead.
9949 (init_display): Use SET_CHAR_GLYPH to initialize space_glyph.
9950
9951 * xdisp.c (get_next_display_element, next_element_from_display_vector):
9952 Adapt to new glyph type and new glyph code encoding.
9953
9954 * term.c (encode_terminal_code, produce_special_glyphs): Likewise.
9955
9956 * indent.c (current_column, current_column_1, Fmove_to_column)
9957 (compute_motion): Adapt to new glyph code encoding.
9958
9959 * msdos.c (IT_write_glyphs): Adapt to new glyph type.
9960
9961 2008-02-27 Chong Yidong <cyd@stupidchicken.com>
9962
9963 * process.c (wait_reading_process_output): Check for window
9964 changes caused by timers.
9965 Suggested by Johan Bockgård.
9966
9967 2008-02-27 Glenn Morris <rgm@gnu.org>
9968
9969 * emacs.c (USAGE1): Add `--disable-font-backend'.
9970
9971 2008-02-27 Stefan Monnier <monnier@iro.umontreal.ca>
9972
9973 * fileio.c (Finsert_file_contents): Don't reset undo_list if no change
9974 is made to the buffer.
9975
9976 2008-02-26 Stefan Monnier <monnier@iro.umontreal.ca>
9977
9978 * dispextern.h (face_at_buffer_position, face_for_overlay_string)
9979 (face_at_string_position):
9980 * xfaces.c (face_at_buffer_position, face_for_overlay_string)
9981 (face_at_string_position):
9982 * xdisp.c (display_string, next_overlay_change):
9983 * buffer.h (overlays_at):
9984 * buffer.c (overlays_at): Use EMACS_INT for buffer positions.
9985 Update callers.
9986
9987 2008-02-26 Chong Yidong <cyd@stupidchicken.com>
9988
9989 * editfns.c (Fformat): Doc fix.
9990
9991 2008-02-26 Juanma Barranquero <lekktu@gmail.com>
9992
9993 * font.c (Ffont_spec, Ffont_at): Fix typos in docstrings.
9994 (Ffont_put, Flist_families, Ffont_fill_gstring, Ffont_drive_otf)
9995 (Ffont_otf_alternates, Fquery_font): Doc fixes.
9996
9997 2008-02-25 Stefan Monnier <monnier@iro.umontreal.ca>
9998
9999 * buffer.c (Fbuffer_swap_text): New function.
10000 (syms_of_buffer): Defsubr it.
10001
10002 2008-02-25 Chong Yidong <cyd@stupidchicken.com>
10003
10004 * keyboard.c (command_loop_1): Revert 2006-10-09 change.
10005
10006 2008-02-25 Jason Rumney <jasonr@gnu.org>
10007
10008 * w32font.c (w32font_draw): Draw one character at a time when padding.
10009
10010 2008-02-25 Stefan Monnier <monnier@iro.umontreal.ca>
10011
10012 * window.c (Fdelete_window, Fadjust_window_trailing_edge):
10013 Handle a nil arg. Use run_window_configuration_change_hook.
10014 (delete_window, adjust_window_trailing_edge): Don't handle nil any more.
10015 (Fenlarge_window, Fshrink_window, Fset_window_configuration):
10016 Use run_window_configuration_change_hook.
10017
10018 2008-02-25 Kenichi Handa <handa@ni.aist.go.jp>
10019
10020 * xdisp.c (x_produce_glyphs): For a visible glyph, assure at least
10021 1-pixel width.
10022
10023 2008-02-25 Kenichi Handa <handa@ni.aist.go.jp>
10024
10025 * xdisp.c (fill_glyph_string): Pay attention to glyph->padding_p.
10026 (append_glyph): Set glyph->pixel_width and glyph->padding_p to 1
10027 if the glyph in the font is zero pixel with.
10028
10029 * dispextern.h (struct glyph_string): New member padding_p.
10030
10031 * w32font.c (w32font_draw): Pay attention to s->padding_p.
10032
10033 * ftxfont.c (ftxfont_draw): Pay attention to s->padding_p.
10034
10035 * xfont.c (xfont_draw): Pay attention to s->padding_p.
10036
10037 * xftfont.c (xftfont_draw): Pay attention to s->padding_p.
10038
10039 * font.c: If the font driver doesn't have `shape' function, return Qnil.
10040
10041 2008-02-25 Jason Rumney <jasonr@gnu.org>
10042
10043 * w32fns.c (enum_font_cb2): Don't use raster fonts for Unicode.
10044
10045 2008-02-24 Stefan Monnier <monnier@iro.umontreal.ca>
10046
10047 Allow fine-grained image-cache flushing.
10048 * dispextern.h (struct image): Add `dependencies' field.
10049 (clear_image_caches): Change arg to Lisp_Object.
10050 * image.c (make_image): Initialize `dependencies' field.
10051 (clear_image_cache): Change arg to allow fine-grained flushing.
10052 Perform the flush even if image-cache-eviction-delay is nil.
10053 (clear_image_caches): Change arg to Lisp_Object.
10054 (Fclear_image_cache): Expand meaning of the argument.
10055 (mark_image): Mark `dependencies' field.
10056 * xfaces.c (clear_face_cache): Adapt arg to call to clear_image_caches.
10057 (lface_hash): Use XHASH rather than XFASTINT.
10058 (face_at_buffer_position): Fix int -> EMACS_INT position.
10059 * xdisp.c (next_overlay_change): Fix int -> EMACS_INT position.
10060 (select_frame_for_redisplay): Remove code duplication.
10061 (redisplay_internal): Adapt arg to call to clear_image_caches.
10062
10063 2008-02-24 Dan Nicolaescu <dann@ics.uci.edu>
10064
10065 * s/vms4-0.h:
10066 * s/vms4-2.h:
10067 * s/vms4-4.h:
10068 * s/vms5-5.h: Remove, unused.
10069
10070 * s/irix5-2.h:
10071 * s/irix6-0.h:
10072 * s/riscos5.h:
10073 * s/mach-bsd4-3.h:
10074 * m/mips4.h: Remove files for obsolete systems.
10075
10076 * Makefile.in:
10077 * filelock.c:
10078 * unexmips.c:
10079 * m/hp9000s300.h:
10080 * m/iris4d.h:
10081 * s/aix3-1.h:
10082 * s/hpux.h:
10083 * s/msdos.h:
10084 * s/usg5-0.h:
10085 * s/usg5-2-2.h:
10086 * s/usg5-2.h:
10087 * s/usg5-3.h: Remove references to obsolete variables.
10088
10089 * s/irix5-0.h: Remove, move all the contents ...
10090 * s/irix6-5.h: ... here. Simplify.
10091 * config.in: Regenerate.
10092
10093 2008-02-24 Jason Rumney <jasonr@gnu.org>
10094
10095 * w32term.c (x_draw_glyph_string_background): Clear the background
10096 manually when cleartype is in use.
10097 (x_draw_glyph_string_foreground): Draw text transparently when
10098 cleartype is in use.
10099
10100 * w32font.c (w32font_text_extents): Avoid getting HDC and selecting
10101 a font into it unless we have to.
10102
10103 2008-02-19 Stefan Monnier <monnier@iro.umontreal.ca>
10104
10105 * intervals.h (INT_LISPLIKE): Remove. It may misfire.
10106 (NULL_INTERVAL_P, SET_INTERVAL_PARENT): Don't use it.
10107
10108 2008-02-18 Jason Rumney <jasonr@gnu.org>
10109
10110 * w32fns.c (Fw32_shell_execute): Encode parameters.
10111
10112 2008-02-09 Eli Zaretskii <eliz@gnu.org>
10113
10114 * fileio.c (syms_of_fileio) <insert-default-directory>: Doc fix.
10115
10116 2008-02-05 Juanma Barranquero <lekktu@gmail.com>
10117
10118 * unexhp9k800.c (read_header): Replace `legal' with `valid'.
10119
10120 2008-02-24 Ulrich Neumerkel <ulrich@complang.tuwien.ac.at> (tiny change)
10121
10122 * xterm.c (x_set_offset): Don't change the gravity if
10123 CHANGE_GRAVITY is -1.
10124
10125 2008-02-23 Chong Yidong <cyd@stupidchicken.com>
10126
10127 * fileio.c (auto_save_error_occurred): New var.
10128 (auto_save_error): Set it.
10129 (Fdo_auto_save): Don't overwrite the error message if an auto-save
10130 error occurred.
10131
10132 2008-02-23 Eli Zaretskii <eliz@gnu.org>
10133
10134 * w32.c (globals_of_w32): Add initializations for
10135 g_b_init_get_sid_sub_authority and
10136 g_b_init_get_sid_sub_authority_count.
10137
10138 2008-02-22 Stefan Monnier <monnier@iro.umontreal.ca>
10139
10140 * font.c (font_match_xlfd, font_check_xlfd_parse): New funs.
10141 (font_parse_xlfd): Use them for sanity check.
10142 (Finternal_set_font_style_table): Make sure the table is bijective.
10143
10144 Consolidate the image_cache to the terminal struct.
10145 * termhooks.h (P_): Remove redundant def.
10146 (struct terminal): New field `image_cache'.
10147 * frame.h (FRAME_IMAGE_CACHE): New macro. Use it everywhere in place
10148 of FRAME_X_IMAGE_CACHE.
10149 * xterm.h (struct x_display_info): Remove image_cache field.
10150 (FRAME_X_IMAGE_CACHE): Remove. Use FRAME_IMAGE_CACHE instead.
10151 * w32term.h (struct w32_display_info): Remove image_cache field.
10152 (FRAME_X_IMAGE_CACHE): Remove. Use FRAME_IMAGE_CACHE instead.
10153 * macterm.h (struct mac_display_info): Remove image_cache field.
10154 (FRAME_X_IMAGE_CACHE): Remove. Use FRAME_IMAGE_CACHE instead.
10155 * xterm.c (x_term_init):
10156 * w32term.c (w32_term_init):
10157 * macterm.c (mac_term_init): Set the image_cache in the terminal.
10158 * dispextern.h (clear_image_cache, forall_images_in_image_cache):
10159 Remove declarations.
10160 (clear_image_caches, mark_image_cache): New declarations.
10161 * xfaces.c (clear_face_cache):
10162 * xdisp.c (redisplay_internal): Use clear_image_caches.
10163 * image.c (clear_image_cache): Don't check that a frame is on
10164 a window-system before checking if it shares the same cache.
10165 (clear_image_caches): New function.
10166 (Fclear_image_cache): Use it.
10167 (mark_image): Move from allo.c.
10168 (mark_image_cache): Move from alloc.c and forall_images_in_image_cache.
10169 * alloc.c (mark_image, mark_image_cache): Move to image.c.
10170 (mark_object): Don't call mark_image_cache for frames.
10171 (mark_terminals): Call mark_image_cache.
10172
10173 * lisp.h (Fdelete_terminal): Declare.
10174
10175 * charset.h (CHECK_CHARSET, CHECK_CHARSET_GET_ID)
10176 (CHECK_CHARSET_GET_ATTR): Don't use the inexistent return value of
10177 wrong_type_argument.
10178
10179 2008-02-22 Kenichi Handa <handa@ni.aist.go.jp>
10180
10181 * Makefile.in (lisp): Remove devanagari.el, kannada.el,
10182 malayalam.el, and tamil.el. Add sinhala.el.
10183
10184 2008-02-21 Stefan Monnier <monnier@iro.umontreal.ca>
10185
10186 * xterm.c (x_connection_closed): Consolidate identical tests.
10187 (x_delete_terminal): Don't crash if called via x_connection_closed.
10188
10189 2008-02-21 Kenichi Handa <handa@ni.aist.go.jp>
10190
10191 * xdisp.c (decode_mode_spec): New arg string.
10192 (display_mode_element): Adjust for the above change.
10193
10194 2008-02-19 Stefan Monnier <monnier@iro.umontreal.ca>
10195
10196 * callint.c (Fcall_interactively): Use AREF.
10197
10198 2008-02-18 Stefan Monnier <monnier@iro.umontreal.ca>
10199
10200 * font.c (font_unparse_xlfd): Don't ignore integer pixel size specs.
10201
10202 2008-02-18 Jan Djärv <jan.h.d@swipnet.se>
10203
10204 * xfns.c (Fx_show_tip): Set string to " " if empty.
10205
10206 2008-02-17 Dan Nicolaescu <dann@ics.uci.edu>
10207
10208 * callint.c (syms_of_callint): Initialize Vmark_even_if_inactive
10209 with Qt.
10210
10211 2008-02-17 Kenichi Handa <handa@m17n.org>
10212
10213 * ftfont.c (ftfont_shape): Return Lispy number.
10214
10215 * xfaces.c (prepare_face_for_display): Use display_info->font->fid
10216 for GCs.
10217 (Finternal_set_font_selection_order): Call font_update_sort_order
10218 only when enable_font_backend is set.
10219 (realize_x_face): Set face->font_info to that of default face only
10220 when enable_font_backend is set.
10221
10222 * xdisp.c (handle_composition_prop): Set it->c to the fist
10223 character of the composed region.
10224 (fill_composite_glyph_string): Set base_face->font_info to
10225 s->font_info. Get a face for ascii from base_face->ascii_face.
10226 (BUILD_COMPOSITE_GLYPH_STRING): Call fill_composite_glyph_string
10227 with a face already decided.
10228 (x_produce_glyphs): Be sure to set it->ascent and it->descent to
10229 non-negative.
10230 (x_produce_glyphs): If the composition method is ..._WITH_GLYPH_STRING,
10231 call font_prepare_composition unconditionally.
10232
10233 * xfns.c (x_make_gc): Use the default font id of the frame for GCs.
10234
10235 * xterm.h (struct x_display_info): New member font.
10236
10237 * xterm.c (x_set_cursor_gc): Use display_info->font->fid for GCs.
10238 (x_set_mouse_face_gc, x_new_font): Likewise.
10239 (x_term_init): Setup display_info->font.
10240 (x_delete_terminal): Free display_info->font.
10241
10242 * xfont.c (xfont_draw): Use BLOCK_INPUT and UNBLOCK_INPUT.
10243
10244 * ftxfont.c (ftxfont_default_fid): Delete it.
10245 (ftxfont_open): Set xfont->fid to 0.
10246 (ftxfont_end_for_frame): Clear data specific to the frame and the
10247 font-driver.
10248
10249 * xftfont.c (xftfont_default_fid): Delete it.
10250 (xftfont_open): Set xfont->fid to 0.
10251
10252 * fontset.c (FONTSET_OBJLIST): New macro.
10253 (fontset_find_font): Update font-object list of the fontset.
10254 (free_realized_fontset): New function.
10255 (free_face_fontset): Call free_realized_fontset.
10256 (Ffont_info): Call font_close_object only when enable_font_backend
10257 is set.
10258
10259 * font.c [HAVE_X_WINDOWS]: Include xterm.h.
10260 [HAVE_NTGUI]: Include w32term.h.
10261 [MAC_OS]: Include macterm.ch.
10262 (font_otf_ValueRecord): Use make_number.
10263 (font_finish_cache): Fix handling of reference count.
10264 (font_clear_cache): Update num_fonts.
10265 (font_open_entity): Update smallest_char_width and
10266 smallest_font_height of the frame.
10267 (font_close_object): Update num_fonts.
10268 (Fclear_font_cache): Fix finding the target cache data.
10269
10270 2008-02-16 Glenn Morris <rgm@gnu.org>
10271
10272 * fontset.c (Finternal_char_font): Fix compilation warning.
10273
10274 2008-02-16 Eli Zaretskii <eliz@gnu.org>
10275
10276 * w32.c (init_user_info): Use TOKEN_USER and TOKEN_PRIMARY_GROUP
10277 instead of char arrays. Enlarge the size of array passed to
10278 get_token_information.
10279
10280 * font.c (Ffont_fill_gstring, Fget_font_glyphs): Fix compilation
10281 warnings.
10282
10283 2008-02-15 Dan Nicolaescu <dann@ics.uci.edu>
10284
10285 * .gdbinit: Don't set `args', it breaks gdb --args.
10286
10287 2008-02-14 Stefan Monnier <monnier@iro.umontreal.ca>
10288
10289 * fileio.c (Finsert_file_contents): Adjust offsets when replacing
10290 within a narrowed buffer.
10291
10292 2008-02-14 Kenichi Handa <handa@ni.aist.go.jp>
10293
10294 * coding.c (decode_coding_object, encode_coding_object):
10295 Preserve Vdeactivate_mark. Delete unnecessary call of Fcurrent_buffer.
10296
10297 2008-02-12 Stefan Monnier <monnier@iro.umontreal.ca>
10298
10299 * coding.c (coding_set_destination): Use BEG_BYTE rather than
10300 hardcoding 1.
10301 (detect_coding_system):
10302 * lisp.h (detect_coding_system, chars_in_text, multibyte_chars_in_text)
10303 (string_char_to_byte, string_byte_to_char, insert_from_gap):
10304 * insdel.c (insert_from_gap):
10305 * fns.c (string_char_byte_cache_charpos, string_char_byte_cache_bytepos)
10306 (string_char_to_byte, string_byte_to_char, string_make_multibyte)
10307 (string_to_multibyte):
10308 * character.c (chars_in_text, multibyte_chars_in_text):
10309 * fileio.c (Finsert_file_contents): Use EMACS_INT for buffer positions.
10310
10311 * character.h (FETCH_STRING_CHAR_ADVANCE)
10312 (FETCH_STRING_CHAR_AS_MULTIBYTE_ADVANCE)
10313 (FETCH_STRING_CHAR_ADVANCE_NO_CHECK): Use SDATA and SREF.
10314 (DEC_POS, BUF_DEC_POS): Use BEG_BYTE rather than hardcoding 1.
10315
10316 * casefiddle.c (casify_region): Only call after-change and composition
10317 functions on the part of the region that was changed.
10318
10319 * keyboard.c (read_avail_input):
10320 * frame.c (Fdelete_frame): Call Fdelete_terminal.
10321
10322 2008-02-11 Stefan Monnier <monnier@iro.umontreal.ca>
10323
10324 * buffer.c (clone_per_buffer_values, reset_buffer_local_variables)
10325 (Fbuffer_local_value, Fbuffer_local_variables): Don't forget undo_list.
10326
10327 2008-02-11 Juanma Barranquero <lekktu@gmail.com>
10328
10329 * w32menu.c (push_submenu_start, push_submenu_end)
10330 (push_left_right_boundary, push_menu_pane, push_menu_item):
10331 * keyboard.c (read_key_sequence): Don't pass args with side effects
10332 to AREF, it fails when compiling with -DENABLE_CHECKING.
10333
10334 2008-02-11 Kenichi Handa <handa@ni.aist.go.jp>
10335
10336 * Makefile.in (${lispsource}international/charprop.el):
10337 Delete this target.
10338
10339 * search.c (boyer_moore): Fix incorrect synching of the trunk and
10340 emacs-unicode-2.
10341
10342 2008-02-11 Stefan Monnier <monnier@iro.umontreal.ca>
10343
10344 * terminal.c (Fdelete_terminal): Clean up the `force' path.
10345
10346 2008-02-10 Stefan Monnier <monnier@iro.umontreal.ca>
10347
10348 * frame.c (Qnoelisp): New symbol.
10349 (syms_of_frame): Initialize it.
10350 (Fdelete_frame): Use it to distinguish a mere `force' passed from some
10351 harmless Elisp code, from a strong `force' from x_connection_closed.
10352 * frame.h (Qnoelisp): Declare.
10353 * xterm.c (x_connection_closed): Pass `noelisp'.
10354
10355 * lisp.h (struct Lisp_Misc_Any, struct Lisp_Marker)
10356 (struct Lisp_Overlay, struct Lisp_Kboard_Objfwd)
10357 (struct Lisp_Save_Value, struct Lisp_Free): Use enum Lisp_Misc_Type
10358 rather than `int' for the type of `type'.
10359
10360 2008-02-10 Dan Nicolaescu <dann@ics.uci.edu>
10361
10362 * s/gnu-linux.h: Remove support for non-ELF and linux-1.x.
10363
10364 * Makefile.in (GNUC): Remove support for gcc-1.x.
10365
10366 2008-02-10 Richard Stallman <rms@gnu.org>
10367
10368 * lisp.h (ASET): Use AREF, not ASLOT.
10369
10370 2008-02-10 Stefan Monnier <monnier@iro.umontreal.ca>
10371
10372 * lisp.h (ASET): Check bounds.
10373
10374 2008-02-10 Glenn Morris <rgm@gnu.org>
10375
10376 * buffer.c (mode-name): Doc fix.
10377
10378 2008-02-09 Dan Nicolaescu <dann@ics.uci.edu>
10379
10380 * Makefile.in:
10381 * emacs.c:
10382 * gmalloc.c:
10383 * keyboard.c:
10384 * lisp.h:
10385 * m/ibm370aix.h:
10386 * process.c:
10387 * regex.c:
10388 * s/hpux.h:
10389 * sysdep.c:
10390 * sysselect.h:
10391 * systty.h:
10392 * unexec.c:
10393 * w32term.c:
10394 * xsmfns.c:
10395 * xterm.c: Remove code that deals with obsolete variables.
10396
10397 * s/msdos.h (DONT_NEED_ENVIRON): Don't define.
10398
10399 * ecrt0.c: Replace the DONT_NEED_ENVIRON test with MSDOS test,
10400 nothing else needs it anymore.
10401
10402 2008-02-09 Eli Zaretskii <eliz@gnu.org>
10403
10404 * buffer.h (FETCH_CHAR_AS_MULTIBYTE): Use unibyte_to_multibyte_table
10405 instead of unibyte_char_to_multibyte.
10406
10407 2008-02-09 Dan Nicolaescu <dann@ics.uci.edu>
10408
10409 * s/gnu-linux.h: Remove commented out code.
10410
10411 * unexec.c: Remove references to obsolete variable COFF_ENCAPSULATE.
10412
10413 * Makefile.in: Update what RMS says about using autoconf.
10414 (C_COMPILER, COFF_ENCAPSULATE, MAKE_PARALLEL): Remove obsolete variable.
10415 (C_SWITCH_MACHINE_1, C_SWITCH_SYSTEM_1, C_SWITCH_SITE_1)
10416 (C_SWITCH_X_SITE_1, C_SWITCH_X_MACHINE_1)
10417 (C_SWITCH_X_SYSTEM_1): Move invariant code outside conditional.
10418
10419 2008-02-08 Stefan Monnier <monnier@iro.umontreal.ca>
10420
10421 * keymap.c (Fkey_description): Move side effect outside of macro call.
10422
10423 * xfaces.c (Finternal_make_lisp_face):
10424 * keyboard.c (add_command_key, parse_menu_item): Use ASET.
10425
10426 * fontset.c (free_face_fontset): Use FONTSET_FROM_ID.
10427 (syms_of_fontset): Use ASET.
10428
10429 * fns.c (concat): Move side effect outside of macro call.
10430 (hash_clear): Use ASET.
10431
10432 2008-02-08 Richard Stallman <rms@gnu.org>
10433
10434 * frame.c (Fdelete_frame): If FORCE, don't call hooks.
10435 If FORCE, and frame has a surrogate minibuffer for another frame,
10436 delete the other frame first.
10437
10438 2008-02-07 Timo Savola <timo.savola@iki.fi>
10439
10440 * xterm.c (x_detect_focus_change): Handle embed client message.
10441 (handle_one_xevent): Ditto.
10442 (handle_one_xevent): If embedded and we get a button press/release,
10443 request focus.
10444 (xembed_set_info, xembed_send_message): New functions.
10445 (x_make_frame_visible): Call xembed_set_info if embedded.
10446 (x_make_frame_invisible): Call xembed_set_info if embedded.
10447 (x_term_init): Initialize Xatom_XEMBED.
10448 (x_make_frame_visible): Check for FRAME_X_EMBEDDED_P also.
10449 (x_iconify_frame): Ditto.
10450
10451 * xterm.h (struct x_display_info): Add AtomXatom_XEMBED.
10452 (enum xembed_info, enum xembed_message, enum xembed_focus)
10453 (enum xembed_modifier, enum xembed_accelerator): New.
10454 (xembed_set_info, xembed_send_message): Declare.
10455 (FRAME_X_EMBEDDED_P): New.
10456
10457 * gtkutil.c (xg_create_frame_widgets): If frame is embedded, call
10458 gtk_plug_new.
10459
10460 * xfns.c (Fx_create_frame): Do not override the explicitly set parent
10461 window ID of a frame.
10462 (x_window): Reparent frame if embedded.
10463 (Fx_create_frame): Don't set border width if embedded.
10464
10465 * emacs.c (USAGE3): Add --parent-id.
10466 (standard_args): Ditto.
10467
10468 2008-02-07 Jan Djärv <jan.h.d@swipnet.se>
10469
10470 * coding.c (DECODE_EMACS_MULE_COMPOSITION_CHAR): Use "do...while (0)".
10471
10472 2008-02-07 Jim Meyering <meyering@redhat.com>
10473
10474 Use "do...while (0)", not "if (1)...else" in macro definitions.
10475 The latter provokes a warning from gcc about the empty else, when
10476 followed by ";". Also, without that trailing semicolon, it would
10477 silently swallow up any following statement.
10478 * syntax.h (SETUP_SYNTAX_TABLE)
10479 (SETUP_SYNTAX_TABLE_FOR_OBJECT): Likewise.
10480 * buffer.h (DECODE_POSITION): Likewise.
10481 * character.h (FETCH_STRING_CHAR_ADVANCE): Likewise.
10482 (FETCH_STRING_CHAR_AS_MULTIBYTE_ADVANCE): Likewise.
10483 (FETCH_STRING_CHAR_ADVANCE_NO_CHECK): Likewise.
10484 (FETCH_CHAR_ADVANCE): Likewise.
10485 (FETCH_CHAR_ADVANCE_NO_CHECK): Likewise.
10486
10487 2008-02-07 Jim Meyering <meyering@redhat.com>
10488
10489 * lread.c [lint]: Don't include <sys/inode.h>.
10490
10491 2008-02-07 Stefan Monnier <monnier@iro.umontreal.ca>
10492
10493 * xselect.c (x_handle_dnd_message):
10494 * xmenu.c (digest_single_submenu, xmenu_show):
10495 * xdisp.c (with_echo_area_buffer_unwind_data)
10496 (format_mode_line_unwind_data, unwind_format_mode_line)
10497 (display_menu_bar):
10498 * eval.c (Ffetch_bytecode):
10499 * doc.c (store_function_docstring):
10500 * ccl.c (resolve_symbol_ccl_program, ccl_get_compiled_code)
10501 (Fccl_execute, Fccl_execute_on_string, Fregister_code_conversion_map):
10502 * buffer.c (add_overlay_mod_hooklist): Use ASET.
10503
10504 2008-02-07 Kenichi Handa <handa@m17n.org>
10505
10506 * ftxfont.c (ftxfont_open): Don't set
10507 dpyinfo->smallest_font_height and dpyinfo->smallest_char_width to 0.
10508
10509 * ftfont.c (ftfont_open): Fix previous change.
10510
10511 2008-02-06 Jason Rumney <jasonr@gnu.org>
10512
10513 * w32font.c (w32font_text_extents): Fill in lbearing metric.
10514 Use cached metrics for ASCII characters.
10515 (w32font_open_internal): Don't set font's owning_frame.
10516 Cache metrics for ASCII characters.
10517
10518 * w32font.h (struct w32font_info): Add ascii_metrics.
10519 Remove owning_frame.
10520
10521 2008-02-06 Kenichi Handa <handa@ni.aist.go.jp>
10522
10523 * xdisp.c (x_produce_glyphs): Don't set it->ascent and it->descent
10524 to negative value.
10525
10526 * ftxfont.c (ftxfont_draw): Use s->font_info, not face->font_info.
10527
10528 * ftfont.c (ftfont_open): Fix calculation of font->font.average_width.
10529
10530 * charset.c (syms_of_charset): Set QCtest and Qeq.
10531
10532 2008-02-06 Stefan Monnier <monnier@iro.umontreal.ca>
10533
10534 * process.c (Fstart_process):
10535 * callproc.c (Fcall_process): Handle the case where
10536 Funhandled_file_name_directory returns nil.
10537
10538 * font.h (enum lgstring_indices, enum lglyph_indices): New enums.
10539 (LGSTRING_SLOT, LGSTRING_SET_SLOT): New macros.
10540 * font.c (check_gstring): Use them and AREF to access the vector before
10541 we know it's really a gstring.
10542 (Ffont_shape_text): Fix typo.
10543 (Ffont_shape_text, Ffont_otf_alternates): Fix up int/Lisp_Object mixups.
10544
10545 * composite.h (Fcompose_region_internal, Fcompose_string_internal):
10546 Declare.
10547
10548 * chartab.c (make_sub_char_table): Remove noop-yet-incorrect statement.
10549
10550 2008-02-05 Jason Rumney <jasonr@gnu.org>
10551
10552 * w32font.c (w32font_open_internal): Fill min_width with tmAveCharWidth.
10553 Set smallest_font_height and smallest_char_width in display info.
10554
10555 2008-02-05 Kenichi Handa <handa@ni.aist.go.jp>
10556
10557 * coding.c (decode_eol): Pay attention to coding->dst_multibyte.
10558
10559 2008-02-05 Miles Bader <miles@gnu.org>
10560
10561 * xfaces.c (get_lface_attributes, merge_named_face)
10562 (lookup_named_face, lookup_derived_face, realize_named_face):
10563 Revert 2008-02-01 change by cyd@stupidchicken.com.
10564
10565 2008-02-04 Kenichi Handa <handa@ni.aist.go.jp>
10566
10567 * fontset.c (Ffontset_info): Handle the case of inhibitting the
10568 fallback fonts.
10569 (Ffontset_info) [USE_FONT_BACKEND]: Fix getting of opened font names.
10570
10571 2008-02-04 Jason Rumney <jasonr@gnu.org>
10572
10573 * w32font.c (w32font_open_internal): Use font_unparse_fcname to
10574 set full_name.
10575 (w32font_open_internal): Use xmalloc, xrealloc, xfree.
10576
10577 2008-02-03 Jason Rumney <jasonr@gnu.org>
10578
10579 * makefile.w32-in (OBJ1): Include font.o here.
10580 (FONTOBJ) [USE_FONTBACKEND]: Instead of here.
10581
10582 2008-02-02 Jason Rumney <jasonr@gnu.org>
10583
10584 * makefile.w32-in (temacs): Bump EMHEAP to 21.
10585
10586 2008-02-01 Jason Rumney <jasonr@gnu.org>
10587
10588 * s/cygwin.h: Define VIRT_ADDR_VARIES.
10589
10590 * puresize.h [VIRT_ADDR_VARIES]: Don't include CYGWIN in condition.
10591
10592 2008-02-01 Andreas Schwab <schwab@suse.de>
10593
10594 * Makefile.in (shortlisp, lisp): Update for rename of
10595 ../lisp/language/myanmar.el.
10596
10597 2008-02-01 Chong Yidong <cyd@stupidchicken.com>
10598
10599 * xfaces.c (get_lface_attributes): Delete function.
10600 (merge_named_face, lookup_named_face, lookup_derived_face)
10601 (realize_named_face): Call lface_from_face_name directly, and use
10602 the fact that merge_face_vectors does not alter its FROM argument.
10603
10604 2008-02-01 Jason Rumney <jasonr@gnu.org>
10605
10606 * w32term.c (w32_read_socket) <WM_CHAR>: Decode non-Unicode
10607 input in the default locale. Handle non-Unicode multibyte input.
10608
10609 2008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
10610
10611 * fontset.c (reorder_font_vector): Exclude nil elements from the
10612 font group. Don't try multiple fonts.
10613 (fontset_font): Adjust for the above change.
10614 (Finternal_char_font): Return nil if the found font doesn't
10615 contain the character ch.
10616
10617 * Makefile.in (lisp, shortlisp): Add cham.el.
10618
10619 2008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
10620
10621 * font.h (FONTP): Make it return 1 also for a font-object.
10622
10623 * .gdbinit (xfontset): New function.
10624
10625 * font.c (font_find_for_lface): Check if the character C is
10626 supported or not only for the first font.
10627
10628 * fontset.c (reorder_font_vector): Fix typo.
10629 (fontset_find_font): Don't add a font-spec specifying a script.
10630 Use 0 (not Qt) for the indication of empty font-group. Change the
10631 format of RFONT-DEF. Return Qt if no font in the font-group
10632 support the character.
10633 (fontset_font): Adjust for the above change. If no font was
10634 found the character, remember that.
10635 (face_for_char): Adjust for the change of RFONT-DEF.
10636 (Fset_fontset_font): Allow nil for FONT-SPEC to explicitly specify
10637 no font for the target.
10638 (Finternal_char_font): Adjust for the change of RFONT-DEF.
10639
10640 2008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
10641
10642 * font.c (font_load_for_face): Handle the case that the font in
10643 face->lface is a string.
10644
10645 2008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
10646
10647 * xfaces.c (set_lface_from_font_and_fontset): Set the fontname in lface.
10648
10649 2008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
10650
10651 * xfaces.c (Finternal_set_lisp_face_attribute) [USE_FONT_BACKEND]:
10652 Fix previous change. If the frame is not on a window system,
10653 signal an error.
10654
10655 2008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
10656
10657 * coding.c (decode_coding_object, encode_coding_object): Adjust
10658 marker positions after conversion.
10659
10660 * lisp.h (struct Lisp_Marker): New member need_adjustment.
10661
10662 2008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
10663
10664 * font.c (font_find_for_lface): Fix the handling of the return
10665 value of font_has_char.
10666 (Ffont_shape_text): Fix previous change.
10667
10668 * fontset.c (FONTSET_REF_AND_RANGE): Delete it.
10669 (fontset_ref_and_range): Delete it.
10670 (fontset_find_font): Call char_table_ref_and_range instead of
10671 FONTSET_REF_AND_RANGE.
10672 (make_fontset): Don't setup font groups of Latin here.
10673 (Fset_fontset_font): Don't overwrite the setting of FONTSET_ASCII.
10674 (new_fontset_from_font): Make the specified font the default for
10675 all Latin characters.
10676
10677 2008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
10678
10679 * xfaces.c (Finternal_set_lisp_face_attribute): Check if the frame
10680 is on a window system before accessing the fontset of the frame.
10681
10682 2008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
10683
10684 * Makefile.in (lisp, shortlisp): Add kherm.el and myanmar.el.
10685
10686 * ftfont.c (ftfont_driver): Set ftfont_shape in ftfont_driver only
10687 when both HAVE_M17N_FLT and HAVE_LIBOTF are defined.
10688
10689 * font.c (Ffont_shape_text): If the font driver doesn't have a
10690 shaper function, make zero-width glyphs to have at least one-pixel
10691 width. Fix setting of `to' field of glyphs.
10692
10693 2008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
10694
10695 * ftfont.c (ftfont_drive_otf): Fix setting of FROM and TO slots of
10696 glyphs.
10697
10698 * font.h (struct font_driver): Improve docstring of member `shape'.
10699
10700 2008-02-01 Kenichi Handa <handa@m17n.org>
10701
10702 * composite.c (syms_of_composite): Fix docstring of
10703 auto-composition-function.
10704
10705 * font.h (LGLYPH_SIZE): New macro.
10706
10707 * font.c (Ffont_fill_gstring): Stop filling when a character not
10708 supported by the font is found.
10709 (Ffont_shape_text): When a shape callback function returns nil,
10710 try at most two more times with larger gstring.
10711 (Ffont_at): Fix getting of w. Call font_at with correct 5th argument.
10712
10713 * xdisp.c (handle_auto_composed_prop): Change the argument to
10714 auto-composition-function.
10715
10716 * ftfont.c (ftfont_encode_char): Use the macro FONT_INVALID_CODE.
10717 (ftfont_shape_by_flt): If an element of lgstring is nil, make a
10718 Lispy glyph and store it in the lgstring.
10719
10720 * xfont.c (xfont_encode_char): Use the macro FONT_INVALID_CODE.
10721
10722 * xftfont.c (xftfont_encode_char): Use the macro FONT_INVALID_CODE.
10723
10724 2008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
10725
10726 * font.c (Ffont_shape_text): Avoid unnecessary composition.
10727
10728 * fontset.c (Vfont_encoding_charset_alist): New variable.
10729 (syms_of_fontset): DEFVAR it.
10730 (reorder_font_vector, fontset_find_font): Optimize for the case of
10731 no need of reordering.
10732 (face_for_char): Map the charset property by
10733 Vfont_encoding_charset_alist.
10734
10735 2008-02-01 Jason Rumney <jasonr@gnu.org>
10736
10737 * w32font.c (logfonts_match): Don't check adstyle here.
10738 (font_matches_spec): Check here against physical font instead.
10739 (add_font_entity_to_list): Avoid some substitutions.
10740
10741 * font.c (font_parse_fcname): Default weight and slant to normal.
10742 (font_score): Prefer normal fonts if weight or slant unspecified.
10743 (font_score) [WINDOWSNT]: Scale weight difference down to closer
10744 match freetype scores.
10745
10746 2008-02-01 Jason Rumney <jasonr@gnu.org>
10747
10748 * w32font.c (w32font_text_extents): Don't use the frame stored in the
10749 font, as it may have been deleted.
10750 (w32_enumfont_pattern_entity): Map generic family to adstyle using
10751 most common hyphenless variation.
10752 (logfonts_match): Check generic family.
10753 (font_matches_spec): Don't check generic family here.
10754 (fill_in_logfont): Set generic family based on adstyle.
10755
10756 * w32font.h (w32font_get_cache): Update declaration.
10757
10758 2008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
10759
10760 * ftfont.c (ftfont_get_cache): Adjust the argument type.
10761
10762 * frame.c (x_set_font_backend): Don't call Fclear_font_cache.
10763 If none of the new drivers are available, call font_update_drivers
10764 with the old drivers.
10765
10766 * w32font.c (w32font_get_cache): Adjust the argument type.
10767
10768 * xfont.c (xfont_get_cache): Adjust the argument type.
10769
10770 * font.h (struct font_driver): Change argument type of get_cache.
10771
10772 * xftfont.c (xftfont_start_for_frame): Delete prototype.
10773
10774 * font.c (Ffont_get): Fix arguments to Fassoc.
10775 (font_prepare_cache, font_finish_cache, font_get_cache): New functions.
10776 (font_clear_cache): New function.
10777 (font_list_entities, font_matching_entity): Use font_get_cache.
10778 (font_update_drivers): Call font_clear_cache when finishing a driver.
10779
10780 * fontset.c (fontset_find_font): Fix previous change.
10781
10782 2008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
10783
10784 * xterm.c (x_check_font) [USE_FONT_BACKEND]: Don't access
10785 dpyinfo->font_table.
10786 (x_delete_display) [USE_FONT_BACKEND]: Likewise.
10787 (x_delete_terminal) [USE_FONT_BACKEND]: Likewise.
10788
10789 * font.c (font_at): Handle the case that the arg C is negative.
10790 Handle the unibyte case.
10791 (Ffont_at): Call font_at with the arg C -1.
10792
10793 * xdisp.c (handle_auto_composed_prop): Don't get a character at
10794 the position here, and call font_at with the arg C -1.
10795 Don't check the range of the existing composition at the point.
10796
10797 2008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
10798
10799 * fontset.c (fontset_add): New args charset_id and family.
10800 Change caller.
10801 (load_font_get_repertory, fontset_find_font): Assume that
10802 font_spec is always a font-spec object.
10803 (Fset_fontset_font): Always store a font-spec object in a fontset.
10804
10805 * xdisp.c (handle_auto_composed_prop): Use Fget_text_property
10806 instead of get_property_and_range.
10807
10808 2008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
10809
10810 * xftfont.c (struct xftfont_info): Delete the member ft_face.
10811 (xftfont_open): Don't keep locking face.
10812 (xftfont_close): Don't unlock face.
10813 (xftfont_anchor_point, xftfont_shape): Lock and unlock face.
10814
10815 * fontset.c (fontset_find_font): Don't prefer a font of
10816 supplementary charset.
10817
10818 2008-02-01 Kenichi Handa <handa@m17n.org>
10819
10820 * ftfont.c (struct OpenTypeSpec): Rename members script_tag to
10821 script, langsys_tag to langsys, new member script.
10822 (OTF_TAG_STR): Terminate by '\0'.
10823 (ftfont_get_open_type_spec): If :otf prop is spec, limit the
10824 listing to the script specified in that property. Fix arg to
10825 OTF_check_features.
10826
10827 2008-02-01 Jason Rumney <jasonr@gnu.org>
10828
10829 * w32font.h: New file.
10830
10831 * w32font.c: Include it.
10832 (struct w32font_info): Add owning_frame field. Move to w32font.h.
10833 (w32font_open): Set owning_frame.
10834 (w32font_text_extents): Use owning_frame.
10835 (struct font_callback_data): Add opentype_only field.
10836 (add_font_entity_to_list): Use it to filter fonts.
10837 Don't check against full name.
10838 (w32font_list_internal): New function.
10839 (w32font_list): Use it.
10840 (w32font_match_internal): New function.
10841 (w32font_match): Use it.
10842 (w32font_open_internal): New function.
10843 (w32font_open): Use it.
10844 (w32font_get_cache, w32font_close, w32font_has_char)
10845 (w32font_encode_char, w32font_text_extents, w32font_draw):
10846 Make non-static.
10847
10848 * makefile.w32-in (w32font.o): Depend on w32font.h.
10849
10850 2008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
10851
10852 * charset.c (Fdefine_charset_internal): Record a supplementary
10853 charset at the tail of Vcharset_order_list.
10854
10855 * font.c (Ffont_shape_text): Fix the return value.
10856
10857 * ftfont.c (OTF_SYM_TAG, OTF_TAG_STR): Fix argument names.
10858
10859 * xdisp.c (handle_auto_composed_prop): Fix previous change.
10860
10861 2008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
10862
10863 * ftfont.c (struct OpenTypeSpec): New struct.
10864 (OTF_SYM_TAG, OTF_TAG_STR): New macros.
10865 (ftfont_get_open_type_spec): New function.
10866 (ftfont_list) [HAVE_LIBOTF]: Check otf-spec property.
10867
10868 * lread.c (read1): Redo the previous change with checking Vpurify_flag.
10869
10870 2008-02-01 Jason Rumney <jasonr@gnu.org>
10871
10872 * w32font.c (add_font_entity_to_list): Compare only the beginning
10873 of full name.
10874
10875 2008-02-01 Kenichi Handa <handa@m17n.org>
10876
10877 * xdisp.c (handle_auto_composed_prop): Simplify the code.
10878 Never return HANDLED_RECOMPUTE_PROPS.
10879
10880 2008-02-01 Kenichi Handa <handa@m17n.org>
10881
10882 * font.c (font_gstring_produce): Delete it.
10883
10884 * composite.h (COMPOSITION_METHOD):
10885 Handle COMPOSITION_WITH_GLYPH_STRING.
10886
10887 2008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
10888
10889 * xfont.c (Qx): Delete.
10890 (syms_of_xfont): Don't initialize Qx.
10891
10892 * composite.h (enum composition_method):
10893 Define COMPOSITION_WITH_GLYPH_STRING unconditionally.
10894
10895 2008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
10896
10897 * xfaces.c [HAVE_WINDOW_SYSTEM]: Include "font.h" unconditionally.
10898 (choose_face_font): Accept new form of font-spec.
10899
10900 * frame.h (font_driver_list): Declare it unconditionally.
10901 (struct frame): Define members font_driver_list and font_data_list
10902 unconditionally.
10903
10904 * fontset.c: Include "font.h" unconditionally.
10905 (generate_ascii_font_name): Use font_parse_xlfd and font_unparse_xlfd.
10906 (Fset_fontset_font): Accept a font-spec object.
10907
10908 * font.c (font_unparse_xlfd): If pixel_size is zero, make the
10909 PIXEL_SIZE part a wild card.
10910
10911 * dispextern.h (struct glyph_string): Define members clip and
10912 num_clips unconditionally.
10913 (struct face): Define members font_info and extra unconditionally.
10914
10915 * ftfont.c (ftfont_open): Set members maybe_otf and otf of
10916 ftfont_info only when HAVE_LIBOTF is defined.
10917
10918 2008-02-01 Andreas Schwab <schwab@suse.de>
10919
10920 * xdisp.c (back_to_previous_visible_line_start): Fix type of beg
10921 and end.
10922
10923 2008-02-01 Jason Rumney <jasonr@gnu.org>
10924
10925 * w32font.c (w32font_driver): Add new fields.
10926
10927 2008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
10928
10929 * Makefile.in (ALL_CFLAGS): Add @M17N_FLT_CFLAGS@.
10930 (FONTSRC, FONTOBJ) [HAVE_WINDOW_SYSTEM]: Set them unconditionally.
10931 (LIBES): Add @M17N_FLT_CFLAGS@.
10932
10933 * composite.c (compose_text): Don't treat the new style
10934 composition specially.
10935
10936 * emacs.c (main): Call syms_of_font unconditionally.
10937
10938 * font.h (FONT_ENTITY_NOT_LOADABLE)
10939 (FONT_ENTITY_SET_NOT_LOADABLE): New macros.
10940 (LGSTRING_XXXX, LGLYPH_XXX): Adjust for the change of lispy gstring.
10941 (struct font_driver): New member shape.
10942 (font_registry_charsets): Extern it.
10943 (font_find_for_lface, font_prepare_composition): Adjust prototype.
10944 (font_otf_capability, font_drive_otf): Delete their externs.
10945
10946 * font.c [HAVE_M17N_FLT]: Include <m17n-flt.h>.
10947 (font_charset_alist, font_registry_charsets): Move from xfont.c
10948 and rename.
10949 (font_prop_validate_otf): New function.
10950 (font_property_table): Register it for QCotf.
10951 (DEVICE_DELTA, adjust_anchor, REPLACEMENT_CHARACTER)
10952 (font_drive_otf): Delete.
10953 (font_prepare_composition): New arg F. Adjust for the change of
10954 lispy gstring.
10955 (font_find_for_lface): New arg C.
10956 (font_load_for_face): Adjust for the change of font_find_for_lface.
10957 (Ffont_make_gstring, Ffont_fill_gstring): Adjust for the change of
10958 lispy gstring.
10959 (Ffont_shape_text): New function.
10960 (Fopen_font): If the font size is not given, use 12-pixel.
10961 (Ffont_at): New arg STRING.
10962 (syms_of_font): Initalize font_charset_alist.
10963 Declare Ffont_shape_text as a Lisp function. Call syms_of_XXfont
10964 conditionally.
10965
10966 * fontset.c (fontset_find_font) [USE_FONT_BACKEND]: Try multiple
10967 fonts of the same font-spec. Change the format of RFONT-DEF.
10968 (face_for_char, make_fontset_for_ascii_face, Finternal_char_font):
10969 Adjust for the change of RFONT-DEF.
10970 (Fset_fontset_font) [USE_FONT_BACKEND]: Handle new format of font-spec.
10971
10972 * ftfont.h: New file.
10973
10974 * ftfont.c: Don't include Freetype headers. Include "ftfont.h".
10975 (struct ftfont_info) [HAVE_LIBOTF]: New members maybe_otf and otf.
10976 (ftfont_open) [HAVE_LIBOTF]: Initialize the above members.
10977 (ftfont_driver) [HAVE_LIBOTF, HAVE_M17N_FLT]: Don't set
10978 font_otf_capability and font_drive_otf, set ftfont_shape.
10979 (ftfont_list): Adjust for the change of :otf property value.
10980 (struct MFLTFontFT) [HAVE_LIBOTF, HAVE_M17N_FLT]: New struct.
10981 (ftfont_get_glyph_id, ftfont_get_metrics, ftfont_check_otf)
10982 (adjust_anchor, ftfont_drive_otf, ftfont_shape_by_flt)
10983 (ftfont_shape) [HAVE_LIBOTF, HAVE_M17N_FLT]: New function.
10984 (DEVICE_DELTA) [HAVE_LIBOTF, HAVE_M17N_FLT]: New macro.
10985 (otf_gstring, gstring, m17n_flt_initialized): New variables.
10986
10987 * w32term.c (x_draw_composite_glyph_string_foreground):
10988 Adjust for the change of lispy gstring.
10989
10990 * xdisp.c (handle_composition_prop): Adjust for the change of
10991 lispy gstring. Call a function for auto-composition with the
10992 third arg it->window.
10993 (fill_composite_glyph_string): Adjust for the change of lispy string.
10994 (x_produce_glyphs): Adjust for the change of font_prepare_compositionl.
10995
10996 * xfaces.c (set_font_frame_param): Adjust for the change of
10997 font_find_for_lface.
10998
10999 * xfont.c (x_font_charset_alist): Move to font.c and rename.
11000 (xfont_registry_charsets): Likewise. Change caller.
11001 (syms_of_xfont): Don't handle x_font_charset_alist.
11002
11003 * xftfont.c: Include "ftfont.h".
11004 (struct xftfont_info) [HAVE_LIBOTF]: New members maybe_otf and otf.
11005 (xftfont_open) [HAVE_LIBOTF]: Initialize the above members.
11006 (xftfont_close) [HAVE_LIBOTF]: Close otf.
11007 (xftfont_shape) [HAVE_LIBOTF, HAVE_M17N_FLT]: New function.
11008 (syms_of_xftfont) [HAVE_LIBOTF, HAVE_M17N_FLT]:
11009 Set xftfont_driver.shape to xftfont_shape.
11010
11011 * xterm.c (x_draw_composite_glyph_string_foreground): Adjust for
11012 the change of lispy gstring.
11013
11014 2008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
11015
11016 * ftxfont.c (ftxfont_end_for_frame): Fix array indexing error.
11017
11018 2008-02-01 Jason Rumney <jasonr@gnu.org>
11019
11020 * w32font.c (w32font_draw): Fill background manually.
11021
11022 2008-02-01 Jason Rumney <jasonr@gnu.org>
11023
11024 * font.c (Qfontp): Remove unused symbol.
11025 (QCantialias): New symbol.
11026 (syms_of_font): Define it.
11027 (font_property_table): Set a validator for QCantialias.
11028
11029 * w32font.c (CLEARTYPE_QUALITY, CLEARTYPE_NATURAL_QUALITY):
11030 Define if not already.
11031 (QCfamily): Share with xfaces.c.
11032 (Qstandard, Qsubpixel, Qnatural): New symbols.
11033 (syms_of_w32font): Define them. Don't define QCfamily here.
11034 (w32_antialias_type, lispy_antialias_type): New functions.
11035 (w32_enumfont_pattern_entity): New arg requested_font.
11036 Set antialias parameter if non-default was requested.
11037 (fill_in_logfont): Fill in lfQuality if :antialias specified.
11038
11039 2008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
11040
11041 * lread.c (read1): Undo the previous change.
11042
11043 2008-02-01 CHENG Gao <chenggao@gmail.com> (tiny change)
11044
11045 * frame.c (Fdelete_frame): Call font_update_drivers only when
11046 USE_FONT_BACKEND is defined.
11047
11048 2008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
11049
11050 * font.h (struct font_bitmap): New member bits_per_pixel.
11051 (struct font_driver): New members start_for_frame and end_for_frame.
11052 (struct font_data_list): New struct.
11053 (font_put_frame_data, font_get_frame_data): Extern them.
11054
11055 * frame.h (struct frame): New member font_data_list.
11056
11057 * font.c (font_update_drivers): Call driver->start_for_frame and
11058 driver->end_for_frame at proper timings.
11059 (font_put_frame_data, font_get_frame_data): New functions.
11060 (Ffont_spec): Add usage in the docstring.
11061
11062 * frame.c (make_frame): Initialize f->font_data_list to NULL.
11063 (Fdelete_frame): Call font_update_drivers.
11064
11065 * xftfont.c (struct xftface_info): Delete the member xft_draw.
11066 (xftfont_prepare_face, xftfont_done_face): Adjust for the above change.
11067 (xftfont_get_xft_draw): New function.
11068 (xftfont_draw): Get XftDraw by xftfont_get_xft_draw.
11069 (xftfont_end_for_frame): New function.
11070 (syms_of_xftfont): Set xftfont_driver.end_for_frame.
11071
11072 * ftxfont.c (ftxfont_get_gcs): Rename from ftxfont_create_gcs.
11073 Change argument. Cache GCs in the per-frame data.
11074 (struct ftxfont_frame_data): New struct.
11075 (ftxfont_draw_bitmap): New arg gc_fore and flush.
11076 (ftxfont_prepare_face, ftxfont_done_face): Delete them.
11077 (ftxfont_draw): Get GCs by ftxfont_get_gcs. Reflect s->clip in GCs.
11078 (ftxfont_end_for_frame): New function.
11079 (syms_of_ftxfont): Set ftxfont_driver.end_for_frame.
11080
11081 * ftfont.c (ftfont_get_bitmap): Set bitmap->bits_per_pixel.
11082
11083 2008-02-01 Kenichi Handa <handa@m17n.org>
11084
11085 * xselect.c (Vselection_coding_system)
11086 (Vnext_selection_coding_system): Delete them.
11087 (syms_of_xselect): Don't declare selection-coding-system and
11088 next-selection-coding-system. They are declared in select.el.
11089
11090 2008-02-01 Jason Rumney <jasonr@gnu.org>
11091
11092 * w32term.h (WM_UNICHAR, UNICODE_NOCHAR): Define if not already.
11093
11094 * w32fns.c: Include imm.h.
11095 (get_composition_string_fn, get_ime_context_fn): New optional
11096 system functions.
11097 (globals_of_w32fns): Load them from imm32.dll.
11098 (ignore_ime_char): New flag.
11099 (w32_wnd_proc): Handle WM_UNICHAR, WM_IME_CHAR and
11100 WM_IME_ENDCOMPOSITION messages.
11101
11102 * w32term.c (w32_read_socket) [WM_UNICHAR]: Handle as
11103 MULTIBYTE_CHAR_KEYSTROKE_EVENT.
11104
11105 2008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
11106
11107 * lread.c (READCHAR): Call readchar with the 2nd arg NULL.
11108 (READCHAR_REPORT_MULTIBYTE): New macro.
11109 (readchar): New 2nd arg MULTIBYTE.
11110 (read1): Use READCHAR_REPORT_MULTIBYTE for the first read.
11111 Make symbol's name multibyte according to the multibyteness of the
11112 source.
11113
11114 2008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
11115
11116 * xfaces.c (face_for_overlay_string): Call lookup_face with
11117 correct arguments (fix of synching with the trunk).
11118
11119 2008-02-01 Kenichi Handa <handa@m17n.org>
11120
11121 * font.c (font_prop_validate_symbol, font_prop_validate_style)
11122 (font_prop_validate_non_neg, font_prop_validate_spacing):
11123 Delete argument prop_index.
11124 (font_property_table): Change arguments to validater. Change Callers.
11125 (font_lispy_object): Delete.
11126 (font_at): Use font_find_object instead fo font_lispy_object.
11127
11128 2008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
11129
11130 * fileio.c (Fexpand_file_name): Adjust multibyteness of directory
11131 and file names.
11132
11133 2008-02-01 Jason Rumney <jasonr@gnu.org>
11134
11135 * w32font.c (add_font_name_to_list): Avoid vertical fonts.
11136 (font_matches_spec): Remove debug output.
11137 (add_font_entity_to_list): Avoid using substituted fonts.
11138
11139 2008-02-01 Jason Rumney <jasonr@gnu.org>
11140
11141 * doc.c (Fsnarf_documentation):
11142 * Makefile.in (temacs${EXEEXT}, mostlyclean): Undo last change.
11143
11144 2008-02-01 Miles Bader <miles@gnu.org>
11145
11146 * dispextern.h (struct glyph_row): Only define "clip" field if
11147 HAVE_WINDOW_SYSTEM is defined.
11148
11149 2008-02-01 Stefan Monnier <monnier@iro.umontreal.ca>
11150
11151 Fix up multi-tty merge.
11152
11153 * xterm.c (handle_one_xevent): Remove duplicate code and fix up nesting
11154 and indentation.
11155
11156 * xfaces.c (free_realized_face, clear_face_gcs):
11157 Include font_done_for_face in the input_blocked section, just in case.
11158
11159 * xdisp.c (decode_mode_spec): Use terminal-local coding systems.
11160 (get_char_face_and_encoding): Undo last change and remove the *other*
11161 duplicate definition (i.e. keep the one that's better scoped and that
11162 includes code for the font-backend).
11163
11164 * terminal.c (create_terminal): Default keyboard_coding to
11165 `no-conversion' and terminal_coding to `undecided'.
11166
11167 * lread.c (read1): Use XSETPVECTYPE to set a pseudovector's tag.
11168
11169 * fontset.c (free_realized_fontsets): Check that the table entry does
11170 contain a fontset before trying to compare it to `base'.
11171
11172 * emacs.c (main): Move syms_of_data, syms_of_fileio, syms_of_alloc,
11173 syms_of_charset, and syms_of_coding earlier because init_window_once
11174 now needs Vcoding_system_hash_table to be setup.
11175
11176 * coding.h (default_buffer_file_coding): Remove.
11177
11178 * coding.c (default_buffer_file_coding): Remove.
11179 (Fterminal_coding_system, Fkeyboard_coding_system): Use ->id rather
11180 than ->symbol, and use the terminal-local coding system.
11181 (syms_of_coding): Don't setup the coding-systems that are not
11182 terminal-local.
11183 (Fdefine_coding_system_internal): Use XCAR/XCDR.
11184
11185 * chartab.c (Fmake_char_table, make_sub_char_table, copy_char_table):
11186 Use XSETPVECTYPE now that XSETCHAR_TABLE doesn't set the tag anymore.
11187
11188 * alloc.c (Fmake_char_table, make_sub_char_table): Remove. They're now
11189 in chartab.c and were re-added here by mistake.
11190 (Fpurecopy): Use XSETPVECTYPE after copying a COMPILED pseudovector.
11191
11192 * doc.c (Fsnarf_documentation):
11193 * Makefile.in (temacs${EXEEXT}, mostlyclean): Move buildobj.lst from
11194 src to etc.
11195
11196 * ChangeLog.10: Add mistakenly removed entry.
11197
11198 2008-02-01 Dan Nicolaescu <dann@ics.uci.edu>
11199
11200 * Makefile.in (fringe.o, minibuf.o): Fix dependencies.
11201
11202 2008-02-01 Miles Bader <miles@gnu.org>
11203
11204 * xdisp.c (get_char_face_and_encoding): Remove extraneous definition.
11205 Add extra args to FACE_FOR_CHAR.
11206
11207 2008-02-01 Kenichi Handa <handa@m17n.org>
11208
11209 * keymap.c (where_is_internal_1): If key is a cons, store the copy
11210 in sequence.
11211
11212 * chartab.c (map_sub_char_table, map_char_table): If the range
11213 contains just one character, call the function with that character
11214 even if the depth is not 3.
11215
11216 2008-02-01 Jason Rumney <jasonr@gnu.org>
11217
11218 * w32font.c (w32font_text_extents): Calculate metrics for the
11219 whole string.
11220
11221 2008-02-01 Jason Rumney <jasonr@gnu.org>
11222
11223 * w32xfns.c (get_next_msg): Consolidate WM_PAINT messages.
11224
11225 2008-02-01 Jason Rumney <jasonr@gnu.org>
11226
11227 * w32term.c (x_set_glyph_string_clipping): Use
11228 get_glyph_string_clip_rects.
11229 (x_set_glyph_string_clipping_exactly, x_draw_glyph_string):
11230 Adjust for the change of struct glyph_string.
11231
11232 * w32font.c (w32font_draw): Do clipping here.
11233
11234 2008-02-01 Kenichi Handa <handa@m17n.org>
11235
11236 * xftfont.c (xftfont_draw): Adjust for the change of struct
11237 glyph_string.
11238
11239 * xterm.c (x_set_glyph_string_clipping): Use
11240 get_glyph_string_clip_rects.
11241 (x_set_glyph_string_clipping_exactly, x_draw_glyph_string):
11242 Adjust for the change of struct glyph_string.
11243
11244 * xdisp.c (get_glyph_string_clip_rects): Reflect s->row->clip to
11245 the resulting clip(s}.
11246 (expose_overlaps): Add arg r. Change callers. Set it to
11247 row->clip temporarily.
11248 (expose_window): Redraw rows overlapping the exposed area.
11249
11250 * dispextern.h (struct glyph_row): New member clip.
11251 (struct glyph_string): Delete members clip_x, clip_y, clip_width,
11252 clip_height, new member clip, and num_clips.
11253
11254 2008-02-01 Kenichi Handa <handa@m17n.org>
11255
11256 * data.c (Fchar_or_string_p): Fix docstring.
11257
11258 2008-02-01 Kenichi Handa <handa@m17n.org>
11259
11260 * xftfont.c (xftfont_draw): If s->font_info != s->face->font_info,
11261 create a temporary XftDraw object.
11262
11263 2008-02-01 Kenichi Handa <handa@m17n.org>
11264
11265 * font.c (Ffontp): Fix docstring.
11266
11267 * coding.c (detect_coding_iso_2022): Don't treat SI/SO codes as a
11268 strong evidence of ISO-2022.
11269
11270 2008-02-01 Kenichi Handa <handa@m17n.org>
11271
11272 * abbrev.c (abbrev_check_chars): Use CHAR_TABLE_REF, not
11273 SYNTAX_ENTRY_FOLLOW_PARENT.
11274
11275 2008-02-01 Stefan Monnier <monnier@iro.umontreal.ca>
11276
11277 * fns.c (weak_hash_tables): Rename from Vweak_hash_tables and change
11278 its type.
11279 (make_hash_table, copy_hash_table, sweep_weak_hash_tables, init_fns):
11280 Update to the new type of weak_hash_tables and next_weak.
11281
11282 * lisp.h (struct Lisp_Hash_Table): Change next_weak from Lisp_Object to
11283 a plain C pointer to Lisp_Hash_Table.
11284
11285 * lisp.h (XGCTYPE, GC_HASH_TABLE_P, GC_NILP, GC_NUMBERP, GC_NATNUMP)
11286 (GC_INTEGERP, GC_SYMBOLP, GC_MISCP, GC_VECTORLIKEP, GC_STRINGP)
11287 (GC_CONSP, GC_FLOATP, GC_VECTORP, GC_OVERLAYP, GC_MARKERP)
11288 (GC_INTFWDP, GC_BOOLFWDP, GC_OBJFWDP, GC_BUFFER_OBJFWDP)
11289 (GC_BUFFER_LOCAL_VALUEP, GC_SOME_BUFFER_LOCAL_VALUEP)
11290 (GC_KBOARD_OBJFWDP, GC_PSEUDOVECTORP, GC_WINDOW_CONFIGURATIONP)
11291 (GC_PROCESSP, GC_WINDOWP, GC_SUBRP, GC_COMPILEDP, GC_BUFFERP)
11292 (GC_SUB_CHAR_TABLE_P, GC_CHAR_TABLE_P, GC_BOOL_VECTOR_P, GC_FRAMEP)
11293 (GC_EQ): Remove since they've been identical to their non-GC_
11294 alter-egos ever since the markbit was eradicated.
11295
11296 * alloc.c:
11297 * buffer.c:
11298 * buffer.h:
11299 * data.c:
11300 * fileio.c:
11301 * filelock.c:
11302 * fns.c:
11303 * frame.h:
11304 * lisp.h:
11305 * macterm.c:
11306 * print.c:
11307 * process.c:
11308 * w32fns.c:
11309 * w32menu.c:
11310 * w32term.c:
11311 * xfns.c:
11312 * xmenu.c:
11313 * xterm.c: Replace uses of GC_* macros with the non-GC_ versions.
11314
11315 2008-02-01 Kenichi Handa <handa@m17n.org>
11316
11317 * chartab.c (map_sub_char_table): Make it work for the top-level
11318 char-table. Fix handling of parent char-table.
11319 (map_char_table): Adjust for the above change.
11320
11321 2008-02-01 Jason Rumney <jasonr@gnu.org>
11322
11323 * w32font.c (Qgdi): Rename from Qw32.
11324
11325 2008-02-01 Jason Rumney <jasonr@gnu.org>
11326
11327 * w32bdf.c (get_quoted_string): Make function static.
11328
11329 2008-02-01 Kenichi Handa <handa@m17n.org>
11330
11331 * xftfont.c (xftfont_open): If one of font's ASCII glyph has
11332 bigger ascent and descent than those of the font, use them as
11333 font's ascent and descent.
11334
11335 2008-02-01 Kenichi Handa <handa@m17n.org>
11336
11337 * Makefile.in (${lispsource}international/charprop.el): Move this
11338 target within "#ifdef HAVE_UNIDATA" and "#endif".
11339
11340 2008-02-01 Kenichi Handa <handa@m17n.org>
11341
11342 * Makefile.in (lisp): Add ${lispsource}language/tai-viet.el.
11343 (shortlisp): Add ../lisp/language/tai-viet.el.
11344
11345 2008-02-01 Ulrich Mueller <ulm@gentoo.org>
11346
11347 * Makefile.in (${lispsource}international/charprop.el): Depend on
11348 temacs${EXEEXT}.
11349
11350 2008-02-01 Jason Rumney <jasonr@gnu.org>
11351
11352 * w32font.c (w32font_close): Delete the GDI font object.
11353
11354 * w32menu.c: Include character.h.
11355
11356 * w32proc.c: Likewise.
11357
11358 * w32select.c: Likewise.
11359
11360 * makefile.w32-in (w32proc.o): Depend on character.h.
11361
11362 2008-02-01 Jason Rumney <jasonr@gnu.org>
11363
11364 * w32fns.c (syms_of_w32fns): Use DEFSYM macro.
11365
11366 * w32menu.c (syms_of_w32menu): Likewise.
11367
11368 * w32proc.c (syms_of_ntproc): Likewise.
11369
11370 * w32select.c (syms_of_w32select): Likewise.
11371
11372 * w32term.c (syms_of_w32term): Likewise.
11373
11374 2008-02-01 Jason Rumney <jasonr@gnu.org>
11375
11376 * w32font.c (w32font_draw): Delete brush after using it.
11377
11378 2008-02-01 Jason Rumney <jasonr@gnu.org>
11379
11380 * w32font.c (w32font_open): Don't set font_idx.
11381 (w32font_text_extents): Try GetTextExtentPoint32W before defaulting
11382 to font settings.
11383 (w32font_draw): Fill background explicitly.
11384
11385 2008-02-01 Jason Rumney <jasonr@gnu.org>
11386
11387 * w32term.c (w32_initialize): Don't call w32font_initialize.
11388
11389 * w32font.c (w32font_info): Remove subranges.
11390 (QCsubranges, Qmodern, Qswiss, Qroman): Remove.
11391 (QCfamily, Qmonospace, Qsans_serif, Qmono, Qsans, Qsans__serif)
11392 (Qraster, Qoutline, Qlatin, Qgreek, Qcoptic, Qcyrillic, Qarmenian)
11393 (Qhebrew, Qarabic, Qsyriac, Qnko, Qthaana, Qdevanagari, Qbengali)
11394 (Qgurmukhi, Qgujarati, Qoriya, Qtamil, Qtelugu, Qkannada)
11395 (Qmalayalam, Qsinhala, Qthai, Qlao, Qtibetan, Qmyanmar, Qgeorgian)
11396 (Qhangul, Qethiopic, Qcherokee, Qcanadian_aboriginal, Qogham)
11397 (Qrunic, Qkhmer, Qmongolian, Qsymbol, Qbraille, Qhan)
11398 (Qideographic_description, Qcjk_misc, Qkana, Qbopomofo, Qkanbun)
11399 (Qyi, Qbyzantine_musical_symbol, Qmusical_symbol, Qmathematical):
11400 New symbols.
11401 (font_callback_data): New struct.
11402 (w32font_list, w32font_match): Use it.
11403 (w32font_open): Don't populate subranges.
11404 (w32font_has_char): Use script Lisp symbols, not subrange bitmask.
11405 (w32font_encode_char): Always return unicode code-point as-is.
11406 (w32font_text_extents): Supply a transformation matrix to
11407 GetGlyphOutline. Never look up by glyph index. Avoid looping
11408 twice. Use unicode version of GetTexExtentPoint32 instead of
11409 glyph index version.
11410 (set_fonts_frame): Remove.
11411 (w32_enumfont_pattern_entity): Add frame parameter, use it to
11412 set frame parameter. Use backward compatible fake foundries.
11413 Save generic family in extra slot under QCfamily. Make width slot
11414 constant. Save QCspacing value. Save list of scripts instead of
11415 binary subranges.
11416 (w32_generic_family, logfonts_match, font_matches_spec): New functions.
11417 (add_font_entity_to_list): Use font_callback_data struct. Filter
11418 unwanted fonts.
11419 (add_one_font_entity_to_list): Use font_callback_data struct.
11420 (w32_registry): Default to iso10646_1.
11421 (fill_in_logfont): Use dpi from extra slot. Don't bother with
11422 string font registries. Don't fill in font name if it is a generic
11423 family name, fill family instead. Use spacing, family and script
11424 extra info to fill pitch, family and charset fields.
11425 (list_all_matching_fonts): Use font_callback_data struct.
11426 (unicode_range_for_char): Remove.
11427 (font_supported_scripts): New function.
11428 (w32font_initialize): Remove.
11429 (syms_of_w32font): Update which symbols are defined.
11430
11431 2008-02-01 Jason Rumney <jasonr@gnu.org>
11432
11433 * font.c (font_pixel_size): Reverse assq_no_quit args.
11434
11435 * w32term.h (FONT_WIDTH): Report max width, not average.
11436 (FONT_MAX_WIDTH): Remove.
11437 (FONT_AVG_WIDTH): New macro.
11438
11439 * xfaces.c (Fx_list_fonts) [WINDOWSNT]: Remove Windows only
11440 redefinition of FONT_WIDTH.
11441
11442 * w32term.c (x_font_min_bounds): Use FONT_AVG_WIDTH.
11443 (w32_cache_char_metrics): Use FONT_WIDTH.
11444
11445 * w32fns.c (w32_load_system_font, w32_list_fonts): Use FONT_AVG_WIDTH.
11446
11447 2008-02-01 Jason Rumney <jasonr@gnu.org>
11448
11449 * w32font.c (w32font_open): Make lfHeight negative.
11450
11451 * w32fns.c (x_default_font_parameter): Use new style font name.
11452 (Fx_create_frame, x_create_tip_frame): Initialize resx and resy.
11453
11454 2008-02-01 Jason Rumney <jasonr@gnu.org>
11455
11456 * w32font.c (QCsubranges): New symbol.
11457 (w32font_open, w32font_has_char): Get subranges from subproperty
11458 of extra.
11459 (w32_enumfont_pattern_entity): Set subranges as subproperty of extra.
11460 (syms_of_w32font): Define :subranges symbol.
11461
11462 * font.c (font_put_extra): Expose externally.
11463
11464 * font.h (font_put_extra): Move declaration from font.c.
11465
11466 * font.c (Ffont_get): Use font driver to determine otf capability.
11467 (adjust_anchor): Check if driver defines anchor_point before using.
11468
11469 * w32font.c (w32font_open): Handle size, height and pixel_size better.
11470 (w32font_draw): Use options.
11471 (w32_enumfont_pattern_entity): Set size to 0 for scalable fonts.
11472 Fix detection of truetype fonts.
11473 (registry_to_w32_charset): Handle charsets other than iso8859-1
11474 expressed as lisp symbols.
11475 (w32_registry): Express charset as lisp symbol.
11476 (fill_in_logfont): Reverse pixel and point height logic.
11477 Don't set width here. Set quality to default.
11478
11479 * w32fns.c (w32_load_system_font): Fix detecting FIXED_PITCH fonts.
11480 (x_to_w32_font): Fill in lfPitchAndFamily correctly.
11481
11482 * xterm.c (x_draw_glyph_string_foreground) [USE_FONT_BACKEND]:
11483 Remove redundant loop and allocation.
11484
11485 * makefile.w32-in (font.o, w32font.o): New objects.
11486 (fontset.o, xdisp.o, xfaces.o, w32fns.o, w32term.o): Depend on font.h.
11487 (FONTOBJ): New group of objects conditioned on USE_FONT_BACKEND.
11488
11489 * xdisp.c (fill_composite_glyph_string): Make the first arg to
11490 STORE_XCHARB a valid l-value.
11491
11492 * w32term.c (w32_native_per_char_metric): Swap width and rbearing
11493 calculations for non-Truetype fonts.
11494 (x_draw_glyph_string): Sync with xterm.c.
11495 (x_draw_glyph_string_foreground) [USE_FONT_BACKEND]:
11496 Remove redundant code.
11497 (w32_initialize) [USE_FONT_BACKEND]: Call w32font_initialize.
11498
11499 * w32term.h (w32_output_data) [USE_FONT_BACKEND]: Add fontp member.
11500 (FRAME_FONT_OBJECT) [USE_FONT_BACKEND]: New macro from xterm.h.
11501
11502 * w32fns.c [USE_FONT_BACKEND]: Port font backend changes from xfns.c.
11503 (x_to_w32_charset, w32_to_x_charset): Expose externally.
11504
11505 * w32font.c: New file for w32 font backend.
11506
11507 2008-02-01 Kenichi Handa <handa@m17n.org>
11508
11509 * term.c: Don't include "buffer.h" twice.
11510
11511 2008-02-01 Kenichi Handa <handa@m17n.org>
11512
11513 * character.c (Funibyte_string): New function.
11514 (syms_of_character): Defsubr it.
11515
11516 2008-02-01 Jason Rumney <jasonr@gnu.org>
11517
11518 * w32term.c [USE_FONT_BACKEND]:
11519 (x_get_font_repertory, note_mouse_movement, x_set_mouse_face_gc)
11520 (x_set_glyph_string_clipping, x_set_glyph_string_clipping_exactly)
11521 (x_draw_glyph_string, x_draw_glyph_string_foreground)
11522 (x_draw_composite_glyph_string_foreground, x_new_fontset2)
11523 (x_free_frame_resources): Sync with xterm.c.
11524
11525 2008-02-01 Andreas Schwab <schwab@suse.de>
11526
11527 * lread.c (read1): Use CHAR_TABLE_STANDARD_SLOTS to validate
11528 char-table size.
11529
11530 2008-02-01 Kenichi Handa <handa@m17n.org>
11531
11532 * font.c (check_otf_features): Define it regardless of HAVE_LIBOTF.
11533
11534 2008-02-01 Kenichi Handa <handa@m17n.org>
11535
11536 * ftfont.c (ftfont_driver): Delete font_otf_gsub and
11537 font_otf_gpos, add font_drive_otf.
11538
11539 * fontset.c (fontset_find_font): Pay attention to font size
11540 specified for a font.
11541 (reorder_font_vector): Check contents of font_def.
11542
11543 * font.c (struct otf_list): Delete it.
11544 (otf_list): Make it a lisp variable.
11545 (otf_open): Use lispy otf_list.
11546 (generate_otf_features): Rename from parse_gsub_gpos_spec.
11547 (check_otf_features): New function.
11548 (font_otf_DeviceTable, font_otf_ValueRecord, font_otf_Anchor):
11549 New functions.
11550 (font_drive_otf): New function merging font_otf_gsub and
11551 font_otf_gpos.
11552 (font_open_for_lface): New arg spec. Change argument order.
11553 (font_load_for_face): Adjust for the change of font_open_for_lface.
11554 (Ffont_drive_otf): New function merging Ffont_otf_gsub and
11555 Ffont_otf_gpos.
11556 (syms_of_font): Staticpro otf_list. Delete defsubr of
11557 Sfont_otf_gsub and Sfont_otf_gpos. Defsubr Sfont_drive_otf.
11558
11559 * xfaces.c (set_font_frame_param): Adjust for the change of
11560 font_open_for_lface.
11561
11562 * font.h (font_open_for_lface): Adjust prototype.
11563 (struct font_driver): Delete members otf_gsub and otf_gpos, add
11564 member otf_drive.
11565 (font_otf_gsub, font_otf_gpos): Delete externs.
11566 (font_drive_otf): Extern it.
11567
11568 2008-02-01 Kenichi Handa <handa@m17n.org>
11569
11570 * font.c (font_at): If the window W is not on a window system,
11571 return Qnil.
11572
11573 * coding.c (produce_chars, encode_coding): Don't call
11574 insert_from_gap if no characters to produce.
11575
11576 2008-02-01 Kenichi Handa <handa@m17n.org>
11577
11578 * fontset.c (free_realized_fontsets): Avoid unnecessary call of
11579 Fclear_face_cache.
11580
11581 * xfaces.c (face_for_font): Check also face->font==font->font.font.
11582
11583 2008-02-01 Miles Bader <miles@gnu.org>
11584
11585 * emacs.c (main): Change default value of `enable_font_backend' to 1.
11586 Parse "--disable-font-backend" option.
11587 (standard_args): Add "--disable-font-backend" option.
11588
11589 2008-02-01 Kenichi Handa <handa@m17n.org>
11590
11591 * fontset.c (fontset_find_font): New function.
11592 (fontset_font): Use fontset_find_font.
11593 (make_fontset_for_ascii_face): Don't set face ID in rfont_def.
11594 Register the specified font for all Latin characters.
11595 (new_fontset_from_font): Register the specified font for all Latin
11596 characters.
11597 (dump_fontset): For a realized fontset, include the base fontset
11598 name in the returned vector.
11599
11600 2008-02-01 Kenichi Handa <handa@m17n.org>
11601
11602 * character.h (CHAR_STRING): Cast C to unsigned on calling
11603 char_string.
11604
11605 * character.c (char_string): Type of arg C changed to unsigned.
11606 Signal an error if C is an invalid character code.
11607
11608 * editfns.c (general_insert_function, Fchar_to_string):
11609 Use CHARACTERP, not INTEGERP.
11610
11611 2008-02-01 Kenichi Handa <handa@m17n.org>
11612
11613 * character.h (MIN_MULTIBYTE_LEADING_CODE)
11614 (MAX_MULTIBYTE_LEADING_CODE): New macros.
11615
11616 * regex.c (analyse_first): Fix for multibyte characters in "case
11617 charset:" and "case categoryspec:".
11618
11619 2008-02-01 Andreas Schwab <schwab@suse.de>
11620
11621 * Makefile.in (LIBES): Move standard libraries to the end.
11622
11623 2008-02-01 Kenichi Handa <handa@m17n.org>
11624
11625 * alloc.c (Fgarbage_collect): If nextb->text->inhibit_shrinking is
11626 nonzero, don't shrink the buffer nextb.
11627
11628 * buffer.h (struct buffer_text): New member inhibit_shrinking.
11629
11630 * coding.c (coding_alloc_by_making_gap): New arg offset.
11631 (alloc_destination): Call coding_alloc_by_making_gap with the arg
11632 offset.
11633 (decode_coding_iso_2022): Update coding->safe_charsets.
11634 (decode_coding_gap): Temporarily set
11635 current_buffer->text->inhibit_shrinking to 1.
11636
11637 2008-02-01 Kenichi Handa <handa@m17n.org>
11638
11639 * xterm.c (x_draw_composite_glyph_string_foreground): Fix
11640 indexing into elements of s->cmp and s->char2b.
11641
11642 2008-02-01 Juanma Barranquero <lekktu@gmail.com>
11643
11644 * regex.c (RE_STRING_CHAR_AND_LENGTH) [! emacs]: Add missing arg `len'.
11645
11646 2008-02-01 Kenichi Handa <handa@m17n.org>
11647
11648 * regex.c (GET_CHAR_BEFORE_2, GET_CHAR_AFTER): Check the variable
11649 target_multibyte instead of multibyte.
11650 (re_match_2_internal): Call bcmp_translate with target_multibyte.
11651 (bcmp_translate): Change the argument name from multibyte to
11652 target_multibyte.
11653
11654 2008-02-01 Kenichi Handa <handa@m17n.org>
11655
11656 These changes are to compile a regexp into a pattern that can be
11657 used both for multibyte and unibyte targets.
11658
11659 * Makefile.in (search.o): Depend on charset.h.
11660
11661 * character.c (multibyte_char_to_unibyte_safe): New function.
11662
11663 * search.c: Include "charset.h".
11664 (compile_pattern_1): Delete argument multibyte. Don't set
11665 cp->buf.target_multibyte here. Set cp->buf.charset_unibyte.
11666 (compile_pattern): Don't compare cp->buf.target_multibyte.
11667 Compare cp->buf.charset_unibyte.
11668 (compile_pattern): Set cp->buf.target_multibyte.
11669
11670 * lisp.h (multibyte_char_to_unibyte_safe): Extern it.
11671
11672 * regex.h (struct re_pattern_buffer): New member charset_unibyte.
11673
11674 * regex.c (RE_STRING_CHAR, RE_STRING_CHAR_AND_LENGTH): New arg
11675 multibyte. Change callers.
11676 (RE_CHAR_TO_MULTIBYTE, RE_CHAR_TO_UNIBYTE): New macros.
11677 (MAKE_CHAR_MULTIBYTE, MAKE_CHAR_UNIBYTE): Delete. Change callers
11678 to use RE_CHAR_TO_MULTIBYTE and RE_CHAR_TO_UNIBYTE, respectively.
11679 (SETUP_ASCII_RANGE, SETUP_UNIBYTE_RANGE): New macros.
11680 (SETUP_MULTIBYTE_RANGE): Generate a more compact range_table.
11681 (regex_compile): Make the compiled pattern usable both for
11682 multibyte and unibyte targets.
11683 (analyse_first): Make the fastmap usable both for multibyte and
11684 unibyte targets.
11685 (TRANSLATE_VIA_MULTIBYTE): Delete.
11686 (re_match_2_internal): Pay attention to the case that the
11687 multibyteness of bufp and target may be different.
11688
11689 2008-02-01 Kenichi Handa <handa@m17n.org>
11690
11691 * xdisp.c (x_produce_glyphs): When a font is not found, make the
11692 empty box occupy at least one column width.
11693
11694 2008-02-01 Miles Bader <miles@gnu.org>
11695
11696 * Makefile.in: Remove redundant HAVE_XFT clause.
11697
11698 2008-02-01 Kenichi Handa <handa@m17n.org>
11699
11700 * xrdb.c (x_load_resources): Setup the default fontSet X resource.
11701
11702 2008-02-01 Kenichi Handa <handa@m17n.org>
11703
11704 * fontset.c (Finternal_char_font): Fix for the case of POSITION
11705 being nil.
11706
11707 2008-02-01 Kenichi Handa <handa@m17n.org>
11708
11709 * xftfont.c (xftfont_open): Call FcConfigSubstitute.
11710
11711 2008-02-01 Kenichi Handa <handa@m17n.org>
11712
11713 * xftfont.c (xftfont_open): Don't enable antialias explicitly.
11714
11715 2008-02-01 Kenichi Handa <handa@m17n.org>
11716
11717 * search.c (simple_search): Fix previous change.
11718
11719 2008-02-01 Kenichi Handa <handa@m17n.org>
11720
11721 * xftfont.c (ftfont_font_format): Extern declaration.
11722
11723 * frame.c (x_set_font): Fix the second arg to fs_query_fontset.
11724
11725 * xfont.c (xfont_driver): Initialize ftfont_driver.type by 0.
11726 (xfont_list): Don't directly use Lisp_Object as an operand of &&.
11727
11728 * ftfont.c (ftfont_driver): Initialize ftfont_driver.type by 0.
11729 (ftfont_font_format): Fix previous change.
11730
11731 * font.h (Ffont_xlfd_name): EXFUN it.
11732
11733 * font.c (font_parse_xlfd): Fix the array size of `f'.
11734 (register_font_driver): Use EQ to compare driver->type.
11735
11736 * xfns.c (xic_create_xfontset2) [USE_FONT_BACKEND]: New function.
11737 (create_frame_xic) [USE_FONT_BACKEND]: Call xic_create_xfontset2.
11738 (xic_set_xfontset) [USE_FONT_BACKEND]: Likewise.
11739
11740 2008-02-01 Kenichi Handa <handa@m17n.org>
11741
11742 * ftfont.c (ftfont_pattern_entity, ftfont_list_generic_family)
11743 (ftfont_list, ftfont_font_format): Check if FC_FONTFORMAT is defined.
11744
11745 2008-02-01 Kenichi Handa <handa@m17n.org>
11746
11747 * xfont.c (xfont_open): Set font->format.
11748
11749 * xftfont.c (xftfont_open): Set font->format.
11750
11751 * ftfont.c (ftfont_pattern_entity): Add fontformat in a pattern.
11752 (ftfont_list): Include FC_FONTFORMAT in FcObject.
11753 (ftfont_open): Set font->format.
11754 (ftfont_font_format): New function.
11755
11756 * font.h (struct font): New member format.
11757
11758 * font.c (Qopentype): New variable.
11759 (syms_of_font): Defsym it.
11760 (Fquery_font): Change the format of the last element of the return
11761 value.
11762
11763 2008-02-01 Kenichi Handa <handa@m17n.org>
11764
11765 * xfns.c (xic_create_xfontset): Try the default fontset name as a
11766 last resort.
11767
11768 2008-02-01 Kenichi Handa <handa@m17n.org>
11769
11770 * coding.c (detect_coding_charset): Fix detection of multi-byte
11771 charset.
11772
11773 2008-02-01 Bob Halley <halley@play-bow.org> (tiny change)
11774
11775 * ccl.c (ccl_driver): If DST is NULL, set ccl->produced to 0.
11776
11777 2008-02-01 Kenichi Handa <handa@m17n.org>
11778
11779 * xdisp.c (get_next_display_element): Set it->face_id for the
11780 first component of a composition.
11781 (x_produce_glyphs): Check if the font is changed or not for composition.
11782
11783 2008-02-01 Kenichi Handa <handa@m17n.org>
11784
11785 * fontset.c (Qlatin): New variable.
11786 (syms_of_fontset): Define it as a lisp symbol.
11787 (Fset_fontset_font): If TARGET is `latin', use FONT_SPEC for ASCII.
11788
11789 2008-02-01 Kenichi Handa <handa@m17n.org>
11790
11791 * font.c (font_unparse_fcname): Pay attention to the case that
11792 some of font property is a null string.
11793
11794 2008-02-01 Kenichi Handa <handa@m17n.org>
11795
11796 * term.c: Include "composite.h".
11797 (encode_terminal_code): Output all components of composition.
11798 Check the size of encode_terminal_src.
11799 (produce_glyphs): For composition, call produce_composite_glyph.
11800 (append_composite_glyph, produce_composite_glyph): New functions.
11801
11802 * xdisp.c (x_produce_glyphs): In handling composition, if a font
11803 is not found, get font_info from the current ascii face.
11804
11805 2008-02-01 Kenichi Handa <handa@m17n.org>
11806
11807 * fileio.c (Finsert_file_contents): On replacing, temporarily bind
11808 buffer-file-name to Qnil before calling insert_from_buffer.
11809
11810 * font.c (font_unparse_fcname): Pay attention to the case that
11811 foundry is a null string.
11812
11813 2008-02-01 Kenichi Handa <handa@m17n.org>
11814
11815 * ftfont.c (ftfont_list): Allow registry "unicode-sip".
11816
11817 * font.c (Qunicode_sip): New variable.
11818 (syms_of_font): Declare it as a Lisp symbol.
11819
11820 * font.h (Qunicode_sip): Extern it.
11821
11822 2008-02-01 Kenichi Handa <handa@m17n.org>
11823
11824 * composite.c (get_composition_id): Pay attention to TAB component.
11825
11826 * xterm.c (x_draw_composite_glyph_string_foreground): Don't draw
11827 TAB. Adjust for the change of s->char2b which always points to
11828 the first element of allocated memory.
11829
11830 * xftfont.c (xftfont_text_extents): Fix calculation of descent value.
11831
11832 * xdisp.c (handle_composition_prop): Set it->c to the first
11833 non-TAB component.
11834 (fill_composite_glyph_string): Change argument.
11835 (BUILD_COMPOSITE_GLYPH_STRING): Adjust for the above change.
11836 (x_produce_glyphs): Fix handling of left/right padding.
11837
11838 2008-02-01 Kenichi Handa <handa@m17n.org>
11839
11840 * coding.c (detect_coding_system): Fix for handling off
11841 inhibit_iso_escape_detection. Fix for the case that no coding
11842 system is defined for a specific coding category.
11843
11844 2008-02-01 Kenichi Handa <handa@m17n.org>
11845
11846 * font.c (font_matching_entity): Delete unused local var.
11847
11848 * xftfont.c (xftfont_open): Call XftDefaultSubstitute before
11849 opening a font.
11850
11851 * fileio.c (Finsert_file_contents): On recovering a file, assume
11852 Unix-like eol.
11853 (choose_write_coding_system): On auto-saving a file, force
11854 Unix-like eol.
11855
11856 * coding.c (setup_coding_system): Fix setting of
11857 coding->common_flags based on eol_type.
11858 (coding_inherit_eol_type): If PARENT is not nil, be sure to
11859 inherit from it.
11860
11861 2008-02-01 Kenichi Handa <handa@m17n.org>
11862
11863 * alloc.c (NSTATICS): Increas to 0x600.
11864
11865 2008-02-01 Kenichi Handa <handa@m17n.org>
11866
11867 * ftfont.c (ftfont_driver): Set ftfont_driver.match to ftfont_match.
11868 (ftfont_list): Don't check :name property.
11869 (ftfont_match): New function.
11870 (ftfont_pattern_entity): If the pattern doesn't contain
11871 FC_SPACING, don't assume FC_MONO.
11872
11873 * font.h (struct font_driver): New member `match'.
11874 (font_update_drivers): Adjust prototype.
11875
11876 * font.c (font_parse_fcname, font_parse_name): Don't change :name
11877 property of FONT.
11878 (LGSTRING_HEADER_SIZE, LGSTRING_GLYPH_SIZE, check_gstring): Define
11879 them unconditionally.
11880 (font_matching_entity): New function.
11881 (font_open_by_name): Try font_matching_entity if exact match is
11882 not found.
11883 (font_update_drivers): Delete the arg FONT. Return a list of
11884 actually used backends. Don't free faces, font caches here.
11885 Don't store data in frame parameters. Don't call x_set_font.
11886 (Ffont_spec): Store :name property as is.
11887 (Ffont_get): Check HAVE_LIBOTF before calling font_otf_capability.
11888 (Ffont_otf_gsub): Call font->driver->otf_gsub instead of font_otf_gsub.
11889 (Ffont_otf_gpos): Call font->driver->otf_gpos instead of font_otf_gpos.
11890 (Ffont_otf_alternates): Check if the driver has otf_gsub function.
11891 Call font->driver->otf_gsub instead of font_otf_gsub.
11892
11893 * frame.c (x_set_font_backend): Do more works that were done in
11894 font_update_drivers before.
11895
11896 * xfont.c (xfont_match): New function.
11897 (xfont_driver): Set xfont_driver.match to xfont_match.
11898 (xfont_draw): Set font in GC if necessary.
11899
11900 * ftxfont.c (ftxfont_match): New function.
11901 (syms_of_ftxfont): Set ftxfont_driver.match to ftxfont_match.
11902
11903 * xftfont.c (xftfont_match): New function.
11904 (syms_of_xftfont): Set xftfont_driver.match to xftfont_match.
11905
11906 2008-02-01 Kenichi Handa <handa@m17n.org>
11907
11908 * font.h (struct font): New member scalable.
11909 (struct font_driver): New arg ALTERANTE_SUBST to otf_gsub.
11910 (font_otf_gsub): Adjust prototype.
11911
11912 * font.c (font_otf_capability): Fix handling of the default langsys.
11913 (parse_gsub_gpos_spec): Change type to void. New arg nbytes.
11914 Check the contents of SPEC.
11915 (LGSTRING_HEADER_SIZE, LGSTRING_GLYPH_SIZE): New macros.
11916 (check_gstring): New function.
11917 (REPLACEMENT_CHARACTER): New macro.
11918 (font_otf_gsub): New arg alternate_subst. Be sure to set all
11919 glyph codes of GSTRING.
11920 (font_otf_gpos): Be sure to set all glyph codes of GSTRING.
11921 (font_prepare_composition): Set cmp->glyph_len.
11922 (font_open_entity): Set font->scalable.
11923 (Ffont_get): Handle :otf property.
11924 (Ffont_otf_gsub, Ffont_otf_gpos, Ffont_otf_alternates): New
11925 functions.
11926 (Fquery_font): Use font->font.full_name.
11927 (syms_of_font): Defsubr Sfont_otf_gsub, Sfont_otf_gpos, and
11928 Sfont_otf_alternates.
11929
11930 * ftfont.c (ftfont_open): Set font->font.full_name and
11931 font->font.name properly. Fix calculation of font->font.height
11932 and font->min_width.
11933
11934 * ftxfont.c (ftxfont_create_gcs): New function.
11935 (ftxfont_draw_bitmap): Fix arg to ftfont_driver.get_bitmap.
11936 (ftxfont_draw_backgrond): Fix filling region.
11937 (ftxfont_default_fid): New function.
11938 (ftxfont_open): Set xfont->fid to the return value of
11939 ftxfont_default_fid.
11940 (ftxfont_prepare_face): Use ftxfont_create_gcs to create GCs.
11941 (ftxfont_done_face): Free only GCs that are created by
11942 ftxfont_create_gcs.
11943 (ftxfont_draw): If face->gc != s->gc, create proper GCs.
11944
11945 * xterm.c (x_set_glyph_string_clipping_exactly) [USE_FONT_BACKEND]:
11946 Clip to src->width, etc (not src->clip_XXX).
11947
11948 * xfns.c (x_create_tip_frame) [USE_FONT_BACKEND]: Handle
11949 FontBackend frame parameter.
11950
11951 2008-02-01 Kenichi Handa <handa@m17n.org>
11952
11953 * font.h (struct font_driver_list): New member `on'.
11954 (Fclear_font_cache): EXFUN it.
11955 (font_update_drivers): Extern it.
11956
11957 * font.c (font_unparse_fcname): Fix typo (swidth->width).
11958 (font_list_entities): Check driver_list->on.
11959 (register_font_driver): Initalize `on' member to 0.
11960 (font_update_drivers): New function.
11961 (Fclear_font_cache): Check driver_list->on.
11962
11963 * frame.h (Qfont_backend): Extern it.
11964 (x_set_font_backend): Extern it.
11965
11966 * frame.c (Qfont_backend): New variable.
11967 (frame_parms): New element for font-backend.
11968 (x_set_font_backend): New function.
11969
11970 * xfns.c (Fx_create_frame) [USE_FONT_BACKEND]: Handle
11971 FontBackend frame parameter.
11972 (x_frame_parm_handlers) [USE_FONT_BACKEND]: New element
11973 x_set_font_backend.
11974
11975 * xfont.c (xfont_list): Don't try listing by :name property if the
11976 name is not for XLFD.
11977
11978 2008-02-01 Kenichi Handa <handa@m17n.org>
11979
11980 * font.h (LGLYPH_FROM, LGLYPH_TO, LGLYPH_SET_FROM)
11981 (LGLYPH_SET_TO): New macros.
11982 (LGLYPH_XOFF, LGLYPH_YOFF, LGLYPH_WADJUST): Check if adjustment
11983 element of G is vector or not.
11984 (font_at): Extern it.
11985
11986 * font.c: Include window.h.
11987 (font_lispy_object): New function.
11988 (font_prepare_composition): Check LGLYPH_FORM (g) to detect the
11989 end of valid glyph.
11990 (font_close_object): Fix getting (struct font *).
11991 (font_at): New function.
11992 (Ffont_get): If FONT is a font-object, get entity from it.
11993 (Ffont_make_gstring): Initialize elements of glyphs with nil.
11994 (Ffont_fill_gstring): Use macro LGSTRING_XXX and LGLYPH_XXX. Fix
11995 range check.
11996 (Ffont_at): New function.
11997 (syms_of_font): Defsubr Sfont_at.
11998
11999 * xdisp.c (it_props): Move the entry for Qauto_composed to just
12000 before the entry for Qcomposition.
12001 (handle_auto_composed_prop): Call auto-composition-function with 4 args.
12002 (handle_composition_prop) [USE_FONT_BACKEND]: Set it->face_id from
12003 the font in gstring.
12004 (fill_composite_glyph_string) [USE_FONT_BACKEND]: Check
12005 LGLYPH_FORM (g) to detect the end of valid glyph.
12006 (x_produce_glyphs) [USE_FONT_BACKEND]: Don't update it->face_id if
12007 we are composing with gstring.
12008
12009 * xterm.c (x_draw_composite_glyph_string_foreground) [USE_FONT_BACKEND]:
12010 Check if adjustment is vector or not.
12011
12012 * Makefile.in (font.o): Make it depends on window.h.
12013
12014 2008-02-01 Kenichi Handa <handa@m17n.org>
12015
12016 * xterm.c (x_draw_composite_glyph_string_foreground): Check if
12017 adjustment is vector or not.
12018
12019 2008-02-01 Miles Bader <miles@gnu.org>
12020
12021 * character.h (CHECK_CHARACTER): Redefine in terms of CHECK_TYPE.
12022
12023 2008-02-01 Kenichi Handa <handa@m17n.org>
12024
12025 * font.h (LGLYPH_XOFF, LGLYPH_YOFF, LGLYPH_WIDTH, LGLYPH_WADJUST)
12026 (LGLYPH_SET_WIDTH): Adjusted for the change of LGLYPH format.
12027 (LGLYPH_ADJUSTMENT, LGLYPH_SET_ADJUSTMENT): New macros.
12028
12029 * font.c (font_merge_old_spec): Treat '*' in foundry as a wild card.
12030 (DEVICE_DELTA): Fix typo.
12031 (font_otf_gpos, font_prepare_compositio): Adjust for the change of
12032 LGLYPH format.
12033
12034 * xterm.c (x_draw_composite_glyph_string_foreground): Adjust for
12035 the change of LGLYPH format.
12036
12037 2008-02-01 Kenichi Handa <handa@m17n.org>
12038
12039 * ftfont.c (ftfont_list): Fix typo.
12040 (ftfont_build_basic_charsets): Don't include letters with diacritics.
12041
12042 2008-02-01 Jan Djärv <jan.h.d@swipnet.se>
12043
12044 * xfaces.c (realize_non_ascii_face): Set face->extra to NULL.
12045
12046 * xftfont.c (xftfont_done_face): Call XftDrawDestroy only if
12047 xftface_info is non-NULL.
12048
12049 2008-02-01 Jan Djärv <jan.h.d@swipnet.se>
12050
12051 * ftfont.c (ftfont_list): Move misplaced #endif.
12052
12053 2008-02-01 Kenichi Handa <handa@m17n.org>
12054
12055 * ftfont.c (ftfont_list): Pay attention to the case that
12056 FC_CAPABILITY is not defined.
12057
12058 2008-02-01 Kenichi Handa <handa@m17n.org>
12059
12060 * xftfont.c (xftfont_open): Set charset related members to -1.
12061
12062 * ftfont.c (ftfont_list): Handle QCotf property. Fix handling of
12063 QCname.
12064 (ftfont_open): Set charset related members to -1.
12065
12066 * fontset.c (Votf_script_alist): New variable.
12067 (syms_of_fontset): Initialize it.
12068 (fontset_font): Delete unused variable.
12069
12070 * fontset.h (Votf_script_alist): Extern it.
12071
12072 * font.c (font_find_for_lface): Optimize code.
12073
12074 * font.h (font_close_object, font_merge_old_spec): Extern them.
12075
12076 2008-02-01 Kenichi Handa <handa@m17n.org>
12077
12078 * font.c (QCscalable, Qc, Qm, Qp, Qd): New variables.
12079 (syms_of_font): Initialize them.
12080 (font_pixel_size): Allow float value in dpi.
12081 (font_prop_validate_type): Delete.
12082 (font_prop_validate_symbol, font_prop_validate_style): Change argument.
12083 Change caller.
12084 (font_prop_validate_non_neg): Rename from font_prop_validate_size.
12085 (font_prop_validate_extra): Delete.
12086 (font_prop_validate_spacing): New function.
12087 (font_property_table): Add elements for all known properties.
12088 (get_font_prop_index): Rename from check_font_prop_name. New
12089 argument FROM. Change caller.
12090 (font_prop_validate): Validate all known properties.
12091 (font_put_extra): Delete argument force. Change caller.
12092 (font_expand_wildcards): Make it static. Fix the way of shrinking
12093 the possible range.
12094 (font_parse_xlfd): Delete argument merge. Fix handling of RESX,
12095 RESY, SPACING, and AVGWIDTH. Don't validate property values here.
12096 Change caller.
12097 (font_unparse_xlfd): Handle dpi, spacing, and scalable properties.
12098 (font_parse_fcname): Delete argument merge. Fix parsing of point
12099 size. Don't validate properties values here. Change caller.
12100 (font_unparse_fcname): Handle dpi, spacing, and scalable properties.
12101 (font_open_by_name): Delete unused variable.
12102 (Ffont_spec): Likewise. Validate property values.
12103 (Ffont_match_p): New function.
12104
12105 * font.h (QCscalable): Extern it.
12106 (font_parse_xlfd, font_parse_fcname): Adjust prototype.
12107
12108 * ftfont.c (ftfont_list): Handle properties dpi, spacing, and scalable.
12109
12110 * xfont.c (xfont_query_font): Adjust for the change of font_parse_xlfd.
12111 (xfont_list_pattern): New function.
12112 (xfont_list): Use xfont_list_pattern.
12113
12114 2008-02-01 Kenichi Handa <handa@m17n.org>
12115
12116 * font.h (Flist_fonts): EXFUN it.
12117
12118 2008-02-01 Jason Rumney <jasonr@gnu.org>
12119
12120 * w32term.c (w32_initialize): Add back smoothing_type and
12121 smoothing_enabled definitions.
12122
12123 2008-02-01 Kenichi Handa <handa@m17n.org>
12124
12125 * xterm.c (x_draw_glyph_string) [USE_FONT_BACKEND]: Check
12126 s->face->font on determining underline position.
12127
12128 2008-02-01 Kenichi Handa <handa@m17n.org>
12129
12130 * font.c (font_parse_xlfd): Fix generating of CHARSET_REGISTRY field.
12131 (font_has_char): Accept font-object too.
12132 (font_find_for_lface): Try at first with a size specified in face.
12133
12134 2008-02-01 Kenichi Handa <handa@m17n.org>
12135
12136 * frame.c (x_set_font) [USE_FONT_BACKEND]: Fix argument to
12137 font_open_by_name.
12138
12139 2008-02-01 Kenichi Handa <handa@m17n.org>
12140
12141 * font.h (QCspacing, QCdpi): Extern them.
12142 (enum font_spacing): New enum.
12143 (FONT_PIXEL_SIZE_QUANTUM): New macro.
12144
12145 * font.c (POINT_TO_PIXEL): Don't divide POINT by 10.
12146 (QCspacing, QCdpi): New variables.
12147 (syms_of_font): Initialize them.
12148 (font_pixel_size): New function.
12149 (font_put_extra): New function.
12150 (font_parse_xlfd): Fix handling of font size. Add QCdpi property
12151 in FONT_EXTRA.
12152 (font_parse_fcname): Handle enumerated values (e.g. bold).
12153 Fix handling font size. Add QCname property that contains only
12154 unknown properties.
12155 (font_score): Change argument. Change caller. Pay attention to
12156 FONT_PIXEL_SIZE_QUANTUM.
12157 (font_sort_entites, font_list_entities, font_find_for_lface)
12158 (font_open_for_lface, font_open_by_name): Fix handling of font size.
12159 (Ffont_spec): Add QCname property that contains only unknown properties.
12160
12161 * ftfont.c (ftfont_list): Use assq_no_quit, not Fassq. Don't
12162 include weight in listing pattern, instead check weight of each
12163 listed font. Don't include scalable in pattern. Pay attention to
12164 FONT_PIXEL_SIZE_QUANTUM.
12165
12166 2008-02-01 Kenichi Handa <handa@m17n.org>
12167
12168 * font.c (font_parse_fcname): Fix parsing of point-size.
12169 (font_unparse_fcname): Produce symbolic names for style properties.
12170 (font_list_entities): Handle float size correctly.
12171 (font_open_by_name): Prefer `normal' property values if the name
12172 doesn't specify them.
12173
12174 * fontset.c (Finternal_char_font): Use font_get_name, not
12175 Ffont_xlfd_name.
12176
12177 * ftfont.c (ftfont_pattern_entity): Use the numeric value 100 for
12178 FC_WEIGHT_REGULAR. Exclude FC_SIZE and FC_PIXEL_SIZE from listing
12179 pattern. Don't force scalable.
12180
12181 * xftfont.c (xftfont_open): For generating a name, start from
12182 96-byte buffer.
12183
12184 2008-02-01 Jan Djärv <jan.h.d@swipnet.se>
12185
12186 * frame.h (x_new_fontset2): Fix prototype.
12187
12188 2008-02-01 Kenichi Handa <handa@m17n.org>
12189
12190 * font.h (struct font_driver): Delete member parse_name.
12191 (font_match_p, font_get_spec, font_parse_fcname)
12192 (font_unparse_fcname): Extern them.
12193 (font_get_name): Adjust prototype.
12194
12195 * font.c (XLFD_SMALLNUM_MASK): Delete this macro.
12196 (XLFD_LARGENUM_MASK): Delete XLFD_ENCODING_MASK from it.
12197 (font_expand_wildcards): Fix handling ENCODING field. Avoid
12198 unnecessary checks for weight, slant, and swidth.
12199 (font_parse_fcname): New function.
12200 (font_unparse_fcname): New function.
12201 (font_parse_name): New function.
12202 (font_match_p): New function.
12203 (font_get_name): Change return value to Lisp string.
12204 (font_get_spec): New function.
12205 (Qunspecified, Qignore_defface): Don't extern them.
12206 (font_find_for_lface): Assume that LFACE is fully specified.
12207 (font_load_for_face): If lface[LFACE_FONT_INDEX] is an font
12208 object, use it for FACE.
12209 (font_open_by_name): Call Ffont_spec with QCname prop. Don't call
12210 driver->parse_name.
12211 (Ffont_spec): Call font_parse_name, not font_parse_xlfd.
12212
12213 * fontset.h (new_fontset_from_font) [USE_FONT_BACKEND]: Adjust
12214 prototype.
12215
12216 * fontset.c (new_fontset_from_font) [USE_FONT_BACKEND]: Delete
12217 argument F. Don't call Fnew_fontset. Instead, directly call
12218 make_fontset.
12219
12220 * frame.h (x_new_fontset2) [USE_FONT_BACKEND]: Adjust prototype.
12221
12222 * frame.c (x_set_font) [USE_FONT_BACKEND]: Adjust for the change
12223 of x_new_fontset2.
12224
12225 * ftfont.c (Qmonospace, Qsans_serif, Qserif, Qmono, Qsans)
12226 (Qsans__serif): New variables.
12227 (ftfont_generic_family_list): New variable.
12228 (syms_of_ftfont): Initialize the above variables.
12229 (ftfont_pattern_entity): Delete argument NAME.
12230 (ftfont_list_generic_family): New function.
12231 (ftfont_parse_name): Delete this function.
12232 (ftfont_list): Try generic family only when FcFontList found no font.
12233 (ftfont_list_family): Fix args to FcObjectSetBuild.
12234
12235 * xfaces.c (check_lface_attrs) [USE_FONT_BACKEND]: Accept font
12236 object in attrs[LFACE_FONT_INDEX].
12237 (set_lface_from_font_name): Cancel all changes for font-backend.
12238 (set_lface_from_font_and_fontset) [USE_FONT_BACKEND]: New
12239 function.
12240 (Finternal_set_lisp_face_attribute) [USE_FONT_BACKEND]: Accept a
12241 font object in QCfont attribute.
12242 (set_font_frame_param) [USE_FONT_BACKEND]: Likewise.
12243 (realize_default_face) [USE_FONT_BACKEND]: Call
12244 set_lface_from_font_and_fontset.
12245
12246 * xfns.c (x_default_font_parameter) [USE_FONT_BACKEND]: Try also
12247 "fixed", and signal error here if no suitable font was found.
12248
12249 * xfont.c (xfont_parse_name): Delete this function.
12250
12251 * xftfont.c (xftfont_open): Change coding style of error
12252 handling. Generate fontconfig's fontname pattern.
12253
12254 * xterm.h (struct x_output) [USE_FONT_BACKEND]: New member fontp.
12255 (FRAME_FONT_OBJECT) [USE_FONT_BACKEND]: New macro.
12256
12257 * xterm.c (x_new_fontset2) [USE_FONT_BACKEND]: Change arguments.
12258 Both args FONTSET and FONT_OBJECT must be existing ones.
12259
12260 2008-02-01 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
12261
12262 * macterm.c (mac_set_unicode_keystroke_event): Don't use MAKE_CHAR.
12263
12264 2008-02-01 Kenichi Handa <handa@m17n.org>
12265
12266 * xfont.c (xfont_open, xfont_encode_char): Fix typo.
12267
12268 * font.h (struct font): Fix typo.
12269
12270 * font.c (enum xlfd_field_index): Rename XLFD_XXX_SIZE_INDEX to
12271 XLFD_XXX_INDEX.
12272 (enum xlfd_field_mask): New enum.
12273 (intern_font_field): Changed argument. Change caller. If digits
12274 are followed by non-digits, return a symbol.
12275 (font_expand_wildcards): New function.
12276 (font_parse_xlfd): Fix wildcard handling.
12277 (Ffont_spec): If :name is specified, reflect the info in the other
12278 properties.
12279
12280 * ftfont.c (ftfont_pattern_entity): Fix typo.
12281 (ftfont_list): Enforce FC_LANG in PATTERN to cancel the effect of
12282 locale.
12283
12284 2008-02-01 Kenichi Handa <handa@m17n.org>
12285
12286 * font.h (Qiso8859_1, Qiso10646_1, Qunicode_bmp): Extern them.
12287
12288 * font.c (Qiso8859_1, Qiso10646_1, Qunicode_bmp): Move from ftfont.c.
12289 (font_unparse_xlfd): Fix argument type declaration. Append "*" if
12290 registry doesn't specify encoding part.
12291 (font_find_for_lface): Pay attention to LFACE_FONT_INDEX.
12292 (font_open_by_name): At first try parsing the name.
12293 (syms_of_font): Declare Qiso8859_1, Qiso10646_1, and Qunicode_bmp
12294 as Lisp symbols.
12295
12296 * fontset.c (reorder_font_vector): Pay attention to the case that
12297 the 3rd element of font_def is nil.
12298 (fontset_font): For the default fontset, append one more fontset
12299 elements for a script-based font specification. Don't add script
12300 attribute on finding a font.
12301 (new_fontset_from_font): Unconditionally set FONTSET_ASCII to the
12302 font name.
12303 (fontset_ascii_font): If a font can't be opened, return nil.
12304
12305 * ftfont.c (Qiso8859_1, Qiso10646_1, Qunicode_bmp): Move to font.c.
12306 (ftfont_pattern_entity): New function.
12307 (ftfont_get_cache): Assume that freetype_font_cache is already
12308 initialized.
12309 (ftfont_list): Handle the case that a file is specified in font
12310 name. Use ftfont_pattern_entity to generate entities.
12311 (ftfont_has_char): Check if the pattern contains FC_CHARSET.
12312 (syms_of_ftfont): Initialize freetype_font_cache.
12313
12314 * xftfont.c (xftfont_open): Make the font name fontconfig's
12315 style. Add BLOCK_INPUT and UNBLOCK_INPUT.
12316 (xftfont_close): Free font->font.name if not NULL.
12317
12318 * xfont.c (xfont_list): If script is specified for a font, return
12319 null_vector.
12320 (xfont_list_family): Declare argument type.
12321
12322 * xfaces.c (set_lface_from_font_name): If a font doesn't have a
12323 name, set LFACE_FONT (lface) to nil.
12324
12325 * xterm.c (x_new_fontset2): If an ASCII font couldn't be loaded,
12326 return Qnil.
12327
12328 2008-02-01 Kenichi Handa <handa@m17n.org>
12329
12330 * emacs.c (main): Check -enable-font-backend arg after the check of -nl.
12331 (standard_args): Add "-enable-font-backend".
12332
12333 2008-02-01 Kenichi Handa <handa@m17n.org>
12334
12335 * xftfont.c (xftfont_default_fid): Set fid_known to 1.
12336 (struct xftdraw_list, xftdraw_list): Delete them.
12337 (register_xftdraw, check_xftdraw): Delete them.
12338 (xftfont_prepare_face): Don't call register_xftdraw.
12339 (xftfont_done_face): Don't call check_xftdraw.
12340 (xftfont_draw): Get background color only when with_background is
12341 nonzero.
12342
12343 * xfont.c (xfont_encode_char): Fix calculation of char2b.
12344
12345 2008-02-01 Kenichi Handa <handa@m17n.org>
12346
12347 These changes are for the new font handling codes.
12348
12349 * Makefile.in (ALL_CFLAGS): Add @FREETYPE_CFLAGS@,
12350 @FONTCONFIG_CFLAGS@, and @LIBOTF_CFLAGS@.
12351 (LIB_X11_LIB): If HAVE_XFT is defined, set to @XFT_LIBS@.
12352 (FONTSRC, FONTOBJ): New variables.
12353 (obj): Add $(FONTOBJ).
12354 (SOME_MACHINE_OBJECTS): Lib_X11_Lib.
12355 (LIBES): Add @FREETYPE_LIBS@, @FONTCONFIG_LIBS@, and
12356 @LIBOTF_LIBS@.
12357 (font.o, ftfont.o, xfont.o, xftfont.o, ftxfont.o): New targets.
12358 (fontset.o, xdisp.o, xfaces.o, xfns.o, xterm.o): Depend on $(FONTSRC).
12359
12360 * font.h, font.c, xfont.c, ftfont.c, xftfont.c, ftxfont.c: New files.
12361
12362 * character.h (Vscript_representative_chars): Extern it.
12363
12364 * character.c (Vscript_representative_chars): New variable.
12365 (syms_of_character): Declare it as a Lisp variable.
12366
12367 * composite.c (get_composition_id) [USE_FONT_BACKEND]: If
12368 enable_font_backend is nonzero, accept the composition method
12369 COMPOSITION_WITH_GLYPH_STRING.
12370
12371 * composite.h (enum composition_method) [USE_FONT_BACKEND]: New
12372 enumeration COMPOSITION_WITH_GLYPH_STRING.
12373
12374 * dispextern.h (struct glyph_string) [USE_FONT_BACKEND]: New
12375 members clip_x, clip_y, clip_width, and clip_height.
12376 (struct face) [USE_FONT_BACKEND]: New members font_info and extra.
12377
12378 * emacs.c (main) [USE_FONT_BACKEND]: Handle arg
12379 --enable-font-backend. Call syms_of_font.
12380
12381 * fns.c (assoc_no_quit): New function.
12382
12383 * fontset.h (FONT_INFO_FROM_FACE): New macro.
12384 (face_for_font, new_fontset_from_font)
12385 (fontset_ascii_font) [USE_FONT_BACKEND]: Extern them.
12386
12387 * fontset.c [USE_FONT_BACKEND]: Include "font.h".
12388 (fontset_font, fontset_ascii, face_for_char)
12389 (make_fontset_for_ascii_face, Ffont_info)
12390 (Finternal_char_font) [USE_FONT_BACKEND]: If enable_font_backend
12391 is nonzero, use font-backend mechanism.
12392 (find_font_encoding): Make it non-static.
12393 (new_fontset_from_font, fontset_ascii_font) [USE_FONT_BACKEND]:
12394 New functions.
12395
12396 * frame.h (struct frame): New members resx and resy.
12397 (struct frame) [USE_FONT_BACKEND]: New member font_driver_list.
12398 (x_new_fontset2) [USE_FONT_BACKEND]: Extern it.
12399
12400 * frame.c [USE_FONT_BACKEND]: Include "font.h".
12401 (make_frame, x_set_font) [USE_FONT_BACKEND]: Use font-backend mechanism.
12402
12403 * lisp.h (assoc_no_quit): Extern it.
12404
12405 * xdisp.c: If USE_FONT_BACKEND is defined, include "font.h".
12406 Through out the file, use FONT_INFO_FROM_FACE instead of
12407 FONT_INFO_FROM_ID, use get_per_char_metric instead of
12408 rif->per_char_metric.
12409 (handle_composition_prop) [USE_FONT_BACKEND]: If the composition
12410 method is COMPOSITION_WITH_GLYPH_STRING, just set it->c to ' '.
12411 (get_glyph_face_and_encoding, fill_composite_glyph_string)
12412 (get_char_face_and_encoding, BUILD_COMPOSITE_GLYPH_STRING)
12413 (x_produce_glyphs) [USE_FONT_BACKEND]: If enable_font_backend is
12414 nonzero, use font-backend mechanism.
12415 (get_per_char_metric): New function.
12416
12417 * xfaces.c [USE_FONT_BACKEND]: Include "font.h".
12418 (set_lface_from_font_name)
12419 (set_font_frame_param, free_realized_face)
12420 (prepare_face_for_display, clear_face_gcs)
12421 (Finternal_set_font_selection_order, realize_x_face)
12422 [USE_FONT_BACKEND]: If enable_font_backend is nonzero, use
12423 font-backend mechanism.
12424 (clear_face_cache) [USE_FONT_BACKEND]: Don't call clear_font_table.
12425 (load_face_font) [USE_FONT_BACKEND]: Abort.
12426 (face_symbolic_value, face_symbolic_weight, face_symbolic_slant)
12427 (face_symbolic_swidth, face_for_font) [USE_FONT_BACKEND]: New functions.
12428
12429 * xfns.c [USE_FONT_BACKEND]: Include "font.h".
12430 (x_default_font_parameter) [USE_FONT_BACKEND]: New function.
12431 (Fx_create_frame) [USE_FONT_BACKEND]: If enable_font_backend is
12432 nonzero, register all available font drivers. Call
12433 x_default_font_parameter for deciding a font.
12434 (x_create_tip_frame) [USE_FONT_BACKEND]: Likewise.
12435
12436 * xterm.c [USE_FONT_BACKEND]: Include "font.h".
12437 (x_set_mouse_face_gc, x_set_glyph_string_clipping)
12438 (x_set_glyph_string_clipping_exactly)
12439 (x_compute_glyph_string_overhangs)
12440 (x_draw_glyph_string_foreground)
12441 (x_draw_composite_glyph_string_foreground, x_draw_glyph_string)
12442 (x_free_frame_resources) [USE_FONT_BACKEND]: If
12443 enable_font_backend is nonzero, use font-backend mechanism.
12444 (x_new_fontset2) [USE_FONT_BACKEND]: New function.
12445
12446 2008-02-01 Kenichi Handa <handa@m17n.org>
12447
12448 * coding.c (coding_inherit_eol_type): If PARENT is nil, inherit from
12449 system_eol_type.
12450 (syms_of_coding): Initialize system_eol_type.
12451
12452 * process.c (Fset_process_coding_system): Inherit system's eol
12453 format if necessary.
12454
12455 2008-02-01 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
12456
12457 * macgui.h (USE_ATSUI): Don't enable on emacs-unicode-2 branch.
12458
12459 2008-02-01 Kenichi Handa <handa@m17n.org>
12460
12461 * coding.c (decode_eol): Pay attention to buffer relocation in
12462 del_range_2.
12463 (decode_coding): Call decode_eol before restoring undo_list.
12464
12465 2008-02-01 Kenichi Handa <handa@m17n.org>
12466
12467 * charset.c (Fdefine_charset_internal): Fix setting of
12468 emacs_mule_bytes.
12469
12470 2008-02-01 Kenichi Handa <handa@m17n.org>
12471
12472 * keyboard.c (read_char): Check if C is a character or not before
12473 looking up Vkeyboard_translate_table.
12474
12475 2008-02-01 Kenichi Handa <handa@m17n.org>
12476
12477 * coding.c (DECODE_EMACS_MULE_20_RELATIVE_COMPOSITION): Fix
12478 condition to terminate the loop.
12479
12480 2008-02-01 Kenichi Handa <handa@m17n.org>
12481
12482 * coding.c (produce_composition): Compare charbuf[i] instead of
12483 args[i] against 0.
12484 (Fterminal_coding_system): Use EQ to compare Lisp objects.
12485
12486 2008-02-01 Kenichi Handa <handa@m17n.org>
12487
12488 * coding.c (DECODE_COMPOSITION_START): If the source is short, set
12489 coding->result to CODING_RESULT_INSUFFICIENT_SRC.
12490 (decode_coding_gap): Set CODING_MODE_LAST_BLOCK after the call of
12491 detect_coding.
12492 (emacs_mule_char): Handle old style (Emacs 20) component character
12493 of a composition.
12494 (DECODE_EMACS_MULE_COMPOSITION_RULE_20)
12495 (DECODE_EMACS_MULE_20_RULEBASE_COMPOSITION): Fix parsing a
12496 composition rule.
12497 (decode_coding_emacs_mule): Handle invalid bytes correctly.
12498
12499 2008-02-01 Kenichi Handa <handa@m17n.org>
12500
12501 * coding.c (encode_coding_ccl): Allocate destination dynamically
12502 when necessary.
12503
12504 2008-02-01 Kenichi Handa <handa@m17n.org>
12505
12506 * ccl.c (Fccl_execute_on_string): Fix the condition of terminating
12507 the loop. When quitted, show a proper error message.
12508
12509 2008-02-01 Kenichi Handa <handa@m17n.org>
12510
12511 * xterm.c (x_set_glyph_string_clipping_exactly): Set
12512 src->clip_head and src->clip_tail temporarily instead of src->hl.
12513
12514 * ccl.c (CCL_WRITE_STRING): Handle a flag bit for multibyte
12515 character sequence.
12516 (Fccl_execute_on_string): Use ASET, not XSET.
12517
12518 2008-02-01 Kenichi Handa <handa@m17n.org>
12519
12520 * search.c (search_buffer): Fix handling of "\\" in a trivial regexp.
12521
12522 2008-02-01 Kenichi Handa <handa@m17n.org>
12523
12524 * coding.c (decode_coding): Fix the condition of terminating the
12525 decoding loop.
12526
12527 2008-02-01 Kenichi Handa <handa@m17n.org>
12528
12529 * data.c (Faset): On setting a character bigger than 255 in a
12530 unibyte string, signal an error instead of make the string multibyte.
12531
12532 2008-02-01 Kenichi Handa <handa@m17n.org>
12533
12534 * charset.c (map_charset_chars): Fix for ascii-compatible charset
12535 made by a mapping table.
12536
12537 2008-02-01 Kenichi Handa <handa@m17n.org>
12538
12539 * xdisp.c (fill_composite_glyph_string): Check s->face is NULL or
12540 not.
12541 (BUILD_COMPOSITE_GLYPH_STRING): If C is TAB, set s->face to NULL.
12542 (x_produce_glyphs): If CH is TAB, set cmp->offsets properly.
12543
12544 * xterm.c (x_draw_composite_glyph_string_foreground): Check
12545 s->face is NULL or not.
12546
12547 2008-02-01 Kenichi Handa <handa@m17n.org>
12548
12549 * xterm.c (x_set_glyph_string_clipping_exactly): New function.
12550 (x_draw_glyph_string): Fix drawing of right_overhang and
12551 left_overhang around/on cursor.
12552
12553 * xdisp.c (draw_glyphs): Fix inclusion of right_overwriting glyphs.
12554
12555 2008-02-01 Kenichi Handa <handa@m17n.org>
12556
12557 * xdisp.c (x_produce_glyphs): Handle composition with TAB.
12558
12559 2008-02-01 Kenichi Handa <handa@m17n.org>
12560
12561 * coding.c (Fdefine_coding_system_internal)
12562 (Fdefine_coding_system_alias): Avoid a duplicated element in
12563 Vcoding_system_alist.
12564
12565 2008-02-01 Kenichi Handa <handa@m17n.org>
12566
12567 * xterm.c (handle_one_xevent): Handle keysyms 0x1000000..0x10000FF.
12568
12569 * coding.c (Qcoding_system_define_form): New variable.
12570 (syms_of_coding): Intern and staticpro it.
12571 (Fcoding_system_p): Check Qcoding_system_define_form.
12572 (Fcheck_coding_system): Try to autoload the definition of CODING-SYSTEM.
12573
12574 * coding.h (CODING_SYSTEM_P): If ID is not available, call
12575 Fcoding_system_p.
12576 (CHECK_CODING_SYSTEM): If ID is not available, call
12577 Fcheck_coding_system.
12578 (CHECK_CODING_SYSTEM_GET_SPEC, CHECK_CODING_SYSTEM_GET_ID):
12579 Try also Fcheck_coding_system.
12580
12581 2008-02-01 Kenichi Handa <handa@m17n.org>
12582
12583 * coding.c (code_conversion_restore): GCPRO arg.
12584
12585 2008-02-01 Kenichi Handa <handa@m17n.org>
12586
12587 * character.c (lisp_string_width): Check multibyteness of STRING.
12588
12589 2008-02-01 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
12590
12591 * macterm.c (mac_encode_char): Call ccl_driver with the last arg
12592 Qnil. Use JIS_TO_SJIS instead of ENCODE_SJIS.
12593 (decode_mac_font_name): Use decode_coding_c_string instead of
12594 decode_coding.
12595 (x_load_font): Initialize fontp->fontset to -1. Set
12596 fontp->encoding_type.
12597
12598 2008-02-01 Kenichi Handa <handa@m17n.org>
12599
12600 * search.c (search_buffer): Give up BM search on case-fold-search
12601 if one of a target character has a case-equivalence of different
12602 byte length even if that target charcter is an ASCII.
12603 (simple_search): Fix calculation of byte length of matched text.
12604 (boyer_moore): Fix handling of case-equivalent multibyte characters.
12605
12606 2008-02-01 Kenichi Handa <handa@m17n.org>
12607
12608 * coding.c (decode_coding): Fix handling of invalid bytes.
12609
12610 2008-02-01 Kenichi Handa <handa@m17n.org>
12611
12612 * xterm.c (handle_one_xevent): Handle keysyms directly mapped to
12613 Unicode characters.
12614
12615 2008-02-01 Kenichi Handa <handa@m17n.org>
12616
12617 * coding.c (encode_coding_object): If a pre-write-conversion
12618 function makes a new buffer, kill it.
12619
12620 2008-02-01 Kenichi Handa <handa@m17n.org>
12621
12622 * coding.c (QCascii_compatible_p): New variable.
12623 (syms_of_coding): Initialize it.
12624 (ONE_MORE_BYTE, ONE_MORE_BYTE_NO_CHECK): Decrement `src' before
12625 calling string_char.
12626 (record_conversion_result): Add `default:' case.
12627 (coding_charset_list): Delete unused variable `coding_type'.
12628 (Fdefine_coding_system_internal): Add `ascii-compatible-p'
12629 property in the plist of the coding system.
12630 (Fcoding_system_put): Check QCascii_compatible_p.
12631
12632 2008-02-01 Miles Bader <miles@gnu.org>
12633
12634 * xfaces.c (Finternal_lisp_face_equal_p): Restore previously
12635 removed calculation of frame `f', as it's now used.
12636
12637 2008-02-01 Kenichi Handa <handa@m17n.org>
12638
12639 * Makefile.in (RUN_TEMACS): Include "-nl" if HAVE_SHM is defined.
12640 (emacs${EXEEXT}): Run $(RUN_TEMACS) unconditionally.
12641 (UNIDATA): New variable.
12642 (${lispsource}international/charprop.el): Depends on ${UNIDATA}.
12643 (bootstrap-emacs${EXEEXT}): Depends on charprop.el. Run
12644 $(RUN_TEMACS) unconditionally.
12645
12646 2008-02-01 Kenichi Handa <handa@m17n.org>
12647
12648 * Makefile.in (temacs${EXEEXT}): Build charprop.el if necessary.
12649 (admindir): New variable.
12650 ($(lispsource)international/charprop.el): New target.
12651
12652 2008-02-01 Miles Bader <miles@gnu.org>
12653
12654 * character.c (chars-in-region): Remove obsolete function.
12655 (syms_of_character): Remove its initialization.
12656
12657 2008-02-01 Benjamin Riefenstahl <b.riefenstahl@turtle-trading.net>
12658
12659 * w32select.c (validate_coding_system)
12660 (setup_windows_coding_system): New functions.
12661 (convert_to_handle_as_coded, Fw32_get_clipboard_data): Use
12662 setup_windows_coding_system.
12663 (setup_config, Fw32_get_clipboard_data): Use
12664 validate_coding_system.
12665 (Fx_selection_exists): Move call to setup_config to a place
12666 where signals are allowed.
12667
12668 * lisp.h (Fcoding_system_base, Fcoding_system_eol_type)
12669 (Fcheck_coding_system): Add declarations.
12670
12671 2008-02-01 Kenichi Handa <handa@m17n.org>
12672
12673 * charset.c (load_charset_map_from_vector): Fix for the first iteration.
12674
12675 2008-02-01 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
12676
12677 * macfns.c (Fx_create_frame, x_create_tip_frame): Pass Lisp
12678 string as the second argument for x_new_fontset.
12679
12680 2008-02-01 Kenichi Handa <handa@m17n.org>
12681
12682 * coding.c (decode_coding_object): Use safe_call1 instead of call1.
12683 (encode_coding_object): Use safe_call instead of call2.
12684
12685 2008-02-01 Kenichi Handa <handa@m17n.org>
12686
12687 * fontset.c (Fset_fontset_font): Check family element of a given vector.
12688
12689 * Makefile.in (lisp): Include charprop.el.
12690
12691 2008-02-01 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
12692
12693 * macfns.c (Fx_create_frame, x_create_tip_frame): Fix crash.
12694 Not sure if it's unnecessary.
12695
12696 2008-02-01 Steven Tamm <steventamm@mac.com>
12697
12698 * macfns.c (Fx_create_frame, x_create_tip_frame): ifdef'd out
12699 some possibly unnecessary fontset checking code that crashed
12700 when creating a new frame.
12701
12702 2008-02-01 Kenichi Handa <handa@m17n.org>
12703
12704 * xfaces.c (merge_faces): Fix argument to lookup_derived_face and
12705 lookup_face.
12706
12707 * xdisp.c (Fformat_mode_line): Fix argument to lookup_named_face.
12708
12709 * fringe.c (draw_fringe_bitmap_1): Fix argument to lookup_named_face.
12710
12711 2008-02-01 Kenichi Handa <handa@m17n.org>
12712
12713 * coding.c: Cancel the change done in HEAD on 2008-02-01.
12714 (coding_charset_list): New function.
12715
12716 * coding.h (coding_charset_list): Extern it.
12717
12718 2008-02-01 Kenichi Handa <handa@m17n.org>
12719
12720 * fontset.c (Fset_fontset_font): Call find_font_encoding with
12721 concatenation of family and registry.
12722
12723 2008-02-01 Kenichi Handa <handa@m17n.org>
12724
12725 * character.h (BYTE8_STRING): Fix typo.
12726
12727 * editfns.c (Ftranslate_region_internal): Don't convert unibyte
12728 string to multibyte (sync to HEAD).
12729
12730 * casefiddle.c (casify_region): Handle changes in byte-length
12731 using replace_range_2 (sync to HEAD).
12732
12733 2008-02-01 Andreas Schwab <schwab@suse.de>
12734
12735 * chartab.c (map_char_table): GCPRO table and arg.
12736
12737 2008-02-01 Kenichi Handa <handa@m17n.org>
12738
12739 * syntax.c (skip_syntaxes): Return lispy 0 (not nil) if point is
12740 already at limit.
12741
12742 2008-02-01 Kenichi Handa <handa@m17n.org>
12743
12744 * fontset.c (fs_load_font): Use fast_string_match_ignore_case
12745 instead of fast_c_string_match_ignore_case.
12746 (find_font_encoding): Change argument to Lisp_Object. Use
12747 fast_string_match_ignore_case instead of
12748 fast_c_string_match_ignore_case. Change caller.
12749
12750 2008-02-01 Kenichi Handa <handa@m17n.org>
12751
12752 * xdisp.c (get_next_display_element): In unibyte case, decide to
12753 display in octal form by checking a character by
12754 UNIBYTE_CHAR_HAS_MULTIBYTE_P.
12755
12756 * charset.c (Fset_unibyte_charset): Setup unibyte_has_multibyte_table.
12757
12758 * character.c (unibyte_has_multibyte_table): New variable.
12759
12760 * character.h (unibyte_has_multibyte_table): Extern it.
12761 (UNIBYTE_CHAR_HAS_MULTIBYTE_P): New macro.
12762
12763 2008-02-01 Kenichi Handa <handa@m17n.org>
12764
12765 * coding.c (encode_coding_iso_2022): Fix handling of charset
12766 annotation.
12767
12768 2008-02-01 Kenichi Handa <handa@m17n.org>
12769
12770 * coding.c (setup_coding_system): If coding_system is nil, use
12771 Qundecided.
12772 (Fterminal_coding_system): Return nil if terminal coding system is
12773 `undecided'.
12774 (syms_of_coding): Define coding-system `undecided' here. Setup
12775 terminal_coding as `undecided'.
12776
12777 2008-02-01 Kenichi Handa <handa@m17n.org>
12778
12779 * xdisp.c (message_dolog, set_message_1): Call
12780 unibyte_char_to_multibyte with arg type int.
12781
12782 * lread.c (read1): Fix reading of a char-table.
12783
12784 * print.c (print_object): Include sub char-table in circularities
12785 detection.
12786
12787 2008-02-01 Kenichi Handa <handa@m17n.org>
12788
12789 * keymap.c (where_is_internal_2): Fix for the case that KEY is a cons.
12790 Append the found sequences in car of ARGS instead of prepending.
12791
12792 2008-02-01 Kenichi Handa <handa@m17n.org>
12793
12794 * fileio.c (report_file_error): Make a unibyte string from
12795 strerror (errorno).
12796 (Fsubstitute_in_file_name): Fix the arg to
12797 unibyte_char_to_multibyte. It is evaluated twice.
12798
12799 2008-02-01 Kenichi Handa <handa@m17n.org>
12800
12801 * charset.h (CHAR_CHARSET): Shortcut for ASCII case.
12802
12803 2008-02-01 Kenichi Handa <handa@m17n.org>
12804
12805 * coding.c (detect_coding_utf_16): Don't set detect_info->found if
12806 BOM is not found.
12807 (detect_coding, detect_coding_system): Optimization for ISO-2022
12808 when no 8-bit data is found.
12809
12810 2008-02-01 Jason Rumney <jasonr@gnu.org>
12811
12812 * w32fns.c (x_to_w32_font): Update to use new coding struct.
12813
12814 2008-02-01 Kenichi Handa <handa@m17n.org>
12815
12816 * charset.c (Fdeclare_equiv_charset, Fiso_charset): Fix handing of
12817 CHARS.
12818
12819 2008-02-01 Steven Tamm <steventamm@mac.com>
12820
12821 * macterm.c (mac_encode_char): Add charset argument and update
12822 to use encoding_type.
12823 (x_new_font, x_new_fontset): Merge in changes from xterm.c;
12824 switch to pure fontset.
12825 (decode_mac_font_name): Temporarily remove decoding.
12826 (x_font_name_to_mac_font_name): Temporarily remove encoding.
12827 (x_load_font): Temporarily remove encoding.
12828
12829 2008-02-01 Kenichi Handa <handa@m17n.org>
12830
12831 * xfaces.c (Fface_font): If frame is not on a window system,
12832 ignore CHARACTER arg. If HAVE_WINDOW_SYSTEM is not defined, don't
12833 refer to face->font.
12834 (split_font_name_into_vector, build_font_name_from_vector)
12835 (lookup_non_ascii_face, realize_non_ascii_face): Define them only
12836 when HAVE_WINDOW_SYSTEM is defined.
12837
12838 2008-02-01 Kenichi Handa <handa@m17n.org>
12839
12840 * xdisp.c (BUILD_GLYPH_STRINGS): Check if s is NULL.
12841 (x_produce_glyphs): Fix setting of members of cmp in case
12842 cmp->glyph_len is zero.
12843
12844 * fontset.c (Fset_fontset_font): Fix docstring.
12845 (Ffontset_info): Make it backward compatible. New arg ALL.
12846
12847 2008-02-01 Kim F. Storm <storm@cua.dk>
12848
12849 * process.c (read_process_output): Grow decoding_buf when needed;
12850 this could cause a crash in allocate_string and compact_small_strings.
12851
12852 2008-02-01 Kenichi Handa <handa@m17n.org>
12853
12854 * fileio.c (WRITE_BUF_SIZE): Delete this macro.
12855
12856 2008-02-01 Kenichi Handa <handa@m17n.org>
12857
12858 * coding.c (setup_coding_system): Set coding->common_flags
12859 correctly for raw-text.
12860 (consume_chars): On encoding unibyte text by raw-text, don't check
12861 multibyte form.
12862 (encode_coding): On encoding by raw-text, never use translation tables.
12863
12864 * fileio.c (e_write): Short cut for the case of no encoding.
12865
12866 2008-02-01 Kenichi Handa <handa@m17n.org>
12867
12868 * coding.c (detect_coding, detect_coding_system): Delete unused
12869 variables.
12870
12871 2008-02-01 Kenichi Handa <handa@m17n.org>
12872
12873 * coding.c (encode_coding_utf_8): Fix handling of raw-byte char.
12874 (consume_chars): Fix handling of 8-bit bytes in unibyte source.
12875
12876 2008-02-01 Kenichi Handa <handa@m17n.org>
12877
12878 * coding.c (Ffind_coding_systems_region_internal): Include
12879 raw-text and no-conversion in the result.
12880
12881 2008-02-01 Kenichi Handa <handa@m17n.org>
12882
12883 * fontset.c (find_font_encoding): Return `ascii' for unknown encoding.
12884 (load_font_get_repertory): Delete unnecessary check of ENCODING of
12885 FONT_DEF.
12886 (font_def_arg, add_arg, from_arg, to_arg): New args.
12887 (set_fontset_font): Change argument.
12888 (Fset_fontset_font): Fix for the case that TARGET is a script
12889 name and charset name.
12890 (new_fontset_from_font_name): Fix argument to Fnew_fontset.
12891
12892 2008-02-01 Kenichi Handa <handa@m17n.org>
12893
12894 * fontset.c (fontset_font): Rename from fontset_face. Change return
12895 value.
12896 (face_suitable_for_char_p, face_for_char): Adjust for the change
12897 of fontset_font.
12898 (make_fontset_for_ascii_face): Fix setting of the fontset element
12899 for ASCII.
12900 (Finternal_char_font): Use fontset_font instead of FACE_FOR_CHAR
12901 to get a font name.
12902 (Ffontset_info): Adjust for the change of fontset_font.
12903
12904 * coding.c (emacs_mule_char): Check invalid code more rigidly.
12905
12906 * character.h (LEADING_CODE_LATIN_1_MIN)
12907 (LEADING_CODE_LATIN_1_MAX): Delete these macros.
12908
12909 2008-02-01 Kenichi Handa <handa@m17n.org>
12910
12911 * editfns.c (check_translation): New function.
12912 (Ftranslate_region_internal): Handle M:N mapping.
12913
12914 2008-02-01 Kenichi Handa <handa@m17n.org>
12915
12916 * xfaces.c (xlfd_point_size): Set font->numeric[XLFD_PIXEL_SIZE].
12917
12918 2008-02-01 Kenichi Handa <handa@m17n.org>
12919
12920 * coding.c (DECODE_DESIGNATION): Set chars_96 to -1 instead of
12921 goto invalid_code.
12922 (decode_coding_iso_2022): Fix handling of invalid designation.
12923
12924 * fileio.c (Finsert_file_contents): Be sure to call unbind_to
12925 after calling code_conversion_save.
12926
12927 2008-02-01 Kenichi Handa <handa@m17n.org>
12928
12929 * xdisp.c (handle_auto_composed_prop): Fix Lisp_Object/int mixup.
12930
12931 * print.c (print_prune_string_charset): Fix Lisp_Object/int mixup.
12932
12933 * fontset.c: Include "intervals.h".
12934 (fontset_face): Fix comparing of Lisp_Objects.
12935 (free_face_fontset, new_fontset_from_font_name): Fix
12936 Lisp_Object/int mixup.
12937
12938 * editfns.c (Ftranslate_region_internal): Fix Lisp_Object/int mixup.
12939
12940 * coding.c: Add many prototypes for static functions.
12941 (get_translation_table): Allow max_lookup to be NULL.
12942 (decode_coding, Ffind_coding_systems_region_internal)
12943 (Funencodable_char_position, Fcheck_coding_systems_region): Call
12944 get_translation_table with max_lookup NULL.
12945
12946 2008-02-01 Kenichi Handa <handa@m17n.org>
12947
12948 * coding.c (get_translation_table): Declare it as Lisp_Object.
12949 (LOOKUP_TRANSLATION_TABLE): New macro.
12950 (produce_chars, consume_chars): Use LOOKUP_TRANSLATION_TABLE
12951 instead of CHAR_TABLE_REF.
12952
12953 2008-02-01 Kenichi Handa <handa@m17n.org>
12954
12955 * coding.c (MAX_ANNOTATION_LENGTH): Adjust for the change of
12956 annotation data format.
12957 (ADD_ANNOTATION_DATA, ADD_COMPOSITION_DATA, ADD_CHARSET_DATA):
12958 Change arguments FROM and TO to single argument NCHARS. Change caller.
12959 (decode_coding_utf_8, decode_coding_utf_16, decode_coding_emacs_mule)
12960 (decode_coding_iso_2022, decode_coding_sjis, decode_coding_big5)
12961 (decode_coding_ccl, decode_coding_charset): Pay attention to
12962 coding->charbuf_used.
12963 (get_translation): New function.
12964 (produce_chars): New arguments translation_table and last_block.
12965 Translate characters here. Return number of carryover chars.
12966 Change caller.
12967 (produce_composition): New argument pos. Change caller.
12968 Adjust for the change of annotation data format.
12969 (produce_charset, produce_annotation): Likewise.
12970 (decode_coding, encode_coding): Don't call translate_chars.
12971 (consume_chars): New arg translation_table. Change caller.
12972 (translate_chars): Delete.
12973 (syms_of_coding): Make translation-table's number of extra slots 2.
12974
12975 2008-02-01 Kenichi Handa <handa@m17n.org>
12976
12977 * search.c (simple_search): Fix setting this_pos_byte in backward
12978 search.
12979
12980 * coding.c (detect_coding_emacs_mule): Fix counting of encoded
12981 byte sequence.
12982 (detect_coding_ccl): Fix setting of the variable valids.
12983
12984 2008-02-01 Kenichi Handa <handa@m17n.org>
12985
12986 * xterm.c (x_list_fonts): Fix the detection of an auto-scaled font.
12987
12988 * coding.c (decode_coding_utf_16): Fix handling of surrogate pair.
12989
12990 * editfns.c (Ftranslate_region_internal): Rename from
12991 Ftranslate_region. Accept a char-table in TABLE.
12992 (syms_of_editfns): Defsubr Stranslate_region_internal.
12993
12994 * xfaces.c (set_lface_from_font_name): If a font is specified for
12995 a frame, generate a fontset from the font.
12996 (build_scalable_font_name): If the scalable font is requested for
12997 a specific size, don't change that size.
12998 (try_font_list): Try a scalable font also in the case that a
12999 pattern string is specified.
13000
13001 2008-02-01 Kenichi Handa <handa@m17n.org>
13002
13003 * xfaces.c (Fface_font): New optional arg CHARACTER.
13004
13005 2008-02-01 Kenichi Handa <handa@m17n.org>
13006
13007 * charset.h (CHARSET_OFFSET): New macro.
13008
13009 2008-02-01 Kenichi Handa <handa@m17n.org>
13010
13011 * xterm.c (x_get_font_repertory): Fix for non-Unicode-bmp charset.
13012
13013 * fontset.c (fontset_face): Handle the case that repertory is a
13014 char-table.
13015 (find_font_encoding): Return nil for unknown encoding.
13016 (Fset_fontset_font): Ignore a font of unknown encoding.
13017
13018 2008-02-01 Kenichi Handa <handa@m17n.org>
13019
13020 * keymap.c (describe_vector): Handle default value of a char table.
13021
13022 * fontset.c (fontset_face): Handle fallback fonts correctly.
13023 (Ffontset_info): Return infomation about fallback fonts.
13024
13025 2008-02-01 Kenichi Handa <handa@m17n.org>
13026
13027 * fontset.c (FONTSET_DEFAULT): New macro.
13028 (FONTSET_ADD, fontset_add): Handle the case that range is nil.
13029 (Fset_fontset_font): Change the 2nd arg name to TARGET, and handle
13030 the case that it is nil.
13031 (dump_fontset): Call FONTSET_DEFAULT, not FONTSET_FALLBACK.
13032 (syms_of_fontset): Set char-table-extra-slots property of fontset to 9.
13033
13034 * charset.h (CHAR_CHARSET_P): Fix for the case that the method is
13035 subset or superset.
13036
13037 2008-02-01 Kenichi Handa <handa@m17n.org>
13038
13039 * emacs.c (main): Call init_charset after syms_of_XXX.
13040
13041 * charset.c (Vcharset_map_directory): Delete.
13042 (Vcharset_map_path): New variable.
13043 (load_charset_map_from_file): Use Vcharset_map_path instead.
13044 (init_charset): Initialize Vcharset_map_path.
13045 (syms_of_charset): Delete declaration of "charset-map-directory",
13046 add declaration of "charset-map-path".
13047
13048 2008-02-01 Kenichi Handa <handa@m17n.org>
13049
13050 * fns.c (string_char_to_byte, string_byte_to_char): Optimize for
13051 ASCII only string.
13052
13053 * fileio.c (Finsert_file_contents): Avoid detecting a code twice.
13054
13055 * coding.c (detect_coding_iso_2022): Fix handling of SS2 and SS3.
13056 (detect_coding, detect_coding_system): Treat '\0' as normal ASCII byte.
13057
13058 2008-02-01 Kenichi Handa <handa@m17n.org>
13059
13060 * coding.h (SJIS_TO_JIS2, JIS_TO_SJIS2): New macros.
13061
13062 * coding.c (QCmnemonic, QCdefalut_char)
13063 (QCdecode_translation_table, QCencode_translation_table)
13064 (QCpost_read_conversion, QCpre_write_conversion): New variables.
13065 (get_translation_table): Return a list of translation tables if
13066 necessary.
13067 (decode_coding): Call get_translation_table with ENCODEP 0.
13068 (char_encodable_p): If translation_table is non-nil, always call
13069 translate_char.
13070 (Fdefine_coding_system_internal): Accept list of translation
13071 tables as :encode-translation-table and :decode-translation-table.
13072 (Fcoding_system_put): New function.
13073 (syms_of_coding): Declare new symbols. Defsubr
13074 Scoding_system_put.
13075 (decode_coding_sjis, encode_coding_sjis): Handle 4th charset,
13076 typically JISX0212.
13077
13078 * charset.c (map_charset_chars): Fix arg to map_charset_chars in
13079 when the charset is superset type.
13080
13081 * character.c (translate_char): Accept list of translation tables.
13082
13083 2008-02-01 Kenichi Handa <handa@m17n.org>
13084
13085 * coding.h (enum coding_attr_index): New member coding_attr_trans_tbl.
13086 (CODING_ATTR_TRANS_TBL): New macro.
13087
13088 * coding.c (get_translation_table): New function.
13089 (translate_chars): Fix the bug of skipping annotation data.
13090 (decode_coding, encode_coding): Utilize get_translation_table.
13091 (char_encodable_p, Funencodable_char_position): Translate char if
13092 necessary.
13093 (Ffind_coding_systems_region_internal)
13094 (Fcheck_coding_systems_region): Setup translation table for encode
13095 in a coding system attribute vector in advance.
13096 (Fdefine_coding_system_internal): Allow a symbol as translation
13097 table. For shift-jis type coding system, allow 4th charset.
13098
13099 2008-02-01 Kenichi Handa <handa@m17n.org>
13100
13101 * coding.c (decode_coding_sjis): Check the first byte rigidly.
13102
13103 * xdisp.c (get_next_display_element): Pass -1 as POS to
13104 FACE_FOR_CHAR if displaying a C-string.
13105
13106 2008-02-01 Kenichi Handa <handa@m17n.org>
13107
13108 * composite.c (get_composition_id): Handle xoff and yoff in a
13109 composition rule.
13110
13111 * composite.h (COMPOSITION_DECODE_RULE): New arg xoff and yoff.
13112 (struct composition): New member lbearing and rbearing.
13113
13114 * xdisp.c (move_it_to): Optimize for the case (op & MOVE_TO_Y).
13115 (x_get_glyph_overhangs): Handle a composition glyph.
13116 (x_produce_glyphs): Setup lbearing and rbreaing for a composition glyph.
13117
13118 * xterm.c (x_compute_glyph_string_overhangs): Handle also a
13119 composition glyph.
13120
13121 2008-02-01 Kenichi Handa <handa@m17n.org>
13122
13123 * print.c: Include charset.h.
13124 (Vprint_charset_text_property): New variable.
13125 (Qdefault): Extern it.
13126 (PRINT_STRING_NON_CHARSET_FOUND)
13127 (PRINT_STRING_UNSAFE_CHARSET_FOUND): New macros.
13128 (print_check_string_result): New variable.
13129 (print_check_string_charset_prop): New function.
13130 (print_prune_charset_plist): New variable.
13131 (print_prune_string_charset): New function.
13132 (print_object): Call print_prune_string_charset if
13133 Vprint_charset_text_property is not t.
13134 (print_interval): Print nothing if interval->plist is nil.
13135 (syms_of_print): Declare Vprint_charset_text_property as a lisp
13136 variable. Init and staticpro print_prune_charset_plist.
13137
13138 2008-02-01 Kenichi Handa <handa@m17n.org>
13139
13140 * fontset.c (new_fontset_from_font_name): Use the specified font
13141 for all characters in the new fontset.
13142
13143 * macterm.c (x_set_mouse_face_gc): Call FACE_FOR_CHAR with POS and
13144 OBJECT args.
13145
13146 * xdisp.c (x_produce_glyphs): Call FACE_FOR_CHAR with POS and
13147 OBJECT args for composition too.
13148
13149 * w32term.c (x_set_mouse_face_gc): Call FACE_FOR_CHAR with POS and
13150 OBJECT args.
13151
13152 2008-02-01 Kenichi Handa <handa@m17n.org>
13153
13154 * dispextern.h (FACE_FOR_CHAR): New args POS and OBJECT.
13155
13156 * fontset.c (reorder_font_vector): Adjust for the change of
13157 FONT_DEF format.
13158 (fontset_face): New arg id. Change caller.
13159 (face_for_char): New args pos and object.
13160 (make_fontset_for_ascii_face): Adjust for the change of FONT_DEF format.
13161 (fs_query_fontset): Check NAME by Fassoc too.
13162 (Fset_fontset_font): Allow non-XLFD font name.
13163 (Ffontset_info): Adjust for the change of FONT_DEF format.
13164
13165 * fontset.h (face_for_char): Adjust prototype.
13166
13167 * xdisp.c (face_before_or_after_it_pos, get_next_display_element)
13168 (append_space, extend_face_to_end_of_line)
13169 (get_char_face_and_encoding, BUILD_COMPOSITE_GLYPH_STRING)
13170 (x_produce_glyphs): Call FACE_FOR_CHAR with POS and OBJECT args.
13171
13172 * xfaces.c (compute_char_face): Call FACE_FOR_CHAR with
13173 POS and OBJECT args.
13174
13175 * xterm.c (x_set_mouse_face_gc): Call FACE_FOR_CHAR with
13176 POS and OBJECT args.
13177
13178 2008-02-01 Jason Rumney <jasonr@gnu.org>
13179
13180 * w32select.c (Fw32_set_clipboard_data): Avoid potential realloc
13181 of GlobalAlloc'ed memory.
13182
13183 2008-02-01 Kenichi Handa <handa@m17n.org>
13184
13185 * ccl.c (Fccl_execute_on_string): Fix the condition of loop.
13186
13187 * charset.h (charset_table_used): Delete extern.
13188
13189 * charset.c (charset_table_used): Make it static.
13190 (map_charset_chars): Fix args to c_function with.
13191
13192 * chartab.c (map_sub_char_table_for_charset): Fix args to
13193 c_function with.
13194
13195 * coding.h (enum coding_result_code): Delete
13196 CODING_RESULT_INSUFFICIENT_CMP, add CODING_RESULT_INVALID_SRC.
13197
13198 * coding.c (Qinsufficient_source, Qinconsistent_eol)
13199 (Qinvalid_source, Qinterrupted, Qinsufficient_memory): New variables.
13200 (Vlast_code_conversion_error): New variables.
13201 (syms_of_coding): DEFSYM or DEFVAR_LISP them.
13202 (ONE_MORE_BYTE): Record error if any instead of signaling an
13203 error. If non-ASCII multibyte char is found, return the negative
13204 value of the code. All callers changed to check it.
13205 (ONE_MORE_BYTE_NO_CHECK): Likewise.
13206 (record_conversion_result): New function. Change all codes setting
13207 coding->result to call this function.
13208 (detect_coding_utf_8, decode_coding_utf_8)
13209 (detect_coding_emacs_mule, detect_coding_sji, detect_coding_big5):
13210 Don't use the local variable incomplete.
13211 (emacs_mule_char): Change the second arg to `const'.
13212 (decode_coding): Fix of flushing out unprocessed data.
13213 (make_conversion_work_buffer): Fix making of a work buffer.
13214 (decode_coding_object): Return coding->dst_object.
13215
13216 * fontset.c (set_fontset_font): Fix args.
13217
13218 * lisp.h (CHARACTERBITS): Define as 22.
13219
13220 * process.c (send_process): Be sure to set coding->src_multibyte.
13221
13222 * xdisp.c (handle_auto_composed_prop): Fix setting of limit.
13223
13224 2008-02-01 Kenichi Handa <handa@m17n.org>
13225
13226 * xdisp.c (handle_auto_composed_prop): Give limit to
13227 Fnext_single_char_property_change.
13228
13229 2008-02-01 Kenichi Handa <handa@m17n.org>
13230
13231 * composite.c (syms_of_composite): Don't make the composition hash
13232 table weak.
13233
13234 * fontset.c (Fset_fontset_font): Fix docstring.
13235
13236 * lisp.h (detect_coding_system): Adjust prototype.
13237
13238 * fileio.c (kill_workbuf_unwind): Delete this function.
13239 (Finsert_file_contents): Adjust the call of detect_coding_system.
13240 Get conversion_buffer by code_conversion_save. Use the macro
13241 CODING_MAY_REQUIRE_DECODING. After decoding, update
13242 coding_system.
13243
13244 * coding.h (make_conversion_work_buffer): Delete extern.
13245 (code_conversion_save): Extern it.
13246
13247 * coding.c (enum iso_code_class_type): Delete ISO_carriage_return.
13248 (CODING_GET_INFO): Delete argument eol_type. Change callers.
13249 (decode_coding_utf_8): Don't do eol converion.
13250 (detect_coding_utf_16): Check coding->src_chars, not
13251 coding->src_bytes. Add heuristics for those that have no signature.
13252 (decode_coding_emacs_mule, decode_coding_iso_2022)
13253 (decode_coding_sjis, decode_coding_big5, decode_coding_charset):
13254 Don't do eol converion.
13255 (adjust_coding_eol_type): Return a new coding system.
13256 (detect_coding): Don't detect eol. Fix for utf-16 detection.
13257 (decode_eol): In case of CRLF->LF conversion, use del_range_2 on
13258 each change.
13259 (decode_coding): Pay attention to undo_list. Do eol conversion for
13260 all types of coding-systems (if necessary).
13261 (Vcode_conversion_work_buf_list): Delete it.
13262 (Vcode_conversion_reused_workbuf): Rename from
13263 Vcode_conversion_reused_work_buf.
13264 (Vcode_conversion_workbuf_name): New variable.
13265 (reused_workbuf_in_use): New variable.
13266 (make_conversion_work_buffer): Delete the arg DEPTH.
13267 (code_conversion_restore): Change argument to cons.
13268 (code_conversion_save): Delete the argument BUFFER. Change callers.
13269 (detect_coding_system): New argument src_chars. Change callers.
13270 Fix for utf-16 detection.
13271 (init_coding_once): Don't use ISO_carriage_return.
13272 (syms_of_coding): Initialize Vcode_conversion_workbuf_name and
13273 reused_workbuf_in_use.
13274
13275 2008-02-01 Kenichi Handa <handa@m17n.org>
13276
13277 * keymap.c (store_in_keymap): Pay attention to the case that idx
13278 is a cons specifying a character range.
13279
13280 2008-02-01 Kenichi Handa <handa@m17n.org>
13281
13282 * xdisp.c (handle_auto_composed_prop): Fix the case of returning
13283 HANDLED_RECOMPUTE_PROPS.
13284
13285 * coding.c (Fdefine_coding_system_internal): Fix checking of
13286 ascii compatibility.
13287
13288 2008-02-01 Kenichi Handa <handa@m17n.org>
13289
13290 * charset.c (find_charsets_in_text): Delete unused locale variable.
13291 (Fset_charset_priority): Update Vemacs_mule_charset_list too.
13292
13293 * coding.c (encode_coding_emacs_mule): Emit bytes with MSB.
13294 Resync charset_list to Vemacs_mule_charset_list.
13295
13296 * keymap.c (store_in_keymap): Pay attention to the case that idx
13297 is a cons specifying a character range.
13298
13299 2008-02-01 Kenichi Handa <handa@m17n.org>
13300
13301 * composite.c (update_compositions): Bind inhibit-read-only, etc
13302 to t before calling remove-list-of-text-properties.
13303
13304 * print.c (print_object): Always print ASCII chars as is.
13305
13306 2008-02-01 Kenichi Handa <handa@m17n.org>
13307
13308 * keymap.c (Fdefine_key): Fix handling of Lucid style event type list.
13309
13310 * fns.c (Fmapconcat, Fmapcar, Fmapc): Signal an error if SEQUENCE
13311 is a char table.
13312
13313 2008-02-01 Kenichi Handa <handa@m17n.org>
13314
13315 * syntax.c (skip_chars): Be sure to alloca char_ranges when necessary.
13316
13317 2008-02-01 Kenichi Handa <handa@m17n.org>
13318
13319 * xfaces.c (set_lface_from_font_name): Fix for the case that
13320 FONTNAME is not fontset name.
13321
13322 2008-02-01 Kenichi Handa <handa@m17n.org>
13323
13324 * fns.c (base64_encode_1): Fix previous change.
13325
13326 2008-02-01 Kenichi Handa <handa@m17n.org>
13327
13328 * fontset.c (set_fontset_font): New function.
13329 (Fset_fontset_font): If a font is specified for a charset, use
13330 map_charset_chars to store the font spec in a fontset.
13331
13332 2008-02-01 Kenichi Handa <handa@m17n.org>
13333
13334 * fontset.c (fontset_face): Create a fallback fontset on demand.
13335 (make_fontset): Don't create a fallback fontset here.
13336 (free_face_fontset): Free a fallback fontset (if any) too.
13337 (n_auto_fontsets): Delete this variable.
13338 (auto_fontset_alist): New variable.
13339 (new_fontset_from_font_name): Check auto_fontset_alist.
13340 (dump_fontset) [FONTSET_DEBUG]: Fully re-written.
13341 (Ffontset_list_all) [FONTSET_DEBUG]: New function.
13342 (syms_of_fontset): Initialize and staticpro auto_fontset_alist.
13343 Defsubr Sfontset_list_all.
13344
13345 2008-02-01 Kenichi Handa <handa@m17n.org>
13346
13347 * xterm.c (x_list_fonts): Fix excluding of auto-scaled fonts.
13348
13349 2008-02-01 Kenichi Handa <handa@m17n.org>
13350
13351 * fontset.c (Fnew_fontset): Check NAME more rigidly.
13352
13353 2008-02-01 Kenichi Handa <handa@m17n.org>
13354
13355 * editfns.c (Fgoto_char): Fix docstring.
13356
13357 2008-02-01 Kenichi Handa <handa@m17n.org>
13358
13359 * insdel.c (insert_from_gap): Adjust intervals correctly.
13360
13361 2008-02-01 Jason Rumney <jasonr@gnu.org>
13362
13363 * w32term.c (GLYPHSET, WCRANGE): Define if system headers don't.
13364 (pfnGetFontUnicodeRanges): New dynamically loaded function.
13365 (w32_initialize): Try to load it.
13366 (x_get_font_repertory): Use it if available.
13367 (w32_encode_char): Add shortcut for unicode output.
13368
13369 * w32fns.c (w32_load_system_font): Default charset to -1.
13370 (x_to_w32_charset): Match all fonts for unicode.
13371 (w32_to_x_charset): New parameter matching. Don't return partial
13372 or wildcard charsets.
13373 (w32_to_all_x_charsets): Don't return partial or wildcard charsets.
13374 (w32_codepage_for_font): Return CP_UNICODE for unicode.
13375 (w32_to_x_font): Match charset to real charset.
13376 (enum_font_cb2): Always list unicode versions.
13377
13378 * makefile.w32-in (temacs): Increase EMHEAP.
13379
13380 2008-02-01 Jason Rumney <jasonr@gnu.org>
13381
13382 * w32term.c (w32_encode_char): New charset parameter.
13383 font_info.encoding becomes encoding_type.
13384 (x_get_font_repertory): New function. Warning: stub only!
13385 (x_new_font): Return quickly if font already set.
13386 (x_new_fontset): fontsetname parameter is Lisp_Object.
13387 Use new fs_query_fontset. Try new_fontset_from_font_name.
13388 Use fontset_name for return value.
13389
13390 * w32term.h: Declare x_get_font_repertory.
13391
13392 * w32select.c (Fw32_set_clipboard_data): Use string_x_string_p in
13393 place of find_charset_in_text. Use encode_coding_object in place
13394 of encode_coding.
13395 (Fw32_get_clipboard_data): Use decode_coding_c_string in place of
13396 decode_coding.
13397
13398 * w32fns.c (Fx_create_frame, x_create_tip_frame): Use new version
13399 of x_new_fontset.
13400 (w32_load_system_font): Initialize charset as unicode.
13401 font_info.encoding becomes encoding_type.
13402 (w32_to_x_font): Use decode_coding_c_string in place of decode_coding.
13403 (x_to_w32_font): Use encode_coding_object in place of encode_coding.
13404 (syms_of_w32fns): Set get_font_repertory_func.
13405
13406 * w32console.c: Include character.h. Use terminal_encode_buffer
13407 from term.c.
13408 (write_glyphs): Use new version of encode_terminal_code. Use
13409 encode_coding_object in place of encode_coding.
13410
13411 * w32bdf.c (w32_load_bdf_font): Clear font_info before filling.
13412 encoding becomes encoding_type.
13413
13414 * term.c (terminal_encode_buffer): Make externally visible.
13415
13416 * makefile.w32-in: Add character.h dependancies.
13417 (character.o, chartab.o): New targets.
13418
13419 2008-02-01 Kenichi Handa <handa@m17n.org>
13420
13421 * fileio.c (Finsert_file_contents) [DOS_NT]: Use the macro
13422 CODING_ID_EOL_TYPE.
13423
13424 2008-02-01 Andreas Schwab <schwab@suse.de>
13425
13426 * coding.c (produce_chars): Revert last change.
13427
13428 2008-02-01 Kenichi Handa <handa@m17n.org>
13429
13430 * charset.h (charset_unicode): Extern it.
13431
13432 * charset.c (string_xstring_p): Check by (C >= 0x100).
13433 (find_charsets_in_text): Change format of the arc CHARSETS. New
13434 arg MULTIBYTE.
13435 (Ffind_charset_region, Ffind_charset_string): Adjust for the
13436 change of find_charsets_in_text.
13437 (Fsplit_char): Fix doc. Never return unknown.
13438
13439 * chartab.c (char_table_translate): Use CHARACTERP, not INTEGERP.
13440
13441 * coding.c (Fdefine_coding_system_alias): Update
13442 Vcoding_system_list.
13443
13444 * fontset.c (load_font_get_repertory): Pay attention to the case
13445 that ENCODING of a font is specified by a char-table.
13446
13447 * xterm.c (x_get_font_repertory): Handle the case that the
13448 encoding of font is other than Unicode.
13449
13450 2008-02-01 Kenichi Handa <handa@m17n.org>
13451
13452 * term.c (encode_terminal_code): Don't handle glyph-table. Check
13453 if a character is encodable by the terminal coding system. If
13454 not, produces proper number of `?'s. Update
13455 terminal_encode_buffer and terminal_encode_buf_size if necessary.
13456 (produce_glyphs): Check by CHAR_BYTE8_P, not SINGLE_BYTE_CHAR_P.
13457
13458 2008-02-01 Kenichi Handa <handa@m17n.org>
13459
13460 * term.c (terminal_encode_buffer, terminal_encode_buf_size): New
13461 variables.
13462 (encode_terminal_code): Change argument. Encode multiple
13463 characters at once. Store the result of encoding in
13464 terminal_encode_buffer.
13465 (write_glyphs, insert_glyphs): Adjust for the change of
13466 encode_terminal_code.
13467 (term_init): Initialize terminal_encode_buffer and
13468 terminal_encode_buf_size.
13469
13470 * coding.c (consume_chars): If coding->src_object is nil, don't
13471 check annotation.
13472
13473 2008-02-01 Kenichi Handa <handa@m17n.org>
13474
13475 * character.c (char_string): Use ASCII_CHAR_P instead of
13476 SINGLE_BYTE_CHAR_P.
13477
13478 2008-02-01 Kenichi Handa <handa@m17n.org>
13479
13480 * xdisp.c (handle_auto_composed_prop): Check if the last
13481 characters of auto-composed region is newly composed with the
13482 following characters.
13483 (handle_composition_prop): Fix checking of point being inside
13484 composition.
13485
13486 2008-02-01 Kenichi Handa <handa@m17n.org>
13487
13488 * fns.c (concat): Don't change multibyteness of the result by
13489 concatenating an 8-bit character.
13490
13491 * data.c (Faset): Check newelt by CHECK_CHARACTER. Don't change
13492 multibyteness of the result when newelt is an 8-bit character.
13493
13494 2008-02-01 Dave Love <fx@gnu.org>
13495
13496 * xmenu.c (find_and_call_menu_selection): Make menu_bar_items_used
13497 EMACS_INT.
13498
13499 * xfns.c (DefaultDepthOfScreen, x_encode_text): Remove unused vars.
13500
13501 * xfaces.c (face_numeric_value): Declare dim size_t.
13502 (Finternal_lisp_face_equal_p): Remove unused f.
13503
13504 * xdisp.c (BUILD_CHAR_GLYPH_STRINGS, display_and_set_cursor)
13505 (MATRIX_ROW): Remove unused vars.
13506 (draw_glyphs, x_insert_glyphs, fast_find_position)
13507 (fast_find_position, fast_find_string_pos): Use EMACS_INT for
13508 byte/char counts.
13509
13510 * regex.c (regex_compile): Remove unused var.
13511
13512 * minibuf.c (Fminibuffer_complete_word): Remove unused var.
13513
13514 * keymap.c (Fset_keymap_parent, map_keymap, Fcopy_keymap)
13515 (Faccessible_keymaps, where_is_internal): Remove unused vars.
13516
13517 * keyboard.c (cancel_hourglass_unwind): Return Qnil.
13518
13519 * frame.c (frame_name_fnn_p): Make len EMACS_INT.
13520
13521 * fileio.c (Fwrite_region): Remove unused var.
13522
13523 * dispnew.c (adjust_frame_glyphs_for_frame_redisplay)
13524 (adjust_frame_glyphs_for_window_redisplay): Remove unused ch_dim.
13525
13526 * composite.c (Fremove_list_of_text_properties): Declare.
13527
13528 * coding.c (inhibit_pre_post_conversion): Remove (unused).
13529 (alloc_destination, produce_chars): Use EMACS_INT for byte/char counts.
13530 (coding_inherit_eol_type): Remove unused attrs.
13531 (detect_coding): Cast arg of detect_eol.
13532
13533 * charset.c (syms_of_charset): Remove unused var p.
13534 (find_charsets_in_text, Ffind_charset_region): Use EMACS_INT for
13535 byte/char counts.
13536
13537 * casetab.c (set_case_table): Remove unused var.
13538
13539 * window.c (Fdisplay_buffer, Fframe_selected_window): Remove
13540 unused vars.
13541
13542 2008-02-01 Dave Love <fx@gnu.org>
13543
13544 * xterm.c (x_bitmap_mask): Declare.
13545
13546 2008-02-01 Dave Love <fx@gnu.org>
13547
13548 * xterm.c (x_term_init): Fix type error.
13549
13550 * lisp.h: Add Funibyte_char_to_multibyte.
13551
13552 * coding.c (Fread_coding_system): Fix arg of XSETSTRING.
13553 (Fset_coding_system_priority): Doc fix.
13554
13555 * ccl.c (ccl_driver): Fix arg of CHARACTERP.
13556
13557 * indent.c (check_composition): Make start and end EMACS_INT.
13558
13559 * character.c (lisp_string_width): Make ignore and end EMACS_INT.
13560
13561 * xdisp.c (handle_composition_prop, check_point_in_composition):
13562 Make buffer positions EMACS_INT.
13563
13564 * composite.c (find_composition, run_composition_function)
13565 (update_compositions, Ffind_composition_internal): Make buffer
13566 positions EMACS_INT.
13567
13568 * composite.h (find_composition, update_compositions): Make
13569 position args EMACS_INT.
13570
13571 * keyboard.c (adjust_point_for_property): Make beg and end EMACS_INT.
13572
13573 * intervals.c (get_property_and_range):
13574 * intervals.h (get_property_and_range): Make start and end EMACS_INT.
13575
13576 * unexalpha.c: Don't include varargs.h.
13577
13578 2008-02-01 Dave Love <fx@gnu.org>
13579
13580 * coding.h (ENCODE_UTF_8): New.
13581
13582 * Makefile.in (gtkutil.o): Depend on coding.h.
13583
13584 * coding.c (Fset_coding_system_priority): Doc fix.
13585
13586 2008-02-01 Kenichi Handa <handa@m17n.org>
13587
13588 * fileio.c (Finsert_file_contents): Call setup_coding_system in
13589 the case of auto saving.
13590
13591 2008-02-01 Andreas Schwab <schwab@suse.de>
13592
13593 * chartab.c (map_char_table, map_char_table_for_charset): Protect
13594 `range' from GC.
13595
13596 2008-02-01 Kenichi Handa <handa@m17n.org>
13597
13598 * coding.c (decode_coding_sjis): Check bytes more rigidly.
13599
13600 2008-02-01 Kenichi Handa <handa@m17n.org>
13601
13602 * fileio.c (choose_write_coding_system): Return a decided coding system.
13603 (Fwrite_region): Set Vlast_coding_system_used to the return value
13604 of choose_write_coding_system.
13605
13606 2008-02-01 Kenichi Handa <handa@m17n.org>
13607
13608 * charset.c (Fset_charset_priority): Pay attention to duplicated
13609 arguments.
13610
13611 * coding.c (QCcategory): New variable.
13612 (syms_of_coding): Defsym it. Set all elements of
13613 Vcoding_category_table and their symbol values.
13614 (Fset_coding_system_priority): Doc fix. Update symbol qvalues of
13615 coding-category-XXX, and coding-category-list.
13616 (Fdefine_coding_system_internal): Add category in the plist.
13617
13618 2008-02-01 Kenichi Handa <handa@m17n.org>
13619
13620 * callproc.c (Fcall_process): Handle carryover correctly.
13621
13622 * coding.c (decode_coding_iso_2022): Fix handling of invalid bytes.
13623 (raw_text_coding_system): Check NILP (coding_system).
13624 (coding_inherit_eol_type): Check NILP (coding_system) and
13625 NILP (parent).
13626 (consume_chars): Fix for the case of raw-text.
13627
13628 * process.c (read_process_output): Handle carryover correctly.
13629
13630 2008-02-01 Dave Love <fx@gnu.org>
13631
13632 * regex.c (re_search_2): Fix last change.
13633
13634 2008-02-01 Kenichi Handa <handa@m17n.org>
13635
13636 * regex.c (GET_CHAR_BEFORE_2): Check multibyte, not
13637 target_multibyte. Even in a unibyte case, return a converted
13638 multibyte char.
13639 (GET_CHAR_AFTER): New macro.
13640 (PATFETCH): Translate via multibyte char.
13641 (HANDLE_UNIBYTE_RANGE): Delete this macro.
13642 (SETUP_MULTIBYTE_RANGE): New macro.
13643 (regex_compile): Setup compiled code so that its multibyteness
13644 matches that of a target. Fix the handling of "[X-YZ]" using
13645 SETUP_MULTIBYTE_RANGE.
13646 (analyse_first) <charset>: For filling fastmap for all multibyte
13647 characters, don't check by BASE_LEADING_CODE_P.
13648 (re_search_2): Don't check RE_TARGET_MULTIBYTE_P (bufp). It is
13649 the same as RE_MULTIBYTE_P (bufp) now.
13650 (mutually_exclusive_p): Check by (! multibyte || IS_REAL_ASCII (c)).
13651 (TARGET_CHAR_AND_LENGTH): Delete this macro.
13652 (TRANSLATE_VIA_MULTIBYTE): New macro.
13653 (re_match_2_internal): Don't check RE_TARGET_MULTIBYTE_P (bufp).
13654 It is the same as RE_MULTIBYTE_P (bufp) now.
13655 <exactn>: Translate via multibyte.
13656 <anychar>: Fetch a character by RE_STRING_CHAR_AND_LENGTH. Don't
13657 translate it.
13658 <charset, charset_not>: Fetch a character by
13659 RE_STRING_CHAR_AND_LENGTH. Translate via multibyte.
13660 <duplicate>: Call bcmp_translate with the last arg `multibyte'.
13661 <wordbound, notwordbound, wordbeg, wordend, syntaxspec,
13662 notsyntaxspec, categoryspec, notcategoryspec> Fetch a character
13663 by GET_CHAR_AFTER.
13664 (bcmp_translate): Likewise.
13665
13666 * search.c (compile_pattern): Check the member target_multibyte,
13667 not the member multibyte of buf.
13668
13669 * lread.c (read1): While reading a string, set force_singlebyte
13670 and force_multibyte correctly.
13671
13672 * charset.c (Fset_unibyte_charset, init_charset_once): Fix setting
13673 up of unibyte_to_multibyte_table.
13674
13675 2008-02-01 Kenichi Handa <handa@m17n.org>
13676
13677 * coding.c (setup_coding_system): If coding has
13678 post-read-conversion or pre-write-conversion, set
13679 CODING_REQUIRE_DECODING_MASK and CODING_REQUIRE_ENCODING_MASK
13680 respectively.
13681 (decode_coding_gap): Run post-read-conversion if any.
13682
13683 * fileio.c (Finsert_file_contents): Even if we read into a
13684 unibyte buffer, check if we must decode the result or not.
13685
13686 2008-02-01 Kenichi Handa <handa@m17n.org>
13687
13688 * coding.c (make_conversion_work_buffer): Change the work buffer
13689 name to the same one as that of Emacs 21.
13690
13691 2008-02-01 Kenichi Handa <handa@m17n.org>
13692
13693 * coding.h (make_conversion_work_buffer): Adjust prototype.
13694 (code_conversion_restore): Don't extern it.
13695
13696 * coding.c (detected_mask): Delete unused variable.
13697 (decode_coding_iso_2022): Pay attention to the byte sequence of
13698 CTEXT extended segment, and retain those bytes as is.
13699 (decode_coding_ccl): Delete unused variable `valids'.
13700 (setup_coding_system): Delete unused variable `category'.
13701 (consume_chars): Delete unused variable `category'. Make it work
13702 for non-multibyte case.
13703 (make_conversion_work_buffer): Change argument.
13704 (saved_coding): Delete unused variable.
13705 (code_conversion_restore): Don't check saved_coding->destination.
13706 (code_conversion_save): New function.
13707 (decode_coding_gap, encode_coding_gap): Call code_conversion_save
13708 instead of record_unwind_protect.
13709 (decode_coding_object, encode_coding_object): Likewise. Recover PT.
13710 (detect_coding_system): Delete unused variable `mask'.
13711 (Fdefine_coding_system_internal): Delete unused variable id.
13712
13713 * fileio.c (kill_workbuf_unwind): New function.
13714 (Finsert_file_contents): On replacing, call
13715 make_conversion_work_buffer with correct args, and call
13716 record_unwind_protect with the first arg kill_workbuf_unwind.
13717
13718 * lisp.h (Fgenerate_new_buffer_name): EXFUN it.
13719
13720 2008-02-01 Kenichi Handa <handa@m17n.org>
13721
13722 * fontset.c (BASE_FONTSET_P): Check FONTSET_BASE, not FONTSET_NAME.
13723 (fontset_add): Fix for the case that TO is less than TO1.
13724 (Ffontset_info): Don't use fallback fontset on checking the
13725 default fontset.
13726 (dump_fontset): New function for debugging.
13727
13728 * coding.c (Fdefine_coding_system_internal): Fix for the case that
13729 coding_type is Qcharset.
13730
13731 2008-02-01 Kenichi Handa <handa@m17n.org>
13732
13733 * chartab.c (map_sub_char_table): New argument DEFAULT_VAL.
13734 (map_char_table): Don't inherit the value from the parent on
13735 initializing VAL. Adjust for the above change.
13736
13737 2008-02-01 Kenichi Handa <handa@m17n.org>
13738
13739 * coding.c (Qsignature, Qendian): Delete these variables.
13740 (syms_of_coding): Don't initialize them.
13741 (CATEGORY_MASK_UTF_16_AUTO): New macro.
13742 (detect_coding_utf_16): Add CATEGORY_MASK_UTF_16_AUTO in
13743 detect_info->found.
13744 (decode_coding_utf_16): Don't detect BOM here.
13745 (encode_coding_utf_16): Produce BOM if CODING_UTF_16_BOM (coding)
13746 is NOT utf_16_without_bom.
13747 (setup_coding_system): For a coding system of type utf-16, check
13748 if the attribute :endian is Qbig or not (not nil or not), and set
13749 CODING_REQUIRE_DETECTION_MASK if BOM detection is required.
13750 (detect_coding): If coding type is utf-16 and BOM detection is
13751 required, detect it.
13752 (Fdefine_coding_system_internal): For a coding system of type
13753 utf-16, check if the attribute :endian is Qbig or not (not nil or not).
13754
13755 2008-02-01 Kenichi Handa <handa@m17n.org>
13756
13757 * coding.c (coding_set_source): Fix for the case that the current
13758 buffer is different from coding->src_object.
13759 (decode_coding_object): Don't use the conversion work buffer if
13760 DST_OBJECT is a buffer.
13761
13762 2008-02-01 Dave Love <fx@gnu.org>
13763
13764 * lread.c (read_emacs_mule_char) [len==2]: Index
13765 emacs_mule_charset correctly.
13766
13767 2008-02-01 Dave Love <fx@gnu.org>
13768
13769 * coding.c (Qbig5, Vbig5_coding_system, CATEGORY_MASK_BIG5)
13770 (detect_coding_big5, decode_coding_big5, encode_coding_big5)
13771 (Fdecode_big5_char, Fencode_big5_char): Delete. (Big5 no longer
13772 treated specially.)
13773 (setup_coding_system, coding_category, CATEGORY_MASK_ANY)
13774 (detected_mask): Remove Big5 bits.
13775
13776 2008-02-01 Kenichi Handa <handa@m17n.org>
13777
13778 The following changes are to make the font rescaling facility
13779 compatible with Emacs 21.
13780
13781 * xfaces.c (Vface_font_rescale_alist): Rename from
13782 Vface_resizing_fonts.
13783 (struct font_name): Rename member resizing_ratio to rescale_ratio.
13784 (font_rescale_ratio): Rename from font_resizing_ratio.
13785 (split_font_name): Set font->rescale_ratio.
13786 (better_font_p): Pay attention to font->rescale_ratio.
13787 (build_scalable_font_name): Likewise. Change RESX, and RESY
13788 fields.
13789 (syms_of_xfaces): Declare Vface_font_rescale_alist as a Lisp variable.
13790
13791 2008-02-01 Kenichi Handa <handa@m17n.org>
13792
13793 * coding.c (Qutf_16_be_nosig, Qutf_16_be, Qutf_16_le_nosig)
13794 (Qutf_16_le): Remove these variables.
13795 (syms_of_coding): Don't DEFSYM them.
13796 (decode_coding_utf_16): Fix handling of BOM.
13797 (encode_coding_utf_16): Fix handling of BOM.
13798
13799 2008-02-01 Kenichi Handa <handa@m17n.org>
13800
13801 * fileio.c (Finsert_file_contents): On replacing, before decoding
13802 the file into the work buffer, set point of the work buffer to the end.
13803
13804 2008-02-01 Dave Love <fx@gnu.org>
13805
13806 * coding.c (Fcheck_coding_systems_region): Fix type errors.
13807
13808 2008-02-01 Dave Love <fx@gnu.org>
13809
13810 * xterm.c (XTread_socket): Check Lisp types for Vx_keysym_table
13811 and fix C types.
13812
13813 2008-02-01 Kenichi Handa <handa@m17n.org>
13814
13815 * xdisp.c (SKIP_GLYPHS): New macro.
13816 (set_cursor_from_row): Pay attention to string display properties.
13817
13818 * category.c (copy_category_entry): Fix for the case that RANGE
13819 is an integer.
13820
13821 * xterm.c (x_encode_char): Call ccl_driver with the last arg Qnil.
13822
13823 * w32term.c (w32_encode_char): Call ccl_driver with the last arg Qnil.
13824
13825 2008-02-01 Kenichi Handa <handa@m17n.org>
13826
13827 * charset.c (Fcharset_id_internal): New function.
13828 (syms_of_charset): Defsubr it.
13829
13830 * coding.c (decode_coding_ccl, encode_coding_ccl): Call ccl_driver
13831 with the last arg charset_list acquired from coding.
13832 (Fdefine_coding_system_internal): For ccl-based coding system, fix
13833 the attribute coding_attr_ccl_valids.
13834
13835 * coding.h (enum define_coding_ccl_arg_index): Set the first
13836 member coding_arg_ccl_decoder to coding_arg_max.
13837
13838 * ccl.h (ccl_driver): Adjust prototype.
13839
13840 * ccl.c (CCL_DECODE_CHAR, CCL_ENCODE_CHAR): New macros.
13841 (ccl_driver): New arg CHARSET_LIST. Use the above macros instead
13842 of DECODE_CHAR, ENCODE_CHAR, CHAR_CHARSET.
13843 (Fccl_execute, Fccl_execute_on_string): Call ccl_driver with the
13844 last arg Qnil.
13845
13846 2008-02-01 Kenichi Handa <handa@m17n.org>
13847
13848 * charset.h (ENCODE_CHAR): If the method is SUBSET or SUPERSET,
13849 call encode_char.
13850
13851 * charset.c (encode_char): Fix handling of methods SUBSET and SUPERSET.
13852
13853 2008-02-01 Dave Love <fx@gnu.org>
13854
13855 * composite.c (syms_of_composite): Make composition_hash_table weak.
13856
13857 2008-02-01 Kenichi Handa <handa@m17n.org>
13858
13859 * dispextern.h (check_face_attributes, generate_ascii_font_name)
13860 (font_name_registry): Don't extern them.
13861 (split_font_name_into_vector, build_font_name_from_vector): Extern them.
13862
13863 * fontset.h (Qfontset): Don't extern it.
13864 (new_fontset_from_font_name): Extern it.
13865
13866 * fontset.c: Give 8 extra slots to fontset objects.
13867 (Qfontset_info): New variable.
13868 (syms_of_fontset): Defsym it.
13869 (FONTSET_FALLBACK): New macro.
13870 (fontset_face): Try also the default fontset.
13871 (make_fontset): Realize a fallback fontset from the default fontset.
13872 (generate_ascii_font_name): Move from xfaces.c. Rewritten by
13873 using split_font_name_into_vector and build_font_name_from_vector.
13874 (Fset_fontset_font): Access the elements of font_spec by enum
13875 FONT_SPEC_INDEX. If font_spec is a string, extract the registry
13876 name by using split_font_name_into_vector.
13877 (Fnew_fontset): If no ASCII font is specified in FONTLIST,
13878 generate a proper font name from the fontset name. Update
13879 Vfontset_alias_alist.
13880 (n_auto_fontsets): New variable.
13881 (new_fontset_from_font_name): New function.
13882 (Ffont_info): Store the information about fonts generated from the
13883 default fontset in the first extra slot of the returned char-table.
13884
13885 * xfaces.c (generate_ascii_font_name): Move to fontset.c.
13886 (font_name_registry): Delete function.
13887 (split_font_name_into_vector): New function.
13888 (build_font_name_from_vector): New function.
13889 (font_list): The argument REGISTRY is now a list of registry names.
13890 (choose_face_font): If we are choosing an ASCII font, and ATTRS
13891 specifies an explicit font name, return the name as is. Make a
13892 list of registy names.
13893
13894 * xfns.c (x_set_font, x_create_tip_frame): Adjust for the change
13895 of x_new_fontset.
13896 (Fx_create_frame): Don't call x_new_fontset here. Just use
13897 x_list_fonts to check the existence of fonts.
13898
13899 * xterm.h (x_new_fontset): Adjust prototype.
13900
13901 * xterm.c (x_new_fontset): Change the arg FONTSETNAME to Lisp
13902 string. Use new_fontset_from_font_name to create a fontset from a
13903 font name.
13904
13905 2008-02-01 Kenichi Handa <handa@m17n.org>
13906
13907 * syntax.c (Vfind_word_boundary_function_table): New name for
13908 Vnext_word_boundary_function_table.
13909 (find-word-boundary-function-table): New name for
13910 next-word-boundary-function-table.
13911
13912 2008-02-01 Dave Love <fx@gnu.org>
13913
13914 * Makefile.in: Fix some dependencies.
13915
13916 * keymap.c (Fapropos_internal): Don't gcpro apropos_predicate but
13917 set it to nil before returning.
13918
13919 * composite.c (update_compositions): Fix type error.
13920
13921 * syntax.c (skip_chars, skip_syntaxes): Fix type errors.
13922
13923 2008-02-01 Kenichi Handa <handa@m17n.org>
13924
13925 * xterm.c (x_new_font): Optimize for the case that the font is
13926 already set for the frame.
13927
13928 2008-02-01 Kenichi Handa <handa@m17n.org>
13929
13930 * chartab.c (char_table_ascii): Check if the char table contents
13931 is sub-char-table or not.
13932 (char_table_set, char_table_set_range): Fix argument to
13933 char_table_ascii.
13934
13935 * coding.c (CATEGORY_MASK_RAW_TEXT): New macro.
13936 (detect_coding_utf_8, detect_coding_utf_16)
13937 (detect_coding_emacs_mule, detect_coding_iso_2022)
13938 (detect_coding_sjis, detect_coding_big5)
13939 (detect_coding_ccl, detect_coding_charset): Change argument MASK
13940 to DETECT_INFO. Update DETECT_INFO and return 1 if the byte
13941 sequence is valid in this coding system. Change callers.
13942 (MAX_ANNOTATION_LENGTH): New macro.
13943 (ADD_ANNOTATION_DATA): New macro.
13944 (ADD_COMPOSITION_DATA): Change argument. Change callers. Call
13945 ADD_ANNOTATION_DATA. Change the format of annotation data.
13946 (ADD_CHARSET_DATA): New macro.
13947 (emacs_mule_char): New argument ID. Change callers.
13948 (decode_coding_emacs_mule, decode_coding_iso_2022)
13949 (decode_coding_sjis, decode_coding_big5, decode_coding_charset):
13950 Produce charset annotation data in coding->charbuf.
13951 (encode_coding_emacs_mule, encode_coding_iso_2022): Pay attention
13952 to charset annotation data in coding->charbuf.
13953 (setup_coding_system): Add CODING_ANNOTATE_CHARSET_MASK
13954 coding->common_flags if the coding system is iso-2022 based and
13955 uses designation.
13956 (produce_composition): Adjust for the new annotation data format.
13957 (produce_charset): New function.
13958 (produce_annotation): Handle charset annotation.
13959 (handle_composition_annotation, handle_charset_annotation): New
13960 functions.
13961 (consume_chars): Handle charset annotation. Utilize the above two
13962 functions.
13963 (encode_coding_object): If SRC_OBJECT and DST_OBJECT are the same
13964 buffer, get the deleted text as a string and set
13965 coding->src_object to that string.
13966 (detect_coding, detect_coding_system): Use the new struct
13967 coding_detection_info.
13968
13969 * coding.h (struct coding_detection_info): New structure.
13970 (struct coding_system): Adjust prototype of the member `detector'.
13971 (CODING_ANNOTATE_CHARSET_MASK): New macro.
13972
13973 2008-02-01 Kenichi Handa <handa@m17n.org>
13974
13975 * insdel.c (insert_from_gap): Fix argument to offset_intervals.
13976
13977 2008-02-01 Dave Love <fx@gnu.org>
13978
13979 * keymap.c (apropos_predicate, apropos_accumulate): Declare static.
13980 (Fapropos_internal): Don't gcpro apropos_accumulate. Set result
13981 to new local and nullify apropos_accumulate before returning.
13982 (syms_of_keymap): Staticpro and initialize apropos_accumulate.
13983
13984 2008-02-01 Kenichi Handa <handa@m17n.org>
13985
13986 * charset.c (Fdefine_charset_internal): Setup charset.fast_map
13987 correctly.
13988
13989 2008-02-01 Dave Love <fx@gnu.org>
13990
13991 * fns.c (Flanginfo): Call synchronize_system_time_locale.
13992
13993 2008-02-01 Kenichi Handa <handa@m17n.org>
13994
13995 The following changes are to make character composition happen
13996 automatically on displaying.
13997
13998 * Makefile.in (lisp, shortlisp): Add composite.elc.
13999
14000 * composite.h (Qauto_composed, Vauto_composition_function)
14001 (Qauto_composition_function): Extern them.
14002
14003 * composite.c (Vcomposition_function_table)
14004 (Qcomposition_function_table): Delete variables.
14005 (Qauto_composed, Vauto_composition_function)
14006 (Qauto_composition_function): New variables.
14007 (run_composition_function): Don't call
14008 compose-chars-after-function.
14009 (update_compositions): Clear `auto-composed' text property.
14010 (compose_chars_in_text): Delete this function.
14011 (syms_of_composite): Staticpro Qauto_composed and
14012 Qauto_composition_function. Declare Vauto_composition_function as
14013 a Lisp variable.
14014
14015 * dispextern.h (enum prop_idx): Add member AUTO_COMPOSED_PROP_IDX.
14016
14017 * xdisp.c (it_props): Add an entry for Qauto_composed.
14018 (handle_auto_composed_prop): New function.
14019
14020 * xselect.c (selection_data_to_lisp_data): Don't call
14021 compose_chars_in_text.
14022
14023 2008-02-01 Dave Love <fx@gnu.org>
14024
14025 * keyboard.c (read_char): Modify checking around use of
14026 Vkeyboard_translate_table.
14027
14028 * xterm.c (XTread_socket): Check Lisp types for Vx_keysym_table
14029 and fix C types.
14030
14031 2008-02-01 Kenichi Handa <handa@m17n.org>
14032
14033 * coding.c (decode_coding_utf_8, decode_coding_emacs_mule)
14034 (decode_coding_iso_2022, decode_coding_sjis, decode_coding_big5)
14035 (decode_coding_charset, produce_chars): When eol_type is Qdos, handle
14036 the case that the last byte is '\r' correctly.
14037 (decode_coding): Flush out the unprocessed data correctly.
14038 (decode_coding_gap): Set CODING_MODE_LAST_BLOCK bit of coding->mode.
14039
14040 2008-02-01 Dave Love <fx@gnu.org>
14041
14042 * xterm.c (XTread_socket): Fix changes for defined keysyms.
14043 Add XK_ISO... case.
14044 (xaw_scroll_callback): Revert last change.
14045
14046 2008-02-01 Kenichi Handa <handa@m17n.org>
14047
14048 * charset.c (Fset_charset_priority): Update Viso_2022_charset_list.
14049
14050 2008-02-01 Kenichi Handa <handa@m17n.org>
14051
14052 * xfaces.c (Vface_resizing_fonts): New variable.
14053 (struct font_name): New member `resizing_ratio'.
14054 (font_resizing_ratio): New function.
14055 (split_font_name): Set font->resizing_ratio.
14056 (better_font_p): Pay attention to font->resizing_ratio.
14057 (build_scalable_font_name): Likewise. Don't change POINT_SIZE,
14058 RESX, and RESY fields.
14059 (try_alternative_families): Try scalable fonts if
14060 Vscalable_fonts_allowed is not Qt.
14061 (syms_of_xfaces): Declare Vface_resizing_fonts as a Lisp variable.
14062
14063 2008-02-01 Dave Love <fx@gnu.org>
14064
14065 * xterm.c (xaw_scroll_callback): Cast correctly.
14066
14067 2008-02-01 Dave Love <fx@gnu.org>
14068
14069 * keyboard.c (lispy_accent_codes, lispy_accent_keys): Extend.
14070 (lispy_kana_keys): Comment out.
14071 (make_lispy_event) [XK_kana_A]: Comment out.
14072
14073 * xterm.c (xaw_scroll_callback): Cast call_data.
14074 (XTread_socket): Deal with ASCII keysyms.
14075 (syms_of_xterm) <Vx_keysym_table>: Fix args of make_hash_table.
14076
14077 2008-02-01 Dave Love <fx@gnu.org>
14078
14079 * xterm.c (Vx_keysym_table): New.
14080 (syms_of_xterm): Initialize it.
14081 (XTread_socket): Use it.
14082 From head: Eliminate incorrect optimization that tried to avoid
14083 decoding the output of X*LookupString.
14084 (x_get_font_repertory): Delete charset declaration.
14085
14086 2008-02-01 Kenichi Handa <handa@m17n.org>
14087
14088 * coding.c (detect_coding_charset): If only ASCII bytes are found,
14089 return 0.
14090 (Fdefine_coding_system_internal): Setup
14091 CODING_ATTR_ASCII_COMPAT (attrs) correctly.
14092
14093 2008-02-01 Dave Love <fx@gnu.org>
14094
14095 * coding.c (Fcheck_coding_system): Doc fix.
14096
14097 * editfns.c (Finsert_byte): Return a proper value.
14098
14099 2008-02-01 Kenichi Handa <handa@m17n.org>
14100
14101 * coding.c (decode_coding): Fix args to translate_chars. Pay
14102 attention to Vstandard_translation_table_for_decode.
14103 (encode_coding): Fix args to translate_chars. Pay attention to
14104 Vstandard_translation_table_for_encode.
14105
14106 * data.c (Faset): Check NEWELT by ASCII_CHAR_P, not by
14107 SINGLE_BYTE_CHAR_P.
14108
14109 * editfns.c (general_insert_function): Check VAL by ASCII_CHAR_P,
14110 not by SINGLE_BYTE_CHAR_P.
14111
14112 * fns.c (concat): Check CH by ASCII_CHAR_P, not by
14113 SINGLE_BYTE_CHAR_P.
14114
14115 * insdel.c (copy_text): Check C by ASCII_CHAR_P, not by
14116 SINGLE_BYTE_CHAR_P.
14117
14118 * keymap.c (Ftext_char_description): Check C by ASCII_CHAR_P, not
14119 by SINGLE_BYTE_CHAR_P.
14120
14121 * search.c (Freplace_match): Check C by ASCII_CHAR_P, not by
14122 SINGLE_BYTE_CHAR_P.
14123
14124 2008-02-01 Dave Love <fx@gnu.org>
14125
14126 * fns.c (Fstring_as_multibyte, Fstring_to_multibyte): Doc fix.
14127
14128 2008-02-01 Dave Love <fx@gnu.org>
14129
14130 * fns.c (Flanginfo): Fix typo.
14131
14132 * unexelf.c (unexec): Make last change conditional on Irix 6.5.
14133
14134 2008-02-01 Kenichi Handa <handa@m17n.org>
14135
14136 * coding.c (detect_coding_utf_8, detect_coding_utf_16)
14137 (detect_coding_emacs_mule, detect_coding_iso_2022)
14138 (detect_coding_sjis, detect_coding_big5, detect_coding_ccl): Check
14139 incomplete byte sequence. Don't update *mask when correctly detected.
14140 (decode_coding_sjis): Fix decoding of katakana-jisx0201.
14141 (detect_eol): Delete the argument CODING, and add the argument CATEGORY.
14142 (detect_coding, detect_coding_system): Adjust for the changes above.
14143
14144 2008-02-01 Kenichi Handa <handa@m17n.org>
14145
14146 * character.c (char_string): Rename from
14147 char_string_with_unification. Pay attention to CHAR_MODIFIER_MASK.
14148 (string_char): Rename from string_char.
14149
14150 * character.h (CHAR_STRING, CHAR_STRING_ADVANCE): Call char_string
14151 if C is greater than MAX_3_BYTE_CHAR.
14152 (STRING_CHAR, STRING_CHAR_AND_LENGTH, STRING_CHAR_ADVANCE): Call
14153 string_char instead of string_char_with_unification.
14154
14155 2008-02-01 Dave Love <fx@gnu.org>
14156
14157 * coding.c (decode_coding_utf_8): Treat surrogates as invalid.
14158
14159 2008-02-01 Kenichi Handa <handa@m17n.org>
14160
14161 * keymap.c (push_key_description): Pay attention to force_multibyte.
14162
14163 * regex.c (re_search_2): Fix for the case of unibyte buffer.
14164
14165 2008-02-01 Dave Love <fx@gnu.org>
14166
14167 * charset.c (define_charset_internal): Rename `supprementary'.
14168
14169 * Makefile.in (lisp, shortlisp): Remove latin-N.
14170
14171 2008-02-01 Dave Love <fx@gnu.org>
14172
14173 * xfns.c (x_window, x_window): Use use_xim.
14174
14175 * xterm.c (use_xim): Initialize.
14176 (xim_open_dpy, xim_initialize, xim_close_dpy): Use use_xim.
14177 (x_term_init): Maybe set use_xim.
14178
14179 * xterm.h (use_xim) [HAVE_X_I18N]: Declare.
14180
14181 2008-02-01 Kenichi Handa <handa@m17n.org>
14182
14183 * search.c (search_buffer): Fix case-fold-search of multibyte
14184 characters.
14185 (boyer_moore): Rename the last argument to char_high_bits.
14186
14187 2008-02-01 Kenichi Handa <handa@m17n.org>
14188
14189 * xdisp.c (display_string): Fix for the case of zero width glyph.
14190
14191 * xfns.c (x_set_font): Change the error message of the case that
14192 x_new_fontset returns Qt.
14193
14194 * xfaces.c (set_lface_from_font_name): Reject the default fontset.
14195 (Finternal_set_lisp_face_attribute): Use signal_error for the
14196 error of invalid fontset.
14197
14198 * xterm.c (x_new_fontset): If FONTSETNAME specifies the default
14199 fontset, return Qt.
14200
14201 2008-02-01 Dave Love <fx@gnu.org>
14202
14203 * unexelf.c (unexec): Make .got handling not SGI-specific.
14204
14205 * syntax.c (syms_of_syntax) <multibyte-syntax-as-symbol>: Doc fix.
14206
14207 * regex.c: Use `ifdef HAVE_ALLOCA_H', not `if HAVE_ALLOCA_H'.
14208
14209 * keyboard.c (read_key_sequence): Fix type error.
14210
14211 * buffer.c (Fset_buffer_multibyte, Fset_buffer_multibyte): Fix
14212 type error.
14213
14214 * fontset.c (fontset_add): Return Lisp_Object.
14215
14216 2008-02-01 Dave Love <fx@gnu.org>
14217
14218 * charset.h (charset_ordered_list_tick): Declare extern.
14219
14220 2008-02-01 Kenichi Handa <handa@m17n.org>
14221
14222 The following changes (and some of 2008-02-01 changes of mine) are
14223 for handling syntax, category, and case conversion for unibyte
14224 characters by converting them to multibyte on the fly. With these
14225 changes, we don't have to setup syntax and case tables for unibyte
14226 characters in each language environment.
14227
14228 * abbrev.c (Fexpand_abbrev): Convert a unibyte character to
14229 multibyte if necessary.
14230
14231 * bytecode.c (Fbyte_code): Likewise.
14232
14233 * character.h (LEADING_CODE_LATIN_1_MIN)
14234 (LEADING_CODE_LATIN_1_MAX): New macros.
14235 (unibyte_to_multibyte_table): Extern it.
14236 (unibyte_char_to_multibyte): New macro.
14237 (MAKE_CHAR_MULTIBYTE): Use unibyte_to_multibyte_table.
14238 (CHAR_LEADING_CODE): New macro.
14239 (FETCH_STRING_CHAR_AS_MULTIBYTE_ADVANCE): New macro.
14240
14241 * character.c (unibyte_to_multibyte_table): New variable.
14242 (unibyte_char_to_multibyte): Move to character.h and define as macro.
14243 (multibyte_char_to_unibyte): If C is an eight-bit character,
14244 convert it to the corresponding byte value.
14245
14246 * charset.c (Fset_unibyte_charset): If the dimension of CHARSET is
14247 not 1, signals an error. Update the elements of
14248 unibyte_to_multibyte_table.
14249 (init_charset_once): Initialize unibyte_to_multibyte_table.
14250 (syms_of_charset): Define the charset `iso-8859-1'.
14251
14252 * cmds.c (internal_self_insert): In a multibyte buffer, insert C
14253 as is without converting it to unibyte. In a unibyte buffer,
14254 convert C to multibyte before checking the syntax.
14255
14256 * lisp.h (unibyte_char_to_multibyte): Delete extern.
14257
14258 * minibuf.c (Fminibuffer_complete_word): Use the macro
14259 FETCH_STRING_CHAR_AS_MULTIBYTE_ADVANCE.
14260
14261 * regex.h (struct re_pattern_buffer): New member target_multibyte.
14262
14263 * regex.c (RE_TARGET_MULTIBYTE_P): New macro.
14264 (GET_CHAR_BEFORE_2): Check target_multibyte, not multibyte. If
14265 that is zero, convert an eight-bit char to multibyte.
14266 (MAKE_CHAR_MULTIBYTE, CHAR_LEADING_CODE): New dummy new macros for
14267 non-emacs case.
14268 (PATFETCH): Convert an eight-bit char to multibyte.
14269 (HANDLE_UNIBYTE_RANGE): New macro.
14270 (regex_compile): Setup the compiled pattern for multibyte chars
14271 even if the given regex string is unibyte. Use PATFETCH_RAW
14272 instead of PATFETCH in many places. To handle `charset'
14273 specification of unibyte, call HANDLE_UNIBYTE_RANGE. Use bitmap
14274 only for ASCII chars.
14275 (analyse_first) <exactn>: Simplify because the compiled pattern
14276 is multibyte.
14277 <charset_not>: Setup fastmap from bitmap only for ASCII chars.
14278 <charset>: Use CHAR_LEADING_CODE to get leading codes.
14279 <categoryspec>: If multibyte, setup fastmap only for ASCII chars here.
14280 (re_compile_fastmap) [emacs]: Call analyse_first with the arg
14281 multibyte always 1.
14282 (re_search_2): In emacs, set the locale variable multibyte to 1,
14283 otherwise to 0. New local variable target_multibyte. Check it
14284 to decide the multibyteness of STR1 and STR2. If
14285 target_multibyte is zero, convert unibyte chars to multibyte
14286 before translating and checking fastmap.
14287 (TARGET_CHAR_AND_LENGTH): New macro.
14288 (re_match_2_internal): In emacs, set the locale variable multibyte
14289 to 1, otherwise to 0. New local variable target_multibyte. Check
14290 it to decide the multibyteness of STR1 and STR2. Use
14291 TARGET_CHAR_AND_LENGTH to fetch a character from D.
14292 <charset, charset_not>: If multibyte is nonzero, check fastmap
14293 only for ASCII chars. Call bcmp_translate with
14294 target_multibyte, not with multibyte.
14295 <begline>: Declare the local variable C as `unsigned'.
14296 (bcmp_translate): Change the last arg name to target_multibyte.
14297
14298 * search.c (compile_pattern_1): Don't adjust the multibyteness of
14299 the regexp pattern and the matching target. Set cp->buf.multibyte
14300 to the multibyteness of the regexp pattern. Set
14301 cp->but.target_multibyte to the multibyteness of the matching target.
14302 (wordify): Use FETCH_STRING_CHAR_AS_MULTIBYTE_ADVANCE instead of
14303 FETCH_STRING_CHAR_ADVANCE.
14304 (Freplace_match): Convert unibyte chars to multibyte.
14305
14306 * syntax.c (char_quoted, back_comment, scan_words)
14307 (Fforward_comment, scan_lists, Fbackward_prefix_chars)
14308 (scan_sexps_forward): Use FETCH_CHAR_AS_MULTIBYTE to convert
14309 unibyte chars to multibyte.
14310 (skip_chars): Delete the arg syntaxp, and move the code for
14311 handling syntaxes to skip_syntaxes. Change callers.
14312 Fix the case that the multibyteness of STRING and the current
14313 buffer doesn't match.
14314 (skip_syntaxes): New function.
14315 (SYNTAX_WITH_MULTIBYTE_CHECK): Check C by ASCII_CHAR_P, not by
14316 SINGLE_BYTE_CHAR_P.
14317
14318 2008-02-01 Kenichi Handa <handa@m17n.org>
14319
14320 * xfaces.c (QCfontset): New variable.
14321 (LFACE_FONTSET): New macro.
14322 (check_lface_attrs): Check also LFACE_FONTSET_INDEX.
14323 (set_lface_from_font_name): Setup LFACE_FONTSET (lface).
14324 (Finternal_set_lisp_face_attribute)
14325 (Finternal_get_lisp_face_attribute): Handle QCfontset.
14326 (lface_same_font_attributes_p): Fix checking of LFACE_FONT_INDEX,
14327 check also LFACE_FONTSET_INDEX.
14328 (face_fontset): Check attrs[LFACE_FONTSET_INDEX], not
14329 attrs[LFACE_FONT_INDEX].
14330 (syms_of_xfaces): Intern and staticpro QCfontset.
14331
14332 * dispextern.h (enum lface_attribute_index): New member
14333 LFACE_FONTSET_INDEX.
14334
14335 * fns.c (base64_encode_1): Handle eight-bit chars correctly.
14336
14337 2008-02-01 Kenichi Handa <handa@m17n.org>
14338
14339 * coding.c (coding_set_destination): Fix coding->destination for
14340 the case converting a region.
14341 (encode_coding_utf_8): Encode eight-bit chars as single byte.
14342 (encode_coding_object): Fix coding->dst_pos and
14343 coding->dst_pos_byte for the case converting a region.
14344
14345 * insdel.c (insert_from_gap): Make it work even if PT != GTP.
14346
14347 * character.h (BYTE8_STRING): New macro.
14348
14349 * fns.c (base64_decode_1): Insert eight-bit chars correctly.
14350
14351 2008-02-01 Kenichi Handa <handa@m17n.org>
14352
14353 * xdisp.c (get_next_display_element): Don't display unibyte 8-bit
14354 characters by octal form.
14355
14356 * abbrev.c (Fexpand_abbrev): Fix for the multibyte case.
14357
14358 * buffer.h (_fetch_multibyte_char_len): Delete extern.
14359 (FETCH_MULTIBYTE_CHAR, BUF_FETCH_MULTIBYTE_CHAR): Don't use
14360 _fetch_multibyte_char_len.
14361 (FETCH_CHAR_AS_MULTIBYTE): New macro.
14362
14363 * casetab.c (set_canon, set_identity, shuffle): Simplify.
14364
14365 * casefiddle.c (casify_object): Simplify. Handle the case that
14366 the case conversion change the byte length.
14367 (casify_region): Likewise.
14368
14369 * character.h (MAKE_CHAR_UNIBYTE, MAKE_CHAR_MULTIBYTE): New macros.
14370
14371 * character.c (_fetch_multibyte_char_len): Delete this variable.
14372 (syms_of_character): Setup Vprintable_chars.
14373
14374 * editfns.c (Fchar_equal): Fix for the unibyte case.
14375 (Finsert_byte): New function.
14376 (syms_of_editfns): Defsubr it.
14377
14378 * keyboard.c (read_key_sequence): Use ~CHAR_MODIFIER_MASK instead
14379 of direct code 0x3ffff.
14380
14381 * search.c (Freplace_match): Fix for the unibyte case.
14382
14383 2008-02-01 Kenichi Handa <handa@m17n.org>
14384
14385 * lread.c (safe_to_load_p): Fix the logic.
14386
14387 * syntax.c (scan_words): Don't treat characters belonging to
14388 different scripts as constituting a word.
14389
14390 * editfns.c (Fformat): Use ASCII_CHAR_P, not SINGLE_BYTE_CHAR_P.
14391
14392 * fontset.c (Fset_fontset_font): Treat `ascii' as charset, not script.
14393
14394 * emacs.c (main): In the case of --unibyte, instead of aborting on
14395 finding non-empty buffer, make it unibyte.
14396
14397 2008-02-01 Kenichi Handa <handa@m17n.org>
14398
14399 * xterm.c (x_new_fontset): Call `create-fontset-from-ascii-font'
14400 to create a fontset.
14401
14402 2008-02-01 Dave Love <fx@gnu.org>
14403
14404 * character.c (Funibyte_char_to_multibyte): Doc fix.
14405
14406 * xfns.c [HAVE_STDLIB_H]: Fix last change.
14407
14408 2008-02-01 Kenichi Handa <handa@m17n.org>
14409
14410 * fontset.c (fontset_add): Make the type `int'.
14411 (fontset_id_valid_p): Define it if FONTSET_DEBUG is defined.
14412
14413 * character.c (unibyte_char_to_multibyte)
14414 (multibyte_char_to_unibyte, Funibyte_char_to_multibyte): Refer to
14415 charset_unibyte, not charset_primary.
14416
14417 * charset.h (charset_unibyte): Extern it instead of charset_primary.
14418
14419 * charset.c (charset_unibyte): Rename from charset_primary.
14420 (Funibyte_charset): Rename from Fprimary_charset.
14421 (Fset_unibyte_charset): Rename from Fset_primary_charset.
14422 (syms_of_charset): Adjust for the above changes.
14423
14424 * w32term.c (x_produce_glyphs): Use ASCII_CHAR_P, not
14425 SINGLE_BYTE_CHAR_P. Fix the logic of handling non-ASCII char when
14426 it->multibyte_p is zero.
14427
14428 * lisp.h (nonascii_insert_offset, Vnonascii_translation_table):
14429 Delete extern.
14430
14431 2008-02-01 Kenichi Handa <handa@m17n.org>
14432
14433 * coding.c (Fdefine_coding_system_internal): Fix category setting
14434 for a coding system of type iso-2022.
14435
14436 2008-02-01 Kenichi Handa <handa@m17n.org>
14437
14438 * fontset.h (FS_LOAD_FONT): Call fs_load_font with the arg CHARSET -1.
14439
14440 2008-02-01 Kenichi Handa <handa@m17n.org>
14441
14442 * syntax.c (Vnext_word_boundary_function_table): New variable.
14443 (next-word-boundary-function-table): Declare it as a Lisp variable
14444 in syms_of_syntax.
14445 (scan_words): Call functions in Vnext_word_boundary_function_table
14446 if any.
14447
14448 * xterm.c (x_load_font): Initialize fontp->fontset to -1.
14449
14450 * fontset.c (fs_load_font): If fontp->charset is not negative,
14451 return fontp without setting its members.
14452
14453 2008-02-01 Dave Love <fx@gnu.org>
14454
14455 * xfns.c [HAVE_STDLIB_H]: Change logic (instead of fixing typo).
14456
14457 * m/sparc.h (HAVE_ALLOCA): Delete.
14458
14459 * s/irix6-5.h: Don't include strings.h.
14460 (bcopy, bzero, bcmp): Don't undef.
14461
14462 * s/irix6-0.h (bcopy, bzero, bcmp): Don't undef.
14463
14464 * s/usg5-4.h (NO_SIOCTL_H): Don't define.
14465 (TIOCSIGSEND): Don't test IRIX6.
14466 (bcopy, bzero, bcmp): Define conditionally.
14467
14468 2008-02-01 Kenichi Handa <handa@m17n.org>
14469
14470 * buffer.c (Qas, Qmake, Qto): New variables.
14471 (Fset_buffer_multibyte): New optional arg METHOD. Change caller.
14472 (syms_of_buffer): Intern and staticpro Qas, Qmake, and Qto.
14473
14474 * callproc.c (Fcall_process): Don't call insert_1_both directly if
14475 we are inserting a process output into a multibyte buffer.
14476
14477 * character.h (CHAR_TO_BYTE8): If C is not eight-bit char, call
14478 multibyte_char_to_unibyte.
14479
14480 * character.c (Funibyte_char_to_multibyte): If C can't be decoded
14481 by the primary charset, make it eight-bit char.
14482 (Fmultibyte_char_to_unibyte): Call CHAR_TO_BYTE8.
14483
14484 * charset.c (charset_eight_bit, Qeight_bit_control): New variables.
14485 (charset_8_bit__control, charset_8_bit_graphic)
14486 (Qeight_bit_control, Qeight_bit_graphic): Delete these variables.
14487 (define_charset_internal): New function.
14488 (syms_of_charset): Call define_charset_internal for pre-defined
14489 charsets.
14490
14491 * charset.h (charset_8_bit): Extern it.
14492
14493 * coding.c (make_conversion_work_buffer): Adjust for the change
14494 of Fset_buffer_multibyte.
14495 (encode_coding_raw_text): Increment p0 in the loop.
14496
14497 * lisp.h (Fset_buffer_multibyte): Adjust prototype.
14498
14499 * xdisp.c (setup_echo_area_for_printing, set_message_1): Adjust
14500 for the change of Fset_buffer_multibyte.
14501
14502 * fns.c (Fstring_to_multibyte): New function.
14503 (syms_of_fns): Declare Fstring_to_multibyte as Lisp subroutine.
14504
14505 2008-02-01 Dave Love <fx@gnu.org>
14506
14507 * xfns.c (x_put_x_image): Declare args.
14508
14509 * xfaces.c (font_name_registry, choose_face_font): Delete unused vars.
14510 (try_font_list): Declare an arg.
14511
14512 * xdisp.c (message2_nolog, set_message): Declare an arg.
14513
14514 * terminfo.c (tparam): Declare an arg. Use P_ to declare tparm.
14515
14516 * syntax.c (scan_sexps_forward): Declare an arg.
14517
14518 * scroll.c (calculate_scrolling, calculate_direct_scrolling):
14519 Declare an arg.
14520
14521 * lisp.h (Fnew_fontset): Declare.
14522
14523 * keymap.c (push_key_description): Call CHARACTERP correctly.
14524
14525 * fontset.c (fontset_add): Declare args. Call make_number correctly.
14526 (face_for_char): Delete unused vars.
14527 (Fset_fontset_font): Doc fix. Delete unused vars.
14528
14529 * doc.c (Fsubstitute_command_keys): Delete unused vars.
14530
14531 * composite.c (update_compositions): Declare arg.
14532
14533 * cm.c (calccost, cmgoto): Declare args.
14534
14535 * charset.c: Remove `emacs' conditional. Doc fixes.
14536 (map_char_table_for_charset): Declare.
14537
14538 * character.c (syms_of_character) <translation-table-vector>: Doc fix.
14539
14540 * ccl.c: Remove `emacs' conditional.
14541
14542 2008-02-01 Kenichi Handa <handa@m17n.org>
14543
14544 The following changes are to allow specifying multiple font
14545 patterns for a character range (specified by script or charset).
14546
14547 * Makefile.in (abbrev.o): Depend on syntax.h.
14548 (xfaces.o): Depend on charset.h.
14549
14550 * alloc.c (Fmake_string): Use ASCII_CHAR_P, not
14551 SINGLE_BYTE_CHAR_P.
14552
14553 * ccl.c (Fccl_execute_on_string): Add `const' to local variables.
14554
14555 * character.h (Vchar_script_table): Extern it.
14556
14557 * character.c (Vscript_alist): Delete.
14558 (Vchar_script_table, Qchar_script_table): New variable.
14559 (syms_of_character): Declare Vchar_script_table as a lisp variable
14560 and initialize it.
14561
14562 * chartab.c (Fmake_char_table): Doc fix. If PURPOSE doesn't
14563 have property char-table-extra-slots, make no extra slot.
14564
14565 * dispextern.h (struct face): Delete member `charset'.
14566 (FACE_SUITABLE_FOR_CHAR_P, FACE_FOR): Use ASCII_CHAR_P, not
14567 SINGLE_BYTE_CHAR_P.
14568 (choose_face_font, lookup_non_ascii_face, font_name_registry):
14569 Add prototypes.
14570 (lookup_face, lookup_named_face, lookup_derived_face): Fix prototype.
14571 (generate_ascii_font_name): Rename from generate_ascii_font.
14572
14573 * fontset.h (get_font_repertory_func): New prototype.
14574 (make_fontset_for_ascii_face, fs_load_font): Fix prototypes.
14575 (FS_LOAD_FONT): Call fs_load_font with the 3rd arg charset_ascii.
14576
14577 * fontset.c (Qprepend, Qappend): New variables.
14578 (FONTSET_CHARSET_ALIST, FONTSET_FACE_ALIST): Delete.
14579 (FONTSET_NOFONT_FACE, FONTSET_REPERTORY): New macros.
14580 (FONTSET_REF): Optimize if FONTSET is Vdefault_fontset.
14581 (FONTSET_REF_AND_RANGE, FONTSET_ADD): New macros.
14582 (fontset_ref_and_range, fontset_add, reorder_font_vector)
14583 (load_font_get_repertory): New functions.
14584 (fontset_set): Delete.
14585 (fontset_face): New arg FACE. Return face ID, not face.
14586 Complete re-write to handle new fontset structure. Change caller.
14587 (free_face_fontset): Use ASET istead of AREF (X) = Y.
14588 (face_for_char): Don't call lookup_face.
14589 (make_fontset_for_ascii_face): New arg FACE.
14590 (fs_load_font): New arg CHARSET_ID. Don't check
14591 Vfont_encoding_alist here.
14592 (find_font_encoding): New function.
14593 (list_fontsets): Use STRINGP, not ! NILP.
14594 (accumulate_script_ranges): New function.
14595 (Fset_fontset_font, Fnew_fontset, Ffontset_info): Completely
14596 re-written to handle new fontset structure.
14597 (Ffontset_font): Return a copy of element.
14598 (syms_of_fontset): Define symbols Qprepend and Qappend. Fix
14599 docstring of font-encoding-alist.
14600
14601 * lisp.h (CHAR_TABLE_REF): Remove unnecessary check (IDX >= 0).
14602 (Fset_fotset_font): Fix arguments to 5.
14603
14604 * msdos.c (XMenuActivate): Adjust for the change of lookup_derived_face.
14605
14606 * xdisp.c (message_dolog, set_message_1, extend_face_to_end_of_line):
14607 Use ASCII_CHAR_P, not SINGLE_BYTE_CHAR_P.
14608 (highlight_trailing_whitespace): Adjust for the change of
14609 lookup_named_face.
14610
14611 * xfaces.c: Include charset.h.
14612 (load_face_font): Delete argument C. Change caller.
14613 (generate_ascii_font_name): Rename from generate_ascii_font.
14614 (font_name_registry): New function.
14615 (cache_face): Store ascii faces before non-ascii faces in buckets.
14616 (lookup_face): Delete arguments C and BASE_FACE. Change caller.
14617 Lookup only ascii faces.
14618 (lookup_non_ascii_face): New function.
14619 (lookup_named_face): Delete argument C. Change caller.
14620 (lookup_derived_face): Delete argument C. Change caller.
14621 (try_font_list): New arg PATTERN. Change caller. If PATTERN is
14622 a string, just call font_list with it.
14623 (choose_face_font): Delete arguments FACE and C. New arg
14624 FONT_SPEC. Change caller.
14625 (realize_face, realize_x_face): Delete arguments C and BASE_FACE.
14626 Change caller.
14627 (realize_non_ascii_face): New function.
14628 (realize_x_face): Call load_face_font here.
14629 (realize_tty_face): Delete argument C. Change caller.
14630 (compute_char_face): If CH is not ascii, call FACE_FOR_CHAR to
14631 get a face ID.
14632 (dump_realized_face): Don't print charset of FACE.
14633
14634 * xfns.c (x_set_font): Always call x_new_fontset and
14635 store_frame_parameter.
14636 (Fx_create_frame): Call x_new_fontset, not x_new_font.
14637 (syms_of_xfns): Set get_font_repertory_func to x_get_font_repertory.
14638
14639 * xterm.h (x_get_font_repertory): Extern it.
14640
14641 * xterm.c (x_produce_glyphs): Use ASCII_CHAR_P, not
14642 SINGLE_BYTE_CHAR_P. Fix the logic of handling non-ASCII char when
14643 it->multibyte_p is zero.
14644 (XTread_socket): Use ASCII_CHAR_P, not SINGLE_BYTE_CHAR_P.
14645 (x_new_fontset): If FONTSETNAME doesn't match any existing
14646 fontsets, create a new one.
14647 (x_get_font_repertory): New function.
14648
14649 2008-02-01 Kenichi Handa <handa@m17n.org>
14650
14651 * coding.c (Ffind_coding_systems_region_internal): Detect an
14652 ASCII only string correctly.
14653
14654 * lread.c (Fload): Don't load with Qload_force_doc_strings t if
14655 version is 0.
14656
14657 2008-02-01 Kenichi Handa <handa@m17n.org>
14658
14659 * lread.c: Include "coding.h".
14660 (Qget_emacs_mule_file_char, Qload_force_doc_strings)
14661 (load_each_byte, unread_char): New variables.
14662 (readchar_backlog): Delete.
14663 (readchar): Return a character unless load_each_byte is nonzero.
14664 Handle the case that readcharfun is Qget_emacs_mule_file_char or a
14665 cons. If unread_char is not -1, simply return it.
14666 (unreadchar): Handle the case that readcharfun is
14667 Qget_emacs_mule_file_char or a cons. Set unread_char if necessary.
14668 (read_multibyte): Delete.
14669 (readbyte_for_lambda, readbyte_from_file, readbyte_from_string)
14670 (read_emacs_mule_char): New functions.
14671 (Fload): Even if the file doesn't have the extension ".elc", if
14672 safe_to_load_p returns a positive version number, assume that the
14673 file contains bytecompiled code. If the version is less than 22,
14674 load the file while decoding multibyte sequences by emacs-mule.
14675 (readevalloop): Don't use readchar_backlog.
14676 (Fread): Likewise. Pay attention to the case that STREAM is a cons.
14677 (Fread_from_string): Pay attention to the case that STREAM is a cons.
14678 (read_escape): Delete the arg BYTEREP.
14679 (read1): Set load_each_byte to 1 temporarily while handling
14680 #@NUMBER. Don't call read_multibyte.
14681 (read_vector): Call Fread with a cons. If readcharfun is
14682 Qget_emacs_mule_file_char, decode the read string by emacs-mule.
14683 (read_list): If doc_reference is 2, make the cdr part string as unibyte.
14684 (syms_of_lread): Intern and staticpro Qget_emacs_mule_file_char
14685 and Qload_force_doc_strings.
14686
14687 2008-02-01 Kenichi Handa <handa@m17n.org>
14688
14689 * xdisp.c (face_before_or_after_it_pos): Call
14690 FETCH_MULTIBYTE_CHAR with byte postion, not char position.
14691
14692 2008-02-01 Kenichi Handa <handa@m17n.org>
14693
14694 * character.h (TRAILING_CODE_P): New macro.
14695 (MAYBE_UNIFY_CHAR): Adjust for the change of Funify_charset.
14696 (string_char_with_unification): Fix prototype.
14697 (Vscript_alist): Extern it.
14698
14699 * character.c (Vscript_alist): New variable.
14700 (string_char_with_unification, str_as_unibyte)
14701 (string_escape_byte8): Add `const' to local variables.
14702 (syms_of_character): Declare script-alist as a Lisp variable.
14703
14704 * charset.h (Vcharset_ordered_list): Extern it.
14705 (charset_ordered_list_tick): Extern it.
14706 (EMACS_MULE_LEADING_CODE_PRIVATE_11)
14707 (EMACS_MULE_LEADING_CODE_PRIVATE_12)
14708 (EMACS_MULE_LEADING_CODE_PRIVATE_21)
14709 (EMACS_MULE_LEADING_CODE_PRIVATE_22): New macros.
14710 (Funify_charset): Adjust for the change of Funify_charset.
14711
14712 * charset.c (charset_ordered_list_tick): New variable.
14713 (Fdefine_charset_internal): Increment charset_ordered_list_tick.
14714 (Funify_charset): New optional arg DEUNIFY. If it is non-nil,
14715 deunify intead of unify a charset.
14716 (string_xstring_p): Add `const' to local variables.
14717 (find_charsets_in_text): Add `const' to arguments and local variables.
14718 (encode_char): Adjust for the change of Funify_charset. Fix
14719 detecting of invalid code.
14720 (Fset_charset_priority): Increment charset_ordered_list_tick.
14721 (Fmap_charset_chars): Fix handling of default value for FROM_CODE
14722 and TO_CODE.
14723
14724 * coding.c (LEADING_CODE_PRIVATE_11, LEADING_CODE_PRIVATE_12)
14725 (LEADING_CODE_PRIVATE_21, LEADING_CODE_PRIVATE_22): Delete macros.
14726 Changed callers to use EMACS_MULE_LEADING_CODE_PRIVATE_11, etc.
14727 (decode_coding_ccl, consume_chars)
14728 (Ffind_coding_systems_region_internal)
14729 (Fcheck_coding_systems_region): Add `const' to local variables.
14730
14731 * print.c (print_object): Use octal form for printing the
14732 contents of a bool vector.
14733
14734 2008-02-01 Dave Love <fx@gnu.org>
14735
14736 * lread.c (Fload) <!load_dangerous_libraries>: Don't leak fd.
14737 <version == 20>: Refuse to load.
14738
14739 2008-02-01 Dave Love <fx@gnu.org>
14740
14741 * fns.c: Move coding.h.
14742 (Qcodeset, Qdays, Qmonths): New.
14743 (concat): Use CHARACTERP instead of INTEGERP.
14744 (Flocale_codeset): Delete.
14745 (Flanginfo): New function.
14746 (syms_of_fns): Change accordingly.
14747
14748 * coding.c (adjust_coding_eol_type): Fix eol_type/eol_seen mixup.
14749
14750 2008-02-01 Dave Love <fx@gnu.org>
14751
14752 * casetab.c (init_casetab_once, init_casetab_once): Fix
14753 CHAR_TABLE_SET call.
14754
14755 * category.c (Fmodify_category_entry): Fix CATEGORY_MEMBER call.
14756
14757 * character.c (syms_of_character): Fix CHAR_TABLE_SET call.
14758
14759 * charset.c (Fmap_charset_chars): Check args. Convert Lisp types.
14760 (load_charset_map, Fdeclare_equiv_charset, Fencode_char)
14761 (Fset_charset_priority, syms_of_charset): Convert Lisp types.
14762
14763 * charset.h (CHECK_CHARSET_GET_ID): Use XINT on AREF result.
14764
14765 * coding.c (ENCODE_DESIGNATION, decode_eol)
14766 (make_conversion_work_buffer, code_conversion_restore)
14767 (Fdefine_coding_system_internal): Convert Lisp types.
14768 (code_conversion_restore): Use EQ, not ==.
14769 (Fencode_coding_string): Fix code_convert_string call.
14770
14771 * coding.h (code_convert_region): Fix prototype.
14772
14773 * dispextern.h (redraw_frame, redraw_garbaged_frames): Remove.
14774
14775 * fontset.c (fontset_ref, fontset_set, fs_load_font)
14776 (Ffontset_info): Convert Lisp types.
14777
14778 * syntax.h (SYNTAX_ENTRY_INT): Don't use make_number.
14779
14780 * xterm.c (note_mouse_movement): Fix call of window_from_coordinates.
14781
14782 * xdisp.c (display_mode_element): Fix call of Fset_text_properties.
14783
14784 * chartab.c: Include "...h", not <...h> in some cases.
14785
14786 * callproc.c (Fcall_process): Remove unused variables.
14787
14788 2008-02-01 Dave Love <fx@gnu.org>
14789
14790 * coding.c (Fset_coding_system_priority): Allow null arg list.
14791
14792 2008-02-01 Dave Love <fx@gnu.org>
14793
14794 * minibuf.c (Fminibuffer_complete_word): Remove unused var.
14795 (Fself_insert_and_exit): Use CHARACTERP.
14796
14797 * callproc.c (Fcall_process): Remove unused vars.
14798
14799 * xterm.c (XTread_socket): Add extra dead keysyms.
14800
14801 * xdisp.c (decode_mode_spec_coding): Use CHARACTERP.
14802
14803 * dispextern.h: Remove prototypes for redraw_frame,
14804 redraw_garbaged_frames.
14805
14806 * cmds.c (Fself_insert_command): Use CHARACTERP.
14807
14808 * chartab.c (make_sub_char_table): Remove unused var.
14809 (Fset_char_table_default, Fmap_char_table): Doc fix.
14810
14811 * keymap.c (access_keymap): Remove generic char code.
14812 (push_key_description): Use CHARACTERP.
14813
14814 2008-02-01 Dave Love <fx@gnu.org>
14815
14816 * charset.c: Doc fixes.
14817 (Funify_charset): Extra checking.
14818
14819 2008-02-01 Dave Love <fx@gnu.org>
14820
14821 * lread.c: Remove some unused variables.
14822 (safe_to_load_p): If safe, return the magic number version byte.
14823 (Fload): Maybe use load-with-code-conversion.
14824
14825 2008-02-01 Kenichi Handa <handa@m17n.org>
14826
14827 * category.c (Fmodify_category_entry): Don't modify the contents
14828 of category_set for characters out of the range. Avoid
14829 unnecessary modification.
14830
14831 * character.h (MAYBE_UNIFY_CHAR): Adjust for the change of
14832 Vchar_unify_table. The default value of the table is now nil.
14833
14834 * character.c (syms_of_character): Setup Vchar_width_table for
14835 eight-bit-control and raw-byte chars.
14836
14837 * charset.h (enum define_charset_arg_index): Delete
14838 charset_arg_parents and add charset_arg_subset and
14839 charset_arg_superset.
14840 (enum charset_attr_index): Delete charset_parents and add
14841 charset_subset and charset_superset.
14842 (enum charset_method): Delete CHARSET_METHOD_INHERIT and add
14843 CHARSET_METHOD_SUBSET and CHARSET_METHOD_SUPERSET.
14844 (CHARSET_ATTR_PARENTS, CHARSET_PARENTS): Delete.
14845 (CHARSET_ATTR_SUBSET, CHARSET_ATTR_SUPERSET, CHARSET_SUBSET)
14846 (CHARSET_SUPERSET): New macros.
14847 (charset_work): Extern it.
14848 (ENCODE_CHAR): Use charset_work.
14849 (CHAR_CHARSET_P): Adjust for the change of encoder format.
14850 (map_charset_chars): Extern it.
14851
14852 * charset.c (load_charset_map): Set the default value of encoder
14853 and deunifier char-tables to nil.
14854 (map_charset_chars): Change argument. Change callers. Use
14855 map_char_table_for_charset instead of map_char_table.
14856 (Fmap_charset_chars): New optional args from_code and to_code.
14857 (Fdefine_charset_internal): Adjust for the change of
14858 `define-charset' (:parents -> :subset or :superset).
14859 (charset_work): New variable.
14860 (encode_char, syms_of_charset): Adjust for the change of
14861 Fdefine_charset_internal.
14862 (Ffind_charset_string): Setup the vector `charsets' correctly.
14863
14864 * chartab.c (sub_char_table_ref_and_range): New arg default. Fix
14865 the previous change.
14866 (char_table_ref_and_range): Adjust for the above change.
14867 (map_sub_char_table_for_charset): New function.
14868 (map_char_table_for_charset): New function.
14869
14870 * keymap.c (describe_vector): Handle a char-table directly here.
14871 (describe_char_table): Delete.
14872
14873 * lisp.h (map_charset_chars): Delete.
14874
14875 2008-02-01 Dave Love <fx@gnu.org>
14876
14877 * fns.c (count_combining): Comment out (unused).
14878 (Flocale_codeset): New.
14879 (syms_of_fns): Defsubr it.
14880
14881 * config.in (HAVE_PTY_H, HAVE_SIZE_T, HAVE_LANGINFO_CODESET): New.
14882 (size_t): Remove.
14883
14884 2008-02-01 Dave Love <fx@gnu.org>
14885
14886 * Makefile.in (chartab.o): Depend on charset.h.
14887
14888 2008-02-01 Kenichi Handa <handa@m17n.org>
14889
14890 * character.c (syms_of_character): Set the default value of
14891 Vprintable_chars to Qnil.
14892
14893 2008-02-01 Dave Love <fx@gnu.org>
14894
14895 * Makefile.in (lisp, shortlisp): Change indian.elc to indian.el.
14896
14897 2008-02-01 Kenichi Handa <handa@m17n.org>
14898
14899 * charset.c (load_charset_map): Handle the case that from < to
14900 correctly.
14901
14902 * coding.c (encode_coding_emacs_mule, encode_coding_iso_2022)
14903 (encode_coding_sjis, encode_coding_big5, encode_coding_charset):
14904 Pay attention to raw-8-bit chars.
14905
14906 2008-02-01 Kenichi Handa <handa@m17n.org>
14907
14908 * Makefile.in (lisp, shortlisp): Change chinese.elc to chinese.el.
14909 It is not bytecompiled now.
14910
14911 * charset.c (charset_jisx0201_roman, charset_jisx0208_1978)
14912 (charset_jisx0208): New variables.
14913 (Fdefine_charset_internal): Setup them if appropriate.
14914 (init_charset_once): Initialize them to -1.
14915
14916 * charset.h (charset_jisx0201_roman, charset_jisx0208_1978)
14917 (charset_jisx0208): Extern them.
14918
14919 * coding.c (CODING_ISO_FLAG_USE_ROMAN): New macro.
14920 (CODING_ISO_FLAG_USE_OLDJIS): New macro.
14921 (CODING_ISO_FLAG_FULL_SUPPORT): Change macro definition.
14922 (setup_iso_safe_charsets): Fix arguments to Fassq.
14923 (DECODE_DESIGNATION, ENCODE_ISO_CHARACTER_DIMENSION1)
14924 (ENCODE_ISO_CHARACTER_DIMENSION2): Pay attention to
14925 CODING_ISO_FLAG_USE_ROMAN and CODING_ISO_FLAG_USE_OLDJIS.
14926 (encode_coding_iso_2022): Change the 1st arg to
14927 ENCODE_ISO_CHARACTER to a variable.
14928
14929 2008-02-01 Kenichi Handa <handa@m17n.org>
14930
14931 * charset.h (enum define_charset_arg_index): New enums
14932 charset_arg_min_code and charset_arg_max_code.
14933 (struct charset): New member char_index_offset.
14934
14935 * charset.c (CODE_POINT_TO_INDEX, INDEX_TO_CODE_POINT):
14936 Take charset->char_index_offset into account.
14937 (Fdefine_charset_internal): Handle args[charset_arg_min_code] and
14938 args[charset_arg_max_code]. Setup charset.char_index_offset.
14939 (syms_of_charset): Fix args to Fdefine_charset_internal.
14940
14941 2008-02-01 Dave Love <fx@gnu.org>
14942
14943 * coding.c (decode_coding_utf_8): Reject overlong sequences.
14944
14945 2008-02-01 Dave Love <fx@gnu.org>
14946
14947 * coding.c: Doc fixes.
14948 (Fcoding_system_aliases): Fix return value.
14949 (Qmac): Remove (duplicated) definition.
14950
14951 2008-02-01 Dave Love <fx@gnu.org>
14952
14953 * charset.c (Fcharset_priority_list, Fset_charset_priority): New
14954 functions.
14955
14956 * character.c (Fstring): Doc fix.
14957
14958 * charset.c (Fdefine_charset_alias): Update Vcharset_list.
14959
14960 * fontset.c (Ffontset_info): Doc fix. Return charset names, not
14961 ids.
14962 (font-encoding-alist): Doc fix.
14963
14964 2008-02-01 Dave Love <fx@gnu.org>
14965
14966 * term.c (costs_set): Declare static, non-initialized for pcc.
14967 (encode_terminal_code): Remove unused var.
14968
14969 * keyboard.c (kbd_buffer_store_event): Fix interrupt_signal decl
14970 for K&R.
14971
14972 * xterm.c (xlwmenu_window_p): Fix prototype for K&R.
14973
14974 * coding.c (setup_iso_safe_charsets): Fix arg decl for K&R.
14975 (suffixes): Move out of make_subsidiaries for K&R.
14976
14977 * charset.c (map_charset_chars): Fix c_function declaration for K&R.
14978
14979 * lisp.h (DEFUN) [!PROTOTYPES]: Remove spurious `args'.
14980
14981 2008-02-01 Dave Love <fx@gnu.org>
14982
14983 * data.c (Fchar_or_string_p): Doc fix. Use CHARACTERP.
14984
14985 * category.c (Fmodify_category_entry): Doc fix. Remove unused vars.
14986
14987 2008-02-01 Yong Lu <lyongu@asia-infonet.com>
14988
14989 * charset.c (Fdefine_charset_internal): Fix argument to bzero.
14990
14991 * coding.c (decode_coding_charset): Workaround for the bug of GCC 2.96.
14992
14993 2008-02-01 Kenichi Handa <handa@m17n.org>
14994
14995 * Makefile.in (lisp, shortlisp): Change cyrillic.elc to cyrillic.el,
14996 vietnamese.elc to vietnamese.el. They are not bytecompiled now.
14997
14998 2008-02-01 Kenichi Handa <handa@m17n.org>
14999
15000 * coding.c (decode_coding_charset): Adjust for the change of
15001 Fdefine_coding_system_internal.
15002 (Fdefine_coding_system_internal): For a coding system of
15003 `charset' type, store a list of charset IDs in
15004 `charset_attr_charset_valids' element of coding attributes.
15005
15006 2008-02-01 Kenichi Handa <handa@m17n.org>
15007
15008 * coding.c (ONE_MORE_BYTE_NO_CHECK): Increment consumed_chars.
15009 (emacs_mule_char): New arg src. Delete arg `composition'. Change
15010 caller. Handle 2-byte and 3-byte charsets correctly.
15011 (DECODE_EMACS_MULE_COMPOSITION_RULE_20): Rename from
15012 DECODE_EMACS_MULE_COMPOSITION_RULE. Change caller.
15013 (DECODE_EMACS_MULE_COMPOSITION_RULE_21): New macro.
15014 (DECODE_EMACS_MULE_21_COMPOSITION): Call
15015 DECODE_EMACS_MULE_COMPOSITION_RULE_21. Produce correct annotation
15016 sequence.
15017 (decode_coding_emacs_mule): Handle composition correctly. Rewind
15018 `src' and `consumed_chars' correctly before calling emacs_mule_char.
15019 (DECODE_COMPOSITION_START): Correctly handle the case of altchar
15020 and alt&rule composition.
15021 (decode_coding_iso_2022): Handle composition correctly.
15022 (init_coding_once): Setup emacs_mule_bytes for private charsets.
15023
15024 * charset.c (Fdefine_charset_internal): Fix bug for the case of
15025 re-defining a charset. If the charset has :emacs-mule-id, setup
15026 emacs_mule_bytes.
15027 (Fmake_char): If CODE1 is nil, use the minimum code of the charset.
15028
15029 2008-02-01 Kenichi Handa <handa@m17n.org>
15030
15031 * coding.c (encode_coding_iso_2022, encode_coding_sjis)
15032 (encode_coding_big5, encode_coding_charset): If coding requires safe
15033 encoding, produce a character specified by
15034 CODING_INHIBIT_CHARACTER_SUBSTITUTION.
15035
15036 2008-02-01 Dave Love <fx@gnu.org>
15037
15038 * xterm.c (XSetIMValues): Declare.
15039
15040 * process.c: Conditionally include sys/wait.h, pty.h.
15041
15042 * print.c (print_object): Fix print format for 64-bit systems.
15043
15044 * keyboard.c (modify_event_symbol): Fix print format for 64-bit systems.
15045
15046 * buffer.c (emacs_strerror): Declare.
15047
15048 * fontset.c (Fclear_face_cache): Declare.
15049 (accumulate_font_info): Comment-out (unused).
15050 (face_for_char, Fset_fontset_font, Ffontset_info): Remove unused
15051 variables.
15052
15053 * character.h (string_escape_byte8): Declare.
15054
15055 * charset.c (load_charset_map, load_charset_map_from_file): Remove
15056 unused vars.
15057 (Fdefine_charset_internal, Fsplit_char, syms_of_charset)
15058 (Fmap_charset_chars): Doc fix.
15059
15060 * coding.c (Vchar_coding_system_table, Qchar_coding_system): Remove.
15061 (Fset_coding_system_priority, Fset_coding_system_priority)
15062 (Fdefine_coding_system_internal): Doc fix.
15063
15064 2008-02-01 Dave Love <fx@gnu.org>
15065
15066 * s/osf5-0.h (C_SWITCH_SYSTEM) [!__GNUC__]: Remove -nointrinsics.
15067
15068 2008-02-01 Kenichi Handa <handa@m17n.org>
15069
15070 * character.c (string_escape_byte8): Make multibyte string with
15071 correct size.
15072
15073 * charset.c (Fmake_char): Delete unnecessary code.
15074
15075 2008-02-01 Kenichi Handa <handa@m17n.org>
15076
15077 * xfns.c (x_encode_text): Allocate coding.destination here, and
15078 call encode_coding_object with dst_object Qnil.
15079
15080 * buffer.c (Fset_buffer_multibyte): Convert 8-bit bytes to
15081 multibyte form correctly.
15082
15083 * fontset.c (fs_load_font): Check fontp->full_name (not fontname)
15084 against Vfont_encoding_alist.
15085
15086 * coding.c (Fdecode_sjis_char): Fix typo (0x7F->0xFF). Fix the
15087 handling of charset list.
15088 (encode_coding_iso_2022): Setup coding->safe_charsets in advance.
15089 (decode_coding_object): Move point to coding->dst_pos before
15090 calling post-read-conversion function.
15091 (encode_coding_object): Give correct arguments to
15092 pre-write-conversion. Ignore the return value of
15093 pre-write-conversion function. Pay attention to the case that
15094 pre-write-conversion changes the current buffer. If dst_object is
15095 Qt, even if coding->src_bytes is zero, allocate at least one byte
15096 to coding->destination.
15097
15098 * coding.h (JIS_TO_SJIS): Fix typo (j1->s1, j2->s2).
15099
15100 * charset.c (Fmake_char): Make it more backward compatible.
15101 (Fmap_charset_chars): Fix docstring.
15102
15103 2008-02-01 Dave Love <fx@gnu.org>
15104
15105 * coding.c: Doc fixes.
15106 (Fdefine_coding_system_alias): Use names, not symbols, in
15107 coding-system-alist.
15108
15109 2008-02-01 Kenichi Handa <handa@m17n.org>
15110
15111 * fontset.c (free_realized_fontsets): Call Fclear_face_cache instead
15112 of calling free_realized_face.
15113
15114 2008-02-01 Yong Lu <lyongu@asia-infonet.com>
15115
15116 * charset.c (read_hex): Don't treat SPC as a comment starter.
15117 (decode_char): If CODE_POINT_TO_INDEX returns -1, always return -1.
15118 (Fdecode_char): Fix typo.
15119
15120 2008-02-01 Kenichi Handa <handa@m17n.org>
15121
15122 * charset.h (struct charset): New member `code_space_mask'.
15123
15124 * coding.c (coding_set_source): Delete the local variable beg_byte.
15125 (encode_coding_charset, Fdefine_coding_system_internal):
15126 Delete the local variable charset.
15127 (Fdefine_coding_system_internal): Setup
15128 attrs[coding_attr_charset_valids] correctly.
15129
15130 * charset.c (CODE_POINT_TO_INDEX): Utilize `code_space_mask'
15131 member to check if CODE is valid or not.
15132 (Fdefine_charset_internal): Initialize `code_space_mask' member.
15133 (encode_char): Before calling CODE_POINT_TO_INDEX, check if CODE
15134 is within the range of charset->min_code and carset->max_code.
15135
15136 2008-02-01 Dave Love <fx@gnu.org>
15137
15138 * syntax.h (syntax_temp) [!__GNUC__]: Declare.
15139
15140 * dispextern.h (generate_ascii_font): Fix return type.
15141
15142 * xfaces.c (generate_ascii_font): Fix arg declaration.
15143
15144 * coding.c (coding_inherit_eol_type)
15145 (Fset_terminal_coding_system_internal)
15146 (Fset_safe_terminal_coding_system_internal): Fix arg declarations.
15147
15148 2008-02-01 Kenichi Handa <handa@m17n.org>
15149
15150 * coding.c (decode_coding_charset, encode_coding_charset): Handle
15151 multiple charsets correctly.
15152
15153 2008-02-01 Kenichi Handa <handa@m17n.org>
15154
15155 * search.c (boyer_moore): Fix handling of multibyte character
15156 translation.
15157
15158 * xdisp.c (display_mode_element): When the variable `elt' is
15159 changed, update `this' and `lisp_string'.
15160
15161 2008-02-01 Kenichi Handa <handa@m17n.org>
15162
15163 * buffer.c (Fset_buffer_multibyte): Fix 8-bit char handling.
15164
15165 * callproc.c (Fcall_process): Be sure to give the current buffer
15166 to decode_coding_c_string. Update PT and PT_BYTE after the insertion.
15167
15168 * charset.c (struct charset_map_entries): New struct.
15169 (load_charset_map): Rename from parse_charset_map. New args
15170 entries and n_entries. Change caller.
15171 (load_charset_map_from_file): Rename from load_charset_map.
15172 Change caller. New arg control_flag. Call load_charset_map at
15173 the tail.
15174 (load_charset_map_from_vector): New function.
15175 (Fdefine_charset_internal): Setup charset.compact_codes_p.
15176 (encode_char): If the charset is compact, change a character index
15177 to a code point.
15178
15179 * coding.c (coding_alloc_by_making_gap): Check the case that the
15180 source and destination are the same correctly.
15181 (decode_coding_raw_text): Set coding->consumed_char and
15182 coding->consumed to 0.
15183 (produce_chars): If coding->chars_at_source is nonzero, update
15184 coding->consumed_char and coding->consumed before calling
15185 alloc_destination.
15186 (Fdefine_coding_system_alias): Register ALIAS in
15187 Vcoding_system_alist.
15188 (syms_of_coding): Define `no-conversion' coding system at the tail.
15189
15190 * fileio.c (Finsert_file_contents): Set coding_system instead of
15191 val. If the current buffer is multibyte, always call
15192 decode_coding_gap.
15193
15194 * xfaces.c (try_font_list): Give higher priority to fontset's
15195 family than face's family.
15196
15197 2008-02-01 Kenichi Handa <handa@m17n.org>
15198
15199 * callproc.c (Fcall_process): Be sure to give the current buffer
15200 to decode_coding_c_string.
15201
15202 * xfaces.c (try_font_list): Give a family specified in a fontset
15203 higher priority than a family specified in a face.
15204
15205 2008-02-01 Kenichi Handa <handa@m17n.org>
15206
15207 * fileio.c (Finsert_file_contents): Fix calculation of `inserted'.
15208 Fix arguments to insert_from_buffer.
15209
15210 * xdisp.c (display_mode_element): Fix calculation of `bytepos'.
15211
15212 2008-02-01 Kenichi Handa <handa@m17n.org>
15213
15214 * coding.c (produce_chars): Set the variable `multibytep' correctly.
15215 (decode_coding_gap): Set coding->dst_multibyte correctly.
15216
15217 2008-02-01 Kenichi Handa <handa@m17n.org>
15218
15219 * coding.c (encode_coding_utf_8): Initialize produced_chars to 0.
15220 (decode_coding_utf_16): Fix converting high and low bytes to code-point.
15221 (encode_coding_utf_16): Substitute coding->default_char for
15222 non-Unicode characters.
15223 (decode_coding): Don't call record_insert here.
15224 (setup_coding_system): Initialize `surrogate' of
15225 coding->spec.utf_16 to 0.
15226 (EMIT_ONE_BYTE): Fix for multibyte case.
15227
15228 * insdel.c (insert_from_gap): Call record_insert.
15229
15230 2008-02-01 Kenichi Handa <handa@m17n.org>
15231
15232 * casefiddle.c (casify_region): Fix multibyte case.
15233
15234 * character.c (c_string_width): Add return type `int'.
15235 (char_string_with_unification): Delete arg ADVANCED.
15236
15237 * character.h (CHAR_VALID_P): Don't call CHARACTERP.
15238 (CHAR_STRING): Adjust for the change of char_string_with_unification.
15239 (CHAR_STRING_ADVANCE): Make it do-while statement.
15240
15241 * chartab.c (sub_char_table_set_range): Optimize for the case
15242 DEPTH == 3. Add workaround code for a GCC optimization bug.
15243
15244 * charset.c (parse_charset_map): Remove an unused variable.
15245
15246 * coding.c: Delete unused variables.
15247
15248 * fileio.c (Finsert_file_contents): Set coding_system to Qnil
15249 earlier. If inserted is zero and the coding system doesn't
15250 require flushing, don't call decode_coding_gap.
15251
15252 * syntax.h (SET_RAW_SYNTAX_ENTRY): Don't call make_number.
15253
15254 2008-02-01 Kenichi Handa <handa@m17n.org>
15255
15256 The following changes are for using Unicode as an internal
15257 character model, and use UTF-8 format for buffer/string
15258 representation.
15259
15260 * .gdbinit (xchartable): Adjust for the change of char table structure.
15261 (xsubchartable, xcoding, xcharset, xcurbuf): New commands.
15262
15263 * Makefile.in (obj): Add character.o and chartab.o.
15264 (lisp, shortlisp): Remove utf-8.elc.
15265 (*.o): For many files, change dependency on charset.h to
15266 character.h, and add dependency on character.h.
15267 (character.o, chartab.o): New targets.
15268
15269 * abbrev.c, bytecode.c, casefiddle.c, cmds.c, dispnew.c, doc.c:
15270 * doprnt.c, dosfns.c, frame.c, marker.c, minibuf.c, msdos.c:
15271 * w16select.c, w32bdf.c, w32console.c: Include "character.h" instead
15272 of "charset.h".
15273
15274 * dired.c, filelock.c: Include "character.h".
15275
15276 * alloc.c: Include "character.h" instead of "charset.h".
15277 (Fmake_char_table, make_sub_char_table): Move to chartab.c.
15278 (syms_of_alloc): Remove defsubr for Smake_char_table.
15279
15280 * buffer.c: Include "character.h" instead of "charset.h", don't
15281 include "coding.h".
15282 (Fset_buffer_multibyte): Adjust for UTF-8.
15283
15284 * buffer.h: EXFUN Fbuffer_live_p.
15285
15286 * callproc.c: Include "character.h" instead of "charset.h".
15287 (Fcall_process): Big change for the new code-conversion APIs.
15288
15289 * casetab.c: Include "character.h" instead of "charset.h".
15290 (set_canon, set_identity, shuffle): Adjust for the new
15291 map_char_table spec.
15292 (init_casetab_once): Call CHAR_TABLE_SET instead of directly
15293 accessing the char table structure.
15294
15295 * chartab.c: New file that implements char table.
15296
15297 * category.c: Include "character.h".
15298 (copy_category_entry): New function.
15299 (copy_category_table): Call map_char_table and copy_category_entry.
15300 (Fmake_category_table): Initialize all top-level slots.
15301 (char_category_set): New function.
15302 (modify_lower_category_set): Delete.
15303 (Fmodify_category_entry): Call char_table_ref_and_range.
15304
15305 * category.h (CATEGORY_SET): Just call char_category_set.
15306
15307 * ccl.c: Include "character.h".
15308 (Qccl, Qcclp): New variables.
15309 (CCL_WRITE_CHAR): Alway treat the arg CH as a character even if
15310 it's less than 256.
15311 (CCL_WRITE_MULTIBYTE_CHAR): Delete.
15312 (CCL_WRITE_STRING, CCL_READ_CHAR): Adjust for the change of SRC
15313 and DST type.
15314 (ccl_driver): Change types of argument, adjust code accordingly.
15315 (Fccl_execute, Fccl_execute_on_string): Adjust for the change of
15316 ccl_driver.
15317 (syms_of_ccl): Intern and staticpro Qccl and Qcclp.
15318
15319 * ccl.h (struct ccl_program): Delete members eol_type and multibyte.
15320 New members src_multibyte, dst_multibyte, consumed, and produced.
15321 (struct ccl_spec): Delete members decoder and encoder. New member ccl.
15322 (CODING_SPEC_CCL_PROGRAM): New macro.
15323 (ccl_driver): Update prototype.
15324 (Qccl, Qcclp, Fccl_program_p): Extern them.
15325 (CHECK_CCL_PROGRAM): New macro.
15326
15327 * character.c, character.h, chartab.c: New files.
15328
15329 * charset.c: Mostly re-written. Move character and multibyte sequence
15330 handling codes to character.c.
15331
15332 * charset.h: Mostly re-written. Move character and multibyte sequence
15333 handling codes to character.h.
15334
15335 * coding.c, coding.h: Mostly re-written.
15336
15337 * composite.c: Include "character.h" instead of "charset.h".
15338 (CHAR_WIDTH): Move to character.h.
15339 (HASH_KEY, HASH_VALUE): Delete.
15340
15341 * composite.h (enum composition_method): Change order of enumeration
15342 symbols.
15343
15344 * data.c: Include "character.h" instead of "charset.h".
15345 (Faref): Call CHAR_TABLE_REF for a char table.
15346 (Faset): Call CHAR_TABLE_SET for a char table.
15347
15348 * dispextern.h (free_realized_face, check_face_attribytes)
15349 (generate_ascii_font): Extern them.
15350 (free_realized_multibyte_face): Delete extern.
15351
15352 * disptab.h (DISP_CHAR_VECTOR): Adjust for the change of char
15353 table structure.
15354
15355 * editfns.c: Include "character.h" instead of "charset.h".
15356 (Fchar_to_string): Always call CHAR_STRING.
15357
15358 * emacs.c (main): Call init_charset_once, init_charset,
15359 syms_of_chartab, and syms_of_character.
15360
15361 * fileio.c: Include "character.h" instead of "charset.h".
15362 (Finsert_file_contents): Big change for the new code-conversion API.
15363 (choose_write_coding_system, Fwrite_region): Likewise.
15364 (build_annotations_2): Delete.
15365 (e_write): Big change for the new code-conversion API.
15366
15367 * fns.c: Include "character.h" instead of "charset.h".
15368 (copy_sub_char_table): Move to chartab.c.
15369 (Fcopy_sequence): Call copy_char_table for a char table.
15370 (concat): Delete codes calling count_multibyte.
15371 (string_char_to_byte, string_byte_to_char): Adjust for the new
15372 multibyte form.
15373 (internal_equal): Adjust for the change of char table structure.
15374 (Fchar_table_subtype, Fchar_table_parent, Fset_char_table_parent)
15375 (Fchar_table_extra_slot, Fset_char_table_extra_slot)
15376 (Fchar_table_range, Fset_char_table_range, Fset_char_table_default)
15377 (char_table_translate, optimize_sub_char_table)
15378 (Foptimize_char_table, map_char_table, Fmap_char_table): Move to
15379 chartab.c.
15380 (char_table_ref_and_index): Delete.
15381 (HASH_KEY, HASH_VALUE): Move to lisp.h.
15382 (Fmd5): Call preferred_coding_system instead of accessing
15383 Vcoding_category_list. Adjust for the new code-conversion API.
15384 (syms_of_fns): Move defsubr for char table related functions to
15385 chartab.c.
15386
15387 * fontset.c: Mostly re-written.
15388
15389 * fontset.h (struct font_info): Change type of the member encoding_type.
15390 (enum FONT_SPEC_INDEX): New enum.
15391 (fontset_font_pattern, fs_load_font): Update prototype.
15392 (FS_LOAD_FONT): Adjust for the change of fs_load_font.
15393
15394 * indent.c: Include "character.h" instead of "charset.h".
15395 (MULTIBYTE_BYTES_WIDTH): Call CHAR_WIDTH instead of WIDTH_BY_CHAR_HEAD.
15396
15397 * insdel.c: Include "character.h" instead of "charset.h".
15398 (copy_text): Don't refer to Vnonascii_translation_table.
15399 (insert_from_gap): New function.
15400
15401 * keyboard.c: Include "character.h" instead of "charset.h".
15402 (command_loop_1): Never call direct_output_forward_char before
15403 a non-ASCII character.
15404 (read_char): If Vkeyboard_translate_table is a char table, always
15405 translate a character.
15406
15407 * keymap.c: Include "character.h".
15408 (store_in_keymap): Handle the case that IDX is a cons.
15409 (Fdefine_key): Handle the case that KEY is a cons and the car part
15410 is also a cons (range).
15411 (push_key_description): Adjust for the new character code.
15412 (describe_vector): Call describe_char_table for a char table.
15413 (describe_char_table): New function.
15414
15415 * keymap.h (describe_char_table): Extern it.
15416
15417 * lisp.h (enum pvec_type): New member PVEC_SUB_CHAR_TABLE.
15418 (XSUB_CHAR_TABLE, XSETSUB_CHAR_TABLE): New macros.
15419 (CHAR_TABLE_ORDINARY_SLOTS, CHAR_TABLE_SINGLE_BYTE_SLOTS)
15420 (SUB_CHAR_TABLE_ORDINARY_SLOTS, SUB_CHAR_TABLE_STANDARD_SLOTS):
15421 Delete.
15422 (CHAR_TABLE_REF, CHAR_TABLE_SET): Adjust for the new char table
15423 structure.
15424 (CHAR_TABLE_TRANSLATE): Just call char_table_translate.
15425 (CHARTAB_SIZE_BITS_0, CHARTAB_SIZE_BITS_1, CHARTAB_SIZE_BITS_2)
15426 (CHARTAB_SIZE_BITS_3): New macros.
15427 (chartab_size): Extern it.
15428 (struct Lisp_Char_Table): Re-design.
15429 (struct Lisp_Sub_Char_Table): New structure.
15430 (HASH_KEY, HASH_VALUE): Move from fns.c.
15431 (CHARACTERBITS): Define as 22.
15432 (GLYPH_MASK_FACE, GLYPH_MASK_CHAR): Adjust for the above change.
15433 (SUB_CHAR_TABLE_P): Check PVEC_CHAR_TABLE.
15434 (GC_SUB_CHAR_TABLE_P): New macro.
15435 (Fencode_coding_string, Fdecode_coding_string): Update EXFUN.
15436 (code_convert_string_norecord): Deleted extern.
15437 (init_character_once, syms_of_character, init_charset)
15438 (syms_of_composite, Qeq, Fmakehash, insert_from_gap): Extern them.
15439
15440 * lread.c: Include "character.h".
15441 (read_multibyte): New arg NBYTES.
15442 (read_escape): Change the meaning of returned *BYTEREP.
15443 (to_multibyte): Delete.
15444 (read1): Adjust the handling of char table and string.
15445
15446 * print.c: Include "character.h" instead of "charset.h".
15447 (print_string): Convert 8-bit raw bytes to octal form by
15448 string_escape_byte8.
15449 (print_object): Adjust for the new multibyte form. Print 8-bit
15450 raw bytes always in octal form. Handle sub char table correctly.
15451
15452 * process.c: Include "character.h" instead of "charset.h".
15453 (read_process_output, send_process): Adjust for the new
15454 code-conversion API.
15455
15456 * puresize.h (BASE_PURESIZE): Increase.
15457
15458 * regex.c: Include "character.h" instead of "charset.h".
15459 (BYTE8_TO_CHAR, CHAR_BYTE8_P) [not emacs]: New dummy macros.
15460 (regex_compile): Accept a range whose starting and ending
15461 character have different leading bytes.
15462 (analyse_first): Adjust for the above change.
15463
15464 * search.c: Include "character.h" instead of "charset.h".
15465 (search_buffer, boyer_moore): Adjust for the new multibyte form.
15466 (Freplace_match): Adjust for the change of multibyte_char_to_unibyte.
15467
15468 * syntax.c: Include "character.h" instead of "charset.h".
15469 (syntax_parent_lookup): Delete.
15470 (Fmodify_syntax_entry): Accept a cons as CHAR.
15471 (skip_chars): Adjust for the new multibyte form.
15472 (init_syntax_once): Call char_table_set_range instead of directly
15473 accessing the structure of a char table.
15474
15475 * syntax.h (SET_RAW_SYNTAX_ENTRY): Call CHAR_TABLE_SET.
15476 (SYNTAX_ENTRY_FOLLOW_PARENT): Delete macro.
15477 (SET_RAW_SYNTAX_ENTRY_RANGE): New macro.
15478 (SYNTAX_ENTRY_INT): Call CHAR_TABLE_REF.
15479
15480 * term.c: Include "buffer.h" and "character.h".
15481 (encode_terminal_code, write_glyphs): Adjust for the new
15482 code-conversion API.
15483 (produce_glyphs): Call CHAR_WIDTH instead of CHARSET_WIDTH.
15484
15485 * w32term.c (x_new_font): Adjust for the change of FS_LOAD_FONT.
15486
15487 * xdisp.c: Include "character.h".
15488 (get_next_display_element): Adjust for the new multibyte form.
15489 (disp_char_vector): Adjust for the new char table structure.
15490 (decode_mode_spec_coding): Adjust for the new structure of
15491 coding system.
15492 (decode_mode_spec): Adjust for the new code-conversion API.
15493
15494 * xfaces.c: Include "character.h" instead of "charset.h".
15495 (load_face_font): Adjust for the change of choose_face_font and
15496 FS_LOAD_FONT.
15497 (generate_ascii_font): New function.
15498 (set_lface_from_font_name): Adjust for the change of FS_LOAD_FONT.
15499 (set_font_frame_param): Adjust for the change of choose_face_font.
15500 (free_realized_face): Make it public.
15501 (free_realized_faces_for_fontset): Rename from
15502 free_realized_multibyte_face. Free also faces realized for ASCII.
15503 (choose_face_font): Change arguments. Adjust for the change of
15504 fontset_font_pattern and FS_LOAD_FONT.
15505
15506 * xfns.c: Include "character.h".
15507 (x_encode_text): Adjust for the new code-conversion API.
15508
15509 * xselect.c: Don't include "charset.h".
15510 (selection_data_to_lisp_data): Adjust for the new code conversion API.
15511
15512 * xterm.c: Include "character.h".
15513 (x_encode_char): New argument CHARSET. Change caller.
15514 (x_get_char_face_and_encoding, x_get_glyph_face_and_encoding):
15515 Call ENCODE_CHAR instead of SPLIT_CHAR.
15516 (x_produce_glyphs): Don't check Vnonascii_translation_table Call
15517 CHAR_WIDTH instead of CHARSET_WIDTH.
15518 (XTread_socket): Adjust for the new code-conversion API.
15519 (x_new_font): Adjust for the change of FS_LOAD_FONT.
15520 (x_load_font): Adjust for the change of struct font.
15521
15522 2008-02-01 Stefan Monnier <monnier@iro.umontreal.ca>
15523
15524 * xfaces.c (face_at_buffer_position): Remove unused vars.
15525
15526 2008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
15527
15528 * ccl.c (CCL_WRITE_CHAR, CCL_WRITE_MULTIBYTE_CHAR):
15529 Fix overflow checking.
15530
15531 2008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
15532
15533 * ccl.c (CCL_WRITE_CHAR, CCL_WRITE_MULTIBYTE_CHAR, ccl_driver):
15534 Cancel previous change.
15535
15536 2008-01-31 Kenichi Handa <handa@ni.aist.go.jp>
15537
15538 * ccl.c (CCL_WRITE_CHAR): Increment extra_bytes only when
15539 ccl->eight_bit_control. Fix check for buffer overflow.
15540 (CCL_WRITE_MULTIBYTE_CHAR): Fix check for buffer overflow.
15541 (ccl_driver): Initialize extra_bytes to 0.
15542
15543 2008-01-31 Kenichi Handa <handa@ni.aist.go.jp>
15544
15545 * keyboard.c (make_ctrl_char): If C is a multibyte character, just
15546 return it ORed with ctrl_modifier.
15547
15548 2008-01-29 Miles Bader <miles@gnu.org>
15549
15550 * macterm.c (XTset_vertical_scroll_bar): Fix merge mistake.
15551
15552 2008-01-28 Jason Rumney <jasonr@gnu.org>
15553
15554 * w32.c (stat): Don't double check for networked drive.
15555
15556 2008-01-28 Stefan Monnier <monnier@iro.umontreal.ca>
15557
15558 * window.c (run_window_configuration_change_hook): New function.
15559 Code extracted from set_window_buffer. Set the selected frame.
15560 (set_window_buffer): Use it.
15561 * window.h (run_window_configuration_change_hook): Declare.
15562 * dispnew.c (change_frame_size_1): Use it instead of set-window-buffer.
15563
15564 * keyboard.c (read_char): Yet another int/Lisp_Object mixup (YAILOM).
15565
15566 2008-01-27 Dan Nicolaescu <dann@ics.uci.edu>
15567
15568 * Makefile.in: Remove references to unused macros.
15569
15570 2008-01-26 Eli Zaretskii <eliz@gnu.org>
15571
15572 * w32.c (g_b_init_get_sid_sub_authority)
15573 (g_b_init_get_sid_sub_authority_count): New static variables.
15574 (GetSidSubAuthority_Proc, GetSidSubAuthorityCount_Proc): New typedefs.
15575 (get_sid_sub_authority, get_sid_sub_authority_count): New functions.
15576 (init_user_info): Use them to retrieve uid and gid.
15577 Use 500/513, the Windows defaults, as Administrator's uid/gid.
15578 (fstat): Use pw_uid and pw_gid from the_passwd structure for
15579 st_uid and st_gid of the file.
15580
15581 2008-01-26 Jason Rumney <jasonr@gnu.org>
15582
15583 * w32.c (logon_network_drive): New function.
15584 (stat): Use it.
15585
15586 2008-01-26 Chong Yidong <cyd@stupidchicken.com>
15587
15588 * xdisp.c (pos_visible_p): Handle the case where charpos falls on
15589 invisible text covered with an ellipsis.
15590
15591 2008-01-25 Richard Stallman <rms@gnu.org>
15592
15593 * xdisp.c (redisplay_window): Run Qwindow_text_change_functions and
15594 jump back to beginning. Move some other initializations after that.
15595 (Qwindow_text_change_functions, Vwindow_text_change_functions):
15596 New variables.
15597 (syms_of_xdisp): Init them.
15598
15599 * keyboard.c (read_char): Restore echo_message_buffer after redisplay.
15600
15601 * buffer.c (reset_buffer_local_variables):
15602 Implement `permanent-local-hook'.
15603 (Qpermanent_local_hook): New variable.
15604 (syms_of_buffer): Init and staticpro it.
15605
15606 2008-01-25 Michael Albinus <michael.albinus@gmx.de>
15607
15608 * dbusbind.c (xd_retrieve_arg): Pacify GCC on x86_64 GNU/Linux.
15609
15610 2008-01-25 Thien-Thi Nguyen <ttn@gnuvola.org>
15611
15612 * fns.c (Fclrhash): Return TABLE.
15613
15614 2008-01-23 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
15615
15616 * macterm.c (x_scroll_bar_create): Initialize bar->redraw_needed_p.
15617 (XTset_vertical_scroll_bar): Redraw scroll bar if bar->redraw_needed_p
15618 is set even without positional changes.
15619 (x_scroll_bar_clear): Set bar->redraw_needed_p.
15620
15621 * macterm.h (struct scroll_bar): New member `redraw_needed_p'.
15622
15623 2008-01-23 Jason Rumney <jasonr@gnu.org>
15624
15625 * xterm.c (handle_one_xevent): Revert to counting chars not bytes.
15626
15627 * w32term.c (w32_read_socket) <WM_CHAR>: Decode characters outside
15628 the unicode range available in MULE by locale-coding-system.
15629 Improve dbcs lead byte detection. Set event timestamp and modifiers
15630 earlier.
15631
15632 2008-01-23 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
15633
15634 * mac.c (mac_emacs_pid) [MAC_OSX]: New variable.
15635 [MAC_OSX] (init_mac_osx_environment): Initialize it.
15636 [MAC_OSX] (mac_try_close_socket) [SELECT_USE_CFSOCKET]: Return 0
15637 when used on child processes.
15638
15639 2008-01-21 Michael Albinus <michael.albinus@gmx.de>
15640
15641 * dbusbind.c (Fdbus_method_return_internal): Rename from
15642 Fdbus_method_return.
15643 (Fdbus_unregister_object): Move to dbus.el.
15644 (Fdbus_call_method, Fdbus_method_return_internal)
15645 (Fdbus_send_signal): Improve debug messages.
15646
15647 2008-01-20 Martin Rudalics <rudalics@gmx.at>
15648
15649 * undo.c (undo_inhibit_record_point): New variable.
15650 (syms_of_undo): Initialize it.
15651 (record_point): Don't record point when undo_inhibit_record_point
15652 is set.
15653
15654 2008-01-19 Stefan Monnier <monnier@iro.umontreal.ca>
15655
15656 * process.c (list_processes_1): Don't use SCHARS on a nil buffer name.
15657
15658 * xdisp.c (Qauto_hscroll_mode): New var.
15659 (syms_of_xdisp): Initialize it.
15660 (hscroll_window_tree): Use it to lookup `auto-hscroll-mode' in each
15661 window's buffer.
15662 (hscroll_windows): Don't check automatic_hscrolling_p here.
15663
15664 * window.c (set_window_buffer): Don't unnecessarily reset hscroll and
15665 vscroll if we're setting window-buffer to the value it already has.
15666
15667 2008-01-18 Dan Nicolaescu <dann@ics.uci.edu>
15668
15669 * m/intel386.h: Remove references to XENIX.
15670
15671 2008-01-17 Andreas Schwab <schwab@suse.de>
15672
15673 * m/amdx86-64.h (START_FILES, LIB_STANDARD): Use HAVE_LIB64_DIR
15674 instead of HAVE_X86_64_LIB64_DIR.
15675 * m/ibms390x.h (START_FILES, LIB_STANDARD): Likewise.
15676
15677 2008-01-17 Glenn Morris <rgm@gnu.org>
15678
15679 * m/ibms390x.h (START_FILES, LIB_STANDARD): Adjust value according
15680 to HAVE_X86_64_LIB64_DIR.
15681
15682 2008-01-16 Dan Nicolaescu <dann@ics.uci.edu>
15683
15684 * s/irix3-3.h:
15685 * s/irix4-0.h:
15686 * s/386-ix.h:
15687 * s/domain.h:
15688 * s/hpux9-x11r4.h:
15689 * s/hpux9shxr4.h: Remove files for systems no longer supported.
15690
15691 * sysdep.c: Remove code containing references to symbols defined
15692 by unsupported systems.
15693
15694 2008-01-16 Glenn Morris <rgm@gnu.org>
15695
15696 * coding.c (select-safe-coding-system-function): Doc fix.
15697
15698 2008-01-15 Glenn Morris <rgm@gnu.org>
15699
15700 * config.in: Revert 2008-01-13 change: this is a generated file.
15701
15702 2008-01-13 Tom Tromey <tromey@redhat.com>
15703
15704 * lisp.h: Fix typo.
15705
15706 2008-01-13 Dan Nicolaescu <dann@ics.uci.edu>
15707
15708 * m/sequent-ptx.h:
15709 * m/sequent.h:
15710 * s/ptx.h:
15711 * s/ptx4-2.h:
15712 * s/ptx4.h: Remove files for systems no longer supported.
15713
15714 * callproc.c (Fcall_process): Fix previous change.
15715
15716 2008-01-13 Dan Nicolaescu <dann@ics.uci.edu>
15717
15718 * unexsunos4.c: Remove file, system not supported anymore.
15719
15720 * m/mips.h:
15721 * m/intel386.h:
15722 * callproc.c:
15723 * config.in:
15724 * ecrt0.c:
15725 * emacs.c:
15726 * fileio.c:
15727 * frame.c:
15728 * getpagesize.h:
15729 * keyboard.c:
15730 * lread.c:
15731 * process.c:
15732 * puresize.h:
15733 * sysdep.c:
15734 * systty.h:
15735 * syswait.h:
15736 * unexec.c:
15737 * xdisp.c:
15738 * alloc.c: Remove code containing references to symbols defined by
15739 unsupported systems.
15740
15741 2008-01-11 Kenichi Handa <handa@ni.aist.go.jp>
15742
15743 * coding.c (detect_coding_mask): Fix previous change.
15744
15745 2008-01-09 Kenichi Handa <handa@ni.aist.go.jp>
15746
15747 * coding.c (detect_coding_iso2022): New arg
15748 latin_extra_code_state. Allow Latin extra codes only
15749 when *latin_extra_code_state is nonzero.
15750 (detect_coding_mask): If there is a NULL byte, detect the encoding
15751 as UTF-16 or binary. If Latin extra codes exist, detect the
15752 encoding as ISO-2022 only when there's no other proper encoding is
15753 found.
15754
15755 2008-01-08 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
15756
15757 * frame.c (Fmake_terminal_frame): Use #ifdef MAC_OS8 instead of
15758 #ifdef MAC_OS.
15759
15760 2008-01-08 Richard Stallman <rms@gnu.org>
15761
15762 * fileio.c (Ffile_name_directory, Fexpand_file_name): Doc fixes.
15763
15764 2008-01-06 Nick Roberts <nickrob@snap.net.nz>
15765
15766 * keyboard.c (parse_menu_item): Don't enclose key bindings on
15767 menu bar in parentheses.
15768
15769 2008-01-06 Dan Nicolaescu <dann@ics.uci.edu>
15770
15771 * m/7300.h:
15772 * m/acorn.h:
15773 * m/alliant-2800.h:
15774 * m/alliant.h:
15775 * m/alliant1.h:
15776 * m/alliant4.h:
15777 * m/altos.h:
15778 * m/amdahl.h:
15779 * m/apollo.h:
15780 * m/att3b.h:
15781 * m/aviion-intel.h:
15782 * m/aviion.h:
15783 * m/celerity.h:
15784 * m/clipper.h:
15785 * m/cnvrgnt.h:
15786 * m/convex.h:
15787 * m/cydra5.h:
15788 * m/delta88k.h:
15789 * m/dpx2.h:
15790 * m/dual.h:
15791 * m/elxsi.h:
15792 * m/f301.h:
15793 * m/gould-np1.h:
15794 * m/gould.h:
15795 * m/i860.h:
15796 * m/ibmps2-aix.h:
15797 * m/ibmrt-aix.h:
15798 * m/ibmrt.h:
15799 * m/irist.h:
15800 * m/is386.h:
15801 * m/isi-ov.h:
15802 * m/mega68.h:
15803 * m/mg1.h:
15804 * m/news-r6.h:
15805 * m/news-risc.h:
15806 * m/news.h:
15807 * m/nh3000.h:
15808 * m/nh4000.h:
15809 * m/ns16000.h:
15810 * m/ns32000.h:
15811 * m/nu.h:
15812 * m/orion.h:
15813 * m/orion105.h:
15814 * m/paragon.h:
15815 * m/pfa50.h:
15816 * m/plexus.h:
15817 * m/pyramid.h:
15818 * m/pyrmips.h:
15819 * m/sh3el.h:
15820 * m/sps7.h:
15821 * m/sr2k.h:
15822 * m/stride.h:
15823 * m/sun1.h:
15824 * m/sun2.h:
15825 * m/sun3-68881.h:
15826 * m/sun3-fpa.h:
15827 * m/sun3-soft.h:
15828 * m/sun3.h:
15829 * m/sun386.h:
15830 * m/symmetry.h:
15831 * m/tad68k.h:
15832 * m/tahoe.h:
15833 * m/targon31.h:
15834 * m/tek4300.h:
15835 * m/tekxd88.h:
15836 * m/tower32.h:
15837 * m/tower32v3.h:
15838 * m/ustation.h:
15839 * m/wicat.h:
15840 * m/xps100.h:
15841 * s/cxux.h:
15842 * s/cxux7.h:
15843 * s/dgux.h:
15844 * s/dgux4.h:
15845 * s/dgux5-4-3.h:
15846 * s/dgux5-4r2.h:
15847 * s/esix.h:
15848 * s/esix5r4.h:
15849 * s/hiuxmpp.h:
15850 * s/hiuxwe2.h:
15851 * s/iris3-5.h:
15852 * s/iris3-6.h:
15853 * s/isc2-2.h:
15854 * s/isc3-0.h:
15855 * s/isc4-0.h:
15856 * s/isc4-1.h:
15857 * s/newsos5.h:
15858 * s/newsos6.h:
15859 * s/osf1.h:
15860 * s/osf5-0.h:
15861 * s/riscix1-1.h:
15862 * s/riscix12.h:
15863 * s/sco4.h:
15864 * s/sco5.h:
15865 * s/sunos4-0.h:
15866 * s/sunos4-1.h:
15867 * s/sunos413.h:
15868 * s/sunos4shr.h:
15869 * s/umax.h:
15870 * s/unipl5-2.h:
15871 * s/xenix.h:
15872 * cxux-crt0.s:
15873 * unexapollo.c:
15874 * unexconvex.c:
15875 * unexenix.c:
15876 * unexsni.c: Remove files for systems no longer supported.
15877
15878 * m/intel386.h: Remove references to unsupported systems.
15879
15880 * w32.c (get_emacs_configuration): Remove reference to i860.
15881
15882 * sysdep.c: Remove dead code.
15883
15884 2008-01-05 Dan Nicolaescu <dann@ics.uci.edu>
15885
15886 * s/rtu.h:
15887 * m/masscomp.h: Remove files. Platform is obsolete.
15888
15889 2008-01-04 Michael Albinus <michael.albinus@gmx.de>
15890
15891 * dbusbind.c (Fdbus_method_return): New function.
15892 (xd_read_message): Add the serial number to the event.
15893 (Fdbus_register_method): Activate the function.
15894
15895 2008-01-03 Stefan Monnier <monnier@iro.umontreal.ca>
15896
15897 * keyboard.c (read_key_sequence): Fix typo.
15898
15899 2008-01-03 Michael Albinus <michael.albinus@gmx.de>
15900
15901 * dbusbind.c (all): Replace XCAR by CAR_SAFE and XCDR by CDR_SAFE.
15902 (xd_signature, xd_append_arg): Handle element type detection for
15903 empty arrays.
15904 (Fdbus_call_method, Fdbus_send_signal): Undo type casting for
15905 SDATA () calls; this must be solved more general.
15906 (Fdbus_register_signal): Use SBYTES instead of strlen.
15907
15908 2008-01-03 Magnus Henoch <magnus@zemdatav>
15909
15910 * dbusbind.c (xd_append_arg): Use unsigned char instead of
15911 unsigned int for byte values (necessary for big-endian platform).
15912 (Fdbus_call_method): Handle the case of no returned arguments.
15913
15914 2007-12-31 Tom Tromey <tromey@redhat.com> (tiny change)
15915
15916 * dbusbind.c (xd_read_message): Use non-static input_event struct.
15917
15918 2007-12-31 Magnus Henoch <mange@freemail.hu>
15919
15920 * dbusbind.c (xd_signature): Signature of variant is just "v".
15921
15922 2007-12-30 Michael Albinus <michael.albinus@gmx.de>
15923
15924 * dbusbind.c: Fix several errors and compiler warnings.
15925 Reported by Tom Tromey <tromey@redhat.com>.
15926 (XD_ERROR, XD_DEBUG_MESSAGE)
15927 (XD_DEBUG_VALID_LISP_OBJECT_P): Wrap code with "do ... while (0)".
15928 (xd_append_arg): Part for basic D-Bus types rewritten.
15929 (xd_retrieve_arg): Split implementation of DBUS_TYPE_BYTE and
15930 DBUS_TYPE_(U)INT16. Don't call XD_DEBUG_MESSAGE with "%f" if not
15931 appropriate.
15932 (xd_read_message): Return Qnil. Don't signal an error; it is not
15933 useful during event reading.
15934 (Fdbus_register_signal): Signal an error if the check for
15935 FUNCTIONP fails.
15936 (Fdbus_register_method): New function. The implementation is not
15937 complete, the call of the function signals an error therefore.
15938 (Fdbus_unregister_object): New function, renamed from
15939 Fdbus_unregister_signal. The initial check signals an error, if
15940 the object is not well formed.
15941
15942 2007-12-30 Richard Stallman <rms@gnu.org>
15943
15944 * textprop.c (get_char_property_and_overlay):
15945 Signal error if POSITION is out of range in a buffer.
15946
15947 2007-12-29 Martin Rudalics <rudalics@gmx.at>
15948
15949 * w32fns.c (Fx_create_frame): Make copy of frame parameters
15950 because the original parameters are in pure storage now.
15951
15952 2007-12-24 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
15953
15954 * xdisp.c (phys_cursor_in_rect_p): Check if cursor is in fringe area.
15955
15956 2007-12-22 Eli Zaretskii <eliz@gnu.org>
15957
15958 * callint.c (syms_of_callint) <command-history>: Add reference to
15959 history-length in the doc string.
15960
15961 2007-12-17 Jason Rumney <jasonr@gnu.org>
15962
15963 * w32fns.c (w32_wnd_proc) <WM_KEYDOWN>: Cast char to unsigned
15964 before passing as wParam.
15965
15966 2007-12-22 Michael Albinus <michael.albinus@gmx.de>
15967
15968 * dbusbind.c (xd_retrieve_arg): Handle DBUS_TYPE_BYTE,
15969 DBUS_TYPE_INT16, DBUS_TYPE_UINT16, DBUS_TYPE_INT64,
15970 DBUS_TYPE_UINT64, DBUS_TYPE_DOUBLE and DBUS_TYPE_SIGNATURE.
15971 Return float when DBUS_TYPE_INT32 or DBUS_TYPE_UINT32 do not fit
15972 as number.
15973 (Fdbus_call_method): Fix docstring.
15974
15975 2007-12-21 Michael Albinus <michael.albinus@gmx.de>
15976
15977 * dbusbind.c (XD_BASIC_DBUS_TYPE, XD_DBUS_TYPE_P, XD_NEXT_VALUE):
15978 New macros.
15979 (XD_SYMBOL_TO_DBUS_TYPE): Rename from XD_LISP_SYMBOL_TO_DBUS_TYPE.
15980 (XD_OBJECT_TO_DBUS_TYPE): Rename from XD_LISP_OBJECT_TO_DBUS_TYPE.
15981 Simplify.
15982 (xd_signature): New function.
15983 (xd_append_arg): Compute also signatures. Major rewrite.
15984 (xd_retrieve_arg): Make debug messages friendly.
15985 (Fdbus_call_method, Fdbus_send_signal): Extend docstring.
15986 Check for signatures of arguments.
15987
15988 2007-12-19 Michael Albinus <michael.albinus@gmx.de>
15989
15990 * dbusbind.c (QCdbus_type_byte, QCdbus_type_boolean)
15991 (QCdbus_type_int16, QCdbus_type_uint16, QCdbus_type_int32)
15992 (QCdbus_type_uint32, QCdbus_type_int64, QCdbus_type_uint64)
15993 (QCdbus_type_double, QCdbus_type_string, QCdbus_type_object_path)
15994 (QCdbus_type_signature, QCdbus_type_array, QCdbus_type_variant)
15995 (QCdbus_type_struct, QCdbus_type_dict_entry): New D-Bus type symbols.
15996 (XD_LISP_SYMBOL_TO_DBUS_TYPE): New macro.
15997 (XD_LISP_OBJECT_TO_DBUS_TYPE): Add compound types.
15998 (xd_retrieve_value): Remove. Functionality included in ...
15999 (xd_append_arg): New function.
16000 (Fdbus_call_method, Fdbus_send_signal): Apply it.
16001
16002 2007-12-16 Michael Albinus <michael.albinus@gmx.de>
16003
16004 * dbusbind.c (top): Include <stdio.h>.
16005 (Fdbus_call_method, Fdbus_send_signal): Apply type cast in
16006 dbus_message_new_method_call and dbus_message_new_signal.
16007 (Fdbus_register_signal): Rename unique_name to uname.
16008 Check handler for FUNCTIONP instead of CHECK_SYMBOL. Handle case of
16009 non-existing unique name. Fix typos in matching rule. Return an
16010 object which is useful in Fdbus_unregister_signal.
16011 (Fdbus_unregister_signal): Reimplementation, in order to remove
16012 only the corresponding entry.
16013 (Vdbus_registered_functions_table): Change the order of entries.
16014 Apply these changes in xd_read_message and Fdbus_register_signal.
16015
16016 2007-12-16 Andreas Schwab <schwab@suse.de>
16017
16018 * fileio.c (Finsert_file_contents): Fix overflow check to not
16019 depend on undefined integer overflow.
16020
16021 2007-12-14 Jason Rumney <jasonr@gnu.org>
16022
16023 * w32term.c (w32_read_socket): Use MULTIBYTE_CHAR_KEYSTROKE_EVENT
16024 for characters above 127.
16025
16026 2007-12-13 Jason Rumney <jasonr@gnu.org>
16027
16028 * w32fns.c (w32_wnd_proc, Fw32_reconstruct_hot_key): Range check
16029 before dereferencing array.
16030 (lookup_vk_code): Remove zero comparison.
16031
16032 2007-12-14 Michael Albinus <michael.albinus@gmx.de>
16033
16034 * dbusbind.c (xd_retrieve_value, xd_retrieve_arg)
16035 (Fdbus_call_method, Fdbus_send_signal, xd_read_message):
16036 Use `unsigned int' instead of `uint'.
16037 (xd_read_message, Fdbus_register_signal): Split expressions into
16038 multiple lines before operators "&&" and "||", according to the
16039 GNU Coding Standards.
16040
16041 2007-12-14 Eli Zaretskii <eliz@gnu.org>
16042
16043 * dispextern.h (WINDOWS_NT): Fix incorrect spelling of WINDOWSNT.
16044
16045 2007-12-12 Juri Linkov <juri@jurta.org>
16046
16047 * buffer.c (Frename_buffer): In interactive spec replace
16048 `read-buffer' with `read-string' that uses `buffer-name-history'
16049 as history, and the current buffer's name as default.
16050
16051 2007-12-10 Stefan Monnier <monnier@iro.umontreal.ca>
16052
16053 * keyboard.c (Fcommand_execute): Call Qcall_interactively instead of
16054 manipulating the backtrace manually.
16055 (make_lispy_event): Merge the ASCII and MULTIBYTE cases.
16056 (struct backtrace, backtrace_list): Remove.
16057 (command_loop_1): Remove dead var `no_direct'.
16058
16059 * buffer.c (reset_buffer_local_variables): If permanent_too is 0, also
16060 preserve non-built-in buffer-local variables.
16061 (Fkill_all_local_variables): Don't re-create&re-set permanent
16062 buffer-local variables.
16063
16064 2007-12-09 Juri Linkov <juri@jurta.org>
16065
16066 * buffer.c (Frename_buffer): Change interactive spec from "s" to
16067 Lisp code that uses `read-buffer' with current buffer as default.
16068
16069 2007-12-08 Michael Albinus <michael.albinus@gmx.de>
16070
16071 * dbusbind.c (xd_read_message): Generate an event for every
16072 registered handler. There might be several handlers registered
16073 for the same signal.
16074 (Fdbus_register_signal): Don't overwrite a registration for the
16075 same signal. Add a new registration if handlers are different.
16076 (Vdbus_registered_functions_table): Rework doc string.
16077
16078 2007-12-07 Michael Albinus <michael.albinus@gmx.de>
16079
16080 * dbusbind.c (Fdbus_get_unique_name, xd_read_message)
16081 (Fdbus_register_signal): Use DBUS_MAXIMUM_NAME_LENGTH and
16082 DBUS_MAXIMUM_MATCH_RULE_LENGTH for string lengths.
16083 (Fdbus_call_method, Fdbus_send_signal, Fdbus_register_signal):
16084 Unify argument lists.
16085 (xd_read_message, Fdbus_register_signal): Reorder and extend event
16086 arguments and hash table keys. Use unique name for service.
16087 (Fdbus_unregister_signal): Remove checks.
16088 (Vdbus_registered_functions_table): Fix doc string.
16089
16090 2007-12-05 Magnus Henoch <mange@freemail.hu>
16091
16092 * process.c (make_process): Initialize pty_flag to 0.
16093
16094 2007-12-05 Jason Rumney <jasonr@gnu.org>
16095
16096 * image.c (xbm_load) [WINDOWSNT]: Shuffle the bits of directly
16097 specified XBMs.
16098
16099 2007-12-05 Richard Stallman <rms@gnu.org>
16100
16101 * xdisp.c (syms_of_xdisp) <scroll-conservatively>: Doc fix.
16102
16103 2007-12-05 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
16104
16105 * mac.c (cfsockets_for_select) [MAC_OSX && SELECT_USE_CFSOCKET]:
16106 New variable.
16107 (mac_try_close_socket) [MAC_OSX]: New function.
16108 [MAC_OSX] (sys_select) [SELECT_USE_CFSOCKET]:
16109 Update cfsockets_for_select. Replace invalid CFRunLoop source.
16110
16111 * sysdep.c (emacs_close) [MAC_OSX && HAVE_CARBON]:
16112 Use mac_try_close_socket.
16113
16114 2007-12-05 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
16115
16116 * unexmacosx.c (unrelocate): New argument BASE. Use it instead of
16117 reloc_base.
16118 (copy_dysymtab): Compute relocation base here.
16119 (rebase_reloc_address) [__ppc64__]: New function.
16120 (copy_dysymtab) [__ppc64__]: Use it if relocation base needs to be
16121 changed.
16122
16123 2007-12-05 Jason Rumney <jasonr@gnu.org>
16124
16125 * w32proc.c (sys_spawnve): Quote args with wildcards.
16126
16127 2007-12-05 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
16128
16129 * unexmacosx.c (copy_data_segment): Also copy __gcc_except_tab and
16130 __objc_* sections.
16131 (unrelocate) [_LP64]: Set relocation base to address of data segment.
16132
16133 2007-12-05 Michael Albinus <michael.albinus@gmx.de>
16134
16135 * dbusbind.c (xd_read_message): Return value is a Lisp_Object.
16136 Move check for Vdbus_registered_functions_table to
16137 xd_read_queued_messages.
16138 (xd_read_queued_messages): Protect xd_read_message calls by
16139 internal_condition_case_1.
16140
16141 2007-12-04 Michael Albinus <michael.albinus@gmx.de>
16142
16143 * dbusbind.c (QCdbus_system_bus, QCdbus_session_bus): Rename from
16144 Qdbus_system_bus and Qdbus_session_bus, respectively.
16145 (Vdbus_intern_symbols): Remove.
16146 (Vdbus_registered_functions_table): New hash table.
16147 (XD_SYMBOL_INTERN_SYMBOL): Remove.
16148 (xd_read_message, Fdbus_register_signal, Fdbus_unregister_signal):
16149 Rewrite in order to manage registered functions by hash table
16150 Vdbus_registered_functions_table.
16151
16152 2007-12-03 Jan Djärv <jan.h.d@swipnet.se>
16153
16154 * xterm.c: Update URL to Window Manager Specification in comment.
16155
16156 2007-12-02 Michael Albinus <michael.albinus@gmx.de>
16157
16158 * config.in (HAVE_DBUS): Add.
16159
16160 * Makefile.in (HAVE_DBUS): Add D-Bus definitions if defined.
16161 (ALL_CFLAGS): Add ${DBUS_CFLAGS}.
16162 (obj): Add $(DBUS_OBJ).
16163 (LIBES): Add $(DBUS_LIBS).
16164 (dbusbind.o): New target.
16165
16166 * dbusbind.c: New file.
16167
16168 * emacs.c (main): Call syms_of_dbusbind when HAVE_DBUS is defined.
16169
16170 * keyboard.c: All D-Bus related code is wrapped by "#ifdef HAVE_DBUS".
16171 (Qdbus_event): New Lisp symbol.
16172 (kbd_buffer_get_event, make_lispy_event): Handle DBUS_EVENT.
16173 (gobble_input): Call xd_read_queued_messages, reading D-Bus messages.
16174 (keys_of_keyboard): Define dbus-event.
16175
16176 * termhooks.h (event_kind): Add DBUS_EVENT when HAVE_DBUS is defined.
16177
16178 2007-12-01 Richard Stallman <rms@gnu.org>
16179
16180 * search.c (syms_of_search) <inhibit-changing-match-data>: Doc fix.
16181
16182 2007-11-30 Jason Rumney <jasonr@gnu.org>
16183
16184 * w32console.c (w32con_ins_del_lines, scroll_line): Clip to window.
16185 (w32con_reset_terminal_modes): Clear screen buffer.
16186 (w32_face_attributes): Don't use color indexes that are out of range.
16187 Only reverse the default colors.
16188
16189 * xfaces.c (map_tty_color, tty_color_name): Remove special case for
16190 WINDOWSNT.
16191
16192 * w32console.c, w32term.h (vga_stdcolor_name): Remove.
16193
16194 2007-11-29 Jason Rumney <jasonr@gnu.org>
16195
16196 * w32console.c: Leave HAVE_WINDOW_SYSTEM defined.
16197 (w32_face_attributes): Use Vtty_defined_color_alist to determine
16198 if the terminal colors are initialized.
16199 (unspecified_fg, unspecified_bg): Remove unused declarations.
16200
16201 2007-11-29 Andreas Schwab <schwab@suse.de>
16202
16203 * keyboard.c (apply_modifiers): Fix typo.
16204
16205 2007-11-29 Richard Stallman <rms@gnu.org>
16206
16207 * keymap.c (Fcurrent_local_map): Doc fix.
16208
16209 2007-11-28 Petr Salinger <Petr.Salinger@seznam.cz> (tiny change)
16210
16211 * s/gnu-kfreebsd.h: New file.
16212
16213 2007-11-28 Stefan Monnier <monnier@iro.umontreal.ca>
16214
16215 * buffer.c (Fget_buffer_create, Fmake_indirect_buffer):
16216 Don't cast redundantly.
16217
16218 * keyboard.c (KEY_TO_CHAR): New macro.
16219 (parse_modifiers, apply_modifiers): Accept integer arguments.
16220 (read_key_sequence): Use them to unify the "shift->unshift" mapping
16221 for chars and symbol keys.
16222 After doing such remapping, apply function-key-map again.
16223
16224 2007-11-27 Dan Nicolaescu <dann@ics.uci.edu>
16225
16226 * Makefile.in (SOME_MACHINE_LISP): Remove VMS files, they are not
16227 compiled anymore.
16228
16229 2007-11-26 Andreas Schwab <schwab@suse.de>
16230
16231 * process.c (list_processes_1): Fix indentation level of the
16232 command column.
16233
16234 2007-11-23 Andreas Schwab <schwab@suse.de>
16235
16236 * editfns.c (Fformat): Handle %c specially since it requires the
16237 argument to be of type int.
16238
16239 2007-11-23 Markus Triska <markus.triska@gmx.at>
16240
16241 * emacs.c (main): Call init_editfns before init_process, since
16242 init_process sets Vprocess_connection_type depending on OS release.
16243
16244 2007-11-22 Stefan Monnier <monnier@iro.umontreal.ca>
16245
16246 * data.c (do_symval_forwarding): Use same code as in find_symbol_value.
16247 (find_symbol_value): Use do_symval_forwarding.
16248
16249 * data.c (set_internal): Set the value in the `cons-cell' (for
16250 Buffer_Local_values) not only for frame-local variables.
16251
16252 2007-11-22 Andreas Schwab <schwab@suse.de>
16253
16254 * data.c (Fnumber_to_string): Add cast when passing EMACS_INT
16255 values to sprintf.
16256 * keymap.c (Fsingle_key_description): Likewise.
16257 * print.c (print_object): Likewise.
16258
16259 2007-11-22 Jan Djärv <jan.h.d@swipnet.se>
16260
16261 * gtkutil.c (update_frame_tool_bar): Don't call x-gtk-map-stock if
16262 file for image is nil.
16263
16264 2007-11-22 Dan Nicolaescu <dann@ics.uci.edu>
16265
16266 * term.c: Include stdarg.h.
16267 (fatal): Implement using varargs.
16268 * lisp.h (fatal): Add argument types. (Restore 2005-09-30 change).
16269
16270 2007-11-21 Stefan Monnier <monnier@iro.umontreal.ca>
16271
16272 * lisp.h (struct Lisp_Buffer_Objfwd): Add a `slottype' field.
16273 * data.c (store_symval_forwarding): Get type from buffer_objfwd.
16274 Update call to buffer_slot_type_mismatch.
16275 * buffer.h (buffer_local_types, PER_BUFFER_TYPE): Remove.
16276 (buffer_slot_type_mismatch): Update.
16277 * buffer.c (buffer_local_types): Remove.
16278 (buffer_slot_type_mismatch): Get the symbol and type as arguments.
16279 (defvar_per_buffer): Set the type in the buffer_objfwd.
16280
16281 2007-11-21 Jason Rumney <jasonr@gnu.org>
16282
16283 * w32bdf.c (w32_init_bdf_font, w32_BDF_to_x_font):
16284 CreateFileMapping returns NULL on failure.
16285
16286 2007-11-21 Stefan Monnier <monnier@iro.umontreal.ca>
16287
16288 * search.c (Fset_match_data): Remove the `evaporate' feature.
16289 (unwind_set_match_data): Don't use the `evaporate' feature.
16290
16291 2007-11-21 Jason Rumney <jasonr@gnu.org>
16292
16293 * dispnew.c (init_display) [WINDOWSNT]: Hardcode terminal_type.
16294
16295 * w32console.c (w32con_write_glyphs): Remove unused variables.
16296
16297 2007-11-20 Dan Nicolaescu <dann@ics.uci.edu>
16298
16299 * macterm.c (mac_term_init): Call add_keyboard_wait_descriptor.
16300
16301 * s/darwin.h (MULTI_KBOARD): Remove.
16302
16303 * macfns.c (x_create_tip_frame, Fx_create_frame)
16304 (x_create_tip_frame): Don't deal with MULTI_KBOARD.
16305
16306 2007-11-19 Stefan Monnier <monnier@iro.umontreal.ca>
16307
16308 * buffer.c (Fbuffer_local_value): Remove redundant test.
16309 (swap_out_buffer_local_variables): Swap out binding in `buffer' rather
16310 than in `current-buffer' to match the comment.
16311 Do the swap using swap_in_global_binding.
16312
16313 * data.c (store_symval_forwarding, set_internal):
16314 * eval.c (specbind): Remove dead code.
16315
16316 * coding.c (detect_coding, Fupdate_coding_systems_internal):
16317 * fns.c (Fmd5): Use find_symbol_value rather than SYMBOL_VALUE
16318 Since we do not want to see internal Lisp_*fwd objects here.
16319
16320 2007-11-18 Jan Djärv <jan.h.d@swipnet.se>
16321
16322 * sysdep.c (init_system_name): Use getaddrinfo if available.
16323
16324 * xterm.c (x_scroll_bar_set_handle, x_scroll_bar_handle_click)
16325 (x_scroll_bar_note_movement): start, end, with, height in struct
16326 scroll_bar are integers and not Lisp_Object, so remove XINT for them.
16327
16328 2007-11-17 Dan Nicolaescu <dann@ics.uci.edu>
16329
16330 * puresize.h (BASE_PURESIZE): Increase to 1190000.
16331
16332 2007-11-16 Stefan Monnier <monnier@iro.umontreal.ca>
16333
16334 * buffer.h (struct buffer): Move `undo_list' back to before `name'.
16335 This undoes Richard's change of 14-Oct-2002.
16336
16337 * alloc.c (allocate_other_vector):
16338 * lisp.h (allocate_other_vector): Remove.
16339
16340 * window.c (struct save_window_data): Move non-lisp data to the end
16341 and make it `int' rather than Lisp_Object.
16342 (Fcurrent_window_configuration): Use ALLOCATE_PSEUDOVECTOR.
16343 Done wrap/unwrap integer values.
16344 (Fset_window_configuration, compare_window_configurations):
16345 Update use of fields to their new types.
16346
16347 * xterm.h (struct scroll_bar): Only use Lisp_Object for lisp data.
16348 Turn integer fields into `int'. Merge x_window_low and x_window_high.
16349 (SCROLL_BAR_PACK, SCROLL_BAR_UNPACK, SCROLL_BAR_X_WINDOW)
16350 (SET_SCROLL_BAR_X_WINDOW): Remove.
16351 (SCROLL_BAR_X_WIDGET, SET_SCROLL_BAR_X_WIDGET):
16352 Access the new x_window field directly.
16353 * xterm.c (x_scroll_bar_create): Use a pseudovector.
16354 Don't wrap/unwrap integers into Lisp_Objects.
16355 (XTset_vertical_scroll_bar, x_scroll_bar_handle_click)
16356 (x_scroll_bar_report_motion):
16357 Don't wrap/unwrap integers into Lisp_Objects.
16358 (x_term_init): Use SDATA.
16359 (x_window_to_scroll_bar, x_create_toolkit_scroll_bar)
16360 (x_scroll_bar_set_handle, x_scroll_bar_remove)
16361 (XTset_vertical_scroll_bar, x_scroll_bar_expose)
16362 (x_scroll_bar_report_motion, x_scroll_bar_clear):
16363 * xfns.c (x_set_background_color):
16364 * gtkutil.c (xg_create_scroll_bar, xg_set_toolkit_scroll_bar_thumb):
16365 Access the new x_window field directly.
16366
16367 * alloc.c (ALLOCATE_PSEUDOVECTOR): Move to lisp.h.
16368 (allocate_pseudovector): Make non-static.
16369
16370 * lisp.h (enum pvec_type): New tag PVEC_OTHER.
16371 (allocate_pseudovector): Declare.
16372 (ALLOCATE_PSEUDOVECTOR): Move from alloc.c.
16373
16374 2007-11-15 Andreas Schwab <schwab@suse.de>
16375
16376 * editfns.c (Fformat): Correctly format EMACS_INT values.
16377 Also take precision into account when formatting an integer.
16378
16379 * keyboard.c (Fevent_symbol_parse_modifiers): Fix declaration.
16380
16381 2007-11-15 Stefan Monnier <monnier@iro.umontreal.ca>
16382
16383 * keyboard.c (Fevent_symbol_parse_modifiers): New function.
16384 (syms_of_keyboard): Defsubr it.
16385
16386 * data.c (swap_in_global_binding): Fix longstanding bug where
16387 store_symval_forwarding was not called with the right second argument,
16388 thus causing objfwd-ing from being dropped.
16389
16390 2007-11-14 Juanma Barranquero <lekktu@gmail.com>
16391
16392 * macfns.c (Fx_create_frame, Fx_display_pixel_width)
16393 (Fx_display_pixel_height, Fx_display_planes)
16394 (Fx_display_color_cells, Fx_server_max_request_size)
16395 (Fx_server_vendor, Fx_server_version, Fx_display_backing_store)
16396 (Fx_display_visual_class, Fx_display_save_under):
16397 * w32fns.c (Fx_create_frame, Fx_display_pixel_width)
16398 (Fx_display_pixel_height, Fx_display_planes)
16399 (Fx_display_color_cells, Fx_server_max_request_size)
16400 (Fx_server_vendor, Fx_server_version, Fx_display_screens)
16401 (Fx_display_mm_height, Fx_display_mm_width)
16402 (Fx_display_backing_store, Fx_display_visual_class)
16403 (Fw32_select_font, Fx_display_save_under):
16404 * xfns.c (Fx_create_frame, Fx_display_pixel_width)
16405 (Fx_display_pixel_height, Fx_display_planes)
16406 (Fx_display_color_cells, Fx_server_max_request_size)
16407 (Fx_server_vendor, Fx_server_version, Fx_display_backing_store)
16408 (Fx_display_save_under): Fix typos in docstrings.
16409
16410 2007-11-14 Juanma Barranquero <lekktu@gmail.com>
16411
16412 * w32fns.c (Fw32_registered_hot_keys): Don't return the nil values
16413 corresponding to deleted entries; they are an implementation detail.
16414 (gray_bitmap_width, gray_bitmap_height, gray_bitmap_bits):
16415 Remove variables.
16416 (w32_pass_extra_mouse_buttons_to_system, w32_strict_fontnames)
16417 (w32_pass_multimedia_buttons_to_system, w32_strict_painting)
16418 (Vw32_charset_info_alist, w32_to_x_color, w32_init_class)
16419 (w32_createscrollbar, w32_createwindow, my_post_msg, w32_get_modifiers)
16420 (w32_grabbed_keys, cancel_all_deferred_msgs): Make static.
16421 (Fw32_define_rgb_color, Fw32_load_color_file)
16422 (syms_of_w32fns) <w32-pass-multimedia-buttons-to-system>:
16423 Fix typos in docstrings.
16424 (Fx_server_version): Reflow docstring.
16425 (Fw32_shell_execute): Doc fixes.
16426
16427 2007-11-13 Juanma Barranquero <lekktu@gmail.com>
16428
16429 * w32fns.c (Fw32_register_hot_key): Don't try to register hot key
16430 if w32_parse_hot_key returned nil.
16431
16432 2007-11-10 Stefan Monnier <monnier@iro.umontreal.ca>
16433
16434 * xdisp.c (load_overlay_strings): Fix copy&paste typo.
16435
16436 2007-11-09 Jason Rumney <jasonr@gnu.org>
16437
16438 * s/ms-w32.c (USE_TOOLKIT_SCROLL_BARS): Define.
16439
16440 * w32term.c (w32_scroll_bar_handle_click): Use SCROLL_BAR_CLICK_EVENT.
16441
16442 * keyboard.c (discard_mouse_events, make_lispy_event) [WINDOWSNT]:
16443 Remove W32_SCROLL_BAR_CLICK_EVENT.
16444
16445 * termhooks.h (enum event_kind) [WINDOWSNT]: Likewise.
16446 Add MULTIMEDIA_KEY_EVENT.
16447
16448 * keyboard.c (lispy_function_keys) [WINDOWSNT]: Add more keys.
16449 (lispy_multimedia_keys) [WINDOWSNT]: New array.
16450 (make_lispy_event) [WINDOWSNT]: Use it to translate
16451 MULTIMEDIA_KEY_EVENT.
16452
16453 * w32term.h (WM_APPCOMMAND): Define if not already.
16454 (GET_APPCOMMAND_LPARAM): Likewise.
16455
16456 * w32term.c (w32_read_socket): Generate MULTIMEDIA_KEY_EVENT from
16457 WM_APPCOMMAND.
16458
16459 * w32fns.c (w32_pass_multimedia_buttons_to_system): New user option.
16460 (syms_of_w32fns): Export and initialize it.
16461 (w32_wnd_proc): Pass WM_APPCOMMAND on to w32_read_socket.
16462
16463 2007-11-09 Chong Yidong <cyd@stupidchicken.com>
16464
16465 * dispextern.h (struct it): Don't define OVERLAY_STRING_CHUNK_SIZE
16466 twice.
16467
16468 * xdisp.c (handle_face_prop): Fix last change.
16469
16470 2007-11-09 Richard Stallman <rms@gnu.org>
16471
16472 * xdisp.c (handle_face_prop): Test for strings that came from overlays,
16473 not just for after-strings and before-strings.
16474 Call face_for_overlay_string and pass the overlay to it.
16475 (handle_display_prop): Determine whether property came from an overlay.
16476 Pass OVERLAY arg to handle_single_display_spec.
16477 (handle_single_display_spec): New arg OVERLAY sets it->from_overlay.
16478 (load_overlay_strings): Fill in it->string_overlays.
16479 (get_overlay_strings_1, push_it, pop_it): Handle it->from_overlays.
16480
16481 * xfaces.c (face_for_overlay_string): Function renamed from
16482 face_at_buffer_position_no_overlays, and add arg OVERLAY.
16483
16484 * dispextern.h (struct it): New elt string_overlays.
16485 New elt from_overlay, also in stack.
16486 Rearrange a few elements.
16487 (face_for_overlay_string): Decl renamed from
16488 face_at_buffer_position_no_overlays, and add argument.
16489
16490 2007-11-09 Richard Stallman <rms@gnu.org>
16491
16492 * xdisp.c (handle_face_prop): Use face_at_buffer_position_no_overlays
16493 to get the base face for an overlay string.
16494
16495 * dispextern.h (face_at_buffer_position_no_overlays): Add decl.
16496
16497 * xfaces.c (face_at_buffer_position_no_overlays): New function.
16498
16499 * xdisp.c (handle_stop): Move some code out of loop.
16500
16501 2007-11-09 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
16502
16503 * macfns.c [USE_ATSUI] (Fmac_atsu_font_face_attributes):
16504 Fix conversion from Lisp object to ATSUFontID.
16505
16506 2007-11-09 Jason Rumney <jasonr@gnu.org>
16507
16508 * xdisp.c (Fformat_mode_line): Do nothing when noninteractive.
16509
16510 2007-11-09 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
16511
16512 * unexmacosx.c (unexec_regions_recorder, unexec_regions_merge):
16513 Don't assume regions are aligned to page boundary.
16514 (print_load_command_name): Add LC_UUID if defined.
16515
16516 2007-11-09 Richard Stallman <rms@gnu.org>
16517
16518 * emacs.c (syms_of_emacs) <installation-directory>: Reflow docstring.
16519
16520 2007-11-07 Jason Rumney <jasonr@gnu.org>
16521
16522 * s/windows95.h: Remove.
16523
16524 2007-11-06 Jan Djärv <jan.h.d@swipnet.se>
16525
16526 * gtkutil.c (xg_tool_bar_menu_proxy): Handle GTK_IMAGE_ICON_NAME and
16527 abort with a message on unhandled store_type values.
16528
16529 2007-11-01 Jan Djärv <jan.h.d@swipnet.se>
16530
16531 * xterm.c, xfns.c, xselect.c, xterm.h, s/msdos.h, s/sco4.h, s/sco5.h:
16532 Remove HAVE_X11R5 and HAVE_X11R4.
16533
16534 2007-11-01 Dan Nicolaescu <dann@ics.uci.edu>
16535
16536 * Makefile.in: Remove references to sunfns.c and sunfns.o.
16537
16538 2007-11-01 Johan Bockgård <bojohan@gnu.org>
16539
16540 * macterm.c, w32term.c, xterm.c (x_draw_stretch_glyph_string):
16541 Don't set s->stippled_p here, since it has already been set by
16542 x_set_glyph_string_gc from x_draw_glyph_string.
16543
16544 2007-11-01 Dan Nicolaescu <dann@ics.uci.edu>
16545
16546 * sunfns.c: Remove file.
16547
16548 * m/sun386.h:
16549 * m/sun2.h:
16550 * m/sparc.h: Remove Sun windows code.
16551
16552 2007-10-31 Stefan Monnier <monnier@iro.umontreal.ca>
16553
16554 * keyboard.c (syms_of_keyboard): Initialize the initial_kboard.
16555 (init_keyboard): Set current_kboard's window-system to nil.
16556 (tty_read_avail_input): Typo.
16557 * frame.c (make_initial_frame): Don't initialize the initial_kboard.
16558
16559 2007-10-31 Dan Nicolaescu <dann@ics.uci.edu>
16560
16561 * s/usg5-4.h:
16562 * s/usg5-3.h:
16563 * s/ptx.h:
16564 * m/is386.h:
16565 * m/ibmps2-aix.h:
16566 * Makefile.in: Remove all mentions of X10.
16567
16568 * dispnew.c (syms_of_display): Don't mention version 10.
16569
16570 2007-10-28 Juanma Barranquero <lekktu@gmail.com>
16571
16572 * makefile.w32-in (OBJ1): Remove abbrev.$(O).
16573 ($(BLD)/abbrev.$(O)): Remove.
16574
16575 2007-10-28 Stefan Monnier <monnier@iro.umontreal.ca>
16576
16577 Rewrite abbrev.c in Elisp.
16578 * image.c (Qcount): Don't declare as extern.
16579 (syms_of_image): Initialize and staticpro `Qcount'.
16580 * puresize.h (BASE_PURESIZE): Increase for the new abbrev.el functions.
16581 * emacs.c (main): Don't call syms_of_abbrev.
16582 * Makefile.in (obj): Remove abbrev.o.
16583 (abbrev.o): Remove.
16584 * abbrev.c: Remove.
16585
16586 2007-10-26 Martin Rudalics <rudalics@gmx.at>
16587
16588 * window.c (window_min_size_2): Don't count header-line.
16589
16590 2007-10-26 Dan Nicolaescu <dann@ics.uci.edu>
16591
16592 * frame.h (struct frame): Move all bit fields after the first bit
16593 field to take advantage of the available space. Group all the
16594 chars together to reduce wasted space due to padding.
16595
16596 2007-10-26 Juanma Barranquero <lekktu@gmail.com>
16597
16598 * minibuf.c (Fread_minibuffer, Feval_minibuffer): Reflow docstrings.
16599
16600 * alloc.c (spare_memory, stack_copy, stack_copy_size, ignore_warnings)
16601 (Vdead, dont_register_blocks, staticvec, staticidx, interval_block)
16602 (n_interval_blocks, init_strings, check_string_bytes, check_sblock)
16603 (init_float, free_float, n_cons_blocks, init_cons, all_vectors)
16604 (n_vectors, symbol_block, symbol_block_index, symbol_free_list)
16605 (n_symbol_blocks, init_symbol, marker_block, marker_free_list)
16606 (n_marker_blocks, init_marker, valid_pointer_p, make_pure_float)
16607 (last_marked, mark_object_loop_halt): Make static.
16608
16609 * frame.c (syms_of_frame) <delete-frame-functions>:
16610 Fix typo in docstring.
16611
16612 2007-10-25 Juanma Barranquero <lekktu@gmail.com>
16613
16614 * w32.c (init_environment): Fix tiny memory leak.
16615 (w32_get_resource): Remove unused variable `ok'.
16616
16617 2007-10-25 Stefan Monnier <monnier@iro.umontreal.ca>
16618
16619 Make `window-system' into a keyboard-local variable (rather than
16620 frame-local as done originally by multi-tty).
16621
16622 * keyboard.h (struct kboard): Add Vwindow_system.
16623 * keyboard.c (init_kboard): Set a default for Vwindow_system.
16624 (mark_kboards): Mark Vwindow_system.
16625
16626 * dispnew.c (syms_of_display) <window-system>: Declare terminal-local.
16627 (init_display): Don't set the obsolete `window-system' frame-param.
16628
16629 * xterm.c (x_term_init):
16630 * w32term.c (w32_create_terminal):
16631 * term.c (init_tty): Set Vwindow_system.
16632 * macterm.c (mac_create_terminal): Set a keyboard (missing piece of the
16633 multi-tty merge maybe?), copied from w32term.c. Set Vwindow_system.
16634
16635 * xfns.c (Fx_create_frame, x_create_tip_frame):
16636 * w32fns.c (Fx_create_frame, x_create_tip_frame):
16637 * macfns.c (Fx_create_frame):
16638 Don't set the obsolete `window-system' frame-param.
16639
16640 * frame.h (Qwindow_system): Remove.
16641 * frame.c (Qwindow_system): Remove. In `syms_of_frame' as well.
16642 (Fmake_terminal_frame): Don't set obsolete `window-system' frame-param.
16643
16644 2007-10-24 Richard Stallman <rms@gnu.org>
16645
16646 * frame.c (x_figure_window_size): For fullscreen case,
16647 set USPosition | PPosition without clobbering rest of window_prompting.
16648
16649 * keyboard.c (Fcurrent_idle_time): Doc fix.
16650
16651 * print.c (Fwith_output_to_temp_buffer): Doc fix.
16652
16653 2007-10-23 Stefan Monnier <monnier@iro.umontreal.ca>
16654
16655 * process.c (unwind_request_sigio): Only define if __ultrix__.
16656
16657 * callproc.c (child_setup): Remove spurious *.
16658
16659 * lisp.h (Fget_text_property): Declare.
16660 (have_menus_p): Declare it here rather than in sys-dep header files.
16661 * macterm.h (have_menus_p):
16662 * msdos.h (have_menus_p):
16663 * xterm.h (have_menus_p): Remove.
16664
16665 * data.c (Fmake_variable_buffer_local, Fmake_local_variable)
16666 (Fmake_variable_frame_local): Just check the variable's const-ness
16667 rather than checking nil or t.
16668
16669 2007-10-22 Jason Rumney <jasonr@gnu.org>
16670
16671 * w32fns.c: Include math.h.
16672 (w32_abort): Declaration moved to nt/config.nt.
16673
16674 * s/ms-w32.h (HAVE_STDLIB_H): Define.
16675 (abort): Redefinition moved to nt/config.nt.
16676
16677 * m/windowsnt.h: Remove.
16678
16679 2007-10-22 Juanma Barranquero <lekktu@gmail.com>
16680
16681 * emacs.c (Fdump_emacs): Fix typo in message.
16682 (syms_of_emacs) <kill-emacs-hook>: Fix typo in docstring.
16683 <installation-directory>: Reflow docstring.
16684
16685 2007-10-22 Juri Linkov <juri@jurta.org>
16686
16687 * minibuf.c: Allow minibuffer default to be a list of default values.
16688 With empty input use the first element of this list as returned default.
16689 (string_to_object)
16690 (read_minibuf_noninteractive): If defalt is cons, set val to its car.
16691 (read_minibuf): If defalt is cons, set histstring to its car.
16692 (Fread_string): If default_value is cons, set val to its car.
16693 (Fread_buffer): If def is cons, use its car.
16694 (Fcompleting_read): If defalt is cons, set val to its car.
16695
16696 2007-10-21 Michael Albinus <michael.albinus@gmx.de>
16697
16698 * fileio.c (Fcopy_file): Call file name handler with preserve_uid_gid.
16699
16700 2007-10-20 Juanma Barranquero <lekktu@gmail.com>
16701
16702 * doc.c (Fdocumentation): Check for advice in all cases.
16703
16704 2007-10-19 Chong Yidong <cyd@stupidchicken.com>
16705
16706 * Makefile.in [HAVE_LIBRESOLV]: Add -lresolv to linker flags.
16707
16708 2007-10-19 Richard Stallman <rms@gnu.org>
16709
16710 * doc.c (Fdocumentation): Check for and handle an advised function.
16711
16712 2007-10-19 Juanma Barranquero <lekktu@gmail.com>
16713
16714 * process.c (Fset_process_filter): Doc fix.
16715
16716 2007-10-18 Stefan Monnier <monnier@iro.umontreal.ca>
16717
16718 * keyboard.c (read_key_sequence): Undo a change introduced by multi-tty
16719 which caused key-translation-map to applied repeatedly (thus breaking
16720 double-mode).
16721
16722 2007-10-17 Stefan Monnier <monnier@iro.umontreal.ca>
16723
16724 * xselect.c (x_own_selection, x_handle_selection_clear)
16725 (x_clear_frame_selections):
16726 * w32menu.c (list_of_panes, list_of_items):
16727 * w32fns.c (w32_color_map_lookup, Fx_create_frame, Fx_display_list):
16728 * textprop.c (validate_plist, interval_has_all_properties)
16729 (interval_has_some_properties, interval_has_some_properties_list)
16730 (add_properties, text_property_list):
16731 * process.c (Fget_buffer_process, list_processes_1, status_notify):
16732 * minibuf.c (Fassoc_string):
16733 * macselect.c (x_own_selection, x_clear_frame_selections)
16734 (Fx_disown_selection_internal):
16735 * keymap.c (Fcommand_remapping, where_is_internal, describe_map_tree):
16736 Use CONSP rather than !NILP and XC[AD]R rather than Fc[ad]r.
16737
16738 2007-10-17 Chong Yidong <cyd@stupidchicken.com>
16739
16740 * process.c: Link to libs for calling res_init() if available.
16741 (Fmake_network_process): Call res_init() before getaddrinfo or
16742 gethostbyname, if possible.
16743
16744 2007-10-17 Stefan Monnier <monnier@iro.umontreal.ca>
16745
16746 * lread.c (read1): Set pvectype for char_tables.
16747
16748 * lisp.h (XMISCANY, XMARKER, XINTFWD, XBOOLFWD, XOBJFWD, XOVERLAY)
16749 (XBUFFER_OBJFWD, XBUFFER_LOCAL_VALUE, XKBOARD_OBJFWD, XSAVE_VALUE):
16750 Add type checks.
16751 (SOME_BUFFER_LOCAL_VALUEP, GC_SOME_BUFFER_LOCAL_VALUEP): Remove.
16752
16753 * alloc.c (free_misc): Use XMISCTYPE.
16754 (live_misc_p, gc_sweep): Use Lisp_Misc_Any.
16755
16756 2007-10-17 Glenn Morris <rgm@gnu.org>
16757
16758 * minibuf.c (Qcompletion_ignore_case): New Lisp_Object.
16759 (syms_of_minibuf): Add Qcompletion_ignore_case.
16760 * dired.c (Qcompletion_ignore_case): Change to external.
16761 (syms_of_dired) [VMS]: Remove Qcompletion_ignore_case.
16762 * fileio.c (Qcompletion_ignore_case): New external Lisp_Object.
16763 (Fread_file_name): Use it rather than intern'ing.
16764
16765 * coding.c (Qcompletion_ignore_case): New external Lisp_Object.
16766 (Fread_coding_system): Ignore case of user input.
16767
16768 2007-10-16 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
16769
16770 * xdisp.c (handle_display_prop): Ignore display specs after
16771 replacing one when string text is being replaced.
16772 (handle_single_display_spec): Pretend as if characters with display
16773 property haven't been consumed only when buffer text is being replaced.
16774
16775 2007-10-16 Stefan Monnier <monnier@iro.umontreal.ca>
16776
16777 * xfns.c (Fx_create_frame, Fx_display_list):
16778 * window.c (window_fixed_size_p, enlarge_window)
16779 (shrink_window_lowest_first):
16780 * macterm.c (init_font_name_table):
16781 * macfns.c (Fx_create_frame, Fx_display_list):
16782 * lread.c (close_load_descs):
16783 * keyboard.c (read_char_x_menu_prompt):
16784 * fns.c (Fmember, Fmemql, Fdelete, Fset_char_table_parent):
16785 * coding.c (code_convert_region_unwind): Test the type of an object
16786 rather than just !NILP before extracting data from it.
16787
16788 * alloc.c (Fpurecopy): Set the pvec tag on pseudo vectors.
16789
16790 * lisp.h (enum Lisp_Misc_Type): Del Lisp_Misc_Some_Buffer_Local_Value.
16791 (XMISCANY): New macro.
16792 (XMISCTYPE): Use it.
16793 (struct Lisp_Misc_Any): New type.
16794 (union Lisp_Misc): Use it.
16795 (struct Lisp_Buffer_Local_Value): Add `local_if_set' bit.
16796 * data.c (Fboundp, store_symval_forwarding, swap_in_global_binding)
16797 (find_symbol_value, set_internal, default_value, Fset_default)
16798 (Fmake_variable_buffer_local, Fmake_local_variable)
16799 (Fkill_local_variable, Fmake_variable_frame_local, Flocal_variable_p)
16800 (Flocal_variable_if_set_p, Fvariable_binding_locus):
16801 The SOME_BUFFER_LOCAL_VALUEP distinction is replaced by local_if_set.
16802 * alloc.c (allocate_buffer): Set the size and tag.
16803 (allocate_misc, mark_maybe_object, mark_object, survives_gc_p):
16804 Use XMISCANY.
16805 (die): Follow the GNU convention for error messages.
16806 * print.c (print_object): SOME_BUFFER_LOCAL_VALUEP -> local_if_set.
16807 * buffer.c (Fget_buffer_create, Fmake_indirect_buffer): Don't set the
16808 tag any more.
16809 (set_buffer_internal_1):
16810 * frame.c (store_frame_param):
16811 * eval.c (specbind):
16812 * xdisp.c (select_frame_for_redisplay): Drop SOME_BUFFER_LOCAL_VALUEP.
16813
16814 * doc.c (Fsnarf_documentation): Simplify.
16815
16816 2007-10-14 Juanma Barranquero <lekktu@gmail.com>
16817
16818 * w32term.c (w32_font_is_double_byte, my_create_scrollbar): Make static.
16819 (syms_of_w32term) <w32-enable-unicode-output>: Fix typo in docstring.
16820
16821 2007-10-14 Stefan Monnier <monnier@iro.umontreal.ca>
16822
16823 * buffer.c (Fmake_indirect_buffer): Set the buffer's tag.
16824
16825 2007-10-14 Juanma Barranquero <lekktu@gmail.com>
16826
16827 * eval.c (do_autoload): Don't save autoloads.
16828
16829 * data.c (Ffset): Save autoload of the function being set.
16830
16831 2007-10-07 John Paul Wallington <jpw@pobox.com>
16832
16833 * xfns.c (x_create_tip_frame): Set the `display-type' frame
16834 parameter before setting up faces.
16835
16836 2007-10-13 Eli Zaretskii <eliz@gnu.org>
16837
16838 * ccl.c (Fregister_code_conversion_map):
16839 * keyboard.c (append_tool_bar_item): Reformat last change.
16840
16841 * lisp.h (eabs): Rename from `abs'. All callers changed.
16842
16843 2007-10-05 Dmitry Antipov <dmantipov@yandex.ru>
16844
16845 * buffer.c (add_overlay_mod_hooklist):
16846 * ccl.c (Fregister_ccl_program, Fregister_code_conversion_map):
16847 * fontset.c (make_fontset):
16848 * keyboard.c (GROW_RAW_KEYBUF, menu_bar_items, menu_bar_item)
16849 (append_tool_bar_item):
16850 * macmenu.c (grow_menu_items):
16851 * w32menu.c (grow_menu_items):
16852 * xmenu.c (grow_menu_items): Use larger_vector.
16853
16854 2007-10-13 Eli Zaretskii <eliz@gnu.org>
16855
16856 * msdos.c (dos_rawgetc): Undo last change (there's no ``leaving
16857 selected frame'' on MSDOS).
16858
16859 2007-10-12 Martin Rudalics <rudalics@gmx.at>
16860
16861 * frame.c (Qexplicit_name): New variable.
16862 (x_report_frame_params): Report it in parameter alist.
16863 (syms_of_frame): Intern and staticpro it.
16864
16865 2007-10-10 Patrick Mahan <mahan@mahan.org> (tiny change)
16866
16867 * macfns.c (x_create_tip_frame): Set terminal for frame.
16868
16869 2007-10-10 Stefan Monnier <monnier@iro.umontreal.ca>
16870
16871 * frame.c (Qenvironment): Remove.
16872 (syms_of_frame) <Qenvironment>: Don't initialize.
16873 (Fdelete_frame): Don't treat the `environment' param specially.
16874 * frame.h (Qenvironment): Don't declare.
16875 * callproc.c (set_initial_environment): Don't set unused frame param.
16876
16877 * frame.c (Fframe_with_environment): Remove.
16878 (syms_of_frame) <Sframe_with_environment>: Don't declare.
16879
16880 * lisp.h (Fframe_with_environment): Don't declare.
16881
16882 2007-10-10 Juanma Barranquero <lekktu@gmail.com>
16883
16884 * indent.c (indent_tabs_mode, last_known_column)
16885 (last_known_column_modified): Make static.
16886 (syms_of_indent) <indent-tabs-mode>: Remove redundant info in docstring.
16887
16888 2007-10-10 Katsumi Yamaoka <yamaoka@jpl.org>
16889
16890 * puresize.h (BASE_PURESIZE): Increase to 1170000.
16891
16892 2007-10-09 Jason Rumney <jasonr@gnu.org>
16893
16894 * w32term.c (x_set_window_size): Disable code that attempts to tell
16895 Lisp code about a size change before it actually happens.
16896
16897 2007-10-09 Richard Stallman <rms@gnu.org>
16898
16899 * xdisp.c (handle_invisible_prop): After setting up an ellipsis,
16900 return HANDLED_RETURN.
16901
16902 2007-10-08 Martin Rudalics <rudalics@gmx.at>
16903
16904 * keyboard.c (kbd_buffer_get_event): Break loop waiting for input
16905 when there's an unread command event.
16906
16907 * frame.c (focus_follows_mouse): Move here from frame.el to allow
16908 window autoselection act appropriately when leaving selected frame.
16909 (syms_of_frame): Initialize focus_follows_mouse.
16910 * frame.h (focus_follows_mouse): Extern it.
16911 * macterm.c (XTread_socket): When focus_follows_mouse is nil
16912 make SELECT_WINDOW_EVENT only if we don't leave the selected frame.
16913 * msdos.c (dos_rawgetc): Likewise.
16914 * w32term.c (w32_read_socket): Likewise.
16915 * xterm.c (handle_one_xevent): Likewise.
16916 * xdisp.c (syms_of_xdisp): In doc-string of
16917 mouse-autoselect-window mention focus-follows-mouse.
16918
16919 2007-10-08 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
16920
16921 * macterm.c (mac_load_query_font): Fix missing return value.
16922 [USE_CG_DRAWING] (mac_define_fringe_bitmap, mac_destroy_fringe_bitmap):
16923 Add BLOCK_INPUT.
16924
16925 2007-10-08 Richard Stallman <rms@gnu.org>
16926
16927 * xdisp.c (get_window_cursor_type): Implement documented behavior
16928 for cursor-in-non-selected-windows = t.
16929
16930 2007-10-08 Jason Rumney <jasonr@gnu.org>
16931
16932 * w32.c (w32_get_resource): Always close registry keys.
16933
16934 2007-10-08 Jason Rumney <jasonr@gnu.org>
16935
16936 * makefile.w32-in (LIBS): Add COMCTL32.
16937
16938 * w32fns.c (globals_of_w32fns): Init common controls.
16939
16940 2007-10-08 Richard Stallman <rms@gnu.org>
16941
16942 * image.c (our_memory_buffer): Rename from omfib_buffer.
16943
16944 2007-10-08 Richard Stallman <rms@gnu.org>
16945
16946 * buffer.c (Foverlays_at): Doc fix.
16947
16948 2007-10-08 Stefan Monnier <monnier@iro.umontreal.ca>
16949
16950 * fns.c (Fplist_put): Preserve uneven tail data.
16951
16952 2007-10-08 Peter O'Gorman <bug-gnu-emacs@mlists.thewrittenword.com> (tiny change)
16953
16954 * termhooks.h (enum event_kind): Remove trailing comma.
16955
16956 * frame.h (enum): Remove trailing comma.
16957
16958 2007-10-08 Dhruva Krishnamurthy <dhruvakm@gmail.com> (tiny change)
16959
16960 * w32proc.c (delete_child): Don't terminate threads of zombies.
16961
16962 2007-10-08 Martin Rudalics <rudalics@gmx.at>
16963
16964 * keyboard.h (struct kboard): New elt Vlast_repeatable_command.
16965
16966 * keyboard.c (syms_of_keyboard): Set up new Lisp variable
16967 last-repeatable-command.
16968 (init_kboard): Initialize Vlast_repeatable_command.
16969 (command_loop_1): Set it to real_this_command unless that was
16970 bound to an input event.
16971 (mark_kboards): Mark it.
16972
16973 2007-10-08 Richard Stallman <rms@gnu.org>
16974
16975 * eval.c (condition-case): Doc fix.
16976
16977 2007-10-08 Masatake YAMATO <jet@gyve.org>
16978
16979 * xfaces.c (tty_supports_face_attributes_p): Fix code
16980 for LFACE_INVERSE_INDEX and LFACE_BACKGROUND_INDEX; code
16981 was copied and not edited.
16982
16983 2007-10-09 Stefan Monnier <monnier@iro.umontreal.ca>
16984
16985 Add new `input-decode-map' keymap and use it for terminal
16986 escape sequences.
16987 * keyboard.h (struct kboard): Add Vinput_decode_map.
16988 Remove Vlocal_key_translation_map.
16989 * keyboard.c (read_key_sequence): Add support for input-decode-map.
16990 (init_kboard): Init input-decode-map.
16991 Replace local-key-translation-map back with key-translation-map.
16992 (syms_of_keyboard): Declare input-decode-map.
16993 Remove local-key-translation-map. Update docstrings.
16994 (mark_kboards): Mark Vinput_decode_map.
16995 Don't mark Vlocal_key_translation_map.
16996 * keymap.c (Fdescribe_buffer_bindings): Describe input-decode-map.
16997 Replace local-key-translation-map back with key-translation-map.
16998 * term.c (term_get_fkeys_1, CONDITIONAL_REASSIGN):
16999 Bind in input-decode-map rather than function-key-map.
17000
17001 * lisp.h (XSETPSEUDOVECTOR): Don't set the tag anymore.
17002 This was made redundant by the previous introduction of XSETPVECTYPE.
17003
17004 2007-10-09 Richard Stallman <rms@gnu.org>
17005
17006 * image.c (free_bitmap_record): Rename from Free_Bitmap_Record.
17007
17008 2007-09-29 Richard Stallman <rms@gnu.org>
17009
17010 * eval.c (internal_condition_case_2, internal_condition_case_1)
17011 (internal_condition_case): Reenable abort if x_catching_errors ()
17012 to see if that really happens and why.
17013
17014 2007-10-06 Andreas Schwab <schwab@suse.de>
17015
17016 * fileio.c (Fwrite_region): Ignore EINVAL error from fsync.
17017
17018 2007-10-04 Juanma Barranquero <lekktu@gmail.com>
17019
17020 * image.c (syms_of_image) <image-types>: Fix typo in docstring.
17021
17022 2007-10-03 Stefan Monnier <monnier@iro.umontreal.ca>
17023
17024 * frame.h (struct frame): Don't try to GC-mark menu_bar_items_used.
17025
17026 2007-10-02 Stefan Monnier <monnier@iro.umontreal.ca>
17027
17028 * window.h (struct window):
17029 * window.c (struct save_window_data, struct saved_window):
17030 * termhooks.h (struct terminal):
17031 * process.h (struct Lisp_Process):
17032 * frame.h (struct frame):
17033 * buffer.h (struct buffer):
17034 * lisp.h (struct Lisp_Vector, struct Lisp_Char_Table)
17035 (struct Lisp_Bool_Vector, struct Lisp_Subr, struct Lisp_Hash_Table):
17036 The size field of (pseudo)vectors is now unsigned.
17037 (ARRAY_MARK_FLAG, PSEUDOVECTOR_FLAG): Simplify accordingly.
17038
17039 * lisp.h (struct Lisp_Hash_Table): Move non-traced elements at the end.
17040 Turn `count' into an integer.
17041
17042 * fns.c (make_hash_table, hash_put, hash_remove, hash_clear)
17043 (sweep_weak_table, sweep_weak_hash_tables, Fhash_table_count):
17044 * print.c (print_object) <HASH_TABLE_P>: `count' is an int.
17045 * alloc.c (allocate_hash_table): Use ALLOCATE_PSEUDOVECTOR.
17046 (mark_object) <HASH_TABLE_P>: Use mark_vectorlike.
17047
17048 * alloc.c (allocate_pseudovector): New fun.
17049 (ALLOCATE_PSEUDOVECTOR): New macro.
17050 (allocate_window, allocate_terminal, allocate_frame)
17051 (allocate_process): Use it.
17052 (mark_vectorlike): New function.
17053 (mark_object) <FRAMEP, WINDOWP, BOOL_VECTOR_P, VECTORP>: Use it.
17054 (mark_terminals): Use it.
17055 (Fmake_bool_vector, Fmake_char_table, make_sub_char_table)
17056 (Fmake_byte_code): Use XSETPVECTYPE.
17057
17058 * frame.c (Fframe_parameters): Minor simplification.
17059
17060 * insdel.c (adjust_markers_for_insert): Generalize assertion checks.
17061
17062 * marker.c (Fmarker_buffer): Make test for odd case into a failure.
17063
17064 * buffer.c (Fget_buffer_create, init_buffer_once):
17065 * lread.c (defsubr):
17066 * window.c (Fcurrent_window_configuration): Use XSETPVECTYPE.
17067
17068 * lisp.h (ARRAY_MARK_FLAG, PSEUDOVECTOR_FLAG): Don't let them be
17069 defined differently in the m/*.h files.
17070 (XCHAR_TABLE, XBOOL_VECTOR): Add assertion checking.
17071 (XSETPVECTYPE): New macro.
17072 (XSETPSEUDOVECTOR): Use it.
17073
17074 * buffer.c (syms_of_buffer) <local-abbrev-table>: Move from abbrev.c.
17075 (DEFVAR_PER_BUFFER, defvar_per_buffer): Move from lisp.h and lread.c.
17076
17077 * lisp.h (defvar_per_buffer, DEFVAR_PER_BUFFER):
17078 * lread.c (defvar_per_buffer):
17079 * abbrev.c (syms_of_abbrev) <local-abbrev-tabl>: Move to buffer.c.
17080
17081 * window.c (candidate_window_p): Only consider as visible frames that
17082 are on the same terminal.
17083
17084 * m/ibms390x.h (MARKBIT): Remove unused macro.
17085
17086 2007-10-01 Juanma Barranquero <lekktu@gmail.com>
17087
17088 * lread.c (Fload): Fix typo in docstring.
17089
17090 2007-10-01 Michaël Cadilhac <michael@cadilhac.name>
17091
17092 * floatfns.c (Fexpt): Manually check for overflows, so that a power
17093 of a non-zero value can't yield zero.
17094
17095 2007-09-29 Stefan Monnier <monnier@iro.umontreal.ca>
17096
17097 * term.c (term_clear_mouse_face, term_mouse_highlight)
17098 (tty_write_glyphs_with_face): Only define is HAVE_GPM.
17099
17100 * print.c (safe_debug_print): Use XHASH.
17101
17102 * lisp.h (DECL_ALIGN, USE_LSB_TAG): Move logic to before definition of
17103 Lisp elements such as tags.
17104 (XHASH): New macro.
17105 (EQ): Use it.
17106 (SREF, SSET, STRING_COPYIN): Use SDATA.
17107 (VOID_TO_LISP, CVOID_TO_LISP, LISP_TO_VOID, LISP_TO_CVOID): Remove.
17108
17109 * alloc.c (mark_terminal): Remove left-over declaration.
17110 (enum mem_type): Replace all vector subtypes -> MEM_TYPE_VECTORLIKE.
17111 (allocate_vectorlike): Remove type argument. Adjust callers.
17112 (live_vector_p, mark_maybe_pointer, valid_lisp_object_p):
17113 Only handle the one remaining MEM_TYPE_VECTORLIKE.
17114
17115 * alloc.c (MALLOC_BLOCK_INPUT, MALLOC_UNBLOCK_INPUT): New macros
17116 to avoid unnecessary BLOCK_INPUTs when SYNC_INPUT is used.
17117 (xmalloc, xrealloc, xfree, lisp_malloc, lisp_free, lisp_align_malloc)
17118 (lisp_align_free, make_interval, allocate_string, allocate_string_data)
17119 (make_float, Fcons, allocate_vectorlike, Fmake_symbol, allocate_misc):
17120 Use them.
17121
17122 * xfaces.c (load_face_font, free_realized_face, clear_face_gcs):
17123 Don't let signal handlers run when a GC is freed but not yet NULL'ed.
17124 (x_free_gc): Remove BLOCK_INPUT since it's now redundant.
17125
17126 2007-09-28 Dan Nicolaescu <dann@ics.uci.edu>
17127
17128 * Makefile.in (lisp, shortlisp): Delete server.elc, it is not
17129 loaded by default.
17130
17131 2007-09-28 Stefan Monnier <monnier@iro.umontreal.ca>
17132
17133 * term.c (Fgpm_mouse_start): Don't signal an error if already activated
17134 on this tty.
17135 (Fgpm_mouse_stop): Only deactivate if it was activated on this tty.
17136
17137 * term.c (mouse_face_window): Rename from Qmouse_face_window.
17138 Update all users.
17139 (handle_one_term_event): Use Gpm_DrawPointer.
17140 (Fgpm_mouse_start): Rename from Fterm_open_connection.
17141 Signal errors instead of returning nil. Always return nil.
17142 (Fgpm_mouse_stop): Rename from Fterm_close_connection.
17143 Make it a noop if gpm-mouse was not activated.
17144 (syms_of_term): Update names.
17145
17146 2007-09-27 Stefan Monnier <monnier@iro.umontreal.ca>
17147
17148 * sysdep.c (narrow_foreground_group, widen_foreground_group): Static.
17149 (init_sys_modes): Check that gpm_tty is the current tty.
17150
17151 * alloc.c (allocate_terminal): Set the vector size to only count the
17152 lisp fields. Initialize those to nil.
17153 (mark_object): Don't treat terminals specially.
17154 (mark_terminal): Remove.
17155 (mark_terminals): Use mark_object instead.
17156
17157 * termhooks.h (struct terminal): Move all Lisp_Object fields traced by
17158 the GC to the beginning.
17159
17160 * indent.h:
17161 * indent.c: Use EMACS_INT for ints coming from Elisp data.
17162
17163 * indent.c (Fmove_to_column): Use EMACS_INT for buffer positions.
17164
17165 2007-09-25 Jason Rumney <jasonr@gnu.org>
17166
17167 * frame.c (make_terminal_frame): Remove special case for WINDOWSNT.
17168
17169 * w32console.c (create_w32cons_output): Remove.
17170
17171 * term.c (init_tty): Call init_sys_modes on WINDOWSNT also.
17172
17173 * sysdep.c (init_sys_modes): Use set_terminal_modes_hook.
17174 (reset_sys_modes): Use reset_terminal_modes_hook.
17175
17176 2007-09-24 Stefan Monnier <monnier@iro.umontreal.ca>
17177
17178 * eval.c (do_autoload): Don't output any message.
17179
17180 2007-09-24 Juri Linkov <juri@jurta.org>
17181
17182 * emacs.c (standard_args): Change priority of "--no-splash"
17183 from 40 to 3. Add "--no-desktop" with the same priority.
17184
17185 2007-09-23 Dmitry Antipov <dmantipov@yandex.ru>
17186
17187 * alloc.c (gc_sweep): Check cons cell mark bits word by word
17188 and optimize the case where they are all 1.
17189
17190 2007-09-23 Johannes Weiner <hannes@saeurebad.de>
17191
17192 * lisp.h (abs): Define if not defined.
17193 * keyboard.c, sound.c, w32term.c, xfaces.c, xterm.c:
17194 Don't define `abs', since it's defined in lisp.h.
17195
17196 2007-09-22 Eli Zaretskii <eliz@gnu.org>
17197
17198 * term.c (DEV_TTY): New macro. Provide a definition for MS-Windows.
17199 (FRAME_TERMCAP_P) [WINDOWSNT]: Don't define to zero.
17200 (Fcontrolling_tty_p, Fresume_tty, dissociate_if_controlling_tty)
17201 (init_tty): Use DEV_TTY instead of "/dev/tty".
17202 [WINDOWSNT]: No need to protect from NAME arg being null.
17203
17204 2007-09-21 Dan Nicolaescu <dann@ics.uci.edu>
17205
17206 * term.c (Fsuspend_tty): Run suspend-tty-functions before cleaning
17207 up the tty state.
17208
17209 2007-09-21 Stefan Monnier <monnier@iro.umontreal.ca>
17210
17211 * termhooks.h (term_gpm): Delete. Use gpm_tty's NULLness instead.
17212 (gpm_tty): Change its type.
17213 * term.c (term_gpm): Delete. Use gpm_tty's NULLness instead.
17214 (gpm_tty): Change its type and initialize it.
17215 (Fterm_open_connection): Check the frame is indeed a tty.
17216 Use the new gpm_tty.
17217 (Fterm_close_connection): Use the new gpm_tty.
17218 * keyboard.c (tty_read_avail_input): Use the new gpm_tty.
17219 * sysdep.c (init_sys_modes): term_gpm -> gpm_tty.
17220
17221 2007-09-21 Juanma Barranquero <lekktu@gmail.com>
17222
17223 * w32term.c (x_draw_glyph_string): Use strike_through_color, not
17224 underline_color, to draw strike-through.
17225
17226 2007-09-21 Stefan Monnier <monnier@iro.umontreal.ca>
17227
17228 * lisp.h (allocate_terminal): Declare.
17229
17230 * window.c (candidate_window_p): Consider frames that are being placed
17231 by the user as somewhere between visible and iconified.
17232 (window_loop): Prefer windows on the current frame.
17233 (Fselect_window): Move the use of select-frame to the beginning so we
17234 can just delegate all the work (it'll call us back anyway).
17235
17236 * frame.c (Qdisplay_environment_variable):
17237 * frame.h (Qdisplay_environment_variable): Delete.
17238
17239 * .gdbinit (xbacktrace): Print the arg's address rather than the value
17240 of the first arg, since that value may be a union.
17241
17242 * callproc.c (child_setup, getenv_internal): Use the frame's `display'
17243 parameter rather than Qdisplay_environment_variable. If all else
17244 fails, look for DISPLAY in initial-environment.
17245
17246 2007-09-21 Glenn Morris <rgm@gnu.org>
17247
17248 * Makefile.in (emacstool): Remove target.
17249 (lisp, shortlisp): Remove termdev.elc.
17250
17251 2007-09-21 Markus Triska <markus.triska@gmx.at>
17252
17253 * xterm.c (x_delete_display): Compile session management conditionally.
17254
17255 2007-09-20 Stefan Monnier <monnier@iro.umontreal.ca>
17256
17257 * callproc.c (getenv_internal_1): New function.
17258 (getenv_internal): Use it.
17259 (Fgetenv_internal): Use it. Accept an env-list as optional arg.
17260
17261 * terminal.c (get_terminal): Don't accept ints to represent terminals.
17262 (Fterminal_name, Fterminal_parameters, Fterminal_parameter)
17263 (Fset_terminal_parameter): Work with dead terminals as well.
17264 (Fmodify_terminal_parameters): Remove.
17265
17266 * terminal.c (get_terminal): Handle terminals.
17267 Make sure the terminal returned is live.
17268 (create_terminal): Use allocate_terminal.
17269 (mark_terminals): Move to alloc.c.
17270 (delete_terminal): Use terminal->name as liveness status.
17271 NULL out fields after freeing their contents.
17272 Don't deallocate the object.
17273 (Fframe_terminal): Use FRAME_TERMINAL. Return the terminal object
17274 rather than an int.
17275 (Fterminal_live_p): Accept non-integer arguments.
17276 (Fterminal_list): Return terminal objects rather than an ints.
17277
17278 * alloc.c (enum mem_type): New member for `terminal' objects.
17279 (allocate_terminal): New function.
17280 (mark_maybe_pointer, valid_lisp_object_p, mark_object):
17281 Handle terminals.
17282 (mark_terminal): New fun.
17283 (mark_terminals): Move from terminal.c.
17284
17285 * term.c (get_tty_terminal): Don't treat output_initial specially.
17286 (Fsuspend_tty, Fresume_tty): Use terminal objects rather than ints.
17287 (delete_tty): Use terminal->name as liveness status.
17288
17289 * termhooks.h (struct terminal): Make it into a pseudovector.
17290 Remove `deleted' replaced by checking `name's nullness.
17291
17292 * print.c (print_object): Handle terminals.
17293
17294 * lisp.h (enum pvec_type): New `terminal' pseudovector.
17295 (XTERMINAL, XSETTERMINAL, TERMINALP, GC_TERMINALP): New macros.
17296
17297 * frame.c (make_terminal_frame):
17298 * keyboard.c (tty_read_avail_input):
17299 * w32term.c (x_delete_terminal):
17300 * xfns.c (Fx_create_frame, x_create_tip_frame):
17301 * xterm.c (x_delete_terminal): Use terminal->name as liveness status.
17302
17303 2007-09-20 Glenn Morris <rgm@gnu.org>
17304
17305 * process.c (Fmake_network_process): Doc fix.
17306
17307 2007-09-19 Jason Rumney <jasonr@gnu.org>
17308
17309 * dispextern.h (w32_init_fringe, mac_init_fringe): Declare rif argument.
17310
17311 2007-09-19 Michaël Cadilhac <michael@cadilhac.name>
17312
17313 * coding.c (detect_eol_type, detect_eol_type_in_2_octet_form):
17314 Fix a C warning regarding variable constness.
17315
17316 * xterm.c (handle_one_xevent): Fix a C warning.
17317
17318 2007-09-18 Jason Rumney <jasonr@gnu.org>
17319
17320 * w32fns.c (Fx_focus_frame): Rename from Fw32_focus_frame.
17321
17322 2007-09-17 Jan Djärv <jan.h.d@swipnet.se>
17323
17324 * gtkutil.c (gdpy_def): New variable.
17325 (xg_initialize): Initialize gdpy_def.
17326 (xg_display_close): If no other display exists, set gdpy_def to a
17327 new connection.
17328
17329 2007-09-16 Jan Djärv <jan.h.d@swipnet.se>
17330
17331 * gtkutil.c (xg_get_image_for_pixmap): Always create a GdkPixbuf
17332 when we have no file name for the icon.
17333 (xg_tool_bar_expose_callback): Remove.
17334 (xg_create_tool_bar): Don't connect expose signal to
17335 xg_tool_bar_expose_callback.
17336 (xg_get_file_with_chooser): Move GCPRO1 after declarations.
17337
17338 2007-09-16 Andreas Schwab <schwab@suse.de>
17339
17340 * alloc.c (reset_malloc_hooks): Set the hooks to the previous
17341 values instead of zapping them.
17342
17343 2007-09-14 Glenn Morris <rgm@gnu.org>
17344
17345 * fringe.c (init_fringe_bitmap) <swap_nibble>: Move to file scope.
17346 * gtkutil.c (xg_separator_p) <separator_names>: Move to file scope.
17347 * image.c (our_memory_fill_input_buffer) <buffer>: Move to file
17348 scope and rename to omfib_buffer for clarity.
17349 (gif_load) <interlace_start, interlace_increment>: Move to file scope.
17350
17351 2007-09-14 Kenichi Handa <handa@m17n.org>
17352
17353 * xterm.c (handle_one_xevent): Skip decoding if nbytes is zero.
17354
17355 2007-09-13 Jason Rumney <jasonr@gnu.org>
17356
17357 * fringe.c (w32_init_fringe, mac_init_fringe): Add rif argument.
17358
17359 * w32term.c (w32_term_init): Pass rif to w32_init_fringe.
17360
17361 * macterm.c (mac_initialize): Don't call mac_init_fringe here.
17362 (mac_term_init): Call here instead, passing rif.
17363
17364 2007-09-13 Glenn Morris <rgm@gnu.org>
17365
17366 * s/hpux.h: No longer define `static' as nothing.
17367
17368 2007-09-13 Johan Bockgård <bojohan@gnu.org>
17369
17370 * callint.c (Fcall_interactively): Remove unused var `fun'.
17371
17372 2007-09-12 Romain Francoise <romain@orebokech.com>
17373
17374 * window.c (prefer_window_split_horizontally, display_buffer):
17375 Revert 2007-09-08 change.
17376
17377 2007-09-12 Glenn Morris <rgm@gnu.org>
17378
17379 * alloca.c: Remove file.
17380 * Makefile.in (alloca): Do not undef.
17381 (allocaobj, alloca.o): Remove.
17382 (otherobj): Remove allocaobj.
17383 * keyboard.c (command_loop_1): Remove #ifdef C_ALLOCA block.
17384 * regex.c (C_ALLOCA): Remove all references and code that was only
17385 used when this was defined.
17386 * search.c (boyer_moore): Remove #ifdef C_ALLOCA block.
17387 * xmenu.c (xmenu_show): Remove #ifdef C_ALLOCA block.
17388 * m/ibms390x.h, m/sh3el.h (C_ALLOCA): Remove references to this.
17389
17390 * Makefile.in (SOURCES, unlock, relock): Delete.
17391
17392 * gtkutil.c (cnt): Rename to menu_grab_callback_cnt for clarity.
17393 (menu_grab_callback): All uses changed.
17394
17395 * xselect.c (cnt): Rename to x_reply_selection_request_cnt for clarity.
17396 (x_reply_selection_request): All uses changed.
17397
17398 2007-09-11 Stefan Monnier <monnier@iro.umontreal.ca>
17399
17400 * lread.c (load_warn_old_style_backquotes): Change message to look
17401 better when it appears in the middle of byte-compiler messages.
17402
17403 2007-09-10 Dan Nicolaescu <dann@ics.uci.edu>
17404
17405 * s/darwin.h (MULTI_KBOARD): Only define for Carbon.
17406
17407 * xterm.c (x_create_terminal): Add comment.
17408
17409 * term.c (clear_tty_hooks, set_tty_hooks): Add comments.
17410
17411 2007-09-10 Richard Stallman <rms@gnu.org>
17412
17413 * xterm.c (x_term_init): Give error if can't open DISPLAY_NAME.
17414
17415 2007-09-10 Michaël Cadilhac <michael@cadilhac.name>
17416
17417 * lisp.h (struct Lisp_Subr): Rename `prompt' field to `intspec'.
17418 (DEFUN): Document `intspec', use it instead of `prompt'.
17419
17420 * eval.c (Fcommandp): Change `->prompt' to `->intspec'.
17421
17422 * data.c (Finteractive_form): If the interactive specification starts
17423 with a `(', use it as a Lisp form.
17424
17425 * fileio.c (Fset_file_modes): Add an interactive spec that reads a file
17426 name and file modes.
17427
17428 * callint.c (Fcall_interactively): Comment fixes.
17429
17430 2007-09-10 Stefan Monnier <monnier@iro.umontreal.ca>
17431
17432 * callint.c (Fcall_interactively): Use Finteractive_form also for subrs
17433 and compiled functions.
17434
17435 2007-09-08 Fredrik Axelsson <f.axelsson@gmail.com>
17436
17437 * window.c (prefer_window_split_horizontally): New variable.
17438 (display_buffer): Consider splitting window horizontally depending
17439 on prefer_window_split_horizontally.
17440
17441 2007-09-08 Eli Zaretskii <eliz@gnu.org>
17442
17443 * sysdep.c [WINDOWSNT]: Don't include sysselect.h.
17444
17445 2007-09-07 Stefan Monnier <monnier@iro.umontreal.ca>
17446
17447 * s/cygwin.h (GC_MARK_STACK): Enable conservative stack marking.
17448
17449 * frame.c (x_set_frame_parameters): Check number is positive before
17450 using XFASTINT.
17451
17452 * window.c (freeze_window_start): Don't presume selected_window holds
17453 a window object.
17454 (Fdisplay_buffer): Remove `register' since `buffer' needs to be gcpro'd.
17455
17456 2007-09-07 Angelo Graziosi <Angelo.Graziosi@roma1.infn.it> (tiny change)
17457
17458 * term.c (dissociate_if_controlling_tty): Call setsid on CYGWIN.
17459
17460 2007-09-07 Stefan Monnier <monnier@iro.umontreal.ca>
17461
17462 * window.c (Vsplit_window_preferred_function): New var.
17463 (Fdisplay_buffer): Use it.
17464 (syms_of_window): Export, and initialize it.
17465
17466 2007-09-06 Pixel <pixel@mandriva.com> (tiny change)
17467
17468 * image.c (gif_load): Fix bug: Handle nonexistent colormap.
17469
17470 2007-09-06 Glenn Morris <rgm@gnu.org>
17471
17472 * gtkutil.c (menu_grab_callback) <cnt>:
17473 * xselect.c (x_reply_selection_request) <cnt>: Move static
17474 variable to file scope.
17475
17476 2007-09-06 Stefan Monnier <monnier@iro.umontreal.ca>
17477
17478 * xdisp.c (redisplay_internal): Make sure Elisp code always sees
17479 consistent values of selected_frame and selected_window.
17480
17481 2007-09-04 Jason Rumney <jasonr@gnu.org>
17482
17483 * w32console.c (initialize_w32_display): Zero unused hooks.
17484
17485 2007-09-04 Dan Nicolaescu <dann@ics.uci.edu>
17486
17487 * term.c (Vsuspend_tty_functions, Vresume_tty_functions)
17488 (syms_of_term, Fsuspend_tty, Fresume_tty): Undo previous change.
17489
17490 2007-09-04 Jason Rumney <jasonr@gnu.org>
17491
17492 * term.c (init_tty) [WINDOWSNT]: Add hooks that are not accessible
17493 in w32console.c. Set up input. Remove XXX comments that have been
17494 confirmed as correct.
17495
17496 * s/ms-w32.h (MULTI_KBOARD): Define.
17497
17498 * w32console.c (one_and_only_w32cons): Remove.
17499 (initialize_w32_display): Take terminal argument.
17500
17501 * term.c (init_tty) [WINDOWSNT]: Pass terminal to
17502 initialize_w32_display.
17503 (init_tty) [MULTI_KBOARD]: Include this code on WINDOWSNT too.
17504
17505 * termhooks.h (enum event_kind) <HORIZ_WHEEL_EVENT>: New event.
17506
17507 * keyboard.c (discard_mouse_events): Discard it.
17508 (make_lispy_event): Translate it to a lisp event.
17509 (lispy_wheel_names): Add wheel-left and right events.
17510 (syms_of_keyboard): Enlarge wheel_syms.
17511
17512 * w32fns.c (w32_wnd_proc) <WM_DROPFILES>: Merge with WM_MOUSEWHEEL.
17513 <WM_MOUSEHWHEEL>: Pass new system message to lisp.
17514
17515 * w32term.h (WM_MOUSEHWHEEL): Define if system headers don't.
17516
17517 * w32term.c (construct_mouse_wheel): Make HORIZ_WHEEL_EVENT
17518 from WM_MOUSEHWHEEL.
17519 (w32_read_socket) <WM_MOUSEHWHEEL>: Treat as WM_MOUSEWHEEL.
17520
17521 * w32fns.c (x_create_tip_frame) [MULTI_KBOARD]: Get keyboard from
17522 terminal.
17523
17524 * w32term.c (w32_create_terminal) [MULTI_KBOARD]: Create a new
17525 keyboard for the terminal.
17526
17527 2007-09-04 Dan Nicolaescu <dann@ics.uci.edu>
17528
17529 * term.c (Vsuspend_tty_hook): Rename from Vsuspend_tty_functions.
17530 (Vresume_tty_hook): Rename from Vresume_tty_functions.
17531 (syms_of_term): Rename suspend-tty-functions to suspend-tty-hook
17532 and resume-tty-function to resume-tty-hook.
17533 (Fsuspend_tty, Fresume_tty): Use new names.
17534
17535 2007-09-02 Jan Djärv <jan.h.d@swipnet.se>
17536
17537 * gtkutil.c (update_frame_tool_bar): Handle stock name as a named icon
17538 if it starts with "n:".
17539
17540 2007-08-31 Jan Djärv <jan.h.d@swipnet.se>
17541
17542 * gtkutil.c (update_frame_tool_bar): Initialize wbutton to NULL.
17543
17544 2007-08-31 Stefan Monnier <monnier@iro.umontreal.ca>
17545
17546 * frame.h:
17547 * frame.c (Qterm_environment_variable): Remove.
17548 (syms_of_frame): Don't init and staticpro it.
17549
17550 * callproc.c (getenv_internal): Remove special case for $TERM.
17551
17552 * callproc.c (Vinitial_environment): New variable.
17553 (set_initial_environment): Initialize it.
17554 (syms_of_callproc): Declare it.
17555 (child_setup): Don't mess with TERM via Qterm_environment_variable; the
17556 TERM under which a process runs is never related to the TERM in which
17557 Emacs is running.
17558
17559 2007-08-29 Dan Nicolaescu <dann@ics.uci.edu>
17560
17561 * config.in (HAVE_WINDOW_SYSTEM): Don't undef MULTI_KBOARD here...
17562 * s/darwin.h: ... do it here.
17563
17564 2007-08-29 Stefan Monnier <monnier@iro.umontreal.ca>
17565
17566 * lisp.h (set_initial_environment): Rename from set_global_environment.
17567
17568 * Makefile.in (${etc}DOC): Re-add a ${EXEEXT} which seems to have been
17569 removed by mistake on the multi-tty branch.
17570
17571 * frame.c (make_terminal_frame): Yet Another Int/Lisp_Object Mixup.
17572 (Fmodify_frame_parameters): Return a value.
17573
17574 * image.c (png_load): Comment-out var only used in commented-out code.
17575
17576 * term.c (mark_ttys): Don't bother checking top_frame (incorrectly)
17577 before passing it to mark_object.
17578
17579 * xfaces.c (internal_resolve_face_name): Return a value.
17580 (internal_resolve_face_name, resolve_face_name_error): Comment out.
17581
17582 * xfns.c (check_x_display_info): Yet Another Int/Lisp_Object Mixup.
17583 (x_icon): Comment-out var only used in commented-out code.
17584
17585 2007-08-29 Romain Francoise <romain@orebokech.com>
17586
17587 * keyboard.c (Fset_input_mode): Don't call `Fset_quit_char' if
17588 QUIT hasn't been provided.
17589
17590 2007-08-29 Dan Nicolaescu <dann@ics.uci.edu>
17591
17592 * callproc.c (child_setup, getenv_internal): Use the
17593 display-environment-variable and term-environment-variable frame params.
17594 (set_initial_environment): Initialise Vprocess_environment.
17595
17596 * config.in: Disable multi-keyboard support on a mac.
17597
17598 * frame.c (Qterm_environment_variable)
17599 (Qdisplay_environment_variable): New variables.
17600 (syms_of_frame): Intern and staticpro them.
17601 (Fmake_terminal_frame): Disable output method test.
17602
17603 * frame.h: Declare them here.
17604
17605 * macfns.c (x_set_mouse_color): Get rif from the frame.
17606 (x_set_tool_bar_lines): Don't use updating_frame.
17607 (mac_window): Add 2 new parameters for consistency with other systems.
17608 (Fx_create_frame): Fix doc string. Rename the parameter. Set the
17609 frame parameters following what is done in X11 and w32. Don't use
17610 FRAME_MAC_DISPLAY_INFO.
17611 (Fx_open_connection, start_hourglass): Remove window-system check.
17612 (x_create_tip_frame): Get the keyboard from the terminal.
17613
17614 * macmenu.c: Reorder includes.
17615 (Fx_popup_menu): Use terminal specific mouse_position_hook.
17616
17617 * macterm.c (XTset_terminal_modes, XTreset_terminal_modes): Add a
17618 terminal parameter.
17619 (x_clear_frame): Add a frame parameter.
17620 (note_mouse_movement): Get rif from the frame.
17621 (mac_term_init): Initialize the terminal.
17622 (mac_initialize): Make static and move terminal initialization ...
17623 (mac_create_terminal): ... to this new function.
17624
17625 * macterm.h (struct mac_display_info): Add terminal.
17626 (mac_initialize): Delete declaration.
17627
17628 * puresize.h (BASE_PURESIZE): Increase base value to 1164000.
17629
17630 * sysdep.c: Comment out text after #endif.
17631
17632 * term.c (init_tty): Only use terminal->kboard when MULTI_KBOARD
17633 is defined. Better initialize ttys in windows. Use terminal
17634 specific mouse_position_hook.
17635
17636 * termhooks.h (union display_info): Add mac_display_info.
17637
17638 * w32fns.c (Fx_create_frame): Use kboard from the terminal.
17639 Set the default minibuffer frame, window_system and the rest of the
17640 frame parameters following what is done in X11.
17641
17642 * w32term.c (w32_initialize): Make static.
17643
17644 * xselect.c (x_handle_selection_clear): Only access
17645 terminal->kboard when MULTI_KBOARD is defined.
17646
17647 * s/darwin.h (SYSTEM_PURESIZE_EXTRA): Define here.
17648 (SYSTEM_PURESIZE_EXTRA): Only define on Carbon.
17649
17650 2007-08-29 Jason Rumney <jasonr@gnu.org>
17651
17652 * frame.c (Fdelete_frame): Only get kboard when MULTI_KBOARD defined.
17653 (make_terminal_frame) [WINDOWSNT]: Initialize terminal.
17654
17655 * fringe.c (w32_init_fringe w32_reset_fringes) [HAVE_NTGUI]:
17656 (mac_init_fringe) [MAC_OS]: Get rif from selected_frame.
17657
17658 * keyboard.c (restore_kboard_configuration): Only define when
17659 MULTI_KBOARD defined.
17660
17661 * makefile.w32-in: Update dependancies from Makefile.in.
17662 (OBJ1): Add terminal.$(O)
17663
17664 * term.c (dissociate_if_controlling_tty) [WINDOWSNT]:
17665 Don't define function body.
17666 (init_tty) [WINDOWSNT]: Use selected_frame for initializing.
17667
17668 * termhooks.h (display_info) [WINDOWSNT]: Add w32.
17669
17670 * w32.c (request_sigio, unrequest_sigio): Remove.
17671
17672 * w32console.c (w32con_move_cursor, w32con_clear_to_end)
17673 (w32con_clear_frame, w32con_clear_end_of_line)
17674 (w32con_ins_del_lines, w32con_insert_glyphs, w32con_write_glyphs)
17675 (w32con_delete_glyphs, w32con_set_terminal_window)
17676 (scroll_line, w32_sys_ring_bell): Add frame arg.
17677 (w32con_set_terminal_modes, w32con_reset_terminal_modes):
17678 Add terminal arg.
17679 (PICK_FRAME): Remove.
17680 (w32con_write_glyphs): Use frame specific terminal coding.
17681 (one_and_only_w32cons): New global variable.
17682 (initialize_w32_display): Use it for storing hooks.
17683 (create_w32cons_output): New function.
17684
17685 * w32inevt.c, w32inevt.h (w32_console_read_socket): Make first
17686 arg a frame.
17687
17688 * w32fns.c (x_create_tip_frame): Set terminal and ref count.
17689 Set window_system.
17690 (x_set_tool_bar_lines): Don't use updating_frame.
17691 (Fx_create_frame): Set terminal and ref count.
17692 (Fx_open_connection): Remove window-system check.
17693
17694 * w32menu.c (Fx_popup_menu): Use terminal specific mouse_position_hook.
17695
17696 * w32term.c (w32_term_init): Call add_keyboard_wait_descriptor.
17697 (w32_set_terminal_modes, w32_reset_terminal_modes): Add terminal arg.
17698 (x_clear_frame, x_delete_glyphs, w32_ring_bell, x_ins_del_lines):
17699 Add frame arg.
17700 (x_delete_terminal, w32_create_terminal): New functions.
17701 (w32_term_init): Create a terminal.
17702 (w32_initialize): Move terminal specific initialization to
17703 w32_create_terminal.
17704
17705 * w32term.h (x_output): Remove foreground_pixel and background_pixel.
17706 (w32_clear_rect, w32_clear_area): Use background from frame.
17707 (w32_display_info): Add terminal.
17708 (w32_sys_ring_bell, x_delete_display): Declare here.
17709
17710 * xdisp.c (display_menu_bar) [HAVE_NTGUI]: Check frame type.
17711
17712 * s/ms-w32.h (SYSTEM_PURESIZE_EXTRA): Bump to 50k.
17713
17714 2007-08-29 Kalle Olavi Niemitalo <kon@iki.fi> (tiny change)
17715
17716 * keyboard.c (interrupt_signal, handle_interrupt, Fset_quit_char):
17717 Fix get_named_tty calls for the controlling tty.
17718
17719 2007-08-29 ARISAWA Akihiro <ari@mbf.ocn.ne.jp> (tiny change)
17720
17721 * term.c (dissociate_if_controlling_tty)[USG]: Fix parse error.
17722
17723 2007-08-29 Yoshiaki Kasahara <kasahara@nc.kyushu-u.ac.jp> (tiny change)
17724
17725 * term.c (tty_insert_glyphs): Add missing first parameter.
17726
17727 2007-08-29 Károly Lőrentey <karoly@lorentey.hu>
17728
17729 * buffer.c (Fbuffer_list, Fbury_buffer):
17730 Take frame->buried_buffer_list into account.
17731
17732 * cm.c (current_tty): New variable, for cmputc().
17733 (cmputc): Use it.
17734 (cmcheckmagic): Add tty parameter, look up terminal streams there.
17735 (calccost): Add tty parameter. Use emacs_tputs() instead of tputs().
17736 (cmgoto): Add tty parameter. Pass it on to calccost().
17737 Use emacs_tputs() instead of tputs().
17738
17739 * cm.h (emacs_tputs): New macro to set current_tty, and then call
17740 tputs().
17741 (current_tty): New variable, for cmputc().
17742 (cmcheckmagic, cmputc, cmgoto): Add prototypes.
17743
17744 * eval.c (unwind_to_catch): Don't call x_fully_uncatch_errors.
17745 (internal_condition_case, internal_condition_case_1)
17746 (internal_condition_case_2): Don't abort when x_catching_errors.
17747
17748 * fns.c (Fyes_or_no_p): Don't try to open an X dialog on tty terminals.
17749 (Fy_or_n_p): Likewise. Use temporarily_switch_to_single_kboard to
17750 prevent crashes caused by bogus longjmps in read_char.
17751
17752 * keymap.h (Fset_keymap_parent): Add EXFUN.
17753
17754 * macterm.h (FRAME_FOREGROUND_PIXEL, FRAME_BACKGROUND_PIXEL)
17755 * w32term.h (FRAME_FOREGROUND_PIXEL, FRAME_BACKGROUND_PIXEL):
17756 Remove redundant definition.
17757
17758 * macfns.c (x_set_mouse_color, x_make_gc):
17759 Use FRAME_BACKGROUND_PIXEL and FRAME_FOREGROUND_PIXEL.
17760
17761 * w32term.c (x_free_frame_resources):
17762 Use FRAME_BACKGROUND_PIXEL and FRAME_FOREGROUND_PIXEL.
17763 (w32_initialize): Use the accessor macros for terminal characteristics.
17764
17765 * macterm.c (mac_initialize): Use Fset_input_interrupt_mode.
17766 Use the accessor macros for terminal characteristics.
17767 * msdos.c (internal_terminal_init): Use the accessor macros for
17768 terminal characteristics.
17769 (ScreenVisualBell, internal_terminal_init):
17770 Use FRAME_BACKGROUND_PIXEL and FRAME_FOREGROUND_PIXEL.
17771
17772 * termopts.h (no_redraw_on_reenter): Declare.
17773
17774 * alloc.c (emacs_blocked_malloc): Disable mallopt call.
17775 (mark_terminals, mark_ttys): Declare.
17776 (Fgarbage_collect): Call them.
17777 (mark_object): Mark buried_buffer_list.
17778
17779 * prefix-args.c: Include stdlib.h for exit.
17780
17781 * syssignal.h: Add comment.
17782
17783 * indent.c: Include stdio.h.
17784
17785 * window.h (Vinitial_window_system): Declare.
17786 (Vwindow_system): Delete declaration.
17787
17788 * fontset.c (Finternal_char_font): Use FRAME_RIF.
17789
17790 * image.c (lookup_image): Don't initialize `c' until the xasserts
17791 have been run.
17792
17793 * gtkutil.c (xg_create_frame_widgets): Use FRAME_BACKGROUND_PIXEL and
17794 FRAME_FOREGROUND_PIXEL.
17795
17796 * print.c (print_preprocess): Don't lose print_depth levels while
17797 iterating.
17798
17799 * widget.c (update_from_various_frame_slots):
17800 Use FRAME_BACKGROUND_PIXEL and FRAME_FOREGROUND_PIXEL.
17801
17802 * window.c (set_window_buffer): Don't call clear_mouse_face on tty
17803 frames.
17804 (window_internal_height): Remove bogus make_number call.
17805 (init_window_once): Call make_terminal_frame with two zero parameters.
17806
17807 * fileio.c (Fread_file_name): Update comment.
17808
17809 * callint.c (Fcall_interactively):
17810 Use temporarily_switch_to_single_kboard instead of single_kboard_state.
17811 Make sure it is correctly unwound.
17812
17813 * xsmfns.c (x_session_close): New function.
17814
17815 * coding.h (terminal_coding, safe_terminal_coding, keyboard_coding):
17816 Delete declarations.
17817
17818 * xterm.h: Remove declaration for x_fully_uncatch_errors.
17819 (x_output): Remove background_pixel and foreground_pixel fields.
17820 (x_display_info): Add new field TERMINAL. Remove KBOARD field.
17821 (x_delete_device, x_session_close): Declare.
17822
17823 * lread.c: Include setjmp.h. Update declaration of `read_char'.
17824 (read_filtered_event): Call `read_char' with a local
17825 `wrong_kboard_jmpbuf'.
17826
17827 * minibuf.c (read_minibuf): Call temporarily_switch_to_single_kboard.
17828 Don't call single_kboard_state. Use FRAME_RIF.
17829
17830 * process.c (Fmake_network_process): Don't unrequest_sigio on modern
17831 systems.
17832
17833 * lisp.h (set_process_environment): Rename to `set_global_environment'.
17834 (Fframe_with_environment, Fset_input_meta_mode)
17835 (Fset_quit_char): EXFUN.
17836 (x_create_device, tty_output, terminal, tty_display_info): Declare.
17837 (init_sys_modes, reset_sys_modes): Update prototypes.
17838 (init_all_sys_modes, reset_all_sys_modes): New prototypes.
17839
17840 * keyboard.h (struct kboard): Add new fields Vlocal_function_key_map,
17841 Vlocal_key_translation_map, and Vkeyboard_translate_table.
17842 (Vfunction_key_map, Vkeyboard_translate_table, single_kboard_state):
17843 Delete declarations.
17844 (Vfunction_key_map, Vkey_translation_map, push_kboard, pop_kboard)
17845 (temporarily_switch_to_single_kboard, tty_read_avail_input):
17846 New declarations.
17847
17848 * emacs.c (main): Don't call init_sys_modes(), the new term_init()
17849 already does that during init_display(). Call syms_of_keymap
17850 before syms_of_keyboard. Call `syms_of_terminal'.
17851 Call set_initial_environment, not set_process_environment.
17852 (shut_down_emacs): Call reset_all_sys_modes() instead of
17853 reset_sys_modes().
17854
17855 * xfaces.c (x_free_gc): Protect xassert with GLYPH_DEBUG.
17856 (internal_resolve_face_name, resolve_face_name_error): New functions.
17857 (resolve_face_name): Protect against loops and errors thrown by Fget.
17858 (realize_default_face): Don't use FRAME_FONT unless frame is an X frame.
17859 (Ftty_supports_face_attributes_p): Update tty_capable_p call.
17860
17861 * scroll.c: Replace CURTTY() with local variables throughout the
17862 file (where applicable).
17863 (calculate_scrolling, calculate_direct_scrolling)
17864 (scrolling_1, scroll_cost): Use the accessor macros for terminal
17865 characteristics.
17866
17867 * keymap.c (Vfunction_key_map): Remove.
17868 (Fdescribe_buffer_bindings): Update references to Vfunction_key_map.
17869 (syms_of_keymap): Remove DEFVAR for Vfunction_key_map.
17870 (Vkey_translation_map): Remove.
17871 (syms_of_keymap): Remove DEFVAR for key-translation-map.
17872 (Fdescribe_buffer_bindings)
17873 (read_key_sequence, init_kboard, syms_of_keyboard, mark_kboards):
17874 Update for terminal-local key-translation-map.
17875
17876 * Makefile.in (callproc.o): Update dependencies.
17877 (lisp, shortlisp): Add termdev.elc.
17878 (obj): Add terminal.o.
17879 (terminal.o): Add dependencies.
17880 [HAVE_CARBON]: Make terminal.o depend on macgui.h.
17881 (data.o, fns.o): Add termhooks.h dependency.
17882 (SOME_MACHINE_LISP): Add dnd.elc.
17883 (minibuf.o): Fix typo.
17884 Update dependencies.
17885
17886 * data.c (do_symval_forwarding, store_symval_forwarding)
17887 (find_symbol_value): Use the selected frame's keyboard, not
17888 current_kboard.
17889
17890 * .gdbinit (init_sys_modes): Use Vinitial_window_system instead of
17891 Vwindow_system.
17892
17893 * xmenu.c (Fx_menu_bar_open) [USE_X_TOOLKIT, USE_GTK]: Rename from
17894 Fmenu_bar_open.
17895 (syms_of_xmenu): Update defsubr.
17896 (mouse_position_for_popup, Fx_popup_menu)
17897 (Fx_popup_dialog, x_activate_menubar, update_frame_menubar)
17898 (set_frame_menubar, free_frame_menubar)
17899 (create_and_show_popup_menu, xmenu_show)
17900 (create_and_show_dialog, xdialog_show, xmenu_show): Abort if not
17901 an X frame.
17902
17903 * xselect.c (x_own_selection): Abort if not an X frame.
17904 (some_frame_on_display): Check if it is an X frame.
17905 (x_handle_selection_clear): Deal with MULTI_KBOARD.
17906
17907 * coding.c: Include frame.h and termhooks.h.
17908 (terminal_coding, keyboard_coding): Delete.
17909 (Fset_terminal_coding_system_internal)
17910 (Fset_keyboard_coding_system_internal)
17911 (Fkeyboard_coding_system)
17912 (Fterminal_coding_system): Add a terminal parameter.
17913 Get terminal_coding from the terminal.
17914 (init_coding_once): Don't call setup_coding_system here.
17915
17916 * dispextern.h (set_scroll_region, turn_off_insert)
17917 (turn_off_highlight, background_highlight, clear_end_of_line_raw)
17918 (tty_clear_end_of_line, tty_setup_colors)
17919 (delete_tty, updating_frame)
17920 (produce_special_glyphs, produce_glyphs, write_glyphs)
17921 (insert_glyphs): Remove.
17922 (raw_cursor_to, clear_to_end, tty_turn_off_insert)
17923 (tty_turn_off_highlight, get_tty_size): Add declaration.
17924 (tabs_safe_p, init_baud_rate, get_tty_terminal): Update prototypes.
17925
17926 * frame.h (enum output_method): Add output_initial.
17927 (struct x_output): Delete.
17928 (FRAME_FOREGROUND_PIXEL, FRAME_BACKGROUND_PIXEL):
17929 Access foreground_pixel and background_pixel directly from the frame.
17930 (tty_display): Delete.
17931 (struct frame): Add buried_buffer_list, foreground_pixel,
17932 background_pixel and terminal. Delete kboard.
17933 (union output_data): Add tty.
17934 (FRAME_KBOARD): Get the kboard from the terminal.
17935 (FRAME_INITIAL_P): New macro.
17936 (Qtty, Qtty_type, Qterminal, Qterminal_live_p, Qenvironment)
17937 (Qterm_environment_variable, Qdisplay_environment_variable)
17938 (make_terminal_frame, Qburied_buffer_list, Qwindow_system):
17939 New declarations.
17940
17941 * termchar.h (tty_output, tty_display_info): New structures.
17942 (tty_list): Declare.
17943 (FRAME_TTY, CURTTY): New macros.
17944 (must_write_spaces, min_padding_speed, fast_clear_end_of_line)
17945 (line_ins_del_ok, char_ins_del_ok, scroll_region_ok)
17946 (scroll_region_cost, memory_below_frame, fast_clear_end_of_line)
17947 (dont_calculate_costs, no_redraw_on_reenter): Remove declarations.
17948
17949 * callproc.c: Include frame.h and termhooks.h, for terminal
17950 parameters.
17951 (add_env): New function.
17952 (child_setup): Use it.
17953 (child_setup, getenv_internal): Handle the new Vprocess_environment.
17954 (getenv_internal): Fix get_terminal_param call.
17955 (Fgetenv_internal, egetenv): Update doc.
17956 (syms_of_callproc): Initialize Vprocess_environment to nil.
17957 Register and initialize them. Remove obsolete defvars. Update doc
17958 strings.
17959 (child_setup): Handle Vlocal_environment_variables.
17960 (getenv_internal): Add terminal parameter.
17961 Handle Vlocal_environment_variables.
17962 (Fgetenv_internal): Add terminal parameter.
17963 (child_setup, getenv_internal, Fgetenv_internal): Store the local
17964 environment in a frame (not terminal) parameter. Update doc strings.
17965 (set_initial_environment): Rename from set_global_environment.
17966 Store Emacs environment in initial frame parameter.
17967
17968 * xdisp.c (redisplay_internal): Update references to
17969 `previous_terminal_frame'.
17970 (display_mode_line, Fformat_mode_line): Replace calls to
17971 `push_frame_kboard' with `push_kboard'.
17972 (get_glyph_string_clip_rects): Add extra parentheses and
17973 braces to prevent compiler warnings.
17974 (calc_pixel_width_or_height): Add xassert to check that the
17975 frame is alive. Don't call `lookup_image' on a termcap frame.
17976 (message2_nolog, message3_nolog, redisplay_internal)
17977 (set_vertical_scroll_bar, redisplay_window, check_x_display_info)
17978 (x_set_scroll_bar_foreground, x_set_scroll_bar_background)
17979 (Fx_create_frame, Fxw_display_color_p, Fx_display_grayscale_p)
17980 (Fx_display_pixel_width, Fx_display_pixel_height)
17981 (Fx_display_planes, Fx_display_color_cells)
17982 (Fx_server_max_request_size, Fx_server_vendor, Fx_server_version)
17983 (Fx_display_screens, Fx_display_mm_height, Fx_display_mm_width)
17984 (Fx_display_backing_store, Fx_display_visual_class)
17985 (Fx_display_save_under, Fx_close_connection, x_create_tip_frame):
17986 Use FRAME_TERMINAL_P, FRAME_WINDOW_P, FRAME_TTY and FRAME_RIF.
17987
17988 * xfns.c (x_set_foreground_color x_set_background_color)
17989 (x_set_mouse_color, x_set_cursor_color, x_make_gc):
17990 Use FRAME_BACKGROUND_PIXEL and FRAME_FOREGROUND_PIXEL.
17991 (Fx_create_frame, x_create_tip_frame, build_string, x_window)
17992 (Fx_create_frame, x_create_tip_frame): Don't create frames on a
17993 terminal that is being deleted.
17994 (Fx_create_frame): Use `store_frame_param' to set `window-system'
17995 frame parameter, and make sure it overrides any user-supplied setting.
17996 (Fx_close_connection, Fx_synchronize): Unify argument names with
17997 the rest of the DEFUNs.
17998
17999 * dispnew.c (Fsend_string_to_terminal): Update call to
18000 `get_tty_terminal'.
18001 (Fredraw_frame, Fsend_string_to_terminal)
18002 (Fsend_string_to_terminal, init_display): Use FRAME_RIF,
18003 FRAME_TERMCAP_P and FRAME_TTY.
18004 (window_change_signal): Don't believe width/height values that are
18005 impossibly small.
18006 (Vinitial_window_system): Rename from Vwindow_system.
18007 (termscript, Wcm, rif): Delete.
18008
18009 * termhooks.h (struct terminal): New struct containing the
18010 previously global text display hooks and new members NAME,
18011 DELETED and PARAM_ALIST.
18012 (FRAME_TERMINAL, TERMINAL_TERMINAL_CODING)
18013 (TERMINAL_KEYBOARD_CODING, TERMINAL_ACTIVE_P, FRAME_WINDOW_P)
18014 (FRAME_RIF): New macros.
18015 (get_terminal_param, get_device): New declarations.
18016 (termscript): Delete declaration.
18017
18018 * xterm.c (x_initialize): Use Fset_input_interrupt_mode.
18019 (XTflash, x_free_frame_resources, x_scroll_bar_create)
18020 (x_scroll_bar_set_handle): Use FRAME_BACKGROUND_PIXEL and
18021 FRAME_FOREGROUND_PIXEL.
18022 (x_fully_uncatch_errors): Disable definition.
18023 (x_scroll_bar_expose): Fix reference to foreground pixel.
18024 (XTread_socket): Disable loop on all X displays.
18025 (x_delete_terminal): Don't set terminal->deleted and let
18026 delete_terminal delete the frames on the terminal.
18027 (x_delete_display): Doc update to reflect changes in
18028 delete_terminal.
18029 (x_display_info) <terminal>: Move member earlier in the struct.
18030 (deleting_tty): Remove old variable.
18031 (Fsuspend_tty): Call clear_tty_hooks.
18032 (Fresume_tty, init_tty): Call set_tty_hooks.
18033 (Ftty_display_color_p, Ftty_display_color_cells): Don't throw
18034 errors on X frames.
18035 (x_catch_errors_unwind): Abort if x_error_message is NULL.
18036 (handle_one_xevent): Initialize `f' to NULL.
18037 (x_delete_terminal, x_create_terminal): New functions.
18038 (XTset_terminal_modes, XTreset_terminal_modes)
18039 (XTread_socket, x_connection_closed, x_term_init)
18040 (x_term_init, x_delete_display): Add terminal parameter.
18041 (x_term_init) [!HAVE_GTK_MULTIDISPLAY]: Refuse to create secondary
18042 X connections.
18043
18044 * frame.c: Include termchar.h.
18045 (Qterminal, Qterminal_live_p, Qburied_buffer_list, Qtty, Qtty_type)
18046 (Qwindow_system, Qenvironment, Qterm_environment_variable)
18047 (Qdisplay_environment_variable): New vars.
18048 (Fframep): Deal with output_initial.
18049 (Fframe-live-p): Doc fix.
18050 (Fwindow-system): New function.
18051 (x_set_screen_gamma, store_frame_param): Fix compilation errors.
18052 (make_terminal_frame): Don't create frames on a terminal that is
18053 being deleted. Use FRAME_BACKGROUND_PIXEL and FRAME_FOREGROUND_PIXEL.
18054 (store_frame_param): Check for found_for_frame before calling XFRAME.
18055 (Fmake_terminal_frame): Handle NULL tty names correctly.
18056 (syms_of_frame): Enhance doc string of `default-frame-alist'.
18057 (Fdelete_frame): Remove unused variable `count'. Don't allow other
18058 frames to refer to a deleted frame in their 'environment parameter.
18059 (Fframe_with_environment): New function.
18060 (syms_of_frame): Defsubr it. Initialize and staticpro Qenvironment.
18061 (get_future_frame_param): New function.
18062 (Fmake_terminal_frame): Use it.
18063 (x_set_frame_parameters, x_set_screen_gamma): Use FRAME_RIF.
18064
18065 * sysdep.c (init_sys_modes, reset_sys_modes): Update for renames.
18066 * sysdep.c (reset_sys_modes): Update for renames.
18067
18068 * keyboard.c (tty_read_avail_input): New function.
18069 (Fset_input_interrupt_mode, Fset_output_flow_control): New functions.
18070 (syms_of_keyboard): Defsubr them.
18071 (Fset_input_meta_mode, Fset_quit_char): New functions.
18072 (Fset_input_mode): Split to above functions.
18073 (read_char_minibuf_menu_prompt): Add wrong_kboard_jmpbuf
18074 parameter. Use it in call to `read_char'.
18075 (read_char): Declare. Update call to `read_char_minibuf_menu_prompt'.
18076 Set wrong_kboard_jmpbuf correctly in recursive calls.
18077 Use current_kboard to access Vkeyboard_translate_table.
18078 Enhance comment before extra longjmp to wrong_kboard_jmpbuf.
18079 Add wrong_kboard_jmpbuf parameter to allow for recursive calls.
18080 Update longjmp invocations. Remember the original current_kboard,
18081 and longjmp to `wrong_kboard_jmpbuf' when a filter, timer or sentinel
18082 changes it. Comment out unnecessary calls to
18083 `record_single_kboard_state' and `any_kboard_state'.
18084 Update recursive calls.
18085 (wrong_kboard_jmpbuf): Remove global variable.
18086 (read_key_sequence): Remove unused variable wrong_kboard_jmpbuf.
18087 Handle deleted interrupted_kboards correctly; that is a legal
18088 case. Add `wrong_kboard_jmpbuf' local variable. Update setjmp
18089 and read_char calls. Abort if interrupted_kboard died in read_char.
18090 (any_kboard_state, single_kboard_state)
18091 (push_frame_kboard): Remove function.
18092 (pop_kboard): Switch out of single_kboard mode if the kboard has
18093 been deleted. Remove unused variable. Help debugging by not
18094 changing current_kboard unnecessarily. Set current_kboard to the
18095 kboard of the selected frame when the stored kboard object has
18096 been deleted before pop_kboard.
18097 (temporarily_switch_to_single_kboard): Change first parameter to a
18098 frame pointer. Throw an error when caller wants to change kboards
18099 while in single_kboard mode. Don't push_kboard if we weren't in
18100 single kboard state. Don't pop_kboard if we popped into any
18101 kboard state.
18102 (restore_kboard_configuration): Abort if pop_kboard changed the
18103 kboard in single_kboard mode. Call pop_kboard only after setting
18104 up single_kboard mode.
18105 (Frecursive_edit): Switch to single_kboard mode only in nested
18106 command loops.
18107 (cmd_error, command_loop, command_loop_1, timer_check):
18108 Comment out unnecessary call to `any_kboard_state' and
18109 `record_single_kboard_state'.
18110 (delete_kboard): Exit single_kboard mode if we have just deleted
18111 that kboard. Use FRAME_KBOARD.
18112 (interrupt_signal): Use `Fkill_emacs' to exit Emacs, not
18113 `fatal_error_signal'.
18114 (record_single_kboard_state): Don't push_kboard if we weren't in
18115 single kboard state. Don't pop_kboard if we popped into any
18116 kboard state.
18117 (push_frame_kboard): Rename to push_kboard.
18118 (kbd_buffer_get_event): Use FRAME_TERMINAL.
18119 (read_avail_input): Read input from all terminals.
18120 (mark_kboards): Also mark Vkeyboard_translate_table.
18121 (kbd_buffer_store_event_hold): Simplify condition.
18122 (read_key_sequence): Reinitialize fkey and keytran at each replay.
18123 (Vkeyboard_translate_table): Move to struct kboard.
18124 (init_kboard): Initialize Vkeyboard_translate_table.
18125 (syms_of_keyboard): Use DEFVAR_KBOARD to define
18126 Vkeyboard_translate_table. Update doc strings. Update docs of
18127 local-function-key-map and function-key-map.
18128
18129 * terminal.c: New file.
18130
18131 * term.c: Include errno.h.
18132 (Vring_bell_function, device_list, initial_device)
18133 (next_device_id, ring_bell, update_begin, update_end)
18134 (set_terminal_window, cursor_to, raw_cursor_to)
18135 (clear_to_end, clear_frame, clear_end_of_line)
18136 (write_glyphs, insert_glyphs, delete_glyphs, ins_del_lines)
18137 (Fdisplay_name, create_device, delete_device): Move to terminal.c.
18138 (syms_of_term): Move their initialization to terminal.c.
18139 (get_tty_terminal, Fdisplay_tty_type, Ftty_display_color_p)
18140 (Ftty_display_color_cells)
18141 (Ftty_no_underline, Fsuspend_tty, Fresume_tty, create_tty_output)
18142 (clear_tty_hooks, set_tty_hooks)
18143 (init_tty, maybe_fatal): New functions.
18144 (Ftty_type): Return nil if terminal is not on a tty instead of
18145 throwing an error. Doc update.
18146 (syms_of_term) <Vsuspend_tty_functions, Vresume_tty_functions>:
18147 Doc update. Initialize new subrs and variables.
18148 (delete_tty): Use terminal->deleted.
18149 (tty_set_terminal_modes): Rename from set_terminal_modes.
18150 (tty_reset_terminal_modes): Rename from reset_terminal_modes.
18151 (set_scroll_region): Rename to `tty_set_scroll_region'.
18152 (turn_on_insert): Rename to `tty_turn_on_insert'.
18153 (turn_off_insert): Rename to `tty_turn_off_insert'.
18154 (turn_off_highlight): Rename to `tty_turn_off_highlight'.
18155 (turn_on_highlight): Rename to `tty_turn_on_highlight'.
18156 (toggle_highligh): Rename to `tty_toggle_highlight'.
18157 (background_highlight): Rename to `tty_background_highlight'.
18158 (highlight_if_desired): Rename to `tty_highlight_if_desired'.
18159 (tty_ring_bell, tty_update_end, tty_set_terminal_window)
18160 (tty_set_scroll_region, tty_background_highlight)
18161 (tty_cursor_to, tty_raw_cursor_to, tty_clear_to_end)
18162 (tty_clear_frame, tty_clear_end_of_line, tty_write_glyphs)
18163 (tty_insert_glyphs, tty_delete_glyphs, tty_ins_del_lines)
18164 (term_get_fkeys, tty_setup_colors, dissociate_if_controlling_tty):
18165 Add static modifier.
18166 (tty_reset_terminal_modes, tty_set_terminal_window)
18167 (tty_set_scroll_region, tty_background_highlight)
18168 (tty_highlight_if_desired, tty_cursor_to)
18169 (tty_raw_cursor_to, tty_clear_to_end, tty_clear_frame)
18170 (tty_clear_end_of_line, tty_write_glyphs, tty_insert_glyphs)
18171 (tty_delete_glyphs, tty_ins_del_lines, turn_on_face): Update for
18172 renames.
18173
18174 2007-08-28 Jan Djärv <jan.h.d@swipnet.se>
18175
18176 * keyboard.c: Qrtl is new.
18177 (parse_tool_bar_item): Handle :rtl keyword.
18178 (syms_of_keyboard): Intern :rtl keyword.
18179
18180 * dispextern.h (enum tool_bar_item_idx): Add TOOL_BAR_ITEM_RTL_IMAGE.
18181
18182 * gtkutil.c (xg_tool_bar_expose_callback): Just do SET_FRAME_GARBAGED
18183 so no Lisp code is executed.
18184 (file_for_image, find_rtl_image): New functions.
18185 (xg_get_image_for_pixmap): Use file_for_image.
18186 (update_frame_tool_bar): If direction is RTL, use RTL image if
18187 defined. Use Gtk stock images if defined.
18188
18189 2007-08-27 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
18190
18191 * macterm.c (x_draw_composite_glyph_string_foreground): Draw rectangle
18192 for nonexistent or zero-width glyph in composition glyph.
18193
18194 2007-08-25 Stefan Monnier <monnier@iro.umontreal.ca>
18195
18196 * m/amdx86-64.h: Redirect to intel386.h if compiling for i386.
18197
18198 * xdisp.c (Finvisible_p): New function.
18199 (syms_of_xdisp): defsubr it.
18200
18201 2007-08-24 Juanma Barranquero <lekktu@gmail.com>
18202
18203 * image.c (syms_of_image) <image-library-alist, cross-disabled-images>:
18204 Doc fixes.
18205
18206 2007-08-24 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
18207
18208 * mac.c [MAC_OSX] (select_and_poll_event, sys_select): Fix last changes.
18209
18210 2007-08-24 Martin Rudalics <rudalics@gmx.at>
18211
18212 * fileio.c (Finsert_file_contents): Consult CHARS_MODIFF to tell
18213 whether decoding has modified buffer contents.
18214
18215 2007-08-24 Jason Rumney <jasonr@gnu.org>
18216
18217 * image.c [HAVE_NTGUI]: Define dynamic loaded functions for SVG.
18218 (Qgdk_pixbuf, Qglib) [HAVE_NTGUI]: New symbols.
18219 (syms_of_image) [HAVE_NTGUI]: Intern and staticpro them.
18220 (init_svg_functions) [HAVE_NTGUI]: New function.
18221 (fn_g_type_init, fn_g_object_unref, fn_g_error_free): New #defines.
18222 (svg_load_image): Use them.
18223 (svg_load_image) [HAVE_NTGUI]: Implement background.
18224
18225 2007-08-23 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
18226
18227 * Makefile.in (RSVG_LIBS, RSVG_CFLAGS): New variables.
18228 (ALL_CFLAGS): Use ${RSVG_CFLAGS} instead of @RSVG_CFLAGS@.
18229 (LIBX): Remove @RSVG_LIBS@.
18230 (LIBES): Add $(RSVG_LIBS).
18231
18232 * image.c (svg_load_image): Blend with specified background if exists.
18233 Use IMAGE_BACKGROUND. Add Mac OS Support.
18234
18235 * mac.c (wakeup_from_rne_enabled_p) [MAC_OSX]: Remove variable.
18236 (ENABLE_WAKEUP_FROM_RNE, DISABLE_WAKEUP_FROM_RNE) [MAC_OSX]:
18237 Remove macros.
18238 [MAC_OSX] (socket_callback): Do nothing.
18239 [MAC_OSX] (select_and_poll_event): Use CFRunLoopRunInMode instead of
18240 ReceiveNextEvent.
18241 [MAC_OSX] (sys_select): Likewise. Don't set context as argument to
18242 socket_callback.
18243 (mac_wakeup_from_rne) [MAC_OSX]: Do nothing.
18244
18245 2007-08-22 Glenn Morris <rgm@gnu.org>
18246
18247 * image.c (x_find_image_file): Search in etc/images/ rather than etc/.
18248
18249 2007-08-22 Paul Pogonyshev <pogonyshev@gmx.net>
18250
18251 * Makefile.in (ALL_CFLAGS, LIBX): Add RSVG_LIBS.
18252
18253 * image.c: Add support for SVG images. Some additional comments
18254 by Joakim Verona <joakim@verona.se>. When HAVE_RSVG is defined:
18255 (svg_image_p): New function to test for SVG image.
18256 (svg_load): New function to load SVG image.
18257 (svg_load_image): New function, helper for svg_load.
18258 (Qsvg): New Lisp_object.
18259 (svg_keyword_index): New enum.
18260 (svg_format): New static `image_keyword' struct.
18261 (svg_type): New static `image_type' struct.
18262 (librsvg/rsvg.h): Include it.
18263
18264 2007-08-23 Stefan Monnier <monnier@iro.umontreal.ca>
18265
18266 * lread.c (load_warn_old_style_backquotes): Fix up array size typo.
18267
18268 2007-08-22 Stefan Monnier <monnier@iro.umontreal.ca>
18269
18270 * lread.c (Qold_style_backquotes): New var.
18271 (syms_of_lread): Init and staticpro it.
18272 (load_warn_old_style_backquotes): New fun.
18273 (Fload): Use them to warn about old style backquotes.
18274 (end_of_file_error, Fload): Remove unused vars.
18275
18276 * lisp.h (Fclear_face_cache, Fx_send_client_event): Declare.
18277
18278 * lread.c (Vold_style_backquotes): New var.
18279 (syms_of_lread): Init and export it to Elisp.
18280 (read1): Set it when we find an old-style (back)quote.
18281
18282 2007-08-22 Jason Rumney <jasonr@gnu.org>
18283
18284 * w32reg.c (SYSTEM_DEFAULT_RESOURCES): Add missing NULL terminator.
18285
18286 2007-08-22 Katsumi Yamaoka <yamaoka@jpl.org>
18287
18288 * puresize.h (BASE_PURESIZE): Increase to 1140000.
18289
18290 2007-08-19 Richard Stallman <rms@gnu.org>
18291
18292 * eval.c (Ffunction, Fquote): Signal error if not 1 argument.
18293
18294 2007-08-19 Andreas Schwab <schwab@suse.de>
18295
18296 * alloc.c (pure): Round PURESIZE up.
18297
18298 2007-08-17 Jan Djärv <jan.h.d@swipnet.se>
18299
18300 * xterm.c (handle_one_xevent): Remove check that mouse click is in
18301 active frame.
18302
18303 2007-08-16 Richard Stallman <rms@gnu.org>
18304
18305 * eval.c (Fcommandp): Add parens to clarify.
18306
18307 * minibuf.c (Fall_completions): Use enum for type of table.
18308
18309 * emacs.c (USAGE2): Improve text.
18310
18311 2007-08-15 Philippe Waroquiers <philippe.waroquiers@eurocontrol.int>
18312
18313 * term.c (tty_default_color_capabilities): Declare static
18314 variables in file scope, to avoid HPUX compiler problem.
18315
18316 2007-08-13 Jan Djärv <jan.h.d@swipnet.se>
18317
18318 * gtkutil.c (update_frame_tool_bar): Use -1 as index
18319 to gtk_toolbar_insert.
18320
18321 2007-08-13 Stefan Monnier <monnier@iro.umontreal.ca>
18322
18323 * fileio.c (Finsert_file_contents): Yet Another Int/Lisp_Object Mixup.
18324
18325 * insdel.c (reset_var_on_error): New fun.
18326 (signal_before_change, signal_after_change):
18327 Use it to reset (after|before)-change-functions to nil in case of error.
18328 Bind inhibit-modification-hooks to t.
18329 Don't bind (after|before)-change-functions to nil while they run.
18330
18331 2007-08-11 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
18332
18333 * xterm.c (x_draw_image_glyph_string): Adjust stipple origin when
18334 filling pixmap with stippled background.
18335
18336 2007-08-10 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
18337
18338 * macterm.c [TARGET_API_MAC_CARBON] (mac_handle_window_event):
18339 Don't use invisible frame as parent window for repositioning.
18340
18341 2007-08-10 Stefan Monnier <monnier@iro.umontreal.ca>
18342
18343 * print.c (new_backquote_output): Rename from old_backquote_output.
18344 (print): Inverse its logic (according to its name) so as to match the
18345 behavior of new_backquote_flag in lread.c.
18346
18347 2007-08-09 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
18348
18349 * gmalloc.c (posix_memalign): New function.
18350
18351 * macterm.c (frame_highlight, frame_unhighlight): Don't call
18352 ActivateControl/DeactivateControl here.
18353 [USE_MAC_TOOLBAR] (free_frame_tool_bar): Suppress animation when
18354 frame-notice-user-settings is non-nil.
18355 [USE_MAC_FONT_PANEL] (mac_handle_font_event): Also record parameter
18356 for kEventParamFMFontStyle.
18357 [TARGET_API_MAC_CARBON] (mac_handle_keyboard_event): Don't check
18358 mac_pass_command_to_system and mac_pass_control_to_system here.
18359 (XTread_socket): Call ActivateControl/DeactivateControl here.
18360 (XTread_socket) [TARGET_API_MAC_CARBON]:
18361 Check mac_pass_command_to_system and mac_pass_control_to_system here.
18362 (mac_handle_window_event) [USE_MAC_TOOLBAR]: Add further workaround
18363 for window repositioning.
18364
18365 2007-08-08 Glenn Morris <rgm@gnu.org>
18366
18367 * Replace `iff' in doc-strings and comments.
18368
18369 2007-08-07 Chong Yidong <cyd@stupidchicken.com>
18370
18371 * xdisp.c (move_it_by_lines): Remove incorrect optimization.
18372
18373 2007-08-07 Martin Rudalics <rudalics@gmx.at>
18374
18375 * fileio.c (Finsert_file_contents): Run format-decode and
18376 after_insert_file_functions on entire buffer when REPLACE is
18377 non-nil and inhibit modification_hooks and point_motion_hooks.
18378 For consistency, run after_insert_file_functions iff something
18379 got inserted. Move signal_after_change and update_compositions
18380 after code running after_insert_file_functions. Make sure that
18381 undo_list doesn't record intermediate steps of the decoding process.
18382
18383 2007-08-07 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
18384
18385 * emacs.c (main)
18386 [HAVE_GTK_AND_PTHREAD && !SYSTEM_MALLOC && !DOUG_LEA_MALLOC]:
18387 Call malloc_enable_thread on interactive startup.
18388
18389 * gmalloc.c (_malloc_thread_enabled_p) [USE_PTHREAD]: New variable.
18390 (LOCK, UNLOCK, LOCK_ALIGNED_BLOCKS, UNLOCK_ALIGNED_BLOCKS)
18391 [USE_PTHREAD]: Conditionalize with it.
18392 (malloc_atfork_handler_prepare, malloc_atfork_handler_parent)
18393 (malloc_atfork_handler_child, malloc_enable_thread) [USE_PTHREAD]:
18394 New functions.
18395
18396 2007-08-06 Chong Yidong <cyd@stupidchicken.com>
18397
18398 * xdisp.c (redisplay_window): When restoring original buffer
18399 position, make sure it is still valid.
18400
18401 * image.c (png_load): Ignore png-supplied background color.
18402
18403 2007-08-06 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
18404
18405 * mac.c [TARGET_API_MAC_CARBON] (cfdate_to_lisp): Obtain microsec value.
18406 Use kCFAbsoluteTimeIntervalSince1970.
18407
18408 * macmenu.c (quit_dialog_event_loop) [TARGET_API_MAC_CARBON]:
18409 New variable.
18410 [TARGET_API_MAC_CARBON] (mac_handle_dialog_event): Set it if dialog
18411 event loop should be quit.
18412 [TARGET_API_MAC_CARBON] (create_and_show_dialog) [!MAC_OSX]:
18413 Quit dialog event loop if quit_dialog_event_loop is set.
18414
18415 * macselect.c [!TARGET_API_MAC_CARBON]: Include Scrap.h.
18416 (Selection): New typedef. Use instead of ScrapRef.
18417 (mac_get_selection_from_symbol): Rename from get_scrap_from_symbol.
18418 (mac_valid_selection_target_p): Rename from valid_scrap_target_type_p.
18419 (mac_clear_selection): Rename from clear_scrap.
18420 (get_flavor_type_from_symbol): New argument SEL and subsume function of
18421 scrap_has_target_type. All uses changed.
18422 (mac_get_selection_ownership_info, mac_valid_selection_value_p)
18423 (mac_selection_has_target_p): New functions.
18424 (mac_put_selection_value): Rename from put_scrap_string.
18425 (mac_get_selection_value): Rename from get_scrap_string.
18426 (mac_get_selection_target_list): Rename from get_scrap_target_type_list.
18427 (put_scrap_private_timestamp, scrap_has_target_type)
18428 (get_scrap_private_timestamp): Remove functions.
18429 (SCRAP_FLAVOR_TYPE_EMACS_TIMESTAMP): Remove define.
18430 (x_own_selection, x_get_local_selection):
18431 Use mac_valid_selection_value_p.
18432 (x_own_selection): Don't use put_scrap_private_timestamp.
18433 Record OWNERSHIP-INFO into Vselection_alist instead.
18434 (x_get_local_selection): Don't check type if request is local.
18435 (Fx_selection_owner_p): Don't use get_scrap_private_timestamp.
18436 Detect ownership change with OWNERSHIP-INFO in Vselection_alist instead.
18437
18438 2007-08-04 Jan Djärv <jan.h.d@swipnet.se>
18439
18440 * gtkutil.c (xg_tool_bar_callback): Generate two TOOL_BAR_EVENT:s,
18441 add comment explaining why.
18442
18443 2007-08-03 Richard Stallman <rms@gnu.org>
18444
18445 * fileio.c (Fvisited_file_modtime): Use make_time.
18446
18447 2007-08-01 Ryo Yoshitake <ryo@shiftmode.net> (tiny change)
18448
18449 * mac.c (init_mac_osx_environment): Adjust load-path on self-contained
18450 build.
18451
18452 2007-07-31 Stefan Monnier <monnier@iro.umontreal.ca>
18453
18454 * gtkutil.c (xg_tool_bar_callback): Generate a single TOOL_BAR_EVENT.
18455
18456 2007-07-30 Katsumi Yamaoka <yamaoka@jpl.org>
18457
18458 * puresize.h (BASE_PURESIZE): Increase to 1130000.
18459
18460 2007-07-30 Richard Stallman <rms@gnu.org>
18461
18462 * lread.c (readevalloop, read1): Treat NBSP as whitespace.
18463
18464 2007-07-29 Jan Djärv <jan.h.d@swipnet.se>
18465
18466 * gmalloc.c (__malloc_initialize): Remove pthread_once. Not needed.
18467
18468 2007-07-28 Nick Roberts <nickrob@snap.net.nz>
18469
18470 * xdisp.c (decode_mode_spec): Use '@' instead of 'R' to test for
18471 remote default-directory.
18472
18473 * buffer.c (mode-line-format): Update doc string.
18474
18475 2007-07-27 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
18476
18477 * w32term.c (w32_draw_fringe_bitmap): Extend fringe background to
18478 scroll bar gap.
18479 (x_scroll_bar_create): Set bar->fringe_extended_p.
18480 (w32_set_vertical_scroll_bar): Put leftmost/rightmost scroll bars
18481 on frame edge. Check fringe background extension. Don't clear
18482 extended fringe background area.
18483
18484 * w32term.h (struct scroll_bar): New member fringe_extended_p.
18485 (w32_fill_area): Enclose multiple statements with do ... while (0).
18486
18487 * xterm.c (x_draw_fringe_bitmap) [USE_TOOLKIT_SCROLL_BARS]:
18488 Extend fringe background to scroll bar gap.
18489 (x_scroll_bar_create) [USE_TOOLKIT_SCROLL_BARS]:
18490 Set bar->fringe_extended_p.
18491 (XTset_vertical_scroll_bar) [USE_TOOLKIT_SCROLL_BARS]:
18492 Put leftmost/rightmost scroll bars on frame edge. Check fringe
18493 background extension. Don't clear extended fringe background area.
18494
18495 * xterm.h (struct scroll_bar) [USE_TOOLKIT_SCROLL_BARS]:
18496 New member fringe_extended_p.
18497
18498 2007-07-25 Glenn Morris <rgm@gnu.org>
18499
18500 * Relicense all FSF files to GPLv3 or later.
18501
18502 * COPYING: Switch to GPLv3.
18503
18504 2007-07-25 Stefan Monnier <monnier@iro.umontreal.ca>
18505
18506 * eval.c (Fcommandp): Pay attention to the `interactive-form' property.
18507
18508 * data.c (Finteractive_form): Check for the presence of an
18509 `interactive-form' symbol property more thoroughly.
18510
18511 * data.c (Finteractive_form): Use an `interactive-form' property if
18512 present, analogous to the function-documentation property.
18513
18514 2007-07-24 Jason Rumney <jasonr@gnu.org>
18515
18516 * w32fns.c (x_real_positions): Get real position from OS instead of
18517 calculating it.
18518
18519 2007-07-23 Jason Rumney <jasonr@gnu.org>
18520
18521 * filelock.c (current_lock_owner): Allow for @ sign in username.
18522
18523 2007-07-22 Nick Roberts <nickrob@snap.net.nz>
18524
18525 * xdisp.c (decode_mode_spec): Add case 'R' for to test for
18526 remote default-directory.
18527
18528 * buffer.c (mode-line-format): Describe above case in doc string.
18529
18530 2007-07-20 Eli Zaretskii <eliz@gnu.org>
18531
18532 * w32proc.c (IMAGE_NT_OPTIONAL_HDR32_MAGIC, IMAGE_OPTIONAL_HEADER32):
18533 Define if not defined.
18534
18535 2007-07-18 Jason Rumney <jasonr@gnu.org>
18536
18537 * w32proc.c (w32_executable_type): Handle 64 bit executables.
18538
18539 2007-07-18 Richard Stallman <rms@gnu.org>
18540
18541 * data.c (Fsetq_default): Doc fix.
18542
18543 * eval.c (Fsetq): Doc fix.
18544
18545 2007-07-18 Juanma Barranquero <lekktu@gmail.com>
18546
18547 * coding.c (Ffind_operation_coding_system):
18548 * eval.c (For, Fand): Doc fixes.
18549 Reported by Johan Bockgård.
18550
18551 2007-07-18 Jan Djärv <jan.h.d@swipnet.se>
18552
18553 * xfns.c (Fx_focus_frame): Call x_ewmh_activate_frame.
18554
18555 * xterm.h: Declare x_ewmh_activate_frame.
18556
18557 * xterm.c (x_ewmh_activate_frame): New function.
18558 (XTframe_raise_lower): Move code to x_ewmh_activate_frame.
18559
18560 2007-07-17 Martin Rudalics <rudalics@gmx.at>
18561
18562 * window.c (Fdisplay_buffer): If largest or LRU window is the
18563 only window, split it even if it is not eligible for splitting.
18564 This restores the original behavior broken by the 2007-07-15
18565 change.
18566
18567 2007-07-17 Glenn Morris <rgm@gnu.org>
18568
18569 * abbrev.c (abbrev_check_chars): New function.
18570 (Fdefine_global_abbrev, Fdefine_mode_abbrev):
18571 Call abbrev_check_chars to check abbrev characters are word
18572 constituents. Doc fix.
18573
18574 2007-07-17 Stefan Monnier <monnier@iro.umontreal.ca>
18575
18576 * process.c (Fstart_process, Fmake_network_process)
18577 (read_process_output): Fix up last changes.
18578
18579 2007-07-16 Eli Zaretskii <eliz@gnu.org>
18580
18581 * makefile.w32-in (clean): Don't delete *~.
18582
18583 2007-07-16 Andreas Schwab <schwab@suse.de>
18584
18585 * window.c (Fdisplay_buffer): Use NILP.
18586 (Fset_window_scroll_bars): Likewise.
18587
18588 2007-07-15 Martin Rudalics <rudalics@gmx.at>
18589
18590 * window.c (window_min_size_2): New function.
18591 (window_min_size_1, size_window, Fdisplay_buffer)
18592 (Fsplit_window, adjust_window_trailing_edge): Use it to avoid
18593 windows without mode- or header-lines when window-min-height is
18594 too small.
18595 (size_window): Reset nodelete_p after testing it, following an
18596 earlier note by Kim F. Storm.
18597 (display_buffer): Do not set split_height_threshold to twice the
18598 value of window_min_height to avoid changing the value of a
18599 customizable variable. Rather explicitly check whether the
18600 height of the window that shall be splitted is at least as large
18601 as split_height_threshold.
18602 (Fwindow_full_width_p): New defun.
18603 (syms_of_window): Defsubr it.
18604
18605 * window.h: Add EXFUN for Fwindow_full_width_p.
18606
18607 2007-07-14 Jason Rumney <jasonr@gnu.org>
18608
18609 * process.c [WINDOWSNT]: Don't undefine AF_INET6.
18610
18611 2007-07-14 Richard Stallman <rms@gnu.org>
18612
18613 * eval.c (maybe_call_debugger): New function.
18614 (find_handler_clause): Use maybe_call_debugger.
18615 Call it when the handler says `debug'.
18616 Eliminate DEBUGGER_VALUE_PTR.
18617 (Fsignal): Eliminate debugger_value.
18618 (Qdebug): New variable.
18619 (syms_of_eval): Initialize it.
18620
18621 2007-07-14 Juanma Barranquero <lekktu@gmail.com>
18622
18623 * eval.c (Fprogn):
18624 * keyboard.c (Ftrack_mouse):
18625 * print.c (Fwith_output_to_temp_buffer):
18626 * window.c (Fsave_window_excursion): Doc fix.
18627
18628 2007-07-13 Stefan Monnier <monnier@iro.umontreal.ca>
18629
18630 * eval.c (init_eval_once): Bump max_lisp_eval_depth to 400.
18631
18632 2007-07-12 Stefan Monnier <monnier@iro.umontreal.ca>
18633
18634 * process.h (struct Lisp_Process): Turn slots infd, outfd,
18635 kill_without_query, pty_flag, tick, update_tick, decoding_carryover,
18636 inherit_coding_system_flag, filter_multibyte, adaptive_read_buffering,
18637 read_output_delay, and read_output_skip from Lisp_Objects to ints.
18638 Remove unused encoding_carryover.
18639 * process.c: Adjust all functions accordingly.
18640
18641 2007-07-12 Richard Stallman <rms@gnu.org>
18642
18643 * term.c: Include unistd.h only if HAVE_UNISTD_H.
18644
18645 2007-07-11 Jason Rumney <jasonr@gnu.org>
18646
18647 * makefile.w32-in (LIBS): Include OLE32.
18648
18649 * w32fns.c (w32_msg_pump) <WM_EMACS_CREATEWINDOW>: Initialize COM.
18650 (w32_msg_pump) <WM_DESTROY>: Uninitialize COM.
18651
18652 2007-07-11 Stefan Monnier <monnier@iro.umontreal.ca>
18653
18654 * lisp.h (struct Lisp_Hash_Table): Turn next_weak into a bare pointer.
18655 * fns.c (weak_hash_tables): Rename from Vweak_hash_tables and turned
18656 from a Lisp_Object into a bare pointer.
18657 (make_hash_table, copy_hash_table, sweep_weak_hash_tables, init_fns):
18658 Adjust the code correspondingly.
18659
18660 * alloc.c (emacs_blocked_free): Remove unused var `bytes_used_now'.
18661
18662 * term.c: Include unistd.h for ttyname, used in handle_one_term_event.
18663 (term_show_mouse_face): Remove unused var `j'.
18664 (handle_one_term_event): Remove unused vars `i' and `j'.
18665 Don't cast return value of ttyname since it's not necessary.
18666
18667 2007-07-10 Stefan Monnier <monnier@iro.umontreal.ca>
18668
18669 * alloc.c (mark_maybe_pointer): Enforce mult-of-8 alignment when using
18670 USE_LSB_TAG. Suggested by Dmitry Antipov <dmantipov@yandex.ru>.
18671
18672 * fns.c (map_char_table): Use an array of int for `indices' rather than
18673 an array of Lisp_Objects (which are only ever integers anyway).
18674 (Fmap_char_table): Update caller.
18675 * lisp.h: Update prototype.
18676 * keymap.c (Fset_keymap_parent, map_keymap, Fcopy_keymap):
18677 * fontset.c (Ffontset_info):
18678 * casetab.c (set_case_table): Update callers.
18679
18680 * editfns.c (Ftranspose_regions): Use EMACS_INT for positions.
18681
18682 * keymap.c (struct accessible_keymaps_data)
18683 (struct where_is_internal_data): New structures.
18684 (accessible_keymaps_1, where_is_internal_1): Use them to change
18685 interface to adhere to the one used by map_keymap.
18686 (Faccessible_keymaps, where_is_internal): Use map_keymap.
18687 (accessible_keymaps_char_table, where_is_internal_2): Remove.
18688
18689 * keymap.h (map_keymap_function_t): More informative prototype.
18690
18691 2007-07-10 Guanpeng Xu <herberteuler@hotmail.com>
18692
18693 * search.c (Vinhibit_changing_match_data, search_regs_1): New vars.
18694 (looking_at_1): Don't change search_regs and last_thing_searched
18695 if `inhibit-changing-match-data' is non-nil.
18696 (string_match_1, search_buffer, set_search_regs): Likewise.
18697 (syms_of_search): Add Lisp level definition for
18698 `inhibit-changing-match-data' and set it to nil.
18699 (boyer_moore): If `inhibit-changing-match-data' is non-nil, compute
18700 start and end of the match, instead of using values in search_regs.
18701
18702 2007-07-01 Stefan Monnier <monnier@iro.umontreal.ca>
18703
18704 * minibuf.c (Fcompleting_read): New value `confirm-only'
18705 for `require-match'.
18706
18707 2007-06-28 Stefan Monnier <monnier@iro.umontreal.ca>
18708
18709 * fileio.c (Fdo_auto_save): Revert last patch installed unwillingly as
18710 part of the 2007-06-27 change to syms_of_fileio.
18711
18712 2007-06-28 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
18713
18714 * macterm.c [USE_MAC_TSM] (mac_handle_text_input_event):
18715 Check WINDOWP before using XWINDOW. Consolidate return statements.
18716
18717 2007-06-27 Richard Stallman <rms@gnu.org>
18718
18719 * fileio.c (syms_of_fileio) <after-insert-file-functions>: Doc fix.
18720
18721 2007-06-27 Juanma Barranquero <lekktu@gmail.com>
18722
18723 * buffer.c (syms_of_buffer) <selective-display>: Fix typo in docstring.
18724
18725 2007-06-26 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
18726
18727 * gmalloc.c [HAVE_GTK_AND_PTHREAD]: Check this after including config.h.
18728 (_aligned_blocks_mutex) [USE_PTHREAD]: New variable.
18729 (LOCK_ALIGNED_BLOCKS, UNLOCK_ALIGNED_BLOCKS): New macros.
18730 (_free_internal, memalign): Use them.
18731 (_malloc_mutex, _aligned_blocks_mutex) [USE_PTHREAD]:
18732 Initialize to PTHREAD_MUTEX_INITIALIZER.
18733 (malloc_initialize_1) [USE_PTHREAD]: Don't use recursive mutex.
18734 (morecore_nolock): Rename from morecore. All uses changed.
18735 Use only nolock versions of internal allocation functions.
18736 (_malloc_internal_nolock, _realloc_internal_nolock)
18737 (_free_internal_nolock): New functions created from
18738 _malloc_internal, _realloc_internal, and _free_internal.
18739 (_malloc_internal, _realloc_internal, _free_internal): Use them.
18740 Copy hook value to automatic variable before its use.
18741 (memalign): Copy hook value to automatic variable before its use.
18742
18743 2007-06-26 Kenichi Handa <handa@m17n.org>
18744
18745 * coding.c (Ffind_operation_coding_system): Docstring improved.
18746 (syms_of_coding): Docstring of `file-coding-system-alist' improved.
18747
18748 2007-06-25 David Kastrup <dak@gnu.org>
18749
18750 * keymap.c (Fcurrent_active_maps): Add `position' argument.
18751 (Fwhere_is_internal): Adjust call to `current-active-maps' to
18752 cater for additional parameter.
18753
18754 * keymap.h: Adjust number of parameters to `current-active-maps'.
18755
18756 * doc.c (Fsubstitute_command_keys): Adjust call of
18757 `current-active-maps'.
18758
18759 2007-06-25 David Kastrup <dak@gnu.org>
18760
18761 * callint.c (Fcall_interactively): Make the parsing of interactive
18762 specs somewhat more readable.
18763
18764 2007-06-23 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
18765
18766 * macterm.c (x_draw_fringe_bitmap) [MAC_OSX]: Extend fringe background
18767 to scroll bar gap also when bitmap fills fringe. Draw only foreground
18768 if extended background has already been filled.
18769
18770 2007-06-22 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
18771
18772 * macgui.h (USE_CG_DRAWING): Don't require USE_ATSUI.
18773 (USE_MAC_TOOLBAR): Require USE_CG_DRAWING.
18774
18775 * macmenu.c (mac_dialog_modal_filter, Fx_popup_dialog) [MAC_OSX]:
18776 Put special treatment for Fmessage_box, Fyes_or_no_p, and Fy_or_n_p
18777 in #if 0 as it is not compatible with y-or-n-p-with-timeout.
18778 (timer_check) [TARGET_API_MAC_CARBON]: Add extern.
18779 [TARGET_API_MAC_CARBON] (mac_handle_dialog_event): Use QuitEventLoop
18780 instead of QuitAppModalLoopForWindow. Consolidate QuitEventLoop calls.
18781 (pop_down_dialog) [TARGET_API_MAC_CARBON]: New function.
18782 [TARGET_API_MAC_CARBON] (create_and_show_dialog): Use it for unwind.
18783 Run timers during dialog popup.
18784 (Fmenu_or_popup_active_p) [TARGET_API_MAC_CARBON]: Use popup_activated.
18785
18786 2007-06-21 Jason Rumney <jasonr@gnu.org>
18787
18788 * image.c (convert_mono_to_color_image): Swap fore and background.
18789
18790 2007-06-20 Jason Rumney <jasonr@gnu.org>
18791
18792 * w32bdf.c (w32_BDF_to_x_font): Unmap memory when finished.
18793 (w32_free_bdf_font): Unmap memory not handle.
18794
18795 2007-06-20 Sam Steingold <sds@gnu.org>
18796
18797 * gmalloc.c (__morecore): Fix the declaration to comply with the
18798 definition.
18799
18800 2007-06-20 Juanma Barranquero <lekktu@gmail.com>
18801
18802 * w32term.c (w32_delete_display): Remove leftover declaration.
18803 (w32_define_cursor, w32_initialize): Make static.
18804
18805 * w32.c (_wsa_errlist): Fix typo in error message.
18806 (init_environment): Ignore any environment variable from the
18807 registry having a null value.
18808
18809 2007-06-20 Glenn Morris <rgm@gnu.org>
18810
18811 * Makefile.in (LIBGIF): Default to -lgif.
18812
18813 2007-06-17 Jason Rumney <jasonr@gnu.org>
18814
18815 * w32menu.c (add_menu_item): Don't use multibyte string functions on
18816 unicode strings.
18817
18818 2007-06-16 Juanma Barranquero <lekktu@gmail.com>
18819
18820 * xdisp.c (syms_of_xdisp) <auto-resize-tool-bars>:
18821 Fix typo in docstring.
18822
18823 2007-06-16 Eli Zaretskii <eliz@gnu.org>
18824
18825 * w32menu.c (add_menu_item): Escape `&' characters in menu items
18826 and their keybindings.
18827
18828 2007-06-15 Chong Yidong <cyd@stupidchicken.com>
18829
18830 * composite.c (update_compositions): Fix last fix.
18831
18832 2007-06-14 Jason Rumney <jasonr@gnu.org>
18833
18834 * w32.c (get_process_times_fn): New function pointer.
18835 (globals_of_w32): Intialize it if present in kernel32.dll.
18836 (w32_get_internal_run_time): New function.
18837
18838 * editfns.c (Fget_internal_run_time) [WINDOWSNT]: Use it.
18839
18840 2007-06-14 Kenichi Handa <handa@etlken.m17n.org>
18841
18842 * composite.c (update_compositions): Check the validness of
18843 compositions.
18844
18845 2007-06-14 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
18846
18847 * frame.h (struct frame) [MAC_OS]: New member external_tool_bar.
18848 (FRAME_EXTERNAL_TOOL_BAR) [MAC_OS]: Use it.
18849
18850 * macfns.c (mac_window) [USE_MAC_TOOLBAR]: Set toolbar_win_gravity.
18851 (x_set_tool_bar_lines) [USE_MAC_TOOLBAR]: Set FRAME_EXTERNAL_TOOL_BAR.
18852
18853 * macgui.h (USE_MAC_TOOLBAR): New define.
18854
18855 * macmenu.c [TARGET_API_MAC_CARBON] (menu_target_item_handler):
18856 Return immediately unless popup is activated.
18857
18858 * macterm.c (x_draw_fringe_bitmap) [MAC_OSX]: Extend fringe
18859 background to scroll bar gap.
18860 (x_scroll_bar_create) [MAC_OSX]: Set bar->fringe_extended_p.
18861 (XTset_vertical_scroll_bar) [MAC_OSX]: Put leftmost/rightmost
18862 scroll bars on frame edge. Check fringe background extension.
18863 Don't clear extended fringe background area.
18864 (TOOLBAR_IDENTIFIER, TOOLBAR_ICON_ITEM_IDENTIFIER)
18865 (TOOLBAR_ITEM_COMMAND_ID_OFFSET, TOOLBAR_ITEM_COMMAND_ID_P)
18866 (TOOLBAR_ITEM_COMMAND_ID_VALUE, TOOLBAR_ITEM_MAKE_COMMAND_ID):
18867 [USE_MAC_TOOLBAR]: New macros.
18868 (mac_move_window_with_gravity, mac_get_window_origin_with_gravity)
18869 (mac_handle_toolbar_event, mac_image_spec_to_cg_image)
18870 (mac_create_frame_tool_bar, update_frame_tool_bar, free_frame_tool_bar)
18871 (mac_tool_bar_note_mouse_movement, mac_handle_toolbar_command_event)
18872 [USE_MAC_TOOLBAR]: New functions.
18873 (mac_handle_window_event) [USE_MAC_TOOLBAR]: Reposition window
18874 manually if previous repositioning has failed.
18875 (mac_handle_keyboard_event): Use precomputed event kind.
18876 (XTread_socket) [USE_MAC_TOOLBAR]: Handle click in structure region
18877 as tool bar item click. Handle mouse movement over tool bar items.
18878
18879 * macterm.h (struct mac_output) [USE_MAC_TOOLBAR]: New member
18880 toolbar_win_gravity.
18881 (struct scroll_bar) [MAC_OSX]: New member fringe_extended_p.
18882 (update_frame_tool_bar, free_frame_tool_bar) [USE_MAC_TOOLBAR]:
18883 Add externs.
18884
18885 * xdisp.c (update_tool_bar, redisplay_tool_bar, redisplay_window)
18886 [USE_MAC_TOOLBAR]: Sync with GTK+ tool bar display.
18887
18888 2007-06-14 Chong Yidong <cyd@stupidchicken.com>
18889
18890 * image.c (search_image_cache): Remove unused variable.
18891
18892 2007-06-13 Chong Yidong <cyd@stupidchicken.com>
18893
18894 * xfns.c, xmenu.c: Link to xaw3d if available.
18895
18896 2007-06-13 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
18897
18898 * dispextern.h (struct image) [HAVE_WINDOW_SYSTEM]: New members
18899 frame_foreground and frame_background.
18900
18901 * image.c (lookup_image): Save frame foreground and background colors.
18902 (search_image_cache): Check if saved and current frame colors match.
18903
18904 2007-06-12 Stefan Monnier <monnier@iro.umontreal.ca>
18905
18906 * regex.c (regex_compile): Remove the `regnum' counter.
18907 Use bufp->re_nsub instead. Add support for \(?N:RE\).
18908
18909 2007-06-11 Stefan Monnier <monnier@iro.umontreal.ca>
18910
18911 * term.c: Include intervals.h to declare Fget_text_property.
18912
18913 2007-06-10 Jason Rumney <jasonr@gnu.org>
18914
18915 * w32fns.c (Fx_file_dialog): Take size from struct not pointer.
18916
18917 2007-06-08 Juanma Barranquero <lekktu@gmail.com>
18918
18919 * callint.c (Fcall_interactively):
18920 * editfns.c (Fdelete_and_extract_region):
18921 * fileio.c (Fread_file_name):
18922 * fns.c (Fmapconcat):
18923 * keyboard.c (cmd_error_internal):
18924 * keymap.c (Fkey_description):
18925 * lread.c (openp):
18926 * minibuf.c (read_minibuf):
18927 * search.c (wordify):
18928 * sunfns.c (sel_read):
18929 * xdisp.c (Fformat_mode_line, syms_of_xdisp):
18930 * xfns.c (x_default_scroll_bar_color_parameter):
18931 * xmenu.c (menu_help_callback):
18932 * xselect.c (Fx_get_atom_name):
18933 * xterm.c (x_term_init): Use empty_unibyte_string.
18934
18935 2007-06-08 Dmitry Antipov <dmantipov@yandex.ru> (tiny change)
18936
18937 * alloc.c (init_strings): Initialize canonical empty strings.
18938 (make_uninit_string, make_uninit_multibyte_string): Return appropriate
18939 canonical empty string when the requested size is 0.
18940
18941 * emacs.c (empty_unibyte_string): Rename from empty_string.
18942 (empty_multibyte_string): New canonical empty string.
18943 (syms_of_emacs): Don't initialize empty_string.
18944
18945 * lisp.h (STRING_SET_UNIBYTE): Return the canonical empty unibyte
18946 string, if appropriate.
18947 (empty_unibyte_string, empty_multibyte_string): New externs.
18948 (empty_string): Remove extern.
18949
18950 * lread.c (syms_of_lread): Use empty_unibyte_string.
18951
18952 2007-06-07 Jason Rumney <jasonr@gnu.org>
18953
18954 * s/ms-w32.h: Don't define HAVE_TZNAME.
18955
18956 * editfns.c (Fcurrent_time_zone): Remove hack for Japanese Windows.
18957
18958 2007-06-07 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
18959
18960 * mac.c (xrm_get_preference_database): Remove BLOCK_INPUT.
18961
18962 * macfns.c (mac_get_window_bounds): Move extern to macterm.h.
18963 (compute_tip_xy) [TARGET_API_MAC_CARBON]: Use GetGlobalMouse.
18964
18965 * macmenu.c [TARGET_API_MAC_CARBON] (menu_target_item_handler):
18966 Don't call next handler.
18967 [TARGET_API_MAC_CARBON] (install_menu_target_item_handler):
18968 Remove argument. Install handler to application.
18969 (set_frame_menubar): Don't change deep_p.
18970 (mac_menu_show): Use FRAME_OUTER_TO_INNER_DIFF_X and
18971 FRAME_OUTER_TO_INNER_DIFF_Y.
18972 (DIALOG_BUTTON_COMMAND_ID_OFFSET, DIALOG_BUTTON_COMMAND_ID_P)
18973 (DIALOG_BUTTON_COMMAND_ID_VALUE, DIALOG_BUTTON_MAKE_COMMAND_ID)
18974 [HAVE_DIALOGS]: New macros.
18975 [HAVE_DIALOGS] (mac_handle_dialog_event, create_and_show_dialog):
18976 Use them.
18977 (fill_menubar) [TARGET_API_MAC_CARBON]: Use CFString.
18978
18979 * macselect.c [MAC_OSX] (install_service_handler): Rename from
18980 init_service_handler. All callers changed. Return OSStatus value.
18981
18982 * macterm.c (mac_begin_cg_clip): New arg F. Call SetPortWindowPort.
18983 All callers changed so as not to call SetPortWindowPort.
18984 (mac_begin_cg_clip) [USE_CG_DRAWING]: Call mac_prepare_for_quickdraw.
18985 (mac_draw_image_string_atsui) [USE_ATSUI]: New function created from
18986 mac_draw_string_common.
18987 (mac_draw_image_string_qd): Likewise.
18988 (mac_draw_string_common): Use them. Add INLINE.
18989 (XTmouse_position, x_scroll_bar_report_motion) [TARGET_API_MAC_CARBON]:
18990 Use FRAME_OUTER_TO_INNER_DIFF_X, FRAME_OUTER_TO_INNER_DIFF_Y, and
18991 GetGlobalMouse.
18992 (x_set_mouse_pixel_position) [MAC_OSX]: Use FRAME_OUTER_TO_INNER_DIFF_X
18993 and FRAME_OUTER_TO_INNER_DIFF_Y.
18994 [TARGET_API_MAC_CARBON] (mac_handle_mouse_event): Likewise.
18995 [USE_MAC_TSM] (mac_handle_text_input_event): Likewise.
18996 (x_make_frame_visible) [TARGET_API_MAC_CARBON]: Move code for
18997 repositioning window to mac_handle_window_event.
18998 (x_make_frame_invisible) [TARGET_API_MAC_CARBON]: Move code for
18999 saving window location to mac_handle_window_event
19000 [USE_MAC_FONT_PANEL] (mac_show_hide_font_panel): Install handler here.
19001 (install_menu_target_item_handler): Remove argument in extern.
19002 [TARGET_API_MAC_CARBON] (mac_event_to_emacs_modifiers):
19003 Also accept command events.
19004 (do_keystroke): New function created from XTread_socket.
19005 (init_command_handler): Remove functions.
19006 [TARGET_API_MAC_CARBON] (mac_handle_window_event): Reposition window
19007 and save window location by kEventWindowShowing and kEventWindowHiding
19008 handlers here. Don't call next handler for window state change and
19009 focus events.
19010 (mac_handle_application_event, mac_handle_keyboard_event)
19011 [TARGET_API_MAC_CARBON]: New functions.
19012 (install_window_handler) [TARGET_API_MAC_CARBON]: Register handlers for
19013 kEventWindowShowing and kEventWindowHiding events. Move installation
19014 of mouse, font, text input and menu target item handlers to
19015 install_application_handler.
19016 (install_application_handler) [TARGET_API_MAC_CARBON]: New function.
19017 (mac_handle_cg_display_reconfig) [MAC_OS_X_VERSION_MAX_ALLOWED >= 1030]:
19018 New function.
19019 (init_dm_notification_handler) [MAC_OS_X_VERSION_MAX_ALLOWED >= 1030]:
19020 Register it.
19021 (XTread_socket) [TARGET_API_MAC_CARBON]:
19022 Consolidate SendEventToEventTarget calls.
19023 Use FRAME_OUTER_TO_INNER_DIFF_X and FRAME_OUTER_TO_INNER_DIFF_Y.
19024 Move application activation handler to mac_handle_application_event.
19025 Move keyboard handler to mac_handle_keyboard_event.
19026 (XTread_socket) [!TARGET_API_MAC_CARBON]: Use do_keystroke.
19027 (mac_initialize) [TARGET_API_MAC_CARBON]: Don't call
19028 init_command_handler. Call install_application_handler.
19029
19030 * macterm.h (mac_get_window_bounds): Move extern from macfns.c.
19031 (FRAME_OUTER_TO_INNER_DIFF_X, FRAME_OUTER_TO_INNER_DIFF_Y): New macros.
19032
19033 2007-06-07 Glenn Morris <rgm@gnu.org>
19034
19035 * emacs.c (main): Use `emacs-copyright' in --version output.
19036
19037 2007-06-06 Chong Yidong <cyd@stupidchicken.com>
19038
19039 * image.c (xpm_load): Remove spurious call to xpm_init_color_cache.
19040
19041 2007-06-06 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
19042
19043 * macfns.c (mac_window): Replace WindowPtr with WindowRef.
19044
19045 * macgui.h: Replace WindowPtr with WindowRef.
19046
19047 * macmenu.c: Replace MenuHandle and GetMenuHandle with MenuRef and
19048 GetMenuRef, respectively. Replace WindowPtr with WindowRef.
19049 Replace ControlHandle with ControlRef.
19050 (install_menu_quit_handler): Rename arg MENU_HANDLE to ROOT_MENU.
19051
19052 * macterm.c: Replace MenuHandle and GetMenuHandle with MenuRef and
19053 GetMenuRef, respectively. Replace WindowPtr with WindowRef.
19054 Replace ControlHandle with ControlRef.
19055 (USE_CARBON_EVENTS): Remove. Use TARGET_API_MAC_CARBON instead.
19056 [MAC_OS8] (do_get_menus): Rename variable `menu_handle' to `menu'.
19057
19058 * macterm.h (struct scroll_bar): Rename member control_handle_low
19059 and control_handle_high to control_ref_low and control_ref_high.
19060 All uses changed.
19061 (SCROLL_BAR_CONTROL_REF, SET_SCROLL_BAR_CONTROL_REF): Rename from
19062 SCROLL_BAR_CONTROL_HANDLE and SET_SCROLL_BAR_CONTROL_HANDLE,
19063 respectively. All uses changed.
19064 (XCreatePixmap, XCreatePixmapFromBitmapData, XSetWindowBackground)
19065 (install_window_handler, remove_window_handler): Replace WindowPtr
19066 with WindowRef in externs.
19067
19068 2007-06-05 Juanma Barranquero <lekktu@gmail.com>
19069
19070 * xfaces.c (Finternal_lisp_face_p): Signal error for face alias loops.
19071
19072 2007-06-03 Nick Roberts <nickrob@snap.net.nz>
19073
19074 * keyboard.c (discard_mouse_events): Add GPM_CLICK_EVENT case.
19075
19076 * frame.c (Fmouse_position, Fmouse_pixel_position):
19077 Condition on HAVE_GPM too.
19078
19079 * term.c (term_mouse_highlight): Remove unused variables.
19080 (Fterm_open_connection): Set gpm_zerobased to 1.
19081 (term_mouse_movement, term_mouse_click, handle_one_term_event):
19082 Use zero based co-ordinates.
19083 (handle_one_term_event): Report a drag as mouse movement too.
19084
19085 * Makefile.in (MOUSE_SUPPORT): Define for HAVE_GPM.
19086
19087 2007-06-03 Chong Yidong <cyd@stupidchicken.com>
19088
19089 * image.c (search_image_cache): New function. Require background
19090 color match if background color is unspecified in the image spec.
19091 (uncache_image, lookup_image): Use it.
19092
19093 2007-06-01 Juanma Barranquero <lekktu@gmail.com>
19094
19095 * window.c (Fshrink_window): Reflow docstring.
19096
19097 2007-06-02 Chong Yidong <cyd@stupidchicken.com>
19098
19099 * Version 22.1 released.
19100
19101 2007-06-01 Richard Stallman <rms@gnu.org>
19102
19103 * xfns.c (x_encode_text): Add GCPRO.
19104
19105 2007-06-01 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
19106
19107 * xfns.c (x_set_name_internal): Save encoded name before
19108 x_encode_text in case string data is relocated.
19109
19110 2007-05-31 Richard Stallman <rms@gnu.org>
19111
19112 * buffer.c (syms_of_buffer): Doc fix.
19113
19114 2007-05-30 Nick Roberts <nickrob@snap.net.nz>
19115
19116 * sysdep.c (init_sys_modes): Add rather than replace with
19117 O_NONBLOCK.
19118
19119 * frame.c [HAVE_GPM] (Fset_mouse_pixel_position): Add call to
19120 term_mouse_moveto.
19121
19122 * termhooks.h (term_mouse_moveto): New extern.
19123
19124 * term.c (mouse_face_window): Rename...
19125 (Qmouse_face_window): ...to this.
19126 (term_show_mouse_face, term_clear_mouse_face)
19127 (term_mouse_highlight): Use Qmouse_face_window.
19128 (term_mouse_moveto): New function.
19129 (term_mouse_position): Make it work.
19130 (syms_of_term): Uncomment assignment to mouse_position_hook.
19131 Staticpro Qmouse_face_window.
19132
19133 2007-05-28 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
19134
19135 * xdisp.c (redisplay_internal): Bind inhibit-point-motion-hooks to t
19136 around current_column call.
19137
19138 2007-05-26 Dan Nicolaescu <dann@ics.uci.edu>
19139
19140 * xfaces.c (syms_of_xfaces): Delete stray semicolon.
19141 * xdisp.c (next_element_from_buffer):
19142 * window.c (delete_window):
19143 * term.c (term_mouse_highlight):
19144 * msdos.c (getdefdir):
19145 * macterm.c (mac_create_bitmap_from_bitmap_data)
19146 (init_font_name_table):
19147 * fns.c (Fsxhash):
19148 * data.c (Fmake_local_variable):
19149 * ccl.c (ccl_driver): Likewise.
19150
19151 2007-05-24 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
19152
19153 * macterm.c [USE_CARBON_EVENTS] (mac_handle_window_event):
19154 Call mac_wakeup_from_rne on window size change.
19155
19156 2007-05-25 Chong Yidong <cyd@stupidchicken.com>
19157
19158 * image.c (uncache_image): Fix typo.
19159
19160 2007-05-23 Johannes Weiner <hannes@saeurebad.de> (tiny change)
19161
19162 * keyboard.c (make_lispy_movement): Condition on HAVE_GPM too.
19163
19164 2007-05-22 Richard Stallman <rms@gnu.org>
19165
19166 * xterm.c (x_connection_closed): Remove NO_RETURN.
19167
19168 2007-05-22 Martin Rudalics <rudalics@gmx.at>
19169
19170 * syntax.c (scan_words): Fix arg to UPDATE_SYNTAX_TABLE_BACKWARD.
19171
19172 2007-05-21 Chong Yidong <cyd@stupidchicken.com>
19173
19174 * image.c (uncache_image): New function.
19175 (Fimage_refresh): New function.
19176
19177 2007-05-20 Jan Djärv <jan.h.d@swipnet.se>
19178
19179 * Makefile.in: Move GPM check outside HAVE_X_WINDOWS.
19180
19181 2007-05-20 Nick Roberts <nickrob@snap.net.nz>
19182
19183 * config.in, keyboard.c, Makefile.in, sysdep.c, term.c,
19184 * termhooks.h: Use HAVE_GPM instead of HAVE_GPM_H.
19185
19186 2007-05-20 Nick Roberts <nickrob@snap.net.nz>
19187
19188 * keyboard.c (make_lispy_event): Make case GPM_CLICK_EVENT
19189 conditional on [HAVE_GPM_H].
19190
19191 2007-05-19 Stefan Monnier <monnier@iro.umontreal.ca>
19192
19193 * syntax.c (skip_chars): Update syntax-table only after we checked that
19194 the new location is valid.
19195
19196 2007-05-19 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
19197
19198 * macterm.c (x_calc_absolute_position): Add BLOCK_INPUT around
19199 mac_get_window_bounds.
19200
19201 2007-05-20 Nick Roberts <nickrob@snap.net.nz>
19202
19203 * Makefile.in (LIBGPM): Allow it to be set from configure.
19204 If set then link Emacs with it.
19205
19206 * config.in: Regenerate.
19207
19208 * lisp.h (add_gpm_wait_descriptor, delete_gpm_wait_descriptor):
19209 New externs.
19210
19211 * termhooks.h [HAVE_GPM_H] (enum event_kind): Add GPM_CLICK_EVENT.
19212 Include gpm.h.
19213 (handle_one_term_event, term_gpm): New externs.
19214
19215 * sysdep.c [HAVE_GPM_H] (init_sys_modes): Make gpm_fd nonblocking
19216 and allow it to be interrupted by SIGIO.
19217
19218 * process.c (gpm_wait_mask, max_gpm_desc): New variables.
19219 (wait_reading_process_output): Wait on gpm_fd too.
19220 (add_gpm_wait_descriptor, delete_gpm_wait_descriptor)): New functions.
19221 (add_gpm_wait_descriptor_called_flag): New variable.
19222 (delete_keyboard_wait_descriptor): Check gpm_wait_mask.
19223
19224 * keyboard.c [HAVE_GPM_H] (Qmouse_fixup_help_message)
19225 (make_lispy_movement, tracking_off, Ftrack_mouse, some_mouse_moved)
19226 (show_help_echo, readable_events, kbd_buffer_get_event, init_keyboard):
19227 Extend HAVE_MOUSE ifdefs to HAVE_GPM_H.
19228 (make_lispy_event): Add case GPM_CLICK_EVENT.
19229 (read_avail_input): Handle mouse input.
19230
19231 * term.c (write_glyphs_with_face): New function.
19232 [HAVE_GPM_H]: Include buffer.h, sys/fcntl.h.
19233 (mouse_face_beg_row, mouse_face_beg_col, mouse_face_end_row)
19234 (mouse_face_end_col, mouse_face_past_end, mouse_face_window)
19235 (mouse_face_face_id, term_gpm, pos_x, pos_y)
19236 (last_mouse_x, last_mouse_y): New variables.
19237 (term_show_mouse_face, term_clear_mouse_face, fast_find_position)
19238 (term_mouse_highlight, term_mouse_movement, term_mouse_position)
19239 (term_mouse_click, handle_one_term_event, Fterm_open_connection)
19240 (Fterm_close_connection): New functions.
19241 (term_init): Initialise mouse_face_window.
19242
19243 2007-05-19 Chong Yidong <cyd@stupidchicken.com>
19244
19245 * xdisp.c (redisplay_window): If first window line is a
19246 continuation line, recompute the new window start instead of
19247 recentering.
19248
19249 2007-05-18 Glenn Morris <rgm@gnu.org>
19250
19251 * m/alpha.h (ORDINARY_LINK): No longer define on OpenBSD.
19252 Suggested by Alfred M. Szmidt <ams@gnu.org>.
19253
19254 2007-05-17 Glenn Morris <rgm@gnu.org>
19255
19256 * m/macppc.h (ORDINARY_LINK): No longer define on OpenBSD.
19257
19258 2007-05-16 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
19259
19260 * macterm.c [USE_CARBON_EVENTS] (mac_convert_event_ref): Also convert
19261 dead key repeat and up events.
19262
19263 2007-05-14 Chong Yidong <cyd@stupidchicken.com>
19264
19265 * image.c (pbm_load): Check image size for monochrome pbm.
19266
19267 2007-05-13 Chong Yidong <cyd@stupidchicken.com>
19268
19269 * xterm.c (XTread_socket): Revert last change.
19270
19271 2007-05-12 Chong Yidong <cyd@stupidchicken.com>
19272
19273 * image.c (pbm_load): Correctly check image size for greyscale pbm.
19274
19275 * xterm.c (XTread_socket): Yet Another Uncaught X Error Crash (YAUXEC).
19276
19277 2007-05-07 Stefan Monnier <monnier@iro.umontreal.ca>
19278
19279 * editfns.c (Ftranspose_regions): Yet another int/Lisp_Object
19280 mixup (YAILOM).
19281
19282 2007-05-07 Andreas Schwab <schwab@suse.de>
19283
19284 * keymap.c (Flookup_key): Fix typo in last change.
19285
19286 2007-05-07 Stefan Monnier <monnier@iro.umontreal.ca>
19287
19288 * keymap.c (Fdefine_key, Flookup_key): Only do the 0x80->meta_modifier
19289 mapping for unibyte strings.
19290
19291 2007-05-01 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
19292
19293 * macmenu.c (mac_dialog_show): Apply 2007-04-27 change for xmenu.c.
19294 (Fx_popup_dialog) [MAC_OSX]: Likewise.
19295
19296 2007-04-29 Richard Stallman <rms@gnu.org>
19297
19298 * insdel.c (replace_range): For undo, record insertion first.
19299
19300 2007-04-29 Andreas Schwab <schwab@suse.de>
19301
19302 * lisp.h (VECSIZE): Use OFFSETOF.
19303
19304 2007-04-29 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
19305
19306 * xdisp.c (try_window_reusing_current_matrix): Fix number of
19307 disabled lines.
19308
19309 2007-04-28 Richard Stallman <rms@gnu.org>
19310
19311 * lread.c (read_escape): In a string, \s is always space.
19312
19313 2007-04-27 Jan Djärv <jan.h.d@swipnet.se>
19314
19315 * xmenu.c (xdialog_show): Call Fredisplay before showing the dialog.
19316
19317 * gtkutil.c (xg_update_menubar, create_menus): Create empty
19318 submenu for menu bar items.
19319
19320 See ChangeLog.10 for earlier changes.
19321
19322 ;; Local Variables:
19323 ;; coding: utf-8
19324 ;; add-log-time-zone-rule: t
19325 ;; End:
19326
19327 Copyright (C) 2007, 2008, 2009 Free Software Foundation, Inc.
19328
19329 This file is part of GNU Emacs.
19330
19331 GNU Emacs is free software: you can redistribute it and/or modify
19332 it under the terms of the GNU General Public License as published by
19333 the Free Software Foundation, either version 3 of the License, or
19334 (at your option) any later version.
19335
19336 GNU Emacs is distributed in the hope that it will be useful,
19337 but WITHOUT ANY WARRANTY; without even the implied warranty of
19338 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
19339 GNU General Public License for more details.
19340
19341 You should have received a copy of the GNU General Public License
19342 along with GNU Emacs. If not, see <http://www.gnu.org/licenses/>.
19343
19344 ;; arch-tag: dfb6ad96-1550-4905-9e53-d2059ee84c40