(Reading File Names): Document `read-shell-command' and
[bpt/emacs.git] / src / ChangeLog
CommitLineData
aac0c6e3
MR
12008-10-19 Martin Rudalics <rudalics@gmx.at>
2
3 * window.c (Fwindow_dedicated_p, Fset_window_dedicated_p):
4 Mention kill-buffer in doc-string.
5 (Fset_window_buffer): Reinsert tem check removed in last commit.
6 (Fenlarge_window, Fshrink_window): Have argument names and
7 doc-string follow Elisp manual more closely.
8
92008-10-18 Eli Zaretskii <eliz@gnu.org>
10
11 * fileio.c (Fset_file_modes): Doc fix.
12
132008-10-18 Martin Rudalics <rudalics@gmx.at>
14
15 * window.c (Fwindow_width, Fset_window_start)
16 (Fwindow_parameters, Fwindow_parameter, Fset_window_parameter)
17 (Fdelete_windows_on, Freplace_buffer_in_windows): Make
18 doc-strings follow code and Elisp manual more closely.
19 (Fwindow_dedicated_p): Make window argument optional.
20 (Fset_window_dedicated_p): Rename argument "arg" to "flag".
21 (Fset_window_buffer): Respect any non-nil dedicated value for
22 window. Rename "buffer" argument to "buffer_or_name".
23
242008-10-18 Ulrich Mueller <ulm@gentoo.org>
25
26 * m/sh3.h: New file, machine description for SuperH.
27
282008-10-17 Martin Rudalics <rudalics@gmx.at>
29
30 * window.c (Fsplit_window): Rename arg horflag to horizontal.
31
322008-10-17 Kenichi Handa <handa@m17n.org>
33
34 * ftfont.c (ftfont_otf_features): Fix indexing
35 gsub_gpos->FeatureList.Feature. Check the validity of indices.
36
372008-10-16 Magnus Henoch <mange@freemail.hu>
38
39 * dbusbind.c (Fdbus_call_method): Unbreak usage line.
40 (Fdbus_call_method_asynchronously): Ditto.
41 This change makes C-h f display the argument list.
42
432008-10-16 Chong Yidong <cyd@stupidchicken.com>
44
45 * fileio.c (Fexpand_file_name): Doc fix.
46
47 * xfaces.c (Finternal_set_lisp_face_attribute): Make null values
48 of :foreground and :background equivalent to unspecified (20.x
49 compatibility).
50
512008-10-15 Eli Zaretskii <eliz@gnu.org>
52
53 * buffer.c (syms_of_buffer): Doc fix.
54
552008-10-14 Kenichi Handa <handa@m17n.org>
56
57 * font.c (font_clear_prop): When clearing font width, clear the
58 average width field too.
59
602008-10-12 Andreas Schwab <schwab@suse.de>
61
62 * ftfont.c (ftfont_shape_by_flt): Make static.
63 * ftfont.h (ftfont_shape_by_flt): Don't declare.
64
65 * font.c: Don't include <m17n-flt.h>.
66
672008-10-10 Eli Zaretskii <eliz@gnu.org>
68
69 * s/msdos.h (SYSTEM_PURESIZE_EXTRA): Decrease to 10000.
70
712008-10-09 Eli Zaretskii <eliz@gnu.org>
72
73 * frame.c (make_terminal_frame) [MSDOS]: Remove unused #ifdef'ed
74 away code.
75
762008-10-09 Chong Yidong <cyd@stupidchicken.com>
77
78 * dispnew.c (update_text_area): Avoid looping due to large glyph
79 overhangs (bug#1070).
80
812008-10-09 Kenichi Handa <handa@m17n.org>
82
83 * fontset.c (face_for_char): If face->fontset is negative, just
84 return ascii_face.
85
86 * font.c (font_delete_unmatched): Fix previous change. Don't
87 reject an entity if DPI and AVGWIDTH of an entity are 0.
88
892008-10-09 Martin Rudalics <rudalics@gmx.at>
90
91 * frame.c (Fraise_frame): On text-only terminals select frame in
92 order to make it visible. (Bug#1061)
93
942008-10-08 Chong Yidong <cyd@stupidchicken.com>
95
96 * fontset.c (fontset_find_font): Check frame validity.
97
982008-10-07 Chong Yidong <cyd@stupidchicken.com>
99
100 * gtkutil.c (xg_display_open): Reset default display if none
101 exists.
102 (xg_display_close): Allow Emacs to close all displays (bug#985).
103
1042008-10-06 Andreas Schwab <schwab@suse.de>
105
106 * sysdep.c (sys_signal): Always set SA_RESTART when
107 noninteractively.
108
1092008-10-06 Chong Yidong <cyd@stupidchicken.com>
110
111 * emacs.c (Vbefore_init_time, Vafter_init_time): Moved from
112 startup.el.
113
114 * lisp.h: (Vbefore_init_time, Vafter_init_time): Declare.
115
116 * gtkutil.c (x_wm_set_size_hint): Return immediately if called
117 during initialization.
118
1192008-10-04 Eli Zaretskii <eliz@gnu.org>
120
121 * xdisp.c (redisplay_internal): If frame switched, redisplay the
122 whole thing on MSDOS frames as well as on a TTY.
123
124 * dispnew.c (update_frame): Flush termscript for MSDOS frames as
125 well as for TTY.
126 (Fopen_termscript): Allow opening a termscript on MSDOS frames as
127 well as on a TTY.
128
129 * sysdep.c (init_sys_modes): Set FRAME_GARBAGED_P for MSDOS frames
130 as well as for TTY.
131
132 * systime.h (EMACS_TIME_CMP): Cast EMACS_SECS values to `long'.
133
134 * dispnew.c (change_frame_size_1): Set FrameRows and FrameCols for
135 MSDOS frames as well.
136
1372008-10-02 Adrian Robert <Adrian.B.Robert@gmail.com>
138
139 * image.c (x_clear_image_1): Under NS, call ns_free_indexed_color with
140 correct arguments.
141 * menu.c (find_and_return_menu_selection) Add cast.
142
1432008-10-03 Glenn Morris <rgm@gnu.org>
144
145 * emacs.c (USAGE1): Add --daemon.
146
1472008-10-02 Eli Zaretskii <eliz@gnu.org>
148
149 * process.c (procfs_system_process_attributes): Multiply `pcpu' by
150 100, so it's in percents as advertised.
151
1522008-10-02 Adrian Robert <Adrian.B.Robert@gmail.com>
153
154 * nsterm.h (ns_cursor_types, ns_output.desired_cursor_color)
155 (ns_output.current_cursor, ns_output.desired_cursor)
156 (ns_output.last_inactive, FRAME_CURSOR, FRAME_NEW_CURSOR)
157 (FRAME_NEW_CURSOR_COLOR): Remove.
158
159 * nsfns.m (ns_set_cursor_color): Use FRAME_CURSOR_COLOR.
160 (ns_lisp_to_cursor_type, ns_cursor_type_to_lisp): Use core emacs
161 enumeration (HOLLOW_BOX_CURSOR, etc.).
162
163 * nsterm.m (ns_frame_rehighlight): Remove commented code.
164 (draw_window_cursor): Simplify code.
165 (EmacsView-windowDidBecomeKey:,-windowDidResignKey:): Don't
166 change cursor type. In latter, call rehighlight instead of doing
167 updates manually.
168 (EmacsPrefsController-setPanelFromValues,-setValuesFromPanel): Use
169 core emacs cursor types.
170
171 * xdisp.c (draw_glyphs): Don't call notice_overwritten_cursor() under
172 NS.
173
1742008-10-02 Martin Rudalics <rudalics@gmx.at>
175
176 * process.c (Faccept_process_output): Fix doc-string.
177
1782008-10-02 Dan Nicolaescu <dann@ics.uci.edu>
179
180 * gmalloc.c (__sbrk): Also define for uClibc.
181
182 * s/gnu-linux.h (GNU_LIBRARY_PENDING_OUTPUT_COUNT): Add definition
183 for uClibc.
184
1852008-10-01 Adrian Robert <Adrian.B.Robert@gmail.com>
186
187 * nsfont.m (nsfont_spec_to_traits): Use UnXX masks only for non-normal
188 styles.
189 (nsfont_open): Reenable the cache.
190
1912008-10-01 Adrian Robert <Adrian.B.Robert@gmail.com>
192
193 * font.c (font_matching_entity): Reflect ATTRS in font selection.
194 (font_find_for_lface) [HAVE_NS]: Don't ignore case.
195
1962008-09-30 Stefan Monnier <monnier@iro.umontreal.ca>
197
198 * dispnew.c (Fsend_string_to_terminal): Don't try to send a string to
199 a suspended terminal.
200
2012008-09-30 Michael Albinus <michael.albinus@gmx.de>
202
203 * dbusbind.c (xd_signature): Use strcat instead of sprintf.
204
2052008-09-30 Eli Zaretskii <eliz@gnu.org>
206
207 * Makefile.in (MSDOS_SUPPORT): Remove ccl.elc and codepage.elc.
208
2092008-09-30 Chong Yidong <cyd@stupidchicken.com>
210
211 * xdisp.c (move_it_to): Don't advance the iterator if the last tab
212 in a continued line coincides with a line beginning.
213
2142008-09-29 Adrian Robert <Adrian.B.Robert@gmail.com>
215
216 * nsfont.m (nsfont_trait_distance): Fix bug.
217 (nsfont_list): Return a list rather than a vector (syncs with Handa
218 changes of 2008-05-14).
219 (nsfont_open): Improve logging.
220
2212008-09-29 Andreas Schwab <schwab@suse.de>
222
223 * keyboard.c (syms_of_keyboard) <input-decode-map>: Doc fix.
224
2252008-09-28 Martin Rudalics <rudalics@gmx.at>
226
227 * character.c (Fchar_resolve_modifiers): Rewrite Elisp function
228 name as char-resolve-modifiers.
229 Reported by: Markus Triska <markus.triska@gmx.at>
230
2312008-09-28 Dan Nicolaescu <dann@ics.uci.edu>
232
233 * dispnew.c (init_display): Return earlier when running as a daemon.
234
2352008-09-27 Adrian Robert <Adrian.B.Robert@gmail.com>
236
237 * nsfont.m (nsfont_draw): Fix up composition rendering (cmp_from, ...).
238
2392008-09-27 Eli Zaretskii <eliz@gnu.org>
240
241 * composite.c (Fcomposition_get_gstring)
242 (Fcompose_region_internal, Fcompose_string_internal)
243 (Ffind_composition_internal): Doc fix.
244 (syms_of_composite) <compose-chars-after-function>: Doc fix.
245 (syms_of_composite) <auto-composition-function>: Doc fix.
246 (syms_of_composite) <composition-function-table>: Doc fix.
247
2482008-09-25 Chong Yidong <cyd@stupidchicken.com>
249
250 * search.c (wordify): New argument for lax word-ends.
251 (Fword_search_forward_lax, Fword_search_backward_lax): New funs.
252
2532008-09-24 Dan Nicolaescu <dann@ics.uci.edu>
254
255 * lisp.h (is_daemon): Declare.
256 * dispnew.c (init_display): Do not try to initialize the terminal
257 when running as a daemon.
258
2592008-09-22 Chong Yidong <cyd@stupidchicken.com>
260
261 * nsfns.m (compute_tip_xy): Use x_display_pixel_width and
262 x_display_pixel_height.
263
2642008-09-22 Martin Rudalics <rudalics@gmx.at>
265
266 * undo.c (record_point): Don't call Fundo_boundary for first
267 change. (Bug#731)
268
2692008-09-22 Juanma Barranquero <lekktu@gmail.com>
270
271 * emacs.c (Fdaemonp): Doc fix.
272
2732008-09-22 Dan Nicolaescu <dann@ics.uci.edu>
274
275 * emacs.c (main): Place #ifdef in the proper place.
276
2772008-09-21 Dan Nicolaescu <dann@ics.uci.edu>
278
279 * emacs.c (standard_args): Add --daemon.
280 (main): Disconnect from the terminal when --daemon is passed.
281 (is_daemon): New variable.
282 (Fdaemonp): New function.
283 (syms_of_emacs): Defsubr it.
284
2852008-09-20 Chong Yidong <cyd@stupidchicken.com>
286
287 * xdisp.c (get_next_display_element): Handle string display
288 correctly when checking for the end of a box run.
289
2902008-09-20 Glenn Morris <rgm@gnu.org>
291
292 * fileio.c (Qdelete_by_moving_to_trash): New Lisp_Object.
293 (syms_of_fileio): Add Qdelete_by_moving_to_trash.
294 (Frename_file): Avoid copying to trash if a rename involves
295 a delete. (Bug#964).
296
2972008-09-20 Eli Zaretskii <eliz@gnu.org>
298
299 * keyboard.c (Fset_quit_char, Fset_input_meta_mode)
300 (Fset_output_flow_control, Fcurrent_input_mode): Support MSDOS
301 frames as well as termcap frames.
302 (handle_interrupt): Remove "#ifndef MSDOS" around the call to
303 get_named_tty.
304
3052008-09-19 Eli Zaretskii <eliz@gnu.org>
306
307 * process.c (procfs_system_process_attributes): Fix cmdline in
308 case /proc/PID/cmdline is empty.
309
310 * xterm.c (x_wm_set_size_hint): Use x_display_pixel_width and
311 x_display_pixel_height.
312
3132008-09-19 Juanma Barranquero <lekktu@gmail.com>
314
315 * frame.c (x_fullscreen_adjust): Declare var as Display_Info.
316
317 * w32fns.c (Fx_display_pixel_width, Fx_display_pixel_height)
318 (compute_tip_xy): Use x_display_pixel_width, x_display_pixel_height.
319
3202008-09-19 Dan Nicolaescu <dann@ics.uci.edu>
321
322 * dispextern.h (struct it): Move line_wrap away from the middle of
323 bitfields. Move voffset in struct iterator_stack_entry after the
324 bitfields. Move tab_width near after another short.
325
3262008-09-18 Dan Nicolaescu <dann@ics.uci.edu>
327
328 * frame.h (struct frame): Move alpha from the middle of bitfields.
329
330 * window.h (struct window): Move frozen_window_start_p after the
331 rest of the bitfields to reduce padding.
332
3332008-09-18 Chong Yidong <cyd@stupidchicken.com>
334
335 * xterm.h (x_display_info): Remove `height' and `width' members.
336
337 * nsterm.h (ns_display_info): Remove `height' and `width' members.
338
339 * w32term.h (w32_display_info): Remove `height', `width',
340 `height_in', and `width_in' members.
341
342 * xterm.c (x_display_pixel_height, x_display_pixel_width): New
343 functions.
344 (x_calc_absolute_position): Use them.
345 (x_term_init): Omit removed `height' and `width' members.
346
347 * w32term.c (x_display_pixel_height, x_display_pixel_width): New
348 functions.
349 (w32_read_socket, x_calc_absolute_position): Use them.
350 (w32_initialize_display_info, w32_term_init): Omit removed members
351 of w32_display_info.
352
353 * nsterm.m (x_display_pixel_height, x_display_pixel_width): New
354 functions.
355 (ns_initialize_display_info): Omit removed members of
356 ns_display_info.
357
358 * xterm.c (x_display_pixel_height, x_display_pixel_width): New
359 functions.
360 (x_calc_absolute_position): Use them.
361 (x_term_init): Omit removed `height' and `width' members.
362
363 * xfns.c (Fx_display_pixel_width, Fx_display_pixel_height)
364 (compute_tip_xy): Use x_display_pixel_height and
365 x_display_pixel_width.
366
367 * frame.c (x_fullscreen_adjust): Use x_display_pixel_height and
368 x_display_pixel_width.
369
370 * xmenu.c (menu_position_func): Use x_display_pixel_height and
371 x_display_pixel_width.
372
3732008-09-18 Kenichi Handa <handa@m17n.org>
374
375 * composite.c (fill_gstring_header): Don't check FROM and TO here.
376 (composition_compute_stop_pos): Fix handling of static composition.
377 (Fcomposition_get_gstring): Check FROM and TO at first.
378
3792008-09-17 Stefan Monnier <monnier@iro.umontreal.ca>
380
381 * composite.c (Fcomposition_get_gstring): Yet another int/Lisp_Oject
382 mixup (YAILOM).
383
3842008-09-17 Chong Yidong <cyd@stupidchicken.com>
385
386 * indent.c (Fvertical_motion): Use position reported by iterator
387 instead of PT for determining screen motion (bug#943).
388
3892008-09-17 Romain Francoise <romain@orebokech.com>
390
391 * composite.c (composition_adjust_point): Fix int/EMACS_INT mixup.
392
3932008-09-17 Kenichi Handa <handa@m17n.org>
394
395 * ftfont.c (ftfont_shape_by_flt): Downcase family name.
396
397 * composite.c (Fcomposition_get_gstring): Make bigger gstring_work
398 if necessary.
399
4002008-09-16 Kenichi Handa <handa@m17n.org>
401
402 * coding.c (make_conversion_work_buffer): Avoid calling
403 Fget_buffer_create if it is not necessary.
404
4052008-09-15 Martin Rudalics <rudalics@gmx.at>
406
407 * window.c (Fselect_window): Don't update window_select_count and
408 use_time when norecord is not nil.
409
4102008-09-14 Kenichi Handa <handa@m17n.org>
411
412 * fileio.c (Finsert_file_contents): Delete incorrect decrement of
413 specpdl_ptr.
414
4152008-09-12 Kenichi Handa <handa@m17n.org>
416
417 * indent.c (scan_for_column): Don't handle automatic composition
418 if the current buffer is not associated with a window.
419
420 * composite.c (composition_reseat_it): If the current buffer is
421 not associated with a window, ignore the automatic composition.
422 (find_automatic_composition): Likewise.
423
4242008-09-12 Stefan Monnier <monnier@iro.umontreal.ca>
425
426 * term.c (close_gpm): New fun extracted from Fgpm_mouse_stop.
427 (Fgpm_mouse_stop): Use it.
428 * termhooks.h (close_gpm): Declare.
429 * keyboard.c (tty_read_avail_input): Forcefully close the gpm
430 connection if Gpm_GetEvent fails.
431
432 * window.c (set_window_buffer): Always preserve current-buffer.
433
4342008-09-12 Glenn Morris <rgm@gnu.org>
435
436 * charset.c (init_charset): Warn if etc/charsets not found. (Bug#909)
437
4382008-09-11 Glenn Morris <rgm@gnu.org>
439
440 * charset.c (charset-map-path): Doc fix.
441
4422008-09-10 Kenichi Handa <handa@m17n.org>
443
444 * xdisp.c (handle_composition_prop): Set it->cmp_it.ch to -1.
445
446 * font.c (Ffont_shape_gstring): Make glyphs of non-nil adjustment
447 compose a grapheme cluster with the preceding base glyph.
448
449 * composite.c (composition_compute_stop_pos): Fix previous change.
450 Reset cmp_it->id to -1 at first.
451
4522008-09-10 Glenn Morris <rgm@gnu.org>
453
454 * Makefile.in (character.o, chartab.o): Fix config.h typo.
455
4562008-09-09 Chong Yidong <cyd@stupidchicken.com>
457
458 * keyboard.c (read_key_sequence): Reapply translation maps when
459 switching keyboards.
460
4612008-09-09 Kenichi Handa <handa@m17n.org>
462
463 * ftfont.c (ftfont_shape_by_flt): Use "combining" FLT for ASCII
464 characters.
465
466 * composite.c (FORWARD_CHAR): Fix calculation
467 of (POSITION).pos_byte.
468 (composition_compute_stop_pos): Limit the search of composition to
469 at most 500 characters ahead. If we reach the limit or find a
470 newline, set cmp_it->ch to -2 and return 0.
471 (composition_reseat_it): Handle the case that cmp_it->ch is -2.
472
4732008-09-08 Kenichi Handa <handa@m17n.org>
474
475 * indent.c (Fvertical_motion): Be sure to set
476 it_overshoot_expected if it.cmp_it.id is non-negative.
477
4782008-09-07 Andreas Schwab <schwab@suse.de>
479
480 * callproc.c (Fcall_process): Don't hold references to string data
481 across garbage collection. Move initialisation of new_argv down
482 to avoid compiler bug.
483
4842008-09-07 Roland Winkler <Roland.Winkler@physik.uni-erlangen.de>
485
486 * process.c (Fsystem_process_attributes): Doc fix.
487
4882008-09-07 Chong Yidong <cyd@stupidchicken.com>
489
490 * callproc.c (Fcall_process): Canonicalize current directory name.
491
492 * xdisp.c (move_it_to): When moving by vpos, ensure that the
493 iterator advances to the next line if the current line ends in a
494 continued tab.
495
4962008-09-07 Teodor Zlatanov <tzz@lifelogs.com>
497
498 * nsfont.m (nsfont_draw): Fix the references to missing gidx data
499 member to point to cmp_from.
500
501 * xdisp.c: Doc fix for references to gidx data member.
502
5032008-09-07 Stefan Monnier <monnier@iro.umontreal.ca>
504
505 * buffer.c (Fbuffer_swap_text): Reset window->point markers.
506
5072008-09-07 Kenichi Handa <handa@m17n.org>
508
509 * composite.c (FORWARD_CHAR): Check STOP after
510 incrementing (POSITION).pos.
511
5122008-09-06 Roland Winkler <Roland.Winkler@physik.uni-erlangen.de>
513
514 * process.c (Fsystem_process_attributes): Doc fix.
515
5162008-09-06 Chong Yidong <cyd@stupidchicken.com>
517
518 * keyboard.c (Ftop_level): Doc fix.
519
5202008-09-06 Eli Zaretskii <eliz@gnu.org>
521
522 * xmenu.c (xmenu_show) [!HAVE_X_WINDOWS]: If frame has a
523 minibuffer, don't let lower part of menu invade the echo area.
524
525 * msdos.c (IT_menu_display): Use STRING_CHAR_ADVANCE instead of a
526 "char *q" to access menu text and advance through it. Revert the
527 change that displayed ">" instead of ASCII character 0x10.
528
5292008-09-05 Eli Zaretskii <eliz@gnu.org>
530
531 * menu.c (single_menu_item) [!HAVE_BOXES]: Enable emulation of
532 toggle boxes and radio buttons on MS-DOS as well.
533
5342008-09-05 Kenichi Handa <handa@m17n.org>
535
536 * composite.c (autocmp_chars): Check lookback count.
537 (composition_compute_stop_pos): Set cmp_it->lookback.
538 (composition_reseat_it): Check lookback count.
539 (struct position_record): New struct.
540 (FORWARD_CHAR, BACKWARD_CHAR, CHAR_COMPOSABLE_P): New macros.
541 (find_automatic_composition): New function.
542 (composition_adjust_point): Use find_automatic_composition.
543
544 * dispextern.h (struct composition_it): New member lookback.
545
5462008-09-02 Chong Yidong <cyd@stupidchicken.com>
547
548 * indent.c (Fvertical_motion): Don't call move_it_by_lines again
549 if moving by a single line.
550
5512008-09-02 Andreas Schwab <schwab@suse.de>
552
553 * xterm.c (x_delete_display): Fix merge error.
554
555 * fileio.c (Fexpand_file_name): Remove unused variables.
556
5572008-09-02 Eli Zaretskii <eliz@gnu.org>
558
559 * fileio.c (Fexpand_file_name): Copy argument `name' into local
560 storage on all platforms, not just on DOS_NT.
561
5622008-09-02 Jason Rumney <jasonr@gnu.org>
563
564 * w32menu.c (Fx_popup_menu, Fx_popup_dialog, w32_menu_show): Ensure
565 mouse is not grabbed after menu is finished.
566
5672008-09-01 Chong Yidong <cyd@stupidchicken.com>
568
569 * xfaces.c (Finternal_set_alternative_font_family_alist)
570 (Finternal_set_alternative_font_registry_alist): Properly copy
571 entire alist structure.
572
5732008-09-01 Kenichi Handa <handa@m17n.org>
574
575 * ftfont.c (ftfont_spec_pattern): Don't create a charset of the
576 representative chars of the script is a vector.
577 (ftfont_list): Handle the case the representative chars of the
578 script is a vector.
579
580 * character.c (syms_of_character): Docstring of
581 script-representative-chars fixed.
582
5832008-08-31 Eli Zaretskii <eliz@gnu.org>
584
585 * msdos.c (BUILD_CHAR_GLYPH): New macro.
586 (IT_menu_display): Use it instead of SET_CHAR_GLYPH to construct
587 the menu. Allocate larger buffer for `text', to account for
588 possible ^C characters.
589
5902008-08-31 Martin Rudalics <rudalics@gmx.at>
591
592 * xdisp.c (prepare_menu_bars): Don't call
593 Vwindow_size_change_functions with arg Qt.
594
5952008-08-31 Stefan Monnier <monnier@iro.umontreal.ca>
596
597 * font.h (font_range):
598 * fileio.c (report_file_error):
599 * composite.c (composition_update_it): Yet another int/Lisp_Oject mixup.
600
6012008-08-30 Glenn Morris <rgm@gnu.org>
602
603 * data.c (Fmake_variable_frame_local): Doc fix.
604
605 * frame.c (Fmodify_frame_parameters): Doc fix.
606
6072008-08-30 Eli Zaretskii <eliz@gnu.org>
608
609 * w32.c (init_user_info): Allocate buf[] with xmalloc using the size
610 needed by GetTokenInformation.
611 (w32_system_process_attributes): Check return values of all system
612 APIs.
613
614 * msdos.c (IT_display_cursor): Write "CURSOR ON/OFF" to termscript
615 only when the state changes.
616 (IT_update_begin, IT_update_end): Add termscript trace.
617
618 * w16select.c (Fw16_set_clipboard_data): Don't encode text if
619 clipboard is unavailable. Set dst to NULL if it doesn't point to
620 malloc'ed data.
621 (Fw16_get_clipboard_data): Initialize htext to NULL, to avoid
622 passing random values to xfree.
623
624 * dispnew.c (init_display): Set `tty's association in frame's
625 parameters alist to the name of the terminal device, if that is
626 known.
627
6282008-08-29 Jason Rumney <jasonr@gnu.org>
629
630 * w32uniscribe.c (uniscribe_check_otf): Don't fallback on DFLT script.
631
6322008-08-29 Eli Zaretskii <eliz@gnu.org>
633
634 * composite.c (fill_gstring_body): Avoid compiler warnings.
635
636 * font.c (font_fill_lglyph_metrics): Use EMACS_INT in
637 LGLYPH_SET_CODE to avoid compiler warnings.
638
639 * makefile.w32-in ($(BLD)/w32uniscribe.$(O)): Depend on composite.h
640
641 * composite.h (LGLYPH_SET_CODE): Cast `val' to EMACS_INT.
642
643 * w32uniscribe.c (uniscribe_shape): Shut up compiler warning in
644 LGLYPH_SET_CODE.
645
6462008-08-29 Kenichi Handa <handa@m17n.org>
647
648 * fileio.c (report_file_error): Don't downcase the first character
649 of errstring if it is still unibyte.
650
6512008-08-29 Kenichi Handa <handa@m17n.org>
652
653 These changes are to re-implement the automatic composition so
654 that it doesn't use text properties.
655
656 * Makefile.in (ftfont.o): Depend on composite.h.
657 (composite.o): Depend dispextern.h, font.h, frame, and window.h.
658
659 * character.h (Vunicode_category_table): Extern it.
660
661 * character.c (Vunicode_category_table): New variable.
662 (syms_of_character): DEFVAR_LISP Vunicode_category_table.
663
664 * chartab.c (optimize_sub_char_table): Perform more greedy
665 optimization.
666
667 * composite.h (enum composition_method): Delete
668 COMPOSITION_WITH_GLYPH_STRING.
669 (COMPOSITION_METHOD): Don't check COMPOSITION_WITH_GLYPH_STRING.
670 (Vcomposition_function_table): Extern it.
671 (LGSTRING_XXX, LGLYPH_XXX): Macros moved from font.h.
672 (composition_gstring_put_cache, composition_gstring_from_id)
673 (composition_gstring_p, composition_gstring_width)
674 (composition_compute_stop_pos, composition_reseat_it)
675 (composition_update_it, composition_adjust_point): Extern them.
676 (Fcomposition_get_gstring): EXFUN it.
677
678 * composite.c: Include window.h, frame.h, dispextern.h font.h.
679 (Vcomposition_function_table)
680 (get_composition_id): Don't handle COMPOSITION_WITH_GLYPH_STRING.
681 (gstring_hash_table, gstring_work, gstring_work_headers): New
682 variables.
683 (gstring_lookup_cache, composition_gstring_put_cache)
684 (composition_gstring_from_id, composition_gstring_p)
685 (composition_gstring_width, fill_gstring_header)
686 (fill_gstring_body, autocmp_chars, composition_compute_stop_pos)
687 (composition_reseat_it, composition_update_it)
688 (composition_adjust_point, Fcomposition_get_gstring): New
689 functions.
690 (syms_of_composite): Initialize gstring_hash_table, gstrint_work,
691 and gstring_work_headers. DEFVAR_LISP composition-function-table.
692 Defsubr compostion_get_gstring.
693
694 * dispextern.h (struct glyph): New union u.cmp. Delete the member
695 cmp_id.
696 (struct glyph_string): Delete the member gidx. New members
697 cmp_id, cmp_from, and cmp_to.
698 (enum it_method): Delete GET_FROM_COMPOSITION.
699 (struct composition_it): New struct.
700 (struct it): New member cmp_it, and iterator_stack_entry.cmp_it.
701 Delete c, len, cmp_id, cmp_len in u.comp.
702
703 * font.h (enum lgstring_indices): Delete it.
704 (LGSTRING_XXX, LGLYPH_XXX): These macros moved to composite.h.
705 (enum lglyph_indices): Likewise.
706 (font_range): Extern adjusted.
707 (font_fill_lglyph_metrics): Extern it.
708
709 * font.c (QCf): New variable.
710 (check_gstring): Use LGSTRING_GLYPH_LEN, not LGSTRING_LENGTH.
711 (font_prepare_composition): Delete this function.
712 (font_range): Type and arguments changed.
713 (Ffont_make_gstring, Ffont_fill_gstring): Delete them.
714 (font_fill_lglyph_metrics): New function.
715 (Ffont_shape_text): Renamed to Ffont_shape_gstring and arguments
716 changed.
717 (syms_of_font): DEFSYM QCf. Delete defsubr for
718 Sfont_make_gstring, Sfont_fill_gstring, Sfont_shape_text. Defsubr
719 Sfont_shape_gstring.
720
721 * fontset.h (font_for_char): Extern it.
722
723 * fontset.c (font_for_char): New function.
724
725 * ftfont.c: Include composite.h.
726 (ftfont_resolve_generic_family): Add langset "en" to pattern.
727 (ftfont_shape_by_flt): Use LGSTRING_GLYPH_LEN, not
728 LGSTRING_LENGTH.
729
730 * indent.c: Include composite.h and dispextern.h.
731 (check_composition): Delete this function.
732 (scan_for_column): Handle composition by
733 composition_compute_stop_pos, composition_reseat_it, and
734 composition_update_it.
735 (compute_motion): Likewise.
736 (Fvertical_motion): Fix checking of composition.
737
738 * keyboard.c (adjust_point_for_property): Check composition by
739 composition_adjust_point.
740
741 * nsterm.m (ns_draw_glyph_string): Adjusted for the change of
742 struct glyph_string.
743
744 * term.c (encode_terminal_code): Adjusted for the change of struct
745 glyph.
746 (append_composite_glyph): Adjusted for the change of struct it and
747 struct glyph.
748 (produce_composite_glyph): Likewise.
749
750 * w32term.c (x_draw_composite_glyph_string_foreground): Adjusted
751 for the change of struct glyph_string.
752 (x_draw_glyph_string): Likewise.
753
754 * w32uniscribe.c (struct uniscribe_font_info): Include composite.h.
755 (uniscribe_shape): Use LGSTRING_GLYPH_LEN, not LGSTRING_LENGTH.
756
757 * xdisp.c: Include font.h.
758 (it_props): Delete the entry for Qauto_composed.
759 (init_iterator): Initialize it->cmp_it.id to -1.
760 (compute_stop_pos): Call composition_compute_stop_pos.
761 (face_before_or_after_it_pos): Adjusted for the change of struct
762 it.
763 (handle_auto_composed_prop): Delete it.
764 (handle_composition_prop): Handle only static composition.
765 (next_overlay_string): Remove it->method == GET_FROM_COMPOSITION
766 from xassert. Initialize it->cmp_it.stop_pos.
767 (push_it): Adjusted for the change of struct it.
768 (pop_it): Likewise.
769 (get_next_element): Delete next_element_from_composition.
770 (CHAR_COMPOSED_P): New macro.
771 (get_next_display_element): For automatic composition, get a face
772 from the font in the glyph-string.
773 (set_iterator_to_next): For GET_FROM_BUFFER and GET_FROM_STRING,
774 check composition by it->cmp_it.id. Delete GET_FROM_COMPOSITION
775 case.
776 (next_element_from_string): Check if the character at the current
777 position is composed by CHAR_COMPOSED_P.
778 (next_element_from_buffer): Likewise.
779 (next_element_from_composition): Adjusted for the change of struct
780 it. Update it->cmp_it.
781 (dump_glyph): Adjusted for the change of struct glyph.
782 (fill_composite_glyph_string): Adjusted for the change of struct
783 it and struct glyph. Don't handle automatic composition here.
784 (fill_gstring_glyph_string): New function.
785 (x_get_glyph_overhangs): Handle automatic composition.
786 (BUILD_COMPOSITE_GLYPH_STRING): Adjusted for the change of struct
787 glyph.
788 (BUILD_GSTRING_GLYPH_STRING): New macro.
789 (BUILD_GLYPH_STRINGS): Call BUILD_GSTRING_GLYPH_STRING for
790 automatic composition.
791 (append_composite_glyph): Adjusted for the change of struct it and
792 struct glyph.
793 (x_produce_glyphs): Adjusted for the change of struct it.
794
795 * xterm.c (x_draw_composite_glyph_string_foreground): Adjusted for
796 the change of struct glyph_string.
797 (x_draw_glyph_string): Likewise.
798
7992008-08-29 Glenn Morris <rgm@gnu.org>
800
801 * buffer.c (word-wrap): Doc fix.
802 * xdisp.c (truncate-partial-width-windows): Doc fix.
803 Increase default to 50.
804
8052008-08-29 Chong Yidong <cyd@stupidchicken.com>
806
807 * xdisp.c (update_tool_bar_unwind): New function.
808 (update_tool_bar): Temporarily set selected frame before building
809 tool-bar items.
810
8112008-08-28 Michael Albinus <michael.albinus@gmx.de>
812
813 * dbusbind.c (XD_ERROR, XD_DEBUG_MESSAGE): Use strncpy and
814 snprintf, respectively.
815 (xd_append_arg): Convert strings with Fstring_make_unibyte.
816
8172008-08-28 Chong Yidong <cyd@stupidchicken.com>
818
819 * Makefile.in: Revert (undocumented) 2008-08-20 change adding
820 LDFLAGS to GNUstep CC invocation.
821
8222008-08-27 Chong Yidong <cyd@stupidchicken.com>
823
824 * indent.c (Fvertical_motion): Revert last change. Handle the
825 general case where we are moving forward, and PT spans multiple
826 screen lines.
827
828 * eval.c (find_handler_clause): Temporarily increase
829 max-lisp-eval-depth while printing the backtrace buffer, to
830 guarantee that help-mode code can run.
831
8322008-08-27 Eli Zaretskii <eliz@gnu.org>
833
834 * msdos.c (Fmsdos_remember_default_colors): Don't reverse frame
835 colors under -rv.
836 (IT_set_frame_parameters): Don't swap foreground and background
837 colors if `(reverse . t)' is present in the frame properties.
838 (internal_terminal_init): Call init_frame_faces only for the
839 initial frame.
840
8412008-08-27 Andreas Schwab <schwab@suse.de>
842
843 * dired.c (Ffile_attributes): Avoid compiler warning in bitshift.
844
8452008-08-27 Andreas Schwab <schwab@suse.de>
846
847 * search.c (search_buffer): Set char_base to zero only at the end.
848
8492008-08-27 Kenichi Handa <handa@m17n.org>
850
851 * fileio.c (report_file_error): Fix handling of multibyte error
852 string.
853
8542008-08-27 Andreas Seltenreich <seltenreich@gmx.de>
855
856 * xterm.c (x_term_init): Temporarily hide the partially
857 initialized terminal while calling vendor-specific-keysyms.
858
8592008-08-26 Eli Zaretskii <eliz@gnu.org>
860
861 * msdos.c (internal_terminal_init): Most initializations done only
862 once, especially initial_screen_colors[] and termscript open.
863
8642008-08-26 Chong Yidong <cyd@stupidchicken.com>
865
866 * eval.c (Fcondition_case): Doc fix.
867
868 * widgetprv.h (EmacsFramePart): Change font member to the new font
869 struct.
870
871 * widget.c: Include character.h and font.h for XSETFONT.
872 (setup_frame_gcs): Compute X font id from font struct, just once.
873
8742008-08-26 Eli Zaretskii <eliz@gnu.org>
875
876 * term.c (get_named_tty): Fix last change.
877
8782008-08-26 Chong Yidong <cyd@stupidchicken.com>
879
880 * indent.c (Fvertical_motion): If moving forward starting from a
881 multi-line string, move the iterator to the last line of that
882 string.
883
8842008-08-25 Eli Zaretskii <eliz@gnu.org>
885
886 * frame.c (do_switch_frame): Mark previously displayed frame as
887 obscured for FRAME_MSDOS_P frames as well.
888
8892008-08-24 Eli Zaretskii <eliz@gnu.org>
890
891 * frame.c (make_terminal_frame): Initialize f->terminal,
892 f->terminal->reference_count, and scroll bars on MS-DOS as well.
893 Set the top frame to newly created frame.
894 (Fmake_terminal_frame): Reuse the_only_display_info.
895
896 * vm-limit.c (get_lim_data) [MSDOS]: Use alternative methods of
897 estimating available memory.
898
8992008-08-23 David Reitter <david.reitter@gmail.com>
900
901 * nsterm.m (ns_draw_window_cursor): Don't call
902 NSDisableScreenUpdates and NSEnableScreenUpdates on
903 non-NS_IMPL_COCOA systems.
904
9052008-08-23 Andreas Schwab <schwab@suse.de>
906
907 * process.c (procfs_system_process_attributes): Fix use of
908 uninitialized variables.
909
9102008-08-23 Eli Zaretskii <eliz@gnu.org>
911
912 * emacs.c (main) [MSDOS]: Call syms_of_xmenu.
913
914 * dispnew.c (init_display): Remove MS-DOS specific conditions for
915 calling tty-set-up-initial-frame-faces.
916
917 * xmenu.c (Fx_popup_dialog, Fx_popup_menu, xmenu_show): Allow
918 MSDOS frames along with X frames.
919
920 * termhooks.h (TERMINAL_ACTIVE_P): Handle output_msdos_raw in
921 addition to output_termcap.
922
923 * xdisp.c (redisplay_internal) [MSDOS]: Don't call set_tty_color_mode.
924
925 * termchar.h (FRAME_TTY): Support output_msdos_raw.
926 (struct tty_display_info) [MSDOS]: Add fields related to mouse
927 highlight.
928
929 * process.c [!subprocesses]: Define QCname.
930 (syms_of_process): Intern and staticpro it.
931
932 * w16select.c (Fw16_set_clipboard_data, Fw16_get_clipboard_data):
933 Adjust for changes in encoding/decoding routines. Use
934 encode_coding_object and decode_coding_object instead of
935 encode_coding and decode_coding.
936
937 * sysdep.c (init_sys_modes): Call dos_ttraw with tty_out as
938 argument.
939
940 * dosfns.c: Include frame.h before termhooks.h.
941 (dos_cleanup): Use CURTTY ()->termscript instead of a global
942 variable termscript.
943
944 * s/msdos.h (USER_FULL_NAME): Define.
945 (SYSTEM_PURESIZE_EXTRA): Bump up to 100K.
946
947 * editfns.c (USER_FULL_NAME): Define to pw->pw_gecos if undefined.
948 (Fuser_full_name): Use USER_FULL_NAME instead of a literal
949 pw->pw_gecos.
950
951 * keyboard.c (handle_interrupt) [MSDOS]: Call cursor_to with
952 SELECTED_FRAME as additional (1st) argument.
953 (tty_read_avail_input): Handle output_msdos_raw in
954 addition to output_termcap.
955
956 * msdos.c: Include frame.h before termhooks.h.
957 (mouse_on, mouse_off, mouse_moveto, mouse_init)
958 (msdos_set_cursor_shape, IT_set_face, IT_write_glyphs)
959 (show_mouse_face, IT_clear_end_of_line, IT_clear_screen)
960 (IT_clear_to_end, IT_cursor_to, IT_display_cursor, IT_cmgoto)
961 (IT_set_terminal_modes, IT_reset_terminal_modes)
962 (IT_set_frame_parameters): Use tty->termscript instead of a global
963 variable termscript.
964 (IT_write_glyphs): Use tty->terminal->terminal_coding instead of a
965 global variable terminal_coding. Don't refer to
966 Vnonascii_translation_table.
967 (internal_terminal_init): Set Vwindow_system in current_kboard.
968 Don't use TTY_CHAR_INS_DEL_OK. Set Vinitial_window_system.
969 Announce date and time of session start, if termscript is open.
970 Don't zero out the_only_display_info (it is done in
971 term.c:init_tty). Open termscript only of not already open. Log
972 "SCREEN SAVED" here, instead of IT_set_terminal_modes. Init mouse
973 here instead of dos_ttraw. Don't initialize display if this is an
974 initial tty. Don't set FRAME_FONT.
975 (Vwindow_system_version): Bump to 23.
976 (dos_ttraw): Accept a TTY argument; all callers fixed. If mouse
977 is available, set up mouse_position_hook.
978 (dos_ttraw, IT_set_terminal_modes): If called with initial
979 terminal, do nothing.
980 (IT_set_frame_parameters): Handle the Qtty_type frame
981 parameter by calling internal_terminal_init.
982 (dos_set_window_size, show_mouse_face)
983 (clear_mouse_face, IT_note_mode_line_highlight)
984 (IT_note_mouse_highlight, IT_update_begin, IT_frame_up_to_date)
985 (dos_rawgetc): Use tty_display_info instead of x_display_info.
986 (initialize_msdos_display): New function.
987 (IT_cursor_to, IT_clear_to_end, IT_clear_screen)
988 (IT_clear_end_of_line, IT_insert_glyphs, IT_write_glyphs)
989 (IT_delete_glyphs, IT_ring_bell, IT_reset_terminal_modes)
990 (IT_set_terminal_modes, IT_set_terminal_window, IT_update_begin):
991 Accept additional argument: a pointer to a frame. All callers
992 changed.
993 (request_sigio, unrequest_sigio): Don't define, now defined on
994 sysdep.c.
995 (IT_write_glyphs): Rewrite to use encode_terminal_code.
996
997 * term.c [MSDOS]: Include msdos.h.
998 (init_tty) [MSDOS]: Reuse most of WINDOWSNT branch. Change cpp
999 conditional to DOS_NT. Allow only one call to this function in a
1000 session. Don't allocate a new struct tty_display_info; instead,
1001 reuse the_only_display_info. Call get_tty_size to get screen
1002 dimensions. Call init_baud_rate to set bad_rate.
1003 (dissociate_if_controlling_tty) [MSDOS]: Ifdef away function body.
1004 (Fsuspend_tty) [MSDOS]: Don't close input and output.
1005 (Fresume_tty) [MSDOS]: Don't reopen the TTY; instead, use
1006 stdin/stdout.
1007 (get_tty_terminal, get_named_tty, Ftty_type)
1008 (Fcontrolling_tty_p): Handle output_msdos_raw in addition to
1009 output_termcap.
1010 (Fresume_tty, Fsuspend_tty, init_tty, delete_tty): Call
1011 add_keyboard_wait_descriptor and delete_keyboard_wait_descriptor
1012 only when subprocesses are supported
1013
1014 * frame.c (make_terminal_frame) [MSDOS]: Adjust initialization of
1015 f->output_data.x.
1016 (Fmake_terminal_frame) [MSDOS]: Don't allow creation of new
1017 terminal devices.
1018
1019 * msdos.h Remove definition of struct x_display_info and struct
1020 x_output.
1021 (FRAME_FONT): Use output_data.tty.
1022 (FRAME_FOREGROUND_PIXEL, FRAME_BACKGROUND_PIXEL): Don't define.
1023 (struct x_display_info): Renamed from display_info. All users in
1024 msdos.c changed.
1025 (struct x_output): Remove background_pixel and foreground_pixel.
1026 (the_only_display_info): Renamed from the_only_x_display.
1027 (dos_ttraw): Update prototype.
1028
1029 * Makefile.in (MSDOS_OBJ): Add xmenu.o.
1030 (SOME_MACHINE_LISP): Add ../lisp/term/pc-win.elc.
1031
10322008-08-23 Jason Rumney <jasonr@gnu.org>
1033
1034 * image.c (enum tiff_keyword_index, tiff_format): Add :index keyword.
1035 (fn_TIFFSetDirectory): New library function used.
1036 (init_tiff_functions) [HAVE_NTGUI]: Initialize it.
1037 (tiff_load): Use :index to select among multiple images. Set count
1038 property when multiple images exist.
1039 (gif_format): Use :index, not :image.
1040
10412008-08-23 Chong Yidong <cyd@stupidchicken.com>
1042
1043 * xdisp.c (try_scrolling): Check INT_MAX instead of
1044 MOST_POSITIVE_FIXNUM for maximum integer value. Include limits.h
1045 to obtain INT_MAX.
1046
10472008-08-21 İsmail Dönmez <ismail@namtrac.org> (tiny change)
1048
1049 * xterm.c (x_delete_display): Don't call XrmDestroyDatabase on GTK+.
1050
10512008-08-21 Christian Faulhammer <opfer@gentoo.org> (tiny change)
1052
1053 * Makefile.in (temacs${EXEEXT}): On GNUstep, link to appropriate
1054 GNUstep library location.
1055
10562008-08-21 Chong Yidong <cyd@stupidchicken.com>
1057
1058 * xfaces.c (x_update_menu_appearance): Check validity of menu font
1059 before using it.
1060
1061 * puresize.h (BASE_PURESIZE): Increase to 1250000.
1062
10632008-08-20 Adrian Robert <Adrian.B.Robert@gmail.com>
1064
1065 * nsfns.m (ns-read-file-name): Add casts to avoid warning.
1066 (ns-convert-utf8-nfd-to-nfc): Warn if cannot execute correctly.
1067 * nsfont.m (nsfont_draw): Compare indexed colors to 0, not nil.
1068 * nsterm.h (EmacsView-unlockFocusNeedsFlush:): Add declaration.
1069 (EmacsApp-cursor_blink_handler): Remove declaration.
1070 * nsterm.m (ns_draw_glyph_string): Update first conditional body to
1071 match 01 Feb 2008 changes in xterm.c.
1072 (ns_read_socket): Add cast to avoid warning.
1073 (EmacsApp-application:openFiles:): Don't call replyToOpenOrPrint: on
1074 GNUstep.
1075
10762008-08-20 Chong Yidong <cyd@stupidchicken.com>
1077
1078 * xselect.c (x_get_foreign_selection): Return nil if desired
1079 selection could not be obtained, instead of signalling an error.
1080
10812008-08-20 David Reitter <david.reitter@gmail.com>
1082
1083 * nsfns.m (ns_lisp_to_cursor_type): Replace with generic xfns.c.
1084 * nsterm.m: Remove ns-specific code for cursor blinking.
1085 (ns_draw_window_cursor): Clear cursor properly rather than
1086 redrawing the area. Respect width of bar cursors.
1087 These changes enable the use of generic blink-cursor-mode and
1088 generic cursor types in NS and support smooth cursor movements (do
1089 not blink off after command).
1090 * xdisp.c (get_phys_cursor_geometry): Redraw wider rectangle on
1091 Nextstep, too.
1092
10932008-08-19 Kenichi Handa <handa@m17n.org>
1094
1095 * font.c (Vfont_log_deferred): New variable.
1096 (font_add_log): Check Vfont_log_deferred.
1097 (font_deferred_log): New function.
1098
1099 * font.h (font_deferred_log): Extern it.
1100
1101 * fontset.c (reorder_font_vector): Use encoding charset of fonts
1102 for sorting.
1103 (face_for_char): Use deferred log.
1104
11052008-08-18 Kenichi Handa <handa@m17n.org>
1106
1107 * fontset.c (face_for_char): Add font log.
1108
1109 * font.c (font_add_log): Add the font properties :script, :lang,
1110 and :otf in the log.
1111
11122008-08-17 Chong Yidong <cyd@stupidchicken.com>
1113
1114 * xdisp.c: Remove dead code.
1115 (handle_invisible_prop, next_overlay_string): Defer call to
1116 setup_for_ellipsis.
1117 (handle_stop, set_iterator_to_next): Call setup_for_ellipsis.
1118
11192008-08-15 Chong Yidong <cyd@stupidchicken.com>
1120
1121 * xfaces.c (lookup_derived_face): Properly handle possible zero
1122 return value of get_lface_attributes.
1123 (merge_faces): Don't tell lookup_derived_face to signal an error
1124 if face is not found.
1125
1126 * dired.c (Fdirectory_files): Doc fix.
1127
1128 * process.c (make_process): Initialize kill_without_query struct
1129 member.
1130
11312008-08-15 Eli Zaretskii <eliz@gnu.org>
1132
1133 * w32.c (w32_system_process_attributes) [_MSC_VER < 1300]:
1134 Alternative calculation of totphys for Visual Studio 6.
1135
1136 * w32fns.c [_MSC_VER && _MSC_VER < 1300]: Declare HMONITOR.
1137
1138 * w32.c (_MEMORY_STATUS_EX, MEMORY_STATUS_EX, LPMEMORY_STATUS_EX):
1139 Rename from _MEMORYSTATUSEX, MEMORYSTATUSEX, LPMEMORYSTATUSEX.
1140 All users changed.
1141 (stat): Only root directory passed to GetDriveType. Allow RAM
1142 disk as well as local fixed disk when w32-get-true-file-attributes
1143 is set to `local'.
1144 (CopySid_Proc, EqualSid_Proc, GetLengthSid_Proc): New typedefs.
1145 (equal_sid, get_length_sid, copy_sid): New wrapper functions.
1146 (w32_cached_id, w32_add_to_cache): New functions.
1147 (get_name_and_id): Look account names in the cache before calling
1148 lookup_account_sid.
1149 (g_b_init_get_length_sid, g_b_init_equal_sid, g_b_init_copy_sid):
1150 New initialization flags.
1151 (globals_of_w32): Initialize them to zero.
1152 (w32_system_process_attributes): Use w32_cached_id and
1153 w32_add_to_cache.
1154
11552008-08-14 Lawrence Mitchell <wence@gmx.li>
1156
1157 * lread.c (Fread_char, Fread_char_exclusive): If no character
1158 event is read before timeout is reached, return nil, rather than
1159 converting to a number.
1160
11612008-08-14 Chong Yidong <cyd@stupidchicken.com>
1162
1163 * fns.c (use_dialog_box): Doc fix.
1164
1165 * s/darwin.h: Undefine HAVE_RES_INIT, which appears to be harmful
1166 on OS X.
1167
11682008-08-13 Chong Yidong <cyd@stupidchicken.com>
1169
1170 * frame.c (Qns_parse_geometry): New var.
1171 (Fx_parse_geometry): For HAVE_NS, call ns-parse-geometry.
1172
11732008-08-11 Chong Yidong <cyd@stupidchicken.com>
1174
1175 * xdisp.c (x_produce_glyphs): Handle the case when font has no
1176 space character in calculating tabs.
1177
11782008-08-11 Dan Nicolaescu <dann@ics.uci.edu>
1179
1180 * Makefile.in (bootstrap-emacs): Use ln -f in the CANNOT_DUMP case.
1181
11822008-08-10 Glenn Morris <rgm@gnu.org>
1183
1184 * process.c (procfs_system_process_attributes): Use EMACS_INTs to
1185 silence gcc "limited range of data type" warnings in some
1186 make_fixnum_or_float calls.
1187
11882008-08-09 Eli Zaretskii <eliz@gnu.org>
1189
1190 * w32.c (w32_system_process_attributes): If the process does not
1191 exist, return nil.
1192
1193 * w32.c: Include thelp32.h, psapi.h and coding.h.
1194 (_MEMORYSTATUSEX, _PROCESS_MEMORY_COUNTERS_EX): New struct
1195 declarations.
1196 (CreateToolhelp32Snapshot_Proc, Process32First_Proc)
1197 (Process32Next_Proc): New typedefs.
1198 (g_b_init_create_toolhelp32_snapshot, g_b_init_process32_first)
1199 (g_b_init_process32_next, g_b_init_open_thread_token)
1200 (g_b_init_impersonate_self, g_b_init_revert_to_self)
1201 (g_b_init_get_process_memory_info, g_b_init_global_memory_status)
1202 (g_b_init_get_process_working_set_size)
1203 (g_b_init_global_memory_status_ex): New static variables.
1204 (globals_of_w32): Initialize them.
1205 (create_toolhelp32_snapshot, process32_first, process32_next)
1206 (open_thread_token, impersonate_self, revert_to_self)
1207 (get_process_memory_info, get_process_working_set_size)
1208 (global_memory_status, global_memory_status_ex): New wrapper
1209 functions.
1210 (w32_list_system_processes, w32_system_process_attributes)
1211 (enable_privilege, restore_privilege, ltime, process_times):
1212 New functions.
1213 (convert_time_raw): New function.
1214 (convert_time): Remove conversion of FILETIME into time in 100
1215 nsec units, call convert_time_raw instead.
1216
1217 * process.h (w32_list_system_processes, w32_system_process_attributes):
1218 Add prototypes.
1219 (Qeuid, Qegid, Qcomm, Qstate, Qppid, Qpgrp, Qsess, Qttname)
1220 (Qminflt, Qmajflt, Qcminflt, Qcmajflt, Qutime, Qstime, Qcutime)
1221 (Qpri, Qnice, Qthcount, Qstart, Qvsize, Qrss, Qargs, Quser, Qgroup)
1222 (Qetime, Qpcpu, Qpmem, Qtpgid, Qcstime): Add extern declarations.
1223
1224 * process.c (Fsystem_process_attributes): Doc fix.
1225
12262008-08-08 Chong Yidong <cyd@stupidchicken.com>
1227
1228 * xdisp.c (move_it_to): When stopping at a charpos, check if that's
1229 a continued multi-char glyph; if so, advance to the actual glyph.
1230
12312008-08-07 Dan Nicolaescu <dann@ics.uci.edu>
1232
1233 * s/darwin.h (OTHER_FILES): Do not define here, defined in config.in.
1234
1235 * Makefile.in (ALL_OBJC_CFLAGS): New variable.
1236 (.m.o): Use it.
1237 * config.in: Regenerate.
1238
12392008-08-07 Chong Yidong <cyd@stupidchicken.com>
1240
1241 * xdisp.c (redisplay_window): Revert last change.
1242 (try_window): Check bottom scroll margin too.
1243
12442008-08-06 Adrian Robert <Adrian.B.Robert@gmail.com>
1245
1246 * config.in: Regenerate.
1247
1248 * Makefile.in (emacs): Remove ifndef NS conditional for 'emacs
1249 -list-load-path-shadows'.
1250 (nsgui.h): Reduce number of things depending on it.
1251
12522008-08-06 Chong Yidong <cyd@stupidchicken.com>
1253
1254 * xdisp.c (try_scrolling): Use iterator to find the scroll margin,
1255 instead of window-end which does the wrong thing at eob.
1256 (try_cursor_movement): Minor optimization.
1257 (redisplay_window): If scroll margin is defined, don't assume
1258 window doesn't need scrolling.
1259
12602008-08-06 Adrian Robert <Adrian.B.Robert@gmail.com>
1261
1262 * config.in: Regenerate.
1263
1264 * Makefile.in: Move nsXXX.m dependencies into big alphabetical list.
1265 (mostlyclean): Don't delete *.d under NS.
1266
1267 * nsterm.h (NS_HAVE_INTEGER): Change to NS_HAVE_NSINTEGER.
1268
12692008-08-06 Kenichi Handa <handa@m17n.org>
1270
1271 * xfont.c (xfont_list_family): Return a list of symbols, not strings.
1272
12732008-08-06 Andreas Schwab <schwab@suse.de>
1274
1275 * config.in: Regenerate.
1276
12772008-08-05 Chong Yidong <cyd@stupidchicken.com>
1278
1279 * xdisp.c (redisplay_window): Don't enforce scroll-margin when
1280 forcing a window start.
1281
1282 * fileio.c (Vauto_save_list_file_name): Move here from file.el.
1283 (auto_save_1): Update modtime when auto-save-list-file-name is on.
1284
12852008-08-04 Adrian Robert <Adrian.B.Robert@gmail.com>
1286
1287 * emacs.c (main): Under NS, set working dir to HOME when get a "psn"
1288 argument.
1289
12902008-08-05 Juanma Barranquero <lekktu@gmail.com>
1291
1292 * buffer.c (syms_of_buffer) <scroll-up-aggressively>:
1293 <scroll-down-aggressively, before-change-functions>:
1294 <after-change-functions>: Reflow docstrings.
1295
12962008-08-04 Adrian Robert <Adrian.B.Robert@gmail.com>
1297 Ken Raeburn <raeburn@gnu.org>
1298
1299 Dock menu customization, based on a patch by Ken Raeburn, plus some
1300 other fixes.
1301 * nsmenu.m (dockMenu): New variable.
1302 (EmacsDialog -clicked:): Fix mistake in change of 2008-07-17.
1303
1304 * nsterm.h (dockMenu): Declare.
1305
1306 * nsterm.m (KEY_NS_NEW_FRAME): New definition.
1307 (ns_term_init): Initialize dockMenu.
1308 (EmacsApp -newFrame:, -applicationDockMenu:): New methods.
1309 (EmacsView -windowShouldClose:): Don't behave specially if <= 1 frame
1310 left.
1311
1312 * lisp.h (LSB_TAG): Use on DARWIN_OS, not NS_IMPL_COCOA.
1313
13142008-08-04 Chong Yidong <cyd@stupidchicken.com>
1315
1316 * nsterm.h: Test directly for NS_HAVE_INTEGER before defining it.
1317
1318 * config.in: Regenerate.
1319
13202008-08-04 Seiji Zenitani <zenitani@mac.com>
1321
1322 * nsfns.m (x-create-frame): Set the frame parameter alpha to nil.
1323
13242008-08-04 Chong Yidong <cyd@stupidchicken.com>
1325
1326 * nsterm.h (find_and_call_menu_selection): Fix prototype.
1327
13282008-08-04 Adrian Robert <Adrian.B.Robert@gmail.com>
1329
1330 * emacs.c (main: unexec_init_emacs_zone): Call if on DARWIN_OS.
1331
1332 * keyboard.h: Comment an #endif.
1333
1334 * lisp.h (have_menus_p): Adjust comment.
1335
1336 * menu.c (find_and_return_menu_selection): Fix comparison with
1337 client_data.
1338
1339 * nsmenu.m (popup_activated_flag): New variable.
1340 (popup_activated): New function.
1341 (menu-or-popup-active-p): New exported lisp definition.
1342 (ns_popup_menu): Set popup_activated_flag. Call discard_menu_items()
1343 when popup done.
1344 (ns_popup_dialog): Set popup_activated_flag.
1345
1346 * nsterm.m (EmacsView -conversationIdentifier): Use NSInteger
1347 version for GNUstep (handled by conditional typedef in nsterm.m).
1348 (ns_get_color): Remove special-casing for "darkblue", "dark blue" (now
1349 in rgb.txt).
1350
1351 * process.c (init_process): Use DARWIN_OS, not DARWIN.
1352
1353 * sysselect.h: Conditionalize init_process undef on DARWIN_OS.
1354
1355 * syssignal.h (FORWARD_SIGNAL_TO_MAIN_THREAD): Do it also under NS.
1356
1357 * xdisp.c (redisplay_internal, note_mouse_highlight): Under NS,
1358 shortcircuit if popup_activated like GTK and X toolkit.
1359
1360 * m/inter386.h: Change DARWIN to DARWIN_OS.
1361
1362 * s/darwin.h: Add #define DARWIN_OS. Get rid of C_SWITCH_SYSTEM def.
1363 Change LIBS_MACGUI to LIBS_NSGUI. Move temacs-conditionalized defs
1364 closer to C_SWITCH_SYSTEM_TEMACS so usage is understood. Expand
1365 comment on NO_SOCK_SIGIO.
1366
13672008-08-03 Chong Yidong <cyd@stupidchicken.com>
1368
1369 * nsterm.m (windowDidResize): Remove stopModal call.
1370
13712008-08-03 Andreas Schwab <schwab@suse.de>
1372
1373 * vm-limit.c (get_lim_data) [HAVE_GETRLIMIT && RLIMIT_AS]: Define.
1374 (check_memory_limits): Don't handle HAVE_GETRLIMIT here.
1375
13762008-08-02 Chong Yidong <cyd@stupidchicken.com>
1377
1378 * vm-limit.c (check_memory_limits): Don't use getrlimit on cygwin.
1379 Don't use uninitialized pointer variable when using getrlimit.
1380
13812008-08-02 Jason Rumney <jasonr@gnu.org>
1382
1383 * w32font.c (compute_metrics): Don't mess with glyph_idx setting here.
1384
13852008-08-02 Eli Zaretskii <eliz@gnu.org>
1386
1387 * alloc.c (NSTATICS): Bump to 0x640.
1388
1389 * s/gnu-linux.h (HAVE_PROCFS, LISTPROC, PROCATTR): New defines.
1390
1391 * lisp.h: Add prototype for directory_files_internal.
1392
1393 * process.c (Fsystem_processes_list, Fsystem_process_attributes):
1394 New functions.
1395 (syms_of_process): Defsubr them. Add initializations for various
1396 Q* symbols used in procfs_system_process_attributes.
1397 (procfs_list_system_processes, procfs_system_process_attributes)
1398 [HAVE_PROCFS]: New functions.
1399 (time_from_jiffies, ltime_from_jiffies, get_up_time, procfs_ttyname)
1400 (procfs_get_total_memory): New functions.
1401
14022008-08-01 Juanma Barranquero <lekktu@gmail.com>
1403
1404 * xfaces.c (Fx_load_color_file): Fix previous change;
1405 it is #ifdef WINDOWSNT, not WINDOWS_NT.
1406
14072008-08-01 Michael Albinus <michael.albinus@gmx.de>
1408
1409 * dbusbind.c (xd_read_message): Handle D-Bus error messages.
1410
14112008-08-01 Adrian Robert <Adrian.B.Robert@gmail.com>
1412
1413 * nsterm.h (NSInteger, NSUInteger): Add defines for non-Leopard.
1414
14152008-08-01 Chong Yidong <cyd@stupidchicken.com>
1416
1417 * nsfns.m (ns_frame_parm_handlers): Add empty entry for x_set_alpha.
1418
1419 * nsterm.m (EmacsApp -application:openFiles:): GNUstep does not
1420 define NSApplicationDelegateReplySuccess.
1421 (EmacsView -converstationIdentifier): Use long instead of
1422 NSInteger for GNUstep, since it doesn't have NSInteger.
1423
1424 * xmenu.c: Revert last change.
1425
1426 * keyboard.h: Fix last change.
1427
14282008-08-01 Juanma Barranquero <lekktu@gmail.com>
1429
1430 * xfaces.c (x-load-color-file): Use RGB() instead of manually shifting
1431 on Windows.
1432
14332008-08-01 Adrian Robert <Adrian.B.Robert@gmail.com>
1434
1435 Warning clearing and clean-up in NS port.
1436 * keyboard.h (xmalloc_widget_value, digest_single_submenu):
1437 Add prototypes.
1438 * nsgui.h (FACE_DEFAULT): Remove, unused.
1439 (XGCValues): Change colors to unsigned long.
1440 * nsterm.h (EmacsApp): Add declaration of all methods implemented in
1441 nsterm.m.
1442 (EmacsMenu -addItemWithWidgetValue:): Change to use NSMenuItem class.
1443 (ns_list_fonts): Remove, unused.
1444 (ns_font_to_xlfd, ns_fontname_to_xlfd): Drop prototypes.
1445 * nsfns.m (interpret_services_menu): Use NSMenuItem class.
1446 * nsfont.m (nsfont_open): Fix cast error in glyphs,metrics alloc.
1447 (nsfont_draw): Compare face colors to 0, not nil.
1448 * nsmenu.m (struct widget_value): Drop unneeded declaration.
1449 (EmacsMenu -addItemWithWidgetValue:, -fillWithWidgetValue:)
1450 (-addSubmenuWithTitle:): Use NSMenuItem class.
1451 (ns_popup_menu): Use NO, not NULL, for enabled setting.
1452 * nsterm.m (ns_draw_glyph_string): Don't compare font to ~0.
1453 (ns_clip_to_row): Make gc arg a BOOL.
1454 (ns_draw_fringe_bitmap, ns_draw_window_cursor): Use YES, NO in
1455 ns_clip_to_row() call.
1456 (ns_draw_glyph_string): Drop face comparison to ~0 (no longer
1457 used). Cast FRAME_FONT assignments.
1458 (ns_read_socket): Cast call to EmacsApp-fulfillService:withArg:.
1459 (ns_string_to_lispmod): Change arg to const char.
1460 (ns_term_init): Use NSMenuItem class.
1461 (EmacsApp -openFile:): Move to different section of file.
1462 (EmacsApp -application:openFiles:): Don't return a value, call
1463 -replyToOpenOrPrint:.
1464 (EmacsView -keyDown:): Fix up cast.
1465 (EmacsView -converstationIdentifier): Use NSInteger instead of long.
1466 (EmacsView -menuDown:): Cast tag in call to
1467 find_and_call_menu_selection().
1468 (ns_list_fonts): Remove, unused.
1469 (ns_font_to_xlfd): Make static. Cast result of UTF8String.
1470 (ns_fontname_to_xlfd): Make static.
1471 * w32menu.c (xmalloc_widget_value, digest_single_submenu):
1472 Remove prototypes (now in keyboard.h).
1473 (next_menubar_widget_id): Remove, unused.
1474 * xmenu.c (xmalloc_widget_value, digest_single_submenu):
1475 Remove prototypes (now in keyboard.h).
1476 * xfaces.c (ns_list_fonts, w32_list_fonts): Remove, unused.
1477
14782008-08-01 Dan Nicolaescu <dann@ics.uci.edu>
1479
1480 * Makefile.in (dispnew.o, gtkutil.o, sound.o, atimer.o)
1481 (floatfns.o): Depend on syssignal.h.
1482 (term.o): Depend on syssignal.h, systty.h, and $(INTERVAL_SRC).
1483
1484 * systty.h: Fix previous change that removed BSD_TERMIOS.
1485 Add comments to #ifdefs.
1486
14872008-08-01 Adrian Robert <Adrian.B.Robert@gmail.com>
1488
1489 * w32fns.c (w32-load-color-file): Remove.
1490 (x-open-connection): Use renamed Fx_load_color_file.
1491 * xfaces.c (x-load-color-file): Add.
1492 * nsterm.m (ns_initialize): Load colors from etc/rgb.txt instead of
1493 Emacs.clr.
1494 (hide_hourglass): BLOCK_INPUT before UNBLOCK.
1495
14962008-07-31 Michael Albinus <michael.albinus@gmx.de>
1497
1498 * dbusbind.c (Fdbus_call_method_asynchronously)
1499 (Fdbus_method_error_internal): New defuns.
1500 (xd_read_message): Handle also reply messages.
1501 (Vdbus_registered_functions_table): Extend docstring.
1502
15032008-07-31 Juanma Barranquero <lekktu@gmail.com>
1504
1505 * keyboard.c (gobble_input): Fix previous change.
1506
15072008-07-31 Dan Nicolaescu <dann@ics.uci.edu>
1508
1509 * bitmaps/README:
1510 * xfns.c:
1511 * termcap.c:
1512 * term.c:
1513 * syswait.h:
1514 * systty.h:
1515 * systime.h:
1516 * syssignal.h:
1517 * sysdep.c:
1518 * process.h:
1519 * process.c:
1520 * print.c:
1521 * ndir.h:
1522 * lread.c:
1523 * keyboard.c:
1524 * getpagesize.h:
1525 * floatfns.c:
1526 * fileio.c:
1527 * emacs.c:
1528 * doc.c:
1529 * dispnew.c:
1530 * dired.c:
1531 * data.c:
1532 * callproc.c:
1533 * buffer.c:
1534 * README:
1535 * Makefile.in:
1536 * s/template.h:
1537 * s/msdos.h:
1538 * m/vax.h: Remove VMS support.
1539 * s/vms.h:
1540 * vlimit.h:
1541 * uaf.h:
1542 * temacs.opt:
1543 * param.h:
1544 * ioctl.h: Remove file.
1545
15462008-07-31 Dan Nicolaescu <dann@ics.uci.edu>
1547
1548 * s/ms-w32.h (MULTI_KBOARD): Remove.
1549 * xterm.c:
1550 * xselect.c:
1551 * xfns.c:
1552 * window.c:
1553 * w32term.c:
1554 * w32fns.c:
1555 * terminal.c:
1556 * termhooks.h:
1557 * term.c:
1558 * sysdep.c:
1559 * keyboard.h:
1560 * keyboard.c:
1561 * frame.h:
1562 * frame.c:
1563 * frame.c: Remove references to MULTI_KBOARD, it is now the default.
1564 * config.in: Regenerate.
1565
15662008-07-30 Jason Rumney <jasonr@gnu.org>
1567
1568 * w32font.h (struct w32font_info): Use unicode version of textmetrics.
1569
1570 * w32font.c (w32font_encode_char): Leave as unicode if in range.
1571 (w32font_open_internal): Get unicode version of textmetrics.
1572 Don't enable or disable glyph indices here.
1573 (w32font_open): Disable use of glyph indices.
1574
1575 * w32uniscribe.c (uniscribe_open): Enable use of glyph indices.
1576
15772008-07-30 Chong Yidong <cyd@stupidchicken.com>
1578
1579 * minibuf.c (Vread_buffer_function): Doc fix.
1580
15812008-07-30 John Paul Wallington <jpw@pobox.com>
1582
1583 * minibuf.c (read_buffer_completion_ignore_case): New var.
1584 (Fread_buffer): Use it.
1585
15862008-07-30 Dan Nicolaescu <dann@ics.uci.edu>
1587
1588 * systty.h (sensemode): Remove empty #if. Remove reference to
1589 BSD_TERMIOS, unused.
1590
1591 * sysdep.c: Remove reference to DGUX.
1592 (closedir): Remove reference to BROKEN_CLOSEDIR, unused.
1593
1594 * config.in: Regenerate.
1595
15962008-07-30 Jason Rumney <jasonr@gnu.org>
1597
1598 * w32uniscribe.c (uniscribe_encode_char): Fix glyph buffer size.
1599
16002008-07-29 Jason Rumney <jasonr@gnu.org>
1601
1602 * w32uniscribe.c (uniscribe_shape): Avoid using context if cache
1603 is populated.
1604 (uniscribe_encode_char): Always use uniscribe.
1605 Avoid using context if cache is populated.
1606
16072008-07-29 Jan Djärv <jan.h.d@swipnet.se>
1608
1609 * xmenu.c (Fx_menu_bar_open_internal): Use activate_item signal to
1610 open menu.
1611
1612 * gtkutil.c (menu_nav_ended): Remove.
1613 (create_menus): Remove signal connect for menu_nav_ended.
1614
16152008-07-28 Chong Yidong <cyd@stupidchicken.com>
1616
1617 * xdisp.c (redisplay_window): Check return value of
1618 compute_window_start_on_continuation_line before forcing a window
1619 start.
1620
16212008-07-28 Jason Rumney <jasonr@gnu.org>
1622
1623 * w32font.c (w32font_text_extents): Use w32_metric_cache consistently.
1624
1625 * w32term.c (w32_enable_unicode_output, cleartype_active):
1626 Remove obsolete display options.
1627 (x_draw_glyph_string_background): Don't use old cleartype_active
1628 workaround.
1629 (w32_initialize): Remove cleartype_active initialization.
1630 (syms_of_w32term): Remove w32_enable_unicode_output initialization.
1631
16322008-07-28 Andreas Schwab <schwab@suse.de>
1633
1634 * lisp.h (init_weak_hash_tables, syms_of_font)
1635 (xd_read_queued_messages, syms_of_dbusbind): Declare.
1636 (remove_hash_entry): Don't declare.
1637 * eval.c (maybe_call_debugger): Make static and move before use.
1638 * gtkutil.c: Include <X11/Xft/Xft.h> if HAVE_XFT.
1639 * xdisp.c: Include "gtkutil.h" if USE_GTK.
1640 * xterm.h (x_set_frame_alpha): Declare.
1641
16422008-07-28 Jan Djärv <jan.h.d@swipnet.se>
1643
1644 * gtkutil.c (menu_nav_ended): Revert change from 2008-07-24.
1645 (create_menus): Connect selection-done to menu_nav_ended.
1646
16472008-07-27 Adrian Robert <Adrian.B.Robert@gmail.com>
1648
1649 * nsfns.m (x-create-frame): Add copy of parms argument to beginning.
1650 Set Vx_resource_name to a fallback. Replace read of 'buffered'
1651 parameter with read of 'alpha' one.
1652 (Qns_frame_parameter): Remove.
1653 * nsselection.m (selection-coding-system)
1654 (next-selection-coding-system, Vselection_coding_system)
1655 (Vnext_selection_coding_system): Drop.
1656
16572008-07-27 Adrian Robert <Adrian.B.Robert@gmail.com>
1658
1659 * nsfns.m (do-applescript, do_applescript): Rename to
1660 ns-do-applescript, ns_do_applescript, and move within file.
1661
16622008-07-27 Dan Nicolaescu <dann@ics.uci.edu>
1663
1664 Remove support for Mac Carbon.
1665 * mactoolbox.c:
1666 * macterm.h:
1667 * macterm.c:
1668 * macselect.c:
1669 * macmenu.c:
1670 * macgui.h:
1671 * macfns.c:
1672 * mac.c: Remove file.
1673 * s/darwin.h:
1674 * m/intel386.h:
1675 * xfaces.c:
1676 * xdisp.c:
1677 * window.c:
1678 * tparam.c:
1679 * termhooks.h:
1680 * termcap.c:
1681 * term.c:
1682 * syssignal.h:
1683 * sysselect.h:
1684 * sysdep.c:
1685 * process.c:
1686 * lread.c:
1687 * lisp.h:
1688 * keyboard.c:
1689 * image.c:
1690 * fringe.c:
1691 * frame.h:
1692 * frame.c:
1693 * fontset.c:
1694 * font.h:
1695 * font.c:
1696 * fns.c:
1697 * fileio.c:
1698 * emacs.c:
1699 * dispnew.c:
1700 * dispextern.h:
1701 * config.in:
1702 * atimer.c:
1703 * Makefile.in: Remove code for Carbon
1704
17052008-07-26 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
1706
1707 * macterm.c (XDrawLine) [USE_MAC_IMAGE_IO]: Remove spurious return.
1708
17092008-07-26 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
1710
1711 * macterm.h (kCGBitmapByteOrder32Host): New define for
1712 non-universal SDKs.
1713
1714 * image.c (mac_create_cg_image_from_image, image_load_image_io)
1715 [USE_MAC_IMAGE_IO]: Remove conditionals for kCGBitmapByteOrder32Host.
1716
1717 * macterm.c (XDrawLine, XCreatePixmapFromBitmapData)
1718 [USE_MAC_IMAGE_IO]: Remove conditionals for kCGBitmapByteOrder32Host.
1719
17202008-07-26 David Robinow <drobinow@gmail.com> (tiny change)
1721
1722 * w32inevt.c: Include dispextern.h.
1723
17242008-07-26 Andreas Schwab <schwab@suse.de>
1725
1726 * print.c (print_object): Fix off-by-one in last change.
1727
17282008-07-25 Juanma Barranquero <lekktu@gmail.com>
1729
1730 * term.c (syms_of_term): Don't initialize default_orig_pair,
1731 default_set_foreground and default_set_background on Windows.
1732
17332008-07-25 Jason Rumney <jasonr@gnu.org>
1734
1735 * w32uniscribe.c (uniscribe_shape): Pass NULL for control arg to
1736 ScriptItemize. Clean up return value checking. Remove unused
1737 variables.
1738 (uniscribe_encode_char): Encode non-BMP characters with uniscribe
1739 shaping engine.
1740
1741 * w32font.c (w32font_has_char): Handle the case where we can't
1742 determine the script for a character.
1743
17442008-07-25 Chong Yidong <cyd@stupidchicken.com>
1745
1746 * term.c (syms_of_term): Initialize default_orig_pair,
1747 default_set_foreground, and default_set_background.
1748
1749 * getloadavg.c (nl): Rename to name_list to avoid ncurses.h
1750 clash (bug#86).
1751 (getloadavg): Callers changed.
1752
1753 * image.c (svg_load_image): Fix last change.
1754 (svg_load_image): Use rsvg_handle_get_dimensions to check that
1755 image size is valid. Use g_object_unref instead of deprecated
1756 rsvg_handle_free to free rsvg handle.
1757 (x_from_xcolors): Don't initialize pixmap (silence compiler).
1758
17592008-07-25 Jason Rumney <jasonr@gnu.org>
1760
1761 * w32font.c (w32font_encode_char): Encode characters outside BMP as
1762 surrogates before looking up glyph index.
1763 (w32font_text_extents): Encode as surrogates if falling back to
1764 functions that need UTF-16 wide chars.
1765
1766 * w32uniscribe.c (uniscribe_encode_char): Encode characters outside
1767 BMP as surrogates before looking up glyph index.
1768
17692008-07-25 Chong Yidong <cyd@stupidchicken.com>
1770
1771 * image.c (svg_load_image): Check for failure in return value of
1772 rsvg_handle_get_pixbuf. Free rsvg handle when done.
1773
17742008-07-25 Jason Rumney <jasonr@gnu.org>
1775
1776 * w32font.c (Fx_select_font): Reverse sense of second arg.
1777
17782008-07-24 Stefan Monnier <monnier@iro.umontreal.ca>
1779
1780 * syntax.c (struct lisp_parse_state, char_quoted, inc_bytepos)
1781 (dec_bytepos, find_defun_start): Use EMACS_INT for buffer positions.
1782
1783 * puresize.h (PURESIZE_CHECKING_RATIO): New macro.
1784 (PURESIZE): Use it.
1785
17862008-07-24 Dan Nicolaescu <dann@ics.uci.edu>
1787
1788 * m/amdx86-64.h (HAVE_LIB64_DIR): Consolidate ifdefs.
1789 * m/alpha.h (TEXT_END):
1790 * m/ibmrs6000.h (TEXT_END):
1791 * m/macppc.h (TEXT_END):
1792 * s/darwin.h (TEXT_END):
1793 * s/msdos.h (TEXT_END): Remove, unused.
1794 * s/gnu-linux.h (BSD_PGRPS): Add a comment.
1795 * s/cygwin.h: Remove comment.
1796
1797 * ecrt0.c (NODOT_GLOBAL_START): Remove code, unused.
1798 (DOT_GLOBAL_START): Remove conditional, redundant for CRT0_DUMMIES.
1799 * m/intel386.h (DOT_GLOBAL_START):
1800 * m/vax.h (DOT_GLOBAL_START): Remove, redundant with CRT0_DUMMIES.
1801 (USG): Remove, file not used on USG platforms.
1802
1803 * Makefile.in (HAVE_X11): Remove empty #else.
1804
18052008-07-24 Andreas Schwab <schwab@suse.de>
1806
1807 * fileio.c (Finsert_file_contents): Properly adjust undo list
1808 after format conversion.
1809
18102008-07-24 Jan Djärv <jan.h.d@swipnet.se>
1811
1812 * gtkutil.c (xg_get_font_name): Cast w to GTK_FONT_SELECTION_DIALOG.
1813 (menu_nav_ended): Remove.
1814 (create_menus): Remove signal connect for menu_nav_ended.
1815 (xg_update_menubar): Also take deactivate_cb as parameter, pass it to
1816 create_menus.
1817 (xg_modify_menubar_widgets): Pass deactivate_cb to xg_update_menubar.
1818
18192008-07-23 Jason Rumney <jasonr@gnu.org>
1820
1821 * w32font.c (w32_enumfont_pattern_entity): Return height consistent
1822 with opened font.
1823 (w32font_open): Set font type to gdi.
1824
1825 * w32uniscribe.c (uniscribe_open): Set font type to uniscribe.
1826
18272008-07-23 Dan Nicolaescu <dann@ics.uci.edu>
1828
1829 * s/usg5-4.h (ADDR_CORRECT): Remove, unused.
1830 * unexaix.c (ADDR_CORRECT): Remove conditional, the only user
1831 defines it.
1832 * unexec.c (ADDR_CORRECT): Define unconditionally.
1833
1834 * m/ibmrs6000.h (C_SWITCH_MACHINE): Remove.
1835
1836 * unexec.c: Remove code depending on !COFF and USG, the file is
1837 not used for such systems.
1838
1839 * s/netbsd.h (A_TEXT_OFFSET, A_TEXT_SEEK):
1840 * s/freebsd.h (A_TEXT_OFFSET, A_TEXT_SEEK): Remove, unused.
1841 (LD_SWITCH_SYSTEM_1): Remove, update users.
1842
1843 * s/darwin.h (DATA_END):
1844 * m/intel386.h (DATA_END):
1845 * m/ibmrs6000.h (DATA_END):
1846 * m/alpha.h (DATA_END): Remove, unused.
1847
1848 * config.in: Regenerate.
1849 * s/ms-w32.h (subprocesses): Define unconditionally.
1850 * s/template.h (subprocesses): Update comment.
1851 * s/vms.h (subprocesses):
1852 * s/usg5-4.h (subprocesses):
1853 * s/hpux10-20.h (subprocesses):
1854 * s/gnu-linux.h (subprocesses):
1855 * s/cygwin.h (subprocesses):
1856 * s/bsd-common.h (subprocesses):
1857 * s/aix4-2.h (subprocesses):
1858 * s/darwin.h (subprocesses): Do not define, defined by default now.
1859
1860 * Makefile.in (C_SWITCH_SITE, LD_SWITCH_SITE): Remove, unused.
1861 Remove all references.
1862 (temacs): Add GNUstep specific ld flags.
1863
1864 * nsterm.m (syms_of_nsterm): Provide ns, not ns-windowing,
1865 similarly to what X does.
1866
18672008-07-22 Adrian Robert <Adrian.B.Robert@gmail.com>
1868
1869 * nsfns.m (x-list-fonts): Remove.
1870 (syms_of_nsfns): Drop the x-list-fonts declaration.
1871 * nsterm.m: Get rid of remaining "//" comments.
1872
18732008-07-22 Chong Yidong <cyd@stupidchicken.com>
1874
1875 * xselect.c (Fx_rotate_cut_buffers_internal): Doc fix.
1876
1877 * nsselect.m (Fns_selection_exists_p, Fns_selection_owner_p)
1878 (Fx_get_selection_internal, Fns_rotate_cut_buffers_internal)
1879 (Fns_own_selection_internal, Fx_disown_selection_internal)
1880 (Fns_get_cut_buffer_internal, Fns_store_cut_buffer_internal):
1881
1882 * nsmenu.m (Fns_reset_menu, Fx_popup_menu): Change to use 'doc: /*
1883 ... */' style of docstrings. Doc fixes.
1884
18852008-07-22 Dan Nicolaescu <dann@ics.uci.edu>
1886
1887 * terminfo.c (UP, BC, PC): Undo previous change.
1888
1889 * nsfns.m: Rename ns prefixed functions/variables to the
1890 corresponding x versions. Update references.
1891
18922008-07-22 Stefan Monnier <monnier@iro.umontreal.ca>
1893
1894 * syntax.c (char_quoted): Check "charpos > beg" before decrementing.
1895
18962008-07-22 Dan Nicolaescu <dann@ics.uci.edu>
1897
1898 * nsfns.m (x_set_menu_bar_lines, x_set_tool_bar_lines):
1899 Remove forwarding functions.
1900 (ns_set_menu_bar_lines): Rename to x_set_menu_bar_lines, make
1901 non-static.
1902 (ns_set_tool_bar_lines): Rename to x_set_tool_bar_lines, make
1903 non-static.
1904 (ns_frame_parm_handlers): Use the new names.
1905 (syms_of_nsfns): Move to the end of file.
1906
1907 * nsterm.m (syms_of_nsterm): Move to the end of file.
1908
1909 * dispnew.c (init_display): Remove code for X10.
1910
19112008-07-22 Jason Rumney <jasonr@gnu.org>
1912
1913 * w32proc.c (Fw32_long_file_name): Don't append dir separator to
1914 bare drive.
1915
19162008-07-22 Adrian Robert <Adrian.B.Robert@gmail.com>
1917
1918 * nsterm.m (syms_of_nsterm): Remove debugging println.
1919
19202008-07-22 David Reitter <david.reitter@gmail.com>
1921
1922 * nsfns.m (do_applescript, F_do_applescript): NS version of the
1923 Carbon implementation of the same functionality: execute arbitrary
1924 AppleScript code.
1925
19262008-07-21 Adrian Robert <Adrian.B.Robert@gmail.com>
1927
1928 * nsfns.m (Fx_create_frame, Fx_read_file_name, Fx_get_resource)
1929 (Fx_set_resource, Fx_set_alpha, Fx_server_max_request_size)
1930 (Fx_server_vendor, Fx_server_version, Fx_display_screens)
1931 (Fx_display_mm_height, Fx_display_mm_width)
1932 (Fx_display_backing_store, Fx_display_visual_class)
1933 (Fx_display_save_under, Fx_open_connection)
1934 (Fx_close_connection, Fx_hide_emacs, Fx_font_name)
1935 (Fx_list_colors, Fx_perform_service, Fx_color_defined_p)
1936 (Fx_color_values, Fxw_display_color_p, Fx_display_grayscale_p)
1937 (Fx_display_pixel_width, Fx_display_pixel_height)
1938 (Fx_display_usable_bounds, Fx_display_planes)
1939 (Fx_display_color_cells, Vns_icon_type_alist): Change to use 'doc: /*
1940 ... */' style of docstrings.
1941
19422008-07-21 Dan Nicolaescu <dann@ics.uci.edu>
1943
1944 * m/mips.h (LOAD_AVE_TYPE, LOAD_AVE_CVT): Do not define, not used
1945 on this platform.
1946 (mips):
1947 * m/iris4d.h (mips): Do not define.
1948 * sysdep.c (init_sys_modes): Use __mips__ instead of mips.
1949
1950 * m/ibmrs6000.h (LD_SWITCH_SITE): Remove.
1951
1952 * image.c:
1953 * nsfns.m:
1954 * nsselect.m:
1955 * nsterm.h:
1956 * nsterm.m: Rename ns prefixed functions/variables to the
1957 corresponding x versions. Update references.
1958
1959 * m/ibms390x.h (NO_REMAP): Do not undefine.
1960
1961 * m/amdx86-64.h: Use SOLARIS2 instead of sun.
1962
19632008-07-21 Chong Yidong <cyd@stupidchicken.com>
1964
1965 * nsfns.m: Change NS to Nextstep in docstrings and error messages.
1966 (Fns_create_frame, Fns_read_file_name, Fns_get_resource)
1967 (Fns_set_resource, Fns_set_alpha, Fns_server_max_request_size)
1968 (Fns_server_vendor, Fns_server_version, Fns_display_screens)
1969 (Fns_display_mm_height, Fns_display_mm_width)
1970 (Fns_display_backing_store, Fns_display_visual_class)
1971 (Fns_display_save_under, Fns_open_connection)
1972 (Fns_close_connection, Fns_hide_emacs, Fns_font_name)
1973 (Fns_list_colors, Fns_perform_service, Fns_color_defined_p)
1974 (Fns_color_values, Fxw_display_color_p, Fx_display_grayscale_p)
1975 (Fns_display_pixel_width, Fns_display_pixel_height)
1976 (Fns_display_usable_bounds, Fx_display_planes)
1977 (Fns_display_color_cells, Vns_icon_type_alist): Doc fixes.
1978
19792008-07-21 Ami Fischman <ami@fischman.org> (tiny change)
1980
1981 * print.c (print_object): Check print_depth before searching for
1982 circularities.
1983
19842008-07-21 Michael Albinus <michael.albinus@gmx.de>
1985
1986 * dbusbind.c (Fdbus_register_signal): Use sprintf + strcat instead
1987 only sprintf.
1988
19892008-07-21 Kenichi Handa <handa@m17n.org>
1990
1991 * ftfont.c (adjust_anchor): Check if DeltaValue is not NULL.
1992
19932008-07-20 Andreas Schwab <schwab@suse.de>
1994
1995 * syntax.c (find_start_pos, find_start_value)
1996 (find_start_value_byte, find_start_begv, find_defun_start)
1997 (back_comment, scan_sexps_forward): Use EMACS_INT for buffer positions.
1998
19992008-07-20 Dan Nicolaescu <dann@ics.uci.edu>
2000
2001 * s/sol2-3.h: Insert contents of s/sol2.h.
2002 (LD_SWITCH_SYSTEM): Remove redundant definition.
2003 * s/sol2.h: Remove, unused.
2004
20052008-07-20 Adrian Robert <Adrian.B.Robert@gmail.com>
2006
2007 * nsterm.m (ns_get_color): Recognize HSB,AHSB be synonyms for HSV,AHSV.
2008
20092008-07-20 Adrian Robert <Adrian.B.Robert@gmail.com>
2010
2011 * Makefile.in (ns_appdir): Fix typo in find command.
2012
20132008-07-20 Dan Nicolaescu <dann@ics.uci.edu>
2014
2015 * m/intel386.h (NO_REMAP): Do no define for USG, not used.
2016
2017 * s/usg5-4.h (LIBS_SYSTEM): Remove, system for which this was
2018 added not supported anymore.
2019
2020 * s/usg5-4-2.h (LIBS_SYSTEM):
2021 * s/sol2.h (LIBS_SYSTEM): Do not undefine.
2022
2023 * s/netbsd.h (GETPGRP_NO_ARG, N_TRELOFF):
2024 * s/lynxos.h (GETPGRP_NO_ARG):
2025 * s/hpux10-20.h (NO_SIOCTL_H):
2026 * s/gnu.h (GETPGRP_NO_ARG):
2027 * s/gnu-linux.h (NO_SIOCTL_H):
2028 * s/freebsd.h (GETPGRP_NO_ARG, N_TRELOFF):
2029 * s/cygwin.h (GETPGRP_NO_ARG):
2030 * s/irix6-5.h (LIBS_SYSTEM, GETPGRP_NO_ARG): Remove, unused.
2031 (C_DEBUG_SWITCH): Remove duplicate definition.
2032
2033 * m/ibms390.h: Remove boilerplate comments.
2034
2035 * sysdep.c (closedir): Use SOLARIS2 instead of sun && USG5_4.
2036
2037 * process.c (HAVE_SERIAL): Consolidate ifdefs.
2038 (wait_reading_process_output): Remove code for SunOS, platform not
2039 supported anymore. Use SOLARIS2 instead of sun.
2040
20412008-07-19 Adrian Robert <Adrian.B.Robert@gmail.com>
2042
2043 * font.c (font_open_by_name): Under NS, default lface height to zero.
2044 (font_open_for_lface): Under NS, set size based on frame fontsize.
2045 * nsterm.m (EmacsView-changeFont:): Remove some commented code.
2046 * frame.c (x_set_frame_parameters): Remove HAVE_NS ifdef.
2047
20482008-07-19 Adrian Robert <Adrian.B.Robert@gmail.com>
2049
2050 * nsterm.m (ns_antialias_text, ns_use_qd_smoothing)
2051 (ns_use_system_highlight_color): Switch these from DEFVAR_BOOL to
2052 DEFVAR_LISP and change all code accordingly to use Qt/Qnil instead of
2053 YES/NO.
2054 * nsterm.h (prevUseHighlightColor): Make a Lisp_Object.
2055 * nsfont.m (nsfont_draw): Treat ns_use_qd_smoothing as Lisp_Object.
2056 * Makefile.in (clean): Clear out build destination dir.
2057
20582008-07-19 Adrian Robert <Adrian.B.Robert@gmail.com>
2059
2060 * Makefile.in (nsgui.h-related dependencies): Remove abbrev, xfns,
2061 xterm, xselect.
2062 * lisp.h: Remove declaration of hash_remove.
2063 * nsgui.h: Remove redefinitions of hash_remove.
2064 * fns.c (hash_remove): Rename to hash_remove_from_table.
2065
20662008-07-19 Seiji Zenitani <zenitani@mac.com>
2067
2068 * nsfont.m (nsfont_fmember_to_entity, nsfont_make_fontset_for_font):
2069 strdup() the family UTF8String before modifying it.
2070
20712008-07-19 Adrian Robert <Adrian.B.Robert@gmail.com>
2072
2073 * nsterm.m (ns_maybe_dumpglyphs_background): Compare result from
2074 NS_FACE_BACKGROUND with 0 instead of nil.
2075 * nsfont.m (nsfont_draw): Same.
2076
20772008-07-19 Chong Yidong <cyd@stupidchicken.com>
2078
2079 * nsfns.m (ns_set_background_color): Fix crash.
2080
20812008-07-18 Chong Yidong <cyd@stupidchicken.com>
2082
2083 * Makefile.in (SOME_MACHINE_LISP): Remove ns-carbon-compat.elc.
2084
20852008-07-18 Dan Nicolaescu <dann@ics.uci.edu>
2086
2087 * puresize.h (BASE_PURESIZE): Increase to 1240000.
2088
20892008-07-17 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
2090
2091 * gtkutil.c: Include <config.h> instead of "config.h".
2092
2093 * lisp.h (Foverlay_buffer): Add EXFUN.
2094
2095 * process.c (create_process) [!WINDOWSNT && FD_CLOEXEC]: Wait for
2096 child process to complete child_setup. Undo 2005-09-21 change.
2097
2098 * s/darwin.h: Mention setsid after vfork.
2099
21002008-07-17 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
2101
2102 * Makefile.in (frame.o, keyboard.o, xdisp.o, xfaces.o):
2103 Depend on macgui.h.
2104
2105 * macfns.c (Fx_server_version): Don't use gestaltSystemVersionMajor,
2106 gestaltSystemVersionMinor, or gestaltSystemVersionBugFix.
2107
2108 * macterm.c (keycode_to_xkeysym_table): Add entries for f17, f18,
2109 and f19.
2110 [MAC_OSX] (fn_keycode_to_keycode_table): Likewise.
2111
2112 * macterm.h (gestaltSystemVersionMajor, gestaltSystemVersionMinor)
2113 (gestaltSystemVersionBugFix) [MAC_OS_X_VERSION_MAX_ALLOWED < 1040]:
2114 Remove enumerators.
2115
2116 * mactoolbox.c [USE_MAC_TSM] (mac_handle_text_input_event):
2117 Check if FACE_FROM_ID returns NULL.
2118
21192008-07-17 David Robinow <drobinow@gmail.com> (tiny change)
2120
2121 * w32inevt.c (change_frame_size): Remove extern declaration.
2122 (resize_event, maybe_generate_resize_event): Pass SAFE arg to
2123 change_frame_size.
2124
21252008-07-17 Adrian Robert <Adrian.B.Robert@gmail.com>
2126
2127 * getloadavg.c: Revert last change (2008-07-15).
2128
21292008-07-17 Adrian Robert <Adrian.B.Robert@gmail.com>
2130
2131 * Makefile.in: Replace emacsapp, emacsbindir, emacsappsrc variables
2132 set here with ns_appdir, ns_appresdir, ns_appbindir, ns_appsrc) set
2133 from configure.
2134
21352008-07-17 Dan Nicolaescu <dann@ics.uci.edu>
2136
2137 * s/sol2.h:
2138 * s/sol2-4.h: Reorganize conditionals.
2139
2140 * ecrt0.c: Remove code depending on m68000, not used anymore.
2141
2142 * fns.c (hash_remove): Make static.
2143 * lisp.h (hash_remove): Don't prototype.
2144
2145 * m/ibmrs6000.h:
2146 * m/ibms390x.h:
2147 * m/macppc.h: Remove boilerplate comments.
2148
2149 * m/sparc.h (A_TEXT_OFFSET, A_TEXT_SEEK): Remove, only used on
2150 Solaris, which does not need them.
2151
2152 * m/vax.h: Remove comments about unsupported systems.
2153
2154 * s/darwin.h: Reorganize ifdefs.
2155
21562008-07-17 Andreas Schwab <schwab@suse.de>
2157
2158 * s/cygwin.h (LIB_STANDARD_LIBSRC): Don't define.
2159
21602008-07-17 Stefan Monnier <monnier@iro.umontreal.ca>
2161
2162 Use SDATA. Follow coding convention of placing operators at
2163 beginning of next line rather than end of previous line, and placing
2164 spaces around infix operators.
2165
2166 * Makefile.in: Undef LIB_STANDARD before defining it to silence warning
2167 in case it was defined already.
2168 USE @GNUSTEP_MAKEFILES@ rather than envvars.
2169 * nsterm.m (ns_term_init): Pass Qt and Qnil rather than YES/NO to
2170 ns_default.
2171 (applicationShouldTerminate, setValuesFromPanel): Use EQ to compare
2172 Lisp_Objects.
2173 * nsterm.h (Fx_display_grayscale_p, Fx_display_planes)
2174 (ns_defined_color, ns_color_to_lisp): Declare.
2175 * nsselect.m (ns_handle_selection_request, ns_handle_selection_clear)
2176 (Fns_own_selection_internal): Make the big ugly hack more explicit, so
2177 it's accepted even with USE_LISP_UNION_TYPE.
2178 * nsmenu.m (ns_update_menubar): Use EQ to compare Lisp_Objects.
2179 (update_frame_tool_bar): Remove apparently obsolete tests for
2180 non-integerness of f->tool_bar_lines.
2181 (windowShouldClose, addButton, clicked, runDialogAt): Make the big ugly
2182 hack more explicit, so it's accepted even with USE_LISP_UNION_TYPE.
2183 * nsfont.m (nsfont_driver): Use just 0 rather than an invalid cast.
2184 (nsfont_open): Don't confuse NULL for Qnil.
2185 * nsfns.m (ns_implicitly_set_icon_type): Use EQ to compare Lisp_Objects.
2186 * menu.h (find_and_call_menu_selection):
2187 * menu.c (find_and_call_menu_selection): Use just int for vector size.
2188 (find_and_return_menu_selection): Always return something.
2189 * frame.h: Include dispextern.h for Display_Info.
2190 (display_x_get_resource): Declare.
2191
21922008-07-16 Adrian Robert <Adrian.B.Robert@gmail.com>
2193
2194 * syntax.c: Remove stdio.h include accidentally introduced in
2195 Emacs.app commit.
2196 * Makefile.in: Change GNUSTEP to NS_IMPL_GNUSTEP, COCOA to
2197 NS_IMPL_COCOA.
2198 * keyboard.c (handle_async_input, input_available_signal): Remove
2199 BSD4_1 conditional code, introduced accidentally in Emacs.app commit.
2200
22012008-07-16 Stefan Monnier <monnier@iro.umontreal.ca>
2202
2203 * nsterm.m (lisp_to_mod): Use parse_solitary_modifier instead.
2204 (ns_lisp_to_color): Don't mess with internal Lisp data fields.
2205 (ns_term_init, ns_term_shutdown, initFrameFromEmacs, ns_list_fonts):
2206 Use SDATA.
2207
2208 * keymap.c: Remove all NS-specific code.
2209 (where_is_preferred_modifier, Vwhere_is_preferred_modifier): New vars.
2210 (preferred_sequence_p): Rename from ascii_sequence_p; pay attention to
2211 where_is_preferred_modifier, return a different value depending on how
2212 preferred is the binding.
2213 (where_is_internal): Adjust accordingly.
2214 (Fwhere_is_internal): Refresh where_is_preferred_modifier.
2215 Adjust to new preferred_sequence_p.
2216 (syms_of_keymap): Declare `where-is-preferred-modifier'.
2217 * keyboard.c (parse_solitary_modifier): Not static any more.
2218 * keyboard.h (parse_solitary_modifier): Declare.
2219
22202008-07-16 Andreas Schwab <schwab@suse.de>
2221
2222 * Makefile.in (SOME_MACHINE_LISP): Remove easy-mmode, fix spelling
2223 of easymenu.
2224
22252008-07-16 Chong Yidong <cyd@stupidchicken.com>
2226
2227 * xdisp.c (move_it_in_display_line): Account for word wrap, so
2228 that we don't move off the line.
2229
22302008-07-16 Stefan Monnier <monnier@iro.umontreal.ca>
2231
2232 * keyboard.c (Qsuper): Remove.
2233 (parse_menu_item): Don't call where_is_internal specially for NS.
2234
22352008-07-16 Dan Nicolaescu <dann@ics.uci.edu>
2236
2237 * s/gnu-linux.h: Remove boilerplate comments.
2238
2239 * m/alpha.h (__ELF__): Consolidate conditions.
2240
2241 * m/m68k.h (linux): Use GNU_LINUX instead.
2242 Remove boilerplate comments.
2243
2244 * m/intel386.h: Undo refactoring from previous change.
2245 (LIB_STANDARD): All systems that define USG define LIB_STANDARD
2246 too, remove dead code.
2247 (linux): Use GNU_LINUX instead.
2248
22492008-07-16 Jason Rumney <jasonr@gnu.org>
2250
2251 * w32gui.h: Repeat 26 June changes lost by last change.
2252
22532008-07-16 Dan Nicolaescu <dann@ics.uci.edu>
2254
2255 * systty.h: Remove code for Aix on 386, unsupported platform.
2256
2257 * s/ms-w32.h: Remove boilerplate comments.
2258 (fcloseall, fgetchar, flushall, fputchar, getw, putw): Remove, unused.
2259
2260 * s/gnu-linux.h (TERM): Remove support.
2261 (HAVE_SYSVIPC): Remove, unused.
2262 (A_TEXT_OFFSET, A_TEXT_SEEK, ADJUST_EXEC_HEADER): Remove, not used
2263 for this system.
2264
2265 * process.c: Remove support for IRIS, unused.
2266 Remove support for TERM, not relevant anymore.
2267
2268 * unexalpha.c (DEFAULT_ENTRY_ADDRESS): Remove, replace the only
2269 used with the definition.
2270
2271 * s/aix4-2.h (static): Do not undef.
2272
2273 * m/ibmrs6000.h: Remove code depending on USG5_4, this file is
2274 only used on Aix.
2275 (HAVE_SYSVIPC): Remove, unused.
2276
2277 * m/hp800.h (CANNOT_DUMP): Do not undef.
2278
2279 * m/alpha.h: Fix comment.
2280
2281 * s/usg5-4.h (HAVE_SYSVIPC): Remove, unused.
2282 (USG_SHARED_LIBRARIES): Remove, only used in unexec.c which is not
2283 used by this configuration.
2284 * emacs.c: Remove code depending on USG_SHARED_LIBRARIES.
2285 * unexec.c: Remove code depending on HPUX and
2286 USG_SHARED_LIBRARIES, not used with this file. Remove code
2287 depending on IRIS, unused. Remove if 0-ed code.
2288
2289 * s/template.h: Remove comments about static.
2290
2291 * sysdep.c: Remove code depending on NEED_PTEM_H, unused.
2292 Remove if 0-ed code.
2293 (baud_convert): Don't depend on BAUD_CONVERT, all definitions the
2294 were the same as the default.
2295 * s/vms.h (BAUD_CONVERT): Remove, same as the default.
2296 Remove boilerplate comments.
2297 * s/hpux10-20.h (BAUD_CONVERT): Remove, same as the default.
2298 (HAVE_SYSVIPC): Remove, unused.
2299 (LD_SWITCH_SYSTEM_TEMACS): Simplify, hp9000s700 not supported anymore.
2300
2301 * m/ia64.h (PNTR_COMPARISON_TYPE): Remove, same as the default.
2302 Remove boilerplate comments.
2303 * m/amdx86-64.h (PNTR_COMPARISON_TYPE): Remove, same as the default.
2304 Remove boilerplate comments.
2305 * m/ibms390x.h (PNTR_COMPARISON_TYPE): Remove, same as the default.
2306 Remove boilerplate comments.
2307 * lisp.h (PNTR_COMPARISON_TYPE): Define it unconditionally.
2308
2309 * m/intel386.h (DATA_SEG_BITS): Remove definitions, only used on
2310 USG systems which do not use DATA_SEG_BITS.
2311 Refactor code. Remove boilerplate comments.
2312
2313 * m/ibms390.h:
2314 * m/m68k.h:
2315 * s/bsd-common.h:
2316 * s/cygwin.h:
2317 * s/darwin.h:
2318 * s/freebsd.h:
2319 * s/gnu.h:
2320 * s/msdos.h: Remove boilerplate comments.
2321
2322 * m/iris4d.h: Remove boilerplate comments and code for systems that
2323 do not use this file.
2324 (IRIS_4D): Remove, unused.
2325
2326 * m/mips.h: Remove boilerplate comments and code for systems that
2327 do not use this file.
2328 (SIGN_EXTEND_CHAR):
2329 * m/arm.h (SIGN_EXTEND_CHAR): Remove, unused.
2330 * unexmips.c: Remove file, unused.
2331
2332 * editfns.c (Fuser_full_name): Replace the only use of
2333 USER_FULL_NAME with its value.
2334 * config.in: Regenerate.
2335
23362008-07-16 David Reitter <david.reitter@gmail.com>
2337
2338 * Makefile.in: Add ns-win, ns-carbon-compat, easy-mmode and
2339 easy-menu to SOME_MACHINE_LISP for the new NeXTstep port.
2340
23412008-07-16 Glenn Morris <rgm@gnu.org>
2342
2343 * emacs.c (system-type): Doc fix.
2344
23452008-07-15 Stefan Monnier <monnier@iro.umontreal.ca>
2346
2347 * keyboard.c (parse_menu_item): Don't use cachelist, even under NS.
2348 If the cache doesn't work, let's fix it, rather than work around it.
2349
23502008-07-15 Adrian Robert <Adrian.B.Robert@gmail.com>
2351
2352 * Makefile.in: Correct additions for nsfont.o in last commit.
2353 * nsfont.m: New file (forgot last commit).
2354
23552008-07-15 Chris Hall <chris@web.workinglinux.com> (tiny change)
2356
2357 * callproc.c (set_initial_environment): Initialize
2358 Vprocess_environment under CANNOT_DUMP (fixes crash when
2359 batch-compiling for bootstrap).
2360
23612008-07-15 Chris Hall <chris@web.workinglinux.com> (tiny change)
2362 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
2363
2364 (make_initial_frame): Call init_frame_faces(f) in CANNOT_DUMP case --
2365 fix crash due to different init order.
2366
23672008-07-15 Adrian Robert <Adrian.B.Robert@gmail.com>
2368
2369 Changes and additions for NeXTstep windowing system (Cocoa and
2370 GNUstep) support.
2371
2372 * Makefile.in:
2373 * config.in: Support defines and build commands for NS port.
2374 * blockinput.h (BLOCK_INPUT, UNBLOCK_INPUT, TOTALLY_UNBLOCK_INPUT)
2375 (UNBLOCK_INPUT_TO): Don't use under NS unless EXPERIMENTAL_CONTROL_G.
2376 * dispextern.h: Include nsgui.h and add needed typedefs under NS
2377 windowing.
2378 (struct face): Add synth_ital field.
2379 * dispnew.c: Include nsterm.h when compiling under NS windowing.
2380 (init_display): Initialize Vinitial_window_system to "ns" when so
2381 compiled.
2382 * emacs.c: Include GSConfig.h when compiling under GNUstep.
2383 (display_arg): Use under NS.
2384 (main): Under NS, allocate autorelease pool and handle command line
2385 args. Move syms_of_xmenu() call under #ifdef HAVE_X_WINDOWS.
2386 (standard_args): Add NS-specific args.
2387 (shut_down_emacs): Shut down NS terminal if compiled under NS.
2388 * font.c (DEFAULT_ENCODING): New variable.
2389 (font_find_for_lface): Use it.
2390 (syms_of_font): Load syms_of_nsfont under NS.
2391 * font.h: Declare nsfont_driver when compiled under NS.
2392 * fontset.c: When compiling under NS, include nsterm.h.
2393 (fontset_from_font): Autoconstruct fontset under NS.
2394 * frame.c (various): Under NS, include nsterm.h, add Qns window system
2395 symbol, document and use it.
2396 (do_switch_frame): When for_deletion under Cocoa, add
2397 Fraise_frame(Qnil).
2398 (x_set_frame_parameters): Ensure font attribute changes are picked up.
2399 (x_get_arg): Allow "yes" and "no" as boolean values.
2400 (syms_of_frame): Declare Qns. Init Vdefault_frame_scroll_bars to
2401 Qright under Cocoa.
2402 (focus-follows-mouse): Default to 0 under NS.
2403 * frame.h (enum output_method): Add output_ns.
2404 (external_tool_bar, external_menu_bar, FRAME_EXTERNAL_TOOLBAR)
2405 (FRAME_EXTERNAL_MENU_BAR): Use under NS.
2406 (FRAME_WINDOW_P): NS-specific definition.
2407 * fringe.c (max_used_fringe_bitmap): Make public.
2408 * getloadavg.c (mach/mach.h): Include it under NeXT descendant OS's.
2409 (getloadavg): Use NeXT code under descendant OS's.
2410 * image.c (includes and header section, x_create_bitmap_from_data)
2411 (x_create_bitmap_from_file, free_bitmap_record, image_background)
2412 (image_background_transparent, x_clear_image_1)
2413 (x_create_x_image_and_pixmap, x_destroy_x_image, x_put_x_image)
2414 (Create_Pixmap_From_Bitmap_Data, xpm_load_image, lookup_rgb_color)
2415 (x_to_xcolors, x_from_xcolors, x_disable_image)
2416 (x_build_heuristic_mask, syms_of_image): Add NS support parallel to
2417 other GUIs, including XPM support using code originally written for
2418 Carbon GUI.
2419 (png_load, jpeg_load, tiff_load, gif_load): Add implementations
2420 using NS API.
2421 (image_ascent): Use font metrics macros instead of direct struct field
2422 access.
2423 * keyboard.c (includes): Add nsterm.h when compiling under NS.
2424 (kbd_buffer_get_event): Handle NS as other GUI windowing systems.
2425 Also, handle NS as GTK for menu bar purposes.
2426 (make_lispy_event): Handle NS as other GUI windowing systems, and as X
2427 toolkit where they differ.
2428 (parse_menu_item): Prefer keybindings using 'super' modifier. Also,
2429 use cachelist, still needed under NS.
2430 * keyboard.h (ENCODE_MENU_STRING, XtPointer, Boolean): Handle as NTGUI.
2431 (struct widget_value): Define it here for menu.c.
2432 * keymap.c (includes): Include modifier internals.
2433 (lisp_to_mod, modifier_sequence_p): New functions, compiled only under
2434 NS.
2435 (where_is_internal, Fwhere_is_internal): When compiled under NS, add
2436 support for preferring sequences using certain modifiers, specified by
2437 the FIRSTONLY argument.
2438 * lisp.h (hash_remove): Rename to avoid name clash when compiling
2439 under NS GNUstep implementation.
2440 (USE_LSB_TAG): Use it under Cocoa when compiling under NS.
2441 * lread.c (init_lread): Treat NS as HAVE_CARBON for turn_off_warning.
2442 * menu.c: Include nsterm.h under NS.
2443 (single_menu_item, parse_single_submenu, xmalloc_widget_value)
2444 (free_menubar_widget_tree_value, update_submenu_strings)
2445 (find_and_call_menu_selection): Treat NS as X and NT.
2446 (find_and_return_menu_selection): New function, used for popup menus.
2447 * nsgui.h:
2448 * nsterm.h:
2449 * nsfns.m:
2450 * nsimage.m:
2451 * nsmenu.m:
2452 * nsselect.m:
2453 * nsterm.m: New files.
2454 * process.c (wait_reading_process_output): Under NS, call ns_select()
2455 instead of plain select().
2456 * syntax.c (char_quoted): Under NS, avoid a crash when called near
2457 beginning of buffer.
2458 * sysselect.h (init_process): Rename when compiling under Cocoa to
2459 avoid name conflict.
2460 * termhooks.h (display_info): Add ns_display_info to union.
2461 * terminal.c (Fterminal_live_p): Add ns to terminal types.
2462 * terminfo.c (UP, BC, PC): Don't declare when compiling under NS in
2463 COCOA environment.
2464 * unexnext.c: Update to work with mach API on Mac OS X, and to use new
2465 unexec() signature. (Note, this will dump, but the resulting file
2466 crashes; unexosx is used instead; keeping around for reference and
2467 possible aid in getting dump working under GNUstep.)
2468 * w32gui.h (button_type, widget_value): Remove definitions (now in
2469 keyboard.h).
2470 * window.c: Include nsterm.h when compiling under NS.
2471 * xdisp.c (includes): Include nsterm.h when compiling under NS.
2472 (set_frame_menubar, update_menu_bar, display_menu_bar): Handle NS as
2473 other GUI windowing systems.
2474 (update_tool_bar, redisplay_tool_bar, redisplay_window): Handle NS as
2475 GTK.
2476 (x_consider_frame_title): Under NS, set icon type and frame
2477 modified-state indicator; use ns_set_name_as_filename() when using
2478 formatted title.
2479 (update_window_cursor): Make public when compiling under NS.
2480 (display_hourglass_p, syms_of_xdisp, hourglass_shown_p)
2481 (hourglass_atimer, Vhourglass_delay
2482 * xfaces.c (header section, init_frame_faces, clear_font_table)
2483 (defined_color, unload_color, x_face_list_fonts)
2484 (prepare_face_for_display): Add NS support parallel to other GUIs.
2485 Emulate GCs like other non-X GUIs.
2486 (split_font_name): Don't lowercase font name under NS.
2487 (merge_face_ref, Finternal_set_lisp_face_attribute): Support stippling
2488 under NS.
2489 * s/darwin.h: Add support for compilation under NS.
2490
24912008-07-15 Jason Rumney <jasonr@gnu.org>
2492
2493 * w32fns.c (Fx_create_frame): Remove duplicate unwind_protect.
2494 (w32_show_hourglass): Rename from show_hourglass.
2495 (w32_hide_hourglass): Rename from hide_hourglass.
2496 (DEFAULT_HOURGLASS_DELAY): Revert from last change.
2497 (Vhourglass_delay): Declare extern.
2498 (hourglass_started): Remove.
2499
2500 * xdisp.c (Vhourglass_delay): Remove static.
2501 (hourglass_started, start_hourglass, cancel_hourglass):
2502 Don't include these versions on WINDOWSNT.
2503
25042008-07-15 Adrian Robert <Adrian.B.Robert@gmail.com>
2505
2506 * dispextern.h (hourglass_shown_p, hourglass_atimer): New extern
2507 variables (formerly in xfns.c).
2508 (show_hourglass, hide_hourglass): New prototypes (same).
2509 * xdisp.c (display_hourglass_p, hourglass_shown_p, hourglass_atimer)
2510 (Vhourglass_delay, DEFAULT_HOURGLASS_DELAY): New variables (formerly
2511 in xfns.c).
2512 (syms_of_xdisp): Declare/initialize display-hourglass,
2513 hourglass-delay. Initialize hourglass_atimer, hourglass_shown_p.
2514 (hourglass_started, start_hourglass, cancel_hourglass): New functions,
2515 formerly in xfns.c.
2516 * xfns.c (display_hourglass_p, hourglass_atimer, hourglass_shown_p)
2517 (Vhourglass_delay, DEFAULT_HOURGLASS_DELAY, hourglass_started)
2518 (start_hourglass, cancel_hourglass): Remove.
2519 (show_hourglass, hide_hourglass): Remove prototypes and static
2520 modifiers.
2521 (syms_of_xfns): Remove display-hourglass, hourglass-delay,
2522 hourglass_atimer, hourglass_shown_p declaration/initialization.
2523 * macfns.c (display_hourglass_p, hourglass_atimer, hourglass_shown_p)
2524 (Vhourglass_delay, DEFAULT_HOURGLASS_DELAY, hourglass_started)
2525 (start_hourglass, cancel_hourglass): Remove.
2526 (show_hourglass, hide_hourglass): Remove prototypes and static
2527 modifiers.
2528 (syms_of_macfns): Remove display-hourglass, hourglass-delay,
2529 hourglass_atimer, hourglass_shown_p declaration/initialization.
2530 * w32fns.c (display_hourglass_p, Vhourglass_delay)
2531 (DEFAULT_HOURGLASS_DELAY): Remove.
2532 (syms_of_w32fns): Remove display-hourglass, hourglass-delay,
2533 hourglass_shown_p declaration/initialization.
2534
25352008-07-14 Jason Rumney <jasonr@gnu.org>
2536
2537 * w32fns.c (w32_get_arg): Remove wrapper function.
2538 (w32_createwindow, x_icon, x_create_tip_frame): Use x_get_arg
2539 directly.
2540 (Fx_create_frame): Sync with xfns.c. Use x_get_arg directly.
2541
25422008-07-14 Kenichi Handa <handa@m17n.org>
2543
2544 * xfont.c (xfont_open): Add workaround for X's bug.
2545
25462008-07-14 Emanuele Giaquinta <emanuele.giaquinta@gmail.com> (tiny change)
2547
2548 * fontset.c: Include <stdio.h> unconditionally.
2549
25502008-07-13 Michael Albinus <michael.albinus@gmx.de>
2551
2552 * dbusbind.c (Fdbus_register_signal): Allow also signal arguments
2553 for filtering.
2554
25552008-07-13 Dan Nicolaescu <dann@ics.uci.edu>
2556
2557 * s/vms.h: Use __GNUC__ instead of _GNUC_.
2558
2559 * m/macppc.h:
2560 * m/alpha.h: Use GNU_LINUX instead of LINUX. Reorganize conditionals.
2561
2562 * m/ibms390x.h (XINT, XUINT): Don't define, same as the default
2563 (SPECIAL_EMACS_INT):
2564 * m/ia64.h (SPECIAL_EMACS_INT):
2565 * m/amdx86-64.h (SPECIAL_EMACS_INT):
2566 * s/gnu.h (NLIST_STRUCT):
2567 * s/aix4-2.h (X11R5_INHIBIT_I18N):
2568 * s/gnu-linux.h (LINUX):
2569 * s/msdos.h (HAVE_FACES):
2570 * s/ms-w32.h (HAVE_FACES): Don't define, unused.
2571
2572 * systty.h:
2573 * sysdep.c (setup_pty): Don't depend on SYSV_PTYS, it is not used
2574 anymore.
2575
25762008-07-12 Dan Nicolaescu <dann@ics.uci.edu>
2577
2578 * syswait.h: Remove old if 0 code. Do not define WAITTYPE, it was
2579 always defined as int.
2580
2581 * s/netbsd.h (HAVE_UNION_WAIT, HAVE_WAIT_HEADER, WAIT_USE_INT):
2582 * s/gnu.h (HAVE_WAIT_HEADER, WAIT_USE_INT, HAVE_UNION_WAIT):
2583 * s/gnu-linux.h (HAVE_WAIT_HEADER):
2584 * s/freebsd.h (HAVE_WAIT_HEADER):
2585 * s/bsd-common.h (HAVE_UNION_WAIT):
2586 * s/aix4-2.h (HAVE_WAIT_HEADER):
2587 * m/mips.h (HAVE_UNION_WAIT):
2588 * s/usg5-4.h (HAVE_WAIT_HEADER, WAITTYPE): Do not define, not used.
2589 (COFF, static): Do not define, they are undefined later in the file.
2590
2591 * process.c (update_status): Don't use a union.
2592 (status_convert):
2593 (sigchld_handler): Use int instead of WAITTYPE.
2594
25952008-07-12 Chong Yidong <cyd@stupidchicken.com>
2596
2597 * indent.c (Fvertical_motion): Restore hscroll before moving to
2598 goal column.
2599
26002008-07-11 Dan Nicolaescu <dann@ics.uci.edu>
2601
2602 * lisp.h: Remove left over code.
2603
26042008-07-11 Andreas Schwab <schwab@suse.de>
2605
2606 * lisp.h: Fix logic in last change.
2607
2608 * menu.h: New file.
2609 * menu.c: Include it.
2610 * xmenu.c: Likewise.
2611 * Makefile.in: Update dependencies.
2612
26132008-07-11 Kenichi Handa <handa@m17n.org>
2614
2615 * fontset.c (fontset_from_font): Cancel the previous change.
2616
26172008-07-11 Dan Nicolaescu <dann@ics.uci.edu>
2618
2619 * lisp.h:
2620 * w32heap.c:
2621 * emacs.c:
2622 * alloc.c: Replace all references of NO_UNION_TYPE with
2623 USE_LISP_UNION_TYPE.
2624
2625 * m/xtensa.h (NO_UNION_TYPE):
2626 * m/vax.h (NO_UNION_TYPE):
2627 * m/template.h (NO_UNION_TYPE):
2628 * m/sparc.h (NO_UNION_TYPE):
2629 * m/mips.h (NO_UNION_TYPE):
2630 * m/macppc.h (NO_UNION_TYPE):
2631 * m/m68k.h (NO_UNION_TYPE):
2632 * m/iris4d.h (NO_UNION_TYPE):
2633 * m/intel386.h (NO_UNION_TYPE):
2634 * m/ibms390x.h (NO_UNION_TYPE):
2635 * m/ibms390.h (NO_UNION_TYPE):
2636 * m/ibmrs6000.h (NO_UNION_TYPE):
2637 * m/ia64.h (NO_UNION_TYPE):
2638 * m/hp800.h (NO_UNION_TYPE):
2639 * m/arm.h (NO_UNION_TYPE):
2640 * m/amdx86-64.h (NO_UNION_TYPE):
2641 * m/alpha.h (NO_UNION_TYPE): Remove definition, all platform were
2642 defining it the same.
2643
26442008-07-10 Chong Yidong <cyd@stupidchicken.com>
2645
2646 * xdisp.c (move_it_to): Backtrack if past the edge of a wrapped line.
2647
26482008-07-10 Dan Nicolaescu <dann@ics.uci.edu>
2649
2650 * fileio.c:
2651 * sysdep.c
2652 * systty.h:
2653 * m/ibmrs6000.h:
2654 * m/iris4d.h:
2655 * s/aix4-2.h:
2656 * s/freebsd.h:
2657 * s/gnu-linux.h:
2658 * s/hpux10-20.h:
2659 * s/hpux11.h:
2660 * s/netbsd.h:
2661 * s/sol2-3.h:
2662 * s/sol2-4.h:
2663 * s/sol2.h:
2664 * s/usg5-4.h:
2665 * s/vms.h: Remove references to unused variables.
2666
26672008-07-10 Andreas Schwab <schwab@suse.de>
2668
2669 * ftfont.c (ftfont_resolve_generic_family): Remove foundry from
2670 pattern before matching the generic family.
2671
26722008-07-10 Dan Nicolaescu <dann@ics.uci.edu>
2673
2674 * unexec.c:
2675 * s/vms.h:
2676 * s/usg5-4-2.h:
2677 * s/sol2-5.h:
2678 * s/freebsd.h:
2679 * s/darwin.h: Remove dead code.
2680
2681 * m/template.h:
2682 * m/sparc.h:
2683 * m/mips.h:
2684 * m/m68k.h:
2685 * m/iris4d.h:
2686 * m/intel386.h:
2687 * m/ibms390x.h:
2688 * m/ibms390.h:
2689 * m/ia64.h:
2690 * m/hp800.h:
2691 * m/arm.h:
2692 * m/amdx86-64.h: Remove dead code and references to unused
2693 and compiler defined symbols.
2694
2695 * unexmips.c:
2696 * unexelf.c: Remove references to desupported systems.
2697
2698 * m/powermac.h: Remove file, it is now identical to m/macppc.h.
2699
2700 * m/powermac.h: Remove boilerplate comments.
2701 (NO_REMAP): Remove unused definition.
2702
2703 * m/macppc.h (UNEXEC, NO_TERMIO): Don't define, the s/ files
2704 define them.
2705
27062008-07-10 Kenichi Handa <handa@m17n.org>
2707
2708 * xfont.c (xfont_open): Log the reason of failure.
2709
27102008-07-09 Stefan Monnier <monnier@iro.umontreal.ca>
2711
2712 * fontset.c (fontset_get_font_group):
2713 * font.c (font_check_otf): Specify argument types.
2714
27152008-07-09 Kenichi Handa <handa@m17n.org>
2716
2717 * coding.c (detect_coding_utf_8): Set detect_info->found only when
2718 non-ASCII char is found.
2719
2720 * fontset.c (fontset_compare_rfontdef): Fix plus/minus.
2721 (reorder_font_vector): Change the arg preferred_family to font.
2722 Prefer the spec matching with font.
2723 (fontset_get_font_group): New function.
2724 (fontset_find_font): Change the format of an element of a realized
2725 fontset. Use fontset_get_font_group.
2726 (fontset_font): Try the current fontset, the default fontset, the
2727 fallbacks of the current fontset, and the fallbacks of the default
2728 fontset in this order.
2729 (face_for_char): Delete the shortcut to use the current font.
2730 (fontset_from_font): Don't set fonts for Latin in the fontset.
2731
2732 * font.h (font_make_object, font_match_p): Adjust prototypes.
2733
2734 * ftfont.h [FT_BDF_H]: Include FT_BDF_H.
2735
2736 * font.c (font_make_object): New arg entity and pixelsize.
2737 (font_check_otf_features, font_check_otf): New functions.
2738 (font_match_p): Check :lang, :script, and :otf properties.
2739
2740 * xfont.c (xfont_open): Adjust it for the change of
2741 font_make_object.
2742 (xfont_text_extents): Fix initial setting of metrics.
2743
2744 * ftfont.c (struct ftfont_info): New member index, delete member
2745 fc_charset_idx. Make the member order compatible with struct
2746 xftfont_info.
2747 (fc_charset_table): Change charset names to registry names.
2748 (ftfont_pattern_entity): Delete the args registry and
2749 fc_charset_idx. Change the value of :font-entity property
2750 to (FONTNAME . INDEX). Always set :registry property to
2751 `iso10646-1'.
2752 (struct ftfont_cache_data): New struct.
2753 (ftfont_lookup_cache): New arg for_face.
2754 (ftfont_get_fc_charset, ftfont_get_otf): New functions.
2755 (ftfont_driver): Set the member otf_capability.
2756 (ftfont_get_charset): Adjust it for the change of
2757 fc_charset_table.
2758 (OTF_TAG_SYM): New macro.
2759 (ftfont_spec_pattern): Delete the arg fc_charset_idx. Adjust it
2760 for the change of fc_charset_table.
2761 (ftfont_list): Adjust it for the change of ftfont_spec_pattern and
2762 ftfont_pattern_entity. Add FC_INDEX to objset.
2763 (ftfont_match): Adjust it for the change of ftfont_spec_pattern
2764 and ftfont_pattern_entity.
2765 (ftfont_open): Adjust it for the change of ftfont_lookup_cache,
2766 font_make_object, struct ftfont_info.
2767 (ftfont_has_char): Use ftfont_get_fc_charset.
2768 (ftfont_otf_features, ftfont_otf_capability): New functions.
2769 (ftfont_shape): Use ftfont_get_otf.
2770 (ftfont_text_extents): Fix initial setting of metrics.
2771
2772 * xftfont.c (struct xftfont_info): New member ft_size. Make the
2773 member order compatible with struct ftfont_info.
2774 (xftfont_open): Add FC_CHARSET to the pattern. Set
2775 xftfont_info->ft_size. Don't unlock the face. Check BDF
2776 properties if appropriate.
2777 (xftfont_close): Unlock the face.
2778 (xftfont_anchor_point, xftfont_shape): Deleted.
2779 (syms_of_xftfont): Don't set members anchor_point and shape of
2780 xftfont_driver.
2781
2782 * w32uniscribe.c (uniscribe_open): Adjust it for the change of
2783 font_make_object.
2784
2785 * w32font.c (w32font_open): Adjust it for the change of
2786 font_make_object.
2787 (w32font_open_internal): Don't set properties of font_object here.
2788
27892008-07-08 Chong Yidong <cyd@stupidchicken.com>
2790
2791 * macfns.c (x_create_tip_frame):
2792 * w32fns.c (x_create_tip_frame):
2793 * xfns.c (x_create_tip_frame): Pass parameter argument to
2794 face-set-after-frame-default.
2795
2796 * xfaces.c (Finternal_merge_in_global_face): Save merged
2797 attributes for the default face back into the face vector.
2798
27992008-07-08 Andreas Schwab <schwab@suse.de>
2800
2801 * fontset.h: Declare fontset_from_font. Don't declare
2802 new_fontset_from_font and fontset_from_font_name.
2803 * xterm.c: Include "fontset.h".
2804 * Makefile.in (xterm.o): Update dependencies.
2805
28062008-07-08 Glenn Morris <rgm@gnu.org>
2807
2808 * m/sparc.h: Define __sparc__ rather than sparc. (Bug#507.)
2809 * alloc.c, ecrt0.c: Use __sparc__ rather than sparc.
2810
28112008-07-07 Chong Yidong <cyd@stupidchicken.com>
2812
2813 * frame.c (Qinhibit_face_set_after_frame_default): Var deleted.
2814 (x_set_frame_parameters): Don't bind it.
2815
28162008-07-07 Juanma Barranquero <lekktu@gmail.com>
2817
2818 * w32fns.c (map_w32_filename): Declare extern.
2819
28202008-07-07 Jason Rumney <jasonr@gnu.org>
2821
2822 * w32term.c (WS_EX_LAYERED): Define if not already.
2823
28242008-07-06 Chong Yidong <cyd@stupidchicken.com>
2825
2826 * xfaces.c (set_font_frame_param): Don't try to set the font
2827 parameter if it is still unspecified in the lface.
2828
28292008-07-05 Chong Yidong <cyd@stupidchicken.com>
2830
2831 * xfaces.c (Finternal_merge_in_global_face): Don't realize default
2832 face if it didn't already exist.
2833
2834 * xdisp.c (try_window_id): Give up if word-wrapping is on.
2835
28362008-07-05 Andreas Schwab <schwab@suse.de>
2837
2838 * xdisp.c (get_it_property): Move out of HAVE_WINDOW_SYSTEM section.
2839
28402008-07-05 Chong Yidong <cyd@stupidchicken.com>
2841
2842 * xdisp.c (IT_OVERFLOW_NEWLINE_INTO_FRINGE): Turn it off if
2843 word-wrapping.
2844 (IT_DISPLAYING_WHITESPACE): New macro.
2845 (move_it_in_display_line_to): Handle MOVE_TO_X requests properly
2846 when word-wrapping. Simplify word-wrapping logic. Use correct
2847 pixel positions when saving copies of the iterator.
2848 (display_line): Use proper wrap point if the last character on a
2849 line was preceded by whitespace.
2850
28512008-07-04 Stefan Monnier <monnier@iro.umontreal.ca>
2852
2853 * Makefile.in (${etc}DOC): Depend on ${lisp} rather than ${shortlisp}.
2854
28552008-07-04 Kenichi Handa <handa@m17n.org>
2856
2857 * fns.c (Fstring_to_unibyte): Delete the arg ACCEPT-LATIN-1.
2858
2859 * lisp.h: EXFUN adjusted for the change of Fstring_to_unibyte.
2860
28612008-07-02 Jason Rumney <jasonr@gnu.org>
2862
2863 * xfns.c (syms_of_xfns): Only define x-select-font when both
2864 HAVE_FREETYPE and USE_GTK
2865
2866 * xdisp.c (next_element_from_display_vector): Move assignment out
2867 of if statement.
2868
28692008-07-02 Toru Tsuneyoshi <t_tuneyosi@hotmail.com>
2870
2871 * lisp.h (Qdelete_file, Qdelete_directory): Declare extern.
2872
2873 * fileio.c (delete_by_moving_to_trash, Qmove_file_to_trash): New vars.
2874 (syms_of_fileio): Initialize and export them.
2875 (Fdelete_directory, Fdelete_file): Optionally delete via trash.
2876
2877 * w32fns.c (FOF_NO_CONNECTED_ELEMENTS): Define if not already.
2878 (Fsystem_move_file_to_trash): New function.
2879 (syms_of_w32fns): Export it to lisp.
2880
28812008-07-01 Jason Rumney <jasonr@gnu.org>
2882
2883 * w32font.c (w32font_text_extents): Don't count overhang as part
2884 of width.
2885
28862008-06-30 Miles Bader <miles@gnu.org>
2887
2888 * dispextern.h (struct glyph, struct it, struct iterator_stack_entry):
2889 Add `avoid_cursor_p' field.
2890
2891 * xdisp.c (push_it, pop_it): Save/restore avoid_cursor_p field.
2892 (set_cursor_from_row): Skip glyphs with avoid_cursor_p set.
2893 (append_glyph, append_composite_glyph, produce_image_glyph)
2894 (append_stretch_glyph): Initialize avoid_cursor_p.
2895 (get_it_property): Rename from `get_line_height_property'.
2896 (x_produce_glyphs): Use get_it_property.
2897 (handle_line_prefix, push_display_prop): New functions.
2898 (display_line, move_it_in_display_line_to): Handle line/wrap prefixes.
2899 (Vwrap_prefix, Qwrap_prefix, Vline_prefix, Qline_prefix):
2900 New variables.
2901 (syms_of_xdisp): Initialize them.
2902
29032008-06-30 Kenichi Handa <handa@m17n.org>
2904
2905 * xftfont.c (xftfont_open): Don't call FcConfigSubstitute and
2906 XftDefaultSubstitute (they are called in XftFontMatch).
2907 (xftfont_open): Fix args to ftfont_font_format.
2908
2909 * ftfont.c (fc_charset_table): New member lang.
2910 (ftfont_resolve_generic_family): New arg pattern.
2911 (ftfont_spec_pattern): Check fc_cahrset_table[]->lang.
2912 (ftfont_list): Call ftfont_resolve_generic_family with `pattern'.
2913 (ftfont_open): Fix args to ftfont_font_format.
2914 (ftfont_font_format): New arg filename.
2915
29162008-06-30 Chong Yidong <cyd@stupidchicken.com>
2917
2918 * xfaces.c (Finternal_merge_in_global_face): If default face was
2919 modified, realize it again. Update the font face attribute.
2920
29212008-06-29 Jason Rumney <jasonr@gnu.org>
2922
2923 * w32term.c (x_set_frame_alpha): Fix logic.
2924
29252008-06-29 Kenichi Handa <handa@m17n.org>
2926
2927 * fontset.c (Finternal_char_font): Return font-object instead of
2928 font-name.
2929
2930 * composite.c (get_composition_id): Fix the width calculation for TAB.
2931
29322008-06-29 Stefan Monnier <monnier@iro.umontreal.ca>
2933
2934 * indent.c (Fvertical_motion): Properly handle float column arg.
2935
29362008-06-28 Jason Rumney <jasonr@gnu.org>
2937
2938 * w32term.c (pfnGetFontUnicodeRanges): Remove unused function pointer.
2939 (pfnSetLayeredWindowAttributes): New function pointer.
2940 (w32_initialize): Initialize it when supported.
2941 (x_set_frame_alpha): New function.
2942
2943 * w32fns.c (Fx_create_frame): Initialize frame parameter `alpha'.
2944 (w32_frame_parm_handlers): Set alpha handler.
2945
2946 * frame.c (x_set_alpha) [HAVE_NTGUI]: Call x_set_frame_alpha.
2947
29482008-06-27 Jason Rumney <jasonr@gnu.org>
2949
2950 * w32fns.c (x_to_w32_font, w32_to_x_font, x_to_w32_weight)
2951 (w32_to_x_weight, w32_to_all_x_charsets): Remove obsolete functions.
2952 (w32_to_x_charset, x_to_w32_charset)
2953 (Qw32_charset_ansi, Qw32_charset_symbol, Qw32_charset_default)
2954 (Qw32_charset_shiftjis, Qw32_charset_hangeul, Qw32_charset_johab)
2955 (Qw32_charset_chinesebig5, Qw32_charset_gb2312, Qw32_charset_oem)
2956 (Qw32_charset_easteurope, Qw32_charset_turkish, Qw32_charset_baltic)
2957 (Qw32_charset_russian, Qw32_charset_arabic, Qw32_charset_greek)
2958 (Qw32_charset_hebrew, Qw32_charset_vietnamese, Qw32_charset_thai)
2959 (Qw32_charset_mac, Vw32_charset_info_alist): Move to w32font.c.
2960 (Qw32_charset_unicode): Remove.
2961 (syms_of_w32fns): Update for above changes.
2962
2963 * w32font.c (w32_to_x_charset, x_to_w32_charset)
2964 (Qw32_charset_ansi, Qw32_charset_symbol, Qw32_charset_default)
2965 (Qw32_charset_shiftjis, Qw32_charset_hangeul, Qw32_charset_johab)
2966 (Qw32_charset_chinesebig5, Qw32_charset_gb2312, Qw32_charset_oem)
2967 (Qw32_charset_easteurope, Qw32_charset_turkish, Qw32_charset_baltic)
2968 (Qw32_charset_russian, Qw32_charset_arabic, Qw32_charset_greek)
2969 (Qw32_charset_hebrew, Qw32_charset_vietnamese, Qw32_charset_thai)
2970 (Qw32_charset_mac, Vw32_charset_info_alist): Move from w32fns.c.
2971 (syms_of_w32font): Update for above changes.
2972
29732008-06-27 Dan Nicolaescu <dann@ics.uci.edu>
2974
2975 * s/usg5-4.h: Fix previous change: keep the correct branch of a
2976 removed #if.
2977 (USG_SHARED_LIBRARIES): Remove duplicate definition.
2978
29792008-06-26 Juanma Barranquero <lekktu@gmail.com>
2980 Eli Zaretskii <eliz@gnu.org>
2981
2982 * makefile.w32-in (LOCAL_FLAGS):
2983 Don't include WINDOWSNT, DOS_NT and _UCHAR_T.
2984
2985 * sysdep.c (_spawnlp, _getpid):
2986 Declare with explicit _cdecl instead of _CRTAPI1.
2987
2988 * editfns.c (Fget_internal_run_time):
2989 Check for WINDOWSNT with #ifdef, not #if.
2990
29912008-06-26 Jason Rumney <jasonr@gnu.org>
2992
2993 * w32font.h (FONT_HANDLE, FONT_TEXTMETRIC): New macros.
2994
2995 * w32term.c (x_draw_glyph_string_foreground)
2996 (x_draw_composite_glyph_string_foreground): Sync with xterm.c.
2997 Use FONT_HANDLE macro.
2998 (x_draw_glyph_string): Use FONT_TEXTMETRIC macro.
2999
3000 * w32uniscribe.c (uniscribe_otf_capability, uniscribe_shape)
3001 (uniscribe_encode_char): Use FONT_HANDLE macro.
3002
3003 * w32font.c (Fx_select_font): Use FONT_HANDLE macro.
3004 (w32font_text_extents): Use precast w32_font.
3005 (w32font_close): Free cached metrics.
3006 (w32font_open_internal): Allocate space for name on stack.
3007
30082008-06-26 Chong Yidong <cyd@stupidchicken.com>
3009
3010 * xdisp.c (extend_face_to_end_of_line): Fix last change.
3011
30122008-06-26 Jason Rumney <jasonr@gnu.org>
3013
3014 * w32term.h (FONT_AVG_WIDTH): Remove obsolete macro.
3015 (CP_8BIT, CP_UNICODE, CP_UNKNOWN): Remove obsolete constants.
3016
30172008-06-26 Juanma Barranquero <lekktu@gmail.com>
3018
3019 * Makefile.in (SOME_MACHINE_OBJECTS): Remove w32bdf.o.
3020
30212008-06-26 Jason Rumney <jasonr@gnu.org>
3022
3023 * w32bdf.c, w32bdf.h: Remove obsolete files.
3024
3025 * makefile.w32-in: Remove refs to w32bdf.h and w32bdf.c.
3026
3027 * w32gui.h: Don't include w32bdf.h.
3028 (XCharStruct, enum w32_char_font_type, W32FontStruct):
3029 Remove obsolete font support.
3030
3031 * w32font.h (struct w32font_info): Remove compat_w32_font.
3032 Add hfont member.
3033 (FONT_COMPAT): Remove obsolete macro.
3034
3035 * w32font.c (w32font_close): Remove compat code. Delete hfont member.
3036 (w32font_encode_char, w32font_text_extents): Use new hfont member.
3037 (w32font_open_internal): Remove compat code. Set new hfont member.
3038 (Fx_select_font): Use new hfont member.
3039
3040 * w32uniscribe.c (uniscribe_otf_capability, uniscribe_shape)
3041 (uniscribe_encode_char): Use new hfont member.
3042
3043 * w32term.c (x_draw_glyph_string_foreground)
3044 (x_draw_composite_glyph_string_foreground): Use new hfont member.
3045 (x_draw_glyph_string): Use metrics in w32font_info.
3046
30472008-06-26 Kenichi Handa <handa@m17n.org>
3048
3049 * xdisp.c (handle_auto_composed_prop): Fix for the terminal case.
3050
30512008-06-26 Dan Nicolaescu <dann@ics.uci.edu>
3052
3053 * unexnext.c:
3054 * m/ews4800.h:
3055 * m/hp9000s300.h:
3056 * m/ibm370aix.h:
3057 * m/mips-siemens.h:
3058 * m/ncr386.h:
3059 * m/next.h:
3060 * m/pmax.h:
3061 * m/powerpcle.h:
3062 * m/tandem-s2.h:
3063 * s/386bsd.h:
3064 * s/bsd386.h:
3065 * s/bsd4-1.h:
3066 * s/bsd4-2.h:
3067 * s/bsdos2-1.h:
3068 * s/bsdos2.h:
3069 * s/bsdos3.h:
3070 * s/bsdos4.h:
3071 * s/nextstep.h:
3072 * s/ultrix4-3.h:
3073 * s/usg5-0.h:
3074 * s/usg5-2-2.h:
3075 * s/usg5-2.h:
3076 * s/usg5-4-3.h:
3077 * s/ux4800.h:
3078 * s/uxpds.h:
3079 * s/uxpv.h: Remove support for obsolete systems.
3080 * s/hpux.h, s/hpux10.h, s/hpux8.h, s/hpux9.h, s/hpux9shr.h:
3081 Remove, insert contents in s/hpux-10.20.h.
3082 * s/aix3-1.h, s/aix3-2-5.h, s/aix3-2.h, s/aix4-1.h, s/aix4.h:
3083 Remove, insert contents in s/aix4-2.h.
3084 * s/usg5-3.h: Remove, insert contents in s/usg5-4.h.
3085 * s/bsd4-3.h: Rename to ...
3086 * s/bsd-common.h: ... this.
3087 * data.c:
3088 * doc.c:
3089 * ecrt0.c:
3090 * emacs.c:
3091 * fileio.c:
3092 * floatfns.c:
3093 * keyboard.c:
3094 * mem-limits.h:
3095 * print.c:
3096 * process.c:
3097 * sysdep.c:
3098 * syssignal.h:
3099 * systty.h:
3100 * syswait.h:
3101 * term.c:
3102 * unexec.c:
3103 * unexelf.c:
3104 * unexhp9k800.c:
3105 * m/hp800.h:
3106 * m/ibmrs6000.h:
3107 * m/mips.h:
3108 * m/vax.h:
3109 * s/darwin.h:
3110 * s/freebsd.h:
3111 * s/gnu.h:
3112 * s/ms-w32.h:
3113 * s/msdos.h:
3114 * s/netbsd.h:
3115 * s/template.h: Remove references to obsolete variables.
3116
3117 * Makefile.in: Add dependencies for all unexec files.
3118 (admindir): Remove unused variable.
3119 (UNEXEC_SRC): Remove references.
3120
31212008-06-25 Chong Yidong <cyd@stupidchicken.com>
3122
3123 * xfns.c (x_default_font_parameter): If Xft is available, first
3124 try Monospace-12 for the default font.
3125
31262008-06-25 Jason Rumney <jasonr@gnu.org>
3127
3128 * xdisp.c (get_glyph_face_and_encoding): Encode invalid glyphs as 0.
3129
31302008-06-25 Stefan Monnier <monnier@iro.umontreal.ca>
3131
3132 * bytecode.c (Fbyte_code): Disable debugging code that doesn't compile.
3133
3134 * buffer.c (syms_of_buffer): Remove default-word-wrap.
3135
31362008-06-25 Juanma Barranquero <lekktu@gmail.com>
3137
3138 * xdisp.c (syms_of_xdisp) <truncate-partial-width-windows>: Doc fix.
3139 <scroll-conservatively>: Fix typo in docstring.
3140
3141 * xselect.c (Fx_send_client_event): Doc fix.
3142
31432008-06-25 Kenichi Handa <handa@m17n.org>
3144
3145 * xfaces.c (Fx_list_fonts): Call Flist_fonts with the arg PREFER.
3146
3147 * font.c (font_parse_fcname): Remove unused variables.
3148 (font_sort_entites): Delete the arg SPEC. Caller changed.
3149 Fix for the case of ! best_only.
3150 (font_delete_unmatched): Check DPI and AVGWIDTH too.
3151
3152 * lisp.h (Fstring_to_unibyte): EXFUN it.
3153
3154 * character.h (str_to_unibyte): Extern it.
3155
3156 * character.c (str_to_unibyte): New function.
3157
3158 * fns.c (Fstring_to_unibyte): New function.
3159 (syms_of_fns): Defsubr it.
3160
31612008-06-24 Kenichi Handa <handa@m17n.org>
3162
3163 * font.c (font_score): Even if the PIXEL_SIZE is the same, check
3164 DPI too.
3165 (font_sort_entites): Setup prefer_prop[FONT_DPI_INDEX] too.
3166
31672008-06-24 Andreas Schwab <schwab@suse.de>
3168
3169 * Makefile.in (${lispsource}loaddefs.el): Rename from
3170 ../lisp/loaddefs.el.
3171 (bootstrap-clean): Do what distclean does but don't remove
3172 Makefile.
3173 (distclean): Depend on bootstrap-clean and remove Makefile.
3174
31752008-06-24 Chong Yidong <cyd@stupidchicken.com>
3176
3177 * buffer.h (struct buffer): New member word_wrap.
3178
3179 * buffer.c (syms_of_buffer): New variables default-word-wrap and
3180 word-wrap.
3181 (init_buffer_once): Initialize them.
3182
3183 * dispextern.h (struct it): Replace bool truncate_lines_p with a
3184 line_wrap enum possessing three possible values.
3185
3186 * termopts.h: Replace truncate_partial_width_windows with
3187 Vtruncate_partial_width_windows.
3188
3189 * dispnew.c (direct_output_for_insert): Avoid direct output when
3190 inserting a space with word wrap on.
3191
3192 * indent.c (compute_motion): Obey integer values of
3193 truncate-partial-width-windows.
3194
3195 * xdisp.c (Vtruncate_partial_width_windows): New Lisp_Object,
3196 replacing truncate_partial_width_windows.
3197 (init_iterator): If Vtruncate_partial_width_windows is an integer,
3198 truncate only if the window width is below that integer.
3199 (start_display, resize_mini_window, produce_stretch_glyph)
3200 (display_string, move_it_in_display_line_to): Use line_wrap.
3201 (back_to_previous_visible_line_start, reseat_1): Reset
3202 string_from_display_prop_p.
3203 (display_line): Extend default face to end of line when wrapping.
3204
32052008-06-24 Kim F. Storm <storm@cua.dk>
3206
3207 * xdisp.c (display_line, move_it_in_display_line_to): Add ability
3208 to wrap continued lines at word boundaries.
3209
32102008-06-24 Jason Rumney <jasonr@gnu.org>
3211
3212 * font.c (Ffont_face_attributes): Multiply pixel size before point
3213 conversion to avoid multiplying rounding error.
3214
32152008-06-23 Jason Rumney <jasonr@gnu.org>
3216
3217 * w32term.c (x_draw_glyph_string_background)
3218 (x_draw_glyph_string): Remove old bdf font code.
3219
3220 * w32term.h (FONT_TYPE_FOR_UNIBYTE, FONT_TYPE_FOR_MULTIBYTE): Remove.
3221
32222008-06-22 Kenichi Handa <handa@m17n.org>
3223
3224 * font.c (font_find_for_lface): Try the adstyle specified in
3225 the property of LFACE_FONT of LFACE (if any).
3226
32272008-06-21 Seiji Zenitani <zenitani@mac.com>
3228 Ryo Yoshitake <ryo@shiftmode.net>
3229
3230 * xterm.c (x_set_frame_alpha): Add x_catch_errors for bug#437.
3231
32322008-06-22 Stefan Monnier <monnier@iro.umontreal.ca>
3233
3234 * Makefile.in (${lisp} ${SOME_MACHINE_LISP}, ../lisp/loaddefs.el):
3235 Use $(BOOTSTRAPEMACS) rather than witness-emacs.
3236 (bootstrap-emacs${EXEEXT}): Merge witness-emacs into it.
3237 (witness-emacs): Remove.
3238 (lisp, shortlisp): Move loaddefs.el earlier.
3239 (mostlyclean): Forget about witness-emacs.
3240
32412008-06-22 Glenn Morris <rgm@gnu.org>
3242
3243 * Makefile.in (witness-emacs): Depend on temacs${EXEEXT}.
3244 (.SUFFIXES): Declare .el.elc as a suffix rule, for non-GNU makes.
3245
32462008-06-21 Stefan Monnier <monnier@iro.umontreal.ca>
3247
3248 * Makefile.in (PRECOMP): Remove.
3249 (${lisp} ${SOME_MACHINE_LISP}): Remove pseudo dependency on PRECOMP.
3250 (witness-emacs): Run `compile-first'.
3251 (.el.elc): Use the new compile-onefile target.
3252
32532008-06-21 Kenichi Handa <handa@m17n.org>
3254
3255 * xftfont.c (xftfont_open): Handle QCembolden only when
3256 FC_EMBOLDEN is defined.
3257
32582008-06-21 Andreas Schwab <schwab@suse.de>
3259
3260 * Makefile.in (witness-emacs): Use ../lisp, not $(lispsource).
3261 (.el.elc): Likewise.
3262
32632008-06-21 Miles Bader <miles@gnu.org>
3264
3265 * Makefile.in (../lisp/loaddefs.el): Build autoloads in the lisp
3266 build dir, not the lisp source dir.
3267
32682008-06-21 Stefan Monnier <monnier@iro.umontreal.ca>
3269
3270 * Makefile.in (emacs${EXEEXT}): Link the new emacs to bootstrap-emacs.
3271 (bootstrapclean): Remove.
3272 (.el.elc): New rule.
3273 (PRECOMP): New var.
3274 (../lisp/subdirs.el): Remove.
3275 (bootstrap-emacs${EXEEXT}): Remove subdirs.el and charpro.el dependency.
3276 (witness-emacs): New target.
3277 (mostlyclean): Remove witness-emacs as well.
3278 (../lisp/loaddefs.el, ${lisp} ${SOME_MACHINE_LISP}):
3279 Add witness-emacs dependency.
3280
32812008-06-20 Chong Yidong <cyd@stupidchicken.com>
3282
3283 * font.c (Ffont_face_attributes): Omit key-attribute pairs not
3284 defined by the font.
3285
32862008-06-20 Stefan Monnier <monnier@iro.umontreal.ca>
3287
3288 * Makefile.in (emacs${EXEEXT}): Depend on the machine-specific files.
3289 (bootstrap-clean): New target that keeps TAGS around.
3290 (../lisp/subdirs.el, ../lisp/loaddefs.el): New targets.
3291 (bootstrap-emacs${EXEEXT}): Depend on subdirs.el.
3292
32932008-06-20 Jason Rumney <jasonr@gnu.org>
3294
3295 * w32fns.c, w32term.c, w32term.h, w32gui.h [OLD_FONT]:
3296 Remove obsolete font code.
3297
3298 * w32font.c (font_matches_spec): Use csb bitfield from font signature
3299 to determine language support.
3300
33012008-06-20 Stefan Monnier <monnier@iro.umontreal.ca>
3302
3303 * sysdep.c (cfsetspeed): New fun extracted from the code.
3304 (cfmakeraw): Move before first use.
3305
33062008-06-20 Angelo Graziosi <angelo.graziosi@alice.it> (tiny change)
3307
3308 * sysdep.c (cfmakeraw): Provide fallback implementation.
3309 (serial_configure): Provide fallback implementation of cfsetspeed.
3310
33112008-06-20 Kenichi Handa <handa@m17n.org>
3312
3313 * xftfont.c (xftfont_open): Add FOUNDRY, SPACING, DPI, SCALABLE to
3314 the pattern.
3315
3316 * fontset.c (fontset_from_font): Copy font_spec before changing
3317 the elements.
3318
3319 * xfns.c (x_default_font_parameter): Try "monospace-12" too.
3320
33212008-06-20 Stefan Monnier <monnier@iro.umontreal.ca>
3322
3323 * w32fns.c, xfns.c (x_default_font_parameter): Only set `font-param'
3324 for explicit `font' parameters.
3325
3326 * frame.c (x_set_font): Remove unexplained call to fix inf-recursion.
3327
33282008-06-19 Kenichi Handa <handa@m17n.org>
3329
3330 * frame.c: Include <ctype.h>.
3331 (x_set_font_backend): Allow spacing characters in the X resource
3332 for FontBackend.
3333
33342008-06-19 Stefan Monnier <monnier@iro.umontreal.ca>
3335
3336 * w32fns.c, xfns.c (Qfont_param): New var.
3337 (syms_of_w32fns): Initialize it.
3338 (x_default_font_parameter): Record explicit `font' into
3339 `font-parameter'.
3340
33412008-06-18 Kenichi Handa <handa@m17n.org>
3342
3343 * font.c (font_parse_xlfd): Fix previous change.
3344 (font_parse_fcname): Don't use :fc-unknown-spec.
3345 (FRAME_X_DISPLAY_INFO): Be sure to have at least 1 pixel height.
3346 (Fcopy_font_spec): Preserve the order of elements in FONT_EXTRA.
3347 (font_add_log): Prepend the driver name to the resulting fonts.
3348
3349 * ftfont.c (ftfont_pattern_entity): New arg extra. Caller changed.
3350 (ftfont_spec_pattern): Don't check QCfc_unknown_spec and QCname.
3351 (ftfont_list) [FC_FONTFORMAT]: Include FC_FONTFORMAT in objset.
3352
3353 * xftfont.c (QChinting , QCautohint, QChintstyle, QCrgba)
3354 (QCembolden): New variables.
3355 (syms_of_xftfont): DEFSYM them.
3356 (xftfont_open): Call XftFontMatch. Don't trust the result of
3357 XftTextExtents8 if the pixel_size is less than 5.
3358
33592008-06-18 Andreas Schwab <schwab@suse.de>
3360
3361 * font.c (Ffont_face_attributes): Only define if HAVE_WINDOW_SYSTEM.
3362 (syms_of_font): Only defsubr if HAVE_WINDOW_SYSTEM.
3363
33642008-06-18 Jason Rumney <jasonr@gnu.org>
3365
3366 * w32font.c (w32font_list, w32font_match): Add logging.
3367
3368 * w32uniscribe.c (uniscribe_list, uniscribe_match): Add logging.
3369
33702008-06-17 Chong Yidong <cyd@stupidchicken.com>
3371
3372 * font.c (font_parse_fcname): Store divider characters for
3373 unknown-spec list. For known key symbols, intern using correct
3374 symbol name.
3375
33762008-06-17 Kenichi Handa <handa@m17n.org>
3377
3378 * xfaces.c (realize_default_face): If the frame is not on window
3379 system, set the fontset of face to nil.
3380
33812008-06-17 Naohiro Aota <nao.aota@gmail.com> (tiny change)
3382
3383 * fontset.c (fontset_pattern_regexp): Escape some reg-expr characters.
3384
33852008-06-16 Juanma Barranquero <lekktu@gmail.com>
3386
3387 * dispextern.h (lookup_non_ascii_face, split_font_name_into_vector)
3388 (build_font_name_from_vector): Delete externs.
3389
3390 * xfaces.c (struct font_name): Don't declare.
3391
33922008-06-16 Stefan Monnier <monnier@iro.umontreal.ca>
3393
3394 * font.c (font_unparse_gtkname): Use EQ to compare Lisp_Objects.
3395
33962008-06-16 Chong Yidong <cyd@stupidchicken.com>
3397
3398 * font.c (font_parse_fcname): Fix handling of unknown-spec string.
3399
34002008-06-16 Juanma Barranquero <lekktu@gmail.com>
3401
3402 * font.c (Ffont_spec): Fix usage in docstring.
3403 (Ffont_face_attributes): Doc fix.
3404
34052008-06-16 Andreas Schwab <schwab@suse.de>
3406
3407 * font.c (Ffont_face_attributes): Fix definition.
3408
34092008-06-16 Jason Rumney <jasonr@gnu.org>
3410
3411 * font.h (font_style_symbolic_from_value): Remove.
3412
3413 * font.c (font_style_symbolic_from_value): Remove.
3414 (font_style_symbolic): Revert to pre 2008-06-13 version.
3415
3416 * w32font.c (w32_to_fc_weight): New function.
3417 (w32font_full_name, logfont_to_fcname): Use it.
3418
34192008-06-16 Kenichi Handa <handa@m17n.org>
3420
3421 * font.c (font_check_object): Delete it.
3422 (font_clear_cache): Check if a font-object is alive.
3423 (font_open_entity): Likewise. Set FONT_OBJLST_INDEX of a
3424 font-object to nil.
3425 (font_close_object): Don't check FONT_CLOSE_OBJECT.
3426 (font_at): Don't call font_check_object.
3427 (Ffont_get): Return a symbol for :weight, :slant, and :width.
3428
34292008-06-16 Katsumi Yamaoka <yamaoka@jpl.org>
3430
3431 * puresize.h (BASE_PURESIZE): Increase to 1230000.
3432
34332008-06-16 Chong Yidong <cyd@stupidchicken.com>
3434
3435 * font.c (font_parse_fcname): Correctly parse KEY=VAL values.
3436
34372008-06-15 Chong Yidong <cyd@stupidchicken.com>
3438
3439 * font.c (font_parse_fcname): Only one decimal point.
3440 (font_unparse_fcname): Handle data in family and foundry indices
3441 as symbols, not strings.
3442 (font_unparse_gtkname, Ffont_face_attributes): New functions.
3443
3444 * xfns.c (Fx_select_font): Give GTK font dialog the default font name.
3445
3446 * font.h (font_unparse_gtkname): Add prototype.
3447
34482008-06-15 Naohiro Aota <nao.aota@gmail.com> (tiny change)
3449
3450 * fontset.c (fontset_pattern_regexp): Escape `+' characters in pattern.
3451
34522008-06-15 Andreas Schwab <schwab@suse.de>
3453
3454 * font.c (font_update_drivers): Fix crash when no drivers match.
3455
34562008-06-15 Stefan Monnier <monnier@iro.umontreal.ca>
3457
3458 * xfns.c (Fx_create_frame): internal-border-width default to 0 for Gtk.
3459 * gtkutil.c (xg_create_frame_widgets): Don't set internal_border_width.
3460
34612008-06-14 Stefan Monnier <monnier@iro.umontreal.ca>
3462
3463 * xdisp.c (syms_of_xdisp): Default underline-minimum-offset to 1.
3464
34652008-06-13 Stefan Monnier <monnier@iro.umontreal.ca>
3466
3467 * process.c (Fserial_process_configure, Fprocess_send_eof):
3468 Use EQ to compare Lisp_Objects.
3469
34702008-06-13 Jason Rumney <jasonr@gnu.org>
3471
3472 * w32fns.c (Fw32_select_font): Remove old font API function.
3473
3474 * w32font.c (logfont_to_fcname): New function.
3475 (Fx_select_font): New font dialog function compatible with
3476 GTK/fontconfig version.
3477
3478 * font.c (font_style_symbolic_from_value): New function.
3479 (font_style_symbolic): Use it.
3480
3481 * font.h (font_style_symbolic_from_value): Declare new function.
3482
34832008-06-13 Juanma Barranquero <lekktu@gmail.com>
3484
3485 * font.c (syms_of_font) <font-weight-table, font-slant-table>:
3486 <font-width-table>: Fix typos in docstrings.
3487
34882008-06-13 Daniel Engeler <engeler@gmail.com>
3489
3490 These changes add serial port access.
3491 * process.c: Add HAVE_SERIAL.
3492 (Fdelete_process, Fprocess_status, Fset_process_buffer)
3493 (Fset_process_filter, Fset_process_sentinel, Fprocess_contact)
3494 (list_processes_1, select_wrapper, Fstop_process)
3495 (Fcontinue_process, Fprocess_send_eof, kill_buffer_processes)
3496 (status_notify): Modify to handle serial processes.
3497 [HAVE_SERIAL] (Fserial_process_configure)
3498 [HAVE_SERIAL] (make_serial_process_unwind, Fmake_serial_process):
3499 New functions.
3500 * process.h (struct Lisp_Process): Add `type'.
3501 * sysdep.c [HAVE_TERMIOS] (serial_open, serial_configure):
3502 New functions.
3503 * w32.c (_sys_read_ahead, sys_read, sys_write): Modify to handle
3504 serial ports.
3505 (serial_open, serial_configure) New functions.
3506 * w32.h: Add FILE_SERIAL.
3507 (struct _child_process): Add ovl_read, ovl_write.
3508
35092008-06-13 Kenichi Handa <handa@m17n.org>
3510
3511 * dispextern.h (enum lface_attribute_index): New member
3512 LFACE_FOUNDRY_INDEX.
3513
3514 * font.c (font_score): Delete arg alternate_families. Check only
3515 weight, slant, width, and size. Ignore the difference of alias
3516 style symbols.
3517 (font_sort_entites): Adjust for the above change. Reflect the
3518 order of font-driver to scores.
3519 (font_list_entities): Don't check alternate_familes here.
3520 (font_clear_prop): Handle foundry.
3521 (font_update_lface): Don't parse "foundry-family" form here.
3522 Handle FONT_FOUNDRY_INDEX.
3523 (font_find_for_lface): Likewise. Handle alternate families here.
3524 If registry is nil, try iso8859-1 and ascii-0.
3525 (font_open_for_lface): Pay attention to size in ENTITY.
3526 (font_open_by_name): Simplify by calling font_load_for_lface.
3527 (free_font_driver_list): Delete it.
3528 (font_update_drivers): Preserve the order of backends.
3529 (syms_of_font): Setting of sort_shift_bits adjusted for the change
3530 of font_score and font_sort_entites.
3531 (font_update_sort_order): Likewise.
3532
3533 * xfaces.c (LFACE_FOUNDRY): New macro.
3534 (check_lface_attrs): Check foundry.
3535 (set_lface_from_font): Don't parse "FOUNDRY-FAMILY" form.
3536 (merge_face_vectors): Check foundry.
3537 (merge_face_ref): Likewise.
3538 (Finternal_set_lisp_face_attribute): Likewise.
3539 (x_update_menu_appearance): Likewise.
3540 (Finternal_get_lisp_face_attribute): Likewise.
3541 (lface_hash): Likewise.
3542 (lface_same_font_attributes_p): Likewise.
3543 (x_supports_face_attributes_p): Likewise.
3544 (tty_supports_face_attributes_p): Likewise.
3545 (Finternal_set_alternative_font_family_alist): Intern strings.
3546 (Finternal_set_alternative_font_registry_alist): Downcase strings.
3547 (realize_default_face): Set LFACE_FOUNDRY (lface).
3548
3549 * xfns.c (Fx_create_frame, x_create_tip_frame): Register X
3550 font-driver at first.
3551
3552 * ftfont.c (ftfont_font_format) [! FC_FONTFORMAT]: Declare "int len;".
3553
35542008-06-12 Emanuele Giaquinta <emanuele.giaquinta@gmail.com> (tiny change)
3555
3556 * lread.c (Fload): Use xfree, not free on saved_doc_string.
3557
35582008-06-12 Jim Meyering <meyering@redhat.com>
3559
3560 Make unexec_free handle NULL the same way free does.
3561 * unexmacosx.c (unexec_free): Ignore a NULL argument.
3562
35632008-06-12 Stefan Monnier <monnier@iro.umontreal.ca>
3564
3565 * character.h (CHAR_TO_BYTE_SAFE): New macro.
3566 * character.c (Fmultibyte_char_to_unibyte): Obey the docstring.
3567 * regex.c (RE_CHAR_TO_UNIBYTE): Use the new macro.
3568 (WEAK_ALIAS): Simplify.
3569 * syntax.c (skip_chars): Don't mark non-byte chars in the fastmap
3570 when searching a unibyte buffer.
3571
35722008-06-12 Chong Yidong <cyd@stupidchicken.com>
3573
3574 * xfns.c (Fx_select_font): Rename from x-font-dialog.
3575
35762008-06-12 Juanma Barranquero <lekktu@gmail.com>
3577
3578 * w32font.c: Include ctype.h.
3579
35802008-06-11 Jason Rumney <jasonr@gnu.org>
3581
3582 * w32font.c (w32font_encode_char): Detect missing glyphs that are
3583 misreported as space.
3584 (add_font_entity_to_list): Support unicode-bmp and unicode-sip
3585 as aliases for registry iso10646-1.
3586
35872008-06-11 Stefan Monnier <monnier@iro.umontreal.ca>
3588
3589 * buffer.c (clone_per_buffer_values): Skip `name'.
3590
35912008-06-11 Chong Yidong <cyd@stupidchicken.com>
3592
3593 * font.c (font_parse_fcname): Fix last change; accept decimal
3594 points in font size.
3595
35962008-06-10 Jason Rumney <jasonr@gnu.org>
3597
3598 * w32uniscribe.c (add_opentype_font_name_to_list):
3599 Skip non unicode fonts.
3600
36012008-06-10 Chong Yidong <cyd@stupidchicken.com>
3602
3603 * xfns.c (Fx_font_dialog): New function.
3604
3605 * gtkutil.c (xg_dialog_response_cb): Rename from
3606 xg_file_response_callback.
3607 (pop_down_dialog): Rename from pop_down_file_dialog.
3608 (xg_get_file_name): Callers changed.
3609 (xg_get_font_name): New function.
3610
3611 * gtkutil.h (xg_get_font_name): Insert prototype.
3612
36132008-06-10 Stefan Monnier <monnier@iro.umontreal.ca>
3614
3615 * xdisp.c (underline_minimum_offset): Rename from xterm.c's
3616 x_underline_minimum_display_offset.
3617 (syms_of_xdisp): Declare it here rather than in xterm.c.
3618 * dispextern.h (underline_minimum_offset): Declare it.
3619 * w32term.c (x_draw_glyph_string): Use it.
3620 * xterm.c (x_underline_minimum_display_offset): Move to xdisp.c.
3621 (syms_of_xterm): Don't declare it any more.
3622 (x_draw_glyph_string): Adjust to the new name.
3623
36242008-06-10 David De La Harpe Golden <david@harpegolden.net> (tiny change)
3625
3626 * xterm.c (x_underline_minimum_display_offset): New var.
3627 (x_draw_glyph_string): Use it.
3628 (syms_of_xterm): Declare it.
3629
36302008-06-10 Chong Yidong <cyd@stupidchicken.com>
3631
3632 * font.c (font_parse_fcname): Accept GTK-style font names too.
3633
36342008-06-10 Stefan Monnier <monnier@iro.umontreal.ca>
3635
3636 * dired.c (file_name_completion): Don't return t if the match is exact
3637 but with different capitalization.
3638 * minibuf.c (Ftry_completion): Simplify.
3639
3640 * window.c (Vwindow_point_insertion_type): New var.
3641 (set_window_buffer): Use it.
3642 (syms_of_window): Init and export it to Lisp.
3643
36442008-06-10 Kenichi Handa <handa@m17n.org>
3645
3646 * font.h (font_intern_prop): Prototype adjusted.
3647
3648 * font.c (font_intern_prop): New arg force_symbol.
3649 (font_parse_xlfd, font_parse_fcname, font_parse_family_registry):
3650 Adjust for the change of font_intern_prop.
3651
3652 * ftfont.c (ftfont_pattern_entity):
3653 * w32font.c (add_font_name_to_list, w32_enumfont_pattern_entity)
3654 (w32_registry):
3655 * w32uniscribe.c (add_opentype_font_name_to_list): Adjust for
3656 the change of font_intern_prop.
3657
36582008-06-09 Juanma Barranquero <lekktu@gmail.com>
3659
3660 * w32menu.c (digest_single_submenu): Declare extern.
3661
36622008-06-09 Jason Rumney <jasonr@gnu.org>
3663
3664 * w32term.c (x_make_frame_visible): Use alternate restore flags.
3665
3666 * w32menu.c (Fx_popup_menu): Unwind protect while building menu.
3667 (parse_single_submenu): Remove.
3668 (digest_single_submenu): Remove.
3669 (syms_of_w32menu): Don't initialise variables that have moved
3670 to menu.c.
3671 (set_frame_menubar): Sync with version in xmenu.c.
3672 (w32_menu_show): Sync with xmenu_show in xmenu.c.
3673
3674 * menu.c (single_keymap_panes, push_menu_pane, push_menu_item):
3675 Make static again.
3676
36772008-06-09 Jason Rumney <jasonr@gnu.org>
3678
3679 Changes to w32 files related to the move of common menu code
3680 to menu.c on 2008-06-08 by Chong Yidong.
3681
3682 * menu.c [HAVE_NTGUI]: Include w32term.h, move widget related
3683 defs to w32gui.h.
3684 (single_keymap_panes, push_menu_item, push_menu_pane):
3685 Make globally visible.
3686
3687 * w32menu.c (enum button_type, widget_value, local_heap, local_alloc)
3688 (local_free, malloc_widget_value, free_widget_value)
3689 (MENU_ITEMS_ITEM_NAME, MENU_ITEMS_ITEM_ENABLE, MENU_ITEMS_ITEM_VALUE)
3690 (MENU_ITEMS_ITEM_EQUIV_KEY, MENU_ITEMS_ITEM_DEFINITION)
3691 (MENU_ITEMS_ITEM_TYPE, MENU_ITEMS_ITEM_SELECTED, MENU_ITEMS_ITEM_HELP)
3692 (MENU_ITEMS_ITEM_LENGTH, enum menu_item_idx): Remove defs.
3693 (menu_items, menu_items_allocated, menu_items_used)
3694 (menu_items_n_panes, menu_items_submenu_depth): Remove global vars.
3695 (init_menu_items, finish_menu_items, discard_menu_items)
3696 (grow_menu_items, push_submenu_start, push_submenu_end)
3697 (push_left_right_boundary, push_menu_pane, push_menu_item)
3698 (keymap_panes, single_keymap_panes, list_of_panes, list_of_items)
3699 (free_menubar_widget_tree_value, parse_single_submenu)
3700 (update_submenu_strings): Remove functions.
3701 (xmalloc_widget_value): Remove and declare extern.
3702
3703 * makefile.w32-in ($(SRC)/menu.$(O)): New target.
3704 (OBJ1): Build it.
3705
3706 * w32gui.h (widget_value, XtPointer, Boolean, enum button_type)
3707 (local_heap, local_alloc, local_free, malloc_widget_value)
3708 (free_widget_value): Define here.
3709
37102008-06-09 Kenichi Handa <handa@m17n.org>
3711
3712 * font.h (Qascii_0): Extern it.
3713
3714 * font.c (Qascii_0): New variable.
3715 (syms_of_font): DEFSYM it.
3716 (font_open_by_name): If the registry "iso8859-1" fails, try also
3717 "ascii-0".
3718
3719 * ftfont.c (ftfont_spec_pattern): Accept the registry `ascii-0'.
3720
37212008-06-08 Kenichi Handa <handa@m17n.org>
3722
3723 * .gdbinit (xfont): New command.
3724
37252008-06-08 Andreas Schwab <schwab@suse.de>
3726
3727 * menu.c [HAVE_X_WINDOWS]: Include "xterm.h".
3728 * Makefile.in (menu.o): Update dependencies.
3729
3730 * Makefile.in (obj): Always add menu.o.
3731 * emacs.c (main): Always call syms_of_menu.
3732 * keyboard.h: Remove extra #ifdef HAVE_X_WINDOW.
3733
37342008-06-08 Chong Yidong <cyd@stupidchicken.com>
3735
3736 * Makefile.in: Compile menu.c.
3737
3738 * lisp.h: Declare syms_of_menu.
3739
3740 * emacs.c (main): Call syms_of_menu.
3741
3742 * keyboard.h: Relocate platform-independent menu definitions from
3743 xmenu.c.
3744
3745 * menu.c: New file. Relocate platform-independent menu
3746 definitions from xmenu.c. Suggested by Adrian Robert.
3747
3748 * xmenu.c: Remove platform-independent menu definitions.
3749 (menu_items menu_items_inuse, menu_items_allocated)
3750 (menu_items_used, menu_items_n_panes)
3751 (menu_items_submenu_depth): Move to keyboard.h.
3752 (init_menu_items, finish_menu_items, unuse_menu_items)
3753 (discard_menu_items, restore_menu_items, save_menu_items)
3754 (grow_menu_items, push_submenu_start, push_submenu_end)
3755 (push_left_right_boundary, push_menu_pane, push_menu_item)
3756 (keymap_panes, single_keymap_panes, single_menu_item)
3757 (list_of_panes, list_of_items, find_and_call_menu_selection)
3758 (xmalloc_widget_value, free_menubar_widget_value_tree)
3759 (parse_single_submenu, digest_single_submenu)
3760 (update_submenu_strings): Move to menu.c.
3761
37622008-06-07 Stefan Monnier <monnier@iro.umontreal.ca>
3763
3764 * dispnew.c (Flast_nonminibuf_frame): Handle the NULL case.
3765
37662008-06-06 Miles Bader <miles@gnu.org>
3767
3768 * xdisp.c (x_produce_glyphs): Calculate tab width based on current
3769 face, not frame default.
3770
37712008-06-05 Martin Rudalics <rudalics@gmx.at>
3772
3773 * window.c (pop_up_windows, pop_up_frames)
3774 (display_buffer_reuse_frames, Vpop_up_frame_function)
3775 (Vdisplay_buffer_function, Veven_window_heights)
3776 (Vspecial_display_buffer_names, Vspecial_display_regexps)
3777 (Vspecial_display_function, Vsame_window_buffer_names)
3778 (Vsame_window_regexps, split_height_threshold)
3779 (Vsplit_window_preferred_function): Move those vars to window.el.
3780 (display_buffer_1, Fspecial_display_p, Fsame_window_p)
3781 (Fdisplay_buffer): Move those functions to window.el.
3782 (syms_of_window): Remove corresponding declarations.
3783 (display_buffer): New function.
3784 (temp_output_buffer_show, Fother_window_for_scrolling): Use it.
3785 * dispnew.c (Flast_nonminibuf_frame): New function.
3786 * buffer.c (Fpop_to_buffer): Move to window.el.
3787
37882008-06-05 Stefan Monnier <monnier@iro.umontreal.ca>
3789
3790 * data.c (set_internal): Fix up call to let_shadows_buffer_binding_p.
3791
37922008-06-05 Kenichi Handa <handa@m17n.org>
3793
3794 * coding.c (detect_coding): Fix previous change.
3795 (detect_coding_system): Likewise.
3796
37972008-06-05 Stefan Monnier <monnier@iro.umontreal.ca>
3798
3799 * character.h (MAKE_CHAR_MULTIBYTE): Check the arg is a (uni)byte.
3800
3801 * keymap.c (Vminibuffer_local_filename_must_match_map):
3802 Rename from Vminibuffer_local_must_match_filename_map.
3803 (syms_of_keymap):
3804 * minibuf.c (Fcompleting_read): Adjust accordingly.
3805 * commands.h: Rename declaration as well.
3806
38072008-06-05 Kenichi Handa <handa@m17n.org>
3808
3809 * font.c (Ffont_spec): Don't use font_parse_family_registry for
3810 family name.
3811 (Ffont_put): Likewise.
3812
3813 * fontset.c (fontset_find_font): Call font_open_for_lface with the
3814 current font-spec.
3815
3816 * xfont.c (xfont_list): Don't set registry to iso8859-1 even if it
3817 is unspecified.
3818
3819 * xfaces.c (realize_x_face): If the font-related face attributes
3820 are the same as those of default face, realize a new fontset from
3821 default->fontset.
3822 (Fx_family_fonts): Use font_parse_family_registry instead of Ffont_put.
3823
38242008-06-05 Stefan Monnier <monnier@iro.umontreal.ca>
3825
3826 * xdisp.c (move_it_in_display_line_to): Improve the type of its args.
3827 (move_it_in_display_line): New wrapper.
3828
3829 * window.c (window_scroll_pixel_based_preserve_x)
3830 (window_scroll_preserve_hpos, window_scroll_preserve_vpos): New vars.
3831 (window_scroll_pixel_based, window_scroll_line_based):
3832 Use them to preserve column positions.
3833 (syms_of_window): Initialize them.
3834
3835 * indent.c (Fvertical_motion): Extend first arg to allow passing an
3836 (HPOS . VPOS) pair.
3837
3838 * dispextern.h (move_it_in_display_line): Declare.
3839
38402008-06-05 Juanma Barranquero <lekktu@gmail.com>
3841
3842 * window.c (Fwindow_parameter): Return VALUE, not (PARAMETER . VALUE).
3843 (Fwindow_parameters): Return copy of parameter alist. Doc fix.
3844 (Fset_window_parameter): Return VALUE, not parameter alist. Doc fix.
3845
38462008-06-04 Juanma Barranquero <lekktu@gmail.com>
3847
3848 * window.c (Fset_window_parameter): Doc fix.
3849 (Fwindow_parameters, Fwindow_parameter): Remove redundant check.
3850
38512008-06-04 Joakim Verona <joakim@verona.se>
3852
3853 * window.h (struct window): Add new member window_parameters.
3854
3855 * window.c (Fwindow_parameters, Fwindow_parameter)
3856 (Fset_window_parameter): New defuns.
3857 (syms_of_window): Defsubr the new defuns.
3858 (make_window): Initialize window_parameters to nil.
3859
38602008-06-04 John Paul Wallington <jpw@pobox.com>
3861
3862 * eval.c (Fdefmacro): Doc fix.
3863
38642008-06-04 Kenichi Handa <handa@m17n.org>
3865
3866 * coding.c (detect_coding): Fix handling of coding->head_ascii.
3867 Be sure to call setup_coding_system when we find a proper coding system.
3868 (detect_coding_system): Fix handling of coding->head_ascii.
3869
38702008-06-03 Andreas Schwab <schwab@suse.de>
3871
3872 * font.c (font_prop_validate_spacing): Fix last change.
3873
38742008-06-03 Kenichi Handa <handa@m17n.org>
3875
3876 * font.c (font_prop_validate_spacing): Handle uppercase symbols.
3877 (font_parse_fcname): Fix handling of unknown key.
3878
3879 * xfont.c (xfont_list): Try an alias.
3880
3881 * charset.c (char_charset): Return NULL if the arg charset_list is
3882 specified and C doesn't belong to any of them.
3883
38842008-06-02 Chip Coldwell <coldwell@redhat.com>
3885
3886 * font.c (font_pixel_size): Don't take cdr of an integer.
3887
38882008-06-02 Jim Meyering <meyering@redhat.com>
3889
3890 Make "xfree (NULL)" a no-op; remove useless if-before-xfree.
3891 * alloc.c (xfree): Return right away for a NULL arg.
3892 * lread.c (nosuffix): Remove now-useless if-before-xfree tests.
3893 * gtkutil.c (xg_gtk_scroll_destroy): Likewise.
3894 * mac.c (create_apple_event_from_event_ref): Likewise.
3895 (create_apple_event_from_drag_ref, cfstring_create_normalized):
3896 Likewise.
3897 * doprnt.c (doprnt1): Likewise.
3898 * frame.c (frame): Likewise.
3899 * keyboard.c (wipe_kboard): Likewise.
3900 * macterm.c (x_free_frame_resources, xlfdpat_destroy, XFreePixmap)
3901 (init_font_name_table, mac_unload_font, x_delete_display): Likewise.
3902 * term.c (tty_default_color_capabilities, maybe_fatal)
3903 (delete_tty): Likewise.
3904 * w16select.c (string): Likewise.
3905 * w32.c (w32_get_resource, SET_ENV_BUF_SIZE): Likewise.
3906 * w32bdf.c (w32_free_bdf_font): Likewise.
3907 * w32fns.c (w32_unload_font): Likewise.
3908 * w32font.c (w32font_close): Likewise.
3909 * window.c (size_window): Likewise.
3910 * xselect.c (receive_incremental_selection): Likewise.
3911 * xterm.c (x_free_frame_resources, x_delete_display): Likewise.
3912 * mactoolbox.c (create_apple_event_from_drag_ref): Likewise.
3913 * w32.c (stat): Likewise.
3914
3915 Remove useless if-before-free tests.
3916 * editfns.c (Fset_time_zone_rule): Likewise.
3917 * lread.c (nosuffix): Likewise.
3918 * ralloc.c (get_bloc): Likewise.
3919 * regex.c (reg_free): Likewise.
3920 * xftfont.c (xftfont_open, xftfont_close): Likewise.
3921 * xrdb.c (get_user_app, get_environ_db, x_load_resources): Likewise.
3922 * xsmfns.c (smc_save_yourself_CB): Likewise.
3923
39242008-06-02 Kenichi Handa <handa@m17n.org>
3925
3926 * font.c (font_find_for_lface): Handle float font size.
3927 (font_open_for_lface): Likewise.
3928
3929 * xfaces.c (x_supports_face_attributes_p): Check face->font before
3930 comparing the properties.
3931
39322008-06-01 Jason Rumney <jasonr@gnu.org>
3933
3934 * w32font.c (w32_enumfont_pattern_entity): Use requested registry.
3935 Treat iso10646-1 and Windows DEFAULT_CHARSET specially.
3936 Duplicate iso8859-1 fonts as iso10646-1 if no registry specified.
3937 Don't add empty script list.
3938 (w32_registry): Only map DEFAULT_CHARSET to iso10646-1 here.
3939
39402008-06-01 Dan Nicolaescu <dann@ics.uci.edu>
3941
3942 * Makefile.in (dot, dotdot): Remove, update users.
3943 ".." has been used elsewhere in the file for a long time.
3944 (LIBXT_STATIC): Remove conditional based on unused variable.
3945
39462008-06-01 Miles Bader <miles@gnu.org>
3947
3948 * xfaces.c (Vface_remapping_alist): New variable.
3949 (syms_of_xfaces): Initialize it.
3950 (enum named_merge_point_kind): New type.
3951 (struct named_merge_point): Add `named_merge_point_kind' field.
3952 (push_named_merge_point): Make cycle detection respect different
3953 named-merge-point kinds.
3954 (lface_from_face_name_no_resolve): Rename from `lface_from_face_name'.
3955 Remove face-name alias resolution.
3956 (lface_from_face_name): New definition using
3957 `lface_from_face_name_no_resolve'.
3958 (get_lface_attributes_no_remap): Rename from `get_lface_attributes'.
3959 Call lface_from_face_name_no_resolve instead of lface_from_face_name.
3960 (get_lface_attributes): New definition that layers face-remapping on
3961 top of get_lface_attributes_no_remap. New arg `named_merge_points'.
3962 (lookup_basic_face): New function.
3963 (lookup_derived_face): Pass new last arg to `get_lface_attributes'.
3964 (realize_named_face): Call `get_lface_attributes_no_remap' instead of
3965 `get_lface_attributes'.
3966 (face_at_buffer_position): Use `lookup_basic_face' to lookup
3967 DEFAULT_FACE_ID if necessary. When optimizing the default-face case,
3968 return default_face's face-id instead of the constant DEFAULT_FACE_ID.
3969
3970 * xdisp.c (init_iterator): Pass base_face_id through
3971 `lookup_basic_face' when we actually use it as a face-id.
3972 (handle_single_display_prop): Use `lookup_basic_face' to lookup
3973 DEFAULT_FACE_ID.
3974
3975 * fontset.c (Finternal_char_font): Use `lookup_basic_face' to
3976 lookup the initial face-id.
3977
3978 * dispextern.h (lookup_basic_face, Vface_remapping_alist): New decls.
3979
39802008-06-01 Juanma Barranquero <lekktu@gmail.com>
3981
3982 * textprop.c (syms_of_textprop) <text-property-default-nonsticky>:
3983 (Fremove_text_properties): Fix typos in docstrings.
3984
39852008-05-31 Kenichi Handa <handa@m17n.org>
3986
3987 * font.c (font_list_entities): Fix the car part of data to be
3988 stored in the cache.
3989
3990 * ftfont.c (ftfont_font_format): Don't use strcasestr.
3991
39922008-05-30 Stefan Monnier <monnier@iro.umontreal.ca>
3993
3994 * chartab.c (Foptimize_char_table, optimize_sub_char_table):
3995 Add a `test' argument so another predicate than `equal' can be used.
3996 (map_sub_char_table): Use `eq' rather than `equal' to merge ranges.
3997 (map_char_table): Remove unused vars `c' and `i'.
3998 * lisp.h (Foptimize_char_table): Adjust declaration.
3999 * charset.c (Fclear_charset_maps): Adjust call to Foptimize_char_table.
4000
40012008-05-30 Kenichi Handa <handa@m17n.org>
4002
4003 * font.c (Ffont_info): Define only if HAVE_WINDOW_SYSTEM is defined.
4004 (syms_of_font): Defsubr Sfont_info only if HAVE_WINDOW_SYSTEM is
4005 defined.
4006
40072008-05-30 Stefan Monnier <monnier@iro.umontreal.ca>
4008
4009 * data.c (Fmake_variable_buffer_local, Fmake_local_variable)
4010 (Fmake_variable_frame_local): Disallow mixing buffer-local and
4011 frame-local settings for the same variable.
4012
40132008-05-30 Kenichi Handa <handa@m17n.org>
4014
4015 * fontset.c (Ffont_info): Move to font.c.
4016 (syms_of_fontset): Delete defsubr of Sfont_info.
4017
4018 * font.c (font_style_to_value, font_score): Delete casting of the
4019 args to xstcasecmp.
4020 (register_font_driver): Increment num_font_drivers only when
4021 registering the driver globally.
4022 (Ffont_info): Move from fontset.c. Handle a font object too.
4023 (syms_of_font): Defsubr Sfont_info.
4024
40252008-05-29 Kenichi Handa <handa@m17n.org>
4026
4027 * coding.h (enum define_coding_utf8_arg_index): New enum.
4028 (enum coding_attr_index): Change coding_attr_utf_16_bom to
4029 coding_attr_utf_bom.
4030 (enum utf_bom_type): Rename from utf_16_bom_type.
4031 (struct utf_16_spec): Adjust for the above change.
4032 (struct coding_system): Add utf_8_bom in `spec' union.
4033
4034 * coding.c (CODING_UTF_8_BOM): New macro.
4035 (enum coding_category): Delete coding_category_utf_8, add
4036 coding_category_utf_8_auto, coding_category_utf_8_nosig, and
4037 coding_category_utf_8_sig.
4038 (CATEGORY_MASK_UTF_8): Delete it.
4039 (CATEGORY_MASK_UTF_8_AUTO, CATEGORY_MASK_UTF_8_NOSIG)
4040 (CATEGORY_MASK_UTF_8_SIG): New macros.
4041 (CATEGORY_MASK_ANY): Delete CATEGORY_MASK_UTF_8, add
4042 CATEGORY_MASK_UTF_8_AUTO, CATEGORY_MASK_UTF_8_NOSIG, and
4043 CATEGORY_MASK_UTF_8_SIG.
4044 (CATEGORY_MASK_UTF_8): New macro.
4045 (UTF_BOM, UTF_8_BOM_1, UTF_8_BOM_2, UTF_8_BOM_3): New macros.
4046 (detect_coding_utf_8): Check BOM.
4047 (decode_coding_utf_8, encode_coding_utf_8): Handle BOM.
4048 (decode_coding_utf_16): Adjust for the change of enum utf_bom_type.
4049 (encode_coding_utf_16): Likewise.
4050 (setup_coding_system): Likewise. Set CODING_UTF_8_BOM (coding).
4051 (detect_coding, detect_coding_system): Handle utf-8-auto.
4052 (Fdefine_coding_system_internal): Handle `bom' property for utf-8.
4053 (syms_of_coding): Fix setting up of Vcoding_category_table.
4054
40552008-05-29 Stefan Monnier <monnier@iro.umontreal.ca>
4056
4057 * process.c (Faccept_process_output): If `millisec' is non-nil,
4058 `seconds' default to 0.
4059 (wait_reading_process_output): Also return non-nil if we read output
4060 from a non-running process.
4061
40622008-05-29 Jason Rumney <jasonr@gnu.org>
4063
4064 * w32font.c (w32font_open_internal): Prefer truetype fonts unless
4065 `raster' specified.
4066 (add_font_entity_to_list): Allow non-opentype truetype fonts back
4067 in the uniscribe backend, but disallow any font that has no
4068 unicode subrange support.
4069
40702008-05-29 Juanma Barranquero <lekktu@gmail.com>
4071
4072 * xfaces.c (Fx_list_fonts, Finternal_copy_lisp_face):
4073 Fix typos in docstrings.
4074
40752008-05-29 Kenichi Handa <handa@m17n.org>
4076
4077 * xfaces.c (Fx_list_fonts): Make it return a list of font names.
4078 (Fx_family_fonts): Set frame correctly.
4079
40802008-05-28 Jason Rumney <jasonr@gnu.org>
4081
4082 * w32term.c (x_draw_glyph_string): Use clipmask if specified.
4083
40842008-05-28 Stefan Monnier <monnier@iro.umontreal.ca>
4085
4086 * fileio.c (Fwrite_region): Delay the defaulting to beg&z to after
4087 calling build_annotations.
4088
40892008-05-28 Juanma Barranquero <lekktu@gmail.com>
4090
4091 * coding.c (Fdecode_coding_region, Fencode_coding_region)
4092 (Fencode_coding_string):
4093 (syms_of_coding) <coding-system-for-read, coding-system-for-write>:
4094 <latin-extra-code-table>: Fix typos in docstrings.
4095 (syms_of_coding) <coding-system-alist>: Doc fix.
4096 (syms_of_coding) <translation-table-for-input>: Reflow docstring.
4097
40982008-05-28 Kenichi Handa <handa@m17n.org>
4099
4100 * fontset.c (Ffont_info): Don't call font_close_object.
4101
4102 * font.c (font_parse_family_registry): Use Ffont_put to validate
4103 foundry and family.
4104 (font_delete_unmatched): Don't check spacing.
4105 (font_list_entities): Add spacing to the spec to list fonts.
4106
4107 * ftfont.c (ftfont_spec_pattern): Don't set FC_SPACING to pattern.
4108 (ftfont_list): Check spacing here. Don't include FC_CHARSET in objset.
4109
4110 * coding.c (encode_coding_raw_text): Fix previous change.
4111 (encode_coding_object): When the dst_object is a buffer and is
4112 different from src_object, move gap to PT.
4113
41142008-05-27 Chong Yidong <cyd@stupidchicken.com>
4115
4116 * xterm.c (x_draw_glyph_string): If a clipmask is specified, use it.
4117
41182008-05-27 Stefan Monnier <monnier@iro.umontreal.ca>
4119
4120 * coding.c (encode_coding_raw_text): Set coding->produced_char for
4121 all branches. Compute it differently.
4122
4123 * xdisp.c [!HAVE_WINDOW_SYSTEM]: Include font.h for --without-x.
4124
41252008-05-27 Juanma Barranquero <lekktu@gmail.com>
4126
4127 * w32font.c (compute_metrics): Rewrite an "else { if () ... else ... }"
4128 into "else if () ... else ...".
4129
41302008-05-27 Jason Rumney <jasonr@gnu.org>
4131
4132 * w32font.c (w32font_open_internal): Determine if glyph indices
4133 are likely to work here.
4134
41352008-05-27 Chong Yidong <cyd@stupidchicken.com>
4136
4137 * xdisp.c (draw_glyphs): If mouse-highlighting is on, attempt to
4138 draw overlap glyphs with appropriate highlighting.
4139
41402008-05-27 Kenichi Handa <handa@m17n.org>
4141
4142 * xfont.c (xfont_open): Fix calculation of font->average_width.
4143
41442008-05-27 Stefan Monnier <monnier@iro.umontreal.ca>
4145
4146 * casefiddle.c (casify_object): Try to guess better whether the
4147 argument is a byte or a char.
4148
41492008-05-26 Andreas Schwab <schwab@suse.de>
4150
4151 * xselect.c (x_reply_selection_request): Properly handle format == 32.
4152 Always send multiples of format size.
4153
4154 * xterm.c (x_set_frame_alpha): Fix type mismatch.
4155
41562008-05-26 Jason Rumney <jasonr@gnu.org>
4157
4158 * w32font.c (w32font_text_extents): Zero whole metrics struct first.
4159 (compute_metrics): Don't set failure if we just cleared the cache.
4160 (w32_weight_table): Remove unused variable.
4161 (w32_enumfont_pattern_entity): Use FONT_SPACING_CHARCELL for
4162 backwards compatibility.
4163
41642008-05-25 Kenichi Handa <handa@m17n.org>
4165
4166 * w32term.c (x_draw_glyph_string):
4167 * xterm.c (x_draw_glyph_string): Fix calculation of underline position.
4168
4169 * xfaces.c: Delete unused function prototypes.
4170 (xstrlwr, font_frame): Delete them.
4171 (clear_face_cache): Delete unused variable.
4172
4173 * xftfont.c (xftfont_open): Delete unused variable.
4174 If underline_thickness is not 1, adjust underline_position.
4175
4176 * ftxfont.c (ftxfont_open): Delete unused variable.
4177
4178 * fontset.c (face_for_char): Optimize for the case of no charset
4179 property.
4180
4181 * font.c (LGSTRING_HEADER_SIZE, LGSTRING_GLYPH_SIZE)
4182 (check_gstring, check_otf_features, otf_list, otf_tag_symbol)
4183 (otf_open, font_otf_capability, generate_otf_features)
4184 (font_otf_DeviceTable, font_otf_ValueRecord, font_otf_Anchor):
4185 Comment out by surrounding "#if 0" and "#endif" for the moment.
4186 (Ffont_drive_otf, Ffont_otf_alternates): Likewise.
4187 (syms_of_font): Codes for accessing above commented out.
4188
41892008-05-24 Eli Zaretskii <eliz@gnu.org>
4190
4191 * w32proc.c: Include dispextern.h.
4192
4193 * w32.c: Include dispextern.h.
4194
41952008-05-23 Juanma Barranquero <lekktu@gmail.com>
4196
4197 * charset.c (Fencode_char, Fsplit_char): Doc fixes.
4198 (Fget_unused_iso_final_char, Fdecode_char, Fiso_charset):
4199 Fix typos in docstrings.
4200
42012008-05-23 Jason Rumney <jasonr@gnu.org>
4202
4203 * xsmfns.c: Remove includes that are already included by config.h.
4204
42052008-05-23 Kenichi Handa <handa@m17n.org>
4206
4207 * charset.c (Qemacs, charset_emacs): New variables.
4208 (char_charset): Fix for non-Unicode characters.
4209 (syms_of_charset): Define charset_emacs.
4210
4211 * w32term.c (x_draw_glyph_string): Be sure to update
4212 s->underline_thickness and s->underline_position. Be sure to draw
4213 underline within the current line area.
4214
4215 * xterm.c (x_draw_glyph_string): Be sure to update
4216 s->underline_thickness and s->underline_position. Be sure to draw
4217 underline within the current line area.
4218
4219 * fontset.c: Delete unused variables and add casting for char *
4220 throughout the file.
4221 (fontset_font): Try the fallback fonts of the current fontset
4222 before consulting the default fontset.
4223
4224 * ftfont.c (ftfont_spec_pattern): Free charset if necessary.
4225
4226 * xfont.c (xfont_list_pattern): Free names returned from XListFonts.
4227
42282008-05-22 Jason Rumney <jasonr@gnu.org>
4229
4230 * font.c: Don't include strings.h.
4231
4232 * dispextern.h, xfaces.c (xstrcasecmp): Rename from xstricmp.
4233
4234 * dosfns.c, fileio.c, font.c, fontset.c, image.c, macfns.c:
4235 * macterm.c, process.c, w32.c, w32fns.c, w32proc.c, xfaces.c:
4236 * xfns.c, xfont.c: All callers of stricmp and strcasecmp changed
4237 to call xstrcasecmp.
4238
4239 * xfont.c (xfont_list_pattern, compare_font_names): Use xstrcasecmp.
4240
4241 * fontset.c (fs_query_fontset): Use xstrcasecmp.
4242
4243 * font.c (font_style_to_value, font_score): Use xstrcasecmp.
4244
4245 * dosfns.c (msdos_stdcolor_idx): Use xstrcasecmp.
4246
42472008-05-22 Kenichi Handa <handa@m17n.org>
4248
4249 * puresize.h (BASE_PURESIZE): Increase to 1220000.
4250
4251 * font.c (font_prop_validate_style): Adjust for the format
4252 change of font_style_table.
4253
4254 * w32font.c (w32font_open_internal): Call Ffont_xlfd_name with
4255 two args.
4256
4257 * xfaces.c (x_update_menu_appearance): Call Ffont_xlfd_name with
4258 two args.
4259
42602008-05-22 Stefan Monnier <monnier@iro.umontreal.ca>
4261
4262 * minibuf.c (keys_of_minibuf): Delete.
4263 * lisp.h (keys_of_minibuf): Delete.
4264 * emacs.c (main): Don't call keys_of_minibuf.
4265
42662008-05-22 Kenichi Handa <handa@m17n.org>
4267
4268 * ftfont.c (ftfont_resolve_generic_family): Rename from
4269 ftfont_list_generic_family. Return a single family for each
4270 generic family.
4271 (ftfont_spec_pattern): Add FC_FAMILY to pattern.
4272 (ftfont_list): Adjust for the change of ftfont_resolve_generic_family.
4273 Call font_add_log.
4274 (ftfont_match): Call font_add_log.
4275
4276 * font.h (Ffont_xlfd_name): EXFUN adjusted.
4277 (FONT_DEBUG): Define it.
4278 (font_add_log): Extern it.
4279 (font_assert): Rename from xassert.
4280
4281 * xfont.c (xfont_get_pcm): Change xassert to font_assert.
4282 (xfont_list_family): Call font_add_log.
4283 (xfont_match): Likewise.
4284 (memq_no_quit): Delete.
4285
4286 * fontset.c (fontset_from_font, Ffontset_info): Add the 2nd arg in
4287 call of Ffont_xlfd_name.
4288
4289 * xfaces.c (struct table_entry, slant_table, weight_table)
4290 (swidth_table): Move to font.c.
4291
4292 * font.c: Checking of FONT_DEBUG is moved to font.h. All calls of
4293 xassert are changed to font_assert. Delete many unused variables.
4294 (Vfont_weight_table, Vfont_slant_table, Vfont_width_table):
4295 New variables.
4296 (struct table_entry): Move from xfaces.c and modified.
4297 (weight_table, slant_table, width_table): Move from xfaces.c and
4298 contents adjusted for the change of struct table_entry.
4299 (font_style_to_value, font_style_symbolic): Adjust for the
4300 format change of font_style_table.
4301 (font_parse_family_registry): Don't overwrite existing foundry and
4302 family of font_spec.
4303 (font_score): Fix calculation of diff for sizes.
4304 (font_sort_entites): Call font_add_log.
4305 (font_delete_unmatched): Return a newly created list.
4306 (font_list_entities): Fix previous change. Call font_add_log.
4307 (font_matching_entity, font_open_entity, font_close_entity):
4308 Call font_add_log.
4309 (Ffont_xlfd_name): New arg FOLD-WILDCARDS.
4310 (Finternal_set_font_style_table): Delete.
4311 (BUILD_STYLE_TABLE): New macro.
4312 (build_style_table): New function.
4313 (Vfont_log, font_log_env_checked): New variables.
4314 (font_add_log): New function.
4315 (syms_of_font): Delete defsubr Sinternal_set_font_style_table.
4316 Declare Lisp variables "font-weight-table", "font-slant-table",
4317 "font-width-table", and "font-log". Initialize font_style_table.
4318
43192008-05-21 Dan Nicolaescu <dann@ics.uci.edu>
4320
4321 * xterm.c (x_set_frame_alpha): Move declarations before statements.
4322
43232008-05-21 Seiji Zenitani <zenitani@mac.com>
4324 Ryo Yoshitake <ryo@shiftmode.net>
4325
4326 * frame.c (Qalpha): Add a new frame parameter `alpha'.
4327 (Vframe_alpha_lower_limit): New variable.
4328 (x_set_alpha): New function.
4329
4330 * frame.h (Qalpha, Vframe_parameter_lower_limit): Export them.
4331
4332 * xfns.c (x-create-frame, Qalpha):
4333 Initialize the frame parameter `alpha'.
4334 * xterm.c (OPAQUE, OPACITY): New.
4335 (x_set_frame_alpha): New function.
4336 (frame_highlight, frame_unhighlight): Call x_set_frame_alpha.
4337
4338 * macfns.c (mac_frame_parm_handlers): A null handler for x_set_alpha.
4339 * w32fns.c (w32_frame_parm_handlers): Likewise.
4340
43412008-05-20 Jason Rumney <jasonr@gnu.org>
4342
4343 * w32font.c (add_font_entity_to_list): Don't add non-opentype
4344 truetype fonts to opentype list.
4345
43462008-05-20 Juanma Barranquero <lekktu@gmail.com>
4347
4348 * fontset.c (Ffontset_info): Doc fix.
4349 (syms_of_fontset) <font-encoding-charset-alist, use-default-ascent>:
4350 <ignore-relative-composition>: Fix typos in docstrings.
4351
4352 * font.c (syms-of-font) <font-encoding-alist>:
4353 (Ffontp, Ffont_make_gstring): Fix typos in docstrings.
4354 (Flist_fonts, Ffont_family_list, Ffont_fill_gstring, Fquery_font)
4355 (Ffont_otf_alternates): Doc fixes.
4356
43572008-05-20 Kenichi Handa <handa@m17n.org>
4358
4359 * Makefile.in (FONTSRC): Delete it. Change all $(FONTSRC) to
4360 font.h through out the file.
4361 (FONT_DRIVERS): Rename from FONTOBJ.
4362 (obj): Change $(FONTOBJ) to $(FONT_DRIVERS). Add font.o.
4363 (SOME_MACHINE_OBJECTS): Change $(FONTOBJ) to $(FONT_DRIVERS).
4364
4365 * emacs.c (main): Call syms_of_font unconditionally.
4366
4367 * font.h (find_font_encoding): Extern it.
4368
4369 * font.c (Vfont_encoding_alist, find_font_encoding): Move from
4370 fontset.c.
4371 (font_pixel_size)[! HAVE_WINDOW_SYSTEM]: Return 1.
4372 (font_open_entity): Update FRAME_X_DISPLAY_INFO (f)->n_fonts,
4373 FRAME_SMALLEST_CHAR_WIDTH (f), and FRAME_SMALLEST_FONT_HEIGHT (f)
4374 only when HAVE_WINDOW_SYSTEM is defined.
4375 (font_close_object): Update FRAME_X_DISPLAY_INFO (f)->n_fonts only
4376 when HAVE_WINDOW_SYSTEM is defined.
4377
4378 * fontset.c (Vfont_encoding_alist, find_font_encoding): Move to font.c.
4379 (syms_of_fontset): Move declaration of font-encoding-alist to font.c.
4380
4381 * xfaces.c: Include font.h unconditionally.
4382 (merge_face_ref, merge_face_vectors)
4383 (Finternal_set_lisp_face_attribute): Cancel the previous change.
4384
43852008-05-20 Stefan Monnier <monnier@iro.umontreal.ca>
4386
4387 * xdisp.c (select_frame_for_redisplay): Adjust for last change to
4388 indirect_variable.
4389 * eval.c (lisp_indirect_variable): New fun.
4390 (Fuser_variable_p): Use it.
4391
43922008-05-19 Stefan Monnier <monnier@iro.umontreal.ca>
4393
4394 * lisp.h (indirect_variable):
4395 * data.c (indirect_variable, let_shadows_buffer_binding_p):
4396 Use Lisp_Symbol pointers rather than Lisp_Object.
4397 Adjust callers.
4398 * buffer.c (buffer_slot_type_mismatch): Use wrong-type-argument.
4399 To this end, change calling-convention.
4400
4401 * minibuf.c (Finternal_complete_buffer): Only strip out hidden buffers
4402 if some non-hidden buffers are selected by string&pred.
4403
44042008-05-19 Chong Yidong <cyd@stupidchicken.com>
4405
4406 * process.c (wait_reading_process_output): Always check status
4407 when in batch mode.
4408
44092008-05-19 Kenichi Handa <handa@m17n.org>
4410
4411 * font.c (font_list_entities): Fix handling of cache.
4412 (font_matching_entity): Likewise.
4413
4414 * ftfont.c (cs_iso8859_1): Delete.
4415 (ft_face_cache): New variable.
4416 (struct ftfont_info): New member fc_charset_idx.
4417 (ftfont_build_basic_charsets): Delete.
4418 (fc_charset_table): New variable.
4419 (ftfont_pattern_entity): New arg fc_charset_idx. Store (FILENAME
4420 . FC_CHARSET_IDX) as :font-entity property in the font entity.
4421 Callers changed.
4422 (ftfont_lookup_cache, ftfont_get_charset): New functions.
4423 (ftfont_spec_pattern): New argument fc_charset_idx.
4424 Check registry more rigidly. Change callers.
4425 (ftfont_open, ftfont_close, ftfont_has_char): Adjust for the
4426 change of :font-entity property of the font.
4427
4428 * xftfont.c (xftfont_open): Adjust for the change of :font-entity
4429 property of the font.
4430
44312008-05-18 Juanma Barranquero <lekktu@gmail.com>
4432
4433 * coding.c (Fcoding_system_p): Rename argument to match docstring.
4434 (Funencodable_char_position, Fcheck_coding_systems_region)
4435 (Fdecode_coding_string, Fencode_coding_string): Fix typos in docstrings.
4436 (Fdetect_coding_region, Fdetect_coding_string, Fencode_coding_region)
4437 (Ffind_operation_coding_system, Fset_coding_system_priority)
4438 (Fcoding_system_eol_type): Doc fixes.
4439
44402008-05-17 Glenn Morris <rgm@gnu.org>
4441
4442 * sysdep.c (child_setup_tty): Handle systems with NLDLY, without FFDLY.
4443
44442008-05-16 Eli Zaretskii <eliz@gnu.org>
4445
4446 * dired.c (Ffile_attributes): Shut up GCC warnings about st_uid
4447 and st_gid.
4448
4449 * frame.c (Fdelete_frame): Don't call font_update_drivers if
4450 HAVE_WINDOW_SYSTEM is not defined.
4451
4452 * xfaces.c (merge_face_ref, merge_face_vectors)
4453 (Finternal_set_lisp_face_attribute): Use FONT_*_INDEX only when
4454 HAVE_WINDOW_SYSTEM is defined.
4455 (Fface_font): Fix non-HAVE_WINDOW_SYSTEM case.
4456
44572008-05-16 Stefan Monnier <monnier@iro.umontreal.ca>
4458
4459 * keyboard.c (parse_menu_item): Do not cache key shortcut any more.
4460
44612008-05-15 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
4462
4463 * macterm.c (x_draw_relief_rect): Remove unused variable `dpy'.
4464
44652008-05-15 Kenichi Handa <handa@m17n.org>
4466
4467 * font.c (font_find_for_lface): Reflect LFACE_FONT in the font
4468 preference.
4469
44702008-05-15 Glenn Morris <rgm@gnu.org>
4471
4472 * emacs.c (USAGE1, standard_args): Remove -disable-font-backend.
4473
44742008-05-15 Chong Yidong <cyd@stupidchicken.com>
4475
4476 * fns.c (init_fns): Don't initialize weak_hash_tables here.
4477 (init_weak_hash_tables): New fun. Initialize weak_hash_tables.
4478
4479 * alloc.c (init_alloc_once): Call init_weak_hash_tables.
4480
44812008-05-15 Kenichi Handa <handa@m17n.org>
4482
4483 * ftfont.c (ftfont_list): Downcase family name to check generic
4484 families.
4485
4486 * xfaces.c (Finternal_set_lisp_face_attribute): Be sure to make a
4487 font-spec for QCfont value.
4488
4489 * fontset.c (Fnew_fontset): Call font_unparse_xlfd with 256-byte
4490 buffer. Check the return value of it.
4491
44922008-05-14 Jason Rumney <jasonr@gnu.org>
4493
4494 * w32term.c (w32_get_glyph_overhangs): Remove.
4495 (w32_redisplay_interface): Use x_get_glyph_overhangs instead.
4496
44972008-05-14 Kenichi Handa <handa@m17n.org>
4498
4499 * font.c (font_prop_validate): Make nil a valid value.
4500 (font_clear_cache): Check if the cached vector of entities is nil
4501 or not.
4502
45032008-05-14 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
4504
4505 * emacs.c (main_thread): Conditionalize on
4506 FORWARD_SIGNAL_TO_MAIN_THREAD instead of HAVE_GTK_AND_PTHREAD.
4507 (main) [FORWARD_SIGNAL_TO_MAIN_THREAD]: Initialize it.
4508
4509 * syssignal.h (FORWARD_SIGNAL_TO_MAIN_THREAD): New define.
4510 (main_thread, SIGNAL_THREAD_CHECK): Conditionalize on
4511 FORWARD_SIGNAL_TO_MAIN_THREAD instead of HAVE_GTK_AND_PTHREAD.
4512
45132008-05-14 Kenichi Handa <handa@m17n.org>
4514
4515 * coding.c (detect_coding_iso_2022): Ignore a coding category that
4516 has no corresponding coding system.
4517
45182008-05-14 Jason Rumney <jasonr@gnu.org>
4519
4520 * font.h (struct font) [WINDOWSNT]: Remove codepage member.
4521
4522 * w32font.h (w32font_open_internal): Update declaration.
4523
4524 * w32font.c (w32font_open_internal): Change last argument from
4525 w32font_info struct to font object. Fill in font object from
4526 font_entity. Get Outline metrics if possible. Use them to
4527 calculate underline position and thickness. Use xlfd name as name
4528 property. Don't set codepage.
4529 (w32font_open): Pass font_object to w32font_open_internal. Don't
4530 update dpyinfo->smallest_font_height and dpyinfo->smallest_char_width.
4531 (w32font_draw): Use s->font.
4532 (clear_cached_metrics): Don't clear non-existent blocks.
4533
4534 * w32term.c (w32_compute_glyph_string_overhangs): Don't compute if
4535 font was not found.
4536 (x_draw_glyph_string): Use underline position and thickness from font.
4537
4538 * w32uniscribe.c (uniscribe_open): Pass font_object to
4539 w32font_open_internal.
4540
45412008-05-14 Kenichi Handa <handa@m17n.org>
4542
4543 These changes are to delete all legacy font-handling codes, and
4544 make Emacs use only font-backends.
4545
4546 * Makefile.in: Delete USE_FONT_BACKEND conditionals.
4547 (frame.o, image.o, print.o): Depend on $(FONTSRC).
4548
4549 * makefile.w32-in (WIN32OBJ): Add w32reg.$(O), remove w32bdf.$(O).
4550
4551 * charset.h (Vcharset_non_preferred_head)
4552 (Vcurrent_iso639_language): Extern them.
4553
4554 * charset.c (Vcharset_non_preferred_head): New variable.
4555 (Vcurrent_iso639_language): New variable.
4556 (syms_of_charset): Declare it as a Lisp variable.
4557 (char_charset): Don't check non preferred charsets. As a last
4558 resort, return charset_unicode.
4559 (Fset_charset_priority): Update Vcharset_non_preferred_head.
4560
4561 * composite.c: Throughout the file, delete all USE_FONT_BACKEND
4562 conditionals. Don't check enable_font_backend. Delete all codes
4563 used only when USE_FONT_BACKEND is not defined.
4564
4565 * dispextern.h (struct glyph_string): Change type of `font' to
4566 `struct font *'.
4567 (struct glyph_string): New member underline_position and
4568 underline_thickness.
4569 (enum lface_attribute_index): Remove LFACE_AVGWIDTH_INDEX.
4570 (struct face): Change type of `font' to `struct font *'. Remove
4571 members `font_name', `font_info_id'.
4572 (per_char_metric, encode_char): Delete externs.
4573 (calc_pixel_width_or_height): Adjust the prototype.
4574
4575 * emacs.c (enable_font_backend): Delete extern.
4576 (main): Don't set enable_font_backend. Don't check the command
4577 line argument "-disable-font-backend".
4578
4579 * font.h (Qfont_spec, Qfont_entity, Qfont_object): Extern them.
4580 (enum font_property_index): New members FONT_DPI_INDEX,
4581 FONT_SPACING_INDEX, FONT_AVGWIDTH_INDEX, FONT_NAME_INDEX,
4582 FONT_FULLNAME_INDEX, FONT_FILE_INDEX, FONT_FORMAT_INDEX,
4583 FONT_OBJECT_MAX. Delete FONT_FRAME_INDEX.
4584 (FONT_WEIGHT_NUMERIC, FONT_SLANT_NUMERIC, FONT_WIDTH_NUMERIC)
4585 (FONT_WEIGHT_SYMBOLIC, FONT_SLANT_SYMBOLIC, FONT_WIDTH_SYMBOLIC)
4586 (FONT_WEIGHT_FOR_FACE, FONT_SLANT_FOR_FACE, FONT_WIDTH_FOR_FACE)
4587 (FONT_WEIGHT_NAME_NUMERIC, FONT_SLANT_NAME_NUMERIC)
4588 (FONT_WIDTH_NAME_NUMERIC, FONT_SET_STYLE): New macros.
4589 (struct font_spec, struct font_entity): New structs.
4590 (FONT_ENCODING_NOT_DECIDED): Moved from fontset.h.
4591 (struct font): Many members from old "struct font_info" moved to
4592 here. Members font and entity deleted.
4593 (FONT_SPEC_P, FONT_ENTITY_P, FONT_OBJECT_P, FONTP): Modified for
4594 the new font-related objects.
4595 (CHECK_FONT_SPEC, CHECK_FONT_ENTITY, CHECK_FONT_OBJECT)
4596 (CHECK_FONT_GET_OBJECT): Likewise.
4597 (XFONT_SPEC, XFONT_ENTITY, XFONT_OBJECT, XSETFONT): New macros.
4598 (PT_PER_INCH, POINT_TO_PIXEL, PIXEL_TO_POINT): Moved from font.h.
4599 (struct font_driver): New members case_sensitive anc check. Type
4600 of the member list and open changed.
4601 (enable_font_backend, font_symbolic_weight, font_symbolic_slant)
4602 (font_symbolic_width, font_find_object, font_get_spec)
4603 (font_set_lface_from_name): Delete extern.
4604 (Fcopy_font_spec, Fmerge_font_spec, Ffont_family_list): New EXFUNs.
4605
4606 * font.c: Include <strings.h>.
4607 (enable_font_backend): Delete it.
4608 (Qfont_spec, Qfont_entity, Qfont_object): New variables.
4609 (CHECK_VALIDATE_FONT_SPEC): Delete it.
4610 (PT_PER_INCH, POINT_TO_PIXEL, PIXEL_TO_POINT): Moved to font.h.
4611 (null_string): Delete it.
4612 (null_vector): Make it static.
4613 (font_family_alist): Delete it.
4614 (Qnormal): Extern it.
4615 (QCextra, QClanguage): Delete it.
4616 (QClang, QCavgwidth, QCfont_entity, QCfc_unknown_spec): New variables.
4617 (font_make_spec, font_make_entity, font_make_object)
4618 (font_intern_prop): Renamed from intern_downcase. Don't downcase
4619 the string. Callers changed.
4620 (font_pixel_size): Adjusted for the format change of font-related
4621 objects.
4622 (prop_name_to_numeric, prop_numeric_to_name): Delete them.
4623 (font_style_to_value, font_style_symbolic): New function.
4624 (build_font_family_alist): Delete it.
4625 (font_registry_charsets): Use Fassoc_string instead of
4626 assq_no_quit.
4627 (font_prop_validate_symbol): Don't return null_string.
4628 (font_prop_validate_style): Adjusted for the change of
4629 style-related values in a font vector.
4630 (font_property_table): Delete entries for QClanguage and
4631 QCantialias, add entries for QCavgwidth.
4632 (get_font_prop_index): Delete the 2nd argument FROM.
4633 (font_prop_validate): Arguments changed.
4634 (font_put_extra): Adjusted for the change of font-related objects.
4635 (font_expand_wildcards, font_parse_xlfd, font_unparse_xlfd)
4636 (font_parse_fcname, font_unparse_fcname)
4637 (font_prepare_composition): Likewise.
4638 (font_parse_family_registry): Renamed from font_merge_old_spec.
4639 (otf_open): Delete the 1st arg entity.
4640 (font_otf_capability): Adjusted for the above change.
4641 (font_score): New arg alternate_families. Adjusted for the change
4642 of font-related objects.
4643 (font_sort_entites): New arg best_only.
4644 (font_symbolic_weight, font_symbolic_slant, font_symbolic_width):
4645 Delete them.
4646 (font_match_p): Check alternate families.
4647 (font_find_object): Delete it.
4648 (font_check_object): New function.
4649 (font_clear_cache): Adjusted for the change of font-related objects.
4650 (font_delete_unmatched): New arg.
4651 (font_list_entities): Call font_driver->list with a spec that
4652 doesn't specify style-related properties.
4653 (font_matching_entity): Arguments changed. Caller changed.
4654 (font_open_entity): Adjusted for the change of font-related objects.
4655 (font_close_object, font_has_char, font_encode_char)
4656 (font_get_name, font_get_spec): Likewise.
4657 (font_spec_from_name, font_clear_prop, font_update_lface):
4658 New functions.
4659 (font_find_for_lface, font_open_for_lface, font_load_for_lface)
4660 (font_prepare_for_face, font_done_for_face, font_open_by_name)
4661 (font_at): Adjusted for the change of font-related objects.
4662 (font_range): New function.
4663 (Ffontp, Ffont_spec, Ffont_get, Ffont_put, Flist_fonts)
4664 (Ffont_xlfd_name): Adjusted for the change of font-related objects.
4665 (Fcopy_font_spec, Fmerge_font_spec): New function.
4666 (Ffont_family_list): Renamed from list-families.
4667 (Finternal_set_font_style_table): Arguments changed.
4668 (Ffont_fill_gstring, Ffont_shape_text, Fopen_font)
4669 (Ffont_drive_otf, Fquery_font, Ffont_match_p): Adjusted for the
4670 change of font-related objects.
4671 (syms_of_font): Delete "ifdef USE_FONT_BACKEND". DEFSYM new symbols.
4672
4673 * fontset.h (struct font_info): Delete it. Most members go to
4674 struct font.
4675 (FONT_ENCODING_NOT_DECIDED): Moved to font.h.
4676 (enum FONT_SPEC_INDEX): Delete it.
4677 (font_info, list_fonts_func, load_font_func, query_font_func)
4678 (set_frame_fontset_func, find_ccl_program_func)
4679 (get_font_repertory_func, new_fontset_from_font_name): Delete
4680 externs.
4681 (fontset_from_font_name): Extern it.
4682 (FS_LOAD_FONT, FONT_INFO_ID, FONT_INFO_FROM_ID)
4683 (FONT_INFO_FROM_FACE): Deleted.
4684 (face_for_font): Adjust prototype.
4685
4686 * fontset.c: Throughout the file, delete all USE_FONT_BACKEND
4687 conditionals. Don't check enable_font_backend. Delete all codes
4688 used only when USE_FONT_BACKEND is not defined.
4689 (get_font_info_func, list_font_func, load_font_func)
4690 (query_font_func, set_frame_fontset_func, find_ccl_program_func)
4691 (get_font_repertory_func): Delete them.
4692 (FONTSET_SPEC, FONT_DEF_NEW, FONT_DEF_SPEC, FONT_DEF_ENCODING)
4693 (FONT_DEF_REPERTORY, RFONT_DEF_FACE, RFONT_DEF_SET_FACE)
4694 (RFONT_DEF_FONT_DEF, RFONT_DEF_SPEC, RFONT_DEF_REPERTORY)
4695 (RFONT_DEF_OBJECT, RFONT_DEF_SET_OBJECT, RFONT_DEF_SCORE)
4696 (RFONT_DEF_SET_SCORE, RFONT_DEF_NEW): New macros.
4697 (fontset_compare_rfontdef): New function.
4698 (reorder_font_vector): Remove the argument CHARSET-ID. Sort
4699 rfont-defs by qsort. Adjusted for the change of font-group vector.
4700 (load_font_get_repertory): Deleted.
4701 (fontset_find_font): Use new macros to ref/set elements of
4702 font-def and rfont-def.
4703 (fontset_font): Fix the timing of remembering that no font for C.
4704 (free_face_fontset): Do nothing if the face has no fontset.
4705 (face_suitable_for_char_p): Use new macros to ref/set elements of
4706 rfont-def.
4707 (face_for_char): Likewise. Call face_for_char with font_object.
4708 (fs_load_font): Delete. Delete #pragma surrounding it.
4709 (fs_query_fontset): Use strcasecmp instead of strcmp.
4710 (generate_ascii_font_name): Adjusted for the format change of
4711 font-spec.
4712 (Fset_fontset_font): Likewise. Use new macros to set elements of
4713 font-def.
4714 (Fnew_fontset): Use font_unparse_xlfd to generate
4715 FONTSET_ASCII (fontset).
4716 (new_fontset_from_font_name): Deleted.
4717 (fontset_from_font): Renamed from new_fontset_from_font. Check if
4718 a fontset is already created for the font. FIx updating of
4719 Vfontset_alias_alist.
4720 (fontset_ascii_font): Deleted.
4721 (Ffont_info): Adjusted for the format change of font-spec.
4722 (Finternal_char_font): Likewise.
4723 (Ffontset_info): Likewise.
4724 (syms_of_fontset): Don't check load_font_func.
4725
4726 * fns.c (internal_equal): Handle PREV_FONT.
4727
4728 * frame.h: Delete USE_FONT_BACKEND conditional.
4729
4730 * frame.c: Throughout the file, delete all USE_FONT_BACKEND
4731 conditionals. Don't check enable_font_backend. Delete all codes
4732 used only when USE_FONT_BACKEND is not defined.
4733 (x_set_font): Call x_new_font, not x_new_fontset2.
4734 (x_set_font_backend): Use FRAME_FONT macro to check if a font is
4735 already set for the frame.
4736
4737 * ftfont.c (ftfont_pattern_entity): Argument FRAME removed. Make
4738 a font-entity by font_make_entity. Use font_intern_prop instead
4739 of intern_downcase. Use FONT_SET_STYLE to set a style-related
4740 font property. If a font is scalable, set avgwidth property to 0.
4741 Set font-entity property by font_put_extra.
4742 (ftfont_list_generic_family): Argument SPEC and REGISTRY removed.
4743 (ffont_driver): Adjusted for the change of struct font_driver.
4744 (ftfont_spec_pattern): New function.
4745 (ftfont_list): Return a list, not vector.
4746 (ftfont_match): Use ftfont_spec_pattern to get a pattern.
4747 (ftfont_list_family): Don't downcase names.
4748 (ftfont_free_entity): Deleted.
4749 (ftfont_open): Return a font-object. Adjusted for the change of
4750 struct font. Get underline_thickness and underline_position from
4751 font property. Don't update dpyinfo->smallest_font_height and
4752 dpyinfo->smallest_char_width.
4753 (ftfont_close): Don't free `struct font'.
4754 (ftfont_has_char): Adjusted for the format change of font-entity.
4755 (ftfont_encode_char, ftfont_text_extents): Likewise.
4756
4757 * ftxfont.c (ftxfont_list): Return a list, not vector.
4758 (ftxfont_open): Return a font-object. Adjusted for the change of
4759 struct font. Get underline_thickness and underline_position from
4760 font property. Don't update dpyinfo->smallest_font_height and
4761 dpyinfo->smallest_char_width.
4762 (ftxfont_close): Don't decrease FRAME_X_DISPLAY_INFO (f)->n_fonts.
4763 (ftxfont_draw): Adjusted for the change of struct font.
4764
4765 * image.c (image_ascent): Don't include "charset.h". Include
4766 "character.h" and "font.h".
4767
4768 * lisp.h (enum pvec_type): New member PREV_FONT.
4769 (Fassoc_string): EXFUN it.
4770
4771 * print.c: Include font.h.
4772 (print_object): Handle font-related objects.
4773
4774 * xdisp.c: Throughout the file, delete all USE_FONT_BACKEND
4775 conditionals. Don't check enable_font_backend. Delete all codes
4776 used only when USE_FONT_BACKEND is not defined.
4777 (handle_auto_composed_prop): Do nothing if it->f is not on a
4778 window system. Check how many following characters can be
4779 displayed by the same font.
4780 (calc_pixel_width_or_height): Type of the 4th arg is changed to
4781 'struct font *'.
4782 (get_char_face_and_encoding): Assign the whole encoding task to
4783 the `encode-char' method of a font driver.
4784 (fill_composite_glyph_string): Adjusted for the change of `struct
4785 face' and `struct glyph_string'.
4786 (fill_glyph_string): Likewise.
4787 (get_per_char_metric): Arguments changed.
4788 (x_get_glyph_overhangs): Adjusted for the change of `struct face'
4789 and `struct glyph_string'.
4790 (produce_stretch_glyph, calc_line_height_property)
4791 (x_produce_glyphs): Likewise.
4792
4793 * xfaces.c: Throughout the file, delete all USE_FONT_BACKEND
4794 conditionals. Don't check enable_font_backend. Delete all codes
4795 used only when USE_FONT_BACKEND is not defined. Use
4796 FONT_XXX_NAME_NUMERIC instead of face_numeric_xxx.
4797 (QCfoundry, QCadstyle, QCregistry, QCspacing, QCsize, QCavgwidth)
4798 (Qp): Extern them.
4799 (clear_font_table, load_face_font, xlfd_lookup_field_contents):
4800 Deleted.
4801 (struct font_name): Deleted.
4802 (xlfd_numeric_value, xlfd_symbolic_value): Deleted.
4803 (compare_fonts_by_sort_order): New function.
4804 (xlfd_numeric_slant, xlfd_symbolic_slant, xlfd_numeric_weight)
4805 (xlfd_symbolic_weight, xlfd_numeric_swidth, xlfd_symbolic_swidth):
4806 Deleted.
4807 (Fx_family_fonts): Use font_list_entities, and sort fonts by
4808 compare_fonts_by_sort_order.
4809 (Fx_font_family_list): Call Ffont_family_list.
4810 (face_numeric_value, face_numeric_weight, face_numeric_slant)
4811 (face_numeric_swidth, face_symbolic_value, face_symbolic_weight)
4812 (face_symbolic_slant, face_symbolic_swidth)
4813 (split_font_name_into_vector, build_font_name_from_vector)
4814 (xlfd_fixed_p, xlfd_point_size, pixel_point_size)
4815 (font_rescale_ratio, split_font_name, build_font_name)
4816 (free_font_names, sort_fonts, x_face_list_fonts)
4817 (face_font_available_p, sorted_font_list, cmp_font_names)
4818 (font_list_1, concat_font_list, font_list, remove_duplicates):
4819 Deleted.
4820 (Fx_list_fonts): Use Ffont_list.
4821 (LFACE_AVGWIDTH): Deleted.
4822 (check_lface_attrs): Don't check LFACE_AVGWIDTH. Check LFACE_FONT
4823 by FONTP.
4824 (lface_fully_specified_p): Don't check LFACE_AVGWIDTH.
4825 (set_lface_from_font_name): Delete it.
4826 (set_lface_from_font): Renamed from
4827 set_lface_from_font_and_fontset. Caller changed. Don't set
4828 LFACE_AVGWIDTH. Use FONT_XXX_FOR_FACE to get a symbol suitable
4829 for face.
4830 (merge_face_vectors): Copy font-spec if necessary.
4831 Clear properties of the font-spec if necessary.
4832 (merge_face_ref): Clear properties of the font-spec if necessary.
4833 (Finternal_set_lisp_face_attribute): Likewise.
4834 (set_font_frame_param): Use font_load_for_lface to load a
4835 font-object, and call Fmodify_frame_parameters with it.
4836 (x_update_menu_appearance): Don't check LFACE_AVGWIDTH. Get XLFD
4837 font name by Ffont_xlfd_name.
4838 (Finternal_lisp_face_attribute_values): Don't check QCweight,
4839 QCslant, and QCwidth.
4840 (Fface_font): Get a font name from font->props[FONT_NAME_INDEX].
4841 (lface_same_font_attributes_p): Don't check LFACE_AVGWIDTH.
4842 Compare fonts by EQ.
4843 (lookup_non_ascii_face): Deleted.
4844 (face_for_font): The 2nd argument changed.
4845 (x_supports_face_attributes_p): Don't check LFACE_AVGWIDTH.
4846 Check atomic font properties by case insensitive.
4847 (realize_non_ascii_face): Set face->overstrike correctly.
4848 (realize_x_face): Likewise. Check if LFACE_FONT is a font_object.
4849 (dump_realized_face): Get font name from
4850 font->props[FONT_NAME_INDEX]. Don't print font_info_id.
4851
4852 * xfns.c: Throughout the file, delete all USE_FONT_BACKEND
4853 conditionals. Don't check enable_font_backend. Delete all codes
4854 used only when USE_FONT_BACKEND is not defined.
4855 (xic_create_xfontset): Original code deleted and renamed from
4856 xic_create_xfontset2. Use FRAME_FONT, not FRAME_FONT_OBJECT.
4857 (x_make_gc): Don't set GCFont in GCs.
4858 (Fx_create_frame) [USE_LUCID]: Set xlwmenu_default_font to a font
4859 opened by "fixed".
4860 (syms_of_xfns): Don't set get_font_info_func, load_font_func,
4861 find_ccl_program_func, query_font_func, set_frame_fontset_func,
4862 get_font_repertory_func.
4863
4864 * xfont.c: Include <stdlib.h> and "ccl.h".
4865 (struct xfont_info): New structure.
4866 (xfont_query_font): Deleted.
4867 (xfont_find_ccl_program): Renamed from x_find_ccl_program and
4868 moved from xterm.c.
4869 (xfont_driver): Adjusted for the change of struct font_driver.
4870 (compare_font_names): New function.
4871 (xfont_list_pattern): Sort font names case insensitively. Make
4872 font_entity by calling font_make_entity. Avoid auto-scaled fonts.
4873 (xfont_list): Return a list, not vector.
4874 (xfont_match): If the font doesn't have QCname property, generate
4875 a name from the other font properties.
4876 (xfont_open): Return a font-object. Adjusted for the change of
4877 struct font. Get underline_thickness and underline_position from
4878 font property. Don't update dpyinfo->smallest_font_height and
4879 dpyinfo->smallest_char_width.
4880 (xfont_close): Don't free struct font.
4881 (xfont_prepare_face): Adjusted for the change of struct font.
4882 (xfont_done_face): Deleted.
4883 (xfont_has_char): Adjusted for the change of struct font.
4884 (xfont_encode_char, xfont_draw): Likewise.
4885 (xfont_check): New function.
4886
4887 * xftfont.c (xftfont_list): Adjusted for the change of `list'
4888 callback function.
4889 (xftfont_match): Adjusted for the format change of font-entity.
4890 (xftfont_open): Adjusted for the format change of font-entity and
4891 font-object. Adjusted for the change of struct font. Return a
4892 font-object. Don't update dpyinfo->smallest_font_height and
4893 dpyinfo->smallest_char_width.
4894 (xftfont_close): Block input while calling XftFontClose.
4895 (xftfont_prepare_face): Don't block input while calling
4896 xftfont_get_colors. Adjusted for the change of struct font.
4897 (xftfont_shape): Return value of error case fixed.
4898
4899 * xrdb.c (x_load_resources): Don't setup a fontset resource.
4900
4901 * xterm.h: Throughout the file, delete all USE_FONT_BACKEND
4902 conditionals.
4903 (FONT_WIDTH): Return (f)->max_width.
4904 (struct x_display_info): Delete member `font'.
4905 (x_list_fonts, x_get_font_info, x_load_font, x_query_font)
4906 (x_find_ccl_program, x_get_font_repertory): Delete externs.
4907 (struct x_output): Change type of `font' to `struct font *'.
4908
4909 * xterm.c: Throughout the file, delete all USE_FONT_BACKEND
4910 conditionals. Don't check enable_font_backend. Delete all codes
4911 used only when USE_FONT_BACKEND is not defined. Don't include ccl.h.
4912 (x_per_char_metric, x_encode_char): Deleted.
4913 (x_set_cursor_gc, x_set_mouse_face_gc): Don't set GCFont.
4914 (x_compute_glyph_string_overhangs): Adjusted for the change of
4915 `struct face'.
4916 (x_draw_glyph_string_foreground)
4917 (x_draw_composite_glyph_string_foreground): Likewise.
4918 (x_draw_glyph_string): Likewise. Use font->underline_position and
4919 font->underline_thickness.
4920 (x_new_font): Renamed from x_new_fontset2.
4921 (x_new_fontset, x_get_font_info, x_list_fonts): Deleted.
4922 (x_check_font): Call `check' method of a font driver.
4923 (x_font_min_bounds, x_compute_min_glyph_bounds, x_load_font)
4924 (x_query_font, x_get_font_repertory): Deleted.
4925 (x_find_ccl_program): Renamed and moved to xfont.c.
4926 (x_redisplay_interface): Adjusted for the change of `struct
4927 redisplay_interface'.
4928
4929 * w32fns.c: Throughout the file, delete all USE_FONT_BACKEND
4930 conditionals. Don't check enable_font_backend. Delete all codes
4931 used only when USE_FONT_BACKEND is not defined. Surround non-used
4932 code by "#ifdef OLD_FONT" and "endif".
4933 (Fw32_select_font): Use FONT_COMPAT to get old font structure.
4934
4935 * w32font.h (struct w32font_info): New member.
4936 (FONT_COMPAT): New macro.
4937 (w32font_open_internal): Prototype adjusted.
4938
4939 * w32gui.h (XGCValues): Surround `XFontStruct *font' by "if
4940 OLD_FONT" and "endif".
4941
4942 * w32font.c: Throughout the file, delete all USE_FONT_BACKEND
4943 conditionals. Don't check enable_font_backend. Delete all codes
4944 used only when USE_FONT_BACKEND is not defined.
4945 (w32font_open): Return a font-object. Make a font-object by
4946 font_make_object. Adjusted for the change of struct w32font_info.
4947 (w32font_close): Don't free struct font. Adjusted for the change
4948 of struct w32font_info.
4949 (w32font_encode_char, w32font_text_extents, w32font_draw):
4950 Adjusted for the change of struct w32font_info.
4951 (w32font_draw): Likewise.
4952 (w32font_list_internal): Return a list, not vector.
4953 (w32font_open_internal): Change the 4th arg to font-object.
4954 Adjusted for the change of struct w32font_info and font-object format.
4955 (add_font_name_to_list): Don't downcase names.
4956 (w32_enumfont_pattern_entity): Make a font-entity by
4957 font_make_entity. Adjusted for the format change of font-entity.
4958 Use FONT_SET_STYLE to set a style-related font property. If a
4959 font is scalable, set avgwidth property to 0. Set font-entity
4960 property by font_put_extra.
4961 (font_matches_spec): Adjusted for the format change of font-entity.
4962 (w32_weight_table, w32_decode_weight): New variables.
4963 (w32_encode_weight): New function.
4964 (fill_in_logfont): Adjusted for the format change of font-spec.
4965 (w32font_full_name): Use FONT_WEIGHT_SYMBOLIC to get a symbol
4966 weight value.
4967 (w32font_driver): Adjusted for the change of struct font_driver.
4968
4969 * w32term.h: Throughout the file, delete all USE_FONT_BACKEND
4970 conditionals. Don't check enable_font_backend. Surround non-used
4971 code by "#ifdef OLD_FONT" and "endif".
4972 (FONT_WIDTH, FONT_HEIGHT, FONT_BASE, FONT_DESCENT)
4973 (FONT_AVG_WIDTH): Adjusted for the change of struct font.
4974
4975 * w32term.c: Throughout the file, delete all USE_FONT_BACKEND
4976 conditionals. Don't check enable_font_backend. Delete all codes
4977 used only when USE_FONT_BACKEND is not defined. Surround non-used
4978 code by "#ifdef OLD_FONT" and "endif".
4979
4980 * w32uniscribe.c: Delete USE_FONT_BACKEND conditional.
4981 (uniscribe_open): Return value changed to font-object.
4982 Adjusted for the format change of font-object.
4983 (uniscribe_otf_capability): Adjusted for the change of struct font.
4984 (add_opentype_font_name_to_list): Don't downcase names.
4985 (uniscribe_font_driver): Adjusted for the change of struct
4986 font_driver.
4987
49882008-05-13 Chong Yidong <cyd@stupidchicken.com>
4989
4990 * dispnew.c (update_frame_1): Check if tty output is still valid
4991 before flushing it.
4992
49932008-05-13 Jan Djärv <jan.h.d@swipnet.se>
4994
4995 * xterm.c (handle_one_xevent): Don't pass buttons higher than 3
4996 to Gtk+ menus.
4997
49982008-05-13 Stefan Monnier <monnier@iro.umontreal.ca>
4999
5000 * dired.c (file_name_completion): Tweak the code so as to always do it
5001 in a single pass. Tighten the scope of some variables.
5002
5003 * dired.c (Qdefault_directory): New var.
5004 (file_name_completion): Use it instead of Fexpand_file_name.
5005 (syms_of_dired): Initialize it.
5006
50072008-05-12 Stefan Monnier <monnier@iro.umontreal.ca>
5008
5009 * fileio.c (double_dollars): Remove dead code.
5010
50112008-05-10 Eli Zaretskii <eliz@gnu.org>
5012
5013 * dired.c (Ffile_attributes, Fdirectory_files_and_attributes):
5014 Mention w32-get-true-file-attributes in doc string.
5015
5016 * w32proc.c (syms_of_ntproc) <w32-get-true-file-attributes>: Doc fix.
5017
50182008-05-09 Glenn Morris <rgm@gnu.org>
5019
5020 * fileio.c (Fread_file_name): Remove reference to insdef, deleted
5021 2008-04-23.
5022
50232008-05-09 Eli Zaretskii <eliz@gnu.org>
5024
5025 Support for reporting owner and group of each file on MS-Windows:
5026 * dired.c (stat_uname, stat_gname): New functions, with special
5027 implementation for w32.
5028 (Ffile_attributes): Use them instead of getpwuid and getgrgid.
5029
5030 * w32.c: Rename the_passwd_* to dflt_passwd_*.
5031 (dflt_group_name): New static variable.
5032 (dflt_group): Rename from the_group.
5033 (init_user_info): Init dflt_group fields. Get user's group name
5034 from LookupAccountSid.
5035 (g_b_init_get_file_security, g_b_init_get_security_descriptor_owner)
5036 (g_b_init_get_security_descriptor_group, g_b_init_is_valid_sid):
5037 New initialization states.
5038 (globals_of_w32): Initialize them to zero. Initialize the default
5039 group name to "None".
5040 (GetFileSecurity_Name): New global var, the name of the function
5041 to call for GetFileSecurity.
5042 (GetFileSecurity_Proc, GetSecurityDescriptorOwner_Proc)
5043 (GetSecurityDescriptorGroup_Proc, IsValidSid_Proc): New typedefs.
5044 (get_file_security, get_security_descriptor_owner)
5045 (get_security_descriptor_group, is_valid_sid)
5046 (get_file_security_desc, get_rid, get_name_and_id)
5047 (get_file_owner_and_group): New functions.
5048 (stat): Use get_file_security_desc and get_file_owner_and_group to
5049 report the owner and primary group of each file. Don't ignore the
5050 high 32 bits of file's size, now that st_size is 64-bit wide.
5051 Fix test when to get true file attributes.
5052 (init_user_info): Use get_rid instead of equivalent inline code.
5053 (fstat): Don't ignore the high 32 bits of file's size.
5054
50552008-05-09 Chong Yidong <cyd@stupidchicken.com>
5056
5057 * image.c (png_load): Use correct bit-depth for setting background
5058 color.
5059
50602008-05-08 Eli Zaretskii <eliz@gnu.org>
5061
5062 * Makefile.in (lisp, shortlisp): Rename epa-file-hook.elc to
5063 epa-hook.elc.
5064
50652008-05-08 Juanma Barranquero <lekktu@gmail.com>
5066
5067 * font.c (Ffont_match_p): Don't use `iff' in docstring.
5068
50692008-05-07 Dan Nicolaescu <dann@ics.uci.edu>
5070
5071 * macfns.c (Fx_create_frame): Make a copy of frame parameters
5072 because the original parameters are in pure storage now.
5073 (mac_window): Remove unused params. Update callers.
5074
50752008-05-06 Stefan Monnier <monnier@iro.umontreal.ca>
5076
5077 * lread.c (substitute_object_recurse): Use lower-level primitives.
5078 Don't signal errors when traversing sub-char-tables.
5079 Don't loop over all the possible characters when traversing char-tables.
5080
5081 * print.c (print_preprocess): Add sub-char-tables to the print-table,
5082 just like we do in print.c.
5083
50842008-05-05 Stefan Monnier <monnier@iro.umontreal.ca>
5085
5086 * minibuf.c (Ftry_completion): Remove code left over from when we used
5087 scmp instead of Fcompare_strings.
5088
50892008-05-04 Juanma Barranquero <lekktu@gmail.com>
5090
5091 * w32fns.c (Fw32_battery_status): Fix computation of %t (h:min) format.
5092
50932008-05-04 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
5094
5095 * image.c [USE_MAC_IMAGE_IO] (image_load_image_io):
5096 Create bitmap context in native byte order.
5097
5098 * macterm.c (XDrawLine)
5099 (XCreatePixmapFromBitmapData) [USE_MAC_IMAGE_IO]: Create bitmap
5100 context in native byte order.
5101
51022008-05-04 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
5103
5104 * config.in: Regenerate.
5105
5106 * image.c (PIX_MASK_DRAW, PIX_MASK_RETAIN) [USE_MAC_IMAGE_IO]:
5107 New definitions for Image I/O support.
5108 (XGetImage, XPutPixel, XGetPixel, XDestroyImage)
5109 (mac_create_cg_image_from_image, x_create_x_image_and_pixmap)
5110 [USE_MAC_IMAGE_IO]: Add implementations for Image I/O support.
5111 (mac_data_provider_release_data, image_load_image_io)
5112 [USE_MAC_IMAGE_IO]: New functions.
5113 (CGImageCreateWithPNGDataProviderProcType) [MAC_OSX]: Remove typedef.
5114 (MyCGImageCreateWithPNGDataProvider) [MAC_OSX]: Remove variable.
5115 (init_image_func_pointer) [MAC_OSX]: Remove function.
5116 (image_load_quartz2d) [MAC_OSX]: Check availability of
5117 CGImageCreateWithPNGDataProvider at compile time.
5118 Use lowercase `false' for boolean constant.
5119 (png_load, jpeg_load, tiff_load, gif_load) [USE_MAC_IMAGE_IO]:
5120 Use image_load_image_io.
5121 (png_load) [!USE_MAC_IMAGE_IO && MAC_OSX]:
5122 Don't check MyCGImageCreateWithPNGDataProvider.
5123 (init_image) [MAC_OSX && TARGET_API_MAC_CARBON]:
5124 Don't call init_image_func_pointer.
5125
5126 * macgui.h (Pixmap) [USE_MAC_IMAGE_IO]: New definition for Image I/O.
5127
5128 * macterm.c (mac_cg_color_space_rgb) [USE_CG_DRAWING]:
5129 Make variable non-static.
5130 (XDrawLine, XCreatePixmap, XCreatePixmapFromBitmapData, XFreePixmap)
5131 [USE_MAC_IMAGE_IO]: Add implementations for Image I/O support.
5132
5133 * macterm.h (ARGB_TO_ULONG, ALPHA_FROM_ULONG): New macros.
5134 (RED_FROM_ULONG): Mask off higher bits.
5135 (mac_cg_color_space_rgb) [USE_MAC_IMAGE_IO]: New extern.
5136
5137 * s/darwin.h [HAVE_CARBON && HAVE_AVAILABILITYMACROS_H]:
5138 Include AvailabilityMacros.h.
5139 (USE_MAC_IMAGE_IO, LIBS_IMAGE) [HAVE_CARBON]: New defines.
5140 (LIBS_CARBON) [HAVE_CARBON]: Use LIBS_IMAGE.
5141
51422008-05-03 Stefan Monnier <monnier@iro.umontreal.ca>
5143
5144 * chartab.c (Fset_char_table_range): If range is t, really set all
5145 chars to that value.
5146
51472008-05-03 Eli Zaretskii <eliz@gnu.org>
5148
5149 * dired.c (Ffile_attributes): Don't allow the device number become
5150 negative.
5151
51522008-05-02 Daiki Ueno <ueno@unixuser.org>
5153
5154 * Makefile.in (lisp, shortlisp): Add epa-file-hook.elc.
5155
51562008-05-02 Juri Linkov <juri@jurta.org>
5157
5158 * minibuf.c (Fread_from_minibuffer, Fread_string, Fread_command)
5159 (Fread_variable, Fread_buffer, Fcompleting_read): Document the
5160 DEFAULT argument as a list of default values in docstrings.
5161
51622008-05-01 Chong Yidong <cyd@stupidchicken.com>
5163
5164 * puresize.h (BASE_PURESIZE): Increase to 1210000.
5165
51662008-05-01 Martin Rudalics <rudalics@gmx.at>
5167
5168 * dispnew.c (change_frame_size_1): Preserve small windows when
5169 shrinking frames by calling set_window_height|width with third
5170 arg 2.
5171
5172 * window.h (struct window): Replace field too_small_ok by field
5173 resize_proportionally.
5174
5175 * window.c (make_window): Initialize resize_proportionally.
5176 (enlarge_window): Temporarily set resize_proportionally to make
5177 sure that shrink_windows does scale the window proportionally.
5178 (shrink_windows): When window has resize_proportionally set try
5179 to shrink it proportionally by stealing from other windows.
5180 (struct saved_window, Fset_window_configuration)
5181 (compare_window_configurations): Handle resize_proportionally.
5182 (WINDOW_TOTAL_SIZE): New macro.
5183 (window_min_size, shrink_windows, size_window): Use it.
5184 (check_min_window_sizes): Remove. Invalid values of
5185 window-min-height|width are handled by window_min_size_2 now.
5186 (size_window, Fsplit_window, enlarge_window)
5187 (adjust_window_trailing_edge, grow_mini_window): Don't call
5188 check_min_window_sizes.
5189 (window_min_size_2, window_min_size_1, window_min_size):
5190 New argument safe_p for retrieving "safe" minimum sizes.
5191 (Fdisplay_buffer, Fsplit_window, enlarge_window)
5192 (adjust_window_trailing_edge, grow_mini_window):
5193 Adjust arguments of window_min_size... functions.
5194 (shrink_windows): Argument min_size removed. New argument
5195 safe_p allows shrinking windows to their safe minimum sizes.
5196 Calculate minimum size and decide whether a window shall be
5197 deleted for each window individually.
5198 (size_window): When nodelete_p equals 2, tell shrink_windows to
5199 delete windows only if their new minimum size is no more safe.
5200 (shrink_window_lowest_first): Call window_min_size_1 to make
5201 sure to preserve modeline of bottom-most window when resizing
5202 the minibuffer.
5203 (Fset_window_configuration, Fcurrent_window_configuration)
5204 (compare_window_configurations): Do not handle
5205 window-min-height|width any more.
5206 (syms_of_window): Clarify window-min-height|width doc-strings.
5207
52082008-04-30 Stefan Monnier <monnier@iro.umontreal.ca>
5209
5210 * dired.c (file_name_completion): Fix up the encoding/decoding issue
5211 some more. Copy some of the code from Ftry_completions.
5212 Remove special case code that dates back to initial revision when the
5213 slash was only added when necessary and that can't trigger nowadays.
5214
52152008-04-27 Kenichi Handa <handa@m17n.org>
5216
5217 * font.c (font_prop_validate): Signal `error' instead of `font'.
5218
52192008-04-29 Jason Rumney <jasonr@gnu.org>
5220
5221 * w32fns.c (Fw32_battery_status): New defun.
5222 (syms_of_w32fns): Defsubr it.
5223
52242008-04-28 Andreas Schwab <schwab@suse.de>
5225
5226 * dired.c (file_name_completion): Fix another mixing of encoded
5227 and decoded names.
5228
52292008-04-28 Juanma Barranquero <lekktu@gmail.com>
5230
5231 * w32fns.c (Fw32_define_rgb_color): Fix typo in docstring.
5232
52332008-04-27 Juanma Barranquero <lekktu@gmail.com>
5234
5235 * fringe.c (Fdefine_fringe_bitmap): Doc fix.
5236
52372008-04-27 Andreas Schwab <schwab@suse.de>
5238
5239 * dired.c (file_name_completion): Fix inappropriate mixing of
5240 encoded and decoded names.
5241
5242 * xterm.c (XTread_socket): Fix use of uninitialized variable.
5243
5244 * puresize.h (BASE_PURESIZE): Increase to 1200000.
5245
52462008-04-26 Eli Zaretskii <eliz@gnu.org>
5247
5248 * dired.c (Ffile_attributes) [WINDOWSNT]: Undo change from
5249 2008-03-31, it's not needed anymore with `struct stat' definition
5250 on nt/inc/sys/stat.h. Undo changes from 2007-01-12 and 2007-01-13
5251 for the same reasons.
5252
52532008-04-25 Dennis Gilmore <ausil@fedoraproject.org> (tiny change)
5254
5255 * m/sparc.h: Additional redefinitions for GNU/Linux.
5256
52572008-04-23 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
5258
5259 * macterm.c (Vmac_ts_active_input_buf) [USE_MAC_TSM]: New variable.
5260 (syms_of_macterm) [USE_MAC_TSM]: Defvar it.
5261 (Qmouse_drag_overlay) [MAC_OSX]: New variable.
5262 (syms_of_macterm) [MAC_OSX]: Intern and staticpro it.
5263 (mac_get_selected_range, mac_store_buffer_text_to_unicode_chars)
5264 (mac_ax_selected_text_range) [MAC_OSX]: New functions.
5265 (mac_ax_number_of_characters) [MAC_OS_X_VERSION_MAX_ALLOWED >= 1030]:
5266 Likewise.
5267
5268 * mactoolbox.c (Vmac_ts_active_input_buf) [USE_MAC_TSM]: Add extern.
5269 (fast_find_position, x_y_to_hpos_vpos, mac_ax_selected_text_range)
5270 (mac_ax_number_of_characters): Add externs.
5271 (mac_get_selected_range, mac_store_buffer_text_to_unicode_chars)
5272 [USE_MAC_TSM]: Likewise.
5273 (mac_handle_text_input_event) [MAC_OSX]:
5274 Handle kEventTextInputOffsetToPos for no active input area case.
5275 Handle kEventTextInputPosToOffset and kEventTextInputGetSelectedText.
5276 (mac_handle_document_access_event)
5277 [MAC_OS_X_VERSION_MAX_ALLOWED >= 1030]: New function.
5278 (install_application_handler) [MAC_OSX]: Register handlers for
5279 kEventTextInputPosToOffset and kEventTextInputGetSelectedText.
5280 (install_application_handler) [MAC_OS_X_VERSION_MAX_ALLOWED >= 1030]:
5281 Register mac_handle_document_access_event.
5282
5283 * xdisp.c (x_y_to_hpos_vpos, fast_find_position) [HAVE_CARBON]:
5284 Make functions non-static.
5285
52862008-04-23 Stefan Monnier <monnier@iro.umontreal.ca>
5287
5288 * fileio.c (Vread_file_name_function, Vread_file_name_predicate)
5289 (read_file_name_completion_ignore_case, insert_default_directory)
5290 (Qdefault_directory): Move to minibuffer.el.
5291 (Fread_file_name): Call the new `read-file-name' instead.
5292
52932008-04-23 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
5294
5295 * mac.c (create_apple_event) [TARGET_API_MAC_CARBON]:
5296 Make function non-static.
5297 (create_apple_event_from_event_ref) [TARGET_API_MAC_CARBON]:
5298 Remove function.
5299 (create_apple_event_from_drag_ref) [TARGET_API_MAC_CARBON]:
5300 Move to mactoolbox.c.
5301 (mac_event_parameters_to_lisp) [TARGET_API_MAC_CARBON]: New function.
5302
5303 * macgui.h (CGFloat) [!CGFLOAT_DEFINED]: New typedef.
5304 (mac_rect_make): New macro.
5305
5306 * macterm.c (mac_draw_image_string_atsui) [MAC_OSX]: Use CGFloat
5307 instead of float.
5308 (mac_draw_image_string_cg) [USE_CG_TEXT_DRAWING]: Likewise.
5309 (init_cg_color, mac_draw_line, mac_draw_cg_image, XSetForeground)
5310 (XSetBackground) [USE_CG_DRAWING]: Likewise.
5311 (mac_draw_image_string_atsui) [MAC_OSX]: Use mac_rect_make instead of
5312 CGRectMake.
5313 (mac_draw_image_string_cg) [USE_CG_TEXT_DRAWING]: Likewise.
5314 (mac_erase_rectangle, mac_draw_cg_image, mac_fill_rectangle)
5315 (mac_set_clip_rectangles) [USE_CG_DRAWING]: Likewise.
5316 (XCreatePixmap, XCreatePixmapFromBitmapData): Use Window
5317 instead of WindowRef in argument type.
5318 (XCreatePixmap) [!MAC_OS8]: Don't call SetPortWindowPort.
5319 (mac_invert_rectangle): Use CGContextSetBlendMode if available.
5320 (mac_set_clip_rectangles, mac_reset_clip_rectangles): Take argument F
5321 instead of DISPLAY. All uses changed.
5322 (mac_handle_size_change): Don't call SET_FRAME_GARBAGED.
5323 (x_calc_absolute_position): Simplify so as not to use
5324 FRAME_PIXEL_WIDTH/FRAME_PIXEL_HEIGHT.
5325
5326 * macterm.h (XCreatePixmap, XCreatePixmapFromBitmapData): Use Window
5327 instead of WindowRef in argument type.
5328 (create_apple_event_from_event_ref, create_apple_event_from_drag_ref)
5329 [TARGET_API_MAC_CARBON]: Remove externs.
5330 (create_apple_event, mac_event_parameters_to_lisp)
5331 [TARGET_API_MAC_CARBON]: Add externs.
5332
5333 * mactoolbox.c (Vmac_ts_script_language_on_focus)
5334 (saved_ts_script_language_on_focus) [USE_MAC_TSM]: Remove externs.
5335 (XTread_socket) [USE_MAC_TOOLBAR]: Select window if its structure part
5336 is clicked.
5337 (x_activate_menubar): Remove extern for saved_menu_event_location.
5338 (create_apple_event_from_drag_ref) [TARGET_API_MAC_CARBON]:
5339 Move from mac.c.
5340
53412008-04-23 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
5342
5343 * alloc.c [!SYSTEM_MALLOC && !SYNC_INPUT] (uninterrupt_malloc)
5344 [HAVE_GTK_AND_PTHREAD && !DOUG_LEA_MALLOC]: Don't use recursive mutex.
5345
53462008-04-23 Jason Rumney <jasonr@gnu.org>
5347
5348 * w32.c (stat): When Vw32_get_true_file_attributes is Qlocal, get
5349 attributes only for local files.
5350
5351 * w32proc.c (syms_of_ntproc): Change Vw32_get_true_file attributes
5352 default to Qlocal.
5353
53542008-04-22 Juri Linkov <juri@jurta.org>
5355
5356 * buffer.c (Fswitch_to_buffer): Change interactive spec to call
5357 read-buffer-to-switch instead of using the letter "B".
5358
53592008-04-21 Stefan Monnier <monnier@iro.umontreal.ca>
5360
5361 * fileio.c (Qdefault_directory): New variable.
5362 (Fread_file_name): Use it to pass `dir' to the completion functions.
5363
53642008-04-20 Chong Yidong <cyd@stupidchicken.com>
5365
5366 * xdisp.c (pos_visible_p): Check if iterator stops on a display string.
5367
53682008-04-19 Stefan Monnier <monnier@iro.umontreal.ca>
5369
5370 * keyboard.c (Vpre_help_message): Remove.
5371 (show_help_echo): Remove default C code.
5372
5373 * dired.c (directory_files_internal, file_name_completion):
5374 Only call ENCODE_FILE if the string is indeed decoded.
5375
53762008-04-18 Stefan Monnier <monnier@iro.umontreal.ca>
5377
5378 * Makefile.in (TOOLKIT_DEFINES): Remove.
5379 (LIBW): Use a bit less #if, remove left over OPEN_LOOK stuff.
5380
53812008-04-18 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
5382
5383 * Makefile.in (MAC_OBJ): Add mactoolbox.o.
5384 (mactoolbox.o): New target.
5385
5386 * mac.c [MAC_OSX] (select_and_poll_event, sys_select):
5387 Use mac_run_loop_run_once instead of CFRunLoopRunInMode.
5388
5389 * macfns.c (x_set_background_color, mac_window, x_create_tip_frame):
5390 Use mac_set_frame_window_background instead of XSetWindowBackground.
5391 (x_set_tool_bar_lines) [USE_MAC_TOOLBAR]:
5392 Use mac_is_window_toolbar_visible instead of IsWindowToolbarVisible.
5393 (x_set_name_internal) [TARGET_API_MAC_CARBON]: Use mac_set_window_title
5394 instead of SetWindowTitleWithCFString.
5395 (mac_update_proxy_icon) [TARGET_API_MAC_CARBON]: Remove BLOCK_INPUT.
5396 Move function to mactoolbox.c.
5397 (mac_update_title_bar) [TARGET_API_MAC_CARBON]:
5398 Use mac_set_window_modified instead of SetWindowModified.
5399 Add BLOCK_INPUT around mac_set_window_modified/mac_update_proxy_icon.
5400 (mac_window, x_create_tip_frame): Use mac_create_frame_window.
5401 (Fx_focus_frame): Use mac_front_non_floating_window instead of
5402 FrontNonFloatingWindow. Use mac_activate_window instead of
5403 ActivateWindow. Use mac_active_non_floating_window instead of
5404 ActiveNonFloatingWindow.
5405 (show_hourglass, hide_hourglass) [TARGET_API_MAC_CARBON]:
5406 Use mac_show_hourglass and mac_hide_hourglass.
5407 (compute_tip_xy) [TARGET_API_MAC_CARBON]: Use mac_get_global_mouse
5408 instead of GetGlobalMouse.
5409 (Fx_show_tip): Use mac_move_window/mac_size_window/mac_show_window
5410 instead of MoveWindow/SizeWindow/ShowWindow, respectively.
5411 Use mac_bring_window_to_front instead of BringToFront.
5412 (Qfile_name_history) [TARGET_API_MAC_CARBON]: Move extern to
5413 mactoolbox.c.
5414 (Fx_file_dialog) [TARGET_API_MAC_CARBON]: Move function body to
5415 mac_file_dialog in mactoolbox.c. Use mac_file_dialog.
5416 (mac_nav_event_callback) [TARGET_API_MAC_CARBON]: Move function to
5417 mactoolbox.c.
5418
5419 * macgui.h [!HAVE_CARBON]: Include Quickdraw.h instead of QuickDraw.h.
5420 (XtPointer): Move typedef from macmenu.c.
5421 (enum button_type): Move enum from macmenu.c.
5422 (widget_value): Move typedef from macmenu.c.
5423 (M_APPLE, I_ABOUT, EXTRA_STACK_ALLOC, ARGV_STRING_LIST_ID)
5424 (DIALOG_LEFT_MARGIN, DIALOG_TOP_MARGIN, DIALOG_RIGHT_MARGIN)
5425 (DIALOG_BOTTOM_MARGIN, DIALOG_MIN_INNER_WIDTH, DIALOG_MAX_INNER_WIDTH)
5426 (DIALOG_BUTTON_BUTTON_HORIZONTAL_SPACE)
5427 (DIALOG_BUTTON_BUTTON_VERTICAL_SPACE, DIALOG_BUTTON_MIN_WIDTH)
5428 (DIALOG_TEXT_MIN_HEIGHT, DIALOG_TEXT_BUTTONS_VERTICAL_SPACE)
5429 (DIALOG_ICON_WIDTH, DIALOG_ICON_HEIGHT, DIALOG_ICON_LEFT_MARGIN)
5430 (DIALOG_ICON_TOP_MARGIN): Move defines from macmenu.c.
5431 (Selection): Move typedef from macselect.c.
5432 (RAM_TOO_LARGE_ALERT_ID, ABOUT_ALERT_ID) [MAC_OS8]: Move defines from
5433 macterm.c.
5434 (mac_set_window_title, mac_set_window_modified, mac_is_window_visible)
5435 (mac_is_window_collapsed, mac_bring_window_to_front)
5436 (mac_send_window_behind, mac_hide_window, mac_show_window)
5437 (mac_collapse_window, mac_front_non_floating_window)
5438 (mac_active_non_floating_window, mac_activate_window)
5439 (mac_move_window_structure, mac_move_window, mac_size_window)
5440 (mac_get_global_mouse, mac_is_window_toolbar_visible): New defines.
5441
5442 * macmenu.c [!TARGET_API_MAC_CARBON]: Move includes to mactoolbox.c.
5443 (enum mac_menu_kind): Move enum to mactoolbox.c.
5444 (min_menu_id): Move variable to mactoolbox.c.
5445 (quit_dialog_event_loop) [TARGET_API_MAC_CARBON]: Likewise.
5446 (DIALOG_WINDOW_RESOURCE): Move define to mactoolbox.c.
5447 (DIALOG_BUTTON_COMMAND_ID_OFFSET, DIALOG_BUTTON_COMMAND_ID_P)
5448 (DIALOG_BUTTON_COMMAND_ID_VALUE, DIALOG_BUTTON_MAKE_COMMAND_ID)
5449 [TARGET_API_MAC_CARBON]: Likewise.
5450 (XtPointer): Move typedef to macgui.h.
5451 (enum button_type): Move enum to macgui.h.
5452 (widget_value): Move typedef to macgui.h.
5453 (DIALOG_LEFT_MARGIN, DIALOG_TOP_MARGIN, DIALOG_RIGHT_MARGIN)
5454 (DIALOG_BOTTOM_MARGIN, DIALOG_MIN_INNER_WIDTH, DIALOG_MAX_INNER_WIDTH)
5455 (DIALOG_BUTTON_BUTTON_HORIZONTAL_SPACE)
5456 (DIALOG_BUTTON_BUTTON_VERTICAL_SPACE, DIALOG_BUTTON_MIN_WIDTH)
5457 (DIALOG_TEXT_MIN_HEIGHT, DIALOG_TEXT_BUTTONS_VERTICAL_SPACE)
5458 (DIALOG_ICON_WIDTH, DIALOG_ICON_HEIGHT, DIALOG_ICON_LEFT_MARGIN)
5459 (DIALOG_ICON_TOP_MARGIN): Move defines to macgui.h.
5460 (popup_activated_flag): Make variable non-static.
5461 (x_activate_menubar, install_menu_quit_handler, pop_down_menu)
5462 (add_menu_item, fill_menu, dispose_menus):
5463 Move functions to mactoolbox.c.
5464 (restore_show_help_function, menu_target_item_handler)
5465 (install_menu_target_item_handler, mac_handle_dialog_event)
5466 (install_dialog_event_handler, pop_down_dialog, create_and_show_dialog)
5467 [TARGET_API_MAC_CARBON]: Likewise.
5468 (menu_quit_handler) [MAC_OS_X_VERSION_MAX_ALLOWED >= 1030]: Likewise.
5469 (mac_dialog) [!TARGET_API_MAC_CARBON]: Likewise.
5470 (find_and_call_menu_selection, name_is_separator): Make function
5471 non-static.
5472 (Vshow_help_function, timer_check) [TARGET_API_MAC_CARBON]: Move extern
5473 to mactoolbox.c.
5474 (set_frame_menubar): Don't call install_menu_quit_handler.
5475 (menu_item_selection): New variable.
5476 (mac_menu_show): Use create_and_show_popup_menu.
5477 (create_and_show_dialog) [TARGET_API_MAC_CARBON]: Don't return
5478 selection but set variable menu_item_selection. All uses changed.
5479 (mac_fill_menubar): Rename from fill_menubar. All uses changed.
5480 Call install_menu_quit_handler. Move to mactoolbox.c.
5481
5482 * macselect.c [!TARGET_API_MAC_CARBON]: Don't include Scrap.h.
5483 (Selection): Move typedef to macgui.h.
5484 (Vselection_converter_alist, Qmac_scrap_name, Qmac_ostype)
5485 (Vmac_apple_event_map, Qmac_apple_event_class, Qmac_apple_event_id):
5486 Make variables non-static.
5487 (Vmac_dnd_known_types) [TARGET_API_MAC_CARBON]: Likewise.
5488 (mac_handle_apple_event, cleanup_all_suspended_apple_events):
5489 Make functions non-static.
5490 (Vmac_service_selection) [MAC_OSX]: Likewise.
5491 (mac_get_selection_from_symbol, get_flavor_type_from_symbol)
5492 (mac_valid_selection_target_p, mac_clear_selection)
5493 (mac_get_selection_ownership_info, mac_valid_selection_value_p)
5494 (mac_put_selection_value, mac_selection_has_target_p)
5495 (mac_get_selection_value, mac_get_selection_target_list)
5496 (init_apple_event_handler, install_drag_handler, remove_drag_handler):
5497 Move functions to mactoolbox.c.
5498 (mac_do_track_drag, mac_do_receive_drag) [TARGET_API_MAC_CARBON]:
5499 Likewise.
5500 (copy_scrap_flavor_data, mac_handle_service_event)
5501 (install_service_handler) [MAC_OSX]: Likewise.
5502 (syms_of_macselect) <Vmac_dnd_known_types>:
5503 Use mac_dnd_default_known_types.
5504
5505 * macterm.h (FRAME_OUTER_TO_INNER_DIFF_X, FRAME_OUTER_TO_INNER_DIFF_Y):
5506 Move to mactoolbox.c.
5507 (HOURGLASS_WIDTH, HOURGLASS_HEIGHT): Change to 15.
5508 (Fx_selection_owner_p): Add EXFUN.
5509 (install_window_handler, remove_window_handler, XSetWindowBackground):
5510 Remove externs.
5511 (do_apple_menu) [!TARGET_API_MAC_CARBON]: Likewise.
5512 (mac_prepare_for_quickdraw) [USE_CG_DRAWING]: Likewise.
5513 (x_raise_frame, x_lower_frame, mac_alert_sound_play)
5514 (install_application_handler, mac_get_frame_bounds, mac_get_frame_mouse)
5515 (mac_convert_frame_point_to_global, mac_set_frame_window_background)
5516 (mac_update_begin mac_update_end, mac_frame_up_to_date, x_flush)
5517 (mac_create_frame_window, mac_dispose_frame_window, mac_begin_clip)
5518 (mac_end_clip, mac_create_scroll_bar, mac_dispose_scroll_bar)
5519 (mac_set_scroll_bar_bounds, mac_redraw_scroll_bar, mac_fill_menubar)
5520 (create_and_show_popup_menu, mac_get_selection_from_symbol)
5521 (mac_valid_selection_target_p, mac_clear_selection)
5522 (mac_get_selection_ownership_info, mac_valid_selection_value_p)
5523 (mac_put_selection_value, mac_selection_has_target_p)
5524 (mac_get_selection_value, mac_get_selection_target_list): Add externs.
5525 (mac_update_proxy_icon, mac_show_hourglass, mac_hide_hourglass)
5526 (mac_reposition_hourglass, mac_file_dialog, create_and_show_dialog)
5527 (mac_dnd_default_known_types) [TARGET_API_MAC_CARBON]: Likewise.
5528 (mac_run_loop_run_once) [MAC_OSX]: Likewise.
5529 (mac_dialog) [!TARGET_API_MAC_CARBON]: Likewise.
5530 (mac_begin_cg_clip, mac_end_cg_clip) [USE_CG_DRAWING]: Likewise.
5531 (x_set_toolkit_scroll_bar_thumb) [!USE_TOOLKIT_SCROLL_BARS]: Likewise.
5532 (x_scroll_bar_set_handle) [!USE_TOOLKIT_SCROLL_BARS]: Likewise.
5533
5534 * mactoolbox.c: New file.
5535
55362008-04-18 Jason Rumney <jasonr@gnu.org>
5537
5538 * dired.c (Ffile_attributes) [WINDOWSNT]: Cast uid and gid to unsigned.
5539
55402008-04-18 Stefan Monnier <monnier@iro.umontreal.ca>
5541
5542 * character.c (Fmultibyte_char_to_unibyte):
5543 Return latin1 chars unchanged.
5544
5545 * fileio.c (Fexpand_file_name): Refine last fix so `nm' is only
5546 relocated if it points to `name'.
5547
55482008-04-17 Kenichi Handa <handa@m17n.org>
5549
5550 * data.c (Faset): Allow setting a multibyte character in an
5551 ASCII-only unibyte string.
5552
5553 * lisp.h (STRING_SET_MULTIBYTE): New macro.
5554
55552008-04-16 Stefan Monnier <monnier@iro.umontreal.ca>
5556
5557 * Makefile.in: Don't use HAVE_GTK and don't -DUSE_GTK since it's now
5558 done in config.h.
5559
55602008-04-16 Juanma Barranquero <lekktu@gmail.com>
5561
5562 * character.c (Fchar_bytes, Fchar_width, Fstring_width)
5563 (Fchar_direction): Add usage in the docstring.
5564
55652008-04-15 Chong Yidong <cyd@stupidchicken.com>
5566
5567 * keyboard.c (read_key_sequence): Remove always-true checks.
5568
55692008-04-14 Jason Rumney <jasonr@gnu.org>
5570
5571 * w32font.c (w32font_open_internal): Set max_bounds.descent in
5572 compatibility struct, for better underline positioning.
5573
55742008-04-13 David Hansen <david.hansen@gmx.net>
5575
5576 * dbusbind.c (dbus-get-unique-name): Remove extra copying of name
5577 string.
5578
55792008-04-12 Dan Nicolaescu <dann@ics.uci.edu>
5580
5581 * m/hp800.h (XUINT, XSET): Remove.
5582
55832008-04-12 Juanma Barranquero <lekktu@gmail.com>
5584
5585 * fileio.c (Fexpand_file_name): Add declaration for `p' missing in
5586 previous change.
5587
55882008-04-12 Stefan Monnier <monnier@iro.umontreal.ca>
5589
5590 * fileio.c (Fexpand_file_name): Tighten the scope of `p' and `o' vars.
5591 Relocate `nm' after calling DECODE_FILE, in case the GC was run.
5592
55932008-04-11 Stefan Monnier <monnier@iro.umontreal.ca>
5594
5595 * keymap.h (map_keymap_canonical): Declare.
5596 * xmenu.c (single_keymap_panes): Use it.
5597
55982008-04-11 Glenn Morris <rgm@gnu.org>
5599
5600 * eval.c (Fdefvaralias): If the alias is bound and the target is not,
5601 set the target's value to that of the alias.
5602
56032008-04-11 Stefan Monnier <monnier@iro.umontreal.ca>
5604
5605 * term.c (set_tty_color_mode): Left over typo.
5606
56072008-04-10 Michael Albinus <michael.albinus@gmx.de>
5608
5609 * fileio.c (Fmake_symbolic_link): Surround code by #ifdef S_IFLNK
5610 only after check for file name handler functions. Signal, when
5611 native functionality is not supported.
5612 (syms_of_fileio): Declare it unconditionally.
5613
56142008-04-10 Jason Rumney <jasonr@gnu.org>
5615
5616 * w32menu.c (is_simple_dialog, simple_dialog_show): New functions.
5617 (Fx_popup_dialog): Handle simple yes/no questions as dialogs.
5618
5619 * w32.c (logon_network_drive): Also logon to remote drives that
5620 are mapped to drive letters.
5621
56222008-04-10 Glenn Morris <rgm@gnu.org>
5623
5624 * xdisp.c (truncate-partial-width-windows): Doc fix.
5625
56262008-04-10 Stefan Monnier <monnier@iro.umontreal.ca>
5627
5628 * fileio.c (read_file_name_cleanup, Fread_file_name_internal):
5629 Move functions to minibuffer.el.
5630 (syms_of_fileio): Don't declare them.
5631
56322008-04-09 Stefan Monnier <monnier@iro.umontreal.ca>
5633
5634 * minibuf.c (Vcompletion_auto_help): Move to minibuffer.el.
5635 (syms_of_minibuf): Remove its initialization.
5636
5637 * minibuf.c (temp_echo_area_glyphs): Remove unused function.
5638
56392008-04-09 Juanma Barranquero <lekktu@gmail.com>
5640
5641 * editfns.c (Ffield_string_no_properties): Fix typo in docstring.
5642
56432008-04-09 Jason Rumney <jasonr@gnu.org>
5644
5645 * makefile.w32-in (distclean): Delete makefile too.
5646 (maintainer-clean): New target.
5647
5648 * xdisp.c (redisplay_internal) [!WINDOWSNT]: Conditionalize last change.
5649
5650 * w32term.c (w32_compute_glyph_string_overhangs): Compute overhangs
5651 for new font backend and composite cases.
5652
56532008-04-09 Jan Djärv <jan.h.d@swipnet.se>
5654
5655 * atimer.c (alarm_signal_handler): Call run_timers if not SYNC_INPUT.
5656 Most of the code moved to run_timers.
5657 (do_pending_atimers): Call run_timers.
5658 (run_timers): New function.
5659
5660 * sysdep.c (emacs_write): If SYNC_INPUT and pending_atimers,
5661 run atimers.
5662
5663 * process.c (wait_reading_process_output): The same as above.
5664
56652008-04-09 Stefan Monnier <monnier@iro.umontreal.ca>
5666
5667 * minibuf.c (last_exact_completion): Remove variable.
5668 (Fdelete_minibuffer_contents, do_completion, Fminibuffer_complete)
5669 (complete_and_exit_1, complete_and_exit_2)
5670 (Fminibuffer_complete_and_exit, Fminibuffer_complete_word)
5671 (Fdisplay_completion_list, display_completion_list_1)
5672 (Fminibuffer_completion_help, Fself_insert_and_exit)
5673 (Fexit_minibuffer, Fminibuffer_message): Move functions to
5674 minibuffer.el.
5675 (syms_of_minibuf): Remove corresponding initializations.
5676
5677 * keyboard.c (Qdeactivate_mark): New var.
5678 (command_loop_1): Use it to call `deactivate-mark'.
5679 (syms_of_keyboard): Initialize it.
5680
5681 * xdisp.c (redisplay_internal): Reset tty's color_mode when switching
5682 to another frame.
5683 * frame.c (do_switch_frame): Refine the top_frame/async_visible code.
5684 Don't call set_tty_color_mode.
5685 (store_frame_param): Reset previous_frame rather than call
5686 set_tty_color_mode.
5687 * term.c (set_tty_color_mode): Rewrite.
5688 * dispextern.h (set_tty_color_mode): New type.
5689 * termchar.h (struct tty_display_info): Add `previous_color_mode'.
5690
56912008-04-08 Stefan Monnier <monnier@iro.umontreal.ca>
5692
5693 * keymap.c (access_keymap): Remove the value 2 for t_ok which was used
5694 for generic chars, which do not exist any more in emacs-unicode.
5695
56962008-04-08 Michael Albinus <michael.albinus@gmx.de>
5697
5698 * coding.c (detect_coding_emacs_mule)
5699 (Ffind_operation_coding_system): Fix typo.
5700
57012008-04-08 Jason Rumney <jasonr@gnu.org>
5702
5703 * w32uniscribe.c (SNAME): Extract only symbol name.
5704
5705 * w32font.h (struct w32_metric_cache): New struct.
5706 (w32font_info): Use it.
5707 (W32METRIC_NO_ATTEMPT, W32METRIC_SUCCESS, W32METRIC_FAIL)
5708 (CACHE_BLOCKSIZE): New constants.
5709
5710 * w32font.c (Qja, Qko, Qzh): New symbols.
5711 (syms_of_w32font): Initialise them.
5712 (font_matches_spec): Use them to filter by language.
5713 (recompute_cached_metrics): Remove function.
5714 (compute_metrics, clear_cached_metrics): New functions.
5715 (w32font_encode_char): Use them to manage metric cache.
5716 (w32font_text_extents): Cache metrics for all glyphs on demand.
5717 Delay converting glyph indices to WORD until needed.
5718 (w32font_open_internal): Initialize metric cache to empty.
5719 (registry_to_w32_charset): Charset should always be a symbol.
5720 (fill_in_logfont, list_all_matching_fonts): Family should
5721 always be a symbol.
5722
57232008-04-06 Jason Rumney <jasonr@gnu.org>
5724
5725 * w32uniscribe.c (uniscribe_shape): Increase items buffer size.
5726 Give up if glyph indices not supported. Use uniscribe obtained
5727 ABC widths for individual metrics. Map glyph clusters back to
5728 characters using fClusterStart flag. Return number of glyphs
5729 produced, not chars processed.
5730 (uniscribe_shape): Map char at FROM to current glyph.
5731
57322008-04-05 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
5733
5734 * macmenu.c (fill_menu) [TARGET_API_MAC_CARBON]:
5735 Use SetMenuItemHierarchicalMenu.
5736
57372008-04-05 Jason Rumney <jasonr@gnu.org>
5738
5739 * image.c (pbm_load): Allow color values up to 65535.
5740 Throw an error if max_color_idx is outside the supported range.
5741 Report an error when image size is invalid.
5742 Read two bytes at a time when raw images have max_color_idx above 255.
5743
57442008-04-05 Eli Zaretskii <eliz@gnu.org>
5745
5746 * w32.c (readdir): If FindFirstFile/FindNextFile return in
5747 cFileName a file name that includes `?' characters, use the 8+3
5748 alias in cAlternateFileName instead.
5749
57502008-04-05 Kenichi Handa <handa@ni.aist.go.jp>
5751
5752 * ccl.c (ccl_driver): If ccl->quit_silently is nonzero, don't
5753 append "CCL: Quitted" when the CCL program is quitted.
5754 (setup_ccl_program): Initialize ccl->quit_silently to zero.
5755
5756 * ccl.h (struct ccl_program): New member quit_silently.
5757
57582008-04-05 Chong Yidong <cyd@stupidchicken.com>
5759
5760 * search.c (compile_pattern_1): Treat non-nil and non-string of
5761 search-spaces-regexp as nil.
5762
5763 * minibuf.c (Fassoc_string): Tweak docstring.
5764
57652008-04-05 Eli Zaretskii <eliz@gnu.org>
5766
5767 * dired.c (Ffile_attributes): Support inode numbers wider than 32
5768 bits. Remove ugly WINDOWSNT-specific kludge introduced on
5769 2008-03-14 to force inode be positive.
5770
5771 * w32.c (sys_chown, stat, fstat): Use S_* constants instead of
5772 _S_* ones, since we now use our own sys/stat.h.
5773 (stat, fstat): Don't mangle the inode number.
5774 (init_user_info): Don't restrict UID and GID to 0-60000 range.
5775
57762008-04-04 Stefan Monnier <monnier@iro.umontreal.ca>
5777
5778 * frame.h (struct frame): Give one more bit to `visible' since we use
5779 values larger than 1 to indicate obscured frames on ttys.
5780
5781 * keymap.c (Qkeymap_canonicalize): New var.
5782 (Fmap_keymap_internal): New fun.
5783 (describe_map): Use keymap-canonicalize.
5784
5785 * undo.c (last_boundary_buffer, last_boundary_position): New vars.
5786 (Fundo_boundary): Set them.
5787 (syms_of_undo): Initialize them.
5788 (record_point): Use them instead of last_point_position*.
5789 (last_undo_buffer): Change type.
5790
57912008-04-04 Jason Rumney <jasonr@gnu.org>
5792
5793 * w32font.c (w32font_text_extents): Use font's ascent and descent.
5794 (recompute_cached_metrics): Don't set ascent and descent per char.
5795
5796 * w32uniscribe.c (uniscribe_check_otf): Fix last change.
5797 (uniscribe_check_otf): Add GC protection before consing.
5798 Rearrange loop for counting features.
5799
58002008-04-03 Stefan Monnier <monnier@iro.umontreal.ca>
5801
5802 * insdel.c (insert_from_buffer_1): Don't compare bytes in destination
5803 buffer with byte-size of source buffer.
5804
58052008-04-03 Chong Yidong <cyd@stupidchicken.com>
5806
5807 * callint.c (Fcall_interactively): Handle temporary region even
5808 when shift-select-mode is off.
5809
58102008-04-03 Jason Rumney <jasonr@gnu.org>
5811
5812 * w32uniscribe.c (uniscribe_check_otf): Sanity check otf_spec.
5813
58142008-04-03 Kenichi Handa <handa@m17n.org>
5815
5816 * coding.c (CATEGORY_MASK_ANY): Add CATEGORY_MASK_UTF_16_AUTO.
5817 (CATEGORY_MASK_UTF_16): Likewise.
5818 (detect_coding_utf_16): Add heuristics to reject utf-16 for a
5819 binary file.
5820 (detect_coding): Add null-byte detection for a binary file.
5821 (detect_coding_system): Likewise.
5822
58232008-04-03 Jason Rumney <jasonr@gnu.org>
5824
5825 * w32uniscribe.c: New file.
5826
5827 * font.h (uniscribe_font_driver) [WINDOWSNT]: Declare for w32fns.c.
5828
5829 * w32font.h (uniscribe_check_otf): Declare for w32font.c.
5830
5831 * w32font.c (Qbalinese, Qbuginese, Qbuhid, Qcuneiform, Qcypriot)
5832 (Qdeseret, Qglagolitic, Qgothic, Qhanunoo, Qkharoshthi)
5833 (Qlimbu, Qlinear_b, Qold_italic, Qold_persian, Qosmanya)
5834 (Qphags_pa, Qphoenician, Qshavian, Qsyloti_nagri)
5835 (Qtagalog, Qtagbanwa, Qtai_le, Qtifinagh, Qugaritic)
5836 (Qphonetic): New symbols.
5837 (syms_of_w32font): Initialize them.
5838 (font_supported_scripts): Use them.
5839 (w32font_list_family): List all charsets.
5840 (w32font_text_extents, recompute_cached_metrics): Fix metric
5841 calculations.
5842 (w32_enumfont_pattern_entity): Make full_type a DWORD.
5843 Give opentype fonts their own format.
5844 (font_matches_spec): New arguments backend and logfont.
5845 Handle :otf spec for uniscribe backend.
5846 (add_font_entity_to_list): Match truetype fonts in uniscribe backend.
5847 (fill_in_logfont): Use DEFAULT_CHARSET when charset not supplied.
5848
5849 * w32fns.c (Fx_create_frame): Conditionally register uniscribe
5850 font backend.
5851 (globals_of_w32fns): Initialize uniscribe font backend.
5852
5853 * makefile.w32-in (CONFIG_H): New variable. Use it to clean up
5854 dependencies.
5855 (w32uniscribe.$(O)): New file to build.
5856 (FONT_OBJ): Include w32uniscribe.$(O).
5857 (LIBS): Add uniscribe libraries.
5858
5859 * ftfont.c (ftfont_get_open_type_spec): Check spec->script, not val.
5860
58612008-04-02 Chong Yidong <cyd@stupidchicken.com>
5862
5863 * callint.c (Vshift_select_mode): New var.
5864 (Finteractive): Document new ^ spec.
5865 (Fcall_interactively): Call handle-shift-selection if the ^ spec
5866 is present.
5867
5868 * keyboard.c (Vthis_command_keys_shift_translated): New var.
5869 (command_loop_1): Avoid running the direct display versions of
5870 forward-char and backward-char if shift-selection may occur.
5871 (read_key_sequence): Set Vthis_command_keys_shift_translated if
5872 shift-translation takes place.
5873
5874 * buffer.c (Vtransient_mark_mode): Move docstring to simple.el to
5875 avoid clobbering by define-minor-mode.
5876
5877 * cmds.c (Fforward_char, Fbackward_char, Fforward_line)
5878 (Fbeginning_of_line, Fend_of_line): Add ^ interactive spec.
5879
5880 * syntax.c (Fforward_word): Add ^ interactive spec.
5881
5882 * window.c (Fscroll_up, Fscroll_down, Fscroll_left)
5883 (Fscroll_right): Add ^ interactive spec.
5884
58852008-04-01 Stefan Monnier <monnier@iro.umontreal.ca>
5886
5887 * xdisp.c (try_window_id): Don't forget to reset delta_bytes.
5888
5889 * casefiddle.c (casify_object): Fix up int/EMACS_INT mixup.
5890
5891 * charset.c (Funibyte_charset, Fset_unibyte_charset): Remove.
5892
58932008-03-31 Juri Linkov <juri@jurta.org>
5894
5895 * window.c (Fdisplay_buffer): Reinitialize `tem' to nil.
5896
58972008-03-30 Jan Djärv <jan.h.d@swipnet.se>
5898
5899 * gtkutil.c (xg_set_geometry): Fix indentation.
5900 (xg_resize_outer_widget): Remove.
5901 (x_wm_size_hint_off): Fix indentation.
5902 (xg_frame_set_char_size): Call flush_and_sync after
5903 gtk_window_resize.
5904 (x_wm_set_size_hint): Pass NULL as geometry window to
5905 gtk_window_set_geometry_hints due to Gtk+ bug nr 68668.
5906 Add menu bar and tool bar height to base height.
5907 (xg_update_frame_menubar, free_frame_menubar)
5908 (xg_tool_bar_detach_callback, xg_tool_bar_attach_callback)
5909 (update_frame_tool_bar, free_frame_tool_bar):
5910 Change xg_resize_outer_widget to xg_frame_set_char_size.
5911
59122008-03-30 Michael Albinus <michael.albinus@gmx.de>
5913
5914 * dbusbind.c (QCdbus_timeout): New D-Bus internal symbol.
5915 (Fdbus_call_method): New parameter TIMEOUT.
5916 (dbus-send-signal): Optimize UNGCPRO call.
5917
59182008-03-29 Juri Linkov <juri@jurta.org>
5919
5920 * window.c (Fdisplay_buffer): Move call to
5921 Vsplit_window_preferred_function out of conditions that check
5922 if window is eligible for vertical splitting.
5923 When Vsplit_window_preferred_function is non-nil, call it and use
5924 its non-nil return value as window. Otherwise, continue doing
5925 vertical splitting using Fsplit_window with arg horflag=nil.
5926 (syms_of_window) <Vsplit_window_preferred_function>: Change the
5927 default value from `split-window' to nil.
5928
59292008-03-29 Juri Linkov <juri@jurta.org>
5930
5931 * callint.c (Fcall_interactively): Revert 2008-03-16 change
5932 for interactive code letters 'b' and 'B'.
5933
59342008-03-29 Eli Zaretskii <eliz@gnu.org>
5935
5936 * fileio.c (Fexpand_file_name): Convert the value of $HOME to a
5937 multibyte string.
5938
59392008-03-29 Stefan Monnier <monnier@iro.umontreal.ca>
5940
5941 * keyboard.c (pending_funcalls): New var.
5942 (timer_check): Run it.
5943 (syms_of_keyboard): Initialize it.
5944 * terminal.c (Qrun_hook_with_args, Qdelete_terminal_functions)
5945 (Vdelete_terminal_functions): New vars.
5946 (syms_of_terminal): Initialize them.
5947 (Fdelete_terminal): Run delete-terminal-functions.
5948 * xdisp.c (safe_eval): Rewrite.
5949 (safe_call2): New fun.
5950 * frame.c (Qdelete_frame_functions): New var.
5951 (syms_of_frame): Initialize it.
5952 (Fdelete_frame): Use it and use safe_call2 and pending_funcalls.
5953 * lisp.h (safe_call2, pending_funcalls): Declare.
5954
59552008-03-28 Andreas Schwab <schwab@suse.de>
5956
5957 * indent.c (Fmove_to_column): Move declaration before statements.
5958
59592008-03-27 Stefan Monnier <monnier@iro.umontreal.ca>
5960
5961 * frame.h (enum fullscreen_type): Give it a name. Move it before use.
5962 (struct frame): Use bit fields for boolean vars.
5963
5964 * process.c (server_accept_connection): Simplify naming.
5965 (emacs_get_tty_pgrp): Use SDATA.
5966
5967 * coding.c (decode_coding_object): Fix last change.
5968
59692008-03-27 Jason Rumney <jasonr@gnu.org>
5970
5971 * w32fns.c (start_hourglass): Suppress hourglass on tty frames.
5972
59732008-03-27 Kenichi Handa <handa@ni.aist.go.jp>
5974
5975 * charset.c (Fdefine_charset_internal): Change the way of
5976 registering charsets in Vcharset_order_list.
5977 (syms_of_charset): Make the charset `eight-bit' supplementary.
5978
59792008-03-26 Alexandre Oliva <aoliva@redhat.com> (tiny change)
5980
5981 * regex.c (EXTEND_BUFFER): Change order of pointer addition
5982 operations, to avoid having the difference between pointers
5983 overflow.
5984
59852008-03-26 Stefan Monnier <monnier@iro.umontreal.ca>
5986
5987 * indent.c (check_display_width): New fun.
5988 (scan_for_column): Use it.
5989
5990 * data.c (syms_of_data): Mark most-positive-fixnum and
5991 most-negative-fixnum as constants.
5992
5993 * xdisp.c (redisplay_internal): Reset selected_frame earlier.
5994
5995 * indent.c (scan_for_column): Extract from current_column_1.
5996 Merge with the same code from Fmove_to_column.
5997 (current_column_1, Fmove_to_column): Use it.
5998
59992008-03-25 Stefan Monnier <monnier@iro.umontreal.ca>
6000
6001 * keymap.c (map_keymap_internal): New fun.
6002 (map_keymap): Use it.
6003 (Fmap_keymap_internal): New fun.
6004 (Fmap_keymap): Remove left-out test from before make_save_value.
6005
6006 * keymap.c (Fmap_keymap): Use `map-keymap-sorted.
6007
6008 * frame.c (Fmodify_frame_parameters, x_set_frame_parameters):
6009 Use XCAR/XCDR.
6010
6011 * process.h (struct Lisp_Process): Remove filter_multibyte.
6012 * process.c (QCfilter_multibyte): Remove.
6013 (setup_process_coding_systems): Don't use filter_multibyte.
6014 (Fstart_process, Fmake_network_process): Don't set filter_multibyte.
6015 (read_process_output): Don't adjust multibyteness to filter_multibyte.
6016 (Fset_process_filter_multibyte): Change the coding-system to
6017 approximate the previous behavior.
6018 (Fprocess_filter_multibyte_p): Get the multibyteness straight from the
6019 coding-system.
6020
6021 * coding.c (decode_coding_object): When not decoding into a buffer,
6022 obey the coding system's preference of (uni|multi)byte.
6023
60242008-03-24 Stefan Monnier <monnier@iro.umontreal.ca>
6025
6026 * casefiddle.c (casify_object): Avoid pathological N^2 worst case if
6027 every char is changed and has a different byte-length.
6028 (Fupcase_word, Fdowncase_word, Fcapitalize_word, operate_on_word):
6029 Fix int -> EMACS_INT.
6030
60312008-03-23 David Hansen <david.hansen@gmx.net>
6032
6033 * dbusbind.c (xd_read_message): Remove extra copying of message
6034 strings. Check for NULL `interface' or `member'.
6035
60362008-03-22 Eli Zaretskii <eliz@gnu.org>
6037
6038 * w32.c (readdir): If FindFirstFile/FindNextFile return in
6039 cFileName a file name that includes `?' characters, use the 8+3
6040 alias in cAlternateFileName instead.
6041
60422008-03-21 Stefan Monnier <monnier@iro.umontreal.ca>
6043
6044 * buffer.c (enlarge_buffer_text): Fix int -> EMACS_INT.
6045
60462008-03-20 Stefan Monnier <monnier@iro.umontreal.ca>
6047
6048 * intervals.c (temp_set_point, temp_set_point_both): Use EMACS_INT.
6049 (set_point, set_point_both): Use EMACS_INT. Remove `buffer' arg,
6050 work on current_buffer only instead (that was already the case
6051 for some of the code anyway).
6052 * buffer.h (set_point, set_point_both): Remove buffer arg, use long int.
6053 (temp_set_point, temp_set_point_both): Use EMACS_INT.
6054 (SET_PT, SET_PT_BOTH): Adjust.
6055 * intervals.h (set_point, temp_set_point, set_point_both)
6056 (temp_set_point_both): Remove redundant declarations.
6057
60582008-03-20 Stefan Monnier <monnier@iro.umontreal.ca>
6059
6060 * fileio.c (Finsert_file_contents):
6061 * lread.c (Feval_buffer): Use BUF_TEMP_SET_PT.
6062 * buffer.h (BUF_SET_PT): Remove. set_point_both doesn't work right
6063 when buffer != current_buffer anyway.
6064
60652008-03-20 Andreas Schwab <schwab@suse.de>
6066
6067 * callint.c (Fcall_interactively) [case 'B']: Use other-buffer
6068 as default.
6069
60702008-03-19 Jason Rumney <jasonr@gnu.org>
6071
6072 * w32fns.c (hourglass_timer, hourglass_hwnd): New variables.
6073 (syms_of_w32fns): Initialize them.
6074 (HOURGLASS_ID): New constant.
6075 (x_window_to_frame): Don't check hourglass_window.
6076 (w32_wnd_proc) <WM_TIMER>: Handle hourglass_timer.
6077 (w32_wnd_proc) <WM_EXITMENULOOP>: Set pending hourglass cursor.
6078 (w32_wnd_proc) <WM_SETCURSOR>: Set the hourglass or current cursor.
6079 (w32_wnd_proc) <WM_EMACS_SETCURSOR>: Set frame's current_cursor.
6080 Only change the cursor if hourglass is not active.
6081 (Fx_create_frame): Initialize frame's current_cursor.
6082 (hourglass_atimer): Remove.
6083 (hourglass_started): New function.
6084 (start_hourglass, cancel_hourglass, hide_hourglass): Adapt to w32.
6085 (show_hourglass): Adapt to w32, changing argument to frame.
6086
6087 * w32term.h (struct w32_output): Remove hourglass_window.
6088 Add current_cursor.
6089
6090 * eval.c (call_debugger, Fsignal):
6091 * keyboard.c (recursive_edit_1, cmd_error, Ftop_level)
6092 (command_loop_1, Fread_key_sequence, Fread_key_sequence_vector)
6093 (Fexecute_extended_command, cancel_hourglass_unwind):
6094 * minibuf.c (read_minibuf):
6095 * fns.c (Fy_or_n_p): Enable hourglass when HAVE_WINDOW_SYSTEM.
6096
60972008-03-19 Stefan Monnier <monnier@iro.umontreal.ca>
6098
6099 * window.c (run_funs): New fun.
6100 (run_window_configuration_change_hook): Use it to run the buffer-local
6101 and the global part of the hook.
6102
6103 * xdisp.c (format_mode_line_unwind_data): Add window argument.
6104 (unwind_format_mode_line): Restore selected window.
6105 (x_consider_frame_title, Fformat_mode_line): Set selected window.
6106
61072008-03-17 Stefan Monnier <monnier@iro.umontreal.ca>
6108
6109 * editfns.c (Fchar_equal): Check they are valid characters.
6110
6111 * buffer.h (Fbuffer_list): Declare (for use in callint.c).
6112
61132008-03-17 Andreas Schwab <schwab@suse.de>
6114
6115 * regex.c (re_match_2_internal): Properly match raw 8-bit bytes
6116 against a charset.
6117
6118 * lisp.h (Fbuffer_list): Declare.
6119
61202008-03-17 Jan Djärv <jan.h.d@swipnet.se>
6121
6122 * gtkutil.c (free_frame_tool_bar): Only call gtk_container_remove if
6123 handlebox_widget is != 0.
6124
61252008-03-16 Juri Linkov <juri@jurta.org>
6126
6127 * callint.c (Fcall_interactively): For interactive code letters
6128 'b' and 'B' put the buffer list into the list of default "future"
6129 values of the minibuffer.
6130
61312008-03-16 Andreas Schwab <schwab@suse.de>
6132
6133 * keyboard.c (read_key_sequence): Fix downcasing of letters with
6134 modifiers.
6135
6136 * regex.c (re_match_2_internal): Correct matching of a charset
6137 against latin-1 characters.
6138
61392008-03-16 Kenichi Handa <handa@m17n.org>
6140
6141 * coding.c (CHAR_STRING_ADVANCE_NO_UNIFY)
6142 (STRING_CHAR_ADVANCE_NO_UNIFY): New macros.
6143 (coding_alloc_by_making_gap): Fix the way to preserve data in the gap.
6144 (alloc_destination): Fix the 2nd arg to coding_alloc_by_making_gap.
6145 (encode_coding_utf_8): Use CHAR_STRING_ADVANCE_NO_UNIFY instead of
6146 CHAR_STRING_ADVANCE.
6147 (produce_chars): Fix for the case that the source and the
6148 destination are the same buffer. Use CHAR_STRING_ADVANCE_NO_UNIFY
6149 instead of CHAR_STRING_ADVANCE.
6150 (consume_chars): Use STRING_CHAR_ADVANCE_NO_UNIFY instead of
6151 STRING_CHAR_ADVANCE.
6152
61532008-03-15 Andreas Schwab <schwab@suse.de>
6154
6155 * regex.c (re_match_2_internal): Correct matching of eight bit
6156 characters in unibyte strings.
6157
61582008-03-15 Martin Rudalics <rudalics@gmx.at>
6159
6160 * buffer.c (overlays_in, Foverlays_in): Include empty overlays
6161 at end of range when it coincides with the end of the buffer.
6162
61632008-03-14 Eli Zaretskii <eliz@gnu.org>
6164
6165 * dired.c (Ffile_attributes) [WINDOWSNT]: Force inode be positive.
6166
6167 * w32fns.c (globals_of_w32fns, Fx_create_frame): Fix last change.
6168
61692008-03-14 Jason Rumney <jasonr@gnu.org>
6170
6171 * editfns.c (initial_tz): New variable.
6172 (syms_of_editfns): Initialize it.
6173 (Fset_time_zone_rule): Set it when first called.
6174 Use it when TZSTRING is nil.
6175
6176 * w32fns.c (MONITOR_DEFAULT_TO_NEAREST, struct MONITOR_INFO)
6177 (MonitorFromPoint_Proc, GetMonitorInfo_Proc): New definitions.
6178 (monitor_from_point_fn, get_monitor_info_fn): New globals.
6179 (globals_of_w32fns): Initialize them.
6180 (compute_tip_xy): Use them to position tooltips.
6181
61822008-03-14 Glenn Morris <rgm@gnu.org>
6183
6184 * emacs.c (main): Revert previous change.
6185 (standard_args): Revert -internal-script back to -scriptload,
6186 and remove the long-option form.
6187
61882008-03-13 Glenn Morris <rgm@gnu.org>
6189
6190 * emacs.c (main, standard_args): Rename -scriptload to -internal-script.
6191 Remove option -enable-font-backend.
6192
61932008-03-12 Stefan Monnier <monnier@iro.umontreal.ca>
6194
6195 * buffer.c (Fswitch_to_buffer): Fall back on pop-to-buffer.
6196
61972008-03-11 Jan Djärv <jan.h.d@swipnet.se>
6198
6199 * xterm.c (x_connection_closed): For GTK: If this is the last
6200 terminal just exit without closing the display.
6201
62022008-03-11 Jason Rumney <jasonr@gnu.org>
6203
6204 * w32font.c (w32font_full_name): Use floor to round.
6205
62062008-03-10 dhruva <dhruvakm@gmail.com> (tiny change)
6207
6208 * sound.c (alsa_configure): Declare vol at beginning of block.
6209
6210 * fontset.c (Ffontset_info): Remove extra semicolon.
6211
62122008-03-10 Stefan Monnier <monnier@iro.umontreal.ca>
6213
6214 * fileio.c (Fsubstitute_in_file_name): Fix up computation of maximum
6215 size of resulting string.
6216
62172008-03-10 Jason Rumney <jasonr@gnu.org>
6218
6219 * dispnew.c (adjust_glyph_matrix): Initialize window_height.
6220
62212008-03-10 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
6222
6223 * xdisp.c (handle_single_display_spec): Undo 2007-10-16 changes.
6224 Don't pretend as if characters with display property haven't been
6225 consumed for string-replacing-string case.
6226
62272008-03-08 Kim F. Storm <storm@cua.dk>
6228
6229 * xdisp.c (GET_NEXT_DISPLAY_ELEMENT): New macro.
6230 (get_next_display_element, next_element_from_string)
6231 (next_element_from_ellipsis, next_element_from_buffer): Use it.
6232
62332008-03-08 Andreas Schwab <schwab@suse.de>
6234
6235 * process.h (struct Lisp_Process): Declare bit fields as unsigned.
6236
62372008-03-06 Jason Rumney <jasonr@gnu.org>
6238
6239 * w32font.c (w32_registry): Take font_type argument. Use ANSI
6240 when charset not specified. Only translate ANSI to unicode when
6241 font_type is truetype.
6242 (w32font_coverage_ok): New function.
6243 (add_font_entity_to_list): Use it to filter unsuitable fonts.
6244
62452008-03-05 Kenichi Handa <handa@ni.aist.go.jp>
6246
6247 * lread.c (Fread_char): Resolve modifiers.
6248 (Fread_char_exclusive): Likewise.
6249
6250 * character.c (char_resolve_modifier_mask): New function.
6251 (char_string): Use char_resolve_modifier_mask.
6252 (Fchar_resolve_modifiers): New function.
6253 (syms_of_character): Declare Fchar_resolve_modifiers as Lisp
6254 function.
6255
62562008-03-04 Jason Rumney <jasonr@gnu.org>
6257
6258 * makefile.w32-in: Always include w32font.c in the build.
6259 * w32font.c: Wrap in USE_FONT_BACKEND conditional.
6260
62612008-03-04 Andreas Schwab <schwab@suse.de>
6262
6263 * Makefile.in (clean): Remove emacs-*.*.* instead of emacs-*.
6264 (versionclean): Likewise.
6265
62662008-03-04 Juanma Barranquero <lekktu@gmail.com>
6267
6268 * .cvsignore: Add oo.
6269
62702008-03-03 Andreas Schwab <schwab@suse.de>
6271
6272 * coding.c (decode_coding_object): Inhibit gap shrinking while
6273 decoding in place.
6274
62752008-03-03 Dan Nicolaescu <dann@ics.uci.edu>
6276
6277 * w32term.c: Remove unused include "gnu.h".
6278 * makefile.w32-in (w32term.o): Don't depend on gnu.h.
6279
6280 * gnu.h: Rename to ...
6281 * emacs-icon.h: ... this.
6282 * xterm.c: Use emacs-icon.h instead of gnu.h.
6283 * Makefile (xterm.o): Depend on emacs-icon.h, not gnu.h.
6284
62852008-03-03 Juanma Barranquero <lekktu@gmail.com>
6286
6287 * w32font.c: Include math.h.
6288
62892008-03-03 Jason Rumney <jasonr@gnu.org>
6290
6291 * w32font.c (recompute_cached_metrics): Change font arg to w32font_info.
6292 Compute options separately.
6293 (w32font_open_internal): Set glyph_idx before caching metrics.
6294
6295 * w32font.h (NTM_PS_OPENTYPE, NTM_TT_OPENTYPE, NTM_TYPE1):
6296 Define if system headers don't.
6297 (struct w32font_info): Enlarge ascii_metrics. Add glyph_idx.
6298 (w32font_encode_char): Don't declare here.
6299
6300 * w32font.c (Quniscribe, QCformat): New symbols.
6301 (syms_of_w32font): Define them.
6302 (w32font_has_char): Indicate uncertainty.
6303 (w32font_encode_char): Encode as glyph point. Make static.
6304 (recompute_cached_metrics): New function.
6305 (w32font_open_internal): Use it. Set font to use glyph points
6306 initially. Set format based on type of font.
6307 (w32font_text_extents, w32font_draw): Optionally use glyph points.
6308 (w32_enumfont_pattern_entity): Accept backend arg. Set type based
6309 on it. Set format based on information available here.
6310 (add_font_entity_to_list): Identify backend based on opentype_only.
6311
63122008-03-02 Andreas Schwab <schwab@suse.de>
6313
6314 * ftfont.c (ftfont_pattern_entity): Fix aliasing violations.
6315
6316 * coding.c (decode_coding_big5, produce_chars):
6317 Fix typos in last change.
6318
63192008-03-02 Kentaro Ohkouchi <nanasess@fsm.ne.jp>
6320
6321 * gnu.h: New icon.
6322
63232008-03-02 Kenichi Handa <handa@m17n.org>
6324
6325 * coding.c (decode_coding_utf_8): When eol-type of CODING is
6326 `dos', don't decode '\r' if that is the last in the source.
6327 (decode_coding_utf_16, decode_coding_emacs_mule)
6328 (decode_coding_iso_2022, decode_coding_sjis, decode_coding_big5)
6329 (decode_coding_raw_text, decode_coding_charset): Likewise.
6330 (produce_chars): Don't decode EOL here. Use EMACS_INT.
6331
63322008-03-01 Jason Rumney <jasonr@gnu.org>
6333
6334 * w32font.c (w32font_full_name): Report point size for scalable fonts.
6335
63362008-03-01 Kim F. Storm <storm@cua.dk>
6337
6338 * dispextern.h (CHAR_GLYPH_SPACE_P): Check for default face.
6339
63402008-03-01 Jason Rumney <jasonr@gnu.org>
6341
6342 * w32font.c (w32font_full_name): New function.
6343 (w32font_open_internal): Use it.
6344
63452008-03-01 Kim F. Storm <storm@cua.dk>
6346
6347 * dispnew.c (line_draw_cost): Fix invalid glyph check.
6348
63492008-03-01 Jason Rumney <jasonr@gnu.org>
6350
6351 * font.c (font_unparse_fcname): Increase len when style is a symbol.
6352
63532008-03-01 Jan Djärv <jan.h.d@swipnet.se>
6354
6355 * xterm.c (handle_one_xevent): For Gtk+ and ConfigureNotify, call
6356 xg_frame_resized when the event is for the edit widget.
6357
6358 * gtkutil.h (xg_frame_resized): Renamed from xg_resize_widgets.
6359
6360 * gtkutil.c (xg_resize_outer_widget): Only do one of set_geometry or
6361 set_char_size.
6362 (xg_frame_resized): Renamed from xg_resize_widgets. Remove all
6363 operations on widgets here. Just set frame size if needed.
6364 (flush_and_sync, x_wm_size_hint_off, xg_pack_tool_bar): New functions.
6365 (xg_frame_set_char_size): Call x_wm_size_hint_off before resizing.
6366 (x_wm_set_size_hint): Set size hints on the edit widget only, not
6367 the whole frame.
6368 (xg_create_tool_bar): Move attachment of the tool bar to
6369 xg_pack_tool_bar. Do not attach the tool bar if there are no items.
6370 (free_frame_tool_bar): Remove call to SET_FRAME_GARBAGED.
6371
63722008-03-01 Jason Rumney <jasonr@gnu.org>
6373
6374 * w32fns.c (w32_msg_pump): Disable debug code.
6375
63762008-03-01 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
6377
6378 * m/intel386.h [MAC_OSX || DARWIN]: Define NO_ARG_ARRAY if _LP64.
6379
63802008-02-29 Chong Yidong <cyd@stupidchicken.com>
6381
6382 * xdisp.c (next_overlay_string): Don't set
6383 overlay_strings_at_end_processed_p if we're currently reading from
6384 a display string.
6385
63862008-02-29 Stefan Monnier <monnier@iro.umontreal.ca>
6387
6388 * xdisp.c (get_overlay_strings_1): Fix typo.
6389
63902008-02-29 Chong Yidong <cyd@stupidchicken.com>
6391
6392 * xdisp.c (get_overlay_strings_1): Add missing argument type.
6393
63942008-02-28 Kenichi Handa <handa@ni.aist.go.jp>
6395
6396 * ftfont.c (ftfont_match): Explicitly set pixelsize in pattern.
6397
6398 * xdisp.c (display_mode_element): Cancel the previous change.
6399 (decode_mode_spec): Likewise.
6400 (handle_auto_composed_prop): Don't make composition if it->string
6401 is a string.
6402
64032008-02-27 Kim F. Storm <storm@cua.dk>
6404
6405 * lisp.h (GLYPH): Change type from int to struct with separate char
6406 and face_id members.
6407 (GLYPH_MASK_FACE, GLYPH_MASK_CHAR): Delete macros.
6408 (GLYPH_CHAR, GLYPH_FACE): Remove slow versions with frame arg.
6409 (FAST_GLYPH_CHAR, FAST_GLYPH_FACE): Rename macros to ...
6410 (GLYPH_CHAR, GLYPH_FACE): ... these. Change users.
6411 (FAST_MAKE_GLYPH, MAKE_GLYPH): Remove. Rewrite users to use ...
6412 (SET_GLYPH, SET_GLYPH_CHAR, SET_GLYPH_FACE): ... these macros instead.
6413 (GLYPH_CODE_CHAR, GLYPH_CODE_FACE, GLYPH_CODE_P)
6414 (GLYPH_CODE_CHAR_VALID_P, SET_GLYPH_FROM_GLYPH_CODE): New macros to
6415 handle new Lisp glyph code encoding, either an integer or a cons.
6416
6417 * disptab.h (GLYPH_SIMPLE_P): Rewrite.
6418 (GLYPH_ALIAS): Delete.
6419 (GLYPH_ALIAS_P, GLYPH_FOLLOW_ALIASES): Rewrite.
6420 (GLYPH_LENGTH, GLYPH_STRING): Use GLYPH_CHAR.
6421 (GLYPH_FROM_CHAR): Replace macro by ...
6422 (SET_GLYPH_FROM_CHAR): ... this macro. Change users.
6423
6424 * dispextern.h (CHAR_GLYPH_SPACE_P): Simplify.
6425 (GLYPH_FROM_CHAR_GLYPH): Replace macro by ...
6426 (SET_GLYPH_FROM_CHAR_GLYPH): ... this macro. Change users.
6427 (GLYPH_INVALID_P): New macro.
6428 (spec_glyph_lookup_face): Update prototype.
6429
6430 * dispnew.c (line_draw_cost): Adapt to new glyph type.
6431 (build_frame_matrix_from_leaf_window): Adapt to new glyph type and
6432 new glyph code encoding.
6433 (spec_glyph_lookup_face): No return value; update passed glyph instead.
6434 (init_display): Use SET_CHAR_GLYPH to initialize space_glyph.
6435
6436 * xdisp.c (get_next_display_element, next_element_from_display_vector):
6437 Adapt to new glyph type and new glyph code encoding.
6438
6439 * term.c (encode_terminal_code, produce_special_glyphs): Likewise.
6440
6441 * indent.c (current_column, current_column_1, Fmove_to_column)
6442 (compute_motion): Adapt to new glyph code encoding.
6443
6444 * msdos.c (IT_write_glyphs): Adapt to new glyph type.
6445
64462008-02-27 Chong Yidong <cyd@stupidchicken.com>
6447
6448 * process.c (wait_reading_process_output): Check for window
6449 changes caused by timers.
6450 Suggested by Johan Bockgård.
6451
64522008-02-27 Glenn Morris <rgm@gnu.org>
6453
6454 * emacs.c (USAGE1): Add `--disable-font-backend'.
6455
64562008-02-27 Stefan Monnier <monnier@iro.umontreal.ca>
6457
6458 * fileio.c (Finsert_file_contents): Don't reset undo_list if no change
6459 is made to the buffer.
6460
64612008-02-26 Stefan Monnier <monnier@iro.umontreal.ca>
6462
6463 * dispextern.h (face_at_buffer_position, face_for_overlay_string)
6464 (face_at_string_position):
6465 * xfaces.c (face_at_buffer_position, face_for_overlay_string)
6466 (face_at_string_position):
6467 * xdisp.c (display_string, next_overlay_change):
6468 * buffer.h (overlays_at):
6469 * buffer.c (overlays_at): Use EMACS_INT for buffer positions.
6470 Update callers.
6471
64722008-02-26 Chong Yidong <cyd@stupidchicken.com>
6473
6474 * editfns.c (Fformat): Doc fix.
6475
64762008-02-26 Juanma Barranquero <lekktu@gmail.com>
6477
6478 * font.c (Ffont_spec, Ffont_at): Fix typos in docstrings.
6479 (Ffont_put, Flist_families, Ffont_fill_gstring, Ffont_drive_otf)
6480 (Ffont_otf_alternates, Fquery_font): Doc fixes.
6481
64822008-02-25 Stefan Monnier <monnier@iro.umontreal.ca>
6483
6484 * buffer.c (Fbuffer_swap_text): New function.
6485 (syms_of_buffer): Defsubr it.
6486
64872008-02-25 Chong Yidong <cyd@stupidchicken.com>
6488
6489 * keyboard.c (command_loop_1): Revert 2006-10-09 change.
6490
64912008-02-25 Jason Rumney <jasonr@gnu.org>
6492
6493 * w32font.c (w32font_draw): Draw one character at a time when padding.
6494
64952008-02-25 Stefan Monnier <monnier@iro.umontreal.ca>
6496
6497 * window.c (Fdelete_window, Fadjust_window_trailing_edge):
6498 Handle a nil arg. Use run_window_configuration_change_hook.
6499 (delete_window, adjust_window_trailing_edge): Don't handle nil any more.
6500 (Fenlarge_window, Fshrink_window, Fset_window_configuration):
6501 Use run_window_configuration_change_hook.
6502
65032008-02-25 Kenichi Handa <handa@ni.aist.go.jp>
6504
6505 * xdisp.c (x_produce_glyphs): For a visible glyph, assure at least
6506 1-pixel width.
6507
65082008-02-25 Kenichi Handa <handa@ni.aist.go.jp>
6509
6510 * xdisp.c (fill_glyph_string): Pay attention to glyph->padding_p.
6511 (append_glyph): Set glyph->pixel_width and glyph->padding_p to 1
6512 if the glyph in the font is zero pixel with.
6513
6514 * dispextern.h (struct glyph_string): New member padding_p.
6515
6516 * w32font.c (w32font_draw): Pay attention to s->padding_p.
6517
6518 * ftxfont.c (ftxfont_draw): Pay attention to s->padding_p.
6519
6520 * xfont.c (xfont_draw): Pay attention to s->padding_p.
6521
6522 * xftfont.c (xftfont_draw): Pay attention to s->padding_p.
6523
6524 * font.c: If the font driver doesn't have `shape' function, return Qnil.
6525
65262008-02-25 Jason Rumney <jasonr@gnu.org>
6527
6528 * w32fns.c (enum_font_cb2): Don't use raster fonts for Unicode.
6529
65302008-02-24 Stefan Monnier <monnier@iro.umontreal.ca>
6531
6532 Allow fine-grained image-cache flushing.
6533 * dispextern.h (struct image): Add `dependencies' field.
6534 (clear_image_caches): Change arg to Lisp_Object.
6535 * image.c (make_image): Initialize `dependencies' field.
6536 (clear_image_cache): Change arg to allow fine-grained flushing.
6537 Perform the flush even if image-cache-eviction-delay is nil.
6538 (clear_image_caches): Change arg to Lisp_Object.
6539 (Fclear_image_cache): Expand meaning of the argument.
6540 (mark_image): Mark `dependencies' field.
6541 * xfaces.c (clear_face_cache): Adapt arg to call to clear_image_caches.
6542 (lface_hash): Use XHASH rather than XFASTINT.
6543 (face_at_buffer_position): Fix int -> EMACS_INT position.
6544 * xdisp.c (next_overlay_change): Fix int -> EMACS_INT position.
6545 (select_frame_for_redisplay): Remove code duplication.
6546 (redisplay_internal): Adapt arg to call to clear_image_caches.
6547
65482008-02-24 Dan Nicolaescu <dann@ics.uci.edu>
6549
6550 * s/vms4-0.h:
6551 * s/vms4-2.h:
6552 * s/vms4-4.h:
6553 * s/vms5-5.h: Remove, unused.
6554
6555 * s/irix5-2.h:
6556 * s/irix6-0.h:
6557 * s/riscos5.h:
6558 * s/mach-bsd4-3.h:
6559 * m/mips4.h: Remove files for obsolete systems.
6560
6561 * Makefile.in:
6562 * filelock.c:
6563 * unexmips.c:
6564 * m/hp9000s300.h:
6565 * m/iris4d.h:
6566 * s/aix3-1.h:
6567 * s/hpux.h:
6568 * s/msdos.h:
6569 * s/usg5-0.h:
6570 * s/usg5-2-2.h:
6571 * s/usg5-2.h:
6572 * s/usg5-3.h: Remove references to obsolete variables.
6573
6574 * s/irix5-0.h: Remove, move all the contents ...
6575 * s/irix6-5.h: ... here. Simplify.
6576 * config.in: Regenerate.
6577
65782008-02-24 Jason Rumney <jasonr@gnu.org>
6579
6580 * w32term.c (x_draw_glyph_string_background): Clear the background
6581 manually when cleartype is in use.
6582 (x_draw_glyph_string_foreground): Draw text transparently when
6583 cleartype is in use.
6584
6585 * w32font.c (w32font_text_extents): Avoid getting HDC and selecting
6586 a font into it unless we have to.
6587
65882008-02-19 Stefan Monnier <monnier@iro.umontreal.ca>
6589
6590 * intervals.h (INT_LISPLIKE): Remove. It may misfire.
6591 (NULL_INTERVAL_P, SET_INTERVAL_PARENT): Don't use it.
6592
65932008-02-18 Jason Rumney <jasonr@gnu.org>
6594
6595 * w32fns.c (Fw32_shell_execute): Encode parameters.
6596
65972008-02-09 Eli Zaretskii <eliz@gnu.org>
6598
6599 * fileio.c (syms_of_fileio) <insert-default-directory>: Doc fix.
6600
66012008-02-05 Juanma Barranquero <lekktu@gmail.com>
6602
6603 * unexhp9k800.c (read_header): Replace `legal' with `valid'.
6604
66052008-02-24 Ulrich Neumerkel <ulrich@complang.tuwien.ac.at> (tiny change)
6606
6607 * xterm.c (x_set_offset): Don't change the gravity if
6608 CHANGE_GRAVITY is -1.
6609
66102008-02-23 Chong Yidong <cyd@stupidchicken.com>
6611
6612 * fileio.c (auto_save_error_occurred): New var.
6613 (auto_save_error): Set it.
6614 (Fdo_auto_save): Don't overwrite the error message if an auto-save
6615 error occurred.
6616
66172008-02-23 Eli Zaretskii <eliz@gnu.org>
6618
6619 * w32.c (globals_of_w32): Add initializations for
6620 g_b_init_get_sid_sub_authority and
6621 g_b_init_get_sid_sub_authority_count.
6622
66232008-02-22 Stefan Monnier <monnier@iro.umontreal.ca>
6624
6625 * font.c (font_match_xlfd, font_check_xlfd_parse): New funs.
6626 (font_parse_xlfd): Use them for sanity check.
6627 (Finternal_set_font_style_table): Make sure the table is bijective.
6628
6629 Consolidate the image_cache to the terminal struct.
6630 * termhooks.h (P_): Remove redundant def.
6631 (struct terminal): New field `image_cache'.
6632 * frame.h (FRAME_IMAGE_CACHE): New macro. Use it everywhere in place
6633 of FRAME_X_IMAGE_CACHE.
6634 * xterm.h (struct x_display_info): Remove image_cache field.
6635 (FRAME_X_IMAGE_CACHE): Remove. Use FRAME_IMAGE_CACHE instead.
6636 * w32term.h (struct w32_display_info): Remove image_cache field.
6637 (FRAME_X_IMAGE_CACHE): Remove. Use FRAME_IMAGE_CACHE instead.
6638 * macterm.h (struct mac_display_info): Remove image_cache field.
6639 (FRAME_X_IMAGE_CACHE): Remove. Use FRAME_IMAGE_CACHE instead.
6640 * xterm.c (x_term_init):
6641 * w32term.c (w32_term_init):
6642 * macterm.c (mac_term_init): Set the image_cache in the terminal.
6643 * dispextern.h (clear_image_cache, forall_images_in_image_cache):
6644 Remove declarations.
6645 (clear_image_caches, mark_image_cache): New declarations.
6646 * xfaces.c (clear_face_cache):
6647 * xdisp.c (redisplay_internal): Use clear_image_caches.
6648 * image.c (clear_image_cache): Don't check that a frame is on
6649 a window-system before checking if it shares the same cache.
6650 (clear_image_caches): New function.
6651 (Fclear_image_cache): Use it.
6652 (mark_image): Move from allo.c.
6653 (mark_image_cache): Move from alloc.c and forall_images_in_image_cache.
6654 * alloc.c (mark_image, mark_image_cache): Move to image.c.
6655 (mark_object): Don't call mark_image_cache for frames.
6656 (mark_terminals): Call mark_image_cache.
6657
6658 * lisp.h (Fdelete_terminal): Declare.
6659
6660 * charset.h (CHECK_CHARSET, CHECK_CHARSET_GET_ID)
6661 (CHECK_CHARSET_GET_ATTR): Don't use the inexistent return value of
6662 wrong_type_argument.
6663
66642008-02-22 Kenichi Handa <handa@ni.aist.go.jp>
6665
6666 * Makefile.in (lisp): Remove devanagari.el, kannada.el,
6667 malayalam.el, and tamil.el. Add sinhala.el.
6668
66692008-02-21 Stefan Monnier <monnier@iro.umontreal.ca>
6670
6671 * xterm.c (x_connection_closed): Consolidate identical tests.
6672 (x_delete_terminal): Don't crash if called via x_connection_closed.
6673
66742008-02-21 Kenichi Handa <handa@ni.aist.go.jp>
6675
6676 * xdisp.c (decode_mode_spec): New arg string.
6677 (display_mode_element): Adjust for the above change.
6678
66792008-02-19 Stefan Monnier <monnier@iro.umontreal.ca>
6680
6681 * callint.c (Fcall_interactively): Use AREF.
6682
66832008-02-18 Stefan Monnier <monnier@iro.umontreal.ca>
6684
6685 * font.c (font_unparse_xlfd): Don't ignore integer pixel size specs.
6686
66872008-02-18 Jan Djärv <jan.h.d@swipnet.se>
6688
6689 * xfns.c (Fx_show_tip): Set string to " " if empty.
6690
66912008-02-17 Dan Nicolaescu <dann@ics.uci.edu>
6692
6693 * callint.c (syms_of_callint): Initialize Vmark_even_if_inactive
6694 with Qt.
6695
66962008-02-17 Kenichi Handa <handa@m17n.org>
6697
6698 * ftfont.c (ftfont_shape): Return Lispy number.
6699
6700 * xfaces.c (prepare_face_for_display): Use display_info->font->fid
6701 for GCs.
6702 (Finternal_set_font_selection_order): Call font_update_sort_order
6703 only when enable_font_backend is set.
6704 (realize_x_face): Set face->font_info to that of default face only
6705 when enable_font_backend is set.
6706
6707 * xdisp.c (handle_composition_prop): Set it->c to the fist
6708 character of the composed region.
6709 (fill_composite_glyph_string): Set base_face->font_info to
6710 s->font_info. Get a face for ascii from base_face->ascii_face.
6711 (BUILD_COMPOSITE_GLYPH_STRING): Call fill_composite_glyph_string
6712 with a face already decided.
6713 (x_produce_glyphs): Be sure to set it->ascent and it->descent to
6714 non-negative.
6715 (x_produce_glyphs): If the composition method is ..._WITH_GLYPH_STRING,
6716 call font_prepare_composition unconditionally.
6717
6718 * xfns.c (x_make_gc): Use the default font id of the frame for GCs.
6719
6720 * xterm.h (struct x_display_info): New member font.
6721
6722 * xterm.c (x_set_cursor_gc): Use display_info->font->fid for GCs.
6723 (x_set_mouse_face_gc, x_new_font): Likewise.
6724 (x_term_init): Setup display_info->font.
6725 (x_delete_terminal): Free display_info->font.
6726
6727 * xfont.c (xfont_draw): Use BLOCK_INPUT and UNBLOCK_INPUT.
6728
6729 * ftxfont.c (ftxfont_default_fid): Delete it.
6730 (ftxfont_open): Set xfont->fid to 0.
6731 (ftxfont_end_for_frame): Clear data specific to the frame and the
6732 font-driver.
6733
6734 * xftfont.c (xftfont_default_fid): Delete it.
6735 (xftfont_open): Set xfont->fid to 0.
6736
6737 * fontset.c (FONTSET_OBJLIST): New macro.
6738 (fontset_find_font): Update font-object list of the fontset.
6739 (free_realized_fontset): New function.
6740 (free_face_fontset): Call free_realized_fontset.
6741 (Ffont_info): Call font_close_object only when enable_font_backend
6742 is set.
6743
6744 * font.c [HAVE_X_WINDOWS]: Include xterm.h.
6745 [HAVE_NTGUI]: Include w32term.h.
6746 [MAC_OS]: Include macterm.ch.
6747 (font_otf_ValueRecord): Use make_number.
6748 (font_finish_cache): Fix handling of reference count.
6749 (font_clear_cache): Update num_fonts.
6750 (font_open_entity): Update smallest_char_width and
6751 smallest_font_height of the frame.
6752 (font_close_object): Update num_fonts.
6753 (Fclear_font_cache): Fix finding the target cache data.
6754
67552008-02-16 Glenn Morris <rgm@gnu.org>
6756
6757 * fontset.c (Finternal_char_font): Fix compilation warning.
6758
67592008-02-16 Eli Zaretskii <eliz@gnu.org>
6760
6761 * w32.c (init_user_info): Use TOKEN_USER and TOKEN_PRIMARY_GROUP
6762 instead of char arrays. Enlarge the size of array passed to
6763 get_token_information.
6764
6765 * font.c (Ffont_fill_gstring, Fget_font_glyphs): Fix compilation
6766 warnings.
6767
67682008-02-15 Dan Nicolaescu <dann@ics.uci.edu>
6769
6770 * .gdbinit: Don't set `args', it breaks gdb --args.
6771
67722008-02-14 Stefan Monnier <monnier@iro.umontreal.ca>
6773
6774 * fileio.c (Finsert_file_contents): Adjust offsets when replacing
6775 within a narrowed buffer.
6776
67772008-02-14 Kenichi Handa <handa@ni.aist.go.jp>
6778
6779 * coding.c (decode_coding_object, encode_coding_object):
6780 Preserve Vdeactivate_mark. Delete unnecessary call of Fcurrent_buffer.
6781
67822008-02-12 Stefan Monnier <monnier@iro.umontreal.ca>
6783
6784 * coding.c (coding_set_destination): Use BEG_BYTE rather than
6785 hardcoding 1.
6786 (detect_coding_system):
6787 * lisp.h (detect_coding_system, chars_in_text, multibyte_chars_in_text)
6788 (string_char_to_byte, string_byte_to_char, insert_from_gap):
6789 * insdel.c (insert_from_gap):
6790 * fns.c (string_char_byte_cache_charpos, string_char_byte_cache_bytepos)
6791 (string_char_to_byte, string_byte_to_char, string_make_multibyte)
6792 (string_to_multibyte):
6793 * character.c (chars_in_text, multibyte_chars_in_text):
6794 * fileio.c (Finsert_file_contents): Use EMACS_INT for buffer positions.
6795
6796 * character.h (FETCH_STRING_CHAR_ADVANCE)
6797 (FETCH_STRING_CHAR_AS_MULTIBYTE_ADVANCE)
6798 (FETCH_STRING_CHAR_ADVANCE_NO_CHECK): Use SDATA and SREF.
6799 (DEC_POS, BUF_DEC_POS): Use BEG_BYTE rather than hardcoding 1.
6800
6801 * casefiddle.c (casify_region): Only call after-change and composition
6802 functions on the part of the region that was changed.
6803
6804 * keyboard.c (read_avail_input):
6805 * frame.c (Fdelete_frame): Call Fdelete_terminal.
6806
68072008-02-11 Stefan Monnier <monnier@iro.umontreal.ca>
6808
6809 * buffer.c (clone_per_buffer_values, reset_buffer_local_variables)
6810 (Fbuffer_local_value, Fbuffer_local_variables): Don't forget undo_list.
6811
68122008-02-11 Juanma Barranquero <lekktu@gmail.com>
6813
6814 * w32menu.c (push_submenu_start, push_submenu_end)
6815 (push_left_right_boundary, push_menu_pane, push_menu_item):
6816 * keyboard.c (read_key_sequence): Don't pass args with side effects
6817 to AREF, it fails when compiling with -DENABLE_CHECKING.
6818
68192008-02-11 Kenichi Handa <handa@ni.aist.go.jp>
6820
6821 * Makefile.in (${lispsource}international/charprop.el):
6822 Delete this target.
6823
6824 * search.c (boyer_moore): Fix incorrect synching of the trunk and
6825 emacs-unicode-2.
6826
68272008-02-11 Stefan Monnier <monnier@iro.umontreal.ca>
6828
6829 * terminal.c (Fdelete_terminal): Clean up the `force' path.
6830
68312008-02-10 Stefan Monnier <monnier@iro.umontreal.ca>
6832
6833 * frame.c (Qnoelisp): New symbol.
6834 (syms_of_frame): Initialize it.
6835 (Fdelete_frame): Use it to distinguish a mere `force' passed from some
6836 harmless Elisp code, from a strong `force' from x_connection_closed.
6837 * frame.h (Qnoelisp): Declare.
6838 * xterm.c (x_connection_closed): Pass `noelisp'.
6839
6840 * lisp.h (struct Lisp_Misc_Any, struct Lisp_Marker)
6841 (struct Lisp_Overlay, struct Lisp_Kboard_Objfwd)
6842 (struct Lisp_Save_Value, struct Lisp_Free): Use enum Lisp_Misc_Type
6843 rather than `int' for the type of `type'.
6844
68452008-02-10 Dan Nicolaescu <dann@ics.uci.edu>
6846
6847 * s/gnu-linux.h: Remove support for non-ELF and linux-1.x.
6848
6849 * Makefile.in (GNUC): Remove support for gcc-1.x.
6850
68512008-02-10 Richard Stallman <rms@gnu.org>
6852
6853 * lisp.h (ASET): Use AREF, not ASLOT.
6854
68552008-02-10 Stefan Monnier <monnier@iro.umontreal.ca>
6856
6857 * lisp.h (ASET): Check bounds.
6858
68592008-02-10 Glenn Morris <rgm@gnu.org>
6860
6861 * buffer.c (mode-name): Doc fix.
6862
68632008-02-09 Dan Nicolaescu <dann@ics.uci.edu>
6864
6865 * Makefile.in:
6866 * emacs.c:
6867 * gmalloc.c:
6868 * keyboard.c:
6869 * lisp.h:
6870 * m/ibm370aix.h:
6871 * process.c:
6872 * regex.c:
6873 * s/hpux.h:
6874 * sysdep.c:
6875 * sysselect.h:
6876 * systty.h:
6877 * unexec.c:
6878 * w32term.c:
6879 * xsmfns.c:
6880 * xterm.c: Remove code that deals with obsolete variables.
6881
6882 * s/msdos.h (DONT_NEED_ENVIRON): Don't define.
6883
6884 * ecrt0.c: Replace the DONT_NEED_ENVIRON test with MSDOS test,
6885 nothing else needs it anymore.
6886
68872008-02-09 Eli Zaretskii <eliz@gnu.org>
6888
6889 * buffer.h (FETCH_CHAR_AS_MULTIBYTE): Use unibyte_to_multibyte_table
6890 instead of unibyte_char_to_multibyte.
6891
68922008-02-09 Dan Nicolaescu <dann@ics.uci.edu>
6893
6894 * s/gnu-linux.h: Remove commented out code.
6895
6896 * unexec.c: Remove references to obsolete variable COFF_ENCAPSULATE.
6897
6898 * Makefile.in: Update what RMS says about using autoconf.
6899 (C_COMPILER, COFF_ENCAPSULATE, MAKE_PARALLEL): Remove obsolete variable.
6900 (C_SWITCH_MACHINE_1, C_SWITCH_SYSTEM_1, C_SWITCH_SITE_1)
6901 (C_SWITCH_X_SITE_1, C_SWITCH_X_MACHINE_1)
6902 (C_SWITCH_X_SYSTEM_1): Move invariant code outside conditional.
6903
69042008-02-08 Stefan Monnier <monnier@iro.umontreal.ca>
6905
6906 * keymap.c (Fkey_description): Move side effect outside of macro call.
6907
6908 * xfaces.c (Finternal_make_lisp_face):
6909 * keyboard.c (add_command_key, parse_menu_item): Use ASET.
6910
6911 * fontset.c (free_face_fontset): Use FONTSET_FROM_ID.
6912 (syms_of_fontset): Use ASET.
6913
6914 * fns.c (concat): Move side effect outside of macro call.
6915 (hash_clear): Use ASET.
6916
69172008-02-08 Richard Stallman <rms@gnu.org>
6918
6919 * frame.c (Fdelete_frame): If FORCE, don't call hooks.
6920 If FORCE, and frame has a surrogate minibuffer for another frame,
6921 delete the other frame first.
6922
69232008-02-07 Timo Savola <timo.savola@iki.fi>
6924
6925 * xterm.c (x_detect_focus_change): Handle embed client message.
6926 (handle_one_xevent): Ditto.
6927 (handle_one_xevent): If embedded and we get a button press/release,
6928 request focus.
6929 (xembed_set_info, xembed_send_message): New functions.
6930 (x_make_frame_visible): Call xembed_set_info if embedded.
6931 (x_make_frame_invisible): Call xembed_set_info if embedded.
6932 (x_term_init): Initialize Xatom_XEMBED.
6933 (x_make_frame_visible): Check for FRAME_X_EMBEDDED_P also.
6934 (x_iconify_frame): Ditto.
6935
6936 * xterm.h (struct x_display_info): Add AtomXatom_XEMBED.
6937 (enum xembed_info, enum xembed_message, enum xembed_focus)
6938 (enum xembed_modifier, enum xembed_accelerator): New.
6939 (xembed_set_info, xembed_send_message): Declare.
6940 (FRAME_X_EMBEDDED_P): New.
6941
6942 * gtkutil.c (xg_create_frame_widgets): If frame is embedded, call
6943 gtk_plug_new.
6944
6945 * xfns.c (Fx_create_frame): Do not override the explicitly set parent
6946 window ID of a frame.
6947 (x_window): Reparent frame if embedded.
6948 (Fx_create_frame): Don't set border width if embedded.
6949
6950 * emacs.c (USAGE3): Add --parent-id.
6951 (standard_args): Ditto.
6952
69532008-02-07 Jan Djärv <jan.h.d@swipnet.se>
6954
6955 * coding.c (DECODE_EMACS_MULE_COMPOSITION_CHAR): Use "do...while (0)".
6956
69572008-02-07 Jim Meyering <meyering@redhat.com>
6958
6959 Use "do...while (0)", not "if (1)...else" in macro definitions.
6960 The latter provokes a warning from gcc about the empty else, when
6961 followed by ";". Also, without that trailing semicolon, it would
6962 silently swallow up any following statement.
6963 * syntax.h (SETUP_SYNTAX_TABLE)
6964 (SETUP_SYNTAX_TABLE_FOR_OBJECT): Likewise.
6965 * buffer.h (DECODE_POSITION): Likewise.
6966 * character.h (FETCH_STRING_CHAR_ADVANCE): Likewise.
6967 (FETCH_STRING_CHAR_AS_MULTIBYTE_ADVANCE): Likewise.
6968 (FETCH_STRING_CHAR_ADVANCE_NO_CHECK): Likewise.
6969 (FETCH_CHAR_ADVANCE): Likewise.
6970 (FETCH_CHAR_ADVANCE_NO_CHECK): Likewise.
6971
69722008-02-07 Jim Meyering <meyering@redhat.com>
6973
6974 * lread.c [lint]: Don't include <sys/inode.h>.
6975
69762008-02-07 Stefan Monnier <monnier@iro.umontreal.ca>
6977
6978 * xselect.c (x_handle_dnd_message):
6979 * xmenu.c (digest_single_submenu, xmenu_show):
6980 * xdisp.c (with_echo_area_buffer_unwind_data)
6981 (format_mode_line_unwind_data, unwind_format_mode_line)
6982 (display_menu_bar):
6983 * eval.c (Ffetch_bytecode):
6984 * doc.c (store_function_docstring):
6985 * ccl.c (resolve_symbol_ccl_program, ccl_get_compiled_code)
6986 (Fccl_execute, Fccl_execute_on_string, Fregister_code_conversion_map):
6987 * buffer.c (add_overlay_mod_hooklist): Use ASET.
6988
69892008-02-07 Kenichi Handa <handa@m17n.org>
6990
6991 * ftxfont.c (ftxfont_open): Don't set
6992 dpyinfo->smallest_font_height and dpyinfo->smallest_char_width to 0.
6993
6994 * ftfont.c (ftfont_open): Fix previous change.
6995
69962008-02-06 Jason Rumney <jasonr@gnu.org>
6997
6998 * w32font.c (w32font_text_extents): Fill in lbearing metric.
6999 Use cached metrics for ASCII characters.
7000 (w32font_open_internal): Don't set font's owning_frame.
7001 Cache metrics for ASCII characters.
7002
7003 * w32font.h (struct w32font_info): Add ascii_metrics.
7004 Remove owning_frame.
7005
70062008-02-06 Kenichi Handa <handa@ni.aist.go.jp>
7007
7008 * xdisp.c (x_produce_glyphs): Don't set it->ascent and it->descent
7009 to negative value.
7010
7011 * ftxfont.c (ftxfont_draw): Use s->font_info, not face->font_info.
7012
7013 * ftfont.c (ftfont_open): Fix calculation of font->font.average_width.
7014
7015 * charset.c (syms_of_charset): Set QCtest and Qeq.
7016
70172008-02-06 Stefan Monnier <monnier@iro.umontreal.ca>
7018
7019 * process.c (Fstart_process):
7020 * callproc.c (Fcall_process): Handle the case where
7021 Funhandled_file_name_directory returns nil.
7022
7023 * font.h (enum lgstring_indices, enum lglyph_indices): New enums.
7024 (LGSTRING_SLOT, LGSTRING_SET_SLOT): New macros.
7025 * font.c (check_gstring): Use them and AREF to access the vector before
7026 we know it's really a gstring.
7027 (Ffont_shape_text): Fix typo.
7028 (Ffont_shape_text, Ffont_otf_alternates): Fix up int/Lisp_Oject mixups.
7029
7030 * composite.h (Fcompose_region_internal, Fcompose_string_internal):
7031 Declare.
7032
7033 * chartab.c (make_sub_char_table): Remove noop-yet-incorrect statement.
7034
70352008-02-05 Jason Rumney <jasonr@gnu.org>
7036
7037 * w32font.c (w32font_open_internal): Fill min_width with tmAveCharWidth.
7038 Set smallest_font_height and smallest_char_width in display info.
7039
70402008-02-05 Kenichi Handa <handa@ni.aist.go.jp>
7041
7042 * coding.c (decode_eol): Pay attention to coding->dst_multibyte.
7043
70442008-02-05 Miles Bader <miles@gnu.org>
7045
7046 * xfaces.c (get_lface_attributes, merge_named_face)
7047 (lookup_named_face, lookup_derived_face, realize_named_face):
7048 Revert 2008-02-01 change by cyd@stupidchicken.com.
7049
70502008-02-04 Kenichi Handa <handa@ni.aist.go.jp>
7051
7052 * fontset.c (Ffontset_info): Handle the case of inhibitting the
7053 fallback fonts.
7054 (Ffontset_info) [USE_FONT_BACKEND]: Fix getting of opened font names.
7055
70562008-02-04 Jason Rumney <jasonr@gnu.org>
7057
7058 * w32font.c (w32font_open_internal): Use font_unparse_fcname to
7059 set full_name.
7060 (w32font_open_internal): Use xmalloc, xrealloc, xfree.
7061
70622008-02-03 Jason Rumney <jasonr@gnu.org>
7063
7064 * makefile.w32-in (OBJ1): Include font.o here.
7065 (FONTOBJ) [USE_FONTBACKEND]: Instead of here.
7066
70672008-02-02 Jason Rumney <jasonr@gnu.org>
7068
7069 * makefile.w32-in (temacs): Bump EMHEAP to 21.
7070
70712008-02-01 Jason Rumney <jasonr@gnu.org>
7072
7073 * s/cygwin.h: Define VIRT_ADDR_VARIES.
7074
7075 * puresize.h [VIRT_ADDR_VARIES]: Don't include CYGWIN in condition.
7076
70772008-02-01 Andreas Schwab <schwab@suse.de>
7078
7079 * Makefile.in (shortlisp, lisp): Update for rename of
7080 ../lisp/language/myanmar.el.
7081
70822008-02-01 Chong Yidong <cyd@stupidchicken.com>
7083
7084 * xfaces.c (get_lface_attributes): Delete function.
7085 (merge_named_face, lookup_named_face, lookup_derived_face)
7086 (realize_named_face): Call lface_from_face_name directly, and use
7087 the fact that merge_face_vectors does not alter its FROM argument.
7088
70892008-02-01 Jason Rumney <jasonr@gnu.org>
7090
7091 * w32term.c (w32_read_socket) <WM_CHAR>: Decode non-Unicode
7092 input in the default locale. Handle non-Unicode multibyte input.
7093
70942008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
7095
7096 * fontset.c (reorder_font_vector): Exclude nil elements from the
7097 font group. Don't try multiple fonts.
7098 (fontset_font): Adjust for the above change.
7099 (Finternal_char_font): Return nil if the found font doesn't
7100 contain the character ch.
7101
7102 * Makefile.in (lisp, shortlisp): Add cham.el.
7103
71042008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
7105
7106 * font.h (FONTP): Make it return 1 also for a font-object.
7107
7108 * .gdbinit (xfontset): New function.
7109
7110 * font.c (font_find_for_lface): Check if the character C is
7111 supported or not only for the first font.
7112
7113 * fontset.c (reorder_font_vector): Fix typo.
7114 (fontset_find_font): Don't add a font-spec specifying a script.
7115 Use 0 (not Qt) for the indication of empty font-group. Change the
7116 format of RFONT-DEF. Return Qt if no font in the font-group
7117 support the character.
7118 (fontset_font): Adjust for the above change. If no font was
7119 found the character, remember that.
7120 (face_for_char): Adjust for the change of RFONT-DEF.
7121 (Fset_fontset_font): Allow nil for FONT-SPEC to explicitly specify
7122 no font for the target.
7123 (Finternal_char_font): Adjust for the change of RFONT-DEF.
7124
71252008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
7126
7127 * font.c (font_load_for_face): Handle the case that the font in
7128 face->lface is a string.
7129
71302008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
7131
7132 * xfaces.c (set_lface_from_font_and_fontset): Set the fontname in lface.
7133
71342008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
7135
7136 * xfaces.c (Finternal_set_lisp_face_attribute) [USE_FONT_BACKEND]:
7137 Fix previous change. If the frame is not on a window system,
7138 signal an error.
7139
71402008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
7141
7142 * coding.c (decode_coding_object, encode_coding_object): Adjust
7143 marker positions after conversion.
7144
7145 * lisp.h (struct Lisp_Marker): New member need_adjustment.
7146
71472008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
7148
7149 * font.c (font_find_for_lface): Fix the handling of the return
7150 value of font_has_char.
7151 (Ffont_shape_text): Fix previous change.
7152
7153 * fontset.c (FONTSET_REF_AND_RANGE): Delete it.
7154 (fontset_ref_and_range): Delete it.
7155 (fontset_find_font): Call char_table_ref_and_range instead of
7156 FONTSET_REF_AND_RANGE.
7157 (make_fontset): Don't setup font groups of Latin here.
7158 (Fset_fontset_font): Don't overwrite the setting of FONTSET_ASCII.
7159 (new_fontset_from_font): Make the specified font the default for
7160 all Latin characters.
7161
71622008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
7163
7164 * xfaces.c (Finternal_set_lisp_face_attribute): Check if the frame
7165 is on a window system before accessing the fontset of the frame.
7166
71672008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
7168
7169 * Makefile.in (lisp, shortlisp): Add kherm.el and myanmar.el.
7170
7171 * ftfont.c (ftfont_driver): Set ftfont_shape in ftfont_driver only
7172 when both HAVE_M17N_FLT and HAVE_LIBOTF are defined.
7173
7174 * font.c (Ffont_shape_text): If the font driver doesn't have a
7175 shaper function, make zero-width glyphs to have at least one-pixel
7176 width. Fix setting of `to' field of glyphs.
7177
71782008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
7179
7180 * ftfont.c (ftfont_drive_otf): Fix setting of FROM and TO slots of
7181 glyphs.
7182
7183 * font.h (struct font_driver): Improve docstring of member `shape'.
7184
71852008-02-01 Kenichi Handa <handa@m17n.org>
7186
7187 * composite.c (syms_of_composite): Fix docstring of
7188 auto-composition-function.
7189
7190 * font.h (LGLYPH_SIZE): New macro.
7191
7192 * font.c (Ffont_fill_gstring): Stop filling when a character not
7193 supported by the font is found.
7194 (Ffont_shape_text): When a shape callback function returns nil,
7195 try at most two more times with larger gstring.
7196 (Ffont_at): Fix getting of w. Call font_at with correct 5th argument.
7197
7198 * xdisp.c (handle_auto_composed_prop): Change the argument to
7199 auto-composition-function.
7200
7201 * ftfont.c (ftfont_encode_char): Use the macro FONT_INVALID_CODE.
7202 (ftfont_shape_by_flt): If an element of lgstring is nil, make a
7203 Lispy glyph and store it in the lgstring.
7204
7205 * xfont.c (xfont_encode_char): Use the macro FONT_INVALID_CODE.
7206
7207 * xftfont.c (xftfont_encode_char): Use the macro FONT_INVALID_CODE.
7208
72092008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
7210
7211 * font.c (Ffont_shape_text): Avoid unnecessary composition.
7212
7213 * fontset.c (Vfont_encoding_charset_alist): New variable.
7214 (syms_of_fontset): DEFVAR it.
7215 (reorder_font_vector, fontset_find_font): Optimize for the case of
7216 no need of reordering.
7217 (face_for_char): Map the charset property by
7218 Vfont_encoding_charset_alist.
7219
72202008-02-01 Jason Rumney <jasonr@gnu.org>
7221
7222 * w32font.c (logfonts_match): Don't check adstyle here.
7223 (font_matches_spec): Check here against physical font instead.
7224 (add_font_entity_to_list): Avoid some substitutions.
7225
7226 * font.c (font_parse_fcname): Default weight and slant to normal.
7227 (font_score): Prefer normal fonts if weight or slant unspecified.
7228 (font_score) [WINDOWSNT]: Scale weight difference down to closer
7229 match freetype scores.
7230
72312008-02-01 Jason Rumney <jasonr@gnu.org>
7232
7233 * w32font.c (w32font_text_extents): Don't use the frame stored in the
7234 font, as it may have been deleted.
7235 (w32_enumfont_pattern_entity): Map generic family to adstyle using
7236 most common hyphenless variation.
7237 (logfonts_match): Check generic family.
7238 (font_matches_spec): Don't check generic family here.
7239 (fill_in_logfont): Set generic family based on adstyle.
7240
7241 * w32font.h (w32font_get_cache): Update declaration.
7242
72432008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
7244
7245 * ftfont.c (ftfont_get_cache): Adjust the argument type.
7246
7247 * frame.c (x_set_font_backend): Don't call Fclear_font_cache.
7248 If none of the new drivers are available, call font_update_drivers
7249 with the old drivers.
7250
7251 * w32font.c (w32font_get_cache): Adjust the argument type.
7252
7253 * xfont.c (xfont_get_cache): Adjust the argument type.
7254
7255 * font.h (struct font_driver): Change argument type of get_cache.
7256
7257 * xftfont.c (xftfont_start_for_frame): Delete prototype.
7258
7259 * font.c (Ffont_get): Fix arguments to Fassoc.
7260 (font_prepare_cache, font_finish_cache, font_get_cache): New functions.
7261 (font_clear_cache): New function.
7262 (font_list_entities, font_matching_entity): Use font_get_cache.
7263 (font_update_drivers): Call font_clear_cache when finishing a driver.
7264
7265 * fontset.c (fontset_find_font): Fix previous change.
7266
72672008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
7268
7269 * xterm.c (x_check_font) [USE_FONT_BACKEND]: Don't access
7270 dpyinfo->font_table.
7271 (x_delete_display) [USE_FONT_BACKEND]: Likewise.
7272 (x_delete_terminal) [USE_FONT_BACKEND]: Likewise.
7273
7274 * font.c (font_at): Handle the case that the arg C is negative.
7275 Handle the unibyte case.
7276 (Ffont_at): Call font_at with the arg C -1.
7277
7278 * xdisp.c (handle_auto_composed_prop): Don't get a character at
7279 the position here, and call font_at with the arg C -1.
7280 Don't check the range of the existing composition at the point.
7281
72822008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
7283
7284 * fontset.c (fontset_add): New args charset_id and family.
7285 Change caller.
7286 (load_font_get_repertory, fontset_find_font): Assume that
7287 font_spec is always a font-spec object.
7288 (Fset_fontset_font): Always store a font-spec object in a fontset.
7289
7290 * xdisp.c (handle_auto_composed_prop): Use Fget_text_property
7291 instead of get_property_and_range.
7292
72932008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
7294
7295 * xftfont.c (struct xftfont_info): Delete the member ft_face.
7296 (xftfont_open): Don't keep locking face.
7297 (xftfont_close): Don't unlock face.
7298 (xftfont_anchor_point, xftfont_shape): Lock and unlock face.
7299
7300 * fontset.c (fontset_find_font): Don't prefer a font of
7301 supplementary charset.
7302
73032008-02-01 Kenichi Handa <handa@m17n.org>
7304
7305 * ftfont.c (struct OpenTypeSpec): Rename members script_tag to
7306 script, langsys_tag to langsys, new member script.
7307 (OTF_TAG_STR): Terminate by '\0'.
7308 (ftfont_get_open_type_spec): If :otf prop is is spec, Limit the
7309 listing to the script specified in that property. Fix arg to
7310 OTF_check_features.
7311
73122008-02-01 Jason Rumney <jasonr@gnu.org>
7313
7314 * w32font.h: New file.
7315
7316 * w32font.c: Include it.
7317 (struct w32font_info): Add owning_frame field. Move to w32font.h.
7318 (w32font_open): Set owning_frame.
7319 (w32font_text_extents): Use owning_frame.
7320 (struct font_callback_data): Add opentype_only field.
7321 (add_font_entity_to_list): Use it to filter fonts.
7322 Don't check against full name.
7323 (w32font_list_internal): New function.
7324 (w32font_list): Use it.
7325 (w32font_match_internal): New function.
7326 (w32font_match): Use it.
7327 (w32font_open_internal): New function.
7328 (w32font_open): Use it.
7329 (w32font_get_cache, w32font_close, w32font_has_char)
7330 (w32font_encode_char, w32font_text_extents, w32font_draw):
7331 Make non-static.
7332
7333 * makefile.w32-in (w32font.o): Depend on w32font.h.
7334
73352008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
7336
7337 * charset.c (Fdefine_charset_internal): Record a supplementary
7338 charset at the tail of Vcharset_order_list.
7339
7340 * font.c (Ffont_shape_text): Fix the return value.
7341
7342 * ftfont.c (OTF_SYM_TAG, OTF_TAG_STR): Fix argument names.
7343
7344 * xdisp.c (handle_auto_composed_prop): Fix previous change.
7345
73462008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
7347
7348 * ftfont.c (struct OpenTypeSpec): New struct.
7349 (OTF_SYM_TAG, OTF_TAG_STR): New macros.
7350 (ftfont_get_open_type_spec): New function.
7351 (ftfont_list) [HAVE_LIBOTF]: Check otf-spec property.
7352
7353 * lread.c (read1): Redo the previous change with checking Vpurify_flag.
7354
73552008-02-01 Jason Rumney <jasonr@gnu.org>
7356
7357 * w32font.c (add_font_entity_to_list): Compare only the beginning
7358 of full name.
7359
73602008-02-01 Kenichi Handa <handa@m17n.org>
7361
7362 * xdisp.c (handle_auto_composed_prop): Simplify the code.
7363 Never return HANDLED_RECOMPUTE_PROPS.
7364
73652008-02-01 Kenichi Handa <handa@m17n.org>
7366
7367 * font.c (font_gstring_produce): Delete it.
7368
7369 * composite.h (COMPOSITION_METHOD):
7370 Handle COMPOSITION_WITH_GLYPH_STRING.
7371
73722008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
7373
7374 * xfont.c (Qx): Delete.
7375 (syms_of_xfont): Don't initialize Qx.
7376
7377 * composite.h (enum composition_method):
7378 Define COMPOSITION_WITH_GLYPH_STRING unconditionally.
7379
73802008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
7381
7382 * xfaces.c [HAVE_WINDOW_SYSTEM]: Include "font.h" unconditionally.
7383 (choose_face_font): Accept new form of font-spec.
7384
7385 * frame.h (font_driver_list): Declare it unconditionally.
7386 (struct frame): Define members font_driver_list and font_data_list
7387 unconditionally.
7388
7389 * fontset.c: Include "font.h" unconditionally.
7390 (generate_ascii_font_name): Use font_parse_xlfd and font_unparse_xlfd.
7391 (Fset_fontset_font): Accept a font-spec object.
7392
7393 * font.c (font_unparse_xlfd): If pixel_size is zero, make the
7394 PIXEL_SIZE part a wild card.
7395
7396 * dispextern.h (struct glyph_string): Define members clip and
7397 num_clips unconditionally.
7398 (struct face): Define members font_info and extra unconditionally.
7399
7400 * ftfont.c (ftfont_open): Set members maybe_otf and otf of
7401 ftfont_info only when HAVE_LIBOTF is defined.
7402
74032008-02-01 Andreas Schwab <schwab@suse.de>
7404
7405 * xdisp.c (back_to_previous_visible_line_start): Fix type of beg
7406 and end.
7407
74082008-02-01 Jason Rumney <jasonr@gnu.org>
7409
7410 * w32font.c (w32font_driver): Add new fields.
7411
74122008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
7413
7414 * Makefile.in (ALL_CFLAGS): Add @M17N_FLT_CFLAGS@.
7415 (FONTSRC, FONTOBJ) [HAVE_WINDOW_SYSTEM]: Set them unconditionally.
7416 (LIBES): Add @M17N_FLT_CFLAGS@.
7417
7418 * composite.c (compose_text): Don't treat the new style
7419 composition specially.
7420
7421 * emacs.c (main): Call syms_of_font unconditionally.
7422
7423 * font.h (FONT_ENTITY_NOT_LOADABLE)
7424 (FONT_ENTITY_SET_NOT_LOADABLE): New macros.
7425 (LGSTRING_XXXX, LGLYPH_XXX): Adjust for the change of lispy gstring.
7426 (struct font_driver): New member shape.
7427 (font_registry_charsets): Extern it.
7428 (font_find_for_lface, font_prepare_composition): Adjust prototype.
7429 (font_otf_capability, font_drive_otf): Delete their externs.
7430
7431 * font.c [HAVE_M17N_FLT]: Include <m17n-flt.h>.
7432 (font_charset_alist, font_registry_charsets): Move from xfont.c
7433 and rename.
7434 (font_prop_validate_otf): New function.
7435 (font_property_table): Register it for QCotf.
7436 (DEVICE_DELTA, adjust_anchor, REPLACEMENT_CHARACTER)
7437 (font_drive_otf): Delete.
7438 (font_prepare_composition): New arg F. Adjust for the change of
7439 lispy gstring.
7440 (font_find_for_lface): New arg C.
7441 (font_load_for_face): Adjust for the change of font_find_for_lface.
7442 (Ffont_make_gstring, Ffont_fill_gstring): Adjust for the change of
7443 lispy gstring.
7444 (Ffont_shape_text): New function.
7445 (Fopen_font): If the font size is not given, use 12-pixel.
7446 (Ffont_at): New arg STRING.
7447 (syms_of_font): Initalize font_charset_alist.
7448 Declare Ffont_shape_text as a Lisp function. Call syms_of_XXfont
7449 conditionally.
7450
7451 * fontset.c (fontset_find_font) [USE_FONT_BACKEND]: Try multiple
7452 fonts of the same font-spec. Change the format of RFONT-DEF.
7453 (face_for_char, make_fontset_for_ascii_face, Finternal_char_font):
7454 Adjust for the change of RFONT-DEF.
7455 (Fset_fontset_font) [USE_FONT_BACKEND]: Handle new format of font-spec.
7456
7457 * ftfont.h: New file.
7458
7459 * ftfont.c: Don't include Freetype headers. Include "ftfont.h".
7460 (struct ftfont_info) [HAVE_LIBOTF]: New members maybe_otf and otf.
7461 (ftfont_open) [HAVE_LIBOTF]: Initialize the above members.
7462 (ftfont_driver) [HAVE_LIBOTF, HAVE_M17N_FLT]: Don't set
7463 font_otf_capability and font_drive_otf, set ftfont_shape.
7464 (ftfont_list): Adjust for the change of :otf property value.
7465 (struct MFLTFontFT) [HAVE_LIBOTF, HAVE_M17N_FLT]: New struct.
7466 (ftfont_get_glyph_id, ftfont_get_metrics, ftfont_check_otf)
7467 (adjust_anchor, ftfont_drive_otf, ftfont_shape_by_flt)
7468 (ftfont_shape) [HAVE_LIBOTF, HAVE_M17N_FLT]: New function.
7469 (DEVICE_DELTA) [HAVE_LIBOTF, HAVE_M17N_FLT]: New macro.
7470 (otf_gstring, gstring, m17n_flt_initialized): New variables.
7471
7472 * w32term.c (x_draw_composite_glyph_string_foreground):
7473 Adjust for the change of lispy gstring.
7474
7475 * xdisp.c (handle_composition_prop): Adjust for the change of
7476 lispy gstring. Call a function for auto-composition with the
7477 third arg it->window.
7478 (fill_composite_glyph_string): Adjust for the change of lispy string.
7479 (x_produce_glyphs): Adjust for the change of font_prepare_compositionl.
7480
7481 * xfaces.c (set_font_frame_param): Adjust for the change of
7482 font_find_for_lface.
7483
7484 * xfont.c (x_font_charset_alist): Move to font.c and rename.
7485 (xfont_registry_charsets): Likewise. Change caller.
7486 (syms_of_xfont): Don't handle x_font_charset_alist.
7487
7488 * xftfont.c: Include "ftfont.h".
7489 (struct xftfont_info) [HAVE_LIBOTF]: New members maybe_otf and otf.
7490 (xftfont_open) [HAVE_LIBOTF]: Initialize the above members.
7491 (xftfont_close) [HAVE_LIBOTF]: Close otf.
7492 (xftfont_shape) [HAVE_LIBOTF, HAVE_M17N_FLT]: New function.
7493 (syms_of_xftfont) [HAVE_LIBOTF, HAVE_M17N_FLT]:
7494 Set xftfont_driver.shape to xftfont_shape.
7495
7496 * xterm.c (x_draw_composite_glyph_string_foreground): Adjust for
7497 the change of lispy gstring.
7498
74992008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
7500
7501 * ftxfont.c (ftxfont_end_for_frame): Fix array indexing error.
7502
75032008-02-01 Jason Rumney <jasonr@gnu.org>
7504
7505 * w32font.c (w32font_draw): Fill background manually.
7506
75072008-02-01 Jason Rumney <jasonr@gnu.org>
7508
7509 * font.c (Qfontp): Remove unused symbol.
7510 (QCantialias): New symbol.
7511 (syms_of_font): Define it.
7512 (font_property_table): Set a validator for QCantialias.
7513
7514 * w32font.c (CLEARTYPE_QUALITY, CLEARTYPE_NATURAL_QUALITY):
7515 Define if not already.
7516 (QCfamily): Share with xfaces.c.
7517 (Qstandard, Qsubpixel, Qnatural): New symbols.
7518 (syms_of_w32font): Define them. Don't define QCfamily here.
7519 (w32_antialias_type, lispy_antialias_type): New functions.
7520 (w32_enumfont_pattern_entity): New arg requested_font.
7521 Set antialias parameter if non-default was requested.
7522 (fill_in_logfont): Fill in lfQuality if :antialias specified.
7523
75242008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
7525
7526 * lread.c (read1): Undo the previous change.
7527
75282008-02-01 CHENG Gao <chenggao@gmail.com> (tiny change)
7529
7530 * frame.c (Fdelete_frame): Call font_update_drivers only when
7531 USE_FONT_BACKEND is defined.
7532
75332008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
7534
7535 * font.h (struct font_bitmap): New member bits_per_pixel.
7536 (struct font_driver): New members start_for_frame and end_for_frame.
7537 (struct font_data_list): New struct.
7538 (font_put_frame_data, font_get_frame_data): Extern them.
7539
7540 * frame.h (struct frame): New member font_data_list.
7541
7542 * font.c (font_update_drivers): Call driver->start_for_frame and
7543 driver->end_for_frame at proper timings.
7544 (font_put_frame_data, font_get_frame_data): New functions.
7545 (Ffont_spec): Add usage in the docstring.
7546
7547 * frame.c (make_frame): Initialize f->font_data_list to NULL.
7548 (Fdelete_frame): Call font_update_drivers.
7549
7550 * xftfont.c (struct xftface_info): Delete the member xft_draw.
7551 (xftfont_prepare_face, xftfont_done_face): Adjust for the above change.
7552 (xftfont_get_xft_draw): New function.
7553 (xftfont_draw): Get XftDraw by xftfont_get_xft_draw.
7554 (xftfont_end_for_frame): New function.
7555 (syms_of_xftfont): Set xftfont_driver.end_for_frame.
7556
7557 * ftxfont.c (ftxfont_get_gcs): Rename from ftxfont_create_gcs.
7558 Change argument. Cache GCs in the per-frame data.
7559 (struct ftxfont_frame_data): New struct.
7560 (ftxfont_draw_bitmap): New arg gc_fore and flush.
7561 (ftxfont_prepare_face, ftxfont_done_face): Delete them.
7562 (ftxfont_draw): Get GCs by ftxfont_get_gcs. Reflect s->clip in GCs.
7563 (ftxfont_end_for_frame): New function.
7564 (syms_of_ftxfont): Set ftxfont_driver.end_for_frame.
7565
7566 * ftfont.c (ftfont_get_bitmap): Set bitmap->bits_per_pixel.
7567
75682008-02-01 Kenichi Handa <handa@m17n.org>
7569
7570 * xselect.c (Vselection_coding_system)
7571 (Vnext_selection_coding_system): Delete them.
7572 (syms_of_xselect): Don't declare selection-coding-system and
7573 next-selection-coding-system. They are declared in select.el.
7574
75752008-02-01 Jason Rumney <jasonr@gnu.org>
7576
7577 * w32term.h (WM_UNICHAR, UNICODE_NOCHAR): Define if not already.
7578
7579 * w32fns.c: Include imm.h.
7580 (get_composition_string_fn, get_ime_context_fn): New optional
7581 system functions.
7582 (globals_of_w32fns): Load them from imm32.dll.
7583 (ignore_ime_char): New flag.
7584 (w32_wnd_proc): Handle WM_UNICHAR, WM_IME_CHAR and
7585 WM_IME_ENDCOMPOSITION messages.
7586
7587 * w32term.c (w32_read_socket) [WM_UNICHAR]: Handle as
7588 MULTIBYTE_CHAR_KEYSTROKE_EVENT.
7589
75902008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
7591
7592 * lread.c (READCHAR): Call readchar with the 2nd arg NULL.
7593 (READCHAR_REPORT_MULTIBYTE): New macro.
7594 (readchar): New 2nd arg MULTIBYTE.
7595 (read1): Use READCHAR_REPORT_MULTIBYTE for the first read.
7596 Make symbol's name multibyte according to the multibyteness of the
7597 source.
7598
75992008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
7600
7601 * xfaces.c (face_for_overlay_string): Call lookup_face with
7602 correct arguments (fix of synching with the trunk).
7603
76042008-02-01 Kenichi Handa <handa@m17n.org>
7605
7606 * font.c (font_prop_validate_symbol, font_prop_validate_style)
7607 (font_prop_validate_non_neg, font_prop_validate_spacing):
7608 Delete argument prop_index.
7609 (font_property_table): Change arguments to validater. Change Callers.
7610 (font_lispy_object): Delete.
7611 (font_at): Use font_find_object instead fo font_lispy_object.
7612
76132008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
7614
7615 * fileio.c (Fexpand_file_name): Adjust multibyteness of directory
7616 and file names.
7617
76182008-02-01 Jason Rumney <jasonr@gnu.org>
7619
7620 * w32font.c (add_font_name_to_list): Avoid vertical fonts.
7621 (font_matches_spec): Remove debug output.
7622 (add_font_entity_to_list): Avoid using substituted fonts.
7623
76242008-02-01 Jason Rumney <jasonr@gnu.org>
7625
7626 * doc.c (Fsnarf_documentation):
7627 * Makefile.in (temacs${EXEEXT}, mostlyclean): Undo last change.
7628
76292008-02-01 Miles Bader <miles@gnu.org>
7630
7631 * dispextern.h (struct glyph_row): Only define "clip" field if
7632 HAVE_WINDOW_SYSTEM is defined.
7633
76342008-02-01 Stefan Monnier <monnier@iro.umontreal.ca>
7635
7636 Fix up multi-tty merge.
7637
7638 * xterm.c (handle_one_xevent): Remove duplicate code and fix up nesting
7639 and indentation.
7640
7641 * xfaces.c (free_realized_face, clear_face_gcs):
7642 Include font_done_for_face in the input_blocked section, just in case.
7643
7644 * xdisp.c (decode_mode_spec): Use terminal-local coding systems.
7645 (get_char_face_and_encoding): Undo last change and remove the *other*
7646 duplicate definition (i.e. keep the one that's better scoped and that
7647 includes code for the font-backend).
7648
7649 * terminal.c (create_terminal): Default keyboard_coding to
7650 `no-conversion' and terminal_coding to `undecided'.
7651
7652 * lread.c (read1): Use XSETPVECTYPE to set a pseudovector's tag.
7653
7654 * fontset.c (free_realized_fontsets): Check that the table entry does
7655 contain a fontset before trying to compare it to `base'.
7656
7657 * emacs.c (main): Move syms_of_data, syms_of_fileio, syms_of_alloc,
7658 syms_of_charset, and syms_of_coding earlier because init_window_once
7659 now needs Vcoding_system_hash_table to be setup.
7660
7661 * coding.h (default_buffer_file_coding): Remove.
7662
7663 * coding.c (default_buffer_file_coding): Remove.
7664 (Fterminal_coding_system, Fkeyboard_coding_system): Use ->id rather
7665 than ->symbol, and use the terminal-local coding system.
7666 (syms_of_coding): Don't setup the coding-systems that are not
7667 terminal-local.
7668 (Fdefine_coding_system_internal): Use XCAR/XCDR.
7669
7670 * chartab.c (Fmake_char_table, make_sub_char_table, copy_char_table):
7671 Use XSETPVECTYPE now that XSETCHAR_TABLE doesn't set the tag anymore.
7672
7673 * alloc.c (Fmake_char_table, make_sub_char_table): Remove. They're now
7674 in chartab.c and were re-added here by mistake.
7675 (Fpurecopy): Use XSETPVECTYPE after copying a COMPILED pseudovector.
7676
7677 * doc.c (Fsnarf_documentation):
7678 * Makefile.in (temacs${EXEEXT}, mostlyclean): Move buildobj.lst from
7679 src to etc.
7680
7681 * ChangeLog.10: Add mistakenly removed entry.
7682
76832008-02-01 Dan Nicolaescu <dann@ics.uci.edu>
7684
7685 * Makefile.in (fringe.o, minibuf.o): Fix dependencies.
7686
76872008-02-01 Miles Bader <miles@gnu.org>
7688
7689 * xdisp.c (get_char_face_and_encoding): Remove extraneous definition.
7690 Add extra args to FACE_FOR_CHAR.
7691
76922008-02-01 Kenichi Handa <handa@m17n.org>
7693
7694 * keymap.c (where_is_internal_1): If key is a cons, store the copy
7695 in sequence.
7696
7697 * chartab.c (map_sub_char_table, map_char_table): If the range
7698 contains just one character, call the function with that character
7699 even if the depth is not 3.
7700
77012008-02-01 Jason Rumney <jasonr@gnu.org>
7702
7703 * w32font.c (w32font_text_extents): Calculate metrics for the
7704 whole string.
7705
77062008-02-01 Jason Rumney <jasonr@gnu.org>
7707
7708 * w32xfns.c (get_next_msg): Consolidate WM_PAINT messages.
7709
77102008-02-01 Jason Rumney <jasonr@gnu.org>
7711
7712 * w32term.c (x_set_glyph_string_clipping): Use
7713 get_glyph_string_clip_rects.
7714 (x_set_glyph_string_clipping_exactly, x_draw_glyph_string):
7715 Adjust for the change of struct glyph_string.
7716
7717 * w32font.c (w32font_draw): Do clipping here.
7718
77192008-02-01 Kenichi Handa <handa@m17n.org>
7720
7721 * xftfont.c (xftfont_draw): Adjust for the change of struct
7722 glyph_string.
7723
7724 * xterm.c (x_set_glyph_string_clipping): Use
7725 get_glyph_string_clip_rects.
7726 (x_set_glyph_string_clipping_exactly, x_draw_glyph_string):
7727 Adjust for the change of struct glyph_string.
7728
7729 * xdisp.c (get_glyph_string_clip_rects): Reflect s->row->clip to
7730 the resulting clip(s}.
7731 (expose_overlaps): Add arg r. Change callers. Set it to
7732 row->clip temporarily.
7733 (expose_window): Redraw rows overlapping the exposed area.
7734
7735 * dispextern.h (struct glyph_row): New member clip.
7736 (struct glyph_string): Delete members clip_x, clip_y, clip_width,
7737 clip_height, new member clip, and num_clips.
7738
77392008-02-01 Kenichi Handa <handa@m17n.org>
7740
7741 * data.c (Fchar_or_string_p): Fix docstring.
7742
77432008-02-01 Kenichi Handa <handa@m17n.org>
7744
7745 * xftfont.c (xftfont_draw): If s->font_info != s->face->font_info,
7746 create a temporary XftDraw object.
7747
77482008-02-01 Kenichi Handa <handa@m17n.org>
7749
7750 * font.c (Ffontp): Fix docstring.
7751
7752 * coding.c (detect_coding_iso_2022): Don't treat SI/SO codes as a
7753 strong evidence of ISO-2022.
7754
77552008-02-01 Kenichi Handa <handa@m17n.org>
7756
7757 * abbrev.c (abbrev_check_chars): Use CHAR_TABLE_REF, not
7758 SYNTAX_ENTRY_FOLLOW_PARENT.
7759
77602008-02-01 Stefan Monnier <monnier@iro.umontreal.ca>
7761
7762 * fns.c (weak_hash_tables): Rename from Vweak_hash_tables and change
7763 its type.
7764 (make_hash_table, copy_hash_table, sweep_weak_hash_tables, init_fns):
7765 Update to the new type of weak_hash_tables and next_weak.
7766
7767 * lisp.h (struct Lisp_Hash_Table): Change next_weak from Lisp_Object to
7768 a plain C pointer to Lisp_Hash_Table.
7769
7770 * lisp.h (XGCTYPE, GC_HASH_TABLE_P, GC_NILP, GC_NUMBERP, GC_NATNUMP)
7771 (GC_INTEGERP, GC_SYMBOLP, GC_MISCP, GC_VECTORLIKEP, GC_STRINGP)
7772 (GC_CONSP, GC_FLOATP, GC_VECTORP, GC_OVERLAYP, GC_MARKERP)
7773 (GC_INTFWDP, GC_BOOLFWDP, GC_OBJFWDP, GC_BUFFER_OBJFWDP)
7774 (GC_BUFFER_LOCAL_VALUEP, GC_SOME_BUFFER_LOCAL_VALUEP)
7775 (GC_KBOARD_OBJFWDP, GC_PSEUDOVECTORP, GC_WINDOW_CONFIGURATIONP)
7776 (GC_PROCESSP, GC_WINDOWP, GC_SUBRP, GC_COMPILEDP, GC_BUFFERP)
7777 (GC_SUB_CHAR_TABLE_P, GC_CHAR_TABLE_P, GC_BOOL_VECTOR_P, GC_FRAMEP)
7778 (GC_EQ): Remove since they've been identical to their non-GC_
7779 alter-egos ever since the markbit was eradicated.
7780
7781 * alloc.c:
7782 * buffer.c:
7783 * buffer.h:
7784 * data.c:
7785 * fileio.c:
7786 * filelock.c:
7787 * fns.c:
7788 * frame.h:
7789 * lisp.h:
7790 * macterm.c:
7791 * print.c:
7792 * process.c:
7793 * w32fns.c:
7794 * w32menu.c:
7795 * w32term.c:
7796 * xfns.c:
7797 * xmenu.c:
7798 * xterm.c: Replace uses of GC_* macros with the non-GC_ versions.
7799
78002008-02-01 Kenichi Handa <handa@m17n.org>
7801
7802 * chartab.c (map_sub_char_table): Make it work for the top-level
7803 char-table. Fix handling of parent char-table.
7804 (map_char_table): Adjust for the above change.
7805
78062008-02-01 Jason Rumney <jasonr@gnu.org>
7807
7808 * w32font.c (Qgdi): Rename from Qw32.
7809
78102008-02-01 Jason Rumney <jasonr@gnu.org>
7811
7812 * w32bdf.c (get_quoted_string): Make function static.
7813
78142008-02-01 Kenichi Handa <handa@m17n.org>
7815
7816 * xftfont.c (xftfont_open): If one of font's ASCII glyph has
7817 bigger ascent and descent than those of the font, use them as
7818 font's ascent and descent.
7819
78202008-02-01 Kenichi Handa <handa@m17n.org>
7821
7822 * Makefile.in (${lispsource}international/charprop.el): Move this
7823 target within "#ifdef HAVE_UNIDATA" and "#endif".
7824
78252008-02-01 Kenichi Handa <handa@m17n.org>
7826
7827 * Makefile.in (lisp): Add ${lispsource}language/tai-viet.el.
7828 (shortlisp): Add ../lisp/language/tai-viet.el.
7829
78302008-02-01 Ulrich Mueller <ulm@gentoo.org>
7831
7832 * Makefile.in (${lispsource}international/charprop.el): Depend on
7833 temacs${EXEEXT}.
7834
78352008-02-01 Jason Rumney <jasonr@gnu.org>
7836
7837 * w32font.c (w32font_close): Delete the GDI font object.
7838
7839 * w32menu.c: Include character.h.
7840
7841 * w32proc.c: Likewise.
7842
7843 * w32select.c: Likewise.
7844
7845 * makefile.w32-in (w32proc.o): Depend on character.h.
7846
78472008-02-01 Jason Rumney <jasonr@gnu.org>
7848
7849 * w32fns.c (syms_of_w32fns): Use DEFSYM macro.
7850
7851 * w32menu.c (syms_of_w32menu): Likewise.
7852
7853 * w32proc.c (syms_of_ntproc): Likewise.
7854
7855 * w32select.c (syms_of_w32select): Likewise.
7856
7857 * w32term.c (syms_of_w32term): Likewise.
7858
78592008-02-01 Jason Rumney <jasonr@gnu.org>
7860
7861 * w32font.c (w32font_draw): Delete brush after using it.
7862
78632008-02-01 Jason Rumney <jasonr@gnu.org>
7864
7865 * w32font.c (w32font_open): Don't set font_idx.
7866 (w32font_text_extents): Try GetTextExtentPoint32W before defaulting
7867 to font settings.
7868 (w32font_draw): Fill background explicitly.
7869
78702008-02-01 Jason Rumney <jasonr@gnu.org>
7871
7872 * w32term.c (w32_initialize): Don't call w32font_initialize.
7873
7874 * w32font.c (w32font_info): Remove subranges.
7875 (QCsubranges, Qmodern, Qswiss, Qroman): Remove.
7876 (QCfamily, Qmonospace, Qsans_serif, Qmono, Qsans, Qsans__serif)
7877 (Qraster, Qoutline, Qlatin, Qgreek, Qcoptic, Qcyrillic, Qarmenian)
7878 (Qhebrew, Qarabic, Qsyriac, Qnko, Qthaana, Qdevanagari, Qbengali)
7879 (Qgurmukhi, Qgujarati, Qoriya, Qtamil, Qtelugu, Qkannada)
7880 (Qmalayalam, Qsinhala, Qthai, Qlao, Qtibetan, Qmyanmar, Qgeorgian)
7881 (Qhangul, Qethiopic, Qcherokee, Qcanadian_aboriginal, Qogham)
7882 (Qrunic, Qkhmer, Qmongolian, Qsymbol, Qbraille, Qhan)
7883 (Qideographic_description, Qcjk_misc, Qkana, Qbopomofo, Qkanbun)
7884 (Qyi, Qbyzantine_musical_symbol, Qmusical_symbol, Qmathematical):
7885 New symbols.
7886 (font_callback_data): New struct.
7887 (w32font_list, w32font_match): Use it.
7888 (w32font_open): Don't populate subranges.
7889 (w32font_has_char): Use script Lisp symbols, not subrange bitmask.
7890 (w32font_encode_char): Always return unicode code-point as-is.
7891 (w32font_text_extents): Supply a transformation matrix to
7892 GetGlyphOutline. Never look up by glyph index. Avoid looping
7893 twice. Use unicode version of GetTexExtentPoint32 instead of
7894 glyph index version.
7895 (set_fonts_frame): Remove.
7896 (w32_enumfont_pattern_entity): Add frame parameter, use it to
7897 set frame parameter. Use backward compatible fake foundries.
7898 Save generic family in extra slot under QCfamily. Make width slot
7899 constant. Save QCspacing value. Save list of scripts instead of
7900 binary subranges.
7901 (w32_generic_family, logfonts_match, font_matches_spec): New functions.
7902 (add_font_entity_to_list): Use font_callback_data struct. Filter
7903 unwanted fonts.
7904 (add_one_font_entity_to_list): Use font_callback_data struct.
7905 (w32_registry): Default to iso10646_1.
7906 (fill_in_logfont): Use dpi from extra slot. Don't bother with
7907 string font registries. Don't fill in font name if it is a generic
7908 family name, fill family instead. Use spacing, family and script
7909 extra info to fill pitch, family and charset fields.
7910 (list_all_matching_fonts): Use font_callback_data struct.
7911 (unicode_range_for_char): Remove.
7912 (font_supported_scripts): New function.
7913 (w32font_initialize): Remove.
7914 (syms_of_w32font): Update which symbols are defined.
7915
79162008-02-01 Jason Rumney <jasonr@gnu.org>
7917
7918 * font.c (font_pixel_size): Reverse assq_no_quit args.
7919
7920 * w32term.h (FONT_WIDTH): Report max width, not average.
7921 (FONT_MAX_WIDTH): Remove.
7922 (FONT_AVG_WIDTH): New macro.
7923
7924 * xfaces.c (Fx_list_fonts) [WINDOWSNT]: Remove Windows only
7925 redefinition of FONT_WIDTH.
7926
7927 * w32term.c (x_font_min_bounds): Use FONT_AVG_WIDTH.
7928 (w32_cache_char_metrics): Use FONT_WIDTH.
7929
7930 * w32fns.c (w32_load_system_font, w32_list_fonts): Use FONT_AVG_WIDTH.
7931
79322008-02-01 Jason Rumney <jasonr@gnu.org>
7933
7934 * w32font.c (w32font_open): Make lfHeight negative.
7935
7936 * w32fns.c (x_default_font_parameter): Use new style font name.
7937 (Fx_create_frame, x_create_tip_frame): Initialize resx and resy.
7938
79392008-02-01 Jason Rumney <jasonr@gnu.org>
7940
7941 * w32font.c (QCsubranges): New symbol.
7942 (w32font_open, w32font_has_char): Get subranges from subproperty
7943 of extra.
7944 (w32_enumfont_pattern_entity): Set subranges as subproperty of extra.
7945 (syms_of_w32font): Define :subranges symbol.
7946
7947 * font.c (font_put_extra): Expose externally.
7948
7949 * font.h (font_put_extra): Move declaration from font.c.
7950
7951 * font.c (Ffont_get): Use font driver to determine otf capability.
7952 (adjust_anchor): Check if driver defines anchor_point before using.
7953
7954 * w32font.c (w32font_open): Handle size, height and pixel_size better.
7955 (w32font_draw): Use options.
7956 (w32_enumfont_pattern_entity): Set size to 0 for scalable fonts.
7957 Fix detection of truetype fonts.
7958 (registry_to_w32_charset): Handle charsets other than iso8859-1
7959 expressed as lisp symbols.
7960 (w32_registry): Express charset as lisp symbol.
7961 (fill_in_logfont): Reverse pixel and point height logic.
7962 Don't set width here. Set quality to default.
7963
7964 * w32fns.c (w32_load_system_font): Fix detecting FIXED_PITCH fonts.
7965 (x_to_w32_font): Fill in lfPitchAndFamily correctly.
7966
7967 * xterm.c (x_draw_glyph_string_foreground) [USE_FONT_BACKEND]:
7968 Remove redundant loop and allocation.
7969
7970 * makefile.w32-in (font.o, w32font.o): New objects.
7971 (fontset.o, xdisp.o, xfaces.o, w32fns.o, w32term.o): Depend on font.h.
7972 (FONTOBJ): New group of objects conditioned on USE_FONT_BACKEND.
7973
7974 * xdisp.c (fill_composite_glyph_string): Make the first arg to
7975 STORE_XCHARB a valid l-value.
7976
7977 * w32term.c (w32_native_per_char_metric): Swap width and rbearing
7978 calculations for non-Truetype fonts.
7979 (x_draw_glyph_string): Sync with xterm.c.
7980 (x_draw_glyph_string_foreground) [USE_FONT_BACKEND]:
7981 Remove redundant code.
7982 (w32_initialize) [USE_FONT_BACKEND]: Call w32font_initialize.
7983
7984 * w32term.h (w32_output_data) [USE_FONT_BACKEND]: Add fontp member.
7985 (FRAME_FONT_OBJECT) [USE_FONT_BACKEND]: New macro from xterm.h.
7986
7987 * w32fns.c [USE_FONT_BACKEND]: Port font backend changes from xfns.c.
7988 (x_to_w32_charset, w32_to_x_charset): Expose externally.
7989
7990 * w32font.c: New file for w32 font backend.
7991
79922008-02-01 Kenichi Handa <handa@m17n.org>
7993
7994 * term.c: Don't include "buffer.h" twice.
7995
79962008-02-01 Kenichi Handa <handa@m17n.org>
7997
7998 * character.c (Funibyte_string): New function.
7999 (syms_of_character): Defsubr it.
8000
80012008-02-01 Jason Rumney <jasonr@gnu.org>
8002
8003 * w32term.c [USE_FONT_BACKEND]:
8004 (x_get_font_repertory, note_mouse_movement, x_set_mouse_face_gc)
8005 (x_set_glyph_string_clipping, x_set_glyph_string_clipping_exactly)
8006 (x_draw_glyph_string, x_draw_glyph_string_foreground)
8007 (x_draw_composite_glyph_string_foreground, x_new_fontset2)
8008 (x_free_frame_resources): Sync with xterm.c.
8009
80102008-02-01 Andreas Schwab <schwab@suse.de>
8011
8012 * lread.c (read1): Use CHAR_TABLE_STANDARD_SLOTS to validate
8013 char-table size.
8014
80152008-02-01 Kenichi Handa <handa@m17n.org>
8016
8017 * font.c (check_otf_features): Define it regardless of HAVE_LIBOTF.
8018
80192008-02-01 Kenichi Handa <handa@m17n.org>
8020
8021 * ftfont.c (ftfont_driver): Delete font_otf_gsub and
8022 font_otf_gpos, add font_drive_otf.
8023
8024 * fontset.c (fontset_find_font): Pay attention to font size
8025 specified for a font.
8026 (reorder_font_vector): Check contents of font_def.
8027
8028 * font.c (struct otf_list): Delete it.
8029 (otf_list): Make it a lisp variable.
8030 (otf_open): Use lispy otf_list.
8031 (generate_otf_features): Rename from parse_gsub_gpos_spec.
8032 (check_otf_features): New function.
8033 (font_otf_DeviceTable, font_otf_ValueRecord, font_otf_Anchor):
8034 New functions.
8035 (font_drive_otf): New function merging font_otf_gsub and
8036 font_otf_gpos.
8037 (font_open_for_lface): New arg spec. Change argument order.
8038 (font_load_for_face): Adjust for the change of font_open_for_lface.
8039 (Ffont_drive_otf): New function merging Ffont_otf_gsub and
8040 Ffont_otf_gpos.
8041 (syms_of_font): Staticpro otf_list. Delete defsubr of
8042 Sfont_otf_gsub and Sfont_otf_gpos. Defsubr Sfont_drive_otf.
8043
8044 * xfaces.c (set_font_frame_param): Adjust for the change of
8045 font_open_for_lface.
8046
8047 * font.h (font_open_for_lface): Adjust prototype.
8048 (struct font_driver): Delete members otf_gsub and otf_gpos, add
8049 member otf_drive.
8050 (font_otf_gsub, font_otf_gpos): Delete externs.
8051 (font_drive_otf): Extern it.
8052
80532008-02-01 Kenichi Handa <handa@m17n.org>
8054
8055 * font.c (font_at): If the window W is not on a window system,
8056 return Qnil.
8057
8058 * coding.c (produce_chars, encode_coding): Don't call
8059 insert_from_gap if no characters to produce.
8060
80612008-02-01 Kenichi Handa <handa@m17n.org>
8062
8063 * fontset.c (free_realized_fontsets): Avoid unnecessary call of
8064 Fclear_face_cache.
8065
8066 * xfaces.c (face_for_font): Check also face->font==font->font.font.
8067
80682008-02-01 Miles Bader <miles@gnu.org>
8069
8070 * emacs.c (main): Change default value of `enable_font_backend' to 1.
8071 Parse "--disable-font-backend" option.
8072 (standard_args): Add "--disable-font-backend" option.
8073
80742008-02-01 Kenichi Handa <handa@m17n.org>
8075
8076 * fontset.c (fontset_find_font): New function.
8077 (fontset_font): Use fontset_find_font.
8078 (make_fontset_for_ascii_face): Don't set face ID in rfont_def.
8079 Register the specified font for all Latin characters.
8080 (new_fontset_from_font): Register the specified font for all Latin
8081 characters.
8082 (dump_fontset): For a realized fontset, include the base fontset
8083 name in the returned vector.
8084
80852008-02-01 Kenichi Handa <handa@m17n.org>
8086
8087 * character.h (CHAR_STRING): Cast C to unsigned on calling
8088 char_string.
8089
8090 * character.c (char_string): Type of arg C changed to unsigned.
8091 Signal an error if C is an invalid character code.
8092
8093 * editfns.c (general_insert_function, Fchar_to_string):
8094 Use CHARACTERP, not INTEGERP.
8095
80962008-02-01 Kenichi Handa <handa@m17n.org>
8097
8098 * character.h (MIN_MULTIBYTE_LEADING_CODE)
8099 (MAX_MULTIBYTE_LEADING_CODE): New macros.
8100
8101 * regex.c (analyse_first): Fix for multibyte characters in "case
8102 charset:" and "case categoryspec:".
8103
81042008-02-01 Andreas Schwab <schwab@suse.de>
8105
8106 * Makefile.in (LIBES): Move standard libraries to the end.
8107
81082008-02-01 Kenichi Handa <handa@m17n.org>
8109
8110 * alloc.c (Fgarbage_collect): If nextb->text->inhibit_shrinking is
8111 nonzero, don't shrink the buffer nextb.
8112
8113 * buffer.h (struct buffer_text): New member inhibit_shrinking.
8114
8115 * coding.c (coding_alloc_by_making_gap): New arg offset.
8116 (alloc_destination): Call coding_alloc_by_making_gap with the arg
8117 offset.
8118 (decode_coding_iso_2022): Update coding->safe_charsets.
8119 (decode_coding_gap): Temporarily set
8120 current_buffer->text->inhibit_shrinking to 1.
8121
81222008-02-01 Kenichi Handa <handa@m17n.org>
8123
8124 * xterm.c (x_draw_composite_glyph_string_foreground): Fix
8125 indexing into elements of s->cmp and s->char2b.
8126
81272008-02-01 Juanma Barranquero <lekktu@gmail.com>
8128
8129 * regex.c (RE_STRING_CHAR_AND_LENGTH) [! emacs]: Add missing arg `len'.
8130
81312008-02-01 Kenichi Handa <handa@m17n.org>
8132
8133 * regex.c (GET_CHAR_BEFORE_2, GET_CHAR_AFTER): Check the variable
8134 target_multibyte instead of multibyte.
8135 (re_match_2_internal): Call bcmp_translate with target_multibyte.
8136 (bcmp_translate): Change the argument name from multibyte to
8137 target_multibyte.
8138
81392008-02-01 Kenichi Handa <handa@m17n.org>
8140
8141 These changes are to compile a regexp into a pattern that can be
8142 used both for multibyte and unibyte targets.
8143
8144 * Makefile.in (search.o): Depend on charset.h.
8145
8146 * character.c (multibyte_char_to_unibyte_safe): New function.
8147
8148 * search.c: Include "charset.h".
8149 (compile_pattern_1): Delete argument multibyte. Don't set
8150 cp->buf.target_multibyte here. Set cp->buf.charset_unibyte.
8151 (compile_pattern): Don't compare cp->buf.target_multibyte.
8152 Compare cp->buf.charset_unibyte.
8153 (compile_pattern): Set cp->buf.target_multibyte.
8154
8155 * lisp.h (multibyte_char_to_unibyte_safe): Extern it.
8156
8157 * regex.h (struct re_pattern_buffer): New member charset_unibyte.
8158
8159 * regex.c (RE_STRING_CHAR, RE_STRING_CHAR_AND_LENGTH): New arg
8160 multibyte. Change callers.
8161 (RE_CHAR_TO_MULTIBYTE, RE_CHAR_TO_UNIBYTE): New macros.
8162 (MAKE_CHAR_MULTIBYTE, MAKE_CHAR_UNIBYTE): Delete. Change callers
8163 to use RE_CHAR_TO_MULTIBYTE and RE_CHAR_TO_UNIBYTE, respectively.
8164 (SETUP_ASCII_RANGE, SETUP_UNIBYTE_RANGE): New macros.
8165 (SETUP_MULTIBYTE_RANGE): Generate a more compact range_table.
8166 (regex_compile): Make the compiled pattern usable both for
8167 multibyte and unibyte targets.
8168 (analyse_first): Make the fastmap usable both for multibyte and
8169 unibyte targets.
8170 (TRANSLATE_VIA_MULTIBYTE): Delete.
8171 (re_match_2_internal): Pay attention to the case that the
8172 multibyteness of bufp and target may be different.
8173
81742008-02-01 Kenichi Handa <handa@m17n.org>
8175
8176 * xdisp.c (x_produce_glyphs): When a font is not found, make the
8177 empty box occupy at least one column width.
8178
81792008-02-01 Miles Bader <miles@gnu.org>
8180
8181 * Makefile.in: Remove redundant HAVE_XFT clause.
8182
81832008-02-01 Kenichi Handa <handa@m17n.org>
8184
8185 * xrdb.c (x_load_resources): Setup the default fontSet X resource.
8186
81872008-02-01 Kenichi Handa <handa@m17n.org>
8188
8189 * fontset.c (Finternal_char_font): Fix for the case of POSITION
8190 being nil.
8191
81922008-02-01 Kenichi Handa <handa@m17n.org>
8193
8194 * xftfont.c (xftfont_open): Call FcConfigSubstitute.
8195
81962008-02-01 Kenichi Handa <handa@m17n.org>
8197
8198 * xftfont.c (xftfont_open): Don't enable antialias explicitly.
8199
82002008-02-01 Kenichi Handa <handa@m17n.org>
8201
8202 * search.c (simple_search): Fix previous change.
8203
82042008-02-01 Kenichi Handa <handa@m17n.org>
8205
8206 * xftfont.c (ftfont_font_format): Extern declaration.
8207
8208 * frame.c (x_set_font): Fix the second arg to fs_query_fontset.
8209
8210 * xfont.c (xfont_driver): Initialize ftfont_driver.type by 0.
8211 (xfont_list): Don't directly use Lisp_Object as an operand of &&.
8212
8213 * ftfont.c (ftfont_driver): Initialize ftfont_driver.type by 0.
8214 (ftfont_font_format): Fix previous change.
8215
8216 * font.h (Ffont_xlfd_name): EXFUN it.
8217
8218 * font.c (font_parse_xlfd): Fix the array size of `f'.
8219 (register_font_driver): Use EQ to compare driver->type.
8220
8221 * xfns.c (xic_create_xfontset2) [USE_FONT_BACKEND]: New function.
8222 (create_frame_xic) [USE_FONT_BACKEND]: Call xic_create_xfontset2.
8223 (xic_set_xfontset) [USE_FONT_BACKEND]: Likewise.
8224
82252008-02-01 Kenichi Handa <handa@m17n.org>
8226
8227 * ftfont.c (ftfont_pattern_entity, ftfont_list_generic_family)
8228 (ftfont_list, ftfont_font_format): Check if FC_FONTFORMAT is defined.
8229
82302008-02-01 Kenichi Handa <handa@m17n.org>
8231
8232 * xfont.c (xfont_open): Set font->format.
8233
8234 * xftfont.c (xftfont_open): Set font->format.
8235
8236 * ftfont.c (ftfont_pattern_entity): Add fontformat in a pattern.
8237 (ftfont_list): Include FC_FONTFORMAT in FcObject.
8238 (ftfont_open): Set font->format.
8239 (ftfont_font_format): New function.
8240
8241 * font.h (struct font): New member format.
8242
8243 * font.c (Qopentype): New variable.
8244 (syms_of_font): Defsym it.
8245 (Fquery_font): Change the format of the last element of the return
8246 value.
8247
82482008-02-01 Kenichi Handa <handa@m17n.org>
8249
8250 * xfns.c (xic_create_xfontset): Try the default fontset name as a
8251 last resort.
8252
82532008-02-01 Kenichi Handa <handa@m17n.org>
8254
8255 * coding.c (detect_coding_charset): Fix detection of multi-byte
8256 charset.
8257
82582008-02-01 Bob Halley <halley@play-bow.org> (tiny change)
8259
8260 * ccl.c (ccl_driver): If DST is NULL, set ccl->produced to 0.
8261
82622008-02-01 Kenichi Handa <handa@m17n.org>
8263
8264 * xdisp.c (get_next_display_element): Set it->face_id for the
8265 first component of a composition.
8266 (x_produce_glyphs): Check if the font is changed or not for composition.
8267
82682008-02-01 Kenichi Handa <handa@m17n.org>
8269
8270 * fontset.c (Qlatin): New variable.
8271 (syms_of_fontset): Define it as a lisp symbol.
8272 (Fset_fontset_font): If TARGET is `latin', use FONT_SPEC for ASCII.
8273
82742008-02-01 Kenichi Handa <handa@m17n.org>
8275
8276 * font.c (font_unparse_fcname): Pay attention to the case that
8277 some of font property is a null string.
8278
82792008-02-01 Kenichi Handa <handa@m17n.org>
8280
8281 * term.c: Include "composite.h".
8282 (encode_terminal_code): Output all components of composition.
8283 Check the size of encode_terminal_src.
8284 (produce_glyphs): For composition, call produce_composite_glyph.
8285 (append_composite_glyph, produce_composite_glyph): New functions.
8286
8287 * xdisp.c (x_produce_glyphs): In handling composition, if a font
8288 is not found, get font_info from the current ascii face.
8289
82902008-02-01 Kenichi Handa <handa@m17n.org>
8291
8292 * fileio.c (Finsert_file_contents): On replacing, temporarily bind
8293 buffer-file-name to Qnil before calling insert_from_buffer.
8294
8295 * font.c (font_unparse_fcname): Pay attention to the case that
8296 foundry is a null string.
8297
82982008-02-01 Kenichi Handa <handa@m17n.org>
8299
8300 * ftfont.c (ftfont_list): Allow registry "unicode-sip".
8301
8302 * font.c (Qunicode_sip): New variable.
8303 (syms_of_font): Declare it as a Lisp symbol.
8304
8305 * font.h (Qunicode_sip): Extern it.
8306
83072008-02-01 Kenichi Handa <handa@m17n.org>
8308
8309 * composite.c (get_composition_id): Pay attention to TAB component.
8310
8311 * xterm.c (x_draw_composite_glyph_string_foreground): Don't draw
8312 TAB. Adjust for the change of s->char2b which always points to
8313 the first element of allocated memory.
8314
8315 * xftfont.c (xftfont_text_extents): Fix calculation of descent value.
8316
8317 * xdisp.c (handle_composition_prop): Set it->c to the first
8318 non-TAB component.
8319 (fill_composite_glyph_string): Change argument.
8320 (BUILD_COMPOSITE_GLYPH_STRING): Adjust for the above change.
8321 (x_produce_glyphs): Fix handling of left/right padding.
8322
83232008-02-01 Kenichi Handa <handa@m17n.org>
8324
8325 * coding.c (detect_coding_system): Fix for handling off
8326 inhibit_iso_escape_detection. Fix for the case that no coding
8327 system is defined for a specific coding category.
8328
83292008-02-01 Kenichi Handa <handa@m17n.org>
8330
8331 * font.c (font_matching_entity): Delete unused local var.
8332
8333 * xftfont.c (xftfont_open): Call XftDefaultSubstitute before
8334 opening a font.
8335
8336 * fileio.c (Finsert_file_contents): On recovering a file, assume
8337 Unix-like eol.
8338 (choose_write_coding_system): On auto-saving a file, force
8339 Unix-like eol.
8340
8341 * coding.c (setup_coding_system): Fix setting of
8342 coding->common_flags based on eol_type.
8343 (coding_inherit_eol_type): If PARENT is not nil, be sure to
8344 inherit from it.
8345
83462008-02-01 Kenichi Handa <handa@m17n.org>
8347
8348 * alloc.c (NSTATICS): Increas to 0x600.
8349
83502008-02-01 Kenichi Handa <handa@m17n.org>
8351
8352 * ftfont.c (ftfont_driver): Set ftfont_driver.match to ftfont_match.
8353 (ftfont_list): Don't check :name property.
8354 (ftfont_match): New function.
8355 (ftfont_pattern_entity): If the pattern doesn't contain
8356 FC_SPACING, don't assume FC_MONO.
8357
8358 * font.h (struct font_driver): New member `match'.
8359 (font_update_drivers): Adjust prototype.
8360
8361 * font.c (font_parse_fcname, font_parse_name): Don't change :name
8362 property of FONT.
8363 (LGSTRING_HEADER_SIZE, LGSTRING_GLYPH_SIZE, check_gstring): Define
8364 them unconditionally.
8365 (font_matching_entity): New function.
8366 (font_open_by_name): Try font_matching_entity if exact match is
8367 not found.
8368 (font_update_drivers): Delete the arg FONT. Return a list of
8369 actually used backends. Don't free faces, font caches here.
8370 Don't store data in frame parameters. Don't call x_set_font.
8371 (Ffont_spec): Store :name property as is.
8372 (Ffont_get): Check HAVE_LIBOTF before calling font_otf_capability.
8373 (Ffont_otf_gsub): Call font->driver->otf_gsub instead of font_otf_gsub.
8374 (Ffont_otf_gpos): Call font->driver->otf_gpos instead of font_otf_gpos.
8375 (Ffont_otf_alternates): Check if the driver has otf_gsub function.
8376 Call font->driver->otf_gsub instead of font_otf_gsub.
8377
8378 * frame.c (x_set_font_backend): Do more works that were done in
8379 font_update_drivers before.
8380
8381 * xfont.c (xfont_match): New function.
8382 (xfont_driver): Set xfont_driver.match to xfont_match.
8383 (xfont_draw): Set font in GC if necessary.
8384
8385 * ftxfont.c (ftxfont_match): New function.
8386 (syms_of_ftxfont): Set ftxfont_driver.match to ftxfont_match.
8387
8388 * xftfont.c (xftfont_match): New function.
8389 (syms_of_xftfont): Set xftfont_driver.match to xftfont_match.
8390
83912008-02-01 Kenichi Handa <handa@m17n.org>
8392
8393 * font.h (struct font): New member scalable.
8394 (struct font_driver): New arg ALTERANTE_SUBST to otf_gsub.
8395 (font_otf_gsub): Adjust prototype.
8396
8397 * font.c (font_otf_capability): Fix handling of the default langsys.
8398 (parse_gsub_gpos_spec): Change type to void. New arg nbytes.
8399 Check the contents of SPEC.
8400 (LGSTRING_HEADER_SIZE, LGSTRING_GLYPH_SIZE): New macros.
8401 (check_gstring): New function.
8402 (REPLACEMENT_CHARACTER): New macro.
8403 (font_otf_gsub): New arg alternate_subst. Be sure to set all
8404 glyph codes of GSTRING.
8405 (font_otf_gpos): Be sure to set all glyph codes of GSTRING.
8406 (font_prepare_composition): Set cmp->glyph_len.
8407 (font_open_entity): Set font->scalable.
8408 (Ffont_get): Handle :otf property.
8409 (Ffont_otf_gsub, Ffont_otf_gpos, Ffont_otf_alternates): New
8410 functions.
8411 (Fquery_font): Use font->font.full_name.
8412 (syms_of_font): Defsubr Sfont_otf_gsub, Sfont_otf_gpos, and
8413 Sfont_otf_alternates.
8414
8415 * ftfont.c (ftfont_open): Set font->font.full_name and
8416 font->font.name properly. Fix calculation of font->font.height
8417 and font->min_width.
8418
8419 * ftxfont.c (ftxfont_create_gcs): New function.
8420 (ftxfont_draw_bitmap): Fix arg to ftfont_driver.get_bitmap.
8421 (ftxfont_draw_backgrond): Fix filling region.
8422 (ftxfont_default_fid): New function.
8423 (ftxfont_open): Set xfont->fid to the return value of
8424 ftxfont_default_fid.
8425 (ftxfont_prepare_face): Use ftxfont_create_gcs to create GCs.
8426 (ftxfont_done_face): Free only GCs that are created by
8427 ftxfont_create_gcs.
8428 (ftxfont_draw): If face->gc != s->gc, create proper GCs.
8429
8430 * xterm.c (x_set_glyph_string_clipping_exactly) [USE_FONT_BACKEND]:
8431 Clip to src->width, etc (not src->clip_XXX).
8432
8433 * xfns.c (x_create_tip_frame) [USE_FONT_BACKEND]: Handle
8434 FontBackend frame parameter.
8435
84362008-02-01 Kenichi Handa <handa@m17n.org>
8437
8438 * font.h (struct font_driver_list): New member `on'.
8439 (Fclear_font_cache): EXFUN it.
8440 (font_update_drivers): Extern it.
8441
8442 * font.c (font_unparse_fcname): Fix typo (swidth->width).
8443 (font_list_entities): Check driver_list->on.
8444 (register_font_driver): Initalize `on' member to 0.
8445 (font_update_drivers): New function.
8446 (Fclear_font_cache): Check driver_list->on.
8447
8448 * frame.h (Qfont_backend): Extern it.
8449 (x_set_font_backend): Extern it.
8450
8451 * frame.c (Qfont_backend): New variable.
8452 (frame_parms): New element for font-backend.
8453 (x_set_font_backend): New function.
8454
8455 * xfns.c (Fx_create_frame) [USE_FONT_BACKEND]: Handle
8456 FontBackend frame parameter.
8457 (x_frame_parm_handlers) [USE_FONT_BACKEND]: New element
8458 x_set_font_backend.
8459
8460 * xfont.c (xfont_list): Don't try listing by :name property if the
8461 name is not for XLFD.
8462
84632008-02-01 Kenichi Handa <handa@m17n.org>
8464
8465 * font.h (LGLYPH_FROM, LGLYPH_TO, LGLYPH_SET_FROM)
8466 (LGLYPH_SET_TO): New macros.
8467 (LGLYPH_XOFF, LGLYPH_YOFF, LGLYPH_WADJUST): Check if adjustment
8468 element of G is vector or not.
8469 (font_at): Extern it.
8470
8471 * font.c: Include window.h.
8472 (font_lispy_object): New function.
8473 (font_prepare_composition): Check LGLYPH_FORM (g) to detect the
8474 end of valid glyph.
8475 (font_close_object): Fix getting (struct font *).
8476 (font_at): New function.
8477 (Ffont_get): If FONT is a font-object, get entity from it.
8478 (Ffont_make_gstring): Initialize elements of glyphs with nil.
8479 (Ffont_fill_gstring): Use macro LGSTRING_XXX and LGLYPH_XXX. Fix
8480 range check.
8481 (Ffont_at): New function.
8482 (syms_of_font): Defsubr Sfont_at.
8483
8484 * xdisp.c (it_props): Move the entry for Qauto_composed to just
8485 before the entry for Qcomposition.
8486 (handle_auto_composed_prop): Call auto-composition-function with 4 args.
8487 (handle_composition_prop) [USE_FONT_BACKEND]: Set it->face_id from
8488 the font in gstring.
8489 (fill_composite_glyph_string) [USE_FONT_BACKEND]: Check
8490 LGLYPH_FORM (g) to detect the end of valid glyph.
8491 (x_produce_glyphs) [USE_FONT_BACKEND]: Don't update it->face_id if
8492 we are composing with gstring.
8493
8494 * xterm.c (x_draw_composite_glyph_string_foreground) [USE_FONT_BACKEND]:
8495 Check if adjustment is vector or not.
8496
8497 * Makefile.in (font.o): Make it depends on window.h.
8498
84992008-02-01 Kenichi Handa <handa@m17n.org>
8500
8501 * xterm.c (x_draw_composite_glyph_string_foreground): Check if
8502 adjustment is vector or not.
8503
85042008-02-01 Miles Bader <miles@gnu.org>
8505
8506 * character.h (CHECK_CHARACTER): Redefine in terms of CHECK_TYPE.
8507
85082008-02-01 Kenichi Handa <handa@m17n.org>
8509
8510 * font.h (LGLYPH_XOFF, LGLYPH_YOFF, LGLYPH_WIDTH, LGLYPH_WADJUST)
8511 (LGLYPH_SET_WIDTH): Adjusted for the change of LGLYPH format.
8512 (LGLYPH_ADJUSTMENT, LGLYPH_SET_ADJUSTMENT): New macros.
8513
8514 * font.c (font_merge_old_spec): Treat '*' in foundry as a wild card.
8515 (DEVICE_DELTA): Fix typo.
8516 (font_otf_gpos, font_prepare_compositio): Adjust for the change of
8517 LGLYPH format.
8518
8519 * xterm.c (x_draw_composite_glyph_string_foreground): Adjust for
8520 the change of LGLYPH format.
8521
85222008-02-01 Kenichi Handa <handa@m17n.org>
8523
8524 * ftfont.c (ftfont_list): Fix typo.
8525 (ftfont_build_basic_charsets): Don't include letters with diacritics.
8526
85272008-02-01 Jan Djärv <jan.h.d@swipnet.se>
8528
8529 * xfaces.c (realize_non_ascii_face): Set face->extra to NULL.
8530
8531 * xftfont.c (xftfont_done_face): Call XftDrawDestroy only if
8532 xftface_info is non-NULL.
8533
85342008-02-01 Jan Djärv <jan.h.d@swipnet.se>
8535
8536 * ftfont.c (ftfont_list): Move misplaced #endif.
8537
85382008-02-01 Kenichi Handa <handa@m17n.org>
8539
8540 * ftfont.c (ftfont_list): Pay attention to the case that
8541 FC_CAPABILITY is not defined.
8542
85432008-02-01 Kenichi Handa <handa@m17n.org>
8544
8545 * xftfont.c (xftfont_open): Set charset related members to -1.
8546
8547 * ftfont.c (ftfont_list): Handle QCotf property. Fix handling of
8548 QCname.
8549 (ftfont_open): Set charset related members to -1.
8550
8551 * fontset.c (Votf_script_alist): New variable.
8552 (syms_of_fontset): Initialize it.
8553 (fontset_font): Delete unused variable.
8554
8555 * fontset.h (Votf_script_alist): Extern it.
8556
8557 * font.c (font_find_for_lface): Optimize code.
8558
8559 * font.h (font_close_object, font_merge_old_spec): Extern them.
8560
85612008-02-01 Kenichi Handa <handa@m17n.org>
8562
8563 * font.c (QCscalable, Qc, Qm, Qp, Qd): New variables.
8564 (syms_of_font): Initialize them.
8565 (font_pixel_size): Allow float value in dpi.
8566 (font_prop_validate_type): Delete.
8567 (font_prop_validate_symbol, font_prop_validate_style): Change argument.
8568 Change caller.
8569 (font_prop_validate_non_neg): Rename from font_prop_validate_size.
8570 (font_prop_validate_extra): Delete.
8571 (font_prop_validate_spacing): New function.
8572 (font_property_table): Add elements for all known properties.
8573 (get_font_prop_index): Rename from check_font_prop_name. New
8574 argument FROM. Change caller.
8575 (font_prop_validate): Validate all known properties.
8576 (font_put_extra): Delete argument force. Change caller.
8577 (font_expand_wildcards): Make it static. Fix the way of shrinking
8578 the possible range.
8579 (font_parse_xlfd): Delete argument merge. Fix handling of RESX,
8580 RESY, SPACING, and AVGWIDTH. Don't validate property values here.
8581 Change caller.
8582 (font_unparse_xlfd): Handle dpi, spacing, and scalable properties.
8583 (font_parse_fcname): Delete argument merge. Fix parsing of point
8584 size. Don't validate properties values here. Change caller.
8585 (font_unparse_fcname): Handle dpi, spacing, and scalable properties.
8586 (font_open_by_name): Delete unused variable.
8587 (Ffont_spec): Likewise. Validate property values.
8588 (Ffont_match_p): New function.
8589
8590 * font.h (QCscalable): Extern it.
8591 (font_parse_xlfd, font_parse_fcname): Adjust prototype.
8592
8593 * ftfont.c (ftfont_list): Handle properties dpi, spacing, and scalable.
8594
8595 * xfont.c (xfont_query_font): Adjust for the change of font_parse_xlfd.
8596 (xfont_list_pattern): New function.
8597 (xfont_list): Use xfont_list_pattern.
8598
85992008-02-01 Kenichi Handa <handa@m17n.org>
8600
8601 * font.h (Flist_fonts): EXFUN it.
8602
86032008-02-01 Jason Rumney <jasonr@gnu.org>
8604
8605 * w32term.c (w32_initialize): Add back smoothing_type and
8606 smoothing_enabled definitions.
8607
86082008-02-01 Kenichi Handa <handa@m17n.org>
8609
8610 * xterm.c (x_draw_glyph_string) [USE_FONT_BACKEND]: Check
8611 s->face->font on determining underline position.
8612
86132008-02-01 Kenichi Handa <handa@m17n.org>
8614
8615 * font.c (font_parse_xlfd): Fix generating of CHARSET_REGISTRY field.
8616 (font_has_char): Accept font-object too.
8617 (font_find_for_lface): Try at first with a size specified in face.
8618
86192008-02-01 Kenichi Handa <handa@m17n.org>
8620
8621 * frame.c (x_set_font) [USE_FONT_BACKEND]: Fix argument to
8622 font_open_by_name.
8623
86242008-02-01 Kenichi Handa <handa@m17n.org>
8625
8626 * font.h (QCspacing, QCdpi): Extern them.
8627 (enum font_spacing): New enum.
8628 (FONT_PIXEL_SIZE_QUANTUM): New macro.
8629
8630 * font.c (POINT_TO_PIXEL): Don't divide POINT by 10.
8631 (QCspacing, QCdpi): New variables.
8632 (syms_of_font): Initialize them.
8633 (font_pixel_size): New function.
8634 (font_put_extra): New function.
8635 (font_parse_xlfd): Fix handling of font size. Add QCdpi property
8636 in FONT_EXTRA.
8637 (font_parse_fcname): Handle enumerated values (e.g. bold).
8638 Fix handling font size. Add QCname property that contains only
8639 unknown properties.
8640 (font_score): Change argument. Change caller. Pay attention to
8641 FONT_PIXEL_SIZE_QUANTUM.
8642 (font_sort_entites, font_list_entities, font_find_for_lface)
8643 (font_open_for_lface, font_open_by_name): Fix handling of font size.
8644 (Ffont_spec): Add QCname property that contains only unknown properties.
8645
8646 * ftfont.c (ftfont_list): Use assq_no_quit, not Fassq. Don't
8647 include weight in listing pattern, instead check weight of each
8648 listed font. Don't include scalable in pattern. Pay attention to
8649 FONT_PIXEL_SIZE_QUANTUM.
8650
86512008-02-01 Kenichi Handa <handa@m17n.org>
8652
8653 * font.c (font_parse_fcname): Fix parsing of point-size.
8654 (font_unparse_fcname): Produce symbolic names for style properties.
8655 (font_list_entities): Handle float size correctly.
8656 (font_open_by_name): Prefer `normal' property values if the name
8657 doesn't specify them.
8658
8659 * fontset.c (Finternal_char_font): Use font_get_name, not
8660 Ffont_xlfd_name.
8661
8662 * ftfont.c (ftfont_pattern_entity): Use the numeric value 100 for
8663 FC_WEIGHT_REGULAR. Exclude FC_SIZE and FC_PIXEL_SIZE from listing
8664 pattern. Don't force scalable.
8665
8666 * xftfont.c (xftfont_open): For generating a name, start from
8667 96-byte buffer.
8668
86692008-02-01 Jan Djärv <jan.h.d@swipnet.se>
8670
8671 * frame.h (x_new_fontset2): Fix prototype.
8672
86732008-02-01 Kenichi Handa <handa@m17n.org>
8674
8675 * font.h (struct font_driver): Delete member parse_name.
8676 (font_match_p, font_get_spec, font_parse_fcname)
8677 (font_unparse_fcname): Extern them.
8678 (font_get_name): Adjust prototype.
8679
8680 * font.c (XLFD_SMALLNUM_MASK): Delete this macro.
8681 (XLFD_LARGENUM_MASK): Delete XLFD_ENCODING_MASK from it.
8682 (font_expand_wildcards): Fix handling ENCODING field. Avoid
8683 unnecessary checks for weight, slant, and swidth.
8684 (font_parse_fcname): New function.
8685 (font_unparse_fcname): New function.
8686 (font_parse_name): New function.
8687 (font_match_p): New function.
8688 (font_get_name): Change return value to Lisp string.
8689 (font_get_spec): New function.
8690 (Qunspecified, Qignore_defface): Don't extern them.
8691 (font_find_for_lface): Assume that LFACE is fully specified.
8692 (font_load_for_face): If lface[LFACE_FONT_INDEX] is an font
8693 object, use it for FACE.
8694 (font_open_by_name): Call Ffont_spec with QCname prop. Don't call
8695 driver->parse_name.
8696 (Ffont_spec): Call font_parse_name, not font_parse_xlfd.
8697
8698 * fontset.h (new_fontset_from_font) [USE_FONT_BACKEND]: Adjust
8699 prototype.
8700
8701 * fontset.c (new_fontset_from_font) [USE_FONT_BACKEND]: Delete
8702 argument F. Don't call Fnew_fontset. Instead, directly call
8703 make_fontset.
8704
8705 * frame.h (x_new_fontset2) [USE_FONT_BACKEND]: Adjust prototype.
8706
8707 * frame.c (x_set_font) [USE_FONT_BACKEND]: Adjust for the change
8708 of x_new_fontset2.
8709
8710 * ftfont.c (Qmonospace, Qsans_serif, Qserif, Qmono, Qsans)
8711 (Qsans__serif): New variables.
8712 (ftfont_generic_family_list): New variable.
8713 (syms_of_ftfont): Initialize the above variables.
8714 (ftfont_pattern_entity): Delete argument NAME.
8715 (ftfont_list_generic_family): New function.
8716 (ftfont_parse_name): Delete this function.
8717 (ftfont_list): Try generic family only when FcFontList found no font.
8718 (ftfont_list_family): Fix args to FcObjectSetBuild.
8719
8720 * xfaces.c (check_lface_attrs) [USE_FONT_BACKEND]: Accept font
8721 object in attrs[LFACE_FONT_INDEX].
8722 (set_lface_from_font_name): Cancel all changes for font-backend.
8723 (set_lface_from_font_and_fontset) [USE_FONT_BACKEND]: New
8724 function.
8725 (Finternal_set_lisp_face_attribute) [USE_FONT_BACKEND]: Accept a
8726 font object in QCfont attribute.
8727 (set_font_frame_param) [USE_FONT_BACKEND]: Likewise.
8728 (realize_default_face) [USE_FONT_BACKEND]: Call
8729 set_lface_from_font_and_fontset.
8730
8731 * xfns.c (x_default_font_parameter) [USE_FONT_BACKEND]: Try also
8732 "fixed", and signal error here if no suitable font was found.
8733
8734 * xfont.c (xfont_parse_name): Delete this function.
8735
8736 * xftfont.c (xftfont_open): Change coding style of error
8737 handling. Generate fontconfig's fontname pattern.
8738
8739 * xterm.h (struct x_output) [USE_FONT_BACKEND]: New member fontp.
8740 (FRAME_FONT_OBJECT) [USE_FONT_BACKEND]: New macro.
8741
8742 * xterm.c (x_new_fontset2) [USE_FONT_BACKEND]: Change arguments.
8743 Both args FONTSET and FONT_OBJECT must be existing ones.
8744
87452008-02-01 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
8746
8747 * macterm.c (mac_set_unicode_keystroke_event): Don't use MAKE_CHAR.
8748
87492008-02-01 Kenichi Handa <handa@m17n.org>
8750
8751 * xfont.c (xfont_open, xfont_encode_char): Fix typo.
8752
8753 * font.h (struct font): Fix typo.
8754
8755 * font.c (enum xlfd_field_index): Rename XLFD_XXX_SIZE_INDEX to
8756 XLFD_XXX_INDEX.
8757 (enum xlfd_field_mask): New enum.
8758 (intern_font_field): Changed argument. Change caller. If digits
8759 are followed by non-digits, return a symbol.
8760 (font_expand_wildcards): New function.
8761 (font_parse_xlfd): Fix wildcard handling.
8762 (Ffont_spec): If :name is specified, reflect the info in the other
8763 properties.
8764
8765 * ftfont.c (ftfont_pattern_entity): Fix typo.
8766 (ftfont_list): Enforce FC_LANG in PATTERN to cancel the effect of
8767 locale.
8768
87692008-02-01 Kenichi Handa <handa@m17n.org>
8770
8771 * font.h (Qiso8859_1, Qiso10646_1, Qunicode_bmp): Extern them.
8772
8773 * font.c (Qiso8859_1, Qiso10646_1, Qunicode_bmp): Move from ftfont.c.
8774 (font_unparse_xlfd): Fix argument type declaration. Append "*" if
8775 registry doesn't specify encoding part.
8776 (font_find_for_lface): Pay attention to LFACE_FONT_INDEX.
8777 (font_open_by_name): At first try parsing the name.
8778 (syms_of_font): Declare Qiso8859_1, Qiso10646_1, and Qunicode_bmp
8779 as Lisp symbols.
8780
8781 * fontset.c (reorder_font_vector): Pay attention to the case that
8782 the 3rd element of font_def is nil.
8783 (fontset_font): For the default fontset, append one more fontset
8784 elements for a script-based font specification. Don't add script
8785 attribute on finding a font.
8786 (new_fontset_from_font): Unconditionally set FONTSET_ASCII to the
8787 font name.
8788 (fontset_ascii_font): If a font can't be opened, return nil.
8789
8790 * ftfont.c (Qiso8859_1, Qiso10646_1, Qunicode_bmp): Move to font.c.
8791 (ftfont_pattern_entity): New function.
8792 (ftfont_get_cache): Assume that freetype_font_cache is already
8793 initialized.
8794 (ftfont_list): Handle the case that a file is specified in font
8795 name. Use ftfont_pattern_entity to generate entities.
8796 (ftfont_has_char): Check if the pattern contains FC_CHARSET.
8797 (syms_of_ftfont): Initialize freetype_font_cache.
8798
8799 * xftfont.c (xftfont_open): Make the font name fontconfig's
8800 style. Add BLOCK_INPUT and UNBLOCK_INPUT.
8801 (xftfont_close): Free font->font.name if not NULL.
8802
8803 * xfont.c (xfont_list): If script is specified for a font, return
8804 null_vector.
8805 (xfont_list_family): Declare argument type.
8806
8807 * xfaces.c (set_lface_from_font_name): If a font doesn't have a
8808 name, set LFACE_FONT (lface) to nil.
8809
8810 * xterm.c (x_new_fontset2): If an ASCII font couldn't be loaded,
8811 return Qnil.
8812
88132008-02-01 Kenichi Handa <handa@m17n.org>
8814
8815 * emacs.c (main): Check -enable-font-backend arg after the check of -nl.
8816 (standard_args): Add "-enable-font-backend".
8817
88182008-02-01 Kenichi Handa <handa@m17n.org>
8819
8820 * xftfont.c (xftfont_default_fid): Set fid_known to 1.
8821 (struct xftdraw_list, xftdraw_list): Delete them.
8822 (register_xftdraw, check_xftdraw): Delete them.
8823 (xftfont_prepare_face): Don't call register_xftdraw.
8824 (xftfont_done_face): Don't call check_xftdraw.
8825 (xftfont_draw): Get background color only when with_background is
8826 nonzero.
8827
8828 * xfont.c (xfont_encode_char): Fix calculation of char2b.
8829
88302008-02-01 Kenichi Handa <handa@m17n.org>
8831
8832 These changes are for the new font handling codes.
8833
8834 * Makefile.in (ALL_CFLAGS): Add @FREETYPE_CFLAGS@,
8835 @FONTCONFIG_CFLAGS@, and @LIBOTF_CFLAGS@.
8836 (LIB_X11_LIB): If HAVE_XFT is defined, set to @XFT_LIBS@.
8837 (FONTSRC, FONTOBJ): New variables.
8838 (obj): Add $(FONTOBJ).
8839 (SOME_MACHINE_OBJECTS): Lib_X11_Lib.
8840 (LIBES): Add @FREETYPE_LIBS@, @FONTCONFIG_LIBS@, and
8841 @LIBOTF_LIBS@.
8842 (font.o, ftfont.o, xfont.o, xftfont.o, ftxfont.o): New targets.
8843 (fontset.o, xdisp.o, xfaces.o, xfns.o, xterm.o): Depend on $(FONTSRC).
8844
8845 * font.h, font.c, xfont.c, ftfont.c, xftfont.c, ftxfont.c: New files.
8846
8847 * character.h (Vscript_representative_chars): Extern it.
8848
8849 * character.c (Vscript_representative_chars): New variable.
8850 (syms_of_character): Declare it as a Lisp variable.
8851
8852 * composite.c (get_composition_id) [USE_FONT_BACKEND]: If
8853 enable_font_backend is nonzero, accept the composition method
8854 COMPOSITION_WITH_GLYPH_STRING.
8855
8856 * composite.h (enum composition_method) [USE_FONT_BACKEND]: New
8857 enumeration COMPOSITION_WITH_GLYPH_STRING.
8858
8859 * dispextern.h (struct glyph_string) [USE_FONT_BACKEND]: New
8860 members clip_x, clip_y, clip_width, and clip_height.
8861 (struct face) [USE_FONT_BACKEND]: New members font_info and extra.
8862
8863 * emacs.c (main) [USE_FONT_BACKEND]: Handle arg
8864 --enable-font-backend. Call syms_of_font.
8865
8866 * fns.c (assoc_no_quit): New function.
8867
8868 * fontset.h (FONT_INFO_FROM_FACE): New macro.
8869 (face_for_font, new_fontset_from_font)
8870 (fontset_ascii_font) [USE_FONT_BACKEND]: Extern them.
8871
8872 * fontset.c [USE_FONT_BACKEND]: Include "font.h".
8873 (fontset_font, fontset_ascii, face_for_char)
8874 (make_fontset_for_ascii_face, Ffont_info)
8875 (Finternal_char_font) [USE_FONT_BACKEND]: If enable_font_backend
8876 is nonzero, use font-backend mechanism.
8877 (find_font_encoding): Make it non-static.
8878 (new_fontset_from_font, fontset_ascii_font) [USE_FONT_BACKEND]:
8879 New functions.
8880
8881 * frame.h (struct frame): New members resx and resy.
8882 (struct frame) [USE_FONT_BACKEND]: New member font_driver_list.
8883 (x_new_fontset2) [USE_FONT_BACKEND]: Extern it.
8884
8885 * frame.c [USE_FONT_BACKEND]: Include "font.h".
8886 (make_frame, x_set_font) [USE_FONT_BACKEND]: Use font-backend mechanism.
8887
8888 * lisp.h (assoc_no_quit): Extern it.
8889
8890 * xdisp.c: If USE_FONT_BACKEND is defined, include "font.h".
8891 Through out the file, use FONT_INFO_FROM_FACE instead of
8892 FONT_INFO_FROM_ID, use get_per_char_metric instead of
8893 rif->per_char_metric.
8894 (handle_composition_prop) [USE_FONT_BACKEND]: If the composition
8895 method is COMPOSITION_WITH_GLYPH_STRING, just set it->c to ' '.
8896 (get_glyph_face_and_encoding, fill_composite_glyph_string)
8897 (get_char_face_and_encoding, BUILD_COMPOSITE_GLYPH_STRING)
8898 (x_produce_glyphs) [USE_FONT_BACKEND]: If enable_font_backend is
8899 nonzero, use font-backend mechanism.
8900 (get_per_char_metric): New function.
8901
8902 * xfaces.c [USE_FONT_BACKEND]: Include "font.h".
8903 (set_lface_from_font_name)
8904 (set_font_frame_param, free_realized_face)
8905 (prepare_face_for_display, clear_face_gcs)
8906 (Finternal_set_font_selection_order, realize_x_face)
8907 [USE_FONT_BACKEND]: If enable_font_backend is nonzero, use
8908 font-backend mechanism.
8909 (clear_face_cache) [USE_FONT_BACKEND]: Don't call clear_font_table.
8910 (load_face_font) [USE_FONT_BACKEND]: Abort.
8911 (face_symbolic_value, face_symbolic_weight, face_symbolic_slant)
8912 (face_symbolic_swidth, face_for_font) [USE_FONT_BACKEND]: New functions.
8913
8914 * xfns.c [USE_FONT_BACKEND]: Include "font.h".
8915 (x_default_font_parameter) [USE_FONT_BACKEND]: New function.
8916 (Fx_create_frame) [USE_FONT_BACKEND]: If enable_font_backend is
8917 nonzero, register all available font drivers. Call
8918 x_default_font_parameter for deciding a font.
8919 (x_create_tip_frame) [USE_FONT_BACKEND]: Likewise.
8920
8921 * xterm.c [USE_FONT_BACKEND]: Include "font.h".
8922 (x_set_mouse_face_gc, x_set_glyph_string_clipping)
8923 (x_set_glyph_string_clipping_exactly)
8924 (x_compute_glyph_string_overhangs)
8925 (x_draw_glyph_string_foreground)
8926 (x_draw_composite_glyph_string_foreground, x_draw_glyph_string)
8927 (x_free_frame_resources) [USE_FONT_BACKEND]: If
8928 enable_font_backend is nonzero, use font-backend mechanism.
8929 (x_new_fontset2) [USE_FONT_BACKEND]: New function.
8930
89312008-02-01 Kenichi Handa <handa@m17n.org>
8932
8933 * coding.c (coding_inherit_eol_type): If PARENT is nil, inherit from
8934 system_eol_type.
8935 (syms_of_coding): Initialize system_eol_type.
8936
8937 * process.c (Fset_process_coding_system): Inherit system's eol
8938 format if necessary.
8939
89402008-02-01 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
8941
8942 * macgui.h (USE_ATSUI): Don't enable on emacs-unicode-2 branch.
8943
89442008-02-01 Kenichi Handa <handa@m17n.org>
8945
8946 * coding.c (decode_eol): Pay attention to buffer relocation in
8947 del_range_2.
8948 (decode_coding): Call decode_eol before restoring undo_list.
8949
89502008-02-01 Kenichi Handa <handa@m17n.org>
8951
8952 * charset.c (Fdefine_charset_internal): Fix setting of
8953 emacs_mule_bytes.
8954
89552008-02-01 Kenichi Handa <handa@m17n.org>
8956
8957 * keyboard.c (read_char): Check if C is a character or not before
8958 looking up Vkeyboard_translate_table.
8959
89602008-02-01 Kenichi Handa <handa@m17n.org>
8961
8962 * coding.c (DECODE_EMACS_MULE_20_RELATIVE_COMPOSITION): Fix
8963 condition to terminate the loop.
8964
89652008-02-01 Kenichi Handa <handa@m17n.org>
8966
8967 * coding.c (produce_composition): Compare charbuf[i] instead of
8968 args[i] against 0.
8969 (Fterminal_coding_system): Use EQ to compare Lisp objects.
8970
89712008-02-01 Kenichi Handa <handa@m17n.org>
8972
8973 * coding.c (DECODE_COMPOSITION_START): If the source is short, set
8974 coding->result to CODING_RESULT_INSUFFICIENT_SRC.
8975 (decode_coding_gap): Set CODING_MODE_LAST_BLOCK after the call of
8976 detect_coding.
8977 (emacs_mule_char): Handle old style (Emacs 20) component character
8978 of a composition.
8979 (DECODE_EMACS_MULE_COMPOSITION_RULE_20)
8980 (DECODE_EMACS_MULE_20_RULEBASE_COMPOSITION): Fix parsing a
8981 composition rule.
8982 (decode_coding_emacs_mule): Handle invalid bytes correctly.
8983
89842008-02-01 Kenichi Handa <handa@m17n.org>
8985
8986 * coding.c (encode_coding_ccl): Allocate destination dynamically
8987 when necessary.
8988
89892008-02-01 Kenichi Handa <handa@m17n.org>
8990
8991 * ccl.c (Fccl_execute_on_string): Fix the condition of terminating
8992 the loop. When quitted, show a proper error message.
8993
89942008-02-01 Kenichi Handa <handa@m17n.org>
8995
8996 * xterm.c (x_set_glyph_string_clipping_exactly): Set
8997 src->clip_head and src->clip_tail temporarily instead of src->hl.
8998
8999 * ccl.c (CCL_WRITE_STRING): Handle a flag bit for multibyte
9000 character sequence.
9001 (Fccl_execute_on_string): Use ASET, not XSET.
9002
90032008-02-01 Kenichi Handa <handa@m17n.org>
9004
9005 * search.c (search_buffer): Fix handling of "\\" in a trivial regexp.
9006
90072008-02-01 Kenichi Handa <handa@m17n.org>
9008
9009 * coding.c (decode_coding): Fix the condition of terminating the
9010 decoding loop.
9011
90122008-02-01 Kenichi Handa <handa@m17n.org>
9013
9014 * data.c (Faset): On setting a character bigger than 255 in a
9015 unibyte string, signal an error instead of make the string multibyte.
9016
90172008-02-01 Kenichi Handa <handa@m17n.org>
9018
9019 * charset.c (map_charset_chars): Fix for ascii-compatible charset
9020 made by a mapping table.
9021
90222008-02-01 Kenichi Handa <handa@m17n.org>
9023
9024 * xdisp.c (fill_composite_glyph_string): Check s->face is NULL or
9025 not.
9026 (BUILD_COMPOSITE_GLYPH_STRING): If C is TAB, set s->face to NULL.
9027 (x_produce_glyphs): If CH is TAB, set cmp->offsets properly.
9028
9029 * xterm.c (x_draw_composite_glyph_string_foreground): Check
9030 s->face is NULL or not.
9031
90322008-02-01 Kenichi Handa <handa@m17n.org>
9033
9034 * xterm.c (x_set_glyph_string_clipping_exactly): New function.
9035 (x_draw_glyph_string): Fix drawing of right_overhang and
9036 left_overhang around/on cursor.
9037
9038 * xdisp.c (draw_glyphs): Fix inclusion of right_overwriting glyphs.
9039
90402008-02-01 Kenichi Handa <handa@m17n.org>
9041
9042 * xdisp.c (x_produce_glyphs): Handle composition with TAB.
9043
90442008-02-01 Kenichi Handa <handa@m17n.org>
9045
9046 * coding.c (Fdefine_coding_system_internal)
9047 (Fdefine_coding_system_alias): Avoid a duplicated element in
9048 Vcoding_system_alist.
9049
90502008-02-01 Kenichi Handa <handa@m17n.org>
9051
9052 * xterm.c (handle_one_xevent): Handle keysyms 0x1000000..0x10000FF.
9053
9054 * coding.c (Qcoding_system_define_form): New variable.
9055 (syms_of_coding): Intern and staticpro it.
9056 (Fcoding_system_p): Check Qcoding_system_define_form.
9057 (Fcheck_coding_system): Try to autoload the definition of CODING-SYSTEM.
9058
9059 * coding.h (CODING_SYSTEM_P): If ID is not available, call
9060 Fcoding_system_p.
9061 (CHECK_CODING_SYSTEM): If ID is not available, call
9062 Fcheck_coding_system.
9063 (CHECK_CODING_SYSTEM_GET_SPEC, CHECK_CODING_SYSTEM_GET_ID):
9064 Try also Fcheck_coding_system.
9065
90662008-02-01 Kenichi Handa <handa@m17n.org>
9067
9068 * coding.c (code_conversion_restore): GCPRO arg.
9069
90702008-02-01 Kenichi Handa <handa@m17n.org>
9071
9072 * character.c (lisp_string_width): Check multibyteness of STRING.
9073
90742008-02-01 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
9075
9076 * macterm.c (mac_encode_char): Call ccl_driver with the last arg
9077 Qnil. Use JIS_TO_SJIS instead of ENCODE_SJIS.
9078 (decode_mac_font_name): Use decode_coding_c_string instead of
9079 decode_coding.
9080 (x_load_font): Initialize fontp->fontset to -1. Set
9081 fontp->encoding_type.
9082
90832008-02-01 Kenichi Handa <handa@m17n.org>
9084
9085 * search.c (search_buffer): Give up BM search on case-fold-search
9086 if one of a target character has a case-equivalence of different
9087 byte length even if that target charcter is an ASCII.
9088 (simple_search): Fix calculation of byte length of matched text.
9089 (boyer_moore): Fix handling of case-equivalent multibyte characters.
9090
90912008-02-01 Kenichi Handa <handa@m17n.org>
9092
9093 * coding.c (decode_coding): Fix handling of invalid bytes.
9094
90952008-02-01 Kenichi Handa <handa@m17n.org>
9096
9097 * xterm.c (handle_one_xevent): Handle keysyms directly mapped to
9098 Unicode characters.
9099
91002008-02-01 Kenichi Handa <handa@m17n.org>
9101
9102 * coding.c (encode_coding_object): If a pre-write-conversion
9103 function makes a new buffer, kill it.
9104
91052008-02-01 Kenichi Handa <handa@m17n.org>
9106
9107 * coding.c (QCascii_compatible_p): New variable.
9108 (syms_of_coding): Initialize it.
9109 (ONE_MORE_BYTE, ONE_MORE_BYTE_NO_CHECK): Decrement `src' before
9110 calling string_char.
9111 (record_conversion_result): Add `default:' case.
9112 (coding_charset_list): Delete unused variable `coding_type'.
9113 (Fdefine_coding_system_internal): Add `ascii-compatible-p'
9114 property in the plist of the coding system.
9115 (Fcoding_system_put): Check QCascii_compatible_p.
9116
91172008-02-01 Miles Bader <miles@gnu.org>
9118
9119 * xfaces.c (Finternal_lisp_face_equal_p): Restore previously
9120 removed calculation of frame `f', as it's now used.
9121
91222008-02-01 Kenichi Handa <handa@m17n.org>
9123
9124 * Makefile.in (RUN_TEMACS): Include "-nl" if HAVE_SHM is defined.
9125 (emacs${EXEEXT}): Run $(RUN_TEMACS) unconditionally.
9126 (UNIDATA): New variable.
9127 (${lispsource}international/charprop.el): Depends on ${UNIDATA}.
9128 (bootstrap-emacs${EXEEXT}): Depends on charprop.el. Run
9129 $(RUN_TEMACS) unconditionally.
9130
91312008-02-01 Kenichi Handa <handa@m17n.org>
9132
9133 * Makefile.in (temacs${EXEEXT}): Build charprop.el if necessary.
9134 (admindir): New variable.
9135 ($(lispsource)international/charprop.el): New target.
9136
91372008-02-01 Miles Bader <miles@gnu.org>
9138
9139 * character.c (chars-in-region): Remove obsolete function.
9140 (syms_of_character): Remove its initialization.
9141
91422008-02-01 Benjamin Riefenstahl <b.riefenstahl@turtle-trading.net>
9143
9144 * w32select.c (validate_coding_system)
9145 (setup_windows_coding_system): New functions.
9146 (convert_to_handle_as_coded, Fw32_get_clipboard_data): Use
9147 setup_windows_coding_system.
9148 (setup_config, Fw32_get_clipboard_data): Use
9149 validate_coding_system.
9150 (Fx_selection_exists): Move call to setup_config to a place
9151 where signals are allowed.
9152
9153 * lisp.h (Fcoding_system_base, Fcoding_system_eol_type)
9154 (Fcheck_coding_system): Add declarations.
9155
91562008-02-01 Kenichi Handa <handa@m17n.org>
9157
9158 * charset.c (load_charset_map_from_vector): Fix for the first iteration.
9159
91602008-02-01 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
9161
9162 * macfns.c (Fx_create_frame, x_create_tip_frame): Pass Lisp
9163 string as the second argument for x_new_fontset.
9164
91652008-02-01 Kenichi Handa <handa@m17n.org>
9166
9167 * coding.c (decode_coding_object): Use safe_call1 instead of call1.
9168 (encode_coding_object): Use safe_call instead of call2.
9169
91702008-02-01 Kenichi Handa <handa@m17n.org>
9171
9172 * fontset.c (Fset_fontset_font): Check family element of a given vector.
9173
9174 * Makefile.in (lisp): Include charprop.el.
9175
91762008-02-01 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
9177
9178 * macfns.c (Fx_create_frame, x_create_tip_frame): Fix crash.
9179 Not sure if it's unnecessary.
9180
91812008-02-01 Steven Tamm <steventamm@mac.com>
9182
9183 * macfns.c (Fx_create_frame, x_create_tip_frame): ifdef'd out
9184 some possibly unnecessary fontset checking code that crashed
9185 when creating a new frame.
9186
91872008-02-01 Kenichi Handa <handa@m17n.org>
9188
9189 * xfaces.c (merge_faces): Fix argument to lookup_derived_face and
9190 lookup_face.
9191
9192 * xdisp.c (Fformat_mode_line): Fix argument to lookup_named_face.
9193
9194 * fringe.c (draw_fringe_bitmap_1): Fix argument to lookup_named_face.
9195
91962008-02-01 Kenichi Handa <handa@m17n.org>
9197
9198 * coding.c: Cancel the change done in HEAD on 2008-02-01.
9199 (coding_charset_list): New function.
9200
9201 * coding.h (coding_charset_list): Extern it.
9202
92032008-02-01 Kenichi Handa <handa@m17n.org>
9204
9205 * fontset.c (Fset_fontset_font): Call find_font_encoding with
9206 concatenation of family and registry.
9207
92082008-02-01 Kenichi Handa <handa@m17n.org>
9209
9210 * character.h (BYTE8_STRING): Fix typo.
9211
9212 * editfns.c (Ftranslate_region_internal): Don't convert unibyte
9213 string to multibyte (sync to HEAD).
9214
9215 * casefiddle.c (casify_region): Handle changes in byte-length
9216 using replace_range_2 (sync to HEAD).
9217
92182008-02-01 Andreas Schwab <schwab@suse.de>
9219
9220 * chartab.c (map_char_table): GCPRO table and arg.
9221
92222008-02-01 Kenichi Handa <handa@m17n.org>
9223
9224 * syntax.c (skip_syntaxes): Return lispy 0 (not nil) if point is
9225 already at limit.
9226
92272008-02-01 Kenichi Handa <handa@m17n.org>
9228
9229 * fontset.c (fs_load_font): Use fast_string_match_ignore_case
9230 instead of fast_c_string_match_ignore_case.
9231 (find_font_encoding): Change argument to Lisp_Object. Use
9232 fast_string_match_ignore_case instead of
9233 fast_c_string_match_ignore_case. Change caller.
9234
92352008-02-01 Kenichi Handa <handa@m17n.org>
9236
9237 * xdisp.c (get_next_display_element): In unibyte case, decide to
9238 display in octal form by checking a character by
9239 UNIBYTE_CHAR_HAS_MULTIBYTE_P.
9240
9241 * charset.c (Fset_unibyte_charset): Setup unibyte_has_multibyte_table.
9242
9243 * character.c (unibyte_has_multibyte_table): New variable.
9244
9245 * character.h (unibyte_has_multibyte_table): Extern it.
9246 (UNIBYTE_CHAR_HAS_MULTIBYTE_P): New macro.
9247
92482008-02-01 Kenichi Handa <handa@m17n.org>
9249
9250 * coding.c (encode_coding_iso_2022): Fix handling of charset
9251 annotation.
9252
92532008-02-01 Kenichi Handa <handa@m17n.org>
9254
9255 * coding.c (setup_coding_system): If coding_system is nil, use
9256 Qundecided.
9257 (Fterminal_coding_system): Return nil if terminal coding system is
9258 `undecided'.
9259 (syms_of_coding): Define coding-system `undecided' here. Setup
9260 terminal_coding as `undecided'.
9261
92622008-02-01 Kenichi Handa <handa@m17n.org>
9263
9264 * xdisp.c (message_dolog, set_message_1): Call
9265 unibyte_char_to_multibyte with arg type int.
9266
9267 * lread.c (read1): Fix reading of a char-table.
9268
9269 * print.c (print_object): Include sub char-table in circularities
9270 detection.
9271
92722008-02-01 Kenichi Handa <handa@m17n.org>
9273
9274 * keymap.c (where_is_internal_2): Fix for the case that KEY is a cons.
9275 Append the found sequences in car of ARGS instead of prepending.
9276
92772008-02-01 Kenichi Handa <handa@m17n.org>
9278
9279 * fileio.c (report_file_error): Make a unibyte string from
9280 strerror (errorno).
9281 (Fsubstitute_in_file_name): Fix the arg to
9282 unibyte_char_to_multibyte. It is evaluated twice.
9283
92842008-02-01 Kenichi Handa <handa@m17n.org>
9285
9286 * charset.h (CHAR_CHARSET): Shortcut for ASCII case.
9287
92882008-02-01 Kenichi Handa <handa@m17n.org>
9289
9290 * coding.c (detect_coding_utf_16): Don't set detect_info->found if
9291 BOM is not found.
9292 (detect_coding, detect_coding_system): Optimization for ISO-2022
9293 when no 8-bit data is found.
9294
92952008-02-01 Jason Rumney <jasonr@gnu.org>
9296
9297 * w32fns.c (x_to_w32_font): Update to use new coding struct.
9298
92992008-02-01 Kenichi Handa <handa@m17n.org>
9300
9301 * charset.c (Fdeclare_equiv_charset, Fiso_charset): Fix handing of
9302 CHARS.
9303
93042008-02-01 Steven Tamm <steventamm@mac.com>
9305
9306 * macterm.c (mac_encode_char): Add charset argument and update
9307 to use encoding_type.
9308 (x_new_font, x_new_fontset): Merge in changes from xterm.c;
9309 switch to pure fontset.
9310 (decode_mac_font_name): Temporarily remove decoding.
9311 (x_font_name_to_mac_font_name): Temporarily remove encoding.
9312 (x_load_font): Temporarily remove encoding.
9313
93142008-02-01 Kenichi Handa <handa@m17n.org>
9315
9316 * xfaces.c (Fface_font): If frame is not on a window system,
9317 ignore CHARACTER arg. If HAVE_WINDOW_SYSTEM is not defined, don't
9318 refer to face->font.
9319 (split_font_name_into_vector, build_font_name_from_vector)
9320 (lookup_non_ascii_face, realize_non_ascii_face): Define them only
9321 when HAVE_WINDOW_SYSTEM is defined.
9322
93232008-02-01 Kenichi Handa <handa@m17n.org>
9324
9325 * xdisp.c (BUILD_GLYPH_STRINGS): Check if s is NULL.
9326 (x_produce_glyphs): Fix setting of members of cmp in case
9327 cmp->glyph_len is zero.
9328
9329 * fontset.c (Fset_fontset_font): Fix docstring.
9330 (Ffontset_info): Make it backward compatible. New arg ALL.
9331
93322008-02-01 Kim F. Storm <storm@cua.dk>
9333
9334 * process.c (read_process_output): Grow decoding_buf when needed;
9335 this could cause a crash in allocate_string and compact_small_strings.
9336
93372008-02-01 Kenichi Handa <handa@m17n.org>
9338
9339 * fileio.c (WRITE_BUF_SIZE): Delete this macro.
9340
93412008-02-01 Kenichi Handa <handa@m17n.org>
9342
9343 * coding.c (setup_coding_system): Set coding->common_flags
9344 correctly for raw-text.
9345 (consume_chars): On encoding unibyte text by raw-text, don't check
9346 multibyte form.
9347 (encode_coding): On encoding by raw-text, never use translation tables.
9348
9349 * fileio.c (e_write): Short cut for the case of no encoding.
9350
93512008-02-01 Kenichi Handa <handa@m17n.org>
9352
9353 * coding.c (detect_coding, detect_coding_system): Delete unused
9354 variables.
9355
93562008-02-01 Kenichi Handa <handa@m17n.org>
9357
9358 * coding.c (encode_coding_utf_8): Fix handling of raw-byte char.
9359 (consume_chars): Fix handling of 8-bit bytes in unibyte source.
9360
93612008-02-01 Kenichi Handa <handa@m17n.org>
9362
9363 * coding.c (Ffind_coding_systems_region_internal): Include
9364 raw-text and no-conversion in the result.
9365
93662008-02-01 Kenichi Handa <handa@m17n.org>
9367
9368 * fontset.c (find_font_encoding): Return `ascii' for unknown encoding.
9369 (load_font_get_repertory): Delete unnecessary check of ENCODING of
9370 FONT_DEF.
9371 (font_def_arg, add_arg, from_arg, to_arg): New args.
9372 (set_fontset_font): Change argument.
9373 (Fset_fontset_font): Fix for the case that TARGET is a script
9374 name and charset name.
9375 (new_fontset_from_font_name): Fix argument to Fnew_fontset.
9376
93772008-02-01 Kenichi Handa <handa@m17n.org>
9378
9379 * fontset.c (fontset_font): Rename from fontset_face. Change return
9380 value.
9381 (face_suitable_for_char_p, face_for_char): Adjust for the change
9382 of fontset_font.
9383 (make_fontset_for_ascii_face): Fix setting of the fontset element
9384 for ASCII.
9385 (Finternal_char_font): Use fontset_font instead of FACE_FOR_CHAR
9386 to get a font name.
9387 (Ffontset_info): Adjust for the change of fontset_font.
9388
9389 * coding.c (emacs_mule_char): Check invalid code more rigidly.
9390
9391 * character.h (LEADING_CODE_LATIN_1_MIN)
9392 (LEADING_CODE_LATIN_1_MAX): Delete these macros.
9393
93942008-02-01 Kenichi Handa <handa@m17n.org>
9395
9396 * editfns.c (check_translation): New function.
9397 (Ftranslate_region_internal): Handle M:N mapping.
9398
93992008-02-01 Kenichi Handa <handa@m17n.org>
9400
9401 * xfaces.c (xlfd_point_size): Set font->numeric[XLFD_PIXEL_SIZE].
9402
94032008-02-01 Kenichi Handa <handa@m17n.org>
9404
9405 * coding.c (DECODE_DESIGNATION): Set chars_96 to -1 instead of
9406 goto invalid_code.
9407 (decode_coding_iso_2022): Fix handling of invalid designation.
9408
9409 * fileio.c (Finsert_file_contents): Be sure to call unbind_to
9410 after calling code_conversion_save.
9411
94122008-02-01 Kenichi Handa <handa@m17n.org>
9413
9414 * xdisp.c (handle_auto_composed_prop): Fix Lisp_Object/int mixup.
9415
9416 * print.c (print_prune_string_charset): Fix Lisp_Object/int mixup.
9417
9418 * fontset.c: Include "intervals.h".
9419 (fontset_face): Fix comparing of Lisp_Objects.
9420 (free_face_fontset, new_fontset_from_font_name): Fix
9421 Lisp_Object/int mixup.
9422
9423 * editfns.c (Ftranslate_region_internal): Fix Lisp_Object/int mixup.
9424
9425 * coding.c: Add many prototypes for static functions.
9426 (get_translation_table): Allow max_lookup to be NULL.
9427 (decode_coding, Ffind_coding_systems_region_internal)
9428 (Funencodable_char_position, Fcheck_coding_systems_region): Call
9429 get_translation_table with max_lookup NULL.
9430
94312008-02-01 Kenichi Handa <handa@m17n.org>
9432
9433 * coding.c (get_translation_table): Declare it as Lisp_Object.
9434 (LOOKUP_TRANSLATION_TABLE): New macro.
9435 (produce_chars, consume_chars): Use LOOKUP_TRANSLATION_TABLE
9436 instead of CHAR_TABLE_REF.
9437
94382008-02-01 Kenichi Handa <handa@m17n.org>
9439
9440 * coding.c (MAX_ANNOTATION_LENGTH): Adjust for the change of
9441 annotation data format.
9442 (ADD_ANNOTATION_DATA, ADD_COMPOSITION_DATA, ADD_CHARSET_DATA):
9443 Change arguments FROM and TO to single argument NCHARS. Change caller.
9444 (decode_coding_utf_8, decode_coding_utf_16, decode_coding_emacs_mule)
9445 (decode_coding_iso_2022, decode_coding_sjis, decode_coding_big5)
9446 (decode_coding_ccl, decode_coding_charset): Pay attention to
9447 coding->charbuf_used.
9448 (get_translation): New function.
9449 (produce_chars): New arguments translation_table and last_block.
9450 Translate characters here. Return number of carryover chars.
9451 Change caller.
9452 (produce_composition): New argument pos. Change caller.
9453 Adjust for the change of annotation data format.
9454 (produce_charset, produce_annotation): Likewise.
9455 (decode_coding, encode_coding): Don't call translate_chars.
9456 (consume_chars): New arg translation_table. Change caller.
9457 (translate_chars): Delete.
9458 (syms_of_coding): Make translation-table's number of extra slots 2.
9459
94602008-02-01 Kenichi Handa <handa@m17n.org>
9461
9462 * search.c (simple_search): Fix setting this_pos_byte in backward
9463 search.
9464
9465 * coding.c (detect_coding_emacs_mule): Fix counting of encoded
9466 byte sequence.
9467 (detect_coding_ccl): Fix setting of the variable valids.
9468
94692008-02-01 Kenichi Handa <handa@m17n.org>
9470
9471 * xterm.c (x_list_fonts): Fix the detection of an auto-scaled font.
9472
9473 * coding.c (decode_coding_utf_16): Fix handling of surrogate pair.
9474
9475 * editfns.c (Ftranslate_region_internal): Rename from
9476 Ftranslate_region. Accept a char-table in TABLE.
9477 (syms_of_editfns): Defsubr Stranslate_region_internal.
9478
9479 * xfaces.c (set_lface_from_font_name): If a font is specified for
9480 a frame, generate a fontset from the font.
9481 (build_scalable_font_name): If the scalable font is requested for
9482 a specific size, don't change that size.
9483 (try_font_list): Try a scalable font also in the case that a
9484 pattern string is specified.
9485
94862008-02-01 Kenichi Handa <handa@m17n.org>
9487
9488 * xfaces.c (Fface_font): New optional arg CHARACTER.
9489
94902008-02-01 Kenichi Handa <handa@m17n.org>
9491
9492 * charset.h (CHARSET_OFFSET): New macro.
9493
94942008-02-01 Kenichi Handa <handa@m17n.org>
9495
9496 * xterm.c (x_get_font_repertory): Fix for non-Unicode-bmp charset.
9497
9498 * fontset.c (fontset_face): Handle the case that repertory is a
9499 char-table.
9500 (find_font_encoding): Return nil for unknown encoding.
9501 (Fset_fontset_font): Ignore a font of unknown encoding.
9502
95032008-02-01 Kenichi Handa <handa@m17n.org>
9504
9505 * keymap.c (describe_vector): Handle default value of a char table.
9506
9507 * fontset.c (fontset_face): Handle fallback fonts correctly.
9508 (Ffontset_info): Return infomation about fallback fonts.
9509
95102008-02-01 Kenichi Handa <handa@m17n.org>
9511
9512 * fontset.c (FONTSET_DEFAULT): New macro.
9513 (FONTSET_ADD, fontset_add): Handle the case that range is nil.
9514 (Fset_fontset_font): Change the 2nd arg name to TARGET, and handle
9515 the case that it is nil.
9516 (dump_fontset): Call FONTSET_DEFAULT, not FONTSET_FALLBACK.
9517 (syms_of_fontset): Set char-table-extra-slots property of fontset to 9.
9518
9519 * charset.h (CHAR_CHARSET_P): Fix for the case that the method is
9520 subset or superset.
9521
95222008-02-01 Kenichi Handa <handa@m17n.org>
9523
9524 * emacs.c (main): Call init_charset after syms_of_XXX.
9525
9526 * charset.c (Vcharset_map_directory): Delete.
9527 (Vcharset_map_path): New variable.
9528 (load_charset_map_from_file): Use Vcharset_map_path instead.
9529 (init_charset): Initialize Vcharset_map_path.
9530 (syms_of_charset): Delete declaration of "charset-map-directory",
9531 add declaration of "charset-map-path".
9532
95332008-02-01 Kenichi Handa <handa@m17n.org>
9534
9535 * fns.c (string_char_to_byte, string_byte_to_char): Optimize for
9536 ASCII only string.
9537
9538 * fileio.c (Finsert_file_contents): Avoid detecting a code twice.
9539
9540 * coding.c (detect_coding_iso_2022): Fix handling of SS2 and SS3.
9541 (detect_coding, detect_coding_system): Treat '\0' as normal ASCII byte.
9542
95432008-02-01 Kenichi Handa <handa@m17n.org>
9544
9545 * coding.h (SJIS_TO_JIS2, JIS_TO_SJIS2): New macros.
9546
9547 * coding.c (QCmnemonic, QCdefalut_char)
9548 (QCdecode_translation_table, QCencode_translation_table)
9549 (QCpost_read_conversion, QCpre_write_conversion): New variables.
9550 (get_translation_table): Return a list of translation tables if
9551 necessary.
9552 (decode_coding): Call get_translation_table with ENCODEP 0.
9553 (char_encodable_p): If translation_table is non-nil, always call
9554 translate_char.
9555 (Fdefine_coding_system_internal): Accept list of translation
9556 tables as :encode-translation-table and :decode-translation-table.
9557 (Fcoding_system_put): New function.
9558 (syms_of_coding): Declare new symbols. Defsubr
9559 Scoding_system_put.
9560 (decode_coding_sjis, encode_coding_sjis): Handle 4th charset,
9561 typically JISX0212.
9562
9563 * charset.c (map_charset_chars): Fix arg to map_charset_chars in
9564 when the charset is superset type.
9565
9566 * character.c (translate_char): Accept list of translation tables.
9567
95682008-02-01 Kenichi Handa <handa@m17n.org>
9569
9570 * coding.h (enum coding_attr_index): New member coding_attr_trans_tbl.
9571 (CODING_ATTR_TRANS_TBL): New macro.
9572
9573 * coding.c (get_translation_table): New function.
9574 (translate_chars): Fix the bug of skipping annotation data.
9575 (decode_coding, encode_coding): Utilize get_translation_table.
9576 (char_encodable_p, Funencodable_char_position): Translate char if
9577 necessary.
9578 (Ffind_coding_systems_region_internal)
9579 (Fcheck_coding_systems_region): Setup translation table for encode
9580 in a coding system attribute vector in advance.
9581 (Fdefine_coding_system_internal): Allow a symbol as translation
9582 table. For shift-jis type coding system, allow 4th charset.
9583
95842008-02-01 Kenichi Handa <handa@m17n.org>
9585
9586 * coding.c (decode_coding_sjis): Check the first byte rigidly.
9587
9588 * xdisp.c (get_next_display_element): Pass -1 as POS to
9589 FACE_FOR_CHAR if displaying a C-string.
9590
95912008-02-01 Kenichi Handa <handa@m17n.org>
9592
9593 * composite.c (get_composition_id): Handle xoff and yoff in a
9594 composition rule.
9595
9596 * composite.h (COMPOSITION_DECODE_RULE): New arg xoff and yoff.
9597 (struct composition): New member lbearing and rbearing.
9598
9599 * xdisp.c (move_it_to): Optimize for the case (op & MOVE_TO_Y).
9600 (x_get_glyph_overhangs): Handle a composition glyph.
9601 (x_produce_glyphs): Setup lbearing and rbreaing for a composition glyph.
9602
9603 * xterm.c (x_compute_glyph_string_overhangs): Handle also a
9604 composition glyph.
9605
96062008-02-01 Kenichi Handa <handa@m17n.org>
9607
9608 * print.c: Include charset.h.
9609 (Vprint_charset_text_property): New variable.
9610 (Qdefault): Extern it.
9611 (PRINT_STRING_NON_CHARSET_FOUND)
9612 (PRINT_STRING_UNSAFE_CHARSET_FOUND): New macros.
9613 (print_check_string_result): New variable.
9614 (print_check_string_charset_prop): New function.
9615 (print_prune_charset_plist): New variable.
9616 (print_prune_string_charset): New function.
9617 (print_object): Call print_prune_string_charset if
9618 Vprint_charset_text_property is not t.
9619 (print_interval): Print nothing if interval->plist is nil.
9620 (syms_of_print): Declare Vprint_charset_text_property as a lisp
9621 variable. Init and staticpro print_prune_charset_plist.
9622
96232008-02-01 Kenichi Handa <handa@m17n.org>
9624
9625 * fontset.c (new_fontset_from_font_name): Use the specified font
9626 for all characters in the new fontset.
9627
9628 * macterm.c (x_set_mouse_face_gc): Call FACE_FOR_CHAR with POS and
9629 OBJECT args.
9630
9631 * xdisp.c (x_produce_glyphs): Call FACE_FOR_CHAR with POS and
9632 OBJECT args for composition too.
9633
9634 * w32term.c (x_set_mouse_face_gc): Call FACE_FOR_CHAR with POS and
9635 OBJECT args.
9636
96372008-02-01 Kenichi Handa <handa@m17n.org>
9638
9639 * dispextern.h (FACE_FOR_CHAR): New args POS and OBJECT.
9640
9641 * fontset.c (reorder_font_vector): Adjust for the change of
9642 FONT_DEF format.
9643 (fontset_face): New arg id. Change caller.
9644 (face_for_char): New args pos and object.
9645 (make_fontset_for_ascii_face): Adjust for the change of FONT_DEF format.
9646 (fs_query_fontset): Check NAME by Fassoc too.
9647 (Fset_fontset_font): Allow non-XLFD font name.
9648 (Ffontset_info): Adjust for the change of FONT_DEF format.
9649
9650 * fontset.h (face_for_char): Adjust prototype.
9651
9652 * xdisp.c (face_before_or_after_it_pos, get_next_display_element)
9653 (append_space, extend_face_to_end_of_line)
9654 (get_char_face_and_encoding, BUILD_COMPOSITE_GLYPH_STRING)
9655 (x_produce_glyphs): Call FACE_FOR_CHAR with POS and OBJECT args.
9656
9657 * xfaces.c (compute_char_face): Call FACE_FOR_CHAR with
9658 POS and OBJECT args.
9659
9660 * xterm.c (x_set_mouse_face_gc): Call FACE_FOR_CHAR with
9661 POS and OBJECT args.
9662
96632008-02-01 Jason Rumney <jasonr@gnu.org>
9664
9665 * w32select.c (Fw32_set_clipboard_data): Avoid potential realloc
9666 of GlobalAlloc'ed memory.
9667
96682008-02-01 Kenichi Handa <handa@m17n.org>
9669
9670 * ccl.c (Fccl_execute_on_string): Fix the condition of loop.
9671
9672 * charset.h (charset_table_used): Delete extern.
9673
9674 * charset.c (charset_table_used): Make it static.
9675 (map_charset_chars): Fix args to c_function with.
9676
9677 * chartab.c (map_sub_char_table_for_charset): Fix args to
9678 c_function with.
9679
9680 * coding.h (enum coding_result_code): Delete
9681 CODING_RESULT_INSUFFICIENT_CMP, add CODING_RESULT_INVALID_SRC.
9682
9683 * coding.c (Qinsufficient_source, Qinconsistent_eol)
9684 (Qinvalid_source, Qinterrupted, Qinsufficient_memory): New variables.
9685 (Vlast_code_conversion_error): New variables.
9686 (syms_of_coding): DEFSYM or DEFVAR_LISP them.
9687 (ONE_MORE_BYTE): Record error if any instead of signaling an
9688 error. If non-ASCII multibyte char is found, return the negative
9689 value of the code. All callers changed to check it.
9690 (ONE_MORE_BYTE_NO_CHECK): Likewise.
9691 (record_conversion_result): New function. Change all codes setting
9692 coding->result to call this function.
9693 (detect_coding_utf_8, decode_coding_utf_8)
9694 (detect_coding_emacs_mule, detect_coding_sji, detect_coding_big5):
9695 Don't use the local variable incomplete.
9696 (emacs_mule_char): Change the second arg to `const'.
9697 (decode_coding): Fix of flushing out unprocessed data.
9698 (make_conversion_work_buffer): Fix making of a work buffer.
9699 (decode_coding_object): Return coding->dst_object.
9700
9701 * fontset.c (set_fontset_font): Fix args.
9702
9703 * lisp.h (CHARACTERBITS): Define as 22.
9704
9705 * process.c (send_process): Be sure to set coding->src_multibyte.
9706
9707 * xdisp.c (handle_auto_composed_prop): Fix setting of limit.
9708
97092008-02-01 Kenichi Handa <handa@m17n.org>
9710
9711 * xdisp.c (handle_auto_composed_prop): Give limit to
9712 Fnext_single_char_property_change.
9713
97142008-02-01 Kenichi Handa <handa@m17n.org>
9715
9716 * composite.c (syms_of_composite): Don't make the composition hash
9717 table weak.
9718
9719 * fontset.c (Fset_fontset_font): Fix docstring.
9720
9721 * lisp.h (detect_coding_system): Adjust prototype.
9722
9723 * fileio.c (kill_workbuf_unwind): Delete this function.
9724 (Finsert_file_contents): Adjust the call of detect_coding_system.
9725 Get conversion_buffer by code_conversion_save. Use the macro
9726 CODING_MAY_REQUIRE_DECODING. After decoding, update
9727 coding_system.
9728
9729 * coding.h (make_conversion_work_buffer): Delete extern.
9730 (code_conversion_save): Extern it.
9731
9732 * coding.c (enum iso_code_class_type): Delete ISO_carriage_return.
9733 (CODING_GET_INFO): Delete argument eol_type. Change callers.
9734 (decode_coding_utf_8): Don't do eol converion.
9735 (detect_coding_utf_16): Check coding->src_chars, not
9736 coding->src_bytes. Add heuristics for those that have no signature.
9737 (decode_coding_emacs_mule, decode_coding_iso_2022)
9738 (decode_coding_sjis, decode_coding_big5, decode_coding_charset):
9739 Don't do eol converion.
9740 (adjust_coding_eol_type): Return a new coding system.
9741 (detect_coding): Don't detect eol. Fix for utf-16 detection.
9742 (decode_eol): In case of CRLF->LF conversion, use del_range_2 on
9743 each change.
9744 (decode_coding): Pay attention to undo_list. Do eol conversion for
9745 all types of coding-systems (if necessary).
9746 (Vcode_conversion_work_buf_list): Delete it.
9747 (Vcode_conversion_reused_workbuf): Rename from
9748 Vcode_conversion_reused_work_buf.
9749 (Vcode_conversion_workbuf_name): New variable.
9750 (reused_workbuf_in_use): New variable.
9751 (make_conversion_work_buffer): Delete the arg DEPTH.
9752 (code_conversion_restore): Change argument to cons.
9753 (code_conversion_save): Delete the argument BUFFER. Change callers.
9754 (detect_coding_system): New argument src_chars. Change callers.
9755 Fix for utf-16 detection.
9756 (init_coding_once): Don't use ISO_carriage_return.
9757 (syms_of_coding): Initialize Vcode_conversion_workbuf_name and
9758 reused_workbuf_in_use.
9759
97602008-02-01 Kenichi Handa <handa@m17n.org>
9761
9762 * keymap.c (store_in_keymap): Pay attention to the case that idx
9763 is a cons specifying a character range.
9764
97652008-02-01 Kenichi Handa <handa@m17n.org>
9766
9767 * xdisp.c (handle_auto_composed_prop): Fix the case of returning
9768 HANDLED_RECOMPUTE_PROPS.
9769
9770 * coding.c (Fdefine_coding_system_internal): Fix checking of
9771 ascii compatibility.
9772
97732008-02-01 Kenichi Handa <handa@m17n.org>
9774
9775 * charset.c (find_charsets_in_text): Delete unused locale variable.
9776 (Fset_charset_priority): Update Vemacs_mule_charset_list too.
9777
9778 * coding.c (encode_coding_emacs_mule): Emit bytes with MSB.
9779 Resync charset_list to Vemacs_mule_charset_list.
9780
9781 * keymap.c (store_in_keymap): Pay attention to the case that idx
9782 is a cons specifying a character range.
9783
97842008-02-01 Kenichi Handa <handa@m17n.org>
9785
9786 * composite.c (update_compositions): Bind inhibit-read-only, etc
9787 to t before calling remove-list-of-text-properties.
9788
9789 * print.c (print_object): Always print ASCII chars as is.
9790
97912008-02-01 Kenichi Handa <handa@m17n.org>
9792
9793 * keymap.c (Fdefine_key): Fix handling of Lucid style event type list.
9794
9795 * fns.c (Fmapconcat, Fmapcar, Fmapc): Signal an error if SEQUENCE
9796 is a char table.
9797
97982008-02-01 Kenichi Handa <handa@m17n.org>
9799
9800 * syntax.c (skip_chars): Be sure to alloca char_ranges when necessary.
9801
98022008-02-01 Kenichi Handa <handa@m17n.org>
9803
9804 * xfaces.c (set_lface_from_font_name): Fix for the case that
9805 FONTNAME is not fontset name.
9806
98072008-02-01 Kenichi Handa <handa@m17n.org>
9808
9809 * fns.c (base64_encode_1): Fix previous change.
9810
98112008-02-01 Kenichi Handa <handa@m17n.org>
9812
9813 * fontset.c (set_fontset_font): New function.
9814 (Fset_fontset_font): If a font is specified for a charset, use
9815 map_charset_chars to store the font spec in a fontset.
9816
98172008-02-01 Kenichi Handa <handa@m17n.org>
9818
9819 * fontset.c (fontset_face): Create a fallback fontset on demand.
9820 (make_fontset): Don't create a fallback fontset here.
9821 (free_face_fontset): Free a fallback fontset (if any) too.
9822 (n_auto_fontsets): Delete this variable.
9823 (auto_fontset_alist): New variable.
9824 (new_fontset_from_font_name): Check auto_fontset_alist.
9825 (dump_fontset) [FONTSET_DEBUG]: Fully re-written.
9826 (Ffontset_list_all) [FONTSET_DEBUG]: New function.
9827 (syms_of_fontset): Initialize and staticpro auto_fontset_alist.
9828 Defsubr Sfontset_list_all.
9829
98302008-02-01 Kenichi Handa <handa@m17n.org>
9831
9832 * xterm.c (x_list_fonts): Fix excluding of auto-scaled fonts.
9833
98342008-02-01 Kenichi Handa <handa@m17n.org>
9835
9836 * fontset.c (Fnew_fontset): Check NAME more rigidly.
9837
98382008-02-01 Kenichi Handa <handa@m17n.org>
9839
9840 * editfns.c (Fgoto_char): Fix docstring.
9841
98422008-02-01 Kenichi Handa <handa@m17n.org>
9843
9844 * insdel.c (insert_from_gap): Adjust intervals correctly.
9845
98462008-02-01 Jason Rumney <jasonr@gnu.org>
9847
9848 * w32term.c (GLYPHSET, WCRANGE): Define if system headers don't.
9849 (pfnGetFontUnicodeRanges): New dynamically loaded function.
9850 (w32_initialize): Try to load it.
9851 (x_get_font_repertory): Use it if available.
9852 (w32_encode_char): Add shortcut for unicode output.
9853
9854 * w32fns.c (w32_load_system_font): Default charset to -1.
9855 (x_to_w32_charset): Match all fonts for unicode.
9856 (w32_to_x_charset): New parameter matching. Don't return partial
9857 or wildcard charsets.
9858 (w32_to_all_x_charsets): Don't return partial or wildcard charsets.
9859 (w32_codepage_for_font): Return CP_UNICODE for unicode.
9860 (w32_to_x_font): Match charset to real charset.
9861 (enum_font_cb2): Always list unicode versions.
9862
9863 * makefile.w32-in (temacs): Increase EMHEAP.
9864
98652008-02-01 Jason Rumney <jasonr@gnu.org>
9866
9867 * w32term.c (w32_encode_char): New charset parameter.
9868 font_info.encoding becomes encoding_type.
9869 (x_get_font_repertory): New function. Warning: stub only!
9870 (x_new_font): Return quickly if font already set.
9871 (x_new_fontset): fontsetname parameter is Lisp_Object.
9872 Use new fs_query_fontset. Try new_fontset_from_font_name.
9873 Use fontset_name for return value.
9874
9875 * w32term.h: Declare x_get_font_repertory.
9876
9877 * w32select.c (Fw32_set_clipboard_data): Use string_x_string_p in
9878 place of find_charset_in_text. Use encode_coding_object in place
9879 of encode_coding.
9880 (Fw32_get_clipboard_data): Use decode_coding_c_string in place of
9881 decode_coding.
9882
9883 * w32fns.c (Fx_create_frame, x_create_tip_frame): Use new version
9884 of x_new_fontset.
9885 (w32_load_system_font): Initialize charset as unicode.
9886 font_info.encoding becomes encoding_type.
9887 (w32_to_x_font): Use decode_coding_c_string in place of decode_coding.
9888 (x_to_w32_font): Use encode_coding_object in place of encode_coding.
9889 (syms_of_w32fns): Set get_font_repertory_func.
9890
9891 * w32console.c: Include character.h. Use terminal_encode_buffer
9892 from term.c.
9893 (write_glyphs): Use new version of encode_terminal_code. Use
9894 encode_coding_object in place of encode_coding.
9895
9896 * w32bdf.c (w32_load_bdf_font): Clear font_info before filling.
9897 encoding becomes encoding_type.
9898
9899 * term.c (terminal_encode_buffer): Make externally visible.
9900
9901 * makefile.w32-in: Add character.h dependancies.
9902 (character.o, chartab.o): New targets.
9903
99042008-02-01 Kenichi Handa <handa@m17n.org>
9905
9906 * fileio.c (Finsert_file_contents) [DOS_NT]: Use the macro
9907 CODING_ID_EOL_TYPE.
9908
99092008-02-01 Andreas Schwab <schwab@suse.de>
9910
9911 * coding.c (produce_chars): Revert last change.
9912
99132008-02-01 Kenichi Handa <handa@m17n.org>
9914
9915 * charset.h (charset_unicode): Extern it.
9916
9917 * charset.c (string_xstring_p): Check by (C >= 0x100).
9918 (find_charsets_in_text): Change format of the arc CHARSETS. New
9919 arg MULTIBYTE.
9920 (Ffind_charset_region, Ffind_charset_string): Adjust for the
9921 change of find_charsets_in_text.
9922 (Fsplit_char): Fix doc. Never return unknown.
9923
9924 * chartab.c (char_table_translate): Use CHARACTERP, not INTEGERP.
9925
9926 * coding.c (Fdefine_coding_system_alias): Update
9927 Vcoding_system_list.
9928
9929 * fontset.c (load_font_get_repertory): Pay attention to the case
9930 that ENCODING of a font is specified by a char-table.
9931
9932 * xterm.c (x_get_font_repertory): Handle the case that the
9933 encoding of font is other than Unicode.
9934
99352008-02-01 Kenichi Handa <handa@m17n.org>
9936
9937 * term.c (encode_terminal_code): Don't handle glyph-table. Check
9938 if a character is encodable by the terminal coding system. If
9939 not, produces proper number of `?'s. Update
9940 terminal_encode_buffer and terminal_encode_buf_size if necessary.
9941 (produce_glyphs): Check by CHAR_BYTE8_P, not SINGLE_BYTE_CHAR_P.
9942
99432008-02-01 Kenichi Handa <handa@m17n.org>
9944
9945 * term.c (terminal_encode_buffer, terminal_encode_buf_size): New
9946 variables.
9947 (encode_terminal_code): Change argument. Encode multiple
9948 characters at once. Store the result of encoding in
9949 terminal_encode_buffer.
9950 (write_glyphs, insert_glyphs): Adjust for the change of
9951 encode_terminal_code.
9952 (term_init): Initialize terminal_encode_buffer and
9953 terminal_encode_buf_size.
9954
9955 * coding.c (consume_chars): If coding->src_object is nil, don't
9956 check annotation.
9957
99582008-02-01 Kenichi Handa <handa@m17n.org>
9959
9960 * character.c (char_string): Use ASCII_CHAR_P instead of
9961 SINGLE_BYTE_CHAR_P.
9962
99632008-02-01 Kenichi Handa <handa@m17n.org>
9964
9965 * xdisp.c (handle_auto_composed_prop): Check if the last
9966 characters of auto-composed region is newly composed with the
9967 following characters.
9968 (handle_composition_prop): Fix checking of point being inside
9969 composition.
9970
99712008-02-01 Kenichi Handa <handa@m17n.org>
9972
9973 * fns.c (concat): Don't change multibyteness of the result by
9974 concatenating an 8-bit character.
9975
9976 * data.c (Faset): Check newelt by CHECK_CHARACTER. Don't change
9977 multibyteness of the result when newelt is an 8-bit character.
9978
99792008-02-01 Dave Love <fx@gnu.org>
9980
9981 * xmenu.c (find_and_call_menu_selection): Make menu_bar_items_used
9982 EMACS_INT.
9983
9984 * xfns.c (DefaultDepthOfScreen, x_encode_text): Remove unused vars.
9985
9986 * xfaces.c (face_numeric_value): Declare dim size_t.
9987 (Finternal_lisp_face_equal_p): Remove unused f.
9988
9989 * xdisp.c (BUILD_CHAR_GLYPH_STRINGS, display_and_set_cursor)
9990 (MATRIX_ROW): Remove unused vars.
9991 (draw_glyphs, x_insert_glyphs, fast_find_position)
9992 (fast_find_position, fast_find_string_pos): Use EMACS_INT for
9993 byte/char counts.
9994
9995 * regex.c (regex_compile): Remove unused var.
9996
9997 * minibuf.c (Fminibuffer_complete_word): Remove unused var.
9998
9999 * keymap.c (Fset_keymap_parent, map_keymap, Fcopy_keymap)
10000 (Faccessible_keymaps, where_is_internal): Remove unused vars.
10001
10002 * keyboard.c (cancel_hourglass_unwind): Return Qnil.
10003
10004 * frame.c (frame_name_fnn_p): Make len EMACS_INT.
10005
10006 * fileio.c (Fwrite_region): Remove unused var.
10007
10008 * dispnew.c (adjust_frame_glyphs_for_frame_redisplay)
10009 (adjust_frame_glyphs_for_window_redisplay): Remove unused ch_dim.
10010
10011 * composite.c (Fremove_list_of_text_properties): Declare.
10012
10013 * coding.c (inhibit_pre_post_conversion): Remove (unused).
10014 (alloc_destination, produce_chars): Use EMACS_INT for byte/char counts.
10015 (coding_inherit_eol_type): Remove unused attrs.
10016 (detect_coding): Cast arg of detect_eol.
10017
10018 * charset.c (syms_of_charset): Remove unused var p.
10019 (find_charsets_in_text, Ffind_charset_region): Use EMACS_INT for
10020 byte/char counts.
10021
10022 * casetab.c (set_case_table): Remove unused var.
10023
10024 * window.c (Fdisplay_buffer, Fframe_selected_window): Remove
10025 unused vars.
10026
100272008-02-01 Dave Love <fx@gnu.org>
10028
10029 * xterm.c (x_bitmap_mask): Declare.
10030
100312008-02-01 Dave Love <fx@gnu.org>
10032
10033 * xterm.c (x_term_init): Fix type error.
10034
10035 * lisp.h: Add Funibyte_char_to_multibyte.
10036
10037 * coding.c (Fread_coding_system): Fix arg of XSETSTRING.
10038 (Fset_coding_system_priority): Doc fix.
10039
10040 * ccl.c (ccl_driver): Fix arg of CHARACTERP.
10041
10042 * indent.c (check_composition): Make start and end EMACS_INT.
10043
10044 * character.c (lisp_string_width): Make ignore and end EMACS_INT.
10045
10046 * xdisp.c (handle_composition_prop, check_point_in_composition):
10047 Make buffer positions EMACS_INT.
10048
10049 * composite.c (find_composition, run_composition_function)
10050 (update_compositions, Ffind_composition_internal): Make buffer
10051 positions EMACS_INT.
10052
10053 * composite.h (find_composition, update_compositions): Make
10054 position args EMACS_INT.
10055
10056 * keyboard.c (adjust_point_for_property): Make beg and end EMACS_INT.
10057
10058 * intervals.c (get_property_and_range):
10059 * intervals.h (get_property_and_range): Make start and end EMACS_INT.
10060
10061 * unexalpha.c: Don't include varargs.h.
10062
100632008-02-01 Dave Love <fx@gnu.org>
10064
10065 * coding.h (ENCODE_UTF_8): New.
10066
10067 * Makefile.in (gtkutil.o): Depend on coding.h.
10068
10069 * coding.c (Fset_coding_system_priority): Doc fix.
10070
100712008-02-01 Kenichi Handa <handa@m17n.org>
10072
10073 * fileio.c (Finsert_file_contents): Call setup_coding_system in
10074 the case of auto saving.
10075
100762008-02-01 Andreas Schwab <schwab@suse.de>
10077
10078 * chartab.c (map_char_table, map_char_table_for_charset): Protect
10079 `range' from GC.
10080
100812008-02-01 Kenichi Handa <handa@m17n.org>
10082
10083 * coding.c (decode_coding_sjis): Check bytes more rigidly.
10084
100852008-02-01 Kenichi Handa <handa@m17n.org>
10086
10087 * fileio.c (choose_write_coding_system): Return a decided coding system.
10088 (Fwrite_region): Set Vlast_coding_system_used to the return value
10089 of choose_write_coding_system.
10090
100912008-02-01 Kenichi Handa <handa@m17n.org>
10092
10093 * charset.c (Fset_charset_priority): Pay attention to duplicated
10094 arguments.
10095
10096 * coding.c (QCcategory): New variable.
10097 (syms_of_coding): Defsym it. Set all elements of
10098 Vcoding_category_table and their symbol values.
10099 (Fset_coding_system_priority): Doc fix. Update symbol qvalues of
10100 coding-category-XXX, and coding-category-list.
10101 (Fdefine_coding_system_internal): Add category in the plist.
10102
101032008-02-01 Kenichi Handa <handa@m17n.org>
10104
10105 * callproc.c (Fcall_process): Handle carryover correctly.
10106
10107 * coding.c (decode_coding_iso_2022): Fix handling of invalid bytes.
10108 (raw_text_coding_system): Check NILP (coding_system).
10109 (coding_inherit_eol_type): Check NILP (coding_system) and
10110 NILP (parent).
10111 (consume_chars): Fix for the case of raw-text.
10112
10113 * process.c (read_process_output): Handle carryover correctly.
10114
101152008-02-01 Dave Love <fx@gnu.org>
10116
10117 * regex.c (re_search_2): Fix last change.
10118
101192008-02-01 Kenichi Handa <handa@m17n.org>
10120
10121 * regex.c (GET_CHAR_BEFORE_2): Check multibyte, not
10122 target_multibyte. Even in a unibyte case, return a converted
10123 multibyte char.
10124 (GET_CHAR_AFTER): New macro.
10125 (PATFETCH): Translate via multibyte char.
10126 (HANDLE_UNIBYTE_RANGE): Delete this macro.
10127 (SETUP_MULTIBYTE_RANGE): New macro.
10128 (regex_compile): Setup compiled code so that its multibyteness
10129 matches that of a target. Fix the handling of "[X-YZ]" using
10130 SETUP_MULTIBYTE_RANGE.
10131 (analyse_first) <charset>: For filling fastmap for all multibyte
10132 characters, don't check by BASE_LEADING_CODE_P.
10133 (re_search_2): Don't check RE_TARGET_MULTIBYTE_P (bufp). It is
10134 the same as RE_MULTIBYTE_P (bufp) now.
10135 (mutually_exclusive_p): Check by (! multibyte || IS_REAL_ASCII (c)).
10136 (TARGET_CHAR_AND_LENGTH): Delete this macro.
10137 (TRANSLATE_VIA_MULTIBYTE): New macro.
10138 (re_match_2_internal): Don't check RE_TARGET_MULTIBYTE_P (bufp).
10139 It is the same as RE_MULTIBYTE_P (bufp) now.
10140 <exactn>: Translate via multibyte.
10141 <anychar>: Fetch a character by RE_STRING_CHAR_AND_LENGTH. Don't
10142 translate it.
10143 <charset, charset_not>: Fetch a character by
10144 RE_STRING_CHAR_AND_LENGTH. Translate via multibyte.
10145 <duplicate>: Call bcmp_translate with the last arg `multibyte'.
10146 <wordbound, notwordbound, wordbeg, wordend, syntaxspec,
10147 notsyntaxspec, categoryspec, notcategoryspec> Fetch a character
10148 by GET_CHAR_AFTER.
10149 (bcmp_translate): Likewise.
10150
10151 * search.c (compile_pattern): Check the member target_multibyte,
10152 not the member multibyte of buf.
10153
10154 * lread.c (read1): While reading a string, set force_singlebyte
10155 and force_multibyte correctly.
10156
10157 * charset.c (Fset_unibyte_charset, init_charset_once): Fix setting
10158 up of unibyte_to_multibyte_table.
10159
101602008-02-01 Kenichi Handa <handa@m17n.org>
10161
10162 * coding.c (setup_coding_system): If coding has
10163 post-read-conversion or pre-write-conversion, set
10164 CODING_REQUIRE_DECODING_MASK and CODING_REQUIRE_ENCODING_MASK
10165 respectively.
10166 (decode_coding_gap): Run post-read-conversion if any.
10167
10168 * fileio.c (Finsert_file_contents): Even if we read into a
10169 unibyte buffer, check if we must decode the result or not.
10170
101712008-02-01 Kenichi Handa <handa@m17n.org>
10172
10173 * coding.c (make_conversion_work_buffer): Change the work buffer
10174 name to the same one as that of Emacs 21.
10175
101762008-02-01 Kenichi Handa <handa@m17n.org>
10177
10178 * coding.h (make_conversion_work_buffer): Adjust prototype.
10179 (code_conversion_restore): Don't extern it.
10180
10181 * coding.c (detected_mask): Delete unused variable.
10182 (decode_coding_iso_2022): Pay attention to the byte sequence of
10183 CTEXT extended segment, and retain those bytes as is.
10184 (decode_coding_ccl): Delete unused variable `valids'.
10185 (setup_coding_system): Delete unused variable `category'.
10186 (consume_chars): Delete unused variable `category'. Make it work
10187 for non-multibyte case.
10188 (make_conversion_work_buffer): Change argument.
10189 (saved_coding): Delete unused variable.
10190 (code_conversion_restore): Don't check saved_coding->destination.
10191 (code_conversion_save): New function.
10192 (decode_coding_gap, encode_coding_gap): Call code_conversion_save
10193 instead of record_unwind_protect.
10194 (decode_coding_object, encode_coding_object): Likewise. Recover PT.
10195 (detect_coding_system): Delete unused variable `mask'.
10196 (Fdefine_coding_system_internal): Delete unused variable id.
10197
10198 * fileio.c (kill_workbuf_unwind): New function.
10199 (Finsert_file_contents): On replacing, call
10200 make_conversion_work_buffer with correct args, and call
10201 record_unwind_protect with the first arg kill_workbuf_unwind.
10202
10203 * lisp.h (Fgenerate_new_buffer_name): EXFUN it.
10204
102052008-02-01 Kenichi Handa <handa@m17n.org>
10206
10207 * fontset.c (BASE_FONTSET_P): Check FONTSET_BASE, not FONTSET_NAME.
10208 (fontset_add): Fix for the case that TO is less than TO1.
10209 (Ffontset_info): Don't use fallback fontset on checking the
10210 default fontset.
10211 (dump_fontset): New function for debugging.
10212
10213 * coding.c (Fdefine_coding_system_internal): Fix for the case that
10214 coding_type is Qcharset.
10215
102162008-02-01 Kenichi Handa <handa@m17n.org>
10217
10218 * chartab.c (map_sub_char_table): New argument DEFAULT_VAL.
10219 (map_char_table): Don't inherit the value from the parent on
10220 initializing VAL. Adjust for the above change.
10221
102222008-02-01 Kenichi Handa <handa@m17n.org>
10223
10224 * coding.c (Qsignature, Qendian): Delete these variables.
10225 (syms_of_coding): Don't initialize them.
10226 (CATEGORY_MASK_UTF_16_AUTO): New macro.
10227 (detect_coding_utf_16): Add CATEGORY_MASK_UTF_16_AUTO in
10228 detect_info->found.
10229 (decode_coding_utf_16): Don't detect BOM here.
10230 (encode_coding_utf_16): Produce BOM if CODING_UTF_16_BOM (coding)
10231 is NOT utf_16_without_bom.
10232 (setup_coding_system): For a coding system of type utf-16, check
10233 if the attribute :endian is Qbig or not (not nil or not), and set
10234 CODING_REQUIRE_DETECTION_MASK if BOM detection is required.
10235 (detect_coding): If coding type is utf-16 and BOM detection is
10236 required, detect it.
10237 (Fdefine_coding_system_internal): For a coding system of type
10238 utf-16, check if the attribute :endian is Qbig or not (not nil or not).
10239
102402008-02-01 Kenichi Handa <handa@m17n.org>
10241
10242 * coding.c (coding_set_source): Fix for the case that the current
10243 buffer is different from coding->src_object.
10244 (decode_coding_object): Don't use the conversion work buffer if
10245 DST_OBJECT is a buffer.
10246
102472008-02-01 Dave Love <fx@gnu.org>
10248
10249 * lread.c (read_emacs_mule_char) [len==2]: Index
10250 emacs_mule_charset correctly.
10251
102522008-02-01 Dave Love <fx@gnu.org>
10253
10254 * coding.c (Qbig5, Vbig5_coding_system, CATEGORY_MASK_BIG5)
10255 (detect_coding_big5, decode_coding_big5, encode_coding_big5)
10256 (Fdecode_big5_char, Fencode_big5_char): Delete. (Big5 no longer
10257 treated specially.)
10258 (setup_coding_system, coding_category, CATEGORY_MASK_ANY)
10259 (detected_mask): Remove Big5 bits.
10260
102612008-02-01 Kenichi Handa <handa@m17n.org>
10262
10263 The following changes are to make the font rescaling facility
10264 compatible with Emacs 21.
10265
10266 * xfaces.c (Vface_font_rescale_alist): Rename from
10267 Vface_resizing_fonts.
10268 (struct font_name): Rename member resizing_ratio to rescale_ratio.
10269 (font_rescale_ratio): Rename from font_resizing_ratio.
10270 (split_font_name): Set font->rescale_ratio.
10271 (better_font_p): Pay attention to font->rescale_ratio.
10272 (build_scalable_font_name): Likewise. Change RESX, and RESY
10273 fields.
10274 (syms_of_xfaces): Declare Vface_font_rescale_alist as a Lisp variable.
10275
102762008-02-01 Kenichi Handa <handa@m17n.org>
10277
10278 * coding.c (Qutf_16_be_nosig, Qutf_16_be, Qutf_16_le_nosig)
10279 (Qutf_16_le): Remove these variables.
10280 (syms_of_coding): Don't DEFSYM them.
10281 (decode_coding_utf_16): Fix handling of BOM.
10282 (encode_coding_utf_16): Fix handling of BOM.
10283
102842008-02-01 Kenichi Handa <handa@m17n.org>
10285
10286 * fileio.c (Finsert_file_contents): On replacing, before decoding
10287 the file into the work buffer, set point of the work buffer to the end.
10288
102892008-02-01 Dave Love <fx@gnu.org>
10290
10291 * coding.c (Fcheck_coding_systems_region): Fix type errors.
10292
102932008-02-01 Dave Love <fx@gnu.org>
10294
10295 * xterm.c (XTread_socket): Check Lisp types for Vx_keysym_table
10296 and fix C types.
10297
102982008-02-01 Kenichi Handa <handa@m17n.org>
10299
10300 * xdisp.c (SKIP_GLYPHS): New macro.
10301 (set_cursor_from_row): Pay attention to string display properties.
10302
10303 * category.c (copy_category_entry): Fix for the case that RANGE
10304 is an integer.
10305
10306 * xterm.c (x_encode_char): Call ccl_driver with the last arg Qnil.
10307
10308 * w32term.c (w32_encode_char): Call ccl_driver with the last arg Qnil.
10309
103102008-02-01 Kenichi Handa <handa@m17n.org>
10311
10312 * charset.c (Fcharset_id_internal): New function.
10313 (syms_of_charset): Defsubr it.
10314
10315 * coding.c (decode_coding_ccl, encode_coding_ccl): Call ccl_driver
10316 with the last arg charset_list acquired from coding.
10317 (Fdefine_coding_system_internal): For ccl-based coding system, fix
10318 the attribute coding_attr_ccl_valids.
10319
10320 * coding.h (enum define_coding_ccl_arg_index): Set the first
10321 member coding_arg_ccl_decoder to coding_arg_max.
10322
10323 * ccl.h (ccl_driver): Adjust prototype.
10324
10325 * ccl.c (CCL_DECODE_CHAR, CCL_ENCODE_CHAR): New macros.
10326 (ccl_driver): New arg CHARSET_LIST. Use the above macros instead
10327 of DECODE_CAHR, ENCODE_CHAR, CHAR_CHARSET.
10328 (Fccl_execute, Fccl_execute_on_string): Call ccl_driver with the
10329 last arg Qnil.
10330
103312008-02-01 Kenichi Handa <handa@m17n.org>
10332
10333 * charset.h (ENCODE_CHAR): If the method is SUBSET or SUPERSET,
10334 call encode_char.
10335
10336 * charset.c (encode_char): Fix handling of methods SUBSET and SUPERSET.
10337
103382008-02-01 Dave Love <fx@gnu.org>
10339
10340 * composite.c (syms_of_composite): Make composition_hash_table weak.
10341
103422008-02-01 Kenichi Handa <handa@m17n.org>
10343
10344 * dispextern.h (check_face_attributes, generate_ascii_font_name)
10345 (font_name_registry): Don't extern them.
10346 (split_font_name_into_vector, build_font_name_from_vector): Extern them.
10347
10348 * fontset.h (Qfontset): Don't extern it.
10349 (new_fontset_from_font_name): Extern it.
10350
10351 * fontset.c: Give 8 extra slots to fontset objects.
10352 (Qfontset_info): New variable.
10353 (syms_of_fontset): Defsym it.
10354 (FONTSET_FALLBACK): New macro.
10355 (fontset_face): Try also the default fontset.
10356 (make_fontset): Realize a fallback fontset from the default fontset.
10357 (generate_ascii_font_name): Move from xfaces.c. Rewritten by
10358 using split_font_name_into_vector and build_font_name_from_vector.
10359 (Fset_fontset_font): Access the elements of font_spec by enum
10360 FONT_SPEC_INDEX. If font_spec is a string, extract the registry
10361 name by using split_font_name_into_vector.
10362 (Fnew_fontset): If no ASCII font is specified in FONTLIST,
10363 generate a proper font name from the fontset name. Update
10364 Vfontset_alias_alist.
10365 (n_auto_fontsets): New variable.
10366 (new_fontset_from_font_name): New function.
10367 (Ffont_info): Store the information about fonts generated from the
10368 default fontset in the first extra slot of the returned char-table.
10369
10370 * xfaces.c (generate_ascii_font_name): Move to fontset.c.
10371 (font_name_registry): Delete function.
10372 (split_font_name_into_vector): New function.
10373 (build_font_name_from_vector): New function.
10374 (font_list): The argument REGISTRY is now a list of registry names.
10375 (choose_face_font): If we are choosing an ASCII font, and ATTRS
10376 specifies an explicit font name, return the name as is. Make a
10377 list of registy names.
10378
10379 * xfns.c (x_set_font, x_create_tip_frame): Adjust for the change
10380 of x_new_fontset.
10381 (Fx_create_frame): Don't call x_new_fontset here. Just use
10382 x_list_fonts to check the existence of fonts.
10383
10384 * xterm.h (x_new_fontset): Adjust prototype.
10385
10386 * xterm.c (x_new_fontset): Change the arg FONTSETNAME to Lisp
10387 string. Use new_fontset_from_font_name to create a fontset from a
10388 font name.
10389
103902008-02-01 Kenichi Handa <handa@m17n.org>
10391
10392 * syntax.c (Vfind_word_boundary_function_table): New name for
10393 Vnext_word_boundary_function_table.
10394 (find-word-boundary-function-table): New name for
10395 next-word-boundary-function-table.
10396
103972008-02-01 Dave Love <fx@gnu.org>
10398
10399 * Makefile.in: Fix some dependencies.
10400
10401 * keymap.c (Fapropos_internal): Don't gcpro apropos_predicate but
10402 set it to nil before returning.
10403
10404 * composite.c (update_compositions): Fix type error.
10405
10406 * syntax.c (skip_chars, skip_syntaxes): Fix type errors.
10407
104082008-02-01 Kenichi Handa <handa@m17n.org>
10409
10410 * xterm.c (x_new_font): Optimize for the case that the font is
10411 already set for the frame.
10412
104132008-02-01 Kenichi Handa <handa@m17n.org>
10414
10415 * chartab.c (char_table_ascii): Check if the char table contents
10416 is sub-char-table or not.
10417 (char_table_set, char_table_set_range): Fix argument to
10418 char_table_ascii.
10419
10420 * coding.c (CATEGORY_MASK_RAW_TEXT): New macro.
10421 (detect_coding_utf_8, detect_coding_utf_16)
10422 (detect_coding_emacs_mule, detect_coding_iso_2022)
10423 (detect_coding_sjis, detect_coding_big5)
10424 (detect_coding_ccl, detect_coding_charset): Change argument MASK
10425 to DETECT_INFO. Update DETECT_INFO and return 1 if the byte
10426 sequence is valid in this coding system. Change callers.
10427 (MAX_ANNOTATION_LENGTH): New macro.
10428 (ADD_ANNOTATION_DATA): New macro.
10429 (ADD_COMPOSITION_DATA): Change argument. Change callers. Call
10430 ADD_ANNOTATION_DATA. Change the format of annotation data.
10431 (ADD_CHARSET_DATA): New macro.
10432 (emacs_mule_char): New argument ID. Change callers.
10433 (decode_coding_emacs_mule, decode_coding_iso_2022)
10434 (decode_coding_sjis, decode_coding_big5, decode_coding_charset):
10435 Produce charset annotation data in coding->charbuf.
10436 (encode_coding_emacs_mule, encode_coding_iso_2022): Pay attention
10437 to charset annotation data in coding->charbuf.
10438 (setup_coding_system): Add CODING_ANNOTATE_CHARSET_MASK
10439 coding->common_flags if the coding system is iso-2022 based and
10440 uses designation.
10441 (produce_composition): Adjust for the new annotation data format.
10442 (produce_charset): New function.
10443 (produce_annotation): Handle charset annotation.
10444 (handle_composition_annotation, handle_charset_annotation): New
10445 functions.
10446 (consume_chars): Handle charset annotation. Utilize the above two
10447 functions.
10448 (encode_coding_object): If SRC_OBJECT and DST_OBJECT are the same
10449 buffer, get the deleted text as a string and set
10450 coding->src_object to that string.
10451 (detect_coding, detect_coding_system): Use the new struct
10452 coding_detection_info.
10453
10454 * coding.h (struct coding_detection_info): New structure.
10455 (struct coding_system): Adjust prototype of the member `detector'.
10456 (CODING_ANNOTATE_CHARSET_MASK): New macro.
10457
104582008-02-01 Kenichi Handa <handa@m17n.org>
10459
10460 * insdel.c (insert_from_gap): Fix argument to offset_intervals.
10461
104622008-02-01 Dave Love <fx@gnu.org>
10463
10464 * keymap.c (apropos_predicate, apropos_accumulate): Declare static.
10465 (Fapropos_internal): Don't gcpro apropos_accumulate. Set result
10466 to new local and nullify apropos_accumulate before returning.
10467 (syms_of_keymap): Staticpro and initialize apropos_accumulate.
10468
104692008-02-01 Kenichi Handa <handa@m17n.org>
10470
10471 * charset.c (Fdefine_charset_internal): Setup charset.fast_map
10472 correctly.
10473
104742008-02-01 Dave Love <fx@gnu.org>
10475
10476 * fns.c (Flanginfo): Call synchronize_system_time_locale.
10477
104782008-02-01 Kenichi Handa <handa@m17n.org>
10479
10480 The following changes are to make character composition happen
10481 automatically on displaying.
10482
10483 * Makefile.in (lisp, shortlisp): Add composite.elc.
10484
10485 * composite.h (Qauto_composed, Vauto_composition_function)
10486 (Qauto_composition_function): Extern them.
10487
10488 * composite.c (Vcomposition_function_table)
10489 (Qcomposition_function_table): Delete variables.
10490 (Qauto_composed, Vauto_composition_function)
10491 (Qauto_composition_function): New variables.
10492 (run_composition_function): Don't call
10493 compose-chars-after-function.
10494 (update_compositions): Clear `auto-composed' text property.
10495 (compose_chars_in_text): Delete this function.
10496 (syms_of_composite): Staticpro Qauto_composed and
10497 Qauto_composition_function. Declare Vauto_composition_function as
10498 a Lisp variable.
10499
10500 * dispextern.h (enum prop_idx): Add member AUTO_COMPOSED_PROP_IDX.
10501
10502 * xdisp.c (it_props): Add an entry for Qauto_composed.
10503 (handle_auto_composed_prop): New function.
10504
10505 * xselect.c (selection_data_to_lisp_data): Don't call
10506 compose_chars_in_text.
10507
105082008-02-01 Dave Love <fx@gnu.org>
10509
10510 * keyboard.c (read_char): Modify checking around use of
10511 Vkeyboard_translate_table.
10512
10513 * xterm.c (XTread_socket): Check Lisp types for Vx_keysym_table
10514 and fix C types.
10515
105162008-02-01 Kenichi Handa <handa@m17n.org>
10517
10518 * coding.c (decode_coding_utf_8, decode_coding_emacs_mule)
10519 (decode_coding_iso_2022, decode_coding_sjis, decode_coding_big5)
10520 (decode_coding_charset, produce_chars): When eol_type is Qdos, handle
10521 the case that the last byte is '\r' correctly.
10522 (decode_coding): Flush out the unprocessed data correctly.
10523 (decode_coding_gap): Set CODING_MODE_LAST_BLOCK bit of coding->mode.
10524
105252008-02-01 Dave Love <fx@gnu.org>
10526
10527 * xterm.c (XTread_socket): Fix changes for defined keysyms.
10528 Add XK_ISO... case.
10529 (xaw_scroll_callback): Revert last change.
10530
105312008-02-01 Kenichi Handa <handa@m17n.org>
10532
10533 * charset.c (Fset_charset_priority): Update Viso_2022_charset_list.
10534
105352008-02-01 Kenichi Handa <handa@m17n.org>
10536
10537 * xfaces.c (Vface_resizing_fonts): New variable.
10538 (struct font_name): New member `resizing_ratio'.
10539 (font_resizing_ratio): New function.
10540 (split_font_name): Set font->resizing_ratio.
10541 (better_font_p): Pay attention to font->resizing_ratio.
10542 (build_scalable_font_name): Likewise. Don't change POINT_SIZE,
10543 RESX, and RESY fields.
10544 (try_alternative_families): Try scalable fonts if
10545 Vscalable_fonts_allowed is not Qt.
10546 (syms_of_xfaces): Declare Vface_resizing_fonts as a Lisp variable.
10547
105482008-02-01 Dave Love <fx@gnu.org>
10549
10550 * xterm.c (xaw_scroll_callback): Cast correctly.
10551
105522008-02-01 Dave Love <fx@gnu.org>
10553
10554 * keyboard.c (lispy_accent_codes, lispy_accent_keys): Extend.
10555 (lispy_kana_keys): Comment out.
10556 (make_lispy_event) [XK_kana_A]: Comment out.
10557
10558 * xterm.c (xaw_scroll_callback): Cast call_data.
10559 (XTread_socket): Deal with ASCII keysyms.
10560 (syms_of_xterm) <Vx_keysym_table>: Fix args of make_hash_table.
10561
105622008-02-01 Dave Love <fx@gnu.org>
10563
10564 * xterm.c (Vx_keysym_table): New.
10565 (syms_of_xterm): Initialize it.
10566 (XTread_socket): Use it.
10567 From head: Eliminate incorrect optimization that tried to avoid
10568 decoding the output of X*LookupString.
10569 (x_get_font_repertory): Delete charset declaration.
10570
105712008-02-01 Kenichi Handa <handa@m17n.org>
10572
10573 * coding.c (detect_coding_charset): If only ASCII bytes are found,
10574 return 0.
10575 (Fdefine_coding_system_internal): Setup
10576 CODING_ATTR_ASCII_COMPAT (attrs) correctly.
10577
105782008-02-01 Dave Love <fx@gnu.org>
10579
10580 * coding.c (Fcheck_coding_system): Doc fix.
10581
10582 * editfns.c (Finsert_byte): Return a proper value.
10583
105842008-02-01 Kenichi Handa <handa@m17n.org>
10585
10586 * coding.c (decode_coding): Fix args to translate_chars. Pay
10587 attention to Vstandard_translation_table_for_decode.
10588 (encode_coding): Fix args to translate_chars. Pay attention to
10589 Vstandard_translation_table_for_encode.
10590
10591 * data.c (Faset): Check NEWELT by ASCII_CHAR_P, not by
10592 SINGLE_BYTE_CHAR_P.
10593
10594 * editfns.c (general_insert_function): Check VAL by ASCII_CHAR_P,
10595 not by SINGLE_BYTE_CHAR_P.
10596
10597 * fns.c (concat): Check CH by ASCII_CHAR_P, not by
10598 SINGLE_BYTE_CHAR_P.
10599
10600 * insdel.c (copy_text): Check C by ASCII_CHAR_P, not by
10601 SINGLE_BYTE_CHAR_P.
10602
10603 * keymap.c (Ftext_char_description): Check C by ASCII_CHAR_P, not
10604 by SINGLE_BYTE_CHAR_P.
10605
10606 * search.c (Freplace_match): Check C by ASCII_CHAR_P, not by
10607 SINGLE_BYTE_CHAR_P.
10608
106092008-02-01 Dave Love <fx@gnu.org>
10610
10611 * fns.c (Fstring_as_multibyte, Fstring_to_multibyte): Doc fix.
10612
106132008-02-01 Dave Love <fx@gnu.org>
10614
10615 * fns.c (Flanginfo): Fix typo.
10616
10617 * unexelf.c (unexec): Make last change conditional on Irix 6.5.
10618
106192008-02-01 Kenichi Handa <handa@m17n.org>
10620
10621 * coding.c (detect_coding_utf_8, detect_coding_utf_16)
10622 (detect_coding_emacs_mule, detect_coding_iso_2022)
10623 (detect_coding_sjis, detect_coding_big5, detect_coding_ccl): Check
10624 incomplete byte sequence. Don't update *mask when correctly detected.
10625 (decode_coding_sjis): Fix decoding of katakana-jisx0201.
10626 (detect_eol): Delete the argument CODING, and add the argument CATEGORY.
10627 (detect_coding, detect_coding_system): Adjust for the changes above.
10628
106292008-02-01 Kenichi Handa <handa@m17n.org>
10630
10631 * character.c (char_string): Rename from
10632 char_string_with_unification. Pay attention to CHAR_MODIFIER_MASK.
10633 (string_char): Rename from string_char.
10634
10635 * character.h (CHAR_STRING, CHAR_STRING_ADVANCE): Call char_string
10636 if C is greater than MAX_3_BYTE_CHAR.
10637 (STRING_CHAR, STRING_CHAR_AND_LENGTH, STRING_CHAR_ADVANCE): Call
10638 string_char instead of string_char_with_unification.
10639
106402008-02-01 Dave Love <fx@gnu.org>
10641
10642 * coding.c (decode_coding_utf_8): Treat surrogates as invalid.
10643
106442008-02-01 Kenichi Handa <handa@m17n.org>
10645
10646 * keymap.c (push_key_description): Pay attention to force_multibyte.
10647
10648 * regex.c (re_search_2): Fix for the case of unibyte buffer.
10649
106502008-02-01 Dave Love <fx@gnu.org>
10651
10652 * charset.c (define_charset_internal): Rename `supprementary'.
10653
10654 * Makefile.in (lisp, shortlisp): Remove latin-N.
10655
106562008-02-01 Dave Love <fx@gnu.org>
10657
10658 * xfns.c (x_window, x_window): Use use_xim.
10659
10660 * xterm.c (use_xim): Initialize.
10661 (xim_open_dpy, xim_initialize, xim_close_dpy): Use use_xim.
10662 (x_term_init): Maybe set use_xim.
10663
10664 * xterm.h (use_xim) [HAVE_X_I18N]: Declare.
10665
106662008-02-01 Kenichi Handa <handa@m17n.org>
10667
10668 * search.c (search_buffer): Fix case-fold-search of multibyte
10669 characters.
10670 (boyer_moore): Rename the last argument to char_high_bits.
10671
106722008-02-01 Kenichi Handa <handa@m17n.org>
10673
10674 * xdisp.c (display_string): Fix for the case of zero width glyph.
10675
10676 * xfns.c (x_set_font): Change the error message of the case that
10677 x_new_fontset returns Qt.
10678
10679 * xfaces.c (set_lface_from_font_name): Reject the default fontset.
10680 (Finternal_set_lisp_face_attribute): Use signal_error for the
10681 error of invalid fontset.
10682
10683 * xterm.c (x_new_fontset): If FONTSETNAME specifies the default
10684 fontset, return Qt.
10685
106862008-02-01 Dave Love <fx@gnu.org>
10687
10688 * unexelf.c (unexec): Make .got handling not SGI-specific.
10689
10690 * syntax.c (syms_of_syntax) <multibyte-syntax-as-symbol>: Doc fix.
10691
10692 * regex.c: Use `ifdef HAVE_ALLOCA_H', not `if HAVE_ALLOCA_H'.
10693
10694 * keyboard.c (read_key_sequence): Fix type error.
10695
10696 * buffer.c (Fset_buffer_multibyte, Fset_buffer_multibyte): Fix
10697 type error.
10698
10699 * fontset.c (fontset_add): Return Lisp_Object.
10700
107012008-02-01 Dave Love <fx@gnu.org>
10702
10703 * charset.h (charset_ordered_list_tick): Declare extern.
10704
107052008-02-01 Kenichi Handa <handa@m17n.org>
10706
10707 The following changes (and some of 2008-02-01 changes of mine) are
10708 for handling syntax, category, and case conversion for unibyte
10709 characters by converting them to multibyte on the fly. With these
10710 changes, we don't have to setup syntax and case tables for unibyte
10711 characters in each language environment.
10712
10713 * abbrev.c (Fexpand_abbrev): Convert a unibyte character to
10714 multibyte if necessary.
10715
10716 * bytecode.c (Fbyte_code): Likewise.
10717
10718 * character.h (LEADING_CODE_LATIN_1_MIN)
10719 (LEADING_CODE_LATIN_1_MAX): New macros.
10720 (unibyte_to_multibyte_table): Extern it.
10721 (unibyte_char_to_multibyte): New macro.
10722 (MAKE_CHAR_MULTIBYTE): Use unibyte_to_multibyte_table.
10723 (CHAR_LEADING_CODE): New macro.
10724 (FETCH_STRING_CHAR_AS_MULTIBYTE_ADVANCE): New macro.
10725
10726 * character.c (unibyte_to_multibyte_table): New variable.
10727 (unibyte_char_to_multibyte): Move to character.h and define as macro.
10728 (multibyte_char_to_unibyte): If C is an eight-bit character,
10729 convert it to the corresponding byte value.
10730
10731 * charset.c (Fset_unibyte_charset): If the dimension of CHARSET is
10732 not 1, signals an error. Update the elements of
10733 unibyte_to_multibyte_table.
10734 (init_charset_once): Initialize unibyte_to_multibyte_table.
10735 (syms_of_charset): Define the charset `iso-8859-1'.
10736
10737 * cmds.c (internal_self_insert): In a multibyte buffer, insert C
10738 as is without converting it to unibyte. In a unibyte buffer,
10739 convert C to multibyte before checking the syntax.
10740
10741 * lisp.h (unibyte_char_to_multibyte): Delete extern.
10742
10743 * minibuf.c (Fminibuffer_complete_word): Use the macro
10744 FETCH_STRING_CHAR_AS_MULTIBYTE_ADVANCE.
10745
10746 * regex.h (struct re_pattern_buffer): New member target_multibyte.
10747
10748 * regex.c (RE_TARGET_MULTIBYTE_P): New macro.
10749 (GET_CHAR_BEFORE_2): Check target_multibyte, not multibyte. If
10750 that is zero, convert an eight-bit char to multibyte.
10751 (MAKE_CHAR_MULTIBYTE, CHAR_LEADING_CODE): New dummy new macros for
10752 non-emacs case.
10753 (PATFETCH): Convert an eight-bit char to multibyte.
10754 (HANDLE_UNIBYTE_RANGE): New macro.
10755 (regex_compile): Setup the compiled pattern for multibyte chars
10756 even if the given regex string is unibyte. Use PATFETCH_RAW
10757 instead of PATFETCH in many places. To handle `charset'
10758 specification of unibyte, call HANDLE_UNIBYTE_RANGE. Use bitmap
10759 only for ASCII chars.
10760 (analyse_first) <exactn>: Simplify because the compiled pattern
10761 is multibyte.
10762 <charset_not>: Setup fastmap from bitmap only for ASCII chars.
10763 <charset>: Use CHAR_LEADING_CODE to get leading codes.
10764 <categoryspec>: If multibyte, setup fastmap only for ASCII chars here.
10765 (re_compile_fastmap) [emacs]: Call analyse_first with the arg
10766 multibyte always 1.
10767 (re_search_2): In emacs, set the locale variable multibyte to 1,
10768 otherwise to 0. New local variable target_multibyte. Check it
10769 to decide the multibyteness of STR1 and STR2. If
10770 target_multibyte is zero, convert unibyte chars to multibyte
10771 before translating and checking fastmap.
10772 (TARGET_CHAR_AND_LENGTH): New macro.
10773 (re_match_2_internal): In emacs, set the locale variable multibyte
10774 to 1, otherwise to 0. New local variable target_multibyte. Check
10775 it to decide the multibyteness of STR1 and STR2. Use
10776 TARGET_CHAR_AND_LENGTH to fetch a character from D.
10777 <charset, charset_not>: If multibyte is nonzero, check fastmap
10778 only for ASCII chars. Call bcmp_translate with
10779 target_multibyte, not with multibyte.
10780 <begline>: Declare the local variable C as `unsigned'.
10781 (bcmp_translate): Change the last arg name to target_multibyte.
10782
10783 * search.c (compile_pattern_1): Don't adjust the multibyteness of
10784 the regexp pattern and the matching target. Set cp->buf.multibyte
10785 to the multibyteness of the regexp pattern. Set
10786 cp->but.target_multibyte to the multibyteness of the matching target.
10787 (wordify): Use FETCH_STRING_CHAR_AS_MULTIBYTE_ADVANCE instead of
10788 FETCH_STRING_CHAR_ADVANCE.
10789 (Freplace_match): Convert unibyte chars to multibyte.
10790
10791 * syntax.c (char_quoted, back_comment, scan_words)
10792 (Fforward_comment, scan_lists, Fbackward_prefix_chars)
10793 (scan_sexps_forward): Use FETCH_CHAR_AS_MULTIBYTE to convert
10794 unibyte chars to multibyte.
10795 (skip_chars): Delete the arg syntaxp, and move the code for
10796 handling syntaxes to skip_syntaxes. Change callers.
10797 Fix the case that the multibyteness of STRING and the current
10798 buffer doesn't match.
10799 (skip_syntaxes): New function.
10800 (SYNTAX_WITH_MULTIBYTE_CHECK): Check C by ASCII_CHAR_P, not by
10801 SINGLE_BYTE_CHAR_P.
10802
108032008-02-01 Kenichi Handa <handa@m17n.org>
10804
10805 * xfaces.c (QCfontset): New variable.
10806 (LFACE_FONTSET): New macro.
10807 (check_lface_attrs): Check also LFACE_FONTSET_INDEX.
10808 (set_lface_from_font_name): Setup LFACE_FONTSET (lface).
10809 (Finternal_set_lisp_face_attribute)
10810 (Finternal_get_lisp_face_attribute): Handle QCfontset.
10811 (lface_same_font_attributes_p): Fix checking of LFACE_FONT_INDEX,
10812 check also LFACE_FONTSET_INDEX.
10813 (face_fontset): Check attrs[LFACE_FONTSET_INDEX], not
10814 attrs[LFACE_FONT_INDEX].
10815 (syms_of_xfaces): Intern and staticpro QCfontset.
10816
10817 * dispextern.h (enum lface_attribute_index): New member
10818 LFACE_FONTSET_INDEX.
10819
10820 * fns.c (base64_encode_1): Handle eight-bit chars correctly.
10821
108222008-02-01 Kenichi Handa <handa@m17n.org>
10823
10824 * coding.c (coding_set_destination): Fix coding->destination for
10825 the case converting a region.
10826 (encode_coding_utf_8): Encode eight-bit chars as single byte.
10827 (encode_coding_object): Fix coding->dst_pos and
10828 coding->dst_pos_byte for the case converting a region.
10829
10830 * insdel.c (insert_from_gap): Make it work even if PT != GTP.
10831
10832 * character.h (BYTE8_STRING): New macro.
10833
10834 * fns.c (base64_decode_1): Insert eight-bit chars correctly.
10835
108362008-02-01 Kenichi Handa <handa@m17n.org>
10837
10838 * xdisp.c (get_next_display_element): Don't display unibyte 8-bit
10839 characters by octal form.
10840
10841 * abbrev.c (Fexpand_abbrev): Fix for the multibyte case.
10842
10843 * buffer.h (_fetch_multibyte_char_len): Delete extern.
10844 (FETCH_MULTIBYTE_CHAR, BUF_FETCH_MULTIBYTE_CHAR): Don't use
10845 _fetch_multibyte_char_len.
10846 (FETCH_CHAR_AS_MULTIBYTE): New macro.
10847
10848 * casetab.c (set_canon, set_identity, shuffle): Simplify.
10849
10850 * casefiddle.c (casify_object): Simplify. Handle the case that
10851 the case conversion change the byte length.
10852 (casify_region): Likewise.
10853
10854 * character.h (MAKE_CHAR_UNIBYTE, MAKE_CHAR_MULTIBYTE): New macros.
10855
10856 * character.c (_fetch_multibyte_char_len): Delete this variable.
10857 (syms_of_character): Setup Vprintable_chars.
10858
10859 * editfns.c (Fchar_equal): Fix for the unibyte case.
10860 (Finsert_byte): New function.
10861 (syms_of_editfns): Defsubr it.
10862
10863 * keyboard.c (read_key_sequence): Use ~CHAR_MODIFIER_MASK instead
10864 of direct code 0x3ffff.
10865
10866 * search.c (Freplace_match): Fix for the unibyte case.
10867
108682008-02-01 Kenichi Handa <handa@m17n.org>
10869
10870 * lread.c (safe_to_load_p): Fix the logic.
10871
10872 * syntax.c (scan_words): Don't treat characters belonging to
10873 different scripts as constituting a word.
10874
10875 * editfns.c (Fformat): Use ASCII_CHAR_P, not SINGLE_BYTE_CHAR_P.
10876
10877 * fontset.c (Fset_fontset_font): Treat `ascii' as charset, not script.
10878
10879 * emacs.c (main): In the case of --unibyte, instead of aborting on
10880 finding non-empty buffer, make it unibyte.
10881
108822008-02-01 Kenichi Handa <handa@m17n.org>
10883
10884 * xterm.c (x_new_fontset): Call `create-fontset-from-ascii-font'
10885 to create a fontset.
10886
108872008-02-01 Dave Love <fx@gnu.org>
10888
10889 * character.c (Funibyte_char_to_multibyte): Doc fix.
10890
10891 * xfns.c [HAVE_STDLIB_H]: Fix last change.
10892
108932008-02-01 Kenichi Handa <handa@m17n.org>
10894
10895 * fontset.c (fontset_add): Make the type `int'.
10896 (fontset_id_valid_p): Define it if FONTSET_DEBUG is defined.
10897
10898 * character.c (unibyte_char_to_multibyte)
10899 (multibyte_char_to_unibyte, Funibyte_char_to_multibyte): Refer to
10900 charset_unibyte, not charset_primary.
10901
10902 * charset.h (charset_unibyte): Extern it instead of charset_primary.
10903
10904 * charset.c (charset_unibyte): Rename from charset_primary.
10905 (Funibyte_charset): Rename from Fprimary_charset.
10906 (Fset_unibyte_charset): Rename from Fset_primary_charset.
10907 (syms_of_charset): Adjust for the above changes.
10908
10909 * w32term.c (x_produce_glyphs): Use ASCII_CHAR_P, not
10910 SINGLE_BYTE_CHAR_P. Fix the logic of handling non-ASCII char when
10911 it->multibyte_p is zero.
10912
10913 * lisp.h (nonascii_insert_offset, Vnonascii_translation_table):
10914 Delete extern.
10915
109162008-02-01 Kenichi Handa <handa@m17n.org>
10917
10918 * coding.c (Fdefine_coding_system_internal): Fix category setting
10919 for a coding system of type iso-2022.
10920
109212008-02-01 Kenichi Handa <handa@m17n.org>
10922
10923 * fontset.h (FS_LOAD_FONT): Call fs_load_font with the arg CHARSET -1.
10924
109252008-02-01 Kenichi Handa <handa@m17n.org>
10926
10927 * syntax.c (Vnext_word_boundary_function_table): New variable.
10928 (next-word-boundary-function-table): Declare it as a Lisp variable
10929 in syms_of_syntax.
10930 (scan_words): Call functions in Vnext_word_boundary_function_table
10931 if any.
10932
10933 * xterm.c (x_load_font): Initialize fontp->fontset to -1.
10934
10935 * fontset.c (fs_load_font): If fontp->charset is not negative,
10936 return fontp without setting its members.
10937
109382008-02-01 Dave Love <fx@gnu.org>
10939
10940 * xfns.c [HAVE_STDLIB_H]: Change logic (instead of fixing typo).
10941
10942 * m/sparc.h (HAVE_ALLOCA): Delete.
10943
10944 * s/irix6-5.h: Don't include strings.h.
10945 (bcopy, bzero, bcmp): Don't undef.
10946
10947 * s/irix6-0.h (bcopy, bzero, bcmp): Don't undef.
10948
10949 * s/usg5-4.h (NO_SIOCTL_H): Don't define.
10950 (TIOCSIGSEND): Don't test IRIX6.
10951 (bcopy, bzero, bcmp): Define conditionally.
10952
109532008-02-01 Kenichi Handa <handa@m17n.org>
10954
10955 * buffer.c (Qas, Qmake, Qto): New variables.
10956 (Fset_buffer_multibyte): New optional arg METHOD. Change caller.
10957 (syms_of_buffer): Intern and staticpro Qas, Qmake, and Qto.
10958
10959 * callproc.c (Fcall_process): Don't call insert_1_both directly if
10960 we are inserting a process output into a multibyte buffer.
10961
10962 * character.h (CHAR_TO_BYTE8): If C is not eight-bit char, call
10963 multibyte_char_to_unibyte.
10964
10965 * character.c (Funibyte_char_to_multibyte): If C can't be decoded
10966 by the primary charset, make it eight-bit char.
10967 (Fmultibyte_char_to_unibyte): Call CHAR_TO_BYTE8.
10968
10969 * charset.c (charset_eight_bit, Qeight_bit_control): New variables.
10970 (charset_8_bit__control, charset_8_bit_graphic)
10971 (Qeight_bit_control, Qeight_bit_graphic): Delete these variables.
10972 (define_charset_internal): New function.
10973 (syms_of_charset): Call define_charset_internal for pre-defined
10974 charsets.
10975
10976 * charset.h (charset_8_bit): Extern it.
10977
10978 * coding.c (make_conversion_work_buffer): Adjust for the change
10979 of Fset_buffer_multibyte.
10980 (encode_coding_raw_text): Increment p0 in the loop.
10981
10982 * lisp.h (Fset_buffer_multibyte): Adjust prototype.
10983
10984 * xdisp.c (setup_echo_area_for_printing, set_message_1): Adjust
10985 for the change of Fset_buffer_multibyte.
10986
10987 * fns.c (Fstring_to_multibyte): New function.
10988 (syms_of_fns): Declare Fstring_to_multibyte as Lisp subroutine.
10989
109902008-02-01 Dave Love <fx@gnu.org>
10991
10992 * xfns.c (x_put_x_image): Declare args.
10993
10994 * xfaces.c (font_name_registry, choose_face_font): Delete unused vars.
10995 (try_font_list): Declare an arg.
10996
10997 * xdisp.c (message2_nolog, set_message): Declare an arg.
10998
10999 * terminfo.c (tparam): Declare an arg. Use P_ to declare tparm.
11000
11001 * syntax.c (scan_sexps_forward): Declare an arg.
11002
11003 * scroll.c (calculate_scrolling, calculate_direct_scrolling):
11004 Declare an arg.
11005
11006 * lisp.h (Fnew_fontset): Declare.
11007
11008 * keymap.c (push_key_description): Call CHARACTERP correctly.
11009
11010 * fontset.c (fontset_add): Declare args. Call make_number correctly.
11011 (face_for_char): Delete unused vars.
11012 (Fset_fontset_font): Doc fix. Delete unused vars.
11013
11014 * doc.c (Fsubstitute_command_keys): Delete unused vars.
11015
11016 * composite.c (update_compositions): Declare arg.
11017
11018 * cm.c (calccost, cmgoto): Declare args.
11019
11020 * charset.c: Remove `emacs' conditional. Doc fixes.
11021 (map_char_table_for_charset): Declare.
11022
11023 * character.c (syms_of_character) <translation-table-vector>: Doc fix.
11024
11025 * ccl.c: Remove `emacs' conditional.
11026
110272008-02-01 Kenichi Handa <handa@m17n.org>
11028
11029 The following changes are to allow specifying multiple font
11030 patterns for a character range (specified by script or charset).
11031
11032 * Makefile.in (abbrev.o): Depend on syntax.h.
11033 (xfaces.o): Depend on charset.h.
11034
11035 * alloc.c (Fmake_string): Use ASCII_CHAR_P, not
11036 SINGLE_BYTE_CHAR_P.
11037
11038 * ccl.c (Fccl_execute_on_string): Add `const' to local variables.
11039
11040 * character.h (Vchar_script_table): Extern it.
11041
11042 * character.c (Vscript_alist): Delete.
11043 (Vchar_script_table, Qchar_script_table): New variable.
11044 (syms_of_character): Declare Vchar_script_table as a lisp variable
11045 and initialize it.
11046
11047 * chartab.c (Fmake_char_table): Doc fix. If PURPOSE doesn't
11048 have property char-table-extra-slots, make no extra slot.
11049
11050 * dispextern.h (struct face): Delete member `charset'.
11051 (FACE_SUITABLE_FOR_CHAR_P, FACE_FOR): Use ASCII_CHAR_P, not
11052 SINGLE_BYTE_CHAR_P.
11053 (choose_face_font, lookup_non_ascii_face, font_name_registry):
11054 Add prototypes.
11055 (lookup_face, lookup_named_face, lookup_derived_face): Fix prototype.
11056 (generate_ascii_font_name): Rename from generate_ascii_font.
11057
11058 * fontset.h (get_font_repertory_func): New prototype.
11059 (make_fontset_for_ascii_face, fs_load_font): Fix prototypes.
11060 (FS_LOAD_FONT): Call fs_load_font with the 3rd arg charset_ascii.
11061
11062 * fontset.c (Qprepend, Qappend): New variables.
11063 (FONTSET_CHARSET_ALIST, FONTSET_FACE_ALIST): Delete.
11064 (FONTSET_NOFONT_FACE, FONTSET_REPERTORY): New macros.
11065 (FONTSET_REF): Optimize if FONTSET is Vdefault_fontset.
11066 (FONTSET_REF_AND_RANGE, FONTSET_ADD): New macros.
11067 (fontset_ref_and_range, fontset_add, reorder_font_vector)
11068 (load_font_get_repertory): New functions.
11069 (fontset_set): Delete.
11070 (fontset_face): New arg FACE. Return face ID, not face.
11071 Complete re-write to handle new fontset structure. Change caller.
11072 (free_face_fontset): Use ASET istead of AREF (X) = Y.
11073 (face_for_char): Don't call lookup_face.
11074 (make_fontset_for_ascii_face): New arg FACE.
11075 (fs_load_font): New arg CHARSET_ID. Don't check
11076 Vfont_encoding_alist here.
11077 (find_font_encoding): New function.
11078 (list_fontsets): Use STRINGP, not ! NILP.
11079 (accumulate_script_ranges): New function.
11080 (Fset_fontset_font, Fnew_fontset, Ffontset_info): Completely
11081 re-written to handle new fontset structure.
11082 (Ffontset_font): Return a copy of element.
11083 (syms_of_fontset): Define symbols Qprepend and Qappend. Fix
11084 docstring of font-encoding-alist.
11085
11086 * lisp.h (CHAR_TABLE_REF): Remove unnecessary check (IDX >= 0).
11087 (Fset_fotset_font): Fix arguments to 5.
11088
11089 * msdos.c (XMenuActivate): Adjust for the change of lookup_derived_face.
11090
11091 * xdisp.c (message_dolog, set_message_1, extend_face_to_end_of_line):
11092 Use ASCII_CHAR_P, not SINGLE_BYTE_CHAR_P.
11093 (highlight_trailing_whitespace): Adjust for the change of
11094 lookup_named_face.
11095
11096 * xfaces.c: Include charset.h.
11097 (load_face_font): Delete argument C. Change caller.
11098 (generate_ascii_font_name): Rename from generate_ascii_font.
11099 (font_name_registry): New function.
11100 (cache_face): Store ascii faces before non-ascii faces in buckets.
11101 (lookup_face): Delete arguments C and BASE_FACE. Change caller.
11102 Lookup only ascii faces.
11103 (lookup_non_ascii_face): New function.
11104 (lookup_named_face): Delete argument C. Change caller.
11105 (lookup_derived_face): Delete argument C. Change caller.
11106 (try_font_list): New arg PATTERN. Change caller. If PATTERN is
11107 a string, just call font_list with it.
11108 (choose_face_font): Delete arguments FACE and C. New arg
11109 FONT_SPEC. Change caller.
11110 (realize_face, realize_x_face): Delete arguments C and BASE_FACE.
11111 Change caller.
11112 (realize_non_ascii_face): New function.
11113 (realize_x_face): Call load_face_font here.
11114 (realize_tty_face): Delete argument C. Change caller.
11115 (compute_char_face): If CH is not ascii, call FACE_FOR_CHAR to
11116 get a face ID.
11117 (dump_realized_face): Don't print charset of FACE.
11118
11119 * xfns.c (x_set_font): Always call x_new_fontset and
11120 store_frame_parameter.
11121 (Fx_create_frame): Call x_new_fontset, not x_new_font.
11122 (syms_of_xfns): Set get_font_repertory_func to x_get_font_repertory.
11123
11124 * xterm.h (x_get_font_repertory): Extern it.
11125
11126 * xterm.c (x_produce_glyphs): Use ASCII_CHAR_P, not
11127 SINGLE_BYTE_CHAR_P. Fix the logic of handling non-ASCII char when
11128 it->multibyte_p is zero.
11129 (XTread_socket): Use ASCII_CHAR_P, not SINGLE_BYTE_CHAR_P.
11130 (x_new_fontset): If FONTSETNAME doesn't match any existing
11131 fontsets, create a new one.
11132 (x_get_font_repertory): New function.
11133
111342008-02-01 Kenichi Handa <handa@m17n.org>
11135
11136 * coding.c (Ffind_coding_systems_region_internal): Detect an
11137 ASCII only string correctly.
11138
11139 * lread.c (Fload): Don't load with Qload_force_doc_strings t if
11140 version is 0.
11141
111422008-02-01 Kenichi Handa <handa@m17n.org>
11143
11144 * lread.c: Include "coding.h".
11145 (Qget_emacs_mule_file_char, Qload_force_doc_strings)
11146 (load_each_byte, unread_char): New variables.
11147 (readchar_backlog): Delete.
11148 (readchar): Return a character unless load_each_byte is nonzero.
11149 Handle the case that readcharfun is Qget_emacs_mule_file_char or a
11150 cons. If unread_char is not -1, simply return it.
11151 (unreadchar): Handle the case that readcharfun is
11152 Qget_emacs_mule_file_char or a cons. Set unread_char if necessary.
11153 (read_multibyte): Delete.
11154 (readbyte_for_lambda, readbyte_from_file, readbyte_from_string)
11155 (read_emacs_mule_char): New functions.
11156 (Fload): Even if the file doesn't have the extension ".elc", if
11157 safe_to_load_p returns a positive version number, assume that the
11158 file contains bytecompiled code. If the version is less than 22,
11159 load the file while decoding multibyte sequences by emacs-mule.
11160 (readevalloop): Don't use readchar_backlog.
11161 (Fread): Likewise. Pay attention to the case that STREAM is a cons.
11162 (Fread_from_string): Pay attention to the case that STREAM is a cons.
11163 (read_escape): Delete the arg BYTEREP.
11164 (read1): Set load_each_byte to 1 temporarily while handling
11165 #@NUMBER. Don't call read_multibyte.
11166 (read_vector): Call Fread with a cons. If readcharfun is
11167 Qget_emacs_mule_file_char, decode the read string by emacs-mule.
11168 (read_list): If doc_reference is 2, make the cdr part string as unibyte.
11169 (syms_of_lread): Intern and staticpro Qget_emacs_mule_file_char
11170 and Qload_force_doc_strings.
11171
111722008-02-01 Kenichi Handa <handa@m17n.org>
11173
11174 * xdisp.c (face_before_or_after_it_pos): Call
11175 FETCH_MULTIBYTE_CHAR with byte postion, not char position.
11176
111772008-02-01 Kenichi Handa <handa@m17n.org>
11178
11179 * character.h (TRAILING_CODE_P): New macro.
11180 (MAYBE_UNIFY_CHAR): Adjust for the change of Funify_charset.
11181 (string_char_with_unification): Fix prototype.
11182 (Vscript_alist): Extern it.
11183
11184 * character.c (Vscript_alist): New variable.
11185 (string_char_with_unification, str_as_unibyte)
11186 (string_escape_byte8): Add `const' to local variables.
11187 (syms_of_character): Declare script-alist as a Lisp variable.
11188
11189 * charset.h (Vcharset_ordered_list): Extern it.
11190 (charset_ordered_list_tick): Extern it.
11191 (EMACS_MULE_LEADING_CODE_PRIVATE_11)
11192 (EMACS_MULE_LEADING_CODE_PRIVATE_12)
11193 (EMACS_MULE_LEADING_CODE_PRIVATE_21)
11194 (EMACS_MULE_LEADING_CODE_PRIVATE_22): New macros.
11195 (Funify_charset): Adjust for the change of Funify_charset.
11196
11197 * charset.c (charset_ordered_list_tick): New variable.
11198 (Fdefine_charset_internal): Increment charset_ordered_list_tick.
11199 (Funify_charset): New optional arg DEUNIFY. If it is non-nil,
11200 deunify intead of unify a charset.
11201 (string_xstring_p): Add `const' to local variables.
11202 (find_charsets_in_text): Add `const' to arguments and local variables.
11203 (encode_char): Adjust for the change of Funify_charset. Fix
11204 detecting of invalid code.
11205 (Fset_charset_priority): Increment charset_ordered_list_tick.
11206 (Fmap_charset_chars): Fix handling of default value for FROM_CODE
11207 and TO_CODE.
11208
11209 * coding.c (LEADING_CODE_PRIVATE_11, LEADING_CODE_PRIVATE_12)
11210 (LEADING_CODE_PRIVATE_21, LEADING_CODE_PRIVATE_22): Delete macros.
11211 Changed callers to use EMACS_MULE_LEADING_CODE_PRIVATE_11, etc.
11212 (decode_coding_ccl, consume_chars)
11213 (Ffind_coding_systems_region_internal)
11214 (Fcheck_coding_systems_region): Add `const' to local variables.
11215
11216 * print.c (print_object): Use octal form for printing the
11217 contents of a bool vector.
11218
112192008-02-01 Dave Love <fx@gnu.org>
11220
11221 * lread.c (Fload) <!load_dangerous_libraries>: Don't leak fd.
11222 <version == 20>: Refuse to load.
11223
112242008-02-01 Dave Love <fx@gnu.org>
11225
11226 * fns.c: Move coding.h.
11227 (Qcodeset, Qdays, Qmonths): New.
11228 (concat): Use CHARACTERP instead of INTEGERP.
11229 (Flocale_codeset): Delete.
11230 (Flanginfo): New function.
11231 (syms_of_fns): Change accordingly.
11232
11233 * coding.c (adjust_coding_eol_type): Fix eol_type/eol_seen mixup.
11234
112352008-02-01 Dave Love <fx@gnu.org>
11236
11237 * casetab.c (init_casetab_once, init_casetab_once): Fix
11238 CHAR_TABLE_SET call.
11239
11240 * category.c (Fmodify_category_entry): Fix CATEGORY_MEMBER call.
11241
11242 * character.c (syms_of_character): Fix CHAR_TABLE_SET call.
11243
11244 * charset.c (Fmap_charset_chars): Check args. Convert Lisp types.
11245 (load_charset_map, Fdeclare_equiv_charset, Fencode_char)
11246 (Fset_charset_priority, syms_of_charset): Convert Lisp types.
11247
11248 * charset.h (CHECK_CHARSET_GET_ID): Use XINT on AREF result.
11249
11250 * coding.c (ENCODE_DESIGNATION, decode_eol)
11251 (make_conversion_work_buffer, code_conversion_restore)
11252 (Fdefine_coding_system_internal): Convert Lisp types.
11253 (code_conversion_restore): Use EQ, not ==.
11254 (Fencode_coding_string): Fix code_convert_string call.
11255
11256 * coding.h (code_convert_region): Fix prototype.
11257
11258 * dispextern.h (redraw_frame, redraw_garbaged_frames): Remove.
11259
11260 * fontset.c (fontset_ref, fontset_set, fs_load_font)
11261 (Ffontset_info): Convert Lisp types.
11262
11263 * syntax.h (SYNTAX_ENTRY_INT): Don't use make_number.
11264
11265 * xterm.c (note_mouse_movement): Fix call of window_from_coordinates.
11266
11267 * xdisp.c (display_mode_element): Fix call of Fset_text_properties.
11268
11269 * chartab.c: Include "...h", not <...h> in some cases.
11270
11271 * callproc.c (Fcall_process): Remove unused variables.
11272
112732008-02-01 Dave Love <fx@gnu.org>
11274
11275 * coding.c (Fset_coding_system_priority): Allow null arg list.
11276
112772008-02-01 Dave Love <fx@gnu.org>
11278
11279 * minibuf.c (Fminibuffer_complete_word): Remove unused var.
11280 (Fself_insert_and_exit): Use CHARACTERP.
11281
11282 * callproc.c (Fcall_process): Remove unused vars.
11283
11284 * xterm.c (XTread_socket): Add extra dead keysyms.
11285
11286 * xdisp.c (decode_mode_spec_coding): Use CHARACTERP.
11287
11288 * dispextern.h: Remove prototypes for redraw_frame,
11289 redraw_garbaged_frames.
11290
11291 * cmds.c (Fself_insert_command): Use CHARACTERP.
11292
11293 * chartab.c (make_sub_char_table): Remove unused var.
11294 (Fset_char_table_default, Fmap_char_table): Doc fix.
11295
11296 * keymap.c (access_keymap): Remove generic char code.
11297 (push_key_description): Use CHARACTERP.
11298
112992008-02-01 Dave Love <fx@gnu.org>
11300
11301 * charset.c: Doc fixes.
11302 (Funify_charset): Extra checking.
11303
113042008-02-01 Dave Love <fx@gnu.org>
11305
11306 * lread.c: Remove some unused variables.
11307 (safe_to_load_p): If safe, return the magic number version byte.
11308 (Fload): Maybe use load-with-code-conversion.
11309
113102008-02-01 Kenichi Handa <handa@m17n.org>
11311
11312 * category.c (Fmodify_category_entry): Don't modify the contents
11313 of category_set for characters out of the range. Avoid
11314 unnecessary modification.
11315
11316 * character.h (MAYBE_UNIFY_CHAR): Adjust for the change of
11317 Vchar_unify_table. The default value of the table is now nil.
11318
11319 * character.c (syms_of_character): Setup Vchar_width_table for
11320 eight-bit-control and raw-byte chars.
11321
11322 * charset.h (enum define_charset_arg_index): Delete
11323 charset_arg_parents and add charset_arg_subset and
11324 charset_arg_superset.
11325 (enum charset_attr_index): Delete charset_parents and add
11326 charset_subset and charset_superset.
11327 (enum charset_method): Delete CHARSET_METHOD_INHERIT and add
11328 CHARSET_METHOD_SUBSET and CHARSET_METHOD_SUPERSET.
11329 (CHARSET_ATTR_PARENTS, CHARSET_PARENTS): Delete.
11330 (CHARSET_ATTR_SUBSET, CHARSET_ATTR_SUPERSET, CHARSET_SUBSET)
11331 (CHARSET_SUPERSET): New macros.
11332 (charset_work): Extern it.
11333 (ENCODE_CHAR): Use charset_work.
11334 (CHAR_CHARSET_P): Adjust for the change of encoder format.
11335 (map_charset_chars): Extern it.
11336
11337 * charset.c (load_charset_map): Set the default value of encoder
11338 and deunifier char-tables to nil.
11339 (map_charset_chars): Change argument. Change callers. Use
11340 map_char_table_for_charset instead of map_char_table.
11341 (Fmap_charset_chars): New optional args from_code and to_code.
11342 (Fdefine_charset_internal): Adjust for the change of
11343 `define-charset' (:parents -> :subset or :superset).
11344 (charset_work): New variable.
11345 (encode_char, syms_of_charset): Adjust for the change of
11346 Fdefine_charset_internal.
11347 (Ffind_charset_string): Setup the vector `charsets' correctly.
11348
11349 * chartab.c (sub_char_table_ref_and_range): New arg default. Fix
11350 the previous change.
11351 (char_table_ref_and_range): Adjust for the above change.
11352 (map_sub_char_table_for_charset): New function.
11353 (map_char_table_for_charset): New function.
11354
11355 * keymap.c (describe_vector): Handle a char-table directly here.
11356 (describe_char_table): Delete.
11357
11358 * lisp.h (map_charset_chars): Delete.
11359
113602008-02-01 Dave Love <fx@gnu.org>
11361
11362 * fns.c (count_combining): Comment out (unused).
11363 (Flocale_codeset): New.
11364 (syms_of_fns): Defsubr it.
11365
11366 * config.in (HAVE_PTY_H, HAVE_SIZE_T, HAVE_LANGINFO_CODESET): New.
11367 (size_t): Remove.
11368
113692008-02-01 Dave Love <fx@gnu.org>
11370
11371 * Makefile.in (chartab.o): Depend on charset.h.
11372
113732008-02-01 Kenichi Handa <handa@m17n.org>
11374
11375 * character.c (syms_of_character): Set the default value of
11376 Vprintable_chars to Qnil.
11377
113782008-02-01 Dave Love <fx@gnu.org>
11379
11380 * Makefile.in (lisp, shortlisp): Change indian.elc to indian.el.
11381
113822008-02-01 Kenichi Handa <handa@m17n.org>
11383
11384 * charset.c (load_charset_map): Handle the case that from < to
11385 correctly.
11386
11387 * coding.c (encode_coding_emacs_mule, encode_coding_iso_2022)
11388 (encode_coding_sjis, encode_coding_big5, encode_coding_charset):
11389 Pay attention to raw-8-bit chars.
11390
113912008-02-01 Kenichi Handa <handa@m17n.org>
11392
11393 * Makefile.in (lisp, shortlisp): Change chinese.elc to chinese.el.
11394 It is not bytecompiled now.
11395
11396 * charset.c (charset_jisx0201_roman, charset_jisx0208_1978)
11397 (charset_jisx0208): New variables.
11398 (Fdefine_charset_internal): Setup them if appropriate.
11399 (init_charset_once): Initialize them to -1.
11400
11401 * charset.h (charset_jisx0201_roman, charset_jisx0208_1978)
11402 (charset_jisx0208): Extern them.
11403
11404 * coding.c (CODING_ISO_FLAG_USE_ROMAN): New macro.
11405 (CODING_ISO_FLAG_USE_OLDJIS): New macro.
11406 (CODING_ISO_FLAG_FULL_SUPPORT): Change macro definition.
11407 (setup_iso_safe_charsets): Fix arguments to Fassq.
11408 (DECODE_DESIGNATION, ENCODE_ISO_CHARACTER_DIMENSION1)
11409 (ENCODE_ISO_CHARACTER_DIMENSION2): Pay attention to
11410 CODING_ISO_FLAG_USE_ROMAN and CODING_ISO_FLAG_USE_OLDJIS.
11411 (encode_coding_iso_2022): Change the 1st arg to
11412 ENCODE_ISO_CHARACTER to a variable.
11413
114142008-02-01 Kenichi Handa <handa@m17n.org>
11415
11416 * charset.h (enum define_charset_arg_index): New enums
11417 charset_arg_min_code and charset_arg_max_code.
11418 (struct charset): New member char_index_offset.
11419
11420 * charset.c (CODE_POINT_TO_INDEX, INDEX_TO_CODE_POINT):
11421 Take charset->char_index_offset into account.
11422 (Fdefine_charset_internal): Handle args[charset_arg_min_code] and
11423 args[charset_arg_max_code]. Setup charset.char_index_offset.
11424 (syms_of_charset): Fix args to Fdefine_charset_internal.
11425
114262008-02-01 Dave Love <fx@gnu.org>
11427
11428 * coding.c (decode_coding_utf_8): Reject overlong sequences.
11429
114302008-02-01 Dave Love <fx@gnu.org>
11431
11432 * coding.c: Doc fixes.
11433 (Fcoding_system_aliases): Fix return value.
11434 (Qmac): Remove (duplicated) definition.
11435
114362008-02-01 Dave Love <fx@gnu.org>
11437
11438 * charset.c (Fcharset_priority_list, Fset_charset_priority): New
11439 functions.
11440
11441 * character.c (Fstring): Doc fix.
11442
11443 * charset.c (Fdefine_charset_alias): Update Vcharset_list.
11444
11445 * fontset.c (Ffontset_info): Doc fix. Return charset names, not
11446 ids.
11447 (font-encoding-alist): Doc fix.
11448
114492008-02-01 Dave Love <fx@gnu.org>
11450
11451 * term.c (costs_set): Declare static, non-initialized for pcc.
11452 (encode_terminal_code): Remove unused var.
11453
11454 * keyboard.c (kbd_buffer_store_event): Fix interrupt_signal decl
11455 for K&R.
11456
11457 * xterm.c (xlwmenu_window_p): Fix prototype for K&R.
11458
11459 * coding.c (setup_iso_safe_charsets): Fix arg decl for K&R.
11460 (suffixes): Move out of make_subsidiaries for K&R.
11461
11462 * charset.c (map_charset_chars): Fix c_function declaration for K&R.
11463
11464 * lisp.h (DEFUN) [!PROTOTYPES]: Remove spurious `args'.
11465
114662008-02-01 Dave Love <fx@gnu.org>
11467
11468 * data.c (Fchar_or_string_p): Doc fix. Use CHARACTERP.
11469
11470 * category.c (Fmodify_category_entry): Doc fix. Remove unused vars.
11471
114722008-02-01 Yong Lu <lyongu@asia-infonet.com>
11473
11474 * charset.c (Fdefine_charset_internal): Fix argument to bzero.
11475
11476 * coding.c (decode_coding_charset): Workaround for the bug of GCC 2.96.
11477
114782008-02-01 Kenichi Handa <handa@m17n.org>
11479
11480 * Makefile.in (lisp, shortlisp): Change cyrillic.elc to cyrillic.el,
11481 vietnamese.elc to vietnamese.el. They are not bytecompiled now.
11482
114832008-02-01 Kenichi Handa <handa@m17n.org>
11484
11485 * coding.c (decode_coding_charset): Adjust for the change of
11486 Fdefine_coding_system_internal.
11487 (Fdefine_coding_system_internal): For a coding system of
11488 `charset' type, store a list of charset IDs in
11489 `charset_attr_charset_valids' element of coding attributes.
11490
114912008-02-01 Kenichi Handa <handa@m17n.org>
11492
11493 * coding.c (ONE_MORE_BYTE_NO_CHECK): Increment consumed_chars.
11494 (emacs_mule_char): New arg src. Delete arg `composition'. Change
11495 caller. Handle 2-byte and 3-byte charsets correctly.
11496 (DECODE_EMACS_MULE_COMPOSITION_RULE_20): Rename from
11497 DECODE_EMACS_MULE_COMPOSITION_RULE. Change caller.
11498 (DECODE_EMACS_MULE_COMPOSITION_RULE_21): New macro.
11499 (DECODE_EMACS_MULE_21_COMPOSITION): Call
11500 DECODE_EMACS_MULE_COMPOSITION_RULE_21. Produce correct annotation
11501 sequence.
11502 (decode_coding_emacs_mule): Handle composition correctly. Rewind
11503 `src' and `consumed_chars' correctly before calling emacs_mule_char.
11504 (DECODE_COMPOSITION_START): Correctly handle the case of altchar
11505 and alt&rule composition.
11506 (decode_coding_iso_2022): Handle composition correctly.
11507 (init_coding_once): Setup emacs_mule_bytes for private charsets.
11508
11509 * charset.c (Fdefine_charset_internal): Fix bug for the case of
11510 re-defining a charset. If the charset has :emacs-mule-id, setup
11511 emacs_mule_bytes.
11512 (Fmake_char): If CODE1 is nil, use the minimum code of the charset.
11513
115142008-02-01 Kenichi Handa <handa@m17n.org>
11515
11516 * coding.c (encode_coding_iso_2022, encode_coding_sjis)
11517 (encode_coding_big5, encode_coding_charset): If coding requires safe
11518 encoding, produce a character specified by
11519 CODING_INHIBIT_CHARACTER_SUBSTITUTION.
11520
115212008-02-01 Dave Love <fx@gnu.org>
11522
11523 * xterm.c (XSetIMValues): Declare.
11524
11525 * process.c: Conditionally include sys/wait.h, pty.h.
11526
11527 * print.c (print_object): Fix print format for 64-bit systems.
11528
11529 * keyboard.c (modify_event_symbol): Fix print format for 64-bit systems.
11530
11531 * buffer.c (emacs_strerror): Declare.
11532
11533 * fontset.c (Fclear_face_cache): Declare.
11534 (accumulate_font_info): Comment-out (unused).
11535 (face_for_char, Fset_fontset_font, Ffontset_info): Remove unused
11536 variables.
11537
11538 * character.h (string_escape_byte8): Declare.
11539
11540 * charset.c (load_charset_map, load_charset_map_from_file): Remove
11541 unused vars.
11542 (Fdefine_charset_internal, Fsplit_char, syms_of_charset)
11543 (Fmap_charset_chars): Doc fix.
11544
11545 * coding.c (Vchar_coding_system_table, Qchar_coding_system): Remove.
11546 (Fset_coding_system_priority, Fset_coding_system_priority)
11547 (Fdefine_coding_system_internal): Doc fix.
11548
115492008-02-01 Dave Love <fx@gnu.org>
11550
11551 * s/osf5-0.h (C_SWITCH_SYSTEM) [!__GNUC__]: Remove -nointrinsics.
11552
115532008-02-01 Kenichi Handa <handa@m17n.org>
11554
11555 * character.c (string_escape_byte8): Make multibyte string with
11556 correct size.
11557
11558 * charset.c (Fmake_char): Delete unnecessary code.
11559
115602008-02-01 Kenichi Handa <handa@m17n.org>
11561
11562 * xfns.c (x_encode_text): Allocate coding.destination here, and
11563 call encode_coding_object with dst_object Qnil.
11564
11565 * buffer.c (Fset_buffer_multibyte): Convert 8-bit bytes to
11566 multibyte form correctly.
11567
11568 * fontset.c (fs_load_font): Check fontp->full_name (not fontname)
11569 against Vfont_encoding_alist.
11570
11571 * coding.c (Fdecode_sjis_char): Fix typo (0x7F->0xFF). Fix the
11572 handling of charset list.
11573 (encode_coding_iso_2022): Setup coding->safe_charsets in advance.
11574 (decode_coding_object): Move point to coding->dst_pos before
11575 calling post-read-conversion function.
11576 (encode_coding_object): Give correct arguments to
11577 pre-write-conversion. Ignore the return value of
11578 pre-write-conversion function. Pay attention to the case that
11579 pre-write-conversion changes the current buffer. If dst_object is
11580 Qt, even if coding->src_bytes is zero, allocate at least one byte
11581 to coding->destination.
11582
11583 * coding.h (JIS_TO_SJIS): Fix typo (j1->s1, j2->s2).
11584
11585 * charset.c (Fmake_char): Make it more backward compatible.
11586 (Fmap_charset_chars): Fix docstring.
11587
115882008-02-01 Dave Love <fx@gnu.org>
11589
11590 * coding.c: Doc fixes.
11591 (Fdefine_coding_system_alias): Use names, not symbols, in
11592 coding-system-alist.
11593
115942008-02-01 Kenichi Handa <handa@m17n.org>
11595
11596 * fontset.c (free_realized_fontsets): Call Fclear_face_cache instead
11597 of calling free_realized_face.
11598
115992008-02-01 Yong Lu <lyongu@asia-infonet.com>
11600
11601 * charset.c (read_hex): Don't treat SPC as a comment starter.
11602 (decode_char): If CODE_POINT_TO_INDEX returns -1, always return -1.
11603 (Fdecode_char): Fix typo.
11604
116052008-02-01 Kenichi Handa <handa@m17n.org>
11606
11607 * charset.h (struct charset): New member `code_space_mask'.
11608
11609 * coding.c (coding_set_source): Delete the local variable beg_byte.
11610 (encode_coding_charset, Fdefine_coding_system_internal):
11611 Delete the local variable charset.
11612 (Fdefine_coding_system_internal): Setup
11613 attrs[coding_attr_charset_valids] correctly.
11614
11615 * charset.c (CODE_POINT_TO_INDEX): Utilize `code_space_mask'
11616 member to check if CODE is valid or not.
11617 (Fdefine_charset_internal): Initialize `code_space_mask' member.
11618 (encode_char): Before calling CODE_POINT_TO_INDEX, check if CODE
11619 is within the range of charset->min_code and carset->max_code.
11620
116212008-02-01 Dave Love <fx@gnu.org>
11622
11623 * syntax.h (syntax_temp) [!__GNUC__]: Declare.
11624
11625 * dispextern.h (generate_ascii_font): Fix return type.
11626
11627 * xfaces.c (generate_ascii_font): Fix arg declaration.
11628
11629 * coding.c (coding_inherit_eol_type)
11630 (Fset_terminal_coding_system_internal)
11631 (Fset_safe_terminal_coding_system_internal): Fix arg declarations.
11632
116332008-02-01 Kenichi Handa <handa@m17n.org>
11634
11635 * coding.c (decode_coding_charset, encode_coding_charset): Handle
11636 multiple charsets correctly.
11637
116382008-02-01 Kenichi Handa <handa@m17n.org>
11639
11640 * search.c (boyer_moore): Fix handling of multibyte character
11641 translation.
11642
11643 * xdisp.c (display_mode_element): When the variable `elt' is
11644 changed, update `this' and `lisp_string'.
11645
116462008-02-01 Kenichi Handa <handa@m17n.org>
11647
11648 * buffer.c (Fset_buffer_multibyte): Fix 8-bit char handling.
11649
11650 * callproc.c (Fcall_process): Be sure to give the current buffer
11651 to decode_coding_c_string. Update PT and PT_BYTE after the insertion.
11652
11653 * charset.c (struct charset_map_entries): New struct.
11654 (load_charset_map): Rename from parse_charset_map. New args
11655 entries and n_entries. Change caller.
11656 (load_charset_map_from_file): Rename from load_charset_map.
11657 Change caller. New arg control_flag. Call load_charset_map at
11658 the tail.
11659 (load_charset_map_from_vector): New function.
11660 (Fdefine_charset_internal): Setup charset.compact_codes_p.
11661 (encode_char): If the charset is compact, change a character index
11662 to a code point.
11663
11664 * coding.c (coding_alloc_by_making_gap): Check the case that the
11665 source and destination are the same correctly.
11666 (decode_coding_raw_text): Set coding->consumed_char and
11667 coding->consumed to 0.
11668 (produce_chars): If coding->chars_at_source is nonzero, update
11669 coding->consumed_char and coding->consumed before calling
11670 alloc_destination.
11671 (Fdefine_coding_system_alias): Register ALIAS in
11672 Vcoding_system_alist.
11673 (syms_of_coding): Define `no-conversion' coding system at the tail.
11674
11675 * fileio.c (Finsert_file_contents): Set coding_system instead of
11676 val. If the current buffer is multibyte, always call
11677 decode_coding_gap.
11678
11679 * xfaces.c (try_font_list): Give higher priority to fontset's
11680 family than face's family.
11681
116822008-02-01 Kenichi Handa <handa@m17n.org>
11683
11684 * callproc.c (Fcall_process): Be sure to give the current buffer
11685 to decode_coding_c_string.
11686
11687 * xfaces.c (try_font_list): Give a family specified in a fontset
11688 higher priority than a family specified in a face.
11689
116902008-02-01 Kenichi Handa <handa@m17n.org>
11691
11692 * fileio.c (Finsert_file_contents): Fix calculation of `inserted'.
11693 Fix arguments to insert_from_buffer.
11694
11695 * xdisp.c (display_mode_element): Fix calculation of `bytepos'.
11696
116972008-02-01 Kenichi Handa <handa@m17n.org>
11698
11699 * coding.c (produce_chars): Set the variable `multibytep' correctly.
11700 (decode_coding_gap): Set coding->dst_multibyte correctly.
11701
117022008-02-01 Kenichi Handa <handa@m17n.org>
11703
11704 * coding.c (encode_coding_utf_8): Initialize produced_chars to 0.
11705 (decode_coding_utf_16): Fix converting high and low bytes to code-point.
11706 (encode_coding_utf_16): Substitute coding->default_char for
11707 non-Unicode characters.
11708 (decode_coding): Don't call record_insert here.
11709 (setup_coding_system): Initialize `surrogate' of
11710 coding->spec.utf_16 to 0.
11711 (EMIT_ONE_BYTE): Fix for multibyte case.
11712
11713 * insdel.c (insert_from_gap): Call record_insert.
11714
117152008-02-01 Kenichi Handa <handa@m17n.org>
11716
11717 * casefiddle.c (casify_region): Fix multibyte case.
11718
11719 * character.c (c_string_width): Add return type `int'.
11720 (char_string_with_unification): Delete arg ADVANCED.
11721
11722 * character.h (CHAR_VALID_P): Don't call CHARACTERP.
11723 (CHAR_STRING): Adjust for the change of char_string_with_unification.
11724 (CHAR_STRING_ADVANCE): Make it do-while statement.
11725
11726 * chartab.c (sub_char_table_set_range): Optimize for the case
11727 DEPTH == 3. Add workaround code for a GCC optimization bug.
11728
11729 * charset.c (parse_charset_map): Remove an unused variable.
11730
11731 * coding.c: Delete unused variables.
11732
11733 * fileio.c (Finsert_file_contents): Set coding_system to Qnil
11734 earlier. If inserted is zero and the coding system doesn't
11735 require flushing, don't call decode_coding_gap.
11736
11737 * syntax.h (SET_RAW_SYNTAX_ENTRY): Don't call make_number.
11738
117392008-02-01 Kenichi Handa <handa@m17n.org>
11740
11741 The following changes are for using Unicode as an internal
11742 character model, and use UTF-8 format for buffer/string
11743 representation.
11744
11745 * .gdbinit (xchartable): Adjust for the change of char table structure.
11746 (xsubchartable, xcoding, xcharset, xcurbuf): New commands.
11747
11748 * Makefile.in (obj): Add character.o and chartab.o.
11749 (lisp, shortlisp): Remove utf-8.elc.
11750 (*.o): For many files, change dependency on charset.h to
11751 character.h, and add dependency on character.h.
11752 (character.o, chartab.o): New targets.
11753
11754 * abbrev.c, bytecode.c, casefiddle.c, cmds.c, dispnew.c, doc.c:
11755 * doprnt.c, dosfns.c, frame.c, marker.c, minibuf.c, msdos.c:
11756 * w16select.c, w32bdf.c, w32console.c: Include "character.h" instead
11757 of "charset.h".
11758
11759 * dired.c, filelock.c: Include "character.h".
11760
11761 * alloc.c: Include "character.h" instead of "charset.h".
11762 (Fmake_char_table, make_sub_char_table): Move to chartab.c.
11763 (syms_of_alloc): Remove defsubr for Smake_char_table.
11764
11765 * buffer.c: Include "character.h" instead of "charset.h", don't
11766 include "coding.h".
11767 (Fset_buffer_multibyte): Adjust for UTF-8.
11768
11769 * buffer.h: EXFUN Fbuffer_live_p.
11770
11771 * callproc.c: Include "character.h" instead of "charset.h".
11772 (Fcall_process): Big change for the new code-conversion APIs.
11773
11774 * casetab.c: Include "character.h" instead of "charset.h".
11775 (set_canon, set_identity, shuffle): Adjust for the new
11776 map_char_table spec.
11777 (init_casetab_once): Call CHAR_TABLE_SET instead of directly
11778 accessing the char table structure.
11779
11780 * chartab.c: New file that implements char table.
11781
11782 * category.c: Include "character.h".
11783 (copy_category_entry): New function.
11784 (copy_category_table): Call map_char_table and copy_category_entry.
11785 (Fmake_category_table): Initialize all top-level slots.
11786 (char_category_set): New function.
11787 (modify_lower_category_set): Delete.
11788 (Fmodify_category_entry): Call char_table_ref_and_range.
11789
11790 * category.h (CATEGORY_SET): Just call char_category_set.
11791
11792 * ccl.c: Include "character.h".
11793 (Qccl, Qcclp): New variables.
11794 (CCL_WRITE_CHAR): Alway treat the arg CH as a character even if
11795 it's less than 256.
11796 (CCL_WRITE_MULTIBYTE_CHAR): Delete.
11797 (CCL_WRITE_STRING, CCL_READ_CHAR): Adjust for the change of SRC
11798 and DST type.
11799 (ccl_driver): Change types of argument, adjust code accordingly.
11800 (Fccl_execute, Fccl_execute_on_string): Adjust for the change of
11801 ccl_driver.
11802 (syms_of_ccl): Intern and staticpro Qccl and Qcclp.
11803
11804 * ccl.h (struct ccl_program): Delete members eol_type and multibyte.
11805 New members src_multibyte, dst_multibyte, consumed, and produced.
11806 (struct ccl_spec): Delete members decoder and encoder. New member ccl.
11807 (CODING_SPEC_CCL_PROGRAM): New macro.
11808 (ccl_driver): Update prototype.
11809 (Qccl, Qcclp, Fccl_program_p): Extern them.
11810 (CHECK_CCL_PROGRAM): New macro.
11811
11812 * character.c, character.h, chartab.c: New files.
11813
11814 * charset.c: Mostly re-written. Move character and multibyte sequence
11815 handling codes to character.c.
11816
11817 * charset.h: Mostly re-written. Move character and multibyte sequence
11818 handling codes to character.h.
11819
11820 * coding.c, coding.h: Mostly re-written.
11821
11822 * composite.c: Include "character.h" instead of "charset.h".
11823 (CHAR_WIDTH): Move to character.h.
11824 (HASH_KEY, HASH_VALUE): Delete.
11825
11826 * composite.h (enum composition_method): Change order of enumeration
11827 symbols.
11828
11829 * data.c: Include "character.h" instead of "charset.h".
11830 (Faref): Call CHAR_TABLE_REF for a char table.
11831 (Faset): Call CHAR_TABLE_SET for a char table.
11832
11833 * dispextern.h (free_realized_face, check_face_attribytes)
11834 (generate_ascii_font): Extern them.
11835 (free_realized_multibyte_face): Delete extern.
11836
11837 * disptab.h (DISP_CHAR_VECTOR): Adjust for the change of char
11838 table structure.
11839
11840 * editfns.c: Include "character.h" instead of "charset.h".
11841 (Fchar_to_string): Always call CHAR_STRING.
11842
11843 * emacs.c (main): Call init_charset_once, init_charset,
11844 syms_of_chartab, and syms_of_character.
11845
11846 * fileio.c: Include "character.h" instead of "charset.h".
11847 (Finsert_file_contents): Big change for the new code-conversion API.
11848 (choose_write_coding_system, Fwrite_region): Likewise.
11849 (build_annotations_2): Delete.
11850 (e_write): Big change for the new code-conversion API.
11851
11852 * fns.c: Include "character.h" instead of "charset.h".
11853 (copy_sub_char_table): Move to chartab.c.
11854 (Fcopy_sequence): Call copy_char_table for a char table.
11855 (concat): Delete codes calling count_multibyte.
11856 (string_char_to_byte, string_byte_to_char): Adjust for the new
11857 multibyte form.
11858 (internal_equal): Adjust for the change of char table structure.
11859 (Fchar_table_subtype, Fchar_table_parent, Fset_char_table_parent)
11860 (Fchar_table_extra_slot, Fset_char_table_extra_slot)
11861 (Fchar_table_range, Fset_char_table_range, Fset_char_table_default)
11862 (char_table_translate, optimize_sub_char_table)
11863 (Foptimize_char_table, map_char_table, Fmap_char_table): Move to
11864 chartab.c.
11865 (char_table_ref_and_index): Delete.
11866 (HASH_KEY, HASH_VALUE): Move to lisp.h.
11867 (Fmd5): Call preferred_coding_system instead of accessing
11868 Vcoding_category_list. Adjust for the new code-conversion API.
11869 (syms_of_fns): Move defsubr for char table related functions to
11870 chartab.c.
11871
11872 * fontset.c: Mostly re-written.
11873
11874 * fontset.h (struct font_info): Change type of the member encoding_type.
11875 (enum FONT_SPEC_INDEX): New enum.
11876 (fontset_font_pattern, fs_load_font): Update prototype.
11877 (FS_LOAD_FONT): Adjust for the change of fs_load_font.
11878
11879 * indent.c: Include "character.h" instead of "charset.h".
11880 (MULTIBYTE_BYTES_WIDTH): Call CHAR_WIDTH instead of WIDTH_BY_CHAR_HEAD.
11881
11882 * insdel.c: Include "character.h" instead of "charset.h".
11883 (copy_text): Don't refer to Vnonascii_translation_table.
11884 (insert_from_gap): New function.
11885
11886 * keyboard.c: Include "character.h" instead of "charset.h".
11887 (command_loop_1): Never call direct_output_forward_char before
11888 a non-ASCII character.
11889 (read_char): If Vkeyboard_translate_table is a char table, always
11890 translate a character.
11891
11892 * keymap.c: Include "character.h".
11893 (store_in_keymap): Handle the case that IDX is a cons.
11894 (Fdefine_key): Handle the case that KEY is a cons and the car part
11895 is also a cons (range).
11896 (push_key_description): Adjust for the new character code.
11897 (describe_vector): Call describe_char_table for a char table.
11898 (describe_char_table): New function.
11899
11900 * keymap.h (describe_char_table): Extern it.
11901
11902 * lisp.h (enum pvec_type): New member PVEC_SUB_CHAR_TABLE.
11903 (XSUB_CHAR_TABLE, XSETSUB_CHAR_TABLE): New macros.
11904 (CHAR_TABLE_ORDINARY_SLOTS, CHAR_TABLE_SINGLE_BYTE_SLOTS)
11905 (SUB_CHAR_TABLE_ORDINARY_SLOTS, SUB_CHAR_TABLE_STANDARD_SLOTS):
11906 Delete.
11907 (CHAR_TABLE_REF, CHAR_TABLE_SET): Adjust for the new char table
11908 structure.
11909 (CHAR_TABLE_TRANSLATE): Just call char_table_translate.
11910 (CHARTAB_SIZE_BITS_0, CHARTAB_SIZE_BITS_1, CHARTAB_SIZE_BITS_2)
11911 (CHARTAB_SIZE_BITS_3): New macros.
11912 (chartab_size): Extern it.
11913 (struct Lisp_Char_Table): Re-design.
11914 (struct Lisp_Sub_Char_Table): New structure.
11915 (HASH_KEY, HASH_VALUE): Move from fns.c.
11916 (CHARACTERBITS): Define as 22.
11917 (GLYPH_MASK_FACE, GLYPH_MASK_CHAR): Adjust for the above change.
11918 (SUB_CHAR_TABLE_P): Check PVEC_CHAR_TABLE.
11919 (GC_SUB_CHAR_TABLE_P): New macro.
11920 (Fencode_coding_string, Fdecode_coding_string): Update EXFUN.
11921 (code_convert_string_norecord): Deleted extern.
11922 (init_character_once, syms_of_character, init_charset)
11923 (syms_of_composite, Qeq, Fmakehash, insert_from_gap): Extern them.
11924
11925 * lread.c: Include "character.h".
11926 (read_multibyte): New arg NBYTES.
11927 (read_escape): Change the meaning of returned *BYTEREP.
11928 (to_multibyte): Delete.
11929 (read1): Adjust the handling of char table and string.
11930
11931 * print.c: Include "character.h" instead of "charset.h".
11932 (print_string): Convert 8-bit raw bytes to octal form by
11933 string_escape_byte8.
11934 (print_object): Adjust for the new multibyte form. Print 8-bit
11935 raw bytes always in octal form. Handle sub char table correctly.
11936
11937 * process.c: Include "character.h" instead of "charset.h".
11938 (read_process_output, send_process): Adjust for the new
11939 code-conversion API.
11940
11941 * puresize.h (BASE_PURESIZE): Increase.
11942
11943 * regex.c: Include "character.h" instead of "charset.h".
11944 (BYTE8_TO_CHAR, CHAR_BYTE8_P) [not emacs]: New dummy macros.
11945 (regex_compile): Accept a range whose starting and ending
11946 character have different leading bytes.
11947 (analyse_first): Adjust for the above change.
11948
11949 * search.c: Include "character.h" instead of "charset.h".
11950 (search_buffer, boyer_moore): Adjust for the new multibyte form.
11951 (Freplace_match): Adjust for the change of multibyte_char_to_unibyte.
11952
11953 * syntax.c: Include "character.h" instead of "charset.h".
11954 (syntax_parent_lookup): Delete.
11955 (Fmodify_syntax_entry): Accept a cons as CHAR.
11956 (skip_chars): Adjust for the new multibyte form.
11957 (init_syntax_once): Call char_table_set_range instead of directly
11958 accessing the structure of a char table.
11959
11960 * syntax.h (SET_RAW_SYNTAX_ENTRY): Call CHAR_TABLE_SET.
11961 (SYNTAX_ENTRY_FOLLOW_PARENT): Delete macro.
11962 (SET_RAW_SYNTAX_ENTRY_RANGE): New macro.
11963 (SYNTAX_ENTRY_INT): Call CHAR_TABLE_REF.
11964
11965 * term.c: Include "buffer.h" and "character.h".
11966 (encode_terminal_code, write_glyphs): Adjust for the new
11967 code-conversion API.
11968 (produce_glyphs): Call CHAR_WIDTH instead of CHARSET_WIDTH.
11969
11970 * w32term.c (x_new_font): Adjust for the change of FS_LOAD_FONT.
11971
11972 * xdisp.c: Include "character.h".
11973 (get_next_display_element): Adjust for the new multibyte form.
11974 (disp_char_vector): Adjust for the new char table structure.
11975 (decode_mode_spec_coding): Adjust for the new structure of
11976 coding system.
11977 (decode_mode_spec): Adjust for the new code-conversion API.
11978
11979 * xfaces.c: Include "character.h" instead of "charset.h".
11980 (load_face_font): Adjust for the change of choose_face_font and
11981 FS_LOAD_FONT.
11982 (generate_ascii_font): New function.
11983 (set_lface_from_font_name): Adjust for the change of FS_LOAD_FONT.
11984 (set_font_frame_param): Adjust for the change of choose_face_font.
11985 (free_realized_face): Make it public.
11986 (free_realized_faces_for_fontset): Rename from
11987 free_realized_multibyte_face. Free also faces realized for ASCII.
11988 (choose_face_font): Change arguments. Adjust for the change of
11989 fontset_font_pattern and FS_LOAD_FONT.
11990
11991 * xfns.c: Include "character.h".
11992 (x_encode_text): Adjust for the new code-conversion API.
11993
11994 * xselect.c: Don't include "charset.h".
11995 (selection_data_to_lisp_data): Adjust for the new code conversion API.
11996
11997 * xterm.c: Include "character.h".
11998 (x_encode_char): New argument CHARSET. Change caller.
11999 (x_get_char_face_and_encoding, x_get_glyph_face_and_encoding):
12000 Call ENCODE_CHAR instead of SPLIT_CHAR.
12001 (x_produce_glyphs): Don't check Vnonascii_translation_table Call
12002 CHAR_WIDTH instead of CHARSET_WIDTH.
12003 (XTread_socket): Adjust for the new code-conversion API.
12004 (x_new_font): Adjust for the change of FS_LOAD_FONT.
12005 (x_load_font): Adjust for the change of struct font.
12006
120072008-02-01 Stefan Monnier <monnier@iro.umontreal.ca>
12008
12009 * xfaces.c (face_at_buffer_position): Remove unused vars.
12010
120112008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
12012
12013 * ccl.c (CCL_WRITE_CHAR, CCL_WRITE_MULTIBYTE_CHAR):
12014 Fix overflow checking.
12015
120162008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
12017
12018 * ccl.c (CCL_WRITE_CHAR, CCL_WRITE_MULTIBYTE_CHAR, ccl_driver):
12019 Cancel previous change.
12020
120212008-01-31 Kenichi Handa <handa@ni.aist.go.jp>
12022
12023 * ccl.c (CCL_WRITE_CHAR): Increment extra_bytes only when
12024 ccl->eight_bit_control. Fix check for buffer overflow.
12025 (CCL_WRITE_MULTIBYTE_CHAR): Fix check for buffer overflow.
12026 (ccl_driver): Initialize extra_bytes to 0.
12027
120282008-01-31 Kenichi Handa <handa@ni.aist.go.jp>
12029
12030 * keyboard.c (make_ctrl_char): If C is a multibyte character, just
12031 return it ORed with ctrl_modifier.
12032
120332008-01-29 Miles Bader <miles@gnu.org>
12034
12035 * macterm.c (XTset_vertical_scroll_bar): Fix merge mistake.
12036
120372008-01-28 Jason Rumney <jasonr@gnu.org>
12038
12039 * w32.c (stat): Don't double check for networked drive.
12040
120412008-01-28 Stefan Monnier <monnier@iro.umontreal.ca>
12042
12043 * window.c (run_window_configuration_change_hook): New function.
12044 Code extracted from set_window_buffer. Set the selected frame.
12045 (set_window_buffer): Use it.
12046 * window.h (run_window_configuration_change_hook): Declare.
12047 * dispnew.c (change_frame_size_1): Use it instead of set-window-buffer.
12048
12049 * keyboard.c (read_char): Yet another int/Lisp_Object mixup (YAILOM).
12050
120512008-01-27 Dan Nicolaescu <dann@ics.uci.edu>
12052
12053 * Makefile.in: Remove references to unused macros.
12054
120552008-01-26 Eli Zaretskii <eliz@gnu.org>
12056
12057 * w32.c (g_b_init_get_sid_sub_authority)
12058 (g_b_init_get_sid_sub_authority_count): New static variables.
12059 (GetSidSubAuthority_Proc, GetSidSubAuthorityCount_Proc): New typedefs.
12060 (get_sid_sub_authority, get_sid_sub_authority_count): New functions.
12061 (init_user_info): Use them to retrieve uid and gid.
12062 Use 500/513, the Windows defaults, as Administrator's uid/gid.
12063 (fstat): Use pw_uid and pw_gid from the_passwd structure for
12064 st_uid and st_gid of the file.
12065
120662008-01-26 Jason Rumney <jasonr@gnu.org>
12067
12068 * w32.c (logon_network_drive): New function.
12069 (stat): Use it.
12070
120712008-01-26 Chong Yidong <cyd@stupidchicken.com>
12072
12073 * xdisp.c (pos_visible_p): Handle the case where charpos falls on
12074 invisible text covered with an ellipsis.
12075
120762008-01-25 Richard Stallman <rms@gnu.org>
12077
12078 * xdisp.c (redisplay_window): Run Qwindow_text_change_functions and
12079 jump back to beginning. Move some other initializations after that.
12080 (Qwindow_text_change_functions, Vwindow_text_change_functions):
12081 New variables.
12082 (syms_of_xdisp): Init them.
12083
12084 * keyboard.c (read_char): Restore echo_message_buffer after redisplay.
12085
12086 * buffer.c (reset_buffer_local_variables):
12087 Implement `permanent-local-hook'.
12088 (Qpermanent_local_hook): New variable.
12089 (syms_of_buffer): Init and staticpro it.
12090
120912008-01-25 Michael Albinus <michael.albinus@gmx.de>
12092
12093 * dbusbind.c (xd_retrieve_arg): Pacify GCC on x86_64 GNU/Linux.
12094
120952008-01-25 Thien-Thi Nguyen <ttn@gnuvola.org>
12096
12097 * fns.c (Fclrhash): Return TABLE.
12098
120992008-01-23 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
12100
12101 * macterm.c (x_scroll_bar_create): Initialize bar->redraw_needed_p.
12102 (XTset_vertical_scroll_bar): Redraw scroll bar if bar->redraw_needed_p
12103 is set even without positional changes.
12104 (x_scroll_bar_clear): Set bar->redraw_needed_p.
12105
12106 * macterm.h (struct scroll_bar): New member `redraw_needed_p'.
12107
121082008-01-23 Jason Rumney <jasonr@gnu.org>
12109
12110 * xterm.c (handle_one_xevent): Revert to counting chars not bytes.
12111
12112 * w32term.c (w32_read_socket) <WM_CHAR>: Decode characters outside
12113 the unicode range available in MULE by locale-coding-system.
12114 Improve dbcs lead byte detection. Set event timestamp and modifiers
12115 earlier.
12116
121172008-01-23 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
12118
12119 * mac.c (mac_emacs_pid) [MAC_OSX]: New variable.
12120 [MAC_OSX] (init_mac_osx_environment): Initialize it.
12121 [MAC_OSX] (mac_try_close_socket) [SELECT_USE_CFSOCKET]: Return 0
12122 when used on child processes.
12123
121242008-01-21 Michael Albinus <michael.albinus@gmx.de>
12125
12126 * dbusbind.c (Fdbus_method_return_internal): Rename from
12127 Fdbus_method_return.
12128 (Fdbus_unregister_object): Move to dbus.el.
12129 (Fdbus_call_method, Fdbus_method_return_internal)
12130 (Fdbus_send_signal): Improve debug messages.
12131
121322008-01-20 Martin Rudalics <rudalics@gmx.at>
12133
12134 * undo.c (undo_inhibit_record_point): New variable.
12135 (syms_of_undo): Initialize it.
12136 (record_point): Don't record point when undo_inhibit_record_point
12137 is set.
12138
121392008-01-19 Stefan Monnier <monnier@iro.umontreal.ca>
12140
12141 * process.c (list_processes_1): Don't use SCHARS on a nil buffer name.
12142
12143 * xdisp.c (Qauto_hscroll_mode): New var.
12144 (syms_of_xdisp): Initialize it.
12145 (hscroll_window_tree): Use it to lookup `auto-hscroll-mode' in each
12146 window's buffer.
12147 (hscroll_windows): Don't check automatic_hscrolling_p here.
12148
12149 * window.c (set_window_buffer): Don't unnecessarily reset hscroll and
12150 vscroll if we're setting window-buffer to the value it already has.
12151
121522008-01-18 Dan Nicolaescu <dann@ics.uci.edu>
12153
12154 * m/intel386.h: Remove references to XENIX.
12155
121562008-01-17 Andreas Schwab <schwab@suse.de>
12157
12158 * m/amdx86-64.h (START_FILES, LIB_STANDARD): Use HAVE_LIB64_DIR
12159 instead of HAVE_X86_64_LIB64_DIR.
12160 * m/ibms390x.h (START_FILES, LIB_STANDARD): Likewise.
12161
121622008-01-17 Glenn Morris <rgm@gnu.org>
12163
12164 * m/ibms390x.h (START_FILES, LIB_STANDARD): Adjust value according
12165 to HAVE_X86_64_LIB64_DIR.
12166
121672008-01-16 Dan Nicolaescu <dann@ics.uci.edu>
12168
12169 * s/irix3-3.h:
12170 * s/irix4-0.h:
12171 * s/386-ix.h:
12172 * s/domain.h:
12173 * s/hpux9-x11r4.h:
12174 * s/hpux9shxr4.h: Remove files for systems no longer supported.
12175
12176 * sysdep.c: Remove code containing references to symbols defined
12177 by unsupported systems.
12178
121792008-01-16 Glenn Morris <rgm@gnu.org>
12180
12181 * coding.c (select-safe-coding-system-function): Doc fix.
12182
121832008-01-15 Glenn Morris <rgm@gnu.org>
12184
12185 * config.in: Revert 2008-01-13 change: this is a generated file.
12186
121872008-01-13 Tom Tromey <tromey@redhat.com>
12188
12189 * lisp.h: Fix typo.
12190
121912008-01-13 Dan Nicolaescu <dann@ics.uci.edu>
12192
12193 * m/sequent-ptx.h:
12194 * m/sequent.h:
12195 * s/ptx.h:
12196 * s/ptx4-2.h:
12197 * s/ptx4.h: Remove files for systems no longer supported.
12198
12199 * callproc.c (Fcall_process): Fix previous change.
12200
122012008-01-13 Dan Nicolaescu <dann@ics.uci.edu>
12202
12203 * unexsunos4.c: Remove file, system not supported anymore.
12204
12205 * m/mips.h:
12206 * m/intel386.h:
12207 * callproc.c:
12208 * config.in:
12209 * ecrt0.c:
12210 * emacs.c:
12211 * fileio.c:
12212 * frame.c:
12213 * getpagesize.h:
12214 * keyboard.c:
12215 * lread.c:
12216 * process.c:
12217 * puresize.h:
12218 * sysdep.c:
12219 * systty.h:
12220 * syswait.h:
12221 * unexec.c:
12222 * xdisp.c:
12223 * alloc.c: Remove code containing references to symbols defined by
12224 unsupported systems.
12225
122262008-01-11 Kenichi Handa <handa@ni.aist.go.jp>
12227
12228 * coding.c (detect_coding_mask): Fix previous change.
12229
122302008-01-09 Kenichi Handa <handa@ni.aist.go.jp>
12231
12232 * coding.c (detect_coding_iso2022): New arg
12233 latin_extra_code_state. Allow Latin extra codes only
12234 when *latin_extra_code_state is nonzero.
12235 (detect_coding_mask): If there is a NULL byte, detect the encoding
12236 as UTF-16 or binary. If Latin extra codes exist, detect the
12237 encoding as ISO-2022 only when there's no other proper encoding is
12238 found.
12239
122402008-01-08 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
12241
12242 * frame.c (Fmake_terminal_frame): Use #ifdef MAC_OS8 instead of
12243 #ifdef MAC_OS.
12244
122452008-01-08 Richard Stallman <rms@gnu.org>
12246
12247 * fileio.c (Ffile_name_directory, Fexpand_file_name): Doc fixes.
12248
122492008-01-06 Nick Roberts <nickrob@snap.net.nz>
12250
12251 * keyboard.c (parse_menu_item): Don't enclose key bindings on
12252 menu bar in parentheses.
12253
122542008-01-06 Dan Nicolaescu <dann@ics.uci.edu>
12255
12256 * m/7300.h:
12257 * m/acorn.h:
12258 * m/alliant-2800.h:
12259 * m/alliant.h:
12260 * m/alliant1.h:
12261 * m/alliant4.h:
12262 * m/altos.h:
12263 * m/amdahl.h:
12264 * m/apollo.h:
12265 * m/att3b.h:
12266 * m/aviion-intel.h:
12267 * m/aviion.h:
12268 * m/celerity.h:
12269 * m/clipper.h:
12270 * m/cnvrgnt.h:
12271 * m/convex.h:
12272 * m/cydra5.h:
12273 * m/delta88k.h:
12274 * m/dpx2.h:
12275 * m/dual.h:
12276 * m/elxsi.h:
12277 * m/f301.h:
12278 * m/gould-np1.h:
12279 * m/gould.h:
12280 * m/i860.h:
12281 * m/ibmps2-aix.h:
12282 * m/ibmrt-aix.h:
12283 * m/ibmrt.h:
12284 * m/irist.h:
12285 * m/is386.h:
12286 * m/isi-ov.h:
12287 * m/mega68.h:
12288 * m/mg1.h:
12289 * m/news-r6.h:
12290 * m/news-risc.h:
12291 * m/news.h:
12292 * m/nh3000.h:
12293 * m/nh4000.h:
12294 * m/ns16000.h:
12295 * m/ns32000.h:
12296 * m/nu.h:
12297 * m/orion.h:
12298 * m/orion105.h:
12299 * m/paragon.h:
12300 * m/pfa50.h:
12301 * m/plexus.h:
12302 * m/pyramid.h:
12303 * m/pyrmips.h:
12304 * m/sh3el.h:
12305 * m/sps7.h:
12306 * m/sr2k.h:
12307 * m/stride.h:
12308 * m/sun1.h:
12309 * m/sun2.h:
12310 * m/sun3-68881.h:
12311 * m/sun3-fpa.h:
12312 * m/sun3-soft.h:
12313 * m/sun3.h:
12314 * m/sun386.h:
12315 * m/symmetry.h:
12316 * m/tad68k.h:
12317 * m/tahoe.h:
12318 * m/targon31.h:
12319 * m/tek4300.h:
12320 * m/tekxd88.h:
12321 * m/tower32.h:
12322 * m/tower32v3.h:
12323 * m/ustation.h:
12324 * m/wicat.h:
12325 * m/xps100.h:
12326 * s/cxux.h:
12327 * s/cxux7.h:
12328 * s/dgux.h:
12329 * s/dgux4.h:
12330 * s/dgux5-4-3.h:
12331 * s/dgux5-4r2.h:
12332 * s/esix.h:
12333 * s/esix5r4.h:
12334 * s/hiuxmpp.h:
12335 * s/hiuxwe2.h:
12336 * s/iris3-5.h:
12337 * s/iris3-6.h:
12338 * s/isc2-2.h:
12339 * s/isc3-0.h:
12340 * s/isc4-0.h:
12341 * s/isc4-1.h:
12342 * s/newsos5.h:
12343 * s/newsos6.h:
12344 * s/osf1.h:
12345 * s/osf5-0.h:
12346 * s/riscix1-1.h:
12347 * s/riscix12.h:
12348 * s/sco4.h:
12349 * s/sco5.h:
12350 * s/sunos4-0.h:
12351 * s/sunos4-1.h:
12352 * s/sunos413.h:
12353 * s/sunos4shr.h:
12354 * s/umax.h:
12355 * s/unipl5-2.h:
12356 * s/xenix.h:
12357 * cxux-crt0.s:
12358 * unexapollo.c:
12359 * unexconvex.c:
12360 * unexenix.c:
12361 * unexsni.c: Remove files for systems no longer supported.
12362
12363 * m/intel386.h: Remove references to unsupported systems.
12364
12365 * w32.c (get_emacs_configuration): Remove reference to i860.
12366
12367 * sysdep.c: Remove dead code.
12368
123692008-01-05 Dan Nicolaescu <dann@ics.uci.edu>
12370
12371 * s/rtu.h:
12372 * m/masscomp.h: Remove files. Platform is obsolete.
12373
123742008-01-04 Michael Albinus <michael.albinus@gmx.de>
12375
12376 * dbusbind.c (Fdbus_method_return): New function.
12377 (xd_read_message): Add the serial number to the event.
12378 (Fdbus_register_method): Activate the function.
12379
123802008-01-03 Stefan Monnier <monnier@iro.umontreal.ca>
12381
12382 * keyboard.c (read_key_sequence): Fix typo.
12383
123842008-01-03 Michael Albinus <michael.albinus@gmx.de>
12385
12386 * dbusbind.c (all): Replace XCAR by CAR_SAFE and XCDR by CDR_SAFE.
12387 (xd_signature, xd_append_arg): Handle element type detection for
12388 empty arrays.
12389 (Fdbus_call_method, Fdbus_send_signal): Undo type casting for
12390 SDATA () calls; this must be solved more general.
12391 (Fdbus_register_signal): Use SBYTES instead of strlen.
12392
123932008-01-03 Magnus Henoch <magnus@zemdatav>
12394
12395 * dbusbind.c (xd_append_arg): Use unsigned char instead of
12396 unsigned int for byte values (necessary for big-endian platform).
12397 (Fdbus_call_method): Handle the case of no returned arguments.
12398
123992007-12-31 Tom Tromey <tromey@redhat.com> (tiny change)
12400
12401 * dbusbind.c (xd_read_message): Use non-static input_event struct.
12402
124032007-12-31 Magnus Henoch <mange@freemail.hu>
12404
12405 * dbusbind.c (xd_signature): Signature of variant is just "v".
12406
124072007-12-30 Michael Albinus <michael.albinus@gmx.de>
12408
12409 * dbusbind.c: Fix several errors and compiler warnings.
12410 Reported by Tom Tromey <tromey@redhat.com>.
12411 (XD_ERROR, XD_DEBUG_MESSAGE)
12412 (XD_DEBUG_VALID_LISP_OBJECT_P): Wrap code with "do ... while (0)".
12413 (xd_append_arg): Part for basic D-Bus types rewritten.
12414 (xd_retrieve_arg): Split implementation of DBUS_TYPE_BYTE and
12415 DBUS_TYPE_(U)INT16. Don't call XD_DEBUG_MESSAGE with "%f" if not
12416 appropriate.
12417 (xd_read_message): Return Qnil. Don't signal an error; it is not
12418 useful during event reading.
12419 (Fdbus_register_signal): Signal an error if the check for
12420 FUNCTIONP fails.
12421 (Fdbus_register_method): New function. The implementation is not
12422 complete, the call of the function signals an error therefore.
12423 (Fdbus_unregister_object): New function, renamed from
12424 Fdbus_unregister_signal. The initial check signals an error, if
12425 the object is not well formed.
12426
124272007-12-30 Richard Stallman <rms@gnu.org>
12428
12429 * textprop.c (get_char_property_and_overlay):
12430 Signal error if POSITION is out of range in a buffer.
12431
124322007-12-29 Martin Rudalics <rudalics@gmx.at>
12433
12434 * w32fns.c (Fx_create_frame): Make copy of frame parameters
12435 because the original parameters are in pure storage now.
12436
124372007-12-24 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
12438
12439 * xdisp.c (phys_cursor_in_rect_p): Check if cursor is in fringe area.
12440
124412007-12-22 Eli Zaretskii <eliz@gnu.org>
12442
12443 * callint.c (syms_of_callint) <command-history>: Add reference to
12444 history-length in the doc string.
12445
124462007-12-17 Jason Rumney <jasonr@gnu.org>
12447
12448 * w32fns.c (w32_wnd_proc) <WM_KEYDOWN>: Cast char to unsigned
12449 before passing as wParam.
12450
124512007-12-22 Michael Albinus <michael.albinus@gmx.de>
12452
12453 * dbusbind.c (xd_retrieve_arg): Handle DBUS_TYPE_BYTE,
12454 DBUS_TYPE_INT16, DBUS_TYPE_UINT16, DBUS_TYPE_INT64,
12455 DBUS_TYPE_UINT64, DBUS_TYPE_DOUBLE and DBUS_TYPE_SIGNATURE.
12456 Return float when DBUS_TYPE_INT32 or DBUS_TYPE_UINT32 do not fit
12457 as number.
12458 (Fdbus_call_method): Fix docstring.
12459
124602007-12-21 Michael Albinus <michael.albinus@gmx.de>
12461
12462 * dbusbind.c (XD_BASIC_DBUS_TYPE, XD_DBUS_TYPE_P, XD_NEXT_VALUE):
12463 New macros.
12464 (XD_SYMBOL_TO_DBUS_TYPE): Rename from XD_LISP_SYMBOL_TO_DBUS_TYPE.
12465 (XD_OBJECT_TO_DBUS_TYPE): Rename from XD_LISP_OBJECT_TO_DBUS_TYPE.
12466 Simplify.
12467 (xd_signature): New function.
12468 (xd_append_arg): Compute also signatures. Major rewrite.
12469 (xd_retrieve_arg): Make debug messages friendly.
12470 (Fdbus_call_method, Fdbus_send_signal): Extend docstring.
12471 Check for signatures of arguments.
12472
124732007-12-19 Michael Albinus <michael.albinus@gmx.de>
12474
12475 * dbusbind.c (QCdbus_type_byte, QCdbus_type_boolean)
12476 (QCdbus_type_int16, QCdbus_type_uint16, QCdbus_type_int32)
12477 (QCdbus_type_uint32, QCdbus_type_int64, QCdbus_type_uint64)
12478 (QCdbus_type_double, QCdbus_type_string, QCdbus_type_object_path)
12479 (QCdbus_type_signature, QCdbus_type_array, QCdbus_type_variant)
12480 (QCdbus_type_struct, QCdbus_type_dict_entry): New D-Bus type symbols.
12481 (XD_LISP_SYMBOL_TO_DBUS_TYPE): New macro.
12482 (XD_LISP_OBJECT_TO_DBUS_TYPE): Add compound types.
12483 (xd_retrieve_value): Remove. Functionality included in ...
12484 (xd_append_arg): New function.
12485 (Fdbus_call_method, Fdbus_send_signal): Apply it.
12486
124872007-12-16 Michael Albinus <michael.albinus@gmx.de>
12488
12489 * dbusbind.c (top): Include <stdio.h>.
12490 (Fdbus_call_method, Fdbus_send_signal): Apply type cast in
12491 dbus_message_new_method_call and dbus_message_new_signal.
12492 (Fdbus_register_signal): Rename unique_name to uname.
12493 Check handler for FUNCTIONP instead of CHECK_SYMBOL. Handle case of
12494 non-existing unique name. Fix typos in matching rule. Return an
12495 object which is useful in Fdbus_unregister_signal.
12496 (Fdbus_unregister_signal): Reimplementation, in order to remove
12497 only the corresponding entry.
12498 (Vdbus_registered_functions_table): Change the order of entries.
12499 Apply these changes in xd_read_message and Fdbus_register_signal.
12500
125012007-12-16 Andreas Schwab <schwab@suse.de>
12502
12503 * fileio.c (Finsert_file_contents): Fix overflow check to not
12504 depend on undefined integer overflow.
12505
125062007-12-14 Jason Rumney <jasonr@gnu.org>
12507
12508 * w32term.c (w32_read_socket): Use MULTIBYTE_CHAR_KEYSTROKE_EVENT
12509 for characters above 127.
12510
125112007-12-13 Jason Rumney <jasonr@gnu.org>
12512
12513 * w32fns.c (w32_wnd_proc, Fw32_reconstruct_hot_key): Range check
12514 before dereferencing array.
12515 (lookup_vk_code): Remove zero comparison.
12516
125172007-12-14 Michael Albinus <michael.albinus@gmx.de>
12518
12519 * dbusbind.c (xd_retrieve_value, xd_retrieve_arg)
12520 (Fdbus_call_method, Fdbus_send_signal, xd_read_message):
12521 Use `unsigned int' instead of `uint'.
12522 (xd_read_message, Fdbus_register_signal): Split expressions into
12523 multiple lines before operators "&&" and "||", according to the
12524 GNU Coding Standards.
12525
125262007-12-14 Eli Zaretskii <eliz@gnu.org>
12527
12528 * dispextern.h (WINDOWS_NT): Fix incorrect spelling of WINDOWSNT.
12529
125302007-12-12 Juri Linkov <juri@jurta.org>
12531
12532 * buffer.c (Frename_buffer): In interactive spec replace
12533 `read-buffer' with `read-string' that uses `buffer-name-history'
12534 as history, and the current buffer's name as default.
12535
125362007-12-10 Stefan Monnier <monnier@iro.umontreal.ca>
12537
12538 * keyboard.c (Fcommand_execute): Call Qcall_interactively instead of
12539 manipulating the backtrace manually.
12540 (make_lispy_event): Merge the ASCII and MULTIBYTE cases.
12541 (struct backtrace, backtrace_list): Remove.
12542 (command_loop_1): Remove dead var `no_direct'.
12543
12544 * buffer.c (reset_buffer_local_variables): If permanent_too is 0, also
12545 preserve non-built-in buffer-local variables.
12546 (Fkill_all_local_variables): Don't re-create&re-set permanent
12547 buffer-local variables.
12548
125492007-12-09 Juri Linkov <juri@jurta.org>
12550
12551 * buffer.c (Frename_buffer): Change interactive spec from "s" to
12552 Lisp code that uses `read-buffer' with current buffer as default.
12553
125542007-12-08 Michael Albinus <michael.albinus@gmx.de>
12555
12556 * dbusbind.c (xd_read_message): Generate an event for every
12557 registered handler. There might be several handlers registered
12558 for the same signal.
12559 (Fdbus_register_signal): Don't overwrite a registration for the
12560 same signal. Add a new registration if handlers are different.
12561 (Vdbus_registered_functions_table): Rework doc string.
12562
125632007-12-07 Michael Albinus <michael.albinus@gmx.de>
12564
12565 * dbusbind.c (Fdbus_get_unique_name, xd_read_message)
12566 (Fdbus_register_signal): Use DBUS_MAXIMUM_NAME_LENGTH and
12567 DBUS_MAXIMUM_MATCH_RULE_LENGTH for string lengths.
12568 (Fdbus_call_method, Fdbus_send_signal, Fdbus_register_signal):
12569 Unify argument lists.
12570 (xd_read_message, Fdbus_register_signal): Reorder and extend event
12571 arguments and hash table keys. Use unique name for service.
12572 (Fdbus_unregister_signal): Remove checks.
12573 (Vdbus_registered_functions_table): Fix doc string.
12574
125752007-12-05 Magnus Henoch <mange@freemail.hu>
12576
12577 * process.c (make_process): Initialize pty_flag to 0.
12578
125792007-12-05 Jason Rumney <jasonr@gnu.org>
12580
12581 * image.c (xbm_load) [WINDOWSNT]: Shuffle the bits of directly
12582 specified XBMs.
12583
125842007-12-05 Richard Stallman <rms@gnu.org>
12585
12586 * xdisp.c (syms_of_xdisp) <scroll-conservatively>: Doc fix.
12587
125882007-12-05 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
12589
12590 * mac.c (cfsockets_for_select) [MAC_OSX && SELECT_USE_CFSOCKET]:
12591 New variable.
12592 (mac_try_close_socket) [MAC_OSX]: New function.
12593 [MAC_OSX] (sys_select) [SELECT_USE_CFSOCKET]:
12594 Update cfsockets_for_select. Replace invalid CFRunLoop source.
12595
12596 * sysdep.c (emacs_close) [MAC_OSX && HAVE_CARBON]:
12597 Use mac_try_close_socket.
12598
125992007-12-05 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
12600
12601 * unexmacosx.c (unrelocate): New argument BASE. Use it instead of
12602 reloc_base.
12603 (copy_dysymtab): Compute relocation base here.
12604 (rebase_reloc_address) [__ppc64__]: New function.
12605 (copy_dysymtab) [__ppc64__]: Use it if relocation base needs to be
12606 changed.
12607
126082007-12-05 Jason Rumney <jasonr@gnu.org>
12609
12610 * w32proc.c (sys_spawnve): Quote args with wildcards.
12611
126122007-12-05 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
12613
12614 * unexmacosx.c (copy_data_segment): Also copy __gcc_except_tab and
12615 __objc_* sections.
12616 (unrelocate) [_LP64]: Set relocation base to address of data segment.
12617
126182007-12-05 Michael Albinus <michael.albinus@gmx.de>
12619
12620 * dbusbind.c (xd_read_message): Return value is a Lisp_Object.
12621 Move check for Vdbus_registered_functions_table to
12622 xd_read_queued_messages.
12623 (xd_read_queued_messages): Protect xd_read_message calls by
12624 internal_condition_case_1.
12625
126262007-12-04 Michael Albinus <michael.albinus@gmx.de>
12627
12628 * dbusbind.c (QCdbus_system_bus, QCdbus_session_bus): Rename from
12629 Qdbus_system_bus and Qdbus_session_bus, respectively.
12630 (Vdbus_intern_symbols): Remove.
12631 (Vdbus_registered_functions_table): New hash table.
12632 (XD_SYMBOL_INTERN_SYMBOL): Remove.
12633 (xd_read_message, Fdbus_register_signal, Fdbus_unregister_signal):
12634 Rewrite in order to manage registered functions by hash table
12635 Vdbus_registered_functions_table.
12636
126372007-12-03 Jan Djärv <jan.h.d@swipnet.se>
12638
12639 * xterm.c: Update URL to Window Manager Specification in comment.
12640
126412007-12-02 Michael Albinus <michael.albinus@gmx.de>
12642
12643 * config.in (HAVE_DBUS): Add.
12644
12645 * Makefile.in (HAVE_DBUS): Add D-Bus definitions if defined.
12646 (ALL_CFLAGS): Add ${DBUS_CFLAGS}.
12647 (obj): Add $(DBUS_OBJ).
12648 (LIBES): Add $(DBUS_LIBS).
12649 (dbusbind.o): New target.
12650
12651 * dbusbind.c: New file.
12652
12653 * emacs.c (main): Call syms_of_dbusbind when HAVE_DBUS is defined.
12654
12655 * keyboard.c: All D-Bus related code is wrapped by "#ifdef HAVE_DBUS".
12656 (Qdbus_event): New Lisp symbol.
12657 (kbd_buffer_get_event, make_lispy_event): Handle DBUS_EVENT.
12658 (gobble_input): Call xd_read_queued_messages, reading D-Bus messages.
12659 (keys_of_keyboard ): Define dbus-event.
12660
12661 * termhooks.h (event_kind): Add DBUS_EVENT when HAVE_DBUS is defined.
12662
126632007-12-01 Richard Stallman <rms@gnu.org>
12664
12665 * search.c (syms_of_search) <inhibit-changing-match-data>: Doc fix.
12666
126672007-11-30 Jason Rumney <jasonr@gnu.org>
12668
12669 * w32console.c (w32con_ins_del_lines, scroll_line): Clip to window.
12670 (w32con_reset_terminal_modes): Clear screen buffer.
12671 (w32_face_attributes): Don't use color indexes that are out of range.
12672 Only reverse the default colors.
12673
12674 * xfaces.c (map_tty_color, tty_color_name): Remove special case for
12675 WINDOWSNT.
12676
12677 * w32console.c, w32term.h (vga_stdcolor_name): Remove.
12678
126792007-11-29 Jason Rumney <jasonr@gnu.org>
12680
12681 * w32console.c: Leave HAVE_WINDOW_SYSTEM defined.
12682 (w32_face_attributes): Use Vtty_defined_color_alist to determine
12683 if the terminal colors are initialized.
12684 (unspecified_fg, unspecified_bg): Remove unused declarations.
12685
126862007-11-29 Andreas Schwab <schwab@suse.de>
12687
12688 * keyboard.c (apply_modifiers): Fix typo.
12689
126902007-11-29 Richard Stallman <rms@gnu.org>
12691
12692 * keymap.c (Fcurrent_local_map): Doc fix.
12693
126942007-11-28 Petr Salinger <Petr.Salinger@seznam.cz> (tiny change)
12695
12696 * s/gnu-kfreebsd.h: New file.
12697
126982007-11-28 Stefan Monnier <monnier@iro.umontreal.ca>
12699
12700 * buffer.c (Fget_buffer_create, Fmake_indirect_buffer):
12701 Don't cast redundantly.
12702
12703 * keyboard.c (KEY_TO_CHAR): New macro.
12704 (parse_modifiers, apply_modifiers): Accept integer arguments.
12705 (read_key_sequence): Use them to unify the "shift->unshift" mapping
12706 for chars and symbol keys.
12707 After doing such remapping, apply function-key-map again.
12708
127092007-11-27 Dan Nicolaescu <dann@ics.uci.edu>
12710
12711 * Makefile.in (SOME_MACHINE_LISP): Remove VMS files, they are not
12712 compiled anymore.
12713
127142007-11-26 Andreas Schwab <schwab@suse.de>
12715
12716 * process.c (list_processes_1): Fix indentation level of the
12717 command column.
12718
127192007-11-23 Andreas Schwab <schwab@suse.de>
12720
12721 * editfns.c (Fformat): Handle %c specially since it requires the
12722 argument to be of type int.
12723
127242007-11-23 Markus Triska <markus.triska@gmx.at>
12725
12726 * emacs.c (main): Call init_editfns before init_process, since
12727 init_process sets Vprocess_connection_type depending on OS release.
12728
127292007-11-22 Stefan Monnier <monnier@iro.umontreal.ca>
12730
12731 * data.c (do_symval_forwarding): Use same code as in find_symbol_value.
12732 (find_symbol_value): Use do_symval_forwarding.
12733
12734 * data.c (set_internal): Set the value in the `cons-cell' (for
12735 Buffer_Local_values) not only for frame-local variables.
12736
127372007-11-22 Andreas Schwab <schwab@suse.de>
12738
12739 * data.c (Fnumber_to_string): Add cast when passing EMACS_INT
12740 values to sprintf.
12741 * keymap.c (Fsingle_key_description): Likewise.
12742 * print.c (print_object): Likewise.
12743
127442007-11-22 Jan Djärv <jan.h.d@swipnet.se>
12745
12746 * gtkutil.c (update_frame_tool_bar): Don't call x-gtk-map-stock if
12747 file for image is nil.
12748
127492007-11-22 Dan Nicolaescu <dann@ics.uci.edu>
12750
12751 * term.c: Include stdarg.h.
12752 (fatal): Implement using varargs.
12753 * lisp.h (fatal): Add argument types. (Restore 2005-09-30 change).
12754
127552007-11-21 Stefan Monnier <monnier@iro.umontreal.ca>
12756
12757 * lisp.h (struct Lisp_Buffer_Objfwd): Add a `slottype' field.
12758 * data.c (store_symval_forwarding): Get type from buffer_objfwd.
12759 Update call to buffer_slot_type_mismatch.
12760 * buffer.h (buffer_local_types, PER_BUFFER_TYPE): Remove.
12761 (buffer_slot_type_mismatch): Update.
12762 * buffer.c (buffer_local_types): Remove.
12763 (buffer_slot_type_mismatch): Get the symbol and type as arguments.
12764 (defvar_per_buffer): Set the type in the buffer_objfwd.
12765
127662007-11-21 Jason Rumney <jasonr@gnu.org>
12767
12768 * w32bdf.c (w32_init_bdf_font, w32_BDF_to_x_font):
12769 CreateFileMapping returns NULL on failure.
12770
127712007-11-21 Stefan Monnier <monnier@iro.umontreal.ca>
12772
12773 * search.c (Fset_match_data): Remove the `evaporate' feature.
12774 (unwind_set_match_data): Don't use the `evaporate' feature.
12775
127762007-11-21 Jason Rumney <jasonr@gnu.org>
12777
12778 * dispnew.c (init_display) [WINDOWSNT]: Hardcode terminal_type.
12779
12780 * w32console.c (w32con_write_glyphs): Remove unused variables.
12781
127822007-11-20 Dan Nicolaescu <dann@ics.uci.edu>
12783
12784 * macterm.c (mac_term_init): Call add_keyboard_wait_descriptor.
12785
12786 * s/darwin.h (MULTI_KBOARD): Remove.
12787
12788 * macfns.c (x_create_tip_frame, Fx_create_frame)
12789 (x_create_tip_frame): Don't deal with MULTI_KBOARD.
12790
127912007-11-19 Stefan Monnier <monnier@iro.umontreal.ca>
12792
12793 * buffer.c (Fbuffer_local_value): Remove redundant test.
12794 (swap_out_buffer_local_variables): Swap out binding in `buffer' rather
12795 than in `current-buffer' to match the comment.
12796 Do the swap using swap_in_global_binding.
12797
12798 * data.c (store_symval_forwarding, set_internal):
12799 * eval.c (specbind): Remove dead code.
12800
12801 * coding.c (detect_coding, Fupdate_coding_systems_internal):
12802 * fns.c (Fmd5): Use find_symbol_value rather than SYMBOL_VALUE
12803 Since we do not want to see internal Lisp_*fwd objects here.
12804
128052007-11-18 Jan Djärv <jan.h.d@swipnet.se>
12806
12807 * sysdep.c (init_system_name): Use getaddrinfo if available.
12808
12809 * xterm.c (x_scroll_bar_set_handle, x_scroll_bar_handle_click)
12810 (x_scroll_bar_note_movement): start, end, with, height in struct
12811 scroll_bar are integers and not Lisp_Object, so remove XINT for them.
12812
128132007-11-17 Dan Nicolaescu <dann@ics.uci.edu>
12814
12815 * puresize.h (BASE_PURESIZE): Increase to 1190000.
12816
128172007-11-16 Stefan Monnier <monnier@iro.umontreal.ca>
12818
12819 * buffer.h (struct buffer): Move `undo_list' back to before `name'.
12820 This undoes Richard's change of 14-Oct-2002.
12821
12822 * alloc.c (allocate_other_vector):
12823 * lisp.h (allocate_other_vector): Remove.
12824
12825 * window.c (struct save_window_data): Move non-lisp data to the end
12826 and make it `int' rather than Lisp_Object.
12827 (Fcurrent_window_configuration): Use ALLOCATE_PSEUDOVECTOR.
12828 Done wrap/unwrap integer values.
12829 (Fset_window_configuration, compare_window_configurations):
12830 Update use of fields to their new types.
12831
12832 * xterm.h (struct scroll_bar): Only use Lisp_Object for lisp data.
12833 Turn integer fields into `int'. Merge x_window_low and x_window_high.
12834 (SCROLL_BAR_PACK, SCROLL_BAR_UNPACK, SCROLL_BAR_X_WINDOW)
12835 (SET_SCROLL_BAR_X_WINDOW): Remove.
12836 (SCROLL_BAR_X_WIDGET, SET_SCROLL_BAR_X_WIDGET):
12837 Access the new x_window field directly.
12838 * xterm.c (x_scroll_bar_create): Use a pseudovector.
12839 Don't wrap/unwrap integers into Lisp_Objects.
12840 (XTset_vertical_scroll_bar, x_scroll_bar_handle_click)
12841 (x_scroll_bar_report_motion):
12842 Don't wrap/unwrap integers into Lisp_Objects.
12843 (x_term_init): Use SDATA.
12844 (x_window_to_scroll_bar, x_create_toolkit_scroll_bar)
12845 (x_scroll_bar_set_handle, x_scroll_bar_remove)
12846 (XTset_vertical_scroll_bar, x_scroll_bar_expose)
12847 (x_scroll_bar_report_motion, x_scroll_bar_clear):
12848 * xfns.c (x_set_background_color):
12849 * gtkutil.c (xg_create_scroll_bar, xg_set_toolkit_scroll_bar_thumb):
12850 Access the new x_window field directly.
12851
12852 * alloc.c (ALLOCATE_PSEUDOVECTOR): Move to lisp.h.
12853 (allocate_pseudovector): Make non-static.
12854
12855 * lisp.h (enum pvec_type): New tag PVEC_OTHER.
12856 (allocate_pseudovector): Declare.
12857 (ALLOCATE_PSEUDOVECTOR): Move from alloc.c.
12858
128592007-11-15 Andreas Schwab <schwab@suse.de>
12860
12861 * editfns.c (Fformat): Correctly format EMACS_INT values.
12862 Also take precision into account when formatting an integer.
12863
12864 * keyboard.c (Fevent_symbol_parse_modifiers): Fix declaration.
12865
128662007-11-15 Stefan Monnier <monnier@iro.umontreal.ca>
12867
12868 * keyboard.c (Fevent_symbol_parse_modifiers): New function.
12869 (syms_of_keyboard): Defsubr it.
12870
12871 * data.c (swap_in_global_binding): Fix longstanding bug where
12872 store_symval_forwarding was not called with the right second argument,
12873 thus causing objfwd-ing from being dropped.
12874
128752007-11-14 Juanma Barranquero <lekktu@gmail.com>
12876
12877 * macfns.c (Fx_create_frame, Fx_display_pixel_width)
12878 (Fx_display_pixel_height, Fx_display_planes)
12879 (Fx_display_color_cells, Fx_server_max_request_size)
12880 (Fx_server_vendor, Fx_server_version, Fx_display_backing_store)
12881 (Fx_display_visual_class, Fx_display_save_under):
12882 * w32fns.c (Fx_create_frame, Fx_display_pixel_width)
12883 (Fx_display_pixel_height, Fx_display_planes)
12884 (Fx_display_color_cells, Fx_server_max_request_size)
12885 (Fx_server_vendor, Fx_server_version, Fx_display_screens)
12886 (Fx_display_mm_height, Fx_display_mm_width)
12887 (Fx_display_backing_store, Fx_display_visual_class)
12888 (Fw32_select_font, Fx_display_save_under):
12889 * xfns.c (Fx_create_frame, Fx_display_pixel_width)
12890 (Fx_display_pixel_height, Fx_display_planes)
12891 (Fx_display_color_cells, Fx_server_max_request_size)
12892 (Fx_server_vendor, Fx_server_version, Fx_display_backing_store)
12893 (Fx_display_save_under): Fix typos in docstrings.
12894
128952007-11-14 Juanma Barranquero <lekktu@gmail.com>
12896
12897 * w32fns.c (Fw32_registered_hot_keys): Don't return the nil values
12898 corresponding to deleted entries; they are an implementation detail.
12899 (gray_bitmap_width, gray_bitmap_height, gray_bitmap_bits):
12900 Remove variables.
12901 (w32_pass_extra_mouse_buttons_to_system, w32_strict_fontnames)
12902 (w32_pass_multimedia_buttons_to_system, w32_strict_painting)
12903 (Vw32_charset_info_alist, w32_to_x_color, w32_init_class)
12904 (w32_createscrollbar, w32_createwindow, my_post_msg, w32_get_modifiers)
12905 (w32_grabbed_keys, cancel_all_deferred_msgs): Make static.
12906 (Fw32_define_rgb_color, Fw32_load_color_file)
12907 (syms_of_w32fns) <w32-pass-multimedia-buttons-to-system>:
12908 Fix typos in docstrings.
12909 (Fx_server_version): Reflow docstring.
12910 (Fw32_shell_execute): Doc fixes.
12911
129122007-11-13 Juanma Barranquero <lekktu@gmail.com>
12913
12914 * w32fns.c (Fw32_register_hot_key): Don't try to register hot key
12915 if w32_parse_hot_key returned nil.
12916
129172007-11-10 Stefan Monnier <monnier@iro.umontreal.ca>
12918
12919 * xdisp.c (load_overlay_strings): Fix copy&paste typo.
12920
129212007-11-09 Jason Rumney <jasonr@gnu.org>
12922
12923 * s/ms-w32.c (USE_TOOLKIT_SCROLL_BARS): Define.
12924
12925 * w32term.c (w32_scroll_bar_handle_click): Use SCROLL_BAR_CLICK_EVENT.
12926
12927 * keyboard.c (discard_mouse_events, make_lispy_event) [WINDOWSNT]:
12928 Remove W32_SCROLL_BAR_CLICK_EVENT.
12929
12930 * termhooks.h (enum event_kind) [WINDOWSNT]: Likewise.
12931 Add MULTIMEDIA_KEY_EVENT.
12932
12933 * keyboard.c (lispy_function_keys) [WINDOWSNT]: Add more keys.
12934 (lispy_multimedia_keys) [WINDOWSNT]: New array.
12935 (make_lispy_event) [WINDOWSNT]: Use it to translate
12936 MULTIMEDIA_KEY_EVENT.
12937
12938 * w32term.h (WM_APPCOMMAND): Define if not already.
12939 (GET_APPCOMMAND_LPARAM): Likewise.
12940
12941 * w32term.c (w32_read_socket): Generate MULTIMEDIA_KEY_EVENT from
12942 WM_APPCOMMAND.
12943
12944 * w32fns.c (w32_pass_multimedia_buttons_to_system): New user option.
12945 (syms_of_w32fns): Export and initialize it.
12946 (w32_wnd_proc): Pass WM_APPCOMMAND on to w32_read_socket.
12947
129482007-11-09 Chong Yidong <cyd@stupidchicken.com>
12949
12950 * dispextern.h (struct it): Don't define OVERLAY_STRING_CHUNK_SIZE
12951 twice.
12952
12953 * xdisp.c (handle_face_prop): Fix last change.
12954
129552007-11-09 Richard Stallman <rms@gnu.org>
12956
12957 * xdisp.c (handle_face_prop): Test for strings that came from overlays,
12958 not just for after-strings and before-strings.
12959 Call face_for_overlay_string and pass the overlay to it.
12960 (handle_display_prop): Determine whether property came from an overlay.
12961 Pass OVERLAY arg to handle_single_display_spec.
12962 (handle_single_display_spec): New arg OVERLAY sets it->from_overlay.
12963 (load_overlay_strings): Fill in it->string_overlays.
12964 (get_overlay_strings_1, push_it, pop_it): Handle it->from_overlays.
12965
12966 * xfaces.c (face_for_overlay_string): Function renamed from
12967 face_at_buffer_position_no_overlays, and add arg OVERLAY.
12968
12969 * dispextern.h (struct it): New elt string_overlays.
12970 New elt from_overlay, also in stack.
12971 Rearrange a few elements.
12972 (face_for_overlay_string): Decl renamed from
12973 face_at_buffer_position_no_overlays, and add argument.
12974
129752007-11-09 Richard Stallman <rms@gnu.org>
12976
12977 * xdisp.c (handle_face_prop): Use face_at_buffer_position_no_overlays
12978 to get the base face for an overlay string.
12979
12980 * dispextern.h (face_at_buffer_position_no_overlays): Add decl.
12981
12982 * xfaces.c (face_at_buffer_position_no_overlays): New function.
12983
12984 * xdisp.c (handle_stop): Move some code out of loop.
12985
129862007-11-09 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
12987
12988 * macfns.c [USE_ATSUI] (Fmac_atsu_font_face_attributes):
12989 Fix conversion from Lisp object to ATSUFontID.
12990
129912007-11-09 Jason Rumney <jasonr@gnu.org>
12992
12993 * xdisp.c (Fformat_mode_line): Do nothing when noninteractive.
12994
129952007-11-09 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
12996
12997 * unexmacosx.c (unexec_regions_recorder, unexec_regions_merge):
12998 Don't assume regions are aligned to page boundary.
12999 (print_load_command_name): Add LC_UUID if defined.
13000
130012007-11-09 Richard Stallman <rms@gnu.org>
13002
13003 * emacs.c (syms_of_emacs) <installation-directory>: Reflow docstring.
13004
130052007-11-07 Jason Rumney <jasonr@gnu.org>
13006
13007 * s/windows95.h: Remove.
13008
130092007-11-06 Jan Djärv <jan.h.d@swipnet.se>
13010
13011 * gtkutil.c (xg_tool_bar_menu_proxy): Handle GTK_IMAGE_ICON_NAME and
13012 abort with a message on unhandled store_type values.
13013
130142007-11-01 Jan Djärv <jan.h.d@swipnet.se>
13015
13016 * xterm.c, xfns.c, xselect.c, xterm.h, s/msdos.h, s/sco4.h, s/sco5.h:
13017 Remove HAVE_X11R5 and HAVE_X11R4.
13018
130192007-11-01 Dan Nicolaescu <dann@ics.uci.edu>
13020
13021 * Makefile.in: Remove references to sunfns.c and sunfns.o.
13022
130232007-11-01 Johan Bockgård <bojohan@gnu.org>
13024
13025 * macterm.c, w32term.c, xterm.c (x_draw_stretch_glyph_string):
13026 Don't set s->stippled_p here, since it has already been set by
13027 x_set_glyph_string_gc from x_draw_glyph_string.
13028
130292007-11-01 Dan Nicolaescu <dann@ics.uci.edu>
13030
13031 * sunfns.c: Remove file.
13032
13033 * m/sun386.h:
13034 * m/sun2.h:
13035 * m/sparc.h: Remove Sun windows code.
13036
130372007-10-31 Stefan Monnier <monnier@iro.umontreal.ca>
13038
13039 * keyboard.c (syms_of_keyboard): Initialize the initial_kboard.
13040 (init_keyboard): Set current_kboard's window-system to nil.
13041 (tty_read_avail_input): Typo.
13042 * frame.c (make_initial_frame): Don't initialize the initial_kboard.
13043
130442007-10-31 Dan Nicolaescu <dann@ics.uci.edu>
13045
13046 * s/usg5-4.h:
13047 * s/usg5-3.h:
13048 * s/ptx.h:
13049 * m/is386.h:
13050 * m/ibmps2-aix.h:
13051 * Makefile.in: Remove all mentions of X10.
13052
13053 * dispnew.c (syms_of_display): Don't mention version 10.
13054
130552007-10-28 Juanma Barranquero <lekktu@gmail.com>
13056
13057 * makefile.w32-in (OBJ1): Remove abbrev.$(O).
13058 ($(BLD)/abbrev.$(O)): Remove.
13059
130602007-10-28 Stefan Monnier <monnier@iro.umontreal.ca>
13061
13062 Rewrite abbrev.c in Elisp.
13063 * image.c (Qcount): Don't declare as extern.
13064 (syms_of_image): Initialize and staticpro `Qcount'.
13065 * puresize.h (BASE_PURESIZE): Increase for the new abbrev.el functions.
13066 * emacs.c (main): Don't call syms_of_abbrev.
13067 * Makefile.in (obj): Remove abbrev.o.
13068 (abbrev.o): Remove.
13069 * abbrev.c: Remove.
13070
130712007-10-26 Martin Rudalics <rudalics@gmx.at>
13072
13073 * window.c (window_min_size_2): Don't count header-line.
13074
130752007-10-26 Dan Nicolaescu <dann@ics.uci.edu>
13076
13077 * frame.h (struct frame): Move all bit fields after the first bit
13078 field to take advantage of the available space. Group all the
13079 chars together to reduce wasted space due to padding.
13080
130812007-10-26 Juanma Barranquero <lekktu@gmail.com>
13082
13083 * minibuf.c (Fread_minibuffer, Feval_minibuffer): Reflow docstrings.
13084
13085 * alloc.c (spare_memory, stack_copy, stack_copy_size, ignore_warnings)
13086 (Vdead, dont_register_blocks, staticvec, staticidx, interval_block)
13087 (n_interval_blocks, init_strings, check_string_bytes, check_sblock)
13088 (init_float, free_float, n_cons_blocks, init_cons, all_vectors)
13089 (n_vectors, symbol_block, symbol_block_index, symbol_free_list)
13090 (n_symbol_blocks, init_symbol, marker_block, marker_free_list)
13091 (n_marker_blocks, init_marker, valid_pointer_p, make_pure_float)
13092 (last_marked, mark_object_loop_halt): Make static.
13093
13094 * frame.c (syms_of_frame) <delete-frame-functions>:
13095 Fix typo in docstring.
13096
130972007-10-25 Juanma Barranquero <lekktu@gmail.com>
13098
13099 * w32.c (init_environment): Fix tiny memory leak.
13100 (w32_get_resource): Remove unused variable `ok'.
13101
131022007-10-25 Stefan Monnier <monnier@iro.umontreal.ca>
13103
13104 Make `window-system' into a keyboard-local variable (rather than
13105 frame-local as done originally by multi-tty).
13106
13107 * keyboard.h (struct kboard): Add Vwindow_system.
13108 * keyboard.c (init_kboard): Set a default for Vwindow_system.
13109 (mark_kboards): Mark Vwindow_system.
13110
13111 * dispnew.c (syms_of_display) <window-system>: Declare terminal-local.
13112 (init_display): Don't set the obsolete `window-system' frame-param.
13113
13114 * xterm.c (x_term_init):
13115 * w32term.c (w32_create_terminal):
13116 * term.c (init_tty): Set Vwindow_system.
13117 * macterm.c (mac_create_terminal): Set a keyboard (missing piece of the
13118 multi-tty merge maybe?), copied from w32term.c. Set Vwindow_system.
13119
13120 * xfns.c (Fx_create_frame, x_create_tip_frame):
13121 * w32fns.c (Fx_create_frame, x_create_tip_frame):
13122 * macfns.c (Fx_create_frame):
13123 Don't set the obsolete `window-system' frame-param.
13124
13125 * frame.h (Qwindow_system): Remove.
13126 * frame.c (Qwindow_system): Remove. In `syms_of_frame' as well.
13127 (Fmake_terminal_frame): Don't set obsolete `window-system' frame-param.
13128
131292007-10-24 Richard Stallman <rms@gnu.org>
13130
13131 * frame.c (x_figure_window_size): For fullscreen case,
13132 set USPosition | PPosition without clobbering rest of window_prompting.
13133
13134 * keyboard.c (Fcurrent_idle_time): Doc fix.
13135
13136 * print.c (Fwith_output_to_temp_buffer): Doc fix.
13137
131382007-10-23 Stefan Monnier <monnier@iro.umontreal.ca>
13139
13140 * process.c (unwind_request_sigio): Only define if __ultrix__.
13141
13142 * callproc.c (child_setup): Remove spurious *.
13143
13144 * lisp.h (Fget_text_property): Declare.
13145 (have_menus_p): Declare it here rather than in sys-dep header files.
13146 * macterm.h (have_menus_p):
13147 * msdos.h (have_menus_p):
13148 * xterm.h (have_menus_p): Remove.
13149
13150 * data.c (Fmake_variable_buffer_local, Fmake_local_variable)
13151 (Fmake_variable_frame_local): Just check the variable's const-ness
13152 rather than checking nil or t.
13153
131542007-10-22 Jason Rumney <jasonr@gnu.org>
13155
13156 * w32fns.c: Include math.h.
13157 (w32_abort): Declaration moved to nt/config.nt.
13158
13159 * s/ms-w32.h (HAVE_STDLIB_H): Define.
13160 (abort): Redefinition moved to nt/config.nt.
13161
13162 * m/windowsnt.h: Remove.
13163
131642007-10-22 Juanma Barranquero <lekktu@gmail.com>
13165
13166 * emacs.c (Fdump_emacs): Fix typo in message.
13167 (syms_of_emacs) <kill-emacs-hook>: Fix typo in docstring.
13168 <installation-directory>: Reflow docstring.
13169
131702007-10-22 Juri Linkov <juri@jurta.org>
13171
13172 * minibuf.c: Allow minibuffer default to be a list of default values.
13173 With empty input use the first element of this list as returned default.
13174 (string_to_object)
13175 (read_minibuf_noninteractive): If defalt is cons, set val to its car.
13176 (read_minibuf): If defalt is cons, set histstring to its car.
13177 (Fread_string): If default_value is cons, set val to its car.
13178 (Fread_buffer): If def is cons, use its car.
13179 (Fcompleting_read): If defalt is cons, set val to its car.
13180
131812007-10-21 Michael Albinus <michael.albinus@gmx.de>
13182
13183 * fileio.c (Fcopy_file): Call file name handler with preserve_uid_gid.
13184
131852007-10-20 Juanma Barranquero <lekktu@gmail.com>
13186
13187 * doc.c (Fdocumentation): Check for advice in all cases.
13188
131892007-10-19 Chong Yidong <cyd@stupidchicken.com>
13190
13191 * Makefile.in [HAVE_LIBRESOLV]: Add -lresolv to linker flags.
13192
131932007-10-19 Richard Stallman <rms@gnu.org>
13194
13195 * doc.c (Fdocumentation): Check for and handle an advised function.
13196
131972007-10-19 Juanma Barranquero <lekktu@gmail.com>
13198
13199 * process.c (Fset_process_filter): Doc fix.
13200
132012007-10-18 Stefan Monnier <monnier@iro.umontreal.ca>
13202
13203 * keyboard.c (read_key_sequence): Undo a change introduced by multi-tty
13204 which caused key-translation-map to applied repeatedly (thus breaking
13205 double-mode).
13206
132072007-10-17 Stefan Monnier <monnier@iro.umontreal.ca>
13208
13209 * xselect.c (x_own_selection, x_handle_selection_clear)
13210 (x_clear_frame_selections):
13211 * w32menu.c (list_of_panes, list_of_items):
13212 * w32fns.c (w32_color_map_lookup, Fx_create_frame, Fx_display_list):
13213 * textprop.c (validate_plist, interval_has_all_properties)
13214 (interval_has_some_properties, interval_has_some_properties_list)
13215 (add_properties, text_property_list):
13216 * process.c (Fget_buffer_process, list_processes_1, status_notify):
13217 * minibuf.c (Fassoc_string):
13218 * macselect.c (x_own_selection, x_clear_frame_selections)
13219 (Fx_disown_selection_internal):
13220 * keymap.c (Fcommand_remapping, where_is_internal, describe_map_tree):
13221 Use CONSP rather than !NILP and XC[AD]R rather than Fc[ad]r.
13222
132232007-10-17 Chong Yidong <cyd@stupidchicken.com>
13224
13225 * process.c: Link to libs for calling res_init() if available.
13226 (Fmake_network_process): Call res_init() before getaddrinfo or
13227 gethostbyname, if possible.
13228
132292007-10-17 Stefan Monnier <monnier@iro.umontreal.ca>
13230
13231 * lread.c (read1): Set pvectype for char_tables.
13232
13233 * lisp.h (XMISCANY, XMARKER, XINTFWD, XBOOLFWD, XOBJFWD, XOVERLAY)
13234 (XBUFFER_OBJFWD, XBUFFER_LOCAL_VALUE, XKBOARD_OBJFWD, XSAVE_VALUE):
13235 Add type checks.
13236 (SOME_BUFFER_LOCAL_VALUEP, GC_SOME_BUFFER_LOCAL_VALUEP): Remove.
13237
13238 * alloc.c (free_misc): Use XMISCTYPE.
13239 (live_misc_p, gc_sweep): Use Lisp_Misc_Any.
13240
132412007-10-17 Glenn Morris <rgm@gnu.org>
13242
13243 * minibuf.c (Qcompletion_ignore_case): New Lisp_Object.
13244 (syms_of_minibuf): Add Qcompletion_ignore_case.
13245 * dired.c (Qcompletion_ignore_case): Change to external.
13246 (syms_of_dired) [VMS]: Remove Qcompletion_ignore_case.
13247 * fileio.c (Qcompletion_ignore_case): New external Lisp_Object.
13248 (Fread_file_name): Use it rather than intern'ing.
13249
13250 * coding.c (Qcompletion_ignore_case): New external Lisp_Object.
13251 (Fread_coding_system): Ignore case of user input.
13252
132532007-10-16 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
13254
13255 * xdisp.c (handle_display_prop): Ignore display specs after
13256 replacing one when string text is being replaced.
13257 (handle_single_display_spec): Pretend as if characters with display
13258 property haven't been consumed only when buffer text is being replaced.
13259
132602007-10-16 Stefan Monnier <monnier@iro.umontreal.ca>
13261
13262 * xfns.c (Fx_create_frame, Fx_display_list):
13263 * window.c (window_fixed_size_p, enlarge_window)
13264 (shrink_window_lowest_first):
13265 * macterm.c (init_font_name_table):
13266 * macfns.c (Fx_create_frame, Fx_display_list):
13267 * lread.c (close_load_descs):
13268 * keyboard.c (read_char_x_menu_prompt):
13269 * fns.c (Fmember, Fmemql, Fdelete, Fset_char_table_parent):
13270 * coding.c (code_convert_region_unwind): Test the type of an object
13271 rather than just !NILP before extracting data from it.
13272
13273 * alloc.c (Fpurecopy): Set the pvec tag on pseudo vectors.
13274
13275 * lisp.h (enum Lisp_Misc_Type): Del Lisp_Misc_Some_Buffer_Local_Value.
13276 (XMISCANY): New macro.
13277 (XMISCTYPE): Use it.
13278 (struct Lisp_Misc_Any): New type.
13279 (union Lisp_Misc): Use it.
13280 (struct Lisp_Buffer_Local_Value): Add `local_if_set' bit.
13281 * data.c (Fboundp, store_symval_forwarding, swap_in_global_binding)
13282 (find_symbol_value, set_internal, default_value, Fset_default)
13283 (Fmake_variable_buffer_local, Fmake_local_variable)
13284 (Fkill_local_variable, Fmake_variable_frame_local, Flocal_variable_p)
13285 (Flocal_variable_if_set_p, Fvariable_binding_locus):
13286 The SOME_BUFFER_LOCAL_VALUEP distinction is replaced by local_if_set.
13287 * alloc.c (allocate_buffer): Set the size and tag.
13288 (allocate_misc, mark_maybe_object, mark_object, survives_gc_p):
13289 Use XMISCANY.
13290 (die): Follow the GNU convention for error messages.
13291 * print.c (print_object): SOME_BUFFER_LOCAL_VALUEP -> local_if_set.
13292 * buffer.c (Fget_buffer_create, Fmake_indirect_buffer): Don't set the
13293 tag any more.
13294 (set_buffer_internal_1):
13295 * frame.c (store_frame_param):
13296 * eval.c (specbind):
13297 * xdisp.c (select_frame_for_redisplay): Drop SOME_BUFFER_LOCAL_VALUEP.
13298
13299 * doc.c (Fsnarf_documentation): Simplify.
13300
133012007-10-14 Juanma Barranquero <lekktu@gmail.com>
13302
13303 * w32term.c (w32_font_is_double_byte, my_create_scrollbar): Make static.
13304 (syms_of_w32term) <w32-enable-unicode-output>: Fix typo in docstring.
13305
133062007-10-14 Stefan Monnier <monnier@iro.umontreal.ca>
13307
13308 * buffer.c (Fmake_indirect_buffer): Set the buffer's tag.
13309
133102007-10-14 Juanma Barranquero <lekktu@gmail.com>
13311
13312 * eval.c (do_autoload): Don't save autoloads.
13313
13314 * data.c (Ffset): Save autoload of the function being set.
13315
133162007-10-07 John Paul Wallington <jpw@pobox.com>
13317
13318 * xfns.c (x_create_tip_frame): Set the `display-type' frame
13319 parameter before setting up faces.
13320
133212007-10-13 Eli Zaretskii <eliz@gnu.org>
13322
13323 * ccl.c (Fregister_code_conversion_map):
13324 * keyboard.c (append_tool_bar_item): Reformat last change.
13325
13326 * lisp.h (eabs): Rename from `abs'. All callers changed.
13327
133282007-10-05 Dmitry Antipov <dmantipov@yandex.ru>
13329
13330 * buffer.c (add_overlay_mod_hooklist):
13331 * ccl.c (Fregister_ccl_program, Fregister_code_conversion_map):
13332 * fontset.c (make_fontset):
13333 * keyboard.c (GROW_RAW_KEYBUF, menu_bar_items, menu_bar_item)
13334 (append_tool_bar_item):
13335 * macmenu.c (grow_menu_items):
13336 * w32menu.c (grow_menu_items):
13337 * xmenu.c (grow_menu_items): Use larger_vector.
13338
133392007-10-13 Eli Zaretskii <eliz@gnu.org>
13340
13341 * msdos.c (dos_rawgetc): Undo last change (there's no ``leaving
13342 selected frame'' on MSDOS).
13343
133442007-10-12 Martin Rudalics <rudalics@gmx.at>
13345
13346 * frame.c (Qexplicit_name): New variable.
13347 (x_report_frame_params): Report it in parameter alist.
13348 (syms_of_frame): Intern and staticpro it.
13349
133502007-10-10 Patrick Mahan <mahan@mahan.org> (tiny change)
13351
13352 * macfns.c (x_create_tip_frame): Set terminal for frame.
13353
133542007-10-10 Stefan Monnier <monnier@iro.umontreal.ca>
13355
13356 * frame.c (Qenvironment): Remove.
13357 (syms_of_frame) <Qenvironment>: Don't initialize.
13358 (Fdelete_frame): Don't treat the `environment' param specially.
13359 * frame.h (Qenvironment): Don't declare.
13360 * callproc.c (set_initial_environment): Don't set unused frame param.
13361
13362 * frame.c (Fframe_with_environment): Remove.
13363 (syms_of_frame) <Sframe_with_environment>: Don't declare.
13364
13365 * lisp.h (Fframe_with_environment): Don't declare.
13366
133672007-10-10 Juanma Barranquero <lekktu@gmail.com>
13368
13369 * indent.c (indent_tabs_mode, last_known_column)
13370 (last_known_column_modified): Make static.
13371 (syms_of_indent) <indent-tabs-mode>: Remove redundant info in docstring.
13372
133732007-10-10 Katsumi Yamaoka <yamaoka@jpl.org>
13374
13375 * puresize.h (BASE_PURESIZE): Increase to 1170000.
13376
133772007-10-09 Jason Rumney <jasonr@gnu.org>
13378
13379 * w32term.c (x_set_window_size): Disable code that attempts to tell
13380 Lisp code about a size change before it actually happens.
13381
133822007-10-09 Richard Stallman <rms@gnu.org>
13383
13384 * xdisp.c (handle_invisible_prop): After setting up an ellipsis,
13385 return HANDLED_RETURN.
13386
133872007-10-08 Martin Rudalics <rudalics@gmx.at>
13388
13389 * keyboard.c (kbd_buffer_get_event): Break loop waiting for input
13390 when there's an unread command event.
13391
13392 * frame.c (focus_follows_mouse): Move here from frame.el to allow
13393 window autoselection act appropriately when leaving selected frame.
13394 (syms_of_frame): Initialize focus_follows_mouse.
13395 * frame.h (focus_follows_mouse): Extern it.
13396 * macterm.c (XTread_socket): When focus_follows_mouse is nil
13397 make SELECT_WINDOW_EVENT only if we don't leave the selected frame.
13398 * msdos.c (dos_rawgetc): Likewise.
13399 * w32term.c (w32_read_socket): Likewise.
13400 * xterm.c (handle_one_xevent): Likewise.
13401 * xdisp.c (syms_of_xdisp): In doc-string of
13402 mouse-autoselect-window mention focus-follows-mouse.
13403
134042007-10-08 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
13405
13406 * macterm.c (mac_load_query_font): Fix missing return value.
13407 [USE_CG_DRAWING] (mac_define_fringe_bitmap, mac_destroy_fringe_bitmap):
13408 Add BLOCK_INPUT.
13409
134102007-10-08 Richard Stallman <rms@gnu.org>
13411
13412 * xdisp.c (get_window_cursor_type): Implement documented behavior
13413 for cursor-in-non-selected-windows = t.
13414
134152007-10-08 Jason Rumney <jasonr@gnu.org>
13416
13417 * w32.c (w32_get_resource): Always close registry keys.
13418
134192007-10-08 Jason Rumney <jasonr@gnu.org>
13420
13421 * makefile.w32-in (LIBS): Add COMCTL32.
13422
13423 * w32fns.c (globals_of_w32fns): Init common controls.
13424
134252007-10-08 Richard Stallman <rms@gnu.org>
13426
13427 * image.c (our_memory_buffer): Rename from omfib_buffer.
13428
134292007-10-08 Richard Stallman <rms@gnu.org>
13430
13431 * buffer.c (Foverlays_at): Doc fix.
13432
134332007-10-08 Stefan Monnier <monnier@iro.umontreal.ca>
13434
13435 * fns.c (Fplist_put): Preserve uneven tail data.
13436
134372007-10-08 Peter O'Gorman <bug-gnu-emacs@mlists.thewrittenword.com> (tiny change)
13438
13439 * termhooks.h (enum event_kind): Remove trailing comma.
13440
13441 * frame.h (enum): Remove trailing comma.
13442
134432007-10-08 Dhruva Krishnamurthy <dhruvakm@gmail.com> (tiny change)
13444
13445 * w32proc.c (delete_child): Don't terminate threads of zombies.
13446
134472007-10-08 Martin Rudalics <rudalics@gmx.at>
13448
13449 * keyboard.h (struct kboard): New elt Vlast_repeatable_command.
13450
13451 * keyboard.c (syms_of_keyboard): Set up new Lisp variable
13452 last-repeatable-command.
13453 (init_kboard): Initialize Vlast_repeatable_command.
13454 (command_loop_1): Set it to real_this_command unless that was
13455 bound to an input event.
13456 (mark_kboards): Mark it.
13457
134582007-10-08 Richard Stallman <rms@gnu.org>
13459
13460 * eval.c (condition-case): Doc fix.
13461
134622007-10-08 Masatake YAMATO <jet@gyve.org>
13463
13464 * xfaces.c (tty_supports_face_attributes_p): Fix code
13465 for LFACE_INVERSE_INDEX and LFACE_BACKGROUND_INDEX; code
13466 was copied and not edited.
13467
134682007-10-09 Stefan Monnier <monnier@iro.umontreal.ca>
13469
13470 Add new `input-decode-map' keymap and use it for terminal
13471 escape sequences.
13472 * keyboard.h (struct kboard): Add Vinput_decode_map.
13473 Remove Vlocal_key_translation_map.
13474 * keyboard.c (read_key_sequence): Add support for input-decode-map.
13475 (init_kboard): Init input-decode-map.
13476 Replace local-key-translation-map back with key-translation-map.
13477 (syms_of_keyboard): Declare input-decode-map.
13478 Remove local-key-translation-map. Update docstrings.
13479 (mark_kboards): Mark Vinput_decode_map.
13480 Don't mark Vlocal_key_translation_map.
13481 * keymap.c (Fdescribe_buffer_bindings): Describe input-decode-map.
13482 Replace local-key-translation-map back with key-translation-map.
13483 * term.c (term_get_fkeys_1, CONDITIONAL_REASSIGN):
13484 Bind in input-decode-map rather than function-key-map.
13485
13486 * lisp.h (XSETPSEUDOVECTOR): Don't set the tag anymore.
13487 This was made redundant by the previous introduction of XSETPVECTYPE.
13488
134892007-10-09 Richard Stallman <rms@gnu.org>
13490
13491 * image.c (free_bitmap_record): Rename from Free_Bitmap_Record.
13492
134932007-09-29 Richard Stallman <rms@gnu.org>
13494
13495 * eval.c (internal_condition_case_2, internal_condition_case_1)
13496 (internal_condition_case): Reenable abort if x_catching_errors ()
13497 to see if that really happens and why.
13498
134992007-10-06 Andreas Schwab <schwab@suse.de>
13500
13501 * fileio.c (Fwrite_region): Ignore EINVAL error from fsync.
13502
135032007-10-04 Juanma Barranquero <lekktu@gmail.com>
13504
13505 * image.c (syms_of_image) <image-types>: Fix typo in docstring.
13506
135072007-10-03 Stefan Monnier <monnier@iro.umontreal.ca>
13508
13509 * frame.h (struct frame): Don't try to GC-mark menu_bar_items_used.
13510
135112007-10-02 Stefan Monnier <monnier@iro.umontreal.ca>
13512
13513 * window.h (struct window):
13514 * window.c (struct save_window_data, struct saved_window):
13515 * termhooks.h (struct terminal):
13516 * process.h (struct Lisp_Process):
13517 * frame.h (struct frame):
13518 * buffer.h (struct buffer):
13519 * lisp.h (struct Lisp_Vector, struct Lisp_Char_Table)
13520 (struct Lisp_Bool_Vector, struct Lisp_Subr, struct Lisp_Hash_Table):
13521 The size field of (pseudo)vectors is now unsigned.
13522 (ARRAY_MARK_FLAG, PSEUDOVECTOR_FLAG): Simplify accordingly.
13523
13524 * lisp.h (struct Lisp_Hash_Table): Move non-traced elements at the end.
13525 Turn `count' into an integer.
13526
13527 * fns.c (make_hash_table, hash_put, hash_remove, hash_clear)
13528 (sweep_weak_table, sweep_weak_hash_tables, Fhash_table_count):
13529 * print.c (print_object) <HASH_TABLE_P>: `count' is an int.
13530 * alloc.c (allocate_hash_table): Use ALLOCATE_PSEUDOVECTOR.
13531 (mark_object) <HASH_TABLE_P>: Use mark_vectorlike.
13532
13533 * alloc.c (allocate_pseudovector): New fun.
13534 (ALLOCATE_PSEUDOVECTOR): New macro.
13535 (allocate_window, allocate_terminal, allocate_frame)
13536 (allocate_process): Use it.
13537 (mark_vectorlike): New function.
13538 (mark_object) <FRAMEP, WINDOWP, BOOL_VECTOR_P, VECTORP>: Use it.
13539 (mark_terminals): Use it.
13540 (Fmake_bool_vector, Fmake_char_table, make_sub_char_table)
13541 (Fmake_byte_code): Use XSETPVECTYPE.
13542
13543 * frame.c (Fframe_parameters): Minor simplification.
13544
13545 * insdel.c (adjust_markers_for_insert): Generalize assertion checks.
13546
13547 * marker.c (Fmarker_buffer): Make test for odd case into a failure.
13548
13549 * buffer.c (Fget_buffer_create, init_buffer_once):
13550 * lread.c (defsubr):
13551 * window.c (Fcurrent_window_configuration): Use XSETPVECTYPE.
13552
13553 * lisp.h (ARRAY_MARK_FLAG, PSEUDOVECTOR_FLAG): Don't let them be
13554 defined differently in the m/*.h files.
13555 (XCHAR_TABLE, XBOOL_VECTOR): Add assertion checking.
13556 (XSETPVECTYPE): New macro.
13557 (XSETPSEUDOVECTOR): Use it.
13558
13559 * buffer.c (syms_of_buffer) <local-abbrev-table>: Move from abbrev.c.
13560 (DEFVAR_PER_BUFFER, defvar_per_buffer): Move from lisp.h and lread.c.
13561
13562 * lisp.h (defvar_per_buffer, DEFVAR_PER_BUFFER):
13563 * lread.c (defvar_per_buffer):
13564 * abbrev.c (syms_of_abbrev) <local-abbrev-tabl>: Move to buffer.c.
13565
13566 * window.c (candidate_window_p): Only consider as visible frames that
13567 are on the same terminal.
13568
13569 * m/ibms390x.h (MARKBIT): Remove unused macro.
13570
135712007-10-01 Juanma Barranquero <lekktu@gmail.com>
13572
13573 * lread.c (Fload): Fix typo in docstring.
13574
135752007-10-01 Michaël Cadilhac <michael@cadilhac.name>
13576
13577 * floatfns.c (Fexpt): Manually check for overflows, so that a power
13578 of a non-zero value can't yield zero.
13579
135802007-09-29 Stefan Monnier <monnier@iro.umontreal.ca>
13581
13582 * term.c (term_clear_mouse_face, term_mouse_highlight)
13583 (tty_write_glyphs_with_face): Only define is HAVE_GPM.
13584
13585 * print.c (safe_debug_print): Use XHASH.
13586
13587 * lisp.h (DECL_ALIGN, USE_LSB_TAG): Move logic to before definition of
13588 Lisp elements such as tags.
13589 (XHASH): New macro.
13590 (EQ): Use it.
13591 (SREF, SSET, STRING_COPYIN): Use SDATA.
13592 (VOID_TO_LISP, CVOID_TO_LISP, LISP_TO_VOID, LISP_TO_CVOID): Remove.
13593
13594 * alloc.c (mark_terminal): Remove left-over declaration.
13595 (enum mem_type): Replace all vector subtypes -> MEM_TYPE_VECTORLIKE.
13596 (allocate_vectorlike): Remove type argument. Adjust callers.
13597 (live_vector_p, mark_maybe_pointer, valid_lisp_object_p):
13598 Only handle the one remaining MEM_TYPE_VECTORLIKE.
13599
13600 * alloc.c (MALLOC_BLOCK_INPUT, MALLOC_UNBLOCK_INPUT): New macros
13601 to avoid unnecessary BLOCK_INPUTs when SYNC_INPUT is used.
13602 (xmalloc, xrealloc, xfree, lisp_malloc, lisp_free, lisp_align_malloc)
13603 (lisp_align_free, make_interval, allocate_string, allocate_string_data)
13604 (make_float, Fcons, allocate_vectorlike, Fmake_symbol, allocate_misc):
13605 Use them.
13606
13607 * xfaces.c (load_face_font, free_realized_face, clear_face_gcs):
13608 Don't let signal handlers run when a GC is freed but not yet NULL'ed.
13609 (x_free_gc): Remove BLOCK_INPUT since it's now redundant.
13610
136112007-09-28 Dan Nicolaescu <dann@ics.uci.edu>
13612
13613 * Makefile.in (lisp, shortlisp): Delete server.elc, it is not
13614 loaded by default.
13615
136162007-09-28 Stefan Monnier <monnier@iro.umontreal.ca>
13617
13618 * term.c (Fgpm_mouse_start): Don't signal an error if already activated
13619 on this tty.
13620 (Fgpm_mouse_stop): Only deactivate if it was activated on this tty.
13621
13622 * term.c (mouse_face_window): Rename from Qmouse_face_window.
13623 Update all users.
13624 (handle_one_term_event): Use Gpm_DrawPointer.
13625 (Fgpm_mouse_start): Rename from Fterm_open_connection.
13626 Signal errors instead of returning nil. Always return nil.
13627 (Fgpm_mouse_stop): Rename from Fterm_close_connection.
13628 Make it a noop if gpm-mouse was not activated.
13629 (syms_of_term): Update names.
13630
136312007-09-27 Stefan Monnier <monnier@iro.umontreal.ca>
13632
13633 * sysdep.c (narrow_foreground_group, widen_foreground_group): Static.
13634 (init_sys_modes): Check that gpm_tty is the current tty.
13635
13636 * alloc.c (allocate_terminal): Set the vector size to only count the
13637 lisp fields. Initialize those to nil.
13638 (mark_object): Don't treat terminals specially.
13639 (mark_terminal): Remove.
13640 (mark_terminals): Use mark_object instead.
13641
13642 * termhooks.h (struct terminal): Move all Lisp_Object fields traced by
13643 the GC to the beginning.
13644
13645 * indent.h:
13646 * indent.c: Use EMACS_INT for ints coming from Elisp data.
13647
13648 * indent.c (Fmove_to_column): Use EMACS_INT for buffer positions.
13649
136502007-09-25 Jason Rumney <jasonr@gnu.org>
13651
13652 * frame.c (make_terminal_frame): Remove special case for WINDOWSNT.
13653
13654 * w32console.c (create_w32cons_output): Remove.
13655
13656 * term.c (init_tty): Call init_sys_modes on WINDOWSNT also.
13657
13658 * sysdep.c (init_sys_modes): Use set_terminal_modes_hook.
13659 (reset_sys_modes): Use reset_terminal_modes_hook.
13660
136612007-09-24 Stefan Monnier <monnier@iro.umontreal.ca>
13662
13663 * eval.c (do_autoload): Don't output any message.
13664
136652007-09-24 Juri Linkov <juri@jurta.org>
13666
13667 * emacs.c (standard_args): Change priority of "--no-splash"
13668 from 40 to 3. Add "--no-desktop" with the same priority.
13669
136702007-09-23 Dmitry Antipov <dmantipov@yandex.ru>
13671
13672 * alloc.c (gc_sweep): Check cons cell mark bits word by word
13673 and optimize the case where they are all 1.
13674
136752007-09-23 Johannes Weiner <hannes@saeurebad.de>
13676
13677 * lisp.h (abs): Define if not defined.
13678 * keyboard.c, sound.c, w32term.c, xfaces.c, xterm.c:
13679 Don't define `abs', since it's defined in lisp.h.
13680
136812007-09-22 Eli Zaretskii <eliz@gnu.org>
13682
13683 * term.c (DEV_TTY): New macro. Provide a definition for MS-Windows.
13684 (FRAME_TERMCAP_P) [WINDOWSNT]: Don't define to zero.
13685 (Fcontrolling_tty_p, Fresume_tty, dissociate_if_controlling_tty)
13686 (init_tty): Use DEV_TTY instead of "/dev/tty".
13687 [WINDOWSNT]: No need to protect from NAME arg being null.
13688
136892007-09-21 Dan Nicolaescu <dann@ics.uci.edu>
13690
13691 * term.c (Fsuspend_tty): Run suspend-tty-functions before cleaning
13692 up the tty state.
13693
136942007-09-21 Stefan Monnier <monnier@iro.umontreal.ca>
13695
13696 * termhooks.h (term_gpm): Delete. Use gpm_tty's NULLness instead.
13697 (gpm_tty): Change its type.
13698 * term.c (term_gpm): Delete. Use gpm_tty's NULLness instead.
13699 (gpm_tty): Change its type and initialize it.
13700 (Fterm_open_connection): Check the frame is indeed a tty.
13701 Use the new gpm_tty.
13702 (Fterm_close_connection): Use the new gpm_tty.
13703 * keyboard.c (tty_read_avail_input): Use the new gpm_tty.
13704 * sysdep.c (init_sys_modes): term_gpm -> gpm_tty.
13705
137062007-09-21 Juanma Barranquero <lekktu@gmail.com>
13707
13708 * w32term.c (x_draw_glyph_string): Use strike_through_color, not
13709 underline_color, to draw strike-through.
13710
137112007-09-21 Stefan Monnier <monnier@iro.umontreal.ca>
13712
13713 * lisp.h (allocate_terminal): Declare.
13714
13715 * window.c (candidate_window_p): Consider frames that are being placed
13716 by the user as somewhere between visible and iconified.
13717 (window_loop): Prefer windows on the current frame.
13718 (Fselect_window): Move the use of select-frame to the beginning so we
13719 can just delegate all the work (it'll call us back anyway).
13720
13721 * frame.c (Qdisplay_environment_variable):
13722 * frame.h (Qdisplay_environment_variable): Delete.
13723
13724 * .gdbinit (xbacktrace): Print the arg's address rather than the value
13725 of the first arg, since that value may be a union.
13726
13727 * callproc.c (child_setup, getenv_internal): Use the frame's `display'
13728 parameter rather than Qdisplay_environment_variable. If all else
13729 fails, look for DISPLAY in initial-environment.
13730
137312007-09-21 Glenn Morris <rgm@gnu.org>
13732
13733 * Makefile.in (emacstool): Remove target.
13734 (lisp, shortlisp): Remove termdev.elc.
13735
137362007-09-21 Markus Triska <markus.triska@gmx.at>
13737
13738 * xterm.c (x_delete_display): Compile session management conditionally.
13739
137402007-09-20 Stefan Monnier <monnier@iro.umontreal.ca>
13741
13742 * callproc.c (getenv_internal_1): New function.
13743 (getenv_internal): Use it.
13744 (Fgetenv_internal): Use it. Accept an env-list as optional arg.
13745
13746 * terminal.c (get_terminal): Don't accept ints to represent terminals.
13747 (Fterminal_name, Fterminal_parameters, Fterminal_parameter)
13748 (Fset_terminal_parameter): Work with dead terminals as well.
13749 (Fmodify_terminal_parameters): Remove.
13750
13751 * terminal.c (get_terminal): Handle terminals.
13752 Make sure the terminal returned is live.
13753 (create_terminal): Use allocate_terminal.
13754 (mark_terminals): Move to alloc.c.
13755 (delete_terminal): Use terminal->name as liveness status.
13756 NULL out fields after freeing their contents.
13757 Don't deallocate the object.
13758 (Fframe_terminal): Use FRAME_TERMINAL. Return the terminal object
13759 rather than an int.
13760 (Fterminal_live_p): Accept non-integer arguments.
13761 (Fterminal_list): Return terminal objects rather than an ints.
13762
13763 * alloc.c (enum mem_type): New member for `terminal' objects.
13764 (allocate_terminal): New function.
13765 (mark_maybe_pointer, valid_lisp_object_p, mark_object):
13766 Handle terminals.
13767 (mark_terminal): New fun.
13768 (mark_terminals): Move from terminal.c.
13769
13770 * term.c (get_tty_terminal): Don't treat output_initial specially.
13771 (Fsuspend_tty, Fresume_tty): Use terminal objects rather than ints.
13772 (delete_tty): Use terminal->name as liveness status.
13773
13774 * termhooks.h (struct terminal): Make it into a pseudovector.
13775 Remove `deleted' replaced by checking `name's nullness.
13776
13777 * print.c (print_object): Handle terminals.
13778
13779 * lisp.h (enum pvec_type): New `terminal' pseudovector.
13780 (XTERMINAL, XSETTERMINAL, TERMINALP, GC_TERMINALP): New macros.
13781
13782 * frame.c (make_terminal_frame):
13783 * keyboard.c (tty_read_avail_input):
13784 * w32term.c (x_delete_terminal):
13785 * xfns.c (Fx_create_frame, x_create_tip_frame):
13786 * xterm.c (x_delete_terminal): Use terminal->name as liveness status.
13787
137882007-09-20 Glenn Morris <rgm@gnu.org>
13789
13790 * process.c (Fmake_network_process): Doc fix.
13791
137922007-09-19 Jason Rumney <jasonr@gnu.org>
13793
13794 * dispextern.h (w32_init_fringe, mac_init_fringe): Declare rif argument.
13795
137962007-09-19 Michaël Cadilhac <michael@cadilhac.name>
13797
13798 * coding.c (detect_eol_type, detect_eol_type_in_2_octet_form):
13799 Fix a C warning regarding variable constness.
13800
13801 * xterm.c (handle_one_xevent): Fix a C warning.
13802
138032007-09-18 Jason Rumney <jasonr@gnu.org>
13804
13805 * w32fns.c (Fx_focus_frame): Rename from Fw32_focus_frame.
13806
138072007-09-17 Jan Djärv <jan.h.d@swipnet.se>
13808
13809 * gtkutil.c (gdpy_def): New variable.
13810 (xg_initialize): Initialize gdpy_def.
13811 (xg_display_close): If no other display exists, set gdpy_def to a
13812 new connection.
13813
138142007-09-16 Jan Djärv <jan.h.d@swipnet.se>
13815
13816 * gtkutil.c (xg_get_image_for_pixmap): Always create a GdkPixbuf
13817 when we have no file name for the icon.
13818 (xg_tool_bar_expose_callback): Remove.
13819 (xg_create_tool_bar): Don't connect expose signal to
13820 xg_tool_bar_expose_callback.
13821 (xg_get_file_with_chooser): Move GCPRO1 after declarations.
13822
138232007-09-16 Andreas Schwab <schwab@suse.de>
13824
13825 * alloc.c (reset_malloc_hooks): Set the hooks to the previous
13826 values instead of zapping them.
13827
138282007-09-14 Glenn Morris <rgm@gnu.org>
13829
13830 * fringe.c (init_fringe_bitmap) <swap_nibble>: Move to file scope.
13831 * gtkutil.c (xg_separator_p) <separator_names>: Move to file scope.
13832 * image.c (our_memory_fill_input_buffer) <buffer>: Move to file
13833 scope and rename to omfib_buffer for clarity.
13834 (gif_load) <interlace_start, interlace_increment>: Move to file scope.
13835
138362007-09-14 Kenichi Handa <handa@m17n.org>
13837
13838 * xterm.c (handle_one_xevent): Skip decoding if nbytes is zero.
13839
138402007-09-13 Jason Rumney <jasonr@gnu.org>
13841
13842 * fringe.c (w32_init_fringe, mac_init_fringe): Add rif argument.
13843
13844 * w32term.c (w32_term_init): Pass rif to w32_init_fringe.
13845
13846 * macterm.c (mac_initialize): Don't call mac_init_fringe here.
13847 (mac_term_init): Call here instead, passing rif.
13848
138492007-09-13 Glenn Morris <rgm@gnu.org>
13850
13851 * s/hpux.h: No longer define `static' as nothing.
13852
138532007-09-13 Johan Bockgård <bojohan@gnu.org>
13854
13855 * callint.c (Fcall_interactively): Remove unused var `fun'.
13856
138572007-09-12 Romain Francoise <romain@orebokech.com>
13858
13859 * window.c (prefer_window_split_horizontally, display_buffer):
13860 Revert 2007-09-08 change.
13861
138622007-09-12 Glenn Morris <rgm@gnu.org>
13863
13864 * alloca.c: Remove file.
13865 * Makefile.in (alloca): Do not undef.
13866 (allocaobj, alloca.o): Remove.
13867 (otherobj): Remove allocaobj.
13868 * keyboard.c (command_loop_1): Remove #ifdef C_ALLOCA block.
13869 * regex.c (C_ALLOCA): Remove all references and code that was only
13870 used when this was defined.
13871 * search.c (boyer_moore): Remove #ifdef C_ALLOCA block.
13872 * xmenu.c (xmenu_show): Remove #ifdef C_ALLOCA block.
13873 * m/ibms390x.h, m/sh3el.h (C_ALLOCA): Remove references to this.
13874
13875 * Makefile.in (SOURCES, unlock, relock): Delete.
13876
13877 * gtkutil.c (cnt): Rename to menu_grab_callback_cnt for clarity.
13878 (menu_grab_callback): All uses changed.
13879
13880 * xselect.c (cnt): Rename to x_reply_selection_request_cnt for clarity.
13881 (x_reply_selection_request): All uses changed.
13882
138832007-09-11 Stefan Monnier <monnier@iro.umontreal.ca>
13884
13885 * lread.c (load_warn_old_style_backquotes): Change message to look
13886 better when it appears in the middle of byte-compiler messages.
13887
138882007-09-10 Dan Nicolaescu <dann@ics.uci.edu>
13889
13890 * s/darwin.h (MULTI_KBOARD): Only define for Carbon.
13891
13892 * xterm.c (x_create_terminal): Add comment.
13893
13894 * term.c (clear_tty_hooks, set_tty_hooks): Add comments.
13895
138962007-09-10 Richard Stallman <rms@gnu.org>
13897
13898 * xterm.c (x_term_init): Give error if can't open DISPLAY_NAME.
13899
139002007-09-10 Michaël Cadilhac <michael@cadilhac.name>
13901
13902 * lisp.h (struct Lisp_Subr): Rename `prompt' field to `intspec'.
13903 (DEFUN): Document `intspec', use it instead of `prompt'.
13904
13905 * eval.c (Fcommandp): Change `->prompt' to `->intspec'.
13906
13907 * data.c (Finteractive_form): If the interactive specification starts
13908 with a `(', use it as a Lisp form.
13909
13910 * fileio.c (Fset_file_modes): Add an interactive spec that reads a file
13911 name and file modes.
13912
13913 * callint.c (Fcall_interactively): Comment fixes.
13914
139152007-09-10 Stefan Monnier <monnier@iro.umontreal.ca>
13916
13917 * callint.c (Fcall_interactively): Use Finteractive_form also for subrs
13918 and compiled functions.
13919
139202007-09-08 Fredrik Axelsson <f.axelsson@gmail.com>
13921
13922 * window.c (prefer_window_split_horizontally): New variable.
13923 (display_buffer): Consider splitting window horizontally depending
13924 on prefer_window_split_horizontally.
13925
139262007-09-08 Eli Zaretskii <eliz@gnu.org>
13927
13928 * sysdep.c [WINDOWSNT]: Don't include sysselect.h.
13929
139302007-09-07 Stefan Monnier <monnier@iro.umontreal.ca>
13931
13932 * s/cygwin.h (GC_MARK_STACK): Enable conservative stack marking.
13933
13934 * frame.c (x_set_frame_parameters): Check number is positive before
13935 using XFASTINT.
13936
13937 * window.c (freeze_window_start): Don't presume selected_window holds
13938 a window object.
13939 (Fdisplay_buffer): Remove `register' since `buffer' needs to be gcpro'd.
13940
139412007-09-07 Angelo Graziosi <Angelo.Graziosi@roma1.infn.it> (tiny change)
13942
13943 * term.c (dissociate_if_controlling_tty): Call setsid on CYGWIN.
13944
139452007-09-07 Stefan Monnier <monnier@iro.umontreal.ca>
13946
13947 * window.c (Vsplit_window_preferred_function): New var.
13948 (Fdisplay_buffer): Use it.
13949 (syms_of_window): Export, and initialize it.
13950
139512007-09-06 Pixel <pixel@mandriva.com> (tiny change)
13952
13953 * image.c (gif_load): Fix bug: Handle nonexistent colormap.
13954
139552007-09-06 Glenn Morris <rgm@gnu.org>
13956
13957 * gtkutil.c (menu_grab_callback) <cnt>:
13958 * xselect.c (x_reply_selection_request) <cnt>: Move static
13959 variable to file scope.
13960
139612007-09-06 Stefan Monnier <monnier@iro.umontreal.ca>
13962
13963 * xdisp.c (redisplay_internal): Make sure Elisp code always sees
13964 consistent values of selected_frame and selected_window.
13965
139662007-09-04 Jason Rumney <jasonr@gnu.org>
13967
13968 * w32console.c (initialize_w32_display): Zero unused hooks.
13969
139702007-09-04 Dan Nicolaescu <dann@ics.uci.edu>
13971
13972 * term.c (Vsuspend_tty_functions, Vresume_tty_functions)
13973 (syms_of_term, Fsuspend_tty, Fresume_tty): Undo previous change.
13974
139752007-09-04 Jason Rumney <jasonr@gnu.org>
13976
13977 * term.c (init_tty) [WINDOWSNT]: Add hooks that are not accessible
13978 in w32console.c. Set up input. Remove XXX comments that have been
13979 confirmed as correct.
13980
13981 * s/ms-w32.h (MULTI_KBOARD): Define.
13982
13983 * w32console.c (one_and_only_w32cons): Remove.
13984 (initialize_w32_display): Take terminal argument.
13985
13986 * term.c (init_tty) [WINDOWSNT]: Pass terminal to
13987 initialize_w32_display.
13988 (init_tty) [MULTI_KBOARD]: Include this code on WINDOWSNT too.
13989
13990 * termhooks.h (enum event_kind) <HORIZ_WHEEL_EVENT>: New event.
13991
13992 * keyboard.c (discard_mouse_events): Discard it.
13993 (make_lispy_event): Translate it to a lisp event.
13994 (lispy_wheel_names): Add wheel-left and right events.
13995 (syms_of_keyboard): Enlarge wheel_syms.
13996
13997 * w32fns.c (w32_wnd_proc) <WM_DROPFILES>: Merge with WM_MOUSEWHEEL.
13998 <WM_MOUSEHWHEEL>: Pass new system message to lisp.
13999
14000 * w32term.h (WM_MOUSEHWHEEL): Define if system headers don't.
14001
14002 * w32term.c (construct_mouse_wheel): Make HORIZ_WHEEL_EVENT
14003 from WM_MOUSEHWHEEL.
14004 (w32_read_socket) <WM_MOUSEHWHEEL>: Treat as WM_MOUSEWHEEL.
14005
14006 * w32fns.c (x_create_tip_frame) [MULTI_KBOARD]: Get keyboard from
14007 terminal.
14008
14009 * w32term.c (w32_create_terminal) [MULTI_KBOARD]: Create a new
14010 keyboard for the terminal.
14011
140122007-09-04 Dan Nicolaescu <dann@ics.uci.edu>
14013
14014 * term.c (Vsuspend_tty_hook): Rename from Vsuspend_tty_functions.
14015 (Vresume_tty_hook): Rename from Vresume_tty_functions.
14016 (syms_of_term): Rename suspend-tty-functions to suspend-tty-hook
14017 and resume-tty-function to resume-tty-hook.
14018 (Fsuspend_tty, Fresume_tty): Use new names.
14019
140202007-09-02 Jan Djärv <jan.h.d@swipnet.se>
14021
14022 * gtkutil.c (update_frame_tool_bar): Handle stock name as a named icon
14023 if it starts with "n:".
14024
140252007-08-31 Jan Djärv <jan.h.d@swipnet.se>
14026
14027 * gtkutil.c (update_frame_tool_bar): Initialize wbutton to NULL.
14028
140292007-08-31 Stefan Monnier <monnier@iro.umontreal.ca>
14030
14031 * frame.h:
14032 * frame.c (Qterm_environment_variable): Remove.
14033 (syms_of_frame): Don't init and staticpro it.
14034
14035 * callproc.c (getenv_internal): Remove special case for $TERM.
14036
14037 * callproc.c (Vinitial_environment): New variable.
14038 (set_initial_environment): Initialize it.
14039 (syms_of_callproc): Declare it.
14040 (child_setup): Don't mess with TERM via Qterm_environment_variable; the
14041 TERM under which a process runs is never related to the TERM in which
14042 Emacs is running.
14043
140442007-08-29 Dan Nicolaescu <dann@ics.uci.edu>
14045
14046 * config.in (HAVE_WINDOW_SYSTEM): Don't undef MULTI_KBOARD here...
14047 * s/darwin.h: ... do it here.
14048
140492007-08-29 Stefan Monnier <monnier@iro.umontreal.ca>
14050
14051 * lisp.h (set_initial_environment): Rename from set_global_environment.
14052
14053 * Makefile.in (${etc}DOC): Re-add a ${EXEEXT} which seems to have been
14054 removed by mistake on the multi-tty branch.
14055
14056 * frame.c (make_terminal_frame): Yet Another Int/Lisp_Object Mixup.
14057 (Fmodify_frame_parameters): Return a value.
14058
14059 * image.c (png_load): Comment-out var only used in commented-out code.
14060
14061 * term.c (mark_ttys): Don't bother checking top_frame (incorrectly)
14062 before passing it to mark_object.
14063
14064 * xfaces.c (internal_resolve_face_name): Return a value.
14065 (internal_resolve_face_name, resolve_face_name_error): Comment out.
14066
14067 * xfns.c (check_x_display_info): Yet Another Int/Lisp_Object Mixup.
14068 (x_icon): Comment-out var only used in commented-out code.
14069
140702007-08-29 Romain Francoise <romain@orebokech.com>
14071
14072 * keyboard.c (Fset_input_mode): Don't call `Fset_quit_char' if
14073 QUIT hasn't been provided.
14074
140752007-08-29 Dan Nicolaescu <dann@ics.uci.edu>
14076
14077 * callproc.c (child_setup, getenv_internal): Use the
14078 display-environment-variable and term-environment-variable frame params.
14079 (set_initial_environment): Initialise Vprocess_environment.
14080
14081 * config.in: Disable multi-keyboard support on a mac.
14082
14083 * frame.c (Qterm_environment_variable)
14084 (Qdisplay_environment_variable): New variables.
14085 (syms_of_frame): Intern and staticpro them.
14086 (Fmake_terminal_frame): Disable output method test.
14087
14088 * frame.h: Declare them here.
14089
14090 * macfns.c (x_set_mouse_color): Get rif from the frame.
14091 (x_set_tool_bar_lines): Don't use updating_frame.
14092 (mac_window): Add 2 new parameters for consistency with other systems.
14093 (Fx_create_frame): Fix doc string. Rename the parameter. Set the
14094 frame parameters following what is done in X11 and w32. Don't use
14095 FRAME_MAC_DISPLAY_INFO.
14096 (Fx_open_connection, start_hourglass): Remove window-system check.
14097 (x_create_tip_frame): Get the keyboard from the terminal.
14098
14099 * macmenu.c: Reorder includes.
14100 (Fx_popup_menu): Use terminal specific mouse_position_hook.
14101
14102 * macterm.c (XTset_terminal_modes, XTreset_terminal_modes): Add a
14103 terminal parameter.
14104 (x_clear_frame): Add a frame parameter.
14105 (note_mouse_movement): Get rif from the frame.
14106 (mac_term_init): Initialize the terminal.
14107 (mac_initialize): Make static and move terminal initialization ...
14108 (mac_create_terminal): ... to this new function.
14109
14110 * macterm.h (struct mac_display_info): Add terminal.
14111 (mac_initialize): Delete declaration.
14112
14113 * puresize.h (BASE_PURESIZE): Increase base value to 1164000.
14114
14115 * sysdep.c: Comment out text after #endif.
14116
14117 * term.c (init_tty): Only use terminal->kboard when MULTI_KBOARD
14118 is defined. Better initialize ttys in windows. Use terminal
14119 specific mouse_position_hook.
14120
14121 * termhooks.h (union display_info): Add mac_display_info.
14122
14123 * w32fns.c (Fx_create_frame): Use kboard from the terminal.
14124 Set the default minibuffer frame, window_system and the rest of the
14125 frame parameters following what is done in X11.
14126
14127 * w32term.c (w32_initialize): Make static.
14128
14129 * xselect.c (x_handle_selection_clear): Only access
14130 terminal->kboard when MULTI_KBOARD is defined.
14131
14132 * s/darwin.h (SYSTEM_PURESIZE_EXTRA): Define here.
14133 (SYSTEM_PURESIZE_EXTRA): Only define on Carbon.
14134
141352007-08-29 Jason Rumney <jasonr@gnu.org>
14136
14137 * frame.c (Fdelete_frame): Only get kboard when MULTI_KBOARD defined.
14138 (make_terminal_frame) [WINDOWSNT]: Initialize terminal.
14139
14140 * fringe.c (w32_init_fringe w32_reset_fringes) [HAVE_NTGUI]:
14141 (mac_init_fringe) [MAC_OS]: Get rif from selected_frame.
14142
14143 * keyboard.c (restore_kboard_configuration): Only define when
14144 MULTI_KBOARD defined.
14145
14146 * makefile.w32-in: Update dependancies from Makefile.in.
14147 (OBJ1): Add terminal.$(O)
14148
14149 * term.c (dissociate_if_controlling_tty) [WINDOWSNT]:
14150 Don't define function body.
14151 (init_tty) [WINDOWSNT]: Use selected_frame for initializing.
14152
14153 * termhooks.h (display_info) [WINDOWSNT]: Add w32.
14154
14155 * w32.c (request_sigio, unrequest_sigio): Remove.
14156
14157 * w32console.c (w32con_move_cursor, w32con_clear_to_end)
14158 (w32con_clear_frame, w32con_clear_end_of_line)
14159 (w32con_ins_del_lines, w32con_insert_glyphs, w32con_write_glyphs)
14160 (w32con_delete_glyphs, w32con_set_terminal_window)
14161 (scroll_line, w32_sys_ring_bell): Add frame arg.
14162 (w32con_set_terminal_modes, w32con_reset_terminal_modes):
14163 Add terminal arg.
14164 (PICK_FRAME): Remove.
14165 (w32con_write_glyphs): Use frame specific terminal coding.
14166 (one_and_only_w32cons): New global variable.
14167 (initialize_w32_display): Use it for storing hooks.
14168 (create_w32cons_output): New function.
14169
14170 * w32inevt.c, w32inevt.h (w32_console_read_socket): Make first
14171 arg a frame.
14172
14173 * w32fns.c (x_create_tip_frame): Set terminal and ref count.
14174 Set window_system.
14175 (x_set_tool_bar_lines): Don't use updating_frame.
14176 (Fx_create_frame): Set terminal and ref count.
14177 (Fx_open_connection): Remove window-system check.
14178
14179 * w32menu.c (Fx_popup_menu): Use terminal specific mouse_position_hook.
14180
14181 * w32term.c (w32_term_init): Call add_keyboard_wait_descriptor.
14182 (w32_set_terminal_modes, w32_reset_terminal_modes): Add terminal arg.
14183 (x_clear_frame, x_delete_glyphs, w32_ring_bell, x_ins_del_lines):
14184 Add frame arg.
14185 (x_delete_terminal, w32_create_terminal): New functions.
14186 (w32_term_init): Create a terminal.
14187 (w32_initialize): Move terminal specific initialization to
14188 w32_create_terminal.
14189
14190 * w32term.h (x_output): Remove foreground_pixel and background_pixel.
14191 (w32_clear_rect, w32_clear_area): Use background from frame.
14192 (w32_display_info): Add terminal.
14193 (w32_sys_ring_bell, x_delete_display): Declare here.
14194
14195 * xdisp.c (display_menu_bar) [HAVE_NTGUI]: Check frame type.
14196
14197 * s/ms-w32.h (SYSTEM_PURESIZE_EXTRA): Bump to 50k.
14198
141992007-08-29 Kalle Olavi Niemitalo <kon@iki.fi> (tiny change)
14200
14201 * keyboard.c (interrupt_signal, handle_interrupt, Fset_quit_char):
14202 Fix get_named_tty calls for the controlling tty.
14203
142042007-08-29 ARISAWA Akihiro <ari@mbf.ocn.ne.jp> (tiny change)
14205
14206 * term.c (dissociate_if_controlling_tty)[USG]: Fix parse error.
14207
142082007-08-29 Yoshiaki Kasahara <kasahara@nc.kyushu-u.ac.jp> (tiny change)
14209
14210 * term.c (tty_insert_glyphs): Add missing first parameter.
14211
142122007-08-29 Károly Lőrentey <karoly@lorentey.hu>
14213
14214 * buffer.c (Fbuffer_list, Fbury_buffer):
14215 Take frame->buried_buffer_list into account.
14216
14217 * cm.c (current_tty): New variable, for cmputc().
14218 (cmputc): Use it.
14219 (cmcheckmagic): Add tty parameter, look up terminal streams there.
14220 (calccost): Add tty parameter. Use emacs_tputs() instead of tputs().
14221 (cmgoto): Add tty parameter. Pass it on to calccost().
14222 Use emacs_tputs() instead of tputs().
14223
14224 * cm.h (emacs_tputs): New macro to set current_tty, and then call
14225 tputs().
14226 (current_tty): New variable, for cmputc().
14227 (cmcheckmagic, cmputc, cmgoto): Add prototypes.
14228
14229 * eval.c (unwind_to_catch): Don't call x_fully_uncatch_errors.
14230 (internal_condition_case, internal_condition_case_1)
14231 (internal_condition_case_2): Don't abort when x_catching_errors.
14232
14233 * fns.c (Fyes_or_no_p): Don't try to open an X dialog on tty terminals.
14234 (Fy_or_n_p): Likewise. Use temporarily_switch_to_single_kboard to
14235 prevent crashes caused by bogus longjmps in read_char.
14236
14237 * keymap.h (Fset_keymap_parent): Add EXFUN.
14238
14239 * macterm.h (FRAME_FOREGROUND_PIXEL, FRAME_BACKGROUND_PIXEL)
14240 * w32term.h (FRAME_FOREGROUND_PIXEL, FRAME_BACKGROUND_PIXEL):
14241 Remove redundant definition.
14242
14243 * macfns.c (x_set_mouse_color, x_make_gc):
14244 Use FRAME_BACKGROUND_PIXEL and FRAME_FOREGROUND_PIXEL.
14245
14246 * w32term.c (x_free_frame_resources):
14247 Use FRAME_BACKGROUND_PIXEL and FRAME_FOREGROUND_PIXEL.
14248 (w32_initialize): Use the accessor macros for terminal characteristics.
14249
14250 * macterm.c (mac_initialize): Use Fset_input_interrupt_mode.
14251 Use the accessor macros for terminal characteristics.
14252 * msdos.c (internal_terminal_init): Use the accessor macros for
14253 terminal characteristics.
14254 (ScreenVisualBell, internal_terminal_init):
14255 Use FRAME_BACKGROUND_PIXEL and FRAME_FOREGROUND_PIXEL.
14256
14257 * termopts.h (no_redraw_on_reenter): Declare.
14258
14259 * alloc.c (emacs_blocked_malloc): Disable mallopt call.
14260 (mark_terminals, mark_ttys): Declare.
14261 (Fgarbage_collect): Call them.
14262 (mark_object): Mark buried_buffer_list.
14263
14264 * prefix-args.c: Include stdlib.h for exit.
14265
14266 * syssignal.h: Add comment.
14267
14268 * indent.c: Include stdio.h.
14269
14270 * window.h (Vinitial_window_system): Declare.
14271 (Vwindow_system): Delete declaration.
14272
14273 * fontset.c (Finternal_char_font): Use FRAME_RIF.
14274
14275 * image.c (lookup_image): Don't initialize `c' until the xasserts
14276 have been run.
14277
14278 * gtkutil.c (xg_create_frame_widgets): Use FRAME_BACKGROUND_PIXEL and
14279 FRAME_FOREGROUND_PIXEL.
14280
14281 * print.c (print_preprocess): Don't lose print_depth levels while
14282 iterating.
14283
14284 * widget.c (update_from_various_frame_slots):
14285 Use FRAME_BACKGROUND_PIXEL and FRAME_FOREGROUND_PIXEL.
14286
14287 * window.c (set_window_buffer): Don't call clear_mouse_face on tty
14288 frames.
14289 (window_internal_height): Remove bogus make_number call.
14290 (init_window_once): Call make_terminal_frame with two zero parameters.
14291
14292 * fileio.c (Fread_file_name): Update comment.
14293
14294 * callint.c (Fcall_interactively):
14295 Use temporarily_switch_to_single_kboard instead of single_kboard_state.
14296 Make sure it is correctly unwound.
14297
14298 * xsmfns.c (x_session_close): New function.
14299
14300 * coding.h (terminal_coding, safe_terminal_coding, keyboard_coding):
14301 Delete declarations.
14302
14303 * xterm.h: Remove declaration for x_fully_uncatch_errors.
14304 (x_output): Remove background_pixel and foreground_pixel fields.
14305 (x_display_info): Add new field TERMINAL. Remove KBOARD field.
14306 (x_delete_device, x_session_close): Declare.
14307
14308 * lread.c: Include setjmp.h. Update declaration of `read_char'.
14309 (read_filtered_event): Call `read_char' with a local
14310 `wrong_kboard_jmpbuf'.
14311
14312 * minibuf.c (read_minibuf): Call temporarily_switch_to_single_kboard.
14313 Don't call single_kboard_state. Use FRAME_RIF.
14314
14315 * process.c (Fmake_network_process): Don't unrequest_sigio on modern
14316 systems.
14317
14318 * lisp.h (set_process_environment): Rename to `set_global_environment'.
14319 (Fframe_with_environment, Fset_input_meta_mode)
14320 (Fset_quit_char): EXFUN.
14321 (x_create_device, tty_output, terminal, tty_display_info): Declare.
14322 (init_sys_modes, reset_sys_modes): Update prototypes.
14323 (init_all_sys_modes, reset_all_sys_modes): New prototypes.
14324
14325 * keyboard.h (struct kboard): Add new fields Vlocal_function_key_map,
14326 Vlocal_key_translation_map, and Vkeyboard_translate_table.
14327 (Vfunction_key_map, Vkeyboard_translate_table, single_kboard_state):
14328 Delete declarations.
14329 (Vfunction_key_map, Vkey_translation_map, push_kboard, pop_kboard)
14330 (temporarily_switch_to_single_kboard, tty_read_avail_input):
14331 New declarations.
14332
14333 * emacs.c (main): Don't call init_sys_modes(), the new term_init()
14334 already does that during init_display(). Call syms_of_keymap
14335 before syms_of_keyboard. Call `syms_of_terminal'.
14336 Call set_initial_environment, not set_process_environment.
14337 (shut_down_emacs): Call reset_all_sys_modes() instead of
14338 reset_sys_modes().
14339
14340 * xfaces.c (x_free_gc): Protect xassert with GLYPH_DEBUG.
14341 (internal_resolve_face_name, resolve_face_name_error): New functions.
14342 (resolve_face_name): Protect against loops and errors thrown by Fget.
14343 (realize_default_face): Don't use FRAME_FONT unless frame is an X frame.
14344 (Ftty_supports_face_attributes_p): Update tty_capable_p call.
14345
14346 * scroll.c: Replace CURTTY() with local variables throughout the
14347 file (where applicable).
14348 (calculate_scrolling, calculate_direct_scrolling)
14349 (scrolling_1, scroll_cost): Use the accessor macros for terminal
14350 characteristics.
14351
14352 * keymap.c (Vfunction_key_map): Remove.
14353 (Fdescribe_buffer_bindings): Update references to Vfunction_key_map.
14354 (syms_of_keymap): Remove DEFVAR for Vfunction_key_map.
14355 (Vkey_translation_map): Remove.
14356 (syms_of_keymap): Remove DEFVAR for key-translation-map.
14357 (Fdescribe_buffer_bindings)
14358 (read_key_sequence, init_kboard, syms_of_keyboard, mark_kboards):
14359 Update for terminal-local key-translation-map.
14360
14361 * Makefile.in (callproc.o): Update dependencies.
14362 (lisp, shortlisp): Add termdev.elc.
14363 (obj): Add terminal.o.
14364 (terminal.o): Add dependencies.
14365 [HAVE_CARBON]: Make terminal.o depend on macgui.h.
14366 (data.o, fns.o): Add termhooks.h dependency.
14367 (SOME_MACHINE_LISP): Add dnd.elc.
14368 (minibuf.o): Fix typo.
14369 Update dependencies.
14370
14371 * data.c (do_symval_forwarding, store_symval_forwarding)
14372 (find_symbol_value): Use the selected frame's keyboard, not
14373 current_kboard.
14374
14375 * .gdbinit (init_sys_modes): Use Vinitial_window_system instead of
14376 Vwindow_system.
14377
14378 * xmenu.c (Fx_menu_bar_open) [USE_X_TOOLKIT, USE_GTK]: Rename from
14379 Fmenu_bar_open.
14380 (syms_of_xmenu): Update defsubr.
14381 (mouse_position_for_popup, Fx_popup_menu)
14382 (Fx_popup_dialog, x_activate_menubar, update_frame_menubar)
14383 (set_frame_menubar, free_frame_menubar)
14384 (create_and_show_popup_menu, xmenu_show, )
14385 (create_and_show_dialog, xdialog_show, xmenu_show): Abort if not
14386 an X frame.
14387
14388 * xselect.c (x_own_selection): Abort if not an X frame.
14389 (some_frame_on_display): Check if it is an X frame.
14390 (x_handle_selection_clear): Deal with MULTI_KBOARD.
14391
14392 * coding.c: Include frame.h and termhooks.h.
14393 (terminal_coding, keyboard_coding): Delete.
14394 (Fset_terminal_coding_system_internal)
14395 (Fset_keyboard_coding_system_internal)
14396 (Fkeyboard_coding_system)
14397 (Fterminal_coding_system): Add a terminal parameter.
14398 Get terminal_coding from the terminal.
14399 (init_coding_once): Don't call setup_coding_system here.
14400
14401 * dispextern.h (set_scroll_region, turn_off_insert)
14402 (turn_off_highlight, background_highlight, clear_end_of_line_raw)
14403 (tty_clear_end_of_line, tty_setup_colors)
14404 (delete_tty, updating_frame)
14405 (produce_special_glyphs, produce_glyphs, write_glyphs)
14406 (insert_glyphs): Remove.
14407 (raw_cursor_to, clear_to_end, tty_turn_off_insert)
14408 (tty_turn_off_highlight, get_tty_size): Add declaration.
14409 (tabs_safe_p, init_baud_rate, get_tty_terminal): Update prototypes.
14410
14411 * frame.h (enum output_method): Add output_initial.
14412 (struct x_output): Delete.
14413 (FRAME_FOREGROUND_PIXEL, FRAME_BACKGROUND_PIXEL):
14414 Access foreground_pixel and background_pixel directly from the frame.
14415 (tty_display): Delete.
14416 (struct frame): Add buried_buffer_list, foreground_pixel,
14417 background_pixel and terminal. Delete kboard.
14418 (union output_data): Add tty.
14419 (FRAME_KBOARD): Get the kboard from the terminal.
14420 (FRAME_INITIAL_P): New macro.
14421 (Qtty, Qtty_type, Qterminal, Qterminal_live_p, Qenvironment)
14422 (Qterm_environment_variable, Qdisplay_environment_variable)
14423 (make_terminal_frame, Qburied_buffer_list, Qwindow_system):
14424 New declarations.
14425
14426 * termchar.h (tty_output, tty_display_info): New structures.
14427 (tty_list): Declare.
14428 (FRAME_TTY, CURTTY): New macros.
14429 (must_write_spaces, min_padding_speed, fast_clear_end_of_line)
14430 (line_ins_del_ok, char_ins_del_ok, scroll_region_ok)
14431 (scroll_region_cost, memory_below_frame, fast_clear_end_of_line)
14432 (dont_calculate_costs, no_redraw_on_reenter): Remove declarations.
14433
14434 * callproc.c: Include frame.h and termhooks.h, for terminal
14435 parameters.
14436 (add_env): New function.
14437 (child_setup): Use it.
14438 (child_setup, getenv_internal): Handle the new Vprocess_environment.
14439 (getenv_internal): Fix get_terminal_param call.
14440 (Fgetenv_internal, egetenv): Update doc.
14441 (syms_of_callproc): Initialize Vprocess_environment to nil.
14442 Register and initialize them. Remove obsolete defvars. Update doc
14443 strings.
14444 (child_setup): Handle Vlocal_environment_variables.
14445 (getenv_internal): Add terminal parameter.
14446 Handle Vlocal_environment_variables.
14447 (Fgetenv_internal): Add terminal parameter.
14448 (child_setup, getenv_internal, Fgetenv_internal): Store the local
14449 environment in a frame (not terminal) parameter. Update doc strings.
14450 (set_initial_environment): Rename from set_global_environment.
14451 Store Emacs environment in initial frame parameter.
14452
14453 * xdisp.c (redisplay_internal): Update references to
14454 `previous_terminal_frame'.
14455 (display_mode_line, Fformat_mode_line): Replace calls to
14456 `push_frame_kboard' with `push_kboard'.
14457 (get_glyph_string_clip_rects): Add extra parentheses and
14458 braces to prevent compiler warnings.
14459 (calc_pixel_width_or_height): Add xassert to check that the
14460 frame is alive. Don't call `lookup_image' on a termcap frame.
14461 (message2_nolog, message3_nolog, redisplay_internal)
14462 (set_vertical_scroll_bar, redisplay_window, check_x_display_info)
14463 (x_set_scroll_bar_foreground, x_set_scroll_bar_background)
14464 (Fx_create_frame, Fxw_display_color_p, Fx_display_grayscale_p)
14465 (Fx_display_pixel_width, Fx_display_pixel_height)
14466 (Fx_display_planes, Fx_display_color_cells)
14467 (Fx_server_max_request_size, Fx_server_vendor, Fx_server_version)
14468 (Fx_display_screens, Fx_display_mm_height, Fx_display_mm_width)
14469 (Fx_display_backing_store, Fx_display_visual_class)
14470 (Fx_display_save_under, Fx_close_connection, x_create_tip_frame):
14471 Use FRAME_TERMINAL_P, FRAME_WINDOW_P, FRAME_TTY and FRAME_RIF.
14472
14473 * xfns.c (x_set_foreground_color x_set_background_color)
14474 (x_set_mouse_color, x_set_cursor_color, x_make_gc):
14475 Use FRAME_BACKGROUND_PIXEL and FRAME_FOREGROUND_PIXEL.
14476 (Fx_create_frame, x_create_tip_frame, build_string, x_window)
14477 (Fx_create_frame, x_create_tip_frame): Don't create frames on a
14478 terminal that is being deleted.
14479 (Fx_create_frame): Use `store_frame_param' to set `window-system'
14480 frame parameter, and make sure it overrides any user-supplied setting.
14481 (Fx_close_connection, Fx_synchronize): Unify argument names with
14482 the rest of the DEFUNs.
14483
14484 * dispnew.c (Fsend_string_to_terminal): Update call to
14485 `get_tty_terminal'.
14486 (Fredraw_frame, Fsend_string_to_terminal)
14487 (Fsend_string_to_terminal, init_display): Use FRAME_RIF,
14488 FRAME_TERMCAP_P and FRAME_TTY.
14489 (window_change_signal): Don't believe width/height values that are
14490 impossibly small.
14491 (Vinitial_window_system): Rename from Vwindow_system.
14492 (termscript, Wcm, rif): Delete.
14493
14494 * termhooks.h (struct terminal): New struct containing the
14495 previously global text display hooks and new members NAME,
14496 DELETED and PARAM_ALIST.
14497 (FRAME_TERMINAL, TERMINAL_TERMINAL_CODING)
14498 (TERMINAL_KEYBOARD_CODING, TERMINAL_ACTIVE_P, FRAME_WINDOW_P)
14499 (FRAME_RIF): New macros.
14500 (get_terminal_param, get_device): New declarations.
14501 (termscript): Delete declaration.
14502
14503 * xterm.c (x_initialize): Use Fset_input_interrupt_mode.
14504 (XTflash, x_free_frame_resources, x_scroll_bar_create)
14505 (x_scroll_bar_set_handle): Use FRAME_BACKGROUND_PIXEL and
14506 FRAME_FOREGROUND_PIXEL.
14507 (x_fully_uncatch_errors): Disable definition.
14508 (x_scroll_bar_expose): Fix reference to foreground pixel.
14509 (XTread_socket): Disable loop on all X displays.
14510 (x_delete_terminal): Don't set terminal->deleted and let
14511 delete_terminal delete the frames on the terminal.
14512 (x_delete_display): Doc update to reflect changes in
14513 delete_terminal.
14514 (x_display_info) <terminal>: Move member earlier in the struct.
14515 (deleting_tty): Remove old variable.
14516 (Fsuspend_tty): Call clear_tty_hooks.
14517 (Fresume_tty, init_tty): Call set_tty_hooks.
14518 (Ftty_display_color_p, Ftty_display_color_cells): Don't throw
14519 errors on X frames.
14520 (x_catch_errors_unwind): Abort if x_error_message is NULL.
14521 (handle_one_xevent): Initialize `f' to NULL.
14522 (x_delete_terminal, x_create_terminal): New functions.
14523 (XTset_terminal_modes, XTreset_terminal_modes)
14524 (XTread_socket, x_connection_closed, x_term_init)
14525 (x_term_init, x_delete_display): Add terminal parameter.
14526 (x_term_init) [!HAVE_GTK_MULTIDISPLAY]: Refuse to create secondary
14527 X connections.
14528
14529 * frame.c: Include termchar.h.
14530 (Qterminal, Qterminal_live_p, Qburied_buffer_list, Qtty, Qtty_type)
14531 (Qwindow_system, Qenvironment, Qterm_environment_variable)
14532 (Qdisplay_environment_variable): New vars.
14533 (Fframep): Deal with output_initial.
14534 (Fframe-live-p): Doc fix.
14535 (Fwindow-system): New function.
14536 (x_set_screen_gamma, store_frame_param): Fix compilation errors.
14537 (make_terminal_frame): Don't create frames on a terminal that is
14538 being deleted. Use FRAME_BACKGROUND_PIXEL and FRAME_FOREGROUND_PIXEL.
14539 (store_frame_param): Check for found_for_frame before calling XFRAME.
14540 (Fmake_terminal_frame): Handle NULL tty names correctly.
14541 (syms_of_frame): Enhance doc string of `default-frame-alist'.
14542 (Fdelete_frame): Remove unused variable `count'. Don't allow other
14543 frames to refer to a deleted frame in their 'environment parameter.
14544 (Fframe_with_environment): New function.
14545 (syms_of_frame): Defsubr it. Initialize and staticpro Qenvironment.
14546 (get_future_frame_param): New function.
14547 (Fmake_terminal_frame): Use it.
14548 (x_set_frame_parameters, x_set_screen_gamma): Use FRAME_RIF.
14549
14550 * sysdep.c (init_sys_modes, reset_sys_modes): Update for renames.
14551 * sysdep.c (reset_sys_modes): Update for renames.
14552
14553 * keyboard.c (tty_read_avail_input): New function.
14554 (Fset_input_interrupt_mode, Fset_output_flow_control): New functions.
14555 (syms_of_keyboard): Defsubr them.
14556 (Fset_input_meta_mode, Fset_quit_char): New functions.
14557 (Fset_input_mode): Split to above functions.
14558 (read_char_minibuf_menu_prompt): Add wrong_kboard_jmpbuf
14559 parameter. Use it in call to `read_char'.
14560 (read_char): Declare. Update call to `read_char_minibuf_menu_prompt'.
14561 Set wrong_kboard_jmpbuf correctly in recursive calls.
14562 Use current_kboard to access Vkeyboard_translate_table.
14563 Enhance comment before extra longjmp to wrong_kboard_jmpbuf.
14564 Add wrong_kboard_jmpbuf parameter to allow for recursive calls.
14565 Update longjmp invocations. Remember the original current_kboard,
14566 and longjmp to `wrong_kboard_jmpbuf' when a filter, timer or sentinel
14567 changes it. Comment out unnecessary calls to
14568 `record_single_kboard_state' and `any_kboard_state'.
14569 Update recursive calls.
14570 (wrong_kboard_jmpbuf): Remove global variable.
14571 (read_key_sequence): Remove unused variable wrong_kboard_jmpbuf.
14572 Handle deleted interrupted_kboards correctly; that is a legal
14573 case. Add `wrong_kboard_jmpbuf' local variable. Update setjmp
14574 and read_char calls. Abort if interrupted_kboard died in read_char.
14575 (any_kboard_state, single_kboard_state)
14576 (push_frame_kboard): Remove function.
14577 (pop_kboard): Switch out of single_kboard mode if the kboard has
14578 been deleted. Remove unused variable. Help debugging by not
14579 changing current_kboard unnecessarily. Set current_kboard to the
14580 kboard of the selected frame when the stored kboard object has
14581 been deleted before pop_kboard.
14582 (temporarily_switch_to_single_kboard): Change first parameter to a
14583 frame pointer. Throw an error when caller wants to change kboards
14584 while in single_kboard mode. Don't push_kboard if we weren't in
14585 single kboard state. Don't pop_kboard if we popped into any
14586 kboard state.
14587 (restore_kboard_configuration): Abort if pop_kboard changed the
14588 kboard in single_kboard mode. Call pop_kboard only after setting
14589 up single_kboard mode.
14590 (Frecursive_edit): Switch to single_kboard mode only in nested
14591 command loops.
14592 (cmd_error, command_loop, command_loop_1, timer_check):
14593 Comment out unnecessary call to `any_kboard_state' and
14594 `record_single_kboard_state'.
14595 (delete_kboard): Exit single_kboard mode if we have just deleted
14596 that kboard. Use FRAME_KBOARD.
14597 (interrupt_signal): Use `Fkill_emacs' to exit Emacs, not
14598 `fatal_error_signal'.
14599 (record_single_kboard_state): Don't push_kboard if we weren't in
14600 single kboard state. Don't pop_kboard if we popped into any
14601 kboard state.
14602 (push_frame_kboard): Rename to push_kboard.
14603 (kbd_buffer_get_event): Use FRAME_TERMINAL.
14604 (read_avail_input): Read input from all terminals.
14605 (mark_kboards): Also mark Vkeyboard_translate_table.
14606 (kbd_buffer_store_event_hold): Simplify condition.
14607 (read_key_sequence): Reinitialize fkey and keytran at each replay.
14608 (Vkeyboard_translate_table): Move to struct kboard.
14609 (init_kboard): Initialize Vkeyboard_translate_table.
14610 (syms_of_keyboard): Use DEFVAR_KBOARD to define
14611 Vkeyboard_translate_table. Update doc strings. Update docs of
14612 local-function-key-map and function-key-map.
14613
14614 * terminal.c: New file.
14615
14616 * term.c: Include errno.h.
14617 (Vring_bell_function, device_list, initial_device)
14618 (next_device_id, ring_bell, update_begin, update_end)
14619 (set_terminal_window, cursor_to, raw_cursor_to)
14620 (clear_to_end, clear_frame, clear_end_of_line)
14621 (write_glyphs, insert_glyphs, delete_glyphs, ins_del_lines)
14622 (Fdisplay_name, create_device, delete_device): Move to terminal.c.
14623 (syms_of_term): Move their initialization to terminal.c.
14624 (get_tty_terminal, Fdisplay_tty_type, Ftty_display_color_p)
14625 (Ftty_display_color_cells)
14626 (Ftty_no_underline, Fsuspend_tty, Fresume_tty, create_tty_output)
14627 (clear_tty_hooks, set_tty_hooks)
14628 (init_tty, maybe_fatal): New functions.
14629 (Ftty_type): Return nil if terminal is not on a tty instead of
14630 throwing an error. Doc update.
14631 (syms_of_term) <Vsuspend_tty_functions, Vresume_tty_functions>:
14632 Doc update. Initialize new subrs and variables.
14633 (delete_tty): Use terminal->deleted.
14634 (tty_set_terminal_modes): Rename from set_terminal_modes.
14635 (tty_reset_terminal_modes): Rename from reset_terminal_modes.
14636 (set_scroll_region): Rename to `tty_set_scroll_region'.
14637 (turn_on_insert): Rename to `tty_turn_on_insert'.
14638 (turn_off_insert): Rename to `tty_turn_off_insert'.
14639 (turn_off_highlight): Rename to `tty_turn_off_highlight'.
14640 (turn_on_highlight): Rename to `tty_turn_on_highlight'.
14641 (toggle_highligh): Rename to `tty_toggle_highlight'.
14642 (background_highlight): Rename to `tty_background_highlight'.
14643 (highlight_if_desired): Rename to `tty_highlight_if_desired'.
14644 (tty_ring_bell, tty_update_end, tty_set_terminal_window)
14645 (tty_set_scroll_region, tty_background_highlight)
14646 (tty_cursor_to, tty_raw_cursor_to, tty_clear_to_end)
14647 (tty_clear_frame, tty_clear_end_of_line, tty_write_glyphs)
14648 (tty_insert_glyphs, tty_delete_glyphs, tty_ins_del_lines)
14649 (term_get_fkeys, tty_setup_colors, dissociate_if_controlling_tty):
14650 Add static modifier.
14651 (tty_reset_terminal_modes, tty_set_terminal_window)
14652 (tty_set_scroll_region, tty_background_highlight)
14653 (tty_highlight_if_desired, tty_cursor_to)
14654 (tty_raw_cursor_to, tty_clear_to_end, tty_clear_frame)
14655 (tty_clear_end_of_line, tty_write_glyphs, tty_insert_glyphs)
14656 (tty_delete_glyphs, tty_ins_del_lines, turn_on_face): Update for
14657 renames.
14658
146592007-08-28 Jan Djärv <jan.h.d@swipnet.se>
14660
14661 * keyboard.c: Qrtl is new.
14662 (parse_tool_bar_item): Handle :rtl keyword.
14663 (syms_of_keyboard): Intern :rtl keyword.
14664
14665 * dispextern.h (enum tool_bar_item_idx): Add TOOL_BAR_ITEM_RTL_IMAGE.
14666
14667 * gtkutil.c (xg_tool_bar_expose_callback): Just do SET_FRAME_GARBAGED
14668 so no Lisp code is executed.
14669 (file_for_image, find_rtl_image): New functions.
14670 (xg_get_image_for_pixmap): Use file_for_image.
14671 (update_frame_tool_bar): If direction is RTL, use RTL image if
14672 defined. Use Gtk stock images if defined.
14673
146742007-08-27 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
14675
14676 * macterm.c (x_draw_composite_glyph_string_foreground): Draw rectangle
14677 for nonexistent or zero-width glyph in composition glyph.
14678
146792007-08-25 Stefan Monnier <monnier@iro.umontreal.ca>
14680
14681 * m/amdx86-64.h: Redirect to intel386.h if compiling for i386.
14682
14683 * xdisp.c (Finvisible_p): New function.
14684 (syms_of_xdisp): defsubr it.
14685
146862007-08-24 Juanma Barranquero <lekktu@gmail.com>
14687
14688 * image.c (syms_of_image) <image-library-alist, cross-disabled-images>:
14689 Doc fixes.
14690
146912007-08-24 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
14692
14693 * mac.c [MAC_OSX] (select_and_poll_event, sys_select): Fix last changes.
14694
146952007-08-24 Martin Rudalics <rudalics@gmx.at>
14696
14697 * fileio.c (Finsert_file_contents): Consult CHARS_MODIFF to tell
14698 whether decoding has modified buffer contents.
14699
147002007-08-24 Jason Rumney <jasonr@gnu.org>
14701
14702 * image.c [HAVE_NTGUI]: Define dynamic loaded functions for SVG.
14703 (Qgdk_pixbuf, Qglib) [HAVE_NTGUI]: New symbols.
14704 (syms_of_image) [HAVE_NTGUI]: Intern and staticpro them.
14705 (init_svg_functions) [HAVE_NTGUI]: New function.
14706 (fn_g_type_init, fn_g_object_unref, fn_g_error_free): New #defines.
14707 (svg_load_image): Use them.
14708 (svg_load_image) [HAVE_NTGUI]: Implement background.
14709
147102007-08-23 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
14711
14712 * Makefile.in (RSVG_LIBS, RSVG_CFLAGS): New variables.
14713 (ALL_CFLAGS): Use ${RSVG_CFLAGS} instead of @RSVG_CFLAGS@.
14714 (LIBX): Remove @RSVG_LIBS@.
14715 (LIBES): Add $(RSVG_LIBS).
14716
14717 * image.c (svg_load_image): Blend with specified background if exists.
14718 Use IMAGE_BACKGROUND. Add Mac OS Support.
14719
14720 * mac.c (wakeup_from_rne_enabled_p) [MAC_OSX]: Remove variable.
14721 (ENABLE_WAKEUP_FROM_RNE, DISABLE_WAKEUP_FROM_RNE) [MAC_OSX]:
14722 Remove macros.
14723 [MAC_OSX] (socket_callback): Do nothing.
14724 [MAC_OSX] (select_and_poll_event): Use CFRunLoopRunInMode instead of
14725 ReceiveNextEvent.
14726 [MAC_OSX] (sys_select): Likewise. Don't set context as argument to
14727 socket_callback.
14728 (mac_wakeup_from_rne) [MAC_OSX]: Do nothing.
14729
147302007-08-22 Glenn Morris <rgm@gnu.org>
14731
14732 * image.c (x_find_image_file): Search in etc/images/ rather than etc/.
14733
147342007-08-22 Paul Pogonyshev <pogonyshev@gmx.net>
14735
14736 * Makefile.in (ALL_CFLAGS, LIBX): Add RSVG_LIBS.
14737
14738 * image.c: Add support for SVG images. Some additional comments
14739 by Joakim Verona <joakim@verona.se>. When HAVE_RSVG is defined:
14740 (svg_image_p): New function to test for SVG image.
14741 (svg_load): New function to load SVG image.
14742 (svg_load_image): New function, helper for svg_load.
14743 (Qsvg): New Lisp_object.
14744 (svg_keyword_index): New enum.
14745 (svg_format): New static `image_keyword' struct.
14746 (svg_type): New static `image_type' struct.
14747 (librsvg/rsvg.h): Include it.
14748
147492007-08-23 Stefan Monnier <monnier@iro.umontreal.ca>
14750
14751 * lread.c (load_warn_old_style_backquotes): Fix up array size typo.
14752
147532007-08-22 Stefan Monnier <monnier@iro.umontreal.ca>
14754
14755 * lread.c (Qold_style_backquotes): New var.
14756 (syms_of_lread): Init and staticpro it.
14757 (load_warn_old_style_backquotes): New fun.
14758 (Fload): Use them to warn about old style backquotes.
14759 (end_of_file_error, Fload): Remove unused vars.
14760
14761 * lisp.h (Fclear_face_cache, Fx_send_client_event): Declare.
14762
14763 * lread.c (Vold_style_backquotes): New var.
14764 (syms_of_lread): Init and export it to Elisp.
14765 (read1): Set it when we find an old-style (back)quote.
14766
147672007-08-22 Jason Rumney <jasonr@gnu.org>
14768
14769 * w32reg.c (SYSTEM_DEFAULT_RESOURCES): Add missing NULL terminator.
14770
147712007-08-22 Katsumi Yamaoka <yamaoka@jpl.org>
14772
14773 * puresize.h (BASE_PURESIZE): Increase to 1140000.
14774
147752007-08-19 Richard Stallman <rms@gnu.org>
14776
14777 * eval.c (Ffunction, Fquote): Signal error if not 1 argument.
14778
147792007-08-19 Andreas Schwab <schwab@suse.de>
14780
14781 * alloc.c (pure): Round PURESIZE up.
14782
147832007-08-17 Jan Djärv <jan.h.d@swipnet.se>
14784
14785 * xterm.c (handle_one_xevent): Remove check that mouse click is in
14786 active frame.
14787
147882007-08-16 Richard Stallman <rms@gnu.org>
14789
14790 * eval.c (Fcommandp): Add parens to clarify.
14791
14792 * minibuf.c (Fall_completions): Use enum for type of table.
14793
14794 * emacs.c (USAGE2): Improve text.
14795
147962007-08-15 Philippe Waroquiers <philippe.waroquiers@eurocontrol.int>
14797
14798 * term.c (tty_default_color_capabilities): Declare static
14799 variables in file scope, to avoid HPUX compiler problem.
14800
148012007-08-13 Jan Djärv <jan.h.d@swipnet.se>
14802
14803 * gtkutil.c (update_frame_tool_bar): Use -1 as index
14804 to gtk_toolbar_insert.
14805
148062007-08-13 Stefan Monnier <monnier@iro.umontreal.ca>
14807
14808 * fileio.c (Finsert_file_contents): Yet Another Int/Lisp_Object Mixup.
14809
14810 * insdel.c (reset_var_on_error): New fun.
14811 (signal_before_change, signal_after_change):
14812 Use it to reset (after|before)-change-functions to nil in case of error.
14813 Bind inhibit-modification-hooks to t.
14814 Don't bind (after|before)-change-functions to nil while they run.
14815
148162007-08-11 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
14817
14818 * xterm.c (x_draw_image_glyph_string): Adjust stipple origin when
14819 filling pixmap with stippled background.
14820
148212007-08-10 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
14822
14823 * macterm.c [TARGET_API_MAC_CARBON] (mac_handle_window_event):
14824 Don't use invisible frame as parent window for repositioning.
14825
148262007-08-10 Stefan Monnier <monnier@iro.umontreal.ca>
14827
14828 * print.c (new_backquote_output): Rename from old_backquote_output.
14829 (print): Inverse its logic (according to its name) so as to match the
14830 behavior of new_backquote_flag in lread.c.
14831
148322007-08-09 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
14833
14834 * gmalloc.c (posix_memalign): New function.
14835
14836 * macterm.c (frame_highlight, frame_unhighlight): Don't call
14837 ActivateControl/DeactivateControl here.
14838 [USE_MAC_TOOLBAR] (free_frame_tool_bar): Suppress animation when
14839 frame-notice-user-settings is non-nil.
14840 [USE_MAC_FONT_PANEL] (mac_handle_font_event): Also record parameter
14841 for kEventParamFMFontStyle.
14842 [TARGET_API_MAC_CARBON] (mac_handle_keyboard_event): Don't check
14843 mac_pass_command_to_system and mac_pass_control_to_system here.
14844 (XTread_socket): Call ActivateControl/DeactivateControl here.
14845 (XTread_socket) [TARGET_API_MAC_CARBON]:
14846 Check mac_pass_command_to_system and mac_pass_control_to_system here.
14847 (mac_handle_window_event) [USE_MAC_TOOLBAR]: Add further workaround
14848 for window repositioning.
14849
148502007-08-08 Glenn Morris <rgm@gnu.org>
14851
14852 * Replace `iff' in doc-strings and comments.
14853
148542007-08-07 Chong Yidong <cyd@stupidchicken.com>
14855
14856 * xdisp.c (move_it_by_lines): Remove incorrect optimization.
14857
148582007-08-07 Martin Rudalics <rudalics@gmx.at>
14859
14860 * fileio.c (Finsert_file_contents): Run format-decode and
14861 after_insert_file_functions on entire buffer when REPLACE is
14862 non-nil and inhibit modification_hooks and point_motion_hooks.
14863 For consistency, run after_insert_file_functions iff something
14864 got inserted. Move signal_after_change and update_compositions
14865 after code running after_insert_file_functions. Make sure that
14866 undo_list doesn't record intermediate steps of the decoding process.
14867
148682007-08-07 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
14869
14870 * emacs.c (main)
14871 [HAVE_GTK_AND_PTHREAD && !SYSTEM_MALLOC && !DOUG_LEA_MALLOC]:
14872 Call malloc_enable_thread on interactive startup.
14873
14874 * gmalloc.c (_malloc_thread_enabled_p) [USE_PTHREAD]: New variable.
14875 (LOCK, UNLOCK, LOCK_ALIGNED_BLOCKS, UNLOCK_ALIGNED_BLOCKS)
14876 [USE_PTHREAD]: Conditionalize with it.
14877 (malloc_atfork_handler_prepare, malloc_atfork_handler_parent)
14878 (malloc_atfork_handler_child, malloc_enable_thread) [USE_PTHREAD]:
14879 New functions.
14880
148812007-08-06 Chong Yidong <cyd@stupidchicken.com>
14882
14883 * xdisp.c (redisplay_window): When restoring original buffer
14884 position, make sure it is still valid.
14885
14886 * image.c (png_load): Ignore png-supplied background color.
14887
148882007-08-06 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
14889
14890 * mac.c [TARGET_API_MAC_CARBON] (cfdate_to_lisp): Obtain microsec value.
14891 Use kCFAbsoluteTimeIntervalSince1970.
14892
14893 * macmenu.c (quit_dialog_event_loop) [TARGET_API_MAC_CARBON]:
14894 New variable.
14895 [TARGET_API_MAC_CARBON] (mac_handle_dialog_event): Set it if dialog
14896 event loop should be quit.
14897 [TARGET_API_MAC_CARBON] (create_and_show_dialog) [!MAC_OSX]:
14898 Quit dialog event loop if quit_dialog_event_loop is set.
14899
14900 * macselect.c [!TARGET_API_MAC_CARBON]: Include Scrap.h.
14901 (Selection): New typedef. Use instead of ScrapRef.
14902 (mac_get_selection_from_symbol): Rename from get_scrap_from_symbol.
14903 (mac_valid_selection_target_p): Rename from valid_scrap_target_type_p.
14904 (mac_clear_selection): Rename from clear_scrap.
14905 (get_flavor_type_from_symbol): New argument SEL and subsume function of
14906 scrap_has_target_type. All uses changed.
14907 (mac_get_selection_ownership_info, mac_valid_selection_value_p)
14908 (mac_selection_has_target_p): New functions.
14909 (mac_put_selection_value): Rename from put_scrap_string.
14910 (mac_get_selection_value): Rename from get_scrap_string.
14911 (mac_get_selection_target_list): Rename from get_scrap_target_type_list.
14912 (put_scrap_private_timestamp, scrap_has_target_type)
14913 (get_scrap_private_timestamp): Remove functions.
14914 (SCRAP_FLAVOR_TYPE_EMACS_TIMESTAMP): Remove define.
14915 (x_own_selection, x_get_local_selection):
14916 Use mac_valid_selection_value_p.
14917 (x_own_selection): Don't use put_scrap_private_timestamp.
14918 Record OWNERSHIP-INFO into Vselection_alist instead.
14919 (x_get_local_selection): Don't check type if request is local.
14920 (Fx_selection_owner_p): Don't use get_scrap_private_timestamp.
14921 Detect ownership change with OWNERSHIP-INFO in Vselection_alist instead.
14922
149232007-08-04 Jan Djärv <jan.h.d@swipnet.se>
14924
14925 * gtkutil.c (xg_tool_bar_callback): Generate two TOOL_BAR_EVENT:s,
14926 add comment explaining why.
14927
149282007-08-03 Richard Stallman <rms@gnu.org>
14929
14930 * fileio.c (Fvisited_file_modtime): Use make_time.
14931
149322007-08-01 Ryo Yoshitake <ryo@shiftmode.net> (tiny change)
14933
14934 * mac.c (init_mac_osx_environment): Adjust load-path on self-contained
14935 build.
14936
149372007-07-31 Stefan Monnier <monnier@iro.umontreal.ca>
14938
14939 * gtkutil.c (xg_tool_bar_callback): Generate a single TOOL_BAR_EVENT.
14940
149412007-07-30 Katsumi Yamaoka <yamaoka@jpl.org>
14942
14943 * puresize.h (BASE_PURESIZE): Increase to 1130000.
14944
149452007-07-30 Richard Stallman <rms@gnu.org>
14946
14947 * lread.c (readevalloop, read1): Treat NBSP as whitespace.
14948
149492007-07-29 Jan Djärv <jan.h.d@swipnet.se>
14950
14951 * gmalloc.c (__malloc_initialize): Remove pthread_once. Not needed.
14952
149532007-07-28 Nick Roberts <nickrob@snap.net.nz>
14954
14955 * xdisp.c (decode_mode_spec): Use '@' instead of 'R' to test for
14956 remote default-directory.
14957
14958 * buffer.c (mode-line-format): Update doc string.
14959
149602007-07-27 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
14961
14962 * w32term.c (w32_draw_fringe_bitmap): Extend fringe background to
14963 scroll bar gap.
14964 (x_scroll_bar_create): Set bar->fringe_extended_p.
14965 (w32_set_vertical_scroll_bar): Put leftmost/rightmost scroll bars
14966 on frame edge. Check fringe background extension. Don't clear
14967 extended fringe background area.
14968
14969 * w32term.h (struct scroll_bar): New member fringe_extended_p.
14970 (w32_fill_area): Enclose multiple statements with do ... while (0).
14971
14972 * xterm.c (x_draw_fringe_bitmap) [USE_TOOLKIT_SCROLL_BARS]:
14973 Extend fringe background to scroll bar gap.
14974 (x_scroll_bar_create) [USE_TOOLKIT_SCROLL_BARS]:
14975 Set bar->fringe_extended_p.
14976 (XTset_vertical_scroll_bar) [USE_TOOLKIT_SCROLL_BARS]:
14977 Put leftmost/rightmost scroll bars on frame edge. Check fringe
14978 background extension. Don't clear extended fringe background area.
14979
14980 * xterm.h (struct scroll_bar) [USE_TOOLKIT_SCROLL_BARS]:
14981 New member fringe_extended_p.
14982
149832007-07-25 Glenn Morris <rgm@gnu.org>
14984
14985 * Relicense all FSF files to GPLv3 or later.
14986
14987 * COPYING: Switch to GPLv3.
14988
149892007-07-25 Stefan Monnier <monnier@iro.umontreal.ca>
14990
14991 * eval.c (Fcommandp): Pay attention to the `interactive-form' property.
14992
14993 * data.c (Finteractive_form): Check for the presence of an
14994 `interactive-form' symbol property more thoroughly.
14995
14996 * data.c (Finteractive_form): Use an `interactive-form' property if
14997 present, analogous to the function-documentation property.
14998
149992007-07-24 Jason Rumney <jasonr@gnu.org>
15000
15001 * w32fns.c (x_real_positions): Get real position from OS instead of
15002 calculating it.
15003
150042007-07-23 Jason Rumney <jasonr@gnu.org>
15005
15006 * filelock.c (current_lock_owner): Allow for @ sign in username.
15007
150082007-07-22 Nick Roberts <nickrob@snap.net.nz>
15009
15010 * xdisp.c (decode_mode_spec): Add case 'R' for to test for
15011 remote default-directory.
15012
15013 * buffer.c (mode-line-format): Describe above case in doc string.
15014
150152007-07-20 Eli Zaretskii <eliz@gnu.org>
15016
15017 * w32proc.c (IMAGE_NT_OPTIONAL_HDR32_MAGIC, IMAGE_OPTIONAL_HEADER32):
15018 Define if not defined.
15019
150202007-07-18 Jason Rumney <jasonr@gnu.org>
15021
15022 * w32proc.c (w32_executable_type): Handle 64 bit executables.
15023
150242007-07-18 Richard Stallman <rms@gnu.org>
15025
15026 * data.c (Fsetq_default): Doc fix.
15027
15028 * eval.c (Fsetq): Doc fix.
15029
150302007-07-18 Juanma Barranquero <lekktu@gmail.com>
15031
15032 * coding.c (Ffind_operation_coding_system):
15033 * eval.c (For, Fand): Doc fixes.
15034 Reported by Johan Bockgård.
15035
150362007-07-18 Jan Djärv <jan.h.d@swipnet.se>
15037
15038 * xfns.c (Fx_focus_frame): Call x_ewmh_activate_frame.
15039
15040 * xterm.h: Declare x_ewmh_activate_frame.
15041
15042 * xterm.c (x_ewmh_activate_frame): New function.
15043 (XTframe_raise_lower): Move code to x_ewmh_activate_frame.
15044
150452007-07-17 Martin Rudalics <rudalics@gmx.at>
15046
15047 * window.c (Fdisplay_buffer): If largest or LRU window is the
15048 only window, split it even if it is not eligible for splitting.
15049 This restores the original behavior broken by the 2007-07-15
15050 change.
15051
150522007-07-17 Glenn Morris <rgm@gnu.org>
15053
15054 * abbrev.c (abbrev_check_chars): New function.
15055 (Fdefine_global_abbrev, Fdefine_mode_abbrev):
15056 Call abbrev_check_chars to check abbrev characters are word
15057 constituents. Doc fix.
15058
150592007-07-17 Stefan Monnier <monnier@iro.umontreal.ca>
15060
15061 * process.c (Fstart_process, Fmake_network_process)
15062 (read_process_output): Fix up last changes.
15063
150642007-07-16 Eli Zaretskii <eliz@gnu.org>
15065
15066 * makefile.w32-in (clean): Don't delete *~.
15067
150682007-07-16 Andreas Schwab <schwab@suse.de>
15069
15070 * window.c (Fdisplay_buffer): Use NILP.
15071 (Fset_window_scroll_bars): Likewise.
15072
150732007-07-15 Martin Rudalics <rudalics@gmx.at>
15074
15075 * window.c (window_min_size_2): New function.
15076 (window_min_size_1, size_window, Fdisplay_buffer)
15077 (Fsplit_window, adjust_window_trailing_edge): Use it to avoid
15078 windows without mode- or header-lines when window-min-height is
15079 too small.
15080 (size_window): Reset nodelete_p after testing it, following an
15081 earlier note by Kim F. Storm.
15082 (display_buffer): Do not set split_height_threshold to twice the
15083 value of window_min_height to avoid changing the value of a
15084 customizable variable. Rather explicitly check whether the
15085 height of the window that shall be splitted is at least as large
15086 as split_height_threshold.
15087 (Fwindow_full_width_p): New defun.
15088 (syms_of_window): Defsubr it.
15089
15090 * window.h: Add EXFUN for Fwindow_full_width_p.
15091
150922007-07-14 Jason Rumney <jasonr@gnu.org>
15093
15094 * process.c [WINDOWSNT]: Don't undefine AF_INET6.
15095
150962007-07-14 Richard Stallman <rms@gnu.org>
15097
15098 * eval.c (maybe_call_debugger): New function.
15099 (find_handler_clause): Use maybe_call_debugger.
15100 Call it when the handler says `debug'.
15101 Eliminate DEBUGGER_VALUE_PTR.
15102 (Fsignal): Eliminate debugger_value.
15103 (Qdebug): New variable.
15104 (syms_of_eval): Initialize it.
15105
151062007-07-14 Juanma Barranquero <lekktu@gmail.com>
15107
15108 * eval.c (Fprogn):
15109 * keyboard.c (Ftrack_mouse):
15110 * print.c (Fwith_output_to_temp_buffer):
15111 * window.c (Fsave_window_excursion): Doc fix.
15112
151132007-07-13 Stefan Monnier <monnier@iro.umontreal.ca>
15114
15115 * eval.c (init_eval_once): Bump max_lisp_eval_depth to 400.
15116
151172007-07-12 Stefan Monnier <monnier@iro.umontreal.ca>
15118
15119 * process.h (struct Lisp_Process): Turn slots infd, outfd,
15120 kill_without_query, pty_flag, tick, update_tick, decoding_carryover,
15121 inherit_coding_system_flag, filter_multibyte, adaptive_read_buffering,
15122 read_output_delay, and read_output_skip from Lisp_Objects to ints.
15123 Remove unused encoding_carryover.
15124 * process.c: Adjust all functions accordingly.
15125
151262007-07-12 Richard Stallman <rms@gnu.org>
15127
15128 * term.c: Include unistd.h only if HAVE_UNISTD_H.
15129
151302007-07-11 Jason Rumney <jasonr@gnu.org>
15131
15132 * makefile.w32-in (LIBS): Include OLE32.
15133
15134 * w32fns.c (w32_msg_pump) <WM_EMACS_CREATEWINDOW>: Initialize COM.
15135 (w32_msg_pump) <WM_DESTROY>: Uninitialize COM.
15136
151372007-07-11 Stefan Monnier <monnier@iro.umontreal.ca>
15138
15139 * lisp.h (struct Lisp_Hash_Table): Turn next_weak into a bare pointer.
15140 * fns.c (weak_hash_tables): Rename from Vweak_hash_tables and turned
15141 from a Lisp_Object into a bare pointer.
15142 (make_hash_table, copy_hash_table, sweep_weak_hash_tables, init_fns):
15143 Adjust the code correspondingly.
15144
15145 * alloc.c (emacs_blocked_free): Remove unused var `bytes_used_now'.
15146
15147 * term.c: Include unistd.h for ttyname, used in handle_one_term_event.
15148 (term_show_mouse_face): Remove unused var `j'.
15149 (handle_one_term_event): Remove unused vars `i' and `j'.
15150 Don't cast return value of ttyname since it's not necessary.
15151
151522007-07-10 Stefan Monnier <monnier@iro.umontreal.ca>
15153
15154 * alloc.c (mark_maybe_pointer): Enforce mult-of-8 alignment when using
15155 USE_LSB_TAG. Suggested by Dmitry Antipov <dmantipov@yandex.ru>.
15156
15157 * fns.c (map_char_table): Use an array of int for `indices' rather than
15158 an array of Lisp_Objects (which are only ever integers anyway).
15159 (Fmap_char_table): Update caller.
15160 * lisp.h: Update prototype.
15161 * keymap.c (Fset_keymap_parent, map_keymap, Fcopy_keymap):
15162 * fontset.c (Ffontset_info):
15163 * casetab.c (set_case_table): Update callers.
15164
15165 * editfns.c (Ftranspose_regions): Use EMACS_INT for positions.
15166
15167 * keymap.c (struct accessible_keymaps_data)
15168 (struct where_is_internal_data): New structures.
15169 (accessible_keymaps_1, where_is_internal_1): Use them to change
15170 interface to adhere to the one used by map_keymap.
15171 (Faccessible_keymaps, where_is_internal): Use map_keymap.
15172 (accessible_keymaps_char_table, where_is_internal_2): Remove.
15173
15174 * keymap.h (map_keymap_function_t): More informative prototype.
15175
151762007-07-10 Guanpeng Xu <herberteuler@hotmail.com>
15177
15178 * search.c (Vinhibit_changing_match_data, search_regs_1): New vars.
15179 (looking_at_1): Don't change search_regs and last_thing_searched
15180 if `inhibit-changing-match-data' is non-nil.
15181 (string_match_1, search_buffer, set_search_regs): Likewise.
15182 (syms_of_search): Add Lisp level definition for
15183 `inhibit-changing-match-data' and set it to nil.
15184 (boyer_moore): If `inhibit-changing-match-data' is non-nil, compute
15185 start and end of the match, instead of using values in search_regs.
15186
151872007-07-01 Stefan Monnier <monnier@iro.umontreal.ca>
15188
15189 * minibuf.c (Fcompleting_read): New value `confirm-only'
15190 for `require-match'.
15191
151922007-06-28 Stefan Monnier <monnier@iro.umontreal.ca>
15193
15194 * fileio.c (Fdo_auto_save): Revert last patch installed unwillingly as
15195 part of the 2007-06-27 change to syms_of_fileio.
15196
151972007-06-28 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
15198
15199 * macterm.c [USE_MAC_TSM] (mac_handle_text_input_event):
15200 Check WINDOWP before using XWINDOW. Consolidate return statements.
15201
152022007-06-27 Richard Stallman <rms@gnu.org>
15203
15204 * fileio.c (syms_of_fileio) <after-insert-file-functions>: Doc fix.
15205
152062007-06-27 Juanma Barranquero <lekktu@gmail.com>
15207
15208 * buffer.c (syms_of_buffer) <selective-display>: Fix typo in docstring.
15209
152102007-06-26 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
15211
15212 * gmalloc.c [HAVE_GTK_AND_PTHREAD]: Check this after including config.h.
15213 (_aligned_blocks_mutex) [USE_PTHREAD]: New variable.
15214 (LOCK_ALIGNED_BLOCKS, UNLOCK_ALIGNED_BLOCKS): New macros.
15215 (_free_internal, memalign): Use them.
15216 (_malloc_mutex, _aligned_blocks_mutex) [USE_PTHREAD]:
15217 Initialize to PTHREAD_MUTEX_INITIALIZER.
15218 (malloc_initialize_1) [USE_PTHREAD]: Don't use recursive mutex.
15219 (morecore_nolock): Rename from morecore. All uses changed.
15220 Use only nolock versions of internal allocation functions.
15221 (_malloc_internal_nolock, _realloc_internal_nolock)
15222 (_free_internal_nolock): New functions created from
15223 _malloc_internal, _realloc_internal, and _free_internal.
15224 (_malloc_internal, _realloc_internal, _free_internal): Use them.
15225 Copy hook value to automatic variable before its use.
15226 (memalign): Copy hook value to automatic variable before its use.
15227
152282007-06-26 Kenichi Handa <handa@m17n.org>
15229
15230 * coding.c (Ffind_operation_coding_system): Docstring improved.
15231 (syms_of_coding): Docstring of `file-coding-system-alist' improved.
15232
152332007-06-25 David Kastrup <dak@gnu.org>
15234
15235 * keymap.c (Fcurrent_active_maps): Add `position' argument.
15236 (Fwhere_is_internal): Adjust call to `current-active-maps' to
15237 cater for additional parameter.
15238
15239 * keymap.h: Adjust number of parameters to `current-active-maps'.
15240
15241 * doc.c (Fsubstitute_command_keys): Adjust call of
15242 `current-active-maps'.
15243
152442007-06-25 David Kastrup <dak@gnu.org>
15245
15246 * callint.c (Fcall_interactively): Make the parsing of interactive
15247 specs somewhat more readable.
15248
152492007-06-23 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
15250
15251 * macterm.c (x_draw_fringe_bitmap) [MAC_OSX]: Extend fringe background
15252 to scroll bar gap also when bitmap fills fringe. Draw only foreground
15253 if extended background has already been filled.
15254
152552007-06-22 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
15256
15257 * macgui.h (USE_CG_DRAWING): Don't require USE_ATSUI.
15258 (USE_MAC_TOOLBAR): Require USE_CG_DRAWING.
15259
15260 * macmenu.c (mac_dialog_modal_filter, Fx_popup_dialog) [MAC_OSX]:
15261 Put special treatment for Fmessage_box, Fyes_or_no_p, and Fy_or_n_p
15262 in #if 0 as it is not compatible with y-or-n-p-with-timeout.
15263 (timer_check) [TARGET_API_MAC_CARBON]: Add extern.
15264 [TARGET_API_MAC_CARBON] (mac_handle_dialog_event): Use QuitEventLoop
15265 instead of QuitAppModalLoopForWindow. Consolidate QuitEventLoop calls.
15266 (pop_down_dialog) [TARGET_API_MAC_CARBON]: New function.
15267 [TARGET_API_MAC_CARBON] (create_and_show_dialog): Use it for unwind.
15268 Run timers during dialog popup.
15269 (Fmenu_or_popup_active_p) [TARGET_API_MAC_CARBON]: Use popup_activated.
15270
152712007-06-21 Jason Rumney <jasonr@gnu.org>
15272
15273 * image.c (convert_mono_to_color_image): Swap fore and background.
15274
152752007-06-20 Jason Rumney <jasonr@gnu.org>
15276
15277 * w32bdf.c (w32_BDF_to_x_font): Unmap memory when finished.
15278 (w32_free_bdf_font): Unmap memory not handle.
15279
152802007-06-20 Sam Steingold <sds@gnu.org>
15281
15282 * gmalloc.c (__morecore): Fix the declaration to comply with the
15283 definition.
15284
152852007-06-20 Juanma Barranquero <lekktu@gmail.com>
15286
15287 * w32term.c (w32_delete_display): Remove leftover declaration.
15288 (w32_define_cursor, w32_initialize): Make static.
15289
15290 * w32.c (_wsa_errlist): Fix typo in error message.
15291 (init_environment): Ignore any environment variable from the
15292 registry having a null value.
15293
152942007-06-20 Glenn Morris <rgm@gnu.org>
15295
15296 * Makefile.in (LIBGIF): Default to -lgif.
15297
152982007-06-17 Jason Rumney <jasonr@gnu.org>
15299
15300 * w32menu.c (add_menu_item): Don't use multibyte string functions on
15301 unicode strings.
15302
153032007-06-16 Juanma Barranquero <lekktu@gmail.com>
15304
15305 * xdisp.c (syms_of_xdisp) <auto-resize-tool-bars>:
15306 Fix typo in docstring.
15307
153082007-06-16 Eli Zaretskii <eliz@gnu.org>
15309
15310 * w32menu.c (add_menu_item): Escape `&' characters in menu items
15311 and their keybindings.
15312
153132007-06-15 Chong Yidong <cyd@stupidchicken.com>
15314
15315 * composite.c (update_compositions): Fix last fix.
15316
153172007-06-14 Jason Rumney <jasonr@gnu.org>
15318
15319 * w32.c (get_process_times_fn): New function pointer.
15320 (globals_of_w32): Intialize it if present in kernel32.dll.
15321 (w32_get_internal_run_time): New function.
15322
15323 * editfns.c (Fget_internal_run_time) [WINDOWSNT]: Use it.
15324
153252007-06-14 Kenichi Handa <handa@etlken.m17n.org>
15326
15327 * composite.c (update_compositions): Check the validness of
15328 compositions.
15329
153302007-06-14 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
15331
15332 * frame.h (struct frame) [MAC_OS]: New member external_tool_bar.
15333 (FRAME_EXTERNAL_TOOL_BAR) [MAC_OS]: Use it.
15334
15335 * macfns.c (mac_window) [USE_MAC_TOOLBAR]: Set toolbar_win_gravity.
15336 (x_set_tool_bar_lines) [USE_MAC_TOOLBAR]: Set FRAME_EXTERNAL_TOOL_BAR.
15337
15338 * macgui.h (USE_MAC_TOOLBAR): New define.
15339
15340 * macmenu.c [TARGET_API_MAC_CARBON] (menu_target_item_handler):
15341 Return immediately unless popup is activated.
15342
15343 * macterm.c (x_draw_fringe_bitmap) [MAC_OSX]: Extend fringe
15344 background to scroll bar gap.
15345 (x_scroll_bar_create) [MAC_OSX]: Set bar->fringe_extended_p.
15346 (XTset_vertical_scroll_bar) [MAC_OSX]: Put leftmost/rightmost
15347 scroll bars on frame edge. Check fringe background extension.
15348 Don't clear extended fringe background area.
15349 (TOOLBAR_IDENTIFIER, TOOLBAR_ICON_ITEM_IDENTIFIER)
15350 (TOOLBAR_ITEM_COMMAND_ID_OFFSET, TOOLBAR_ITEM_COMMAND_ID_P)
15351 (TOOLBAR_ITEM_COMMAND_ID_VALUE, TOOLBAR_ITEM_MAKE_COMMAND_ID):
15352 [USE_MAC_TOOLBAR]: New macros.
15353 (mac_move_window_with_gravity, mac_get_window_origin_with_gravity)
15354 (mac_handle_toolbar_event, mac_image_spec_to_cg_image)
15355 (mac_create_frame_tool_bar, update_frame_tool_bar, free_frame_tool_bar)
15356 (mac_tool_bar_note_mouse_movement, mac_handle_toolbar_command_event)
15357 [USE_MAC_TOOLBAR]: New functions.
15358 (mac_handle_window_event) [USE_MAC_TOOLBAR]: Reposition window
15359 manually if previous repositioning has failed.
15360 (mac_handle_keyboard_event): Use precomputed event kind.
15361 (XTread_socket) [USE_MAC_TOOLBAR]: Handle click in structure region
15362 as tool bar item click. Handle mouse movement over tool bar items.
15363
15364 * macterm.h (struct mac_output) [USE_MAC_TOOLBAR]: New member
15365 toolbar_win_gravity.
15366 (struct scroll_bar) [MAC_OSX]: New member fringe_extended_p.
15367 (update_frame_tool_bar, free_frame_tool_bar) [USE_MAC_TOOLBAR]:
15368 Add externs.
15369
15370 * xdisp.c (update_tool_bar, redisplay_tool_bar, redisplay_window)
15371 [USE_MAC_TOOLBAR]: Sync with GTK+ tool bar display.
15372
153732007-06-14 Chong Yidong <cyd@stupidchicken.com>
15374
15375 * image.c (search_image_cache): Remove unused variable.
15376
153772007-06-13 Chong Yidong <cyd@stupidchicken.com>
15378
15379 * xfns.c, xmenu.c: Link to xaw3d if available.
15380
153812007-06-13 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
15382
15383 * dispextern.h (struct image) [HAVE_WINDOW_SYSTEM]: New members
15384 frame_foreground and frame_background.
15385
15386 * image.c (lookup_image): Save frame foreground and background colors.
15387 (search_image_cache): Check if saved and current frame colors match.
15388
153892007-06-12 Stefan Monnier <monnier@iro.umontreal.ca>
15390
15391 * regex.c (regex_compile): Remove the `regnum' counter.
15392 Use bufp->re_nsub instead. Add support for \(?N:RE\).
15393
153942007-06-11 Stefan Monnier <monnier@iro.umontreal.ca>
15395
15396 * term.c: Include intervals.h to declare Fget_text_property.
15397
153982007-06-10 Jason Rumney <jasonr@gnu.org>
15399
15400 * w32fns.c (Fx_file_dialog): Take size from struct not pointer.
15401
154022007-06-08 Juanma Barranquero <lekktu@gmail.com>
15403
15404 * callint.c (Fcall_interactively):
15405 * editfns.c (Fdelete_and_extract_region):
15406 * fileio.c (Fread_file_name):
15407 * fns.c (Fmapconcat):
15408 * keyboard.c (cmd_error_internal):
15409 * keymap.c (Fkey_description):
15410 * lread.c (openp):
15411 * minibuf.c (read_minibuf):
15412 * search.c (wordify):
15413 * sunfns.c (sel_read):
15414 * xdisp.c (Fformat_mode_line, syms_of_xdisp):
15415 * xfns.c (x_default_scroll_bar_color_parameter):
15416 * xmenu.c (menu_help_callback):
15417 * xselect.c (Fx_get_atom_name):
15418 * xterm.c (x_term_init): Use empty_unibyte_string.
15419
154202007-06-08 Dmitry Antipov <dmantipov@yandex.ru> (tiny change)
15421
15422 * alloc.c (init_strings): Initialize canonical empty strings.
15423 (make_uninit_string, make_uninit_multibyte_string): Return appropriate
15424 canonical empty string when the requested size is 0.
15425
15426 * emacs.c (empty_unibyte_string): Rename from empty_string.
15427 (empty_multibyte_string): New canonical empty string.
15428 (syms_of_emacs): Don't initialize empty_string.
15429
15430 * lisp.h (STRING_SET_UNIBYTE): Return the canonical empty unibyte
15431 string, if appropriate.
15432 (empty_unibyte_string, empty_multibyte_string): New externs.
15433 (empty_string): Remove extern.
15434
15435 * lread.c (syms_of_lread): Use empty_unibyte_string.
15436
154372007-06-07 Jason Rumney <jasonr@gnu.org>
15438
15439 * s/ms-w32.h: Don't define HAVE_TZNAME.
15440
15441 * editfns.c (Fcurrent_time_zone): Remove hack for Japanese Windows.
15442
154432007-06-07 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
15444
15445 * mac.c (xrm_get_preference_database): Remove BLOCK_INPUT.
15446
15447 * macfns.c (mac_get_window_bounds): Move extern to macterm.h.
15448 (compute_tip_xy) [TARGET_API_MAC_CARBON]: Use GetGlobalMouse.
15449
15450 * macmenu.c [TARGET_API_MAC_CARBON] (menu_target_item_handler):
15451 Don't call next handler.
15452 [TARGET_API_MAC_CARBON] (install_menu_target_item_handler):
15453 Remove argument. Install handler to application.
15454 (set_frame_menubar): Don't change deep_p.
15455 (mac_menu_show): Use FRAME_OUTER_TO_INNER_DIFF_X and
15456 FRAME_OUTER_TO_INNER_DIFF_Y.
15457 (DIALOG_BUTTON_COMMAND_ID_OFFSET, DIALOG_BUTTON_COMMAND_ID_P)
15458 (DIALOG_BUTTON_COMMAND_ID_VALUE, DIALOG_BUTTON_MAKE_COMMAND_ID)
15459 [HAVE_DIALOGS]: New macros.
15460 [HAVE_DIALOGS] (mac_handle_dialog_event, create_and_show_dialog):
15461 Use them.
15462 (fill_menubar) [TARGET_API_MAC_CARBON]: Use CFString.
15463
15464 * macselect.c [MAC_OSX] (install_service_handler): Rename from
15465 init_service_handler. All callers changed. Return OSStatus value.
15466
15467 * macterm.c (mac_begin_cg_clip): New arg F. Call SetPortWindowPort.
15468 All callers changed so as not to call SetPortWindowPort.
15469 (mac_begin_cg_clip) [USE_CG_DRAWING]: Call mac_prepare_for_quickdraw.
15470 (mac_draw_image_string_atsui) [USE_ATSUI]: New function created from
15471 mac_draw_string_common.
15472 (mac_draw_image_string_qd): Likewise.
15473 (mac_draw_string_common): Use them. Add INLINE.
15474 (XTmouse_position, x_scroll_bar_report_motion) [TARGET_API_MAC_CARBON]:
15475 Use FRAME_OUTER_TO_INNER_DIFF_X, FRAME_OUTER_TO_INNER_DIFF_Y, and
15476 GetGlobalMouse.
15477 (x_set_mouse_pixel_position) [MAC_OSX]: Use FRAME_OUTER_TO_INNER_DIFF_X
15478 and FRAME_OUTER_TO_INNER_DIFF_Y.
15479 [TARGET_API_MAC_CARBON] (mac_handle_mouse_event): Likewise.
15480 [USE_MAC_TSM] (mac_handle_text_input_event): Likewise.
15481 (x_make_frame_visible) [TARGET_API_MAC_CARBON]: Move code for
15482 repositioning window to mac_handle_window_event.
15483 (x_make_frame_invisible) [TARGET_API_MAC_CARBON]: Move code for
15484 saving window location to mac_handle_window_event
15485 [USE_MAC_FONT_PANEL] (mac_show_hide_font_panel): Install handler here.
15486 (install_menu_target_item_handler): Remove argument in extern.
15487 [TARGET_API_MAC_CARBON] (mac_event_to_emacs_modifiers):
15488 Also accept command events.
15489 (do_keystroke): New function created from XTread_socket.
15490 (init_command_handler): Remove functions.
15491 [TARGET_API_MAC_CARBON] (mac_handle_window_event): Reposition window
15492 and save window location by kEventWindowShowing and kEventWindowHiding
15493 handlers here. Don't call next handler for window state change and
15494 focus events.
15495 (mac_handle_application_event, mac_handle_keyboard_event)
15496 [TARGET_API_MAC_CARBON]: New functions.
15497 (install_window_handler) [TARGET_API_MAC_CARBON]: Register handlers for
15498 kEventWindowShowing and kEventWindowHiding events. Move installation
15499 of mouse, font, text input and menu target item handlers to
15500 install_application_handler.
15501 (install_application_handler) [TARGET_API_MAC_CARBON]: New function.
15502 (mac_handle_cg_display_reconfig) [MAC_OS_X_VERSION_MAX_ALLOWED >= 1030]:
15503 New function.
15504 (init_dm_notification_handler) [MAC_OS_X_VERSION_MAX_ALLOWED >= 1030]:
15505 Register it.
15506 (XTread_socket) [TARGET_API_MAC_CARBON]:
15507 Consolidate SendEventToEventTarget calls.
15508 Use FRAME_OUTER_TO_INNER_DIFF_X and FRAME_OUTER_TO_INNER_DIFF_Y.
15509 Move application activation handler to mac_handle_application_event.
15510 Move keyboard handler to mac_handle_keyboard_event.
15511 (XTread_socket) [!TARGET_API_MAC_CARBON]: Use do_keystroke.
15512 (mac_initialize) [TARGET_API_MAC_CARBON]: Don't call
15513 init_command_handler. Call install_application_handler.
15514
15515 * macterm.h (mac_get_window_bounds): Move extern from macfns.c.
15516 (FRAME_OUTER_TO_INNER_DIFF_X, FRAME_OUTER_TO_INNER_DIFF_Y): New macros.
15517
155182007-06-07 Glenn Morris <rgm@gnu.org>
15519
15520 * emacs.c (main): Use `emacs-copyright' in --version output.
15521
155222007-06-06 Chong Yidong <cyd@stupidchicken.com>
15523
15524 * image.c (xpm_load): Remove spurious call to xpm_init_color_cache.
15525
155262007-06-06 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
15527
15528 * macfns.c (mac_window): Replace WindowPtr with WindowRef.
15529
15530 * macgui.h: Replace WindowPtr with WindowRef.
15531
15532 * macmenu.c: Replace MenuHandle and GetMenuHandle with MenuRef and
15533 GetMenuRef, respectively. Replace WindowPtr with WindowRef.
15534 Replace ControlHandle with ControlRef.
15535 (install_menu_quit_handler): Rename arg MENU_HANDLE to ROOT_MENU.
15536
15537 * macterm.c: Replace MenuHandle and GetMenuHandle with MenuRef and
15538 GetMenuRef, respectively. Replace WindowPtr with WindowRef.
15539 Replace ControlHandle with ControlRef.
15540 (USE_CARBON_EVENTS): Remove. Use TARGET_API_MAC_CARBON instead.
15541 [MAC_OS8] (do_get_menus): Rename variable `menu_handle' to `menu'.
15542
15543 * macterm.h (struct scroll_bar): Rename member control_handle_low
15544 and control_handle_high to control_ref_low and control_ref_high.
15545 All uses changed.
15546 (SCROLL_BAR_CONTROL_REF, SET_SCROLL_BAR_CONTROL_REF): Rename from
15547 SCROLL_BAR_CONTROL_HANDLE and SET_SCROLL_BAR_CONTROL_HANDLE,
15548 respectively. All uses changed.
15549 (XCreatePixmap, XCreatePixmapFromBitmapData, XSetWindowBackground)
15550 (install_window_handler, remove_window_handler): Replace WindowPtr
15551 with WindowRef in externs.
15552
155532007-06-05 Juanma Barranquero <lekktu@gmail.com>
15554
15555 * xfaces.c (Finternal_lisp_face_p): Signal error for face alias loops.
15556
155572007-06-03 Nick Roberts <nickrob@snap.net.nz>
15558
15559 * keyboard.c (discard_mouse_events): Add GPM_CLICK_EVENT case.
15560
15561 * frame.c (Fmouse_position, Fmouse_pixel_position):
15562 Condition on HAVE_GPM too.
15563
15564 * term.c (term_mouse_highlight): Remove unused variables.
15565 (Fterm_open_connection): Set gpm_zerobased to 1.
15566 (term_mouse_movement, term_mouse_click, handle_one_term_event):
15567 Use zero based co-ordinates.
15568 (handle_one_term_event): Report a drag as mouse movement too.
15569
15570 * Makefile.in (MOUSE_SUPPORT): Define for HAVE_GPM.
15571
155722007-06-03 Chong Yidong <cyd@stupidchicken.com>
15573
15574 * image.c (search_image_cache): New function. Require background
15575 color match if background color is unspecified in the image spec.
15576 (uncache_image, lookup_image): Use it.
15577
155782007-06-01 Juanma Barranquero <lekktu@gmail.com>
15579
15580 * window.c (Fshrink_window): Reflow docstring.
15581
155822007-06-02 Chong Yidong <cyd@stupidchicken.com>
15583
15584 * Version 22.1 released.
15585
155862007-06-01 Richard Stallman <rms@gnu.org>
15587
15588 * xfns.c (x_encode_text): Add GCPRO.
15589
155902007-06-01 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
15591
15592 * xfns.c (x_set_name_internal): Save encoded name before
15593 x_encode_text in case string data is relocated.
15594
155952007-05-31 Richard Stallman <rms@gnu.org>
15596
15597 * buffer.c (syms_of_buffer): Doc fix.
15598
155992007-05-30 Nick Roberts <nickrob@snap.net.nz>
15600
15601 * sysdep.c (init_sys_modes): Add rather than replace with
15602 O_NONBLOCK.
15603
15604 * frame.c [HAVE_GPM] (Fset_mouse_pixel_position): Add call to
15605 term_mouse_moveto.
15606
15607 * termhooks.h (term_mouse_moveto): New extern.
15608
15609 * term.c (mouse_face_window): Rename...
15610 (Qmouse_face_window): ...to this.
15611 (term_show_mouse_face, term_clear_mouse_face)
15612 (term_mouse_highlight): Use Qmouse_face_window.
15613 (term_mouse_moveto): New function.
15614 (term_mouse_position): Make it work.
15615 (syms_of_term): Uncomment assignment to mouse_position_hook.
15616 Staticpro Qmouse_face_window.
15617
156182007-05-28 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
15619
15620 * xdisp.c (redisplay_internal): Bind inhibit-point-motion-hooks to t
15621 around current_column call.
15622
156232007-05-26 Dan Nicolaescu <dann@ics.uci.edu>
15624
15625 * xfaces.c (syms_of_xfaces): Delete stray semicolon.
15626 * xdisp.c (next_element_from_buffer):
15627 * window.c (delete_window):
15628 * term.c (term_mouse_highlight):
15629 * msdos.c (getdefdir):
15630 * macterm.c (mac_create_bitmap_from_bitmap_data)
15631 (init_font_name_table):
15632 * fns.c (Fsxhash):
15633 * data.c (Fmake_local_variable):
15634 * ccl.c (ccl_driver): Likewise.
15635
156362007-05-24 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
15637
15638 * macterm.c [USE_CARBON_EVENTS] (mac_handle_window_event):
15639 Call mac_wakeup_from_rne on window size change.
15640
156412007-05-25 Chong Yidong <cyd@stupidchicken.com>
15642
15643 * image.c (uncache_image): Fix typo.
15644
156452007-05-23 Johannes Weiner <hannes@saeurebad.de> (tiny change)
15646
15647 * keyboard.c (make_lispy_movement): Condition on HAVE_GPM too.
15648
156492007-05-22 Richard Stallman <rms@gnu.org>
15650
15651 * xterm.c (x_connection_closed): Remove NO_RETURN.
15652
156532007-05-22 Martin Rudalics <rudalics@gmx.at>
15654
15655 * syntax.c (scan_words): Fix arg to UPDATE_SYNTAX_TABLE_BACKWARD.
15656
156572007-05-21 Chong Yidong <cyd@stupidchicken.com>
15658
15659 * image.c (uncache_image): New function.
15660 (Fimage_refresh): New function.
15661
156622007-05-20 Jan Djärv <jan.h.d@swipnet.se>
15663
15664 * Makefile.in: Move GPM check outside HAVE_X_WINDOWS.
15665
156662007-05-20 Nick Roberts <nickrob@snap.net.nz>
15667
15668 * config.in, keyboard.c, Makefile.in, sysdep.c, term.c,
15669 * termhooks.h: Use HAVE_GPM instead of HAVE_GPM_H.
15670
156712007-05-20 Nick Roberts <nickrob@snap.net.nz>
15672
15673 * keyboard.c (make_lispy_event): Make case GPM_CLICK_EVENT
15674 conditional on [HAVE_GPM_H].
15675
156762007-05-19 Stefan Monnier <monnier@iro.umontreal.ca>
15677
15678 * syntax.c (skip_chars): Update syntax-table only after we checked that
15679 the new location is valid.
15680
156812007-05-19 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
15682
15683 * macterm.c (x_calc_absolute_position): Add BLOCK_INPUT around
15684 mac_get_window_bounds.
15685
156862007-05-20 Nick Roberts <nickrob@snap.net.nz>
15687
15688 * Makefile.in (LIBGPM): Allow it to be set from configure.
15689 If set then link Emacs with it.
15690
15691 * config.in: Regenerate.
15692
15693 * lisp.h (add_gpm_wait_descriptor, delete_gpm_wait_descriptor):
15694 New externs.
15695
15696 * termhooks.h [HAVE_GPM_H] (enum event_kind): Add GPM_CLICK_EVENT.
15697 Include gpm.h.
15698 (handle_one_term_event, term_gpm): New externs.
15699
15700 * sysdep.c [HAVE_GPM_H] (init_sys_modes): Make gpm_fd nonblocking
15701 and allow it to be interrupted by SIGIO.
15702
15703 * process.c (gpm_wait_mask, max_gpm_desc): New variables.
15704 (wait_reading_process_output): Wait on gpm_fd too.
15705 (add_gpm_wait_descriptor, delete_gpm_wait_descriptor)): New functions.
15706 (add_gpm_wait_descriptor_called_flag): New variable.
15707 (delete_keyboard_wait_descriptor): Check gpm_wait_mask.
15708
15709 * keyboard.c [HAVE_GPM_H] (Qmouse_fixup_help_message)
15710 (make_lispy_movement, tracking_off, Ftrack_mouse, some_mouse_moved)
15711 (show_help_echo, readable_events, kbd_buffer_get_event, init_keyboard):
15712 Extend HAVE_MOUSE ifdefs to HAVE_GPM_H.
15713 (make_lispy_event): Add case GPM_CLICK_EVENT.
15714 (read_avail_input): Handle mouse input.
15715
15716 * term.c (write_glyphs_with_face): New function.
15717 [HAVE_GPM_H]: Include buffer.h, sys/fcntl.h.
15718 (mouse_face_beg_row, mouse_face_beg_col, mouse_face_end_row)
15719 (mouse_face_end_col, mouse_face_past_end, mouse_face_window)
15720 (mouse_face_face_id, term_gpm, pos_x, pos_y)
15721 (last_mouse_x, last_mouse_y): New variables.
15722 (term_show_mouse_face, term_clear_mouse_face, fast_find_position)
15723 (term_mouse_highlight, term_mouse_movement, term_mouse_position)
15724 (term_mouse_click, handle_one_term_event, Fterm_open_connection)
15725 (Fterm_close_connection): New functions.
15726 (term_init): Initialise mouse_face_window.
15727
157282007-05-19 Chong Yidong <cyd@stupidchicken.com>
15729
15730 * xdisp.c (redisplay_window): If first window line is a
15731 continuation line, recompute the new window start instead of
15732 recentering.
15733
157342007-05-18 Glenn Morris <rgm@gnu.org>
15735
15736 * m/alpha.h (ORDINARY_LINK): No longer define on OpenBSD.
15737 Suggested by Alfred M. Szmidt <ams@gnu.org>.
15738
157392007-05-17 Glenn Morris <rgm@gnu.org>
15740
15741 * m/macppc.h (ORDINARY_LINK): No longer define on OpenBSD.
15742
157432007-05-16 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
15744
15745 * macterm.c [USE_CARBON_EVENTS] (mac_convert_event_ref): Also convert
15746 dead key repeat and up events.
15747
157482007-05-14 Chong Yidong <cyd@stupidchicken.com>
15749
15750 * image.c (pbm_load): Check image size for monochrome pbm.
15751
157522007-05-13 Chong Yidong <cyd@stupidchicken.com>
15753
15754 * xterm.c (XTread_socket): Revert last change.
15755
157562007-05-12 Chong Yidong <cyd@stupidchicken.com>
15757
15758 * image.c (pbm_load): Correctly check image size for greyscale pbm.
15759
15760 * xterm.c (XTread_socket): Yet Another Uncaught X Error Crash (YAUXEC).
15761
157622007-05-07 Stefan Monnier <monnier@iro.umontreal.ca>
15763
15764 * editfns.c (Ftranspose_regions): Yet another int/Lisp_Object
15765 mixup (YAILOM).
15766
157672007-05-07 Andreas Schwab <schwab@suse.de>
15768
15769 * keymap.c (Flookup_key): Fix typo in last change.
15770
157712007-05-07 Stefan Monnier <monnier@iro.umontreal.ca>
15772
15773 * keymap.c (Fdefine_key, Flookup_key): Only do the 0x80->meta_modifier
15774 mapping for unibyte strings.
15775
157762007-05-01 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
15777
15778 * macmenu.c (mac_dialog_show): Apply 2007-04-27 change for xmenu.c.
15779 (Fx_popup_dialog) [MAC_OSX]: Likewise.
15780
157812007-04-29 Richard Stallman <rms@gnu.org>
15782
15783 * insdel.c (replace_range): For undo, record insertion first.
15784
157852007-04-29 Andreas Schwab <schwab@suse.de>
15786
15787 * lisp.h (VECSIZE): Use OFFSETOF.
15788
157892007-04-29 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
15790
15791 * xdisp.c (try_window_reusing_current_matrix): Fix number of
15792 disabled lines.
15793
157942007-04-28 Richard Stallman <rms@gnu.org>
15795
15796 * lread.c (read_escape): In a string, \s is always space.
15797
157982007-04-27 Jan Djärv <jan.h.d@swipnet.se>
15799
15800 * xmenu.c (xdialog_show): Call Fredisplay before showing the dialog.
15801
15802 * gtkutil.c (xg_update_menubar, create_menus): Create empty
15803 submenu for menu bar items.
15804
15805See ChangeLog.10 for earlier changes.
15806
15807;; Local Variables:
15808;; coding: utf-8
15809;; add-log-time-zone-rule: t
15810;; bug-reference-url-format: "http://emacsbugs.donarmstrong.com/cgi-bin/bugreport.cgi?bug=%s"
15811;; End:
15812
15813 Copyright (C) 2007, 2008 Free Software Foundation, Inc.
15814
15815 This file is part of GNU Emacs.
15816
15817 GNU Emacs is free software: you can redistribute it and/or modify
15818 it under the terms of the GNU General Public License as published by
15819 the Free Software Foundation, either version 3 of the License, or
15820 (at your option) any later version.
15821
15822 GNU Emacs is distributed in the hope that it will be useful,
15823 but WITHOUT ANY WARRANTY; without even the implied warranty of
15824 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
15825 GNU General Public License for more details.
15826
15827 You should have received a copy of the GNU General Public License
15828 along with GNU Emacs. If not, see <http://www.gnu.org/licenses/>.
15829
15830;; arch-tag: dfb6ad96-1550-4905-9e53-d2059ee84c40