(load-library): Improve docstring.
[bpt/emacs.git] / src / ChangeLog
CommitLineData
2c55aacf
AS
12009-04-27 Andreas Schwab <schwab@linux-m68k.org>
2
3 * sysdep.c: Include <ctype.h>.
4
b892d3c9
DR
52009-04-27 David Reitter <david.reitter@gmail.com>
6
7 * nsfont.m (nsfont_open): remove unused variable shrink.
8 Remove commented-out code.
9
9d0644c4
JB
102009-04-26 Johan Bockgård <bojohan@gnu.org>
11
12 * keyboard.c (syms_of_keyboard) <input-decode-map>: Doc fix.
13
b7053016
JR
142009-04-25 Jason Rumney <jasonr@gnu.org>
15
16 * w32font.c (clear_cached_metrics): Remove, unused since 2008-08-02.
17
4e8231f3
YM
182009-04-25 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
19
20 * fringe.c (init_fringe_bitmap) [HAVE_X_WINDOWS && WORDS_BIG_ENDIAN]:
21 Swap bytes in short integer if fringe bitmap width > 8.
22
493dcf2c
KH
232009-04-23 Kenichi Handa <handa@m17n.org>
24
25 * xfaces.c (Fx_list_fonts): If a font size is specified in
26 PATTERN, set it in returned scalable fonts.
27
401e9e57
CY
282009-04-22 Chong Yidong <cyd@stupidchicken.com>
29
708e05dc
CY
30 * keyboard.c (Fset_input_meta_mode): Doc fix.
31
32 * dispnew.c (Fsend_string_to_terminal): Doc fix.
33
34 * data.c (Fterminal_local_value, Fset_terminal_local_value): Doc
35 fixes.
36
37 * coding.c (Fterminal_coding_system): Doc fix.
38
39 * xfns.c (Fx_display_grayscale_p, Fx_display_pixel_width)
40 (Fx_display_pixel_height, Fx_display_planes)
41 (Fx_display_color_cells, Fx_server_max_request_size)
42 (Fx_server_vendor, Fx_server_version, Fx_display_screens)
43 (Fx_display_mm_height, Fx_display_mm_width)
44 (Fx_display_backing_store, Fx_display_visual_class)
45 (Fx_display_save_under, Fx_close_connection, Fx_synchronize): Doc
46 fixes, replacing "terminal id" with "terminal object".
47 (check_x_display_info): Handle terminal objects instead of
48 terminal ids.
49
401e9e57
CY
50 * term.c (Ftty_display_color_p, Ftty_display_color_cells)
51 (Ftty_type, Fcontrolling_tty_p, Ftty_no_underline, Fsuspend_tty)
fdc496e7
CY
52 (Fresume_tty, Vsuspend_tty_functions, Vresume_tty_functions): Doc
53 fixes, replacing "terminal id" with "terminal object".
401e9e57 54
df80c7f0
KH
552009-04-21 Kenichi Handa <handa@m17n.org>
56
5a8f12af 57 * font.c (font_load_for_lface): Cancel previous change (bug#2994).
c0a6070d 58 (font_score): Check AVGWIDTH too.
908567ef 59
df80c7f0
KH
60 * coding.c (decode_coding_utf_16): Reduce charbuf_end for the
61 worst case.
62 (decode_coding_emacs_mule, decode_coding_iso_2022)
63 (decode_coding_sjis, decode_coding_big5, decode_coding_charset):
64 Likewise.
65
705af33f
JR
662009-04-19 Jason Rumney <jasonr@gnu.org>
67
68 The following changes fix Bug#3005 for wide glyphs on each platform,
b71ac3dd 69 without reintroducing Bug#1258 for stretch glyphs.
705af33f
JR
70
71 * xterm.c (x_draw_bar_cursor): Limit cursor width differently for
72 BAR_CURSOR and HBAR_CURSOR. Calculate width of HBAR_CURSOR using
73 get_phys_cursor_geometry.
74
b71ac3dd 75 * w32term.c (x_draw_bar_cursor): Limit cursor width differently
705af33f
JR
76 for BAR_CURSOR and HBAR_CURSOR. Calculate width of HBAR_CURSOR
77 using get_phys_cursor_geometry.
78
79 * nsterm.m (ns_draw_window_cursor): HBAR_CURSOR width already
80 correctly calculated.
81
dc2933eb
JD
822009-04-19 Jan Djärv <jan.h.d@swipnet.se>
83
84 * gtkutil.c (xg_tool_bar_menu_proxy, update_frame_tool_bar): Use
85 G_CALLBACK instead of GTK_SIGNAL_FUNC which is deprecated.
86 (xg_initialize): Use g_type_class_ref instead of gtk_type_class which
87 is deprecated.
88
973e7849
AS
892009-04-18 Andreas Schwab <schwab@linux-m68k.org>
90
91 * font.c (font_put_frame_data): Use xfree instead of free.
92
314d66f4
JB
932009-04-17 Juanma Barranquero <lekktu@gmail.com>
94
95 * w32font.c (Qja, Qko): Remove declarations.
96 (syms_of_w32font): Don't DEFSYM them.
97
cf702558
CY
982009-04-17 Chong Yidong <cyd@stupidchicken.com>
99
100 * font.c (Qja, Qko): Move definitions here from ftfont.c.
101
102 * font.h (Qja, Qko): Extern them.
103
104 * ftfont.c (Qja, Qko): Remove declarations.
105
106 * xfont.c (Qja, Qko): Remove declarations.
107
b50504f5
KH
1082009-04-17 Kenichi Handa <handa@m17n.org>
109
bde25748
KH
110 * editfns.c (Ftranslate_region_internal): Use Fconcat to make a
111 string from a vector to handle Latin-1 characters correctly.
112
b50504f5
KH
113 * ftfont.c (ftfont_pattern_entity): Return a newly allocated
114 entity even if the cache hits.
115
f4646fff
AS
1162009-04-16 Andreas Schwab <schwab@linux-m68k.org>
117
118 * search.c (boyer_moore): Use zero as marker value for a possible
6340c70e 119 match instead of depending on overflow behavior. (Bug#2844)
f4646fff 120
e7deaab0
AS
121 * search.c: Use EMACS_INT for buffer positions. Add prototypes.
122 * lisp.h: Adjust prototypes.
123
0a0e7d49
CY
1242009-04-16 Chong Yidong <cyd@stupidchicken.com>
125
126 * keyboard.c (adjust_point_for_property): Disable 2009-02-12
127 change (Bug#3003).
128
3c908a57
KH
1292009-04-16 Kenichi Handa <handa@m17n.org>
130
bd0af90d
KH
131 * xfont.c (xfont_has_char): Special handling of `ja' and `ko'
132 adstyle.
133
134 * xftfont.c (xftfont_has_char): Special handling of `ja' and `ko'
135 adstyle.
136
137 * ftfont.c (Qja, Qko): Don't make them static.
138 (enum ftfont_cache_for): New enum.
139 (fc_charset_table): Undo the previous change.
140 (ftfont_get_latin1_charset): Delete it.
141 (ftfont_pattern_entity): Check cache by ftfont_lookup_cache. Set
142 FONT_SIZE_INDEX of the entity to 0 for a scalable font. For a
143 non-scarable font, try to get AVERAGE_WIDTH.
144 (ftfont_lookup_cache): Argument FOR-FACE is changed to CACHE_FOR.
145 Change ft_face_cache from a list of a hash-table. Don't check
146 `ja' and `ko' adstyle here.
147 (ftfont_get_fc_charset): Call ftfont_lookup_cache with
148 FTFONT_CACHE_FOR_CHARET.
149 (ftfont_get_charset): Undo the previous change.
150 (ftfont_open): Call ftfont_lookup_cache with
151 FTFONT_CACHE_FOR_FACE.
152 (ftfont_close): Likewise.
153 (ftfont_has_char): Special handling of `ja' and `ko' adstyle.
154
155 * font.c (font_sort_entites): Change the meaning of the arg
156 BEST-ONLY. Don't optimize for VEC of lenght 1.
157 (font_select_entity): Just return the value of font_sort_entites.
158
159 * xfaces.c (merge_face_vectors): Reflect font properties in
160 to[LFACE_FONT_INDEX] to the other face attributes. Don't call
161 font_clear_prop if a face attribute doesn't change.
162
3c908a57
KH
163 * charset.h (charset_ksc5601): Extern it.
164
165 * charset.c (charset_ksc5601): New variable.
166 (Fdefine_charset_internal): Set charset_ksc5601.
167 (init_charset_once): Initialize charset_ksc5601 to -1.
168
d65859c3
DN
1692009-04-15 Dan Nicolaescu <dann@ics.uci.edu>
170
171 * fileio.c (history_delete_duplicates): Remove unused declaration.
172
173 * callint.c (history_delete_duplicates): New declaration.
174 (Fcall_interactively): Remove command history duplicates when
175 history_delete_duplicates is true.
176
3ba010e5
EZ
1772009-04-14 Eli Zaretskii <eliz@gnu.org>
178
179 * buffer.c (syms_of_buffer) <line-spacing>: Doc fix.
180
06f19b91
KH
1812009-04-14 Kenichi Handa <handa@m17n.org>
182
183 * font.c (Ffont_info): Fix docstring. Fix the second element of
184 the returned value (bug#2949).
185
2cce8bfc
CY
1862009-04-14 Chong Yidong <cyd@stupidchicken.com>
187
188 * xdisp.c (Vwrap_prefix, Vline_prefix): Reflow docstrings.
189
d156542d
KH
1902009-04-14 Kenichi Handa <handa@m17n.org>
191
192 * xfont.c (xfont_has_char): The font has C if C is ASCII and the
193 encoding charset is ascii_compatible.
194
195 * charset.c (Fdefine_charset_internal): Make charset
196 ascii-compatible if the method is CHARSET_METHOD_OFFSET, the
197 code_offset is 0, and covers all ASCII characters.
198
86fa089e
SM
1992009-04-13 Stefan Monnier <monnier@iro.umontreal.ca>
200
201 * nsselect.m (symbol_to_nsstring, clean_local_selection_data)
202 (ns_string_to_pasteboard_internal):
203 * nsmenu.m (process_dialog):
204 * nsimage.m (ns_load_image): Use SDATA and ASET where appropriate.
205 * nsfont.m (nsfont_open): Use XHASH to make it compile with LISP_UNION.
206 * lisp.h (Fx_load_color_file): Declare.
207
a8a3728b
KH
2082009-04-13 Kenichi Handa <handa@m17n.org>
209
210 * font.c (font_delete_unmatched): Preserve the order of list
211 elements.
212 (font_select_entity): Suppress the code to optimize for the same
213 kind of fonts.
214 (font_load_for_lface): Get a font that supports at least ASCII
215 characters.
216
217 * ftfont.c (Qja, Qko): New variables.
218 (fc_charset_table): Delete uniquifier data for iso8859-1.
219 (ftfont_get_latin1_charset): New function.
220 (get_adstyle_property): New function.
221 (ftfont_pattern_entity): Set FONT_ADSTYLE_INDEX of entity for
222 bitmap fonts.
223 (ftfont_lookup_cache): Handle the case that KEY is a font-entity.
224 Delete iso-8859-1 range from the charset of fonts whose adstyle is
225 `ko' or `ja'.
226 (ftfont_get_fc_charset): Call ftfont_lookup_cache with ENTITY.
227 (ftfont_get_charset): For iso8859-1, call
228 ftfont_get_latin1_charset.
229 (ftfont_list): Don't refuse a font spec with non-nil `adstyle'
230 property.
231 (ftfont_open): Call ftfont_lookup_cache with ENTITY.
232 (syms_of_ftfont): DEFSYM Qja and Qko.
233
483670b5
KH
2342009-04-09 Kenichi Handa <handa@m17n.org>
235
12b55765
KH
236 * charset.c (map_charset_chars): For a charset of `superset'
237 method, fix calculation of code range.
238
483670b5
KH
239 * font.c (font_put_extra): If VAL is nil, delete the slot for PROP
240 from the list of extra properties.
241 (font_clear_prop): Be sure to delete `:name' font property.
242
57d3b93b
KH
2432009-04-08 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
244
b4b2c2ca
YM
245 * dispnew.c (redraw_overlapping_rows): Fix detection of
246 overlapping for topmost and bottommost rows.
247
57d3b93b
KH
248 * ftfont.c (ftfont_text_extents): Fix calculation of
249 metrics->descent.
250
472c3609
JR
2512009-04-06 Jason Rumney <jasonr@gnu.org>
252
253 * frame.c (x_set_font): Avoid C99 mid-block variable declaration.
254
ab193662
KH
2552009-04-06 Kenichi Handa <handa@m17n.org>
256
257 * ftxfont.c (ftxfont_draw_backgrond): Fix args to XFillRectangle.
258
259 * xftfont.c (xftfont_open): Fix setting font->underline_thickness.
260
0c26f026
KH
2612009-04-06 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
262
263 * ftfont.c (ftfont_open): Fix checking of the return value of
264 FT_Load_Char. Fix setting font->underline_thickness.
265
e173bbce
CY
2662009-04-04 Chong Yidong <cyd@stupidchicken.com>
267
268 * terminal.c (Fterminal_name, Fdelete_terminal, Fterminal_name)
269 (Fterminal_parameters, Fterminal_parameter)
270 (Fset_terminal_parameter): In doc string, refer to terminal
271 objects rather than terminal ids.
272
693a2698
EZ
2732009-04-04 Eli Zaretskii <eliz@gnu.org>
274
275 * dosfns.c (system_process_attributes) [SYSTEM_MALLOC]: Don't call
276 ret_lim_data. (Bug#2867)
277
d5221487
CY
2782009-04-03 Chong Yidong <cyd@stupidchicken.com>
279
280 * term.c (produce_stretch_glyph): Reduce width of stretch glyphs
281 so they don't get wider than the window, matching 2006-01-23
282 change to the partner function in xdisp.c (Bug#2800).
283
223509a3
KH
2842009-04-03 Kenichi Handa <handa@m17n.org>
285
286 * print.c (print_object): Make each lowest sub_char_table start a
287 new line (Bug#2866).
288
74fcd0b1
KH
2892009-04-02 Kenichi Handa <handa@m17n.org>
290
291 * fontset.c (fontset_font): Record no-font when a fontset
292 explicitly tells not to try another font-specs.
293
c542407d
SM
2942009-03-30 Pierre Poissinger <pierre.poissinger@gmail.com> (tiny change)
295
296 * charset.c (map_charset_for_dump): Add missing UNGCPRO.
297
e3869731
KH
2982009-03-30 Kenichi Handa <handa@m17n.org>
299
d8d2f142
KH
300 * fontset.c (fontset_from_font): Specify only registry in a
301 font-spec for all characters supported by that registry.
302
e3869731
KH
303 * ftfont.c: Fix previous change. Define ftfont_variation_glyphs
304 even if HAVE_M17N_FLT is not defined.
305
5da5f805
CY
3062009-03-29 Sebastian Rose <sebastian_rose@gmx.de> (tiny change)
307
308 * ftfont.c: Conditionalize prototyping and use of
309 ftfont_variation_glyphs.
310
ab226c50
SM
3112009-03-28 Stefan Monnier <monnier@iro.umontreal.ca>
312
9628fed7
SM
313 * frame.c (delete_frame): Work around compiler bug.
314
315 * editfns.c (general_insert_function): Adjust to insdel.c changes.
316 * insdel.c (prepare_to_modify_buffer, signal_before_change):
317 Some more EMACS_INT.
318 * lisp.h (copy_text, count_size_as_multibyte): Fix last change.
319
320 * xdisp.c (dump_glyph): Fix typo.
321
ae19ba7c
SM
322 * insdel.c (move_gap, move_gap_both, gap_left, gap_right)
323 (adjust_markers_gap_motion, adjust_markers_for_delete)
324 (adjust_markers_for_insert, adjust_point)
325 (adjust_markers_for_replace, make_gap_larger, make_gap_smaller)
326 (make_gap, copy_text, count_size_as_multibyte, insert)
327 (insert_and_inherit, insert_before_markers)
328 (insert_before_markers_and_inherit, insert_1)
329 (count_combining_before, count_combining_after, insert_1_both)
330 (insert_from_string, insert_from_string_before_markers)
331 (insert_from_string_1, insert_from_gap, insert_from_buffer)
332 (insert_from_buffer_1, adjust_after_replace)
333 (adjust_after_replace_noundo, adjust_after_insert, replace_range)
334 (replace_range_2, del_range, del_range_1, del_range_byte)
335 (del_range_both, del_range_2, modify_region)
336 (prepare_to_modify_buffer, signal_before_change)
337 (signal_after_change, Fcombine_after_change_execute): Use EMACS_INT
338 for buffer positions and sizes.
339 * lisp.h: Adjust prototypes accordingly.
340
341 * fileio.c (adjust_markers_for_delete): Move declaration to lisp.h.
342 (non_regular_inserted, non_regular_nbytes, read_non_regular)
343 (Finsert_file_contents): Use EMACS_INT for buffer positions.
344
ab226c50
SM
345 * fileio.c (Finsert_file_contents): Don't limit size to INT_MAX/4.
346
46dfb8fb
JD
3472009-03-27 Jan Djärv <jan.h.d@swipnet.se>
348
349 * frame.c (x_set_font): If the fullscreen property is non-nil, adjust
350 lines and columns so we keep the same pixel height and width.
351
352 * xterm.c (handle_one_xevent): Call x_handle_net_wm_state if
353 the property _NET_WM_STATE has changed.
46dfb8fb
JD
354 (x_handle_net_wm_state): New function to update frame parameter
355 fullscreen.
356 (x_term_init): Initialize atoms for _NET_WM_STATE.
357
358 * xterm.h (struct x_display_info): Add atoms for _NET_WM_STATE.
359
d347e494
SM
3602009-03-27 Kevin Ryde <user42@zip.com.au>
361
362 * keyboard.c (tty_read_avail_input): Don't treat a -1 return from
363 Gpm_GetEvent as an error that justifies closing the filedescriptor.
364 * term.c (close_gpm): Get the filedescriptor as a (new) parameter.
365 (Fgpm_mouse_stop): Pass that new parameter.
366 * termhooks.h (close_gpm): Adjust prototype.
367
84db11d6
SM
3682009-03-26 Stefan Monnier <monnier@iro.umontreal.ca>
369
c95a5008
SM
370 * lisp.h (Fx_focus_frame): Declare.
371
84db11d6
SM
372 * callint.c (Fcall_interactively): For '^' just delegate the work to
373 handle-shift-selection.
374 (syms_of_callint): Move declaration of shift-select-mode to simple.el.
375
0a1958d6
CY
3762009-03-24 Chong Yidong <cyd@stupidchicken.com>
377
0bfdff23
CY
378 * editfns.c (Ffloat_time): Doc fix (Bug#2768).
379
0a1958d6
CY
380 * data.c (Qinteractive_form): New variable.
381 (Finteractive_form): Use it.
382
383 * eval.c (Fcommandp): Use Qinteractive_form.
384
58aec0d6
JR
3852009-03-24 Jason Rumney <jasonr@gnu.org>
386
387 * fileio.c (Fsubstitute_in_file_name): Always work on a copy.
388 Calculate total size precisely. Decode environment variables
389 before substituting. (Bug#38)
390
553dd618
KH
3912009-03-24 Kenichi Handa <handa@m17n.org>
392
393 * font.c (find_font_encoding): Return Qnil for unsupported
639239cf 394 encoding (Bug#2722).
553dd618 395
c39ea606
JD
3962009-03-23 Jan Djärv <jan.h.d@swipnet.se>
397
398 * gtkutil.c (xg_display_open): Assign a value to gdpy_def, check
399 that gdpy is set.
400
bc9b2b5e
AM
4012009-03-22 Alan Mackenzie <acm@muc.de>
402
403 * callint.c (Finteractive): Clarify the doc string - even
404 promptless elements need \n separators.
405
9f995a76
JR
4062009-03-22 Jason Rumney <jasonr@gnu.org>
407
408 * w32term.c (syms_of_w32term): Doc fix for
409 x-use-underline-position-properties.
410
22749e9a
EZ
4112009-03-21 Eli Zaretskii <eliz@gnu.org>
412
413 * w32.c (getpwuid): Change argument type to unsigned.
414 (struct w32_id): Change type of `rid' member to unsigned.
415 (w32_cached_id, w32_add_to_cache, get_name_and_id): Change type of
416 argument ID to unsigned. All callers changed.
417 (getuid, geteuid, getgid, getegid): Change return type to unsigned.
418
e00553bf
EZ
4192009-03-20 Eli Zaretskii <eliz@gnu.org>
420
421 * editfns.c (Fuser_uid, Fuser_real_uid): If UID as EMACS_INT is
422 negative, produce a float value.
423
424 * dired.c (make_uid, make_gid): New functions.
425 (Ffile_attributes): Use them to avoid negative UID and GID.
426
f761d6b6
JB
4272009-03-20 Juanma Barranquero <lekktu@gmail.com>
428
429 * keyboard.c (Fcurrent_idle_time): Reflow docstring.
430 (syms_of_keyboard) <command-hook-internal, input-method-function>:
431 Fix typos in docstrings.
432
d507f8d7
KH
4332009-03-19 Kenichi Handa <handa@m17n.org>
434
435 * fontset.c (Fset_fontset_font): When a spec of ASCII font is
f761d6b6
JB
436 changed, use font_load_for_lface to get a new font object.
437 Call free_realized_fontset after handling ASCII font change.
d507f8d7
KH
438
439 * frame.c (x_set_font): Handle the case that ARG is a cons.
440
c68845e0
GM
4412009-03-19 Glenn Morris <rgm@gnu.org>
442
443 * fileio.c (Fsubstitute_in_file_name): Doc fix.
444
bfa49dd1
CY
4452009-03-19 Chong Yidong <cyd@stupidchicken.com>
446
447 * indent.c (Fvertical_motion): Undo 2005-01-19 change (Bug#2694).
448
8458d4c1
KH
4492009-03-19 Kenichi Handa <handa@m17n.org>
450
451 * charset.c (load_charset_map_from_file): When a mapfile can't be
452 loaded, signal an error.
453
78e7d1fe
EZ
4542009-03-18 Eli Zaretskii <eliz@gnu.org>
455
456 * dired.c (Ffile_attributes): Make sure UID and GID are always
457 positive, even if the value is too large for a positive EMACS_INT.
458 Doc fix.
459
460 * editfns.c (Fuser_login_name): Support float arguments. Doc fix.
461
5da9fdfa
YM
4622009-03-18 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
463
464 * xmenu.c (xdialog_show): Move Fredisplay call ...
465 (Fx_popup_dialog): ... here.
466
7519c40d
SM
4672009-03-18 Stefan Monnier <monnier@iro.umontreal.ca>
468
469 * dired.c (file_name_completion): Disable the first optimization just
470 installed, since it is not implemented correctly.
471
2cd298e2
SM
4722009-03-17 Stefan Monnier <monnier@iro.umontreal.ca>
473
474 * dired.c (file_name_completion): Check completion-ignored-extensions
c95a5008 475 only if the entry can affect bestmatch.
2cd298e2
SM
476 Stop the search early, as Ftry_completion already does.
477
48d37adf
CY
4782009-03-17 Chong Yidong <cyd@stupidchicken.com>
479
e10c9c93 480 * minibuf.c (Vminibuffer_completion_confirm): Doc fix.
48d37adf 481
9286b16a
CY
4822009-03-15 Chong Yidong <cyd@stupidchicken.com>
483
484 * keyboard.c (parse_menu_item): Don't display remappings as menu
485 equivalent bindings (Bug#788).
486
f7b146dc
JR
4872009-03-15 Jason Rumney <jasonr@gnu.org>
488
489 * w32term.h (WM_EMACS_PAINT): New message.
490 * w32term.c (w32_read_socket): Use it instead of WM_PAINT.
491 * w32fns.c (w32_wnd_proc): Change WM_PAINT to WM_EMACS_PAINT
492 before passing to lisp thread. (Bug#950)
493
f761d6b6 4942009-03-14 David Reitter <david.reitter@gmail.com>
c6c62e78 495
d93f9575
CY
496 * nsterm.m (ns_shutdown_properly, -terminate): Remove global state
497 variable as it was never reset.
498 (ns_term_init): Remove initialization of Lisp-settable defaults
499 and ns_expand_space.
500 (-setPanelFromDefaultValues): Remove ns_expand_space.
501 (-showPreferencesWindow): Send new KEY_NS_SHOW_PREFS key.
502 * nsfont.m (nsfont_open): Remove ns_expand_space, assume -0.5
c6c62e78
DR
503 i.e. no additional spacing, similar to Carbon port.
504
d93f9575
CY
505 * nsterm.h: Define KEY_NS_SHOW_PREFS key.
506 * nsfns.m (ns-popup-prefs-panel): Remove.
c6c62e78 507
305018ec
JD
5082009-03-14 Jan Djärv <jan.h.d@swipnet.se>
509
510 * sound.c (alsa_configure): Remove call to deprecated
511 snd_pcm_sw_params_set_xfer_align.
512
f761d6b6 5132009-03-14 Stephen Berman <stephen.berman@gmx.net>
4a02423f
JD
514
515 * gtkutil.c (xg_tool_bar_callback): Set focus back to the frame
516 after clicking in a detached tool bar.
517 (xg_tool_bar_proxy_callback): Remove call to Fx_focus_frame.
518
46e722a9
SM
5192009-03-13 Stefan Monnier <monnier@iro.umontreal.ca>
520
348db3dd
SM
521 * fontset.c (fontset_from_font, Ffontset_info): YAILOM (Yet another
522 int/Lisp_Object mixup).
46e722a9 523
a3d16f39
KH
5242009-03-13 Kenichi Handa <handa@m17n.org>
525
526 * fontset.c (Ffontset_info, check_fontset_name): New arg frame.
fe24f56a 527 Handle NAME nil and t correctly. Callers changed.
a3d16f39
KH
528 (font_def_arg, add_arg, from_arg, to_arg): Delete them.
529 (set_fontset_font): Change ARG to a vector. Handle range_list in
530 ARG correctly.
531 (Fset_fontset_font): Fix the case that TARGET is both a script
fe24f56a 532 name and charset name. Adjust the arg to set_fontset_font for
a3d16f39
KH
533 the above change.
534 (fontset_from_font): Fix previous change.
fe24f56a 535 (Ffontset_info): Adjust for the 2008-07-09 change of fontset
a3d16f39
KH
536 entry. If FONTSET is the default fontset, don't set the extra
537 slot of the returning char-table.
538
b066e6b6
JB
5392009-03-12 Juanma Barranquero <lekktu@gmail.com>
540
541 * nsfns.m (Fx_close_connection): Doc fix.
542 (Fns_do_applescript): Reflow docstring.
543 (Fns_hide_others, Fns_hide_emacs, Fns_convert_utf8_nfd_to_nfc)
544 (Fx_display_pixel_width, Fx_display_pixel_height)
545 (Fns_display_usable_bounds, Fx_display_planes, Fx_show_tip):
546 Fix typos in docstrings.
547 (Fns_set_alpha): Fix typos in error messages.
548
d472514e 5492009-03-12 David Reitter <david.reitter@gmail.com>
d6220c13 550
d472514e 551 * termhooks.h [HAVE_NS]: Define NS_NONKEY_EVENT to be used for
d6220c13
DR
552 non-key system events on NS. Formerly, NON_ASCII_KEYSTROKE_EVENT
553 were used for such events.
554
d472514e
JB
555 * nsterm.m (newFrame, openFile, fulfillService, changeFont)
556 (toggleToolbar, performDragOperation, runHelp): Use it.
d6220c13 557
d472514e 558 * keyboard.c (parse_menu_item) [HAVE_NS]: Treat new event like
d6220c13
DR
559 NON_ASCII_KEYSTROKE_EVENT, but set used_mouse_menu.
560
fb930676
KH
5612009-03-11 Kenichi Handa <handa@m17n.org>
562
ff85581a
KH
563 * font.h (font_open_by_spec): Extern it.
564
c50b7e98
KH
565 * font.c (font_open_by_spec): New function.
566 (font_open_by_name): Use font_open_by_spec.
567
fb930676
KH
568 * frame.c (x_set_font): When ARG is a font-object, don't alter the
569 fontset of the frame.
570
571 * fontset.c (Fset_fontset_font): When a font for ASCII is changed,
572 modify the default font of frames that use this fontset.
573 (num_auto_fontsets): New variable.
574 (fontset_from_font): Use num_auto_fontsets to decide a fontset
575 name. Be sure to set FONTSET_ASCII to the correct font name.
576 (update_auto_fontset_alist): New function.
577
df4e8455
JB
5782009-03-11 Juanma Barranquero <lekktu@gmail.com>
579
580 * makefile.w32-in: Update dependencies.
581
0a375797
AR
5822009-03-06 Adrian Robert <Adrian.B.Robert@gmail.com>
583
584 * nsfns.m (syms_of_nsfns): Remove Qbuffered.
585
61313fa3
SM
5862009-03-10 Stefan Monnier <monnier@iro.umontreal.ca>
587
588 * buffer.c (Fswitch_to_buffer): Revert part of 2008-10-21's change.
589
b55103fb
CY
5902009-03-10 Chong Yidong <cyd@stupidchicken.com>
591
592 * lread.c (Feval_buffer): Doc fix.
593
dde2559c
KH
5942009-03-09 Kenichi Handa <handa@m17n.org>
595
596 * charset.c (Qfile_name_handler_alist): Extern it.
597 (load_charset_map_from_file): Temporarily bind
598 `file-name-handler-alist' to nil while calling openp. (Bug#2435)
599
df4e8455 6002009-03-06 Aaron Ecay <aaronecay@gmail.com> (tiny change)
340e08a4 601
47f588bb
GM
602 * nsterm.m (ns_draw_vertical_window_border): Draw 1 pixel wide,
603 not two, and use NSRectFill instead of NSDrawGroove. (Bug#2352)
340e08a4 604
4ddf94bd
AR
6052009-03-06 Adrian Robert <Adrian.B.Robert@gmail.com>
606
4c9bdfc2
AR
607 * nsterm.m: Include <signal.h> for SIGTERM used in ns_term_shutdown.
608 (x_set_window_size): Change back to calculated method of setting
609 toolbar height under Cocoa. (Bug#2546)
4ddf94bd
AR
610 (EmacsView-windowWillUseStandardFrame:defaultFrame:): New method.
611 (EmacsView-drawRect:): Completely shortcircuit if ns_in_resize.
612
fe41ae9e
AR
613 * nsfns.m (ns_appkit_version_int): Fix typo in the version macro.
614
4c9bdfc2
AR
615 * nsmenu.m (EmacsMenu-addItemWithWidgetValue:): Don't add
616 accelerator in parens under GNUstep.
617
825d0875
KH
6182009-03-06 Kenichi Handa <handa@m17n.org>
619
620 These changes are to detect incorrect composition sequence without
f3b3be74 621 looking ahead the source. (Bug#2370)
825d0875
KH
622
623 * coding.h: Include "composite.h".
624 (enum compisition_state): New enum.
625 (struct compisition_status): New struct.
626 (struct iso_2022_spec): New member cmp_status.
627 (struct emacs_mule_spec): New struct.
628 (struct coding_system): New members ctext_extended_segment_len and
629 embedded_utf_8. Change the union member
630 spec.emacs_mule_full_support to spec.emacs_mule.
631
632 * coding.c (CODING_ISO_CMP_STATUS): New macro.
633 (CODING_ISO_EXTSEGMENT_LEN, CODING_ISO_EMBEDDED_UTF_8): New macros.
98a326f7 634 (MAX_ANNOTATION_LENGTH): Define to 5.
825d0875
KH
635 (ADD_COMPOSITION_DATA): New arg nbytes.
636 (emacs_mule_char): New arg cmp_status.
637 (DECODE_EMACS_MULE_COMPOSITION_CHAR): Delete it.
638 (DECODE_EMACS_MULE_COMPOSITION_RULE_20): New arg c.
639 (DECODE_EMACS_MULE_COMPOSITION_RULE_21): New arg c.
640 (DECODE_EMACS_MULE_21_COMPOSITION): Delete the arg c.
641 (DECODE_EMACS_MULE_20_RELATIVE_COMPOSITION): Likewise.
642 (DECODE_EMACS_MULE_20_RULEBASE_COMPOSITION): Likewise.
643 (DECODE_EMACS_MULE_COMPOSITION_START): New macro.
644 (EMACS_MULE_COMPOSITION_END): New macro.
645 (emacs_mule_finish_composition): New function.
646 (EMACS_MULE_MAYBE_FINISH_COMPOSITION): New macro.
647 (decode_coding_emacs_mule): Avoid long looking ahead while
648 handling composition.
649 (DECODE_COMPOSITION_RULE): Argument changed to rule and nbytes.
650 (ENCODE_COMPOSITION_RULE): New macro.
651 (finish_composition): New function.
652 (MAYBE_FINISH_COMPOSITION): Call finish_composition.
653 (DECODE_COMPOSITION_START): New implementation.
654 (DECODE_COMPOSITION_END): Likewise.
655 (STORE_COMPOSITION_RULE): New macro.
656 (decode_coding_iso_2022): Avoid long looking ahead while handling
657 composition, CTEXT extended segment, and embedded UTF-8.
658 (setup_coding_system): For a coding of type iso-2022, reset
659 CODING_ISO_EXTSEGMENT_LEN (coding) and
660 CODING_ISO_EMBEDDED_UTF_8 (coding).
661 (get_translation): Delete arguments last_block, from_nchars,
662 to_nchars. Callers changed.
663 (produce_chars): Don't modify charbuf. Adjusted for the change of
664 get_translation.
98a326f7 665 (produce_composition): Adjust for the new annotation sequence.
825d0875 666 (handle_composition_annotation): Likewise.
98a326f7 667 (consume_chars): Adjust for the change of get_translation.
825d0875 668
ccbc4452
AR
6692009-03-05 Adrian Robert <Adrian.B.Robert@gmail.com>
670
4ddf94bd 671 * nsterm.m (ns_select): Shortcircuit if reentrant call. (Bug#2564)
ccbc4452 672
988a7ddb
KH
6732009-03-05 Kenichi Handa <handa@m17n.org>
674
675 * font.c (font_select_entity): New function.
676 (font_find_for_lface): Use font_select_entity to select a font.
677
678 * fontset.c (fontset_find_font): If a font found without
a8a3728b 679 restricting to the characters C doesn't support C, try to find a
988a7ddb
KH
680 font with C restriction.
681
98a326f7 6822009-03-04 Nikolaj Schumacher <me@nschum.de>
2f462d73 683
be1bce46 684 * nsfont.m (nsfont_draw): Compare ns_antialias_text against lisp value.
2f462d73 685
10ea2b82
JR
6862009-03-04 Jason Rumney <jasonr@gnu.org>
687
2c93b248 688 * w32fns.c (w32_wnd_proc): Only ignore IME messages for the
4891ba1d 689 characters that have already been read. (Bug#2569)
2c93b248 690
10ea2b82
JR
691 * image.c (xbm_read_bitmap_data, png_load, svg_load_image):
692 Log an error message if check_image_size failed.
693 (xpm_load_image, pbm_load, jpeg_load, tiff_load, gif_load)
4891ba1d 694 (gs_load): Mention max-image-size in size error message. (Bug#2560)
10ea2b82 695
71a0c011
EZ
6962009-03-02 Eli Zaretskii <eliz@gnu.org>
697
698 * callproc.c (Fcall_process): Bind inhibit-modification-hooks to t
699 when decoding process output.
700
2f63bba8
RS
7012009-03-01 Richard M Stallman <rms@gnu.org>
702
703 * m/mips.h (DATA_SEG_BITS, XUINT, XSET): Definitions disabled.
704
705 * emacs.c (gdb_data_seg_bits) [USE_LSB_TAG]: Make it 0.
706
0a9564cb
EZ
7072009-02-28 Eli Zaretskii <eliz@gnu.org>
708
709 * coding.c (decode_coding_utf_8, decode_coding_utf_16)
710 (decode_coding_emacs_mule, decode_coding_iso_2022)
711 (encode_coding_iso_2022, decode_coding_sjis, decode_coding_big5)
712 (decode_coding_raw_text, decode_coding_charset)
713 (setup_coding_system, decode_eol, decode_coding, consume_chars):
714 Honor inhibit-eol-conversion. (Bug #2186)
715
449148b3
JR
7162009-02-28 Jason Rumney <jasonr@gnu.org>
717
718 * coding.c (detect_coding_charset): If not checking latin extra,
719 fail on characters between 0x80 and 0xA0. (Bug#2354)
720
a4aee864
EZ
7212009-02-28 Eli Zaretskii <eliz@gnu.org>
722
723 * coding.c (detect_coding_charset): Fix change from 2008-10-21.
2a1573ff 724 Also, check iso-latin-*, not only iso-8859-*. (Bug#2497)
a4aee864 725
d88bee5a
GM
7262009-02-27 Glenn Morris <rgm@gnu.org>
727
728 * callint.c (Finteractive): Doc fix.
729
a808f22d
KH
7302009-02-27 Kenichi Handa <handa@m17n.org>
731
732 * lread.c (read_escape): Signal an error for invalid \UXXXXXXXX.
733
caf8d60c
CY
7342009-02-27 Chong Yidong <cyd@stupidchicken.com>
735
736 * font.c (font_style_to_value): Set value for unknown symbols to
737 100 instead of 255.
b61137ea
CY
738 (weight_table, slant_table, width_table): Treat "unspecified" as
739 the default value.
caf8d60c 740
1a0de25c
JB
7412009-02-26 Juanma Barranquero <lekktu@gmail.com>
742
743 * fileio.c (Fnext_read_file_uses_dialog_p): Fix typo in docstring.
744
8fc45744
JB
7452009-02-25 Juanma Barranquero <lekktu@gmail.com>
746
107bd7d1
JB
747 * lread.c (Fload): Stop checking Vloads_in_progress and signal
748 error as soon as a recursive load is detected.
8fc45744 749
f097e223
AR
7502009-02-24 Adrian Robert <Adrian.B.Robert@gmail.com>
751
752 * nsterm.m (ns_ring_bell): Convert rect to window coordinates
753 before caching.
754
8810a12f
KH
7552009-02-24 Kenichi Handa <handa@m17n.org>
756
757 * fontset.c (fontset_find_font): Fix the condition for checking
758 unavailable font.
759
2c7d1565
GM
7602009-02-24 Glenn Morris <rgm@gnu.org>
761
762 * xfaces.c (Finternal_set_font_selection_order): Remove leading
763 whitespace that confuses documentation.
764
a20878b6
MB
7652009-02-23 Miles Bader <miles@gnu.org>
766
767 * process.c (Flist_system_processes, Fprocess_attributes)
768 (syms_of_process): Rename `system-process-attributes' to
769 `process-attributes'.
770
b3b58c01
AS
7712009-02-22 Andreas Schwab <schwab@linux-m68k.org>
772
1b3b981b
AS
773 * coding.h (struct coding_system): Make safe_charsets a pointer to
774 unsigned char.
775 * coding.c (CODING_ISO_REQUEST): Check for safe_charsets content
776 being 255.
777 (SAFE_CHARSET_P): Likewise.
778 (setup_iso_safe_charsets): Properly setup safe_charsets.
779 (Fdefine_coding_system_internal): Likewise.
780 (setup_coding_system): Likewise. Remove unneeded casts.
781 (detect_coding_iso_2022): Compare Viso_2022_charset_list with
782 CODING_ATTR_CHARSET_LIST, not CODING_ATTR_SAFE_CHARSETS. Remove
783 unneeded casts.
784
b3b58c01
AS
785 * insdel.c (del_range_2): Don't modify gap contents when called
786 from decode_coding_object. (Bug#1809)
787
0b6f228c
CY
7882009-02-21 Chong Yidong <cyd@stupidchicken.com>
789
790 * data.c (syms_of_data): Define Qfont_spec, Qfont_entity, and
791 Qfont_object.
792 (Ftype_of): Recognize font objects.
793
794 * lisp.h: Define Qfont_spec, Qfont_entity, Qfont_object extern.
795
796 * font.c (Qfont_spec, Qfont_entity, Qfont_object): Definitions
797 moved to data.c.
798
52f8870b
AR
7992009-02-20 Adrian Robert <Adrian.B.Robert@gmail.com>
800
801 * nsterm.m (x_make_frame_invisible): Unset async_visible,
802 async_iconified. Based on a patch by Christian Lynbech
803 <christian.lynbech@tieto.com>.
804 (EmacsView-windowDidMiniaturize:): Unset async_visible.
805
7087d5e9
GM
8062009-02-20 Glenn Morris <rgm@gnu.org>
807
808 * syntax.c (Fskip_chars_forward): Fix doc typo.
809
41d2ceef
CY
8102009-02-20 Chong Yidong <cyd@stupidchicken.com>
811
812 * keymap.c (Fkeymap_parent): Doc fix (Bug#2391).
813
1a3b7ca6
CY
8142009-02-19 Chong Yidong <cyd@stupidchicken.com>
815
816 * xfns.c (Fx_create_frame): Give Xft driver a higher priority.
817
73cce38d
KH
8182009-02-19 Kenichi Handa <handa@m17n.org>
819
820 * coding.c (detect_coding): Preserve coding->mode.
2bc550cb 821 Don't overflow coding->carryover. (Bug#2370)
73cce38d 822
a51092ee
DN
8232009-02-18 Dan Nicolaescu <dann@ics.uci.edu>
824
825 * m/ibmrs6000.h (ADDR_CORRECT): Restore, removed by mistake on 2008-07-23.
826
c423ecca
KH
8272009-02-18 Kenichi Handa <handa@m17n.org>
828
829 * font.c (font_check_otf_features): Fix handling of `nil' element.
830 (Ffont_spec): Describe :lang and :otf in the docstring.
831
4c1958f4
AS
8322009-02-16 Andreas Schwab <schwab@suse.de>
833
834 * coding.c (Fcheck_coding_systems_region): Fix test for unibyte
835 string.
836
5704f39a
KH
8372009-02-16 Kenichi Handa <handa@m17n.org>
838
839 * coding.c (Fcheck_coding_systems_region): Fix typo; Qt -> Qnil.
a057d86a 840 (Bug#1723)
5704f39a 841
8f0085aa
CY
8422009-02-14 Chong Yidong <cyd@stupidchicken.com>
843
a057d86a 844 * dispextern.h (struct iterator_stack_entry): New line_wrap member.
8f0085aa
CY
845
846 * xdisp.c (push_it, pop_it): Save and restore line_wrap.
847 (handle_line_prefix): Suppress wrapping of wrap prefixes.
848
aff01dd9
EZ
8492009-02-14 Eli Zaretskii <eliz@gnu.org>
850
851 * msdos.c (MAX_SCREEN_BUF): New macro.
852 (IT_write_glyphs): Make screen_buf[] always be MAX_SCREEN_BUF-long.
853 Encode the entire run of glyphs sharing the same face, instead of
854 doing that one glyph at a time (fixes a bug with displaying
855 double-size characters).
856
ba301db3
AR
8572009-02-13 Adrian Robert <Adrian.B.Robert@gmail.com>
858
859 * nsfns.m (ns-read-file-name): BLOCK_INPUT while showing dialog.
860
861 * nsmenu.m (pop_down_menu): Check popup_activated_flag.
862 (ns_popup_dialog, EmacsDialogPanel-runDialogAt:): Let
a057d86a 863 pop_down_menu do the cleanup work as it is always called. (Bug#2154)
ba301db3
AR
864
865 * nsfont.m (nsfont_make_fontset_for_font): For now, don't try to
a057d86a 866 set fontset font for "mathematical-" sub-scripts. (Bug #2218)
ba301db3 867
51d861de
SM
8682009-02-12 Stefan Monnier <monnier@iro.umontreal.ca>
869
870 * keyboard.c (adjust_point_for_property): Allow stopping betwen two
871 invisible areas.
872
7fed8996
JR
8732009-02-12 Jason Rumney <jasonr@gnu.org>
874
631ea4fb
JR
875 * w32font.c (check_face_name): Check for fake helv. (Bug#2275)
876 (add_font_entity_to_list): Call check_face_name even when family
877 is unspecified.
878
cb4a3e42
JR
879 * w32term.c (x_display_pixel_height, x_display_pixel_width):
880 Release DC when finished. Use NULL window to refer to desktop.
631ea4fb 881 (w32_term_init): Use NULL window to refer to desktop. (Bug#460)
cb4a3e42 882
7fed8996 883 * w32font.c (add_font_entity_to_list): Fix check for substituted
631ea4fb 884 raster fonts. (Bug#2219)
7fed8996 885
895416e3
KH
8862009-02-12 Kenichi Handa <handa@m17n.org>
887
888 * composite.c (MAX_AUTO_COMPOSITION_LOOKBACK): New macro.
889 (composition_gstring_width): Fix handling of LGLYPH_YOFF.
890 (autocmp_chars): Use fast_looking_at. Don't compose more
1dacf998 891 characters than MAX_COMPOSITION_COMPONENTS.
895416e3
KH
892 (find_automatic_composition): While looking forward and backward,
893 check static composition. Fix where to stop looking forward.
894 (composition_adjust_point): Fix checking of static composition.
895 (Fcomposition_get_gstring): Pay attention to
1dacf998 896 MAX_COMPOSITION_COMPONENTS.
895416e3
KH
897
898 * lisp.h (fast_looking_at): Extern it.
899
900 * search.c (fast_looking_at): New function.
901
51d861de 902 * term.c (encode_terminal_code): Adjust for the change of
895416e3
KH
903 <struct glyph>.u.cmp.to.
904 (append_composite_glyph): Likewise.
905
51d861de 906 * xdisp.c (fill_gstring_glyph_string): Adjust for the change of
895416e3
KH
907 <struct glyph>.u.cmp.to. Check if the glyph belongs to the same
908 composition.
51d861de 909 (append_composite_glyph): Adjust for the change of
895416e3
KH
910 <strcut glyph>.u.cmp.to.
911
8510724d
JB
9122009-02-11 Juanma Barranquero <lekktu@gmail.com>
913
914 * casetab.c (init_casetab_once):
915 * coding.c (ALLOC_CONVERSION_WORK_AREA):
916 * font.c (font_update_lface):
917 * fontset.c (Fnew_fontset):
918 * ftfont.c (ftfont_drive_otf):
919 * xfont.c (xfont_open):
920 * xftfont.c (xftfont_get_xft_draw): Remove spurious semicolons.
921
294fa707
SM
9222009-02-11 Stefan Monnier <monnier@iro.umontreal.ca>
923
924 * fileio.c (Fwrite_region): !NILP -> CONSP.
925
b5bfebec
AS
9262009-02-10 Andreas Schwab <schwab@suse.de>
927
928 * process.c (send_process): Properly relocate pointer into data
adab88bd 929 when using encoded data. (Bug#2272)
b5bfebec 930
cb84a2be
KH
9312009-02-08 ARISAWA Akihiro <ari@mbf.sphere.ne.jp>
932
933 * coding.c (detect_coding_charset): Fix previous change.
934
89e09428
JR
9352009-02-08 Jason Rumney <jasonr@gnu.org>
936
937 * w32fns.c (w32_hide_hourglass): Handle case where frame
adab88bd 938 disappeared while hourglass was displayed. (Bug #2193)
89e09428 939
4470a277
AS
9402009-02-07 Andreas Schwab <schwab@suse.de>
941
942 * unexelf.c (unexec): Fix error message.
943
3175b12a
AR
9442009-02-07 Adrian Robert <Adrian.B.Robert@gmail.com>
945
946 * nsterm.m (EmacsApp-sendEvent:): Defer NSApplicationDefined event
adab88bd 947 when modal window is active. (Bug #2152)
3175b12a
AR
948 (applicationShouldTerminate:): Remove now-unneeded while loop
949 around NSRunAlertPanel.
950
951 * nsmenu.m (popupSession): New file-global variable.
952 (pop_down_menu): End the popupSession before closing dialog.
953 (ns_popup_dialog): BLOCK_INPUT around dialog presentation.
954 (EmacsDialogPanel-runDialogAt:): Don't place window (superfluous),
955 don't query NSApp for events (just sleep instead).
956
8434d0b8
EZ
9572009-02-07 Eli Zaretskii <eliz@gnu.org>
958
51d861de
SM
959 * coding.c (syms_of_coding) <translation-table-for-input>:
960 Modify doc string to discourage use for character code unification.
8434d0b8 961
aa82edfd
CY
9622009-02-07 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
963
964 * atimer.c (run_timers): Update pending_atimers.
965
2d283c7c
CY
9662009-02-06 Chong Yidong <cyd@stupidchicken.com>
967
eb306cab
CY
968 * image.c (svg_load_image): Fix last change.
969
2d283c7c
CY
970 * xfns.c (Fx_create_frame): Signal an error if no font is
971 found (Bug#2147).
972
4d8e170e
JB
9732009-02-05 Juanma Barranquero <lekktu@gmail.com>
974
975 * character.c (syms_of_character) <script-representative-chars>:
976 Fix typo in docstring.
977
c96169a0
AR
9782009-02-04 Adrian Robert <Adrian.B.Robert@gmail.com>
979
980 * nsmenu.m (pop_down_menu): New function.
981 (ns_popup_dialog): Call it on unwind.
982 (EmacsDialogPanel-runDialogAt:): Check popup_activated_flag and
983 call timer_check() (Bug#2154).
984 (EmacsMenu-menuNeedsUpdate:): Don't call ns_update_menu if
985 handling_signal is set.
986 (EmacsMenu-fillWithWidgetValue:): Set submenu title.
987
988 * config.in: Get rid of COCOA_EXPERIMENTAL_CTRL_G
989
990 * s/darwin.h: Same and NO_SOCK_SIGIO as well.
991
992 * nsterm.m (ns_read_socket): Same and don't set handling_signal.
993
51d861de
SM
994 * keyboard.c (poll_for_input_1, handle_async_input):
995 Set handling_signal under HAVE_NS.
c96169a0 996
aacd8ba1
GM
9972009-02-04 Glenn Morris <rgm@gnu.org>
998
999 * fileio.c (Fwrite_region): Doc fix (mention annotate-functions).
1000
4cb75c4b
KH
10012009-02-04 Kenichi Handa <handa@m17n.org>
1002
1003 * Makefile.in (composite.o): Depends on frame.h and termhooks.h.
1004
1005 * charset.c (Fchar_charset): New optional arg restriction.
1006
1007 * coding.h (coding_system_charset_list): Extern it.
1008
1009 * coding.c (coding_system_charset_list): New function.
1010
1011 * composite.c: Include coding.h and termhooks.h.
1012 (composition_gstring_p): Fix for the terminal case.
1013 (composition_gstring_width): Likewise.
1014 (fill_gstring_body): Likewise.
1015 (autocmp_chars): For terminal, call Fcomposition_get_gstring with
1016 the frame.
1017 (composition_compute_stop_pos): Adjust cmp_it->stop_pos if point
1018 is within a composition.
867d4bb3 1019 (Fcomposition_get_gstring): Fix the terminal case.
4cb75c4b
KH
1020
1021 * term.c (encode_terminal_code): Fix handling of composition.
1022 (produce_composite_glyph): For static composition, get pixel_width
1023 from struct composition.
1024
826ba17e
AS
10252009-02-02 Andreas Schwab <schwab@suse.de>
1026
1027 * unexelf.c (unexec): Handle unaligned bss offset.
1028
8ad093db
AR
10292009-02-01 Adrian Robert <Adrian.B.Robert@gmail.com>
1030
1031 * nsterm.m (ns_read_socket): Copy 2009-01-29 and 2009-01-30
1032 XT,w32read_socket changes to ns_read_socket.
d0a76a6e 1033
8ad093db
AR
1034 * keyboard.c (handle_interrupt): Don't call
1035 quit_throw_to_read_char() under NS.
d0a76a6e 1036
8ad093db
AR
1037 * blockinput.h: Remove NS-specific code.
1038
4d18a7a2
DN
10392009-01-30 Dan Nicolaescu <dann@ics.uci.edu>
1040
db878925
DN
1041 * dispnew.c (window_change_signal): Don't try to get the size of a
1042 suspended tty frame.
1043 * term.c (Fresume_tty): Resize if the size has changed while the
1044 tty was suspended.
1045
4d18a7a2
DN
1046 * alloc.c (mark_stack): Properly conditionalize previous change.
1047
8984df7c
JB
10482009-01-30 Juanma Barranquero <lekktu@gmail.com>
1049
1050 * w32inevt.c (w32_console_read_socket) [SYNC_INPUT]:
1051 * w32term.c (w32_read_socket) [SYNC_INPUT]:
1052 Remove; this code is not used on Windows.
1053
75f4f1ac
EZ
10542009-01-30 Eli Zaretskii <eliz@gnu.org>
1055
1056 * coding.c (detect_eol, decode_eol): Handle text with DOS-style
1057 EOLs that also has stray ^M characters.
1058
07a1e794
JB
10592009-01-30 Juanma Barranquero <lekktu@gmail.com>
1060
1061 * atimer.c (run_timers, alarm_signal_handler):
1062 * keyboard.c (pending_signals, handle_async_input, init_keyboard):
1063 * w32inevt.c (w32_console_read_socket):
1064 * w32term.c (w32_read_socket):
1065 * xterm.c (XTread_socket): Use "#ifdef SYNC_INPUT" where appropriate.
1066
a8b11cc9
CY
10672009-01-30 Chong Yidong <cyd@stupidchicken.com>
1068
1069 * callproc.c (Vtemp_file_name_pattern): Remove DEFVAR_LISP.
1070 Initialize it as a relative filename pattern.
1071 (init_callproc): Don't initialize Vtemp_file_name_pattern here.
1072 (Fcall_process_region): Simplify temp file creation using
1073 temporary-file-directory.
1074
c279587b
EZ
10752009-01-29 Eli Zaretskii <eliz@gnu.org>
1076
1077 * msdos.c: Rename pending_signals to msdos_pending_signals.
1078 (sig_suspender, sigprocmask): Adjust.
1079
a8fe3242
CY
10802009-01-29 Chong Yidong <cyd@stupidchicken.com>
1081
1082 * keyboard.c (pending_signals): New var.
1083 (poll_for_input, input_available_signal, init_keyboard): Set it.
1084 (process_pending_signals): New function.
1085
1086 * lisp.h (QUIT): Check pending_signals instead of
1087 interrupt_input_pending. Use process_pending_signals.
1088
51d861de 1089 * atimer.c (run_timers, alarm_signal_handler): Update pending_signals.
a8fe3242 1090
51d861de 1091 * process.c (wait_reading_process_output): Use process_pending_signals.
a8fe3242
CY
1092
1093 * sysdep.c (emacs_write): Use process_pending_signals.
1094
1095 * xterm.c (XTread_socket): Update pending_signals.
1096
1097 * w32term.c (w32_read_socket): Update pending_signals.
1098
1099 * w32inevt.c (w32_console_read_socket): Update pending_signals.
1100
6570a1c4
KH
11012009-01-29 Kenichi Handa <handa@m17n.org>
1102
1103 * xftfont.c (xftfont_has_char): New function.
1104 (syms_of_xftfont): Register xftfont_has_char in xftfont_driver.
1105
d72a4afa
AR
11062009-01-29 Adrian Robert <Adrian.B.Robert@gmail.com>
1107
1108 * nsterm.h (EmacsPrefsController.cursorBlinkSlider): Only define
1109 under GNUstep.
1110 (ns_query_color): New declaration.
1111
1112 * nsterm.m (ns_confirm_quit): New variable.
1113 (ns_set_default_prefs, syms_of_nsterm, ns_term_init): Initialize it.
1114 (EmacsApp-applicationShouldTerminate:): Use it.
1115 (EmacsPrefsController): Let user set it.
1116 (ns_query_color): New function.
1117 (ns_defined_color): Use it.
1118 (ns_initialize): Drop.
1119 (ns_term_init): Add two lines from ns_initialize(), and set
1120 input_interrupt_mode to nil.
1121
1122 * image.c (svg_load_image): Don't right-shift background RGB when
6af84d77 1123 obtained from FRAME_BACKGROUND_PIXEL. Under HAVE_NS use ns_query_color.
d72a4afa 1124
9fe78804
KH
11252009-01-28 Kenichi Handa <handa@m17n.org>
1126
1127 * fontset.c (font_for_char): Use assq_no_quit, not assoc_no_quit.
f088b054
KH
1128 (fontset_get_font_group): Remember that no font-group is specified
1129 for C.
9fe78804 1130
fa57de36
CY
11312009-01-27 Chong Yidong <cyd@stupidchicken.com>
1132
930600e9
CY
1133 * fns.c (concat): Check for string overflow (bug#1787).
1134
fa57de36
CY
1135 * undo.c (undo_limit, undo_strong_limit, Vundo_outer_limit):
1136 Quadruple undo limits (bug#1501).
1137
7179ce7b
KH
11382009-01-27 Kenichi Handa <handa@m17n.org>
1139
1140 * ftfont.c (ftfont_has_char): If the arg FONT is a font-object,
1141 directly use GT_Get_Char_index.
1142
1143 * xftfont.c (struct xftfont_info): New member `index'.
1144
1145 * fontset.c (font_for_char): Use assq_no_quit, not assoc_no_quit.
51d861de 1146 (Ffontset_font): Adjust for the change of fontset entry.
7179ce7b 1147
5be8fcc0
CY
11482009-01-26 Kenichi Handa <handa@m17n.org>
1149
1150 * fontset.c (fontset_find_font): Fix handling of non-cons return
1151 value of fontset_get_font_group.
1152 (fontset_font): Revert last change.
1153
19ae3e61
JR
11542009-01-26 Jason Rumney <jasonr@gnu.org>
1155
1156 * w32font.c (w32font_list_internal): Return quickly if registry is
1157 unknown. Simplify final return.
1158 (add_font_entity_to_list): Break complex logic down into more
1159 manageable chunks. Move unknown registry check to
1160 w32font_list_internal.
1161
8612b71a
AR
11622009-01-25 Adrian Robert <Adrian.B.Robert@gmail.com>
1163
1164 Changes to remove Feval calls from GUI under NS.
1165
d8038940
JB
1166 * nsterm.h: Move KEY_NS_... definitions here from nsterm.m.
1167 Add NS_TOGGLE_TOOLBAR, NS_PUT_WORKING_TEXT, NS_UNPUT_WORKING_TEXT.
8612b71a
AR
1168 Remove NS_INSERT_WORKING_TEXT, NS_DELETE_WORKING_TEXT.
1169
1170 * nsterm.m: Move KEY_NS_... definitions to nsterm.h.
1171 (EmacsView-toggleToolbar:): Use KEY_NS_TOGGLE_TOOLBAR.
1172 (EmacsView-setMarkedText:,-deleteWorkingText:): Use NS_TEXT_EVENT
1173 instead of NON_ASCII_KEYSTROKE_EVENT.
1174 (EmacsApp-terminate:): Use KEY_NS_POWER_OFF instead of Feval.
1175 (EmacsApp-applicationShouldTerminate:): Query user.
1176 (EmacsPreferencesController-runHelp:): Use KEY_NS_INFO_PREFS
1177 instead of Feval.
1178
1179 * termhooks.h (NS_TEXT_EVENT): New event type under HAVE_NS.
1180
1181 * keyboard.c (kbd_buffer_get_event): Check for it.
1182 (keys_of_keyboard): Define lispy keys for
1183 ns-put/unput-working-text.
1184
1185 * nsmenu.m (ns_popup_dialog): Resync window setting with X and W32
1186 versions.
1187 (EmacsDialog-runDialogAt:): Use NSModalPanelRunLoopMode.
1188
6288ae55
CY
11892009-01-25 Chong Yidong <cyd@stupidchicken.com>
1190
1191 * dispnew.c (buffer_posn_from_coords): Use Fset_buffer instead of
64cc3cf6 1192 setting current_buffer directly. (Bug#2044)
6288ae55 1193
289e7f8f
CY
11942009-01-24 Chong Yidong <cyd@stupidchicken.com>
1195
5ce87308 1196 * fontset.c (fontset_font): If we know there is no font, don't do
d8038940 1197 any work. (Bug#1952, bug#1990).
5ce87308 1198
64cc3cf6 1199 * font.c (font_parse_xlfd): Handle patterns of length < 2. (Bug#1802)
289e7f8f 1200
b3243e6f
AR
12012009-01-23 Adrian Robert <Adrian.B.Robert@gmail.com>
1202
1203 * emacs.c (main): Do fork+exec under --daemon in Cocoa.
d900b2af
AR
1204 (ns_no_defaults): New declaration.
1205 (main): Use it.
e0d2e69a 1206
d900b2af 1207 * nsterm.h (ns_no_defaults): New declaration.
e0d2e69a 1208
d900b2af 1209 * nsfns.m (x_get_string_resource): Don't read when ns_no_defaults.
e0d2e69a 1210
d900b2af
AR
1211 * nsterm.m (ns_no_defaults): New variable.
1212 (ns_initialize): Don't read defaults when ns_no_defaults.
1213 (EmacsView-readSelectionFromPasteboard:)
1214 (writeSelectionToPasteboard:types:): New stubbed-out methods for
d8038940 1215 NSServicesRequests protocol. (Bug#1435)
27521ca6
AR
1216 (ns_dumpglyphs_stretch): New function.
1217 (ns_draw_glyph_string): Use it, parallel Yamamoto Mitsuharu change
d8038940 1218 of 2008-11-15 to other terms. (Bug#615)
b3243e6f 1219
e0d2e69a
AR
1220 * nsimage.m (setPixmapData:): Set to ignore image DPI.
1221
3ac71f5d
CY
12222009-01-23 Giorgos Keramidas <keramida@freebsd.org> (tiny change)
1223
1224 * alloc.c (mark_stack): Use "flushw" instead of "ta 3" assembly
1225 call for Sparc64.
1226
3fe53a83
AR
12272009-01-22 Adrian Robert <Adrian.B.Robert@gmail.com>
1228
1229 * nsfns.m:
1230 * nsgui.h:
1231 * nsmenu.m:
1232 * nsselect.m:
1233 * nsterm.h:
1234 * nsterm.m: Remove '23' comments that indicated code added during
1235 update from emacs-20 -> emacs-23.
1236
10f87c6f 12372009-01-22 Adrian Robert <Adrian.B.Robert@gmail.com>
a3b53a85
AR
1238
1239 * nsterm.m (EmavsView-keyDown:): Treat nil as Qnone for
3a88a825 1240 ns_alternate_modifier. (Bug#1217)
a3b53a85 1241
c7cef62d
AR
1242 * nsmenu.m (EmacsMenu-parseKeyEquiv:, addItemWithWidgetValue:):
1243 Display all shortcuts, including those w/o super modifier.
1244
575fb8bd
AR
1245 * nsfns.m (ns-read-file-name): Fix typo in assignment statement.
1246
918b848b
CY
12472009-01-22 Chong Yidong <cyd@stupidchicken.com>
1248
1249 * fileio.c (Vwrite_region_post_annotation_function)
1250 (Vwrite_region_annotation_buffers): New vars.
1251 (build_annotations_unwind): Just reset
1252 Vwrite_region_annotation_buffers.
1253 (Fwrite_region): Initialize Vwrite_region_annotation_buffers.
1254 Call write-region-post-annotation-function.
1255 (build_annotations): Add to Vwrite_region_annotation_buffers if
1256 buffer changes.
1257
a39e2539
AR
12582009-01-21 Adrian Robert <Adrian.B.Robert@gmail.com>
1259
1260 * nsterm.h (EmacsApp-setAppleMenu:): Conditionalize more correctly on
1261 Tiger.
51d861de
SM
1262 * nsfns.m (ns_do_applescript):
1263 Conditionalize typeUTF16ExternalRepresentation on Tiger.
a39e2539 1264
35ed44db
AR
12652009-01-21 Wolfgang Lux <wolfgang.lux@gmail.com> (tiny change)
1266
1267 * nsterm.m (EV_TRAILER): Always use emacsframe for frame_or_window.
1268
cbe0b5bf
AR
12692009-01-21 Adrian Robert <Adrian.B.Robert@gmail.com>
1270
1271 * nsmenu.m (NSMENUPROFILE): Change #if style.
4c7077c3 1272
6049d3a0
AR
1273 * nsterm.h (EmacsPrefsController): Add -setPanelFromDefaultValues.
1274
1275 * nsterm.m (x_set_frame_alpha): Add prototype.
a9b4df69
AR
1276 (ns_fake_keydown, EmacsView-keyUp:): New variable and function to
1277 handle Ctrl-tab. (Bug#1841)
1278 (ns_get_color): Use unsigned long long for scanned hex string value.
1279 (ns_term_shutdown): Abort on non SIGTERM signals.
e889fa06 1280 (EmacsPrefsController-setDefaultFont:,-setColors:): Raise the frame.
b71ac3dd 1281 (EmacsPrefsController-setPanelFromDefaultValues): New function.
3a88a825 1282 (EmacsPrefsController-resetToDefaults:): Use it. (Bug#1801)
35ed44db 1283 (ns_font_to_xlfd, ns_fontname_to_xlfd): Remove, unused.
d3810c21 1284 (ns_defined_color): Fix settings of the XColor variable fields:
3a88a825 1285 red,green,blue scale to 2-byte, pixel's parts to 1-byte. (Bug#1663)
cbe0b5bf 1286
d3810c21 1287 * nsimage.m (EmacsImage+allocInitFromFile:): Set to ignore image
3a88a825 1288 DPI. (Bug#1316)
d3810c21
AR
1289 (EmacsImage-setPixelAtX:Y:toRed:green:blue:alpha:): Fix color
1290 values in onTiger section.
4c7077c3 1291
e301e634
CY
12922009-01-19 Chong Yidong <cyd@stupidchicken.com>
1293
7f82490b
CY
1294 * xfaces.c (Finternal_set_lisp_face_attribute, Fx_list_fonts):
1295 Check return value of font_spec_from_name.
64cc3cf6 1296 (Fx_list_fonts): Doc fix. (Bug#1951)
7f82490b
CY
1297
1298 * font.c (font_spec_from_name): Return Qnil if font name could not
1299 be parsed.
1300 (font_parse_name): Treat a `?' character as part of an XLFD.
1301
e301e634
CY
1302 * fns.c (Fsubstring): Doc fix.
1303
1c0db158
KH
13042009-01-19 Kenichi Handa <handa@m17n.org>
1305
51d861de 1306 * ftfont.c (ftfont_lookup_cache): Check the return value of FcFontList.
1c0db158
KH
1307 (ftfont_list): Likewise.
1308
acf20901
JB
13092009-01-18 Juanma Barranquero <lekktu@gmail.com>
1310
fff4e459
JB
1311 * dbusbind.c (Fdbus_register_signal):
1312 * process.c (conv_sockaddr_to_lisp):
1313 * w32fns.c (Fw32_battery_status): Use empty_unibyte_string.
1314
acf20901
JB
1315 * callproc.c (Fgetenv_internal): Doc fix.
1316
e7abcdfb
CY
13172009-01-16 Chong Yidong <cyd@stupidchicken.com>
1318
1319 * xfns.c (x_make_gc): Don't allocate stipple member for gc_values;
1320 it is not even used.
1321
b60861e6
GM
13222009-01-16 Glenn Morris <rgm@gnu.org>
1323
1324 * font.c (Ffont_variation_glyphs): Silence compiler.
1325
8db52afe
JB
13262009-01-15 Juanma Barranquero <lekktu@gmail.com>
1327
1328 * sound.c (SOUND_WARNING): Use _snprintf, for MSVC compatibility.
1329 Reported by David Robinow <drobinow@gmail.com>.
1330
4cddb209
KH
13312009-01-15 Kenichi Handa <handa@m17n.org>
1332
51d861de 1333 * coding.c (detect_coding_system): Fix handling of null_byte_found.
4cddb209 1334
f247f67b
JR
13352009-01-14 Jason Rumney <jasonr@gnu.org>
1336
1337 * frame.c (x_set_font): Always store a font to the font parameter,
fff4e459 1338 never a fontset. (Bug#1562)
f247f67b 1339
f56a4450
KH
13402009-01-14 Kenichi Handa <handa@m17n.org>
1341
1342 * coding.c (TWO_MORE_BYTES): New macro.
fff4e459 1343 (detect_coding_utf_16): Use TWO_MORE_BYTES instead of ONE_MORE_BYTE.
f56a4450 1344
4e99855e
CY
13452009-01-13 Chong Yidong <cyd@stupidchicken.com>
1346
1347 * font.c (font_clear_prop): If clearing the family, clear the font
1348 width index too.
1349
fff4e459 1350 * xfaces.c (Finternal_set_lisp_face_attribute): Revert last change.
4e99855e 1351
24f01470
JB
13522009-01-12 Juanma Barranquero <lekktu@gmail.com>
1353
1354 * sound.c [WINDOWSNT] (SOUND_WARNING): New macro.
1355 (do_play_sound): Use it. Don't pass a hardcoded buffer size to mci
1356 functions, use sizeof.
1357
a41240a3
MR
13582009-01-12 Martin Rudalics <rudalics@gmx.at>
1359
1360 * keyboard.c (read_char): Fix case where last_nonmenu_event
1361 returned a bad value with submenus. (Bug#447)
1362
944636b8
CY
13632009-01-12 Chong Yidong <cyd@stupidchicken.com>
1364
1365 * xfaces.c (Finternal_set_lisp_face_attribute): If setting the
1366 family, clear the font width index too.
1367
0dad7c6f
JR
13682009-01-11 Jason Rumney <jasonr@gnu.org>
1369
1370 * keyboard.c (cmd_error_internal): Exit when errors occur before
1371 frame creation and not in daemon mode. (Bug#1836)
1372
7c2363af
CY
13732009-01-10 Chong Yidong <cyd@stupidchicken.com>
1374
1375 * xdisp.c (pos_visible_p): When iterator stops on the last glyph
1376 of a display vector, backtrack.
1377 (try_window_reusing_current_matrix): Check glyph type before
1378 referencing charpos member.
1379
97b1b294
EZ
13802009-01-10 Eli Zaretskii <eliz@gnu.org>
1381
1382 Fix Bug #876:
1383
1384 * coding.c (inhibit_null_byte_detection): New variable.
1385 (detect_coding, detect_coding_system): Don't pay attention to null
1386 bytes if inhibit_null_byte_detection is non-zero.
51d861de 1387 (syms_of_coding) <inhibit-null-byte-detection>: Declare and document.
97b1b294
EZ
1388 <inhibit-iso-escape-detection>: Doc fix.
1389
4624b6e3
JR
13902009-01-09 Jason Rumney <jasonr@gnu.org>
1391
1392 * w32font.c (add_font_entity_to_list): Don't report unknown
fff4e459 1393 Windows charset as any unrecognized registry. (Bug#1548)
4624b6e3
JR
1394 Only report Unicode Plane 2 fonts as unicode-sip.
1395
323b840c
CY
13962009-01-09 Chong Yidong <cyd@stupidchicken.com>
1397
51d861de
SM
1398 * xfaces.c (Fx_font_family_list): Delete function.
1399 Move compatibility version to faces.el.
323b840c 1400
51d861de 1401 * font.c (Ffont_family_list): Return a list of strings, not symbols.
323b840c 1402
eba7400d
MR
14032009-01-09 Martin Rudalics <rudalics@gmx.at>
1404
1405 * frame.c (x_set_frame_parameters): Remember requested value for
1406 fullscreen before it's reset by the parameter handler.
1407
4b09796d
GM
14082009-01-09 Glenn Morris <rgm@gnu.org>
1409
1410 * keyboard.c (last_command_char): For clarity, rename to...
46e722a9 1411 (last_command_event): ... and update all users.
4b09796d
GM
1412 (last_input_char): For clarity, rename to...
1413 (last_input_event): ... and update all users.
1414 (last-command-char, last-input-char): Move to subr.el as aliases.
1415 * cmds.c, commands.h: Update for last_command_char rename.
1416
14ccea62
CY
14172009-01-08 Chong Yidong <cyd@stupidchicken.com>
1418
51d861de 1419 * font.c (font_open_for_lface): Handle unspecified height attribute.
14ccea62 1420
5f004711
JR
14212009-01-08 Jason Rumney <jasonr@gnu.org>
1422
1423 * w32fns.c (Vx_pointer_shape, Vx_nontext_pointer_shape)
1424 (Vx_mode_pointer_shape, Vx_window_horizontal_drag_shape)
1425 (Vx_hourglass_pointer_shape, Vx_sensitive_text_pointer_shape):
1426 Don't declare.
fff4e459 1427 (syms_of_w32fns): Don't define x-pointer-shape variable. (Bug#1485)
5f004711
JR
1428 (x_create_tip_frame) [GLYPH_DEBUG]: Enable image debugging code.
1429
b71f6f73
KH
14302009-01-07 Kenichi Handa <handa@m17n.org>
1431
50b06221 1432 * fileio.c (Finsert_file_contents): In the case of replace,
f56a4450 1433 remember the coding system used for decoding in
50b06221
KH
1434 coding_system (Bug#1039).
1435
b71f6f73 1436 * coding.c (decode_coding_utf_8): Check byte_after_cr before
79a97217 1437 breaking the loop. (Bug#870)
b71f6f73
KH
1438 (decode_coding_utf_16, decode_coding_emacs_mule)
1439 (decode_coding_iso_2022, decode_coding_sjis, decode_coding_big5)
1440 (decode_coding_charset): Likewise.
1441
56f668f7
MR
14422009-01-05 Martin Rudalics <rudalics@gmx.at>
1443
1444 * frame.c (x_set_frame_parameters): Make sure height (width) get
1445 applied when fullwidth (fullheight) is set. (Bug#1522)
1446
5da9424d
JB
14472009-01-04 Juanma Barranquero <lekktu@gmail.com>
1448
1449 * w32.c: Use 64-bit arithmetic to do FILETIME conversions. (Bug#1766)
1450 (utc_base): Declare as ULONGLONG, not long double.
1451 (convert_time_raw): Delete.
1452 (FILETIME_TO_U64, U64_TO_LISP_TIME): New macros.
1453 (initialize_utc_base): New function.
1454 (convert_time): Use FILETIME_TO_U64, initialize_utc_base.
1455 (convert_from_time_t): Use initialize_utc_base; compute result with
1456 64-bit arithmetic.
1457 (process_times): Use FILETIME_TO_U64, U64_TO_LISP_TIME.
1458
c4605e09
EZ
14592009-01-03 Eli Zaretskii <eliz@gnu.org>
1460
9acef61c 1461 * process.c (Qeuid, Qegid, Qcomm, Qstate, Qppid, Qpgrp, Qsess)
c4605e09
EZ
1462 (Qttname, Qminflt, Qmajflt, Qcminflt, Qcmajflt, Qutime, Qstime)
1463 (Qcutime, Qpri, Qnice, Qthcount, Qstart, Qvsize, Qrss, Qargs)
1464 (Quser, Qgroup, Qetime, Qpcpu, Qpmem, Qtpgid, Qcstime)
1465 [!subprocesses]: Define.
1466 (syms_of_process) [!subprocesses]: Intern and staticpro them.
1467 (Flist_system_processes, Fsystem_process_attributes)
1468 [!subprocesses]: Call list_system_processes and
1469 system_process_attributes instead of returning Qnil.
1470
9acef61c
JB
1471 * dosfns.c (system_process_attributes, list_system_processes):
1472 New functions.
c4605e09
EZ
1473
1474 * vm-limit.c (ret_lim_data) [MSDOS]: New function.
1475
1476 * sysdep.c (list_system_processes, system_process_attributes) [MSDOS]:
1477 Don't use the default (no-op) implementation.
1478
8b7d0a16
JR
14792009-01-03 Jason Rumney <jasonr@gnu.org>
1480
a6d46bc1
JR
1481 * keyboard.c (parse_modifiers_uncached): Wheel events are
1482 clicks (bug#687).
1483
8b7d0a16
JR
1484 * w32term.c (x_query_colors, x_query_color): New functions.
1485
1486 * image.c (x_to_xcolors, png_load): Eliminate W32 specific code.
1487 (svg_load_image): Cast returned pointers from dynamically loaded
1488 functions. Eliminate W32 specific code.
1489
bfe11752
DN
14902009-01-02 Dan Nicolaescu <dann@ics.uci.edu>
1491
89e2438a
DN
1492 * nsfns.m (x_set_foreground_color, x_set_background_color)
1493 (x_set_cursor_color, x_set_icon_name, x_explicitly_set_name)
1494 (x_set_title, x_set_icon_type, x_set_cursor_type): Rename to use
1495 x_ prefix instead of ns_. Update references.
1496 (syms_of_nsfns): Add a FIXME comment.
1497
1498 * nsterm.m (x_set_cursor_type): New prototype.
1499 (setValuesFromPanel): Use it instead of the old ns_ prefixed name.
1500
bfe11752
DN
1501 * sysdep.c (system_process_attributes): Provide Qtime and Qctime
1502 for Solaris instead of incorrectly providing Qutime and Qcutime.
1503
031da700
EZ
15042009-01-02 Eli Zaretskii <eliz@gnu.org>
1505
1506 * w32.c (process_times): Compute sum of utime and stime.
1507 (system_process_attributes): Add Qtime to the alist.
1508
1509 * sysdep.c (system_process_attributes): Compute Qtime and Qctime
1510 and add them to the alist.
1511
1512 * process.c (top level) <Qtime, Qctime>: New variables.
1513 (syms_of_process): staticpro them.
1514 (Fsystem_process_attributes): Add their documentation to the doc
1515 string.
1516
1517 * process.h: Declare Qtime and Qctime.
1518
df23bf08
JR
15192009-01-02 Jason Rumney <jasonr@gnu.org>
1520
9acef61c 1521 * image.c (Qgobject): New symbol.
df23bf08
JR
1522 (syms_of_image): Initialize it.
1523 (init_svg_functions): Load some functions from gobject library.
1524
5bbdf7aa
DN
15252009-01-01 Dan Nicolaescu <dann@ics.uci.edu>
1526
1527 * frame.c (make_terminal_frame): Remove redundant code and useless
1528 block.
1529
63136da6
AS
15302009-01-01 Andreas Schwab <schwab@suse.de>
1531
1532 * process.c (conv_sockaddr_to_lisp): Add workaround for
1533 getsockname bug on BSD.
1534
9ef69046
CY
15352009-01-01 Chong Yidong <cyd@stupidchicken.com>
1536
d6fafbe0
CY
1537 * xfns.c (x_create_tip_frame): Set border width of the X window.
1538
51d861de 1539 * xfaces.c (Finternal_set_lisp_face_attribute): Improve error message.
9ef69046 1540
f9c34147
JR
15412009-01-01 Jason Rumney <jasonr@gnu.org>
1542
9acef61c 1543 * w32term.c (x_new_font): Return font object, not fontset. (Bug#119)
f9c34147
JR
1544 Don't block input, as per earlier xterm.c changes.
1545
f5497e45
AR
15462008-12-31 Adrian Robert <Adrian.B.Robert@gmail.com>
1547
1548 * nsfns.m (ns_appkit_version_str): Rename from ns_appkit_version.
1549 (ns_appkit_version_int): New function.
1550 (x-server-version): Use ns_appkit_version_int and follow 21+
1551 convention of returning 3 integers.
1552
c19cab20
KH
15532008-12-30 Kenichi Handa <handa@m17n.org>
1554
1555 * character.h (CHAR_VARIATION_SELECTOR_P): New macro.
1556 (CHAR_SURROGATE_PAIR_P): New macro.
1557
1558 * font.h (struct font_driver): New member get_variation_glyphs.
1559
9acef61c 1560 * font.c (font_range): Don't require a font for a variation selector.
c19cab20
KH
1561 (Ffont_variation_glyphs): New function.
1562 (syms_of_font): Defsubr it.
1563
1564 * ftfont.c (ftfont_driver): Set the member get_variation_glyphs to
1565 ftfont_variation_glyphs.
1566 (setup_otf_gstring): New function.
1567 (ftfont_drive_otf): Use it.
1568 (ftfont_shape_by_flt): Handle variation selector.
1569 (ftfont_variation_glyphs): New function.
1570
28cd591f
MR
15712008-12-30 Martin Rudalics <rudalics@gmx.at>
1572
1573 * frame.c (Vemacs_iconified): Remove.
1574
7f714baf
JR
15752008-12-30 Jason Rumney <jasonr@gnu.org>
1576
1577 * frame.c (store_frame_param, x_get_arg): Enable newer code on
9acef61c 1578 WINDOWSNT too, as related changes have already been synced. (Bug#117)
7f714baf 1579
9d2d22ab
CY
15802008-12-30 Chong Yidong <cyd@stupidchicken.com>
1581
1582 * indent.c (Fvertical_motion): Don't advance iterator if we have
1583 reseated to the desired position.
1584
1585 * xdisp.c (move_it_to): Handle GET_FROM_STRETCH method when
1586 checking for pos match.
1587
545312c2
KH
15882008-12-30 Kenichi Handa <handa@m17n.org>
1589
1ede3eb6
KH
1590 * insdel.c (copy_text): To convert a non-ASCII char to unibyte,
1591 just get the low 8-bit of the code.
1592
545312c2
KH
1593 * font.c (font_intern_prop): Validate str as multibyte.
1594
bd7bbf29
DN
15952008-12-29 Dan Nicolaescu <dann@ics.uci.edu>
1596
31e0750e
DN
1597 * dispextern.h (struct face): Move lface and hash from the middle
1598 of bitfields.
1599
bd7bbf29
DN
1600 * Makefile.in (INTERVALS_H): Rename from INTERVAL_SRC, update all users.
1601
b5672e7c
DN
16022008-12-29 Dan Nicolaescu <dann@ics.uci.edu>
1603
1604 * Makefile.in (INTERVAL_SRC): Also depend on dispextern.h.
1605 (coding.o, dispnew.o, keymap.o, msdos.o): Depend on INTERVAL_SRC
1606 instead of intervals.h.
1607
d704470f
AS
16082008-12-26 Andreas Schwab <schwab@suse.de>
1609
1610 * keymap.c (map_keymap_char_table_item): Make a copy of KEY if it is a
1611 cons.
1612
54b33868
MR
16132008-12-26 Martin Rudalics <rudalics@gmx.at>
1614
1615 * textprop.c (Qminibuffer_prompt): New variable.
1616 (syms_of_textprop): Initialize it.
1617 * callint.c (Fcall_interactively): For `c', `k', and `K' prompt
1618 in minibuffer-prompt face. (Bug#1662)
1619
40b615d6
JR
16202008-12-25 Jason Rumney <jasonr@gnu.org>
1621
1622 * buffer.c (Fbuffer_swap_text): Use POINTER_TYPE.
1623
baae5c2d
JR
16242008-12-24 Jason Rumney <jasonr@gnu.org>
1625
1626 * ralloc.c (r_alloc_reset_variable): New function.
1627
1628 * buffer.c (Fbuffer_swap_text) [REL_ALLOC]: Reset ralloc's internal
9acef61c 1629 record of what points where. (Bug#716)
baae5c2d 1630
a9051c88
DN
16312008-12-22 Dan Nicolaescu <dann@ics.uci.edu>
1632
1633 * minibuf.c (read_minibuf): Follow the non-interactive case when
1634 running as a daemon, before detaching.
1635
8b146312
AS
16362008-12-22 Andreas Schwab <schwab@suse.de>
1637
1638 * buffer.c (init_buffer): Use realloc instead of xrealloc.
1639 * gtkutil.c (free_widget_value): Use xfree instead of free.
1640
56f2de10
MR
16412008-12-22 Martin Rudalics <rudalics@gmx.at>
1642
1643 * frame.c (delete_frame): New function derived from
1644 Fdelete_frame to handle Qnoelisp value for FORCE argument.
1645 Delete last frame iff FORCE equals Qnoelisp. (Bug#1450)
1646 (Fdelete_frame): Call delete_frame. Remove line from doc-string
1647 saying that FORCE non-nil doesn't run `delete-frame-functions'.
1648 * frame.h: Extern delete_frame.
1649 * window.c (window_loop):
1650 * terminal.c (delete_terminal):
1651 * xterm.c (x_connection_closed):
1652 * xfns.c (Fx_hide_tip):
9acef61c 1653 * w32fns.c (Fx_hide_tip): Call delete_frame instead of Fdelete_frame.
56f2de10 1654
1fc200d6
JR
16552008-12-21 Jason Rumney <jasonr@gnu.org>
1656
1657 * w32uniscribe.c (uniscribe_encode_char): Return FONT_INVALID_CHAR
1658 when character maps to .notdef character.
1659
5e252df2
SM
16602008-12-21 Stefan Monnier <monnier@iro.umontreal.ca>
1661
1662 * keyboard.c (cmd_error_internal): Don't exit in daemon mode, bug#1310.
1663
99b72cc4
JR
16642008-12-20 Jason Rumney <jasonr@gnu.org>
1665
1666 * frame.c (Fmake_terminal_frame): Raise an error when called from
9acef61c 1667 a graphical frame on Windows. (Bug#1325)
99b72cc4 1668
acc49a52
JD
16692008-12-20 Jan Djärv <jan.h.d@swipnet.se>
1670
1671 * frame.c (Fdelete_frame): Set f->menu_bar_vector to Qnil.
1672
6ea15123
CY
16732008-12-20 Chong Yidong <cyd@stupidchicken.com>
1674
1675 * minibuf.c (Fread_buffer): Doc fix.
1676
b2dab6c8
JR
16772008-12-20 Jason Rumney <jasonr@gnu.org>
1678
54ea0c87 1679 * fileio.c (Fexpand_file_name): Do not allow ../ to go beyond the
9acef61c 1680 server name in UNC paths. (Bug#719)
54ea0c87 1681
b2dab6c8 1682 * coding.c (decode_coding): Clear chars_at_source flag when using
9acef61c 1683 charbuf. (Bug#1035)
b2dab6c8 1684
6d1921be
DN
16852008-12-19 Daniel Engeler <engeler@gmail.com>
1686
1687 * sysdep.c (serial_configure): Fix typo.
1688
53934c98
DN
16892008-12-19 Dan Nicolaescu <dann@ics.uci.edu>
1690
1691 * sysdep.c: Include alloca.h.
f4f634e8
DN
1692 (system_process_attributes): Add implementation for Solaris.
1693
1694 * s/sol2-10.h (HAVE_PROCFS, _STRUCTURED_PROC): New defines.
53934c98 1695
06e111a6
DN
16962008-12-19 Dan Nicolaescu <dann@ics.uci.edu>
1697
1698 Reorganize implementation of Flist_system_processes and
1699 Fsystem_process_attributes. No functional changes.
1700 * process.c: Don't #include pwd.h, grp.h and limits.h.
1701 (Flist_system_processes): Just call list_system_processes.
1702 (Fsystem_process_attributes): Just call system_process_attributes.
1703 (procfs_list_system_processes, time_from_jiffies)
1704 (ltime_from_jiffies, get_up_time, procfs_ttyname, MAJOR, MINOR)
1705 (procfs_get_total_memory, procfs_system_process_attributes): Move ...
1706
1707 * sysdep.c: ... here. Include pwd.h, grp.h and limits.h.
1708 (list_system_processes): Rename from
1709 procfs_list_system_processes. Enclose in #ifdef HAVE_PROCFS.
1710 Provide a do nothing implementation.
1711 (system_process_attributes): Rename from
1712 procfs_list_system_processes.
1713 (ltime_from_jiffies, get_up_time, procfs_ttyname, MAJOR, MINOR)
9acef61c 1714 (procfs_get_total_memory): Enclose in #ifdef GNU_LINUX.
06e111a6
DN
1715
1716 * w32.c (list_system_processes): Rename from
1717 w32_list_system_processes.
1718 (system_process_attributes): Rename from
1719 w32_system_process_attributes.
1720
1721 * s/gnu-linux.h (LISTPROC, PROCATTR): Remove.
1722
1723 * process.h (w32_list_system_processes)
1724 (w32_system_process_attributes): Remove.
1725 (list_system_processes, system_process_attributes): New
1726 prototypes.
1727
6a705b23
KH
17282008-12-19 Kenichi Handa <handa@m17n.org>
1729
1730 * xfont.c (xfont_decode_coding_xlfd): New function.
1731 (xfont_encode_coding_xlfd): New function.
1732 (xfont_list_pattern): Decode XLFD by iso-8859-1.
1733 (xfont_list): Decode and encode XLFD by iso-8859-1.
1734 (xfont_match): Likewise.
1735 (xfont_list_family): Likewise.
1736 (xfont_open): Likewise.
1737
d66c0241 1738 * ftfont.c (ftfont_open): Generate a multibyte string if given
6a705b23
KH
1739 names are utf-8.
1740
d66c0241 1741 * xftfont.c (xftfont_open): Generate a multibyte string if given
6a705b23
KH
1742 names are utf-8.
1743
5a130941
JD
17442008-12-18 Jan Djärv <jan.h.d@swipnet.se>
1745
1746 * gtkutil.c (xg_frame_resized): Remove check if rows/columns have
1747 changed.
bfd20325
JD
1748 (xg_tool_bar_proxy_callback): Put focus on the frame after we have
1749 clicked on a detached tool bar button.
5a130941 1750
fd95644b
DN
17512008-12-18 Dan Nicolaescu <dann@ics.uci.edu>
1752
1753 * emacs.c (main): Print and error and exit when no data is read
1754 from the pipe.
1755
e6eee6ae
JR
17562008-12-17 Jason Rumney <jasonr@gnu.org>
1757
1758 * w32font.c (w32font_has_char): Always return -1.
1759
a35dd56b
KH
17602008-12-16 Kenichi Handa <handa@m17n.org>
1761
1762 * font.c (font_open_entity): Fix previous change.
1763
0e3635c2
DN
17642008-12-16 Dan Nicolaescu <dann@ics.uci.edu>
1765
1766 * process.c: Include <limits.h>.
1767
d4835507 17682008-12-16 Chetan Pandya <pandyacus@sbcglobal.net> (tiny change)
b5356c39
CY
1769
1770 * font.c (font_update_drivers): Fix mistake in reconstructing the
1771 driver list.
1772
17732008-12-16 Chong Yidong <cyd@stupidchicken.com>
1774
1775 * font.c (font_clear_cache): Fix format of font cache data.
1776
e2cbc401
CY
17772008-12-15 Chong Yidong <cyd@stupidchicken.com>
1778
1779 * xftfont.c (xftfont_open): Free Xft font pattern if
1780 XftFontOpenPattern fails.
1781
1782 * xterm.c (x_free_frame_resources): Remove extraneous call to
1783 free_frame_faces.
1784
b131d535
CY
17852008-12-13 Chong Yidong <cyd@stupidchicken.com>
1786
1787 * xterm.c (x_delete_display): Move xim_close_dpy call to
1788 x_delete_terminal.
1789 (x_delete_terminal): Call xim_close_dpy.
1790
e6df5336
JR
17912008-12-13 Jason Rumney <jasonr@gnu.org>
1792
1793 * w32font.c (intern_font_name): New function.
1794 (add_font_name_to_list, w32_enumfont_pattern_entity): Use it.
1795 (w32font_open_internal, Fx_select_font): Decode font name.
1796 (fill_in_logfont, list_all_matching_fonts): Encode font name.
1797
1798 * w32font.h (intern_font_name): Declare new function.
1799
1800 * w32uniscribe.c (add_opentype_font_name_to_list):
1801 Use intern_font_name.
1802
20d68145
CY
18032008-12-13 Chong Yidong <cyd@stupidchicken.com>
1804
9f2554de
CY
1805 * frame.c (Fdelete_frame): Call free_font_driver_list.
1806
3d9bec9a
CY
1807 * font.c (free_font_driver_list): Implement missing function.
1808
20d68145
CY
1809 * w32term.c (w32_term_init): Don't initialize the image cache
1810 here; it will be done in init_frame_faces.
1811
1812 * xterm.h (struct xim_inst_t): Definition moved from xterm.c.
1813 (struct x_display_info): Remove unused member null_pixel. New
1814 member xim_callback_data.
1815
1816 * xterm.c (struct xim_inst_t): Definition moved to xterm.h.
1817 (xim_initialize): Save pointer to callback function data.
1818 (xim_close_dpy): Free callback function data. Call XCloseIM,
1819 reverting 2008-11-04 change by David Smith.
1820 (x_term_init): Don't initialize the image cache here; it will be
1821 done in init_frame_faces. Remove ancient "null_pixel" cruft.
1822 (x_delete_display): Free x_dnd_atoms member.
1823
96f9306b
KH
18242008-12-13 Kenichi Handa <handa@m17n.org>
1825
6dec9044
JB
1826 * font.c (font_rescale_ratio): Moved from xfaces.c.
1827 Argument type changed. Handle a font-spec too.
96f9306b 1828 (font_score): Check Vface_font_rescale_alist.
6dec9044 1829 (font_open_entity): Likewise. (Bug#1547)
96f9306b
KH
1830
1831 * xfaces.c (font_rescale_ratio): Moved to font.c.
1832
8d5b4964
CY
18332008-12-13 Chong Yidong <cyd@stupidchicken.com>
1834
1835 * xfns.c (Fx_wm_set_size_hint): Check if the frame is an X frame.
1836
e6df5336
JR
18372008-12-12 Jason Rumney <jasonr@gnu.org>
1838
1839 * w32fns.c (x_display_info_for_name, Fx_open_connection): Set
1840 Vwindow_system_version to the real w32 major version.
1841
97c6058a
DN
18422008-12-12 Dan Nicolaescu <dann@ics.uci.edu>
1843
1844 * term.c (init_tty): Move setting the terminal name before the
1845 potential user: maybe_fatal.
1846
ec4e88d7
CY
18472008-12-11 Chong Yidong <cyd@stupidchicken.com>
1848
d4835507
JB
1849 * term.c (tty_free_frame_resources): Renamed from delete_tty_output;
1850 all callers changed. Call free_frame_faces to free the face cache.
ec4e88d7 1851
b4233ec9
JR
18522008-12-11 Jason Rumney <jasonr@gnu.org>
1853
8ec71e23 1854 * w32font.c (fill_in_logfont): Don't assume symbol script means
9acef61c 1855 SYMBOL_CHARSET. (Bug#547)
8ec71e23 1856
b4233ec9 1857 * w32uniscribe.c (uniscribe_encode_char): Increase glyph buffer
9acef61c 1858 size for surrogates. (Bug#1096, bug#872)
b4233ec9 1859
011a0143
JB
18602008-12-11 Juanma Barranquero <lekktu@gmail.com>
1861
1862 * w32proc.c (Fw32_get_locale_info): Decode long form of locale name.
1863
3c309f34
JB
18642008-12-11 Juanma Barranquero <lekktu@gmail.com>
1865
1866 * process.c (Fsystem_process_attributes, syms_of_process):
1867 Fix typo in name of Ssystem_process_attributes.
1868 Reported by Ulrich Mueller <ulm@kph.uni-mainz.de>.
1869
fedc6ab5
JB
18702008-12-11 Juanma Barranquero <lekktu@gmail.com>
1871
1872 * syntax.c (Fmodify_syntax_entry): Doc fix.
1873
ba3de0e8
JB
18742008-12-10 Juanma Barranquero <lekktu@gmail.com>
1875
1876 * font.c (Ffont_spec): Move usage to end of docstring.
1877
174f1c74
JR
18782008-12-10 Jason Rumney <jasonr@gnu.org>
1879
1880 * w32font.c (Qcham): New symbol.
1881 (font_supported_scripts): Add cham, and comments for other new
1882 scripts in bitfield from OpenType spec.
9d32f818
JR
1883 (add_font_entity_to_list): Limit unicode-sip fonts to those that
1884 contain characters beyond the bmp.
174f1c74 1885
7b649478
KH
18862008-12-10 Kenichi Handa <handa@m17n.org>
1887
1888 * ftfont.c (fc_charset_table): Add "unicode-sip".
2ae37cf0 1889 (ftfont_spec_pattern): Lookup fc_charset_table for the registry
7b649478
KH
1890 Qunicode_sip.
1891
2133e2d1
JB
18922008-12-10 Juanma Barranquero <lekktu@gmail.com>
1893
1894 * coding.c (QCdefault_char): Rename from QCdefalut_char.
1895 (Fcoding_system_put): Use QCdefault_char.
1896 (syms_of_coding): Set QCdefault_char, not QCdefalut_char.
1897
9af886ee
CY
18982008-12-09 Chong Yidong <cyd@stupidchicken.com>
1899
74d819eb
CY
1900 * xftfont.c (syms_of_xftfont): Fix typo.
1901
4ccfa1c0 1902 * buffer.c (Fbuffer_swap_text): Signal error if swapping a dead buffer.
9af886ee 1903
7c19d3ae
DN
19042008-12-08 Dan Nicolaescu <dann@ics.uci.edu>
1905
1906 * emacs.c (main): Close daemon_pipe on exec.
1907
567826bb
CY
19082008-12-08 Chong Yidong <cyd@stupidchicken.com>
1909
1910 * termchar.h (struct tty): New members termcap_term_buffer and
1911 termcap_strings_buffer.
1912
1913 * term.c (encode_terminal_code): Free any previous memory blocks
4ccfa1c0 1914 before calling xmalloc for encode_terminal_src or encode_terminal_dst.
567826bb
CY
1915 (maybe_fatal): Buffer argument deleted. Don't free buffer here.
1916 All callers changed.
1917 (init_tty): Store termcap data and string buffers in new struct
1918 tty members termcap_term_buffer and termcap_strings_buffer.
1919 (delete_tty): Free them.
4ccfa1c0 1920 (syms_of_term): Initialize encode_terminal_src and encode_terminal_dst.
567826bb 1921
aa96c42b
SZ
19222008-12-07 Seiji Zenitani <zenitani@mac.com>
1923
1924 * nsfns.m (ns_set_background_color): Remove code duplication.
4ccfa1c0 1925 It was a substitute for face-transparency on OS X 10.3.
aa96c42b 1926
b7e1d896
CY
19272008-12-06 Chong Yidong <cyd@stupidchicken.com>
1928
1929 * coding.c (make_conversion_work_buffer): Disable buffer
1930 modification hooks in the work buffer.
1931
b5ec91a5
EZ
19322008-12-05 Eli Zaretskii <eliz@gnu.org>
1933
1934 * process.c (procfs_system_process_attributes): If `nread' has a
1935 negative value, assign zero to it.
1936
a5d2a52b
CY
19372008-12-05 Chong Yidong <cyd@stupidchicken.com>
1938
68c5540b 1939 * eval.c (Vdebug_on_error): Doc fix.
a5d2a52b 1940
7bf1bb21
KH
19412008-12-05 Kenichi Handa <handa@m17n.org>
1942
1943 * ftfont.c (ftfont_shape_by_flt): Use "combining" flt if the
1944 second character is a combining character.
1945
2fdc7d00
EZ
19462008-12-05 Eli Zaretskii <eliz@gnu.org>
1947
1948 * process.c (procfs_system_process_attributes): Don't use cmd,
1949 cmdsize, and q without initializing them first.
1950
bf6bfba8
JR
19512008-12-04 Jason Rumney <jasonr@gnu.org>
1952
1953 * w32font.c (w32font_draw): Initialize orig_clip before getting
1954 it, and delete it when finished.
1955
a3b1a468
DN
19562008-12-04 Dan Nicolaescu <dann@ics.uci.edu>
1957
1958 * keyboard.c (kbd_buffer_get_event): Follow the non-interactive
1959 case when running as a daemon before detaching.
1960
8b8be8eb
JB
19612008-12-03 Juanma Barranquero <lekktu@gmail.com>
1962
805f2638 1963 * w32.c (init_environment): Don't unload library shell32.dll.
8b8be8eb 1964
b1bde622
KH
19652008-12-03 Kenichi Handa <handa@m17n.org>
1966
e500c47d
KH
1967 * font.c (font_at): Set `multibyte' at first.
1968
ca516334
KH
1969 * coding.c (decode_coding_charset): Check type of an element of
1970 vector VALIDS.
7bf1bb21 1971 (encode_coding_emacs_mule): Be sure to set `code'.
ca516334 1972
4ccfa1c0 1973 * fontset.c (face_for_char): Handle invalid charset property correctly.
b1bde622
KH
1974 (font_for_char): Likewise.
1975
1e5ecd37
CY
19762008-12-03 Chong Yidong <cyd@stupidchicken.com>
1977
d5b01609 1978 * font.c (Fopen_font): Compute pixel size correctly.
ba207571
CY
1979 (font_update_lface): Handle fonts with corrupted size specs,
1980 i.e. non-int and non-float.
d5b01609 1981
11e3a6e4 1982 * ftfont.c (ftfont_match): Initialize entity variable.
9a48c8cb 1983 (ftfont_resolve_generic_family): Avoid using uninitialized var.
8adb3a3b 1984 (ftfont_list_family): Initialize list var earlier.
11e3a6e4 1985
ab06788b
CY
1986 * xselect.c (Fx_get_cut_buffer_internal): Fix memory leak.
1987
1e5ecd37 1988 * xterm.c (x_draw_glyph_string): Fall back on
0cff82ab 1989 underline_minimum_offset for underline position.
1e5ecd37 1990
63c125ab
DN
19912008-12-03 Dan Nicolaescu <dann@ics.uci.edu>
1992
1993 * keyboard.c (read_char_help_form_unwind): Specify the type for ARG.
1994
1995 * character.c (c_string_width): Specify the type for LEN.
1996
3a8406e1
KH
19972008-12-03 Kenichi Handa <handa@m17n.org>
1998
4ccfa1c0 1999 * coding.c (decode_coding_utf_16): Initialize consumed_chars_base to 0.
453b38f0 2000 (decode_coding_utf_8): Likewise.
4ccfa1c0 2001 (detect_coding_system): Initialize utf_16_le_eol to -1, val to Qnil.
4533845d 2002 (produce_chars): Initialize consumed_chars to 0.
3a8406e1 2003
651df7d9
CY
20042008-12-02 Chong Yidong <cyd@stupidchicken.com>
2005
2006 * keyboard.c (make_lispy_position): Only use PT if the selected
2007 window is current.
2008
1f625c6c
AS
20092008-12-02 Andreas Schwab <schwab@suse.de>
2010
f7741ce9
AS
2011 * font.c (font_unparse_fcname): Fix use of uninitialized variable.
2012
1f625c6c
AS
2013 * doprnt.c (doprnt1): Fix size of charbuf.
2014
92bc2678
CY
20152008-12-02 Chong Yidong <cyd@stupidchicken.com>
2016
2017 * keyboard.c (timer_check): Revert last change.
2018
93b9e8cc
JB
20192008-12-02 Juanma Barranquero <lekktu@gmail.com>
2020
2021 * makefile.w32-in ($(BLD)/w32console.$(O)): Fix silly, silly typo.
2022
fd7a37d5
JB
20232008-12-01 Juanma Barranquero <lekktu@gmail.com>
2024
2025 * makefile.w32-in: Update dependencies.
2026 (CONFIG_H): Add $(EMACS_ROOT)/nt/inc/sys/time.h.
2027
c115043b
AS
20282008-12-01 Andreas Schwab <schwab@suse.de>
2029
2030 * font.c (register_font_driver): Use xmalloc.
2031 (font_put_frame_data): Likewise.
2032
f5668d2a
CY
20332008-12-01 Chong Yidong <cyd@stupidchicken.com>
2034
860d96be
CY
2035 * xfaces.c (realize_x_face): Make abort condition clearer.
2036
f5668d2a
CY
2037 * gtkutil.c (update_frame_tool_bar): Initialize variable.
2038
379c17e7
CY
20392008-11-30 Chong Yidong <cyd@stupidchicken.com>
2040
2041 * keyboard.c (timer_check): After a timer runs, ensure that the
2042 selected window's buffer is current.
2043
35f36d65
JB
20442008-11-30 Juanma Barranquero <lekktu@gmail.com>
2045
f952c61c
JB
2046 * makefile.w32-in ($(BLD)/abbrev.$(O)): Remove.
2047 It was accidentally restored by the Unicode merge.
2048
35f36d65
JB
2049 * w32proc.c (Fw32_get_locale_info): Fix typo in docstring.
2050
b23077df
JB
20512008-11-29 Juanma Barranquero <lekktu@gmail.com>
2052
2053 * w32proc.c: Include "coding.h".
2054 (Fw32_short_file_name): Encode filename passed to Windows API.
2055 (Fw32_long_file_name): Encode filename passed to Windows API and
2056 decode back the result. (Bug#1433)
2057
b8ebe9dd
KH
20582008-11-29 Kenichi Handa <handa@m17n.org>
2059
8cc53f96
KH
2060 * charset.h (CHAR_CHARSET_P): Check if the encoder is loaded or
2061 not before accessing it.
2062
b8ebe9dd
KH
2063 * charset.c (Fdefine_charset_internal): After calculating
2064 min_char, max_char, and fastmap, copy the charset structure again.
2065 (encode_char): Fix the previous change.
2066
59bc82c0
SZ
20672008-11-28 Seiji Zenitani <zenitani@mac.com>
2068
2069 * frame.c (x_set_alpha) [NS_IMPL_COCOA]: Call x_set_frame_alpha.
2070
2071 * nsfns.m (ns_frame_parm_handlers): Set alpha handler.
2072
2073 * nsterm.m (x_set_frame_alpha): New function.
2074
32247e3d
EZ
20752008-11-27 Eli Zaretskii <eliz@gnu.org>
2076
2077 * xfaces.c (Fx_font_family_list, syms_of_xfaces): Fix last change.
2078
b003e5ff
JB
20792008-11-27 Juanma Barranquero <lekktu@gmail.com>
2080
2081 * w32font.c (add_font_entity_to_list): Pass the right LOGFONT
2082 pointer to check_face_name.
2083
708550f5
KH
20842008-11-27 Kenichi Handa <handa@m17n.org>
2085
2086 * category.h (SET_CATEGORY_SET): Call set_category_set.
2087 (set_category_set): Extern it.
2088
2089 * category.c (hash_get_category_set): New function.
2090 (Fmodify_category_entry): Adjusted for the change of
2091 char_table_ref_and_range. Call hash_get_category_set to get a
2092 category set to store in the table.
2093
2094 * character.h (MAYBE_UNIFY_CHAR): Call maybe_unify_char instead of
2095 Funify_charset.
2096
2ae37cf0 2097 * charset.h (enum charset_method): Delete CHARSET_METHOD_MAP_DEFERRED.
708550f5
KH
2098 (DECODE_CHAR): Check if the decoder vector is ready.
2099 (ENCODE_CHAR): Check if the encoder char-table is ready.
2100 (maybe_unify_char): Extern it.
2101
2102 * charset.c (Vchar_unified_charset_table): Delete it.
2103 (inhibit_load_charset_map): New variable.
2104 (temp_charset_work): New variable.
2105 (SET_TEMP_CHARSET_WORK_ENCODER, GET_TEMP_CHARSET_WORK_ENCODER)
2106 (SET_TEMP_CHARSET_WORK_DECODER, GET_TEMP_CHARSET_WORK_DECODER):
2107 New macros.
2108 (load_charset_map): Meaning of control_flag changed. If
2109 inhibit_load_charset_map is nonzero, setup a table in
2110 temp_charset_work.
2111 (load_charset): New argument control_flag.
2112 (map_charset_for_dump): New function.
2113 (map_charset_chars): If inhibit_load_charset_map is nonzero, use
2114 map_charset_for_dump.
2115 (Fdefine_charset_internal): If the charset method is MAP, load
2116 mapping tables by calling load_charset.
2117 (Funify_charset): Don't load a mapping table but directly set
2118 Vchar_unify_table.
2119 (maybe_unify_char): New function.
2120 (decode_char): Don't handle the deleted method MAP_DEFERRED.
2121 Handle the case of inhibit_load_charset_map being nonzero.
2122 (encode_char): Don't handle the deleted method MAP_DEFERRED.
2123 Handle the case of inhibit_load_charset_map being nonzero.
2124 (Fclear_charset_maps): Just free temp_charset_work.
2125 (syms_of_charset): Make `inhibit-load-charset-map' a Lisp
2126 variable.
2127
2128 * chartab.c (sub_char_table_ref_and_range): Adjusted for the
2129 change of char_table_ref_and_range.
2130 (char_table_ref_and_range): Change the meaning of argument FROM
2131 and TO. Now the caller must provide initial values for *FROM
2132 and *TO.
2133
2134 * fontset.c (fontset_add): Adjusted for the change of
2135 char_table_ref_and_range.
2136 (fontset_get_font_group): Likewise.
2137 (Ffontset_info): Likewise.
2138
2139 * keymap.c (describe_vector): Adjusted for the change of
2140 char_table_ref_and_range. For char-table, put boundary between
2141 non-ASCII and 8-bit characters.
2142
2143 * print.c (print_object): For bool-vector, delete unnecessary
2144 check of ASCII_BYTE_P.
2145
9196133b
JR
21462008-11-26 Jason Rumney <jasonr@gnu.org>
2147
2148 * w32font.c (w32font_open_internal): Don't include external
9acef61c 2149 leading in font height. (Bug#879)
9196133b 2150
9f688acf
GM
21512008-11-26 Glenn Morris <rgm@gnu.org>
2152
2153 * xfaces.c (Fx_font_family_list): Replace lisp/term/pc-win.el
2154 redefinition with ifdef. (Bug#1383)
2155
90d19aff
AR
21562008-11-24 Adrian Robert <Adrian.B.Robert@gmail.com>
2157
2158 * nsterm.m (ns_get_color): Handle long hex strings (fixes bug #1044).
2159
4ccfa1c0 21602008-11-24 Wolfgang Lux <wolfgang.lux@gmail.com> (tiny change)
90d19aff
AR
2161
2162 * nsterm.m (-otherMouseDown:, -otherMouseUp:, -otherMouseDragged):
2163 New EmacsView methods.
2164 (EV_UDMODIFIERS, EV_BUTTON): Add OtherMouse constants.
2165 Fixes bug #1048,1357,1414.
2166
21672008-11-24 Adrian Robert <Adrian.B.Robert@gmail.com>
2168
2169 Fix bug #1362.
2170 * image.c (x_clear_image_1): Do not free background under HAVE_NS, it
2171 is not an indexed color.
2172 * nsterm.m (free_indexed_color): Add argument checking.
2173 * nsfns.m: Move config.h to before system includes (advised by Dan N.).
2174
e7d5ecb3
CY
21752008-11-24 Chong Yidong <cyd@stupidchicken.com>
2176
2177 * minibuf.c (Fcompleting_read, Vminibuffer_completion_confirm):
2178 Document confirm-after-completion value for
2179 minibuffer-completion-confirm.
2180
c285743c
JR
21812008-11-24 Jason Rumney <jasonr@gnu.org>
2182
2183 * w32font.c (check_face_name): Use xstrcasecmp. Avoid compiler
2184 warning.
2185
b0857706
JR
21862008-11-23 Jason Rumney <jasonr@gnu.org>
2187
2188 * w32uniscribe.c (uniscribe_encode_char): Ensure context is
2189 restored before returning.
2190
2191 * w32font.c (check_face_name): New function.
2192 (add_font_entity_to_list): Use it to filter out common substituted
9acef61c 2193 fonts. (Bug#642)
b0857706 2194
ee50ff07
MR
21952008-11-22 Martin Rudalics <rudalics@gmx.at>
2196
2197 * buffer.c (Fswitch_to_buffer): Reword and mention new option
2198 confirm-nonexistent-file-or-buffer in doc-string.
2199
b8ff72fa
SM
22002008-11-21 Stefan Monnier <monnier@iro.umontreal.ca>
2201
2202 * buffer.c (Fbuffer_swap_text): Remove redundant marker manipulation.
2203 Fix copy/paste typo. Add checks.
2204
cee53ed4
KH
22052008-11-21 Kenichi Handa <handa@m17n.org>
2206
2207 * coding.c (detect_coding_iso_2022): Reject invalid composition
2208 sequence.
2209 (DECODE_COMPOSITION_START): If the current source is the last
2210 block, and the current composition doesn't end, regard this
2211 sequence as invalid.
2212 (decode_coding_iso_2022): Handle invalid composition sequence.
2213
f6ef1e65
MR
22142008-11-20 Martin Rudalics <rudalics@gmx.at>
2215
2216 * window.c (coordinates_in_window): Don't return
2217 ON_VERTICAL_BORDER for the rightmost position of a mode/header
2218 line when the window is not the rightmost one. (Bug#1372)
2219
e08b1705
MR
22202008-11-16 Ben North <ben@redfrontdoor.org> (tiny change)
2221
2222 * buffer.c (syms_of_buffer): Fix doc-string of cursor-type.
2223
ad98e89f
EZ
22242008-11-15 Eli Zaretskii <eliz@gnu.org>
2225
2226 * msdos.c (run_msdos_command): Don't call dos_ttcooked, dos_ttraw,
2227 and bright_bg if noninteractive is non-zero.
2228
fb098a4b
CY
22292008-11-15 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
2230
2231 * xterm.c (x_draw_glyph_string): For stretch glyphs, don't call
2232 x_draw_glyph_string_background.
2233
2234 * w32term.c (x_draw_glyph_string): Likewise.
2235
ce952b6e
CY
22362008-11-15 Chong Yidong <cyd@stupidchicken.com>
2237
2238 * xterm.c (x_draw_glyph_string): Stop drawing the background of
2239 the next glyph string once past the overhang width.
2240
2241 * nsterm.m (ns_draw_glyph_string): Likewise.
2242
2243 * w32term.c (x_draw_glyph_string): Likewise.
2244
26ea7079
CY
22452008-11-14 Fabrice Popineau <fabrice.popineau@supelec.fr> (tiny change)
2246
2247 * fileio.c (Finsert_file_contents): Decrement specpdl_ptr to avoid
2248 double file close.
2249
1c33c906
MR
22502008-11-14 Martin Rudalics <rudalics@gmx.at>
2251
2252 * window.c (window_loop): In DELETE_BUFFER_WINDOWS case, reset
2253 dedicated status of window before attempting to display another
2254 buffer in it.
2255
8fc29035
JB
22562008-11-14 Juanma Barranquero <lekktu@gmail.com>
2257
2258 * msdos.c (Fmsdos_long_file_names):
2259 (syms_of_msdos) <dos-unsupported-char-glyph>:
2260 * dosfns.c (Fint86): Fix typos in docstrings.
2261
55fb4286
EZ
22622008-11-14 Eli Zaretskii <eliz@gnu.org>
2263
2264 * makefile.w32-in (OBJ1, WIN32OBJ): Fix whitespace.
2265
3fda0315
KY
22662008-11-14 Katsumi Yamaoka <yamaoka@jpl.org>
2267
2268 * puresize.h (BASE_PURESIZE): Increase to 1260000.
2269
7e849c17
CY
22702008-11-12 Michal Nazarewicz <mina86@tlen.pl> (tiny change)
2271
2272 * frame.c (x_set_alpha): Set alpha to -1 if nil given.
2273
2274 * frame.h: Negative alpha means "don't touch".
2275
2276 * w32term.c (x_set_frame_alpha): Do nothing if alpha is negative.
2277
2278 * xterm.c (x_set_frame_alpha): Do nothing if alpha is negative.
2279
b9fd67bd
DN
22802008-11-12 Dan Nicolaescu <dann@ics.uci.edu>
2281
2282 * hftctl.c:
2283 * chpdef.h:
2284 * acldef.h: Remove files used only for systems no longer supported.
2285
2286 * Makefile.in: Fix .o alphabetical ordering.
2287 (hftctl.o): Remove dependency, file removed.
2288 (keymap.o, print.o): Depend on charset.h.
2289
d5998e03
KH
22902008-11-10 Kenichi Handa <handa@m17n.org>
2291
2ae37cf0 2292 * character.c (Fget_byte): Fix and make it faster for unibyte target.
d5998e03 2293
be70e183
CY
22942008-11-08 Chong Yidong <cyd@stupidchicken.com>
2295
2296 * dired.c (file_name_completion): If completion_ignore_case is
2297 enabled, ignore case when checking completion-regexp-list.
2298
7cf94eac
EZ
22992008-11-08 Eli Zaretskii <eliz@gnu.org>
2300
2301 * vm-limit.c (get_lim_data): Fix last change.
2302
ee107a89
KH
23032008-11-08 Kenichi Handa <handa@m17n.org>
2304
2305 * character.c (Fget_byte): New function.
2306 (syms_of_character): Defsubr Fget_byte.
2307
5fd15622
CY
23082008-11-07 Chong Yidong <cyd@stupidchicken.com>
2309
2310 * xdisp.c (try_window_reusing_current_matrix): Ensure that window
2311 cursor position is valid after scrolling.
2312
13d62fad
JB
23132008-11-06 Juanma Barranquero <lekktu@gmail.com>
2314
2315 * fns.c (Frandom): Rename arg N to LIMIT to match the docs; doc fix.
2316
a1dd2936
GM
23172008-11-06 Glenn Morris <rgm@gnu.org>
2318
2319 * xterm.c (handle_one_xevent): Don't let popup menus cause
2320 mouse-autoselect-window related window switching. (Bug#1261)
2321
860cd236
CY
23222008-11-04 David Smith <davidsmith@acm.org> (tiny change)
2323
2324 * xterm.c (xim_close_dpy): Avoid double-free on X11R6 XIM.
2325
653a3150
AS
23262008-11-04 Andreas Schwab <schwab@suse.de>
2327
2328 * xfns.c (Fx_wm_set_size_hint): Add missing return value.
2329
870f5cac
CY
23302008-11-03 Chong Yidong <cyd@stupidchicken.com>
2331
2332 * xfns.c (Fx_wm_set_size_hint): New function.
2333
1e02f3cb
MR
23342008-11-03 Martin Rudalics <rudalics@gmx.at>
2335
2336 * textprop.c (Fprevious_single_char_property_change): Return 0
2337 when there's no change in a string. (Bug#1301)
2338
e630dfc6
MR
23392008-11-02 Martin Rudalics <rudalics@gmx.at>
2340
2341 * frame.c (do_switch_frame): New argument NORECORD passed to
2342 Fselect_window.
2343 (Fselect_frame): New argument NORECORD passed to
2344 do_switch_frame.
2345 (Fset_frame_selected_window): New argument NORECORD passed to
2346 Fselect_frame.
2347 (Fhandle_switch_frame, Fdelete_frame): Handle NORECORD argument
2348 in call of do_switch_frame.
2349 (Fset_mouse_position, Fset_mouse_pixel_position, Fraise_frame):
2350 Handle NORECORD argument in call of Fselect_frame.
2351 * lisp.h (do_switch_frame, Fselect_frame)
2352 (Fset_frame_selected_window): Adjust declarations.
2353 * window.c (select_frame_norecord): New function.
2354 (run_window_configuration_change_hook): Use it and call
2355 Fselect_frame with NORECORD set.
2356 (Fselect_window): Pass NORECORD to Fselect_frame.
2357 (Fset_window_configuration): Handle NORECORD argument in call of
2358 do_switch_frame.
2359 * minibuf.c (choose_minibuf_frame): Handle NORECORD in call of
2360 Fset_frame_selected_window.
2361 * keyboard.c (command_loop_1): Handle NORECORD in call of
2362 Fselect_frame (currently ifdefd).
2363
9020b223
GM
23642008-11-02 Ulrich Mueller <ulm@kph.uni-mainz.de>
2365
2366 * emacs.c (USAGE2): Untabify.
2367
793ffee8
SM
23682008-11-01 Stefan Monnier <monnier@iro.umontreal.ca>
2369
2370 * composite.c (fill_gstring_header): Fix copy/paste typo.
2371
ab6d1131
MR
23722008-10-31 Martin Rudalics <rudalics@gmx.at>
2373
2374 * window.c (Fnext_window, Fprevious_window): Rewrite doc-string.
2375 (Fother_window): Rename argument and rewrite doc-string.
2376 (select_window_norecord): Fix return value. (Bug#1276)
2377
601a9cf1
JB
23782008-10-30 Juanma Barranquero <lekktu@gmail.com>
2379
2380 * w32fns.c (x_create_tip_frame): Prevent default foreground color for
2381 new frames overriding foreground for tooltips. Based on similar patch
2382 from Martin Rudalics <rudalics@gmx.at>. (Bug#1032)
2383
813b0652
CY
23842008-10-29 Chong Yidong <cyd@stupidchicken.com>
2385
2386 * emacs.c (Fdaemon_initialized): Initialize nfd.
2387
4414f58f
MR
23882008-10-29 Martin Rudalics <rudalics@gmx.at>
2389
2390 * window.c (Fwindow_height, Fdelete_window, set_window_buffer)
2391 (Fwindow_text_height): Clarify doc-strings.
2392 * xdisp.c (syms_of_xdisp): Mention set-window-buffer in
2393 doc-string of window-scroll-functions.
2394
ecdcaa09
RS
23952008-10-28 Reiner Steib <Reiner.Steib@gmx.de>
2396
2397 * category.c (syms_of_category): Fix typo in docstring.
2398
23fe745a
JB
23992008-10-28 Juanma Barranquero <lekktu@gmail.com>
2400
2401 * window.c (Fwindowp, Fwindow_live_p, Fwindow_minibuffer_p)
2402 (Fcoordinates_in_window_p, Fscroll_left, Fscroll_right):
2403 Fix typos in docstrings.
2404
ff808935
DN
24052008-10-28 Dan Nicolaescu <dann@ics.uci.edu>
2406
2407 * emacs.c (daemon_pipe): Make non-static.
2408 (IS_DAEMON): Move definition ...
2409 * lisp.h (IS_DAEMON): ... here.
2410 (daemon_pipe): Declare.
2411 (is_daemon): Remove.
2412 * dispnew.c (init_display): Use IS_DAEMON.
2413
fc012771
SM
24142008-10-28 Stefan Monnier <monnier@iro.umontreal.ca>
2415
2416 * xdisp.c (pos_visible_p, redisplay_internal, message3_nolog)
2417 (message2_nolog): Check FRAME_INITIAL_P instead of noninteractively.
2418
2419 * emacs.c (is_daemon): Remove.
2420 (main): Don't set is_daemon.
2421 (IS_DAEMON): New macro.
2422 (Fdaemonp, Fdaemon_initialized): Use it.
601a9cf1 2423 (Fdaemon_initialized): Write a char into the pipe to make sure the
fc012771
SM
2424 parent exits.
2425 (syms_of_emacs): Explicitly initialize daemon_pipe[1].
2426
d8bdbe6f
CY
24272008-10-27 Chong Yidong <cyd@stupidchicken.com>
2428
d1a072bf
CY
2429 * nsterm.m (ns_draw_window_cursor): When hbar cursor is on
2430 over-sized glyph, draw it with the default glyph width.
2431
e2e325aa
CY
2432 * w32term.c (x_draw_bar_cursor): When hbar cursor is on over-sized
2433 glyph, draw it with the default glyph width.
2434
2435 * xterm.c (x_draw_bar_cursor): When hbar cursor is on over-sized
2436 glyph, draw it with the default glyph width.
2437
d8bdbe6f
CY
2438 * xdisp.c (try_scrolling): When computing the distance from the
2439 scroll margin to PT, try moving some distance past the window
2440 bottom before giving up.
2441
7bfac547
MR
24422008-10-27 Martin Rudalics <rudalics@gmx.at>
2443
2444 * window.c (Fwindow_dedicated_p, Fset_window_dedicated_p)
2445 (Fset_window_buffer): Explain in doc-string that a window can be
2446 "strongly" dedicated to its buffer.
2447
4ff029f6
DN
24482008-10-27 Dan Nicolaescu <dann@ics.uci.edu>
2449
2450 * emacs.c (daemon_name): New variable.
2451 (main): Deal with --daemon=SERVER_NAME.
2452 (Fdaemonp): Return a name if one was passed to --daemon.
2453
5790ef40
DN
24542008-10-26 Romain Francoise <romain@orebokech.com>
2455
f9bd0df9 2456 * emacs.c (daemon_pipe): New variable.
5790ef40
DN
2457 (main): Create a pipe before forking, make the parent exit only after
2458 the child has closed its end of the pipe. Move closing the
2459 descriptors ...
2460 (Fdaemon_initialized): ... here. New function.
2461
f5385255
SM
24622008-10-26 Stefan Monnier <monnier@iro.umontreal.ca>
2463
4d632321
SM
2464 * chartab.c (Foptimize_char_table): Make sure `ascii' doesn't point to
2465 the previous unoptimized table.
2466
f5385255
SM
2467 * window.c (Fset_window_buffer): Undo 2008-10-18 change to re-instate
2468 the distinction between non-nil and non-t value of `dedicated'.
2469
6c56a0f3
CY
24702008-10-25 Chong Yidong <cyd@stupidchicken.com>
2471
2472 * keyboard.c (read_char_minibuf_menu_prompt): Ensure that
f5385255 2473 read_char_minibuf_menu_text is large enough to hold the menu string.
6c56a0f3 2474
fec89261
MR
24752008-10-25 Martin Rudalics <rudalics@gmx.at>
2476
2477 * window.c (Fget_buffer_window, Fdelete_windows_on)
2478 (Freplace_buffer_in_windows): Make buffer argument optional and
2479 rename to buffer_or_name.
2480
34fcddd0
CY
24812008-10-24 Chong Yidong <cyd@stupidchicken.com>
2482
f5385255
SM
2483 * xdisp.c (handle_single_display_spec, handle_display_prop):
2484 Undo 2005-05-16 change.
34fcddd0
CY
2485 (handle_stop): Pop iterator if it's loaded with an empty string.
2486 (get_overlay_strings_1): Don't save iterator if it's loaded with
2487 an empty string (bug#1201).
2488
064766f2
KH
24892008-10-24 Kenichi Handa <handa@m17n.org>
2490
2491 * ftfont.c (ftfont_otf_features): Fix previous change.
2492 (ftfont_otf_capability): Check FeatureList.FeatureCount before
2493 calling ftfont_otf_features.
2494
f9bd0df9 24952008-10-24 Kenichi Handa <handa@m17n.org>
064766f2
KH
2496
2497 * font.c (font_match_p): Fix for the case that a vector of
2498 characters is in script-representative-chars.
2499
1dae9197
MA
25002008-10-24 Michael Albinus <michael.albinus@gmx.de>
2501
2502 * dbusbind.c (xd_in_read_queued_messages): New variable.
f5385255 2503 (XD_SIGNAL1, XD_SIGNAL2, XD_SIGNAL3): New macros. Throw Qdbus_error.
1dae9197
MA
2504 (xd_read_queued_messages): Catch Qdbus_error from the macros.
2505 (all): Replace xsignal1, xsignal2, xsignal3 by the respective
2506 macro. (Bug#1186).
2507
f9bd0df9 25082008-10-23 Ali Bahrami <ali_gnu@emvision.com> (tiny change)
9b3362b8
DN
2509
2510 * s/sol2-10.h: New file.
2511
878a4584
JB
25122008-10-23 Juanma Barranquero <lekktu@gmail.com>
2513
2514 * xdisp.c (fill_glyph_string): Fix typo in source (though the
2515 poor beast has survived 9+ years and the jump from xterm.c!).
2516
cd265ca6
MR
25172008-10-23 Martin Rudalics <rudalics@gmx.at>
2518
2519 * buffer.c (Fget_buffer_create): Rename arg to buffer_or_name.
2520 Reword doc-string.
f5385255 2521 (Fbury_buffer): In doc-string say what happens to the buffer's window.
cd265ca6 2522
472a4dc9
JB
25232008-10-23 Juanma Barranquero <lekktu@gmail.com>
2524
2525 * character.c (syms_of_character) <script-representative-chars>:
2526 <unicode-category-table>: Doc fixes.
2527
159bd5a2
NF
25282008-10-23 Noah Friedman <friedman@splode.com>
2529
2530 * coding.c (make_conversion_work_buffer): Check that
2531 Vcode_conversion_reused_workbuf is a live buffer, otherwise call
2532 Fget_buffer_create.
2533
49f9c344
KH
25342008-10-23 Kenichi Handa <handa@m17n.org>
2535
2536 * font.c (font_add_log): Check the values of extra properties.
2537
12bb3111
MR
25382008-10-22 Martin Rudalics <rudalics@gmx.at>
2539
2540 * window.c (Fwindow_dedicated_p, Fset_window_dedicated_p):
2541 Reword doc-string.
2542 (Fset_window_parameter): Use NILP.
2543 (Fscroll_up, Fscroll_down, Fminibuffer_selected_window)
f5385255 2544 (Frecenter): Use "selected" instead of "current" window in doc-strings.
12bb3111 2545
bbeb4e99
JB
25462008-10-22 Juanma Barranquero <lekktu@gmail.com>
2547
2548 * xdisp.c (next_element_from_buffer): Remove bogus xassert condition.
2549
25502008-10-22 Adrian Robert <Adrian.B.Robert@gmail.com>
cb83c00b
AR
2551
2552 * nsfns.m (ns_appkit_version): New function.
2553 (x-server-version): Use it.
2554 (syms_of_nsfns): Define ns-version-string here, not nsterm.m.
2555 (x-server-vendor): Don't check_ns().
2556
2557 * nsterm.m (syms_of_nsterm): Drop ns-version-string.
2558
a9b555d3
JB
25592008-10-22 Juanma Barranquero <lekktu@gmail.com>
2560
2561 * w32fns.c (unwind_create_frame) [!GLYPH_DEBUG]: Fix xassert.
2562 Copied from 2005-02-03 change to xfns.c by Kim F. Storm.
2563
4626499f
KH
25642008-10-22 Kenichi Handa <handa@m17n.org>
2565
e3681952
KH
2566 * syntax.c (scan_words): Call word_boundary_p instead of comparing
2567 scripts.
2568
4626499f
KH
2569 * category.c (word_boundary_p): Check scripts instead of charset.
2570 Handle nil value in word-separating-categories and
2571 word-combining-categories.
2572 (syms_of_category): Fix docstrings of word-separating-categories
2573 and word-combining-categories.
2574
1560f91a
EZ
25752008-10-21 Eli Zaretskii <eliz@gnu.org>
2576
2577 * coding.c (Fencode_coding_region, Fdecode_coding_region)
2578 (Fdecode_coding_string, Fencode_coding_string): Doc fix.
2579
f4668441
MR
25802008-10-21 Martin Rudalics <rudalics@gmx.at>
2581
2582 * buffer.c (Fget_buffer, Fbury_buffer, switch_to_buffer_1):
2583 Rename arg "buffer" to "buffer_or_name".
2584 (Fkill_buffer): Rename arg "buffer" to "buffer_or_name" and make
2585 it optional.
2586 (no_switch_window): Remove since the return value is not used.
a9b555d3 2587 (Fswitch_to_buffer): Rename arg "buffer" to "buffer_or_name".
f4668441
MR
2588 Consider window as dedicated when Fwindow_dedicated_p returns a
2589 non-nil value.
2590 * lisp.h: Remove prototype for no_switch_window.
2591
fd75ddb2
JD
25922008-10-21 Jan Djärv <jan.h.d@swipnet.se>
2593
2594 * emacs.c (main): Unconditionally set PER_LINUX32 and exec
2ae37cf0 2595 temacs when dumping if HAVE_PERSONALITY_LINUX32 is defined.
fd75ddb2 2596
07295713
KH
25972008-10-21 Kenichi Handa <handa@m17n.org>
2598
2599 * coding.c (detect_coding_charset): For iso-8859-* coding systems,
2600 check Vlatin_extra_code_table.
2601
712adc82
EZ
26022008-10-20 Eli Zaretskii <eliz@gnu.org>
2603
2604 * fileio.c (Fset_file_modes): Doc fix.
2605
f549eb0b
MA
26062008-10-19 Michael Albinus <michael.albinus@gmx.de>
2607
2608 * dbusbind.c (XD_OBJECT_TO_DBUS_TYPE): Handle simple type symbols
2609 in arrays.
2610
aac0c6e3
MR
26112008-10-19 Martin Rudalics <rudalics@gmx.at>
2612
2613 * window.c (Fwindow_dedicated_p, Fset_window_dedicated_p):
2614 Mention kill-buffer in doc-string.
2615 (Fset_window_buffer): Reinsert tem check removed in last commit.
2616 (Fenlarge_window, Fshrink_window): Have argument names and
2617 doc-string follow Elisp manual more closely.
2618
26192008-10-18 Eli Zaretskii <eliz@gnu.org>
2620
2621 * fileio.c (Fset_file_modes): Doc fix.
2622
26232008-10-18 Martin Rudalics <rudalics@gmx.at>
2624
2625 * window.c (Fwindow_width, Fset_window_start)
2626 (Fwindow_parameters, Fwindow_parameter, Fset_window_parameter)
f5385255
SM
2627 (Fdelete_windows_on, Freplace_buffer_in_windows):
2628 Make doc-strings follow code and Elisp manual more closely.
aac0c6e3
MR
2629 (Fwindow_dedicated_p): Make window argument optional.
2630 (Fset_window_dedicated_p): Rename argument "arg" to "flag".
2631 (Fset_window_buffer): Respect any non-nil dedicated value for
2632 window. Rename "buffer" argument to "buffer_or_name".
2633
26342008-10-18 Ulrich Mueller <ulm@gentoo.org>
2635
2636 * m/sh3.h: New file, machine description for SuperH.
2637
26382008-10-17 Martin Rudalics <rudalics@gmx.at>
2639
2640 * window.c (Fsplit_window): Rename arg horflag to horizontal.
2641
26422008-10-17 Kenichi Handa <handa@m17n.org>
2643
2644 * ftfont.c (ftfont_otf_features): Fix indexing
2645 gsub_gpos->FeatureList.Feature. Check the validity of indices.
2646
26472008-10-16 Magnus Henoch <mange@freemail.hu>
2648
2649 * dbusbind.c (Fdbus_call_method): Unbreak usage line.
2650 (Fdbus_call_method_asynchronously): Ditto.
2651 This change makes C-h f display the argument list.
2652
26532008-10-16 Chong Yidong <cyd@stupidchicken.com>
2654
2655 * fileio.c (Fexpand_file_name): Doc fix.
2656
2657 * xfaces.c (Finternal_set_lisp_face_attribute): Make null values
2658 of :foreground and :background equivalent to unspecified (20.x
2659 compatibility).
2660
26612008-10-15 Eli Zaretskii <eliz@gnu.org>
2662
2663 * buffer.c (syms_of_buffer): Doc fix.
2664
26652008-10-14 Kenichi Handa <handa@m17n.org>
2666
2667 * font.c (font_clear_prop): When clearing font width, clear the
2668 average width field too.
2669
26702008-10-12 Andreas Schwab <schwab@suse.de>
2671
2672 * ftfont.c (ftfont_shape_by_flt): Make static.
2673 * ftfont.h (ftfont_shape_by_flt): Don't declare.
2674
2675 * font.c: Don't include <m17n-flt.h>.
2676
26772008-10-10 Eli Zaretskii <eliz@gnu.org>
2678
2679 * s/msdos.h (SYSTEM_PURESIZE_EXTRA): Decrease to 10000.
2680
26812008-10-09 Eli Zaretskii <eliz@gnu.org>
2682
2683 * frame.c (make_terminal_frame) [MSDOS]: Remove unused #ifdef'ed
2684 away code.
2685
26862008-10-09 Chong Yidong <cyd@stupidchicken.com>
2687
2688 * dispnew.c (update_text_area): Avoid looping due to large glyph
2689 overhangs (bug#1070).
2690
26912008-10-09 Kenichi Handa <handa@m17n.org>
2692
2693 * fontset.c (face_for_char): If face->fontset is negative, just
2694 return ascii_face.
2695
f5385255
SM
2696 * font.c (font_delete_unmatched): Fix previous change.
2697 Don't reject an entity if DPI and AVGWIDTH of an entity are 0.
aac0c6e3
MR
2698
26992008-10-09 Martin Rudalics <rudalics@gmx.at>
2700
2701 * frame.c (Fraise_frame): On text-only terminals select frame in
2702 order to make it visible. (Bug#1061)
2703
27042008-10-08 Chong Yidong <cyd@stupidchicken.com>
2705
2706 * fontset.c (fontset_find_font): Check frame validity.
2707
27082008-10-07 Chong Yidong <cyd@stupidchicken.com>
2709
a9b555d3 2710 * gtkutil.c (xg_display_open): Reset default display if none exists.
aac0c6e3
MR
2711 (xg_display_close): Allow Emacs to close all displays (bug#985).
2712
27132008-10-06 Andreas Schwab <schwab@suse.de>
2714
f5385255 2715 * sysdep.c (sys_signal): Always set SA_RESTART when noninteractively.
aac0c6e3
MR
2716
27172008-10-06 Chong Yidong <cyd@stupidchicken.com>
2718
f5385255 2719 * emacs.c (Vbefore_init_time, Vafter_init_time): Move from startup.el.
aac0c6e3 2720
a9b555d3 2721 * lisp.h (Vbefore_init_time, Vafter_init_time): Declare.
aac0c6e3
MR
2722
2723 * gtkutil.c (x_wm_set_size_hint): Return immediately if called
2724 during initialization.
2725
27262008-10-04 Eli Zaretskii <eliz@gnu.org>
2727
2728 * xdisp.c (redisplay_internal): If frame switched, redisplay the
2729 whole thing on MSDOS frames as well as on a TTY.
2730
2731 * dispnew.c (update_frame): Flush termscript for MSDOS frames as
2732 well as for TTY.
2733 (Fopen_termscript): Allow opening a termscript on MSDOS frames as
2734 well as on a TTY.
2735
2736 * sysdep.c (init_sys_modes): Set FRAME_GARBAGED_P for MSDOS frames
2737 as well as for TTY.
2738
2739 * systime.h (EMACS_TIME_CMP): Cast EMACS_SECS values to `long'.
2740
2741 * dispnew.c (change_frame_size_1): Set FrameRows and FrameCols for
2742 MSDOS frames as well.
2743
27442008-10-02 Adrian Robert <Adrian.B.Robert@gmail.com>
2745
2746 * image.c (x_clear_image_1): Under NS, call ns_free_indexed_color with
2747 correct arguments.
b71ac3dd 2748 * menu.c (find_and_return_menu_selection): Add cast.
aac0c6e3
MR
2749
27502008-10-03 Glenn Morris <rgm@gnu.org>
2751
2752 * emacs.c (USAGE1): Add --daemon.
2753
27542008-10-02 Eli Zaretskii <eliz@gnu.org>
2755
2756 * process.c (procfs_system_process_attributes): Multiply `pcpu' by
2757 100, so it's in percents as advertised.
2758
27592008-10-02 Adrian Robert <Adrian.B.Robert@gmail.com>
2760
2761 * nsterm.h (ns_cursor_types, ns_output.desired_cursor_color)
2762 (ns_output.current_cursor, ns_output.desired_cursor)
2763 (ns_output.last_inactive, FRAME_CURSOR, FRAME_NEW_CURSOR)
2764 (FRAME_NEW_CURSOR_COLOR): Remove.
2765
2766 * nsfns.m (ns_set_cursor_color): Use FRAME_CURSOR_COLOR.
a9b555d3 2767 (ns_lisp_to_cursor_type, ns_cursor_type_to_lisp): Use core Emacs
aac0c6e3
MR
2768 enumeration (HOLLOW_BOX_CURSOR, etc.).
2769
2770 * nsterm.m (ns_frame_rehighlight): Remove commented code.
2771 (draw_window_cursor): Simplify code.
f5385255
SM
2772 (EmacsView-windowDidBecomeKey:,-windowDidResignKey:):
2773 Don't change cursor type. In latter, call rehighlight instead of doing
aac0c6e3 2774 updates manually.
a9b555d3
JB
2775 (EmacsPrefsController-setPanelFromValues,-setValuesFromPanel):
2776 Use core Emacs cursor types.
aac0c6e3 2777
b8ff72fa 2778 * xdisp.c (draw_glyphs): Don't call notice_overwritten_cursor under NS.
aac0c6e3
MR
2779
27802008-10-02 Martin Rudalics <rudalics@gmx.at>
2781
2782 * process.c (Faccept_process_output): Fix doc-string.
2783
27842008-10-02 Dan Nicolaescu <dann@ics.uci.edu>
2785
2786 * gmalloc.c (__sbrk): Also define for uClibc.
2787
2788 * s/gnu-linux.h (GNU_LIBRARY_PENDING_OUTPUT_COUNT): Add definition
2789 for uClibc.
2790
27912008-10-01 Adrian Robert <Adrian.B.Robert@gmail.com>
2792
2793 * nsfont.m (nsfont_spec_to_traits): Use UnXX masks only for non-normal
2794 styles.
2795 (nsfont_open): Reenable the cache.
2796
27972008-10-01 Adrian Robert <Adrian.B.Robert@gmail.com>
2798
2799 * font.c (font_matching_entity): Reflect ATTRS in font selection.
2800 (font_find_for_lface) [HAVE_NS]: Don't ignore case.
2801
28022008-09-30 Stefan Monnier <monnier@iro.umontreal.ca>
2803
2804 * dispnew.c (Fsend_string_to_terminal): Don't try to send a string to
2805 a suspended terminal.
2806
28072008-09-30 Michael Albinus <michael.albinus@gmx.de>
2808
2809 * dbusbind.c (xd_signature): Use strcat instead of sprintf.
2810
28112008-09-30 Eli Zaretskii <eliz@gnu.org>
2812
2813 * Makefile.in (MSDOS_SUPPORT): Remove ccl.elc and codepage.elc.
2814
28152008-09-30 Chong Yidong <cyd@stupidchicken.com>
2816
2817 * xdisp.c (move_it_to): Don't advance the iterator if the last tab
2818 in a continued line coincides with a line beginning.
2819
28202008-09-29 Adrian Robert <Adrian.B.Robert@gmail.com>
2821
2822 * nsfont.m (nsfont_trait_distance): Fix bug.
2823 (nsfont_list): Return a list rather than a vector (syncs with Handa
2824 changes of 2008-05-14).
2825 (nsfont_open): Improve logging.
2826
28272008-09-29 Andreas Schwab <schwab@suse.de>
2828
2829 * keyboard.c (syms_of_keyboard) <input-decode-map>: Doc fix.
2830
28312008-09-28 Martin Rudalics <rudalics@gmx.at>
2832
2833 * character.c (Fchar_resolve_modifiers): Rewrite Elisp function
2834 name as char-resolve-modifiers.
2835 Reported by: Markus Triska <markus.triska@gmx.at>
2836
28372008-09-28 Dan Nicolaescu <dann@ics.uci.edu>
2838
2839 * dispnew.c (init_display): Return earlier when running as a daemon.
2840
28412008-09-27 Adrian Robert <Adrian.B.Robert@gmail.com>
2842
2843 * nsfont.m (nsfont_draw): Fix up composition rendering (cmp_from, ...).
2844
28452008-09-27 Eli Zaretskii <eliz@gnu.org>
2846
2847 * composite.c (Fcomposition_get_gstring)
2848 (Fcompose_region_internal, Fcompose_string_internal)
2849 (Ffind_composition_internal): Doc fix.
2850 (syms_of_composite) <compose-chars-after-function>: Doc fix.
2851 (syms_of_composite) <auto-composition-function>: Doc fix.
2852 (syms_of_composite) <composition-function-table>: Doc fix.
2853
28542008-09-25 Chong Yidong <cyd@stupidchicken.com>
2855
2856 * search.c (wordify): New argument for lax word-ends.
2857 (Fword_search_forward_lax, Fword_search_backward_lax): New funs.
2858
28592008-09-24 Dan Nicolaescu <dann@ics.uci.edu>
2860
2861 * lisp.h (is_daemon): Declare.
2862 * dispnew.c (init_display): Do not try to initialize the terminal
2863 when running as a daemon.
2864
28652008-09-22 Chong Yidong <cyd@stupidchicken.com>
2866
2867 * nsfns.m (compute_tip_xy): Use x_display_pixel_width and
2868 x_display_pixel_height.
2869
28702008-09-22 Martin Rudalics <rudalics@gmx.at>
2871
2872 * undo.c (record_point): Don't call Fundo_boundary for first
2873 change. (Bug#731)
2874
28752008-09-22 Juanma Barranquero <lekktu@gmail.com>
2876
2877 * emacs.c (Fdaemonp): Doc fix.
2878
28792008-09-22 Dan Nicolaescu <dann@ics.uci.edu>
2880
2881 * emacs.c (main): Place #ifdef in the proper place.
2882
28832008-09-21 Dan Nicolaescu <dann@ics.uci.edu>
2884
2885 * emacs.c (standard_args): Add --daemon.
2886 (main): Disconnect from the terminal when --daemon is passed.
2887 (is_daemon): New variable.
2888 (Fdaemonp): New function.
2889 (syms_of_emacs): Defsubr it.
2890
28912008-09-20 Chong Yidong <cyd@stupidchicken.com>
2892
2893 * xdisp.c (get_next_display_element): Handle string display
2894 correctly when checking for the end of a box run.
2895
28962008-09-20 Glenn Morris <rgm@gnu.org>
2897
2898 * fileio.c (Qdelete_by_moving_to_trash): New Lisp_Object.
2899 (syms_of_fileio): Add Qdelete_by_moving_to_trash.
2900 (Frename_file): Avoid copying to trash if a rename involves
2901 a delete. (Bug#964).
2902
29032008-09-20 Eli Zaretskii <eliz@gnu.org>
2904
2905 * keyboard.c (Fset_quit_char, Fset_input_meta_mode)
2906 (Fset_output_flow_control, Fcurrent_input_mode): Support MSDOS
2907 frames as well as termcap frames.
2908 (handle_interrupt): Remove "#ifndef MSDOS" around the call to
2909 get_named_tty.
2910
29112008-09-19 Eli Zaretskii <eliz@gnu.org>
2912
2913 * process.c (procfs_system_process_attributes): Fix cmdline in
2914 case /proc/PID/cmdline is empty.
2915
2916 * xterm.c (x_wm_set_size_hint): Use x_display_pixel_width and
2917 x_display_pixel_height.
2918
29192008-09-19 Juanma Barranquero <lekktu@gmail.com>
2920
2921 * frame.c (x_fullscreen_adjust): Declare var as Display_Info.
2922
2923 * w32fns.c (Fx_display_pixel_width, Fx_display_pixel_height)
2924 (compute_tip_xy): Use x_display_pixel_width, x_display_pixel_height.
2925
29262008-09-19 Dan Nicolaescu <dann@ics.uci.edu>
2927
2928 * dispextern.h (struct it): Move line_wrap away from the middle of
2929 bitfields. Move voffset in struct iterator_stack_entry after the
2930 bitfields. Move tab_width near after another short.
2931
29322008-09-18 Dan Nicolaescu <dann@ics.uci.edu>
2933
2934 * frame.h (struct frame): Move alpha from the middle of bitfields.
2935
2936 * window.h (struct window): Move frozen_window_start_p after the
2937 rest of the bitfields to reduce padding.
2938
29392008-09-18 Chong Yidong <cyd@stupidchicken.com>
2940
2941 * xterm.h (x_display_info): Remove `height' and `width' members.
2942
2943 * nsterm.h (ns_display_info): Remove `height' and `width' members.
2944
2945 * w32term.h (w32_display_info): Remove `height', `width',
2946 `height_in', and `width_in' members.
2947
b8ff72fa
SM
2948 * xterm.c (x_display_pixel_height, x_display_pixel_width):
2949 New functions.
aac0c6e3
MR
2950 (x_calc_absolute_position): Use them.
2951 (x_term_init): Omit removed `height' and `width' members.
2952
b8ff72fa
SM
2953 * w32term.c (x_display_pixel_height, x_display_pixel_width):
2954 New functions.
aac0c6e3
MR
2955 (w32_read_socket, x_calc_absolute_position): Use them.
2956 (w32_initialize_display_info, w32_term_init): Omit removed members
2957 of w32_display_info.
2958
b8ff72fa
SM
2959 * nsterm.m (x_display_pixel_height, x_display_pixel_width):
2960 New functions.
2961 (ns_initialize_display_info): Omit removed members of ns_display_info.
aac0c6e3 2962
b8ff72fa
SM
2963 * xterm.c (x_display_pixel_height, x_display_pixel_width):
2964 New functions.
aac0c6e3
MR
2965 (x_calc_absolute_position): Use them.
2966 (x_term_init): Omit removed `height' and `width' members.
2967
2968 * xfns.c (Fx_display_pixel_width, Fx_display_pixel_height)
b8ff72fa
SM
2969 (compute_tip_xy):
2970 * frame.c (x_fullscreen_adjust):
aac0c6e3
MR
2971 * xmenu.c (menu_position_func): Use x_display_pixel_height and
2972 x_display_pixel_width.
2973
29742008-09-18 Kenichi Handa <handa@m17n.org>
2975
2976 * composite.c (fill_gstring_header): Don't check FROM and TO here.
2977 (composition_compute_stop_pos): Fix handling of static composition.
2978 (Fcomposition_get_gstring): Check FROM and TO at first.
2979
29802008-09-17 Stefan Monnier <monnier@iro.umontreal.ca>
2981
46e722a9 2982 * composite.c (Fcomposition_get_gstring): Yet another int/Lisp_Object
aac0c6e3
MR
2983 mixup (YAILOM).
2984
29852008-09-17 Chong Yidong <cyd@stupidchicken.com>
2986
2987 * indent.c (Fvertical_motion): Use position reported by iterator
2988 instead of PT for determining screen motion (bug#943).
2989
29902008-09-17 Romain Francoise <romain@orebokech.com>
2991
2992 * composite.c (composition_adjust_point): Fix int/EMACS_INT mixup.
2993
29942008-09-17 Kenichi Handa <handa@m17n.org>
2995
2996 * ftfont.c (ftfont_shape_by_flt): Downcase family name.
2997
2998 * composite.c (Fcomposition_get_gstring): Make bigger gstring_work
2999 if necessary.
3000
30012008-09-16 Kenichi Handa <handa@m17n.org>
3002
3003 * coding.c (make_conversion_work_buffer): Avoid calling
3004 Fget_buffer_create if it is not necessary.
3005
30062008-09-15 Martin Rudalics <rudalics@gmx.at>
3007
3008 * window.c (Fselect_window): Don't update window_select_count and
3009 use_time when norecord is not nil.
3010
30112008-09-14 Kenichi Handa <handa@m17n.org>
3012
3013 * fileio.c (Finsert_file_contents): Delete incorrect decrement of
3014 specpdl_ptr.
3015
30162008-09-12 Kenichi Handa <handa@m17n.org>
3017
3018 * indent.c (scan_for_column): Don't handle automatic composition
3019 if the current buffer is not associated with a window.
3020
3021 * composite.c (composition_reseat_it): If the current buffer is
3022 not associated with a window, ignore the automatic composition.
3023 (find_automatic_composition): Likewise.
3024
30252008-09-12 Stefan Monnier <monnier@iro.umontreal.ca>
3026
3027 * term.c (close_gpm): New fun extracted from Fgpm_mouse_stop.
3028 (Fgpm_mouse_stop): Use it.
3029 * termhooks.h (close_gpm): Declare.
3030 * keyboard.c (tty_read_avail_input): Forcefully close the gpm
3031 connection if Gpm_GetEvent fails.
3032
3033 * window.c (set_window_buffer): Always preserve current-buffer.
3034
30352008-09-12 Glenn Morris <rgm@gnu.org>
3036
3037 * charset.c (init_charset): Warn if etc/charsets not found. (Bug#909)
3038
30392008-09-11 Glenn Morris <rgm@gnu.org>
3040
3041 * charset.c (charset-map-path): Doc fix.
3042
30432008-09-10 Kenichi Handa <handa@m17n.org>
3044
3045 * xdisp.c (handle_composition_prop): Set it->cmp_it.ch to -1.
3046
3047 * font.c (Ffont_shape_gstring): Make glyphs of non-nil adjustment
3048 compose a grapheme cluster with the preceding base glyph.
3049
3050 * composite.c (composition_compute_stop_pos): Fix previous change.
3051 Reset cmp_it->id to -1 at first.
3052
30532008-09-10 Glenn Morris <rgm@gnu.org>
3054
3055 * Makefile.in (character.o, chartab.o): Fix config.h typo.
3056
30572008-09-09 Chong Yidong <cyd@stupidchicken.com>
3058
3059 * keyboard.c (read_key_sequence): Reapply translation maps when
3060 switching keyboards.
3061
30622008-09-09 Kenichi Handa <handa@m17n.org>
3063
3064 * ftfont.c (ftfont_shape_by_flt): Use "combining" FLT for ASCII
3065 characters.
3066
3067 * composite.c (FORWARD_CHAR): Fix calculation
3068 of (POSITION).pos_byte.
3069 (composition_compute_stop_pos): Limit the search of composition to
3070 at most 500 characters ahead. If we reach the limit or find a
3071 newline, set cmp_it->ch to -2 and return 0.
3072 (composition_reseat_it): Handle the case that cmp_it->ch is -2.
3073
30742008-09-08 Kenichi Handa <handa@m17n.org>
3075
3076 * indent.c (Fvertical_motion): Be sure to set
3077 it_overshoot_expected if it.cmp_it.id is non-negative.
3078
30792008-09-07 Andreas Schwab <schwab@suse.de>
3080
3081 * callproc.c (Fcall_process): Don't hold references to string data
3082 across garbage collection. Move initialisation of new_argv down
3083 to avoid compiler bug.
3084
30852008-09-07 Roland Winkler <Roland.Winkler@physik.uni-erlangen.de>
3086
3087 * process.c (Fsystem_process_attributes): Doc fix.
3088
30892008-09-07 Chong Yidong <cyd@stupidchicken.com>
3090
3091 * callproc.c (Fcall_process): Canonicalize current directory name.
3092
3093 * xdisp.c (move_it_to): When moving by vpos, ensure that the
3094 iterator advances to the next line if the current line ends in a
3095 continued tab.
3096
30972008-09-07 Teodor Zlatanov <tzz@lifelogs.com>
3098
3099 * nsfont.m (nsfont_draw): Fix the references to missing gidx data
3100 member to point to cmp_from.
3101
3102 * xdisp.c: Doc fix for references to gidx data member.
3103
31042008-09-07 Stefan Monnier <monnier@iro.umontreal.ca>
3105
3106 * buffer.c (Fbuffer_swap_text): Reset window->point markers.
3107
31082008-09-07 Kenichi Handa <handa@m17n.org>
3109
3110 * composite.c (FORWARD_CHAR): Check STOP after
3111 incrementing (POSITION).pos.
3112
31132008-09-06 Roland Winkler <Roland.Winkler@physik.uni-erlangen.de>
3114
3115 * process.c (Fsystem_process_attributes): Doc fix.
3116
31172008-09-06 Chong Yidong <cyd@stupidchicken.com>
3118
3119 * keyboard.c (Ftop_level): Doc fix.
3120
31212008-09-06 Eli Zaretskii <eliz@gnu.org>
3122
3123 * xmenu.c (xmenu_show) [!HAVE_X_WINDOWS]: If frame has a
3124 minibuffer, don't let lower part of menu invade the echo area.
3125
3126 * msdos.c (IT_menu_display): Use STRING_CHAR_ADVANCE instead of a
3127 "char *q" to access menu text and advance through it. Revert the
3128 change that displayed ">" instead of ASCII character 0x10.
3129
31302008-09-05 Eli Zaretskii <eliz@gnu.org>
3131
3132 * menu.c (single_menu_item) [!HAVE_BOXES]: Enable emulation of
3133 toggle boxes and radio buttons on MS-DOS as well.
3134
31352008-09-05 Kenichi Handa <handa@m17n.org>
3136
3137 * composite.c (autocmp_chars): Check lookback count.
3138 (composition_compute_stop_pos): Set cmp_it->lookback.
3139 (composition_reseat_it): Check lookback count.
3140 (struct position_record): New struct.
3141 (FORWARD_CHAR, BACKWARD_CHAR, CHAR_COMPOSABLE_P): New macros.
3142 (find_automatic_composition): New function.
3143 (composition_adjust_point): Use find_automatic_composition.
3144
3145 * dispextern.h (struct composition_it): New member lookback.
3146
31472008-09-02 Chong Yidong <cyd@stupidchicken.com>
3148
3149 * indent.c (Fvertical_motion): Don't call move_it_by_lines again
3150 if moving by a single line.
3151
31522008-09-02 Andreas Schwab <schwab@suse.de>
3153
3154 * xterm.c (x_delete_display): Fix merge error.
3155
3156 * fileio.c (Fexpand_file_name): Remove unused variables.
3157
31582008-09-02 Eli Zaretskii <eliz@gnu.org>
3159
3160 * fileio.c (Fexpand_file_name): Copy argument `name' into local
3161 storage on all platforms, not just on DOS_NT.
3162
31632008-09-02 Jason Rumney <jasonr@gnu.org>
3164
b8ff72fa
SM
3165 * w32menu.c (Fx_popup_menu, Fx_popup_dialog, w32_menu_show):
3166 Ensure mouse is not grabbed after menu is finished.
aac0c6e3
MR
3167
31682008-09-01 Chong Yidong <cyd@stupidchicken.com>
3169
3170 * xfaces.c (Finternal_set_alternative_font_family_alist)
3171 (Finternal_set_alternative_font_registry_alist): Properly copy
3172 entire alist structure.
3173
31742008-09-01 Kenichi Handa <handa@m17n.org>
3175
d66c0241 3176 * ftfont.c (ftfont_spec_pattern): Don't create a charset if the
aac0c6e3 3177 representative chars of the script is a vector.
d66c0241
JB
3178 (ftfont_list): Handle the case where the representative chars of
3179 the script is a vector.
aac0c6e3
MR
3180
3181 * character.c (syms_of_character): Docstring of
3182 script-representative-chars fixed.
3183
31842008-08-31 Eli Zaretskii <eliz@gnu.org>
3185
3186 * msdos.c (BUILD_CHAR_GLYPH): New macro.
3187 (IT_menu_display): Use it instead of SET_CHAR_GLYPH to construct
3188 the menu. Allocate larger buffer for `text', to account for
3189 possible ^C characters.
3190
31912008-08-31 Martin Rudalics <rudalics@gmx.at>
3192
3193 * xdisp.c (prepare_menu_bars): Don't call
3194 Vwindow_size_change_functions with arg Qt.
3195
31962008-08-31 Stefan Monnier <monnier@iro.umontreal.ca>
3197
3198 * font.h (font_range):
3199 * fileio.c (report_file_error):
46e722a9
SM
3200 * composite.c (composition_update_it): Yet another int/Lisp_Object
3201 mixup (YAILOM).
aac0c6e3
MR
3202
32032008-08-30 Glenn Morris <rgm@gnu.org>
3204
3205 * data.c (Fmake_variable_frame_local): Doc fix.
3206
3207 * frame.c (Fmodify_frame_parameters): Doc fix.
3208
32092008-08-30 Eli Zaretskii <eliz@gnu.org>
3210
3211 * w32.c (init_user_info): Allocate buf[] with xmalloc using the size
3212 needed by GetTokenInformation.
3213 (w32_system_process_attributes): Check return values of all system
3214 APIs.
3215
3216 * msdos.c (IT_display_cursor): Write "CURSOR ON/OFF" to termscript
3217 only when the state changes.
3218 (IT_update_begin, IT_update_end): Add termscript trace.
3219
3220 * w16select.c (Fw16_set_clipboard_data): Don't encode text if
3221 clipboard is unavailable. Set dst to NULL if it doesn't point to
3222 malloc'ed data.
3223 (Fw16_get_clipboard_data): Initialize htext to NULL, to avoid
3224 passing random values to xfree.
3225
3226 * dispnew.c (init_display): Set `tty's association in frame's
b8ff72fa 3227 parameters alist to the name of the terminal device, if that is known.
aac0c6e3
MR
3228
32292008-08-29 Jason Rumney <jasonr@gnu.org>
3230
3231 * w32uniscribe.c (uniscribe_check_otf): Don't fallback on DFLT script.
3232
32332008-08-29 Eli Zaretskii <eliz@gnu.org>
3234
3235 * composite.c (fill_gstring_body): Avoid compiler warnings.
3236
3237 * font.c (font_fill_lglyph_metrics): Use EMACS_INT in
3238 LGLYPH_SET_CODE to avoid compiler warnings.
3239
2ae37cf0 3240 * makefile.w32-in ($(BLD)/w32uniscribe.$(O)): Depend on composite.h.
aac0c6e3
MR
3241
3242 * composite.h (LGLYPH_SET_CODE): Cast `val' to EMACS_INT.
3243
3244 * w32uniscribe.c (uniscribe_shape): Shut up compiler warning in
3245 LGLYPH_SET_CODE.
3246
32472008-08-29 Kenichi Handa <handa@m17n.org>
3248
3249 * fileio.c (report_file_error): Don't downcase the first character
3250 of errstring if it is still unibyte.
3251
32522008-08-29 Kenichi Handa <handa@m17n.org>
3253
3254 These changes are to re-implement the automatic composition so
3255 that it doesn't use text properties.
3256
3257 * Makefile.in (ftfont.o): Depend on composite.h.
3258 (composite.o): Depend dispextern.h, font.h, frame, and window.h.
3259
3260 * character.h (Vunicode_category_table): Extern it.
3261
3262 * character.c (Vunicode_category_table): New variable.
3263 (syms_of_character): DEFVAR_LISP Vunicode_category_table.
3264
3265 * chartab.c (optimize_sub_char_table): Perform more greedy
3266 optimization.
3267
b8ff72fa
SM
3268 * composite.h (enum composition_method):
3269 Delete COMPOSITION_WITH_GLYPH_STRING.
aac0c6e3
MR
3270 (COMPOSITION_METHOD): Don't check COMPOSITION_WITH_GLYPH_STRING.
3271 (Vcomposition_function_table): Extern it.
3272 (LGSTRING_XXX, LGLYPH_XXX): Macros moved from font.h.
3273 (composition_gstring_put_cache, composition_gstring_from_id)
3274 (composition_gstring_p, composition_gstring_width)
3275 (composition_compute_stop_pos, composition_reseat_it)
3276 (composition_update_it, composition_adjust_point): Extern them.
3277 (Fcomposition_get_gstring): EXFUN it.
3278
d66c0241 3279 * composite.c: Include window.h, frame.h, dispextern.h, font.h.
aac0c6e3
MR
3280 (Vcomposition_function_table)
3281 (get_composition_id): Don't handle COMPOSITION_WITH_GLYPH_STRING.
b8ff72fa
SM
3282 (gstring_hash_table, gstring_work, gstring_work_headers):
3283 New variables.
aac0c6e3
MR
3284 (gstring_lookup_cache, composition_gstring_put_cache)
3285 (composition_gstring_from_id, composition_gstring_p)
3286 (composition_gstring_width, fill_gstring_header)
3287 (fill_gstring_body, autocmp_chars, composition_compute_stop_pos)
3288 (composition_reseat_it, composition_update_it)
b8ff72fa 3289 (composition_adjust_point, Fcomposition_get_gstring): New functions.
aac0c6e3
MR
3290 (syms_of_composite): Initialize gstring_hash_table, gstrint_work,
3291 and gstring_work_headers. DEFVAR_LISP composition-function-table.
3292 Defsubr compostion_get_gstring.
3293
3294 * dispextern.h (struct glyph): New union u.cmp. Delete the member
3295 cmp_id.
3296 (struct glyph_string): Delete the member gidx. New members
3297 cmp_id, cmp_from, and cmp_to.
3298 (enum it_method): Delete GET_FROM_COMPOSITION.
3299 (struct composition_it): New struct.
3300 (struct it): New member cmp_it, and iterator_stack_entry.cmp_it.
3301 Delete c, len, cmp_id, cmp_len in u.comp.
3302
3303 * font.h (enum lgstring_indices): Delete it.
b8ff72fa 3304 (LGSTRING_XXX, LGLYPH_XXX): Move these macros to composite.h.
aac0c6e3 3305 (enum lglyph_indices): Likewise.
b8ff72fa 3306 (font_range): Adjust extern.
aac0c6e3
MR
3307 (font_fill_lglyph_metrics): Extern it.
3308
3309 * font.c (QCf): New variable.
3310 (check_gstring): Use LGSTRING_GLYPH_LEN, not LGSTRING_LENGTH.
3311 (font_prepare_composition): Delete this function.
3312 (font_range): Type and arguments changed.
3313 (Ffont_make_gstring, Ffont_fill_gstring): Delete them.
3314 (font_fill_lglyph_metrics): New function.
b8ff72fa 3315 (Ffont_shape_text): Rename to Ffont_shape_gstring and change arguments.
aac0c6e3 3316 (syms_of_font): DEFSYM QCf. Delete defsubr for
b8ff72fa
SM
3317 Sfont_make_gstring, Sfont_fill_gstring, Sfont_shape_text.
3318 Defsubr Sfont_shape_gstring.
aac0c6e3
MR
3319
3320 * fontset.h (font_for_char): Extern it.
3321
3322 * fontset.c (font_for_char): New function.
3323
3324 * ftfont.c: Include composite.h.
3325 (ftfont_resolve_generic_family): Add langset "en" to pattern.
b8ff72fa 3326 (ftfont_shape_by_flt): Use LGSTRING_GLYPH_LEN, not LGSTRING_LENGTH.
aac0c6e3
MR
3327
3328 * indent.c: Include composite.h and dispextern.h.
3329 (check_composition): Delete this function.
3330 (scan_for_column): Handle composition by
3331 composition_compute_stop_pos, composition_reseat_it, and
3332 composition_update_it.
3333 (compute_motion): Likewise.
3334 (Fvertical_motion): Fix checking of composition.
3335
3336 * keyboard.c (adjust_point_for_property): Check composition by
3337 composition_adjust_point.
3338
b8ff72fa 3339 * nsterm.m (ns_draw_glyph_string): Adjust for the change of
aac0c6e3
MR
3340 struct glyph_string.
3341
b8ff72fa
SM
3342 * term.c (encode_terminal_code): Adjust for the change of struct glyph.
3343 (append_composite_glyph): Adjust for the change of struct it and
aac0c6e3
MR
3344 struct glyph.
3345 (produce_composite_glyph): Likewise.
3346
b8ff72fa
SM
3347 * w32term.c (x_draw_composite_glyph_string_foreground):
3348 Adjust for the change of struct glyph_string.
aac0c6e3
MR
3349 (x_draw_glyph_string): Likewise.
3350
3351 * w32uniscribe.c (struct uniscribe_font_info): Include composite.h.
3352 (uniscribe_shape): Use LGSTRING_GLYPH_LEN, not LGSTRING_LENGTH.
3353
3354 * xdisp.c: Include font.h.
3355 (it_props): Delete the entry for Qauto_composed.
3356 (init_iterator): Initialize it->cmp_it.id to -1.
3357 (compute_stop_pos): Call composition_compute_stop_pos.
b8ff72fa 3358 (face_before_or_after_it_pos): Adjust for the change of struct it.
aac0c6e3
MR
3359 (handle_auto_composed_prop): Delete it.
3360 (handle_composition_prop): Handle only static composition.
3361 (next_overlay_string): Remove it->method == GET_FROM_COMPOSITION
3362 from xassert. Initialize it->cmp_it.stop_pos.
b8ff72fa 3363 (push_it): Adjust for the change of struct it.
aac0c6e3
MR
3364 (pop_it): Likewise.
3365 (get_next_element): Delete next_element_from_composition.
3366 (CHAR_COMPOSED_P): New macro.
3367 (get_next_display_element): For automatic composition, get a face
3368 from the font in the glyph-string.
3369 (set_iterator_to_next): For GET_FROM_BUFFER and GET_FROM_STRING,
b8ff72fa 3370 check composition by it->cmp_it.id. Delete GET_FROM_COMPOSITION case.
aac0c6e3
MR
3371 (next_element_from_string): Check if the character at the current
3372 position is composed by CHAR_COMPOSED_P.
3373 (next_element_from_buffer): Likewise.
d66c0241
JB
3374 (next_element_from_composition): Adjust for the change of struct it.
3375 Update it->cmp_it.
b8ff72fa
SM
3376 (dump_glyph): Adjust for the change of struct glyph.
3377 (fill_composite_glyph_string): Adjust for the change of struct
aac0c6e3
MR
3378 it and struct glyph. Don't handle automatic composition here.
3379 (fill_gstring_glyph_string): New function.
3380 (x_get_glyph_overhangs): Handle automatic composition.
b8ff72fa 3381 (BUILD_COMPOSITE_GLYPH_STRING): Adjust for the change of struct glyph.
aac0c6e3
MR
3382 (BUILD_GSTRING_GLYPH_STRING): New macro.
3383 (BUILD_GLYPH_STRINGS): Call BUILD_GSTRING_GLYPH_STRING for
3384 automatic composition.
b8ff72fa 3385 (append_composite_glyph): Adjust for the change of struct it and
aac0c6e3 3386 struct glyph.
b8ff72fa 3387 (x_produce_glyphs): Adjust for the change of struct it.
aac0c6e3 3388
b8ff72fa 3389 * xterm.c (x_draw_composite_glyph_string_foreground): Adjust for
aac0c6e3
MR
3390 the change of struct glyph_string.
3391 (x_draw_glyph_string): Likewise.
3392
33932008-08-29 Glenn Morris <rgm@gnu.org>
3394
3395 * buffer.c (word-wrap): Doc fix.
3396 * xdisp.c (truncate-partial-width-windows): Doc fix.
3397 Increase default to 50.
3398
33992008-08-29 Chong Yidong <cyd@stupidchicken.com>
3400
3401 * xdisp.c (update_tool_bar_unwind): New function.
3402 (update_tool_bar): Temporarily set selected frame before building
3403 tool-bar items.
3404
34052008-08-28 Michael Albinus <michael.albinus@gmx.de>
3406
3407 * dbusbind.c (XD_ERROR, XD_DEBUG_MESSAGE): Use strncpy and
3408 snprintf, respectively.
3409 (xd_append_arg): Convert strings with Fstring_make_unibyte.
3410
34112008-08-28 Chong Yidong <cyd@stupidchicken.com>
3412
3413 * Makefile.in: Revert (undocumented) 2008-08-20 change adding
3414 LDFLAGS to GNUstep CC invocation.
3415
34162008-08-27 Chong Yidong <cyd@stupidchicken.com>
3417
3418 * indent.c (Fvertical_motion): Revert last change. Handle the
3419 general case where we are moving forward, and PT spans multiple
3420 screen lines.
3421
3422 * eval.c (find_handler_clause): Temporarily increase
3423 max-lisp-eval-depth while printing the backtrace buffer, to
3424 guarantee that help-mode code can run.
3425
34262008-08-27 Eli Zaretskii <eliz@gnu.org>
3427
3428 * msdos.c (Fmsdos_remember_default_colors): Don't reverse frame
3429 colors under -rv.
3430 (IT_set_frame_parameters): Don't swap foreground and background
3431 colors if `(reverse . t)' is present in the frame properties.
3432 (internal_terminal_init): Call init_frame_faces only for the
3433 initial frame.
3434
34352008-08-27 Andreas Schwab <schwab@suse.de>
3436
3437 * dired.c (Ffile_attributes): Avoid compiler warning in bitshift.
3438
34392008-08-27 Andreas Schwab <schwab@suse.de>
3440
3441 * search.c (search_buffer): Set char_base to zero only at the end.
3442
34432008-08-27 Kenichi Handa <handa@m17n.org>
3444
b8ff72fa 3445 * fileio.c (report_file_error): Fix handling of multibyte error string.
aac0c6e3
MR
3446
34472008-08-27 Andreas Seltenreich <seltenreich@gmx.de>
3448
3449 * xterm.c (x_term_init): Temporarily hide the partially
3450 initialized terminal while calling vendor-specific-keysyms.
3451
34522008-08-26 Eli Zaretskii <eliz@gnu.org>
3453
3454 * msdos.c (internal_terminal_init): Most initializations done only
3455 once, especially initial_screen_colors[] and termscript open.
3456
34572008-08-26 Chong Yidong <cyd@stupidchicken.com>
3458
3459 * eval.c (Fcondition_case): Doc fix.
3460
3461 * widgetprv.h (EmacsFramePart): Change font member to the new font
3462 struct.
3463
3464 * widget.c: Include character.h and font.h for XSETFONT.
3465 (setup_frame_gcs): Compute X font id from font struct, just once.
3466
34672008-08-26 Eli Zaretskii <eliz@gnu.org>
3468
3469 * term.c (get_named_tty): Fix last change.
3470
34712008-08-26 Chong Yidong <cyd@stupidchicken.com>
3472
3473 * indent.c (Fvertical_motion): If moving forward starting from a
b8ff72fa 3474 multi-line string, move the iterator to the last line of that string.
aac0c6e3
MR
3475
34762008-08-25 Eli Zaretskii <eliz@gnu.org>
3477
3478 * frame.c (do_switch_frame): Mark previously displayed frame as
3479 obscured for FRAME_MSDOS_P frames as well.
3480
34812008-08-24 Eli Zaretskii <eliz@gnu.org>
3482
3483 * frame.c (make_terminal_frame): Initialize f->terminal,
3484 f->terminal->reference_count, and scroll bars on MS-DOS as well.
3485 Set the top frame to newly created frame.
3486 (Fmake_terminal_frame): Reuse the_only_display_info.
3487
3488 * vm-limit.c (get_lim_data) [MSDOS]: Use alternative methods of
3489 estimating available memory.
3490
b97439ce 34912008-08-23 David Reitter <david.reitter@gmail.com>
aac0c6e3
MR
3492
3493 * nsterm.m (ns_draw_window_cursor): Don't call
3494 NSDisableScreenUpdates and NSEnableScreenUpdates on
3495 non-NS_IMPL_COCOA systems.
3496
34972008-08-23 Andreas Schwab <schwab@suse.de>
3498
3499 * process.c (procfs_system_process_attributes): Fix use of
3500 uninitialized variables.
3501
35022008-08-23 Eli Zaretskii <eliz@gnu.org>
3503
3504 * emacs.c (main) [MSDOS]: Call syms_of_xmenu.
3505
3506 * dispnew.c (init_display): Remove MS-DOS specific conditions for
3507 calling tty-set-up-initial-frame-faces.
3508
b8ff72fa
SM
3509 * xmenu.c (Fx_popup_dialog, Fx_popup_menu, xmenu_show):
3510 Allow MSDOS frames along with X frames.
aac0c6e3
MR
3511
3512 * termhooks.h (TERMINAL_ACTIVE_P): Handle output_msdos_raw in
3513 addition to output_termcap.
3514
3515 * xdisp.c (redisplay_internal) [MSDOS]: Don't call set_tty_color_mode.
3516
3517 * termchar.h (FRAME_TTY): Support output_msdos_raw.
3518 (struct tty_display_info) [MSDOS]: Add fields related to mouse
3519 highlight.
3520
3521 * process.c [!subprocesses]: Define QCname.
3522 (syms_of_process): Intern and staticpro it.
3523
3524 * w16select.c (Fw16_set_clipboard_data, Fw16_get_clipboard_data):
b8ff72fa
SM
3525 Adjust for changes in encoding/decoding routines.
3526 Use encode_coding_object and decode_coding_object instead of
aac0c6e3
MR
3527 encode_coding and decode_coding.
3528
b8ff72fa 3529 * sysdep.c (init_sys_modes): Call dos_ttraw with tty_out as argument.
aac0c6e3
MR
3530
3531 * dosfns.c: Include frame.h before termhooks.h.
3532 (dos_cleanup): Use CURTTY ()->termscript instead of a global
3533 variable termscript.
3534
3535 * s/msdos.h (USER_FULL_NAME): Define.
3536 (SYSTEM_PURESIZE_EXTRA): Bump up to 100K.
3537
3538 * editfns.c (USER_FULL_NAME): Define to pw->pw_gecos if undefined.
3539 (Fuser_full_name): Use USER_FULL_NAME instead of a literal
3540 pw->pw_gecos.
3541
3542 * keyboard.c (handle_interrupt) [MSDOS]: Call cursor_to with
3543 SELECTED_FRAME as additional (1st) argument.
3544 (tty_read_avail_input): Handle output_msdos_raw in
3545 addition to output_termcap.
3546
3547 * msdos.c: Include frame.h before termhooks.h.
3548 (mouse_on, mouse_off, mouse_moveto, mouse_init)
3549 (msdos_set_cursor_shape, IT_set_face, IT_write_glyphs)
3550 (show_mouse_face, IT_clear_end_of_line, IT_clear_screen)
3551 (IT_clear_to_end, IT_cursor_to, IT_display_cursor, IT_cmgoto)
3552 (IT_set_terminal_modes, IT_reset_terminal_modes)
3553 (IT_set_frame_parameters): Use tty->termscript instead of a global
3554 variable termscript.
3555 (IT_write_glyphs): Use tty->terminal->terminal_coding instead of a
3556 global variable terminal_coding. Don't refer to
3557 Vnonascii_translation_table.
3558 (internal_terminal_init): Set Vwindow_system in current_kboard.
3559 Don't use TTY_CHAR_INS_DEL_OK. Set Vinitial_window_system.
3560 Announce date and time of session start, if termscript is open.
3561 Don't zero out the_only_display_info (it is done in
b8ff72fa
SM
3562 term.c:init_tty). Open termscript only of not already open.
3563 Log "SCREEN SAVED" here, instead of IT_set_terminal_modes. Init mouse
aac0c6e3
MR
3564 here instead of dos_ttraw. Don't initialize display if this is an
3565 initial tty. Don't set FRAME_FONT.
3566 (Vwindow_system_version): Bump to 23.
3567 (dos_ttraw): Accept a TTY argument; all callers fixed. If mouse
3568 is available, set up mouse_position_hook.
3569 (dos_ttraw, IT_set_terminal_modes): If called with initial
3570 terminal, do nothing.
3571 (IT_set_frame_parameters): Handle the Qtty_type frame
3572 parameter by calling internal_terminal_init.
3573 (dos_set_window_size, show_mouse_face)
3574 (clear_mouse_face, IT_note_mode_line_highlight)
3575 (IT_note_mouse_highlight, IT_update_begin, IT_frame_up_to_date)
3576 (dos_rawgetc): Use tty_display_info instead of x_display_info.
3577 (initialize_msdos_display): New function.
3578 (IT_cursor_to, IT_clear_to_end, IT_clear_screen)
3579 (IT_clear_end_of_line, IT_insert_glyphs, IT_write_glyphs)
3580 (IT_delete_glyphs, IT_ring_bell, IT_reset_terminal_modes)
3581 (IT_set_terminal_modes, IT_set_terminal_window, IT_update_begin):
b8ff72fa 3582 Accept additional argument: a pointer to a frame. Update all callers.
aac0c6e3
MR
3583 (request_sigio, unrequest_sigio): Don't define, now defined on
3584 sysdep.c.
3585 (IT_write_glyphs): Rewrite to use encode_terminal_code.
3586
3587 * term.c [MSDOS]: Include msdos.h.
3588 (init_tty) [MSDOS]: Reuse most of WINDOWSNT branch. Change cpp
3589 conditional to DOS_NT. Allow only one call to this function in a
3590 session. Don't allocate a new struct tty_display_info; instead,
3591 reuse the_only_display_info. Call get_tty_size to get screen
3592 dimensions. Call init_baud_rate to set bad_rate.
3593 (dissociate_if_controlling_tty) [MSDOS]: Ifdef away function body.
3594 (Fsuspend_tty) [MSDOS]: Don't close input and output.
b8ff72fa 3595 (Fresume_tty) [MSDOS]: Don't reopen the TTY; instead, use stdin/stdout.
aac0c6e3
MR
3596 (get_tty_terminal, get_named_tty, Ftty_type)
3597 (Fcontrolling_tty_p): Handle output_msdos_raw in addition to
3598 output_termcap.
b8ff72fa
SM
3599 (Fresume_tty, Fsuspend_tty, init_tty, delete_tty):
3600 Call add_keyboard_wait_descriptor and delete_keyboard_wait_descriptor
2ae37cf0 3601 only when subprocesses are supported.
aac0c6e3
MR
3602
3603 * frame.c (make_terminal_frame) [MSDOS]: Adjust initialization of
3604 f->output_data.x.
3605 (Fmake_terminal_frame) [MSDOS]: Don't allow creation of new
3606 terminal devices.
3607
5582fbc7 3608 * msdos.h: Remove definition of struct x_display_info and struct
aac0c6e3
MR
3609 x_output.
3610 (FRAME_FONT): Use output_data.tty.
3611 (FRAME_FOREGROUND_PIXEL, FRAME_BACKGROUND_PIXEL): Don't define.
b8ff72fa
SM
3612 (struct x_display_info): Rename from display_info. Update all users in
3613 msdos.c.
aac0c6e3 3614 (struct x_output): Remove background_pixel and foreground_pixel.
b8ff72fa 3615 (the_only_display_info): Rename from the_only_x_display.
aac0c6e3
MR
3616 (dos_ttraw): Update prototype.
3617
3618 * Makefile.in (MSDOS_OBJ): Add xmenu.o.
3619 (SOME_MACHINE_LISP): Add ../lisp/term/pc-win.elc.
3620
36212008-08-23 Jason Rumney <jasonr@gnu.org>
3622
3623 * image.c (enum tiff_keyword_index, tiff_format): Add :index keyword.
3624 (fn_TIFFSetDirectory): New library function used.
3625 (init_tiff_functions) [HAVE_NTGUI]: Initialize it.
3626 (tiff_load): Use :index to select among multiple images. Set count
3627 property when multiple images exist.
3628 (gif_format): Use :index, not :image.
3629
36302008-08-23 Chong Yidong <cyd@stupidchicken.com>
3631
3632 * xdisp.c (try_scrolling): Check INT_MAX instead of
3633 MOST_POSITIVE_FIXNUM for maximum integer value. Include limits.h
3634 to obtain INT_MAX.
3635
36362008-08-21 İsmail Dönmez <ismail@namtrac.org> (tiny change)
3637
3638 * xterm.c (x_delete_display): Don't call XrmDestroyDatabase on GTK+.
3639
36402008-08-21 Christian Faulhammer <opfer@gentoo.org> (tiny change)
3641
3642 * Makefile.in (temacs${EXEEXT}): On GNUstep, link to appropriate
3643 GNUstep library location.
3644
36452008-08-21 Chong Yidong <cyd@stupidchicken.com>
3646
3647 * xfaces.c (x_update_menu_appearance): Check validity of menu font
3648 before using it.
3649
3650 * puresize.h (BASE_PURESIZE): Increase to 1250000.
3651
36522008-08-20 Adrian Robert <Adrian.B.Robert@gmail.com>
3653
3654 * nsfns.m (ns-read-file-name): Add casts to avoid warning.
3655 (ns-convert-utf8-nfd-to-nfc): Warn if cannot execute correctly.
3656 * nsfont.m (nsfont_draw): Compare indexed colors to 0, not nil.
3657 * nsterm.h (EmacsView-unlockFocusNeedsFlush:): Add declaration.
3658 (EmacsApp-cursor_blink_handler): Remove declaration.
3659 * nsterm.m (ns_draw_glyph_string): Update first conditional body to
3660 match 01 Feb 2008 changes in xterm.c.
3661 (ns_read_socket): Add cast to avoid warning.
3662 (EmacsApp-application:openFiles:): Don't call replyToOpenOrPrint: on
3663 GNUstep.
3664
36652008-08-20 Chong Yidong <cyd@stupidchicken.com>
3666
3667 * xselect.c (x_get_foreign_selection): Return nil if desired
3668 selection could not be obtained, instead of signalling an error.
3669
36702008-08-20 David Reitter <david.reitter@gmail.com>
3671
3672 * nsfns.m (ns_lisp_to_cursor_type): Replace with generic xfns.c.
3673 * nsterm.m: Remove ns-specific code for cursor blinking.
3674 (ns_draw_window_cursor): Clear cursor properly rather than
3675 redrawing the area. Respect width of bar cursors.
3676 These changes enable the use of generic blink-cursor-mode and
3677 generic cursor types in NS and support smooth cursor movements (do
3678 not blink off after command).
3679 * xdisp.c (get_phys_cursor_geometry): Redraw wider rectangle on
3680 Nextstep, too.
3681
36822008-08-19 Kenichi Handa <handa@m17n.org>
3683
3684 * font.c (Vfont_log_deferred): New variable.
3685 (font_add_log): Check Vfont_log_deferred.
3686 (font_deferred_log): New function.
3687
3688 * font.h (font_deferred_log): Extern it.
3689
3690 * fontset.c (reorder_font_vector): Use encoding charset of fonts
3691 for sorting.
3692 (face_for_char): Use deferred log.
3693
36942008-08-18 Kenichi Handa <handa@m17n.org>
3695
3696 * fontset.c (face_for_char): Add font log.
3697
3698 * font.c (font_add_log): Add the font properties :script, :lang,
3699 and :otf in the log.
3700
37012008-08-17 Chong Yidong <cyd@stupidchicken.com>
3702
3703 * xdisp.c: Remove dead code.
3704 (handle_invisible_prop, next_overlay_string): Defer call to
3705 setup_for_ellipsis.
3706 (handle_stop, set_iterator_to_next): Call setup_for_ellipsis.
3707
37082008-08-15 Chong Yidong <cyd@stupidchicken.com>
3709
3710 * xfaces.c (lookup_derived_face): Properly handle possible zero
3711 return value of get_lface_attributes.
3712 (merge_faces): Don't tell lookup_derived_face to signal an error
3713 if face is not found.
3714
3715 * dired.c (Fdirectory_files): Doc fix.
3716
3717 * process.c (make_process): Initialize kill_without_query struct
3718 member.
3719
37202008-08-15 Eli Zaretskii <eliz@gnu.org>
3721
3722 * w32.c (w32_system_process_attributes) [_MSC_VER < 1300]:
3723 Alternative calculation of totphys for Visual Studio 6.
3724
3725 * w32fns.c [_MSC_VER && _MSC_VER < 1300]: Declare HMONITOR.
3726
3727 * w32.c (_MEMORY_STATUS_EX, MEMORY_STATUS_EX, LPMEMORY_STATUS_EX):
3728 Rename from _MEMORYSTATUSEX, MEMORYSTATUSEX, LPMEMORYSTATUSEX.
3729 All users changed.
3730 (stat): Only root directory passed to GetDriveType. Allow RAM
3731 disk as well as local fixed disk when w32-get-true-file-attributes
3732 is set to `local'.
3733 (CopySid_Proc, EqualSid_Proc, GetLengthSid_Proc): New typedefs.
3734 (equal_sid, get_length_sid, copy_sid): New wrapper functions.
3735 (w32_cached_id, w32_add_to_cache): New functions.
3736 (get_name_and_id): Look account names in the cache before calling
3737 lookup_account_sid.
3738 (g_b_init_get_length_sid, g_b_init_equal_sid, g_b_init_copy_sid):
3739 New initialization flags.
3740 (globals_of_w32): Initialize them to zero.
3741 (w32_system_process_attributes): Use w32_cached_id and
3742 w32_add_to_cache.
3743
37442008-08-14 Lawrence Mitchell <wence@gmx.li>
3745
3746 * lread.c (Fread_char, Fread_char_exclusive): If no character
3747 event is read before timeout is reached, return nil, rather than
3748 converting to a number.
3749
37502008-08-14 Chong Yidong <cyd@stupidchicken.com>
3751
3752 * fns.c (use_dialog_box): Doc fix.
3753
3754 * s/darwin.h: Undefine HAVE_RES_INIT, which appears to be harmful
3755 on OS X.
3756
37572008-08-13 Chong Yidong <cyd@stupidchicken.com>
3758
3759 * frame.c (Qns_parse_geometry): New var.
3760 (Fx_parse_geometry): For HAVE_NS, call ns-parse-geometry.
3761
37622008-08-11 Chong Yidong <cyd@stupidchicken.com>
3763
3764 * xdisp.c (x_produce_glyphs): Handle the case when font has no
3765 space character in calculating tabs.
3766
37672008-08-11 Dan Nicolaescu <dann@ics.uci.edu>
3768
3769 * Makefile.in (bootstrap-emacs): Use ln -f in the CANNOT_DUMP case.
3770
37712008-08-10 Glenn Morris <rgm@gnu.org>
3772
3773 * process.c (procfs_system_process_attributes): Use EMACS_INTs to
3774 silence gcc "limited range of data type" warnings in some
3775 make_fixnum_or_float calls.
3776
37772008-08-09 Eli Zaretskii <eliz@gnu.org>
3778
3779 * w32.c (w32_system_process_attributes): If the process does not
3780 exist, return nil.
3781
3782 * w32.c: Include thelp32.h, psapi.h and coding.h.
3783 (_MEMORYSTATUSEX, _PROCESS_MEMORY_COUNTERS_EX): New struct
3784 declarations.
3785 (CreateToolhelp32Snapshot_Proc, Process32First_Proc)
3786 (Process32Next_Proc): New typedefs.
3787 (g_b_init_create_toolhelp32_snapshot, g_b_init_process32_first)
3788 (g_b_init_process32_next, g_b_init_open_thread_token)
3789 (g_b_init_impersonate_self, g_b_init_revert_to_self)
3790 (g_b_init_get_process_memory_info, g_b_init_global_memory_status)
3791 (g_b_init_get_process_working_set_size)
3792 (g_b_init_global_memory_status_ex): New static variables.
3793 (globals_of_w32): Initialize them.
3794 (create_toolhelp32_snapshot, process32_first, process32_next)
3795 (open_thread_token, impersonate_self, revert_to_self)
3796 (get_process_memory_info, get_process_working_set_size)
3797 (global_memory_status, global_memory_status_ex): New wrapper
3798 functions.
3799 (w32_list_system_processes, w32_system_process_attributes)
3800 (enable_privilege, restore_privilege, ltime, process_times):
3801 New functions.
3802 (convert_time_raw): New function.
3803 (convert_time): Remove conversion of FILETIME into time in 100
3804 nsec units, call convert_time_raw instead.
3805
3806 * process.h (w32_list_system_processes, w32_system_process_attributes):
3807 Add prototypes.
3808 (Qeuid, Qegid, Qcomm, Qstate, Qppid, Qpgrp, Qsess, Qttname)
3809 (Qminflt, Qmajflt, Qcminflt, Qcmajflt, Qutime, Qstime, Qcutime)
3810 (Qpri, Qnice, Qthcount, Qstart, Qvsize, Qrss, Qargs, Quser, Qgroup)
3811 (Qetime, Qpcpu, Qpmem, Qtpgid, Qcstime): Add extern declarations.
3812
3813 * process.c (Fsystem_process_attributes): Doc fix.
3814
38152008-08-08 Chong Yidong <cyd@stupidchicken.com>
3816
3817 * xdisp.c (move_it_to): When stopping at a charpos, check if that's
3818 a continued multi-char glyph; if so, advance to the actual glyph.
3819
38202008-08-07 Dan Nicolaescu <dann@ics.uci.edu>
3821
3822 * s/darwin.h (OTHER_FILES): Do not define here, defined in config.in.
3823
3824 * Makefile.in (ALL_OBJC_CFLAGS): New variable.
3825 (.m.o): Use it.
3826 * config.in: Regenerate.
3827
38282008-08-07 Chong Yidong <cyd@stupidchicken.com>
3829
3830 * xdisp.c (redisplay_window): Revert last change.
3831 (try_window): Check bottom scroll margin too.
3832
38332008-08-06 Adrian Robert <Adrian.B.Robert@gmail.com>
3834
3835 * config.in: Regenerate.
3836
3837 * Makefile.in (emacs): Remove ifndef NS conditional for 'emacs
3838 -list-load-path-shadows'.
3839 (nsgui.h): Reduce number of things depending on it.
3840
38412008-08-06 Chong Yidong <cyd@stupidchicken.com>
3842
3843 * xdisp.c (try_scrolling): Use iterator to find the scroll margin,
3844 instead of window-end which does the wrong thing at eob.
3845 (try_cursor_movement): Minor optimization.
3846 (redisplay_window): If scroll margin is defined, don't assume
3847 window doesn't need scrolling.
3848
38492008-08-06 Adrian Robert <Adrian.B.Robert@gmail.com>
3850
3851 * config.in: Regenerate.
3852
3853 * Makefile.in: Move nsXXX.m dependencies into big alphabetical list.
3854 (mostlyclean): Don't delete *.d under NS.
3855
3856 * nsterm.h (NS_HAVE_INTEGER): Change to NS_HAVE_NSINTEGER.
3857
38582008-08-06 Kenichi Handa <handa@m17n.org>
3859
3860 * xfont.c (xfont_list_family): Return a list of symbols, not strings.
3861
38622008-08-06 Andreas Schwab <schwab@suse.de>
3863
3864 * config.in: Regenerate.
3865
38662008-08-05 Chong Yidong <cyd@stupidchicken.com>
3867
3868 * xdisp.c (redisplay_window): Don't enforce scroll-margin when
3869 forcing a window start.
3870
3871 * fileio.c (Vauto_save_list_file_name): Move here from file.el.
3872 (auto_save_1): Update modtime when auto-save-list-file-name is on.
3873
38742008-08-04 Adrian Robert <Adrian.B.Robert@gmail.com>
3875
3876 * emacs.c (main): Under NS, set working dir to HOME when get a "psn"
3877 argument.
3878
38792008-08-05 Juanma Barranquero <lekktu@gmail.com>
3880
3881 * buffer.c (syms_of_buffer) <scroll-up-aggressively>:
3882 <scroll-down-aggressively, before-change-functions>:
3883 <after-change-functions>: Reflow docstrings.
3884
38852008-08-04 Adrian Robert <Adrian.B.Robert@gmail.com>
3886 Ken Raeburn <raeburn@gnu.org>
3887
3888 Dock menu customization, based on a patch by Ken Raeburn, plus some
3889 other fixes.
3890 * nsmenu.m (dockMenu): New variable.
3891 (EmacsDialog -clicked:): Fix mistake in change of 2008-07-17.
3892
3893 * nsterm.h (dockMenu): Declare.
3894
3895 * nsterm.m (KEY_NS_NEW_FRAME): New definition.
3896 (ns_term_init): Initialize dockMenu.
3897 (EmacsApp -newFrame:, -applicationDockMenu:): New methods.
3898 (EmacsView -windowShouldClose:): Don't behave specially if <= 1 frame
3899 left.
3900
3901 * lisp.h (LSB_TAG): Use on DARWIN_OS, not NS_IMPL_COCOA.
3902
39032008-08-04 Chong Yidong <cyd@stupidchicken.com>
3904
3905 * nsterm.h: Test directly for NS_HAVE_INTEGER before defining it.
3906
3907 * config.in: Regenerate.
3908
39092008-08-04 Seiji Zenitani <zenitani@mac.com>
3910
3911 * nsfns.m (x-create-frame): Set the frame parameter alpha to nil.
3912
39132008-08-04 Chong Yidong <cyd@stupidchicken.com>
3914
3915 * nsterm.h (find_and_call_menu_selection): Fix prototype.
3916
39172008-08-04 Adrian Robert <Adrian.B.Robert@gmail.com>
3918
3919 * emacs.c (main: unexec_init_emacs_zone): Call if on DARWIN_OS.
3920
3921 * keyboard.h: Comment an #endif.
3922
3923 * lisp.h (have_menus_p): Adjust comment.
3924
3925 * menu.c (find_and_return_menu_selection): Fix comparison with
3926 client_data.
3927
3928 * nsmenu.m (popup_activated_flag): New variable.
3929 (popup_activated): New function.
3930 (menu-or-popup-active-p): New exported lisp definition.
3931 (ns_popup_menu): Set popup_activated_flag. Call discard_menu_items()
3932 when popup done.
3933 (ns_popup_dialog): Set popup_activated_flag.
3934
3935 * nsterm.m (EmacsView -conversationIdentifier): Use NSInteger
3936 version for GNUstep (handled by conditional typedef in nsterm.m).
3937 (ns_get_color): Remove special-casing for "darkblue", "dark blue" (now
3938 in rgb.txt).
3939
3940 * process.c (init_process): Use DARWIN_OS, not DARWIN.
3941
3942 * sysselect.h: Conditionalize init_process undef on DARWIN_OS.
3943
3944 * syssignal.h (FORWARD_SIGNAL_TO_MAIN_THREAD): Do it also under NS.
3945
3946 * xdisp.c (redisplay_internal, note_mouse_highlight): Under NS,
3947 shortcircuit if popup_activated like GTK and X toolkit.
3948
3949 * m/inter386.h: Change DARWIN to DARWIN_OS.
3950
3951 * s/darwin.h: Add #define DARWIN_OS. Get rid of C_SWITCH_SYSTEM def.
3952 Change LIBS_MACGUI to LIBS_NSGUI. Move temacs-conditionalized defs
3953 closer to C_SWITCH_SYSTEM_TEMACS so usage is understood. Expand
3954 comment on NO_SOCK_SIGIO.
3955
39562008-08-03 Chong Yidong <cyd@stupidchicken.com>
3957
3958 * nsterm.m (windowDidResize): Remove stopModal call.
3959
39602008-08-03 Andreas Schwab <schwab@suse.de>
3961
3962 * vm-limit.c (get_lim_data) [HAVE_GETRLIMIT && RLIMIT_AS]: Define.
3963 (check_memory_limits): Don't handle HAVE_GETRLIMIT here.
3964
39652008-08-02 Chong Yidong <cyd@stupidchicken.com>
3966
3967 * vm-limit.c (check_memory_limits): Don't use getrlimit on cygwin.
3968 Don't use uninitialized pointer variable when using getrlimit.
3969
39702008-08-02 Jason Rumney <jasonr@gnu.org>
3971
3972 * w32font.c (compute_metrics): Don't mess with glyph_idx setting here.
3973
39742008-08-02 Eli Zaretskii <eliz@gnu.org>
3975
3976 * alloc.c (NSTATICS): Bump to 0x640.
3977
3978 * s/gnu-linux.h (HAVE_PROCFS, LISTPROC, PROCATTR): New defines.
3979
3980 * lisp.h: Add prototype for directory_files_internal.
3981
3982 * process.c (Fsystem_processes_list, Fsystem_process_attributes):
3983 New functions.
3984 (syms_of_process): Defsubr them. Add initializations for various
3985 Q* symbols used in procfs_system_process_attributes.
3986 (procfs_list_system_processes, procfs_system_process_attributes)
3987 [HAVE_PROCFS]: New functions.
3988 (time_from_jiffies, ltime_from_jiffies, get_up_time, procfs_ttyname)
3989 (procfs_get_total_memory): New functions.
3990
39912008-08-01 Juanma Barranquero <lekktu@gmail.com>
3992
3993 * xfaces.c (Fx_load_color_file): Fix previous change;
3994 it is #ifdef WINDOWSNT, not WINDOWS_NT.
3995
39962008-08-01 Michael Albinus <michael.albinus@gmx.de>
3997
3998 * dbusbind.c (xd_read_message): Handle D-Bus error messages.
3999
40002008-08-01 Adrian Robert <Adrian.B.Robert@gmail.com>
4001
4002 * nsterm.h (NSInteger, NSUInteger): Add defines for non-Leopard.
4003
40042008-08-01 Chong Yidong <cyd@stupidchicken.com>
4005
4006 * nsfns.m (ns_frame_parm_handlers): Add empty entry for x_set_alpha.
4007
4008 * nsterm.m (EmacsApp -application:openFiles:): GNUstep does not
4009 define NSApplicationDelegateReplySuccess.
4010 (EmacsView -converstationIdentifier): Use long instead of
4011 NSInteger for GNUstep, since it doesn't have NSInteger.
4012
4013 * xmenu.c: Revert last change.
4014
4015 * keyboard.h: Fix last change.
4016
40172008-08-01 Juanma Barranquero <lekktu@gmail.com>
4018
4019 * xfaces.c (x-load-color-file): Use RGB() instead of manually shifting
4020 on Windows.
4021
40222008-08-01 Adrian Robert <Adrian.B.Robert@gmail.com>
4023
4024 Warning clearing and clean-up in NS port.
4025 * keyboard.h (xmalloc_widget_value, digest_single_submenu):
4026 Add prototypes.
4027 * nsgui.h (FACE_DEFAULT): Remove, unused.
4028 (XGCValues): Change colors to unsigned long.
4029 * nsterm.h (EmacsApp): Add declaration of all methods implemented in
4030 nsterm.m.
4031 (EmacsMenu -addItemWithWidgetValue:): Change to use NSMenuItem class.
4032 (ns_list_fonts): Remove, unused.
4033 (ns_font_to_xlfd, ns_fontname_to_xlfd): Drop prototypes.
4034 * nsfns.m (interpret_services_menu): Use NSMenuItem class.
4035 * nsfont.m (nsfont_open): Fix cast error in glyphs,metrics alloc.
4036 (nsfont_draw): Compare face colors to 0, not nil.
4037 * nsmenu.m (struct widget_value): Drop unneeded declaration.
4038 (EmacsMenu -addItemWithWidgetValue:, -fillWithWidgetValue:)
4039 (-addSubmenuWithTitle:): Use NSMenuItem class.
4040 (ns_popup_menu): Use NO, not NULL, for enabled setting.
4041 * nsterm.m (ns_draw_glyph_string): Don't compare font to ~0.
4042 (ns_clip_to_row): Make gc arg a BOOL.
4043 (ns_draw_fringe_bitmap, ns_draw_window_cursor): Use YES, NO in
4044 ns_clip_to_row() call.
4045 (ns_draw_glyph_string): Drop face comparison to ~0 (no longer
4046 used). Cast FRAME_FONT assignments.
4047 (ns_read_socket): Cast call to EmacsApp-fulfillService:withArg:.
4048 (ns_string_to_lispmod): Change arg to const char.
4049 (ns_term_init): Use NSMenuItem class.
4050 (EmacsApp -openFile:): Move to different section of file.
4051 (EmacsApp -application:openFiles:): Don't return a value, call
4052 -replyToOpenOrPrint:.
4053 (EmacsView -keyDown:): Fix up cast.
4054 (EmacsView -converstationIdentifier): Use NSInteger instead of long.
4055 (EmacsView -menuDown:): Cast tag in call to
4056 find_and_call_menu_selection().
4057 (ns_list_fonts): Remove, unused.
4058 (ns_font_to_xlfd): Make static. Cast result of UTF8String.
4059 (ns_fontname_to_xlfd): Make static.
4060 * w32menu.c (xmalloc_widget_value, digest_single_submenu):
4061 Remove prototypes (now in keyboard.h).
4062 (next_menubar_widget_id): Remove, unused.
4063 * xmenu.c (xmalloc_widget_value, digest_single_submenu):
4064 Remove prototypes (now in keyboard.h).
4065 * xfaces.c (ns_list_fonts, w32_list_fonts): Remove, unused.
4066
40672008-08-01 Dan Nicolaescu <dann@ics.uci.edu>
4068
4069 * Makefile.in (dispnew.o, gtkutil.o, sound.o, atimer.o)
4070 (floatfns.o): Depend on syssignal.h.
4071 (term.o): Depend on syssignal.h, systty.h, and $(INTERVAL_SRC).
4072
4073 * systty.h: Fix previous change that removed BSD_TERMIOS.
4074 Add comments to #ifdefs.
4075
40762008-08-01 Adrian Robert <Adrian.B.Robert@gmail.com>
4077
4078 * w32fns.c (w32-load-color-file): Remove.
4079 (x-open-connection): Use renamed Fx_load_color_file.
4080 * xfaces.c (x-load-color-file): Add.
4081 * nsterm.m (ns_initialize): Load colors from etc/rgb.txt instead of
4082 Emacs.clr.
4083 (hide_hourglass): BLOCK_INPUT before UNBLOCK.
4084
40852008-07-31 Michael Albinus <michael.albinus@gmx.de>
4086
4087 * dbusbind.c (Fdbus_call_method_asynchronously)
4088 (Fdbus_method_error_internal): New defuns.
4089 (xd_read_message): Handle also reply messages.
4090 (Vdbus_registered_functions_table): Extend docstring.
4091
40922008-07-31 Juanma Barranquero <lekktu@gmail.com>
4093
4094 * keyboard.c (gobble_input): Fix previous change.
4095
40962008-07-31 Dan Nicolaescu <dann@ics.uci.edu>
4097
4098 * bitmaps/README:
4099 * xfns.c:
4100 * termcap.c:
4101 * term.c:
4102 * syswait.h:
4103 * systty.h:
4104 * systime.h:
4105 * syssignal.h:
4106 * sysdep.c:
4107 * process.h:
4108 * process.c:
4109 * print.c:
4110 * ndir.h:
4111 * lread.c:
4112 * keyboard.c:
4113 * getpagesize.h:
4114 * floatfns.c:
4115 * fileio.c:
4116 * emacs.c:
4117 * doc.c:
4118 * dispnew.c:
4119 * dired.c:
4120 * data.c:
4121 * callproc.c:
4122 * buffer.c:
4123 * README:
4124 * Makefile.in:
4125 * s/template.h:
4126 * s/msdos.h:
4127 * m/vax.h: Remove VMS support.
4128 * s/vms.h:
4129 * vlimit.h:
4130 * uaf.h:
4131 * temacs.opt:
4132 * param.h:
4133 * ioctl.h: Remove file.
4134
41352008-07-31 Dan Nicolaescu <dann@ics.uci.edu>
4136
4137 * s/ms-w32.h (MULTI_KBOARD): Remove.
4138 * xterm.c:
4139 * xselect.c:
4140 * xfns.c:
4141 * window.c:
4142 * w32term.c:
4143 * w32fns.c:
4144 * terminal.c:
4145 * termhooks.h:
4146 * term.c:
4147 * sysdep.c:
4148 * keyboard.h:
4149 * keyboard.c:
4150 * frame.h:
4151 * frame.c:
4152 * frame.c: Remove references to MULTI_KBOARD, it is now the default.
4153 * config.in: Regenerate.
4154
41552008-07-30 Jason Rumney <jasonr@gnu.org>
4156
4157 * w32font.h (struct w32font_info): Use unicode version of textmetrics.
4158
4159 * w32font.c (w32font_encode_char): Leave as unicode if in range.
4160 (w32font_open_internal): Get unicode version of textmetrics.
4161 Don't enable or disable glyph indices here.
4162 (w32font_open): Disable use of glyph indices.
4163
4164 * w32uniscribe.c (uniscribe_open): Enable use of glyph indices.
4165
41662008-07-30 Chong Yidong <cyd@stupidchicken.com>
4167
4168 * minibuf.c (Vread_buffer_function): Doc fix.
4169
41702008-07-30 John Paul Wallington <jpw@pobox.com>
4171
4172 * minibuf.c (read_buffer_completion_ignore_case): New var.
4173 (Fread_buffer): Use it.
4174
41752008-07-30 Dan Nicolaescu <dann@ics.uci.edu>
4176
4177 * systty.h (sensemode): Remove empty #if. Remove reference to
4178 BSD_TERMIOS, unused.
4179
4180 * sysdep.c: Remove reference to DGUX.
4181 (closedir): Remove reference to BROKEN_CLOSEDIR, unused.
4182
4183 * config.in: Regenerate.
4184
41852008-07-30 Jason Rumney <jasonr@gnu.org>
4186
4187 * w32uniscribe.c (uniscribe_encode_char): Fix glyph buffer size.
4188
41892008-07-29 Jason Rumney <jasonr@gnu.org>
4190
4191 * w32uniscribe.c (uniscribe_shape): Avoid using context if cache
4192 is populated.
4193 (uniscribe_encode_char): Always use uniscribe.
4194 Avoid using context if cache is populated.
4195
41962008-07-29 Jan Djärv <jan.h.d@swipnet.se>
4197
4198 * xmenu.c (Fx_menu_bar_open_internal): Use activate_item signal to
4199 open menu.
4200
4201 * gtkutil.c (menu_nav_ended): Remove.
4202 (create_menus): Remove signal connect for menu_nav_ended.
4203
42042008-07-28 Chong Yidong <cyd@stupidchicken.com>
4205
4206 * xdisp.c (redisplay_window): Check return value of
4207 compute_window_start_on_continuation_line before forcing a window
4208 start.
4209
42102008-07-28 Jason Rumney <jasonr@gnu.org>
4211
4212 * w32font.c (w32font_text_extents): Use w32_metric_cache consistently.
4213
4214 * w32term.c (w32_enable_unicode_output, cleartype_active):
4215 Remove obsolete display options.
4216 (x_draw_glyph_string_background): Don't use old cleartype_active
4217 workaround.
4218 (w32_initialize): Remove cleartype_active initialization.
4219 (syms_of_w32term): Remove w32_enable_unicode_output initialization.
4220
42212008-07-28 Andreas Schwab <schwab@suse.de>
4222
4223 * lisp.h (init_weak_hash_tables, syms_of_font)
4224 (xd_read_queued_messages, syms_of_dbusbind): Declare.
4225 (remove_hash_entry): Don't declare.
4226 * eval.c (maybe_call_debugger): Make static and move before use.
4227 * gtkutil.c: Include <X11/Xft/Xft.h> if HAVE_XFT.
4228 * xdisp.c: Include "gtkutil.h" if USE_GTK.
4229 * xterm.h (x_set_frame_alpha): Declare.
4230
42312008-07-28 Jan Djärv <jan.h.d@swipnet.se>
4232
4233 * gtkutil.c (menu_nav_ended): Revert change from 2008-07-24.
4234 (create_menus): Connect selection-done to menu_nav_ended.
4235
42362008-07-27 Adrian Robert <Adrian.B.Robert@gmail.com>
4237
4238 * nsfns.m (x-create-frame): Add copy of parms argument to beginning.
4239 Set Vx_resource_name to a fallback. Replace read of 'buffered'
4240 parameter with read of 'alpha' one.
4241 (Qns_frame_parameter): Remove.
5582fbc7 4242 * nsselect.m (selection-coding-system)
aac0c6e3
MR
4243 (next-selection-coding-system, Vselection_coding_system)
4244 (Vnext_selection_coding_system): Drop.
4245
42462008-07-27 Adrian Robert <Adrian.B.Robert@gmail.com>
4247
4248 * nsfns.m (do-applescript, do_applescript): Rename to
4249 ns-do-applescript, ns_do_applescript, and move within file.
4250
42512008-07-27 Dan Nicolaescu <dann@ics.uci.edu>
4252
4253 Remove support for Mac Carbon.
4254 * mactoolbox.c:
4255 * macterm.h:
4256 * macterm.c:
4257 * macselect.c:
4258 * macmenu.c:
4259 * macgui.h:
4260 * macfns.c:
4261 * mac.c: Remove file.
4262 * s/darwin.h:
4263 * m/intel386.h:
4264 * xfaces.c:
4265 * xdisp.c:
4266 * window.c:
4267 * tparam.c:
4268 * termhooks.h:
4269 * termcap.c:
4270 * term.c:
4271 * syssignal.h:
4272 * sysselect.h:
4273 * sysdep.c:
4274 * process.c:
4275 * lread.c:
4276 * lisp.h:
4277 * keyboard.c:
4278 * image.c:
4279 * fringe.c:
4280 * frame.h:
4281 * frame.c:
4282 * fontset.c:
4283 * font.h:
4284 * font.c:
4285 * fns.c:
4286 * fileio.c:
4287 * emacs.c:
4288 * dispnew.c:
4289 * dispextern.h:
4290 * config.in:
4291 * atimer.c:
2ae37cf0 4292 * Makefile.in: Remove code for Carbon.
aac0c6e3 4293
f0131492 42942008-07-26 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
aac0c6e3
MR
4295
4296 * macterm.c (XDrawLine) [USE_MAC_IMAGE_IO]: Remove spurious return.
4297
42982008-07-26 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
4299
4300 * macterm.h (kCGBitmapByteOrder32Host): New define for
4301 non-universal SDKs.
4302
4303 * image.c (mac_create_cg_image_from_image, image_load_image_io)
4304 [USE_MAC_IMAGE_IO]: Remove conditionals for kCGBitmapByteOrder32Host.
4305
4306 * macterm.c (XDrawLine, XCreatePixmapFromBitmapData)
4307 [USE_MAC_IMAGE_IO]: Remove conditionals for kCGBitmapByteOrder32Host.
4308
43092008-07-26 David Robinow <drobinow@gmail.com> (tiny change)
4310
4311 * w32inevt.c: Include dispextern.h.
4312
43132008-07-26 Andreas Schwab <schwab@suse.de>
4314
4315 * print.c (print_object): Fix off-by-one in last change.
4316
43172008-07-25 Juanma Barranquero <lekktu@gmail.com>
4318
4319 * term.c (syms_of_term): Don't initialize default_orig_pair,
4320 default_set_foreground and default_set_background on Windows.
4321
43222008-07-25 Jason Rumney <jasonr@gnu.org>
4323
4324 * w32uniscribe.c (uniscribe_shape): Pass NULL for control arg to
4325 ScriptItemize. Clean up return value checking. Remove unused
4326 variables.
4327 (uniscribe_encode_char): Encode non-BMP characters with uniscribe
4328 shaping engine.
4329
4330 * w32font.c (w32font_has_char): Handle the case where we can't
4331 determine the script for a character.
4332
43332008-07-25 Chong Yidong <cyd@stupidchicken.com>
4334
4335 * term.c (syms_of_term): Initialize default_orig_pair,
4336 default_set_foreground, and default_set_background.
4337
4338 * getloadavg.c (nl): Rename to name_list to avoid ncurses.h
4339 clash (bug#86).
4340 (getloadavg): Callers changed.
4341
4342 * image.c (svg_load_image): Fix last change.
4343 (svg_load_image): Use rsvg_handle_get_dimensions to check that
4344 image size is valid. Use g_object_unref instead of deprecated
4345 rsvg_handle_free to free rsvg handle.
4346 (x_from_xcolors): Don't initialize pixmap (silence compiler).
4347
43482008-07-25 Jason Rumney <jasonr@gnu.org>
4349
4350 * w32font.c (w32font_encode_char): Encode characters outside BMP as
4351 surrogates before looking up glyph index.
4352 (w32font_text_extents): Encode as surrogates if falling back to
4353 functions that need UTF-16 wide chars.
4354
4355 * w32uniscribe.c (uniscribe_encode_char): Encode characters outside
4356 BMP as surrogates before looking up glyph index.
4357
43582008-07-25 Chong Yidong <cyd@stupidchicken.com>
4359
4360 * image.c (svg_load_image): Check for failure in return value of
4361 rsvg_handle_get_pixbuf. Free rsvg handle when done.
4362
43632008-07-25 Jason Rumney <jasonr@gnu.org>
4364
4365 * w32font.c (Fx_select_font): Reverse sense of second arg.
4366
43672008-07-24 Stefan Monnier <monnier@iro.umontreal.ca>
4368
4369 * syntax.c (struct lisp_parse_state, char_quoted, inc_bytepos)
4370 (dec_bytepos, find_defun_start): Use EMACS_INT for buffer positions.
4371
4372 * puresize.h (PURESIZE_CHECKING_RATIO): New macro.
4373 (PURESIZE): Use it.
4374
43752008-07-24 Dan Nicolaescu <dann@ics.uci.edu>
4376
4377 * m/amdx86-64.h (HAVE_LIB64_DIR): Consolidate ifdefs.
4378 * m/alpha.h (TEXT_END):
4379 * m/ibmrs6000.h (TEXT_END):
4380 * m/macppc.h (TEXT_END):
4381 * s/darwin.h (TEXT_END):
4382 * s/msdos.h (TEXT_END): Remove, unused.
4383 * s/gnu-linux.h (BSD_PGRPS): Add a comment.
4384 * s/cygwin.h: Remove comment.
4385
4386 * ecrt0.c (NODOT_GLOBAL_START): Remove code, unused.
4387 (DOT_GLOBAL_START): Remove conditional, redundant for CRT0_DUMMIES.
4388 * m/intel386.h (DOT_GLOBAL_START):
4389 * m/vax.h (DOT_GLOBAL_START): Remove, redundant with CRT0_DUMMIES.
4390 (USG): Remove, file not used on USG platforms.
4391
4392 * Makefile.in (HAVE_X11): Remove empty #else.
4393
43942008-07-24 Andreas Schwab <schwab@suse.de>
4395
4396 * fileio.c (Finsert_file_contents): Properly adjust undo list
4397 after format conversion.
4398
43992008-07-24 Jan Djärv <jan.h.d@swipnet.se>
4400
4401 * gtkutil.c (xg_get_font_name): Cast w to GTK_FONT_SELECTION_DIALOG.
4402 (menu_nav_ended): Remove.
4403 (create_menus): Remove signal connect for menu_nav_ended.
4404 (xg_update_menubar): Also take deactivate_cb as parameter, pass it to
4405 create_menus.
4406 (xg_modify_menubar_widgets): Pass deactivate_cb to xg_update_menubar.
4407
44082008-07-23 Jason Rumney <jasonr@gnu.org>
4409
4410 * w32font.c (w32_enumfont_pattern_entity): Return height consistent
4411 with opened font.
4412 (w32font_open): Set font type to gdi.
4413
4414 * w32uniscribe.c (uniscribe_open): Set font type to uniscribe.
4415
44162008-07-23 Dan Nicolaescu <dann@ics.uci.edu>
4417
4418 * s/usg5-4.h (ADDR_CORRECT): Remove, unused.
4419 * unexaix.c (ADDR_CORRECT): Remove conditional, the only user
4420 defines it.
4421 * unexec.c (ADDR_CORRECT): Define unconditionally.
4422
4423 * m/ibmrs6000.h (C_SWITCH_MACHINE): Remove.
4424
4425 * unexec.c: Remove code depending on !COFF and USG, the file is
4426 not used for such systems.
4427
4428 * s/netbsd.h (A_TEXT_OFFSET, A_TEXT_SEEK):
4429 * s/freebsd.h (A_TEXT_OFFSET, A_TEXT_SEEK): Remove, unused.
4430 (LD_SWITCH_SYSTEM_1): Remove, update users.
4431
4432 * s/darwin.h (DATA_END):
4433 * m/intel386.h (DATA_END):
4434 * m/ibmrs6000.h (DATA_END):
4435 * m/alpha.h (DATA_END): Remove, unused.
4436
4437 * config.in: Regenerate.
4438 * s/ms-w32.h (subprocesses): Define unconditionally.
4439 * s/template.h (subprocesses): Update comment.
4440 * s/vms.h (subprocesses):
4441 * s/usg5-4.h (subprocesses):
4442 * s/hpux10-20.h (subprocesses):
4443 * s/gnu-linux.h (subprocesses):
4444 * s/cygwin.h (subprocesses):
4445 * s/bsd-common.h (subprocesses):
4446 * s/aix4-2.h (subprocesses):
4447 * s/darwin.h (subprocesses): Do not define, defined by default now.
4448
4449 * Makefile.in (C_SWITCH_SITE, LD_SWITCH_SITE): Remove, unused.
4450 Remove all references.
4451 (temacs): Add GNUstep specific ld flags.
4452
4453 * nsterm.m (syms_of_nsterm): Provide ns, not ns-windowing,
4454 similarly to what X does.
4455
44562008-07-22 Adrian Robert <Adrian.B.Robert@gmail.com>
4457
4458 * nsfns.m (x-list-fonts): Remove.
4459 (syms_of_nsfns): Drop the x-list-fonts declaration.
4460 * nsterm.m: Get rid of remaining "//" comments.
4461
44622008-07-22 Chong Yidong <cyd@stupidchicken.com>
4463
4464 * xselect.c (Fx_rotate_cut_buffers_internal): Doc fix.
4465
4466 * nsselect.m (Fns_selection_exists_p, Fns_selection_owner_p)
4467 (Fx_get_selection_internal, Fns_rotate_cut_buffers_internal)
4468 (Fns_own_selection_internal, Fx_disown_selection_internal)
4469 (Fns_get_cut_buffer_internal, Fns_store_cut_buffer_internal):
4470
4471 * nsmenu.m (Fns_reset_menu, Fx_popup_menu): Change to use 'doc: /*
4472 ... */' style of docstrings. Doc fixes.
4473
44742008-07-22 Dan Nicolaescu <dann@ics.uci.edu>
4475
4476 * terminfo.c (UP, BC, PC): Undo previous change.
4477
4478 * nsfns.m: Rename ns prefixed functions/variables to the
4479 corresponding x versions. Update references.
4480
44812008-07-22 Stefan Monnier <monnier@iro.umontreal.ca>
4482
4483 * syntax.c (char_quoted): Check "charpos > beg" before decrementing.
4484
44852008-07-22 Dan Nicolaescu <dann@ics.uci.edu>
4486
4487 * nsfns.m (x_set_menu_bar_lines, x_set_tool_bar_lines):
4488 Remove forwarding functions.
4489 (ns_set_menu_bar_lines): Rename to x_set_menu_bar_lines, make
4490 non-static.
4491 (ns_set_tool_bar_lines): Rename to x_set_tool_bar_lines, make
4492 non-static.
4493 (ns_frame_parm_handlers): Use the new names.
4494 (syms_of_nsfns): Move to the end of file.
4495
4496 * nsterm.m (syms_of_nsterm): Move to the end of file.
4497
4498 * dispnew.c (init_display): Remove code for X10.
4499
45002008-07-22 Jason Rumney <jasonr@gnu.org>
4501
4502 * w32proc.c (Fw32_long_file_name): Don't append dir separator to
4503 bare drive.
4504
45052008-07-22 Adrian Robert <Adrian.B.Robert@gmail.com>
4506
4507 * nsterm.m (syms_of_nsterm): Remove debugging println.
4508
45092008-07-22 David Reitter <david.reitter@gmail.com>
4510
4511 * nsfns.m (do_applescript, F_do_applescript): NS version of the
4512 Carbon implementation of the same functionality: execute arbitrary
4513 AppleScript code.
4514
45152008-07-21 Adrian Robert <Adrian.B.Robert@gmail.com>
4516
4517 * nsfns.m (Fx_create_frame, Fx_read_file_name, Fx_get_resource)
4518 (Fx_set_resource, Fx_set_alpha, Fx_server_max_request_size)
4519 (Fx_server_vendor, Fx_server_version, Fx_display_screens)
4520 (Fx_display_mm_height, Fx_display_mm_width)
4521 (Fx_display_backing_store, Fx_display_visual_class)
4522 (Fx_display_save_under, Fx_open_connection)
4523 (Fx_close_connection, Fx_hide_emacs, Fx_font_name)
4524 (Fx_list_colors, Fx_perform_service, Fx_color_defined_p)
4525 (Fx_color_values, Fxw_display_color_p, Fx_display_grayscale_p)
4526 (Fx_display_pixel_width, Fx_display_pixel_height)
4527 (Fx_display_usable_bounds, Fx_display_planes)
4528 (Fx_display_color_cells, Vns_icon_type_alist): Change to use 'doc: /*
4529 ... */' style of docstrings.
4530
45312008-07-21 Dan Nicolaescu <dann@ics.uci.edu>
4532
4533 * m/mips.h (LOAD_AVE_TYPE, LOAD_AVE_CVT): Do not define, not used
4534 on this platform.
4535 (mips):
4536 * m/iris4d.h (mips): Do not define.
4537 * sysdep.c (init_sys_modes): Use __mips__ instead of mips.
4538
4539 * m/ibmrs6000.h (LD_SWITCH_SITE): Remove.
4540
4541 * image.c:
4542 * nsfns.m:
4543 * nsselect.m:
4544 * nsterm.h:
4545 * nsterm.m: Rename ns prefixed functions/variables to the
4546 corresponding x versions. Update references.
4547
4548 * m/ibms390x.h (NO_REMAP): Do not undefine.
4549
4550 * m/amdx86-64.h: Use SOLARIS2 instead of sun.
4551
45522008-07-21 Chong Yidong <cyd@stupidchicken.com>
4553
4554 * nsfns.m: Change NS to Nextstep in docstrings and error messages.
4555 (Fns_create_frame, Fns_read_file_name, Fns_get_resource)
4556 (Fns_set_resource, Fns_set_alpha, Fns_server_max_request_size)
4557 (Fns_server_vendor, Fns_server_version, Fns_display_screens)
4558 (Fns_display_mm_height, Fns_display_mm_width)
4559 (Fns_display_backing_store, Fns_display_visual_class)
4560 (Fns_display_save_under, Fns_open_connection)
4561 (Fns_close_connection, Fns_hide_emacs, Fns_font_name)
4562 (Fns_list_colors, Fns_perform_service, Fns_color_defined_p)
4563 (Fns_color_values, Fxw_display_color_p, Fx_display_grayscale_p)
4564 (Fns_display_pixel_width, Fns_display_pixel_height)
4565 (Fns_display_usable_bounds, Fx_display_planes)
4566 (Fns_display_color_cells, Vns_icon_type_alist): Doc fixes.
4567
45682008-07-21 Ami Fischman <ami@fischman.org> (tiny change)
4569
4570 * print.c (print_object): Check print_depth before searching for
4571 circularities.
4572
45732008-07-21 Michael Albinus <michael.albinus@gmx.de>
4574
4575 * dbusbind.c (Fdbus_register_signal): Use sprintf + strcat instead
4576 only sprintf.
4577
45782008-07-21 Kenichi Handa <handa@m17n.org>
4579
4580 * ftfont.c (adjust_anchor): Check if DeltaValue is not NULL.
4581
45822008-07-20 Andreas Schwab <schwab@suse.de>
4583
4584 * syntax.c (find_start_pos, find_start_value)
4585 (find_start_value_byte, find_start_begv, find_defun_start)
4586 (back_comment, scan_sexps_forward): Use EMACS_INT for buffer positions.
4587
45882008-07-20 Dan Nicolaescu <dann@ics.uci.edu>
4589
4590 * s/sol2-3.h: Insert contents of s/sol2.h.
4591 (LD_SWITCH_SYSTEM): Remove redundant definition.
4592 * s/sol2.h: Remove, unused.
4593
45942008-07-20 Adrian Robert <Adrian.B.Robert@gmail.com>
4595
4596 * nsterm.m (ns_get_color): Recognize HSB,AHSB be synonyms for HSV,AHSV.
4597
45982008-07-20 Adrian Robert <Adrian.B.Robert@gmail.com>
4599
4600 * Makefile.in (ns_appdir): Fix typo in find command.
4601
46022008-07-20 Dan Nicolaescu <dann@ics.uci.edu>
4603
4604 * m/intel386.h (NO_REMAP): Do no define for USG, not used.
4605
4606 * s/usg5-4.h (LIBS_SYSTEM): Remove, system for which this was
4607 added not supported anymore.
4608
4609 * s/usg5-4-2.h (LIBS_SYSTEM):
4610 * s/sol2.h (LIBS_SYSTEM): Do not undefine.
4611
4612 * s/netbsd.h (GETPGRP_NO_ARG, N_TRELOFF):
4613 * s/lynxos.h (GETPGRP_NO_ARG):
4614 * s/hpux10-20.h (NO_SIOCTL_H):
4615 * s/gnu.h (GETPGRP_NO_ARG):
4616 * s/gnu-linux.h (NO_SIOCTL_H):
4617 * s/freebsd.h (GETPGRP_NO_ARG, N_TRELOFF):
4618 * s/cygwin.h (GETPGRP_NO_ARG):
4619 * s/irix6-5.h (LIBS_SYSTEM, GETPGRP_NO_ARG): Remove, unused.
4620 (C_DEBUG_SWITCH): Remove duplicate definition.
4621
4622 * m/ibms390.h: Remove boilerplate comments.
4623
4624 * sysdep.c (closedir): Use SOLARIS2 instead of sun && USG5_4.
4625
4626 * process.c (HAVE_SERIAL): Consolidate ifdefs.
4627 (wait_reading_process_output): Remove code for SunOS, platform not
4628 supported anymore. Use SOLARIS2 instead of sun.
4629
46302008-07-19 Adrian Robert <Adrian.B.Robert@gmail.com>
4631
4632 * font.c (font_open_by_name): Under NS, default lface height to zero.
4633 (font_open_for_lface): Under NS, set size based on frame fontsize.
4634 * nsterm.m (EmacsView-changeFont:): Remove some commented code.
4635 * frame.c (x_set_frame_parameters): Remove HAVE_NS ifdef.
4636
46372008-07-19 Adrian Robert <Adrian.B.Robert@gmail.com>
4638
4639 * nsterm.m (ns_antialias_text, ns_use_qd_smoothing)
4640 (ns_use_system_highlight_color): Switch these from DEFVAR_BOOL to
4641 DEFVAR_LISP and change all code accordingly to use Qt/Qnil instead of
4642 YES/NO.
4643 * nsterm.h (prevUseHighlightColor): Make a Lisp_Object.
4644 * nsfont.m (nsfont_draw): Treat ns_use_qd_smoothing as Lisp_Object.
4645 * Makefile.in (clean): Clear out build destination dir.
4646
46472008-07-19 Adrian Robert <Adrian.B.Robert@gmail.com>
4648
4649 * Makefile.in (nsgui.h-related dependencies): Remove abbrev, xfns,
4650 xterm, xselect.
4651 * lisp.h: Remove declaration of hash_remove.
4652 * nsgui.h: Remove redefinitions of hash_remove.
4653 * fns.c (hash_remove): Rename to hash_remove_from_table.
4654
46552008-07-19 Seiji Zenitani <zenitani@mac.com>
4656
4657 * nsfont.m (nsfont_fmember_to_entity, nsfont_make_fontset_for_font):
4658 strdup() the family UTF8String before modifying it.
4659
46602008-07-19 Adrian Robert <Adrian.B.Robert@gmail.com>
4661
4662 * nsterm.m (ns_maybe_dumpglyphs_background): Compare result from
4663 NS_FACE_BACKGROUND with 0 instead of nil.
4664 * nsfont.m (nsfont_draw): Same.
4665
46662008-07-19 Chong Yidong <cyd@stupidchicken.com>
4667
4668 * nsfns.m (ns_set_background_color): Fix crash.
4669
46702008-07-18 Chong Yidong <cyd@stupidchicken.com>
4671
4672 * Makefile.in (SOME_MACHINE_LISP): Remove ns-carbon-compat.elc.
4673
46742008-07-18 Dan Nicolaescu <dann@ics.uci.edu>
4675
4676 * puresize.h (BASE_PURESIZE): Increase to 1240000.
4677
46782008-07-17 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
4679
4680 * gtkutil.c: Include <config.h> instead of "config.h".
4681
4682 * lisp.h (Foverlay_buffer): Add EXFUN.
4683
4684 * process.c (create_process) [!WINDOWSNT && FD_CLOEXEC]: Wait for
4685 child process to complete child_setup. Undo 2005-09-21 change.
4686
4687 * s/darwin.h: Mention setsid after vfork.
4688
46892008-07-17 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
4690
4691 * Makefile.in (frame.o, keyboard.o, xdisp.o, xfaces.o):
4692 Depend on macgui.h.
4693
4694 * macfns.c (Fx_server_version): Don't use gestaltSystemVersionMajor,
4695 gestaltSystemVersionMinor, or gestaltSystemVersionBugFix.
4696
4697 * macterm.c (keycode_to_xkeysym_table): Add entries for f17, f18,
4698 and f19.
4699 [MAC_OSX] (fn_keycode_to_keycode_table): Likewise.
4700
4701 * macterm.h (gestaltSystemVersionMajor, gestaltSystemVersionMinor)
4702 (gestaltSystemVersionBugFix) [MAC_OS_X_VERSION_MAX_ALLOWED < 1040]:
4703 Remove enumerators.
4704
4705 * mactoolbox.c [USE_MAC_TSM] (mac_handle_text_input_event):
4706 Check if FACE_FROM_ID returns NULL.
4707
47082008-07-17 David Robinow <drobinow@gmail.com> (tiny change)
4709
4710 * w32inevt.c (change_frame_size): Remove extern declaration.
4711 (resize_event, maybe_generate_resize_event): Pass SAFE arg to
4712 change_frame_size.
4713
47142008-07-17 Adrian Robert <Adrian.B.Robert@gmail.com>
4715
4716 * getloadavg.c: Revert last change (2008-07-15).
4717
47182008-07-17 Adrian Robert <Adrian.B.Robert@gmail.com>
4719
4720 * Makefile.in: Replace emacsapp, emacsbindir, emacsappsrc variables
4721 set here with ns_appdir, ns_appresdir, ns_appbindir, ns_appsrc) set
4722 from configure.
4723
47242008-07-17 Dan Nicolaescu <dann@ics.uci.edu>
4725
4726 * s/sol2.h:
4727 * s/sol2-4.h: Reorganize conditionals.
4728
4729 * ecrt0.c: Remove code depending on m68000, not used anymore.
4730
4731 * fns.c (hash_remove): Make static.
4732 * lisp.h (hash_remove): Don't prototype.
4733
4734 * m/ibmrs6000.h:
4735 * m/ibms390x.h:
4736 * m/macppc.h: Remove boilerplate comments.
4737
4738 * m/sparc.h (A_TEXT_OFFSET, A_TEXT_SEEK): Remove, only used on
4739 Solaris, which does not need them.
4740
4741 * m/vax.h: Remove comments about unsupported systems.
4742
4743 * s/darwin.h: Reorganize ifdefs.
4744
47452008-07-17 Andreas Schwab <schwab@suse.de>
4746
4747 * s/cygwin.h (LIB_STANDARD_LIBSRC): Don't define.
4748
47492008-07-17 Stefan Monnier <monnier@iro.umontreal.ca>
4750
4751 Use SDATA. Follow coding convention of placing operators at
4752 beginning of next line rather than end of previous line, and placing
4753 spaces around infix operators.
4754
4755 * Makefile.in: Undef LIB_STANDARD before defining it to silence warning
4756 in case it was defined already.
4757 USE @GNUSTEP_MAKEFILES@ rather than envvars.
4758 * nsterm.m (ns_term_init): Pass Qt and Qnil rather than YES/NO to
4759 ns_default.
4760 (applicationShouldTerminate, setValuesFromPanel): Use EQ to compare
4761 Lisp_Objects.
4762 * nsterm.h (Fx_display_grayscale_p, Fx_display_planes)
4763 (ns_defined_color, ns_color_to_lisp): Declare.
4764 * nsselect.m (ns_handle_selection_request, ns_handle_selection_clear)
4765 (Fns_own_selection_internal): Make the big ugly hack more explicit, so
4766 it's accepted even with USE_LISP_UNION_TYPE.
4767 * nsmenu.m (ns_update_menubar): Use EQ to compare Lisp_Objects.
4768 (update_frame_tool_bar): Remove apparently obsolete tests for
4769 non-integerness of f->tool_bar_lines.
4770 (windowShouldClose, addButton, clicked, runDialogAt): Make the big ugly
4771 hack more explicit, so it's accepted even with USE_LISP_UNION_TYPE.
4772 * nsfont.m (nsfont_driver): Use just 0 rather than an invalid cast.
4773 (nsfont_open): Don't confuse NULL for Qnil.
4774 * nsfns.m (ns_implicitly_set_icon_type): Use EQ to compare Lisp_Objects.
4775 * menu.h (find_and_call_menu_selection):
4776 * menu.c (find_and_call_menu_selection): Use just int for vector size.
4777 (find_and_return_menu_selection): Always return something.
4778 * frame.h: Include dispextern.h for Display_Info.
4779 (display_x_get_resource): Declare.
4780
47812008-07-16 Adrian Robert <Adrian.B.Robert@gmail.com>
4782
4783 * syntax.c: Remove stdio.h include accidentally introduced in
4784 Emacs.app commit.
4785 * Makefile.in: Change GNUSTEP to NS_IMPL_GNUSTEP, COCOA to
4786 NS_IMPL_COCOA.
4787 * keyboard.c (handle_async_input, input_available_signal): Remove
4788 BSD4_1 conditional code, introduced accidentally in Emacs.app commit.
4789
47902008-07-16 Stefan Monnier <monnier@iro.umontreal.ca>
4791
4792 * nsterm.m (lisp_to_mod): Use parse_solitary_modifier instead.
4793 (ns_lisp_to_color): Don't mess with internal Lisp data fields.
4794 (ns_term_init, ns_term_shutdown, initFrameFromEmacs, ns_list_fonts):
4795 Use SDATA.
4796
4797 * keymap.c: Remove all NS-specific code.
4798 (where_is_preferred_modifier, Vwhere_is_preferred_modifier): New vars.
4799 (preferred_sequence_p): Rename from ascii_sequence_p; pay attention to
4800 where_is_preferred_modifier, return a different value depending on how
4801 preferred is the binding.
4802 (where_is_internal): Adjust accordingly.
4803 (Fwhere_is_internal): Refresh where_is_preferred_modifier.
4804 Adjust to new preferred_sequence_p.
4805 (syms_of_keymap): Declare `where-is-preferred-modifier'.
4806 * keyboard.c (parse_solitary_modifier): Not static any more.
4807 * keyboard.h (parse_solitary_modifier): Declare.
4808
48092008-07-16 Andreas Schwab <schwab@suse.de>
4810
4811 * Makefile.in (SOME_MACHINE_LISP): Remove easy-mmode, fix spelling
4812 of easymenu.
4813
48142008-07-16 Chong Yidong <cyd@stupidchicken.com>
4815
4816 * xdisp.c (move_it_in_display_line): Account for word wrap, so
4817 that we don't move off the line.
4818
48192008-07-16 Stefan Monnier <monnier@iro.umontreal.ca>
4820
4821 * keyboard.c (Qsuper): Remove.
4822 (parse_menu_item): Don't call where_is_internal specially for NS.
4823
48242008-07-16 Dan Nicolaescu <dann@ics.uci.edu>
4825
4826 * s/gnu-linux.h: Remove boilerplate comments.
4827
4828 * m/alpha.h (__ELF__): Consolidate conditions.
4829
4830 * m/m68k.h (linux): Use GNU_LINUX instead.
4831 Remove boilerplate comments.
4832
4833 * m/intel386.h: Undo refactoring from previous change.
4834 (LIB_STANDARD): All systems that define USG define LIB_STANDARD
4835 too, remove dead code.
4836 (linux): Use GNU_LINUX instead.
4837
48382008-07-16 Jason Rumney <jasonr@gnu.org>
4839
4840 * w32gui.h: Repeat 26 June changes lost by last change.
4841
48422008-07-16 Dan Nicolaescu <dann@ics.uci.edu>
4843
4844 * systty.h: Remove code for Aix on 386, unsupported platform.
4845
4846 * s/ms-w32.h: Remove boilerplate comments.
4847 (fcloseall, fgetchar, flushall, fputchar, getw, putw): Remove, unused.
4848
4849 * s/gnu-linux.h (TERM): Remove support.
4850 (HAVE_SYSVIPC): Remove, unused.
4851 (A_TEXT_OFFSET, A_TEXT_SEEK, ADJUST_EXEC_HEADER): Remove, not used
4852 for this system.
4853
4854 * process.c: Remove support for IRIS, unused.
4855 Remove support for TERM, not relevant anymore.
4856
4857 * unexalpha.c (DEFAULT_ENTRY_ADDRESS): Remove, replace the only
4858 used with the definition.
4859
4860 * s/aix4-2.h (static): Do not undef.
4861
4862 * m/ibmrs6000.h: Remove code depending on USG5_4, this file is
4863 only used on Aix.
4864 (HAVE_SYSVIPC): Remove, unused.
4865
4866 * m/hp800.h (CANNOT_DUMP): Do not undef.
4867
4868 * m/alpha.h: Fix comment.
4869
4870 * s/usg5-4.h (HAVE_SYSVIPC): Remove, unused.
4871 (USG_SHARED_LIBRARIES): Remove, only used in unexec.c which is not
4872 used by this configuration.
4873 * emacs.c: Remove code depending on USG_SHARED_LIBRARIES.
4874 * unexec.c: Remove code depending on HPUX and
4875 USG_SHARED_LIBRARIES, not used with this file. Remove code
4876 depending on IRIS, unused. Remove if 0-ed code.
4877
4878 * s/template.h: Remove comments about static.
4879
4880 * sysdep.c: Remove code depending on NEED_PTEM_H, unused.
4881 Remove if 0-ed code.
4882 (baud_convert): Don't depend on BAUD_CONVERT, all definitions the
4883 were the same as the default.
4884 * s/vms.h (BAUD_CONVERT): Remove, same as the default.
4885 Remove boilerplate comments.
4886 * s/hpux10-20.h (BAUD_CONVERT): Remove, same as the default.
4887 (HAVE_SYSVIPC): Remove, unused.
4888 (LD_SWITCH_SYSTEM_TEMACS): Simplify, hp9000s700 not supported anymore.
4889
4890 * m/ia64.h (PNTR_COMPARISON_TYPE): Remove, same as the default.
4891 Remove boilerplate comments.
4892 * m/amdx86-64.h (PNTR_COMPARISON_TYPE): Remove, same as the default.
4893 Remove boilerplate comments.
4894 * m/ibms390x.h (PNTR_COMPARISON_TYPE): Remove, same as the default.
4895 Remove boilerplate comments.
4896 * lisp.h (PNTR_COMPARISON_TYPE): Define it unconditionally.
4897
4898 * m/intel386.h (DATA_SEG_BITS): Remove definitions, only used on
4899 USG systems which do not use DATA_SEG_BITS.
4900 Refactor code. Remove boilerplate comments.
4901
4902 * m/ibms390.h:
4903 * m/m68k.h:
4904 * s/bsd-common.h:
4905 * s/cygwin.h:
4906 * s/darwin.h:
4907 * s/freebsd.h:
4908 * s/gnu.h:
4909 * s/msdos.h: Remove boilerplate comments.
4910
4911 * m/iris4d.h: Remove boilerplate comments and code for systems that
4912 do not use this file.
4913 (IRIS_4D): Remove, unused.
4914
4915 * m/mips.h: Remove boilerplate comments and code for systems that
4916 do not use this file.
4917 (SIGN_EXTEND_CHAR):
4918 * m/arm.h (SIGN_EXTEND_CHAR): Remove, unused.
4919 * unexmips.c: Remove file, unused.
4920
4921 * editfns.c (Fuser_full_name): Replace the only use of
4922 USER_FULL_NAME with its value.
4923 * config.in: Regenerate.
4924
49252008-07-16 David Reitter <david.reitter@gmail.com>
4926
4927 * Makefile.in: Add ns-win, ns-carbon-compat, easy-mmode and
4928 easy-menu to SOME_MACHINE_LISP for the new NeXTstep port.
4929
49302008-07-16 Glenn Morris <rgm@gnu.org>
4931
4932 * emacs.c (system-type): Doc fix.
4933
49342008-07-15 Stefan Monnier <monnier@iro.umontreal.ca>
4935
4936 * keyboard.c (parse_menu_item): Don't use cachelist, even under NS.
4937 If the cache doesn't work, let's fix it, rather than work around it.
4938
49392008-07-15 Adrian Robert <Adrian.B.Robert@gmail.com>
4940
4941 * Makefile.in: Correct additions for nsfont.o in last commit.
4942 * nsfont.m: New file (forgot last commit).
4943
49442008-07-15 Chris Hall <chris@web.workinglinux.com> (tiny change)
4945
4946 * callproc.c (set_initial_environment): Initialize
4947 Vprocess_environment under CANNOT_DUMP (fixes crash when
4948 batch-compiling for bootstrap).
4949
49502008-07-15 Chris Hall <chris@web.workinglinux.com> (tiny change)
4951 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
4952
4953 (make_initial_frame): Call init_frame_faces(f) in CANNOT_DUMP case --
4954 fix crash due to different init order.
4955
49562008-07-15 Adrian Robert <Adrian.B.Robert@gmail.com>
4957
4958 Changes and additions for NeXTstep windowing system (Cocoa and
4959 GNUstep) support.
4960
4961 * Makefile.in:
4962 * config.in: Support defines and build commands for NS port.
4963 * blockinput.h (BLOCK_INPUT, UNBLOCK_INPUT, TOTALLY_UNBLOCK_INPUT)
4964 (UNBLOCK_INPUT_TO): Don't use under NS unless EXPERIMENTAL_CONTROL_G.
4965 * dispextern.h: Include nsgui.h and add needed typedefs under NS
4966 windowing.
4967 (struct face): Add synth_ital field.
4968 * dispnew.c: Include nsterm.h when compiling under NS windowing.
4969 (init_display): Initialize Vinitial_window_system to "ns" when so
4970 compiled.
4971 * emacs.c: Include GSConfig.h when compiling under GNUstep.
4972 (display_arg): Use under NS.
4973 (main): Under NS, allocate autorelease pool and handle command line
4974 args. Move syms_of_xmenu() call under #ifdef HAVE_X_WINDOWS.
4975 (standard_args): Add NS-specific args.
4976 (shut_down_emacs): Shut down NS terminal if compiled under NS.
4977 * font.c (DEFAULT_ENCODING): New variable.
4978 (font_find_for_lface): Use it.
4979 (syms_of_font): Load syms_of_nsfont under NS.
4980 * font.h: Declare nsfont_driver when compiled under NS.
4981 * fontset.c: When compiling under NS, include nsterm.h.
4982 (fontset_from_font): Autoconstruct fontset under NS.
4983 * frame.c (various): Under NS, include nsterm.h, add Qns window system
4984 symbol, document and use it.
4985 (do_switch_frame): When for_deletion under Cocoa, add
4986 Fraise_frame(Qnil).
4987 (x_set_frame_parameters): Ensure font attribute changes are picked up.
4988 (x_get_arg): Allow "yes" and "no" as boolean values.
4989 (syms_of_frame): Declare Qns. Init Vdefault_frame_scroll_bars to
4990 Qright under Cocoa.
4991 (focus-follows-mouse): Default to 0 under NS.
4992 * frame.h (enum output_method): Add output_ns.
4993 (external_tool_bar, external_menu_bar, FRAME_EXTERNAL_TOOLBAR)
4994 (FRAME_EXTERNAL_MENU_BAR): Use under NS.
4995 (FRAME_WINDOW_P): NS-specific definition.
4996 * fringe.c (max_used_fringe_bitmap): Make public.
4997 * getloadavg.c (mach/mach.h): Include it under NeXT descendant OS's.
4998 (getloadavg): Use NeXT code under descendant OS's.
4999 * image.c (includes and header section, x_create_bitmap_from_data)
5000 (x_create_bitmap_from_file, free_bitmap_record, image_background)
5001 (image_background_transparent, x_clear_image_1)
5002 (x_create_x_image_and_pixmap, x_destroy_x_image, x_put_x_image)
5003 (Create_Pixmap_From_Bitmap_Data, xpm_load_image, lookup_rgb_color)
5004 (x_to_xcolors, x_from_xcolors, x_disable_image)
5005 (x_build_heuristic_mask, syms_of_image): Add NS support parallel to
5006 other GUIs, including XPM support using code originally written for
5007 Carbon GUI.
5008 (png_load, jpeg_load, tiff_load, gif_load): Add implementations
5009 using NS API.
5010 (image_ascent): Use font metrics macros instead of direct struct field
5011 access.
5012 * keyboard.c (includes): Add nsterm.h when compiling under NS.
5013 (kbd_buffer_get_event): Handle NS as other GUI windowing systems.
5014 Also, handle NS as GTK for menu bar purposes.
5015 (make_lispy_event): Handle NS as other GUI windowing systems, and as X
5016 toolkit where they differ.
5017 (parse_menu_item): Prefer keybindings using 'super' modifier. Also,
5018 use cachelist, still needed under NS.
5019 * keyboard.h (ENCODE_MENU_STRING, XtPointer, Boolean): Handle as NTGUI.
5020 (struct widget_value): Define it here for menu.c.
5021 * keymap.c (includes): Include modifier internals.
5022 (lisp_to_mod, modifier_sequence_p): New functions, compiled only under
5023 NS.
5024 (where_is_internal, Fwhere_is_internal): When compiled under NS, add
5025 support for preferring sequences using certain modifiers, specified by
5026 the FIRSTONLY argument.
5027 * lisp.h (hash_remove): Rename to avoid name clash when compiling
5028 under NS GNUstep implementation.
5029 (USE_LSB_TAG): Use it under Cocoa when compiling under NS.
5030 * lread.c (init_lread): Treat NS as HAVE_CARBON for turn_off_warning.
5031 * menu.c: Include nsterm.h under NS.
5032 (single_menu_item, parse_single_submenu, xmalloc_widget_value)
5033 (free_menubar_widget_tree_value, update_submenu_strings)
5034 (find_and_call_menu_selection): Treat NS as X and NT.
5035 (find_and_return_menu_selection): New function, used for popup menus.
5036 * nsgui.h:
5037 * nsterm.h:
5038 * nsfns.m:
5039 * nsimage.m:
5040 * nsmenu.m:
5041 * nsselect.m:
5042 * nsterm.m: New files.
5043 * process.c (wait_reading_process_output): Under NS, call ns_select()
5044 instead of plain select().
5045 * syntax.c (char_quoted): Under NS, avoid a crash when called near
5046 beginning of buffer.
5047 * sysselect.h (init_process): Rename when compiling under Cocoa to
5048 avoid name conflict.
5049 * termhooks.h (display_info): Add ns_display_info to union.
5050 * terminal.c (Fterminal_live_p): Add ns to terminal types.
5051 * terminfo.c (UP, BC, PC): Don't declare when compiling under NS in
5052 COCOA environment.
5053 * unexnext.c: Update to work with mach API on Mac OS X, and to use new
5054 unexec() signature. (Note, this will dump, but the resulting file
5055 crashes; unexosx is used instead; keeping around for reference and
5056 possible aid in getting dump working under GNUstep.)
5057 * w32gui.h (button_type, widget_value): Remove definitions (now in
5058 keyboard.h).
5059 * window.c: Include nsterm.h when compiling under NS.
5060 * xdisp.c (includes): Include nsterm.h when compiling under NS.
5061 (set_frame_menubar, update_menu_bar, display_menu_bar): Handle NS as
5062 other GUI windowing systems.
5063 (update_tool_bar, redisplay_tool_bar, redisplay_window): Handle NS as
5064 GTK.
5065 (x_consider_frame_title): Under NS, set icon type and frame
5066 modified-state indicator; use ns_set_name_as_filename() when using
5067 formatted title.
5068 (update_window_cursor): Make public when compiling under NS.
5069 (display_hourglass_p, syms_of_xdisp, hourglass_shown_p)
5070 (hourglass_atimer, Vhourglass_delay
5071 * xfaces.c (header section, init_frame_faces, clear_font_table)
5072 (defined_color, unload_color, x_face_list_fonts)
5073 (prepare_face_for_display): Add NS support parallel to other GUIs.
5074 Emulate GCs like other non-X GUIs.
5075 (split_font_name): Don't lowercase font name under NS.
5076 (merge_face_ref, Finternal_set_lisp_face_attribute): Support stippling
5077 under NS.
5078 * s/darwin.h: Add support for compilation under NS.
5079
50802008-07-15 Jason Rumney <jasonr@gnu.org>
5081
5082 * w32fns.c (Fx_create_frame): Remove duplicate unwind_protect.
5083 (w32_show_hourglass): Rename from show_hourglass.
5084 (w32_hide_hourglass): Rename from hide_hourglass.
5085 (DEFAULT_HOURGLASS_DELAY): Revert from last change.
5086 (Vhourglass_delay): Declare extern.
5087 (hourglass_started): Remove.
5088
5089 * xdisp.c (Vhourglass_delay): Remove static.
5090 (hourglass_started, start_hourglass, cancel_hourglass):
5091 Don't include these versions on WINDOWSNT.
5092
50932008-07-15 Adrian Robert <Adrian.B.Robert@gmail.com>
5094
5095 * dispextern.h (hourglass_shown_p, hourglass_atimer): New extern
5096 variables (formerly in xfns.c).
5097 (show_hourglass, hide_hourglass): New prototypes (same).
5098 * xdisp.c (display_hourglass_p, hourglass_shown_p, hourglass_atimer)
5099 (Vhourglass_delay, DEFAULT_HOURGLASS_DELAY): New variables (formerly
5100 in xfns.c).
5101 (syms_of_xdisp): Declare/initialize display-hourglass,
5102 hourglass-delay. Initialize hourglass_atimer, hourglass_shown_p.
5103 (hourglass_started, start_hourglass, cancel_hourglass): New functions,
5104 formerly in xfns.c.
5105 * xfns.c (display_hourglass_p, hourglass_atimer, hourglass_shown_p)
5106 (Vhourglass_delay, DEFAULT_HOURGLASS_DELAY, hourglass_started)
5107 (start_hourglass, cancel_hourglass): Remove.
5108 (show_hourglass, hide_hourglass): Remove prototypes and static
5109 modifiers.
5110 (syms_of_xfns): Remove display-hourglass, hourglass-delay,
5111 hourglass_atimer, hourglass_shown_p declaration/initialization.
5112 * macfns.c (display_hourglass_p, hourglass_atimer, hourglass_shown_p)
5113 (Vhourglass_delay, DEFAULT_HOURGLASS_DELAY, hourglass_started)
5114 (start_hourglass, cancel_hourglass): Remove.
5115 (show_hourglass, hide_hourglass): Remove prototypes and static
5116 modifiers.
5117 (syms_of_macfns): Remove display-hourglass, hourglass-delay,
5118 hourglass_atimer, hourglass_shown_p declaration/initialization.
5119 * w32fns.c (display_hourglass_p, Vhourglass_delay)
5120 (DEFAULT_HOURGLASS_DELAY): Remove.
5121 (syms_of_w32fns): Remove display-hourglass, hourglass-delay,
5122 hourglass_shown_p declaration/initialization.
5123
51242008-07-14 Jason Rumney <jasonr@gnu.org>
5125
5126 * w32fns.c (w32_get_arg): Remove wrapper function.
5127 (w32_createwindow, x_icon, x_create_tip_frame): Use x_get_arg
5128 directly.
5129 (Fx_create_frame): Sync with xfns.c. Use x_get_arg directly.
5130
51312008-07-14 Kenichi Handa <handa@m17n.org>
5132
5133 * xfont.c (xfont_open): Add workaround for X's bug.
5134
51352008-07-14 Emanuele Giaquinta <emanuele.giaquinta@gmail.com> (tiny change)
5136
5137 * fontset.c: Include <stdio.h> unconditionally.
5138
51392008-07-13 Michael Albinus <michael.albinus@gmx.de>
5140
5141 * dbusbind.c (Fdbus_register_signal): Allow also signal arguments
5142 for filtering.
5143
51442008-07-13 Dan Nicolaescu <dann@ics.uci.edu>
5145
5146 * s/vms.h: Use __GNUC__ instead of _GNUC_.
5147
5148 * m/macppc.h:
5149 * m/alpha.h: Use GNU_LINUX instead of LINUX. Reorganize conditionals.
5150
5151 * m/ibms390x.h (XINT, XUINT): Don't define, same as the default
5152 (SPECIAL_EMACS_INT):
5153 * m/ia64.h (SPECIAL_EMACS_INT):
5154 * m/amdx86-64.h (SPECIAL_EMACS_INT):
5155 * s/gnu.h (NLIST_STRUCT):
5156 * s/aix4-2.h (X11R5_INHIBIT_I18N):
5157 * s/gnu-linux.h (LINUX):
5158 * s/msdos.h (HAVE_FACES):
5159 * s/ms-w32.h (HAVE_FACES): Don't define, unused.
5160
5161 * systty.h:
5162 * sysdep.c (setup_pty): Don't depend on SYSV_PTYS, it is not used
5163 anymore.
5164
51652008-07-12 Dan Nicolaescu <dann@ics.uci.edu>
5166
5167 * syswait.h: Remove old if 0 code. Do not define WAITTYPE, it was
5168 always defined as int.
5169
5170 * s/netbsd.h (HAVE_UNION_WAIT, HAVE_WAIT_HEADER, WAIT_USE_INT):
5171 * s/gnu.h (HAVE_WAIT_HEADER, WAIT_USE_INT, HAVE_UNION_WAIT):
5172 * s/gnu-linux.h (HAVE_WAIT_HEADER):
5173 * s/freebsd.h (HAVE_WAIT_HEADER):
5174 * s/bsd-common.h (HAVE_UNION_WAIT):
5175 * s/aix4-2.h (HAVE_WAIT_HEADER):
5176 * m/mips.h (HAVE_UNION_WAIT):
5177 * s/usg5-4.h (HAVE_WAIT_HEADER, WAITTYPE): Do not define, not used.
5178 (COFF, static): Do not define, they are undefined later in the file.
5179
5180 * process.c (update_status): Don't use a union.
5181 (status_convert):
5182 (sigchld_handler): Use int instead of WAITTYPE.
5183
51842008-07-12 Chong Yidong <cyd@stupidchicken.com>
5185
5186 * indent.c (Fvertical_motion): Restore hscroll before moving to
5187 goal column.
5188
51892008-07-11 Dan Nicolaescu <dann@ics.uci.edu>
5190
5191 * lisp.h: Remove left over code.
5192
51932008-07-11 Andreas Schwab <schwab@suse.de>
5194
5195 * lisp.h: Fix logic in last change.
5196
5197 * menu.h: New file.
5198 * menu.c: Include it.
5199 * xmenu.c: Likewise.
5200 * Makefile.in: Update dependencies.
5201
52022008-07-11 Kenichi Handa <handa@m17n.org>
5203
5204 * fontset.c (fontset_from_font): Cancel the previous change.
5205
52062008-07-11 Dan Nicolaescu <dann@ics.uci.edu>
5207
5208 * lisp.h:
5209 * w32heap.c:
5210 * emacs.c:
5211 * alloc.c: Replace all references of NO_UNION_TYPE with
5212 USE_LISP_UNION_TYPE.
5213
5214 * m/xtensa.h (NO_UNION_TYPE):
5215 * m/vax.h (NO_UNION_TYPE):
5216 * m/template.h (NO_UNION_TYPE):
5217 * m/sparc.h (NO_UNION_TYPE):
5218 * m/mips.h (NO_UNION_TYPE):
5219 * m/macppc.h (NO_UNION_TYPE):
5220 * m/m68k.h (NO_UNION_TYPE):
5221 * m/iris4d.h (NO_UNION_TYPE):
5222 * m/intel386.h (NO_UNION_TYPE):
5223 * m/ibms390x.h (NO_UNION_TYPE):
5224 * m/ibms390.h (NO_UNION_TYPE):
5225 * m/ibmrs6000.h (NO_UNION_TYPE):
5226 * m/ia64.h (NO_UNION_TYPE):
5227 * m/hp800.h (NO_UNION_TYPE):
5228 * m/arm.h (NO_UNION_TYPE):
5229 * m/amdx86-64.h (NO_UNION_TYPE):
5230 * m/alpha.h (NO_UNION_TYPE): Remove definition, all platform were
5231 defining it the same.
5232
52332008-07-10 Chong Yidong <cyd@stupidchicken.com>
5234
5235 * xdisp.c (move_it_to): Backtrack if past the edge of a wrapped line.
5236
52372008-07-10 Dan Nicolaescu <dann@ics.uci.edu>
5238
5239 * fileio.c:
5240 * sysdep.c
5241 * systty.h:
5242 * m/ibmrs6000.h:
5243 * m/iris4d.h:
5244 * s/aix4-2.h:
5245 * s/freebsd.h:
5246 * s/gnu-linux.h:
5247 * s/hpux10-20.h:
5248 * s/hpux11.h:
5249 * s/netbsd.h:
5250 * s/sol2-3.h:
5251 * s/sol2-4.h:
5252 * s/sol2.h:
5253 * s/usg5-4.h:
5254 * s/vms.h: Remove references to unused variables.
5255
52562008-07-10 Andreas Schwab <schwab@suse.de>
5257
5258 * ftfont.c (ftfont_resolve_generic_family): Remove foundry from
5259 pattern before matching the generic family.
5260
52612008-07-10 Dan Nicolaescu <dann@ics.uci.edu>
5262
5263 * unexec.c:
5264 * s/vms.h:
5265 * s/usg5-4-2.h:
5266 * s/sol2-5.h:
5267 * s/freebsd.h:
5268 * s/darwin.h: Remove dead code.
5269
5270 * m/template.h:
5271 * m/sparc.h:
5272 * m/mips.h:
5273 * m/m68k.h:
5274 * m/iris4d.h:
5275 * m/intel386.h:
5276 * m/ibms390x.h:
5277 * m/ibms390.h:
5278 * m/ia64.h:
5279 * m/hp800.h:
5280 * m/arm.h:
5281 * m/amdx86-64.h: Remove dead code and references to unused
5282 and compiler defined symbols.
5283
5284 * unexmips.c:
5285 * unexelf.c: Remove references to desupported systems.
5286
5287 * m/powermac.h: Remove file, it is now identical to m/macppc.h.
5288
5289 * m/powermac.h: Remove boilerplate comments.
5290 (NO_REMAP): Remove unused definition.
5291
5292 * m/macppc.h (UNEXEC, NO_TERMIO): Don't define, the s/ files
5293 define them.
5294
52952008-07-10 Kenichi Handa <handa@m17n.org>
5296
5297 * xfont.c (xfont_open): Log the reason of failure.
5298
52992008-07-09 Stefan Monnier <monnier@iro.umontreal.ca>
5300
5301 * fontset.c (fontset_get_font_group):
5302 * font.c (font_check_otf): Specify argument types.
5303
53042008-07-09 Kenichi Handa <handa@m17n.org>
5305
5306 * coding.c (detect_coding_utf_8): Set detect_info->found only when
5307 non-ASCII char is found.
5308
5309 * fontset.c (fontset_compare_rfontdef): Fix plus/minus.
5310 (reorder_font_vector): Change the arg preferred_family to font.
5311 Prefer the spec matching with font.
5312 (fontset_get_font_group): New function.
5313 (fontset_find_font): Change the format of an element of a realized
5314 fontset. Use fontset_get_font_group.
5315 (fontset_font): Try the current fontset, the default fontset, the
5316 fallbacks of the current fontset, and the fallbacks of the default
5317 fontset in this order.
5318 (face_for_char): Delete the shortcut to use the current font.
5319 (fontset_from_font): Don't set fonts for Latin in the fontset.
5320
5321 * font.h (font_make_object, font_match_p): Adjust prototypes.
5322
5323 * ftfont.h [FT_BDF_H]: Include FT_BDF_H.
5324
5325 * font.c (font_make_object): New arg entity and pixelsize.
5326 (font_check_otf_features, font_check_otf): New functions.
5327 (font_match_p): Check :lang, :script, and :otf properties.
5328
5329 * xfont.c (xfont_open): Adjust it for the change of
5330 font_make_object.
5331 (xfont_text_extents): Fix initial setting of metrics.
5332
5333 * ftfont.c (struct ftfont_info): New member index, delete member
5334 fc_charset_idx. Make the member order compatible with struct
5335 xftfont_info.
5336 (fc_charset_table): Change charset names to registry names.
5337 (ftfont_pattern_entity): Delete the args registry and
5338 fc_charset_idx. Change the value of :font-entity property
5339 to (FONTNAME . INDEX). Always set :registry property to
5340 `iso10646-1'.
5341 (struct ftfont_cache_data): New struct.
5342 (ftfont_lookup_cache): New arg for_face.
5343 (ftfont_get_fc_charset, ftfont_get_otf): New functions.
5344 (ftfont_driver): Set the member otf_capability.
5345 (ftfont_get_charset): Adjust it for the change of
5346 fc_charset_table.
5347 (OTF_TAG_SYM): New macro.
5348 (ftfont_spec_pattern): Delete the arg fc_charset_idx. Adjust it
5349 for the change of fc_charset_table.
5350 (ftfont_list): Adjust it for the change of ftfont_spec_pattern and
5351 ftfont_pattern_entity. Add FC_INDEX to objset.
5352 (ftfont_match): Adjust it for the change of ftfont_spec_pattern
5353 and ftfont_pattern_entity.
5354 (ftfont_open): Adjust it for the change of ftfont_lookup_cache,
5355 font_make_object, struct ftfont_info.
5356 (ftfont_has_char): Use ftfont_get_fc_charset.
5357 (ftfont_otf_features, ftfont_otf_capability): New functions.
5358 (ftfont_shape): Use ftfont_get_otf.
5359 (ftfont_text_extents): Fix initial setting of metrics.
5360
5361 * xftfont.c (struct xftfont_info): New member ft_size. Make the
5362 member order compatible with struct ftfont_info.
5363 (xftfont_open): Add FC_CHARSET to the pattern. Set
5364 xftfont_info->ft_size. Don't unlock the face. Check BDF
5365 properties if appropriate.
5366 (xftfont_close): Unlock the face.
5367 (xftfont_anchor_point, xftfont_shape): Deleted.
5368 (syms_of_xftfont): Don't set members anchor_point and shape of
5369 xftfont_driver.
5370
5371 * w32uniscribe.c (uniscribe_open): Adjust it for the change of
5372 font_make_object.
5373
5374 * w32font.c (w32font_open): Adjust it for the change of
5375 font_make_object.
5376 (w32font_open_internal): Don't set properties of font_object here.
5377
53782008-07-08 Chong Yidong <cyd@stupidchicken.com>
5379
5380 * macfns.c (x_create_tip_frame):
5381 * w32fns.c (x_create_tip_frame):
5382 * xfns.c (x_create_tip_frame): Pass parameter argument to
5383 face-set-after-frame-default.
5384
5385 * xfaces.c (Finternal_merge_in_global_face): Save merged
5386 attributes for the default face back into the face vector.
5387
53882008-07-08 Andreas Schwab <schwab@suse.de>
5389
5390 * fontset.h: Declare fontset_from_font. Don't declare
5391 new_fontset_from_font and fontset_from_font_name.
5392 * xterm.c: Include "fontset.h".
5393 * Makefile.in (xterm.o): Update dependencies.
5394
53952008-07-08 Glenn Morris <rgm@gnu.org>
5396
5397 * m/sparc.h: Define __sparc__ rather than sparc. (Bug#507.)
5398 * alloc.c, ecrt0.c: Use __sparc__ rather than sparc.
5399
54002008-07-07 Chong Yidong <cyd@stupidchicken.com>
5401
5402 * frame.c (Qinhibit_face_set_after_frame_default): Var deleted.
5403 (x_set_frame_parameters): Don't bind it.
5404
54052008-07-07 Juanma Barranquero <lekktu@gmail.com>
5406
5407 * w32fns.c (map_w32_filename): Declare extern.
5408
54092008-07-07 Jason Rumney <jasonr@gnu.org>
5410
5411 * w32term.c (WS_EX_LAYERED): Define if not already.
5412
54132008-07-06 Chong Yidong <cyd@stupidchicken.com>
5414
5415 * xfaces.c (set_font_frame_param): Don't try to set the font
5416 parameter if it is still unspecified in the lface.
5417
54182008-07-05 Chong Yidong <cyd@stupidchicken.com>
5419
5420 * xfaces.c (Finternal_merge_in_global_face): Don't realize default
5421 face if it didn't already exist.
5422
5423 * xdisp.c (try_window_id): Give up if word-wrapping is on.
5424
54252008-07-05 Andreas Schwab <schwab@suse.de>
5426
5427 * xdisp.c (get_it_property): Move out of HAVE_WINDOW_SYSTEM section.
5428
54292008-07-05 Chong Yidong <cyd@stupidchicken.com>
5430
5431 * xdisp.c (IT_OVERFLOW_NEWLINE_INTO_FRINGE): Turn it off if
5432 word-wrapping.
5433 (IT_DISPLAYING_WHITESPACE): New macro.
5434 (move_it_in_display_line_to): Handle MOVE_TO_X requests properly
5435 when word-wrapping. Simplify word-wrapping logic. Use correct
5436 pixel positions when saving copies of the iterator.
5437 (display_line): Use proper wrap point if the last character on a
5438 line was preceded by whitespace.
5439
54402008-07-04 Stefan Monnier <monnier@iro.umontreal.ca>
5441
5442 * Makefile.in (${etc}DOC): Depend on ${lisp} rather than ${shortlisp}.
5443
54442008-07-04 Kenichi Handa <handa@m17n.org>
5445
5446 * fns.c (Fstring_to_unibyte): Delete the arg ACCEPT-LATIN-1.
5447
5448 * lisp.h: EXFUN adjusted for the change of Fstring_to_unibyte.
5449
54502008-07-02 Jason Rumney <jasonr@gnu.org>
5451
5452 * xfns.c (syms_of_xfns): Only define x-select-font when both
2ae37cf0 5453 HAVE_FREETYPE and USE_GTK.
aac0c6e3
MR
5454
5455 * xdisp.c (next_element_from_display_vector): Move assignment out
5456 of if statement.
5457
54582008-07-02 Toru Tsuneyoshi <t_tuneyosi@hotmail.com>
5459
5460 * lisp.h (Qdelete_file, Qdelete_directory): Declare extern.
5461
5462 * fileio.c (delete_by_moving_to_trash, Qmove_file_to_trash): New vars.
5463 (syms_of_fileio): Initialize and export them.
5464 (Fdelete_directory, Fdelete_file): Optionally delete via trash.
5465
5466 * w32fns.c (FOF_NO_CONNECTED_ELEMENTS): Define if not already.
5467 (Fsystem_move_file_to_trash): New function.
5468 (syms_of_w32fns): Export it to lisp.
5469
54702008-07-01 Jason Rumney <jasonr@gnu.org>
5471
5472 * w32font.c (w32font_text_extents): Don't count overhang as part
5473 of width.
5474
54752008-06-30 Miles Bader <miles@gnu.org>
5476
5477 * dispextern.h (struct glyph, struct it, struct iterator_stack_entry):
5478 Add `avoid_cursor_p' field.
5479
5480 * xdisp.c (push_it, pop_it): Save/restore avoid_cursor_p field.
5481 (set_cursor_from_row): Skip glyphs with avoid_cursor_p set.
5482 (append_glyph, append_composite_glyph, produce_image_glyph)
5483 (append_stretch_glyph): Initialize avoid_cursor_p.
5484 (get_it_property): Rename from `get_line_height_property'.
5485 (x_produce_glyphs): Use get_it_property.
5486 (handle_line_prefix, push_display_prop): New functions.
5487 (display_line, move_it_in_display_line_to): Handle line/wrap prefixes.
5488 (Vwrap_prefix, Qwrap_prefix, Vline_prefix, Qline_prefix):
5489 New variables.
5490 (syms_of_xdisp): Initialize them.
5491
54922008-06-30 Kenichi Handa <handa@m17n.org>
5493
5494 * xftfont.c (xftfont_open): Don't call FcConfigSubstitute and
5495 XftDefaultSubstitute (they are called in XftFontMatch).
5496 (xftfont_open): Fix args to ftfont_font_format.
5497
5498 * ftfont.c (fc_charset_table): New member lang.
5499 (ftfont_resolve_generic_family): New arg pattern.
60612c8f 5500 (ftfont_spec_pattern): Check fc_charset_table[]->lang.
aac0c6e3
MR
5501 (ftfont_list): Call ftfont_resolve_generic_family with `pattern'.
5502 (ftfont_open): Fix args to ftfont_font_format.
5503 (ftfont_font_format): New arg filename.
5504
55052008-06-30 Chong Yidong <cyd@stupidchicken.com>
5506
5507 * xfaces.c (Finternal_merge_in_global_face): If default face was
5508 modified, realize it again. Update the font face attribute.
5509
55102008-06-29 Jason Rumney <jasonr@gnu.org>
5511
5512 * w32term.c (x_set_frame_alpha): Fix logic.
5513
55142008-06-29 Kenichi Handa <handa@m17n.org>
5515
5516 * fontset.c (Finternal_char_font): Return font-object instead of
5517 font-name.
5518
5519 * composite.c (get_composition_id): Fix the width calculation for TAB.
5520
55212008-06-29 Stefan Monnier <monnier@iro.umontreal.ca>
5522
5523 * indent.c (Fvertical_motion): Properly handle float column arg.
5524
55252008-06-28 Jason Rumney <jasonr@gnu.org>
5526
5527 * w32term.c (pfnGetFontUnicodeRanges): Remove unused function pointer.
5528 (pfnSetLayeredWindowAttributes): New function pointer.
5529 (w32_initialize): Initialize it when supported.
5530 (x_set_frame_alpha): New function.
5531
5532 * w32fns.c (Fx_create_frame): Initialize frame parameter `alpha'.
5533 (w32_frame_parm_handlers): Set alpha handler.
5534
5535 * frame.c (x_set_alpha) [HAVE_NTGUI]: Call x_set_frame_alpha.
5536
55372008-06-27 Jason Rumney <jasonr@gnu.org>
5538
5539 * w32fns.c (x_to_w32_font, w32_to_x_font, x_to_w32_weight)
5540 (w32_to_x_weight, w32_to_all_x_charsets): Remove obsolete functions.
5541 (w32_to_x_charset, x_to_w32_charset)
5542 (Qw32_charset_ansi, Qw32_charset_symbol, Qw32_charset_default)
5543 (Qw32_charset_shiftjis, Qw32_charset_hangeul, Qw32_charset_johab)
5544 (Qw32_charset_chinesebig5, Qw32_charset_gb2312, Qw32_charset_oem)
5545 (Qw32_charset_easteurope, Qw32_charset_turkish, Qw32_charset_baltic)
5546 (Qw32_charset_russian, Qw32_charset_arabic, Qw32_charset_greek)
5547 (Qw32_charset_hebrew, Qw32_charset_vietnamese, Qw32_charset_thai)
5548 (Qw32_charset_mac, Vw32_charset_info_alist): Move to w32font.c.
5549 (Qw32_charset_unicode): Remove.
5550 (syms_of_w32fns): Update for above changes.
5551
5552 * w32font.c (w32_to_x_charset, x_to_w32_charset)
5553 (Qw32_charset_ansi, Qw32_charset_symbol, Qw32_charset_default)
5554 (Qw32_charset_shiftjis, Qw32_charset_hangeul, Qw32_charset_johab)
5555 (Qw32_charset_chinesebig5, Qw32_charset_gb2312, Qw32_charset_oem)
5556 (Qw32_charset_easteurope, Qw32_charset_turkish, Qw32_charset_baltic)
5557 (Qw32_charset_russian, Qw32_charset_arabic, Qw32_charset_greek)
5558 (Qw32_charset_hebrew, Qw32_charset_vietnamese, Qw32_charset_thai)
5559 (Qw32_charset_mac, Vw32_charset_info_alist): Move from w32fns.c.
5560 (syms_of_w32font): Update for above changes.
5561
55622008-06-27 Dan Nicolaescu <dann@ics.uci.edu>
5563
5564 * s/usg5-4.h: Fix previous change: keep the correct branch of a
5565 removed #if.
5566 (USG_SHARED_LIBRARIES): Remove duplicate definition.
5567
55682008-06-26 Juanma Barranquero <lekktu@gmail.com>
5569 Eli Zaretskii <eliz@gnu.org>
5570
5571 * makefile.w32-in (LOCAL_FLAGS):
5572 Don't include WINDOWSNT, DOS_NT and _UCHAR_T.
5573
5574 * sysdep.c (_spawnlp, _getpid):
5575 Declare with explicit _cdecl instead of _CRTAPI1.
5576
5577 * editfns.c (Fget_internal_run_time):
5578 Check for WINDOWSNT with #ifdef, not #if.
5579
55802008-06-26 Jason Rumney <jasonr@gnu.org>
5581
5582 * w32font.h (FONT_HANDLE, FONT_TEXTMETRIC): New macros.
5583
5584 * w32term.c (x_draw_glyph_string_foreground)
5585 (x_draw_composite_glyph_string_foreground): Sync with xterm.c.
5586 Use FONT_HANDLE macro.
5587 (x_draw_glyph_string): Use FONT_TEXTMETRIC macro.
5588
5589 * w32uniscribe.c (uniscribe_otf_capability, uniscribe_shape)
5590 (uniscribe_encode_char): Use FONT_HANDLE macro.
5591
5592 * w32font.c (Fx_select_font): Use FONT_HANDLE macro.
5593 (w32font_text_extents): Use precast w32_font.
5594 (w32font_close): Free cached metrics.
5595 (w32font_open_internal): Allocate space for name on stack.
5596
55972008-06-26 Chong Yidong <cyd@stupidchicken.com>
5598
5599 * xdisp.c (extend_face_to_end_of_line): Fix last change.
5600
56012008-06-26 Jason Rumney <jasonr@gnu.org>
5602
5603 * w32term.h (FONT_AVG_WIDTH): Remove obsolete macro.
5604 (CP_8BIT, CP_UNICODE, CP_UNKNOWN): Remove obsolete constants.
5605
56062008-06-26 Juanma Barranquero <lekktu@gmail.com>
5607
5608 * Makefile.in (SOME_MACHINE_OBJECTS): Remove w32bdf.o.
5609
56102008-06-26 Jason Rumney <jasonr@gnu.org>
5611
5612 * w32bdf.c, w32bdf.h: Remove obsolete files.
5613
5614 * makefile.w32-in: Remove refs to w32bdf.h and w32bdf.c.
5615
5616 * w32gui.h: Don't include w32bdf.h.
5617 (XCharStruct, enum w32_char_font_type, W32FontStruct):
5618 Remove obsolete font support.
5619
5620 * w32font.h (struct w32font_info): Remove compat_w32_font.
5621 Add hfont member.
5622 (FONT_COMPAT): Remove obsolete macro.
5623
5624 * w32font.c (w32font_close): Remove compat code. Delete hfont member.
5625 (w32font_encode_char, w32font_text_extents): Use new hfont member.
5626 (w32font_open_internal): Remove compat code. Set new hfont member.
5627 (Fx_select_font): Use new hfont member.
5628
5629 * w32uniscribe.c (uniscribe_otf_capability, uniscribe_shape)
5630 (uniscribe_encode_char): Use new hfont member.
5631
5632 * w32term.c (x_draw_glyph_string_foreground)
5633 (x_draw_composite_glyph_string_foreground): Use new hfont member.
5634 (x_draw_glyph_string): Use metrics in w32font_info.
5635
56362008-06-26 Kenichi Handa <handa@m17n.org>
5637
5638 * xdisp.c (handle_auto_composed_prop): Fix for the terminal case.
5639
56402008-06-26 Dan Nicolaescu <dann@ics.uci.edu>
5641
5642 * unexnext.c:
5643 * m/ews4800.h:
5644 * m/hp9000s300.h:
5645 * m/ibm370aix.h:
5646 * m/mips-siemens.h:
5647 * m/ncr386.h:
5648 * m/next.h:
5649 * m/pmax.h:
5650 * m/powerpcle.h:
5651 * m/tandem-s2.h:
5652 * s/386bsd.h:
5653 * s/bsd386.h:
5654 * s/bsd4-1.h:
5655 * s/bsd4-2.h:
5656 * s/bsdos2-1.h:
5657 * s/bsdos2.h:
5658 * s/bsdos3.h:
5659 * s/bsdos4.h:
5660 * s/nextstep.h:
5661 * s/ultrix4-3.h:
5662 * s/usg5-0.h:
5663 * s/usg5-2-2.h:
5664 * s/usg5-2.h:
5665 * s/usg5-4-3.h:
5666 * s/ux4800.h:
5667 * s/uxpds.h:
5668 * s/uxpv.h: Remove support for obsolete systems.
5669 * s/hpux.h, s/hpux10.h, s/hpux8.h, s/hpux9.h, s/hpux9shr.h:
8f3a3ac2 5670 Remove, insert contents in s/hpux10-20.h.
aac0c6e3
MR
5671 * s/aix3-1.h, s/aix3-2-5.h, s/aix3-2.h, s/aix4-1.h, s/aix4.h:
5672 Remove, insert contents in s/aix4-2.h.
5673 * s/usg5-3.h: Remove, insert contents in s/usg5-4.h.
5674 * s/bsd4-3.h: Rename to ...
5675 * s/bsd-common.h: ... this.
5676 * data.c:
5677 * doc.c:
5678 * ecrt0.c:
5679 * emacs.c:
5680 * fileio.c:
5681 * floatfns.c:
5682 * keyboard.c:
5683 * mem-limits.h:
5684 * print.c:
5685 * process.c:
5686 * sysdep.c:
5687 * syssignal.h:
5688 * systty.h:
5689 * syswait.h:
5690 * term.c:
5691 * unexec.c:
5692 * unexelf.c:
5693 * unexhp9k800.c:
5694 * m/hp800.h:
5695 * m/ibmrs6000.h:
5696 * m/mips.h:
5697 * m/vax.h:
5698 * s/darwin.h:
5699 * s/freebsd.h:
5700 * s/gnu.h:
5701 * s/ms-w32.h:
5702 * s/msdos.h:
5703 * s/netbsd.h:
5704 * s/template.h: Remove references to obsolete variables.
5705
5706 * Makefile.in: Add dependencies for all unexec files.
5707 (admindir): Remove unused variable.
5708 (UNEXEC_SRC): Remove references.
5709
57102008-06-25 Chong Yidong <cyd@stupidchicken.com>
5711
5712 * xfns.c (x_default_font_parameter): If Xft is available, first
5713 try Monospace-12 for the default font.
5714
57152008-06-25 Jason Rumney <jasonr@gnu.org>
5716
5717 * xdisp.c (get_glyph_face_and_encoding): Encode invalid glyphs as 0.
5718
57192008-06-25 Stefan Monnier <monnier@iro.umontreal.ca>
5720
5721 * bytecode.c (Fbyte_code): Disable debugging code that doesn't compile.
5722
5723 * buffer.c (syms_of_buffer): Remove default-word-wrap.
5724
57252008-06-25 Juanma Barranquero <lekktu@gmail.com>
5726
5727 * xdisp.c (syms_of_xdisp) <truncate-partial-width-windows>: Doc fix.
5728 <scroll-conservatively>: Fix typo in docstring.
5729
5730 * xselect.c (Fx_send_client_event): Doc fix.
5731
57322008-06-25 Kenichi Handa <handa@m17n.org>
5733
5734 * xfaces.c (Fx_list_fonts): Call Flist_fonts with the arg PREFER.
5735
5736 * font.c (font_parse_fcname): Remove unused variables.
5737 (font_sort_entites): Delete the arg SPEC. Caller changed.
5738 Fix for the case of ! best_only.
5739 (font_delete_unmatched): Check DPI and AVGWIDTH too.
5740
5741 * lisp.h (Fstring_to_unibyte): EXFUN it.
5742
5743 * character.h (str_to_unibyte): Extern it.
5744
5745 * character.c (str_to_unibyte): New function.
5746
5747 * fns.c (Fstring_to_unibyte): New function.
5748 (syms_of_fns): Defsubr it.
5749
57502008-06-24 Kenichi Handa <handa@m17n.org>
5751
5752 * font.c (font_score): Even if the PIXEL_SIZE is the same, check
5753 DPI too.
5754 (font_sort_entites): Setup prefer_prop[FONT_DPI_INDEX] too.
5755
57562008-06-24 Andreas Schwab <schwab@suse.de>
5757
5758 * Makefile.in (${lispsource}loaddefs.el): Rename from
5759 ../lisp/loaddefs.el.
5760 (bootstrap-clean): Do what distclean does but don't remove
5761 Makefile.
5762 (distclean): Depend on bootstrap-clean and remove Makefile.
5763
57642008-06-24 Chong Yidong <cyd@stupidchicken.com>
5765
5766 * buffer.h (struct buffer): New member word_wrap.
5767
5768 * buffer.c (syms_of_buffer): New variables default-word-wrap and
5769 word-wrap.
5770 (init_buffer_once): Initialize them.
5771
5772 * dispextern.h (struct it): Replace bool truncate_lines_p with a
5773 line_wrap enum possessing three possible values.
5774
5775 * termopts.h: Replace truncate_partial_width_windows with
5776 Vtruncate_partial_width_windows.
5777
5778 * dispnew.c (direct_output_for_insert): Avoid direct output when
5779 inserting a space with word wrap on.
5780
5781 * indent.c (compute_motion): Obey integer values of
5782 truncate-partial-width-windows.
5783
5784 * xdisp.c (Vtruncate_partial_width_windows): New Lisp_Object,
5785 replacing truncate_partial_width_windows.
5786 (init_iterator): If Vtruncate_partial_width_windows is an integer,
5787 truncate only if the window width is below that integer.
5788 (start_display, resize_mini_window, produce_stretch_glyph)
5789 (display_string, move_it_in_display_line_to): Use line_wrap.
5790 (back_to_previous_visible_line_start, reseat_1): Reset
5791 string_from_display_prop_p.
5792 (display_line): Extend default face to end of line when wrapping.
5793
57942008-06-24 Kim F. Storm <storm@cua.dk>
5795
5796 * xdisp.c (display_line, move_it_in_display_line_to): Add ability
5797 to wrap continued lines at word boundaries.
5798
57992008-06-24 Jason Rumney <jasonr@gnu.org>
5800
5801 * font.c (Ffont_face_attributes): Multiply pixel size before point
5802 conversion to avoid multiplying rounding error.
5803
58042008-06-23 Jason Rumney <jasonr@gnu.org>
5805
5806 * w32term.c (x_draw_glyph_string_background)
5807 (x_draw_glyph_string): Remove old bdf font code.
5808
5809 * w32term.h (FONT_TYPE_FOR_UNIBYTE, FONT_TYPE_FOR_MULTIBYTE): Remove.
5810
58112008-06-22 Kenichi Handa <handa@m17n.org>
5812
5813 * font.c (font_find_for_lface): Try the adstyle specified in
5814 the property of LFACE_FONT of LFACE (if any).
5815
58162008-06-21 Seiji Zenitani <zenitani@mac.com>
5817 Ryo Yoshitake <ryo@shiftmode.net>
5818
5819 * xterm.c (x_set_frame_alpha): Add x_catch_errors for bug#437.
5820
58212008-06-22 Stefan Monnier <monnier@iro.umontreal.ca>
5822
5823 * Makefile.in (${lisp} ${SOME_MACHINE_LISP}, ../lisp/loaddefs.el):
5824 Use $(BOOTSTRAPEMACS) rather than witness-emacs.
5825 (bootstrap-emacs${EXEEXT}): Merge witness-emacs into it.
5826 (witness-emacs): Remove.
5827 (lisp, shortlisp): Move loaddefs.el earlier.
5828 (mostlyclean): Forget about witness-emacs.
5829
58302008-06-22 Glenn Morris <rgm@gnu.org>
5831
5832 * Makefile.in (witness-emacs): Depend on temacs${EXEEXT}.
5833 (.SUFFIXES): Declare .el.elc as a suffix rule, for non-GNU makes.
5834
58352008-06-21 Stefan Monnier <monnier@iro.umontreal.ca>
5836
5837 * Makefile.in (PRECOMP): Remove.
5838 (${lisp} ${SOME_MACHINE_LISP}): Remove pseudo dependency on PRECOMP.
5839 (witness-emacs): Run `compile-first'.
5840 (.el.elc): Use the new compile-onefile target.
5841
58422008-06-21 Kenichi Handa <handa@m17n.org>
5843
5844 * xftfont.c (xftfont_open): Handle QCembolden only when
5845 FC_EMBOLDEN is defined.
5846
58472008-06-21 Andreas Schwab <schwab@suse.de>
5848
5849 * Makefile.in (witness-emacs): Use ../lisp, not $(lispsource).
5850 (.el.elc): Likewise.
5851
58522008-06-21 Miles Bader <miles@gnu.org>
5853
5854 * Makefile.in (../lisp/loaddefs.el): Build autoloads in the lisp
5855 build dir, not the lisp source dir.
5856
58572008-06-21 Stefan Monnier <monnier@iro.umontreal.ca>
5858
5859 * Makefile.in (emacs${EXEEXT}): Link the new emacs to bootstrap-emacs.
5860 (bootstrapclean): Remove.
5861 (.el.elc): New rule.
5862 (PRECOMP): New var.
5863 (../lisp/subdirs.el): Remove.
5864 (bootstrap-emacs${EXEEXT}): Remove subdirs.el and charpro.el dependency.
5865 (witness-emacs): New target.
5866 (mostlyclean): Remove witness-emacs as well.
5867 (../lisp/loaddefs.el, ${lisp} ${SOME_MACHINE_LISP}):
5868 Add witness-emacs dependency.
5869
58702008-06-20 Chong Yidong <cyd@stupidchicken.com>
5871
5872 * font.c (Ffont_face_attributes): Omit key-attribute pairs not
5873 defined by the font.
5874
58752008-06-20 Stefan Monnier <monnier@iro.umontreal.ca>
5876
5877 * Makefile.in (emacs${EXEEXT}): Depend on the machine-specific files.
5878 (bootstrap-clean): New target that keeps TAGS around.
5879 (../lisp/subdirs.el, ../lisp/loaddefs.el): New targets.
5880 (bootstrap-emacs${EXEEXT}): Depend on subdirs.el.
5881
58822008-06-20 Jason Rumney <jasonr@gnu.org>
5883
5884 * w32fns.c, w32term.c, w32term.h, w32gui.h [OLD_FONT]:
5885 Remove obsolete font code.
5886
5887 * w32font.c (font_matches_spec): Use csb bitfield from font signature
5888 to determine language support.
5889
58902008-06-20 Stefan Monnier <monnier@iro.umontreal.ca>
5891
5892 * sysdep.c (cfsetspeed): New fun extracted from the code.
5893 (cfmakeraw): Move before first use.
5894
58952008-06-20 Angelo Graziosi <angelo.graziosi@alice.it> (tiny change)
5896
5897 * sysdep.c (cfmakeraw): Provide fallback implementation.
5898 (serial_configure): Provide fallback implementation of cfsetspeed.
5899
59002008-06-20 Kenichi Handa <handa@m17n.org>
5901
5902 * xftfont.c (xftfont_open): Add FOUNDRY, SPACING, DPI, SCALABLE to
5903 the pattern.
5904
5905 * fontset.c (fontset_from_font): Copy font_spec before changing
5906 the elements.
5907
5908 * xfns.c (x_default_font_parameter): Try "monospace-12" too.
5909
59102008-06-20 Stefan Monnier <monnier@iro.umontreal.ca>
5911
5912 * w32fns.c, xfns.c (x_default_font_parameter): Only set `font-param'
5913 for explicit `font' parameters.
5914
5915 * frame.c (x_set_font): Remove unexplained call to fix inf-recursion.
5916
59172008-06-19 Kenichi Handa <handa@m17n.org>
5918
5919 * frame.c: Include <ctype.h>.
5920 (x_set_font_backend): Allow spacing characters in the X resource
5921 for FontBackend.
5922
59232008-06-19 Stefan Monnier <monnier@iro.umontreal.ca>
5924
5925 * w32fns.c, xfns.c (Qfont_param): New var.
5926 (syms_of_w32fns): Initialize it.
5927 (x_default_font_parameter): Record explicit `font' into
5928 `font-parameter'.
5929
59302008-06-18 Kenichi Handa <handa@m17n.org>
5931
5932 * font.c (font_parse_xlfd): Fix previous change.
5933 (font_parse_fcname): Don't use :fc-unknown-spec.
5934 (FRAME_X_DISPLAY_INFO): Be sure to have at least 1 pixel height.
5935 (Fcopy_font_spec): Preserve the order of elements in FONT_EXTRA.
5936 (font_add_log): Prepend the driver name to the resulting fonts.
5937
5938 * ftfont.c (ftfont_pattern_entity): New arg extra. Caller changed.
5939 (ftfont_spec_pattern): Don't check QCfc_unknown_spec and QCname.
5940 (ftfont_list) [FC_FONTFORMAT]: Include FC_FONTFORMAT in objset.
5941
5942 * xftfont.c (QChinting , QCautohint, QChintstyle, QCrgba)
5943 (QCembolden): New variables.
5944 (syms_of_xftfont): DEFSYM them.
5945 (xftfont_open): Call XftFontMatch. Don't trust the result of
5946 XftTextExtents8 if the pixel_size is less than 5.
5947
59482008-06-18 Andreas Schwab <schwab@suse.de>
5949
5950 * font.c (Ffont_face_attributes): Only define if HAVE_WINDOW_SYSTEM.
5951 (syms_of_font): Only defsubr if HAVE_WINDOW_SYSTEM.
5952
59532008-06-18 Jason Rumney <jasonr@gnu.org>
5954
5955 * w32font.c (w32font_list, w32font_match): Add logging.
5956
5957 * w32uniscribe.c (uniscribe_list, uniscribe_match): Add logging.
5958
59592008-06-17 Chong Yidong <cyd@stupidchicken.com>
5960
5961 * font.c (font_parse_fcname): Store divider characters for
5962 unknown-spec list. For known key symbols, intern using correct
5963 symbol name.
5964
59652008-06-17 Kenichi Handa <handa@m17n.org>
5966
5967 * xfaces.c (realize_default_face): If the frame is not on window
5968 system, set the fontset of face to nil.
5969
59702008-06-17 Naohiro Aota <nao.aota@gmail.com> (tiny change)
5971
5972 * fontset.c (fontset_pattern_regexp): Escape some reg-expr characters.
5973
59742008-06-16 Juanma Barranquero <lekktu@gmail.com>
5975
5976 * dispextern.h (lookup_non_ascii_face, split_font_name_into_vector)
5977 (build_font_name_from_vector): Delete externs.
5978
5979 * xfaces.c (struct font_name): Don't declare.
5980
59812008-06-16 Stefan Monnier <monnier@iro.umontreal.ca>
5982
5983 * font.c (font_unparse_gtkname): Use EQ to compare Lisp_Objects.
5984
59852008-06-16 Chong Yidong <cyd@stupidchicken.com>
5986
5987 * font.c (font_parse_fcname): Fix handling of unknown-spec string.
5988
59892008-06-16 Juanma Barranquero <lekktu@gmail.com>
5990
5991 * font.c (Ffont_spec): Fix usage in docstring.
5992 (Ffont_face_attributes): Doc fix.
5993
59942008-06-16 Andreas Schwab <schwab@suse.de>
5995
5996 * font.c (Ffont_face_attributes): Fix definition.
5997
59982008-06-16 Jason Rumney <jasonr@gnu.org>
5999
6000 * font.h (font_style_symbolic_from_value): Remove.
6001
6002 * font.c (font_style_symbolic_from_value): Remove.
6003 (font_style_symbolic): Revert to pre 2008-06-13 version.
6004
6005 * w32font.c (w32_to_fc_weight): New function.
6006 (w32font_full_name, logfont_to_fcname): Use it.
6007
60082008-06-16 Kenichi Handa <handa@m17n.org>
6009
6010 * font.c (font_check_object): Delete it.
6011 (font_clear_cache): Check if a font-object is alive.
6012 (font_open_entity): Likewise. Set FONT_OBJLST_INDEX of a
6013 font-object to nil.
6014 (font_close_object): Don't check FONT_CLOSE_OBJECT.
6015 (font_at): Don't call font_check_object.
6016 (Ffont_get): Return a symbol for :weight, :slant, and :width.
6017
60182008-06-16 Katsumi Yamaoka <yamaoka@jpl.org>
6019
6020 * puresize.h (BASE_PURESIZE): Increase to 1230000.
6021
60222008-06-16 Chong Yidong <cyd@stupidchicken.com>
6023
6024 * font.c (font_parse_fcname): Correctly parse KEY=VAL values.
6025
60262008-06-15 Chong Yidong <cyd@stupidchicken.com>
6027
6028 * font.c (font_parse_fcname): Only one decimal point.
6029 (font_unparse_fcname): Handle data in family and foundry indices
6030 as symbols, not strings.
6031 (font_unparse_gtkname, Ffont_face_attributes): New functions.
6032
6033 * xfns.c (Fx_select_font): Give GTK font dialog the default font name.
6034
6035 * font.h (font_unparse_gtkname): Add prototype.
6036
60372008-06-15 Naohiro Aota <nao.aota@gmail.com> (tiny change)
6038
6039 * fontset.c (fontset_pattern_regexp): Escape `+' characters in pattern.
6040
60412008-06-15 Andreas Schwab <schwab@suse.de>
6042
6043 * font.c (font_update_drivers): Fix crash when no drivers match.
6044
60452008-06-15 Stefan Monnier <monnier@iro.umontreal.ca>
6046
6047 * xfns.c (Fx_create_frame): internal-border-width default to 0 for Gtk.
6048 * gtkutil.c (xg_create_frame_widgets): Don't set internal_border_width.
6049
60502008-06-14 Stefan Monnier <monnier@iro.umontreal.ca>
6051
6052 * xdisp.c (syms_of_xdisp): Default underline-minimum-offset to 1.
6053
60542008-06-13 Stefan Monnier <monnier@iro.umontreal.ca>
6055
6056 * process.c (Fserial_process_configure, Fprocess_send_eof):
6057 Use EQ to compare Lisp_Objects.
6058
60592008-06-13 Jason Rumney <jasonr@gnu.org>
6060
6061 * w32fns.c (Fw32_select_font): Remove old font API function.
6062
6063 * w32font.c (logfont_to_fcname): New function.
6064 (Fx_select_font): New font dialog function compatible with
6065 GTK/fontconfig version.
6066
6067 * font.c (font_style_symbolic_from_value): New function.
6068 (font_style_symbolic): Use it.
6069
6070 * font.h (font_style_symbolic_from_value): Declare new function.
6071
60722008-06-13 Juanma Barranquero <lekktu@gmail.com>
6073
6074 * font.c (syms_of_font) <font-weight-table, font-slant-table>:
6075 <font-width-table>: Fix typos in docstrings.
6076
60772008-06-13 Daniel Engeler <engeler@gmail.com>
6078
6079 These changes add serial port access.
6080 * process.c: Add HAVE_SERIAL.
6081 (Fdelete_process, Fprocess_status, Fset_process_buffer)
6082 (Fset_process_filter, Fset_process_sentinel, Fprocess_contact)
6083 (list_processes_1, select_wrapper, Fstop_process)
6084 (Fcontinue_process, Fprocess_send_eof, kill_buffer_processes)
6085 (status_notify): Modify to handle serial processes.
6086 [HAVE_SERIAL] (Fserial_process_configure)
6087 [HAVE_SERIAL] (make_serial_process_unwind, Fmake_serial_process):
6088 New functions.
6089 * process.h (struct Lisp_Process): Add `type'.
6090 * sysdep.c [HAVE_TERMIOS] (serial_open, serial_configure):
6091 New functions.
6092 * w32.c (_sys_read_ahead, sys_read, sys_write): Modify to handle
6093 serial ports.
b71ac3dd 6094 (serial_open, serial_configure): New functions.
aac0c6e3
MR
6095 * w32.h: Add FILE_SERIAL.
6096 (struct _child_process): Add ovl_read, ovl_write.
6097
60982008-06-13 Kenichi Handa <handa@m17n.org>
6099
6100 * dispextern.h (enum lface_attribute_index): New member
6101 LFACE_FOUNDRY_INDEX.
6102
6103 * font.c (font_score): Delete arg alternate_families. Check only
6104 weight, slant, width, and size. Ignore the difference of alias
6105 style symbols.
6106 (font_sort_entites): Adjust for the above change. Reflect the
6107 order of font-driver to scores.
6108 (font_list_entities): Don't check alternate_familes here.
6109 (font_clear_prop): Handle foundry.
6110 (font_update_lface): Don't parse "foundry-family" form here.
6111 Handle FONT_FOUNDRY_INDEX.
6112 (font_find_for_lface): Likewise. Handle alternate families here.
6113 If registry is nil, try iso8859-1 and ascii-0.
6114 (font_open_for_lface): Pay attention to size in ENTITY.
6115 (font_open_by_name): Simplify by calling font_load_for_lface.
6116 (free_font_driver_list): Delete it.
6117 (font_update_drivers): Preserve the order of backends.
6118 (syms_of_font): Setting of sort_shift_bits adjusted for the change
6119 of font_score and font_sort_entites.
6120 (font_update_sort_order): Likewise.
6121
6122 * xfaces.c (LFACE_FOUNDRY): New macro.
6123 (check_lface_attrs): Check foundry.
6124 (set_lface_from_font): Don't parse "FOUNDRY-FAMILY" form.
6125 (merge_face_vectors): Check foundry.
6126 (merge_face_ref): Likewise.
6127 (Finternal_set_lisp_face_attribute): Likewise.
6128 (x_update_menu_appearance): Likewise.
6129 (Finternal_get_lisp_face_attribute): Likewise.
6130 (lface_hash): Likewise.
6131 (lface_same_font_attributes_p): Likewise.
6132 (x_supports_face_attributes_p): Likewise.
6133 (tty_supports_face_attributes_p): Likewise.
6134 (Finternal_set_alternative_font_family_alist): Intern strings.
6135 (Finternal_set_alternative_font_registry_alist): Downcase strings.
6136 (realize_default_face): Set LFACE_FOUNDRY (lface).
6137
6138 * xfns.c (Fx_create_frame, x_create_tip_frame): Register X
6139 font-driver at first.
6140
6141 * ftfont.c (ftfont_font_format) [! FC_FONTFORMAT]: Declare "int len;".
6142
61432008-06-12 Emanuele Giaquinta <emanuele.giaquinta@gmail.com> (tiny change)
6144
6145 * lread.c (Fload): Use xfree, not free on saved_doc_string.
6146
61472008-06-12 Jim Meyering <meyering@redhat.com>
6148
6149 Make unexec_free handle NULL the same way free does.
6150 * unexmacosx.c (unexec_free): Ignore a NULL argument.
6151
61522008-06-12 Stefan Monnier <monnier@iro.umontreal.ca>
6153
6154 * character.h (CHAR_TO_BYTE_SAFE): New macro.
6155 * character.c (Fmultibyte_char_to_unibyte): Obey the docstring.
6156 * regex.c (RE_CHAR_TO_UNIBYTE): Use the new macro.
6157 (WEAK_ALIAS): Simplify.
6158 * syntax.c (skip_chars): Don't mark non-byte chars in the fastmap
6159 when searching a unibyte buffer.
6160
61612008-06-12 Chong Yidong <cyd@stupidchicken.com>
6162
6163 * xfns.c (Fx_select_font): Rename from x-font-dialog.
6164
61652008-06-12 Juanma Barranquero <lekktu@gmail.com>
6166
6167 * w32font.c: Include ctype.h.
6168
61692008-06-11 Jason Rumney <jasonr@gnu.org>
6170
6171 * w32font.c (w32font_encode_char): Detect missing glyphs that are
6172 misreported as space.
6173 (add_font_entity_to_list): Support unicode-bmp and unicode-sip
6174 as aliases for registry iso10646-1.
6175
61762008-06-11 Stefan Monnier <monnier@iro.umontreal.ca>
6177
6178 * buffer.c (clone_per_buffer_values): Skip `name'.
6179
61802008-06-11 Chong Yidong <cyd@stupidchicken.com>
6181
6182 * font.c (font_parse_fcname): Fix last change; accept decimal
6183 points in font size.
6184
61852008-06-10 Jason Rumney <jasonr@gnu.org>
6186
6187 * w32uniscribe.c (add_opentype_font_name_to_list):
6188 Skip non unicode fonts.
6189
61902008-06-10 Chong Yidong <cyd@stupidchicken.com>
6191
6192 * xfns.c (Fx_font_dialog): New function.
6193
6194 * gtkutil.c (xg_dialog_response_cb): Rename from
6195 xg_file_response_callback.
6196 (pop_down_dialog): Rename from pop_down_file_dialog.
6197 (xg_get_file_name): Callers changed.
6198 (xg_get_font_name): New function.
6199
6200 * gtkutil.h (xg_get_font_name): Insert prototype.
6201
62022008-06-10 Stefan Monnier <monnier@iro.umontreal.ca>
6203
6204 * xdisp.c (underline_minimum_offset): Rename from xterm.c's
6205 x_underline_minimum_display_offset.
6206 (syms_of_xdisp): Declare it here rather than in xterm.c.
6207 * dispextern.h (underline_minimum_offset): Declare it.
6208 * w32term.c (x_draw_glyph_string): Use it.
6209 * xterm.c (x_underline_minimum_display_offset): Move to xdisp.c.
6210 (syms_of_xterm): Don't declare it any more.
6211 (x_draw_glyph_string): Adjust to the new name.
6212
62132008-06-10 David De La Harpe Golden <david@harpegolden.net> (tiny change)
6214
6215 * xterm.c (x_underline_minimum_display_offset): New var.
6216 (x_draw_glyph_string): Use it.
6217 (syms_of_xterm): Declare it.
6218
62192008-06-10 Chong Yidong <cyd@stupidchicken.com>
6220
6221 * font.c (font_parse_fcname): Accept GTK-style font names too.
6222
62232008-06-10 Stefan Monnier <monnier@iro.umontreal.ca>
6224
6225 * dired.c (file_name_completion): Don't return t if the match is exact
6226 but with different capitalization.
6227 * minibuf.c (Ftry_completion): Simplify.
6228
6229 * window.c (Vwindow_point_insertion_type): New var.
6230 (set_window_buffer): Use it.
6231 (syms_of_window): Init and export it to Lisp.
6232
62332008-06-10 Kenichi Handa <handa@m17n.org>
6234
6235 * font.h (font_intern_prop): Prototype adjusted.
6236
6237 * font.c (font_intern_prop): New arg force_symbol.
6238 (font_parse_xlfd, font_parse_fcname, font_parse_family_registry):
6239 Adjust for the change of font_intern_prop.
6240
6241 * ftfont.c (ftfont_pattern_entity):
6242 * w32font.c (add_font_name_to_list, w32_enumfont_pattern_entity)
6243 (w32_registry):
6244 * w32uniscribe.c (add_opentype_font_name_to_list): Adjust for
6245 the change of font_intern_prop.
6246
62472008-06-09 Juanma Barranquero <lekktu@gmail.com>
6248
6249 * w32menu.c (digest_single_submenu): Declare extern.
6250
62512008-06-09 Jason Rumney <jasonr@gnu.org>
6252
6253 * w32term.c (x_make_frame_visible): Use alternate restore flags.
6254
6255 * w32menu.c (Fx_popup_menu): Unwind protect while building menu.
6256 (parse_single_submenu): Remove.
6257 (digest_single_submenu): Remove.
6258 (syms_of_w32menu): Don't initialise variables that have moved
6259 to menu.c.
6260 (set_frame_menubar): Sync with version in xmenu.c.
6261 (w32_menu_show): Sync with xmenu_show in xmenu.c.
6262
6263 * menu.c (single_keymap_panes, push_menu_pane, push_menu_item):
6264 Make static again.
6265
62662008-06-09 Jason Rumney <jasonr@gnu.org>
6267
6268 Changes to w32 files related to the move of common menu code
6269 to menu.c on 2008-06-08 by Chong Yidong.
6270
6271 * menu.c [HAVE_NTGUI]: Include w32term.h, move widget related
6272 defs to w32gui.h.
6273 (single_keymap_panes, push_menu_item, push_menu_pane):
6274 Make globally visible.
6275
6276 * w32menu.c (enum button_type, widget_value, local_heap, local_alloc)
6277 (local_free, malloc_widget_value, free_widget_value)
6278 (MENU_ITEMS_ITEM_NAME, MENU_ITEMS_ITEM_ENABLE, MENU_ITEMS_ITEM_VALUE)
6279 (MENU_ITEMS_ITEM_EQUIV_KEY, MENU_ITEMS_ITEM_DEFINITION)
6280 (MENU_ITEMS_ITEM_TYPE, MENU_ITEMS_ITEM_SELECTED, MENU_ITEMS_ITEM_HELP)
6281 (MENU_ITEMS_ITEM_LENGTH, enum menu_item_idx): Remove defs.
6282 (menu_items, menu_items_allocated, menu_items_used)
6283 (menu_items_n_panes, menu_items_submenu_depth): Remove global vars.
6284 (init_menu_items, finish_menu_items, discard_menu_items)
6285 (grow_menu_items, push_submenu_start, push_submenu_end)
6286 (push_left_right_boundary, push_menu_pane, push_menu_item)
6287 (keymap_panes, single_keymap_panes, list_of_panes, list_of_items)
6288 (free_menubar_widget_tree_value, parse_single_submenu)
6289 (update_submenu_strings): Remove functions.
6290 (xmalloc_widget_value): Remove and declare extern.
6291
6292 * makefile.w32-in ($(SRC)/menu.$(O)): New target.
6293 (OBJ1): Build it.
6294
6295 * w32gui.h (widget_value, XtPointer, Boolean, enum button_type)
6296 (local_heap, local_alloc, local_free, malloc_widget_value)
6297 (free_widget_value): Define here.
6298
62992008-06-09 Kenichi Handa <handa@m17n.org>
6300
6301 * font.h (Qascii_0): Extern it.
6302
6303 * font.c (Qascii_0): New variable.
6304 (syms_of_font): DEFSYM it.
6305 (font_open_by_name): If the registry "iso8859-1" fails, try also
6306 "ascii-0".
6307
6308 * ftfont.c (ftfont_spec_pattern): Accept the registry `ascii-0'.
6309
63102008-06-08 Kenichi Handa <handa@m17n.org>
6311
6312 * .gdbinit (xfont): New command.
6313
63142008-06-08 Andreas Schwab <schwab@suse.de>
6315
6316 * menu.c [HAVE_X_WINDOWS]: Include "xterm.h".
6317 * Makefile.in (menu.o): Update dependencies.
6318
6319 * Makefile.in (obj): Always add menu.o.
6320 * emacs.c (main): Always call syms_of_menu.
6321 * keyboard.h: Remove extra #ifdef HAVE_X_WINDOW.
6322
63232008-06-08 Chong Yidong <cyd@stupidchicken.com>
6324
6325 * Makefile.in: Compile menu.c.
6326
6327 * lisp.h: Declare syms_of_menu.
6328
6329 * emacs.c (main): Call syms_of_menu.
6330
6331 * keyboard.h: Relocate platform-independent menu definitions from
6332 xmenu.c.
6333
6334 * menu.c: New file. Relocate platform-independent menu
6335 definitions from xmenu.c. Suggested by Adrian Robert.
6336
6337 * xmenu.c: Remove platform-independent menu definitions.
6338 (menu_items menu_items_inuse, menu_items_allocated)
6339 (menu_items_used, menu_items_n_panes)
6340 (menu_items_submenu_depth): Move to keyboard.h.
6341 (init_menu_items, finish_menu_items, unuse_menu_items)
6342 (discard_menu_items, restore_menu_items, save_menu_items)
6343 (grow_menu_items, push_submenu_start, push_submenu_end)
6344 (push_left_right_boundary, push_menu_pane, push_menu_item)
6345 (keymap_panes, single_keymap_panes, single_menu_item)
6346 (list_of_panes, list_of_items, find_and_call_menu_selection)
6347 (xmalloc_widget_value, free_menubar_widget_value_tree)
6348 (parse_single_submenu, digest_single_submenu)
6349 (update_submenu_strings): Move to menu.c.
6350
63512008-06-07 Stefan Monnier <monnier@iro.umontreal.ca>
6352
6353 * dispnew.c (Flast_nonminibuf_frame): Handle the NULL case.
6354
63552008-06-06 Miles Bader <miles@gnu.org>
6356
6357 * xdisp.c (x_produce_glyphs): Calculate tab width based on current
6358 face, not frame default.
6359
63602008-06-05 Martin Rudalics <rudalics@gmx.at>
6361
6362 * window.c (pop_up_windows, pop_up_frames)
6363 (display_buffer_reuse_frames, Vpop_up_frame_function)
6364 (Vdisplay_buffer_function, Veven_window_heights)
6365 (Vspecial_display_buffer_names, Vspecial_display_regexps)
6366 (Vspecial_display_function, Vsame_window_buffer_names)
6367 (Vsame_window_regexps, split_height_threshold)
6368 (Vsplit_window_preferred_function): Move those vars to window.el.
6369 (display_buffer_1, Fspecial_display_p, Fsame_window_p)
6370 (Fdisplay_buffer): Move those functions to window.el.
6371 (syms_of_window): Remove corresponding declarations.
6372 (display_buffer): New function.
6373 (temp_output_buffer_show, Fother_window_for_scrolling): Use it.
6374 * dispnew.c (Flast_nonminibuf_frame): New function.
6375 * buffer.c (Fpop_to_buffer): Move to window.el.
6376
63772008-06-05 Stefan Monnier <monnier@iro.umontreal.ca>
6378
6379 * data.c (set_internal): Fix up call to let_shadows_buffer_binding_p.
6380
63812008-06-05 Kenichi Handa <handa@m17n.org>
6382
6383 * coding.c (detect_coding): Fix previous change.
6384 (detect_coding_system): Likewise.
6385
63862008-06-05 Stefan Monnier <monnier@iro.umontreal.ca>
6387
6388 * character.h (MAKE_CHAR_MULTIBYTE): Check the arg is a (uni)byte.
6389
6390 * keymap.c (Vminibuffer_local_filename_must_match_map):
6391 Rename from Vminibuffer_local_must_match_filename_map.
6392 (syms_of_keymap):
6393 * minibuf.c (Fcompleting_read): Adjust accordingly.
6394 * commands.h: Rename declaration as well.
6395
63962008-06-05 Kenichi Handa <handa@m17n.org>
6397
6398 * font.c (Ffont_spec): Don't use font_parse_family_registry for
6399 family name.
6400 (Ffont_put): Likewise.
6401
6402 * fontset.c (fontset_find_font): Call font_open_for_lface with the
6403 current font-spec.
6404
6405 * xfont.c (xfont_list): Don't set registry to iso8859-1 even if it
6406 is unspecified.
6407
6408 * xfaces.c (realize_x_face): If the font-related face attributes
6409 are the same as those of default face, realize a new fontset from
6410 default->fontset.
6411 (Fx_family_fonts): Use font_parse_family_registry instead of Ffont_put.
6412
64132008-06-05 Stefan Monnier <monnier@iro.umontreal.ca>
6414
6415 * xdisp.c (move_it_in_display_line_to): Improve the type of its args.
6416 (move_it_in_display_line): New wrapper.
6417
6418 * window.c (window_scroll_pixel_based_preserve_x)
6419 (window_scroll_preserve_hpos, window_scroll_preserve_vpos): New vars.
6420 (window_scroll_pixel_based, window_scroll_line_based):
6421 Use them to preserve column positions.
6422 (syms_of_window): Initialize them.
6423
6424 * indent.c (Fvertical_motion): Extend first arg to allow passing an
6425 (HPOS . VPOS) pair.
6426
6427 * dispextern.h (move_it_in_display_line): Declare.
6428
64292008-06-05 Juanma Barranquero <lekktu@gmail.com>
6430
6431 * window.c (Fwindow_parameter): Return VALUE, not (PARAMETER . VALUE).
6432 (Fwindow_parameters): Return copy of parameter alist. Doc fix.
6433 (Fset_window_parameter): Return VALUE, not parameter alist. Doc fix.
6434
64352008-06-04 Juanma Barranquero <lekktu@gmail.com>
6436
6437 * window.c (Fset_window_parameter): Doc fix.
6438 (Fwindow_parameters, Fwindow_parameter): Remove redundant check.
6439
64402008-06-04 Joakim Verona <joakim@verona.se>
6441
6442 * window.h (struct window): Add new member window_parameters.
6443
6444 * window.c (Fwindow_parameters, Fwindow_parameter)
6445 (Fset_window_parameter): New defuns.
6446 (syms_of_window): Defsubr the new defuns.
6447 (make_window): Initialize window_parameters to nil.
6448
64492008-06-04 John Paul Wallington <jpw@pobox.com>
6450
6451 * eval.c (Fdefmacro): Doc fix.
6452
64532008-06-04 Kenichi Handa <handa@m17n.org>
6454
6455 * coding.c (detect_coding): Fix handling of coding->head_ascii.
6456 Be sure to call setup_coding_system when we find a proper coding system.
6457 (detect_coding_system): Fix handling of coding->head_ascii.
6458
64592008-06-03 Andreas Schwab <schwab@suse.de>
6460
6461 * font.c (font_prop_validate_spacing): Fix last change.
6462
64632008-06-03 Kenichi Handa <handa@m17n.org>
6464
6465 * font.c (font_prop_validate_spacing): Handle uppercase symbols.
6466 (font_parse_fcname): Fix handling of unknown key.
6467
6468 * xfont.c (xfont_list): Try an alias.
6469
6470 * charset.c (char_charset): Return NULL if the arg charset_list is
6471 specified and C doesn't belong to any of them.
6472
64732008-06-02 Chip Coldwell <coldwell@redhat.com>
6474
6475 * font.c (font_pixel_size): Don't take cdr of an integer.
6476
64772008-06-02 Jim Meyering <meyering@redhat.com>
6478
6479 Make "xfree (NULL)" a no-op; remove useless if-before-xfree.
6480 * alloc.c (xfree): Return right away for a NULL arg.
6481 * lread.c (nosuffix): Remove now-useless if-before-xfree tests.
6482 * gtkutil.c (xg_gtk_scroll_destroy): Likewise.
6483 * mac.c (create_apple_event_from_event_ref): Likewise.
6484 (create_apple_event_from_drag_ref, cfstring_create_normalized):
6485 Likewise.
6486 * doprnt.c (doprnt1): Likewise.
6487 * frame.c (frame): Likewise.
6488 * keyboard.c (wipe_kboard): Likewise.
6489 * macterm.c (x_free_frame_resources, xlfdpat_destroy, XFreePixmap)
6490 (init_font_name_table, mac_unload_font, x_delete_display): Likewise.
6491 * term.c (tty_default_color_capabilities, maybe_fatal)
6492 (delete_tty): Likewise.
6493 * w16select.c (string): Likewise.
6494 * w32.c (w32_get_resource, SET_ENV_BUF_SIZE): Likewise.
6495 * w32bdf.c (w32_free_bdf_font): Likewise.
6496 * w32fns.c (w32_unload_font): Likewise.
6497 * w32font.c (w32font_close): Likewise.
6498 * window.c (size_window): Likewise.
6499 * xselect.c (receive_incremental_selection): Likewise.
6500 * xterm.c (x_free_frame_resources, x_delete_display): Likewise.
6501 * mactoolbox.c (create_apple_event_from_drag_ref): Likewise.
6502 * w32.c (stat): Likewise.
6503
6504 Remove useless if-before-free tests.
6505 * editfns.c (Fset_time_zone_rule): Likewise.
6506 * lread.c (nosuffix): Likewise.
6507 * ralloc.c (get_bloc): Likewise.
6508 * regex.c (reg_free): Likewise.
6509 * xftfont.c (xftfont_open, xftfont_close): Likewise.
6510 * xrdb.c (get_user_app, get_environ_db, x_load_resources): Likewise.
6511 * xsmfns.c (smc_save_yourself_CB): Likewise.
6512
65132008-06-02 Kenichi Handa <handa@m17n.org>
6514
6515 * font.c (font_find_for_lface): Handle float font size.
6516 (font_open_for_lface): Likewise.
6517
6518 * xfaces.c (x_supports_face_attributes_p): Check face->font before
6519 comparing the properties.
6520
65212008-06-01 Jason Rumney <jasonr@gnu.org>
6522
6523 * w32font.c (w32_enumfont_pattern_entity): Use requested registry.
6524 Treat iso10646-1 and Windows DEFAULT_CHARSET specially.
6525 Duplicate iso8859-1 fonts as iso10646-1 if no registry specified.
6526 Don't add empty script list.
6527 (w32_registry): Only map DEFAULT_CHARSET to iso10646-1 here.
6528
65292008-06-01 Dan Nicolaescu <dann@ics.uci.edu>
6530
6531 * Makefile.in (dot, dotdot): Remove, update users.
6532 ".." has been used elsewhere in the file for a long time.
6533 (LIBXT_STATIC): Remove conditional based on unused variable.
6534
65352008-06-01 Miles Bader <miles@gnu.org>
6536
6537 * xfaces.c (Vface_remapping_alist): New variable.
6538 (syms_of_xfaces): Initialize it.
6539 (enum named_merge_point_kind): New type.
6540 (struct named_merge_point): Add `named_merge_point_kind' field.
6541 (push_named_merge_point): Make cycle detection respect different
6542 named-merge-point kinds.
6543 (lface_from_face_name_no_resolve): Rename from `lface_from_face_name'.
6544 Remove face-name alias resolution.
6545 (lface_from_face_name): New definition using
6546 `lface_from_face_name_no_resolve'.
6547 (get_lface_attributes_no_remap): Rename from `get_lface_attributes'.
6548 Call lface_from_face_name_no_resolve instead of lface_from_face_name.
6549 (get_lface_attributes): New definition that layers face-remapping on
6550 top of get_lface_attributes_no_remap. New arg `named_merge_points'.
6551 (lookup_basic_face): New function.
6552 (lookup_derived_face): Pass new last arg to `get_lface_attributes'.
6553 (realize_named_face): Call `get_lface_attributes_no_remap' instead of
6554 `get_lface_attributes'.
6555 (face_at_buffer_position): Use `lookup_basic_face' to lookup
6556 DEFAULT_FACE_ID if necessary. When optimizing the default-face case,
6557 return default_face's face-id instead of the constant DEFAULT_FACE_ID.
6558
6559 * xdisp.c (init_iterator): Pass base_face_id through
6560 `lookup_basic_face' when we actually use it as a face-id.
6561 (handle_single_display_prop): Use `lookup_basic_face' to lookup
6562 DEFAULT_FACE_ID.
6563
6564 * fontset.c (Finternal_char_font): Use `lookup_basic_face' to
6565 lookup the initial face-id.
6566
6567 * dispextern.h (lookup_basic_face, Vface_remapping_alist): New decls.
6568
65692008-06-01 Juanma Barranquero <lekktu@gmail.com>
6570
6571 * textprop.c (syms_of_textprop) <text-property-default-nonsticky>:
6572 (Fremove_text_properties): Fix typos in docstrings.
6573
65742008-05-31 Kenichi Handa <handa@m17n.org>
6575
6576 * font.c (font_list_entities): Fix the car part of data to be
6577 stored in the cache.
6578
6579 * ftfont.c (ftfont_font_format): Don't use strcasestr.
6580
65812008-05-30 Stefan Monnier <monnier@iro.umontreal.ca>
6582
6583 * chartab.c (Foptimize_char_table, optimize_sub_char_table):
6584 Add a `test' argument so another predicate than `equal' can be used.
6585 (map_sub_char_table): Use `eq' rather than `equal' to merge ranges.
6586 (map_char_table): Remove unused vars `c' and `i'.
6587 * lisp.h (Foptimize_char_table): Adjust declaration.
6588 * charset.c (Fclear_charset_maps): Adjust call to Foptimize_char_table.
6589
65902008-05-30 Kenichi Handa <handa@m17n.org>
6591
6592 * font.c (Ffont_info): Define only if HAVE_WINDOW_SYSTEM is defined.
6593 (syms_of_font): Defsubr Sfont_info only if HAVE_WINDOW_SYSTEM is
6594 defined.
6595
65962008-05-30 Stefan Monnier <monnier@iro.umontreal.ca>
6597
6598 * data.c (Fmake_variable_buffer_local, Fmake_local_variable)
6599 (Fmake_variable_frame_local): Disallow mixing buffer-local and
6600 frame-local settings for the same variable.
6601
66022008-05-30 Kenichi Handa <handa@m17n.org>
6603
6604 * fontset.c (Ffont_info): Move to font.c.
6605 (syms_of_fontset): Delete defsubr of Sfont_info.
6606
6607 * font.c (font_style_to_value, font_score): Delete casting of the
6608 args to xstcasecmp.
6609 (register_font_driver): Increment num_font_drivers only when
6610 registering the driver globally.
6611 (Ffont_info): Move from fontset.c. Handle a font object too.
6612 (syms_of_font): Defsubr Sfont_info.
6613
66142008-05-29 Kenichi Handa <handa@m17n.org>
6615
6616 * coding.h (enum define_coding_utf8_arg_index): New enum.
6617 (enum coding_attr_index): Change coding_attr_utf_16_bom to
6618 coding_attr_utf_bom.
6619 (enum utf_bom_type): Rename from utf_16_bom_type.
6620 (struct utf_16_spec): Adjust for the above change.
6621 (struct coding_system): Add utf_8_bom in `spec' union.
6622
6623 * coding.c (CODING_UTF_8_BOM): New macro.
6624 (enum coding_category): Delete coding_category_utf_8, add
6625 coding_category_utf_8_auto, coding_category_utf_8_nosig, and
6626 coding_category_utf_8_sig.
6627 (CATEGORY_MASK_UTF_8): Delete it.
6628 (CATEGORY_MASK_UTF_8_AUTO, CATEGORY_MASK_UTF_8_NOSIG)
6629 (CATEGORY_MASK_UTF_8_SIG): New macros.
6630 (CATEGORY_MASK_ANY): Delete CATEGORY_MASK_UTF_8, add
6631 CATEGORY_MASK_UTF_8_AUTO, CATEGORY_MASK_UTF_8_NOSIG, and
6632 CATEGORY_MASK_UTF_8_SIG.
6633 (CATEGORY_MASK_UTF_8): New macro.
6634 (UTF_BOM, UTF_8_BOM_1, UTF_8_BOM_2, UTF_8_BOM_3): New macros.
6635 (detect_coding_utf_8): Check BOM.
6636 (decode_coding_utf_8, encode_coding_utf_8): Handle BOM.
6637 (decode_coding_utf_16): Adjust for the change of enum utf_bom_type.
6638 (encode_coding_utf_16): Likewise.
6639 (setup_coding_system): Likewise. Set CODING_UTF_8_BOM (coding).
6640 (detect_coding, detect_coding_system): Handle utf-8-auto.
6641 (Fdefine_coding_system_internal): Handle `bom' property for utf-8.
6642 (syms_of_coding): Fix setting up of Vcoding_category_table.
6643
66442008-05-29 Stefan Monnier <monnier@iro.umontreal.ca>
6645
6646 * process.c (Faccept_process_output): If `millisec' is non-nil,
6647 `seconds' default to 0.
6648 (wait_reading_process_output): Also return non-nil if we read output
6649 from a non-running process.
6650
66512008-05-29 Jason Rumney <jasonr@gnu.org>
6652
6653 * w32font.c (w32font_open_internal): Prefer truetype fonts unless
6654 `raster' specified.
6655 (add_font_entity_to_list): Allow non-opentype truetype fonts back
6656 in the uniscribe backend, but disallow any font that has no
6657 unicode subrange support.
6658
66592008-05-29 Juanma Barranquero <lekktu@gmail.com>
6660
6661 * xfaces.c (Fx_list_fonts, Finternal_copy_lisp_face):
6662 Fix typos in docstrings.
6663
66642008-05-29 Kenichi Handa <handa@m17n.org>
6665
6666 * xfaces.c (Fx_list_fonts): Make it return a list of font names.
6667 (Fx_family_fonts): Set frame correctly.
6668
66692008-05-28 Jason Rumney <jasonr@gnu.org>
6670
6671 * w32term.c (x_draw_glyph_string): Use clipmask if specified.
6672
66732008-05-28 Stefan Monnier <monnier@iro.umontreal.ca>
6674
6675 * fileio.c (Fwrite_region): Delay the defaulting to beg&z to after
6676 calling build_annotations.
6677
66782008-05-28 Juanma Barranquero <lekktu@gmail.com>
6679
6680 * coding.c (Fdecode_coding_region, Fencode_coding_region)
6681 (Fencode_coding_string):
6682 (syms_of_coding) <coding-system-for-read, coding-system-for-write>:
6683 <latin-extra-code-table>: Fix typos in docstrings.
6684 (syms_of_coding) <coding-system-alist>: Doc fix.
6685 (syms_of_coding) <translation-table-for-input>: Reflow docstring.
6686
66872008-05-28 Kenichi Handa <handa@m17n.org>
6688
6689 * fontset.c (Ffont_info): Don't call font_close_object.
6690
6691 * font.c (font_parse_family_registry): Use Ffont_put to validate
6692 foundry and family.
6693 (font_delete_unmatched): Don't check spacing.
6694 (font_list_entities): Add spacing to the spec to list fonts.
6695
6696 * ftfont.c (ftfont_spec_pattern): Don't set FC_SPACING to pattern.
6697 (ftfont_list): Check spacing here. Don't include FC_CHARSET in objset.
6698
6699 * coding.c (encode_coding_raw_text): Fix previous change.
6700 (encode_coding_object): When the dst_object is a buffer and is
6701 different from src_object, move gap to PT.
6702
67032008-05-27 Chong Yidong <cyd@stupidchicken.com>
6704
6705 * xterm.c (x_draw_glyph_string): If a clipmask is specified, use it.
6706
67072008-05-27 Stefan Monnier <monnier@iro.umontreal.ca>
6708
6709 * coding.c (encode_coding_raw_text): Set coding->produced_char for
6710 all branches. Compute it differently.
6711
6712 * xdisp.c [!HAVE_WINDOW_SYSTEM]: Include font.h for --without-x.
6713
67142008-05-27 Juanma Barranquero <lekktu@gmail.com>
6715
6716 * w32font.c (compute_metrics): Rewrite an "else { if () ... else ... }"
6717 into "else if () ... else ...".
6718
67192008-05-27 Jason Rumney <jasonr@gnu.org>
6720
6721 * w32font.c (w32font_open_internal): Determine if glyph indices
6722 are likely to work here.
6723
67242008-05-27 Chong Yidong <cyd@stupidchicken.com>
6725
6726 * xdisp.c (draw_glyphs): If mouse-highlighting is on, attempt to
6727 draw overlap glyphs with appropriate highlighting.
6728
67292008-05-27 Kenichi Handa <handa@m17n.org>
6730
6731 * xfont.c (xfont_open): Fix calculation of font->average_width.
6732
67332008-05-27 Stefan Monnier <monnier@iro.umontreal.ca>
6734
6735 * casefiddle.c (casify_object): Try to guess better whether the
6736 argument is a byte or a char.
6737
67382008-05-26 Andreas Schwab <schwab@suse.de>
6739
6740 * xselect.c (x_reply_selection_request): Properly handle format == 32.
6741 Always send multiples of format size.
6742
6743 * xterm.c (x_set_frame_alpha): Fix type mismatch.
6744
67452008-05-26 Jason Rumney <jasonr@gnu.org>
6746
6747 * w32font.c (w32font_text_extents): Zero whole metrics struct first.
6748 (compute_metrics): Don't set failure if we just cleared the cache.
6749 (w32_weight_table): Remove unused variable.
6750 (w32_enumfont_pattern_entity): Use FONT_SPACING_CHARCELL for
6751 backwards compatibility.
6752
67532008-05-25 Kenichi Handa <handa@m17n.org>
6754
6755 * w32term.c (x_draw_glyph_string):
6756 * xterm.c (x_draw_glyph_string): Fix calculation of underline position.
6757
6758 * xfaces.c: Delete unused function prototypes.
6759 (xstrlwr, font_frame): Delete them.
6760 (clear_face_cache): Delete unused variable.
6761
6762 * xftfont.c (xftfont_open): Delete unused variable.
6763 If underline_thickness is not 1, adjust underline_position.
6764
6765 * ftxfont.c (ftxfont_open): Delete unused variable.
6766
6767 * fontset.c (face_for_char): Optimize for the case of no charset
6768 property.
6769
6770 * font.c (LGSTRING_HEADER_SIZE, LGSTRING_GLYPH_SIZE)
6771 (check_gstring, check_otf_features, otf_list, otf_tag_symbol)
6772 (otf_open, font_otf_capability, generate_otf_features)
6773 (font_otf_DeviceTable, font_otf_ValueRecord, font_otf_Anchor):
6774 Comment out by surrounding "#if 0" and "#endif" for the moment.
6775 (Ffont_drive_otf, Ffont_otf_alternates): Likewise.
6776 (syms_of_font): Codes for accessing above commented out.
6777
67782008-05-24 Eli Zaretskii <eliz@gnu.org>
6779
6780 * w32proc.c: Include dispextern.h.
6781
6782 * w32.c: Include dispextern.h.
6783
67842008-05-23 Juanma Barranquero <lekktu@gmail.com>
6785
6786 * charset.c (Fencode_char, Fsplit_char): Doc fixes.
6787 (Fget_unused_iso_final_char, Fdecode_char, Fiso_charset):
6788 Fix typos in docstrings.
6789
67902008-05-23 Jason Rumney <jasonr@gnu.org>
6791
6792 * xsmfns.c: Remove includes that are already included by config.h.
6793
67942008-05-23 Kenichi Handa <handa@m17n.org>
6795
6796 * charset.c (Qemacs, charset_emacs): New variables.
6797 (char_charset): Fix for non-Unicode characters.
6798 (syms_of_charset): Define charset_emacs.
6799
6800 * w32term.c (x_draw_glyph_string): Be sure to update
6801 s->underline_thickness and s->underline_position. Be sure to draw
6802 underline within the current line area.
6803
6804 * xterm.c (x_draw_glyph_string): Be sure to update
6805 s->underline_thickness and s->underline_position. Be sure to draw
6806 underline within the current line area.
6807
6808 * fontset.c: Delete unused variables and add casting for char *
6809 throughout the file.
6810 (fontset_font): Try the fallback fonts of the current fontset
6811 before consulting the default fontset.
6812
6813 * ftfont.c (ftfont_spec_pattern): Free charset if necessary.
6814
6815 * xfont.c (xfont_list_pattern): Free names returned from XListFonts.
6816
68172008-05-22 Jason Rumney <jasonr@gnu.org>
6818
6819 * font.c: Don't include strings.h.
6820
6821 * dispextern.h, xfaces.c (xstrcasecmp): Rename from xstricmp.
6822
6823 * dosfns.c, fileio.c, font.c, fontset.c, image.c, macfns.c:
6824 * macterm.c, process.c, w32.c, w32fns.c, w32proc.c, xfaces.c:
6825 * xfns.c, xfont.c: All callers of stricmp and strcasecmp changed
6826 to call xstrcasecmp.
6827
6828 * xfont.c (xfont_list_pattern, compare_font_names): Use xstrcasecmp.
6829
6830 * fontset.c (fs_query_fontset): Use xstrcasecmp.
6831
6832 * font.c (font_style_to_value, font_score): Use xstrcasecmp.
6833
6834 * dosfns.c (msdos_stdcolor_idx): Use xstrcasecmp.
6835
68362008-05-22 Kenichi Handa <handa@m17n.org>
6837
6838 * puresize.h (BASE_PURESIZE): Increase to 1220000.
6839
6840 * font.c (font_prop_validate_style): Adjust for the format
6841 change of font_style_table.
6842
6843 * w32font.c (w32font_open_internal): Call Ffont_xlfd_name with
6844 two args.
6845
6846 * xfaces.c (x_update_menu_appearance): Call Ffont_xlfd_name with
6847 two args.
6848
68492008-05-22 Stefan Monnier <monnier@iro.umontreal.ca>
6850
6851 * minibuf.c (keys_of_minibuf): Delete.
6852 * lisp.h (keys_of_minibuf): Delete.
6853 * emacs.c (main): Don't call keys_of_minibuf.
6854
68552008-05-22 Kenichi Handa <handa@m17n.org>
6856
6857 * ftfont.c (ftfont_resolve_generic_family): Rename from
6858 ftfont_list_generic_family. Return a single family for each
6859 generic family.
6860 (ftfont_spec_pattern): Add FC_FAMILY to pattern.
6861 (ftfont_list): Adjust for the change of ftfont_resolve_generic_family.
6862 Call font_add_log.
6863 (ftfont_match): Call font_add_log.
6864
6865 * font.h (Ffont_xlfd_name): EXFUN adjusted.
6866 (FONT_DEBUG): Define it.
6867 (font_add_log): Extern it.
6868 (font_assert): Rename from xassert.
6869
6870 * xfont.c (xfont_get_pcm): Change xassert to font_assert.
6871 (xfont_list_family): Call font_add_log.
6872 (xfont_match): Likewise.
6873 (memq_no_quit): Delete.
6874
6875 * fontset.c (fontset_from_font, Ffontset_info): Add the 2nd arg in
6876 call of Ffont_xlfd_name.
6877
6878 * xfaces.c (struct table_entry, slant_table, weight_table)
6879 (swidth_table): Move to font.c.
6880
6881 * font.c: Checking of FONT_DEBUG is moved to font.h. All calls of
6882 xassert are changed to font_assert. Delete many unused variables.
6883 (Vfont_weight_table, Vfont_slant_table, Vfont_width_table):
6884 New variables.
6885 (struct table_entry): Move from xfaces.c and modified.
6886 (weight_table, slant_table, width_table): Move from xfaces.c and
6887 contents adjusted for the change of struct table_entry.
6888 (font_style_to_value, font_style_symbolic): Adjust for the
6889 format change of font_style_table.
6890 (font_parse_family_registry): Don't overwrite existing foundry and
6891 family of font_spec.
6892 (font_score): Fix calculation of diff for sizes.
6893 (font_sort_entites): Call font_add_log.
6894 (font_delete_unmatched): Return a newly created list.
6895 (font_list_entities): Fix previous change. Call font_add_log.
6896 (font_matching_entity, font_open_entity, font_close_entity):
6897 Call font_add_log.
6898 (Ffont_xlfd_name): New arg FOLD-WILDCARDS.
6899 (Finternal_set_font_style_table): Delete.
6900 (BUILD_STYLE_TABLE): New macro.
6901 (build_style_table): New function.
6902 (Vfont_log, font_log_env_checked): New variables.
6903 (font_add_log): New function.
6904 (syms_of_font): Delete defsubr Sinternal_set_font_style_table.
6905 Declare Lisp variables "font-weight-table", "font-slant-table",
6906 "font-width-table", and "font-log". Initialize font_style_table.
6907
69082008-05-21 Dan Nicolaescu <dann@ics.uci.edu>
6909
6910 * xterm.c (x_set_frame_alpha): Move declarations before statements.
6911
69122008-05-21 Seiji Zenitani <zenitani@mac.com>
6913 Ryo Yoshitake <ryo@shiftmode.net>
6914
6915 * frame.c (Qalpha): Add a new frame parameter `alpha'.
6916 (Vframe_alpha_lower_limit): New variable.
6917 (x_set_alpha): New function.
6918
6919 * frame.h (Qalpha, Vframe_parameter_lower_limit): Export them.
6920
6921 * xfns.c (x-create-frame, Qalpha):
6922 Initialize the frame parameter `alpha'.
6923 * xterm.c (OPAQUE, OPACITY): New.
6924 (x_set_frame_alpha): New function.
6925 (frame_highlight, frame_unhighlight): Call x_set_frame_alpha.
6926
6927 * macfns.c (mac_frame_parm_handlers): A null handler for x_set_alpha.
6928 * w32fns.c (w32_frame_parm_handlers): Likewise.
6929
69302008-05-20 Jason Rumney <jasonr@gnu.org>
6931
6932 * w32font.c (add_font_entity_to_list): Don't add non-opentype
6933 truetype fonts to opentype list.
6934
69352008-05-20 Juanma Barranquero <lekktu@gmail.com>
6936
6937 * fontset.c (Ffontset_info): Doc fix.
6938 (syms_of_fontset) <font-encoding-charset-alist, use-default-ascent>:
6939 <ignore-relative-composition>: Fix typos in docstrings.
6940
6941 * font.c (syms-of-font) <font-encoding-alist>:
6942 (Ffontp, Ffont_make_gstring): Fix typos in docstrings.
6943 (Flist_fonts, Ffont_family_list, Ffont_fill_gstring, Fquery_font)
6944 (Ffont_otf_alternates): Doc fixes.
6945
69462008-05-20 Kenichi Handa <handa@m17n.org>
6947
6948 * Makefile.in (FONTSRC): Delete it. Change all $(FONTSRC) to
6949 font.h through out the file.
6950 (FONT_DRIVERS): Rename from FONTOBJ.
6951 (obj): Change $(FONTOBJ) to $(FONT_DRIVERS). Add font.o.
6952 (SOME_MACHINE_OBJECTS): Change $(FONTOBJ) to $(FONT_DRIVERS).
6953
6954 * emacs.c (main): Call syms_of_font unconditionally.
6955
6956 * font.h (find_font_encoding): Extern it.
6957
6958 * font.c (Vfont_encoding_alist, find_font_encoding): Move from
6959 fontset.c.
6960 (font_pixel_size)[! HAVE_WINDOW_SYSTEM]: Return 1.
6961 (font_open_entity): Update FRAME_X_DISPLAY_INFO (f)->n_fonts,
6962 FRAME_SMALLEST_CHAR_WIDTH (f), and FRAME_SMALLEST_FONT_HEIGHT (f)
6963 only when HAVE_WINDOW_SYSTEM is defined.
6964 (font_close_object): Update FRAME_X_DISPLAY_INFO (f)->n_fonts only
6965 when HAVE_WINDOW_SYSTEM is defined.
6966
6967 * fontset.c (Vfont_encoding_alist, find_font_encoding): Move to font.c.
6968 (syms_of_fontset): Move declaration of font-encoding-alist to font.c.
6969
6970 * xfaces.c: Include font.h unconditionally.
6971 (merge_face_ref, merge_face_vectors)
6972 (Finternal_set_lisp_face_attribute): Cancel the previous change.
6973
69742008-05-20 Stefan Monnier <monnier@iro.umontreal.ca>
6975
6976 * xdisp.c (select_frame_for_redisplay): Adjust for last change to
6977 indirect_variable.
6978 * eval.c (lisp_indirect_variable): New fun.
6979 (Fuser_variable_p): Use it.
6980
69812008-05-19 Stefan Monnier <monnier@iro.umontreal.ca>
6982
6983 * lisp.h (indirect_variable):
6984 * data.c (indirect_variable, let_shadows_buffer_binding_p):
6985 Use Lisp_Symbol pointers rather than Lisp_Object.
6986 Adjust callers.
6987 * buffer.c (buffer_slot_type_mismatch): Use wrong-type-argument.
6988 To this end, change calling-convention.
6989
6990 * minibuf.c (Finternal_complete_buffer): Only strip out hidden buffers
6991 if some non-hidden buffers are selected by string&pred.
6992
69932008-05-19 Chong Yidong <cyd@stupidchicken.com>
6994
6995 * process.c (wait_reading_process_output): Always check status
6996 when in batch mode.
6997
69982008-05-19 Kenichi Handa <handa@m17n.org>
6999
7000 * font.c (font_list_entities): Fix handling of cache.
7001 (font_matching_entity): Likewise.
7002
7003 * ftfont.c (cs_iso8859_1): Delete.
7004 (ft_face_cache): New variable.
7005 (struct ftfont_info): New member fc_charset_idx.
7006 (ftfont_build_basic_charsets): Delete.
7007 (fc_charset_table): New variable.
7008 (ftfont_pattern_entity): New arg fc_charset_idx. Store (FILENAME
7009 . FC_CHARSET_IDX) as :font-entity property in the font entity.
7010 Callers changed.
7011 (ftfont_lookup_cache, ftfont_get_charset): New functions.
7012 (ftfont_spec_pattern): New argument fc_charset_idx.
7013 Check registry more rigidly. Change callers.
7014 (ftfont_open, ftfont_close, ftfont_has_char): Adjust for the
7015 change of :font-entity property of the font.
7016
7017 * xftfont.c (xftfont_open): Adjust for the change of :font-entity
7018 property of the font.
7019
70202008-05-18 Juanma Barranquero <lekktu@gmail.com>
7021
7022 * coding.c (Fcoding_system_p): Rename argument to match docstring.
7023 (Funencodable_char_position, Fcheck_coding_systems_region)
7024 (Fdecode_coding_string, Fencode_coding_string): Fix typos in docstrings.
7025 (Fdetect_coding_region, Fdetect_coding_string, Fencode_coding_region)
7026 (Ffind_operation_coding_system, Fset_coding_system_priority)
7027 (Fcoding_system_eol_type): Doc fixes.
7028
70292008-05-17 Glenn Morris <rgm@gnu.org>
7030
7031 * sysdep.c (child_setup_tty): Handle systems with NLDLY, without FFDLY.
7032
70332008-05-16 Eli Zaretskii <eliz@gnu.org>
7034
7035 * dired.c (Ffile_attributes): Shut up GCC warnings about st_uid
7036 and st_gid.
7037
7038 * frame.c (Fdelete_frame): Don't call font_update_drivers if
7039 HAVE_WINDOW_SYSTEM is not defined.
7040
7041 * xfaces.c (merge_face_ref, merge_face_vectors)
7042 (Finternal_set_lisp_face_attribute): Use FONT_*_INDEX only when
7043 HAVE_WINDOW_SYSTEM is defined.
7044 (Fface_font): Fix non-HAVE_WINDOW_SYSTEM case.
7045
70462008-05-16 Stefan Monnier <monnier@iro.umontreal.ca>
7047
7048 * keyboard.c (parse_menu_item): Do not cache key shortcut any more.
7049
70502008-05-15 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
7051
7052 * macterm.c (x_draw_relief_rect): Remove unused variable `dpy'.
7053
70542008-05-15 Kenichi Handa <handa@m17n.org>
7055
7056 * font.c (font_find_for_lface): Reflect LFACE_FONT in the font
7057 preference.
7058
70592008-05-15 Glenn Morris <rgm@gnu.org>
7060
7061 * emacs.c (USAGE1, standard_args): Remove -disable-font-backend.
7062
70632008-05-15 Chong Yidong <cyd@stupidchicken.com>
7064
7065 * fns.c (init_fns): Don't initialize weak_hash_tables here.
7066 (init_weak_hash_tables): New fun. Initialize weak_hash_tables.
7067
7068 * alloc.c (init_alloc_once): Call init_weak_hash_tables.
7069
70702008-05-15 Kenichi Handa <handa@m17n.org>
7071
7072 * ftfont.c (ftfont_list): Downcase family name to check generic
7073 families.
7074
7075 * xfaces.c (Finternal_set_lisp_face_attribute): Be sure to make a
7076 font-spec for QCfont value.
7077
7078 * fontset.c (Fnew_fontset): Call font_unparse_xlfd with 256-byte
7079 buffer. Check the return value of it.
7080
70812008-05-14 Jason Rumney <jasonr@gnu.org>
7082
7083 * w32term.c (w32_get_glyph_overhangs): Remove.
7084 (w32_redisplay_interface): Use x_get_glyph_overhangs instead.
7085
70862008-05-14 Kenichi Handa <handa@m17n.org>
7087
7088 * font.c (font_prop_validate): Make nil a valid value.
7089 (font_clear_cache): Check if the cached vector of entities is nil
7090 or not.
7091
70922008-05-14 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
7093
7094 * emacs.c (main_thread): Conditionalize on
7095 FORWARD_SIGNAL_TO_MAIN_THREAD instead of HAVE_GTK_AND_PTHREAD.
7096 (main) [FORWARD_SIGNAL_TO_MAIN_THREAD]: Initialize it.
7097
7098 * syssignal.h (FORWARD_SIGNAL_TO_MAIN_THREAD): New define.
7099 (main_thread, SIGNAL_THREAD_CHECK): Conditionalize on
7100 FORWARD_SIGNAL_TO_MAIN_THREAD instead of HAVE_GTK_AND_PTHREAD.
7101
71022008-05-14 Kenichi Handa <handa@m17n.org>
7103
7104 * coding.c (detect_coding_iso_2022): Ignore a coding category that
7105 has no corresponding coding system.
7106
71072008-05-14 Jason Rumney <jasonr@gnu.org>
7108
7109 * font.h (struct font) [WINDOWSNT]: Remove codepage member.
7110
7111 * w32font.h (w32font_open_internal): Update declaration.
7112
7113 * w32font.c (w32font_open_internal): Change last argument from
7114 w32font_info struct to font object. Fill in font object from
7115 font_entity. Get Outline metrics if possible. Use them to
7116 calculate underline position and thickness. Use xlfd name as name
7117 property. Don't set codepage.
7118 (w32font_open): Pass font_object to w32font_open_internal. Don't
7119 update dpyinfo->smallest_font_height and dpyinfo->smallest_char_width.
7120 (w32font_draw): Use s->font.
7121 (clear_cached_metrics): Don't clear non-existent blocks.
7122
7123 * w32term.c (w32_compute_glyph_string_overhangs): Don't compute if
7124 font was not found.
7125 (x_draw_glyph_string): Use underline position and thickness from font.
7126
7127 * w32uniscribe.c (uniscribe_open): Pass font_object to
7128 w32font_open_internal.
7129
71302008-05-14 Kenichi Handa <handa@m17n.org>
7131
7132 These changes are to delete all legacy font-handling codes, and
7133 make Emacs use only font-backends.
7134
7135 * Makefile.in: Delete USE_FONT_BACKEND conditionals.
7136 (frame.o, image.o, print.o): Depend on $(FONTSRC).
7137
7138 * makefile.w32-in (WIN32OBJ): Add w32reg.$(O), remove w32bdf.$(O).
7139
7140 * charset.h (Vcharset_non_preferred_head)
7141 (Vcurrent_iso639_language): Extern them.
7142
7143 * charset.c (Vcharset_non_preferred_head): New variable.
7144 (Vcurrent_iso639_language): New variable.
7145 (syms_of_charset): Declare it as a Lisp variable.
7146 (char_charset): Don't check non preferred charsets. As a last
7147 resort, return charset_unicode.
7148 (Fset_charset_priority): Update Vcharset_non_preferred_head.
7149
7150 * composite.c: Throughout the file, delete all USE_FONT_BACKEND
7151 conditionals. Don't check enable_font_backend. Delete all codes
7152 used only when USE_FONT_BACKEND is not defined.
7153
7154 * dispextern.h (struct glyph_string): Change type of `font' to
7155 `struct font *'.
7156 (struct glyph_string): New member underline_position and
7157 underline_thickness.
7158 (enum lface_attribute_index): Remove LFACE_AVGWIDTH_INDEX.
7159 (struct face): Change type of `font' to `struct font *'. Remove
7160 members `font_name', `font_info_id'.
7161 (per_char_metric, encode_char): Delete externs.
7162 (calc_pixel_width_or_height): Adjust the prototype.
7163
7164 * emacs.c (enable_font_backend): Delete extern.
7165 (main): Don't set enable_font_backend. Don't check the command
7166 line argument "-disable-font-backend".
7167
7168 * font.h (Qfont_spec, Qfont_entity, Qfont_object): Extern them.
7169 (enum font_property_index): New members FONT_DPI_INDEX,
7170 FONT_SPACING_INDEX, FONT_AVGWIDTH_INDEX, FONT_NAME_INDEX,
7171 FONT_FULLNAME_INDEX, FONT_FILE_INDEX, FONT_FORMAT_INDEX,
7172 FONT_OBJECT_MAX. Delete FONT_FRAME_INDEX.
7173 (FONT_WEIGHT_NUMERIC, FONT_SLANT_NUMERIC, FONT_WIDTH_NUMERIC)
7174 (FONT_WEIGHT_SYMBOLIC, FONT_SLANT_SYMBOLIC, FONT_WIDTH_SYMBOLIC)
7175 (FONT_WEIGHT_FOR_FACE, FONT_SLANT_FOR_FACE, FONT_WIDTH_FOR_FACE)
7176 (FONT_WEIGHT_NAME_NUMERIC, FONT_SLANT_NAME_NUMERIC)
7177 (FONT_WIDTH_NAME_NUMERIC, FONT_SET_STYLE): New macros.
7178 (struct font_spec, struct font_entity): New structs.
7179 (FONT_ENCODING_NOT_DECIDED): Moved from fontset.h.
7180 (struct font): Many members from old "struct font_info" moved to
7181 here. Members font and entity deleted.
7182 (FONT_SPEC_P, FONT_ENTITY_P, FONT_OBJECT_P, FONTP): Modified for
7183 the new font-related objects.
7184 (CHECK_FONT_SPEC, CHECK_FONT_ENTITY, CHECK_FONT_OBJECT)
7185 (CHECK_FONT_GET_OBJECT): Likewise.
7186 (XFONT_SPEC, XFONT_ENTITY, XFONT_OBJECT, XSETFONT): New macros.
7187 (PT_PER_INCH, POINT_TO_PIXEL, PIXEL_TO_POINT): Moved from font.h.
7188 (struct font_driver): New members case_sensitive anc check. Type
7189 of the member list and open changed.
7190 (enable_font_backend, font_symbolic_weight, font_symbolic_slant)
7191 (font_symbolic_width, font_find_object, font_get_spec)
7192 (font_set_lface_from_name): Delete extern.
7193 (Fcopy_font_spec, Fmerge_font_spec, Ffont_family_list): New EXFUNs.
7194
7195 * font.c: Include <strings.h>.
7196 (enable_font_backend): Delete it.
7197 (Qfont_spec, Qfont_entity, Qfont_object): New variables.
7198 (CHECK_VALIDATE_FONT_SPEC): Delete it.
7199 (PT_PER_INCH, POINT_TO_PIXEL, PIXEL_TO_POINT): Moved to font.h.
7200 (null_string): Delete it.
7201 (null_vector): Make it static.
7202 (font_family_alist): Delete it.
7203 (Qnormal): Extern it.
7204 (QCextra, QClanguage): Delete it.
7205 (QClang, QCavgwidth, QCfont_entity, QCfc_unknown_spec): New variables.
7206 (font_make_spec, font_make_entity, font_make_object)
7207 (font_intern_prop): Renamed from intern_downcase. Don't downcase
7208 the string. Callers changed.
7209 (font_pixel_size): Adjusted for the format change of font-related
7210 objects.
7211 (prop_name_to_numeric, prop_numeric_to_name): Delete them.
7212 (font_style_to_value, font_style_symbolic): New function.
7213 (build_font_family_alist): Delete it.
7214 (font_registry_charsets): Use Fassoc_string instead of
7215 assq_no_quit.
7216 (font_prop_validate_symbol): Don't return null_string.
7217 (font_prop_validate_style): Adjusted for the change of
7218 style-related values in a font vector.
7219 (font_property_table): Delete entries for QClanguage and
7220 QCantialias, add entries for QCavgwidth.
7221 (get_font_prop_index): Delete the 2nd argument FROM.
7222 (font_prop_validate): Arguments changed.
7223 (font_put_extra): Adjusted for the change of font-related objects.
7224 (font_expand_wildcards, font_parse_xlfd, font_unparse_xlfd)
7225 (font_parse_fcname, font_unparse_fcname)
7226 (font_prepare_composition): Likewise.
7227 (font_parse_family_registry): Renamed from font_merge_old_spec.
7228 (otf_open): Delete the 1st arg entity.
7229 (font_otf_capability): Adjusted for the above change.
7230 (font_score): New arg alternate_families. Adjusted for the change
7231 of font-related objects.
7232 (font_sort_entites): New arg best_only.
7233 (font_symbolic_weight, font_symbolic_slant, font_symbolic_width):
7234 Delete them.
7235 (font_match_p): Check alternate families.
7236 (font_find_object): Delete it.
7237 (font_check_object): New function.
7238 (font_clear_cache): Adjusted for the change of font-related objects.
7239 (font_delete_unmatched): New arg.
7240 (font_list_entities): Call font_driver->list with a spec that
7241 doesn't specify style-related properties.
7242 (font_matching_entity): Arguments changed. Caller changed.
7243 (font_open_entity): Adjusted for the change of font-related objects.
7244 (font_close_object, font_has_char, font_encode_char)
7245 (font_get_name, font_get_spec): Likewise.
7246 (font_spec_from_name, font_clear_prop, font_update_lface):
7247 New functions.
7248 (font_find_for_lface, font_open_for_lface, font_load_for_lface)
7249 (font_prepare_for_face, font_done_for_face, font_open_by_name)
7250 (font_at): Adjusted for the change of font-related objects.
7251 (font_range): New function.
7252 (Ffontp, Ffont_spec, Ffont_get, Ffont_put, Flist_fonts)
7253 (Ffont_xlfd_name): Adjusted for the change of font-related objects.
7254 (Fcopy_font_spec, Fmerge_font_spec): New function.
7255 (Ffont_family_list): Renamed from list-families.
7256 (Finternal_set_font_style_table): Arguments changed.
7257 (Ffont_fill_gstring, Ffont_shape_text, Fopen_font)
7258 (Ffont_drive_otf, Fquery_font, Ffont_match_p): Adjusted for the
7259 change of font-related objects.
7260 (syms_of_font): Delete "ifdef USE_FONT_BACKEND". DEFSYM new symbols.
7261
7262 * fontset.h (struct font_info): Delete it. Most members go to
7263 struct font.
7264 (FONT_ENCODING_NOT_DECIDED): Moved to font.h.
7265 (enum FONT_SPEC_INDEX): Delete it.
7266 (font_info, list_fonts_func, load_font_func, query_font_func)
7267 (set_frame_fontset_func, find_ccl_program_func)
7268 (get_font_repertory_func, new_fontset_from_font_name): Delete
7269 externs.
7270 (fontset_from_font_name): Extern it.
7271 (FS_LOAD_FONT, FONT_INFO_ID, FONT_INFO_FROM_ID)
7272 (FONT_INFO_FROM_FACE): Deleted.
7273 (face_for_font): Adjust prototype.
7274
7275 * fontset.c: Throughout the file, delete all USE_FONT_BACKEND
7276 conditionals. Don't check enable_font_backend. Delete all codes
7277 used only when USE_FONT_BACKEND is not defined.
7278 (get_font_info_func, list_font_func, load_font_func)
7279 (query_font_func, set_frame_fontset_func, find_ccl_program_func)
7280 (get_font_repertory_func): Delete them.
7281 (FONTSET_SPEC, FONT_DEF_NEW, FONT_DEF_SPEC, FONT_DEF_ENCODING)
7282 (FONT_DEF_REPERTORY, RFONT_DEF_FACE, RFONT_DEF_SET_FACE)
7283 (RFONT_DEF_FONT_DEF, RFONT_DEF_SPEC, RFONT_DEF_REPERTORY)
7284 (RFONT_DEF_OBJECT, RFONT_DEF_SET_OBJECT, RFONT_DEF_SCORE)
7285 (RFONT_DEF_SET_SCORE, RFONT_DEF_NEW): New macros.
7286 (fontset_compare_rfontdef): New function.
7287 (reorder_font_vector): Remove the argument CHARSET-ID. Sort
7288 rfont-defs by qsort. Adjusted for the change of font-group vector.
7289 (load_font_get_repertory): Deleted.
7290 (fontset_find_font): Use new macros to ref/set elements of
7291 font-def and rfont-def.
7292 (fontset_font): Fix the timing of remembering that no font for C.
7293 (free_face_fontset): Do nothing if the face has no fontset.
7294 (face_suitable_for_char_p): Use new macros to ref/set elements of
7295 rfont-def.
7296 (face_for_char): Likewise. Call face_for_char with font_object.
7297 (fs_load_font): Delete. Delete #pragma surrounding it.
7298 (fs_query_fontset): Use strcasecmp instead of strcmp.
7299 (generate_ascii_font_name): Adjusted for the format change of
7300 font-spec.
7301 (Fset_fontset_font): Likewise. Use new macros to set elements of
7302 font-def.
7303 (Fnew_fontset): Use font_unparse_xlfd to generate
7304 FONTSET_ASCII (fontset).
7305 (new_fontset_from_font_name): Deleted.
7306 (fontset_from_font): Renamed from new_fontset_from_font. Check if
7307 a fontset is already created for the font. FIx updating of
7308 Vfontset_alias_alist.
7309 (fontset_ascii_font): Deleted.
7310 (Ffont_info): Adjusted for the format change of font-spec.
7311 (Finternal_char_font): Likewise.
7312 (Ffontset_info): Likewise.
7313 (syms_of_fontset): Don't check load_font_func.
7314
7315 * fns.c (internal_equal): Handle PREV_FONT.
7316
7317 * frame.h: Delete USE_FONT_BACKEND conditional.
7318
7319 * frame.c: Throughout the file, delete all USE_FONT_BACKEND
7320 conditionals. Don't check enable_font_backend. Delete all codes
7321 used only when USE_FONT_BACKEND is not defined.
7322 (x_set_font): Call x_new_font, not x_new_fontset2.
7323 (x_set_font_backend): Use FRAME_FONT macro to check if a font is
7324 already set for the frame.
7325
7326 * ftfont.c (ftfont_pattern_entity): Argument FRAME removed. Make
7327 a font-entity by font_make_entity. Use font_intern_prop instead
7328 of intern_downcase. Use FONT_SET_STYLE to set a style-related
7329 font property. If a font is scalable, set avgwidth property to 0.
7330 Set font-entity property by font_put_extra.
7331 (ftfont_list_generic_family): Argument SPEC and REGISTRY removed.
7332 (ffont_driver): Adjusted for the change of struct font_driver.
7333 (ftfont_spec_pattern): New function.
7334 (ftfont_list): Return a list, not vector.
7335 (ftfont_match): Use ftfont_spec_pattern to get a pattern.
7336 (ftfont_list_family): Don't downcase names.
7337 (ftfont_free_entity): Deleted.
7338 (ftfont_open): Return a font-object. Adjusted for the change of
7339 struct font. Get underline_thickness and underline_position from
7340 font property. Don't update dpyinfo->smallest_font_height and
7341 dpyinfo->smallest_char_width.
7342 (ftfont_close): Don't free `struct font'.
7343 (ftfont_has_char): Adjusted for the format change of font-entity.
7344 (ftfont_encode_char, ftfont_text_extents): Likewise.
7345
7346 * ftxfont.c (ftxfont_list): Return a list, not vector.
7347 (ftxfont_open): Return a font-object. Adjusted for the change of
7348 struct font. Get underline_thickness and underline_position from
7349 font property. Don't update dpyinfo->smallest_font_height and
7350 dpyinfo->smallest_char_width.
7351 (ftxfont_close): Don't decrease FRAME_X_DISPLAY_INFO (f)->n_fonts.
7352 (ftxfont_draw): Adjusted for the change of struct font.
7353
7354 * image.c (image_ascent): Don't include "charset.h". Include
7355 "character.h" and "font.h".
7356
7357 * lisp.h (enum pvec_type): New member PREV_FONT.
7358 (Fassoc_string): EXFUN it.
7359
7360 * print.c: Include font.h.
7361 (print_object): Handle font-related objects.
7362
7363 * xdisp.c: Throughout the file, delete all USE_FONT_BACKEND
7364 conditionals. Don't check enable_font_backend. Delete all codes
7365 used only when USE_FONT_BACKEND is not defined.
7366 (handle_auto_composed_prop): Do nothing if it->f is not on a
7367 window system. Check how many following characters can be
7368 displayed by the same font.
7369 (calc_pixel_width_or_height): Type of the 4th arg is changed to
7370 'struct font *'.
7371 (get_char_face_and_encoding): Assign the whole encoding task to
7372 the `encode-char' method of a font driver.
7373 (fill_composite_glyph_string): Adjusted for the change of `struct
7374 face' and `struct glyph_string'.
7375 (fill_glyph_string): Likewise.
7376 (get_per_char_metric): Arguments changed.
7377 (x_get_glyph_overhangs): Adjusted for the change of `struct face'
7378 and `struct glyph_string'.
7379 (produce_stretch_glyph, calc_line_height_property)
7380 (x_produce_glyphs): Likewise.
7381
7382 * xfaces.c: Throughout the file, delete all USE_FONT_BACKEND
7383 conditionals. Don't check enable_font_backend. Delete all codes
7384 used only when USE_FONT_BACKEND is not defined. Use
7385 FONT_XXX_NAME_NUMERIC instead of face_numeric_xxx.
7386 (QCfoundry, QCadstyle, QCregistry, QCspacing, QCsize, QCavgwidth)
7387 (Qp): Extern them.
7388 (clear_font_table, load_face_font, xlfd_lookup_field_contents):
7389 Deleted.
7390 (struct font_name): Deleted.
7391 (xlfd_numeric_value, xlfd_symbolic_value): Deleted.
7392 (compare_fonts_by_sort_order): New function.
7393 (xlfd_numeric_slant, xlfd_symbolic_slant, xlfd_numeric_weight)
7394 (xlfd_symbolic_weight, xlfd_numeric_swidth, xlfd_symbolic_swidth):
7395 Deleted.
7396 (Fx_family_fonts): Use font_list_entities, and sort fonts by
7397 compare_fonts_by_sort_order.
7398 (Fx_font_family_list): Call Ffont_family_list.
7399 (face_numeric_value, face_numeric_weight, face_numeric_slant)
7400 (face_numeric_swidth, face_symbolic_value, face_symbolic_weight)
7401 (face_symbolic_slant, face_symbolic_swidth)
7402 (split_font_name_into_vector, build_font_name_from_vector)
7403 (xlfd_fixed_p, xlfd_point_size, pixel_point_size)
7404 (font_rescale_ratio, split_font_name, build_font_name)
7405 (free_font_names, sort_fonts, x_face_list_fonts)
7406 (face_font_available_p, sorted_font_list, cmp_font_names)
7407 (font_list_1, concat_font_list, font_list, remove_duplicates):
7408 Deleted.
7409 (Fx_list_fonts): Use Ffont_list.
7410 (LFACE_AVGWIDTH): Deleted.
7411 (check_lface_attrs): Don't check LFACE_AVGWIDTH. Check LFACE_FONT
7412 by FONTP.
7413 (lface_fully_specified_p): Don't check LFACE_AVGWIDTH.
7414 (set_lface_from_font_name): Delete it.
7415 (set_lface_from_font): Renamed from
7416 set_lface_from_font_and_fontset. Caller changed. Don't set
7417 LFACE_AVGWIDTH. Use FONT_XXX_FOR_FACE to get a symbol suitable
7418 for face.
7419 (merge_face_vectors): Copy font-spec if necessary.
7420 Clear properties of the font-spec if necessary.
7421 (merge_face_ref): Clear properties of the font-spec if necessary.
7422 (Finternal_set_lisp_face_attribute): Likewise.
7423 (set_font_frame_param): Use font_load_for_lface to load a
7424 font-object, and call Fmodify_frame_parameters with it.
7425 (x_update_menu_appearance): Don't check LFACE_AVGWIDTH. Get XLFD
7426 font name by Ffont_xlfd_name.
7427 (Finternal_lisp_face_attribute_values): Don't check QCweight,
7428 QCslant, and QCwidth.
7429 (Fface_font): Get a font name from font->props[FONT_NAME_INDEX].
7430 (lface_same_font_attributes_p): Don't check LFACE_AVGWIDTH.
7431 Compare fonts by EQ.
7432 (lookup_non_ascii_face): Deleted.
7433 (face_for_font): The 2nd argument changed.
7434 (x_supports_face_attributes_p): Don't check LFACE_AVGWIDTH.
7435 Check atomic font properties by case insensitive.
7436 (realize_non_ascii_face): Set face->overstrike correctly.
7437 (realize_x_face): Likewise. Check if LFACE_FONT is a font_object.
7438 (dump_realized_face): Get font name from
7439 font->props[FONT_NAME_INDEX]. Don't print font_info_id.
7440
7441 * xfns.c: Throughout the file, delete all USE_FONT_BACKEND
7442 conditionals. Don't check enable_font_backend. Delete all codes
7443 used only when USE_FONT_BACKEND is not defined.
7444 (xic_create_xfontset): Original code deleted and renamed from
7445 xic_create_xfontset2. Use FRAME_FONT, not FRAME_FONT_OBJECT.
7446 (x_make_gc): Don't set GCFont in GCs.
7447 (Fx_create_frame) [USE_LUCID]: Set xlwmenu_default_font to a font
7448 opened by "fixed".
7449 (syms_of_xfns): Don't set get_font_info_func, load_font_func,
7450 find_ccl_program_func, query_font_func, set_frame_fontset_func,
7451 get_font_repertory_func.
7452
7453 * xfont.c: Include <stdlib.h> and "ccl.h".
7454 (struct xfont_info): New structure.
7455 (xfont_query_font): Deleted.
7456 (xfont_find_ccl_program): Renamed from x_find_ccl_program and
7457 moved from xterm.c.
7458 (xfont_driver): Adjusted for the change of struct font_driver.
7459 (compare_font_names): New function.
7460 (xfont_list_pattern): Sort font names case insensitively. Make
7461 font_entity by calling font_make_entity. Avoid auto-scaled fonts.
7462 (xfont_list): Return a list, not vector.
7463 (xfont_match): If the font doesn't have QCname property, generate
7464 a name from the other font properties.
7465 (xfont_open): Return a font-object. Adjusted for the change of
7466 struct font. Get underline_thickness and underline_position from
7467 font property. Don't update dpyinfo->smallest_font_height and
7468 dpyinfo->smallest_char_width.
7469 (xfont_close): Don't free struct font.
7470 (xfont_prepare_face): Adjusted for the change of struct font.
7471 (xfont_done_face): Deleted.
7472 (xfont_has_char): Adjusted for the change of struct font.
7473 (xfont_encode_char, xfont_draw): Likewise.
7474 (xfont_check): New function.
7475
7476 * xftfont.c (xftfont_list): Adjusted for the change of `list'
7477 callback function.
7478 (xftfont_match): Adjusted for the format change of font-entity.
7479 (xftfont_open): Adjusted for the format change of font-entity and
7480 font-object. Adjusted for the change of struct font. Return a
7481 font-object. Don't update dpyinfo->smallest_font_height and
7482 dpyinfo->smallest_char_width.
7483 (xftfont_close): Block input while calling XftFontClose.
7484 (xftfont_prepare_face): Don't block input while calling
7485 xftfont_get_colors. Adjusted for the change of struct font.
7486 (xftfont_shape): Return value of error case fixed.
7487
7488 * xrdb.c (x_load_resources): Don't setup a fontset resource.
7489
7490 * xterm.h: Throughout the file, delete all USE_FONT_BACKEND
7491 conditionals.
7492 (FONT_WIDTH): Return (f)->max_width.
7493 (struct x_display_info): Delete member `font'.
7494 (x_list_fonts, x_get_font_info, x_load_font, x_query_font)
7495 (x_find_ccl_program, x_get_font_repertory): Delete externs.
7496 (struct x_output): Change type of `font' to `struct font *'.
7497
7498 * xterm.c: Throughout the file, delete all USE_FONT_BACKEND
7499 conditionals. Don't check enable_font_backend. Delete all codes
7500 used only when USE_FONT_BACKEND is not defined. Don't include ccl.h.
7501 (x_per_char_metric, x_encode_char): Deleted.
7502 (x_set_cursor_gc, x_set_mouse_face_gc): Don't set GCFont.
7503 (x_compute_glyph_string_overhangs): Adjusted for the change of
7504 `struct face'.
7505 (x_draw_glyph_string_foreground)
7506 (x_draw_composite_glyph_string_foreground): Likewise.
7507 (x_draw_glyph_string): Likewise. Use font->underline_position and
7508 font->underline_thickness.
7509 (x_new_font): Renamed from x_new_fontset2.
7510 (x_new_fontset, x_get_font_info, x_list_fonts): Deleted.
7511 (x_check_font): Call `check' method of a font driver.
7512 (x_font_min_bounds, x_compute_min_glyph_bounds, x_load_font)
7513 (x_query_font, x_get_font_repertory): Deleted.
7514 (x_find_ccl_program): Renamed and moved to xfont.c.
7515 (x_redisplay_interface): Adjusted for the change of `struct
7516 redisplay_interface'.
7517
7518 * w32fns.c: Throughout the file, delete all USE_FONT_BACKEND
7519 conditionals. Don't check enable_font_backend. Delete all codes
7520 used only when USE_FONT_BACKEND is not defined. Surround non-used
7521 code by "#ifdef OLD_FONT" and "endif".
7522 (Fw32_select_font): Use FONT_COMPAT to get old font structure.
7523
7524 * w32font.h (struct w32font_info): New member.
7525 (FONT_COMPAT): New macro.
7526 (w32font_open_internal): Prototype adjusted.
7527
7528 * w32gui.h (XGCValues): Surround `XFontStruct *font' by "if
7529 OLD_FONT" and "endif".
7530
7531 * w32font.c: Throughout the file, delete all USE_FONT_BACKEND
7532 conditionals. Don't check enable_font_backend. Delete all codes
7533 used only when USE_FONT_BACKEND is not defined.
7534 (w32font_open): Return a font-object. Make a font-object by
7535 font_make_object. Adjusted for the change of struct w32font_info.
7536 (w32font_close): Don't free struct font. Adjusted for the change
7537 of struct w32font_info.
7538 (w32font_encode_char, w32font_text_extents, w32font_draw):
7539 Adjusted for the change of struct w32font_info.
7540 (w32font_draw): Likewise.
7541 (w32font_list_internal): Return a list, not vector.
7542 (w32font_open_internal): Change the 4th arg to font-object.
7543 Adjusted for the change of struct w32font_info and font-object format.
7544 (add_font_name_to_list): Don't downcase names.
7545 (w32_enumfont_pattern_entity): Make a font-entity by
7546 font_make_entity. Adjusted for the format change of font-entity.
7547 Use FONT_SET_STYLE to set a style-related font property. If a
7548 font is scalable, set avgwidth property to 0. Set font-entity
7549 property by font_put_extra.
7550 (font_matches_spec): Adjusted for the format change of font-entity.
7551 (w32_weight_table, w32_decode_weight): New variables.
7552 (w32_encode_weight): New function.
7553 (fill_in_logfont): Adjusted for the format change of font-spec.
7554 (w32font_full_name): Use FONT_WEIGHT_SYMBOLIC to get a symbol
7555 weight value.
7556 (w32font_driver): Adjusted for the change of struct font_driver.
7557
7558 * w32term.h: Throughout the file, delete all USE_FONT_BACKEND
7559 conditionals. Don't check enable_font_backend. Surround non-used
7560 code by "#ifdef OLD_FONT" and "endif".
7561 (FONT_WIDTH, FONT_HEIGHT, FONT_BASE, FONT_DESCENT)
7562 (FONT_AVG_WIDTH): Adjusted for the change of struct font.
7563
7564 * w32term.c: Throughout the file, delete all USE_FONT_BACKEND
7565 conditionals. Don't check enable_font_backend. Delete all codes
7566 used only when USE_FONT_BACKEND is not defined. Surround non-used
7567 code by "#ifdef OLD_FONT" and "endif".
7568
7569 * w32uniscribe.c: Delete USE_FONT_BACKEND conditional.
7570 (uniscribe_open): Return value changed to font-object.
7571 Adjusted for the format change of font-object.
7572 (uniscribe_otf_capability): Adjusted for the change of struct font.
7573 (add_opentype_font_name_to_list): Don't downcase names.
7574 (uniscribe_font_driver): Adjusted for the change of struct
7575 font_driver.
7576
75772008-05-13 Chong Yidong <cyd@stupidchicken.com>
7578
7579 * dispnew.c (update_frame_1): Check if tty output is still valid
7580 before flushing it.
7581
75822008-05-13 Jan Djärv <jan.h.d@swipnet.se>
7583
7584 * xterm.c (handle_one_xevent): Don't pass buttons higher than 3
7585 to Gtk+ menus.
7586
75872008-05-13 Stefan Monnier <monnier@iro.umontreal.ca>
7588
7589 * dired.c (file_name_completion): Tweak the code so as to always do it
7590 in a single pass. Tighten the scope of some variables.
7591
7592 * dired.c (Qdefault_directory): New var.
7593 (file_name_completion): Use it instead of Fexpand_file_name.
7594 (syms_of_dired): Initialize it.
7595
75962008-05-12 Stefan Monnier <monnier@iro.umontreal.ca>
7597
7598 * fileio.c (double_dollars): Remove dead code.
7599
76002008-05-10 Eli Zaretskii <eliz@gnu.org>
7601
7602 * dired.c (Ffile_attributes, Fdirectory_files_and_attributes):
7603 Mention w32-get-true-file-attributes in doc string.
7604
7605 * w32proc.c (syms_of_ntproc) <w32-get-true-file-attributes>: Doc fix.
7606
76072008-05-09 Glenn Morris <rgm@gnu.org>
7608
7609 * fileio.c (Fread_file_name): Remove reference to insdef, deleted
7610 2008-04-23.
7611
76122008-05-09 Eli Zaretskii <eliz@gnu.org>
7613
7614 Support for reporting owner and group of each file on MS-Windows:
7615 * dired.c (stat_uname, stat_gname): New functions, with special
7616 implementation for w32.
7617 (Ffile_attributes): Use them instead of getpwuid and getgrgid.
7618
7619 * w32.c: Rename the_passwd_* to dflt_passwd_*.
7620 (dflt_group_name): New static variable.
7621 (dflt_group): Rename from the_group.
7622 (init_user_info): Init dflt_group fields. Get user's group name
7623 from LookupAccountSid.
7624 (g_b_init_get_file_security, g_b_init_get_security_descriptor_owner)
7625 (g_b_init_get_security_descriptor_group, g_b_init_is_valid_sid):
7626 New initialization states.
7627 (globals_of_w32): Initialize them to zero. Initialize the default
7628 group name to "None".
7629 (GetFileSecurity_Name): New global var, the name of the function
7630 to call for GetFileSecurity.
7631 (GetFileSecurity_Proc, GetSecurityDescriptorOwner_Proc)
7632 (GetSecurityDescriptorGroup_Proc, IsValidSid_Proc): New typedefs.
7633 (get_file_security, get_security_descriptor_owner)
7634 (get_security_descriptor_group, is_valid_sid)
7635 (get_file_security_desc, get_rid, get_name_and_id)
7636 (get_file_owner_and_group): New functions.
7637 (stat): Use get_file_security_desc and get_file_owner_and_group to
7638 report the owner and primary group of each file. Don't ignore the
7639 high 32 bits of file's size, now that st_size is 64-bit wide.
7640 Fix test when to get true file attributes.
7641 (init_user_info): Use get_rid instead of equivalent inline code.
7642 (fstat): Don't ignore the high 32 bits of file's size.
7643
76442008-05-09 Chong Yidong <cyd@stupidchicken.com>
7645
7646 * image.c (png_load): Use correct bit-depth for setting background
7647 color.
7648
76492008-05-08 Eli Zaretskii <eliz@gnu.org>
7650
7651 * Makefile.in (lisp, shortlisp): Rename epa-file-hook.elc to
7652 epa-hook.elc.
7653
76542008-05-08 Juanma Barranquero <lekktu@gmail.com>
7655
7656 * font.c (Ffont_match_p): Don't use `iff' in docstring.
7657
76582008-05-07 Dan Nicolaescu <dann@ics.uci.edu>
7659
7660 * macfns.c (Fx_create_frame): Make a copy of frame parameters
7661 because the original parameters are in pure storage now.
7662 (mac_window): Remove unused params. Update callers.
7663
76642008-05-06 Stefan Monnier <monnier@iro.umontreal.ca>
7665
7666 * lread.c (substitute_object_recurse): Use lower-level primitives.
7667 Don't signal errors when traversing sub-char-tables.
7668 Don't loop over all the possible characters when traversing char-tables.
7669
7670 * print.c (print_preprocess): Add sub-char-tables to the print-table,
7671 just like we do in print.c.
7672
76732008-05-05 Stefan Monnier <monnier@iro.umontreal.ca>
7674
7675 * minibuf.c (Ftry_completion): Remove code left over from when we used
7676 scmp instead of Fcompare_strings.
7677
76782008-05-04 Juanma Barranquero <lekktu@gmail.com>
7679
7680 * w32fns.c (Fw32_battery_status): Fix computation of %t (h:min) format.
7681
76822008-05-04 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
7683
7684 * image.c [USE_MAC_IMAGE_IO] (image_load_image_io):
7685 Create bitmap context in native byte order.
7686
7687 * macterm.c (XDrawLine)
7688 (XCreatePixmapFromBitmapData) [USE_MAC_IMAGE_IO]: Create bitmap
7689 context in native byte order.
7690
76912008-05-04 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
7692
7693 * config.in: Regenerate.
7694
7695 * image.c (PIX_MASK_DRAW, PIX_MASK_RETAIN) [USE_MAC_IMAGE_IO]:
7696 New definitions for Image I/O support.
7697 (XGetImage, XPutPixel, XGetPixel, XDestroyImage)
7698 (mac_create_cg_image_from_image, x_create_x_image_and_pixmap)
7699 [USE_MAC_IMAGE_IO]: Add implementations for Image I/O support.
7700 (mac_data_provider_release_data, image_load_image_io)
7701 [USE_MAC_IMAGE_IO]: New functions.
7702 (CGImageCreateWithPNGDataProviderProcType) [MAC_OSX]: Remove typedef.
7703 (MyCGImageCreateWithPNGDataProvider) [MAC_OSX]: Remove variable.
7704 (init_image_func_pointer) [MAC_OSX]: Remove function.
7705 (image_load_quartz2d) [MAC_OSX]: Check availability of
7706 CGImageCreateWithPNGDataProvider at compile time.
7707 Use lowercase `false' for boolean constant.
7708 (png_load, jpeg_load, tiff_load, gif_load) [USE_MAC_IMAGE_IO]:
7709 Use image_load_image_io.
7710 (png_load) [!USE_MAC_IMAGE_IO && MAC_OSX]:
7711 Don't check MyCGImageCreateWithPNGDataProvider.
7712 (init_image) [MAC_OSX && TARGET_API_MAC_CARBON]:
7713 Don't call init_image_func_pointer.
7714
7715 * macgui.h (Pixmap) [USE_MAC_IMAGE_IO]: New definition for Image I/O.
7716
7717 * macterm.c (mac_cg_color_space_rgb) [USE_CG_DRAWING]:
7718 Make variable non-static.
7719 (XDrawLine, XCreatePixmap, XCreatePixmapFromBitmapData, XFreePixmap)
7720 [USE_MAC_IMAGE_IO]: Add implementations for Image I/O support.
7721
7722 * macterm.h (ARGB_TO_ULONG, ALPHA_FROM_ULONG): New macros.
7723 (RED_FROM_ULONG): Mask off higher bits.
7724 (mac_cg_color_space_rgb) [USE_MAC_IMAGE_IO]: New extern.
7725
7726 * s/darwin.h [HAVE_CARBON && HAVE_AVAILABILITYMACROS_H]:
7727 Include AvailabilityMacros.h.
7728 (USE_MAC_IMAGE_IO, LIBS_IMAGE) [HAVE_CARBON]: New defines.
7729 (LIBS_CARBON) [HAVE_CARBON]: Use LIBS_IMAGE.
7730
77312008-05-03 Stefan Monnier <monnier@iro.umontreal.ca>
7732
7733 * chartab.c (Fset_char_table_range): If range is t, really set all
7734 chars to that value.
7735
77362008-05-03 Eli Zaretskii <eliz@gnu.org>
7737
7738 * dired.c (Ffile_attributes): Don't allow the device number become
7739 negative.
7740
77412008-05-02 Daiki Ueno <ueno@unixuser.org>
7742
7743 * Makefile.in (lisp, shortlisp): Add epa-file-hook.elc.
7744
77452008-05-02 Juri Linkov <juri@jurta.org>
7746
7747 * minibuf.c (Fread_from_minibuffer, Fread_string, Fread_command)
7748 (Fread_variable, Fread_buffer, Fcompleting_read): Document the
7749 DEFAULT argument as a list of default values in docstrings.
7750
77512008-05-01 Chong Yidong <cyd@stupidchicken.com>
7752
7753 * puresize.h (BASE_PURESIZE): Increase to 1210000.
7754
77552008-05-01 Martin Rudalics <rudalics@gmx.at>
7756
7757 * dispnew.c (change_frame_size_1): Preserve small windows when
7758 shrinking frames by calling set_window_height|width with third
7759 arg 2.
7760
7761 * window.h (struct window): Replace field too_small_ok by field
7762 resize_proportionally.
7763
7764 * window.c (make_window): Initialize resize_proportionally.
7765 (enlarge_window): Temporarily set resize_proportionally to make
7766 sure that shrink_windows does scale the window proportionally.
7767 (shrink_windows): When window has resize_proportionally set try
7768 to shrink it proportionally by stealing from other windows.
7769 (struct saved_window, Fset_window_configuration)
7770 (compare_window_configurations): Handle resize_proportionally.
7771 (WINDOW_TOTAL_SIZE): New macro.
7772 (window_min_size, shrink_windows, size_window): Use it.
7773 (check_min_window_sizes): Remove. Invalid values of
7774 window-min-height|width are handled by window_min_size_2 now.
7775 (size_window, Fsplit_window, enlarge_window)
7776 (adjust_window_trailing_edge, grow_mini_window): Don't call
7777 check_min_window_sizes.
7778 (window_min_size_2, window_min_size_1, window_min_size):
7779 New argument safe_p for retrieving "safe" minimum sizes.
7780 (Fdisplay_buffer, Fsplit_window, enlarge_window)
7781 (adjust_window_trailing_edge, grow_mini_window):
7782 Adjust arguments of window_min_size... functions.
7783 (shrink_windows): Argument min_size removed. New argument
7784 safe_p allows shrinking windows to their safe minimum sizes.
7785 Calculate minimum size and decide whether a window shall be
7786 deleted for each window individually.
7787 (size_window): When nodelete_p equals 2, tell shrink_windows to
7788 delete windows only if their new minimum size is no more safe.
7789 (shrink_window_lowest_first): Call window_min_size_1 to make
7790 sure to preserve modeline of bottom-most window when resizing
7791 the minibuffer.
7792 (Fset_window_configuration, Fcurrent_window_configuration)
7793 (compare_window_configurations): Do not handle
7794 window-min-height|width any more.
7795 (syms_of_window): Clarify window-min-height|width doc-strings.
7796
77972008-04-30 Stefan Monnier <monnier@iro.umontreal.ca>
7798
7799 * dired.c (file_name_completion): Fix up the encoding/decoding issue
7800 some more. Copy some of the code from Ftry_completions.
7801 Remove special case code that dates back to initial revision when the
7802 slash was only added when necessary and that can't trigger nowadays.
7803
78042008-04-27 Kenichi Handa <handa@m17n.org>
7805
7806 * font.c (font_prop_validate): Signal `error' instead of `font'.
7807
78082008-04-29 Jason Rumney <jasonr@gnu.org>
7809
7810 * w32fns.c (Fw32_battery_status): New defun.
7811 (syms_of_w32fns): Defsubr it.
7812
78132008-04-28 Andreas Schwab <schwab@suse.de>
7814
7815 * dired.c (file_name_completion): Fix another mixing of encoded
7816 and decoded names.
7817
78182008-04-28 Juanma Barranquero <lekktu@gmail.com>
7819
7820 * w32fns.c (Fw32_define_rgb_color): Fix typo in docstring.
7821
78222008-04-27 Juanma Barranquero <lekktu@gmail.com>
7823
7824 * fringe.c (Fdefine_fringe_bitmap): Doc fix.
7825
78262008-04-27 Andreas Schwab <schwab@suse.de>
7827
7828 * dired.c (file_name_completion): Fix inappropriate mixing of
7829 encoded and decoded names.
7830
7831 * xterm.c (XTread_socket): Fix use of uninitialized variable.
7832
7833 * puresize.h (BASE_PURESIZE): Increase to 1200000.
7834
78352008-04-26 Eli Zaretskii <eliz@gnu.org>
7836
7837 * dired.c (Ffile_attributes) [WINDOWSNT]: Undo change from
7838 2008-03-31, it's not needed anymore with `struct stat' definition
7839 on nt/inc/sys/stat.h. Undo changes from 2007-01-12 and 2007-01-13
7840 for the same reasons.
7841
78422008-04-25 Dennis Gilmore <ausil@fedoraproject.org> (tiny change)
7843
7844 * m/sparc.h: Additional redefinitions for GNU/Linux.
7845
78462008-04-23 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
7847
7848 * macterm.c (Vmac_ts_active_input_buf) [USE_MAC_TSM]: New variable.
7849 (syms_of_macterm) [USE_MAC_TSM]: Defvar it.
7850 (Qmouse_drag_overlay) [MAC_OSX]: New variable.
7851 (syms_of_macterm) [MAC_OSX]: Intern and staticpro it.
7852 (mac_get_selected_range, mac_store_buffer_text_to_unicode_chars)
7853 (mac_ax_selected_text_range) [MAC_OSX]: New functions.
7854 (mac_ax_number_of_characters) [MAC_OS_X_VERSION_MAX_ALLOWED >= 1030]:
7855 Likewise.
7856
7857 * mactoolbox.c (Vmac_ts_active_input_buf) [USE_MAC_TSM]: Add extern.
7858 (fast_find_position, x_y_to_hpos_vpos, mac_ax_selected_text_range)
7859 (mac_ax_number_of_characters): Add externs.
7860 (mac_get_selected_range, mac_store_buffer_text_to_unicode_chars)
7861 [USE_MAC_TSM]: Likewise.
7862 (mac_handle_text_input_event) [MAC_OSX]:
7863 Handle kEventTextInputOffsetToPos for no active input area case.
7864 Handle kEventTextInputPosToOffset and kEventTextInputGetSelectedText.
7865 (mac_handle_document_access_event)
7866 [MAC_OS_X_VERSION_MAX_ALLOWED >= 1030]: New function.
7867 (install_application_handler) [MAC_OSX]: Register handlers for
7868 kEventTextInputPosToOffset and kEventTextInputGetSelectedText.
7869 (install_application_handler) [MAC_OS_X_VERSION_MAX_ALLOWED >= 1030]:
7870 Register mac_handle_document_access_event.
7871
7872 * xdisp.c (x_y_to_hpos_vpos, fast_find_position) [HAVE_CARBON]:
7873 Make functions non-static.
7874
78752008-04-23 Stefan Monnier <monnier@iro.umontreal.ca>
7876
7877 * fileio.c (Vread_file_name_function, Vread_file_name_predicate)
7878 (read_file_name_completion_ignore_case, insert_default_directory)
7879 (Qdefault_directory): Move to minibuffer.el.
7880 (Fread_file_name): Call the new `read-file-name' instead.
7881
78822008-04-23 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
7883
7884 * mac.c (create_apple_event) [TARGET_API_MAC_CARBON]:
7885 Make function non-static.
7886 (create_apple_event_from_event_ref) [TARGET_API_MAC_CARBON]:
7887 Remove function.
7888 (create_apple_event_from_drag_ref) [TARGET_API_MAC_CARBON]:
7889 Move to mactoolbox.c.
7890 (mac_event_parameters_to_lisp) [TARGET_API_MAC_CARBON]: New function.
7891
7892 * macgui.h (CGFloat) [!CGFLOAT_DEFINED]: New typedef.
7893 (mac_rect_make): New macro.
7894
7895 * macterm.c (mac_draw_image_string_atsui) [MAC_OSX]: Use CGFloat
7896 instead of float.
7897 (mac_draw_image_string_cg) [USE_CG_TEXT_DRAWING]: Likewise.
7898 (init_cg_color, mac_draw_line, mac_draw_cg_image, XSetForeground)
7899 (XSetBackground) [USE_CG_DRAWING]: Likewise.
7900 (mac_draw_image_string_atsui) [MAC_OSX]: Use mac_rect_make instead of
7901 CGRectMake.
7902 (mac_draw_image_string_cg) [USE_CG_TEXT_DRAWING]: Likewise.
7903 (mac_erase_rectangle, mac_draw_cg_image, mac_fill_rectangle)
7904 (mac_set_clip_rectangles) [USE_CG_DRAWING]: Likewise.
7905 (XCreatePixmap, XCreatePixmapFromBitmapData): Use Window
7906 instead of WindowRef in argument type.
7907 (XCreatePixmap) [!MAC_OS8]: Don't call SetPortWindowPort.
7908 (mac_invert_rectangle): Use CGContextSetBlendMode if available.
7909 (mac_set_clip_rectangles, mac_reset_clip_rectangles): Take argument F
7910 instead of DISPLAY. All uses changed.
7911 (mac_handle_size_change): Don't call SET_FRAME_GARBAGED.
7912 (x_calc_absolute_position): Simplify so as not to use
7913 FRAME_PIXEL_WIDTH/FRAME_PIXEL_HEIGHT.
7914
7915 * macterm.h (XCreatePixmap, XCreatePixmapFromBitmapData): Use Window
7916 instead of WindowRef in argument type.
7917 (create_apple_event_from_event_ref, create_apple_event_from_drag_ref)
7918 [TARGET_API_MAC_CARBON]: Remove externs.
7919 (create_apple_event, mac_event_parameters_to_lisp)
7920 [TARGET_API_MAC_CARBON]: Add externs.
7921
7922 * mactoolbox.c (Vmac_ts_script_language_on_focus)
7923 (saved_ts_script_language_on_focus) [USE_MAC_TSM]: Remove externs.
7924 (XTread_socket) [USE_MAC_TOOLBAR]: Select window if its structure part
7925 is clicked.
7926 (x_activate_menubar): Remove extern for saved_menu_event_location.
7927 (create_apple_event_from_drag_ref) [TARGET_API_MAC_CARBON]:
7928 Move from mac.c.
7929
79302008-04-23 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
7931
7932 * alloc.c [!SYSTEM_MALLOC && !SYNC_INPUT] (uninterrupt_malloc)
7933 [HAVE_GTK_AND_PTHREAD && !DOUG_LEA_MALLOC]: Don't use recursive mutex.
7934
79352008-04-23 Jason Rumney <jasonr@gnu.org>
7936
7937 * w32.c (stat): When Vw32_get_true_file_attributes is Qlocal, get
7938 attributes only for local files.
7939
7940 * w32proc.c (syms_of_ntproc): Change Vw32_get_true_file attributes
7941 default to Qlocal.
7942
79432008-04-22 Juri Linkov <juri@jurta.org>
7944
7945 * buffer.c (Fswitch_to_buffer): Change interactive spec to call
7946 read-buffer-to-switch instead of using the letter "B".
7947
79482008-04-21 Stefan Monnier <monnier@iro.umontreal.ca>
7949
7950 * fileio.c (Qdefault_directory): New variable.
7951 (Fread_file_name): Use it to pass `dir' to the completion functions.
7952
79532008-04-20 Chong Yidong <cyd@stupidchicken.com>
7954
7955 * xdisp.c (pos_visible_p): Check if iterator stops on a display string.
7956
79572008-04-19 Stefan Monnier <monnier@iro.umontreal.ca>
7958
7959 * keyboard.c (Vpre_help_message): Remove.
7960 (show_help_echo): Remove default C code.
7961
7962 * dired.c (directory_files_internal, file_name_completion):
7963 Only call ENCODE_FILE if the string is indeed decoded.
7964
79652008-04-18 Stefan Monnier <monnier@iro.umontreal.ca>
7966
7967 * Makefile.in (TOOLKIT_DEFINES): Remove.
7968 (LIBW): Use a bit less #if, remove left over OPEN_LOOK stuff.
7969
79702008-04-18 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
7971
7972 * Makefile.in (MAC_OBJ): Add mactoolbox.o.
7973 (mactoolbox.o): New target.
7974
7975 * mac.c [MAC_OSX] (select_and_poll_event, sys_select):
7976 Use mac_run_loop_run_once instead of CFRunLoopRunInMode.
7977
7978 * macfns.c (x_set_background_color, mac_window, x_create_tip_frame):
7979 Use mac_set_frame_window_background instead of XSetWindowBackground.
7980 (x_set_tool_bar_lines) [USE_MAC_TOOLBAR]:
7981 Use mac_is_window_toolbar_visible instead of IsWindowToolbarVisible.
7982 (x_set_name_internal) [TARGET_API_MAC_CARBON]: Use mac_set_window_title
7983 instead of SetWindowTitleWithCFString.
7984 (mac_update_proxy_icon) [TARGET_API_MAC_CARBON]: Remove BLOCK_INPUT.
7985 Move function to mactoolbox.c.
7986 (mac_update_title_bar) [TARGET_API_MAC_CARBON]:
7987 Use mac_set_window_modified instead of SetWindowModified.
7988 Add BLOCK_INPUT around mac_set_window_modified/mac_update_proxy_icon.
7989 (mac_window, x_create_tip_frame): Use mac_create_frame_window.
7990 (Fx_focus_frame): Use mac_front_non_floating_window instead of
7991 FrontNonFloatingWindow. Use mac_activate_window instead of
7992 ActivateWindow. Use mac_active_non_floating_window instead of
7993 ActiveNonFloatingWindow.
7994 (show_hourglass, hide_hourglass) [TARGET_API_MAC_CARBON]:
7995 Use mac_show_hourglass and mac_hide_hourglass.
7996 (compute_tip_xy) [TARGET_API_MAC_CARBON]: Use mac_get_global_mouse
7997 instead of GetGlobalMouse.
7998 (Fx_show_tip): Use mac_move_window/mac_size_window/mac_show_window
7999 instead of MoveWindow/SizeWindow/ShowWindow, respectively.
8000 Use mac_bring_window_to_front instead of BringToFront.
8001 (Qfile_name_history) [TARGET_API_MAC_CARBON]: Move extern to
8002 mactoolbox.c.
8003 (Fx_file_dialog) [TARGET_API_MAC_CARBON]: Move function body to
8004 mac_file_dialog in mactoolbox.c. Use mac_file_dialog.
8005 (mac_nav_event_callback) [TARGET_API_MAC_CARBON]: Move function to
8006 mactoolbox.c.
8007
8008 * macgui.h [!HAVE_CARBON]: Include Quickdraw.h instead of QuickDraw.h.
8009 (XtPointer): Move typedef from macmenu.c.
8010 (enum button_type): Move enum from macmenu.c.
8011 (widget_value): Move typedef from macmenu.c.
8012 (M_APPLE, I_ABOUT, EXTRA_STACK_ALLOC, ARGV_STRING_LIST_ID)
8013 (DIALOG_LEFT_MARGIN, DIALOG_TOP_MARGIN, DIALOG_RIGHT_MARGIN)
8014 (DIALOG_BOTTOM_MARGIN, DIALOG_MIN_INNER_WIDTH, DIALOG_MAX_INNER_WIDTH)
8015 (DIALOG_BUTTON_BUTTON_HORIZONTAL_SPACE)
8016 (DIALOG_BUTTON_BUTTON_VERTICAL_SPACE, DIALOG_BUTTON_MIN_WIDTH)
8017 (DIALOG_TEXT_MIN_HEIGHT, DIALOG_TEXT_BUTTONS_VERTICAL_SPACE)
8018 (DIALOG_ICON_WIDTH, DIALOG_ICON_HEIGHT, DIALOG_ICON_LEFT_MARGIN)
8019 (DIALOG_ICON_TOP_MARGIN): Move defines from macmenu.c.
8020 (Selection): Move typedef from macselect.c.
8021 (RAM_TOO_LARGE_ALERT_ID, ABOUT_ALERT_ID) [MAC_OS8]: Move defines from
8022 macterm.c.
8023 (mac_set_window_title, mac_set_window_modified, mac_is_window_visible)
8024 (mac_is_window_collapsed, mac_bring_window_to_front)
8025 (mac_send_window_behind, mac_hide_window, mac_show_window)
8026 (mac_collapse_window, mac_front_non_floating_window)
8027 (mac_active_non_floating_window, mac_activate_window)
8028 (mac_move_window_structure, mac_move_window, mac_size_window)
8029 (mac_get_global_mouse, mac_is_window_toolbar_visible): New defines.
8030
8031 * macmenu.c [!TARGET_API_MAC_CARBON]: Move includes to mactoolbox.c.
8032 (enum mac_menu_kind): Move enum to mactoolbox.c.
8033 (min_menu_id): Move variable to mactoolbox.c.
8034 (quit_dialog_event_loop) [TARGET_API_MAC_CARBON]: Likewise.
8035 (DIALOG_WINDOW_RESOURCE): Move define to mactoolbox.c.
8036 (DIALOG_BUTTON_COMMAND_ID_OFFSET, DIALOG_BUTTON_COMMAND_ID_P)
8037 (DIALOG_BUTTON_COMMAND_ID_VALUE, DIALOG_BUTTON_MAKE_COMMAND_ID)
8038 [TARGET_API_MAC_CARBON]: Likewise.
8039 (XtPointer): Move typedef to macgui.h.
8040 (enum button_type): Move enum to macgui.h.
8041 (widget_value): Move typedef to macgui.h.
8042 (DIALOG_LEFT_MARGIN, DIALOG_TOP_MARGIN, DIALOG_RIGHT_MARGIN)
8043 (DIALOG_BOTTOM_MARGIN, DIALOG_MIN_INNER_WIDTH, DIALOG_MAX_INNER_WIDTH)
8044 (DIALOG_BUTTON_BUTTON_HORIZONTAL_SPACE)
8045 (DIALOG_BUTTON_BUTTON_VERTICAL_SPACE, DIALOG_BUTTON_MIN_WIDTH)
8046 (DIALOG_TEXT_MIN_HEIGHT, DIALOG_TEXT_BUTTONS_VERTICAL_SPACE)
8047 (DIALOG_ICON_WIDTH, DIALOG_ICON_HEIGHT, DIALOG_ICON_LEFT_MARGIN)
8048 (DIALOG_ICON_TOP_MARGIN): Move defines to macgui.h.
8049 (popup_activated_flag): Make variable non-static.
8050 (x_activate_menubar, install_menu_quit_handler, pop_down_menu)
8051 (add_menu_item, fill_menu, dispose_menus):
8052 Move functions to mactoolbox.c.
8053 (restore_show_help_function, menu_target_item_handler)
8054 (install_menu_target_item_handler, mac_handle_dialog_event)
8055 (install_dialog_event_handler, pop_down_dialog, create_and_show_dialog)
8056 [TARGET_API_MAC_CARBON]: Likewise.
8057 (menu_quit_handler) [MAC_OS_X_VERSION_MAX_ALLOWED >= 1030]: Likewise.
8058 (mac_dialog) [!TARGET_API_MAC_CARBON]: Likewise.
8059 (find_and_call_menu_selection, name_is_separator): Make function
8060 non-static.
8061 (Vshow_help_function, timer_check) [TARGET_API_MAC_CARBON]: Move extern
8062 to mactoolbox.c.
8063 (set_frame_menubar): Don't call install_menu_quit_handler.
8064 (menu_item_selection): New variable.
8065 (mac_menu_show): Use create_and_show_popup_menu.
8066 (create_and_show_dialog) [TARGET_API_MAC_CARBON]: Don't return
8067 selection but set variable menu_item_selection. All uses changed.
8068 (mac_fill_menubar): Rename from fill_menubar. All uses changed.
8069 Call install_menu_quit_handler. Move to mactoolbox.c.
8070
8071 * macselect.c [!TARGET_API_MAC_CARBON]: Don't include Scrap.h.
8072 (Selection): Move typedef to macgui.h.
8073 (Vselection_converter_alist, Qmac_scrap_name, Qmac_ostype)
8074 (Vmac_apple_event_map, Qmac_apple_event_class, Qmac_apple_event_id):
8075 Make variables non-static.
8076 (Vmac_dnd_known_types) [TARGET_API_MAC_CARBON]: Likewise.
8077 (mac_handle_apple_event, cleanup_all_suspended_apple_events):
8078 Make functions non-static.
8079 (Vmac_service_selection) [MAC_OSX]: Likewise.
8080 (mac_get_selection_from_symbol, get_flavor_type_from_symbol)
8081 (mac_valid_selection_target_p, mac_clear_selection)
8082 (mac_get_selection_ownership_info, mac_valid_selection_value_p)
8083 (mac_put_selection_value, mac_selection_has_target_p)
8084 (mac_get_selection_value, mac_get_selection_target_list)
8085 (init_apple_event_handler, install_drag_handler, remove_drag_handler):
8086 Move functions to mactoolbox.c.
8087 (mac_do_track_drag, mac_do_receive_drag) [TARGET_API_MAC_CARBON]:
8088 Likewise.
8089 (copy_scrap_flavor_data, mac_handle_service_event)
8090 (install_service_handler) [MAC_OSX]: Likewise.
8091 (syms_of_macselect) <Vmac_dnd_known_types>:
8092 Use mac_dnd_default_known_types.
8093
8094 * macterm.h (FRAME_OUTER_TO_INNER_DIFF_X, FRAME_OUTER_TO_INNER_DIFF_Y):
8095 Move to mactoolbox.c.
8096 (HOURGLASS_WIDTH, HOURGLASS_HEIGHT): Change to 15.
8097 (Fx_selection_owner_p): Add EXFUN.
8098 (install_window_handler, remove_window_handler, XSetWindowBackground):
8099 Remove externs.
8100 (do_apple_menu) [!TARGET_API_MAC_CARBON]: Likewise.
8101 (mac_prepare_for_quickdraw) [USE_CG_DRAWING]: Likewise.
8102 (x_raise_frame, x_lower_frame, mac_alert_sound_play)
8103 (install_application_handler, mac_get_frame_bounds, mac_get_frame_mouse)
8104 (mac_convert_frame_point_to_global, mac_set_frame_window_background)
8105 (mac_update_begin mac_update_end, mac_frame_up_to_date, x_flush)
8106 (mac_create_frame_window, mac_dispose_frame_window, mac_begin_clip)
8107 (mac_end_clip, mac_create_scroll_bar, mac_dispose_scroll_bar)
8108 (mac_set_scroll_bar_bounds, mac_redraw_scroll_bar, mac_fill_menubar)
8109 (create_and_show_popup_menu, mac_get_selection_from_symbol)
8110 (mac_valid_selection_target_p, mac_clear_selection)
8111 (mac_get_selection_ownership_info, mac_valid_selection_value_p)
8112 (mac_put_selection_value, mac_selection_has_target_p)
8113 (mac_get_selection_value, mac_get_selection_target_list): Add externs.
8114 (mac_update_proxy_icon, mac_show_hourglass, mac_hide_hourglass)
8115 (mac_reposition_hourglass, mac_file_dialog, create_and_show_dialog)
8116 (mac_dnd_default_known_types) [TARGET_API_MAC_CARBON]: Likewise.
8117 (mac_run_loop_run_once) [MAC_OSX]: Likewise.
8118 (mac_dialog) [!TARGET_API_MAC_CARBON]: Likewise.
8119 (mac_begin_cg_clip, mac_end_cg_clip) [USE_CG_DRAWING]: Likewise.
8120 (x_set_toolkit_scroll_bar_thumb) [!USE_TOOLKIT_SCROLL_BARS]: Likewise.
8121 (x_scroll_bar_set_handle) [!USE_TOOLKIT_SCROLL_BARS]: Likewise.
8122
8123 * mactoolbox.c: New file.
8124
81252008-04-18 Jason Rumney <jasonr@gnu.org>
8126
8127 * dired.c (Ffile_attributes) [WINDOWSNT]: Cast uid and gid to unsigned.
8128
81292008-04-18 Stefan Monnier <monnier@iro.umontreal.ca>
8130
8131 * character.c (Fmultibyte_char_to_unibyte):
8132 Return latin1 chars unchanged.
8133
8134 * fileio.c (Fexpand_file_name): Refine last fix so `nm' is only
8135 relocated if it points to `name'.
8136
81372008-04-17 Kenichi Handa <handa@m17n.org>
8138
8139 * data.c (Faset): Allow setting a multibyte character in an
8140 ASCII-only unibyte string.
8141
8142 * lisp.h (STRING_SET_MULTIBYTE): New macro.
8143
81442008-04-16 Stefan Monnier <monnier@iro.umontreal.ca>
8145
8146 * Makefile.in: Don't use HAVE_GTK and don't -DUSE_GTK since it's now
8147 done in config.h.
8148
81492008-04-16 Juanma Barranquero <lekktu@gmail.com>
8150
8151 * character.c (Fchar_bytes, Fchar_width, Fstring_width)
8152 (Fchar_direction): Add usage in the docstring.
8153
81542008-04-15 Chong Yidong <cyd@stupidchicken.com>
8155
8156 * keyboard.c (read_key_sequence): Remove always-true checks.
8157
81582008-04-14 Jason Rumney <jasonr@gnu.org>
8159
8160 * w32font.c (w32font_open_internal): Set max_bounds.descent in
8161 compatibility struct, for better underline positioning.
8162
81632008-04-13 David Hansen <david.hansen@gmx.net>
8164
8165 * dbusbind.c (dbus-get-unique-name): Remove extra copying of name
8166 string.
8167
81682008-04-12 Dan Nicolaescu <dann@ics.uci.edu>
8169
8170 * m/hp800.h (XUINT, XSET): Remove.
8171
81722008-04-12 Juanma Barranquero <lekktu@gmail.com>
8173
8174 * fileio.c (Fexpand_file_name): Add declaration for `p' missing in
8175 previous change.
8176
81772008-04-12 Stefan Monnier <monnier@iro.umontreal.ca>
8178
8179 * fileio.c (Fexpand_file_name): Tighten the scope of `p' and `o' vars.
8180 Relocate `nm' after calling DECODE_FILE, in case the GC was run.
8181
81822008-04-11 Stefan Monnier <monnier@iro.umontreal.ca>
8183
8184 * keymap.h (map_keymap_canonical): Declare.
8185 * xmenu.c (single_keymap_panes): Use it.
8186
81872008-04-11 Glenn Morris <rgm@gnu.org>
8188
8189 * eval.c (Fdefvaralias): If the alias is bound and the target is not,
8190 set the target's value to that of the alias.
8191
81922008-04-11 Stefan Monnier <monnier@iro.umontreal.ca>
8193
8194 * term.c (set_tty_color_mode): Left over typo.
8195
81962008-04-10 Michael Albinus <michael.albinus@gmx.de>
8197
8198 * fileio.c (Fmake_symbolic_link): Surround code by #ifdef S_IFLNK
8199 only after check for file name handler functions. Signal, when
8200 native functionality is not supported.
8201 (syms_of_fileio): Declare it unconditionally.
8202
82032008-04-10 Jason Rumney <jasonr@gnu.org>
8204
8205 * w32menu.c (is_simple_dialog, simple_dialog_show): New functions.
8206 (Fx_popup_dialog): Handle simple yes/no questions as dialogs.
8207
8208 * w32.c (logon_network_drive): Also logon to remote drives that
8209 are mapped to drive letters.
8210
82112008-04-10 Glenn Morris <rgm@gnu.org>
8212
8213 * xdisp.c (truncate-partial-width-windows): Doc fix.
8214
82152008-04-10 Stefan Monnier <monnier@iro.umontreal.ca>
8216
8217 * fileio.c (read_file_name_cleanup, Fread_file_name_internal):
8218 Move functions to minibuffer.el.
8219 (syms_of_fileio): Don't declare them.
8220
82212008-04-09 Stefan Monnier <monnier@iro.umontreal.ca>
8222
8223 * minibuf.c (Vcompletion_auto_help): Move to minibuffer.el.
8224 (syms_of_minibuf): Remove its initialization.
8225
8226 * minibuf.c (temp_echo_area_glyphs): Remove unused function.
8227
82282008-04-09 Juanma Barranquero <lekktu@gmail.com>
8229
8230 * editfns.c (Ffield_string_no_properties): Fix typo in docstring.
8231
82322008-04-09 Jason Rumney <jasonr@gnu.org>
8233
8234 * makefile.w32-in (distclean): Delete makefile too.
8235 (maintainer-clean): New target.
8236
8237 * xdisp.c (redisplay_internal) [!WINDOWSNT]: Conditionalize last change.
8238
8239 * w32term.c (w32_compute_glyph_string_overhangs): Compute overhangs
8240 for new font backend and composite cases.
8241
82422008-04-09 Jan Djärv <jan.h.d@swipnet.se>
8243
8244 * atimer.c (alarm_signal_handler): Call run_timers if not SYNC_INPUT.
8245 Most of the code moved to run_timers.
8246 (do_pending_atimers): Call run_timers.
8247 (run_timers): New function.
8248
8249 * sysdep.c (emacs_write): If SYNC_INPUT and pending_atimers,
8250 run atimers.
8251
8252 * process.c (wait_reading_process_output): The same as above.
8253
82542008-04-09 Stefan Monnier <monnier@iro.umontreal.ca>
8255
8256 * minibuf.c (last_exact_completion): Remove variable.
8257 (Fdelete_minibuffer_contents, do_completion, Fminibuffer_complete)
8258 (complete_and_exit_1, complete_and_exit_2)
8259 (Fminibuffer_complete_and_exit, Fminibuffer_complete_word)
8260 (Fdisplay_completion_list, display_completion_list_1)
8261 (Fminibuffer_completion_help, Fself_insert_and_exit)
8262 (Fexit_minibuffer, Fminibuffer_message): Move functions to
8263 minibuffer.el.
8264 (syms_of_minibuf): Remove corresponding initializations.
8265
8266 * keyboard.c (Qdeactivate_mark): New var.
8267 (command_loop_1): Use it to call `deactivate-mark'.
8268 (syms_of_keyboard): Initialize it.
8269
8270 * xdisp.c (redisplay_internal): Reset tty's color_mode when switching
8271 to another frame.
8272 * frame.c (do_switch_frame): Refine the top_frame/async_visible code.
8273 Don't call set_tty_color_mode.
8274 (store_frame_param): Reset previous_frame rather than call
8275 set_tty_color_mode.
8276 * term.c (set_tty_color_mode): Rewrite.
8277 * dispextern.h (set_tty_color_mode): New type.
8278 * termchar.h (struct tty_display_info): Add `previous_color_mode'.
8279
82802008-04-08 Stefan Monnier <monnier@iro.umontreal.ca>
8281
8282 * keymap.c (access_keymap): Remove the value 2 for t_ok which was used
8283 for generic chars, which do not exist any more in emacs-unicode.
8284
82852008-04-08 Michael Albinus <michael.albinus@gmx.de>
8286
8287 * coding.c (detect_coding_emacs_mule)
8288 (Ffind_operation_coding_system): Fix typo.
8289
82902008-04-08 Jason Rumney <jasonr@gnu.org>
8291
8292 * w32uniscribe.c (SNAME): Extract only symbol name.
8293
8294 * w32font.h (struct w32_metric_cache): New struct.
8295 (w32font_info): Use it.
8296 (W32METRIC_NO_ATTEMPT, W32METRIC_SUCCESS, W32METRIC_FAIL)
8297 (CACHE_BLOCKSIZE): New constants.
8298
8299 * w32font.c (Qja, Qko, Qzh): New symbols.
8300 (syms_of_w32font): Initialise them.
8301 (font_matches_spec): Use them to filter by language.
8302 (recompute_cached_metrics): Remove function.
8303 (compute_metrics, clear_cached_metrics): New functions.
8304 (w32font_encode_char): Use them to manage metric cache.
8305 (w32font_text_extents): Cache metrics for all glyphs on demand.
8306 Delay converting glyph indices to WORD until needed.
8307 (w32font_open_internal): Initialize metric cache to empty.
8308 (registry_to_w32_charset): Charset should always be a symbol.
8309 (fill_in_logfont, list_all_matching_fonts): Family should
8310 always be a symbol.
8311
83122008-04-06 Jason Rumney <jasonr@gnu.org>
8313
8314 * w32uniscribe.c (uniscribe_shape): Increase items buffer size.
8315 Give up if glyph indices not supported. Use uniscribe obtained
8316 ABC widths for individual metrics. Map glyph clusters back to
8317 characters using fClusterStart flag. Return number of glyphs
8318 produced, not chars processed.
8319 (uniscribe_shape): Map char at FROM to current glyph.
8320
83212008-04-05 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
8322
8323 * macmenu.c (fill_menu) [TARGET_API_MAC_CARBON]:
8324 Use SetMenuItemHierarchicalMenu.
8325
83262008-04-05 Jason Rumney <jasonr@gnu.org>
8327
8328 * image.c (pbm_load): Allow color values up to 65535.
8329 Throw an error if max_color_idx is outside the supported range.
8330 Report an error when image size is invalid.
8331 Read two bytes at a time when raw images have max_color_idx above 255.
8332
83332008-04-05 Eli Zaretskii <eliz@gnu.org>
8334
8335 * w32.c (readdir): If FindFirstFile/FindNextFile return in
8336 cFileName a file name that includes `?' characters, use the 8+3
8337 alias in cAlternateFileName instead.
8338
83392008-04-05 Kenichi Handa <handa@ni.aist.go.jp>
8340
8341 * ccl.c (ccl_driver): If ccl->quit_silently is nonzero, don't
8342 append "CCL: Quitted" when the CCL program is quitted.
8343 (setup_ccl_program): Initialize ccl->quit_silently to zero.
8344
8345 * ccl.h (struct ccl_program): New member quit_silently.
8346
83472008-04-05 Chong Yidong <cyd@stupidchicken.com>
8348
8349 * search.c (compile_pattern_1): Treat non-nil and non-string of
8350 search-spaces-regexp as nil.
8351
8352 * minibuf.c (Fassoc_string): Tweak docstring.
8353
83542008-04-05 Eli Zaretskii <eliz@gnu.org>
8355
8356 * dired.c (Ffile_attributes): Support inode numbers wider than 32
8357 bits. Remove ugly WINDOWSNT-specific kludge introduced on
8358 2008-03-14 to force inode be positive.
8359
8360 * w32.c (sys_chown, stat, fstat): Use S_* constants instead of
8361 _S_* ones, since we now use our own sys/stat.h.
8362 (stat, fstat): Don't mangle the inode number.
8363 (init_user_info): Don't restrict UID and GID to 0-60000 range.
8364
83652008-04-04 Stefan Monnier <monnier@iro.umontreal.ca>
8366
8367 * frame.h (struct frame): Give one more bit to `visible' since we use
8368 values larger than 1 to indicate obscured frames on ttys.
8369
8370 * keymap.c (Qkeymap_canonicalize): New var.
8371 (Fmap_keymap_internal): New fun.
8372 (describe_map): Use keymap-canonicalize.
8373
8374 * undo.c (last_boundary_buffer, last_boundary_position): New vars.
8375 (Fundo_boundary): Set them.
8376 (syms_of_undo): Initialize them.
8377 (record_point): Use them instead of last_point_position*.
8378 (last_undo_buffer): Change type.
8379
83802008-04-04 Jason Rumney <jasonr@gnu.org>
8381
8382 * w32font.c (w32font_text_extents): Use font's ascent and descent.
8383 (recompute_cached_metrics): Don't set ascent and descent per char.
8384
8385 * w32uniscribe.c (uniscribe_check_otf): Fix last change.
8386 (uniscribe_check_otf): Add GC protection before consing.
8387 Rearrange loop for counting features.
8388
83892008-04-03 Stefan Monnier <monnier@iro.umontreal.ca>
8390
8391 * insdel.c (insert_from_buffer_1): Don't compare bytes in destination
8392 buffer with byte-size of source buffer.
8393
83942008-04-03 Chong Yidong <cyd@stupidchicken.com>
8395
8396 * callint.c (Fcall_interactively): Handle temporary region even
8397 when shift-select-mode is off.
8398
83992008-04-03 Jason Rumney <jasonr@gnu.org>
8400
8401 * w32uniscribe.c (uniscribe_check_otf): Sanity check otf_spec.
8402
84032008-04-03 Kenichi Handa <handa@m17n.org>
8404
8405 * coding.c (CATEGORY_MASK_ANY): Add CATEGORY_MASK_UTF_16_AUTO.
8406 (CATEGORY_MASK_UTF_16): Likewise.
8407 (detect_coding_utf_16): Add heuristics to reject utf-16 for a
8408 binary file.
8409 (detect_coding): Add null-byte detection for a binary file.
8410 (detect_coding_system): Likewise.
8411
84122008-04-03 Jason Rumney <jasonr@gnu.org>
8413
8414 * w32uniscribe.c: New file.
8415
8416 * font.h (uniscribe_font_driver) [WINDOWSNT]: Declare for w32fns.c.
8417
8418 * w32font.h (uniscribe_check_otf): Declare for w32font.c.
8419
8420 * w32font.c (Qbalinese, Qbuginese, Qbuhid, Qcuneiform, Qcypriot)
8421 (Qdeseret, Qglagolitic, Qgothic, Qhanunoo, Qkharoshthi)
8422 (Qlimbu, Qlinear_b, Qold_italic, Qold_persian, Qosmanya)
8423 (Qphags_pa, Qphoenician, Qshavian, Qsyloti_nagri)
8424 (Qtagalog, Qtagbanwa, Qtai_le, Qtifinagh, Qugaritic)
8425 (Qphonetic): New symbols.
8426 (syms_of_w32font): Initialize them.
8427 (font_supported_scripts): Use them.
8428 (w32font_list_family): List all charsets.
8429 (w32font_text_extents, recompute_cached_metrics): Fix metric
8430 calculations.
8431 (w32_enumfont_pattern_entity): Make full_type a DWORD.
8432 Give opentype fonts their own format.
8433 (font_matches_spec): New arguments backend and logfont.
8434 Handle :otf spec for uniscribe backend.
8435 (add_font_entity_to_list): Match truetype fonts in uniscribe backend.
8436 (fill_in_logfont): Use DEFAULT_CHARSET when charset not supplied.
8437
8438 * w32fns.c (Fx_create_frame): Conditionally register uniscribe
8439 font backend.
8440 (globals_of_w32fns): Initialize uniscribe font backend.
8441
8442 * makefile.w32-in (CONFIG_H): New variable. Use it to clean up
8443 dependencies.
8444 (w32uniscribe.$(O)): New file to build.
8445 (FONT_OBJ): Include w32uniscribe.$(O).
8446 (LIBS): Add uniscribe libraries.
8447
8448 * ftfont.c (ftfont_get_open_type_spec): Check spec->script, not val.
8449
84502008-04-02 Chong Yidong <cyd@stupidchicken.com>
8451
8452 * callint.c (Vshift_select_mode): New var.
8453 (Finteractive): Document new ^ spec.
8454 (Fcall_interactively): Call handle-shift-selection if the ^ spec
8455 is present.
8456
8457 * keyboard.c (Vthis_command_keys_shift_translated): New var.
8458 (command_loop_1): Avoid running the direct display versions of
8459 forward-char and backward-char if shift-selection may occur.
8460 (read_key_sequence): Set Vthis_command_keys_shift_translated if
8461 shift-translation takes place.
8462
8463 * buffer.c (Vtransient_mark_mode): Move docstring to simple.el to
8464 avoid clobbering by define-minor-mode.
8465
8466 * cmds.c (Fforward_char, Fbackward_char, Fforward_line)
8467 (Fbeginning_of_line, Fend_of_line): Add ^ interactive spec.
8468
8469 * syntax.c (Fforward_word): Add ^ interactive spec.
8470
8471 * window.c (Fscroll_up, Fscroll_down, Fscroll_left)
8472 (Fscroll_right): Add ^ interactive spec.
8473
84742008-04-01 Stefan Monnier <monnier@iro.umontreal.ca>
8475
8476 * xdisp.c (try_window_id): Don't forget to reset delta_bytes.
8477
8478 * casefiddle.c (casify_object): Fix up int/EMACS_INT mixup.
8479
8480 * charset.c (Funibyte_charset, Fset_unibyte_charset): Remove.
8481
84822008-03-31 Juri Linkov <juri@jurta.org>
8483
8484 * window.c (Fdisplay_buffer): Reinitialize `tem' to nil.
8485
84862008-03-30 Jan Djärv <jan.h.d@swipnet.se>
8487
8488 * gtkutil.c (xg_set_geometry): Fix indentation.
8489 (xg_resize_outer_widget): Remove.
8490 (x_wm_size_hint_off): Fix indentation.
8491 (xg_frame_set_char_size): Call flush_and_sync after
8492 gtk_window_resize.
8493 (x_wm_set_size_hint): Pass NULL as geometry window to
8494 gtk_window_set_geometry_hints due to Gtk+ bug nr 68668.
8495 Add menu bar and tool bar height to base height.
8496 (xg_update_frame_menubar, free_frame_menubar)
8497 (xg_tool_bar_detach_callback, xg_tool_bar_attach_callback)
8498 (update_frame_tool_bar, free_frame_tool_bar):
8499 Change xg_resize_outer_widget to xg_frame_set_char_size.
8500
85012008-03-30 Michael Albinus <michael.albinus@gmx.de>
8502
8503 * dbusbind.c (QCdbus_timeout): New D-Bus internal symbol.
8504 (Fdbus_call_method): New parameter TIMEOUT.
8505 (dbus-send-signal): Optimize UNGCPRO call.
8506
85072008-03-29 Juri Linkov <juri@jurta.org>
8508
8509 * window.c (Fdisplay_buffer): Move call to
8510 Vsplit_window_preferred_function out of conditions that check
8511 if window is eligible for vertical splitting.
8512 When Vsplit_window_preferred_function is non-nil, call it and use
8513 its non-nil return value as window. Otherwise, continue doing
8514 vertical splitting using Fsplit_window with arg horflag=nil.
8515 (syms_of_window) <Vsplit_window_preferred_function>: Change the
8516 default value from `split-window' to nil.
8517
85182008-03-29 Juri Linkov <juri@jurta.org>
8519
8520 * callint.c (Fcall_interactively): Revert 2008-03-16 change
8521 for interactive code letters 'b' and 'B'.
8522
85232008-03-29 Eli Zaretskii <eliz@gnu.org>
8524
8525 * fileio.c (Fexpand_file_name): Convert the value of $HOME to a
8526 multibyte string.
8527
85282008-03-29 Stefan Monnier <monnier@iro.umontreal.ca>
8529
8530 * keyboard.c (pending_funcalls): New var.
8531 (timer_check): Run it.
8532 (syms_of_keyboard): Initialize it.
8533 * terminal.c (Qrun_hook_with_args, Qdelete_terminal_functions)
8534 (Vdelete_terminal_functions): New vars.
8535 (syms_of_terminal): Initialize them.
8536 (Fdelete_terminal): Run delete-terminal-functions.
8537 * xdisp.c (safe_eval): Rewrite.
8538 (safe_call2): New fun.
8539 * frame.c (Qdelete_frame_functions): New var.
8540 (syms_of_frame): Initialize it.
8541 (Fdelete_frame): Use it and use safe_call2 and pending_funcalls.
8542 * lisp.h (safe_call2, pending_funcalls): Declare.
8543
85442008-03-28 Andreas Schwab <schwab@suse.de>
8545
8546 * indent.c (Fmove_to_column): Move declaration before statements.
8547
85482008-03-27 Stefan Monnier <monnier@iro.umontreal.ca>
8549
8550 * frame.h (enum fullscreen_type): Give it a name. Move it before use.
8551 (struct frame): Use bit fields for boolean vars.
8552
8553 * process.c (server_accept_connection): Simplify naming.
8554 (emacs_get_tty_pgrp): Use SDATA.
8555
8556 * coding.c (decode_coding_object): Fix last change.
8557
85582008-03-27 Jason Rumney <jasonr@gnu.org>
8559
8560 * w32fns.c (start_hourglass): Suppress hourglass on tty frames.
8561
85622008-03-27 Kenichi Handa <handa@ni.aist.go.jp>
8563
8564 * charset.c (Fdefine_charset_internal): Change the way of
8565 registering charsets in Vcharset_order_list.
8566 (syms_of_charset): Make the charset `eight-bit' supplementary.
8567
85682008-03-26 Alexandre Oliva <aoliva@redhat.com> (tiny change)
8569
8570 * regex.c (EXTEND_BUFFER): Change order of pointer addition
8571 operations, to avoid having the difference between pointers
8572 overflow.
8573
85742008-03-26 Stefan Monnier <monnier@iro.umontreal.ca>
8575
8576 * indent.c (check_display_width): New fun.
8577 (scan_for_column): Use it.
8578
8579 * data.c (syms_of_data): Mark most-positive-fixnum and
8580 most-negative-fixnum as constants.
8581
8582 * xdisp.c (redisplay_internal): Reset selected_frame earlier.
8583
8584 * indent.c (scan_for_column): Extract from current_column_1.
8585 Merge with the same code from Fmove_to_column.
8586 (current_column_1, Fmove_to_column): Use it.
8587
85882008-03-25 Stefan Monnier <monnier@iro.umontreal.ca>
8589
8590 * keymap.c (map_keymap_internal): New fun.
8591 (map_keymap): Use it.
8592 (Fmap_keymap_internal): New fun.
8593 (Fmap_keymap): Remove left-out test from before make_save_value.
8594
8595 * keymap.c (Fmap_keymap): Use `map-keymap-sorted.
8596
8597 * frame.c (Fmodify_frame_parameters, x_set_frame_parameters):
8598 Use XCAR/XCDR.
8599
8600 * process.h (struct Lisp_Process): Remove filter_multibyte.
8601 * process.c (QCfilter_multibyte): Remove.
8602 (setup_process_coding_systems): Don't use filter_multibyte.
8603 (Fstart_process, Fmake_network_process): Don't set filter_multibyte.
8604 (read_process_output): Don't adjust multibyteness to filter_multibyte.
8605 (Fset_process_filter_multibyte): Change the coding-system to
8606 approximate the previous behavior.
8607 (Fprocess_filter_multibyte_p): Get the multibyteness straight from the
8608 coding-system.
8609
8610 * coding.c (decode_coding_object): When not decoding into a buffer,
8611 obey the coding system's preference of (uni|multi)byte.
8612
86132008-03-24 Stefan Monnier <monnier@iro.umontreal.ca>
8614
8615 * casefiddle.c (casify_object): Avoid pathological N^2 worst case if
8616 every char is changed and has a different byte-length.
8617 (Fupcase_word, Fdowncase_word, Fcapitalize_word, operate_on_word):
8618 Fix int -> EMACS_INT.
8619
86202008-03-23 David Hansen <david.hansen@gmx.net>
8621
8622 * dbusbind.c (xd_read_message): Remove extra copying of message
8623 strings. Check for NULL `interface' or `member'.
8624
86252008-03-22 Eli Zaretskii <eliz@gnu.org>
8626
8627 * w32.c (readdir): If FindFirstFile/FindNextFile return in
8628 cFileName a file name that includes `?' characters, use the 8+3
8629 alias in cAlternateFileName instead.
8630
86312008-03-21 Stefan Monnier <monnier@iro.umontreal.ca>
8632
8633 * buffer.c (enlarge_buffer_text): Fix int -> EMACS_INT.
8634
86352008-03-20 Stefan Monnier <monnier@iro.umontreal.ca>
8636
8637 * intervals.c (temp_set_point, temp_set_point_both): Use EMACS_INT.
8638 (set_point, set_point_both): Use EMACS_INT. Remove `buffer' arg,
8639 work on current_buffer only instead (that was already the case
8640 for some of the code anyway).
8641 * buffer.h (set_point, set_point_both): Remove buffer arg, use long int.
8642 (temp_set_point, temp_set_point_both): Use EMACS_INT.
8643 (SET_PT, SET_PT_BOTH): Adjust.
8644 * intervals.h (set_point, temp_set_point, set_point_both)
8645 (temp_set_point_both): Remove redundant declarations.
8646
86472008-03-20 Stefan Monnier <monnier@iro.umontreal.ca>
8648
8649 * fileio.c (Finsert_file_contents):
8650 * lread.c (Feval_buffer): Use BUF_TEMP_SET_PT.
8651 * buffer.h (BUF_SET_PT): Remove. set_point_both doesn't work right
8652 when buffer != current_buffer anyway.
8653
86542008-03-20 Andreas Schwab <schwab@suse.de>
8655
8656 * callint.c (Fcall_interactively) [case 'B']: Use other-buffer
8657 as default.
8658
86592008-03-19 Jason Rumney <jasonr@gnu.org>
8660
8661 * w32fns.c (hourglass_timer, hourglass_hwnd): New variables.
8662 (syms_of_w32fns): Initialize them.
8663 (HOURGLASS_ID): New constant.
8664 (x_window_to_frame): Don't check hourglass_window.
8665 (w32_wnd_proc) <WM_TIMER>: Handle hourglass_timer.
8666 (w32_wnd_proc) <WM_EXITMENULOOP>: Set pending hourglass cursor.
8667 (w32_wnd_proc) <WM_SETCURSOR>: Set the hourglass or current cursor.
8668 (w32_wnd_proc) <WM_EMACS_SETCURSOR>: Set frame's current_cursor.
8669 Only change the cursor if hourglass is not active.
8670 (Fx_create_frame): Initialize frame's current_cursor.
8671 (hourglass_atimer): Remove.
8672 (hourglass_started): New function.
8673 (start_hourglass, cancel_hourglass, hide_hourglass): Adapt to w32.
8674 (show_hourglass): Adapt to w32, changing argument to frame.
8675
8676 * w32term.h (struct w32_output): Remove hourglass_window.
8677 Add current_cursor.
8678
8679 * eval.c (call_debugger, Fsignal):
8680 * keyboard.c (recursive_edit_1, cmd_error, Ftop_level)
8681 (command_loop_1, Fread_key_sequence, Fread_key_sequence_vector)
8682 (Fexecute_extended_command, cancel_hourglass_unwind):
8683 * minibuf.c (read_minibuf):
8684 * fns.c (Fy_or_n_p): Enable hourglass when HAVE_WINDOW_SYSTEM.
8685
86862008-03-19 Stefan Monnier <monnier@iro.umontreal.ca>
8687
8688 * window.c (run_funs): New fun.
8689 (run_window_configuration_change_hook): Use it to run the buffer-local
8690 and the global part of the hook.
8691
8692 * xdisp.c (format_mode_line_unwind_data): Add window argument.
8693 (unwind_format_mode_line): Restore selected window.
8694 (x_consider_frame_title, Fformat_mode_line): Set selected window.
8695
86962008-03-17 Stefan Monnier <monnier@iro.umontreal.ca>
8697
8698 * editfns.c (Fchar_equal): Check they are valid characters.
8699
8700 * buffer.h (Fbuffer_list): Declare (for use in callint.c).
8701
87022008-03-17 Andreas Schwab <schwab@suse.de>
8703
8704 * regex.c (re_match_2_internal): Properly match raw 8-bit bytes
8705 against a charset.
8706
8707 * lisp.h (Fbuffer_list): Declare.
8708
87092008-03-17 Jan Djärv <jan.h.d@swipnet.se>
d6c952f8 8710
aac0c6e3
MR
8711 * gtkutil.c (free_frame_tool_bar): Only call gtk_container_remove if
8712 handlebox_widget is != 0.
8713
87142008-03-16 Juri Linkov <juri@jurta.org>
8715
8716 * callint.c (Fcall_interactively): For interactive code letters
8717 'b' and 'B' put the buffer list into the list of default "future"
8718 values of the minibuffer.
8719
87202008-03-16 Andreas Schwab <schwab@suse.de>
8721
8722 * keyboard.c (read_key_sequence): Fix downcasing of letters with
8723 modifiers.
8724
8725 * regex.c (re_match_2_internal): Correct matching of a charset
8726 against latin-1 characters.
8727
87282008-03-16 Kenichi Handa <handa@m17n.org>
8729
8730 * coding.c (CHAR_STRING_ADVANCE_NO_UNIFY)
8731 (STRING_CHAR_ADVANCE_NO_UNIFY): New macros.
8732 (coding_alloc_by_making_gap): Fix the way to preserve data in the gap.
8733 (alloc_destination): Fix the 2nd arg to coding_alloc_by_making_gap.
8734 (encode_coding_utf_8): Use CHAR_STRING_ADVANCE_NO_UNIFY instead of
8735 CHAR_STRING_ADVANCE.
8736 (produce_chars): Fix for the case that the source and the
8737 destination are the same buffer. Use CHAR_STRING_ADVANCE_NO_UNIFY
8738 instead of CHAR_STRING_ADVANCE.
8739 (consume_chars): Use STRING_CHAR_ADVANCE_NO_UNIFY instead of
8740 STRING_CHAR_ADVANCE.
8741
87422008-03-15 Andreas Schwab <schwab@suse.de>
8743
8744 * regex.c (re_match_2_internal): Correct matching of eight bit
8745 characters in unibyte strings.
8746
87472008-03-15 Martin Rudalics <rudalics@gmx.at>
8748
8749 * buffer.c (overlays_in, Foverlays_in): Include empty overlays
8750 at end of range when it coincides with the end of the buffer.
8751
87522008-03-14 Eli Zaretskii <eliz@gnu.org>
8753
8754 * dired.c (Ffile_attributes) [WINDOWSNT]: Force inode be positive.
8755
8756 * w32fns.c (globals_of_w32fns, Fx_create_frame): Fix last change.
8757
87582008-03-14 Jason Rumney <jasonr@gnu.org>
8759
8760 * editfns.c (initial_tz): New variable.
8761 (syms_of_editfns): Initialize it.
8762 (Fset_time_zone_rule): Set it when first called.
8763 Use it when TZSTRING is nil.
8764
8765 * w32fns.c (MONITOR_DEFAULT_TO_NEAREST, struct MONITOR_INFO)
8766 (MonitorFromPoint_Proc, GetMonitorInfo_Proc): New definitions.
8767 (monitor_from_point_fn, get_monitor_info_fn): New globals.
8768 (globals_of_w32fns): Initialize them.
8769 (compute_tip_xy): Use them to position tooltips.
8770
87712008-03-14 Glenn Morris <rgm@gnu.org>
8772
8773 * emacs.c (main): Revert previous change.
8774 (standard_args): Revert -internal-script back to -scriptload,
8775 and remove the long-option form.
8776
87772008-03-13 Glenn Morris <rgm@gnu.org>
8778
8779 * emacs.c (main, standard_args): Rename -scriptload to -internal-script.
8780 Remove option -enable-font-backend.
8781
87822008-03-12 Stefan Monnier <monnier@iro.umontreal.ca>
8783
8784 * buffer.c (Fswitch_to_buffer): Fall back on pop-to-buffer.
8785
87862008-03-11 Jan Djärv <jan.h.d@swipnet.se>
8787
8788 * xterm.c (x_connection_closed): For GTK: If this is the last
8789 terminal just exit without closing the display.
8790
87912008-03-11 Jason Rumney <jasonr@gnu.org>
8792
8793 * w32font.c (w32font_full_name): Use floor to round.
8794
f0131492 87952008-03-10 Dhruva Krishnamurthy <dhruvakm@gmail.com> (tiny change)
aac0c6e3
MR
8796
8797 * sound.c (alsa_configure): Declare vol at beginning of block.
8798
8799 * fontset.c (Ffontset_info): Remove extra semicolon.
8800
88012008-03-10 Stefan Monnier <monnier@iro.umontreal.ca>
8802
8803 * fileio.c (Fsubstitute_in_file_name): Fix up computation of maximum
8804 size of resulting string.
8805
88062008-03-10 Jason Rumney <jasonr@gnu.org>
8807
8808 * dispnew.c (adjust_glyph_matrix): Initialize window_height.
8809
88102008-03-10 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
8811
8812 * xdisp.c (handle_single_display_spec): Undo 2007-10-16 changes.
8813 Don't pretend as if characters with display property haven't been
8814 consumed for string-replacing-string case.
8815
88162008-03-08 Kim F. Storm <storm@cua.dk>
8817
8818 * xdisp.c (GET_NEXT_DISPLAY_ELEMENT): New macro.
8819 (get_next_display_element, next_element_from_string)
8820 (next_element_from_ellipsis, next_element_from_buffer): Use it.
8821
88222008-03-08 Andreas Schwab <schwab@suse.de>
8823
8824 * process.h (struct Lisp_Process): Declare bit fields as unsigned.
8825
88262008-03-06 Jason Rumney <jasonr@gnu.org>
8827
8828 * w32font.c (w32_registry): Take font_type argument. Use ANSI
8829 when charset not specified. Only translate ANSI to unicode when
8830 font_type is truetype.
8831 (w32font_coverage_ok): New function.
8832 (add_font_entity_to_list): Use it to filter unsuitable fonts.
8833
88342008-03-05 Kenichi Handa <handa@ni.aist.go.jp>
8835
8836 * lread.c (Fread_char): Resolve modifiers.
8837 (Fread_char_exclusive): Likewise.
8838
8839 * character.c (char_resolve_modifier_mask): New function.
8840 (char_string): Use char_resolve_modifier_mask.
8841 (Fchar_resolve_modifiers): New function.
8842 (syms_of_character): Declare Fchar_resolve_modifiers as Lisp
8843 function.
8844
88452008-03-04 Jason Rumney <jasonr@gnu.org>
8846
8847 * makefile.w32-in: Always include w32font.c in the build.
8848 * w32font.c: Wrap in USE_FONT_BACKEND conditional.
8849
88502008-03-04 Andreas Schwab <schwab@suse.de>
8851
8852 * Makefile.in (clean): Remove emacs-*.*.* instead of emacs-*.
8853 (versionclean): Likewise.
8854
88552008-03-04 Juanma Barranquero <lekktu@gmail.com>
8856
8857 * .cvsignore: Add oo.
8858
88592008-03-03 Andreas Schwab <schwab@suse.de>
8860
8861 * coding.c (decode_coding_object): Inhibit gap shrinking while
8862 decoding in place.
8863
88642008-03-03 Dan Nicolaescu <dann@ics.uci.edu>
8865
8866 * w32term.c: Remove unused include "gnu.h".
8867 * makefile.w32-in (w32term.o): Don't depend on gnu.h.
8868
8869 * gnu.h: Rename to ...
8870 * emacs-icon.h: ... this.
8871 * xterm.c: Use emacs-icon.h instead of gnu.h.
8872 * Makefile (xterm.o): Depend on emacs-icon.h, not gnu.h.
8873
88742008-03-03 Juanma Barranquero <lekktu@gmail.com>
8875
8876 * w32font.c: Include math.h.
8877
88782008-03-03 Jason Rumney <jasonr@gnu.org>
8879
8880 * w32font.c (recompute_cached_metrics): Change font arg to w32font_info.
8881 Compute options separately.
8882 (w32font_open_internal): Set glyph_idx before caching metrics.
8883
8884 * w32font.h (NTM_PS_OPENTYPE, NTM_TT_OPENTYPE, NTM_TYPE1):
8885 Define if system headers don't.
8886 (struct w32font_info): Enlarge ascii_metrics. Add glyph_idx.
8887 (w32font_encode_char): Don't declare here.
8888
8889 * w32font.c (Quniscribe, QCformat): New symbols.
8890 (syms_of_w32font): Define them.
8891 (w32font_has_char): Indicate uncertainty.
8892 (w32font_encode_char): Encode as glyph point. Make static.
8893 (recompute_cached_metrics): New function.
8894 (w32font_open_internal): Use it. Set font to use glyph points
8895 initially. Set format based on type of font.
8896 (w32font_text_extents, w32font_draw): Optionally use glyph points.
8897 (w32_enumfont_pattern_entity): Accept backend arg. Set type based
8898 on it. Set format based on information available here.
8899 (add_font_entity_to_list): Identify backend based on opentype_only.
8900
89012008-03-02 Andreas Schwab <schwab@suse.de>
8902
8903 * ftfont.c (ftfont_pattern_entity): Fix aliasing violations.
8904
8905 * coding.c (decode_coding_big5, produce_chars):
8906 Fix typos in last change.
8907
89082008-03-02 Kentaro Ohkouchi <nanasess@fsm.ne.jp>
8909
8910 * gnu.h: New icon.
8911
89122008-03-02 Kenichi Handa <handa@m17n.org>
8913
8914 * coding.c (decode_coding_utf_8): When eol-type of CODING is
8915 `dos', don't decode '\r' if that is the last in the source.
8916 (decode_coding_utf_16, decode_coding_emacs_mule)
8917 (decode_coding_iso_2022, decode_coding_sjis, decode_coding_big5)
8918 (decode_coding_raw_text, decode_coding_charset): Likewise.
8919 (produce_chars): Don't decode EOL here. Use EMACS_INT.
8920
89212008-03-01 Jason Rumney <jasonr@gnu.org>
8922
8923 * w32font.c (w32font_full_name): Report point size for scalable fonts.
8924
89252008-03-01 Kim F. Storm <storm@cua.dk>
8926
8927 * dispextern.h (CHAR_GLYPH_SPACE_P): Check for default face.
8928
89292008-03-01 Jason Rumney <jasonr@gnu.org>
8930
8931 * w32font.c (w32font_full_name): New function.
8932 (w32font_open_internal): Use it.
8933
89342008-03-01 Kim F. Storm <storm@cua.dk>
8935
8936 * dispnew.c (line_draw_cost): Fix invalid glyph check.
8937
89382008-03-01 Jason Rumney <jasonr@gnu.org>
8939
8940 * font.c (font_unparse_fcname): Increase len when style is a symbol.
8941
89422008-03-01 Jan Djärv <jan.h.d@swipnet.se>
8943
8944 * xterm.c (handle_one_xevent): For Gtk+ and ConfigureNotify, call
8945 xg_frame_resized when the event is for the edit widget.
8946
8947 * gtkutil.h (xg_frame_resized): Renamed from xg_resize_widgets.
8948
8949 * gtkutil.c (xg_resize_outer_widget): Only do one of set_geometry or
8950 set_char_size.
8951 (xg_frame_resized): Renamed from xg_resize_widgets. Remove all
8952 operations on widgets here. Just set frame size if needed.
8953 (flush_and_sync, x_wm_size_hint_off, xg_pack_tool_bar): New functions.
8954 (xg_frame_set_char_size): Call x_wm_size_hint_off before resizing.
8955 (x_wm_set_size_hint): Set size hints on the edit widget only, not
8956 the whole frame.
8957 (xg_create_tool_bar): Move attachment of the tool bar to
8958 xg_pack_tool_bar. Do not attach the tool bar if there are no items.
8959 (free_frame_tool_bar): Remove call to SET_FRAME_GARBAGED.
8960
89612008-03-01 Jason Rumney <jasonr@gnu.org>
8962
8963 * w32fns.c (w32_msg_pump): Disable debug code.
8964
89652008-03-01 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
8966
8967 * m/intel386.h [MAC_OSX || DARWIN]: Define NO_ARG_ARRAY if _LP64.
8968
89692008-02-29 Chong Yidong <cyd@stupidchicken.com>
8970
8971 * xdisp.c (next_overlay_string): Don't set
8972 overlay_strings_at_end_processed_p if we're currently reading from
8973 a display string.
8974
89752008-02-29 Stefan Monnier <monnier@iro.umontreal.ca>
8976
8977 * xdisp.c (get_overlay_strings_1): Fix typo.
8978
89792008-02-29 Chong Yidong <cyd@stupidchicken.com>
8980
8981 * xdisp.c (get_overlay_strings_1): Add missing argument type.
8982
89832008-02-28 Kenichi Handa <handa@ni.aist.go.jp>
8984
8985 * ftfont.c (ftfont_match): Explicitly set pixelsize in pattern.
8986
8987 * xdisp.c (display_mode_element): Cancel the previous change.
8988 (decode_mode_spec): Likewise.
8989 (handle_auto_composed_prop): Don't make composition if it->string
8990 is a string.
8991
89922008-02-27 Kim F. Storm <storm@cua.dk>
8993
8994 * lisp.h (GLYPH): Change type from int to struct with separate char
8995 and face_id members.
8996 (GLYPH_MASK_FACE, GLYPH_MASK_CHAR): Delete macros.
8997 (GLYPH_CHAR, GLYPH_FACE): Remove slow versions with frame arg.
8998 (FAST_GLYPH_CHAR, FAST_GLYPH_FACE): Rename macros to ...
8999 (GLYPH_CHAR, GLYPH_FACE): ... these. Change users.
9000 (FAST_MAKE_GLYPH, MAKE_GLYPH): Remove. Rewrite users to use ...
9001 (SET_GLYPH, SET_GLYPH_CHAR, SET_GLYPH_FACE): ... these macros instead.
9002 (GLYPH_CODE_CHAR, GLYPH_CODE_FACE, GLYPH_CODE_P)
9003 (GLYPH_CODE_CHAR_VALID_P, SET_GLYPH_FROM_GLYPH_CODE): New macros to
9004 handle new Lisp glyph code encoding, either an integer or a cons.
9005
9006 * disptab.h (GLYPH_SIMPLE_P): Rewrite.
9007 (GLYPH_ALIAS): Delete.
9008 (GLYPH_ALIAS_P, GLYPH_FOLLOW_ALIASES): Rewrite.
9009 (GLYPH_LENGTH, GLYPH_STRING): Use GLYPH_CHAR.
9010 (GLYPH_FROM_CHAR): Replace macro by ...
9011 (SET_GLYPH_FROM_CHAR): ... this macro. Change users.
9012
9013 * dispextern.h (CHAR_GLYPH_SPACE_P): Simplify.
9014 (GLYPH_FROM_CHAR_GLYPH): Replace macro by ...
9015 (SET_GLYPH_FROM_CHAR_GLYPH): ... this macro. Change users.
9016 (GLYPH_INVALID_P): New macro.
9017 (spec_glyph_lookup_face): Update prototype.
9018
9019 * dispnew.c (line_draw_cost): Adapt to new glyph type.
9020 (build_frame_matrix_from_leaf_window): Adapt to new glyph type and
9021 new glyph code encoding.
9022 (spec_glyph_lookup_face): No return value; update passed glyph instead.
9023 (init_display): Use SET_CHAR_GLYPH to initialize space_glyph.
9024
9025 * xdisp.c (get_next_display_element, next_element_from_display_vector):
9026 Adapt to new glyph type and new glyph code encoding.
9027
9028 * term.c (encode_terminal_code, produce_special_glyphs): Likewise.
9029
9030 * indent.c (current_column, current_column_1, Fmove_to_column)
9031 (compute_motion): Adapt to new glyph code encoding.
9032
9033 * msdos.c (IT_write_glyphs): Adapt to new glyph type.
9034
90352008-02-27 Chong Yidong <cyd@stupidchicken.com>
9036
9037 * process.c (wait_reading_process_output): Check for window
9038 changes caused by timers.
9039 Suggested by Johan Bockgård.
9040
90412008-02-27 Glenn Morris <rgm@gnu.org>
9042
9043 * emacs.c (USAGE1): Add `--disable-font-backend'.
9044
90452008-02-27 Stefan Monnier <monnier@iro.umontreal.ca>
9046
9047 * fileio.c (Finsert_file_contents): Don't reset undo_list if no change
9048 is made to the buffer.
9049
90502008-02-26 Stefan Monnier <monnier@iro.umontreal.ca>
9051
9052 * dispextern.h (face_at_buffer_position, face_for_overlay_string)
9053 (face_at_string_position):
9054 * xfaces.c (face_at_buffer_position, face_for_overlay_string)
9055 (face_at_string_position):
9056 * xdisp.c (display_string, next_overlay_change):
9057 * buffer.h (overlays_at):
9058 * buffer.c (overlays_at): Use EMACS_INT for buffer positions.
9059 Update callers.
9060
90612008-02-26 Chong Yidong <cyd@stupidchicken.com>
9062
9063 * editfns.c (Fformat): Doc fix.
9064
90652008-02-26 Juanma Barranquero <lekktu@gmail.com>
9066
9067 * font.c (Ffont_spec, Ffont_at): Fix typos in docstrings.
9068 (Ffont_put, Flist_families, Ffont_fill_gstring, Ffont_drive_otf)
9069 (Ffont_otf_alternates, Fquery_font): Doc fixes.
9070
90712008-02-25 Stefan Monnier <monnier@iro.umontreal.ca>
9072
9073 * buffer.c (Fbuffer_swap_text): New function.
9074 (syms_of_buffer): Defsubr it.
9075
90762008-02-25 Chong Yidong <cyd@stupidchicken.com>
9077
9078 * keyboard.c (command_loop_1): Revert 2006-10-09 change.
9079
90802008-02-25 Jason Rumney <jasonr@gnu.org>
9081
9082 * w32font.c (w32font_draw): Draw one character at a time when padding.
9083
90842008-02-25 Stefan Monnier <monnier@iro.umontreal.ca>
9085
9086 * window.c (Fdelete_window, Fadjust_window_trailing_edge):
9087 Handle a nil arg. Use run_window_configuration_change_hook.
9088 (delete_window, adjust_window_trailing_edge): Don't handle nil any more.
9089 (Fenlarge_window, Fshrink_window, Fset_window_configuration):
9090 Use run_window_configuration_change_hook.
9091
90922008-02-25 Kenichi Handa <handa@ni.aist.go.jp>
9093
9094 * xdisp.c (x_produce_glyphs): For a visible glyph, assure at least
9095 1-pixel width.
9096
90972008-02-25 Kenichi Handa <handa@ni.aist.go.jp>
9098
9099 * xdisp.c (fill_glyph_string): Pay attention to glyph->padding_p.
9100 (append_glyph): Set glyph->pixel_width and glyph->padding_p to 1
9101 if the glyph in the font is zero pixel with.
9102
9103 * dispextern.h (struct glyph_string): New member padding_p.
9104
9105 * w32font.c (w32font_draw): Pay attention to s->padding_p.
9106
9107 * ftxfont.c (ftxfont_draw): Pay attention to s->padding_p.
9108
9109 * xfont.c (xfont_draw): Pay attention to s->padding_p.
9110
9111 * xftfont.c (xftfont_draw): Pay attention to s->padding_p.
9112
9113 * font.c: If the font driver doesn't have `shape' function, return Qnil.
9114
91152008-02-25 Jason Rumney <jasonr@gnu.org>
9116
9117 * w32fns.c (enum_font_cb2): Don't use raster fonts for Unicode.
9118
91192008-02-24 Stefan Monnier <monnier@iro.umontreal.ca>
9120
9121 Allow fine-grained image-cache flushing.
9122 * dispextern.h (struct image): Add `dependencies' field.
9123 (clear_image_caches): Change arg to Lisp_Object.
9124 * image.c (make_image): Initialize `dependencies' field.
9125 (clear_image_cache): Change arg to allow fine-grained flushing.
9126 Perform the flush even if image-cache-eviction-delay is nil.
9127 (clear_image_caches): Change arg to Lisp_Object.
9128 (Fclear_image_cache): Expand meaning of the argument.
9129 (mark_image): Mark `dependencies' field.
9130 * xfaces.c (clear_face_cache): Adapt arg to call to clear_image_caches.
9131 (lface_hash): Use XHASH rather than XFASTINT.
9132 (face_at_buffer_position): Fix int -> EMACS_INT position.
9133 * xdisp.c (next_overlay_change): Fix int -> EMACS_INT position.
9134 (select_frame_for_redisplay): Remove code duplication.
9135 (redisplay_internal): Adapt arg to call to clear_image_caches.
9136
91372008-02-24 Dan Nicolaescu <dann@ics.uci.edu>
9138
9139 * s/vms4-0.h:
9140 * s/vms4-2.h:
9141 * s/vms4-4.h:
9142 * s/vms5-5.h: Remove, unused.
9143
9144 * s/irix5-2.h:
9145 * s/irix6-0.h:
9146 * s/riscos5.h:
9147 * s/mach-bsd4-3.h:
9148 * m/mips4.h: Remove files for obsolete systems.
9149
9150 * Makefile.in:
9151 * filelock.c:
9152 * unexmips.c:
9153 * m/hp9000s300.h:
9154 * m/iris4d.h:
9155 * s/aix3-1.h:
9156 * s/hpux.h:
9157 * s/msdos.h:
9158 * s/usg5-0.h:
9159 * s/usg5-2-2.h:
9160 * s/usg5-2.h:
9161 * s/usg5-3.h: Remove references to obsolete variables.
9162
9163 * s/irix5-0.h: Remove, move all the contents ...
9164 * s/irix6-5.h: ... here. Simplify.
9165 * config.in: Regenerate.
9166
91672008-02-24 Jason Rumney <jasonr@gnu.org>
9168
9169 * w32term.c (x_draw_glyph_string_background): Clear the background
9170 manually when cleartype is in use.
9171 (x_draw_glyph_string_foreground): Draw text transparently when
9172 cleartype is in use.
9173
9174 * w32font.c (w32font_text_extents): Avoid getting HDC and selecting
9175 a font into it unless we have to.
9176
91772008-02-19 Stefan Monnier <monnier@iro.umontreal.ca>
9178
9179 * intervals.h (INT_LISPLIKE): Remove. It may misfire.
9180 (NULL_INTERVAL_P, SET_INTERVAL_PARENT): Don't use it.
d6c952f8 9181
aac0c6e3
MR
91822008-02-18 Jason Rumney <jasonr@gnu.org>
9183
9184 * w32fns.c (Fw32_shell_execute): Encode parameters.
9185
91862008-02-09 Eli Zaretskii <eliz@gnu.org>
9187
9188 * fileio.c (syms_of_fileio) <insert-default-directory>: Doc fix.
9189
91902008-02-05 Juanma Barranquero <lekktu@gmail.com>
9191
9192 * unexhp9k800.c (read_header): Replace `legal' with `valid'.
9193
91942008-02-24 Ulrich Neumerkel <ulrich@complang.tuwien.ac.at> (tiny change)
9195
9196 * xterm.c (x_set_offset): Don't change the gravity if
9197 CHANGE_GRAVITY is -1.
9198
91992008-02-23 Chong Yidong <cyd@stupidchicken.com>
9200
9201 * fileio.c (auto_save_error_occurred): New var.
9202 (auto_save_error): Set it.
9203 (Fdo_auto_save): Don't overwrite the error message if an auto-save
9204 error occurred.
9205
92062008-02-23 Eli Zaretskii <eliz@gnu.org>
9207
9208 * w32.c (globals_of_w32): Add initializations for
9209 g_b_init_get_sid_sub_authority and
9210 g_b_init_get_sid_sub_authority_count.
9211
92122008-02-22 Stefan Monnier <monnier@iro.umontreal.ca>
9213
9214 * font.c (font_match_xlfd, font_check_xlfd_parse): New funs.
9215 (font_parse_xlfd): Use them for sanity check.
9216 (Finternal_set_font_style_table): Make sure the table is bijective.
9217
9218 Consolidate the image_cache to the terminal struct.
9219 * termhooks.h (P_): Remove redundant def.
9220 (struct terminal): New field `image_cache'.
9221 * frame.h (FRAME_IMAGE_CACHE): New macro. Use it everywhere in place
9222 of FRAME_X_IMAGE_CACHE.
9223 * xterm.h (struct x_display_info): Remove image_cache field.
9224 (FRAME_X_IMAGE_CACHE): Remove. Use FRAME_IMAGE_CACHE instead.
9225 * w32term.h (struct w32_display_info): Remove image_cache field.
9226 (FRAME_X_IMAGE_CACHE): Remove. Use FRAME_IMAGE_CACHE instead.
9227 * macterm.h (struct mac_display_info): Remove image_cache field.
9228 (FRAME_X_IMAGE_CACHE): Remove. Use FRAME_IMAGE_CACHE instead.
9229 * xterm.c (x_term_init):
9230 * w32term.c (w32_term_init):
9231 * macterm.c (mac_term_init): Set the image_cache in the terminal.
9232 * dispextern.h (clear_image_cache, forall_images_in_image_cache):
9233 Remove declarations.
9234 (clear_image_caches, mark_image_cache): New declarations.
9235 * xfaces.c (clear_face_cache):
9236 * xdisp.c (redisplay_internal): Use clear_image_caches.
9237 * image.c (clear_image_cache): Don't check that a frame is on
9238 a window-system before checking if it shares the same cache.
9239 (clear_image_caches): New function.
9240 (Fclear_image_cache): Use it.
9241 (mark_image): Move from allo.c.
9242 (mark_image_cache): Move from alloc.c and forall_images_in_image_cache.
9243 * alloc.c (mark_image, mark_image_cache): Move to image.c.
9244 (mark_object): Don't call mark_image_cache for frames.
9245 (mark_terminals): Call mark_image_cache.
9246
9247 * lisp.h (Fdelete_terminal): Declare.
9248
9249 * charset.h (CHECK_CHARSET, CHECK_CHARSET_GET_ID)
9250 (CHECK_CHARSET_GET_ATTR): Don't use the inexistent return value of
9251 wrong_type_argument.
9252
92532008-02-22 Kenichi Handa <handa@ni.aist.go.jp>
9254
9255 * Makefile.in (lisp): Remove devanagari.el, kannada.el,
9256 malayalam.el, and tamil.el. Add sinhala.el.
9257
92582008-02-21 Stefan Monnier <monnier@iro.umontreal.ca>
9259
9260 * xterm.c (x_connection_closed): Consolidate identical tests.
9261 (x_delete_terminal): Don't crash if called via x_connection_closed.
9262
92632008-02-21 Kenichi Handa <handa@ni.aist.go.jp>
9264
9265 * xdisp.c (decode_mode_spec): New arg string.
9266 (display_mode_element): Adjust for the above change.
9267
92682008-02-19 Stefan Monnier <monnier@iro.umontreal.ca>
9269
9270 * callint.c (Fcall_interactively): Use AREF.
9271
92722008-02-18 Stefan Monnier <monnier@iro.umontreal.ca>
9273
9274 * font.c (font_unparse_xlfd): Don't ignore integer pixel size specs.
9275
92762008-02-18 Jan Djärv <jan.h.d@swipnet.se>
9277
9278 * xfns.c (Fx_show_tip): Set string to " " if empty.
9279
92802008-02-17 Dan Nicolaescu <dann@ics.uci.edu>
9281
9282 * callint.c (syms_of_callint): Initialize Vmark_even_if_inactive
9283 with Qt.
9284
92852008-02-17 Kenichi Handa <handa@m17n.org>
9286
9287 * ftfont.c (ftfont_shape): Return Lispy number.
9288
9289 * xfaces.c (prepare_face_for_display): Use display_info->font->fid
9290 for GCs.
9291 (Finternal_set_font_selection_order): Call font_update_sort_order
9292 only when enable_font_backend is set.
9293 (realize_x_face): Set face->font_info to that of default face only
9294 when enable_font_backend is set.
9295
9296 * xdisp.c (handle_composition_prop): Set it->c to the fist
9297 character of the composed region.
9298 (fill_composite_glyph_string): Set base_face->font_info to
9299 s->font_info. Get a face for ascii from base_face->ascii_face.
9300 (BUILD_COMPOSITE_GLYPH_STRING): Call fill_composite_glyph_string
9301 with a face already decided.
9302 (x_produce_glyphs): Be sure to set it->ascent and it->descent to
9303 non-negative.
9304 (x_produce_glyphs): If the composition method is ..._WITH_GLYPH_STRING,
9305 call font_prepare_composition unconditionally.
9306
9307 * xfns.c (x_make_gc): Use the default font id of the frame for GCs.
9308
9309 * xterm.h (struct x_display_info): New member font.
9310
9311 * xterm.c (x_set_cursor_gc): Use display_info->font->fid for GCs.
9312 (x_set_mouse_face_gc, x_new_font): Likewise.
9313 (x_term_init): Setup display_info->font.
9314 (x_delete_terminal): Free display_info->font.
9315
9316 * xfont.c (xfont_draw): Use BLOCK_INPUT and UNBLOCK_INPUT.
9317
9318 * ftxfont.c (ftxfont_default_fid): Delete it.
9319 (ftxfont_open): Set xfont->fid to 0.
9320 (ftxfont_end_for_frame): Clear data specific to the frame and the
9321 font-driver.
9322
9323 * xftfont.c (xftfont_default_fid): Delete it.
9324 (xftfont_open): Set xfont->fid to 0.
9325
9326 * fontset.c (FONTSET_OBJLIST): New macro.
9327 (fontset_find_font): Update font-object list of the fontset.
9328 (free_realized_fontset): New function.
9329 (free_face_fontset): Call free_realized_fontset.
9330 (Ffont_info): Call font_close_object only when enable_font_backend
9331 is set.
9332
9333 * font.c [HAVE_X_WINDOWS]: Include xterm.h.
9334 [HAVE_NTGUI]: Include w32term.h.
9335 [MAC_OS]: Include macterm.ch.
9336 (font_otf_ValueRecord): Use make_number.
9337 (font_finish_cache): Fix handling of reference count.
9338 (font_clear_cache): Update num_fonts.
9339 (font_open_entity): Update smallest_char_width and
9340 smallest_font_height of the frame.
9341 (font_close_object): Update num_fonts.
9342 (Fclear_font_cache): Fix finding the target cache data.
9343
93442008-02-16 Glenn Morris <rgm@gnu.org>
9345
9346 * fontset.c (Finternal_char_font): Fix compilation warning.
9347
93482008-02-16 Eli Zaretskii <eliz@gnu.org>
9349
9350 * w32.c (init_user_info): Use TOKEN_USER and TOKEN_PRIMARY_GROUP
9351 instead of char arrays. Enlarge the size of array passed to
9352 get_token_information.
9353
9354 * font.c (Ffont_fill_gstring, Fget_font_glyphs): Fix compilation
9355 warnings.
9356
93572008-02-15 Dan Nicolaescu <dann@ics.uci.edu>
9358
9359 * .gdbinit: Don't set `args', it breaks gdb --args.
9360
93612008-02-14 Stefan Monnier <monnier@iro.umontreal.ca>
9362
9363 * fileio.c (Finsert_file_contents): Adjust offsets when replacing
9364 within a narrowed buffer.
9365
93662008-02-14 Kenichi Handa <handa@ni.aist.go.jp>
9367
9368 * coding.c (decode_coding_object, encode_coding_object):
9369 Preserve Vdeactivate_mark. Delete unnecessary call of Fcurrent_buffer.
9370
93712008-02-12 Stefan Monnier <monnier@iro.umontreal.ca>
9372
9373 * coding.c (coding_set_destination): Use BEG_BYTE rather than
9374 hardcoding 1.
9375 (detect_coding_system):
9376 * lisp.h (detect_coding_system, chars_in_text, multibyte_chars_in_text)
9377 (string_char_to_byte, string_byte_to_char, insert_from_gap):
9378 * insdel.c (insert_from_gap):
9379 * fns.c (string_char_byte_cache_charpos, string_char_byte_cache_bytepos)
9380 (string_char_to_byte, string_byte_to_char, string_make_multibyte)
9381 (string_to_multibyte):
9382 * character.c (chars_in_text, multibyte_chars_in_text):
9383 * fileio.c (Finsert_file_contents): Use EMACS_INT for buffer positions.
9384
9385 * character.h (FETCH_STRING_CHAR_ADVANCE)
9386 (FETCH_STRING_CHAR_AS_MULTIBYTE_ADVANCE)
9387 (FETCH_STRING_CHAR_ADVANCE_NO_CHECK): Use SDATA and SREF.
9388 (DEC_POS, BUF_DEC_POS): Use BEG_BYTE rather than hardcoding 1.
9389
9390 * casefiddle.c (casify_region): Only call after-change and composition
9391 functions on the part of the region that was changed.
9392
9393 * keyboard.c (read_avail_input):
9394 * frame.c (Fdelete_frame): Call Fdelete_terminal.
9395
93962008-02-11 Stefan Monnier <monnier@iro.umontreal.ca>
9397
9398 * buffer.c (clone_per_buffer_values, reset_buffer_local_variables)
9399 (Fbuffer_local_value, Fbuffer_local_variables): Don't forget undo_list.
9400
94012008-02-11 Juanma Barranquero <lekktu@gmail.com>
9402
9403 * w32menu.c (push_submenu_start, push_submenu_end)
9404 (push_left_right_boundary, push_menu_pane, push_menu_item):
9405 * keyboard.c (read_key_sequence): Don't pass args with side effects
9406 to AREF, it fails when compiling with -DENABLE_CHECKING.
9407
94082008-02-11 Kenichi Handa <handa@ni.aist.go.jp>
9409
9410 * Makefile.in (${lispsource}international/charprop.el):
9411 Delete this target.
9412
9413 * search.c (boyer_moore): Fix incorrect synching of the trunk and
9414 emacs-unicode-2.
9415
94162008-02-11 Stefan Monnier <monnier@iro.umontreal.ca>
9417
9418 * terminal.c (Fdelete_terminal): Clean up the `force' path.
9419
94202008-02-10 Stefan Monnier <monnier@iro.umontreal.ca>
9421
9422 * frame.c (Qnoelisp): New symbol.
9423 (syms_of_frame): Initialize it.
9424 (Fdelete_frame): Use it to distinguish a mere `force' passed from some
9425 harmless Elisp code, from a strong `force' from x_connection_closed.
9426 * frame.h (Qnoelisp): Declare.
9427 * xterm.c (x_connection_closed): Pass `noelisp'.
9428
9429 * lisp.h (struct Lisp_Misc_Any, struct Lisp_Marker)
9430 (struct Lisp_Overlay, struct Lisp_Kboard_Objfwd)
9431 (struct Lisp_Save_Value, struct Lisp_Free): Use enum Lisp_Misc_Type
9432 rather than `int' for the type of `type'.
9433
94342008-02-10 Dan Nicolaescu <dann@ics.uci.edu>
9435
9436 * s/gnu-linux.h: Remove support for non-ELF and linux-1.x.
9437
9438 * Makefile.in (GNUC): Remove support for gcc-1.x.
9439
94402008-02-10 Richard Stallman <rms@gnu.org>
9441
9442 * lisp.h (ASET): Use AREF, not ASLOT.
9443
94442008-02-10 Stefan Monnier <monnier@iro.umontreal.ca>
9445
9446 * lisp.h (ASET): Check bounds.
9447
94482008-02-10 Glenn Morris <rgm@gnu.org>
9449
9450 * buffer.c (mode-name): Doc fix.
9451
94522008-02-09 Dan Nicolaescu <dann@ics.uci.edu>
9453
9454 * Makefile.in:
9455 * emacs.c:
9456 * gmalloc.c:
9457 * keyboard.c:
9458 * lisp.h:
9459 * m/ibm370aix.h:
9460 * process.c:
9461 * regex.c:
9462 * s/hpux.h:
9463 * sysdep.c:
9464 * sysselect.h:
9465 * systty.h:
9466 * unexec.c:
9467 * w32term.c:
9468 * xsmfns.c:
9469 * xterm.c: Remove code that deals with obsolete variables.
9470
9471 * s/msdos.h (DONT_NEED_ENVIRON): Don't define.
9472
9473 * ecrt0.c: Replace the DONT_NEED_ENVIRON test with MSDOS test,
9474 nothing else needs it anymore.
9475
94762008-02-09 Eli Zaretskii <eliz@gnu.org>
9477
9478 * buffer.h (FETCH_CHAR_AS_MULTIBYTE): Use unibyte_to_multibyte_table
9479 instead of unibyte_char_to_multibyte.
9480
94812008-02-09 Dan Nicolaescu <dann@ics.uci.edu>
9482
9483 * s/gnu-linux.h: Remove commented out code.
9484
9485 * unexec.c: Remove references to obsolete variable COFF_ENCAPSULATE.
9486
9487 * Makefile.in: Update what RMS says about using autoconf.
9488 (C_COMPILER, COFF_ENCAPSULATE, MAKE_PARALLEL): Remove obsolete variable.
9489 (C_SWITCH_MACHINE_1, C_SWITCH_SYSTEM_1, C_SWITCH_SITE_1)
9490 (C_SWITCH_X_SITE_1, C_SWITCH_X_MACHINE_1)
9491 (C_SWITCH_X_SYSTEM_1): Move invariant code outside conditional.
9492
94932008-02-08 Stefan Monnier <monnier@iro.umontreal.ca>
9494
9495 * keymap.c (Fkey_description): Move side effect outside of macro call.
9496
9497 * xfaces.c (Finternal_make_lisp_face):
9498 * keyboard.c (add_command_key, parse_menu_item): Use ASET.
9499
9500 * fontset.c (free_face_fontset): Use FONTSET_FROM_ID.
9501 (syms_of_fontset): Use ASET.
9502
9503 * fns.c (concat): Move side effect outside of macro call.
9504 (hash_clear): Use ASET.
9505
95062008-02-08 Richard Stallman <rms@gnu.org>
9507
9508 * frame.c (Fdelete_frame): If FORCE, don't call hooks.
9509 If FORCE, and frame has a surrogate minibuffer for another frame,
9510 delete the other frame first.
9511
95122008-02-07 Timo Savola <timo.savola@iki.fi>
9513
9514 * xterm.c (x_detect_focus_change): Handle embed client message.
9515 (handle_one_xevent): Ditto.
9516 (handle_one_xevent): If embedded and we get a button press/release,
9517 request focus.
9518 (xembed_set_info, xembed_send_message): New functions.
9519 (x_make_frame_visible): Call xembed_set_info if embedded.
9520 (x_make_frame_invisible): Call xembed_set_info if embedded.
9521 (x_term_init): Initialize Xatom_XEMBED.
9522 (x_make_frame_visible): Check for FRAME_X_EMBEDDED_P also.
9523 (x_iconify_frame): Ditto.
9524
9525 * xterm.h (struct x_display_info): Add AtomXatom_XEMBED.
9526 (enum xembed_info, enum xembed_message, enum xembed_focus)
9527 (enum xembed_modifier, enum xembed_accelerator): New.
9528 (xembed_set_info, xembed_send_message): Declare.
9529 (FRAME_X_EMBEDDED_P): New.
9530
9531 * gtkutil.c (xg_create_frame_widgets): If frame is embedded, call
9532 gtk_plug_new.
9533
9534 * xfns.c (Fx_create_frame): Do not override the explicitly set parent
9535 window ID of a frame.
9536 (x_window): Reparent frame if embedded.
9537 (Fx_create_frame): Don't set border width if embedded.
9538
9539 * emacs.c (USAGE3): Add --parent-id.
9540 (standard_args): Ditto.
9541
95422008-02-07 Jan Djärv <jan.h.d@swipnet.se>
9543
9544 * coding.c (DECODE_EMACS_MULE_COMPOSITION_CHAR): Use "do...while (0)".
9545
95462008-02-07 Jim Meyering <meyering@redhat.com>
9547
9548 Use "do...while (0)", not "if (1)...else" in macro definitions.
9549 The latter provokes a warning from gcc about the empty else, when
9550 followed by ";". Also, without that trailing semicolon, it would
9551 silently swallow up any following statement.
9552 * syntax.h (SETUP_SYNTAX_TABLE)
9553 (SETUP_SYNTAX_TABLE_FOR_OBJECT): Likewise.
9554 * buffer.h (DECODE_POSITION): Likewise.
9555 * character.h (FETCH_STRING_CHAR_ADVANCE): Likewise.
9556 (FETCH_STRING_CHAR_AS_MULTIBYTE_ADVANCE): Likewise.
9557 (FETCH_STRING_CHAR_ADVANCE_NO_CHECK): Likewise.
9558 (FETCH_CHAR_ADVANCE): Likewise.
9559 (FETCH_CHAR_ADVANCE_NO_CHECK): Likewise.
9560
95612008-02-07 Jim Meyering <meyering@redhat.com>
9562
9563 * lread.c [lint]: Don't include <sys/inode.h>.
9564
95652008-02-07 Stefan Monnier <monnier@iro.umontreal.ca>
9566
9567 * xselect.c (x_handle_dnd_message):
9568 * xmenu.c (digest_single_submenu, xmenu_show):
9569 * xdisp.c (with_echo_area_buffer_unwind_data)
9570 (format_mode_line_unwind_data, unwind_format_mode_line)
9571 (display_menu_bar):
9572 * eval.c (Ffetch_bytecode):
9573 * doc.c (store_function_docstring):
9574 * ccl.c (resolve_symbol_ccl_program, ccl_get_compiled_code)
9575 (Fccl_execute, Fccl_execute_on_string, Fregister_code_conversion_map):
9576 * buffer.c (add_overlay_mod_hooklist): Use ASET.
9577
95782008-02-07 Kenichi Handa <handa@m17n.org>
9579
9580 * ftxfont.c (ftxfont_open): Don't set
9581 dpyinfo->smallest_font_height and dpyinfo->smallest_char_width to 0.
9582
9583 * ftfont.c (ftfont_open): Fix previous change.
9584
95852008-02-06 Jason Rumney <jasonr@gnu.org>
9586
9587 * w32font.c (w32font_text_extents): Fill in lbearing metric.
9588 Use cached metrics for ASCII characters.
9589 (w32font_open_internal): Don't set font's owning_frame.
9590 Cache metrics for ASCII characters.
9591
9592 * w32font.h (struct w32font_info): Add ascii_metrics.
9593 Remove owning_frame.
9594
95952008-02-06 Kenichi Handa <handa@ni.aist.go.jp>
9596
9597 * xdisp.c (x_produce_glyphs): Don't set it->ascent and it->descent
9598 to negative value.
9599
9600 * ftxfont.c (ftxfont_draw): Use s->font_info, not face->font_info.
9601
9602 * ftfont.c (ftfont_open): Fix calculation of font->font.average_width.
9603
9604 * charset.c (syms_of_charset): Set QCtest and Qeq.
9605
96062008-02-06 Stefan Monnier <monnier@iro.umontreal.ca>
9607
9608 * process.c (Fstart_process):
9609 * callproc.c (Fcall_process): Handle the case where
9610 Funhandled_file_name_directory returns nil.
9611
9612 * font.h (enum lgstring_indices, enum lglyph_indices): New enums.
9613 (LGSTRING_SLOT, LGSTRING_SET_SLOT): New macros.
9614 * font.c (check_gstring): Use them and AREF to access the vector before
9615 we know it's really a gstring.
9616 (Ffont_shape_text): Fix typo.
46e722a9 9617 (Ffont_shape_text, Ffont_otf_alternates): Fix up int/Lisp_Object mixups.
aac0c6e3
MR
9618
9619 * composite.h (Fcompose_region_internal, Fcompose_string_internal):
9620 Declare.
9621
9622 * chartab.c (make_sub_char_table): Remove noop-yet-incorrect statement.
9623
96242008-02-05 Jason Rumney <jasonr@gnu.org>
9625
9626 * w32font.c (w32font_open_internal): Fill min_width with tmAveCharWidth.
9627 Set smallest_font_height and smallest_char_width in display info.
9628
96292008-02-05 Kenichi Handa <handa@ni.aist.go.jp>
9630
9631 * coding.c (decode_eol): Pay attention to coding->dst_multibyte.
9632
96332008-02-05 Miles Bader <miles@gnu.org>
9634
9635 * xfaces.c (get_lface_attributes, merge_named_face)
9636 (lookup_named_face, lookup_derived_face, realize_named_face):
9637 Revert 2008-02-01 change by cyd@stupidchicken.com.
9638
96392008-02-04 Kenichi Handa <handa@ni.aist.go.jp>
9640
9641 * fontset.c (Ffontset_info): Handle the case of inhibitting the
9642 fallback fonts.
9643 (Ffontset_info) [USE_FONT_BACKEND]: Fix getting of opened font names.
9644
96452008-02-04 Jason Rumney <jasonr@gnu.org>
9646
9647 * w32font.c (w32font_open_internal): Use font_unparse_fcname to
9648 set full_name.
9649 (w32font_open_internal): Use xmalloc, xrealloc, xfree.
9650
96512008-02-03 Jason Rumney <jasonr@gnu.org>
9652
9653 * makefile.w32-in (OBJ1): Include font.o here.
9654 (FONTOBJ) [USE_FONTBACKEND]: Instead of here.
9655
96562008-02-02 Jason Rumney <jasonr@gnu.org>
9657
9658 * makefile.w32-in (temacs): Bump EMHEAP to 21.
9659
96602008-02-01 Jason Rumney <jasonr@gnu.org>
9661
9662 * s/cygwin.h: Define VIRT_ADDR_VARIES.
9663
9664 * puresize.h [VIRT_ADDR_VARIES]: Don't include CYGWIN in condition.
9665
96662008-02-01 Andreas Schwab <schwab@suse.de>
9667
9668 * Makefile.in (shortlisp, lisp): Update for rename of
9669 ../lisp/language/myanmar.el.
9670
96712008-02-01 Chong Yidong <cyd@stupidchicken.com>
9672
9673 * xfaces.c (get_lface_attributes): Delete function.
9674 (merge_named_face, lookup_named_face, lookup_derived_face)
9675 (realize_named_face): Call lface_from_face_name directly, and use
9676 the fact that merge_face_vectors does not alter its FROM argument.
9677
96782008-02-01 Jason Rumney <jasonr@gnu.org>
9679
9680 * w32term.c (w32_read_socket) <WM_CHAR>: Decode non-Unicode
9681 input in the default locale. Handle non-Unicode multibyte input.
9682
96832008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
9684
9685 * fontset.c (reorder_font_vector): Exclude nil elements from the
9686 font group. Don't try multiple fonts.
9687 (fontset_font): Adjust for the above change.
9688 (Finternal_char_font): Return nil if the found font doesn't
9689 contain the character ch.
9690
9691 * Makefile.in (lisp, shortlisp): Add cham.el.
9692
96932008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
9694
9695 * font.h (FONTP): Make it return 1 also for a font-object.
9696
9697 * .gdbinit (xfontset): New function.
9698
9699 * font.c (font_find_for_lface): Check if the character C is
9700 supported or not only for the first font.
9701
9702 * fontset.c (reorder_font_vector): Fix typo.
9703 (fontset_find_font): Don't add a font-spec specifying a script.
9704 Use 0 (not Qt) for the indication of empty font-group. Change the
9705 format of RFONT-DEF. Return Qt if no font in the font-group
9706 support the character.
9707 (fontset_font): Adjust for the above change. If no font was
9708 found the character, remember that.
9709 (face_for_char): Adjust for the change of RFONT-DEF.
9710 (Fset_fontset_font): Allow nil for FONT-SPEC to explicitly specify
9711 no font for the target.
9712 (Finternal_char_font): Adjust for the change of RFONT-DEF.
9713
97142008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
9715
9716 * font.c (font_load_for_face): Handle the case that the font in
9717 face->lface is a string.
9718
97192008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
9720
9721 * xfaces.c (set_lface_from_font_and_fontset): Set the fontname in lface.
9722
97232008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
9724
9725 * xfaces.c (Finternal_set_lisp_face_attribute) [USE_FONT_BACKEND]:
9726 Fix previous change. If the frame is not on a window system,
9727 signal an error.
9728
97292008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
9730
9731 * coding.c (decode_coding_object, encode_coding_object): Adjust
9732 marker positions after conversion.
9733
9734 * lisp.h (struct Lisp_Marker): New member need_adjustment.
9735
97362008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
9737
9738 * font.c (font_find_for_lface): Fix the handling of the return
9739 value of font_has_char.
9740 (Ffont_shape_text): Fix previous change.
9741
9742 * fontset.c (FONTSET_REF_AND_RANGE): Delete it.
9743 (fontset_ref_and_range): Delete it.
9744 (fontset_find_font): Call char_table_ref_and_range instead of
9745 FONTSET_REF_AND_RANGE.
9746 (make_fontset): Don't setup font groups of Latin here.
9747 (Fset_fontset_font): Don't overwrite the setting of FONTSET_ASCII.
9748 (new_fontset_from_font): Make the specified font the default for
9749 all Latin characters.
9750
97512008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
9752
9753 * xfaces.c (Finternal_set_lisp_face_attribute): Check if the frame
9754 is on a window system before accessing the fontset of the frame.
9755
97562008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
9757
9758 * Makefile.in (lisp, shortlisp): Add kherm.el and myanmar.el.
9759
9760 * ftfont.c (ftfont_driver): Set ftfont_shape in ftfont_driver only
9761 when both HAVE_M17N_FLT and HAVE_LIBOTF are defined.
9762
9763 * font.c (Ffont_shape_text): If the font driver doesn't have a
9764 shaper function, make zero-width glyphs to have at least one-pixel
9765 width. Fix setting of `to' field of glyphs.
9766
97672008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
9768
9769 * ftfont.c (ftfont_drive_otf): Fix setting of FROM and TO slots of
9770 glyphs.
9771
9772 * font.h (struct font_driver): Improve docstring of member `shape'.
9773
97742008-02-01 Kenichi Handa <handa@m17n.org>
9775
9776 * composite.c (syms_of_composite): Fix docstring of
9777 auto-composition-function.
9778
9779 * font.h (LGLYPH_SIZE): New macro.
9780
9781 * font.c (Ffont_fill_gstring): Stop filling when a character not
9782 supported by the font is found.
9783 (Ffont_shape_text): When a shape callback function returns nil,
9784 try at most two more times with larger gstring.
9785 (Ffont_at): Fix getting of w. Call font_at with correct 5th argument.
9786
9787 * xdisp.c (handle_auto_composed_prop): Change the argument to
9788 auto-composition-function.
9789
9790 * ftfont.c (ftfont_encode_char): Use the macro FONT_INVALID_CODE.
9791 (ftfont_shape_by_flt): If an element of lgstring is nil, make a
9792 Lispy glyph and store it in the lgstring.
9793
9794 * xfont.c (xfont_encode_char): Use the macro FONT_INVALID_CODE.
9795
9796 * xftfont.c (xftfont_encode_char): Use the macro FONT_INVALID_CODE.
9797
97982008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
9799
9800 * font.c (Ffont_shape_text): Avoid unnecessary composition.
9801
9802 * fontset.c (Vfont_encoding_charset_alist): New variable.
9803 (syms_of_fontset): DEFVAR it.
9804 (reorder_font_vector, fontset_find_font): Optimize for the case of
9805 no need of reordering.
9806 (face_for_char): Map the charset property by
9807 Vfont_encoding_charset_alist.
9808
98092008-02-01 Jason Rumney <jasonr@gnu.org>
9810
9811 * w32font.c (logfonts_match): Don't check adstyle here.
9812 (font_matches_spec): Check here against physical font instead.
9813 (add_font_entity_to_list): Avoid some substitutions.
9814
9815 * font.c (font_parse_fcname): Default weight and slant to normal.
9816 (font_score): Prefer normal fonts if weight or slant unspecified.
9817 (font_score) [WINDOWSNT]: Scale weight difference down to closer
9818 match freetype scores.
9819
98202008-02-01 Jason Rumney <jasonr@gnu.org>
9821
9822 * w32font.c (w32font_text_extents): Don't use the frame stored in the
9823 font, as it may have been deleted.
9824 (w32_enumfont_pattern_entity): Map generic family to adstyle using
9825 most common hyphenless variation.
9826 (logfonts_match): Check generic family.
9827 (font_matches_spec): Don't check generic family here.
9828 (fill_in_logfont): Set generic family based on adstyle.
9829
9830 * w32font.h (w32font_get_cache): Update declaration.
9831
98322008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
9833
9834 * ftfont.c (ftfont_get_cache): Adjust the argument type.
9835
9836 * frame.c (x_set_font_backend): Don't call Fclear_font_cache.
9837 If none of the new drivers are available, call font_update_drivers
9838 with the old drivers.
9839
9840 * w32font.c (w32font_get_cache): Adjust the argument type.
9841
9842 * xfont.c (xfont_get_cache): Adjust the argument type.
9843
9844 * font.h (struct font_driver): Change argument type of get_cache.
9845
9846 * xftfont.c (xftfont_start_for_frame): Delete prototype.
9847
9848 * font.c (Ffont_get): Fix arguments to Fassoc.
9849 (font_prepare_cache, font_finish_cache, font_get_cache): New functions.
9850 (font_clear_cache): New function.
9851 (font_list_entities, font_matching_entity): Use font_get_cache.
9852 (font_update_drivers): Call font_clear_cache when finishing a driver.
9853
9854 * fontset.c (fontset_find_font): Fix previous change.
9855
98562008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
9857
9858 * xterm.c (x_check_font) [USE_FONT_BACKEND]: Don't access
9859 dpyinfo->font_table.
9860 (x_delete_display) [USE_FONT_BACKEND]: Likewise.
9861 (x_delete_terminal) [USE_FONT_BACKEND]: Likewise.
9862
9863 * font.c (font_at): Handle the case that the arg C is negative.
9864 Handle the unibyte case.
9865 (Ffont_at): Call font_at with the arg C -1.
9866
9867 * xdisp.c (handle_auto_composed_prop): Don't get a character at
9868 the position here, and call font_at with the arg C -1.
9869 Don't check the range of the existing composition at the point.
9870
98712008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
9872
9873 * fontset.c (fontset_add): New args charset_id and family.
9874 Change caller.
9875 (load_font_get_repertory, fontset_find_font): Assume that
9876 font_spec is always a font-spec object.
9877 (Fset_fontset_font): Always store a font-spec object in a fontset.
9878
9879 * xdisp.c (handle_auto_composed_prop): Use Fget_text_property
9880 instead of get_property_and_range.
9881
98822008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
9883
9884 * xftfont.c (struct xftfont_info): Delete the member ft_face.
9885 (xftfont_open): Don't keep locking face.
9886 (xftfont_close): Don't unlock face.
9887 (xftfont_anchor_point, xftfont_shape): Lock and unlock face.
9888
9889 * fontset.c (fontset_find_font): Don't prefer a font of
9890 supplementary charset.
9891
98922008-02-01 Kenichi Handa <handa@m17n.org>
9893
9894 * ftfont.c (struct OpenTypeSpec): Rename members script_tag to
9895 script, langsys_tag to langsys, new member script.
9896 (OTF_TAG_STR): Terminate by '\0'.
867d4bb3 9897 (ftfont_get_open_type_spec): If :otf prop is spec, limit the
aac0c6e3
MR
9898 listing to the script specified in that property. Fix arg to
9899 OTF_check_features.
9900
99012008-02-01 Jason Rumney <jasonr@gnu.org>
9902
9903 * w32font.h: New file.
9904
9905 * w32font.c: Include it.
9906 (struct w32font_info): Add owning_frame field. Move to w32font.h.
9907 (w32font_open): Set owning_frame.
9908 (w32font_text_extents): Use owning_frame.
9909 (struct font_callback_data): Add opentype_only field.
9910 (add_font_entity_to_list): Use it to filter fonts.
9911 Don't check against full name.
9912 (w32font_list_internal): New function.
9913 (w32font_list): Use it.
9914 (w32font_match_internal): New function.
9915 (w32font_match): Use it.
9916 (w32font_open_internal): New function.
9917 (w32font_open): Use it.
9918 (w32font_get_cache, w32font_close, w32font_has_char)
9919 (w32font_encode_char, w32font_text_extents, w32font_draw):
9920 Make non-static.
9921
9922 * makefile.w32-in (w32font.o): Depend on w32font.h.
9923
99242008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
9925
9926 * charset.c (Fdefine_charset_internal): Record a supplementary
9927 charset at the tail of Vcharset_order_list.
9928
9929 * font.c (Ffont_shape_text): Fix the return value.
9930
9931 * ftfont.c (OTF_SYM_TAG, OTF_TAG_STR): Fix argument names.
9932
9933 * xdisp.c (handle_auto_composed_prop): Fix previous change.
9934
99352008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
9936
9937 * ftfont.c (struct OpenTypeSpec): New struct.
9938 (OTF_SYM_TAG, OTF_TAG_STR): New macros.
9939 (ftfont_get_open_type_spec): New function.
9940 (ftfont_list) [HAVE_LIBOTF]: Check otf-spec property.
9941
9942 * lread.c (read1): Redo the previous change with checking Vpurify_flag.
9943
99442008-02-01 Jason Rumney <jasonr@gnu.org>
9945
9946 * w32font.c (add_font_entity_to_list): Compare only the beginning
9947 of full name.
9948
99492008-02-01 Kenichi Handa <handa@m17n.org>
9950
9951 * xdisp.c (handle_auto_composed_prop): Simplify the code.
9952 Never return HANDLED_RECOMPUTE_PROPS.
9953
99542008-02-01 Kenichi Handa <handa@m17n.org>
9955
9956 * font.c (font_gstring_produce): Delete it.
9957
9958 * composite.h (COMPOSITION_METHOD):
9959 Handle COMPOSITION_WITH_GLYPH_STRING.
9960
99612008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
9962
9963 * xfont.c (Qx): Delete.
9964 (syms_of_xfont): Don't initialize Qx.
9965
9966 * composite.h (enum composition_method):
9967 Define COMPOSITION_WITH_GLYPH_STRING unconditionally.
9968
99692008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
9970
9971 * xfaces.c [HAVE_WINDOW_SYSTEM]: Include "font.h" unconditionally.
9972 (choose_face_font): Accept new form of font-spec.
9973
9974 * frame.h (font_driver_list): Declare it unconditionally.
9975 (struct frame): Define members font_driver_list and font_data_list
9976 unconditionally.
9977
9978 * fontset.c: Include "font.h" unconditionally.
9979 (generate_ascii_font_name): Use font_parse_xlfd and font_unparse_xlfd.
9980 (Fset_fontset_font): Accept a font-spec object.
9981
9982 * font.c (font_unparse_xlfd): If pixel_size is zero, make the
9983 PIXEL_SIZE part a wild card.
9984
9985 * dispextern.h (struct glyph_string): Define members clip and
9986 num_clips unconditionally.
9987 (struct face): Define members font_info and extra unconditionally.
9988
9989 * ftfont.c (ftfont_open): Set members maybe_otf and otf of
9990 ftfont_info only when HAVE_LIBOTF is defined.
9991
99922008-02-01 Andreas Schwab <schwab@suse.de>
9993
9994 * xdisp.c (back_to_previous_visible_line_start): Fix type of beg
9995 and end.
9996
99972008-02-01 Jason Rumney <jasonr@gnu.org>
9998
9999 * w32font.c (w32font_driver): Add new fields.
10000
100012008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
10002
10003 * Makefile.in (ALL_CFLAGS): Add @M17N_FLT_CFLAGS@.
10004 (FONTSRC, FONTOBJ) [HAVE_WINDOW_SYSTEM]: Set them unconditionally.
10005 (LIBES): Add @M17N_FLT_CFLAGS@.
10006
10007 * composite.c (compose_text): Don't treat the new style
10008 composition specially.
10009
10010 * emacs.c (main): Call syms_of_font unconditionally.
10011
10012 * font.h (FONT_ENTITY_NOT_LOADABLE)
10013 (FONT_ENTITY_SET_NOT_LOADABLE): New macros.
10014 (LGSTRING_XXXX, LGLYPH_XXX): Adjust for the change of lispy gstring.
10015 (struct font_driver): New member shape.
10016 (font_registry_charsets): Extern it.
10017 (font_find_for_lface, font_prepare_composition): Adjust prototype.
10018 (font_otf_capability, font_drive_otf): Delete their externs.
10019
10020 * font.c [HAVE_M17N_FLT]: Include <m17n-flt.h>.
10021 (font_charset_alist, font_registry_charsets): Move from xfont.c
10022 and rename.
10023 (font_prop_validate_otf): New function.
10024 (font_property_table): Register it for QCotf.
10025 (DEVICE_DELTA, adjust_anchor, REPLACEMENT_CHARACTER)
10026 (font_drive_otf): Delete.
10027 (font_prepare_composition): New arg F. Adjust for the change of
10028 lispy gstring.
10029 (font_find_for_lface): New arg C.
10030 (font_load_for_face): Adjust for the change of font_find_for_lface.
10031 (Ffont_make_gstring, Ffont_fill_gstring): Adjust for the change of
10032 lispy gstring.
10033 (Ffont_shape_text): New function.
10034 (Fopen_font): If the font size is not given, use 12-pixel.
10035 (Ffont_at): New arg STRING.
10036 (syms_of_font): Initalize font_charset_alist.
10037 Declare Ffont_shape_text as a Lisp function. Call syms_of_XXfont
10038 conditionally.
10039
10040 * fontset.c (fontset_find_font) [USE_FONT_BACKEND]: Try multiple
10041 fonts of the same font-spec. Change the format of RFONT-DEF.
10042 (face_for_char, make_fontset_for_ascii_face, Finternal_char_font):
10043 Adjust for the change of RFONT-DEF.
10044 (Fset_fontset_font) [USE_FONT_BACKEND]: Handle new format of font-spec.
10045
10046 * ftfont.h: New file.
10047
10048 * ftfont.c: Don't include Freetype headers. Include "ftfont.h".
10049 (struct ftfont_info) [HAVE_LIBOTF]: New members maybe_otf and otf.
10050 (ftfont_open) [HAVE_LIBOTF]: Initialize the above members.
10051 (ftfont_driver) [HAVE_LIBOTF, HAVE_M17N_FLT]: Don't set
10052 font_otf_capability and font_drive_otf, set ftfont_shape.
10053 (ftfont_list): Adjust for the change of :otf property value.
10054 (struct MFLTFontFT) [HAVE_LIBOTF, HAVE_M17N_FLT]: New struct.
10055 (ftfont_get_glyph_id, ftfont_get_metrics, ftfont_check_otf)
10056 (adjust_anchor, ftfont_drive_otf, ftfont_shape_by_flt)
10057 (ftfont_shape) [HAVE_LIBOTF, HAVE_M17N_FLT]: New function.
10058 (DEVICE_DELTA) [HAVE_LIBOTF, HAVE_M17N_FLT]: New macro.
10059 (otf_gstring, gstring, m17n_flt_initialized): New variables.
10060
10061 * w32term.c (x_draw_composite_glyph_string_foreground):
10062 Adjust for the change of lispy gstring.
10063
10064 * xdisp.c (handle_composition_prop): Adjust for the change of
10065 lispy gstring. Call a function for auto-composition with the
10066 third arg it->window.
10067 (fill_composite_glyph_string): Adjust for the change of lispy string.
10068 (x_produce_glyphs): Adjust for the change of font_prepare_compositionl.
10069
10070 * xfaces.c (set_font_frame_param): Adjust for the change of
10071 font_find_for_lface.
10072
10073 * xfont.c (x_font_charset_alist): Move to font.c and rename.
10074 (xfont_registry_charsets): Likewise. Change caller.
10075 (syms_of_xfont): Don't handle x_font_charset_alist.
10076
10077 * xftfont.c: Include "ftfont.h".
10078 (struct xftfont_info) [HAVE_LIBOTF]: New members maybe_otf and otf.
10079 (xftfont_open) [HAVE_LIBOTF]: Initialize the above members.
10080 (xftfont_close) [HAVE_LIBOTF]: Close otf.
10081 (xftfont_shape) [HAVE_LIBOTF, HAVE_M17N_FLT]: New function.
10082 (syms_of_xftfont) [HAVE_LIBOTF, HAVE_M17N_FLT]:
10083 Set xftfont_driver.shape to xftfont_shape.
10084
10085 * xterm.c (x_draw_composite_glyph_string_foreground): Adjust for
10086 the change of lispy gstring.
10087
100882008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
10089
10090 * ftxfont.c (ftxfont_end_for_frame): Fix array indexing error.
10091
100922008-02-01 Jason Rumney <jasonr@gnu.org>
10093
10094 * w32font.c (w32font_draw): Fill background manually.
10095
100962008-02-01 Jason Rumney <jasonr@gnu.org>
10097
10098 * font.c (Qfontp): Remove unused symbol.
10099 (QCantialias): New symbol.
10100 (syms_of_font): Define it.
10101 (font_property_table): Set a validator for QCantialias.
10102
10103 * w32font.c (CLEARTYPE_QUALITY, CLEARTYPE_NATURAL_QUALITY):
10104 Define if not already.
10105 (QCfamily): Share with xfaces.c.
10106 (Qstandard, Qsubpixel, Qnatural): New symbols.
10107 (syms_of_w32font): Define them. Don't define QCfamily here.
10108 (w32_antialias_type, lispy_antialias_type): New functions.
10109 (w32_enumfont_pattern_entity): New arg requested_font.
10110 Set antialias parameter if non-default was requested.
10111 (fill_in_logfont): Fill in lfQuality if :antialias specified.
10112
101132008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
10114
10115 * lread.c (read1): Undo the previous change.
10116
101172008-02-01 CHENG Gao <chenggao@gmail.com> (tiny change)
10118
10119 * frame.c (Fdelete_frame): Call font_update_drivers only when
10120 USE_FONT_BACKEND is defined.
10121
101222008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
10123
10124 * font.h (struct font_bitmap): New member bits_per_pixel.
10125 (struct font_driver): New members start_for_frame and end_for_frame.
10126 (struct font_data_list): New struct.
10127 (font_put_frame_data, font_get_frame_data): Extern them.
10128
10129 * frame.h (struct frame): New member font_data_list.
10130
10131 * font.c (font_update_drivers): Call driver->start_for_frame and
10132 driver->end_for_frame at proper timings.
10133 (font_put_frame_data, font_get_frame_data): New functions.
10134 (Ffont_spec): Add usage in the docstring.
10135
10136 * frame.c (make_frame): Initialize f->font_data_list to NULL.
10137 (Fdelete_frame): Call font_update_drivers.
10138
10139 * xftfont.c (struct xftface_info): Delete the member xft_draw.
10140 (xftfont_prepare_face, xftfont_done_face): Adjust for the above change.
10141 (xftfont_get_xft_draw): New function.
10142 (xftfont_draw): Get XftDraw by xftfont_get_xft_draw.
10143 (xftfont_end_for_frame): New function.
10144 (syms_of_xftfont): Set xftfont_driver.end_for_frame.
10145
10146 * ftxfont.c (ftxfont_get_gcs): Rename from ftxfont_create_gcs.
10147 Change argument. Cache GCs in the per-frame data.
10148 (struct ftxfont_frame_data): New struct.
10149 (ftxfont_draw_bitmap): New arg gc_fore and flush.
10150 (ftxfont_prepare_face, ftxfont_done_face): Delete them.
10151 (ftxfont_draw): Get GCs by ftxfont_get_gcs. Reflect s->clip in GCs.
10152 (ftxfont_end_for_frame): New function.
10153 (syms_of_ftxfont): Set ftxfont_driver.end_for_frame.
10154
10155 * ftfont.c (ftfont_get_bitmap): Set bitmap->bits_per_pixel.
10156
101572008-02-01 Kenichi Handa <handa@m17n.org>
10158
10159 * xselect.c (Vselection_coding_system)
10160 (Vnext_selection_coding_system): Delete them.
10161 (syms_of_xselect): Don't declare selection-coding-system and
10162 next-selection-coding-system. They are declared in select.el.
10163
101642008-02-01 Jason Rumney <jasonr@gnu.org>
10165
10166 * w32term.h (WM_UNICHAR, UNICODE_NOCHAR): Define if not already.
10167
10168 * w32fns.c: Include imm.h.
10169 (get_composition_string_fn, get_ime_context_fn): New optional
10170 system functions.
10171 (globals_of_w32fns): Load them from imm32.dll.
10172 (ignore_ime_char): New flag.
10173 (w32_wnd_proc): Handle WM_UNICHAR, WM_IME_CHAR and
10174 WM_IME_ENDCOMPOSITION messages.
10175
10176 * w32term.c (w32_read_socket) [WM_UNICHAR]: Handle as
10177 MULTIBYTE_CHAR_KEYSTROKE_EVENT.
10178
101792008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
10180
10181 * lread.c (READCHAR): Call readchar with the 2nd arg NULL.
10182 (READCHAR_REPORT_MULTIBYTE): New macro.
10183 (readchar): New 2nd arg MULTIBYTE.
10184 (read1): Use READCHAR_REPORT_MULTIBYTE for the first read.
10185 Make symbol's name multibyte according to the multibyteness of the
10186 source.
10187
101882008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
10189
10190 * xfaces.c (face_for_overlay_string): Call lookup_face with
10191 correct arguments (fix of synching with the trunk).
10192
101932008-02-01 Kenichi Handa <handa@m17n.org>
10194
10195 * font.c (font_prop_validate_symbol, font_prop_validate_style)
10196 (font_prop_validate_non_neg, font_prop_validate_spacing):
10197 Delete argument prop_index.
10198 (font_property_table): Change arguments to validater. Change Callers.
10199 (font_lispy_object): Delete.
10200 (font_at): Use font_find_object instead fo font_lispy_object.
10201
102022008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
10203
10204 * fileio.c (Fexpand_file_name): Adjust multibyteness of directory
10205 and file names.
10206
102072008-02-01 Jason Rumney <jasonr@gnu.org>
10208
10209 * w32font.c (add_font_name_to_list): Avoid vertical fonts.
10210 (font_matches_spec): Remove debug output.
10211 (add_font_entity_to_list): Avoid using substituted fonts.
10212
102132008-02-01 Jason Rumney <jasonr@gnu.org>
10214
10215 * doc.c (Fsnarf_documentation):
10216 * Makefile.in (temacs${EXEEXT}, mostlyclean): Undo last change.
10217
102182008-02-01 Miles Bader <miles@gnu.org>
10219
10220 * dispextern.h (struct glyph_row): Only define "clip" field if
10221 HAVE_WINDOW_SYSTEM is defined.
10222
102232008-02-01 Stefan Monnier <monnier@iro.umontreal.ca>
10224
10225 Fix up multi-tty merge.
10226
10227 * xterm.c (handle_one_xevent): Remove duplicate code and fix up nesting
10228 and indentation.
10229
10230 * xfaces.c (free_realized_face, clear_face_gcs):
10231 Include font_done_for_face in the input_blocked section, just in case.
10232
10233 * xdisp.c (decode_mode_spec): Use terminal-local coding systems.
10234 (get_char_face_and_encoding): Undo last change and remove the *other*
10235 duplicate definition (i.e. keep the one that's better scoped and that
10236 includes code for the font-backend).
10237
10238 * terminal.c (create_terminal): Default keyboard_coding to
10239 `no-conversion' and terminal_coding to `undecided'.
10240
10241 * lread.c (read1): Use XSETPVECTYPE to set a pseudovector's tag.
10242
10243 * fontset.c (free_realized_fontsets): Check that the table entry does
10244 contain a fontset before trying to compare it to `base'.
10245
10246 * emacs.c (main): Move syms_of_data, syms_of_fileio, syms_of_alloc,
10247 syms_of_charset, and syms_of_coding earlier because init_window_once
10248 now needs Vcoding_system_hash_table to be setup.
10249
10250 * coding.h (default_buffer_file_coding): Remove.
10251
10252 * coding.c (default_buffer_file_coding): Remove.
10253 (Fterminal_coding_system, Fkeyboard_coding_system): Use ->id rather
10254 than ->symbol, and use the terminal-local coding system.
10255 (syms_of_coding): Don't setup the coding-systems that are not
10256 terminal-local.
10257 (Fdefine_coding_system_internal): Use XCAR/XCDR.
10258
10259 * chartab.c (Fmake_char_table, make_sub_char_table, copy_char_table):
10260 Use XSETPVECTYPE now that XSETCHAR_TABLE doesn't set the tag anymore.
10261
10262 * alloc.c (Fmake_char_table, make_sub_char_table): Remove. They're now
10263 in chartab.c and were re-added here by mistake.
10264 (Fpurecopy): Use XSETPVECTYPE after copying a COMPILED pseudovector.
10265
10266 * doc.c (Fsnarf_documentation):
10267 * Makefile.in (temacs${EXEEXT}, mostlyclean): Move buildobj.lst from
10268 src to etc.
10269
10270 * ChangeLog.10: Add mistakenly removed entry.
10271
102722008-02-01 Dan Nicolaescu <dann@ics.uci.edu>
10273
10274 * Makefile.in (fringe.o, minibuf.o): Fix dependencies.
10275
102762008-02-01 Miles Bader <miles@gnu.org>
10277
10278 * xdisp.c (get_char_face_and_encoding): Remove extraneous definition.
10279 Add extra args to FACE_FOR_CHAR.
10280
102812008-02-01 Kenichi Handa <handa@m17n.org>
10282
10283 * keymap.c (where_is_internal_1): If key is a cons, store the copy
10284 in sequence.
10285
10286 * chartab.c (map_sub_char_table, map_char_table): If the range
10287 contains just one character, call the function with that character
10288 even if the depth is not 3.
10289
102902008-02-01 Jason Rumney <jasonr@gnu.org>
10291
10292 * w32font.c (w32font_text_extents): Calculate metrics for the
10293 whole string.
10294
102952008-02-01 Jason Rumney <jasonr@gnu.org>
10296
10297 * w32xfns.c (get_next_msg): Consolidate WM_PAINT messages.
10298
102992008-02-01 Jason Rumney <jasonr@gnu.org>
10300
10301 * w32term.c (x_set_glyph_string_clipping): Use
10302 get_glyph_string_clip_rects.
10303 (x_set_glyph_string_clipping_exactly, x_draw_glyph_string):
10304 Adjust for the change of struct glyph_string.
10305
10306 * w32font.c (w32font_draw): Do clipping here.
10307
103082008-02-01 Kenichi Handa <handa@m17n.org>
10309
10310 * xftfont.c (xftfont_draw): Adjust for the change of struct
10311 glyph_string.
10312
10313 * xterm.c (x_set_glyph_string_clipping): Use
10314 get_glyph_string_clip_rects.
10315 (x_set_glyph_string_clipping_exactly, x_draw_glyph_string):
10316 Adjust for the change of struct glyph_string.
10317
10318 * xdisp.c (get_glyph_string_clip_rects): Reflect s->row->clip to
10319 the resulting clip(s}.
10320 (expose_overlaps): Add arg r. Change callers. Set it to
10321 row->clip temporarily.
10322 (expose_window): Redraw rows overlapping the exposed area.
10323
10324 * dispextern.h (struct glyph_row): New member clip.
10325 (struct glyph_string): Delete members clip_x, clip_y, clip_width,
10326 clip_height, new member clip, and num_clips.
10327
103282008-02-01 Kenichi Handa <handa@m17n.org>
10329
10330 * data.c (Fchar_or_string_p): Fix docstring.
10331
103322008-02-01 Kenichi Handa <handa@m17n.org>
10333
10334 * xftfont.c (xftfont_draw): If s->font_info != s->face->font_info,
10335 create a temporary XftDraw object.
10336
103372008-02-01 Kenichi Handa <handa@m17n.org>
10338
10339 * font.c (Ffontp): Fix docstring.
10340
10341 * coding.c (detect_coding_iso_2022): Don't treat SI/SO codes as a
10342 strong evidence of ISO-2022.
10343
103442008-02-01 Kenichi Handa <handa@m17n.org>
10345
10346 * abbrev.c (abbrev_check_chars): Use CHAR_TABLE_REF, not
10347 SYNTAX_ENTRY_FOLLOW_PARENT.
10348
103492008-02-01 Stefan Monnier <monnier@iro.umontreal.ca>
10350
10351 * fns.c (weak_hash_tables): Rename from Vweak_hash_tables and change
10352 its type.
10353 (make_hash_table, copy_hash_table, sweep_weak_hash_tables, init_fns):
10354 Update to the new type of weak_hash_tables and next_weak.
10355
10356 * lisp.h (struct Lisp_Hash_Table): Change next_weak from Lisp_Object to
10357 a plain C pointer to Lisp_Hash_Table.
10358
10359 * lisp.h (XGCTYPE, GC_HASH_TABLE_P, GC_NILP, GC_NUMBERP, GC_NATNUMP)
10360 (GC_INTEGERP, GC_SYMBOLP, GC_MISCP, GC_VECTORLIKEP, GC_STRINGP)
10361 (GC_CONSP, GC_FLOATP, GC_VECTORP, GC_OVERLAYP, GC_MARKERP)
10362 (GC_INTFWDP, GC_BOOLFWDP, GC_OBJFWDP, GC_BUFFER_OBJFWDP)
10363 (GC_BUFFER_LOCAL_VALUEP, GC_SOME_BUFFER_LOCAL_VALUEP)
10364 (GC_KBOARD_OBJFWDP, GC_PSEUDOVECTORP, GC_WINDOW_CONFIGURATIONP)
10365 (GC_PROCESSP, GC_WINDOWP, GC_SUBRP, GC_COMPILEDP, GC_BUFFERP)
10366 (GC_SUB_CHAR_TABLE_P, GC_CHAR_TABLE_P, GC_BOOL_VECTOR_P, GC_FRAMEP)
10367 (GC_EQ): Remove since they've been identical to their non-GC_
10368 alter-egos ever since the markbit was eradicated.
10369
10370 * alloc.c:
10371 * buffer.c:
10372 * buffer.h:
10373 * data.c:
10374 * fileio.c:
10375 * filelock.c:
10376 * fns.c:
10377 * frame.h:
10378 * lisp.h:
10379 * macterm.c:
10380 * print.c:
10381 * process.c:
10382 * w32fns.c:
10383 * w32menu.c:
10384 * w32term.c:
10385 * xfns.c:
10386 * xmenu.c:
10387 * xterm.c: Replace uses of GC_* macros with the non-GC_ versions.
10388
103892008-02-01 Kenichi Handa <handa@m17n.org>
10390
10391 * chartab.c (map_sub_char_table): Make it work for the top-level
10392 char-table. Fix handling of parent char-table.
10393 (map_char_table): Adjust for the above change.
10394
103952008-02-01 Jason Rumney <jasonr@gnu.org>
10396
10397 * w32font.c (Qgdi): Rename from Qw32.
10398
103992008-02-01 Jason Rumney <jasonr@gnu.org>
10400
10401 * w32bdf.c (get_quoted_string): Make function static.
10402
104032008-02-01 Kenichi Handa <handa@m17n.org>
10404
10405 * xftfont.c (xftfont_open): If one of font's ASCII glyph has
10406 bigger ascent and descent than those of the font, use them as
10407 font's ascent and descent.
10408
104092008-02-01 Kenichi Handa <handa@m17n.org>
10410
10411 * Makefile.in (${lispsource}international/charprop.el): Move this
10412 target within "#ifdef HAVE_UNIDATA" and "#endif".
10413
104142008-02-01 Kenichi Handa <handa@m17n.org>
10415
10416 * Makefile.in (lisp): Add ${lispsource}language/tai-viet.el.
10417 (shortlisp): Add ../lisp/language/tai-viet.el.
10418
104192008-02-01 Ulrich Mueller <ulm@gentoo.org>
10420
10421 * Makefile.in (${lispsource}international/charprop.el): Depend on
10422 temacs${EXEEXT}.
10423
104242008-02-01 Jason Rumney <jasonr@gnu.org>
10425
10426 * w32font.c (w32font_close): Delete the GDI font object.
10427
10428 * w32menu.c: Include character.h.
10429
10430 * w32proc.c: Likewise.
10431
10432 * w32select.c: Likewise.
10433
10434 * makefile.w32-in (w32proc.o): Depend on character.h.
10435
104362008-02-01 Jason Rumney <jasonr@gnu.org>
10437
10438 * w32fns.c (syms_of_w32fns): Use DEFSYM macro.
10439
10440 * w32menu.c (syms_of_w32menu): Likewise.
10441
10442 * w32proc.c (syms_of_ntproc): Likewise.
10443
10444 * w32select.c (syms_of_w32select): Likewise.
10445
10446 * w32term.c (syms_of_w32term): Likewise.
10447
104482008-02-01 Jason Rumney <jasonr@gnu.org>
10449
10450 * w32font.c (w32font_draw): Delete brush after using it.
10451
104522008-02-01 Jason Rumney <jasonr@gnu.org>
10453
10454 * w32font.c (w32font_open): Don't set font_idx.
10455 (w32font_text_extents): Try GetTextExtentPoint32W before defaulting
10456 to font settings.
10457 (w32font_draw): Fill background explicitly.
10458
104592008-02-01 Jason Rumney <jasonr@gnu.org>
10460
10461 * w32term.c (w32_initialize): Don't call w32font_initialize.
10462
10463 * w32font.c (w32font_info): Remove subranges.
10464 (QCsubranges, Qmodern, Qswiss, Qroman): Remove.
10465 (QCfamily, Qmonospace, Qsans_serif, Qmono, Qsans, Qsans__serif)
10466 (Qraster, Qoutline, Qlatin, Qgreek, Qcoptic, Qcyrillic, Qarmenian)
10467 (Qhebrew, Qarabic, Qsyriac, Qnko, Qthaana, Qdevanagari, Qbengali)
10468 (Qgurmukhi, Qgujarati, Qoriya, Qtamil, Qtelugu, Qkannada)
10469 (Qmalayalam, Qsinhala, Qthai, Qlao, Qtibetan, Qmyanmar, Qgeorgian)
10470 (Qhangul, Qethiopic, Qcherokee, Qcanadian_aboriginal, Qogham)
10471 (Qrunic, Qkhmer, Qmongolian, Qsymbol, Qbraille, Qhan)
10472 (Qideographic_description, Qcjk_misc, Qkana, Qbopomofo, Qkanbun)
10473 (Qyi, Qbyzantine_musical_symbol, Qmusical_symbol, Qmathematical):
10474 New symbols.
10475 (font_callback_data): New struct.
10476 (w32font_list, w32font_match): Use it.
10477 (w32font_open): Don't populate subranges.
10478 (w32font_has_char): Use script Lisp symbols, not subrange bitmask.
10479 (w32font_encode_char): Always return unicode code-point as-is.
10480 (w32font_text_extents): Supply a transformation matrix to
10481 GetGlyphOutline. Never look up by glyph index. Avoid looping
10482 twice. Use unicode version of GetTexExtentPoint32 instead of
10483 glyph index version.
10484 (set_fonts_frame): Remove.
10485 (w32_enumfont_pattern_entity): Add frame parameter, use it to
10486 set frame parameter. Use backward compatible fake foundries.
10487 Save generic family in extra slot under QCfamily. Make width slot
10488 constant. Save QCspacing value. Save list of scripts instead of
10489 binary subranges.
10490 (w32_generic_family, logfonts_match, font_matches_spec): New functions.
10491 (add_font_entity_to_list): Use font_callback_data struct. Filter
10492 unwanted fonts.
10493 (add_one_font_entity_to_list): Use font_callback_data struct.
10494 (w32_registry): Default to iso10646_1.
10495 (fill_in_logfont): Use dpi from extra slot. Don't bother with
10496 string font registries. Don't fill in font name if it is a generic
10497 family name, fill family instead. Use spacing, family and script
10498 extra info to fill pitch, family and charset fields.
10499 (list_all_matching_fonts): Use font_callback_data struct.
10500 (unicode_range_for_char): Remove.
10501 (font_supported_scripts): New function.
10502 (w32font_initialize): Remove.
10503 (syms_of_w32font): Update which symbols are defined.
10504
105052008-02-01 Jason Rumney <jasonr@gnu.org>
10506
10507 * font.c (font_pixel_size): Reverse assq_no_quit args.
10508
10509 * w32term.h (FONT_WIDTH): Report max width, not average.
10510 (FONT_MAX_WIDTH): Remove.
10511 (FONT_AVG_WIDTH): New macro.
10512
10513 * xfaces.c (Fx_list_fonts) [WINDOWSNT]: Remove Windows only
10514 redefinition of FONT_WIDTH.
10515
10516 * w32term.c (x_font_min_bounds): Use FONT_AVG_WIDTH.
10517 (w32_cache_char_metrics): Use FONT_WIDTH.
10518
10519 * w32fns.c (w32_load_system_font, w32_list_fonts): Use FONT_AVG_WIDTH.
10520
105212008-02-01 Jason Rumney <jasonr@gnu.org>
10522
10523 * w32font.c (w32font_open): Make lfHeight negative.
10524
10525 * w32fns.c (x_default_font_parameter): Use new style font name.
10526 (Fx_create_frame, x_create_tip_frame): Initialize resx and resy.
10527
105282008-02-01 Jason Rumney <jasonr@gnu.org>
10529
10530 * w32font.c (QCsubranges): New symbol.
10531 (w32font_open, w32font_has_char): Get subranges from subproperty
10532 of extra.
10533 (w32_enumfont_pattern_entity): Set subranges as subproperty of extra.
10534 (syms_of_w32font): Define :subranges symbol.
10535
10536 * font.c (font_put_extra): Expose externally.
10537
10538 * font.h (font_put_extra): Move declaration from font.c.
10539
10540 * font.c (Ffont_get): Use font driver to determine otf capability.
10541 (adjust_anchor): Check if driver defines anchor_point before using.
10542
10543 * w32font.c (w32font_open): Handle size, height and pixel_size better.
10544 (w32font_draw): Use options.
10545 (w32_enumfont_pattern_entity): Set size to 0 for scalable fonts.
10546 Fix detection of truetype fonts.
10547 (registry_to_w32_charset): Handle charsets other than iso8859-1
10548 expressed as lisp symbols.
10549 (w32_registry): Express charset as lisp symbol.
10550 (fill_in_logfont): Reverse pixel and point height logic.
10551 Don't set width here. Set quality to default.
10552
10553 * w32fns.c (w32_load_system_font): Fix detecting FIXED_PITCH fonts.
10554 (x_to_w32_font): Fill in lfPitchAndFamily correctly.
10555
10556 * xterm.c (x_draw_glyph_string_foreground) [USE_FONT_BACKEND]:
10557 Remove redundant loop and allocation.
10558
10559 * makefile.w32-in (font.o, w32font.o): New objects.
10560 (fontset.o, xdisp.o, xfaces.o, w32fns.o, w32term.o): Depend on font.h.
10561 (FONTOBJ): New group of objects conditioned on USE_FONT_BACKEND.
10562
10563 * xdisp.c (fill_composite_glyph_string): Make the first arg to
10564 STORE_XCHARB a valid l-value.
10565
10566 * w32term.c (w32_native_per_char_metric): Swap width and rbearing
10567 calculations for non-Truetype fonts.
10568 (x_draw_glyph_string): Sync with xterm.c.
10569 (x_draw_glyph_string_foreground) [USE_FONT_BACKEND]:
10570 Remove redundant code.
10571 (w32_initialize) [USE_FONT_BACKEND]: Call w32font_initialize.
10572
10573 * w32term.h (w32_output_data) [USE_FONT_BACKEND]: Add fontp member.
10574 (FRAME_FONT_OBJECT) [USE_FONT_BACKEND]: New macro from xterm.h.
10575
10576 * w32fns.c [USE_FONT_BACKEND]: Port font backend changes from xfns.c.
10577 (x_to_w32_charset, w32_to_x_charset): Expose externally.
10578
10579 * w32font.c: New file for w32 font backend.
10580
105812008-02-01 Kenichi Handa <handa@m17n.org>
10582
10583 * term.c: Don't include "buffer.h" twice.
10584
105852008-02-01 Kenichi Handa <handa@m17n.org>
10586
10587 * character.c (Funibyte_string): New function.
10588 (syms_of_character): Defsubr it.
10589
105902008-02-01 Jason Rumney <jasonr@gnu.org>
10591
10592 * w32term.c [USE_FONT_BACKEND]:
10593 (x_get_font_repertory, note_mouse_movement, x_set_mouse_face_gc)
10594 (x_set_glyph_string_clipping, x_set_glyph_string_clipping_exactly)
10595 (x_draw_glyph_string, x_draw_glyph_string_foreground)
10596 (x_draw_composite_glyph_string_foreground, x_new_fontset2)
10597 (x_free_frame_resources): Sync with xterm.c.
10598
105992008-02-01 Andreas Schwab <schwab@suse.de>
10600
10601 * lread.c (read1): Use CHAR_TABLE_STANDARD_SLOTS to validate
10602 char-table size.
10603
106042008-02-01 Kenichi Handa <handa@m17n.org>
10605
10606 * font.c (check_otf_features): Define it regardless of HAVE_LIBOTF.
10607
106082008-02-01 Kenichi Handa <handa@m17n.org>
10609
10610 * ftfont.c (ftfont_driver): Delete font_otf_gsub and
10611 font_otf_gpos, add font_drive_otf.
10612
10613 * fontset.c (fontset_find_font): Pay attention to font size
10614 specified for a font.
10615 (reorder_font_vector): Check contents of font_def.
10616
10617 * font.c (struct otf_list): Delete it.
10618 (otf_list): Make it a lisp variable.
10619 (otf_open): Use lispy otf_list.
10620 (generate_otf_features): Rename from parse_gsub_gpos_spec.
10621 (check_otf_features): New function.
10622 (font_otf_DeviceTable, font_otf_ValueRecord, font_otf_Anchor):
10623 New functions.
10624 (font_drive_otf): New function merging font_otf_gsub and
10625 font_otf_gpos.
10626 (font_open_for_lface): New arg spec. Change argument order.
10627 (font_load_for_face): Adjust for the change of font_open_for_lface.
10628 (Ffont_drive_otf): New function merging Ffont_otf_gsub and
10629 Ffont_otf_gpos.
10630 (syms_of_font): Staticpro otf_list. Delete defsubr of
10631 Sfont_otf_gsub and Sfont_otf_gpos. Defsubr Sfont_drive_otf.
10632
10633 * xfaces.c (set_font_frame_param): Adjust for the change of
10634 font_open_for_lface.
10635
10636 * font.h (font_open_for_lface): Adjust prototype.
10637 (struct font_driver): Delete members otf_gsub and otf_gpos, add
10638 member otf_drive.
10639 (font_otf_gsub, font_otf_gpos): Delete externs.
10640 (font_drive_otf): Extern it.
10641
106422008-02-01 Kenichi Handa <handa@m17n.org>
10643
10644 * font.c (font_at): If the window W is not on a window system,
10645 return Qnil.
10646
10647 * coding.c (produce_chars, encode_coding): Don't call
10648 insert_from_gap if no characters to produce.
10649
106502008-02-01 Kenichi Handa <handa@m17n.org>
10651
10652 * fontset.c (free_realized_fontsets): Avoid unnecessary call of
10653 Fclear_face_cache.
10654
10655 * xfaces.c (face_for_font): Check also face->font==font->font.font.
10656
106572008-02-01 Miles Bader <miles@gnu.org>
10658
10659 * emacs.c (main): Change default value of `enable_font_backend' to 1.
10660 Parse "--disable-font-backend" option.
10661 (standard_args): Add "--disable-font-backend" option.
10662
106632008-02-01 Kenichi Handa <handa@m17n.org>
10664
10665 * fontset.c (fontset_find_font): New function.
10666 (fontset_font): Use fontset_find_font.
10667 (make_fontset_for_ascii_face): Don't set face ID in rfont_def.
10668 Register the specified font for all Latin characters.
10669 (new_fontset_from_font): Register the specified font for all Latin
10670 characters.
10671 (dump_fontset): For a realized fontset, include the base fontset
10672 name in the returned vector.
10673
106742008-02-01 Kenichi Handa <handa@m17n.org>
10675
10676 * character.h (CHAR_STRING): Cast C to unsigned on calling
10677 char_string.
10678
10679 * character.c (char_string): Type of arg C changed to unsigned.
10680 Signal an error if C is an invalid character code.
10681
10682 * editfns.c (general_insert_function, Fchar_to_string):
10683 Use CHARACTERP, not INTEGERP.
10684
106852008-02-01 Kenichi Handa <handa@m17n.org>
10686
10687 * character.h (MIN_MULTIBYTE_LEADING_CODE)
10688 (MAX_MULTIBYTE_LEADING_CODE): New macros.
10689
10690 * regex.c (analyse_first): Fix for multibyte characters in "case
10691 charset:" and "case categoryspec:".
10692
106932008-02-01 Andreas Schwab <schwab@suse.de>
10694
10695 * Makefile.in (LIBES): Move standard libraries to the end.
10696
106972008-02-01 Kenichi Handa <handa@m17n.org>
10698
10699 * alloc.c (Fgarbage_collect): If nextb->text->inhibit_shrinking is
10700 nonzero, don't shrink the buffer nextb.
10701
10702 * buffer.h (struct buffer_text): New member inhibit_shrinking.
10703
10704 * coding.c (coding_alloc_by_making_gap): New arg offset.
10705 (alloc_destination): Call coding_alloc_by_making_gap with the arg
10706 offset.
10707 (decode_coding_iso_2022): Update coding->safe_charsets.
10708 (decode_coding_gap): Temporarily set
10709 current_buffer->text->inhibit_shrinking to 1.
10710
107112008-02-01 Kenichi Handa <handa@m17n.org>
10712
10713 * xterm.c (x_draw_composite_glyph_string_foreground): Fix
10714 indexing into elements of s->cmp and s->char2b.
10715
107162008-02-01 Juanma Barranquero <lekktu@gmail.com>
10717
10718 * regex.c (RE_STRING_CHAR_AND_LENGTH) [! emacs]: Add missing arg `len'.
10719
107202008-02-01 Kenichi Handa <handa@m17n.org>
10721
10722 * regex.c (GET_CHAR_BEFORE_2, GET_CHAR_AFTER): Check the variable
10723 target_multibyte instead of multibyte.
10724 (re_match_2_internal): Call bcmp_translate with target_multibyte.
10725 (bcmp_translate): Change the argument name from multibyte to
10726 target_multibyte.
10727
107282008-02-01 Kenichi Handa <handa@m17n.org>
10729
10730 These changes are to compile a regexp into a pattern that can be
10731 used both for multibyte and unibyte targets.
10732
10733 * Makefile.in (search.o): Depend on charset.h.
10734
10735 * character.c (multibyte_char_to_unibyte_safe): New function.
10736
10737 * search.c: Include "charset.h".
10738 (compile_pattern_1): Delete argument multibyte. Don't set
10739 cp->buf.target_multibyte here. Set cp->buf.charset_unibyte.
10740 (compile_pattern): Don't compare cp->buf.target_multibyte.
10741 Compare cp->buf.charset_unibyte.
10742 (compile_pattern): Set cp->buf.target_multibyte.
10743
10744 * lisp.h (multibyte_char_to_unibyte_safe): Extern it.
10745
10746 * regex.h (struct re_pattern_buffer): New member charset_unibyte.
10747
10748 * regex.c (RE_STRING_CHAR, RE_STRING_CHAR_AND_LENGTH): New arg
10749 multibyte. Change callers.
10750 (RE_CHAR_TO_MULTIBYTE, RE_CHAR_TO_UNIBYTE): New macros.
10751 (MAKE_CHAR_MULTIBYTE, MAKE_CHAR_UNIBYTE): Delete. Change callers
10752 to use RE_CHAR_TO_MULTIBYTE and RE_CHAR_TO_UNIBYTE, respectively.
10753 (SETUP_ASCII_RANGE, SETUP_UNIBYTE_RANGE): New macros.
10754 (SETUP_MULTIBYTE_RANGE): Generate a more compact range_table.
10755 (regex_compile): Make the compiled pattern usable both for
10756 multibyte and unibyte targets.
10757 (analyse_first): Make the fastmap usable both for multibyte and
10758 unibyte targets.
10759 (TRANSLATE_VIA_MULTIBYTE): Delete.
10760 (re_match_2_internal): Pay attention to the case that the
10761 multibyteness of bufp and target may be different.
10762
107632008-02-01 Kenichi Handa <handa@m17n.org>
10764
10765 * xdisp.c (x_produce_glyphs): When a font is not found, make the
10766 empty box occupy at least one column width.
10767
107682008-02-01 Miles Bader <miles@gnu.org>
10769
10770 * Makefile.in: Remove redundant HAVE_XFT clause.
10771
107722008-02-01 Kenichi Handa <handa@m17n.org>
10773
10774 * xrdb.c (x_load_resources): Setup the default fontSet X resource.
10775
107762008-02-01 Kenichi Handa <handa@m17n.org>
10777
10778 * fontset.c (Finternal_char_font): Fix for the case of POSITION
10779 being nil.
10780
107812008-02-01 Kenichi Handa <handa@m17n.org>
10782
10783 * xftfont.c (xftfont_open): Call FcConfigSubstitute.
10784
107852008-02-01 Kenichi Handa <handa@m17n.org>
10786
10787 * xftfont.c (xftfont_open): Don't enable antialias explicitly.
10788
107892008-02-01 Kenichi Handa <handa@m17n.org>
10790
10791 * search.c (simple_search): Fix previous change.
10792
107932008-02-01 Kenichi Handa <handa@m17n.org>
10794
10795 * xftfont.c (ftfont_font_format): Extern declaration.
10796
10797 * frame.c (x_set_font): Fix the second arg to fs_query_fontset.
10798
10799 * xfont.c (xfont_driver): Initialize ftfont_driver.type by 0.
10800 (xfont_list): Don't directly use Lisp_Object as an operand of &&.
10801
10802 * ftfont.c (ftfont_driver): Initialize ftfont_driver.type by 0.
10803 (ftfont_font_format): Fix previous change.
10804
10805 * font.h (Ffont_xlfd_name): EXFUN it.
10806
10807 * font.c (font_parse_xlfd): Fix the array size of `f'.
10808 (register_font_driver): Use EQ to compare driver->type.
10809
10810 * xfns.c (xic_create_xfontset2) [USE_FONT_BACKEND]: New function.
10811 (create_frame_xic) [USE_FONT_BACKEND]: Call xic_create_xfontset2.
10812 (xic_set_xfontset) [USE_FONT_BACKEND]: Likewise.
10813
108142008-02-01 Kenichi Handa <handa@m17n.org>
10815
10816 * ftfont.c (ftfont_pattern_entity, ftfont_list_generic_family)
10817 (ftfont_list, ftfont_font_format): Check if FC_FONTFORMAT is defined.
10818
108192008-02-01 Kenichi Handa <handa@m17n.org>
10820
10821 * xfont.c (xfont_open): Set font->format.
10822
10823 * xftfont.c (xftfont_open): Set font->format.
10824
10825 * ftfont.c (ftfont_pattern_entity): Add fontformat in a pattern.
10826 (ftfont_list): Include FC_FONTFORMAT in FcObject.
10827 (ftfont_open): Set font->format.
10828 (ftfont_font_format): New function.
10829
10830 * font.h (struct font): New member format.
10831
10832 * font.c (Qopentype): New variable.
10833 (syms_of_font): Defsym it.
10834 (Fquery_font): Change the format of the last element of the return
10835 value.
10836
108372008-02-01 Kenichi Handa <handa@m17n.org>
10838
10839 * xfns.c (xic_create_xfontset): Try the default fontset name as a
10840 last resort.
10841
108422008-02-01 Kenichi Handa <handa@m17n.org>
10843
10844 * coding.c (detect_coding_charset): Fix detection of multi-byte
10845 charset.
10846
108472008-02-01 Bob Halley <halley@play-bow.org> (tiny change)
10848
10849 * ccl.c (ccl_driver): If DST is NULL, set ccl->produced to 0.
10850
108512008-02-01 Kenichi Handa <handa@m17n.org>
10852
10853 * xdisp.c (get_next_display_element): Set it->face_id for the
10854 first component of a composition.
10855 (x_produce_glyphs): Check if the font is changed or not for composition.
10856
108572008-02-01 Kenichi Handa <handa@m17n.org>
10858
10859 * fontset.c (Qlatin): New variable.
10860 (syms_of_fontset): Define it as a lisp symbol.
10861 (Fset_fontset_font): If TARGET is `latin', use FONT_SPEC for ASCII.
10862
108632008-02-01 Kenichi Handa <handa@m17n.org>
10864
10865 * font.c (font_unparse_fcname): Pay attention to the case that
10866 some of font property is a null string.
10867
108682008-02-01 Kenichi Handa <handa@m17n.org>
10869
10870 * term.c: Include "composite.h".
10871 (encode_terminal_code): Output all components of composition.
10872 Check the size of encode_terminal_src.
10873 (produce_glyphs): For composition, call produce_composite_glyph.
10874 (append_composite_glyph, produce_composite_glyph): New functions.
10875
10876 * xdisp.c (x_produce_glyphs): In handling composition, if a font
10877 is not found, get font_info from the current ascii face.
10878
108792008-02-01 Kenichi Handa <handa@m17n.org>
10880
10881 * fileio.c (Finsert_file_contents): On replacing, temporarily bind
10882 buffer-file-name to Qnil before calling insert_from_buffer.
10883
10884 * font.c (font_unparse_fcname): Pay attention to the case that
10885 foundry is a null string.
10886
108872008-02-01 Kenichi Handa <handa@m17n.org>
10888
10889 * ftfont.c (ftfont_list): Allow registry "unicode-sip".
10890
10891 * font.c (Qunicode_sip): New variable.
10892 (syms_of_font): Declare it as a Lisp symbol.
10893
10894 * font.h (Qunicode_sip): Extern it.
10895
108962008-02-01 Kenichi Handa <handa@m17n.org>
10897
10898 * composite.c (get_composition_id): Pay attention to TAB component.
10899
10900 * xterm.c (x_draw_composite_glyph_string_foreground): Don't draw
10901 TAB. Adjust for the change of s->char2b which always points to
10902 the first element of allocated memory.
10903
10904 * xftfont.c (xftfont_text_extents): Fix calculation of descent value.
10905
10906 * xdisp.c (handle_composition_prop): Set it->c to the first
10907 non-TAB component.
10908 (fill_composite_glyph_string): Change argument.
10909 (BUILD_COMPOSITE_GLYPH_STRING): Adjust for the above change.
10910 (x_produce_glyphs): Fix handling of left/right padding.
10911
109122008-02-01 Kenichi Handa <handa@m17n.org>
10913
10914 * coding.c (detect_coding_system): Fix for handling off
10915 inhibit_iso_escape_detection. Fix for the case that no coding
10916 system is defined for a specific coding category.
10917
109182008-02-01 Kenichi Handa <handa@m17n.org>
10919
10920 * font.c (font_matching_entity): Delete unused local var.
10921
10922 * xftfont.c (xftfont_open): Call XftDefaultSubstitute before
10923 opening a font.
10924
10925 * fileio.c (Finsert_file_contents): On recovering a file, assume
10926 Unix-like eol.
10927 (choose_write_coding_system): On auto-saving a file, force
10928 Unix-like eol.
10929
10930 * coding.c (setup_coding_system): Fix setting of
10931 coding->common_flags based on eol_type.
10932 (coding_inherit_eol_type): If PARENT is not nil, be sure to
10933 inherit from it.
10934
109352008-02-01 Kenichi Handa <handa@m17n.org>
10936
10937 * alloc.c (NSTATICS): Increas to 0x600.
10938
109392008-02-01 Kenichi Handa <handa@m17n.org>
10940
10941 * ftfont.c (ftfont_driver): Set ftfont_driver.match to ftfont_match.
10942 (ftfont_list): Don't check :name property.
10943 (ftfont_match): New function.
10944 (ftfont_pattern_entity): If the pattern doesn't contain
10945 FC_SPACING, don't assume FC_MONO.
10946
10947 * font.h (struct font_driver): New member `match'.
10948 (font_update_drivers): Adjust prototype.
10949
10950 * font.c (font_parse_fcname, font_parse_name): Don't change :name
10951 property of FONT.
10952 (LGSTRING_HEADER_SIZE, LGSTRING_GLYPH_SIZE, check_gstring): Define
10953 them unconditionally.
10954 (font_matching_entity): New function.
10955 (font_open_by_name): Try font_matching_entity if exact match is
10956 not found.
10957 (font_update_drivers): Delete the arg FONT. Return a list of
10958 actually used backends. Don't free faces, font caches here.
10959 Don't store data in frame parameters. Don't call x_set_font.
10960 (Ffont_spec): Store :name property as is.
10961 (Ffont_get): Check HAVE_LIBOTF before calling font_otf_capability.
10962 (Ffont_otf_gsub): Call font->driver->otf_gsub instead of font_otf_gsub.
10963 (Ffont_otf_gpos): Call font->driver->otf_gpos instead of font_otf_gpos.
10964 (Ffont_otf_alternates): Check if the driver has otf_gsub function.
10965 Call font->driver->otf_gsub instead of font_otf_gsub.
10966
10967 * frame.c (x_set_font_backend): Do more works that were done in
10968 font_update_drivers before.
10969
10970 * xfont.c (xfont_match): New function.
10971 (xfont_driver): Set xfont_driver.match to xfont_match.
10972 (xfont_draw): Set font in GC if necessary.
10973
10974 * ftxfont.c (ftxfont_match): New function.
10975 (syms_of_ftxfont): Set ftxfont_driver.match to ftxfont_match.
10976
10977 * xftfont.c (xftfont_match): New function.
10978 (syms_of_xftfont): Set xftfont_driver.match to xftfont_match.
10979
109802008-02-01 Kenichi Handa <handa@m17n.org>
10981
10982 * font.h (struct font): New member scalable.
10983 (struct font_driver): New arg ALTERANTE_SUBST to otf_gsub.
10984 (font_otf_gsub): Adjust prototype.
10985
10986 * font.c (font_otf_capability): Fix handling of the default langsys.
10987 (parse_gsub_gpos_spec): Change type to void. New arg nbytes.
10988 Check the contents of SPEC.
10989 (LGSTRING_HEADER_SIZE, LGSTRING_GLYPH_SIZE): New macros.
10990 (check_gstring): New function.
10991 (REPLACEMENT_CHARACTER): New macro.
10992 (font_otf_gsub): New arg alternate_subst. Be sure to set all
10993 glyph codes of GSTRING.
10994 (font_otf_gpos): Be sure to set all glyph codes of GSTRING.
10995 (font_prepare_composition): Set cmp->glyph_len.
10996 (font_open_entity): Set font->scalable.
10997 (Ffont_get): Handle :otf property.
10998 (Ffont_otf_gsub, Ffont_otf_gpos, Ffont_otf_alternates): New
10999 functions.
11000 (Fquery_font): Use font->font.full_name.
11001 (syms_of_font): Defsubr Sfont_otf_gsub, Sfont_otf_gpos, and
11002 Sfont_otf_alternates.
11003
11004 * ftfont.c (ftfont_open): Set font->font.full_name and
11005 font->font.name properly. Fix calculation of font->font.height
11006 and font->min_width.
11007
11008 * ftxfont.c (ftxfont_create_gcs): New function.
11009 (ftxfont_draw_bitmap): Fix arg to ftfont_driver.get_bitmap.
11010 (ftxfont_draw_backgrond): Fix filling region.
11011 (ftxfont_default_fid): New function.
11012 (ftxfont_open): Set xfont->fid to the return value of
11013 ftxfont_default_fid.
11014 (ftxfont_prepare_face): Use ftxfont_create_gcs to create GCs.
11015 (ftxfont_done_face): Free only GCs that are created by
11016 ftxfont_create_gcs.
11017 (ftxfont_draw): If face->gc != s->gc, create proper GCs.
11018
11019 * xterm.c (x_set_glyph_string_clipping_exactly) [USE_FONT_BACKEND]:
11020 Clip to src->width, etc (not src->clip_XXX).
11021
11022 * xfns.c (x_create_tip_frame) [USE_FONT_BACKEND]: Handle
11023 FontBackend frame parameter.
11024
110252008-02-01 Kenichi Handa <handa@m17n.org>
11026
11027 * font.h (struct font_driver_list): New member `on'.
11028 (Fclear_font_cache): EXFUN it.
11029 (font_update_drivers): Extern it.
11030
11031 * font.c (font_unparse_fcname): Fix typo (swidth->width).
11032 (font_list_entities): Check driver_list->on.
11033 (register_font_driver): Initalize `on' member to 0.
11034 (font_update_drivers): New function.
11035 (Fclear_font_cache): Check driver_list->on.
11036
11037 * frame.h (Qfont_backend): Extern it.
11038 (x_set_font_backend): Extern it.
11039
11040 * frame.c (Qfont_backend): New variable.
11041 (frame_parms): New element for font-backend.
11042 (x_set_font_backend): New function.
11043
11044 * xfns.c (Fx_create_frame) [USE_FONT_BACKEND]: Handle
11045 FontBackend frame parameter.
11046 (x_frame_parm_handlers) [USE_FONT_BACKEND]: New element
11047 x_set_font_backend.
11048
11049 * xfont.c (xfont_list): Don't try listing by :name property if the
11050 name is not for XLFD.
11051
110522008-02-01 Kenichi Handa <handa@m17n.org>
11053
11054 * font.h (LGLYPH_FROM, LGLYPH_TO, LGLYPH_SET_FROM)
11055 (LGLYPH_SET_TO): New macros.
11056 (LGLYPH_XOFF, LGLYPH_YOFF, LGLYPH_WADJUST): Check if adjustment
11057 element of G is vector or not.
11058 (font_at): Extern it.
11059
11060 * font.c: Include window.h.
11061 (font_lispy_object): New function.
11062 (font_prepare_composition): Check LGLYPH_FORM (g) to detect the
11063 end of valid glyph.
11064 (font_close_object): Fix getting (struct font *).
11065 (font_at): New function.
11066 (Ffont_get): If FONT is a font-object, get entity from it.
11067 (Ffont_make_gstring): Initialize elements of glyphs with nil.
11068 (Ffont_fill_gstring): Use macro LGSTRING_XXX and LGLYPH_XXX. Fix
11069 range check.
11070 (Ffont_at): New function.
11071 (syms_of_font): Defsubr Sfont_at.
11072
11073 * xdisp.c (it_props): Move the entry for Qauto_composed to just
11074 before the entry for Qcomposition.
11075 (handle_auto_composed_prop): Call auto-composition-function with 4 args.
11076 (handle_composition_prop) [USE_FONT_BACKEND]: Set it->face_id from
11077 the font in gstring.
11078 (fill_composite_glyph_string) [USE_FONT_BACKEND]: Check
11079 LGLYPH_FORM (g) to detect the end of valid glyph.
11080 (x_produce_glyphs) [USE_FONT_BACKEND]: Don't update it->face_id if
11081 we are composing with gstring.
11082
11083 * xterm.c (x_draw_composite_glyph_string_foreground) [USE_FONT_BACKEND]:
11084 Check if adjustment is vector or not.
11085
11086 * Makefile.in (font.o): Make it depends on window.h.
11087
110882008-02-01 Kenichi Handa <handa@m17n.org>
11089
11090 * xterm.c (x_draw_composite_glyph_string_foreground): Check if
11091 adjustment is vector or not.
11092
110932008-02-01 Miles Bader <miles@gnu.org>
11094
11095 * character.h (CHECK_CHARACTER): Redefine in terms of CHECK_TYPE.
11096
110972008-02-01 Kenichi Handa <handa@m17n.org>
11098
11099 * font.h (LGLYPH_XOFF, LGLYPH_YOFF, LGLYPH_WIDTH, LGLYPH_WADJUST)
11100 (LGLYPH_SET_WIDTH): Adjusted for the change of LGLYPH format.
11101 (LGLYPH_ADJUSTMENT, LGLYPH_SET_ADJUSTMENT): New macros.
11102
11103 * font.c (font_merge_old_spec): Treat '*' in foundry as a wild card.
11104 (DEVICE_DELTA): Fix typo.
11105 (font_otf_gpos, font_prepare_compositio): Adjust for the change of
11106 LGLYPH format.
11107
11108 * xterm.c (x_draw_composite_glyph_string_foreground): Adjust for
11109 the change of LGLYPH format.
11110
111112008-02-01 Kenichi Handa <handa@m17n.org>
11112
11113 * ftfont.c (ftfont_list): Fix typo.
11114 (ftfont_build_basic_charsets): Don't include letters with diacritics.
11115
111162008-02-01 Jan Djärv <jan.h.d@swipnet.se>
11117
11118 * xfaces.c (realize_non_ascii_face): Set face->extra to NULL.
11119
11120 * xftfont.c (xftfont_done_face): Call XftDrawDestroy only if
11121 xftface_info is non-NULL.
11122
111232008-02-01 Jan Djärv <jan.h.d@swipnet.se>
11124
11125 * ftfont.c (ftfont_list): Move misplaced #endif.
11126
111272008-02-01 Kenichi Handa <handa@m17n.org>
11128
11129 * ftfont.c (ftfont_list): Pay attention to the case that
11130 FC_CAPABILITY is not defined.
11131
111322008-02-01 Kenichi Handa <handa@m17n.org>
11133
11134 * xftfont.c (xftfont_open): Set charset related members to -1.
11135
11136 * ftfont.c (ftfont_list): Handle QCotf property. Fix handling of
11137 QCname.
11138 (ftfont_open): Set charset related members to -1.
11139
11140 * fontset.c (Votf_script_alist): New variable.
11141 (syms_of_fontset): Initialize it.
11142 (fontset_font): Delete unused variable.
11143
11144 * fontset.h (Votf_script_alist): Extern it.
11145
11146 * font.c (font_find_for_lface): Optimize code.
11147
11148 * font.h (font_close_object, font_merge_old_spec): Extern them.
11149
111502008-02-01 Kenichi Handa <handa@m17n.org>
11151
11152 * font.c (QCscalable, Qc, Qm, Qp, Qd): New variables.
11153 (syms_of_font): Initialize them.
11154 (font_pixel_size): Allow float value in dpi.
11155 (font_prop_validate_type): Delete.
11156 (font_prop_validate_symbol, font_prop_validate_style): Change argument.
11157 Change caller.
11158 (font_prop_validate_non_neg): Rename from font_prop_validate_size.
11159 (font_prop_validate_extra): Delete.
11160 (font_prop_validate_spacing): New function.
11161 (font_property_table): Add elements for all known properties.
11162 (get_font_prop_index): Rename from check_font_prop_name. New
11163 argument FROM. Change caller.
11164 (font_prop_validate): Validate all known properties.
11165 (font_put_extra): Delete argument force. Change caller.
11166 (font_expand_wildcards): Make it static. Fix the way of shrinking
11167 the possible range.
11168 (font_parse_xlfd): Delete argument merge. Fix handling of RESX,
11169 RESY, SPACING, and AVGWIDTH. Don't validate property values here.
11170 Change caller.
11171 (font_unparse_xlfd): Handle dpi, spacing, and scalable properties.
11172 (font_parse_fcname): Delete argument merge. Fix parsing of point
11173 size. Don't validate properties values here. Change caller.
11174 (font_unparse_fcname): Handle dpi, spacing, and scalable properties.
11175 (font_open_by_name): Delete unused variable.
11176 (Ffont_spec): Likewise. Validate property values.
11177 (Ffont_match_p): New function.
11178
11179 * font.h (QCscalable): Extern it.
11180 (font_parse_xlfd, font_parse_fcname): Adjust prototype.
11181
11182 * ftfont.c (ftfont_list): Handle properties dpi, spacing, and scalable.
11183
11184 * xfont.c (xfont_query_font): Adjust for the change of font_parse_xlfd.
11185 (xfont_list_pattern): New function.
11186 (xfont_list): Use xfont_list_pattern.
11187
111882008-02-01 Kenichi Handa <handa@m17n.org>
11189
11190 * font.h (Flist_fonts): EXFUN it.
11191
111922008-02-01 Jason Rumney <jasonr@gnu.org>
11193
11194 * w32term.c (w32_initialize): Add back smoothing_type and
11195 smoothing_enabled definitions.
11196
111972008-02-01 Kenichi Handa <handa@m17n.org>
11198
11199 * xterm.c (x_draw_glyph_string) [USE_FONT_BACKEND]: Check
11200 s->face->font on determining underline position.
11201
112022008-02-01 Kenichi Handa <handa@m17n.org>
11203
11204 * font.c (font_parse_xlfd): Fix generating of CHARSET_REGISTRY field.
11205 (font_has_char): Accept font-object too.
11206 (font_find_for_lface): Try at first with a size specified in face.
11207
112082008-02-01 Kenichi Handa <handa@m17n.org>
11209
11210 * frame.c (x_set_font) [USE_FONT_BACKEND]: Fix argument to
11211 font_open_by_name.
11212
112132008-02-01 Kenichi Handa <handa@m17n.org>
11214
11215 * font.h (QCspacing, QCdpi): Extern them.
11216 (enum font_spacing): New enum.
11217 (FONT_PIXEL_SIZE_QUANTUM): New macro.
11218
11219 * font.c (POINT_TO_PIXEL): Don't divide POINT by 10.
11220 (QCspacing, QCdpi): New variables.
11221 (syms_of_font): Initialize them.
11222 (font_pixel_size): New function.
11223 (font_put_extra): New function.
11224 (font_parse_xlfd): Fix handling of font size. Add QCdpi property
11225 in FONT_EXTRA.
11226 (font_parse_fcname): Handle enumerated values (e.g. bold).
11227 Fix handling font size. Add QCname property that contains only
11228 unknown properties.
11229 (font_score): Change argument. Change caller. Pay attention to
11230 FONT_PIXEL_SIZE_QUANTUM.
11231 (font_sort_entites, font_list_entities, font_find_for_lface)
11232 (font_open_for_lface, font_open_by_name): Fix handling of font size.
11233 (Ffont_spec): Add QCname property that contains only unknown properties.
11234
11235 * ftfont.c (ftfont_list): Use assq_no_quit, not Fassq. Don't
11236 include weight in listing pattern, instead check weight of each
11237 listed font. Don't include scalable in pattern. Pay attention to
11238 FONT_PIXEL_SIZE_QUANTUM.
11239
112402008-02-01 Kenichi Handa <handa@m17n.org>
11241
11242 * font.c (font_parse_fcname): Fix parsing of point-size.
11243 (font_unparse_fcname): Produce symbolic names for style properties.
11244 (font_list_entities): Handle float size correctly.
11245 (font_open_by_name): Prefer `normal' property values if the name
11246 doesn't specify them.
11247
11248 * fontset.c (Finternal_char_font): Use font_get_name, not
11249 Ffont_xlfd_name.
11250
11251 * ftfont.c (ftfont_pattern_entity): Use the numeric value 100 for
11252 FC_WEIGHT_REGULAR. Exclude FC_SIZE and FC_PIXEL_SIZE from listing
11253 pattern. Don't force scalable.
11254
11255 * xftfont.c (xftfont_open): For generating a name, start from
11256 96-byte buffer.
11257
112582008-02-01 Jan Djärv <jan.h.d@swipnet.se>
11259
11260 * frame.h (x_new_fontset2): Fix prototype.
11261
112622008-02-01 Kenichi Handa <handa@m17n.org>
11263
11264 * font.h (struct font_driver): Delete member parse_name.
11265 (font_match_p, font_get_spec, font_parse_fcname)
11266 (font_unparse_fcname): Extern them.
11267 (font_get_name): Adjust prototype.
11268
11269 * font.c (XLFD_SMALLNUM_MASK): Delete this macro.
11270 (XLFD_LARGENUM_MASK): Delete XLFD_ENCODING_MASK from it.
11271 (font_expand_wildcards): Fix handling ENCODING field. Avoid
11272 unnecessary checks for weight, slant, and swidth.
11273 (font_parse_fcname): New function.
11274 (font_unparse_fcname): New function.
11275 (font_parse_name): New function.
11276 (font_match_p): New function.
11277 (font_get_name): Change return value to Lisp string.
11278 (font_get_spec): New function.
11279 (Qunspecified, Qignore_defface): Don't extern them.
11280 (font_find_for_lface): Assume that LFACE is fully specified.
11281 (font_load_for_face): If lface[LFACE_FONT_INDEX] is an font
11282 object, use it for FACE.
11283 (font_open_by_name): Call Ffont_spec with QCname prop. Don't call
11284 driver->parse_name.
11285 (Ffont_spec): Call font_parse_name, not font_parse_xlfd.
11286
11287 * fontset.h (new_fontset_from_font) [USE_FONT_BACKEND]: Adjust
11288 prototype.
11289
11290 * fontset.c (new_fontset_from_font) [USE_FONT_BACKEND]: Delete
11291 argument F. Don't call Fnew_fontset. Instead, directly call
11292 make_fontset.
11293
11294 * frame.h (x_new_fontset2) [USE_FONT_BACKEND]: Adjust prototype.
11295
11296 * frame.c (x_set_font) [USE_FONT_BACKEND]: Adjust for the change
11297 of x_new_fontset2.
11298
11299 * ftfont.c (Qmonospace, Qsans_serif, Qserif, Qmono, Qsans)
11300 (Qsans__serif): New variables.
11301 (ftfont_generic_family_list): New variable.
11302 (syms_of_ftfont): Initialize the above variables.
11303 (ftfont_pattern_entity): Delete argument NAME.
11304 (ftfont_list_generic_family): New function.
11305 (ftfont_parse_name): Delete this function.
11306 (ftfont_list): Try generic family only when FcFontList found no font.
11307 (ftfont_list_family): Fix args to FcObjectSetBuild.
11308
11309 * xfaces.c (check_lface_attrs) [USE_FONT_BACKEND]: Accept font
11310 object in attrs[LFACE_FONT_INDEX].
11311 (set_lface_from_font_name): Cancel all changes for font-backend.
11312 (set_lface_from_font_and_fontset) [USE_FONT_BACKEND]: New
11313 function.
11314 (Finternal_set_lisp_face_attribute) [USE_FONT_BACKEND]: Accept a
11315 font object in QCfont attribute.
11316 (set_font_frame_param) [USE_FONT_BACKEND]: Likewise.
11317 (realize_default_face) [USE_FONT_BACKEND]: Call
11318 set_lface_from_font_and_fontset.
11319
11320 * xfns.c (x_default_font_parameter) [USE_FONT_BACKEND]: Try also
11321 "fixed", and signal error here if no suitable font was found.
11322
11323 * xfont.c (xfont_parse_name): Delete this function.
11324
11325 * xftfont.c (xftfont_open): Change coding style of error
11326 handling. Generate fontconfig's fontname pattern.
11327
11328 * xterm.h (struct x_output) [USE_FONT_BACKEND]: New member fontp.
11329 (FRAME_FONT_OBJECT) [USE_FONT_BACKEND]: New macro.
11330
11331 * xterm.c (x_new_fontset2) [USE_FONT_BACKEND]: Change arguments.
11332 Both args FONTSET and FONT_OBJECT must be existing ones.
11333
113342008-02-01 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
11335
11336 * macterm.c (mac_set_unicode_keystroke_event): Don't use MAKE_CHAR.
11337
113382008-02-01 Kenichi Handa <handa@m17n.org>
11339
11340 * xfont.c (xfont_open, xfont_encode_char): Fix typo.
11341
11342 * font.h (struct font): Fix typo.
11343
11344 * font.c (enum xlfd_field_index): Rename XLFD_XXX_SIZE_INDEX to
11345 XLFD_XXX_INDEX.
11346 (enum xlfd_field_mask): New enum.
11347 (intern_font_field): Changed argument. Change caller. If digits
11348 are followed by non-digits, return a symbol.
11349 (font_expand_wildcards): New function.
11350 (font_parse_xlfd): Fix wildcard handling.
11351 (Ffont_spec): If :name is specified, reflect the info in the other
11352 properties.
11353
11354 * ftfont.c (ftfont_pattern_entity): Fix typo.
11355 (ftfont_list): Enforce FC_LANG in PATTERN to cancel the effect of
11356 locale.
11357
113582008-02-01 Kenichi Handa <handa@m17n.org>
11359
11360 * font.h (Qiso8859_1, Qiso10646_1, Qunicode_bmp): Extern them.
11361
11362 * font.c (Qiso8859_1, Qiso10646_1, Qunicode_bmp): Move from ftfont.c.
11363 (font_unparse_xlfd): Fix argument type declaration. Append "*" if
11364 registry doesn't specify encoding part.
11365 (font_find_for_lface): Pay attention to LFACE_FONT_INDEX.
11366 (font_open_by_name): At first try parsing the name.
11367 (syms_of_font): Declare Qiso8859_1, Qiso10646_1, and Qunicode_bmp
11368 as Lisp symbols.
11369
11370 * fontset.c (reorder_font_vector): Pay attention to the case that
11371 the 3rd element of font_def is nil.
11372 (fontset_font): For the default fontset, append one more fontset
11373 elements for a script-based font specification. Don't add script
11374 attribute on finding a font.
11375 (new_fontset_from_font): Unconditionally set FONTSET_ASCII to the
11376 font name.
11377 (fontset_ascii_font): If a font can't be opened, return nil.
11378
11379 * ftfont.c (Qiso8859_1, Qiso10646_1, Qunicode_bmp): Move to font.c.
11380 (ftfont_pattern_entity): New function.
11381 (ftfont_get_cache): Assume that freetype_font_cache is already
11382 initialized.
11383 (ftfont_list): Handle the case that a file is specified in font
11384 name. Use ftfont_pattern_entity to generate entities.
11385 (ftfont_has_char): Check if the pattern contains FC_CHARSET.
11386 (syms_of_ftfont): Initialize freetype_font_cache.
11387
11388 * xftfont.c (xftfont_open): Make the font name fontconfig's
11389 style. Add BLOCK_INPUT and UNBLOCK_INPUT.
11390 (xftfont_close): Free font->font.name if not NULL.
11391
11392 * xfont.c (xfont_list): If script is specified for a font, return
11393 null_vector.
11394 (xfont_list_family): Declare argument type.
11395
11396 * xfaces.c (set_lface_from_font_name): If a font doesn't have a
11397 name, set LFACE_FONT (lface) to nil.
11398
11399 * xterm.c (x_new_fontset2): If an ASCII font couldn't be loaded,
11400 return Qnil.
11401
114022008-02-01 Kenichi Handa <handa@m17n.org>
11403
11404 * emacs.c (main): Check -enable-font-backend arg after the check of -nl.
11405 (standard_args): Add "-enable-font-backend".
11406
114072008-02-01 Kenichi Handa <handa@m17n.org>
11408
11409 * xftfont.c (xftfont_default_fid): Set fid_known to 1.
11410 (struct xftdraw_list, xftdraw_list): Delete them.
11411 (register_xftdraw, check_xftdraw): Delete them.
11412 (xftfont_prepare_face): Don't call register_xftdraw.
11413 (xftfont_done_face): Don't call check_xftdraw.
11414 (xftfont_draw): Get background color only when with_background is
11415 nonzero.
11416
11417 * xfont.c (xfont_encode_char): Fix calculation of char2b.
11418
114192008-02-01 Kenichi Handa <handa@m17n.org>
11420
11421 These changes are for the new font handling codes.
11422
11423 * Makefile.in (ALL_CFLAGS): Add @FREETYPE_CFLAGS@,
11424 @FONTCONFIG_CFLAGS@, and @LIBOTF_CFLAGS@.
11425 (LIB_X11_LIB): If HAVE_XFT is defined, set to @XFT_LIBS@.
11426 (FONTSRC, FONTOBJ): New variables.
11427 (obj): Add $(FONTOBJ).
11428 (SOME_MACHINE_OBJECTS): Lib_X11_Lib.
11429 (LIBES): Add @FREETYPE_LIBS@, @FONTCONFIG_LIBS@, and
11430 @LIBOTF_LIBS@.
11431 (font.o, ftfont.o, xfont.o, xftfont.o, ftxfont.o): New targets.
11432 (fontset.o, xdisp.o, xfaces.o, xfns.o, xterm.o): Depend on $(FONTSRC).
11433
11434 * font.h, font.c, xfont.c, ftfont.c, xftfont.c, ftxfont.c: New files.
11435
11436 * character.h (Vscript_representative_chars): Extern it.
11437
11438 * character.c (Vscript_representative_chars): New variable.
11439 (syms_of_character): Declare it as a Lisp variable.
11440
11441 * composite.c (get_composition_id) [USE_FONT_BACKEND]: If
11442 enable_font_backend is nonzero, accept the composition method
11443 COMPOSITION_WITH_GLYPH_STRING.
11444
11445 * composite.h (enum composition_method) [USE_FONT_BACKEND]: New
11446 enumeration COMPOSITION_WITH_GLYPH_STRING.
11447
11448 * dispextern.h (struct glyph_string) [USE_FONT_BACKEND]: New
11449 members clip_x, clip_y, clip_width, and clip_height.
11450 (struct face) [USE_FONT_BACKEND]: New members font_info and extra.
11451
11452 * emacs.c (main) [USE_FONT_BACKEND]: Handle arg
11453 --enable-font-backend. Call syms_of_font.
11454
11455 * fns.c (assoc_no_quit): New function.
11456
11457 * fontset.h (FONT_INFO_FROM_FACE): New macro.
11458 (face_for_font, new_fontset_from_font)
11459 (fontset_ascii_font) [USE_FONT_BACKEND]: Extern them.
11460
11461 * fontset.c [USE_FONT_BACKEND]: Include "font.h".
11462 (fontset_font, fontset_ascii, face_for_char)
11463 (make_fontset_for_ascii_face, Ffont_info)
11464 (Finternal_char_font) [USE_FONT_BACKEND]: If enable_font_backend
11465 is nonzero, use font-backend mechanism.
11466 (find_font_encoding): Make it non-static.
11467 (new_fontset_from_font, fontset_ascii_font) [USE_FONT_BACKEND]:
11468 New functions.
11469
11470 * frame.h (struct frame): New members resx and resy.
11471 (struct frame) [USE_FONT_BACKEND]: New member font_driver_list.
11472 (x_new_fontset2) [USE_FONT_BACKEND]: Extern it.
11473
11474 * frame.c [USE_FONT_BACKEND]: Include "font.h".
11475 (make_frame, x_set_font) [USE_FONT_BACKEND]: Use font-backend mechanism.
11476
11477 * lisp.h (assoc_no_quit): Extern it.
11478
11479 * xdisp.c: If USE_FONT_BACKEND is defined, include "font.h".
11480 Through out the file, use FONT_INFO_FROM_FACE instead of
11481 FONT_INFO_FROM_ID, use get_per_char_metric instead of
11482 rif->per_char_metric.
11483 (handle_composition_prop) [USE_FONT_BACKEND]: If the composition
11484 method is COMPOSITION_WITH_GLYPH_STRING, just set it->c to ' '.
11485 (get_glyph_face_and_encoding, fill_composite_glyph_string)
11486 (get_char_face_and_encoding, BUILD_COMPOSITE_GLYPH_STRING)
11487 (x_produce_glyphs) [USE_FONT_BACKEND]: If enable_font_backend is
11488 nonzero, use font-backend mechanism.
11489 (get_per_char_metric): New function.
11490
11491 * xfaces.c [USE_FONT_BACKEND]: Include "font.h".
11492 (set_lface_from_font_name)
11493 (set_font_frame_param, free_realized_face)
11494 (prepare_face_for_display, clear_face_gcs)
11495 (Finternal_set_font_selection_order, realize_x_face)
11496 [USE_FONT_BACKEND]: If enable_font_backend is nonzero, use
11497 font-backend mechanism.
11498 (clear_face_cache) [USE_FONT_BACKEND]: Don't call clear_font_table.
11499 (load_face_font) [USE_FONT_BACKEND]: Abort.
11500 (face_symbolic_value, face_symbolic_weight, face_symbolic_slant)
11501 (face_symbolic_swidth, face_for_font) [USE_FONT_BACKEND]: New functions.
11502
11503 * xfns.c [USE_FONT_BACKEND]: Include "font.h".
11504 (x_default_font_parameter) [USE_FONT_BACKEND]: New function.
11505 (Fx_create_frame) [USE_FONT_BACKEND]: If enable_font_backend is
11506 nonzero, register all available font drivers. Call
11507 x_default_font_parameter for deciding a font.
11508 (x_create_tip_frame) [USE_FONT_BACKEND]: Likewise.
11509
11510 * xterm.c [USE_FONT_BACKEND]: Include "font.h".
11511 (x_set_mouse_face_gc, x_set_glyph_string_clipping)
11512 (x_set_glyph_string_clipping_exactly)
11513 (x_compute_glyph_string_overhangs)
11514 (x_draw_glyph_string_foreground)
11515 (x_draw_composite_glyph_string_foreground, x_draw_glyph_string)
11516 (x_free_frame_resources) [USE_FONT_BACKEND]: If
11517 enable_font_backend is nonzero, use font-backend mechanism.
11518 (x_new_fontset2) [USE_FONT_BACKEND]: New function.
11519
115202008-02-01 Kenichi Handa <handa@m17n.org>
11521
11522 * coding.c (coding_inherit_eol_type): If PARENT is nil, inherit from
11523 system_eol_type.
11524 (syms_of_coding): Initialize system_eol_type.
11525
11526 * process.c (Fset_process_coding_system): Inherit system's eol
11527 format if necessary.
11528
115292008-02-01 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
11530
11531 * macgui.h (USE_ATSUI): Don't enable on emacs-unicode-2 branch.
11532
115332008-02-01 Kenichi Handa <handa@m17n.org>
11534
11535 * coding.c (decode_eol): Pay attention to buffer relocation in
11536 del_range_2.
11537 (decode_coding): Call decode_eol before restoring undo_list.
11538
115392008-02-01 Kenichi Handa <handa@m17n.org>
11540
11541 * charset.c (Fdefine_charset_internal): Fix setting of
11542 emacs_mule_bytes.
11543
115442008-02-01 Kenichi Handa <handa@m17n.org>
11545
11546 * keyboard.c (read_char): Check if C is a character or not before
11547 looking up Vkeyboard_translate_table.
11548
115492008-02-01 Kenichi Handa <handa@m17n.org>
11550
11551 * coding.c (DECODE_EMACS_MULE_20_RELATIVE_COMPOSITION): Fix
11552 condition to terminate the loop.
11553
115542008-02-01 Kenichi Handa <handa@m17n.org>
11555
11556 * coding.c (produce_composition): Compare charbuf[i] instead of
11557 args[i] against 0.
11558 (Fterminal_coding_system): Use EQ to compare Lisp objects.
11559
115602008-02-01 Kenichi Handa <handa@m17n.org>
11561
11562 * coding.c (DECODE_COMPOSITION_START): If the source is short, set
11563 coding->result to CODING_RESULT_INSUFFICIENT_SRC.
11564 (decode_coding_gap): Set CODING_MODE_LAST_BLOCK after the call of
11565 detect_coding.
11566 (emacs_mule_char): Handle old style (Emacs 20) component character
11567 of a composition.
11568 (DECODE_EMACS_MULE_COMPOSITION_RULE_20)
11569 (DECODE_EMACS_MULE_20_RULEBASE_COMPOSITION): Fix parsing a
11570 composition rule.
11571 (decode_coding_emacs_mule): Handle invalid bytes correctly.
11572
115732008-02-01 Kenichi Handa <handa@m17n.org>
11574
11575 * coding.c (encode_coding_ccl): Allocate destination dynamically
11576 when necessary.
11577
115782008-02-01 Kenichi Handa <handa@m17n.org>
11579
11580 * ccl.c (Fccl_execute_on_string): Fix the condition of terminating
11581 the loop. When quitted, show a proper error message.
11582
115832008-02-01 Kenichi Handa <handa@m17n.org>
11584
11585 * xterm.c (x_set_glyph_string_clipping_exactly): Set
11586 src->clip_head and src->clip_tail temporarily instead of src->hl.
11587
11588 * ccl.c (CCL_WRITE_STRING): Handle a flag bit for multibyte
11589 character sequence.
11590 (Fccl_execute_on_string): Use ASET, not XSET.
11591
115922008-02-01 Kenichi Handa <handa@m17n.org>
11593
11594 * search.c (search_buffer): Fix handling of "\\" in a trivial regexp.
11595
115962008-02-01 Kenichi Handa <handa@m17n.org>
11597
11598 * coding.c (decode_coding): Fix the condition of terminating the
11599 decoding loop.
11600
116012008-02-01 Kenichi Handa <handa@m17n.org>
11602
11603 * data.c (Faset): On setting a character bigger than 255 in a
11604 unibyte string, signal an error instead of make the string multibyte.
11605
116062008-02-01 Kenichi Handa <handa@m17n.org>
11607
11608 * charset.c (map_charset_chars): Fix for ascii-compatible charset
11609 made by a mapping table.
11610
116112008-02-01 Kenichi Handa <handa@m17n.org>
11612
11613 * xdisp.c (fill_composite_glyph_string): Check s->face is NULL or
11614 not.
11615 (BUILD_COMPOSITE_GLYPH_STRING): If C is TAB, set s->face to NULL.
11616 (x_produce_glyphs): If CH is TAB, set cmp->offsets properly.
11617
11618 * xterm.c (x_draw_composite_glyph_string_foreground): Check
11619 s->face is NULL or not.
11620
116212008-02-01 Kenichi Handa <handa@m17n.org>
11622
11623 * xterm.c (x_set_glyph_string_clipping_exactly): New function.
11624 (x_draw_glyph_string): Fix drawing of right_overhang and
11625 left_overhang around/on cursor.
11626
11627 * xdisp.c (draw_glyphs): Fix inclusion of right_overwriting glyphs.
11628
116292008-02-01 Kenichi Handa <handa@m17n.org>
11630
11631 * xdisp.c (x_produce_glyphs): Handle composition with TAB.
11632
116332008-02-01 Kenichi Handa <handa@m17n.org>
11634
11635 * coding.c (Fdefine_coding_system_internal)
11636 (Fdefine_coding_system_alias): Avoid a duplicated element in
11637 Vcoding_system_alist.
11638
116392008-02-01 Kenichi Handa <handa@m17n.org>
11640
11641 * xterm.c (handle_one_xevent): Handle keysyms 0x1000000..0x10000FF.
11642
11643 * coding.c (Qcoding_system_define_form): New variable.
11644 (syms_of_coding): Intern and staticpro it.
11645 (Fcoding_system_p): Check Qcoding_system_define_form.
11646 (Fcheck_coding_system): Try to autoload the definition of CODING-SYSTEM.
11647
11648 * coding.h (CODING_SYSTEM_P): If ID is not available, call
11649 Fcoding_system_p.
11650 (CHECK_CODING_SYSTEM): If ID is not available, call
11651 Fcheck_coding_system.
11652 (CHECK_CODING_SYSTEM_GET_SPEC, CHECK_CODING_SYSTEM_GET_ID):
11653 Try also Fcheck_coding_system.
11654
116552008-02-01 Kenichi Handa <handa@m17n.org>
11656
11657 * coding.c (code_conversion_restore): GCPRO arg.
11658
116592008-02-01 Kenichi Handa <handa@m17n.org>
11660
11661 * character.c (lisp_string_width): Check multibyteness of STRING.
11662
116632008-02-01 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
11664
11665 * macterm.c (mac_encode_char): Call ccl_driver with the last arg
11666 Qnil. Use JIS_TO_SJIS instead of ENCODE_SJIS.
11667 (decode_mac_font_name): Use decode_coding_c_string instead of
11668 decode_coding.
11669 (x_load_font): Initialize fontp->fontset to -1. Set
11670 fontp->encoding_type.
11671
116722008-02-01 Kenichi Handa <handa@m17n.org>
11673
11674 * search.c (search_buffer): Give up BM search on case-fold-search
11675 if one of a target character has a case-equivalence of different
11676 byte length even if that target charcter is an ASCII.
11677 (simple_search): Fix calculation of byte length of matched text.
11678 (boyer_moore): Fix handling of case-equivalent multibyte characters.
11679
116802008-02-01 Kenichi Handa <handa@m17n.org>
11681
11682 * coding.c (decode_coding): Fix handling of invalid bytes.
11683
116842008-02-01 Kenichi Handa <handa@m17n.org>
11685
11686 * xterm.c (handle_one_xevent): Handle keysyms directly mapped to
11687 Unicode characters.
11688
116892008-02-01 Kenichi Handa <handa@m17n.org>
11690
11691 * coding.c (encode_coding_object): If a pre-write-conversion
11692 function makes a new buffer, kill it.
11693
116942008-02-01 Kenichi Handa <handa@m17n.org>
11695
11696 * coding.c (QCascii_compatible_p): New variable.
11697 (syms_of_coding): Initialize it.
11698 (ONE_MORE_BYTE, ONE_MORE_BYTE_NO_CHECK): Decrement `src' before
11699 calling string_char.
11700 (record_conversion_result): Add `default:' case.
11701 (coding_charset_list): Delete unused variable `coding_type'.
11702 (Fdefine_coding_system_internal): Add `ascii-compatible-p'
11703 property in the plist of the coding system.
11704 (Fcoding_system_put): Check QCascii_compatible_p.
11705
117062008-02-01 Miles Bader <miles@gnu.org>
11707
11708 * xfaces.c (Finternal_lisp_face_equal_p): Restore previously
11709 removed calculation of frame `f', as it's now used.
11710
117112008-02-01 Kenichi Handa <handa@m17n.org>
11712
11713 * Makefile.in (RUN_TEMACS): Include "-nl" if HAVE_SHM is defined.
11714 (emacs${EXEEXT}): Run $(RUN_TEMACS) unconditionally.
11715 (UNIDATA): New variable.
11716 (${lispsource}international/charprop.el): Depends on ${UNIDATA}.
11717 (bootstrap-emacs${EXEEXT}): Depends on charprop.el. Run
11718 $(RUN_TEMACS) unconditionally.
11719
117202008-02-01 Kenichi Handa <handa@m17n.org>
11721
11722 * Makefile.in (temacs${EXEEXT}): Build charprop.el if necessary.
11723 (admindir): New variable.
11724 ($(lispsource)international/charprop.el): New target.
11725
117262008-02-01 Miles Bader <miles@gnu.org>
11727
11728 * character.c (chars-in-region): Remove obsolete function.
11729 (syms_of_character): Remove its initialization.
11730
117312008-02-01 Benjamin Riefenstahl <b.riefenstahl@turtle-trading.net>
11732
11733 * w32select.c (validate_coding_system)
11734 (setup_windows_coding_system): New functions.
11735 (convert_to_handle_as_coded, Fw32_get_clipboard_data): Use
11736 setup_windows_coding_system.
11737 (setup_config, Fw32_get_clipboard_data): Use
11738 validate_coding_system.
11739 (Fx_selection_exists): Move call to setup_config to a place
11740 where signals are allowed.
11741
11742 * lisp.h (Fcoding_system_base, Fcoding_system_eol_type)
11743 (Fcheck_coding_system): Add declarations.
11744
117452008-02-01 Kenichi Handa <handa@m17n.org>
11746
11747 * charset.c (load_charset_map_from_vector): Fix for the first iteration.
11748
117492008-02-01 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
11750
11751 * macfns.c (Fx_create_frame, x_create_tip_frame): Pass Lisp
11752 string as the second argument for x_new_fontset.
11753
117542008-02-01 Kenichi Handa <handa@m17n.org>
11755
11756 * coding.c (decode_coding_object): Use safe_call1 instead of call1.
11757 (encode_coding_object): Use safe_call instead of call2.
11758
117592008-02-01 Kenichi Handa <handa@m17n.org>
11760
11761 * fontset.c (Fset_fontset_font): Check family element of a given vector.
11762
11763 * Makefile.in (lisp): Include charprop.el.
11764
117652008-02-01 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
11766
11767 * macfns.c (Fx_create_frame, x_create_tip_frame): Fix crash.
11768 Not sure if it's unnecessary.
11769
117702008-02-01 Steven Tamm <steventamm@mac.com>
11771
11772 * macfns.c (Fx_create_frame, x_create_tip_frame): ifdef'd out
11773 some possibly unnecessary fontset checking code that crashed
11774 when creating a new frame.
11775
117762008-02-01 Kenichi Handa <handa@m17n.org>
11777
11778 * xfaces.c (merge_faces): Fix argument to lookup_derived_face and
11779 lookup_face.
11780
11781 * xdisp.c (Fformat_mode_line): Fix argument to lookup_named_face.
11782
11783 * fringe.c (draw_fringe_bitmap_1): Fix argument to lookup_named_face.
11784
117852008-02-01 Kenichi Handa <handa@m17n.org>
11786
11787 * coding.c: Cancel the change done in HEAD on 2008-02-01.
11788 (coding_charset_list): New function.
11789
11790 * coding.h (coding_charset_list): Extern it.
11791
117922008-02-01 Kenichi Handa <handa@m17n.org>
11793
11794 * fontset.c (Fset_fontset_font): Call find_font_encoding with
11795 concatenation of family and registry.
11796
117972008-02-01 Kenichi Handa <handa@m17n.org>
11798
11799 * character.h (BYTE8_STRING): Fix typo.
11800
11801 * editfns.c (Ftranslate_region_internal): Don't convert unibyte
11802 string to multibyte (sync to HEAD).
11803
11804 * casefiddle.c (casify_region): Handle changes in byte-length
11805 using replace_range_2 (sync to HEAD).
11806
118072008-02-01 Andreas Schwab <schwab@suse.de>
11808
11809 * chartab.c (map_char_table): GCPRO table and arg.
11810
118112008-02-01 Kenichi Handa <handa@m17n.org>
11812
11813 * syntax.c (skip_syntaxes): Return lispy 0 (not nil) if point is
11814 already at limit.
11815
118162008-02-01 Kenichi Handa <handa@m17n.org>
11817
11818 * fontset.c (fs_load_font): Use fast_string_match_ignore_case
11819 instead of fast_c_string_match_ignore_case.
11820 (find_font_encoding): Change argument to Lisp_Object. Use
11821 fast_string_match_ignore_case instead of
11822 fast_c_string_match_ignore_case. Change caller.
11823
118242008-02-01 Kenichi Handa <handa@m17n.org>
11825
11826 * xdisp.c (get_next_display_element): In unibyte case, decide to
11827 display in octal form by checking a character by
11828 UNIBYTE_CHAR_HAS_MULTIBYTE_P.
11829
11830 * charset.c (Fset_unibyte_charset): Setup unibyte_has_multibyte_table.
11831
11832 * character.c (unibyte_has_multibyte_table): New variable.
11833
11834 * character.h (unibyte_has_multibyte_table): Extern it.
11835 (UNIBYTE_CHAR_HAS_MULTIBYTE_P): New macro.
11836
118372008-02-01 Kenichi Handa <handa@m17n.org>
11838
11839 * coding.c (encode_coding_iso_2022): Fix handling of charset
11840 annotation.
11841
118422008-02-01 Kenichi Handa <handa@m17n.org>
11843
11844 * coding.c (setup_coding_system): If coding_system is nil, use
11845 Qundecided.
11846 (Fterminal_coding_system): Return nil if terminal coding system is
11847 `undecided'.
11848 (syms_of_coding): Define coding-system `undecided' here. Setup
11849 terminal_coding as `undecided'.
11850
118512008-02-01 Kenichi Handa <handa@m17n.org>
11852
11853 * xdisp.c (message_dolog, set_message_1): Call
11854 unibyte_char_to_multibyte with arg type int.
11855
11856 * lread.c (read1): Fix reading of a char-table.
11857
11858 * print.c (print_object): Include sub char-table in circularities
11859 detection.
11860
118612008-02-01 Kenichi Handa <handa@m17n.org>
11862
11863 * keymap.c (where_is_internal_2): Fix for the case that KEY is a cons.
11864 Append the found sequences in car of ARGS instead of prepending.
11865
118662008-02-01 Kenichi Handa <handa@m17n.org>
11867
11868 * fileio.c (report_file_error): Make a unibyte string from
11869 strerror (errorno).
11870 (Fsubstitute_in_file_name): Fix the arg to
11871 unibyte_char_to_multibyte. It is evaluated twice.
11872
118732008-02-01 Kenichi Handa <handa@m17n.org>
11874
11875 * charset.h (CHAR_CHARSET): Shortcut for ASCII case.
11876
118772008-02-01 Kenichi Handa <handa@m17n.org>
11878
11879 * coding.c (detect_coding_utf_16): Don't set detect_info->found if
11880 BOM is not found.
11881 (detect_coding, detect_coding_system): Optimization for ISO-2022
11882 when no 8-bit data is found.
11883
118842008-02-01 Jason Rumney <jasonr@gnu.org>
11885
11886 * w32fns.c (x_to_w32_font): Update to use new coding struct.
11887
118882008-02-01 Kenichi Handa <handa@m17n.org>
11889
11890 * charset.c (Fdeclare_equiv_charset, Fiso_charset): Fix handing of
11891 CHARS.
11892
118932008-02-01 Steven Tamm <steventamm@mac.com>
11894
11895 * macterm.c (mac_encode_char): Add charset argument and update
11896 to use encoding_type.
11897 (x_new_font, x_new_fontset): Merge in changes from xterm.c;
11898 switch to pure fontset.
11899 (decode_mac_font_name): Temporarily remove decoding.
11900 (x_font_name_to_mac_font_name): Temporarily remove encoding.
11901 (x_load_font): Temporarily remove encoding.
11902
119032008-02-01 Kenichi Handa <handa@m17n.org>
11904
11905 * xfaces.c (Fface_font): If frame is not on a window system,
11906 ignore CHARACTER arg. If HAVE_WINDOW_SYSTEM is not defined, don't
11907 refer to face->font.
11908 (split_font_name_into_vector, build_font_name_from_vector)
11909 (lookup_non_ascii_face, realize_non_ascii_face): Define them only
11910 when HAVE_WINDOW_SYSTEM is defined.
11911
119122008-02-01 Kenichi Handa <handa@m17n.org>
11913
11914 * xdisp.c (BUILD_GLYPH_STRINGS): Check if s is NULL.
11915 (x_produce_glyphs): Fix setting of members of cmp in case
11916 cmp->glyph_len is zero.
11917
11918 * fontset.c (Fset_fontset_font): Fix docstring.
11919 (Ffontset_info): Make it backward compatible. New arg ALL.
11920
119212008-02-01 Kim F. Storm <storm@cua.dk>
11922
11923 * process.c (read_process_output): Grow decoding_buf when needed;
11924 this could cause a crash in allocate_string and compact_small_strings.
11925
119262008-02-01 Kenichi Handa <handa@m17n.org>
11927
11928 * fileio.c (WRITE_BUF_SIZE): Delete this macro.
11929
119302008-02-01 Kenichi Handa <handa@m17n.org>
11931
11932 * coding.c (setup_coding_system): Set coding->common_flags
11933 correctly for raw-text.
11934 (consume_chars): On encoding unibyte text by raw-text, don't check
11935 multibyte form.
11936 (encode_coding): On encoding by raw-text, never use translation tables.
11937
11938 * fileio.c (e_write): Short cut for the case of no encoding.
11939
119402008-02-01 Kenichi Handa <handa@m17n.org>
11941
11942 * coding.c (detect_coding, detect_coding_system): Delete unused
11943 variables.
11944
119452008-02-01 Kenichi Handa <handa@m17n.org>
11946
11947 * coding.c (encode_coding_utf_8): Fix handling of raw-byte char.
11948 (consume_chars): Fix handling of 8-bit bytes in unibyte source.
11949
119502008-02-01 Kenichi Handa <handa@m17n.org>
11951
11952 * coding.c (Ffind_coding_systems_region_internal): Include
11953 raw-text and no-conversion in the result.
11954
119552008-02-01 Kenichi Handa <handa@m17n.org>
11956
11957 * fontset.c (find_font_encoding): Return `ascii' for unknown encoding.
11958 (load_font_get_repertory): Delete unnecessary check of ENCODING of
11959 FONT_DEF.
11960 (font_def_arg, add_arg, from_arg, to_arg): New args.
11961 (set_fontset_font): Change argument.
11962 (Fset_fontset_font): Fix for the case that TARGET is a script
11963 name and charset name.
11964 (new_fontset_from_font_name): Fix argument to Fnew_fontset.
11965
119662008-02-01 Kenichi Handa <handa@m17n.org>
11967
11968 * fontset.c (fontset_font): Rename from fontset_face. Change return
11969 value.
11970 (face_suitable_for_char_p, face_for_char): Adjust for the change
11971 of fontset_font.
11972 (make_fontset_for_ascii_face): Fix setting of the fontset element
11973 for ASCII.
11974 (Finternal_char_font): Use fontset_font instead of FACE_FOR_CHAR
11975 to get a font name.
11976 (Ffontset_info): Adjust for the change of fontset_font.
11977
11978 * coding.c (emacs_mule_char): Check invalid code more rigidly.
11979
11980 * character.h (LEADING_CODE_LATIN_1_MIN)
11981 (LEADING_CODE_LATIN_1_MAX): Delete these macros.
11982
119832008-02-01 Kenichi Handa <handa@m17n.org>
11984
11985 * editfns.c (check_translation): New function.
11986 (Ftranslate_region_internal): Handle M:N mapping.
11987
119882008-02-01 Kenichi Handa <handa@m17n.org>
11989
11990 * xfaces.c (xlfd_point_size): Set font->numeric[XLFD_PIXEL_SIZE].
11991
119922008-02-01 Kenichi Handa <handa@m17n.org>
11993
11994 * coding.c (DECODE_DESIGNATION): Set chars_96 to -1 instead of
11995 goto invalid_code.
11996 (decode_coding_iso_2022): Fix handling of invalid designation.
11997
11998 * fileio.c (Finsert_file_contents): Be sure to call unbind_to
11999 after calling code_conversion_save.
12000
120012008-02-01 Kenichi Handa <handa@m17n.org>
12002
12003 * xdisp.c (handle_auto_composed_prop): Fix Lisp_Object/int mixup.
12004
12005 * print.c (print_prune_string_charset): Fix Lisp_Object/int mixup.
12006
12007 * fontset.c: Include "intervals.h".
12008 (fontset_face): Fix comparing of Lisp_Objects.
12009 (free_face_fontset, new_fontset_from_font_name): Fix
12010 Lisp_Object/int mixup.
12011
12012 * editfns.c (Ftranslate_region_internal): Fix Lisp_Object/int mixup.
12013
12014 * coding.c: Add many prototypes for static functions.
12015 (get_translation_table): Allow max_lookup to be NULL.
12016 (decode_coding, Ffind_coding_systems_region_internal)
12017 (Funencodable_char_position, Fcheck_coding_systems_region): Call
12018 get_translation_table with max_lookup NULL.
12019
120202008-02-01 Kenichi Handa <handa@m17n.org>
12021
12022 * coding.c (get_translation_table): Declare it as Lisp_Object.
12023 (LOOKUP_TRANSLATION_TABLE): New macro.
12024 (produce_chars, consume_chars): Use LOOKUP_TRANSLATION_TABLE
12025 instead of CHAR_TABLE_REF.
12026
120272008-02-01 Kenichi Handa <handa@m17n.org>
12028
12029 * coding.c (MAX_ANNOTATION_LENGTH): Adjust for the change of
12030 annotation data format.
12031 (ADD_ANNOTATION_DATA, ADD_COMPOSITION_DATA, ADD_CHARSET_DATA):
12032 Change arguments FROM and TO to single argument NCHARS. Change caller.
12033 (decode_coding_utf_8, decode_coding_utf_16, decode_coding_emacs_mule)
12034 (decode_coding_iso_2022, decode_coding_sjis, decode_coding_big5)
12035 (decode_coding_ccl, decode_coding_charset): Pay attention to
12036 coding->charbuf_used.
12037 (get_translation): New function.
12038 (produce_chars): New arguments translation_table and last_block.
12039 Translate characters here. Return number of carryover chars.
12040 Change caller.
12041 (produce_composition): New argument pos. Change caller.
12042 Adjust for the change of annotation data format.
12043 (produce_charset, produce_annotation): Likewise.
12044 (decode_coding, encode_coding): Don't call translate_chars.
12045 (consume_chars): New arg translation_table. Change caller.
12046 (translate_chars): Delete.
12047 (syms_of_coding): Make translation-table's number of extra slots 2.
12048
120492008-02-01 Kenichi Handa <handa@m17n.org>
12050
12051 * search.c (simple_search): Fix setting this_pos_byte in backward
12052 search.
12053
12054 * coding.c (detect_coding_emacs_mule): Fix counting of encoded
12055 byte sequence.
12056 (detect_coding_ccl): Fix setting of the variable valids.
12057
120582008-02-01 Kenichi Handa <handa@m17n.org>
12059
12060 * xterm.c (x_list_fonts): Fix the detection of an auto-scaled font.
12061
12062 * coding.c (decode_coding_utf_16): Fix handling of surrogate pair.
12063
12064 * editfns.c (Ftranslate_region_internal): Rename from
12065 Ftranslate_region. Accept a char-table in TABLE.
12066 (syms_of_editfns): Defsubr Stranslate_region_internal.
12067
12068 * xfaces.c (set_lface_from_font_name): If a font is specified for
12069 a frame, generate a fontset from the font.
12070 (build_scalable_font_name): If the scalable font is requested for
12071 a specific size, don't change that size.
12072 (try_font_list): Try a scalable font also in the case that a
12073 pattern string is specified.
12074
120752008-02-01 Kenichi Handa <handa@m17n.org>
12076
12077 * xfaces.c (Fface_font): New optional arg CHARACTER.
12078
120792008-02-01 Kenichi Handa <handa@m17n.org>
12080
12081 * charset.h (CHARSET_OFFSET): New macro.
12082
120832008-02-01 Kenichi Handa <handa@m17n.org>
12084
12085 * xterm.c (x_get_font_repertory): Fix for non-Unicode-bmp charset.
12086
12087 * fontset.c (fontset_face): Handle the case that repertory is a
12088 char-table.
12089 (find_font_encoding): Return nil for unknown encoding.
12090 (Fset_fontset_font): Ignore a font of unknown encoding.
12091
120922008-02-01 Kenichi Handa <handa@m17n.org>
12093
12094 * keymap.c (describe_vector): Handle default value of a char table.
12095
12096 * fontset.c (fontset_face): Handle fallback fonts correctly.
12097 (Ffontset_info): Return infomation about fallback fonts.
12098
120992008-02-01 Kenichi Handa <handa@m17n.org>
12100
12101 * fontset.c (FONTSET_DEFAULT): New macro.
12102 (FONTSET_ADD, fontset_add): Handle the case that range is nil.
12103 (Fset_fontset_font): Change the 2nd arg name to TARGET, and handle
12104 the case that it is nil.
12105 (dump_fontset): Call FONTSET_DEFAULT, not FONTSET_FALLBACK.
12106 (syms_of_fontset): Set char-table-extra-slots property of fontset to 9.
12107
12108 * charset.h (CHAR_CHARSET_P): Fix for the case that the method is
12109 subset or superset.
12110
121112008-02-01 Kenichi Handa <handa@m17n.org>
12112
12113 * emacs.c (main): Call init_charset after syms_of_XXX.
12114
12115 * charset.c (Vcharset_map_directory): Delete.
12116 (Vcharset_map_path): New variable.
12117 (load_charset_map_from_file): Use Vcharset_map_path instead.
12118 (init_charset): Initialize Vcharset_map_path.
12119 (syms_of_charset): Delete declaration of "charset-map-directory",
12120 add declaration of "charset-map-path".
12121
121222008-02-01 Kenichi Handa <handa@m17n.org>
12123
12124 * fns.c (string_char_to_byte, string_byte_to_char): Optimize for
12125 ASCII only string.
12126
12127 * fileio.c (Finsert_file_contents): Avoid detecting a code twice.
12128
12129 * coding.c (detect_coding_iso_2022): Fix handling of SS2 and SS3.
12130 (detect_coding, detect_coding_system): Treat '\0' as normal ASCII byte.
12131
121322008-02-01 Kenichi Handa <handa@m17n.org>
12133
12134 * coding.h (SJIS_TO_JIS2, JIS_TO_SJIS2): New macros.
12135
12136 * coding.c (QCmnemonic, QCdefalut_char)
12137 (QCdecode_translation_table, QCencode_translation_table)
12138 (QCpost_read_conversion, QCpre_write_conversion): New variables.
12139 (get_translation_table): Return a list of translation tables if
12140 necessary.
12141 (decode_coding): Call get_translation_table with ENCODEP 0.
12142 (char_encodable_p): If translation_table is non-nil, always call
12143 translate_char.
12144 (Fdefine_coding_system_internal): Accept list of translation
12145 tables as :encode-translation-table and :decode-translation-table.
12146 (Fcoding_system_put): New function.
12147 (syms_of_coding): Declare new symbols. Defsubr
12148 Scoding_system_put.
12149 (decode_coding_sjis, encode_coding_sjis): Handle 4th charset,
12150 typically JISX0212.
12151
12152 * charset.c (map_charset_chars): Fix arg to map_charset_chars in
12153 when the charset is superset type.
12154
12155 * character.c (translate_char): Accept list of translation tables.
12156
121572008-02-01 Kenichi Handa <handa@m17n.org>
12158
12159 * coding.h (enum coding_attr_index): New member coding_attr_trans_tbl.
12160 (CODING_ATTR_TRANS_TBL): New macro.
12161
12162 * coding.c (get_translation_table): New function.
12163 (translate_chars): Fix the bug of skipping annotation data.
12164 (decode_coding, encode_coding): Utilize get_translation_table.
12165 (char_encodable_p, Funencodable_char_position): Translate char if
12166 necessary.
12167 (Ffind_coding_systems_region_internal)
12168 (Fcheck_coding_systems_region): Setup translation table for encode
12169 in a coding system attribute vector in advance.
12170 (Fdefine_coding_system_internal): Allow a symbol as translation
12171 table. For shift-jis type coding system, allow 4th charset.
12172
121732008-02-01 Kenichi Handa <handa@m17n.org>
12174
12175 * coding.c (decode_coding_sjis): Check the first byte rigidly.
12176
12177 * xdisp.c (get_next_display_element): Pass -1 as POS to
12178 FACE_FOR_CHAR if displaying a C-string.
12179
121802008-02-01 Kenichi Handa <handa@m17n.org>
12181
12182 * composite.c (get_composition_id): Handle xoff and yoff in a
12183 composition rule.
12184
12185 * composite.h (COMPOSITION_DECODE_RULE): New arg xoff and yoff.
12186 (struct composition): New member lbearing and rbearing.
12187
12188 * xdisp.c (move_it_to): Optimize for the case (op & MOVE_TO_Y).
12189 (x_get_glyph_overhangs): Handle a composition glyph.
12190 (x_produce_glyphs): Setup lbearing and rbreaing for a composition glyph.
12191
12192 * xterm.c (x_compute_glyph_string_overhangs): Handle also a
12193 composition glyph.
12194
121952008-02-01 Kenichi Handa <handa@m17n.org>
12196
12197 * print.c: Include charset.h.
12198 (Vprint_charset_text_property): New variable.
12199 (Qdefault): Extern it.
12200 (PRINT_STRING_NON_CHARSET_FOUND)
12201 (PRINT_STRING_UNSAFE_CHARSET_FOUND): New macros.
12202 (print_check_string_result): New variable.
12203 (print_check_string_charset_prop): New function.
12204 (print_prune_charset_plist): New variable.
12205 (print_prune_string_charset): New function.
12206 (print_object): Call print_prune_string_charset if
12207 Vprint_charset_text_property is not t.
12208 (print_interval): Print nothing if interval->plist is nil.
12209 (syms_of_print): Declare Vprint_charset_text_property as a lisp
12210 variable. Init and staticpro print_prune_charset_plist.
12211
122122008-02-01 Kenichi Handa <handa@m17n.org>
12213
12214 * fontset.c (new_fontset_from_font_name): Use the specified font
12215 for all characters in the new fontset.
12216
12217 * macterm.c (x_set_mouse_face_gc): Call FACE_FOR_CHAR with POS and
12218 OBJECT args.
12219
12220 * xdisp.c (x_produce_glyphs): Call FACE_FOR_CHAR with POS and
12221 OBJECT args for composition too.
12222
12223 * w32term.c (x_set_mouse_face_gc): Call FACE_FOR_CHAR with POS and
12224 OBJECT args.
12225
122262008-02-01 Kenichi Handa <handa@m17n.org>
12227
12228 * dispextern.h (FACE_FOR_CHAR): New args POS and OBJECT.
12229
12230 * fontset.c (reorder_font_vector): Adjust for the change of
12231 FONT_DEF format.
12232 (fontset_face): New arg id. Change caller.
12233 (face_for_char): New args pos and object.
12234 (make_fontset_for_ascii_face): Adjust for the change of FONT_DEF format.
12235 (fs_query_fontset): Check NAME by Fassoc too.
12236 (Fset_fontset_font): Allow non-XLFD font name.
12237 (Ffontset_info): Adjust for the change of FONT_DEF format.
12238
12239 * fontset.h (face_for_char): Adjust prototype.
12240
12241 * xdisp.c (face_before_or_after_it_pos, get_next_display_element)
12242 (append_space, extend_face_to_end_of_line)
12243 (get_char_face_and_encoding, BUILD_COMPOSITE_GLYPH_STRING)
12244 (x_produce_glyphs): Call FACE_FOR_CHAR with POS and OBJECT args.
12245
12246 * xfaces.c (compute_char_face): Call FACE_FOR_CHAR with
12247 POS and OBJECT args.
12248
12249 * xterm.c (x_set_mouse_face_gc): Call FACE_FOR_CHAR with
12250 POS and OBJECT args.
12251
122522008-02-01 Jason Rumney <jasonr@gnu.org>
12253
12254 * w32select.c (Fw32_set_clipboard_data): Avoid potential realloc
12255 of GlobalAlloc'ed memory.
12256
122572008-02-01 Kenichi Handa <handa@m17n.org>
12258
12259 * ccl.c (Fccl_execute_on_string): Fix the condition of loop.
12260
12261 * charset.h (charset_table_used): Delete extern.
12262
12263 * charset.c (charset_table_used): Make it static.
12264 (map_charset_chars): Fix args to c_function with.
12265
12266 * chartab.c (map_sub_char_table_for_charset): Fix args to
12267 c_function with.
12268
12269 * coding.h (enum coding_result_code): Delete
12270 CODING_RESULT_INSUFFICIENT_CMP, add CODING_RESULT_INVALID_SRC.
12271
12272 * coding.c (Qinsufficient_source, Qinconsistent_eol)
12273 (Qinvalid_source, Qinterrupted, Qinsufficient_memory): New variables.
12274 (Vlast_code_conversion_error): New variables.
12275 (syms_of_coding): DEFSYM or DEFVAR_LISP them.
12276 (ONE_MORE_BYTE): Record error if any instead of signaling an
12277 error. If non-ASCII multibyte char is found, return the negative
12278 value of the code. All callers changed to check it.
12279 (ONE_MORE_BYTE_NO_CHECK): Likewise.
12280 (record_conversion_result): New function. Change all codes setting
12281 coding->result to call this function.
12282 (detect_coding_utf_8, decode_coding_utf_8)
12283 (detect_coding_emacs_mule, detect_coding_sji, detect_coding_big5):
12284 Don't use the local variable incomplete.
12285 (emacs_mule_char): Change the second arg to `const'.
12286 (decode_coding): Fix of flushing out unprocessed data.
12287 (make_conversion_work_buffer): Fix making of a work buffer.
12288 (decode_coding_object): Return coding->dst_object.
12289
12290 * fontset.c (set_fontset_font): Fix args.
12291
12292 * lisp.h (CHARACTERBITS): Define as 22.
12293
12294 * process.c (send_process): Be sure to set coding->src_multibyte.
12295
12296 * xdisp.c (handle_auto_composed_prop): Fix setting of limit.
12297
122982008-02-01 Kenichi Handa <handa@m17n.org>
12299
12300 * xdisp.c (handle_auto_composed_prop): Give limit to
12301 Fnext_single_char_property_change.
12302
123032008-02-01 Kenichi Handa <handa@m17n.org>
12304
12305 * composite.c (syms_of_composite): Don't make the composition hash
12306 table weak.
12307
12308 * fontset.c (Fset_fontset_font): Fix docstring.
12309
12310 * lisp.h (detect_coding_system): Adjust prototype.
12311
12312 * fileio.c (kill_workbuf_unwind): Delete this function.
12313 (Finsert_file_contents): Adjust the call of detect_coding_system.
12314 Get conversion_buffer by code_conversion_save. Use the macro
12315 CODING_MAY_REQUIRE_DECODING. After decoding, update
12316 coding_system.
12317
12318 * coding.h (make_conversion_work_buffer): Delete extern.
12319 (code_conversion_save): Extern it.
12320
12321 * coding.c (enum iso_code_class_type): Delete ISO_carriage_return.
12322 (CODING_GET_INFO): Delete argument eol_type. Change callers.
12323 (decode_coding_utf_8): Don't do eol converion.
12324 (detect_coding_utf_16): Check coding->src_chars, not
12325 coding->src_bytes. Add heuristics for those that have no signature.
12326 (decode_coding_emacs_mule, decode_coding_iso_2022)
12327 (decode_coding_sjis, decode_coding_big5, decode_coding_charset):
12328 Don't do eol converion.
12329 (adjust_coding_eol_type): Return a new coding system.
12330 (detect_coding): Don't detect eol. Fix for utf-16 detection.
12331 (decode_eol): In case of CRLF->LF conversion, use del_range_2 on
12332 each change.
12333 (decode_coding): Pay attention to undo_list. Do eol conversion for
12334 all types of coding-systems (if necessary).
12335 (Vcode_conversion_work_buf_list): Delete it.
12336 (Vcode_conversion_reused_workbuf): Rename from
12337 Vcode_conversion_reused_work_buf.
12338 (Vcode_conversion_workbuf_name): New variable.
12339 (reused_workbuf_in_use): New variable.
12340 (make_conversion_work_buffer): Delete the arg DEPTH.
12341 (code_conversion_restore): Change argument to cons.
12342 (code_conversion_save): Delete the argument BUFFER. Change callers.
12343 (detect_coding_system): New argument src_chars. Change callers.
12344 Fix for utf-16 detection.
12345 (init_coding_once): Don't use ISO_carriage_return.
12346 (syms_of_coding): Initialize Vcode_conversion_workbuf_name and
12347 reused_workbuf_in_use.
12348
123492008-02-01 Kenichi Handa <handa@m17n.org>
12350
12351 * keymap.c (store_in_keymap): Pay attention to the case that idx
12352 is a cons specifying a character range.
12353
123542008-02-01 Kenichi Handa <handa@m17n.org>
12355
12356 * xdisp.c (handle_auto_composed_prop): Fix the case of returning
12357 HANDLED_RECOMPUTE_PROPS.
12358
12359 * coding.c (Fdefine_coding_system_internal): Fix checking of
12360 ascii compatibility.
12361
123622008-02-01 Kenichi Handa <handa@m17n.org>
12363
12364 * charset.c (find_charsets_in_text): Delete unused locale variable.
12365 (Fset_charset_priority): Update Vemacs_mule_charset_list too.
12366
12367 * coding.c (encode_coding_emacs_mule): Emit bytes with MSB.
12368 Resync charset_list to Vemacs_mule_charset_list.
12369
12370 * keymap.c (store_in_keymap): Pay attention to the case that idx
12371 is a cons specifying a character range.
12372
123732008-02-01 Kenichi Handa <handa@m17n.org>
12374
12375 * composite.c (update_compositions): Bind inhibit-read-only, etc
12376 to t before calling remove-list-of-text-properties.
12377
12378 * print.c (print_object): Always print ASCII chars as is.
12379
123802008-02-01 Kenichi Handa <handa@m17n.org>
12381
12382 * keymap.c (Fdefine_key): Fix handling of Lucid style event type list.
12383
12384 * fns.c (Fmapconcat, Fmapcar, Fmapc): Signal an error if SEQUENCE
12385 is a char table.
12386
123872008-02-01 Kenichi Handa <handa@m17n.org>
12388
12389 * syntax.c (skip_chars): Be sure to alloca char_ranges when necessary.
12390
123912008-02-01 Kenichi Handa <handa@m17n.org>
12392
12393 * xfaces.c (set_lface_from_font_name): Fix for the case that
12394 FONTNAME is not fontset name.
12395
123962008-02-01 Kenichi Handa <handa@m17n.org>
12397
12398 * fns.c (base64_encode_1): Fix previous change.
12399
124002008-02-01 Kenichi Handa <handa@m17n.org>
12401
12402 * fontset.c (set_fontset_font): New function.
12403 (Fset_fontset_font): If a font is specified for a charset, use
12404 map_charset_chars to store the font spec in a fontset.
12405
124062008-02-01 Kenichi Handa <handa@m17n.org>
12407
12408 * fontset.c (fontset_face): Create a fallback fontset on demand.
12409 (make_fontset): Don't create a fallback fontset here.
12410 (free_face_fontset): Free a fallback fontset (if any) too.
12411 (n_auto_fontsets): Delete this variable.
12412 (auto_fontset_alist): New variable.
12413 (new_fontset_from_font_name): Check auto_fontset_alist.
12414 (dump_fontset) [FONTSET_DEBUG]: Fully re-written.
12415 (Ffontset_list_all) [FONTSET_DEBUG]: New function.
12416 (syms_of_fontset): Initialize and staticpro auto_fontset_alist.
12417 Defsubr Sfontset_list_all.
12418
124192008-02-01 Kenichi Handa <handa@m17n.org>
12420
12421 * xterm.c (x_list_fonts): Fix excluding of auto-scaled fonts.
12422
124232008-02-01 Kenichi Handa <handa@m17n.org>
12424
12425 * fontset.c (Fnew_fontset): Check NAME more rigidly.
12426
124272008-02-01 Kenichi Handa <handa@m17n.org>
12428
12429 * editfns.c (Fgoto_char): Fix docstring.
12430
124312008-02-01 Kenichi Handa <handa@m17n.org>
12432
12433 * insdel.c (insert_from_gap): Adjust intervals correctly.
12434
124352008-02-01 Jason Rumney <jasonr@gnu.org>
12436
12437 * w32term.c (GLYPHSET, WCRANGE): Define if system headers don't.
12438 (pfnGetFontUnicodeRanges): New dynamically loaded function.
12439 (w32_initialize): Try to load it.
12440 (x_get_font_repertory): Use it if available.
12441 (w32_encode_char): Add shortcut for unicode output.
12442
12443 * w32fns.c (w32_load_system_font): Default charset to -1.
12444 (x_to_w32_charset): Match all fonts for unicode.
12445 (w32_to_x_charset): New parameter matching. Don't return partial
12446 or wildcard charsets.
12447 (w32_to_all_x_charsets): Don't return partial or wildcard charsets.
12448 (w32_codepage_for_font): Return CP_UNICODE for unicode.
12449 (w32_to_x_font): Match charset to real charset.
12450 (enum_font_cb2): Always list unicode versions.
12451
12452 * makefile.w32-in (temacs): Increase EMHEAP.
12453
124542008-02-01 Jason Rumney <jasonr@gnu.org>
12455
12456 * w32term.c (w32_encode_char): New charset parameter.
12457 font_info.encoding becomes encoding_type.
12458 (x_get_font_repertory): New function. Warning: stub only!
12459 (x_new_font): Return quickly if font already set.
12460 (x_new_fontset): fontsetname parameter is Lisp_Object.
12461 Use new fs_query_fontset. Try new_fontset_from_font_name.
12462 Use fontset_name for return value.
12463
12464 * w32term.h: Declare x_get_font_repertory.
12465
12466 * w32select.c (Fw32_set_clipboard_data): Use string_x_string_p in
12467 place of find_charset_in_text. Use encode_coding_object in place
12468 of encode_coding.
12469 (Fw32_get_clipboard_data): Use decode_coding_c_string in place of
12470 decode_coding.
12471
12472 * w32fns.c (Fx_create_frame, x_create_tip_frame): Use new version
12473 of x_new_fontset.
12474 (w32_load_system_font): Initialize charset as unicode.
12475 font_info.encoding becomes encoding_type.
12476 (w32_to_x_font): Use decode_coding_c_string in place of decode_coding.
12477 (x_to_w32_font): Use encode_coding_object in place of encode_coding.
12478 (syms_of_w32fns): Set get_font_repertory_func.
12479
12480 * w32console.c: Include character.h. Use terminal_encode_buffer
12481 from term.c.
12482 (write_glyphs): Use new version of encode_terminal_code. Use
12483 encode_coding_object in place of encode_coding.
12484
12485 * w32bdf.c (w32_load_bdf_font): Clear font_info before filling.
12486 encoding becomes encoding_type.
12487
12488 * term.c (terminal_encode_buffer): Make externally visible.
12489
12490 * makefile.w32-in: Add character.h dependancies.
12491 (character.o, chartab.o): New targets.
12492
124932008-02-01 Kenichi Handa <handa@m17n.org>
12494
12495 * fileio.c (Finsert_file_contents) [DOS_NT]: Use the macro
12496 CODING_ID_EOL_TYPE.
12497
124982008-02-01 Andreas Schwab <schwab@suse.de>
12499
12500 * coding.c (produce_chars): Revert last change.
12501
125022008-02-01 Kenichi Handa <handa@m17n.org>
12503
12504 * charset.h (charset_unicode): Extern it.
12505
12506 * charset.c (string_xstring_p): Check by (C >= 0x100).
12507 (find_charsets_in_text): Change format of the arc CHARSETS. New
12508 arg MULTIBYTE.
12509 (Ffind_charset_region, Ffind_charset_string): Adjust for the
12510 change of find_charsets_in_text.
12511 (Fsplit_char): Fix doc. Never return unknown.
12512
12513 * chartab.c (char_table_translate): Use CHARACTERP, not INTEGERP.
12514
12515 * coding.c (Fdefine_coding_system_alias): Update
12516 Vcoding_system_list.
12517
12518 * fontset.c (load_font_get_repertory): Pay attention to the case
12519 that ENCODING of a font is specified by a char-table.
12520
12521 * xterm.c (x_get_font_repertory): Handle the case that the
12522 encoding of font is other than Unicode.
12523
125242008-02-01 Kenichi Handa <handa@m17n.org>
12525
12526 * term.c (encode_terminal_code): Don't handle glyph-table. Check
12527 if a character is encodable by the terminal coding system. If
12528 not, produces proper number of `?'s. Update
12529 terminal_encode_buffer and terminal_encode_buf_size if necessary.
12530 (produce_glyphs): Check by CHAR_BYTE8_P, not SINGLE_BYTE_CHAR_P.
12531
125322008-02-01 Kenichi Handa <handa@m17n.org>
12533
12534 * term.c (terminal_encode_buffer, terminal_encode_buf_size): New
12535 variables.
12536 (encode_terminal_code): Change argument. Encode multiple
12537 characters at once. Store the result of encoding in
12538 terminal_encode_buffer.
12539 (write_glyphs, insert_glyphs): Adjust for the change of
12540 encode_terminal_code.
12541 (term_init): Initialize terminal_encode_buffer and
12542 terminal_encode_buf_size.
12543
12544 * coding.c (consume_chars): If coding->src_object is nil, don't
12545 check annotation.
12546
125472008-02-01 Kenichi Handa <handa@m17n.org>
12548
12549 * character.c (char_string): Use ASCII_CHAR_P instead of
12550 SINGLE_BYTE_CHAR_P.
12551
125522008-02-01 Kenichi Handa <handa@m17n.org>
12553
12554 * xdisp.c (handle_auto_composed_prop): Check if the last
12555 characters of auto-composed region is newly composed with the
12556 following characters.
12557 (handle_composition_prop): Fix checking of point being inside
12558 composition.
12559
125602008-02-01 Kenichi Handa <handa@m17n.org>
12561
12562 * fns.c (concat): Don't change multibyteness of the result by
12563 concatenating an 8-bit character.
12564
12565 * data.c (Faset): Check newelt by CHECK_CHARACTER. Don't change
12566 multibyteness of the result when newelt is an 8-bit character.
12567
125682008-02-01 Dave Love <fx@gnu.org>
12569
12570 * xmenu.c (find_and_call_menu_selection): Make menu_bar_items_used
12571 EMACS_INT.
12572
12573 * xfns.c (DefaultDepthOfScreen, x_encode_text): Remove unused vars.
12574
12575 * xfaces.c (face_numeric_value): Declare dim size_t.
12576 (Finternal_lisp_face_equal_p): Remove unused f.
12577
12578 * xdisp.c (BUILD_CHAR_GLYPH_STRINGS, display_and_set_cursor)
12579 (MATRIX_ROW): Remove unused vars.
12580 (draw_glyphs, x_insert_glyphs, fast_find_position)
12581 (fast_find_position, fast_find_string_pos): Use EMACS_INT for
12582 byte/char counts.
12583
12584 * regex.c (regex_compile): Remove unused var.
12585
12586 * minibuf.c (Fminibuffer_complete_word): Remove unused var.
12587
12588 * keymap.c (Fset_keymap_parent, map_keymap, Fcopy_keymap)
12589 (Faccessible_keymaps, where_is_internal): Remove unused vars.
12590
12591 * keyboard.c (cancel_hourglass_unwind): Return Qnil.
12592
12593 * frame.c (frame_name_fnn_p): Make len EMACS_INT.
12594
12595 * fileio.c (Fwrite_region): Remove unused var.
12596
12597 * dispnew.c (adjust_frame_glyphs_for_frame_redisplay)
12598 (adjust_frame_glyphs_for_window_redisplay): Remove unused ch_dim.
12599
12600 * composite.c (Fremove_list_of_text_properties): Declare.
12601
12602 * coding.c (inhibit_pre_post_conversion): Remove (unused).
12603 (alloc_destination, produce_chars): Use EMACS_INT for byte/char counts.
12604 (coding_inherit_eol_type): Remove unused attrs.
12605 (detect_coding): Cast arg of detect_eol.
12606
12607 * charset.c (syms_of_charset): Remove unused var p.
12608 (find_charsets_in_text, Ffind_charset_region): Use EMACS_INT for
12609 byte/char counts.
12610
12611 * casetab.c (set_case_table): Remove unused var.
12612
12613 * window.c (Fdisplay_buffer, Fframe_selected_window): Remove
12614 unused vars.
12615
126162008-02-01 Dave Love <fx@gnu.org>
12617
12618 * xterm.c (x_bitmap_mask): Declare.
12619
126202008-02-01 Dave Love <fx@gnu.org>
12621
12622 * xterm.c (x_term_init): Fix type error.
12623
12624 * lisp.h: Add Funibyte_char_to_multibyte.
12625
12626 * coding.c (Fread_coding_system): Fix arg of XSETSTRING.
12627 (Fset_coding_system_priority): Doc fix.
12628
12629 * ccl.c (ccl_driver): Fix arg of CHARACTERP.
12630
12631 * indent.c (check_composition): Make start and end EMACS_INT.
12632
12633 * character.c (lisp_string_width): Make ignore and end EMACS_INT.
12634
12635 * xdisp.c (handle_composition_prop, check_point_in_composition):
12636 Make buffer positions EMACS_INT.
12637
12638 * composite.c (find_composition, run_composition_function)
12639 (update_compositions, Ffind_composition_internal): Make buffer
12640 positions EMACS_INT.
12641
12642 * composite.h (find_composition, update_compositions): Make
12643 position args EMACS_INT.
12644
12645 * keyboard.c (adjust_point_for_property): Make beg and end EMACS_INT.
12646
12647 * intervals.c (get_property_and_range):
12648 * intervals.h (get_property_and_range): Make start and end EMACS_INT.
12649
12650 * unexalpha.c: Don't include varargs.h.
12651
126522008-02-01 Dave Love <fx@gnu.org>
12653
12654 * coding.h (ENCODE_UTF_8): New.
12655
12656 * Makefile.in (gtkutil.o): Depend on coding.h.
12657
12658 * coding.c (Fset_coding_system_priority): Doc fix.
12659
126602008-02-01 Kenichi Handa <handa@m17n.org>
12661
12662 * fileio.c (Finsert_file_contents): Call setup_coding_system in
12663 the case of auto saving.
12664
126652008-02-01 Andreas Schwab <schwab@suse.de>
12666
12667 * chartab.c (map_char_table, map_char_table_for_charset): Protect
12668 `range' from GC.
12669
126702008-02-01 Kenichi Handa <handa@m17n.org>
12671
12672 * coding.c (decode_coding_sjis): Check bytes more rigidly.
12673
126742008-02-01 Kenichi Handa <handa@m17n.org>
12675
12676 * fileio.c (choose_write_coding_system): Return a decided coding system.
12677 (Fwrite_region): Set Vlast_coding_system_used to the return value
12678 of choose_write_coding_system.
12679
126802008-02-01 Kenichi Handa <handa@m17n.org>
12681
12682 * charset.c (Fset_charset_priority): Pay attention to duplicated
12683 arguments.
12684
12685 * coding.c (QCcategory): New variable.
12686 (syms_of_coding): Defsym it. Set all elements of
12687 Vcoding_category_table and their symbol values.
12688 (Fset_coding_system_priority): Doc fix. Update symbol qvalues of
12689 coding-category-XXX, and coding-category-list.
12690 (Fdefine_coding_system_internal): Add category in the plist.
12691
126922008-02-01 Kenichi Handa <handa@m17n.org>
12693
12694 * callproc.c (Fcall_process): Handle carryover correctly.
12695
12696 * coding.c (decode_coding_iso_2022): Fix handling of invalid bytes.
12697 (raw_text_coding_system): Check NILP (coding_system).
12698 (coding_inherit_eol_type): Check NILP (coding_system) and
12699 NILP (parent).
12700 (consume_chars): Fix for the case of raw-text.
12701
12702 * process.c (read_process_output): Handle carryover correctly.
12703
127042008-02-01 Dave Love <fx@gnu.org>
12705
12706 * regex.c (re_search_2): Fix last change.
12707
127082008-02-01 Kenichi Handa <handa@m17n.org>
12709
12710 * regex.c (GET_CHAR_BEFORE_2): Check multibyte, not
12711 target_multibyte. Even in a unibyte case, return a converted
12712 multibyte char.
12713 (GET_CHAR_AFTER): New macro.
12714 (PATFETCH): Translate via multibyte char.
12715 (HANDLE_UNIBYTE_RANGE): Delete this macro.
12716 (SETUP_MULTIBYTE_RANGE): New macro.
12717 (regex_compile): Setup compiled code so that its multibyteness
12718 matches that of a target. Fix the handling of "[X-YZ]" using
12719 SETUP_MULTIBYTE_RANGE.
12720 (analyse_first) <charset>: For filling fastmap for all multibyte
12721 characters, don't check by BASE_LEADING_CODE_P.
12722 (re_search_2): Don't check RE_TARGET_MULTIBYTE_P (bufp). It is
12723 the same as RE_MULTIBYTE_P (bufp) now.
12724 (mutually_exclusive_p): Check by (! multibyte || IS_REAL_ASCII (c)).
12725 (TARGET_CHAR_AND_LENGTH): Delete this macro.
12726 (TRANSLATE_VIA_MULTIBYTE): New macro.
12727 (re_match_2_internal): Don't check RE_TARGET_MULTIBYTE_P (bufp).
12728 It is the same as RE_MULTIBYTE_P (bufp) now.
12729 <exactn>: Translate via multibyte.
12730 <anychar>: Fetch a character by RE_STRING_CHAR_AND_LENGTH. Don't
12731 translate it.
12732 <charset, charset_not>: Fetch a character by
12733 RE_STRING_CHAR_AND_LENGTH. Translate via multibyte.
12734 <duplicate>: Call bcmp_translate with the last arg `multibyte'.
12735 <wordbound, notwordbound, wordbeg, wordend, syntaxspec,
12736 notsyntaxspec, categoryspec, notcategoryspec> Fetch a character
12737 by GET_CHAR_AFTER.
12738 (bcmp_translate): Likewise.
12739
12740 * search.c (compile_pattern): Check the member target_multibyte,
12741 not the member multibyte of buf.
12742
12743 * lread.c (read1): While reading a string, set force_singlebyte
12744 and force_multibyte correctly.
12745
12746 * charset.c (Fset_unibyte_charset, init_charset_once): Fix setting
12747 up of unibyte_to_multibyte_table.
12748
127492008-02-01 Kenichi Handa <handa@m17n.org>
12750
12751 * coding.c (setup_coding_system): If coding has
12752 post-read-conversion or pre-write-conversion, set
12753 CODING_REQUIRE_DECODING_MASK and CODING_REQUIRE_ENCODING_MASK
12754 respectively.
12755 (decode_coding_gap): Run post-read-conversion if any.
12756
12757 * fileio.c (Finsert_file_contents): Even if we read into a
12758 unibyte buffer, check if we must decode the result or not.
12759
127602008-02-01 Kenichi Handa <handa@m17n.org>
12761
12762 * coding.c (make_conversion_work_buffer): Change the work buffer
12763 name to the same one as that of Emacs 21.
12764
127652008-02-01 Kenichi Handa <handa@m17n.org>
12766
12767 * coding.h (make_conversion_work_buffer): Adjust prototype.
12768 (code_conversion_restore): Don't extern it.
12769
12770 * coding.c (detected_mask): Delete unused variable.
12771 (decode_coding_iso_2022): Pay attention to the byte sequence of
12772 CTEXT extended segment, and retain those bytes as is.
12773 (decode_coding_ccl): Delete unused variable `valids'.
12774 (setup_coding_system): Delete unused variable `category'.
12775 (consume_chars): Delete unused variable `category'. Make it work
12776 for non-multibyte case.
12777 (make_conversion_work_buffer): Change argument.
12778 (saved_coding): Delete unused variable.
12779 (code_conversion_restore): Don't check saved_coding->destination.
12780 (code_conversion_save): New function.
12781 (decode_coding_gap, encode_coding_gap): Call code_conversion_save
12782 instead of record_unwind_protect.
12783 (decode_coding_object, encode_coding_object): Likewise. Recover PT.
12784 (detect_coding_system): Delete unused variable `mask'.
12785 (Fdefine_coding_system_internal): Delete unused variable id.
12786
12787 * fileio.c (kill_workbuf_unwind): New function.
12788 (Finsert_file_contents): On replacing, call
12789 make_conversion_work_buffer with correct args, and call
12790 record_unwind_protect with the first arg kill_workbuf_unwind.
12791
12792 * lisp.h (Fgenerate_new_buffer_name): EXFUN it.
12793
127942008-02-01 Kenichi Handa <handa@m17n.org>
12795
12796 * fontset.c (BASE_FONTSET_P): Check FONTSET_BASE, not FONTSET_NAME.
12797 (fontset_add): Fix for the case that TO is less than TO1.
12798 (Ffontset_info): Don't use fallback fontset on checking the
12799 default fontset.
12800 (dump_fontset): New function for debugging.
12801
12802 * coding.c (Fdefine_coding_system_internal): Fix for the case that
12803 coding_type is Qcharset.
12804
128052008-02-01 Kenichi Handa <handa@m17n.org>
12806
12807 * chartab.c (map_sub_char_table): New argument DEFAULT_VAL.
12808 (map_char_table): Don't inherit the value from the parent on
12809 initializing VAL. Adjust for the above change.
12810
128112008-02-01 Kenichi Handa <handa@m17n.org>
12812
12813 * coding.c (Qsignature, Qendian): Delete these variables.
12814 (syms_of_coding): Don't initialize them.
12815 (CATEGORY_MASK_UTF_16_AUTO): New macro.
12816 (detect_coding_utf_16): Add CATEGORY_MASK_UTF_16_AUTO in
12817 detect_info->found.
12818 (decode_coding_utf_16): Don't detect BOM here.
12819 (encode_coding_utf_16): Produce BOM if CODING_UTF_16_BOM (coding)
12820 is NOT utf_16_without_bom.
12821 (setup_coding_system): For a coding system of type utf-16, check
12822 if the attribute :endian is Qbig or not (not nil or not), and set
12823 CODING_REQUIRE_DETECTION_MASK if BOM detection is required.
12824 (detect_coding): If coding type is utf-16 and BOM detection is
12825 required, detect it.
12826 (Fdefine_coding_system_internal): For a coding system of type
12827 utf-16, check if the attribute :endian is Qbig or not (not nil or not).
12828
128292008-02-01 Kenichi Handa <handa@m17n.org>
12830
12831 * coding.c (coding_set_source): Fix for the case that the current
12832 buffer is different from coding->src_object.
12833 (decode_coding_object): Don't use the conversion work buffer if
12834 DST_OBJECT is a buffer.
12835
128362008-02-01 Dave Love <fx@gnu.org>
12837
12838 * lread.c (read_emacs_mule_char) [len==2]: Index
12839 emacs_mule_charset correctly.
12840
128412008-02-01 Dave Love <fx@gnu.org>
12842
12843 * coding.c (Qbig5, Vbig5_coding_system, CATEGORY_MASK_BIG5)
12844 (detect_coding_big5, decode_coding_big5, encode_coding_big5)
12845 (Fdecode_big5_char, Fencode_big5_char): Delete. (Big5 no longer
12846 treated specially.)
12847 (setup_coding_system, coding_category, CATEGORY_MASK_ANY)
12848 (detected_mask): Remove Big5 bits.
12849
128502008-02-01 Kenichi Handa <handa@m17n.org>
12851
12852 The following changes are to make the font rescaling facility
12853 compatible with Emacs 21.
12854
12855 * xfaces.c (Vface_font_rescale_alist): Rename from
12856 Vface_resizing_fonts.
12857 (struct font_name): Rename member resizing_ratio to rescale_ratio.
12858 (font_rescale_ratio): Rename from font_resizing_ratio.
12859 (split_font_name): Set font->rescale_ratio.
12860 (better_font_p): Pay attention to font->rescale_ratio.
12861 (build_scalable_font_name): Likewise. Change RESX, and RESY
12862 fields.
12863 (syms_of_xfaces): Declare Vface_font_rescale_alist as a Lisp variable.
12864
128652008-02-01 Kenichi Handa <handa@m17n.org>
12866
12867 * coding.c (Qutf_16_be_nosig, Qutf_16_be, Qutf_16_le_nosig)
12868 (Qutf_16_le): Remove these variables.
12869 (syms_of_coding): Don't DEFSYM them.
12870 (decode_coding_utf_16): Fix handling of BOM.
12871 (encode_coding_utf_16): Fix handling of BOM.
12872
128732008-02-01 Kenichi Handa <handa@m17n.org>
12874
12875 * fileio.c (Finsert_file_contents): On replacing, before decoding
12876 the file into the work buffer, set point of the work buffer to the end.
12877
128782008-02-01 Dave Love <fx@gnu.org>
12879
12880 * coding.c (Fcheck_coding_systems_region): Fix type errors.
12881
128822008-02-01 Dave Love <fx@gnu.org>
12883
12884 * xterm.c (XTread_socket): Check Lisp types for Vx_keysym_table
12885 and fix C types.
12886
128872008-02-01 Kenichi Handa <handa@m17n.org>
12888
12889 * xdisp.c (SKIP_GLYPHS): New macro.
12890 (set_cursor_from_row): Pay attention to string display properties.
12891
12892 * category.c (copy_category_entry): Fix for the case that RANGE
12893 is an integer.
12894
12895 * xterm.c (x_encode_char): Call ccl_driver with the last arg Qnil.
12896
12897 * w32term.c (w32_encode_char): Call ccl_driver with the last arg Qnil.
12898
128992008-02-01 Kenichi Handa <handa@m17n.org>
12900
12901 * charset.c (Fcharset_id_internal): New function.
12902 (syms_of_charset): Defsubr it.
12903
12904 * coding.c (decode_coding_ccl, encode_coding_ccl): Call ccl_driver
12905 with the last arg charset_list acquired from coding.
12906 (Fdefine_coding_system_internal): For ccl-based coding system, fix
12907 the attribute coding_attr_ccl_valids.
12908
12909 * coding.h (enum define_coding_ccl_arg_index): Set the first
12910 member coding_arg_ccl_decoder to coding_arg_max.
12911
12912 * ccl.h (ccl_driver): Adjust prototype.
12913
12914 * ccl.c (CCL_DECODE_CHAR, CCL_ENCODE_CHAR): New macros.
12915 (ccl_driver): New arg CHARSET_LIST. Use the above macros instead
60612c8f 12916 of DECODE_CHAR, ENCODE_CHAR, CHAR_CHARSET.
aac0c6e3
MR
12917 (Fccl_execute, Fccl_execute_on_string): Call ccl_driver with the
12918 last arg Qnil.
12919
129202008-02-01 Kenichi Handa <handa@m17n.org>
12921
12922 * charset.h (ENCODE_CHAR): If the method is SUBSET or SUPERSET,
12923 call encode_char.
12924
12925 * charset.c (encode_char): Fix handling of methods SUBSET and SUPERSET.
12926
129272008-02-01 Dave Love <fx@gnu.org>
12928
12929 * composite.c (syms_of_composite): Make composition_hash_table weak.
12930
129312008-02-01 Kenichi Handa <handa@m17n.org>
12932
12933 * dispextern.h (check_face_attributes, generate_ascii_font_name)
12934 (font_name_registry): Don't extern them.
12935 (split_font_name_into_vector, build_font_name_from_vector): Extern them.
12936
12937 * fontset.h (Qfontset): Don't extern it.
12938 (new_fontset_from_font_name): Extern it.
12939
12940 * fontset.c: Give 8 extra slots to fontset objects.
12941 (Qfontset_info): New variable.
12942 (syms_of_fontset): Defsym it.
12943 (FONTSET_FALLBACK): New macro.
12944 (fontset_face): Try also the default fontset.
12945 (make_fontset): Realize a fallback fontset from the default fontset.
12946 (generate_ascii_font_name): Move from xfaces.c. Rewritten by
12947 using split_font_name_into_vector and build_font_name_from_vector.
12948 (Fset_fontset_font): Access the elements of font_spec by enum
12949 FONT_SPEC_INDEX. If font_spec is a string, extract the registry
12950 name by using split_font_name_into_vector.
12951 (Fnew_fontset): If no ASCII font is specified in FONTLIST,
12952 generate a proper font name from the fontset name. Update
12953 Vfontset_alias_alist.
12954 (n_auto_fontsets): New variable.
12955 (new_fontset_from_font_name): New function.
12956 (Ffont_info): Store the information about fonts generated from the
12957 default fontset in the first extra slot of the returned char-table.
12958
12959 * xfaces.c (generate_ascii_font_name): Move to fontset.c.
12960 (font_name_registry): Delete function.
12961 (split_font_name_into_vector): New function.
12962 (build_font_name_from_vector): New function.
12963 (font_list): The argument REGISTRY is now a list of registry names.
12964 (choose_face_font): If we are choosing an ASCII font, and ATTRS
12965 specifies an explicit font name, return the name as is. Make a
12966 list of registy names.
12967
12968 * xfns.c (x_set_font, x_create_tip_frame): Adjust for the change
12969 of x_new_fontset.
12970 (Fx_create_frame): Don't call x_new_fontset here. Just use
12971 x_list_fonts to check the existence of fonts.
12972
12973 * xterm.h (x_new_fontset): Adjust prototype.
12974
12975 * xterm.c (x_new_fontset): Change the arg FONTSETNAME to Lisp
12976 string. Use new_fontset_from_font_name to create a fontset from a
12977 font name.
12978
129792008-02-01 Kenichi Handa <handa@m17n.org>
12980
12981 * syntax.c (Vfind_word_boundary_function_table): New name for
12982 Vnext_word_boundary_function_table.
12983 (find-word-boundary-function-table): New name for
12984 next-word-boundary-function-table.
12985
129862008-02-01 Dave Love <fx@gnu.org>
12987
12988 * Makefile.in: Fix some dependencies.
12989
12990 * keymap.c (Fapropos_internal): Don't gcpro apropos_predicate but
12991 set it to nil before returning.
12992
12993 * composite.c (update_compositions): Fix type error.
12994
12995 * syntax.c (skip_chars, skip_syntaxes): Fix type errors.
12996
129972008-02-01 Kenichi Handa <handa@m17n.org>
12998
12999 * xterm.c (x_new_font): Optimize for the case that the font is
13000 already set for the frame.
13001
130022008-02-01 Kenichi Handa <handa@m17n.org>
13003
13004 * chartab.c (char_table_ascii): Check if the char table contents
13005 is sub-char-table or not.
13006 (char_table_set, char_table_set_range): Fix argument to
13007 char_table_ascii.
13008
13009 * coding.c (CATEGORY_MASK_RAW_TEXT): New macro.
13010 (detect_coding_utf_8, detect_coding_utf_16)
13011 (detect_coding_emacs_mule, detect_coding_iso_2022)
13012 (detect_coding_sjis, detect_coding_big5)
13013 (detect_coding_ccl, detect_coding_charset): Change argument MASK
13014 to DETECT_INFO. Update DETECT_INFO and return 1 if the byte
13015 sequence is valid in this coding system. Change callers.
13016 (MAX_ANNOTATION_LENGTH): New macro.
13017 (ADD_ANNOTATION_DATA): New macro.
13018 (ADD_COMPOSITION_DATA): Change argument. Change callers. Call
13019 ADD_ANNOTATION_DATA. Change the format of annotation data.
13020 (ADD_CHARSET_DATA): New macro.
13021 (emacs_mule_char): New argument ID. Change callers.
13022 (decode_coding_emacs_mule, decode_coding_iso_2022)
13023 (decode_coding_sjis, decode_coding_big5, decode_coding_charset):
13024 Produce charset annotation data in coding->charbuf.
13025 (encode_coding_emacs_mule, encode_coding_iso_2022): Pay attention
13026 to charset annotation data in coding->charbuf.
13027 (setup_coding_system): Add CODING_ANNOTATE_CHARSET_MASK
13028 coding->common_flags if the coding system is iso-2022 based and
13029 uses designation.
13030 (produce_composition): Adjust for the new annotation data format.
13031 (produce_charset): New function.
13032 (produce_annotation): Handle charset annotation.
13033 (handle_composition_annotation, handle_charset_annotation): New
13034 functions.
13035 (consume_chars): Handle charset annotation. Utilize the above two
13036 functions.
13037 (encode_coding_object): If SRC_OBJECT and DST_OBJECT are the same
13038 buffer, get the deleted text as a string and set
13039 coding->src_object to that string.
13040 (detect_coding, detect_coding_system): Use the new struct
13041 coding_detection_info.
13042
13043 * coding.h (struct coding_detection_info): New structure.
13044 (struct coding_system): Adjust prototype of the member `detector'.
13045 (CODING_ANNOTATE_CHARSET_MASK): New macro.
13046
130472008-02-01 Kenichi Handa <handa@m17n.org>
13048
13049 * insdel.c (insert_from_gap): Fix argument to offset_intervals.
13050
130512008-02-01 Dave Love <fx@gnu.org>
13052
13053 * keymap.c (apropos_predicate, apropos_accumulate): Declare static.
13054 (Fapropos_internal): Don't gcpro apropos_accumulate. Set result
13055 to new local and nullify apropos_accumulate before returning.
13056 (syms_of_keymap): Staticpro and initialize apropos_accumulate.
13057
130582008-02-01 Kenichi Handa <handa@m17n.org>
13059
13060 * charset.c (Fdefine_charset_internal): Setup charset.fast_map
13061 correctly.
e3eea1fc 13062
aac0c6e3
MR
130632008-02-01 Dave Love <fx@gnu.org>
13064
13065 * fns.c (Flanginfo): Call synchronize_system_time_locale.
13066
130672008-02-01 Kenichi Handa <handa@m17n.org>
13068
13069 The following changes are to make character composition happen
13070 automatically on displaying.
13071
13072 * Makefile.in (lisp, shortlisp): Add composite.elc.
13073
13074 * composite.h (Qauto_composed, Vauto_composition_function)
13075 (Qauto_composition_function): Extern them.
13076
13077 * composite.c (Vcomposition_function_table)
13078 (Qcomposition_function_table): Delete variables.
13079 (Qauto_composed, Vauto_composition_function)
13080 (Qauto_composition_function): New variables.
13081 (run_composition_function): Don't call
13082 compose-chars-after-function.
13083 (update_compositions): Clear `auto-composed' text property.
13084 (compose_chars_in_text): Delete this function.
13085 (syms_of_composite): Staticpro Qauto_composed and
13086 Qauto_composition_function. Declare Vauto_composition_function as
13087 a Lisp variable.
13088
13089 * dispextern.h (enum prop_idx): Add member AUTO_COMPOSED_PROP_IDX.
13090
13091 * xdisp.c (it_props): Add an entry for Qauto_composed.
13092 (handle_auto_composed_prop): New function.
13093
13094 * xselect.c (selection_data_to_lisp_data): Don't call
13095 compose_chars_in_text.
13096
130972008-02-01 Dave Love <fx@gnu.org>
13098
13099 * keyboard.c (read_char): Modify checking around use of
13100 Vkeyboard_translate_table.
13101
13102 * xterm.c (XTread_socket): Check Lisp types for Vx_keysym_table
13103 and fix C types.
13104
131052008-02-01 Kenichi Handa <handa@m17n.org>
13106
13107 * coding.c (decode_coding_utf_8, decode_coding_emacs_mule)
13108 (decode_coding_iso_2022, decode_coding_sjis, decode_coding_big5)
13109 (decode_coding_charset, produce_chars): When eol_type is Qdos, handle
13110 the case that the last byte is '\r' correctly.
13111 (decode_coding): Flush out the unprocessed data correctly.
13112 (decode_coding_gap): Set CODING_MODE_LAST_BLOCK bit of coding->mode.
13113
131142008-02-01 Dave Love <fx@gnu.org>
13115
13116 * xterm.c (XTread_socket): Fix changes for defined keysyms.
13117 Add XK_ISO... case.
13118 (xaw_scroll_callback): Revert last change.
13119
131202008-02-01 Kenichi Handa <handa@m17n.org>
13121
13122 * charset.c (Fset_charset_priority): Update Viso_2022_charset_list.
13123
131242008-02-01 Kenichi Handa <handa@m17n.org>
13125
13126 * xfaces.c (Vface_resizing_fonts): New variable.
13127 (struct font_name): New member `resizing_ratio'.
13128 (font_resizing_ratio): New function.
13129 (split_font_name): Set font->resizing_ratio.
13130 (better_font_p): Pay attention to font->resizing_ratio.
13131 (build_scalable_font_name): Likewise. Don't change POINT_SIZE,
13132 RESX, and RESY fields.
13133 (try_alternative_families): Try scalable fonts if
13134 Vscalable_fonts_allowed is not Qt.
13135 (syms_of_xfaces): Declare Vface_resizing_fonts as a Lisp variable.
13136
131372008-02-01 Dave Love <fx@gnu.org>
13138
13139 * xterm.c (xaw_scroll_callback): Cast correctly.
13140
131412008-02-01 Dave Love <fx@gnu.org>
13142
13143 * keyboard.c (lispy_accent_codes, lispy_accent_keys): Extend.
13144 (lispy_kana_keys): Comment out.
13145 (make_lispy_event) [XK_kana_A]: Comment out.
13146
13147 * xterm.c (xaw_scroll_callback): Cast call_data.
13148 (XTread_socket): Deal with ASCII keysyms.
13149 (syms_of_xterm) <Vx_keysym_table>: Fix args of make_hash_table.
13150
131512008-02-01 Dave Love <fx@gnu.org>
13152
13153 * xterm.c (Vx_keysym_table): New.
13154 (syms_of_xterm): Initialize it.
13155 (XTread_socket): Use it.
13156 From head: Eliminate incorrect optimization that tried to avoid
13157 decoding the output of X*LookupString.
13158 (x_get_font_repertory): Delete charset declaration.
13159
131602008-02-01 Kenichi Handa <handa@m17n.org>
13161
13162 * coding.c (detect_coding_charset): If only ASCII bytes are found,
13163 return 0.
13164 (Fdefine_coding_system_internal): Setup
13165 CODING_ATTR_ASCII_COMPAT (attrs) correctly.
13166
131672008-02-01 Dave Love <fx@gnu.org>
13168
13169 * coding.c (Fcheck_coding_system): Doc fix.
13170
13171 * editfns.c (Finsert_byte): Return a proper value.
13172
131732008-02-01 Kenichi Handa <handa@m17n.org>
13174
13175 * coding.c (decode_coding): Fix args to translate_chars. Pay
13176 attention to Vstandard_translation_table_for_decode.
13177 (encode_coding): Fix args to translate_chars. Pay attention to
13178 Vstandard_translation_table_for_encode.
13179
13180 * data.c (Faset): Check NEWELT by ASCII_CHAR_P, not by
13181 SINGLE_BYTE_CHAR_P.
13182
13183 * editfns.c (general_insert_function): Check VAL by ASCII_CHAR_P,
13184 not by SINGLE_BYTE_CHAR_P.
13185
13186 * fns.c (concat): Check CH by ASCII_CHAR_P, not by
13187 SINGLE_BYTE_CHAR_P.
13188
13189 * insdel.c (copy_text): Check C by ASCII_CHAR_P, not by
13190 SINGLE_BYTE_CHAR_P.
13191
13192 * keymap.c (Ftext_char_description): Check C by ASCII_CHAR_P, not
13193 by SINGLE_BYTE_CHAR_P.
13194
13195 * search.c (Freplace_match): Check C by ASCII_CHAR_P, not by
13196 SINGLE_BYTE_CHAR_P.
13197
131982008-02-01 Dave Love <fx@gnu.org>
13199
13200 * fns.c (Fstring_as_multibyte, Fstring_to_multibyte): Doc fix.
13201
132022008-02-01 Dave Love <fx@gnu.org>
13203
13204 * fns.c (Flanginfo): Fix typo.
13205
13206 * unexelf.c (unexec): Make last change conditional on Irix 6.5.
13207
132082008-02-01 Kenichi Handa <handa@m17n.org>
13209
13210 * coding.c (detect_coding_utf_8, detect_coding_utf_16)
13211 (detect_coding_emacs_mule, detect_coding_iso_2022)
13212 (detect_coding_sjis, detect_coding_big5, detect_coding_ccl): Check
13213 incomplete byte sequence. Don't update *mask when correctly detected.
13214 (decode_coding_sjis): Fix decoding of katakana-jisx0201.
13215 (detect_eol): Delete the argument CODING, and add the argument CATEGORY.
13216 (detect_coding, detect_coding_system): Adjust for the changes above.
13217
132182008-02-01 Kenichi Handa <handa@m17n.org>
13219
13220 * character.c (char_string): Rename from
13221 char_string_with_unification. Pay attention to CHAR_MODIFIER_MASK.
13222 (string_char): Rename from string_char.
13223
13224 * character.h (CHAR_STRING, CHAR_STRING_ADVANCE): Call char_string
13225 if C is greater than MAX_3_BYTE_CHAR.
13226 (STRING_CHAR, STRING_CHAR_AND_LENGTH, STRING_CHAR_ADVANCE): Call
13227 string_char instead of string_char_with_unification.
13228
132292008-02-01 Dave Love <fx@gnu.org>
13230
13231 * coding.c (decode_coding_utf_8): Treat surrogates as invalid.
13232
132332008-02-01 Kenichi Handa <handa@m17n.org>
13234
13235 * keymap.c (push_key_description): Pay attention to force_multibyte.
13236
13237 * regex.c (re_search_2): Fix for the case of unibyte buffer.
13238
132392008-02-01 Dave Love <fx@gnu.org>
13240
13241 * charset.c (define_charset_internal): Rename `supprementary'.
13242
13243 * Makefile.in (lisp, shortlisp): Remove latin-N.
13244
132452008-02-01 Dave Love <fx@gnu.org>
13246
13247 * xfns.c (x_window, x_window): Use use_xim.
13248
13249 * xterm.c (use_xim): Initialize.
13250 (xim_open_dpy, xim_initialize, xim_close_dpy): Use use_xim.
13251 (x_term_init): Maybe set use_xim.
13252
13253 * xterm.h (use_xim) [HAVE_X_I18N]: Declare.
13254
132552008-02-01 Kenichi Handa <handa@m17n.org>
13256
13257 * search.c (search_buffer): Fix case-fold-search of multibyte
13258 characters.
13259 (boyer_moore): Rename the last argument to char_high_bits.
13260
132612008-02-01 Kenichi Handa <handa@m17n.org>
13262
13263 * xdisp.c (display_string): Fix for the case of zero width glyph.
13264
13265 * xfns.c (x_set_font): Change the error message of the case that
13266 x_new_fontset returns Qt.
13267
13268 * xfaces.c (set_lface_from_font_name): Reject the default fontset.
13269 (Finternal_set_lisp_face_attribute): Use signal_error for the
13270 error of invalid fontset.
13271
13272 * xterm.c (x_new_fontset): If FONTSETNAME specifies the default
13273 fontset, return Qt.
13274
132752008-02-01 Dave Love <fx@gnu.org>
13276
13277 * unexelf.c (unexec): Make .got handling not SGI-specific.
13278
13279 * syntax.c (syms_of_syntax) <multibyte-syntax-as-symbol>: Doc fix.
13280
13281 * regex.c: Use `ifdef HAVE_ALLOCA_H', not `if HAVE_ALLOCA_H'.
13282
13283 * keyboard.c (read_key_sequence): Fix type error.
13284
13285 * buffer.c (Fset_buffer_multibyte, Fset_buffer_multibyte): Fix
13286 type error.
13287
13288 * fontset.c (fontset_add): Return Lisp_Object.
13289
132902008-02-01 Dave Love <fx@gnu.org>
13291
13292 * charset.h (charset_ordered_list_tick): Declare extern.
13293
132942008-02-01 Kenichi Handa <handa@m17n.org>
13295
13296 The following changes (and some of 2008-02-01 changes of mine) are
13297 for handling syntax, category, and case conversion for unibyte
13298 characters by converting them to multibyte on the fly. With these
13299 changes, we don't have to setup syntax and case tables for unibyte
13300 characters in each language environment.
13301
13302 * abbrev.c (Fexpand_abbrev): Convert a unibyte character to
13303 multibyte if necessary.
13304
13305 * bytecode.c (Fbyte_code): Likewise.
13306
13307 * character.h (LEADING_CODE_LATIN_1_MIN)
13308 (LEADING_CODE_LATIN_1_MAX): New macros.
13309 (unibyte_to_multibyte_table): Extern it.
13310 (unibyte_char_to_multibyte): New macro.
13311 (MAKE_CHAR_MULTIBYTE): Use unibyte_to_multibyte_table.
13312 (CHAR_LEADING_CODE): New macro.
13313 (FETCH_STRING_CHAR_AS_MULTIBYTE_ADVANCE): New macro.
13314
13315 * character.c (unibyte_to_multibyte_table): New variable.
13316 (unibyte_char_to_multibyte): Move to character.h and define as macro.
13317 (multibyte_char_to_unibyte): If C is an eight-bit character,
13318 convert it to the corresponding byte value.
13319
13320 * charset.c (Fset_unibyte_charset): If the dimension of CHARSET is
13321 not 1, signals an error. Update the elements of
13322 unibyte_to_multibyte_table.
13323 (init_charset_once): Initialize unibyte_to_multibyte_table.
13324 (syms_of_charset): Define the charset `iso-8859-1'.
13325
13326 * cmds.c (internal_self_insert): In a multibyte buffer, insert C
13327 as is without converting it to unibyte. In a unibyte buffer,
13328 convert C to multibyte before checking the syntax.
13329
13330 * lisp.h (unibyte_char_to_multibyte): Delete extern.
13331
13332 * minibuf.c (Fminibuffer_complete_word): Use the macro
13333 FETCH_STRING_CHAR_AS_MULTIBYTE_ADVANCE.
13334
13335 * regex.h (struct re_pattern_buffer): New member target_multibyte.
13336
13337 * regex.c (RE_TARGET_MULTIBYTE_P): New macro.
13338 (GET_CHAR_BEFORE_2): Check target_multibyte, not multibyte. If
13339 that is zero, convert an eight-bit char to multibyte.
13340 (MAKE_CHAR_MULTIBYTE, CHAR_LEADING_CODE): New dummy new macros for
13341 non-emacs case.
13342 (PATFETCH): Convert an eight-bit char to multibyte.
13343 (HANDLE_UNIBYTE_RANGE): New macro.
13344 (regex_compile): Setup the compiled pattern for multibyte chars
13345 even if the given regex string is unibyte. Use PATFETCH_RAW
13346 instead of PATFETCH in many places. To handle `charset'
13347 specification of unibyte, call HANDLE_UNIBYTE_RANGE. Use bitmap
13348 only for ASCII chars.
13349 (analyse_first) <exactn>: Simplify because the compiled pattern
13350 is multibyte.
13351 <charset_not>: Setup fastmap from bitmap only for ASCII chars.
13352 <charset>: Use CHAR_LEADING_CODE to get leading codes.
13353 <categoryspec>: If multibyte, setup fastmap only for ASCII chars here.
13354 (re_compile_fastmap) [emacs]: Call analyse_first with the arg
13355 multibyte always 1.
13356 (re_search_2): In emacs, set the locale variable multibyte to 1,
13357 otherwise to 0. New local variable target_multibyte. Check it
13358 to decide the multibyteness of STR1 and STR2. If
13359 target_multibyte is zero, convert unibyte chars to multibyte
13360 before translating and checking fastmap.
13361 (TARGET_CHAR_AND_LENGTH): New macro.
13362 (re_match_2_internal): In emacs, set the locale variable multibyte
13363 to 1, otherwise to 0. New local variable target_multibyte. Check
13364 it to decide the multibyteness of STR1 and STR2. Use
13365 TARGET_CHAR_AND_LENGTH to fetch a character from D.
13366 <charset, charset_not>: If multibyte is nonzero, check fastmap
13367 only for ASCII chars. Call bcmp_translate with
13368 target_multibyte, not with multibyte.
13369 <begline>: Declare the local variable C as `unsigned'.
13370 (bcmp_translate): Change the last arg name to target_multibyte.
13371
13372 * search.c (compile_pattern_1): Don't adjust the multibyteness of
13373 the regexp pattern and the matching target. Set cp->buf.multibyte
13374 to the multibyteness of the regexp pattern. Set
13375 cp->but.target_multibyte to the multibyteness of the matching target.
13376 (wordify): Use FETCH_STRING_CHAR_AS_MULTIBYTE_ADVANCE instead of
13377 FETCH_STRING_CHAR_ADVANCE.
13378 (Freplace_match): Convert unibyte chars to multibyte.
13379
13380 * syntax.c (char_quoted, back_comment, scan_words)
13381 (Fforward_comment, scan_lists, Fbackward_prefix_chars)
13382 (scan_sexps_forward): Use FETCH_CHAR_AS_MULTIBYTE to convert
13383 unibyte chars to multibyte.
13384 (skip_chars): Delete the arg syntaxp, and move the code for
13385 handling syntaxes to skip_syntaxes. Change callers.
13386 Fix the case that the multibyteness of STRING and the current
13387 buffer doesn't match.
13388 (skip_syntaxes): New function.
13389 (SYNTAX_WITH_MULTIBYTE_CHECK): Check C by ASCII_CHAR_P, not by
13390 SINGLE_BYTE_CHAR_P.
13391
133922008-02-01 Kenichi Handa <handa@m17n.org>
13393
13394 * xfaces.c (QCfontset): New variable.
13395 (LFACE_FONTSET): New macro.
13396 (check_lface_attrs): Check also LFACE_FONTSET_INDEX.
13397 (set_lface_from_font_name): Setup LFACE_FONTSET (lface).
13398 (Finternal_set_lisp_face_attribute)
13399 (Finternal_get_lisp_face_attribute): Handle QCfontset.
13400 (lface_same_font_attributes_p): Fix checking of LFACE_FONT_INDEX,
13401 check also LFACE_FONTSET_INDEX.
13402 (face_fontset): Check attrs[LFACE_FONTSET_INDEX], not
13403 attrs[LFACE_FONT_INDEX].
13404 (syms_of_xfaces): Intern and staticpro QCfontset.
13405
13406 * dispextern.h (enum lface_attribute_index): New member
13407 LFACE_FONTSET_INDEX.
13408
13409 * fns.c (base64_encode_1): Handle eight-bit chars correctly.
13410
134112008-02-01 Kenichi Handa <handa@m17n.org>
13412
13413 * coding.c (coding_set_destination): Fix coding->destination for
13414 the case converting a region.
13415 (encode_coding_utf_8): Encode eight-bit chars as single byte.
13416 (encode_coding_object): Fix coding->dst_pos and
13417 coding->dst_pos_byte for the case converting a region.
13418
13419 * insdel.c (insert_from_gap): Make it work even if PT != GTP.
13420
13421 * character.h (BYTE8_STRING): New macro.
13422
13423 * fns.c (base64_decode_1): Insert eight-bit chars correctly.
13424
134252008-02-01 Kenichi Handa <handa@m17n.org>
13426
13427 * xdisp.c (get_next_display_element): Don't display unibyte 8-bit
13428 characters by octal form.
13429
13430 * abbrev.c (Fexpand_abbrev): Fix for the multibyte case.
13431
13432 * buffer.h (_fetch_multibyte_char_len): Delete extern.
13433 (FETCH_MULTIBYTE_CHAR, BUF_FETCH_MULTIBYTE_CHAR): Don't use
13434 _fetch_multibyte_char_len.
13435 (FETCH_CHAR_AS_MULTIBYTE): New macro.
13436
13437 * casetab.c (set_canon, set_identity, shuffle): Simplify.
13438
13439 * casefiddle.c (casify_object): Simplify. Handle the case that
13440 the case conversion change the byte length.
13441 (casify_region): Likewise.
13442
13443 * character.h (MAKE_CHAR_UNIBYTE, MAKE_CHAR_MULTIBYTE): New macros.
13444
13445 * character.c (_fetch_multibyte_char_len): Delete this variable.
13446 (syms_of_character): Setup Vprintable_chars.
13447
13448 * editfns.c (Fchar_equal): Fix for the unibyte case.
13449 (Finsert_byte): New function.
13450 (syms_of_editfns): Defsubr it.
13451
13452 * keyboard.c (read_key_sequence): Use ~CHAR_MODIFIER_MASK instead
13453 of direct code 0x3ffff.
13454
13455 * search.c (Freplace_match): Fix for the unibyte case.
13456
134572008-02-01 Kenichi Handa <handa@m17n.org>
13458
13459 * lread.c (safe_to_load_p): Fix the logic.
13460
13461 * syntax.c (scan_words): Don't treat characters belonging to
13462 different scripts as constituting a word.
13463
13464 * editfns.c (Fformat): Use ASCII_CHAR_P, not SINGLE_BYTE_CHAR_P.
13465
13466 * fontset.c (Fset_fontset_font): Treat `ascii' as charset, not script.
13467
13468 * emacs.c (main): In the case of --unibyte, instead of aborting on
13469 finding non-empty buffer, make it unibyte.
13470
134712008-02-01 Kenichi Handa <handa@m17n.org>
13472
13473 * xterm.c (x_new_fontset): Call `create-fontset-from-ascii-font'
13474 to create a fontset.
13475
134762008-02-01 Dave Love <fx@gnu.org>
13477
13478 * character.c (Funibyte_char_to_multibyte): Doc fix.
13479
13480 * xfns.c [HAVE_STDLIB_H]: Fix last change.
13481
134822008-02-01 Kenichi Handa <handa@m17n.org>
13483
13484 * fontset.c (fontset_add): Make the type `int'.
13485 (fontset_id_valid_p): Define it if FONTSET_DEBUG is defined.
13486
13487 * character.c (unibyte_char_to_multibyte)
13488 (multibyte_char_to_unibyte, Funibyte_char_to_multibyte): Refer to
13489 charset_unibyte, not charset_primary.
13490
13491 * charset.h (charset_unibyte): Extern it instead of charset_primary.
13492
13493 * charset.c (charset_unibyte): Rename from charset_primary.
13494 (Funibyte_charset): Rename from Fprimary_charset.
13495 (Fset_unibyte_charset): Rename from Fset_primary_charset.
13496 (syms_of_charset): Adjust for the above changes.
13497
13498 * w32term.c (x_produce_glyphs): Use ASCII_CHAR_P, not
13499 SINGLE_BYTE_CHAR_P. Fix the logic of handling non-ASCII char when
13500 it->multibyte_p is zero.
13501
13502 * lisp.h (nonascii_insert_offset, Vnonascii_translation_table):
13503 Delete extern.
13504
135052008-02-01 Kenichi Handa <handa@m17n.org>
13506
13507 * coding.c (Fdefine_coding_system_internal): Fix category setting
13508 for a coding system of type iso-2022.
13509
135102008-02-01 Kenichi Handa <handa@m17n.org>
13511
13512 * fontset.h (FS_LOAD_FONT): Call fs_load_font with the arg CHARSET -1.
13513
135142008-02-01 Kenichi Handa <handa@m17n.org>
13515
13516 * syntax.c (Vnext_word_boundary_function_table): New variable.
13517 (next-word-boundary-function-table): Declare it as a Lisp variable
13518 in syms_of_syntax.
13519 (scan_words): Call functions in Vnext_word_boundary_function_table
13520 if any.
13521
13522 * xterm.c (x_load_font): Initialize fontp->fontset to -1.
13523
13524 * fontset.c (fs_load_font): If fontp->charset is not negative,
13525 return fontp without setting its members.
13526
135272008-02-01 Dave Love <fx@gnu.org>
13528
13529 * xfns.c [HAVE_STDLIB_H]: Change logic (instead of fixing typo).
13530
13531 * m/sparc.h (HAVE_ALLOCA): Delete.
13532
13533 * s/irix6-5.h: Don't include strings.h.
13534 (bcopy, bzero, bcmp): Don't undef.
13535
13536 * s/irix6-0.h (bcopy, bzero, bcmp): Don't undef.
13537
13538 * s/usg5-4.h (NO_SIOCTL_H): Don't define.
13539 (TIOCSIGSEND): Don't test IRIX6.
13540 (bcopy, bzero, bcmp): Define conditionally.
13541
135422008-02-01 Kenichi Handa <handa@m17n.org>
13543
13544 * buffer.c (Qas, Qmake, Qto): New variables.
13545 (Fset_buffer_multibyte): New optional arg METHOD. Change caller.
13546 (syms_of_buffer): Intern and staticpro Qas, Qmake, and Qto.
13547
13548 * callproc.c (Fcall_process): Don't call insert_1_both directly if
13549 we are inserting a process output into a multibyte buffer.
13550
13551 * character.h (CHAR_TO_BYTE8): If C is not eight-bit char, call
13552 multibyte_char_to_unibyte.
13553
13554 * character.c (Funibyte_char_to_multibyte): If C can't be decoded
13555 by the primary charset, make it eight-bit char.
13556 (Fmultibyte_char_to_unibyte): Call CHAR_TO_BYTE8.
13557
13558 * charset.c (charset_eight_bit, Qeight_bit_control): New variables.
13559 (charset_8_bit__control, charset_8_bit_graphic)
13560 (Qeight_bit_control, Qeight_bit_graphic): Delete these variables.
13561 (define_charset_internal): New function.
13562 (syms_of_charset): Call define_charset_internal for pre-defined
13563 charsets.
13564
13565 * charset.h (charset_8_bit): Extern it.
13566
13567 * coding.c (make_conversion_work_buffer): Adjust for the change
13568 of Fset_buffer_multibyte.
13569 (encode_coding_raw_text): Increment p0 in the loop.
13570
13571 * lisp.h (Fset_buffer_multibyte): Adjust prototype.
13572
13573 * xdisp.c (setup_echo_area_for_printing, set_message_1): Adjust
13574 for the change of Fset_buffer_multibyte.
13575
13576 * fns.c (Fstring_to_multibyte): New function.
13577 (syms_of_fns): Declare Fstring_to_multibyte as Lisp subroutine.
13578
135792008-02-01 Dave Love <fx@gnu.org>
13580
13581 * xfns.c (x_put_x_image): Declare args.
13582
13583 * xfaces.c (font_name_registry, choose_face_font): Delete unused vars.
13584 (try_font_list): Declare an arg.
13585
13586 * xdisp.c (message2_nolog, set_message): Declare an arg.
13587
13588 * terminfo.c (tparam): Declare an arg. Use P_ to declare tparm.
13589
13590 * syntax.c (scan_sexps_forward): Declare an arg.
13591
13592 * scroll.c (calculate_scrolling, calculate_direct_scrolling):
13593 Declare an arg.
13594
13595 * lisp.h (Fnew_fontset): Declare.
13596
13597 * keymap.c (push_key_description): Call CHARACTERP correctly.
13598
13599 * fontset.c (fontset_add): Declare args. Call make_number correctly.
13600 (face_for_char): Delete unused vars.
13601 (Fset_fontset_font): Doc fix. Delete unused vars.
13602
13603 * doc.c (Fsubstitute_command_keys): Delete unused vars.
13604
13605 * composite.c (update_compositions): Declare arg.
13606
13607 * cm.c (calccost, cmgoto): Declare args.
13608
13609 * charset.c: Remove `emacs' conditional. Doc fixes.
13610 (map_char_table_for_charset): Declare.
13611
13612 * character.c (syms_of_character) <translation-table-vector>: Doc fix.
13613
13614 * ccl.c: Remove `emacs' conditional.
13615
136162008-02-01 Kenichi Handa <handa@m17n.org>
13617
13618 The following changes are to allow specifying multiple font
13619 patterns for a character range (specified by script or charset).
13620
13621 * Makefile.in (abbrev.o): Depend on syntax.h.
13622 (xfaces.o): Depend on charset.h.
13623
13624 * alloc.c (Fmake_string): Use ASCII_CHAR_P, not
13625 SINGLE_BYTE_CHAR_P.
13626
13627 * ccl.c (Fccl_execute_on_string): Add `const' to local variables.
13628
13629 * character.h (Vchar_script_table): Extern it.
13630
13631 * character.c (Vscript_alist): Delete.
13632 (Vchar_script_table, Qchar_script_table): New variable.
13633 (syms_of_character): Declare Vchar_script_table as a lisp variable
13634 and initialize it.
13635
13636 * chartab.c (Fmake_char_table): Doc fix. If PURPOSE doesn't
13637 have property char-table-extra-slots, make no extra slot.
13638
13639 * dispextern.h (struct face): Delete member `charset'.
13640 (FACE_SUITABLE_FOR_CHAR_P, FACE_FOR): Use ASCII_CHAR_P, not
13641 SINGLE_BYTE_CHAR_P.
13642 (choose_face_font, lookup_non_ascii_face, font_name_registry):
13643 Add prototypes.
13644 (lookup_face, lookup_named_face, lookup_derived_face): Fix prototype.
13645 (generate_ascii_font_name): Rename from generate_ascii_font.
13646
13647 * fontset.h (get_font_repertory_func): New prototype.
13648 (make_fontset_for_ascii_face, fs_load_font): Fix prototypes.
13649 (FS_LOAD_FONT): Call fs_load_font with the 3rd arg charset_ascii.
13650
13651 * fontset.c (Qprepend, Qappend): New variables.
13652 (FONTSET_CHARSET_ALIST, FONTSET_FACE_ALIST): Delete.
13653 (FONTSET_NOFONT_FACE, FONTSET_REPERTORY): New macros.
13654 (FONTSET_REF): Optimize if FONTSET is Vdefault_fontset.
13655 (FONTSET_REF_AND_RANGE, FONTSET_ADD): New macros.
13656 (fontset_ref_and_range, fontset_add, reorder_font_vector)
13657 (load_font_get_repertory): New functions.
13658 (fontset_set): Delete.
13659 (fontset_face): New arg FACE. Return face ID, not face.
13660 Complete re-write to handle new fontset structure. Change caller.
13661 (free_face_fontset): Use ASET istead of AREF (X) = Y.
13662 (face_for_char): Don't call lookup_face.
13663 (make_fontset_for_ascii_face): New arg FACE.
13664 (fs_load_font): New arg CHARSET_ID. Don't check
13665 Vfont_encoding_alist here.
13666 (find_font_encoding): New function.
13667 (list_fontsets): Use STRINGP, not ! NILP.
13668 (accumulate_script_ranges): New function.
13669 (Fset_fontset_font, Fnew_fontset, Ffontset_info): Completely
13670 re-written to handle new fontset structure.
13671 (Ffontset_font): Return a copy of element.
13672 (syms_of_fontset): Define symbols Qprepend and Qappend. Fix
13673 docstring of font-encoding-alist.
13674
13675 * lisp.h (CHAR_TABLE_REF): Remove unnecessary check (IDX >= 0).
13676 (Fset_fotset_font): Fix arguments to 5.
13677
13678 * msdos.c (XMenuActivate): Adjust for the change of lookup_derived_face.
13679
13680 * xdisp.c (message_dolog, set_message_1, extend_face_to_end_of_line):
13681 Use ASCII_CHAR_P, not SINGLE_BYTE_CHAR_P.
13682 (highlight_trailing_whitespace): Adjust for the change of
13683 lookup_named_face.
13684
13685 * xfaces.c: Include charset.h.
13686 (load_face_font): Delete argument C. Change caller.
13687 (generate_ascii_font_name): Rename from generate_ascii_font.
13688 (font_name_registry): New function.
13689 (cache_face): Store ascii faces before non-ascii faces in buckets.
13690 (lookup_face): Delete arguments C and BASE_FACE. Change caller.
13691 Lookup only ascii faces.
13692 (lookup_non_ascii_face): New function.
13693 (lookup_named_face): Delete argument C. Change caller.
13694 (lookup_derived_face): Delete argument C. Change caller.
13695 (try_font_list): New arg PATTERN. Change caller. If PATTERN is
13696 a string, just call font_list with it.
13697 (choose_face_font): Delete arguments FACE and C. New arg
13698 FONT_SPEC. Change caller.
13699 (realize_face, realize_x_face): Delete arguments C and BASE_FACE.
13700 Change caller.
13701 (realize_non_ascii_face): New function.
13702 (realize_x_face): Call load_face_font here.
13703 (realize_tty_face): Delete argument C. Change caller.
13704 (compute_char_face): If CH is not ascii, call FACE_FOR_CHAR to
13705 get a face ID.
13706 (dump_realized_face): Don't print charset of FACE.
13707
13708 * xfns.c (x_set_font): Always call x_new_fontset and
13709 store_frame_parameter.
13710 (Fx_create_frame): Call x_new_fontset, not x_new_font.
13711 (syms_of_xfns): Set get_font_repertory_func to x_get_font_repertory.
13712
13713 * xterm.h (x_get_font_repertory): Extern it.
13714
13715 * xterm.c (x_produce_glyphs): Use ASCII_CHAR_P, not
13716 SINGLE_BYTE_CHAR_P. Fix the logic of handling non-ASCII char when
13717 it->multibyte_p is zero.
13718 (XTread_socket): Use ASCII_CHAR_P, not SINGLE_BYTE_CHAR_P.
13719 (x_new_fontset): If FONTSETNAME doesn't match any existing
13720 fontsets, create a new one.
13721 (x_get_font_repertory): New function.
13722
137232008-02-01 Kenichi Handa <handa@m17n.org>
13724
13725 * coding.c (Ffind_coding_systems_region_internal): Detect an
13726 ASCII only string correctly.
13727
13728 * lread.c (Fload): Don't load with Qload_force_doc_strings t if
13729 version is 0.
13730
137312008-02-01 Kenichi Handa <handa@m17n.org>
13732
13733 * lread.c: Include "coding.h".
13734 (Qget_emacs_mule_file_char, Qload_force_doc_strings)
13735 (load_each_byte, unread_char): New variables.
13736 (readchar_backlog): Delete.
13737 (readchar): Return a character unless load_each_byte is nonzero.
13738 Handle the case that readcharfun is Qget_emacs_mule_file_char or a
13739 cons. If unread_char is not -1, simply return it.
13740 (unreadchar): Handle the case that readcharfun is
13741 Qget_emacs_mule_file_char or a cons. Set unread_char if necessary.
13742 (read_multibyte): Delete.
13743 (readbyte_for_lambda, readbyte_from_file, readbyte_from_string)
13744 (read_emacs_mule_char): New functions.
13745 (Fload): Even if the file doesn't have the extension ".elc", if
13746 safe_to_load_p returns a positive version number, assume that the
13747 file contains bytecompiled code. If the version is less than 22,
13748 load the file while decoding multibyte sequences by emacs-mule.
13749 (readevalloop): Don't use readchar_backlog.
13750 (Fread): Likewise. Pay attention to the case that STREAM is a cons.
13751 (Fread_from_string): Pay attention to the case that STREAM is a cons.
13752 (read_escape): Delete the arg BYTEREP.
13753 (read1): Set load_each_byte to 1 temporarily while handling
13754 #@NUMBER. Don't call read_multibyte.
13755 (read_vector): Call Fread with a cons. If readcharfun is
13756 Qget_emacs_mule_file_char, decode the read string by emacs-mule.
13757 (read_list): If doc_reference is 2, make the cdr part string as unibyte.
13758 (syms_of_lread): Intern and staticpro Qget_emacs_mule_file_char
13759 and Qload_force_doc_strings.
13760
137612008-02-01 Kenichi Handa <handa@m17n.org>
13762
13763 * xdisp.c (face_before_or_after_it_pos): Call
13764 FETCH_MULTIBYTE_CHAR with byte postion, not char position.
13765
137662008-02-01 Kenichi Handa <handa@m17n.org>
13767
13768 * character.h (TRAILING_CODE_P): New macro.
13769 (MAYBE_UNIFY_CHAR): Adjust for the change of Funify_charset.
13770 (string_char_with_unification): Fix prototype.
13771 (Vscript_alist): Extern it.
13772
13773 * character.c (Vscript_alist): New variable.
13774 (string_char_with_unification, str_as_unibyte)
13775 (string_escape_byte8): Add `const' to local variables.
13776 (syms_of_character): Declare script-alist as a Lisp variable.
13777
13778 * charset.h (Vcharset_ordered_list): Extern it.
13779 (charset_ordered_list_tick): Extern it.
13780 (EMACS_MULE_LEADING_CODE_PRIVATE_11)
13781 (EMACS_MULE_LEADING_CODE_PRIVATE_12)
13782 (EMACS_MULE_LEADING_CODE_PRIVATE_21)
13783 (EMACS_MULE_LEADING_CODE_PRIVATE_22): New macros.
13784 (Funify_charset): Adjust for the change of Funify_charset.
13785
13786 * charset.c (charset_ordered_list_tick): New variable.
13787 (Fdefine_charset_internal): Increment charset_ordered_list_tick.
13788 (Funify_charset): New optional arg DEUNIFY. If it is non-nil,
13789 deunify intead of unify a charset.
13790 (string_xstring_p): Add `const' to local variables.
13791 (find_charsets_in_text): Add `const' to arguments and local variables.
13792 (encode_char): Adjust for the change of Funify_charset. Fix
13793 detecting of invalid code.
13794 (Fset_charset_priority): Increment charset_ordered_list_tick.
13795 (Fmap_charset_chars): Fix handling of default value for FROM_CODE
13796 and TO_CODE.
13797
13798 * coding.c (LEADING_CODE_PRIVATE_11, LEADING_CODE_PRIVATE_12)
13799 (LEADING_CODE_PRIVATE_21, LEADING_CODE_PRIVATE_22): Delete macros.
13800 Changed callers to use EMACS_MULE_LEADING_CODE_PRIVATE_11, etc.
13801 (decode_coding_ccl, consume_chars)
13802 (Ffind_coding_systems_region_internal)
13803 (Fcheck_coding_systems_region): Add `const' to local variables.
13804
13805 * print.c (print_object): Use octal form for printing the
13806 contents of a bool vector.
13807
138082008-02-01 Dave Love <fx@gnu.org>
13809
13810 * lread.c (Fload) <!load_dangerous_libraries>: Don't leak fd.
13811 <version == 20>: Refuse to load.
13812
138132008-02-01 Dave Love <fx@gnu.org>
13814
13815 * fns.c: Move coding.h.
13816 (Qcodeset, Qdays, Qmonths): New.
13817 (concat): Use CHARACTERP instead of INTEGERP.
13818 (Flocale_codeset): Delete.
13819 (Flanginfo): New function.
13820 (syms_of_fns): Change accordingly.
13821
13822 * coding.c (adjust_coding_eol_type): Fix eol_type/eol_seen mixup.
13823
138242008-02-01 Dave Love <fx@gnu.org>
13825
13826 * casetab.c (init_casetab_once, init_casetab_once): Fix
13827 CHAR_TABLE_SET call.
13828
13829 * category.c (Fmodify_category_entry): Fix CATEGORY_MEMBER call.
13830
13831 * character.c (syms_of_character): Fix CHAR_TABLE_SET call.
13832
13833 * charset.c (Fmap_charset_chars): Check args. Convert Lisp types.
13834 (load_charset_map, Fdeclare_equiv_charset, Fencode_char)
13835 (Fset_charset_priority, syms_of_charset): Convert Lisp types.
13836
13837 * charset.h (CHECK_CHARSET_GET_ID): Use XINT on AREF result.
13838
13839 * coding.c (ENCODE_DESIGNATION, decode_eol)
13840 (make_conversion_work_buffer, code_conversion_restore)
13841 (Fdefine_coding_system_internal): Convert Lisp types.
13842 (code_conversion_restore): Use EQ, not ==.
13843 (Fencode_coding_string): Fix code_convert_string call.
13844
13845 * coding.h (code_convert_region): Fix prototype.
13846
13847 * dispextern.h (redraw_frame, redraw_garbaged_frames): Remove.
13848
13849 * fontset.c (fontset_ref, fontset_set, fs_load_font)
13850 (Ffontset_info): Convert Lisp types.
13851
13852 * syntax.h (SYNTAX_ENTRY_INT): Don't use make_number.
13853
13854 * xterm.c (note_mouse_movement): Fix call of window_from_coordinates.
13855
13856 * xdisp.c (display_mode_element): Fix call of Fset_text_properties.
13857
13858 * chartab.c: Include "...h", not <...h> in some cases.
13859
13860 * callproc.c (Fcall_process): Remove unused variables.
13861
138622008-02-01 Dave Love <fx@gnu.org>
13863
13864 * coding.c (Fset_coding_system_priority): Allow null arg list.
13865
138662008-02-01 Dave Love <fx@gnu.org>
13867
13868 * minibuf.c (Fminibuffer_complete_word): Remove unused var.
13869 (Fself_insert_and_exit): Use CHARACTERP.
13870
13871 * callproc.c (Fcall_process): Remove unused vars.
13872
13873 * xterm.c (XTread_socket): Add extra dead keysyms.
13874
13875 * xdisp.c (decode_mode_spec_coding): Use CHARACTERP.
13876
13877 * dispextern.h: Remove prototypes for redraw_frame,
13878 redraw_garbaged_frames.
13879
13880 * cmds.c (Fself_insert_command): Use CHARACTERP.
13881
13882 * chartab.c (make_sub_char_table): Remove unused var.
13883 (Fset_char_table_default, Fmap_char_table): Doc fix.
13884
13885 * keymap.c (access_keymap): Remove generic char code.
13886 (push_key_description): Use CHARACTERP.
13887
138882008-02-01 Dave Love <fx@gnu.org>
13889
13890 * charset.c: Doc fixes.
13891 (Funify_charset): Extra checking.
13892
138932008-02-01 Dave Love <fx@gnu.org>
13894
13895 * lread.c: Remove some unused variables.
13896 (safe_to_load_p): If safe, return the magic number version byte.
13897 (Fload): Maybe use load-with-code-conversion.
13898
138992008-02-01 Kenichi Handa <handa@m17n.org>
13900
13901 * category.c (Fmodify_category_entry): Don't modify the contents
13902 of category_set for characters out of the range. Avoid
13903 unnecessary modification.
13904
13905 * character.h (MAYBE_UNIFY_CHAR): Adjust for the change of
13906 Vchar_unify_table. The default value of the table is now nil.
13907
13908 * character.c (syms_of_character): Setup Vchar_width_table for
13909 eight-bit-control and raw-byte chars.
13910
13911 * charset.h (enum define_charset_arg_index): Delete
13912 charset_arg_parents and add charset_arg_subset and
13913 charset_arg_superset.
13914 (enum charset_attr_index): Delete charset_parents and add
13915 charset_subset and charset_superset.
13916 (enum charset_method): Delete CHARSET_METHOD_INHERIT and add
13917 CHARSET_METHOD_SUBSET and CHARSET_METHOD_SUPERSET.
13918 (CHARSET_ATTR_PARENTS, CHARSET_PARENTS): Delete.
13919 (CHARSET_ATTR_SUBSET, CHARSET_ATTR_SUPERSET, CHARSET_SUBSET)
13920 (CHARSET_SUPERSET): New macros.
13921 (charset_work): Extern it.
13922 (ENCODE_CHAR): Use charset_work.
13923 (CHAR_CHARSET_P): Adjust for the change of encoder format.
13924 (map_charset_chars): Extern it.
13925
13926 * charset.c (load_charset_map): Set the default value of encoder
13927 and deunifier char-tables to nil.
13928 (map_charset_chars): Change argument. Change callers. Use
13929 map_char_table_for_charset instead of map_char_table.
13930 (Fmap_charset_chars): New optional args from_code and to_code.
13931 (Fdefine_charset_internal): Adjust for the change of
13932 `define-charset' (:parents -> :subset or :superset).
13933 (charset_work): New variable.
13934 (encode_char, syms_of_charset): Adjust for the change of
13935 Fdefine_charset_internal.
13936 (Ffind_charset_string): Setup the vector `charsets' correctly.
13937
13938 * chartab.c (sub_char_table_ref_and_range): New arg default. Fix
13939 the previous change.
13940 (char_table_ref_and_range): Adjust for the above change.
13941 (map_sub_char_table_for_charset): New function.
13942 (map_char_table_for_charset): New function.
13943
13944 * keymap.c (describe_vector): Handle a char-table directly here.
13945 (describe_char_table): Delete.
13946
13947 * lisp.h (map_charset_chars): Delete.
13948
139492008-02-01 Dave Love <fx@gnu.org>
13950
13951 * fns.c (count_combining): Comment out (unused).
13952 (Flocale_codeset): New.
13953 (syms_of_fns): Defsubr it.
13954
13955 * config.in (HAVE_PTY_H, HAVE_SIZE_T, HAVE_LANGINFO_CODESET): New.
13956 (size_t): Remove.
13957
139582008-02-01 Dave Love <fx@gnu.org>
13959
13960 * Makefile.in (chartab.o): Depend on charset.h.
13961
139622008-02-01 Kenichi Handa <handa@m17n.org>
13963
13964 * character.c (syms_of_character): Set the default value of
13965 Vprintable_chars to Qnil.
13966
139672008-02-01 Dave Love <fx@gnu.org>
13968
13969 * Makefile.in (lisp, shortlisp): Change indian.elc to indian.el.
13970
139712008-02-01 Kenichi Handa <handa@m17n.org>
13972
13973 * charset.c (load_charset_map): Handle the case that from < to
13974 correctly.
13975
13976 * coding.c (encode_coding_emacs_mule, encode_coding_iso_2022)
13977 (encode_coding_sjis, encode_coding_big5, encode_coding_charset):
13978 Pay attention to raw-8-bit chars.
13979
139802008-02-01 Kenichi Handa <handa@m17n.org>
13981
13982 * Makefile.in (lisp, shortlisp): Change chinese.elc to chinese.el.
13983 It is not bytecompiled now.
13984
13985 * charset.c (charset_jisx0201_roman, charset_jisx0208_1978)
13986 (charset_jisx0208): New variables.
13987 (Fdefine_charset_internal): Setup them if appropriate.
13988 (init_charset_once): Initialize them to -1.
13989
13990 * charset.h (charset_jisx0201_roman, charset_jisx0208_1978)
13991 (charset_jisx0208): Extern them.
13992
13993 * coding.c (CODING_ISO_FLAG_USE_ROMAN): New macro.
13994 (CODING_ISO_FLAG_USE_OLDJIS): New macro.
13995 (CODING_ISO_FLAG_FULL_SUPPORT): Change macro definition.
13996 (setup_iso_safe_charsets): Fix arguments to Fassq.
13997 (DECODE_DESIGNATION, ENCODE_ISO_CHARACTER_DIMENSION1)
13998 (ENCODE_ISO_CHARACTER_DIMENSION2): Pay attention to
13999 CODING_ISO_FLAG_USE_ROMAN and CODING_ISO_FLAG_USE_OLDJIS.
14000 (encode_coding_iso_2022): Change the 1st arg to
14001 ENCODE_ISO_CHARACTER to a variable.
14002
140032008-02-01 Kenichi Handa <handa@m17n.org>
14004
14005 * charset.h (enum define_charset_arg_index): New enums
14006 charset_arg_min_code and charset_arg_max_code.
14007 (struct charset): New member char_index_offset.
14008
14009 * charset.c (CODE_POINT_TO_INDEX, INDEX_TO_CODE_POINT):
14010 Take charset->char_index_offset into account.
14011 (Fdefine_charset_internal): Handle args[charset_arg_min_code] and
14012 args[charset_arg_max_code]. Setup charset.char_index_offset.
14013 (syms_of_charset): Fix args to Fdefine_charset_internal.
14014
140152008-02-01 Dave Love <fx@gnu.org>
14016
14017 * coding.c (decode_coding_utf_8): Reject overlong sequences.
14018
140192008-02-01 Dave Love <fx@gnu.org>
14020
14021 * coding.c: Doc fixes.
14022 (Fcoding_system_aliases): Fix return value.
14023 (Qmac): Remove (duplicated) definition.
14024
140252008-02-01 Dave Love <fx@gnu.org>
14026
14027 * charset.c (Fcharset_priority_list, Fset_charset_priority): New
14028 functions.
14029
14030 * character.c (Fstring): Doc fix.
14031
14032 * charset.c (Fdefine_charset_alias): Update Vcharset_list.
14033
14034 * fontset.c (Ffontset_info): Doc fix. Return charset names, not
14035 ids.
14036 (font-encoding-alist): Doc fix.
14037
140382008-02-01 Dave Love <fx@gnu.org>
14039
14040 * term.c (costs_set): Declare static, non-initialized for pcc.
14041 (encode_terminal_code): Remove unused var.
14042
14043 * keyboard.c (kbd_buffer_store_event): Fix interrupt_signal decl
14044 for K&R.
14045
14046 * xterm.c (xlwmenu_window_p): Fix prototype for K&R.
14047
14048 * coding.c (setup_iso_safe_charsets): Fix arg decl for K&R.
14049 (suffixes): Move out of make_subsidiaries for K&R.
14050
14051 * charset.c (map_charset_chars): Fix c_function declaration for K&R.
14052
14053 * lisp.h (DEFUN) [!PROTOTYPES]: Remove spurious `args'.
14054
140552008-02-01 Dave Love <fx@gnu.org>
14056
14057 * data.c (Fchar_or_string_p): Doc fix. Use CHARACTERP.
14058
14059 * category.c (Fmodify_category_entry): Doc fix. Remove unused vars.
14060
140612008-02-01 Yong Lu <lyongu@asia-infonet.com>
14062
14063 * charset.c (Fdefine_charset_internal): Fix argument to bzero.
14064
14065 * coding.c (decode_coding_charset): Workaround for the bug of GCC 2.96.
14066
140672008-02-01 Kenichi Handa <handa@m17n.org>
14068
14069 * Makefile.in (lisp, shortlisp): Change cyrillic.elc to cyrillic.el,
14070 vietnamese.elc to vietnamese.el. They are not bytecompiled now.
14071
140722008-02-01 Kenichi Handa <handa@m17n.org>
14073
14074 * coding.c (decode_coding_charset): Adjust for the change of
14075 Fdefine_coding_system_internal.
14076 (Fdefine_coding_system_internal): For a coding system of
14077 `charset' type, store a list of charset IDs in
14078 `charset_attr_charset_valids' element of coding attributes.
14079
140802008-02-01 Kenichi Handa <handa@m17n.org>
14081
14082 * coding.c (ONE_MORE_BYTE_NO_CHECK): Increment consumed_chars.
14083 (emacs_mule_char): New arg src. Delete arg `composition'. Change
14084 caller. Handle 2-byte and 3-byte charsets correctly.
14085 (DECODE_EMACS_MULE_COMPOSITION_RULE_20): Rename from
14086 DECODE_EMACS_MULE_COMPOSITION_RULE. Change caller.
14087 (DECODE_EMACS_MULE_COMPOSITION_RULE_21): New macro.
14088 (DECODE_EMACS_MULE_21_COMPOSITION): Call
14089 DECODE_EMACS_MULE_COMPOSITION_RULE_21. Produce correct annotation
14090 sequence.
14091 (decode_coding_emacs_mule): Handle composition correctly. Rewind
14092 `src' and `consumed_chars' correctly before calling emacs_mule_char.
14093 (DECODE_COMPOSITION_START): Correctly handle the case of altchar
14094 and alt&rule composition.
14095 (decode_coding_iso_2022): Handle composition correctly.
14096 (init_coding_once): Setup emacs_mule_bytes for private charsets.
14097
14098 * charset.c (Fdefine_charset_internal): Fix bug for the case of
14099 re-defining a charset. If the charset has :emacs-mule-id, setup
14100 emacs_mule_bytes.
14101 (Fmake_char): If CODE1 is nil, use the minimum code of the charset.
14102
141032008-02-01 Kenichi Handa <handa@m17n.org>
14104
14105 * coding.c (encode_coding_iso_2022, encode_coding_sjis)
14106 (encode_coding_big5, encode_coding_charset): If coding requires safe
14107 encoding, produce a character specified by
14108 CODING_INHIBIT_CHARACTER_SUBSTITUTION.
14109
141102008-02-01 Dave Love <fx@gnu.org>
14111
14112 * xterm.c (XSetIMValues): Declare.
14113
14114 * process.c: Conditionally include sys/wait.h, pty.h.
14115
14116 * print.c (print_object): Fix print format for 64-bit systems.
14117
14118 * keyboard.c (modify_event_symbol): Fix print format for 64-bit systems.
14119
14120 * buffer.c (emacs_strerror): Declare.
14121
14122 * fontset.c (Fclear_face_cache): Declare.
14123 (accumulate_font_info): Comment-out (unused).
14124 (face_for_char, Fset_fontset_font, Ffontset_info): Remove unused
14125 variables.
14126
14127 * character.h (string_escape_byte8): Declare.
14128
14129 * charset.c (load_charset_map, load_charset_map_from_file): Remove
14130 unused vars.
14131 (Fdefine_charset_internal, Fsplit_char, syms_of_charset)
14132 (Fmap_charset_chars): Doc fix.
14133
14134 * coding.c (Vchar_coding_system_table, Qchar_coding_system): Remove.
14135 (Fset_coding_system_priority, Fset_coding_system_priority)
14136 (Fdefine_coding_system_internal): Doc fix.
14137
141382008-02-01 Dave Love <fx@gnu.org>
14139
14140 * s/osf5-0.h (C_SWITCH_SYSTEM) [!__GNUC__]: Remove -nointrinsics.
14141
141422008-02-01 Kenichi Handa <handa@m17n.org>
14143
14144 * character.c (string_escape_byte8): Make multibyte string with
14145 correct size.
14146
14147 * charset.c (Fmake_char): Delete unnecessary code.
14148
141492008-02-01 Kenichi Handa <handa@m17n.org>
14150
14151 * xfns.c (x_encode_text): Allocate coding.destination here, and
14152 call encode_coding_object with dst_object Qnil.
14153
14154 * buffer.c (Fset_buffer_multibyte): Convert 8-bit bytes to
14155 multibyte form correctly.
14156
14157 * fontset.c (fs_load_font): Check fontp->full_name (not fontname)
14158 against Vfont_encoding_alist.
14159
14160 * coding.c (Fdecode_sjis_char): Fix typo (0x7F->0xFF). Fix the
14161 handling of charset list.
14162 (encode_coding_iso_2022): Setup coding->safe_charsets in advance.
14163 (decode_coding_object): Move point to coding->dst_pos before
14164 calling post-read-conversion function.
14165 (encode_coding_object): Give correct arguments to
14166 pre-write-conversion. Ignore the return value of
14167 pre-write-conversion function. Pay attention to the case that
14168 pre-write-conversion changes the current buffer. If dst_object is
14169 Qt, even if coding->src_bytes is zero, allocate at least one byte
14170 to coding->destination.
14171
14172 * coding.h (JIS_TO_SJIS): Fix typo (j1->s1, j2->s2).
14173
14174 * charset.c (Fmake_char): Make it more backward compatible.
14175 (Fmap_charset_chars): Fix docstring.
14176
141772008-02-01 Dave Love <fx@gnu.org>
14178
14179 * coding.c: Doc fixes.
14180 (Fdefine_coding_system_alias): Use names, not symbols, in
14181 coding-system-alist.
14182
141832008-02-01 Kenichi Handa <handa@m17n.org>
14184
14185 * fontset.c (free_realized_fontsets): Call Fclear_face_cache instead
14186 of calling free_realized_face.
14187
141882008-02-01 Yong Lu <lyongu@asia-infonet.com>
14189
14190 * charset.c (read_hex): Don't treat SPC as a comment starter.
14191 (decode_char): If CODE_POINT_TO_INDEX returns -1, always return -1.
14192 (Fdecode_char): Fix typo.
14193
141942008-02-01 Kenichi Handa <handa@m17n.org>
14195
14196 * charset.h (struct charset): New member `code_space_mask'.
14197
14198 * coding.c (coding_set_source): Delete the local variable beg_byte.
14199 (encode_coding_charset, Fdefine_coding_system_internal):
14200 Delete the local variable charset.
14201 (Fdefine_coding_system_internal): Setup
14202 attrs[coding_attr_charset_valids] correctly.
14203
14204 * charset.c (CODE_POINT_TO_INDEX): Utilize `code_space_mask'
14205 member to check if CODE is valid or not.
14206 (Fdefine_charset_internal): Initialize `code_space_mask' member.
14207 (encode_char): Before calling CODE_POINT_TO_INDEX, check if CODE
14208 is within the range of charset->min_code and carset->max_code.
14209
142102008-02-01 Dave Love <fx@gnu.org>
14211
14212 * syntax.h (syntax_temp) [!__GNUC__]: Declare.
14213
14214 * dispextern.h (generate_ascii_font): Fix return type.
14215
14216 * xfaces.c (generate_ascii_font): Fix arg declaration.
14217
14218 * coding.c (coding_inherit_eol_type)
14219 (Fset_terminal_coding_system_internal)
14220 (Fset_safe_terminal_coding_system_internal): Fix arg declarations.
14221
142222008-02-01 Kenichi Handa <handa@m17n.org>
14223
14224 * coding.c (decode_coding_charset, encode_coding_charset): Handle
14225 multiple charsets correctly.
14226
142272008-02-01 Kenichi Handa <handa@m17n.org>
14228
14229 * search.c (boyer_moore): Fix handling of multibyte character
14230 translation.
14231
14232 * xdisp.c (display_mode_element): When the variable `elt' is
14233 changed, update `this' and `lisp_string'.
14234
142352008-02-01 Kenichi Handa <handa@m17n.org>
14236
14237 * buffer.c (Fset_buffer_multibyte): Fix 8-bit char handling.
14238
14239 * callproc.c (Fcall_process): Be sure to give the current buffer
14240 to decode_coding_c_string. Update PT and PT_BYTE after the insertion.
14241
14242 * charset.c (struct charset_map_entries): New struct.
14243 (load_charset_map): Rename from parse_charset_map. New args
14244 entries and n_entries. Change caller.
14245 (load_charset_map_from_file): Rename from load_charset_map.
14246 Change caller. New arg control_flag. Call load_charset_map at
14247 the tail.
14248 (load_charset_map_from_vector): New function.
14249 (Fdefine_charset_internal): Setup charset.compact_codes_p.
14250 (encode_char): If the charset is compact, change a character index
14251 to a code point.
14252
14253 * coding.c (coding_alloc_by_making_gap): Check the case that the
14254 source and destination are the same correctly.
14255 (decode_coding_raw_text): Set coding->consumed_char and
14256 coding->consumed to 0.
14257 (produce_chars): If coding->chars_at_source is nonzero, update
14258 coding->consumed_char and coding->consumed before calling
14259 alloc_destination.
14260 (Fdefine_coding_system_alias): Register ALIAS in
14261 Vcoding_system_alist.
14262 (syms_of_coding): Define `no-conversion' coding system at the tail.
14263
14264 * fileio.c (Finsert_file_contents): Set coding_system instead of
14265 val. If the current buffer is multibyte, always call
14266 decode_coding_gap.
14267
14268 * xfaces.c (try_font_list): Give higher priority to fontset's
14269 family than face's family.
14270
142712008-02-01 Kenichi Handa <handa@m17n.org>
14272
14273 * callproc.c (Fcall_process): Be sure to give the current buffer
14274 to decode_coding_c_string.
14275
14276 * xfaces.c (try_font_list): Give a family specified in a fontset
14277 higher priority than a family specified in a face.
14278
142792008-02-01 Kenichi Handa <handa@m17n.org>
14280
14281 * fileio.c (Finsert_file_contents): Fix calculation of `inserted'.
14282 Fix arguments to insert_from_buffer.
14283
14284 * xdisp.c (display_mode_element): Fix calculation of `bytepos'.
14285
142862008-02-01 Kenichi Handa <handa@m17n.org>
14287
14288 * coding.c (produce_chars): Set the variable `multibytep' correctly.
14289 (decode_coding_gap): Set coding->dst_multibyte correctly.
14290
142912008-02-01 Kenichi Handa <handa@m17n.org>
14292
14293 * coding.c (encode_coding_utf_8): Initialize produced_chars to 0.
14294 (decode_coding_utf_16): Fix converting high and low bytes to code-point.
14295 (encode_coding_utf_16): Substitute coding->default_char for
14296 non-Unicode characters.
14297 (decode_coding): Don't call record_insert here.
14298 (setup_coding_system): Initialize `surrogate' of
14299 coding->spec.utf_16 to 0.
14300 (EMIT_ONE_BYTE): Fix for multibyte case.
14301
14302 * insdel.c (insert_from_gap): Call record_insert.
14303
143042008-02-01 Kenichi Handa <handa@m17n.org>
14305
14306 * casefiddle.c (casify_region): Fix multibyte case.
14307
14308 * character.c (c_string_width): Add return type `int'.
14309 (char_string_with_unification): Delete arg ADVANCED.
14310
14311 * character.h (CHAR_VALID_P): Don't call CHARACTERP.
14312 (CHAR_STRING): Adjust for the change of char_string_with_unification.
14313 (CHAR_STRING_ADVANCE): Make it do-while statement.
14314
14315 * chartab.c (sub_char_table_set_range): Optimize for the case
14316 DEPTH == 3. Add workaround code for a GCC optimization bug.
14317
14318 * charset.c (parse_charset_map): Remove an unused variable.
14319
14320 * coding.c: Delete unused variables.
14321
14322 * fileio.c (Finsert_file_contents): Set coding_system to Qnil
14323 earlier. If inserted is zero and the coding system doesn't
14324 require flushing, don't call decode_coding_gap.
14325
14326 * syntax.h (SET_RAW_SYNTAX_ENTRY): Don't call make_number.
14327
143282008-02-01 Kenichi Handa <handa@m17n.org>
14329
14330 The following changes are for using Unicode as an internal
14331 character model, and use UTF-8 format for buffer/string
14332 representation.
14333
14334 * .gdbinit (xchartable): Adjust for the change of char table structure.
14335 (xsubchartable, xcoding, xcharset, xcurbuf): New commands.
14336
14337 * Makefile.in (obj): Add character.o and chartab.o.
14338 (lisp, shortlisp): Remove utf-8.elc.
14339 (*.o): For many files, change dependency on charset.h to
14340 character.h, and add dependency on character.h.
14341 (character.o, chartab.o): New targets.
14342
14343 * abbrev.c, bytecode.c, casefiddle.c, cmds.c, dispnew.c, doc.c:
14344 * doprnt.c, dosfns.c, frame.c, marker.c, minibuf.c, msdos.c:
14345 * w16select.c, w32bdf.c, w32console.c: Include "character.h" instead
14346 of "charset.h".
14347
14348 * dired.c, filelock.c: Include "character.h".
14349
14350 * alloc.c: Include "character.h" instead of "charset.h".
14351 (Fmake_char_table, make_sub_char_table): Move to chartab.c.
14352 (syms_of_alloc): Remove defsubr for Smake_char_table.
14353
14354 * buffer.c: Include "character.h" instead of "charset.h", don't
14355 include "coding.h".
14356 (Fset_buffer_multibyte): Adjust for UTF-8.
14357
14358 * buffer.h: EXFUN Fbuffer_live_p.
14359
14360 * callproc.c: Include "character.h" instead of "charset.h".
14361 (Fcall_process): Big change for the new code-conversion APIs.
14362
14363 * casetab.c: Include "character.h" instead of "charset.h".
14364 (set_canon, set_identity, shuffle): Adjust for the new
14365 map_char_table spec.
14366 (init_casetab_once): Call CHAR_TABLE_SET instead of directly
14367 accessing the char table structure.
14368
14369 * chartab.c: New file that implements char table.
14370
14371 * category.c: Include "character.h".
14372 (copy_category_entry): New function.
14373 (copy_category_table): Call map_char_table and copy_category_entry.
14374 (Fmake_category_table): Initialize all top-level slots.
14375 (char_category_set): New function.
14376 (modify_lower_category_set): Delete.
14377 (Fmodify_category_entry): Call char_table_ref_and_range.
14378
14379 * category.h (CATEGORY_SET): Just call char_category_set.
14380
14381 * ccl.c: Include "character.h".
14382 (Qccl, Qcclp): New variables.
14383 (CCL_WRITE_CHAR): Alway treat the arg CH as a character even if
14384 it's less than 256.
14385 (CCL_WRITE_MULTIBYTE_CHAR): Delete.
14386 (CCL_WRITE_STRING, CCL_READ_CHAR): Adjust for the change of SRC
14387 and DST type.
14388 (ccl_driver): Change types of argument, adjust code accordingly.
14389 (Fccl_execute, Fccl_execute_on_string): Adjust for the change of
14390 ccl_driver.
14391 (syms_of_ccl): Intern and staticpro Qccl and Qcclp.
14392
14393 * ccl.h (struct ccl_program): Delete members eol_type and multibyte.
14394 New members src_multibyte, dst_multibyte, consumed, and produced.
14395 (struct ccl_spec): Delete members decoder and encoder. New member ccl.
14396 (CODING_SPEC_CCL_PROGRAM): New macro.
14397 (ccl_driver): Update prototype.
14398 (Qccl, Qcclp, Fccl_program_p): Extern them.
14399 (CHECK_CCL_PROGRAM): New macro.
14400
14401 * character.c, character.h, chartab.c: New files.
14402
14403 * charset.c: Mostly re-written. Move character and multibyte sequence
14404 handling codes to character.c.
14405
14406 * charset.h: Mostly re-written. Move character and multibyte sequence
14407 handling codes to character.h.
14408
14409 * coding.c, coding.h: Mostly re-written.
14410
14411 * composite.c: Include "character.h" instead of "charset.h".
14412 (CHAR_WIDTH): Move to character.h.
14413 (HASH_KEY, HASH_VALUE): Delete.
14414
14415 * composite.h (enum composition_method): Change order of enumeration
14416 symbols.
14417
14418 * data.c: Include "character.h" instead of "charset.h".
14419 (Faref): Call CHAR_TABLE_REF for a char table.
14420 (Faset): Call CHAR_TABLE_SET for a char table.
14421
14422 * dispextern.h (free_realized_face, check_face_attribytes)
14423 (generate_ascii_font): Extern them.
14424 (free_realized_multibyte_face): Delete extern.
14425
14426 * disptab.h (DISP_CHAR_VECTOR): Adjust for the change of char
14427 table structure.
14428
14429 * editfns.c: Include "character.h" instead of "charset.h".
14430 (Fchar_to_string): Always call CHAR_STRING.
14431
14432 * emacs.c (main): Call init_charset_once, init_charset,
14433 syms_of_chartab, and syms_of_character.
14434
14435 * fileio.c: Include "character.h" instead of "charset.h".
14436 (Finsert_file_contents): Big change for the new code-conversion API.
14437 (choose_write_coding_system, Fwrite_region): Likewise.
14438 (build_annotations_2): Delete.
14439 (e_write): Big change for the new code-conversion API.
14440
14441 * fns.c: Include "character.h" instead of "charset.h".
14442 (copy_sub_char_table): Move to chartab.c.
14443 (Fcopy_sequence): Call copy_char_table for a char table.
14444 (concat): Delete codes calling count_multibyte.
14445 (string_char_to_byte, string_byte_to_char): Adjust for the new
14446 multibyte form.
14447 (internal_equal): Adjust for the change of char table structure.
14448 (Fchar_table_subtype, Fchar_table_parent, Fset_char_table_parent)
14449 (Fchar_table_extra_slot, Fset_char_table_extra_slot)
14450 (Fchar_table_range, Fset_char_table_range, Fset_char_table_default)
14451 (char_table_translate, optimize_sub_char_table)
14452 (Foptimize_char_table, map_char_table, Fmap_char_table): Move to
14453 chartab.c.
14454 (char_table_ref_and_index): Delete.
14455 (HASH_KEY, HASH_VALUE): Move to lisp.h.
14456 (Fmd5): Call preferred_coding_system instead of accessing
14457 Vcoding_category_list. Adjust for the new code-conversion API.
14458 (syms_of_fns): Move defsubr for char table related functions to
14459 chartab.c.
14460
14461 * fontset.c: Mostly re-written.
14462
14463 * fontset.h (struct font_info): Change type of the member encoding_type.
14464 (enum FONT_SPEC_INDEX): New enum.
14465 (fontset_font_pattern, fs_load_font): Update prototype.
14466 (FS_LOAD_FONT): Adjust for the change of fs_load_font.
14467
14468 * indent.c: Include "character.h" instead of "charset.h".
14469 (MULTIBYTE_BYTES_WIDTH): Call CHAR_WIDTH instead of WIDTH_BY_CHAR_HEAD.
14470
14471 * insdel.c: Include "character.h" instead of "charset.h".
14472 (copy_text): Don't refer to Vnonascii_translation_table.
14473 (insert_from_gap): New function.
14474
14475 * keyboard.c: Include "character.h" instead of "charset.h".
14476 (command_loop_1): Never call direct_output_forward_char before
14477 a non-ASCII character.
14478 (read_char): If Vkeyboard_translate_table is a char table, always
14479 translate a character.
14480
14481 * keymap.c: Include "character.h".
14482 (store_in_keymap): Handle the case that IDX is a cons.
14483 (Fdefine_key): Handle the case that KEY is a cons and the car part
14484 is also a cons (range).
14485 (push_key_description): Adjust for the new character code.
14486 (describe_vector): Call describe_char_table for a char table.
14487 (describe_char_table): New function.
14488
14489 * keymap.h (describe_char_table): Extern it.
14490
14491 * lisp.h (enum pvec_type): New member PVEC_SUB_CHAR_TABLE.
14492 (XSUB_CHAR_TABLE, XSETSUB_CHAR_TABLE): New macros.
14493 (CHAR_TABLE_ORDINARY_SLOTS, CHAR_TABLE_SINGLE_BYTE_SLOTS)
14494 (SUB_CHAR_TABLE_ORDINARY_SLOTS, SUB_CHAR_TABLE_STANDARD_SLOTS):
14495 Delete.
14496 (CHAR_TABLE_REF, CHAR_TABLE_SET): Adjust for the new char table
14497 structure.
14498 (CHAR_TABLE_TRANSLATE): Just call char_table_translate.
14499 (CHARTAB_SIZE_BITS_0, CHARTAB_SIZE_BITS_1, CHARTAB_SIZE_BITS_2)
14500 (CHARTAB_SIZE_BITS_3): New macros.
14501 (chartab_size): Extern it.
14502 (struct Lisp_Char_Table): Re-design.
14503 (struct Lisp_Sub_Char_Table): New structure.
14504 (HASH_KEY, HASH_VALUE): Move from fns.c.
14505 (CHARACTERBITS): Define as 22.
14506 (GLYPH_MASK_FACE, GLYPH_MASK_CHAR): Adjust for the above change.
14507 (SUB_CHAR_TABLE_P): Check PVEC_CHAR_TABLE.
14508 (GC_SUB_CHAR_TABLE_P): New macro.
14509 (Fencode_coding_string, Fdecode_coding_string): Update EXFUN.
14510 (code_convert_string_norecord): Deleted extern.
14511 (init_character_once, syms_of_character, init_charset)
14512 (syms_of_composite, Qeq, Fmakehash, insert_from_gap): Extern them.
14513
14514 * lread.c: Include "character.h".
14515 (read_multibyte): New arg NBYTES.
14516 (read_escape): Change the meaning of returned *BYTEREP.
14517 (to_multibyte): Delete.
14518 (read1): Adjust the handling of char table and string.
14519
14520 * print.c: Include "character.h" instead of "charset.h".
14521 (print_string): Convert 8-bit raw bytes to octal form by
14522 string_escape_byte8.
14523 (print_object): Adjust for the new multibyte form. Print 8-bit
14524 raw bytes always in octal form. Handle sub char table correctly.
14525
14526 * process.c: Include "character.h" instead of "charset.h".
14527 (read_process_output, send_process): Adjust for the new
14528 code-conversion API.
14529
14530 * puresize.h (BASE_PURESIZE): Increase.
14531
14532 * regex.c: Include "character.h" instead of "charset.h".
14533 (BYTE8_TO_CHAR, CHAR_BYTE8_P) [not emacs]: New dummy macros.
14534 (regex_compile): Accept a range whose starting and ending
14535 character have different leading bytes.
14536 (analyse_first): Adjust for the above change.
14537
14538 * search.c: Include "character.h" instead of "charset.h".
14539 (search_buffer, boyer_moore): Adjust for the new multibyte form.
14540 (Freplace_match): Adjust for the change of multibyte_char_to_unibyte.
14541
14542 * syntax.c: Include "character.h" instead of "charset.h".
14543 (syntax_parent_lookup): Delete.
14544 (Fmodify_syntax_entry): Accept a cons as CHAR.
14545 (skip_chars): Adjust for the new multibyte form.
14546 (init_syntax_once): Call char_table_set_range instead of directly
14547 accessing the structure of a char table.
14548
14549 * syntax.h (SET_RAW_SYNTAX_ENTRY): Call CHAR_TABLE_SET.
14550 (SYNTAX_ENTRY_FOLLOW_PARENT): Delete macro.
14551 (SET_RAW_SYNTAX_ENTRY_RANGE): New macro.
14552 (SYNTAX_ENTRY_INT): Call CHAR_TABLE_REF.
14553
14554 * term.c: Include "buffer.h" and "character.h".
14555 (encode_terminal_code, write_glyphs): Adjust for the new
14556 code-conversion API.
14557 (produce_glyphs): Call CHAR_WIDTH instead of CHARSET_WIDTH.
14558
14559 * w32term.c (x_new_font): Adjust for the change of FS_LOAD_FONT.
14560
14561 * xdisp.c: Include "character.h".
14562 (get_next_display_element): Adjust for the new multibyte form.
14563 (disp_char_vector): Adjust for the new char table structure.
14564 (decode_mode_spec_coding): Adjust for the new structure of
14565 coding system.
14566 (decode_mode_spec): Adjust for the new code-conversion API.
14567
14568 * xfaces.c: Include "character.h" instead of "charset.h".
14569 (load_face_font): Adjust for the change of choose_face_font and
14570 FS_LOAD_FONT.
14571 (generate_ascii_font): New function.
14572 (set_lface_from_font_name): Adjust for the change of FS_LOAD_FONT.
14573 (set_font_frame_param): Adjust for the change of choose_face_font.
14574 (free_realized_face): Make it public.
14575 (free_realized_faces_for_fontset): Rename from
14576 free_realized_multibyte_face. Free also faces realized for ASCII.
14577 (choose_face_font): Change arguments. Adjust for the change of
14578 fontset_font_pattern and FS_LOAD_FONT.
14579
14580 * xfns.c: Include "character.h".
14581 (x_encode_text): Adjust for the new code-conversion API.
14582
14583 * xselect.c: Don't include "charset.h".
14584 (selection_data_to_lisp_data): Adjust for the new code conversion API.
14585
14586 * xterm.c: Include "character.h".
14587 (x_encode_char): New argument CHARSET. Change caller.
14588 (x_get_char_face_and_encoding, x_get_glyph_face_and_encoding):
14589 Call ENCODE_CHAR instead of SPLIT_CHAR.
14590 (x_produce_glyphs): Don't check Vnonascii_translation_table Call
14591 CHAR_WIDTH instead of CHARSET_WIDTH.
14592 (XTread_socket): Adjust for the new code-conversion API.
14593 (x_new_font): Adjust for the change of FS_LOAD_FONT.
14594 (x_load_font): Adjust for the change of struct font.
14595
145962008-02-01 Stefan Monnier <monnier@iro.umontreal.ca>
14597
14598 * xfaces.c (face_at_buffer_position): Remove unused vars.
14599
146002008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
14601
14602 * ccl.c (CCL_WRITE_CHAR, CCL_WRITE_MULTIBYTE_CHAR):
14603 Fix overflow checking.
14604
146052008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
14606
14607 * ccl.c (CCL_WRITE_CHAR, CCL_WRITE_MULTIBYTE_CHAR, ccl_driver):
14608 Cancel previous change.
14609
146102008-01-31 Kenichi Handa <handa@ni.aist.go.jp>
14611
14612 * ccl.c (CCL_WRITE_CHAR): Increment extra_bytes only when
14613 ccl->eight_bit_control. Fix check for buffer overflow.
14614 (CCL_WRITE_MULTIBYTE_CHAR): Fix check for buffer overflow.
14615 (ccl_driver): Initialize extra_bytes to 0.
14616
146172008-01-31 Kenichi Handa <handa@ni.aist.go.jp>
14618
14619 * keyboard.c (make_ctrl_char): If C is a multibyte character, just
14620 return it ORed with ctrl_modifier.
14621
146222008-01-29 Miles Bader <miles@gnu.org>
14623
14624 * macterm.c (XTset_vertical_scroll_bar): Fix merge mistake.
14625
146262008-01-28 Jason Rumney <jasonr@gnu.org>
14627
14628 * w32.c (stat): Don't double check for networked drive.
14629
146302008-01-28 Stefan Monnier <monnier@iro.umontreal.ca>
14631
14632 * window.c (run_window_configuration_change_hook): New function.
14633 Code extracted from set_window_buffer. Set the selected frame.
14634 (set_window_buffer): Use it.
14635 * window.h (run_window_configuration_change_hook): Declare.
14636 * dispnew.c (change_frame_size_1): Use it instead of set-window-buffer.
14637
14638 * keyboard.c (read_char): Yet another int/Lisp_Object mixup (YAILOM).
14639
146402008-01-27 Dan Nicolaescu <dann@ics.uci.edu>
14641
14642 * Makefile.in: Remove references to unused macros.
14643
146442008-01-26 Eli Zaretskii <eliz@gnu.org>
14645
14646 * w32.c (g_b_init_get_sid_sub_authority)
14647 (g_b_init_get_sid_sub_authority_count): New static variables.
14648 (GetSidSubAuthority_Proc, GetSidSubAuthorityCount_Proc): New typedefs.
14649 (get_sid_sub_authority, get_sid_sub_authority_count): New functions.
14650 (init_user_info): Use them to retrieve uid and gid.
14651 Use 500/513, the Windows defaults, as Administrator's uid/gid.
14652 (fstat): Use pw_uid and pw_gid from the_passwd structure for
14653 st_uid and st_gid of the file.
14654
146552008-01-26 Jason Rumney <jasonr@gnu.org>
14656
14657 * w32.c (logon_network_drive): New function.
14658 (stat): Use it.
14659
146602008-01-26 Chong Yidong <cyd@stupidchicken.com>
14661
14662 * xdisp.c (pos_visible_p): Handle the case where charpos falls on
14663 invisible text covered with an ellipsis.
14664
146652008-01-25 Richard Stallman <rms@gnu.org>
14666
14667 * xdisp.c (redisplay_window): Run Qwindow_text_change_functions and
14668 jump back to beginning. Move some other initializations after that.
14669 (Qwindow_text_change_functions, Vwindow_text_change_functions):
14670 New variables.
14671 (syms_of_xdisp): Init them.
14672
14673 * keyboard.c (read_char): Restore echo_message_buffer after redisplay.
14674
14675 * buffer.c (reset_buffer_local_variables):
14676 Implement `permanent-local-hook'.
14677 (Qpermanent_local_hook): New variable.
14678 (syms_of_buffer): Init and staticpro it.
14679
146802008-01-25 Michael Albinus <michael.albinus@gmx.de>
14681
14682 * dbusbind.c (xd_retrieve_arg): Pacify GCC on x86_64 GNU/Linux.
14683
146842008-01-25 Thien-Thi Nguyen <ttn@gnuvola.org>
14685
14686 * fns.c (Fclrhash): Return TABLE.
14687
146882008-01-23 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
14689
14690 * macterm.c (x_scroll_bar_create): Initialize bar->redraw_needed_p.
14691 (XTset_vertical_scroll_bar): Redraw scroll bar if bar->redraw_needed_p
14692 is set even without positional changes.
14693 (x_scroll_bar_clear): Set bar->redraw_needed_p.
14694
14695 * macterm.h (struct scroll_bar): New member `redraw_needed_p'.
14696
146972008-01-23 Jason Rumney <jasonr@gnu.org>
14698
14699 * xterm.c (handle_one_xevent): Revert to counting chars not bytes.
14700
14701 * w32term.c (w32_read_socket) <WM_CHAR>: Decode characters outside
14702 the unicode range available in MULE by locale-coding-system.
14703 Improve dbcs lead byte detection. Set event timestamp and modifiers
14704 earlier.
14705
147062008-01-23 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
14707
14708 * mac.c (mac_emacs_pid) [MAC_OSX]: New variable.
14709 [MAC_OSX] (init_mac_osx_environment): Initialize it.
14710 [MAC_OSX] (mac_try_close_socket) [SELECT_USE_CFSOCKET]: Return 0
14711 when used on child processes.
14712
147132008-01-21 Michael Albinus <michael.albinus@gmx.de>
14714
14715 * dbusbind.c (Fdbus_method_return_internal): Rename from
14716 Fdbus_method_return.
14717 (Fdbus_unregister_object): Move to dbus.el.
14718 (Fdbus_call_method, Fdbus_method_return_internal)
14719 (Fdbus_send_signal): Improve debug messages.
14720
147212008-01-20 Martin Rudalics <rudalics@gmx.at>
14722
14723 * undo.c (undo_inhibit_record_point): New variable.
14724 (syms_of_undo): Initialize it.
14725 (record_point): Don't record point when undo_inhibit_record_point
14726 is set.
14727
147282008-01-19 Stefan Monnier <monnier@iro.umontreal.ca>
14729
14730 * process.c (list_processes_1): Don't use SCHARS on a nil buffer name.
14731
14732 * xdisp.c (Qauto_hscroll_mode): New var.
14733 (syms_of_xdisp): Initialize it.
14734 (hscroll_window_tree): Use it to lookup `auto-hscroll-mode' in each
14735 window's buffer.
14736 (hscroll_windows): Don't check automatic_hscrolling_p here.
14737
14738 * window.c (set_window_buffer): Don't unnecessarily reset hscroll and
14739 vscroll if we're setting window-buffer to the value it already has.
14740
147412008-01-18 Dan Nicolaescu <dann@ics.uci.edu>
14742
14743 * m/intel386.h: Remove references to XENIX.
14744
147452008-01-17 Andreas Schwab <schwab@suse.de>
14746
14747 * m/amdx86-64.h (START_FILES, LIB_STANDARD): Use HAVE_LIB64_DIR
14748 instead of HAVE_X86_64_LIB64_DIR.
14749 * m/ibms390x.h (START_FILES, LIB_STANDARD): Likewise.
14750
147512008-01-17 Glenn Morris <rgm@gnu.org>
14752
14753 * m/ibms390x.h (START_FILES, LIB_STANDARD): Adjust value according
14754 to HAVE_X86_64_LIB64_DIR.
14755
147562008-01-16 Dan Nicolaescu <dann@ics.uci.edu>
14757
14758 * s/irix3-3.h:
14759 * s/irix4-0.h:
14760 * s/386-ix.h:
14761 * s/domain.h:
14762 * s/hpux9-x11r4.h:
14763 * s/hpux9shxr4.h: Remove files for systems no longer supported.
14764
14765 * sysdep.c: Remove code containing references to symbols defined
14766 by unsupported systems.
14767
147682008-01-16 Glenn Morris <rgm@gnu.org>
14769
14770 * coding.c (select-safe-coding-system-function): Doc fix.
14771
147722008-01-15 Glenn Morris <rgm@gnu.org>
14773
14774 * config.in: Revert 2008-01-13 change: this is a generated file.
14775
147762008-01-13 Tom Tromey <tromey@redhat.com>
14777
14778 * lisp.h: Fix typo.
14779
147802008-01-13 Dan Nicolaescu <dann@ics.uci.edu>
14781
14782 * m/sequent-ptx.h:
14783 * m/sequent.h:
14784 * s/ptx.h:
14785 * s/ptx4-2.h:
14786 * s/ptx4.h: Remove files for systems no longer supported.
14787
14788 * callproc.c (Fcall_process): Fix previous change.
14789
147902008-01-13 Dan Nicolaescu <dann@ics.uci.edu>
14791
14792 * unexsunos4.c: Remove file, system not supported anymore.
14793
14794 * m/mips.h:
14795 * m/intel386.h:
14796 * callproc.c:
14797 * config.in:
14798 * ecrt0.c:
14799 * emacs.c:
14800 * fileio.c:
14801 * frame.c:
14802 * getpagesize.h:
14803 * keyboard.c:
14804 * lread.c:
14805 * process.c:
14806 * puresize.h:
14807 * sysdep.c:
14808 * systty.h:
14809 * syswait.h:
14810 * unexec.c:
14811 * xdisp.c:
14812 * alloc.c: Remove code containing references to symbols defined by
14813 unsupported systems.
14814
148152008-01-11 Kenichi Handa <handa@ni.aist.go.jp>
14816
14817 * coding.c (detect_coding_mask): Fix previous change.
14818
148192008-01-09 Kenichi Handa <handa@ni.aist.go.jp>
14820
14821 * coding.c (detect_coding_iso2022): New arg
14822 latin_extra_code_state. Allow Latin extra codes only
14823 when *latin_extra_code_state is nonzero.
14824 (detect_coding_mask): If there is a NULL byte, detect the encoding
14825 as UTF-16 or binary. If Latin extra codes exist, detect the
14826 encoding as ISO-2022 only when there's no other proper encoding is
14827 found.
14828
148292008-01-08 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
14830
14831 * frame.c (Fmake_terminal_frame): Use #ifdef MAC_OS8 instead of
14832 #ifdef MAC_OS.
14833
148342008-01-08 Richard Stallman <rms@gnu.org>
14835
14836 * fileio.c (Ffile_name_directory, Fexpand_file_name): Doc fixes.
14837
148382008-01-06 Nick Roberts <nickrob@snap.net.nz>
14839
14840 * keyboard.c (parse_menu_item): Don't enclose key bindings on
14841 menu bar in parentheses.
14842
148432008-01-06 Dan Nicolaescu <dann@ics.uci.edu>
14844
14845 * m/7300.h:
14846 * m/acorn.h:
14847 * m/alliant-2800.h:
14848 * m/alliant.h:
14849 * m/alliant1.h:
14850 * m/alliant4.h:
14851 * m/altos.h:
14852 * m/amdahl.h:
14853 * m/apollo.h:
14854 * m/att3b.h:
14855 * m/aviion-intel.h:
14856 * m/aviion.h:
14857 * m/celerity.h:
14858 * m/clipper.h:
14859 * m/cnvrgnt.h:
14860 * m/convex.h:
14861 * m/cydra5.h:
14862 * m/delta88k.h:
14863 * m/dpx2.h:
14864 * m/dual.h:
14865 * m/elxsi.h:
14866 * m/f301.h:
14867 * m/gould-np1.h:
14868 * m/gould.h:
14869 * m/i860.h:
14870 * m/ibmps2-aix.h:
14871 * m/ibmrt-aix.h:
14872 * m/ibmrt.h:
14873 * m/irist.h:
14874 * m/is386.h:
14875 * m/isi-ov.h:
14876 * m/mega68.h:
14877 * m/mg1.h:
14878 * m/news-r6.h:
14879 * m/news-risc.h:
14880 * m/news.h:
14881 * m/nh3000.h:
14882 * m/nh4000.h:
14883 * m/ns16000.h:
14884 * m/ns32000.h:
14885 * m/nu.h:
14886 * m/orion.h:
14887 * m/orion105.h:
14888 * m/paragon.h:
14889 * m/pfa50.h:
14890 * m/plexus.h:
14891 * m/pyramid.h:
14892 * m/pyrmips.h:
14893 * m/sh3el.h:
14894 * m/sps7.h:
14895 * m/sr2k.h:
14896 * m/stride.h:
14897 * m/sun1.h:
14898 * m/sun2.h:
14899 * m/sun3-68881.h:
14900 * m/sun3-fpa.h:
14901 * m/sun3-soft.h:
14902 * m/sun3.h:
14903 * m/sun386.h:
14904 * m/symmetry.h:
14905 * m/tad68k.h:
14906 * m/tahoe.h:
14907 * m/targon31.h:
14908 * m/tek4300.h:
14909 * m/tekxd88.h:
14910 * m/tower32.h:
14911 * m/tower32v3.h:
14912 * m/ustation.h:
14913 * m/wicat.h:
14914 * m/xps100.h:
14915 * s/cxux.h:
14916 * s/cxux7.h:
14917 * s/dgux.h:
14918 * s/dgux4.h:
14919 * s/dgux5-4-3.h:
14920 * s/dgux5-4r2.h:
14921 * s/esix.h:
14922 * s/esix5r4.h:
14923 * s/hiuxmpp.h:
14924 * s/hiuxwe2.h:
14925 * s/iris3-5.h:
14926 * s/iris3-6.h:
14927 * s/isc2-2.h:
14928 * s/isc3-0.h:
14929 * s/isc4-0.h:
14930 * s/isc4-1.h:
14931 * s/newsos5.h:
14932 * s/newsos6.h:
14933 * s/osf1.h:
14934 * s/osf5-0.h:
14935 * s/riscix1-1.h:
14936 * s/riscix12.h:
14937 * s/sco4.h:
14938 * s/sco5.h:
14939 * s/sunos4-0.h:
14940 * s/sunos4-1.h:
14941 * s/sunos413.h:
14942 * s/sunos4shr.h:
14943 * s/umax.h:
14944 * s/unipl5-2.h:
14945 * s/xenix.h:
14946 * cxux-crt0.s:
14947 * unexapollo.c:
14948 * unexconvex.c:
14949 * unexenix.c:
14950 * unexsni.c: Remove files for systems no longer supported.
14951
14952 * m/intel386.h: Remove references to unsupported systems.
14953
14954 * w32.c (get_emacs_configuration): Remove reference to i860.
14955
14956 * sysdep.c: Remove dead code.
14957
149582008-01-05 Dan Nicolaescu <dann@ics.uci.edu>
14959
14960 * s/rtu.h:
14961 * m/masscomp.h: Remove files. Platform is obsolete.
14962
149632008-01-04 Michael Albinus <michael.albinus@gmx.de>
14964
14965 * dbusbind.c (Fdbus_method_return): New function.
14966 (xd_read_message): Add the serial number to the event.
14967 (Fdbus_register_method): Activate the function.
14968
149692008-01-03 Stefan Monnier <monnier@iro.umontreal.ca>
14970
14971 * keyboard.c (read_key_sequence): Fix typo.
14972
149732008-01-03 Michael Albinus <michael.albinus@gmx.de>
14974
14975 * dbusbind.c (all): Replace XCAR by CAR_SAFE and XCDR by CDR_SAFE.
14976 (xd_signature, xd_append_arg): Handle element type detection for
14977 empty arrays.
14978 (Fdbus_call_method, Fdbus_send_signal): Undo type casting for
14979 SDATA () calls; this must be solved more general.
14980 (Fdbus_register_signal): Use SBYTES instead of strlen.
14981
149822008-01-03 Magnus Henoch <magnus@zemdatav>
14983
14984 * dbusbind.c (xd_append_arg): Use unsigned char instead of
14985 unsigned int for byte values (necessary for big-endian platform).
14986 (Fdbus_call_method): Handle the case of no returned arguments.
14987
149882007-12-31 Tom Tromey <tromey@redhat.com> (tiny change)
14989
14990 * dbusbind.c (xd_read_message): Use non-static input_event struct.
14991
149922007-12-31 Magnus Henoch <mange@freemail.hu>
14993
14994 * dbusbind.c (xd_signature): Signature of variant is just "v".
14995
149962007-12-30 Michael Albinus <michael.albinus@gmx.de>
14997
14998 * dbusbind.c: Fix several errors and compiler warnings.
14999 Reported by Tom Tromey <tromey@redhat.com>.
15000 (XD_ERROR, XD_DEBUG_MESSAGE)
15001 (XD_DEBUG_VALID_LISP_OBJECT_P): Wrap code with "do ... while (0)".
15002 (xd_append_arg): Part for basic D-Bus types rewritten.
15003 (xd_retrieve_arg): Split implementation of DBUS_TYPE_BYTE and
15004 DBUS_TYPE_(U)INT16. Don't call XD_DEBUG_MESSAGE with "%f" if not
15005 appropriate.
15006 (xd_read_message): Return Qnil. Don't signal an error; it is not
15007 useful during event reading.
15008 (Fdbus_register_signal): Signal an error if the check for
15009 FUNCTIONP fails.
15010 (Fdbus_register_method): New function. The implementation is not
15011 complete, the call of the function signals an error therefore.
15012 (Fdbus_unregister_object): New function, renamed from
15013 Fdbus_unregister_signal. The initial check signals an error, if
15014 the object is not well formed.
15015
150162007-12-30 Richard Stallman <rms@gnu.org>
15017
15018 * textprop.c (get_char_property_and_overlay):
15019 Signal error if POSITION is out of range in a buffer.
15020
150212007-12-29 Martin Rudalics <rudalics@gmx.at>
15022
15023 * w32fns.c (Fx_create_frame): Make copy of frame parameters
15024 because the original parameters are in pure storage now.
15025
150262007-12-24 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
15027
15028 * xdisp.c (phys_cursor_in_rect_p): Check if cursor is in fringe area.
15029
150302007-12-22 Eli Zaretskii <eliz@gnu.org>
15031
15032 * callint.c (syms_of_callint) <command-history>: Add reference to
15033 history-length in the doc string.
15034
150352007-12-17 Jason Rumney <jasonr@gnu.org>
15036
15037 * w32fns.c (w32_wnd_proc) <WM_KEYDOWN>: Cast char to unsigned
15038 before passing as wParam.
15039
150402007-12-22 Michael Albinus <michael.albinus@gmx.de>
15041
15042 * dbusbind.c (xd_retrieve_arg): Handle DBUS_TYPE_BYTE,
15043 DBUS_TYPE_INT16, DBUS_TYPE_UINT16, DBUS_TYPE_INT64,
15044 DBUS_TYPE_UINT64, DBUS_TYPE_DOUBLE and DBUS_TYPE_SIGNATURE.
15045 Return float when DBUS_TYPE_INT32 or DBUS_TYPE_UINT32 do not fit
15046 as number.
15047 (Fdbus_call_method): Fix docstring.
15048
150492007-12-21 Michael Albinus <michael.albinus@gmx.de>
15050
15051 * dbusbind.c (XD_BASIC_DBUS_TYPE, XD_DBUS_TYPE_P, XD_NEXT_VALUE):
15052 New macros.
15053 (XD_SYMBOL_TO_DBUS_TYPE): Rename from XD_LISP_SYMBOL_TO_DBUS_TYPE.
15054 (XD_OBJECT_TO_DBUS_TYPE): Rename from XD_LISP_OBJECT_TO_DBUS_TYPE.
15055 Simplify.
15056 (xd_signature): New function.
15057 (xd_append_arg): Compute also signatures. Major rewrite.
15058 (xd_retrieve_arg): Make debug messages friendly.
15059 (Fdbus_call_method, Fdbus_send_signal): Extend docstring.
15060 Check for signatures of arguments.
15061
150622007-12-19 Michael Albinus <michael.albinus@gmx.de>
15063
15064 * dbusbind.c (QCdbus_type_byte, QCdbus_type_boolean)
15065 (QCdbus_type_int16, QCdbus_type_uint16, QCdbus_type_int32)
15066 (QCdbus_type_uint32, QCdbus_type_int64, QCdbus_type_uint64)
15067 (QCdbus_type_double, QCdbus_type_string, QCdbus_type_object_path)
15068 (QCdbus_type_signature, QCdbus_type_array, QCdbus_type_variant)
15069 (QCdbus_type_struct, QCdbus_type_dict_entry): New D-Bus type symbols.
15070 (XD_LISP_SYMBOL_TO_DBUS_TYPE): New macro.
15071 (XD_LISP_OBJECT_TO_DBUS_TYPE): Add compound types.
15072 (xd_retrieve_value): Remove. Functionality included in ...
15073 (xd_append_arg): New function.
15074 (Fdbus_call_method, Fdbus_send_signal): Apply it.
15075
150762007-12-16 Michael Albinus <michael.albinus@gmx.de>
15077
15078 * dbusbind.c (top): Include <stdio.h>.
15079 (Fdbus_call_method, Fdbus_send_signal): Apply type cast in
15080 dbus_message_new_method_call and dbus_message_new_signal.
15081 (Fdbus_register_signal): Rename unique_name to uname.
15082 Check handler for FUNCTIONP instead of CHECK_SYMBOL. Handle case of
15083 non-existing unique name. Fix typos in matching rule. Return an
15084 object which is useful in Fdbus_unregister_signal.
15085 (Fdbus_unregister_signal): Reimplementation, in order to remove
15086 only the corresponding entry.
15087 (Vdbus_registered_functions_table): Change the order of entries.
15088 Apply these changes in xd_read_message and Fdbus_register_signal.
15089
150902007-12-16 Andreas Schwab <schwab@suse.de>
15091
15092 * fileio.c (Finsert_file_contents): Fix overflow check to not
15093 depend on undefined integer overflow.
15094
150952007-12-14 Jason Rumney <jasonr@gnu.org>
15096
15097 * w32term.c (w32_read_socket): Use MULTIBYTE_CHAR_KEYSTROKE_EVENT
15098 for characters above 127.
15099
151002007-12-13 Jason Rumney <jasonr@gnu.org>
15101
15102 * w32fns.c (w32_wnd_proc, Fw32_reconstruct_hot_key): Range check
15103 before dereferencing array.
15104 (lookup_vk_code): Remove zero comparison.
15105
151062007-12-14 Michael Albinus <michael.albinus@gmx.de>
15107
15108 * dbusbind.c (xd_retrieve_value, xd_retrieve_arg)
15109 (Fdbus_call_method, Fdbus_send_signal, xd_read_message):
15110 Use `unsigned int' instead of `uint'.
15111 (xd_read_message, Fdbus_register_signal): Split expressions into
15112 multiple lines before operators "&&" and "||", according to the
15113 GNU Coding Standards.
15114
151152007-12-14 Eli Zaretskii <eliz@gnu.org>
15116
15117 * dispextern.h (WINDOWS_NT): Fix incorrect spelling of WINDOWSNT.
15118
151192007-12-12 Juri Linkov <juri@jurta.org>
15120
15121 * buffer.c (Frename_buffer): In interactive spec replace
15122 `read-buffer' with `read-string' that uses `buffer-name-history'
15123 as history, and the current buffer's name as default.
15124
151252007-12-10 Stefan Monnier <monnier@iro.umontreal.ca>
15126
15127 * keyboard.c (Fcommand_execute): Call Qcall_interactively instead of
15128 manipulating the backtrace manually.
15129 (make_lispy_event): Merge the ASCII and MULTIBYTE cases.
15130 (struct backtrace, backtrace_list): Remove.
15131 (command_loop_1): Remove dead var `no_direct'.
15132
15133 * buffer.c (reset_buffer_local_variables): If permanent_too is 0, also
15134 preserve non-built-in buffer-local variables.
15135 (Fkill_all_local_variables): Don't re-create&re-set permanent
15136 buffer-local variables.
15137
151382007-12-09 Juri Linkov <juri@jurta.org>
15139
15140 * buffer.c (Frename_buffer): Change interactive spec from "s" to
15141 Lisp code that uses `read-buffer' with current buffer as default.
15142
151432007-12-08 Michael Albinus <michael.albinus@gmx.de>
15144
15145 * dbusbind.c (xd_read_message): Generate an event for every
15146 registered handler. There might be several handlers registered
15147 for the same signal.
15148 (Fdbus_register_signal): Don't overwrite a registration for the
15149 same signal. Add a new registration if handlers are different.
15150 (Vdbus_registered_functions_table): Rework doc string.
15151
151522007-12-07 Michael Albinus <michael.albinus@gmx.de>
15153
15154 * dbusbind.c (Fdbus_get_unique_name, xd_read_message)
15155 (Fdbus_register_signal): Use DBUS_MAXIMUM_NAME_LENGTH and
15156 DBUS_MAXIMUM_MATCH_RULE_LENGTH for string lengths.
15157 (Fdbus_call_method, Fdbus_send_signal, Fdbus_register_signal):
15158 Unify argument lists.
15159 (xd_read_message, Fdbus_register_signal): Reorder and extend event
15160 arguments and hash table keys. Use unique name for service.
15161 (Fdbus_unregister_signal): Remove checks.
15162 (Vdbus_registered_functions_table): Fix doc string.
15163
151642007-12-05 Magnus Henoch <mange@freemail.hu>
15165
15166 * process.c (make_process): Initialize pty_flag to 0.
15167
151682007-12-05 Jason Rumney <jasonr@gnu.org>
15169
15170 * image.c (xbm_load) [WINDOWSNT]: Shuffle the bits of directly
15171 specified XBMs.
15172
151732007-12-05 Richard Stallman <rms@gnu.org>
15174
15175 * xdisp.c (syms_of_xdisp) <scroll-conservatively>: Doc fix.
15176
151772007-12-05 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
15178
15179 * mac.c (cfsockets_for_select) [MAC_OSX && SELECT_USE_CFSOCKET]:
15180 New variable.
15181 (mac_try_close_socket) [MAC_OSX]: New function.
15182 [MAC_OSX] (sys_select) [SELECT_USE_CFSOCKET]:
15183 Update cfsockets_for_select. Replace invalid CFRunLoop source.
15184
15185 * sysdep.c (emacs_close) [MAC_OSX && HAVE_CARBON]:
15186 Use mac_try_close_socket.
15187
151882007-12-05 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
15189
15190 * unexmacosx.c (unrelocate): New argument BASE. Use it instead of
15191 reloc_base.
15192 (copy_dysymtab): Compute relocation base here.
15193 (rebase_reloc_address) [__ppc64__]: New function.
15194 (copy_dysymtab) [__ppc64__]: Use it if relocation base needs to be
15195 changed.
15196
151972007-12-05 Jason Rumney <jasonr@gnu.org>
15198
15199 * w32proc.c (sys_spawnve): Quote args with wildcards.
15200
152012007-12-05 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
15202
15203 * unexmacosx.c (copy_data_segment): Also copy __gcc_except_tab and
15204 __objc_* sections.
15205 (unrelocate) [_LP64]: Set relocation base to address of data segment.
15206
152072007-12-05 Michael Albinus <michael.albinus@gmx.de>
15208
15209 * dbusbind.c (xd_read_message): Return value is a Lisp_Object.
15210 Move check for Vdbus_registered_functions_table to
15211 xd_read_queued_messages.
15212 (xd_read_queued_messages): Protect xd_read_message calls by
15213 internal_condition_case_1.
15214
152152007-12-04 Michael Albinus <michael.albinus@gmx.de>
15216
15217 * dbusbind.c (QCdbus_system_bus, QCdbus_session_bus): Rename from
15218 Qdbus_system_bus and Qdbus_session_bus, respectively.
15219 (Vdbus_intern_symbols): Remove.
15220 (Vdbus_registered_functions_table): New hash table.
15221 (XD_SYMBOL_INTERN_SYMBOL): Remove.
15222 (xd_read_message, Fdbus_register_signal, Fdbus_unregister_signal):
15223 Rewrite in order to manage registered functions by hash table
15224 Vdbus_registered_functions_table.
15225
152262007-12-03 Jan Djärv <jan.h.d@swipnet.se>
15227
15228 * xterm.c: Update URL to Window Manager Specification in comment.
15229
152302007-12-02 Michael Albinus <michael.albinus@gmx.de>
15231
15232 * config.in (HAVE_DBUS): Add.
15233
15234 * Makefile.in (HAVE_DBUS): Add D-Bus definitions if defined.
15235 (ALL_CFLAGS): Add ${DBUS_CFLAGS}.
15236 (obj): Add $(DBUS_OBJ).
15237 (LIBES): Add $(DBUS_LIBS).
15238 (dbusbind.o): New target.
15239
15240 * dbusbind.c: New file.
15241
15242 * emacs.c (main): Call syms_of_dbusbind when HAVE_DBUS is defined.
15243
15244 * keyboard.c: All D-Bus related code is wrapped by "#ifdef HAVE_DBUS".
15245 (Qdbus_event): New Lisp symbol.
15246 (kbd_buffer_get_event, make_lispy_event): Handle DBUS_EVENT.
15247 (gobble_input): Call xd_read_queued_messages, reading D-Bus messages.
b97439ce 15248 (keys_of_keyboard): Define dbus-event.
aac0c6e3
MR
15249
15250 * termhooks.h (event_kind): Add DBUS_EVENT when HAVE_DBUS is defined.
15251
152522007-12-01 Richard Stallman <rms@gnu.org>
15253
15254 * search.c (syms_of_search) <inhibit-changing-match-data>: Doc fix.
15255
152562007-11-30 Jason Rumney <jasonr@gnu.org>
15257
15258 * w32console.c (w32con_ins_del_lines, scroll_line): Clip to window.
15259 (w32con_reset_terminal_modes): Clear screen buffer.
15260 (w32_face_attributes): Don't use color indexes that are out of range.
15261 Only reverse the default colors.
15262
15263 * xfaces.c (map_tty_color, tty_color_name): Remove special case for
15264 WINDOWSNT.
15265
15266 * w32console.c, w32term.h (vga_stdcolor_name): Remove.
15267
152682007-11-29 Jason Rumney <jasonr@gnu.org>
15269
15270 * w32console.c: Leave HAVE_WINDOW_SYSTEM defined.
15271 (w32_face_attributes): Use Vtty_defined_color_alist to determine
15272 if the terminal colors are initialized.
15273 (unspecified_fg, unspecified_bg): Remove unused declarations.
15274
152752007-11-29 Andreas Schwab <schwab@suse.de>
15276
15277 * keyboard.c (apply_modifiers): Fix typo.
15278
152792007-11-29 Richard Stallman <rms@gnu.org>
15280
15281 * keymap.c (Fcurrent_local_map): Doc fix.
15282
152832007-11-28 Petr Salinger <Petr.Salinger@seznam.cz> (tiny change)
15284
15285 * s/gnu-kfreebsd.h: New file.
15286
152872007-11-28 Stefan Monnier <monnier@iro.umontreal.ca>
15288
15289 * buffer.c (Fget_buffer_create, Fmake_indirect_buffer):
15290 Don't cast redundantly.
15291
15292 * keyboard.c (KEY_TO_CHAR): New macro.
15293 (parse_modifiers, apply_modifiers): Accept integer arguments.
15294 (read_key_sequence): Use them to unify the "shift->unshift" mapping
15295 for chars and symbol keys.
15296 After doing such remapping, apply function-key-map again.
15297
152982007-11-27 Dan Nicolaescu <dann@ics.uci.edu>
15299
15300 * Makefile.in (SOME_MACHINE_LISP): Remove VMS files, they are not
15301 compiled anymore.
15302
153032007-11-26 Andreas Schwab <schwab@suse.de>
15304
15305 * process.c (list_processes_1): Fix indentation level of the
15306 command column.
15307
153082007-11-23 Andreas Schwab <schwab@suse.de>
15309
15310 * editfns.c (Fformat): Handle %c specially since it requires the
15311 argument to be of type int.
15312
153132007-11-23 Markus Triska <markus.triska@gmx.at>
15314
15315 * emacs.c (main): Call init_editfns before init_process, since
15316 init_process sets Vprocess_connection_type depending on OS release.
15317
153182007-11-22 Stefan Monnier <monnier@iro.umontreal.ca>
15319
15320 * data.c (do_symval_forwarding): Use same code as in find_symbol_value.
15321 (find_symbol_value): Use do_symval_forwarding.
15322
15323 * data.c (set_internal): Set the value in the `cons-cell' (for
15324 Buffer_Local_values) not only for frame-local variables.
15325
153262007-11-22 Andreas Schwab <schwab@suse.de>
15327
15328 * data.c (Fnumber_to_string): Add cast when passing EMACS_INT
15329 values to sprintf.
15330 * keymap.c (Fsingle_key_description): Likewise.
15331 * print.c (print_object): Likewise.
15332
153332007-11-22 Jan Djärv <jan.h.d@swipnet.se>
15334
15335 * gtkutil.c (update_frame_tool_bar): Don't call x-gtk-map-stock if
15336 file for image is nil.
15337
153382007-11-22 Dan Nicolaescu <dann@ics.uci.edu>
15339
15340 * term.c: Include stdarg.h.
15341 (fatal): Implement using varargs.
15342 * lisp.h (fatal): Add argument types. (Restore 2005-09-30 change).
15343
153442007-11-21 Stefan Monnier <monnier@iro.umontreal.ca>
15345
15346 * lisp.h (struct Lisp_Buffer_Objfwd): Add a `slottype' field.
15347 * data.c (store_symval_forwarding): Get type from buffer_objfwd.
15348 Update call to buffer_slot_type_mismatch.
15349 * buffer.h (buffer_local_types, PER_BUFFER_TYPE): Remove.
15350 (buffer_slot_type_mismatch): Update.
15351 * buffer.c (buffer_local_types): Remove.
15352 (buffer_slot_type_mismatch): Get the symbol and type as arguments.
15353 (defvar_per_buffer): Set the type in the buffer_objfwd.
15354
153552007-11-21 Jason Rumney <jasonr@gnu.org>
15356
15357 * w32bdf.c (w32_init_bdf_font, w32_BDF_to_x_font):
15358 CreateFileMapping returns NULL on failure.
15359
153602007-11-21 Stefan Monnier <monnier@iro.umontreal.ca>
15361
15362 * search.c (Fset_match_data): Remove the `evaporate' feature.
15363 (unwind_set_match_data): Don't use the `evaporate' feature.
15364
153652007-11-21 Jason Rumney <jasonr@gnu.org>
15366
15367 * dispnew.c (init_display) [WINDOWSNT]: Hardcode terminal_type.
15368
15369 * w32console.c (w32con_write_glyphs): Remove unused variables.
15370
153712007-11-20 Dan Nicolaescu <dann@ics.uci.edu>
15372
15373 * macterm.c (mac_term_init): Call add_keyboard_wait_descriptor.
15374
15375 * s/darwin.h (MULTI_KBOARD): Remove.
15376
15377 * macfns.c (x_create_tip_frame, Fx_create_frame)
15378 (x_create_tip_frame): Don't deal with MULTI_KBOARD.
15379
153802007-11-19 Stefan Monnier <monnier@iro.umontreal.ca>
15381
15382 * buffer.c (Fbuffer_local_value): Remove redundant test.
15383 (swap_out_buffer_local_variables): Swap out binding in `buffer' rather
15384 than in `current-buffer' to match the comment.
15385 Do the swap using swap_in_global_binding.
15386
15387 * data.c (store_symval_forwarding, set_internal):
15388 * eval.c (specbind): Remove dead code.
15389
15390 * coding.c (detect_coding, Fupdate_coding_systems_internal):
15391 * fns.c (Fmd5): Use find_symbol_value rather than SYMBOL_VALUE
15392 Since we do not want to see internal Lisp_*fwd objects here.
15393
153942007-11-18 Jan Djärv <jan.h.d@swipnet.se>
15395
15396 * sysdep.c (init_system_name): Use getaddrinfo if available.
15397
15398 * xterm.c (x_scroll_bar_set_handle, x_scroll_bar_handle_click)
15399 (x_scroll_bar_note_movement): start, end, with, height in struct
15400 scroll_bar are integers and not Lisp_Object, so remove XINT for them.
15401
154022007-11-17 Dan Nicolaescu <dann@ics.uci.edu>
15403
15404 * puresize.h (BASE_PURESIZE): Increase to 1190000.
15405
154062007-11-16 Stefan Monnier <monnier@iro.umontreal.ca>
15407
15408 * buffer.h (struct buffer): Move `undo_list' back to before `name'.
15409 This undoes Richard's change of 14-Oct-2002.
15410
15411 * alloc.c (allocate_other_vector):
15412 * lisp.h (allocate_other_vector): Remove.
15413
15414 * window.c (struct save_window_data): Move non-lisp data to the end
15415 and make it `int' rather than Lisp_Object.
15416 (Fcurrent_window_configuration): Use ALLOCATE_PSEUDOVECTOR.
15417 Done wrap/unwrap integer values.
15418 (Fset_window_configuration, compare_window_configurations):
15419 Update use of fields to their new types.
15420
15421 * xterm.h (struct scroll_bar): Only use Lisp_Object for lisp data.
15422 Turn integer fields into `int'. Merge x_window_low and x_window_high.
15423 (SCROLL_BAR_PACK, SCROLL_BAR_UNPACK, SCROLL_BAR_X_WINDOW)
15424 (SET_SCROLL_BAR_X_WINDOW): Remove.
15425 (SCROLL_BAR_X_WIDGET, SET_SCROLL_BAR_X_WIDGET):
15426 Access the new x_window field directly.
15427 * xterm.c (x_scroll_bar_create): Use a pseudovector.
15428 Don't wrap/unwrap integers into Lisp_Objects.
15429 (XTset_vertical_scroll_bar, x_scroll_bar_handle_click)
15430 (x_scroll_bar_report_motion):
15431 Don't wrap/unwrap integers into Lisp_Objects.
15432 (x_term_init): Use SDATA.
15433 (x_window_to_scroll_bar, x_create_toolkit_scroll_bar)
15434 (x_scroll_bar_set_handle, x_scroll_bar_remove)
15435 (XTset_vertical_scroll_bar, x_scroll_bar_expose)
15436 (x_scroll_bar_report_motion, x_scroll_bar_clear):
15437 * xfns.c (x_set_background_color):
15438 * gtkutil.c (xg_create_scroll_bar, xg_set_toolkit_scroll_bar_thumb):
15439 Access the new x_window field directly.
15440
15441 * alloc.c (ALLOCATE_PSEUDOVECTOR): Move to lisp.h.
15442 (allocate_pseudovector): Make non-static.
15443
15444 * lisp.h (enum pvec_type): New tag PVEC_OTHER.
15445 (allocate_pseudovector): Declare.
15446 (ALLOCATE_PSEUDOVECTOR): Move from alloc.c.
15447
154482007-11-15 Andreas Schwab <schwab@suse.de>
15449
15450 * editfns.c (Fformat): Correctly format EMACS_INT values.
15451 Also take precision into account when formatting an integer.
15452
15453 * keyboard.c (Fevent_symbol_parse_modifiers): Fix declaration.
15454
154552007-11-15 Stefan Monnier <monnier@iro.umontreal.ca>
15456
15457 * keyboard.c (Fevent_symbol_parse_modifiers): New function.
15458 (syms_of_keyboard): Defsubr it.
15459
15460 * data.c (swap_in_global_binding): Fix longstanding bug where
15461 store_symval_forwarding was not called with the right second argument,
15462 thus causing objfwd-ing from being dropped.
15463
154642007-11-14 Juanma Barranquero <lekktu@gmail.com>
15465
15466 * macfns.c (Fx_create_frame, Fx_display_pixel_width)
15467 (Fx_display_pixel_height, Fx_display_planes)
15468 (Fx_display_color_cells, Fx_server_max_request_size)
15469 (Fx_server_vendor, Fx_server_version, Fx_display_backing_store)
15470 (Fx_display_visual_class, Fx_display_save_under):
15471 * w32fns.c (Fx_create_frame, Fx_display_pixel_width)
15472 (Fx_display_pixel_height, Fx_display_planes)
15473 (Fx_display_color_cells, Fx_server_max_request_size)
15474 (Fx_server_vendor, Fx_server_version, Fx_display_screens)
15475 (Fx_display_mm_height, Fx_display_mm_width)
15476 (Fx_display_backing_store, Fx_display_visual_class)
15477 (Fw32_select_font, Fx_display_save_under):
15478 * xfns.c (Fx_create_frame, Fx_display_pixel_width)
15479 (Fx_display_pixel_height, Fx_display_planes)
15480 (Fx_display_color_cells, Fx_server_max_request_size)
15481 (Fx_server_vendor, Fx_server_version, Fx_display_backing_store)
15482 (Fx_display_save_under): Fix typos in docstrings.
15483
154842007-11-14 Juanma Barranquero <lekktu@gmail.com>
15485
15486 * w32fns.c (Fw32_registered_hot_keys): Don't return the nil values
15487 corresponding to deleted entries; they are an implementation detail.
15488 (gray_bitmap_width, gray_bitmap_height, gray_bitmap_bits):
15489 Remove variables.
15490 (w32_pass_extra_mouse_buttons_to_system, w32_strict_fontnames)
15491 (w32_pass_multimedia_buttons_to_system, w32_strict_painting)
15492 (Vw32_charset_info_alist, w32_to_x_color, w32_init_class)
15493 (w32_createscrollbar, w32_createwindow, my_post_msg, w32_get_modifiers)
15494 (w32_grabbed_keys, cancel_all_deferred_msgs): Make static.
15495 (Fw32_define_rgb_color, Fw32_load_color_file)
15496 (syms_of_w32fns) <w32-pass-multimedia-buttons-to-system>:
15497 Fix typos in docstrings.
15498 (Fx_server_version): Reflow docstring.
15499 (Fw32_shell_execute): Doc fixes.
15500
155012007-11-13 Juanma Barranquero <lekktu@gmail.com>
15502
15503 * w32fns.c (Fw32_register_hot_key): Don't try to register hot key
15504 if w32_parse_hot_key returned nil.
15505
155062007-11-10 Stefan Monnier <monnier@iro.umontreal.ca>
15507
15508 * xdisp.c (load_overlay_strings): Fix copy&paste typo.
15509
155102007-11-09 Jason Rumney <jasonr@gnu.org>
d6c952f8 15511
aac0c6e3
MR
15512 * s/ms-w32.c (USE_TOOLKIT_SCROLL_BARS): Define.
15513
15514 * w32term.c (w32_scroll_bar_handle_click): Use SCROLL_BAR_CLICK_EVENT.
15515
15516 * keyboard.c (discard_mouse_events, make_lispy_event) [WINDOWSNT]:
15517 Remove W32_SCROLL_BAR_CLICK_EVENT.
15518
15519 * termhooks.h (enum event_kind) [WINDOWSNT]: Likewise.
15520 Add MULTIMEDIA_KEY_EVENT.
15521
15522 * keyboard.c (lispy_function_keys) [WINDOWSNT]: Add more keys.
15523 (lispy_multimedia_keys) [WINDOWSNT]: New array.
15524 (make_lispy_event) [WINDOWSNT]: Use it to translate
15525 MULTIMEDIA_KEY_EVENT.
15526
15527 * w32term.h (WM_APPCOMMAND): Define if not already.
15528 (GET_APPCOMMAND_LPARAM): Likewise.
15529
15530 * w32term.c (w32_read_socket): Generate MULTIMEDIA_KEY_EVENT from
15531 WM_APPCOMMAND.
15532
15533 * w32fns.c (w32_pass_multimedia_buttons_to_system): New user option.
15534 (syms_of_w32fns): Export and initialize it.
15535 (w32_wnd_proc): Pass WM_APPCOMMAND on to w32_read_socket.
15536
155372007-11-09 Chong Yidong <cyd@stupidchicken.com>
15538
15539 * dispextern.h (struct it): Don't define OVERLAY_STRING_CHUNK_SIZE
15540 twice.
15541
15542 * xdisp.c (handle_face_prop): Fix last change.
15543
155442007-11-09 Richard Stallman <rms@gnu.org>
15545
15546 * xdisp.c (handle_face_prop): Test for strings that came from overlays,
15547 not just for after-strings and before-strings.
15548 Call face_for_overlay_string and pass the overlay to it.
15549 (handle_display_prop): Determine whether property came from an overlay.
15550 Pass OVERLAY arg to handle_single_display_spec.
15551 (handle_single_display_spec): New arg OVERLAY sets it->from_overlay.
15552 (load_overlay_strings): Fill in it->string_overlays.
15553 (get_overlay_strings_1, push_it, pop_it): Handle it->from_overlays.
15554
15555 * xfaces.c (face_for_overlay_string): Function renamed from
15556 face_at_buffer_position_no_overlays, and add arg OVERLAY.
15557
15558 * dispextern.h (struct it): New elt string_overlays.
15559 New elt from_overlay, also in stack.
15560 Rearrange a few elements.
15561 (face_for_overlay_string): Decl renamed from
15562 face_at_buffer_position_no_overlays, and add argument.
15563
155642007-11-09 Richard Stallman <rms@gnu.org>
15565
15566 * xdisp.c (handle_face_prop): Use face_at_buffer_position_no_overlays
15567 to get the base face for an overlay string.
15568
15569 * dispextern.h (face_at_buffer_position_no_overlays): Add decl.
15570
15571 * xfaces.c (face_at_buffer_position_no_overlays): New function.
15572
15573 * xdisp.c (handle_stop): Move some code out of loop.
15574
155752007-11-09 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
15576
15577 * macfns.c [USE_ATSUI] (Fmac_atsu_font_face_attributes):
15578 Fix conversion from Lisp object to ATSUFontID.
15579
155802007-11-09 Jason Rumney <jasonr@gnu.org>
15581
15582 * xdisp.c (Fformat_mode_line): Do nothing when noninteractive.
15583
155842007-11-09 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
15585
15586 * unexmacosx.c (unexec_regions_recorder, unexec_regions_merge):
15587 Don't assume regions are aligned to page boundary.
15588 (print_load_command_name): Add LC_UUID if defined.
15589
155902007-11-09 Richard Stallman <rms@gnu.org>
15591
15592 * emacs.c (syms_of_emacs) <installation-directory>: Reflow docstring.
15593
155942007-11-07 Jason Rumney <jasonr@gnu.org>
15595
15596 * s/windows95.h: Remove.
15597
155982007-11-06 Jan Djärv <jan.h.d@swipnet.se>
15599
15600 * gtkutil.c (xg_tool_bar_menu_proxy): Handle GTK_IMAGE_ICON_NAME and
15601 abort with a message on unhandled store_type values.
15602
156032007-11-01 Jan Djärv <jan.h.d@swipnet.se>
15604
15605 * xterm.c, xfns.c, xselect.c, xterm.h, s/msdos.h, s/sco4.h, s/sco5.h:
15606 Remove HAVE_X11R5 and HAVE_X11R4.
15607
156082007-11-01 Dan Nicolaescu <dann@ics.uci.edu>
15609
15610 * Makefile.in: Remove references to sunfns.c and sunfns.o.
15611
156122007-11-01 Johan Bockgård <bojohan@gnu.org>
15613
15614 * macterm.c, w32term.c, xterm.c (x_draw_stretch_glyph_string):
15615 Don't set s->stippled_p here, since it has already been set by
15616 x_set_glyph_string_gc from x_draw_glyph_string.
15617
156182007-11-01 Dan Nicolaescu <dann@ics.uci.edu>
15619
15620 * sunfns.c: Remove file.
15621
15622 * m/sun386.h:
15623 * m/sun2.h:
15624 * m/sparc.h: Remove Sun windows code.
15625
156262007-10-31 Stefan Monnier <monnier@iro.umontreal.ca>
15627
15628 * keyboard.c (syms_of_keyboard): Initialize the initial_kboard.
15629 (init_keyboard): Set current_kboard's window-system to nil.
15630 (tty_read_avail_input): Typo.
15631 * frame.c (make_initial_frame): Don't initialize the initial_kboard.
15632
156332007-10-31 Dan Nicolaescu <dann@ics.uci.edu>
15634
15635 * s/usg5-4.h:
15636 * s/usg5-3.h:
15637 * s/ptx.h:
15638 * m/is386.h:
15639 * m/ibmps2-aix.h:
15640 * Makefile.in: Remove all mentions of X10.
15641
15642 * dispnew.c (syms_of_display): Don't mention version 10.
15643
156442007-10-28 Juanma Barranquero <lekktu@gmail.com>
15645
15646 * makefile.w32-in (OBJ1): Remove abbrev.$(O).
15647 ($(BLD)/abbrev.$(O)): Remove.
15648
156492007-10-28 Stefan Monnier <monnier@iro.umontreal.ca>
15650
15651 Rewrite abbrev.c in Elisp.
15652 * image.c (Qcount): Don't declare as extern.
15653 (syms_of_image): Initialize and staticpro `Qcount'.
15654 * puresize.h (BASE_PURESIZE): Increase for the new abbrev.el functions.
15655 * emacs.c (main): Don't call syms_of_abbrev.
15656 * Makefile.in (obj): Remove abbrev.o.
15657 (abbrev.o): Remove.
15658 * abbrev.c: Remove.
15659
156602007-10-26 Martin Rudalics <rudalics@gmx.at>
15661
15662 * window.c (window_min_size_2): Don't count header-line.
15663
156642007-10-26 Dan Nicolaescu <dann@ics.uci.edu>
15665
15666 * frame.h (struct frame): Move all bit fields after the first bit
15667 field to take advantage of the available space. Group all the
15668 chars together to reduce wasted space due to padding.
15669
156702007-10-26 Juanma Barranquero <lekktu@gmail.com>
15671
15672 * minibuf.c (Fread_minibuffer, Feval_minibuffer): Reflow docstrings.
15673
15674 * alloc.c (spare_memory, stack_copy, stack_copy_size, ignore_warnings)
15675 (Vdead, dont_register_blocks, staticvec, staticidx, interval_block)
15676 (n_interval_blocks, init_strings, check_string_bytes, check_sblock)
15677 (init_float, free_float, n_cons_blocks, init_cons, all_vectors)
15678 (n_vectors, symbol_block, symbol_block_index, symbol_free_list)
15679 (n_symbol_blocks, init_symbol, marker_block, marker_free_list)
15680 (n_marker_blocks, init_marker, valid_pointer_p, make_pure_float)
15681 (last_marked, mark_object_loop_halt): Make static.
15682
15683 * frame.c (syms_of_frame) <delete-frame-functions>:
15684 Fix typo in docstring.
15685
156862007-10-25 Juanma Barranquero <lekktu@gmail.com>
15687
15688 * w32.c (init_environment): Fix tiny memory leak.
15689 (w32_get_resource): Remove unused variable `ok'.
15690
156912007-10-25 Stefan Monnier <monnier@iro.umontreal.ca>
15692
15693 Make `window-system' into a keyboard-local variable (rather than
15694 frame-local as done originally by multi-tty).
15695
15696 * keyboard.h (struct kboard): Add Vwindow_system.
15697 * keyboard.c (init_kboard): Set a default for Vwindow_system.
15698 (mark_kboards): Mark Vwindow_system.
15699
15700 * dispnew.c (syms_of_display) <window-system>: Declare terminal-local.
15701 (init_display): Don't set the obsolete `window-system' frame-param.
15702
15703 * xterm.c (x_term_init):
15704 * w32term.c (w32_create_terminal):
15705 * term.c (init_tty): Set Vwindow_system.
15706 * macterm.c (mac_create_terminal): Set a keyboard (missing piece of the
15707 multi-tty merge maybe?), copied from w32term.c. Set Vwindow_system.
15708
15709 * xfns.c (Fx_create_frame, x_create_tip_frame):
15710 * w32fns.c (Fx_create_frame, x_create_tip_frame):
15711 * macfns.c (Fx_create_frame):
15712 Don't set the obsolete `window-system' frame-param.
15713
15714 * frame.h (Qwindow_system): Remove.
15715 * frame.c (Qwindow_system): Remove. In `syms_of_frame' as well.
15716 (Fmake_terminal_frame): Don't set obsolete `window-system' frame-param.
15717
157182007-10-24 Richard Stallman <rms@gnu.org>
15719
15720 * frame.c (x_figure_window_size): For fullscreen case,
15721 set USPosition | PPosition without clobbering rest of window_prompting.
15722
15723 * keyboard.c (Fcurrent_idle_time): Doc fix.
15724
15725 * print.c (Fwith_output_to_temp_buffer): Doc fix.
15726
157272007-10-23 Stefan Monnier <monnier@iro.umontreal.ca>
15728
15729 * process.c (unwind_request_sigio): Only define if __ultrix__.
15730
15731 * callproc.c (child_setup): Remove spurious *.
15732
15733 * lisp.h (Fget_text_property): Declare.
15734 (have_menus_p): Declare it here rather than in sys-dep header files.
15735 * macterm.h (have_menus_p):
15736 * msdos.h (have_menus_p):
15737 * xterm.h (have_menus_p): Remove.
15738
15739 * data.c (Fmake_variable_buffer_local, Fmake_local_variable)
15740 (Fmake_variable_frame_local): Just check the variable's const-ness
15741 rather than checking nil or t.
15742
157432007-10-22 Jason Rumney <jasonr@gnu.org>
15744
15745 * w32fns.c: Include math.h.
15746 (w32_abort): Declaration moved to nt/config.nt.
15747
15748 * s/ms-w32.h (HAVE_STDLIB_H): Define.
15749 (abort): Redefinition moved to nt/config.nt.
15750
15751 * m/windowsnt.h: Remove.
15752
157532007-10-22 Juanma Barranquero <lekktu@gmail.com>
15754
15755 * emacs.c (Fdump_emacs): Fix typo in message.
15756 (syms_of_emacs) <kill-emacs-hook>: Fix typo in docstring.
15757 <installation-directory>: Reflow docstring.
15758
157592007-10-22 Juri Linkov <juri@jurta.org>
15760
15761 * minibuf.c: Allow minibuffer default to be a list of default values.
15762 With empty input use the first element of this list as returned default.
15763 (string_to_object)
15764 (read_minibuf_noninteractive): If defalt is cons, set val to its car.
15765 (read_minibuf): If defalt is cons, set histstring to its car.
15766 (Fread_string): If default_value is cons, set val to its car.
15767 (Fread_buffer): If def is cons, use its car.
15768 (Fcompleting_read): If defalt is cons, set val to its car.
15769
157702007-10-21 Michael Albinus <michael.albinus@gmx.de>
15771
15772 * fileio.c (Fcopy_file): Call file name handler with preserve_uid_gid.
15773
157742007-10-20 Juanma Barranquero <lekktu@gmail.com>
15775
15776 * doc.c (Fdocumentation): Check for advice in all cases.
15777
157782007-10-19 Chong Yidong <cyd@stupidchicken.com>
15779
15780 * Makefile.in [HAVE_LIBRESOLV]: Add -lresolv to linker flags.
15781
157822007-10-19 Richard Stallman <rms@gnu.org>
15783
15784 * doc.c (Fdocumentation): Check for and handle an advised function.
15785
157862007-10-19 Juanma Barranquero <lekktu@gmail.com>
15787
15788 * process.c (Fset_process_filter): Doc fix.
15789
157902007-10-18 Stefan Monnier <monnier@iro.umontreal.ca>
15791
15792 * keyboard.c (read_key_sequence): Undo a change introduced by multi-tty
15793 which caused key-translation-map to applied repeatedly (thus breaking
15794 double-mode).
15795
157962007-10-17 Stefan Monnier <monnier@iro.umontreal.ca>
15797
15798 * xselect.c (x_own_selection, x_handle_selection_clear)
15799 (x_clear_frame_selections):
15800 * w32menu.c (list_of_panes, list_of_items):
15801 * w32fns.c (w32_color_map_lookup, Fx_create_frame, Fx_display_list):
15802 * textprop.c (validate_plist, interval_has_all_properties)
15803 (interval_has_some_properties, interval_has_some_properties_list)
15804 (add_properties, text_property_list):
15805 * process.c (Fget_buffer_process, list_processes_1, status_notify):
15806 * minibuf.c (Fassoc_string):
15807 * macselect.c (x_own_selection, x_clear_frame_selections)
15808 (Fx_disown_selection_internal):
15809 * keymap.c (Fcommand_remapping, where_is_internal, describe_map_tree):
15810 Use CONSP rather than !NILP and XC[AD]R rather than Fc[ad]r.
15811
158122007-10-17 Chong Yidong <cyd@stupidchicken.com>
15813
15814 * process.c: Link to libs for calling res_init() if available.
15815 (Fmake_network_process): Call res_init() before getaddrinfo or
15816 gethostbyname, if possible.
15817
158182007-10-17 Stefan Monnier <monnier@iro.umontreal.ca>
15819
15820 * lread.c (read1): Set pvectype for char_tables.
15821
15822 * lisp.h (XMISCANY, XMARKER, XINTFWD, XBOOLFWD, XOBJFWD, XOVERLAY)
15823 (XBUFFER_OBJFWD, XBUFFER_LOCAL_VALUE, XKBOARD_OBJFWD, XSAVE_VALUE):
15824 Add type checks.
15825 (SOME_BUFFER_LOCAL_VALUEP, GC_SOME_BUFFER_LOCAL_VALUEP): Remove.
15826
15827 * alloc.c (free_misc): Use XMISCTYPE.
15828 (live_misc_p, gc_sweep): Use Lisp_Misc_Any.
15829
158302007-10-17 Glenn Morris <rgm@gnu.org>
15831
15832 * minibuf.c (Qcompletion_ignore_case): New Lisp_Object.
15833 (syms_of_minibuf): Add Qcompletion_ignore_case.
15834 * dired.c (Qcompletion_ignore_case): Change to external.
15835 (syms_of_dired) [VMS]: Remove Qcompletion_ignore_case.
15836 * fileio.c (Qcompletion_ignore_case): New external Lisp_Object.
15837 (Fread_file_name): Use it rather than intern'ing.
15838
15839 * coding.c (Qcompletion_ignore_case): New external Lisp_Object.
15840 (Fread_coding_system): Ignore case of user input.
15841
158422007-10-16 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
15843
15844 * xdisp.c (handle_display_prop): Ignore display specs after
15845 replacing one when string text is being replaced.
15846 (handle_single_display_spec): Pretend as if characters with display
15847 property haven't been consumed only when buffer text is being replaced.
15848
158492007-10-16 Stefan Monnier <monnier@iro.umontreal.ca>
15850
15851 * xfns.c (Fx_create_frame, Fx_display_list):
15852 * window.c (window_fixed_size_p, enlarge_window)
15853 (shrink_window_lowest_first):
15854 * macterm.c (init_font_name_table):
15855 * macfns.c (Fx_create_frame, Fx_display_list):
15856 * lread.c (close_load_descs):
15857 * keyboard.c (read_char_x_menu_prompt):
15858 * fns.c (Fmember, Fmemql, Fdelete, Fset_char_table_parent):
15859 * coding.c (code_convert_region_unwind): Test the type of an object
15860 rather than just !NILP before extracting data from it.
15861
15862 * alloc.c (Fpurecopy): Set the pvec tag on pseudo vectors.
15863
15864 * lisp.h (enum Lisp_Misc_Type): Del Lisp_Misc_Some_Buffer_Local_Value.
15865 (XMISCANY): New macro.
15866 (XMISCTYPE): Use it.
15867 (struct Lisp_Misc_Any): New type.
15868 (union Lisp_Misc): Use it.
15869 (struct Lisp_Buffer_Local_Value): Add `local_if_set' bit.
15870 * data.c (Fboundp, store_symval_forwarding, swap_in_global_binding)
15871 (find_symbol_value, set_internal, default_value, Fset_default)
15872 (Fmake_variable_buffer_local, Fmake_local_variable)
15873 (Fkill_local_variable, Fmake_variable_frame_local, Flocal_variable_p)
15874 (Flocal_variable_if_set_p, Fvariable_binding_locus):
15875 The SOME_BUFFER_LOCAL_VALUEP distinction is replaced by local_if_set.
15876 * alloc.c (allocate_buffer): Set the size and tag.
15877 (allocate_misc, mark_maybe_object, mark_object, survives_gc_p):
15878 Use XMISCANY.
15879 (die): Follow the GNU convention for error messages.
15880 * print.c (print_object): SOME_BUFFER_LOCAL_VALUEP -> local_if_set.
15881 * buffer.c (Fget_buffer_create, Fmake_indirect_buffer): Don't set the
15882 tag any more.
15883 (set_buffer_internal_1):
15884 * frame.c (store_frame_param):
15885 * eval.c (specbind):
15886 * xdisp.c (select_frame_for_redisplay): Drop SOME_BUFFER_LOCAL_VALUEP.
15887
15888 * doc.c (Fsnarf_documentation): Simplify.
15889
158902007-10-14 Juanma Barranquero <lekktu@gmail.com>
15891
15892 * w32term.c (w32_font_is_double_byte, my_create_scrollbar): Make static.
15893 (syms_of_w32term) <w32-enable-unicode-output>: Fix typo in docstring.
15894
158952007-10-14 Stefan Monnier <monnier@iro.umontreal.ca>
15896
15897 * buffer.c (Fmake_indirect_buffer): Set the buffer's tag.
15898
158992007-10-14 Juanma Barranquero <lekktu@gmail.com>
15900
15901 * eval.c (do_autoload): Don't save autoloads.
15902
15903 * data.c (Ffset): Save autoload of the function being set.
15904
159052007-10-07 John Paul Wallington <jpw@pobox.com>
15906
15907 * xfns.c (x_create_tip_frame): Set the `display-type' frame
15908 parameter before setting up faces.
15909
159102007-10-13 Eli Zaretskii <eliz@gnu.org>
15911
15912 * ccl.c (Fregister_code_conversion_map):
15913 * keyboard.c (append_tool_bar_item): Reformat last change.
15914
15915 * lisp.h (eabs): Rename from `abs'. All callers changed.
15916
159172007-10-05 Dmitry Antipov <dmantipov@yandex.ru>
15918
15919 * buffer.c (add_overlay_mod_hooklist):
15920 * ccl.c (Fregister_ccl_program, Fregister_code_conversion_map):
15921 * fontset.c (make_fontset):
15922 * keyboard.c (GROW_RAW_KEYBUF, menu_bar_items, menu_bar_item)
15923 (append_tool_bar_item):
15924 * macmenu.c (grow_menu_items):
15925 * w32menu.c (grow_menu_items):
15926 * xmenu.c (grow_menu_items): Use larger_vector.
15927
159282007-10-13 Eli Zaretskii <eliz@gnu.org>
15929
15930 * msdos.c (dos_rawgetc): Undo last change (there's no ``leaving
15931 selected frame'' on MSDOS).
15932
159332007-10-12 Martin Rudalics <rudalics@gmx.at>
15934
15935 * frame.c (Qexplicit_name): New variable.
15936 (x_report_frame_params): Report it in parameter alist.
15937 (syms_of_frame): Intern and staticpro it.
15938
159392007-10-10 Patrick Mahan <mahan@mahan.org> (tiny change)
15940
15941 * macfns.c (x_create_tip_frame): Set terminal for frame.
15942
159432007-10-10 Stefan Monnier <monnier@iro.umontreal.ca>
15944
15945 * frame.c (Qenvironment): Remove.
15946 (syms_of_frame) <Qenvironment>: Don't initialize.
15947 (Fdelete_frame): Don't treat the `environment' param specially.
15948 * frame.h (Qenvironment): Don't declare.
15949 * callproc.c (set_initial_environment): Don't set unused frame param.
15950
15951 * frame.c (Fframe_with_environment): Remove.
15952 (syms_of_frame) <Sframe_with_environment>: Don't declare.
15953
15954 * lisp.h (Fframe_with_environment): Don't declare.
15955
159562007-10-10 Juanma Barranquero <lekktu@gmail.com>
15957
15958 * indent.c (indent_tabs_mode, last_known_column)
15959 (last_known_column_modified): Make static.
15960 (syms_of_indent) <indent-tabs-mode>: Remove redundant info in docstring.
15961
159622007-10-10 Katsumi Yamaoka <yamaoka@jpl.org>
15963
15964 * puresize.h (BASE_PURESIZE): Increase to 1170000.
15965
159662007-10-09 Jason Rumney <jasonr@gnu.org>
15967
15968 * w32term.c (x_set_window_size): Disable code that attempts to tell
15969 Lisp code about a size change before it actually happens.
15970
159712007-10-09 Richard Stallman <rms@gnu.org>
15972
15973 * xdisp.c (handle_invisible_prop): After setting up an ellipsis,
15974 return HANDLED_RETURN.
15975
159762007-10-08 Martin Rudalics <rudalics@gmx.at>
15977
15978 * keyboard.c (kbd_buffer_get_event): Break loop waiting for input
15979 when there's an unread command event.
15980
15981 * frame.c (focus_follows_mouse): Move here from frame.el to allow
15982 window autoselection act appropriately when leaving selected frame.
15983 (syms_of_frame): Initialize focus_follows_mouse.
15984 * frame.h (focus_follows_mouse): Extern it.
15985 * macterm.c (XTread_socket): When focus_follows_mouse is nil
15986 make SELECT_WINDOW_EVENT only if we don't leave the selected frame.
15987 * msdos.c (dos_rawgetc): Likewise.
15988 * w32term.c (w32_read_socket): Likewise.
15989 * xterm.c (handle_one_xevent): Likewise.
15990 * xdisp.c (syms_of_xdisp): In doc-string of
15991 mouse-autoselect-window mention focus-follows-mouse.
15992
159932007-10-08 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
15994
15995 * macterm.c (mac_load_query_font): Fix missing return value.
15996 [USE_CG_DRAWING] (mac_define_fringe_bitmap, mac_destroy_fringe_bitmap):
15997 Add BLOCK_INPUT.
15998
159992007-10-08 Richard Stallman <rms@gnu.org>
16000
16001 * xdisp.c (get_window_cursor_type): Implement documented behavior
16002 for cursor-in-non-selected-windows = t.
16003
160042007-10-08 Jason Rumney <jasonr@gnu.org>
16005
16006 * w32.c (w32_get_resource): Always close registry keys.
16007
160082007-10-08 Jason Rumney <jasonr@gnu.org>
16009
16010 * makefile.w32-in (LIBS): Add COMCTL32.
16011
16012 * w32fns.c (globals_of_w32fns): Init common controls.
16013
160142007-10-08 Richard Stallman <rms@gnu.org>
16015
16016 * image.c (our_memory_buffer): Rename from omfib_buffer.
16017
160182007-10-08 Richard Stallman <rms@gnu.org>
16019
16020 * buffer.c (Foverlays_at): Doc fix.
16021
160222007-10-08 Stefan Monnier <monnier@iro.umontreal.ca>
16023
16024 * fns.c (Fplist_put): Preserve uneven tail data.
16025
160262007-10-08 Peter O'Gorman <bug-gnu-emacs@mlists.thewrittenword.com> (tiny change)
16027
16028 * termhooks.h (enum event_kind): Remove trailing comma.
16029
16030 * frame.h (enum): Remove trailing comma.
16031
160322007-10-08 Dhruva Krishnamurthy <dhruvakm@gmail.com> (tiny change)
16033
16034 * w32proc.c (delete_child): Don't terminate threads of zombies.
16035
160362007-10-08 Martin Rudalics <rudalics@gmx.at>
16037
16038 * keyboard.h (struct kboard): New elt Vlast_repeatable_command.
16039
16040 * keyboard.c (syms_of_keyboard): Set up new Lisp variable
16041 last-repeatable-command.
16042 (init_kboard): Initialize Vlast_repeatable_command.
16043 (command_loop_1): Set it to real_this_command unless that was
16044 bound to an input event.
16045 (mark_kboards): Mark it.
16046
160472007-10-08 Richard Stallman <rms@gnu.org>
16048
16049 * eval.c (condition-case): Doc fix.
16050
160512007-10-08 Masatake YAMATO <jet@gyve.org>
16052
16053 * xfaces.c (tty_supports_face_attributes_p): Fix code
16054 for LFACE_INVERSE_INDEX and LFACE_BACKGROUND_INDEX; code
16055 was copied and not edited.
16056
160572007-10-09 Stefan Monnier <monnier@iro.umontreal.ca>
16058
16059 Add new `input-decode-map' keymap and use it for terminal
16060 escape sequences.
16061 * keyboard.h (struct kboard): Add Vinput_decode_map.
16062 Remove Vlocal_key_translation_map.
16063 * keyboard.c (read_key_sequence): Add support for input-decode-map.
16064 (init_kboard): Init input-decode-map.
16065 Replace local-key-translation-map back with key-translation-map.
16066 (syms_of_keyboard): Declare input-decode-map.
16067 Remove local-key-translation-map. Update docstrings.
16068 (mark_kboards): Mark Vinput_decode_map.
16069 Don't mark Vlocal_key_translation_map.
16070 * keymap.c (Fdescribe_buffer_bindings): Describe input-decode-map.
16071 Replace local-key-translation-map back with key-translation-map.
16072 * term.c (term_get_fkeys_1, CONDITIONAL_REASSIGN):
16073 Bind in input-decode-map rather than function-key-map.
16074
16075 * lisp.h (XSETPSEUDOVECTOR): Don't set the tag anymore.
16076 This was made redundant by the previous introduction of XSETPVECTYPE.
16077
160782007-10-09 Richard Stallman <rms@gnu.org>
16079
16080 * image.c (free_bitmap_record): Rename from Free_Bitmap_Record.
16081
160822007-09-29 Richard Stallman <rms@gnu.org>
16083
16084 * eval.c (internal_condition_case_2, internal_condition_case_1)
16085 (internal_condition_case): Reenable abort if x_catching_errors ()
16086 to see if that really happens and why.
16087
160882007-10-06 Andreas Schwab <schwab@suse.de>
16089
16090 * fileio.c (Fwrite_region): Ignore EINVAL error from fsync.
16091
160922007-10-04 Juanma Barranquero <lekktu@gmail.com>
16093
16094 * image.c (syms_of_image) <image-types>: Fix typo in docstring.
16095
160962007-10-03 Stefan Monnier <monnier@iro.umontreal.ca>
16097
16098 * frame.h (struct frame): Don't try to GC-mark menu_bar_items_used.
16099
161002007-10-02 Stefan Monnier <monnier@iro.umontreal.ca>
16101
16102 * window.h (struct window):
16103 * window.c (struct save_window_data, struct saved_window):
16104 * termhooks.h (struct terminal):
16105 * process.h (struct Lisp_Process):
16106 * frame.h (struct frame):
16107 * buffer.h (struct buffer):
16108 * lisp.h (struct Lisp_Vector, struct Lisp_Char_Table)
16109 (struct Lisp_Bool_Vector, struct Lisp_Subr, struct Lisp_Hash_Table):
16110 The size field of (pseudo)vectors is now unsigned.
16111 (ARRAY_MARK_FLAG, PSEUDOVECTOR_FLAG): Simplify accordingly.
16112
16113 * lisp.h (struct Lisp_Hash_Table): Move non-traced elements at the end.
16114 Turn `count' into an integer.
16115
16116 * fns.c (make_hash_table, hash_put, hash_remove, hash_clear)
16117 (sweep_weak_table, sweep_weak_hash_tables, Fhash_table_count):
16118 * print.c (print_object) <HASH_TABLE_P>: `count' is an int.
16119 * alloc.c (allocate_hash_table): Use ALLOCATE_PSEUDOVECTOR.
16120 (mark_object) <HASH_TABLE_P>: Use mark_vectorlike.
16121
16122 * alloc.c (allocate_pseudovector): New fun.
16123 (ALLOCATE_PSEUDOVECTOR): New macro.
16124 (allocate_window, allocate_terminal, allocate_frame)
16125 (allocate_process): Use it.
16126 (mark_vectorlike): New function.
16127 (mark_object) <FRAMEP, WINDOWP, BOOL_VECTOR_P, VECTORP>: Use it.
16128 (mark_terminals): Use it.
16129 (Fmake_bool_vector, Fmake_char_table, make_sub_char_table)
16130 (Fmake_byte_code): Use XSETPVECTYPE.
16131
16132 * frame.c (Fframe_parameters): Minor simplification.
16133
16134 * insdel.c (adjust_markers_for_insert): Generalize assertion checks.
16135
16136 * marker.c (Fmarker_buffer): Make test for odd case into a failure.
16137
16138 * buffer.c (Fget_buffer_create, init_buffer_once):
16139 * lread.c (defsubr):
16140 * window.c (Fcurrent_window_configuration): Use XSETPVECTYPE.
16141
16142 * lisp.h (ARRAY_MARK_FLAG, PSEUDOVECTOR_FLAG): Don't let them be
16143 defined differently in the m/*.h files.
16144 (XCHAR_TABLE, XBOOL_VECTOR): Add assertion checking.
16145 (XSETPVECTYPE): New macro.
16146 (XSETPSEUDOVECTOR): Use it.
16147
16148 * buffer.c (syms_of_buffer) <local-abbrev-table>: Move from abbrev.c.
16149 (DEFVAR_PER_BUFFER, defvar_per_buffer): Move from lisp.h and lread.c.
16150
16151 * lisp.h (defvar_per_buffer, DEFVAR_PER_BUFFER):
16152 * lread.c (defvar_per_buffer):
16153 * abbrev.c (syms_of_abbrev) <local-abbrev-tabl>: Move to buffer.c.
16154
16155 * window.c (candidate_window_p): Only consider as visible frames that
16156 are on the same terminal.
16157
16158 * m/ibms390x.h (MARKBIT): Remove unused macro.
16159
161602007-10-01 Juanma Barranquero <lekktu@gmail.com>
16161
16162 * lread.c (Fload): Fix typo in docstring.
16163
161642007-10-01 Michaël Cadilhac <michael@cadilhac.name>
16165
16166 * floatfns.c (Fexpt): Manually check for overflows, so that a power
16167 of a non-zero value can't yield zero.
16168
161692007-09-29 Stefan Monnier <monnier@iro.umontreal.ca>
16170
16171 * term.c (term_clear_mouse_face, term_mouse_highlight)
16172 (tty_write_glyphs_with_face): Only define is HAVE_GPM.
16173
16174 * print.c (safe_debug_print): Use XHASH.
16175
16176 * lisp.h (DECL_ALIGN, USE_LSB_TAG): Move logic to before definition of
16177 Lisp elements such as tags.
16178 (XHASH): New macro.
16179 (EQ): Use it.
16180 (SREF, SSET, STRING_COPYIN): Use SDATA.
16181 (VOID_TO_LISP, CVOID_TO_LISP, LISP_TO_VOID, LISP_TO_CVOID): Remove.
16182
16183 * alloc.c (mark_terminal): Remove left-over declaration.
16184 (enum mem_type): Replace all vector subtypes -> MEM_TYPE_VECTORLIKE.
16185 (allocate_vectorlike): Remove type argument. Adjust callers.
16186 (live_vector_p, mark_maybe_pointer, valid_lisp_object_p):
16187 Only handle the one remaining MEM_TYPE_VECTORLIKE.
16188
16189 * alloc.c (MALLOC_BLOCK_INPUT, MALLOC_UNBLOCK_INPUT): New macros
16190 to avoid unnecessary BLOCK_INPUTs when SYNC_INPUT is used.
16191 (xmalloc, xrealloc, xfree, lisp_malloc, lisp_free, lisp_align_malloc)
16192 (lisp_align_free, make_interval, allocate_string, allocate_string_data)
16193 (make_float, Fcons, allocate_vectorlike, Fmake_symbol, allocate_misc):
16194 Use them.
16195
16196 * xfaces.c (load_face_font, free_realized_face, clear_face_gcs):
16197 Don't let signal handlers run when a GC is freed but not yet NULL'ed.
16198 (x_free_gc): Remove BLOCK_INPUT since it's now redundant.
16199
162002007-09-28 Dan Nicolaescu <dann@ics.uci.edu>
16201
16202 * Makefile.in (lisp, shortlisp): Delete server.elc, it is not
16203 loaded by default.
16204
162052007-09-28 Stefan Monnier <monnier@iro.umontreal.ca>
16206
16207 * term.c (Fgpm_mouse_start): Don't signal an error if already activated
16208 on this tty.
16209 (Fgpm_mouse_stop): Only deactivate if it was activated on this tty.
16210
16211 * term.c (mouse_face_window): Rename from Qmouse_face_window.
16212 Update all users.
16213 (handle_one_term_event): Use Gpm_DrawPointer.
16214 (Fgpm_mouse_start): Rename from Fterm_open_connection.
16215 Signal errors instead of returning nil. Always return nil.
16216 (Fgpm_mouse_stop): Rename from Fterm_close_connection.
16217 Make it a noop if gpm-mouse was not activated.
16218 (syms_of_term): Update names.
16219
162202007-09-27 Stefan Monnier <monnier@iro.umontreal.ca>
16221
16222 * sysdep.c (narrow_foreground_group, widen_foreground_group): Static.
16223 (init_sys_modes): Check that gpm_tty is the current tty.
16224
16225 * alloc.c (allocate_terminal): Set the vector size to only count the
16226 lisp fields. Initialize those to nil.
16227 (mark_object): Don't treat terminals specially.
16228 (mark_terminal): Remove.
16229 (mark_terminals): Use mark_object instead.
16230
16231 * termhooks.h (struct terminal): Move all Lisp_Object fields traced by
16232 the GC to the beginning.
16233
16234 * indent.h:
16235 * indent.c: Use EMACS_INT for ints coming from Elisp data.
16236
16237 * indent.c (Fmove_to_column): Use EMACS_INT for buffer positions.
16238
162392007-09-25 Jason Rumney <jasonr@gnu.org>
16240
16241 * frame.c (make_terminal_frame): Remove special case for WINDOWSNT.
16242
16243 * w32console.c (create_w32cons_output): Remove.
16244
16245 * term.c (init_tty): Call init_sys_modes on WINDOWSNT also.
16246
16247 * sysdep.c (init_sys_modes): Use set_terminal_modes_hook.
16248 (reset_sys_modes): Use reset_terminal_modes_hook.
16249
162502007-09-24 Stefan Monnier <monnier@iro.umontreal.ca>
16251
16252 * eval.c (do_autoload): Don't output any message.
16253
162542007-09-24 Juri Linkov <juri@jurta.org>
16255
16256 * emacs.c (standard_args): Change priority of "--no-splash"
16257 from 40 to 3. Add "--no-desktop" with the same priority.
16258
162592007-09-23 Dmitry Antipov <dmantipov@yandex.ru>
16260
16261 * alloc.c (gc_sweep): Check cons cell mark bits word by word
16262 and optimize the case where they are all 1.
16263
162642007-09-23 Johannes Weiner <hannes@saeurebad.de>
16265
16266 * lisp.h (abs): Define if not defined.
16267 * keyboard.c, sound.c, w32term.c, xfaces.c, xterm.c:
16268 Don't define `abs', since it's defined in lisp.h.
16269
162702007-09-22 Eli Zaretskii <eliz@gnu.org>
16271
16272 * term.c (DEV_TTY): New macro. Provide a definition for MS-Windows.
16273 (FRAME_TERMCAP_P) [WINDOWSNT]: Don't define to zero.
16274 (Fcontrolling_tty_p, Fresume_tty, dissociate_if_controlling_tty)
16275 (init_tty): Use DEV_TTY instead of "/dev/tty".
16276 [WINDOWSNT]: No need to protect from NAME arg being null.
16277
162782007-09-21 Dan Nicolaescu <dann@ics.uci.edu>
16279
16280 * term.c (Fsuspend_tty): Run suspend-tty-functions before cleaning
16281 up the tty state.
16282
162832007-09-21 Stefan Monnier <monnier@iro.umontreal.ca>
16284
16285 * termhooks.h (term_gpm): Delete. Use gpm_tty's NULLness instead.
16286 (gpm_tty): Change its type.
16287 * term.c (term_gpm): Delete. Use gpm_tty's NULLness instead.
16288 (gpm_tty): Change its type and initialize it.
16289 (Fterm_open_connection): Check the frame is indeed a tty.
16290 Use the new gpm_tty.
16291 (Fterm_close_connection): Use the new gpm_tty.
16292 * keyboard.c (tty_read_avail_input): Use the new gpm_tty.
16293 * sysdep.c (init_sys_modes): term_gpm -> gpm_tty.
16294
162952007-09-21 Juanma Barranquero <lekktu@gmail.com>
16296
16297 * w32term.c (x_draw_glyph_string): Use strike_through_color, not
16298 underline_color, to draw strike-through.
16299
163002007-09-21 Stefan Monnier <monnier@iro.umontreal.ca>
16301
16302 * lisp.h (allocate_terminal): Declare.
16303
16304 * window.c (candidate_window_p): Consider frames that are being placed
16305 by the user as somewhere between visible and iconified.
16306 (window_loop): Prefer windows on the current frame.
16307 (Fselect_window): Move the use of select-frame to the beginning so we
16308 can just delegate all the work (it'll call us back anyway).
16309
16310 * frame.c (Qdisplay_environment_variable):
16311 * frame.h (Qdisplay_environment_variable): Delete.
16312
16313 * .gdbinit (xbacktrace): Print the arg's address rather than the value
16314 of the first arg, since that value may be a union.
16315
16316 * callproc.c (child_setup, getenv_internal): Use the frame's `display'
16317 parameter rather than Qdisplay_environment_variable. If all else
16318 fails, look for DISPLAY in initial-environment.
16319
163202007-09-21 Glenn Morris <rgm@gnu.org>
16321
16322 * Makefile.in (emacstool): Remove target.
16323 (lisp, shortlisp): Remove termdev.elc.
16324
163252007-09-21 Markus Triska <markus.triska@gmx.at>
16326
16327 * xterm.c (x_delete_display): Compile session management conditionally.
16328
163292007-09-20 Stefan Monnier <monnier@iro.umontreal.ca>
16330
16331 * callproc.c (getenv_internal_1): New function.
16332 (getenv_internal): Use it.
16333 (Fgetenv_internal): Use it. Accept an env-list as optional arg.
16334
16335 * terminal.c (get_terminal): Don't accept ints to represent terminals.
16336 (Fterminal_name, Fterminal_parameters, Fterminal_parameter)
16337 (Fset_terminal_parameter): Work with dead terminals as well.
16338 (Fmodify_terminal_parameters): Remove.
16339
16340 * terminal.c (get_terminal): Handle terminals.
16341 Make sure the terminal returned is live.
16342 (create_terminal): Use allocate_terminal.
16343 (mark_terminals): Move to alloc.c.
16344 (delete_terminal): Use terminal->name as liveness status.
16345 NULL out fields after freeing their contents.
16346 Don't deallocate the object.
16347 (Fframe_terminal): Use FRAME_TERMINAL. Return the terminal object
16348 rather than an int.
16349 (Fterminal_live_p): Accept non-integer arguments.
16350 (Fterminal_list): Return terminal objects rather than an ints.
16351
16352 * alloc.c (enum mem_type): New member for `terminal' objects.
16353 (allocate_terminal): New function.
16354 (mark_maybe_pointer, valid_lisp_object_p, mark_object):
16355 Handle terminals.
16356 (mark_terminal): New fun.
16357 (mark_terminals): Move from terminal.c.
16358
16359 * term.c (get_tty_terminal): Don't treat output_initial specially.
16360 (Fsuspend_tty, Fresume_tty): Use terminal objects rather than ints.
16361 (delete_tty): Use terminal->name as liveness status.
16362
16363 * termhooks.h (struct terminal): Make it into a pseudovector.
16364 Remove `deleted' replaced by checking `name's nullness.
16365
16366 * print.c (print_object): Handle terminals.
16367
16368 * lisp.h (enum pvec_type): New `terminal' pseudovector.
16369 (XTERMINAL, XSETTERMINAL, TERMINALP, GC_TERMINALP): New macros.
16370
16371 * frame.c (make_terminal_frame):
16372 * keyboard.c (tty_read_avail_input):
16373 * w32term.c (x_delete_terminal):
16374 * xfns.c (Fx_create_frame, x_create_tip_frame):
16375 * xterm.c (x_delete_terminal): Use terminal->name as liveness status.
16376
163772007-09-20 Glenn Morris <rgm@gnu.org>
16378
16379 * process.c (Fmake_network_process): Doc fix.
16380
163812007-09-19 Jason Rumney <jasonr@gnu.org>
16382
16383 * dispextern.h (w32_init_fringe, mac_init_fringe): Declare rif argument.
16384
163852007-09-19 Michaël Cadilhac <michael@cadilhac.name>
16386
16387 * coding.c (detect_eol_type, detect_eol_type_in_2_octet_form):
16388 Fix a C warning regarding variable constness.
16389
16390 * xterm.c (handle_one_xevent): Fix a C warning.
16391
163922007-09-18 Jason Rumney <jasonr@gnu.org>
16393
16394 * w32fns.c (Fx_focus_frame): Rename from Fw32_focus_frame.
16395
163962007-09-17 Jan Djärv <jan.h.d@swipnet.se>
16397
16398 * gtkutil.c (gdpy_def): New variable.
16399 (xg_initialize): Initialize gdpy_def.
16400 (xg_display_close): If no other display exists, set gdpy_def to a
16401 new connection.
16402
164032007-09-16 Jan Djärv <jan.h.d@swipnet.se>
16404
16405 * gtkutil.c (xg_get_image_for_pixmap): Always create a GdkPixbuf
16406 when we have no file name for the icon.
16407 (xg_tool_bar_expose_callback): Remove.
16408 (xg_create_tool_bar): Don't connect expose signal to
16409 xg_tool_bar_expose_callback.
16410 (xg_get_file_with_chooser): Move GCPRO1 after declarations.
16411
164122007-09-16 Andreas Schwab <schwab@suse.de>
16413
16414 * alloc.c (reset_malloc_hooks): Set the hooks to the previous
16415 values instead of zapping them.
16416
164172007-09-14 Glenn Morris <rgm@gnu.org>
16418
16419 * fringe.c (init_fringe_bitmap) <swap_nibble>: Move to file scope.
16420 * gtkutil.c (xg_separator_p) <separator_names>: Move to file scope.
16421 * image.c (our_memory_fill_input_buffer) <buffer>: Move to file
16422 scope and rename to omfib_buffer for clarity.
16423 (gif_load) <interlace_start, interlace_increment>: Move to file scope.
16424
164252007-09-14 Kenichi Handa <handa@m17n.org>
16426
16427 * xterm.c (handle_one_xevent): Skip decoding if nbytes is zero.
16428
164292007-09-13 Jason Rumney <jasonr@gnu.org>
16430
16431 * fringe.c (w32_init_fringe, mac_init_fringe): Add rif argument.
16432
16433 * w32term.c (w32_term_init): Pass rif to w32_init_fringe.
16434
16435 * macterm.c (mac_initialize): Don't call mac_init_fringe here.
16436 (mac_term_init): Call here instead, passing rif.
16437
164382007-09-13 Glenn Morris <rgm@gnu.org>
16439
16440 * s/hpux.h: No longer define `static' as nothing.
16441
164422007-09-13 Johan Bockgård <bojohan@gnu.org>
16443
16444 * callint.c (Fcall_interactively): Remove unused var `fun'.
16445
164462007-09-12 Romain Francoise <romain@orebokech.com>
16447
16448 * window.c (prefer_window_split_horizontally, display_buffer):
16449 Revert 2007-09-08 change.
16450
164512007-09-12 Glenn Morris <rgm@gnu.org>
16452
16453 * alloca.c: Remove file.
16454 * Makefile.in (alloca): Do not undef.
16455 (allocaobj, alloca.o): Remove.
16456 (otherobj): Remove allocaobj.
16457 * keyboard.c (command_loop_1): Remove #ifdef C_ALLOCA block.
16458 * regex.c (C_ALLOCA): Remove all references and code that was only
16459 used when this was defined.
16460 * search.c (boyer_moore): Remove #ifdef C_ALLOCA block.
16461 * xmenu.c (xmenu_show): Remove #ifdef C_ALLOCA block.
16462 * m/ibms390x.h, m/sh3el.h (C_ALLOCA): Remove references to this.
16463
16464 * Makefile.in (SOURCES, unlock, relock): Delete.
16465
16466 * gtkutil.c (cnt): Rename to menu_grab_callback_cnt for clarity.
16467 (menu_grab_callback): All uses changed.
16468
16469 * xselect.c (cnt): Rename to x_reply_selection_request_cnt for clarity.
16470 (x_reply_selection_request): All uses changed.
16471
164722007-09-11 Stefan Monnier <monnier@iro.umontreal.ca>
16473
16474 * lread.c (load_warn_old_style_backquotes): Change message to look
16475 better when it appears in the middle of byte-compiler messages.
16476
164772007-09-10 Dan Nicolaescu <dann@ics.uci.edu>
16478
16479 * s/darwin.h (MULTI_KBOARD): Only define for Carbon.
16480
16481 * xterm.c (x_create_terminal): Add comment.
16482
16483 * term.c (clear_tty_hooks, set_tty_hooks): Add comments.
16484
164852007-09-10 Richard Stallman <rms@gnu.org>
16486
16487 * xterm.c (x_term_init): Give error if can't open DISPLAY_NAME.
16488
164892007-09-10 Michaël Cadilhac <michael@cadilhac.name>
16490
16491 * lisp.h (struct Lisp_Subr): Rename `prompt' field to `intspec'.
16492 (DEFUN): Document `intspec', use it instead of `prompt'.
16493
16494 * eval.c (Fcommandp): Change `->prompt' to `->intspec'.
16495
16496 * data.c (Finteractive_form): If the interactive specification starts
16497 with a `(', use it as a Lisp form.
16498
16499 * fileio.c (Fset_file_modes): Add an interactive spec that reads a file
16500 name and file modes.
16501
16502 * callint.c (Fcall_interactively): Comment fixes.
16503
165042007-09-10 Stefan Monnier <monnier@iro.umontreal.ca>
16505
16506 * callint.c (Fcall_interactively): Use Finteractive_form also for subrs
16507 and compiled functions.
16508
165092007-09-08 Fredrik Axelsson <f.axelsson@gmail.com>
16510
16511 * window.c (prefer_window_split_horizontally): New variable.
16512 (display_buffer): Consider splitting window horizontally depending
16513 on prefer_window_split_horizontally.
16514
165152007-09-08 Eli Zaretskii <eliz@gnu.org>
16516
16517 * sysdep.c [WINDOWSNT]: Don't include sysselect.h.
16518
165192007-09-07 Stefan Monnier <monnier@iro.umontreal.ca>
16520
16521 * s/cygwin.h (GC_MARK_STACK): Enable conservative stack marking.
16522
16523 * frame.c (x_set_frame_parameters): Check number is positive before
16524 using XFASTINT.
16525
16526 * window.c (freeze_window_start): Don't presume selected_window holds
16527 a window object.
16528 (Fdisplay_buffer): Remove `register' since `buffer' needs to be gcpro'd.
16529
165302007-09-07 Angelo Graziosi <Angelo.Graziosi@roma1.infn.it> (tiny change)
16531
16532 * term.c (dissociate_if_controlling_tty): Call setsid on CYGWIN.
16533
165342007-09-07 Stefan Monnier <monnier@iro.umontreal.ca>
16535
16536 * window.c (Vsplit_window_preferred_function): New var.
16537 (Fdisplay_buffer): Use it.
16538 (syms_of_window): Export, and initialize it.
16539
165402007-09-06 Pixel <pixel@mandriva.com> (tiny change)
16541
16542 * image.c (gif_load): Fix bug: Handle nonexistent colormap.
16543
165442007-09-06 Glenn Morris <rgm@gnu.org>
16545
16546 * gtkutil.c (menu_grab_callback) <cnt>:
16547 * xselect.c (x_reply_selection_request) <cnt>: Move static
16548 variable to file scope.
16549
165502007-09-06 Stefan Monnier <monnier@iro.umontreal.ca>
16551
16552 * xdisp.c (redisplay_internal): Make sure Elisp code always sees
16553 consistent values of selected_frame and selected_window.
16554
165552007-09-04 Jason Rumney <jasonr@gnu.org>
16556
16557 * w32console.c (initialize_w32_display): Zero unused hooks.
16558
165592007-09-04 Dan Nicolaescu <dann@ics.uci.edu>
16560
16561 * term.c (Vsuspend_tty_functions, Vresume_tty_functions)
16562 (syms_of_term, Fsuspend_tty, Fresume_tty): Undo previous change.
16563
165642007-09-04 Jason Rumney <jasonr@gnu.org>
16565
16566 * term.c (init_tty) [WINDOWSNT]: Add hooks that are not accessible
16567 in w32console.c. Set up input. Remove XXX comments that have been
16568 confirmed as correct.
16569
16570 * s/ms-w32.h (MULTI_KBOARD): Define.
16571
16572 * w32console.c (one_and_only_w32cons): Remove.
16573 (initialize_w32_display): Take terminal argument.
16574
16575 * term.c (init_tty) [WINDOWSNT]: Pass terminal to
16576 initialize_w32_display.
16577 (init_tty) [MULTI_KBOARD]: Include this code on WINDOWSNT too.
16578
16579 * termhooks.h (enum event_kind) <HORIZ_WHEEL_EVENT>: New event.
16580
16581 * keyboard.c (discard_mouse_events): Discard it.
16582 (make_lispy_event): Translate it to a lisp event.
16583 (lispy_wheel_names): Add wheel-left and right events.
16584 (syms_of_keyboard): Enlarge wheel_syms.
16585
16586 * w32fns.c (w32_wnd_proc) <WM_DROPFILES>: Merge with WM_MOUSEWHEEL.
16587 <WM_MOUSEHWHEEL>: Pass new system message to lisp.
16588
16589 * w32term.h (WM_MOUSEHWHEEL): Define if system headers don't.
16590
16591 * w32term.c (construct_mouse_wheel): Make HORIZ_WHEEL_EVENT
16592 from WM_MOUSEHWHEEL.
16593 (w32_read_socket) <WM_MOUSEHWHEEL>: Treat as WM_MOUSEWHEEL.
16594
16595 * w32fns.c (x_create_tip_frame) [MULTI_KBOARD]: Get keyboard from
16596 terminal.
16597
16598 * w32term.c (w32_create_terminal) [MULTI_KBOARD]: Create a new
16599 keyboard for the terminal.
16600
166012007-09-04 Dan Nicolaescu <dann@ics.uci.edu>
16602
16603 * term.c (Vsuspend_tty_hook): Rename from Vsuspend_tty_functions.
16604 (Vresume_tty_hook): Rename from Vresume_tty_functions.
16605 (syms_of_term): Rename suspend-tty-functions to suspend-tty-hook
16606 and resume-tty-function to resume-tty-hook.
16607 (Fsuspend_tty, Fresume_tty): Use new names.
16608
166092007-09-02 Jan Djärv <jan.h.d@swipnet.se>
16610
16611 * gtkutil.c (update_frame_tool_bar): Handle stock name as a named icon
16612 if it starts with "n:".
16613
166142007-08-31 Jan Djärv <jan.h.d@swipnet.se>
16615
16616 * gtkutil.c (update_frame_tool_bar): Initialize wbutton to NULL.
16617
166182007-08-31 Stefan Monnier <monnier@iro.umontreal.ca>
16619
16620 * frame.h:
16621 * frame.c (Qterm_environment_variable): Remove.
16622 (syms_of_frame): Don't init and staticpro it.
16623
16624 * callproc.c (getenv_internal): Remove special case for $TERM.
16625
16626 * callproc.c (Vinitial_environment): New variable.
16627 (set_initial_environment): Initialize it.
16628 (syms_of_callproc): Declare it.
16629 (child_setup): Don't mess with TERM via Qterm_environment_variable; the
16630 TERM under which a process runs is never related to the TERM in which
16631 Emacs is running.
16632
166332007-08-29 Dan Nicolaescu <dann@ics.uci.edu>
16634
16635 * config.in (HAVE_WINDOW_SYSTEM): Don't undef MULTI_KBOARD here...
16636 * s/darwin.h: ... do it here.
16637
166382007-08-29 Stefan Monnier <monnier@iro.umontreal.ca>
16639
16640 * lisp.h (set_initial_environment): Rename from set_global_environment.
16641
16642 * Makefile.in (${etc}DOC): Re-add a ${EXEEXT} which seems to have been
16643 removed by mistake on the multi-tty branch.
16644
16645 * frame.c (make_terminal_frame): Yet Another Int/Lisp_Object Mixup.
16646 (Fmodify_frame_parameters): Return a value.
16647
16648 * image.c (png_load): Comment-out var only used in commented-out code.
16649
16650 * term.c (mark_ttys): Don't bother checking top_frame (incorrectly)
16651 before passing it to mark_object.
16652
16653 * xfaces.c (internal_resolve_face_name): Return a value.
16654 (internal_resolve_face_name, resolve_face_name_error): Comment out.
16655
16656 * xfns.c (check_x_display_info): Yet Another Int/Lisp_Object Mixup.
16657 (x_icon): Comment-out var only used in commented-out code.
16658
166592007-08-29 Romain Francoise <romain@orebokech.com>
16660
16661 * keyboard.c (Fset_input_mode): Don't call `Fset_quit_char' if
16662 QUIT hasn't been provided.
16663
166642007-08-29 Dan Nicolaescu <dann@ics.uci.edu>
16665
16666 * callproc.c (child_setup, getenv_internal): Use the
16667 display-environment-variable and term-environment-variable frame params.
16668 (set_initial_environment): Initialise Vprocess_environment.
16669
16670 * config.in: Disable multi-keyboard support on a mac.
16671
16672 * frame.c (Qterm_environment_variable)
16673 (Qdisplay_environment_variable): New variables.
16674 (syms_of_frame): Intern and staticpro them.
16675 (Fmake_terminal_frame): Disable output method test.
16676
16677 * frame.h: Declare them here.
16678
16679 * macfns.c (x_set_mouse_color): Get rif from the frame.
16680 (x_set_tool_bar_lines): Don't use updating_frame.
16681 (mac_window): Add 2 new parameters for consistency with other systems.
16682 (Fx_create_frame): Fix doc string. Rename the parameter. Set the
16683 frame parameters following what is done in X11 and w32. Don't use
16684 FRAME_MAC_DISPLAY_INFO.
16685 (Fx_open_connection, start_hourglass): Remove window-system check.
16686 (x_create_tip_frame): Get the keyboard from the terminal.
16687
16688 * macmenu.c: Reorder includes.
16689 (Fx_popup_menu): Use terminal specific mouse_position_hook.
16690
16691 * macterm.c (XTset_terminal_modes, XTreset_terminal_modes): Add a
16692 terminal parameter.
16693 (x_clear_frame): Add a frame parameter.
16694 (note_mouse_movement): Get rif from the frame.
16695 (mac_term_init): Initialize the terminal.
16696 (mac_initialize): Make static and move terminal initialization ...
16697 (mac_create_terminal): ... to this new function.
16698
16699 * macterm.h (struct mac_display_info): Add terminal.
16700 (mac_initialize): Delete declaration.
16701
16702 * puresize.h (BASE_PURESIZE): Increase base value to 1164000.
16703
16704 * sysdep.c: Comment out text after #endif.
16705
16706 * term.c (init_tty): Only use terminal->kboard when MULTI_KBOARD
16707 is defined. Better initialize ttys in windows. Use terminal
16708 specific mouse_position_hook.
16709
16710 * termhooks.h (union display_info): Add mac_display_info.
16711
16712 * w32fns.c (Fx_create_frame): Use kboard from the terminal.
16713 Set the default minibuffer frame, window_system and the rest of the
16714 frame parameters following what is done in X11.
16715
16716 * w32term.c (w32_initialize): Make static.
16717
16718 * xselect.c (x_handle_selection_clear): Only access
16719 terminal->kboard when MULTI_KBOARD is defined.
16720
16721 * s/darwin.h (SYSTEM_PURESIZE_EXTRA): Define here.
16722 (SYSTEM_PURESIZE_EXTRA): Only define on Carbon.
16723
167242007-08-29 Jason Rumney <jasonr@gnu.org>
16725
16726 * frame.c (Fdelete_frame): Only get kboard when MULTI_KBOARD defined.
16727 (make_terminal_frame) [WINDOWSNT]: Initialize terminal.
16728
16729 * fringe.c (w32_init_fringe w32_reset_fringes) [HAVE_NTGUI]:
16730 (mac_init_fringe) [MAC_OS]: Get rif from selected_frame.
16731
16732 * keyboard.c (restore_kboard_configuration): Only define when
16733 MULTI_KBOARD defined.
16734
16735 * makefile.w32-in: Update dependancies from Makefile.in.
16736 (OBJ1): Add terminal.$(O)
16737
16738 * term.c (dissociate_if_controlling_tty) [WINDOWSNT]:
16739 Don't define function body.
16740 (init_tty) [WINDOWSNT]: Use selected_frame for initializing.
16741
16742 * termhooks.h (display_info) [WINDOWSNT]: Add w32.
16743
16744 * w32.c (request_sigio, unrequest_sigio): Remove.
16745
16746 * w32console.c (w32con_move_cursor, w32con_clear_to_end)
16747 (w32con_clear_frame, w32con_clear_end_of_line)
16748 (w32con_ins_del_lines, w32con_insert_glyphs, w32con_write_glyphs)
16749 (w32con_delete_glyphs, w32con_set_terminal_window)
16750 (scroll_line, w32_sys_ring_bell): Add frame arg.
16751 (w32con_set_terminal_modes, w32con_reset_terminal_modes):
16752 Add terminal arg.
16753 (PICK_FRAME): Remove.
16754 (w32con_write_glyphs): Use frame specific terminal coding.
16755 (one_and_only_w32cons): New global variable.
16756 (initialize_w32_display): Use it for storing hooks.
16757 (create_w32cons_output): New function.
16758
16759 * w32inevt.c, w32inevt.h (w32_console_read_socket): Make first
16760 arg a frame.
16761
16762 * w32fns.c (x_create_tip_frame): Set terminal and ref count.
16763 Set window_system.
16764 (x_set_tool_bar_lines): Don't use updating_frame.
16765 (Fx_create_frame): Set terminal and ref count.
16766 (Fx_open_connection): Remove window-system check.
16767
16768 * w32menu.c (Fx_popup_menu): Use terminal specific mouse_position_hook.
16769
16770 * w32term.c (w32_term_init): Call add_keyboard_wait_descriptor.
16771 (w32_set_terminal_modes, w32_reset_terminal_modes): Add terminal arg.
16772 (x_clear_frame, x_delete_glyphs, w32_ring_bell, x_ins_del_lines):
16773 Add frame arg.
16774 (x_delete_terminal, w32_create_terminal): New functions.
16775 (w32_term_init): Create a terminal.
16776 (w32_initialize): Move terminal specific initialization to
16777 w32_create_terminal.
16778
16779 * w32term.h (x_output): Remove foreground_pixel and background_pixel.
16780 (w32_clear_rect, w32_clear_area): Use background from frame.
16781 (w32_display_info): Add terminal.
16782 (w32_sys_ring_bell, x_delete_display): Declare here.
16783
16784 * xdisp.c (display_menu_bar) [HAVE_NTGUI]: Check frame type.
16785
16786 * s/ms-w32.h (SYSTEM_PURESIZE_EXTRA): Bump to 50k.
16787
167882007-08-29 Kalle Olavi Niemitalo <kon@iki.fi> (tiny change)
16789
16790 * keyboard.c (interrupt_signal, handle_interrupt, Fset_quit_char):
16791 Fix get_named_tty calls for the controlling tty.
16792
167932007-08-29 ARISAWA Akihiro <ari@mbf.ocn.ne.jp> (tiny change)
16794
16795 * term.c (dissociate_if_controlling_tty)[USG]: Fix parse error.
16796
167972007-08-29 Yoshiaki Kasahara <kasahara@nc.kyushu-u.ac.jp> (tiny change)
16798
16799 * term.c (tty_insert_glyphs): Add missing first parameter.
16800
168012007-08-29 Károly Lőrentey <karoly@lorentey.hu>
16802
16803 * buffer.c (Fbuffer_list, Fbury_buffer):
16804 Take frame->buried_buffer_list into account.
16805
16806 * cm.c (current_tty): New variable, for cmputc().
16807 (cmputc): Use it.
16808 (cmcheckmagic): Add tty parameter, look up terminal streams there.
16809 (calccost): Add tty parameter. Use emacs_tputs() instead of tputs().
16810 (cmgoto): Add tty parameter. Pass it on to calccost().
16811 Use emacs_tputs() instead of tputs().
16812
16813 * cm.h (emacs_tputs): New macro to set current_tty, and then call
16814 tputs().
16815 (current_tty): New variable, for cmputc().
16816 (cmcheckmagic, cmputc, cmgoto): Add prototypes.
16817
16818 * eval.c (unwind_to_catch): Don't call x_fully_uncatch_errors.
16819 (internal_condition_case, internal_condition_case_1)
16820 (internal_condition_case_2): Don't abort when x_catching_errors.
16821
16822 * fns.c (Fyes_or_no_p): Don't try to open an X dialog on tty terminals.
16823 (Fy_or_n_p): Likewise. Use temporarily_switch_to_single_kboard to
16824 prevent crashes caused by bogus longjmps in read_char.
16825
16826 * keymap.h (Fset_keymap_parent): Add EXFUN.
16827
16828 * macterm.h (FRAME_FOREGROUND_PIXEL, FRAME_BACKGROUND_PIXEL)
16829 * w32term.h (FRAME_FOREGROUND_PIXEL, FRAME_BACKGROUND_PIXEL):
16830 Remove redundant definition.
16831
16832 * macfns.c (x_set_mouse_color, x_make_gc):
16833 Use FRAME_BACKGROUND_PIXEL and FRAME_FOREGROUND_PIXEL.
16834
16835 * w32term.c (x_free_frame_resources):
16836 Use FRAME_BACKGROUND_PIXEL and FRAME_FOREGROUND_PIXEL.
16837 (w32_initialize): Use the accessor macros for terminal characteristics.
16838
16839 * macterm.c (mac_initialize): Use Fset_input_interrupt_mode.
16840 Use the accessor macros for terminal characteristics.
16841 * msdos.c (internal_terminal_init): Use the accessor macros for
16842 terminal characteristics.
16843 (ScreenVisualBell, internal_terminal_init):
16844 Use FRAME_BACKGROUND_PIXEL and FRAME_FOREGROUND_PIXEL.
16845
16846 * termopts.h (no_redraw_on_reenter): Declare.
16847
16848 * alloc.c (emacs_blocked_malloc): Disable mallopt call.
16849 (mark_terminals, mark_ttys): Declare.
16850 (Fgarbage_collect): Call them.
16851 (mark_object): Mark buried_buffer_list.
16852
16853 * prefix-args.c: Include stdlib.h for exit.
16854
16855 * syssignal.h: Add comment.
16856
16857 * indent.c: Include stdio.h.
16858
16859 * window.h (Vinitial_window_system): Declare.
16860 (Vwindow_system): Delete declaration.
16861
16862 * fontset.c (Finternal_char_font): Use FRAME_RIF.
16863
16864 * image.c (lookup_image): Don't initialize `c' until the xasserts
16865 have been run.
16866
16867 * gtkutil.c (xg_create_frame_widgets): Use FRAME_BACKGROUND_PIXEL and
16868 FRAME_FOREGROUND_PIXEL.
16869
16870 * print.c (print_preprocess): Don't lose print_depth levels while
16871 iterating.
16872
16873 * widget.c (update_from_various_frame_slots):
16874 Use FRAME_BACKGROUND_PIXEL and FRAME_FOREGROUND_PIXEL.
16875
16876 * window.c (set_window_buffer): Don't call clear_mouse_face on tty
16877 frames.
16878 (window_internal_height): Remove bogus make_number call.
16879 (init_window_once): Call make_terminal_frame with two zero parameters.
16880
16881 * fileio.c (Fread_file_name): Update comment.
16882
16883 * callint.c (Fcall_interactively):
16884 Use temporarily_switch_to_single_kboard instead of single_kboard_state.
16885 Make sure it is correctly unwound.
16886
16887 * xsmfns.c (x_session_close): New function.
16888
16889 * coding.h (terminal_coding, safe_terminal_coding, keyboard_coding):
16890 Delete declarations.
16891
16892 * xterm.h: Remove declaration for x_fully_uncatch_errors.
16893 (x_output): Remove background_pixel and foreground_pixel fields.
16894 (x_display_info): Add new field TERMINAL. Remove KBOARD field.
16895 (x_delete_device, x_session_close): Declare.
16896
16897 * lread.c: Include setjmp.h. Update declaration of `read_char'.
16898 (read_filtered_event): Call `read_char' with a local
16899 `wrong_kboard_jmpbuf'.
16900
16901 * minibuf.c (read_minibuf): Call temporarily_switch_to_single_kboard.
16902 Don't call single_kboard_state. Use FRAME_RIF.
16903
16904 * process.c (Fmake_network_process): Don't unrequest_sigio on modern
16905 systems.
16906
16907 * lisp.h (set_process_environment): Rename to `set_global_environment'.
16908 (Fframe_with_environment, Fset_input_meta_mode)
16909 (Fset_quit_char): EXFUN.
16910 (x_create_device, tty_output, terminal, tty_display_info): Declare.
16911 (init_sys_modes, reset_sys_modes): Update prototypes.
16912 (init_all_sys_modes, reset_all_sys_modes): New prototypes.
16913
16914 * keyboard.h (struct kboard): Add new fields Vlocal_function_key_map,
16915 Vlocal_key_translation_map, and Vkeyboard_translate_table.
16916 (Vfunction_key_map, Vkeyboard_translate_table, single_kboard_state):
16917 Delete declarations.
16918 (Vfunction_key_map, Vkey_translation_map, push_kboard, pop_kboard)
16919 (temporarily_switch_to_single_kboard, tty_read_avail_input):
16920 New declarations.
16921
16922 * emacs.c (main): Don't call init_sys_modes(), the new term_init()
16923 already does that during init_display(). Call syms_of_keymap
16924 before syms_of_keyboard. Call `syms_of_terminal'.
16925 Call set_initial_environment, not set_process_environment.
16926 (shut_down_emacs): Call reset_all_sys_modes() instead of
16927 reset_sys_modes().
16928
16929 * xfaces.c (x_free_gc): Protect xassert with GLYPH_DEBUG.
16930 (internal_resolve_face_name, resolve_face_name_error): New functions.
16931 (resolve_face_name): Protect against loops and errors thrown by Fget.
16932 (realize_default_face): Don't use FRAME_FONT unless frame is an X frame.
16933 (Ftty_supports_face_attributes_p): Update tty_capable_p call.
16934
16935 * scroll.c: Replace CURTTY() with local variables throughout the
16936 file (where applicable).
16937 (calculate_scrolling, calculate_direct_scrolling)
16938 (scrolling_1, scroll_cost): Use the accessor macros for terminal
16939 characteristics.
16940
16941 * keymap.c (Vfunction_key_map): Remove.
16942 (Fdescribe_buffer_bindings): Update references to Vfunction_key_map.
16943 (syms_of_keymap): Remove DEFVAR for Vfunction_key_map.
16944 (Vkey_translation_map): Remove.
16945 (syms_of_keymap): Remove DEFVAR for key-translation-map.
16946 (Fdescribe_buffer_bindings)
16947 (read_key_sequence, init_kboard, syms_of_keyboard, mark_kboards):
16948 Update for terminal-local key-translation-map.
16949
16950 * Makefile.in (callproc.o): Update dependencies.
16951 (lisp, shortlisp): Add termdev.elc.
16952 (obj): Add terminal.o.
16953 (terminal.o): Add dependencies.
16954 [HAVE_CARBON]: Make terminal.o depend on macgui.h.
16955 (data.o, fns.o): Add termhooks.h dependency.
16956 (SOME_MACHINE_LISP): Add dnd.elc.
16957 (minibuf.o): Fix typo.
16958 Update dependencies.
16959
16960 * data.c (do_symval_forwarding, store_symval_forwarding)
16961 (find_symbol_value): Use the selected frame's keyboard, not
16962 current_kboard.
16963
16964 * .gdbinit (init_sys_modes): Use Vinitial_window_system instead of
16965 Vwindow_system.
16966
16967 * xmenu.c (Fx_menu_bar_open) [USE_X_TOOLKIT, USE_GTK]: Rename from
16968 Fmenu_bar_open.
16969 (syms_of_xmenu): Update defsubr.
16970 (mouse_position_for_popup, Fx_popup_menu)
16971 (Fx_popup_dialog, x_activate_menubar, update_frame_menubar)
16972 (set_frame_menubar, free_frame_menubar)
b97439ce 16973 (create_and_show_popup_menu, xmenu_show)
aac0c6e3
MR
16974 (create_and_show_dialog, xdialog_show, xmenu_show): Abort if not
16975 an X frame.
16976
16977 * xselect.c (x_own_selection): Abort if not an X frame.
16978 (some_frame_on_display): Check if it is an X frame.
16979 (x_handle_selection_clear): Deal with MULTI_KBOARD.
16980
16981 * coding.c: Include frame.h and termhooks.h.
16982 (terminal_coding, keyboard_coding): Delete.
16983 (Fset_terminal_coding_system_internal)
16984 (Fset_keyboard_coding_system_internal)
16985 (Fkeyboard_coding_system)
16986 (Fterminal_coding_system): Add a terminal parameter.
16987 Get terminal_coding from the terminal.
16988 (init_coding_once): Don't call setup_coding_system here.
16989
16990 * dispextern.h (set_scroll_region, turn_off_insert)
16991 (turn_off_highlight, background_highlight, clear_end_of_line_raw)
16992 (tty_clear_end_of_line, tty_setup_colors)
16993 (delete_tty, updating_frame)
16994 (produce_special_glyphs, produce_glyphs, write_glyphs)
16995 (insert_glyphs): Remove.
16996 (raw_cursor_to, clear_to_end, tty_turn_off_insert)
16997 (tty_turn_off_highlight, get_tty_size): Add declaration.
16998 (tabs_safe_p, init_baud_rate, get_tty_terminal): Update prototypes.
16999
17000 * frame.h (enum output_method): Add output_initial.
17001 (struct x_output): Delete.
17002 (FRAME_FOREGROUND_PIXEL, FRAME_BACKGROUND_PIXEL):
17003 Access foreground_pixel and background_pixel directly from the frame.
17004 (tty_display): Delete.
17005 (struct frame): Add buried_buffer_list, foreground_pixel,
17006 background_pixel and terminal. Delete kboard.
17007 (union output_data): Add tty.
17008 (FRAME_KBOARD): Get the kboard from the terminal.
17009 (FRAME_INITIAL_P): New macro.
17010 (Qtty, Qtty_type, Qterminal, Qterminal_live_p, Qenvironment)
17011 (Qterm_environment_variable, Qdisplay_environment_variable)
17012 (make_terminal_frame, Qburied_buffer_list, Qwindow_system):
17013 New declarations.
17014
17015 * termchar.h (tty_output, tty_display_info): New structures.
17016 (tty_list): Declare.
17017 (FRAME_TTY, CURTTY): New macros.
17018 (must_write_spaces, min_padding_speed, fast_clear_end_of_line)
17019 (line_ins_del_ok, char_ins_del_ok, scroll_region_ok)
17020 (scroll_region_cost, memory_below_frame, fast_clear_end_of_line)
17021 (dont_calculate_costs, no_redraw_on_reenter): Remove declarations.
17022
17023 * callproc.c: Include frame.h and termhooks.h, for terminal
17024 parameters.
17025 (add_env): New function.
17026 (child_setup): Use it.
17027 (child_setup, getenv_internal): Handle the new Vprocess_environment.
17028 (getenv_internal): Fix get_terminal_param call.
17029 (Fgetenv_internal, egetenv): Update doc.
17030 (syms_of_callproc): Initialize Vprocess_environment to nil.
17031 Register and initialize them. Remove obsolete defvars. Update doc
17032 strings.
17033 (child_setup): Handle Vlocal_environment_variables.
17034 (getenv_internal): Add terminal parameter.
17035 Handle Vlocal_environment_variables.
17036 (Fgetenv_internal): Add terminal parameter.
17037 (child_setup, getenv_internal, Fgetenv_internal): Store the local
17038 environment in a frame (not terminal) parameter. Update doc strings.
17039 (set_initial_environment): Rename from set_global_environment.
17040 Store Emacs environment in initial frame parameter.
17041
17042 * xdisp.c (redisplay_internal): Update references to
17043 `previous_terminal_frame'.
17044 (display_mode_line, Fformat_mode_line): Replace calls to
17045 `push_frame_kboard' with `push_kboard'.
17046 (get_glyph_string_clip_rects): Add extra parentheses and
17047 braces to prevent compiler warnings.
17048 (calc_pixel_width_or_height): Add xassert to check that the
17049 frame is alive. Don't call `lookup_image' on a termcap frame.
17050 (message2_nolog, message3_nolog, redisplay_internal)
17051 (set_vertical_scroll_bar, redisplay_window, check_x_display_info)
17052 (x_set_scroll_bar_foreground, x_set_scroll_bar_background)
17053 (Fx_create_frame, Fxw_display_color_p, Fx_display_grayscale_p)
17054 (Fx_display_pixel_width, Fx_display_pixel_height)
17055 (Fx_display_planes, Fx_display_color_cells)
17056 (Fx_server_max_request_size, Fx_server_vendor, Fx_server_version)
17057 (Fx_display_screens, Fx_display_mm_height, Fx_display_mm_width)
17058 (Fx_display_backing_store, Fx_display_visual_class)
17059 (Fx_display_save_under, Fx_close_connection, x_create_tip_frame):
17060 Use FRAME_TERMINAL_P, FRAME_WINDOW_P, FRAME_TTY and FRAME_RIF.
17061
17062 * xfns.c (x_set_foreground_color x_set_background_color)
17063 (x_set_mouse_color, x_set_cursor_color, x_make_gc):
17064 Use FRAME_BACKGROUND_PIXEL and FRAME_FOREGROUND_PIXEL.
17065 (Fx_create_frame, x_create_tip_frame, build_string, x_window)
17066 (Fx_create_frame, x_create_tip_frame): Don't create frames on a
17067 terminal that is being deleted.
17068 (Fx_create_frame): Use `store_frame_param' to set `window-system'
17069 frame parameter, and make sure it overrides any user-supplied setting.
17070 (Fx_close_connection, Fx_synchronize): Unify argument names with
17071 the rest of the DEFUNs.
17072
17073 * dispnew.c (Fsend_string_to_terminal): Update call to
17074 `get_tty_terminal'.
17075 (Fredraw_frame, Fsend_string_to_terminal)
17076 (Fsend_string_to_terminal, init_display): Use FRAME_RIF,
17077 FRAME_TERMCAP_P and FRAME_TTY.
17078 (window_change_signal): Don't believe width/height values that are
17079 impossibly small.
17080 (Vinitial_window_system): Rename from Vwindow_system.
17081 (termscript, Wcm, rif): Delete.
17082
17083 * termhooks.h (struct terminal): New struct containing the
17084 previously global text display hooks and new members NAME,
17085 DELETED and PARAM_ALIST.
17086 (FRAME_TERMINAL, TERMINAL_TERMINAL_CODING)
17087 (TERMINAL_KEYBOARD_CODING, TERMINAL_ACTIVE_P, FRAME_WINDOW_P)
17088 (FRAME_RIF): New macros.
17089 (get_terminal_param, get_device): New declarations.
17090 (termscript): Delete declaration.
17091
17092 * xterm.c (x_initialize): Use Fset_input_interrupt_mode.
17093 (XTflash, x_free_frame_resources, x_scroll_bar_create)
17094 (x_scroll_bar_set_handle): Use FRAME_BACKGROUND_PIXEL and
17095 FRAME_FOREGROUND_PIXEL.
17096 (x_fully_uncatch_errors): Disable definition.
17097 (x_scroll_bar_expose): Fix reference to foreground pixel.
17098 (XTread_socket): Disable loop on all X displays.
17099 (x_delete_terminal): Don't set terminal->deleted and let
17100 delete_terminal delete the frames on the terminal.
17101 (x_delete_display): Doc update to reflect changes in
17102 delete_terminal.
17103 (x_display_info) <terminal>: Move member earlier in the struct.
17104 (deleting_tty): Remove old variable.
17105 (Fsuspend_tty): Call clear_tty_hooks.
17106 (Fresume_tty, init_tty): Call set_tty_hooks.
17107 (Ftty_display_color_p, Ftty_display_color_cells): Don't throw
17108 errors on X frames.
17109 (x_catch_errors_unwind): Abort if x_error_message is NULL.
17110 (handle_one_xevent): Initialize `f' to NULL.
17111 (x_delete_terminal, x_create_terminal): New functions.
17112 (XTset_terminal_modes, XTreset_terminal_modes)
17113 (XTread_socket, x_connection_closed, x_term_init)
17114 (x_term_init, x_delete_display): Add terminal parameter.
17115 (x_term_init) [!HAVE_GTK_MULTIDISPLAY]: Refuse to create secondary
17116 X connections.
17117
17118 * frame.c: Include termchar.h.
17119 (Qterminal, Qterminal_live_p, Qburied_buffer_list, Qtty, Qtty_type)
17120 (Qwindow_system, Qenvironment, Qterm_environment_variable)
17121 (Qdisplay_environment_variable): New vars.
17122 (Fframep): Deal with output_initial.
17123 (Fframe-live-p): Doc fix.
17124 (Fwindow-system): New function.
17125 (x_set_screen_gamma, store_frame_param): Fix compilation errors.
17126 (make_terminal_frame): Don't create frames on a terminal that is
17127 being deleted. Use FRAME_BACKGROUND_PIXEL and FRAME_FOREGROUND_PIXEL.
17128 (store_frame_param): Check for found_for_frame before calling XFRAME.
17129 (Fmake_terminal_frame): Handle NULL tty names correctly.
17130 (syms_of_frame): Enhance doc string of `default-frame-alist'.
17131 (Fdelete_frame): Remove unused variable `count'. Don't allow other
17132 frames to refer to a deleted frame in their 'environment parameter.
17133 (Fframe_with_environment): New function.
17134 (syms_of_frame): Defsubr it. Initialize and staticpro Qenvironment.
17135 (get_future_frame_param): New function.
17136 (Fmake_terminal_frame): Use it.
17137 (x_set_frame_parameters, x_set_screen_gamma): Use FRAME_RIF.
17138
17139 * sysdep.c (init_sys_modes, reset_sys_modes): Update for renames.
17140 * sysdep.c (reset_sys_modes): Update for renames.
17141
17142 * keyboard.c (tty_read_avail_input): New function.
17143 (Fset_input_interrupt_mode, Fset_output_flow_control): New functions.
17144 (syms_of_keyboard): Defsubr them.
17145 (Fset_input_meta_mode, Fset_quit_char): New functions.
17146 (Fset_input_mode): Split to above functions.
17147 (read_char_minibuf_menu_prompt): Add wrong_kboard_jmpbuf
17148 parameter. Use it in call to `read_char'.
17149 (read_char): Declare. Update call to `read_char_minibuf_menu_prompt'.
17150 Set wrong_kboard_jmpbuf correctly in recursive calls.
17151 Use current_kboard to access Vkeyboard_translate_table.
17152 Enhance comment before extra longjmp to wrong_kboard_jmpbuf.
17153 Add wrong_kboard_jmpbuf parameter to allow for recursive calls.
17154 Update longjmp invocations. Remember the original current_kboard,
17155 and longjmp to `wrong_kboard_jmpbuf' when a filter, timer or sentinel
17156 changes it. Comment out unnecessary calls to
17157 `record_single_kboard_state' and `any_kboard_state'.
17158 Update recursive calls.
17159 (wrong_kboard_jmpbuf): Remove global variable.
17160 (read_key_sequence): Remove unused variable wrong_kboard_jmpbuf.
17161 Handle deleted interrupted_kboards correctly; that is a legal
17162 case. Add `wrong_kboard_jmpbuf' local variable. Update setjmp
17163 and read_char calls. Abort if interrupted_kboard died in read_char.
17164 (any_kboard_state, single_kboard_state)
17165 (push_frame_kboard): Remove function.
17166 (pop_kboard): Switch out of single_kboard mode if the kboard has
17167 been deleted. Remove unused variable. Help debugging by not
17168 changing current_kboard unnecessarily. Set current_kboard to the
17169 kboard of the selected frame when the stored kboard object has
17170 been deleted before pop_kboard.
17171 (temporarily_switch_to_single_kboard): Change first parameter to a
17172 frame pointer. Throw an error when caller wants to change kboards
17173 while in single_kboard mode. Don't push_kboard if we weren't in
17174 single kboard state. Don't pop_kboard if we popped into any
17175 kboard state.
17176 (restore_kboard_configuration): Abort if pop_kboard changed the
17177 kboard in single_kboard mode. Call pop_kboard only after setting
17178 up single_kboard mode.
17179 (Frecursive_edit): Switch to single_kboard mode only in nested
17180 command loops.
17181 (cmd_error, command_loop, command_loop_1, timer_check):
17182 Comment out unnecessary call to `any_kboard_state' and
17183 `record_single_kboard_state'.
17184 (delete_kboard): Exit single_kboard mode if we have just deleted
17185 that kboard. Use FRAME_KBOARD.
17186 (interrupt_signal): Use `Fkill_emacs' to exit Emacs, not
17187 `fatal_error_signal'.
17188 (record_single_kboard_state): Don't push_kboard if we weren't in
17189 single kboard state. Don't pop_kboard if we popped into any
17190 kboard state.
17191 (push_frame_kboard): Rename to push_kboard.
17192 (kbd_buffer_get_event): Use FRAME_TERMINAL.
17193 (read_avail_input): Read input from all terminals.
17194 (mark_kboards): Also mark Vkeyboard_translate_table.
17195 (kbd_buffer_store_event_hold): Simplify condition.
17196 (read_key_sequence): Reinitialize fkey and keytran at each replay.
17197 (Vkeyboard_translate_table): Move to struct kboard.
17198 (init_kboard): Initialize Vkeyboard_translate_table.
17199 (syms_of_keyboard): Use DEFVAR_KBOARD to define
17200 Vkeyboard_translate_table. Update doc strings. Update docs of
17201 local-function-key-map and function-key-map.
17202
17203 * terminal.c: New file.
17204
17205 * term.c: Include errno.h.
17206 (Vring_bell_function, device_list, initial_device)
17207 (next_device_id, ring_bell, update_begin, update_end)
17208 (set_terminal_window, cursor_to, raw_cursor_to)
17209 (clear_to_end, clear_frame, clear_end_of_line)
17210 (write_glyphs, insert_glyphs, delete_glyphs, ins_del_lines)
17211 (Fdisplay_name, create_device, delete_device): Move to terminal.c.
17212 (syms_of_term): Move their initialization to terminal.c.
17213 (get_tty_terminal, Fdisplay_tty_type, Ftty_display_color_p)
17214 (Ftty_display_color_cells)
17215 (Ftty_no_underline, Fsuspend_tty, Fresume_tty, create_tty_output)
17216 (clear_tty_hooks, set_tty_hooks)
17217 (init_tty, maybe_fatal): New functions.
17218 (Ftty_type): Return nil if terminal is not on a tty instead of
17219 throwing an error. Doc update.
17220 (syms_of_term) <Vsuspend_tty_functions, Vresume_tty_functions>:
17221 Doc update. Initialize new subrs and variables.
17222 (delete_tty): Use terminal->deleted.
17223 (tty_set_terminal_modes): Rename from set_terminal_modes.
17224 (tty_reset_terminal_modes): Rename from reset_terminal_modes.
17225 (set_scroll_region): Rename to `tty_set_scroll_region'.
17226 (turn_on_insert): Rename to `tty_turn_on_insert'.
17227 (turn_off_insert): Rename to `tty_turn_off_insert'.
17228 (turn_off_highlight): Rename to `tty_turn_off_highlight'.
17229 (turn_on_highlight): Rename to `tty_turn_on_highlight'.
17230 (toggle_highligh): Rename to `tty_toggle_highlight'.
17231 (background_highlight): Rename to `tty_background_highlight'.
17232 (highlight_if_desired): Rename to `tty_highlight_if_desired'.
17233 (tty_ring_bell, tty_update_end, tty_set_terminal_window)
17234 (tty_set_scroll_region, tty_background_highlight)
17235 (tty_cursor_to, tty_raw_cursor_to, tty_clear_to_end)
17236 (tty_clear_frame, tty_clear_end_of_line, tty_write_glyphs)
17237 (tty_insert_glyphs, tty_delete_glyphs, tty_ins_del_lines)
17238 (term_get_fkeys, tty_setup_colors, dissociate_if_controlling_tty):
17239 Add static modifier.
17240 (tty_reset_terminal_modes, tty_set_terminal_window)
17241 (tty_set_scroll_region, tty_background_highlight)
17242 (tty_highlight_if_desired, tty_cursor_to)
17243 (tty_raw_cursor_to, tty_clear_to_end, tty_clear_frame)
17244 (tty_clear_end_of_line, tty_write_glyphs, tty_insert_glyphs)
17245 (tty_delete_glyphs, tty_ins_del_lines, turn_on_face): Update for
17246 renames.
17247
172482007-08-28 Jan Djärv <jan.h.d@swipnet.se>
17249
17250 * keyboard.c: Qrtl is new.
17251 (parse_tool_bar_item): Handle :rtl keyword.
17252 (syms_of_keyboard): Intern :rtl keyword.
17253
17254 * dispextern.h (enum tool_bar_item_idx): Add TOOL_BAR_ITEM_RTL_IMAGE.
17255
17256 * gtkutil.c (xg_tool_bar_expose_callback): Just do SET_FRAME_GARBAGED
17257 so no Lisp code is executed.
17258 (file_for_image, find_rtl_image): New functions.
17259 (xg_get_image_for_pixmap): Use file_for_image.
17260 (update_frame_tool_bar): If direction is RTL, use RTL image if
17261 defined. Use Gtk stock images if defined.
17262
172632007-08-27 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
17264
17265 * macterm.c (x_draw_composite_glyph_string_foreground): Draw rectangle
17266 for nonexistent or zero-width glyph in composition glyph.
17267
172682007-08-25 Stefan Monnier <monnier@iro.umontreal.ca>
17269
17270 * m/amdx86-64.h: Redirect to intel386.h if compiling for i386.
17271
17272 * xdisp.c (Finvisible_p): New function.
17273 (syms_of_xdisp): defsubr it.
17274
172752007-08-24 Juanma Barranquero <lekktu@gmail.com>
17276
17277 * image.c (syms_of_image) <image-library-alist, cross-disabled-images>:
17278 Doc fixes.
17279
172802007-08-24 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
17281
17282 * mac.c [MAC_OSX] (select_and_poll_event, sys_select): Fix last changes.
17283
172842007-08-24 Martin Rudalics <rudalics@gmx.at>
17285
17286 * fileio.c (Finsert_file_contents): Consult CHARS_MODIFF to tell
17287 whether decoding has modified buffer contents.
17288
172892007-08-24 Jason Rumney <jasonr@gnu.org>
17290
17291 * image.c [HAVE_NTGUI]: Define dynamic loaded functions for SVG.
17292 (Qgdk_pixbuf, Qglib) [HAVE_NTGUI]: New symbols.
17293 (syms_of_image) [HAVE_NTGUI]: Intern and staticpro them.
17294 (init_svg_functions) [HAVE_NTGUI]: New function.
17295 (fn_g_type_init, fn_g_object_unref, fn_g_error_free): New #defines.
17296 (svg_load_image): Use them.
17297 (svg_load_image) [HAVE_NTGUI]: Implement background.
17298
172992007-08-23 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
17300
17301 * Makefile.in (RSVG_LIBS, RSVG_CFLAGS): New variables.
17302 (ALL_CFLAGS): Use ${RSVG_CFLAGS} instead of @RSVG_CFLAGS@.
17303 (LIBX): Remove @RSVG_LIBS@.
17304 (LIBES): Add $(RSVG_LIBS).
17305
17306 * image.c (svg_load_image): Blend with specified background if exists.
17307 Use IMAGE_BACKGROUND. Add Mac OS Support.
17308
17309 * mac.c (wakeup_from_rne_enabled_p) [MAC_OSX]: Remove variable.
17310 (ENABLE_WAKEUP_FROM_RNE, DISABLE_WAKEUP_FROM_RNE) [MAC_OSX]:
17311 Remove macros.
17312 [MAC_OSX] (socket_callback): Do nothing.
17313 [MAC_OSX] (select_and_poll_event): Use CFRunLoopRunInMode instead of
17314 ReceiveNextEvent.
17315 [MAC_OSX] (sys_select): Likewise. Don't set context as argument to
17316 socket_callback.
17317 (mac_wakeup_from_rne) [MAC_OSX]: Do nothing.
17318
173192007-08-22 Glenn Morris <rgm@gnu.org>
17320
17321 * image.c (x_find_image_file): Search in etc/images/ rather than etc/.
17322
173232007-08-22 Paul Pogonyshev <pogonyshev@gmx.net>
17324
17325 * Makefile.in (ALL_CFLAGS, LIBX): Add RSVG_LIBS.
17326
17327 * image.c: Add support for SVG images. Some additional comments
17328 by Joakim Verona <joakim@verona.se>. When HAVE_RSVG is defined:
17329 (svg_image_p): New function to test for SVG image.
17330 (svg_load): New function to load SVG image.
17331 (svg_load_image): New function, helper for svg_load.
17332 (Qsvg): New Lisp_object.
17333 (svg_keyword_index): New enum.
17334 (svg_format): New static `image_keyword' struct.
17335 (svg_type): New static `image_type' struct.
17336 (librsvg/rsvg.h): Include it.
17337
173382007-08-23 Stefan Monnier <monnier@iro.umontreal.ca>
17339
17340 * lread.c (load_warn_old_style_backquotes): Fix up array size typo.
17341
173422007-08-22 Stefan Monnier <monnier@iro.umontreal.ca>
17343
17344 * lread.c (Qold_style_backquotes): New var.
17345 (syms_of_lread): Init and staticpro it.
17346 (load_warn_old_style_backquotes): New fun.
17347 (Fload): Use them to warn about old style backquotes.
17348 (end_of_file_error, Fload): Remove unused vars.
17349
17350 * lisp.h (Fclear_face_cache, Fx_send_client_event): Declare.
17351
17352 * lread.c (Vold_style_backquotes): New var.
17353 (syms_of_lread): Init and export it to Elisp.
17354 (read1): Set it when we find an old-style (back)quote.
17355
173562007-08-22 Jason Rumney <jasonr@gnu.org>
17357
17358 * w32reg.c (SYSTEM_DEFAULT_RESOURCES): Add missing NULL terminator.
17359
173602007-08-22 Katsumi Yamaoka <yamaoka@jpl.org>
17361
17362 * puresize.h (BASE_PURESIZE): Increase to 1140000.
17363
173642007-08-19 Richard Stallman <rms@gnu.org>
17365
17366 * eval.c (Ffunction, Fquote): Signal error if not 1 argument.
17367
173682007-08-19 Andreas Schwab <schwab@suse.de>
17369
17370 * alloc.c (pure): Round PURESIZE up.
17371
173722007-08-17 Jan Djärv <jan.h.d@swipnet.se>
17373
17374 * xterm.c (handle_one_xevent): Remove check that mouse click is in
17375 active frame.
17376
173772007-08-16 Richard Stallman <rms@gnu.org>
17378
17379 * eval.c (Fcommandp): Add parens to clarify.
17380
17381 * minibuf.c (Fall_completions): Use enum for type of table.
17382
17383 * emacs.c (USAGE2): Improve text.
17384
173852007-08-15 Philippe Waroquiers <philippe.waroquiers@eurocontrol.int>
17386
17387 * term.c (tty_default_color_capabilities): Declare static
17388 variables in file scope, to avoid HPUX compiler problem.
17389
173902007-08-13 Jan Djärv <jan.h.d@swipnet.se>
17391
17392 * gtkutil.c (update_frame_tool_bar): Use -1 as index
17393 to gtk_toolbar_insert.
17394
173952007-08-13 Stefan Monnier <monnier@iro.umontreal.ca>
17396
17397 * fileio.c (Finsert_file_contents): Yet Another Int/Lisp_Object Mixup.
17398
17399 * insdel.c (reset_var_on_error): New fun.
17400 (signal_before_change, signal_after_change):
17401 Use it to reset (after|before)-change-functions to nil in case of error.
17402 Bind inhibit-modification-hooks to t.
17403 Don't bind (after|before)-change-functions to nil while they run.
17404
174052007-08-11 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
17406
17407 * xterm.c (x_draw_image_glyph_string): Adjust stipple origin when
17408 filling pixmap with stippled background.
17409
174102007-08-10 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
17411
17412 * macterm.c [TARGET_API_MAC_CARBON] (mac_handle_window_event):
17413 Don't use invisible frame as parent window for repositioning.
17414
174152007-08-10 Stefan Monnier <monnier@iro.umontreal.ca>
17416
17417 * print.c (new_backquote_output): Rename from old_backquote_output.
17418 (print): Inverse its logic (according to its name) so as to match the
17419 behavior of new_backquote_flag in lread.c.
17420
174212007-08-09 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
17422
17423 * gmalloc.c (posix_memalign): New function.
17424
17425 * macterm.c (frame_highlight, frame_unhighlight): Don't call
17426 ActivateControl/DeactivateControl here.
17427 [USE_MAC_TOOLBAR] (free_frame_tool_bar): Suppress animation when
17428 frame-notice-user-settings is non-nil.
17429 [USE_MAC_FONT_PANEL] (mac_handle_font_event): Also record parameter
17430 for kEventParamFMFontStyle.
17431 [TARGET_API_MAC_CARBON] (mac_handle_keyboard_event): Don't check
17432 mac_pass_command_to_system and mac_pass_control_to_system here.
17433 (XTread_socket): Call ActivateControl/DeactivateControl here.
17434 (XTread_socket) [TARGET_API_MAC_CARBON]:
17435 Check mac_pass_command_to_system and mac_pass_control_to_system here.
17436 (mac_handle_window_event) [USE_MAC_TOOLBAR]: Add further workaround
17437 for window repositioning.
17438
174392007-08-08 Glenn Morris <rgm@gnu.org>
17440
17441 * Replace `iff' in doc-strings and comments.
17442
174432007-08-07 Chong Yidong <cyd@stupidchicken.com>
17444
17445 * xdisp.c (move_it_by_lines): Remove incorrect optimization.
17446
174472007-08-07 Martin Rudalics <rudalics@gmx.at>
17448
17449 * fileio.c (Finsert_file_contents): Run format-decode and
17450 after_insert_file_functions on entire buffer when REPLACE is
17451 non-nil and inhibit modification_hooks and point_motion_hooks.
17452 For consistency, run after_insert_file_functions iff something
17453 got inserted. Move signal_after_change and update_compositions
17454 after code running after_insert_file_functions. Make sure that
17455 undo_list doesn't record intermediate steps of the decoding process.
17456
174572007-08-07 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
17458
17459 * emacs.c (main)
17460 [HAVE_GTK_AND_PTHREAD && !SYSTEM_MALLOC && !DOUG_LEA_MALLOC]:
17461 Call malloc_enable_thread on interactive startup.
17462
17463 * gmalloc.c (_malloc_thread_enabled_p) [USE_PTHREAD]: New variable.
17464 (LOCK, UNLOCK, LOCK_ALIGNED_BLOCKS, UNLOCK_ALIGNED_BLOCKS)
17465 [USE_PTHREAD]: Conditionalize with it.
17466 (malloc_atfork_handler_prepare, malloc_atfork_handler_parent)
17467 (malloc_atfork_handler_child, malloc_enable_thread) [USE_PTHREAD]:
17468 New functions.
17469
174702007-08-06 Chong Yidong <cyd@stupidchicken.com>
17471
17472 * xdisp.c (redisplay_window): When restoring original buffer
17473 position, make sure it is still valid.
17474
17475 * image.c (png_load): Ignore png-supplied background color.
17476
174772007-08-06 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
17478
17479 * mac.c [TARGET_API_MAC_CARBON] (cfdate_to_lisp): Obtain microsec value.
17480 Use kCFAbsoluteTimeIntervalSince1970.
17481
17482 * macmenu.c (quit_dialog_event_loop) [TARGET_API_MAC_CARBON]:
17483 New variable.
17484 [TARGET_API_MAC_CARBON] (mac_handle_dialog_event): Set it if dialog
17485 event loop should be quit.
17486 [TARGET_API_MAC_CARBON] (create_and_show_dialog) [!MAC_OSX]:
17487 Quit dialog event loop if quit_dialog_event_loop is set.
17488
17489 * macselect.c [!TARGET_API_MAC_CARBON]: Include Scrap.h.
17490 (Selection): New typedef. Use instead of ScrapRef.
17491 (mac_get_selection_from_symbol): Rename from get_scrap_from_symbol.
17492 (mac_valid_selection_target_p): Rename from valid_scrap_target_type_p.
17493 (mac_clear_selection): Rename from clear_scrap.
17494 (get_flavor_type_from_symbol): New argument SEL and subsume function of
17495 scrap_has_target_type. All uses changed.
17496 (mac_get_selection_ownership_info, mac_valid_selection_value_p)
17497 (mac_selection_has_target_p): New functions.
17498 (mac_put_selection_value): Rename from put_scrap_string.
17499 (mac_get_selection_value): Rename from get_scrap_string.
17500 (mac_get_selection_target_list): Rename from get_scrap_target_type_list.
17501 (put_scrap_private_timestamp, scrap_has_target_type)
17502 (get_scrap_private_timestamp): Remove functions.
17503 (SCRAP_FLAVOR_TYPE_EMACS_TIMESTAMP): Remove define.
17504 (x_own_selection, x_get_local_selection):
17505 Use mac_valid_selection_value_p.
17506 (x_own_selection): Don't use put_scrap_private_timestamp.
17507 Record OWNERSHIP-INFO into Vselection_alist instead.
17508 (x_get_local_selection): Don't check type if request is local.
17509 (Fx_selection_owner_p): Don't use get_scrap_private_timestamp.
17510 Detect ownership change with OWNERSHIP-INFO in Vselection_alist instead.
17511
175122007-08-04 Jan Djärv <jan.h.d@swipnet.se>
17513
17514 * gtkutil.c (xg_tool_bar_callback): Generate two TOOL_BAR_EVENT:s,
17515 add comment explaining why.
17516
175172007-08-03 Richard Stallman <rms@gnu.org>
17518
17519 * fileio.c (Fvisited_file_modtime): Use make_time.
17520
175212007-08-01 Ryo Yoshitake <ryo@shiftmode.net> (tiny change)
17522
17523 * mac.c (init_mac_osx_environment): Adjust load-path on self-contained
17524 build.
17525
175262007-07-31 Stefan Monnier <monnier@iro.umontreal.ca>
17527
17528 * gtkutil.c (xg_tool_bar_callback): Generate a single TOOL_BAR_EVENT.
17529
175302007-07-30 Katsumi Yamaoka <yamaoka@jpl.org>
17531
17532 * puresize.h (BASE_PURESIZE): Increase to 1130000.
17533
175342007-07-30 Richard Stallman <rms@gnu.org>
17535
17536 * lread.c (readevalloop, read1): Treat NBSP as whitespace.
17537
175382007-07-29 Jan Djärv <jan.h.d@swipnet.se>
17539
17540 * gmalloc.c (__malloc_initialize): Remove pthread_once. Not needed.
17541
175422007-07-28 Nick Roberts <nickrob@snap.net.nz>
17543
17544 * xdisp.c (decode_mode_spec): Use '@' instead of 'R' to test for
17545 remote default-directory.
17546
17547 * buffer.c (mode-line-format): Update doc string.
17548
175492007-07-27 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
17550
17551 * w32term.c (w32_draw_fringe_bitmap): Extend fringe background to
17552 scroll bar gap.
17553 (x_scroll_bar_create): Set bar->fringe_extended_p.
17554 (w32_set_vertical_scroll_bar): Put leftmost/rightmost scroll bars
17555 on frame edge. Check fringe background extension. Don't clear
17556 extended fringe background area.
17557
17558 * w32term.h (struct scroll_bar): New member fringe_extended_p.
17559 (w32_fill_area): Enclose multiple statements with do ... while (0).
17560
17561 * xterm.c (x_draw_fringe_bitmap) [USE_TOOLKIT_SCROLL_BARS]:
17562 Extend fringe background to scroll bar gap.
17563 (x_scroll_bar_create) [USE_TOOLKIT_SCROLL_BARS]:
17564 Set bar->fringe_extended_p.
17565 (XTset_vertical_scroll_bar) [USE_TOOLKIT_SCROLL_BARS]:
17566 Put leftmost/rightmost scroll bars on frame edge. Check fringe
17567 background extension. Don't clear extended fringe background area.
17568
17569 * xterm.h (struct scroll_bar) [USE_TOOLKIT_SCROLL_BARS]:
17570 New member fringe_extended_p.
17571
175722007-07-25 Glenn Morris <rgm@gnu.org>
17573
17574 * Relicense all FSF files to GPLv3 or later.
17575
17576 * COPYING: Switch to GPLv3.
17577
175782007-07-25 Stefan Monnier <monnier@iro.umontreal.ca>
17579
17580 * eval.c (Fcommandp): Pay attention to the `interactive-form' property.
17581
17582 * data.c (Finteractive_form): Check for the presence of an
17583 `interactive-form' symbol property more thoroughly.
17584
17585 * data.c (Finteractive_form): Use an `interactive-form' property if
17586 present, analogous to the function-documentation property.
17587
175882007-07-24 Jason Rumney <jasonr@gnu.org>
17589
17590 * w32fns.c (x_real_positions): Get real position from OS instead of
17591 calculating it.
17592
175932007-07-23 Jason Rumney <jasonr@gnu.org>
17594
17595 * filelock.c (current_lock_owner): Allow for @ sign in username.
17596
175972007-07-22 Nick Roberts <nickrob@snap.net.nz>
17598
17599 * xdisp.c (decode_mode_spec): Add case 'R' for to test for
17600 remote default-directory.
17601
17602 * buffer.c (mode-line-format): Describe above case in doc string.
17603
176042007-07-20 Eli Zaretskii <eliz@gnu.org>
17605
17606 * w32proc.c (IMAGE_NT_OPTIONAL_HDR32_MAGIC, IMAGE_OPTIONAL_HEADER32):
17607 Define if not defined.
17608
176092007-07-18 Jason Rumney <jasonr@gnu.org>
17610
17611 * w32proc.c (w32_executable_type): Handle 64 bit executables.
17612
176132007-07-18 Richard Stallman <rms@gnu.org>
17614
17615 * data.c (Fsetq_default): Doc fix.
17616
17617 * eval.c (Fsetq): Doc fix.
17618
176192007-07-18 Juanma Barranquero <lekktu@gmail.com>
17620
17621 * coding.c (Ffind_operation_coding_system):
17622 * eval.c (For, Fand): Doc fixes.
17623 Reported by Johan Bockgård.
17624
176252007-07-18 Jan Djärv <jan.h.d@swipnet.se>
17626
17627 * xfns.c (Fx_focus_frame): Call x_ewmh_activate_frame.
17628
17629 * xterm.h: Declare x_ewmh_activate_frame.
17630
17631 * xterm.c (x_ewmh_activate_frame): New function.
17632 (XTframe_raise_lower): Move code to x_ewmh_activate_frame.
17633
176342007-07-17 Martin Rudalics <rudalics@gmx.at>
17635
17636 * window.c (Fdisplay_buffer): If largest or LRU window is the
17637 only window, split it even if it is not eligible for splitting.
17638 This restores the original behavior broken by the 2007-07-15
17639 change.
17640
176412007-07-17 Glenn Morris <rgm@gnu.org>
17642
17643 * abbrev.c (abbrev_check_chars): New function.
17644 (Fdefine_global_abbrev, Fdefine_mode_abbrev):
17645 Call abbrev_check_chars to check abbrev characters are word
17646 constituents. Doc fix.
17647
176482007-07-17 Stefan Monnier <monnier@iro.umontreal.ca>
17649
17650 * process.c (Fstart_process, Fmake_network_process)
17651 (read_process_output): Fix up last changes.
17652
176532007-07-16 Eli Zaretskii <eliz@gnu.org>
17654
17655 * makefile.w32-in (clean): Don't delete *~.
17656
176572007-07-16 Andreas Schwab <schwab@suse.de>
17658
17659 * window.c (Fdisplay_buffer): Use NILP.
17660 (Fset_window_scroll_bars): Likewise.
17661
176622007-07-15 Martin Rudalics <rudalics@gmx.at>
17663
17664 * window.c (window_min_size_2): New function.
17665 (window_min_size_1, size_window, Fdisplay_buffer)
17666 (Fsplit_window, adjust_window_trailing_edge): Use it to avoid
17667 windows without mode- or header-lines when window-min-height is
17668 too small.
17669 (size_window): Reset nodelete_p after testing it, following an
17670 earlier note by Kim F. Storm.
17671 (display_buffer): Do not set split_height_threshold to twice the
17672 value of window_min_height to avoid changing the value of a
17673 customizable variable. Rather explicitly check whether the
17674 height of the window that shall be splitted is at least as large
17675 as split_height_threshold.
17676 (Fwindow_full_width_p): New defun.
17677 (syms_of_window): Defsubr it.
17678
17679 * window.h: Add EXFUN for Fwindow_full_width_p.
17680
176812007-07-14 Jason Rumney <jasonr@gnu.org>
17682
17683 * process.c [WINDOWSNT]: Don't undefine AF_INET6.
17684
176852007-07-14 Richard Stallman <rms@gnu.org>
17686
17687 * eval.c (maybe_call_debugger): New function.
17688 (find_handler_clause): Use maybe_call_debugger.
17689 Call it when the handler says `debug'.
17690 Eliminate DEBUGGER_VALUE_PTR.
17691 (Fsignal): Eliminate debugger_value.
17692 (Qdebug): New variable.
17693 (syms_of_eval): Initialize it.
17694
176952007-07-14 Juanma Barranquero <lekktu@gmail.com>
17696
17697 * eval.c (Fprogn):
17698 * keyboard.c (Ftrack_mouse):
17699 * print.c (Fwith_output_to_temp_buffer):
17700 * window.c (Fsave_window_excursion): Doc fix.
17701
177022007-07-13 Stefan Monnier <monnier@iro.umontreal.ca>
17703
17704 * eval.c (init_eval_once): Bump max_lisp_eval_depth to 400.
17705
177062007-07-12 Stefan Monnier <monnier@iro.umontreal.ca>
17707
17708 * process.h (struct Lisp_Process): Turn slots infd, outfd,
17709 kill_without_query, pty_flag, tick, update_tick, decoding_carryover,
17710 inherit_coding_system_flag, filter_multibyte, adaptive_read_buffering,
17711 read_output_delay, and read_output_skip from Lisp_Objects to ints.
17712 Remove unused encoding_carryover.
17713 * process.c: Adjust all functions accordingly.
17714
177152007-07-12 Richard Stallman <rms@gnu.org>
17716
17717 * term.c: Include unistd.h only if HAVE_UNISTD_H.
17718
177192007-07-11 Jason Rumney <jasonr@gnu.org>
17720
17721 * makefile.w32-in (LIBS): Include OLE32.
17722
17723 * w32fns.c (w32_msg_pump) <WM_EMACS_CREATEWINDOW>: Initialize COM.
17724 (w32_msg_pump) <WM_DESTROY>: Uninitialize COM.
17725
177262007-07-11 Stefan Monnier <monnier@iro.umontreal.ca>
17727
17728 * lisp.h (struct Lisp_Hash_Table): Turn next_weak into a bare pointer.
17729 * fns.c (weak_hash_tables): Rename from Vweak_hash_tables and turned
17730 from a Lisp_Object into a bare pointer.
17731 (make_hash_table, copy_hash_table, sweep_weak_hash_tables, init_fns):
17732 Adjust the code correspondingly.
17733
17734 * alloc.c (emacs_blocked_free): Remove unused var `bytes_used_now'.
17735
17736 * term.c: Include unistd.h for ttyname, used in handle_one_term_event.
17737 (term_show_mouse_face): Remove unused var `j'.
17738 (handle_one_term_event): Remove unused vars `i' and `j'.
17739 Don't cast return value of ttyname since it's not necessary.
17740
177412007-07-10 Stefan Monnier <monnier@iro.umontreal.ca>
17742
17743 * alloc.c (mark_maybe_pointer): Enforce mult-of-8 alignment when using
17744 USE_LSB_TAG. Suggested by Dmitry Antipov <dmantipov@yandex.ru>.
17745
17746 * fns.c (map_char_table): Use an array of int for `indices' rather than
17747 an array of Lisp_Objects (which are only ever integers anyway).
17748 (Fmap_char_table): Update caller.
17749 * lisp.h: Update prototype.
17750 * keymap.c (Fset_keymap_parent, map_keymap, Fcopy_keymap):
17751 * fontset.c (Ffontset_info):
17752 * casetab.c (set_case_table): Update callers.
17753
17754 * editfns.c (Ftranspose_regions): Use EMACS_INT for positions.
17755
17756 * keymap.c (struct accessible_keymaps_data)
17757 (struct where_is_internal_data): New structures.
17758 (accessible_keymaps_1, where_is_internal_1): Use them to change
17759 interface to adhere to the one used by map_keymap.
17760 (Faccessible_keymaps, where_is_internal): Use map_keymap.
17761 (accessible_keymaps_char_table, where_is_internal_2): Remove.
17762
17763 * keymap.h (map_keymap_function_t): More informative prototype.
17764
177652007-07-10 Guanpeng Xu <herberteuler@hotmail.com>
17766
17767 * search.c (Vinhibit_changing_match_data, search_regs_1): New vars.
17768 (looking_at_1): Don't change search_regs and last_thing_searched
17769 if `inhibit-changing-match-data' is non-nil.
17770 (string_match_1, search_buffer, set_search_regs): Likewise.
17771 (syms_of_search): Add Lisp level definition for
17772 `inhibit-changing-match-data' and set it to nil.
17773 (boyer_moore): If `inhibit-changing-match-data' is non-nil, compute
17774 start and end of the match, instead of using values in search_regs.
17775
177762007-07-01 Stefan Monnier <monnier@iro.umontreal.ca>
17777
17778 * minibuf.c (Fcompleting_read): New value `confirm-only'
17779 for `require-match'.
17780
177812007-06-28 Stefan Monnier <monnier@iro.umontreal.ca>
17782
17783 * fileio.c (Fdo_auto_save): Revert last patch installed unwillingly as
17784 part of the 2007-06-27 change to syms_of_fileio.
17785
177862007-06-28 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
17787
17788 * macterm.c [USE_MAC_TSM] (mac_handle_text_input_event):
17789 Check WINDOWP before using XWINDOW. Consolidate return statements.
17790
177912007-06-27 Richard Stallman <rms@gnu.org>
17792
17793 * fileio.c (syms_of_fileio) <after-insert-file-functions>: Doc fix.
17794
177952007-06-27 Juanma Barranquero <lekktu@gmail.com>
17796
17797 * buffer.c (syms_of_buffer) <selective-display>: Fix typo in docstring.
17798
177992007-06-26 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
17800
17801 * gmalloc.c [HAVE_GTK_AND_PTHREAD]: Check this after including config.h.
17802 (_aligned_blocks_mutex) [USE_PTHREAD]: New variable.
17803 (LOCK_ALIGNED_BLOCKS, UNLOCK_ALIGNED_BLOCKS): New macros.
17804 (_free_internal, memalign): Use them.
17805 (_malloc_mutex, _aligned_blocks_mutex) [USE_PTHREAD]:
17806 Initialize to PTHREAD_MUTEX_INITIALIZER.
17807 (malloc_initialize_1) [USE_PTHREAD]: Don't use recursive mutex.
17808 (morecore_nolock): Rename from morecore. All uses changed.
17809 Use only nolock versions of internal allocation functions.
17810 (_malloc_internal_nolock, _realloc_internal_nolock)
17811 (_free_internal_nolock): New functions created from
17812 _malloc_internal, _realloc_internal, and _free_internal.
17813 (_malloc_internal, _realloc_internal, _free_internal): Use them.
17814 Copy hook value to automatic variable before its use.
17815 (memalign): Copy hook value to automatic variable before its use.
17816
178172007-06-26 Kenichi Handa <handa@m17n.org>
17818
17819 * coding.c (Ffind_operation_coding_system): Docstring improved.
17820 (syms_of_coding): Docstring of `file-coding-system-alist' improved.
17821
178222007-06-25 David Kastrup <dak@gnu.org>
17823
17824 * keymap.c (Fcurrent_active_maps): Add `position' argument.
17825 (Fwhere_is_internal): Adjust call to `current-active-maps' to
17826 cater for additional parameter.
17827
17828 * keymap.h: Adjust number of parameters to `current-active-maps'.
17829
17830 * doc.c (Fsubstitute_command_keys): Adjust call of
17831 `current-active-maps'.
17832
178332007-06-25 David Kastrup <dak@gnu.org>
17834
17835 * callint.c (Fcall_interactively): Make the parsing of interactive
17836 specs somewhat more readable.
17837
178382007-06-23 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
17839
17840 * macterm.c (x_draw_fringe_bitmap) [MAC_OSX]: Extend fringe background
17841 to scroll bar gap also when bitmap fills fringe. Draw only foreground
17842 if extended background has already been filled.
17843
178442007-06-22 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
17845
17846 * macgui.h (USE_CG_DRAWING): Don't require USE_ATSUI.
17847 (USE_MAC_TOOLBAR): Require USE_CG_DRAWING.
17848
17849 * macmenu.c (mac_dialog_modal_filter, Fx_popup_dialog) [MAC_OSX]:
17850 Put special treatment for Fmessage_box, Fyes_or_no_p, and Fy_or_n_p
17851 in #if 0 as it is not compatible with y-or-n-p-with-timeout.
17852 (timer_check) [TARGET_API_MAC_CARBON]: Add extern.
17853 [TARGET_API_MAC_CARBON] (mac_handle_dialog_event): Use QuitEventLoop
17854 instead of QuitAppModalLoopForWindow. Consolidate QuitEventLoop calls.
17855 (pop_down_dialog) [TARGET_API_MAC_CARBON]: New function.
17856 [TARGET_API_MAC_CARBON] (create_and_show_dialog): Use it for unwind.
17857 Run timers during dialog popup.
17858 (Fmenu_or_popup_active_p) [TARGET_API_MAC_CARBON]: Use popup_activated.
17859
178602007-06-21 Jason Rumney <jasonr@gnu.org>
17861
17862 * image.c (convert_mono_to_color_image): Swap fore and background.
17863
178642007-06-20 Jason Rumney <jasonr@gnu.org>
17865
17866 * w32bdf.c (w32_BDF_to_x_font): Unmap memory when finished.
17867 (w32_free_bdf_font): Unmap memory not handle.
17868
178692007-06-20 Sam Steingold <sds@gnu.org>
17870
17871 * gmalloc.c (__morecore): Fix the declaration to comply with the
17872 definition.
17873
178742007-06-20 Juanma Barranquero <lekktu@gmail.com>
17875
17876 * w32term.c (w32_delete_display): Remove leftover declaration.
17877 (w32_define_cursor, w32_initialize): Make static.
17878
17879 * w32.c (_wsa_errlist): Fix typo in error message.
17880 (init_environment): Ignore any environment variable from the
17881 registry having a null value.
17882
178832007-06-20 Glenn Morris <rgm@gnu.org>
17884
17885 * Makefile.in (LIBGIF): Default to -lgif.
17886
178872007-06-17 Jason Rumney <jasonr@gnu.org>
17888
17889 * w32menu.c (add_menu_item): Don't use multibyte string functions on
17890 unicode strings.
17891
178922007-06-16 Juanma Barranquero <lekktu@gmail.com>
17893
17894 * xdisp.c (syms_of_xdisp) <auto-resize-tool-bars>:
17895 Fix typo in docstring.
17896
178972007-06-16 Eli Zaretskii <eliz@gnu.org>
17898
17899 * w32menu.c (add_menu_item): Escape `&' characters in menu items
17900 and their keybindings.
17901
179022007-06-15 Chong Yidong <cyd@stupidchicken.com>
17903
17904 * composite.c (update_compositions): Fix last fix.
17905
179062007-06-14 Jason Rumney <jasonr@gnu.org>
17907
17908 * w32.c (get_process_times_fn): New function pointer.
17909 (globals_of_w32): Intialize it if present in kernel32.dll.
17910 (w32_get_internal_run_time): New function.
17911
17912 * editfns.c (Fget_internal_run_time) [WINDOWSNT]: Use it.
17913
179142007-06-14 Kenichi Handa <handa@etlken.m17n.org>
17915
17916 * composite.c (update_compositions): Check the validness of
17917 compositions.
17918
179192007-06-14 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
17920
17921 * frame.h (struct frame) [MAC_OS]: New member external_tool_bar.
17922 (FRAME_EXTERNAL_TOOL_BAR) [MAC_OS]: Use it.
17923
17924 * macfns.c (mac_window) [USE_MAC_TOOLBAR]: Set toolbar_win_gravity.
17925 (x_set_tool_bar_lines) [USE_MAC_TOOLBAR]: Set FRAME_EXTERNAL_TOOL_BAR.
17926
17927 * macgui.h (USE_MAC_TOOLBAR): New define.
17928
17929 * macmenu.c [TARGET_API_MAC_CARBON] (menu_target_item_handler):
17930 Return immediately unless popup is activated.
17931
17932 * macterm.c (x_draw_fringe_bitmap) [MAC_OSX]: Extend fringe
17933 background to scroll bar gap.
17934 (x_scroll_bar_create) [MAC_OSX]: Set bar->fringe_extended_p.
17935 (XTset_vertical_scroll_bar) [MAC_OSX]: Put leftmost/rightmost
17936 scroll bars on frame edge. Check fringe background extension.
17937 Don't clear extended fringe background area.
17938 (TOOLBAR_IDENTIFIER, TOOLBAR_ICON_ITEM_IDENTIFIER)
17939 (TOOLBAR_ITEM_COMMAND_ID_OFFSET, TOOLBAR_ITEM_COMMAND_ID_P)
17940 (TOOLBAR_ITEM_COMMAND_ID_VALUE, TOOLBAR_ITEM_MAKE_COMMAND_ID):
17941 [USE_MAC_TOOLBAR]: New macros.
17942 (mac_move_window_with_gravity, mac_get_window_origin_with_gravity)
17943 (mac_handle_toolbar_event, mac_image_spec_to_cg_image)
17944 (mac_create_frame_tool_bar, update_frame_tool_bar, free_frame_tool_bar)
17945 (mac_tool_bar_note_mouse_movement, mac_handle_toolbar_command_event)
17946 [USE_MAC_TOOLBAR]: New functions.
17947 (mac_handle_window_event) [USE_MAC_TOOLBAR]: Reposition window
17948 manually if previous repositioning has failed.
17949 (mac_handle_keyboard_event): Use precomputed event kind.
17950 (XTread_socket) [USE_MAC_TOOLBAR]: Handle click in structure region
17951 as tool bar item click. Handle mouse movement over tool bar items.
17952
17953 * macterm.h (struct mac_output) [USE_MAC_TOOLBAR]: New member
17954 toolbar_win_gravity.
17955 (struct scroll_bar) [MAC_OSX]: New member fringe_extended_p.
17956 (update_frame_tool_bar, free_frame_tool_bar) [USE_MAC_TOOLBAR]:
17957 Add externs.
17958
17959 * xdisp.c (update_tool_bar, redisplay_tool_bar, redisplay_window)
17960 [USE_MAC_TOOLBAR]: Sync with GTK+ tool bar display.
17961
179622007-06-14 Chong Yidong <cyd@stupidchicken.com>
17963
17964 * image.c (search_image_cache): Remove unused variable.
17965
179662007-06-13 Chong Yidong <cyd@stupidchicken.com>
17967
17968 * xfns.c, xmenu.c: Link to xaw3d if available.
17969
179702007-06-13 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
17971
17972 * dispextern.h (struct image) [HAVE_WINDOW_SYSTEM]: New members
17973 frame_foreground and frame_background.
17974
17975 * image.c (lookup_image): Save frame foreground and background colors.
17976 (search_image_cache): Check if saved and current frame colors match.
17977
179782007-06-12 Stefan Monnier <monnier@iro.umontreal.ca>
17979
17980 * regex.c (regex_compile): Remove the `regnum' counter.
17981 Use bufp->re_nsub instead. Add support for \(?N:RE\).
17982
179832007-06-11 Stefan Monnier <monnier@iro.umontreal.ca>
17984
17985 * term.c: Include intervals.h to declare Fget_text_property.
17986
179872007-06-10 Jason Rumney <jasonr@gnu.org>
17988
17989 * w32fns.c (Fx_file_dialog): Take size from struct not pointer.
17990
179912007-06-08 Juanma Barranquero <lekktu@gmail.com>
17992
17993 * callint.c (Fcall_interactively):
17994 * editfns.c (Fdelete_and_extract_region):
17995 * fileio.c (Fread_file_name):
17996 * fns.c (Fmapconcat):
17997 * keyboard.c (cmd_error_internal):
17998 * keymap.c (Fkey_description):
17999 * lread.c (openp):
18000 * minibuf.c (read_minibuf):
18001 * search.c (wordify):
18002 * sunfns.c (sel_read):
18003 * xdisp.c (Fformat_mode_line, syms_of_xdisp):
18004 * xfns.c (x_default_scroll_bar_color_parameter):
18005 * xmenu.c (menu_help_callback):
18006 * xselect.c (Fx_get_atom_name):
18007 * xterm.c (x_term_init): Use empty_unibyte_string.
18008
180092007-06-08 Dmitry Antipov <dmantipov@yandex.ru> (tiny change)
18010
18011 * alloc.c (init_strings): Initialize canonical empty strings.
18012 (make_uninit_string, make_uninit_multibyte_string): Return appropriate
18013 canonical empty string when the requested size is 0.
18014
18015 * emacs.c (empty_unibyte_string): Rename from empty_string.
18016 (empty_multibyte_string): New canonical empty string.
18017 (syms_of_emacs): Don't initialize empty_string.
18018
18019 * lisp.h (STRING_SET_UNIBYTE): Return the canonical empty unibyte
18020 string, if appropriate.
18021 (empty_unibyte_string, empty_multibyte_string): New externs.
18022 (empty_string): Remove extern.
18023
18024 * lread.c (syms_of_lread): Use empty_unibyte_string.
18025
180262007-06-07 Jason Rumney <jasonr@gnu.org>
18027
18028 * s/ms-w32.h: Don't define HAVE_TZNAME.
18029
18030 * editfns.c (Fcurrent_time_zone): Remove hack for Japanese Windows.
18031
180322007-06-07 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
18033
18034 * mac.c (xrm_get_preference_database): Remove BLOCK_INPUT.
18035
18036 * macfns.c (mac_get_window_bounds): Move extern to macterm.h.
18037 (compute_tip_xy) [TARGET_API_MAC_CARBON]: Use GetGlobalMouse.
18038
18039 * macmenu.c [TARGET_API_MAC_CARBON] (menu_target_item_handler):
18040 Don't call next handler.
18041 [TARGET_API_MAC_CARBON] (install_menu_target_item_handler):
18042 Remove argument. Install handler to application.
18043 (set_frame_menubar): Don't change deep_p.
18044 (mac_menu_show): Use FRAME_OUTER_TO_INNER_DIFF_X and
18045 FRAME_OUTER_TO_INNER_DIFF_Y.
18046 (DIALOG_BUTTON_COMMAND_ID_OFFSET, DIALOG_BUTTON_COMMAND_ID_P)
18047 (DIALOG_BUTTON_COMMAND_ID_VALUE, DIALOG_BUTTON_MAKE_COMMAND_ID)
18048 [HAVE_DIALOGS]: New macros.
18049 [HAVE_DIALOGS] (mac_handle_dialog_event, create_and_show_dialog):
18050 Use them.
18051 (fill_menubar) [TARGET_API_MAC_CARBON]: Use CFString.
18052
18053 * macselect.c [MAC_OSX] (install_service_handler): Rename from
18054 init_service_handler. All callers changed. Return OSStatus value.
18055
18056 * macterm.c (mac_begin_cg_clip): New arg F. Call SetPortWindowPort.
18057 All callers changed so as not to call SetPortWindowPort.
18058 (mac_begin_cg_clip) [USE_CG_DRAWING]: Call mac_prepare_for_quickdraw.
18059 (mac_draw_image_string_atsui) [USE_ATSUI]: New function created from
18060 mac_draw_string_common.
18061 (mac_draw_image_string_qd): Likewise.
18062 (mac_draw_string_common): Use them. Add INLINE.
18063 (XTmouse_position, x_scroll_bar_report_motion) [TARGET_API_MAC_CARBON]:
18064 Use FRAME_OUTER_TO_INNER_DIFF_X, FRAME_OUTER_TO_INNER_DIFF_Y, and
18065 GetGlobalMouse.
18066 (x_set_mouse_pixel_position) [MAC_OSX]: Use FRAME_OUTER_TO_INNER_DIFF_X
18067 and FRAME_OUTER_TO_INNER_DIFF_Y.
18068 [TARGET_API_MAC_CARBON] (mac_handle_mouse_event): Likewise.
18069 [USE_MAC_TSM] (mac_handle_text_input_event): Likewise.
18070 (x_make_frame_visible) [TARGET_API_MAC_CARBON]: Move code for
18071 repositioning window to mac_handle_window_event.
18072 (x_make_frame_invisible) [TARGET_API_MAC_CARBON]: Move code for
18073 saving window location to mac_handle_window_event
18074 [USE_MAC_FONT_PANEL] (mac_show_hide_font_panel): Install handler here.
18075 (install_menu_target_item_handler): Remove argument in extern.
18076 [TARGET_API_MAC_CARBON] (mac_event_to_emacs_modifiers):
18077 Also accept command events.
18078 (do_keystroke): New function created from XTread_socket.
18079 (init_command_handler): Remove functions.
18080 [TARGET_API_MAC_CARBON] (mac_handle_window_event): Reposition window
18081 and save window location by kEventWindowShowing and kEventWindowHiding
18082 handlers here. Don't call next handler for window state change and
18083 focus events.
18084 (mac_handle_application_event, mac_handle_keyboard_event)
18085 [TARGET_API_MAC_CARBON]: New functions.
18086 (install_window_handler) [TARGET_API_MAC_CARBON]: Register handlers for
18087 kEventWindowShowing and kEventWindowHiding events. Move installation
18088 of mouse, font, text input and menu target item handlers to
18089 install_application_handler.
18090 (install_application_handler) [TARGET_API_MAC_CARBON]: New function.
18091 (mac_handle_cg_display_reconfig) [MAC_OS_X_VERSION_MAX_ALLOWED >= 1030]:
18092 New function.
18093 (init_dm_notification_handler) [MAC_OS_X_VERSION_MAX_ALLOWED >= 1030]:
18094 Register it.
18095 (XTread_socket) [TARGET_API_MAC_CARBON]:
18096 Consolidate SendEventToEventTarget calls.
18097 Use FRAME_OUTER_TO_INNER_DIFF_X and FRAME_OUTER_TO_INNER_DIFF_Y.
18098 Move application activation handler to mac_handle_application_event.
18099 Move keyboard handler to mac_handle_keyboard_event.
18100 (XTread_socket) [!TARGET_API_MAC_CARBON]: Use do_keystroke.
18101 (mac_initialize) [TARGET_API_MAC_CARBON]: Don't call
18102 init_command_handler. Call install_application_handler.
18103
18104 * macterm.h (mac_get_window_bounds): Move extern from macfns.c.
18105 (FRAME_OUTER_TO_INNER_DIFF_X, FRAME_OUTER_TO_INNER_DIFF_Y): New macros.
18106
181072007-06-07 Glenn Morris <rgm@gnu.org>
18108
18109 * emacs.c (main): Use `emacs-copyright' in --version output.
18110
181112007-06-06 Chong Yidong <cyd@stupidchicken.com>
18112
18113 * image.c (xpm_load): Remove spurious call to xpm_init_color_cache.
18114
181152007-06-06 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
18116
18117 * macfns.c (mac_window): Replace WindowPtr with WindowRef.
18118
18119 * macgui.h: Replace WindowPtr with WindowRef.
18120
18121 * macmenu.c: Replace MenuHandle and GetMenuHandle with MenuRef and
18122 GetMenuRef, respectively. Replace WindowPtr with WindowRef.
18123 Replace ControlHandle with ControlRef.
18124 (install_menu_quit_handler): Rename arg MENU_HANDLE to ROOT_MENU.
18125
18126 * macterm.c: Replace MenuHandle and GetMenuHandle with MenuRef and
18127 GetMenuRef, respectively. Replace WindowPtr with WindowRef.
18128 Replace ControlHandle with ControlRef.
18129 (USE_CARBON_EVENTS): Remove. Use TARGET_API_MAC_CARBON instead.
18130 [MAC_OS8] (do_get_menus): Rename variable `menu_handle' to `menu'.
18131
18132 * macterm.h (struct scroll_bar): Rename member control_handle_low
18133 and control_handle_high to control_ref_low and control_ref_high.
18134 All uses changed.
18135 (SCROLL_BAR_CONTROL_REF, SET_SCROLL_BAR_CONTROL_REF): Rename from
18136 SCROLL_BAR_CONTROL_HANDLE and SET_SCROLL_BAR_CONTROL_HANDLE,
18137 respectively. All uses changed.
18138 (XCreatePixmap, XCreatePixmapFromBitmapData, XSetWindowBackground)
18139 (install_window_handler, remove_window_handler): Replace WindowPtr
18140 with WindowRef in externs.
18141
181422007-06-05 Juanma Barranquero <lekktu@gmail.com>
18143
18144 * xfaces.c (Finternal_lisp_face_p): Signal error for face alias loops.
18145
181462007-06-03 Nick Roberts <nickrob@snap.net.nz>
18147
18148 * keyboard.c (discard_mouse_events): Add GPM_CLICK_EVENT case.
18149
18150 * frame.c (Fmouse_position, Fmouse_pixel_position):
18151 Condition on HAVE_GPM too.
18152
18153 * term.c (term_mouse_highlight): Remove unused variables.
18154 (Fterm_open_connection): Set gpm_zerobased to 1.
18155 (term_mouse_movement, term_mouse_click, handle_one_term_event):
18156 Use zero based co-ordinates.
18157 (handle_one_term_event): Report a drag as mouse movement too.
18158
18159 * Makefile.in (MOUSE_SUPPORT): Define for HAVE_GPM.
18160
181612007-06-03 Chong Yidong <cyd@stupidchicken.com>
18162
18163 * image.c (search_image_cache): New function. Require background
18164 color match if background color is unspecified in the image spec.
18165 (uncache_image, lookup_image): Use it.
18166
181672007-06-01 Juanma Barranquero <lekktu@gmail.com>
18168
18169 * window.c (Fshrink_window): Reflow docstring.
18170
181712007-06-02 Chong Yidong <cyd@stupidchicken.com>
18172
18173 * Version 22.1 released.
18174
181752007-06-01 Richard Stallman <rms@gnu.org>
18176
18177 * xfns.c (x_encode_text): Add GCPRO.
18178
181792007-06-01 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
18180
18181 * xfns.c (x_set_name_internal): Save encoded name before
18182 x_encode_text in case string data is relocated.
18183
181842007-05-31 Richard Stallman <rms@gnu.org>
18185
18186 * buffer.c (syms_of_buffer): Doc fix.
18187
181882007-05-30 Nick Roberts <nickrob@snap.net.nz>
18189
18190 * sysdep.c (init_sys_modes): Add rather than replace with
18191 O_NONBLOCK.
18192
18193 * frame.c [HAVE_GPM] (Fset_mouse_pixel_position): Add call to
18194 term_mouse_moveto.
18195
18196 * termhooks.h (term_mouse_moveto): New extern.
18197
18198 * term.c (mouse_face_window): Rename...
18199 (Qmouse_face_window): ...to this.
18200 (term_show_mouse_face, term_clear_mouse_face)
18201 (term_mouse_highlight): Use Qmouse_face_window.
18202 (term_mouse_moveto): New function.
18203 (term_mouse_position): Make it work.
18204 (syms_of_term): Uncomment assignment to mouse_position_hook.
18205 Staticpro Qmouse_face_window.
18206
182072007-05-28 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
18208
18209 * xdisp.c (redisplay_internal): Bind inhibit-point-motion-hooks to t
18210 around current_column call.
18211
182122007-05-26 Dan Nicolaescu <dann@ics.uci.edu>
18213
18214 * xfaces.c (syms_of_xfaces): Delete stray semicolon.
18215 * xdisp.c (next_element_from_buffer):
18216 * window.c (delete_window):
18217 * term.c (term_mouse_highlight):
18218 * msdos.c (getdefdir):
18219 * macterm.c (mac_create_bitmap_from_bitmap_data)
18220 (init_font_name_table):
18221 * fns.c (Fsxhash):
18222 * data.c (Fmake_local_variable):
18223 * ccl.c (ccl_driver): Likewise.
18224
182252007-05-24 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
18226
18227 * macterm.c [USE_CARBON_EVENTS] (mac_handle_window_event):
18228 Call mac_wakeup_from_rne on window size change.
18229
182302007-05-25 Chong Yidong <cyd@stupidchicken.com>
18231
18232 * image.c (uncache_image): Fix typo.
18233
182342007-05-23 Johannes Weiner <hannes@saeurebad.de> (tiny change)
18235
18236 * keyboard.c (make_lispy_movement): Condition on HAVE_GPM too.
18237
182382007-05-22 Richard Stallman <rms@gnu.org>
18239
18240 * xterm.c (x_connection_closed): Remove NO_RETURN.
18241
182422007-05-22 Martin Rudalics <rudalics@gmx.at>
18243
18244 * syntax.c (scan_words): Fix arg to UPDATE_SYNTAX_TABLE_BACKWARD.
18245
182462007-05-21 Chong Yidong <cyd@stupidchicken.com>
18247
18248 * image.c (uncache_image): New function.
18249 (Fimage_refresh): New function.
18250
182512007-05-20 Jan Djärv <jan.h.d@swipnet.se>
18252
18253 * Makefile.in: Move GPM check outside HAVE_X_WINDOWS.
18254
182552007-05-20 Nick Roberts <nickrob@snap.net.nz>
18256
18257 * config.in, keyboard.c, Makefile.in, sysdep.c, term.c,
18258 * termhooks.h: Use HAVE_GPM instead of HAVE_GPM_H.
18259
182602007-05-20 Nick Roberts <nickrob@snap.net.nz>
18261
18262 * keyboard.c (make_lispy_event): Make case GPM_CLICK_EVENT
18263 conditional on [HAVE_GPM_H].
18264
182652007-05-19 Stefan Monnier <monnier@iro.umontreal.ca>
18266
18267 * syntax.c (skip_chars): Update syntax-table only after we checked that
18268 the new location is valid.
18269
182702007-05-19 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
18271
18272 * macterm.c (x_calc_absolute_position): Add BLOCK_INPUT around
18273 mac_get_window_bounds.
18274
182752007-05-20 Nick Roberts <nickrob@snap.net.nz>
18276
18277 * Makefile.in (LIBGPM): Allow it to be set from configure.
18278 If set then link Emacs with it.
18279
18280 * config.in: Regenerate.
18281
18282 * lisp.h (add_gpm_wait_descriptor, delete_gpm_wait_descriptor):
18283 New externs.
18284
18285 * termhooks.h [HAVE_GPM_H] (enum event_kind): Add GPM_CLICK_EVENT.
18286 Include gpm.h.
18287 (handle_one_term_event, term_gpm): New externs.
18288
18289 * sysdep.c [HAVE_GPM_H] (init_sys_modes): Make gpm_fd nonblocking
18290 and allow it to be interrupted by SIGIO.
18291
18292 * process.c (gpm_wait_mask, max_gpm_desc): New variables.
18293 (wait_reading_process_output): Wait on gpm_fd too.
18294 (add_gpm_wait_descriptor, delete_gpm_wait_descriptor)): New functions.
18295 (add_gpm_wait_descriptor_called_flag): New variable.
18296 (delete_keyboard_wait_descriptor): Check gpm_wait_mask.
18297
18298 * keyboard.c [HAVE_GPM_H] (Qmouse_fixup_help_message)
18299 (make_lispy_movement, tracking_off, Ftrack_mouse, some_mouse_moved)
18300 (show_help_echo, readable_events, kbd_buffer_get_event, init_keyboard):
18301 Extend HAVE_MOUSE ifdefs to HAVE_GPM_H.
18302 (make_lispy_event): Add case GPM_CLICK_EVENT.
18303 (read_avail_input): Handle mouse input.
18304
18305 * term.c (write_glyphs_with_face): New function.
18306 [HAVE_GPM_H]: Include buffer.h, sys/fcntl.h.
18307 (mouse_face_beg_row, mouse_face_beg_col, mouse_face_end_row)
18308 (mouse_face_end_col, mouse_face_past_end, mouse_face_window)
18309 (mouse_face_face_id, term_gpm, pos_x, pos_y)
18310 (last_mouse_x, last_mouse_y): New variables.
18311 (term_show_mouse_face, term_clear_mouse_face, fast_find_position)
18312 (term_mouse_highlight, term_mouse_movement, term_mouse_position)
18313 (term_mouse_click, handle_one_term_event, Fterm_open_connection)
18314 (Fterm_close_connection): New functions.
18315 (term_init): Initialise mouse_face_window.
18316
183172007-05-19 Chong Yidong <cyd@stupidchicken.com>
18318
18319 * xdisp.c (redisplay_window): If first window line is a
18320 continuation line, recompute the new window start instead of
18321 recentering.
18322
183232007-05-18 Glenn Morris <rgm@gnu.org>
18324
18325 * m/alpha.h (ORDINARY_LINK): No longer define on OpenBSD.
18326 Suggested by Alfred M. Szmidt <ams@gnu.org>.
18327
183282007-05-17 Glenn Morris <rgm@gnu.org>
18329
18330 * m/macppc.h (ORDINARY_LINK): No longer define on OpenBSD.
18331
183322007-05-16 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
18333
18334 * macterm.c [USE_CARBON_EVENTS] (mac_convert_event_ref): Also convert
18335 dead key repeat and up events.
18336
183372007-05-14 Chong Yidong <cyd@stupidchicken.com>
18338
18339 * image.c (pbm_load): Check image size for monochrome pbm.
18340
183412007-05-13 Chong Yidong <cyd@stupidchicken.com>
18342
18343 * xterm.c (XTread_socket): Revert last change.
18344
183452007-05-12 Chong Yidong <cyd@stupidchicken.com>
18346
18347 * image.c (pbm_load): Correctly check image size for greyscale pbm.
18348
18349 * xterm.c (XTread_socket): Yet Another Uncaught X Error Crash (YAUXEC).
18350
183512007-05-07 Stefan Monnier <monnier@iro.umontreal.ca>
18352
18353 * editfns.c (Ftranspose_regions): Yet another int/Lisp_Object
18354 mixup (YAILOM).
18355
183562007-05-07 Andreas Schwab <schwab@suse.de>
18357
18358 * keymap.c (Flookup_key): Fix typo in last change.
18359
183602007-05-07 Stefan Monnier <monnier@iro.umontreal.ca>
18361
18362 * keymap.c (Fdefine_key, Flookup_key): Only do the 0x80->meta_modifier
18363 mapping for unibyte strings.
18364
183652007-05-01 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
18366
18367 * macmenu.c (mac_dialog_show): Apply 2007-04-27 change for xmenu.c.
18368 (Fx_popup_dialog) [MAC_OSX]: Likewise.
18369
183702007-04-29 Richard Stallman <rms@gnu.org>
18371
18372 * insdel.c (replace_range): For undo, record insertion first.
18373
183742007-04-29 Andreas Schwab <schwab@suse.de>
18375
18376 * lisp.h (VECSIZE): Use OFFSETOF.
18377
183782007-04-29 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
18379
18380 * xdisp.c (try_window_reusing_current_matrix): Fix number of
18381 disabled lines.
18382
183832007-04-28 Richard Stallman <rms@gnu.org>
18384
18385 * lread.c (read_escape): In a string, \s is always space.
18386
183872007-04-27 Jan Djärv <jan.h.d@swipnet.se>
18388
18389 * xmenu.c (xdialog_show): Call Fredisplay before showing the dialog.
18390
18391 * gtkutil.c (xg_update_menubar, create_menus): Create empty
18392 submenu for menu bar items.
18393
18394See ChangeLog.10 for earlier changes.
18395
18396;; Local Variables:
18397;; coding: utf-8
18398;; add-log-time-zone-rule: t
aac0c6e3
MR
18399;; End:
18400
76b6f707 18401 Copyright (C) 2007, 2008, 2009 Free Software Foundation, Inc.
aac0c6e3
MR
18402
18403 This file is part of GNU Emacs.
18404
18405 GNU Emacs is free software: you can redistribute it and/or modify
18406 it under the terms of the GNU General Public License as published by
18407 the Free Software Foundation, either version 3 of the License, or
18408 (at your option) any later version.
18409
18410 GNU Emacs is distributed in the hope that it will be useful,
18411 but WITHOUT ANY WARRANTY; without even the implied warranty of
18412 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
18413 GNU General Public License for more details.
18414
18415 You should have received a copy of the GNU General Public License
18416 along with GNU Emacs. If not, see <http://www.gnu.org/licenses/>.
18417
18418;; arch-tag: dfb6ad96-1550-4905-9e53-d2059ee84c40