(split-window-sensibly): New function.
[bpt/emacs.git] / src / ChangeLog
CommitLineData
46b0d52d
DR
12009-05-07 David Reitter <david.reitter@gmail.com>
2
3 * nsterm.m (note_mouse_movement,ns_frame_up_to_date):
4 mouse movement/highlight: bracket drawing operations
5 in ns_update_begin and ns_update_end.
6
ce1b23bb
SM
72009-05-06 Stefan Monnier <monnier@iro.umontreal.ca>
8
5996e1b7
SM
9 * nsfns.m (ns_get_screen): Rewrite.
10 Don't presume selected-frame is of type `ns'.
11
ba98e3a0
SM
12 * font.c (font_update_drivers): Sanity fallback to avoid disabling
13 all drivers.
14
ce1b23bb
SM
15 * nsterm.m (-windowDidResize:): Avoid inf-loop under GNUStep.
16
bcda200f
YM
172009-05-06 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
18
19 * keyboard.h (add_user_signal): Fix typo in extern.
20
21 * lisp.h (add_user_signal): Remove extern.
22
23 * unexelf.c (unexec): Consider a section to precede the .bss section
24 if its addresses overlap that of .bss.
25 (unexec) [NS_IMPL_GNUSTEP]: Copy ObjC-related data from old file
26 instead of dumping process.
27
864660a2
SM
282009-05-06 Stefan Monnier <monnier@iro.umontreal.ca>
29
30 * keyboard.c (syms_of_keyboard): Staticpro pending_funcalls.
31
50da4e56
SM
322009-05-04 Stefan Monnier <monnier@iro.umontreal.ca>
33
34 * Makefile.in (ctagsfiles1, ctagsfiles2): Include ObjC files in TAGS.
35
51520a1a
DN
362009-05-02 Dan Nicolaescu <dann@ics.uci.edu>
37
38 * xterm.c (x_handle_net_wm_state): Move declaration of lval before
39 any statements.
40
409ea3a1
AS
412009-05-02 Andreas Schwab <schwab@linux-m68k.org>
42
59c4c60f
AS
43 * process.c (read_process_output): Make sure the current buffer is
44 always restored.
45
409ea3a1
AS
46 * coding.c (record_conversion_result): Don't modify
47 Vlast_code_conversion_error for successful result.
48 (alloc_destination): Don't clobber conversion result. (Bug#1650)
49
56f00ed2
KH
502009-05-01 Emanuele Giaquinta <emanuele.giaquinta@gmail.com> (tiny change)
51
52 * charset.c (load_charset): Reformat X==Y==Z to (X==Y)==Z.
896b1cc9 53 (load_charset_map): Remove unnecessary code.
56f00ed2 54
4491c9d2
DR
552009-04-30 David Reitter <david.reitter@gmail.com>
56
35f5b128 57 * nsterm.m (convert_ns_to_X_keysym): Define function keys f16
4491c9d2
DR
58 through f24.
59
6970f632
CY
602009-04-30 Chong Yidong <cyd@stupidchicken.com>
61
62 * xfaces.c (face_at_buffer_position): New arg base_face_id.
63
64 * xdisp.c (handle_face_prop): Pass base_face_id of iterator to
65 face_at_buffer_position.
66 (face_before_or_after_it_pos, get_next_display_element)
67 (note_mouse_highlight): Update face_at_buffer_position call.
68
69 * term.c (term_mouse_highlight):
70 * msdos.c (IT_note_mouse_highlight):
71 * fontset.c (Finternal_char_font):
35f5b128 72 * font.c (font_at, font_range): Update face_at_buffer_position call.
6970f632
CY
73
74 * dispextern.h (face_at_buffer_position): Update prototype.
75
0c616f63
KH
762009-04-30 Kenichi Handa <handa@m17n.org>
77
35f5b128 78 * fontset.c (fontset_find_font): Check if rfont_def is Qnil or not.
0c616f63 79
ad3aaf33
AS
802009-04-29 Andreas Schwab <schwab@linux-m68k.org>
81
82 * callproc.c (Fcall_process): Fix GC protection. Make sure
83 current buffer is always restored.
84
c3c963a0
YM
852009-04-29 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
86
87 * atimer.c (init_atimer): Also clear stopped_atimers.
88
89 * keyboard.c (init_keyboard) [POLL_FOR_INPUT]: Reset poll_timer.
90
7e3386cb
YM
91 * process.c (create_process): Clean up merger residues of
92 2008-07-17 change.
93
91f68422
CY
942009-04-29 Ulrich Mueller <ulm@gentoo.org>
95
96 * lread.c (Vread_circle): New variable.
97 (read1): Disable recursive read if Vread_circle is nil.
98
24b34550
KH
992009-04-29 Kenichi Handa <handa@m17n.org>
100
101 * fontset.h (set_default_ascii_font): Delete extern.
102
103 * fontset.c (set_default_ascii_font): Delete this unused function.
104
105 * frame.c (x_set_font): When ARG is a font-object, check if the
106 font-object matches with the ASCII font-spec of the frame's
9c358bda 107 fontset. If not, create a new fontset for the frame. (Bug #3075)
24b34550 108
77bf07e1
AS
1092009-04-28 Andreas Schwab <schwab@linux-m68k.org>
110
111 * fns.c (Flocale_info): Protect vector from GC during decoding.
112
113 * process.c (Fstart_process): Protect argv strings from GC during
114 encoding.
115
2c55aacf
AS
1162009-04-27 Andreas Schwab <schwab@linux-m68k.org>
117
118 * sysdep.c: Include <ctype.h>.
119
b892d3c9
DR
1202009-04-27 David Reitter <david.reitter@gmail.com>
121
35f5b128 122 * nsfont.m (nsfont_open): Remove unused variable shrink.
b892d3c9
DR
123 Remove commented-out code.
124
9d0644c4
JB
1252009-04-26 Johan Bockgård <bojohan@gnu.org>
126
127 * keyboard.c (syms_of_keyboard) <input-decode-map>: Doc fix.
128
b7053016
JR
1292009-04-25 Jason Rumney <jasonr@gnu.org>
130
131 * w32font.c (clear_cached_metrics): Remove, unused since 2008-08-02.
132
4e8231f3
YM
1332009-04-25 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
134
135 * fringe.c (init_fringe_bitmap) [HAVE_X_WINDOWS && WORDS_BIG_ENDIAN]:
136 Swap bytes in short integer if fringe bitmap width > 8.
137
493dcf2c
KH
1382009-04-23 Kenichi Handa <handa@m17n.org>
139
140 * xfaces.c (Fx_list_fonts): If a font size is specified in
141 PATTERN, set it in returned scalable fonts.
142
401e9e57
CY
1432009-04-22 Chong Yidong <cyd@stupidchicken.com>
144
708e05dc
CY
145 * keyboard.c (Fset_input_meta_mode): Doc fix.
146
147 * dispnew.c (Fsend_string_to_terminal): Doc fix.
148
149 * data.c (Fterminal_local_value, Fset_terminal_local_value): Doc
150 fixes.
151
152 * coding.c (Fterminal_coding_system): Doc fix.
153
154 * xfns.c (Fx_display_grayscale_p, Fx_display_pixel_width)
155 (Fx_display_pixel_height, Fx_display_planes)
156 (Fx_display_color_cells, Fx_server_max_request_size)
157 (Fx_server_vendor, Fx_server_version, Fx_display_screens)
158 (Fx_display_mm_height, Fx_display_mm_width)
159 (Fx_display_backing_store, Fx_display_visual_class)
160 (Fx_display_save_under, Fx_close_connection, Fx_synchronize): Doc
161 fixes, replacing "terminal id" with "terminal object".
162 (check_x_display_info): Handle terminal objects instead of
163 terminal ids.
164
401e9e57
CY
165 * term.c (Ftty_display_color_p, Ftty_display_color_cells)
166 (Ftty_type, Fcontrolling_tty_p, Ftty_no_underline, Fsuspend_tty)
fdc496e7
CY
167 (Fresume_tty, Vsuspend_tty_functions, Vresume_tty_functions): Doc
168 fixes, replacing "terminal id" with "terminal object".
401e9e57 169
df80c7f0
KH
1702009-04-21 Kenichi Handa <handa@m17n.org>
171
5a8f12af 172 * font.c (font_load_for_lface): Cancel previous change (bug#2994).
c0a6070d 173 (font_score): Check AVGWIDTH too.
908567ef 174
df80c7f0
KH
175 * coding.c (decode_coding_utf_16): Reduce charbuf_end for the
176 worst case.
177 (decode_coding_emacs_mule, decode_coding_iso_2022)
178 (decode_coding_sjis, decode_coding_big5, decode_coding_charset):
179 Likewise.
180
705af33f
JR
1812009-04-19 Jason Rumney <jasonr@gnu.org>
182
183 The following changes fix Bug#3005 for wide glyphs on each platform,
b71ac3dd 184 without reintroducing Bug#1258 for stretch glyphs.
705af33f
JR
185
186 * xterm.c (x_draw_bar_cursor): Limit cursor width differently for
187 BAR_CURSOR and HBAR_CURSOR. Calculate width of HBAR_CURSOR using
188 get_phys_cursor_geometry.
189
b71ac3dd 190 * w32term.c (x_draw_bar_cursor): Limit cursor width differently
705af33f
JR
191 for BAR_CURSOR and HBAR_CURSOR. Calculate width of HBAR_CURSOR
192 using get_phys_cursor_geometry.
193
194 * nsterm.m (ns_draw_window_cursor): HBAR_CURSOR width already
195 correctly calculated.
196
dc2933eb
JD
1972009-04-19 Jan Djärv <jan.h.d@swipnet.se>
198
199 * gtkutil.c (xg_tool_bar_menu_proxy, update_frame_tool_bar): Use
200 G_CALLBACK instead of GTK_SIGNAL_FUNC which is deprecated.
201 (xg_initialize): Use g_type_class_ref instead of gtk_type_class which
202 is deprecated.
203
973e7849
AS
2042009-04-18 Andreas Schwab <schwab@linux-m68k.org>
205
206 * font.c (font_put_frame_data): Use xfree instead of free.
207
314d66f4
JB
2082009-04-17 Juanma Barranquero <lekktu@gmail.com>
209
210 * w32font.c (Qja, Qko): Remove declarations.
211 (syms_of_w32font): Don't DEFSYM them.
212
cf702558
CY
2132009-04-17 Chong Yidong <cyd@stupidchicken.com>
214
215 * font.c (Qja, Qko): Move definitions here from ftfont.c.
216
217 * font.h (Qja, Qko): Extern them.
218
219 * ftfont.c (Qja, Qko): Remove declarations.
220
221 * xfont.c (Qja, Qko): Remove declarations.
222
b50504f5
KH
2232009-04-17 Kenichi Handa <handa@m17n.org>
224
bde25748
KH
225 * editfns.c (Ftranslate_region_internal): Use Fconcat to make a
226 string from a vector to handle Latin-1 characters correctly.
227
b50504f5
KH
228 * ftfont.c (ftfont_pattern_entity): Return a newly allocated
229 entity even if the cache hits.
230
f4646fff
AS
2312009-04-16 Andreas Schwab <schwab@linux-m68k.org>
232
233 * search.c (boyer_moore): Use zero as marker value for a possible
6340c70e 234 match instead of depending on overflow behavior. (Bug#2844)
f4646fff 235
e7deaab0
AS
236 * search.c: Use EMACS_INT for buffer positions. Add prototypes.
237 * lisp.h: Adjust prototypes.
238
0a0e7d49
CY
2392009-04-16 Chong Yidong <cyd@stupidchicken.com>
240
241 * keyboard.c (adjust_point_for_property): Disable 2009-02-12
242 change (Bug#3003).
243
3c908a57
KH
2442009-04-16 Kenichi Handa <handa@m17n.org>
245
bd0af90d
KH
246 * xfont.c (xfont_has_char): Special handling of `ja' and `ko'
247 adstyle.
248
249 * xftfont.c (xftfont_has_char): Special handling of `ja' and `ko'
250 adstyle.
251
252 * ftfont.c (Qja, Qko): Don't make them static.
253 (enum ftfont_cache_for): New enum.
254 (fc_charset_table): Undo the previous change.
255 (ftfont_get_latin1_charset): Delete it.
256 (ftfont_pattern_entity): Check cache by ftfont_lookup_cache. Set
257 FONT_SIZE_INDEX of the entity to 0 for a scalable font. For a
258 non-scarable font, try to get AVERAGE_WIDTH.
259 (ftfont_lookup_cache): Argument FOR-FACE is changed to CACHE_FOR.
260 Change ft_face_cache from a list of a hash-table. Don't check
261 `ja' and `ko' adstyle here.
262 (ftfont_get_fc_charset): Call ftfont_lookup_cache with
263 FTFONT_CACHE_FOR_CHARET.
264 (ftfont_get_charset): Undo the previous change.
265 (ftfont_open): Call ftfont_lookup_cache with
266 FTFONT_CACHE_FOR_FACE.
267 (ftfont_close): Likewise.
268 (ftfont_has_char): Special handling of `ja' and `ko' adstyle.
269
270 * font.c (font_sort_entites): Change the meaning of the arg
271 BEST-ONLY. Don't optimize for VEC of lenght 1.
272 (font_select_entity): Just return the value of font_sort_entites.
273
274 * xfaces.c (merge_face_vectors): Reflect font properties in
275 to[LFACE_FONT_INDEX] to the other face attributes. Don't call
276 font_clear_prop if a face attribute doesn't change.
277
3c908a57
KH
278 * charset.h (charset_ksc5601): Extern it.
279
280 * charset.c (charset_ksc5601): New variable.
281 (Fdefine_charset_internal): Set charset_ksc5601.
282 (init_charset_once): Initialize charset_ksc5601 to -1.
283
d65859c3
DN
2842009-04-15 Dan Nicolaescu <dann@ics.uci.edu>
285
286 * fileio.c (history_delete_duplicates): Remove unused declaration.
287
288 * callint.c (history_delete_duplicates): New declaration.
289 (Fcall_interactively): Remove command history duplicates when
290 history_delete_duplicates is true.
291
3ba010e5
EZ
2922009-04-14 Eli Zaretskii <eliz@gnu.org>
293
294 * buffer.c (syms_of_buffer) <line-spacing>: Doc fix.
295
06f19b91
KH
2962009-04-14 Kenichi Handa <handa@m17n.org>
297
298 * font.c (Ffont_info): Fix docstring. Fix the second element of
299 the returned value (bug#2949).
300
2cce8bfc
CY
3012009-04-14 Chong Yidong <cyd@stupidchicken.com>
302
303 * xdisp.c (Vwrap_prefix, Vline_prefix): Reflow docstrings.
304
d156542d
KH
3052009-04-14 Kenichi Handa <handa@m17n.org>
306
307 * xfont.c (xfont_has_char): The font has C if C is ASCII and the
308 encoding charset is ascii_compatible.
309
310 * charset.c (Fdefine_charset_internal): Make charset
311 ascii-compatible if the method is CHARSET_METHOD_OFFSET, the
312 code_offset is 0, and covers all ASCII characters.
313
86fa089e
SM
3142009-04-13 Stefan Monnier <monnier@iro.umontreal.ca>
315
316 * nsselect.m (symbol_to_nsstring, clean_local_selection_data)
317 (ns_string_to_pasteboard_internal):
318 * nsmenu.m (process_dialog):
319 * nsimage.m (ns_load_image): Use SDATA and ASET where appropriate.
320 * nsfont.m (nsfont_open): Use XHASH to make it compile with LISP_UNION.
321 * lisp.h (Fx_load_color_file): Declare.
322
a8a3728b
KH
3232009-04-13 Kenichi Handa <handa@m17n.org>
324
325 * font.c (font_delete_unmatched): Preserve the order of list
326 elements.
327 (font_select_entity): Suppress the code to optimize for the same
328 kind of fonts.
329 (font_load_for_lface): Get a font that supports at least ASCII
330 characters.
331
332 * ftfont.c (Qja, Qko): New variables.
333 (fc_charset_table): Delete uniquifier data for iso8859-1.
334 (ftfont_get_latin1_charset): New function.
335 (get_adstyle_property): New function.
336 (ftfont_pattern_entity): Set FONT_ADSTYLE_INDEX of entity for
337 bitmap fonts.
338 (ftfont_lookup_cache): Handle the case that KEY is a font-entity.
339 Delete iso-8859-1 range from the charset of fonts whose adstyle is
340 `ko' or `ja'.
341 (ftfont_get_fc_charset): Call ftfont_lookup_cache with ENTITY.
342 (ftfont_get_charset): For iso8859-1, call
343 ftfont_get_latin1_charset.
344 (ftfont_list): Don't refuse a font spec with non-nil `adstyle'
345 property.
346 (ftfont_open): Call ftfont_lookup_cache with ENTITY.
347 (syms_of_ftfont): DEFSYM Qja and Qko.
348
483670b5
KH
3492009-04-09 Kenichi Handa <handa@m17n.org>
350
12b55765
KH
351 * charset.c (map_charset_chars): For a charset of `superset'
352 method, fix calculation of code range.
353
483670b5
KH
354 * font.c (font_put_extra): If VAL is nil, delete the slot for PROP
355 from the list of extra properties.
356 (font_clear_prop): Be sure to delete `:name' font property.
357
57d3b93b
KH
3582009-04-08 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
359
b4b2c2ca
YM
360 * dispnew.c (redraw_overlapping_rows): Fix detection of
361 overlapping for topmost and bottommost rows.
362
57d3b93b
KH
363 * ftfont.c (ftfont_text_extents): Fix calculation of
364 metrics->descent.
365
472c3609
JR
3662009-04-06 Jason Rumney <jasonr@gnu.org>
367
368 * frame.c (x_set_font): Avoid C99 mid-block variable declaration.
369
ab193662
KH
3702009-04-06 Kenichi Handa <handa@m17n.org>
371
372 * ftxfont.c (ftxfont_draw_backgrond): Fix args to XFillRectangle.
373
374 * xftfont.c (xftfont_open): Fix setting font->underline_thickness.
375
0c26f026
KH
3762009-04-06 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
377
378 * ftfont.c (ftfont_open): Fix checking of the return value of
379 FT_Load_Char. Fix setting font->underline_thickness.
380
e173bbce
CY
3812009-04-04 Chong Yidong <cyd@stupidchicken.com>
382
383 * terminal.c (Fterminal_name, Fdelete_terminal, Fterminal_name)
384 (Fterminal_parameters, Fterminal_parameter)
385 (Fset_terminal_parameter): In doc string, refer to terminal
386 objects rather than terminal ids.
387
693a2698
EZ
3882009-04-04 Eli Zaretskii <eliz@gnu.org>
389
390 * dosfns.c (system_process_attributes) [SYSTEM_MALLOC]: Don't call
391 ret_lim_data. (Bug#2867)
392
d5221487
CY
3932009-04-03 Chong Yidong <cyd@stupidchicken.com>
394
395 * term.c (produce_stretch_glyph): Reduce width of stretch glyphs
396 so they don't get wider than the window, matching 2006-01-23
397 change to the partner function in xdisp.c (Bug#2800).
398
223509a3
KH
3992009-04-03 Kenichi Handa <handa@m17n.org>
400
401 * print.c (print_object): Make each lowest sub_char_table start a
402 new line (Bug#2866).
403
74fcd0b1
KH
4042009-04-02 Kenichi Handa <handa@m17n.org>
405
406 * fontset.c (fontset_font): Record no-font when a fontset
407 explicitly tells not to try another font-specs.
408
c542407d
SM
4092009-03-30 Pierre Poissinger <pierre.poissinger@gmail.com> (tiny change)
410
411 * charset.c (map_charset_for_dump): Add missing UNGCPRO.
412
e3869731
KH
4132009-03-30 Kenichi Handa <handa@m17n.org>
414
d8d2f142
KH
415 * fontset.c (fontset_from_font): Specify only registry in a
416 font-spec for all characters supported by that registry.
417
e3869731
KH
418 * ftfont.c: Fix previous change. Define ftfont_variation_glyphs
419 even if HAVE_M17N_FLT is not defined.
420
5da5f805
CY
4212009-03-29 Sebastian Rose <sebastian_rose@gmx.de> (tiny change)
422
423 * ftfont.c: Conditionalize prototyping and use of
424 ftfont_variation_glyphs.
425
ab226c50
SM
4262009-03-28 Stefan Monnier <monnier@iro.umontreal.ca>
427
9628fed7
SM
428 * frame.c (delete_frame): Work around compiler bug.
429
430 * editfns.c (general_insert_function): Adjust to insdel.c changes.
431 * insdel.c (prepare_to_modify_buffer, signal_before_change):
432 Some more EMACS_INT.
433 * lisp.h (copy_text, count_size_as_multibyte): Fix last change.
434
435 * xdisp.c (dump_glyph): Fix typo.
436
ae19ba7c
SM
437 * insdel.c (move_gap, move_gap_both, gap_left, gap_right)
438 (adjust_markers_gap_motion, adjust_markers_for_delete)
439 (adjust_markers_for_insert, adjust_point)
440 (adjust_markers_for_replace, make_gap_larger, make_gap_smaller)
441 (make_gap, copy_text, count_size_as_multibyte, insert)
442 (insert_and_inherit, insert_before_markers)
443 (insert_before_markers_and_inherit, insert_1)
444 (count_combining_before, count_combining_after, insert_1_both)
445 (insert_from_string, insert_from_string_before_markers)
446 (insert_from_string_1, insert_from_gap, insert_from_buffer)
447 (insert_from_buffer_1, adjust_after_replace)
448 (adjust_after_replace_noundo, adjust_after_insert, replace_range)
449 (replace_range_2, del_range, del_range_1, del_range_byte)
450 (del_range_both, del_range_2, modify_region)
451 (prepare_to_modify_buffer, signal_before_change)
452 (signal_after_change, Fcombine_after_change_execute): Use EMACS_INT
453 for buffer positions and sizes.
454 * lisp.h: Adjust prototypes accordingly.
455
456 * fileio.c (adjust_markers_for_delete): Move declaration to lisp.h.
457 (non_regular_inserted, non_regular_nbytes, read_non_regular)
458 (Finsert_file_contents): Use EMACS_INT for buffer positions.
459
ab226c50
SM
460 * fileio.c (Finsert_file_contents): Don't limit size to INT_MAX/4.
461
46dfb8fb
JD
4622009-03-27 Jan Djärv <jan.h.d@swipnet.se>
463
464 * frame.c (x_set_font): If the fullscreen property is non-nil, adjust
465 lines and columns so we keep the same pixel height and width.
466
467 * xterm.c (handle_one_xevent): Call x_handle_net_wm_state if
468 the property _NET_WM_STATE has changed.
46dfb8fb
JD
469 (x_handle_net_wm_state): New function to update frame parameter
470 fullscreen.
471 (x_term_init): Initialize atoms for _NET_WM_STATE.
472
473 * xterm.h (struct x_display_info): Add atoms for _NET_WM_STATE.
474
d347e494
SM
4752009-03-27 Kevin Ryde <user42@zip.com.au>
476
477 * keyboard.c (tty_read_avail_input): Don't treat a -1 return from
478 Gpm_GetEvent as an error that justifies closing the filedescriptor.
479 * term.c (close_gpm): Get the filedescriptor as a (new) parameter.
480 (Fgpm_mouse_stop): Pass that new parameter.
481 * termhooks.h (close_gpm): Adjust prototype.
482
84db11d6
SM
4832009-03-26 Stefan Monnier <monnier@iro.umontreal.ca>
484
c95a5008
SM
485 * lisp.h (Fx_focus_frame): Declare.
486
84db11d6
SM
487 * callint.c (Fcall_interactively): For '^' just delegate the work to
488 handle-shift-selection.
489 (syms_of_callint): Move declaration of shift-select-mode to simple.el.
490
0a1958d6
CY
4912009-03-24 Chong Yidong <cyd@stupidchicken.com>
492
0bfdff23
CY
493 * editfns.c (Ffloat_time): Doc fix (Bug#2768).
494
0a1958d6
CY
495 * data.c (Qinteractive_form): New variable.
496 (Finteractive_form): Use it.
497
498 * eval.c (Fcommandp): Use Qinteractive_form.
499
58aec0d6
JR
5002009-03-24 Jason Rumney <jasonr@gnu.org>
501
502 * fileio.c (Fsubstitute_in_file_name): Always work on a copy.
503 Calculate total size precisely. Decode environment variables
504 before substituting. (Bug#38)
505
553dd618
KH
5062009-03-24 Kenichi Handa <handa@m17n.org>
507
508 * font.c (find_font_encoding): Return Qnil for unsupported
639239cf 509 encoding (Bug#2722).
553dd618 510
c39ea606
JD
5112009-03-23 Jan Djärv <jan.h.d@swipnet.se>
512
513 * gtkutil.c (xg_display_open): Assign a value to gdpy_def, check
514 that gdpy is set.
515
bc9b2b5e
AM
5162009-03-22 Alan Mackenzie <acm@muc.de>
517
518 * callint.c (Finteractive): Clarify the doc string - even
519 promptless elements need \n separators.
520
9f995a76
JR
5212009-03-22 Jason Rumney <jasonr@gnu.org>
522
523 * w32term.c (syms_of_w32term): Doc fix for
524 x-use-underline-position-properties.
525
22749e9a
EZ
5262009-03-21 Eli Zaretskii <eliz@gnu.org>
527
528 * w32.c (getpwuid): Change argument type to unsigned.
529 (struct w32_id): Change type of `rid' member to unsigned.
530 (w32_cached_id, w32_add_to_cache, get_name_and_id): Change type of
531 argument ID to unsigned. All callers changed.
532 (getuid, geteuid, getgid, getegid): Change return type to unsigned.
533
e00553bf
EZ
5342009-03-20 Eli Zaretskii <eliz@gnu.org>
535
536 * editfns.c (Fuser_uid, Fuser_real_uid): If UID as EMACS_INT is
537 negative, produce a float value.
538
539 * dired.c (make_uid, make_gid): New functions.
540 (Ffile_attributes): Use them to avoid negative UID and GID.
541
f761d6b6
JB
5422009-03-20 Juanma Barranquero <lekktu@gmail.com>
543
544 * keyboard.c (Fcurrent_idle_time): Reflow docstring.
545 (syms_of_keyboard) <command-hook-internal, input-method-function>:
546 Fix typos in docstrings.
547
d507f8d7
KH
5482009-03-19 Kenichi Handa <handa@m17n.org>
549
550 * fontset.c (Fset_fontset_font): When a spec of ASCII font is
f761d6b6
JB
551 changed, use font_load_for_lface to get a new font object.
552 Call free_realized_fontset after handling ASCII font change.
d507f8d7
KH
553
554 * frame.c (x_set_font): Handle the case that ARG is a cons.
555
c68845e0
GM
5562009-03-19 Glenn Morris <rgm@gnu.org>
557
558 * fileio.c (Fsubstitute_in_file_name): Doc fix.
559
bfa49dd1
CY
5602009-03-19 Chong Yidong <cyd@stupidchicken.com>
561
562 * indent.c (Fvertical_motion): Undo 2005-01-19 change (Bug#2694).
563
8458d4c1
KH
5642009-03-19 Kenichi Handa <handa@m17n.org>
565
566 * charset.c (load_charset_map_from_file): When a mapfile can't be
567 loaded, signal an error.
568
78e7d1fe
EZ
5692009-03-18 Eli Zaretskii <eliz@gnu.org>
570
571 * dired.c (Ffile_attributes): Make sure UID and GID are always
572 positive, even if the value is too large for a positive EMACS_INT.
573 Doc fix.
574
575 * editfns.c (Fuser_login_name): Support float arguments. Doc fix.
576
5da9fdfa
YM
5772009-03-18 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
578
579 * xmenu.c (xdialog_show): Move Fredisplay call ...
580 (Fx_popup_dialog): ... here.
581
7519c40d
SM
5822009-03-18 Stefan Monnier <monnier@iro.umontreal.ca>
583
584 * dired.c (file_name_completion): Disable the first optimization just
585 installed, since it is not implemented correctly.
586
2cd298e2
SM
5872009-03-17 Stefan Monnier <monnier@iro.umontreal.ca>
588
589 * dired.c (file_name_completion): Check completion-ignored-extensions
c95a5008 590 only if the entry can affect bestmatch.
2cd298e2
SM
591 Stop the search early, as Ftry_completion already does.
592
48d37adf
CY
5932009-03-17 Chong Yidong <cyd@stupidchicken.com>
594
e10c9c93 595 * minibuf.c (Vminibuffer_completion_confirm): Doc fix.
48d37adf 596
9286b16a
CY
5972009-03-15 Chong Yidong <cyd@stupidchicken.com>
598
599 * keyboard.c (parse_menu_item): Don't display remappings as menu
600 equivalent bindings (Bug#788).
601
f7b146dc
JR
6022009-03-15 Jason Rumney <jasonr@gnu.org>
603
604 * w32term.h (WM_EMACS_PAINT): New message.
605 * w32term.c (w32_read_socket): Use it instead of WM_PAINT.
606 * w32fns.c (w32_wnd_proc): Change WM_PAINT to WM_EMACS_PAINT
607 before passing to lisp thread. (Bug#950)
608
f761d6b6 6092009-03-14 David Reitter <david.reitter@gmail.com>
c6c62e78 610
d93f9575
CY
611 * nsterm.m (ns_shutdown_properly, -terminate): Remove global state
612 variable as it was never reset.
613 (ns_term_init): Remove initialization of Lisp-settable defaults
614 and ns_expand_space.
615 (-setPanelFromDefaultValues): Remove ns_expand_space.
616 (-showPreferencesWindow): Send new KEY_NS_SHOW_PREFS key.
617 * nsfont.m (nsfont_open): Remove ns_expand_space, assume -0.5
c6c62e78
DR
618 i.e. no additional spacing, similar to Carbon port.
619
d93f9575
CY
620 * nsterm.h: Define KEY_NS_SHOW_PREFS key.
621 * nsfns.m (ns-popup-prefs-panel): Remove.
c6c62e78 622
305018ec
JD
6232009-03-14 Jan Djärv <jan.h.d@swipnet.se>
624
625 * sound.c (alsa_configure): Remove call to deprecated
626 snd_pcm_sw_params_set_xfer_align.
627
f761d6b6 6282009-03-14 Stephen Berman <stephen.berman@gmx.net>
4a02423f
JD
629
630 * gtkutil.c (xg_tool_bar_callback): Set focus back to the frame
631 after clicking in a detached tool bar.
632 (xg_tool_bar_proxy_callback): Remove call to Fx_focus_frame.
633
46e722a9
SM
6342009-03-13 Stefan Monnier <monnier@iro.umontreal.ca>
635
348db3dd
SM
636 * fontset.c (fontset_from_font, Ffontset_info): YAILOM (Yet another
637 int/Lisp_Object mixup).
46e722a9 638
a3d16f39
KH
6392009-03-13 Kenichi Handa <handa@m17n.org>
640
641 * fontset.c (Ffontset_info, check_fontset_name): New arg frame.
fe24f56a 642 Handle NAME nil and t correctly. Callers changed.
a3d16f39
KH
643 (font_def_arg, add_arg, from_arg, to_arg): Delete them.
644 (set_fontset_font): Change ARG to a vector. Handle range_list in
645 ARG correctly.
646 (Fset_fontset_font): Fix the case that TARGET is both a script
fe24f56a 647 name and charset name. Adjust the arg to set_fontset_font for
a3d16f39
KH
648 the above change.
649 (fontset_from_font): Fix previous change.
fe24f56a 650 (Ffontset_info): Adjust for the 2008-07-09 change of fontset
a3d16f39
KH
651 entry. If FONTSET is the default fontset, don't set the extra
652 slot of the returning char-table.
653
b066e6b6
JB
6542009-03-12 Juanma Barranquero <lekktu@gmail.com>
655
656 * nsfns.m (Fx_close_connection): Doc fix.
657 (Fns_do_applescript): Reflow docstring.
658 (Fns_hide_others, Fns_hide_emacs, Fns_convert_utf8_nfd_to_nfc)
659 (Fx_display_pixel_width, Fx_display_pixel_height)
660 (Fns_display_usable_bounds, Fx_display_planes, Fx_show_tip):
661 Fix typos in docstrings.
662 (Fns_set_alpha): Fix typos in error messages.
663
d472514e 6642009-03-12 David Reitter <david.reitter@gmail.com>
d6220c13 665
d472514e 666 * termhooks.h [HAVE_NS]: Define NS_NONKEY_EVENT to be used for
d6220c13
DR
667 non-key system events on NS. Formerly, NON_ASCII_KEYSTROKE_EVENT
668 were used for such events.
669
d472514e
JB
670 * nsterm.m (newFrame, openFile, fulfillService, changeFont)
671 (toggleToolbar, performDragOperation, runHelp): Use it.
d6220c13 672
d472514e 673 * keyboard.c (parse_menu_item) [HAVE_NS]: Treat new event like
d6220c13
DR
674 NON_ASCII_KEYSTROKE_EVENT, but set used_mouse_menu.
675
fb930676
KH
6762009-03-11 Kenichi Handa <handa@m17n.org>
677
ff85581a
KH
678 * font.h (font_open_by_spec): Extern it.
679
c50b7e98
KH
680 * font.c (font_open_by_spec): New function.
681 (font_open_by_name): Use font_open_by_spec.
682
fb930676
KH
683 * frame.c (x_set_font): When ARG is a font-object, don't alter the
684 fontset of the frame.
685
686 * fontset.c (Fset_fontset_font): When a font for ASCII is changed,
687 modify the default font of frames that use this fontset.
688 (num_auto_fontsets): New variable.
689 (fontset_from_font): Use num_auto_fontsets to decide a fontset
690 name. Be sure to set FONTSET_ASCII to the correct font name.
691 (update_auto_fontset_alist): New function.
692
df4e8455
JB
6932009-03-11 Juanma Barranquero <lekktu@gmail.com>
694
695 * makefile.w32-in: Update dependencies.
696
0a375797
AR
6972009-03-06 Adrian Robert <Adrian.B.Robert@gmail.com>
698
699 * nsfns.m (syms_of_nsfns): Remove Qbuffered.
700
61313fa3
SM
7012009-03-10 Stefan Monnier <monnier@iro.umontreal.ca>
702
703 * buffer.c (Fswitch_to_buffer): Revert part of 2008-10-21's change.
704
b55103fb
CY
7052009-03-10 Chong Yidong <cyd@stupidchicken.com>
706
707 * lread.c (Feval_buffer): Doc fix.
708
dde2559c
KH
7092009-03-09 Kenichi Handa <handa@m17n.org>
710
711 * charset.c (Qfile_name_handler_alist): Extern it.
712 (load_charset_map_from_file): Temporarily bind
713 `file-name-handler-alist' to nil while calling openp. (Bug#2435)
714
df4e8455 7152009-03-06 Aaron Ecay <aaronecay@gmail.com> (tiny change)
340e08a4 716
47f588bb
GM
717 * nsterm.m (ns_draw_vertical_window_border): Draw 1 pixel wide,
718 not two, and use NSRectFill instead of NSDrawGroove. (Bug#2352)
340e08a4 719
4ddf94bd
AR
7202009-03-06 Adrian Robert <Adrian.B.Robert@gmail.com>
721
4c9bdfc2
AR
722 * nsterm.m: Include <signal.h> for SIGTERM used in ns_term_shutdown.
723 (x_set_window_size): Change back to calculated method of setting
724 toolbar height under Cocoa. (Bug#2546)
4ddf94bd
AR
725 (EmacsView-windowWillUseStandardFrame:defaultFrame:): New method.
726 (EmacsView-drawRect:): Completely shortcircuit if ns_in_resize.
727
fe41ae9e
AR
728 * nsfns.m (ns_appkit_version_int): Fix typo in the version macro.
729
4c9bdfc2
AR
730 * nsmenu.m (EmacsMenu-addItemWithWidgetValue:): Don't add
731 accelerator in parens under GNUstep.
732
825d0875
KH
7332009-03-06 Kenichi Handa <handa@m17n.org>
734
735 These changes are to detect incorrect composition sequence without
f3b3be74 736 looking ahead the source. (Bug#2370)
825d0875
KH
737
738 * coding.h: Include "composite.h".
739 (enum compisition_state): New enum.
740 (struct compisition_status): New struct.
741 (struct iso_2022_spec): New member cmp_status.
742 (struct emacs_mule_spec): New struct.
743 (struct coding_system): New members ctext_extended_segment_len and
744 embedded_utf_8. Change the union member
745 spec.emacs_mule_full_support to spec.emacs_mule.
746
747 * coding.c (CODING_ISO_CMP_STATUS): New macro.
748 (CODING_ISO_EXTSEGMENT_LEN, CODING_ISO_EMBEDDED_UTF_8): New macros.
98a326f7 749 (MAX_ANNOTATION_LENGTH): Define to 5.
825d0875
KH
750 (ADD_COMPOSITION_DATA): New arg nbytes.
751 (emacs_mule_char): New arg cmp_status.
752 (DECODE_EMACS_MULE_COMPOSITION_CHAR): Delete it.
753 (DECODE_EMACS_MULE_COMPOSITION_RULE_20): New arg c.
754 (DECODE_EMACS_MULE_COMPOSITION_RULE_21): New arg c.
755 (DECODE_EMACS_MULE_21_COMPOSITION): Delete the arg c.
756 (DECODE_EMACS_MULE_20_RELATIVE_COMPOSITION): Likewise.
757 (DECODE_EMACS_MULE_20_RULEBASE_COMPOSITION): Likewise.
758 (DECODE_EMACS_MULE_COMPOSITION_START): New macro.
759 (EMACS_MULE_COMPOSITION_END): New macro.
760 (emacs_mule_finish_composition): New function.
761 (EMACS_MULE_MAYBE_FINISH_COMPOSITION): New macro.
762 (decode_coding_emacs_mule): Avoid long looking ahead while
763 handling composition.
764 (DECODE_COMPOSITION_RULE): Argument changed to rule and nbytes.
765 (ENCODE_COMPOSITION_RULE): New macro.
766 (finish_composition): New function.
767 (MAYBE_FINISH_COMPOSITION): Call finish_composition.
768 (DECODE_COMPOSITION_START): New implementation.
769 (DECODE_COMPOSITION_END): Likewise.
770 (STORE_COMPOSITION_RULE): New macro.
771 (decode_coding_iso_2022): Avoid long looking ahead while handling
772 composition, CTEXT extended segment, and embedded UTF-8.
773 (setup_coding_system): For a coding of type iso-2022, reset
774 CODING_ISO_EXTSEGMENT_LEN (coding) and
775 CODING_ISO_EMBEDDED_UTF_8 (coding).
776 (get_translation): Delete arguments last_block, from_nchars,
777 to_nchars. Callers changed.
778 (produce_chars): Don't modify charbuf. Adjusted for the change of
779 get_translation.
98a326f7 780 (produce_composition): Adjust for the new annotation sequence.
825d0875 781 (handle_composition_annotation): Likewise.
98a326f7 782 (consume_chars): Adjust for the change of get_translation.
825d0875 783
ccbc4452
AR
7842009-03-05 Adrian Robert <Adrian.B.Robert@gmail.com>
785
4ddf94bd 786 * nsterm.m (ns_select): Shortcircuit if reentrant call. (Bug#2564)
ccbc4452 787
988a7ddb
KH
7882009-03-05 Kenichi Handa <handa@m17n.org>
789
790 * font.c (font_select_entity): New function.
791 (font_find_for_lface): Use font_select_entity to select a font.
792
793 * fontset.c (fontset_find_font): If a font found without
a8a3728b 794 restricting to the characters C doesn't support C, try to find a
988a7ddb
KH
795 font with C restriction.
796
98a326f7 7972009-03-04 Nikolaj Schumacher <me@nschum.de>
2f462d73 798
be1bce46 799 * nsfont.m (nsfont_draw): Compare ns_antialias_text against lisp value.
2f462d73 800
10ea2b82
JR
8012009-03-04 Jason Rumney <jasonr@gnu.org>
802
2c93b248 803 * w32fns.c (w32_wnd_proc): Only ignore IME messages for the
4891ba1d 804 characters that have already been read. (Bug#2569)
2c93b248 805
10ea2b82
JR
806 * image.c (xbm_read_bitmap_data, png_load, svg_load_image):
807 Log an error message if check_image_size failed.
808 (xpm_load_image, pbm_load, jpeg_load, tiff_load, gif_load)
4891ba1d 809 (gs_load): Mention max-image-size in size error message. (Bug#2560)
10ea2b82 810
71a0c011
EZ
8112009-03-02 Eli Zaretskii <eliz@gnu.org>
812
813 * callproc.c (Fcall_process): Bind inhibit-modification-hooks to t
814 when decoding process output.
815
2f63bba8
RS
8162009-03-01 Richard M Stallman <rms@gnu.org>
817
818 * m/mips.h (DATA_SEG_BITS, XUINT, XSET): Definitions disabled.
819
820 * emacs.c (gdb_data_seg_bits) [USE_LSB_TAG]: Make it 0.
821
0a9564cb
EZ
8222009-02-28 Eli Zaretskii <eliz@gnu.org>
823
824 * coding.c (decode_coding_utf_8, decode_coding_utf_16)
825 (decode_coding_emacs_mule, decode_coding_iso_2022)
826 (encode_coding_iso_2022, decode_coding_sjis, decode_coding_big5)
827 (decode_coding_raw_text, decode_coding_charset)
828 (setup_coding_system, decode_eol, decode_coding, consume_chars):
829 Honor inhibit-eol-conversion. (Bug #2186)
830
449148b3
JR
8312009-02-28 Jason Rumney <jasonr@gnu.org>
832
833 * coding.c (detect_coding_charset): If not checking latin extra,
834 fail on characters between 0x80 and 0xA0. (Bug#2354)
835
a4aee864
EZ
8362009-02-28 Eli Zaretskii <eliz@gnu.org>
837
838 * coding.c (detect_coding_charset): Fix change from 2008-10-21.
2a1573ff 839 Also, check iso-latin-*, not only iso-8859-*. (Bug#2497)
a4aee864 840
d88bee5a
GM
8412009-02-27 Glenn Morris <rgm@gnu.org>
842
843 * callint.c (Finteractive): Doc fix.
844
a808f22d
KH
8452009-02-27 Kenichi Handa <handa@m17n.org>
846
847 * lread.c (read_escape): Signal an error for invalid \UXXXXXXXX.
848
caf8d60c
CY
8492009-02-27 Chong Yidong <cyd@stupidchicken.com>
850
851 * font.c (font_style_to_value): Set value for unknown symbols to
852 100 instead of 255.
b61137ea
CY
853 (weight_table, slant_table, width_table): Treat "unspecified" as
854 the default value.
caf8d60c 855
1a0de25c
JB
8562009-02-26 Juanma Barranquero <lekktu@gmail.com>
857
858 * fileio.c (Fnext_read_file_uses_dialog_p): Fix typo in docstring.
859
8fc45744
JB
8602009-02-25 Juanma Barranquero <lekktu@gmail.com>
861
107bd7d1
JB
862 * lread.c (Fload): Stop checking Vloads_in_progress and signal
863 error as soon as a recursive load is detected.
8fc45744 864
f097e223
AR
8652009-02-24 Adrian Robert <Adrian.B.Robert@gmail.com>
866
867 * nsterm.m (ns_ring_bell): Convert rect to window coordinates
868 before caching.
869
8810a12f
KH
8702009-02-24 Kenichi Handa <handa@m17n.org>
871
872 * fontset.c (fontset_find_font): Fix the condition for checking
873 unavailable font.
874
2c7d1565
GM
8752009-02-24 Glenn Morris <rgm@gnu.org>
876
877 * xfaces.c (Finternal_set_font_selection_order): Remove leading
878 whitespace that confuses documentation.
879
a20878b6
MB
8802009-02-23 Miles Bader <miles@gnu.org>
881
882 * process.c (Flist_system_processes, Fprocess_attributes)
883 (syms_of_process): Rename `system-process-attributes' to
884 `process-attributes'.
885
b3b58c01
AS
8862009-02-22 Andreas Schwab <schwab@linux-m68k.org>
887
1b3b981b
AS
888 * coding.h (struct coding_system): Make safe_charsets a pointer to
889 unsigned char.
890 * coding.c (CODING_ISO_REQUEST): Check for safe_charsets content
891 being 255.
892 (SAFE_CHARSET_P): Likewise.
893 (setup_iso_safe_charsets): Properly setup safe_charsets.
894 (Fdefine_coding_system_internal): Likewise.
895 (setup_coding_system): Likewise. Remove unneeded casts.
896 (detect_coding_iso_2022): Compare Viso_2022_charset_list with
897 CODING_ATTR_CHARSET_LIST, not CODING_ATTR_SAFE_CHARSETS. Remove
898 unneeded casts.
899
b3b58c01
AS
900 * insdel.c (del_range_2): Don't modify gap contents when called
901 from decode_coding_object. (Bug#1809)
902
0b6f228c
CY
9032009-02-21 Chong Yidong <cyd@stupidchicken.com>
904
905 * data.c (syms_of_data): Define Qfont_spec, Qfont_entity, and
906 Qfont_object.
907 (Ftype_of): Recognize font objects.
908
909 * lisp.h: Define Qfont_spec, Qfont_entity, Qfont_object extern.
910
911 * font.c (Qfont_spec, Qfont_entity, Qfont_object): Definitions
912 moved to data.c.
913
52f8870b
AR
9142009-02-20 Adrian Robert <Adrian.B.Robert@gmail.com>
915
916 * nsterm.m (x_make_frame_invisible): Unset async_visible,
917 async_iconified. Based on a patch by Christian Lynbech
918 <christian.lynbech@tieto.com>.
919 (EmacsView-windowDidMiniaturize:): Unset async_visible.
920
7087d5e9
GM
9212009-02-20 Glenn Morris <rgm@gnu.org>
922
923 * syntax.c (Fskip_chars_forward): Fix doc typo.
924
41d2ceef
CY
9252009-02-20 Chong Yidong <cyd@stupidchicken.com>
926
927 * keymap.c (Fkeymap_parent): Doc fix (Bug#2391).
928
1a3b7ca6
CY
9292009-02-19 Chong Yidong <cyd@stupidchicken.com>
930
931 * xfns.c (Fx_create_frame): Give Xft driver a higher priority.
932
73cce38d
KH
9332009-02-19 Kenichi Handa <handa@m17n.org>
934
935 * coding.c (detect_coding): Preserve coding->mode.
2bc550cb 936 Don't overflow coding->carryover. (Bug#2370)
73cce38d 937
a51092ee
DN
9382009-02-18 Dan Nicolaescu <dann@ics.uci.edu>
939
940 * m/ibmrs6000.h (ADDR_CORRECT): Restore, removed by mistake on 2008-07-23.
941
c423ecca
KH
9422009-02-18 Kenichi Handa <handa@m17n.org>
943
944 * font.c (font_check_otf_features): Fix handling of `nil' element.
945 (Ffont_spec): Describe :lang and :otf in the docstring.
946
4c1958f4
AS
9472009-02-16 Andreas Schwab <schwab@suse.de>
948
949 * coding.c (Fcheck_coding_systems_region): Fix test for unibyte
950 string.
951
5704f39a
KH
9522009-02-16 Kenichi Handa <handa@m17n.org>
953
954 * coding.c (Fcheck_coding_systems_region): Fix typo; Qt -> Qnil.
a057d86a 955 (Bug#1723)
5704f39a 956
8f0085aa
CY
9572009-02-14 Chong Yidong <cyd@stupidchicken.com>
958
a057d86a 959 * dispextern.h (struct iterator_stack_entry): New line_wrap member.
8f0085aa
CY
960
961 * xdisp.c (push_it, pop_it): Save and restore line_wrap.
962 (handle_line_prefix): Suppress wrapping of wrap prefixes.
963
aff01dd9
EZ
9642009-02-14 Eli Zaretskii <eliz@gnu.org>
965
966 * msdos.c (MAX_SCREEN_BUF): New macro.
967 (IT_write_glyphs): Make screen_buf[] always be MAX_SCREEN_BUF-long.
968 Encode the entire run of glyphs sharing the same face, instead of
969 doing that one glyph at a time (fixes a bug with displaying
970 double-size characters).
971
ba301db3
AR
9722009-02-13 Adrian Robert <Adrian.B.Robert@gmail.com>
973
974 * nsfns.m (ns-read-file-name): BLOCK_INPUT while showing dialog.
975
976 * nsmenu.m (pop_down_menu): Check popup_activated_flag.
977 (ns_popup_dialog, EmacsDialogPanel-runDialogAt:): Let
a057d86a 978 pop_down_menu do the cleanup work as it is always called. (Bug#2154)
ba301db3
AR
979
980 * nsfont.m (nsfont_make_fontset_for_font): For now, don't try to
a057d86a 981 set fontset font for "mathematical-" sub-scripts. (Bug #2218)
ba301db3 982
51d861de
SM
9832009-02-12 Stefan Monnier <monnier@iro.umontreal.ca>
984
985 * keyboard.c (adjust_point_for_property): Allow stopping betwen two
986 invisible areas.
987
7fed8996
JR
9882009-02-12 Jason Rumney <jasonr@gnu.org>
989
631ea4fb
JR
990 * w32font.c (check_face_name): Check for fake helv. (Bug#2275)
991 (add_font_entity_to_list): Call check_face_name even when family
992 is unspecified.
993
cb4a3e42
JR
994 * w32term.c (x_display_pixel_height, x_display_pixel_width):
995 Release DC when finished. Use NULL window to refer to desktop.
631ea4fb 996 (w32_term_init): Use NULL window to refer to desktop. (Bug#460)
cb4a3e42 997
7fed8996 998 * w32font.c (add_font_entity_to_list): Fix check for substituted
631ea4fb 999 raster fonts. (Bug#2219)
7fed8996 1000
895416e3
KH
10012009-02-12 Kenichi Handa <handa@m17n.org>
1002
1003 * composite.c (MAX_AUTO_COMPOSITION_LOOKBACK): New macro.
1004 (composition_gstring_width): Fix handling of LGLYPH_YOFF.
1005 (autocmp_chars): Use fast_looking_at. Don't compose more
1dacf998 1006 characters than MAX_COMPOSITION_COMPONENTS.
895416e3
KH
1007 (find_automatic_composition): While looking forward and backward,
1008 check static composition. Fix where to stop looking forward.
1009 (composition_adjust_point): Fix checking of static composition.
1010 (Fcomposition_get_gstring): Pay attention to
1dacf998 1011 MAX_COMPOSITION_COMPONENTS.
895416e3
KH
1012
1013 * lisp.h (fast_looking_at): Extern it.
1014
1015 * search.c (fast_looking_at): New function.
1016
51d861de 1017 * term.c (encode_terminal_code): Adjust for the change of
895416e3
KH
1018 <struct glyph>.u.cmp.to.
1019 (append_composite_glyph): Likewise.
1020
51d861de 1021 * xdisp.c (fill_gstring_glyph_string): Adjust for the change of
895416e3
KH
1022 <struct glyph>.u.cmp.to. Check if the glyph belongs to the same
1023 composition.
51d861de 1024 (append_composite_glyph): Adjust for the change of
895416e3
KH
1025 <strcut glyph>.u.cmp.to.
1026
8510724d
JB
10272009-02-11 Juanma Barranquero <lekktu@gmail.com>
1028
1029 * casetab.c (init_casetab_once):
1030 * coding.c (ALLOC_CONVERSION_WORK_AREA):
1031 * font.c (font_update_lface):
1032 * fontset.c (Fnew_fontset):
1033 * ftfont.c (ftfont_drive_otf):
1034 * xfont.c (xfont_open):
1035 * xftfont.c (xftfont_get_xft_draw): Remove spurious semicolons.
1036
294fa707
SM
10372009-02-11 Stefan Monnier <monnier@iro.umontreal.ca>
1038
1039 * fileio.c (Fwrite_region): !NILP -> CONSP.
1040
b5bfebec
AS
10412009-02-10 Andreas Schwab <schwab@suse.de>
1042
1043 * process.c (send_process): Properly relocate pointer into data
adab88bd 1044 when using encoded data. (Bug#2272)
b5bfebec 1045
cb84a2be
KH
10462009-02-08 ARISAWA Akihiro <ari@mbf.sphere.ne.jp>
1047
1048 * coding.c (detect_coding_charset): Fix previous change.
1049
89e09428
JR
10502009-02-08 Jason Rumney <jasonr@gnu.org>
1051
1052 * w32fns.c (w32_hide_hourglass): Handle case where frame
adab88bd 1053 disappeared while hourglass was displayed. (Bug #2193)
89e09428 1054
4470a277
AS
10552009-02-07 Andreas Schwab <schwab@suse.de>
1056
1057 * unexelf.c (unexec): Fix error message.
1058
3175b12a
AR
10592009-02-07 Adrian Robert <Adrian.B.Robert@gmail.com>
1060
1061 * nsterm.m (EmacsApp-sendEvent:): Defer NSApplicationDefined event
adab88bd 1062 when modal window is active. (Bug #2152)
3175b12a
AR
1063 (applicationShouldTerminate:): Remove now-unneeded while loop
1064 around NSRunAlertPanel.
1065
1066 * nsmenu.m (popupSession): New file-global variable.
1067 (pop_down_menu): End the popupSession before closing dialog.
1068 (ns_popup_dialog): BLOCK_INPUT around dialog presentation.
1069 (EmacsDialogPanel-runDialogAt:): Don't place window (superfluous),
1070 don't query NSApp for events (just sleep instead).
1071
8434d0b8
EZ
10722009-02-07 Eli Zaretskii <eliz@gnu.org>
1073
51d861de
SM
1074 * coding.c (syms_of_coding) <translation-table-for-input>:
1075 Modify doc string to discourage use for character code unification.
8434d0b8 1076
aa82edfd
CY
10772009-02-07 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
1078
1079 * atimer.c (run_timers): Update pending_atimers.
1080
2d283c7c
CY
10812009-02-06 Chong Yidong <cyd@stupidchicken.com>
1082
eb306cab
CY
1083 * image.c (svg_load_image): Fix last change.
1084
2d283c7c
CY
1085 * xfns.c (Fx_create_frame): Signal an error if no font is
1086 found (Bug#2147).
1087
4d8e170e
JB
10882009-02-05 Juanma Barranquero <lekktu@gmail.com>
1089
1090 * character.c (syms_of_character) <script-representative-chars>:
1091 Fix typo in docstring.
1092
c96169a0
AR
10932009-02-04 Adrian Robert <Adrian.B.Robert@gmail.com>
1094
1095 * nsmenu.m (pop_down_menu): New function.
1096 (ns_popup_dialog): Call it on unwind.
1097 (EmacsDialogPanel-runDialogAt:): Check popup_activated_flag and
1098 call timer_check() (Bug#2154).
1099 (EmacsMenu-menuNeedsUpdate:): Don't call ns_update_menu if
1100 handling_signal is set.
1101 (EmacsMenu-fillWithWidgetValue:): Set submenu title.
1102
1103 * config.in: Get rid of COCOA_EXPERIMENTAL_CTRL_G
1104
1105 * s/darwin.h: Same and NO_SOCK_SIGIO as well.
1106
1107 * nsterm.m (ns_read_socket): Same and don't set handling_signal.
1108
51d861de
SM
1109 * keyboard.c (poll_for_input_1, handle_async_input):
1110 Set handling_signal under HAVE_NS.
c96169a0 1111
aacd8ba1
GM
11122009-02-04 Glenn Morris <rgm@gnu.org>
1113
1114 * fileio.c (Fwrite_region): Doc fix (mention annotate-functions).
1115
4cb75c4b
KH
11162009-02-04 Kenichi Handa <handa@m17n.org>
1117
1118 * Makefile.in (composite.o): Depends on frame.h and termhooks.h.
1119
1120 * charset.c (Fchar_charset): New optional arg restriction.
1121
1122 * coding.h (coding_system_charset_list): Extern it.
1123
1124 * coding.c (coding_system_charset_list): New function.
1125
1126 * composite.c: Include coding.h and termhooks.h.
1127 (composition_gstring_p): Fix for the terminal case.
1128 (composition_gstring_width): Likewise.
1129 (fill_gstring_body): Likewise.
1130 (autocmp_chars): For terminal, call Fcomposition_get_gstring with
1131 the frame.
1132 (composition_compute_stop_pos): Adjust cmp_it->stop_pos if point
1133 is within a composition.
867d4bb3 1134 (Fcomposition_get_gstring): Fix the terminal case.
4cb75c4b
KH
1135
1136 * term.c (encode_terminal_code): Fix handling of composition.
1137 (produce_composite_glyph): For static composition, get pixel_width
1138 from struct composition.
1139
826ba17e
AS
11402009-02-02 Andreas Schwab <schwab@suse.de>
1141
1142 * unexelf.c (unexec): Handle unaligned bss offset.
1143
8ad093db
AR
11442009-02-01 Adrian Robert <Adrian.B.Robert@gmail.com>
1145
1146 * nsterm.m (ns_read_socket): Copy 2009-01-29 and 2009-01-30
1147 XT,w32read_socket changes to ns_read_socket.
d0a76a6e 1148
8ad093db
AR
1149 * keyboard.c (handle_interrupt): Don't call
1150 quit_throw_to_read_char() under NS.
d0a76a6e 1151
8ad093db
AR
1152 * blockinput.h: Remove NS-specific code.
1153
4d18a7a2
DN
11542009-01-30 Dan Nicolaescu <dann@ics.uci.edu>
1155
db878925
DN
1156 * dispnew.c (window_change_signal): Don't try to get the size of a
1157 suspended tty frame.
1158 * term.c (Fresume_tty): Resize if the size has changed while the
1159 tty was suspended.
1160
4d18a7a2
DN
1161 * alloc.c (mark_stack): Properly conditionalize previous change.
1162
8984df7c
JB
11632009-01-30 Juanma Barranquero <lekktu@gmail.com>
1164
1165 * w32inevt.c (w32_console_read_socket) [SYNC_INPUT]:
1166 * w32term.c (w32_read_socket) [SYNC_INPUT]:
1167 Remove; this code is not used on Windows.
1168
75f4f1ac
EZ
11692009-01-30 Eli Zaretskii <eliz@gnu.org>
1170
1171 * coding.c (detect_eol, decode_eol): Handle text with DOS-style
1172 EOLs that also has stray ^M characters.
1173
07a1e794
JB
11742009-01-30 Juanma Barranquero <lekktu@gmail.com>
1175
1176 * atimer.c (run_timers, alarm_signal_handler):
1177 * keyboard.c (pending_signals, handle_async_input, init_keyboard):
1178 * w32inevt.c (w32_console_read_socket):
1179 * w32term.c (w32_read_socket):
1180 * xterm.c (XTread_socket): Use "#ifdef SYNC_INPUT" where appropriate.
1181
a8b11cc9
CY
11822009-01-30 Chong Yidong <cyd@stupidchicken.com>
1183
1184 * callproc.c (Vtemp_file_name_pattern): Remove DEFVAR_LISP.
1185 Initialize it as a relative filename pattern.
1186 (init_callproc): Don't initialize Vtemp_file_name_pattern here.
1187 (Fcall_process_region): Simplify temp file creation using
1188 temporary-file-directory.
1189
c279587b
EZ
11902009-01-29 Eli Zaretskii <eliz@gnu.org>
1191
1192 * msdos.c: Rename pending_signals to msdos_pending_signals.
1193 (sig_suspender, sigprocmask): Adjust.
1194
a8fe3242
CY
11952009-01-29 Chong Yidong <cyd@stupidchicken.com>
1196
1197 * keyboard.c (pending_signals): New var.
1198 (poll_for_input, input_available_signal, init_keyboard): Set it.
1199 (process_pending_signals): New function.
1200
1201 * lisp.h (QUIT): Check pending_signals instead of
1202 interrupt_input_pending. Use process_pending_signals.
1203
51d861de 1204 * atimer.c (run_timers, alarm_signal_handler): Update pending_signals.
a8fe3242 1205
51d861de 1206 * process.c (wait_reading_process_output): Use process_pending_signals.
a8fe3242
CY
1207
1208 * sysdep.c (emacs_write): Use process_pending_signals.
1209
1210 * xterm.c (XTread_socket): Update pending_signals.
1211
1212 * w32term.c (w32_read_socket): Update pending_signals.
1213
1214 * w32inevt.c (w32_console_read_socket): Update pending_signals.
1215
6570a1c4
KH
12162009-01-29 Kenichi Handa <handa@m17n.org>
1217
1218 * xftfont.c (xftfont_has_char): New function.
1219 (syms_of_xftfont): Register xftfont_has_char in xftfont_driver.
1220
d72a4afa
AR
12212009-01-29 Adrian Robert <Adrian.B.Robert@gmail.com>
1222
1223 * nsterm.h (EmacsPrefsController.cursorBlinkSlider): Only define
1224 under GNUstep.
1225 (ns_query_color): New declaration.
1226
1227 * nsterm.m (ns_confirm_quit): New variable.
1228 (ns_set_default_prefs, syms_of_nsterm, ns_term_init): Initialize it.
1229 (EmacsApp-applicationShouldTerminate:): Use it.
1230 (EmacsPrefsController): Let user set it.
1231 (ns_query_color): New function.
1232 (ns_defined_color): Use it.
1233 (ns_initialize): Drop.
1234 (ns_term_init): Add two lines from ns_initialize(), and set
1235 input_interrupt_mode to nil.
1236
1237 * image.c (svg_load_image): Don't right-shift background RGB when
6af84d77 1238 obtained from FRAME_BACKGROUND_PIXEL. Under HAVE_NS use ns_query_color.
d72a4afa 1239
9fe78804
KH
12402009-01-28 Kenichi Handa <handa@m17n.org>
1241
1242 * fontset.c (font_for_char): Use assq_no_quit, not assoc_no_quit.
f088b054
KH
1243 (fontset_get_font_group): Remember that no font-group is specified
1244 for C.
9fe78804 1245
fa57de36
CY
12462009-01-27 Chong Yidong <cyd@stupidchicken.com>
1247
930600e9
CY
1248 * fns.c (concat): Check for string overflow (bug#1787).
1249
fa57de36
CY
1250 * undo.c (undo_limit, undo_strong_limit, Vundo_outer_limit):
1251 Quadruple undo limits (bug#1501).
1252
7179ce7b
KH
12532009-01-27 Kenichi Handa <handa@m17n.org>
1254
1255 * ftfont.c (ftfont_has_char): If the arg FONT is a font-object,
1256 directly use GT_Get_Char_index.
1257
1258 * xftfont.c (struct xftfont_info): New member `index'.
1259
1260 * fontset.c (font_for_char): Use assq_no_quit, not assoc_no_quit.
51d861de 1261 (Ffontset_font): Adjust for the change of fontset entry.
7179ce7b 1262
5be8fcc0
CY
12632009-01-26 Kenichi Handa <handa@m17n.org>
1264
1265 * fontset.c (fontset_find_font): Fix handling of non-cons return
1266 value of fontset_get_font_group.
1267 (fontset_font): Revert last change.
1268
19ae3e61
JR
12692009-01-26 Jason Rumney <jasonr@gnu.org>
1270
1271 * w32font.c (w32font_list_internal): Return quickly if registry is
1272 unknown. Simplify final return.
1273 (add_font_entity_to_list): Break complex logic down into more
1274 manageable chunks. Move unknown registry check to
1275 w32font_list_internal.
1276
8612b71a
AR
12772009-01-25 Adrian Robert <Adrian.B.Robert@gmail.com>
1278
1279 Changes to remove Feval calls from GUI under NS.
1280
d8038940
JB
1281 * nsterm.h: Move KEY_NS_... definitions here from nsterm.m.
1282 Add NS_TOGGLE_TOOLBAR, NS_PUT_WORKING_TEXT, NS_UNPUT_WORKING_TEXT.
8612b71a
AR
1283 Remove NS_INSERT_WORKING_TEXT, NS_DELETE_WORKING_TEXT.
1284
1285 * nsterm.m: Move KEY_NS_... definitions to nsterm.h.
1286 (EmacsView-toggleToolbar:): Use KEY_NS_TOGGLE_TOOLBAR.
1287 (EmacsView-setMarkedText:,-deleteWorkingText:): Use NS_TEXT_EVENT
1288 instead of NON_ASCII_KEYSTROKE_EVENT.
1289 (EmacsApp-terminate:): Use KEY_NS_POWER_OFF instead of Feval.
1290 (EmacsApp-applicationShouldTerminate:): Query user.
1291 (EmacsPreferencesController-runHelp:): Use KEY_NS_INFO_PREFS
1292 instead of Feval.
1293
1294 * termhooks.h (NS_TEXT_EVENT): New event type under HAVE_NS.
1295
1296 * keyboard.c (kbd_buffer_get_event): Check for it.
1297 (keys_of_keyboard): Define lispy keys for
1298 ns-put/unput-working-text.
1299
1300 * nsmenu.m (ns_popup_dialog): Resync window setting with X and W32
1301 versions.
1302 (EmacsDialog-runDialogAt:): Use NSModalPanelRunLoopMode.
1303
6288ae55
CY
13042009-01-25 Chong Yidong <cyd@stupidchicken.com>
1305
1306 * dispnew.c (buffer_posn_from_coords): Use Fset_buffer instead of
64cc3cf6 1307 setting current_buffer directly. (Bug#2044)
6288ae55 1308
289e7f8f
CY
13092009-01-24 Chong Yidong <cyd@stupidchicken.com>
1310
5ce87308 1311 * fontset.c (fontset_font): If we know there is no font, don't do
d8038940 1312 any work. (Bug#1952, bug#1990).
5ce87308 1313
64cc3cf6 1314 * font.c (font_parse_xlfd): Handle patterns of length < 2. (Bug#1802)
289e7f8f 1315
b3243e6f
AR
13162009-01-23 Adrian Robert <Adrian.B.Robert@gmail.com>
1317
1318 * emacs.c (main): Do fork+exec under --daemon in Cocoa.
d900b2af
AR
1319 (ns_no_defaults): New declaration.
1320 (main): Use it.
e0d2e69a 1321
d900b2af 1322 * nsterm.h (ns_no_defaults): New declaration.
e0d2e69a 1323
d900b2af 1324 * nsfns.m (x_get_string_resource): Don't read when ns_no_defaults.
e0d2e69a 1325
d900b2af
AR
1326 * nsterm.m (ns_no_defaults): New variable.
1327 (ns_initialize): Don't read defaults when ns_no_defaults.
1328 (EmacsView-readSelectionFromPasteboard:)
1329 (writeSelectionToPasteboard:types:): New stubbed-out methods for
d8038940 1330 NSServicesRequests protocol. (Bug#1435)
27521ca6
AR
1331 (ns_dumpglyphs_stretch): New function.
1332 (ns_draw_glyph_string): Use it, parallel Yamamoto Mitsuharu change
d8038940 1333 of 2008-11-15 to other terms. (Bug#615)
b3243e6f 1334
e0d2e69a
AR
1335 * nsimage.m (setPixmapData:): Set to ignore image DPI.
1336
3ac71f5d
CY
13372009-01-23 Giorgos Keramidas <keramida@freebsd.org> (tiny change)
1338
1339 * alloc.c (mark_stack): Use "flushw" instead of "ta 3" assembly
1340 call for Sparc64.
1341
3fe53a83
AR
13422009-01-22 Adrian Robert <Adrian.B.Robert@gmail.com>
1343
1344 * nsfns.m:
1345 * nsgui.h:
1346 * nsmenu.m:
1347 * nsselect.m:
1348 * nsterm.h:
1349 * nsterm.m: Remove '23' comments that indicated code added during
1350 update from emacs-20 -> emacs-23.
1351
10f87c6f 13522009-01-22 Adrian Robert <Adrian.B.Robert@gmail.com>
a3b53a85
AR
1353
1354 * nsterm.m (EmavsView-keyDown:): Treat nil as Qnone for
3a88a825 1355 ns_alternate_modifier. (Bug#1217)
a3b53a85 1356
c7cef62d
AR
1357 * nsmenu.m (EmacsMenu-parseKeyEquiv:, addItemWithWidgetValue:):
1358 Display all shortcuts, including those w/o super modifier.
1359
575fb8bd
AR
1360 * nsfns.m (ns-read-file-name): Fix typo in assignment statement.
1361
918b848b
CY
13622009-01-22 Chong Yidong <cyd@stupidchicken.com>
1363
1364 * fileio.c (Vwrite_region_post_annotation_function)
1365 (Vwrite_region_annotation_buffers): New vars.
1366 (build_annotations_unwind): Just reset
1367 Vwrite_region_annotation_buffers.
1368 (Fwrite_region): Initialize Vwrite_region_annotation_buffers.
1369 Call write-region-post-annotation-function.
1370 (build_annotations): Add to Vwrite_region_annotation_buffers if
1371 buffer changes.
1372
a39e2539
AR
13732009-01-21 Adrian Robert <Adrian.B.Robert@gmail.com>
1374
1375 * nsterm.h (EmacsApp-setAppleMenu:): Conditionalize more correctly on
1376 Tiger.
51d861de
SM
1377 * nsfns.m (ns_do_applescript):
1378 Conditionalize typeUTF16ExternalRepresentation on Tiger.
a39e2539 1379
35ed44db
AR
13802009-01-21 Wolfgang Lux <wolfgang.lux@gmail.com> (tiny change)
1381
1382 * nsterm.m (EV_TRAILER): Always use emacsframe for frame_or_window.
1383
cbe0b5bf
AR
13842009-01-21 Adrian Robert <Adrian.B.Robert@gmail.com>
1385
1386 * nsmenu.m (NSMENUPROFILE): Change #if style.
4c7077c3 1387
6049d3a0
AR
1388 * nsterm.h (EmacsPrefsController): Add -setPanelFromDefaultValues.
1389
1390 * nsterm.m (x_set_frame_alpha): Add prototype.
a9b4df69
AR
1391 (ns_fake_keydown, EmacsView-keyUp:): New variable and function to
1392 handle Ctrl-tab. (Bug#1841)
1393 (ns_get_color): Use unsigned long long for scanned hex string value.
1394 (ns_term_shutdown): Abort on non SIGTERM signals.
e889fa06 1395 (EmacsPrefsController-setDefaultFont:,-setColors:): Raise the frame.
b71ac3dd 1396 (EmacsPrefsController-setPanelFromDefaultValues): New function.
3a88a825 1397 (EmacsPrefsController-resetToDefaults:): Use it. (Bug#1801)
35ed44db 1398 (ns_font_to_xlfd, ns_fontname_to_xlfd): Remove, unused.
d3810c21 1399 (ns_defined_color): Fix settings of the XColor variable fields:
3a88a825 1400 red,green,blue scale to 2-byte, pixel's parts to 1-byte. (Bug#1663)
cbe0b5bf 1401
d3810c21 1402 * nsimage.m (EmacsImage+allocInitFromFile:): Set to ignore image
3a88a825 1403 DPI. (Bug#1316)
d3810c21
AR
1404 (EmacsImage-setPixelAtX:Y:toRed:green:blue:alpha:): Fix color
1405 values in onTiger section.
4c7077c3 1406
e301e634
CY
14072009-01-19 Chong Yidong <cyd@stupidchicken.com>
1408
7f82490b
CY
1409 * xfaces.c (Finternal_set_lisp_face_attribute, Fx_list_fonts):
1410 Check return value of font_spec_from_name.
64cc3cf6 1411 (Fx_list_fonts): Doc fix. (Bug#1951)
7f82490b
CY
1412
1413 * font.c (font_spec_from_name): Return Qnil if font name could not
1414 be parsed.
1415 (font_parse_name): Treat a `?' character as part of an XLFD.
1416
e301e634
CY
1417 * fns.c (Fsubstring): Doc fix.
1418
1c0db158
KH
14192009-01-19 Kenichi Handa <handa@m17n.org>
1420
51d861de 1421 * ftfont.c (ftfont_lookup_cache): Check the return value of FcFontList.
1c0db158
KH
1422 (ftfont_list): Likewise.
1423
acf20901
JB
14242009-01-18 Juanma Barranquero <lekktu@gmail.com>
1425
fff4e459
JB
1426 * dbusbind.c (Fdbus_register_signal):
1427 * process.c (conv_sockaddr_to_lisp):
1428 * w32fns.c (Fw32_battery_status): Use empty_unibyte_string.
1429
acf20901
JB
1430 * callproc.c (Fgetenv_internal): Doc fix.
1431
e7abcdfb
CY
14322009-01-16 Chong Yidong <cyd@stupidchicken.com>
1433
1434 * xfns.c (x_make_gc): Don't allocate stipple member for gc_values;
1435 it is not even used.
1436
b60861e6
GM
14372009-01-16 Glenn Morris <rgm@gnu.org>
1438
1439 * font.c (Ffont_variation_glyphs): Silence compiler.
1440
8db52afe
JB
14412009-01-15 Juanma Barranquero <lekktu@gmail.com>
1442
1443 * sound.c (SOUND_WARNING): Use _snprintf, for MSVC compatibility.
1444 Reported by David Robinow <drobinow@gmail.com>.
1445
4cddb209
KH
14462009-01-15 Kenichi Handa <handa@m17n.org>
1447
51d861de 1448 * coding.c (detect_coding_system): Fix handling of null_byte_found.
4cddb209 1449
f247f67b
JR
14502009-01-14 Jason Rumney <jasonr@gnu.org>
1451
1452 * frame.c (x_set_font): Always store a font to the font parameter,
fff4e459 1453 never a fontset. (Bug#1562)
f247f67b 1454
f56a4450
KH
14552009-01-14 Kenichi Handa <handa@m17n.org>
1456
1457 * coding.c (TWO_MORE_BYTES): New macro.
fff4e459 1458 (detect_coding_utf_16): Use TWO_MORE_BYTES instead of ONE_MORE_BYTE.
f56a4450 1459
4e99855e
CY
14602009-01-13 Chong Yidong <cyd@stupidchicken.com>
1461
1462 * font.c (font_clear_prop): If clearing the family, clear the font
1463 width index too.
1464
fff4e459 1465 * xfaces.c (Finternal_set_lisp_face_attribute): Revert last change.
4e99855e 1466
24f01470
JB
14672009-01-12 Juanma Barranquero <lekktu@gmail.com>
1468
1469 * sound.c [WINDOWSNT] (SOUND_WARNING): New macro.
1470 (do_play_sound): Use it. Don't pass a hardcoded buffer size to mci
1471 functions, use sizeof.
1472
a41240a3
MR
14732009-01-12 Martin Rudalics <rudalics@gmx.at>
1474
1475 * keyboard.c (read_char): Fix case where last_nonmenu_event
1476 returned a bad value with submenus. (Bug#447)
1477
944636b8
CY
14782009-01-12 Chong Yidong <cyd@stupidchicken.com>
1479
1480 * xfaces.c (Finternal_set_lisp_face_attribute): If setting the
1481 family, clear the font width index too.
1482
0dad7c6f
JR
14832009-01-11 Jason Rumney <jasonr@gnu.org>
1484
1485 * keyboard.c (cmd_error_internal): Exit when errors occur before
1486 frame creation and not in daemon mode. (Bug#1836)
1487
7c2363af
CY
14882009-01-10 Chong Yidong <cyd@stupidchicken.com>
1489
1490 * xdisp.c (pos_visible_p): When iterator stops on the last glyph
1491 of a display vector, backtrack.
1492 (try_window_reusing_current_matrix): Check glyph type before
1493 referencing charpos member.
1494
97b1b294
EZ
14952009-01-10 Eli Zaretskii <eliz@gnu.org>
1496
1497 Fix Bug #876:
1498
1499 * coding.c (inhibit_null_byte_detection): New variable.
1500 (detect_coding, detect_coding_system): Don't pay attention to null
1501 bytes if inhibit_null_byte_detection is non-zero.
51d861de 1502 (syms_of_coding) <inhibit-null-byte-detection>: Declare and document.
97b1b294
EZ
1503 <inhibit-iso-escape-detection>: Doc fix.
1504
4624b6e3
JR
15052009-01-09 Jason Rumney <jasonr@gnu.org>
1506
1507 * w32font.c (add_font_entity_to_list): Don't report unknown
fff4e459 1508 Windows charset as any unrecognized registry. (Bug#1548)
4624b6e3
JR
1509 Only report Unicode Plane 2 fonts as unicode-sip.
1510
323b840c
CY
15112009-01-09 Chong Yidong <cyd@stupidchicken.com>
1512
51d861de
SM
1513 * xfaces.c (Fx_font_family_list): Delete function.
1514 Move compatibility version to faces.el.
323b840c 1515
51d861de 1516 * font.c (Ffont_family_list): Return a list of strings, not symbols.
323b840c 1517
eba7400d
MR
15182009-01-09 Martin Rudalics <rudalics@gmx.at>
1519
1520 * frame.c (x_set_frame_parameters): Remember requested value for
1521 fullscreen before it's reset by the parameter handler.
1522
4b09796d
GM
15232009-01-09 Glenn Morris <rgm@gnu.org>
1524
1525 * keyboard.c (last_command_char): For clarity, rename to...
46e722a9 1526 (last_command_event): ... and update all users.
4b09796d
GM
1527 (last_input_char): For clarity, rename to...
1528 (last_input_event): ... and update all users.
1529 (last-command-char, last-input-char): Move to subr.el as aliases.
1530 * cmds.c, commands.h: Update for last_command_char rename.
1531
14ccea62
CY
15322009-01-08 Chong Yidong <cyd@stupidchicken.com>
1533
51d861de 1534 * font.c (font_open_for_lface): Handle unspecified height attribute.
14ccea62 1535
5f004711
JR
15362009-01-08 Jason Rumney <jasonr@gnu.org>
1537
1538 * w32fns.c (Vx_pointer_shape, Vx_nontext_pointer_shape)
1539 (Vx_mode_pointer_shape, Vx_window_horizontal_drag_shape)
1540 (Vx_hourglass_pointer_shape, Vx_sensitive_text_pointer_shape):
1541 Don't declare.
fff4e459 1542 (syms_of_w32fns): Don't define x-pointer-shape variable. (Bug#1485)
5f004711
JR
1543 (x_create_tip_frame) [GLYPH_DEBUG]: Enable image debugging code.
1544
b71f6f73
KH
15452009-01-07 Kenichi Handa <handa@m17n.org>
1546
50b06221 1547 * fileio.c (Finsert_file_contents): In the case of replace,
f56a4450 1548 remember the coding system used for decoding in
50b06221
KH
1549 coding_system (Bug#1039).
1550
b71f6f73 1551 * coding.c (decode_coding_utf_8): Check byte_after_cr before
79a97217 1552 breaking the loop. (Bug#870)
b71f6f73
KH
1553 (decode_coding_utf_16, decode_coding_emacs_mule)
1554 (decode_coding_iso_2022, decode_coding_sjis, decode_coding_big5)
1555 (decode_coding_charset): Likewise.
1556
56f668f7
MR
15572009-01-05 Martin Rudalics <rudalics@gmx.at>
1558
1559 * frame.c (x_set_frame_parameters): Make sure height (width) get
1560 applied when fullwidth (fullheight) is set. (Bug#1522)
1561
5da9424d
JB
15622009-01-04 Juanma Barranquero <lekktu@gmail.com>
1563
1564 * w32.c: Use 64-bit arithmetic to do FILETIME conversions. (Bug#1766)
1565 (utc_base): Declare as ULONGLONG, not long double.
1566 (convert_time_raw): Delete.
1567 (FILETIME_TO_U64, U64_TO_LISP_TIME): New macros.
1568 (initialize_utc_base): New function.
1569 (convert_time): Use FILETIME_TO_U64, initialize_utc_base.
1570 (convert_from_time_t): Use initialize_utc_base; compute result with
1571 64-bit arithmetic.
1572 (process_times): Use FILETIME_TO_U64, U64_TO_LISP_TIME.
1573
c4605e09
EZ
15742009-01-03 Eli Zaretskii <eliz@gnu.org>
1575
9acef61c 1576 * process.c (Qeuid, Qegid, Qcomm, Qstate, Qppid, Qpgrp, Qsess)
c4605e09
EZ
1577 (Qttname, Qminflt, Qmajflt, Qcminflt, Qcmajflt, Qutime, Qstime)
1578 (Qcutime, Qpri, Qnice, Qthcount, Qstart, Qvsize, Qrss, Qargs)
1579 (Quser, Qgroup, Qetime, Qpcpu, Qpmem, Qtpgid, Qcstime)
1580 [!subprocesses]: Define.
1581 (syms_of_process) [!subprocesses]: Intern and staticpro them.
1582 (Flist_system_processes, Fsystem_process_attributes)
1583 [!subprocesses]: Call list_system_processes and
1584 system_process_attributes instead of returning Qnil.
1585
9acef61c
JB
1586 * dosfns.c (system_process_attributes, list_system_processes):
1587 New functions.
c4605e09
EZ
1588
1589 * vm-limit.c (ret_lim_data) [MSDOS]: New function.
1590
1591 * sysdep.c (list_system_processes, system_process_attributes) [MSDOS]:
1592 Don't use the default (no-op) implementation.
1593
8b7d0a16
JR
15942009-01-03 Jason Rumney <jasonr@gnu.org>
1595
a6d46bc1
JR
1596 * keyboard.c (parse_modifiers_uncached): Wheel events are
1597 clicks (bug#687).
1598
8b7d0a16
JR
1599 * w32term.c (x_query_colors, x_query_color): New functions.
1600
1601 * image.c (x_to_xcolors, png_load): Eliminate W32 specific code.
1602 (svg_load_image): Cast returned pointers from dynamically loaded
1603 functions. Eliminate W32 specific code.
1604
bfe11752
DN
16052009-01-02 Dan Nicolaescu <dann@ics.uci.edu>
1606
89e2438a
DN
1607 * nsfns.m (x_set_foreground_color, x_set_background_color)
1608 (x_set_cursor_color, x_set_icon_name, x_explicitly_set_name)
1609 (x_set_title, x_set_icon_type, x_set_cursor_type): Rename to use
1610 x_ prefix instead of ns_. Update references.
1611 (syms_of_nsfns): Add a FIXME comment.
1612
1613 * nsterm.m (x_set_cursor_type): New prototype.
1614 (setValuesFromPanel): Use it instead of the old ns_ prefixed name.
1615
bfe11752
DN
1616 * sysdep.c (system_process_attributes): Provide Qtime and Qctime
1617 for Solaris instead of incorrectly providing Qutime and Qcutime.
1618
031da700
EZ
16192009-01-02 Eli Zaretskii <eliz@gnu.org>
1620
1621 * w32.c (process_times): Compute sum of utime and stime.
1622 (system_process_attributes): Add Qtime to the alist.
1623
1624 * sysdep.c (system_process_attributes): Compute Qtime and Qctime
1625 and add them to the alist.
1626
1627 * process.c (top level) <Qtime, Qctime>: New variables.
1628 (syms_of_process): staticpro them.
1629 (Fsystem_process_attributes): Add their documentation to the doc
1630 string.
1631
1632 * process.h: Declare Qtime and Qctime.
1633
df23bf08
JR
16342009-01-02 Jason Rumney <jasonr@gnu.org>
1635
9acef61c 1636 * image.c (Qgobject): New symbol.
df23bf08
JR
1637 (syms_of_image): Initialize it.
1638 (init_svg_functions): Load some functions from gobject library.
1639
5bbdf7aa
DN
16402009-01-01 Dan Nicolaescu <dann@ics.uci.edu>
1641
1642 * frame.c (make_terminal_frame): Remove redundant code and useless
1643 block.
1644
63136da6
AS
16452009-01-01 Andreas Schwab <schwab@suse.de>
1646
1647 * process.c (conv_sockaddr_to_lisp): Add workaround for
1648 getsockname bug on BSD.
1649
9ef69046
CY
16502009-01-01 Chong Yidong <cyd@stupidchicken.com>
1651
d6fafbe0
CY
1652 * xfns.c (x_create_tip_frame): Set border width of the X window.
1653
51d861de 1654 * xfaces.c (Finternal_set_lisp_face_attribute): Improve error message.
9ef69046 1655
f9c34147
JR
16562009-01-01 Jason Rumney <jasonr@gnu.org>
1657
9acef61c 1658 * w32term.c (x_new_font): Return font object, not fontset. (Bug#119)
f9c34147
JR
1659 Don't block input, as per earlier xterm.c changes.
1660
f5497e45
AR
16612008-12-31 Adrian Robert <Adrian.B.Robert@gmail.com>
1662
1663 * nsfns.m (ns_appkit_version_str): Rename from ns_appkit_version.
1664 (ns_appkit_version_int): New function.
1665 (x-server-version): Use ns_appkit_version_int and follow 21+
1666 convention of returning 3 integers.
1667
c19cab20
KH
16682008-12-30 Kenichi Handa <handa@m17n.org>
1669
1670 * character.h (CHAR_VARIATION_SELECTOR_P): New macro.
1671 (CHAR_SURROGATE_PAIR_P): New macro.
1672
1673 * font.h (struct font_driver): New member get_variation_glyphs.
1674
9acef61c 1675 * font.c (font_range): Don't require a font for a variation selector.
c19cab20
KH
1676 (Ffont_variation_glyphs): New function.
1677 (syms_of_font): Defsubr it.
1678
1679 * ftfont.c (ftfont_driver): Set the member get_variation_glyphs to
1680 ftfont_variation_glyphs.
1681 (setup_otf_gstring): New function.
1682 (ftfont_drive_otf): Use it.
1683 (ftfont_shape_by_flt): Handle variation selector.
1684 (ftfont_variation_glyphs): New function.
1685
28cd591f
MR
16862008-12-30 Martin Rudalics <rudalics@gmx.at>
1687
1688 * frame.c (Vemacs_iconified): Remove.
1689
7f714baf
JR
16902008-12-30 Jason Rumney <jasonr@gnu.org>
1691
1692 * frame.c (store_frame_param, x_get_arg): Enable newer code on
9acef61c 1693 WINDOWSNT too, as related changes have already been synced. (Bug#117)
7f714baf 1694
9d2d22ab
CY
16952008-12-30 Chong Yidong <cyd@stupidchicken.com>
1696
1697 * indent.c (Fvertical_motion): Don't advance iterator if we have
1698 reseated to the desired position.
1699
1700 * xdisp.c (move_it_to): Handle GET_FROM_STRETCH method when
1701 checking for pos match.
1702
545312c2
KH
17032008-12-30 Kenichi Handa <handa@m17n.org>
1704
1ede3eb6
KH
1705 * insdel.c (copy_text): To convert a non-ASCII char to unibyte,
1706 just get the low 8-bit of the code.
1707
545312c2
KH
1708 * font.c (font_intern_prop): Validate str as multibyte.
1709
bd7bbf29
DN
17102008-12-29 Dan Nicolaescu <dann@ics.uci.edu>
1711
31e0750e
DN
1712 * dispextern.h (struct face): Move lface and hash from the middle
1713 of bitfields.
1714
bd7bbf29
DN
1715 * Makefile.in (INTERVALS_H): Rename from INTERVAL_SRC, update all users.
1716
b5672e7c
DN
17172008-12-29 Dan Nicolaescu <dann@ics.uci.edu>
1718
1719 * Makefile.in (INTERVAL_SRC): Also depend on dispextern.h.
1720 (coding.o, dispnew.o, keymap.o, msdos.o): Depend on INTERVAL_SRC
1721 instead of intervals.h.
1722
d704470f
AS
17232008-12-26 Andreas Schwab <schwab@suse.de>
1724
1725 * keymap.c (map_keymap_char_table_item): Make a copy of KEY if it is a
1726 cons.
1727
54b33868
MR
17282008-12-26 Martin Rudalics <rudalics@gmx.at>
1729
1730 * textprop.c (Qminibuffer_prompt): New variable.
1731 (syms_of_textprop): Initialize it.
1732 * callint.c (Fcall_interactively): For `c', `k', and `K' prompt
1733 in minibuffer-prompt face. (Bug#1662)
1734
40b615d6
JR
17352008-12-25 Jason Rumney <jasonr@gnu.org>
1736
1737 * buffer.c (Fbuffer_swap_text): Use POINTER_TYPE.
1738
baae5c2d
JR
17392008-12-24 Jason Rumney <jasonr@gnu.org>
1740
1741 * ralloc.c (r_alloc_reset_variable): New function.
1742
1743 * buffer.c (Fbuffer_swap_text) [REL_ALLOC]: Reset ralloc's internal
9acef61c 1744 record of what points where. (Bug#716)
baae5c2d 1745
a9051c88
DN
17462008-12-22 Dan Nicolaescu <dann@ics.uci.edu>
1747
1748 * minibuf.c (read_minibuf): Follow the non-interactive case when
1749 running as a daemon, before detaching.
1750
8b146312
AS
17512008-12-22 Andreas Schwab <schwab@suse.de>
1752
1753 * buffer.c (init_buffer): Use realloc instead of xrealloc.
1754 * gtkutil.c (free_widget_value): Use xfree instead of free.
1755
56f2de10
MR
17562008-12-22 Martin Rudalics <rudalics@gmx.at>
1757
1758 * frame.c (delete_frame): New function derived from
1759 Fdelete_frame to handle Qnoelisp value for FORCE argument.
1760 Delete last frame iff FORCE equals Qnoelisp. (Bug#1450)
1761 (Fdelete_frame): Call delete_frame. Remove line from doc-string
1762 saying that FORCE non-nil doesn't run `delete-frame-functions'.
1763 * frame.h: Extern delete_frame.
1764 * window.c (window_loop):
1765 * terminal.c (delete_terminal):
1766 * xterm.c (x_connection_closed):
1767 * xfns.c (Fx_hide_tip):
9acef61c 1768 * w32fns.c (Fx_hide_tip): Call delete_frame instead of Fdelete_frame.
56f2de10 1769
1fc200d6
JR
17702008-12-21 Jason Rumney <jasonr@gnu.org>
1771
1772 * w32uniscribe.c (uniscribe_encode_char): Return FONT_INVALID_CHAR
1773 when character maps to .notdef character.
1774
5e252df2
SM
17752008-12-21 Stefan Monnier <monnier@iro.umontreal.ca>
1776
1777 * keyboard.c (cmd_error_internal): Don't exit in daemon mode, bug#1310.
1778
99b72cc4
JR
17792008-12-20 Jason Rumney <jasonr@gnu.org>
1780
1781 * frame.c (Fmake_terminal_frame): Raise an error when called from
9acef61c 1782 a graphical frame on Windows. (Bug#1325)
99b72cc4 1783
acc49a52
JD
17842008-12-20 Jan Djärv <jan.h.d@swipnet.se>
1785
1786 * frame.c (Fdelete_frame): Set f->menu_bar_vector to Qnil.
1787
6ea15123
CY
17882008-12-20 Chong Yidong <cyd@stupidchicken.com>
1789
1790 * minibuf.c (Fread_buffer): Doc fix.
1791
b2dab6c8
JR
17922008-12-20 Jason Rumney <jasonr@gnu.org>
1793
54ea0c87 1794 * fileio.c (Fexpand_file_name): Do not allow ../ to go beyond the
9acef61c 1795 server name in UNC paths. (Bug#719)
54ea0c87 1796
b2dab6c8 1797 * coding.c (decode_coding): Clear chars_at_source flag when using
9acef61c 1798 charbuf. (Bug#1035)
b2dab6c8 1799
6d1921be
DN
18002008-12-19 Daniel Engeler <engeler@gmail.com>
1801
1802 * sysdep.c (serial_configure): Fix typo.
1803
53934c98
DN
18042008-12-19 Dan Nicolaescu <dann@ics.uci.edu>
1805
1806 * sysdep.c: Include alloca.h.
f4f634e8
DN
1807 (system_process_attributes): Add implementation for Solaris.
1808
1809 * s/sol2-10.h (HAVE_PROCFS, _STRUCTURED_PROC): New defines.
53934c98 1810
06e111a6
DN
18112008-12-19 Dan Nicolaescu <dann@ics.uci.edu>
1812
1813 Reorganize implementation of Flist_system_processes and
1814 Fsystem_process_attributes. No functional changes.
1815 * process.c: Don't #include pwd.h, grp.h and limits.h.
1816 (Flist_system_processes): Just call list_system_processes.
1817 (Fsystem_process_attributes): Just call system_process_attributes.
1818 (procfs_list_system_processes, time_from_jiffies)
1819 (ltime_from_jiffies, get_up_time, procfs_ttyname, MAJOR, MINOR)
1820 (procfs_get_total_memory, procfs_system_process_attributes): Move ...
1821
1822 * sysdep.c: ... here. Include pwd.h, grp.h and limits.h.
1823 (list_system_processes): Rename from
1824 procfs_list_system_processes. Enclose in #ifdef HAVE_PROCFS.
1825 Provide a do nothing implementation.
1826 (system_process_attributes): Rename from
1827 procfs_list_system_processes.
1828 (ltime_from_jiffies, get_up_time, procfs_ttyname, MAJOR, MINOR)
9acef61c 1829 (procfs_get_total_memory): Enclose in #ifdef GNU_LINUX.
06e111a6
DN
1830
1831 * w32.c (list_system_processes): Rename from
1832 w32_list_system_processes.
1833 (system_process_attributes): Rename from
1834 w32_system_process_attributes.
1835
1836 * s/gnu-linux.h (LISTPROC, PROCATTR): Remove.
1837
1838 * process.h (w32_list_system_processes)
1839 (w32_system_process_attributes): Remove.
1840 (list_system_processes, system_process_attributes): New
1841 prototypes.
1842
6a705b23
KH
18432008-12-19 Kenichi Handa <handa@m17n.org>
1844
1845 * xfont.c (xfont_decode_coding_xlfd): New function.
1846 (xfont_encode_coding_xlfd): New function.
1847 (xfont_list_pattern): Decode XLFD by iso-8859-1.
1848 (xfont_list): Decode and encode XLFD by iso-8859-1.
1849 (xfont_match): Likewise.
1850 (xfont_list_family): Likewise.
1851 (xfont_open): Likewise.
1852
d66c0241 1853 * ftfont.c (ftfont_open): Generate a multibyte string if given
6a705b23
KH
1854 names are utf-8.
1855
d66c0241 1856 * xftfont.c (xftfont_open): Generate a multibyte string if given
6a705b23
KH
1857 names are utf-8.
1858
5a130941
JD
18592008-12-18 Jan Djärv <jan.h.d@swipnet.se>
1860
1861 * gtkutil.c (xg_frame_resized): Remove check if rows/columns have
1862 changed.
bfd20325
JD
1863 (xg_tool_bar_proxy_callback): Put focus on the frame after we have
1864 clicked on a detached tool bar button.
5a130941 1865
fd95644b
DN
18662008-12-18 Dan Nicolaescu <dann@ics.uci.edu>
1867
1868 * emacs.c (main): Print and error and exit when no data is read
1869 from the pipe.
1870
e6eee6ae
JR
18712008-12-17 Jason Rumney <jasonr@gnu.org>
1872
1873 * w32font.c (w32font_has_char): Always return -1.
1874
a35dd56b
KH
18752008-12-16 Kenichi Handa <handa@m17n.org>
1876
1877 * font.c (font_open_entity): Fix previous change.
1878
0e3635c2
DN
18792008-12-16 Dan Nicolaescu <dann@ics.uci.edu>
1880
1881 * process.c: Include <limits.h>.
1882
d4835507 18832008-12-16 Chetan Pandya <pandyacus@sbcglobal.net> (tiny change)
b5356c39
CY
1884
1885 * font.c (font_update_drivers): Fix mistake in reconstructing the
1886 driver list.
1887
18882008-12-16 Chong Yidong <cyd@stupidchicken.com>
1889
1890 * font.c (font_clear_cache): Fix format of font cache data.
1891
e2cbc401
CY
18922008-12-15 Chong Yidong <cyd@stupidchicken.com>
1893
1894 * xftfont.c (xftfont_open): Free Xft font pattern if
1895 XftFontOpenPattern fails.
1896
1897 * xterm.c (x_free_frame_resources): Remove extraneous call to
1898 free_frame_faces.
1899
b131d535
CY
19002008-12-13 Chong Yidong <cyd@stupidchicken.com>
1901
1902 * xterm.c (x_delete_display): Move xim_close_dpy call to
1903 x_delete_terminal.
1904 (x_delete_terminal): Call xim_close_dpy.
1905
e6df5336
JR
19062008-12-13 Jason Rumney <jasonr@gnu.org>
1907
1908 * w32font.c (intern_font_name): New function.
1909 (add_font_name_to_list, w32_enumfont_pattern_entity): Use it.
1910 (w32font_open_internal, Fx_select_font): Decode font name.
1911 (fill_in_logfont, list_all_matching_fonts): Encode font name.
1912
1913 * w32font.h (intern_font_name): Declare new function.
1914
1915 * w32uniscribe.c (add_opentype_font_name_to_list):
1916 Use intern_font_name.
1917
20d68145
CY
19182008-12-13 Chong Yidong <cyd@stupidchicken.com>
1919
9f2554de
CY
1920 * frame.c (Fdelete_frame): Call free_font_driver_list.
1921
3d9bec9a
CY
1922 * font.c (free_font_driver_list): Implement missing function.
1923
20d68145
CY
1924 * w32term.c (w32_term_init): Don't initialize the image cache
1925 here; it will be done in init_frame_faces.
1926
1927 * xterm.h (struct xim_inst_t): Definition moved from xterm.c.
1928 (struct x_display_info): Remove unused member null_pixel. New
1929 member xim_callback_data.
1930
1931 * xterm.c (struct xim_inst_t): Definition moved to xterm.h.
1932 (xim_initialize): Save pointer to callback function data.
1933 (xim_close_dpy): Free callback function data. Call XCloseIM,
1934 reverting 2008-11-04 change by David Smith.
1935 (x_term_init): Don't initialize the image cache here; it will be
1936 done in init_frame_faces. Remove ancient "null_pixel" cruft.
1937 (x_delete_display): Free x_dnd_atoms member.
1938
96f9306b
KH
19392008-12-13 Kenichi Handa <handa@m17n.org>
1940
6dec9044
JB
1941 * font.c (font_rescale_ratio): Moved from xfaces.c.
1942 Argument type changed. Handle a font-spec too.
96f9306b 1943 (font_score): Check Vface_font_rescale_alist.
6dec9044 1944 (font_open_entity): Likewise. (Bug#1547)
96f9306b
KH
1945
1946 * xfaces.c (font_rescale_ratio): Moved to font.c.
1947
8d5b4964
CY
19482008-12-13 Chong Yidong <cyd@stupidchicken.com>
1949
1950 * xfns.c (Fx_wm_set_size_hint): Check if the frame is an X frame.
1951
e6df5336
JR
19522008-12-12 Jason Rumney <jasonr@gnu.org>
1953
1954 * w32fns.c (x_display_info_for_name, Fx_open_connection): Set
1955 Vwindow_system_version to the real w32 major version.
1956
97c6058a
DN
19572008-12-12 Dan Nicolaescu <dann@ics.uci.edu>
1958
1959 * term.c (init_tty): Move setting the terminal name before the
1960 potential user: maybe_fatal.
1961
ec4e88d7
CY
19622008-12-11 Chong Yidong <cyd@stupidchicken.com>
1963
d4835507
JB
1964 * term.c (tty_free_frame_resources): Renamed from delete_tty_output;
1965 all callers changed. Call free_frame_faces to free the face cache.
ec4e88d7 1966
b4233ec9
JR
19672008-12-11 Jason Rumney <jasonr@gnu.org>
1968
8ec71e23 1969 * w32font.c (fill_in_logfont): Don't assume symbol script means
9acef61c 1970 SYMBOL_CHARSET. (Bug#547)
8ec71e23 1971
b4233ec9 1972 * w32uniscribe.c (uniscribe_encode_char): Increase glyph buffer
9acef61c 1973 size for surrogates. (Bug#1096, bug#872)
b4233ec9 1974
011a0143
JB
19752008-12-11 Juanma Barranquero <lekktu@gmail.com>
1976
1977 * w32proc.c (Fw32_get_locale_info): Decode long form of locale name.
1978
3c309f34
JB
19792008-12-11 Juanma Barranquero <lekktu@gmail.com>
1980
1981 * process.c (Fsystem_process_attributes, syms_of_process):
1982 Fix typo in name of Ssystem_process_attributes.
1983 Reported by Ulrich Mueller <ulm@kph.uni-mainz.de>.
1984
fedc6ab5
JB
19852008-12-11 Juanma Barranquero <lekktu@gmail.com>
1986
1987 * syntax.c (Fmodify_syntax_entry): Doc fix.
1988
ba3de0e8
JB
19892008-12-10 Juanma Barranquero <lekktu@gmail.com>
1990
1991 * font.c (Ffont_spec): Move usage to end of docstring.
1992
174f1c74
JR
19932008-12-10 Jason Rumney <jasonr@gnu.org>
1994
1995 * w32font.c (Qcham): New symbol.
1996 (font_supported_scripts): Add cham, and comments for other new
1997 scripts in bitfield from OpenType spec.
9d32f818
JR
1998 (add_font_entity_to_list): Limit unicode-sip fonts to those that
1999 contain characters beyond the bmp.
174f1c74 2000
7b649478
KH
20012008-12-10 Kenichi Handa <handa@m17n.org>
2002
2003 * ftfont.c (fc_charset_table): Add "unicode-sip".
2ae37cf0 2004 (ftfont_spec_pattern): Lookup fc_charset_table for the registry
7b649478
KH
2005 Qunicode_sip.
2006
2133e2d1
JB
20072008-12-10 Juanma Barranquero <lekktu@gmail.com>
2008
2009 * coding.c (QCdefault_char): Rename from QCdefalut_char.
2010 (Fcoding_system_put): Use QCdefault_char.
2011 (syms_of_coding): Set QCdefault_char, not QCdefalut_char.
2012
9af886ee
CY
20132008-12-09 Chong Yidong <cyd@stupidchicken.com>
2014
74d819eb
CY
2015 * xftfont.c (syms_of_xftfont): Fix typo.
2016
4ccfa1c0 2017 * buffer.c (Fbuffer_swap_text): Signal error if swapping a dead buffer.
9af886ee 2018
7c19d3ae
DN
20192008-12-08 Dan Nicolaescu <dann@ics.uci.edu>
2020
2021 * emacs.c (main): Close daemon_pipe on exec.
2022
567826bb
CY
20232008-12-08 Chong Yidong <cyd@stupidchicken.com>
2024
2025 * termchar.h (struct tty): New members termcap_term_buffer and
2026 termcap_strings_buffer.
2027
2028 * term.c (encode_terminal_code): Free any previous memory blocks
4ccfa1c0 2029 before calling xmalloc for encode_terminal_src or encode_terminal_dst.
567826bb
CY
2030 (maybe_fatal): Buffer argument deleted. Don't free buffer here.
2031 All callers changed.
2032 (init_tty): Store termcap data and string buffers in new struct
2033 tty members termcap_term_buffer and termcap_strings_buffer.
2034 (delete_tty): Free them.
4ccfa1c0 2035 (syms_of_term): Initialize encode_terminal_src and encode_terminal_dst.
567826bb 2036
aa96c42b
SZ
20372008-12-07 Seiji Zenitani <zenitani@mac.com>
2038
2039 * nsfns.m (ns_set_background_color): Remove code duplication.
4ccfa1c0 2040 It was a substitute for face-transparency on OS X 10.3.
aa96c42b 2041
b7e1d896
CY
20422008-12-06 Chong Yidong <cyd@stupidchicken.com>
2043
2044 * coding.c (make_conversion_work_buffer): Disable buffer
2045 modification hooks in the work buffer.
2046
b5ec91a5
EZ
20472008-12-05 Eli Zaretskii <eliz@gnu.org>
2048
2049 * process.c (procfs_system_process_attributes): If `nread' has a
2050 negative value, assign zero to it.
2051
a5d2a52b
CY
20522008-12-05 Chong Yidong <cyd@stupidchicken.com>
2053
68c5540b 2054 * eval.c (Vdebug_on_error): Doc fix.
a5d2a52b 2055
7bf1bb21
KH
20562008-12-05 Kenichi Handa <handa@m17n.org>
2057
2058 * ftfont.c (ftfont_shape_by_flt): Use "combining" flt if the
2059 second character is a combining character.
2060
2fdc7d00
EZ
20612008-12-05 Eli Zaretskii <eliz@gnu.org>
2062
2063 * process.c (procfs_system_process_attributes): Don't use cmd,
2064 cmdsize, and q without initializing them first.
2065
bf6bfba8
JR
20662008-12-04 Jason Rumney <jasonr@gnu.org>
2067
2068 * w32font.c (w32font_draw): Initialize orig_clip before getting
2069 it, and delete it when finished.
2070
a3b1a468
DN
20712008-12-04 Dan Nicolaescu <dann@ics.uci.edu>
2072
2073 * keyboard.c (kbd_buffer_get_event): Follow the non-interactive
2074 case when running as a daemon before detaching.
2075
8b8be8eb
JB
20762008-12-03 Juanma Barranquero <lekktu@gmail.com>
2077
805f2638 2078 * w32.c (init_environment): Don't unload library shell32.dll.
8b8be8eb 2079
b1bde622
KH
20802008-12-03 Kenichi Handa <handa@m17n.org>
2081
e500c47d
KH
2082 * font.c (font_at): Set `multibyte' at first.
2083
ca516334
KH
2084 * coding.c (decode_coding_charset): Check type of an element of
2085 vector VALIDS.
7bf1bb21 2086 (encode_coding_emacs_mule): Be sure to set `code'.
ca516334 2087
4ccfa1c0 2088 * fontset.c (face_for_char): Handle invalid charset property correctly.
b1bde622
KH
2089 (font_for_char): Likewise.
2090
1e5ecd37
CY
20912008-12-03 Chong Yidong <cyd@stupidchicken.com>
2092
d5b01609 2093 * font.c (Fopen_font): Compute pixel size correctly.
ba207571
CY
2094 (font_update_lface): Handle fonts with corrupted size specs,
2095 i.e. non-int and non-float.
d5b01609 2096
11e3a6e4 2097 * ftfont.c (ftfont_match): Initialize entity variable.
9a48c8cb 2098 (ftfont_resolve_generic_family): Avoid using uninitialized var.
8adb3a3b 2099 (ftfont_list_family): Initialize list var earlier.
11e3a6e4 2100
ab06788b
CY
2101 * xselect.c (Fx_get_cut_buffer_internal): Fix memory leak.
2102
1e5ecd37 2103 * xterm.c (x_draw_glyph_string): Fall back on
0cff82ab 2104 underline_minimum_offset for underline position.
1e5ecd37 2105
63c125ab
DN
21062008-12-03 Dan Nicolaescu <dann@ics.uci.edu>
2107
2108 * keyboard.c (read_char_help_form_unwind): Specify the type for ARG.
2109
2110 * character.c (c_string_width): Specify the type for LEN.
2111
3a8406e1
KH
21122008-12-03 Kenichi Handa <handa@m17n.org>
2113
4ccfa1c0 2114 * coding.c (decode_coding_utf_16): Initialize consumed_chars_base to 0.
453b38f0 2115 (decode_coding_utf_8): Likewise.
4ccfa1c0 2116 (detect_coding_system): Initialize utf_16_le_eol to -1, val to Qnil.
4533845d 2117 (produce_chars): Initialize consumed_chars to 0.
3a8406e1 2118
651df7d9
CY
21192008-12-02 Chong Yidong <cyd@stupidchicken.com>
2120
2121 * keyboard.c (make_lispy_position): Only use PT if the selected
2122 window is current.
2123
1f625c6c
AS
21242008-12-02 Andreas Schwab <schwab@suse.de>
2125
f7741ce9
AS
2126 * font.c (font_unparse_fcname): Fix use of uninitialized variable.
2127
1f625c6c
AS
2128 * doprnt.c (doprnt1): Fix size of charbuf.
2129
92bc2678
CY
21302008-12-02 Chong Yidong <cyd@stupidchicken.com>
2131
2132 * keyboard.c (timer_check): Revert last change.
2133
93b9e8cc
JB
21342008-12-02 Juanma Barranquero <lekktu@gmail.com>
2135
2136 * makefile.w32-in ($(BLD)/w32console.$(O)): Fix silly, silly typo.
2137
fd7a37d5
JB
21382008-12-01 Juanma Barranquero <lekktu@gmail.com>
2139
2140 * makefile.w32-in: Update dependencies.
2141 (CONFIG_H): Add $(EMACS_ROOT)/nt/inc/sys/time.h.
2142
c115043b
AS
21432008-12-01 Andreas Schwab <schwab@suse.de>
2144
2145 * font.c (register_font_driver): Use xmalloc.
2146 (font_put_frame_data): Likewise.
2147
f5668d2a
CY
21482008-12-01 Chong Yidong <cyd@stupidchicken.com>
2149
860d96be
CY
2150 * xfaces.c (realize_x_face): Make abort condition clearer.
2151
f5668d2a
CY
2152 * gtkutil.c (update_frame_tool_bar): Initialize variable.
2153
379c17e7
CY
21542008-11-30 Chong Yidong <cyd@stupidchicken.com>
2155
2156 * keyboard.c (timer_check): After a timer runs, ensure that the
2157 selected window's buffer is current.
2158
35f36d65
JB
21592008-11-30 Juanma Barranquero <lekktu@gmail.com>
2160
f952c61c
JB
2161 * makefile.w32-in ($(BLD)/abbrev.$(O)): Remove.
2162 It was accidentally restored by the Unicode merge.
2163
35f36d65
JB
2164 * w32proc.c (Fw32_get_locale_info): Fix typo in docstring.
2165
b23077df
JB
21662008-11-29 Juanma Barranquero <lekktu@gmail.com>
2167
2168 * w32proc.c: Include "coding.h".
2169 (Fw32_short_file_name): Encode filename passed to Windows API.
2170 (Fw32_long_file_name): Encode filename passed to Windows API and
2171 decode back the result. (Bug#1433)
2172
b8ebe9dd
KH
21732008-11-29 Kenichi Handa <handa@m17n.org>
2174
8cc53f96
KH
2175 * charset.h (CHAR_CHARSET_P): Check if the encoder is loaded or
2176 not before accessing it.
2177
b8ebe9dd
KH
2178 * charset.c (Fdefine_charset_internal): After calculating
2179 min_char, max_char, and fastmap, copy the charset structure again.
2180 (encode_char): Fix the previous change.
2181
59bc82c0
SZ
21822008-11-28 Seiji Zenitani <zenitani@mac.com>
2183
2184 * frame.c (x_set_alpha) [NS_IMPL_COCOA]: Call x_set_frame_alpha.
2185
2186 * nsfns.m (ns_frame_parm_handlers): Set alpha handler.
2187
2188 * nsterm.m (x_set_frame_alpha): New function.
2189
32247e3d
EZ
21902008-11-27 Eli Zaretskii <eliz@gnu.org>
2191
2192 * xfaces.c (Fx_font_family_list, syms_of_xfaces): Fix last change.
2193
b003e5ff
JB
21942008-11-27 Juanma Barranquero <lekktu@gmail.com>
2195
2196 * w32font.c (add_font_entity_to_list): Pass the right LOGFONT
2197 pointer to check_face_name.
2198
708550f5
KH
21992008-11-27 Kenichi Handa <handa@m17n.org>
2200
2201 * category.h (SET_CATEGORY_SET): Call set_category_set.
2202 (set_category_set): Extern it.
2203
2204 * category.c (hash_get_category_set): New function.
2205 (Fmodify_category_entry): Adjusted for the change of
2206 char_table_ref_and_range. Call hash_get_category_set to get a
2207 category set to store in the table.
2208
2209 * character.h (MAYBE_UNIFY_CHAR): Call maybe_unify_char instead of
2210 Funify_charset.
2211
2ae37cf0 2212 * charset.h (enum charset_method): Delete CHARSET_METHOD_MAP_DEFERRED.
708550f5
KH
2213 (DECODE_CHAR): Check if the decoder vector is ready.
2214 (ENCODE_CHAR): Check if the encoder char-table is ready.
2215 (maybe_unify_char): Extern it.
2216
2217 * charset.c (Vchar_unified_charset_table): Delete it.
2218 (inhibit_load_charset_map): New variable.
2219 (temp_charset_work): New variable.
2220 (SET_TEMP_CHARSET_WORK_ENCODER, GET_TEMP_CHARSET_WORK_ENCODER)
2221 (SET_TEMP_CHARSET_WORK_DECODER, GET_TEMP_CHARSET_WORK_DECODER):
2222 New macros.
2223 (load_charset_map): Meaning of control_flag changed. If
2224 inhibit_load_charset_map is nonzero, setup a table in
2225 temp_charset_work.
2226 (load_charset): New argument control_flag.
2227 (map_charset_for_dump): New function.
2228 (map_charset_chars): If inhibit_load_charset_map is nonzero, use
2229 map_charset_for_dump.
2230 (Fdefine_charset_internal): If the charset method is MAP, load
2231 mapping tables by calling load_charset.
2232 (Funify_charset): Don't load a mapping table but directly set
2233 Vchar_unify_table.
2234 (maybe_unify_char): New function.
2235 (decode_char): Don't handle the deleted method MAP_DEFERRED.
2236 Handle the case of inhibit_load_charset_map being nonzero.
2237 (encode_char): Don't handle the deleted method MAP_DEFERRED.
2238 Handle the case of inhibit_load_charset_map being nonzero.
2239 (Fclear_charset_maps): Just free temp_charset_work.
2240 (syms_of_charset): Make `inhibit-load-charset-map' a Lisp
2241 variable.
2242
2243 * chartab.c (sub_char_table_ref_and_range): Adjusted for the
2244 change of char_table_ref_and_range.
2245 (char_table_ref_and_range): Change the meaning of argument FROM
2246 and TO. Now the caller must provide initial values for *FROM
2247 and *TO.
2248
2249 * fontset.c (fontset_add): Adjusted for the change of
2250 char_table_ref_and_range.
2251 (fontset_get_font_group): Likewise.
2252 (Ffontset_info): Likewise.
2253
2254 * keymap.c (describe_vector): Adjusted for the change of
2255 char_table_ref_and_range. For char-table, put boundary between
2256 non-ASCII and 8-bit characters.
2257
2258 * print.c (print_object): For bool-vector, delete unnecessary
2259 check of ASCII_BYTE_P.
2260
9196133b
JR
22612008-11-26 Jason Rumney <jasonr@gnu.org>
2262
2263 * w32font.c (w32font_open_internal): Don't include external
9acef61c 2264 leading in font height. (Bug#879)
9196133b 2265
9f688acf
GM
22662008-11-26 Glenn Morris <rgm@gnu.org>
2267
2268 * xfaces.c (Fx_font_family_list): Replace lisp/term/pc-win.el
2269 redefinition with ifdef. (Bug#1383)
2270
90d19aff
AR
22712008-11-24 Adrian Robert <Adrian.B.Robert@gmail.com>
2272
2273 * nsterm.m (ns_get_color): Handle long hex strings (fixes bug #1044).
2274
4ccfa1c0 22752008-11-24 Wolfgang Lux <wolfgang.lux@gmail.com> (tiny change)
90d19aff
AR
2276
2277 * nsterm.m (-otherMouseDown:, -otherMouseUp:, -otherMouseDragged):
2278 New EmacsView methods.
2279 (EV_UDMODIFIERS, EV_BUTTON): Add OtherMouse constants.
2280 Fixes bug #1048,1357,1414.
2281
22822008-11-24 Adrian Robert <Adrian.B.Robert@gmail.com>
2283
2284 Fix bug #1362.
2285 * image.c (x_clear_image_1): Do not free background under HAVE_NS, it
2286 is not an indexed color.
2287 * nsterm.m (free_indexed_color): Add argument checking.
2288 * nsfns.m: Move config.h to before system includes (advised by Dan N.).
2289
e7d5ecb3
CY
22902008-11-24 Chong Yidong <cyd@stupidchicken.com>
2291
2292 * minibuf.c (Fcompleting_read, Vminibuffer_completion_confirm):
2293 Document confirm-after-completion value for
2294 minibuffer-completion-confirm.
2295
c285743c
JR
22962008-11-24 Jason Rumney <jasonr@gnu.org>
2297
2298 * w32font.c (check_face_name): Use xstrcasecmp. Avoid compiler
2299 warning.
2300
b0857706
JR
23012008-11-23 Jason Rumney <jasonr@gnu.org>
2302
2303 * w32uniscribe.c (uniscribe_encode_char): Ensure context is
2304 restored before returning.
2305
2306 * w32font.c (check_face_name): New function.
2307 (add_font_entity_to_list): Use it to filter out common substituted
9acef61c 2308 fonts. (Bug#642)
b0857706 2309
ee50ff07
MR
23102008-11-22 Martin Rudalics <rudalics@gmx.at>
2311
2312 * buffer.c (Fswitch_to_buffer): Reword and mention new option
2313 confirm-nonexistent-file-or-buffer in doc-string.
2314
b8ff72fa
SM
23152008-11-21 Stefan Monnier <monnier@iro.umontreal.ca>
2316
2317 * buffer.c (Fbuffer_swap_text): Remove redundant marker manipulation.
2318 Fix copy/paste typo. Add checks.
2319
cee53ed4
KH
23202008-11-21 Kenichi Handa <handa@m17n.org>
2321
2322 * coding.c (detect_coding_iso_2022): Reject invalid composition
2323 sequence.
2324 (DECODE_COMPOSITION_START): If the current source is the last
2325 block, and the current composition doesn't end, regard this
2326 sequence as invalid.
2327 (decode_coding_iso_2022): Handle invalid composition sequence.
2328
f6ef1e65
MR
23292008-11-20 Martin Rudalics <rudalics@gmx.at>
2330
2331 * window.c (coordinates_in_window): Don't return
2332 ON_VERTICAL_BORDER for the rightmost position of a mode/header
2333 line when the window is not the rightmost one. (Bug#1372)
2334
e08b1705
MR
23352008-11-16 Ben North <ben@redfrontdoor.org> (tiny change)
2336
2337 * buffer.c (syms_of_buffer): Fix doc-string of cursor-type.
2338
ad98e89f
EZ
23392008-11-15 Eli Zaretskii <eliz@gnu.org>
2340
2341 * msdos.c (run_msdos_command): Don't call dos_ttcooked, dos_ttraw,
2342 and bright_bg if noninteractive is non-zero.
2343
fb098a4b
CY
23442008-11-15 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
2345
2346 * xterm.c (x_draw_glyph_string): For stretch glyphs, don't call
2347 x_draw_glyph_string_background.
2348
2349 * w32term.c (x_draw_glyph_string): Likewise.
2350
ce952b6e
CY
23512008-11-15 Chong Yidong <cyd@stupidchicken.com>
2352
2353 * xterm.c (x_draw_glyph_string): Stop drawing the background of
2354 the next glyph string once past the overhang width.
2355
2356 * nsterm.m (ns_draw_glyph_string): Likewise.
2357
2358 * w32term.c (x_draw_glyph_string): Likewise.
2359
26ea7079
CY
23602008-11-14 Fabrice Popineau <fabrice.popineau@supelec.fr> (tiny change)
2361
2362 * fileio.c (Finsert_file_contents): Decrement specpdl_ptr to avoid
2363 double file close.
2364
1c33c906
MR
23652008-11-14 Martin Rudalics <rudalics@gmx.at>
2366
2367 * window.c (window_loop): In DELETE_BUFFER_WINDOWS case, reset
2368 dedicated status of window before attempting to display another
2369 buffer in it.
2370
8fc29035
JB
23712008-11-14 Juanma Barranquero <lekktu@gmail.com>
2372
2373 * msdos.c (Fmsdos_long_file_names):
2374 (syms_of_msdos) <dos-unsupported-char-glyph>:
2375 * dosfns.c (Fint86): Fix typos in docstrings.
2376
55fb4286
EZ
23772008-11-14 Eli Zaretskii <eliz@gnu.org>
2378
2379 * makefile.w32-in (OBJ1, WIN32OBJ): Fix whitespace.
2380
3fda0315
KY
23812008-11-14 Katsumi Yamaoka <yamaoka@jpl.org>
2382
2383 * puresize.h (BASE_PURESIZE): Increase to 1260000.
2384
7e849c17
CY
23852008-11-12 Michal Nazarewicz <mina86@tlen.pl> (tiny change)
2386
2387 * frame.c (x_set_alpha): Set alpha to -1 if nil given.
2388
2389 * frame.h: Negative alpha means "don't touch".
2390
2391 * w32term.c (x_set_frame_alpha): Do nothing if alpha is negative.
2392
2393 * xterm.c (x_set_frame_alpha): Do nothing if alpha is negative.
2394
b9fd67bd
DN
23952008-11-12 Dan Nicolaescu <dann@ics.uci.edu>
2396
2397 * hftctl.c:
2398 * chpdef.h:
2399 * acldef.h: Remove files used only for systems no longer supported.
2400
2401 * Makefile.in: Fix .o alphabetical ordering.
2402 (hftctl.o): Remove dependency, file removed.
2403 (keymap.o, print.o): Depend on charset.h.
2404
d5998e03
KH
24052008-11-10 Kenichi Handa <handa@m17n.org>
2406
2ae37cf0 2407 * character.c (Fget_byte): Fix and make it faster for unibyte target.
d5998e03 2408
be70e183
CY
24092008-11-08 Chong Yidong <cyd@stupidchicken.com>
2410
2411 * dired.c (file_name_completion): If completion_ignore_case is
2412 enabled, ignore case when checking completion-regexp-list.
2413
7cf94eac
EZ
24142008-11-08 Eli Zaretskii <eliz@gnu.org>
2415
2416 * vm-limit.c (get_lim_data): Fix last change.
2417
ee107a89
KH
24182008-11-08 Kenichi Handa <handa@m17n.org>
2419
2420 * character.c (Fget_byte): New function.
2421 (syms_of_character): Defsubr Fget_byte.
2422
5fd15622
CY
24232008-11-07 Chong Yidong <cyd@stupidchicken.com>
2424
2425 * xdisp.c (try_window_reusing_current_matrix): Ensure that window
2426 cursor position is valid after scrolling.
2427
13d62fad
JB
24282008-11-06 Juanma Barranquero <lekktu@gmail.com>
2429
2430 * fns.c (Frandom): Rename arg N to LIMIT to match the docs; doc fix.
2431
a1dd2936
GM
24322008-11-06 Glenn Morris <rgm@gnu.org>
2433
2434 * xterm.c (handle_one_xevent): Don't let popup menus cause
2435 mouse-autoselect-window related window switching. (Bug#1261)
2436
860cd236
CY
24372008-11-04 David Smith <davidsmith@acm.org> (tiny change)
2438
2439 * xterm.c (xim_close_dpy): Avoid double-free on X11R6 XIM.
2440
653a3150
AS
24412008-11-04 Andreas Schwab <schwab@suse.de>
2442
2443 * xfns.c (Fx_wm_set_size_hint): Add missing return value.
2444
870f5cac
CY
24452008-11-03 Chong Yidong <cyd@stupidchicken.com>
2446
2447 * xfns.c (Fx_wm_set_size_hint): New function.
2448
1e02f3cb
MR
24492008-11-03 Martin Rudalics <rudalics@gmx.at>
2450
2451 * textprop.c (Fprevious_single_char_property_change): Return 0
2452 when there's no change in a string. (Bug#1301)
2453
e630dfc6
MR
24542008-11-02 Martin Rudalics <rudalics@gmx.at>
2455
2456 * frame.c (do_switch_frame): New argument NORECORD passed to
2457 Fselect_window.
2458 (Fselect_frame): New argument NORECORD passed to
2459 do_switch_frame.
2460 (Fset_frame_selected_window): New argument NORECORD passed to
2461 Fselect_frame.
2462 (Fhandle_switch_frame, Fdelete_frame): Handle NORECORD argument
2463 in call of do_switch_frame.
2464 (Fset_mouse_position, Fset_mouse_pixel_position, Fraise_frame):
2465 Handle NORECORD argument in call of Fselect_frame.
2466 * lisp.h (do_switch_frame, Fselect_frame)
2467 (Fset_frame_selected_window): Adjust declarations.
2468 * window.c (select_frame_norecord): New function.
2469 (run_window_configuration_change_hook): Use it and call
2470 Fselect_frame with NORECORD set.
2471 (Fselect_window): Pass NORECORD to Fselect_frame.
2472 (Fset_window_configuration): Handle NORECORD argument in call of
2473 do_switch_frame.
2474 * minibuf.c (choose_minibuf_frame): Handle NORECORD in call of
2475 Fset_frame_selected_window.
2476 * keyboard.c (command_loop_1): Handle NORECORD in call of
2477 Fselect_frame (currently ifdefd).
2478
9020b223
GM
24792008-11-02 Ulrich Mueller <ulm@kph.uni-mainz.de>
2480
2481 * emacs.c (USAGE2): Untabify.
2482
793ffee8
SM
24832008-11-01 Stefan Monnier <monnier@iro.umontreal.ca>
2484
2485 * composite.c (fill_gstring_header): Fix copy/paste typo.
2486
ab6d1131
MR
24872008-10-31 Martin Rudalics <rudalics@gmx.at>
2488
2489 * window.c (Fnext_window, Fprevious_window): Rewrite doc-string.
2490 (Fother_window): Rename argument and rewrite doc-string.
2491 (select_window_norecord): Fix return value. (Bug#1276)
2492
601a9cf1
JB
24932008-10-30 Juanma Barranquero <lekktu@gmail.com>
2494
2495 * w32fns.c (x_create_tip_frame): Prevent default foreground color for
2496 new frames overriding foreground for tooltips. Based on similar patch
2497 from Martin Rudalics <rudalics@gmx.at>. (Bug#1032)
2498
813b0652
CY
24992008-10-29 Chong Yidong <cyd@stupidchicken.com>
2500
2501 * emacs.c (Fdaemon_initialized): Initialize nfd.
2502
4414f58f
MR
25032008-10-29 Martin Rudalics <rudalics@gmx.at>
2504
2505 * window.c (Fwindow_height, Fdelete_window, set_window_buffer)
2506 (Fwindow_text_height): Clarify doc-strings.
2507 * xdisp.c (syms_of_xdisp): Mention set-window-buffer in
2508 doc-string of window-scroll-functions.
2509
ecdcaa09
RS
25102008-10-28 Reiner Steib <Reiner.Steib@gmx.de>
2511
2512 * category.c (syms_of_category): Fix typo in docstring.
2513
23fe745a
JB
25142008-10-28 Juanma Barranquero <lekktu@gmail.com>
2515
2516 * window.c (Fwindowp, Fwindow_live_p, Fwindow_minibuffer_p)
2517 (Fcoordinates_in_window_p, Fscroll_left, Fscroll_right):
2518 Fix typos in docstrings.
2519
ff808935
DN
25202008-10-28 Dan Nicolaescu <dann@ics.uci.edu>
2521
2522 * emacs.c (daemon_pipe): Make non-static.
2523 (IS_DAEMON): Move definition ...
2524 * lisp.h (IS_DAEMON): ... here.
2525 (daemon_pipe): Declare.
2526 (is_daemon): Remove.
2527 * dispnew.c (init_display): Use IS_DAEMON.
2528
fc012771
SM
25292008-10-28 Stefan Monnier <monnier@iro.umontreal.ca>
2530
2531 * xdisp.c (pos_visible_p, redisplay_internal, message3_nolog)
2532 (message2_nolog): Check FRAME_INITIAL_P instead of noninteractively.
2533
2534 * emacs.c (is_daemon): Remove.
2535 (main): Don't set is_daemon.
2536 (IS_DAEMON): New macro.
2537 (Fdaemonp, Fdaemon_initialized): Use it.
601a9cf1 2538 (Fdaemon_initialized): Write a char into the pipe to make sure the
fc012771
SM
2539 parent exits.
2540 (syms_of_emacs): Explicitly initialize daemon_pipe[1].
2541
d8bdbe6f
CY
25422008-10-27 Chong Yidong <cyd@stupidchicken.com>
2543
d1a072bf
CY
2544 * nsterm.m (ns_draw_window_cursor): When hbar cursor is on
2545 over-sized glyph, draw it with the default glyph width.
2546
e2e325aa
CY
2547 * w32term.c (x_draw_bar_cursor): When hbar cursor is on over-sized
2548 glyph, draw it with the default glyph width.
2549
2550 * xterm.c (x_draw_bar_cursor): When hbar cursor is on over-sized
2551 glyph, draw it with the default glyph width.
2552
d8bdbe6f
CY
2553 * xdisp.c (try_scrolling): When computing the distance from the
2554 scroll margin to PT, try moving some distance past the window
2555 bottom before giving up.
2556
7bfac547
MR
25572008-10-27 Martin Rudalics <rudalics@gmx.at>
2558
2559 * window.c (Fwindow_dedicated_p, Fset_window_dedicated_p)
2560 (Fset_window_buffer): Explain in doc-string that a window can be
2561 "strongly" dedicated to its buffer.
2562
4ff029f6
DN
25632008-10-27 Dan Nicolaescu <dann@ics.uci.edu>
2564
2565 * emacs.c (daemon_name): New variable.
2566 (main): Deal with --daemon=SERVER_NAME.
2567 (Fdaemonp): Return a name if one was passed to --daemon.
2568
5790ef40
DN
25692008-10-26 Romain Francoise <romain@orebokech.com>
2570
f9bd0df9 2571 * emacs.c (daemon_pipe): New variable.
5790ef40
DN
2572 (main): Create a pipe before forking, make the parent exit only after
2573 the child has closed its end of the pipe. Move closing the
2574 descriptors ...
2575 (Fdaemon_initialized): ... here. New function.
2576
f5385255
SM
25772008-10-26 Stefan Monnier <monnier@iro.umontreal.ca>
2578
4d632321
SM
2579 * chartab.c (Foptimize_char_table): Make sure `ascii' doesn't point to
2580 the previous unoptimized table.
2581
f5385255
SM
2582 * window.c (Fset_window_buffer): Undo 2008-10-18 change to re-instate
2583 the distinction between non-nil and non-t value of `dedicated'.
2584
6c56a0f3
CY
25852008-10-25 Chong Yidong <cyd@stupidchicken.com>
2586
2587 * keyboard.c (read_char_minibuf_menu_prompt): Ensure that
f5385255 2588 read_char_minibuf_menu_text is large enough to hold the menu string.
6c56a0f3 2589
fec89261
MR
25902008-10-25 Martin Rudalics <rudalics@gmx.at>
2591
2592 * window.c (Fget_buffer_window, Fdelete_windows_on)
2593 (Freplace_buffer_in_windows): Make buffer argument optional and
2594 rename to buffer_or_name.
2595
34fcddd0
CY
25962008-10-24 Chong Yidong <cyd@stupidchicken.com>
2597
f5385255
SM
2598 * xdisp.c (handle_single_display_spec, handle_display_prop):
2599 Undo 2005-05-16 change.
34fcddd0
CY
2600 (handle_stop): Pop iterator if it's loaded with an empty string.
2601 (get_overlay_strings_1): Don't save iterator if it's loaded with
2602 an empty string (bug#1201).
2603
064766f2
KH
26042008-10-24 Kenichi Handa <handa@m17n.org>
2605
2606 * ftfont.c (ftfont_otf_features): Fix previous change.
2607 (ftfont_otf_capability): Check FeatureList.FeatureCount before
2608 calling ftfont_otf_features.
2609
f9bd0df9 26102008-10-24 Kenichi Handa <handa@m17n.org>
064766f2
KH
2611
2612 * font.c (font_match_p): Fix for the case that a vector of
2613 characters is in script-representative-chars.
2614
1dae9197
MA
26152008-10-24 Michael Albinus <michael.albinus@gmx.de>
2616
2617 * dbusbind.c (xd_in_read_queued_messages): New variable.
f5385255 2618 (XD_SIGNAL1, XD_SIGNAL2, XD_SIGNAL3): New macros. Throw Qdbus_error.
1dae9197
MA
2619 (xd_read_queued_messages): Catch Qdbus_error from the macros.
2620 (all): Replace xsignal1, xsignal2, xsignal3 by the respective
2621 macro. (Bug#1186).
2622
f9bd0df9 26232008-10-23 Ali Bahrami <ali_gnu@emvision.com> (tiny change)
9b3362b8
DN
2624
2625 * s/sol2-10.h: New file.
2626
878a4584
JB
26272008-10-23 Juanma Barranquero <lekktu@gmail.com>
2628
2629 * xdisp.c (fill_glyph_string): Fix typo in source (though the
2630 poor beast has survived 9+ years and the jump from xterm.c!).
2631
cd265ca6
MR
26322008-10-23 Martin Rudalics <rudalics@gmx.at>
2633
2634 * buffer.c (Fget_buffer_create): Rename arg to buffer_or_name.
2635 Reword doc-string.
f5385255 2636 (Fbury_buffer): In doc-string say what happens to the buffer's window.
cd265ca6 2637
472a4dc9
JB
26382008-10-23 Juanma Barranquero <lekktu@gmail.com>
2639
2640 * character.c (syms_of_character) <script-representative-chars>:
2641 <unicode-category-table>: Doc fixes.
2642
159bd5a2
NF
26432008-10-23 Noah Friedman <friedman@splode.com>
2644
2645 * coding.c (make_conversion_work_buffer): Check that
2646 Vcode_conversion_reused_workbuf is a live buffer, otherwise call
2647 Fget_buffer_create.
2648
49f9c344
KH
26492008-10-23 Kenichi Handa <handa@m17n.org>
2650
2651 * font.c (font_add_log): Check the values of extra properties.
2652
12bb3111
MR
26532008-10-22 Martin Rudalics <rudalics@gmx.at>
2654
2655 * window.c (Fwindow_dedicated_p, Fset_window_dedicated_p):
2656 Reword doc-string.
2657 (Fset_window_parameter): Use NILP.
2658 (Fscroll_up, Fscroll_down, Fminibuffer_selected_window)
f5385255 2659 (Frecenter): Use "selected" instead of "current" window in doc-strings.
12bb3111 2660
bbeb4e99
JB
26612008-10-22 Juanma Barranquero <lekktu@gmail.com>
2662
2663 * xdisp.c (next_element_from_buffer): Remove bogus xassert condition.
2664
26652008-10-22 Adrian Robert <Adrian.B.Robert@gmail.com>
cb83c00b
AR
2666
2667 * nsfns.m (ns_appkit_version): New function.
2668 (x-server-version): Use it.
2669 (syms_of_nsfns): Define ns-version-string here, not nsterm.m.
2670 (x-server-vendor): Don't check_ns().
2671
2672 * nsterm.m (syms_of_nsterm): Drop ns-version-string.
2673
a9b555d3
JB
26742008-10-22 Juanma Barranquero <lekktu@gmail.com>
2675
2676 * w32fns.c (unwind_create_frame) [!GLYPH_DEBUG]: Fix xassert.
2677 Copied from 2005-02-03 change to xfns.c by Kim F. Storm.
2678
4626499f
KH
26792008-10-22 Kenichi Handa <handa@m17n.org>
2680
e3681952
KH
2681 * syntax.c (scan_words): Call word_boundary_p instead of comparing
2682 scripts.
2683
4626499f
KH
2684 * category.c (word_boundary_p): Check scripts instead of charset.
2685 Handle nil value in word-separating-categories and
2686 word-combining-categories.
2687 (syms_of_category): Fix docstrings of word-separating-categories
2688 and word-combining-categories.
2689
1560f91a
EZ
26902008-10-21 Eli Zaretskii <eliz@gnu.org>
2691
2692 * coding.c (Fencode_coding_region, Fdecode_coding_region)
2693 (Fdecode_coding_string, Fencode_coding_string): Doc fix.
2694
f4668441
MR
26952008-10-21 Martin Rudalics <rudalics@gmx.at>
2696
2697 * buffer.c (Fget_buffer, Fbury_buffer, switch_to_buffer_1):
2698 Rename arg "buffer" to "buffer_or_name".
2699 (Fkill_buffer): Rename arg "buffer" to "buffer_or_name" and make
2700 it optional.
2701 (no_switch_window): Remove since the return value is not used.
a9b555d3 2702 (Fswitch_to_buffer): Rename arg "buffer" to "buffer_or_name".
f4668441
MR
2703 Consider window as dedicated when Fwindow_dedicated_p returns a
2704 non-nil value.
2705 * lisp.h: Remove prototype for no_switch_window.
2706
fd75ddb2
JD
27072008-10-21 Jan Djärv <jan.h.d@swipnet.se>
2708
2709 * emacs.c (main): Unconditionally set PER_LINUX32 and exec
2ae37cf0 2710 temacs when dumping if HAVE_PERSONALITY_LINUX32 is defined.
fd75ddb2 2711
07295713
KH
27122008-10-21 Kenichi Handa <handa@m17n.org>
2713
2714 * coding.c (detect_coding_charset): For iso-8859-* coding systems,
2715 check Vlatin_extra_code_table.
2716
712adc82
EZ
27172008-10-20 Eli Zaretskii <eliz@gnu.org>
2718
2719 * fileio.c (Fset_file_modes): Doc fix.
2720
f549eb0b
MA
27212008-10-19 Michael Albinus <michael.albinus@gmx.de>
2722
2723 * dbusbind.c (XD_OBJECT_TO_DBUS_TYPE): Handle simple type symbols
2724 in arrays.
2725
aac0c6e3
MR
27262008-10-19 Martin Rudalics <rudalics@gmx.at>
2727
2728 * window.c (Fwindow_dedicated_p, Fset_window_dedicated_p):
2729 Mention kill-buffer in doc-string.
2730 (Fset_window_buffer): Reinsert tem check removed in last commit.
2731 (Fenlarge_window, Fshrink_window): Have argument names and
2732 doc-string follow Elisp manual more closely.
2733
27342008-10-18 Eli Zaretskii <eliz@gnu.org>
2735
2736 * fileio.c (Fset_file_modes): Doc fix.
2737
27382008-10-18 Martin Rudalics <rudalics@gmx.at>
2739
2740 * window.c (Fwindow_width, Fset_window_start)
2741 (Fwindow_parameters, Fwindow_parameter, Fset_window_parameter)
f5385255
SM
2742 (Fdelete_windows_on, Freplace_buffer_in_windows):
2743 Make doc-strings follow code and Elisp manual more closely.
aac0c6e3
MR
2744 (Fwindow_dedicated_p): Make window argument optional.
2745 (Fset_window_dedicated_p): Rename argument "arg" to "flag".
2746 (Fset_window_buffer): Respect any non-nil dedicated value for
2747 window. Rename "buffer" argument to "buffer_or_name".
2748
27492008-10-18 Ulrich Mueller <ulm@gentoo.org>
2750
2751 * m/sh3.h: New file, machine description for SuperH.
2752
27532008-10-17 Martin Rudalics <rudalics@gmx.at>
2754
2755 * window.c (Fsplit_window): Rename arg horflag to horizontal.
2756
27572008-10-17 Kenichi Handa <handa@m17n.org>
2758
2759 * ftfont.c (ftfont_otf_features): Fix indexing
2760 gsub_gpos->FeatureList.Feature. Check the validity of indices.
2761
27622008-10-16 Magnus Henoch <mange@freemail.hu>
2763
2764 * dbusbind.c (Fdbus_call_method): Unbreak usage line.
2765 (Fdbus_call_method_asynchronously): Ditto.
2766 This change makes C-h f display the argument list.
2767
27682008-10-16 Chong Yidong <cyd@stupidchicken.com>
2769
2770 * fileio.c (Fexpand_file_name): Doc fix.
2771
2772 * xfaces.c (Finternal_set_lisp_face_attribute): Make null values
2773 of :foreground and :background equivalent to unspecified (20.x
2774 compatibility).
2775
27762008-10-15 Eli Zaretskii <eliz@gnu.org>
2777
2778 * buffer.c (syms_of_buffer): Doc fix.
2779
27802008-10-14 Kenichi Handa <handa@m17n.org>
2781
2782 * font.c (font_clear_prop): When clearing font width, clear the
2783 average width field too.
2784
27852008-10-12 Andreas Schwab <schwab@suse.de>
2786
2787 * ftfont.c (ftfont_shape_by_flt): Make static.
2788 * ftfont.h (ftfont_shape_by_flt): Don't declare.
2789
2790 * font.c: Don't include <m17n-flt.h>.
2791
27922008-10-10 Eli Zaretskii <eliz@gnu.org>
2793
2794 * s/msdos.h (SYSTEM_PURESIZE_EXTRA): Decrease to 10000.
2795
27962008-10-09 Eli Zaretskii <eliz@gnu.org>
2797
2798 * frame.c (make_terminal_frame) [MSDOS]: Remove unused #ifdef'ed
2799 away code.
2800
28012008-10-09 Chong Yidong <cyd@stupidchicken.com>
2802
2803 * dispnew.c (update_text_area): Avoid looping due to large glyph
2804 overhangs (bug#1070).
2805
28062008-10-09 Kenichi Handa <handa@m17n.org>
2807
2808 * fontset.c (face_for_char): If face->fontset is negative, just
2809 return ascii_face.
2810
f5385255
SM
2811 * font.c (font_delete_unmatched): Fix previous change.
2812 Don't reject an entity if DPI and AVGWIDTH of an entity are 0.
aac0c6e3
MR
2813
28142008-10-09 Martin Rudalics <rudalics@gmx.at>
2815
2816 * frame.c (Fraise_frame): On text-only terminals select frame in
2817 order to make it visible. (Bug#1061)
2818
28192008-10-08 Chong Yidong <cyd@stupidchicken.com>
2820
2821 * fontset.c (fontset_find_font): Check frame validity.
2822
28232008-10-07 Chong Yidong <cyd@stupidchicken.com>
2824
a9b555d3 2825 * gtkutil.c (xg_display_open): Reset default display if none exists.
aac0c6e3
MR
2826 (xg_display_close): Allow Emacs to close all displays (bug#985).
2827
28282008-10-06 Andreas Schwab <schwab@suse.de>
2829
f5385255 2830 * sysdep.c (sys_signal): Always set SA_RESTART when noninteractively.
aac0c6e3
MR
2831
28322008-10-06 Chong Yidong <cyd@stupidchicken.com>
2833
f5385255 2834 * emacs.c (Vbefore_init_time, Vafter_init_time): Move from startup.el.
aac0c6e3 2835
a9b555d3 2836 * lisp.h (Vbefore_init_time, Vafter_init_time): Declare.
aac0c6e3
MR
2837
2838 * gtkutil.c (x_wm_set_size_hint): Return immediately if called
2839 during initialization.
2840
28412008-10-04 Eli Zaretskii <eliz@gnu.org>
2842
2843 * xdisp.c (redisplay_internal): If frame switched, redisplay the
2844 whole thing on MSDOS frames as well as on a TTY.
2845
2846 * dispnew.c (update_frame): Flush termscript for MSDOS frames as
2847 well as for TTY.
2848 (Fopen_termscript): Allow opening a termscript on MSDOS frames as
2849 well as on a TTY.
2850
2851 * sysdep.c (init_sys_modes): Set FRAME_GARBAGED_P for MSDOS frames
2852 as well as for TTY.
2853
2854 * systime.h (EMACS_TIME_CMP): Cast EMACS_SECS values to `long'.
2855
2856 * dispnew.c (change_frame_size_1): Set FrameRows and FrameCols for
2857 MSDOS frames as well.
2858
28592008-10-02 Adrian Robert <Adrian.B.Robert@gmail.com>
2860
2861 * image.c (x_clear_image_1): Under NS, call ns_free_indexed_color with
2862 correct arguments.
b71ac3dd 2863 * menu.c (find_and_return_menu_selection): Add cast.
aac0c6e3
MR
2864
28652008-10-03 Glenn Morris <rgm@gnu.org>
2866
2867 * emacs.c (USAGE1): Add --daemon.
2868
28692008-10-02 Eli Zaretskii <eliz@gnu.org>
2870
2871 * process.c (procfs_system_process_attributes): Multiply `pcpu' by
2872 100, so it's in percents as advertised.
2873
28742008-10-02 Adrian Robert <Adrian.B.Robert@gmail.com>
2875
2876 * nsterm.h (ns_cursor_types, ns_output.desired_cursor_color)
2877 (ns_output.current_cursor, ns_output.desired_cursor)
2878 (ns_output.last_inactive, FRAME_CURSOR, FRAME_NEW_CURSOR)
2879 (FRAME_NEW_CURSOR_COLOR): Remove.
2880
2881 * nsfns.m (ns_set_cursor_color): Use FRAME_CURSOR_COLOR.
a9b555d3 2882 (ns_lisp_to_cursor_type, ns_cursor_type_to_lisp): Use core Emacs
aac0c6e3
MR
2883 enumeration (HOLLOW_BOX_CURSOR, etc.).
2884
2885 * nsterm.m (ns_frame_rehighlight): Remove commented code.
2886 (draw_window_cursor): Simplify code.
f5385255
SM
2887 (EmacsView-windowDidBecomeKey:,-windowDidResignKey:):
2888 Don't change cursor type. In latter, call rehighlight instead of doing
aac0c6e3 2889 updates manually.
a9b555d3
JB
2890 (EmacsPrefsController-setPanelFromValues,-setValuesFromPanel):
2891 Use core Emacs cursor types.
aac0c6e3 2892
b8ff72fa 2893 * xdisp.c (draw_glyphs): Don't call notice_overwritten_cursor under NS.
aac0c6e3
MR
2894
28952008-10-02 Martin Rudalics <rudalics@gmx.at>
2896
2897 * process.c (Faccept_process_output): Fix doc-string.
2898
28992008-10-02 Dan Nicolaescu <dann@ics.uci.edu>
2900
2901 * gmalloc.c (__sbrk): Also define for uClibc.
2902
2903 * s/gnu-linux.h (GNU_LIBRARY_PENDING_OUTPUT_COUNT): Add definition
2904 for uClibc.
2905
29062008-10-01 Adrian Robert <Adrian.B.Robert@gmail.com>
2907
2908 * nsfont.m (nsfont_spec_to_traits): Use UnXX masks only for non-normal
2909 styles.
2910 (nsfont_open): Reenable the cache.
2911
29122008-10-01 Adrian Robert <Adrian.B.Robert@gmail.com>
2913
2914 * font.c (font_matching_entity): Reflect ATTRS in font selection.
2915 (font_find_for_lface) [HAVE_NS]: Don't ignore case.
2916
29172008-09-30 Stefan Monnier <monnier@iro.umontreal.ca>
2918
2919 * dispnew.c (Fsend_string_to_terminal): Don't try to send a string to
2920 a suspended terminal.
2921
29222008-09-30 Michael Albinus <michael.albinus@gmx.de>
2923
2924 * dbusbind.c (xd_signature): Use strcat instead of sprintf.
2925
29262008-09-30 Eli Zaretskii <eliz@gnu.org>
2927
2928 * Makefile.in (MSDOS_SUPPORT): Remove ccl.elc and codepage.elc.
2929
29302008-09-30 Chong Yidong <cyd@stupidchicken.com>
2931
2932 * xdisp.c (move_it_to): Don't advance the iterator if the last tab
2933 in a continued line coincides with a line beginning.
2934
29352008-09-29 Adrian Robert <Adrian.B.Robert@gmail.com>
2936
2937 * nsfont.m (nsfont_trait_distance): Fix bug.
2938 (nsfont_list): Return a list rather than a vector (syncs with Handa
2939 changes of 2008-05-14).
2940 (nsfont_open): Improve logging.
2941
29422008-09-29 Andreas Schwab <schwab@suse.de>
2943
2944 * keyboard.c (syms_of_keyboard) <input-decode-map>: Doc fix.
2945
29462008-09-28 Martin Rudalics <rudalics@gmx.at>
2947
2948 * character.c (Fchar_resolve_modifiers): Rewrite Elisp function
2949 name as char-resolve-modifiers.
2950 Reported by: Markus Triska <markus.triska@gmx.at>
2951
29522008-09-28 Dan Nicolaescu <dann@ics.uci.edu>
2953
2954 * dispnew.c (init_display): Return earlier when running as a daemon.
2955
29562008-09-27 Adrian Robert <Adrian.B.Robert@gmail.com>
2957
2958 * nsfont.m (nsfont_draw): Fix up composition rendering (cmp_from, ...).
2959
29602008-09-27 Eli Zaretskii <eliz@gnu.org>
2961
2962 * composite.c (Fcomposition_get_gstring)
2963 (Fcompose_region_internal, Fcompose_string_internal)
2964 (Ffind_composition_internal): Doc fix.
2965 (syms_of_composite) <compose-chars-after-function>: Doc fix.
2966 (syms_of_composite) <auto-composition-function>: Doc fix.
2967 (syms_of_composite) <composition-function-table>: Doc fix.
2968
29692008-09-25 Chong Yidong <cyd@stupidchicken.com>
2970
2971 * search.c (wordify): New argument for lax word-ends.
2972 (Fword_search_forward_lax, Fword_search_backward_lax): New funs.
2973
29742008-09-24 Dan Nicolaescu <dann@ics.uci.edu>
2975
2976 * lisp.h (is_daemon): Declare.
2977 * dispnew.c (init_display): Do not try to initialize the terminal
2978 when running as a daemon.
2979
29802008-09-22 Chong Yidong <cyd@stupidchicken.com>
2981
2982 * nsfns.m (compute_tip_xy): Use x_display_pixel_width and
2983 x_display_pixel_height.
2984
29852008-09-22 Martin Rudalics <rudalics@gmx.at>
2986
2987 * undo.c (record_point): Don't call Fundo_boundary for first
2988 change. (Bug#731)
2989
29902008-09-22 Juanma Barranquero <lekktu@gmail.com>
2991
2992 * emacs.c (Fdaemonp): Doc fix.
2993
29942008-09-22 Dan Nicolaescu <dann@ics.uci.edu>
2995
2996 * emacs.c (main): Place #ifdef in the proper place.
2997
29982008-09-21 Dan Nicolaescu <dann@ics.uci.edu>
2999
3000 * emacs.c (standard_args): Add --daemon.
3001 (main): Disconnect from the terminal when --daemon is passed.
3002 (is_daemon): New variable.
3003 (Fdaemonp): New function.
3004 (syms_of_emacs): Defsubr it.
3005
30062008-09-20 Chong Yidong <cyd@stupidchicken.com>
3007
3008 * xdisp.c (get_next_display_element): Handle string display
3009 correctly when checking for the end of a box run.
3010
30112008-09-20 Glenn Morris <rgm@gnu.org>
3012
3013 * fileio.c (Qdelete_by_moving_to_trash): New Lisp_Object.
3014 (syms_of_fileio): Add Qdelete_by_moving_to_trash.
3015 (Frename_file): Avoid copying to trash if a rename involves
3016 a delete. (Bug#964).
3017
30182008-09-20 Eli Zaretskii <eliz@gnu.org>
3019
3020 * keyboard.c (Fset_quit_char, Fset_input_meta_mode)
3021 (Fset_output_flow_control, Fcurrent_input_mode): Support MSDOS
3022 frames as well as termcap frames.
3023 (handle_interrupt): Remove "#ifndef MSDOS" around the call to
3024 get_named_tty.
3025
30262008-09-19 Eli Zaretskii <eliz@gnu.org>
3027
3028 * process.c (procfs_system_process_attributes): Fix cmdline in
3029 case /proc/PID/cmdline is empty.
3030
3031 * xterm.c (x_wm_set_size_hint): Use x_display_pixel_width and
3032 x_display_pixel_height.
3033
30342008-09-19 Juanma Barranquero <lekktu@gmail.com>
3035
3036 * frame.c (x_fullscreen_adjust): Declare var as Display_Info.
3037
3038 * w32fns.c (Fx_display_pixel_width, Fx_display_pixel_height)
3039 (compute_tip_xy): Use x_display_pixel_width, x_display_pixel_height.
3040
30412008-09-19 Dan Nicolaescu <dann@ics.uci.edu>
3042
3043 * dispextern.h (struct it): Move line_wrap away from the middle of
3044 bitfields. Move voffset in struct iterator_stack_entry after the
3045 bitfields. Move tab_width near after another short.
3046
30472008-09-18 Dan Nicolaescu <dann@ics.uci.edu>
3048
3049 * frame.h (struct frame): Move alpha from the middle of bitfields.
3050
3051 * window.h (struct window): Move frozen_window_start_p after the
3052 rest of the bitfields to reduce padding.
3053
30542008-09-18 Chong Yidong <cyd@stupidchicken.com>
3055
3056 * xterm.h (x_display_info): Remove `height' and `width' members.
3057
3058 * nsterm.h (ns_display_info): Remove `height' and `width' members.
3059
3060 * w32term.h (w32_display_info): Remove `height', `width',
3061 `height_in', and `width_in' members.
3062
b8ff72fa
SM
3063 * xterm.c (x_display_pixel_height, x_display_pixel_width):
3064 New functions.
aac0c6e3
MR
3065 (x_calc_absolute_position): Use them.
3066 (x_term_init): Omit removed `height' and `width' members.
3067
b8ff72fa
SM
3068 * w32term.c (x_display_pixel_height, x_display_pixel_width):
3069 New functions.
aac0c6e3
MR
3070 (w32_read_socket, x_calc_absolute_position): Use them.
3071 (w32_initialize_display_info, w32_term_init): Omit removed members
3072 of w32_display_info.
3073
b8ff72fa
SM
3074 * nsterm.m (x_display_pixel_height, x_display_pixel_width):
3075 New functions.
3076 (ns_initialize_display_info): Omit removed members of ns_display_info.
aac0c6e3 3077
b8ff72fa
SM
3078 * xterm.c (x_display_pixel_height, x_display_pixel_width):
3079 New functions.
aac0c6e3
MR
3080 (x_calc_absolute_position): Use them.
3081 (x_term_init): Omit removed `height' and `width' members.
3082
3083 * xfns.c (Fx_display_pixel_width, Fx_display_pixel_height)
b8ff72fa
SM
3084 (compute_tip_xy):
3085 * frame.c (x_fullscreen_adjust):
aac0c6e3
MR
3086 * xmenu.c (menu_position_func): Use x_display_pixel_height and
3087 x_display_pixel_width.
3088
30892008-09-18 Kenichi Handa <handa@m17n.org>
3090
3091 * composite.c (fill_gstring_header): Don't check FROM and TO here.
3092 (composition_compute_stop_pos): Fix handling of static composition.
3093 (Fcomposition_get_gstring): Check FROM and TO at first.
3094
30952008-09-17 Stefan Monnier <monnier@iro.umontreal.ca>
3096
46e722a9 3097 * composite.c (Fcomposition_get_gstring): Yet another int/Lisp_Object
aac0c6e3
MR
3098 mixup (YAILOM).
3099
31002008-09-17 Chong Yidong <cyd@stupidchicken.com>
3101
3102 * indent.c (Fvertical_motion): Use position reported by iterator
3103 instead of PT for determining screen motion (bug#943).
3104
31052008-09-17 Romain Francoise <romain@orebokech.com>
3106
3107 * composite.c (composition_adjust_point): Fix int/EMACS_INT mixup.
3108
31092008-09-17 Kenichi Handa <handa@m17n.org>
3110
3111 * ftfont.c (ftfont_shape_by_flt): Downcase family name.
3112
3113 * composite.c (Fcomposition_get_gstring): Make bigger gstring_work
3114 if necessary.
3115
31162008-09-16 Kenichi Handa <handa@m17n.org>
3117
3118 * coding.c (make_conversion_work_buffer): Avoid calling
3119 Fget_buffer_create if it is not necessary.
3120
31212008-09-15 Martin Rudalics <rudalics@gmx.at>
3122
3123 * window.c (Fselect_window): Don't update window_select_count and
3124 use_time when norecord is not nil.
3125
31262008-09-14 Kenichi Handa <handa@m17n.org>
3127
3128 * fileio.c (Finsert_file_contents): Delete incorrect decrement of
3129 specpdl_ptr.
3130
31312008-09-12 Kenichi Handa <handa@m17n.org>
3132
3133 * indent.c (scan_for_column): Don't handle automatic composition
3134 if the current buffer is not associated with a window.
3135
3136 * composite.c (composition_reseat_it): If the current buffer is
3137 not associated with a window, ignore the automatic composition.
3138 (find_automatic_composition): Likewise.
3139
31402008-09-12 Stefan Monnier <monnier@iro.umontreal.ca>
3141
3142 * term.c (close_gpm): New fun extracted from Fgpm_mouse_stop.
3143 (Fgpm_mouse_stop): Use it.
3144 * termhooks.h (close_gpm): Declare.
3145 * keyboard.c (tty_read_avail_input): Forcefully close the gpm
3146 connection if Gpm_GetEvent fails.
3147
3148 * window.c (set_window_buffer): Always preserve current-buffer.
3149
31502008-09-12 Glenn Morris <rgm@gnu.org>
3151
3152 * charset.c (init_charset): Warn if etc/charsets not found. (Bug#909)
3153
31542008-09-11 Glenn Morris <rgm@gnu.org>
3155
3156 * charset.c (charset-map-path): Doc fix.
3157
31582008-09-10 Kenichi Handa <handa@m17n.org>
3159
3160 * xdisp.c (handle_composition_prop): Set it->cmp_it.ch to -1.
3161
3162 * font.c (Ffont_shape_gstring): Make glyphs of non-nil adjustment
3163 compose a grapheme cluster with the preceding base glyph.
3164
3165 * composite.c (composition_compute_stop_pos): Fix previous change.
3166 Reset cmp_it->id to -1 at first.
3167
31682008-09-10 Glenn Morris <rgm@gnu.org>
3169
3170 * Makefile.in (character.o, chartab.o): Fix config.h typo.
3171
31722008-09-09 Chong Yidong <cyd@stupidchicken.com>
3173
3174 * keyboard.c (read_key_sequence): Reapply translation maps when
3175 switching keyboards.
3176
31772008-09-09 Kenichi Handa <handa@m17n.org>
3178
3179 * ftfont.c (ftfont_shape_by_flt): Use "combining" FLT for ASCII
3180 characters.
3181
3182 * composite.c (FORWARD_CHAR): Fix calculation
3183 of (POSITION).pos_byte.
3184 (composition_compute_stop_pos): Limit the search of composition to
3185 at most 500 characters ahead. If we reach the limit or find a
3186 newline, set cmp_it->ch to -2 and return 0.
3187 (composition_reseat_it): Handle the case that cmp_it->ch is -2.
3188
31892008-09-08 Kenichi Handa <handa@m17n.org>
3190
3191 * indent.c (Fvertical_motion): Be sure to set
3192 it_overshoot_expected if it.cmp_it.id is non-negative.
3193
31942008-09-07 Andreas Schwab <schwab@suse.de>
3195
3196 * callproc.c (Fcall_process): Don't hold references to string data
3197 across garbage collection. Move initialisation of new_argv down
3198 to avoid compiler bug.
3199
32002008-09-07 Roland Winkler <Roland.Winkler@physik.uni-erlangen.de>
3201
3202 * process.c (Fsystem_process_attributes): Doc fix.
3203
32042008-09-07 Chong Yidong <cyd@stupidchicken.com>
3205
3206 * callproc.c (Fcall_process): Canonicalize current directory name.
3207
3208 * xdisp.c (move_it_to): When moving by vpos, ensure that the
3209 iterator advances to the next line if the current line ends in a
3210 continued tab.
3211
32122008-09-07 Teodor Zlatanov <tzz@lifelogs.com>
3213
3214 * nsfont.m (nsfont_draw): Fix the references to missing gidx data
3215 member to point to cmp_from.
3216
3217 * xdisp.c: Doc fix for references to gidx data member.
3218
32192008-09-07 Stefan Monnier <monnier@iro.umontreal.ca>
3220
3221 * buffer.c (Fbuffer_swap_text): Reset window->point markers.
3222
32232008-09-07 Kenichi Handa <handa@m17n.org>
3224
3225 * composite.c (FORWARD_CHAR): Check STOP after
3226 incrementing (POSITION).pos.
3227
32282008-09-06 Roland Winkler <Roland.Winkler@physik.uni-erlangen.de>
3229
3230 * process.c (Fsystem_process_attributes): Doc fix.
3231
32322008-09-06 Chong Yidong <cyd@stupidchicken.com>
3233
3234 * keyboard.c (Ftop_level): Doc fix.
3235
32362008-09-06 Eli Zaretskii <eliz@gnu.org>
3237
3238 * xmenu.c (xmenu_show) [!HAVE_X_WINDOWS]: If frame has a
3239 minibuffer, don't let lower part of menu invade the echo area.
3240
3241 * msdos.c (IT_menu_display): Use STRING_CHAR_ADVANCE instead of a
3242 "char *q" to access menu text and advance through it. Revert the
3243 change that displayed ">" instead of ASCII character 0x10.
3244
32452008-09-05 Eli Zaretskii <eliz@gnu.org>
3246
3247 * menu.c (single_menu_item) [!HAVE_BOXES]: Enable emulation of
3248 toggle boxes and radio buttons on MS-DOS as well.
3249
32502008-09-05 Kenichi Handa <handa@m17n.org>
3251
3252 * composite.c (autocmp_chars): Check lookback count.
3253 (composition_compute_stop_pos): Set cmp_it->lookback.
3254 (composition_reseat_it): Check lookback count.
3255 (struct position_record): New struct.
3256 (FORWARD_CHAR, BACKWARD_CHAR, CHAR_COMPOSABLE_P): New macros.
3257 (find_automatic_composition): New function.
3258 (composition_adjust_point): Use find_automatic_composition.
3259
3260 * dispextern.h (struct composition_it): New member lookback.
3261
32622008-09-02 Chong Yidong <cyd@stupidchicken.com>
3263
3264 * indent.c (Fvertical_motion): Don't call move_it_by_lines again
3265 if moving by a single line.
3266
32672008-09-02 Andreas Schwab <schwab@suse.de>
3268
3269 * xterm.c (x_delete_display): Fix merge error.
3270
3271 * fileio.c (Fexpand_file_name): Remove unused variables.
3272
32732008-09-02 Eli Zaretskii <eliz@gnu.org>
3274
3275 * fileio.c (Fexpand_file_name): Copy argument `name' into local
3276 storage on all platforms, not just on DOS_NT.
3277
32782008-09-02 Jason Rumney <jasonr@gnu.org>
3279
b8ff72fa
SM
3280 * w32menu.c (Fx_popup_menu, Fx_popup_dialog, w32_menu_show):
3281 Ensure mouse is not grabbed after menu is finished.
aac0c6e3
MR
3282
32832008-09-01 Chong Yidong <cyd@stupidchicken.com>
3284
3285 * xfaces.c (Finternal_set_alternative_font_family_alist)
3286 (Finternal_set_alternative_font_registry_alist): Properly copy
3287 entire alist structure.
3288
32892008-09-01 Kenichi Handa <handa@m17n.org>
3290
d66c0241 3291 * ftfont.c (ftfont_spec_pattern): Don't create a charset if the
aac0c6e3 3292 representative chars of the script is a vector.
d66c0241
JB
3293 (ftfont_list): Handle the case where the representative chars of
3294 the script is a vector.
aac0c6e3
MR
3295
3296 * character.c (syms_of_character): Docstring of
3297 script-representative-chars fixed.
3298
32992008-08-31 Eli Zaretskii <eliz@gnu.org>
3300
3301 * msdos.c (BUILD_CHAR_GLYPH): New macro.
3302 (IT_menu_display): Use it instead of SET_CHAR_GLYPH to construct
3303 the menu. Allocate larger buffer for `text', to account for
3304 possible ^C characters.
3305
33062008-08-31 Martin Rudalics <rudalics@gmx.at>
3307
3308 * xdisp.c (prepare_menu_bars): Don't call
3309 Vwindow_size_change_functions with arg Qt.
3310
33112008-08-31 Stefan Monnier <monnier@iro.umontreal.ca>
3312
3313 * font.h (font_range):
3314 * fileio.c (report_file_error):
46e722a9
SM
3315 * composite.c (composition_update_it): Yet another int/Lisp_Object
3316 mixup (YAILOM).
aac0c6e3
MR
3317
33182008-08-30 Glenn Morris <rgm@gnu.org>
3319
3320 * data.c (Fmake_variable_frame_local): Doc fix.
3321
3322 * frame.c (Fmodify_frame_parameters): Doc fix.
3323
33242008-08-30 Eli Zaretskii <eliz@gnu.org>
3325
3326 * w32.c (init_user_info): Allocate buf[] with xmalloc using the size
3327 needed by GetTokenInformation.
3328 (w32_system_process_attributes): Check return values of all system
3329 APIs.
3330
3331 * msdos.c (IT_display_cursor): Write "CURSOR ON/OFF" to termscript
3332 only when the state changes.
3333 (IT_update_begin, IT_update_end): Add termscript trace.
3334
3335 * w16select.c (Fw16_set_clipboard_data): Don't encode text if
3336 clipboard is unavailable. Set dst to NULL if it doesn't point to
3337 malloc'ed data.
3338 (Fw16_get_clipboard_data): Initialize htext to NULL, to avoid
3339 passing random values to xfree.
3340
3341 * dispnew.c (init_display): Set `tty's association in frame's
b8ff72fa 3342 parameters alist to the name of the terminal device, if that is known.
aac0c6e3
MR
3343
33442008-08-29 Jason Rumney <jasonr@gnu.org>
3345
3346 * w32uniscribe.c (uniscribe_check_otf): Don't fallback on DFLT script.
3347
33482008-08-29 Eli Zaretskii <eliz@gnu.org>
3349
3350 * composite.c (fill_gstring_body): Avoid compiler warnings.
3351
3352 * font.c (font_fill_lglyph_metrics): Use EMACS_INT in
3353 LGLYPH_SET_CODE to avoid compiler warnings.
3354
2ae37cf0 3355 * makefile.w32-in ($(BLD)/w32uniscribe.$(O)): Depend on composite.h.
aac0c6e3
MR
3356
3357 * composite.h (LGLYPH_SET_CODE): Cast `val' to EMACS_INT.
3358
3359 * w32uniscribe.c (uniscribe_shape): Shut up compiler warning in
3360 LGLYPH_SET_CODE.
3361
33622008-08-29 Kenichi Handa <handa@m17n.org>
3363
3364 * fileio.c (report_file_error): Don't downcase the first character
3365 of errstring if it is still unibyte.
3366
33672008-08-29 Kenichi Handa <handa@m17n.org>
3368
3369 These changes are to re-implement the automatic composition so
3370 that it doesn't use text properties.
3371
3372 * Makefile.in (ftfont.o): Depend on composite.h.
3373 (composite.o): Depend dispextern.h, font.h, frame, and window.h.
3374
3375 * character.h (Vunicode_category_table): Extern it.
3376
3377 * character.c (Vunicode_category_table): New variable.
3378 (syms_of_character): DEFVAR_LISP Vunicode_category_table.
3379
3380 * chartab.c (optimize_sub_char_table): Perform more greedy
3381 optimization.
3382
b8ff72fa
SM
3383 * composite.h (enum composition_method):
3384 Delete COMPOSITION_WITH_GLYPH_STRING.
aac0c6e3
MR
3385 (COMPOSITION_METHOD): Don't check COMPOSITION_WITH_GLYPH_STRING.
3386 (Vcomposition_function_table): Extern it.
3387 (LGSTRING_XXX, LGLYPH_XXX): Macros moved from font.h.
3388 (composition_gstring_put_cache, composition_gstring_from_id)
3389 (composition_gstring_p, composition_gstring_width)
3390 (composition_compute_stop_pos, composition_reseat_it)
3391 (composition_update_it, composition_adjust_point): Extern them.
3392 (Fcomposition_get_gstring): EXFUN it.
3393
d66c0241 3394 * composite.c: Include window.h, frame.h, dispextern.h, font.h.
aac0c6e3
MR
3395 (Vcomposition_function_table)
3396 (get_composition_id): Don't handle COMPOSITION_WITH_GLYPH_STRING.
b8ff72fa
SM
3397 (gstring_hash_table, gstring_work, gstring_work_headers):
3398 New variables.
aac0c6e3
MR
3399 (gstring_lookup_cache, composition_gstring_put_cache)
3400 (composition_gstring_from_id, composition_gstring_p)
3401 (composition_gstring_width, fill_gstring_header)
3402 (fill_gstring_body, autocmp_chars, composition_compute_stop_pos)
3403 (composition_reseat_it, composition_update_it)
b8ff72fa 3404 (composition_adjust_point, Fcomposition_get_gstring): New functions.
aac0c6e3
MR
3405 (syms_of_composite): Initialize gstring_hash_table, gstrint_work,
3406 and gstring_work_headers. DEFVAR_LISP composition-function-table.
3407 Defsubr compostion_get_gstring.
3408
3409 * dispextern.h (struct glyph): New union u.cmp. Delete the member
3410 cmp_id.
3411 (struct glyph_string): Delete the member gidx. New members
3412 cmp_id, cmp_from, and cmp_to.
3413 (enum it_method): Delete GET_FROM_COMPOSITION.
3414 (struct composition_it): New struct.
3415 (struct it): New member cmp_it, and iterator_stack_entry.cmp_it.
3416 Delete c, len, cmp_id, cmp_len in u.comp.
3417
3418 * font.h (enum lgstring_indices): Delete it.
b8ff72fa 3419 (LGSTRING_XXX, LGLYPH_XXX): Move these macros to composite.h.
aac0c6e3 3420 (enum lglyph_indices): Likewise.
b8ff72fa 3421 (font_range): Adjust extern.
aac0c6e3
MR
3422 (font_fill_lglyph_metrics): Extern it.
3423
3424 * font.c (QCf): New variable.
3425 (check_gstring): Use LGSTRING_GLYPH_LEN, not LGSTRING_LENGTH.
3426 (font_prepare_composition): Delete this function.
3427 (font_range): Type and arguments changed.
3428 (Ffont_make_gstring, Ffont_fill_gstring): Delete them.
3429 (font_fill_lglyph_metrics): New function.
b8ff72fa 3430 (Ffont_shape_text): Rename to Ffont_shape_gstring and change arguments.
aac0c6e3 3431 (syms_of_font): DEFSYM QCf. Delete defsubr for
b8ff72fa
SM
3432 Sfont_make_gstring, Sfont_fill_gstring, Sfont_shape_text.
3433 Defsubr Sfont_shape_gstring.
aac0c6e3
MR
3434
3435 * fontset.h (font_for_char): Extern it.
3436
3437 * fontset.c (font_for_char): New function.
3438
3439 * ftfont.c: Include composite.h.
3440 (ftfont_resolve_generic_family): Add langset "en" to pattern.
b8ff72fa 3441 (ftfont_shape_by_flt): Use LGSTRING_GLYPH_LEN, not LGSTRING_LENGTH.
aac0c6e3
MR
3442
3443 * indent.c: Include composite.h and dispextern.h.
3444 (check_composition): Delete this function.
3445 (scan_for_column): Handle composition by
3446 composition_compute_stop_pos, composition_reseat_it, and
3447 composition_update_it.
3448 (compute_motion): Likewise.
3449 (Fvertical_motion): Fix checking of composition.
3450
3451 * keyboard.c (adjust_point_for_property): Check composition by
3452 composition_adjust_point.
3453
b8ff72fa 3454 * nsterm.m (ns_draw_glyph_string): Adjust for the change of
aac0c6e3
MR
3455 struct glyph_string.
3456
b8ff72fa
SM
3457 * term.c (encode_terminal_code): Adjust for the change of struct glyph.
3458 (append_composite_glyph): Adjust for the change of struct it and
aac0c6e3
MR
3459 struct glyph.
3460 (produce_composite_glyph): Likewise.
3461
b8ff72fa
SM
3462 * w32term.c (x_draw_composite_glyph_string_foreground):
3463 Adjust for the change of struct glyph_string.
aac0c6e3
MR
3464 (x_draw_glyph_string): Likewise.
3465
3466 * w32uniscribe.c (struct uniscribe_font_info): Include composite.h.
3467 (uniscribe_shape): Use LGSTRING_GLYPH_LEN, not LGSTRING_LENGTH.
3468
3469 * xdisp.c: Include font.h.
3470 (it_props): Delete the entry for Qauto_composed.
3471 (init_iterator): Initialize it->cmp_it.id to -1.
3472 (compute_stop_pos): Call composition_compute_stop_pos.
b8ff72fa 3473 (face_before_or_after_it_pos): Adjust for the change of struct it.
aac0c6e3
MR
3474 (handle_auto_composed_prop): Delete it.
3475 (handle_composition_prop): Handle only static composition.
3476 (next_overlay_string): Remove it->method == GET_FROM_COMPOSITION
3477 from xassert. Initialize it->cmp_it.stop_pos.
b8ff72fa 3478 (push_it): Adjust for the change of struct it.
aac0c6e3
MR
3479 (pop_it): Likewise.
3480 (get_next_element): Delete next_element_from_composition.
3481 (CHAR_COMPOSED_P): New macro.
3482 (get_next_display_element): For automatic composition, get a face
3483 from the font in the glyph-string.
3484 (set_iterator_to_next): For GET_FROM_BUFFER and GET_FROM_STRING,
b8ff72fa 3485 check composition by it->cmp_it.id. Delete GET_FROM_COMPOSITION case.
aac0c6e3
MR
3486 (next_element_from_string): Check if the character at the current
3487 position is composed by CHAR_COMPOSED_P.
3488 (next_element_from_buffer): Likewise.
d66c0241
JB
3489 (next_element_from_composition): Adjust for the change of struct it.
3490 Update it->cmp_it.
b8ff72fa
SM
3491 (dump_glyph): Adjust for the change of struct glyph.
3492 (fill_composite_glyph_string): Adjust for the change of struct
aac0c6e3
MR
3493 it and struct glyph. Don't handle automatic composition here.
3494 (fill_gstring_glyph_string): New function.
3495 (x_get_glyph_overhangs): Handle automatic composition.
b8ff72fa 3496 (BUILD_COMPOSITE_GLYPH_STRING): Adjust for the change of struct glyph.
aac0c6e3
MR
3497 (BUILD_GSTRING_GLYPH_STRING): New macro.
3498 (BUILD_GLYPH_STRINGS): Call BUILD_GSTRING_GLYPH_STRING for
3499 automatic composition.
b8ff72fa 3500 (append_composite_glyph): Adjust for the change of struct it and
aac0c6e3 3501 struct glyph.
b8ff72fa 3502 (x_produce_glyphs): Adjust for the change of struct it.
aac0c6e3 3503
b8ff72fa 3504 * xterm.c (x_draw_composite_glyph_string_foreground): Adjust for
aac0c6e3
MR
3505 the change of struct glyph_string.
3506 (x_draw_glyph_string): Likewise.
3507
35082008-08-29 Glenn Morris <rgm@gnu.org>
3509
3510 * buffer.c (word-wrap): Doc fix.
3511 * xdisp.c (truncate-partial-width-windows): Doc fix.
3512 Increase default to 50.
3513
35142008-08-29 Chong Yidong <cyd@stupidchicken.com>
3515
3516 * xdisp.c (update_tool_bar_unwind): New function.
3517 (update_tool_bar): Temporarily set selected frame before building
3518 tool-bar items.
3519
35202008-08-28 Michael Albinus <michael.albinus@gmx.de>
3521
3522 * dbusbind.c (XD_ERROR, XD_DEBUG_MESSAGE): Use strncpy and
3523 snprintf, respectively.
3524 (xd_append_arg): Convert strings with Fstring_make_unibyte.
3525
35262008-08-28 Chong Yidong <cyd@stupidchicken.com>
3527
3528 * Makefile.in: Revert (undocumented) 2008-08-20 change adding
3529 LDFLAGS to GNUstep CC invocation.
3530
35312008-08-27 Chong Yidong <cyd@stupidchicken.com>
3532
3533 * indent.c (Fvertical_motion): Revert last change. Handle the
3534 general case where we are moving forward, and PT spans multiple
3535 screen lines.
3536
3537 * eval.c (find_handler_clause): Temporarily increase
3538 max-lisp-eval-depth while printing the backtrace buffer, to
3539 guarantee that help-mode code can run.
3540
35412008-08-27 Eli Zaretskii <eliz@gnu.org>
3542
3543 * msdos.c (Fmsdos_remember_default_colors): Don't reverse frame
3544 colors under -rv.
3545 (IT_set_frame_parameters): Don't swap foreground and background
3546 colors if `(reverse . t)' is present in the frame properties.
3547 (internal_terminal_init): Call init_frame_faces only for the
3548 initial frame.
3549
35502008-08-27 Andreas Schwab <schwab@suse.de>
3551
3552 * dired.c (Ffile_attributes): Avoid compiler warning in bitshift.
3553
35542008-08-27 Andreas Schwab <schwab@suse.de>
3555
3556 * search.c (search_buffer): Set char_base to zero only at the end.
3557
35582008-08-27 Kenichi Handa <handa@m17n.org>
3559
b8ff72fa 3560 * fileio.c (report_file_error): Fix handling of multibyte error string.
aac0c6e3
MR
3561
35622008-08-27 Andreas Seltenreich <seltenreich@gmx.de>
3563
3564 * xterm.c (x_term_init): Temporarily hide the partially
3565 initialized terminal while calling vendor-specific-keysyms.
3566
35672008-08-26 Eli Zaretskii <eliz@gnu.org>
3568
3569 * msdos.c (internal_terminal_init): Most initializations done only
3570 once, especially initial_screen_colors[] and termscript open.
3571
35722008-08-26 Chong Yidong <cyd@stupidchicken.com>
3573
3574 * eval.c (Fcondition_case): Doc fix.
3575
3576 * widgetprv.h (EmacsFramePart): Change font member to the new font
3577 struct.
3578
3579 * widget.c: Include character.h and font.h for XSETFONT.
3580 (setup_frame_gcs): Compute X font id from font struct, just once.
3581
35822008-08-26 Eli Zaretskii <eliz@gnu.org>
3583
3584 * term.c (get_named_tty): Fix last change.
3585
35862008-08-26 Chong Yidong <cyd@stupidchicken.com>
3587
3588 * indent.c (Fvertical_motion): If moving forward starting from a
b8ff72fa 3589 multi-line string, move the iterator to the last line of that string.
aac0c6e3
MR
3590
35912008-08-25 Eli Zaretskii <eliz@gnu.org>
3592
3593 * frame.c (do_switch_frame): Mark previously displayed frame as
3594 obscured for FRAME_MSDOS_P frames as well.
3595
35962008-08-24 Eli Zaretskii <eliz@gnu.org>
3597
3598 * frame.c (make_terminal_frame): Initialize f->terminal,
3599 f->terminal->reference_count, and scroll bars on MS-DOS as well.
3600 Set the top frame to newly created frame.
3601 (Fmake_terminal_frame): Reuse the_only_display_info.
3602
3603 * vm-limit.c (get_lim_data) [MSDOS]: Use alternative methods of
3604 estimating available memory.
3605
b97439ce 36062008-08-23 David Reitter <david.reitter@gmail.com>
aac0c6e3
MR
3607
3608 * nsterm.m (ns_draw_window_cursor): Don't call
3609 NSDisableScreenUpdates and NSEnableScreenUpdates on
3610 non-NS_IMPL_COCOA systems.
3611
36122008-08-23 Andreas Schwab <schwab@suse.de>
3613
3614 * process.c (procfs_system_process_attributes): Fix use of
3615 uninitialized variables.
3616
36172008-08-23 Eli Zaretskii <eliz@gnu.org>
3618
3619 * emacs.c (main) [MSDOS]: Call syms_of_xmenu.
3620
3621 * dispnew.c (init_display): Remove MS-DOS specific conditions for
3622 calling tty-set-up-initial-frame-faces.
3623
b8ff72fa
SM
3624 * xmenu.c (Fx_popup_dialog, Fx_popup_menu, xmenu_show):
3625 Allow MSDOS frames along with X frames.
aac0c6e3
MR
3626
3627 * termhooks.h (TERMINAL_ACTIVE_P): Handle output_msdos_raw in
3628 addition to output_termcap.
3629
3630 * xdisp.c (redisplay_internal) [MSDOS]: Don't call set_tty_color_mode.
3631
3632 * termchar.h (FRAME_TTY): Support output_msdos_raw.
3633 (struct tty_display_info) [MSDOS]: Add fields related to mouse
3634 highlight.
3635
3636 * process.c [!subprocesses]: Define QCname.
3637 (syms_of_process): Intern and staticpro it.
3638
3639 * w16select.c (Fw16_set_clipboard_data, Fw16_get_clipboard_data):
b8ff72fa
SM
3640 Adjust for changes in encoding/decoding routines.
3641 Use encode_coding_object and decode_coding_object instead of
aac0c6e3
MR
3642 encode_coding and decode_coding.
3643
b8ff72fa 3644 * sysdep.c (init_sys_modes): Call dos_ttraw with tty_out as argument.
aac0c6e3
MR
3645
3646 * dosfns.c: Include frame.h before termhooks.h.
3647 (dos_cleanup): Use CURTTY ()->termscript instead of a global
3648 variable termscript.
3649
3650 * s/msdos.h (USER_FULL_NAME): Define.
3651 (SYSTEM_PURESIZE_EXTRA): Bump up to 100K.
3652
3653 * editfns.c (USER_FULL_NAME): Define to pw->pw_gecos if undefined.
3654 (Fuser_full_name): Use USER_FULL_NAME instead of a literal
3655 pw->pw_gecos.
3656
3657 * keyboard.c (handle_interrupt) [MSDOS]: Call cursor_to with
3658 SELECTED_FRAME as additional (1st) argument.
3659 (tty_read_avail_input): Handle output_msdos_raw in
3660 addition to output_termcap.
3661
3662 * msdos.c: Include frame.h before termhooks.h.
3663 (mouse_on, mouse_off, mouse_moveto, mouse_init)
3664 (msdos_set_cursor_shape, IT_set_face, IT_write_glyphs)
3665 (show_mouse_face, IT_clear_end_of_line, IT_clear_screen)
3666 (IT_clear_to_end, IT_cursor_to, IT_display_cursor, IT_cmgoto)
3667 (IT_set_terminal_modes, IT_reset_terminal_modes)
3668 (IT_set_frame_parameters): Use tty->termscript instead of a global
3669 variable termscript.
3670 (IT_write_glyphs): Use tty->terminal->terminal_coding instead of a
3671 global variable terminal_coding. Don't refer to
3672 Vnonascii_translation_table.
3673 (internal_terminal_init): Set Vwindow_system in current_kboard.
3674 Don't use TTY_CHAR_INS_DEL_OK. Set Vinitial_window_system.
3675 Announce date and time of session start, if termscript is open.
3676 Don't zero out the_only_display_info (it is done in
b8ff72fa
SM
3677 term.c:init_tty). Open termscript only of not already open.
3678 Log "SCREEN SAVED" here, instead of IT_set_terminal_modes. Init mouse
aac0c6e3
MR
3679 here instead of dos_ttraw. Don't initialize display if this is an
3680 initial tty. Don't set FRAME_FONT.
3681 (Vwindow_system_version): Bump to 23.
3682 (dos_ttraw): Accept a TTY argument; all callers fixed. If mouse
3683 is available, set up mouse_position_hook.
3684 (dos_ttraw, IT_set_terminal_modes): If called with initial
3685 terminal, do nothing.
3686 (IT_set_frame_parameters): Handle the Qtty_type frame
3687 parameter by calling internal_terminal_init.
3688 (dos_set_window_size, show_mouse_face)
3689 (clear_mouse_face, IT_note_mode_line_highlight)
3690 (IT_note_mouse_highlight, IT_update_begin, IT_frame_up_to_date)
3691 (dos_rawgetc): Use tty_display_info instead of x_display_info.
3692 (initialize_msdos_display): New function.
3693 (IT_cursor_to, IT_clear_to_end, IT_clear_screen)
3694 (IT_clear_end_of_line, IT_insert_glyphs, IT_write_glyphs)
3695 (IT_delete_glyphs, IT_ring_bell, IT_reset_terminal_modes)
3696 (IT_set_terminal_modes, IT_set_terminal_window, IT_update_begin):
b8ff72fa 3697 Accept additional argument: a pointer to a frame. Update all callers.
aac0c6e3
MR
3698 (request_sigio, unrequest_sigio): Don't define, now defined on
3699 sysdep.c.
3700 (IT_write_glyphs): Rewrite to use encode_terminal_code.
3701
3702 * term.c [MSDOS]: Include msdos.h.
3703 (init_tty) [MSDOS]: Reuse most of WINDOWSNT branch. Change cpp
3704 conditional to DOS_NT. Allow only one call to this function in a
3705 session. Don't allocate a new struct tty_display_info; instead,
3706 reuse the_only_display_info. Call get_tty_size to get screen
3707 dimensions. Call init_baud_rate to set bad_rate.
3708 (dissociate_if_controlling_tty) [MSDOS]: Ifdef away function body.
3709 (Fsuspend_tty) [MSDOS]: Don't close input and output.
b8ff72fa 3710 (Fresume_tty) [MSDOS]: Don't reopen the TTY; instead, use stdin/stdout.
aac0c6e3
MR
3711 (get_tty_terminal, get_named_tty, Ftty_type)
3712 (Fcontrolling_tty_p): Handle output_msdos_raw in addition to
3713 output_termcap.
b8ff72fa
SM
3714 (Fresume_tty, Fsuspend_tty, init_tty, delete_tty):
3715 Call add_keyboard_wait_descriptor and delete_keyboard_wait_descriptor
2ae37cf0 3716 only when subprocesses are supported.
aac0c6e3
MR
3717
3718 * frame.c (make_terminal_frame) [MSDOS]: Adjust initialization of
3719 f->output_data.x.
3720 (Fmake_terminal_frame) [MSDOS]: Don't allow creation of new
3721 terminal devices.
3722
5582fbc7 3723 * msdos.h: Remove definition of struct x_display_info and struct
aac0c6e3
MR
3724 x_output.
3725 (FRAME_FONT): Use output_data.tty.
3726 (FRAME_FOREGROUND_PIXEL, FRAME_BACKGROUND_PIXEL): Don't define.
b8ff72fa
SM
3727 (struct x_display_info): Rename from display_info. Update all users in
3728 msdos.c.
aac0c6e3 3729 (struct x_output): Remove background_pixel and foreground_pixel.
b8ff72fa 3730 (the_only_display_info): Rename from the_only_x_display.
aac0c6e3
MR
3731 (dos_ttraw): Update prototype.
3732
3733 * Makefile.in (MSDOS_OBJ): Add xmenu.o.
3734 (SOME_MACHINE_LISP): Add ../lisp/term/pc-win.elc.
3735
37362008-08-23 Jason Rumney <jasonr@gnu.org>
3737
3738 * image.c (enum tiff_keyword_index, tiff_format): Add :index keyword.
3739 (fn_TIFFSetDirectory): New library function used.
3740 (init_tiff_functions) [HAVE_NTGUI]: Initialize it.
3741 (tiff_load): Use :index to select among multiple images. Set count
3742 property when multiple images exist.
3743 (gif_format): Use :index, not :image.
3744
37452008-08-23 Chong Yidong <cyd@stupidchicken.com>
3746
3747 * xdisp.c (try_scrolling): Check INT_MAX instead of
3748 MOST_POSITIVE_FIXNUM for maximum integer value. Include limits.h
3749 to obtain INT_MAX.
3750
37512008-08-21 İsmail Dönmez <ismail@namtrac.org> (tiny change)
3752
3753 * xterm.c (x_delete_display): Don't call XrmDestroyDatabase on GTK+.
3754
37552008-08-21 Christian Faulhammer <opfer@gentoo.org> (tiny change)
3756
3757 * Makefile.in (temacs${EXEEXT}): On GNUstep, link to appropriate
3758 GNUstep library location.
3759
37602008-08-21 Chong Yidong <cyd@stupidchicken.com>
3761
3762 * xfaces.c (x_update_menu_appearance): Check validity of menu font
3763 before using it.
3764
3765 * puresize.h (BASE_PURESIZE): Increase to 1250000.
3766
37672008-08-20 Adrian Robert <Adrian.B.Robert@gmail.com>
3768
3769 * nsfns.m (ns-read-file-name): Add casts to avoid warning.
3770 (ns-convert-utf8-nfd-to-nfc): Warn if cannot execute correctly.
3771 * nsfont.m (nsfont_draw): Compare indexed colors to 0, not nil.
3772 * nsterm.h (EmacsView-unlockFocusNeedsFlush:): Add declaration.
3773 (EmacsApp-cursor_blink_handler): Remove declaration.
3774 * nsterm.m (ns_draw_glyph_string): Update first conditional body to
3775 match 01 Feb 2008 changes in xterm.c.
3776 (ns_read_socket): Add cast to avoid warning.
3777 (EmacsApp-application:openFiles:): Don't call replyToOpenOrPrint: on
3778 GNUstep.
3779
37802008-08-20 Chong Yidong <cyd@stupidchicken.com>
3781
3782 * xselect.c (x_get_foreign_selection): Return nil if desired
3783 selection could not be obtained, instead of signalling an error.
3784
37852008-08-20 David Reitter <david.reitter@gmail.com>
3786
3787 * nsfns.m (ns_lisp_to_cursor_type): Replace with generic xfns.c.
3788 * nsterm.m: Remove ns-specific code for cursor blinking.
3789 (ns_draw_window_cursor): Clear cursor properly rather than
3790 redrawing the area. Respect width of bar cursors.
3791 These changes enable the use of generic blink-cursor-mode and
3792 generic cursor types in NS and support smooth cursor movements (do
3793 not blink off after command).
3794 * xdisp.c (get_phys_cursor_geometry): Redraw wider rectangle on
3795 Nextstep, too.
3796
37972008-08-19 Kenichi Handa <handa@m17n.org>
3798
3799 * font.c (Vfont_log_deferred): New variable.
3800 (font_add_log): Check Vfont_log_deferred.
3801 (font_deferred_log): New function.
3802
3803 * font.h (font_deferred_log): Extern it.
3804
3805 * fontset.c (reorder_font_vector): Use encoding charset of fonts
3806 for sorting.
3807 (face_for_char): Use deferred log.
3808
38092008-08-18 Kenichi Handa <handa@m17n.org>
3810
3811 * fontset.c (face_for_char): Add font log.
3812
3813 * font.c (font_add_log): Add the font properties :script, :lang,
3814 and :otf in the log.
3815
38162008-08-17 Chong Yidong <cyd@stupidchicken.com>
3817
3818 * xdisp.c: Remove dead code.
3819 (handle_invisible_prop, next_overlay_string): Defer call to
3820 setup_for_ellipsis.
3821 (handle_stop, set_iterator_to_next): Call setup_for_ellipsis.
3822
38232008-08-15 Chong Yidong <cyd@stupidchicken.com>
3824
3825 * xfaces.c (lookup_derived_face): Properly handle possible zero
3826 return value of get_lface_attributes.
3827 (merge_faces): Don't tell lookup_derived_face to signal an error
3828 if face is not found.
3829
3830 * dired.c (Fdirectory_files): Doc fix.
3831
3832 * process.c (make_process): Initialize kill_without_query struct
3833 member.
3834
38352008-08-15 Eli Zaretskii <eliz@gnu.org>
3836
3837 * w32.c (w32_system_process_attributes) [_MSC_VER < 1300]:
3838 Alternative calculation of totphys for Visual Studio 6.
3839
3840 * w32fns.c [_MSC_VER && _MSC_VER < 1300]: Declare HMONITOR.
3841
3842 * w32.c (_MEMORY_STATUS_EX, MEMORY_STATUS_EX, LPMEMORY_STATUS_EX):
3843 Rename from _MEMORYSTATUSEX, MEMORYSTATUSEX, LPMEMORYSTATUSEX.
3844 All users changed.
3845 (stat): Only root directory passed to GetDriveType. Allow RAM
3846 disk as well as local fixed disk when w32-get-true-file-attributes
3847 is set to `local'.
3848 (CopySid_Proc, EqualSid_Proc, GetLengthSid_Proc): New typedefs.
3849 (equal_sid, get_length_sid, copy_sid): New wrapper functions.
3850 (w32_cached_id, w32_add_to_cache): New functions.
3851 (get_name_and_id): Look account names in the cache before calling
3852 lookup_account_sid.
3853 (g_b_init_get_length_sid, g_b_init_equal_sid, g_b_init_copy_sid):
3854 New initialization flags.
3855 (globals_of_w32): Initialize them to zero.
3856 (w32_system_process_attributes): Use w32_cached_id and
3857 w32_add_to_cache.
3858
38592008-08-14 Lawrence Mitchell <wence@gmx.li>
3860
3861 * lread.c (Fread_char, Fread_char_exclusive): If no character
3862 event is read before timeout is reached, return nil, rather than
3863 converting to a number.
3864
38652008-08-14 Chong Yidong <cyd@stupidchicken.com>
3866
3867 * fns.c (use_dialog_box): Doc fix.
3868
3869 * s/darwin.h: Undefine HAVE_RES_INIT, which appears to be harmful
3870 on OS X.
3871
38722008-08-13 Chong Yidong <cyd@stupidchicken.com>
3873
3874 * frame.c (Qns_parse_geometry): New var.
3875 (Fx_parse_geometry): For HAVE_NS, call ns-parse-geometry.
3876
38772008-08-11 Chong Yidong <cyd@stupidchicken.com>
3878
3879 * xdisp.c (x_produce_glyphs): Handle the case when font has no
3880 space character in calculating tabs.
3881
38822008-08-11 Dan Nicolaescu <dann@ics.uci.edu>
3883
3884 * Makefile.in (bootstrap-emacs): Use ln -f in the CANNOT_DUMP case.
3885
38862008-08-10 Glenn Morris <rgm@gnu.org>
3887
3888 * process.c (procfs_system_process_attributes): Use EMACS_INTs to
3889 silence gcc "limited range of data type" warnings in some
3890 make_fixnum_or_float calls.
3891
38922008-08-09 Eli Zaretskii <eliz@gnu.org>
3893
3894 * w32.c (w32_system_process_attributes): If the process does not
3895 exist, return nil.
3896
3897 * w32.c: Include thelp32.h, psapi.h and coding.h.
3898 (_MEMORYSTATUSEX, _PROCESS_MEMORY_COUNTERS_EX): New struct
3899 declarations.
3900 (CreateToolhelp32Snapshot_Proc, Process32First_Proc)
3901 (Process32Next_Proc): New typedefs.
3902 (g_b_init_create_toolhelp32_snapshot, g_b_init_process32_first)
3903 (g_b_init_process32_next, g_b_init_open_thread_token)
3904 (g_b_init_impersonate_self, g_b_init_revert_to_self)
3905 (g_b_init_get_process_memory_info, g_b_init_global_memory_status)
3906 (g_b_init_get_process_working_set_size)
3907 (g_b_init_global_memory_status_ex): New static variables.
3908 (globals_of_w32): Initialize them.
3909 (create_toolhelp32_snapshot, process32_first, process32_next)
3910 (open_thread_token, impersonate_self, revert_to_self)
3911 (get_process_memory_info, get_process_working_set_size)
3912 (global_memory_status, global_memory_status_ex): New wrapper
3913 functions.
3914 (w32_list_system_processes, w32_system_process_attributes)
3915 (enable_privilege, restore_privilege, ltime, process_times):
3916 New functions.
3917 (convert_time_raw): New function.
3918 (convert_time): Remove conversion of FILETIME into time in 100
3919 nsec units, call convert_time_raw instead.
3920
3921 * process.h (w32_list_system_processes, w32_system_process_attributes):
3922 Add prototypes.
3923 (Qeuid, Qegid, Qcomm, Qstate, Qppid, Qpgrp, Qsess, Qttname)
3924 (Qminflt, Qmajflt, Qcminflt, Qcmajflt, Qutime, Qstime, Qcutime)
3925 (Qpri, Qnice, Qthcount, Qstart, Qvsize, Qrss, Qargs, Quser, Qgroup)
3926 (Qetime, Qpcpu, Qpmem, Qtpgid, Qcstime): Add extern declarations.
3927
3928 * process.c (Fsystem_process_attributes): Doc fix.
3929
39302008-08-08 Chong Yidong <cyd@stupidchicken.com>
3931
3932 * xdisp.c (move_it_to): When stopping at a charpos, check if that's
3933 a continued multi-char glyph; if so, advance to the actual glyph.
3934
39352008-08-07 Dan Nicolaescu <dann@ics.uci.edu>
3936
3937 * s/darwin.h (OTHER_FILES): Do not define here, defined in config.in.
3938
3939 * Makefile.in (ALL_OBJC_CFLAGS): New variable.
3940 (.m.o): Use it.
3941 * config.in: Regenerate.
3942
39432008-08-07 Chong Yidong <cyd@stupidchicken.com>
3944
3945 * xdisp.c (redisplay_window): Revert last change.
3946 (try_window): Check bottom scroll margin too.
3947
39482008-08-06 Adrian Robert <Adrian.B.Robert@gmail.com>
3949
3950 * config.in: Regenerate.
3951
3952 * Makefile.in (emacs): Remove ifndef NS conditional for 'emacs
3953 -list-load-path-shadows'.
3954 (nsgui.h): Reduce number of things depending on it.
3955
39562008-08-06 Chong Yidong <cyd@stupidchicken.com>
3957
3958 * xdisp.c (try_scrolling): Use iterator to find the scroll margin,
3959 instead of window-end which does the wrong thing at eob.
3960 (try_cursor_movement): Minor optimization.
3961 (redisplay_window): If scroll margin is defined, don't assume
3962 window doesn't need scrolling.
3963
39642008-08-06 Adrian Robert <Adrian.B.Robert@gmail.com>
3965
3966 * config.in: Regenerate.
3967
3968 * Makefile.in: Move nsXXX.m dependencies into big alphabetical list.
3969 (mostlyclean): Don't delete *.d under NS.
3970
3971 * nsterm.h (NS_HAVE_INTEGER): Change to NS_HAVE_NSINTEGER.
3972
39732008-08-06 Kenichi Handa <handa@m17n.org>
3974
3975 * xfont.c (xfont_list_family): Return a list of symbols, not strings.
3976
39772008-08-06 Andreas Schwab <schwab@suse.de>
3978
3979 * config.in: Regenerate.
3980
39812008-08-05 Chong Yidong <cyd@stupidchicken.com>
3982
3983 * xdisp.c (redisplay_window): Don't enforce scroll-margin when
3984 forcing a window start.
3985
3986 * fileio.c (Vauto_save_list_file_name): Move here from file.el.
3987 (auto_save_1): Update modtime when auto-save-list-file-name is on.
3988
39892008-08-04 Adrian Robert <Adrian.B.Robert@gmail.com>
3990
3991 * emacs.c (main): Under NS, set working dir to HOME when get a "psn"
3992 argument.
3993
39942008-08-05 Juanma Barranquero <lekktu@gmail.com>
3995
3996 * buffer.c (syms_of_buffer) <scroll-up-aggressively>:
3997 <scroll-down-aggressively, before-change-functions>:
3998 <after-change-functions>: Reflow docstrings.
3999
40002008-08-04 Adrian Robert <Adrian.B.Robert@gmail.com>
4001 Ken Raeburn <raeburn@gnu.org>
4002
4003 Dock menu customization, based on a patch by Ken Raeburn, plus some
4004 other fixes.
4005 * nsmenu.m (dockMenu): New variable.
4006 (EmacsDialog -clicked:): Fix mistake in change of 2008-07-17.
4007
4008 * nsterm.h (dockMenu): Declare.
4009
4010 * nsterm.m (KEY_NS_NEW_FRAME): New definition.
4011 (ns_term_init): Initialize dockMenu.
4012 (EmacsApp -newFrame:, -applicationDockMenu:): New methods.
4013 (EmacsView -windowShouldClose:): Don't behave specially if <= 1 frame
4014 left.
4015
4016 * lisp.h (LSB_TAG): Use on DARWIN_OS, not NS_IMPL_COCOA.
4017
40182008-08-04 Chong Yidong <cyd@stupidchicken.com>
4019
4020 * nsterm.h: Test directly for NS_HAVE_INTEGER before defining it.
4021
4022 * config.in: Regenerate.
4023
40242008-08-04 Seiji Zenitani <zenitani@mac.com>
4025
4026 * nsfns.m (x-create-frame): Set the frame parameter alpha to nil.
4027
40282008-08-04 Chong Yidong <cyd@stupidchicken.com>
4029
4030 * nsterm.h (find_and_call_menu_selection): Fix prototype.
4031
40322008-08-04 Adrian Robert <Adrian.B.Robert@gmail.com>
4033
4034 * emacs.c (main: unexec_init_emacs_zone): Call if on DARWIN_OS.
4035
4036 * keyboard.h: Comment an #endif.
4037
4038 * lisp.h (have_menus_p): Adjust comment.
4039
4040 * menu.c (find_and_return_menu_selection): Fix comparison with
4041 client_data.
4042
4043 * nsmenu.m (popup_activated_flag): New variable.
4044 (popup_activated): New function.
4045 (menu-or-popup-active-p): New exported lisp definition.
4046 (ns_popup_menu): Set popup_activated_flag. Call discard_menu_items()
4047 when popup done.
4048 (ns_popup_dialog): Set popup_activated_flag.
4049
4050 * nsterm.m (EmacsView -conversationIdentifier): Use NSInteger
4051 version for GNUstep (handled by conditional typedef in nsterm.m).
4052 (ns_get_color): Remove special-casing for "darkblue", "dark blue" (now
4053 in rgb.txt).
4054
4055 * process.c (init_process): Use DARWIN_OS, not DARWIN.
4056
4057 * sysselect.h: Conditionalize init_process undef on DARWIN_OS.
4058
4059 * syssignal.h (FORWARD_SIGNAL_TO_MAIN_THREAD): Do it also under NS.
4060
4061 * xdisp.c (redisplay_internal, note_mouse_highlight): Under NS,
4062 shortcircuit if popup_activated like GTK and X toolkit.
4063
4064 * m/inter386.h: Change DARWIN to DARWIN_OS.
4065
4066 * s/darwin.h: Add #define DARWIN_OS. Get rid of C_SWITCH_SYSTEM def.
4067 Change LIBS_MACGUI to LIBS_NSGUI. Move temacs-conditionalized defs
4068 closer to C_SWITCH_SYSTEM_TEMACS so usage is understood. Expand
4069 comment on NO_SOCK_SIGIO.
4070
40712008-08-03 Chong Yidong <cyd@stupidchicken.com>
4072
4073 * nsterm.m (windowDidResize): Remove stopModal call.
4074
40752008-08-03 Andreas Schwab <schwab@suse.de>
4076
4077 * vm-limit.c (get_lim_data) [HAVE_GETRLIMIT && RLIMIT_AS]: Define.
4078 (check_memory_limits): Don't handle HAVE_GETRLIMIT here.
4079
40802008-08-02 Chong Yidong <cyd@stupidchicken.com>
4081
4082 * vm-limit.c (check_memory_limits): Don't use getrlimit on cygwin.
4083 Don't use uninitialized pointer variable when using getrlimit.
4084
40852008-08-02 Jason Rumney <jasonr@gnu.org>
4086
4087 * w32font.c (compute_metrics): Don't mess with glyph_idx setting here.
4088
40892008-08-02 Eli Zaretskii <eliz@gnu.org>
4090
4091 * alloc.c (NSTATICS): Bump to 0x640.
4092
4093 * s/gnu-linux.h (HAVE_PROCFS, LISTPROC, PROCATTR): New defines.
4094
4095 * lisp.h: Add prototype for directory_files_internal.
4096
4097 * process.c (Fsystem_processes_list, Fsystem_process_attributes):
4098 New functions.
4099 (syms_of_process): Defsubr them. Add initializations for various
4100 Q* symbols used in procfs_system_process_attributes.
4101 (procfs_list_system_processes, procfs_system_process_attributes)
4102 [HAVE_PROCFS]: New functions.
4103 (time_from_jiffies, ltime_from_jiffies, get_up_time, procfs_ttyname)
4104 (procfs_get_total_memory): New functions.
4105
41062008-08-01 Juanma Barranquero <lekktu@gmail.com>
4107
4108 * xfaces.c (Fx_load_color_file): Fix previous change;
4109 it is #ifdef WINDOWSNT, not WINDOWS_NT.
4110
41112008-08-01 Michael Albinus <michael.albinus@gmx.de>
4112
4113 * dbusbind.c (xd_read_message): Handle D-Bus error messages.
4114
41152008-08-01 Adrian Robert <Adrian.B.Robert@gmail.com>
4116
4117 * nsterm.h (NSInteger, NSUInteger): Add defines for non-Leopard.
4118
41192008-08-01 Chong Yidong <cyd@stupidchicken.com>
4120
4121 * nsfns.m (ns_frame_parm_handlers): Add empty entry for x_set_alpha.
4122
4123 * nsterm.m (EmacsApp -application:openFiles:): GNUstep does not
4124 define NSApplicationDelegateReplySuccess.
4125 (EmacsView -converstationIdentifier): Use long instead of
4126 NSInteger for GNUstep, since it doesn't have NSInteger.
4127
4128 * xmenu.c: Revert last change.
4129
4130 * keyboard.h: Fix last change.
4131
41322008-08-01 Juanma Barranquero <lekktu@gmail.com>
4133
4134 * xfaces.c (x-load-color-file): Use RGB() instead of manually shifting
4135 on Windows.
4136
41372008-08-01 Adrian Robert <Adrian.B.Robert@gmail.com>
4138
4139 Warning clearing and clean-up in NS port.
4140 * keyboard.h (xmalloc_widget_value, digest_single_submenu):
4141 Add prototypes.
4142 * nsgui.h (FACE_DEFAULT): Remove, unused.
4143 (XGCValues): Change colors to unsigned long.
4144 * nsterm.h (EmacsApp): Add declaration of all methods implemented in
4145 nsterm.m.
4146 (EmacsMenu -addItemWithWidgetValue:): Change to use NSMenuItem class.
4147 (ns_list_fonts): Remove, unused.
4148 (ns_font_to_xlfd, ns_fontname_to_xlfd): Drop prototypes.
4149 * nsfns.m (interpret_services_menu): Use NSMenuItem class.
4150 * nsfont.m (nsfont_open): Fix cast error in glyphs,metrics alloc.
4151 (nsfont_draw): Compare face colors to 0, not nil.
4152 * nsmenu.m (struct widget_value): Drop unneeded declaration.
4153 (EmacsMenu -addItemWithWidgetValue:, -fillWithWidgetValue:)
4154 (-addSubmenuWithTitle:): Use NSMenuItem class.
4155 (ns_popup_menu): Use NO, not NULL, for enabled setting.
4156 * nsterm.m (ns_draw_glyph_string): Don't compare font to ~0.
4157 (ns_clip_to_row): Make gc arg a BOOL.
4158 (ns_draw_fringe_bitmap, ns_draw_window_cursor): Use YES, NO in
4159 ns_clip_to_row() call.
4160 (ns_draw_glyph_string): Drop face comparison to ~0 (no longer
4161 used). Cast FRAME_FONT assignments.
4162 (ns_read_socket): Cast call to EmacsApp-fulfillService:withArg:.
4163 (ns_string_to_lispmod): Change arg to const char.
4164 (ns_term_init): Use NSMenuItem class.
4165 (EmacsApp -openFile:): Move to different section of file.
4166 (EmacsApp -application:openFiles:): Don't return a value, call
4167 -replyToOpenOrPrint:.
4168 (EmacsView -keyDown:): Fix up cast.
4169 (EmacsView -converstationIdentifier): Use NSInteger instead of long.
4170 (EmacsView -menuDown:): Cast tag in call to
4171 find_and_call_menu_selection().
4172 (ns_list_fonts): Remove, unused.
4173 (ns_font_to_xlfd): Make static. Cast result of UTF8String.
4174 (ns_fontname_to_xlfd): Make static.
4175 * w32menu.c (xmalloc_widget_value, digest_single_submenu):
4176 Remove prototypes (now in keyboard.h).
4177 (next_menubar_widget_id): Remove, unused.
4178 * xmenu.c (xmalloc_widget_value, digest_single_submenu):
4179 Remove prototypes (now in keyboard.h).
4180 * xfaces.c (ns_list_fonts, w32_list_fonts): Remove, unused.
4181
41822008-08-01 Dan Nicolaescu <dann@ics.uci.edu>
4183
4184 * Makefile.in (dispnew.o, gtkutil.o, sound.o, atimer.o)
4185 (floatfns.o): Depend on syssignal.h.
4186 (term.o): Depend on syssignal.h, systty.h, and $(INTERVAL_SRC).
4187
4188 * systty.h: Fix previous change that removed BSD_TERMIOS.
4189 Add comments to #ifdefs.
4190
41912008-08-01 Adrian Robert <Adrian.B.Robert@gmail.com>
4192
4193 * w32fns.c (w32-load-color-file): Remove.
4194 (x-open-connection): Use renamed Fx_load_color_file.
4195 * xfaces.c (x-load-color-file): Add.
4196 * nsterm.m (ns_initialize): Load colors from etc/rgb.txt instead of
4197 Emacs.clr.
4198 (hide_hourglass): BLOCK_INPUT before UNBLOCK.
4199
42002008-07-31 Michael Albinus <michael.albinus@gmx.de>
4201
4202 * dbusbind.c (Fdbus_call_method_asynchronously)
4203 (Fdbus_method_error_internal): New defuns.
4204 (xd_read_message): Handle also reply messages.
4205 (Vdbus_registered_functions_table): Extend docstring.
4206
42072008-07-31 Juanma Barranquero <lekktu@gmail.com>
4208
4209 * keyboard.c (gobble_input): Fix previous change.
4210
42112008-07-31 Dan Nicolaescu <dann@ics.uci.edu>
4212
4213 * bitmaps/README:
4214 * xfns.c:
4215 * termcap.c:
4216 * term.c:
4217 * syswait.h:
4218 * systty.h:
4219 * systime.h:
4220 * syssignal.h:
4221 * sysdep.c:
4222 * process.h:
4223 * process.c:
4224 * print.c:
4225 * ndir.h:
4226 * lread.c:
4227 * keyboard.c:
4228 * getpagesize.h:
4229 * floatfns.c:
4230 * fileio.c:
4231 * emacs.c:
4232 * doc.c:
4233 * dispnew.c:
4234 * dired.c:
4235 * data.c:
4236 * callproc.c:
4237 * buffer.c:
4238 * README:
4239 * Makefile.in:
4240 * s/template.h:
4241 * s/msdos.h:
4242 * m/vax.h: Remove VMS support.
4243 * s/vms.h:
4244 * vlimit.h:
4245 * uaf.h:
4246 * temacs.opt:
4247 * param.h:
4248 * ioctl.h: Remove file.
4249
42502008-07-31 Dan Nicolaescu <dann@ics.uci.edu>
4251
4252 * s/ms-w32.h (MULTI_KBOARD): Remove.
4253 * xterm.c:
4254 * xselect.c:
4255 * xfns.c:
4256 * window.c:
4257 * w32term.c:
4258 * w32fns.c:
4259 * terminal.c:
4260 * termhooks.h:
4261 * term.c:
4262 * sysdep.c:
4263 * keyboard.h:
4264 * keyboard.c:
4265 * frame.h:
4266 * frame.c:
4267 * frame.c: Remove references to MULTI_KBOARD, it is now the default.
4268 * config.in: Regenerate.
4269
42702008-07-30 Jason Rumney <jasonr@gnu.org>
4271
4272 * w32font.h (struct w32font_info): Use unicode version of textmetrics.
4273
4274 * w32font.c (w32font_encode_char): Leave as unicode if in range.
4275 (w32font_open_internal): Get unicode version of textmetrics.
4276 Don't enable or disable glyph indices here.
4277 (w32font_open): Disable use of glyph indices.
4278
4279 * w32uniscribe.c (uniscribe_open): Enable use of glyph indices.
4280
42812008-07-30 Chong Yidong <cyd@stupidchicken.com>
4282
4283 * minibuf.c (Vread_buffer_function): Doc fix.
4284
42852008-07-30 John Paul Wallington <jpw@pobox.com>
4286
4287 * minibuf.c (read_buffer_completion_ignore_case): New var.
4288 (Fread_buffer): Use it.
4289
42902008-07-30 Dan Nicolaescu <dann@ics.uci.edu>
4291
4292 * systty.h (sensemode): Remove empty #if. Remove reference to
4293 BSD_TERMIOS, unused.
4294
4295 * sysdep.c: Remove reference to DGUX.
4296 (closedir): Remove reference to BROKEN_CLOSEDIR, unused.
4297
4298 * config.in: Regenerate.
4299
43002008-07-30 Jason Rumney <jasonr@gnu.org>
4301
4302 * w32uniscribe.c (uniscribe_encode_char): Fix glyph buffer size.
4303
43042008-07-29 Jason Rumney <jasonr@gnu.org>
4305
4306 * w32uniscribe.c (uniscribe_shape): Avoid using context if cache
4307 is populated.
4308 (uniscribe_encode_char): Always use uniscribe.
4309 Avoid using context if cache is populated.
4310
43112008-07-29 Jan Djärv <jan.h.d@swipnet.se>
4312
4313 * xmenu.c (Fx_menu_bar_open_internal): Use activate_item signal to
4314 open menu.
4315
4316 * gtkutil.c (menu_nav_ended): Remove.
4317 (create_menus): Remove signal connect for menu_nav_ended.
4318
43192008-07-28 Chong Yidong <cyd@stupidchicken.com>
4320
4321 * xdisp.c (redisplay_window): Check return value of
4322 compute_window_start_on_continuation_line before forcing a window
4323 start.
4324
43252008-07-28 Jason Rumney <jasonr@gnu.org>
4326
4327 * w32font.c (w32font_text_extents): Use w32_metric_cache consistently.
4328
4329 * w32term.c (w32_enable_unicode_output, cleartype_active):
4330 Remove obsolete display options.
4331 (x_draw_glyph_string_background): Don't use old cleartype_active
4332 workaround.
4333 (w32_initialize): Remove cleartype_active initialization.
4334 (syms_of_w32term): Remove w32_enable_unicode_output initialization.
4335
43362008-07-28 Andreas Schwab <schwab@suse.de>
4337
4338 * lisp.h (init_weak_hash_tables, syms_of_font)
4339 (xd_read_queued_messages, syms_of_dbusbind): Declare.
4340 (remove_hash_entry): Don't declare.
4341 * eval.c (maybe_call_debugger): Make static and move before use.
4342 * gtkutil.c: Include <X11/Xft/Xft.h> if HAVE_XFT.
4343 * xdisp.c: Include "gtkutil.h" if USE_GTK.
4344 * xterm.h (x_set_frame_alpha): Declare.
4345
43462008-07-28 Jan Djärv <jan.h.d@swipnet.se>
4347
4348 * gtkutil.c (menu_nav_ended): Revert change from 2008-07-24.
4349 (create_menus): Connect selection-done to menu_nav_ended.
4350
43512008-07-27 Adrian Robert <Adrian.B.Robert@gmail.com>
4352
4353 * nsfns.m (x-create-frame): Add copy of parms argument to beginning.
4354 Set Vx_resource_name to a fallback. Replace read of 'buffered'
4355 parameter with read of 'alpha' one.
4356 (Qns_frame_parameter): Remove.
5582fbc7 4357 * nsselect.m (selection-coding-system)
aac0c6e3
MR
4358 (next-selection-coding-system, Vselection_coding_system)
4359 (Vnext_selection_coding_system): Drop.
4360
43612008-07-27 Adrian Robert <Adrian.B.Robert@gmail.com>
4362
4363 * nsfns.m (do-applescript, do_applescript): Rename to
4364 ns-do-applescript, ns_do_applescript, and move within file.
4365
43662008-07-27 Dan Nicolaescu <dann@ics.uci.edu>
4367
4368 Remove support for Mac Carbon.
4369 * mactoolbox.c:
4370 * macterm.h:
4371 * macterm.c:
4372 * macselect.c:
4373 * macmenu.c:
4374 * macgui.h:
4375 * macfns.c:
4376 * mac.c: Remove file.
4377 * s/darwin.h:
4378 * m/intel386.h:
4379 * xfaces.c:
4380 * xdisp.c:
4381 * window.c:
4382 * tparam.c:
4383 * termhooks.h:
4384 * termcap.c:
4385 * term.c:
4386 * syssignal.h:
4387 * sysselect.h:
4388 * sysdep.c:
4389 * process.c:
4390 * lread.c:
4391 * lisp.h:
4392 * keyboard.c:
4393 * image.c:
4394 * fringe.c:
4395 * frame.h:
4396 * frame.c:
4397 * fontset.c:
4398 * font.h:
4399 * font.c:
4400 * fns.c:
4401 * fileio.c:
4402 * emacs.c:
4403 * dispnew.c:
4404 * dispextern.h:
4405 * config.in:
4406 * atimer.c:
2ae37cf0 4407 * Makefile.in: Remove code for Carbon.
aac0c6e3 4408
f0131492 44092008-07-26 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
aac0c6e3
MR
4410
4411 * macterm.c (XDrawLine) [USE_MAC_IMAGE_IO]: Remove spurious return.
4412
44132008-07-26 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
4414
4415 * macterm.h (kCGBitmapByteOrder32Host): New define for
4416 non-universal SDKs.
4417
4418 * image.c (mac_create_cg_image_from_image, image_load_image_io)
4419 [USE_MAC_IMAGE_IO]: Remove conditionals for kCGBitmapByteOrder32Host.
4420
4421 * macterm.c (XDrawLine, XCreatePixmapFromBitmapData)
4422 [USE_MAC_IMAGE_IO]: Remove conditionals for kCGBitmapByteOrder32Host.
4423
44242008-07-26 David Robinow <drobinow@gmail.com> (tiny change)
4425
4426 * w32inevt.c: Include dispextern.h.
4427
44282008-07-26 Andreas Schwab <schwab@suse.de>
4429
4430 * print.c (print_object): Fix off-by-one in last change.
4431
44322008-07-25 Juanma Barranquero <lekktu@gmail.com>
4433
4434 * term.c (syms_of_term): Don't initialize default_orig_pair,
4435 default_set_foreground and default_set_background on Windows.
4436
44372008-07-25 Jason Rumney <jasonr@gnu.org>
4438
4439 * w32uniscribe.c (uniscribe_shape): Pass NULL for control arg to
4440 ScriptItemize. Clean up return value checking. Remove unused
4441 variables.
4442 (uniscribe_encode_char): Encode non-BMP characters with uniscribe
4443 shaping engine.
4444
4445 * w32font.c (w32font_has_char): Handle the case where we can't
4446 determine the script for a character.
4447
44482008-07-25 Chong Yidong <cyd@stupidchicken.com>
4449
4450 * term.c (syms_of_term): Initialize default_orig_pair,
4451 default_set_foreground, and default_set_background.
4452
4453 * getloadavg.c (nl): Rename to name_list to avoid ncurses.h
4454 clash (bug#86).
4455 (getloadavg): Callers changed.
4456
4457 * image.c (svg_load_image): Fix last change.
4458 (svg_load_image): Use rsvg_handle_get_dimensions to check that
4459 image size is valid. Use g_object_unref instead of deprecated
4460 rsvg_handle_free to free rsvg handle.
4461 (x_from_xcolors): Don't initialize pixmap (silence compiler).
4462
44632008-07-25 Jason Rumney <jasonr@gnu.org>
4464
4465 * w32font.c (w32font_encode_char): Encode characters outside BMP as
4466 surrogates before looking up glyph index.
4467 (w32font_text_extents): Encode as surrogates if falling back to
4468 functions that need UTF-16 wide chars.
4469
4470 * w32uniscribe.c (uniscribe_encode_char): Encode characters outside
4471 BMP as surrogates before looking up glyph index.
4472
44732008-07-25 Chong Yidong <cyd@stupidchicken.com>
4474
4475 * image.c (svg_load_image): Check for failure in return value of
4476 rsvg_handle_get_pixbuf. Free rsvg handle when done.
4477
44782008-07-25 Jason Rumney <jasonr@gnu.org>
4479
4480 * w32font.c (Fx_select_font): Reverse sense of second arg.
4481
44822008-07-24 Stefan Monnier <monnier@iro.umontreal.ca>
4483
4484 * syntax.c (struct lisp_parse_state, char_quoted, inc_bytepos)
4485 (dec_bytepos, find_defun_start): Use EMACS_INT for buffer positions.
4486
4487 * puresize.h (PURESIZE_CHECKING_RATIO): New macro.
4488 (PURESIZE): Use it.
4489
44902008-07-24 Dan Nicolaescu <dann@ics.uci.edu>
4491
4492 * m/amdx86-64.h (HAVE_LIB64_DIR): Consolidate ifdefs.
4493 * m/alpha.h (TEXT_END):
4494 * m/ibmrs6000.h (TEXT_END):
4495 * m/macppc.h (TEXT_END):
4496 * s/darwin.h (TEXT_END):
4497 * s/msdos.h (TEXT_END): Remove, unused.
4498 * s/gnu-linux.h (BSD_PGRPS): Add a comment.
4499 * s/cygwin.h: Remove comment.
4500
4501 * ecrt0.c (NODOT_GLOBAL_START): Remove code, unused.
4502 (DOT_GLOBAL_START): Remove conditional, redundant for CRT0_DUMMIES.
4503 * m/intel386.h (DOT_GLOBAL_START):
4504 * m/vax.h (DOT_GLOBAL_START): Remove, redundant with CRT0_DUMMIES.
4505 (USG): Remove, file not used on USG platforms.
4506
4507 * Makefile.in (HAVE_X11): Remove empty #else.
4508
45092008-07-24 Andreas Schwab <schwab@suse.de>
4510
4511 * fileio.c (Finsert_file_contents): Properly adjust undo list
4512 after format conversion.
4513
45142008-07-24 Jan Djärv <jan.h.d@swipnet.se>
4515
4516 * gtkutil.c (xg_get_font_name): Cast w to GTK_FONT_SELECTION_DIALOG.
4517 (menu_nav_ended): Remove.
4518 (create_menus): Remove signal connect for menu_nav_ended.
4519 (xg_update_menubar): Also take deactivate_cb as parameter, pass it to
4520 create_menus.
4521 (xg_modify_menubar_widgets): Pass deactivate_cb to xg_update_menubar.
4522
45232008-07-23 Jason Rumney <jasonr@gnu.org>
4524
4525 * w32font.c (w32_enumfont_pattern_entity): Return height consistent
4526 with opened font.
4527 (w32font_open): Set font type to gdi.
4528
4529 * w32uniscribe.c (uniscribe_open): Set font type to uniscribe.
4530
45312008-07-23 Dan Nicolaescu <dann@ics.uci.edu>
4532
4533 * s/usg5-4.h (ADDR_CORRECT): Remove, unused.
4534 * unexaix.c (ADDR_CORRECT): Remove conditional, the only user
4535 defines it.
4536 * unexec.c (ADDR_CORRECT): Define unconditionally.
4537
4538 * m/ibmrs6000.h (C_SWITCH_MACHINE): Remove.
4539
4540 * unexec.c: Remove code depending on !COFF and USG, the file is
4541 not used for such systems.
4542
4543 * s/netbsd.h (A_TEXT_OFFSET, A_TEXT_SEEK):
4544 * s/freebsd.h (A_TEXT_OFFSET, A_TEXT_SEEK): Remove, unused.
4545 (LD_SWITCH_SYSTEM_1): Remove, update users.
4546
4547 * s/darwin.h (DATA_END):
4548 * m/intel386.h (DATA_END):
4549 * m/ibmrs6000.h (DATA_END):
4550 * m/alpha.h (DATA_END): Remove, unused.
4551
4552 * config.in: Regenerate.
4553 * s/ms-w32.h (subprocesses): Define unconditionally.
4554 * s/template.h (subprocesses): Update comment.
4555 * s/vms.h (subprocesses):
4556 * s/usg5-4.h (subprocesses):
4557 * s/hpux10-20.h (subprocesses):
4558 * s/gnu-linux.h (subprocesses):
4559 * s/cygwin.h (subprocesses):
4560 * s/bsd-common.h (subprocesses):
4561 * s/aix4-2.h (subprocesses):
4562 * s/darwin.h (subprocesses): Do not define, defined by default now.
4563
4564 * Makefile.in (C_SWITCH_SITE, LD_SWITCH_SITE): Remove, unused.
4565 Remove all references.
4566 (temacs): Add GNUstep specific ld flags.
4567
4568 * nsterm.m (syms_of_nsterm): Provide ns, not ns-windowing,
4569 similarly to what X does.
4570
45712008-07-22 Adrian Robert <Adrian.B.Robert@gmail.com>
4572
4573 * nsfns.m (x-list-fonts): Remove.
4574 (syms_of_nsfns): Drop the x-list-fonts declaration.
4575 * nsterm.m: Get rid of remaining "//" comments.
4576
45772008-07-22 Chong Yidong <cyd@stupidchicken.com>
4578
4579 * xselect.c (Fx_rotate_cut_buffers_internal): Doc fix.
4580
4581 * nsselect.m (Fns_selection_exists_p, Fns_selection_owner_p)
4582 (Fx_get_selection_internal, Fns_rotate_cut_buffers_internal)
4583 (Fns_own_selection_internal, Fx_disown_selection_internal)
4584 (Fns_get_cut_buffer_internal, Fns_store_cut_buffer_internal):
4585
4586 * nsmenu.m (Fns_reset_menu, Fx_popup_menu): Change to use 'doc: /*
4587 ... */' style of docstrings. Doc fixes.
4588
45892008-07-22 Dan Nicolaescu <dann@ics.uci.edu>
4590
4591 * terminfo.c (UP, BC, PC): Undo previous change.
4592
4593 * nsfns.m: Rename ns prefixed functions/variables to the
4594 corresponding x versions. Update references.
4595
45962008-07-22 Stefan Monnier <monnier@iro.umontreal.ca>
4597
4598 * syntax.c (char_quoted): Check "charpos > beg" before decrementing.
4599
46002008-07-22 Dan Nicolaescu <dann@ics.uci.edu>
4601
4602 * nsfns.m (x_set_menu_bar_lines, x_set_tool_bar_lines):
4603 Remove forwarding functions.
4604 (ns_set_menu_bar_lines): Rename to x_set_menu_bar_lines, make
4605 non-static.
4606 (ns_set_tool_bar_lines): Rename to x_set_tool_bar_lines, make
4607 non-static.
4608 (ns_frame_parm_handlers): Use the new names.
4609 (syms_of_nsfns): Move to the end of file.
4610
4611 * nsterm.m (syms_of_nsterm): Move to the end of file.
4612
4613 * dispnew.c (init_display): Remove code for X10.
4614
46152008-07-22 Jason Rumney <jasonr@gnu.org>
4616
4617 * w32proc.c (Fw32_long_file_name): Don't append dir separator to
4618 bare drive.
4619
46202008-07-22 Adrian Robert <Adrian.B.Robert@gmail.com>
4621
4622 * nsterm.m (syms_of_nsterm): Remove debugging println.
4623
46242008-07-22 David Reitter <david.reitter@gmail.com>
4625
4626 * nsfns.m (do_applescript, F_do_applescript): NS version of the
4627 Carbon implementation of the same functionality: execute arbitrary
4628 AppleScript code.
4629
46302008-07-21 Adrian Robert <Adrian.B.Robert@gmail.com>
4631
4632 * nsfns.m (Fx_create_frame, Fx_read_file_name, Fx_get_resource)
4633 (Fx_set_resource, Fx_set_alpha, Fx_server_max_request_size)
4634 (Fx_server_vendor, Fx_server_version, Fx_display_screens)
4635 (Fx_display_mm_height, Fx_display_mm_width)
4636 (Fx_display_backing_store, Fx_display_visual_class)
4637 (Fx_display_save_under, Fx_open_connection)
4638 (Fx_close_connection, Fx_hide_emacs, Fx_font_name)
4639 (Fx_list_colors, Fx_perform_service, Fx_color_defined_p)
4640 (Fx_color_values, Fxw_display_color_p, Fx_display_grayscale_p)
4641 (Fx_display_pixel_width, Fx_display_pixel_height)
4642 (Fx_display_usable_bounds, Fx_display_planes)
4643 (Fx_display_color_cells, Vns_icon_type_alist): Change to use 'doc: /*
4644 ... */' style of docstrings.
4645
46462008-07-21 Dan Nicolaescu <dann@ics.uci.edu>
4647
4648 * m/mips.h (LOAD_AVE_TYPE, LOAD_AVE_CVT): Do not define, not used
4649 on this platform.
4650 (mips):
4651 * m/iris4d.h (mips): Do not define.
4652 * sysdep.c (init_sys_modes): Use __mips__ instead of mips.
4653
4654 * m/ibmrs6000.h (LD_SWITCH_SITE): Remove.
4655
4656 * image.c:
4657 * nsfns.m:
4658 * nsselect.m:
4659 * nsterm.h:
4660 * nsterm.m: Rename ns prefixed functions/variables to the
4661 corresponding x versions. Update references.
4662
4663 * m/ibms390x.h (NO_REMAP): Do not undefine.
4664
4665 * m/amdx86-64.h: Use SOLARIS2 instead of sun.
4666
46672008-07-21 Chong Yidong <cyd@stupidchicken.com>
4668
4669 * nsfns.m: Change NS to Nextstep in docstrings and error messages.
4670 (Fns_create_frame, Fns_read_file_name, Fns_get_resource)
4671 (Fns_set_resource, Fns_set_alpha, Fns_server_max_request_size)
4672 (Fns_server_vendor, Fns_server_version, Fns_display_screens)
4673 (Fns_display_mm_height, Fns_display_mm_width)
4674 (Fns_display_backing_store, Fns_display_visual_class)
4675 (Fns_display_save_under, Fns_open_connection)
4676 (Fns_close_connection, Fns_hide_emacs, Fns_font_name)
4677 (Fns_list_colors, Fns_perform_service, Fns_color_defined_p)
4678 (Fns_color_values, Fxw_display_color_p, Fx_display_grayscale_p)
4679 (Fns_display_pixel_width, Fns_display_pixel_height)
4680 (Fns_display_usable_bounds, Fx_display_planes)
4681 (Fns_display_color_cells, Vns_icon_type_alist): Doc fixes.
4682
46832008-07-21 Ami Fischman <ami@fischman.org> (tiny change)
4684
4685 * print.c (print_object): Check print_depth before searching for
4686 circularities.
4687
46882008-07-21 Michael Albinus <michael.albinus@gmx.de>
4689
4690 * dbusbind.c (Fdbus_register_signal): Use sprintf + strcat instead
4691 only sprintf.
4692
46932008-07-21 Kenichi Handa <handa@m17n.org>
4694
4695 * ftfont.c (adjust_anchor): Check if DeltaValue is not NULL.
4696
46972008-07-20 Andreas Schwab <schwab@suse.de>
4698
4699 * syntax.c (find_start_pos, find_start_value)
4700 (find_start_value_byte, find_start_begv, find_defun_start)
4701 (back_comment, scan_sexps_forward): Use EMACS_INT for buffer positions.
4702
47032008-07-20 Dan Nicolaescu <dann@ics.uci.edu>
4704
4705 * s/sol2-3.h: Insert contents of s/sol2.h.
4706 (LD_SWITCH_SYSTEM): Remove redundant definition.
4707 * s/sol2.h: Remove, unused.
4708
47092008-07-20 Adrian Robert <Adrian.B.Robert@gmail.com>
4710
4711 * nsterm.m (ns_get_color): Recognize HSB,AHSB be synonyms for HSV,AHSV.
4712
47132008-07-20 Adrian Robert <Adrian.B.Robert@gmail.com>
4714
4715 * Makefile.in (ns_appdir): Fix typo in find command.
4716
47172008-07-20 Dan Nicolaescu <dann@ics.uci.edu>
4718
4719 * m/intel386.h (NO_REMAP): Do no define for USG, not used.
4720
4721 * s/usg5-4.h (LIBS_SYSTEM): Remove, system for which this was
4722 added not supported anymore.
4723
4724 * s/usg5-4-2.h (LIBS_SYSTEM):
4725 * s/sol2.h (LIBS_SYSTEM): Do not undefine.
4726
4727 * s/netbsd.h (GETPGRP_NO_ARG, N_TRELOFF):
4728 * s/lynxos.h (GETPGRP_NO_ARG):
4729 * s/hpux10-20.h (NO_SIOCTL_H):
4730 * s/gnu.h (GETPGRP_NO_ARG):
4731 * s/gnu-linux.h (NO_SIOCTL_H):
4732 * s/freebsd.h (GETPGRP_NO_ARG, N_TRELOFF):
4733 * s/cygwin.h (GETPGRP_NO_ARG):
4734 * s/irix6-5.h (LIBS_SYSTEM, GETPGRP_NO_ARG): Remove, unused.
4735 (C_DEBUG_SWITCH): Remove duplicate definition.
4736
4737 * m/ibms390.h: Remove boilerplate comments.
4738
4739 * sysdep.c (closedir): Use SOLARIS2 instead of sun && USG5_4.
4740
4741 * process.c (HAVE_SERIAL): Consolidate ifdefs.
4742 (wait_reading_process_output): Remove code for SunOS, platform not
4743 supported anymore. Use SOLARIS2 instead of sun.
4744
47452008-07-19 Adrian Robert <Adrian.B.Robert@gmail.com>
4746
4747 * font.c (font_open_by_name): Under NS, default lface height to zero.
4748 (font_open_for_lface): Under NS, set size based on frame fontsize.
4749 * nsterm.m (EmacsView-changeFont:): Remove some commented code.
4750 * frame.c (x_set_frame_parameters): Remove HAVE_NS ifdef.
4751
47522008-07-19 Adrian Robert <Adrian.B.Robert@gmail.com>
4753
4754 * nsterm.m (ns_antialias_text, ns_use_qd_smoothing)
4755 (ns_use_system_highlight_color): Switch these from DEFVAR_BOOL to
4756 DEFVAR_LISP and change all code accordingly to use Qt/Qnil instead of
4757 YES/NO.
4758 * nsterm.h (prevUseHighlightColor): Make a Lisp_Object.
4759 * nsfont.m (nsfont_draw): Treat ns_use_qd_smoothing as Lisp_Object.
4760 * Makefile.in (clean): Clear out build destination dir.
4761
47622008-07-19 Adrian Robert <Adrian.B.Robert@gmail.com>
4763
4764 * Makefile.in (nsgui.h-related dependencies): Remove abbrev, xfns,
4765 xterm, xselect.
4766 * lisp.h: Remove declaration of hash_remove.
4767 * nsgui.h: Remove redefinitions of hash_remove.
4768 * fns.c (hash_remove): Rename to hash_remove_from_table.
4769
47702008-07-19 Seiji Zenitani <zenitani@mac.com>
4771
4772 * nsfont.m (nsfont_fmember_to_entity, nsfont_make_fontset_for_font):
4773 strdup() the family UTF8String before modifying it.
4774
47752008-07-19 Adrian Robert <Adrian.B.Robert@gmail.com>
4776
4777 * nsterm.m (ns_maybe_dumpglyphs_background): Compare result from
4778 NS_FACE_BACKGROUND with 0 instead of nil.
4779 * nsfont.m (nsfont_draw): Same.
4780
47812008-07-19 Chong Yidong <cyd@stupidchicken.com>
4782
4783 * nsfns.m (ns_set_background_color): Fix crash.
4784
47852008-07-18 Chong Yidong <cyd@stupidchicken.com>
4786
4787 * Makefile.in (SOME_MACHINE_LISP): Remove ns-carbon-compat.elc.
4788
47892008-07-18 Dan Nicolaescu <dann@ics.uci.edu>
4790
4791 * puresize.h (BASE_PURESIZE): Increase to 1240000.
4792
47932008-07-17 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
4794
4795 * gtkutil.c: Include <config.h> instead of "config.h".
4796
4797 * lisp.h (Foverlay_buffer): Add EXFUN.
4798
4799 * process.c (create_process) [!WINDOWSNT && FD_CLOEXEC]: Wait for
4800 child process to complete child_setup. Undo 2005-09-21 change.
4801
4802 * s/darwin.h: Mention setsid after vfork.
4803
48042008-07-17 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
4805
4806 * Makefile.in (frame.o, keyboard.o, xdisp.o, xfaces.o):
4807 Depend on macgui.h.
4808
4809 * macfns.c (Fx_server_version): Don't use gestaltSystemVersionMajor,
4810 gestaltSystemVersionMinor, or gestaltSystemVersionBugFix.
4811
4812 * macterm.c (keycode_to_xkeysym_table): Add entries for f17, f18,
4813 and f19.
4814 [MAC_OSX] (fn_keycode_to_keycode_table): Likewise.
4815
4816 * macterm.h (gestaltSystemVersionMajor, gestaltSystemVersionMinor)
4817 (gestaltSystemVersionBugFix) [MAC_OS_X_VERSION_MAX_ALLOWED < 1040]:
4818 Remove enumerators.
4819
4820 * mactoolbox.c [USE_MAC_TSM] (mac_handle_text_input_event):
4821 Check if FACE_FROM_ID returns NULL.
4822
48232008-07-17 David Robinow <drobinow@gmail.com> (tiny change)
4824
4825 * w32inevt.c (change_frame_size): Remove extern declaration.
4826 (resize_event, maybe_generate_resize_event): Pass SAFE arg to
4827 change_frame_size.
4828
48292008-07-17 Adrian Robert <Adrian.B.Robert@gmail.com>
4830
4831 * getloadavg.c: Revert last change (2008-07-15).
4832
48332008-07-17 Adrian Robert <Adrian.B.Robert@gmail.com>
4834
4835 * Makefile.in: Replace emacsapp, emacsbindir, emacsappsrc variables
4836 set here with ns_appdir, ns_appresdir, ns_appbindir, ns_appsrc) set
4837 from configure.
4838
48392008-07-17 Dan Nicolaescu <dann@ics.uci.edu>
4840
4841 * s/sol2.h:
4842 * s/sol2-4.h: Reorganize conditionals.
4843
4844 * ecrt0.c: Remove code depending on m68000, not used anymore.
4845
4846 * fns.c (hash_remove): Make static.
4847 * lisp.h (hash_remove): Don't prototype.
4848
4849 * m/ibmrs6000.h:
4850 * m/ibms390x.h:
4851 * m/macppc.h: Remove boilerplate comments.
4852
4853 * m/sparc.h (A_TEXT_OFFSET, A_TEXT_SEEK): Remove, only used on
4854 Solaris, which does not need them.
4855
4856 * m/vax.h: Remove comments about unsupported systems.
4857
4858 * s/darwin.h: Reorganize ifdefs.
4859
48602008-07-17 Andreas Schwab <schwab@suse.de>
4861
4862 * s/cygwin.h (LIB_STANDARD_LIBSRC): Don't define.
4863
48642008-07-17 Stefan Monnier <monnier@iro.umontreal.ca>
4865
4866 Use SDATA. Follow coding convention of placing operators at
4867 beginning of next line rather than end of previous line, and placing
4868 spaces around infix operators.
4869
4870 * Makefile.in: Undef LIB_STANDARD before defining it to silence warning
4871 in case it was defined already.
4872 USE @GNUSTEP_MAKEFILES@ rather than envvars.
4873 * nsterm.m (ns_term_init): Pass Qt and Qnil rather than YES/NO to
4874 ns_default.
4875 (applicationShouldTerminate, setValuesFromPanel): Use EQ to compare
4876 Lisp_Objects.
4877 * nsterm.h (Fx_display_grayscale_p, Fx_display_planes)
4878 (ns_defined_color, ns_color_to_lisp): Declare.
4879 * nsselect.m (ns_handle_selection_request, ns_handle_selection_clear)
4880 (Fns_own_selection_internal): Make the big ugly hack more explicit, so
4881 it's accepted even with USE_LISP_UNION_TYPE.
4882 * nsmenu.m (ns_update_menubar): Use EQ to compare Lisp_Objects.
4883 (update_frame_tool_bar): Remove apparently obsolete tests for
4884 non-integerness of f->tool_bar_lines.
4885 (windowShouldClose, addButton, clicked, runDialogAt): Make the big ugly
4886 hack more explicit, so it's accepted even with USE_LISP_UNION_TYPE.
4887 * nsfont.m (nsfont_driver): Use just 0 rather than an invalid cast.
4888 (nsfont_open): Don't confuse NULL for Qnil.
4889 * nsfns.m (ns_implicitly_set_icon_type): Use EQ to compare Lisp_Objects.
4890 * menu.h (find_and_call_menu_selection):
4891 * menu.c (find_and_call_menu_selection): Use just int for vector size.
4892 (find_and_return_menu_selection): Always return something.
4893 * frame.h: Include dispextern.h for Display_Info.
4894 (display_x_get_resource): Declare.
4895
48962008-07-16 Adrian Robert <Adrian.B.Robert@gmail.com>
4897
4898 * syntax.c: Remove stdio.h include accidentally introduced in
4899 Emacs.app commit.
4900 * Makefile.in: Change GNUSTEP to NS_IMPL_GNUSTEP, COCOA to
4901 NS_IMPL_COCOA.
4902 * keyboard.c (handle_async_input, input_available_signal): Remove
4903 BSD4_1 conditional code, introduced accidentally in Emacs.app commit.
4904
49052008-07-16 Stefan Monnier <monnier@iro.umontreal.ca>
4906
4907 * nsterm.m (lisp_to_mod): Use parse_solitary_modifier instead.
4908 (ns_lisp_to_color): Don't mess with internal Lisp data fields.
4909 (ns_term_init, ns_term_shutdown, initFrameFromEmacs, ns_list_fonts):
4910 Use SDATA.
4911
4912 * keymap.c: Remove all NS-specific code.
4913 (where_is_preferred_modifier, Vwhere_is_preferred_modifier): New vars.
4914 (preferred_sequence_p): Rename from ascii_sequence_p; pay attention to
4915 where_is_preferred_modifier, return a different value depending on how
4916 preferred is the binding.
4917 (where_is_internal): Adjust accordingly.
4918 (Fwhere_is_internal): Refresh where_is_preferred_modifier.
4919 Adjust to new preferred_sequence_p.
4920 (syms_of_keymap): Declare `where-is-preferred-modifier'.
4921 * keyboard.c (parse_solitary_modifier): Not static any more.
4922 * keyboard.h (parse_solitary_modifier): Declare.
4923
49242008-07-16 Andreas Schwab <schwab@suse.de>
4925
4926 * Makefile.in (SOME_MACHINE_LISP): Remove easy-mmode, fix spelling
4927 of easymenu.
4928
49292008-07-16 Chong Yidong <cyd@stupidchicken.com>
4930
4931 * xdisp.c (move_it_in_display_line): Account for word wrap, so
4932 that we don't move off the line.
4933
49342008-07-16 Stefan Monnier <monnier@iro.umontreal.ca>
4935
4936 * keyboard.c (Qsuper): Remove.
4937 (parse_menu_item): Don't call where_is_internal specially for NS.
4938
49392008-07-16 Dan Nicolaescu <dann@ics.uci.edu>
4940
4941 * s/gnu-linux.h: Remove boilerplate comments.
4942
4943 * m/alpha.h (__ELF__): Consolidate conditions.
4944
4945 * m/m68k.h (linux): Use GNU_LINUX instead.
4946 Remove boilerplate comments.
4947
4948 * m/intel386.h: Undo refactoring from previous change.
4949 (LIB_STANDARD): All systems that define USG define LIB_STANDARD
4950 too, remove dead code.
4951 (linux): Use GNU_LINUX instead.
4952
49532008-07-16 Jason Rumney <jasonr@gnu.org>
4954
4955 * w32gui.h: Repeat 26 June changes lost by last change.
4956
49572008-07-16 Dan Nicolaescu <dann@ics.uci.edu>
4958
4959 * systty.h: Remove code for Aix on 386, unsupported platform.
4960
4961 * s/ms-w32.h: Remove boilerplate comments.
4962 (fcloseall, fgetchar, flushall, fputchar, getw, putw): Remove, unused.
4963
4964 * s/gnu-linux.h (TERM): Remove support.
4965 (HAVE_SYSVIPC): Remove, unused.
4966 (A_TEXT_OFFSET, A_TEXT_SEEK, ADJUST_EXEC_HEADER): Remove, not used
4967 for this system.
4968
4969 * process.c: Remove support for IRIS, unused.
4970 Remove support for TERM, not relevant anymore.
4971
4972 * unexalpha.c (DEFAULT_ENTRY_ADDRESS): Remove, replace the only
4973 used with the definition.
4974
4975 * s/aix4-2.h (static): Do not undef.
4976
4977 * m/ibmrs6000.h: Remove code depending on USG5_4, this file is
4978 only used on Aix.
4979 (HAVE_SYSVIPC): Remove, unused.
4980
4981 * m/hp800.h (CANNOT_DUMP): Do not undef.
4982
4983 * m/alpha.h: Fix comment.
4984
4985 * s/usg5-4.h (HAVE_SYSVIPC): Remove, unused.
4986 (USG_SHARED_LIBRARIES): Remove, only used in unexec.c which is not
4987 used by this configuration.
4988 * emacs.c: Remove code depending on USG_SHARED_LIBRARIES.
4989 * unexec.c: Remove code depending on HPUX and
4990 USG_SHARED_LIBRARIES, not used with this file. Remove code
4991 depending on IRIS, unused. Remove if 0-ed code.
4992
4993 * s/template.h: Remove comments about static.
4994
4995 * sysdep.c: Remove code depending on NEED_PTEM_H, unused.
4996 Remove if 0-ed code.
4997 (baud_convert): Don't depend on BAUD_CONVERT, all definitions the
4998 were the same as the default.
4999 * s/vms.h (BAUD_CONVERT): Remove, same as the default.
5000 Remove boilerplate comments.
5001 * s/hpux10-20.h (BAUD_CONVERT): Remove, same as the default.
5002 (HAVE_SYSVIPC): Remove, unused.
5003 (LD_SWITCH_SYSTEM_TEMACS): Simplify, hp9000s700 not supported anymore.
5004
5005 * m/ia64.h (PNTR_COMPARISON_TYPE): Remove, same as the default.
5006 Remove boilerplate comments.
5007 * m/amdx86-64.h (PNTR_COMPARISON_TYPE): Remove, same as the default.
5008 Remove boilerplate comments.
5009 * m/ibms390x.h (PNTR_COMPARISON_TYPE): Remove, same as the default.
5010 Remove boilerplate comments.
5011 * lisp.h (PNTR_COMPARISON_TYPE): Define it unconditionally.
5012
5013 * m/intel386.h (DATA_SEG_BITS): Remove definitions, only used on
5014 USG systems which do not use DATA_SEG_BITS.
5015 Refactor code. Remove boilerplate comments.
5016
5017 * m/ibms390.h:
5018 * m/m68k.h:
5019 * s/bsd-common.h:
5020 * s/cygwin.h:
5021 * s/darwin.h:
5022 * s/freebsd.h:
5023 * s/gnu.h:
5024 * s/msdos.h: Remove boilerplate comments.
5025
5026 * m/iris4d.h: Remove boilerplate comments and code for systems that
5027 do not use this file.
5028 (IRIS_4D): Remove, unused.
5029
5030 * m/mips.h: Remove boilerplate comments and code for systems that
5031 do not use this file.
5032 (SIGN_EXTEND_CHAR):
5033 * m/arm.h (SIGN_EXTEND_CHAR): Remove, unused.
5034 * unexmips.c: Remove file, unused.
5035
5036 * editfns.c (Fuser_full_name): Replace the only use of
5037 USER_FULL_NAME with its value.
5038 * config.in: Regenerate.
5039
50402008-07-16 David Reitter <david.reitter@gmail.com>
5041
5042 * Makefile.in: Add ns-win, ns-carbon-compat, easy-mmode and
5043 easy-menu to SOME_MACHINE_LISP for the new NeXTstep port.
5044
50452008-07-16 Glenn Morris <rgm@gnu.org>
5046
5047 * emacs.c (system-type): Doc fix.
5048
50492008-07-15 Stefan Monnier <monnier@iro.umontreal.ca>
5050
5051 * keyboard.c (parse_menu_item): Don't use cachelist, even under NS.
5052 If the cache doesn't work, let's fix it, rather than work around it.
5053
50542008-07-15 Adrian Robert <Adrian.B.Robert@gmail.com>
5055
5056 * Makefile.in: Correct additions for nsfont.o in last commit.
5057 * nsfont.m: New file (forgot last commit).
5058
50592008-07-15 Chris Hall <chris@web.workinglinux.com> (tiny change)
5060
5061 * callproc.c (set_initial_environment): Initialize
5062 Vprocess_environment under CANNOT_DUMP (fixes crash when
5063 batch-compiling for bootstrap).
5064
50652008-07-15 Chris Hall <chris@web.workinglinux.com> (tiny change)
5066 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
5067
5068 (make_initial_frame): Call init_frame_faces(f) in CANNOT_DUMP case --
5069 fix crash due to different init order.
5070
50712008-07-15 Adrian Robert <Adrian.B.Robert@gmail.com>
5072
5073 Changes and additions for NeXTstep windowing system (Cocoa and
5074 GNUstep) support.
5075
5076 * Makefile.in:
5077 * config.in: Support defines and build commands for NS port.
5078 * blockinput.h (BLOCK_INPUT, UNBLOCK_INPUT, TOTALLY_UNBLOCK_INPUT)
5079 (UNBLOCK_INPUT_TO): Don't use under NS unless EXPERIMENTAL_CONTROL_G.
5080 * dispextern.h: Include nsgui.h and add needed typedefs under NS
5081 windowing.
5082 (struct face): Add synth_ital field.
5083 * dispnew.c: Include nsterm.h when compiling under NS windowing.
5084 (init_display): Initialize Vinitial_window_system to "ns" when so
5085 compiled.
5086 * emacs.c: Include GSConfig.h when compiling under GNUstep.
5087 (display_arg): Use under NS.
5088 (main): Under NS, allocate autorelease pool and handle command line
5089 args. Move syms_of_xmenu() call under #ifdef HAVE_X_WINDOWS.
5090 (standard_args): Add NS-specific args.
5091 (shut_down_emacs): Shut down NS terminal if compiled under NS.
5092 * font.c (DEFAULT_ENCODING): New variable.
5093 (font_find_for_lface): Use it.
5094 (syms_of_font): Load syms_of_nsfont under NS.
5095 * font.h: Declare nsfont_driver when compiled under NS.
5096 * fontset.c: When compiling under NS, include nsterm.h.
5097 (fontset_from_font): Autoconstruct fontset under NS.
5098 * frame.c (various): Under NS, include nsterm.h, add Qns window system
5099 symbol, document and use it.
5100 (do_switch_frame): When for_deletion under Cocoa, add
5101 Fraise_frame(Qnil).
5102 (x_set_frame_parameters): Ensure font attribute changes are picked up.
5103 (x_get_arg): Allow "yes" and "no" as boolean values.
5104 (syms_of_frame): Declare Qns. Init Vdefault_frame_scroll_bars to
5105 Qright under Cocoa.
5106 (focus-follows-mouse): Default to 0 under NS.
5107 * frame.h (enum output_method): Add output_ns.
5108 (external_tool_bar, external_menu_bar, FRAME_EXTERNAL_TOOLBAR)
5109 (FRAME_EXTERNAL_MENU_BAR): Use under NS.
5110 (FRAME_WINDOW_P): NS-specific definition.
5111 * fringe.c (max_used_fringe_bitmap): Make public.
5112 * getloadavg.c (mach/mach.h): Include it under NeXT descendant OS's.
5113 (getloadavg): Use NeXT code under descendant OS's.
5114 * image.c (includes and header section, x_create_bitmap_from_data)
5115 (x_create_bitmap_from_file, free_bitmap_record, image_background)
5116 (image_background_transparent, x_clear_image_1)
5117 (x_create_x_image_and_pixmap, x_destroy_x_image, x_put_x_image)
5118 (Create_Pixmap_From_Bitmap_Data, xpm_load_image, lookup_rgb_color)
5119 (x_to_xcolors, x_from_xcolors, x_disable_image)
5120 (x_build_heuristic_mask, syms_of_image): Add NS support parallel to
5121 other GUIs, including XPM support using code originally written for
5122 Carbon GUI.
5123 (png_load, jpeg_load, tiff_load, gif_load): Add implementations
5124 using NS API.
5125 (image_ascent): Use font metrics macros instead of direct struct field
5126 access.
5127 * keyboard.c (includes): Add nsterm.h when compiling under NS.
5128 (kbd_buffer_get_event): Handle NS as other GUI windowing systems.
5129 Also, handle NS as GTK for menu bar purposes.
5130 (make_lispy_event): Handle NS as other GUI windowing systems, and as X
5131 toolkit where they differ.
5132 (parse_menu_item): Prefer keybindings using 'super' modifier. Also,
5133 use cachelist, still needed under NS.
5134 * keyboard.h (ENCODE_MENU_STRING, XtPointer, Boolean): Handle as NTGUI.
5135 (struct widget_value): Define it here for menu.c.
5136 * keymap.c (includes): Include modifier internals.
5137 (lisp_to_mod, modifier_sequence_p): New functions, compiled only under
5138 NS.
5139 (where_is_internal, Fwhere_is_internal): When compiled under NS, add
5140 support for preferring sequences using certain modifiers, specified by
5141 the FIRSTONLY argument.
5142 * lisp.h (hash_remove): Rename to avoid name clash when compiling
5143 under NS GNUstep implementation.
5144 (USE_LSB_TAG): Use it under Cocoa when compiling under NS.
5145 * lread.c (init_lread): Treat NS as HAVE_CARBON for turn_off_warning.
5146 * menu.c: Include nsterm.h under NS.
5147 (single_menu_item, parse_single_submenu, xmalloc_widget_value)
5148 (free_menubar_widget_tree_value, update_submenu_strings)
5149 (find_and_call_menu_selection): Treat NS as X and NT.
5150 (find_and_return_menu_selection): New function, used for popup menus.
5151 * nsgui.h:
5152 * nsterm.h:
5153 * nsfns.m:
5154 * nsimage.m:
5155 * nsmenu.m:
5156 * nsselect.m:
5157 * nsterm.m: New files.
5158 * process.c (wait_reading_process_output): Under NS, call ns_select()
5159 instead of plain select().
5160 * syntax.c (char_quoted): Under NS, avoid a crash when called near
5161 beginning of buffer.
5162 * sysselect.h (init_process): Rename when compiling under Cocoa to
5163 avoid name conflict.
5164 * termhooks.h (display_info): Add ns_display_info to union.
5165 * terminal.c (Fterminal_live_p): Add ns to terminal types.
5166 * terminfo.c (UP, BC, PC): Don't declare when compiling under NS in
5167 COCOA environment.
5168 * unexnext.c: Update to work with mach API on Mac OS X, and to use new
5169 unexec() signature. (Note, this will dump, but the resulting file
5170 crashes; unexosx is used instead; keeping around for reference and
5171 possible aid in getting dump working under GNUstep.)
5172 * w32gui.h (button_type, widget_value): Remove definitions (now in
5173 keyboard.h).
5174 * window.c: Include nsterm.h when compiling under NS.
5175 * xdisp.c (includes): Include nsterm.h when compiling under NS.
5176 (set_frame_menubar, update_menu_bar, display_menu_bar): Handle NS as
5177 other GUI windowing systems.
5178 (update_tool_bar, redisplay_tool_bar, redisplay_window): Handle NS as
5179 GTK.
5180 (x_consider_frame_title): Under NS, set icon type and frame
5181 modified-state indicator; use ns_set_name_as_filename() when using
5182 formatted title.
5183 (update_window_cursor): Make public when compiling under NS.
5184 (display_hourglass_p, syms_of_xdisp, hourglass_shown_p)
5185 (hourglass_atimer, Vhourglass_delay
5186 * xfaces.c (header section, init_frame_faces, clear_font_table)
5187 (defined_color, unload_color, x_face_list_fonts)
5188 (prepare_face_for_display): Add NS support parallel to other GUIs.
5189 Emulate GCs like other non-X GUIs.
5190 (split_font_name): Don't lowercase font name under NS.
5191 (merge_face_ref, Finternal_set_lisp_face_attribute): Support stippling
5192 under NS.
5193 * s/darwin.h: Add support for compilation under NS.
5194
51952008-07-15 Jason Rumney <jasonr@gnu.org>
5196
5197 * w32fns.c (Fx_create_frame): Remove duplicate unwind_protect.
5198 (w32_show_hourglass): Rename from show_hourglass.
5199 (w32_hide_hourglass): Rename from hide_hourglass.
5200 (DEFAULT_HOURGLASS_DELAY): Revert from last change.
5201 (Vhourglass_delay): Declare extern.
5202 (hourglass_started): Remove.
5203
5204 * xdisp.c (Vhourglass_delay): Remove static.
5205 (hourglass_started, start_hourglass, cancel_hourglass):
5206 Don't include these versions on WINDOWSNT.
5207
52082008-07-15 Adrian Robert <Adrian.B.Robert@gmail.com>
5209
5210 * dispextern.h (hourglass_shown_p, hourglass_atimer): New extern
5211 variables (formerly in xfns.c).
5212 (show_hourglass, hide_hourglass): New prototypes (same).
5213 * xdisp.c (display_hourglass_p, hourglass_shown_p, hourglass_atimer)
5214 (Vhourglass_delay, DEFAULT_HOURGLASS_DELAY): New variables (formerly
5215 in xfns.c).
5216 (syms_of_xdisp): Declare/initialize display-hourglass,
5217 hourglass-delay. Initialize hourglass_atimer, hourglass_shown_p.
5218 (hourglass_started, start_hourglass, cancel_hourglass): New functions,
5219 formerly in xfns.c.
5220 * xfns.c (display_hourglass_p, hourglass_atimer, hourglass_shown_p)
5221 (Vhourglass_delay, DEFAULT_HOURGLASS_DELAY, hourglass_started)
5222 (start_hourglass, cancel_hourglass): Remove.
5223 (show_hourglass, hide_hourglass): Remove prototypes and static
5224 modifiers.
5225 (syms_of_xfns): Remove display-hourglass, hourglass-delay,
5226 hourglass_atimer, hourglass_shown_p declaration/initialization.
5227 * macfns.c (display_hourglass_p, hourglass_atimer, hourglass_shown_p)
5228 (Vhourglass_delay, DEFAULT_HOURGLASS_DELAY, hourglass_started)
5229 (start_hourglass, cancel_hourglass): Remove.
5230 (show_hourglass, hide_hourglass): Remove prototypes and static
5231 modifiers.
5232 (syms_of_macfns): Remove display-hourglass, hourglass-delay,
5233 hourglass_atimer, hourglass_shown_p declaration/initialization.
5234 * w32fns.c (display_hourglass_p, Vhourglass_delay)
5235 (DEFAULT_HOURGLASS_DELAY): Remove.
5236 (syms_of_w32fns): Remove display-hourglass, hourglass-delay,
5237 hourglass_shown_p declaration/initialization.
5238
52392008-07-14 Jason Rumney <jasonr@gnu.org>
5240
5241 * w32fns.c (w32_get_arg): Remove wrapper function.
5242 (w32_createwindow, x_icon, x_create_tip_frame): Use x_get_arg
5243 directly.
5244 (Fx_create_frame): Sync with xfns.c. Use x_get_arg directly.
5245
52462008-07-14 Kenichi Handa <handa@m17n.org>
5247
5248 * xfont.c (xfont_open): Add workaround for X's bug.
5249
52502008-07-14 Emanuele Giaquinta <emanuele.giaquinta@gmail.com> (tiny change)
5251
5252 * fontset.c: Include <stdio.h> unconditionally.
5253
52542008-07-13 Michael Albinus <michael.albinus@gmx.de>
5255
5256 * dbusbind.c (Fdbus_register_signal): Allow also signal arguments
5257 for filtering.
5258
52592008-07-13 Dan Nicolaescu <dann@ics.uci.edu>
5260
5261 * s/vms.h: Use __GNUC__ instead of _GNUC_.
5262
5263 * m/macppc.h:
5264 * m/alpha.h: Use GNU_LINUX instead of LINUX. Reorganize conditionals.
5265
5266 * m/ibms390x.h (XINT, XUINT): Don't define, same as the default
5267 (SPECIAL_EMACS_INT):
5268 * m/ia64.h (SPECIAL_EMACS_INT):
5269 * m/amdx86-64.h (SPECIAL_EMACS_INT):
5270 * s/gnu.h (NLIST_STRUCT):
5271 * s/aix4-2.h (X11R5_INHIBIT_I18N):
5272 * s/gnu-linux.h (LINUX):
5273 * s/msdos.h (HAVE_FACES):
5274 * s/ms-w32.h (HAVE_FACES): Don't define, unused.
5275
5276 * systty.h:
5277 * sysdep.c (setup_pty): Don't depend on SYSV_PTYS, it is not used
5278 anymore.
5279
52802008-07-12 Dan Nicolaescu <dann@ics.uci.edu>
5281
5282 * syswait.h: Remove old if 0 code. Do not define WAITTYPE, it was
5283 always defined as int.
5284
5285 * s/netbsd.h (HAVE_UNION_WAIT, HAVE_WAIT_HEADER, WAIT_USE_INT):
5286 * s/gnu.h (HAVE_WAIT_HEADER, WAIT_USE_INT, HAVE_UNION_WAIT):
5287 * s/gnu-linux.h (HAVE_WAIT_HEADER):
5288 * s/freebsd.h (HAVE_WAIT_HEADER):
5289 * s/bsd-common.h (HAVE_UNION_WAIT):
5290 * s/aix4-2.h (HAVE_WAIT_HEADER):
5291 * m/mips.h (HAVE_UNION_WAIT):
5292 * s/usg5-4.h (HAVE_WAIT_HEADER, WAITTYPE): Do not define, not used.
5293 (COFF, static): Do not define, they are undefined later in the file.
5294
5295 * process.c (update_status): Don't use a union.
5296 (status_convert):
5297 (sigchld_handler): Use int instead of WAITTYPE.
5298
52992008-07-12 Chong Yidong <cyd@stupidchicken.com>
5300
5301 * indent.c (Fvertical_motion): Restore hscroll before moving to
5302 goal column.
5303
53042008-07-11 Dan Nicolaescu <dann@ics.uci.edu>
5305
5306 * lisp.h: Remove left over code.
5307
53082008-07-11 Andreas Schwab <schwab@suse.de>
5309
5310 * lisp.h: Fix logic in last change.
5311
5312 * menu.h: New file.
5313 * menu.c: Include it.
5314 * xmenu.c: Likewise.
5315 * Makefile.in: Update dependencies.
5316
53172008-07-11 Kenichi Handa <handa@m17n.org>
5318
5319 * fontset.c (fontset_from_font): Cancel the previous change.
5320
53212008-07-11 Dan Nicolaescu <dann@ics.uci.edu>
5322
5323 * lisp.h:
5324 * w32heap.c:
5325 * emacs.c:
5326 * alloc.c: Replace all references of NO_UNION_TYPE with
5327 USE_LISP_UNION_TYPE.
5328
5329 * m/xtensa.h (NO_UNION_TYPE):
5330 * m/vax.h (NO_UNION_TYPE):
5331 * m/template.h (NO_UNION_TYPE):
5332 * m/sparc.h (NO_UNION_TYPE):
5333 * m/mips.h (NO_UNION_TYPE):
5334 * m/macppc.h (NO_UNION_TYPE):
5335 * m/m68k.h (NO_UNION_TYPE):
5336 * m/iris4d.h (NO_UNION_TYPE):
5337 * m/intel386.h (NO_UNION_TYPE):
5338 * m/ibms390x.h (NO_UNION_TYPE):
5339 * m/ibms390.h (NO_UNION_TYPE):
5340 * m/ibmrs6000.h (NO_UNION_TYPE):
5341 * m/ia64.h (NO_UNION_TYPE):
5342 * m/hp800.h (NO_UNION_TYPE):
5343 * m/arm.h (NO_UNION_TYPE):
5344 * m/amdx86-64.h (NO_UNION_TYPE):
5345 * m/alpha.h (NO_UNION_TYPE): Remove definition, all platform were
5346 defining it the same.
5347
53482008-07-10 Chong Yidong <cyd@stupidchicken.com>
5349
5350 * xdisp.c (move_it_to): Backtrack if past the edge of a wrapped line.
5351
53522008-07-10 Dan Nicolaescu <dann@ics.uci.edu>
5353
5354 * fileio.c:
5355 * sysdep.c
5356 * systty.h:
5357 * m/ibmrs6000.h:
5358 * m/iris4d.h:
5359 * s/aix4-2.h:
5360 * s/freebsd.h:
5361 * s/gnu-linux.h:
5362 * s/hpux10-20.h:
5363 * s/hpux11.h:
5364 * s/netbsd.h:
5365 * s/sol2-3.h:
5366 * s/sol2-4.h:
5367 * s/sol2.h:
5368 * s/usg5-4.h:
5369 * s/vms.h: Remove references to unused variables.
5370
53712008-07-10 Andreas Schwab <schwab@suse.de>
5372
5373 * ftfont.c (ftfont_resolve_generic_family): Remove foundry from
5374 pattern before matching the generic family.
5375
53762008-07-10 Dan Nicolaescu <dann@ics.uci.edu>
5377
5378 * unexec.c:
5379 * s/vms.h:
5380 * s/usg5-4-2.h:
5381 * s/sol2-5.h:
5382 * s/freebsd.h:
5383 * s/darwin.h: Remove dead code.
5384
5385 * m/template.h:
5386 * m/sparc.h:
5387 * m/mips.h:
5388 * m/m68k.h:
5389 * m/iris4d.h:
5390 * m/intel386.h:
5391 * m/ibms390x.h:
5392 * m/ibms390.h:
5393 * m/ia64.h:
5394 * m/hp800.h:
5395 * m/arm.h:
5396 * m/amdx86-64.h: Remove dead code and references to unused
5397 and compiler defined symbols.
5398
5399 * unexmips.c:
5400 * unexelf.c: Remove references to desupported systems.
5401
5402 * m/powermac.h: Remove file, it is now identical to m/macppc.h.
5403
5404 * m/powermac.h: Remove boilerplate comments.
5405 (NO_REMAP): Remove unused definition.
5406
5407 * m/macppc.h (UNEXEC, NO_TERMIO): Don't define, the s/ files
5408 define them.
5409
54102008-07-10 Kenichi Handa <handa@m17n.org>
5411
5412 * xfont.c (xfont_open): Log the reason of failure.
5413
54142008-07-09 Stefan Monnier <monnier@iro.umontreal.ca>
5415
5416 * fontset.c (fontset_get_font_group):
5417 * font.c (font_check_otf): Specify argument types.
5418
54192008-07-09 Kenichi Handa <handa@m17n.org>
5420
5421 * coding.c (detect_coding_utf_8): Set detect_info->found only when
5422 non-ASCII char is found.
5423
5424 * fontset.c (fontset_compare_rfontdef): Fix plus/minus.
5425 (reorder_font_vector): Change the arg preferred_family to font.
5426 Prefer the spec matching with font.
5427 (fontset_get_font_group): New function.
5428 (fontset_find_font): Change the format of an element of a realized
5429 fontset. Use fontset_get_font_group.
5430 (fontset_font): Try the current fontset, the default fontset, the
5431 fallbacks of the current fontset, and the fallbacks of the default
5432 fontset in this order.
5433 (face_for_char): Delete the shortcut to use the current font.
5434 (fontset_from_font): Don't set fonts for Latin in the fontset.
5435
5436 * font.h (font_make_object, font_match_p): Adjust prototypes.
5437
5438 * ftfont.h [FT_BDF_H]: Include FT_BDF_H.
5439
5440 * font.c (font_make_object): New arg entity and pixelsize.
5441 (font_check_otf_features, font_check_otf): New functions.
5442 (font_match_p): Check :lang, :script, and :otf properties.
5443
5444 * xfont.c (xfont_open): Adjust it for the change of
5445 font_make_object.
5446 (xfont_text_extents): Fix initial setting of metrics.
5447
5448 * ftfont.c (struct ftfont_info): New member index, delete member
5449 fc_charset_idx. Make the member order compatible with struct
5450 xftfont_info.
5451 (fc_charset_table): Change charset names to registry names.
5452 (ftfont_pattern_entity): Delete the args registry and
5453 fc_charset_idx. Change the value of :font-entity property
5454 to (FONTNAME . INDEX). Always set :registry property to
5455 `iso10646-1'.
5456 (struct ftfont_cache_data): New struct.
5457 (ftfont_lookup_cache): New arg for_face.
5458 (ftfont_get_fc_charset, ftfont_get_otf): New functions.
5459 (ftfont_driver): Set the member otf_capability.
5460 (ftfont_get_charset): Adjust it for the change of
5461 fc_charset_table.
5462 (OTF_TAG_SYM): New macro.
5463 (ftfont_spec_pattern): Delete the arg fc_charset_idx. Adjust it
5464 for the change of fc_charset_table.
5465 (ftfont_list): Adjust it for the change of ftfont_spec_pattern and
5466 ftfont_pattern_entity. Add FC_INDEX to objset.
5467 (ftfont_match): Adjust it for the change of ftfont_spec_pattern
5468 and ftfont_pattern_entity.
5469 (ftfont_open): Adjust it for the change of ftfont_lookup_cache,
5470 font_make_object, struct ftfont_info.
5471 (ftfont_has_char): Use ftfont_get_fc_charset.
5472 (ftfont_otf_features, ftfont_otf_capability): New functions.
5473 (ftfont_shape): Use ftfont_get_otf.
5474 (ftfont_text_extents): Fix initial setting of metrics.
5475
5476 * xftfont.c (struct xftfont_info): New member ft_size. Make the
5477 member order compatible with struct ftfont_info.
5478 (xftfont_open): Add FC_CHARSET to the pattern. Set
5479 xftfont_info->ft_size. Don't unlock the face. Check BDF
5480 properties if appropriate.
5481 (xftfont_close): Unlock the face.
5482 (xftfont_anchor_point, xftfont_shape): Deleted.
5483 (syms_of_xftfont): Don't set members anchor_point and shape of
5484 xftfont_driver.
5485
5486 * w32uniscribe.c (uniscribe_open): Adjust it for the change of
5487 font_make_object.
5488
5489 * w32font.c (w32font_open): Adjust it for the change of
5490 font_make_object.
5491 (w32font_open_internal): Don't set properties of font_object here.
5492
54932008-07-08 Chong Yidong <cyd@stupidchicken.com>
5494
5495 * macfns.c (x_create_tip_frame):
5496 * w32fns.c (x_create_tip_frame):
5497 * xfns.c (x_create_tip_frame): Pass parameter argument to
5498 face-set-after-frame-default.
5499
5500 * xfaces.c (Finternal_merge_in_global_face): Save merged
5501 attributes for the default face back into the face vector.
5502
55032008-07-08 Andreas Schwab <schwab@suse.de>
5504
5505 * fontset.h: Declare fontset_from_font. Don't declare
5506 new_fontset_from_font and fontset_from_font_name.
5507 * xterm.c: Include "fontset.h".
5508 * Makefile.in (xterm.o): Update dependencies.
5509
55102008-07-08 Glenn Morris <rgm@gnu.org>
5511
5512 * m/sparc.h: Define __sparc__ rather than sparc. (Bug#507.)
5513 * alloc.c, ecrt0.c: Use __sparc__ rather than sparc.
5514
55152008-07-07 Chong Yidong <cyd@stupidchicken.com>
5516
5517 * frame.c (Qinhibit_face_set_after_frame_default): Var deleted.
5518 (x_set_frame_parameters): Don't bind it.
5519
55202008-07-07 Juanma Barranquero <lekktu@gmail.com>
5521
5522 * w32fns.c (map_w32_filename): Declare extern.
5523
55242008-07-07 Jason Rumney <jasonr@gnu.org>
5525
5526 * w32term.c (WS_EX_LAYERED): Define if not already.
5527
55282008-07-06 Chong Yidong <cyd@stupidchicken.com>
5529
5530 * xfaces.c (set_font_frame_param): Don't try to set the font
5531 parameter if it is still unspecified in the lface.
5532
55332008-07-05 Chong Yidong <cyd@stupidchicken.com>
5534
5535 * xfaces.c (Finternal_merge_in_global_face): Don't realize default
5536 face if it didn't already exist.
5537
5538 * xdisp.c (try_window_id): Give up if word-wrapping is on.
5539
55402008-07-05 Andreas Schwab <schwab@suse.de>
5541
5542 * xdisp.c (get_it_property): Move out of HAVE_WINDOW_SYSTEM section.
5543
55442008-07-05 Chong Yidong <cyd@stupidchicken.com>
5545
5546 * xdisp.c (IT_OVERFLOW_NEWLINE_INTO_FRINGE): Turn it off if
5547 word-wrapping.
5548 (IT_DISPLAYING_WHITESPACE): New macro.
5549 (move_it_in_display_line_to): Handle MOVE_TO_X requests properly
5550 when word-wrapping. Simplify word-wrapping logic. Use correct
5551 pixel positions when saving copies of the iterator.
5552 (display_line): Use proper wrap point if the last character on a
5553 line was preceded by whitespace.
5554
55552008-07-04 Stefan Monnier <monnier@iro.umontreal.ca>
5556
5557 * Makefile.in (${etc}DOC): Depend on ${lisp} rather than ${shortlisp}.
5558
55592008-07-04 Kenichi Handa <handa@m17n.org>
5560
5561 * fns.c (Fstring_to_unibyte): Delete the arg ACCEPT-LATIN-1.
5562
5563 * lisp.h: EXFUN adjusted for the change of Fstring_to_unibyte.
5564
55652008-07-02 Jason Rumney <jasonr@gnu.org>
5566
5567 * xfns.c (syms_of_xfns): Only define x-select-font when both
2ae37cf0 5568 HAVE_FREETYPE and USE_GTK.
aac0c6e3
MR
5569
5570 * xdisp.c (next_element_from_display_vector): Move assignment out
5571 of if statement.
5572
55732008-07-02 Toru Tsuneyoshi <t_tuneyosi@hotmail.com>
5574
5575 * lisp.h (Qdelete_file, Qdelete_directory): Declare extern.
5576
5577 * fileio.c (delete_by_moving_to_trash, Qmove_file_to_trash): New vars.
5578 (syms_of_fileio): Initialize and export them.
5579 (Fdelete_directory, Fdelete_file): Optionally delete via trash.
5580
5581 * w32fns.c (FOF_NO_CONNECTED_ELEMENTS): Define if not already.
5582 (Fsystem_move_file_to_trash): New function.
5583 (syms_of_w32fns): Export it to lisp.
5584
55852008-07-01 Jason Rumney <jasonr@gnu.org>
5586
5587 * w32font.c (w32font_text_extents): Don't count overhang as part
5588 of width.
5589
55902008-06-30 Miles Bader <miles@gnu.org>
5591
5592 * dispextern.h (struct glyph, struct it, struct iterator_stack_entry):
5593 Add `avoid_cursor_p' field.
5594
5595 * xdisp.c (push_it, pop_it): Save/restore avoid_cursor_p field.
5596 (set_cursor_from_row): Skip glyphs with avoid_cursor_p set.
5597 (append_glyph, append_composite_glyph, produce_image_glyph)
5598 (append_stretch_glyph): Initialize avoid_cursor_p.
5599 (get_it_property): Rename from `get_line_height_property'.
5600 (x_produce_glyphs): Use get_it_property.
5601 (handle_line_prefix, push_display_prop): New functions.
5602 (display_line, move_it_in_display_line_to): Handle line/wrap prefixes.
5603 (Vwrap_prefix, Qwrap_prefix, Vline_prefix, Qline_prefix):
5604 New variables.
5605 (syms_of_xdisp): Initialize them.
5606
56072008-06-30 Kenichi Handa <handa@m17n.org>
5608
5609 * xftfont.c (xftfont_open): Don't call FcConfigSubstitute and
5610 XftDefaultSubstitute (they are called in XftFontMatch).
5611 (xftfont_open): Fix args to ftfont_font_format.
5612
5613 * ftfont.c (fc_charset_table): New member lang.
5614 (ftfont_resolve_generic_family): New arg pattern.
60612c8f 5615 (ftfont_spec_pattern): Check fc_charset_table[]->lang.
aac0c6e3
MR
5616 (ftfont_list): Call ftfont_resolve_generic_family with `pattern'.
5617 (ftfont_open): Fix args to ftfont_font_format.
5618 (ftfont_font_format): New arg filename.
5619
56202008-06-30 Chong Yidong <cyd@stupidchicken.com>
5621
5622 * xfaces.c (Finternal_merge_in_global_face): If default face was
5623 modified, realize it again. Update the font face attribute.
5624
56252008-06-29 Jason Rumney <jasonr@gnu.org>
5626
5627 * w32term.c (x_set_frame_alpha): Fix logic.
5628
56292008-06-29 Kenichi Handa <handa@m17n.org>
5630
5631 * fontset.c (Finternal_char_font): Return font-object instead of
5632 font-name.
5633
5634 * composite.c (get_composition_id): Fix the width calculation for TAB.
5635
56362008-06-29 Stefan Monnier <monnier@iro.umontreal.ca>
5637
5638 * indent.c (Fvertical_motion): Properly handle float column arg.
5639
56402008-06-28 Jason Rumney <jasonr@gnu.org>
5641
5642 * w32term.c (pfnGetFontUnicodeRanges): Remove unused function pointer.
5643 (pfnSetLayeredWindowAttributes): New function pointer.
5644 (w32_initialize): Initialize it when supported.
5645 (x_set_frame_alpha): New function.
5646
5647 * w32fns.c (Fx_create_frame): Initialize frame parameter `alpha'.
5648 (w32_frame_parm_handlers): Set alpha handler.
5649
5650 * frame.c (x_set_alpha) [HAVE_NTGUI]: Call x_set_frame_alpha.
5651
56522008-06-27 Jason Rumney <jasonr@gnu.org>
5653
5654 * w32fns.c (x_to_w32_font, w32_to_x_font, x_to_w32_weight)
5655 (w32_to_x_weight, w32_to_all_x_charsets): Remove obsolete functions.
5656 (w32_to_x_charset, x_to_w32_charset)
5657 (Qw32_charset_ansi, Qw32_charset_symbol, Qw32_charset_default)
5658 (Qw32_charset_shiftjis, Qw32_charset_hangeul, Qw32_charset_johab)
5659 (Qw32_charset_chinesebig5, Qw32_charset_gb2312, Qw32_charset_oem)
5660 (Qw32_charset_easteurope, Qw32_charset_turkish, Qw32_charset_baltic)
5661 (Qw32_charset_russian, Qw32_charset_arabic, Qw32_charset_greek)
5662 (Qw32_charset_hebrew, Qw32_charset_vietnamese, Qw32_charset_thai)
5663 (Qw32_charset_mac, Vw32_charset_info_alist): Move to w32font.c.
5664 (Qw32_charset_unicode): Remove.
5665 (syms_of_w32fns): Update for above changes.
5666
5667 * w32font.c (w32_to_x_charset, x_to_w32_charset)
5668 (Qw32_charset_ansi, Qw32_charset_symbol, Qw32_charset_default)
5669 (Qw32_charset_shiftjis, Qw32_charset_hangeul, Qw32_charset_johab)
5670 (Qw32_charset_chinesebig5, Qw32_charset_gb2312, Qw32_charset_oem)
5671 (Qw32_charset_easteurope, Qw32_charset_turkish, Qw32_charset_baltic)
5672 (Qw32_charset_russian, Qw32_charset_arabic, Qw32_charset_greek)
5673 (Qw32_charset_hebrew, Qw32_charset_vietnamese, Qw32_charset_thai)
5674 (Qw32_charset_mac, Vw32_charset_info_alist): Move from w32fns.c.
5675 (syms_of_w32font): Update for above changes.
5676
56772008-06-27 Dan Nicolaescu <dann@ics.uci.edu>
5678
5679 * s/usg5-4.h: Fix previous change: keep the correct branch of a
5680 removed #if.
5681 (USG_SHARED_LIBRARIES): Remove duplicate definition.
5682
56832008-06-26 Juanma Barranquero <lekktu@gmail.com>
5684 Eli Zaretskii <eliz@gnu.org>
5685
5686 * makefile.w32-in (LOCAL_FLAGS):
5687 Don't include WINDOWSNT, DOS_NT and _UCHAR_T.
5688
5689 * sysdep.c (_spawnlp, _getpid):
5690 Declare with explicit _cdecl instead of _CRTAPI1.
5691
5692 * editfns.c (Fget_internal_run_time):
5693 Check for WINDOWSNT with #ifdef, not #if.
5694
56952008-06-26 Jason Rumney <jasonr@gnu.org>
5696
5697 * w32font.h (FONT_HANDLE, FONT_TEXTMETRIC): New macros.
5698
5699 * w32term.c (x_draw_glyph_string_foreground)
5700 (x_draw_composite_glyph_string_foreground): Sync with xterm.c.
5701 Use FONT_HANDLE macro.
5702 (x_draw_glyph_string): Use FONT_TEXTMETRIC macro.
5703
5704 * w32uniscribe.c (uniscribe_otf_capability, uniscribe_shape)
5705 (uniscribe_encode_char): Use FONT_HANDLE macro.
5706
5707 * w32font.c (Fx_select_font): Use FONT_HANDLE macro.
5708 (w32font_text_extents): Use precast w32_font.
5709 (w32font_close): Free cached metrics.
5710 (w32font_open_internal): Allocate space for name on stack.
5711
57122008-06-26 Chong Yidong <cyd@stupidchicken.com>
5713
5714 * xdisp.c (extend_face_to_end_of_line): Fix last change.
5715
57162008-06-26 Jason Rumney <jasonr@gnu.org>
5717
5718 * w32term.h (FONT_AVG_WIDTH): Remove obsolete macro.
5719 (CP_8BIT, CP_UNICODE, CP_UNKNOWN): Remove obsolete constants.
5720
57212008-06-26 Juanma Barranquero <lekktu@gmail.com>
5722
5723 * Makefile.in (SOME_MACHINE_OBJECTS): Remove w32bdf.o.
5724
57252008-06-26 Jason Rumney <jasonr@gnu.org>
5726
5727 * w32bdf.c, w32bdf.h: Remove obsolete files.
5728
5729 * makefile.w32-in: Remove refs to w32bdf.h and w32bdf.c.
5730
5731 * w32gui.h: Don't include w32bdf.h.
5732 (XCharStruct, enum w32_char_font_type, W32FontStruct):
5733 Remove obsolete font support.
5734
5735 * w32font.h (struct w32font_info): Remove compat_w32_font.
5736 Add hfont member.
5737 (FONT_COMPAT): Remove obsolete macro.
5738
5739 * w32font.c (w32font_close): Remove compat code. Delete hfont member.
5740 (w32font_encode_char, w32font_text_extents): Use new hfont member.
5741 (w32font_open_internal): Remove compat code. Set new hfont member.
5742 (Fx_select_font): Use new hfont member.
5743
5744 * w32uniscribe.c (uniscribe_otf_capability, uniscribe_shape)
5745 (uniscribe_encode_char): Use new hfont member.
5746
5747 * w32term.c (x_draw_glyph_string_foreground)
5748 (x_draw_composite_glyph_string_foreground): Use new hfont member.
5749 (x_draw_glyph_string): Use metrics in w32font_info.
5750
57512008-06-26 Kenichi Handa <handa@m17n.org>
5752
5753 * xdisp.c (handle_auto_composed_prop): Fix for the terminal case.
5754
57552008-06-26 Dan Nicolaescu <dann@ics.uci.edu>
5756
5757 * unexnext.c:
5758 * m/ews4800.h:
5759 * m/hp9000s300.h:
5760 * m/ibm370aix.h:
5761 * m/mips-siemens.h:
5762 * m/ncr386.h:
5763 * m/next.h:
5764 * m/pmax.h:
5765 * m/powerpcle.h:
5766 * m/tandem-s2.h:
5767 * s/386bsd.h:
5768 * s/bsd386.h:
5769 * s/bsd4-1.h:
5770 * s/bsd4-2.h:
5771 * s/bsdos2-1.h:
5772 * s/bsdos2.h:
5773 * s/bsdos3.h:
5774 * s/bsdos4.h:
5775 * s/nextstep.h:
5776 * s/ultrix4-3.h:
5777 * s/usg5-0.h:
5778 * s/usg5-2-2.h:
5779 * s/usg5-2.h:
5780 * s/usg5-4-3.h:
5781 * s/ux4800.h:
5782 * s/uxpds.h:
5783 * s/uxpv.h: Remove support for obsolete systems.
5784 * s/hpux.h, s/hpux10.h, s/hpux8.h, s/hpux9.h, s/hpux9shr.h:
8f3a3ac2 5785 Remove, insert contents in s/hpux10-20.h.
aac0c6e3
MR
5786 * s/aix3-1.h, s/aix3-2-5.h, s/aix3-2.h, s/aix4-1.h, s/aix4.h:
5787 Remove, insert contents in s/aix4-2.h.
5788 * s/usg5-3.h: Remove, insert contents in s/usg5-4.h.
5789 * s/bsd4-3.h: Rename to ...
5790 * s/bsd-common.h: ... this.
5791 * data.c:
5792 * doc.c:
5793 * ecrt0.c:
5794 * emacs.c:
5795 * fileio.c:
5796 * floatfns.c:
5797 * keyboard.c:
5798 * mem-limits.h:
5799 * print.c:
5800 * process.c:
5801 * sysdep.c:
5802 * syssignal.h:
5803 * systty.h:
5804 * syswait.h:
5805 * term.c:
5806 * unexec.c:
5807 * unexelf.c:
5808 * unexhp9k800.c:
5809 * m/hp800.h:
5810 * m/ibmrs6000.h:
5811 * m/mips.h:
5812 * m/vax.h:
5813 * s/darwin.h:
5814 * s/freebsd.h:
5815 * s/gnu.h:
5816 * s/ms-w32.h:
5817 * s/msdos.h:
5818 * s/netbsd.h:
5819 * s/template.h: Remove references to obsolete variables.
5820
5821 * Makefile.in: Add dependencies for all unexec files.
5822 (admindir): Remove unused variable.
5823 (UNEXEC_SRC): Remove references.
5824
58252008-06-25 Chong Yidong <cyd@stupidchicken.com>
5826
5827 * xfns.c (x_default_font_parameter): If Xft is available, first
5828 try Monospace-12 for the default font.
5829
58302008-06-25 Jason Rumney <jasonr@gnu.org>
5831
5832 * xdisp.c (get_glyph_face_and_encoding): Encode invalid glyphs as 0.
5833
58342008-06-25 Stefan Monnier <monnier@iro.umontreal.ca>
5835
5836 * bytecode.c (Fbyte_code): Disable debugging code that doesn't compile.
5837
5838 * buffer.c (syms_of_buffer): Remove default-word-wrap.
5839
58402008-06-25 Juanma Barranquero <lekktu@gmail.com>
5841
5842 * xdisp.c (syms_of_xdisp) <truncate-partial-width-windows>: Doc fix.
5843 <scroll-conservatively>: Fix typo in docstring.
5844
5845 * xselect.c (Fx_send_client_event): Doc fix.
5846
58472008-06-25 Kenichi Handa <handa@m17n.org>
5848
5849 * xfaces.c (Fx_list_fonts): Call Flist_fonts with the arg PREFER.
5850
5851 * font.c (font_parse_fcname): Remove unused variables.
5852 (font_sort_entites): Delete the arg SPEC. Caller changed.
5853 Fix for the case of ! best_only.
5854 (font_delete_unmatched): Check DPI and AVGWIDTH too.
5855
5856 * lisp.h (Fstring_to_unibyte): EXFUN it.
5857
5858 * character.h (str_to_unibyte): Extern it.
5859
5860 * character.c (str_to_unibyte): New function.
5861
5862 * fns.c (Fstring_to_unibyte): New function.
5863 (syms_of_fns): Defsubr it.
5864
58652008-06-24 Kenichi Handa <handa@m17n.org>
5866
5867 * font.c (font_score): Even if the PIXEL_SIZE is the same, check
5868 DPI too.
5869 (font_sort_entites): Setup prefer_prop[FONT_DPI_INDEX] too.
5870
58712008-06-24 Andreas Schwab <schwab@suse.de>
5872
5873 * Makefile.in (${lispsource}loaddefs.el): Rename from
5874 ../lisp/loaddefs.el.
5875 (bootstrap-clean): Do what distclean does but don't remove
5876 Makefile.
5877 (distclean): Depend on bootstrap-clean and remove Makefile.
5878
58792008-06-24 Chong Yidong <cyd@stupidchicken.com>
5880
5881 * buffer.h (struct buffer): New member word_wrap.
5882
5883 * buffer.c (syms_of_buffer): New variables default-word-wrap and
5884 word-wrap.
5885 (init_buffer_once): Initialize them.
5886
5887 * dispextern.h (struct it): Replace bool truncate_lines_p with a
5888 line_wrap enum possessing three possible values.
5889
5890 * termopts.h: Replace truncate_partial_width_windows with
5891 Vtruncate_partial_width_windows.
5892
5893 * dispnew.c (direct_output_for_insert): Avoid direct output when
5894 inserting a space with word wrap on.
5895
5896 * indent.c (compute_motion): Obey integer values of
5897 truncate-partial-width-windows.
5898
5899 * xdisp.c (Vtruncate_partial_width_windows): New Lisp_Object,
5900 replacing truncate_partial_width_windows.
5901 (init_iterator): If Vtruncate_partial_width_windows is an integer,
5902 truncate only if the window width is below that integer.
5903 (start_display, resize_mini_window, produce_stretch_glyph)
5904 (display_string, move_it_in_display_line_to): Use line_wrap.
5905 (back_to_previous_visible_line_start, reseat_1): Reset
5906 string_from_display_prop_p.
5907 (display_line): Extend default face to end of line when wrapping.
5908
59092008-06-24 Kim F. Storm <storm@cua.dk>
5910
5911 * xdisp.c (display_line, move_it_in_display_line_to): Add ability
5912 to wrap continued lines at word boundaries.
5913
59142008-06-24 Jason Rumney <jasonr@gnu.org>
5915
5916 * font.c (Ffont_face_attributes): Multiply pixel size before point
5917 conversion to avoid multiplying rounding error.
5918
59192008-06-23 Jason Rumney <jasonr@gnu.org>
5920
5921 * w32term.c (x_draw_glyph_string_background)
5922 (x_draw_glyph_string): Remove old bdf font code.
5923
5924 * w32term.h (FONT_TYPE_FOR_UNIBYTE, FONT_TYPE_FOR_MULTIBYTE): Remove.
5925
59262008-06-22 Kenichi Handa <handa@m17n.org>
5927
5928 * font.c (font_find_for_lface): Try the adstyle specified in
5929 the property of LFACE_FONT of LFACE (if any).
5930
59312008-06-21 Seiji Zenitani <zenitani@mac.com>
5932 Ryo Yoshitake <ryo@shiftmode.net>
5933
5934 * xterm.c (x_set_frame_alpha): Add x_catch_errors for bug#437.
5935
59362008-06-22 Stefan Monnier <monnier@iro.umontreal.ca>
5937
5938 * Makefile.in (${lisp} ${SOME_MACHINE_LISP}, ../lisp/loaddefs.el):
5939 Use $(BOOTSTRAPEMACS) rather than witness-emacs.
5940 (bootstrap-emacs${EXEEXT}): Merge witness-emacs into it.
5941 (witness-emacs): Remove.
5942 (lisp, shortlisp): Move loaddefs.el earlier.
5943 (mostlyclean): Forget about witness-emacs.
5944
59452008-06-22 Glenn Morris <rgm@gnu.org>
5946
5947 * Makefile.in (witness-emacs): Depend on temacs${EXEEXT}.
5948 (.SUFFIXES): Declare .el.elc as a suffix rule, for non-GNU makes.
5949
59502008-06-21 Stefan Monnier <monnier@iro.umontreal.ca>
5951
5952 * Makefile.in (PRECOMP): Remove.
5953 (${lisp} ${SOME_MACHINE_LISP}): Remove pseudo dependency on PRECOMP.
5954 (witness-emacs): Run `compile-first'.
5955 (.el.elc): Use the new compile-onefile target.
5956
59572008-06-21 Kenichi Handa <handa@m17n.org>
5958
5959 * xftfont.c (xftfont_open): Handle QCembolden only when
5960 FC_EMBOLDEN is defined.
5961
59622008-06-21 Andreas Schwab <schwab@suse.de>
5963
5964 * Makefile.in (witness-emacs): Use ../lisp, not $(lispsource).
5965 (.el.elc): Likewise.
5966
59672008-06-21 Miles Bader <miles@gnu.org>
5968
5969 * Makefile.in (../lisp/loaddefs.el): Build autoloads in the lisp
5970 build dir, not the lisp source dir.
5971
59722008-06-21 Stefan Monnier <monnier@iro.umontreal.ca>
5973
5974 * Makefile.in (emacs${EXEEXT}): Link the new emacs to bootstrap-emacs.
5975 (bootstrapclean): Remove.
5976 (.el.elc): New rule.
5977 (PRECOMP): New var.
5978 (../lisp/subdirs.el): Remove.
5979 (bootstrap-emacs${EXEEXT}): Remove subdirs.el and charpro.el dependency.
5980 (witness-emacs): New target.
5981 (mostlyclean): Remove witness-emacs as well.
5982 (../lisp/loaddefs.el, ${lisp} ${SOME_MACHINE_LISP}):
5983 Add witness-emacs dependency.
5984
59852008-06-20 Chong Yidong <cyd@stupidchicken.com>
5986
5987 * font.c (Ffont_face_attributes): Omit key-attribute pairs not
5988 defined by the font.
5989
59902008-06-20 Stefan Monnier <monnier@iro.umontreal.ca>
5991
5992 * Makefile.in (emacs${EXEEXT}): Depend on the machine-specific files.
5993 (bootstrap-clean): New target that keeps TAGS around.
5994 (../lisp/subdirs.el, ../lisp/loaddefs.el): New targets.
5995 (bootstrap-emacs${EXEEXT}): Depend on subdirs.el.
5996
59972008-06-20 Jason Rumney <jasonr@gnu.org>
5998
5999 * w32fns.c, w32term.c, w32term.h, w32gui.h [OLD_FONT]:
6000 Remove obsolete font code.
6001
6002 * w32font.c (font_matches_spec): Use csb bitfield from font signature
6003 to determine language support.
6004
60052008-06-20 Stefan Monnier <monnier@iro.umontreal.ca>
6006
6007 * sysdep.c (cfsetspeed): New fun extracted from the code.
6008 (cfmakeraw): Move before first use.
6009
60102008-06-20 Angelo Graziosi <angelo.graziosi@alice.it> (tiny change)
6011
6012 * sysdep.c (cfmakeraw): Provide fallback implementation.
6013 (serial_configure): Provide fallback implementation of cfsetspeed.
6014
60152008-06-20 Kenichi Handa <handa@m17n.org>
6016
6017 * xftfont.c (xftfont_open): Add FOUNDRY, SPACING, DPI, SCALABLE to
6018 the pattern.
6019
6020 * fontset.c (fontset_from_font): Copy font_spec before changing
6021 the elements.
6022
6023 * xfns.c (x_default_font_parameter): Try "monospace-12" too.
6024
60252008-06-20 Stefan Monnier <monnier@iro.umontreal.ca>
6026
6027 * w32fns.c, xfns.c (x_default_font_parameter): Only set `font-param'
6028 for explicit `font' parameters.
6029
6030 * frame.c (x_set_font): Remove unexplained call to fix inf-recursion.
6031
60322008-06-19 Kenichi Handa <handa@m17n.org>
6033
6034 * frame.c: Include <ctype.h>.
6035 (x_set_font_backend): Allow spacing characters in the X resource
6036 for FontBackend.
6037
60382008-06-19 Stefan Monnier <monnier@iro.umontreal.ca>
6039
6040 * w32fns.c, xfns.c (Qfont_param): New var.
6041 (syms_of_w32fns): Initialize it.
6042 (x_default_font_parameter): Record explicit `font' into
6043 `font-parameter'.
6044
60452008-06-18 Kenichi Handa <handa@m17n.org>
6046
6047 * font.c (font_parse_xlfd): Fix previous change.
6048 (font_parse_fcname): Don't use :fc-unknown-spec.
6049 (FRAME_X_DISPLAY_INFO): Be sure to have at least 1 pixel height.
6050 (Fcopy_font_spec): Preserve the order of elements in FONT_EXTRA.
6051 (font_add_log): Prepend the driver name to the resulting fonts.
6052
6053 * ftfont.c (ftfont_pattern_entity): New arg extra. Caller changed.
6054 (ftfont_spec_pattern): Don't check QCfc_unknown_spec and QCname.
6055 (ftfont_list) [FC_FONTFORMAT]: Include FC_FONTFORMAT in objset.
6056
6057 * xftfont.c (QChinting , QCautohint, QChintstyle, QCrgba)
6058 (QCembolden): New variables.
6059 (syms_of_xftfont): DEFSYM them.
6060 (xftfont_open): Call XftFontMatch. Don't trust the result of
6061 XftTextExtents8 if the pixel_size is less than 5.
6062
60632008-06-18 Andreas Schwab <schwab@suse.de>
6064
6065 * font.c (Ffont_face_attributes): Only define if HAVE_WINDOW_SYSTEM.
6066 (syms_of_font): Only defsubr if HAVE_WINDOW_SYSTEM.
6067
60682008-06-18 Jason Rumney <jasonr@gnu.org>
6069
6070 * w32font.c (w32font_list, w32font_match): Add logging.
6071
6072 * w32uniscribe.c (uniscribe_list, uniscribe_match): Add logging.
6073
60742008-06-17 Chong Yidong <cyd@stupidchicken.com>
6075
6076 * font.c (font_parse_fcname): Store divider characters for
6077 unknown-spec list. For known key symbols, intern using correct
6078 symbol name.
6079
60802008-06-17 Kenichi Handa <handa@m17n.org>
6081
6082 * xfaces.c (realize_default_face): If the frame is not on window
6083 system, set the fontset of face to nil.
6084
60852008-06-17 Naohiro Aota <nao.aota@gmail.com> (tiny change)
6086
6087 * fontset.c (fontset_pattern_regexp): Escape some reg-expr characters.
6088
60892008-06-16 Juanma Barranquero <lekktu@gmail.com>
6090
6091 * dispextern.h (lookup_non_ascii_face, split_font_name_into_vector)
6092 (build_font_name_from_vector): Delete externs.
6093
6094 * xfaces.c (struct font_name): Don't declare.
6095
60962008-06-16 Stefan Monnier <monnier@iro.umontreal.ca>
6097
6098 * font.c (font_unparse_gtkname): Use EQ to compare Lisp_Objects.
6099
61002008-06-16 Chong Yidong <cyd@stupidchicken.com>
6101
6102 * font.c (font_parse_fcname): Fix handling of unknown-spec string.
6103
61042008-06-16 Juanma Barranquero <lekktu@gmail.com>
6105
6106 * font.c (Ffont_spec): Fix usage in docstring.
6107 (Ffont_face_attributes): Doc fix.
6108
61092008-06-16 Andreas Schwab <schwab@suse.de>
6110
6111 * font.c (Ffont_face_attributes): Fix definition.
6112
61132008-06-16 Jason Rumney <jasonr@gnu.org>
6114
6115 * font.h (font_style_symbolic_from_value): Remove.
6116
6117 * font.c (font_style_symbolic_from_value): Remove.
6118 (font_style_symbolic): Revert to pre 2008-06-13 version.
6119
6120 * w32font.c (w32_to_fc_weight): New function.
6121 (w32font_full_name, logfont_to_fcname): Use it.
6122
61232008-06-16 Kenichi Handa <handa@m17n.org>
6124
6125 * font.c (font_check_object): Delete it.
6126 (font_clear_cache): Check if a font-object is alive.
6127 (font_open_entity): Likewise. Set FONT_OBJLST_INDEX of a
6128 font-object to nil.
6129 (font_close_object): Don't check FONT_CLOSE_OBJECT.
6130 (font_at): Don't call font_check_object.
6131 (Ffont_get): Return a symbol for :weight, :slant, and :width.
6132
61332008-06-16 Katsumi Yamaoka <yamaoka@jpl.org>
6134
6135 * puresize.h (BASE_PURESIZE): Increase to 1230000.
6136
61372008-06-16 Chong Yidong <cyd@stupidchicken.com>
6138
6139 * font.c (font_parse_fcname): Correctly parse KEY=VAL values.
6140
61412008-06-15 Chong Yidong <cyd@stupidchicken.com>
6142
6143 * font.c (font_parse_fcname): Only one decimal point.
6144 (font_unparse_fcname): Handle data in family and foundry indices
6145 as symbols, not strings.
6146 (font_unparse_gtkname, Ffont_face_attributes): New functions.
6147
6148 * xfns.c (Fx_select_font): Give GTK font dialog the default font name.
6149
6150 * font.h (font_unparse_gtkname): Add prototype.
6151
61522008-06-15 Naohiro Aota <nao.aota@gmail.com> (tiny change)
6153
6154 * fontset.c (fontset_pattern_regexp): Escape `+' characters in pattern.
6155
61562008-06-15 Andreas Schwab <schwab@suse.de>
6157
6158 * font.c (font_update_drivers): Fix crash when no drivers match.
6159
61602008-06-15 Stefan Monnier <monnier@iro.umontreal.ca>
6161
6162 * xfns.c (Fx_create_frame): internal-border-width default to 0 for Gtk.
6163 * gtkutil.c (xg_create_frame_widgets): Don't set internal_border_width.
6164
61652008-06-14 Stefan Monnier <monnier@iro.umontreal.ca>
6166
6167 * xdisp.c (syms_of_xdisp): Default underline-minimum-offset to 1.
6168
61692008-06-13 Stefan Monnier <monnier@iro.umontreal.ca>
6170
6171 * process.c (Fserial_process_configure, Fprocess_send_eof):
6172 Use EQ to compare Lisp_Objects.
6173
61742008-06-13 Jason Rumney <jasonr@gnu.org>
6175
6176 * w32fns.c (Fw32_select_font): Remove old font API function.
6177
6178 * w32font.c (logfont_to_fcname): New function.
6179 (Fx_select_font): New font dialog function compatible with
6180 GTK/fontconfig version.
6181
6182 * font.c (font_style_symbolic_from_value): New function.
6183 (font_style_symbolic): Use it.
6184
6185 * font.h (font_style_symbolic_from_value): Declare new function.
6186
61872008-06-13 Juanma Barranquero <lekktu@gmail.com>
6188
6189 * font.c (syms_of_font) <font-weight-table, font-slant-table>:
6190 <font-width-table>: Fix typos in docstrings.
6191
61922008-06-13 Daniel Engeler <engeler@gmail.com>
6193
6194 These changes add serial port access.
6195 * process.c: Add HAVE_SERIAL.
6196 (Fdelete_process, Fprocess_status, Fset_process_buffer)
6197 (Fset_process_filter, Fset_process_sentinel, Fprocess_contact)
6198 (list_processes_1, select_wrapper, Fstop_process)
6199 (Fcontinue_process, Fprocess_send_eof, kill_buffer_processes)
6200 (status_notify): Modify to handle serial processes.
6201 [HAVE_SERIAL] (Fserial_process_configure)
6202 [HAVE_SERIAL] (make_serial_process_unwind, Fmake_serial_process):
6203 New functions.
6204 * process.h (struct Lisp_Process): Add `type'.
6205 * sysdep.c [HAVE_TERMIOS] (serial_open, serial_configure):
6206 New functions.
6207 * w32.c (_sys_read_ahead, sys_read, sys_write): Modify to handle
6208 serial ports.
b71ac3dd 6209 (serial_open, serial_configure): New functions.
aac0c6e3
MR
6210 * w32.h: Add FILE_SERIAL.
6211 (struct _child_process): Add ovl_read, ovl_write.
6212
62132008-06-13 Kenichi Handa <handa@m17n.org>
6214
6215 * dispextern.h (enum lface_attribute_index): New member
6216 LFACE_FOUNDRY_INDEX.
6217
6218 * font.c (font_score): Delete arg alternate_families. Check only
6219 weight, slant, width, and size. Ignore the difference of alias
6220 style symbols.
6221 (font_sort_entites): Adjust for the above change. Reflect the
6222 order of font-driver to scores.
6223 (font_list_entities): Don't check alternate_familes here.
6224 (font_clear_prop): Handle foundry.
6225 (font_update_lface): Don't parse "foundry-family" form here.
6226 Handle FONT_FOUNDRY_INDEX.
6227 (font_find_for_lface): Likewise. Handle alternate families here.
6228 If registry is nil, try iso8859-1 and ascii-0.
6229 (font_open_for_lface): Pay attention to size in ENTITY.
6230 (font_open_by_name): Simplify by calling font_load_for_lface.
6231 (free_font_driver_list): Delete it.
6232 (font_update_drivers): Preserve the order of backends.
6233 (syms_of_font): Setting of sort_shift_bits adjusted for the change
6234 of font_score and font_sort_entites.
6235 (font_update_sort_order): Likewise.
6236
6237 * xfaces.c (LFACE_FOUNDRY): New macro.
6238 (check_lface_attrs): Check foundry.
6239 (set_lface_from_font): Don't parse "FOUNDRY-FAMILY" form.
6240 (merge_face_vectors): Check foundry.
6241 (merge_face_ref): Likewise.
6242 (Finternal_set_lisp_face_attribute): Likewise.
6243 (x_update_menu_appearance): Likewise.
6244 (Finternal_get_lisp_face_attribute): Likewise.
6245 (lface_hash): Likewise.
6246 (lface_same_font_attributes_p): Likewise.
6247 (x_supports_face_attributes_p): Likewise.
6248 (tty_supports_face_attributes_p): Likewise.
6249 (Finternal_set_alternative_font_family_alist): Intern strings.
6250 (Finternal_set_alternative_font_registry_alist): Downcase strings.
6251 (realize_default_face): Set LFACE_FOUNDRY (lface).
6252
6253 * xfns.c (Fx_create_frame, x_create_tip_frame): Register X
6254 font-driver at first.
6255
6256 * ftfont.c (ftfont_font_format) [! FC_FONTFORMAT]: Declare "int len;".
6257
62582008-06-12 Emanuele Giaquinta <emanuele.giaquinta@gmail.com> (tiny change)
6259
6260 * lread.c (Fload): Use xfree, not free on saved_doc_string.
6261
62622008-06-12 Jim Meyering <meyering@redhat.com>
6263
6264 Make unexec_free handle NULL the same way free does.
6265 * unexmacosx.c (unexec_free): Ignore a NULL argument.
6266
62672008-06-12 Stefan Monnier <monnier@iro.umontreal.ca>
6268
6269 * character.h (CHAR_TO_BYTE_SAFE): New macro.
6270 * character.c (Fmultibyte_char_to_unibyte): Obey the docstring.
6271 * regex.c (RE_CHAR_TO_UNIBYTE): Use the new macro.
6272 (WEAK_ALIAS): Simplify.
6273 * syntax.c (skip_chars): Don't mark non-byte chars in the fastmap
6274 when searching a unibyte buffer.
6275
62762008-06-12 Chong Yidong <cyd@stupidchicken.com>
6277
6278 * xfns.c (Fx_select_font): Rename from x-font-dialog.
6279
62802008-06-12 Juanma Barranquero <lekktu@gmail.com>
6281
6282 * w32font.c: Include ctype.h.
6283
62842008-06-11 Jason Rumney <jasonr@gnu.org>
6285
6286 * w32font.c (w32font_encode_char): Detect missing glyphs that are
6287 misreported as space.
6288 (add_font_entity_to_list): Support unicode-bmp and unicode-sip
6289 as aliases for registry iso10646-1.
6290
62912008-06-11 Stefan Monnier <monnier@iro.umontreal.ca>
6292
6293 * buffer.c (clone_per_buffer_values): Skip `name'.
6294
62952008-06-11 Chong Yidong <cyd@stupidchicken.com>
6296
6297 * font.c (font_parse_fcname): Fix last change; accept decimal
6298 points in font size.
6299
63002008-06-10 Jason Rumney <jasonr@gnu.org>
6301
6302 * w32uniscribe.c (add_opentype_font_name_to_list):
6303 Skip non unicode fonts.
6304
63052008-06-10 Chong Yidong <cyd@stupidchicken.com>
6306
6307 * xfns.c (Fx_font_dialog): New function.
6308
6309 * gtkutil.c (xg_dialog_response_cb): Rename from
6310 xg_file_response_callback.
6311 (pop_down_dialog): Rename from pop_down_file_dialog.
6312 (xg_get_file_name): Callers changed.
6313 (xg_get_font_name): New function.
6314
6315 * gtkutil.h (xg_get_font_name): Insert prototype.
6316
63172008-06-10 Stefan Monnier <monnier@iro.umontreal.ca>
6318
6319 * xdisp.c (underline_minimum_offset): Rename from xterm.c's
6320 x_underline_minimum_display_offset.
6321 (syms_of_xdisp): Declare it here rather than in xterm.c.
6322 * dispextern.h (underline_minimum_offset): Declare it.
6323 * w32term.c (x_draw_glyph_string): Use it.
6324 * xterm.c (x_underline_minimum_display_offset): Move to xdisp.c.
6325 (syms_of_xterm): Don't declare it any more.
6326 (x_draw_glyph_string): Adjust to the new name.
6327
63282008-06-10 David De La Harpe Golden <david@harpegolden.net> (tiny change)
6329
6330 * xterm.c (x_underline_minimum_display_offset): New var.
6331 (x_draw_glyph_string): Use it.
6332 (syms_of_xterm): Declare it.
6333
63342008-06-10 Chong Yidong <cyd@stupidchicken.com>
6335
6336 * font.c (font_parse_fcname): Accept GTK-style font names too.
6337
63382008-06-10 Stefan Monnier <monnier@iro.umontreal.ca>
6339
6340 * dired.c (file_name_completion): Don't return t if the match is exact
6341 but with different capitalization.
6342 * minibuf.c (Ftry_completion): Simplify.
6343
6344 * window.c (Vwindow_point_insertion_type): New var.
6345 (set_window_buffer): Use it.
6346 (syms_of_window): Init and export it to Lisp.
6347
63482008-06-10 Kenichi Handa <handa@m17n.org>
6349
6350 * font.h (font_intern_prop): Prototype adjusted.
6351
6352 * font.c (font_intern_prop): New arg force_symbol.
6353 (font_parse_xlfd, font_parse_fcname, font_parse_family_registry):
6354 Adjust for the change of font_intern_prop.
6355
6356 * ftfont.c (ftfont_pattern_entity):
6357 * w32font.c (add_font_name_to_list, w32_enumfont_pattern_entity)
6358 (w32_registry):
6359 * w32uniscribe.c (add_opentype_font_name_to_list): Adjust for
6360 the change of font_intern_prop.
6361
63622008-06-09 Juanma Barranquero <lekktu@gmail.com>
6363
6364 * w32menu.c (digest_single_submenu): Declare extern.
6365
63662008-06-09 Jason Rumney <jasonr@gnu.org>
6367
6368 * w32term.c (x_make_frame_visible): Use alternate restore flags.
6369
6370 * w32menu.c (Fx_popup_menu): Unwind protect while building menu.
6371 (parse_single_submenu): Remove.
6372 (digest_single_submenu): Remove.
6373 (syms_of_w32menu): Don't initialise variables that have moved
6374 to menu.c.
6375 (set_frame_menubar): Sync with version in xmenu.c.
6376 (w32_menu_show): Sync with xmenu_show in xmenu.c.
6377
6378 * menu.c (single_keymap_panes, push_menu_pane, push_menu_item):
6379 Make static again.
6380
63812008-06-09 Jason Rumney <jasonr@gnu.org>
6382
6383 Changes to w32 files related to the move of common menu code
6384 to menu.c on 2008-06-08 by Chong Yidong.
6385
6386 * menu.c [HAVE_NTGUI]: Include w32term.h, move widget related
6387 defs to w32gui.h.
6388 (single_keymap_panes, push_menu_item, push_menu_pane):
6389 Make globally visible.
6390
6391 * w32menu.c (enum button_type, widget_value, local_heap, local_alloc)
6392 (local_free, malloc_widget_value, free_widget_value)
6393 (MENU_ITEMS_ITEM_NAME, MENU_ITEMS_ITEM_ENABLE, MENU_ITEMS_ITEM_VALUE)
6394 (MENU_ITEMS_ITEM_EQUIV_KEY, MENU_ITEMS_ITEM_DEFINITION)
6395 (MENU_ITEMS_ITEM_TYPE, MENU_ITEMS_ITEM_SELECTED, MENU_ITEMS_ITEM_HELP)
6396 (MENU_ITEMS_ITEM_LENGTH, enum menu_item_idx): Remove defs.
6397 (menu_items, menu_items_allocated, menu_items_used)
6398 (menu_items_n_panes, menu_items_submenu_depth): Remove global vars.
6399 (init_menu_items, finish_menu_items, discard_menu_items)
6400 (grow_menu_items, push_submenu_start, push_submenu_end)
6401 (push_left_right_boundary, push_menu_pane, push_menu_item)
6402 (keymap_panes, single_keymap_panes, list_of_panes, list_of_items)
6403 (free_menubar_widget_tree_value, parse_single_submenu)
6404 (update_submenu_strings): Remove functions.
6405 (xmalloc_widget_value): Remove and declare extern.
6406
6407 * makefile.w32-in ($(SRC)/menu.$(O)): New target.
6408 (OBJ1): Build it.
6409
6410 * w32gui.h (widget_value, XtPointer, Boolean, enum button_type)
6411 (local_heap, local_alloc, local_free, malloc_widget_value)
6412 (free_widget_value): Define here.
6413
64142008-06-09 Kenichi Handa <handa@m17n.org>
6415
6416 * font.h (Qascii_0): Extern it.
6417
6418 * font.c (Qascii_0): New variable.
6419 (syms_of_font): DEFSYM it.
6420 (font_open_by_name): If the registry "iso8859-1" fails, try also
6421 "ascii-0".
6422
6423 * ftfont.c (ftfont_spec_pattern): Accept the registry `ascii-0'.
6424
64252008-06-08 Kenichi Handa <handa@m17n.org>
6426
6427 * .gdbinit (xfont): New command.
6428
64292008-06-08 Andreas Schwab <schwab@suse.de>
6430
6431 * menu.c [HAVE_X_WINDOWS]: Include "xterm.h".
6432 * Makefile.in (menu.o): Update dependencies.
6433
6434 * Makefile.in (obj): Always add menu.o.
6435 * emacs.c (main): Always call syms_of_menu.
6436 * keyboard.h: Remove extra #ifdef HAVE_X_WINDOW.
6437
64382008-06-08 Chong Yidong <cyd@stupidchicken.com>
6439
6440 * Makefile.in: Compile menu.c.
6441
6442 * lisp.h: Declare syms_of_menu.
6443
6444 * emacs.c (main): Call syms_of_menu.
6445
6446 * keyboard.h: Relocate platform-independent menu definitions from
6447 xmenu.c.
6448
6449 * menu.c: New file. Relocate platform-independent menu
6450 definitions from xmenu.c. Suggested by Adrian Robert.
6451
6452 * xmenu.c: Remove platform-independent menu definitions.
6453 (menu_items menu_items_inuse, menu_items_allocated)
6454 (menu_items_used, menu_items_n_panes)
6455 (menu_items_submenu_depth): Move to keyboard.h.
6456 (init_menu_items, finish_menu_items, unuse_menu_items)
6457 (discard_menu_items, restore_menu_items, save_menu_items)
6458 (grow_menu_items, push_submenu_start, push_submenu_end)
6459 (push_left_right_boundary, push_menu_pane, push_menu_item)
6460 (keymap_panes, single_keymap_panes, single_menu_item)
6461 (list_of_panes, list_of_items, find_and_call_menu_selection)
6462 (xmalloc_widget_value, free_menubar_widget_value_tree)
6463 (parse_single_submenu, digest_single_submenu)
6464 (update_submenu_strings): Move to menu.c.
6465
64662008-06-07 Stefan Monnier <monnier@iro.umontreal.ca>
6467
6468 * dispnew.c (Flast_nonminibuf_frame): Handle the NULL case.
6469
64702008-06-06 Miles Bader <miles@gnu.org>
6471
6472 * xdisp.c (x_produce_glyphs): Calculate tab width based on current
6473 face, not frame default.
6474
64752008-06-05 Martin Rudalics <rudalics@gmx.at>
6476
6477 * window.c (pop_up_windows, pop_up_frames)
6478 (display_buffer_reuse_frames, Vpop_up_frame_function)
6479 (Vdisplay_buffer_function, Veven_window_heights)
6480 (Vspecial_display_buffer_names, Vspecial_display_regexps)
6481 (Vspecial_display_function, Vsame_window_buffer_names)
6482 (Vsame_window_regexps, split_height_threshold)
6483 (Vsplit_window_preferred_function): Move those vars to window.el.
6484 (display_buffer_1, Fspecial_display_p, Fsame_window_p)
6485 (Fdisplay_buffer): Move those functions to window.el.
6486 (syms_of_window): Remove corresponding declarations.
6487 (display_buffer): New function.
6488 (temp_output_buffer_show, Fother_window_for_scrolling): Use it.
6489 * dispnew.c (Flast_nonminibuf_frame): New function.
6490 * buffer.c (Fpop_to_buffer): Move to window.el.
6491
64922008-06-05 Stefan Monnier <monnier@iro.umontreal.ca>
6493
6494 * data.c (set_internal): Fix up call to let_shadows_buffer_binding_p.
6495
64962008-06-05 Kenichi Handa <handa@m17n.org>
6497
6498 * coding.c (detect_coding): Fix previous change.
6499 (detect_coding_system): Likewise.
6500
65012008-06-05 Stefan Monnier <monnier@iro.umontreal.ca>
6502
6503 * character.h (MAKE_CHAR_MULTIBYTE): Check the arg is a (uni)byte.
6504
6505 * keymap.c (Vminibuffer_local_filename_must_match_map):
6506 Rename from Vminibuffer_local_must_match_filename_map.
6507 (syms_of_keymap):
6508 * minibuf.c (Fcompleting_read): Adjust accordingly.
6509 * commands.h: Rename declaration as well.
6510
65112008-06-05 Kenichi Handa <handa@m17n.org>
6512
6513 * font.c (Ffont_spec): Don't use font_parse_family_registry for
6514 family name.
6515 (Ffont_put): Likewise.
6516
6517 * fontset.c (fontset_find_font): Call font_open_for_lface with the
6518 current font-spec.
6519
6520 * xfont.c (xfont_list): Don't set registry to iso8859-1 even if it
6521 is unspecified.
6522
6523 * xfaces.c (realize_x_face): If the font-related face attributes
6524 are the same as those of default face, realize a new fontset from
6525 default->fontset.
6526 (Fx_family_fonts): Use font_parse_family_registry instead of Ffont_put.
6527
65282008-06-05 Stefan Monnier <monnier@iro.umontreal.ca>
6529
6530 * xdisp.c (move_it_in_display_line_to): Improve the type of its args.
6531 (move_it_in_display_line): New wrapper.
6532
6533 * window.c (window_scroll_pixel_based_preserve_x)
6534 (window_scroll_preserve_hpos, window_scroll_preserve_vpos): New vars.
6535 (window_scroll_pixel_based, window_scroll_line_based):
6536 Use them to preserve column positions.
6537 (syms_of_window): Initialize them.
6538
6539 * indent.c (Fvertical_motion): Extend first arg to allow passing an
6540 (HPOS . VPOS) pair.
6541
6542 * dispextern.h (move_it_in_display_line): Declare.
6543
65442008-06-05 Juanma Barranquero <lekktu@gmail.com>
6545
6546 * window.c (Fwindow_parameter): Return VALUE, not (PARAMETER . VALUE).
6547 (Fwindow_parameters): Return copy of parameter alist. Doc fix.
6548 (Fset_window_parameter): Return VALUE, not parameter alist. Doc fix.
6549
65502008-06-04 Juanma Barranquero <lekktu@gmail.com>
6551
6552 * window.c (Fset_window_parameter): Doc fix.
6553 (Fwindow_parameters, Fwindow_parameter): Remove redundant check.
6554
65552008-06-04 Joakim Verona <joakim@verona.se>
6556
6557 * window.h (struct window): Add new member window_parameters.
6558
6559 * window.c (Fwindow_parameters, Fwindow_parameter)
6560 (Fset_window_parameter): New defuns.
6561 (syms_of_window): Defsubr the new defuns.
6562 (make_window): Initialize window_parameters to nil.
6563
65642008-06-04 John Paul Wallington <jpw@pobox.com>
6565
6566 * eval.c (Fdefmacro): Doc fix.
6567
65682008-06-04 Kenichi Handa <handa@m17n.org>
6569
6570 * coding.c (detect_coding): Fix handling of coding->head_ascii.
6571 Be sure to call setup_coding_system when we find a proper coding system.
6572 (detect_coding_system): Fix handling of coding->head_ascii.
6573
65742008-06-03 Andreas Schwab <schwab@suse.de>
6575
6576 * font.c (font_prop_validate_spacing): Fix last change.
6577
65782008-06-03 Kenichi Handa <handa@m17n.org>
6579
6580 * font.c (font_prop_validate_spacing): Handle uppercase symbols.
6581 (font_parse_fcname): Fix handling of unknown key.
6582
6583 * xfont.c (xfont_list): Try an alias.
6584
6585 * charset.c (char_charset): Return NULL if the arg charset_list is
6586 specified and C doesn't belong to any of them.
6587
65882008-06-02 Chip Coldwell <coldwell@redhat.com>
6589
6590 * font.c (font_pixel_size): Don't take cdr of an integer.
6591
65922008-06-02 Jim Meyering <meyering@redhat.com>
6593
6594 Make "xfree (NULL)" a no-op; remove useless if-before-xfree.
6595 * alloc.c (xfree): Return right away for a NULL arg.
6596 * lread.c (nosuffix): Remove now-useless if-before-xfree tests.
6597 * gtkutil.c (xg_gtk_scroll_destroy): Likewise.
6598 * mac.c (create_apple_event_from_event_ref): Likewise.
6599 (create_apple_event_from_drag_ref, cfstring_create_normalized):
6600 Likewise.
6601 * doprnt.c (doprnt1): Likewise.
6602 * frame.c (frame): Likewise.
6603 * keyboard.c (wipe_kboard): Likewise.
6604 * macterm.c (x_free_frame_resources, xlfdpat_destroy, XFreePixmap)
6605 (init_font_name_table, mac_unload_font, x_delete_display): Likewise.
6606 * term.c (tty_default_color_capabilities, maybe_fatal)
6607 (delete_tty): Likewise.
6608 * w16select.c (string): Likewise.
6609 * w32.c (w32_get_resource, SET_ENV_BUF_SIZE): Likewise.
6610 * w32bdf.c (w32_free_bdf_font): Likewise.
6611 * w32fns.c (w32_unload_font): Likewise.
6612 * w32font.c (w32font_close): Likewise.
6613 * window.c (size_window): Likewise.
6614 * xselect.c (receive_incremental_selection): Likewise.
6615 * xterm.c (x_free_frame_resources, x_delete_display): Likewise.
6616 * mactoolbox.c (create_apple_event_from_drag_ref): Likewise.
6617 * w32.c (stat): Likewise.
6618
6619 Remove useless if-before-free tests.
6620 * editfns.c (Fset_time_zone_rule): Likewise.
6621 * lread.c (nosuffix): Likewise.
6622 * ralloc.c (get_bloc): Likewise.
6623 * regex.c (reg_free): Likewise.
6624 * xftfont.c (xftfont_open, xftfont_close): Likewise.
6625 * xrdb.c (get_user_app, get_environ_db, x_load_resources): Likewise.
6626 * xsmfns.c (smc_save_yourself_CB): Likewise.
6627
66282008-06-02 Kenichi Handa <handa@m17n.org>
6629
6630 * font.c (font_find_for_lface): Handle float font size.
6631 (font_open_for_lface): Likewise.
6632
6633 * xfaces.c (x_supports_face_attributes_p): Check face->font before
6634 comparing the properties.
6635
66362008-06-01 Jason Rumney <jasonr@gnu.org>
6637
6638 * w32font.c (w32_enumfont_pattern_entity): Use requested registry.
6639 Treat iso10646-1 and Windows DEFAULT_CHARSET specially.
6640 Duplicate iso8859-1 fonts as iso10646-1 if no registry specified.
6641 Don't add empty script list.
6642 (w32_registry): Only map DEFAULT_CHARSET to iso10646-1 here.
6643
66442008-06-01 Dan Nicolaescu <dann@ics.uci.edu>
6645
6646 * Makefile.in (dot, dotdot): Remove, update users.
6647 ".." has been used elsewhere in the file for a long time.
6648 (LIBXT_STATIC): Remove conditional based on unused variable.
6649
66502008-06-01 Miles Bader <miles@gnu.org>
6651
6652 * xfaces.c (Vface_remapping_alist): New variable.
6653 (syms_of_xfaces): Initialize it.
6654 (enum named_merge_point_kind): New type.
6655 (struct named_merge_point): Add `named_merge_point_kind' field.
6656 (push_named_merge_point): Make cycle detection respect different
6657 named-merge-point kinds.
6658 (lface_from_face_name_no_resolve): Rename from `lface_from_face_name'.
6659 Remove face-name alias resolution.
6660 (lface_from_face_name): New definition using
6661 `lface_from_face_name_no_resolve'.
6662 (get_lface_attributes_no_remap): Rename from `get_lface_attributes'.
6663 Call lface_from_face_name_no_resolve instead of lface_from_face_name.
6664 (get_lface_attributes): New definition that layers face-remapping on
6665 top of get_lface_attributes_no_remap. New arg `named_merge_points'.
6666 (lookup_basic_face): New function.
6667 (lookup_derived_face): Pass new last arg to `get_lface_attributes'.
6668 (realize_named_face): Call `get_lface_attributes_no_remap' instead of
6669 `get_lface_attributes'.
6670 (face_at_buffer_position): Use `lookup_basic_face' to lookup
6671 DEFAULT_FACE_ID if necessary. When optimizing the default-face case,
6672 return default_face's face-id instead of the constant DEFAULT_FACE_ID.
6673
6674 * xdisp.c (init_iterator): Pass base_face_id through
6675 `lookup_basic_face' when we actually use it as a face-id.
6676 (handle_single_display_prop): Use `lookup_basic_face' to lookup
6677 DEFAULT_FACE_ID.
6678
6679 * fontset.c (Finternal_char_font): Use `lookup_basic_face' to
6680 lookup the initial face-id.
6681
6682 * dispextern.h (lookup_basic_face, Vface_remapping_alist): New decls.
6683
66842008-06-01 Juanma Barranquero <lekktu@gmail.com>
6685
6686 * textprop.c (syms_of_textprop) <text-property-default-nonsticky>:
6687 (Fremove_text_properties): Fix typos in docstrings.
6688
66892008-05-31 Kenichi Handa <handa@m17n.org>
6690
6691 * font.c (font_list_entities): Fix the car part of data to be
6692 stored in the cache.
6693
6694 * ftfont.c (ftfont_font_format): Don't use strcasestr.
6695
66962008-05-30 Stefan Monnier <monnier@iro.umontreal.ca>
6697
6698 * chartab.c (Foptimize_char_table, optimize_sub_char_table):
6699 Add a `test' argument so another predicate than `equal' can be used.
6700 (map_sub_char_table): Use `eq' rather than `equal' to merge ranges.
6701 (map_char_table): Remove unused vars `c' and `i'.
6702 * lisp.h (Foptimize_char_table): Adjust declaration.
6703 * charset.c (Fclear_charset_maps): Adjust call to Foptimize_char_table.
6704
67052008-05-30 Kenichi Handa <handa@m17n.org>
6706
6707 * font.c (Ffont_info): Define only if HAVE_WINDOW_SYSTEM is defined.
6708 (syms_of_font): Defsubr Sfont_info only if HAVE_WINDOW_SYSTEM is
6709 defined.
6710
67112008-05-30 Stefan Monnier <monnier@iro.umontreal.ca>
6712
6713 * data.c (Fmake_variable_buffer_local, Fmake_local_variable)
6714 (Fmake_variable_frame_local): Disallow mixing buffer-local and
6715 frame-local settings for the same variable.
6716
67172008-05-30 Kenichi Handa <handa@m17n.org>
6718
6719 * fontset.c (Ffont_info): Move to font.c.
6720 (syms_of_fontset): Delete defsubr of Sfont_info.
6721
6722 * font.c (font_style_to_value, font_score): Delete casting of the
6723 args to xstcasecmp.
6724 (register_font_driver): Increment num_font_drivers only when
6725 registering the driver globally.
6726 (Ffont_info): Move from fontset.c. Handle a font object too.
6727 (syms_of_font): Defsubr Sfont_info.
6728
67292008-05-29 Kenichi Handa <handa@m17n.org>
6730
6731 * coding.h (enum define_coding_utf8_arg_index): New enum.
6732 (enum coding_attr_index): Change coding_attr_utf_16_bom to
6733 coding_attr_utf_bom.
6734 (enum utf_bom_type): Rename from utf_16_bom_type.
6735 (struct utf_16_spec): Adjust for the above change.
6736 (struct coding_system): Add utf_8_bom in `spec' union.
6737
6738 * coding.c (CODING_UTF_8_BOM): New macro.
6739 (enum coding_category): Delete coding_category_utf_8, add
6740 coding_category_utf_8_auto, coding_category_utf_8_nosig, and
6741 coding_category_utf_8_sig.
6742 (CATEGORY_MASK_UTF_8): Delete it.
6743 (CATEGORY_MASK_UTF_8_AUTO, CATEGORY_MASK_UTF_8_NOSIG)
6744 (CATEGORY_MASK_UTF_8_SIG): New macros.
6745 (CATEGORY_MASK_ANY): Delete CATEGORY_MASK_UTF_8, add
6746 CATEGORY_MASK_UTF_8_AUTO, CATEGORY_MASK_UTF_8_NOSIG, and
6747 CATEGORY_MASK_UTF_8_SIG.
6748 (CATEGORY_MASK_UTF_8): New macro.
6749 (UTF_BOM, UTF_8_BOM_1, UTF_8_BOM_2, UTF_8_BOM_3): New macros.
6750 (detect_coding_utf_8): Check BOM.
6751 (decode_coding_utf_8, encode_coding_utf_8): Handle BOM.
6752 (decode_coding_utf_16): Adjust for the change of enum utf_bom_type.
6753 (encode_coding_utf_16): Likewise.
6754 (setup_coding_system): Likewise. Set CODING_UTF_8_BOM (coding).
6755 (detect_coding, detect_coding_system): Handle utf-8-auto.
6756 (Fdefine_coding_system_internal): Handle `bom' property for utf-8.
6757 (syms_of_coding): Fix setting up of Vcoding_category_table.
6758
67592008-05-29 Stefan Monnier <monnier@iro.umontreal.ca>
6760
6761 * process.c (Faccept_process_output): If `millisec' is non-nil,
6762 `seconds' default to 0.
6763 (wait_reading_process_output): Also return non-nil if we read output
6764 from a non-running process.
6765
67662008-05-29 Jason Rumney <jasonr@gnu.org>
6767
6768 * w32font.c (w32font_open_internal): Prefer truetype fonts unless
6769 `raster' specified.
6770 (add_font_entity_to_list): Allow non-opentype truetype fonts back
6771 in the uniscribe backend, but disallow any font that has no
6772 unicode subrange support.
6773
67742008-05-29 Juanma Barranquero <lekktu@gmail.com>
6775
6776 * xfaces.c (Fx_list_fonts, Finternal_copy_lisp_face):
6777 Fix typos in docstrings.
6778
67792008-05-29 Kenichi Handa <handa@m17n.org>
6780
6781 * xfaces.c (Fx_list_fonts): Make it return a list of font names.
6782 (Fx_family_fonts): Set frame correctly.
6783
67842008-05-28 Jason Rumney <jasonr@gnu.org>
6785
6786 * w32term.c (x_draw_glyph_string): Use clipmask if specified.
6787
67882008-05-28 Stefan Monnier <monnier@iro.umontreal.ca>
6789
6790 * fileio.c (Fwrite_region): Delay the defaulting to beg&z to after
6791 calling build_annotations.
6792
67932008-05-28 Juanma Barranquero <lekktu@gmail.com>
6794
6795 * coding.c (Fdecode_coding_region, Fencode_coding_region)
6796 (Fencode_coding_string):
6797 (syms_of_coding) <coding-system-for-read, coding-system-for-write>:
6798 <latin-extra-code-table>: Fix typos in docstrings.
6799 (syms_of_coding) <coding-system-alist>: Doc fix.
6800 (syms_of_coding) <translation-table-for-input>: Reflow docstring.
6801
68022008-05-28 Kenichi Handa <handa@m17n.org>
6803
6804 * fontset.c (Ffont_info): Don't call font_close_object.
6805
6806 * font.c (font_parse_family_registry): Use Ffont_put to validate
6807 foundry and family.
6808 (font_delete_unmatched): Don't check spacing.
6809 (font_list_entities): Add spacing to the spec to list fonts.
6810
6811 * ftfont.c (ftfont_spec_pattern): Don't set FC_SPACING to pattern.
6812 (ftfont_list): Check spacing here. Don't include FC_CHARSET in objset.
6813
6814 * coding.c (encode_coding_raw_text): Fix previous change.
6815 (encode_coding_object): When the dst_object is a buffer and is
6816 different from src_object, move gap to PT.
6817
68182008-05-27 Chong Yidong <cyd@stupidchicken.com>
6819
6820 * xterm.c (x_draw_glyph_string): If a clipmask is specified, use it.
6821
68222008-05-27 Stefan Monnier <monnier@iro.umontreal.ca>
6823
6824 * coding.c (encode_coding_raw_text): Set coding->produced_char for
6825 all branches. Compute it differently.
6826
6827 * xdisp.c [!HAVE_WINDOW_SYSTEM]: Include font.h for --without-x.
6828
68292008-05-27 Juanma Barranquero <lekktu@gmail.com>
6830
6831 * w32font.c (compute_metrics): Rewrite an "else { if () ... else ... }"
6832 into "else if () ... else ...".
6833
68342008-05-27 Jason Rumney <jasonr@gnu.org>
6835
6836 * w32font.c (w32font_open_internal): Determine if glyph indices
6837 are likely to work here.
6838
68392008-05-27 Chong Yidong <cyd@stupidchicken.com>
6840
6841 * xdisp.c (draw_glyphs): If mouse-highlighting is on, attempt to
6842 draw overlap glyphs with appropriate highlighting.
6843
68442008-05-27 Kenichi Handa <handa@m17n.org>
6845
6846 * xfont.c (xfont_open): Fix calculation of font->average_width.
6847
68482008-05-27 Stefan Monnier <monnier@iro.umontreal.ca>
6849
6850 * casefiddle.c (casify_object): Try to guess better whether the
6851 argument is a byte or a char.
6852
68532008-05-26 Andreas Schwab <schwab@suse.de>
6854
6855 * xselect.c (x_reply_selection_request): Properly handle format == 32.
6856 Always send multiples of format size.
6857
6858 * xterm.c (x_set_frame_alpha): Fix type mismatch.
6859
68602008-05-26 Jason Rumney <jasonr@gnu.org>
6861
6862 * w32font.c (w32font_text_extents): Zero whole metrics struct first.
6863 (compute_metrics): Don't set failure if we just cleared the cache.
6864 (w32_weight_table): Remove unused variable.
6865 (w32_enumfont_pattern_entity): Use FONT_SPACING_CHARCELL for
6866 backwards compatibility.
6867
68682008-05-25 Kenichi Handa <handa@m17n.org>
6869
6870 * w32term.c (x_draw_glyph_string):
6871 * xterm.c (x_draw_glyph_string): Fix calculation of underline position.
6872
6873 * xfaces.c: Delete unused function prototypes.
6874 (xstrlwr, font_frame): Delete them.
6875 (clear_face_cache): Delete unused variable.
6876
6877 * xftfont.c (xftfont_open): Delete unused variable.
6878 If underline_thickness is not 1, adjust underline_position.
6879
6880 * ftxfont.c (ftxfont_open): Delete unused variable.
6881
6882 * fontset.c (face_for_char): Optimize for the case of no charset
6883 property.
6884
6885 * font.c (LGSTRING_HEADER_SIZE, LGSTRING_GLYPH_SIZE)
6886 (check_gstring, check_otf_features, otf_list, otf_tag_symbol)
6887 (otf_open, font_otf_capability, generate_otf_features)
6888 (font_otf_DeviceTable, font_otf_ValueRecord, font_otf_Anchor):
6889 Comment out by surrounding "#if 0" and "#endif" for the moment.
6890 (Ffont_drive_otf, Ffont_otf_alternates): Likewise.
6891 (syms_of_font): Codes for accessing above commented out.
6892
68932008-05-24 Eli Zaretskii <eliz@gnu.org>
6894
6895 * w32proc.c: Include dispextern.h.
6896
6897 * w32.c: Include dispextern.h.
6898
68992008-05-23 Juanma Barranquero <lekktu@gmail.com>
6900
6901 * charset.c (Fencode_char, Fsplit_char): Doc fixes.
6902 (Fget_unused_iso_final_char, Fdecode_char, Fiso_charset):
6903 Fix typos in docstrings.
6904
69052008-05-23 Jason Rumney <jasonr@gnu.org>
6906
6907 * xsmfns.c: Remove includes that are already included by config.h.
6908
69092008-05-23 Kenichi Handa <handa@m17n.org>
6910
6911 * charset.c (Qemacs, charset_emacs): New variables.
6912 (char_charset): Fix for non-Unicode characters.
6913 (syms_of_charset): Define charset_emacs.
6914
6915 * w32term.c (x_draw_glyph_string): Be sure to update
6916 s->underline_thickness and s->underline_position. Be sure to draw
6917 underline within the current line area.
6918
6919 * xterm.c (x_draw_glyph_string): Be sure to update
6920 s->underline_thickness and s->underline_position. Be sure to draw
6921 underline within the current line area.
6922
6923 * fontset.c: Delete unused variables and add casting for char *
6924 throughout the file.
6925 (fontset_font): Try the fallback fonts of the current fontset
6926 before consulting the default fontset.
6927
6928 * ftfont.c (ftfont_spec_pattern): Free charset if necessary.
6929
6930 * xfont.c (xfont_list_pattern): Free names returned from XListFonts.
6931
69322008-05-22 Jason Rumney <jasonr@gnu.org>
6933
6934 * font.c: Don't include strings.h.
6935
6936 * dispextern.h, xfaces.c (xstrcasecmp): Rename from xstricmp.
6937
6938 * dosfns.c, fileio.c, font.c, fontset.c, image.c, macfns.c:
6939 * macterm.c, process.c, w32.c, w32fns.c, w32proc.c, xfaces.c:
6940 * xfns.c, xfont.c: All callers of stricmp and strcasecmp changed
6941 to call xstrcasecmp.
6942
6943 * xfont.c (xfont_list_pattern, compare_font_names): Use xstrcasecmp.
6944
6945 * fontset.c (fs_query_fontset): Use xstrcasecmp.
6946
6947 * font.c (font_style_to_value, font_score): Use xstrcasecmp.
6948
6949 * dosfns.c (msdos_stdcolor_idx): Use xstrcasecmp.
6950
69512008-05-22 Kenichi Handa <handa@m17n.org>
6952
6953 * puresize.h (BASE_PURESIZE): Increase to 1220000.
6954
6955 * font.c (font_prop_validate_style): Adjust for the format
6956 change of font_style_table.
6957
6958 * w32font.c (w32font_open_internal): Call Ffont_xlfd_name with
6959 two args.
6960
6961 * xfaces.c (x_update_menu_appearance): Call Ffont_xlfd_name with
6962 two args.
6963
69642008-05-22 Stefan Monnier <monnier@iro.umontreal.ca>
6965
6966 * minibuf.c (keys_of_minibuf): Delete.
6967 * lisp.h (keys_of_minibuf): Delete.
6968 * emacs.c (main): Don't call keys_of_minibuf.
6969
69702008-05-22 Kenichi Handa <handa@m17n.org>
6971
6972 * ftfont.c (ftfont_resolve_generic_family): Rename from
6973 ftfont_list_generic_family. Return a single family for each
6974 generic family.
6975 (ftfont_spec_pattern): Add FC_FAMILY to pattern.
6976 (ftfont_list): Adjust for the change of ftfont_resolve_generic_family.
6977 Call font_add_log.
6978 (ftfont_match): Call font_add_log.
6979
6980 * font.h (Ffont_xlfd_name): EXFUN adjusted.
6981 (FONT_DEBUG): Define it.
6982 (font_add_log): Extern it.
6983 (font_assert): Rename from xassert.
6984
6985 * xfont.c (xfont_get_pcm): Change xassert to font_assert.
6986 (xfont_list_family): Call font_add_log.
6987 (xfont_match): Likewise.
6988 (memq_no_quit): Delete.
6989
6990 * fontset.c (fontset_from_font, Ffontset_info): Add the 2nd arg in
6991 call of Ffont_xlfd_name.
6992
6993 * xfaces.c (struct table_entry, slant_table, weight_table)
6994 (swidth_table): Move to font.c.
6995
6996 * font.c: Checking of FONT_DEBUG is moved to font.h. All calls of
6997 xassert are changed to font_assert. Delete many unused variables.
6998 (Vfont_weight_table, Vfont_slant_table, Vfont_width_table):
6999 New variables.
7000 (struct table_entry): Move from xfaces.c and modified.
7001 (weight_table, slant_table, width_table): Move from xfaces.c and
7002 contents adjusted for the change of struct table_entry.
7003 (font_style_to_value, font_style_symbolic): Adjust for the
7004 format change of font_style_table.
7005 (font_parse_family_registry): Don't overwrite existing foundry and
7006 family of font_spec.
7007 (font_score): Fix calculation of diff for sizes.
7008 (font_sort_entites): Call font_add_log.
7009 (font_delete_unmatched): Return a newly created list.
7010 (font_list_entities): Fix previous change. Call font_add_log.
7011 (font_matching_entity, font_open_entity, font_close_entity):
7012 Call font_add_log.
7013 (Ffont_xlfd_name): New arg FOLD-WILDCARDS.
7014 (Finternal_set_font_style_table): Delete.
7015 (BUILD_STYLE_TABLE): New macro.
7016 (build_style_table): New function.
7017 (Vfont_log, font_log_env_checked): New variables.
7018 (font_add_log): New function.
7019 (syms_of_font): Delete defsubr Sinternal_set_font_style_table.
7020 Declare Lisp variables "font-weight-table", "font-slant-table",
7021 "font-width-table", and "font-log". Initialize font_style_table.
7022
70232008-05-21 Dan Nicolaescu <dann@ics.uci.edu>
7024
7025 * xterm.c (x_set_frame_alpha): Move declarations before statements.
7026
70272008-05-21 Seiji Zenitani <zenitani@mac.com>
7028 Ryo Yoshitake <ryo@shiftmode.net>
7029
7030 * frame.c (Qalpha): Add a new frame parameter `alpha'.
7031 (Vframe_alpha_lower_limit): New variable.
7032 (x_set_alpha): New function.
7033
7034 * frame.h (Qalpha, Vframe_parameter_lower_limit): Export them.
7035
7036 * xfns.c (x-create-frame, Qalpha):
7037 Initialize the frame parameter `alpha'.
7038 * xterm.c (OPAQUE, OPACITY): New.
7039 (x_set_frame_alpha): New function.
7040 (frame_highlight, frame_unhighlight): Call x_set_frame_alpha.
7041
7042 * macfns.c (mac_frame_parm_handlers): A null handler for x_set_alpha.
7043 * w32fns.c (w32_frame_parm_handlers): Likewise.
7044
70452008-05-20 Jason Rumney <jasonr@gnu.org>
7046
7047 * w32font.c (add_font_entity_to_list): Don't add non-opentype
7048 truetype fonts to opentype list.
7049
70502008-05-20 Juanma Barranquero <lekktu@gmail.com>
7051
7052 * fontset.c (Ffontset_info): Doc fix.
7053 (syms_of_fontset) <font-encoding-charset-alist, use-default-ascent>:
7054 <ignore-relative-composition>: Fix typos in docstrings.
7055
7056 * font.c (syms-of-font) <font-encoding-alist>:
7057 (Ffontp, Ffont_make_gstring): Fix typos in docstrings.
7058 (Flist_fonts, Ffont_family_list, Ffont_fill_gstring, Fquery_font)
7059 (Ffont_otf_alternates): Doc fixes.
7060
70612008-05-20 Kenichi Handa <handa@m17n.org>
7062
7063 * Makefile.in (FONTSRC): Delete it. Change all $(FONTSRC) to
7064 font.h through out the file.
7065 (FONT_DRIVERS): Rename from FONTOBJ.
7066 (obj): Change $(FONTOBJ) to $(FONT_DRIVERS). Add font.o.
7067 (SOME_MACHINE_OBJECTS): Change $(FONTOBJ) to $(FONT_DRIVERS).
7068
7069 * emacs.c (main): Call syms_of_font unconditionally.
7070
7071 * font.h (find_font_encoding): Extern it.
7072
7073 * font.c (Vfont_encoding_alist, find_font_encoding): Move from
7074 fontset.c.
7075 (font_pixel_size)[! HAVE_WINDOW_SYSTEM]: Return 1.
7076 (font_open_entity): Update FRAME_X_DISPLAY_INFO (f)->n_fonts,
7077 FRAME_SMALLEST_CHAR_WIDTH (f), and FRAME_SMALLEST_FONT_HEIGHT (f)
7078 only when HAVE_WINDOW_SYSTEM is defined.
7079 (font_close_object): Update FRAME_X_DISPLAY_INFO (f)->n_fonts only
7080 when HAVE_WINDOW_SYSTEM is defined.
7081
7082 * fontset.c (Vfont_encoding_alist, find_font_encoding): Move to font.c.
7083 (syms_of_fontset): Move declaration of font-encoding-alist to font.c.
7084
7085 * xfaces.c: Include font.h unconditionally.
7086 (merge_face_ref, merge_face_vectors)
7087 (Finternal_set_lisp_face_attribute): Cancel the previous change.
7088
70892008-05-20 Stefan Monnier <monnier@iro.umontreal.ca>
7090
7091 * xdisp.c (select_frame_for_redisplay): Adjust for last change to
7092 indirect_variable.
7093 * eval.c (lisp_indirect_variable): New fun.
7094 (Fuser_variable_p): Use it.
7095
70962008-05-19 Stefan Monnier <monnier@iro.umontreal.ca>
7097
7098 * lisp.h (indirect_variable):
7099 * data.c (indirect_variable, let_shadows_buffer_binding_p):
7100 Use Lisp_Symbol pointers rather than Lisp_Object.
7101 Adjust callers.
7102 * buffer.c (buffer_slot_type_mismatch): Use wrong-type-argument.
7103 To this end, change calling-convention.
7104
7105 * minibuf.c (Finternal_complete_buffer): Only strip out hidden buffers
7106 if some non-hidden buffers are selected by string&pred.
7107
71082008-05-19 Chong Yidong <cyd@stupidchicken.com>
7109
7110 * process.c (wait_reading_process_output): Always check status
7111 when in batch mode.
7112
71132008-05-19 Kenichi Handa <handa@m17n.org>
7114
7115 * font.c (font_list_entities): Fix handling of cache.
7116 (font_matching_entity): Likewise.
7117
7118 * ftfont.c (cs_iso8859_1): Delete.
7119 (ft_face_cache): New variable.
7120 (struct ftfont_info): New member fc_charset_idx.
7121 (ftfont_build_basic_charsets): Delete.
7122 (fc_charset_table): New variable.
7123 (ftfont_pattern_entity): New arg fc_charset_idx. Store (FILENAME
7124 . FC_CHARSET_IDX) as :font-entity property in the font entity.
7125 Callers changed.
7126 (ftfont_lookup_cache, ftfont_get_charset): New functions.
7127 (ftfont_spec_pattern): New argument fc_charset_idx.
7128 Check registry more rigidly. Change callers.
7129 (ftfont_open, ftfont_close, ftfont_has_char): Adjust for the
7130 change of :font-entity property of the font.
7131
7132 * xftfont.c (xftfont_open): Adjust for the change of :font-entity
7133 property of the font.
7134
71352008-05-18 Juanma Barranquero <lekktu@gmail.com>
7136
7137 * coding.c (Fcoding_system_p): Rename argument to match docstring.
7138 (Funencodable_char_position, Fcheck_coding_systems_region)
7139 (Fdecode_coding_string, Fencode_coding_string): Fix typos in docstrings.
7140 (Fdetect_coding_region, Fdetect_coding_string, Fencode_coding_region)
7141 (Ffind_operation_coding_system, Fset_coding_system_priority)
7142 (Fcoding_system_eol_type): Doc fixes.
7143
71442008-05-17 Glenn Morris <rgm@gnu.org>
7145
7146 * sysdep.c (child_setup_tty): Handle systems with NLDLY, without FFDLY.
7147
71482008-05-16 Eli Zaretskii <eliz@gnu.org>
7149
7150 * dired.c (Ffile_attributes): Shut up GCC warnings about st_uid
7151 and st_gid.
7152
7153 * frame.c (Fdelete_frame): Don't call font_update_drivers if
7154 HAVE_WINDOW_SYSTEM is not defined.
7155
7156 * xfaces.c (merge_face_ref, merge_face_vectors)
7157 (Finternal_set_lisp_face_attribute): Use FONT_*_INDEX only when
7158 HAVE_WINDOW_SYSTEM is defined.
7159 (Fface_font): Fix non-HAVE_WINDOW_SYSTEM case.
7160
71612008-05-16 Stefan Monnier <monnier@iro.umontreal.ca>
7162
7163 * keyboard.c (parse_menu_item): Do not cache key shortcut any more.
7164
71652008-05-15 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
7166
7167 * macterm.c (x_draw_relief_rect): Remove unused variable `dpy'.
7168
71692008-05-15 Kenichi Handa <handa@m17n.org>
7170
7171 * font.c (font_find_for_lface): Reflect LFACE_FONT in the font
7172 preference.
7173
71742008-05-15 Glenn Morris <rgm@gnu.org>
7175
7176 * emacs.c (USAGE1, standard_args): Remove -disable-font-backend.
7177
71782008-05-15 Chong Yidong <cyd@stupidchicken.com>
7179
7180 * fns.c (init_fns): Don't initialize weak_hash_tables here.
7181 (init_weak_hash_tables): New fun. Initialize weak_hash_tables.
7182
7183 * alloc.c (init_alloc_once): Call init_weak_hash_tables.
7184
71852008-05-15 Kenichi Handa <handa@m17n.org>
7186
7187 * ftfont.c (ftfont_list): Downcase family name to check generic
7188 families.
7189
7190 * xfaces.c (Finternal_set_lisp_face_attribute): Be sure to make a
7191 font-spec for QCfont value.
7192
7193 * fontset.c (Fnew_fontset): Call font_unparse_xlfd with 256-byte
7194 buffer. Check the return value of it.
7195
71962008-05-14 Jason Rumney <jasonr@gnu.org>
7197
7198 * w32term.c (w32_get_glyph_overhangs): Remove.
7199 (w32_redisplay_interface): Use x_get_glyph_overhangs instead.
7200
72012008-05-14 Kenichi Handa <handa@m17n.org>
7202
7203 * font.c (font_prop_validate): Make nil a valid value.
7204 (font_clear_cache): Check if the cached vector of entities is nil
7205 or not.
7206
72072008-05-14 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
7208
7209 * emacs.c (main_thread): Conditionalize on
7210 FORWARD_SIGNAL_TO_MAIN_THREAD instead of HAVE_GTK_AND_PTHREAD.
7211 (main) [FORWARD_SIGNAL_TO_MAIN_THREAD]: Initialize it.
7212
7213 * syssignal.h (FORWARD_SIGNAL_TO_MAIN_THREAD): New define.
7214 (main_thread, SIGNAL_THREAD_CHECK): Conditionalize on
7215 FORWARD_SIGNAL_TO_MAIN_THREAD instead of HAVE_GTK_AND_PTHREAD.
7216
72172008-05-14 Kenichi Handa <handa@m17n.org>
7218
7219 * coding.c (detect_coding_iso_2022): Ignore a coding category that
7220 has no corresponding coding system.
7221
72222008-05-14 Jason Rumney <jasonr@gnu.org>
7223
7224 * font.h (struct font) [WINDOWSNT]: Remove codepage member.
7225
7226 * w32font.h (w32font_open_internal): Update declaration.
7227
7228 * w32font.c (w32font_open_internal): Change last argument from
7229 w32font_info struct to font object. Fill in font object from
7230 font_entity. Get Outline metrics if possible. Use them to
7231 calculate underline position and thickness. Use xlfd name as name
7232 property. Don't set codepage.
7233 (w32font_open): Pass font_object to w32font_open_internal. Don't
7234 update dpyinfo->smallest_font_height and dpyinfo->smallest_char_width.
7235 (w32font_draw): Use s->font.
7236 (clear_cached_metrics): Don't clear non-existent blocks.
7237
7238 * w32term.c (w32_compute_glyph_string_overhangs): Don't compute if
7239 font was not found.
7240 (x_draw_glyph_string): Use underline position and thickness from font.
7241
7242 * w32uniscribe.c (uniscribe_open): Pass font_object to
7243 w32font_open_internal.
7244
72452008-05-14 Kenichi Handa <handa@m17n.org>
7246
7247 These changes are to delete all legacy font-handling codes, and
7248 make Emacs use only font-backends.
7249
7250 * Makefile.in: Delete USE_FONT_BACKEND conditionals.
7251 (frame.o, image.o, print.o): Depend on $(FONTSRC).
7252
7253 * makefile.w32-in (WIN32OBJ): Add w32reg.$(O), remove w32bdf.$(O).
7254
7255 * charset.h (Vcharset_non_preferred_head)
7256 (Vcurrent_iso639_language): Extern them.
7257
7258 * charset.c (Vcharset_non_preferred_head): New variable.
7259 (Vcurrent_iso639_language): New variable.
7260 (syms_of_charset): Declare it as a Lisp variable.
7261 (char_charset): Don't check non preferred charsets. As a last
7262 resort, return charset_unicode.
7263 (Fset_charset_priority): Update Vcharset_non_preferred_head.
7264
7265 * composite.c: Throughout the file, delete all USE_FONT_BACKEND
7266 conditionals. Don't check enable_font_backend. Delete all codes
7267 used only when USE_FONT_BACKEND is not defined.
7268
7269 * dispextern.h (struct glyph_string): Change type of `font' to
7270 `struct font *'.
7271 (struct glyph_string): New member underline_position and
7272 underline_thickness.
7273 (enum lface_attribute_index): Remove LFACE_AVGWIDTH_INDEX.
7274 (struct face): Change type of `font' to `struct font *'. Remove
7275 members `font_name', `font_info_id'.
7276 (per_char_metric, encode_char): Delete externs.
7277 (calc_pixel_width_or_height): Adjust the prototype.
7278
7279 * emacs.c (enable_font_backend): Delete extern.
7280 (main): Don't set enable_font_backend. Don't check the command
7281 line argument "-disable-font-backend".
7282
7283 * font.h (Qfont_spec, Qfont_entity, Qfont_object): Extern them.
7284 (enum font_property_index): New members FONT_DPI_INDEX,
7285 FONT_SPACING_INDEX, FONT_AVGWIDTH_INDEX, FONT_NAME_INDEX,
7286 FONT_FULLNAME_INDEX, FONT_FILE_INDEX, FONT_FORMAT_INDEX,
7287 FONT_OBJECT_MAX. Delete FONT_FRAME_INDEX.
7288 (FONT_WEIGHT_NUMERIC, FONT_SLANT_NUMERIC, FONT_WIDTH_NUMERIC)
7289 (FONT_WEIGHT_SYMBOLIC, FONT_SLANT_SYMBOLIC, FONT_WIDTH_SYMBOLIC)
7290 (FONT_WEIGHT_FOR_FACE, FONT_SLANT_FOR_FACE, FONT_WIDTH_FOR_FACE)
7291 (FONT_WEIGHT_NAME_NUMERIC, FONT_SLANT_NAME_NUMERIC)
7292 (FONT_WIDTH_NAME_NUMERIC, FONT_SET_STYLE): New macros.
7293 (struct font_spec, struct font_entity): New structs.
7294 (FONT_ENCODING_NOT_DECIDED): Moved from fontset.h.
7295 (struct font): Many members from old "struct font_info" moved to
7296 here. Members font and entity deleted.
7297 (FONT_SPEC_P, FONT_ENTITY_P, FONT_OBJECT_P, FONTP): Modified for
7298 the new font-related objects.
7299 (CHECK_FONT_SPEC, CHECK_FONT_ENTITY, CHECK_FONT_OBJECT)
7300 (CHECK_FONT_GET_OBJECT): Likewise.
7301 (XFONT_SPEC, XFONT_ENTITY, XFONT_OBJECT, XSETFONT): New macros.
7302 (PT_PER_INCH, POINT_TO_PIXEL, PIXEL_TO_POINT): Moved from font.h.
7303 (struct font_driver): New members case_sensitive anc check. Type
7304 of the member list and open changed.
7305 (enable_font_backend, font_symbolic_weight, font_symbolic_slant)
7306 (font_symbolic_width, font_find_object, font_get_spec)
7307 (font_set_lface_from_name): Delete extern.
7308 (Fcopy_font_spec, Fmerge_font_spec, Ffont_family_list): New EXFUNs.
7309
7310 * font.c: Include <strings.h>.
7311 (enable_font_backend): Delete it.
7312 (Qfont_spec, Qfont_entity, Qfont_object): New variables.
7313 (CHECK_VALIDATE_FONT_SPEC): Delete it.
7314 (PT_PER_INCH, POINT_TO_PIXEL, PIXEL_TO_POINT): Moved to font.h.
7315 (null_string): Delete it.
7316 (null_vector): Make it static.
7317 (font_family_alist): Delete it.
7318 (Qnormal): Extern it.
7319 (QCextra, QClanguage): Delete it.
7320 (QClang, QCavgwidth, QCfont_entity, QCfc_unknown_spec): New variables.
7321 (font_make_spec, font_make_entity, font_make_object)
7322 (font_intern_prop): Renamed from intern_downcase. Don't downcase
7323 the string. Callers changed.
7324 (font_pixel_size): Adjusted for the format change of font-related
7325 objects.
7326 (prop_name_to_numeric, prop_numeric_to_name): Delete them.
7327 (font_style_to_value, font_style_symbolic): New function.
7328 (build_font_family_alist): Delete it.
7329 (font_registry_charsets): Use Fassoc_string instead of
7330 assq_no_quit.
7331 (font_prop_validate_symbol): Don't return null_string.
7332 (font_prop_validate_style): Adjusted for the change of
7333 style-related values in a font vector.
7334 (font_property_table): Delete entries for QClanguage and
7335 QCantialias, add entries for QCavgwidth.
7336 (get_font_prop_index): Delete the 2nd argument FROM.
7337 (font_prop_validate): Arguments changed.
7338 (font_put_extra): Adjusted for the change of font-related objects.
7339 (font_expand_wildcards, font_parse_xlfd, font_unparse_xlfd)
7340 (font_parse_fcname, font_unparse_fcname)
7341 (font_prepare_composition): Likewise.
7342 (font_parse_family_registry): Renamed from font_merge_old_spec.
7343 (otf_open): Delete the 1st arg entity.
7344 (font_otf_capability): Adjusted for the above change.
7345 (font_score): New arg alternate_families. Adjusted for the change
7346 of font-related objects.
7347 (font_sort_entites): New arg best_only.
7348 (font_symbolic_weight, font_symbolic_slant, font_symbolic_width):
7349 Delete them.
7350 (font_match_p): Check alternate families.
7351 (font_find_object): Delete it.
7352 (font_check_object): New function.
7353 (font_clear_cache): Adjusted for the change of font-related objects.
7354 (font_delete_unmatched): New arg.
7355 (font_list_entities): Call font_driver->list with a spec that
7356 doesn't specify style-related properties.
7357 (font_matching_entity): Arguments changed. Caller changed.
7358 (font_open_entity): Adjusted for the change of font-related objects.
7359 (font_close_object, font_has_char, font_encode_char)
7360 (font_get_name, font_get_spec): Likewise.
7361 (font_spec_from_name, font_clear_prop, font_update_lface):
7362 New functions.
7363 (font_find_for_lface, font_open_for_lface, font_load_for_lface)
7364 (font_prepare_for_face, font_done_for_face, font_open_by_name)
7365 (font_at): Adjusted for the change of font-related objects.
7366 (font_range): New function.
7367 (Ffontp, Ffont_spec, Ffont_get, Ffont_put, Flist_fonts)
7368 (Ffont_xlfd_name): Adjusted for the change of font-related objects.
7369 (Fcopy_font_spec, Fmerge_font_spec): New function.
7370 (Ffont_family_list): Renamed from list-families.
7371 (Finternal_set_font_style_table): Arguments changed.
7372 (Ffont_fill_gstring, Ffont_shape_text, Fopen_font)
7373 (Ffont_drive_otf, Fquery_font, Ffont_match_p): Adjusted for the
7374 change of font-related objects.
7375 (syms_of_font): Delete "ifdef USE_FONT_BACKEND". DEFSYM new symbols.
7376
7377 * fontset.h (struct font_info): Delete it. Most members go to
7378 struct font.
7379 (FONT_ENCODING_NOT_DECIDED): Moved to font.h.
7380 (enum FONT_SPEC_INDEX): Delete it.
7381 (font_info, list_fonts_func, load_font_func, query_font_func)
7382 (set_frame_fontset_func, find_ccl_program_func)
7383 (get_font_repertory_func, new_fontset_from_font_name): Delete
7384 externs.
7385 (fontset_from_font_name): Extern it.
7386 (FS_LOAD_FONT, FONT_INFO_ID, FONT_INFO_FROM_ID)
7387 (FONT_INFO_FROM_FACE): Deleted.
7388 (face_for_font): Adjust prototype.
7389
7390 * fontset.c: Throughout the file, delete all USE_FONT_BACKEND
7391 conditionals. Don't check enable_font_backend. Delete all codes
7392 used only when USE_FONT_BACKEND is not defined.
7393 (get_font_info_func, list_font_func, load_font_func)
7394 (query_font_func, set_frame_fontset_func, find_ccl_program_func)
7395 (get_font_repertory_func): Delete them.
7396 (FONTSET_SPEC, FONT_DEF_NEW, FONT_DEF_SPEC, FONT_DEF_ENCODING)
7397 (FONT_DEF_REPERTORY, RFONT_DEF_FACE, RFONT_DEF_SET_FACE)
7398 (RFONT_DEF_FONT_DEF, RFONT_DEF_SPEC, RFONT_DEF_REPERTORY)
7399 (RFONT_DEF_OBJECT, RFONT_DEF_SET_OBJECT, RFONT_DEF_SCORE)
7400 (RFONT_DEF_SET_SCORE, RFONT_DEF_NEW): New macros.
7401 (fontset_compare_rfontdef): New function.
7402 (reorder_font_vector): Remove the argument CHARSET-ID. Sort
7403 rfont-defs by qsort. Adjusted for the change of font-group vector.
7404 (load_font_get_repertory): Deleted.
7405 (fontset_find_font): Use new macros to ref/set elements of
7406 font-def and rfont-def.
7407 (fontset_font): Fix the timing of remembering that no font for C.
7408 (free_face_fontset): Do nothing if the face has no fontset.
7409 (face_suitable_for_char_p): Use new macros to ref/set elements of
7410 rfont-def.
7411 (face_for_char): Likewise. Call face_for_char with font_object.
7412 (fs_load_font): Delete. Delete #pragma surrounding it.
7413 (fs_query_fontset): Use strcasecmp instead of strcmp.
7414 (generate_ascii_font_name): Adjusted for the format change of
7415 font-spec.
7416 (Fset_fontset_font): Likewise. Use new macros to set elements of
7417 font-def.
7418 (Fnew_fontset): Use font_unparse_xlfd to generate
7419 FONTSET_ASCII (fontset).
7420 (new_fontset_from_font_name): Deleted.
7421 (fontset_from_font): Renamed from new_fontset_from_font. Check if
7422 a fontset is already created for the font. FIx updating of
7423 Vfontset_alias_alist.
7424 (fontset_ascii_font): Deleted.
7425 (Ffont_info): Adjusted for the format change of font-spec.
7426 (Finternal_char_font): Likewise.
7427 (Ffontset_info): Likewise.
7428 (syms_of_fontset): Don't check load_font_func.
7429
7430 * fns.c (internal_equal): Handle PREV_FONT.
7431
7432 * frame.h: Delete USE_FONT_BACKEND conditional.
7433
7434 * frame.c: Throughout the file, delete all USE_FONT_BACKEND
7435 conditionals. Don't check enable_font_backend. Delete all codes
7436 used only when USE_FONT_BACKEND is not defined.
7437 (x_set_font): Call x_new_font, not x_new_fontset2.
7438 (x_set_font_backend): Use FRAME_FONT macro to check if a font is
7439 already set for the frame.
7440
7441 * ftfont.c (ftfont_pattern_entity): Argument FRAME removed. Make
7442 a font-entity by font_make_entity. Use font_intern_prop instead
7443 of intern_downcase. Use FONT_SET_STYLE to set a style-related
7444 font property. If a font is scalable, set avgwidth property to 0.
7445 Set font-entity property by font_put_extra.
7446 (ftfont_list_generic_family): Argument SPEC and REGISTRY removed.
7447 (ffont_driver): Adjusted for the change of struct font_driver.
7448 (ftfont_spec_pattern): New function.
7449 (ftfont_list): Return a list, not vector.
7450 (ftfont_match): Use ftfont_spec_pattern to get a pattern.
7451 (ftfont_list_family): Don't downcase names.
7452 (ftfont_free_entity): Deleted.
7453 (ftfont_open): Return a font-object. Adjusted for the change of
7454 struct font. Get underline_thickness and underline_position from
7455 font property. Don't update dpyinfo->smallest_font_height and
7456 dpyinfo->smallest_char_width.
7457 (ftfont_close): Don't free `struct font'.
7458 (ftfont_has_char): Adjusted for the format change of font-entity.
7459 (ftfont_encode_char, ftfont_text_extents): Likewise.
7460
7461 * ftxfont.c (ftxfont_list): Return a list, not vector.
7462 (ftxfont_open): Return a font-object. Adjusted for the change of
7463 struct font. Get underline_thickness and underline_position from
7464 font property. Don't update dpyinfo->smallest_font_height and
7465 dpyinfo->smallest_char_width.
7466 (ftxfont_close): Don't decrease FRAME_X_DISPLAY_INFO (f)->n_fonts.
7467 (ftxfont_draw): Adjusted for the change of struct font.
7468
7469 * image.c (image_ascent): Don't include "charset.h". Include
7470 "character.h" and "font.h".
7471
7472 * lisp.h (enum pvec_type): New member PREV_FONT.
7473 (Fassoc_string): EXFUN it.
7474
7475 * print.c: Include font.h.
7476 (print_object): Handle font-related objects.
7477
7478 * xdisp.c: Throughout the file, delete all USE_FONT_BACKEND
7479 conditionals. Don't check enable_font_backend. Delete all codes
7480 used only when USE_FONT_BACKEND is not defined.
7481 (handle_auto_composed_prop): Do nothing if it->f is not on a
7482 window system. Check how many following characters can be
7483 displayed by the same font.
7484 (calc_pixel_width_or_height): Type of the 4th arg is changed to
7485 'struct font *'.
7486 (get_char_face_and_encoding): Assign the whole encoding task to
7487 the `encode-char' method of a font driver.
7488 (fill_composite_glyph_string): Adjusted for the change of `struct
7489 face' and `struct glyph_string'.
7490 (fill_glyph_string): Likewise.
7491 (get_per_char_metric): Arguments changed.
7492 (x_get_glyph_overhangs): Adjusted for the change of `struct face'
7493 and `struct glyph_string'.
7494 (produce_stretch_glyph, calc_line_height_property)
7495 (x_produce_glyphs): Likewise.
7496
7497 * xfaces.c: Throughout the file, delete all USE_FONT_BACKEND
7498 conditionals. Don't check enable_font_backend. Delete all codes
7499 used only when USE_FONT_BACKEND is not defined. Use
7500 FONT_XXX_NAME_NUMERIC instead of face_numeric_xxx.
7501 (QCfoundry, QCadstyle, QCregistry, QCspacing, QCsize, QCavgwidth)
7502 (Qp): Extern them.
7503 (clear_font_table, load_face_font, xlfd_lookup_field_contents):
7504 Deleted.
7505 (struct font_name): Deleted.
7506 (xlfd_numeric_value, xlfd_symbolic_value): Deleted.
7507 (compare_fonts_by_sort_order): New function.
7508 (xlfd_numeric_slant, xlfd_symbolic_slant, xlfd_numeric_weight)
7509 (xlfd_symbolic_weight, xlfd_numeric_swidth, xlfd_symbolic_swidth):
7510 Deleted.
7511 (Fx_family_fonts): Use font_list_entities, and sort fonts by
7512 compare_fonts_by_sort_order.
7513 (Fx_font_family_list): Call Ffont_family_list.
7514 (face_numeric_value, face_numeric_weight, face_numeric_slant)
7515 (face_numeric_swidth, face_symbolic_value, face_symbolic_weight)
7516 (face_symbolic_slant, face_symbolic_swidth)
7517 (split_font_name_into_vector, build_font_name_from_vector)
7518 (xlfd_fixed_p, xlfd_point_size, pixel_point_size)
7519 (font_rescale_ratio, split_font_name, build_font_name)
7520 (free_font_names, sort_fonts, x_face_list_fonts)
7521 (face_font_available_p, sorted_font_list, cmp_font_names)
7522 (font_list_1, concat_font_list, font_list, remove_duplicates):
7523 Deleted.
7524 (Fx_list_fonts): Use Ffont_list.
7525 (LFACE_AVGWIDTH): Deleted.
7526 (check_lface_attrs): Don't check LFACE_AVGWIDTH. Check LFACE_FONT
7527 by FONTP.
7528 (lface_fully_specified_p): Don't check LFACE_AVGWIDTH.
7529 (set_lface_from_font_name): Delete it.
7530 (set_lface_from_font): Renamed from
7531 set_lface_from_font_and_fontset. Caller changed. Don't set
7532 LFACE_AVGWIDTH. Use FONT_XXX_FOR_FACE to get a symbol suitable
7533 for face.
7534 (merge_face_vectors): Copy font-spec if necessary.
7535 Clear properties of the font-spec if necessary.
7536 (merge_face_ref): Clear properties of the font-spec if necessary.
7537 (Finternal_set_lisp_face_attribute): Likewise.
7538 (set_font_frame_param): Use font_load_for_lface to load a
7539 font-object, and call Fmodify_frame_parameters with it.
7540 (x_update_menu_appearance): Don't check LFACE_AVGWIDTH. Get XLFD
7541 font name by Ffont_xlfd_name.
7542 (Finternal_lisp_face_attribute_values): Don't check QCweight,
7543 QCslant, and QCwidth.
7544 (Fface_font): Get a font name from font->props[FONT_NAME_INDEX].
7545 (lface_same_font_attributes_p): Don't check LFACE_AVGWIDTH.
7546 Compare fonts by EQ.
7547 (lookup_non_ascii_face): Deleted.
7548 (face_for_font): The 2nd argument changed.
7549 (x_supports_face_attributes_p): Don't check LFACE_AVGWIDTH.
7550 Check atomic font properties by case insensitive.
7551 (realize_non_ascii_face): Set face->overstrike correctly.
7552 (realize_x_face): Likewise. Check if LFACE_FONT is a font_object.
7553 (dump_realized_face): Get font name from
7554 font->props[FONT_NAME_INDEX]. Don't print font_info_id.
7555
7556 * xfns.c: Throughout the file, delete all USE_FONT_BACKEND
7557 conditionals. Don't check enable_font_backend. Delete all codes
7558 used only when USE_FONT_BACKEND is not defined.
7559 (xic_create_xfontset): Original code deleted and renamed from
7560 xic_create_xfontset2. Use FRAME_FONT, not FRAME_FONT_OBJECT.
7561 (x_make_gc): Don't set GCFont in GCs.
7562 (Fx_create_frame) [USE_LUCID]: Set xlwmenu_default_font to a font
7563 opened by "fixed".
7564 (syms_of_xfns): Don't set get_font_info_func, load_font_func,
7565 find_ccl_program_func, query_font_func, set_frame_fontset_func,
7566 get_font_repertory_func.
7567
7568 * xfont.c: Include <stdlib.h> and "ccl.h".
7569 (struct xfont_info): New structure.
7570 (xfont_query_font): Deleted.
7571 (xfont_find_ccl_program): Renamed from x_find_ccl_program and
7572 moved from xterm.c.
7573 (xfont_driver): Adjusted for the change of struct font_driver.
7574 (compare_font_names): New function.
7575 (xfont_list_pattern): Sort font names case insensitively. Make
7576 font_entity by calling font_make_entity. Avoid auto-scaled fonts.
7577 (xfont_list): Return a list, not vector.
7578 (xfont_match): If the font doesn't have QCname property, generate
7579 a name from the other font properties.
7580 (xfont_open): Return a font-object. Adjusted for the change of
7581 struct font. Get underline_thickness and underline_position from
7582 font property. Don't update dpyinfo->smallest_font_height and
7583 dpyinfo->smallest_char_width.
7584 (xfont_close): Don't free struct font.
7585 (xfont_prepare_face): Adjusted for the change of struct font.
7586 (xfont_done_face): Deleted.
7587 (xfont_has_char): Adjusted for the change of struct font.
7588 (xfont_encode_char, xfont_draw): Likewise.
7589 (xfont_check): New function.
7590
7591 * xftfont.c (xftfont_list): Adjusted for the change of `list'
7592 callback function.
7593 (xftfont_match): Adjusted for the format change of font-entity.
7594 (xftfont_open): Adjusted for the format change of font-entity and
7595 font-object. Adjusted for the change of struct font. Return a
7596 font-object. Don't update dpyinfo->smallest_font_height and
7597 dpyinfo->smallest_char_width.
7598 (xftfont_close): Block input while calling XftFontClose.
7599 (xftfont_prepare_face): Don't block input while calling
7600 xftfont_get_colors. Adjusted for the change of struct font.
7601 (xftfont_shape): Return value of error case fixed.
7602
7603 * xrdb.c (x_load_resources): Don't setup a fontset resource.
7604
7605 * xterm.h: Throughout the file, delete all USE_FONT_BACKEND
7606 conditionals.
7607 (FONT_WIDTH): Return (f)->max_width.
7608 (struct x_display_info): Delete member `font'.
7609 (x_list_fonts, x_get_font_info, x_load_font, x_query_font)
7610 (x_find_ccl_program, x_get_font_repertory): Delete externs.
7611 (struct x_output): Change type of `font' to `struct font *'.
7612
7613 * xterm.c: Throughout the file, delete all USE_FONT_BACKEND
7614 conditionals. Don't check enable_font_backend. Delete all codes
7615 used only when USE_FONT_BACKEND is not defined. Don't include ccl.h.
7616 (x_per_char_metric, x_encode_char): Deleted.
7617 (x_set_cursor_gc, x_set_mouse_face_gc): Don't set GCFont.
7618 (x_compute_glyph_string_overhangs): Adjusted for the change of
7619 `struct face'.
7620 (x_draw_glyph_string_foreground)
7621 (x_draw_composite_glyph_string_foreground): Likewise.
7622 (x_draw_glyph_string): Likewise. Use font->underline_position and
7623 font->underline_thickness.
7624 (x_new_font): Renamed from x_new_fontset2.
7625 (x_new_fontset, x_get_font_info, x_list_fonts): Deleted.
7626 (x_check_font): Call `check' method of a font driver.
7627 (x_font_min_bounds, x_compute_min_glyph_bounds, x_load_font)
7628 (x_query_font, x_get_font_repertory): Deleted.
7629 (x_find_ccl_program): Renamed and moved to xfont.c.
7630 (x_redisplay_interface): Adjusted for the change of `struct
7631 redisplay_interface'.
7632
7633 * w32fns.c: Throughout the file, delete all USE_FONT_BACKEND
7634 conditionals. Don't check enable_font_backend. Delete all codes
7635 used only when USE_FONT_BACKEND is not defined. Surround non-used
7636 code by "#ifdef OLD_FONT" and "endif".
7637 (Fw32_select_font): Use FONT_COMPAT to get old font structure.
7638
7639 * w32font.h (struct w32font_info): New member.
7640 (FONT_COMPAT): New macro.
7641 (w32font_open_internal): Prototype adjusted.
7642
7643 * w32gui.h (XGCValues): Surround `XFontStruct *font' by "if
7644 OLD_FONT" and "endif".
7645
7646 * w32font.c: Throughout the file, delete all USE_FONT_BACKEND
7647 conditionals. Don't check enable_font_backend. Delete all codes
7648 used only when USE_FONT_BACKEND is not defined.
7649 (w32font_open): Return a font-object. Make a font-object by
7650 font_make_object. Adjusted for the change of struct w32font_info.
7651 (w32font_close): Don't free struct font. Adjusted for the change
7652 of struct w32font_info.
7653 (w32font_encode_char, w32font_text_extents, w32font_draw):
7654 Adjusted for the change of struct w32font_info.
7655 (w32font_draw): Likewise.
7656 (w32font_list_internal): Return a list, not vector.
7657 (w32font_open_internal): Change the 4th arg to font-object.
7658 Adjusted for the change of struct w32font_info and font-object format.
7659 (add_font_name_to_list): Don't downcase names.
7660 (w32_enumfont_pattern_entity): Make a font-entity by
7661 font_make_entity. Adjusted for the format change of font-entity.
7662 Use FONT_SET_STYLE to set a style-related font property. If a
7663 font is scalable, set avgwidth property to 0. Set font-entity
7664 property by font_put_extra.
7665 (font_matches_spec): Adjusted for the format change of font-entity.
7666 (w32_weight_table, w32_decode_weight): New variables.
7667 (w32_encode_weight): New function.
7668 (fill_in_logfont): Adjusted for the format change of font-spec.
7669 (w32font_full_name): Use FONT_WEIGHT_SYMBOLIC to get a symbol
7670 weight value.
7671 (w32font_driver): Adjusted for the change of struct font_driver.
7672
7673 * w32term.h: Throughout the file, delete all USE_FONT_BACKEND
7674 conditionals. Don't check enable_font_backend. Surround non-used
7675 code by "#ifdef OLD_FONT" and "endif".
7676 (FONT_WIDTH, FONT_HEIGHT, FONT_BASE, FONT_DESCENT)
7677 (FONT_AVG_WIDTH): Adjusted for the change of struct font.
7678
7679 * w32term.c: Throughout the file, delete all USE_FONT_BACKEND
7680 conditionals. Don't check enable_font_backend. Delete all codes
7681 used only when USE_FONT_BACKEND is not defined. Surround non-used
7682 code by "#ifdef OLD_FONT" and "endif".
7683
7684 * w32uniscribe.c: Delete USE_FONT_BACKEND conditional.
7685 (uniscribe_open): Return value changed to font-object.
7686 Adjusted for the format change of font-object.
7687 (uniscribe_otf_capability): Adjusted for the change of struct font.
7688 (add_opentype_font_name_to_list): Don't downcase names.
7689 (uniscribe_font_driver): Adjusted for the change of struct
7690 font_driver.
7691
76922008-05-13 Chong Yidong <cyd@stupidchicken.com>
7693
7694 * dispnew.c (update_frame_1): Check if tty output is still valid
7695 before flushing it.
7696
76972008-05-13 Jan Djärv <jan.h.d@swipnet.se>
7698
7699 * xterm.c (handle_one_xevent): Don't pass buttons higher than 3
7700 to Gtk+ menus.
7701
77022008-05-13 Stefan Monnier <monnier@iro.umontreal.ca>
7703
7704 * dired.c (file_name_completion): Tweak the code so as to always do it
7705 in a single pass. Tighten the scope of some variables.
7706
7707 * dired.c (Qdefault_directory): New var.
7708 (file_name_completion): Use it instead of Fexpand_file_name.
7709 (syms_of_dired): Initialize it.
7710
77112008-05-12 Stefan Monnier <monnier@iro.umontreal.ca>
7712
7713 * fileio.c (double_dollars): Remove dead code.
7714
77152008-05-10 Eli Zaretskii <eliz@gnu.org>
7716
7717 * dired.c (Ffile_attributes, Fdirectory_files_and_attributes):
7718 Mention w32-get-true-file-attributes in doc string.
7719
7720 * w32proc.c (syms_of_ntproc) <w32-get-true-file-attributes>: Doc fix.
7721
77222008-05-09 Glenn Morris <rgm@gnu.org>
7723
7724 * fileio.c (Fread_file_name): Remove reference to insdef, deleted
7725 2008-04-23.
7726
77272008-05-09 Eli Zaretskii <eliz@gnu.org>
7728
7729 Support for reporting owner and group of each file on MS-Windows:
7730 * dired.c (stat_uname, stat_gname): New functions, with special
7731 implementation for w32.
7732 (Ffile_attributes): Use them instead of getpwuid and getgrgid.
7733
7734 * w32.c: Rename the_passwd_* to dflt_passwd_*.
7735 (dflt_group_name): New static variable.
7736 (dflt_group): Rename from the_group.
7737 (init_user_info): Init dflt_group fields. Get user's group name
7738 from LookupAccountSid.
7739 (g_b_init_get_file_security, g_b_init_get_security_descriptor_owner)
7740 (g_b_init_get_security_descriptor_group, g_b_init_is_valid_sid):
7741 New initialization states.
7742 (globals_of_w32): Initialize them to zero. Initialize the default
7743 group name to "None".
7744 (GetFileSecurity_Name): New global var, the name of the function
7745 to call for GetFileSecurity.
7746 (GetFileSecurity_Proc, GetSecurityDescriptorOwner_Proc)
7747 (GetSecurityDescriptorGroup_Proc, IsValidSid_Proc): New typedefs.
7748 (get_file_security, get_security_descriptor_owner)
7749 (get_security_descriptor_group, is_valid_sid)
7750 (get_file_security_desc, get_rid, get_name_and_id)
7751 (get_file_owner_and_group): New functions.
7752 (stat): Use get_file_security_desc and get_file_owner_and_group to
7753 report the owner and primary group of each file. Don't ignore the
7754 high 32 bits of file's size, now that st_size is 64-bit wide.
7755 Fix test when to get true file attributes.
7756 (init_user_info): Use get_rid instead of equivalent inline code.
7757 (fstat): Don't ignore the high 32 bits of file's size.
7758
77592008-05-09 Chong Yidong <cyd@stupidchicken.com>
7760
7761 * image.c (png_load): Use correct bit-depth for setting background
7762 color.
7763
77642008-05-08 Eli Zaretskii <eliz@gnu.org>
7765
7766 * Makefile.in (lisp, shortlisp): Rename epa-file-hook.elc to
7767 epa-hook.elc.
7768
77692008-05-08 Juanma Barranquero <lekktu@gmail.com>
7770
7771 * font.c (Ffont_match_p): Don't use `iff' in docstring.
7772
77732008-05-07 Dan Nicolaescu <dann@ics.uci.edu>
7774
7775 * macfns.c (Fx_create_frame): Make a copy of frame parameters
7776 because the original parameters are in pure storage now.
7777 (mac_window): Remove unused params. Update callers.
7778
77792008-05-06 Stefan Monnier <monnier@iro.umontreal.ca>
7780
7781 * lread.c (substitute_object_recurse): Use lower-level primitives.
7782 Don't signal errors when traversing sub-char-tables.
7783 Don't loop over all the possible characters when traversing char-tables.
7784
7785 * print.c (print_preprocess): Add sub-char-tables to the print-table,
7786 just like we do in print.c.
7787
77882008-05-05 Stefan Monnier <monnier@iro.umontreal.ca>
7789
7790 * minibuf.c (Ftry_completion): Remove code left over from when we used
7791 scmp instead of Fcompare_strings.
7792
77932008-05-04 Juanma Barranquero <lekktu@gmail.com>
7794
7795 * w32fns.c (Fw32_battery_status): Fix computation of %t (h:min) format.
7796
77972008-05-04 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
7798
7799 * image.c [USE_MAC_IMAGE_IO] (image_load_image_io):
7800 Create bitmap context in native byte order.
7801
7802 * macterm.c (XDrawLine)
7803 (XCreatePixmapFromBitmapData) [USE_MAC_IMAGE_IO]: Create bitmap
7804 context in native byte order.
7805
78062008-05-04 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
7807
7808 * config.in: Regenerate.
7809
7810 * image.c (PIX_MASK_DRAW, PIX_MASK_RETAIN) [USE_MAC_IMAGE_IO]:
7811 New definitions for Image I/O support.
7812 (XGetImage, XPutPixel, XGetPixel, XDestroyImage)
7813 (mac_create_cg_image_from_image, x_create_x_image_and_pixmap)
7814 [USE_MAC_IMAGE_IO]: Add implementations for Image I/O support.
7815 (mac_data_provider_release_data, image_load_image_io)
7816 [USE_MAC_IMAGE_IO]: New functions.
7817 (CGImageCreateWithPNGDataProviderProcType) [MAC_OSX]: Remove typedef.
7818 (MyCGImageCreateWithPNGDataProvider) [MAC_OSX]: Remove variable.
7819 (init_image_func_pointer) [MAC_OSX]: Remove function.
7820 (image_load_quartz2d) [MAC_OSX]: Check availability of
7821 CGImageCreateWithPNGDataProvider at compile time.
7822 Use lowercase `false' for boolean constant.
7823 (png_load, jpeg_load, tiff_load, gif_load) [USE_MAC_IMAGE_IO]:
7824 Use image_load_image_io.
7825 (png_load) [!USE_MAC_IMAGE_IO && MAC_OSX]:
7826 Don't check MyCGImageCreateWithPNGDataProvider.
7827 (init_image) [MAC_OSX && TARGET_API_MAC_CARBON]:
7828 Don't call init_image_func_pointer.
7829
7830 * macgui.h (Pixmap) [USE_MAC_IMAGE_IO]: New definition for Image I/O.
7831
7832 * macterm.c (mac_cg_color_space_rgb) [USE_CG_DRAWING]:
7833 Make variable non-static.
7834 (XDrawLine, XCreatePixmap, XCreatePixmapFromBitmapData, XFreePixmap)
7835 [USE_MAC_IMAGE_IO]: Add implementations for Image I/O support.
7836
7837 * macterm.h (ARGB_TO_ULONG, ALPHA_FROM_ULONG): New macros.
7838 (RED_FROM_ULONG): Mask off higher bits.
7839 (mac_cg_color_space_rgb) [USE_MAC_IMAGE_IO]: New extern.
7840
7841 * s/darwin.h [HAVE_CARBON && HAVE_AVAILABILITYMACROS_H]:
7842 Include AvailabilityMacros.h.
7843 (USE_MAC_IMAGE_IO, LIBS_IMAGE) [HAVE_CARBON]: New defines.
7844 (LIBS_CARBON) [HAVE_CARBON]: Use LIBS_IMAGE.
7845
78462008-05-03 Stefan Monnier <monnier@iro.umontreal.ca>
7847
7848 * chartab.c (Fset_char_table_range): If range is t, really set all
7849 chars to that value.
7850
78512008-05-03 Eli Zaretskii <eliz@gnu.org>
7852
7853 * dired.c (Ffile_attributes): Don't allow the device number become
7854 negative.
7855
78562008-05-02 Daiki Ueno <ueno@unixuser.org>
7857
7858 * Makefile.in (lisp, shortlisp): Add epa-file-hook.elc.
7859
78602008-05-02 Juri Linkov <juri@jurta.org>
7861
7862 * minibuf.c (Fread_from_minibuffer, Fread_string, Fread_command)
7863 (Fread_variable, Fread_buffer, Fcompleting_read): Document the
7864 DEFAULT argument as a list of default values in docstrings.
7865
78662008-05-01 Chong Yidong <cyd@stupidchicken.com>
7867
7868 * puresize.h (BASE_PURESIZE): Increase to 1210000.
7869
78702008-05-01 Martin Rudalics <rudalics@gmx.at>
7871
7872 * dispnew.c (change_frame_size_1): Preserve small windows when
7873 shrinking frames by calling set_window_height|width with third
7874 arg 2.
7875
7876 * window.h (struct window): Replace field too_small_ok by field
7877 resize_proportionally.
7878
7879 * window.c (make_window): Initialize resize_proportionally.
7880 (enlarge_window): Temporarily set resize_proportionally to make
7881 sure that shrink_windows does scale the window proportionally.
7882 (shrink_windows): When window has resize_proportionally set try
7883 to shrink it proportionally by stealing from other windows.
7884 (struct saved_window, Fset_window_configuration)
7885 (compare_window_configurations): Handle resize_proportionally.
7886 (WINDOW_TOTAL_SIZE): New macro.
7887 (window_min_size, shrink_windows, size_window): Use it.
7888 (check_min_window_sizes): Remove. Invalid values of
7889 window-min-height|width are handled by window_min_size_2 now.
7890 (size_window, Fsplit_window, enlarge_window)
7891 (adjust_window_trailing_edge, grow_mini_window): Don't call
7892 check_min_window_sizes.
7893 (window_min_size_2, window_min_size_1, window_min_size):
7894 New argument safe_p for retrieving "safe" minimum sizes.
7895 (Fdisplay_buffer, Fsplit_window, enlarge_window)
7896 (adjust_window_trailing_edge, grow_mini_window):
7897 Adjust arguments of window_min_size... functions.
7898 (shrink_windows): Argument min_size removed. New argument
7899 safe_p allows shrinking windows to their safe minimum sizes.
7900 Calculate minimum size and decide whether a window shall be
7901 deleted for each window individually.
7902 (size_window): When nodelete_p equals 2, tell shrink_windows to
7903 delete windows only if their new minimum size is no more safe.
7904 (shrink_window_lowest_first): Call window_min_size_1 to make
7905 sure to preserve modeline of bottom-most window when resizing
7906 the minibuffer.
7907 (Fset_window_configuration, Fcurrent_window_configuration)
7908 (compare_window_configurations): Do not handle
7909 window-min-height|width any more.
7910 (syms_of_window): Clarify window-min-height|width doc-strings.
7911
79122008-04-30 Stefan Monnier <monnier@iro.umontreal.ca>
7913
7914 * dired.c (file_name_completion): Fix up the encoding/decoding issue
7915 some more. Copy some of the code from Ftry_completions.
7916 Remove special case code that dates back to initial revision when the
7917 slash was only added when necessary and that can't trigger nowadays.
7918
79192008-04-27 Kenichi Handa <handa@m17n.org>
7920
7921 * font.c (font_prop_validate): Signal `error' instead of `font'.
7922
79232008-04-29 Jason Rumney <jasonr@gnu.org>
7924
7925 * w32fns.c (Fw32_battery_status): New defun.
7926 (syms_of_w32fns): Defsubr it.
7927
79282008-04-28 Andreas Schwab <schwab@suse.de>
7929
7930 * dired.c (file_name_completion): Fix another mixing of encoded
7931 and decoded names.
7932
79332008-04-28 Juanma Barranquero <lekktu@gmail.com>
7934
7935 * w32fns.c (Fw32_define_rgb_color): Fix typo in docstring.
7936
79372008-04-27 Juanma Barranquero <lekktu@gmail.com>
7938
7939 * fringe.c (Fdefine_fringe_bitmap): Doc fix.
7940
79412008-04-27 Andreas Schwab <schwab@suse.de>
7942
7943 * dired.c (file_name_completion): Fix inappropriate mixing of
7944 encoded and decoded names.
7945
7946 * xterm.c (XTread_socket): Fix use of uninitialized variable.
7947
7948 * puresize.h (BASE_PURESIZE): Increase to 1200000.
7949
79502008-04-26 Eli Zaretskii <eliz@gnu.org>
7951
7952 * dired.c (Ffile_attributes) [WINDOWSNT]: Undo change from
7953 2008-03-31, it's not needed anymore with `struct stat' definition
7954 on nt/inc/sys/stat.h. Undo changes from 2007-01-12 and 2007-01-13
7955 for the same reasons.
7956
79572008-04-25 Dennis Gilmore <ausil@fedoraproject.org> (tiny change)
7958
7959 * m/sparc.h: Additional redefinitions for GNU/Linux.
7960
79612008-04-23 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
7962
7963 * macterm.c (Vmac_ts_active_input_buf) [USE_MAC_TSM]: New variable.
7964 (syms_of_macterm) [USE_MAC_TSM]: Defvar it.
7965 (Qmouse_drag_overlay) [MAC_OSX]: New variable.
7966 (syms_of_macterm) [MAC_OSX]: Intern and staticpro it.
7967 (mac_get_selected_range, mac_store_buffer_text_to_unicode_chars)
7968 (mac_ax_selected_text_range) [MAC_OSX]: New functions.
7969 (mac_ax_number_of_characters) [MAC_OS_X_VERSION_MAX_ALLOWED >= 1030]:
7970 Likewise.
7971
7972 * mactoolbox.c (Vmac_ts_active_input_buf) [USE_MAC_TSM]: Add extern.
7973 (fast_find_position, x_y_to_hpos_vpos, mac_ax_selected_text_range)
7974 (mac_ax_number_of_characters): Add externs.
7975 (mac_get_selected_range, mac_store_buffer_text_to_unicode_chars)
7976 [USE_MAC_TSM]: Likewise.
7977 (mac_handle_text_input_event) [MAC_OSX]:
7978 Handle kEventTextInputOffsetToPos for no active input area case.
7979 Handle kEventTextInputPosToOffset and kEventTextInputGetSelectedText.
7980 (mac_handle_document_access_event)
7981 [MAC_OS_X_VERSION_MAX_ALLOWED >= 1030]: New function.
7982 (install_application_handler) [MAC_OSX]: Register handlers for
7983 kEventTextInputPosToOffset and kEventTextInputGetSelectedText.
7984 (install_application_handler) [MAC_OS_X_VERSION_MAX_ALLOWED >= 1030]:
7985 Register mac_handle_document_access_event.
7986
7987 * xdisp.c (x_y_to_hpos_vpos, fast_find_position) [HAVE_CARBON]:
7988 Make functions non-static.
7989
79902008-04-23 Stefan Monnier <monnier@iro.umontreal.ca>
7991
7992 * fileio.c (Vread_file_name_function, Vread_file_name_predicate)
7993 (read_file_name_completion_ignore_case, insert_default_directory)
7994 (Qdefault_directory): Move to minibuffer.el.
7995 (Fread_file_name): Call the new `read-file-name' instead.
7996
79972008-04-23 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
7998
7999 * mac.c (create_apple_event) [TARGET_API_MAC_CARBON]:
8000 Make function non-static.
8001 (create_apple_event_from_event_ref) [TARGET_API_MAC_CARBON]:
8002 Remove function.
8003 (create_apple_event_from_drag_ref) [TARGET_API_MAC_CARBON]:
8004 Move to mactoolbox.c.
8005 (mac_event_parameters_to_lisp) [TARGET_API_MAC_CARBON]: New function.
8006
8007 * macgui.h (CGFloat) [!CGFLOAT_DEFINED]: New typedef.
8008 (mac_rect_make): New macro.
8009
8010 * macterm.c (mac_draw_image_string_atsui) [MAC_OSX]: Use CGFloat
8011 instead of float.
8012 (mac_draw_image_string_cg) [USE_CG_TEXT_DRAWING]: Likewise.
8013 (init_cg_color, mac_draw_line, mac_draw_cg_image, XSetForeground)
8014 (XSetBackground) [USE_CG_DRAWING]: Likewise.
8015 (mac_draw_image_string_atsui) [MAC_OSX]: Use mac_rect_make instead of
8016 CGRectMake.
8017 (mac_draw_image_string_cg) [USE_CG_TEXT_DRAWING]: Likewise.
8018 (mac_erase_rectangle, mac_draw_cg_image, mac_fill_rectangle)
8019 (mac_set_clip_rectangles) [USE_CG_DRAWING]: Likewise.
8020 (XCreatePixmap, XCreatePixmapFromBitmapData): Use Window
8021 instead of WindowRef in argument type.
8022 (XCreatePixmap) [!MAC_OS8]: Don't call SetPortWindowPort.
8023 (mac_invert_rectangle): Use CGContextSetBlendMode if available.
8024 (mac_set_clip_rectangles, mac_reset_clip_rectangles): Take argument F
8025 instead of DISPLAY. All uses changed.
8026 (mac_handle_size_change): Don't call SET_FRAME_GARBAGED.
8027 (x_calc_absolute_position): Simplify so as not to use
8028 FRAME_PIXEL_WIDTH/FRAME_PIXEL_HEIGHT.
8029
8030 * macterm.h (XCreatePixmap, XCreatePixmapFromBitmapData): Use Window
8031 instead of WindowRef in argument type.
8032 (create_apple_event_from_event_ref, create_apple_event_from_drag_ref)
8033 [TARGET_API_MAC_CARBON]: Remove externs.
8034 (create_apple_event, mac_event_parameters_to_lisp)
8035 [TARGET_API_MAC_CARBON]: Add externs.
8036
8037 * mactoolbox.c (Vmac_ts_script_language_on_focus)
8038 (saved_ts_script_language_on_focus) [USE_MAC_TSM]: Remove externs.
8039 (XTread_socket) [USE_MAC_TOOLBAR]: Select window if its structure part
8040 is clicked.
8041 (x_activate_menubar): Remove extern for saved_menu_event_location.
8042 (create_apple_event_from_drag_ref) [TARGET_API_MAC_CARBON]:
8043 Move from mac.c.
8044
80452008-04-23 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
8046
8047 * alloc.c [!SYSTEM_MALLOC && !SYNC_INPUT] (uninterrupt_malloc)
8048 [HAVE_GTK_AND_PTHREAD && !DOUG_LEA_MALLOC]: Don't use recursive mutex.
8049
80502008-04-23 Jason Rumney <jasonr@gnu.org>
8051
8052 * w32.c (stat): When Vw32_get_true_file_attributes is Qlocal, get
8053 attributes only for local files.
8054
8055 * w32proc.c (syms_of_ntproc): Change Vw32_get_true_file attributes
8056 default to Qlocal.
8057
80582008-04-22 Juri Linkov <juri@jurta.org>
8059
8060 * buffer.c (Fswitch_to_buffer): Change interactive spec to call
8061 read-buffer-to-switch instead of using the letter "B".
8062
80632008-04-21 Stefan Monnier <monnier@iro.umontreal.ca>
8064
8065 * fileio.c (Qdefault_directory): New variable.
8066 (Fread_file_name): Use it to pass `dir' to the completion functions.
8067
80682008-04-20 Chong Yidong <cyd@stupidchicken.com>
8069
8070 * xdisp.c (pos_visible_p): Check if iterator stops on a display string.
8071
80722008-04-19 Stefan Monnier <monnier@iro.umontreal.ca>
8073
8074 * keyboard.c (Vpre_help_message): Remove.
8075 (show_help_echo): Remove default C code.
8076
8077 * dired.c (directory_files_internal, file_name_completion):
8078 Only call ENCODE_FILE if the string is indeed decoded.
8079
80802008-04-18 Stefan Monnier <monnier@iro.umontreal.ca>
8081
8082 * Makefile.in (TOOLKIT_DEFINES): Remove.
8083 (LIBW): Use a bit less #if, remove left over OPEN_LOOK stuff.
8084
80852008-04-18 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
8086
8087 * Makefile.in (MAC_OBJ): Add mactoolbox.o.
8088 (mactoolbox.o): New target.
8089
8090 * mac.c [MAC_OSX] (select_and_poll_event, sys_select):
8091 Use mac_run_loop_run_once instead of CFRunLoopRunInMode.
8092
8093 * macfns.c (x_set_background_color, mac_window, x_create_tip_frame):
8094 Use mac_set_frame_window_background instead of XSetWindowBackground.
8095 (x_set_tool_bar_lines) [USE_MAC_TOOLBAR]:
8096 Use mac_is_window_toolbar_visible instead of IsWindowToolbarVisible.
8097 (x_set_name_internal) [TARGET_API_MAC_CARBON]: Use mac_set_window_title
8098 instead of SetWindowTitleWithCFString.
8099 (mac_update_proxy_icon) [TARGET_API_MAC_CARBON]: Remove BLOCK_INPUT.
8100 Move function to mactoolbox.c.
8101 (mac_update_title_bar) [TARGET_API_MAC_CARBON]:
8102 Use mac_set_window_modified instead of SetWindowModified.
8103 Add BLOCK_INPUT around mac_set_window_modified/mac_update_proxy_icon.
8104 (mac_window, x_create_tip_frame): Use mac_create_frame_window.
8105 (Fx_focus_frame): Use mac_front_non_floating_window instead of
8106 FrontNonFloatingWindow. Use mac_activate_window instead of
8107 ActivateWindow. Use mac_active_non_floating_window instead of
8108 ActiveNonFloatingWindow.
8109 (show_hourglass, hide_hourglass) [TARGET_API_MAC_CARBON]:
8110 Use mac_show_hourglass and mac_hide_hourglass.
8111 (compute_tip_xy) [TARGET_API_MAC_CARBON]: Use mac_get_global_mouse
8112 instead of GetGlobalMouse.
8113 (Fx_show_tip): Use mac_move_window/mac_size_window/mac_show_window
8114 instead of MoveWindow/SizeWindow/ShowWindow, respectively.
8115 Use mac_bring_window_to_front instead of BringToFront.
8116 (Qfile_name_history) [TARGET_API_MAC_CARBON]: Move extern to
8117 mactoolbox.c.
8118 (Fx_file_dialog) [TARGET_API_MAC_CARBON]: Move function body to
8119 mac_file_dialog in mactoolbox.c. Use mac_file_dialog.
8120 (mac_nav_event_callback) [TARGET_API_MAC_CARBON]: Move function to
8121 mactoolbox.c.
8122
8123 * macgui.h [!HAVE_CARBON]: Include Quickdraw.h instead of QuickDraw.h.
8124 (XtPointer): Move typedef from macmenu.c.
8125 (enum button_type): Move enum from macmenu.c.
8126 (widget_value): Move typedef from macmenu.c.
8127 (M_APPLE, I_ABOUT, EXTRA_STACK_ALLOC, ARGV_STRING_LIST_ID)
8128 (DIALOG_LEFT_MARGIN, DIALOG_TOP_MARGIN, DIALOG_RIGHT_MARGIN)
8129 (DIALOG_BOTTOM_MARGIN, DIALOG_MIN_INNER_WIDTH, DIALOG_MAX_INNER_WIDTH)
8130 (DIALOG_BUTTON_BUTTON_HORIZONTAL_SPACE)
8131 (DIALOG_BUTTON_BUTTON_VERTICAL_SPACE, DIALOG_BUTTON_MIN_WIDTH)
8132 (DIALOG_TEXT_MIN_HEIGHT, DIALOG_TEXT_BUTTONS_VERTICAL_SPACE)
8133 (DIALOG_ICON_WIDTH, DIALOG_ICON_HEIGHT, DIALOG_ICON_LEFT_MARGIN)
8134 (DIALOG_ICON_TOP_MARGIN): Move defines from macmenu.c.
8135 (Selection): Move typedef from macselect.c.
8136 (RAM_TOO_LARGE_ALERT_ID, ABOUT_ALERT_ID) [MAC_OS8]: Move defines from
8137 macterm.c.
8138 (mac_set_window_title, mac_set_window_modified, mac_is_window_visible)
8139 (mac_is_window_collapsed, mac_bring_window_to_front)
8140 (mac_send_window_behind, mac_hide_window, mac_show_window)
8141 (mac_collapse_window, mac_front_non_floating_window)
8142 (mac_active_non_floating_window, mac_activate_window)
8143 (mac_move_window_structure, mac_move_window, mac_size_window)
8144 (mac_get_global_mouse, mac_is_window_toolbar_visible): New defines.
8145
8146 * macmenu.c [!TARGET_API_MAC_CARBON]: Move includes to mactoolbox.c.
8147 (enum mac_menu_kind): Move enum to mactoolbox.c.
8148 (min_menu_id): Move variable to mactoolbox.c.
8149 (quit_dialog_event_loop) [TARGET_API_MAC_CARBON]: Likewise.
8150 (DIALOG_WINDOW_RESOURCE): Move define to mactoolbox.c.
8151 (DIALOG_BUTTON_COMMAND_ID_OFFSET, DIALOG_BUTTON_COMMAND_ID_P)
8152 (DIALOG_BUTTON_COMMAND_ID_VALUE, DIALOG_BUTTON_MAKE_COMMAND_ID)
8153 [TARGET_API_MAC_CARBON]: Likewise.
8154 (XtPointer): Move typedef to macgui.h.
8155 (enum button_type): Move enum to macgui.h.
8156 (widget_value): Move typedef to macgui.h.
8157 (DIALOG_LEFT_MARGIN, DIALOG_TOP_MARGIN, DIALOG_RIGHT_MARGIN)
8158 (DIALOG_BOTTOM_MARGIN, DIALOG_MIN_INNER_WIDTH, DIALOG_MAX_INNER_WIDTH)
8159 (DIALOG_BUTTON_BUTTON_HORIZONTAL_SPACE)
8160 (DIALOG_BUTTON_BUTTON_VERTICAL_SPACE, DIALOG_BUTTON_MIN_WIDTH)
8161 (DIALOG_TEXT_MIN_HEIGHT, DIALOG_TEXT_BUTTONS_VERTICAL_SPACE)
8162 (DIALOG_ICON_WIDTH, DIALOG_ICON_HEIGHT, DIALOG_ICON_LEFT_MARGIN)
8163 (DIALOG_ICON_TOP_MARGIN): Move defines to macgui.h.
8164 (popup_activated_flag): Make variable non-static.
8165 (x_activate_menubar, install_menu_quit_handler, pop_down_menu)
8166 (add_menu_item, fill_menu, dispose_menus):
8167 Move functions to mactoolbox.c.
8168 (restore_show_help_function, menu_target_item_handler)
8169 (install_menu_target_item_handler, mac_handle_dialog_event)
8170 (install_dialog_event_handler, pop_down_dialog, create_and_show_dialog)
8171 [TARGET_API_MAC_CARBON]: Likewise.
8172 (menu_quit_handler) [MAC_OS_X_VERSION_MAX_ALLOWED >= 1030]: Likewise.
8173 (mac_dialog) [!TARGET_API_MAC_CARBON]: Likewise.
8174 (find_and_call_menu_selection, name_is_separator): Make function
8175 non-static.
8176 (Vshow_help_function, timer_check) [TARGET_API_MAC_CARBON]: Move extern
8177 to mactoolbox.c.
8178 (set_frame_menubar): Don't call install_menu_quit_handler.
8179 (menu_item_selection): New variable.
8180 (mac_menu_show): Use create_and_show_popup_menu.
8181 (create_and_show_dialog) [TARGET_API_MAC_CARBON]: Don't return
8182 selection but set variable menu_item_selection. All uses changed.
8183 (mac_fill_menubar): Rename from fill_menubar. All uses changed.
8184 Call install_menu_quit_handler. Move to mactoolbox.c.
8185
8186 * macselect.c [!TARGET_API_MAC_CARBON]: Don't include Scrap.h.
8187 (Selection): Move typedef to macgui.h.
8188 (Vselection_converter_alist, Qmac_scrap_name, Qmac_ostype)
8189 (Vmac_apple_event_map, Qmac_apple_event_class, Qmac_apple_event_id):
8190 Make variables non-static.
8191 (Vmac_dnd_known_types) [TARGET_API_MAC_CARBON]: Likewise.
8192 (mac_handle_apple_event, cleanup_all_suspended_apple_events):
8193 Make functions non-static.
8194 (Vmac_service_selection) [MAC_OSX]: Likewise.
8195 (mac_get_selection_from_symbol, get_flavor_type_from_symbol)
8196 (mac_valid_selection_target_p, mac_clear_selection)
8197 (mac_get_selection_ownership_info, mac_valid_selection_value_p)
8198 (mac_put_selection_value, mac_selection_has_target_p)
8199 (mac_get_selection_value, mac_get_selection_target_list)
8200 (init_apple_event_handler, install_drag_handler, remove_drag_handler):
8201 Move functions to mactoolbox.c.
8202 (mac_do_track_drag, mac_do_receive_drag) [TARGET_API_MAC_CARBON]:
8203 Likewise.
8204 (copy_scrap_flavor_data, mac_handle_service_event)
8205 (install_service_handler) [MAC_OSX]: Likewise.
8206 (syms_of_macselect) <Vmac_dnd_known_types>:
8207 Use mac_dnd_default_known_types.
8208
8209 * macterm.h (FRAME_OUTER_TO_INNER_DIFF_X, FRAME_OUTER_TO_INNER_DIFF_Y):
8210 Move to mactoolbox.c.
8211 (HOURGLASS_WIDTH, HOURGLASS_HEIGHT): Change to 15.
8212 (Fx_selection_owner_p): Add EXFUN.
8213 (install_window_handler, remove_window_handler, XSetWindowBackground):
8214 Remove externs.
8215 (do_apple_menu) [!TARGET_API_MAC_CARBON]: Likewise.
8216 (mac_prepare_for_quickdraw) [USE_CG_DRAWING]: Likewise.
8217 (x_raise_frame, x_lower_frame, mac_alert_sound_play)
8218 (install_application_handler, mac_get_frame_bounds, mac_get_frame_mouse)
8219 (mac_convert_frame_point_to_global, mac_set_frame_window_background)
8220 (mac_update_begin mac_update_end, mac_frame_up_to_date, x_flush)
8221 (mac_create_frame_window, mac_dispose_frame_window, mac_begin_clip)
8222 (mac_end_clip, mac_create_scroll_bar, mac_dispose_scroll_bar)
8223 (mac_set_scroll_bar_bounds, mac_redraw_scroll_bar, mac_fill_menubar)
8224 (create_and_show_popup_menu, mac_get_selection_from_symbol)
8225 (mac_valid_selection_target_p, mac_clear_selection)
8226 (mac_get_selection_ownership_info, mac_valid_selection_value_p)
8227 (mac_put_selection_value, mac_selection_has_target_p)
8228 (mac_get_selection_value, mac_get_selection_target_list): Add externs.
8229 (mac_update_proxy_icon, mac_show_hourglass, mac_hide_hourglass)
8230 (mac_reposition_hourglass, mac_file_dialog, create_and_show_dialog)
8231 (mac_dnd_default_known_types) [TARGET_API_MAC_CARBON]: Likewise.
8232 (mac_run_loop_run_once) [MAC_OSX]: Likewise.
8233 (mac_dialog) [!TARGET_API_MAC_CARBON]: Likewise.
8234 (mac_begin_cg_clip, mac_end_cg_clip) [USE_CG_DRAWING]: Likewise.
8235 (x_set_toolkit_scroll_bar_thumb) [!USE_TOOLKIT_SCROLL_BARS]: Likewise.
8236 (x_scroll_bar_set_handle) [!USE_TOOLKIT_SCROLL_BARS]: Likewise.
8237
8238 * mactoolbox.c: New file.
8239
82402008-04-18 Jason Rumney <jasonr@gnu.org>
8241
8242 * dired.c (Ffile_attributes) [WINDOWSNT]: Cast uid and gid to unsigned.
8243
82442008-04-18 Stefan Monnier <monnier@iro.umontreal.ca>
8245
8246 * character.c (Fmultibyte_char_to_unibyte):
8247 Return latin1 chars unchanged.
8248
8249 * fileio.c (Fexpand_file_name): Refine last fix so `nm' is only
8250 relocated if it points to `name'.
8251
82522008-04-17 Kenichi Handa <handa@m17n.org>
8253
8254 * data.c (Faset): Allow setting a multibyte character in an
8255 ASCII-only unibyte string.
8256
8257 * lisp.h (STRING_SET_MULTIBYTE): New macro.
8258
82592008-04-16 Stefan Monnier <monnier@iro.umontreal.ca>
8260
8261 * Makefile.in: Don't use HAVE_GTK and don't -DUSE_GTK since it's now
8262 done in config.h.
8263
82642008-04-16 Juanma Barranquero <lekktu@gmail.com>
8265
8266 * character.c (Fchar_bytes, Fchar_width, Fstring_width)
8267 (Fchar_direction): Add usage in the docstring.
8268
82692008-04-15 Chong Yidong <cyd@stupidchicken.com>
8270
8271 * keyboard.c (read_key_sequence): Remove always-true checks.
8272
82732008-04-14 Jason Rumney <jasonr@gnu.org>
8274
8275 * w32font.c (w32font_open_internal): Set max_bounds.descent in
8276 compatibility struct, for better underline positioning.
8277
82782008-04-13 David Hansen <david.hansen@gmx.net>
8279
8280 * dbusbind.c (dbus-get-unique-name): Remove extra copying of name
8281 string.
8282
82832008-04-12 Dan Nicolaescu <dann@ics.uci.edu>
8284
8285 * m/hp800.h (XUINT, XSET): Remove.
8286
82872008-04-12 Juanma Barranquero <lekktu@gmail.com>
8288
8289 * fileio.c (Fexpand_file_name): Add declaration for `p' missing in
8290 previous change.
8291
82922008-04-12 Stefan Monnier <monnier@iro.umontreal.ca>
8293
8294 * fileio.c (Fexpand_file_name): Tighten the scope of `p' and `o' vars.
8295 Relocate `nm' after calling DECODE_FILE, in case the GC was run.
8296
82972008-04-11 Stefan Monnier <monnier@iro.umontreal.ca>
8298
8299 * keymap.h (map_keymap_canonical): Declare.
8300 * xmenu.c (single_keymap_panes): Use it.
8301
83022008-04-11 Glenn Morris <rgm@gnu.org>
8303
8304 * eval.c (Fdefvaralias): If the alias is bound and the target is not,
8305 set the target's value to that of the alias.
8306
83072008-04-11 Stefan Monnier <monnier@iro.umontreal.ca>
8308
8309 * term.c (set_tty_color_mode): Left over typo.
8310
83112008-04-10 Michael Albinus <michael.albinus@gmx.de>
8312
8313 * fileio.c (Fmake_symbolic_link): Surround code by #ifdef S_IFLNK
8314 only after check for file name handler functions. Signal, when
8315 native functionality is not supported.
8316 (syms_of_fileio): Declare it unconditionally.
8317
83182008-04-10 Jason Rumney <jasonr@gnu.org>
8319
8320 * w32menu.c (is_simple_dialog, simple_dialog_show): New functions.
8321 (Fx_popup_dialog): Handle simple yes/no questions as dialogs.
8322
8323 * w32.c (logon_network_drive): Also logon to remote drives that
8324 are mapped to drive letters.
8325
83262008-04-10 Glenn Morris <rgm@gnu.org>
8327
8328 * xdisp.c (truncate-partial-width-windows): Doc fix.
8329
83302008-04-10 Stefan Monnier <monnier@iro.umontreal.ca>
8331
8332 * fileio.c (read_file_name_cleanup, Fread_file_name_internal):
8333 Move functions to minibuffer.el.
8334 (syms_of_fileio): Don't declare them.
8335
83362008-04-09 Stefan Monnier <monnier@iro.umontreal.ca>
8337
8338 * minibuf.c (Vcompletion_auto_help): Move to minibuffer.el.
8339 (syms_of_minibuf): Remove its initialization.
8340
8341 * minibuf.c (temp_echo_area_glyphs): Remove unused function.
8342
83432008-04-09 Juanma Barranquero <lekktu@gmail.com>
8344
8345 * editfns.c (Ffield_string_no_properties): Fix typo in docstring.
8346
83472008-04-09 Jason Rumney <jasonr@gnu.org>
8348
8349 * makefile.w32-in (distclean): Delete makefile too.
8350 (maintainer-clean): New target.
8351
8352 * xdisp.c (redisplay_internal) [!WINDOWSNT]: Conditionalize last change.
8353
8354 * w32term.c (w32_compute_glyph_string_overhangs): Compute overhangs
8355 for new font backend and composite cases.
8356
83572008-04-09 Jan Djärv <jan.h.d@swipnet.se>
8358
8359 * atimer.c (alarm_signal_handler): Call run_timers if not SYNC_INPUT.
8360 Most of the code moved to run_timers.
8361 (do_pending_atimers): Call run_timers.
8362 (run_timers): New function.
8363
8364 * sysdep.c (emacs_write): If SYNC_INPUT and pending_atimers,
8365 run atimers.
8366
8367 * process.c (wait_reading_process_output): The same as above.
8368
83692008-04-09 Stefan Monnier <monnier@iro.umontreal.ca>
8370
8371 * minibuf.c (last_exact_completion): Remove variable.
8372 (Fdelete_minibuffer_contents, do_completion, Fminibuffer_complete)
8373 (complete_and_exit_1, complete_and_exit_2)
8374 (Fminibuffer_complete_and_exit, Fminibuffer_complete_word)
8375 (Fdisplay_completion_list, display_completion_list_1)
8376 (Fminibuffer_completion_help, Fself_insert_and_exit)
8377 (Fexit_minibuffer, Fminibuffer_message): Move functions to
8378 minibuffer.el.
8379 (syms_of_minibuf): Remove corresponding initializations.
8380
8381 * keyboard.c (Qdeactivate_mark): New var.
8382 (command_loop_1): Use it to call `deactivate-mark'.
8383 (syms_of_keyboard): Initialize it.
8384
8385 * xdisp.c (redisplay_internal): Reset tty's color_mode when switching
8386 to another frame.
8387 * frame.c (do_switch_frame): Refine the top_frame/async_visible code.
8388 Don't call set_tty_color_mode.
8389 (store_frame_param): Reset previous_frame rather than call
8390 set_tty_color_mode.
8391 * term.c (set_tty_color_mode): Rewrite.
8392 * dispextern.h (set_tty_color_mode): New type.
8393 * termchar.h (struct tty_display_info): Add `previous_color_mode'.
8394
83952008-04-08 Stefan Monnier <monnier@iro.umontreal.ca>
8396
8397 * keymap.c (access_keymap): Remove the value 2 for t_ok which was used
8398 for generic chars, which do not exist any more in emacs-unicode.
8399
84002008-04-08 Michael Albinus <michael.albinus@gmx.de>
8401
8402 * coding.c (detect_coding_emacs_mule)
8403 (Ffind_operation_coding_system): Fix typo.
8404
84052008-04-08 Jason Rumney <jasonr@gnu.org>
8406
8407 * w32uniscribe.c (SNAME): Extract only symbol name.
8408
8409 * w32font.h (struct w32_metric_cache): New struct.
8410 (w32font_info): Use it.
8411 (W32METRIC_NO_ATTEMPT, W32METRIC_SUCCESS, W32METRIC_FAIL)
8412 (CACHE_BLOCKSIZE): New constants.
8413
8414 * w32font.c (Qja, Qko, Qzh): New symbols.
8415 (syms_of_w32font): Initialise them.
8416 (font_matches_spec): Use them to filter by language.
8417 (recompute_cached_metrics): Remove function.
8418 (compute_metrics, clear_cached_metrics): New functions.
8419 (w32font_encode_char): Use them to manage metric cache.
8420 (w32font_text_extents): Cache metrics for all glyphs on demand.
8421 Delay converting glyph indices to WORD until needed.
8422 (w32font_open_internal): Initialize metric cache to empty.
8423 (registry_to_w32_charset): Charset should always be a symbol.
8424 (fill_in_logfont, list_all_matching_fonts): Family should
8425 always be a symbol.
8426
84272008-04-06 Jason Rumney <jasonr@gnu.org>
8428
8429 * w32uniscribe.c (uniscribe_shape): Increase items buffer size.
8430 Give up if glyph indices not supported. Use uniscribe obtained
8431 ABC widths for individual metrics. Map glyph clusters back to
8432 characters using fClusterStart flag. Return number of glyphs
8433 produced, not chars processed.
8434 (uniscribe_shape): Map char at FROM to current glyph.
8435
84362008-04-05 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
8437
8438 * macmenu.c (fill_menu) [TARGET_API_MAC_CARBON]:
8439 Use SetMenuItemHierarchicalMenu.
8440
84412008-04-05 Jason Rumney <jasonr@gnu.org>
8442
8443 * image.c (pbm_load): Allow color values up to 65535.
8444 Throw an error if max_color_idx is outside the supported range.
8445 Report an error when image size is invalid.
8446 Read two bytes at a time when raw images have max_color_idx above 255.
8447
84482008-04-05 Eli Zaretskii <eliz@gnu.org>
8449
8450 * w32.c (readdir): If FindFirstFile/FindNextFile return in
8451 cFileName a file name that includes `?' characters, use the 8+3
8452 alias in cAlternateFileName instead.
8453
84542008-04-05 Kenichi Handa <handa@ni.aist.go.jp>
8455
8456 * ccl.c (ccl_driver): If ccl->quit_silently is nonzero, don't
8457 append "CCL: Quitted" when the CCL program is quitted.
8458 (setup_ccl_program): Initialize ccl->quit_silently to zero.
8459
8460 * ccl.h (struct ccl_program): New member quit_silently.
8461
84622008-04-05 Chong Yidong <cyd@stupidchicken.com>
8463
8464 * search.c (compile_pattern_1): Treat non-nil and non-string of
8465 search-spaces-regexp as nil.
8466
8467 * minibuf.c (Fassoc_string): Tweak docstring.
8468
84692008-04-05 Eli Zaretskii <eliz@gnu.org>
8470
8471 * dired.c (Ffile_attributes): Support inode numbers wider than 32
8472 bits. Remove ugly WINDOWSNT-specific kludge introduced on
8473 2008-03-14 to force inode be positive.
8474
8475 * w32.c (sys_chown, stat, fstat): Use S_* constants instead of
8476 _S_* ones, since we now use our own sys/stat.h.
8477 (stat, fstat): Don't mangle the inode number.
8478 (init_user_info): Don't restrict UID and GID to 0-60000 range.
8479
84802008-04-04 Stefan Monnier <monnier@iro.umontreal.ca>
8481
8482 * frame.h (struct frame): Give one more bit to `visible' since we use
8483 values larger than 1 to indicate obscured frames on ttys.
8484
8485 * keymap.c (Qkeymap_canonicalize): New var.
8486 (Fmap_keymap_internal): New fun.
8487 (describe_map): Use keymap-canonicalize.
8488
8489 * undo.c (last_boundary_buffer, last_boundary_position): New vars.
8490 (Fundo_boundary): Set them.
8491 (syms_of_undo): Initialize them.
8492 (record_point): Use them instead of last_point_position*.
8493 (last_undo_buffer): Change type.
8494
84952008-04-04 Jason Rumney <jasonr@gnu.org>
8496
8497 * w32font.c (w32font_text_extents): Use font's ascent and descent.
8498 (recompute_cached_metrics): Don't set ascent and descent per char.
8499
8500 * w32uniscribe.c (uniscribe_check_otf): Fix last change.
8501 (uniscribe_check_otf): Add GC protection before consing.
8502 Rearrange loop for counting features.
8503
85042008-04-03 Stefan Monnier <monnier@iro.umontreal.ca>
8505
8506 * insdel.c (insert_from_buffer_1): Don't compare bytes in destination
8507 buffer with byte-size of source buffer.
8508
85092008-04-03 Chong Yidong <cyd@stupidchicken.com>
8510
8511 * callint.c (Fcall_interactively): Handle temporary region even
8512 when shift-select-mode is off.
8513
85142008-04-03 Jason Rumney <jasonr@gnu.org>
8515
8516 * w32uniscribe.c (uniscribe_check_otf): Sanity check otf_spec.
8517
85182008-04-03 Kenichi Handa <handa@m17n.org>
8519
8520 * coding.c (CATEGORY_MASK_ANY): Add CATEGORY_MASK_UTF_16_AUTO.
8521 (CATEGORY_MASK_UTF_16): Likewise.
8522 (detect_coding_utf_16): Add heuristics to reject utf-16 for a
8523 binary file.
8524 (detect_coding): Add null-byte detection for a binary file.
8525 (detect_coding_system): Likewise.
8526
85272008-04-03 Jason Rumney <jasonr@gnu.org>
8528
8529 * w32uniscribe.c: New file.
8530
8531 * font.h (uniscribe_font_driver) [WINDOWSNT]: Declare for w32fns.c.
8532
8533 * w32font.h (uniscribe_check_otf): Declare for w32font.c.
8534
8535 * w32font.c (Qbalinese, Qbuginese, Qbuhid, Qcuneiform, Qcypriot)
8536 (Qdeseret, Qglagolitic, Qgothic, Qhanunoo, Qkharoshthi)
8537 (Qlimbu, Qlinear_b, Qold_italic, Qold_persian, Qosmanya)
8538 (Qphags_pa, Qphoenician, Qshavian, Qsyloti_nagri)
8539 (Qtagalog, Qtagbanwa, Qtai_le, Qtifinagh, Qugaritic)
8540 (Qphonetic): New symbols.
8541 (syms_of_w32font): Initialize them.
8542 (font_supported_scripts): Use them.
8543 (w32font_list_family): List all charsets.
8544 (w32font_text_extents, recompute_cached_metrics): Fix metric
8545 calculations.
8546 (w32_enumfont_pattern_entity): Make full_type a DWORD.
8547 Give opentype fonts their own format.
8548 (font_matches_spec): New arguments backend and logfont.
8549 Handle :otf spec for uniscribe backend.
8550 (add_font_entity_to_list): Match truetype fonts in uniscribe backend.
8551 (fill_in_logfont): Use DEFAULT_CHARSET when charset not supplied.
8552
8553 * w32fns.c (Fx_create_frame): Conditionally register uniscribe
8554 font backend.
8555 (globals_of_w32fns): Initialize uniscribe font backend.
8556
8557 * makefile.w32-in (CONFIG_H): New variable. Use it to clean up
8558 dependencies.
8559 (w32uniscribe.$(O)): New file to build.
8560 (FONT_OBJ): Include w32uniscribe.$(O).
8561 (LIBS): Add uniscribe libraries.
8562
8563 * ftfont.c (ftfont_get_open_type_spec): Check spec->script, not val.
8564
85652008-04-02 Chong Yidong <cyd@stupidchicken.com>
8566
8567 * callint.c (Vshift_select_mode): New var.
8568 (Finteractive): Document new ^ spec.
8569 (Fcall_interactively): Call handle-shift-selection if the ^ spec
8570 is present.
8571
8572 * keyboard.c (Vthis_command_keys_shift_translated): New var.
8573 (command_loop_1): Avoid running the direct display versions of
8574 forward-char and backward-char if shift-selection may occur.
8575 (read_key_sequence): Set Vthis_command_keys_shift_translated if
8576 shift-translation takes place.
8577
8578 * buffer.c (Vtransient_mark_mode): Move docstring to simple.el to
8579 avoid clobbering by define-minor-mode.
8580
8581 * cmds.c (Fforward_char, Fbackward_char, Fforward_line)
8582 (Fbeginning_of_line, Fend_of_line): Add ^ interactive spec.
8583
8584 * syntax.c (Fforward_word): Add ^ interactive spec.
8585
8586 * window.c (Fscroll_up, Fscroll_down, Fscroll_left)
8587 (Fscroll_right): Add ^ interactive spec.
8588
85892008-04-01 Stefan Monnier <monnier@iro.umontreal.ca>
8590
8591 * xdisp.c (try_window_id): Don't forget to reset delta_bytes.
8592
8593 * casefiddle.c (casify_object): Fix up int/EMACS_INT mixup.
8594
8595 * charset.c (Funibyte_charset, Fset_unibyte_charset): Remove.
8596
85972008-03-31 Juri Linkov <juri@jurta.org>
8598
8599 * window.c (Fdisplay_buffer): Reinitialize `tem' to nil.
8600
86012008-03-30 Jan Djärv <jan.h.d@swipnet.se>
8602
8603 * gtkutil.c (xg_set_geometry): Fix indentation.
8604 (xg_resize_outer_widget): Remove.
8605 (x_wm_size_hint_off): Fix indentation.
8606 (xg_frame_set_char_size): Call flush_and_sync after
8607 gtk_window_resize.
8608 (x_wm_set_size_hint): Pass NULL as geometry window to
8609 gtk_window_set_geometry_hints due to Gtk+ bug nr 68668.
8610 Add menu bar and tool bar height to base height.
8611 (xg_update_frame_menubar, free_frame_menubar)
8612 (xg_tool_bar_detach_callback, xg_tool_bar_attach_callback)
8613 (update_frame_tool_bar, free_frame_tool_bar):
8614 Change xg_resize_outer_widget to xg_frame_set_char_size.
8615
86162008-03-30 Michael Albinus <michael.albinus@gmx.de>
8617
8618 * dbusbind.c (QCdbus_timeout): New D-Bus internal symbol.
8619 (Fdbus_call_method): New parameter TIMEOUT.
8620 (dbus-send-signal): Optimize UNGCPRO call.
8621
86222008-03-29 Juri Linkov <juri@jurta.org>
8623
8624 * window.c (Fdisplay_buffer): Move call to
8625 Vsplit_window_preferred_function out of conditions that check
8626 if window is eligible for vertical splitting.
8627 When Vsplit_window_preferred_function is non-nil, call it and use
8628 its non-nil return value as window. Otherwise, continue doing
8629 vertical splitting using Fsplit_window with arg horflag=nil.
8630 (syms_of_window) <Vsplit_window_preferred_function>: Change the
8631 default value from `split-window' to nil.
8632
86332008-03-29 Juri Linkov <juri@jurta.org>
8634
8635 * callint.c (Fcall_interactively): Revert 2008-03-16 change
8636 for interactive code letters 'b' and 'B'.
8637
86382008-03-29 Eli Zaretskii <eliz@gnu.org>
8639
8640 * fileio.c (Fexpand_file_name): Convert the value of $HOME to a
8641 multibyte string.
8642
86432008-03-29 Stefan Monnier <monnier@iro.umontreal.ca>
8644
8645 * keyboard.c (pending_funcalls): New var.
8646 (timer_check): Run it.
8647 (syms_of_keyboard): Initialize it.
8648 * terminal.c (Qrun_hook_with_args, Qdelete_terminal_functions)
8649 (Vdelete_terminal_functions): New vars.
8650 (syms_of_terminal): Initialize them.
8651 (Fdelete_terminal): Run delete-terminal-functions.
8652 * xdisp.c (safe_eval): Rewrite.
8653 (safe_call2): New fun.
8654 * frame.c (Qdelete_frame_functions): New var.
8655 (syms_of_frame): Initialize it.
8656 (Fdelete_frame): Use it and use safe_call2 and pending_funcalls.
8657 * lisp.h (safe_call2, pending_funcalls): Declare.
8658
86592008-03-28 Andreas Schwab <schwab@suse.de>
8660
8661 * indent.c (Fmove_to_column): Move declaration before statements.
8662
86632008-03-27 Stefan Monnier <monnier@iro.umontreal.ca>
8664
8665 * frame.h (enum fullscreen_type): Give it a name. Move it before use.
8666 (struct frame): Use bit fields for boolean vars.
8667
8668 * process.c (server_accept_connection): Simplify naming.
8669 (emacs_get_tty_pgrp): Use SDATA.
8670
8671 * coding.c (decode_coding_object): Fix last change.
8672
86732008-03-27 Jason Rumney <jasonr@gnu.org>
8674
8675 * w32fns.c (start_hourglass): Suppress hourglass on tty frames.
8676
86772008-03-27 Kenichi Handa <handa@ni.aist.go.jp>
8678
8679 * charset.c (Fdefine_charset_internal): Change the way of
8680 registering charsets in Vcharset_order_list.
8681 (syms_of_charset): Make the charset `eight-bit' supplementary.
8682
86832008-03-26 Alexandre Oliva <aoliva@redhat.com> (tiny change)
8684
8685 * regex.c (EXTEND_BUFFER): Change order of pointer addition
8686 operations, to avoid having the difference between pointers
8687 overflow.
8688
86892008-03-26 Stefan Monnier <monnier@iro.umontreal.ca>
8690
8691 * indent.c (check_display_width): New fun.
8692 (scan_for_column): Use it.
8693
8694 * data.c (syms_of_data): Mark most-positive-fixnum and
8695 most-negative-fixnum as constants.
8696
8697 * xdisp.c (redisplay_internal): Reset selected_frame earlier.
8698
8699 * indent.c (scan_for_column): Extract from current_column_1.
8700 Merge with the same code from Fmove_to_column.
8701 (current_column_1, Fmove_to_column): Use it.
8702
87032008-03-25 Stefan Monnier <monnier@iro.umontreal.ca>
8704
8705 * keymap.c (map_keymap_internal): New fun.
8706 (map_keymap): Use it.
8707 (Fmap_keymap_internal): New fun.
8708 (Fmap_keymap): Remove left-out test from before make_save_value.
8709
8710 * keymap.c (Fmap_keymap): Use `map-keymap-sorted.
8711
8712 * frame.c (Fmodify_frame_parameters, x_set_frame_parameters):
8713 Use XCAR/XCDR.
8714
8715 * process.h (struct Lisp_Process): Remove filter_multibyte.
8716 * process.c (QCfilter_multibyte): Remove.
8717 (setup_process_coding_systems): Don't use filter_multibyte.
8718 (Fstart_process, Fmake_network_process): Don't set filter_multibyte.
8719 (read_process_output): Don't adjust multibyteness to filter_multibyte.
8720 (Fset_process_filter_multibyte): Change the coding-system to
8721 approximate the previous behavior.
8722 (Fprocess_filter_multibyte_p): Get the multibyteness straight from the
8723 coding-system.
8724
8725 * coding.c (decode_coding_object): When not decoding into a buffer,
8726 obey the coding system's preference of (uni|multi)byte.
8727
87282008-03-24 Stefan Monnier <monnier@iro.umontreal.ca>
8729
8730 * casefiddle.c (casify_object): Avoid pathological N^2 worst case if
8731 every char is changed and has a different byte-length.
8732 (Fupcase_word, Fdowncase_word, Fcapitalize_word, operate_on_word):
8733 Fix int -> EMACS_INT.
8734
87352008-03-23 David Hansen <david.hansen@gmx.net>
8736
8737 * dbusbind.c (xd_read_message): Remove extra copying of message
8738 strings. Check for NULL `interface' or `member'.
8739
87402008-03-22 Eli Zaretskii <eliz@gnu.org>
8741
8742 * w32.c (readdir): If FindFirstFile/FindNextFile return in
8743 cFileName a file name that includes `?' characters, use the 8+3
8744 alias in cAlternateFileName instead.
8745
87462008-03-21 Stefan Monnier <monnier@iro.umontreal.ca>
8747
8748 * buffer.c (enlarge_buffer_text): Fix int -> EMACS_INT.
8749
87502008-03-20 Stefan Monnier <monnier@iro.umontreal.ca>
8751
8752 * intervals.c (temp_set_point, temp_set_point_both): Use EMACS_INT.
8753 (set_point, set_point_both): Use EMACS_INT. Remove `buffer' arg,
8754 work on current_buffer only instead (that was already the case
8755 for some of the code anyway).
8756 * buffer.h (set_point, set_point_both): Remove buffer arg, use long int.
8757 (temp_set_point, temp_set_point_both): Use EMACS_INT.
8758 (SET_PT, SET_PT_BOTH): Adjust.
8759 * intervals.h (set_point, temp_set_point, set_point_both)
8760 (temp_set_point_both): Remove redundant declarations.
8761
87622008-03-20 Stefan Monnier <monnier@iro.umontreal.ca>
8763
8764 * fileio.c (Finsert_file_contents):
8765 * lread.c (Feval_buffer): Use BUF_TEMP_SET_PT.
8766 * buffer.h (BUF_SET_PT): Remove. set_point_both doesn't work right
8767 when buffer != current_buffer anyway.
8768
87692008-03-20 Andreas Schwab <schwab@suse.de>
8770
8771 * callint.c (Fcall_interactively) [case 'B']: Use other-buffer
8772 as default.
8773
87742008-03-19 Jason Rumney <jasonr@gnu.org>
8775
8776 * w32fns.c (hourglass_timer, hourglass_hwnd): New variables.
8777 (syms_of_w32fns): Initialize them.
8778 (HOURGLASS_ID): New constant.
8779 (x_window_to_frame): Don't check hourglass_window.
8780 (w32_wnd_proc) <WM_TIMER>: Handle hourglass_timer.
8781 (w32_wnd_proc) <WM_EXITMENULOOP>: Set pending hourglass cursor.
8782 (w32_wnd_proc) <WM_SETCURSOR>: Set the hourglass or current cursor.
8783 (w32_wnd_proc) <WM_EMACS_SETCURSOR>: Set frame's current_cursor.
8784 Only change the cursor if hourglass is not active.
8785 (Fx_create_frame): Initialize frame's current_cursor.
8786 (hourglass_atimer): Remove.
8787 (hourglass_started): New function.
8788 (start_hourglass, cancel_hourglass, hide_hourglass): Adapt to w32.
8789 (show_hourglass): Adapt to w32, changing argument to frame.
8790
8791 * w32term.h (struct w32_output): Remove hourglass_window.
8792 Add current_cursor.
8793
8794 * eval.c (call_debugger, Fsignal):
8795 * keyboard.c (recursive_edit_1, cmd_error, Ftop_level)
8796 (command_loop_1, Fread_key_sequence, Fread_key_sequence_vector)
8797 (Fexecute_extended_command, cancel_hourglass_unwind):
8798 * minibuf.c (read_minibuf):
8799 * fns.c (Fy_or_n_p): Enable hourglass when HAVE_WINDOW_SYSTEM.
8800
88012008-03-19 Stefan Monnier <monnier@iro.umontreal.ca>
8802
8803 * window.c (run_funs): New fun.
8804 (run_window_configuration_change_hook): Use it to run the buffer-local
8805 and the global part of the hook.
8806
8807 * xdisp.c (format_mode_line_unwind_data): Add window argument.
8808 (unwind_format_mode_line): Restore selected window.
8809 (x_consider_frame_title, Fformat_mode_line): Set selected window.
8810
88112008-03-17 Stefan Monnier <monnier@iro.umontreal.ca>
8812
8813 * editfns.c (Fchar_equal): Check they are valid characters.
8814
8815 * buffer.h (Fbuffer_list): Declare (for use in callint.c).
8816
88172008-03-17 Andreas Schwab <schwab@suse.de>
8818
8819 * regex.c (re_match_2_internal): Properly match raw 8-bit bytes
8820 against a charset.
8821
8822 * lisp.h (Fbuffer_list): Declare.
8823
88242008-03-17 Jan Djärv <jan.h.d@swipnet.se>
d6c952f8 8825
aac0c6e3
MR
8826 * gtkutil.c (free_frame_tool_bar): Only call gtk_container_remove if
8827 handlebox_widget is != 0.
8828
88292008-03-16 Juri Linkov <juri@jurta.org>
8830
8831 * callint.c (Fcall_interactively): For interactive code letters
8832 'b' and 'B' put the buffer list into the list of default "future"
8833 values of the minibuffer.
8834
88352008-03-16 Andreas Schwab <schwab@suse.de>
8836
8837 * keyboard.c (read_key_sequence): Fix downcasing of letters with
8838 modifiers.
8839
8840 * regex.c (re_match_2_internal): Correct matching of a charset
8841 against latin-1 characters.
8842
88432008-03-16 Kenichi Handa <handa@m17n.org>
8844
8845 * coding.c (CHAR_STRING_ADVANCE_NO_UNIFY)
8846 (STRING_CHAR_ADVANCE_NO_UNIFY): New macros.
8847 (coding_alloc_by_making_gap): Fix the way to preserve data in the gap.
8848 (alloc_destination): Fix the 2nd arg to coding_alloc_by_making_gap.
8849 (encode_coding_utf_8): Use CHAR_STRING_ADVANCE_NO_UNIFY instead of
8850 CHAR_STRING_ADVANCE.
8851 (produce_chars): Fix for the case that the source and the
8852 destination are the same buffer. Use CHAR_STRING_ADVANCE_NO_UNIFY
8853 instead of CHAR_STRING_ADVANCE.
8854 (consume_chars): Use STRING_CHAR_ADVANCE_NO_UNIFY instead of
8855 STRING_CHAR_ADVANCE.
8856
88572008-03-15 Andreas Schwab <schwab@suse.de>
8858
8859 * regex.c (re_match_2_internal): Correct matching of eight bit
8860 characters in unibyte strings.
8861
88622008-03-15 Martin Rudalics <rudalics@gmx.at>
8863
8864 * buffer.c (overlays_in, Foverlays_in): Include empty overlays
8865 at end of range when it coincides with the end of the buffer.
8866
88672008-03-14 Eli Zaretskii <eliz@gnu.org>
8868
8869 * dired.c (Ffile_attributes) [WINDOWSNT]: Force inode be positive.
8870
8871 * w32fns.c (globals_of_w32fns, Fx_create_frame): Fix last change.
8872
88732008-03-14 Jason Rumney <jasonr@gnu.org>
8874
8875 * editfns.c (initial_tz): New variable.
8876 (syms_of_editfns): Initialize it.
8877 (Fset_time_zone_rule): Set it when first called.
8878 Use it when TZSTRING is nil.
8879
8880 * w32fns.c (MONITOR_DEFAULT_TO_NEAREST, struct MONITOR_INFO)
8881 (MonitorFromPoint_Proc, GetMonitorInfo_Proc): New definitions.
8882 (monitor_from_point_fn, get_monitor_info_fn): New globals.
8883 (globals_of_w32fns): Initialize them.
8884 (compute_tip_xy): Use them to position tooltips.
8885
88862008-03-14 Glenn Morris <rgm@gnu.org>
8887
8888 * emacs.c (main): Revert previous change.
8889 (standard_args): Revert -internal-script back to -scriptload,
8890 and remove the long-option form.
8891
88922008-03-13 Glenn Morris <rgm@gnu.org>
8893
8894 * emacs.c (main, standard_args): Rename -scriptload to -internal-script.
8895 Remove option -enable-font-backend.
8896
88972008-03-12 Stefan Monnier <monnier@iro.umontreal.ca>
8898
8899 * buffer.c (Fswitch_to_buffer): Fall back on pop-to-buffer.
8900
89012008-03-11 Jan Djärv <jan.h.d@swipnet.se>
8902
8903 * xterm.c (x_connection_closed): For GTK: If this is the last
8904 terminal just exit without closing the display.
8905
89062008-03-11 Jason Rumney <jasonr@gnu.org>
8907
8908 * w32font.c (w32font_full_name): Use floor to round.
8909
f0131492 89102008-03-10 Dhruva Krishnamurthy <dhruvakm@gmail.com> (tiny change)
aac0c6e3
MR
8911
8912 * sound.c (alsa_configure): Declare vol at beginning of block.
8913
8914 * fontset.c (Ffontset_info): Remove extra semicolon.
8915
89162008-03-10 Stefan Monnier <monnier@iro.umontreal.ca>
8917
8918 * fileio.c (Fsubstitute_in_file_name): Fix up computation of maximum
8919 size of resulting string.
8920
89212008-03-10 Jason Rumney <jasonr@gnu.org>
8922
8923 * dispnew.c (adjust_glyph_matrix): Initialize window_height.
8924
89252008-03-10 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
8926
8927 * xdisp.c (handle_single_display_spec): Undo 2007-10-16 changes.
8928 Don't pretend as if characters with display property haven't been
8929 consumed for string-replacing-string case.
8930
89312008-03-08 Kim F. Storm <storm@cua.dk>
8932
8933 * xdisp.c (GET_NEXT_DISPLAY_ELEMENT): New macro.
8934 (get_next_display_element, next_element_from_string)
8935 (next_element_from_ellipsis, next_element_from_buffer): Use it.
8936
89372008-03-08 Andreas Schwab <schwab@suse.de>
8938
8939 * process.h (struct Lisp_Process): Declare bit fields as unsigned.
8940
89412008-03-06 Jason Rumney <jasonr@gnu.org>
8942
8943 * w32font.c (w32_registry): Take font_type argument. Use ANSI
8944 when charset not specified. Only translate ANSI to unicode when
8945 font_type is truetype.
8946 (w32font_coverage_ok): New function.
8947 (add_font_entity_to_list): Use it to filter unsuitable fonts.
8948
89492008-03-05 Kenichi Handa <handa@ni.aist.go.jp>
8950
8951 * lread.c (Fread_char): Resolve modifiers.
8952 (Fread_char_exclusive): Likewise.
8953
8954 * character.c (char_resolve_modifier_mask): New function.
8955 (char_string): Use char_resolve_modifier_mask.
8956 (Fchar_resolve_modifiers): New function.
8957 (syms_of_character): Declare Fchar_resolve_modifiers as Lisp
8958 function.
8959
89602008-03-04 Jason Rumney <jasonr@gnu.org>
8961
8962 * makefile.w32-in: Always include w32font.c in the build.
8963 * w32font.c: Wrap in USE_FONT_BACKEND conditional.
8964
89652008-03-04 Andreas Schwab <schwab@suse.de>
8966
8967 * Makefile.in (clean): Remove emacs-*.*.* instead of emacs-*.
8968 (versionclean): Likewise.
8969
89702008-03-04 Juanma Barranquero <lekktu@gmail.com>
8971
8972 * .cvsignore: Add oo.
8973
89742008-03-03 Andreas Schwab <schwab@suse.de>
8975
8976 * coding.c (decode_coding_object): Inhibit gap shrinking while
8977 decoding in place.
8978
89792008-03-03 Dan Nicolaescu <dann@ics.uci.edu>
8980
8981 * w32term.c: Remove unused include "gnu.h".
8982 * makefile.w32-in (w32term.o): Don't depend on gnu.h.
8983
8984 * gnu.h: Rename to ...
8985 * emacs-icon.h: ... this.
8986 * xterm.c: Use emacs-icon.h instead of gnu.h.
8987 * Makefile (xterm.o): Depend on emacs-icon.h, not gnu.h.
8988
89892008-03-03 Juanma Barranquero <lekktu@gmail.com>
8990
8991 * w32font.c: Include math.h.
8992
89932008-03-03 Jason Rumney <jasonr@gnu.org>
8994
8995 * w32font.c (recompute_cached_metrics): Change font arg to w32font_info.
8996 Compute options separately.
8997 (w32font_open_internal): Set glyph_idx before caching metrics.
8998
8999 * w32font.h (NTM_PS_OPENTYPE, NTM_TT_OPENTYPE, NTM_TYPE1):
9000 Define if system headers don't.
9001 (struct w32font_info): Enlarge ascii_metrics. Add glyph_idx.
9002 (w32font_encode_char): Don't declare here.
9003
9004 * w32font.c (Quniscribe, QCformat): New symbols.
9005 (syms_of_w32font): Define them.
9006 (w32font_has_char): Indicate uncertainty.
9007 (w32font_encode_char): Encode as glyph point. Make static.
9008 (recompute_cached_metrics): New function.
9009 (w32font_open_internal): Use it. Set font to use glyph points
9010 initially. Set format based on type of font.
9011 (w32font_text_extents, w32font_draw): Optionally use glyph points.
9012 (w32_enumfont_pattern_entity): Accept backend arg. Set type based
9013 on it. Set format based on information available here.
9014 (add_font_entity_to_list): Identify backend based on opentype_only.
9015
90162008-03-02 Andreas Schwab <schwab@suse.de>
9017
9018 * ftfont.c (ftfont_pattern_entity): Fix aliasing violations.
9019
9020 * coding.c (decode_coding_big5, produce_chars):
9021 Fix typos in last change.
9022
90232008-03-02 Kentaro Ohkouchi <nanasess@fsm.ne.jp>
9024
9025 * gnu.h: New icon.
9026
90272008-03-02 Kenichi Handa <handa@m17n.org>
9028
9029 * coding.c (decode_coding_utf_8): When eol-type of CODING is
9030 `dos', don't decode '\r' if that is the last in the source.
9031 (decode_coding_utf_16, decode_coding_emacs_mule)
9032 (decode_coding_iso_2022, decode_coding_sjis, decode_coding_big5)
9033 (decode_coding_raw_text, decode_coding_charset): Likewise.
9034 (produce_chars): Don't decode EOL here. Use EMACS_INT.
9035
90362008-03-01 Jason Rumney <jasonr@gnu.org>
9037
9038 * w32font.c (w32font_full_name): Report point size for scalable fonts.
9039
90402008-03-01 Kim F. Storm <storm@cua.dk>
9041
9042 * dispextern.h (CHAR_GLYPH_SPACE_P): Check for default face.
9043
90442008-03-01 Jason Rumney <jasonr@gnu.org>
9045
9046 * w32font.c (w32font_full_name): New function.
9047 (w32font_open_internal): Use it.
9048
90492008-03-01 Kim F. Storm <storm@cua.dk>
9050
9051 * dispnew.c (line_draw_cost): Fix invalid glyph check.
9052
90532008-03-01 Jason Rumney <jasonr@gnu.org>
9054
9055 * font.c (font_unparse_fcname): Increase len when style is a symbol.
9056
90572008-03-01 Jan Djärv <jan.h.d@swipnet.se>
9058
9059 * xterm.c (handle_one_xevent): For Gtk+ and ConfigureNotify, call
9060 xg_frame_resized when the event is for the edit widget.
9061
9062 * gtkutil.h (xg_frame_resized): Renamed from xg_resize_widgets.
9063
9064 * gtkutil.c (xg_resize_outer_widget): Only do one of set_geometry or
9065 set_char_size.
9066 (xg_frame_resized): Renamed from xg_resize_widgets. Remove all
9067 operations on widgets here. Just set frame size if needed.
9068 (flush_and_sync, x_wm_size_hint_off, xg_pack_tool_bar): New functions.
9069 (xg_frame_set_char_size): Call x_wm_size_hint_off before resizing.
9070 (x_wm_set_size_hint): Set size hints on the edit widget only, not
9071 the whole frame.
9072 (xg_create_tool_bar): Move attachment of the tool bar to
9073 xg_pack_tool_bar. Do not attach the tool bar if there are no items.
9074 (free_frame_tool_bar): Remove call to SET_FRAME_GARBAGED.
9075
90762008-03-01 Jason Rumney <jasonr@gnu.org>
9077
9078 * w32fns.c (w32_msg_pump): Disable debug code.
9079
90802008-03-01 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
9081
9082 * m/intel386.h [MAC_OSX || DARWIN]: Define NO_ARG_ARRAY if _LP64.
9083
90842008-02-29 Chong Yidong <cyd@stupidchicken.com>
9085
9086 * xdisp.c (next_overlay_string): Don't set
9087 overlay_strings_at_end_processed_p if we're currently reading from
9088 a display string.
9089
90902008-02-29 Stefan Monnier <monnier@iro.umontreal.ca>
9091
9092 * xdisp.c (get_overlay_strings_1): Fix typo.
9093
90942008-02-29 Chong Yidong <cyd@stupidchicken.com>
9095
9096 * xdisp.c (get_overlay_strings_1): Add missing argument type.
9097
90982008-02-28 Kenichi Handa <handa@ni.aist.go.jp>
9099
9100 * ftfont.c (ftfont_match): Explicitly set pixelsize in pattern.
9101
9102 * xdisp.c (display_mode_element): Cancel the previous change.
9103 (decode_mode_spec): Likewise.
9104 (handle_auto_composed_prop): Don't make composition if it->string
9105 is a string.
9106
91072008-02-27 Kim F. Storm <storm@cua.dk>
9108
9109 * lisp.h (GLYPH): Change type from int to struct with separate char
9110 and face_id members.
9111 (GLYPH_MASK_FACE, GLYPH_MASK_CHAR): Delete macros.
9112 (GLYPH_CHAR, GLYPH_FACE): Remove slow versions with frame arg.
9113 (FAST_GLYPH_CHAR, FAST_GLYPH_FACE): Rename macros to ...
9114 (GLYPH_CHAR, GLYPH_FACE): ... these. Change users.
9115 (FAST_MAKE_GLYPH, MAKE_GLYPH): Remove. Rewrite users to use ...
9116 (SET_GLYPH, SET_GLYPH_CHAR, SET_GLYPH_FACE): ... these macros instead.
9117 (GLYPH_CODE_CHAR, GLYPH_CODE_FACE, GLYPH_CODE_P)
9118 (GLYPH_CODE_CHAR_VALID_P, SET_GLYPH_FROM_GLYPH_CODE): New macros to
9119 handle new Lisp glyph code encoding, either an integer or a cons.
9120
9121 * disptab.h (GLYPH_SIMPLE_P): Rewrite.
9122 (GLYPH_ALIAS): Delete.
9123 (GLYPH_ALIAS_P, GLYPH_FOLLOW_ALIASES): Rewrite.
9124 (GLYPH_LENGTH, GLYPH_STRING): Use GLYPH_CHAR.
9125 (GLYPH_FROM_CHAR): Replace macro by ...
9126 (SET_GLYPH_FROM_CHAR): ... this macro. Change users.
9127
9128 * dispextern.h (CHAR_GLYPH_SPACE_P): Simplify.
9129 (GLYPH_FROM_CHAR_GLYPH): Replace macro by ...
9130 (SET_GLYPH_FROM_CHAR_GLYPH): ... this macro. Change users.
9131 (GLYPH_INVALID_P): New macro.
9132 (spec_glyph_lookup_face): Update prototype.
9133
9134 * dispnew.c (line_draw_cost): Adapt to new glyph type.
9135 (build_frame_matrix_from_leaf_window): Adapt to new glyph type and
9136 new glyph code encoding.
9137 (spec_glyph_lookup_face): No return value; update passed glyph instead.
9138 (init_display): Use SET_CHAR_GLYPH to initialize space_glyph.
9139
9140 * xdisp.c (get_next_display_element, next_element_from_display_vector):
9141 Adapt to new glyph type and new glyph code encoding.
9142
9143 * term.c (encode_terminal_code, produce_special_glyphs): Likewise.
9144
9145 * indent.c (current_column, current_column_1, Fmove_to_column)
9146 (compute_motion): Adapt to new glyph code encoding.
9147
9148 * msdos.c (IT_write_glyphs): Adapt to new glyph type.
9149
91502008-02-27 Chong Yidong <cyd@stupidchicken.com>
9151
9152 * process.c (wait_reading_process_output): Check for window
9153 changes caused by timers.
9154 Suggested by Johan Bockgård.
9155
91562008-02-27 Glenn Morris <rgm@gnu.org>
9157
9158 * emacs.c (USAGE1): Add `--disable-font-backend'.
9159
91602008-02-27 Stefan Monnier <monnier@iro.umontreal.ca>
9161
9162 * fileio.c (Finsert_file_contents): Don't reset undo_list if no change
9163 is made to the buffer.
9164
91652008-02-26 Stefan Monnier <monnier@iro.umontreal.ca>
9166
9167 * dispextern.h (face_at_buffer_position, face_for_overlay_string)
9168 (face_at_string_position):
9169 * xfaces.c (face_at_buffer_position, face_for_overlay_string)
9170 (face_at_string_position):
9171 * xdisp.c (display_string, next_overlay_change):
9172 * buffer.h (overlays_at):
9173 * buffer.c (overlays_at): Use EMACS_INT for buffer positions.
9174 Update callers.
9175
91762008-02-26 Chong Yidong <cyd@stupidchicken.com>
9177
9178 * editfns.c (Fformat): Doc fix.
9179
91802008-02-26 Juanma Barranquero <lekktu@gmail.com>
9181
9182 * font.c (Ffont_spec, Ffont_at): Fix typos in docstrings.
9183 (Ffont_put, Flist_families, Ffont_fill_gstring, Ffont_drive_otf)
9184 (Ffont_otf_alternates, Fquery_font): Doc fixes.
9185
91862008-02-25 Stefan Monnier <monnier@iro.umontreal.ca>
9187
9188 * buffer.c (Fbuffer_swap_text): New function.
9189 (syms_of_buffer): Defsubr it.
9190
91912008-02-25 Chong Yidong <cyd@stupidchicken.com>
9192
9193 * keyboard.c (command_loop_1): Revert 2006-10-09 change.
9194
91952008-02-25 Jason Rumney <jasonr@gnu.org>
9196
9197 * w32font.c (w32font_draw): Draw one character at a time when padding.
9198
91992008-02-25 Stefan Monnier <monnier@iro.umontreal.ca>
9200
9201 * window.c (Fdelete_window, Fadjust_window_trailing_edge):
9202 Handle a nil arg. Use run_window_configuration_change_hook.
9203 (delete_window, adjust_window_trailing_edge): Don't handle nil any more.
9204 (Fenlarge_window, Fshrink_window, Fset_window_configuration):
9205 Use run_window_configuration_change_hook.
9206
92072008-02-25 Kenichi Handa <handa@ni.aist.go.jp>
9208
9209 * xdisp.c (x_produce_glyphs): For a visible glyph, assure at least
9210 1-pixel width.
9211
92122008-02-25 Kenichi Handa <handa@ni.aist.go.jp>
9213
9214 * xdisp.c (fill_glyph_string): Pay attention to glyph->padding_p.
9215 (append_glyph): Set glyph->pixel_width and glyph->padding_p to 1
9216 if the glyph in the font is zero pixel with.
9217
9218 * dispextern.h (struct glyph_string): New member padding_p.
9219
9220 * w32font.c (w32font_draw): Pay attention to s->padding_p.
9221
9222 * ftxfont.c (ftxfont_draw): Pay attention to s->padding_p.
9223
9224 * xfont.c (xfont_draw): Pay attention to s->padding_p.
9225
9226 * xftfont.c (xftfont_draw): Pay attention to s->padding_p.
9227
9228 * font.c: If the font driver doesn't have `shape' function, return Qnil.
9229
92302008-02-25 Jason Rumney <jasonr@gnu.org>
9231
9232 * w32fns.c (enum_font_cb2): Don't use raster fonts for Unicode.
9233
92342008-02-24 Stefan Monnier <monnier@iro.umontreal.ca>
9235
9236 Allow fine-grained image-cache flushing.
9237 * dispextern.h (struct image): Add `dependencies' field.
9238 (clear_image_caches): Change arg to Lisp_Object.
9239 * image.c (make_image): Initialize `dependencies' field.
9240 (clear_image_cache): Change arg to allow fine-grained flushing.
9241 Perform the flush even if image-cache-eviction-delay is nil.
9242 (clear_image_caches): Change arg to Lisp_Object.
9243 (Fclear_image_cache): Expand meaning of the argument.
9244 (mark_image): Mark `dependencies' field.
9245 * xfaces.c (clear_face_cache): Adapt arg to call to clear_image_caches.
9246 (lface_hash): Use XHASH rather than XFASTINT.
9247 (face_at_buffer_position): Fix int -> EMACS_INT position.
9248 * xdisp.c (next_overlay_change): Fix int -> EMACS_INT position.
9249 (select_frame_for_redisplay): Remove code duplication.
9250 (redisplay_internal): Adapt arg to call to clear_image_caches.
9251
92522008-02-24 Dan Nicolaescu <dann@ics.uci.edu>
9253
9254 * s/vms4-0.h:
9255 * s/vms4-2.h:
9256 * s/vms4-4.h:
9257 * s/vms5-5.h: Remove, unused.
9258
9259 * s/irix5-2.h:
9260 * s/irix6-0.h:
9261 * s/riscos5.h:
9262 * s/mach-bsd4-3.h:
9263 * m/mips4.h: Remove files for obsolete systems.
9264
9265 * Makefile.in:
9266 * filelock.c:
9267 * unexmips.c:
9268 * m/hp9000s300.h:
9269 * m/iris4d.h:
9270 * s/aix3-1.h:
9271 * s/hpux.h:
9272 * s/msdos.h:
9273 * s/usg5-0.h:
9274 * s/usg5-2-2.h:
9275 * s/usg5-2.h:
9276 * s/usg5-3.h: Remove references to obsolete variables.
9277
9278 * s/irix5-0.h: Remove, move all the contents ...
9279 * s/irix6-5.h: ... here. Simplify.
9280 * config.in: Regenerate.
9281
92822008-02-24 Jason Rumney <jasonr@gnu.org>
9283
9284 * w32term.c (x_draw_glyph_string_background): Clear the background
9285 manually when cleartype is in use.
9286 (x_draw_glyph_string_foreground): Draw text transparently when
9287 cleartype is in use.
9288
9289 * w32font.c (w32font_text_extents): Avoid getting HDC and selecting
9290 a font into it unless we have to.
9291
92922008-02-19 Stefan Monnier <monnier@iro.umontreal.ca>
9293
9294 * intervals.h (INT_LISPLIKE): Remove. It may misfire.
9295 (NULL_INTERVAL_P, SET_INTERVAL_PARENT): Don't use it.
d6c952f8 9296
aac0c6e3
MR
92972008-02-18 Jason Rumney <jasonr@gnu.org>
9298
9299 * w32fns.c (Fw32_shell_execute): Encode parameters.
9300
93012008-02-09 Eli Zaretskii <eliz@gnu.org>
9302
9303 * fileio.c (syms_of_fileio) <insert-default-directory>: Doc fix.
9304
93052008-02-05 Juanma Barranquero <lekktu@gmail.com>
9306
9307 * unexhp9k800.c (read_header): Replace `legal' with `valid'.
9308
93092008-02-24 Ulrich Neumerkel <ulrich@complang.tuwien.ac.at> (tiny change)
9310
9311 * xterm.c (x_set_offset): Don't change the gravity if
9312 CHANGE_GRAVITY is -1.
9313
93142008-02-23 Chong Yidong <cyd@stupidchicken.com>
9315
9316 * fileio.c (auto_save_error_occurred): New var.
9317 (auto_save_error): Set it.
9318 (Fdo_auto_save): Don't overwrite the error message if an auto-save
9319 error occurred.
9320
93212008-02-23 Eli Zaretskii <eliz@gnu.org>
9322
9323 * w32.c (globals_of_w32): Add initializations for
9324 g_b_init_get_sid_sub_authority and
9325 g_b_init_get_sid_sub_authority_count.
9326
93272008-02-22 Stefan Monnier <monnier@iro.umontreal.ca>
9328
9329 * font.c (font_match_xlfd, font_check_xlfd_parse): New funs.
9330 (font_parse_xlfd): Use them for sanity check.
9331 (Finternal_set_font_style_table): Make sure the table is bijective.
9332
9333 Consolidate the image_cache to the terminal struct.
9334 * termhooks.h (P_): Remove redundant def.
9335 (struct terminal): New field `image_cache'.
9336 * frame.h (FRAME_IMAGE_CACHE): New macro. Use it everywhere in place
9337 of FRAME_X_IMAGE_CACHE.
9338 * xterm.h (struct x_display_info): Remove image_cache field.
9339 (FRAME_X_IMAGE_CACHE): Remove. Use FRAME_IMAGE_CACHE instead.
9340 * w32term.h (struct w32_display_info): Remove image_cache field.
9341 (FRAME_X_IMAGE_CACHE): Remove. Use FRAME_IMAGE_CACHE instead.
9342 * macterm.h (struct mac_display_info): Remove image_cache field.
9343 (FRAME_X_IMAGE_CACHE): Remove. Use FRAME_IMAGE_CACHE instead.
9344 * xterm.c (x_term_init):
9345 * w32term.c (w32_term_init):
9346 * macterm.c (mac_term_init): Set the image_cache in the terminal.
9347 * dispextern.h (clear_image_cache, forall_images_in_image_cache):
9348 Remove declarations.
9349 (clear_image_caches, mark_image_cache): New declarations.
9350 * xfaces.c (clear_face_cache):
9351 * xdisp.c (redisplay_internal): Use clear_image_caches.
9352 * image.c (clear_image_cache): Don't check that a frame is on
9353 a window-system before checking if it shares the same cache.
9354 (clear_image_caches): New function.
9355 (Fclear_image_cache): Use it.
9356 (mark_image): Move from allo.c.
9357 (mark_image_cache): Move from alloc.c and forall_images_in_image_cache.
9358 * alloc.c (mark_image, mark_image_cache): Move to image.c.
9359 (mark_object): Don't call mark_image_cache for frames.
9360 (mark_terminals): Call mark_image_cache.
9361
9362 * lisp.h (Fdelete_terminal): Declare.
9363
9364 * charset.h (CHECK_CHARSET, CHECK_CHARSET_GET_ID)
9365 (CHECK_CHARSET_GET_ATTR): Don't use the inexistent return value of
9366 wrong_type_argument.
9367
93682008-02-22 Kenichi Handa <handa@ni.aist.go.jp>
9369
9370 * Makefile.in (lisp): Remove devanagari.el, kannada.el,
9371 malayalam.el, and tamil.el. Add sinhala.el.
9372
93732008-02-21 Stefan Monnier <monnier@iro.umontreal.ca>
9374
9375 * xterm.c (x_connection_closed): Consolidate identical tests.
9376 (x_delete_terminal): Don't crash if called via x_connection_closed.
9377
93782008-02-21 Kenichi Handa <handa@ni.aist.go.jp>
9379
9380 * xdisp.c (decode_mode_spec): New arg string.
9381 (display_mode_element): Adjust for the above change.
9382
93832008-02-19 Stefan Monnier <monnier@iro.umontreal.ca>
9384
9385 * callint.c (Fcall_interactively): Use AREF.
9386
93872008-02-18 Stefan Monnier <monnier@iro.umontreal.ca>
9388
9389 * font.c (font_unparse_xlfd): Don't ignore integer pixel size specs.
9390
93912008-02-18 Jan Djärv <jan.h.d@swipnet.se>
9392
9393 * xfns.c (Fx_show_tip): Set string to " " if empty.
9394
93952008-02-17 Dan Nicolaescu <dann@ics.uci.edu>
9396
9397 * callint.c (syms_of_callint): Initialize Vmark_even_if_inactive
9398 with Qt.
9399
94002008-02-17 Kenichi Handa <handa@m17n.org>
9401
9402 * ftfont.c (ftfont_shape): Return Lispy number.
9403
9404 * xfaces.c (prepare_face_for_display): Use display_info->font->fid
9405 for GCs.
9406 (Finternal_set_font_selection_order): Call font_update_sort_order
9407 only when enable_font_backend is set.
9408 (realize_x_face): Set face->font_info to that of default face only
9409 when enable_font_backend is set.
9410
9411 * xdisp.c (handle_composition_prop): Set it->c to the fist
9412 character of the composed region.
9413 (fill_composite_glyph_string): Set base_face->font_info to
9414 s->font_info. Get a face for ascii from base_face->ascii_face.
9415 (BUILD_COMPOSITE_GLYPH_STRING): Call fill_composite_glyph_string
9416 with a face already decided.
9417 (x_produce_glyphs): Be sure to set it->ascent and it->descent to
9418 non-negative.
9419 (x_produce_glyphs): If the composition method is ..._WITH_GLYPH_STRING,
9420 call font_prepare_composition unconditionally.
9421
9422 * xfns.c (x_make_gc): Use the default font id of the frame for GCs.
9423
9424 * xterm.h (struct x_display_info): New member font.
9425
9426 * xterm.c (x_set_cursor_gc): Use display_info->font->fid for GCs.
9427 (x_set_mouse_face_gc, x_new_font): Likewise.
9428 (x_term_init): Setup display_info->font.
9429 (x_delete_terminal): Free display_info->font.
9430
9431 * xfont.c (xfont_draw): Use BLOCK_INPUT and UNBLOCK_INPUT.
9432
9433 * ftxfont.c (ftxfont_default_fid): Delete it.
9434 (ftxfont_open): Set xfont->fid to 0.
9435 (ftxfont_end_for_frame): Clear data specific to the frame and the
9436 font-driver.
9437
9438 * xftfont.c (xftfont_default_fid): Delete it.
9439 (xftfont_open): Set xfont->fid to 0.
9440
9441 * fontset.c (FONTSET_OBJLIST): New macro.
9442 (fontset_find_font): Update font-object list of the fontset.
9443 (free_realized_fontset): New function.
9444 (free_face_fontset): Call free_realized_fontset.
9445 (Ffont_info): Call font_close_object only when enable_font_backend
9446 is set.
9447
9448 * font.c [HAVE_X_WINDOWS]: Include xterm.h.
9449 [HAVE_NTGUI]: Include w32term.h.
9450 [MAC_OS]: Include macterm.ch.
9451 (font_otf_ValueRecord): Use make_number.
9452 (font_finish_cache): Fix handling of reference count.
9453 (font_clear_cache): Update num_fonts.
9454 (font_open_entity): Update smallest_char_width and
9455 smallest_font_height of the frame.
9456 (font_close_object): Update num_fonts.
9457 (Fclear_font_cache): Fix finding the target cache data.
9458
94592008-02-16 Glenn Morris <rgm@gnu.org>
9460
9461 * fontset.c (Finternal_char_font): Fix compilation warning.
9462
94632008-02-16 Eli Zaretskii <eliz@gnu.org>
9464
9465 * w32.c (init_user_info): Use TOKEN_USER and TOKEN_PRIMARY_GROUP
9466 instead of char arrays. Enlarge the size of array passed to
9467 get_token_information.
9468
9469 * font.c (Ffont_fill_gstring, Fget_font_glyphs): Fix compilation
9470 warnings.
9471
94722008-02-15 Dan Nicolaescu <dann@ics.uci.edu>
9473
9474 * .gdbinit: Don't set `args', it breaks gdb --args.
9475
94762008-02-14 Stefan Monnier <monnier@iro.umontreal.ca>
9477
9478 * fileio.c (Finsert_file_contents): Adjust offsets when replacing
9479 within a narrowed buffer.
9480
94812008-02-14 Kenichi Handa <handa@ni.aist.go.jp>
9482
9483 * coding.c (decode_coding_object, encode_coding_object):
9484 Preserve Vdeactivate_mark. Delete unnecessary call of Fcurrent_buffer.
9485
94862008-02-12 Stefan Monnier <monnier@iro.umontreal.ca>
9487
9488 * coding.c (coding_set_destination): Use BEG_BYTE rather than
9489 hardcoding 1.
9490 (detect_coding_system):
9491 * lisp.h (detect_coding_system, chars_in_text, multibyte_chars_in_text)
9492 (string_char_to_byte, string_byte_to_char, insert_from_gap):
9493 * insdel.c (insert_from_gap):
9494 * fns.c (string_char_byte_cache_charpos, string_char_byte_cache_bytepos)
9495 (string_char_to_byte, string_byte_to_char, string_make_multibyte)
9496 (string_to_multibyte):
9497 * character.c (chars_in_text, multibyte_chars_in_text):
9498 * fileio.c (Finsert_file_contents): Use EMACS_INT for buffer positions.
9499
9500 * character.h (FETCH_STRING_CHAR_ADVANCE)
9501 (FETCH_STRING_CHAR_AS_MULTIBYTE_ADVANCE)
9502 (FETCH_STRING_CHAR_ADVANCE_NO_CHECK): Use SDATA and SREF.
9503 (DEC_POS, BUF_DEC_POS): Use BEG_BYTE rather than hardcoding 1.
9504
9505 * casefiddle.c (casify_region): Only call after-change and composition
9506 functions on the part of the region that was changed.
9507
9508 * keyboard.c (read_avail_input):
9509 * frame.c (Fdelete_frame): Call Fdelete_terminal.
9510
95112008-02-11 Stefan Monnier <monnier@iro.umontreal.ca>
9512
9513 * buffer.c (clone_per_buffer_values, reset_buffer_local_variables)
9514 (Fbuffer_local_value, Fbuffer_local_variables): Don't forget undo_list.
9515
95162008-02-11 Juanma Barranquero <lekktu@gmail.com>
9517
9518 * w32menu.c (push_submenu_start, push_submenu_end)
9519 (push_left_right_boundary, push_menu_pane, push_menu_item):
9520 * keyboard.c (read_key_sequence): Don't pass args with side effects
9521 to AREF, it fails when compiling with -DENABLE_CHECKING.
9522
95232008-02-11 Kenichi Handa <handa@ni.aist.go.jp>
9524
9525 * Makefile.in (${lispsource}international/charprop.el):
9526 Delete this target.
9527
9528 * search.c (boyer_moore): Fix incorrect synching of the trunk and
9529 emacs-unicode-2.
9530
95312008-02-11 Stefan Monnier <monnier@iro.umontreal.ca>
9532
9533 * terminal.c (Fdelete_terminal): Clean up the `force' path.
9534
95352008-02-10 Stefan Monnier <monnier@iro.umontreal.ca>
9536
9537 * frame.c (Qnoelisp): New symbol.
9538 (syms_of_frame): Initialize it.
9539 (Fdelete_frame): Use it to distinguish a mere `force' passed from some
9540 harmless Elisp code, from a strong `force' from x_connection_closed.
9541 * frame.h (Qnoelisp): Declare.
9542 * xterm.c (x_connection_closed): Pass `noelisp'.
9543
9544 * lisp.h (struct Lisp_Misc_Any, struct Lisp_Marker)
9545 (struct Lisp_Overlay, struct Lisp_Kboard_Objfwd)
9546 (struct Lisp_Save_Value, struct Lisp_Free): Use enum Lisp_Misc_Type
9547 rather than `int' for the type of `type'.
9548
95492008-02-10 Dan Nicolaescu <dann@ics.uci.edu>
9550
9551 * s/gnu-linux.h: Remove support for non-ELF and linux-1.x.
9552
9553 * Makefile.in (GNUC): Remove support for gcc-1.x.
9554
95552008-02-10 Richard Stallman <rms@gnu.org>
9556
9557 * lisp.h (ASET): Use AREF, not ASLOT.
9558
95592008-02-10 Stefan Monnier <monnier@iro.umontreal.ca>
9560
9561 * lisp.h (ASET): Check bounds.
9562
95632008-02-10 Glenn Morris <rgm@gnu.org>
9564
9565 * buffer.c (mode-name): Doc fix.
9566
95672008-02-09 Dan Nicolaescu <dann@ics.uci.edu>
9568
9569 * Makefile.in:
9570 * emacs.c:
9571 * gmalloc.c:
9572 * keyboard.c:
9573 * lisp.h:
9574 * m/ibm370aix.h:
9575 * process.c:
9576 * regex.c:
9577 * s/hpux.h:
9578 * sysdep.c:
9579 * sysselect.h:
9580 * systty.h:
9581 * unexec.c:
9582 * w32term.c:
9583 * xsmfns.c:
9584 * xterm.c: Remove code that deals with obsolete variables.
9585
9586 * s/msdos.h (DONT_NEED_ENVIRON): Don't define.
9587
9588 * ecrt0.c: Replace the DONT_NEED_ENVIRON test with MSDOS test,
9589 nothing else needs it anymore.
9590
95912008-02-09 Eli Zaretskii <eliz@gnu.org>
9592
9593 * buffer.h (FETCH_CHAR_AS_MULTIBYTE): Use unibyte_to_multibyte_table
9594 instead of unibyte_char_to_multibyte.
9595
95962008-02-09 Dan Nicolaescu <dann@ics.uci.edu>
9597
9598 * s/gnu-linux.h: Remove commented out code.
9599
9600 * unexec.c: Remove references to obsolete variable COFF_ENCAPSULATE.
9601
9602 * Makefile.in: Update what RMS says about using autoconf.
9603 (C_COMPILER, COFF_ENCAPSULATE, MAKE_PARALLEL): Remove obsolete variable.
9604 (C_SWITCH_MACHINE_1, C_SWITCH_SYSTEM_1, C_SWITCH_SITE_1)
9605 (C_SWITCH_X_SITE_1, C_SWITCH_X_MACHINE_1)
9606 (C_SWITCH_X_SYSTEM_1): Move invariant code outside conditional.
9607
96082008-02-08 Stefan Monnier <monnier@iro.umontreal.ca>
9609
9610 * keymap.c (Fkey_description): Move side effect outside of macro call.
9611
9612 * xfaces.c (Finternal_make_lisp_face):
9613 * keyboard.c (add_command_key, parse_menu_item): Use ASET.
9614
9615 * fontset.c (free_face_fontset): Use FONTSET_FROM_ID.
9616 (syms_of_fontset): Use ASET.
9617
9618 * fns.c (concat): Move side effect outside of macro call.
9619 (hash_clear): Use ASET.
9620
96212008-02-08 Richard Stallman <rms@gnu.org>
9622
9623 * frame.c (Fdelete_frame): If FORCE, don't call hooks.
9624 If FORCE, and frame has a surrogate minibuffer for another frame,
9625 delete the other frame first.
9626
96272008-02-07 Timo Savola <timo.savola@iki.fi>
9628
9629 * xterm.c (x_detect_focus_change): Handle embed client message.
9630 (handle_one_xevent): Ditto.
9631 (handle_one_xevent): If embedded and we get a button press/release,
9632 request focus.
9633 (xembed_set_info, xembed_send_message): New functions.
9634 (x_make_frame_visible): Call xembed_set_info if embedded.
9635 (x_make_frame_invisible): Call xembed_set_info if embedded.
9636 (x_term_init): Initialize Xatom_XEMBED.
9637 (x_make_frame_visible): Check for FRAME_X_EMBEDDED_P also.
9638 (x_iconify_frame): Ditto.
9639
9640 * xterm.h (struct x_display_info): Add AtomXatom_XEMBED.
9641 (enum xembed_info, enum xembed_message, enum xembed_focus)
9642 (enum xembed_modifier, enum xembed_accelerator): New.
9643 (xembed_set_info, xembed_send_message): Declare.
9644 (FRAME_X_EMBEDDED_P): New.
9645
9646 * gtkutil.c (xg_create_frame_widgets): If frame is embedded, call
9647 gtk_plug_new.
9648
9649 * xfns.c (Fx_create_frame): Do not override the explicitly set parent
9650 window ID of a frame.
9651 (x_window): Reparent frame if embedded.
9652 (Fx_create_frame): Don't set border width if embedded.
9653
9654 * emacs.c (USAGE3): Add --parent-id.
9655 (standard_args): Ditto.
9656
96572008-02-07 Jan Djärv <jan.h.d@swipnet.se>
9658
9659 * coding.c (DECODE_EMACS_MULE_COMPOSITION_CHAR): Use "do...while (0)".
9660
96612008-02-07 Jim Meyering <meyering@redhat.com>
9662
9663 Use "do...while (0)", not "if (1)...else" in macro definitions.
9664 The latter provokes a warning from gcc about the empty else, when
9665 followed by ";". Also, without that trailing semicolon, it would
9666 silently swallow up any following statement.
9667 * syntax.h (SETUP_SYNTAX_TABLE)
9668 (SETUP_SYNTAX_TABLE_FOR_OBJECT): Likewise.
9669 * buffer.h (DECODE_POSITION): Likewise.
9670 * character.h (FETCH_STRING_CHAR_ADVANCE): Likewise.
9671 (FETCH_STRING_CHAR_AS_MULTIBYTE_ADVANCE): Likewise.
9672 (FETCH_STRING_CHAR_ADVANCE_NO_CHECK): Likewise.
9673 (FETCH_CHAR_ADVANCE): Likewise.
9674 (FETCH_CHAR_ADVANCE_NO_CHECK): Likewise.
9675
96762008-02-07 Jim Meyering <meyering@redhat.com>
9677
9678 * lread.c [lint]: Don't include <sys/inode.h>.
9679
96802008-02-07 Stefan Monnier <monnier@iro.umontreal.ca>
9681
9682 * xselect.c (x_handle_dnd_message):
9683 * xmenu.c (digest_single_submenu, xmenu_show):
9684 * xdisp.c (with_echo_area_buffer_unwind_data)
9685 (format_mode_line_unwind_data, unwind_format_mode_line)
9686 (display_menu_bar):
9687 * eval.c (Ffetch_bytecode):
9688 * doc.c (store_function_docstring):
9689 * ccl.c (resolve_symbol_ccl_program, ccl_get_compiled_code)
9690 (Fccl_execute, Fccl_execute_on_string, Fregister_code_conversion_map):
9691 * buffer.c (add_overlay_mod_hooklist): Use ASET.
9692
96932008-02-07 Kenichi Handa <handa@m17n.org>
9694
9695 * ftxfont.c (ftxfont_open): Don't set
9696 dpyinfo->smallest_font_height and dpyinfo->smallest_char_width to 0.
9697
9698 * ftfont.c (ftfont_open): Fix previous change.
9699
97002008-02-06 Jason Rumney <jasonr@gnu.org>
9701
9702 * w32font.c (w32font_text_extents): Fill in lbearing metric.
9703 Use cached metrics for ASCII characters.
9704 (w32font_open_internal): Don't set font's owning_frame.
9705 Cache metrics for ASCII characters.
9706
9707 * w32font.h (struct w32font_info): Add ascii_metrics.
9708 Remove owning_frame.
9709
97102008-02-06 Kenichi Handa <handa@ni.aist.go.jp>
9711
9712 * xdisp.c (x_produce_glyphs): Don't set it->ascent and it->descent
9713 to negative value.
9714
9715 * ftxfont.c (ftxfont_draw): Use s->font_info, not face->font_info.
9716
9717 * ftfont.c (ftfont_open): Fix calculation of font->font.average_width.
9718
9719 * charset.c (syms_of_charset): Set QCtest and Qeq.
9720
97212008-02-06 Stefan Monnier <monnier@iro.umontreal.ca>
9722
9723 * process.c (Fstart_process):
9724 * callproc.c (Fcall_process): Handle the case where
9725 Funhandled_file_name_directory returns nil.
9726
9727 * font.h (enum lgstring_indices, enum lglyph_indices): New enums.
9728 (LGSTRING_SLOT, LGSTRING_SET_SLOT): New macros.
9729 * font.c (check_gstring): Use them and AREF to access the vector before
9730 we know it's really a gstring.
9731 (Ffont_shape_text): Fix typo.
46e722a9 9732 (Ffont_shape_text, Ffont_otf_alternates): Fix up int/Lisp_Object mixups.
aac0c6e3
MR
9733
9734 * composite.h (Fcompose_region_internal, Fcompose_string_internal):
9735 Declare.
9736
9737 * chartab.c (make_sub_char_table): Remove noop-yet-incorrect statement.
9738
97392008-02-05 Jason Rumney <jasonr@gnu.org>
9740
9741 * w32font.c (w32font_open_internal): Fill min_width with tmAveCharWidth.
9742 Set smallest_font_height and smallest_char_width in display info.
9743
97442008-02-05 Kenichi Handa <handa@ni.aist.go.jp>
9745
9746 * coding.c (decode_eol): Pay attention to coding->dst_multibyte.
9747
97482008-02-05 Miles Bader <miles@gnu.org>
9749
9750 * xfaces.c (get_lface_attributes, merge_named_face)
9751 (lookup_named_face, lookup_derived_face, realize_named_face):
9752 Revert 2008-02-01 change by cyd@stupidchicken.com.
9753
97542008-02-04 Kenichi Handa <handa@ni.aist.go.jp>
9755
9756 * fontset.c (Ffontset_info): Handle the case of inhibitting the
9757 fallback fonts.
9758 (Ffontset_info) [USE_FONT_BACKEND]: Fix getting of opened font names.
9759
97602008-02-04 Jason Rumney <jasonr@gnu.org>
9761
9762 * w32font.c (w32font_open_internal): Use font_unparse_fcname to
9763 set full_name.
9764 (w32font_open_internal): Use xmalloc, xrealloc, xfree.
9765
97662008-02-03 Jason Rumney <jasonr@gnu.org>
9767
9768 * makefile.w32-in (OBJ1): Include font.o here.
9769 (FONTOBJ) [USE_FONTBACKEND]: Instead of here.
9770
97712008-02-02 Jason Rumney <jasonr@gnu.org>
9772
9773 * makefile.w32-in (temacs): Bump EMHEAP to 21.
9774
97752008-02-01 Jason Rumney <jasonr@gnu.org>
9776
9777 * s/cygwin.h: Define VIRT_ADDR_VARIES.
9778
9779 * puresize.h [VIRT_ADDR_VARIES]: Don't include CYGWIN in condition.
9780
97812008-02-01 Andreas Schwab <schwab@suse.de>
9782
9783 * Makefile.in (shortlisp, lisp): Update for rename of
9784 ../lisp/language/myanmar.el.
9785
97862008-02-01 Chong Yidong <cyd@stupidchicken.com>
9787
9788 * xfaces.c (get_lface_attributes): Delete function.
9789 (merge_named_face, lookup_named_face, lookup_derived_face)
9790 (realize_named_face): Call lface_from_face_name directly, and use
9791 the fact that merge_face_vectors does not alter its FROM argument.
9792
97932008-02-01 Jason Rumney <jasonr@gnu.org>
9794
9795 * w32term.c (w32_read_socket) <WM_CHAR>: Decode non-Unicode
9796 input in the default locale. Handle non-Unicode multibyte input.
9797
97982008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
9799
9800 * fontset.c (reorder_font_vector): Exclude nil elements from the
9801 font group. Don't try multiple fonts.
9802 (fontset_font): Adjust for the above change.
9803 (Finternal_char_font): Return nil if the found font doesn't
9804 contain the character ch.
9805
9806 * Makefile.in (lisp, shortlisp): Add cham.el.
9807
98082008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
9809
9810 * font.h (FONTP): Make it return 1 also for a font-object.
9811
9812 * .gdbinit (xfontset): New function.
9813
9814 * font.c (font_find_for_lface): Check if the character C is
9815 supported or not only for the first font.
9816
9817 * fontset.c (reorder_font_vector): Fix typo.
9818 (fontset_find_font): Don't add a font-spec specifying a script.
9819 Use 0 (not Qt) for the indication of empty font-group. Change the
9820 format of RFONT-DEF. Return Qt if no font in the font-group
9821 support the character.
9822 (fontset_font): Adjust for the above change. If no font was
9823 found the character, remember that.
9824 (face_for_char): Adjust for the change of RFONT-DEF.
9825 (Fset_fontset_font): Allow nil for FONT-SPEC to explicitly specify
9826 no font for the target.
9827 (Finternal_char_font): Adjust for the change of RFONT-DEF.
9828
98292008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
9830
9831 * font.c (font_load_for_face): Handle the case that the font in
9832 face->lface is a string.
9833
98342008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
9835
9836 * xfaces.c (set_lface_from_font_and_fontset): Set the fontname in lface.
9837
98382008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
9839
9840 * xfaces.c (Finternal_set_lisp_face_attribute) [USE_FONT_BACKEND]:
9841 Fix previous change. If the frame is not on a window system,
9842 signal an error.
9843
98442008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
9845
9846 * coding.c (decode_coding_object, encode_coding_object): Adjust
9847 marker positions after conversion.
9848
9849 * lisp.h (struct Lisp_Marker): New member need_adjustment.
9850
98512008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
9852
9853 * font.c (font_find_for_lface): Fix the handling of the return
9854 value of font_has_char.
9855 (Ffont_shape_text): Fix previous change.
9856
9857 * fontset.c (FONTSET_REF_AND_RANGE): Delete it.
9858 (fontset_ref_and_range): Delete it.
9859 (fontset_find_font): Call char_table_ref_and_range instead of
9860 FONTSET_REF_AND_RANGE.
9861 (make_fontset): Don't setup font groups of Latin here.
9862 (Fset_fontset_font): Don't overwrite the setting of FONTSET_ASCII.
9863 (new_fontset_from_font): Make the specified font the default for
9864 all Latin characters.
9865
98662008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
9867
9868 * xfaces.c (Finternal_set_lisp_face_attribute): Check if the frame
9869 is on a window system before accessing the fontset of the frame.
9870
98712008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
9872
9873 * Makefile.in (lisp, shortlisp): Add kherm.el and myanmar.el.
9874
9875 * ftfont.c (ftfont_driver): Set ftfont_shape in ftfont_driver only
9876 when both HAVE_M17N_FLT and HAVE_LIBOTF are defined.
9877
9878 * font.c (Ffont_shape_text): If the font driver doesn't have a
9879 shaper function, make zero-width glyphs to have at least one-pixel
9880 width. Fix setting of `to' field of glyphs.
9881
98822008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
9883
9884 * ftfont.c (ftfont_drive_otf): Fix setting of FROM and TO slots of
9885 glyphs.
9886
9887 * font.h (struct font_driver): Improve docstring of member `shape'.
9888
98892008-02-01 Kenichi Handa <handa@m17n.org>
9890
9891 * composite.c (syms_of_composite): Fix docstring of
9892 auto-composition-function.
9893
9894 * font.h (LGLYPH_SIZE): New macro.
9895
9896 * font.c (Ffont_fill_gstring): Stop filling when a character not
9897 supported by the font is found.
9898 (Ffont_shape_text): When a shape callback function returns nil,
9899 try at most two more times with larger gstring.
9900 (Ffont_at): Fix getting of w. Call font_at with correct 5th argument.
9901
9902 * xdisp.c (handle_auto_composed_prop): Change the argument to
9903 auto-composition-function.
9904
9905 * ftfont.c (ftfont_encode_char): Use the macro FONT_INVALID_CODE.
9906 (ftfont_shape_by_flt): If an element of lgstring is nil, make a
9907 Lispy glyph and store it in the lgstring.
9908
9909 * xfont.c (xfont_encode_char): Use the macro FONT_INVALID_CODE.
9910
9911 * xftfont.c (xftfont_encode_char): Use the macro FONT_INVALID_CODE.
9912
99132008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
9914
9915 * font.c (Ffont_shape_text): Avoid unnecessary composition.
9916
9917 * fontset.c (Vfont_encoding_charset_alist): New variable.
9918 (syms_of_fontset): DEFVAR it.
9919 (reorder_font_vector, fontset_find_font): Optimize for the case of
9920 no need of reordering.
9921 (face_for_char): Map the charset property by
9922 Vfont_encoding_charset_alist.
9923
99242008-02-01 Jason Rumney <jasonr@gnu.org>
9925
9926 * w32font.c (logfonts_match): Don't check adstyle here.
9927 (font_matches_spec): Check here against physical font instead.
9928 (add_font_entity_to_list): Avoid some substitutions.
9929
9930 * font.c (font_parse_fcname): Default weight and slant to normal.
9931 (font_score): Prefer normal fonts if weight or slant unspecified.
9932 (font_score) [WINDOWSNT]: Scale weight difference down to closer
9933 match freetype scores.
9934
99352008-02-01 Jason Rumney <jasonr@gnu.org>
9936
9937 * w32font.c (w32font_text_extents): Don't use the frame stored in the
9938 font, as it may have been deleted.
9939 (w32_enumfont_pattern_entity): Map generic family to adstyle using
9940 most common hyphenless variation.
9941 (logfonts_match): Check generic family.
9942 (font_matches_spec): Don't check generic family here.
9943 (fill_in_logfont): Set generic family based on adstyle.
9944
9945 * w32font.h (w32font_get_cache): Update declaration.
9946
99472008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
9948
9949 * ftfont.c (ftfont_get_cache): Adjust the argument type.
9950
9951 * frame.c (x_set_font_backend): Don't call Fclear_font_cache.
9952 If none of the new drivers are available, call font_update_drivers
9953 with the old drivers.
9954
9955 * w32font.c (w32font_get_cache): Adjust the argument type.
9956
9957 * xfont.c (xfont_get_cache): Adjust the argument type.
9958
9959 * font.h (struct font_driver): Change argument type of get_cache.
9960
9961 * xftfont.c (xftfont_start_for_frame): Delete prototype.
9962
9963 * font.c (Ffont_get): Fix arguments to Fassoc.
9964 (font_prepare_cache, font_finish_cache, font_get_cache): New functions.
9965 (font_clear_cache): New function.
9966 (font_list_entities, font_matching_entity): Use font_get_cache.
9967 (font_update_drivers): Call font_clear_cache when finishing a driver.
9968
9969 * fontset.c (fontset_find_font): Fix previous change.
9970
99712008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
9972
9973 * xterm.c (x_check_font) [USE_FONT_BACKEND]: Don't access
9974 dpyinfo->font_table.
9975 (x_delete_display) [USE_FONT_BACKEND]: Likewise.
9976 (x_delete_terminal) [USE_FONT_BACKEND]: Likewise.
9977
9978 * font.c (font_at): Handle the case that the arg C is negative.
9979 Handle the unibyte case.
9980 (Ffont_at): Call font_at with the arg C -1.
9981
9982 * xdisp.c (handle_auto_composed_prop): Don't get a character at
9983 the position here, and call font_at with the arg C -1.
9984 Don't check the range of the existing composition at the point.
9985
99862008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
9987
9988 * fontset.c (fontset_add): New args charset_id and family.
9989 Change caller.
9990 (load_font_get_repertory, fontset_find_font): Assume that
9991 font_spec is always a font-spec object.
9992 (Fset_fontset_font): Always store a font-spec object in a fontset.
9993
9994 * xdisp.c (handle_auto_composed_prop): Use Fget_text_property
9995 instead of get_property_and_range.
9996
99972008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
9998
9999 * xftfont.c (struct xftfont_info): Delete the member ft_face.
10000 (xftfont_open): Don't keep locking face.
10001 (xftfont_close): Don't unlock face.
10002 (xftfont_anchor_point, xftfont_shape): Lock and unlock face.
10003
10004 * fontset.c (fontset_find_font): Don't prefer a font of
10005 supplementary charset.
10006
100072008-02-01 Kenichi Handa <handa@m17n.org>
10008
10009 * ftfont.c (struct OpenTypeSpec): Rename members script_tag to
10010 script, langsys_tag to langsys, new member script.
10011 (OTF_TAG_STR): Terminate by '\0'.
867d4bb3 10012 (ftfont_get_open_type_spec): If :otf prop is spec, limit the
aac0c6e3
MR
10013 listing to the script specified in that property. Fix arg to
10014 OTF_check_features.
10015
100162008-02-01 Jason Rumney <jasonr@gnu.org>
10017
10018 * w32font.h: New file.
10019
10020 * w32font.c: Include it.
10021 (struct w32font_info): Add owning_frame field. Move to w32font.h.
10022 (w32font_open): Set owning_frame.
10023 (w32font_text_extents): Use owning_frame.
10024 (struct font_callback_data): Add opentype_only field.
10025 (add_font_entity_to_list): Use it to filter fonts.
10026 Don't check against full name.
10027 (w32font_list_internal): New function.
10028 (w32font_list): Use it.
10029 (w32font_match_internal): New function.
10030 (w32font_match): Use it.
10031 (w32font_open_internal): New function.
10032 (w32font_open): Use it.
10033 (w32font_get_cache, w32font_close, w32font_has_char)
10034 (w32font_encode_char, w32font_text_extents, w32font_draw):
10035 Make non-static.
10036
10037 * makefile.w32-in (w32font.o): Depend on w32font.h.
10038
100392008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
10040
10041 * charset.c (Fdefine_charset_internal): Record a supplementary
10042 charset at the tail of Vcharset_order_list.
10043
10044 * font.c (Ffont_shape_text): Fix the return value.
10045
10046 * ftfont.c (OTF_SYM_TAG, OTF_TAG_STR): Fix argument names.
10047
10048 * xdisp.c (handle_auto_composed_prop): Fix previous change.
10049
100502008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
10051
10052 * ftfont.c (struct OpenTypeSpec): New struct.
10053 (OTF_SYM_TAG, OTF_TAG_STR): New macros.
10054 (ftfont_get_open_type_spec): New function.
10055 (ftfont_list) [HAVE_LIBOTF]: Check otf-spec property.
10056
10057 * lread.c (read1): Redo the previous change with checking Vpurify_flag.
10058
100592008-02-01 Jason Rumney <jasonr@gnu.org>
10060
10061 * w32font.c (add_font_entity_to_list): Compare only the beginning
10062 of full name.
10063
100642008-02-01 Kenichi Handa <handa@m17n.org>
10065
10066 * xdisp.c (handle_auto_composed_prop): Simplify the code.
10067 Never return HANDLED_RECOMPUTE_PROPS.
10068
100692008-02-01 Kenichi Handa <handa@m17n.org>
10070
10071 * font.c (font_gstring_produce): Delete it.
10072
10073 * composite.h (COMPOSITION_METHOD):
10074 Handle COMPOSITION_WITH_GLYPH_STRING.
10075
100762008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
10077
10078 * xfont.c (Qx): Delete.
10079 (syms_of_xfont): Don't initialize Qx.
10080
10081 * composite.h (enum composition_method):
10082 Define COMPOSITION_WITH_GLYPH_STRING unconditionally.
10083
100842008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
10085
10086 * xfaces.c [HAVE_WINDOW_SYSTEM]: Include "font.h" unconditionally.
10087 (choose_face_font): Accept new form of font-spec.
10088
10089 * frame.h (font_driver_list): Declare it unconditionally.
10090 (struct frame): Define members font_driver_list and font_data_list
10091 unconditionally.
10092
10093 * fontset.c: Include "font.h" unconditionally.
10094 (generate_ascii_font_name): Use font_parse_xlfd and font_unparse_xlfd.
10095 (Fset_fontset_font): Accept a font-spec object.
10096
10097 * font.c (font_unparse_xlfd): If pixel_size is zero, make the
10098 PIXEL_SIZE part a wild card.
10099
10100 * dispextern.h (struct glyph_string): Define members clip and
10101 num_clips unconditionally.
10102 (struct face): Define members font_info and extra unconditionally.
10103
10104 * ftfont.c (ftfont_open): Set members maybe_otf and otf of
10105 ftfont_info only when HAVE_LIBOTF is defined.
10106
101072008-02-01 Andreas Schwab <schwab@suse.de>
10108
10109 * xdisp.c (back_to_previous_visible_line_start): Fix type of beg
10110 and end.
10111
101122008-02-01 Jason Rumney <jasonr@gnu.org>
10113
10114 * w32font.c (w32font_driver): Add new fields.
10115
101162008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
10117
10118 * Makefile.in (ALL_CFLAGS): Add @M17N_FLT_CFLAGS@.
10119 (FONTSRC, FONTOBJ) [HAVE_WINDOW_SYSTEM]: Set them unconditionally.
10120 (LIBES): Add @M17N_FLT_CFLAGS@.
10121
10122 * composite.c (compose_text): Don't treat the new style
10123 composition specially.
10124
10125 * emacs.c (main): Call syms_of_font unconditionally.
10126
10127 * font.h (FONT_ENTITY_NOT_LOADABLE)
10128 (FONT_ENTITY_SET_NOT_LOADABLE): New macros.
10129 (LGSTRING_XXXX, LGLYPH_XXX): Adjust for the change of lispy gstring.
10130 (struct font_driver): New member shape.
10131 (font_registry_charsets): Extern it.
10132 (font_find_for_lface, font_prepare_composition): Adjust prototype.
10133 (font_otf_capability, font_drive_otf): Delete their externs.
10134
10135 * font.c [HAVE_M17N_FLT]: Include <m17n-flt.h>.
10136 (font_charset_alist, font_registry_charsets): Move from xfont.c
10137 and rename.
10138 (font_prop_validate_otf): New function.
10139 (font_property_table): Register it for QCotf.
10140 (DEVICE_DELTA, adjust_anchor, REPLACEMENT_CHARACTER)
10141 (font_drive_otf): Delete.
10142 (font_prepare_composition): New arg F. Adjust for the change of
10143 lispy gstring.
10144 (font_find_for_lface): New arg C.
10145 (font_load_for_face): Adjust for the change of font_find_for_lface.
10146 (Ffont_make_gstring, Ffont_fill_gstring): Adjust for the change of
10147 lispy gstring.
10148 (Ffont_shape_text): New function.
10149 (Fopen_font): If the font size is not given, use 12-pixel.
10150 (Ffont_at): New arg STRING.
10151 (syms_of_font): Initalize font_charset_alist.
10152 Declare Ffont_shape_text as a Lisp function. Call syms_of_XXfont
10153 conditionally.
10154
10155 * fontset.c (fontset_find_font) [USE_FONT_BACKEND]: Try multiple
10156 fonts of the same font-spec. Change the format of RFONT-DEF.
10157 (face_for_char, make_fontset_for_ascii_face, Finternal_char_font):
10158 Adjust for the change of RFONT-DEF.
10159 (Fset_fontset_font) [USE_FONT_BACKEND]: Handle new format of font-spec.
10160
10161 * ftfont.h: New file.
10162
10163 * ftfont.c: Don't include Freetype headers. Include "ftfont.h".
10164 (struct ftfont_info) [HAVE_LIBOTF]: New members maybe_otf and otf.
10165 (ftfont_open) [HAVE_LIBOTF]: Initialize the above members.
10166 (ftfont_driver) [HAVE_LIBOTF, HAVE_M17N_FLT]: Don't set
10167 font_otf_capability and font_drive_otf, set ftfont_shape.
10168 (ftfont_list): Adjust for the change of :otf property value.
10169 (struct MFLTFontFT) [HAVE_LIBOTF, HAVE_M17N_FLT]: New struct.
10170 (ftfont_get_glyph_id, ftfont_get_metrics, ftfont_check_otf)
10171 (adjust_anchor, ftfont_drive_otf, ftfont_shape_by_flt)
10172 (ftfont_shape) [HAVE_LIBOTF, HAVE_M17N_FLT]: New function.
10173 (DEVICE_DELTA) [HAVE_LIBOTF, HAVE_M17N_FLT]: New macro.
10174 (otf_gstring, gstring, m17n_flt_initialized): New variables.
10175
10176 * w32term.c (x_draw_composite_glyph_string_foreground):
10177 Adjust for the change of lispy gstring.
10178
10179 * xdisp.c (handle_composition_prop): Adjust for the change of
10180 lispy gstring. Call a function for auto-composition with the
10181 third arg it->window.
10182 (fill_composite_glyph_string): Adjust for the change of lispy string.
10183 (x_produce_glyphs): Adjust for the change of font_prepare_compositionl.
10184
10185 * xfaces.c (set_font_frame_param): Adjust for the change of
10186 font_find_for_lface.
10187
10188 * xfont.c (x_font_charset_alist): Move to font.c and rename.
10189 (xfont_registry_charsets): Likewise. Change caller.
10190 (syms_of_xfont): Don't handle x_font_charset_alist.
10191
10192 * xftfont.c: Include "ftfont.h".
10193 (struct xftfont_info) [HAVE_LIBOTF]: New members maybe_otf and otf.
10194 (xftfont_open) [HAVE_LIBOTF]: Initialize the above members.
10195 (xftfont_close) [HAVE_LIBOTF]: Close otf.
10196 (xftfont_shape) [HAVE_LIBOTF, HAVE_M17N_FLT]: New function.
10197 (syms_of_xftfont) [HAVE_LIBOTF, HAVE_M17N_FLT]:
10198 Set xftfont_driver.shape to xftfont_shape.
10199
10200 * xterm.c (x_draw_composite_glyph_string_foreground): Adjust for
10201 the change of lispy gstring.
10202
102032008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
10204
10205 * ftxfont.c (ftxfont_end_for_frame): Fix array indexing error.
10206
102072008-02-01 Jason Rumney <jasonr@gnu.org>
10208
10209 * w32font.c (w32font_draw): Fill background manually.
10210
102112008-02-01 Jason Rumney <jasonr@gnu.org>
10212
10213 * font.c (Qfontp): Remove unused symbol.
10214 (QCantialias): New symbol.
10215 (syms_of_font): Define it.
10216 (font_property_table): Set a validator for QCantialias.
10217
10218 * w32font.c (CLEARTYPE_QUALITY, CLEARTYPE_NATURAL_QUALITY):
10219 Define if not already.
10220 (QCfamily): Share with xfaces.c.
10221 (Qstandard, Qsubpixel, Qnatural): New symbols.
10222 (syms_of_w32font): Define them. Don't define QCfamily here.
10223 (w32_antialias_type, lispy_antialias_type): New functions.
10224 (w32_enumfont_pattern_entity): New arg requested_font.
10225 Set antialias parameter if non-default was requested.
10226 (fill_in_logfont): Fill in lfQuality if :antialias specified.
10227
102282008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
10229
10230 * lread.c (read1): Undo the previous change.
10231
102322008-02-01 CHENG Gao <chenggao@gmail.com> (tiny change)
10233
10234 * frame.c (Fdelete_frame): Call font_update_drivers only when
10235 USE_FONT_BACKEND is defined.
10236
102372008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
10238
10239 * font.h (struct font_bitmap): New member bits_per_pixel.
10240 (struct font_driver): New members start_for_frame and end_for_frame.
10241 (struct font_data_list): New struct.
10242 (font_put_frame_data, font_get_frame_data): Extern them.
10243
10244 * frame.h (struct frame): New member font_data_list.
10245
10246 * font.c (font_update_drivers): Call driver->start_for_frame and
10247 driver->end_for_frame at proper timings.
10248 (font_put_frame_data, font_get_frame_data): New functions.
10249 (Ffont_spec): Add usage in the docstring.
10250
10251 * frame.c (make_frame): Initialize f->font_data_list to NULL.
10252 (Fdelete_frame): Call font_update_drivers.
10253
10254 * xftfont.c (struct xftface_info): Delete the member xft_draw.
10255 (xftfont_prepare_face, xftfont_done_face): Adjust for the above change.
10256 (xftfont_get_xft_draw): New function.
10257 (xftfont_draw): Get XftDraw by xftfont_get_xft_draw.
10258 (xftfont_end_for_frame): New function.
10259 (syms_of_xftfont): Set xftfont_driver.end_for_frame.
10260
10261 * ftxfont.c (ftxfont_get_gcs): Rename from ftxfont_create_gcs.
10262 Change argument. Cache GCs in the per-frame data.
10263 (struct ftxfont_frame_data): New struct.
10264 (ftxfont_draw_bitmap): New arg gc_fore and flush.
10265 (ftxfont_prepare_face, ftxfont_done_face): Delete them.
10266 (ftxfont_draw): Get GCs by ftxfont_get_gcs. Reflect s->clip in GCs.
10267 (ftxfont_end_for_frame): New function.
10268 (syms_of_ftxfont): Set ftxfont_driver.end_for_frame.
10269
10270 * ftfont.c (ftfont_get_bitmap): Set bitmap->bits_per_pixel.
10271
102722008-02-01 Kenichi Handa <handa@m17n.org>
10273
10274 * xselect.c (Vselection_coding_system)
10275 (Vnext_selection_coding_system): Delete them.
10276 (syms_of_xselect): Don't declare selection-coding-system and
10277 next-selection-coding-system. They are declared in select.el.
10278
102792008-02-01 Jason Rumney <jasonr@gnu.org>
10280
10281 * w32term.h (WM_UNICHAR, UNICODE_NOCHAR): Define if not already.
10282
10283 * w32fns.c: Include imm.h.
10284 (get_composition_string_fn, get_ime_context_fn): New optional
10285 system functions.
10286 (globals_of_w32fns): Load them from imm32.dll.
10287 (ignore_ime_char): New flag.
10288 (w32_wnd_proc): Handle WM_UNICHAR, WM_IME_CHAR and
10289 WM_IME_ENDCOMPOSITION messages.
10290
10291 * w32term.c (w32_read_socket) [WM_UNICHAR]: Handle as
10292 MULTIBYTE_CHAR_KEYSTROKE_EVENT.
10293
102942008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
10295
10296 * lread.c (READCHAR): Call readchar with the 2nd arg NULL.
10297 (READCHAR_REPORT_MULTIBYTE): New macro.
10298 (readchar): New 2nd arg MULTIBYTE.
10299 (read1): Use READCHAR_REPORT_MULTIBYTE for the first read.
10300 Make symbol's name multibyte according to the multibyteness of the
10301 source.
10302
103032008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
10304
10305 * xfaces.c (face_for_overlay_string): Call lookup_face with
10306 correct arguments (fix of synching with the trunk).
10307
103082008-02-01 Kenichi Handa <handa@m17n.org>
10309
10310 * font.c (font_prop_validate_symbol, font_prop_validate_style)
10311 (font_prop_validate_non_neg, font_prop_validate_spacing):
10312 Delete argument prop_index.
10313 (font_property_table): Change arguments to validater. Change Callers.
10314 (font_lispy_object): Delete.
10315 (font_at): Use font_find_object instead fo font_lispy_object.
10316
103172008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
10318
10319 * fileio.c (Fexpand_file_name): Adjust multibyteness of directory
10320 and file names.
10321
103222008-02-01 Jason Rumney <jasonr@gnu.org>
10323
10324 * w32font.c (add_font_name_to_list): Avoid vertical fonts.
10325 (font_matches_spec): Remove debug output.
10326 (add_font_entity_to_list): Avoid using substituted fonts.
10327
103282008-02-01 Jason Rumney <jasonr@gnu.org>
10329
10330 * doc.c (Fsnarf_documentation):
10331 * Makefile.in (temacs${EXEEXT}, mostlyclean): Undo last change.
10332
103332008-02-01 Miles Bader <miles@gnu.org>
10334
10335 * dispextern.h (struct glyph_row): Only define "clip" field if
10336 HAVE_WINDOW_SYSTEM is defined.
10337
103382008-02-01 Stefan Monnier <monnier@iro.umontreal.ca>
10339
10340 Fix up multi-tty merge.
10341
10342 * xterm.c (handle_one_xevent): Remove duplicate code and fix up nesting
10343 and indentation.
10344
10345 * xfaces.c (free_realized_face, clear_face_gcs):
10346 Include font_done_for_face in the input_blocked section, just in case.
10347
10348 * xdisp.c (decode_mode_spec): Use terminal-local coding systems.
10349 (get_char_face_and_encoding): Undo last change and remove the *other*
10350 duplicate definition (i.e. keep the one that's better scoped and that
10351 includes code for the font-backend).
10352
10353 * terminal.c (create_terminal): Default keyboard_coding to
10354 `no-conversion' and terminal_coding to `undecided'.
10355
10356 * lread.c (read1): Use XSETPVECTYPE to set a pseudovector's tag.
10357
10358 * fontset.c (free_realized_fontsets): Check that the table entry does
10359 contain a fontset before trying to compare it to `base'.
10360
10361 * emacs.c (main): Move syms_of_data, syms_of_fileio, syms_of_alloc,
10362 syms_of_charset, and syms_of_coding earlier because init_window_once
10363 now needs Vcoding_system_hash_table to be setup.
10364
10365 * coding.h (default_buffer_file_coding): Remove.
10366
10367 * coding.c (default_buffer_file_coding): Remove.
10368 (Fterminal_coding_system, Fkeyboard_coding_system): Use ->id rather
10369 than ->symbol, and use the terminal-local coding system.
10370 (syms_of_coding): Don't setup the coding-systems that are not
10371 terminal-local.
10372 (Fdefine_coding_system_internal): Use XCAR/XCDR.
10373
10374 * chartab.c (Fmake_char_table, make_sub_char_table, copy_char_table):
10375 Use XSETPVECTYPE now that XSETCHAR_TABLE doesn't set the tag anymore.
10376
10377 * alloc.c (Fmake_char_table, make_sub_char_table): Remove. They're now
10378 in chartab.c and were re-added here by mistake.
10379 (Fpurecopy): Use XSETPVECTYPE after copying a COMPILED pseudovector.
10380
10381 * doc.c (Fsnarf_documentation):
10382 * Makefile.in (temacs${EXEEXT}, mostlyclean): Move buildobj.lst from
10383 src to etc.
10384
10385 * ChangeLog.10: Add mistakenly removed entry.
10386
103872008-02-01 Dan Nicolaescu <dann@ics.uci.edu>
10388
10389 * Makefile.in (fringe.o, minibuf.o): Fix dependencies.
10390
103912008-02-01 Miles Bader <miles@gnu.org>
10392
10393 * xdisp.c (get_char_face_and_encoding): Remove extraneous definition.
10394 Add extra args to FACE_FOR_CHAR.
10395
103962008-02-01 Kenichi Handa <handa@m17n.org>
10397
10398 * keymap.c (where_is_internal_1): If key is a cons, store the copy
10399 in sequence.
10400
10401 * chartab.c (map_sub_char_table, map_char_table): If the range
10402 contains just one character, call the function with that character
10403 even if the depth is not 3.
10404
104052008-02-01 Jason Rumney <jasonr@gnu.org>
10406
10407 * w32font.c (w32font_text_extents): Calculate metrics for the
10408 whole string.
10409
104102008-02-01 Jason Rumney <jasonr@gnu.org>
10411
10412 * w32xfns.c (get_next_msg): Consolidate WM_PAINT messages.
10413
104142008-02-01 Jason Rumney <jasonr@gnu.org>
10415
10416 * w32term.c (x_set_glyph_string_clipping): Use
10417 get_glyph_string_clip_rects.
10418 (x_set_glyph_string_clipping_exactly, x_draw_glyph_string):
10419 Adjust for the change of struct glyph_string.
10420
10421 * w32font.c (w32font_draw): Do clipping here.
10422
104232008-02-01 Kenichi Handa <handa@m17n.org>
10424
10425 * xftfont.c (xftfont_draw): Adjust for the change of struct
10426 glyph_string.
10427
10428 * xterm.c (x_set_glyph_string_clipping): Use
10429 get_glyph_string_clip_rects.
10430 (x_set_glyph_string_clipping_exactly, x_draw_glyph_string):
10431 Adjust for the change of struct glyph_string.
10432
10433 * xdisp.c (get_glyph_string_clip_rects): Reflect s->row->clip to
10434 the resulting clip(s}.
10435 (expose_overlaps): Add arg r. Change callers. Set it to
10436 row->clip temporarily.
10437 (expose_window): Redraw rows overlapping the exposed area.
10438
10439 * dispextern.h (struct glyph_row): New member clip.
10440 (struct glyph_string): Delete members clip_x, clip_y, clip_width,
10441 clip_height, new member clip, and num_clips.
10442
104432008-02-01 Kenichi Handa <handa@m17n.org>
10444
10445 * data.c (Fchar_or_string_p): Fix docstring.
10446
104472008-02-01 Kenichi Handa <handa@m17n.org>
10448
10449 * xftfont.c (xftfont_draw): If s->font_info != s->face->font_info,
10450 create a temporary XftDraw object.
10451
104522008-02-01 Kenichi Handa <handa@m17n.org>
10453
10454 * font.c (Ffontp): Fix docstring.
10455
10456 * coding.c (detect_coding_iso_2022): Don't treat SI/SO codes as a
10457 strong evidence of ISO-2022.
10458
104592008-02-01 Kenichi Handa <handa@m17n.org>
10460
10461 * abbrev.c (abbrev_check_chars): Use CHAR_TABLE_REF, not
10462 SYNTAX_ENTRY_FOLLOW_PARENT.
10463
104642008-02-01 Stefan Monnier <monnier@iro.umontreal.ca>
10465
10466 * fns.c (weak_hash_tables): Rename from Vweak_hash_tables and change
10467 its type.
10468 (make_hash_table, copy_hash_table, sweep_weak_hash_tables, init_fns):
10469 Update to the new type of weak_hash_tables and next_weak.
10470
10471 * lisp.h (struct Lisp_Hash_Table): Change next_weak from Lisp_Object to
10472 a plain C pointer to Lisp_Hash_Table.
10473
10474 * lisp.h (XGCTYPE, GC_HASH_TABLE_P, GC_NILP, GC_NUMBERP, GC_NATNUMP)
10475 (GC_INTEGERP, GC_SYMBOLP, GC_MISCP, GC_VECTORLIKEP, GC_STRINGP)
10476 (GC_CONSP, GC_FLOATP, GC_VECTORP, GC_OVERLAYP, GC_MARKERP)
10477 (GC_INTFWDP, GC_BOOLFWDP, GC_OBJFWDP, GC_BUFFER_OBJFWDP)
10478 (GC_BUFFER_LOCAL_VALUEP, GC_SOME_BUFFER_LOCAL_VALUEP)
10479 (GC_KBOARD_OBJFWDP, GC_PSEUDOVECTORP, GC_WINDOW_CONFIGURATIONP)
10480 (GC_PROCESSP, GC_WINDOWP, GC_SUBRP, GC_COMPILEDP, GC_BUFFERP)
10481 (GC_SUB_CHAR_TABLE_P, GC_CHAR_TABLE_P, GC_BOOL_VECTOR_P, GC_FRAMEP)
10482 (GC_EQ): Remove since they've been identical to their non-GC_
10483 alter-egos ever since the markbit was eradicated.
10484
10485 * alloc.c:
10486 * buffer.c:
10487 * buffer.h:
10488 * data.c:
10489 * fileio.c:
10490 * filelock.c:
10491 * fns.c:
10492 * frame.h:
10493 * lisp.h:
10494 * macterm.c:
10495 * print.c:
10496 * process.c:
10497 * w32fns.c:
10498 * w32menu.c:
10499 * w32term.c:
10500 * xfns.c:
10501 * xmenu.c:
10502 * xterm.c: Replace uses of GC_* macros with the non-GC_ versions.
10503
105042008-02-01 Kenichi Handa <handa@m17n.org>
10505
10506 * chartab.c (map_sub_char_table): Make it work for the top-level
10507 char-table. Fix handling of parent char-table.
10508 (map_char_table): Adjust for the above change.
10509
105102008-02-01 Jason Rumney <jasonr@gnu.org>
10511
10512 * w32font.c (Qgdi): Rename from Qw32.
10513
105142008-02-01 Jason Rumney <jasonr@gnu.org>
10515
10516 * w32bdf.c (get_quoted_string): Make function static.
10517
105182008-02-01 Kenichi Handa <handa@m17n.org>
10519
10520 * xftfont.c (xftfont_open): If one of font's ASCII glyph has
10521 bigger ascent and descent than those of the font, use them as
10522 font's ascent and descent.
10523
105242008-02-01 Kenichi Handa <handa@m17n.org>
10525
10526 * Makefile.in (${lispsource}international/charprop.el): Move this
10527 target within "#ifdef HAVE_UNIDATA" and "#endif".
10528
105292008-02-01 Kenichi Handa <handa@m17n.org>
10530
10531 * Makefile.in (lisp): Add ${lispsource}language/tai-viet.el.
10532 (shortlisp): Add ../lisp/language/tai-viet.el.
10533
105342008-02-01 Ulrich Mueller <ulm@gentoo.org>
10535
10536 * Makefile.in (${lispsource}international/charprop.el): Depend on
10537 temacs${EXEEXT}.
10538
105392008-02-01 Jason Rumney <jasonr@gnu.org>
10540
10541 * w32font.c (w32font_close): Delete the GDI font object.
10542
10543 * w32menu.c: Include character.h.
10544
10545 * w32proc.c: Likewise.
10546
10547 * w32select.c: Likewise.
10548
10549 * makefile.w32-in (w32proc.o): Depend on character.h.
10550
105512008-02-01 Jason Rumney <jasonr@gnu.org>
10552
10553 * w32fns.c (syms_of_w32fns): Use DEFSYM macro.
10554
10555 * w32menu.c (syms_of_w32menu): Likewise.
10556
10557 * w32proc.c (syms_of_ntproc): Likewise.
10558
10559 * w32select.c (syms_of_w32select): Likewise.
10560
10561 * w32term.c (syms_of_w32term): Likewise.
10562
105632008-02-01 Jason Rumney <jasonr@gnu.org>
10564
10565 * w32font.c (w32font_draw): Delete brush after using it.
10566
105672008-02-01 Jason Rumney <jasonr@gnu.org>
10568
10569 * w32font.c (w32font_open): Don't set font_idx.
10570 (w32font_text_extents): Try GetTextExtentPoint32W before defaulting
10571 to font settings.
10572 (w32font_draw): Fill background explicitly.
10573
105742008-02-01 Jason Rumney <jasonr@gnu.org>
10575
10576 * w32term.c (w32_initialize): Don't call w32font_initialize.
10577
10578 * w32font.c (w32font_info): Remove subranges.
10579 (QCsubranges, Qmodern, Qswiss, Qroman): Remove.
10580 (QCfamily, Qmonospace, Qsans_serif, Qmono, Qsans, Qsans__serif)
10581 (Qraster, Qoutline, Qlatin, Qgreek, Qcoptic, Qcyrillic, Qarmenian)
10582 (Qhebrew, Qarabic, Qsyriac, Qnko, Qthaana, Qdevanagari, Qbengali)
10583 (Qgurmukhi, Qgujarati, Qoriya, Qtamil, Qtelugu, Qkannada)
10584 (Qmalayalam, Qsinhala, Qthai, Qlao, Qtibetan, Qmyanmar, Qgeorgian)
10585 (Qhangul, Qethiopic, Qcherokee, Qcanadian_aboriginal, Qogham)
10586 (Qrunic, Qkhmer, Qmongolian, Qsymbol, Qbraille, Qhan)
10587 (Qideographic_description, Qcjk_misc, Qkana, Qbopomofo, Qkanbun)
10588 (Qyi, Qbyzantine_musical_symbol, Qmusical_symbol, Qmathematical):
10589 New symbols.
10590 (font_callback_data): New struct.
10591 (w32font_list, w32font_match): Use it.
10592 (w32font_open): Don't populate subranges.
10593 (w32font_has_char): Use script Lisp symbols, not subrange bitmask.
10594 (w32font_encode_char): Always return unicode code-point as-is.
10595 (w32font_text_extents): Supply a transformation matrix to
10596 GetGlyphOutline. Never look up by glyph index. Avoid looping
10597 twice. Use unicode version of GetTexExtentPoint32 instead of
10598 glyph index version.
10599 (set_fonts_frame): Remove.
10600 (w32_enumfont_pattern_entity): Add frame parameter, use it to
10601 set frame parameter. Use backward compatible fake foundries.
10602 Save generic family in extra slot under QCfamily. Make width slot
10603 constant. Save QCspacing value. Save list of scripts instead of
10604 binary subranges.
10605 (w32_generic_family, logfonts_match, font_matches_spec): New functions.
10606 (add_font_entity_to_list): Use font_callback_data struct. Filter
10607 unwanted fonts.
10608 (add_one_font_entity_to_list): Use font_callback_data struct.
10609 (w32_registry): Default to iso10646_1.
10610 (fill_in_logfont): Use dpi from extra slot. Don't bother with
10611 string font registries. Don't fill in font name if it is a generic
10612 family name, fill family instead. Use spacing, family and script
10613 extra info to fill pitch, family and charset fields.
10614 (list_all_matching_fonts): Use font_callback_data struct.
10615 (unicode_range_for_char): Remove.
10616 (font_supported_scripts): New function.
10617 (w32font_initialize): Remove.
10618 (syms_of_w32font): Update which symbols are defined.
10619
106202008-02-01 Jason Rumney <jasonr@gnu.org>
10621
10622 * font.c (font_pixel_size): Reverse assq_no_quit args.
10623
10624 * w32term.h (FONT_WIDTH): Report max width, not average.
10625 (FONT_MAX_WIDTH): Remove.
10626 (FONT_AVG_WIDTH): New macro.
10627
10628 * xfaces.c (Fx_list_fonts) [WINDOWSNT]: Remove Windows only
10629 redefinition of FONT_WIDTH.
10630
10631 * w32term.c (x_font_min_bounds): Use FONT_AVG_WIDTH.
10632 (w32_cache_char_metrics): Use FONT_WIDTH.
10633
10634 * w32fns.c (w32_load_system_font, w32_list_fonts): Use FONT_AVG_WIDTH.
10635
106362008-02-01 Jason Rumney <jasonr@gnu.org>
10637
10638 * w32font.c (w32font_open): Make lfHeight negative.
10639
10640 * w32fns.c (x_default_font_parameter): Use new style font name.
10641 (Fx_create_frame, x_create_tip_frame): Initialize resx and resy.
10642
106432008-02-01 Jason Rumney <jasonr@gnu.org>
10644
10645 * w32font.c (QCsubranges): New symbol.
10646 (w32font_open, w32font_has_char): Get subranges from subproperty
10647 of extra.
10648 (w32_enumfont_pattern_entity): Set subranges as subproperty of extra.
10649 (syms_of_w32font): Define :subranges symbol.
10650
10651 * font.c (font_put_extra): Expose externally.
10652
10653 * font.h (font_put_extra): Move declaration from font.c.
10654
10655 * font.c (Ffont_get): Use font driver to determine otf capability.
10656 (adjust_anchor): Check if driver defines anchor_point before using.
10657
10658 * w32font.c (w32font_open): Handle size, height and pixel_size better.
10659 (w32font_draw): Use options.
10660 (w32_enumfont_pattern_entity): Set size to 0 for scalable fonts.
10661 Fix detection of truetype fonts.
10662 (registry_to_w32_charset): Handle charsets other than iso8859-1
10663 expressed as lisp symbols.
10664 (w32_registry): Express charset as lisp symbol.
10665 (fill_in_logfont): Reverse pixel and point height logic.
10666 Don't set width here. Set quality to default.
10667
10668 * w32fns.c (w32_load_system_font): Fix detecting FIXED_PITCH fonts.
10669 (x_to_w32_font): Fill in lfPitchAndFamily correctly.
10670
10671 * xterm.c (x_draw_glyph_string_foreground) [USE_FONT_BACKEND]:
10672 Remove redundant loop and allocation.
10673
10674 * makefile.w32-in (font.o, w32font.o): New objects.
10675 (fontset.o, xdisp.o, xfaces.o, w32fns.o, w32term.o): Depend on font.h.
10676 (FONTOBJ): New group of objects conditioned on USE_FONT_BACKEND.
10677
10678 * xdisp.c (fill_composite_glyph_string): Make the first arg to
10679 STORE_XCHARB a valid l-value.
10680
10681 * w32term.c (w32_native_per_char_metric): Swap width and rbearing
10682 calculations for non-Truetype fonts.
10683 (x_draw_glyph_string): Sync with xterm.c.
10684 (x_draw_glyph_string_foreground) [USE_FONT_BACKEND]:
10685 Remove redundant code.
10686 (w32_initialize) [USE_FONT_BACKEND]: Call w32font_initialize.
10687
10688 * w32term.h (w32_output_data) [USE_FONT_BACKEND]: Add fontp member.
10689 (FRAME_FONT_OBJECT) [USE_FONT_BACKEND]: New macro from xterm.h.
10690
10691 * w32fns.c [USE_FONT_BACKEND]: Port font backend changes from xfns.c.
10692 (x_to_w32_charset, w32_to_x_charset): Expose externally.
10693
10694 * w32font.c: New file for w32 font backend.
10695
106962008-02-01 Kenichi Handa <handa@m17n.org>
10697
10698 * term.c: Don't include "buffer.h" twice.
10699
107002008-02-01 Kenichi Handa <handa@m17n.org>
10701
10702 * character.c (Funibyte_string): New function.
10703 (syms_of_character): Defsubr it.
10704
107052008-02-01 Jason Rumney <jasonr@gnu.org>
10706
10707 * w32term.c [USE_FONT_BACKEND]:
10708 (x_get_font_repertory, note_mouse_movement, x_set_mouse_face_gc)
10709 (x_set_glyph_string_clipping, x_set_glyph_string_clipping_exactly)
10710 (x_draw_glyph_string, x_draw_glyph_string_foreground)
10711 (x_draw_composite_glyph_string_foreground, x_new_fontset2)
10712 (x_free_frame_resources): Sync with xterm.c.
10713
107142008-02-01 Andreas Schwab <schwab@suse.de>
10715
10716 * lread.c (read1): Use CHAR_TABLE_STANDARD_SLOTS to validate
10717 char-table size.
10718
107192008-02-01 Kenichi Handa <handa@m17n.org>
10720
10721 * font.c (check_otf_features): Define it regardless of HAVE_LIBOTF.
10722
107232008-02-01 Kenichi Handa <handa@m17n.org>
10724
10725 * ftfont.c (ftfont_driver): Delete font_otf_gsub and
10726 font_otf_gpos, add font_drive_otf.
10727
10728 * fontset.c (fontset_find_font): Pay attention to font size
10729 specified for a font.
10730 (reorder_font_vector): Check contents of font_def.
10731
10732 * font.c (struct otf_list): Delete it.
10733 (otf_list): Make it a lisp variable.
10734 (otf_open): Use lispy otf_list.
10735 (generate_otf_features): Rename from parse_gsub_gpos_spec.
10736 (check_otf_features): New function.
10737 (font_otf_DeviceTable, font_otf_ValueRecord, font_otf_Anchor):
10738 New functions.
10739 (font_drive_otf): New function merging font_otf_gsub and
10740 font_otf_gpos.
10741 (font_open_for_lface): New arg spec. Change argument order.
10742 (font_load_for_face): Adjust for the change of font_open_for_lface.
10743 (Ffont_drive_otf): New function merging Ffont_otf_gsub and
10744 Ffont_otf_gpos.
10745 (syms_of_font): Staticpro otf_list. Delete defsubr of
10746 Sfont_otf_gsub and Sfont_otf_gpos. Defsubr Sfont_drive_otf.
10747
10748 * xfaces.c (set_font_frame_param): Adjust for the change of
10749 font_open_for_lface.
10750
10751 * font.h (font_open_for_lface): Adjust prototype.
10752 (struct font_driver): Delete members otf_gsub and otf_gpos, add
10753 member otf_drive.
10754 (font_otf_gsub, font_otf_gpos): Delete externs.
10755 (font_drive_otf): Extern it.
10756
107572008-02-01 Kenichi Handa <handa@m17n.org>
10758
10759 * font.c (font_at): If the window W is not on a window system,
10760 return Qnil.
10761
10762 * coding.c (produce_chars, encode_coding): Don't call
10763 insert_from_gap if no characters to produce.
10764
107652008-02-01 Kenichi Handa <handa@m17n.org>
10766
10767 * fontset.c (free_realized_fontsets): Avoid unnecessary call of
10768 Fclear_face_cache.
10769
10770 * xfaces.c (face_for_font): Check also face->font==font->font.font.
10771
107722008-02-01 Miles Bader <miles@gnu.org>
10773
10774 * emacs.c (main): Change default value of `enable_font_backend' to 1.
10775 Parse "--disable-font-backend" option.
10776 (standard_args): Add "--disable-font-backend" option.
10777
107782008-02-01 Kenichi Handa <handa@m17n.org>
10779
10780 * fontset.c (fontset_find_font): New function.
10781 (fontset_font): Use fontset_find_font.
10782 (make_fontset_for_ascii_face): Don't set face ID in rfont_def.
10783 Register the specified font for all Latin characters.
10784 (new_fontset_from_font): Register the specified font for all Latin
10785 characters.
10786 (dump_fontset): For a realized fontset, include the base fontset
10787 name in the returned vector.
10788
107892008-02-01 Kenichi Handa <handa@m17n.org>
10790
10791 * character.h (CHAR_STRING): Cast C to unsigned on calling
10792 char_string.
10793
10794 * character.c (char_string): Type of arg C changed to unsigned.
10795 Signal an error if C is an invalid character code.
10796
10797 * editfns.c (general_insert_function, Fchar_to_string):
10798 Use CHARACTERP, not INTEGERP.
10799
108002008-02-01 Kenichi Handa <handa@m17n.org>
10801
10802 * character.h (MIN_MULTIBYTE_LEADING_CODE)
10803 (MAX_MULTIBYTE_LEADING_CODE): New macros.
10804
10805 * regex.c (analyse_first): Fix for multibyte characters in "case
10806 charset:" and "case categoryspec:".
10807
108082008-02-01 Andreas Schwab <schwab@suse.de>
10809
10810 * Makefile.in (LIBES): Move standard libraries to the end.
10811
108122008-02-01 Kenichi Handa <handa@m17n.org>
10813
10814 * alloc.c (Fgarbage_collect): If nextb->text->inhibit_shrinking is
10815 nonzero, don't shrink the buffer nextb.
10816
10817 * buffer.h (struct buffer_text): New member inhibit_shrinking.
10818
10819 * coding.c (coding_alloc_by_making_gap): New arg offset.
10820 (alloc_destination): Call coding_alloc_by_making_gap with the arg
10821 offset.
10822 (decode_coding_iso_2022): Update coding->safe_charsets.
10823 (decode_coding_gap): Temporarily set
10824 current_buffer->text->inhibit_shrinking to 1.
10825
108262008-02-01 Kenichi Handa <handa@m17n.org>
10827
10828 * xterm.c (x_draw_composite_glyph_string_foreground): Fix
10829 indexing into elements of s->cmp and s->char2b.
10830
108312008-02-01 Juanma Barranquero <lekktu@gmail.com>
10832
10833 * regex.c (RE_STRING_CHAR_AND_LENGTH) [! emacs]: Add missing arg `len'.
10834
108352008-02-01 Kenichi Handa <handa@m17n.org>
10836
10837 * regex.c (GET_CHAR_BEFORE_2, GET_CHAR_AFTER): Check the variable
10838 target_multibyte instead of multibyte.
10839 (re_match_2_internal): Call bcmp_translate with target_multibyte.
10840 (bcmp_translate): Change the argument name from multibyte to
10841 target_multibyte.
10842
108432008-02-01 Kenichi Handa <handa@m17n.org>
10844
10845 These changes are to compile a regexp into a pattern that can be
10846 used both for multibyte and unibyte targets.
10847
10848 * Makefile.in (search.o): Depend on charset.h.
10849
10850 * character.c (multibyte_char_to_unibyte_safe): New function.
10851
10852 * search.c: Include "charset.h".
10853 (compile_pattern_1): Delete argument multibyte. Don't set
10854 cp->buf.target_multibyte here. Set cp->buf.charset_unibyte.
10855 (compile_pattern): Don't compare cp->buf.target_multibyte.
10856 Compare cp->buf.charset_unibyte.
10857 (compile_pattern): Set cp->buf.target_multibyte.
10858
10859 * lisp.h (multibyte_char_to_unibyte_safe): Extern it.
10860
10861 * regex.h (struct re_pattern_buffer): New member charset_unibyte.
10862
10863 * regex.c (RE_STRING_CHAR, RE_STRING_CHAR_AND_LENGTH): New arg
10864 multibyte. Change callers.
10865 (RE_CHAR_TO_MULTIBYTE, RE_CHAR_TO_UNIBYTE): New macros.
10866 (MAKE_CHAR_MULTIBYTE, MAKE_CHAR_UNIBYTE): Delete. Change callers
10867 to use RE_CHAR_TO_MULTIBYTE and RE_CHAR_TO_UNIBYTE, respectively.
10868 (SETUP_ASCII_RANGE, SETUP_UNIBYTE_RANGE): New macros.
10869 (SETUP_MULTIBYTE_RANGE): Generate a more compact range_table.
10870 (regex_compile): Make the compiled pattern usable both for
10871 multibyte and unibyte targets.
10872 (analyse_first): Make the fastmap usable both for multibyte and
10873 unibyte targets.
10874 (TRANSLATE_VIA_MULTIBYTE): Delete.
10875 (re_match_2_internal): Pay attention to the case that the
10876 multibyteness of bufp and target may be different.
10877
108782008-02-01 Kenichi Handa <handa@m17n.org>
10879
10880 * xdisp.c (x_produce_glyphs): When a font is not found, make the
10881 empty box occupy at least one column width.
10882
108832008-02-01 Miles Bader <miles@gnu.org>
10884
10885 * Makefile.in: Remove redundant HAVE_XFT clause.
10886
108872008-02-01 Kenichi Handa <handa@m17n.org>
10888
10889 * xrdb.c (x_load_resources): Setup the default fontSet X resource.
10890
108912008-02-01 Kenichi Handa <handa@m17n.org>
10892
10893 * fontset.c (Finternal_char_font): Fix for the case of POSITION
10894 being nil.
10895
108962008-02-01 Kenichi Handa <handa@m17n.org>
10897
10898 * xftfont.c (xftfont_open): Call FcConfigSubstitute.
10899
109002008-02-01 Kenichi Handa <handa@m17n.org>
10901
10902 * xftfont.c (xftfont_open): Don't enable antialias explicitly.
10903
109042008-02-01 Kenichi Handa <handa@m17n.org>
10905
10906 * search.c (simple_search): Fix previous change.
10907
109082008-02-01 Kenichi Handa <handa@m17n.org>
10909
10910 * xftfont.c (ftfont_font_format): Extern declaration.
10911
10912 * frame.c (x_set_font): Fix the second arg to fs_query_fontset.
10913
10914 * xfont.c (xfont_driver): Initialize ftfont_driver.type by 0.
10915 (xfont_list): Don't directly use Lisp_Object as an operand of &&.
10916
10917 * ftfont.c (ftfont_driver): Initialize ftfont_driver.type by 0.
10918 (ftfont_font_format): Fix previous change.
10919
10920 * font.h (Ffont_xlfd_name): EXFUN it.
10921
10922 * font.c (font_parse_xlfd): Fix the array size of `f'.
10923 (register_font_driver): Use EQ to compare driver->type.
10924
10925 * xfns.c (xic_create_xfontset2) [USE_FONT_BACKEND]: New function.
10926 (create_frame_xic) [USE_FONT_BACKEND]: Call xic_create_xfontset2.
10927 (xic_set_xfontset) [USE_FONT_BACKEND]: Likewise.
10928
109292008-02-01 Kenichi Handa <handa@m17n.org>
10930
10931 * ftfont.c (ftfont_pattern_entity, ftfont_list_generic_family)
10932 (ftfont_list, ftfont_font_format): Check if FC_FONTFORMAT is defined.
10933
109342008-02-01 Kenichi Handa <handa@m17n.org>
10935
10936 * xfont.c (xfont_open): Set font->format.
10937
10938 * xftfont.c (xftfont_open): Set font->format.
10939
10940 * ftfont.c (ftfont_pattern_entity): Add fontformat in a pattern.
10941 (ftfont_list): Include FC_FONTFORMAT in FcObject.
10942 (ftfont_open): Set font->format.
10943 (ftfont_font_format): New function.
10944
10945 * font.h (struct font): New member format.
10946
10947 * font.c (Qopentype): New variable.
10948 (syms_of_font): Defsym it.
10949 (Fquery_font): Change the format of the last element of the return
10950 value.
10951
109522008-02-01 Kenichi Handa <handa@m17n.org>
10953
10954 * xfns.c (xic_create_xfontset): Try the default fontset name as a
10955 last resort.
10956
109572008-02-01 Kenichi Handa <handa@m17n.org>
10958
10959 * coding.c (detect_coding_charset): Fix detection of multi-byte
10960 charset.
10961
109622008-02-01 Bob Halley <halley@play-bow.org> (tiny change)
10963
10964 * ccl.c (ccl_driver): If DST is NULL, set ccl->produced to 0.
10965
109662008-02-01 Kenichi Handa <handa@m17n.org>
10967
10968 * xdisp.c (get_next_display_element): Set it->face_id for the
10969 first component of a composition.
10970 (x_produce_glyphs): Check if the font is changed or not for composition.
10971
109722008-02-01 Kenichi Handa <handa@m17n.org>
10973
10974 * fontset.c (Qlatin): New variable.
10975 (syms_of_fontset): Define it as a lisp symbol.
10976 (Fset_fontset_font): If TARGET is `latin', use FONT_SPEC for ASCII.
10977
109782008-02-01 Kenichi Handa <handa@m17n.org>
10979
10980 * font.c (font_unparse_fcname): Pay attention to the case that
10981 some of font property is a null string.
10982
109832008-02-01 Kenichi Handa <handa@m17n.org>
10984
10985 * term.c: Include "composite.h".
10986 (encode_terminal_code): Output all components of composition.
10987 Check the size of encode_terminal_src.
10988 (produce_glyphs): For composition, call produce_composite_glyph.
10989 (append_composite_glyph, produce_composite_glyph): New functions.
10990
10991 * xdisp.c (x_produce_glyphs): In handling composition, if a font
10992 is not found, get font_info from the current ascii face.
10993
109942008-02-01 Kenichi Handa <handa@m17n.org>
10995
10996 * fileio.c (Finsert_file_contents): On replacing, temporarily bind
10997 buffer-file-name to Qnil before calling insert_from_buffer.
10998
10999 * font.c (font_unparse_fcname): Pay attention to the case that
11000 foundry is a null string.
11001
110022008-02-01 Kenichi Handa <handa@m17n.org>
11003
11004 * ftfont.c (ftfont_list): Allow registry "unicode-sip".
11005
11006 * font.c (Qunicode_sip): New variable.
11007 (syms_of_font): Declare it as a Lisp symbol.
11008
11009 * font.h (Qunicode_sip): Extern it.
11010
110112008-02-01 Kenichi Handa <handa@m17n.org>
11012
11013 * composite.c (get_composition_id): Pay attention to TAB component.
11014
11015 * xterm.c (x_draw_composite_glyph_string_foreground): Don't draw
11016 TAB. Adjust for the change of s->char2b which always points to
11017 the first element of allocated memory.
11018
11019 * xftfont.c (xftfont_text_extents): Fix calculation of descent value.
11020
11021 * xdisp.c (handle_composition_prop): Set it->c to the first
11022 non-TAB component.
11023 (fill_composite_glyph_string): Change argument.
11024 (BUILD_COMPOSITE_GLYPH_STRING): Adjust for the above change.
11025 (x_produce_glyphs): Fix handling of left/right padding.
11026
110272008-02-01 Kenichi Handa <handa@m17n.org>
11028
11029 * coding.c (detect_coding_system): Fix for handling off
11030 inhibit_iso_escape_detection. Fix for the case that no coding
11031 system is defined for a specific coding category.
11032
110332008-02-01 Kenichi Handa <handa@m17n.org>
11034
11035 * font.c (font_matching_entity): Delete unused local var.
11036
11037 * xftfont.c (xftfont_open): Call XftDefaultSubstitute before
11038 opening a font.
11039
11040 * fileio.c (Finsert_file_contents): On recovering a file, assume
11041 Unix-like eol.
11042 (choose_write_coding_system): On auto-saving a file, force
11043 Unix-like eol.
11044
11045 * coding.c (setup_coding_system): Fix setting of
11046 coding->common_flags based on eol_type.
11047 (coding_inherit_eol_type): If PARENT is not nil, be sure to
11048 inherit from it.
11049
110502008-02-01 Kenichi Handa <handa@m17n.org>
11051
11052 * alloc.c (NSTATICS): Increas to 0x600.
11053
110542008-02-01 Kenichi Handa <handa@m17n.org>
11055
11056 * ftfont.c (ftfont_driver): Set ftfont_driver.match to ftfont_match.
11057 (ftfont_list): Don't check :name property.
11058 (ftfont_match): New function.
11059 (ftfont_pattern_entity): If the pattern doesn't contain
11060 FC_SPACING, don't assume FC_MONO.
11061
11062 * font.h (struct font_driver): New member `match'.
11063 (font_update_drivers): Adjust prototype.
11064
11065 * font.c (font_parse_fcname, font_parse_name): Don't change :name
11066 property of FONT.
11067 (LGSTRING_HEADER_SIZE, LGSTRING_GLYPH_SIZE, check_gstring): Define
11068 them unconditionally.
11069 (font_matching_entity): New function.
11070 (font_open_by_name): Try font_matching_entity if exact match is
11071 not found.
11072 (font_update_drivers): Delete the arg FONT. Return a list of
11073 actually used backends. Don't free faces, font caches here.
11074 Don't store data in frame parameters. Don't call x_set_font.
11075 (Ffont_spec): Store :name property as is.
11076 (Ffont_get): Check HAVE_LIBOTF before calling font_otf_capability.
11077 (Ffont_otf_gsub): Call font->driver->otf_gsub instead of font_otf_gsub.
11078 (Ffont_otf_gpos): Call font->driver->otf_gpos instead of font_otf_gpos.
11079 (Ffont_otf_alternates): Check if the driver has otf_gsub function.
11080 Call font->driver->otf_gsub instead of font_otf_gsub.
11081
11082 * frame.c (x_set_font_backend): Do more works that were done in
11083 font_update_drivers before.
11084
11085 * xfont.c (xfont_match): New function.
11086 (xfont_driver): Set xfont_driver.match to xfont_match.
11087 (xfont_draw): Set font in GC if necessary.
11088
11089 * ftxfont.c (ftxfont_match): New function.
11090 (syms_of_ftxfont): Set ftxfont_driver.match to ftxfont_match.
11091
11092 * xftfont.c (xftfont_match): New function.
11093 (syms_of_xftfont): Set xftfont_driver.match to xftfont_match.
11094
110952008-02-01 Kenichi Handa <handa@m17n.org>
11096
11097 * font.h (struct font): New member scalable.
11098 (struct font_driver): New arg ALTERANTE_SUBST to otf_gsub.
11099 (font_otf_gsub): Adjust prototype.
11100
11101 * font.c (font_otf_capability): Fix handling of the default langsys.
11102 (parse_gsub_gpos_spec): Change type to void. New arg nbytes.
11103 Check the contents of SPEC.
11104 (LGSTRING_HEADER_SIZE, LGSTRING_GLYPH_SIZE): New macros.
11105 (check_gstring): New function.
11106 (REPLACEMENT_CHARACTER): New macro.
11107 (font_otf_gsub): New arg alternate_subst. Be sure to set all
11108 glyph codes of GSTRING.
11109 (font_otf_gpos): Be sure to set all glyph codes of GSTRING.
11110 (font_prepare_composition): Set cmp->glyph_len.
11111 (font_open_entity): Set font->scalable.
11112 (Ffont_get): Handle :otf property.
11113 (Ffont_otf_gsub, Ffont_otf_gpos, Ffont_otf_alternates): New
11114 functions.
11115 (Fquery_font): Use font->font.full_name.
11116 (syms_of_font): Defsubr Sfont_otf_gsub, Sfont_otf_gpos, and
11117 Sfont_otf_alternates.
11118
11119 * ftfont.c (ftfont_open): Set font->font.full_name and
11120 font->font.name properly. Fix calculation of font->font.height
11121 and font->min_width.
11122
11123 * ftxfont.c (ftxfont_create_gcs): New function.
11124 (ftxfont_draw_bitmap): Fix arg to ftfont_driver.get_bitmap.
11125 (ftxfont_draw_backgrond): Fix filling region.
11126 (ftxfont_default_fid): New function.
11127 (ftxfont_open): Set xfont->fid to the return value of
11128 ftxfont_default_fid.
11129 (ftxfont_prepare_face): Use ftxfont_create_gcs to create GCs.
11130 (ftxfont_done_face): Free only GCs that are created by
11131 ftxfont_create_gcs.
11132 (ftxfont_draw): If face->gc != s->gc, create proper GCs.
11133
11134 * xterm.c (x_set_glyph_string_clipping_exactly) [USE_FONT_BACKEND]:
11135 Clip to src->width, etc (not src->clip_XXX).
11136
11137 * xfns.c (x_create_tip_frame) [USE_FONT_BACKEND]: Handle
11138 FontBackend frame parameter.
11139
111402008-02-01 Kenichi Handa <handa@m17n.org>
11141
11142 * font.h (struct font_driver_list): New member `on'.
11143 (Fclear_font_cache): EXFUN it.
11144 (font_update_drivers): Extern it.
11145
11146 * font.c (font_unparse_fcname): Fix typo (swidth->width).
11147 (font_list_entities): Check driver_list->on.
11148 (register_font_driver): Initalize `on' member to 0.
11149 (font_update_drivers): New function.
11150 (Fclear_font_cache): Check driver_list->on.
11151
11152 * frame.h (Qfont_backend): Extern it.
11153 (x_set_font_backend): Extern it.
11154
11155 * frame.c (Qfont_backend): New variable.
11156 (frame_parms): New element for font-backend.
11157 (x_set_font_backend): New function.
11158
11159 * xfns.c (Fx_create_frame) [USE_FONT_BACKEND]: Handle
11160 FontBackend frame parameter.
11161 (x_frame_parm_handlers) [USE_FONT_BACKEND]: New element
11162 x_set_font_backend.
11163
11164 * xfont.c (xfont_list): Don't try listing by :name property if the
11165 name is not for XLFD.
11166
111672008-02-01 Kenichi Handa <handa@m17n.org>
11168
11169 * font.h (LGLYPH_FROM, LGLYPH_TO, LGLYPH_SET_FROM)
11170 (LGLYPH_SET_TO): New macros.
11171 (LGLYPH_XOFF, LGLYPH_YOFF, LGLYPH_WADJUST): Check if adjustment
11172 element of G is vector or not.
11173 (font_at): Extern it.
11174
11175 * font.c: Include window.h.
11176 (font_lispy_object): New function.
11177 (font_prepare_composition): Check LGLYPH_FORM (g) to detect the
11178 end of valid glyph.
11179 (font_close_object): Fix getting (struct font *).
11180 (font_at): New function.
11181 (Ffont_get): If FONT is a font-object, get entity from it.
11182 (Ffont_make_gstring): Initialize elements of glyphs with nil.
11183 (Ffont_fill_gstring): Use macro LGSTRING_XXX and LGLYPH_XXX. Fix
11184 range check.
11185 (Ffont_at): New function.
11186 (syms_of_font): Defsubr Sfont_at.
11187
11188 * xdisp.c (it_props): Move the entry for Qauto_composed to just
11189 before the entry for Qcomposition.
11190 (handle_auto_composed_prop): Call auto-composition-function with 4 args.
11191 (handle_composition_prop) [USE_FONT_BACKEND]: Set it->face_id from
11192 the font in gstring.
11193 (fill_composite_glyph_string) [USE_FONT_BACKEND]: Check
11194 LGLYPH_FORM (g) to detect the end of valid glyph.
11195 (x_produce_glyphs) [USE_FONT_BACKEND]: Don't update it->face_id if
11196 we are composing with gstring.
11197
11198 * xterm.c (x_draw_composite_glyph_string_foreground) [USE_FONT_BACKEND]:
11199 Check if adjustment is vector or not.
11200
11201 * Makefile.in (font.o): Make it depends on window.h.
11202
112032008-02-01 Kenichi Handa <handa@m17n.org>
11204
11205 * xterm.c (x_draw_composite_glyph_string_foreground): Check if
11206 adjustment is vector or not.
11207
112082008-02-01 Miles Bader <miles@gnu.org>
11209
11210 * character.h (CHECK_CHARACTER): Redefine in terms of CHECK_TYPE.
11211
112122008-02-01 Kenichi Handa <handa@m17n.org>
11213
11214 * font.h (LGLYPH_XOFF, LGLYPH_YOFF, LGLYPH_WIDTH, LGLYPH_WADJUST)
11215 (LGLYPH_SET_WIDTH): Adjusted for the change of LGLYPH format.
11216 (LGLYPH_ADJUSTMENT, LGLYPH_SET_ADJUSTMENT): New macros.
11217
11218 * font.c (font_merge_old_spec): Treat '*' in foundry as a wild card.
11219 (DEVICE_DELTA): Fix typo.
11220 (font_otf_gpos, font_prepare_compositio): Adjust for the change of
11221 LGLYPH format.
11222
11223 * xterm.c (x_draw_composite_glyph_string_foreground): Adjust for
11224 the change of LGLYPH format.
11225
112262008-02-01 Kenichi Handa <handa@m17n.org>
11227
11228 * ftfont.c (ftfont_list): Fix typo.
11229 (ftfont_build_basic_charsets): Don't include letters with diacritics.
11230
112312008-02-01 Jan Djärv <jan.h.d@swipnet.se>
11232
11233 * xfaces.c (realize_non_ascii_face): Set face->extra to NULL.
11234
11235 * xftfont.c (xftfont_done_face): Call XftDrawDestroy only if
11236 xftface_info is non-NULL.
11237
112382008-02-01 Jan Djärv <jan.h.d@swipnet.se>
11239
11240 * ftfont.c (ftfont_list): Move misplaced #endif.
11241
112422008-02-01 Kenichi Handa <handa@m17n.org>
11243
11244 * ftfont.c (ftfont_list): Pay attention to the case that
11245 FC_CAPABILITY is not defined.
11246
112472008-02-01 Kenichi Handa <handa@m17n.org>
11248
11249 * xftfont.c (xftfont_open): Set charset related members to -1.
11250
11251 * ftfont.c (ftfont_list): Handle QCotf property. Fix handling of
11252 QCname.
11253 (ftfont_open): Set charset related members to -1.
11254
11255 * fontset.c (Votf_script_alist): New variable.
11256 (syms_of_fontset): Initialize it.
11257 (fontset_font): Delete unused variable.
11258
11259 * fontset.h (Votf_script_alist): Extern it.
11260
11261 * font.c (font_find_for_lface): Optimize code.
11262
11263 * font.h (font_close_object, font_merge_old_spec): Extern them.
11264
112652008-02-01 Kenichi Handa <handa@m17n.org>
11266
11267 * font.c (QCscalable, Qc, Qm, Qp, Qd): New variables.
11268 (syms_of_font): Initialize them.
11269 (font_pixel_size): Allow float value in dpi.
11270 (font_prop_validate_type): Delete.
11271 (font_prop_validate_symbol, font_prop_validate_style): Change argument.
11272 Change caller.
11273 (font_prop_validate_non_neg): Rename from font_prop_validate_size.
11274 (font_prop_validate_extra): Delete.
11275 (font_prop_validate_spacing): New function.
11276 (font_property_table): Add elements for all known properties.
11277 (get_font_prop_index): Rename from check_font_prop_name. New
11278 argument FROM. Change caller.
11279 (font_prop_validate): Validate all known properties.
11280 (font_put_extra): Delete argument force. Change caller.
11281 (font_expand_wildcards): Make it static. Fix the way of shrinking
11282 the possible range.
11283 (font_parse_xlfd): Delete argument merge. Fix handling of RESX,
11284 RESY, SPACING, and AVGWIDTH. Don't validate property values here.
11285 Change caller.
11286 (font_unparse_xlfd): Handle dpi, spacing, and scalable properties.
11287 (font_parse_fcname): Delete argument merge. Fix parsing of point
11288 size. Don't validate properties values here. Change caller.
11289 (font_unparse_fcname): Handle dpi, spacing, and scalable properties.
11290 (font_open_by_name): Delete unused variable.
11291 (Ffont_spec): Likewise. Validate property values.
11292 (Ffont_match_p): New function.
11293
11294 * font.h (QCscalable): Extern it.
11295 (font_parse_xlfd, font_parse_fcname): Adjust prototype.
11296
11297 * ftfont.c (ftfont_list): Handle properties dpi, spacing, and scalable.
11298
11299 * xfont.c (xfont_query_font): Adjust for the change of font_parse_xlfd.
11300 (xfont_list_pattern): New function.
11301 (xfont_list): Use xfont_list_pattern.
11302
113032008-02-01 Kenichi Handa <handa@m17n.org>
11304
11305 * font.h (Flist_fonts): EXFUN it.
11306
113072008-02-01 Jason Rumney <jasonr@gnu.org>
11308
11309 * w32term.c (w32_initialize): Add back smoothing_type and
11310 smoothing_enabled definitions.
11311
113122008-02-01 Kenichi Handa <handa@m17n.org>
11313
11314 * xterm.c (x_draw_glyph_string) [USE_FONT_BACKEND]: Check
11315 s->face->font on determining underline position.
11316
113172008-02-01 Kenichi Handa <handa@m17n.org>
11318
11319 * font.c (font_parse_xlfd): Fix generating of CHARSET_REGISTRY field.
11320 (font_has_char): Accept font-object too.
11321 (font_find_for_lface): Try at first with a size specified in face.
11322
113232008-02-01 Kenichi Handa <handa@m17n.org>
11324
11325 * frame.c (x_set_font) [USE_FONT_BACKEND]: Fix argument to
11326 font_open_by_name.
11327
113282008-02-01 Kenichi Handa <handa@m17n.org>
11329
11330 * font.h (QCspacing, QCdpi): Extern them.
11331 (enum font_spacing): New enum.
11332 (FONT_PIXEL_SIZE_QUANTUM): New macro.
11333
11334 * font.c (POINT_TO_PIXEL): Don't divide POINT by 10.
11335 (QCspacing, QCdpi): New variables.
11336 (syms_of_font): Initialize them.
11337 (font_pixel_size): New function.
11338 (font_put_extra): New function.
11339 (font_parse_xlfd): Fix handling of font size. Add QCdpi property
11340 in FONT_EXTRA.
11341 (font_parse_fcname): Handle enumerated values (e.g. bold).
11342 Fix handling font size. Add QCname property that contains only
11343 unknown properties.
11344 (font_score): Change argument. Change caller. Pay attention to
11345 FONT_PIXEL_SIZE_QUANTUM.
11346 (font_sort_entites, font_list_entities, font_find_for_lface)
11347 (font_open_for_lface, font_open_by_name): Fix handling of font size.
11348 (Ffont_spec): Add QCname property that contains only unknown properties.
11349
11350 * ftfont.c (ftfont_list): Use assq_no_quit, not Fassq. Don't
11351 include weight in listing pattern, instead check weight of each
11352 listed font. Don't include scalable in pattern. Pay attention to
11353 FONT_PIXEL_SIZE_QUANTUM.
11354
113552008-02-01 Kenichi Handa <handa@m17n.org>
11356
11357 * font.c (font_parse_fcname): Fix parsing of point-size.
11358 (font_unparse_fcname): Produce symbolic names for style properties.
11359 (font_list_entities): Handle float size correctly.
11360 (font_open_by_name): Prefer `normal' property values if the name
11361 doesn't specify them.
11362
11363 * fontset.c (Finternal_char_font): Use font_get_name, not
11364 Ffont_xlfd_name.
11365
11366 * ftfont.c (ftfont_pattern_entity): Use the numeric value 100 for
11367 FC_WEIGHT_REGULAR. Exclude FC_SIZE and FC_PIXEL_SIZE from listing
11368 pattern. Don't force scalable.
11369
11370 * xftfont.c (xftfont_open): For generating a name, start from
11371 96-byte buffer.
11372
113732008-02-01 Jan Djärv <jan.h.d@swipnet.se>
11374
11375 * frame.h (x_new_fontset2): Fix prototype.
11376
113772008-02-01 Kenichi Handa <handa@m17n.org>
11378
11379 * font.h (struct font_driver): Delete member parse_name.
11380 (font_match_p, font_get_spec, font_parse_fcname)
11381 (font_unparse_fcname): Extern them.
11382 (font_get_name): Adjust prototype.
11383
11384 * font.c (XLFD_SMALLNUM_MASK): Delete this macro.
11385 (XLFD_LARGENUM_MASK): Delete XLFD_ENCODING_MASK from it.
11386 (font_expand_wildcards): Fix handling ENCODING field. Avoid
11387 unnecessary checks for weight, slant, and swidth.
11388 (font_parse_fcname): New function.
11389 (font_unparse_fcname): New function.
11390 (font_parse_name): New function.
11391 (font_match_p): New function.
11392 (font_get_name): Change return value to Lisp string.
11393 (font_get_spec): New function.
11394 (Qunspecified, Qignore_defface): Don't extern them.
11395 (font_find_for_lface): Assume that LFACE is fully specified.
11396 (font_load_for_face): If lface[LFACE_FONT_INDEX] is an font
11397 object, use it for FACE.
11398 (font_open_by_name): Call Ffont_spec with QCname prop. Don't call
11399 driver->parse_name.
11400 (Ffont_spec): Call font_parse_name, not font_parse_xlfd.
11401
11402 * fontset.h (new_fontset_from_font) [USE_FONT_BACKEND]: Adjust
11403 prototype.
11404
11405 * fontset.c (new_fontset_from_font) [USE_FONT_BACKEND]: Delete
11406 argument F. Don't call Fnew_fontset. Instead, directly call
11407 make_fontset.
11408
11409 * frame.h (x_new_fontset2) [USE_FONT_BACKEND]: Adjust prototype.
11410
11411 * frame.c (x_set_font) [USE_FONT_BACKEND]: Adjust for the change
11412 of x_new_fontset2.
11413
11414 * ftfont.c (Qmonospace, Qsans_serif, Qserif, Qmono, Qsans)
11415 (Qsans__serif): New variables.
11416 (ftfont_generic_family_list): New variable.
11417 (syms_of_ftfont): Initialize the above variables.
11418 (ftfont_pattern_entity): Delete argument NAME.
11419 (ftfont_list_generic_family): New function.
11420 (ftfont_parse_name): Delete this function.
11421 (ftfont_list): Try generic family only when FcFontList found no font.
11422 (ftfont_list_family): Fix args to FcObjectSetBuild.
11423
11424 * xfaces.c (check_lface_attrs) [USE_FONT_BACKEND]: Accept font
11425 object in attrs[LFACE_FONT_INDEX].
11426 (set_lface_from_font_name): Cancel all changes for font-backend.
11427 (set_lface_from_font_and_fontset) [USE_FONT_BACKEND]: New
11428 function.
11429 (Finternal_set_lisp_face_attribute) [USE_FONT_BACKEND]: Accept a
11430 font object in QCfont attribute.
11431 (set_font_frame_param) [USE_FONT_BACKEND]: Likewise.
11432 (realize_default_face) [USE_FONT_BACKEND]: Call
11433 set_lface_from_font_and_fontset.
11434
11435 * xfns.c (x_default_font_parameter) [USE_FONT_BACKEND]: Try also
11436 "fixed", and signal error here if no suitable font was found.
11437
11438 * xfont.c (xfont_parse_name): Delete this function.
11439
11440 * xftfont.c (xftfont_open): Change coding style of error
11441 handling. Generate fontconfig's fontname pattern.
11442
11443 * xterm.h (struct x_output) [USE_FONT_BACKEND]: New member fontp.
11444 (FRAME_FONT_OBJECT) [USE_FONT_BACKEND]: New macro.
11445
11446 * xterm.c (x_new_fontset2) [USE_FONT_BACKEND]: Change arguments.
11447 Both args FONTSET and FONT_OBJECT must be existing ones.
11448
114492008-02-01 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
11450
11451 * macterm.c (mac_set_unicode_keystroke_event): Don't use MAKE_CHAR.
11452
114532008-02-01 Kenichi Handa <handa@m17n.org>
11454
11455 * xfont.c (xfont_open, xfont_encode_char): Fix typo.
11456
11457 * font.h (struct font): Fix typo.
11458
11459 * font.c (enum xlfd_field_index): Rename XLFD_XXX_SIZE_INDEX to
11460 XLFD_XXX_INDEX.
11461 (enum xlfd_field_mask): New enum.
11462 (intern_font_field): Changed argument. Change caller. If digits
11463 are followed by non-digits, return a symbol.
11464 (font_expand_wildcards): New function.
11465 (font_parse_xlfd): Fix wildcard handling.
11466 (Ffont_spec): If :name is specified, reflect the info in the other
11467 properties.
11468
11469 * ftfont.c (ftfont_pattern_entity): Fix typo.
11470 (ftfont_list): Enforce FC_LANG in PATTERN to cancel the effect of
11471 locale.
11472
114732008-02-01 Kenichi Handa <handa@m17n.org>
11474
11475 * font.h (Qiso8859_1, Qiso10646_1, Qunicode_bmp): Extern them.
11476
11477 * font.c (Qiso8859_1, Qiso10646_1, Qunicode_bmp): Move from ftfont.c.
11478 (font_unparse_xlfd): Fix argument type declaration. Append "*" if
11479 registry doesn't specify encoding part.
11480 (font_find_for_lface): Pay attention to LFACE_FONT_INDEX.
11481 (font_open_by_name): At first try parsing the name.
11482 (syms_of_font): Declare Qiso8859_1, Qiso10646_1, and Qunicode_bmp
11483 as Lisp symbols.
11484
11485 * fontset.c (reorder_font_vector): Pay attention to the case that
11486 the 3rd element of font_def is nil.
11487 (fontset_font): For the default fontset, append one more fontset
11488 elements for a script-based font specification. Don't add script
11489 attribute on finding a font.
11490 (new_fontset_from_font): Unconditionally set FONTSET_ASCII to the
11491 font name.
11492 (fontset_ascii_font): If a font can't be opened, return nil.
11493
11494 * ftfont.c (Qiso8859_1, Qiso10646_1, Qunicode_bmp): Move to font.c.
11495 (ftfont_pattern_entity): New function.
11496 (ftfont_get_cache): Assume that freetype_font_cache is already
11497 initialized.
11498 (ftfont_list): Handle the case that a file is specified in font
11499 name. Use ftfont_pattern_entity to generate entities.
11500 (ftfont_has_char): Check if the pattern contains FC_CHARSET.
11501 (syms_of_ftfont): Initialize freetype_font_cache.
11502
11503 * xftfont.c (xftfont_open): Make the font name fontconfig's
11504 style. Add BLOCK_INPUT and UNBLOCK_INPUT.
11505 (xftfont_close): Free font->font.name if not NULL.
11506
11507 * xfont.c (xfont_list): If script is specified for a font, return
11508 null_vector.
11509 (xfont_list_family): Declare argument type.
11510
11511 * xfaces.c (set_lface_from_font_name): If a font doesn't have a
11512 name, set LFACE_FONT (lface) to nil.
11513
11514 * xterm.c (x_new_fontset2): If an ASCII font couldn't be loaded,
11515 return Qnil.
11516
115172008-02-01 Kenichi Handa <handa@m17n.org>
11518
11519 * emacs.c (main): Check -enable-font-backend arg after the check of -nl.
11520 (standard_args): Add "-enable-font-backend".
11521
115222008-02-01 Kenichi Handa <handa@m17n.org>
11523
11524 * xftfont.c (xftfont_default_fid): Set fid_known to 1.
11525 (struct xftdraw_list, xftdraw_list): Delete them.
11526 (register_xftdraw, check_xftdraw): Delete them.
11527 (xftfont_prepare_face): Don't call register_xftdraw.
11528 (xftfont_done_face): Don't call check_xftdraw.
11529 (xftfont_draw): Get background color only when with_background is
11530 nonzero.
11531
11532 * xfont.c (xfont_encode_char): Fix calculation of char2b.
11533
115342008-02-01 Kenichi Handa <handa@m17n.org>
11535
11536 These changes are for the new font handling codes.
11537
11538 * Makefile.in (ALL_CFLAGS): Add @FREETYPE_CFLAGS@,
11539 @FONTCONFIG_CFLAGS@, and @LIBOTF_CFLAGS@.
11540 (LIB_X11_LIB): If HAVE_XFT is defined, set to @XFT_LIBS@.
11541 (FONTSRC, FONTOBJ): New variables.
11542 (obj): Add $(FONTOBJ).
11543 (SOME_MACHINE_OBJECTS): Lib_X11_Lib.
11544 (LIBES): Add @FREETYPE_LIBS@, @FONTCONFIG_LIBS@, and
11545 @LIBOTF_LIBS@.
11546 (font.o, ftfont.o, xfont.o, xftfont.o, ftxfont.o): New targets.
11547 (fontset.o, xdisp.o, xfaces.o, xfns.o, xterm.o): Depend on $(FONTSRC).
11548
11549 * font.h, font.c, xfont.c, ftfont.c, xftfont.c, ftxfont.c: New files.
11550
11551 * character.h (Vscript_representative_chars): Extern it.
11552
11553 * character.c (Vscript_representative_chars): New variable.
11554 (syms_of_character): Declare it as a Lisp variable.
11555
11556 * composite.c (get_composition_id) [USE_FONT_BACKEND]: If
11557 enable_font_backend is nonzero, accept the composition method
11558 COMPOSITION_WITH_GLYPH_STRING.
11559
11560 * composite.h (enum composition_method) [USE_FONT_BACKEND]: New
11561 enumeration COMPOSITION_WITH_GLYPH_STRING.
11562
11563 * dispextern.h (struct glyph_string) [USE_FONT_BACKEND]: New
11564 members clip_x, clip_y, clip_width, and clip_height.
11565 (struct face) [USE_FONT_BACKEND]: New members font_info and extra.
11566
11567 * emacs.c (main) [USE_FONT_BACKEND]: Handle arg
11568 --enable-font-backend. Call syms_of_font.
11569
11570 * fns.c (assoc_no_quit): New function.
11571
11572 * fontset.h (FONT_INFO_FROM_FACE): New macro.
11573 (face_for_font, new_fontset_from_font)
11574 (fontset_ascii_font) [USE_FONT_BACKEND]: Extern them.
11575
11576 * fontset.c [USE_FONT_BACKEND]: Include "font.h".
11577 (fontset_font, fontset_ascii, face_for_char)
11578 (make_fontset_for_ascii_face, Ffont_info)
11579 (Finternal_char_font) [USE_FONT_BACKEND]: If enable_font_backend
11580 is nonzero, use font-backend mechanism.
11581 (find_font_encoding): Make it non-static.
11582 (new_fontset_from_font, fontset_ascii_font) [USE_FONT_BACKEND]:
11583 New functions.
11584
11585 * frame.h (struct frame): New members resx and resy.
11586 (struct frame) [USE_FONT_BACKEND]: New member font_driver_list.
11587 (x_new_fontset2) [USE_FONT_BACKEND]: Extern it.
11588
11589 * frame.c [USE_FONT_BACKEND]: Include "font.h".
11590 (make_frame, x_set_font) [USE_FONT_BACKEND]: Use font-backend mechanism.
11591
11592 * lisp.h (assoc_no_quit): Extern it.
11593
11594 * xdisp.c: If USE_FONT_BACKEND is defined, include "font.h".
11595 Through out the file, use FONT_INFO_FROM_FACE instead of
11596 FONT_INFO_FROM_ID, use get_per_char_metric instead of
11597 rif->per_char_metric.
11598 (handle_composition_prop) [USE_FONT_BACKEND]: If the composition
11599 method is COMPOSITION_WITH_GLYPH_STRING, just set it->c to ' '.
11600 (get_glyph_face_and_encoding, fill_composite_glyph_string)
11601 (get_char_face_and_encoding, BUILD_COMPOSITE_GLYPH_STRING)
11602 (x_produce_glyphs) [USE_FONT_BACKEND]: If enable_font_backend is
11603 nonzero, use font-backend mechanism.
11604 (get_per_char_metric): New function.
11605
11606 * xfaces.c [USE_FONT_BACKEND]: Include "font.h".
11607 (set_lface_from_font_name)
11608 (set_font_frame_param, free_realized_face)
11609 (prepare_face_for_display, clear_face_gcs)
11610 (Finternal_set_font_selection_order, realize_x_face)
11611 [USE_FONT_BACKEND]: If enable_font_backend is nonzero, use
11612 font-backend mechanism.
11613 (clear_face_cache) [USE_FONT_BACKEND]: Don't call clear_font_table.
11614 (load_face_font) [USE_FONT_BACKEND]: Abort.
11615 (face_symbolic_value, face_symbolic_weight, face_symbolic_slant)
11616 (face_symbolic_swidth, face_for_font) [USE_FONT_BACKEND]: New functions.
11617
11618 * xfns.c [USE_FONT_BACKEND]: Include "font.h".
11619 (x_default_font_parameter) [USE_FONT_BACKEND]: New function.
11620 (Fx_create_frame) [USE_FONT_BACKEND]: If enable_font_backend is
11621 nonzero, register all available font drivers. Call
11622 x_default_font_parameter for deciding a font.
11623 (x_create_tip_frame) [USE_FONT_BACKEND]: Likewise.
11624
11625 * xterm.c [USE_FONT_BACKEND]: Include "font.h".
11626 (x_set_mouse_face_gc, x_set_glyph_string_clipping)
11627 (x_set_glyph_string_clipping_exactly)
11628 (x_compute_glyph_string_overhangs)
11629 (x_draw_glyph_string_foreground)
11630 (x_draw_composite_glyph_string_foreground, x_draw_glyph_string)
11631 (x_free_frame_resources) [USE_FONT_BACKEND]: If
11632 enable_font_backend is nonzero, use font-backend mechanism.
11633 (x_new_fontset2) [USE_FONT_BACKEND]: New function.
11634
116352008-02-01 Kenichi Handa <handa@m17n.org>
11636
11637 * coding.c (coding_inherit_eol_type): If PARENT is nil, inherit from
11638 system_eol_type.
11639 (syms_of_coding): Initialize system_eol_type.
11640
11641 * process.c (Fset_process_coding_system): Inherit system's eol
11642 format if necessary.
11643
116442008-02-01 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
11645
11646 * macgui.h (USE_ATSUI): Don't enable on emacs-unicode-2 branch.
11647
116482008-02-01 Kenichi Handa <handa@m17n.org>
11649
11650 * coding.c (decode_eol): Pay attention to buffer relocation in
11651 del_range_2.
11652 (decode_coding): Call decode_eol before restoring undo_list.
11653
116542008-02-01 Kenichi Handa <handa@m17n.org>
11655
11656 * charset.c (Fdefine_charset_internal): Fix setting of
11657 emacs_mule_bytes.
11658
116592008-02-01 Kenichi Handa <handa@m17n.org>
11660
11661 * keyboard.c (read_char): Check if C is a character or not before
11662 looking up Vkeyboard_translate_table.
11663
116642008-02-01 Kenichi Handa <handa@m17n.org>
11665
11666 * coding.c (DECODE_EMACS_MULE_20_RELATIVE_COMPOSITION): Fix
11667 condition to terminate the loop.
11668
116692008-02-01 Kenichi Handa <handa@m17n.org>
11670
11671 * coding.c (produce_composition): Compare charbuf[i] instead of
11672 args[i] against 0.
11673 (Fterminal_coding_system): Use EQ to compare Lisp objects.
11674
116752008-02-01 Kenichi Handa <handa@m17n.org>
11676
11677 * coding.c (DECODE_COMPOSITION_START): If the source is short, set
11678 coding->result to CODING_RESULT_INSUFFICIENT_SRC.
11679 (decode_coding_gap): Set CODING_MODE_LAST_BLOCK after the call of
11680 detect_coding.
11681 (emacs_mule_char): Handle old style (Emacs 20) component character
11682 of a composition.
11683 (DECODE_EMACS_MULE_COMPOSITION_RULE_20)
11684 (DECODE_EMACS_MULE_20_RULEBASE_COMPOSITION): Fix parsing a
11685 composition rule.
11686 (decode_coding_emacs_mule): Handle invalid bytes correctly.
11687
116882008-02-01 Kenichi Handa <handa@m17n.org>
11689
11690 * coding.c (encode_coding_ccl): Allocate destination dynamically
11691 when necessary.
11692
116932008-02-01 Kenichi Handa <handa@m17n.org>
11694
11695 * ccl.c (Fccl_execute_on_string): Fix the condition of terminating
11696 the loop. When quitted, show a proper error message.
11697
116982008-02-01 Kenichi Handa <handa@m17n.org>
11699
11700 * xterm.c (x_set_glyph_string_clipping_exactly): Set
11701 src->clip_head and src->clip_tail temporarily instead of src->hl.
11702
11703 * ccl.c (CCL_WRITE_STRING): Handle a flag bit for multibyte
11704 character sequence.
11705 (Fccl_execute_on_string): Use ASET, not XSET.
11706
117072008-02-01 Kenichi Handa <handa@m17n.org>
11708
11709 * search.c (search_buffer): Fix handling of "\\" in a trivial regexp.
11710
117112008-02-01 Kenichi Handa <handa@m17n.org>
11712
11713 * coding.c (decode_coding): Fix the condition of terminating the
11714 decoding loop.
11715
117162008-02-01 Kenichi Handa <handa@m17n.org>
11717
11718 * data.c (Faset): On setting a character bigger than 255 in a
11719 unibyte string, signal an error instead of make the string multibyte.
11720
117212008-02-01 Kenichi Handa <handa@m17n.org>
11722
11723 * charset.c (map_charset_chars): Fix for ascii-compatible charset
11724 made by a mapping table.
11725
117262008-02-01 Kenichi Handa <handa@m17n.org>
11727
11728 * xdisp.c (fill_composite_glyph_string): Check s->face is NULL or
11729 not.
11730 (BUILD_COMPOSITE_GLYPH_STRING): If C is TAB, set s->face to NULL.
11731 (x_produce_glyphs): If CH is TAB, set cmp->offsets properly.
11732
11733 * xterm.c (x_draw_composite_glyph_string_foreground): Check
11734 s->face is NULL or not.
11735
117362008-02-01 Kenichi Handa <handa@m17n.org>
11737
11738 * xterm.c (x_set_glyph_string_clipping_exactly): New function.
11739 (x_draw_glyph_string): Fix drawing of right_overhang and
11740 left_overhang around/on cursor.
11741
11742 * xdisp.c (draw_glyphs): Fix inclusion of right_overwriting glyphs.
11743
117442008-02-01 Kenichi Handa <handa@m17n.org>
11745
11746 * xdisp.c (x_produce_glyphs): Handle composition with TAB.
11747
117482008-02-01 Kenichi Handa <handa@m17n.org>
11749
11750 * coding.c (Fdefine_coding_system_internal)
11751 (Fdefine_coding_system_alias): Avoid a duplicated element in
11752 Vcoding_system_alist.
11753
117542008-02-01 Kenichi Handa <handa@m17n.org>
11755
11756 * xterm.c (handle_one_xevent): Handle keysyms 0x1000000..0x10000FF.
11757
11758 * coding.c (Qcoding_system_define_form): New variable.
11759 (syms_of_coding): Intern and staticpro it.
11760 (Fcoding_system_p): Check Qcoding_system_define_form.
11761 (Fcheck_coding_system): Try to autoload the definition of CODING-SYSTEM.
11762
11763 * coding.h (CODING_SYSTEM_P): If ID is not available, call
11764 Fcoding_system_p.
11765 (CHECK_CODING_SYSTEM): If ID is not available, call
11766 Fcheck_coding_system.
11767 (CHECK_CODING_SYSTEM_GET_SPEC, CHECK_CODING_SYSTEM_GET_ID):
11768 Try also Fcheck_coding_system.
11769
117702008-02-01 Kenichi Handa <handa@m17n.org>
11771
11772 * coding.c (code_conversion_restore): GCPRO arg.
11773
117742008-02-01 Kenichi Handa <handa@m17n.org>
11775
11776 * character.c (lisp_string_width): Check multibyteness of STRING.
11777
117782008-02-01 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
11779
11780 * macterm.c (mac_encode_char): Call ccl_driver with the last arg
11781 Qnil. Use JIS_TO_SJIS instead of ENCODE_SJIS.
11782 (decode_mac_font_name): Use decode_coding_c_string instead of
11783 decode_coding.
11784 (x_load_font): Initialize fontp->fontset to -1. Set
11785 fontp->encoding_type.
11786
117872008-02-01 Kenichi Handa <handa@m17n.org>
11788
11789 * search.c (search_buffer): Give up BM search on case-fold-search
11790 if one of a target character has a case-equivalence of different
11791 byte length even if that target charcter is an ASCII.
11792 (simple_search): Fix calculation of byte length of matched text.
11793 (boyer_moore): Fix handling of case-equivalent multibyte characters.
11794
117952008-02-01 Kenichi Handa <handa@m17n.org>
11796
11797 * coding.c (decode_coding): Fix handling of invalid bytes.
11798
117992008-02-01 Kenichi Handa <handa@m17n.org>
11800
11801 * xterm.c (handle_one_xevent): Handle keysyms directly mapped to
11802 Unicode characters.
11803
118042008-02-01 Kenichi Handa <handa@m17n.org>
11805
11806 * coding.c (encode_coding_object): If a pre-write-conversion
11807 function makes a new buffer, kill it.
11808
118092008-02-01 Kenichi Handa <handa@m17n.org>
11810
11811 * coding.c (QCascii_compatible_p): New variable.
11812 (syms_of_coding): Initialize it.
11813 (ONE_MORE_BYTE, ONE_MORE_BYTE_NO_CHECK): Decrement `src' before
11814 calling string_char.
11815 (record_conversion_result): Add `default:' case.
11816 (coding_charset_list): Delete unused variable `coding_type'.
11817 (Fdefine_coding_system_internal): Add `ascii-compatible-p'
11818 property in the plist of the coding system.
11819 (Fcoding_system_put): Check QCascii_compatible_p.
11820
118212008-02-01 Miles Bader <miles@gnu.org>
11822
11823 * xfaces.c (Finternal_lisp_face_equal_p): Restore previously
11824 removed calculation of frame `f', as it's now used.
11825
118262008-02-01 Kenichi Handa <handa@m17n.org>
11827
11828 * Makefile.in (RUN_TEMACS): Include "-nl" if HAVE_SHM is defined.
11829 (emacs${EXEEXT}): Run $(RUN_TEMACS) unconditionally.
11830 (UNIDATA): New variable.
11831 (${lispsource}international/charprop.el): Depends on ${UNIDATA}.
11832 (bootstrap-emacs${EXEEXT}): Depends on charprop.el. Run
11833 $(RUN_TEMACS) unconditionally.
11834
118352008-02-01 Kenichi Handa <handa@m17n.org>
11836
11837 * Makefile.in (temacs${EXEEXT}): Build charprop.el if necessary.
11838 (admindir): New variable.
11839 ($(lispsource)international/charprop.el): New target.
11840
118412008-02-01 Miles Bader <miles@gnu.org>
11842
11843 * character.c (chars-in-region): Remove obsolete function.
11844 (syms_of_character): Remove its initialization.
11845
118462008-02-01 Benjamin Riefenstahl <b.riefenstahl@turtle-trading.net>
11847
11848 * w32select.c (validate_coding_system)
11849 (setup_windows_coding_system): New functions.
11850 (convert_to_handle_as_coded, Fw32_get_clipboard_data): Use
11851 setup_windows_coding_system.
11852 (setup_config, Fw32_get_clipboard_data): Use
11853 validate_coding_system.
11854 (Fx_selection_exists): Move call to setup_config to a place
11855 where signals are allowed.
11856
11857 * lisp.h (Fcoding_system_base, Fcoding_system_eol_type)
11858 (Fcheck_coding_system): Add declarations.
11859
118602008-02-01 Kenichi Handa <handa@m17n.org>
11861
11862 * charset.c (load_charset_map_from_vector): Fix for the first iteration.
11863
118642008-02-01 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
11865
11866 * macfns.c (Fx_create_frame, x_create_tip_frame): Pass Lisp
11867 string as the second argument for x_new_fontset.
11868
118692008-02-01 Kenichi Handa <handa@m17n.org>
11870
11871 * coding.c (decode_coding_object): Use safe_call1 instead of call1.
11872 (encode_coding_object): Use safe_call instead of call2.
11873
118742008-02-01 Kenichi Handa <handa@m17n.org>
11875
11876 * fontset.c (Fset_fontset_font): Check family element of a given vector.
11877
11878 * Makefile.in (lisp): Include charprop.el.
11879
118802008-02-01 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
11881
11882 * macfns.c (Fx_create_frame, x_create_tip_frame): Fix crash.
11883 Not sure if it's unnecessary.
11884
118852008-02-01 Steven Tamm <steventamm@mac.com>
11886
11887 * macfns.c (Fx_create_frame, x_create_tip_frame): ifdef'd out
11888 some possibly unnecessary fontset checking code that crashed
11889 when creating a new frame.
11890
118912008-02-01 Kenichi Handa <handa@m17n.org>
11892
11893 * xfaces.c (merge_faces): Fix argument to lookup_derived_face and
11894 lookup_face.
11895
11896 * xdisp.c (Fformat_mode_line): Fix argument to lookup_named_face.
11897
11898 * fringe.c (draw_fringe_bitmap_1): Fix argument to lookup_named_face.
11899
119002008-02-01 Kenichi Handa <handa@m17n.org>
11901
11902 * coding.c: Cancel the change done in HEAD on 2008-02-01.
11903 (coding_charset_list): New function.
11904
11905 * coding.h (coding_charset_list): Extern it.
11906
119072008-02-01 Kenichi Handa <handa@m17n.org>
11908
11909 * fontset.c (Fset_fontset_font): Call find_font_encoding with
11910 concatenation of family and registry.
11911
119122008-02-01 Kenichi Handa <handa@m17n.org>
11913
11914 * character.h (BYTE8_STRING): Fix typo.
11915
11916 * editfns.c (Ftranslate_region_internal): Don't convert unibyte
11917 string to multibyte (sync to HEAD).
11918
11919 * casefiddle.c (casify_region): Handle changes in byte-length
11920 using replace_range_2 (sync to HEAD).
11921
119222008-02-01 Andreas Schwab <schwab@suse.de>
11923
11924 * chartab.c (map_char_table): GCPRO table and arg.
11925
119262008-02-01 Kenichi Handa <handa@m17n.org>
11927
11928 * syntax.c (skip_syntaxes): Return lispy 0 (not nil) if point is
11929 already at limit.
11930
119312008-02-01 Kenichi Handa <handa@m17n.org>
11932
11933 * fontset.c (fs_load_font): Use fast_string_match_ignore_case
11934 instead of fast_c_string_match_ignore_case.
11935 (find_font_encoding): Change argument to Lisp_Object. Use
11936 fast_string_match_ignore_case instead of
11937 fast_c_string_match_ignore_case. Change caller.
11938
119392008-02-01 Kenichi Handa <handa@m17n.org>
11940
11941 * xdisp.c (get_next_display_element): In unibyte case, decide to
11942 display in octal form by checking a character by
11943 UNIBYTE_CHAR_HAS_MULTIBYTE_P.
11944
11945 * charset.c (Fset_unibyte_charset): Setup unibyte_has_multibyte_table.
11946
11947 * character.c (unibyte_has_multibyte_table): New variable.
11948
11949 * character.h (unibyte_has_multibyte_table): Extern it.
11950 (UNIBYTE_CHAR_HAS_MULTIBYTE_P): New macro.
11951
119522008-02-01 Kenichi Handa <handa@m17n.org>
11953
11954 * coding.c (encode_coding_iso_2022): Fix handling of charset
11955 annotation.
11956
119572008-02-01 Kenichi Handa <handa@m17n.org>
11958
11959 * coding.c (setup_coding_system): If coding_system is nil, use
11960 Qundecided.
11961 (Fterminal_coding_system): Return nil if terminal coding system is
11962 `undecided'.
11963 (syms_of_coding): Define coding-system `undecided' here. Setup
11964 terminal_coding as `undecided'.
11965
119662008-02-01 Kenichi Handa <handa@m17n.org>
11967
11968 * xdisp.c (message_dolog, set_message_1): Call
11969 unibyte_char_to_multibyte with arg type int.
11970
11971 * lread.c (read1): Fix reading of a char-table.
11972
11973 * print.c (print_object): Include sub char-table in circularities
11974 detection.
11975
119762008-02-01 Kenichi Handa <handa@m17n.org>
11977
11978 * keymap.c (where_is_internal_2): Fix for the case that KEY is a cons.
11979 Append the found sequences in car of ARGS instead of prepending.
11980
119812008-02-01 Kenichi Handa <handa@m17n.org>
11982
11983 * fileio.c (report_file_error): Make a unibyte string from
11984 strerror (errorno).
11985 (Fsubstitute_in_file_name): Fix the arg to
11986 unibyte_char_to_multibyte. It is evaluated twice.
11987
119882008-02-01 Kenichi Handa <handa@m17n.org>
11989
11990 * charset.h (CHAR_CHARSET): Shortcut for ASCII case.
11991
119922008-02-01 Kenichi Handa <handa@m17n.org>
11993
11994 * coding.c (detect_coding_utf_16): Don't set detect_info->found if
11995 BOM is not found.
11996 (detect_coding, detect_coding_system): Optimization for ISO-2022
11997 when no 8-bit data is found.
11998
119992008-02-01 Jason Rumney <jasonr@gnu.org>
12000
12001 * w32fns.c (x_to_w32_font): Update to use new coding struct.
12002
120032008-02-01 Kenichi Handa <handa@m17n.org>
12004
12005 * charset.c (Fdeclare_equiv_charset, Fiso_charset): Fix handing of
12006 CHARS.
12007
120082008-02-01 Steven Tamm <steventamm@mac.com>
12009
12010 * macterm.c (mac_encode_char): Add charset argument and update
12011 to use encoding_type.
12012 (x_new_font, x_new_fontset): Merge in changes from xterm.c;
12013 switch to pure fontset.
12014 (decode_mac_font_name): Temporarily remove decoding.
12015 (x_font_name_to_mac_font_name): Temporarily remove encoding.
12016 (x_load_font): Temporarily remove encoding.
12017
120182008-02-01 Kenichi Handa <handa@m17n.org>
12019
12020 * xfaces.c (Fface_font): If frame is not on a window system,
12021 ignore CHARACTER arg. If HAVE_WINDOW_SYSTEM is not defined, don't
12022 refer to face->font.
12023 (split_font_name_into_vector, build_font_name_from_vector)
12024 (lookup_non_ascii_face, realize_non_ascii_face): Define them only
12025 when HAVE_WINDOW_SYSTEM is defined.
12026
120272008-02-01 Kenichi Handa <handa@m17n.org>
12028
12029 * xdisp.c (BUILD_GLYPH_STRINGS): Check if s is NULL.
12030 (x_produce_glyphs): Fix setting of members of cmp in case
12031 cmp->glyph_len is zero.
12032
12033 * fontset.c (Fset_fontset_font): Fix docstring.
12034 (Ffontset_info): Make it backward compatible. New arg ALL.
12035
120362008-02-01 Kim F. Storm <storm@cua.dk>
12037
12038 * process.c (read_process_output): Grow decoding_buf when needed;
12039 this could cause a crash in allocate_string and compact_small_strings.
12040
120412008-02-01 Kenichi Handa <handa@m17n.org>
12042
12043 * fileio.c (WRITE_BUF_SIZE): Delete this macro.
12044
120452008-02-01 Kenichi Handa <handa@m17n.org>
12046
12047 * coding.c (setup_coding_system): Set coding->common_flags
12048 correctly for raw-text.
12049 (consume_chars): On encoding unibyte text by raw-text, don't check
12050 multibyte form.
12051 (encode_coding): On encoding by raw-text, never use translation tables.
12052
12053 * fileio.c (e_write): Short cut for the case of no encoding.
12054
120552008-02-01 Kenichi Handa <handa@m17n.org>
12056
12057 * coding.c (detect_coding, detect_coding_system): Delete unused
12058 variables.
12059
120602008-02-01 Kenichi Handa <handa@m17n.org>
12061
12062 * coding.c (encode_coding_utf_8): Fix handling of raw-byte char.
12063 (consume_chars): Fix handling of 8-bit bytes in unibyte source.
12064
120652008-02-01 Kenichi Handa <handa@m17n.org>
12066
12067 * coding.c (Ffind_coding_systems_region_internal): Include
12068 raw-text and no-conversion in the result.
12069
120702008-02-01 Kenichi Handa <handa@m17n.org>
12071
12072 * fontset.c (find_font_encoding): Return `ascii' for unknown encoding.
12073 (load_font_get_repertory): Delete unnecessary check of ENCODING of
12074 FONT_DEF.
12075 (font_def_arg, add_arg, from_arg, to_arg): New args.
12076 (set_fontset_font): Change argument.
12077 (Fset_fontset_font): Fix for the case that TARGET is a script
12078 name and charset name.
12079 (new_fontset_from_font_name): Fix argument to Fnew_fontset.
12080
120812008-02-01 Kenichi Handa <handa@m17n.org>
12082
12083 * fontset.c (fontset_font): Rename from fontset_face. Change return
12084 value.
12085 (face_suitable_for_char_p, face_for_char): Adjust for the change
12086 of fontset_font.
12087 (make_fontset_for_ascii_face): Fix setting of the fontset element
12088 for ASCII.
12089 (Finternal_char_font): Use fontset_font instead of FACE_FOR_CHAR
12090 to get a font name.
12091 (Ffontset_info): Adjust for the change of fontset_font.
12092
12093 * coding.c (emacs_mule_char): Check invalid code more rigidly.
12094
12095 * character.h (LEADING_CODE_LATIN_1_MIN)
12096 (LEADING_CODE_LATIN_1_MAX): Delete these macros.
12097
120982008-02-01 Kenichi Handa <handa@m17n.org>
12099
12100 * editfns.c (check_translation): New function.
12101 (Ftranslate_region_internal): Handle M:N mapping.
12102
121032008-02-01 Kenichi Handa <handa@m17n.org>
12104
12105 * xfaces.c (xlfd_point_size): Set font->numeric[XLFD_PIXEL_SIZE].
12106
121072008-02-01 Kenichi Handa <handa@m17n.org>
12108
12109 * coding.c (DECODE_DESIGNATION): Set chars_96 to -1 instead of
12110 goto invalid_code.
12111 (decode_coding_iso_2022): Fix handling of invalid designation.
12112
12113 * fileio.c (Finsert_file_contents): Be sure to call unbind_to
12114 after calling code_conversion_save.
12115
121162008-02-01 Kenichi Handa <handa@m17n.org>
12117
12118 * xdisp.c (handle_auto_composed_prop): Fix Lisp_Object/int mixup.
12119
12120 * print.c (print_prune_string_charset): Fix Lisp_Object/int mixup.
12121
12122 * fontset.c: Include "intervals.h".
12123 (fontset_face): Fix comparing of Lisp_Objects.
12124 (free_face_fontset, new_fontset_from_font_name): Fix
12125 Lisp_Object/int mixup.
12126
12127 * editfns.c (Ftranslate_region_internal): Fix Lisp_Object/int mixup.
12128
12129 * coding.c: Add many prototypes for static functions.
12130 (get_translation_table): Allow max_lookup to be NULL.
12131 (decode_coding, Ffind_coding_systems_region_internal)
12132 (Funencodable_char_position, Fcheck_coding_systems_region): Call
12133 get_translation_table with max_lookup NULL.
12134
121352008-02-01 Kenichi Handa <handa@m17n.org>
12136
12137 * coding.c (get_translation_table): Declare it as Lisp_Object.
12138 (LOOKUP_TRANSLATION_TABLE): New macro.
12139 (produce_chars, consume_chars): Use LOOKUP_TRANSLATION_TABLE
12140 instead of CHAR_TABLE_REF.
12141
121422008-02-01 Kenichi Handa <handa@m17n.org>
12143
12144 * coding.c (MAX_ANNOTATION_LENGTH): Adjust for the change of
12145 annotation data format.
12146 (ADD_ANNOTATION_DATA, ADD_COMPOSITION_DATA, ADD_CHARSET_DATA):
12147 Change arguments FROM and TO to single argument NCHARS. Change caller.
12148 (decode_coding_utf_8, decode_coding_utf_16, decode_coding_emacs_mule)
12149 (decode_coding_iso_2022, decode_coding_sjis, decode_coding_big5)
12150 (decode_coding_ccl, decode_coding_charset): Pay attention to
12151 coding->charbuf_used.
12152 (get_translation): New function.
12153 (produce_chars): New arguments translation_table and last_block.
12154 Translate characters here. Return number of carryover chars.
12155 Change caller.
12156 (produce_composition): New argument pos. Change caller.
12157 Adjust for the change of annotation data format.
12158 (produce_charset, produce_annotation): Likewise.
12159 (decode_coding, encode_coding): Don't call translate_chars.
12160 (consume_chars): New arg translation_table. Change caller.
12161 (translate_chars): Delete.
12162 (syms_of_coding): Make translation-table's number of extra slots 2.
12163
121642008-02-01 Kenichi Handa <handa@m17n.org>
12165
12166 * search.c (simple_search): Fix setting this_pos_byte in backward
12167 search.
12168
12169 * coding.c (detect_coding_emacs_mule): Fix counting of encoded
12170 byte sequence.
12171 (detect_coding_ccl): Fix setting of the variable valids.
12172
121732008-02-01 Kenichi Handa <handa@m17n.org>
12174
12175 * xterm.c (x_list_fonts): Fix the detection of an auto-scaled font.
12176
12177 * coding.c (decode_coding_utf_16): Fix handling of surrogate pair.
12178
12179 * editfns.c (Ftranslate_region_internal): Rename from
12180 Ftranslate_region. Accept a char-table in TABLE.
12181 (syms_of_editfns): Defsubr Stranslate_region_internal.
12182
12183 * xfaces.c (set_lface_from_font_name): If a font is specified for
12184 a frame, generate a fontset from the font.
12185 (build_scalable_font_name): If the scalable font is requested for
12186 a specific size, don't change that size.
12187 (try_font_list): Try a scalable font also in the case that a
12188 pattern string is specified.
12189
121902008-02-01 Kenichi Handa <handa@m17n.org>
12191
12192 * xfaces.c (Fface_font): New optional arg CHARACTER.
12193
121942008-02-01 Kenichi Handa <handa@m17n.org>
12195
12196 * charset.h (CHARSET_OFFSET): New macro.
12197
121982008-02-01 Kenichi Handa <handa@m17n.org>
12199
12200 * xterm.c (x_get_font_repertory): Fix for non-Unicode-bmp charset.
12201
12202 * fontset.c (fontset_face): Handle the case that repertory is a
12203 char-table.
12204 (find_font_encoding): Return nil for unknown encoding.
12205 (Fset_fontset_font): Ignore a font of unknown encoding.
12206
122072008-02-01 Kenichi Handa <handa@m17n.org>
12208
12209 * keymap.c (describe_vector): Handle default value of a char table.
12210
12211 * fontset.c (fontset_face): Handle fallback fonts correctly.
12212 (Ffontset_info): Return infomation about fallback fonts.
12213
122142008-02-01 Kenichi Handa <handa@m17n.org>
12215
12216 * fontset.c (FONTSET_DEFAULT): New macro.
12217 (FONTSET_ADD, fontset_add): Handle the case that range is nil.
12218 (Fset_fontset_font): Change the 2nd arg name to TARGET, and handle
12219 the case that it is nil.
12220 (dump_fontset): Call FONTSET_DEFAULT, not FONTSET_FALLBACK.
12221 (syms_of_fontset): Set char-table-extra-slots property of fontset to 9.
12222
12223 * charset.h (CHAR_CHARSET_P): Fix for the case that the method is
12224 subset or superset.
12225
122262008-02-01 Kenichi Handa <handa@m17n.org>
12227
12228 * emacs.c (main): Call init_charset after syms_of_XXX.
12229
12230 * charset.c (Vcharset_map_directory): Delete.
12231 (Vcharset_map_path): New variable.
12232 (load_charset_map_from_file): Use Vcharset_map_path instead.
12233 (init_charset): Initialize Vcharset_map_path.
12234 (syms_of_charset): Delete declaration of "charset-map-directory",
12235 add declaration of "charset-map-path".
12236
122372008-02-01 Kenichi Handa <handa@m17n.org>
12238
12239 * fns.c (string_char_to_byte, string_byte_to_char): Optimize for
12240 ASCII only string.
12241
12242 * fileio.c (Finsert_file_contents): Avoid detecting a code twice.
12243
12244 * coding.c (detect_coding_iso_2022): Fix handling of SS2 and SS3.
12245 (detect_coding, detect_coding_system): Treat '\0' as normal ASCII byte.
12246
122472008-02-01 Kenichi Handa <handa@m17n.org>
12248
12249 * coding.h (SJIS_TO_JIS2, JIS_TO_SJIS2): New macros.
12250
12251 * coding.c (QCmnemonic, QCdefalut_char)
12252 (QCdecode_translation_table, QCencode_translation_table)
12253 (QCpost_read_conversion, QCpre_write_conversion): New variables.
12254 (get_translation_table): Return a list of translation tables if
12255 necessary.
12256 (decode_coding): Call get_translation_table with ENCODEP 0.
12257 (char_encodable_p): If translation_table is non-nil, always call
12258 translate_char.
12259 (Fdefine_coding_system_internal): Accept list of translation
12260 tables as :encode-translation-table and :decode-translation-table.
12261 (Fcoding_system_put): New function.
12262 (syms_of_coding): Declare new symbols. Defsubr
12263 Scoding_system_put.
12264 (decode_coding_sjis, encode_coding_sjis): Handle 4th charset,
12265 typically JISX0212.
12266
12267 * charset.c (map_charset_chars): Fix arg to map_charset_chars in
12268 when the charset is superset type.
12269
12270 * character.c (translate_char): Accept list of translation tables.
12271
122722008-02-01 Kenichi Handa <handa@m17n.org>
12273
12274 * coding.h (enum coding_attr_index): New member coding_attr_trans_tbl.
12275 (CODING_ATTR_TRANS_TBL): New macro.
12276
12277 * coding.c (get_translation_table): New function.
12278 (translate_chars): Fix the bug of skipping annotation data.
12279 (decode_coding, encode_coding): Utilize get_translation_table.
12280 (char_encodable_p, Funencodable_char_position): Translate char if
12281 necessary.
12282 (Ffind_coding_systems_region_internal)
12283 (Fcheck_coding_systems_region): Setup translation table for encode
12284 in a coding system attribute vector in advance.
12285 (Fdefine_coding_system_internal): Allow a symbol as translation
12286 table. For shift-jis type coding system, allow 4th charset.
12287
122882008-02-01 Kenichi Handa <handa@m17n.org>
12289
12290 * coding.c (decode_coding_sjis): Check the first byte rigidly.
12291
12292 * xdisp.c (get_next_display_element): Pass -1 as POS to
12293 FACE_FOR_CHAR if displaying a C-string.
12294
122952008-02-01 Kenichi Handa <handa@m17n.org>
12296
12297 * composite.c (get_composition_id): Handle xoff and yoff in a
12298 composition rule.
12299
12300 * composite.h (COMPOSITION_DECODE_RULE): New arg xoff and yoff.
12301 (struct composition): New member lbearing and rbearing.
12302
12303 * xdisp.c (move_it_to): Optimize for the case (op & MOVE_TO_Y).
12304 (x_get_glyph_overhangs): Handle a composition glyph.
12305 (x_produce_glyphs): Setup lbearing and rbreaing for a composition glyph.
12306
12307 * xterm.c (x_compute_glyph_string_overhangs): Handle also a
12308 composition glyph.
12309
123102008-02-01 Kenichi Handa <handa@m17n.org>
12311
12312 * print.c: Include charset.h.
12313 (Vprint_charset_text_property): New variable.
12314 (Qdefault): Extern it.
12315 (PRINT_STRING_NON_CHARSET_FOUND)
12316 (PRINT_STRING_UNSAFE_CHARSET_FOUND): New macros.
12317 (print_check_string_result): New variable.
12318 (print_check_string_charset_prop): New function.
12319 (print_prune_charset_plist): New variable.
12320 (print_prune_string_charset): New function.
12321 (print_object): Call print_prune_string_charset if
12322 Vprint_charset_text_property is not t.
12323 (print_interval): Print nothing if interval->plist is nil.
12324 (syms_of_print): Declare Vprint_charset_text_property as a lisp
12325 variable. Init and staticpro print_prune_charset_plist.
12326
123272008-02-01 Kenichi Handa <handa@m17n.org>
12328
12329 * fontset.c (new_fontset_from_font_name): Use the specified font
12330 for all characters in the new fontset.
12331
12332 * macterm.c (x_set_mouse_face_gc): Call FACE_FOR_CHAR with POS and
12333 OBJECT args.
12334
12335 * xdisp.c (x_produce_glyphs): Call FACE_FOR_CHAR with POS and
12336 OBJECT args for composition too.
12337
12338 * w32term.c (x_set_mouse_face_gc): Call FACE_FOR_CHAR with POS and
12339 OBJECT args.
12340
123412008-02-01 Kenichi Handa <handa@m17n.org>
12342
12343 * dispextern.h (FACE_FOR_CHAR): New args POS and OBJECT.
12344
12345 * fontset.c (reorder_font_vector): Adjust for the change of
12346 FONT_DEF format.
12347 (fontset_face): New arg id. Change caller.
12348 (face_for_char): New args pos and object.
12349 (make_fontset_for_ascii_face): Adjust for the change of FONT_DEF format.
12350 (fs_query_fontset): Check NAME by Fassoc too.
12351 (Fset_fontset_font): Allow non-XLFD font name.
12352 (Ffontset_info): Adjust for the change of FONT_DEF format.
12353
12354 * fontset.h (face_for_char): Adjust prototype.
12355
12356 * xdisp.c (face_before_or_after_it_pos, get_next_display_element)
12357 (append_space, extend_face_to_end_of_line)
12358 (get_char_face_and_encoding, BUILD_COMPOSITE_GLYPH_STRING)
12359 (x_produce_glyphs): Call FACE_FOR_CHAR with POS and OBJECT args.
12360
12361 * xfaces.c (compute_char_face): Call FACE_FOR_CHAR with
12362 POS and OBJECT args.
12363
12364 * xterm.c (x_set_mouse_face_gc): Call FACE_FOR_CHAR with
12365 POS and OBJECT args.
12366
123672008-02-01 Jason Rumney <jasonr@gnu.org>
12368
12369 * w32select.c (Fw32_set_clipboard_data): Avoid potential realloc
12370 of GlobalAlloc'ed memory.
12371
123722008-02-01 Kenichi Handa <handa@m17n.org>
12373
12374 * ccl.c (Fccl_execute_on_string): Fix the condition of loop.
12375
12376 * charset.h (charset_table_used): Delete extern.
12377
12378 * charset.c (charset_table_used): Make it static.
12379 (map_charset_chars): Fix args to c_function with.
12380
12381 * chartab.c (map_sub_char_table_for_charset): Fix args to
12382 c_function with.
12383
12384 * coding.h (enum coding_result_code): Delete
12385 CODING_RESULT_INSUFFICIENT_CMP, add CODING_RESULT_INVALID_SRC.
12386
12387 * coding.c (Qinsufficient_source, Qinconsistent_eol)
12388 (Qinvalid_source, Qinterrupted, Qinsufficient_memory): New variables.
12389 (Vlast_code_conversion_error): New variables.
12390 (syms_of_coding): DEFSYM or DEFVAR_LISP them.
12391 (ONE_MORE_BYTE): Record error if any instead of signaling an
12392 error. If non-ASCII multibyte char is found, return the negative
12393 value of the code. All callers changed to check it.
12394 (ONE_MORE_BYTE_NO_CHECK): Likewise.
12395 (record_conversion_result): New function. Change all codes setting
12396 coding->result to call this function.
12397 (detect_coding_utf_8, decode_coding_utf_8)
12398 (detect_coding_emacs_mule, detect_coding_sji, detect_coding_big5):
12399 Don't use the local variable incomplete.
12400 (emacs_mule_char): Change the second arg to `const'.
12401 (decode_coding): Fix of flushing out unprocessed data.
12402 (make_conversion_work_buffer): Fix making of a work buffer.
12403 (decode_coding_object): Return coding->dst_object.
12404
12405 * fontset.c (set_fontset_font): Fix args.
12406
12407 * lisp.h (CHARACTERBITS): Define as 22.
12408
12409 * process.c (send_process): Be sure to set coding->src_multibyte.
12410
12411 * xdisp.c (handle_auto_composed_prop): Fix setting of limit.
12412
124132008-02-01 Kenichi Handa <handa@m17n.org>
12414
12415 * xdisp.c (handle_auto_composed_prop): Give limit to
12416 Fnext_single_char_property_change.
12417
124182008-02-01 Kenichi Handa <handa@m17n.org>
12419
12420 * composite.c (syms_of_composite): Don't make the composition hash
12421 table weak.
12422
12423 * fontset.c (Fset_fontset_font): Fix docstring.
12424
12425 * lisp.h (detect_coding_system): Adjust prototype.
12426
12427 * fileio.c (kill_workbuf_unwind): Delete this function.
12428 (Finsert_file_contents): Adjust the call of detect_coding_system.
12429 Get conversion_buffer by code_conversion_save. Use the macro
12430 CODING_MAY_REQUIRE_DECODING. After decoding, update
12431 coding_system.
12432
12433 * coding.h (make_conversion_work_buffer): Delete extern.
12434 (code_conversion_save): Extern it.
12435
12436 * coding.c (enum iso_code_class_type): Delete ISO_carriage_return.
12437 (CODING_GET_INFO): Delete argument eol_type. Change callers.
12438 (decode_coding_utf_8): Don't do eol converion.
12439 (detect_coding_utf_16): Check coding->src_chars, not
12440 coding->src_bytes. Add heuristics for those that have no signature.
12441 (decode_coding_emacs_mule, decode_coding_iso_2022)
12442 (decode_coding_sjis, decode_coding_big5, decode_coding_charset):
12443 Don't do eol converion.
12444 (adjust_coding_eol_type): Return a new coding system.
12445 (detect_coding): Don't detect eol. Fix for utf-16 detection.
12446 (decode_eol): In case of CRLF->LF conversion, use del_range_2 on
12447 each change.
12448 (decode_coding): Pay attention to undo_list. Do eol conversion for
12449 all types of coding-systems (if necessary).
12450 (Vcode_conversion_work_buf_list): Delete it.
12451 (Vcode_conversion_reused_workbuf): Rename from
12452 Vcode_conversion_reused_work_buf.
12453 (Vcode_conversion_workbuf_name): New variable.
12454 (reused_workbuf_in_use): New variable.
12455 (make_conversion_work_buffer): Delete the arg DEPTH.
12456 (code_conversion_restore): Change argument to cons.
12457 (code_conversion_save): Delete the argument BUFFER. Change callers.
12458 (detect_coding_system): New argument src_chars. Change callers.
12459 Fix for utf-16 detection.
12460 (init_coding_once): Don't use ISO_carriage_return.
12461 (syms_of_coding): Initialize Vcode_conversion_workbuf_name and
12462 reused_workbuf_in_use.
12463
124642008-02-01 Kenichi Handa <handa@m17n.org>
12465
12466 * keymap.c (store_in_keymap): Pay attention to the case that idx
12467 is a cons specifying a character range.
12468
124692008-02-01 Kenichi Handa <handa@m17n.org>
12470
12471 * xdisp.c (handle_auto_composed_prop): Fix the case of returning
12472 HANDLED_RECOMPUTE_PROPS.
12473
12474 * coding.c (Fdefine_coding_system_internal): Fix checking of
12475 ascii compatibility.
12476
124772008-02-01 Kenichi Handa <handa@m17n.org>
12478
12479 * charset.c (find_charsets_in_text): Delete unused locale variable.
12480 (Fset_charset_priority): Update Vemacs_mule_charset_list too.
12481
12482 * coding.c (encode_coding_emacs_mule): Emit bytes with MSB.
12483 Resync charset_list to Vemacs_mule_charset_list.
12484
12485 * keymap.c (store_in_keymap): Pay attention to the case that idx
12486 is a cons specifying a character range.
12487
124882008-02-01 Kenichi Handa <handa@m17n.org>
12489
12490 * composite.c (update_compositions): Bind inhibit-read-only, etc
12491 to t before calling remove-list-of-text-properties.
12492
12493 * print.c (print_object): Always print ASCII chars as is.
12494
124952008-02-01 Kenichi Handa <handa@m17n.org>
12496
12497 * keymap.c (Fdefine_key): Fix handling of Lucid style event type list.
12498
12499 * fns.c (Fmapconcat, Fmapcar, Fmapc): Signal an error if SEQUENCE
12500 is a char table.
12501
125022008-02-01 Kenichi Handa <handa@m17n.org>
12503
12504 * syntax.c (skip_chars): Be sure to alloca char_ranges when necessary.
12505
125062008-02-01 Kenichi Handa <handa@m17n.org>
12507
12508 * xfaces.c (set_lface_from_font_name): Fix for the case that
12509 FONTNAME is not fontset name.
12510
125112008-02-01 Kenichi Handa <handa@m17n.org>
12512
12513 * fns.c (base64_encode_1): Fix previous change.
12514
125152008-02-01 Kenichi Handa <handa@m17n.org>
12516
12517 * fontset.c (set_fontset_font): New function.
12518 (Fset_fontset_font): If a font is specified for a charset, use
12519 map_charset_chars to store the font spec in a fontset.
12520
125212008-02-01 Kenichi Handa <handa@m17n.org>
12522
12523 * fontset.c (fontset_face): Create a fallback fontset on demand.
12524 (make_fontset): Don't create a fallback fontset here.
12525 (free_face_fontset): Free a fallback fontset (if any) too.
12526 (n_auto_fontsets): Delete this variable.
12527 (auto_fontset_alist): New variable.
12528 (new_fontset_from_font_name): Check auto_fontset_alist.
12529 (dump_fontset) [FONTSET_DEBUG]: Fully re-written.
12530 (Ffontset_list_all) [FONTSET_DEBUG]: New function.
12531 (syms_of_fontset): Initialize and staticpro auto_fontset_alist.
12532 Defsubr Sfontset_list_all.
12533
125342008-02-01 Kenichi Handa <handa@m17n.org>
12535
12536 * xterm.c (x_list_fonts): Fix excluding of auto-scaled fonts.
12537
125382008-02-01 Kenichi Handa <handa@m17n.org>
12539
12540 * fontset.c (Fnew_fontset): Check NAME more rigidly.
12541
125422008-02-01 Kenichi Handa <handa@m17n.org>
12543
12544 * editfns.c (Fgoto_char): Fix docstring.
12545
125462008-02-01 Kenichi Handa <handa@m17n.org>
12547
12548 * insdel.c (insert_from_gap): Adjust intervals correctly.
12549
125502008-02-01 Jason Rumney <jasonr@gnu.org>
12551
12552 * w32term.c (GLYPHSET, WCRANGE): Define if system headers don't.
12553 (pfnGetFontUnicodeRanges): New dynamically loaded function.
12554 (w32_initialize): Try to load it.
12555 (x_get_font_repertory): Use it if available.
12556 (w32_encode_char): Add shortcut for unicode output.
12557
12558 * w32fns.c (w32_load_system_font): Default charset to -1.
12559 (x_to_w32_charset): Match all fonts for unicode.
12560 (w32_to_x_charset): New parameter matching. Don't return partial
12561 or wildcard charsets.
12562 (w32_to_all_x_charsets): Don't return partial or wildcard charsets.
12563 (w32_codepage_for_font): Return CP_UNICODE for unicode.
12564 (w32_to_x_font): Match charset to real charset.
12565 (enum_font_cb2): Always list unicode versions.
12566
12567 * makefile.w32-in (temacs): Increase EMHEAP.
12568
125692008-02-01 Jason Rumney <jasonr@gnu.org>
12570
12571 * w32term.c (w32_encode_char): New charset parameter.
12572 font_info.encoding becomes encoding_type.
12573 (x_get_font_repertory): New function. Warning: stub only!
12574 (x_new_font): Return quickly if font already set.
12575 (x_new_fontset): fontsetname parameter is Lisp_Object.
12576 Use new fs_query_fontset. Try new_fontset_from_font_name.
12577 Use fontset_name for return value.
12578
12579 * w32term.h: Declare x_get_font_repertory.
12580
12581 * w32select.c (Fw32_set_clipboard_data): Use string_x_string_p in
12582 place of find_charset_in_text. Use encode_coding_object in place
12583 of encode_coding.
12584 (Fw32_get_clipboard_data): Use decode_coding_c_string in place of
12585 decode_coding.
12586
12587 * w32fns.c (Fx_create_frame, x_create_tip_frame): Use new version
12588 of x_new_fontset.
12589 (w32_load_system_font): Initialize charset as unicode.
12590 font_info.encoding becomes encoding_type.
12591 (w32_to_x_font): Use decode_coding_c_string in place of decode_coding.
12592 (x_to_w32_font): Use encode_coding_object in place of encode_coding.
12593 (syms_of_w32fns): Set get_font_repertory_func.
12594
12595 * w32console.c: Include character.h. Use terminal_encode_buffer
12596 from term.c.
12597 (write_glyphs): Use new version of encode_terminal_code. Use
12598 encode_coding_object in place of encode_coding.
12599
12600 * w32bdf.c (w32_load_bdf_font): Clear font_info before filling.
12601 encoding becomes encoding_type.
12602
12603 * term.c (terminal_encode_buffer): Make externally visible.
12604
12605 * makefile.w32-in: Add character.h dependancies.
12606 (character.o, chartab.o): New targets.
12607
126082008-02-01 Kenichi Handa <handa@m17n.org>
12609
12610 * fileio.c (Finsert_file_contents) [DOS_NT]: Use the macro
12611 CODING_ID_EOL_TYPE.
12612
126132008-02-01 Andreas Schwab <schwab@suse.de>
12614
12615 * coding.c (produce_chars): Revert last change.
12616
126172008-02-01 Kenichi Handa <handa@m17n.org>
12618
12619 * charset.h (charset_unicode): Extern it.
12620
12621 * charset.c (string_xstring_p): Check by (C >= 0x100).
12622 (find_charsets_in_text): Change format of the arc CHARSETS. New
12623 arg MULTIBYTE.
12624 (Ffind_charset_region, Ffind_charset_string): Adjust for the
12625 change of find_charsets_in_text.
12626 (Fsplit_char): Fix doc. Never return unknown.
12627
12628 * chartab.c (char_table_translate): Use CHARACTERP, not INTEGERP.
12629
12630 * coding.c (Fdefine_coding_system_alias): Update
12631 Vcoding_system_list.
12632
12633 * fontset.c (load_font_get_repertory): Pay attention to the case
12634 that ENCODING of a font is specified by a char-table.
12635
12636 * xterm.c (x_get_font_repertory): Handle the case that the
12637 encoding of font is other than Unicode.
12638
126392008-02-01 Kenichi Handa <handa@m17n.org>
12640
12641 * term.c (encode_terminal_code): Don't handle glyph-table. Check
12642 if a character is encodable by the terminal coding system. If
12643 not, produces proper number of `?'s. Update
12644 terminal_encode_buffer and terminal_encode_buf_size if necessary.
12645 (produce_glyphs): Check by CHAR_BYTE8_P, not SINGLE_BYTE_CHAR_P.
12646
126472008-02-01 Kenichi Handa <handa@m17n.org>
12648
12649 * term.c (terminal_encode_buffer, terminal_encode_buf_size): New
12650 variables.
12651 (encode_terminal_code): Change argument. Encode multiple
12652 characters at once. Store the result of encoding in
12653 terminal_encode_buffer.
12654 (write_glyphs, insert_glyphs): Adjust for the change of
12655 encode_terminal_code.
12656 (term_init): Initialize terminal_encode_buffer and
12657 terminal_encode_buf_size.
12658
12659 * coding.c (consume_chars): If coding->src_object is nil, don't
12660 check annotation.
12661
126622008-02-01 Kenichi Handa <handa@m17n.org>
12663
12664 * character.c (char_string): Use ASCII_CHAR_P instead of
12665 SINGLE_BYTE_CHAR_P.
12666
126672008-02-01 Kenichi Handa <handa@m17n.org>
12668
12669 * xdisp.c (handle_auto_composed_prop): Check if the last
12670 characters of auto-composed region is newly composed with the
12671 following characters.
12672 (handle_composition_prop): Fix checking of point being inside
12673 composition.
12674
126752008-02-01 Kenichi Handa <handa@m17n.org>
12676
12677 * fns.c (concat): Don't change multibyteness of the result by
12678 concatenating an 8-bit character.
12679
12680 * data.c (Faset): Check newelt by CHECK_CHARACTER. Don't change
12681 multibyteness of the result when newelt is an 8-bit character.
12682
126832008-02-01 Dave Love <fx@gnu.org>
12684
12685 * xmenu.c (find_and_call_menu_selection): Make menu_bar_items_used
12686 EMACS_INT.
12687
12688 * xfns.c (DefaultDepthOfScreen, x_encode_text): Remove unused vars.
12689
12690 * xfaces.c (face_numeric_value): Declare dim size_t.
12691 (Finternal_lisp_face_equal_p): Remove unused f.
12692
12693 * xdisp.c (BUILD_CHAR_GLYPH_STRINGS, display_and_set_cursor)
12694 (MATRIX_ROW): Remove unused vars.
12695 (draw_glyphs, x_insert_glyphs, fast_find_position)
12696 (fast_find_position, fast_find_string_pos): Use EMACS_INT for
12697 byte/char counts.
12698
12699 * regex.c (regex_compile): Remove unused var.
12700
12701 * minibuf.c (Fminibuffer_complete_word): Remove unused var.
12702
12703 * keymap.c (Fset_keymap_parent, map_keymap, Fcopy_keymap)
12704 (Faccessible_keymaps, where_is_internal): Remove unused vars.
12705
12706 * keyboard.c (cancel_hourglass_unwind): Return Qnil.
12707
12708 * frame.c (frame_name_fnn_p): Make len EMACS_INT.
12709
12710 * fileio.c (Fwrite_region): Remove unused var.
12711
12712 * dispnew.c (adjust_frame_glyphs_for_frame_redisplay)
12713 (adjust_frame_glyphs_for_window_redisplay): Remove unused ch_dim.
12714
12715 * composite.c (Fremove_list_of_text_properties): Declare.
12716
12717 * coding.c (inhibit_pre_post_conversion): Remove (unused).
12718 (alloc_destination, produce_chars): Use EMACS_INT for byte/char counts.
12719 (coding_inherit_eol_type): Remove unused attrs.
12720 (detect_coding): Cast arg of detect_eol.
12721
12722 * charset.c (syms_of_charset): Remove unused var p.
12723 (find_charsets_in_text, Ffind_charset_region): Use EMACS_INT for
12724 byte/char counts.
12725
12726 * casetab.c (set_case_table): Remove unused var.
12727
12728 * window.c (Fdisplay_buffer, Fframe_selected_window): Remove
12729 unused vars.
12730
127312008-02-01 Dave Love <fx@gnu.org>
12732
12733 * xterm.c (x_bitmap_mask): Declare.
12734
127352008-02-01 Dave Love <fx@gnu.org>
12736
12737 * xterm.c (x_term_init): Fix type error.
12738
12739 * lisp.h: Add Funibyte_char_to_multibyte.
12740
12741 * coding.c (Fread_coding_system): Fix arg of XSETSTRING.
12742 (Fset_coding_system_priority): Doc fix.
12743
12744 * ccl.c (ccl_driver): Fix arg of CHARACTERP.
12745
12746 * indent.c (check_composition): Make start and end EMACS_INT.
12747
12748 * character.c (lisp_string_width): Make ignore and end EMACS_INT.
12749
12750 * xdisp.c (handle_composition_prop, check_point_in_composition):
12751 Make buffer positions EMACS_INT.
12752
12753 * composite.c (find_composition, run_composition_function)
12754 (update_compositions, Ffind_composition_internal): Make buffer
12755 positions EMACS_INT.
12756
12757 * composite.h (find_composition, update_compositions): Make
12758 position args EMACS_INT.
12759
12760 * keyboard.c (adjust_point_for_property): Make beg and end EMACS_INT.
12761
12762 * intervals.c (get_property_and_range):
12763 * intervals.h (get_property_and_range): Make start and end EMACS_INT.
12764
12765 * unexalpha.c: Don't include varargs.h.
12766
127672008-02-01 Dave Love <fx@gnu.org>
12768
12769 * coding.h (ENCODE_UTF_8): New.
12770
12771 * Makefile.in (gtkutil.o): Depend on coding.h.
12772
12773 * coding.c (Fset_coding_system_priority): Doc fix.
12774
127752008-02-01 Kenichi Handa <handa@m17n.org>
12776
12777 * fileio.c (Finsert_file_contents): Call setup_coding_system in
12778 the case of auto saving.
12779
127802008-02-01 Andreas Schwab <schwab@suse.de>
12781
12782 * chartab.c (map_char_table, map_char_table_for_charset): Protect
12783 `range' from GC.
12784
127852008-02-01 Kenichi Handa <handa@m17n.org>
12786
12787 * coding.c (decode_coding_sjis): Check bytes more rigidly.
12788
127892008-02-01 Kenichi Handa <handa@m17n.org>
12790
12791 * fileio.c (choose_write_coding_system): Return a decided coding system.
12792 (Fwrite_region): Set Vlast_coding_system_used to the return value
12793 of choose_write_coding_system.
12794
127952008-02-01 Kenichi Handa <handa@m17n.org>
12796
12797 * charset.c (Fset_charset_priority): Pay attention to duplicated
12798 arguments.
12799
12800 * coding.c (QCcategory): New variable.
12801 (syms_of_coding): Defsym it. Set all elements of
12802 Vcoding_category_table and their symbol values.
12803 (Fset_coding_system_priority): Doc fix. Update symbol qvalues of
12804 coding-category-XXX, and coding-category-list.
12805 (Fdefine_coding_system_internal): Add category in the plist.
12806
128072008-02-01 Kenichi Handa <handa@m17n.org>
12808
12809 * callproc.c (Fcall_process): Handle carryover correctly.
12810
12811 * coding.c (decode_coding_iso_2022): Fix handling of invalid bytes.
12812 (raw_text_coding_system): Check NILP (coding_system).
12813 (coding_inherit_eol_type): Check NILP (coding_system) and
12814 NILP (parent).
12815 (consume_chars): Fix for the case of raw-text.
12816
12817 * process.c (read_process_output): Handle carryover correctly.
12818
128192008-02-01 Dave Love <fx@gnu.org>
12820
12821 * regex.c (re_search_2): Fix last change.
12822
128232008-02-01 Kenichi Handa <handa@m17n.org>
12824
12825 * regex.c (GET_CHAR_BEFORE_2): Check multibyte, not
12826 target_multibyte. Even in a unibyte case, return a converted
12827 multibyte char.
12828 (GET_CHAR_AFTER): New macro.
12829 (PATFETCH): Translate via multibyte char.
12830 (HANDLE_UNIBYTE_RANGE): Delete this macro.
12831 (SETUP_MULTIBYTE_RANGE): New macro.
12832 (regex_compile): Setup compiled code so that its multibyteness
12833 matches that of a target. Fix the handling of "[X-YZ]" using
12834 SETUP_MULTIBYTE_RANGE.
12835 (analyse_first) <charset>: For filling fastmap for all multibyte
12836 characters, don't check by BASE_LEADING_CODE_P.
12837 (re_search_2): Don't check RE_TARGET_MULTIBYTE_P (bufp). It is
12838 the same as RE_MULTIBYTE_P (bufp) now.
12839 (mutually_exclusive_p): Check by (! multibyte || IS_REAL_ASCII (c)).
12840 (TARGET_CHAR_AND_LENGTH): Delete this macro.
12841 (TRANSLATE_VIA_MULTIBYTE): New macro.
12842 (re_match_2_internal): Don't check RE_TARGET_MULTIBYTE_P (bufp).
12843 It is the same as RE_MULTIBYTE_P (bufp) now.
12844 <exactn>: Translate via multibyte.
12845 <anychar>: Fetch a character by RE_STRING_CHAR_AND_LENGTH. Don't
12846 translate it.
12847 <charset, charset_not>: Fetch a character by
12848 RE_STRING_CHAR_AND_LENGTH. Translate via multibyte.
12849 <duplicate>: Call bcmp_translate with the last arg `multibyte'.
12850 <wordbound, notwordbound, wordbeg, wordend, syntaxspec,
12851 notsyntaxspec, categoryspec, notcategoryspec> Fetch a character
12852 by GET_CHAR_AFTER.
12853 (bcmp_translate): Likewise.
12854
12855 * search.c (compile_pattern): Check the member target_multibyte,
12856 not the member multibyte of buf.
12857
12858 * lread.c (read1): While reading a string, set force_singlebyte
12859 and force_multibyte correctly.
12860
12861 * charset.c (Fset_unibyte_charset, init_charset_once): Fix setting
12862 up of unibyte_to_multibyte_table.
12863
128642008-02-01 Kenichi Handa <handa@m17n.org>
12865
12866 * coding.c (setup_coding_system): If coding has
12867 post-read-conversion or pre-write-conversion, set
12868 CODING_REQUIRE_DECODING_MASK and CODING_REQUIRE_ENCODING_MASK
12869 respectively.
12870 (decode_coding_gap): Run post-read-conversion if any.
12871
12872 * fileio.c (Finsert_file_contents): Even if we read into a
12873 unibyte buffer, check if we must decode the result or not.
12874
128752008-02-01 Kenichi Handa <handa@m17n.org>
12876
12877 * coding.c (make_conversion_work_buffer): Change the work buffer
12878 name to the same one as that of Emacs 21.
12879
128802008-02-01 Kenichi Handa <handa@m17n.org>
12881
12882 * coding.h (make_conversion_work_buffer): Adjust prototype.
12883 (code_conversion_restore): Don't extern it.
12884
12885 * coding.c (detected_mask): Delete unused variable.
12886 (decode_coding_iso_2022): Pay attention to the byte sequence of
12887 CTEXT extended segment, and retain those bytes as is.
12888 (decode_coding_ccl): Delete unused variable `valids'.
12889 (setup_coding_system): Delete unused variable `category'.
12890 (consume_chars): Delete unused variable `category'. Make it work
12891 for non-multibyte case.
12892 (make_conversion_work_buffer): Change argument.
12893 (saved_coding): Delete unused variable.
12894 (code_conversion_restore): Don't check saved_coding->destination.
12895 (code_conversion_save): New function.
12896 (decode_coding_gap, encode_coding_gap): Call code_conversion_save
12897 instead of record_unwind_protect.
12898 (decode_coding_object, encode_coding_object): Likewise. Recover PT.
12899 (detect_coding_system): Delete unused variable `mask'.
12900 (Fdefine_coding_system_internal): Delete unused variable id.
12901
12902 * fileio.c (kill_workbuf_unwind): New function.
12903 (Finsert_file_contents): On replacing, call
12904 make_conversion_work_buffer with correct args, and call
12905 record_unwind_protect with the first arg kill_workbuf_unwind.
12906
12907 * lisp.h (Fgenerate_new_buffer_name): EXFUN it.
12908
129092008-02-01 Kenichi Handa <handa@m17n.org>
12910
12911 * fontset.c (BASE_FONTSET_P): Check FONTSET_BASE, not FONTSET_NAME.
12912 (fontset_add): Fix for the case that TO is less than TO1.
12913 (Ffontset_info): Don't use fallback fontset on checking the
12914 default fontset.
12915 (dump_fontset): New function for debugging.
12916
12917 * coding.c (Fdefine_coding_system_internal): Fix for the case that
12918 coding_type is Qcharset.
12919
129202008-02-01 Kenichi Handa <handa@m17n.org>
12921
12922 * chartab.c (map_sub_char_table): New argument DEFAULT_VAL.
12923 (map_char_table): Don't inherit the value from the parent on
12924 initializing VAL. Adjust for the above change.
12925
129262008-02-01 Kenichi Handa <handa@m17n.org>
12927
12928 * coding.c (Qsignature, Qendian): Delete these variables.
12929 (syms_of_coding): Don't initialize them.
12930 (CATEGORY_MASK_UTF_16_AUTO): New macro.
12931 (detect_coding_utf_16): Add CATEGORY_MASK_UTF_16_AUTO in
12932 detect_info->found.
12933 (decode_coding_utf_16): Don't detect BOM here.
12934 (encode_coding_utf_16): Produce BOM if CODING_UTF_16_BOM (coding)
12935 is NOT utf_16_without_bom.
12936 (setup_coding_system): For a coding system of type utf-16, check
12937 if the attribute :endian is Qbig or not (not nil or not), and set
12938 CODING_REQUIRE_DETECTION_MASK if BOM detection is required.
12939 (detect_coding): If coding type is utf-16 and BOM detection is
12940 required, detect it.
12941 (Fdefine_coding_system_internal): For a coding system of type
12942 utf-16, check if the attribute :endian is Qbig or not (not nil or not).
12943
129442008-02-01 Kenichi Handa <handa@m17n.org>
12945
12946 * coding.c (coding_set_source): Fix for the case that the current
12947 buffer is different from coding->src_object.
12948 (decode_coding_object): Don't use the conversion work buffer if
12949 DST_OBJECT is a buffer.
12950
129512008-02-01 Dave Love <fx@gnu.org>
12952
12953 * lread.c (read_emacs_mule_char) [len==2]: Index
12954 emacs_mule_charset correctly.
12955
129562008-02-01 Dave Love <fx@gnu.org>
12957
12958 * coding.c (Qbig5, Vbig5_coding_system, CATEGORY_MASK_BIG5)
12959 (detect_coding_big5, decode_coding_big5, encode_coding_big5)
12960 (Fdecode_big5_char, Fencode_big5_char): Delete. (Big5 no longer
12961 treated specially.)
12962 (setup_coding_system, coding_category, CATEGORY_MASK_ANY)
12963 (detected_mask): Remove Big5 bits.
12964
129652008-02-01 Kenichi Handa <handa@m17n.org>
12966
12967 The following changes are to make the font rescaling facility
12968 compatible with Emacs 21.
12969
12970 * xfaces.c (Vface_font_rescale_alist): Rename from
12971 Vface_resizing_fonts.
12972 (struct font_name): Rename member resizing_ratio to rescale_ratio.
12973 (font_rescale_ratio): Rename from font_resizing_ratio.
12974 (split_font_name): Set font->rescale_ratio.
12975 (better_font_p): Pay attention to font->rescale_ratio.
12976 (build_scalable_font_name): Likewise. Change RESX, and RESY
12977 fields.
12978 (syms_of_xfaces): Declare Vface_font_rescale_alist as a Lisp variable.
12979
129802008-02-01 Kenichi Handa <handa@m17n.org>
12981
12982 * coding.c (Qutf_16_be_nosig, Qutf_16_be, Qutf_16_le_nosig)
12983 (Qutf_16_le): Remove these variables.
12984 (syms_of_coding): Don't DEFSYM them.
12985 (decode_coding_utf_16): Fix handling of BOM.
12986 (encode_coding_utf_16): Fix handling of BOM.
12987
129882008-02-01 Kenichi Handa <handa@m17n.org>
12989
12990 * fileio.c (Finsert_file_contents): On replacing, before decoding
12991 the file into the work buffer, set point of the work buffer to the end.
12992
129932008-02-01 Dave Love <fx@gnu.org>
12994
12995 * coding.c (Fcheck_coding_systems_region): Fix type errors.
12996
129972008-02-01 Dave Love <fx@gnu.org>
12998
12999 * xterm.c (XTread_socket): Check Lisp types for Vx_keysym_table
13000 and fix C types.
13001
130022008-02-01 Kenichi Handa <handa@m17n.org>
13003
13004 * xdisp.c (SKIP_GLYPHS): New macro.
13005 (set_cursor_from_row): Pay attention to string display properties.
13006
13007 * category.c (copy_category_entry): Fix for the case that RANGE
13008 is an integer.
13009
13010 * xterm.c (x_encode_char): Call ccl_driver with the last arg Qnil.
13011
13012 * w32term.c (w32_encode_char): Call ccl_driver with the last arg Qnil.
13013
130142008-02-01 Kenichi Handa <handa@m17n.org>
13015
13016 * charset.c (Fcharset_id_internal): New function.
13017 (syms_of_charset): Defsubr it.
13018
13019 * coding.c (decode_coding_ccl, encode_coding_ccl): Call ccl_driver
13020 with the last arg charset_list acquired from coding.
13021 (Fdefine_coding_system_internal): For ccl-based coding system, fix
13022 the attribute coding_attr_ccl_valids.
13023
13024 * coding.h (enum define_coding_ccl_arg_index): Set the first
13025 member coding_arg_ccl_decoder to coding_arg_max.
13026
13027 * ccl.h (ccl_driver): Adjust prototype.
13028
13029 * ccl.c (CCL_DECODE_CHAR, CCL_ENCODE_CHAR): New macros.
13030 (ccl_driver): New arg CHARSET_LIST. Use the above macros instead
60612c8f 13031 of DECODE_CHAR, ENCODE_CHAR, CHAR_CHARSET.
aac0c6e3
MR
13032 (Fccl_execute, Fccl_execute_on_string): Call ccl_driver with the
13033 last arg Qnil.
13034
130352008-02-01 Kenichi Handa <handa@m17n.org>
13036
13037 * charset.h (ENCODE_CHAR): If the method is SUBSET or SUPERSET,
13038 call encode_char.
13039
13040 * charset.c (encode_char): Fix handling of methods SUBSET and SUPERSET.
13041
130422008-02-01 Dave Love <fx@gnu.org>
13043
13044 * composite.c (syms_of_composite): Make composition_hash_table weak.
13045
130462008-02-01 Kenichi Handa <handa@m17n.org>
13047
13048 * dispextern.h (check_face_attributes, generate_ascii_font_name)
13049 (font_name_registry): Don't extern them.
13050 (split_font_name_into_vector, build_font_name_from_vector): Extern them.
13051
13052 * fontset.h (Qfontset): Don't extern it.
13053 (new_fontset_from_font_name): Extern it.
13054
13055 * fontset.c: Give 8 extra slots to fontset objects.
13056 (Qfontset_info): New variable.
13057 (syms_of_fontset): Defsym it.
13058 (FONTSET_FALLBACK): New macro.
13059 (fontset_face): Try also the default fontset.
13060 (make_fontset): Realize a fallback fontset from the default fontset.
13061 (generate_ascii_font_name): Move from xfaces.c. Rewritten by
13062 using split_font_name_into_vector and build_font_name_from_vector.
13063 (Fset_fontset_font): Access the elements of font_spec by enum
13064 FONT_SPEC_INDEX. If font_spec is a string, extract the registry
13065 name by using split_font_name_into_vector.
13066 (Fnew_fontset): If no ASCII font is specified in FONTLIST,
13067 generate a proper font name from the fontset name. Update
13068 Vfontset_alias_alist.
13069 (n_auto_fontsets): New variable.
13070 (new_fontset_from_font_name): New function.
13071 (Ffont_info): Store the information about fonts generated from the
13072 default fontset in the first extra slot of the returned char-table.
13073
13074 * xfaces.c (generate_ascii_font_name): Move to fontset.c.
13075 (font_name_registry): Delete function.
13076 (split_font_name_into_vector): New function.
13077 (build_font_name_from_vector): New function.
13078 (font_list): The argument REGISTRY is now a list of registry names.
13079 (choose_face_font): If we are choosing an ASCII font, and ATTRS
13080 specifies an explicit font name, return the name as is. Make a
13081 list of registy names.
13082
13083 * xfns.c (x_set_font, x_create_tip_frame): Adjust for the change
13084 of x_new_fontset.
13085 (Fx_create_frame): Don't call x_new_fontset here. Just use
13086 x_list_fonts to check the existence of fonts.
13087
13088 * xterm.h (x_new_fontset): Adjust prototype.
13089
13090 * xterm.c (x_new_fontset): Change the arg FONTSETNAME to Lisp
13091 string. Use new_fontset_from_font_name to create a fontset from a
13092 font name.
13093
130942008-02-01 Kenichi Handa <handa@m17n.org>
13095
13096 * syntax.c (Vfind_word_boundary_function_table): New name for
13097 Vnext_word_boundary_function_table.
13098 (find-word-boundary-function-table): New name for
13099 next-word-boundary-function-table.
13100
131012008-02-01 Dave Love <fx@gnu.org>
13102
13103 * Makefile.in: Fix some dependencies.
13104
13105 * keymap.c (Fapropos_internal): Don't gcpro apropos_predicate but
13106 set it to nil before returning.
13107
13108 * composite.c (update_compositions): Fix type error.
13109
13110 * syntax.c (skip_chars, skip_syntaxes): Fix type errors.
13111
131122008-02-01 Kenichi Handa <handa@m17n.org>
13113
13114 * xterm.c (x_new_font): Optimize for the case that the font is
13115 already set for the frame.
13116
131172008-02-01 Kenichi Handa <handa@m17n.org>
13118
13119 * chartab.c (char_table_ascii): Check if the char table contents
13120 is sub-char-table or not.
13121 (char_table_set, char_table_set_range): Fix argument to
13122 char_table_ascii.
13123
13124 * coding.c (CATEGORY_MASK_RAW_TEXT): New macro.
13125 (detect_coding_utf_8, detect_coding_utf_16)
13126 (detect_coding_emacs_mule, detect_coding_iso_2022)
13127 (detect_coding_sjis, detect_coding_big5)
13128 (detect_coding_ccl, detect_coding_charset): Change argument MASK
13129 to DETECT_INFO. Update DETECT_INFO and return 1 if the byte
13130 sequence is valid in this coding system. Change callers.
13131 (MAX_ANNOTATION_LENGTH): New macro.
13132 (ADD_ANNOTATION_DATA): New macro.
13133 (ADD_COMPOSITION_DATA): Change argument. Change callers. Call
13134 ADD_ANNOTATION_DATA. Change the format of annotation data.
13135 (ADD_CHARSET_DATA): New macro.
13136 (emacs_mule_char): New argument ID. Change callers.
13137 (decode_coding_emacs_mule, decode_coding_iso_2022)
13138 (decode_coding_sjis, decode_coding_big5, decode_coding_charset):
13139 Produce charset annotation data in coding->charbuf.
13140 (encode_coding_emacs_mule, encode_coding_iso_2022): Pay attention
13141 to charset annotation data in coding->charbuf.
13142 (setup_coding_system): Add CODING_ANNOTATE_CHARSET_MASK
13143 coding->common_flags if the coding system is iso-2022 based and
13144 uses designation.
13145 (produce_composition): Adjust for the new annotation data format.
13146 (produce_charset): New function.
13147 (produce_annotation): Handle charset annotation.
13148 (handle_composition_annotation, handle_charset_annotation): New
13149 functions.
13150 (consume_chars): Handle charset annotation. Utilize the above two
13151 functions.
13152 (encode_coding_object): If SRC_OBJECT and DST_OBJECT are the same
13153 buffer, get the deleted text as a string and set
13154 coding->src_object to that string.
13155 (detect_coding, detect_coding_system): Use the new struct
13156 coding_detection_info.
13157
13158 * coding.h (struct coding_detection_info): New structure.
13159 (struct coding_system): Adjust prototype of the member `detector'.
13160 (CODING_ANNOTATE_CHARSET_MASK): New macro.
13161
131622008-02-01 Kenichi Handa <handa@m17n.org>
13163
13164 * insdel.c (insert_from_gap): Fix argument to offset_intervals.
13165
131662008-02-01 Dave Love <fx@gnu.org>
13167
13168 * keymap.c (apropos_predicate, apropos_accumulate): Declare static.
13169 (Fapropos_internal): Don't gcpro apropos_accumulate. Set result
13170 to new local and nullify apropos_accumulate before returning.
13171 (syms_of_keymap): Staticpro and initialize apropos_accumulate.
13172
131732008-02-01 Kenichi Handa <handa@m17n.org>
13174
13175 * charset.c (Fdefine_charset_internal): Setup charset.fast_map
13176 correctly.
e3eea1fc 13177
aac0c6e3
MR
131782008-02-01 Dave Love <fx@gnu.org>
13179
13180 * fns.c (Flanginfo): Call synchronize_system_time_locale.
13181
131822008-02-01 Kenichi Handa <handa@m17n.org>
13183
13184 The following changes are to make character composition happen
13185 automatically on displaying.
13186
13187 * Makefile.in (lisp, shortlisp): Add composite.elc.
13188
13189 * composite.h (Qauto_composed, Vauto_composition_function)
13190 (Qauto_composition_function): Extern them.
13191
13192 * composite.c (Vcomposition_function_table)
13193 (Qcomposition_function_table): Delete variables.
13194 (Qauto_composed, Vauto_composition_function)
13195 (Qauto_composition_function): New variables.
13196 (run_composition_function): Don't call
13197 compose-chars-after-function.
13198 (update_compositions): Clear `auto-composed' text property.
13199 (compose_chars_in_text): Delete this function.
13200 (syms_of_composite): Staticpro Qauto_composed and
13201 Qauto_composition_function. Declare Vauto_composition_function as
13202 a Lisp variable.
13203
13204 * dispextern.h (enum prop_idx): Add member AUTO_COMPOSED_PROP_IDX.
13205
13206 * xdisp.c (it_props): Add an entry for Qauto_composed.
13207 (handle_auto_composed_prop): New function.
13208
13209 * xselect.c (selection_data_to_lisp_data): Don't call
13210 compose_chars_in_text.
13211
132122008-02-01 Dave Love <fx@gnu.org>
13213
13214 * keyboard.c (read_char): Modify checking around use of
13215 Vkeyboard_translate_table.
13216
13217 * xterm.c (XTread_socket): Check Lisp types for Vx_keysym_table
13218 and fix C types.
13219
132202008-02-01 Kenichi Handa <handa@m17n.org>
13221
13222 * coding.c (decode_coding_utf_8, decode_coding_emacs_mule)
13223 (decode_coding_iso_2022, decode_coding_sjis, decode_coding_big5)
13224 (decode_coding_charset, produce_chars): When eol_type is Qdos, handle
13225 the case that the last byte is '\r' correctly.
13226 (decode_coding): Flush out the unprocessed data correctly.
13227 (decode_coding_gap): Set CODING_MODE_LAST_BLOCK bit of coding->mode.
13228
132292008-02-01 Dave Love <fx@gnu.org>
13230
13231 * xterm.c (XTread_socket): Fix changes for defined keysyms.
13232 Add XK_ISO... case.
13233 (xaw_scroll_callback): Revert last change.
13234
132352008-02-01 Kenichi Handa <handa@m17n.org>
13236
13237 * charset.c (Fset_charset_priority): Update Viso_2022_charset_list.
13238
132392008-02-01 Kenichi Handa <handa@m17n.org>
13240
13241 * xfaces.c (Vface_resizing_fonts): New variable.
13242 (struct font_name): New member `resizing_ratio'.
13243 (font_resizing_ratio): New function.
13244 (split_font_name): Set font->resizing_ratio.
13245 (better_font_p): Pay attention to font->resizing_ratio.
13246 (build_scalable_font_name): Likewise. Don't change POINT_SIZE,
13247 RESX, and RESY fields.
13248 (try_alternative_families): Try scalable fonts if
13249 Vscalable_fonts_allowed is not Qt.
13250 (syms_of_xfaces): Declare Vface_resizing_fonts as a Lisp variable.
13251
132522008-02-01 Dave Love <fx@gnu.org>
13253
13254 * xterm.c (xaw_scroll_callback): Cast correctly.
13255
132562008-02-01 Dave Love <fx@gnu.org>
13257
13258 * keyboard.c (lispy_accent_codes, lispy_accent_keys): Extend.
13259 (lispy_kana_keys): Comment out.
13260 (make_lispy_event) [XK_kana_A]: Comment out.
13261
13262 * xterm.c (xaw_scroll_callback): Cast call_data.
13263 (XTread_socket): Deal with ASCII keysyms.
13264 (syms_of_xterm) <Vx_keysym_table>: Fix args of make_hash_table.
13265
132662008-02-01 Dave Love <fx@gnu.org>
13267
13268 * xterm.c (Vx_keysym_table): New.
13269 (syms_of_xterm): Initialize it.
13270 (XTread_socket): Use it.
13271 From head: Eliminate incorrect optimization that tried to avoid
13272 decoding the output of X*LookupString.
13273 (x_get_font_repertory): Delete charset declaration.
13274
132752008-02-01 Kenichi Handa <handa@m17n.org>
13276
13277 * coding.c (detect_coding_charset): If only ASCII bytes are found,
13278 return 0.
13279 (Fdefine_coding_system_internal): Setup
13280 CODING_ATTR_ASCII_COMPAT (attrs) correctly.
13281
132822008-02-01 Dave Love <fx@gnu.org>
13283
13284 * coding.c (Fcheck_coding_system): Doc fix.
13285
13286 * editfns.c (Finsert_byte): Return a proper value.
13287
132882008-02-01 Kenichi Handa <handa@m17n.org>
13289
13290 * coding.c (decode_coding): Fix args to translate_chars. Pay
13291 attention to Vstandard_translation_table_for_decode.
13292 (encode_coding): Fix args to translate_chars. Pay attention to
13293 Vstandard_translation_table_for_encode.
13294
13295 * data.c (Faset): Check NEWELT by ASCII_CHAR_P, not by
13296 SINGLE_BYTE_CHAR_P.
13297
13298 * editfns.c (general_insert_function): Check VAL by ASCII_CHAR_P,
13299 not by SINGLE_BYTE_CHAR_P.
13300
13301 * fns.c (concat): Check CH by ASCII_CHAR_P, not by
13302 SINGLE_BYTE_CHAR_P.
13303
13304 * insdel.c (copy_text): Check C by ASCII_CHAR_P, not by
13305 SINGLE_BYTE_CHAR_P.
13306
13307 * keymap.c (Ftext_char_description): Check C by ASCII_CHAR_P, not
13308 by SINGLE_BYTE_CHAR_P.
13309
13310 * search.c (Freplace_match): Check C by ASCII_CHAR_P, not by
13311 SINGLE_BYTE_CHAR_P.
13312
133132008-02-01 Dave Love <fx@gnu.org>
13314
13315 * fns.c (Fstring_as_multibyte, Fstring_to_multibyte): Doc fix.
13316
133172008-02-01 Dave Love <fx@gnu.org>
13318
13319 * fns.c (Flanginfo): Fix typo.
13320
13321 * unexelf.c (unexec): Make last change conditional on Irix 6.5.
13322
133232008-02-01 Kenichi Handa <handa@m17n.org>
13324
13325 * coding.c (detect_coding_utf_8, detect_coding_utf_16)
13326 (detect_coding_emacs_mule, detect_coding_iso_2022)
13327 (detect_coding_sjis, detect_coding_big5, detect_coding_ccl): Check
13328 incomplete byte sequence. Don't update *mask when correctly detected.
13329 (decode_coding_sjis): Fix decoding of katakana-jisx0201.
13330 (detect_eol): Delete the argument CODING, and add the argument CATEGORY.
13331 (detect_coding, detect_coding_system): Adjust for the changes above.
13332
133332008-02-01 Kenichi Handa <handa@m17n.org>
13334
13335 * character.c (char_string): Rename from
13336 char_string_with_unification. Pay attention to CHAR_MODIFIER_MASK.
13337 (string_char): Rename from string_char.
13338
13339 * character.h (CHAR_STRING, CHAR_STRING_ADVANCE): Call char_string
13340 if C is greater than MAX_3_BYTE_CHAR.
13341 (STRING_CHAR, STRING_CHAR_AND_LENGTH, STRING_CHAR_ADVANCE): Call
13342 string_char instead of string_char_with_unification.
13343
133442008-02-01 Dave Love <fx@gnu.org>
13345
13346 * coding.c (decode_coding_utf_8): Treat surrogates as invalid.
13347
133482008-02-01 Kenichi Handa <handa@m17n.org>
13349
13350 * keymap.c (push_key_description): Pay attention to force_multibyte.
13351
13352 * regex.c (re_search_2): Fix for the case of unibyte buffer.
13353
133542008-02-01 Dave Love <fx@gnu.org>
13355
13356 * charset.c (define_charset_internal): Rename `supprementary'.
13357
13358 * Makefile.in (lisp, shortlisp): Remove latin-N.
13359
133602008-02-01 Dave Love <fx@gnu.org>
13361
13362 * xfns.c (x_window, x_window): Use use_xim.
13363
13364 * xterm.c (use_xim): Initialize.
13365 (xim_open_dpy, xim_initialize, xim_close_dpy): Use use_xim.
13366 (x_term_init): Maybe set use_xim.
13367
13368 * xterm.h (use_xim) [HAVE_X_I18N]: Declare.
13369
133702008-02-01 Kenichi Handa <handa@m17n.org>
13371
13372 * search.c (search_buffer): Fix case-fold-search of multibyte
13373 characters.
13374 (boyer_moore): Rename the last argument to char_high_bits.
13375
133762008-02-01 Kenichi Handa <handa@m17n.org>
13377
13378 * xdisp.c (display_string): Fix for the case of zero width glyph.
13379
13380 * xfns.c (x_set_font): Change the error message of the case that
13381 x_new_fontset returns Qt.
13382
13383 * xfaces.c (set_lface_from_font_name): Reject the default fontset.
13384 (Finternal_set_lisp_face_attribute): Use signal_error for the
13385 error of invalid fontset.
13386
13387 * xterm.c (x_new_fontset): If FONTSETNAME specifies the default
13388 fontset, return Qt.
13389
133902008-02-01 Dave Love <fx@gnu.org>
13391
13392 * unexelf.c (unexec): Make .got handling not SGI-specific.
13393
13394 * syntax.c (syms_of_syntax) <multibyte-syntax-as-symbol>: Doc fix.
13395
13396 * regex.c: Use `ifdef HAVE_ALLOCA_H', not `if HAVE_ALLOCA_H'.
13397
13398 * keyboard.c (read_key_sequence): Fix type error.
13399
13400 * buffer.c (Fset_buffer_multibyte, Fset_buffer_multibyte): Fix
13401 type error.
13402
13403 * fontset.c (fontset_add): Return Lisp_Object.
13404
134052008-02-01 Dave Love <fx@gnu.org>
13406
13407 * charset.h (charset_ordered_list_tick): Declare extern.
13408
134092008-02-01 Kenichi Handa <handa@m17n.org>
13410
13411 The following changes (and some of 2008-02-01 changes of mine) are
13412 for handling syntax, category, and case conversion for unibyte
13413 characters by converting them to multibyte on the fly. With these
13414 changes, we don't have to setup syntax and case tables for unibyte
13415 characters in each language environment.
13416
13417 * abbrev.c (Fexpand_abbrev): Convert a unibyte character to
13418 multibyte if necessary.
13419
13420 * bytecode.c (Fbyte_code): Likewise.
13421
13422 * character.h (LEADING_CODE_LATIN_1_MIN)
13423 (LEADING_CODE_LATIN_1_MAX): New macros.
13424 (unibyte_to_multibyte_table): Extern it.
13425 (unibyte_char_to_multibyte): New macro.
13426 (MAKE_CHAR_MULTIBYTE): Use unibyte_to_multibyte_table.
13427 (CHAR_LEADING_CODE): New macro.
13428 (FETCH_STRING_CHAR_AS_MULTIBYTE_ADVANCE): New macro.
13429
13430 * character.c (unibyte_to_multibyte_table): New variable.
13431 (unibyte_char_to_multibyte): Move to character.h and define as macro.
13432 (multibyte_char_to_unibyte): If C is an eight-bit character,
13433 convert it to the corresponding byte value.
13434
13435 * charset.c (Fset_unibyte_charset): If the dimension of CHARSET is
13436 not 1, signals an error. Update the elements of
13437 unibyte_to_multibyte_table.
13438 (init_charset_once): Initialize unibyte_to_multibyte_table.
13439 (syms_of_charset): Define the charset `iso-8859-1'.
13440
13441 * cmds.c (internal_self_insert): In a multibyte buffer, insert C
13442 as is without converting it to unibyte. In a unibyte buffer,
13443 convert C to multibyte before checking the syntax.
13444
13445 * lisp.h (unibyte_char_to_multibyte): Delete extern.
13446
13447 * minibuf.c (Fminibuffer_complete_word): Use the macro
13448 FETCH_STRING_CHAR_AS_MULTIBYTE_ADVANCE.
13449
13450 * regex.h (struct re_pattern_buffer): New member target_multibyte.
13451
13452 * regex.c (RE_TARGET_MULTIBYTE_P): New macro.
13453 (GET_CHAR_BEFORE_2): Check target_multibyte, not multibyte. If
13454 that is zero, convert an eight-bit char to multibyte.
13455 (MAKE_CHAR_MULTIBYTE, CHAR_LEADING_CODE): New dummy new macros for
13456 non-emacs case.
13457 (PATFETCH): Convert an eight-bit char to multibyte.
13458 (HANDLE_UNIBYTE_RANGE): New macro.
13459 (regex_compile): Setup the compiled pattern for multibyte chars
13460 even if the given regex string is unibyte. Use PATFETCH_RAW
13461 instead of PATFETCH in many places. To handle `charset'
13462 specification of unibyte, call HANDLE_UNIBYTE_RANGE. Use bitmap
13463 only for ASCII chars.
13464 (analyse_first) <exactn>: Simplify because the compiled pattern
13465 is multibyte.
13466 <charset_not>: Setup fastmap from bitmap only for ASCII chars.
13467 <charset>: Use CHAR_LEADING_CODE to get leading codes.
13468 <categoryspec>: If multibyte, setup fastmap only for ASCII chars here.
13469 (re_compile_fastmap) [emacs]: Call analyse_first with the arg
13470 multibyte always 1.
13471 (re_search_2): In emacs, set the locale variable multibyte to 1,
13472 otherwise to 0. New local variable target_multibyte. Check it
13473 to decide the multibyteness of STR1 and STR2. If
13474 target_multibyte is zero, convert unibyte chars to multibyte
13475 before translating and checking fastmap.
13476 (TARGET_CHAR_AND_LENGTH): New macro.
13477 (re_match_2_internal): In emacs, set the locale variable multibyte
13478 to 1, otherwise to 0. New local variable target_multibyte. Check
13479 it to decide the multibyteness of STR1 and STR2. Use
13480 TARGET_CHAR_AND_LENGTH to fetch a character from D.
13481 <charset, charset_not>: If multibyte is nonzero, check fastmap
13482 only for ASCII chars. Call bcmp_translate with
13483 target_multibyte, not with multibyte.
13484 <begline>: Declare the local variable C as `unsigned'.
13485 (bcmp_translate): Change the last arg name to target_multibyte.
13486
13487 * search.c (compile_pattern_1): Don't adjust the multibyteness of
13488 the regexp pattern and the matching target. Set cp->buf.multibyte
13489 to the multibyteness of the regexp pattern. Set
13490 cp->but.target_multibyte to the multibyteness of the matching target.
13491 (wordify): Use FETCH_STRING_CHAR_AS_MULTIBYTE_ADVANCE instead of
13492 FETCH_STRING_CHAR_ADVANCE.
13493 (Freplace_match): Convert unibyte chars to multibyte.
13494
13495 * syntax.c (char_quoted, back_comment, scan_words)
13496 (Fforward_comment, scan_lists, Fbackward_prefix_chars)
13497 (scan_sexps_forward): Use FETCH_CHAR_AS_MULTIBYTE to convert
13498 unibyte chars to multibyte.
13499 (skip_chars): Delete the arg syntaxp, and move the code for
13500 handling syntaxes to skip_syntaxes. Change callers.
13501 Fix the case that the multibyteness of STRING and the current
13502 buffer doesn't match.
13503 (skip_syntaxes): New function.
13504 (SYNTAX_WITH_MULTIBYTE_CHECK): Check C by ASCII_CHAR_P, not by
13505 SINGLE_BYTE_CHAR_P.
13506
135072008-02-01 Kenichi Handa <handa@m17n.org>
13508
13509 * xfaces.c (QCfontset): New variable.
13510 (LFACE_FONTSET): New macro.
13511 (check_lface_attrs): Check also LFACE_FONTSET_INDEX.
13512 (set_lface_from_font_name): Setup LFACE_FONTSET (lface).
13513 (Finternal_set_lisp_face_attribute)
13514 (Finternal_get_lisp_face_attribute): Handle QCfontset.
13515 (lface_same_font_attributes_p): Fix checking of LFACE_FONT_INDEX,
13516 check also LFACE_FONTSET_INDEX.
13517 (face_fontset): Check attrs[LFACE_FONTSET_INDEX], not
13518 attrs[LFACE_FONT_INDEX].
13519 (syms_of_xfaces): Intern and staticpro QCfontset.
13520
13521 * dispextern.h (enum lface_attribute_index): New member
13522 LFACE_FONTSET_INDEX.
13523
13524 * fns.c (base64_encode_1): Handle eight-bit chars correctly.
13525
135262008-02-01 Kenichi Handa <handa@m17n.org>
13527
13528 * coding.c (coding_set_destination): Fix coding->destination for
13529 the case converting a region.
13530 (encode_coding_utf_8): Encode eight-bit chars as single byte.
13531 (encode_coding_object): Fix coding->dst_pos and
13532 coding->dst_pos_byte for the case converting a region.
13533
13534 * insdel.c (insert_from_gap): Make it work even if PT != GTP.
13535
13536 * character.h (BYTE8_STRING): New macro.
13537
13538 * fns.c (base64_decode_1): Insert eight-bit chars correctly.
13539
135402008-02-01 Kenichi Handa <handa@m17n.org>
13541
13542 * xdisp.c (get_next_display_element): Don't display unibyte 8-bit
13543 characters by octal form.
13544
13545 * abbrev.c (Fexpand_abbrev): Fix for the multibyte case.
13546
13547 * buffer.h (_fetch_multibyte_char_len): Delete extern.
13548 (FETCH_MULTIBYTE_CHAR, BUF_FETCH_MULTIBYTE_CHAR): Don't use
13549 _fetch_multibyte_char_len.
13550 (FETCH_CHAR_AS_MULTIBYTE): New macro.
13551
13552 * casetab.c (set_canon, set_identity, shuffle): Simplify.
13553
13554 * casefiddle.c (casify_object): Simplify. Handle the case that
13555 the case conversion change the byte length.
13556 (casify_region): Likewise.
13557
13558 * character.h (MAKE_CHAR_UNIBYTE, MAKE_CHAR_MULTIBYTE): New macros.
13559
13560 * character.c (_fetch_multibyte_char_len): Delete this variable.
13561 (syms_of_character): Setup Vprintable_chars.
13562
13563 * editfns.c (Fchar_equal): Fix for the unibyte case.
13564 (Finsert_byte): New function.
13565 (syms_of_editfns): Defsubr it.
13566
13567 * keyboard.c (read_key_sequence): Use ~CHAR_MODIFIER_MASK instead
13568 of direct code 0x3ffff.
13569
13570 * search.c (Freplace_match): Fix for the unibyte case.
13571
135722008-02-01 Kenichi Handa <handa@m17n.org>
13573
13574 * lread.c (safe_to_load_p): Fix the logic.
13575
13576 * syntax.c (scan_words): Don't treat characters belonging to
13577 different scripts as constituting a word.
13578
13579 * editfns.c (Fformat): Use ASCII_CHAR_P, not SINGLE_BYTE_CHAR_P.
13580
13581 * fontset.c (Fset_fontset_font): Treat `ascii' as charset, not script.
13582
13583 * emacs.c (main): In the case of --unibyte, instead of aborting on
13584 finding non-empty buffer, make it unibyte.
13585
135862008-02-01 Kenichi Handa <handa@m17n.org>
13587
13588 * xterm.c (x_new_fontset): Call `create-fontset-from-ascii-font'
13589 to create a fontset.
13590
135912008-02-01 Dave Love <fx@gnu.org>
13592
13593 * character.c (Funibyte_char_to_multibyte): Doc fix.
13594
13595 * xfns.c [HAVE_STDLIB_H]: Fix last change.
13596
135972008-02-01 Kenichi Handa <handa@m17n.org>
13598
13599 * fontset.c (fontset_add): Make the type `int'.
13600 (fontset_id_valid_p): Define it if FONTSET_DEBUG is defined.
13601
13602 * character.c (unibyte_char_to_multibyte)
13603 (multibyte_char_to_unibyte, Funibyte_char_to_multibyte): Refer to
13604 charset_unibyte, not charset_primary.
13605
13606 * charset.h (charset_unibyte): Extern it instead of charset_primary.
13607
13608 * charset.c (charset_unibyte): Rename from charset_primary.
13609 (Funibyte_charset): Rename from Fprimary_charset.
13610 (Fset_unibyte_charset): Rename from Fset_primary_charset.
13611 (syms_of_charset): Adjust for the above changes.
13612
13613 * w32term.c (x_produce_glyphs): Use ASCII_CHAR_P, not
13614 SINGLE_BYTE_CHAR_P. Fix the logic of handling non-ASCII char when
13615 it->multibyte_p is zero.
13616
13617 * lisp.h (nonascii_insert_offset, Vnonascii_translation_table):
13618 Delete extern.
13619
136202008-02-01 Kenichi Handa <handa@m17n.org>
13621
13622 * coding.c (Fdefine_coding_system_internal): Fix category setting
13623 for a coding system of type iso-2022.
13624
136252008-02-01 Kenichi Handa <handa@m17n.org>
13626
13627 * fontset.h (FS_LOAD_FONT): Call fs_load_font with the arg CHARSET -1.
13628
136292008-02-01 Kenichi Handa <handa@m17n.org>
13630
13631 * syntax.c (Vnext_word_boundary_function_table): New variable.
13632 (next-word-boundary-function-table): Declare it as a Lisp variable
13633 in syms_of_syntax.
13634 (scan_words): Call functions in Vnext_word_boundary_function_table
13635 if any.
13636
13637 * xterm.c (x_load_font): Initialize fontp->fontset to -1.
13638
13639 * fontset.c (fs_load_font): If fontp->charset is not negative,
13640 return fontp without setting its members.
13641
136422008-02-01 Dave Love <fx@gnu.org>
13643
13644 * xfns.c [HAVE_STDLIB_H]: Change logic (instead of fixing typo).
13645
13646 * m/sparc.h (HAVE_ALLOCA): Delete.
13647
13648 * s/irix6-5.h: Don't include strings.h.
13649 (bcopy, bzero, bcmp): Don't undef.
13650
13651 * s/irix6-0.h (bcopy, bzero, bcmp): Don't undef.
13652
13653 * s/usg5-4.h (NO_SIOCTL_H): Don't define.
13654 (TIOCSIGSEND): Don't test IRIX6.
13655 (bcopy, bzero, bcmp): Define conditionally.
13656
136572008-02-01 Kenichi Handa <handa@m17n.org>
13658
13659 * buffer.c (Qas, Qmake, Qto): New variables.
13660 (Fset_buffer_multibyte): New optional arg METHOD. Change caller.
13661 (syms_of_buffer): Intern and staticpro Qas, Qmake, and Qto.
13662
13663 * callproc.c (Fcall_process): Don't call insert_1_both directly if
13664 we are inserting a process output into a multibyte buffer.
13665
13666 * character.h (CHAR_TO_BYTE8): If C is not eight-bit char, call
13667 multibyte_char_to_unibyte.
13668
13669 * character.c (Funibyte_char_to_multibyte): If C can't be decoded
13670 by the primary charset, make it eight-bit char.
13671 (Fmultibyte_char_to_unibyte): Call CHAR_TO_BYTE8.
13672
13673 * charset.c (charset_eight_bit, Qeight_bit_control): New variables.
13674 (charset_8_bit__control, charset_8_bit_graphic)
13675 (Qeight_bit_control, Qeight_bit_graphic): Delete these variables.
13676 (define_charset_internal): New function.
13677 (syms_of_charset): Call define_charset_internal for pre-defined
13678 charsets.
13679
13680 * charset.h (charset_8_bit): Extern it.
13681
13682 * coding.c (make_conversion_work_buffer): Adjust for the change
13683 of Fset_buffer_multibyte.
13684 (encode_coding_raw_text): Increment p0 in the loop.
13685
13686 * lisp.h (Fset_buffer_multibyte): Adjust prototype.
13687
13688 * xdisp.c (setup_echo_area_for_printing, set_message_1): Adjust
13689 for the change of Fset_buffer_multibyte.
13690
13691 * fns.c (Fstring_to_multibyte): New function.
13692 (syms_of_fns): Declare Fstring_to_multibyte as Lisp subroutine.
13693
136942008-02-01 Dave Love <fx@gnu.org>
13695
13696 * xfns.c (x_put_x_image): Declare args.
13697
13698 * xfaces.c (font_name_registry, choose_face_font): Delete unused vars.
13699 (try_font_list): Declare an arg.
13700
13701 * xdisp.c (message2_nolog, set_message): Declare an arg.
13702
13703 * terminfo.c (tparam): Declare an arg. Use P_ to declare tparm.
13704
13705 * syntax.c (scan_sexps_forward): Declare an arg.
13706
13707 * scroll.c (calculate_scrolling, calculate_direct_scrolling):
13708 Declare an arg.
13709
13710 * lisp.h (Fnew_fontset): Declare.
13711
13712 * keymap.c (push_key_description): Call CHARACTERP correctly.
13713
13714 * fontset.c (fontset_add): Declare args. Call make_number correctly.
13715 (face_for_char): Delete unused vars.
13716 (Fset_fontset_font): Doc fix. Delete unused vars.
13717
13718 * doc.c (Fsubstitute_command_keys): Delete unused vars.
13719
13720 * composite.c (update_compositions): Declare arg.
13721
13722 * cm.c (calccost, cmgoto): Declare args.
13723
13724 * charset.c: Remove `emacs' conditional. Doc fixes.
13725 (map_char_table_for_charset): Declare.
13726
13727 * character.c (syms_of_character) <translation-table-vector>: Doc fix.
13728
13729 * ccl.c: Remove `emacs' conditional.
13730
137312008-02-01 Kenichi Handa <handa@m17n.org>
13732
13733 The following changes are to allow specifying multiple font
13734 patterns for a character range (specified by script or charset).
13735
13736 * Makefile.in (abbrev.o): Depend on syntax.h.
13737 (xfaces.o): Depend on charset.h.
13738
13739 * alloc.c (Fmake_string): Use ASCII_CHAR_P, not
13740 SINGLE_BYTE_CHAR_P.
13741
13742 * ccl.c (Fccl_execute_on_string): Add `const' to local variables.
13743
13744 * character.h (Vchar_script_table): Extern it.
13745
13746 * character.c (Vscript_alist): Delete.
13747 (Vchar_script_table, Qchar_script_table): New variable.
13748 (syms_of_character): Declare Vchar_script_table as a lisp variable
13749 and initialize it.
13750
13751 * chartab.c (Fmake_char_table): Doc fix. If PURPOSE doesn't
13752 have property char-table-extra-slots, make no extra slot.
13753
13754 * dispextern.h (struct face): Delete member `charset'.
13755 (FACE_SUITABLE_FOR_CHAR_P, FACE_FOR): Use ASCII_CHAR_P, not
13756 SINGLE_BYTE_CHAR_P.
13757 (choose_face_font, lookup_non_ascii_face, font_name_registry):
13758 Add prototypes.
13759 (lookup_face, lookup_named_face, lookup_derived_face): Fix prototype.
13760 (generate_ascii_font_name): Rename from generate_ascii_font.
13761
13762 * fontset.h (get_font_repertory_func): New prototype.
13763 (make_fontset_for_ascii_face, fs_load_font): Fix prototypes.
13764 (FS_LOAD_FONT): Call fs_load_font with the 3rd arg charset_ascii.
13765
13766 * fontset.c (Qprepend, Qappend): New variables.
13767 (FONTSET_CHARSET_ALIST, FONTSET_FACE_ALIST): Delete.
13768 (FONTSET_NOFONT_FACE, FONTSET_REPERTORY): New macros.
13769 (FONTSET_REF): Optimize if FONTSET is Vdefault_fontset.
13770 (FONTSET_REF_AND_RANGE, FONTSET_ADD): New macros.
13771 (fontset_ref_and_range, fontset_add, reorder_font_vector)
13772 (load_font_get_repertory): New functions.
13773 (fontset_set): Delete.
13774 (fontset_face): New arg FACE. Return face ID, not face.
13775 Complete re-write to handle new fontset structure. Change caller.
13776 (free_face_fontset): Use ASET istead of AREF (X) = Y.
13777 (face_for_char): Don't call lookup_face.
13778 (make_fontset_for_ascii_face): New arg FACE.
13779 (fs_load_font): New arg CHARSET_ID. Don't check
13780 Vfont_encoding_alist here.
13781 (find_font_encoding): New function.
13782 (list_fontsets): Use STRINGP, not ! NILP.
13783 (accumulate_script_ranges): New function.
13784 (Fset_fontset_font, Fnew_fontset, Ffontset_info): Completely
13785 re-written to handle new fontset structure.
13786 (Ffontset_font): Return a copy of element.
13787 (syms_of_fontset): Define symbols Qprepend and Qappend. Fix
13788 docstring of font-encoding-alist.
13789
13790 * lisp.h (CHAR_TABLE_REF): Remove unnecessary check (IDX >= 0).
13791 (Fset_fotset_font): Fix arguments to 5.
13792
13793 * msdos.c (XMenuActivate): Adjust for the change of lookup_derived_face.
13794
13795 * xdisp.c (message_dolog, set_message_1, extend_face_to_end_of_line):
13796 Use ASCII_CHAR_P, not SINGLE_BYTE_CHAR_P.
13797 (highlight_trailing_whitespace): Adjust for the change of
13798 lookup_named_face.
13799
13800 * xfaces.c: Include charset.h.
13801 (load_face_font): Delete argument C. Change caller.
13802 (generate_ascii_font_name): Rename from generate_ascii_font.
13803 (font_name_registry): New function.
13804 (cache_face): Store ascii faces before non-ascii faces in buckets.
13805 (lookup_face): Delete arguments C and BASE_FACE. Change caller.
13806 Lookup only ascii faces.
13807 (lookup_non_ascii_face): New function.
13808 (lookup_named_face): Delete argument C. Change caller.
13809 (lookup_derived_face): Delete argument C. Change caller.
13810 (try_font_list): New arg PATTERN. Change caller. If PATTERN is
13811 a string, just call font_list with it.
13812 (choose_face_font): Delete arguments FACE and C. New arg
13813 FONT_SPEC. Change caller.
13814 (realize_face, realize_x_face): Delete arguments C and BASE_FACE.
13815 Change caller.
13816 (realize_non_ascii_face): New function.
13817 (realize_x_face): Call load_face_font here.
13818 (realize_tty_face): Delete argument C. Change caller.
13819 (compute_char_face): If CH is not ascii, call FACE_FOR_CHAR to
13820 get a face ID.
13821 (dump_realized_face): Don't print charset of FACE.
13822
13823 * xfns.c (x_set_font): Always call x_new_fontset and
13824 store_frame_parameter.
13825 (Fx_create_frame): Call x_new_fontset, not x_new_font.
13826 (syms_of_xfns): Set get_font_repertory_func to x_get_font_repertory.
13827
13828 * xterm.h (x_get_font_repertory): Extern it.
13829
13830 * xterm.c (x_produce_glyphs): Use ASCII_CHAR_P, not
13831 SINGLE_BYTE_CHAR_P. Fix the logic of handling non-ASCII char when
13832 it->multibyte_p is zero.
13833 (XTread_socket): Use ASCII_CHAR_P, not SINGLE_BYTE_CHAR_P.
13834 (x_new_fontset): If FONTSETNAME doesn't match any existing
13835 fontsets, create a new one.
13836 (x_get_font_repertory): New function.
13837
138382008-02-01 Kenichi Handa <handa@m17n.org>
13839
13840 * coding.c (Ffind_coding_systems_region_internal): Detect an
13841 ASCII only string correctly.
13842
13843 * lread.c (Fload): Don't load with Qload_force_doc_strings t if
13844 version is 0.
13845
138462008-02-01 Kenichi Handa <handa@m17n.org>
13847
13848 * lread.c: Include "coding.h".
13849 (Qget_emacs_mule_file_char, Qload_force_doc_strings)
13850 (load_each_byte, unread_char): New variables.
13851 (readchar_backlog): Delete.
13852 (readchar): Return a character unless load_each_byte is nonzero.
13853 Handle the case that readcharfun is Qget_emacs_mule_file_char or a
13854 cons. If unread_char is not -1, simply return it.
13855 (unreadchar): Handle the case that readcharfun is
13856 Qget_emacs_mule_file_char or a cons. Set unread_char if necessary.
13857 (read_multibyte): Delete.
13858 (readbyte_for_lambda, readbyte_from_file, readbyte_from_string)
13859 (read_emacs_mule_char): New functions.
13860 (Fload): Even if the file doesn't have the extension ".elc", if
13861 safe_to_load_p returns a positive version number, assume that the
13862 file contains bytecompiled code. If the version is less than 22,
13863 load the file while decoding multibyte sequences by emacs-mule.
13864 (readevalloop): Don't use readchar_backlog.
13865 (Fread): Likewise. Pay attention to the case that STREAM is a cons.
13866 (Fread_from_string): Pay attention to the case that STREAM is a cons.
13867 (read_escape): Delete the arg BYTEREP.
13868 (read1): Set load_each_byte to 1 temporarily while handling
13869 #@NUMBER. Don't call read_multibyte.
13870 (read_vector): Call Fread with a cons. If readcharfun is
13871 Qget_emacs_mule_file_char, decode the read string by emacs-mule.
13872 (read_list): If doc_reference is 2, make the cdr part string as unibyte.
13873 (syms_of_lread): Intern and staticpro Qget_emacs_mule_file_char
13874 and Qload_force_doc_strings.
13875
138762008-02-01 Kenichi Handa <handa@m17n.org>
13877
13878 * xdisp.c (face_before_or_after_it_pos): Call
13879 FETCH_MULTIBYTE_CHAR with byte postion, not char position.
13880
138812008-02-01 Kenichi Handa <handa@m17n.org>
13882
13883 * character.h (TRAILING_CODE_P): New macro.
13884 (MAYBE_UNIFY_CHAR): Adjust for the change of Funify_charset.
13885 (string_char_with_unification): Fix prototype.
13886 (Vscript_alist): Extern it.
13887
13888 * character.c (Vscript_alist): New variable.
13889 (string_char_with_unification, str_as_unibyte)
13890 (string_escape_byte8): Add `const' to local variables.
13891 (syms_of_character): Declare script-alist as a Lisp variable.
13892
13893 * charset.h (Vcharset_ordered_list): Extern it.
13894 (charset_ordered_list_tick): Extern it.
13895 (EMACS_MULE_LEADING_CODE_PRIVATE_11)
13896 (EMACS_MULE_LEADING_CODE_PRIVATE_12)
13897 (EMACS_MULE_LEADING_CODE_PRIVATE_21)
13898 (EMACS_MULE_LEADING_CODE_PRIVATE_22): New macros.
13899 (Funify_charset): Adjust for the change of Funify_charset.
13900
13901 * charset.c (charset_ordered_list_tick): New variable.
13902 (Fdefine_charset_internal): Increment charset_ordered_list_tick.
13903 (Funify_charset): New optional arg DEUNIFY. If it is non-nil,
13904 deunify intead of unify a charset.
13905 (string_xstring_p): Add `const' to local variables.
13906 (find_charsets_in_text): Add `const' to arguments and local variables.
13907 (encode_char): Adjust for the change of Funify_charset. Fix
13908 detecting of invalid code.
13909 (Fset_charset_priority): Increment charset_ordered_list_tick.
13910 (Fmap_charset_chars): Fix handling of default value for FROM_CODE
13911 and TO_CODE.
13912
13913 * coding.c (LEADING_CODE_PRIVATE_11, LEADING_CODE_PRIVATE_12)
13914 (LEADING_CODE_PRIVATE_21, LEADING_CODE_PRIVATE_22): Delete macros.
13915 Changed callers to use EMACS_MULE_LEADING_CODE_PRIVATE_11, etc.
13916 (decode_coding_ccl, consume_chars)
13917 (Ffind_coding_systems_region_internal)
13918 (Fcheck_coding_systems_region): Add `const' to local variables.
13919
13920 * print.c (print_object): Use octal form for printing the
13921 contents of a bool vector.
13922
139232008-02-01 Dave Love <fx@gnu.org>
13924
13925 * lread.c (Fload) <!load_dangerous_libraries>: Don't leak fd.
13926 <version == 20>: Refuse to load.
13927
139282008-02-01 Dave Love <fx@gnu.org>
13929
13930 * fns.c: Move coding.h.
13931 (Qcodeset, Qdays, Qmonths): New.
13932 (concat): Use CHARACTERP instead of INTEGERP.
13933 (Flocale_codeset): Delete.
13934 (Flanginfo): New function.
13935 (syms_of_fns): Change accordingly.
13936
13937 * coding.c (adjust_coding_eol_type): Fix eol_type/eol_seen mixup.
13938
139392008-02-01 Dave Love <fx@gnu.org>
13940
13941 * casetab.c (init_casetab_once, init_casetab_once): Fix
13942 CHAR_TABLE_SET call.
13943
13944 * category.c (Fmodify_category_entry): Fix CATEGORY_MEMBER call.
13945
13946 * character.c (syms_of_character): Fix CHAR_TABLE_SET call.
13947
13948 * charset.c (Fmap_charset_chars): Check args. Convert Lisp types.
13949 (load_charset_map, Fdeclare_equiv_charset, Fencode_char)
13950 (Fset_charset_priority, syms_of_charset): Convert Lisp types.
13951
13952 * charset.h (CHECK_CHARSET_GET_ID): Use XINT on AREF result.
13953
13954 * coding.c (ENCODE_DESIGNATION, decode_eol)
13955 (make_conversion_work_buffer, code_conversion_restore)
13956 (Fdefine_coding_system_internal): Convert Lisp types.
13957 (code_conversion_restore): Use EQ, not ==.
13958 (Fencode_coding_string): Fix code_convert_string call.
13959
13960 * coding.h (code_convert_region): Fix prototype.
13961
13962 * dispextern.h (redraw_frame, redraw_garbaged_frames): Remove.
13963
13964 * fontset.c (fontset_ref, fontset_set, fs_load_font)
13965 (Ffontset_info): Convert Lisp types.
13966
13967 * syntax.h (SYNTAX_ENTRY_INT): Don't use make_number.
13968
13969 * xterm.c (note_mouse_movement): Fix call of window_from_coordinates.
13970
13971 * xdisp.c (display_mode_element): Fix call of Fset_text_properties.
13972
13973 * chartab.c: Include "...h", not <...h> in some cases.
13974
13975 * callproc.c (Fcall_process): Remove unused variables.
13976
139772008-02-01 Dave Love <fx@gnu.org>
13978
13979 * coding.c (Fset_coding_system_priority): Allow null arg list.
13980
139812008-02-01 Dave Love <fx@gnu.org>
13982
13983 * minibuf.c (Fminibuffer_complete_word): Remove unused var.
13984 (Fself_insert_and_exit): Use CHARACTERP.
13985
13986 * callproc.c (Fcall_process): Remove unused vars.
13987
13988 * xterm.c (XTread_socket): Add extra dead keysyms.
13989
13990 * xdisp.c (decode_mode_spec_coding): Use CHARACTERP.
13991
13992 * dispextern.h: Remove prototypes for redraw_frame,
13993 redraw_garbaged_frames.
13994
13995 * cmds.c (Fself_insert_command): Use CHARACTERP.
13996
13997 * chartab.c (make_sub_char_table): Remove unused var.
13998 (Fset_char_table_default, Fmap_char_table): Doc fix.
13999
14000 * keymap.c (access_keymap): Remove generic char code.
14001 (push_key_description): Use CHARACTERP.
14002
140032008-02-01 Dave Love <fx@gnu.org>
14004
14005 * charset.c: Doc fixes.
14006 (Funify_charset): Extra checking.
14007
140082008-02-01 Dave Love <fx@gnu.org>
14009
14010 * lread.c: Remove some unused variables.
14011 (safe_to_load_p): If safe, return the magic number version byte.
14012 (Fload): Maybe use load-with-code-conversion.
14013
140142008-02-01 Kenichi Handa <handa@m17n.org>
14015
14016 * category.c (Fmodify_category_entry): Don't modify the contents
14017 of category_set for characters out of the range. Avoid
14018 unnecessary modification.
14019
14020 * character.h (MAYBE_UNIFY_CHAR): Adjust for the change of
14021 Vchar_unify_table. The default value of the table is now nil.
14022
14023 * character.c (syms_of_character): Setup Vchar_width_table for
14024 eight-bit-control and raw-byte chars.
14025
14026 * charset.h (enum define_charset_arg_index): Delete
14027 charset_arg_parents and add charset_arg_subset and
14028 charset_arg_superset.
14029 (enum charset_attr_index): Delete charset_parents and add
14030 charset_subset and charset_superset.
14031 (enum charset_method): Delete CHARSET_METHOD_INHERIT and add
14032 CHARSET_METHOD_SUBSET and CHARSET_METHOD_SUPERSET.
14033 (CHARSET_ATTR_PARENTS, CHARSET_PARENTS): Delete.
14034 (CHARSET_ATTR_SUBSET, CHARSET_ATTR_SUPERSET, CHARSET_SUBSET)
14035 (CHARSET_SUPERSET): New macros.
14036 (charset_work): Extern it.
14037 (ENCODE_CHAR): Use charset_work.
14038 (CHAR_CHARSET_P): Adjust for the change of encoder format.
14039 (map_charset_chars): Extern it.
14040
14041 * charset.c (load_charset_map): Set the default value of encoder
14042 and deunifier char-tables to nil.
14043 (map_charset_chars): Change argument. Change callers. Use
14044 map_char_table_for_charset instead of map_char_table.
14045 (Fmap_charset_chars): New optional args from_code and to_code.
14046 (Fdefine_charset_internal): Adjust for the change of
14047 `define-charset' (:parents -> :subset or :superset).
14048 (charset_work): New variable.
14049 (encode_char, syms_of_charset): Adjust for the change of
14050 Fdefine_charset_internal.
14051 (Ffind_charset_string): Setup the vector `charsets' correctly.
14052
14053 * chartab.c (sub_char_table_ref_and_range): New arg default. Fix
14054 the previous change.
14055 (char_table_ref_and_range): Adjust for the above change.
14056 (map_sub_char_table_for_charset): New function.
14057 (map_char_table_for_charset): New function.
14058
14059 * keymap.c (describe_vector): Handle a char-table directly here.
14060 (describe_char_table): Delete.
14061
14062 * lisp.h (map_charset_chars): Delete.
14063
140642008-02-01 Dave Love <fx@gnu.org>
14065
14066 * fns.c (count_combining): Comment out (unused).
14067 (Flocale_codeset): New.
14068 (syms_of_fns): Defsubr it.
14069
14070 * config.in (HAVE_PTY_H, HAVE_SIZE_T, HAVE_LANGINFO_CODESET): New.
14071 (size_t): Remove.
14072
140732008-02-01 Dave Love <fx@gnu.org>
14074
14075 * Makefile.in (chartab.o): Depend on charset.h.
14076
140772008-02-01 Kenichi Handa <handa@m17n.org>
14078
14079 * character.c (syms_of_character): Set the default value of
14080 Vprintable_chars to Qnil.
14081
140822008-02-01 Dave Love <fx@gnu.org>
14083
14084 * Makefile.in (lisp, shortlisp): Change indian.elc to indian.el.
14085
140862008-02-01 Kenichi Handa <handa@m17n.org>
14087
14088 * charset.c (load_charset_map): Handle the case that from < to
14089 correctly.
14090
14091 * coding.c (encode_coding_emacs_mule, encode_coding_iso_2022)
14092 (encode_coding_sjis, encode_coding_big5, encode_coding_charset):
14093 Pay attention to raw-8-bit chars.
14094
140952008-02-01 Kenichi Handa <handa@m17n.org>
14096
14097 * Makefile.in (lisp, shortlisp): Change chinese.elc to chinese.el.
14098 It is not bytecompiled now.
14099
14100 * charset.c (charset_jisx0201_roman, charset_jisx0208_1978)
14101 (charset_jisx0208): New variables.
14102 (Fdefine_charset_internal): Setup them if appropriate.
14103 (init_charset_once): Initialize them to -1.
14104
14105 * charset.h (charset_jisx0201_roman, charset_jisx0208_1978)
14106 (charset_jisx0208): Extern them.
14107
14108 * coding.c (CODING_ISO_FLAG_USE_ROMAN): New macro.
14109 (CODING_ISO_FLAG_USE_OLDJIS): New macro.
14110 (CODING_ISO_FLAG_FULL_SUPPORT): Change macro definition.
14111 (setup_iso_safe_charsets): Fix arguments to Fassq.
14112 (DECODE_DESIGNATION, ENCODE_ISO_CHARACTER_DIMENSION1)
14113 (ENCODE_ISO_CHARACTER_DIMENSION2): Pay attention to
14114 CODING_ISO_FLAG_USE_ROMAN and CODING_ISO_FLAG_USE_OLDJIS.
14115 (encode_coding_iso_2022): Change the 1st arg to
14116 ENCODE_ISO_CHARACTER to a variable.
14117
141182008-02-01 Kenichi Handa <handa@m17n.org>
14119
14120 * charset.h (enum define_charset_arg_index): New enums
14121 charset_arg_min_code and charset_arg_max_code.
14122 (struct charset): New member char_index_offset.
14123
14124 * charset.c (CODE_POINT_TO_INDEX, INDEX_TO_CODE_POINT):
14125 Take charset->char_index_offset into account.
14126 (Fdefine_charset_internal): Handle args[charset_arg_min_code] and
14127 args[charset_arg_max_code]. Setup charset.char_index_offset.
14128 (syms_of_charset): Fix args to Fdefine_charset_internal.
14129
141302008-02-01 Dave Love <fx@gnu.org>
14131
14132 * coding.c (decode_coding_utf_8): Reject overlong sequences.
14133
141342008-02-01 Dave Love <fx@gnu.org>
14135
14136 * coding.c: Doc fixes.
14137 (Fcoding_system_aliases): Fix return value.
14138 (Qmac): Remove (duplicated) definition.
14139
141402008-02-01 Dave Love <fx@gnu.org>
14141
14142 * charset.c (Fcharset_priority_list, Fset_charset_priority): New
14143 functions.
14144
14145 * character.c (Fstring): Doc fix.
14146
14147 * charset.c (Fdefine_charset_alias): Update Vcharset_list.
14148
14149 * fontset.c (Ffontset_info): Doc fix. Return charset names, not
14150 ids.
14151 (font-encoding-alist): Doc fix.
14152
141532008-02-01 Dave Love <fx@gnu.org>
14154
14155 * term.c (costs_set): Declare static, non-initialized for pcc.
14156 (encode_terminal_code): Remove unused var.
14157
14158 * keyboard.c (kbd_buffer_store_event): Fix interrupt_signal decl
14159 for K&R.
14160
14161 * xterm.c (xlwmenu_window_p): Fix prototype for K&R.
14162
14163 * coding.c (setup_iso_safe_charsets): Fix arg decl for K&R.
14164 (suffixes): Move out of make_subsidiaries for K&R.
14165
14166 * charset.c (map_charset_chars): Fix c_function declaration for K&R.
14167
14168 * lisp.h (DEFUN) [!PROTOTYPES]: Remove spurious `args'.
14169
141702008-02-01 Dave Love <fx@gnu.org>
14171
14172 * data.c (Fchar_or_string_p): Doc fix. Use CHARACTERP.
14173
14174 * category.c (Fmodify_category_entry): Doc fix. Remove unused vars.
14175
141762008-02-01 Yong Lu <lyongu@asia-infonet.com>
14177
14178 * charset.c (Fdefine_charset_internal): Fix argument to bzero.
14179
14180 * coding.c (decode_coding_charset): Workaround for the bug of GCC 2.96.
14181
141822008-02-01 Kenichi Handa <handa@m17n.org>
14183
14184 * Makefile.in (lisp, shortlisp): Change cyrillic.elc to cyrillic.el,
14185 vietnamese.elc to vietnamese.el. They are not bytecompiled now.
14186
141872008-02-01 Kenichi Handa <handa@m17n.org>
14188
14189 * coding.c (decode_coding_charset): Adjust for the change of
14190 Fdefine_coding_system_internal.
14191 (Fdefine_coding_system_internal): For a coding system of
14192 `charset' type, store a list of charset IDs in
14193 `charset_attr_charset_valids' element of coding attributes.
14194
141952008-02-01 Kenichi Handa <handa@m17n.org>
14196
14197 * coding.c (ONE_MORE_BYTE_NO_CHECK): Increment consumed_chars.
14198 (emacs_mule_char): New arg src. Delete arg `composition'. Change
14199 caller. Handle 2-byte and 3-byte charsets correctly.
14200 (DECODE_EMACS_MULE_COMPOSITION_RULE_20): Rename from
14201 DECODE_EMACS_MULE_COMPOSITION_RULE. Change caller.
14202 (DECODE_EMACS_MULE_COMPOSITION_RULE_21): New macro.
14203 (DECODE_EMACS_MULE_21_COMPOSITION): Call
14204 DECODE_EMACS_MULE_COMPOSITION_RULE_21. Produce correct annotation
14205 sequence.
14206 (decode_coding_emacs_mule): Handle composition correctly. Rewind
14207 `src' and `consumed_chars' correctly before calling emacs_mule_char.
14208 (DECODE_COMPOSITION_START): Correctly handle the case of altchar
14209 and alt&rule composition.
14210 (decode_coding_iso_2022): Handle composition correctly.
14211 (init_coding_once): Setup emacs_mule_bytes for private charsets.
14212
14213 * charset.c (Fdefine_charset_internal): Fix bug for the case of
14214 re-defining a charset. If the charset has :emacs-mule-id, setup
14215 emacs_mule_bytes.
14216 (Fmake_char): If CODE1 is nil, use the minimum code of the charset.
14217
142182008-02-01 Kenichi Handa <handa@m17n.org>
14219
14220 * coding.c (encode_coding_iso_2022, encode_coding_sjis)
14221 (encode_coding_big5, encode_coding_charset): If coding requires safe
14222 encoding, produce a character specified by
14223 CODING_INHIBIT_CHARACTER_SUBSTITUTION.
14224
142252008-02-01 Dave Love <fx@gnu.org>
14226
14227 * xterm.c (XSetIMValues): Declare.
14228
14229 * process.c: Conditionally include sys/wait.h, pty.h.
14230
14231 * print.c (print_object): Fix print format for 64-bit systems.
14232
14233 * keyboard.c (modify_event_symbol): Fix print format for 64-bit systems.
14234
14235 * buffer.c (emacs_strerror): Declare.
14236
14237 * fontset.c (Fclear_face_cache): Declare.
14238 (accumulate_font_info): Comment-out (unused).
14239 (face_for_char, Fset_fontset_font, Ffontset_info): Remove unused
14240 variables.
14241
14242 * character.h (string_escape_byte8): Declare.
14243
14244 * charset.c (load_charset_map, load_charset_map_from_file): Remove
14245 unused vars.
14246 (Fdefine_charset_internal, Fsplit_char, syms_of_charset)
14247 (Fmap_charset_chars): Doc fix.
14248
14249 * coding.c (Vchar_coding_system_table, Qchar_coding_system): Remove.
14250 (Fset_coding_system_priority, Fset_coding_system_priority)
14251 (Fdefine_coding_system_internal): Doc fix.
14252
142532008-02-01 Dave Love <fx@gnu.org>
14254
14255 * s/osf5-0.h (C_SWITCH_SYSTEM) [!__GNUC__]: Remove -nointrinsics.
14256
142572008-02-01 Kenichi Handa <handa@m17n.org>
14258
14259 * character.c (string_escape_byte8): Make multibyte string with
14260 correct size.
14261
14262 * charset.c (Fmake_char): Delete unnecessary code.
14263
142642008-02-01 Kenichi Handa <handa@m17n.org>
14265
14266 * xfns.c (x_encode_text): Allocate coding.destination here, and
14267 call encode_coding_object with dst_object Qnil.
14268
14269 * buffer.c (Fset_buffer_multibyte): Convert 8-bit bytes to
14270 multibyte form correctly.
14271
14272 * fontset.c (fs_load_font): Check fontp->full_name (not fontname)
14273 against Vfont_encoding_alist.
14274
14275 * coding.c (Fdecode_sjis_char): Fix typo (0x7F->0xFF). Fix the
14276 handling of charset list.
14277 (encode_coding_iso_2022): Setup coding->safe_charsets in advance.
14278 (decode_coding_object): Move point to coding->dst_pos before
14279 calling post-read-conversion function.
14280 (encode_coding_object): Give correct arguments to
14281 pre-write-conversion. Ignore the return value of
14282 pre-write-conversion function. Pay attention to the case that
14283 pre-write-conversion changes the current buffer. If dst_object is
14284 Qt, even if coding->src_bytes is zero, allocate at least one byte
14285 to coding->destination.
14286
14287 * coding.h (JIS_TO_SJIS): Fix typo (j1->s1, j2->s2).
14288
14289 * charset.c (Fmake_char): Make it more backward compatible.
14290 (Fmap_charset_chars): Fix docstring.
14291
142922008-02-01 Dave Love <fx@gnu.org>
14293
14294 * coding.c: Doc fixes.
14295 (Fdefine_coding_system_alias): Use names, not symbols, in
14296 coding-system-alist.
14297
142982008-02-01 Kenichi Handa <handa@m17n.org>
14299
14300 * fontset.c (free_realized_fontsets): Call Fclear_face_cache instead
14301 of calling free_realized_face.
14302
143032008-02-01 Yong Lu <lyongu@asia-infonet.com>
14304
14305 * charset.c (read_hex): Don't treat SPC as a comment starter.
14306 (decode_char): If CODE_POINT_TO_INDEX returns -1, always return -1.
14307 (Fdecode_char): Fix typo.
14308
143092008-02-01 Kenichi Handa <handa@m17n.org>
14310
14311 * charset.h (struct charset): New member `code_space_mask'.
14312
14313 * coding.c (coding_set_source): Delete the local variable beg_byte.
14314 (encode_coding_charset, Fdefine_coding_system_internal):
14315 Delete the local variable charset.
14316 (Fdefine_coding_system_internal): Setup
14317 attrs[coding_attr_charset_valids] correctly.
14318
14319 * charset.c (CODE_POINT_TO_INDEX): Utilize `code_space_mask'
14320 member to check if CODE is valid or not.
14321 (Fdefine_charset_internal): Initialize `code_space_mask' member.
14322 (encode_char): Before calling CODE_POINT_TO_INDEX, check if CODE
14323 is within the range of charset->min_code and carset->max_code.
14324
143252008-02-01 Dave Love <fx@gnu.org>
14326
14327 * syntax.h (syntax_temp) [!__GNUC__]: Declare.
14328
14329 * dispextern.h (generate_ascii_font): Fix return type.
14330
14331 * xfaces.c (generate_ascii_font): Fix arg declaration.
14332
14333 * coding.c (coding_inherit_eol_type)
14334 (Fset_terminal_coding_system_internal)
14335 (Fset_safe_terminal_coding_system_internal): Fix arg declarations.
14336
143372008-02-01 Kenichi Handa <handa@m17n.org>
14338
14339 * coding.c (decode_coding_charset, encode_coding_charset): Handle
14340 multiple charsets correctly.
14341
143422008-02-01 Kenichi Handa <handa@m17n.org>
14343
14344 * search.c (boyer_moore): Fix handling of multibyte character
14345 translation.
14346
14347 * xdisp.c (display_mode_element): When the variable `elt' is
14348 changed, update `this' and `lisp_string'.
14349
143502008-02-01 Kenichi Handa <handa@m17n.org>
14351
14352 * buffer.c (Fset_buffer_multibyte): Fix 8-bit char handling.
14353
14354 * callproc.c (Fcall_process): Be sure to give the current buffer
14355 to decode_coding_c_string. Update PT and PT_BYTE after the insertion.
14356
14357 * charset.c (struct charset_map_entries): New struct.
14358 (load_charset_map): Rename from parse_charset_map. New args
14359 entries and n_entries. Change caller.
14360 (load_charset_map_from_file): Rename from load_charset_map.
14361 Change caller. New arg control_flag. Call load_charset_map at
14362 the tail.
14363 (load_charset_map_from_vector): New function.
14364 (Fdefine_charset_internal): Setup charset.compact_codes_p.
14365 (encode_char): If the charset is compact, change a character index
14366 to a code point.
14367
14368 * coding.c (coding_alloc_by_making_gap): Check the case that the
14369 source and destination are the same correctly.
14370 (decode_coding_raw_text): Set coding->consumed_char and
14371 coding->consumed to 0.
14372 (produce_chars): If coding->chars_at_source is nonzero, update
14373 coding->consumed_char and coding->consumed before calling
14374 alloc_destination.
14375 (Fdefine_coding_system_alias): Register ALIAS in
14376 Vcoding_system_alist.
14377 (syms_of_coding): Define `no-conversion' coding system at the tail.
14378
14379 * fileio.c (Finsert_file_contents): Set coding_system instead of
14380 val. If the current buffer is multibyte, always call
14381 decode_coding_gap.
14382
14383 * xfaces.c (try_font_list): Give higher priority to fontset's
14384 family than face's family.
14385
143862008-02-01 Kenichi Handa <handa@m17n.org>
14387
14388 * callproc.c (Fcall_process): Be sure to give the current buffer
14389 to decode_coding_c_string.
14390
14391 * xfaces.c (try_font_list): Give a family specified in a fontset
14392 higher priority than a family specified in a face.
14393
143942008-02-01 Kenichi Handa <handa@m17n.org>
14395
14396 * fileio.c (Finsert_file_contents): Fix calculation of `inserted'.
14397 Fix arguments to insert_from_buffer.
14398
14399 * xdisp.c (display_mode_element): Fix calculation of `bytepos'.
14400
144012008-02-01 Kenichi Handa <handa@m17n.org>
14402
14403 * coding.c (produce_chars): Set the variable `multibytep' correctly.
14404 (decode_coding_gap): Set coding->dst_multibyte correctly.
14405
144062008-02-01 Kenichi Handa <handa@m17n.org>
14407
14408 * coding.c (encode_coding_utf_8): Initialize produced_chars to 0.
14409 (decode_coding_utf_16): Fix converting high and low bytes to code-point.
14410 (encode_coding_utf_16): Substitute coding->default_char for
14411 non-Unicode characters.
14412 (decode_coding): Don't call record_insert here.
14413 (setup_coding_system): Initialize `surrogate' of
14414 coding->spec.utf_16 to 0.
14415 (EMIT_ONE_BYTE): Fix for multibyte case.
14416
14417 * insdel.c (insert_from_gap): Call record_insert.
14418
144192008-02-01 Kenichi Handa <handa@m17n.org>
14420
14421 * casefiddle.c (casify_region): Fix multibyte case.
14422
14423 * character.c (c_string_width): Add return type `int'.
14424 (char_string_with_unification): Delete arg ADVANCED.
14425
14426 * character.h (CHAR_VALID_P): Don't call CHARACTERP.
14427 (CHAR_STRING): Adjust for the change of char_string_with_unification.
14428 (CHAR_STRING_ADVANCE): Make it do-while statement.
14429
14430 * chartab.c (sub_char_table_set_range): Optimize for the case
14431 DEPTH == 3. Add workaround code for a GCC optimization bug.
14432
14433 * charset.c (parse_charset_map): Remove an unused variable.
14434
14435 * coding.c: Delete unused variables.
14436
14437 * fileio.c (Finsert_file_contents): Set coding_system to Qnil
14438 earlier. If inserted is zero and the coding system doesn't
14439 require flushing, don't call decode_coding_gap.
14440
14441 * syntax.h (SET_RAW_SYNTAX_ENTRY): Don't call make_number.
14442
144432008-02-01 Kenichi Handa <handa@m17n.org>
14444
14445 The following changes are for using Unicode as an internal
14446 character model, and use UTF-8 format for buffer/string
14447 representation.
14448
14449 * .gdbinit (xchartable): Adjust for the change of char table structure.
14450 (xsubchartable, xcoding, xcharset, xcurbuf): New commands.
14451
14452 * Makefile.in (obj): Add character.o and chartab.o.
14453 (lisp, shortlisp): Remove utf-8.elc.
14454 (*.o): For many files, change dependency on charset.h to
14455 character.h, and add dependency on character.h.
14456 (character.o, chartab.o): New targets.
14457
14458 * abbrev.c, bytecode.c, casefiddle.c, cmds.c, dispnew.c, doc.c:
14459 * doprnt.c, dosfns.c, frame.c, marker.c, minibuf.c, msdos.c:
14460 * w16select.c, w32bdf.c, w32console.c: Include "character.h" instead
14461 of "charset.h".
14462
14463 * dired.c, filelock.c: Include "character.h".
14464
14465 * alloc.c: Include "character.h" instead of "charset.h".
14466 (Fmake_char_table, make_sub_char_table): Move to chartab.c.
14467 (syms_of_alloc): Remove defsubr for Smake_char_table.
14468
14469 * buffer.c: Include "character.h" instead of "charset.h", don't
14470 include "coding.h".
14471 (Fset_buffer_multibyte): Adjust for UTF-8.
14472
14473 * buffer.h: EXFUN Fbuffer_live_p.
14474
14475 * callproc.c: Include "character.h" instead of "charset.h".
14476 (Fcall_process): Big change for the new code-conversion APIs.
14477
14478 * casetab.c: Include "character.h" instead of "charset.h".
14479 (set_canon, set_identity, shuffle): Adjust for the new
14480 map_char_table spec.
14481 (init_casetab_once): Call CHAR_TABLE_SET instead of directly
14482 accessing the char table structure.
14483
14484 * chartab.c: New file that implements char table.
14485
14486 * category.c: Include "character.h".
14487 (copy_category_entry): New function.
14488 (copy_category_table): Call map_char_table and copy_category_entry.
14489 (Fmake_category_table): Initialize all top-level slots.
14490 (char_category_set): New function.
14491 (modify_lower_category_set): Delete.
14492 (Fmodify_category_entry): Call char_table_ref_and_range.
14493
14494 * category.h (CATEGORY_SET): Just call char_category_set.
14495
14496 * ccl.c: Include "character.h".
14497 (Qccl, Qcclp): New variables.
14498 (CCL_WRITE_CHAR): Alway treat the arg CH as a character even if
14499 it's less than 256.
14500 (CCL_WRITE_MULTIBYTE_CHAR): Delete.
14501 (CCL_WRITE_STRING, CCL_READ_CHAR): Adjust for the change of SRC
14502 and DST type.
14503 (ccl_driver): Change types of argument, adjust code accordingly.
14504 (Fccl_execute, Fccl_execute_on_string): Adjust for the change of
14505 ccl_driver.
14506 (syms_of_ccl): Intern and staticpro Qccl and Qcclp.
14507
14508 * ccl.h (struct ccl_program): Delete members eol_type and multibyte.
14509 New members src_multibyte, dst_multibyte, consumed, and produced.
14510 (struct ccl_spec): Delete members decoder and encoder. New member ccl.
14511 (CODING_SPEC_CCL_PROGRAM): New macro.
14512 (ccl_driver): Update prototype.
14513 (Qccl, Qcclp, Fccl_program_p): Extern them.
14514 (CHECK_CCL_PROGRAM): New macro.
14515
14516 * character.c, character.h, chartab.c: New files.
14517
14518 * charset.c: Mostly re-written. Move character and multibyte sequence
14519 handling codes to character.c.
14520
14521 * charset.h: Mostly re-written. Move character and multibyte sequence
14522 handling codes to character.h.
14523
14524 * coding.c, coding.h: Mostly re-written.
14525
14526 * composite.c: Include "character.h" instead of "charset.h".
14527 (CHAR_WIDTH): Move to character.h.
14528 (HASH_KEY, HASH_VALUE): Delete.
14529
14530 * composite.h (enum composition_method): Change order of enumeration
14531 symbols.
14532
14533 * data.c: Include "character.h" instead of "charset.h".
14534 (Faref): Call CHAR_TABLE_REF for a char table.
14535 (Faset): Call CHAR_TABLE_SET for a char table.
14536
14537 * dispextern.h (free_realized_face, check_face_attribytes)
14538 (generate_ascii_font): Extern them.
14539 (free_realized_multibyte_face): Delete extern.
14540
14541 * disptab.h (DISP_CHAR_VECTOR): Adjust for the change of char
14542 table structure.
14543
14544 * editfns.c: Include "character.h" instead of "charset.h".
14545 (Fchar_to_string): Always call CHAR_STRING.
14546
14547 * emacs.c (main): Call init_charset_once, init_charset,
14548 syms_of_chartab, and syms_of_character.
14549
14550 * fileio.c: Include "character.h" instead of "charset.h".
14551 (Finsert_file_contents): Big change for the new code-conversion API.
14552 (choose_write_coding_system, Fwrite_region): Likewise.
14553 (build_annotations_2): Delete.
14554 (e_write): Big change for the new code-conversion API.
14555
14556 * fns.c: Include "character.h" instead of "charset.h".
14557 (copy_sub_char_table): Move to chartab.c.
14558 (Fcopy_sequence): Call copy_char_table for a char table.
14559 (concat): Delete codes calling count_multibyte.
14560 (string_char_to_byte, string_byte_to_char): Adjust for the new
14561 multibyte form.
14562 (internal_equal): Adjust for the change of char table structure.
14563 (Fchar_table_subtype, Fchar_table_parent, Fset_char_table_parent)
14564 (Fchar_table_extra_slot, Fset_char_table_extra_slot)
14565 (Fchar_table_range, Fset_char_table_range, Fset_char_table_default)
14566 (char_table_translate, optimize_sub_char_table)
14567 (Foptimize_char_table, map_char_table, Fmap_char_table): Move to
14568 chartab.c.
14569 (char_table_ref_and_index): Delete.
14570 (HASH_KEY, HASH_VALUE): Move to lisp.h.
14571 (Fmd5): Call preferred_coding_system instead of accessing
14572 Vcoding_category_list. Adjust for the new code-conversion API.
14573 (syms_of_fns): Move defsubr for char table related functions to
14574 chartab.c.
14575
14576 * fontset.c: Mostly re-written.
14577
14578 * fontset.h (struct font_info): Change type of the member encoding_type.
14579 (enum FONT_SPEC_INDEX): New enum.
14580 (fontset_font_pattern, fs_load_font): Update prototype.
14581 (FS_LOAD_FONT): Adjust for the change of fs_load_font.
14582
14583 * indent.c: Include "character.h" instead of "charset.h".
14584 (MULTIBYTE_BYTES_WIDTH): Call CHAR_WIDTH instead of WIDTH_BY_CHAR_HEAD.
14585
14586 * insdel.c: Include "character.h" instead of "charset.h".
14587 (copy_text): Don't refer to Vnonascii_translation_table.
14588 (insert_from_gap): New function.
14589
14590 * keyboard.c: Include "character.h" instead of "charset.h".
14591 (command_loop_1): Never call direct_output_forward_char before
14592 a non-ASCII character.
14593 (read_char): If Vkeyboard_translate_table is a char table, always
14594 translate a character.
14595
14596 * keymap.c: Include "character.h".
14597 (store_in_keymap): Handle the case that IDX is a cons.
14598 (Fdefine_key): Handle the case that KEY is a cons and the car part
14599 is also a cons (range).
14600 (push_key_description): Adjust for the new character code.
14601 (describe_vector): Call describe_char_table for a char table.
14602 (describe_char_table): New function.
14603
14604 * keymap.h (describe_char_table): Extern it.
14605
14606 * lisp.h (enum pvec_type): New member PVEC_SUB_CHAR_TABLE.
14607 (XSUB_CHAR_TABLE, XSETSUB_CHAR_TABLE): New macros.
14608 (CHAR_TABLE_ORDINARY_SLOTS, CHAR_TABLE_SINGLE_BYTE_SLOTS)
14609 (SUB_CHAR_TABLE_ORDINARY_SLOTS, SUB_CHAR_TABLE_STANDARD_SLOTS):
14610 Delete.
14611 (CHAR_TABLE_REF, CHAR_TABLE_SET): Adjust for the new char table
14612 structure.
14613 (CHAR_TABLE_TRANSLATE): Just call char_table_translate.
14614 (CHARTAB_SIZE_BITS_0, CHARTAB_SIZE_BITS_1, CHARTAB_SIZE_BITS_2)
14615 (CHARTAB_SIZE_BITS_3): New macros.
14616 (chartab_size): Extern it.
14617 (struct Lisp_Char_Table): Re-design.
14618 (struct Lisp_Sub_Char_Table): New structure.
14619 (HASH_KEY, HASH_VALUE): Move from fns.c.
14620 (CHARACTERBITS): Define as 22.
14621 (GLYPH_MASK_FACE, GLYPH_MASK_CHAR): Adjust for the above change.
14622 (SUB_CHAR_TABLE_P): Check PVEC_CHAR_TABLE.
14623 (GC_SUB_CHAR_TABLE_P): New macro.
14624 (Fencode_coding_string, Fdecode_coding_string): Update EXFUN.
14625 (code_convert_string_norecord): Deleted extern.
14626 (init_character_once, syms_of_character, init_charset)
14627 (syms_of_composite, Qeq, Fmakehash, insert_from_gap): Extern them.
14628
14629 * lread.c: Include "character.h".
14630 (read_multibyte): New arg NBYTES.
14631 (read_escape): Change the meaning of returned *BYTEREP.
14632 (to_multibyte): Delete.
14633 (read1): Adjust the handling of char table and string.
14634
14635 * print.c: Include "character.h" instead of "charset.h".
14636 (print_string): Convert 8-bit raw bytes to octal form by
14637 string_escape_byte8.
14638 (print_object): Adjust for the new multibyte form. Print 8-bit
14639 raw bytes always in octal form. Handle sub char table correctly.
14640
14641 * process.c: Include "character.h" instead of "charset.h".
14642 (read_process_output, send_process): Adjust for the new
14643 code-conversion API.
14644
14645 * puresize.h (BASE_PURESIZE): Increase.
14646
14647 * regex.c: Include "character.h" instead of "charset.h".
14648 (BYTE8_TO_CHAR, CHAR_BYTE8_P) [not emacs]: New dummy macros.
14649 (regex_compile): Accept a range whose starting and ending
14650 character have different leading bytes.
14651 (analyse_first): Adjust for the above change.
14652
14653 * search.c: Include "character.h" instead of "charset.h".
14654 (search_buffer, boyer_moore): Adjust for the new multibyte form.
14655 (Freplace_match): Adjust for the change of multibyte_char_to_unibyte.
14656
14657 * syntax.c: Include "character.h" instead of "charset.h".
14658 (syntax_parent_lookup): Delete.
14659 (Fmodify_syntax_entry): Accept a cons as CHAR.
14660 (skip_chars): Adjust for the new multibyte form.
14661 (init_syntax_once): Call char_table_set_range instead of directly
14662 accessing the structure of a char table.
14663
14664 * syntax.h (SET_RAW_SYNTAX_ENTRY): Call CHAR_TABLE_SET.
14665 (SYNTAX_ENTRY_FOLLOW_PARENT): Delete macro.
14666 (SET_RAW_SYNTAX_ENTRY_RANGE): New macro.
14667 (SYNTAX_ENTRY_INT): Call CHAR_TABLE_REF.
14668
14669 * term.c: Include "buffer.h" and "character.h".
14670 (encode_terminal_code, write_glyphs): Adjust for the new
14671 code-conversion API.
14672 (produce_glyphs): Call CHAR_WIDTH instead of CHARSET_WIDTH.
14673
14674 * w32term.c (x_new_font): Adjust for the change of FS_LOAD_FONT.
14675
14676 * xdisp.c: Include "character.h".
14677 (get_next_display_element): Adjust for the new multibyte form.
14678 (disp_char_vector): Adjust for the new char table structure.
14679 (decode_mode_spec_coding): Adjust for the new structure of
14680 coding system.
14681 (decode_mode_spec): Adjust for the new code-conversion API.
14682
14683 * xfaces.c: Include "character.h" instead of "charset.h".
14684 (load_face_font): Adjust for the change of choose_face_font and
14685 FS_LOAD_FONT.
14686 (generate_ascii_font): New function.
14687 (set_lface_from_font_name): Adjust for the change of FS_LOAD_FONT.
14688 (set_font_frame_param): Adjust for the change of choose_face_font.
14689 (free_realized_face): Make it public.
14690 (free_realized_faces_for_fontset): Rename from
14691 free_realized_multibyte_face. Free also faces realized for ASCII.
14692 (choose_face_font): Change arguments. Adjust for the change of
14693 fontset_font_pattern and FS_LOAD_FONT.
14694
14695 * xfns.c: Include "character.h".
14696 (x_encode_text): Adjust for the new code-conversion API.
14697
14698 * xselect.c: Don't include "charset.h".
14699 (selection_data_to_lisp_data): Adjust for the new code conversion API.
14700
14701 * xterm.c: Include "character.h".
14702 (x_encode_char): New argument CHARSET. Change caller.
14703 (x_get_char_face_and_encoding, x_get_glyph_face_and_encoding):
14704 Call ENCODE_CHAR instead of SPLIT_CHAR.
14705 (x_produce_glyphs): Don't check Vnonascii_translation_table Call
14706 CHAR_WIDTH instead of CHARSET_WIDTH.
14707 (XTread_socket): Adjust for the new code-conversion API.
14708 (x_new_font): Adjust for the change of FS_LOAD_FONT.
14709 (x_load_font): Adjust for the change of struct font.
14710
147112008-02-01 Stefan Monnier <monnier@iro.umontreal.ca>
14712
14713 * xfaces.c (face_at_buffer_position): Remove unused vars.
14714
147152008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
14716
14717 * ccl.c (CCL_WRITE_CHAR, CCL_WRITE_MULTIBYTE_CHAR):
14718 Fix overflow checking.
14719
147202008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
14721
14722 * ccl.c (CCL_WRITE_CHAR, CCL_WRITE_MULTIBYTE_CHAR, ccl_driver):
14723 Cancel previous change.
14724
147252008-01-31 Kenichi Handa <handa@ni.aist.go.jp>
14726
14727 * ccl.c (CCL_WRITE_CHAR): Increment extra_bytes only when
14728 ccl->eight_bit_control. Fix check for buffer overflow.
14729 (CCL_WRITE_MULTIBYTE_CHAR): Fix check for buffer overflow.
14730 (ccl_driver): Initialize extra_bytes to 0.
14731
147322008-01-31 Kenichi Handa <handa@ni.aist.go.jp>
14733
14734 * keyboard.c (make_ctrl_char): If C is a multibyte character, just
14735 return it ORed with ctrl_modifier.
14736
147372008-01-29 Miles Bader <miles@gnu.org>
14738
14739 * macterm.c (XTset_vertical_scroll_bar): Fix merge mistake.
14740
147412008-01-28 Jason Rumney <jasonr@gnu.org>
14742
14743 * w32.c (stat): Don't double check for networked drive.
14744
147452008-01-28 Stefan Monnier <monnier@iro.umontreal.ca>
14746
14747 * window.c (run_window_configuration_change_hook): New function.
14748 Code extracted from set_window_buffer. Set the selected frame.
14749 (set_window_buffer): Use it.
14750 * window.h (run_window_configuration_change_hook): Declare.
14751 * dispnew.c (change_frame_size_1): Use it instead of set-window-buffer.
14752
14753 * keyboard.c (read_char): Yet another int/Lisp_Object mixup (YAILOM).
14754
147552008-01-27 Dan Nicolaescu <dann@ics.uci.edu>
14756
14757 * Makefile.in: Remove references to unused macros.
14758
147592008-01-26 Eli Zaretskii <eliz@gnu.org>
14760
14761 * w32.c (g_b_init_get_sid_sub_authority)
14762 (g_b_init_get_sid_sub_authority_count): New static variables.
14763 (GetSidSubAuthority_Proc, GetSidSubAuthorityCount_Proc): New typedefs.
14764 (get_sid_sub_authority, get_sid_sub_authority_count): New functions.
14765 (init_user_info): Use them to retrieve uid and gid.
14766 Use 500/513, the Windows defaults, as Administrator's uid/gid.
14767 (fstat): Use pw_uid and pw_gid from the_passwd structure for
14768 st_uid and st_gid of the file.
14769
147702008-01-26 Jason Rumney <jasonr@gnu.org>
14771
14772 * w32.c (logon_network_drive): New function.
14773 (stat): Use it.
14774
147752008-01-26 Chong Yidong <cyd@stupidchicken.com>
14776
14777 * xdisp.c (pos_visible_p): Handle the case where charpos falls on
14778 invisible text covered with an ellipsis.
14779
147802008-01-25 Richard Stallman <rms@gnu.org>
14781
14782 * xdisp.c (redisplay_window): Run Qwindow_text_change_functions and
14783 jump back to beginning. Move some other initializations after that.
14784 (Qwindow_text_change_functions, Vwindow_text_change_functions):
14785 New variables.
14786 (syms_of_xdisp): Init them.
14787
14788 * keyboard.c (read_char): Restore echo_message_buffer after redisplay.
14789
14790 * buffer.c (reset_buffer_local_variables):
14791 Implement `permanent-local-hook'.
14792 (Qpermanent_local_hook): New variable.
14793 (syms_of_buffer): Init and staticpro it.
14794
147952008-01-25 Michael Albinus <michael.albinus@gmx.de>
14796
14797 * dbusbind.c (xd_retrieve_arg): Pacify GCC on x86_64 GNU/Linux.
14798
147992008-01-25 Thien-Thi Nguyen <ttn@gnuvola.org>
14800
14801 * fns.c (Fclrhash): Return TABLE.
14802
148032008-01-23 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
14804
14805 * macterm.c (x_scroll_bar_create): Initialize bar->redraw_needed_p.
14806 (XTset_vertical_scroll_bar): Redraw scroll bar if bar->redraw_needed_p
14807 is set even without positional changes.
14808 (x_scroll_bar_clear): Set bar->redraw_needed_p.
14809
14810 * macterm.h (struct scroll_bar): New member `redraw_needed_p'.
14811
148122008-01-23 Jason Rumney <jasonr@gnu.org>
14813
14814 * xterm.c (handle_one_xevent): Revert to counting chars not bytes.
14815
14816 * w32term.c (w32_read_socket) <WM_CHAR>: Decode characters outside
14817 the unicode range available in MULE by locale-coding-system.
14818 Improve dbcs lead byte detection. Set event timestamp and modifiers
14819 earlier.
14820
148212008-01-23 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
14822
14823 * mac.c (mac_emacs_pid) [MAC_OSX]: New variable.
14824 [MAC_OSX] (init_mac_osx_environment): Initialize it.
14825 [MAC_OSX] (mac_try_close_socket) [SELECT_USE_CFSOCKET]: Return 0
14826 when used on child processes.
14827
148282008-01-21 Michael Albinus <michael.albinus@gmx.de>
14829
14830 * dbusbind.c (Fdbus_method_return_internal): Rename from
14831 Fdbus_method_return.
14832 (Fdbus_unregister_object): Move to dbus.el.
14833 (Fdbus_call_method, Fdbus_method_return_internal)
14834 (Fdbus_send_signal): Improve debug messages.
14835
148362008-01-20 Martin Rudalics <rudalics@gmx.at>
14837
14838 * undo.c (undo_inhibit_record_point): New variable.
14839 (syms_of_undo): Initialize it.
14840 (record_point): Don't record point when undo_inhibit_record_point
14841 is set.
14842
148432008-01-19 Stefan Monnier <monnier@iro.umontreal.ca>
14844
14845 * process.c (list_processes_1): Don't use SCHARS on a nil buffer name.
14846
14847 * xdisp.c (Qauto_hscroll_mode): New var.
14848 (syms_of_xdisp): Initialize it.
14849 (hscroll_window_tree): Use it to lookup `auto-hscroll-mode' in each
14850 window's buffer.
14851 (hscroll_windows): Don't check automatic_hscrolling_p here.
14852
14853 * window.c (set_window_buffer): Don't unnecessarily reset hscroll and
14854 vscroll if we're setting window-buffer to the value it already has.
14855
148562008-01-18 Dan Nicolaescu <dann@ics.uci.edu>
14857
14858 * m/intel386.h: Remove references to XENIX.
14859
148602008-01-17 Andreas Schwab <schwab@suse.de>
14861
14862 * m/amdx86-64.h (START_FILES, LIB_STANDARD): Use HAVE_LIB64_DIR
14863 instead of HAVE_X86_64_LIB64_DIR.
14864 * m/ibms390x.h (START_FILES, LIB_STANDARD): Likewise.
14865
148662008-01-17 Glenn Morris <rgm@gnu.org>
14867
14868 * m/ibms390x.h (START_FILES, LIB_STANDARD): Adjust value according
14869 to HAVE_X86_64_LIB64_DIR.
14870
148712008-01-16 Dan Nicolaescu <dann@ics.uci.edu>
14872
14873 * s/irix3-3.h:
14874 * s/irix4-0.h:
14875 * s/386-ix.h:
14876 * s/domain.h:
14877 * s/hpux9-x11r4.h:
14878 * s/hpux9shxr4.h: Remove files for systems no longer supported.
14879
14880 * sysdep.c: Remove code containing references to symbols defined
14881 by unsupported systems.
14882
148832008-01-16 Glenn Morris <rgm@gnu.org>
14884
14885 * coding.c (select-safe-coding-system-function): Doc fix.
14886
148872008-01-15 Glenn Morris <rgm@gnu.org>
14888
14889 * config.in: Revert 2008-01-13 change: this is a generated file.
14890
148912008-01-13 Tom Tromey <tromey@redhat.com>
14892
14893 * lisp.h: Fix typo.
14894
148952008-01-13 Dan Nicolaescu <dann@ics.uci.edu>
14896
14897 * m/sequent-ptx.h:
14898 * m/sequent.h:
14899 * s/ptx.h:
14900 * s/ptx4-2.h:
14901 * s/ptx4.h: Remove files for systems no longer supported.
14902
14903 * callproc.c (Fcall_process): Fix previous change.
14904
149052008-01-13 Dan Nicolaescu <dann@ics.uci.edu>
14906
14907 * unexsunos4.c: Remove file, system not supported anymore.
14908
14909 * m/mips.h:
14910 * m/intel386.h:
14911 * callproc.c:
14912 * config.in:
14913 * ecrt0.c:
14914 * emacs.c:
14915 * fileio.c:
14916 * frame.c:
14917 * getpagesize.h:
14918 * keyboard.c:
14919 * lread.c:
14920 * process.c:
14921 * puresize.h:
14922 * sysdep.c:
14923 * systty.h:
14924 * syswait.h:
14925 * unexec.c:
14926 * xdisp.c:
14927 * alloc.c: Remove code containing references to symbols defined by
14928 unsupported systems.
14929
149302008-01-11 Kenichi Handa <handa@ni.aist.go.jp>
14931
14932 * coding.c (detect_coding_mask): Fix previous change.
14933
149342008-01-09 Kenichi Handa <handa@ni.aist.go.jp>
14935
14936 * coding.c (detect_coding_iso2022): New arg
14937 latin_extra_code_state. Allow Latin extra codes only
14938 when *latin_extra_code_state is nonzero.
14939 (detect_coding_mask): If there is a NULL byte, detect the encoding
14940 as UTF-16 or binary. If Latin extra codes exist, detect the
14941 encoding as ISO-2022 only when there's no other proper encoding is
14942 found.
14943
149442008-01-08 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
14945
14946 * frame.c (Fmake_terminal_frame): Use #ifdef MAC_OS8 instead of
14947 #ifdef MAC_OS.
14948
149492008-01-08 Richard Stallman <rms@gnu.org>
14950
14951 * fileio.c (Ffile_name_directory, Fexpand_file_name): Doc fixes.
14952
149532008-01-06 Nick Roberts <nickrob@snap.net.nz>
14954
14955 * keyboard.c (parse_menu_item): Don't enclose key bindings on
14956 menu bar in parentheses.
14957
149582008-01-06 Dan Nicolaescu <dann@ics.uci.edu>
14959
14960 * m/7300.h:
14961 * m/acorn.h:
14962 * m/alliant-2800.h:
14963 * m/alliant.h:
14964 * m/alliant1.h:
14965 * m/alliant4.h:
14966 * m/altos.h:
14967 * m/amdahl.h:
14968 * m/apollo.h:
14969 * m/att3b.h:
14970 * m/aviion-intel.h:
14971 * m/aviion.h:
14972 * m/celerity.h:
14973 * m/clipper.h:
14974 * m/cnvrgnt.h:
14975 * m/convex.h:
14976 * m/cydra5.h:
14977 * m/delta88k.h:
14978 * m/dpx2.h:
14979 * m/dual.h:
14980 * m/elxsi.h:
14981 * m/f301.h:
14982 * m/gould-np1.h:
14983 * m/gould.h:
14984 * m/i860.h:
14985 * m/ibmps2-aix.h:
14986 * m/ibmrt-aix.h:
14987 * m/ibmrt.h:
14988 * m/irist.h:
14989 * m/is386.h:
14990 * m/isi-ov.h:
14991 * m/mega68.h:
14992 * m/mg1.h:
14993 * m/news-r6.h:
14994 * m/news-risc.h:
14995 * m/news.h:
14996 * m/nh3000.h:
14997 * m/nh4000.h:
14998 * m/ns16000.h:
14999 * m/ns32000.h:
15000 * m/nu.h:
15001 * m/orion.h:
15002 * m/orion105.h:
15003 * m/paragon.h:
15004 * m/pfa50.h:
15005 * m/plexus.h:
15006 * m/pyramid.h:
15007 * m/pyrmips.h:
15008 * m/sh3el.h:
15009 * m/sps7.h:
15010 * m/sr2k.h:
15011 * m/stride.h:
15012 * m/sun1.h:
15013 * m/sun2.h:
15014 * m/sun3-68881.h:
15015 * m/sun3-fpa.h:
15016 * m/sun3-soft.h:
15017 * m/sun3.h:
15018 * m/sun386.h:
15019 * m/symmetry.h:
15020 * m/tad68k.h:
15021 * m/tahoe.h:
15022 * m/targon31.h:
15023 * m/tek4300.h:
15024 * m/tekxd88.h:
15025 * m/tower32.h:
15026 * m/tower32v3.h:
15027 * m/ustation.h:
15028 * m/wicat.h:
15029 * m/xps100.h:
15030 * s/cxux.h:
15031 * s/cxux7.h:
15032 * s/dgux.h:
15033 * s/dgux4.h:
15034 * s/dgux5-4-3.h:
15035 * s/dgux5-4r2.h:
15036 * s/esix.h:
15037 * s/esix5r4.h:
15038 * s/hiuxmpp.h:
15039 * s/hiuxwe2.h:
15040 * s/iris3-5.h:
15041 * s/iris3-6.h:
15042 * s/isc2-2.h:
15043 * s/isc3-0.h:
15044 * s/isc4-0.h:
15045 * s/isc4-1.h:
15046 * s/newsos5.h:
15047 * s/newsos6.h:
15048 * s/osf1.h:
15049 * s/osf5-0.h:
15050 * s/riscix1-1.h:
15051 * s/riscix12.h:
15052 * s/sco4.h:
15053 * s/sco5.h:
15054 * s/sunos4-0.h:
15055 * s/sunos4-1.h:
15056 * s/sunos413.h:
15057 * s/sunos4shr.h:
15058 * s/umax.h:
15059 * s/unipl5-2.h:
15060 * s/xenix.h:
15061 * cxux-crt0.s:
15062 * unexapollo.c:
15063 * unexconvex.c:
15064 * unexenix.c:
15065 * unexsni.c: Remove files for systems no longer supported.
15066
15067 * m/intel386.h: Remove references to unsupported systems.
15068
15069 * w32.c (get_emacs_configuration): Remove reference to i860.
15070
15071 * sysdep.c: Remove dead code.
15072
150732008-01-05 Dan Nicolaescu <dann@ics.uci.edu>
15074
15075 * s/rtu.h:
15076 * m/masscomp.h: Remove files. Platform is obsolete.
15077
150782008-01-04 Michael Albinus <michael.albinus@gmx.de>
15079
15080 * dbusbind.c (Fdbus_method_return): New function.
15081 (xd_read_message): Add the serial number to the event.
15082 (Fdbus_register_method): Activate the function.
15083
150842008-01-03 Stefan Monnier <monnier@iro.umontreal.ca>
15085
15086 * keyboard.c (read_key_sequence): Fix typo.
15087
150882008-01-03 Michael Albinus <michael.albinus@gmx.de>
15089
15090 * dbusbind.c (all): Replace XCAR by CAR_SAFE and XCDR by CDR_SAFE.
15091 (xd_signature, xd_append_arg): Handle element type detection for
15092 empty arrays.
15093 (Fdbus_call_method, Fdbus_send_signal): Undo type casting for
15094 SDATA () calls; this must be solved more general.
15095 (Fdbus_register_signal): Use SBYTES instead of strlen.
15096
150972008-01-03 Magnus Henoch <magnus@zemdatav>
15098
15099 * dbusbind.c (xd_append_arg): Use unsigned char instead of
15100 unsigned int for byte values (necessary for big-endian platform).
15101 (Fdbus_call_method): Handle the case of no returned arguments.
15102
151032007-12-31 Tom Tromey <tromey@redhat.com> (tiny change)
15104
15105 * dbusbind.c (xd_read_message): Use non-static input_event struct.
15106
151072007-12-31 Magnus Henoch <mange@freemail.hu>
15108
15109 * dbusbind.c (xd_signature): Signature of variant is just "v".
15110
151112007-12-30 Michael Albinus <michael.albinus@gmx.de>
15112
15113 * dbusbind.c: Fix several errors and compiler warnings.
15114 Reported by Tom Tromey <tromey@redhat.com>.
15115 (XD_ERROR, XD_DEBUG_MESSAGE)
15116 (XD_DEBUG_VALID_LISP_OBJECT_P): Wrap code with "do ... while (0)".
15117 (xd_append_arg): Part for basic D-Bus types rewritten.
15118 (xd_retrieve_arg): Split implementation of DBUS_TYPE_BYTE and
15119 DBUS_TYPE_(U)INT16. Don't call XD_DEBUG_MESSAGE with "%f" if not
15120 appropriate.
15121 (xd_read_message): Return Qnil. Don't signal an error; it is not
15122 useful during event reading.
15123 (Fdbus_register_signal): Signal an error if the check for
15124 FUNCTIONP fails.
15125 (Fdbus_register_method): New function. The implementation is not
15126 complete, the call of the function signals an error therefore.
15127 (Fdbus_unregister_object): New function, renamed from
15128 Fdbus_unregister_signal. The initial check signals an error, if
15129 the object is not well formed.
15130
151312007-12-30 Richard Stallman <rms@gnu.org>
15132
15133 * textprop.c (get_char_property_and_overlay):
15134 Signal error if POSITION is out of range in a buffer.
15135
151362007-12-29 Martin Rudalics <rudalics@gmx.at>
15137
15138 * w32fns.c (Fx_create_frame): Make copy of frame parameters
15139 because the original parameters are in pure storage now.
15140
151412007-12-24 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
15142
15143 * xdisp.c (phys_cursor_in_rect_p): Check if cursor is in fringe area.
15144
151452007-12-22 Eli Zaretskii <eliz@gnu.org>
15146
15147 * callint.c (syms_of_callint) <command-history>: Add reference to
15148 history-length in the doc string.
15149
151502007-12-17 Jason Rumney <jasonr@gnu.org>
15151
15152 * w32fns.c (w32_wnd_proc) <WM_KEYDOWN>: Cast char to unsigned
15153 before passing as wParam.
15154
151552007-12-22 Michael Albinus <michael.albinus@gmx.de>
15156
15157 * dbusbind.c (xd_retrieve_arg): Handle DBUS_TYPE_BYTE,
15158 DBUS_TYPE_INT16, DBUS_TYPE_UINT16, DBUS_TYPE_INT64,
15159 DBUS_TYPE_UINT64, DBUS_TYPE_DOUBLE and DBUS_TYPE_SIGNATURE.
15160 Return float when DBUS_TYPE_INT32 or DBUS_TYPE_UINT32 do not fit
15161 as number.
15162 (Fdbus_call_method): Fix docstring.
15163
151642007-12-21 Michael Albinus <michael.albinus@gmx.de>
15165
15166 * dbusbind.c (XD_BASIC_DBUS_TYPE, XD_DBUS_TYPE_P, XD_NEXT_VALUE):
15167 New macros.
15168 (XD_SYMBOL_TO_DBUS_TYPE): Rename from XD_LISP_SYMBOL_TO_DBUS_TYPE.
15169 (XD_OBJECT_TO_DBUS_TYPE): Rename from XD_LISP_OBJECT_TO_DBUS_TYPE.
15170 Simplify.
15171 (xd_signature): New function.
15172 (xd_append_arg): Compute also signatures. Major rewrite.
15173 (xd_retrieve_arg): Make debug messages friendly.
15174 (Fdbus_call_method, Fdbus_send_signal): Extend docstring.
15175 Check for signatures of arguments.
15176
151772007-12-19 Michael Albinus <michael.albinus@gmx.de>
15178
15179 * dbusbind.c (QCdbus_type_byte, QCdbus_type_boolean)
15180 (QCdbus_type_int16, QCdbus_type_uint16, QCdbus_type_int32)
15181 (QCdbus_type_uint32, QCdbus_type_int64, QCdbus_type_uint64)
15182 (QCdbus_type_double, QCdbus_type_string, QCdbus_type_object_path)
15183 (QCdbus_type_signature, QCdbus_type_array, QCdbus_type_variant)
15184 (QCdbus_type_struct, QCdbus_type_dict_entry): New D-Bus type symbols.
15185 (XD_LISP_SYMBOL_TO_DBUS_TYPE): New macro.
15186 (XD_LISP_OBJECT_TO_DBUS_TYPE): Add compound types.
15187 (xd_retrieve_value): Remove. Functionality included in ...
15188 (xd_append_arg): New function.
15189 (Fdbus_call_method, Fdbus_send_signal): Apply it.
15190
151912007-12-16 Michael Albinus <michael.albinus@gmx.de>
15192
15193 * dbusbind.c (top): Include <stdio.h>.
15194 (Fdbus_call_method, Fdbus_send_signal): Apply type cast in
15195 dbus_message_new_method_call and dbus_message_new_signal.
15196 (Fdbus_register_signal): Rename unique_name to uname.
15197 Check handler for FUNCTIONP instead of CHECK_SYMBOL. Handle case of
15198 non-existing unique name. Fix typos in matching rule. Return an
15199 object which is useful in Fdbus_unregister_signal.
15200 (Fdbus_unregister_signal): Reimplementation, in order to remove
15201 only the corresponding entry.
15202 (Vdbus_registered_functions_table): Change the order of entries.
15203 Apply these changes in xd_read_message and Fdbus_register_signal.
15204
152052007-12-16 Andreas Schwab <schwab@suse.de>
15206
15207 * fileio.c (Finsert_file_contents): Fix overflow check to not
15208 depend on undefined integer overflow.
15209
152102007-12-14 Jason Rumney <jasonr@gnu.org>
15211
15212 * w32term.c (w32_read_socket): Use MULTIBYTE_CHAR_KEYSTROKE_EVENT
15213 for characters above 127.
15214
152152007-12-13 Jason Rumney <jasonr@gnu.org>
15216
15217 * w32fns.c (w32_wnd_proc, Fw32_reconstruct_hot_key): Range check
15218 before dereferencing array.
15219 (lookup_vk_code): Remove zero comparison.
15220
152212007-12-14 Michael Albinus <michael.albinus@gmx.de>
15222
15223 * dbusbind.c (xd_retrieve_value, xd_retrieve_arg)
15224 (Fdbus_call_method, Fdbus_send_signal, xd_read_message):
15225 Use `unsigned int' instead of `uint'.
15226 (xd_read_message, Fdbus_register_signal): Split expressions into
15227 multiple lines before operators "&&" and "||", according to the
15228 GNU Coding Standards.
15229
152302007-12-14 Eli Zaretskii <eliz@gnu.org>
15231
15232 * dispextern.h (WINDOWS_NT): Fix incorrect spelling of WINDOWSNT.
15233
152342007-12-12 Juri Linkov <juri@jurta.org>
15235
15236 * buffer.c (Frename_buffer): In interactive spec replace
15237 `read-buffer' with `read-string' that uses `buffer-name-history'
15238 as history, and the current buffer's name as default.
15239
152402007-12-10 Stefan Monnier <monnier@iro.umontreal.ca>
15241
15242 * keyboard.c (Fcommand_execute): Call Qcall_interactively instead of
15243 manipulating the backtrace manually.
15244 (make_lispy_event): Merge the ASCII and MULTIBYTE cases.
15245 (struct backtrace, backtrace_list): Remove.
15246 (command_loop_1): Remove dead var `no_direct'.
15247
15248 * buffer.c (reset_buffer_local_variables): If permanent_too is 0, also
15249 preserve non-built-in buffer-local variables.
15250 (Fkill_all_local_variables): Don't re-create&re-set permanent
15251 buffer-local variables.
15252
152532007-12-09 Juri Linkov <juri@jurta.org>
15254
15255 * buffer.c (Frename_buffer): Change interactive spec from "s" to
15256 Lisp code that uses `read-buffer' with current buffer as default.
15257
152582007-12-08 Michael Albinus <michael.albinus@gmx.de>
15259
15260 * dbusbind.c (xd_read_message): Generate an event for every
15261 registered handler. There might be several handlers registered
15262 for the same signal.
15263 (Fdbus_register_signal): Don't overwrite a registration for the
15264 same signal. Add a new registration if handlers are different.
15265 (Vdbus_registered_functions_table): Rework doc string.
15266
152672007-12-07 Michael Albinus <michael.albinus@gmx.de>
15268
15269 * dbusbind.c (Fdbus_get_unique_name, xd_read_message)
15270 (Fdbus_register_signal): Use DBUS_MAXIMUM_NAME_LENGTH and
15271 DBUS_MAXIMUM_MATCH_RULE_LENGTH for string lengths.
15272 (Fdbus_call_method, Fdbus_send_signal, Fdbus_register_signal):
15273 Unify argument lists.
15274 (xd_read_message, Fdbus_register_signal): Reorder and extend event
15275 arguments and hash table keys. Use unique name for service.
15276 (Fdbus_unregister_signal): Remove checks.
15277 (Vdbus_registered_functions_table): Fix doc string.
15278
152792007-12-05 Magnus Henoch <mange@freemail.hu>
15280
15281 * process.c (make_process): Initialize pty_flag to 0.
15282
152832007-12-05 Jason Rumney <jasonr@gnu.org>
15284
15285 * image.c (xbm_load) [WINDOWSNT]: Shuffle the bits of directly
15286 specified XBMs.
15287
152882007-12-05 Richard Stallman <rms@gnu.org>
15289
15290 * xdisp.c (syms_of_xdisp) <scroll-conservatively>: Doc fix.
15291
152922007-12-05 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
15293
15294 * mac.c (cfsockets_for_select) [MAC_OSX && SELECT_USE_CFSOCKET]:
15295 New variable.
15296 (mac_try_close_socket) [MAC_OSX]: New function.
15297 [MAC_OSX] (sys_select) [SELECT_USE_CFSOCKET]:
15298 Update cfsockets_for_select. Replace invalid CFRunLoop source.
15299
15300 * sysdep.c (emacs_close) [MAC_OSX && HAVE_CARBON]:
15301 Use mac_try_close_socket.
15302
153032007-12-05 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
15304
15305 * unexmacosx.c (unrelocate): New argument BASE. Use it instead of
15306 reloc_base.
15307 (copy_dysymtab): Compute relocation base here.
15308 (rebase_reloc_address) [__ppc64__]: New function.
15309 (copy_dysymtab) [__ppc64__]: Use it if relocation base needs to be
15310 changed.
15311
153122007-12-05 Jason Rumney <jasonr@gnu.org>
15313
15314 * w32proc.c (sys_spawnve): Quote args with wildcards.
15315
153162007-12-05 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
15317
15318 * unexmacosx.c (copy_data_segment): Also copy __gcc_except_tab and
15319 __objc_* sections.
15320 (unrelocate) [_LP64]: Set relocation base to address of data segment.
15321
153222007-12-05 Michael Albinus <michael.albinus@gmx.de>
15323
15324 * dbusbind.c (xd_read_message): Return value is a Lisp_Object.
15325 Move check for Vdbus_registered_functions_table to
15326 xd_read_queued_messages.
15327 (xd_read_queued_messages): Protect xd_read_message calls by
15328 internal_condition_case_1.
15329
153302007-12-04 Michael Albinus <michael.albinus@gmx.de>
15331
15332 * dbusbind.c (QCdbus_system_bus, QCdbus_session_bus): Rename from
15333 Qdbus_system_bus and Qdbus_session_bus, respectively.
15334 (Vdbus_intern_symbols): Remove.
15335 (Vdbus_registered_functions_table): New hash table.
15336 (XD_SYMBOL_INTERN_SYMBOL): Remove.
15337 (xd_read_message, Fdbus_register_signal, Fdbus_unregister_signal):
15338 Rewrite in order to manage registered functions by hash table
15339 Vdbus_registered_functions_table.
15340
153412007-12-03 Jan Djärv <jan.h.d@swipnet.se>
15342
15343 * xterm.c: Update URL to Window Manager Specification in comment.
15344
153452007-12-02 Michael Albinus <michael.albinus@gmx.de>
15346
15347 * config.in (HAVE_DBUS): Add.
15348
15349 * Makefile.in (HAVE_DBUS): Add D-Bus definitions if defined.
15350 (ALL_CFLAGS): Add ${DBUS_CFLAGS}.
15351 (obj): Add $(DBUS_OBJ).
15352 (LIBES): Add $(DBUS_LIBS).
15353 (dbusbind.o): New target.
15354
15355 * dbusbind.c: New file.
15356
15357 * emacs.c (main): Call syms_of_dbusbind when HAVE_DBUS is defined.
15358
15359 * keyboard.c: All D-Bus related code is wrapped by "#ifdef HAVE_DBUS".
15360 (Qdbus_event): New Lisp symbol.
15361 (kbd_buffer_get_event, make_lispy_event): Handle DBUS_EVENT.
15362 (gobble_input): Call xd_read_queued_messages, reading D-Bus messages.
b97439ce 15363 (keys_of_keyboard): Define dbus-event.
aac0c6e3
MR
15364
15365 * termhooks.h (event_kind): Add DBUS_EVENT when HAVE_DBUS is defined.
15366
153672007-12-01 Richard Stallman <rms@gnu.org>
15368
15369 * search.c (syms_of_search) <inhibit-changing-match-data>: Doc fix.
15370
153712007-11-30 Jason Rumney <jasonr@gnu.org>
15372
15373 * w32console.c (w32con_ins_del_lines, scroll_line): Clip to window.
15374 (w32con_reset_terminal_modes): Clear screen buffer.
15375 (w32_face_attributes): Don't use color indexes that are out of range.
15376 Only reverse the default colors.
15377
15378 * xfaces.c (map_tty_color, tty_color_name): Remove special case for
15379 WINDOWSNT.
15380
15381 * w32console.c, w32term.h (vga_stdcolor_name): Remove.
15382
153832007-11-29 Jason Rumney <jasonr@gnu.org>
15384
15385 * w32console.c: Leave HAVE_WINDOW_SYSTEM defined.
15386 (w32_face_attributes): Use Vtty_defined_color_alist to determine
15387 if the terminal colors are initialized.
15388 (unspecified_fg, unspecified_bg): Remove unused declarations.
15389
153902007-11-29 Andreas Schwab <schwab@suse.de>
15391
15392 * keyboard.c (apply_modifiers): Fix typo.
15393
153942007-11-29 Richard Stallman <rms@gnu.org>
15395
15396 * keymap.c (Fcurrent_local_map): Doc fix.
15397
153982007-11-28 Petr Salinger <Petr.Salinger@seznam.cz> (tiny change)
15399
15400 * s/gnu-kfreebsd.h: New file.
15401
154022007-11-28 Stefan Monnier <monnier@iro.umontreal.ca>
15403
15404 * buffer.c (Fget_buffer_create, Fmake_indirect_buffer):
15405 Don't cast redundantly.
15406
15407 * keyboard.c (KEY_TO_CHAR): New macro.
15408 (parse_modifiers, apply_modifiers): Accept integer arguments.
15409 (read_key_sequence): Use them to unify the "shift->unshift" mapping
15410 for chars and symbol keys.
15411 After doing such remapping, apply function-key-map again.
15412
154132007-11-27 Dan Nicolaescu <dann@ics.uci.edu>
15414
15415 * Makefile.in (SOME_MACHINE_LISP): Remove VMS files, they are not
15416 compiled anymore.
15417
154182007-11-26 Andreas Schwab <schwab@suse.de>
15419
15420 * process.c (list_processes_1): Fix indentation level of the
15421 command column.
15422
154232007-11-23 Andreas Schwab <schwab@suse.de>
15424
15425 * editfns.c (Fformat): Handle %c specially since it requires the
15426 argument to be of type int.
15427
154282007-11-23 Markus Triska <markus.triska@gmx.at>
15429
15430 * emacs.c (main): Call init_editfns before init_process, since
15431 init_process sets Vprocess_connection_type depending on OS release.
15432
154332007-11-22 Stefan Monnier <monnier@iro.umontreal.ca>
15434
15435 * data.c (do_symval_forwarding): Use same code as in find_symbol_value.
15436 (find_symbol_value): Use do_symval_forwarding.
15437
15438 * data.c (set_internal): Set the value in the `cons-cell' (for
15439 Buffer_Local_values) not only for frame-local variables.
15440
154412007-11-22 Andreas Schwab <schwab@suse.de>
15442
15443 * data.c (Fnumber_to_string): Add cast when passing EMACS_INT
15444 values to sprintf.
15445 * keymap.c (Fsingle_key_description): Likewise.
15446 * print.c (print_object): Likewise.
15447
154482007-11-22 Jan Djärv <jan.h.d@swipnet.se>
15449
15450 * gtkutil.c (update_frame_tool_bar): Don't call x-gtk-map-stock if
15451 file for image is nil.
15452
154532007-11-22 Dan Nicolaescu <dann@ics.uci.edu>
15454
15455 * term.c: Include stdarg.h.
15456 (fatal): Implement using varargs.
15457 * lisp.h (fatal): Add argument types. (Restore 2005-09-30 change).
15458
154592007-11-21 Stefan Monnier <monnier@iro.umontreal.ca>
15460
15461 * lisp.h (struct Lisp_Buffer_Objfwd): Add a `slottype' field.
15462 * data.c (store_symval_forwarding): Get type from buffer_objfwd.
15463 Update call to buffer_slot_type_mismatch.
15464 * buffer.h (buffer_local_types, PER_BUFFER_TYPE): Remove.
15465 (buffer_slot_type_mismatch): Update.
15466 * buffer.c (buffer_local_types): Remove.
15467 (buffer_slot_type_mismatch): Get the symbol and type as arguments.
15468 (defvar_per_buffer): Set the type in the buffer_objfwd.
15469
154702007-11-21 Jason Rumney <jasonr@gnu.org>
15471
15472 * w32bdf.c (w32_init_bdf_font, w32_BDF_to_x_font):
15473 CreateFileMapping returns NULL on failure.
15474
154752007-11-21 Stefan Monnier <monnier@iro.umontreal.ca>
15476
15477 * search.c (Fset_match_data): Remove the `evaporate' feature.
15478 (unwind_set_match_data): Don't use the `evaporate' feature.
15479
154802007-11-21 Jason Rumney <jasonr@gnu.org>
15481
15482 * dispnew.c (init_display) [WINDOWSNT]: Hardcode terminal_type.
15483
15484 * w32console.c (w32con_write_glyphs): Remove unused variables.
15485
154862007-11-20 Dan Nicolaescu <dann@ics.uci.edu>
15487
15488 * macterm.c (mac_term_init): Call add_keyboard_wait_descriptor.
15489
15490 * s/darwin.h (MULTI_KBOARD): Remove.
15491
15492 * macfns.c (x_create_tip_frame, Fx_create_frame)
15493 (x_create_tip_frame): Don't deal with MULTI_KBOARD.
15494
154952007-11-19 Stefan Monnier <monnier@iro.umontreal.ca>
15496
15497 * buffer.c (Fbuffer_local_value): Remove redundant test.
15498 (swap_out_buffer_local_variables): Swap out binding in `buffer' rather
15499 than in `current-buffer' to match the comment.
15500 Do the swap using swap_in_global_binding.
15501
15502 * data.c (store_symval_forwarding, set_internal):
15503 * eval.c (specbind): Remove dead code.
15504
15505 * coding.c (detect_coding, Fupdate_coding_systems_internal):
15506 * fns.c (Fmd5): Use find_symbol_value rather than SYMBOL_VALUE
15507 Since we do not want to see internal Lisp_*fwd objects here.
15508
155092007-11-18 Jan Djärv <jan.h.d@swipnet.se>
15510
15511 * sysdep.c (init_system_name): Use getaddrinfo if available.
15512
15513 * xterm.c (x_scroll_bar_set_handle, x_scroll_bar_handle_click)
15514 (x_scroll_bar_note_movement): start, end, with, height in struct
15515 scroll_bar are integers and not Lisp_Object, so remove XINT for them.
15516
155172007-11-17 Dan Nicolaescu <dann@ics.uci.edu>
15518
15519 * puresize.h (BASE_PURESIZE): Increase to 1190000.
15520
155212007-11-16 Stefan Monnier <monnier@iro.umontreal.ca>
15522
15523 * buffer.h (struct buffer): Move `undo_list' back to before `name'.
15524 This undoes Richard's change of 14-Oct-2002.
15525
15526 * alloc.c (allocate_other_vector):
15527 * lisp.h (allocate_other_vector): Remove.
15528
15529 * window.c (struct save_window_data): Move non-lisp data to the end
15530 and make it `int' rather than Lisp_Object.
15531 (Fcurrent_window_configuration): Use ALLOCATE_PSEUDOVECTOR.
15532 Done wrap/unwrap integer values.
15533 (Fset_window_configuration, compare_window_configurations):
15534 Update use of fields to their new types.
15535
15536 * xterm.h (struct scroll_bar): Only use Lisp_Object for lisp data.
15537 Turn integer fields into `int'. Merge x_window_low and x_window_high.
15538 (SCROLL_BAR_PACK, SCROLL_BAR_UNPACK, SCROLL_BAR_X_WINDOW)
15539 (SET_SCROLL_BAR_X_WINDOW): Remove.
15540 (SCROLL_BAR_X_WIDGET, SET_SCROLL_BAR_X_WIDGET):
15541 Access the new x_window field directly.
15542 * xterm.c (x_scroll_bar_create): Use a pseudovector.
15543 Don't wrap/unwrap integers into Lisp_Objects.
15544 (XTset_vertical_scroll_bar, x_scroll_bar_handle_click)
15545 (x_scroll_bar_report_motion):
15546 Don't wrap/unwrap integers into Lisp_Objects.
15547 (x_term_init): Use SDATA.
15548 (x_window_to_scroll_bar, x_create_toolkit_scroll_bar)
15549 (x_scroll_bar_set_handle, x_scroll_bar_remove)
15550 (XTset_vertical_scroll_bar, x_scroll_bar_expose)
15551 (x_scroll_bar_report_motion, x_scroll_bar_clear):
15552 * xfns.c (x_set_background_color):
15553 * gtkutil.c (xg_create_scroll_bar, xg_set_toolkit_scroll_bar_thumb):
15554 Access the new x_window field directly.
15555
15556 * alloc.c (ALLOCATE_PSEUDOVECTOR): Move to lisp.h.
15557 (allocate_pseudovector): Make non-static.
15558
15559 * lisp.h (enum pvec_type): New tag PVEC_OTHER.
15560 (allocate_pseudovector): Declare.
15561 (ALLOCATE_PSEUDOVECTOR): Move from alloc.c.
15562
155632007-11-15 Andreas Schwab <schwab@suse.de>
15564
15565 * editfns.c (Fformat): Correctly format EMACS_INT values.
15566 Also take precision into account when formatting an integer.
15567
15568 * keyboard.c (Fevent_symbol_parse_modifiers): Fix declaration.
15569
155702007-11-15 Stefan Monnier <monnier@iro.umontreal.ca>
15571
15572 * keyboard.c (Fevent_symbol_parse_modifiers): New function.
15573 (syms_of_keyboard): Defsubr it.
15574
15575 * data.c (swap_in_global_binding): Fix longstanding bug where
15576 store_symval_forwarding was not called with the right second argument,
15577 thus causing objfwd-ing from being dropped.
15578
155792007-11-14 Juanma Barranquero <lekktu@gmail.com>
15580
15581 * macfns.c (Fx_create_frame, Fx_display_pixel_width)
15582 (Fx_display_pixel_height, Fx_display_planes)
15583 (Fx_display_color_cells, Fx_server_max_request_size)
15584 (Fx_server_vendor, Fx_server_version, Fx_display_backing_store)
15585 (Fx_display_visual_class, Fx_display_save_under):
15586 * w32fns.c (Fx_create_frame, Fx_display_pixel_width)
15587 (Fx_display_pixel_height, Fx_display_planes)
15588 (Fx_display_color_cells, Fx_server_max_request_size)
15589 (Fx_server_vendor, Fx_server_version, Fx_display_screens)
15590 (Fx_display_mm_height, Fx_display_mm_width)
15591 (Fx_display_backing_store, Fx_display_visual_class)
15592 (Fw32_select_font, Fx_display_save_under):
15593 * xfns.c (Fx_create_frame, Fx_display_pixel_width)
15594 (Fx_display_pixel_height, Fx_display_planes)
15595 (Fx_display_color_cells, Fx_server_max_request_size)
15596 (Fx_server_vendor, Fx_server_version, Fx_display_backing_store)
15597 (Fx_display_save_under): Fix typos in docstrings.
15598
155992007-11-14 Juanma Barranquero <lekktu@gmail.com>
15600
15601 * w32fns.c (Fw32_registered_hot_keys): Don't return the nil values
15602 corresponding to deleted entries; they are an implementation detail.
15603 (gray_bitmap_width, gray_bitmap_height, gray_bitmap_bits):
15604 Remove variables.
15605 (w32_pass_extra_mouse_buttons_to_system, w32_strict_fontnames)
15606 (w32_pass_multimedia_buttons_to_system, w32_strict_painting)
15607 (Vw32_charset_info_alist, w32_to_x_color, w32_init_class)
15608 (w32_createscrollbar, w32_createwindow, my_post_msg, w32_get_modifiers)
15609 (w32_grabbed_keys, cancel_all_deferred_msgs): Make static.
15610 (Fw32_define_rgb_color, Fw32_load_color_file)
15611 (syms_of_w32fns) <w32-pass-multimedia-buttons-to-system>:
15612 Fix typos in docstrings.
15613 (Fx_server_version): Reflow docstring.
15614 (Fw32_shell_execute): Doc fixes.
15615
156162007-11-13 Juanma Barranquero <lekktu@gmail.com>
15617
15618 * w32fns.c (Fw32_register_hot_key): Don't try to register hot key
15619 if w32_parse_hot_key returned nil.
15620
156212007-11-10 Stefan Monnier <monnier@iro.umontreal.ca>
15622
15623 * xdisp.c (load_overlay_strings): Fix copy&paste typo.
15624
156252007-11-09 Jason Rumney <jasonr@gnu.org>
d6c952f8 15626
aac0c6e3
MR
15627 * s/ms-w32.c (USE_TOOLKIT_SCROLL_BARS): Define.
15628
15629 * w32term.c (w32_scroll_bar_handle_click): Use SCROLL_BAR_CLICK_EVENT.
15630
15631 * keyboard.c (discard_mouse_events, make_lispy_event) [WINDOWSNT]:
15632 Remove W32_SCROLL_BAR_CLICK_EVENT.
15633
15634 * termhooks.h (enum event_kind) [WINDOWSNT]: Likewise.
15635 Add MULTIMEDIA_KEY_EVENT.
15636
15637 * keyboard.c (lispy_function_keys) [WINDOWSNT]: Add more keys.
15638 (lispy_multimedia_keys) [WINDOWSNT]: New array.
15639 (make_lispy_event) [WINDOWSNT]: Use it to translate
15640 MULTIMEDIA_KEY_EVENT.
15641
15642 * w32term.h (WM_APPCOMMAND): Define if not already.
15643 (GET_APPCOMMAND_LPARAM): Likewise.
15644
15645 * w32term.c (w32_read_socket): Generate MULTIMEDIA_KEY_EVENT from
15646 WM_APPCOMMAND.
15647
15648 * w32fns.c (w32_pass_multimedia_buttons_to_system): New user option.
15649 (syms_of_w32fns): Export and initialize it.
15650 (w32_wnd_proc): Pass WM_APPCOMMAND on to w32_read_socket.
15651
156522007-11-09 Chong Yidong <cyd@stupidchicken.com>
15653
15654 * dispextern.h (struct it): Don't define OVERLAY_STRING_CHUNK_SIZE
15655 twice.
15656
15657 * xdisp.c (handle_face_prop): Fix last change.
15658
156592007-11-09 Richard Stallman <rms@gnu.org>
15660
15661 * xdisp.c (handle_face_prop): Test for strings that came from overlays,
15662 not just for after-strings and before-strings.
15663 Call face_for_overlay_string and pass the overlay to it.
15664 (handle_display_prop): Determine whether property came from an overlay.
15665 Pass OVERLAY arg to handle_single_display_spec.
15666 (handle_single_display_spec): New arg OVERLAY sets it->from_overlay.
15667 (load_overlay_strings): Fill in it->string_overlays.
15668 (get_overlay_strings_1, push_it, pop_it): Handle it->from_overlays.
15669
15670 * xfaces.c (face_for_overlay_string): Function renamed from
15671 face_at_buffer_position_no_overlays, and add arg OVERLAY.
15672
15673 * dispextern.h (struct it): New elt string_overlays.
15674 New elt from_overlay, also in stack.
15675 Rearrange a few elements.
15676 (face_for_overlay_string): Decl renamed from
15677 face_at_buffer_position_no_overlays, and add argument.
15678
156792007-11-09 Richard Stallman <rms@gnu.org>
15680
15681 * xdisp.c (handle_face_prop): Use face_at_buffer_position_no_overlays
15682 to get the base face for an overlay string.
15683
15684 * dispextern.h (face_at_buffer_position_no_overlays): Add decl.
15685
15686 * xfaces.c (face_at_buffer_position_no_overlays): New function.
15687
15688 * xdisp.c (handle_stop): Move some code out of loop.
15689
156902007-11-09 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
15691
15692 * macfns.c [USE_ATSUI] (Fmac_atsu_font_face_attributes):
15693 Fix conversion from Lisp object to ATSUFontID.
15694
156952007-11-09 Jason Rumney <jasonr@gnu.org>
15696
15697 * xdisp.c (Fformat_mode_line): Do nothing when noninteractive.
15698
156992007-11-09 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
15700
15701 * unexmacosx.c (unexec_regions_recorder, unexec_regions_merge):
15702 Don't assume regions are aligned to page boundary.
15703 (print_load_command_name): Add LC_UUID if defined.
15704
157052007-11-09 Richard Stallman <rms@gnu.org>
15706
15707 * emacs.c (syms_of_emacs) <installation-directory>: Reflow docstring.
15708
157092007-11-07 Jason Rumney <jasonr@gnu.org>
15710
15711 * s/windows95.h: Remove.
15712
157132007-11-06 Jan Djärv <jan.h.d@swipnet.se>
15714
15715 * gtkutil.c (xg_tool_bar_menu_proxy): Handle GTK_IMAGE_ICON_NAME and
15716 abort with a message on unhandled store_type values.
15717
157182007-11-01 Jan Djärv <jan.h.d@swipnet.se>
15719
15720 * xterm.c, xfns.c, xselect.c, xterm.h, s/msdos.h, s/sco4.h, s/sco5.h:
15721 Remove HAVE_X11R5 and HAVE_X11R4.
15722
157232007-11-01 Dan Nicolaescu <dann@ics.uci.edu>
15724
15725 * Makefile.in: Remove references to sunfns.c and sunfns.o.
15726
157272007-11-01 Johan Bockgård <bojohan@gnu.org>
15728
15729 * macterm.c, w32term.c, xterm.c (x_draw_stretch_glyph_string):
15730 Don't set s->stippled_p here, since it has already been set by
15731 x_set_glyph_string_gc from x_draw_glyph_string.
15732
157332007-11-01 Dan Nicolaescu <dann@ics.uci.edu>
15734
15735 * sunfns.c: Remove file.
15736
15737 * m/sun386.h:
15738 * m/sun2.h:
15739 * m/sparc.h: Remove Sun windows code.
15740
157412007-10-31 Stefan Monnier <monnier@iro.umontreal.ca>
15742
15743 * keyboard.c (syms_of_keyboard): Initialize the initial_kboard.
15744 (init_keyboard): Set current_kboard's window-system to nil.
15745 (tty_read_avail_input): Typo.
15746 * frame.c (make_initial_frame): Don't initialize the initial_kboard.
15747
157482007-10-31 Dan Nicolaescu <dann@ics.uci.edu>
15749
15750 * s/usg5-4.h:
15751 * s/usg5-3.h:
15752 * s/ptx.h:
15753 * m/is386.h:
15754 * m/ibmps2-aix.h:
15755 * Makefile.in: Remove all mentions of X10.
15756
15757 * dispnew.c (syms_of_display): Don't mention version 10.
15758
157592007-10-28 Juanma Barranquero <lekktu@gmail.com>
15760
15761 * makefile.w32-in (OBJ1): Remove abbrev.$(O).
15762 ($(BLD)/abbrev.$(O)): Remove.
15763
157642007-10-28 Stefan Monnier <monnier@iro.umontreal.ca>
15765
15766 Rewrite abbrev.c in Elisp.
15767 * image.c (Qcount): Don't declare as extern.
15768 (syms_of_image): Initialize and staticpro `Qcount'.
15769 * puresize.h (BASE_PURESIZE): Increase for the new abbrev.el functions.
15770 * emacs.c (main): Don't call syms_of_abbrev.
15771 * Makefile.in (obj): Remove abbrev.o.
15772 (abbrev.o): Remove.
15773 * abbrev.c: Remove.
15774
157752007-10-26 Martin Rudalics <rudalics@gmx.at>
15776
15777 * window.c (window_min_size_2): Don't count header-line.
15778
157792007-10-26 Dan Nicolaescu <dann@ics.uci.edu>
15780
15781 * frame.h (struct frame): Move all bit fields after the first bit
15782 field to take advantage of the available space. Group all the
15783 chars together to reduce wasted space due to padding.
15784
157852007-10-26 Juanma Barranquero <lekktu@gmail.com>
15786
15787 * minibuf.c (Fread_minibuffer, Feval_minibuffer): Reflow docstrings.
15788
15789 * alloc.c (spare_memory, stack_copy, stack_copy_size, ignore_warnings)
15790 (Vdead, dont_register_blocks, staticvec, staticidx, interval_block)
15791 (n_interval_blocks, init_strings, check_string_bytes, check_sblock)
15792 (init_float, free_float, n_cons_blocks, init_cons, all_vectors)
15793 (n_vectors, symbol_block, symbol_block_index, symbol_free_list)
15794 (n_symbol_blocks, init_symbol, marker_block, marker_free_list)
15795 (n_marker_blocks, init_marker, valid_pointer_p, make_pure_float)
15796 (last_marked, mark_object_loop_halt): Make static.
15797
15798 * frame.c (syms_of_frame) <delete-frame-functions>:
15799 Fix typo in docstring.
15800
158012007-10-25 Juanma Barranquero <lekktu@gmail.com>
15802
15803 * w32.c (init_environment): Fix tiny memory leak.
15804 (w32_get_resource): Remove unused variable `ok'.
15805
158062007-10-25 Stefan Monnier <monnier@iro.umontreal.ca>
15807
15808 Make `window-system' into a keyboard-local variable (rather than
15809 frame-local as done originally by multi-tty).
15810
15811 * keyboard.h (struct kboard): Add Vwindow_system.
15812 * keyboard.c (init_kboard): Set a default for Vwindow_system.
15813 (mark_kboards): Mark Vwindow_system.
15814
15815 * dispnew.c (syms_of_display) <window-system>: Declare terminal-local.
15816 (init_display): Don't set the obsolete `window-system' frame-param.
15817
15818 * xterm.c (x_term_init):
15819 * w32term.c (w32_create_terminal):
15820 * term.c (init_tty): Set Vwindow_system.
15821 * macterm.c (mac_create_terminal): Set a keyboard (missing piece of the
15822 multi-tty merge maybe?), copied from w32term.c. Set Vwindow_system.
15823
15824 * xfns.c (Fx_create_frame, x_create_tip_frame):
15825 * w32fns.c (Fx_create_frame, x_create_tip_frame):
15826 * macfns.c (Fx_create_frame):
15827 Don't set the obsolete `window-system' frame-param.
15828
15829 * frame.h (Qwindow_system): Remove.
15830 * frame.c (Qwindow_system): Remove. In `syms_of_frame' as well.
15831 (Fmake_terminal_frame): Don't set obsolete `window-system' frame-param.
15832
158332007-10-24 Richard Stallman <rms@gnu.org>
15834
15835 * frame.c (x_figure_window_size): For fullscreen case,
15836 set USPosition | PPosition without clobbering rest of window_prompting.
15837
15838 * keyboard.c (Fcurrent_idle_time): Doc fix.
15839
15840 * print.c (Fwith_output_to_temp_buffer): Doc fix.
15841
158422007-10-23 Stefan Monnier <monnier@iro.umontreal.ca>
15843
15844 * process.c (unwind_request_sigio): Only define if __ultrix__.
15845
15846 * callproc.c (child_setup): Remove spurious *.
15847
15848 * lisp.h (Fget_text_property): Declare.
15849 (have_menus_p): Declare it here rather than in sys-dep header files.
15850 * macterm.h (have_menus_p):
15851 * msdos.h (have_menus_p):
15852 * xterm.h (have_menus_p): Remove.
15853
15854 * data.c (Fmake_variable_buffer_local, Fmake_local_variable)
15855 (Fmake_variable_frame_local): Just check the variable's const-ness
15856 rather than checking nil or t.
15857
158582007-10-22 Jason Rumney <jasonr@gnu.org>
15859
15860 * w32fns.c: Include math.h.
15861 (w32_abort): Declaration moved to nt/config.nt.
15862
15863 * s/ms-w32.h (HAVE_STDLIB_H): Define.
15864 (abort): Redefinition moved to nt/config.nt.
15865
15866 * m/windowsnt.h: Remove.
15867
158682007-10-22 Juanma Barranquero <lekktu@gmail.com>
15869
15870 * emacs.c (Fdump_emacs): Fix typo in message.
15871 (syms_of_emacs) <kill-emacs-hook>: Fix typo in docstring.
15872 <installation-directory>: Reflow docstring.
15873
158742007-10-22 Juri Linkov <juri@jurta.org>
15875
15876 * minibuf.c: Allow minibuffer default to be a list of default values.
15877 With empty input use the first element of this list as returned default.
15878 (string_to_object)
15879 (read_minibuf_noninteractive): If defalt is cons, set val to its car.
15880 (read_minibuf): If defalt is cons, set histstring to its car.
15881 (Fread_string): If default_value is cons, set val to its car.
15882 (Fread_buffer): If def is cons, use its car.
15883 (Fcompleting_read): If defalt is cons, set val to its car.
15884
158852007-10-21 Michael Albinus <michael.albinus@gmx.de>
15886
15887 * fileio.c (Fcopy_file): Call file name handler with preserve_uid_gid.
15888
158892007-10-20 Juanma Barranquero <lekktu@gmail.com>
15890
15891 * doc.c (Fdocumentation): Check for advice in all cases.
15892
158932007-10-19 Chong Yidong <cyd@stupidchicken.com>
15894
15895 * Makefile.in [HAVE_LIBRESOLV]: Add -lresolv to linker flags.
15896
158972007-10-19 Richard Stallman <rms@gnu.org>
15898
15899 * doc.c (Fdocumentation): Check for and handle an advised function.
15900
159012007-10-19 Juanma Barranquero <lekktu@gmail.com>
15902
15903 * process.c (Fset_process_filter): Doc fix.
15904
159052007-10-18 Stefan Monnier <monnier@iro.umontreal.ca>
15906
15907 * keyboard.c (read_key_sequence): Undo a change introduced by multi-tty
15908 which caused key-translation-map to applied repeatedly (thus breaking
15909 double-mode).
15910
159112007-10-17 Stefan Monnier <monnier@iro.umontreal.ca>
15912
15913 * xselect.c (x_own_selection, x_handle_selection_clear)
15914 (x_clear_frame_selections):
15915 * w32menu.c (list_of_panes, list_of_items):
15916 * w32fns.c (w32_color_map_lookup, Fx_create_frame, Fx_display_list):
15917 * textprop.c (validate_plist, interval_has_all_properties)
15918 (interval_has_some_properties, interval_has_some_properties_list)
15919 (add_properties, text_property_list):
15920 * process.c (Fget_buffer_process, list_processes_1, status_notify):
15921 * minibuf.c (Fassoc_string):
15922 * macselect.c (x_own_selection, x_clear_frame_selections)
15923 (Fx_disown_selection_internal):
15924 * keymap.c (Fcommand_remapping, where_is_internal, describe_map_tree):
15925 Use CONSP rather than !NILP and XC[AD]R rather than Fc[ad]r.
15926
159272007-10-17 Chong Yidong <cyd@stupidchicken.com>
15928
15929 * process.c: Link to libs for calling res_init() if available.
15930 (Fmake_network_process): Call res_init() before getaddrinfo or
15931 gethostbyname, if possible.
15932
159332007-10-17 Stefan Monnier <monnier@iro.umontreal.ca>
15934
15935 * lread.c (read1): Set pvectype for char_tables.
15936
15937 * lisp.h (XMISCANY, XMARKER, XINTFWD, XBOOLFWD, XOBJFWD, XOVERLAY)
15938 (XBUFFER_OBJFWD, XBUFFER_LOCAL_VALUE, XKBOARD_OBJFWD, XSAVE_VALUE):
15939 Add type checks.
15940 (SOME_BUFFER_LOCAL_VALUEP, GC_SOME_BUFFER_LOCAL_VALUEP): Remove.
15941
15942 * alloc.c (free_misc): Use XMISCTYPE.
15943 (live_misc_p, gc_sweep): Use Lisp_Misc_Any.
15944
159452007-10-17 Glenn Morris <rgm@gnu.org>
15946
15947 * minibuf.c (Qcompletion_ignore_case): New Lisp_Object.
15948 (syms_of_minibuf): Add Qcompletion_ignore_case.
15949 * dired.c (Qcompletion_ignore_case): Change to external.
15950 (syms_of_dired) [VMS]: Remove Qcompletion_ignore_case.
15951 * fileio.c (Qcompletion_ignore_case): New external Lisp_Object.
15952 (Fread_file_name): Use it rather than intern'ing.
15953
15954 * coding.c (Qcompletion_ignore_case): New external Lisp_Object.
15955 (Fread_coding_system): Ignore case of user input.
15956
159572007-10-16 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
15958
15959 * xdisp.c (handle_display_prop): Ignore display specs after
15960 replacing one when string text is being replaced.
15961 (handle_single_display_spec): Pretend as if characters with display
15962 property haven't been consumed only when buffer text is being replaced.
15963
159642007-10-16 Stefan Monnier <monnier@iro.umontreal.ca>
15965
15966 * xfns.c (Fx_create_frame, Fx_display_list):
15967 * window.c (window_fixed_size_p, enlarge_window)
15968 (shrink_window_lowest_first):
15969 * macterm.c (init_font_name_table):
15970 * macfns.c (Fx_create_frame, Fx_display_list):
15971 * lread.c (close_load_descs):
15972 * keyboard.c (read_char_x_menu_prompt):
15973 * fns.c (Fmember, Fmemql, Fdelete, Fset_char_table_parent):
15974 * coding.c (code_convert_region_unwind): Test the type of an object
15975 rather than just !NILP before extracting data from it.
15976
15977 * alloc.c (Fpurecopy): Set the pvec tag on pseudo vectors.
15978
15979 * lisp.h (enum Lisp_Misc_Type): Del Lisp_Misc_Some_Buffer_Local_Value.
15980 (XMISCANY): New macro.
15981 (XMISCTYPE): Use it.
15982 (struct Lisp_Misc_Any): New type.
15983 (union Lisp_Misc): Use it.
15984 (struct Lisp_Buffer_Local_Value): Add `local_if_set' bit.
15985 * data.c (Fboundp, store_symval_forwarding, swap_in_global_binding)
15986 (find_symbol_value, set_internal, default_value, Fset_default)
15987 (Fmake_variable_buffer_local, Fmake_local_variable)
15988 (Fkill_local_variable, Fmake_variable_frame_local, Flocal_variable_p)
15989 (Flocal_variable_if_set_p, Fvariable_binding_locus):
15990 The SOME_BUFFER_LOCAL_VALUEP distinction is replaced by local_if_set.
15991 * alloc.c (allocate_buffer): Set the size and tag.
15992 (allocate_misc, mark_maybe_object, mark_object, survives_gc_p):
15993 Use XMISCANY.
15994 (die): Follow the GNU convention for error messages.
15995 * print.c (print_object): SOME_BUFFER_LOCAL_VALUEP -> local_if_set.
15996 * buffer.c (Fget_buffer_create, Fmake_indirect_buffer): Don't set the
15997 tag any more.
15998 (set_buffer_internal_1):
15999 * frame.c (store_frame_param):
16000 * eval.c (specbind):
16001 * xdisp.c (select_frame_for_redisplay): Drop SOME_BUFFER_LOCAL_VALUEP.
16002
16003 * doc.c (Fsnarf_documentation): Simplify.
16004
160052007-10-14 Juanma Barranquero <lekktu@gmail.com>
16006
16007 * w32term.c (w32_font_is_double_byte, my_create_scrollbar): Make static.
16008 (syms_of_w32term) <w32-enable-unicode-output>: Fix typo in docstring.
16009
160102007-10-14 Stefan Monnier <monnier@iro.umontreal.ca>
16011
16012 * buffer.c (Fmake_indirect_buffer): Set the buffer's tag.
16013
160142007-10-14 Juanma Barranquero <lekktu@gmail.com>
16015
16016 * eval.c (do_autoload): Don't save autoloads.
16017
16018 * data.c (Ffset): Save autoload of the function being set.
16019
160202007-10-07 John Paul Wallington <jpw@pobox.com>
16021
16022 * xfns.c (x_create_tip_frame): Set the `display-type' frame
16023 parameter before setting up faces.
16024
160252007-10-13 Eli Zaretskii <eliz@gnu.org>
16026
16027 * ccl.c (Fregister_code_conversion_map):
16028 * keyboard.c (append_tool_bar_item): Reformat last change.
16029
16030 * lisp.h (eabs): Rename from `abs'. All callers changed.
16031
160322007-10-05 Dmitry Antipov <dmantipov@yandex.ru>
16033
16034 * buffer.c (add_overlay_mod_hooklist):
16035 * ccl.c (Fregister_ccl_program, Fregister_code_conversion_map):
16036 * fontset.c (make_fontset):
16037 * keyboard.c (GROW_RAW_KEYBUF, menu_bar_items, menu_bar_item)
16038 (append_tool_bar_item):
16039 * macmenu.c (grow_menu_items):
16040 * w32menu.c (grow_menu_items):
16041 * xmenu.c (grow_menu_items): Use larger_vector.
16042
160432007-10-13 Eli Zaretskii <eliz@gnu.org>
16044
16045 * msdos.c (dos_rawgetc): Undo last change (there's no ``leaving
16046 selected frame'' on MSDOS).
16047
160482007-10-12 Martin Rudalics <rudalics@gmx.at>
16049
16050 * frame.c (Qexplicit_name): New variable.
16051 (x_report_frame_params): Report it in parameter alist.
16052 (syms_of_frame): Intern and staticpro it.
16053
160542007-10-10 Patrick Mahan <mahan@mahan.org> (tiny change)
16055
16056 * macfns.c (x_create_tip_frame): Set terminal for frame.
16057
160582007-10-10 Stefan Monnier <monnier@iro.umontreal.ca>
16059
16060 * frame.c (Qenvironment): Remove.
16061 (syms_of_frame) <Qenvironment>: Don't initialize.
16062 (Fdelete_frame): Don't treat the `environment' param specially.
16063 * frame.h (Qenvironment): Don't declare.
16064 * callproc.c (set_initial_environment): Don't set unused frame param.
16065
16066 * frame.c (Fframe_with_environment): Remove.
16067 (syms_of_frame) <Sframe_with_environment>: Don't declare.
16068
16069 * lisp.h (Fframe_with_environment): Don't declare.
16070
160712007-10-10 Juanma Barranquero <lekktu@gmail.com>
16072
16073 * indent.c (indent_tabs_mode, last_known_column)
16074 (last_known_column_modified): Make static.
16075 (syms_of_indent) <indent-tabs-mode>: Remove redundant info in docstring.
16076
160772007-10-10 Katsumi Yamaoka <yamaoka@jpl.org>
16078
16079 * puresize.h (BASE_PURESIZE): Increase to 1170000.
16080
160812007-10-09 Jason Rumney <jasonr@gnu.org>
16082
16083 * w32term.c (x_set_window_size): Disable code that attempts to tell
16084 Lisp code about a size change before it actually happens.
16085
160862007-10-09 Richard Stallman <rms@gnu.org>
16087
16088 * xdisp.c (handle_invisible_prop): After setting up an ellipsis,
16089 return HANDLED_RETURN.
16090
160912007-10-08 Martin Rudalics <rudalics@gmx.at>
16092
16093 * keyboard.c (kbd_buffer_get_event): Break loop waiting for input
16094 when there's an unread command event.
16095
16096 * frame.c (focus_follows_mouse): Move here from frame.el to allow
16097 window autoselection act appropriately when leaving selected frame.
16098 (syms_of_frame): Initialize focus_follows_mouse.
16099 * frame.h (focus_follows_mouse): Extern it.
16100 * macterm.c (XTread_socket): When focus_follows_mouse is nil
16101 make SELECT_WINDOW_EVENT only if we don't leave the selected frame.
16102 * msdos.c (dos_rawgetc): Likewise.
16103 * w32term.c (w32_read_socket): Likewise.
16104 * xterm.c (handle_one_xevent): Likewise.
16105 * xdisp.c (syms_of_xdisp): In doc-string of
16106 mouse-autoselect-window mention focus-follows-mouse.
16107
161082007-10-08 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
16109
16110 * macterm.c (mac_load_query_font): Fix missing return value.
16111 [USE_CG_DRAWING] (mac_define_fringe_bitmap, mac_destroy_fringe_bitmap):
16112 Add BLOCK_INPUT.
16113
161142007-10-08 Richard Stallman <rms@gnu.org>
16115
16116 * xdisp.c (get_window_cursor_type): Implement documented behavior
16117 for cursor-in-non-selected-windows = t.
16118
161192007-10-08 Jason Rumney <jasonr@gnu.org>
16120
16121 * w32.c (w32_get_resource): Always close registry keys.
16122
161232007-10-08 Jason Rumney <jasonr@gnu.org>
16124
16125 * makefile.w32-in (LIBS): Add COMCTL32.
16126
16127 * w32fns.c (globals_of_w32fns): Init common controls.
16128
161292007-10-08 Richard Stallman <rms@gnu.org>
16130
16131 * image.c (our_memory_buffer): Rename from omfib_buffer.
16132
161332007-10-08 Richard Stallman <rms@gnu.org>
16134
16135 * buffer.c (Foverlays_at): Doc fix.
16136
161372007-10-08 Stefan Monnier <monnier@iro.umontreal.ca>
16138
16139 * fns.c (Fplist_put): Preserve uneven tail data.
16140
161412007-10-08 Peter O'Gorman <bug-gnu-emacs@mlists.thewrittenword.com> (tiny change)
16142
16143 * termhooks.h (enum event_kind): Remove trailing comma.
16144
16145 * frame.h (enum): Remove trailing comma.
16146
161472007-10-08 Dhruva Krishnamurthy <dhruvakm@gmail.com> (tiny change)
16148
16149 * w32proc.c (delete_child): Don't terminate threads of zombies.
16150
161512007-10-08 Martin Rudalics <rudalics@gmx.at>
16152
16153 * keyboard.h (struct kboard): New elt Vlast_repeatable_command.
16154
16155 * keyboard.c (syms_of_keyboard): Set up new Lisp variable
16156 last-repeatable-command.
16157 (init_kboard): Initialize Vlast_repeatable_command.
16158 (command_loop_1): Set it to real_this_command unless that was
16159 bound to an input event.
16160 (mark_kboards): Mark it.
16161
161622007-10-08 Richard Stallman <rms@gnu.org>
16163
16164 * eval.c (condition-case): Doc fix.
16165
161662007-10-08 Masatake YAMATO <jet@gyve.org>
16167
16168 * xfaces.c (tty_supports_face_attributes_p): Fix code
16169 for LFACE_INVERSE_INDEX and LFACE_BACKGROUND_INDEX; code
16170 was copied and not edited.
16171
161722007-10-09 Stefan Monnier <monnier@iro.umontreal.ca>
16173
16174 Add new `input-decode-map' keymap and use it for terminal
16175 escape sequences.
16176 * keyboard.h (struct kboard): Add Vinput_decode_map.
16177 Remove Vlocal_key_translation_map.
16178 * keyboard.c (read_key_sequence): Add support for input-decode-map.
16179 (init_kboard): Init input-decode-map.
16180 Replace local-key-translation-map back with key-translation-map.
16181 (syms_of_keyboard): Declare input-decode-map.
16182 Remove local-key-translation-map. Update docstrings.
16183 (mark_kboards): Mark Vinput_decode_map.
16184 Don't mark Vlocal_key_translation_map.
16185 * keymap.c (Fdescribe_buffer_bindings): Describe input-decode-map.
16186 Replace local-key-translation-map back with key-translation-map.
16187 * term.c (term_get_fkeys_1, CONDITIONAL_REASSIGN):
16188 Bind in input-decode-map rather than function-key-map.
16189
16190 * lisp.h (XSETPSEUDOVECTOR): Don't set the tag anymore.
16191 This was made redundant by the previous introduction of XSETPVECTYPE.
16192
161932007-10-09 Richard Stallman <rms@gnu.org>
16194
16195 * image.c (free_bitmap_record): Rename from Free_Bitmap_Record.
16196
161972007-09-29 Richard Stallman <rms@gnu.org>
16198
16199 * eval.c (internal_condition_case_2, internal_condition_case_1)
16200 (internal_condition_case): Reenable abort if x_catching_errors ()
16201 to see if that really happens and why.
16202
162032007-10-06 Andreas Schwab <schwab@suse.de>
16204
16205 * fileio.c (Fwrite_region): Ignore EINVAL error from fsync.
16206
162072007-10-04 Juanma Barranquero <lekktu@gmail.com>
16208
16209 * image.c (syms_of_image) <image-types>: Fix typo in docstring.
16210
162112007-10-03 Stefan Monnier <monnier@iro.umontreal.ca>
16212
16213 * frame.h (struct frame): Don't try to GC-mark menu_bar_items_used.
16214
162152007-10-02 Stefan Monnier <monnier@iro.umontreal.ca>
16216
16217 * window.h (struct window):
16218 * window.c (struct save_window_data, struct saved_window):
16219 * termhooks.h (struct terminal):
16220 * process.h (struct Lisp_Process):
16221 * frame.h (struct frame):
16222 * buffer.h (struct buffer):
16223 * lisp.h (struct Lisp_Vector, struct Lisp_Char_Table)
16224 (struct Lisp_Bool_Vector, struct Lisp_Subr, struct Lisp_Hash_Table):
16225 The size field of (pseudo)vectors is now unsigned.
16226 (ARRAY_MARK_FLAG, PSEUDOVECTOR_FLAG): Simplify accordingly.
16227
16228 * lisp.h (struct Lisp_Hash_Table): Move non-traced elements at the end.
16229 Turn `count' into an integer.
16230
16231 * fns.c (make_hash_table, hash_put, hash_remove, hash_clear)
16232 (sweep_weak_table, sweep_weak_hash_tables, Fhash_table_count):
16233 * print.c (print_object) <HASH_TABLE_P>: `count' is an int.
16234 * alloc.c (allocate_hash_table): Use ALLOCATE_PSEUDOVECTOR.
16235 (mark_object) <HASH_TABLE_P>: Use mark_vectorlike.
16236
16237 * alloc.c (allocate_pseudovector): New fun.
16238 (ALLOCATE_PSEUDOVECTOR): New macro.
16239 (allocate_window, allocate_terminal, allocate_frame)
16240 (allocate_process): Use it.
16241 (mark_vectorlike): New function.
16242 (mark_object) <FRAMEP, WINDOWP, BOOL_VECTOR_P, VECTORP>: Use it.
16243 (mark_terminals): Use it.
16244 (Fmake_bool_vector, Fmake_char_table, make_sub_char_table)
16245 (Fmake_byte_code): Use XSETPVECTYPE.
16246
16247 * frame.c (Fframe_parameters): Minor simplification.
16248
16249 * insdel.c (adjust_markers_for_insert): Generalize assertion checks.
16250
16251 * marker.c (Fmarker_buffer): Make test for odd case into a failure.
16252
16253 * buffer.c (Fget_buffer_create, init_buffer_once):
16254 * lread.c (defsubr):
16255 * window.c (Fcurrent_window_configuration): Use XSETPVECTYPE.
16256
16257 * lisp.h (ARRAY_MARK_FLAG, PSEUDOVECTOR_FLAG): Don't let them be
16258 defined differently in the m/*.h files.
16259 (XCHAR_TABLE, XBOOL_VECTOR): Add assertion checking.
16260 (XSETPVECTYPE): New macro.
16261 (XSETPSEUDOVECTOR): Use it.
16262
16263 * buffer.c (syms_of_buffer) <local-abbrev-table>: Move from abbrev.c.
16264 (DEFVAR_PER_BUFFER, defvar_per_buffer): Move from lisp.h and lread.c.
16265
16266 * lisp.h (defvar_per_buffer, DEFVAR_PER_BUFFER):
16267 * lread.c (defvar_per_buffer):
16268 * abbrev.c (syms_of_abbrev) <local-abbrev-tabl>: Move to buffer.c.
16269
16270 * window.c (candidate_window_p): Only consider as visible frames that
16271 are on the same terminal.
16272
16273 * m/ibms390x.h (MARKBIT): Remove unused macro.
16274
162752007-10-01 Juanma Barranquero <lekktu@gmail.com>
16276
16277 * lread.c (Fload): Fix typo in docstring.
16278
162792007-10-01 Michaël Cadilhac <michael@cadilhac.name>
16280
16281 * floatfns.c (Fexpt): Manually check for overflows, so that a power
16282 of a non-zero value can't yield zero.
16283
162842007-09-29 Stefan Monnier <monnier@iro.umontreal.ca>
16285
16286 * term.c (term_clear_mouse_face, term_mouse_highlight)
16287 (tty_write_glyphs_with_face): Only define is HAVE_GPM.
16288
16289 * print.c (safe_debug_print): Use XHASH.
16290
16291 * lisp.h (DECL_ALIGN, USE_LSB_TAG): Move logic to before definition of
16292 Lisp elements such as tags.
16293 (XHASH): New macro.
16294 (EQ): Use it.
16295 (SREF, SSET, STRING_COPYIN): Use SDATA.
16296 (VOID_TO_LISP, CVOID_TO_LISP, LISP_TO_VOID, LISP_TO_CVOID): Remove.
16297
16298 * alloc.c (mark_terminal): Remove left-over declaration.
16299 (enum mem_type): Replace all vector subtypes -> MEM_TYPE_VECTORLIKE.
16300 (allocate_vectorlike): Remove type argument. Adjust callers.
16301 (live_vector_p, mark_maybe_pointer, valid_lisp_object_p):
16302 Only handle the one remaining MEM_TYPE_VECTORLIKE.
16303
16304 * alloc.c (MALLOC_BLOCK_INPUT, MALLOC_UNBLOCK_INPUT): New macros
16305 to avoid unnecessary BLOCK_INPUTs when SYNC_INPUT is used.
16306 (xmalloc, xrealloc, xfree, lisp_malloc, lisp_free, lisp_align_malloc)
16307 (lisp_align_free, make_interval, allocate_string, allocate_string_data)
16308 (make_float, Fcons, allocate_vectorlike, Fmake_symbol, allocate_misc):
16309 Use them.
16310
16311 * xfaces.c (load_face_font, free_realized_face, clear_face_gcs):
16312 Don't let signal handlers run when a GC is freed but not yet NULL'ed.
16313 (x_free_gc): Remove BLOCK_INPUT since it's now redundant.
16314
163152007-09-28 Dan Nicolaescu <dann@ics.uci.edu>
16316
16317 * Makefile.in (lisp, shortlisp): Delete server.elc, it is not
16318 loaded by default.
16319
163202007-09-28 Stefan Monnier <monnier@iro.umontreal.ca>
16321
16322 * term.c (Fgpm_mouse_start): Don't signal an error if already activated
16323 on this tty.
16324 (Fgpm_mouse_stop): Only deactivate if it was activated on this tty.
16325
16326 * term.c (mouse_face_window): Rename from Qmouse_face_window.
16327 Update all users.
16328 (handle_one_term_event): Use Gpm_DrawPointer.
16329 (Fgpm_mouse_start): Rename from Fterm_open_connection.
16330 Signal errors instead of returning nil. Always return nil.
16331 (Fgpm_mouse_stop): Rename from Fterm_close_connection.
16332 Make it a noop if gpm-mouse was not activated.
16333 (syms_of_term): Update names.
16334
163352007-09-27 Stefan Monnier <monnier@iro.umontreal.ca>
16336
16337 * sysdep.c (narrow_foreground_group, widen_foreground_group): Static.
16338 (init_sys_modes): Check that gpm_tty is the current tty.
16339
16340 * alloc.c (allocate_terminal): Set the vector size to only count the
16341 lisp fields. Initialize those to nil.
16342 (mark_object): Don't treat terminals specially.
16343 (mark_terminal): Remove.
16344 (mark_terminals): Use mark_object instead.
16345
16346 * termhooks.h (struct terminal): Move all Lisp_Object fields traced by
16347 the GC to the beginning.
16348
16349 * indent.h:
16350 * indent.c: Use EMACS_INT for ints coming from Elisp data.
16351
16352 * indent.c (Fmove_to_column): Use EMACS_INT for buffer positions.
16353
163542007-09-25 Jason Rumney <jasonr@gnu.org>
16355
16356 * frame.c (make_terminal_frame): Remove special case for WINDOWSNT.
16357
16358 * w32console.c (create_w32cons_output): Remove.
16359
16360 * term.c (init_tty): Call init_sys_modes on WINDOWSNT also.
16361
16362 * sysdep.c (init_sys_modes): Use set_terminal_modes_hook.
16363 (reset_sys_modes): Use reset_terminal_modes_hook.
16364
163652007-09-24 Stefan Monnier <monnier@iro.umontreal.ca>
16366
16367 * eval.c (do_autoload): Don't output any message.
16368
163692007-09-24 Juri Linkov <juri@jurta.org>
16370
16371 * emacs.c (standard_args): Change priority of "--no-splash"
16372 from 40 to 3. Add "--no-desktop" with the same priority.
16373
163742007-09-23 Dmitry Antipov <dmantipov@yandex.ru>
16375
16376 * alloc.c (gc_sweep): Check cons cell mark bits word by word
16377 and optimize the case where they are all 1.
16378
163792007-09-23 Johannes Weiner <hannes@saeurebad.de>
16380
16381 * lisp.h (abs): Define if not defined.
16382 * keyboard.c, sound.c, w32term.c, xfaces.c, xterm.c:
16383 Don't define `abs', since it's defined in lisp.h.
16384
163852007-09-22 Eli Zaretskii <eliz@gnu.org>
16386
16387 * term.c (DEV_TTY): New macro. Provide a definition for MS-Windows.
16388 (FRAME_TERMCAP_P) [WINDOWSNT]: Don't define to zero.
16389 (Fcontrolling_tty_p, Fresume_tty, dissociate_if_controlling_tty)
16390 (init_tty): Use DEV_TTY instead of "/dev/tty".
16391 [WINDOWSNT]: No need to protect from NAME arg being null.
16392
163932007-09-21 Dan Nicolaescu <dann@ics.uci.edu>
16394
16395 * term.c (Fsuspend_tty): Run suspend-tty-functions before cleaning
16396 up the tty state.
16397
163982007-09-21 Stefan Monnier <monnier@iro.umontreal.ca>
16399
16400 * termhooks.h (term_gpm): Delete. Use gpm_tty's NULLness instead.
16401 (gpm_tty): Change its type.
16402 * term.c (term_gpm): Delete. Use gpm_tty's NULLness instead.
16403 (gpm_tty): Change its type and initialize it.
16404 (Fterm_open_connection): Check the frame is indeed a tty.
16405 Use the new gpm_tty.
16406 (Fterm_close_connection): Use the new gpm_tty.
16407 * keyboard.c (tty_read_avail_input): Use the new gpm_tty.
16408 * sysdep.c (init_sys_modes): term_gpm -> gpm_tty.
16409
164102007-09-21 Juanma Barranquero <lekktu@gmail.com>
16411
16412 * w32term.c (x_draw_glyph_string): Use strike_through_color, not
16413 underline_color, to draw strike-through.
16414
164152007-09-21 Stefan Monnier <monnier@iro.umontreal.ca>
16416
16417 * lisp.h (allocate_terminal): Declare.
16418
16419 * window.c (candidate_window_p): Consider frames that are being placed
16420 by the user as somewhere between visible and iconified.
16421 (window_loop): Prefer windows on the current frame.
16422 (Fselect_window): Move the use of select-frame to the beginning so we
16423 can just delegate all the work (it'll call us back anyway).
16424
16425 * frame.c (Qdisplay_environment_variable):
16426 * frame.h (Qdisplay_environment_variable): Delete.
16427
16428 * .gdbinit (xbacktrace): Print the arg's address rather than the value
16429 of the first arg, since that value may be a union.
16430
16431 * callproc.c (child_setup, getenv_internal): Use the frame's `display'
16432 parameter rather than Qdisplay_environment_variable. If all else
16433 fails, look for DISPLAY in initial-environment.
16434
164352007-09-21 Glenn Morris <rgm@gnu.org>
16436
16437 * Makefile.in (emacstool): Remove target.
16438 (lisp, shortlisp): Remove termdev.elc.
16439
164402007-09-21 Markus Triska <markus.triska@gmx.at>
16441
16442 * xterm.c (x_delete_display): Compile session management conditionally.
16443
164442007-09-20 Stefan Monnier <monnier@iro.umontreal.ca>
16445
16446 * callproc.c (getenv_internal_1): New function.
16447 (getenv_internal): Use it.
16448 (Fgetenv_internal): Use it. Accept an env-list as optional arg.
16449
16450 * terminal.c (get_terminal): Don't accept ints to represent terminals.
16451 (Fterminal_name, Fterminal_parameters, Fterminal_parameter)
16452 (Fset_terminal_parameter): Work with dead terminals as well.
16453 (Fmodify_terminal_parameters): Remove.
16454
16455 * terminal.c (get_terminal): Handle terminals.
16456 Make sure the terminal returned is live.
16457 (create_terminal): Use allocate_terminal.
16458 (mark_terminals): Move to alloc.c.
16459 (delete_terminal): Use terminal->name as liveness status.
16460 NULL out fields after freeing their contents.
16461 Don't deallocate the object.
16462 (Fframe_terminal): Use FRAME_TERMINAL. Return the terminal object
16463 rather than an int.
16464 (Fterminal_live_p): Accept non-integer arguments.
16465 (Fterminal_list): Return terminal objects rather than an ints.
16466
16467 * alloc.c (enum mem_type): New member for `terminal' objects.
16468 (allocate_terminal): New function.
16469 (mark_maybe_pointer, valid_lisp_object_p, mark_object):
16470 Handle terminals.
16471 (mark_terminal): New fun.
16472 (mark_terminals): Move from terminal.c.
16473
16474 * term.c (get_tty_terminal): Don't treat output_initial specially.
16475 (Fsuspend_tty, Fresume_tty): Use terminal objects rather than ints.
16476 (delete_tty): Use terminal->name as liveness status.
16477
16478 * termhooks.h (struct terminal): Make it into a pseudovector.
16479 Remove `deleted' replaced by checking `name's nullness.
16480
16481 * print.c (print_object): Handle terminals.
16482
16483 * lisp.h (enum pvec_type): New `terminal' pseudovector.
16484 (XTERMINAL, XSETTERMINAL, TERMINALP, GC_TERMINALP): New macros.
16485
16486 * frame.c (make_terminal_frame):
16487 * keyboard.c (tty_read_avail_input):
16488 * w32term.c (x_delete_terminal):
16489 * xfns.c (Fx_create_frame, x_create_tip_frame):
16490 * xterm.c (x_delete_terminal): Use terminal->name as liveness status.
16491
164922007-09-20 Glenn Morris <rgm@gnu.org>
16493
16494 * process.c (Fmake_network_process): Doc fix.
16495
164962007-09-19 Jason Rumney <jasonr@gnu.org>
16497
16498 * dispextern.h (w32_init_fringe, mac_init_fringe): Declare rif argument.
16499
165002007-09-19 Michaël Cadilhac <michael@cadilhac.name>
16501
16502 * coding.c (detect_eol_type, detect_eol_type_in_2_octet_form):
16503 Fix a C warning regarding variable constness.
16504
16505 * xterm.c (handle_one_xevent): Fix a C warning.
16506
165072007-09-18 Jason Rumney <jasonr@gnu.org>
16508
16509 * w32fns.c (Fx_focus_frame): Rename from Fw32_focus_frame.
16510
165112007-09-17 Jan Djärv <jan.h.d@swipnet.se>
16512
16513 * gtkutil.c (gdpy_def): New variable.
16514 (xg_initialize): Initialize gdpy_def.
16515 (xg_display_close): If no other display exists, set gdpy_def to a
16516 new connection.
16517
165182007-09-16 Jan Djärv <jan.h.d@swipnet.se>
16519
16520 * gtkutil.c (xg_get_image_for_pixmap): Always create a GdkPixbuf
16521 when we have no file name for the icon.
16522 (xg_tool_bar_expose_callback): Remove.
16523 (xg_create_tool_bar): Don't connect expose signal to
16524 xg_tool_bar_expose_callback.
16525 (xg_get_file_with_chooser): Move GCPRO1 after declarations.
16526
165272007-09-16 Andreas Schwab <schwab@suse.de>
16528
16529 * alloc.c (reset_malloc_hooks): Set the hooks to the previous
16530 values instead of zapping them.
16531
165322007-09-14 Glenn Morris <rgm@gnu.org>
16533
16534 * fringe.c (init_fringe_bitmap) <swap_nibble>: Move to file scope.
16535 * gtkutil.c (xg_separator_p) <separator_names>: Move to file scope.
16536 * image.c (our_memory_fill_input_buffer) <buffer>: Move to file
16537 scope and rename to omfib_buffer for clarity.
16538 (gif_load) <interlace_start, interlace_increment>: Move to file scope.
16539
165402007-09-14 Kenichi Handa <handa@m17n.org>
16541
16542 * xterm.c (handle_one_xevent): Skip decoding if nbytes is zero.
16543
165442007-09-13 Jason Rumney <jasonr@gnu.org>
16545
16546 * fringe.c (w32_init_fringe, mac_init_fringe): Add rif argument.
16547
16548 * w32term.c (w32_term_init): Pass rif to w32_init_fringe.
16549
16550 * macterm.c (mac_initialize): Don't call mac_init_fringe here.
16551 (mac_term_init): Call here instead, passing rif.
16552
165532007-09-13 Glenn Morris <rgm@gnu.org>
16554
16555 * s/hpux.h: No longer define `static' as nothing.
16556
165572007-09-13 Johan Bockgård <bojohan@gnu.org>
16558
16559 * callint.c (Fcall_interactively): Remove unused var `fun'.
16560
165612007-09-12 Romain Francoise <romain@orebokech.com>
16562
16563 * window.c (prefer_window_split_horizontally, display_buffer):
16564 Revert 2007-09-08 change.
16565
165662007-09-12 Glenn Morris <rgm@gnu.org>
16567
16568 * alloca.c: Remove file.
16569 * Makefile.in (alloca): Do not undef.
16570 (allocaobj, alloca.o): Remove.
16571 (otherobj): Remove allocaobj.
16572 * keyboard.c (command_loop_1): Remove #ifdef C_ALLOCA block.
16573 * regex.c (C_ALLOCA): Remove all references and code that was only
16574 used when this was defined.
16575 * search.c (boyer_moore): Remove #ifdef C_ALLOCA block.
16576 * xmenu.c (xmenu_show): Remove #ifdef C_ALLOCA block.
16577 * m/ibms390x.h, m/sh3el.h (C_ALLOCA): Remove references to this.
16578
16579 * Makefile.in (SOURCES, unlock, relock): Delete.
16580
16581 * gtkutil.c (cnt): Rename to menu_grab_callback_cnt for clarity.
16582 (menu_grab_callback): All uses changed.
16583
16584 * xselect.c (cnt): Rename to x_reply_selection_request_cnt for clarity.
16585 (x_reply_selection_request): All uses changed.
16586
165872007-09-11 Stefan Monnier <monnier@iro.umontreal.ca>
16588
16589 * lread.c (load_warn_old_style_backquotes): Change message to look
16590 better when it appears in the middle of byte-compiler messages.
16591
165922007-09-10 Dan Nicolaescu <dann@ics.uci.edu>
16593
16594 * s/darwin.h (MULTI_KBOARD): Only define for Carbon.
16595
16596 * xterm.c (x_create_terminal): Add comment.
16597
16598 * term.c (clear_tty_hooks, set_tty_hooks): Add comments.
16599
166002007-09-10 Richard Stallman <rms@gnu.org>
16601
16602 * xterm.c (x_term_init): Give error if can't open DISPLAY_NAME.
16603
166042007-09-10 Michaël Cadilhac <michael@cadilhac.name>
16605
16606 * lisp.h (struct Lisp_Subr): Rename `prompt' field to `intspec'.
16607 (DEFUN): Document `intspec', use it instead of `prompt'.
16608
16609 * eval.c (Fcommandp): Change `->prompt' to `->intspec'.
16610
16611 * data.c (Finteractive_form): If the interactive specification starts
16612 with a `(', use it as a Lisp form.
16613
16614 * fileio.c (Fset_file_modes): Add an interactive spec that reads a file
16615 name and file modes.
16616
16617 * callint.c (Fcall_interactively): Comment fixes.
16618
166192007-09-10 Stefan Monnier <monnier@iro.umontreal.ca>
16620
16621 * callint.c (Fcall_interactively): Use Finteractive_form also for subrs
16622 and compiled functions.
16623
166242007-09-08 Fredrik Axelsson <f.axelsson@gmail.com>
16625
16626 * window.c (prefer_window_split_horizontally): New variable.
16627 (display_buffer): Consider splitting window horizontally depending
16628 on prefer_window_split_horizontally.
16629
166302007-09-08 Eli Zaretskii <eliz@gnu.org>
16631
16632 * sysdep.c [WINDOWSNT]: Don't include sysselect.h.
16633
166342007-09-07 Stefan Monnier <monnier@iro.umontreal.ca>
16635
16636 * s/cygwin.h (GC_MARK_STACK): Enable conservative stack marking.
16637
16638 * frame.c (x_set_frame_parameters): Check number is positive before
16639 using XFASTINT.
16640
16641 * window.c (freeze_window_start): Don't presume selected_window holds
16642 a window object.
16643 (Fdisplay_buffer): Remove `register' since `buffer' needs to be gcpro'd.
16644
166452007-09-07 Angelo Graziosi <Angelo.Graziosi@roma1.infn.it> (tiny change)
16646
16647 * term.c (dissociate_if_controlling_tty): Call setsid on CYGWIN.
16648
166492007-09-07 Stefan Monnier <monnier@iro.umontreal.ca>
16650
16651 * window.c (Vsplit_window_preferred_function): New var.
16652 (Fdisplay_buffer): Use it.
16653 (syms_of_window): Export, and initialize it.
16654
166552007-09-06 Pixel <pixel@mandriva.com> (tiny change)
16656
16657 * image.c (gif_load): Fix bug: Handle nonexistent colormap.
16658
166592007-09-06 Glenn Morris <rgm@gnu.org>
16660
16661 * gtkutil.c (menu_grab_callback) <cnt>:
16662 * xselect.c (x_reply_selection_request) <cnt>: Move static
16663 variable to file scope.
16664
166652007-09-06 Stefan Monnier <monnier@iro.umontreal.ca>
16666
16667 * xdisp.c (redisplay_internal): Make sure Elisp code always sees
16668 consistent values of selected_frame and selected_window.
16669
166702007-09-04 Jason Rumney <jasonr@gnu.org>
16671
16672 * w32console.c (initialize_w32_display): Zero unused hooks.
16673
166742007-09-04 Dan Nicolaescu <dann@ics.uci.edu>
16675
16676 * term.c (Vsuspend_tty_functions, Vresume_tty_functions)
16677 (syms_of_term, Fsuspend_tty, Fresume_tty): Undo previous change.
16678
166792007-09-04 Jason Rumney <jasonr@gnu.org>
16680
16681 * term.c (init_tty) [WINDOWSNT]: Add hooks that are not accessible
16682 in w32console.c. Set up input. Remove XXX comments that have been
16683 confirmed as correct.
16684
16685 * s/ms-w32.h (MULTI_KBOARD): Define.
16686
16687 * w32console.c (one_and_only_w32cons): Remove.
16688 (initialize_w32_display): Take terminal argument.
16689
16690 * term.c (init_tty) [WINDOWSNT]: Pass terminal to
16691 initialize_w32_display.
16692 (init_tty) [MULTI_KBOARD]: Include this code on WINDOWSNT too.
16693
16694 * termhooks.h (enum event_kind) <HORIZ_WHEEL_EVENT>: New event.
16695
16696 * keyboard.c (discard_mouse_events): Discard it.
16697 (make_lispy_event): Translate it to a lisp event.
16698 (lispy_wheel_names): Add wheel-left and right events.
16699 (syms_of_keyboard): Enlarge wheel_syms.
16700
16701 * w32fns.c (w32_wnd_proc) <WM_DROPFILES>: Merge with WM_MOUSEWHEEL.
16702 <WM_MOUSEHWHEEL>: Pass new system message to lisp.
16703
16704 * w32term.h (WM_MOUSEHWHEEL): Define if system headers don't.
16705
16706 * w32term.c (construct_mouse_wheel): Make HORIZ_WHEEL_EVENT
16707 from WM_MOUSEHWHEEL.
16708 (w32_read_socket) <WM_MOUSEHWHEEL>: Treat as WM_MOUSEWHEEL.
16709
16710 * w32fns.c (x_create_tip_frame) [MULTI_KBOARD]: Get keyboard from
16711 terminal.
16712
16713 * w32term.c (w32_create_terminal) [MULTI_KBOARD]: Create a new
16714 keyboard for the terminal.
16715
167162007-09-04 Dan Nicolaescu <dann@ics.uci.edu>
16717
16718 * term.c (Vsuspend_tty_hook): Rename from Vsuspend_tty_functions.
16719 (Vresume_tty_hook): Rename from Vresume_tty_functions.
16720 (syms_of_term): Rename suspend-tty-functions to suspend-tty-hook
16721 and resume-tty-function to resume-tty-hook.
16722 (Fsuspend_tty, Fresume_tty): Use new names.
16723
167242007-09-02 Jan Djärv <jan.h.d@swipnet.se>
16725
16726 * gtkutil.c (update_frame_tool_bar): Handle stock name as a named icon
16727 if it starts with "n:".
16728
167292007-08-31 Jan Djärv <jan.h.d@swipnet.se>
16730
16731 * gtkutil.c (update_frame_tool_bar): Initialize wbutton to NULL.
16732
167332007-08-31 Stefan Monnier <monnier@iro.umontreal.ca>
16734
16735 * frame.h:
16736 * frame.c (Qterm_environment_variable): Remove.
16737 (syms_of_frame): Don't init and staticpro it.
16738
16739 * callproc.c (getenv_internal): Remove special case for $TERM.
16740
16741 * callproc.c (Vinitial_environment): New variable.
16742 (set_initial_environment): Initialize it.
16743 (syms_of_callproc): Declare it.
16744 (child_setup): Don't mess with TERM via Qterm_environment_variable; the
16745 TERM under which a process runs is never related to the TERM in which
16746 Emacs is running.
16747
167482007-08-29 Dan Nicolaescu <dann@ics.uci.edu>
16749
16750 * config.in (HAVE_WINDOW_SYSTEM): Don't undef MULTI_KBOARD here...
16751 * s/darwin.h: ... do it here.
16752
167532007-08-29 Stefan Monnier <monnier@iro.umontreal.ca>
16754
16755 * lisp.h (set_initial_environment): Rename from set_global_environment.
16756
16757 * Makefile.in (${etc}DOC): Re-add a ${EXEEXT} which seems to have been
16758 removed by mistake on the multi-tty branch.
16759
16760 * frame.c (make_terminal_frame): Yet Another Int/Lisp_Object Mixup.
16761 (Fmodify_frame_parameters): Return a value.
16762
16763 * image.c (png_load): Comment-out var only used in commented-out code.
16764
16765 * term.c (mark_ttys): Don't bother checking top_frame (incorrectly)
16766 before passing it to mark_object.
16767
16768 * xfaces.c (internal_resolve_face_name): Return a value.
16769 (internal_resolve_face_name, resolve_face_name_error): Comment out.
16770
16771 * xfns.c (check_x_display_info): Yet Another Int/Lisp_Object Mixup.
16772 (x_icon): Comment-out var only used in commented-out code.
16773
167742007-08-29 Romain Francoise <romain@orebokech.com>
16775
16776 * keyboard.c (Fset_input_mode): Don't call `Fset_quit_char' if
16777 QUIT hasn't been provided.
16778
167792007-08-29 Dan Nicolaescu <dann@ics.uci.edu>
16780
16781 * callproc.c (child_setup, getenv_internal): Use the
16782 display-environment-variable and term-environment-variable frame params.
16783 (set_initial_environment): Initialise Vprocess_environment.
16784
16785 * config.in: Disable multi-keyboard support on a mac.
16786
16787 * frame.c (Qterm_environment_variable)
16788 (Qdisplay_environment_variable): New variables.
16789 (syms_of_frame): Intern and staticpro them.
16790 (Fmake_terminal_frame): Disable output method test.
16791
16792 * frame.h: Declare them here.
16793
16794 * macfns.c (x_set_mouse_color): Get rif from the frame.
16795 (x_set_tool_bar_lines): Don't use updating_frame.
16796 (mac_window): Add 2 new parameters for consistency with other systems.
16797 (Fx_create_frame): Fix doc string. Rename the parameter. Set the
16798 frame parameters following what is done in X11 and w32. Don't use
16799 FRAME_MAC_DISPLAY_INFO.
16800 (Fx_open_connection, start_hourglass): Remove window-system check.
16801 (x_create_tip_frame): Get the keyboard from the terminal.
16802
16803 * macmenu.c: Reorder includes.
16804 (Fx_popup_menu): Use terminal specific mouse_position_hook.
16805
16806 * macterm.c (XTset_terminal_modes, XTreset_terminal_modes): Add a
16807 terminal parameter.
16808 (x_clear_frame): Add a frame parameter.
16809 (note_mouse_movement): Get rif from the frame.
16810 (mac_term_init): Initialize the terminal.
16811 (mac_initialize): Make static and move terminal initialization ...
16812 (mac_create_terminal): ... to this new function.
16813
16814 * macterm.h (struct mac_display_info): Add terminal.
16815 (mac_initialize): Delete declaration.
16816
16817 * puresize.h (BASE_PURESIZE): Increase base value to 1164000.
16818
16819 * sysdep.c: Comment out text after #endif.
16820
16821 * term.c (init_tty): Only use terminal->kboard when MULTI_KBOARD
16822 is defined. Better initialize ttys in windows. Use terminal
16823 specific mouse_position_hook.
16824
16825 * termhooks.h (union display_info): Add mac_display_info.
16826
16827 * w32fns.c (Fx_create_frame): Use kboard from the terminal.
16828 Set the default minibuffer frame, window_system and the rest of the
16829 frame parameters following what is done in X11.
16830
16831 * w32term.c (w32_initialize): Make static.
16832
16833 * xselect.c (x_handle_selection_clear): Only access
16834 terminal->kboard when MULTI_KBOARD is defined.
16835
16836 * s/darwin.h (SYSTEM_PURESIZE_EXTRA): Define here.
16837 (SYSTEM_PURESIZE_EXTRA): Only define on Carbon.
16838
168392007-08-29 Jason Rumney <jasonr@gnu.org>
16840
16841 * frame.c (Fdelete_frame): Only get kboard when MULTI_KBOARD defined.
16842 (make_terminal_frame) [WINDOWSNT]: Initialize terminal.
16843
16844 * fringe.c (w32_init_fringe w32_reset_fringes) [HAVE_NTGUI]:
16845 (mac_init_fringe) [MAC_OS]: Get rif from selected_frame.
16846
16847 * keyboard.c (restore_kboard_configuration): Only define when
16848 MULTI_KBOARD defined.
16849
16850 * makefile.w32-in: Update dependancies from Makefile.in.
16851 (OBJ1): Add terminal.$(O)
16852
16853 * term.c (dissociate_if_controlling_tty) [WINDOWSNT]:
16854 Don't define function body.
16855 (init_tty) [WINDOWSNT]: Use selected_frame for initializing.
16856
16857 * termhooks.h (display_info) [WINDOWSNT]: Add w32.
16858
16859 * w32.c (request_sigio, unrequest_sigio): Remove.
16860
16861 * w32console.c (w32con_move_cursor, w32con_clear_to_end)
16862 (w32con_clear_frame, w32con_clear_end_of_line)
16863 (w32con_ins_del_lines, w32con_insert_glyphs, w32con_write_glyphs)
16864 (w32con_delete_glyphs, w32con_set_terminal_window)
16865 (scroll_line, w32_sys_ring_bell): Add frame arg.
16866 (w32con_set_terminal_modes, w32con_reset_terminal_modes):
16867 Add terminal arg.
16868 (PICK_FRAME): Remove.
16869 (w32con_write_glyphs): Use frame specific terminal coding.
16870 (one_and_only_w32cons): New global variable.
16871 (initialize_w32_display): Use it for storing hooks.
16872 (create_w32cons_output): New function.
16873
16874 * w32inevt.c, w32inevt.h (w32_console_read_socket): Make first
16875 arg a frame.
16876
16877 * w32fns.c (x_create_tip_frame): Set terminal and ref count.
16878 Set window_system.
16879 (x_set_tool_bar_lines): Don't use updating_frame.
16880 (Fx_create_frame): Set terminal and ref count.
16881 (Fx_open_connection): Remove window-system check.
16882
16883 * w32menu.c (Fx_popup_menu): Use terminal specific mouse_position_hook.
16884
16885 * w32term.c (w32_term_init): Call add_keyboard_wait_descriptor.
16886 (w32_set_terminal_modes, w32_reset_terminal_modes): Add terminal arg.
16887 (x_clear_frame, x_delete_glyphs, w32_ring_bell, x_ins_del_lines):
16888 Add frame arg.
16889 (x_delete_terminal, w32_create_terminal): New functions.
16890 (w32_term_init): Create a terminal.
16891 (w32_initialize): Move terminal specific initialization to
16892 w32_create_terminal.
16893
16894 * w32term.h (x_output): Remove foreground_pixel and background_pixel.
16895 (w32_clear_rect, w32_clear_area): Use background from frame.
16896 (w32_display_info): Add terminal.
16897 (w32_sys_ring_bell, x_delete_display): Declare here.
16898
16899 * xdisp.c (display_menu_bar) [HAVE_NTGUI]: Check frame type.
16900
16901 * s/ms-w32.h (SYSTEM_PURESIZE_EXTRA): Bump to 50k.
16902
169032007-08-29 Kalle Olavi Niemitalo <kon@iki.fi> (tiny change)
16904
16905 * keyboard.c (interrupt_signal, handle_interrupt, Fset_quit_char):
16906 Fix get_named_tty calls for the controlling tty.
16907
169082007-08-29 ARISAWA Akihiro <ari@mbf.ocn.ne.jp> (tiny change)
16909
16910 * term.c (dissociate_if_controlling_tty)[USG]: Fix parse error.
16911
169122007-08-29 Yoshiaki Kasahara <kasahara@nc.kyushu-u.ac.jp> (tiny change)
16913
16914 * term.c (tty_insert_glyphs): Add missing first parameter.
16915
169162007-08-29 Károly Lőrentey <karoly@lorentey.hu>
16917
16918 * buffer.c (Fbuffer_list, Fbury_buffer):
16919 Take frame->buried_buffer_list into account.
16920
16921 * cm.c (current_tty): New variable, for cmputc().
16922 (cmputc): Use it.
16923 (cmcheckmagic): Add tty parameter, look up terminal streams there.
16924 (calccost): Add tty parameter. Use emacs_tputs() instead of tputs().
16925 (cmgoto): Add tty parameter. Pass it on to calccost().
16926 Use emacs_tputs() instead of tputs().
16927
16928 * cm.h (emacs_tputs): New macro to set current_tty, and then call
16929 tputs().
16930 (current_tty): New variable, for cmputc().
16931 (cmcheckmagic, cmputc, cmgoto): Add prototypes.
16932
16933 * eval.c (unwind_to_catch): Don't call x_fully_uncatch_errors.
16934 (internal_condition_case, internal_condition_case_1)
16935 (internal_condition_case_2): Don't abort when x_catching_errors.
16936
16937 * fns.c (Fyes_or_no_p): Don't try to open an X dialog on tty terminals.
16938 (Fy_or_n_p): Likewise. Use temporarily_switch_to_single_kboard to
16939 prevent crashes caused by bogus longjmps in read_char.
16940
16941 * keymap.h (Fset_keymap_parent): Add EXFUN.
16942
16943 * macterm.h (FRAME_FOREGROUND_PIXEL, FRAME_BACKGROUND_PIXEL)
16944 * w32term.h (FRAME_FOREGROUND_PIXEL, FRAME_BACKGROUND_PIXEL):
16945 Remove redundant definition.
16946
16947 * macfns.c (x_set_mouse_color, x_make_gc):
16948 Use FRAME_BACKGROUND_PIXEL and FRAME_FOREGROUND_PIXEL.
16949
16950 * w32term.c (x_free_frame_resources):
16951 Use FRAME_BACKGROUND_PIXEL and FRAME_FOREGROUND_PIXEL.
16952 (w32_initialize): Use the accessor macros for terminal characteristics.
16953
16954 * macterm.c (mac_initialize): Use Fset_input_interrupt_mode.
16955 Use the accessor macros for terminal characteristics.
16956 * msdos.c (internal_terminal_init): Use the accessor macros for
16957 terminal characteristics.
16958 (ScreenVisualBell, internal_terminal_init):
16959 Use FRAME_BACKGROUND_PIXEL and FRAME_FOREGROUND_PIXEL.
16960
16961 * termopts.h (no_redraw_on_reenter): Declare.
16962
16963 * alloc.c (emacs_blocked_malloc): Disable mallopt call.
16964 (mark_terminals, mark_ttys): Declare.
16965 (Fgarbage_collect): Call them.
16966 (mark_object): Mark buried_buffer_list.
16967
16968 * prefix-args.c: Include stdlib.h for exit.
16969
16970 * syssignal.h: Add comment.
16971
16972 * indent.c: Include stdio.h.
16973
16974 * window.h (Vinitial_window_system): Declare.
16975 (Vwindow_system): Delete declaration.
16976
16977 * fontset.c (Finternal_char_font): Use FRAME_RIF.
16978
16979 * image.c (lookup_image): Don't initialize `c' until the xasserts
16980 have been run.
16981
16982 * gtkutil.c (xg_create_frame_widgets): Use FRAME_BACKGROUND_PIXEL and
16983 FRAME_FOREGROUND_PIXEL.
16984
16985 * print.c (print_preprocess): Don't lose print_depth levels while
16986 iterating.
16987
16988 * widget.c (update_from_various_frame_slots):
16989 Use FRAME_BACKGROUND_PIXEL and FRAME_FOREGROUND_PIXEL.
16990
16991 * window.c (set_window_buffer): Don't call clear_mouse_face on tty
16992 frames.
16993 (window_internal_height): Remove bogus make_number call.
16994 (init_window_once): Call make_terminal_frame with two zero parameters.
16995
16996 * fileio.c (Fread_file_name): Update comment.
16997
16998 * callint.c (Fcall_interactively):
16999 Use temporarily_switch_to_single_kboard instead of single_kboard_state.
17000 Make sure it is correctly unwound.
17001
17002 * xsmfns.c (x_session_close): New function.
17003
17004 * coding.h (terminal_coding, safe_terminal_coding, keyboard_coding):
17005 Delete declarations.
17006
17007 * xterm.h: Remove declaration for x_fully_uncatch_errors.
17008 (x_output): Remove background_pixel and foreground_pixel fields.
17009 (x_display_info): Add new field TERMINAL. Remove KBOARD field.
17010 (x_delete_device, x_session_close): Declare.
17011
17012 * lread.c: Include setjmp.h. Update declaration of `read_char'.
17013 (read_filtered_event): Call `read_char' with a local
17014 `wrong_kboard_jmpbuf'.
17015
17016 * minibuf.c (read_minibuf): Call temporarily_switch_to_single_kboard.
17017 Don't call single_kboard_state. Use FRAME_RIF.
17018
17019 * process.c (Fmake_network_process): Don't unrequest_sigio on modern
17020 systems.
17021
17022 * lisp.h (set_process_environment): Rename to `set_global_environment'.
17023 (Fframe_with_environment, Fset_input_meta_mode)
17024 (Fset_quit_char): EXFUN.
17025 (x_create_device, tty_output, terminal, tty_display_info): Declare.
17026 (init_sys_modes, reset_sys_modes): Update prototypes.
17027 (init_all_sys_modes, reset_all_sys_modes): New prototypes.
17028
17029 * keyboard.h (struct kboard): Add new fields Vlocal_function_key_map,
17030 Vlocal_key_translation_map, and Vkeyboard_translate_table.
17031 (Vfunction_key_map, Vkeyboard_translate_table, single_kboard_state):
17032 Delete declarations.
17033 (Vfunction_key_map, Vkey_translation_map, push_kboard, pop_kboard)
17034 (temporarily_switch_to_single_kboard, tty_read_avail_input):
17035 New declarations.
17036
17037 * emacs.c (main): Don't call init_sys_modes(), the new term_init()
17038 already does that during init_display(). Call syms_of_keymap
17039 before syms_of_keyboard. Call `syms_of_terminal'.
17040 Call set_initial_environment, not set_process_environment.
17041 (shut_down_emacs): Call reset_all_sys_modes() instead of
17042 reset_sys_modes().
17043
17044 * xfaces.c (x_free_gc): Protect xassert with GLYPH_DEBUG.
17045 (internal_resolve_face_name, resolve_face_name_error): New functions.
17046 (resolve_face_name): Protect against loops and errors thrown by Fget.
17047 (realize_default_face): Don't use FRAME_FONT unless frame is an X frame.
17048 (Ftty_supports_face_attributes_p): Update tty_capable_p call.
17049
17050 * scroll.c: Replace CURTTY() with local variables throughout the
17051 file (where applicable).
17052 (calculate_scrolling, calculate_direct_scrolling)
17053 (scrolling_1, scroll_cost): Use the accessor macros for terminal
17054 characteristics.
17055
17056 * keymap.c (Vfunction_key_map): Remove.
17057 (Fdescribe_buffer_bindings): Update references to Vfunction_key_map.
17058 (syms_of_keymap): Remove DEFVAR for Vfunction_key_map.
17059 (Vkey_translation_map): Remove.
17060 (syms_of_keymap): Remove DEFVAR for key-translation-map.
17061 (Fdescribe_buffer_bindings)
17062 (read_key_sequence, init_kboard, syms_of_keyboard, mark_kboards):
17063 Update for terminal-local key-translation-map.
17064
17065 * Makefile.in (callproc.o): Update dependencies.
17066 (lisp, shortlisp): Add termdev.elc.
17067 (obj): Add terminal.o.
17068 (terminal.o): Add dependencies.
17069 [HAVE_CARBON]: Make terminal.o depend on macgui.h.
17070 (data.o, fns.o): Add termhooks.h dependency.
17071 (SOME_MACHINE_LISP): Add dnd.elc.
17072 (minibuf.o): Fix typo.
17073 Update dependencies.
17074
17075 * data.c (do_symval_forwarding, store_symval_forwarding)
17076 (find_symbol_value): Use the selected frame's keyboard, not
17077 current_kboard.
17078
17079 * .gdbinit (init_sys_modes): Use Vinitial_window_system instead of
17080 Vwindow_system.
17081
17082 * xmenu.c (Fx_menu_bar_open) [USE_X_TOOLKIT, USE_GTK]: Rename from
17083 Fmenu_bar_open.
17084 (syms_of_xmenu): Update defsubr.
17085 (mouse_position_for_popup, Fx_popup_menu)
17086 (Fx_popup_dialog, x_activate_menubar, update_frame_menubar)
17087 (set_frame_menubar, free_frame_menubar)
b97439ce 17088 (create_and_show_popup_menu, xmenu_show)
aac0c6e3
MR
17089 (create_and_show_dialog, xdialog_show, xmenu_show): Abort if not
17090 an X frame.
17091
17092 * xselect.c (x_own_selection): Abort if not an X frame.
17093 (some_frame_on_display): Check if it is an X frame.
17094 (x_handle_selection_clear): Deal with MULTI_KBOARD.
17095
17096 * coding.c: Include frame.h and termhooks.h.
17097 (terminal_coding, keyboard_coding): Delete.
17098 (Fset_terminal_coding_system_internal)
17099 (Fset_keyboard_coding_system_internal)
17100 (Fkeyboard_coding_system)
17101 (Fterminal_coding_system): Add a terminal parameter.
17102 Get terminal_coding from the terminal.
17103 (init_coding_once): Don't call setup_coding_system here.
17104
17105 * dispextern.h (set_scroll_region, turn_off_insert)
17106 (turn_off_highlight, background_highlight, clear_end_of_line_raw)
17107 (tty_clear_end_of_line, tty_setup_colors)
17108 (delete_tty, updating_frame)
17109 (produce_special_glyphs, produce_glyphs, write_glyphs)
17110 (insert_glyphs): Remove.
17111 (raw_cursor_to, clear_to_end, tty_turn_off_insert)
17112 (tty_turn_off_highlight, get_tty_size): Add declaration.
17113 (tabs_safe_p, init_baud_rate, get_tty_terminal): Update prototypes.
17114
17115 * frame.h (enum output_method): Add output_initial.
17116 (struct x_output): Delete.
17117 (FRAME_FOREGROUND_PIXEL, FRAME_BACKGROUND_PIXEL):
17118 Access foreground_pixel and background_pixel directly from the frame.
17119 (tty_display): Delete.
17120 (struct frame): Add buried_buffer_list, foreground_pixel,
17121 background_pixel and terminal. Delete kboard.
17122 (union output_data): Add tty.
17123 (FRAME_KBOARD): Get the kboard from the terminal.
17124 (FRAME_INITIAL_P): New macro.
17125 (Qtty, Qtty_type, Qterminal, Qterminal_live_p, Qenvironment)
17126 (Qterm_environment_variable, Qdisplay_environment_variable)
17127 (make_terminal_frame, Qburied_buffer_list, Qwindow_system):
17128 New declarations.
17129
17130 * termchar.h (tty_output, tty_display_info): New structures.
17131 (tty_list): Declare.
17132 (FRAME_TTY, CURTTY): New macros.
17133 (must_write_spaces, min_padding_speed, fast_clear_end_of_line)
17134 (line_ins_del_ok, char_ins_del_ok, scroll_region_ok)
17135 (scroll_region_cost, memory_below_frame, fast_clear_end_of_line)
17136 (dont_calculate_costs, no_redraw_on_reenter): Remove declarations.
17137
17138 * callproc.c: Include frame.h and termhooks.h, for terminal
17139 parameters.
17140 (add_env): New function.
17141 (child_setup): Use it.
17142 (child_setup, getenv_internal): Handle the new Vprocess_environment.
17143 (getenv_internal): Fix get_terminal_param call.
17144 (Fgetenv_internal, egetenv): Update doc.
17145 (syms_of_callproc): Initialize Vprocess_environment to nil.
17146 Register and initialize them. Remove obsolete defvars. Update doc
17147 strings.
17148 (child_setup): Handle Vlocal_environment_variables.
17149 (getenv_internal): Add terminal parameter.
17150 Handle Vlocal_environment_variables.
17151 (Fgetenv_internal): Add terminal parameter.
17152 (child_setup, getenv_internal, Fgetenv_internal): Store the local
17153 environment in a frame (not terminal) parameter. Update doc strings.
17154 (set_initial_environment): Rename from set_global_environment.
17155 Store Emacs environment in initial frame parameter.
17156
17157 * xdisp.c (redisplay_internal): Update references to
17158 `previous_terminal_frame'.
17159 (display_mode_line, Fformat_mode_line): Replace calls to
17160 `push_frame_kboard' with `push_kboard'.
17161 (get_glyph_string_clip_rects): Add extra parentheses and
17162 braces to prevent compiler warnings.
17163 (calc_pixel_width_or_height): Add xassert to check that the
17164 frame is alive. Don't call `lookup_image' on a termcap frame.
17165 (message2_nolog, message3_nolog, redisplay_internal)
17166 (set_vertical_scroll_bar, redisplay_window, check_x_display_info)
17167 (x_set_scroll_bar_foreground, x_set_scroll_bar_background)
17168 (Fx_create_frame, Fxw_display_color_p, Fx_display_grayscale_p)
17169 (Fx_display_pixel_width, Fx_display_pixel_height)
17170 (Fx_display_planes, Fx_display_color_cells)
17171 (Fx_server_max_request_size, Fx_server_vendor, Fx_server_version)
17172 (Fx_display_screens, Fx_display_mm_height, Fx_display_mm_width)
17173 (Fx_display_backing_store, Fx_display_visual_class)
17174 (Fx_display_save_under, Fx_close_connection, x_create_tip_frame):
17175 Use FRAME_TERMINAL_P, FRAME_WINDOW_P, FRAME_TTY and FRAME_RIF.
17176
17177 * xfns.c (x_set_foreground_color x_set_background_color)
17178 (x_set_mouse_color, x_set_cursor_color, x_make_gc):
17179 Use FRAME_BACKGROUND_PIXEL and FRAME_FOREGROUND_PIXEL.
17180 (Fx_create_frame, x_create_tip_frame, build_string, x_window)
17181 (Fx_create_frame, x_create_tip_frame): Don't create frames on a
17182 terminal that is being deleted.
17183 (Fx_create_frame): Use `store_frame_param' to set `window-system'
17184 frame parameter, and make sure it overrides any user-supplied setting.
17185 (Fx_close_connection, Fx_synchronize): Unify argument names with
17186 the rest of the DEFUNs.
17187
17188 * dispnew.c (Fsend_string_to_terminal): Update call to
17189 `get_tty_terminal'.
17190 (Fredraw_frame, Fsend_string_to_terminal)
17191 (Fsend_string_to_terminal, init_display): Use FRAME_RIF,
17192 FRAME_TERMCAP_P and FRAME_TTY.
17193 (window_change_signal): Don't believe width/height values that are
17194 impossibly small.
17195 (Vinitial_window_system): Rename from Vwindow_system.
17196 (termscript, Wcm, rif): Delete.
17197
17198 * termhooks.h (struct terminal): New struct containing the
17199 previously global text display hooks and new members NAME,
17200 DELETED and PARAM_ALIST.
17201 (FRAME_TERMINAL, TERMINAL_TERMINAL_CODING)
17202 (TERMINAL_KEYBOARD_CODING, TERMINAL_ACTIVE_P, FRAME_WINDOW_P)
17203 (FRAME_RIF): New macros.
17204 (get_terminal_param, get_device): New declarations.
17205 (termscript): Delete declaration.
17206
17207 * xterm.c (x_initialize): Use Fset_input_interrupt_mode.
17208 (XTflash, x_free_frame_resources, x_scroll_bar_create)
17209 (x_scroll_bar_set_handle): Use FRAME_BACKGROUND_PIXEL and
17210 FRAME_FOREGROUND_PIXEL.
17211 (x_fully_uncatch_errors): Disable definition.
17212 (x_scroll_bar_expose): Fix reference to foreground pixel.
17213 (XTread_socket): Disable loop on all X displays.
17214 (x_delete_terminal): Don't set terminal->deleted and let
17215 delete_terminal delete the frames on the terminal.
17216 (x_delete_display): Doc update to reflect changes in
17217 delete_terminal.
17218 (x_display_info) <terminal>: Move member earlier in the struct.
17219 (deleting_tty): Remove old variable.
17220 (Fsuspend_tty): Call clear_tty_hooks.
17221 (Fresume_tty, init_tty): Call set_tty_hooks.
17222 (Ftty_display_color_p, Ftty_display_color_cells): Don't throw
17223 errors on X frames.
17224 (x_catch_errors_unwind): Abort if x_error_message is NULL.
17225 (handle_one_xevent): Initialize `f' to NULL.
17226 (x_delete_terminal, x_create_terminal): New functions.
17227 (XTset_terminal_modes, XTreset_terminal_modes)
17228 (XTread_socket, x_connection_closed, x_term_init)
17229 (x_term_init, x_delete_display): Add terminal parameter.
17230 (x_term_init) [!HAVE_GTK_MULTIDISPLAY]: Refuse to create secondary
17231 X connections.
17232
17233 * frame.c: Include termchar.h.
17234 (Qterminal, Qterminal_live_p, Qburied_buffer_list, Qtty, Qtty_type)
17235 (Qwindow_system, Qenvironment, Qterm_environment_variable)
17236 (Qdisplay_environment_variable): New vars.
17237 (Fframep): Deal with output_initial.
17238 (Fframe-live-p): Doc fix.
17239 (Fwindow-system): New function.
17240 (x_set_screen_gamma, store_frame_param): Fix compilation errors.
17241 (make_terminal_frame): Don't create frames on a terminal that is
17242 being deleted. Use FRAME_BACKGROUND_PIXEL and FRAME_FOREGROUND_PIXEL.
17243 (store_frame_param): Check for found_for_frame before calling XFRAME.
17244 (Fmake_terminal_frame): Handle NULL tty names correctly.
17245 (syms_of_frame): Enhance doc string of `default-frame-alist'.
17246 (Fdelete_frame): Remove unused variable `count'. Don't allow other
17247 frames to refer to a deleted frame in their 'environment parameter.
17248 (Fframe_with_environment): New function.
17249 (syms_of_frame): Defsubr it. Initialize and staticpro Qenvironment.
17250 (get_future_frame_param): New function.
17251 (Fmake_terminal_frame): Use it.
17252 (x_set_frame_parameters, x_set_screen_gamma): Use FRAME_RIF.
17253
17254 * sysdep.c (init_sys_modes, reset_sys_modes): Update for renames.
17255 * sysdep.c (reset_sys_modes): Update for renames.
17256
17257 * keyboard.c (tty_read_avail_input): New function.
17258 (Fset_input_interrupt_mode, Fset_output_flow_control): New functions.
17259 (syms_of_keyboard): Defsubr them.
17260 (Fset_input_meta_mode, Fset_quit_char): New functions.
17261 (Fset_input_mode): Split to above functions.
17262 (read_char_minibuf_menu_prompt): Add wrong_kboard_jmpbuf
17263 parameter. Use it in call to `read_char'.
17264 (read_char): Declare. Update call to `read_char_minibuf_menu_prompt'.
17265 Set wrong_kboard_jmpbuf correctly in recursive calls.
17266 Use current_kboard to access Vkeyboard_translate_table.
17267 Enhance comment before extra longjmp to wrong_kboard_jmpbuf.
17268 Add wrong_kboard_jmpbuf parameter to allow for recursive calls.
17269 Update longjmp invocations. Remember the original current_kboard,
17270 and longjmp to `wrong_kboard_jmpbuf' when a filter, timer or sentinel
17271 changes it. Comment out unnecessary calls to
17272 `record_single_kboard_state' and `any_kboard_state'.
17273 Update recursive calls.
17274 (wrong_kboard_jmpbuf): Remove global variable.
17275 (read_key_sequence): Remove unused variable wrong_kboard_jmpbuf.
17276 Handle deleted interrupted_kboards correctly; that is a legal
17277 case. Add `wrong_kboard_jmpbuf' local variable. Update setjmp
17278 and read_char calls. Abort if interrupted_kboard died in read_char.
17279 (any_kboard_state, single_kboard_state)
17280 (push_frame_kboard): Remove function.
17281 (pop_kboard): Switch out of single_kboard mode if the kboard has
17282 been deleted. Remove unused variable. Help debugging by not
17283 changing current_kboard unnecessarily. Set current_kboard to the
17284 kboard of the selected frame when the stored kboard object has
17285 been deleted before pop_kboard.
17286 (temporarily_switch_to_single_kboard): Change first parameter to a
17287 frame pointer. Throw an error when caller wants to change kboards
17288 while in single_kboard mode. Don't push_kboard if we weren't in
17289 single kboard state. Don't pop_kboard if we popped into any
17290 kboard state.
17291 (restore_kboard_configuration): Abort if pop_kboard changed the
17292 kboard in single_kboard mode. Call pop_kboard only after setting
17293 up single_kboard mode.
17294 (Frecursive_edit): Switch to single_kboard mode only in nested
17295 command loops.
17296 (cmd_error, command_loop, command_loop_1, timer_check):
17297 Comment out unnecessary call to `any_kboard_state' and
17298 `record_single_kboard_state'.
17299 (delete_kboard): Exit single_kboard mode if we have just deleted
17300 that kboard. Use FRAME_KBOARD.
17301 (interrupt_signal): Use `Fkill_emacs' to exit Emacs, not
17302 `fatal_error_signal'.
17303 (record_single_kboard_state): Don't push_kboard if we weren't in
17304 single kboard state. Don't pop_kboard if we popped into any
17305 kboard state.
17306 (push_frame_kboard): Rename to push_kboard.
17307 (kbd_buffer_get_event): Use FRAME_TERMINAL.
17308 (read_avail_input): Read input from all terminals.
17309 (mark_kboards): Also mark Vkeyboard_translate_table.
17310 (kbd_buffer_store_event_hold): Simplify condition.
17311 (read_key_sequence): Reinitialize fkey and keytran at each replay.
17312 (Vkeyboard_translate_table): Move to struct kboard.
17313 (init_kboard): Initialize Vkeyboard_translate_table.
17314 (syms_of_keyboard): Use DEFVAR_KBOARD to define
17315 Vkeyboard_translate_table. Update doc strings. Update docs of
17316 local-function-key-map and function-key-map.
17317
17318 * terminal.c: New file.
17319
17320 * term.c: Include errno.h.
17321 (Vring_bell_function, device_list, initial_device)
17322 (next_device_id, ring_bell, update_begin, update_end)
17323 (set_terminal_window, cursor_to, raw_cursor_to)
17324 (clear_to_end, clear_frame, clear_end_of_line)
17325 (write_glyphs, insert_glyphs, delete_glyphs, ins_del_lines)
17326 (Fdisplay_name, create_device, delete_device): Move to terminal.c.
17327 (syms_of_term): Move their initialization to terminal.c.
17328 (get_tty_terminal, Fdisplay_tty_type, Ftty_display_color_p)
17329 (Ftty_display_color_cells)
17330 (Ftty_no_underline, Fsuspend_tty, Fresume_tty, create_tty_output)
17331 (clear_tty_hooks, set_tty_hooks)
17332 (init_tty, maybe_fatal): New functions.
17333 (Ftty_type): Return nil if terminal is not on a tty instead of
17334 throwing an error. Doc update.
17335 (syms_of_term) <Vsuspend_tty_functions, Vresume_tty_functions>:
17336 Doc update. Initialize new subrs and variables.
17337 (delete_tty): Use terminal->deleted.
17338 (tty_set_terminal_modes): Rename from set_terminal_modes.
17339 (tty_reset_terminal_modes): Rename from reset_terminal_modes.
17340 (set_scroll_region): Rename to `tty_set_scroll_region'.
17341 (turn_on_insert): Rename to `tty_turn_on_insert'.
17342 (turn_off_insert): Rename to `tty_turn_off_insert'.
17343 (turn_off_highlight): Rename to `tty_turn_off_highlight'.
17344 (turn_on_highlight): Rename to `tty_turn_on_highlight'.
17345 (toggle_highligh): Rename to `tty_toggle_highlight'.
17346 (background_highlight): Rename to `tty_background_highlight'.
17347 (highlight_if_desired): Rename to `tty_highlight_if_desired'.
17348 (tty_ring_bell, tty_update_end, tty_set_terminal_window)
17349 (tty_set_scroll_region, tty_background_highlight)
17350 (tty_cursor_to, tty_raw_cursor_to, tty_clear_to_end)
17351 (tty_clear_frame, tty_clear_end_of_line, tty_write_glyphs)
17352 (tty_insert_glyphs, tty_delete_glyphs, tty_ins_del_lines)
17353 (term_get_fkeys, tty_setup_colors, dissociate_if_controlling_tty):
17354 Add static modifier.
17355 (tty_reset_terminal_modes, tty_set_terminal_window)
17356 (tty_set_scroll_region, tty_background_highlight)
17357 (tty_highlight_if_desired, tty_cursor_to)
17358 (tty_raw_cursor_to, tty_clear_to_end, tty_clear_frame)
17359 (tty_clear_end_of_line, tty_write_glyphs, tty_insert_glyphs)
17360 (tty_delete_glyphs, tty_ins_del_lines, turn_on_face): Update for
17361 renames.
17362
173632007-08-28 Jan Djärv <jan.h.d@swipnet.se>
17364
17365 * keyboard.c: Qrtl is new.
17366 (parse_tool_bar_item): Handle :rtl keyword.
17367 (syms_of_keyboard): Intern :rtl keyword.
17368
17369 * dispextern.h (enum tool_bar_item_idx): Add TOOL_BAR_ITEM_RTL_IMAGE.
17370
17371 * gtkutil.c (xg_tool_bar_expose_callback): Just do SET_FRAME_GARBAGED
17372 so no Lisp code is executed.
17373 (file_for_image, find_rtl_image): New functions.
17374 (xg_get_image_for_pixmap): Use file_for_image.
17375 (update_frame_tool_bar): If direction is RTL, use RTL image if
17376 defined. Use Gtk stock images if defined.
17377
173782007-08-27 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
17379
17380 * macterm.c (x_draw_composite_glyph_string_foreground): Draw rectangle
17381 for nonexistent or zero-width glyph in composition glyph.
17382
173832007-08-25 Stefan Monnier <monnier@iro.umontreal.ca>
17384
17385 * m/amdx86-64.h: Redirect to intel386.h if compiling for i386.
17386
17387 * xdisp.c (Finvisible_p): New function.
17388 (syms_of_xdisp): defsubr it.
17389
173902007-08-24 Juanma Barranquero <lekktu@gmail.com>
17391
17392 * image.c (syms_of_image) <image-library-alist, cross-disabled-images>:
17393 Doc fixes.
17394
173952007-08-24 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
17396
17397 * mac.c [MAC_OSX] (select_and_poll_event, sys_select): Fix last changes.
17398
173992007-08-24 Martin Rudalics <rudalics@gmx.at>
17400
17401 * fileio.c (Finsert_file_contents): Consult CHARS_MODIFF to tell
17402 whether decoding has modified buffer contents.
17403
174042007-08-24 Jason Rumney <jasonr@gnu.org>
17405
17406 * image.c [HAVE_NTGUI]: Define dynamic loaded functions for SVG.
17407 (Qgdk_pixbuf, Qglib) [HAVE_NTGUI]: New symbols.
17408 (syms_of_image) [HAVE_NTGUI]: Intern and staticpro them.
17409 (init_svg_functions) [HAVE_NTGUI]: New function.
17410 (fn_g_type_init, fn_g_object_unref, fn_g_error_free): New #defines.
17411 (svg_load_image): Use them.
17412 (svg_load_image) [HAVE_NTGUI]: Implement background.
17413
174142007-08-23 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
17415
17416 * Makefile.in (RSVG_LIBS, RSVG_CFLAGS): New variables.
17417 (ALL_CFLAGS): Use ${RSVG_CFLAGS} instead of @RSVG_CFLAGS@.
17418 (LIBX): Remove @RSVG_LIBS@.
17419 (LIBES): Add $(RSVG_LIBS).
17420
17421 * image.c (svg_load_image): Blend with specified background if exists.
17422 Use IMAGE_BACKGROUND. Add Mac OS Support.
17423
17424 * mac.c (wakeup_from_rne_enabled_p) [MAC_OSX]: Remove variable.
17425 (ENABLE_WAKEUP_FROM_RNE, DISABLE_WAKEUP_FROM_RNE) [MAC_OSX]:
17426 Remove macros.
17427 [MAC_OSX] (socket_callback): Do nothing.
17428 [MAC_OSX] (select_and_poll_event): Use CFRunLoopRunInMode instead of
17429 ReceiveNextEvent.
17430 [MAC_OSX] (sys_select): Likewise. Don't set context as argument to
17431 socket_callback.
17432 (mac_wakeup_from_rne) [MAC_OSX]: Do nothing.
17433
174342007-08-22 Glenn Morris <rgm@gnu.org>
17435
17436 * image.c (x_find_image_file): Search in etc/images/ rather than etc/.
17437
174382007-08-22 Paul Pogonyshev <pogonyshev@gmx.net>
17439
17440 * Makefile.in (ALL_CFLAGS, LIBX): Add RSVG_LIBS.
17441
17442 * image.c: Add support for SVG images. Some additional comments
17443 by Joakim Verona <joakim@verona.se>. When HAVE_RSVG is defined:
17444 (svg_image_p): New function to test for SVG image.
17445 (svg_load): New function to load SVG image.
17446 (svg_load_image): New function, helper for svg_load.
17447 (Qsvg): New Lisp_object.
17448 (svg_keyword_index): New enum.
17449 (svg_format): New static `image_keyword' struct.
17450 (svg_type): New static `image_type' struct.
17451 (librsvg/rsvg.h): Include it.
17452
174532007-08-23 Stefan Monnier <monnier@iro.umontreal.ca>
17454
17455 * lread.c (load_warn_old_style_backquotes): Fix up array size typo.
17456
174572007-08-22 Stefan Monnier <monnier@iro.umontreal.ca>
17458
17459 * lread.c (Qold_style_backquotes): New var.
17460 (syms_of_lread): Init and staticpro it.
17461 (load_warn_old_style_backquotes): New fun.
17462 (Fload): Use them to warn about old style backquotes.
17463 (end_of_file_error, Fload): Remove unused vars.
17464
17465 * lisp.h (Fclear_face_cache, Fx_send_client_event): Declare.
17466
17467 * lread.c (Vold_style_backquotes): New var.
17468 (syms_of_lread): Init and export it to Elisp.
17469 (read1): Set it when we find an old-style (back)quote.
17470
174712007-08-22 Jason Rumney <jasonr@gnu.org>
17472
17473 * w32reg.c (SYSTEM_DEFAULT_RESOURCES): Add missing NULL terminator.
17474
174752007-08-22 Katsumi Yamaoka <yamaoka@jpl.org>
17476
17477 * puresize.h (BASE_PURESIZE): Increase to 1140000.
17478
174792007-08-19 Richard Stallman <rms@gnu.org>
17480
17481 * eval.c (Ffunction, Fquote): Signal error if not 1 argument.
17482
174832007-08-19 Andreas Schwab <schwab@suse.de>
17484
17485 * alloc.c (pure): Round PURESIZE up.
17486
174872007-08-17 Jan Djärv <jan.h.d@swipnet.se>
17488
17489 * xterm.c (handle_one_xevent): Remove check that mouse click is in
17490 active frame.
17491
174922007-08-16 Richard Stallman <rms@gnu.org>
17493
17494 * eval.c (Fcommandp): Add parens to clarify.
17495
17496 * minibuf.c (Fall_completions): Use enum for type of table.
17497
17498 * emacs.c (USAGE2): Improve text.
17499
175002007-08-15 Philippe Waroquiers <philippe.waroquiers@eurocontrol.int>
17501
17502 * term.c (tty_default_color_capabilities): Declare static
17503 variables in file scope, to avoid HPUX compiler problem.
17504
175052007-08-13 Jan Djärv <jan.h.d@swipnet.se>
17506
17507 * gtkutil.c (update_frame_tool_bar): Use -1 as index
17508 to gtk_toolbar_insert.
17509
175102007-08-13 Stefan Monnier <monnier@iro.umontreal.ca>
17511
17512 * fileio.c (Finsert_file_contents): Yet Another Int/Lisp_Object Mixup.
17513
17514 * insdel.c (reset_var_on_error): New fun.
17515 (signal_before_change, signal_after_change):
17516 Use it to reset (after|before)-change-functions to nil in case of error.
17517 Bind inhibit-modification-hooks to t.
17518 Don't bind (after|before)-change-functions to nil while they run.
17519
175202007-08-11 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
17521
17522 * xterm.c (x_draw_image_glyph_string): Adjust stipple origin when
17523 filling pixmap with stippled background.
17524
175252007-08-10 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
17526
17527 * macterm.c [TARGET_API_MAC_CARBON] (mac_handle_window_event):
17528 Don't use invisible frame as parent window for repositioning.
17529
175302007-08-10 Stefan Monnier <monnier@iro.umontreal.ca>
17531
17532 * print.c (new_backquote_output): Rename from old_backquote_output.
17533 (print): Inverse its logic (according to its name) so as to match the
17534 behavior of new_backquote_flag in lread.c.
17535
175362007-08-09 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
17537
17538 * gmalloc.c (posix_memalign): New function.
17539
17540 * macterm.c (frame_highlight, frame_unhighlight): Don't call
17541 ActivateControl/DeactivateControl here.
17542 [USE_MAC_TOOLBAR] (free_frame_tool_bar): Suppress animation when
17543 frame-notice-user-settings is non-nil.
17544 [USE_MAC_FONT_PANEL] (mac_handle_font_event): Also record parameter
17545 for kEventParamFMFontStyle.
17546 [TARGET_API_MAC_CARBON] (mac_handle_keyboard_event): Don't check
17547 mac_pass_command_to_system and mac_pass_control_to_system here.
17548 (XTread_socket): Call ActivateControl/DeactivateControl here.
17549 (XTread_socket) [TARGET_API_MAC_CARBON]:
17550 Check mac_pass_command_to_system and mac_pass_control_to_system here.
17551 (mac_handle_window_event) [USE_MAC_TOOLBAR]: Add further workaround
17552 for window repositioning.
17553
175542007-08-08 Glenn Morris <rgm@gnu.org>
17555
17556 * Replace `iff' in doc-strings and comments.
17557
175582007-08-07 Chong Yidong <cyd@stupidchicken.com>
17559
17560 * xdisp.c (move_it_by_lines): Remove incorrect optimization.
17561
175622007-08-07 Martin Rudalics <rudalics@gmx.at>
17563
17564 * fileio.c (Finsert_file_contents): Run format-decode and
17565 after_insert_file_functions on entire buffer when REPLACE is
17566 non-nil and inhibit modification_hooks and point_motion_hooks.
17567 For consistency, run after_insert_file_functions iff something
17568 got inserted. Move signal_after_change and update_compositions
17569 after code running after_insert_file_functions. Make sure that
17570 undo_list doesn't record intermediate steps of the decoding process.
17571
175722007-08-07 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
17573
17574 * emacs.c (main)
17575 [HAVE_GTK_AND_PTHREAD && !SYSTEM_MALLOC && !DOUG_LEA_MALLOC]:
17576 Call malloc_enable_thread on interactive startup.
17577
17578 * gmalloc.c (_malloc_thread_enabled_p) [USE_PTHREAD]: New variable.
17579 (LOCK, UNLOCK, LOCK_ALIGNED_BLOCKS, UNLOCK_ALIGNED_BLOCKS)
17580 [USE_PTHREAD]: Conditionalize with it.
17581 (malloc_atfork_handler_prepare, malloc_atfork_handler_parent)
17582 (malloc_atfork_handler_child, malloc_enable_thread) [USE_PTHREAD]:
17583 New functions.
17584
175852007-08-06 Chong Yidong <cyd@stupidchicken.com>
17586
17587 * xdisp.c (redisplay_window): When restoring original buffer
17588 position, make sure it is still valid.
17589
17590 * image.c (png_load): Ignore png-supplied background color.
17591
175922007-08-06 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
17593
17594 * mac.c [TARGET_API_MAC_CARBON] (cfdate_to_lisp): Obtain microsec value.
17595 Use kCFAbsoluteTimeIntervalSince1970.
17596
17597 * macmenu.c (quit_dialog_event_loop) [TARGET_API_MAC_CARBON]:
17598 New variable.
17599 [TARGET_API_MAC_CARBON] (mac_handle_dialog_event): Set it if dialog
17600 event loop should be quit.
17601 [TARGET_API_MAC_CARBON] (create_and_show_dialog) [!MAC_OSX]:
17602 Quit dialog event loop if quit_dialog_event_loop is set.
17603
17604 * macselect.c [!TARGET_API_MAC_CARBON]: Include Scrap.h.
17605 (Selection): New typedef. Use instead of ScrapRef.
17606 (mac_get_selection_from_symbol): Rename from get_scrap_from_symbol.
17607 (mac_valid_selection_target_p): Rename from valid_scrap_target_type_p.
17608 (mac_clear_selection): Rename from clear_scrap.
17609 (get_flavor_type_from_symbol): New argument SEL and subsume function of
17610 scrap_has_target_type. All uses changed.
17611 (mac_get_selection_ownership_info, mac_valid_selection_value_p)
17612 (mac_selection_has_target_p): New functions.
17613 (mac_put_selection_value): Rename from put_scrap_string.
17614 (mac_get_selection_value): Rename from get_scrap_string.
17615 (mac_get_selection_target_list): Rename from get_scrap_target_type_list.
17616 (put_scrap_private_timestamp, scrap_has_target_type)
17617 (get_scrap_private_timestamp): Remove functions.
17618 (SCRAP_FLAVOR_TYPE_EMACS_TIMESTAMP): Remove define.
17619 (x_own_selection, x_get_local_selection):
17620 Use mac_valid_selection_value_p.
17621 (x_own_selection): Don't use put_scrap_private_timestamp.
17622 Record OWNERSHIP-INFO into Vselection_alist instead.
17623 (x_get_local_selection): Don't check type if request is local.
17624 (Fx_selection_owner_p): Don't use get_scrap_private_timestamp.
17625 Detect ownership change with OWNERSHIP-INFO in Vselection_alist instead.
17626
176272007-08-04 Jan Djärv <jan.h.d@swipnet.se>
17628
17629 * gtkutil.c (xg_tool_bar_callback): Generate two TOOL_BAR_EVENT:s,
17630 add comment explaining why.
17631
176322007-08-03 Richard Stallman <rms@gnu.org>
17633
17634 * fileio.c (Fvisited_file_modtime): Use make_time.
17635
176362007-08-01 Ryo Yoshitake <ryo@shiftmode.net> (tiny change)
17637
17638 * mac.c (init_mac_osx_environment): Adjust load-path on self-contained
17639 build.
17640
176412007-07-31 Stefan Monnier <monnier@iro.umontreal.ca>
17642
17643 * gtkutil.c (xg_tool_bar_callback): Generate a single TOOL_BAR_EVENT.
17644
176452007-07-30 Katsumi Yamaoka <yamaoka@jpl.org>
17646
17647 * puresize.h (BASE_PURESIZE): Increase to 1130000.
17648
176492007-07-30 Richard Stallman <rms@gnu.org>
17650
17651 * lread.c (readevalloop, read1): Treat NBSP as whitespace.
17652
176532007-07-29 Jan Djärv <jan.h.d@swipnet.se>
17654
17655 * gmalloc.c (__malloc_initialize): Remove pthread_once. Not needed.
17656
176572007-07-28 Nick Roberts <nickrob@snap.net.nz>
17658
17659 * xdisp.c (decode_mode_spec): Use '@' instead of 'R' to test for
17660 remote default-directory.
17661
17662 * buffer.c (mode-line-format): Update doc string.
17663
176642007-07-27 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
17665
17666 * w32term.c (w32_draw_fringe_bitmap): Extend fringe background to
17667 scroll bar gap.
17668 (x_scroll_bar_create): Set bar->fringe_extended_p.
17669 (w32_set_vertical_scroll_bar): Put leftmost/rightmost scroll bars
17670 on frame edge. Check fringe background extension. Don't clear
17671 extended fringe background area.
17672
17673 * w32term.h (struct scroll_bar): New member fringe_extended_p.
17674 (w32_fill_area): Enclose multiple statements with do ... while (0).
17675
17676 * xterm.c (x_draw_fringe_bitmap) [USE_TOOLKIT_SCROLL_BARS]:
17677 Extend fringe background to scroll bar gap.
17678 (x_scroll_bar_create) [USE_TOOLKIT_SCROLL_BARS]:
17679 Set bar->fringe_extended_p.
17680 (XTset_vertical_scroll_bar) [USE_TOOLKIT_SCROLL_BARS]:
17681 Put leftmost/rightmost scroll bars on frame edge. Check fringe
17682 background extension. Don't clear extended fringe background area.
17683
17684 * xterm.h (struct scroll_bar) [USE_TOOLKIT_SCROLL_BARS]:
17685 New member fringe_extended_p.
17686
176872007-07-25 Glenn Morris <rgm@gnu.org>
17688
17689 * Relicense all FSF files to GPLv3 or later.
17690
17691 * COPYING: Switch to GPLv3.
17692
176932007-07-25 Stefan Monnier <monnier@iro.umontreal.ca>
17694
17695 * eval.c (Fcommandp): Pay attention to the `interactive-form' property.
17696
17697 * data.c (Finteractive_form): Check for the presence of an
17698 `interactive-form' symbol property more thoroughly.
17699
17700 * data.c (Finteractive_form): Use an `interactive-form' property if
17701 present, analogous to the function-documentation property.
17702
177032007-07-24 Jason Rumney <jasonr@gnu.org>
17704
17705 * w32fns.c (x_real_positions): Get real position from OS instead of
17706 calculating it.
17707
177082007-07-23 Jason Rumney <jasonr@gnu.org>
17709
17710 * filelock.c (current_lock_owner): Allow for @ sign in username.
17711
177122007-07-22 Nick Roberts <nickrob@snap.net.nz>
17713
17714 * xdisp.c (decode_mode_spec): Add case 'R' for to test for
17715 remote default-directory.
17716
17717 * buffer.c (mode-line-format): Describe above case in doc string.
17718
177192007-07-20 Eli Zaretskii <eliz@gnu.org>
17720
17721 * w32proc.c (IMAGE_NT_OPTIONAL_HDR32_MAGIC, IMAGE_OPTIONAL_HEADER32):
17722 Define if not defined.
17723
177242007-07-18 Jason Rumney <jasonr@gnu.org>
17725
17726 * w32proc.c (w32_executable_type): Handle 64 bit executables.
17727
177282007-07-18 Richard Stallman <rms@gnu.org>
17729
17730 * data.c (Fsetq_default): Doc fix.
17731
17732 * eval.c (Fsetq): Doc fix.
17733
177342007-07-18 Juanma Barranquero <lekktu@gmail.com>
17735
17736 * coding.c (Ffind_operation_coding_system):
17737 * eval.c (For, Fand): Doc fixes.
17738 Reported by Johan Bockgård.
17739
177402007-07-18 Jan Djärv <jan.h.d@swipnet.se>
17741
17742 * xfns.c (Fx_focus_frame): Call x_ewmh_activate_frame.
17743
17744 * xterm.h: Declare x_ewmh_activate_frame.
17745
17746 * xterm.c (x_ewmh_activate_frame): New function.
17747 (XTframe_raise_lower): Move code to x_ewmh_activate_frame.
17748
177492007-07-17 Martin Rudalics <rudalics@gmx.at>
17750
17751 * window.c (Fdisplay_buffer): If largest or LRU window is the
17752 only window, split it even if it is not eligible for splitting.
17753 This restores the original behavior broken by the 2007-07-15
17754 change.
17755
177562007-07-17 Glenn Morris <rgm@gnu.org>
17757
17758 * abbrev.c (abbrev_check_chars): New function.
17759 (Fdefine_global_abbrev, Fdefine_mode_abbrev):
17760 Call abbrev_check_chars to check abbrev characters are word
17761 constituents. Doc fix.
17762
177632007-07-17 Stefan Monnier <monnier@iro.umontreal.ca>
17764
17765 * process.c (Fstart_process, Fmake_network_process)
17766 (read_process_output): Fix up last changes.
17767
177682007-07-16 Eli Zaretskii <eliz@gnu.org>
17769
17770 * makefile.w32-in (clean): Don't delete *~.
17771
177722007-07-16 Andreas Schwab <schwab@suse.de>
17773
17774 * window.c (Fdisplay_buffer): Use NILP.
17775 (Fset_window_scroll_bars): Likewise.
17776
177772007-07-15 Martin Rudalics <rudalics@gmx.at>
17778
17779 * window.c (window_min_size_2): New function.
17780 (window_min_size_1, size_window, Fdisplay_buffer)
17781 (Fsplit_window, adjust_window_trailing_edge): Use it to avoid
17782 windows without mode- or header-lines when window-min-height is
17783 too small.
17784 (size_window): Reset nodelete_p after testing it, following an
17785 earlier note by Kim F. Storm.
17786 (display_buffer): Do not set split_height_threshold to twice the
17787 value of window_min_height to avoid changing the value of a
17788 customizable variable. Rather explicitly check whether the
17789 height of the window that shall be splitted is at least as large
17790 as split_height_threshold.
17791 (Fwindow_full_width_p): New defun.
17792 (syms_of_window): Defsubr it.
17793
17794 * window.h: Add EXFUN for Fwindow_full_width_p.
17795
177962007-07-14 Jason Rumney <jasonr@gnu.org>
17797
17798 * process.c [WINDOWSNT]: Don't undefine AF_INET6.
17799
178002007-07-14 Richard Stallman <rms@gnu.org>
17801
17802 * eval.c (maybe_call_debugger): New function.
17803 (find_handler_clause): Use maybe_call_debugger.
17804 Call it when the handler says `debug'.
17805 Eliminate DEBUGGER_VALUE_PTR.
17806 (Fsignal): Eliminate debugger_value.
17807 (Qdebug): New variable.
17808 (syms_of_eval): Initialize it.
17809
178102007-07-14 Juanma Barranquero <lekktu@gmail.com>
17811
17812 * eval.c (Fprogn):
17813 * keyboard.c (Ftrack_mouse):
17814 * print.c (Fwith_output_to_temp_buffer):
17815 * window.c (Fsave_window_excursion): Doc fix.
17816
178172007-07-13 Stefan Monnier <monnier@iro.umontreal.ca>
17818
17819 * eval.c (init_eval_once): Bump max_lisp_eval_depth to 400.
17820
178212007-07-12 Stefan Monnier <monnier@iro.umontreal.ca>
17822
17823 * process.h (struct Lisp_Process): Turn slots infd, outfd,
17824 kill_without_query, pty_flag, tick, update_tick, decoding_carryover,
17825 inherit_coding_system_flag, filter_multibyte, adaptive_read_buffering,
17826 read_output_delay, and read_output_skip from Lisp_Objects to ints.
17827 Remove unused encoding_carryover.
17828 * process.c: Adjust all functions accordingly.
17829
178302007-07-12 Richard Stallman <rms@gnu.org>
17831
17832 * term.c: Include unistd.h only if HAVE_UNISTD_H.
17833
178342007-07-11 Jason Rumney <jasonr@gnu.org>
17835
17836 * makefile.w32-in (LIBS): Include OLE32.
17837
17838 * w32fns.c (w32_msg_pump) <WM_EMACS_CREATEWINDOW>: Initialize COM.
17839 (w32_msg_pump) <WM_DESTROY>: Uninitialize COM.
17840
178412007-07-11 Stefan Monnier <monnier@iro.umontreal.ca>
17842
17843 * lisp.h (struct Lisp_Hash_Table): Turn next_weak into a bare pointer.
17844 * fns.c (weak_hash_tables): Rename from Vweak_hash_tables and turned
17845 from a Lisp_Object into a bare pointer.
17846 (make_hash_table, copy_hash_table, sweep_weak_hash_tables, init_fns):
17847 Adjust the code correspondingly.
17848
17849 * alloc.c (emacs_blocked_free): Remove unused var `bytes_used_now'.
17850
17851 * term.c: Include unistd.h for ttyname, used in handle_one_term_event.
17852 (term_show_mouse_face): Remove unused var `j'.
17853 (handle_one_term_event): Remove unused vars `i' and `j'.
17854 Don't cast return value of ttyname since it's not necessary.
17855
178562007-07-10 Stefan Monnier <monnier@iro.umontreal.ca>
17857
17858 * alloc.c (mark_maybe_pointer): Enforce mult-of-8 alignment when using
17859 USE_LSB_TAG. Suggested by Dmitry Antipov <dmantipov@yandex.ru>.
17860
17861 * fns.c (map_char_table): Use an array of int for `indices' rather than
17862 an array of Lisp_Objects (which are only ever integers anyway).
17863 (Fmap_char_table): Update caller.
17864 * lisp.h: Update prototype.
17865 * keymap.c (Fset_keymap_parent, map_keymap, Fcopy_keymap):
17866 * fontset.c (Ffontset_info):
17867 * casetab.c (set_case_table): Update callers.
17868
17869 * editfns.c (Ftranspose_regions): Use EMACS_INT for positions.
17870
17871 * keymap.c (struct accessible_keymaps_data)
17872 (struct where_is_internal_data): New structures.
17873 (accessible_keymaps_1, where_is_internal_1): Use them to change
17874 interface to adhere to the one used by map_keymap.
17875 (Faccessible_keymaps, where_is_internal): Use map_keymap.
17876 (accessible_keymaps_char_table, where_is_internal_2): Remove.
17877
17878 * keymap.h (map_keymap_function_t): More informative prototype.
17879
178802007-07-10 Guanpeng Xu <herberteuler@hotmail.com>
17881
17882 * search.c (Vinhibit_changing_match_data, search_regs_1): New vars.
17883 (looking_at_1): Don't change search_regs and last_thing_searched
17884 if `inhibit-changing-match-data' is non-nil.
17885 (string_match_1, search_buffer, set_search_regs): Likewise.
17886 (syms_of_search): Add Lisp level definition for
17887 `inhibit-changing-match-data' and set it to nil.
17888 (boyer_moore): If `inhibit-changing-match-data' is non-nil, compute
17889 start and end of the match, instead of using values in search_regs.
17890
178912007-07-01 Stefan Monnier <monnier@iro.umontreal.ca>
17892
17893 * minibuf.c (Fcompleting_read): New value `confirm-only'
17894 for `require-match'.
17895
178962007-06-28 Stefan Monnier <monnier@iro.umontreal.ca>
17897
17898 * fileio.c (Fdo_auto_save): Revert last patch installed unwillingly as
17899 part of the 2007-06-27 change to syms_of_fileio.
17900
179012007-06-28 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
17902
17903 * macterm.c [USE_MAC_TSM] (mac_handle_text_input_event):
17904 Check WINDOWP before using XWINDOW. Consolidate return statements.
17905
179062007-06-27 Richard Stallman <rms@gnu.org>
17907
17908 * fileio.c (syms_of_fileio) <after-insert-file-functions>: Doc fix.
17909
179102007-06-27 Juanma Barranquero <lekktu@gmail.com>
17911
17912 * buffer.c (syms_of_buffer) <selective-display>: Fix typo in docstring.
17913
179142007-06-26 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
17915
17916 * gmalloc.c [HAVE_GTK_AND_PTHREAD]: Check this after including config.h.
17917 (_aligned_blocks_mutex) [USE_PTHREAD]: New variable.
17918 (LOCK_ALIGNED_BLOCKS, UNLOCK_ALIGNED_BLOCKS): New macros.
17919 (_free_internal, memalign): Use them.
17920 (_malloc_mutex, _aligned_blocks_mutex) [USE_PTHREAD]:
17921 Initialize to PTHREAD_MUTEX_INITIALIZER.
17922 (malloc_initialize_1) [USE_PTHREAD]: Don't use recursive mutex.
17923 (morecore_nolock): Rename from morecore. All uses changed.
17924 Use only nolock versions of internal allocation functions.
17925 (_malloc_internal_nolock, _realloc_internal_nolock)
17926 (_free_internal_nolock): New functions created from
17927 _malloc_internal, _realloc_internal, and _free_internal.
17928 (_malloc_internal, _realloc_internal, _free_internal): Use them.
17929 Copy hook value to automatic variable before its use.
17930 (memalign): Copy hook value to automatic variable before its use.
17931
179322007-06-26 Kenichi Handa <handa@m17n.org>
17933
17934 * coding.c (Ffind_operation_coding_system): Docstring improved.
17935 (syms_of_coding): Docstring of `file-coding-system-alist' improved.
17936
179372007-06-25 David Kastrup <dak@gnu.org>
17938
17939 * keymap.c (Fcurrent_active_maps): Add `position' argument.
17940 (Fwhere_is_internal): Adjust call to `current-active-maps' to
17941 cater for additional parameter.
17942
17943 * keymap.h: Adjust number of parameters to `current-active-maps'.
17944
17945 * doc.c (Fsubstitute_command_keys): Adjust call of
17946 `current-active-maps'.
17947
179482007-06-25 David Kastrup <dak@gnu.org>
17949
17950 * callint.c (Fcall_interactively): Make the parsing of interactive
17951 specs somewhat more readable.
17952
179532007-06-23 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
17954
17955 * macterm.c (x_draw_fringe_bitmap) [MAC_OSX]: Extend fringe background
17956 to scroll bar gap also when bitmap fills fringe. Draw only foreground
17957 if extended background has already been filled.
17958
179592007-06-22 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
17960
17961 * macgui.h (USE_CG_DRAWING): Don't require USE_ATSUI.
17962 (USE_MAC_TOOLBAR): Require USE_CG_DRAWING.
17963
17964 * macmenu.c (mac_dialog_modal_filter, Fx_popup_dialog) [MAC_OSX]:
17965 Put special treatment for Fmessage_box, Fyes_or_no_p, and Fy_or_n_p
17966 in #if 0 as it is not compatible with y-or-n-p-with-timeout.
17967 (timer_check) [TARGET_API_MAC_CARBON]: Add extern.
17968 [TARGET_API_MAC_CARBON] (mac_handle_dialog_event): Use QuitEventLoop
17969 instead of QuitAppModalLoopForWindow. Consolidate QuitEventLoop calls.
17970 (pop_down_dialog) [TARGET_API_MAC_CARBON]: New function.
17971 [TARGET_API_MAC_CARBON] (create_and_show_dialog): Use it for unwind.
17972 Run timers during dialog popup.
17973 (Fmenu_or_popup_active_p) [TARGET_API_MAC_CARBON]: Use popup_activated.
17974
179752007-06-21 Jason Rumney <jasonr@gnu.org>
17976
17977 * image.c (convert_mono_to_color_image): Swap fore and background.
17978
179792007-06-20 Jason Rumney <jasonr@gnu.org>
17980
17981 * w32bdf.c (w32_BDF_to_x_font): Unmap memory when finished.
17982 (w32_free_bdf_font): Unmap memory not handle.
17983
179842007-06-20 Sam Steingold <sds@gnu.org>
17985
17986 * gmalloc.c (__morecore): Fix the declaration to comply with the
17987 definition.
17988
179892007-06-20 Juanma Barranquero <lekktu@gmail.com>
17990
17991 * w32term.c (w32_delete_display): Remove leftover declaration.
17992 (w32_define_cursor, w32_initialize): Make static.
17993
17994 * w32.c (_wsa_errlist): Fix typo in error message.
17995 (init_environment): Ignore any environment variable from the
17996 registry having a null value.
17997
179982007-06-20 Glenn Morris <rgm@gnu.org>
17999
18000 * Makefile.in (LIBGIF): Default to -lgif.
18001
180022007-06-17 Jason Rumney <jasonr@gnu.org>
18003
18004 * w32menu.c (add_menu_item): Don't use multibyte string functions on
18005 unicode strings.
18006
180072007-06-16 Juanma Barranquero <lekktu@gmail.com>
18008
18009 * xdisp.c (syms_of_xdisp) <auto-resize-tool-bars>:
18010 Fix typo in docstring.
18011
180122007-06-16 Eli Zaretskii <eliz@gnu.org>
18013
18014 * w32menu.c (add_menu_item): Escape `&' characters in menu items
18015 and their keybindings.
18016
180172007-06-15 Chong Yidong <cyd@stupidchicken.com>
18018
18019 * composite.c (update_compositions): Fix last fix.
18020
180212007-06-14 Jason Rumney <jasonr@gnu.org>
18022
18023 * w32.c (get_process_times_fn): New function pointer.
18024 (globals_of_w32): Intialize it if present in kernel32.dll.
18025 (w32_get_internal_run_time): New function.
18026
18027 * editfns.c (Fget_internal_run_time) [WINDOWSNT]: Use it.
18028
180292007-06-14 Kenichi Handa <handa@etlken.m17n.org>
18030
18031 * composite.c (update_compositions): Check the validness of
18032 compositions.
18033
180342007-06-14 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
18035
18036 * frame.h (struct frame) [MAC_OS]: New member external_tool_bar.
18037 (FRAME_EXTERNAL_TOOL_BAR) [MAC_OS]: Use it.
18038
18039 * macfns.c (mac_window) [USE_MAC_TOOLBAR]: Set toolbar_win_gravity.
18040 (x_set_tool_bar_lines) [USE_MAC_TOOLBAR]: Set FRAME_EXTERNAL_TOOL_BAR.
18041
18042 * macgui.h (USE_MAC_TOOLBAR): New define.
18043
18044 * macmenu.c [TARGET_API_MAC_CARBON] (menu_target_item_handler):
18045 Return immediately unless popup is activated.
18046
18047 * macterm.c (x_draw_fringe_bitmap) [MAC_OSX]: Extend fringe
18048 background to scroll bar gap.
18049 (x_scroll_bar_create) [MAC_OSX]: Set bar->fringe_extended_p.
18050 (XTset_vertical_scroll_bar) [MAC_OSX]: Put leftmost/rightmost
18051 scroll bars on frame edge. Check fringe background extension.
18052 Don't clear extended fringe background area.
18053 (TOOLBAR_IDENTIFIER, TOOLBAR_ICON_ITEM_IDENTIFIER)
18054 (TOOLBAR_ITEM_COMMAND_ID_OFFSET, TOOLBAR_ITEM_COMMAND_ID_P)
18055 (TOOLBAR_ITEM_COMMAND_ID_VALUE, TOOLBAR_ITEM_MAKE_COMMAND_ID):
18056 [USE_MAC_TOOLBAR]: New macros.
18057 (mac_move_window_with_gravity, mac_get_window_origin_with_gravity)
18058 (mac_handle_toolbar_event, mac_image_spec_to_cg_image)
18059 (mac_create_frame_tool_bar, update_frame_tool_bar, free_frame_tool_bar)
18060 (mac_tool_bar_note_mouse_movement, mac_handle_toolbar_command_event)
18061 [USE_MAC_TOOLBAR]: New functions.
18062 (mac_handle_window_event) [USE_MAC_TOOLBAR]: Reposition window
18063 manually if previous repositioning has failed.
18064 (mac_handle_keyboard_event): Use precomputed event kind.
18065 (XTread_socket) [USE_MAC_TOOLBAR]: Handle click in structure region
18066 as tool bar item click. Handle mouse movement over tool bar items.
18067
18068 * macterm.h (struct mac_output) [USE_MAC_TOOLBAR]: New member
18069 toolbar_win_gravity.
18070 (struct scroll_bar) [MAC_OSX]: New member fringe_extended_p.
18071 (update_frame_tool_bar, free_frame_tool_bar) [USE_MAC_TOOLBAR]:
18072 Add externs.
18073
18074 * xdisp.c (update_tool_bar, redisplay_tool_bar, redisplay_window)
18075 [USE_MAC_TOOLBAR]: Sync with GTK+ tool bar display.
18076
180772007-06-14 Chong Yidong <cyd@stupidchicken.com>
18078
18079 * image.c (search_image_cache): Remove unused variable.
18080
180812007-06-13 Chong Yidong <cyd@stupidchicken.com>
18082
18083 * xfns.c, xmenu.c: Link to xaw3d if available.
18084
180852007-06-13 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
18086
18087 * dispextern.h (struct image) [HAVE_WINDOW_SYSTEM]: New members
18088 frame_foreground and frame_background.
18089
18090 * image.c (lookup_image): Save frame foreground and background colors.
18091 (search_image_cache): Check if saved and current frame colors match.
18092
180932007-06-12 Stefan Monnier <monnier@iro.umontreal.ca>
18094
18095 * regex.c (regex_compile): Remove the `regnum' counter.
18096 Use bufp->re_nsub instead. Add support for \(?N:RE\).
18097
180982007-06-11 Stefan Monnier <monnier@iro.umontreal.ca>
18099
18100 * term.c: Include intervals.h to declare Fget_text_property.
18101
181022007-06-10 Jason Rumney <jasonr@gnu.org>
18103
18104 * w32fns.c (Fx_file_dialog): Take size from struct not pointer.
18105
181062007-06-08 Juanma Barranquero <lekktu@gmail.com>
18107
18108 * callint.c (Fcall_interactively):
18109 * editfns.c (Fdelete_and_extract_region):
18110 * fileio.c (Fread_file_name):
18111 * fns.c (Fmapconcat):
18112 * keyboard.c (cmd_error_internal):
18113 * keymap.c (Fkey_description):
18114 * lread.c (openp):
18115 * minibuf.c (read_minibuf):
18116 * search.c (wordify):
18117 * sunfns.c (sel_read):
18118 * xdisp.c (Fformat_mode_line, syms_of_xdisp):
18119 * xfns.c (x_default_scroll_bar_color_parameter):
18120 * xmenu.c (menu_help_callback):
18121 * xselect.c (Fx_get_atom_name):
18122 * xterm.c (x_term_init): Use empty_unibyte_string.
18123
181242007-06-08 Dmitry Antipov <dmantipov@yandex.ru> (tiny change)
18125
18126 * alloc.c (init_strings): Initialize canonical empty strings.
18127 (make_uninit_string, make_uninit_multibyte_string): Return appropriate
18128 canonical empty string when the requested size is 0.
18129
18130 * emacs.c (empty_unibyte_string): Rename from empty_string.
18131 (empty_multibyte_string): New canonical empty string.
18132 (syms_of_emacs): Don't initialize empty_string.
18133
18134 * lisp.h (STRING_SET_UNIBYTE): Return the canonical empty unibyte
18135 string, if appropriate.
18136 (empty_unibyte_string, empty_multibyte_string): New externs.
18137 (empty_string): Remove extern.
18138
18139 * lread.c (syms_of_lread): Use empty_unibyte_string.
18140
181412007-06-07 Jason Rumney <jasonr@gnu.org>
18142
18143 * s/ms-w32.h: Don't define HAVE_TZNAME.
18144
18145 * editfns.c (Fcurrent_time_zone): Remove hack for Japanese Windows.
18146
181472007-06-07 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
18148
18149 * mac.c (xrm_get_preference_database): Remove BLOCK_INPUT.
18150
18151 * macfns.c (mac_get_window_bounds): Move extern to macterm.h.
18152 (compute_tip_xy) [TARGET_API_MAC_CARBON]: Use GetGlobalMouse.
18153
18154 * macmenu.c [TARGET_API_MAC_CARBON] (menu_target_item_handler):
18155 Don't call next handler.
18156 [TARGET_API_MAC_CARBON] (install_menu_target_item_handler):
18157 Remove argument. Install handler to application.
18158 (set_frame_menubar): Don't change deep_p.
18159 (mac_menu_show): Use FRAME_OUTER_TO_INNER_DIFF_X and
18160 FRAME_OUTER_TO_INNER_DIFF_Y.
18161 (DIALOG_BUTTON_COMMAND_ID_OFFSET, DIALOG_BUTTON_COMMAND_ID_P)
18162 (DIALOG_BUTTON_COMMAND_ID_VALUE, DIALOG_BUTTON_MAKE_COMMAND_ID)
18163 [HAVE_DIALOGS]: New macros.
18164 [HAVE_DIALOGS] (mac_handle_dialog_event, create_and_show_dialog):
18165 Use them.
18166 (fill_menubar) [TARGET_API_MAC_CARBON]: Use CFString.
18167
18168 * macselect.c [MAC_OSX] (install_service_handler): Rename from
18169 init_service_handler. All callers changed. Return OSStatus value.
18170
18171 * macterm.c (mac_begin_cg_clip): New arg F. Call SetPortWindowPort.
18172 All callers changed so as not to call SetPortWindowPort.
18173 (mac_begin_cg_clip) [USE_CG_DRAWING]: Call mac_prepare_for_quickdraw.
18174 (mac_draw_image_string_atsui) [USE_ATSUI]: New function created from
18175 mac_draw_string_common.
18176 (mac_draw_image_string_qd): Likewise.
18177 (mac_draw_string_common): Use them. Add INLINE.
18178 (XTmouse_position, x_scroll_bar_report_motion) [TARGET_API_MAC_CARBON]:
18179 Use FRAME_OUTER_TO_INNER_DIFF_X, FRAME_OUTER_TO_INNER_DIFF_Y, and
18180 GetGlobalMouse.
18181 (x_set_mouse_pixel_position) [MAC_OSX]: Use FRAME_OUTER_TO_INNER_DIFF_X
18182 and FRAME_OUTER_TO_INNER_DIFF_Y.
18183 [TARGET_API_MAC_CARBON] (mac_handle_mouse_event): Likewise.
18184 [USE_MAC_TSM] (mac_handle_text_input_event): Likewise.
18185 (x_make_frame_visible) [TARGET_API_MAC_CARBON]: Move code for
18186 repositioning window to mac_handle_window_event.
18187 (x_make_frame_invisible) [TARGET_API_MAC_CARBON]: Move code for
18188 saving window location to mac_handle_window_event
18189 [USE_MAC_FONT_PANEL] (mac_show_hide_font_panel): Install handler here.
18190 (install_menu_target_item_handler): Remove argument in extern.
18191 [TARGET_API_MAC_CARBON] (mac_event_to_emacs_modifiers):
18192 Also accept command events.
18193 (do_keystroke): New function created from XTread_socket.
18194 (init_command_handler): Remove functions.
18195 [TARGET_API_MAC_CARBON] (mac_handle_window_event): Reposition window
18196 and save window location by kEventWindowShowing and kEventWindowHiding
18197 handlers here. Don't call next handler for window state change and
18198 focus events.
18199 (mac_handle_application_event, mac_handle_keyboard_event)
18200 [TARGET_API_MAC_CARBON]: New functions.
18201 (install_window_handler) [TARGET_API_MAC_CARBON]: Register handlers for
18202 kEventWindowShowing and kEventWindowHiding events. Move installation
18203 of mouse, font, text input and menu target item handlers to
18204 install_application_handler.
18205 (install_application_handler) [TARGET_API_MAC_CARBON]: New function.
18206 (mac_handle_cg_display_reconfig) [MAC_OS_X_VERSION_MAX_ALLOWED >= 1030]:
18207 New function.
18208 (init_dm_notification_handler) [MAC_OS_X_VERSION_MAX_ALLOWED >= 1030]:
18209 Register it.
18210 (XTread_socket) [TARGET_API_MAC_CARBON]:
18211 Consolidate SendEventToEventTarget calls.
18212 Use FRAME_OUTER_TO_INNER_DIFF_X and FRAME_OUTER_TO_INNER_DIFF_Y.
18213 Move application activation handler to mac_handle_application_event.
18214 Move keyboard handler to mac_handle_keyboard_event.
18215 (XTread_socket) [!TARGET_API_MAC_CARBON]: Use do_keystroke.
18216 (mac_initialize) [TARGET_API_MAC_CARBON]: Don't call
18217 init_command_handler. Call install_application_handler.
18218
18219 * macterm.h (mac_get_window_bounds): Move extern from macfns.c.
18220 (FRAME_OUTER_TO_INNER_DIFF_X, FRAME_OUTER_TO_INNER_DIFF_Y): New macros.
18221
182222007-06-07 Glenn Morris <rgm@gnu.org>
18223
18224 * emacs.c (main): Use `emacs-copyright' in --version output.
18225
182262007-06-06 Chong Yidong <cyd@stupidchicken.com>
18227
18228 * image.c (xpm_load): Remove spurious call to xpm_init_color_cache.
18229
182302007-06-06 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
18231
18232 * macfns.c (mac_window): Replace WindowPtr with WindowRef.
18233
18234 * macgui.h: Replace WindowPtr with WindowRef.
18235
18236 * macmenu.c: Replace MenuHandle and GetMenuHandle with MenuRef and
18237 GetMenuRef, respectively. Replace WindowPtr with WindowRef.
18238 Replace ControlHandle with ControlRef.
18239 (install_menu_quit_handler): Rename arg MENU_HANDLE to ROOT_MENU.
18240
18241 * macterm.c: Replace MenuHandle and GetMenuHandle with MenuRef and
18242 GetMenuRef, respectively. Replace WindowPtr with WindowRef.
18243 Replace ControlHandle with ControlRef.
18244 (USE_CARBON_EVENTS): Remove. Use TARGET_API_MAC_CARBON instead.
18245 [MAC_OS8] (do_get_menus): Rename variable `menu_handle' to `menu'.
18246
18247 * macterm.h (struct scroll_bar): Rename member control_handle_low
18248 and control_handle_high to control_ref_low and control_ref_high.
18249 All uses changed.
18250 (SCROLL_BAR_CONTROL_REF, SET_SCROLL_BAR_CONTROL_REF): Rename from
18251 SCROLL_BAR_CONTROL_HANDLE and SET_SCROLL_BAR_CONTROL_HANDLE,
18252 respectively. All uses changed.
18253 (XCreatePixmap, XCreatePixmapFromBitmapData, XSetWindowBackground)
18254 (install_window_handler, remove_window_handler): Replace WindowPtr
18255 with WindowRef in externs.
18256
182572007-06-05 Juanma Barranquero <lekktu@gmail.com>
18258
18259 * xfaces.c (Finternal_lisp_face_p): Signal error for face alias loops.
18260
182612007-06-03 Nick Roberts <nickrob@snap.net.nz>
18262
18263 * keyboard.c (discard_mouse_events): Add GPM_CLICK_EVENT case.
18264
18265 * frame.c (Fmouse_position, Fmouse_pixel_position):
18266 Condition on HAVE_GPM too.
18267
18268 * term.c (term_mouse_highlight): Remove unused variables.
18269 (Fterm_open_connection): Set gpm_zerobased to 1.
18270 (term_mouse_movement, term_mouse_click, handle_one_term_event):
18271 Use zero based co-ordinates.
18272 (handle_one_term_event): Report a drag as mouse movement too.
18273
18274 * Makefile.in (MOUSE_SUPPORT): Define for HAVE_GPM.
18275
182762007-06-03 Chong Yidong <cyd@stupidchicken.com>
18277
18278 * image.c (search_image_cache): New function. Require background
18279 color match if background color is unspecified in the image spec.
18280 (uncache_image, lookup_image): Use it.
18281
182822007-06-01 Juanma Barranquero <lekktu@gmail.com>
18283
18284 * window.c (Fshrink_window): Reflow docstring.
18285
182862007-06-02 Chong Yidong <cyd@stupidchicken.com>
18287
18288 * Version 22.1 released.
18289
182902007-06-01 Richard Stallman <rms@gnu.org>
18291
18292 * xfns.c (x_encode_text): Add GCPRO.
18293
182942007-06-01 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
18295
18296 * xfns.c (x_set_name_internal): Save encoded name before
18297 x_encode_text in case string data is relocated.
18298
182992007-05-31 Richard Stallman <rms@gnu.org>
18300
18301 * buffer.c (syms_of_buffer): Doc fix.
18302
183032007-05-30 Nick Roberts <nickrob@snap.net.nz>
18304
18305 * sysdep.c (init_sys_modes): Add rather than replace with
18306 O_NONBLOCK.
18307
18308 * frame.c [HAVE_GPM] (Fset_mouse_pixel_position): Add call to
18309 term_mouse_moveto.
18310
18311 * termhooks.h (term_mouse_moveto): New extern.
18312
18313 * term.c (mouse_face_window): Rename...
18314 (Qmouse_face_window): ...to this.
18315 (term_show_mouse_face, term_clear_mouse_face)
18316 (term_mouse_highlight): Use Qmouse_face_window.
18317 (term_mouse_moveto): New function.
18318 (term_mouse_position): Make it work.
18319 (syms_of_term): Uncomment assignment to mouse_position_hook.
18320 Staticpro Qmouse_face_window.
18321
183222007-05-28 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
18323
18324 * xdisp.c (redisplay_internal): Bind inhibit-point-motion-hooks to t
18325 around current_column call.
18326
183272007-05-26 Dan Nicolaescu <dann@ics.uci.edu>
18328
18329 * xfaces.c (syms_of_xfaces): Delete stray semicolon.
18330 * xdisp.c (next_element_from_buffer):
18331 * window.c (delete_window):
18332 * term.c (term_mouse_highlight):
18333 * msdos.c (getdefdir):
18334 * macterm.c (mac_create_bitmap_from_bitmap_data)
18335 (init_font_name_table):
18336 * fns.c (Fsxhash):
18337 * data.c (Fmake_local_variable):
18338 * ccl.c (ccl_driver): Likewise.
18339
183402007-05-24 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
18341
18342 * macterm.c [USE_CARBON_EVENTS] (mac_handle_window_event):
18343 Call mac_wakeup_from_rne on window size change.
18344
183452007-05-25 Chong Yidong <cyd@stupidchicken.com>
18346
18347 * image.c (uncache_image): Fix typo.
18348
183492007-05-23 Johannes Weiner <hannes@saeurebad.de> (tiny change)
18350
18351 * keyboard.c (make_lispy_movement): Condition on HAVE_GPM too.
18352
183532007-05-22 Richard Stallman <rms@gnu.org>
18354
18355 * xterm.c (x_connection_closed): Remove NO_RETURN.
18356
183572007-05-22 Martin Rudalics <rudalics@gmx.at>
18358
18359 * syntax.c (scan_words): Fix arg to UPDATE_SYNTAX_TABLE_BACKWARD.
18360
183612007-05-21 Chong Yidong <cyd@stupidchicken.com>
18362
18363 * image.c (uncache_image): New function.
18364 (Fimage_refresh): New function.
18365
183662007-05-20 Jan Djärv <jan.h.d@swipnet.se>
18367
18368 * Makefile.in: Move GPM check outside HAVE_X_WINDOWS.
18369
183702007-05-20 Nick Roberts <nickrob@snap.net.nz>
18371
18372 * config.in, keyboard.c, Makefile.in, sysdep.c, term.c,
18373 * termhooks.h: Use HAVE_GPM instead of HAVE_GPM_H.
18374
183752007-05-20 Nick Roberts <nickrob@snap.net.nz>
18376
18377 * keyboard.c (make_lispy_event): Make case GPM_CLICK_EVENT
18378 conditional on [HAVE_GPM_H].
18379
183802007-05-19 Stefan Monnier <monnier@iro.umontreal.ca>
18381
18382 * syntax.c (skip_chars): Update syntax-table only after we checked that
18383 the new location is valid.
18384
183852007-05-19 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
18386
18387 * macterm.c (x_calc_absolute_position): Add BLOCK_INPUT around
18388 mac_get_window_bounds.
18389
183902007-05-20 Nick Roberts <nickrob@snap.net.nz>
18391
18392 * Makefile.in (LIBGPM): Allow it to be set from configure.
18393 If set then link Emacs with it.
18394
18395 * config.in: Regenerate.
18396
18397 * lisp.h (add_gpm_wait_descriptor, delete_gpm_wait_descriptor):
18398 New externs.
18399
18400 * termhooks.h [HAVE_GPM_H] (enum event_kind): Add GPM_CLICK_EVENT.
18401 Include gpm.h.
18402 (handle_one_term_event, term_gpm): New externs.
18403
18404 * sysdep.c [HAVE_GPM_H] (init_sys_modes): Make gpm_fd nonblocking
18405 and allow it to be interrupted by SIGIO.
18406
18407 * process.c (gpm_wait_mask, max_gpm_desc): New variables.
18408 (wait_reading_process_output): Wait on gpm_fd too.
18409 (add_gpm_wait_descriptor, delete_gpm_wait_descriptor)): New functions.
18410 (add_gpm_wait_descriptor_called_flag): New variable.
18411 (delete_keyboard_wait_descriptor): Check gpm_wait_mask.
18412
18413 * keyboard.c [HAVE_GPM_H] (Qmouse_fixup_help_message)
18414 (make_lispy_movement, tracking_off, Ftrack_mouse, some_mouse_moved)
18415 (show_help_echo, readable_events, kbd_buffer_get_event, init_keyboard):
18416 Extend HAVE_MOUSE ifdefs to HAVE_GPM_H.
18417 (make_lispy_event): Add case GPM_CLICK_EVENT.
18418 (read_avail_input): Handle mouse input.
18419
18420 * term.c (write_glyphs_with_face): New function.
18421 [HAVE_GPM_H]: Include buffer.h, sys/fcntl.h.
18422 (mouse_face_beg_row, mouse_face_beg_col, mouse_face_end_row)
18423 (mouse_face_end_col, mouse_face_past_end, mouse_face_window)
18424 (mouse_face_face_id, term_gpm, pos_x, pos_y)
18425 (last_mouse_x, last_mouse_y): New variables.
18426 (term_show_mouse_face, term_clear_mouse_face, fast_find_position)
18427 (term_mouse_highlight, term_mouse_movement, term_mouse_position)
18428 (term_mouse_click, handle_one_term_event, Fterm_open_connection)
18429 (Fterm_close_connection): New functions.
18430 (term_init): Initialise mouse_face_window.
18431
184322007-05-19 Chong Yidong <cyd@stupidchicken.com>
18433
18434 * xdisp.c (redisplay_window): If first window line is a
18435 continuation line, recompute the new window start instead of
18436 recentering.
18437
184382007-05-18 Glenn Morris <rgm@gnu.org>
18439
18440 * m/alpha.h (ORDINARY_LINK): No longer define on OpenBSD.
18441 Suggested by Alfred M. Szmidt <ams@gnu.org>.
18442
184432007-05-17 Glenn Morris <rgm@gnu.org>
18444
18445 * m/macppc.h (ORDINARY_LINK): No longer define on OpenBSD.
18446
184472007-05-16 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
18448
18449 * macterm.c [USE_CARBON_EVENTS] (mac_convert_event_ref): Also convert
18450 dead key repeat and up events.
18451
184522007-05-14 Chong Yidong <cyd@stupidchicken.com>
18453
18454 * image.c (pbm_load): Check image size for monochrome pbm.
18455
184562007-05-13 Chong Yidong <cyd@stupidchicken.com>
18457
18458 * xterm.c (XTread_socket): Revert last change.
18459
184602007-05-12 Chong Yidong <cyd@stupidchicken.com>
18461
18462 * image.c (pbm_load): Correctly check image size for greyscale pbm.
18463
18464 * xterm.c (XTread_socket): Yet Another Uncaught X Error Crash (YAUXEC).
18465
184662007-05-07 Stefan Monnier <monnier@iro.umontreal.ca>
18467
18468 * editfns.c (Ftranspose_regions): Yet another int/Lisp_Object
18469 mixup (YAILOM).
18470
184712007-05-07 Andreas Schwab <schwab@suse.de>
18472
18473 * keymap.c (Flookup_key): Fix typo in last change.
18474
184752007-05-07 Stefan Monnier <monnier@iro.umontreal.ca>
18476
18477 * keymap.c (Fdefine_key, Flookup_key): Only do the 0x80->meta_modifier
18478 mapping for unibyte strings.
18479
184802007-05-01 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
18481
18482 * macmenu.c (mac_dialog_show): Apply 2007-04-27 change for xmenu.c.
18483 (Fx_popup_dialog) [MAC_OSX]: Likewise.
18484
184852007-04-29 Richard Stallman <rms@gnu.org>
18486
18487 * insdel.c (replace_range): For undo, record insertion first.
18488
184892007-04-29 Andreas Schwab <schwab@suse.de>
18490
18491 * lisp.h (VECSIZE): Use OFFSETOF.
18492
184932007-04-29 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
18494
18495 * xdisp.c (try_window_reusing_current_matrix): Fix number of
18496 disabled lines.
18497
184982007-04-28 Richard Stallman <rms@gnu.org>
18499
18500 * lread.c (read_escape): In a string, \s is always space.
18501
185022007-04-27 Jan Djärv <jan.h.d@swipnet.se>
18503
18504 * xmenu.c (xdialog_show): Call Fredisplay before showing the dialog.
18505
18506 * gtkutil.c (xg_update_menubar, create_menus): Create empty
18507 submenu for menu bar items.
18508
18509See ChangeLog.10 for earlier changes.
18510
18511;; Local Variables:
18512;; coding: utf-8
18513;; add-log-time-zone-rule: t
aac0c6e3
MR
18514;; End:
18515
76b6f707 18516 Copyright (C) 2007, 2008, 2009 Free Software Foundation, Inc.
aac0c6e3
MR
18517
18518 This file is part of GNU Emacs.
18519
18520 GNU Emacs is free software: you can redistribute it and/or modify
18521 it under the terms of the GNU General Public License as published by
18522 the Free Software Foundation, either version 3 of the License, or
18523 (at your option) any later version.
18524
18525 GNU Emacs is distributed in the hope that it will be useful,
18526 but WITHOUT ANY WARRANTY; without even the implied warranty of
18527 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
18528 GNU General Public License for more details.
18529
18530 You should have received a copy of the GNU General Public License
18531 along with GNU Emacs. If not, see <http://www.gnu.org/licenses/>.
18532
18533;; arch-tag: dfb6ad96-1550-4905-9e53-d2059ee84c40