(init_atimer): Also clear stopped_atimers.
[bpt/emacs.git] / src / ChangeLog
CommitLineData
91f68422
CY
12009-04-29 Ulrich Mueller <ulm@gentoo.org>
2
3 * lread.c (Vread_circle): New variable.
4 (read1): Disable recursive read if Vread_circle is nil.
5
24b34550
KH
62009-04-29 Kenichi Handa <handa@m17n.org>
7
8 * fontset.h (set_default_ascii_font): Delete extern.
9
10 * fontset.c (set_default_ascii_font): Delete this unused function.
11
12 * frame.c (x_set_font): When ARG is a font-object, check if the
13 font-object matches with the ASCII font-spec of the frame's
14 fontset. If not, create a new fontset for the frame.
15
77bf07e1
AS
162009-04-28 Andreas Schwab <schwab@linux-m68k.org>
17
18 * fns.c (Flocale_info): Protect vector from GC during decoding.
19
20 * process.c (Fstart_process): Protect argv strings from GC during
21 encoding.
22
2c55aacf
AS
232009-04-27 Andreas Schwab <schwab@linux-m68k.org>
24
25 * sysdep.c: Include <ctype.h>.
26
b892d3c9
DR
272009-04-27 David Reitter <david.reitter@gmail.com>
28
29 * nsfont.m (nsfont_open): remove unused variable shrink.
30 Remove commented-out code.
31
9d0644c4
JB
322009-04-26 Johan Bockgård <bojohan@gnu.org>
33
34 * keyboard.c (syms_of_keyboard) <input-decode-map>: Doc fix.
35
b7053016
JR
362009-04-25 Jason Rumney <jasonr@gnu.org>
37
38 * w32font.c (clear_cached_metrics): Remove, unused since 2008-08-02.
39
4e8231f3
YM
402009-04-25 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
41
42 * fringe.c (init_fringe_bitmap) [HAVE_X_WINDOWS && WORDS_BIG_ENDIAN]:
43 Swap bytes in short integer if fringe bitmap width > 8.
44
493dcf2c
KH
452009-04-23 Kenichi Handa <handa@m17n.org>
46
47 * xfaces.c (Fx_list_fonts): If a font size is specified in
48 PATTERN, set it in returned scalable fonts.
49
401e9e57
CY
502009-04-22 Chong Yidong <cyd@stupidchicken.com>
51
708e05dc
CY
52 * keyboard.c (Fset_input_meta_mode): Doc fix.
53
54 * dispnew.c (Fsend_string_to_terminal): Doc fix.
55
56 * data.c (Fterminal_local_value, Fset_terminal_local_value): Doc
57 fixes.
58
59 * coding.c (Fterminal_coding_system): Doc fix.
60
61 * xfns.c (Fx_display_grayscale_p, Fx_display_pixel_width)
62 (Fx_display_pixel_height, Fx_display_planes)
63 (Fx_display_color_cells, Fx_server_max_request_size)
64 (Fx_server_vendor, Fx_server_version, Fx_display_screens)
65 (Fx_display_mm_height, Fx_display_mm_width)
66 (Fx_display_backing_store, Fx_display_visual_class)
67 (Fx_display_save_under, Fx_close_connection, Fx_synchronize): Doc
68 fixes, replacing "terminal id" with "terminal object".
69 (check_x_display_info): Handle terminal objects instead of
70 terminal ids.
71
401e9e57
CY
72 * term.c (Ftty_display_color_p, Ftty_display_color_cells)
73 (Ftty_type, Fcontrolling_tty_p, Ftty_no_underline, Fsuspend_tty)
fdc496e7
CY
74 (Fresume_tty, Vsuspend_tty_functions, Vresume_tty_functions): Doc
75 fixes, replacing "terminal id" with "terminal object".
401e9e57 76
df80c7f0
KH
772009-04-21 Kenichi Handa <handa@m17n.org>
78
5a8f12af 79 * font.c (font_load_for_lface): Cancel previous change (bug#2994).
c0a6070d 80 (font_score): Check AVGWIDTH too.
908567ef 81
df80c7f0
KH
82 * coding.c (decode_coding_utf_16): Reduce charbuf_end for the
83 worst case.
84 (decode_coding_emacs_mule, decode_coding_iso_2022)
85 (decode_coding_sjis, decode_coding_big5, decode_coding_charset):
86 Likewise.
87
705af33f
JR
882009-04-19 Jason Rumney <jasonr@gnu.org>
89
90 The following changes fix Bug#3005 for wide glyphs on each platform,
b71ac3dd 91 without reintroducing Bug#1258 for stretch glyphs.
705af33f
JR
92
93 * xterm.c (x_draw_bar_cursor): Limit cursor width differently for
94 BAR_CURSOR and HBAR_CURSOR. Calculate width of HBAR_CURSOR using
95 get_phys_cursor_geometry.
96
b71ac3dd 97 * w32term.c (x_draw_bar_cursor): Limit cursor width differently
705af33f
JR
98 for BAR_CURSOR and HBAR_CURSOR. Calculate width of HBAR_CURSOR
99 using get_phys_cursor_geometry.
100
101 * nsterm.m (ns_draw_window_cursor): HBAR_CURSOR width already
102 correctly calculated.
103
dc2933eb
JD
1042009-04-19 Jan Djärv <jan.h.d@swipnet.se>
105
106 * gtkutil.c (xg_tool_bar_menu_proxy, update_frame_tool_bar): Use
107 G_CALLBACK instead of GTK_SIGNAL_FUNC which is deprecated.
108 (xg_initialize): Use g_type_class_ref instead of gtk_type_class which
109 is deprecated.
110
973e7849
AS
1112009-04-18 Andreas Schwab <schwab@linux-m68k.org>
112
113 * font.c (font_put_frame_data): Use xfree instead of free.
114
314d66f4
JB
1152009-04-17 Juanma Barranquero <lekktu@gmail.com>
116
117 * w32font.c (Qja, Qko): Remove declarations.
118 (syms_of_w32font): Don't DEFSYM them.
119
cf702558
CY
1202009-04-17 Chong Yidong <cyd@stupidchicken.com>
121
122 * font.c (Qja, Qko): Move definitions here from ftfont.c.
123
124 * font.h (Qja, Qko): Extern them.
125
126 * ftfont.c (Qja, Qko): Remove declarations.
127
128 * xfont.c (Qja, Qko): Remove declarations.
129
b50504f5
KH
1302009-04-17 Kenichi Handa <handa@m17n.org>
131
bde25748
KH
132 * editfns.c (Ftranslate_region_internal): Use Fconcat to make a
133 string from a vector to handle Latin-1 characters correctly.
134
b50504f5
KH
135 * ftfont.c (ftfont_pattern_entity): Return a newly allocated
136 entity even if the cache hits.
137
f4646fff
AS
1382009-04-16 Andreas Schwab <schwab@linux-m68k.org>
139
140 * search.c (boyer_moore): Use zero as marker value for a possible
6340c70e 141 match instead of depending on overflow behavior. (Bug#2844)
f4646fff 142
e7deaab0
AS
143 * search.c: Use EMACS_INT for buffer positions. Add prototypes.
144 * lisp.h: Adjust prototypes.
145
0a0e7d49
CY
1462009-04-16 Chong Yidong <cyd@stupidchicken.com>
147
148 * keyboard.c (adjust_point_for_property): Disable 2009-02-12
149 change (Bug#3003).
150
3c908a57
KH
1512009-04-16 Kenichi Handa <handa@m17n.org>
152
bd0af90d
KH
153 * xfont.c (xfont_has_char): Special handling of `ja' and `ko'
154 adstyle.
155
156 * xftfont.c (xftfont_has_char): Special handling of `ja' and `ko'
157 adstyle.
158
159 * ftfont.c (Qja, Qko): Don't make them static.
160 (enum ftfont_cache_for): New enum.
161 (fc_charset_table): Undo the previous change.
162 (ftfont_get_latin1_charset): Delete it.
163 (ftfont_pattern_entity): Check cache by ftfont_lookup_cache. Set
164 FONT_SIZE_INDEX of the entity to 0 for a scalable font. For a
165 non-scarable font, try to get AVERAGE_WIDTH.
166 (ftfont_lookup_cache): Argument FOR-FACE is changed to CACHE_FOR.
167 Change ft_face_cache from a list of a hash-table. Don't check
168 `ja' and `ko' adstyle here.
169 (ftfont_get_fc_charset): Call ftfont_lookup_cache with
170 FTFONT_CACHE_FOR_CHARET.
171 (ftfont_get_charset): Undo the previous change.
172 (ftfont_open): Call ftfont_lookup_cache with
173 FTFONT_CACHE_FOR_FACE.
174 (ftfont_close): Likewise.
175 (ftfont_has_char): Special handling of `ja' and `ko' adstyle.
176
177 * font.c (font_sort_entites): Change the meaning of the arg
178 BEST-ONLY. Don't optimize for VEC of lenght 1.
179 (font_select_entity): Just return the value of font_sort_entites.
180
181 * xfaces.c (merge_face_vectors): Reflect font properties in
182 to[LFACE_FONT_INDEX] to the other face attributes. Don't call
183 font_clear_prop if a face attribute doesn't change.
184
3c908a57
KH
185 * charset.h (charset_ksc5601): Extern it.
186
187 * charset.c (charset_ksc5601): New variable.
188 (Fdefine_charset_internal): Set charset_ksc5601.
189 (init_charset_once): Initialize charset_ksc5601 to -1.
190
d65859c3
DN
1912009-04-15 Dan Nicolaescu <dann@ics.uci.edu>
192
193 * fileio.c (history_delete_duplicates): Remove unused declaration.
194
195 * callint.c (history_delete_duplicates): New declaration.
196 (Fcall_interactively): Remove command history duplicates when
197 history_delete_duplicates is true.
198
3ba010e5
EZ
1992009-04-14 Eli Zaretskii <eliz@gnu.org>
200
201 * buffer.c (syms_of_buffer) <line-spacing>: Doc fix.
202
06f19b91
KH
2032009-04-14 Kenichi Handa <handa@m17n.org>
204
205 * font.c (Ffont_info): Fix docstring. Fix the second element of
206 the returned value (bug#2949).
207
2cce8bfc
CY
2082009-04-14 Chong Yidong <cyd@stupidchicken.com>
209
210 * xdisp.c (Vwrap_prefix, Vline_prefix): Reflow docstrings.
211
d156542d
KH
2122009-04-14 Kenichi Handa <handa@m17n.org>
213
214 * xfont.c (xfont_has_char): The font has C if C is ASCII and the
215 encoding charset is ascii_compatible.
216
217 * charset.c (Fdefine_charset_internal): Make charset
218 ascii-compatible if the method is CHARSET_METHOD_OFFSET, the
219 code_offset is 0, and covers all ASCII characters.
220
86fa089e
SM
2212009-04-13 Stefan Monnier <monnier@iro.umontreal.ca>
222
223 * nsselect.m (symbol_to_nsstring, clean_local_selection_data)
224 (ns_string_to_pasteboard_internal):
225 * nsmenu.m (process_dialog):
226 * nsimage.m (ns_load_image): Use SDATA and ASET where appropriate.
227 * nsfont.m (nsfont_open): Use XHASH to make it compile with LISP_UNION.
228 * lisp.h (Fx_load_color_file): Declare.
229
a8a3728b
KH
2302009-04-13 Kenichi Handa <handa@m17n.org>
231
232 * font.c (font_delete_unmatched): Preserve the order of list
233 elements.
234 (font_select_entity): Suppress the code to optimize for the same
235 kind of fonts.
236 (font_load_for_lface): Get a font that supports at least ASCII
237 characters.
238
239 * ftfont.c (Qja, Qko): New variables.
240 (fc_charset_table): Delete uniquifier data for iso8859-1.
241 (ftfont_get_latin1_charset): New function.
242 (get_adstyle_property): New function.
243 (ftfont_pattern_entity): Set FONT_ADSTYLE_INDEX of entity for
244 bitmap fonts.
245 (ftfont_lookup_cache): Handle the case that KEY is a font-entity.
246 Delete iso-8859-1 range from the charset of fonts whose adstyle is
247 `ko' or `ja'.
248 (ftfont_get_fc_charset): Call ftfont_lookup_cache with ENTITY.
249 (ftfont_get_charset): For iso8859-1, call
250 ftfont_get_latin1_charset.
251 (ftfont_list): Don't refuse a font spec with non-nil `adstyle'
252 property.
253 (ftfont_open): Call ftfont_lookup_cache with ENTITY.
254 (syms_of_ftfont): DEFSYM Qja and Qko.
255
483670b5
KH
2562009-04-09 Kenichi Handa <handa@m17n.org>
257
12b55765
KH
258 * charset.c (map_charset_chars): For a charset of `superset'
259 method, fix calculation of code range.
260
483670b5
KH
261 * font.c (font_put_extra): If VAL is nil, delete the slot for PROP
262 from the list of extra properties.
263 (font_clear_prop): Be sure to delete `:name' font property.
264
57d3b93b
KH
2652009-04-08 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
266
b4b2c2ca
YM
267 * dispnew.c (redraw_overlapping_rows): Fix detection of
268 overlapping for topmost and bottommost rows.
269
57d3b93b
KH
270 * ftfont.c (ftfont_text_extents): Fix calculation of
271 metrics->descent.
272
472c3609
JR
2732009-04-06 Jason Rumney <jasonr@gnu.org>
274
275 * frame.c (x_set_font): Avoid C99 mid-block variable declaration.
276
ab193662
KH
2772009-04-06 Kenichi Handa <handa@m17n.org>
278
279 * ftxfont.c (ftxfont_draw_backgrond): Fix args to XFillRectangle.
280
281 * xftfont.c (xftfont_open): Fix setting font->underline_thickness.
282
0c26f026
KH
2832009-04-06 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
284
285 * ftfont.c (ftfont_open): Fix checking of the return value of
286 FT_Load_Char. Fix setting font->underline_thickness.
287
e173bbce
CY
2882009-04-04 Chong Yidong <cyd@stupidchicken.com>
289
290 * terminal.c (Fterminal_name, Fdelete_terminal, Fterminal_name)
291 (Fterminal_parameters, Fterminal_parameter)
292 (Fset_terminal_parameter): In doc string, refer to terminal
293 objects rather than terminal ids.
294
693a2698
EZ
2952009-04-04 Eli Zaretskii <eliz@gnu.org>
296
297 * dosfns.c (system_process_attributes) [SYSTEM_MALLOC]: Don't call
298 ret_lim_data. (Bug#2867)
299
d5221487
CY
3002009-04-03 Chong Yidong <cyd@stupidchicken.com>
301
302 * term.c (produce_stretch_glyph): Reduce width of stretch glyphs
303 so they don't get wider than the window, matching 2006-01-23
304 change to the partner function in xdisp.c (Bug#2800).
305
223509a3
KH
3062009-04-03 Kenichi Handa <handa@m17n.org>
307
308 * print.c (print_object): Make each lowest sub_char_table start a
309 new line (Bug#2866).
310
74fcd0b1
KH
3112009-04-02 Kenichi Handa <handa@m17n.org>
312
313 * fontset.c (fontset_font): Record no-font when a fontset
314 explicitly tells not to try another font-specs.
315
c542407d
SM
3162009-03-30 Pierre Poissinger <pierre.poissinger@gmail.com> (tiny change)
317
318 * charset.c (map_charset_for_dump): Add missing UNGCPRO.
319
e3869731
KH
3202009-03-30 Kenichi Handa <handa@m17n.org>
321
d8d2f142
KH
322 * fontset.c (fontset_from_font): Specify only registry in a
323 font-spec for all characters supported by that registry.
324
e3869731
KH
325 * ftfont.c: Fix previous change. Define ftfont_variation_glyphs
326 even if HAVE_M17N_FLT is not defined.
327
5da5f805
CY
3282009-03-29 Sebastian Rose <sebastian_rose@gmx.de> (tiny change)
329
330 * ftfont.c: Conditionalize prototyping and use of
331 ftfont_variation_glyphs.
332
ab226c50
SM
3332009-03-28 Stefan Monnier <monnier@iro.umontreal.ca>
334
9628fed7
SM
335 * frame.c (delete_frame): Work around compiler bug.
336
337 * editfns.c (general_insert_function): Adjust to insdel.c changes.
338 * insdel.c (prepare_to_modify_buffer, signal_before_change):
339 Some more EMACS_INT.
340 * lisp.h (copy_text, count_size_as_multibyte): Fix last change.
341
342 * xdisp.c (dump_glyph): Fix typo.
343
ae19ba7c
SM
344 * insdel.c (move_gap, move_gap_both, gap_left, gap_right)
345 (adjust_markers_gap_motion, adjust_markers_for_delete)
346 (adjust_markers_for_insert, adjust_point)
347 (adjust_markers_for_replace, make_gap_larger, make_gap_smaller)
348 (make_gap, copy_text, count_size_as_multibyte, insert)
349 (insert_and_inherit, insert_before_markers)
350 (insert_before_markers_and_inherit, insert_1)
351 (count_combining_before, count_combining_after, insert_1_both)
352 (insert_from_string, insert_from_string_before_markers)
353 (insert_from_string_1, insert_from_gap, insert_from_buffer)
354 (insert_from_buffer_1, adjust_after_replace)
355 (adjust_after_replace_noundo, adjust_after_insert, replace_range)
356 (replace_range_2, del_range, del_range_1, del_range_byte)
357 (del_range_both, del_range_2, modify_region)
358 (prepare_to_modify_buffer, signal_before_change)
359 (signal_after_change, Fcombine_after_change_execute): Use EMACS_INT
360 for buffer positions and sizes.
361 * lisp.h: Adjust prototypes accordingly.
362
363 * fileio.c (adjust_markers_for_delete): Move declaration to lisp.h.
364 (non_regular_inserted, non_regular_nbytes, read_non_regular)
365 (Finsert_file_contents): Use EMACS_INT for buffer positions.
366
ab226c50
SM
367 * fileio.c (Finsert_file_contents): Don't limit size to INT_MAX/4.
368
46dfb8fb
JD
3692009-03-27 Jan Djärv <jan.h.d@swipnet.se>
370
371 * frame.c (x_set_font): If the fullscreen property is non-nil, adjust
372 lines and columns so we keep the same pixel height and width.
373
374 * xterm.c (handle_one_xevent): Call x_handle_net_wm_state if
375 the property _NET_WM_STATE has changed.
46dfb8fb
JD
376 (x_handle_net_wm_state): New function to update frame parameter
377 fullscreen.
378 (x_term_init): Initialize atoms for _NET_WM_STATE.
379
380 * xterm.h (struct x_display_info): Add atoms for _NET_WM_STATE.
381
d347e494
SM
3822009-03-27 Kevin Ryde <user42@zip.com.au>
383
384 * keyboard.c (tty_read_avail_input): Don't treat a -1 return from
385 Gpm_GetEvent as an error that justifies closing the filedescriptor.
386 * term.c (close_gpm): Get the filedescriptor as a (new) parameter.
387 (Fgpm_mouse_stop): Pass that new parameter.
388 * termhooks.h (close_gpm): Adjust prototype.
389
84db11d6
SM
3902009-03-26 Stefan Monnier <monnier@iro.umontreal.ca>
391
c95a5008
SM
392 * lisp.h (Fx_focus_frame): Declare.
393
84db11d6
SM
394 * callint.c (Fcall_interactively): For '^' just delegate the work to
395 handle-shift-selection.
396 (syms_of_callint): Move declaration of shift-select-mode to simple.el.
397
0a1958d6
CY
3982009-03-24 Chong Yidong <cyd@stupidchicken.com>
399
0bfdff23
CY
400 * editfns.c (Ffloat_time): Doc fix (Bug#2768).
401
0a1958d6
CY
402 * data.c (Qinteractive_form): New variable.
403 (Finteractive_form): Use it.
404
405 * eval.c (Fcommandp): Use Qinteractive_form.
406
58aec0d6
JR
4072009-03-24 Jason Rumney <jasonr@gnu.org>
408
409 * fileio.c (Fsubstitute_in_file_name): Always work on a copy.
410 Calculate total size precisely. Decode environment variables
411 before substituting. (Bug#38)
412
553dd618
KH
4132009-03-24 Kenichi Handa <handa@m17n.org>
414
415 * font.c (find_font_encoding): Return Qnil for unsupported
639239cf 416 encoding (Bug#2722).
553dd618 417
c39ea606
JD
4182009-03-23 Jan Djärv <jan.h.d@swipnet.se>
419
420 * gtkutil.c (xg_display_open): Assign a value to gdpy_def, check
421 that gdpy is set.
422
bc9b2b5e
AM
4232009-03-22 Alan Mackenzie <acm@muc.de>
424
425 * callint.c (Finteractive): Clarify the doc string - even
426 promptless elements need \n separators.
427
9f995a76
JR
4282009-03-22 Jason Rumney <jasonr@gnu.org>
429
430 * w32term.c (syms_of_w32term): Doc fix for
431 x-use-underline-position-properties.
432
22749e9a
EZ
4332009-03-21 Eli Zaretskii <eliz@gnu.org>
434
435 * w32.c (getpwuid): Change argument type to unsigned.
436 (struct w32_id): Change type of `rid' member to unsigned.
437 (w32_cached_id, w32_add_to_cache, get_name_and_id): Change type of
438 argument ID to unsigned. All callers changed.
439 (getuid, geteuid, getgid, getegid): Change return type to unsigned.
440
e00553bf
EZ
4412009-03-20 Eli Zaretskii <eliz@gnu.org>
442
443 * editfns.c (Fuser_uid, Fuser_real_uid): If UID as EMACS_INT is
444 negative, produce a float value.
445
446 * dired.c (make_uid, make_gid): New functions.
447 (Ffile_attributes): Use them to avoid negative UID and GID.
448
f761d6b6
JB
4492009-03-20 Juanma Barranquero <lekktu@gmail.com>
450
451 * keyboard.c (Fcurrent_idle_time): Reflow docstring.
452 (syms_of_keyboard) <command-hook-internal, input-method-function>:
453 Fix typos in docstrings.
454
d507f8d7
KH
4552009-03-19 Kenichi Handa <handa@m17n.org>
456
457 * fontset.c (Fset_fontset_font): When a spec of ASCII font is
f761d6b6
JB
458 changed, use font_load_for_lface to get a new font object.
459 Call free_realized_fontset after handling ASCII font change.
d507f8d7
KH
460
461 * frame.c (x_set_font): Handle the case that ARG is a cons.
462
c68845e0
GM
4632009-03-19 Glenn Morris <rgm@gnu.org>
464
465 * fileio.c (Fsubstitute_in_file_name): Doc fix.
466
bfa49dd1
CY
4672009-03-19 Chong Yidong <cyd@stupidchicken.com>
468
469 * indent.c (Fvertical_motion): Undo 2005-01-19 change (Bug#2694).
470
8458d4c1
KH
4712009-03-19 Kenichi Handa <handa@m17n.org>
472
473 * charset.c (load_charset_map_from_file): When a mapfile can't be
474 loaded, signal an error.
475
78e7d1fe
EZ
4762009-03-18 Eli Zaretskii <eliz@gnu.org>
477
478 * dired.c (Ffile_attributes): Make sure UID and GID are always
479 positive, even if the value is too large for a positive EMACS_INT.
480 Doc fix.
481
482 * editfns.c (Fuser_login_name): Support float arguments. Doc fix.
483
5da9fdfa
YM
4842009-03-18 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
485
486 * xmenu.c (xdialog_show): Move Fredisplay call ...
487 (Fx_popup_dialog): ... here.
488
7519c40d
SM
4892009-03-18 Stefan Monnier <monnier@iro.umontreal.ca>
490
491 * dired.c (file_name_completion): Disable the first optimization just
492 installed, since it is not implemented correctly.
493
2cd298e2
SM
4942009-03-17 Stefan Monnier <monnier@iro.umontreal.ca>
495
496 * dired.c (file_name_completion): Check completion-ignored-extensions
c95a5008 497 only if the entry can affect bestmatch.
2cd298e2
SM
498 Stop the search early, as Ftry_completion already does.
499
48d37adf
CY
5002009-03-17 Chong Yidong <cyd@stupidchicken.com>
501
e10c9c93 502 * minibuf.c (Vminibuffer_completion_confirm): Doc fix.
48d37adf 503
9286b16a
CY
5042009-03-15 Chong Yidong <cyd@stupidchicken.com>
505
506 * keyboard.c (parse_menu_item): Don't display remappings as menu
507 equivalent bindings (Bug#788).
508
f7b146dc
JR
5092009-03-15 Jason Rumney <jasonr@gnu.org>
510
511 * w32term.h (WM_EMACS_PAINT): New message.
512 * w32term.c (w32_read_socket): Use it instead of WM_PAINT.
513 * w32fns.c (w32_wnd_proc): Change WM_PAINT to WM_EMACS_PAINT
514 before passing to lisp thread. (Bug#950)
515
f761d6b6 5162009-03-14 David Reitter <david.reitter@gmail.com>
c6c62e78 517
d93f9575
CY
518 * nsterm.m (ns_shutdown_properly, -terminate): Remove global state
519 variable as it was never reset.
520 (ns_term_init): Remove initialization of Lisp-settable defaults
521 and ns_expand_space.
522 (-setPanelFromDefaultValues): Remove ns_expand_space.
523 (-showPreferencesWindow): Send new KEY_NS_SHOW_PREFS key.
524 * nsfont.m (nsfont_open): Remove ns_expand_space, assume -0.5
c6c62e78
DR
525 i.e. no additional spacing, similar to Carbon port.
526
d93f9575
CY
527 * nsterm.h: Define KEY_NS_SHOW_PREFS key.
528 * nsfns.m (ns-popup-prefs-panel): Remove.
c6c62e78 529
305018ec
JD
5302009-03-14 Jan Djärv <jan.h.d@swipnet.se>
531
532 * sound.c (alsa_configure): Remove call to deprecated
533 snd_pcm_sw_params_set_xfer_align.
534
f761d6b6 5352009-03-14 Stephen Berman <stephen.berman@gmx.net>
4a02423f
JD
536
537 * gtkutil.c (xg_tool_bar_callback): Set focus back to the frame
538 after clicking in a detached tool bar.
539 (xg_tool_bar_proxy_callback): Remove call to Fx_focus_frame.
540
46e722a9
SM
5412009-03-13 Stefan Monnier <monnier@iro.umontreal.ca>
542
348db3dd
SM
543 * fontset.c (fontset_from_font, Ffontset_info): YAILOM (Yet another
544 int/Lisp_Object mixup).
46e722a9 545
a3d16f39
KH
5462009-03-13 Kenichi Handa <handa@m17n.org>
547
548 * fontset.c (Ffontset_info, check_fontset_name): New arg frame.
fe24f56a 549 Handle NAME nil and t correctly. Callers changed.
a3d16f39
KH
550 (font_def_arg, add_arg, from_arg, to_arg): Delete them.
551 (set_fontset_font): Change ARG to a vector. Handle range_list in
552 ARG correctly.
553 (Fset_fontset_font): Fix the case that TARGET is both a script
fe24f56a 554 name and charset name. Adjust the arg to set_fontset_font for
a3d16f39
KH
555 the above change.
556 (fontset_from_font): Fix previous change.
fe24f56a 557 (Ffontset_info): Adjust for the 2008-07-09 change of fontset
a3d16f39
KH
558 entry. If FONTSET is the default fontset, don't set the extra
559 slot of the returning char-table.
560
b066e6b6
JB
5612009-03-12 Juanma Barranquero <lekktu@gmail.com>
562
563 * nsfns.m (Fx_close_connection): Doc fix.
564 (Fns_do_applescript): Reflow docstring.
565 (Fns_hide_others, Fns_hide_emacs, Fns_convert_utf8_nfd_to_nfc)
566 (Fx_display_pixel_width, Fx_display_pixel_height)
567 (Fns_display_usable_bounds, Fx_display_planes, Fx_show_tip):
568 Fix typos in docstrings.
569 (Fns_set_alpha): Fix typos in error messages.
570
d472514e 5712009-03-12 David Reitter <david.reitter@gmail.com>
d6220c13 572
d472514e 573 * termhooks.h [HAVE_NS]: Define NS_NONKEY_EVENT to be used for
d6220c13
DR
574 non-key system events on NS. Formerly, NON_ASCII_KEYSTROKE_EVENT
575 were used for such events.
576
d472514e
JB
577 * nsterm.m (newFrame, openFile, fulfillService, changeFont)
578 (toggleToolbar, performDragOperation, runHelp): Use it.
d6220c13 579
d472514e 580 * keyboard.c (parse_menu_item) [HAVE_NS]: Treat new event like
d6220c13
DR
581 NON_ASCII_KEYSTROKE_EVENT, but set used_mouse_menu.
582
fb930676
KH
5832009-03-11 Kenichi Handa <handa@m17n.org>
584
ff85581a
KH
585 * font.h (font_open_by_spec): Extern it.
586
c50b7e98
KH
587 * font.c (font_open_by_spec): New function.
588 (font_open_by_name): Use font_open_by_spec.
589
fb930676
KH
590 * frame.c (x_set_font): When ARG is a font-object, don't alter the
591 fontset of the frame.
592
593 * fontset.c (Fset_fontset_font): When a font for ASCII is changed,
594 modify the default font of frames that use this fontset.
595 (num_auto_fontsets): New variable.
596 (fontset_from_font): Use num_auto_fontsets to decide a fontset
597 name. Be sure to set FONTSET_ASCII to the correct font name.
598 (update_auto_fontset_alist): New function.
599
df4e8455
JB
6002009-03-11 Juanma Barranquero <lekktu@gmail.com>
601
602 * makefile.w32-in: Update dependencies.
603
0a375797
AR
6042009-03-06 Adrian Robert <Adrian.B.Robert@gmail.com>
605
606 * nsfns.m (syms_of_nsfns): Remove Qbuffered.
607
61313fa3
SM
6082009-03-10 Stefan Monnier <monnier@iro.umontreal.ca>
609
610 * buffer.c (Fswitch_to_buffer): Revert part of 2008-10-21's change.
611
b55103fb
CY
6122009-03-10 Chong Yidong <cyd@stupidchicken.com>
613
614 * lread.c (Feval_buffer): Doc fix.
615
dde2559c
KH
6162009-03-09 Kenichi Handa <handa@m17n.org>
617
618 * charset.c (Qfile_name_handler_alist): Extern it.
619 (load_charset_map_from_file): Temporarily bind
620 `file-name-handler-alist' to nil while calling openp. (Bug#2435)
621
df4e8455 6222009-03-06 Aaron Ecay <aaronecay@gmail.com> (tiny change)
340e08a4 623
47f588bb
GM
624 * nsterm.m (ns_draw_vertical_window_border): Draw 1 pixel wide,
625 not two, and use NSRectFill instead of NSDrawGroove. (Bug#2352)
340e08a4 626
4ddf94bd
AR
6272009-03-06 Adrian Robert <Adrian.B.Robert@gmail.com>
628
4c9bdfc2
AR
629 * nsterm.m: Include <signal.h> for SIGTERM used in ns_term_shutdown.
630 (x_set_window_size): Change back to calculated method of setting
631 toolbar height under Cocoa. (Bug#2546)
4ddf94bd
AR
632 (EmacsView-windowWillUseStandardFrame:defaultFrame:): New method.
633 (EmacsView-drawRect:): Completely shortcircuit if ns_in_resize.
634
fe41ae9e
AR
635 * nsfns.m (ns_appkit_version_int): Fix typo in the version macro.
636
4c9bdfc2
AR
637 * nsmenu.m (EmacsMenu-addItemWithWidgetValue:): Don't add
638 accelerator in parens under GNUstep.
639
825d0875
KH
6402009-03-06 Kenichi Handa <handa@m17n.org>
641
642 These changes are to detect incorrect composition sequence without
f3b3be74 643 looking ahead the source. (Bug#2370)
825d0875
KH
644
645 * coding.h: Include "composite.h".
646 (enum compisition_state): New enum.
647 (struct compisition_status): New struct.
648 (struct iso_2022_spec): New member cmp_status.
649 (struct emacs_mule_spec): New struct.
650 (struct coding_system): New members ctext_extended_segment_len and
651 embedded_utf_8. Change the union member
652 spec.emacs_mule_full_support to spec.emacs_mule.
653
654 * coding.c (CODING_ISO_CMP_STATUS): New macro.
655 (CODING_ISO_EXTSEGMENT_LEN, CODING_ISO_EMBEDDED_UTF_8): New macros.
98a326f7 656 (MAX_ANNOTATION_LENGTH): Define to 5.
825d0875
KH
657 (ADD_COMPOSITION_DATA): New arg nbytes.
658 (emacs_mule_char): New arg cmp_status.
659 (DECODE_EMACS_MULE_COMPOSITION_CHAR): Delete it.
660 (DECODE_EMACS_MULE_COMPOSITION_RULE_20): New arg c.
661 (DECODE_EMACS_MULE_COMPOSITION_RULE_21): New arg c.
662 (DECODE_EMACS_MULE_21_COMPOSITION): Delete the arg c.
663 (DECODE_EMACS_MULE_20_RELATIVE_COMPOSITION): Likewise.
664 (DECODE_EMACS_MULE_20_RULEBASE_COMPOSITION): Likewise.
665 (DECODE_EMACS_MULE_COMPOSITION_START): New macro.
666 (EMACS_MULE_COMPOSITION_END): New macro.
667 (emacs_mule_finish_composition): New function.
668 (EMACS_MULE_MAYBE_FINISH_COMPOSITION): New macro.
669 (decode_coding_emacs_mule): Avoid long looking ahead while
670 handling composition.
671 (DECODE_COMPOSITION_RULE): Argument changed to rule and nbytes.
672 (ENCODE_COMPOSITION_RULE): New macro.
673 (finish_composition): New function.
674 (MAYBE_FINISH_COMPOSITION): Call finish_composition.
675 (DECODE_COMPOSITION_START): New implementation.
676 (DECODE_COMPOSITION_END): Likewise.
677 (STORE_COMPOSITION_RULE): New macro.
678 (decode_coding_iso_2022): Avoid long looking ahead while handling
679 composition, CTEXT extended segment, and embedded UTF-8.
680 (setup_coding_system): For a coding of type iso-2022, reset
681 CODING_ISO_EXTSEGMENT_LEN (coding) and
682 CODING_ISO_EMBEDDED_UTF_8 (coding).
683 (get_translation): Delete arguments last_block, from_nchars,
684 to_nchars. Callers changed.
685 (produce_chars): Don't modify charbuf. Adjusted for the change of
686 get_translation.
98a326f7 687 (produce_composition): Adjust for the new annotation sequence.
825d0875 688 (handle_composition_annotation): Likewise.
98a326f7 689 (consume_chars): Adjust for the change of get_translation.
825d0875 690
ccbc4452
AR
6912009-03-05 Adrian Robert <Adrian.B.Robert@gmail.com>
692
4ddf94bd 693 * nsterm.m (ns_select): Shortcircuit if reentrant call. (Bug#2564)
ccbc4452 694
988a7ddb
KH
6952009-03-05 Kenichi Handa <handa@m17n.org>
696
697 * font.c (font_select_entity): New function.
698 (font_find_for_lface): Use font_select_entity to select a font.
699
700 * fontset.c (fontset_find_font): If a font found without
a8a3728b 701 restricting to the characters C doesn't support C, try to find a
988a7ddb
KH
702 font with C restriction.
703
98a326f7 7042009-03-04 Nikolaj Schumacher <me@nschum.de>
2f462d73 705
be1bce46 706 * nsfont.m (nsfont_draw): Compare ns_antialias_text against lisp value.
2f462d73 707
10ea2b82
JR
7082009-03-04 Jason Rumney <jasonr@gnu.org>
709
2c93b248 710 * w32fns.c (w32_wnd_proc): Only ignore IME messages for the
4891ba1d 711 characters that have already been read. (Bug#2569)
2c93b248 712
10ea2b82
JR
713 * image.c (xbm_read_bitmap_data, png_load, svg_load_image):
714 Log an error message if check_image_size failed.
715 (xpm_load_image, pbm_load, jpeg_load, tiff_load, gif_load)
4891ba1d 716 (gs_load): Mention max-image-size in size error message. (Bug#2560)
10ea2b82 717
71a0c011
EZ
7182009-03-02 Eli Zaretskii <eliz@gnu.org>
719
720 * callproc.c (Fcall_process): Bind inhibit-modification-hooks to t
721 when decoding process output.
722
2f63bba8
RS
7232009-03-01 Richard M Stallman <rms@gnu.org>
724
725 * m/mips.h (DATA_SEG_BITS, XUINT, XSET): Definitions disabled.
726
727 * emacs.c (gdb_data_seg_bits) [USE_LSB_TAG]: Make it 0.
728
0a9564cb
EZ
7292009-02-28 Eli Zaretskii <eliz@gnu.org>
730
731 * coding.c (decode_coding_utf_8, decode_coding_utf_16)
732 (decode_coding_emacs_mule, decode_coding_iso_2022)
733 (encode_coding_iso_2022, decode_coding_sjis, decode_coding_big5)
734 (decode_coding_raw_text, decode_coding_charset)
735 (setup_coding_system, decode_eol, decode_coding, consume_chars):
736 Honor inhibit-eol-conversion. (Bug #2186)
737
449148b3
JR
7382009-02-28 Jason Rumney <jasonr@gnu.org>
739
740 * coding.c (detect_coding_charset): If not checking latin extra,
741 fail on characters between 0x80 and 0xA0. (Bug#2354)
742
a4aee864
EZ
7432009-02-28 Eli Zaretskii <eliz@gnu.org>
744
745 * coding.c (detect_coding_charset): Fix change from 2008-10-21.
2a1573ff 746 Also, check iso-latin-*, not only iso-8859-*. (Bug#2497)
a4aee864 747
d88bee5a
GM
7482009-02-27 Glenn Morris <rgm@gnu.org>
749
750 * callint.c (Finteractive): Doc fix.
751
a808f22d
KH
7522009-02-27 Kenichi Handa <handa@m17n.org>
753
754 * lread.c (read_escape): Signal an error for invalid \UXXXXXXXX.
755
caf8d60c
CY
7562009-02-27 Chong Yidong <cyd@stupidchicken.com>
757
758 * font.c (font_style_to_value): Set value for unknown symbols to
759 100 instead of 255.
b61137ea
CY
760 (weight_table, slant_table, width_table): Treat "unspecified" as
761 the default value.
caf8d60c 762
1a0de25c
JB
7632009-02-26 Juanma Barranquero <lekktu@gmail.com>
764
765 * fileio.c (Fnext_read_file_uses_dialog_p): Fix typo in docstring.
766
8fc45744
JB
7672009-02-25 Juanma Barranquero <lekktu@gmail.com>
768
107bd7d1
JB
769 * lread.c (Fload): Stop checking Vloads_in_progress and signal
770 error as soon as a recursive load is detected.
8fc45744 771
f097e223
AR
7722009-02-24 Adrian Robert <Adrian.B.Robert@gmail.com>
773
774 * nsterm.m (ns_ring_bell): Convert rect to window coordinates
775 before caching.
776
8810a12f
KH
7772009-02-24 Kenichi Handa <handa@m17n.org>
778
779 * fontset.c (fontset_find_font): Fix the condition for checking
780 unavailable font.
781
2c7d1565
GM
7822009-02-24 Glenn Morris <rgm@gnu.org>
783
784 * xfaces.c (Finternal_set_font_selection_order): Remove leading
785 whitespace that confuses documentation.
786
a20878b6
MB
7872009-02-23 Miles Bader <miles@gnu.org>
788
789 * process.c (Flist_system_processes, Fprocess_attributes)
790 (syms_of_process): Rename `system-process-attributes' to
791 `process-attributes'.
792
b3b58c01
AS
7932009-02-22 Andreas Schwab <schwab@linux-m68k.org>
794
1b3b981b
AS
795 * coding.h (struct coding_system): Make safe_charsets a pointer to
796 unsigned char.
797 * coding.c (CODING_ISO_REQUEST): Check for safe_charsets content
798 being 255.
799 (SAFE_CHARSET_P): Likewise.
800 (setup_iso_safe_charsets): Properly setup safe_charsets.
801 (Fdefine_coding_system_internal): Likewise.
802 (setup_coding_system): Likewise. Remove unneeded casts.
803 (detect_coding_iso_2022): Compare Viso_2022_charset_list with
804 CODING_ATTR_CHARSET_LIST, not CODING_ATTR_SAFE_CHARSETS. Remove
805 unneeded casts.
806
b3b58c01
AS
807 * insdel.c (del_range_2): Don't modify gap contents when called
808 from decode_coding_object. (Bug#1809)
809
0b6f228c
CY
8102009-02-21 Chong Yidong <cyd@stupidchicken.com>
811
812 * data.c (syms_of_data): Define Qfont_spec, Qfont_entity, and
813 Qfont_object.
814 (Ftype_of): Recognize font objects.
815
816 * lisp.h: Define Qfont_spec, Qfont_entity, Qfont_object extern.
817
818 * font.c (Qfont_spec, Qfont_entity, Qfont_object): Definitions
819 moved to data.c.
820
52f8870b
AR
8212009-02-20 Adrian Robert <Adrian.B.Robert@gmail.com>
822
823 * nsterm.m (x_make_frame_invisible): Unset async_visible,
824 async_iconified. Based on a patch by Christian Lynbech
825 <christian.lynbech@tieto.com>.
826 (EmacsView-windowDidMiniaturize:): Unset async_visible.
827
7087d5e9
GM
8282009-02-20 Glenn Morris <rgm@gnu.org>
829
830 * syntax.c (Fskip_chars_forward): Fix doc typo.
831
41d2ceef
CY
8322009-02-20 Chong Yidong <cyd@stupidchicken.com>
833
834 * keymap.c (Fkeymap_parent): Doc fix (Bug#2391).
835
1a3b7ca6
CY
8362009-02-19 Chong Yidong <cyd@stupidchicken.com>
837
838 * xfns.c (Fx_create_frame): Give Xft driver a higher priority.
839
73cce38d
KH
8402009-02-19 Kenichi Handa <handa@m17n.org>
841
842 * coding.c (detect_coding): Preserve coding->mode.
2bc550cb 843 Don't overflow coding->carryover. (Bug#2370)
73cce38d 844
a51092ee
DN
8452009-02-18 Dan Nicolaescu <dann@ics.uci.edu>
846
847 * m/ibmrs6000.h (ADDR_CORRECT): Restore, removed by mistake on 2008-07-23.
848
c423ecca
KH
8492009-02-18 Kenichi Handa <handa@m17n.org>
850
851 * font.c (font_check_otf_features): Fix handling of `nil' element.
852 (Ffont_spec): Describe :lang and :otf in the docstring.
853
4c1958f4
AS
8542009-02-16 Andreas Schwab <schwab@suse.de>
855
856 * coding.c (Fcheck_coding_systems_region): Fix test for unibyte
857 string.
858
5704f39a
KH
8592009-02-16 Kenichi Handa <handa@m17n.org>
860
861 * coding.c (Fcheck_coding_systems_region): Fix typo; Qt -> Qnil.
a057d86a 862 (Bug#1723)
5704f39a 863
8f0085aa
CY
8642009-02-14 Chong Yidong <cyd@stupidchicken.com>
865
a057d86a 866 * dispextern.h (struct iterator_stack_entry): New line_wrap member.
8f0085aa
CY
867
868 * xdisp.c (push_it, pop_it): Save and restore line_wrap.
869 (handle_line_prefix): Suppress wrapping of wrap prefixes.
870
aff01dd9
EZ
8712009-02-14 Eli Zaretskii <eliz@gnu.org>
872
873 * msdos.c (MAX_SCREEN_BUF): New macro.
874 (IT_write_glyphs): Make screen_buf[] always be MAX_SCREEN_BUF-long.
875 Encode the entire run of glyphs sharing the same face, instead of
876 doing that one glyph at a time (fixes a bug with displaying
877 double-size characters).
878
ba301db3
AR
8792009-02-13 Adrian Robert <Adrian.B.Robert@gmail.com>
880
881 * nsfns.m (ns-read-file-name): BLOCK_INPUT while showing dialog.
882
883 * nsmenu.m (pop_down_menu): Check popup_activated_flag.
884 (ns_popup_dialog, EmacsDialogPanel-runDialogAt:): Let
a057d86a 885 pop_down_menu do the cleanup work as it is always called. (Bug#2154)
ba301db3
AR
886
887 * nsfont.m (nsfont_make_fontset_for_font): For now, don't try to
a057d86a 888 set fontset font for "mathematical-" sub-scripts. (Bug #2218)
ba301db3 889
51d861de
SM
8902009-02-12 Stefan Monnier <monnier@iro.umontreal.ca>
891
892 * keyboard.c (adjust_point_for_property): Allow stopping betwen two
893 invisible areas.
894
7fed8996
JR
8952009-02-12 Jason Rumney <jasonr@gnu.org>
896
631ea4fb
JR
897 * w32font.c (check_face_name): Check for fake helv. (Bug#2275)
898 (add_font_entity_to_list): Call check_face_name even when family
899 is unspecified.
900
cb4a3e42
JR
901 * w32term.c (x_display_pixel_height, x_display_pixel_width):
902 Release DC when finished. Use NULL window to refer to desktop.
631ea4fb 903 (w32_term_init): Use NULL window to refer to desktop. (Bug#460)
cb4a3e42 904
7fed8996 905 * w32font.c (add_font_entity_to_list): Fix check for substituted
631ea4fb 906 raster fonts. (Bug#2219)
7fed8996 907
895416e3
KH
9082009-02-12 Kenichi Handa <handa@m17n.org>
909
910 * composite.c (MAX_AUTO_COMPOSITION_LOOKBACK): New macro.
911 (composition_gstring_width): Fix handling of LGLYPH_YOFF.
912 (autocmp_chars): Use fast_looking_at. Don't compose more
1dacf998 913 characters than MAX_COMPOSITION_COMPONENTS.
895416e3
KH
914 (find_automatic_composition): While looking forward and backward,
915 check static composition. Fix where to stop looking forward.
916 (composition_adjust_point): Fix checking of static composition.
917 (Fcomposition_get_gstring): Pay attention to
1dacf998 918 MAX_COMPOSITION_COMPONENTS.
895416e3
KH
919
920 * lisp.h (fast_looking_at): Extern it.
921
922 * search.c (fast_looking_at): New function.
923
51d861de 924 * term.c (encode_terminal_code): Adjust for the change of
895416e3
KH
925 <struct glyph>.u.cmp.to.
926 (append_composite_glyph): Likewise.
927
51d861de 928 * xdisp.c (fill_gstring_glyph_string): Adjust for the change of
895416e3
KH
929 <struct glyph>.u.cmp.to. Check if the glyph belongs to the same
930 composition.
51d861de 931 (append_composite_glyph): Adjust for the change of
895416e3
KH
932 <strcut glyph>.u.cmp.to.
933
8510724d
JB
9342009-02-11 Juanma Barranquero <lekktu@gmail.com>
935
936 * casetab.c (init_casetab_once):
937 * coding.c (ALLOC_CONVERSION_WORK_AREA):
938 * font.c (font_update_lface):
939 * fontset.c (Fnew_fontset):
940 * ftfont.c (ftfont_drive_otf):
941 * xfont.c (xfont_open):
942 * xftfont.c (xftfont_get_xft_draw): Remove spurious semicolons.
943
294fa707
SM
9442009-02-11 Stefan Monnier <monnier@iro.umontreal.ca>
945
946 * fileio.c (Fwrite_region): !NILP -> CONSP.
947
b5bfebec
AS
9482009-02-10 Andreas Schwab <schwab@suse.de>
949
950 * process.c (send_process): Properly relocate pointer into data
adab88bd 951 when using encoded data. (Bug#2272)
b5bfebec 952
cb84a2be
KH
9532009-02-08 ARISAWA Akihiro <ari@mbf.sphere.ne.jp>
954
955 * coding.c (detect_coding_charset): Fix previous change.
956
89e09428
JR
9572009-02-08 Jason Rumney <jasonr@gnu.org>
958
959 * w32fns.c (w32_hide_hourglass): Handle case where frame
adab88bd 960 disappeared while hourglass was displayed. (Bug #2193)
89e09428 961
4470a277
AS
9622009-02-07 Andreas Schwab <schwab@suse.de>
963
964 * unexelf.c (unexec): Fix error message.
965
3175b12a
AR
9662009-02-07 Adrian Robert <Adrian.B.Robert@gmail.com>
967
968 * nsterm.m (EmacsApp-sendEvent:): Defer NSApplicationDefined event
adab88bd 969 when modal window is active. (Bug #2152)
3175b12a
AR
970 (applicationShouldTerminate:): Remove now-unneeded while loop
971 around NSRunAlertPanel.
972
973 * nsmenu.m (popupSession): New file-global variable.
974 (pop_down_menu): End the popupSession before closing dialog.
975 (ns_popup_dialog): BLOCK_INPUT around dialog presentation.
976 (EmacsDialogPanel-runDialogAt:): Don't place window (superfluous),
977 don't query NSApp for events (just sleep instead).
978
8434d0b8
EZ
9792009-02-07 Eli Zaretskii <eliz@gnu.org>
980
51d861de
SM
981 * coding.c (syms_of_coding) <translation-table-for-input>:
982 Modify doc string to discourage use for character code unification.
8434d0b8 983
aa82edfd
CY
9842009-02-07 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
985
986 * atimer.c (run_timers): Update pending_atimers.
987
2d283c7c
CY
9882009-02-06 Chong Yidong <cyd@stupidchicken.com>
989
eb306cab
CY
990 * image.c (svg_load_image): Fix last change.
991
2d283c7c
CY
992 * xfns.c (Fx_create_frame): Signal an error if no font is
993 found (Bug#2147).
994
4d8e170e
JB
9952009-02-05 Juanma Barranquero <lekktu@gmail.com>
996
997 * character.c (syms_of_character) <script-representative-chars>:
998 Fix typo in docstring.
999
c96169a0
AR
10002009-02-04 Adrian Robert <Adrian.B.Robert@gmail.com>
1001
1002 * nsmenu.m (pop_down_menu): New function.
1003 (ns_popup_dialog): Call it on unwind.
1004 (EmacsDialogPanel-runDialogAt:): Check popup_activated_flag and
1005 call timer_check() (Bug#2154).
1006 (EmacsMenu-menuNeedsUpdate:): Don't call ns_update_menu if
1007 handling_signal is set.
1008 (EmacsMenu-fillWithWidgetValue:): Set submenu title.
1009
1010 * config.in: Get rid of COCOA_EXPERIMENTAL_CTRL_G
1011
1012 * s/darwin.h: Same and NO_SOCK_SIGIO as well.
1013
1014 * nsterm.m (ns_read_socket): Same and don't set handling_signal.
1015
51d861de
SM
1016 * keyboard.c (poll_for_input_1, handle_async_input):
1017 Set handling_signal under HAVE_NS.
c96169a0 1018
aacd8ba1
GM
10192009-02-04 Glenn Morris <rgm@gnu.org>
1020
1021 * fileio.c (Fwrite_region): Doc fix (mention annotate-functions).
1022
4cb75c4b
KH
10232009-02-04 Kenichi Handa <handa@m17n.org>
1024
1025 * Makefile.in (composite.o): Depends on frame.h and termhooks.h.
1026
1027 * charset.c (Fchar_charset): New optional arg restriction.
1028
1029 * coding.h (coding_system_charset_list): Extern it.
1030
1031 * coding.c (coding_system_charset_list): New function.
1032
1033 * composite.c: Include coding.h and termhooks.h.
1034 (composition_gstring_p): Fix for the terminal case.
1035 (composition_gstring_width): Likewise.
1036 (fill_gstring_body): Likewise.
1037 (autocmp_chars): For terminal, call Fcomposition_get_gstring with
1038 the frame.
1039 (composition_compute_stop_pos): Adjust cmp_it->stop_pos if point
1040 is within a composition.
867d4bb3 1041 (Fcomposition_get_gstring): Fix the terminal case.
4cb75c4b
KH
1042
1043 * term.c (encode_terminal_code): Fix handling of composition.
1044 (produce_composite_glyph): For static composition, get pixel_width
1045 from struct composition.
1046
826ba17e
AS
10472009-02-02 Andreas Schwab <schwab@suse.de>
1048
1049 * unexelf.c (unexec): Handle unaligned bss offset.
1050
8ad093db
AR
10512009-02-01 Adrian Robert <Adrian.B.Robert@gmail.com>
1052
1053 * nsterm.m (ns_read_socket): Copy 2009-01-29 and 2009-01-30
1054 XT,w32read_socket changes to ns_read_socket.
d0a76a6e 1055
8ad093db
AR
1056 * keyboard.c (handle_interrupt): Don't call
1057 quit_throw_to_read_char() under NS.
d0a76a6e 1058
8ad093db
AR
1059 * blockinput.h: Remove NS-specific code.
1060
4d18a7a2
DN
10612009-01-30 Dan Nicolaescu <dann@ics.uci.edu>
1062
db878925
DN
1063 * dispnew.c (window_change_signal): Don't try to get the size of a
1064 suspended tty frame.
1065 * term.c (Fresume_tty): Resize if the size has changed while the
1066 tty was suspended.
1067
4d18a7a2
DN
1068 * alloc.c (mark_stack): Properly conditionalize previous change.
1069
8984df7c
JB
10702009-01-30 Juanma Barranquero <lekktu@gmail.com>
1071
1072 * w32inevt.c (w32_console_read_socket) [SYNC_INPUT]:
1073 * w32term.c (w32_read_socket) [SYNC_INPUT]:
1074 Remove; this code is not used on Windows.
1075
75f4f1ac
EZ
10762009-01-30 Eli Zaretskii <eliz@gnu.org>
1077
1078 * coding.c (detect_eol, decode_eol): Handle text with DOS-style
1079 EOLs that also has stray ^M characters.
1080
07a1e794
JB
10812009-01-30 Juanma Barranquero <lekktu@gmail.com>
1082
1083 * atimer.c (run_timers, alarm_signal_handler):
1084 * keyboard.c (pending_signals, handle_async_input, init_keyboard):
1085 * w32inevt.c (w32_console_read_socket):
1086 * w32term.c (w32_read_socket):
1087 * xterm.c (XTread_socket): Use "#ifdef SYNC_INPUT" where appropriate.
1088
a8b11cc9
CY
10892009-01-30 Chong Yidong <cyd@stupidchicken.com>
1090
1091 * callproc.c (Vtemp_file_name_pattern): Remove DEFVAR_LISP.
1092 Initialize it as a relative filename pattern.
1093 (init_callproc): Don't initialize Vtemp_file_name_pattern here.
1094 (Fcall_process_region): Simplify temp file creation using
1095 temporary-file-directory.
1096
c279587b
EZ
10972009-01-29 Eli Zaretskii <eliz@gnu.org>
1098
1099 * msdos.c: Rename pending_signals to msdos_pending_signals.
1100 (sig_suspender, sigprocmask): Adjust.
1101
a8fe3242
CY
11022009-01-29 Chong Yidong <cyd@stupidchicken.com>
1103
1104 * keyboard.c (pending_signals): New var.
1105 (poll_for_input, input_available_signal, init_keyboard): Set it.
1106 (process_pending_signals): New function.
1107
1108 * lisp.h (QUIT): Check pending_signals instead of
1109 interrupt_input_pending. Use process_pending_signals.
1110
51d861de 1111 * atimer.c (run_timers, alarm_signal_handler): Update pending_signals.
a8fe3242 1112
51d861de 1113 * process.c (wait_reading_process_output): Use process_pending_signals.
a8fe3242
CY
1114
1115 * sysdep.c (emacs_write): Use process_pending_signals.
1116
1117 * xterm.c (XTread_socket): Update pending_signals.
1118
1119 * w32term.c (w32_read_socket): Update pending_signals.
1120
1121 * w32inevt.c (w32_console_read_socket): Update pending_signals.
1122
6570a1c4
KH
11232009-01-29 Kenichi Handa <handa@m17n.org>
1124
1125 * xftfont.c (xftfont_has_char): New function.
1126 (syms_of_xftfont): Register xftfont_has_char in xftfont_driver.
1127
d72a4afa
AR
11282009-01-29 Adrian Robert <Adrian.B.Robert@gmail.com>
1129
1130 * nsterm.h (EmacsPrefsController.cursorBlinkSlider): Only define
1131 under GNUstep.
1132 (ns_query_color): New declaration.
1133
1134 * nsterm.m (ns_confirm_quit): New variable.
1135 (ns_set_default_prefs, syms_of_nsterm, ns_term_init): Initialize it.
1136 (EmacsApp-applicationShouldTerminate:): Use it.
1137 (EmacsPrefsController): Let user set it.
1138 (ns_query_color): New function.
1139 (ns_defined_color): Use it.
1140 (ns_initialize): Drop.
1141 (ns_term_init): Add two lines from ns_initialize(), and set
1142 input_interrupt_mode to nil.
1143
1144 * image.c (svg_load_image): Don't right-shift background RGB when
6af84d77 1145 obtained from FRAME_BACKGROUND_PIXEL. Under HAVE_NS use ns_query_color.
d72a4afa 1146
9fe78804
KH
11472009-01-28 Kenichi Handa <handa@m17n.org>
1148
1149 * fontset.c (font_for_char): Use assq_no_quit, not assoc_no_quit.
f088b054
KH
1150 (fontset_get_font_group): Remember that no font-group is specified
1151 for C.
9fe78804 1152
fa57de36
CY
11532009-01-27 Chong Yidong <cyd@stupidchicken.com>
1154
930600e9
CY
1155 * fns.c (concat): Check for string overflow (bug#1787).
1156
fa57de36
CY
1157 * undo.c (undo_limit, undo_strong_limit, Vundo_outer_limit):
1158 Quadruple undo limits (bug#1501).
1159
7179ce7b
KH
11602009-01-27 Kenichi Handa <handa@m17n.org>
1161
1162 * ftfont.c (ftfont_has_char): If the arg FONT is a font-object,
1163 directly use GT_Get_Char_index.
1164
1165 * xftfont.c (struct xftfont_info): New member `index'.
1166
1167 * fontset.c (font_for_char): Use assq_no_quit, not assoc_no_quit.
51d861de 1168 (Ffontset_font): Adjust for the change of fontset entry.
7179ce7b 1169
5be8fcc0
CY
11702009-01-26 Kenichi Handa <handa@m17n.org>
1171
1172 * fontset.c (fontset_find_font): Fix handling of non-cons return
1173 value of fontset_get_font_group.
1174 (fontset_font): Revert last change.
1175
19ae3e61
JR
11762009-01-26 Jason Rumney <jasonr@gnu.org>
1177
1178 * w32font.c (w32font_list_internal): Return quickly if registry is
1179 unknown. Simplify final return.
1180 (add_font_entity_to_list): Break complex logic down into more
1181 manageable chunks. Move unknown registry check to
1182 w32font_list_internal.
1183
8612b71a
AR
11842009-01-25 Adrian Robert <Adrian.B.Robert@gmail.com>
1185
1186 Changes to remove Feval calls from GUI under NS.
1187
d8038940
JB
1188 * nsterm.h: Move KEY_NS_... definitions here from nsterm.m.
1189 Add NS_TOGGLE_TOOLBAR, NS_PUT_WORKING_TEXT, NS_UNPUT_WORKING_TEXT.
8612b71a
AR
1190 Remove NS_INSERT_WORKING_TEXT, NS_DELETE_WORKING_TEXT.
1191
1192 * nsterm.m: Move KEY_NS_... definitions to nsterm.h.
1193 (EmacsView-toggleToolbar:): Use KEY_NS_TOGGLE_TOOLBAR.
1194 (EmacsView-setMarkedText:,-deleteWorkingText:): Use NS_TEXT_EVENT
1195 instead of NON_ASCII_KEYSTROKE_EVENT.
1196 (EmacsApp-terminate:): Use KEY_NS_POWER_OFF instead of Feval.
1197 (EmacsApp-applicationShouldTerminate:): Query user.
1198 (EmacsPreferencesController-runHelp:): Use KEY_NS_INFO_PREFS
1199 instead of Feval.
1200
1201 * termhooks.h (NS_TEXT_EVENT): New event type under HAVE_NS.
1202
1203 * keyboard.c (kbd_buffer_get_event): Check for it.
1204 (keys_of_keyboard): Define lispy keys for
1205 ns-put/unput-working-text.
1206
1207 * nsmenu.m (ns_popup_dialog): Resync window setting with X and W32
1208 versions.
1209 (EmacsDialog-runDialogAt:): Use NSModalPanelRunLoopMode.
1210
6288ae55
CY
12112009-01-25 Chong Yidong <cyd@stupidchicken.com>
1212
1213 * dispnew.c (buffer_posn_from_coords): Use Fset_buffer instead of
64cc3cf6 1214 setting current_buffer directly. (Bug#2044)
6288ae55 1215
289e7f8f
CY
12162009-01-24 Chong Yidong <cyd@stupidchicken.com>
1217
5ce87308 1218 * fontset.c (fontset_font): If we know there is no font, don't do
d8038940 1219 any work. (Bug#1952, bug#1990).
5ce87308 1220
64cc3cf6 1221 * font.c (font_parse_xlfd): Handle patterns of length < 2. (Bug#1802)
289e7f8f 1222
b3243e6f
AR
12232009-01-23 Adrian Robert <Adrian.B.Robert@gmail.com>
1224
1225 * emacs.c (main): Do fork+exec under --daemon in Cocoa.
d900b2af
AR
1226 (ns_no_defaults): New declaration.
1227 (main): Use it.
e0d2e69a 1228
d900b2af 1229 * nsterm.h (ns_no_defaults): New declaration.
e0d2e69a 1230
d900b2af 1231 * nsfns.m (x_get_string_resource): Don't read when ns_no_defaults.
e0d2e69a 1232
d900b2af
AR
1233 * nsterm.m (ns_no_defaults): New variable.
1234 (ns_initialize): Don't read defaults when ns_no_defaults.
1235 (EmacsView-readSelectionFromPasteboard:)
1236 (writeSelectionToPasteboard:types:): New stubbed-out methods for
d8038940 1237 NSServicesRequests protocol. (Bug#1435)
27521ca6
AR
1238 (ns_dumpglyphs_stretch): New function.
1239 (ns_draw_glyph_string): Use it, parallel Yamamoto Mitsuharu change
d8038940 1240 of 2008-11-15 to other terms. (Bug#615)
b3243e6f 1241
e0d2e69a
AR
1242 * nsimage.m (setPixmapData:): Set to ignore image DPI.
1243
3ac71f5d
CY
12442009-01-23 Giorgos Keramidas <keramida@freebsd.org> (tiny change)
1245
1246 * alloc.c (mark_stack): Use "flushw" instead of "ta 3" assembly
1247 call for Sparc64.
1248
3fe53a83
AR
12492009-01-22 Adrian Robert <Adrian.B.Robert@gmail.com>
1250
1251 * nsfns.m:
1252 * nsgui.h:
1253 * nsmenu.m:
1254 * nsselect.m:
1255 * nsterm.h:
1256 * nsterm.m: Remove '23' comments that indicated code added during
1257 update from emacs-20 -> emacs-23.
1258
10f87c6f 12592009-01-22 Adrian Robert <Adrian.B.Robert@gmail.com>
a3b53a85
AR
1260
1261 * nsterm.m (EmavsView-keyDown:): Treat nil as Qnone for
3a88a825 1262 ns_alternate_modifier. (Bug#1217)
a3b53a85 1263
c7cef62d
AR
1264 * nsmenu.m (EmacsMenu-parseKeyEquiv:, addItemWithWidgetValue:):
1265 Display all shortcuts, including those w/o super modifier.
1266
575fb8bd
AR
1267 * nsfns.m (ns-read-file-name): Fix typo in assignment statement.
1268
918b848b
CY
12692009-01-22 Chong Yidong <cyd@stupidchicken.com>
1270
1271 * fileio.c (Vwrite_region_post_annotation_function)
1272 (Vwrite_region_annotation_buffers): New vars.
1273 (build_annotations_unwind): Just reset
1274 Vwrite_region_annotation_buffers.
1275 (Fwrite_region): Initialize Vwrite_region_annotation_buffers.
1276 Call write-region-post-annotation-function.
1277 (build_annotations): Add to Vwrite_region_annotation_buffers if
1278 buffer changes.
1279
a39e2539
AR
12802009-01-21 Adrian Robert <Adrian.B.Robert@gmail.com>
1281
1282 * nsterm.h (EmacsApp-setAppleMenu:): Conditionalize more correctly on
1283 Tiger.
51d861de
SM
1284 * nsfns.m (ns_do_applescript):
1285 Conditionalize typeUTF16ExternalRepresentation on Tiger.
a39e2539 1286
35ed44db
AR
12872009-01-21 Wolfgang Lux <wolfgang.lux@gmail.com> (tiny change)
1288
1289 * nsterm.m (EV_TRAILER): Always use emacsframe for frame_or_window.
1290
cbe0b5bf
AR
12912009-01-21 Adrian Robert <Adrian.B.Robert@gmail.com>
1292
1293 * nsmenu.m (NSMENUPROFILE): Change #if style.
4c7077c3 1294
6049d3a0
AR
1295 * nsterm.h (EmacsPrefsController): Add -setPanelFromDefaultValues.
1296
1297 * nsterm.m (x_set_frame_alpha): Add prototype.
a9b4df69
AR
1298 (ns_fake_keydown, EmacsView-keyUp:): New variable and function to
1299 handle Ctrl-tab. (Bug#1841)
1300 (ns_get_color): Use unsigned long long for scanned hex string value.
1301 (ns_term_shutdown): Abort on non SIGTERM signals.
e889fa06 1302 (EmacsPrefsController-setDefaultFont:,-setColors:): Raise the frame.
b71ac3dd 1303 (EmacsPrefsController-setPanelFromDefaultValues): New function.
3a88a825 1304 (EmacsPrefsController-resetToDefaults:): Use it. (Bug#1801)
35ed44db 1305 (ns_font_to_xlfd, ns_fontname_to_xlfd): Remove, unused.
d3810c21 1306 (ns_defined_color): Fix settings of the XColor variable fields:
3a88a825 1307 red,green,blue scale to 2-byte, pixel's parts to 1-byte. (Bug#1663)
cbe0b5bf 1308
d3810c21 1309 * nsimage.m (EmacsImage+allocInitFromFile:): Set to ignore image
3a88a825 1310 DPI. (Bug#1316)
d3810c21
AR
1311 (EmacsImage-setPixelAtX:Y:toRed:green:blue:alpha:): Fix color
1312 values in onTiger section.
4c7077c3 1313
e301e634
CY
13142009-01-19 Chong Yidong <cyd@stupidchicken.com>
1315
7f82490b
CY
1316 * xfaces.c (Finternal_set_lisp_face_attribute, Fx_list_fonts):
1317 Check return value of font_spec_from_name.
64cc3cf6 1318 (Fx_list_fonts): Doc fix. (Bug#1951)
7f82490b
CY
1319
1320 * font.c (font_spec_from_name): Return Qnil if font name could not
1321 be parsed.
1322 (font_parse_name): Treat a `?' character as part of an XLFD.
1323
e301e634
CY
1324 * fns.c (Fsubstring): Doc fix.
1325
1c0db158
KH
13262009-01-19 Kenichi Handa <handa@m17n.org>
1327
51d861de 1328 * ftfont.c (ftfont_lookup_cache): Check the return value of FcFontList.
1c0db158
KH
1329 (ftfont_list): Likewise.
1330
acf20901
JB
13312009-01-18 Juanma Barranquero <lekktu@gmail.com>
1332
fff4e459
JB
1333 * dbusbind.c (Fdbus_register_signal):
1334 * process.c (conv_sockaddr_to_lisp):
1335 * w32fns.c (Fw32_battery_status): Use empty_unibyte_string.
1336
acf20901
JB
1337 * callproc.c (Fgetenv_internal): Doc fix.
1338
e7abcdfb
CY
13392009-01-16 Chong Yidong <cyd@stupidchicken.com>
1340
1341 * xfns.c (x_make_gc): Don't allocate stipple member for gc_values;
1342 it is not even used.
1343
b60861e6
GM
13442009-01-16 Glenn Morris <rgm@gnu.org>
1345
1346 * font.c (Ffont_variation_glyphs): Silence compiler.
1347
8db52afe
JB
13482009-01-15 Juanma Barranquero <lekktu@gmail.com>
1349
1350 * sound.c (SOUND_WARNING): Use _snprintf, for MSVC compatibility.
1351 Reported by David Robinow <drobinow@gmail.com>.
1352
4cddb209
KH
13532009-01-15 Kenichi Handa <handa@m17n.org>
1354
51d861de 1355 * coding.c (detect_coding_system): Fix handling of null_byte_found.
4cddb209 1356
f247f67b
JR
13572009-01-14 Jason Rumney <jasonr@gnu.org>
1358
1359 * frame.c (x_set_font): Always store a font to the font parameter,
fff4e459 1360 never a fontset. (Bug#1562)
f247f67b 1361
f56a4450
KH
13622009-01-14 Kenichi Handa <handa@m17n.org>
1363
1364 * coding.c (TWO_MORE_BYTES): New macro.
fff4e459 1365 (detect_coding_utf_16): Use TWO_MORE_BYTES instead of ONE_MORE_BYTE.
f56a4450 1366
4e99855e
CY
13672009-01-13 Chong Yidong <cyd@stupidchicken.com>
1368
1369 * font.c (font_clear_prop): If clearing the family, clear the font
1370 width index too.
1371
fff4e459 1372 * xfaces.c (Finternal_set_lisp_face_attribute): Revert last change.
4e99855e 1373
24f01470
JB
13742009-01-12 Juanma Barranquero <lekktu@gmail.com>
1375
1376 * sound.c [WINDOWSNT] (SOUND_WARNING): New macro.
1377 (do_play_sound): Use it. Don't pass a hardcoded buffer size to mci
1378 functions, use sizeof.
1379
a41240a3
MR
13802009-01-12 Martin Rudalics <rudalics@gmx.at>
1381
1382 * keyboard.c (read_char): Fix case where last_nonmenu_event
1383 returned a bad value with submenus. (Bug#447)
1384
944636b8
CY
13852009-01-12 Chong Yidong <cyd@stupidchicken.com>
1386
1387 * xfaces.c (Finternal_set_lisp_face_attribute): If setting the
1388 family, clear the font width index too.
1389
0dad7c6f
JR
13902009-01-11 Jason Rumney <jasonr@gnu.org>
1391
1392 * keyboard.c (cmd_error_internal): Exit when errors occur before
1393 frame creation and not in daemon mode. (Bug#1836)
1394
7c2363af
CY
13952009-01-10 Chong Yidong <cyd@stupidchicken.com>
1396
1397 * xdisp.c (pos_visible_p): When iterator stops on the last glyph
1398 of a display vector, backtrack.
1399 (try_window_reusing_current_matrix): Check glyph type before
1400 referencing charpos member.
1401
97b1b294
EZ
14022009-01-10 Eli Zaretskii <eliz@gnu.org>
1403
1404 Fix Bug #876:
1405
1406 * coding.c (inhibit_null_byte_detection): New variable.
1407 (detect_coding, detect_coding_system): Don't pay attention to null
1408 bytes if inhibit_null_byte_detection is non-zero.
51d861de 1409 (syms_of_coding) <inhibit-null-byte-detection>: Declare and document.
97b1b294
EZ
1410 <inhibit-iso-escape-detection>: Doc fix.
1411
4624b6e3
JR
14122009-01-09 Jason Rumney <jasonr@gnu.org>
1413
1414 * w32font.c (add_font_entity_to_list): Don't report unknown
fff4e459 1415 Windows charset as any unrecognized registry. (Bug#1548)
4624b6e3
JR
1416 Only report Unicode Plane 2 fonts as unicode-sip.
1417
323b840c
CY
14182009-01-09 Chong Yidong <cyd@stupidchicken.com>
1419
51d861de
SM
1420 * xfaces.c (Fx_font_family_list): Delete function.
1421 Move compatibility version to faces.el.
323b840c 1422
51d861de 1423 * font.c (Ffont_family_list): Return a list of strings, not symbols.
323b840c 1424
eba7400d
MR
14252009-01-09 Martin Rudalics <rudalics@gmx.at>
1426
1427 * frame.c (x_set_frame_parameters): Remember requested value for
1428 fullscreen before it's reset by the parameter handler.
1429
4b09796d
GM
14302009-01-09 Glenn Morris <rgm@gnu.org>
1431
1432 * keyboard.c (last_command_char): For clarity, rename to...
46e722a9 1433 (last_command_event): ... and update all users.
4b09796d
GM
1434 (last_input_char): For clarity, rename to...
1435 (last_input_event): ... and update all users.
1436 (last-command-char, last-input-char): Move to subr.el as aliases.
1437 * cmds.c, commands.h: Update for last_command_char rename.
1438
14ccea62
CY
14392009-01-08 Chong Yidong <cyd@stupidchicken.com>
1440
51d861de 1441 * font.c (font_open_for_lface): Handle unspecified height attribute.
14ccea62 1442
5f004711
JR
14432009-01-08 Jason Rumney <jasonr@gnu.org>
1444
1445 * w32fns.c (Vx_pointer_shape, Vx_nontext_pointer_shape)
1446 (Vx_mode_pointer_shape, Vx_window_horizontal_drag_shape)
1447 (Vx_hourglass_pointer_shape, Vx_sensitive_text_pointer_shape):
1448 Don't declare.
fff4e459 1449 (syms_of_w32fns): Don't define x-pointer-shape variable. (Bug#1485)
5f004711
JR
1450 (x_create_tip_frame) [GLYPH_DEBUG]: Enable image debugging code.
1451
b71f6f73
KH
14522009-01-07 Kenichi Handa <handa@m17n.org>
1453
50b06221 1454 * fileio.c (Finsert_file_contents): In the case of replace,
f56a4450 1455 remember the coding system used for decoding in
50b06221
KH
1456 coding_system (Bug#1039).
1457
b71f6f73 1458 * coding.c (decode_coding_utf_8): Check byte_after_cr before
79a97217 1459 breaking the loop. (Bug#870)
b71f6f73
KH
1460 (decode_coding_utf_16, decode_coding_emacs_mule)
1461 (decode_coding_iso_2022, decode_coding_sjis, decode_coding_big5)
1462 (decode_coding_charset): Likewise.
1463
56f668f7
MR
14642009-01-05 Martin Rudalics <rudalics@gmx.at>
1465
1466 * frame.c (x_set_frame_parameters): Make sure height (width) get
1467 applied when fullwidth (fullheight) is set. (Bug#1522)
1468
5da9424d
JB
14692009-01-04 Juanma Barranquero <lekktu@gmail.com>
1470
1471 * w32.c: Use 64-bit arithmetic to do FILETIME conversions. (Bug#1766)
1472 (utc_base): Declare as ULONGLONG, not long double.
1473 (convert_time_raw): Delete.
1474 (FILETIME_TO_U64, U64_TO_LISP_TIME): New macros.
1475 (initialize_utc_base): New function.
1476 (convert_time): Use FILETIME_TO_U64, initialize_utc_base.
1477 (convert_from_time_t): Use initialize_utc_base; compute result with
1478 64-bit arithmetic.
1479 (process_times): Use FILETIME_TO_U64, U64_TO_LISP_TIME.
1480
c4605e09
EZ
14812009-01-03 Eli Zaretskii <eliz@gnu.org>
1482
9acef61c 1483 * process.c (Qeuid, Qegid, Qcomm, Qstate, Qppid, Qpgrp, Qsess)
c4605e09
EZ
1484 (Qttname, Qminflt, Qmajflt, Qcminflt, Qcmajflt, Qutime, Qstime)
1485 (Qcutime, Qpri, Qnice, Qthcount, Qstart, Qvsize, Qrss, Qargs)
1486 (Quser, Qgroup, Qetime, Qpcpu, Qpmem, Qtpgid, Qcstime)
1487 [!subprocesses]: Define.
1488 (syms_of_process) [!subprocesses]: Intern and staticpro them.
1489 (Flist_system_processes, Fsystem_process_attributes)
1490 [!subprocesses]: Call list_system_processes and
1491 system_process_attributes instead of returning Qnil.
1492
9acef61c
JB
1493 * dosfns.c (system_process_attributes, list_system_processes):
1494 New functions.
c4605e09
EZ
1495
1496 * vm-limit.c (ret_lim_data) [MSDOS]: New function.
1497
1498 * sysdep.c (list_system_processes, system_process_attributes) [MSDOS]:
1499 Don't use the default (no-op) implementation.
1500
8b7d0a16
JR
15012009-01-03 Jason Rumney <jasonr@gnu.org>
1502
a6d46bc1
JR
1503 * keyboard.c (parse_modifiers_uncached): Wheel events are
1504 clicks (bug#687).
1505
8b7d0a16
JR
1506 * w32term.c (x_query_colors, x_query_color): New functions.
1507
1508 * image.c (x_to_xcolors, png_load): Eliminate W32 specific code.
1509 (svg_load_image): Cast returned pointers from dynamically loaded
1510 functions. Eliminate W32 specific code.
1511
bfe11752
DN
15122009-01-02 Dan Nicolaescu <dann@ics.uci.edu>
1513
89e2438a
DN
1514 * nsfns.m (x_set_foreground_color, x_set_background_color)
1515 (x_set_cursor_color, x_set_icon_name, x_explicitly_set_name)
1516 (x_set_title, x_set_icon_type, x_set_cursor_type): Rename to use
1517 x_ prefix instead of ns_. Update references.
1518 (syms_of_nsfns): Add a FIXME comment.
1519
1520 * nsterm.m (x_set_cursor_type): New prototype.
1521 (setValuesFromPanel): Use it instead of the old ns_ prefixed name.
1522
bfe11752
DN
1523 * sysdep.c (system_process_attributes): Provide Qtime and Qctime
1524 for Solaris instead of incorrectly providing Qutime and Qcutime.
1525
031da700
EZ
15262009-01-02 Eli Zaretskii <eliz@gnu.org>
1527
1528 * w32.c (process_times): Compute sum of utime and stime.
1529 (system_process_attributes): Add Qtime to the alist.
1530
1531 * sysdep.c (system_process_attributes): Compute Qtime and Qctime
1532 and add them to the alist.
1533
1534 * process.c (top level) <Qtime, Qctime>: New variables.
1535 (syms_of_process): staticpro them.
1536 (Fsystem_process_attributes): Add their documentation to the doc
1537 string.
1538
1539 * process.h: Declare Qtime and Qctime.
1540
df23bf08
JR
15412009-01-02 Jason Rumney <jasonr@gnu.org>
1542
9acef61c 1543 * image.c (Qgobject): New symbol.
df23bf08
JR
1544 (syms_of_image): Initialize it.
1545 (init_svg_functions): Load some functions from gobject library.
1546
5bbdf7aa
DN
15472009-01-01 Dan Nicolaescu <dann@ics.uci.edu>
1548
1549 * frame.c (make_terminal_frame): Remove redundant code and useless
1550 block.
1551
63136da6
AS
15522009-01-01 Andreas Schwab <schwab@suse.de>
1553
1554 * process.c (conv_sockaddr_to_lisp): Add workaround for
1555 getsockname bug on BSD.
1556
9ef69046
CY
15572009-01-01 Chong Yidong <cyd@stupidchicken.com>
1558
d6fafbe0
CY
1559 * xfns.c (x_create_tip_frame): Set border width of the X window.
1560
51d861de 1561 * xfaces.c (Finternal_set_lisp_face_attribute): Improve error message.
9ef69046 1562
f9c34147
JR
15632009-01-01 Jason Rumney <jasonr@gnu.org>
1564
9acef61c 1565 * w32term.c (x_new_font): Return font object, not fontset. (Bug#119)
f9c34147
JR
1566 Don't block input, as per earlier xterm.c changes.
1567
f5497e45
AR
15682008-12-31 Adrian Robert <Adrian.B.Robert@gmail.com>
1569
1570 * nsfns.m (ns_appkit_version_str): Rename from ns_appkit_version.
1571 (ns_appkit_version_int): New function.
1572 (x-server-version): Use ns_appkit_version_int and follow 21+
1573 convention of returning 3 integers.
1574
c19cab20
KH
15752008-12-30 Kenichi Handa <handa@m17n.org>
1576
1577 * character.h (CHAR_VARIATION_SELECTOR_P): New macro.
1578 (CHAR_SURROGATE_PAIR_P): New macro.
1579
1580 * font.h (struct font_driver): New member get_variation_glyphs.
1581
9acef61c 1582 * font.c (font_range): Don't require a font for a variation selector.
c19cab20
KH
1583 (Ffont_variation_glyphs): New function.
1584 (syms_of_font): Defsubr it.
1585
1586 * ftfont.c (ftfont_driver): Set the member get_variation_glyphs to
1587 ftfont_variation_glyphs.
1588 (setup_otf_gstring): New function.
1589 (ftfont_drive_otf): Use it.
1590 (ftfont_shape_by_flt): Handle variation selector.
1591 (ftfont_variation_glyphs): New function.
1592
28cd591f
MR
15932008-12-30 Martin Rudalics <rudalics@gmx.at>
1594
1595 * frame.c (Vemacs_iconified): Remove.
1596
7f714baf
JR
15972008-12-30 Jason Rumney <jasonr@gnu.org>
1598
1599 * frame.c (store_frame_param, x_get_arg): Enable newer code on
9acef61c 1600 WINDOWSNT too, as related changes have already been synced. (Bug#117)
7f714baf 1601
9d2d22ab
CY
16022008-12-30 Chong Yidong <cyd@stupidchicken.com>
1603
1604 * indent.c (Fvertical_motion): Don't advance iterator if we have
1605 reseated to the desired position.
1606
1607 * xdisp.c (move_it_to): Handle GET_FROM_STRETCH method when
1608 checking for pos match.
1609
545312c2
KH
16102008-12-30 Kenichi Handa <handa@m17n.org>
1611
1ede3eb6
KH
1612 * insdel.c (copy_text): To convert a non-ASCII char to unibyte,
1613 just get the low 8-bit of the code.
1614
545312c2
KH
1615 * font.c (font_intern_prop): Validate str as multibyte.
1616
bd7bbf29
DN
16172008-12-29 Dan Nicolaescu <dann@ics.uci.edu>
1618
31e0750e
DN
1619 * dispextern.h (struct face): Move lface and hash from the middle
1620 of bitfields.
1621
bd7bbf29
DN
1622 * Makefile.in (INTERVALS_H): Rename from INTERVAL_SRC, update all users.
1623
b5672e7c
DN
16242008-12-29 Dan Nicolaescu <dann@ics.uci.edu>
1625
1626 * Makefile.in (INTERVAL_SRC): Also depend on dispextern.h.
1627 (coding.o, dispnew.o, keymap.o, msdos.o): Depend on INTERVAL_SRC
1628 instead of intervals.h.
1629
d704470f
AS
16302008-12-26 Andreas Schwab <schwab@suse.de>
1631
1632 * keymap.c (map_keymap_char_table_item): Make a copy of KEY if it is a
1633 cons.
1634
54b33868
MR
16352008-12-26 Martin Rudalics <rudalics@gmx.at>
1636
1637 * textprop.c (Qminibuffer_prompt): New variable.
1638 (syms_of_textprop): Initialize it.
1639 * callint.c (Fcall_interactively): For `c', `k', and `K' prompt
1640 in minibuffer-prompt face. (Bug#1662)
1641
40b615d6
JR
16422008-12-25 Jason Rumney <jasonr@gnu.org>
1643
1644 * buffer.c (Fbuffer_swap_text): Use POINTER_TYPE.
1645
baae5c2d
JR
16462008-12-24 Jason Rumney <jasonr@gnu.org>
1647
1648 * ralloc.c (r_alloc_reset_variable): New function.
1649
1650 * buffer.c (Fbuffer_swap_text) [REL_ALLOC]: Reset ralloc's internal
9acef61c 1651 record of what points where. (Bug#716)
baae5c2d 1652
a9051c88
DN
16532008-12-22 Dan Nicolaescu <dann@ics.uci.edu>
1654
1655 * minibuf.c (read_minibuf): Follow the non-interactive case when
1656 running as a daemon, before detaching.
1657
8b146312
AS
16582008-12-22 Andreas Schwab <schwab@suse.de>
1659
1660 * buffer.c (init_buffer): Use realloc instead of xrealloc.
1661 * gtkutil.c (free_widget_value): Use xfree instead of free.
1662
56f2de10
MR
16632008-12-22 Martin Rudalics <rudalics@gmx.at>
1664
1665 * frame.c (delete_frame): New function derived from
1666 Fdelete_frame to handle Qnoelisp value for FORCE argument.
1667 Delete last frame iff FORCE equals Qnoelisp. (Bug#1450)
1668 (Fdelete_frame): Call delete_frame. Remove line from doc-string
1669 saying that FORCE non-nil doesn't run `delete-frame-functions'.
1670 * frame.h: Extern delete_frame.
1671 * window.c (window_loop):
1672 * terminal.c (delete_terminal):
1673 * xterm.c (x_connection_closed):
1674 * xfns.c (Fx_hide_tip):
9acef61c 1675 * w32fns.c (Fx_hide_tip): Call delete_frame instead of Fdelete_frame.
56f2de10 1676
1fc200d6
JR
16772008-12-21 Jason Rumney <jasonr@gnu.org>
1678
1679 * w32uniscribe.c (uniscribe_encode_char): Return FONT_INVALID_CHAR
1680 when character maps to .notdef character.
1681
5e252df2
SM
16822008-12-21 Stefan Monnier <monnier@iro.umontreal.ca>
1683
1684 * keyboard.c (cmd_error_internal): Don't exit in daemon mode, bug#1310.
1685
99b72cc4
JR
16862008-12-20 Jason Rumney <jasonr@gnu.org>
1687
1688 * frame.c (Fmake_terminal_frame): Raise an error when called from
9acef61c 1689 a graphical frame on Windows. (Bug#1325)
99b72cc4 1690
acc49a52
JD
16912008-12-20 Jan Djärv <jan.h.d@swipnet.se>
1692
1693 * frame.c (Fdelete_frame): Set f->menu_bar_vector to Qnil.
1694
6ea15123
CY
16952008-12-20 Chong Yidong <cyd@stupidchicken.com>
1696
1697 * minibuf.c (Fread_buffer): Doc fix.
1698
b2dab6c8
JR
16992008-12-20 Jason Rumney <jasonr@gnu.org>
1700
54ea0c87 1701 * fileio.c (Fexpand_file_name): Do not allow ../ to go beyond the
9acef61c 1702 server name in UNC paths. (Bug#719)
54ea0c87 1703
b2dab6c8 1704 * coding.c (decode_coding): Clear chars_at_source flag when using
9acef61c 1705 charbuf. (Bug#1035)
b2dab6c8 1706
6d1921be
DN
17072008-12-19 Daniel Engeler <engeler@gmail.com>
1708
1709 * sysdep.c (serial_configure): Fix typo.
1710
53934c98
DN
17112008-12-19 Dan Nicolaescu <dann@ics.uci.edu>
1712
1713 * sysdep.c: Include alloca.h.
f4f634e8
DN
1714 (system_process_attributes): Add implementation for Solaris.
1715
1716 * s/sol2-10.h (HAVE_PROCFS, _STRUCTURED_PROC): New defines.
53934c98 1717
06e111a6
DN
17182008-12-19 Dan Nicolaescu <dann@ics.uci.edu>
1719
1720 Reorganize implementation of Flist_system_processes and
1721 Fsystem_process_attributes. No functional changes.
1722 * process.c: Don't #include pwd.h, grp.h and limits.h.
1723 (Flist_system_processes): Just call list_system_processes.
1724 (Fsystem_process_attributes): Just call system_process_attributes.
1725 (procfs_list_system_processes, time_from_jiffies)
1726 (ltime_from_jiffies, get_up_time, procfs_ttyname, MAJOR, MINOR)
1727 (procfs_get_total_memory, procfs_system_process_attributes): Move ...
1728
1729 * sysdep.c: ... here. Include pwd.h, grp.h and limits.h.
1730 (list_system_processes): Rename from
1731 procfs_list_system_processes. Enclose in #ifdef HAVE_PROCFS.
1732 Provide a do nothing implementation.
1733 (system_process_attributes): Rename from
1734 procfs_list_system_processes.
1735 (ltime_from_jiffies, get_up_time, procfs_ttyname, MAJOR, MINOR)
9acef61c 1736 (procfs_get_total_memory): Enclose in #ifdef GNU_LINUX.
06e111a6
DN
1737
1738 * w32.c (list_system_processes): Rename from
1739 w32_list_system_processes.
1740 (system_process_attributes): Rename from
1741 w32_system_process_attributes.
1742
1743 * s/gnu-linux.h (LISTPROC, PROCATTR): Remove.
1744
1745 * process.h (w32_list_system_processes)
1746 (w32_system_process_attributes): Remove.
1747 (list_system_processes, system_process_attributes): New
1748 prototypes.
1749
6a705b23
KH
17502008-12-19 Kenichi Handa <handa@m17n.org>
1751
1752 * xfont.c (xfont_decode_coding_xlfd): New function.
1753 (xfont_encode_coding_xlfd): New function.
1754 (xfont_list_pattern): Decode XLFD by iso-8859-1.
1755 (xfont_list): Decode and encode XLFD by iso-8859-1.
1756 (xfont_match): Likewise.
1757 (xfont_list_family): Likewise.
1758 (xfont_open): Likewise.
1759
d66c0241 1760 * ftfont.c (ftfont_open): Generate a multibyte string if given
6a705b23
KH
1761 names are utf-8.
1762
d66c0241 1763 * xftfont.c (xftfont_open): Generate a multibyte string if given
6a705b23
KH
1764 names are utf-8.
1765
5a130941
JD
17662008-12-18 Jan Djärv <jan.h.d@swipnet.se>
1767
1768 * gtkutil.c (xg_frame_resized): Remove check if rows/columns have
1769 changed.
bfd20325
JD
1770 (xg_tool_bar_proxy_callback): Put focus on the frame after we have
1771 clicked on a detached tool bar button.
5a130941 1772
fd95644b
DN
17732008-12-18 Dan Nicolaescu <dann@ics.uci.edu>
1774
1775 * emacs.c (main): Print and error and exit when no data is read
1776 from the pipe.
1777
e6eee6ae
JR
17782008-12-17 Jason Rumney <jasonr@gnu.org>
1779
1780 * w32font.c (w32font_has_char): Always return -1.
1781
a35dd56b
KH
17822008-12-16 Kenichi Handa <handa@m17n.org>
1783
1784 * font.c (font_open_entity): Fix previous change.
1785
0e3635c2
DN
17862008-12-16 Dan Nicolaescu <dann@ics.uci.edu>
1787
1788 * process.c: Include <limits.h>.
1789
d4835507 17902008-12-16 Chetan Pandya <pandyacus@sbcglobal.net> (tiny change)
b5356c39
CY
1791
1792 * font.c (font_update_drivers): Fix mistake in reconstructing the
1793 driver list.
1794
17952008-12-16 Chong Yidong <cyd@stupidchicken.com>
1796
1797 * font.c (font_clear_cache): Fix format of font cache data.
1798
e2cbc401
CY
17992008-12-15 Chong Yidong <cyd@stupidchicken.com>
1800
1801 * xftfont.c (xftfont_open): Free Xft font pattern if
1802 XftFontOpenPattern fails.
1803
1804 * xterm.c (x_free_frame_resources): Remove extraneous call to
1805 free_frame_faces.
1806
b131d535
CY
18072008-12-13 Chong Yidong <cyd@stupidchicken.com>
1808
1809 * xterm.c (x_delete_display): Move xim_close_dpy call to
1810 x_delete_terminal.
1811 (x_delete_terminal): Call xim_close_dpy.
1812
e6df5336
JR
18132008-12-13 Jason Rumney <jasonr@gnu.org>
1814
1815 * w32font.c (intern_font_name): New function.
1816 (add_font_name_to_list, w32_enumfont_pattern_entity): Use it.
1817 (w32font_open_internal, Fx_select_font): Decode font name.
1818 (fill_in_logfont, list_all_matching_fonts): Encode font name.
1819
1820 * w32font.h (intern_font_name): Declare new function.
1821
1822 * w32uniscribe.c (add_opentype_font_name_to_list):
1823 Use intern_font_name.
1824
20d68145
CY
18252008-12-13 Chong Yidong <cyd@stupidchicken.com>
1826
9f2554de
CY
1827 * frame.c (Fdelete_frame): Call free_font_driver_list.
1828
3d9bec9a
CY
1829 * font.c (free_font_driver_list): Implement missing function.
1830
20d68145
CY
1831 * w32term.c (w32_term_init): Don't initialize the image cache
1832 here; it will be done in init_frame_faces.
1833
1834 * xterm.h (struct xim_inst_t): Definition moved from xterm.c.
1835 (struct x_display_info): Remove unused member null_pixel. New
1836 member xim_callback_data.
1837
1838 * xterm.c (struct xim_inst_t): Definition moved to xterm.h.
1839 (xim_initialize): Save pointer to callback function data.
1840 (xim_close_dpy): Free callback function data. Call XCloseIM,
1841 reverting 2008-11-04 change by David Smith.
1842 (x_term_init): Don't initialize the image cache here; it will be
1843 done in init_frame_faces. Remove ancient "null_pixel" cruft.
1844 (x_delete_display): Free x_dnd_atoms member.
1845
96f9306b
KH
18462008-12-13 Kenichi Handa <handa@m17n.org>
1847
6dec9044
JB
1848 * font.c (font_rescale_ratio): Moved from xfaces.c.
1849 Argument type changed. Handle a font-spec too.
96f9306b 1850 (font_score): Check Vface_font_rescale_alist.
6dec9044 1851 (font_open_entity): Likewise. (Bug#1547)
96f9306b
KH
1852
1853 * xfaces.c (font_rescale_ratio): Moved to font.c.
1854
8d5b4964
CY
18552008-12-13 Chong Yidong <cyd@stupidchicken.com>
1856
1857 * xfns.c (Fx_wm_set_size_hint): Check if the frame is an X frame.
1858
e6df5336
JR
18592008-12-12 Jason Rumney <jasonr@gnu.org>
1860
1861 * w32fns.c (x_display_info_for_name, Fx_open_connection): Set
1862 Vwindow_system_version to the real w32 major version.
1863
97c6058a
DN
18642008-12-12 Dan Nicolaescu <dann@ics.uci.edu>
1865
1866 * term.c (init_tty): Move setting the terminal name before the
1867 potential user: maybe_fatal.
1868
ec4e88d7
CY
18692008-12-11 Chong Yidong <cyd@stupidchicken.com>
1870
d4835507
JB
1871 * term.c (tty_free_frame_resources): Renamed from delete_tty_output;
1872 all callers changed. Call free_frame_faces to free the face cache.
ec4e88d7 1873
b4233ec9
JR
18742008-12-11 Jason Rumney <jasonr@gnu.org>
1875
8ec71e23 1876 * w32font.c (fill_in_logfont): Don't assume symbol script means
9acef61c 1877 SYMBOL_CHARSET. (Bug#547)
8ec71e23 1878
b4233ec9 1879 * w32uniscribe.c (uniscribe_encode_char): Increase glyph buffer
9acef61c 1880 size for surrogates. (Bug#1096, bug#872)
b4233ec9 1881
011a0143
JB
18822008-12-11 Juanma Barranquero <lekktu@gmail.com>
1883
1884 * w32proc.c (Fw32_get_locale_info): Decode long form of locale name.
1885
3c309f34
JB
18862008-12-11 Juanma Barranquero <lekktu@gmail.com>
1887
1888 * process.c (Fsystem_process_attributes, syms_of_process):
1889 Fix typo in name of Ssystem_process_attributes.
1890 Reported by Ulrich Mueller <ulm@kph.uni-mainz.de>.
1891
fedc6ab5
JB
18922008-12-11 Juanma Barranquero <lekktu@gmail.com>
1893
1894 * syntax.c (Fmodify_syntax_entry): Doc fix.
1895
ba3de0e8
JB
18962008-12-10 Juanma Barranquero <lekktu@gmail.com>
1897
1898 * font.c (Ffont_spec): Move usage to end of docstring.
1899
174f1c74
JR
19002008-12-10 Jason Rumney <jasonr@gnu.org>
1901
1902 * w32font.c (Qcham): New symbol.
1903 (font_supported_scripts): Add cham, and comments for other new
1904 scripts in bitfield from OpenType spec.
9d32f818
JR
1905 (add_font_entity_to_list): Limit unicode-sip fonts to those that
1906 contain characters beyond the bmp.
174f1c74 1907
7b649478
KH
19082008-12-10 Kenichi Handa <handa@m17n.org>
1909
1910 * ftfont.c (fc_charset_table): Add "unicode-sip".
2ae37cf0 1911 (ftfont_spec_pattern): Lookup fc_charset_table for the registry
7b649478
KH
1912 Qunicode_sip.
1913
2133e2d1
JB
19142008-12-10 Juanma Barranquero <lekktu@gmail.com>
1915
1916 * coding.c (QCdefault_char): Rename from QCdefalut_char.
1917 (Fcoding_system_put): Use QCdefault_char.
1918 (syms_of_coding): Set QCdefault_char, not QCdefalut_char.
1919
9af886ee
CY
19202008-12-09 Chong Yidong <cyd@stupidchicken.com>
1921
74d819eb
CY
1922 * xftfont.c (syms_of_xftfont): Fix typo.
1923
4ccfa1c0 1924 * buffer.c (Fbuffer_swap_text): Signal error if swapping a dead buffer.
9af886ee 1925
7c19d3ae
DN
19262008-12-08 Dan Nicolaescu <dann@ics.uci.edu>
1927
1928 * emacs.c (main): Close daemon_pipe on exec.
1929
567826bb
CY
19302008-12-08 Chong Yidong <cyd@stupidchicken.com>
1931
1932 * termchar.h (struct tty): New members termcap_term_buffer and
1933 termcap_strings_buffer.
1934
1935 * term.c (encode_terminal_code): Free any previous memory blocks
4ccfa1c0 1936 before calling xmalloc for encode_terminal_src or encode_terminal_dst.
567826bb
CY
1937 (maybe_fatal): Buffer argument deleted. Don't free buffer here.
1938 All callers changed.
1939 (init_tty): Store termcap data and string buffers in new struct
1940 tty members termcap_term_buffer and termcap_strings_buffer.
1941 (delete_tty): Free them.
4ccfa1c0 1942 (syms_of_term): Initialize encode_terminal_src and encode_terminal_dst.
567826bb 1943
aa96c42b
SZ
19442008-12-07 Seiji Zenitani <zenitani@mac.com>
1945
1946 * nsfns.m (ns_set_background_color): Remove code duplication.
4ccfa1c0 1947 It was a substitute for face-transparency on OS X 10.3.
aa96c42b 1948
b7e1d896
CY
19492008-12-06 Chong Yidong <cyd@stupidchicken.com>
1950
1951 * coding.c (make_conversion_work_buffer): Disable buffer
1952 modification hooks in the work buffer.
1953
b5ec91a5
EZ
19542008-12-05 Eli Zaretskii <eliz@gnu.org>
1955
1956 * process.c (procfs_system_process_attributes): If `nread' has a
1957 negative value, assign zero to it.
1958
a5d2a52b
CY
19592008-12-05 Chong Yidong <cyd@stupidchicken.com>
1960
68c5540b 1961 * eval.c (Vdebug_on_error): Doc fix.
a5d2a52b 1962
7bf1bb21
KH
19632008-12-05 Kenichi Handa <handa@m17n.org>
1964
1965 * ftfont.c (ftfont_shape_by_flt): Use "combining" flt if the
1966 second character is a combining character.
1967
2fdc7d00
EZ
19682008-12-05 Eli Zaretskii <eliz@gnu.org>
1969
1970 * process.c (procfs_system_process_attributes): Don't use cmd,
1971 cmdsize, and q without initializing them first.
1972
bf6bfba8
JR
19732008-12-04 Jason Rumney <jasonr@gnu.org>
1974
1975 * w32font.c (w32font_draw): Initialize orig_clip before getting
1976 it, and delete it when finished.
1977
a3b1a468
DN
19782008-12-04 Dan Nicolaescu <dann@ics.uci.edu>
1979
1980 * keyboard.c (kbd_buffer_get_event): Follow the non-interactive
1981 case when running as a daemon before detaching.
1982
8b8be8eb
JB
19832008-12-03 Juanma Barranquero <lekktu@gmail.com>
1984
805f2638 1985 * w32.c (init_environment): Don't unload library shell32.dll.
8b8be8eb 1986
b1bde622
KH
19872008-12-03 Kenichi Handa <handa@m17n.org>
1988
e500c47d
KH
1989 * font.c (font_at): Set `multibyte' at first.
1990
ca516334
KH
1991 * coding.c (decode_coding_charset): Check type of an element of
1992 vector VALIDS.
7bf1bb21 1993 (encode_coding_emacs_mule): Be sure to set `code'.
ca516334 1994
4ccfa1c0 1995 * fontset.c (face_for_char): Handle invalid charset property correctly.
b1bde622
KH
1996 (font_for_char): Likewise.
1997
1e5ecd37
CY
19982008-12-03 Chong Yidong <cyd@stupidchicken.com>
1999
d5b01609 2000 * font.c (Fopen_font): Compute pixel size correctly.
ba207571
CY
2001 (font_update_lface): Handle fonts with corrupted size specs,
2002 i.e. non-int and non-float.
d5b01609 2003
11e3a6e4 2004 * ftfont.c (ftfont_match): Initialize entity variable.
9a48c8cb 2005 (ftfont_resolve_generic_family): Avoid using uninitialized var.
8adb3a3b 2006 (ftfont_list_family): Initialize list var earlier.
11e3a6e4 2007
ab06788b
CY
2008 * xselect.c (Fx_get_cut_buffer_internal): Fix memory leak.
2009
1e5ecd37 2010 * xterm.c (x_draw_glyph_string): Fall back on
0cff82ab 2011 underline_minimum_offset for underline position.
1e5ecd37 2012
63c125ab
DN
20132008-12-03 Dan Nicolaescu <dann@ics.uci.edu>
2014
2015 * keyboard.c (read_char_help_form_unwind): Specify the type for ARG.
2016
2017 * character.c (c_string_width): Specify the type for LEN.
2018
3a8406e1
KH
20192008-12-03 Kenichi Handa <handa@m17n.org>
2020
4ccfa1c0 2021 * coding.c (decode_coding_utf_16): Initialize consumed_chars_base to 0.
453b38f0 2022 (decode_coding_utf_8): Likewise.
4ccfa1c0 2023 (detect_coding_system): Initialize utf_16_le_eol to -1, val to Qnil.
4533845d 2024 (produce_chars): Initialize consumed_chars to 0.
3a8406e1 2025
651df7d9
CY
20262008-12-02 Chong Yidong <cyd@stupidchicken.com>
2027
2028 * keyboard.c (make_lispy_position): Only use PT if the selected
2029 window is current.
2030
1f625c6c
AS
20312008-12-02 Andreas Schwab <schwab@suse.de>
2032
f7741ce9
AS
2033 * font.c (font_unparse_fcname): Fix use of uninitialized variable.
2034
1f625c6c
AS
2035 * doprnt.c (doprnt1): Fix size of charbuf.
2036
92bc2678
CY
20372008-12-02 Chong Yidong <cyd@stupidchicken.com>
2038
2039 * keyboard.c (timer_check): Revert last change.
2040
93b9e8cc
JB
20412008-12-02 Juanma Barranquero <lekktu@gmail.com>
2042
2043 * makefile.w32-in ($(BLD)/w32console.$(O)): Fix silly, silly typo.
2044
fd7a37d5
JB
20452008-12-01 Juanma Barranquero <lekktu@gmail.com>
2046
2047 * makefile.w32-in: Update dependencies.
2048 (CONFIG_H): Add $(EMACS_ROOT)/nt/inc/sys/time.h.
2049
c115043b
AS
20502008-12-01 Andreas Schwab <schwab@suse.de>
2051
2052 * font.c (register_font_driver): Use xmalloc.
2053 (font_put_frame_data): Likewise.
2054
f5668d2a
CY
20552008-12-01 Chong Yidong <cyd@stupidchicken.com>
2056
860d96be
CY
2057 * xfaces.c (realize_x_face): Make abort condition clearer.
2058
f5668d2a
CY
2059 * gtkutil.c (update_frame_tool_bar): Initialize variable.
2060
379c17e7
CY
20612008-11-30 Chong Yidong <cyd@stupidchicken.com>
2062
2063 * keyboard.c (timer_check): After a timer runs, ensure that the
2064 selected window's buffer is current.
2065
35f36d65
JB
20662008-11-30 Juanma Barranquero <lekktu@gmail.com>
2067
f952c61c
JB
2068 * makefile.w32-in ($(BLD)/abbrev.$(O)): Remove.
2069 It was accidentally restored by the Unicode merge.
2070
35f36d65
JB
2071 * w32proc.c (Fw32_get_locale_info): Fix typo in docstring.
2072
b23077df
JB
20732008-11-29 Juanma Barranquero <lekktu@gmail.com>
2074
2075 * w32proc.c: Include "coding.h".
2076 (Fw32_short_file_name): Encode filename passed to Windows API.
2077 (Fw32_long_file_name): Encode filename passed to Windows API and
2078 decode back the result. (Bug#1433)
2079
b8ebe9dd
KH
20802008-11-29 Kenichi Handa <handa@m17n.org>
2081
8cc53f96
KH
2082 * charset.h (CHAR_CHARSET_P): Check if the encoder is loaded or
2083 not before accessing it.
2084
b8ebe9dd
KH
2085 * charset.c (Fdefine_charset_internal): After calculating
2086 min_char, max_char, and fastmap, copy the charset structure again.
2087 (encode_char): Fix the previous change.
2088
59bc82c0
SZ
20892008-11-28 Seiji Zenitani <zenitani@mac.com>
2090
2091 * frame.c (x_set_alpha) [NS_IMPL_COCOA]: Call x_set_frame_alpha.
2092
2093 * nsfns.m (ns_frame_parm_handlers): Set alpha handler.
2094
2095 * nsterm.m (x_set_frame_alpha): New function.
2096
32247e3d
EZ
20972008-11-27 Eli Zaretskii <eliz@gnu.org>
2098
2099 * xfaces.c (Fx_font_family_list, syms_of_xfaces): Fix last change.
2100
b003e5ff
JB
21012008-11-27 Juanma Barranquero <lekktu@gmail.com>
2102
2103 * w32font.c (add_font_entity_to_list): Pass the right LOGFONT
2104 pointer to check_face_name.
2105
708550f5
KH
21062008-11-27 Kenichi Handa <handa@m17n.org>
2107
2108 * category.h (SET_CATEGORY_SET): Call set_category_set.
2109 (set_category_set): Extern it.
2110
2111 * category.c (hash_get_category_set): New function.
2112 (Fmodify_category_entry): Adjusted for the change of
2113 char_table_ref_and_range. Call hash_get_category_set to get a
2114 category set to store in the table.
2115
2116 * character.h (MAYBE_UNIFY_CHAR): Call maybe_unify_char instead of
2117 Funify_charset.
2118
2ae37cf0 2119 * charset.h (enum charset_method): Delete CHARSET_METHOD_MAP_DEFERRED.
708550f5
KH
2120 (DECODE_CHAR): Check if the decoder vector is ready.
2121 (ENCODE_CHAR): Check if the encoder char-table is ready.
2122 (maybe_unify_char): Extern it.
2123
2124 * charset.c (Vchar_unified_charset_table): Delete it.
2125 (inhibit_load_charset_map): New variable.
2126 (temp_charset_work): New variable.
2127 (SET_TEMP_CHARSET_WORK_ENCODER, GET_TEMP_CHARSET_WORK_ENCODER)
2128 (SET_TEMP_CHARSET_WORK_DECODER, GET_TEMP_CHARSET_WORK_DECODER):
2129 New macros.
2130 (load_charset_map): Meaning of control_flag changed. If
2131 inhibit_load_charset_map is nonzero, setup a table in
2132 temp_charset_work.
2133 (load_charset): New argument control_flag.
2134 (map_charset_for_dump): New function.
2135 (map_charset_chars): If inhibit_load_charset_map is nonzero, use
2136 map_charset_for_dump.
2137 (Fdefine_charset_internal): If the charset method is MAP, load
2138 mapping tables by calling load_charset.
2139 (Funify_charset): Don't load a mapping table but directly set
2140 Vchar_unify_table.
2141 (maybe_unify_char): New function.
2142 (decode_char): Don't handle the deleted method MAP_DEFERRED.
2143 Handle the case of inhibit_load_charset_map being nonzero.
2144 (encode_char): Don't handle the deleted method MAP_DEFERRED.
2145 Handle the case of inhibit_load_charset_map being nonzero.
2146 (Fclear_charset_maps): Just free temp_charset_work.
2147 (syms_of_charset): Make `inhibit-load-charset-map' a Lisp
2148 variable.
2149
2150 * chartab.c (sub_char_table_ref_and_range): Adjusted for the
2151 change of char_table_ref_and_range.
2152 (char_table_ref_and_range): Change the meaning of argument FROM
2153 and TO. Now the caller must provide initial values for *FROM
2154 and *TO.
2155
2156 * fontset.c (fontset_add): Adjusted for the change of
2157 char_table_ref_and_range.
2158 (fontset_get_font_group): Likewise.
2159 (Ffontset_info): Likewise.
2160
2161 * keymap.c (describe_vector): Adjusted for the change of
2162 char_table_ref_and_range. For char-table, put boundary between
2163 non-ASCII and 8-bit characters.
2164
2165 * print.c (print_object): For bool-vector, delete unnecessary
2166 check of ASCII_BYTE_P.
2167
9196133b
JR
21682008-11-26 Jason Rumney <jasonr@gnu.org>
2169
2170 * w32font.c (w32font_open_internal): Don't include external
9acef61c 2171 leading in font height. (Bug#879)
9196133b 2172
9f688acf
GM
21732008-11-26 Glenn Morris <rgm@gnu.org>
2174
2175 * xfaces.c (Fx_font_family_list): Replace lisp/term/pc-win.el
2176 redefinition with ifdef. (Bug#1383)
2177
90d19aff
AR
21782008-11-24 Adrian Robert <Adrian.B.Robert@gmail.com>
2179
2180 * nsterm.m (ns_get_color): Handle long hex strings (fixes bug #1044).
2181
4ccfa1c0 21822008-11-24 Wolfgang Lux <wolfgang.lux@gmail.com> (tiny change)
90d19aff
AR
2183
2184 * nsterm.m (-otherMouseDown:, -otherMouseUp:, -otherMouseDragged):
2185 New EmacsView methods.
2186 (EV_UDMODIFIERS, EV_BUTTON): Add OtherMouse constants.
2187 Fixes bug #1048,1357,1414.
2188
21892008-11-24 Adrian Robert <Adrian.B.Robert@gmail.com>
2190
2191 Fix bug #1362.
2192 * image.c (x_clear_image_1): Do not free background under HAVE_NS, it
2193 is not an indexed color.
2194 * nsterm.m (free_indexed_color): Add argument checking.
2195 * nsfns.m: Move config.h to before system includes (advised by Dan N.).
2196
e7d5ecb3
CY
21972008-11-24 Chong Yidong <cyd@stupidchicken.com>
2198
2199 * minibuf.c (Fcompleting_read, Vminibuffer_completion_confirm):
2200 Document confirm-after-completion value for
2201 minibuffer-completion-confirm.
2202
c285743c
JR
22032008-11-24 Jason Rumney <jasonr@gnu.org>
2204
2205 * w32font.c (check_face_name): Use xstrcasecmp. Avoid compiler
2206 warning.
2207
b0857706
JR
22082008-11-23 Jason Rumney <jasonr@gnu.org>
2209
2210 * w32uniscribe.c (uniscribe_encode_char): Ensure context is
2211 restored before returning.
2212
2213 * w32font.c (check_face_name): New function.
2214 (add_font_entity_to_list): Use it to filter out common substituted
9acef61c 2215 fonts. (Bug#642)
b0857706 2216
ee50ff07
MR
22172008-11-22 Martin Rudalics <rudalics@gmx.at>
2218
2219 * buffer.c (Fswitch_to_buffer): Reword and mention new option
2220 confirm-nonexistent-file-or-buffer in doc-string.
2221
b8ff72fa
SM
22222008-11-21 Stefan Monnier <monnier@iro.umontreal.ca>
2223
2224 * buffer.c (Fbuffer_swap_text): Remove redundant marker manipulation.
2225 Fix copy/paste typo. Add checks.
2226
cee53ed4
KH
22272008-11-21 Kenichi Handa <handa@m17n.org>
2228
2229 * coding.c (detect_coding_iso_2022): Reject invalid composition
2230 sequence.
2231 (DECODE_COMPOSITION_START): If the current source is the last
2232 block, and the current composition doesn't end, regard this
2233 sequence as invalid.
2234 (decode_coding_iso_2022): Handle invalid composition sequence.
2235
f6ef1e65
MR
22362008-11-20 Martin Rudalics <rudalics@gmx.at>
2237
2238 * window.c (coordinates_in_window): Don't return
2239 ON_VERTICAL_BORDER for the rightmost position of a mode/header
2240 line when the window is not the rightmost one. (Bug#1372)
2241
e08b1705
MR
22422008-11-16 Ben North <ben@redfrontdoor.org> (tiny change)
2243
2244 * buffer.c (syms_of_buffer): Fix doc-string of cursor-type.
2245
ad98e89f
EZ
22462008-11-15 Eli Zaretskii <eliz@gnu.org>
2247
2248 * msdos.c (run_msdos_command): Don't call dos_ttcooked, dos_ttraw,
2249 and bright_bg if noninteractive is non-zero.
2250
fb098a4b
CY
22512008-11-15 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
2252
2253 * xterm.c (x_draw_glyph_string): For stretch glyphs, don't call
2254 x_draw_glyph_string_background.
2255
2256 * w32term.c (x_draw_glyph_string): Likewise.
2257
ce952b6e
CY
22582008-11-15 Chong Yidong <cyd@stupidchicken.com>
2259
2260 * xterm.c (x_draw_glyph_string): Stop drawing the background of
2261 the next glyph string once past the overhang width.
2262
2263 * nsterm.m (ns_draw_glyph_string): Likewise.
2264
2265 * w32term.c (x_draw_glyph_string): Likewise.
2266
26ea7079
CY
22672008-11-14 Fabrice Popineau <fabrice.popineau@supelec.fr> (tiny change)
2268
2269 * fileio.c (Finsert_file_contents): Decrement specpdl_ptr to avoid
2270 double file close.
2271
1c33c906
MR
22722008-11-14 Martin Rudalics <rudalics@gmx.at>
2273
2274 * window.c (window_loop): In DELETE_BUFFER_WINDOWS case, reset
2275 dedicated status of window before attempting to display another
2276 buffer in it.
2277
8fc29035
JB
22782008-11-14 Juanma Barranquero <lekktu@gmail.com>
2279
2280 * msdos.c (Fmsdos_long_file_names):
2281 (syms_of_msdos) <dos-unsupported-char-glyph>:
2282 * dosfns.c (Fint86): Fix typos in docstrings.
2283
55fb4286
EZ
22842008-11-14 Eli Zaretskii <eliz@gnu.org>
2285
2286 * makefile.w32-in (OBJ1, WIN32OBJ): Fix whitespace.
2287
3fda0315
KY
22882008-11-14 Katsumi Yamaoka <yamaoka@jpl.org>
2289
2290 * puresize.h (BASE_PURESIZE): Increase to 1260000.
2291
7e849c17
CY
22922008-11-12 Michal Nazarewicz <mina86@tlen.pl> (tiny change)
2293
2294 * frame.c (x_set_alpha): Set alpha to -1 if nil given.
2295
2296 * frame.h: Negative alpha means "don't touch".
2297
2298 * w32term.c (x_set_frame_alpha): Do nothing if alpha is negative.
2299
2300 * xterm.c (x_set_frame_alpha): Do nothing if alpha is negative.
2301
b9fd67bd
DN
23022008-11-12 Dan Nicolaescu <dann@ics.uci.edu>
2303
2304 * hftctl.c:
2305 * chpdef.h:
2306 * acldef.h: Remove files used only for systems no longer supported.
2307
2308 * Makefile.in: Fix .o alphabetical ordering.
2309 (hftctl.o): Remove dependency, file removed.
2310 (keymap.o, print.o): Depend on charset.h.
2311
d5998e03
KH
23122008-11-10 Kenichi Handa <handa@m17n.org>
2313
2ae37cf0 2314 * character.c (Fget_byte): Fix and make it faster for unibyte target.
d5998e03 2315
be70e183
CY
23162008-11-08 Chong Yidong <cyd@stupidchicken.com>
2317
2318 * dired.c (file_name_completion): If completion_ignore_case is
2319 enabled, ignore case when checking completion-regexp-list.
2320
7cf94eac
EZ
23212008-11-08 Eli Zaretskii <eliz@gnu.org>
2322
2323 * vm-limit.c (get_lim_data): Fix last change.
2324
ee107a89
KH
23252008-11-08 Kenichi Handa <handa@m17n.org>
2326
2327 * character.c (Fget_byte): New function.
2328 (syms_of_character): Defsubr Fget_byte.
2329
5fd15622
CY
23302008-11-07 Chong Yidong <cyd@stupidchicken.com>
2331
2332 * xdisp.c (try_window_reusing_current_matrix): Ensure that window
2333 cursor position is valid after scrolling.
2334
13d62fad
JB
23352008-11-06 Juanma Barranquero <lekktu@gmail.com>
2336
2337 * fns.c (Frandom): Rename arg N to LIMIT to match the docs; doc fix.
2338
a1dd2936
GM
23392008-11-06 Glenn Morris <rgm@gnu.org>
2340
2341 * xterm.c (handle_one_xevent): Don't let popup menus cause
2342 mouse-autoselect-window related window switching. (Bug#1261)
2343
860cd236
CY
23442008-11-04 David Smith <davidsmith@acm.org> (tiny change)
2345
2346 * xterm.c (xim_close_dpy): Avoid double-free on X11R6 XIM.
2347
653a3150
AS
23482008-11-04 Andreas Schwab <schwab@suse.de>
2349
2350 * xfns.c (Fx_wm_set_size_hint): Add missing return value.
2351
870f5cac
CY
23522008-11-03 Chong Yidong <cyd@stupidchicken.com>
2353
2354 * xfns.c (Fx_wm_set_size_hint): New function.
2355
1e02f3cb
MR
23562008-11-03 Martin Rudalics <rudalics@gmx.at>
2357
2358 * textprop.c (Fprevious_single_char_property_change): Return 0
2359 when there's no change in a string. (Bug#1301)
2360
e630dfc6
MR
23612008-11-02 Martin Rudalics <rudalics@gmx.at>
2362
2363 * frame.c (do_switch_frame): New argument NORECORD passed to
2364 Fselect_window.
2365 (Fselect_frame): New argument NORECORD passed to
2366 do_switch_frame.
2367 (Fset_frame_selected_window): New argument NORECORD passed to
2368 Fselect_frame.
2369 (Fhandle_switch_frame, Fdelete_frame): Handle NORECORD argument
2370 in call of do_switch_frame.
2371 (Fset_mouse_position, Fset_mouse_pixel_position, Fraise_frame):
2372 Handle NORECORD argument in call of Fselect_frame.
2373 * lisp.h (do_switch_frame, Fselect_frame)
2374 (Fset_frame_selected_window): Adjust declarations.
2375 * window.c (select_frame_norecord): New function.
2376 (run_window_configuration_change_hook): Use it and call
2377 Fselect_frame with NORECORD set.
2378 (Fselect_window): Pass NORECORD to Fselect_frame.
2379 (Fset_window_configuration): Handle NORECORD argument in call of
2380 do_switch_frame.
2381 * minibuf.c (choose_minibuf_frame): Handle NORECORD in call of
2382 Fset_frame_selected_window.
2383 * keyboard.c (command_loop_1): Handle NORECORD in call of
2384 Fselect_frame (currently ifdefd).
2385
9020b223
GM
23862008-11-02 Ulrich Mueller <ulm@kph.uni-mainz.de>
2387
2388 * emacs.c (USAGE2): Untabify.
2389
793ffee8
SM
23902008-11-01 Stefan Monnier <monnier@iro.umontreal.ca>
2391
2392 * composite.c (fill_gstring_header): Fix copy/paste typo.
2393
ab6d1131
MR
23942008-10-31 Martin Rudalics <rudalics@gmx.at>
2395
2396 * window.c (Fnext_window, Fprevious_window): Rewrite doc-string.
2397 (Fother_window): Rename argument and rewrite doc-string.
2398 (select_window_norecord): Fix return value. (Bug#1276)
2399
601a9cf1
JB
24002008-10-30 Juanma Barranquero <lekktu@gmail.com>
2401
2402 * w32fns.c (x_create_tip_frame): Prevent default foreground color for
2403 new frames overriding foreground for tooltips. Based on similar patch
2404 from Martin Rudalics <rudalics@gmx.at>. (Bug#1032)
2405
813b0652
CY
24062008-10-29 Chong Yidong <cyd@stupidchicken.com>
2407
2408 * emacs.c (Fdaemon_initialized): Initialize nfd.
2409
4414f58f
MR
24102008-10-29 Martin Rudalics <rudalics@gmx.at>
2411
2412 * window.c (Fwindow_height, Fdelete_window, set_window_buffer)
2413 (Fwindow_text_height): Clarify doc-strings.
2414 * xdisp.c (syms_of_xdisp): Mention set-window-buffer in
2415 doc-string of window-scroll-functions.
2416
ecdcaa09
RS
24172008-10-28 Reiner Steib <Reiner.Steib@gmx.de>
2418
2419 * category.c (syms_of_category): Fix typo in docstring.
2420
23fe745a
JB
24212008-10-28 Juanma Barranquero <lekktu@gmail.com>
2422
2423 * window.c (Fwindowp, Fwindow_live_p, Fwindow_minibuffer_p)
2424 (Fcoordinates_in_window_p, Fscroll_left, Fscroll_right):
2425 Fix typos in docstrings.
2426
ff808935
DN
24272008-10-28 Dan Nicolaescu <dann@ics.uci.edu>
2428
2429 * emacs.c (daemon_pipe): Make non-static.
2430 (IS_DAEMON): Move definition ...
2431 * lisp.h (IS_DAEMON): ... here.
2432 (daemon_pipe): Declare.
2433 (is_daemon): Remove.
2434 * dispnew.c (init_display): Use IS_DAEMON.
2435
fc012771
SM
24362008-10-28 Stefan Monnier <monnier@iro.umontreal.ca>
2437
2438 * xdisp.c (pos_visible_p, redisplay_internal, message3_nolog)
2439 (message2_nolog): Check FRAME_INITIAL_P instead of noninteractively.
2440
2441 * emacs.c (is_daemon): Remove.
2442 (main): Don't set is_daemon.
2443 (IS_DAEMON): New macro.
2444 (Fdaemonp, Fdaemon_initialized): Use it.
601a9cf1 2445 (Fdaemon_initialized): Write a char into the pipe to make sure the
fc012771
SM
2446 parent exits.
2447 (syms_of_emacs): Explicitly initialize daemon_pipe[1].
2448
d8bdbe6f
CY
24492008-10-27 Chong Yidong <cyd@stupidchicken.com>
2450
d1a072bf
CY
2451 * nsterm.m (ns_draw_window_cursor): When hbar cursor is on
2452 over-sized glyph, draw it with the default glyph width.
2453
e2e325aa
CY
2454 * w32term.c (x_draw_bar_cursor): When hbar cursor is on over-sized
2455 glyph, draw it with the default glyph width.
2456
2457 * xterm.c (x_draw_bar_cursor): When hbar cursor is on over-sized
2458 glyph, draw it with the default glyph width.
2459
d8bdbe6f
CY
2460 * xdisp.c (try_scrolling): When computing the distance from the
2461 scroll margin to PT, try moving some distance past the window
2462 bottom before giving up.
2463
7bfac547
MR
24642008-10-27 Martin Rudalics <rudalics@gmx.at>
2465
2466 * window.c (Fwindow_dedicated_p, Fset_window_dedicated_p)
2467 (Fset_window_buffer): Explain in doc-string that a window can be
2468 "strongly" dedicated to its buffer.
2469
4ff029f6
DN
24702008-10-27 Dan Nicolaescu <dann@ics.uci.edu>
2471
2472 * emacs.c (daemon_name): New variable.
2473 (main): Deal with --daemon=SERVER_NAME.
2474 (Fdaemonp): Return a name if one was passed to --daemon.
2475
5790ef40
DN
24762008-10-26 Romain Francoise <romain@orebokech.com>
2477
f9bd0df9 2478 * emacs.c (daemon_pipe): New variable.
5790ef40
DN
2479 (main): Create a pipe before forking, make the parent exit only after
2480 the child has closed its end of the pipe. Move closing the
2481 descriptors ...
2482 (Fdaemon_initialized): ... here. New function.
2483
f5385255
SM
24842008-10-26 Stefan Monnier <monnier@iro.umontreal.ca>
2485
4d632321
SM
2486 * chartab.c (Foptimize_char_table): Make sure `ascii' doesn't point to
2487 the previous unoptimized table.
2488
f5385255
SM
2489 * window.c (Fset_window_buffer): Undo 2008-10-18 change to re-instate
2490 the distinction between non-nil and non-t value of `dedicated'.
2491
6c56a0f3
CY
24922008-10-25 Chong Yidong <cyd@stupidchicken.com>
2493
2494 * keyboard.c (read_char_minibuf_menu_prompt): Ensure that
f5385255 2495 read_char_minibuf_menu_text is large enough to hold the menu string.
6c56a0f3 2496
fec89261
MR
24972008-10-25 Martin Rudalics <rudalics@gmx.at>
2498
2499 * window.c (Fget_buffer_window, Fdelete_windows_on)
2500 (Freplace_buffer_in_windows): Make buffer argument optional and
2501 rename to buffer_or_name.
2502
34fcddd0
CY
25032008-10-24 Chong Yidong <cyd@stupidchicken.com>
2504
f5385255
SM
2505 * xdisp.c (handle_single_display_spec, handle_display_prop):
2506 Undo 2005-05-16 change.
34fcddd0
CY
2507 (handle_stop): Pop iterator if it's loaded with an empty string.
2508 (get_overlay_strings_1): Don't save iterator if it's loaded with
2509 an empty string (bug#1201).
2510
064766f2
KH
25112008-10-24 Kenichi Handa <handa@m17n.org>
2512
2513 * ftfont.c (ftfont_otf_features): Fix previous change.
2514 (ftfont_otf_capability): Check FeatureList.FeatureCount before
2515 calling ftfont_otf_features.
2516
f9bd0df9 25172008-10-24 Kenichi Handa <handa@m17n.org>
064766f2
KH
2518
2519 * font.c (font_match_p): Fix for the case that a vector of
2520 characters is in script-representative-chars.
2521
1dae9197
MA
25222008-10-24 Michael Albinus <michael.albinus@gmx.de>
2523
2524 * dbusbind.c (xd_in_read_queued_messages): New variable.
f5385255 2525 (XD_SIGNAL1, XD_SIGNAL2, XD_SIGNAL3): New macros. Throw Qdbus_error.
1dae9197
MA
2526 (xd_read_queued_messages): Catch Qdbus_error from the macros.
2527 (all): Replace xsignal1, xsignal2, xsignal3 by the respective
2528 macro. (Bug#1186).
2529
f9bd0df9 25302008-10-23 Ali Bahrami <ali_gnu@emvision.com> (tiny change)
9b3362b8
DN
2531
2532 * s/sol2-10.h: New file.
2533
878a4584
JB
25342008-10-23 Juanma Barranquero <lekktu@gmail.com>
2535
2536 * xdisp.c (fill_glyph_string): Fix typo in source (though the
2537 poor beast has survived 9+ years and the jump from xterm.c!).
2538
cd265ca6
MR
25392008-10-23 Martin Rudalics <rudalics@gmx.at>
2540
2541 * buffer.c (Fget_buffer_create): Rename arg to buffer_or_name.
2542 Reword doc-string.
f5385255 2543 (Fbury_buffer): In doc-string say what happens to the buffer's window.
cd265ca6 2544
472a4dc9
JB
25452008-10-23 Juanma Barranquero <lekktu@gmail.com>
2546
2547 * character.c (syms_of_character) <script-representative-chars>:
2548 <unicode-category-table>: Doc fixes.
2549
159bd5a2
NF
25502008-10-23 Noah Friedman <friedman@splode.com>
2551
2552 * coding.c (make_conversion_work_buffer): Check that
2553 Vcode_conversion_reused_workbuf is a live buffer, otherwise call
2554 Fget_buffer_create.
2555
49f9c344
KH
25562008-10-23 Kenichi Handa <handa@m17n.org>
2557
2558 * font.c (font_add_log): Check the values of extra properties.
2559
12bb3111
MR
25602008-10-22 Martin Rudalics <rudalics@gmx.at>
2561
2562 * window.c (Fwindow_dedicated_p, Fset_window_dedicated_p):
2563 Reword doc-string.
2564 (Fset_window_parameter): Use NILP.
2565 (Fscroll_up, Fscroll_down, Fminibuffer_selected_window)
f5385255 2566 (Frecenter): Use "selected" instead of "current" window in doc-strings.
12bb3111 2567
bbeb4e99
JB
25682008-10-22 Juanma Barranquero <lekktu@gmail.com>
2569
2570 * xdisp.c (next_element_from_buffer): Remove bogus xassert condition.
2571
25722008-10-22 Adrian Robert <Adrian.B.Robert@gmail.com>
cb83c00b
AR
2573
2574 * nsfns.m (ns_appkit_version): New function.
2575 (x-server-version): Use it.
2576 (syms_of_nsfns): Define ns-version-string here, not nsterm.m.
2577 (x-server-vendor): Don't check_ns().
2578
2579 * nsterm.m (syms_of_nsterm): Drop ns-version-string.
2580
a9b555d3
JB
25812008-10-22 Juanma Barranquero <lekktu@gmail.com>
2582
2583 * w32fns.c (unwind_create_frame) [!GLYPH_DEBUG]: Fix xassert.
2584 Copied from 2005-02-03 change to xfns.c by Kim F. Storm.
2585
4626499f
KH
25862008-10-22 Kenichi Handa <handa@m17n.org>
2587
e3681952
KH
2588 * syntax.c (scan_words): Call word_boundary_p instead of comparing
2589 scripts.
2590
4626499f
KH
2591 * category.c (word_boundary_p): Check scripts instead of charset.
2592 Handle nil value in word-separating-categories and
2593 word-combining-categories.
2594 (syms_of_category): Fix docstrings of word-separating-categories
2595 and word-combining-categories.
2596
1560f91a
EZ
25972008-10-21 Eli Zaretskii <eliz@gnu.org>
2598
2599 * coding.c (Fencode_coding_region, Fdecode_coding_region)
2600 (Fdecode_coding_string, Fencode_coding_string): Doc fix.
2601
f4668441
MR
26022008-10-21 Martin Rudalics <rudalics@gmx.at>
2603
2604 * buffer.c (Fget_buffer, Fbury_buffer, switch_to_buffer_1):
2605 Rename arg "buffer" to "buffer_or_name".
2606 (Fkill_buffer): Rename arg "buffer" to "buffer_or_name" and make
2607 it optional.
2608 (no_switch_window): Remove since the return value is not used.
a9b555d3 2609 (Fswitch_to_buffer): Rename arg "buffer" to "buffer_or_name".
f4668441
MR
2610 Consider window as dedicated when Fwindow_dedicated_p returns a
2611 non-nil value.
2612 * lisp.h: Remove prototype for no_switch_window.
2613
fd75ddb2
JD
26142008-10-21 Jan Djärv <jan.h.d@swipnet.se>
2615
2616 * emacs.c (main): Unconditionally set PER_LINUX32 and exec
2ae37cf0 2617 temacs when dumping if HAVE_PERSONALITY_LINUX32 is defined.
fd75ddb2 2618
07295713
KH
26192008-10-21 Kenichi Handa <handa@m17n.org>
2620
2621 * coding.c (detect_coding_charset): For iso-8859-* coding systems,
2622 check Vlatin_extra_code_table.
2623
712adc82
EZ
26242008-10-20 Eli Zaretskii <eliz@gnu.org>
2625
2626 * fileio.c (Fset_file_modes): Doc fix.
2627
f549eb0b
MA
26282008-10-19 Michael Albinus <michael.albinus@gmx.de>
2629
2630 * dbusbind.c (XD_OBJECT_TO_DBUS_TYPE): Handle simple type symbols
2631 in arrays.
2632
aac0c6e3
MR
26332008-10-19 Martin Rudalics <rudalics@gmx.at>
2634
2635 * window.c (Fwindow_dedicated_p, Fset_window_dedicated_p):
2636 Mention kill-buffer in doc-string.
2637 (Fset_window_buffer): Reinsert tem check removed in last commit.
2638 (Fenlarge_window, Fshrink_window): Have argument names and
2639 doc-string follow Elisp manual more closely.
2640
26412008-10-18 Eli Zaretskii <eliz@gnu.org>
2642
2643 * fileio.c (Fset_file_modes): Doc fix.
2644
26452008-10-18 Martin Rudalics <rudalics@gmx.at>
2646
2647 * window.c (Fwindow_width, Fset_window_start)
2648 (Fwindow_parameters, Fwindow_parameter, Fset_window_parameter)
f5385255
SM
2649 (Fdelete_windows_on, Freplace_buffer_in_windows):
2650 Make doc-strings follow code and Elisp manual more closely.
aac0c6e3
MR
2651 (Fwindow_dedicated_p): Make window argument optional.
2652 (Fset_window_dedicated_p): Rename argument "arg" to "flag".
2653 (Fset_window_buffer): Respect any non-nil dedicated value for
2654 window. Rename "buffer" argument to "buffer_or_name".
2655
26562008-10-18 Ulrich Mueller <ulm@gentoo.org>
2657
2658 * m/sh3.h: New file, machine description for SuperH.
2659
26602008-10-17 Martin Rudalics <rudalics@gmx.at>
2661
2662 * window.c (Fsplit_window): Rename arg horflag to horizontal.
2663
26642008-10-17 Kenichi Handa <handa@m17n.org>
2665
2666 * ftfont.c (ftfont_otf_features): Fix indexing
2667 gsub_gpos->FeatureList.Feature. Check the validity of indices.
2668
26692008-10-16 Magnus Henoch <mange@freemail.hu>
2670
2671 * dbusbind.c (Fdbus_call_method): Unbreak usage line.
2672 (Fdbus_call_method_asynchronously): Ditto.
2673 This change makes C-h f display the argument list.
2674
26752008-10-16 Chong Yidong <cyd@stupidchicken.com>
2676
2677 * fileio.c (Fexpand_file_name): Doc fix.
2678
2679 * xfaces.c (Finternal_set_lisp_face_attribute): Make null values
2680 of :foreground and :background equivalent to unspecified (20.x
2681 compatibility).
2682
26832008-10-15 Eli Zaretskii <eliz@gnu.org>
2684
2685 * buffer.c (syms_of_buffer): Doc fix.
2686
26872008-10-14 Kenichi Handa <handa@m17n.org>
2688
2689 * font.c (font_clear_prop): When clearing font width, clear the
2690 average width field too.
2691
26922008-10-12 Andreas Schwab <schwab@suse.de>
2693
2694 * ftfont.c (ftfont_shape_by_flt): Make static.
2695 * ftfont.h (ftfont_shape_by_flt): Don't declare.
2696
2697 * font.c: Don't include <m17n-flt.h>.
2698
26992008-10-10 Eli Zaretskii <eliz@gnu.org>
2700
2701 * s/msdos.h (SYSTEM_PURESIZE_EXTRA): Decrease to 10000.
2702
27032008-10-09 Eli Zaretskii <eliz@gnu.org>
2704
2705 * frame.c (make_terminal_frame) [MSDOS]: Remove unused #ifdef'ed
2706 away code.
2707
27082008-10-09 Chong Yidong <cyd@stupidchicken.com>
2709
2710 * dispnew.c (update_text_area): Avoid looping due to large glyph
2711 overhangs (bug#1070).
2712
27132008-10-09 Kenichi Handa <handa@m17n.org>
2714
2715 * fontset.c (face_for_char): If face->fontset is negative, just
2716 return ascii_face.
2717
f5385255
SM
2718 * font.c (font_delete_unmatched): Fix previous change.
2719 Don't reject an entity if DPI and AVGWIDTH of an entity are 0.
aac0c6e3
MR
2720
27212008-10-09 Martin Rudalics <rudalics@gmx.at>
2722
2723 * frame.c (Fraise_frame): On text-only terminals select frame in
2724 order to make it visible. (Bug#1061)
2725
27262008-10-08 Chong Yidong <cyd@stupidchicken.com>
2727
2728 * fontset.c (fontset_find_font): Check frame validity.
2729
27302008-10-07 Chong Yidong <cyd@stupidchicken.com>
2731
a9b555d3 2732 * gtkutil.c (xg_display_open): Reset default display if none exists.
aac0c6e3
MR
2733 (xg_display_close): Allow Emacs to close all displays (bug#985).
2734
27352008-10-06 Andreas Schwab <schwab@suse.de>
2736
f5385255 2737 * sysdep.c (sys_signal): Always set SA_RESTART when noninteractively.
aac0c6e3
MR
2738
27392008-10-06 Chong Yidong <cyd@stupidchicken.com>
2740
f5385255 2741 * emacs.c (Vbefore_init_time, Vafter_init_time): Move from startup.el.
aac0c6e3 2742
a9b555d3 2743 * lisp.h (Vbefore_init_time, Vafter_init_time): Declare.
aac0c6e3
MR
2744
2745 * gtkutil.c (x_wm_set_size_hint): Return immediately if called
2746 during initialization.
2747
27482008-10-04 Eli Zaretskii <eliz@gnu.org>
2749
2750 * xdisp.c (redisplay_internal): If frame switched, redisplay the
2751 whole thing on MSDOS frames as well as on a TTY.
2752
2753 * dispnew.c (update_frame): Flush termscript for MSDOS frames as
2754 well as for TTY.
2755 (Fopen_termscript): Allow opening a termscript on MSDOS frames as
2756 well as on a TTY.
2757
2758 * sysdep.c (init_sys_modes): Set FRAME_GARBAGED_P for MSDOS frames
2759 as well as for TTY.
2760
2761 * systime.h (EMACS_TIME_CMP): Cast EMACS_SECS values to `long'.
2762
2763 * dispnew.c (change_frame_size_1): Set FrameRows and FrameCols for
2764 MSDOS frames as well.
2765
27662008-10-02 Adrian Robert <Adrian.B.Robert@gmail.com>
2767
2768 * image.c (x_clear_image_1): Under NS, call ns_free_indexed_color with
2769 correct arguments.
b71ac3dd 2770 * menu.c (find_and_return_menu_selection): Add cast.
aac0c6e3
MR
2771
27722008-10-03 Glenn Morris <rgm@gnu.org>
2773
2774 * emacs.c (USAGE1): Add --daemon.
2775
27762008-10-02 Eli Zaretskii <eliz@gnu.org>
2777
2778 * process.c (procfs_system_process_attributes): Multiply `pcpu' by
2779 100, so it's in percents as advertised.
2780
27812008-10-02 Adrian Robert <Adrian.B.Robert@gmail.com>
2782
2783 * nsterm.h (ns_cursor_types, ns_output.desired_cursor_color)
2784 (ns_output.current_cursor, ns_output.desired_cursor)
2785 (ns_output.last_inactive, FRAME_CURSOR, FRAME_NEW_CURSOR)
2786 (FRAME_NEW_CURSOR_COLOR): Remove.
2787
2788 * nsfns.m (ns_set_cursor_color): Use FRAME_CURSOR_COLOR.
a9b555d3 2789 (ns_lisp_to_cursor_type, ns_cursor_type_to_lisp): Use core Emacs
aac0c6e3
MR
2790 enumeration (HOLLOW_BOX_CURSOR, etc.).
2791
2792 * nsterm.m (ns_frame_rehighlight): Remove commented code.
2793 (draw_window_cursor): Simplify code.
f5385255
SM
2794 (EmacsView-windowDidBecomeKey:,-windowDidResignKey:):
2795 Don't change cursor type. In latter, call rehighlight instead of doing
aac0c6e3 2796 updates manually.
a9b555d3
JB
2797 (EmacsPrefsController-setPanelFromValues,-setValuesFromPanel):
2798 Use core Emacs cursor types.
aac0c6e3 2799
b8ff72fa 2800 * xdisp.c (draw_glyphs): Don't call notice_overwritten_cursor under NS.
aac0c6e3
MR
2801
28022008-10-02 Martin Rudalics <rudalics@gmx.at>
2803
2804 * process.c (Faccept_process_output): Fix doc-string.
2805
28062008-10-02 Dan Nicolaescu <dann@ics.uci.edu>
2807
2808 * gmalloc.c (__sbrk): Also define for uClibc.
2809
2810 * s/gnu-linux.h (GNU_LIBRARY_PENDING_OUTPUT_COUNT): Add definition
2811 for uClibc.
2812
28132008-10-01 Adrian Robert <Adrian.B.Robert@gmail.com>
2814
2815 * nsfont.m (nsfont_spec_to_traits): Use UnXX masks only for non-normal
2816 styles.
2817 (nsfont_open): Reenable the cache.
2818
28192008-10-01 Adrian Robert <Adrian.B.Robert@gmail.com>
2820
2821 * font.c (font_matching_entity): Reflect ATTRS in font selection.
2822 (font_find_for_lface) [HAVE_NS]: Don't ignore case.
2823
28242008-09-30 Stefan Monnier <monnier@iro.umontreal.ca>
2825
2826 * dispnew.c (Fsend_string_to_terminal): Don't try to send a string to
2827 a suspended terminal.
2828
28292008-09-30 Michael Albinus <michael.albinus@gmx.de>
2830
2831 * dbusbind.c (xd_signature): Use strcat instead of sprintf.
2832
28332008-09-30 Eli Zaretskii <eliz@gnu.org>
2834
2835 * Makefile.in (MSDOS_SUPPORT): Remove ccl.elc and codepage.elc.
2836
28372008-09-30 Chong Yidong <cyd@stupidchicken.com>
2838
2839 * xdisp.c (move_it_to): Don't advance the iterator if the last tab
2840 in a continued line coincides with a line beginning.
2841
28422008-09-29 Adrian Robert <Adrian.B.Robert@gmail.com>
2843
2844 * nsfont.m (nsfont_trait_distance): Fix bug.
2845 (nsfont_list): Return a list rather than a vector (syncs with Handa
2846 changes of 2008-05-14).
2847 (nsfont_open): Improve logging.
2848
28492008-09-29 Andreas Schwab <schwab@suse.de>
2850
2851 * keyboard.c (syms_of_keyboard) <input-decode-map>: Doc fix.
2852
28532008-09-28 Martin Rudalics <rudalics@gmx.at>
2854
2855 * character.c (Fchar_resolve_modifiers): Rewrite Elisp function
2856 name as char-resolve-modifiers.
2857 Reported by: Markus Triska <markus.triska@gmx.at>
2858
28592008-09-28 Dan Nicolaescu <dann@ics.uci.edu>
2860
2861 * dispnew.c (init_display): Return earlier when running as a daemon.
2862
28632008-09-27 Adrian Robert <Adrian.B.Robert@gmail.com>
2864
2865 * nsfont.m (nsfont_draw): Fix up composition rendering (cmp_from, ...).
2866
28672008-09-27 Eli Zaretskii <eliz@gnu.org>
2868
2869 * composite.c (Fcomposition_get_gstring)
2870 (Fcompose_region_internal, Fcompose_string_internal)
2871 (Ffind_composition_internal): Doc fix.
2872 (syms_of_composite) <compose-chars-after-function>: Doc fix.
2873 (syms_of_composite) <auto-composition-function>: Doc fix.
2874 (syms_of_composite) <composition-function-table>: Doc fix.
2875
28762008-09-25 Chong Yidong <cyd@stupidchicken.com>
2877
2878 * search.c (wordify): New argument for lax word-ends.
2879 (Fword_search_forward_lax, Fword_search_backward_lax): New funs.
2880
28812008-09-24 Dan Nicolaescu <dann@ics.uci.edu>
2882
2883 * lisp.h (is_daemon): Declare.
2884 * dispnew.c (init_display): Do not try to initialize the terminal
2885 when running as a daemon.
2886
28872008-09-22 Chong Yidong <cyd@stupidchicken.com>
2888
2889 * nsfns.m (compute_tip_xy): Use x_display_pixel_width and
2890 x_display_pixel_height.
2891
28922008-09-22 Martin Rudalics <rudalics@gmx.at>
2893
2894 * undo.c (record_point): Don't call Fundo_boundary for first
2895 change. (Bug#731)
2896
28972008-09-22 Juanma Barranquero <lekktu@gmail.com>
2898
2899 * emacs.c (Fdaemonp): Doc fix.
2900
29012008-09-22 Dan Nicolaescu <dann@ics.uci.edu>
2902
2903 * emacs.c (main): Place #ifdef in the proper place.
2904
29052008-09-21 Dan Nicolaescu <dann@ics.uci.edu>
2906
2907 * emacs.c (standard_args): Add --daemon.
2908 (main): Disconnect from the terminal when --daemon is passed.
2909 (is_daemon): New variable.
2910 (Fdaemonp): New function.
2911 (syms_of_emacs): Defsubr it.
2912
29132008-09-20 Chong Yidong <cyd@stupidchicken.com>
2914
2915 * xdisp.c (get_next_display_element): Handle string display
2916 correctly when checking for the end of a box run.
2917
29182008-09-20 Glenn Morris <rgm@gnu.org>
2919
2920 * fileio.c (Qdelete_by_moving_to_trash): New Lisp_Object.
2921 (syms_of_fileio): Add Qdelete_by_moving_to_trash.
2922 (Frename_file): Avoid copying to trash if a rename involves
2923 a delete. (Bug#964).
2924
29252008-09-20 Eli Zaretskii <eliz@gnu.org>
2926
2927 * keyboard.c (Fset_quit_char, Fset_input_meta_mode)
2928 (Fset_output_flow_control, Fcurrent_input_mode): Support MSDOS
2929 frames as well as termcap frames.
2930 (handle_interrupt): Remove "#ifndef MSDOS" around the call to
2931 get_named_tty.
2932
29332008-09-19 Eli Zaretskii <eliz@gnu.org>
2934
2935 * process.c (procfs_system_process_attributes): Fix cmdline in
2936 case /proc/PID/cmdline is empty.
2937
2938 * xterm.c (x_wm_set_size_hint): Use x_display_pixel_width and
2939 x_display_pixel_height.
2940
29412008-09-19 Juanma Barranquero <lekktu@gmail.com>
2942
2943 * frame.c (x_fullscreen_adjust): Declare var as Display_Info.
2944
2945 * w32fns.c (Fx_display_pixel_width, Fx_display_pixel_height)
2946 (compute_tip_xy): Use x_display_pixel_width, x_display_pixel_height.
2947
29482008-09-19 Dan Nicolaescu <dann@ics.uci.edu>
2949
2950 * dispextern.h (struct it): Move line_wrap away from the middle of
2951 bitfields. Move voffset in struct iterator_stack_entry after the
2952 bitfields. Move tab_width near after another short.
2953
29542008-09-18 Dan Nicolaescu <dann@ics.uci.edu>
2955
2956 * frame.h (struct frame): Move alpha from the middle of bitfields.
2957
2958 * window.h (struct window): Move frozen_window_start_p after the
2959 rest of the bitfields to reduce padding.
2960
29612008-09-18 Chong Yidong <cyd@stupidchicken.com>
2962
2963 * xterm.h (x_display_info): Remove `height' and `width' members.
2964
2965 * nsterm.h (ns_display_info): Remove `height' and `width' members.
2966
2967 * w32term.h (w32_display_info): Remove `height', `width',
2968 `height_in', and `width_in' members.
2969
b8ff72fa
SM
2970 * xterm.c (x_display_pixel_height, x_display_pixel_width):
2971 New functions.
aac0c6e3
MR
2972 (x_calc_absolute_position): Use them.
2973 (x_term_init): Omit removed `height' and `width' members.
2974
b8ff72fa
SM
2975 * w32term.c (x_display_pixel_height, x_display_pixel_width):
2976 New functions.
aac0c6e3
MR
2977 (w32_read_socket, x_calc_absolute_position): Use them.
2978 (w32_initialize_display_info, w32_term_init): Omit removed members
2979 of w32_display_info.
2980
b8ff72fa
SM
2981 * nsterm.m (x_display_pixel_height, x_display_pixel_width):
2982 New functions.
2983 (ns_initialize_display_info): Omit removed members of ns_display_info.
aac0c6e3 2984
b8ff72fa
SM
2985 * xterm.c (x_display_pixel_height, x_display_pixel_width):
2986 New functions.
aac0c6e3
MR
2987 (x_calc_absolute_position): Use them.
2988 (x_term_init): Omit removed `height' and `width' members.
2989
2990 * xfns.c (Fx_display_pixel_width, Fx_display_pixel_height)
b8ff72fa
SM
2991 (compute_tip_xy):
2992 * frame.c (x_fullscreen_adjust):
aac0c6e3
MR
2993 * xmenu.c (menu_position_func): Use x_display_pixel_height and
2994 x_display_pixel_width.
2995
29962008-09-18 Kenichi Handa <handa@m17n.org>
2997
2998 * composite.c (fill_gstring_header): Don't check FROM and TO here.
2999 (composition_compute_stop_pos): Fix handling of static composition.
3000 (Fcomposition_get_gstring): Check FROM and TO at first.
3001
30022008-09-17 Stefan Monnier <monnier@iro.umontreal.ca>
3003
46e722a9 3004 * composite.c (Fcomposition_get_gstring): Yet another int/Lisp_Object
aac0c6e3
MR
3005 mixup (YAILOM).
3006
30072008-09-17 Chong Yidong <cyd@stupidchicken.com>
3008
3009 * indent.c (Fvertical_motion): Use position reported by iterator
3010 instead of PT for determining screen motion (bug#943).
3011
30122008-09-17 Romain Francoise <romain@orebokech.com>
3013
3014 * composite.c (composition_adjust_point): Fix int/EMACS_INT mixup.
3015
30162008-09-17 Kenichi Handa <handa@m17n.org>
3017
3018 * ftfont.c (ftfont_shape_by_flt): Downcase family name.
3019
3020 * composite.c (Fcomposition_get_gstring): Make bigger gstring_work
3021 if necessary.
3022
30232008-09-16 Kenichi Handa <handa@m17n.org>
3024
3025 * coding.c (make_conversion_work_buffer): Avoid calling
3026 Fget_buffer_create if it is not necessary.
3027
30282008-09-15 Martin Rudalics <rudalics@gmx.at>
3029
3030 * window.c (Fselect_window): Don't update window_select_count and
3031 use_time when norecord is not nil.
3032
30332008-09-14 Kenichi Handa <handa@m17n.org>
3034
3035 * fileio.c (Finsert_file_contents): Delete incorrect decrement of
3036 specpdl_ptr.
3037
30382008-09-12 Kenichi Handa <handa@m17n.org>
3039
3040 * indent.c (scan_for_column): Don't handle automatic composition
3041 if the current buffer is not associated with a window.
3042
3043 * composite.c (composition_reseat_it): If the current buffer is
3044 not associated with a window, ignore the automatic composition.
3045 (find_automatic_composition): Likewise.
3046
30472008-09-12 Stefan Monnier <monnier@iro.umontreal.ca>
3048
3049 * term.c (close_gpm): New fun extracted from Fgpm_mouse_stop.
3050 (Fgpm_mouse_stop): Use it.
3051 * termhooks.h (close_gpm): Declare.
3052 * keyboard.c (tty_read_avail_input): Forcefully close the gpm
3053 connection if Gpm_GetEvent fails.
3054
3055 * window.c (set_window_buffer): Always preserve current-buffer.
3056
30572008-09-12 Glenn Morris <rgm@gnu.org>
3058
3059 * charset.c (init_charset): Warn if etc/charsets not found. (Bug#909)
3060
30612008-09-11 Glenn Morris <rgm@gnu.org>
3062
3063 * charset.c (charset-map-path): Doc fix.
3064
30652008-09-10 Kenichi Handa <handa@m17n.org>
3066
3067 * xdisp.c (handle_composition_prop): Set it->cmp_it.ch to -1.
3068
3069 * font.c (Ffont_shape_gstring): Make glyphs of non-nil adjustment
3070 compose a grapheme cluster with the preceding base glyph.
3071
3072 * composite.c (composition_compute_stop_pos): Fix previous change.
3073 Reset cmp_it->id to -1 at first.
3074
30752008-09-10 Glenn Morris <rgm@gnu.org>
3076
3077 * Makefile.in (character.o, chartab.o): Fix config.h typo.
3078
30792008-09-09 Chong Yidong <cyd@stupidchicken.com>
3080
3081 * keyboard.c (read_key_sequence): Reapply translation maps when
3082 switching keyboards.
3083
30842008-09-09 Kenichi Handa <handa@m17n.org>
3085
3086 * ftfont.c (ftfont_shape_by_flt): Use "combining" FLT for ASCII
3087 characters.
3088
3089 * composite.c (FORWARD_CHAR): Fix calculation
3090 of (POSITION).pos_byte.
3091 (composition_compute_stop_pos): Limit the search of composition to
3092 at most 500 characters ahead. If we reach the limit or find a
3093 newline, set cmp_it->ch to -2 and return 0.
3094 (composition_reseat_it): Handle the case that cmp_it->ch is -2.
3095
30962008-09-08 Kenichi Handa <handa@m17n.org>
3097
3098 * indent.c (Fvertical_motion): Be sure to set
3099 it_overshoot_expected if it.cmp_it.id is non-negative.
3100
31012008-09-07 Andreas Schwab <schwab@suse.de>
3102
3103 * callproc.c (Fcall_process): Don't hold references to string data
3104 across garbage collection. Move initialisation of new_argv down
3105 to avoid compiler bug.
3106
31072008-09-07 Roland Winkler <Roland.Winkler@physik.uni-erlangen.de>
3108
3109 * process.c (Fsystem_process_attributes): Doc fix.
3110
31112008-09-07 Chong Yidong <cyd@stupidchicken.com>
3112
3113 * callproc.c (Fcall_process): Canonicalize current directory name.
3114
3115 * xdisp.c (move_it_to): When moving by vpos, ensure that the
3116 iterator advances to the next line if the current line ends in a
3117 continued tab.
3118
31192008-09-07 Teodor Zlatanov <tzz@lifelogs.com>
3120
3121 * nsfont.m (nsfont_draw): Fix the references to missing gidx data
3122 member to point to cmp_from.
3123
3124 * xdisp.c: Doc fix for references to gidx data member.
3125
31262008-09-07 Stefan Monnier <monnier@iro.umontreal.ca>
3127
3128 * buffer.c (Fbuffer_swap_text): Reset window->point markers.
3129
31302008-09-07 Kenichi Handa <handa@m17n.org>
3131
3132 * composite.c (FORWARD_CHAR): Check STOP after
3133 incrementing (POSITION).pos.
3134
31352008-09-06 Roland Winkler <Roland.Winkler@physik.uni-erlangen.de>
3136
3137 * process.c (Fsystem_process_attributes): Doc fix.
3138
31392008-09-06 Chong Yidong <cyd@stupidchicken.com>
3140
3141 * keyboard.c (Ftop_level): Doc fix.
3142
31432008-09-06 Eli Zaretskii <eliz@gnu.org>
3144
3145 * xmenu.c (xmenu_show) [!HAVE_X_WINDOWS]: If frame has a
3146 minibuffer, don't let lower part of menu invade the echo area.
3147
3148 * msdos.c (IT_menu_display): Use STRING_CHAR_ADVANCE instead of a
3149 "char *q" to access menu text and advance through it. Revert the
3150 change that displayed ">" instead of ASCII character 0x10.
3151
31522008-09-05 Eli Zaretskii <eliz@gnu.org>
3153
3154 * menu.c (single_menu_item) [!HAVE_BOXES]: Enable emulation of
3155 toggle boxes and radio buttons on MS-DOS as well.
3156
31572008-09-05 Kenichi Handa <handa@m17n.org>
3158
3159 * composite.c (autocmp_chars): Check lookback count.
3160 (composition_compute_stop_pos): Set cmp_it->lookback.
3161 (composition_reseat_it): Check lookback count.
3162 (struct position_record): New struct.
3163 (FORWARD_CHAR, BACKWARD_CHAR, CHAR_COMPOSABLE_P): New macros.
3164 (find_automatic_composition): New function.
3165 (composition_adjust_point): Use find_automatic_composition.
3166
3167 * dispextern.h (struct composition_it): New member lookback.
3168
31692008-09-02 Chong Yidong <cyd@stupidchicken.com>
3170
3171 * indent.c (Fvertical_motion): Don't call move_it_by_lines again
3172 if moving by a single line.
3173
31742008-09-02 Andreas Schwab <schwab@suse.de>
3175
3176 * xterm.c (x_delete_display): Fix merge error.
3177
3178 * fileio.c (Fexpand_file_name): Remove unused variables.
3179
31802008-09-02 Eli Zaretskii <eliz@gnu.org>
3181
3182 * fileio.c (Fexpand_file_name): Copy argument `name' into local
3183 storage on all platforms, not just on DOS_NT.
3184
31852008-09-02 Jason Rumney <jasonr@gnu.org>
3186
b8ff72fa
SM
3187 * w32menu.c (Fx_popup_menu, Fx_popup_dialog, w32_menu_show):
3188 Ensure mouse is not grabbed after menu is finished.
aac0c6e3
MR
3189
31902008-09-01 Chong Yidong <cyd@stupidchicken.com>
3191
3192 * xfaces.c (Finternal_set_alternative_font_family_alist)
3193 (Finternal_set_alternative_font_registry_alist): Properly copy
3194 entire alist structure.
3195
31962008-09-01 Kenichi Handa <handa@m17n.org>
3197
d66c0241 3198 * ftfont.c (ftfont_spec_pattern): Don't create a charset if the
aac0c6e3 3199 representative chars of the script is a vector.
d66c0241
JB
3200 (ftfont_list): Handle the case where the representative chars of
3201 the script is a vector.
aac0c6e3
MR
3202
3203 * character.c (syms_of_character): Docstring of
3204 script-representative-chars fixed.
3205
32062008-08-31 Eli Zaretskii <eliz@gnu.org>
3207
3208 * msdos.c (BUILD_CHAR_GLYPH): New macro.
3209 (IT_menu_display): Use it instead of SET_CHAR_GLYPH to construct
3210 the menu. Allocate larger buffer for `text', to account for
3211 possible ^C characters.
3212
32132008-08-31 Martin Rudalics <rudalics@gmx.at>
3214
3215 * xdisp.c (prepare_menu_bars): Don't call
3216 Vwindow_size_change_functions with arg Qt.
3217
32182008-08-31 Stefan Monnier <monnier@iro.umontreal.ca>
3219
3220 * font.h (font_range):
3221 * fileio.c (report_file_error):
46e722a9
SM
3222 * composite.c (composition_update_it): Yet another int/Lisp_Object
3223 mixup (YAILOM).
aac0c6e3
MR
3224
32252008-08-30 Glenn Morris <rgm@gnu.org>
3226
3227 * data.c (Fmake_variable_frame_local): Doc fix.
3228
3229 * frame.c (Fmodify_frame_parameters): Doc fix.
3230
32312008-08-30 Eli Zaretskii <eliz@gnu.org>
3232
3233 * w32.c (init_user_info): Allocate buf[] with xmalloc using the size
3234 needed by GetTokenInformation.
3235 (w32_system_process_attributes): Check return values of all system
3236 APIs.
3237
3238 * msdos.c (IT_display_cursor): Write "CURSOR ON/OFF" to termscript
3239 only when the state changes.
3240 (IT_update_begin, IT_update_end): Add termscript trace.
3241
3242 * w16select.c (Fw16_set_clipboard_data): Don't encode text if
3243 clipboard is unavailable. Set dst to NULL if it doesn't point to
3244 malloc'ed data.
3245 (Fw16_get_clipboard_data): Initialize htext to NULL, to avoid
3246 passing random values to xfree.
3247
3248 * dispnew.c (init_display): Set `tty's association in frame's
b8ff72fa 3249 parameters alist to the name of the terminal device, if that is known.
aac0c6e3
MR
3250
32512008-08-29 Jason Rumney <jasonr@gnu.org>
3252
3253 * w32uniscribe.c (uniscribe_check_otf): Don't fallback on DFLT script.
3254
32552008-08-29 Eli Zaretskii <eliz@gnu.org>
3256
3257 * composite.c (fill_gstring_body): Avoid compiler warnings.
3258
3259 * font.c (font_fill_lglyph_metrics): Use EMACS_INT in
3260 LGLYPH_SET_CODE to avoid compiler warnings.
3261
2ae37cf0 3262 * makefile.w32-in ($(BLD)/w32uniscribe.$(O)): Depend on composite.h.
aac0c6e3
MR
3263
3264 * composite.h (LGLYPH_SET_CODE): Cast `val' to EMACS_INT.
3265
3266 * w32uniscribe.c (uniscribe_shape): Shut up compiler warning in
3267 LGLYPH_SET_CODE.
3268
32692008-08-29 Kenichi Handa <handa@m17n.org>
3270
3271 * fileio.c (report_file_error): Don't downcase the first character
3272 of errstring if it is still unibyte.
3273
32742008-08-29 Kenichi Handa <handa@m17n.org>
3275
3276 These changes are to re-implement the automatic composition so
3277 that it doesn't use text properties.
3278
3279 * Makefile.in (ftfont.o): Depend on composite.h.
3280 (composite.o): Depend dispextern.h, font.h, frame, and window.h.
3281
3282 * character.h (Vunicode_category_table): Extern it.
3283
3284 * character.c (Vunicode_category_table): New variable.
3285 (syms_of_character): DEFVAR_LISP Vunicode_category_table.
3286
3287 * chartab.c (optimize_sub_char_table): Perform more greedy
3288 optimization.
3289
b8ff72fa
SM
3290 * composite.h (enum composition_method):
3291 Delete COMPOSITION_WITH_GLYPH_STRING.
aac0c6e3
MR
3292 (COMPOSITION_METHOD): Don't check COMPOSITION_WITH_GLYPH_STRING.
3293 (Vcomposition_function_table): Extern it.
3294 (LGSTRING_XXX, LGLYPH_XXX): Macros moved from font.h.
3295 (composition_gstring_put_cache, composition_gstring_from_id)
3296 (composition_gstring_p, composition_gstring_width)
3297 (composition_compute_stop_pos, composition_reseat_it)
3298 (composition_update_it, composition_adjust_point): Extern them.
3299 (Fcomposition_get_gstring): EXFUN it.
3300
d66c0241 3301 * composite.c: Include window.h, frame.h, dispextern.h, font.h.
aac0c6e3
MR
3302 (Vcomposition_function_table)
3303 (get_composition_id): Don't handle COMPOSITION_WITH_GLYPH_STRING.
b8ff72fa
SM
3304 (gstring_hash_table, gstring_work, gstring_work_headers):
3305 New variables.
aac0c6e3
MR
3306 (gstring_lookup_cache, composition_gstring_put_cache)
3307 (composition_gstring_from_id, composition_gstring_p)
3308 (composition_gstring_width, fill_gstring_header)
3309 (fill_gstring_body, autocmp_chars, composition_compute_stop_pos)
3310 (composition_reseat_it, composition_update_it)
b8ff72fa 3311 (composition_adjust_point, Fcomposition_get_gstring): New functions.
aac0c6e3
MR
3312 (syms_of_composite): Initialize gstring_hash_table, gstrint_work,
3313 and gstring_work_headers. DEFVAR_LISP composition-function-table.
3314 Defsubr compostion_get_gstring.
3315
3316 * dispextern.h (struct glyph): New union u.cmp. Delete the member
3317 cmp_id.
3318 (struct glyph_string): Delete the member gidx. New members
3319 cmp_id, cmp_from, and cmp_to.
3320 (enum it_method): Delete GET_FROM_COMPOSITION.
3321 (struct composition_it): New struct.
3322 (struct it): New member cmp_it, and iterator_stack_entry.cmp_it.
3323 Delete c, len, cmp_id, cmp_len in u.comp.
3324
3325 * font.h (enum lgstring_indices): Delete it.
b8ff72fa 3326 (LGSTRING_XXX, LGLYPH_XXX): Move these macros to composite.h.
aac0c6e3 3327 (enum lglyph_indices): Likewise.
b8ff72fa 3328 (font_range): Adjust extern.
aac0c6e3
MR
3329 (font_fill_lglyph_metrics): Extern it.
3330
3331 * font.c (QCf): New variable.
3332 (check_gstring): Use LGSTRING_GLYPH_LEN, not LGSTRING_LENGTH.
3333 (font_prepare_composition): Delete this function.
3334 (font_range): Type and arguments changed.
3335 (Ffont_make_gstring, Ffont_fill_gstring): Delete them.
3336 (font_fill_lglyph_metrics): New function.
b8ff72fa 3337 (Ffont_shape_text): Rename to Ffont_shape_gstring and change arguments.
aac0c6e3 3338 (syms_of_font): DEFSYM QCf. Delete defsubr for
b8ff72fa
SM
3339 Sfont_make_gstring, Sfont_fill_gstring, Sfont_shape_text.
3340 Defsubr Sfont_shape_gstring.
aac0c6e3
MR
3341
3342 * fontset.h (font_for_char): Extern it.
3343
3344 * fontset.c (font_for_char): New function.
3345
3346 * ftfont.c: Include composite.h.
3347 (ftfont_resolve_generic_family): Add langset "en" to pattern.
b8ff72fa 3348 (ftfont_shape_by_flt): Use LGSTRING_GLYPH_LEN, not LGSTRING_LENGTH.
aac0c6e3
MR
3349
3350 * indent.c: Include composite.h and dispextern.h.
3351 (check_composition): Delete this function.
3352 (scan_for_column): Handle composition by
3353 composition_compute_stop_pos, composition_reseat_it, and
3354 composition_update_it.
3355 (compute_motion): Likewise.
3356 (Fvertical_motion): Fix checking of composition.
3357
3358 * keyboard.c (adjust_point_for_property): Check composition by
3359 composition_adjust_point.
3360
b8ff72fa 3361 * nsterm.m (ns_draw_glyph_string): Adjust for the change of
aac0c6e3
MR
3362 struct glyph_string.
3363
b8ff72fa
SM
3364 * term.c (encode_terminal_code): Adjust for the change of struct glyph.
3365 (append_composite_glyph): Adjust for the change of struct it and
aac0c6e3
MR
3366 struct glyph.
3367 (produce_composite_glyph): Likewise.
3368
b8ff72fa
SM
3369 * w32term.c (x_draw_composite_glyph_string_foreground):
3370 Adjust for the change of struct glyph_string.
aac0c6e3
MR
3371 (x_draw_glyph_string): Likewise.
3372
3373 * w32uniscribe.c (struct uniscribe_font_info): Include composite.h.
3374 (uniscribe_shape): Use LGSTRING_GLYPH_LEN, not LGSTRING_LENGTH.
3375
3376 * xdisp.c: Include font.h.
3377 (it_props): Delete the entry for Qauto_composed.
3378 (init_iterator): Initialize it->cmp_it.id to -1.
3379 (compute_stop_pos): Call composition_compute_stop_pos.
b8ff72fa 3380 (face_before_or_after_it_pos): Adjust for the change of struct it.
aac0c6e3
MR
3381 (handle_auto_composed_prop): Delete it.
3382 (handle_composition_prop): Handle only static composition.
3383 (next_overlay_string): Remove it->method == GET_FROM_COMPOSITION
3384 from xassert. Initialize it->cmp_it.stop_pos.
b8ff72fa 3385 (push_it): Adjust for the change of struct it.
aac0c6e3
MR
3386 (pop_it): Likewise.
3387 (get_next_element): Delete next_element_from_composition.
3388 (CHAR_COMPOSED_P): New macro.
3389 (get_next_display_element): For automatic composition, get a face
3390 from the font in the glyph-string.
3391 (set_iterator_to_next): For GET_FROM_BUFFER and GET_FROM_STRING,
b8ff72fa 3392 check composition by it->cmp_it.id. Delete GET_FROM_COMPOSITION case.
aac0c6e3
MR
3393 (next_element_from_string): Check if the character at the current
3394 position is composed by CHAR_COMPOSED_P.
3395 (next_element_from_buffer): Likewise.
d66c0241
JB
3396 (next_element_from_composition): Adjust for the change of struct it.
3397 Update it->cmp_it.
b8ff72fa
SM
3398 (dump_glyph): Adjust for the change of struct glyph.
3399 (fill_composite_glyph_string): Adjust for the change of struct
aac0c6e3
MR
3400 it and struct glyph. Don't handle automatic composition here.
3401 (fill_gstring_glyph_string): New function.
3402 (x_get_glyph_overhangs): Handle automatic composition.
b8ff72fa 3403 (BUILD_COMPOSITE_GLYPH_STRING): Adjust for the change of struct glyph.
aac0c6e3
MR
3404 (BUILD_GSTRING_GLYPH_STRING): New macro.
3405 (BUILD_GLYPH_STRINGS): Call BUILD_GSTRING_GLYPH_STRING for
3406 automatic composition.
b8ff72fa 3407 (append_composite_glyph): Adjust for the change of struct it and
aac0c6e3 3408 struct glyph.
b8ff72fa 3409 (x_produce_glyphs): Adjust for the change of struct it.
aac0c6e3 3410
b8ff72fa 3411 * xterm.c (x_draw_composite_glyph_string_foreground): Adjust for
aac0c6e3
MR
3412 the change of struct glyph_string.
3413 (x_draw_glyph_string): Likewise.
3414
34152008-08-29 Glenn Morris <rgm@gnu.org>
3416
3417 * buffer.c (word-wrap): Doc fix.
3418 * xdisp.c (truncate-partial-width-windows): Doc fix.
3419 Increase default to 50.
3420
34212008-08-29 Chong Yidong <cyd@stupidchicken.com>
3422
3423 * xdisp.c (update_tool_bar_unwind): New function.
3424 (update_tool_bar): Temporarily set selected frame before building
3425 tool-bar items.
3426
34272008-08-28 Michael Albinus <michael.albinus@gmx.de>
3428
3429 * dbusbind.c (XD_ERROR, XD_DEBUG_MESSAGE): Use strncpy and
3430 snprintf, respectively.
3431 (xd_append_arg): Convert strings with Fstring_make_unibyte.
3432
34332008-08-28 Chong Yidong <cyd@stupidchicken.com>
3434
3435 * Makefile.in: Revert (undocumented) 2008-08-20 change adding
3436 LDFLAGS to GNUstep CC invocation.
3437
34382008-08-27 Chong Yidong <cyd@stupidchicken.com>
3439
3440 * indent.c (Fvertical_motion): Revert last change. Handle the
3441 general case where we are moving forward, and PT spans multiple
3442 screen lines.
3443
3444 * eval.c (find_handler_clause): Temporarily increase
3445 max-lisp-eval-depth while printing the backtrace buffer, to
3446 guarantee that help-mode code can run.
3447
34482008-08-27 Eli Zaretskii <eliz@gnu.org>
3449
3450 * msdos.c (Fmsdos_remember_default_colors): Don't reverse frame
3451 colors under -rv.
3452 (IT_set_frame_parameters): Don't swap foreground and background
3453 colors if `(reverse . t)' is present in the frame properties.
3454 (internal_terminal_init): Call init_frame_faces only for the
3455 initial frame.
3456
34572008-08-27 Andreas Schwab <schwab@suse.de>
3458
3459 * dired.c (Ffile_attributes): Avoid compiler warning in bitshift.
3460
34612008-08-27 Andreas Schwab <schwab@suse.de>
3462
3463 * search.c (search_buffer): Set char_base to zero only at the end.
3464
34652008-08-27 Kenichi Handa <handa@m17n.org>
3466
b8ff72fa 3467 * fileio.c (report_file_error): Fix handling of multibyte error string.
aac0c6e3
MR
3468
34692008-08-27 Andreas Seltenreich <seltenreich@gmx.de>
3470
3471 * xterm.c (x_term_init): Temporarily hide the partially
3472 initialized terminal while calling vendor-specific-keysyms.
3473
34742008-08-26 Eli Zaretskii <eliz@gnu.org>
3475
3476 * msdos.c (internal_terminal_init): Most initializations done only
3477 once, especially initial_screen_colors[] and termscript open.
3478
34792008-08-26 Chong Yidong <cyd@stupidchicken.com>
3480
3481 * eval.c (Fcondition_case): Doc fix.
3482
3483 * widgetprv.h (EmacsFramePart): Change font member to the new font
3484 struct.
3485
3486 * widget.c: Include character.h and font.h for XSETFONT.
3487 (setup_frame_gcs): Compute X font id from font struct, just once.
3488
34892008-08-26 Eli Zaretskii <eliz@gnu.org>
3490
3491 * term.c (get_named_tty): Fix last change.
3492
34932008-08-26 Chong Yidong <cyd@stupidchicken.com>
3494
3495 * indent.c (Fvertical_motion): If moving forward starting from a
b8ff72fa 3496 multi-line string, move the iterator to the last line of that string.
aac0c6e3
MR
3497
34982008-08-25 Eli Zaretskii <eliz@gnu.org>
3499
3500 * frame.c (do_switch_frame): Mark previously displayed frame as
3501 obscured for FRAME_MSDOS_P frames as well.
3502
35032008-08-24 Eli Zaretskii <eliz@gnu.org>
3504
3505 * frame.c (make_terminal_frame): Initialize f->terminal,
3506 f->terminal->reference_count, and scroll bars on MS-DOS as well.
3507 Set the top frame to newly created frame.
3508 (Fmake_terminal_frame): Reuse the_only_display_info.
3509
3510 * vm-limit.c (get_lim_data) [MSDOS]: Use alternative methods of
3511 estimating available memory.
3512
b97439ce 35132008-08-23 David Reitter <david.reitter@gmail.com>
aac0c6e3
MR
3514
3515 * nsterm.m (ns_draw_window_cursor): Don't call
3516 NSDisableScreenUpdates and NSEnableScreenUpdates on
3517 non-NS_IMPL_COCOA systems.
3518
35192008-08-23 Andreas Schwab <schwab@suse.de>
3520
3521 * process.c (procfs_system_process_attributes): Fix use of
3522 uninitialized variables.
3523
35242008-08-23 Eli Zaretskii <eliz@gnu.org>
3525
3526 * emacs.c (main) [MSDOS]: Call syms_of_xmenu.
3527
3528 * dispnew.c (init_display): Remove MS-DOS specific conditions for
3529 calling tty-set-up-initial-frame-faces.
3530
b8ff72fa
SM
3531 * xmenu.c (Fx_popup_dialog, Fx_popup_menu, xmenu_show):
3532 Allow MSDOS frames along with X frames.
aac0c6e3
MR
3533
3534 * termhooks.h (TERMINAL_ACTIVE_P): Handle output_msdos_raw in
3535 addition to output_termcap.
3536
3537 * xdisp.c (redisplay_internal) [MSDOS]: Don't call set_tty_color_mode.
3538
3539 * termchar.h (FRAME_TTY): Support output_msdos_raw.
3540 (struct tty_display_info) [MSDOS]: Add fields related to mouse
3541 highlight.
3542
3543 * process.c [!subprocesses]: Define QCname.
3544 (syms_of_process): Intern and staticpro it.
3545
3546 * w16select.c (Fw16_set_clipboard_data, Fw16_get_clipboard_data):
b8ff72fa
SM
3547 Adjust for changes in encoding/decoding routines.
3548 Use encode_coding_object and decode_coding_object instead of
aac0c6e3
MR
3549 encode_coding and decode_coding.
3550
b8ff72fa 3551 * sysdep.c (init_sys_modes): Call dos_ttraw with tty_out as argument.
aac0c6e3
MR
3552
3553 * dosfns.c: Include frame.h before termhooks.h.
3554 (dos_cleanup): Use CURTTY ()->termscript instead of a global
3555 variable termscript.
3556
3557 * s/msdos.h (USER_FULL_NAME): Define.
3558 (SYSTEM_PURESIZE_EXTRA): Bump up to 100K.
3559
3560 * editfns.c (USER_FULL_NAME): Define to pw->pw_gecos if undefined.
3561 (Fuser_full_name): Use USER_FULL_NAME instead of a literal
3562 pw->pw_gecos.
3563
3564 * keyboard.c (handle_interrupt) [MSDOS]: Call cursor_to with
3565 SELECTED_FRAME as additional (1st) argument.
3566 (tty_read_avail_input): Handle output_msdos_raw in
3567 addition to output_termcap.
3568
3569 * msdos.c: Include frame.h before termhooks.h.
3570 (mouse_on, mouse_off, mouse_moveto, mouse_init)
3571 (msdos_set_cursor_shape, IT_set_face, IT_write_glyphs)
3572 (show_mouse_face, IT_clear_end_of_line, IT_clear_screen)
3573 (IT_clear_to_end, IT_cursor_to, IT_display_cursor, IT_cmgoto)
3574 (IT_set_terminal_modes, IT_reset_terminal_modes)
3575 (IT_set_frame_parameters): Use tty->termscript instead of a global
3576 variable termscript.
3577 (IT_write_glyphs): Use tty->terminal->terminal_coding instead of a
3578 global variable terminal_coding. Don't refer to
3579 Vnonascii_translation_table.
3580 (internal_terminal_init): Set Vwindow_system in current_kboard.
3581 Don't use TTY_CHAR_INS_DEL_OK. Set Vinitial_window_system.
3582 Announce date and time of session start, if termscript is open.
3583 Don't zero out the_only_display_info (it is done in
b8ff72fa
SM
3584 term.c:init_tty). Open termscript only of not already open.
3585 Log "SCREEN SAVED" here, instead of IT_set_terminal_modes. Init mouse
aac0c6e3
MR
3586 here instead of dos_ttraw. Don't initialize display if this is an
3587 initial tty. Don't set FRAME_FONT.
3588 (Vwindow_system_version): Bump to 23.
3589 (dos_ttraw): Accept a TTY argument; all callers fixed. If mouse
3590 is available, set up mouse_position_hook.
3591 (dos_ttraw, IT_set_terminal_modes): If called with initial
3592 terminal, do nothing.
3593 (IT_set_frame_parameters): Handle the Qtty_type frame
3594 parameter by calling internal_terminal_init.
3595 (dos_set_window_size, show_mouse_face)
3596 (clear_mouse_face, IT_note_mode_line_highlight)
3597 (IT_note_mouse_highlight, IT_update_begin, IT_frame_up_to_date)
3598 (dos_rawgetc): Use tty_display_info instead of x_display_info.
3599 (initialize_msdos_display): New function.
3600 (IT_cursor_to, IT_clear_to_end, IT_clear_screen)
3601 (IT_clear_end_of_line, IT_insert_glyphs, IT_write_glyphs)
3602 (IT_delete_glyphs, IT_ring_bell, IT_reset_terminal_modes)
3603 (IT_set_terminal_modes, IT_set_terminal_window, IT_update_begin):
b8ff72fa 3604 Accept additional argument: a pointer to a frame. Update all callers.
aac0c6e3
MR
3605 (request_sigio, unrequest_sigio): Don't define, now defined on
3606 sysdep.c.
3607 (IT_write_glyphs): Rewrite to use encode_terminal_code.
3608
3609 * term.c [MSDOS]: Include msdos.h.
3610 (init_tty) [MSDOS]: Reuse most of WINDOWSNT branch. Change cpp
3611 conditional to DOS_NT. Allow only one call to this function in a
3612 session. Don't allocate a new struct tty_display_info; instead,
3613 reuse the_only_display_info. Call get_tty_size to get screen
3614 dimensions. Call init_baud_rate to set bad_rate.
3615 (dissociate_if_controlling_tty) [MSDOS]: Ifdef away function body.
3616 (Fsuspend_tty) [MSDOS]: Don't close input and output.
b8ff72fa 3617 (Fresume_tty) [MSDOS]: Don't reopen the TTY; instead, use stdin/stdout.
aac0c6e3
MR
3618 (get_tty_terminal, get_named_tty, Ftty_type)
3619 (Fcontrolling_tty_p): Handle output_msdos_raw in addition to
3620 output_termcap.
b8ff72fa
SM
3621 (Fresume_tty, Fsuspend_tty, init_tty, delete_tty):
3622 Call add_keyboard_wait_descriptor and delete_keyboard_wait_descriptor
2ae37cf0 3623 only when subprocesses are supported.
aac0c6e3
MR
3624
3625 * frame.c (make_terminal_frame) [MSDOS]: Adjust initialization of
3626 f->output_data.x.
3627 (Fmake_terminal_frame) [MSDOS]: Don't allow creation of new
3628 terminal devices.
3629
5582fbc7 3630 * msdos.h: Remove definition of struct x_display_info and struct
aac0c6e3
MR
3631 x_output.
3632 (FRAME_FONT): Use output_data.tty.
3633 (FRAME_FOREGROUND_PIXEL, FRAME_BACKGROUND_PIXEL): Don't define.
b8ff72fa
SM
3634 (struct x_display_info): Rename from display_info. Update all users in
3635 msdos.c.
aac0c6e3 3636 (struct x_output): Remove background_pixel and foreground_pixel.
b8ff72fa 3637 (the_only_display_info): Rename from the_only_x_display.
aac0c6e3
MR
3638 (dos_ttraw): Update prototype.
3639
3640 * Makefile.in (MSDOS_OBJ): Add xmenu.o.
3641 (SOME_MACHINE_LISP): Add ../lisp/term/pc-win.elc.
3642
36432008-08-23 Jason Rumney <jasonr@gnu.org>
3644
3645 * image.c (enum tiff_keyword_index, tiff_format): Add :index keyword.
3646 (fn_TIFFSetDirectory): New library function used.
3647 (init_tiff_functions) [HAVE_NTGUI]: Initialize it.
3648 (tiff_load): Use :index to select among multiple images. Set count
3649 property when multiple images exist.
3650 (gif_format): Use :index, not :image.
3651
36522008-08-23 Chong Yidong <cyd@stupidchicken.com>
3653
3654 * xdisp.c (try_scrolling): Check INT_MAX instead of
3655 MOST_POSITIVE_FIXNUM for maximum integer value. Include limits.h
3656 to obtain INT_MAX.
3657
36582008-08-21 İsmail Dönmez <ismail@namtrac.org> (tiny change)
3659
3660 * xterm.c (x_delete_display): Don't call XrmDestroyDatabase on GTK+.
3661
36622008-08-21 Christian Faulhammer <opfer@gentoo.org> (tiny change)
3663
3664 * Makefile.in (temacs${EXEEXT}): On GNUstep, link to appropriate
3665 GNUstep library location.
3666
36672008-08-21 Chong Yidong <cyd@stupidchicken.com>
3668
3669 * xfaces.c (x_update_menu_appearance): Check validity of menu font
3670 before using it.
3671
3672 * puresize.h (BASE_PURESIZE): Increase to 1250000.
3673
36742008-08-20 Adrian Robert <Adrian.B.Robert@gmail.com>
3675
3676 * nsfns.m (ns-read-file-name): Add casts to avoid warning.
3677 (ns-convert-utf8-nfd-to-nfc): Warn if cannot execute correctly.
3678 * nsfont.m (nsfont_draw): Compare indexed colors to 0, not nil.
3679 * nsterm.h (EmacsView-unlockFocusNeedsFlush:): Add declaration.
3680 (EmacsApp-cursor_blink_handler): Remove declaration.
3681 * nsterm.m (ns_draw_glyph_string): Update first conditional body to
3682 match 01 Feb 2008 changes in xterm.c.
3683 (ns_read_socket): Add cast to avoid warning.
3684 (EmacsApp-application:openFiles:): Don't call replyToOpenOrPrint: on
3685 GNUstep.
3686
36872008-08-20 Chong Yidong <cyd@stupidchicken.com>
3688
3689 * xselect.c (x_get_foreign_selection): Return nil if desired
3690 selection could not be obtained, instead of signalling an error.
3691
36922008-08-20 David Reitter <david.reitter@gmail.com>
3693
3694 * nsfns.m (ns_lisp_to_cursor_type): Replace with generic xfns.c.
3695 * nsterm.m: Remove ns-specific code for cursor blinking.
3696 (ns_draw_window_cursor): Clear cursor properly rather than
3697 redrawing the area. Respect width of bar cursors.
3698 These changes enable the use of generic blink-cursor-mode and
3699 generic cursor types in NS and support smooth cursor movements (do
3700 not blink off after command).
3701 * xdisp.c (get_phys_cursor_geometry): Redraw wider rectangle on
3702 Nextstep, too.
3703
37042008-08-19 Kenichi Handa <handa@m17n.org>
3705
3706 * font.c (Vfont_log_deferred): New variable.
3707 (font_add_log): Check Vfont_log_deferred.
3708 (font_deferred_log): New function.
3709
3710 * font.h (font_deferred_log): Extern it.
3711
3712 * fontset.c (reorder_font_vector): Use encoding charset of fonts
3713 for sorting.
3714 (face_for_char): Use deferred log.
3715
37162008-08-18 Kenichi Handa <handa@m17n.org>
3717
3718 * fontset.c (face_for_char): Add font log.
3719
3720 * font.c (font_add_log): Add the font properties :script, :lang,
3721 and :otf in the log.
3722
37232008-08-17 Chong Yidong <cyd@stupidchicken.com>
3724
3725 * xdisp.c: Remove dead code.
3726 (handle_invisible_prop, next_overlay_string): Defer call to
3727 setup_for_ellipsis.
3728 (handle_stop, set_iterator_to_next): Call setup_for_ellipsis.
3729
37302008-08-15 Chong Yidong <cyd@stupidchicken.com>
3731
3732 * xfaces.c (lookup_derived_face): Properly handle possible zero
3733 return value of get_lface_attributes.
3734 (merge_faces): Don't tell lookup_derived_face to signal an error
3735 if face is not found.
3736
3737 * dired.c (Fdirectory_files): Doc fix.
3738
3739 * process.c (make_process): Initialize kill_without_query struct
3740 member.
3741
37422008-08-15 Eli Zaretskii <eliz@gnu.org>
3743
3744 * w32.c (w32_system_process_attributes) [_MSC_VER < 1300]:
3745 Alternative calculation of totphys for Visual Studio 6.
3746
3747 * w32fns.c [_MSC_VER && _MSC_VER < 1300]: Declare HMONITOR.
3748
3749 * w32.c (_MEMORY_STATUS_EX, MEMORY_STATUS_EX, LPMEMORY_STATUS_EX):
3750 Rename from _MEMORYSTATUSEX, MEMORYSTATUSEX, LPMEMORYSTATUSEX.
3751 All users changed.
3752 (stat): Only root directory passed to GetDriveType. Allow RAM
3753 disk as well as local fixed disk when w32-get-true-file-attributes
3754 is set to `local'.
3755 (CopySid_Proc, EqualSid_Proc, GetLengthSid_Proc): New typedefs.
3756 (equal_sid, get_length_sid, copy_sid): New wrapper functions.
3757 (w32_cached_id, w32_add_to_cache): New functions.
3758 (get_name_and_id): Look account names in the cache before calling
3759 lookup_account_sid.
3760 (g_b_init_get_length_sid, g_b_init_equal_sid, g_b_init_copy_sid):
3761 New initialization flags.
3762 (globals_of_w32): Initialize them to zero.
3763 (w32_system_process_attributes): Use w32_cached_id and
3764 w32_add_to_cache.
3765
37662008-08-14 Lawrence Mitchell <wence@gmx.li>
3767
3768 * lread.c (Fread_char, Fread_char_exclusive): If no character
3769 event is read before timeout is reached, return nil, rather than
3770 converting to a number.
3771
37722008-08-14 Chong Yidong <cyd@stupidchicken.com>
3773
3774 * fns.c (use_dialog_box): Doc fix.
3775
3776 * s/darwin.h: Undefine HAVE_RES_INIT, which appears to be harmful
3777 on OS X.
3778
37792008-08-13 Chong Yidong <cyd@stupidchicken.com>
3780
3781 * frame.c (Qns_parse_geometry): New var.
3782 (Fx_parse_geometry): For HAVE_NS, call ns-parse-geometry.
3783
37842008-08-11 Chong Yidong <cyd@stupidchicken.com>
3785
3786 * xdisp.c (x_produce_glyphs): Handle the case when font has no
3787 space character in calculating tabs.
3788
37892008-08-11 Dan Nicolaescu <dann@ics.uci.edu>
3790
3791 * Makefile.in (bootstrap-emacs): Use ln -f in the CANNOT_DUMP case.
3792
37932008-08-10 Glenn Morris <rgm@gnu.org>
3794
3795 * process.c (procfs_system_process_attributes): Use EMACS_INTs to
3796 silence gcc "limited range of data type" warnings in some
3797 make_fixnum_or_float calls.
3798
37992008-08-09 Eli Zaretskii <eliz@gnu.org>
3800
3801 * w32.c (w32_system_process_attributes): If the process does not
3802 exist, return nil.
3803
3804 * w32.c: Include thelp32.h, psapi.h and coding.h.
3805 (_MEMORYSTATUSEX, _PROCESS_MEMORY_COUNTERS_EX): New struct
3806 declarations.
3807 (CreateToolhelp32Snapshot_Proc, Process32First_Proc)
3808 (Process32Next_Proc): New typedefs.
3809 (g_b_init_create_toolhelp32_snapshot, g_b_init_process32_first)
3810 (g_b_init_process32_next, g_b_init_open_thread_token)
3811 (g_b_init_impersonate_self, g_b_init_revert_to_self)
3812 (g_b_init_get_process_memory_info, g_b_init_global_memory_status)
3813 (g_b_init_get_process_working_set_size)
3814 (g_b_init_global_memory_status_ex): New static variables.
3815 (globals_of_w32): Initialize them.
3816 (create_toolhelp32_snapshot, process32_first, process32_next)
3817 (open_thread_token, impersonate_self, revert_to_self)
3818 (get_process_memory_info, get_process_working_set_size)
3819 (global_memory_status, global_memory_status_ex): New wrapper
3820 functions.
3821 (w32_list_system_processes, w32_system_process_attributes)
3822 (enable_privilege, restore_privilege, ltime, process_times):
3823 New functions.
3824 (convert_time_raw): New function.
3825 (convert_time): Remove conversion of FILETIME into time in 100
3826 nsec units, call convert_time_raw instead.
3827
3828 * process.h (w32_list_system_processes, w32_system_process_attributes):
3829 Add prototypes.
3830 (Qeuid, Qegid, Qcomm, Qstate, Qppid, Qpgrp, Qsess, Qttname)
3831 (Qminflt, Qmajflt, Qcminflt, Qcmajflt, Qutime, Qstime, Qcutime)
3832 (Qpri, Qnice, Qthcount, Qstart, Qvsize, Qrss, Qargs, Quser, Qgroup)
3833 (Qetime, Qpcpu, Qpmem, Qtpgid, Qcstime): Add extern declarations.
3834
3835 * process.c (Fsystem_process_attributes): Doc fix.
3836
38372008-08-08 Chong Yidong <cyd@stupidchicken.com>
3838
3839 * xdisp.c (move_it_to): When stopping at a charpos, check if that's
3840 a continued multi-char glyph; if so, advance to the actual glyph.
3841
38422008-08-07 Dan Nicolaescu <dann@ics.uci.edu>
3843
3844 * s/darwin.h (OTHER_FILES): Do not define here, defined in config.in.
3845
3846 * Makefile.in (ALL_OBJC_CFLAGS): New variable.
3847 (.m.o): Use it.
3848 * config.in: Regenerate.
3849
38502008-08-07 Chong Yidong <cyd@stupidchicken.com>
3851
3852 * xdisp.c (redisplay_window): Revert last change.
3853 (try_window): Check bottom scroll margin too.
3854
38552008-08-06 Adrian Robert <Adrian.B.Robert@gmail.com>
3856
3857 * config.in: Regenerate.
3858
3859 * Makefile.in (emacs): Remove ifndef NS conditional for 'emacs
3860 -list-load-path-shadows'.
3861 (nsgui.h): Reduce number of things depending on it.
3862
38632008-08-06 Chong Yidong <cyd@stupidchicken.com>
3864
3865 * xdisp.c (try_scrolling): Use iterator to find the scroll margin,
3866 instead of window-end which does the wrong thing at eob.
3867 (try_cursor_movement): Minor optimization.
3868 (redisplay_window): If scroll margin is defined, don't assume
3869 window doesn't need scrolling.
3870
38712008-08-06 Adrian Robert <Adrian.B.Robert@gmail.com>
3872
3873 * config.in: Regenerate.
3874
3875 * Makefile.in: Move nsXXX.m dependencies into big alphabetical list.
3876 (mostlyclean): Don't delete *.d under NS.
3877
3878 * nsterm.h (NS_HAVE_INTEGER): Change to NS_HAVE_NSINTEGER.
3879
38802008-08-06 Kenichi Handa <handa@m17n.org>
3881
3882 * xfont.c (xfont_list_family): Return a list of symbols, not strings.
3883
38842008-08-06 Andreas Schwab <schwab@suse.de>
3885
3886 * config.in: Regenerate.
3887
38882008-08-05 Chong Yidong <cyd@stupidchicken.com>
3889
3890 * xdisp.c (redisplay_window): Don't enforce scroll-margin when
3891 forcing a window start.
3892
3893 * fileio.c (Vauto_save_list_file_name): Move here from file.el.
3894 (auto_save_1): Update modtime when auto-save-list-file-name is on.
3895
38962008-08-04 Adrian Robert <Adrian.B.Robert@gmail.com>
3897
3898 * emacs.c (main): Under NS, set working dir to HOME when get a "psn"
3899 argument.
3900
39012008-08-05 Juanma Barranquero <lekktu@gmail.com>
3902
3903 * buffer.c (syms_of_buffer) <scroll-up-aggressively>:
3904 <scroll-down-aggressively, before-change-functions>:
3905 <after-change-functions>: Reflow docstrings.
3906
39072008-08-04 Adrian Robert <Adrian.B.Robert@gmail.com>
3908 Ken Raeburn <raeburn@gnu.org>
3909
3910 Dock menu customization, based on a patch by Ken Raeburn, plus some
3911 other fixes.
3912 * nsmenu.m (dockMenu): New variable.
3913 (EmacsDialog -clicked:): Fix mistake in change of 2008-07-17.
3914
3915 * nsterm.h (dockMenu): Declare.
3916
3917 * nsterm.m (KEY_NS_NEW_FRAME): New definition.
3918 (ns_term_init): Initialize dockMenu.
3919 (EmacsApp -newFrame:, -applicationDockMenu:): New methods.
3920 (EmacsView -windowShouldClose:): Don't behave specially if <= 1 frame
3921 left.
3922
3923 * lisp.h (LSB_TAG): Use on DARWIN_OS, not NS_IMPL_COCOA.
3924
39252008-08-04 Chong Yidong <cyd@stupidchicken.com>
3926
3927 * nsterm.h: Test directly for NS_HAVE_INTEGER before defining it.
3928
3929 * config.in: Regenerate.
3930
39312008-08-04 Seiji Zenitani <zenitani@mac.com>
3932
3933 * nsfns.m (x-create-frame): Set the frame parameter alpha to nil.
3934
39352008-08-04 Chong Yidong <cyd@stupidchicken.com>
3936
3937 * nsterm.h (find_and_call_menu_selection): Fix prototype.
3938
39392008-08-04 Adrian Robert <Adrian.B.Robert@gmail.com>
3940
3941 * emacs.c (main: unexec_init_emacs_zone): Call if on DARWIN_OS.
3942
3943 * keyboard.h: Comment an #endif.
3944
3945 * lisp.h (have_menus_p): Adjust comment.
3946
3947 * menu.c (find_and_return_menu_selection): Fix comparison with
3948 client_data.
3949
3950 * nsmenu.m (popup_activated_flag): New variable.
3951 (popup_activated): New function.
3952 (menu-or-popup-active-p): New exported lisp definition.
3953 (ns_popup_menu): Set popup_activated_flag. Call discard_menu_items()
3954 when popup done.
3955 (ns_popup_dialog): Set popup_activated_flag.
3956
3957 * nsterm.m (EmacsView -conversationIdentifier): Use NSInteger
3958 version for GNUstep (handled by conditional typedef in nsterm.m).
3959 (ns_get_color): Remove special-casing for "darkblue", "dark blue" (now
3960 in rgb.txt).
3961
3962 * process.c (init_process): Use DARWIN_OS, not DARWIN.
3963
3964 * sysselect.h: Conditionalize init_process undef on DARWIN_OS.
3965
3966 * syssignal.h (FORWARD_SIGNAL_TO_MAIN_THREAD): Do it also under NS.
3967
3968 * xdisp.c (redisplay_internal, note_mouse_highlight): Under NS,
3969 shortcircuit if popup_activated like GTK and X toolkit.
3970
3971 * m/inter386.h: Change DARWIN to DARWIN_OS.
3972
3973 * s/darwin.h: Add #define DARWIN_OS. Get rid of C_SWITCH_SYSTEM def.
3974 Change LIBS_MACGUI to LIBS_NSGUI. Move temacs-conditionalized defs
3975 closer to C_SWITCH_SYSTEM_TEMACS so usage is understood. Expand
3976 comment on NO_SOCK_SIGIO.
3977
39782008-08-03 Chong Yidong <cyd@stupidchicken.com>
3979
3980 * nsterm.m (windowDidResize): Remove stopModal call.
3981
39822008-08-03 Andreas Schwab <schwab@suse.de>
3983
3984 * vm-limit.c (get_lim_data) [HAVE_GETRLIMIT && RLIMIT_AS]: Define.
3985 (check_memory_limits): Don't handle HAVE_GETRLIMIT here.
3986
39872008-08-02 Chong Yidong <cyd@stupidchicken.com>
3988
3989 * vm-limit.c (check_memory_limits): Don't use getrlimit on cygwin.
3990 Don't use uninitialized pointer variable when using getrlimit.
3991
39922008-08-02 Jason Rumney <jasonr@gnu.org>
3993
3994 * w32font.c (compute_metrics): Don't mess with glyph_idx setting here.
3995
39962008-08-02 Eli Zaretskii <eliz@gnu.org>
3997
3998 * alloc.c (NSTATICS): Bump to 0x640.
3999
4000 * s/gnu-linux.h (HAVE_PROCFS, LISTPROC, PROCATTR): New defines.
4001
4002 * lisp.h: Add prototype for directory_files_internal.
4003
4004 * process.c (Fsystem_processes_list, Fsystem_process_attributes):
4005 New functions.
4006 (syms_of_process): Defsubr them. Add initializations for various
4007 Q* symbols used in procfs_system_process_attributes.
4008 (procfs_list_system_processes, procfs_system_process_attributes)
4009 [HAVE_PROCFS]: New functions.
4010 (time_from_jiffies, ltime_from_jiffies, get_up_time, procfs_ttyname)
4011 (procfs_get_total_memory): New functions.
4012
40132008-08-01 Juanma Barranquero <lekktu@gmail.com>
4014
4015 * xfaces.c (Fx_load_color_file): Fix previous change;
4016 it is #ifdef WINDOWSNT, not WINDOWS_NT.
4017
40182008-08-01 Michael Albinus <michael.albinus@gmx.de>
4019
4020 * dbusbind.c (xd_read_message): Handle D-Bus error messages.
4021
40222008-08-01 Adrian Robert <Adrian.B.Robert@gmail.com>
4023
4024 * nsterm.h (NSInteger, NSUInteger): Add defines for non-Leopard.
4025
40262008-08-01 Chong Yidong <cyd@stupidchicken.com>
4027
4028 * nsfns.m (ns_frame_parm_handlers): Add empty entry for x_set_alpha.
4029
4030 * nsterm.m (EmacsApp -application:openFiles:): GNUstep does not
4031 define NSApplicationDelegateReplySuccess.
4032 (EmacsView -converstationIdentifier): Use long instead of
4033 NSInteger for GNUstep, since it doesn't have NSInteger.
4034
4035 * xmenu.c: Revert last change.
4036
4037 * keyboard.h: Fix last change.
4038
40392008-08-01 Juanma Barranquero <lekktu@gmail.com>
4040
4041 * xfaces.c (x-load-color-file): Use RGB() instead of manually shifting
4042 on Windows.
4043
40442008-08-01 Adrian Robert <Adrian.B.Robert@gmail.com>
4045
4046 Warning clearing and clean-up in NS port.
4047 * keyboard.h (xmalloc_widget_value, digest_single_submenu):
4048 Add prototypes.
4049 * nsgui.h (FACE_DEFAULT): Remove, unused.
4050 (XGCValues): Change colors to unsigned long.
4051 * nsterm.h (EmacsApp): Add declaration of all methods implemented in
4052 nsterm.m.
4053 (EmacsMenu -addItemWithWidgetValue:): Change to use NSMenuItem class.
4054 (ns_list_fonts): Remove, unused.
4055 (ns_font_to_xlfd, ns_fontname_to_xlfd): Drop prototypes.
4056 * nsfns.m (interpret_services_menu): Use NSMenuItem class.
4057 * nsfont.m (nsfont_open): Fix cast error in glyphs,metrics alloc.
4058 (nsfont_draw): Compare face colors to 0, not nil.
4059 * nsmenu.m (struct widget_value): Drop unneeded declaration.
4060 (EmacsMenu -addItemWithWidgetValue:, -fillWithWidgetValue:)
4061 (-addSubmenuWithTitle:): Use NSMenuItem class.
4062 (ns_popup_menu): Use NO, not NULL, for enabled setting.
4063 * nsterm.m (ns_draw_glyph_string): Don't compare font to ~0.
4064 (ns_clip_to_row): Make gc arg a BOOL.
4065 (ns_draw_fringe_bitmap, ns_draw_window_cursor): Use YES, NO in
4066 ns_clip_to_row() call.
4067 (ns_draw_glyph_string): Drop face comparison to ~0 (no longer
4068 used). Cast FRAME_FONT assignments.
4069 (ns_read_socket): Cast call to EmacsApp-fulfillService:withArg:.
4070 (ns_string_to_lispmod): Change arg to const char.
4071 (ns_term_init): Use NSMenuItem class.
4072 (EmacsApp -openFile:): Move to different section of file.
4073 (EmacsApp -application:openFiles:): Don't return a value, call
4074 -replyToOpenOrPrint:.
4075 (EmacsView -keyDown:): Fix up cast.
4076 (EmacsView -converstationIdentifier): Use NSInteger instead of long.
4077 (EmacsView -menuDown:): Cast tag in call to
4078 find_and_call_menu_selection().
4079 (ns_list_fonts): Remove, unused.
4080 (ns_font_to_xlfd): Make static. Cast result of UTF8String.
4081 (ns_fontname_to_xlfd): Make static.
4082 * w32menu.c (xmalloc_widget_value, digest_single_submenu):
4083 Remove prototypes (now in keyboard.h).
4084 (next_menubar_widget_id): Remove, unused.
4085 * xmenu.c (xmalloc_widget_value, digest_single_submenu):
4086 Remove prototypes (now in keyboard.h).
4087 * xfaces.c (ns_list_fonts, w32_list_fonts): Remove, unused.
4088
40892008-08-01 Dan Nicolaescu <dann@ics.uci.edu>
4090
4091 * Makefile.in (dispnew.o, gtkutil.o, sound.o, atimer.o)
4092 (floatfns.o): Depend on syssignal.h.
4093 (term.o): Depend on syssignal.h, systty.h, and $(INTERVAL_SRC).
4094
4095 * systty.h: Fix previous change that removed BSD_TERMIOS.
4096 Add comments to #ifdefs.
4097
40982008-08-01 Adrian Robert <Adrian.B.Robert@gmail.com>
4099
4100 * w32fns.c (w32-load-color-file): Remove.
4101 (x-open-connection): Use renamed Fx_load_color_file.
4102 * xfaces.c (x-load-color-file): Add.
4103 * nsterm.m (ns_initialize): Load colors from etc/rgb.txt instead of
4104 Emacs.clr.
4105 (hide_hourglass): BLOCK_INPUT before UNBLOCK.
4106
41072008-07-31 Michael Albinus <michael.albinus@gmx.de>
4108
4109 * dbusbind.c (Fdbus_call_method_asynchronously)
4110 (Fdbus_method_error_internal): New defuns.
4111 (xd_read_message): Handle also reply messages.
4112 (Vdbus_registered_functions_table): Extend docstring.
4113
41142008-07-31 Juanma Barranquero <lekktu@gmail.com>
4115
4116 * keyboard.c (gobble_input): Fix previous change.
4117
41182008-07-31 Dan Nicolaescu <dann@ics.uci.edu>
4119
4120 * bitmaps/README:
4121 * xfns.c:
4122 * termcap.c:
4123 * term.c:
4124 * syswait.h:
4125 * systty.h:
4126 * systime.h:
4127 * syssignal.h:
4128 * sysdep.c:
4129 * process.h:
4130 * process.c:
4131 * print.c:
4132 * ndir.h:
4133 * lread.c:
4134 * keyboard.c:
4135 * getpagesize.h:
4136 * floatfns.c:
4137 * fileio.c:
4138 * emacs.c:
4139 * doc.c:
4140 * dispnew.c:
4141 * dired.c:
4142 * data.c:
4143 * callproc.c:
4144 * buffer.c:
4145 * README:
4146 * Makefile.in:
4147 * s/template.h:
4148 * s/msdos.h:
4149 * m/vax.h: Remove VMS support.
4150 * s/vms.h:
4151 * vlimit.h:
4152 * uaf.h:
4153 * temacs.opt:
4154 * param.h:
4155 * ioctl.h: Remove file.
4156
41572008-07-31 Dan Nicolaescu <dann@ics.uci.edu>
4158
4159 * s/ms-w32.h (MULTI_KBOARD): Remove.
4160 * xterm.c:
4161 * xselect.c:
4162 * xfns.c:
4163 * window.c:
4164 * w32term.c:
4165 * w32fns.c:
4166 * terminal.c:
4167 * termhooks.h:
4168 * term.c:
4169 * sysdep.c:
4170 * keyboard.h:
4171 * keyboard.c:
4172 * frame.h:
4173 * frame.c:
4174 * frame.c: Remove references to MULTI_KBOARD, it is now the default.
4175 * config.in: Regenerate.
4176
41772008-07-30 Jason Rumney <jasonr@gnu.org>
4178
4179 * w32font.h (struct w32font_info): Use unicode version of textmetrics.
4180
4181 * w32font.c (w32font_encode_char): Leave as unicode if in range.
4182 (w32font_open_internal): Get unicode version of textmetrics.
4183 Don't enable or disable glyph indices here.
4184 (w32font_open): Disable use of glyph indices.
4185
4186 * w32uniscribe.c (uniscribe_open): Enable use of glyph indices.
4187
41882008-07-30 Chong Yidong <cyd@stupidchicken.com>
4189
4190 * minibuf.c (Vread_buffer_function): Doc fix.
4191
41922008-07-30 John Paul Wallington <jpw@pobox.com>
4193
4194 * minibuf.c (read_buffer_completion_ignore_case): New var.
4195 (Fread_buffer): Use it.
4196
41972008-07-30 Dan Nicolaescu <dann@ics.uci.edu>
4198
4199 * systty.h (sensemode): Remove empty #if. Remove reference to
4200 BSD_TERMIOS, unused.
4201
4202 * sysdep.c: Remove reference to DGUX.
4203 (closedir): Remove reference to BROKEN_CLOSEDIR, unused.
4204
4205 * config.in: Regenerate.
4206
42072008-07-30 Jason Rumney <jasonr@gnu.org>
4208
4209 * w32uniscribe.c (uniscribe_encode_char): Fix glyph buffer size.
4210
42112008-07-29 Jason Rumney <jasonr@gnu.org>
4212
4213 * w32uniscribe.c (uniscribe_shape): Avoid using context if cache
4214 is populated.
4215 (uniscribe_encode_char): Always use uniscribe.
4216 Avoid using context if cache is populated.
4217
42182008-07-29 Jan Djärv <jan.h.d@swipnet.se>
4219
4220 * xmenu.c (Fx_menu_bar_open_internal): Use activate_item signal to
4221 open menu.
4222
4223 * gtkutil.c (menu_nav_ended): Remove.
4224 (create_menus): Remove signal connect for menu_nav_ended.
4225
42262008-07-28 Chong Yidong <cyd@stupidchicken.com>
4227
4228 * xdisp.c (redisplay_window): Check return value of
4229 compute_window_start_on_continuation_line before forcing a window
4230 start.
4231
42322008-07-28 Jason Rumney <jasonr@gnu.org>
4233
4234 * w32font.c (w32font_text_extents): Use w32_metric_cache consistently.
4235
4236 * w32term.c (w32_enable_unicode_output, cleartype_active):
4237 Remove obsolete display options.
4238 (x_draw_glyph_string_background): Don't use old cleartype_active
4239 workaround.
4240 (w32_initialize): Remove cleartype_active initialization.
4241 (syms_of_w32term): Remove w32_enable_unicode_output initialization.
4242
42432008-07-28 Andreas Schwab <schwab@suse.de>
4244
4245 * lisp.h (init_weak_hash_tables, syms_of_font)
4246 (xd_read_queued_messages, syms_of_dbusbind): Declare.
4247 (remove_hash_entry): Don't declare.
4248 * eval.c (maybe_call_debugger): Make static and move before use.
4249 * gtkutil.c: Include <X11/Xft/Xft.h> if HAVE_XFT.
4250 * xdisp.c: Include "gtkutil.h" if USE_GTK.
4251 * xterm.h (x_set_frame_alpha): Declare.
4252
42532008-07-28 Jan Djärv <jan.h.d@swipnet.se>
4254
4255 * gtkutil.c (menu_nav_ended): Revert change from 2008-07-24.
4256 (create_menus): Connect selection-done to menu_nav_ended.
4257
42582008-07-27 Adrian Robert <Adrian.B.Robert@gmail.com>
4259
4260 * nsfns.m (x-create-frame): Add copy of parms argument to beginning.
4261 Set Vx_resource_name to a fallback. Replace read of 'buffered'
4262 parameter with read of 'alpha' one.
4263 (Qns_frame_parameter): Remove.
5582fbc7 4264 * nsselect.m (selection-coding-system)
aac0c6e3
MR
4265 (next-selection-coding-system, Vselection_coding_system)
4266 (Vnext_selection_coding_system): Drop.
4267
42682008-07-27 Adrian Robert <Adrian.B.Robert@gmail.com>
4269
4270 * nsfns.m (do-applescript, do_applescript): Rename to
4271 ns-do-applescript, ns_do_applescript, and move within file.
4272
42732008-07-27 Dan Nicolaescu <dann@ics.uci.edu>
4274
4275 Remove support for Mac Carbon.
4276 * mactoolbox.c:
4277 * macterm.h:
4278 * macterm.c:
4279 * macselect.c:
4280 * macmenu.c:
4281 * macgui.h:
4282 * macfns.c:
4283 * mac.c: Remove file.
4284 * s/darwin.h:
4285 * m/intel386.h:
4286 * xfaces.c:
4287 * xdisp.c:
4288 * window.c:
4289 * tparam.c:
4290 * termhooks.h:
4291 * termcap.c:
4292 * term.c:
4293 * syssignal.h:
4294 * sysselect.h:
4295 * sysdep.c:
4296 * process.c:
4297 * lread.c:
4298 * lisp.h:
4299 * keyboard.c:
4300 * image.c:
4301 * fringe.c:
4302 * frame.h:
4303 * frame.c:
4304 * fontset.c:
4305 * font.h:
4306 * font.c:
4307 * fns.c:
4308 * fileio.c:
4309 * emacs.c:
4310 * dispnew.c:
4311 * dispextern.h:
4312 * config.in:
4313 * atimer.c:
2ae37cf0 4314 * Makefile.in: Remove code for Carbon.
aac0c6e3 4315
f0131492 43162008-07-26 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
aac0c6e3
MR
4317
4318 * macterm.c (XDrawLine) [USE_MAC_IMAGE_IO]: Remove spurious return.
4319
43202008-07-26 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
4321
4322 * macterm.h (kCGBitmapByteOrder32Host): New define for
4323 non-universal SDKs.
4324
4325 * image.c (mac_create_cg_image_from_image, image_load_image_io)
4326 [USE_MAC_IMAGE_IO]: Remove conditionals for kCGBitmapByteOrder32Host.
4327
4328 * macterm.c (XDrawLine, XCreatePixmapFromBitmapData)
4329 [USE_MAC_IMAGE_IO]: Remove conditionals for kCGBitmapByteOrder32Host.
4330
43312008-07-26 David Robinow <drobinow@gmail.com> (tiny change)
4332
4333 * w32inevt.c: Include dispextern.h.
4334
43352008-07-26 Andreas Schwab <schwab@suse.de>
4336
4337 * print.c (print_object): Fix off-by-one in last change.
4338
43392008-07-25 Juanma Barranquero <lekktu@gmail.com>
4340
4341 * term.c (syms_of_term): Don't initialize default_orig_pair,
4342 default_set_foreground and default_set_background on Windows.
4343
43442008-07-25 Jason Rumney <jasonr@gnu.org>
4345
4346 * w32uniscribe.c (uniscribe_shape): Pass NULL for control arg to
4347 ScriptItemize. Clean up return value checking. Remove unused
4348 variables.
4349 (uniscribe_encode_char): Encode non-BMP characters with uniscribe
4350 shaping engine.
4351
4352 * w32font.c (w32font_has_char): Handle the case where we can't
4353 determine the script for a character.
4354
43552008-07-25 Chong Yidong <cyd@stupidchicken.com>
4356
4357 * term.c (syms_of_term): Initialize default_orig_pair,
4358 default_set_foreground, and default_set_background.
4359
4360 * getloadavg.c (nl): Rename to name_list to avoid ncurses.h
4361 clash (bug#86).
4362 (getloadavg): Callers changed.
4363
4364 * image.c (svg_load_image): Fix last change.
4365 (svg_load_image): Use rsvg_handle_get_dimensions to check that
4366 image size is valid. Use g_object_unref instead of deprecated
4367 rsvg_handle_free to free rsvg handle.
4368 (x_from_xcolors): Don't initialize pixmap (silence compiler).
4369
43702008-07-25 Jason Rumney <jasonr@gnu.org>
4371
4372 * w32font.c (w32font_encode_char): Encode characters outside BMP as
4373 surrogates before looking up glyph index.
4374 (w32font_text_extents): Encode as surrogates if falling back to
4375 functions that need UTF-16 wide chars.
4376
4377 * w32uniscribe.c (uniscribe_encode_char): Encode characters outside
4378 BMP as surrogates before looking up glyph index.
4379
43802008-07-25 Chong Yidong <cyd@stupidchicken.com>
4381
4382 * image.c (svg_load_image): Check for failure in return value of
4383 rsvg_handle_get_pixbuf. Free rsvg handle when done.
4384
43852008-07-25 Jason Rumney <jasonr@gnu.org>
4386
4387 * w32font.c (Fx_select_font): Reverse sense of second arg.
4388
43892008-07-24 Stefan Monnier <monnier@iro.umontreal.ca>
4390
4391 * syntax.c (struct lisp_parse_state, char_quoted, inc_bytepos)
4392 (dec_bytepos, find_defun_start): Use EMACS_INT for buffer positions.
4393
4394 * puresize.h (PURESIZE_CHECKING_RATIO): New macro.
4395 (PURESIZE): Use it.
4396
43972008-07-24 Dan Nicolaescu <dann@ics.uci.edu>
4398
4399 * m/amdx86-64.h (HAVE_LIB64_DIR): Consolidate ifdefs.
4400 * m/alpha.h (TEXT_END):
4401 * m/ibmrs6000.h (TEXT_END):
4402 * m/macppc.h (TEXT_END):
4403 * s/darwin.h (TEXT_END):
4404 * s/msdos.h (TEXT_END): Remove, unused.
4405 * s/gnu-linux.h (BSD_PGRPS): Add a comment.
4406 * s/cygwin.h: Remove comment.
4407
4408 * ecrt0.c (NODOT_GLOBAL_START): Remove code, unused.
4409 (DOT_GLOBAL_START): Remove conditional, redundant for CRT0_DUMMIES.
4410 * m/intel386.h (DOT_GLOBAL_START):
4411 * m/vax.h (DOT_GLOBAL_START): Remove, redundant with CRT0_DUMMIES.
4412 (USG): Remove, file not used on USG platforms.
4413
4414 * Makefile.in (HAVE_X11): Remove empty #else.
4415
44162008-07-24 Andreas Schwab <schwab@suse.de>
4417
4418 * fileio.c (Finsert_file_contents): Properly adjust undo list
4419 after format conversion.
4420
44212008-07-24 Jan Djärv <jan.h.d@swipnet.se>
4422
4423 * gtkutil.c (xg_get_font_name): Cast w to GTK_FONT_SELECTION_DIALOG.
4424 (menu_nav_ended): Remove.
4425 (create_menus): Remove signal connect for menu_nav_ended.
4426 (xg_update_menubar): Also take deactivate_cb as parameter, pass it to
4427 create_menus.
4428 (xg_modify_menubar_widgets): Pass deactivate_cb to xg_update_menubar.
4429
44302008-07-23 Jason Rumney <jasonr@gnu.org>
4431
4432 * w32font.c (w32_enumfont_pattern_entity): Return height consistent
4433 with opened font.
4434 (w32font_open): Set font type to gdi.
4435
4436 * w32uniscribe.c (uniscribe_open): Set font type to uniscribe.
4437
44382008-07-23 Dan Nicolaescu <dann@ics.uci.edu>
4439
4440 * s/usg5-4.h (ADDR_CORRECT): Remove, unused.
4441 * unexaix.c (ADDR_CORRECT): Remove conditional, the only user
4442 defines it.
4443 * unexec.c (ADDR_CORRECT): Define unconditionally.
4444
4445 * m/ibmrs6000.h (C_SWITCH_MACHINE): Remove.
4446
4447 * unexec.c: Remove code depending on !COFF and USG, the file is
4448 not used for such systems.
4449
4450 * s/netbsd.h (A_TEXT_OFFSET, A_TEXT_SEEK):
4451 * s/freebsd.h (A_TEXT_OFFSET, A_TEXT_SEEK): Remove, unused.
4452 (LD_SWITCH_SYSTEM_1): Remove, update users.
4453
4454 * s/darwin.h (DATA_END):
4455 * m/intel386.h (DATA_END):
4456 * m/ibmrs6000.h (DATA_END):
4457 * m/alpha.h (DATA_END): Remove, unused.
4458
4459 * config.in: Regenerate.
4460 * s/ms-w32.h (subprocesses): Define unconditionally.
4461 * s/template.h (subprocesses): Update comment.
4462 * s/vms.h (subprocesses):
4463 * s/usg5-4.h (subprocesses):
4464 * s/hpux10-20.h (subprocesses):
4465 * s/gnu-linux.h (subprocesses):
4466 * s/cygwin.h (subprocesses):
4467 * s/bsd-common.h (subprocesses):
4468 * s/aix4-2.h (subprocesses):
4469 * s/darwin.h (subprocesses): Do not define, defined by default now.
4470
4471 * Makefile.in (C_SWITCH_SITE, LD_SWITCH_SITE): Remove, unused.
4472 Remove all references.
4473 (temacs): Add GNUstep specific ld flags.
4474
4475 * nsterm.m (syms_of_nsterm): Provide ns, not ns-windowing,
4476 similarly to what X does.
4477
44782008-07-22 Adrian Robert <Adrian.B.Robert@gmail.com>
4479
4480 * nsfns.m (x-list-fonts): Remove.
4481 (syms_of_nsfns): Drop the x-list-fonts declaration.
4482 * nsterm.m: Get rid of remaining "//" comments.
4483
44842008-07-22 Chong Yidong <cyd@stupidchicken.com>
4485
4486 * xselect.c (Fx_rotate_cut_buffers_internal): Doc fix.
4487
4488 * nsselect.m (Fns_selection_exists_p, Fns_selection_owner_p)
4489 (Fx_get_selection_internal, Fns_rotate_cut_buffers_internal)
4490 (Fns_own_selection_internal, Fx_disown_selection_internal)
4491 (Fns_get_cut_buffer_internal, Fns_store_cut_buffer_internal):
4492
4493 * nsmenu.m (Fns_reset_menu, Fx_popup_menu): Change to use 'doc: /*
4494 ... */' style of docstrings. Doc fixes.
4495
44962008-07-22 Dan Nicolaescu <dann@ics.uci.edu>
4497
4498 * terminfo.c (UP, BC, PC): Undo previous change.
4499
4500 * nsfns.m: Rename ns prefixed functions/variables to the
4501 corresponding x versions. Update references.
4502
45032008-07-22 Stefan Monnier <monnier@iro.umontreal.ca>
4504
4505 * syntax.c (char_quoted): Check "charpos > beg" before decrementing.
4506
45072008-07-22 Dan Nicolaescu <dann@ics.uci.edu>
4508
4509 * nsfns.m (x_set_menu_bar_lines, x_set_tool_bar_lines):
4510 Remove forwarding functions.
4511 (ns_set_menu_bar_lines): Rename to x_set_menu_bar_lines, make
4512 non-static.
4513 (ns_set_tool_bar_lines): Rename to x_set_tool_bar_lines, make
4514 non-static.
4515 (ns_frame_parm_handlers): Use the new names.
4516 (syms_of_nsfns): Move to the end of file.
4517
4518 * nsterm.m (syms_of_nsterm): Move to the end of file.
4519
4520 * dispnew.c (init_display): Remove code for X10.
4521
45222008-07-22 Jason Rumney <jasonr@gnu.org>
4523
4524 * w32proc.c (Fw32_long_file_name): Don't append dir separator to
4525 bare drive.
4526
45272008-07-22 Adrian Robert <Adrian.B.Robert@gmail.com>
4528
4529 * nsterm.m (syms_of_nsterm): Remove debugging println.
4530
45312008-07-22 David Reitter <david.reitter@gmail.com>
4532
4533 * nsfns.m (do_applescript, F_do_applescript): NS version of the
4534 Carbon implementation of the same functionality: execute arbitrary
4535 AppleScript code.
4536
45372008-07-21 Adrian Robert <Adrian.B.Robert@gmail.com>
4538
4539 * nsfns.m (Fx_create_frame, Fx_read_file_name, Fx_get_resource)
4540 (Fx_set_resource, Fx_set_alpha, Fx_server_max_request_size)
4541 (Fx_server_vendor, Fx_server_version, Fx_display_screens)
4542 (Fx_display_mm_height, Fx_display_mm_width)
4543 (Fx_display_backing_store, Fx_display_visual_class)
4544 (Fx_display_save_under, Fx_open_connection)
4545 (Fx_close_connection, Fx_hide_emacs, Fx_font_name)
4546 (Fx_list_colors, Fx_perform_service, Fx_color_defined_p)
4547 (Fx_color_values, Fxw_display_color_p, Fx_display_grayscale_p)
4548 (Fx_display_pixel_width, Fx_display_pixel_height)
4549 (Fx_display_usable_bounds, Fx_display_planes)
4550 (Fx_display_color_cells, Vns_icon_type_alist): Change to use 'doc: /*
4551 ... */' style of docstrings.
4552
45532008-07-21 Dan Nicolaescu <dann@ics.uci.edu>
4554
4555 * m/mips.h (LOAD_AVE_TYPE, LOAD_AVE_CVT): Do not define, not used
4556 on this platform.
4557 (mips):
4558 * m/iris4d.h (mips): Do not define.
4559 * sysdep.c (init_sys_modes): Use __mips__ instead of mips.
4560
4561 * m/ibmrs6000.h (LD_SWITCH_SITE): Remove.
4562
4563 * image.c:
4564 * nsfns.m:
4565 * nsselect.m:
4566 * nsterm.h:
4567 * nsterm.m: Rename ns prefixed functions/variables to the
4568 corresponding x versions. Update references.
4569
4570 * m/ibms390x.h (NO_REMAP): Do not undefine.
4571
4572 * m/amdx86-64.h: Use SOLARIS2 instead of sun.
4573
45742008-07-21 Chong Yidong <cyd@stupidchicken.com>
4575
4576 * nsfns.m: Change NS to Nextstep in docstrings and error messages.
4577 (Fns_create_frame, Fns_read_file_name, Fns_get_resource)
4578 (Fns_set_resource, Fns_set_alpha, Fns_server_max_request_size)
4579 (Fns_server_vendor, Fns_server_version, Fns_display_screens)
4580 (Fns_display_mm_height, Fns_display_mm_width)
4581 (Fns_display_backing_store, Fns_display_visual_class)
4582 (Fns_display_save_under, Fns_open_connection)
4583 (Fns_close_connection, Fns_hide_emacs, Fns_font_name)
4584 (Fns_list_colors, Fns_perform_service, Fns_color_defined_p)
4585 (Fns_color_values, Fxw_display_color_p, Fx_display_grayscale_p)
4586 (Fns_display_pixel_width, Fns_display_pixel_height)
4587 (Fns_display_usable_bounds, Fx_display_planes)
4588 (Fns_display_color_cells, Vns_icon_type_alist): Doc fixes.
4589
45902008-07-21 Ami Fischman <ami@fischman.org> (tiny change)
4591
4592 * print.c (print_object): Check print_depth before searching for
4593 circularities.
4594
45952008-07-21 Michael Albinus <michael.albinus@gmx.de>
4596
4597 * dbusbind.c (Fdbus_register_signal): Use sprintf + strcat instead
4598 only sprintf.
4599
46002008-07-21 Kenichi Handa <handa@m17n.org>
4601
4602 * ftfont.c (adjust_anchor): Check if DeltaValue is not NULL.
4603
46042008-07-20 Andreas Schwab <schwab@suse.de>
4605
4606 * syntax.c (find_start_pos, find_start_value)
4607 (find_start_value_byte, find_start_begv, find_defun_start)
4608 (back_comment, scan_sexps_forward): Use EMACS_INT for buffer positions.
4609
46102008-07-20 Dan Nicolaescu <dann@ics.uci.edu>
4611
4612 * s/sol2-3.h: Insert contents of s/sol2.h.
4613 (LD_SWITCH_SYSTEM): Remove redundant definition.
4614 * s/sol2.h: Remove, unused.
4615
46162008-07-20 Adrian Robert <Adrian.B.Robert@gmail.com>
4617
4618 * nsterm.m (ns_get_color): Recognize HSB,AHSB be synonyms for HSV,AHSV.
4619
46202008-07-20 Adrian Robert <Adrian.B.Robert@gmail.com>
4621
4622 * Makefile.in (ns_appdir): Fix typo in find command.
4623
46242008-07-20 Dan Nicolaescu <dann@ics.uci.edu>
4625
4626 * m/intel386.h (NO_REMAP): Do no define for USG, not used.
4627
4628 * s/usg5-4.h (LIBS_SYSTEM): Remove, system for which this was
4629 added not supported anymore.
4630
4631 * s/usg5-4-2.h (LIBS_SYSTEM):
4632 * s/sol2.h (LIBS_SYSTEM): Do not undefine.
4633
4634 * s/netbsd.h (GETPGRP_NO_ARG, N_TRELOFF):
4635 * s/lynxos.h (GETPGRP_NO_ARG):
4636 * s/hpux10-20.h (NO_SIOCTL_H):
4637 * s/gnu.h (GETPGRP_NO_ARG):
4638 * s/gnu-linux.h (NO_SIOCTL_H):
4639 * s/freebsd.h (GETPGRP_NO_ARG, N_TRELOFF):
4640 * s/cygwin.h (GETPGRP_NO_ARG):
4641 * s/irix6-5.h (LIBS_SYSTEM, GETPGRP_NO_ARG): Remove, unused.
4642 (C_DEBUG_SWITCH): Remove duplicate definition.
4643
4644 * m/ibms390.h: Remove boilerplate comments.
4645
4646 * sysdep.c (closedir): Use SOLARIS2 instead of sun && USG5_4.
4647
4648 * process.c (HAVE_SERIAL): Consolidate ifdefs.
4649 (wait_reading_process_output): Remove code for SunOS, platform not
4650 supported anymore. Use SOLARIS2 instead of sun.
4651
46522008-07-19 Adrian Robert <Adrian.B.Robert@gmail.com>
4653
4654 * font.c (font_open_by_name): Under NS, default lface height to zero.
4655 (font_open_for_lface): Under NS, set size based on frame fontsize.
4656 * nsterm.m (EmacsView-changeFont:): Remove some commented code.
4657 * frame.c (x_set_frame_parameters): Remove HAVE_NS ifdef.
4658
46592008-07-19 Adrian Robert <Adrian.B.Robert@gmail.com>
4660
4661 * nsterm.m (ns_antialias_text, ns_use_qd_smoothing)
4662 (ns_use_system_highlight_color): Switch these from DEFVAR_BOOL to
4663 DEFVAR_LISP and change all code accordingly to use Qt/Qnil instead of
4664 YES/NO.
4665 * nsterm.h (prevUseHighlightColor): Make a Lisp_Object.
4666 * nsfont.m (nsfont_draw): Treat ns_use_qd_smoothing as Lisp_Object.
4667 * Makefile.in (clean): Clear out build destination dir.
4668
46692008-07-19 Adrian Robert <Adrian.B.Robert@gmail.com>
4670
4671 * Makefile.in (nsgui.h-related dependencies): Remove abbrev, xfns,
4672 xterm, xselect.
4673 * lisp.h: Remove declaration of hash_remove.
4674 * nsgui.h: Remove redefinitions of hash_remove.
4675 * fns.c (hash_remove): Rename to hash_remove_from_table.
4676
46772008-07-19 Seiji Zenitani <zenitani@mac.com>
4678
4679 * nsfont.m (nsfont_fmember_to_entity, nsfont_make_fontset_for_font):
4680 strdup() the family UTF8String before modifying it.
4681
46822008-07-19 Adrian Robert <Adrian.B.Robert@gmail.com>
4683
4684 * nsterm.m (ns_maybe_dumpglyphs_background): Compare result from
4685 NS_FACE_BACKGROUND with 0 instead of nil.
4686 * nsfont.m (nsfont_draw): Same.
4687
46882008-07-19 Chong Yidong <cyd@stupidchicken.com>
4689
4690 * nsfns.m (ns_set_background_color): Fix crash.
4691
46922008-07-18 Chong Yidong <cyd@stupidchicken.com>
4693
4694 * Makefile.in (SOME_MACHINE_LISP): Remove ns-carbon-compat.elc.
4695
46962008-07-18 Dan Nicolaescu <dann@ics.uci.edu>
4697
4698 * puresize.h (BASE_PURESIZE): Increase to 1240000.
4699
47002008-07-17 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
4701
4702 * gtkutil.c: Include <config.h> instead of "config.h".
4703
4704 * lisp.h (Foverlay_buffer): Add EXFUN.
4705
4706 * process.c (create_process) [!WINDOWSNT && FD_CLOEXEC]: Wait for
4707 child process to complete child_setup. Undo 2005-09-21 change.
4708
4709 * s/darwin.h: Mention setsid after vfork.
4710
47112008-07-17 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
4712
4713 * Makefile.in (frame.o, keyboard.o, xdisp.o, xfaces.o):
4714 Depend on macgui.h.
4715
4716 * macfns.c (Fx_server_version): Don't use gestaltSystemVersionMajor,
4717 gestaltSystemVersionMinor, or gestaltSystemVersionBugFix.
4718
4719 * macterm.c (keycode_to_xkeysym_table): Add entries for f17, f18,
4720 and f19.
4721 [MAC_OSX] (fn_keycode_to_keycode_table): Likewise.
4722
4723 * macterm.h (gestaltSystemVersionMajor, gestaltSystemVersionMinor)
4724 (gestaltSystemVersionBugFix) [MAC_OS_X_VERSION_MAX_ALLOWED < 1040]:
4725 Remove enumerators.
4726
4727 * mactoolbox.c [USE_MAC_TSM] (mac_handle_text_input_event):
4728 Check if FACE_FROM_ID returns NULL.
4729
47302008-07-17 David Robinow <drobinow@gmail.com> (tiny change)
4731
4732 * w32inevt.c (change_frame_size): Remove extern declaration.
4733 (resize_event, maybe_generate_resize_event): Pass SAFE arg to
4734 change_frame_size.
4735
47362008-07-17 Adrian Robert <Adrian.B.Robert@gmail.com>
4737
4738 * getloadavg.c: Revert last change (2008-07-15).
4739
47402008-07-17 Adrian Robert <Adrian.B.Robert@gmail.com>
4741
4742 * Makefile.in: Replace emacsapp, emacsbindir, emacsappsrc variables
4743 set here with ns_appdir, ns_appresdir, ns_appbindir, ns_appsrc) set
4744 from configure.
4745
47462008-07-17 Dan Nicolaescu <dann@ics.uci.edu>
4747
4748 * s/sol2.h:
4749 * s/sol2-4.h: Reorganize conditionals.
4750
4751 * ecrt0.c: Remove code depending on m68000, not used anymore.
4752
4753 * fns.c (hash_remove): Make static.
4754 * lisp.h (hash_remove): Don't prototype.
4755
4756 * m/ibmrs6000.h:
4757 * m/ibms390x.h:
4758 * m/macppc.h: Remove boilerplate comments.
4759
4760 * m/sparc.h (A_TEXT_OFFSET, A_TEXT_SEEK): Remove, only used on
4761 Solaris, which does not need them.
4762
4763 * m/vax.h: Remove comments about unsupported systems.
4764
4765 * s/darwin.h: Reorganize ifdefs.
4766
47672008-07-17 Andreas Schwab <schwab@suse.de>
4768
4769 * s/cygwin.h (LIB_STANDARD_LIBSRC): Don't define.
4770
47712008-07-17 Stefan Monnier <monnier@iro.umontreal.ca>
4772
4773 Use SDATA. Follow coding convention of placing operators at
4774 beginning of next line rather than end of previous line, and placing
4775 spaces around infix operators.
4776
4777 * Makefile.in: Undef LIB_STANDARD before defining it to silence warning
4778 in case it was defined already.
4779 USE @GNUSTEP_MAKEFILES@ rather than envvars.
4780 * nsterm.m (ns_term_init): Pass Qt and Qnil rather than YES/NO to
4781 ns_default.
4782 (applicationShouldTerminate, setValuesFromPanel): Use EQ to compare
4783 Lisp_Objects.
4784 * nsterm.h (Fx_display_grayscale_p, Fx_display_planes)
4785 (ns_defined_color, ns_color_to_lisp): Declare.
4786 * nsselect.m (ns_handle_selection_request, ns_handle_selection_clear)
4787 (Fns_own_selection_internal): Make the big ugly hack more explicit, so
4788 it's accepted even with USE_LISP_UNION_TYPE.
4789 * nsmenu.m (ns_update_menubar): Use EQ to compare Lisp_Objects.
4790 (update_frame_tool_bar): Remove apparently obsolete tests for
4791 non-integerness of f->tool_bar_lines.
4792 (windowShouldClose, addButton, clicked, runDialogAt): Make the big ugly
4793 hack more explicit, so it's accepted even with USE_LISP_UNION_TYPE.
4794 * nsfont.m (nsfont_driver): Use just 0 rather than an invalid cast.
4795 (nsfont_open): Don't confuse NULL for Qnil.
4796 * nsfns.m (ns_implicitly_set_icon_type): Use EQ to compare Lisp_Objects.
4797 * menu.h (find_and_call_menu_selection):
4798 * menu.c (find_and_call_menu_selection): Use just int for vector size.
4799 (find_and_return_menu_selection): Always return something.
4800 * frame.h: Include dispextern.h for Display_Info.
4801 (display_x_get_resource): Declare.
4802
48032008-07-16 Adrian Robert <Adrian.B.Robert@gmail.com>
4804
4805 * syntax.c: Remove stdio.h include accidentally introduced in
4806 Emacs.app commit.
4807 * Makefile.in: Change GNUSTEP to NS_IMPL_GNUSTEP, COCOA to
4808 NS_IMPL_COCOA.
4809 * keyboard.c (handle_async_input, input_available_signal): Remove
4810 BSD4_1 conditional code, introduced accidentally in Emacs.app commit.
4811
48122008-07-16 Stefan Monnier <monnier@iro.umontreal.ca>
4813
4814 * nsterm.m (lisp_to_mod): Use parse_solitary_modifier instead.
4815 (ns_lisp_to_color): Don't mess with internal Lisp data fields.
4816 (ns_term_init, ns_term_shutdown, initFrameFromEmacs, ns_list_fonts):
4817 Use SDATA.
4818
4819 * keymap.c: Remove all NS-specific code.
4820 (where_is_preferred_modifier, Vwhere_is_preferred_modifier): New vars.
4821 (preferred_sequence_p): Rename from ascii_sequence_p; pay attention to
4822 where_is_preferred_modifier, return a different value depending on how
4823 preferred is the binding.
4824 (where_is_internal): Adjust accordingly.
4825 (Fwhere_is_internal): Refresh where_is_preferred_modifier.
4826 Adjust to new preferred_sequence_p.
4827 (syms_of_keymap): Declare `where-is-preferred-modifier'.
4828 * keyboard.c (parse_solitary_modifier): Not static any more.
4829 * keyboard.h (parse_solitary_modifier): Declare.
4830
48312008-07-16 Andreas Schwab <schwab@suse.de>
4832
4833 * Makefile.in (SOME_MACHINE_LISP): Remove easy-mmode, fix spelling
4834 of easymenu.
4835
48362008-07-16 Chong Yidong <cyd@stupidchicken.com>
4837
4838 * xdisp.c (move_it_in_display_line): Account for word wrap, so
4839 that we don't move off the line.
4840
48412008-07-16 Stefan Monnier <monnier@iro.umontreal.ca>
4842
4843 * keyboard.c (Qsuper): Remove.
4844 (parse_menu_item): Don't call where_is_internal specially for NS.
4845
48462008-07-16 Dan Nicolaescu <dann@ics.uci.edu>
4847
4848 * s/gnu-linux.h: Remove boilerplate comments.
4849
4850 * m/alpha.h (__ELF__): Consolidate conditions.
4851
4852 * m/m68k.h (linux): Use GNU_LINUX instead.
4853 Remove boilerplate comments.
4854
4855 * m/intel386.h: Undo refactoring from previous change.
4856 (LIB_STANDARD): All systems that define USG define LIB_STANDARD
4857 too, remove dead code.
4858 (linux): Use GNU_LINUX instead.
4859
48602008-07-16 Jason Rumney <jasonr@gnu.org>
4861
4862 * w32gui.h: Repeat 26 June changes lost by last change.
4863
48642008-07-16 Dan Nicolaescu <dann@ics.uci.edu>
4865
4866 * systty.h: Remove code for Aix on 386, unsupported platform.
4867
4868 * s/ms-w32.h: Remove boilerplate comments.
4869 (fcloseall, fgetchar, flushall, fputchar, getw, putw): Remove, unused.
4870
4871 * s/gnu-linux.h (TERM): Remove support.
4872 (HAVE_SYSVIPC): Remove, unused.
4873 (A_TEXT_OFFSET, A_TEXT_SEEK, ADJUST_EXEC_HEADER): Remove, not used
4874 for this system.
4875
4876 * process.c: Remove support for IRIS, unused.
4877 Remove support for TERM, not relevant anymore.
4878
4879 * unexalpha.c (DEFAULT_ENTRY_ADDRESS): Remove, replace the only
4880 used with the definition.
4881
4882 * s/aix4-2.h (static): Do not undef.
4883
4884 * m/ibmrs6000.h: Remove code depending on USG5_4, this file is
4885 only used on Aix.
4886 (HAVE_SYSVIPC): Remove, unused.
4887
4888 * m/hp800.h (CANNOT_DUMP): Do not undef.
4889
4890 * m/alpha.h: Fix comment.
4891
4892 * s/usg5-4.h (HAVE_SYSVIPC): Remove, unused.
4893 (USG_SHARED_LIBRARIES): Remove, only used in unexec.c which is not
4894 used by this configuration.
4895 * emacs.c: Remove code depending on USG_SHARED_LIBRARIES.
4896 * unexec.c: Remove code depending on HPUX and
4897 USG_SHARED_LIBRARIES, not used with this file. Remove code
4898 depending on IRIS, unused. Remove if 0-ed code.
4899
4900 * s/template.h: Remove comments about static.
4901
4902 * sysdep.c: Remove code depending on NEED_PTEM_H, unused.
4903 Remove if 0-ed code.
4904 (baud_convert): Don't depend on BAUD_CONVERT, all definitions the
4905 were the same as the default.
4906 * s/vms.h (BAUD_CONVERT): Remove, same as the default.
4907 Remove boilerplate comments.
4908 * s/hpux10-20.h (BAUD_CONVERT): Remove, same as the default.
4909 (HAVE_SYSVIPC): Remove, unused.
4910 (LD_SWITCH_SYSTEM_TEMACS): Simplify, hp9000s700 not supported anymore.
4911
4912 * m/ia64.h (PNTR_COMPARISON_TYPE): Remove, same as the default.
4913 Remove boilerplate comments.
4914 * m/amdx86-64.h (PNTR_COMPARISON_TYPE): Remove, same as the default.
4915 Remove boilerplate comments.
4916 * m/ibms390x.h (PNTR_COMPARISON_TYPE): Remove, same as the default.
4917 Remove boilerplate comments.
4918 * lisp.h (PNTR_COMPARISON_TYPE): Define it unconditionally.
4919
4920 * m/intel386.h (DATA_SEG_BITS): Remove definitions, only used on
4921 USG systems which do not use DATA_SEG_BITS.
4922 Refactor code. Remove boilerplate comments.
4923
4924 * m/ibms390.h:
4925 * m/m68k.h:
4926 * s/bsd-common.h:
4927 * s/cygwin.h:
4928 * s/darwin.h:
4929 * s/freebsd.h:
4930 * s/gnu.h:
4931 * s/msdos.h: Remove boilerplate comments.
4932
4933 * m/iris4d.h: Remove boilerplate comments and code for systems that
4934 do not use this file.
4935 (IRIS_4D): Remove, unused.
4936
4937 * m/mips.h: Remove boilerplate comments and code for systems that
4938 do not use this file.
4939 (SIGN_EXTEND_CHAR):
4940 * m/arm.h (SIGN_EXTEND_CHAR): Remove, unused.
4941 * unexmips.c: Remove file, unused.
4942
4943 * editfns.c (Fuser_full_name): Replace the only use of
4944 USER_FULL_NAME with its value.
4945 * config.in: Regenerate.
4946
49472008-07-16 David Reitter <david.reitter@gmail.com>
4948
4949 * Makefile.in: Add ns-win, ns-carbon-compat, easy-mmode and
4950 easy-menu to SOME_MACHINE_LISP for the new NeXTstep port.
4951
49522008-07-16 Glenn Morris <rgm@gnu.org>
4953
4954 * emacs.c (system-type): Doc fix.
4955
49562008-07-15 Stefan Monnier <monnier@iro.umontreal.ca>
4957
4958 * keyboard.c (parse_menu_item): Don't use cachelist, even under NS.
4959 If the cache doesn't work, let's fix it, rather than work around it.
4960
49612008-07-15 Adrian Robert <Adrian.B.Robert@gmail.com>
4962
4963 * Makefile.in: Correct additions for nsfont.o in last commit.
4964 * nsfont.m: New file (forgot last commit).
4965
49662008-07-15 Chris Hall <chris@web.workinglinux.com> (tiny change)
4967
4968 * callproc.c (set_initial_environment): Initialize
4969 Vprocess_environment under CANNOT_DUMP (fixes crash when
4970 batch-compiling for bootstrap).
4971
49722008-07-15 Chris Hall <chris@web.workinglinux.com> (tiny change)
4973 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
4974
4975 (make_initial_frame): Call init_frame_faces(f) in CANNOT_DUMP case --
4976 fix crash due to different init order.
4977
49782008-07-15 Adrian Robert <Adrian.B.Robert@gmail.com>
4979
4980 Changes and additions for NeXTstep windowing system (Cocoa and
4981 GNUstep) support.
4982
4983 * Makefile.in:
4984 * config.in: Support defines and build commands for NS port.
4985 * blockinput.h (BLOCK_INPUT, UNBLOCK_INPUT, TOTALLY_UNBLOCK_INPUT)
4986 (UNBLOCK_INPUT_TO): Don't use under NS unless EXPERIMENTAL_CONTROL_G.
4987 * dispextern.h: Include nsgui.h and add needed typedefs under NS
4988 windowing.
4989 (struct face): Add synth_ital field.
4990 * dispnew.c: Include nsterm.h when compiling under NS windowing.
4991 (init_display): Initialize Vinitial_window_system to "ns" when so
4992 compiled.
4993 * emacs.c: Include GSConfig.h when compiling under GNUstep.
4994 (display_arg): Use under NS.
4995 (main): Under NS, allocate autorelease pool and handle command line
4996 args. Move syms_of_xmenu() call under #ifdef HAVE_X_WINDOWS.
4997 (standard_args): Add NS-specific args.
4998 (shut_down_emacs): Shut down NS terminal if compiled under NS.
4999 * font.c (DEFAULT_ENCODING): New variable.
5000 (font_find_for_lface): Use it.
5001 (syms_of_font): Load syms_of_nsfont under NS.
5002 * font.h: Declare nsfont_driver when compiled under NS.
5003 * fontset.c: When compiling under NS, include nsterm.h.
5004 (fontset_from_font): Autoconstruct fontset under NS.
5005 * frame.c (various): Under NS, include nsterm.h, add Qns window system
5006 symbol, document and use it.
5007 (do_switch_frame): When for_deletion under Cocoa, add
5008 Fraise_frame(Qnil).
5009 (x_set_frame_parameters): Ensure font attribute changes are picked up.
5010 (x_get_arg): Allow "yes" and "no" as boolean values.
5011 (syms_of_frame): Declare Qns. Init Vdefault_frame_scroll_bars to
5012 Qright under Cocoa.
5013 (focus-follows-mouse): Default to 0 under NS.
5014 * frame.h (enum output_method): Add output_ns.
5015 (external_tool_bar, external_menu_bar, FRAME_EXTERNAL_TOOLBAR)
5016 (FRAME_EXTERNAL_MENU_BAR): Use under NS.
5017 (FRAME_WINDOW_P): NS-specific definition.
5018 * fringe.c (max_used_fringe_bitmap): Make public.
5019 * getloadavg.c (mach/mach.h): Include it under NeXT descendant OS's.
5020 (getloadavg): Use NeXT code under descendant OS's.
5021 * image.c (includes and header section, x_create_bitmap_from_data)
5022 (x_create_bitmap_from_file, free_bitmap_record, image_background)
5023 (image_background_transparent, x_clear_image_1)
5024 (x_create_x_image_and_pixmap, x_destroy_x_image, x_put_x_image)
5025 (Create_Pixmap_From_Bitmap_Data, xpm_load_image, lookup_rgb_color)
5026 (x_to_xcolors, x_from_xcolors, x_disable_image)
5027 (x_build_heuristic_mask, syms_of_image): Add NS support parallel to
5028 other GUIs, including XPM support using code originally written for
5029 Carbon GUI.
5030 (png_load, jpeg_load, tiff_load, gif_load): Add implementations
5031 using NS API.
5032 (image_ascent): Use font metrics macros instead of direct struct field
5033 access.
5034 * keyboard.c (includes): Add nsterm.h when compiling under NS.
5035 (kbd_buffer_get_event): Handle NS as other GUI windowing systems.
5036 Also, handle NS as GTK for menu bar purposes.
5037 (make_lispy_event): Handle NS as other GUI windowing systems, and as X
5038 toolkit where they differ.
5039 (parse_menu_item): Prefer keybindings using 'super' modifier. Also,
5040 use cachelist, still needed under NS.
5041 * keyboard.h (ENCODE_MENU_STRING, XtPointer, Boolean): Handle as NTGUI.
5042 (struct widget_value): Define it here for menu.c.
5043 * keymap.c (includes): Include modifier internals.
5044 (lisp_to_mod, modifier_sequence_p): New functions, compiled only under
5045 NS.
5046 (where_is_internal, Fwhere_is_internal): When compiled under NS, add
5047 support for preferring sequences using certain modifiers, specified by
5048 the FIRSTONLY argument.
5049 * lisp.h (hash_remove): Rename to avoid name clash when compiling
5050 under NS GNUstep implementation.
5051 (USE_LSB_TAG): Use it under Cocoa when compiling under NS.
5052 * lread.c (init_lread): Treat NS as HAVE_CARBON for turn_off_warning.
5053 * menu.c: Include nsterm.h under NS.
5054 (single_menu_item, parse_single_submenu, xmalloc_widget_value)
5055 (free_menubar_widget_tree_value, update_submenu_strings)
5056 (find_and_call_menu_selection): Treat NS as X and NT.
5057 (find_and_return_menu_selection): New function, used for popup menus.
5058 * nsgui.h:
5059 * nsterm.h:
5060 * nsfns.m:
5061 * nsimage.m:
5062 * nsmenu.m:
5063 * nsselect.m:
5064 * nsterm.m: New files.
5065 * process.c (wait_reading_process_output): Under NS, call ns_select()
5066 instead of plain select().
5067 * syntax.c (char_quoted): Under NS, avoid a crash when called near
5068 beginning of buffer.
5069 * sysselect.h (init_process): Rename when compiling under Cocoa to
5070 avoid name conflict.
5071 * termhooks.h (display_info): Add ns_display_info to union.
5072 * terminal.c (Fterminal_live_p): Add ns to terminal types.
5073 * terminfo.c (UP, BC, PC): Don't declare when compiling under NS in
5074 COCOA environment.
5075 * unexnext.c: Update to work with mach API on Mac OS X, and to use new
5076 unexec() signature. (Note, this will dump, but the resulting file
5077 crashes; unexosx is used instead; keeping around for reference and
5078 possible aid in getting dump working under GNUstep.)
5079 * w32gui.h (button_type, widget_value): Remove definitions (now in
5080 keyboard.h).
5081 * window.c: Include nsterm.h when compiling under NS.
5082 * xdisp.c (includes): Include nsterm.h when compiling under NS.
5083 (set_frame_menubar, update_menu_bar, display_menu_bar): Handle NS as
5084 other GUI windowing systems.
5085 (update_tool_bar, redisplay_tool_bar, redisplay_window): Handle NS as
5086 GTK.
5087 (x_consider_frame_title): Under NS, set icon type and frame
5088 modified-state indicator; use ns_set_name_as_filename() when using
5089 formatted title.
5090 (update_window_cursor): Make public when compiling under NS.
5091 (display_hourglass_p, syms_of_xdisp, hourglass_shown_p)
5092 (hourglass_atimer, Vhourglass_delay
5093 * xfaces.c (header section, init_frame_faces, clear_font_table)
5094 (defined_color, unload_color, x_face_list_fonts)
5095 (prepare_face_for_display): Add NS support parallel to other GUIs.
5096 Emulate GCs like other non-X GUIs.
5097 (split_font_name): Don't lowercase font name under NS.
5098 (merge_face_ref, Finternal_set_lisp_face_attribute): Support stippling
5099 under NS.
5100 * s/darwin.h: Add support for compilation under NS.
5101
51022008-07-15 Jason Rumney <jasonr@gnu.org>
5103
5104 * w32fns.c (Fx_create_frame): Remove duplicate unwind_protect.
5105 (w32_show_hourglass): Rename from show_hourglass.
5106 (w32_hide_hourglass): Rename from hide_hourglass.
5107 (DEFAULT_HOURGLASS_DELAY): Revert from last change.
5108 (Vhourglass_delay): Declare extern.
5109 (hourglass_started): Remove.
5110
5111 * xdisp.c (Vhourglass_delay): Remove static.
5112 (hourglass_started, start_hourglass, cancel_hourglass):
5113 Don't include these versions on WINDOWSNT.
5114
51152008-07-15 Adrian Robert <Adrian.B.Robert@gmail.com>
5116
5117 * dispextern.h (hourglass_shown_p, hourglass_atimer): New extern
5118 variables (formerly in xfns.c).
5119 (show_hourglass, hide_hourglass): New prototypes (same).
5120 * xdisp.c (display_hourglass_p, hourglass_shown_p, hourglass_atimer)
5121 (Vhourglass_delay, DEFAULT_HOURGLASS_DELAY): New variables (formerly
5122 in xfns.c).
5123 (syms_of_xdisp): Declare/initialize display-hourglass,
5124 hourglass-delay. Initialize hourglass_atimer, hourglass_shown_p.
5125 (hourglass_started, start_hourglass, cancel_hourglass): New functions,
5126 formerly in xfns.c.
5127 * xfns.c (display_hourglass_p, hourglass_atimer, hourglass_shown_p)
5128 (Vhourglass_delay, DEFAULT_HOURGLASS_DELAY, hourglass_started)
5129 (start_hourglass, cancel_hourglass): Remove.
5130 (show_hourglass, hide_hourglass): Remove prototypes and static
5131 modifiers.
5132 (syms_of_xfns): Remove display-hourglass, hourglass-delay,
5133 hourglass_atimer, hourglass_shown_p declaration/initialization.
5134 * macfns.c (display_hourglass_p, hourglass_atimer, hourglass_shown_p)
5135 (Vhourglass_delay, DEFAULT_HOURGLASS_DELAY, hourglass_started)
5136 (start_hourglass, cancel_hourglass): Remove.
5137 (show_hourglass, hide_hourglass): Remove prototypes and static
5138 modifiers.
5139 (syms_of_macfns): Remove display-hourglass, hourglass-delay,
5140 hourglass_atimer, hourglass_shown_p declaration/initialization.
5141 * w32fns.c (display_hourglass_p, Vhourglass_delay)
5142 (DEFAULT_HOURGLASS_DELAY): Remove.
5143 (syms_of_w32fns): Remove display-hourglass, hourglass-delay,
5144 hourglass_shown_p declaration/initialization.
5145
51462008-07-14 Jason Rumney <jasonr@gnu.org>
5147
5148 * w32fns.c (w32_get_arg): Remove wrapper function.
5149 (w32_createwindow, x_icon, x_create_tip_frame): Use x_get_arg
5150 directly.
5151 (Fx_create_frame): Sync with xfns.c. Use x_get_arg directly.
5152
51532008-07-14 Kenichi Handa <handa@m17n.org>
5154
5155 * xfont.c (xfont_open): Add workaround for X's bug.
5156
51572008-07-14 Emanuele Giaquinta <emanuele.giaquinta@gmail.com> (tiny change)
5158
5159 * fontset.c: Include <stdio.h> unconditionally.
5160
51612008-07-13 Michael Albinus <michael.albinus@gmx.de>
5162
5163 * dbusbind.c (Fdbus_register_signal): Allow also signal arguments
5164 for filtering.
5165
51662008-07-13 Dan Nicolaescu <dann@ics.uci.edu>
5167
5168 * s/vms.h: Use __GNUC__ instead of _GNUC_.
5169
5170 * m/macppc.h:
5171 * m/alpha.h: Use GNU_LINUX instead of LINUX. Reorganize conditionals.
5172
5173 * m/ibms390x.h (XINT, XUINT): Don't define, same as the default
5174 (SPECIAL_EMACS_INT):
5175 * m/ia64.h (SPECIAL_EMACS_INT):
5176 * m/amdx86-64.h (SPECIAL_EMACS_INT):
5177 * s/gnu.h (NLIST_STRUCT):
5178 * s/aix4-2.h (X11R5_INHIBIT_I18N):
5179 * s/gnu-linux.h (LINUX):
5180 * s/msdos.h (HAVE_FACES):
5181 * s/ms-w32.h (HAVE_FACES): Don't define, unused.
5182
5183 * systty.h:
5184 * sysdep.c (setup_pty): Don't depend on SYSV_PTYS, it is not used
5185 anymore.
5186
51872008-07-12 Dan Nicolaescu <dann@ics.uci.edu>
5188
5189 * syswait.h: Remove old if 0 code. Do not define WAITTYPE, it was
5190 always defined as int.
5191
5192 * s/netbsd.h (HAVE_UNION_WAIT, HAVE_WAIT_HEADER, WAIT_USE_INT):
5193 * s/gnu.h (HAVE_WAIT_HEADER, WAIT_USE_INT, HAVE_UNION_WAIT):
5194 * s/gnu-linux.h (HAVE_WAIT_HEADER):
5195 * s/freebsd.h (HAVE_WAIT_HEADER):
5196 * s/bsd-common.h (HAVE_UNION_WAIT):
5197 * s/aix4-2.h (HAVE_WAIT_HEADER):
5198 * m/mips.h (HAVE_UNION_WAIT):
5199 * s/usg5-4.h (HAVE_WAIT_HEADER, WAITTYPE): Do not define, not used.
5200 (COFF, static): Do not define, they are undefined later in the file.
5201
5202 * process.c (update_status): Don't use a union.
5203 (status_convert):
5204 (sigchld_handler): Use int instead of WAITTYPE.
5205
52062008-07-12 Chong Yidong <cyd@stupidchicken.com>
5207
5208 * indent.c (Fvertical_motion): Restore hscroll before moving to
5209 goal column.
5210
52112008-07-11 Dan Nicolaescu <dann@ics.uci.edu>
5212
5213 * lisp.h: Remove left over code.
5214
52152008-07-11 Andreas Schwab <schwab@suse.de>
5216
5217 * lisp.h: Fix logic in last change.
5218
5219 * menu.h: New file.
5220 * menu.c: Include it.
5221 * xmenu.c: Likewise.
5222 * Makefile.in: Update dependencies.
5223
52242008-07-11 Kenichi Handa <handa@m17n.org>
5225
5226 * fontset.c (fontset_from_font): Cancel the previous change.
5227
52282008-07-11 Dan Nicolaescu <dann@ics.uci.edu>
5229
5230 * lisp.h:
5231 * w32heap.c:
5232 * emacs.c:
5233 * alloc.c: Replace all references of NO_UNION_TYPE with
5234 USE_LISP_UNION_TYPE.
5235
5236 * m/xtensa.h (NO_UNION_TYPE):
5237 * m/vax.h (NO_UNION_TYPE):
5238 * m/template.h (NO_UNION_TYPE):
5239 * m/sparc.h (NO_UNION_TYPE):
5240 * m/mips.h (NO_UNION_TYPE):
5241 * m/macppc.h (NO_UNION_TYPE):
5242 * m/m68k.h (NO_UNION_TYPE):
5243 * m/iris4d.h (NO_UNION_TYPE):
5244 * m/intel386.h (NO_UNION_TYPE):
5245 * m/ibms390x.h (NO_UNION_TYPE):
5246 * m/ibms390.h (NO_UNION_TYPE):
5247 * m/ibmrs6000.h (NO_UNION_TYPE):
5248 * m/ia64.h (NO_UNION_TYPE):
5249 * m/hp800.h (NO_UNION_TYPE):
5250 * m/arm.h (NO_UNION_TYPE):
5251 * m/amdx86-64.h (NO_UNION_TYPE):
5252 * m/alpha.h (NO_UNION_TYPE): Remove definition, all platform were
5253 defining it the same.
5254
52552008-07-10 Chong Yidong <cyd@stupidchicken.com>
5256
5257 * xdisp.c (move_it_to): Backtrack if past the edge of a wrapped line.
5258
52592008-07-10 Dan Nicolaescu <dann@ics.uci.edu>
5260
5261 * fileio.c:
5262 * sysdep.c
5263 * systty.h:
5264 * m/ibmrs6000.h:
5265 * m/iris4d.h:
5266 * s/aix4-2.h:
5267 * s/freebsd.h:
5268 * s/gnu-linux.h:
5269 * s/hpux10-20.h:
5270 * s/hpux11.h:
5271 * s/netbsd.h:
5272 * s/sol2-3.h:
5273 * s/sol2-4.h:
5274 * s/sol2.h:
5275 * s/usg5-4.h:
5276 * s/vms.h: Remove references to unused variables.
5277
52782008-07-10 Andreas Schwab <schwab@suse.de>
5279
5280 * ftfont.c (ftfont_resolve_generic_family): Remove foundry from
5281 pattern before matching the generic family.
5282
52832008-07-10 Dan Nicolaescu <dann@ics.uci.edu>
5284
5285 * unexec.c:
5286 * s/vms.h:
5287 * s/usg5-4-2.h:
5288 * s/sol2-5.h:
5289 * s/freebsd.h:
5290 * s/darwin.h: Remove dead code.
5291
5292 * m/template.h:
5293 * m/sparc.h:
5294 * m/mips.h:
5295 * m/m68k.h:
5296 * m/iris4d.h:
5297 * m/intel386.h:
5298 * m/ibms390x.h:
5299 * m/ibms390.h:
5300 * m/ia64.h:
5301 * m/hp800.h:
5302 * m/arm.h:
5303 * m/amdx86-64.h: Remove dead code and references to unused
5304 and compiler defined symbols.
5305
5306 * unexmips.c:
5307 * unexelf.c: Remove references to desupported systems.
5308
5309 * m/powermac.h: Remove file, it is now identical to m/macppc.h.
5310
5311 * m/powermac.h: Remove boilerplate comments.
5312 (NO_REMAP): Remove unused definition.
5313
5314 * m/macppc.h (UNEXEC, NO_TERMIO): Don't define, the s/ files
5315 define them.
5316
53172008-07-10 Kenichi Handa <handa@m17n.org>
5318
5319 * xfont.c (xfont_open): Log the reason of failure.
5320
53212008-07-09 Stefan Monnier <monnier@iro.umontreal.ca>
5322
5323 * fontset.c (fontset_get_font_group):
5324 * font.c (font_check_otf): Specify argument types.
5325
53262008-07-09 Kenichi Handa <handa@m17n.org>
5327
5328 * coding.c (detect_coding_utf_8): Set detect_info->found only when
5329 non-ASCII char is found.
5330
5331 * fontset.c (fontset_compare_rfontdef): Fix plus/minus.
5332 (reorder_font_vector): Change the arg preferred_family to font.
5333 Prefer the spec matching with font.
5334 (fontset_get_font_group): New function.
5335 (fontset_find_font): Change the format of an element of a realized
5336 fontset. Use fontset_get_font_group.
5337 (fontset_font): Try the current fontset, the default fontset, the
5338 fallbacks of the current fontset, and the fallbacks of the default
5339 fontset in this order.
5340 (face_for_char): Delete the shortcut to use the current font.
5341 (fontset_from_font): Don't set fonts for Latin in the fontset.
5342
5343 * font.h (font_make_object, font_match_p): Adjust prototypes.
5344
5345 * ftfont.h [FT_BDF_H]: Include FT_BDF_H.
5346
5347 * font.c (font_make_object): New arg entity and pixelsize.
5348 (font_check_otf_features, font_check_otf): New functions.
5349 (font_match_p): Check :lang, :script, and :otf properties.
5350
5351 * xfont.c (xfont_open): Adjust it for the change of
5352 font_make_object.
5353 (xfont_text_extents): Fix initial setting of metrics.
5354
5355 * ftfont.c (struct ftfont_info): New member index, delete member
5356 fc_charset_idx. Make the member order compatible with struct
5357 xftfont_info.
5358 (fc_charset_table): Change charset names to registry names.
5359 (ftfont_pattern_entity): Delete the args registry and
5360 fc_charset_idx. Change the value of :font-entity property
5361 to (FONTNAME . INDEX). Always set :registry property to
5362 `iso10646-1'.
5363 (struct ftfont_cache_data): New struct.
5364 (ftfont_lookup_cache): New arg for_face.
5365 (ftfont_get_fc_charset, ftfont_get_otf): New functions.
5366 (ftfont_driver): Set the member otf_capability.
5367 (ftfont_get_charset): Adjust it for the change of
5368 fc_charset_table.
5369 (OTF_TAG_SYM): New macro.
5370 (ftfont_spec_pattern): Delete the arg fc_charset_idx. Adjust it
5371 for the change of fc_charset_table.
5372 (ftfont_list): Adjust it for the change of ftfont_spec_pattern and
5373 ftfont_pattern_entity. Add FC_INDEX to objset.
5374 (ftfont_match): Adjust it for the change of ftfont_spec_pattern
5375 and ftfont_pattern_entity.
5376 (ftfont_open): Adjust it for the change of ftfont_lookup_cache,
5377 font_make_object, struct ftfont_info.
5378 (ftfont_has_char): Use ftfont_get_fc_charset.
5379 (ftfont_otf_features, ftfont_otf_capability): New functions.
5380 (ftfont_shape): Use ftfont_get_otf.
5381 (ftfont_text_extents): Fix initial setting of metrics.
5382
5383 * xftfont.c (struct xftfont_info): New member ft_size. Make the
5384 member order compatible with struct ftfont_info.
5385 (xftfont_open): Add FC_CHARSET to the pattern. Set
5386 xftfont_info->ft_size. Don't unlock the face. Check BDF
5387 properties if appropriate.
5388 (xftfont_close): Unlock the face.
5389 (xftfont_anchor_point, xftfont_shape): Deleted.
5390 (syms_of_xftfont): Don't set members anchor_point and shape of
5391 xftfont_driver.
5392
5393 * w32uniscribe.c (uniscribe_open): Adjust it for the change of
5394 font_make_object.
5395
5396 * w32font.c (w32font_open): Adjust it for the change of
5397 font_make_object.
5398 (w32font_open_internal): Don't set properties of font_object here.
5399
54002008-07-08 Chong Yidong <cyd@stupidchicken.com>
5401
5402 * macfns.c (x_create_tip_frame):
5403 * w32fns.c (x_create_tip_frame):
5404 * xfns.c (x_create_tip_frame): Pass parameter argument to
5405 face-set-after-frame-default.
5406
5407 * xfaces.c (Finternal_merge_in_global_face): Save merged
5408 attributes for the default face back into the face vector.
5409
54102008-07-08 Andreas Schwab <schwab@suse.de>
5411
5412 * fontset.h: Declare fontset_from_font. Don't declare
5413 new_fontset_from_font and fontset_from_font_name.
5414 * xterm.c: Include "fontset.h".
5415 * Makefile.in (xterm.o): Update dependencies.
5416
54172008-07-08 Glenn Morris <rgm@gnu.org>
5418
5419 * m/sparc.h: Define __sparc__ rather than sparc. (Bug#507.)
5420 * alloc.c, ecrt0.c: Use __sparc__ rather than sparc.
5421
54222008-07-07 Chong Yidong <cyd@stupidchicken.com>
5423
5424 * frame.c (Qinhibit_face_set_after_frame_default): Var deleted.
5425 (x_set_frame_parameters): Don't bind it.
5426
54272008-07-07 Juanma Barranquero <lekktu@gmail.com>
5428
5429 * w32fns.c (map_w32_filename): Declare extern.
5430
54312008-07-07 Jason Rumney <jasonr@gnu.org>
5432
5433 * w32term.c (WS_EX_LAYERED): Define if not already.
5434
54352008-07-06 Chong Yidong <cyd@stupidchicken.com>
5436
5437 * xfaces.c (set_font_frame_param): Don't try to set the font
5438 parameter if it is still unspecified in the lface.
5439
54402008-07-05 Chong Yidong <cyd@stupidchicken.com>
5441
5442 * xfaces.c (Finternal_merge_in_global_face): Don't realize default
5443 face if it didn't already exist.
5444
5445 * xdisp.c (try_window_id): Give up if word-wrapping is on.
5446
54472008-07-05 Andreas Schwab <schwab@suse.de>
5448
5449 * xdisp.c (get_it_property): Move out of HAVE_WINDOW_SYSTEM section.
5450
54512008-07-05 Chong Yidong <cyd@stupidchicken.com>
5452
5453 * xdisp.c (IT_OVERFLOW_NEWLINE_INTO_FRINGE): Turn it off if
5454 word-wrapping.
5455 (IT_DISPLAYING_WHITESPACE): New macro.
5456 (move_it_in_display_line_to): Handle MOVE_TO_X requests properly
5457 when word-wrapping. Simplify word-wrapping logic. Use correct
5458 pixel positions when saving copies of the iterator.
5459 (display_line): Use proper wrap point if the last character on a
5460 line was preceded by whitespace.
5461
54622008-07-04 Stefan Monnier <monnier@iro.umontreal.ca>
5463
5464 * Makefile.in (${etc}DOC): Depend on ${lisp} rather than ${shortlisp}.
5465
54662008-07-04 Kenichi Handa <handa@m17n.org>
5467
5468 * fns.c (Fstring_to_unibyte): Delete the arg ACCEPT-LATIN-1.
5469
5470 * lisp.h: EXFUN adjusted for the change of Fstring_to_unibyte.
5471
54722008-07-02 Jason Rumney <jasonr@gnu.org>
5473
5474 * xfns.c (syms_of_xfns): Only define x-select-font when both
2ae37cf0 5475 HAVE_FREETYPE and USE_GTK.
aac0c6e3
MR
5476
5477 * xdisp.c (next_element_from_display_vector): Move assignment out
5478 of if statement.
5479
54802008-07-02 Toru Tsuneyoshi <t_tuneyosi@hotmail.com>
5481
5482 * lisp.h (Qdelete_file, Qdelete_directory): Declare extern.
5483
5484 * fileio.c (delete_by_moving_to_trash, Qmove_file_to_trash): New vars.
5485 (syms_of_fileio): Initialize and export them.
5486 (Fdelete_directory, Fdelete_file): Optionally delete via trash.
5487
5488 * w32fns.c (FOF_NO_CONNECTED_ELEMENTS): Define if not already.
5489 (Fsystem_move_file_to_trash): New function.
5490 (syms_of_w32fns): Export it to lisp.
5491
54922008-07-01 Jason Rumney <jasonr@gnu.org>
5493
5494 * w32font.c (w32font_text_extents): Don't count overhang as part
5495 of width.
5496
54972008-06-30 Miles Bader <miles@gnu.org>
5498
5499 * dispextern.h (struct glyph, struct it, struct iterator_stack_entry):
5500 Add `avoid_cursor_p' field.
5501
5502 * xdisp.c (push_it, pop_it): Save/restore avoid_cursor_p field.
5503 (set_cursor_from_row): Skip glyphs with avoid_cursor_p set.
5504 (append_glyph, append_composite_glyph, produce_image_glyph)
5505 (append_stretch_glyph): Initialize avoid_cursor_p.
5506 (get_it_property): Rename from `get_line_height_property'.
5507 (x_produce_glyphs): Use get_it_property.
5508 (handle_line_prefix, push_display_prop): New functions.
5509 (display_line, move_it_in_display_line_to): Handle line/wrap prefixes.
5510 (Vwrap_prefix, Qwrap_prefix, Vline_prefix, Qline_prefix):
5511 New variables.
5512 (syms_of_xdisp): Initialize them.
5513
55142008-06-30 Kenichi Handa <handa@m17n.org>
5515
5516 * xftfont.c (xftfont_open): Don't call FcConfigSubstitute and
5517 XftDefaultSubstitute (they are called in XftFontMatch).
5518 (xftfont_open): Fix args to ftfont_font_format.
5519
5520 * ftfont.c (fc_charset_table): New member lang.
5521 (ftfont_resolve_generic_family): New arg pattern.
60612c8f 5522 (ftfont_spec_pattern): Check fc_charset_table[]->lang.
aac0c6e3
MR
5523 (ftfont_list): Call ftfont_resolve_generic_family with `pattern'.
5524 (ftfont_open): Fix args to ftfont_font_format.
5525 (ftfont_font_format): New arg filename.
5526
55272008-06-30 Chong Yidong <cyd@stupidchicken.com>
5528
5529 * xfaces.c (Finternal_merge_in_global_face): If default face was
5530 modified, realize it again. Update the font face attribute.
5531
55322008-06-29 Jason Rumney <jasonr@gnu.org>
5533
5534 * w32term.c (x_set_frame_alpha): Fix logic.
5535
55362008-06-29 Kenichi Handa <handa@m17n.org>
5537
5538 * fontset.c (Finternal_char_font): Return font-object instead of
5539 font-name.
5540
5541 * composite.c (get_composition_id): Fix the width calculation for TAB.
5542
55432008-06-29 Stefan Monnier <monnier@iro.umontreal.ca>
5544
5545 * indent.c (Fvertical_motion): Properly handle float column arg.
5546
55472008-06-28 Jason Rumney <jasonr@gnu.org>
5548
5549 * w32term.c (pfnGetFontUnicodeRanges): Remove unused function pointer.
5550 (pfnSetLayeredWindowAttributes): New function pointer.
5551 (w32_initialize): Initialize it when supported.
5552 (x_set_frame_alpha): New function.
5553
5554 * w32fns.c (Fx_create_frame): Initialize frame parameter `alpha'.
5555 (w32_frame_parm_handlers): Set alpha handler.
5556
5557 * frame.c (x_set_alpha) [HAVE_NTGUI]: Call x_set_frame_alpha.
5558
55592008-06-27 Jason Rumney <jasonr@gnu.org>
5560
5561 * w32fns.c (x_to_w32_font, w32_to_x_font, x_to_w32_weight)
5562 (w32_to_x_weight, w32_to_all_x_charsets): Remove obsolete functions.
5563 (w32_to_x_charset, x_to_w32_charset)
5564 (Qw32_charset_ansi, Qw32_charset_symbol, Qw32_charset_default)
5565 (Qw32_charset_shiftjis, Qw32_charset_hangeul, Qw32_charset_johab)
5566 (Qw32_charset_chinesebig5, Qw32_charset_gb2312, Qw32_charset_oem)
5567 (Qw32_charset_easteurope, Qw32_charset_turkish, Qw32_charset_baltic)
5568 (Qw32_charset_russian, Qw32_charset_arabic, Qw32_charset_greek)
5569 (Qw32_charset_hebrew, Qw32_charset_vietnamese, Qw32_charset_thai)
5570 (Qw32_charset_mac, Vw32_charset_info_alist): Move to w32font.c.
5571 (Qw32_charset_unicode): Remove.
5572 (syms_of_w32fns): Update for above changes.
5573
5574 * w32font.c (w32_to_x_charset, x_to_w32_charset)
5575 (Qw32_charset_ansi, Qw32_charset_symbol, Qw32_charset_default)
5576 (Qw32_charset_shiftjis, Qw32_charset_hangeul, Qw32_charset_johab)
5577 (Qw32_charset_chinesebig5, Qw32_charset_gb2312, Qw32_charset_oem)
5578 (Qw32_charset_easteurope, Qw32_charset_turkish, Qw32_charset_baltic)
5579 (Qw32_charset_russian, Qw32_charset_arabic, Qw32_charset_greek)
5580 (Qw32_charset_hebrew, Qw32_charset_vietnamese, Qw32_charset_thai)
5581 (Qw32_charset_mac, Vw32_charset_info_alist): Move from w32fns.c.
5582 (syms_of_w32font): Update for above changes.
5583
55842008-06-27 Dan Nicolaescu <dann@ics.uci.edu>
5585
5586 * s/usg5-4.h: Fix previous change: keep the correct branch of a
5587 removed #if.
5588 (USG_SHARED_LIBRARIES): Remove duplicate definition.
5589
55902008-06-26 Juanma Barranquero <lekktu@gmail.com>
5591 Eli Zaretskii <eliz@gnu.org>
5592
5593 * makefile.w32-in (LOCAL_FLAGS):
5594 Don't include WINDOWSNT, DOS_NT and _UCHAR_T.
5595
5596 * sysdep.c (_spawnlp, _getpid):
5597 Declare with explicit _cdecl instead of _CRTAPI1.
5598
5599 * editfns.c (Fget_internal_run_time):
5600 Check for WINDOWSNT with #ifdef, not #if.
5601
56022008-06-26 Jason Rumney <jasonr@gnu.org>
5603
5604 * w32font.h (FONT_HANDLE, FONT_TEXTMETRIC): New macros.
5605
5606 * w32term.c (x_draw_glyph_string_foreground)
5607 (x_draw_composite_glyph_string_foreground): Sync with xterm.c.
5608 Use FONT_HANDLE macro.
5609 (x_draw_glyph_string): Use FONT_TEXTMETRIC macro.
5610
5611 * w32uniscribe.c (uniscribe_otf_capability, uniscribe_shape)
5612 (uniscribe_encode_char): Use FONT_HANDLE macro.
5613
5614 * w32font.c (Fx_select_font): Use FONT_HANDLE macro.
5615 (w32font_text_extents): Use precast w32_font.
5616 (w32font_close): Free cached metrics.
5617 (w32font_open_internal): Allocate space for name on stack.
5618
56192008-06-26 Chong Yidong <cyd@stupidchicken.com>
5620
5621 * xdisp.c (extend_face_to_end_of_line): Fix last change.
5622
56232008-06-26 Jason Rumney <jasonr@gnu.org>
5624
5625 * w32term.h (FONT_AVG_WIDTH): Remove obsolete macro.
5626 (CP_8BIT, CP_UNICODE, CP_UNKNOWN): Remove obsolete constants.
5627
56282008-06-26 Juanma Barranquero <lekktu@gmail.com>
5629
5630 * Makefile.in (SOME_MACHINE_OBJECTS): Remove w32bdf.o.
5631
56322008-06-26 Jason Rumney <jasonr@gnu.org>
5633
5634 * w32bdf.c, w32bdf.h: Remove obsolete files.
5635
5636 * makefile.w32-in: Remove refs to w32bdf.h and w32bdf.c.
5637
5638 * w32gui.h: Don't include w32bdf.h.
5639 (XCharStruct, enum w32_char_font_type, W32FontStruct):
5640 Remove obsolete font support.
5641
5642 * w32font.h (struct w32font_info): Remove compat_w32_font.
5643 Add hfont member.
5644 (FONT_COMPAT): Remove obsolete macro.
5645
5646 * w32font.c (w32font_close): Remove compat code. Delete hfont member.
5647 (w32font_encode_char, w32font_text_extents): Use new hfont member.
5648 (w32font_open_internal): Remove compat code. Set new hfont member.
5649 (Fx_select_font): Use new hfont member.
5650
5651 * w32uniscribe.c (uniscribe_otf_capability, uniscribe_shape)
5652 (uniscribe_encode_char): Use new hfont member.
5653
5654 * w32term.c (x_draw_glyph_string_foreground)
5655 (x_draw_composite_glyph_string_foreground): Use new hfont member.
5656 (x_draw_glyph_string): Use metrics in w32font_info.
5657
56582008-06-26 Kenichi Handa <handa@m17n.org>
5659
5660 * xdisp.c (handle_auto_composed_prop): Fix for the terminal case.
5661
56622008-06-26 Dan Nicolaescu <dann@ics.uci.edu>
5663
5664 * unexnext.c:
5665 * m/ews4800.h:
5666 * m/hp9000s300.h:
5667 * m/ibm370aix.h:
5668 * m/mips-siemens.h:
5669 * m/ncr386.h:
5670 * m/next.h:
5671 * m/pmax.h:
5672 * m/powerpcle.h:
5673 * m/tandem-s2.h:
5674 * s/386bsd.h:
5675 * s/bsd386.h:
5676 * s/bsd4-1.h:
5677 * s/bsd4-2.h:
5678 * s/bsdos2-1.h:
5679 * s/bsdos2.h:
5680 * s/bsdos3.h:
5681 * s/bsdos4.h:
5682 * s/nextstep.h:
5683 * s/ultrix4-3.h:
5684 * s/usg5-0.h:
5685 * s/usg5-2-2.h:
5686 * s/usg5-2.h:
5687 * s/usg5-4-3.h:
5688 * s/ux4800.h:
5689 * s/uxpds.h:
5690 * s/uxpv.h: Remove support for obsolete systems.
5691 * s/hpux.h, s/hpux10.h, s/hpux8.h, s/hpux9.h, s/hpux9shr.h:
8f3a3ac2 5692 Remove, insert contents in s/hpux10-20.h.
aac0c6e3
MR
5693 * s/aix3-1.h, s/aix3-2-5.h, s/aix3-2.h, s/aix4-1.h, s/aix4.h:
5694 Remove, insert contents in s/aix4-2.h.
5695 * s/usg5-3.h: Remove, insert contents in s/usg5-4.h.
5696 * s/bsd4-3.h: Rename to ...
5697 * s/bsd-common.h: ... this.
5698 * data.c:
5699 * doc.c:
5700 * ecrt0.c:
5701 * emacs.c:
5702 * fileio.c:
5703 * floatfns.c:
5704 * keyboard.c:
5705 * mem-limits.h:
5706 * print.c:
5707 * process.c:
5708 * sysdep.c:
5709 * syssignal.h:
5710 * systty.h:
5711 * syswait.h:
5712 * term.c:
5713 * unexec.c:
5714 * unexelf.c:
5715 * unexhp9k800.c:
5716 * m/hp800.h:
5717 * m/ibmrs6000.h:
5718 * m/mips.h:
5719 * m/vax.h:
5720 * s/darwin.h:
5721 * s/freebsd.h:
5722 * s/gnu.h:
5723 * s/ms-w32.h:
5724 * s/msdos.h:
5725 * s/netbsd.h:
5726 * s/template.h: Remove references to obsolete variables.
5727
5728 * Makefile.in: Add dependencies for all unexec files.
5729 (admindir): Remove unused variable.
5730 (UNEXEC_SRC): Remove references.
5731
57322008-06-25 Chong Yidong <cyd@stupidchicken.com>
5733
5734 * xfns.c (x_default_font_parameter): If Xft is available, first
5735 try Monospace-12 for the default font.
5736
57372008-06-25 Jason Rumney <jasonr@gnu.org>
5738
5739 * xdisp.c (get_glyph_face_and_encoding): Encode invalid glyphs as 0.
5740
57412008-06-25 Stefan Monnier <monnier@iro.umontreal.ca>
5742
5743 * bytecode.c (Fbyte_code): Disable debugging code that doesn't compile.
5744
5745 * buffer.c (syms_of_buffer): Remove default-word-wrap.
5746
57472008-06-25 Juanma Barranquero <lekktu@gmail.com>
5748
5749 * xdisp.c (syms_of_xdisp) <truncate-partial-width-windows>: Doc fix.
5750 <scroll-conservatively>: Fix typo in docstring.
5751
5752 * xselect.c (Fx_send_client_event): Doc fix.
5753
57542008-06-25 Kenichi Handa <handa@m17n.org>
5755
5756 * xfaces.c (Fx_list_fonts): Call Flist_fonts with the arg PREFER.
5757
5758 * font.c (font_parse_fcname): Remove unused variables.
5759 (font_sort_entites): Delete the arg SPEC. Caller changed.
5760 Fix for the case of ! best_only.
5761 (font_delete_unmatched): Check DPI and AVGWIDTH too.
5762
5763 * lisp.h (Fstring_to_unibyte): EXFUN it.
5764
5765 * character.h (str_to_unibyte): Extern it.
5766
5767 * character.c (str_to_unibyte): New function.
5768
5769 * fns.c (Fstring_to_unibyte): New function.
5770 (syms_of_fns): Defsubr it.
5771
57722008-06-24 Kenichi Handa <handa@m17n.org>
5773
5774 * font.c (font_score): Even if the PIXEL_SIZE is the same, check
5775 DPI too.
5776 (font_sort_entites): Setup prefer_prop[FONT_DPI_INDEX] too.
5777
57782008-06-24 Andreas Schwab <schwab@suse.de>
5779
5780 * Makefile.in (${lispsource}loaddefs.el): Rename from
5781 ../lisp/loaddefs.el.
5782 (bootstrap-clean): Do what distclean does but don't remove
5783 Makefile.
5784 (distclean): Depend on bootstrap-clean and remove Makefile.
5785
57862008-06-24 Chong Yidong <cyd@stupidchicken.com>
5787
5788 * buffer.h (struct buffer): New member word_wrap.
5789
5790 * buffer.c (syms_of_buffer): New variables default-word-wrap and
5791 word-wrap.
5792 (init_buffer_once): Initialize them.
5793
5794 * dispextern.h (struct it): Replace bool truncate_lines_p with a
5795 line_wrap enum possessing three possible values.
5796
5797 * termopts.h: Replace truncate_partial_width_windows with
5798 Vtruncate_partial_width_windows.
5799
5800 * dispnew.c (direct_output_for_insert): Avoid direct output when
5801 inserting a space with word wrap on.
5802
5803 * indent.c (compute_motion): Obey integer values of
5804 truncate-partial-width-windows.
5805
5806 * xdisp.c (Vtruncate_partial_width_windows): New Lisp_Object,
5807 replacing truncate_partial_width_windows.
5808 (init_iterator): If Vtruncate_partial_width_windows is an integer,
5809 truncate only if the window width is below that integer.
5810 (start_display, resize_mini_window, produce_stretch_glyph)
5811 (display_string, move_it_in_display_line_to): Use line_wrap.
5812 (back_to_previous_visible_line_start, reseat_1): Reset
5813 string_from_display_prop_p.
5814 (display_line): Extend default face to end of line when wrapping.
5815
58162008-06-24 Kim F. Storm <storm@cua.dk>
5817
5818 * xdisp.c (display_line, move_it_in_display_line_to): Add ability
5819 to wrap continued lines at word boundaries.
5820
58212008-06-24 Jason Rumney <jasonr@gnu.org>
5822
5823 * font.c (Ffont_face_attributes): Multiply pixel size before point
5824 conversion to avoid multiplying rounding error.
5825
58262008-06-23 Jason Rumney <jasonr@gnu.org>
5827
5828 * w32term.c (x_draw_glyph_string_background)
5829 (x_draw_glyph_string): Remove old bdf font code.
5830
5831 * w32term.h (FONT_TYPE_FOR_UNIBYTE, FONT_TYPE_FOR_MULTIBYTE): Remove.
5832
58332008-06-22 Kenichi Handa <handa@m17n.org>
5834
5835 * font.c (font_find_for_lface): Try the adstyle specified in
5836 the property of LFACE_FONT of LFACE (if any).
5837
58382008-06-21 Seiji Zenitani <zenitani@mac.com>
5839 Ryo Yoshitake <ryo@shiftmode.net>
5840
5841 * xterm.c (x_set_frame_alpha): Add x_catch_errors for bug#437.
5842
58432008-06-22 Stefan Monnier <monnier@iro.umontreal.ca>
5844
5845 * Makefile.in (${lisp} ${SOME_MACHINE_LISP}, ../lisp/loaddefs.el):
5846 Use $(BOOTSTRAPEMACS) rather than witness-emacs.
5847 (bootstrap-emacs${EXEEXT}): Merge witness-emacs into it.
5848 (witness-emacs): Remove.
5849 (lisp, shortlisp): Move loaddefs.el earlier.
5850 (mostlyclean): Forget about witness-emacs.
5851
58522008-06-22 Glenn Morris <rgm@gnu.org>
5853
5854 * Makefile.in (witness-emacs): Depend on temacs${EXEEXT}.
5855 (.SUFFIXES): Declare .el.elc as a suffix rule, for non-GNU makes.
5856
58572008-06-21 Stefan Monnier <monnier@iro.umontreal.ca>
5858
5859 * Makefile.in (PRECOMP): Remove.
5860 (${lisp} ${SOME_MACHINE_LISP}): Remove pseudo dependency on PRECOMP.
5861 (witness-emacs): Run `compile-first'.
5862 (.el.elc): Use the new compile-onefile target.
5863
58642008-06-21 Kenichi Handa <handa@m17n.org>
5865
5866 * xftfont.c (xftfont_open): Handle QCembolden only when
5867 FC_EMBOLDEN is defined.
5868
58692008-06-21 Andreas Schwab <schwab@suse.de>
5870
5871 * Makefile.in (witness-emacs): Use ../lisp, not $(lispsource).
5872 (.el.elc): Likewise.
5873
58742008-06-21 Miles Bader <miles@gnu.org>
5875
5876 * Makefile.in (../lisp/loaddefs.el): Build autoloads in the lisp
5877 build dir, not the lisp source dir.
5878
58792008-06-21 Stefan Monnier <monnier@iro.umontreal.ca>
5880
5881 * Makefile.in (emacs${EXEEXT}): Link the new emacs to bootstrap-emacs.
5882 (bootstrapclean): Remove.
5883 (.el.elc): New rule.
5884 (PRECOMP): New var.
5885 (../lisp/subdirs.el): Remove.
5886 (bootstrap-emacs${EXEEXT}): Remove subdirs.el and charpro.el dependency.
5887 (witness-emacs): New target.
5888 (mostlyclean): Remove witness-emacs as well.
5889 (../lisp/loaddefs.el, ${lisp} ${SOME_MACHINE_LISP}):
5890 Add witness-emacs dependency.
5891
58922008-06-20 Chong Yidong <cyd@stupidchicken.com>
5893
5894 * font.c (Ffont_face_attributes): Omit key-attribute pairs not
5895 defined by the font.
5896
58972008-06-20 Stefan Monnier <monnier@iro.umontreal.ca>
5898
5899 * Makefile.in (emacs${EXEEXT}): Depend on the machine-specific files.
5900 (bootstrap-clean): New target that keeps TAGS around.
5901 (../lisp/subdirs.el, ../lisp/loaddefs.el): New targets.
5902 (bootstrap-emacs${EXEEXT}): Depend on subdirs.el.
5903
59042008-06-20 Jason Rumney <jasonr@gnu.org>
5905
5906 * w32fns.c, w32term.c, w32term.h, w32gui.h [OLD_FONT]:
5907 Remove obsolete font code.
5908
5909 * w32font.c (font_matches_spec): Use csb bitfield from font signature
5910 to determine language support.
5911
59122008-06-20 Stefan Monnier <monnier@iro.umontreal.ca>
5913
5914 * sysdep.c (cfsetspeed): New fun extracted from the code.
5915 (cfmakeraw): Move before first use.
5916
59172008-06-20 Angelo Graziosi <angelo.graziosi@alice.it> (tiny change)
5918
5919 * sysdep.c (cfmakeraw): Provide fallback implementation.
5920 (serial_configure): Provide fallback implementation of cfsetspeed.
5921
59222008-06-20 Kenichi Handa <handa@m17n.org>
5923
5924 * xftfont.c (xftfont_open): Add FOUNDRY, SPACING, DPI, SCALABLE to
5925 the pattern.
5926
5927 * fontset.c (fontset_from_font): Copy font_spec before changing
5928 the elements.
5929
5930 * xfns.c (x_default_font_parameter): Try "monospace-12" too.
5931
59322008-06-20 Stefan Monnier <monnier@iro.umontreal.ca>
5933
5934 * w32fns.c, xfns.c (x_default_font_parameter): Only set `font-param'
5935 for explicit `font' parameters.
5936
5937 * frame.c (x_set_font): Remove unexplained call to fix inf-recursion.
5938
59392008-06-19 Kenichi Handa <handa@m17n.org>
5940
5941 * frame.c: Include <ctype.h>.
5942 (x_set_font_backend): Allow spacing characters in the X resource
5943 for FontBackend.
5944
59452008-06-19 Stefan Monnier <monnier@iro.umontreal.ca>
5946
5947 * w32fns.c, xfns.c (Qfont_param): New var.
5948 (syms_of_w32fns): Initialize it.
5949 (x_default_font_parameter): Record explicit `font' into
5950 `font-parameter'.
5951
59522008-06-18 Kenichi Handa <handa@m17n.org>
5953
5954 * font.c (font_parse_xlfd): Fix previous change.
5955 (font_parse_fcname): Don't use :fc-unknown-spec.
5956 (FRAME_X_DISPLAY_INFO): Be sure to have at least 1 pixel height.
5957 (Fcopy_font_spec): Preserve the order of elements in FONT_EXTRA.
5958 (font_add_log): Prepend the driver name to the resulting fonts.
5959
5960 * ftfont.c (ftfont_pattern_entity): New arg extra. Caller changed.
5961 (ftfont_spec_pattern): Don't check QCfc_unknown_spec and QCname.
5962 (ftfont_list) [FC_FONTFORMAT]: Include FC_FONTFORMAT in objset.
5963
5964 * xftfont.c (QChinting , QCautohint, QChintstyle, QCrgba)
5965 (QCembolden): New variables.
5966 (syms_of_xftfont): DEFSYM them.
5967 (xftfont_open): Call XftFontMatch. Don't trust the result of
5968 XftTextExtents8 if the pixel_size is less than 5.
5969
59702008-06-18 Andreas Schwab <schwab@suse.de>
5971
5972 * font.c (Ffont_face_attributes): Only define if HAVE_WINDOW_SYSTEM.
5973 (syms_of_font): Only defsubr if HAVE_WINDOW_SYSTEM.
5974
59752008-06-18 Jason Rumney <jasonr@gnu.org>
5976
5977 * w32font.c (w32font_list, w32font_match): Add logging.
5978
5979 * w32uniscribe.c (uniscribe_list, uniscribe_match): Add logging.
5980
59812008-06-17 Chong Yidong <cyd@stupidchicken.com>
5982
5983 * font.c (font_parse_fcname): Store divider characters for
5984 unknown-spec list. For known key symbols, intern using correct
5985 symbol name.
5986
59872008-06-17 Kenichi Handa <handa@m17n.org>
5988
5989 * xfaces.c (realize_default_face): If the frame is not on window
5990 system, set the fontset of face to nil.
5991
59922008-06-17 Naohiro Aota <nao.aota@gmail.com> (tiny change)
5993
5994 * fontset.c (fontset_pattern_regexp): Escape some reg-expr characters.
5995
59962008-06-16 Juanma Barranquero <lekktu@gmail.com>
5997
5998 * dispextern.h (lookup_non_ascii_face, split_font_name_into_vector)
5999 (build_font_name_from_vector): Delete externs.
6000
6001 * xfaces.c (struct font_name): Don't declare.
6002
60032008-06-16 Stefan Monnier <monnier@iro.umontreal.ca>
6004
6005 * font.c (font_unparse_gtkname): Use EQ to compare Lisp_Objects.
6006
60072008-06-16 Chong Yidong <cyd@stupidchicken.com>
6008
6009 * font.c (font_parse_fcname): Fix handling of unknown-spec string.
6010
60112008-06-16 Juanma Barranquero <lekktu@gmail.com>
6012
6013 * font.c (Ffont_spec): Fix usage in docstring.
6014 (Ffont_face_attributes): Doc fix.
6015
60162008-06-16 Andreas Schwab <schwab@suse.de>
6017
6018 * font.c (Ffont_face_attributes): Fix definition.
6019
60202008-06-16 Jason Rumney <jasonr@gnu.org>
6021
6022 * font.h (font_style_symbolic_from_value): Remove.
6023
6024 * font.c (font_style_symbolic_from_value): Remove.
6025 (font_style_symbolic): Revert to pre 2008-06-13 version.
6026
6027 * w32font.c (w32_to_fc_weight): New function.
6028 (w32font_full_name, logfont_to_fcname): Use it.
6029
60302008-06-16 Kenichi Handa <handa@m17n.org>
6031
6032 * font.c (font_check_object): Delete it.
6033 (font_clear_cache): Check if a font-object is alive.
6034 (font_open_entity): Likewise. Set FONT_OBJLST_INDEX of a
6035 font-object to nil.
6036 (font_close_object): Don't check FONT_CLOSE_OBJECT.
6037 (font_at): Don't call font_check_object.
6038 (Ffont_get): Return a symbol for :weight, :slant, and :width.
6039
60402008-06-16 Katsumi Yamaoka <yamaoka@jpl.org>
6041
6042 * puresize.h (BASE_PURESIZE): Increase to 1230000.
6043
60442008-06-16 Chong Yidong <cyd@stupidchicken.com>
6045
6046 * font.c (font_parse_fcname): Correctly parse KEY=VAL values.
6047
60482008-06-15 Chong Yidong <cyd@stupidchicken.com>
6049
6050 * font.c (font_parse_fcname): Only one decimal point.
6051 (font_unparse_fcname): Handle data in family and foundry indices
6052 as symbols, not strings.
6053 (font_unparse_gtkname, Ffont_face_attributes): New functions.
6054
6055 * xfns.c (Fx_select_font): Give GTK font dialog the default font name.
6056
6057 * font.h (font_unparse_gtkname): Add prototype.
6058
60592008-06-15 Naohiro Aota <nao.aota@gmail.com> (tiny change)
6060
6061 * fontset.c (fontset_pattern_regexp): Escape `+' characters in pattern.
6062
60632008-06-15 Andreas Schwab <schwab@suse.de>
6064
6065 * font.c (font_update_drivers): Fix crash when no drivers match.
6066
60672008-06-15 Stefan Monnier <monnier@iro.umontreal.ca>
6068
6069 * xfns.c (Fx_create_frame): internal-border-width default to 0 for Gtk.
6070 * gtkutil.c (xg_create_frame_widgets): Don't set internal_border_width.
6071
60722008-06-14 Stefan Monnier <monnier@iro.umontreal.ca>
6073
6074 * xdisp.c (syms_of_xdisp): Default underline-minimum-offset to 1.
6075
60762008-06-13 Stefan Monnier <monnier@iro.umontreal.ca>
6077
6078 * process.c (Fserial_process_configure, Fprocess_send_eof):
6079 Use EQ to compare Lisp_Objects.
6080
60812008-06-13 Jason Rumney <jasonr@gnu.org>
6082
6083 * w32fns.c (Fw32_select_font): Remove old font API function.
6084
6085 * w32font.c (logfont_to_fcname): New function.
6086 (Fx_select_font): New font dialog function compatible with
6087 GTK/fontconfig version.
6088
6089 * font.c (font_style_symbolic_from_value): New function.
6090 (font_style_symbolic): Use it.
6091
6092 * font.h (font_style_symbolic_from_value): Declare new function.
6093
60942008-06-13 Juanma Barranquero <lekktu@gmail.com>
6095
6096 * font.c (syms_of_font) <font-weight-table, font-slant-table>:
6097 <font-width-table>: Fix typos in docstrings.
6098
60992008-06-13 Daniel Engeler <engeler@gmail.com>
6100
6101 These changes add serial port access.
6102 * process.c: Add HAVE_SERIAL.
6103 (Fdelete_process, Fprocess_status, Fset_process_buffer)
6104 (Fset_process_filter, Fset_process_sentinel, Fprocess_contact)
6105 (list_processes_1, select_wrapper, Fstop_process)
6106 (Fcontinue_process, Fprocess_send_eof, kill_buffer_processes)
6107 (status_notify): Modify to handle serial processes.
6108 [HAVE_SERIAL] (Fserial_process_configure)
6109 [HAVE_SERIAL] (make_serial_process_unwind, Fmake_serial_process):
6110 New functions.
6111 * process.h (struct Lisp_Process): Add `type'.
6112 * sysdep.c [HAVE_TERMIOS] (serial_open, serial_configure):
6113 New functions.
6114 * w32.c (_sys_read_ahead, sys_read, sys_write): Modify to handle
6115 serial ports.
b71ac3dd 6116 (serial_open, serial_configure): New functions.
aac0c6e3
MR
6117 * w32.h: Add FILE_SERIAL.
6118 (struct _child_process): Add ovl_read, ovl_write.
6119
61202008-06-13 Kenichi Handa <handa@m17n.org>
6121
6122 * dispextern.h (enum lface_attribute_index): New member
6123 LFACE_FOUNDRY_INDEX.
6124
6125 * font.c (font_score): Delete arg alternate_families. Check only
6126 weight, slant, width, and size. Ignore the difference of alias
6127 style symbols.
6128 (font_sort_entites): Adjust for the above change. Reflect the
6129 order of font-driver to scores.
6130 (font_list_entities): Don't check alternate_familes here.
6131 (font_clear_prop): Handle foundry.
6132 (font_update_lface): Don't parse "foundry-family" form here.
6133 Handle FONT_FOUNDRY_INDEX.
6134 (font_find_for_lface): Likewise. Handle alternate families here.
6135 If registry is nil, try iso8859-1 and ascii-0.
6136 (font_open_for_lface): Pay attention to size in ENTITY.
6137 (font_open_by_name): Simplify by calling font_load_for_lface.
6138 (free_font_driver_list): Delete it.
6139 (font_update_drivers): Preserve the order of backends.
6140 (syms_of_font): Setting of sort_shift_bits adjusted for the change
6141 of font_score and font_sort_entites.
6142 (font_update_sort_order): Likewise.
6143
6144 * xfaces.c (LFACE_FOUNDRY): New macro.
6145 (check_lface_attrs): Check foundry.
6146 (set_lface_from_font): Don't parse "FOUNDRY-FAMILY" form.
6147 (merge_face_vectors): Check foundry.
6148 (merge_face_ref): Likewise.
6149 (Finternal_set_lisp_face_attribute): Likewise.
6150 (x_update_menu_appearance): Likewise.
6151 (Finternal_get_lisp_face_attribute): Likewise.
6152 (lface_hash): Likewise.
6153 (lface_same_font_attributes_p): Likewise.
6154 (x_supports_face_attributes_p): Likewise.
6155 (tty_supports_face_attributes_p): Likewise.
6156 (Finternal_set_alternative_font_family_alist): Intern strings.
6157 (Finternal_set_alternative_font_registry_alist): Downcase strings.
6158 (realize_default_face): Set LFACE_FOUNDRY (lface).
6159
6160 * xfns.c (Fx_create_frame, x_create_tip_frame): Register X
6161 font-driver at first.
6162
6163 * ftfont.c (ftfont_font_format) [! FC_FONTFORMAT]: Declare "int len;".
6164
61652008-06-12 Emanuele Giaquinta <emanuele.giaquinta@gmail.com> (tiny change)
6166
6167 * lread.c (Fload): Use xfree, not free on saved_doc_string.
6168
61692008-06-12 Jim Meyering <meyering@redhat.com>
6170
6171 Make unexec_free handle NULL the same way free does.
6172 * unexmacosx.c (unexec_free): Ignore a NULL argument.
6173
61742008-06-12 Stefan Monnier <monnier@iro.umontreal.ca>
6175
6176 * character.h (CHAR_TO_BYTE_SAFE): New macro.
6177 * character.c (Fmultibyte_char_to_unibyte): Obey the docstring.
6178 * regex.c (RE_CHAR_TO_UNIBYTE): Use the new macro.
6179 (WEAK_ALIAS): Simplify.
6180 * syntax.c (skip_chars): Don't mark non-byte chars in the fastmap
6181 when searching a unibyte buffer.
6182
61832008-06-12 Chong Yidong <cyd@stupidchicken.com>
6184
6185 * xfns.c (Fx_select_font): Rename from x-font-dialog.
6186
61872008-06-12 Juanma Barranquero <lekktu@gmail.com>
6188
6189 * w32font.c: Include ctype.h.
6190
61912008-06-11 Jason Rumney <jasonr@gnu.org>
6192
6193 * w32font.c (w32font_encode_char): Detect missing glyphs that are
6194 misreported as space.
6195 (add_font_entity_to_list): Support unicode-bmp and unicode-sip
6196 as aliases for registry iso10646-1.
6197
61982008-06-11 Stefan Monnier <monnier@iro.umontreal.ca>
6199
6200 * buffer.c (clone_per_buffer_values): Skip `name'.
6201
62022008-06-11 Chong Yidong <cyd@stupidchicken.com>
6203
6204 * font.c (font_parse_fcname): Fix last change; accept decimal
6205 points in font size.
6206
62072008-06-10 Jason Rumney <jasonr@gnu.org>
6208
6209 * w32uniscribe.c (add_opentype_font_name_to_list):
6210 Skip non unicode fonts.
6211
62122008-06-10 Chong Yidong <cyd@stupidchicken.com>
6213
6214 * xfns.c (Fx_font_dialog): New function.
6215
6216 * gtkutil.c (xg_dialog_response_cb): Rename from
6217 xg_file_response_callback.
6218 (pop_down_dialog): Rename from pop_down_file_dialog.
6219 (xg_get_file_name): Callers changed.
6220 (xg_get_font_name): New function.
6221
6222 * gtkutil.h (xg_get_font_name): Insert prototype.
6223
62242008-06-10 Stefan Monnier <monnier@iro.umontreal.ca>
6225
6226 * xdisp.c (underline_minimum_offset): Rename from xterm.c's
6227 x_underline_minimum_display_offset.
6228 (syms_of_xdisp): Declare it here rather than in xterm.c.
6229 * dispextern.h (underline_minimum_offset): Declare it.
6230 * w32term.c (x_draw_glyph_string): Use it.
6231 * xterm.c (x_underline_minimum_display_offset): Move to xdisp.c.
6232 (syms_of_xterm): Don't declare it any more.
6233 (x_draw_glyph_string): Adjust to the new name.
6234
62352008-06-10 David De La Harpe Golden <david@harpegolden.net> (tiny change)
6236
6237 * xterm.c (x_underline_minimum_display_offset): New var.
6238 (x_draw_glyph_string): Use it.
6239 (syms_of_xterm): Declare it.
6240
62412008-06-10 Chong Yidong <cyd@stupidchicken.com>
6242
6243 * font.c (font_parse_fcname): Accept GTK-style font names too.
6244
62452008-06-10 Stefan Monnier <monnier@iro.umontreal.ca>
6246
6247 * dired.c (file_name_completion): Don't return t if the match is exact
6248 but with different capitalization.
6249 * minibuf.c (Ftry_completion): Simplify.
6250
6251 * window.c (Vwindow_point_insertion_type): New var.
6252 (set_window_buffer): Use it.
6253 (syms_of_window): Init and export it to Lisp.
6254
62552008-06-10 Kenichi Handa <handa@m17n.org>
6256
6257 * font.h (font_intern_prop): Prototype adjusted.
6258
6259 * font.c (font_intern_prop): New arg force_symbol.
6260 (font_parse_xlfd, font_parse_fcname, font_parse_family_registry):
6261 Adjust for the change of font_intern_prop.
6262
6263 * ftfont.c (ftfont_pattern_entity):
6264 * w32font.c (add_font_name_to_list, w32_enumfont_pattern_entity)
6265 (w32_registry):
6266 * w32uniscribe.c (add_opentype_font_name_to_list): Adjust for
6267 the change of font_intern_prop.
6268
62692008-06-09 Juanma Barranquero <lekktu@gmail.com>
6270
6271 * w32menu.c (digest_single_submenu): Declare extern.
6272
62732008-06-09 Jason Rumney <jasonr@gnu.org>
6274
6275 * w32term.c (x_make_frame_visible): Use alternate restore flags.
6276
6277 * w32menu.c (Fx_popup_menu): Unwind protect while building menu.
6278 (parse_single_submenu): Remove.
6279 (digest_single_submenu): Remove.
6280 (syms_of_w32menu): Don't initialise variables that have moved
6281 to menu.c.
6282 (set_frame_menubar): Sync with version in xmenu.c.
6283 (w32_menu_show): Sync with xmenu_show in xmenu.c.
6284
6285 * menu.c (single_keymap_panes, push_menu_pane, push_menu_item):
6286 Make static again.
6287
62882008-06-09 Jason Rumney <jasonr@gnu.org>
6289
6290 Changes to w32 files related to the move of common menu code
6291 to menu.c on 2008-06-08 by Chong Yidong.
6292
6293 * menu.c [HAVE_NTGUI]: Include w32term.h, move widget related
6294 defs to w32gui.h.
6295 (single_keymap_panes, push_menu_item, push_menu_pane):
6296 Make globally visible.
6297
6298 * w32menu.c (enum button_type, widget_value, local_heap, local_alloc)
6299 (local_free, malloc_widget_value, free_widget_value)
6300 (MENU_ITEMS_ITEM_NAME, MENU_ITEMS_ITEM_ENABLE, MENU_ITEMS_ITEM_VALUE)
6301 (MENU_ITEMS_ITEM_EQUIV_KEY, MENU_ITEMS_ITEM_DEFINITION)
6302 (MENU_ITEMS_ITEM_TYPE, MENU_ITEMS_ITEM_SELECTED, MENU_ITEMS_ITEM_HELP)
6303 (MENU_ITEMS_ITEM_LENGTH, enum menu_item_idx): Remove defs.
6304 (menu_items, menu_items_allocated, menu_items_used)
6305 (menu_items_n_panes, menu_items_submenu_depth): Remove global vars.
6306 (init_menu_items, finish_menu_items, discard_menu_items)
6307 (grow_menu_items, push_submenu_start, push_submenu_end)
6308 (push_left_right_boundary, push_menu_pane, push_menu_item)
6309 (keymap_panes, single_keymap_panes, list_of_panes, list_of_items)
6310 (free_menubar_widget_tree_value, parse_single_submenu)
6311 (update_submenu_strings): Remove functions.
6312 (xmalloc_widget_value): Remove and declare extern.
6313
6314 * makefile.w32-in ($(SRC)/menu.$(O)): New target.
6315 (OBJ1): Build it.
6316
6317 * w32gui.h (widget_value, XtPointer, Boolean, enum button_type)
6318 (local_heap, local_alloc, local_free, malloc_widget_value)
6319 (free_widget_value): Define here.
6320
63212008-06-09 Kenichi Handa <handa@m17n.org>
6322
6323 * font.h (Qascii_0): Extern it.
6324
6325 * font.c (Qascii_0): New variable.
6326 (syms_of_font): DEFSYM it.
6327 (font_open_by_name): If the registry "iso8859-1" fails, try also
6328 "ascii-0".
6329
6330 * ftfont.c (ftfont_spec_pattern): Accept the registry `ascii-0'.
6331
63322008-06-08 Kenichi Handa <handa@m17n.org>
6333
6334 * .gdbinit (xfont): New command.
6335
63362008-06-08 Andreas Schwab <schwab@suse.de>
6337
6338 * menu.c [HAVE_X_WINDOWS]: Include "xterm.h".
6339 * Makefile.in (menu.o): Update dependencies.
6340
6341 * Makefile.in (obj): Always add menu.o.
6342 * emacs.c (main): Always call syms_of_menu.
6343 * keyboard.h: Remove extra #ifdef HAVE_X_WINDOW.
6344
63452008-06-08 Chong Yidong <cyd@stupidchicken.com>
6346
6347 * Makefile.in: Compile menu.c.
6348
6349 * lisp.h: Declare syms_of_menu.
6350
6351 * emacs.c (main): Call syms_of_menu.
6352
6353 * keyboard.h: Relocate platform-independent menu definitions from
6354 xmenu.c.
6355
6356 * menu.c: New file. Relocate platform-independent menu
6357 definitions from xmenu.c. Suggested by Adrian Robert.
6358
6359 * xmenu.c: Remove platform-independent menu definitions.
6360 (menu_items menu_items_inuse, menu_items_allocated)
6361 (menu_items_used, menu_items_n_panes)
6362 (menu_items_submenu_depth): Move to keyboard.h.
6363 (init_menu_items, finish_menu_items, unuse_menu_items)
6364 (discard_menu_items, restore_menu_items, save_menu_items)
6365 (grow_menu_items, push_submenu_start, push_submenu_end)
6366 (push_left_right_boundary, push_menu_pane, push_menu_item)
6367 (keymap_panes, single_keymap_panes, single_menu_item)
6368 (list_of_panes, list_of_items, find_and_call_menu_selection)
6369 (xmalloc_widget_value, free_menubar_widget_value_tree)
6370 (parse_single_submenu, digest_single_submenu)
6371 (update_submenu_strings): Move to menu.c.
6372
63732008-06-07 Stefan Monnier <monnier@iro.umontreal.ca>
6374
6375 * dispnew.c (Flast_nonminibuf_frame): Handle the NULL case.
6376
63772008-06-06 Miles Bader <miles@gnu.org>
6378
6379 * xdisp.c (x_produce_glyphs): Calculate tab width based on current
6380 face, not frame default.
6381
63822008-06-05 Martin Rudalics <rudalics@gmx.at>
6383
6384 * window.c (pop_up_windows, pop_up_frames)
6385 (display_buffer_reuse_frames, Vpop_up_frame_function)
6386 (Vdisplay_buffer_function, Veven_window_heights)
6387 (Vspecial_display_buffer_names, Vspecial_display_regexps)
6388 (Vspecial_display_function, Vsame_window_buffer_names)
6389 (Vsame_window_regexps, split_height_threshold)
6390 (Vsplit_window_preferred_function): Move those vars to window.el.
6391 (display_buffer_1, Fspecial_display_p, Fsame_window_p)
6392 (Fdisplay_buffer): Move those functions to window.el.
6393 (syms_of_window): Remove corresponding declarations.
6394 (display_buffer): New function.
6395 (temp_output_buffer_show, Fother_window_for_scrolling): Use it.
6396 * dispnew.c (Flast_nonminibuf_frame): New function.
6397 * buffer.c (Fpop_to_buffer): Move to window.el.
6398
63992008-06-05 Stefan Monnier <monnier@iro.umontreal.ca>
6400
6401 * data.c (set_internal): Fix up call to let_shadows_buffer_binding_p.
6402
64032008-06-05 Kenichi Handa <handa@m17n.org>
6404
6405 * coding.c (detect_coding): Fix previous change.
6406 (detect_coding_system): Likewise.
6407
64082008-06-05 Stefan Monnier <monnier@iro.umontreal.ca>
6409
6410 * character.h (MAKE_CHAR_MULTIBYTE): Check the arg is a (uni)byte.
6411
6412 * keymap.c (Vminibuffer_local_filename_must_match_map):
6413 Rename from Vminibuffer_local_must_match_filename_map.
6414 (syms_of_keymap):
6415 * minibuf.c (Fcompleting_read): Adjust accordingly.
6416 * commands.h: Rename declaration as well.
6417
64182008-06-05 Kenichi Handa <handa@m17n.org>
6419
6420 * font.c (Ffont_spec): Don't use font_parse_family_registry for
6421 family name.
6422 (Ffont_put): Likewise.
6423
6424 * fontset.c (fontset_find_font): Call font_open_for_lface with the
6425 current font-spec.
6426
6427 * xfont.c (xfont_list): Don't set registry to iso8859-1 even if it
6428 is unspecified.
6429
6430 * xfaces.c (realize_x_face): If the font-related face attributes
6431 are the same as those of default face, realize a new fontset from
6432 default->fontset.
6433 (Fx_family_fonts): Use font_parse_family_registry instead of Ffont_put.
6434
64352008-06-05 Stefan Monnier <monnier@iro.umontreal.ca>
6436
6437 * xdisp.c (move_it_in_display_line_to): Improve the type of its args.
6438 (move_it_in_display_line): New wrapper.
6439
6440 * window.c (window_scroll_pixel_based_preserve_x)
6441 (window_scroll_preserve_hpos, window_scroll_preserve_vpos): New vars.
6442 (window_scroll_pixel_based, window_scroll_line_based):
6443 Use them to preserve column positions.
6444 (syms_of_window): Initialize them.
6445
6446 * indent.c (Fvertical_motion): Extend first arg to allow passing an
6447 (HPOS . VPOS) pair.
6448
6449 * dispextern.h (move_it_in_display_line): Declare.
6450
64512008-06-05 Juanma Barranquero <lekktu@gmail.com>
6452
6453 * window.c (Fwindow_parameter): Return VALUE, not (PARAMETER . VALUE).
6454 (Fwindow_parameters): Return copy of parameter alist. Doc fix.
6455 (Fset_window_parameter): Return VALUE, not parameter alist. Doc fix.
6456
64572008-06-04 Juanma Barranquero <lekktu@gmail.com>
6458
6459 * window.c (Fset_window_parameter): Doc fix.
6460 (Fwindow_parameters, Fwindow_parameter): Remove redundant check.
6461
64622008-06-04 Joakim Verona <joakim@verona.se>
6463
6464 * window.h (struct window): Add new member window_parameters.
6465
6466 * window.c (Fwindow_parameters, Fwindow_parameter)
6467 (Fset_window_parameter): New defuns.
6468 (syms_of_window): Defsubr the new defuns.
6469 (make_window): Initialize window_parameters to nil.
6470
64712008-06-04 John Paul Wallington <jpw@pobox.com>
6472
6473 * eval.c (Fdefmacro): Doc fix.
6474
64752008-06-04 Kenichi Handa <handa@m17n.org>
6476
6477 * coding.c (detect_coding): Fix handling of coding->head_ascii.
6478 Be sure to call setup_coding_system when we find a proper coding system.
6479 (detect_coding_system): Fix handling of coding->head_ascii.
6480
64812008-06-03 Andreas Schwab <schwab@suse.de>
6482
6483 * font.c (font_prop_validate_spacing): Fix last change.
6484
64852008-06-03 Kenichi Handa <handa@m17n.org>
6486
6487 * font.c (font_prop_validate_spacing): Handle uppercase symbols.
6488 (font_parse_fcname): Fix handling of unknown key.
6489
6490 * xfont.c (xfont_list): Try an alias.
6491
6492 * charset.c (char_charset): Return NULL if the arg charset_list is
6493 specified and C doesn't belong to any of them.
6494
64952008-06-02 Chip Coldwell <coldwell@redhat.com>
6496
6497 * font.c (font_pixel_size): Don't take cdr of an integer.
6498
64992008-06-02 Jim Meyering <meyering@redhat.com>
6500
6501 Make "xfree (NULL)" a no-op; remove useless if-before-xfree.
6502 * alloc.c (xfree): Return right away for a NULL arg.
6503 * lread.c (nosuffix): Remove now-useless if-before-xfree tests.
6504 * gtkutil.c (xg_gtk_scroll_destroy): Likewise.
6505 * mac.c (create_apple_event_from_event_ref): Likewise.
6506 (create_apple_event_from_drag_ref, cfstring_create_normalized):
6507 Likewise.
6508 * doprnt.c (doprnt1): Likewise.
6509 * frame.c (frame): Likewise.
6510 * keyboard.c (wipe_kboard): Likewise.
6511 * macterm.c (x_free_frame_resources, xlfdpat_destroy, XFreePixmap)
6512 (init_font_name_table, mac_unload_font, x_delete_display): Likewise.
6513 * term.c (tty_default_color_capabilities, maybe_fatal)
6514 (delete_tty): Likewise.
6515 * w16select.c (string): Likewise.
6516 * w32.c (w32_get_resource, SET_ENV_BUF_SIZE): Likewise.
6517 * w32bdf.c (w32_free_bdf_font): Likewise.
6518 * w32fns.c (w32_unload_font): Likewise.
6519 * w32font.c (w32font_close): Likewise.
6520 * window.c (size_window): Likewise.
6521 * xselect.c (receive_incremental_selection): Likewise.
6522 * xterm.c (x_free_frame_resources, x_delete_display): Likewise.
6523 * mactoolbox.c (create_apple_event_from_drag_ref): Likewise.
6524 * w32.c (stat): Likewise.
6525
6526 Remove useless if-before-free tests.
6527 * editfns.c (Fset_time_zone_rule): Likewise.
6528 * lread.c (nosuffix): Likewise.
6529 * ralloc.c (get_bloc): Likewise.
6530 * regex.c (reg_free): Likewise.
6531 * xftfont.c (xftfont_open, xftfont_close): Likewise.
6532 * xrdb.c (get_user_app, get_environ_db, x_load_resources): Likewise.
6533 * xsmfns.c (smc_save_yourself_CB): Likewise.
6534
65352008-06-02 Kenichi Handa <handa@m17n.org>
6536
6537 * font.c (font_find_for_lface): Handle float font size.
6538 (font_open_for_lface): Likewise.
6539
6540 * xfaces.c (x_supports_face_attributes_p): Check face->font before
6541 comparing the properties.
6542
65432008-06-01 Jason Rumney <jasonr@gnu.org>
6544
6545 * w32font.c (w32_enumfont_pattern_entity): Use requested registry.
6546 Treat iso10646-1 and Windows DEFAULT_CHARSET specially.
6547 Duplicate iso8859-1 fonts as iso10646-1 if no registry specified.
6548 Don't add empty script list.
6549 (w32_registry): Only map DEFAULT_CHARSET to iso10646-1 here.
6550
65512008-06-01 Dan Nicolaescu <dann@ics.uci.edu>
6552
6553 * Makefile.in (dot, dotdot): Remove, update users.
6554 ".." has been used elsewhere in the file for a long time.
6555 (LIBXT_STATIC): Remove conditional based on unused variable.
6556
65572008-06-01 Miles Bader <miles@gnu.org>
6558
6559 * xfaces.c (Vface_remapping_alist): New variable.
6560 (syms_of_xfaces): Initialize it.
6561 (enum named_merge_point_kind): New type.
6562 (struct named_merge_point): Add `named_merge_point_kind' field.
6563 (push_named_merge_point): Make cycle detection respect different
6564 named-merge-point kinds.
6565 (lface_from_face_name_no_resolve): Rename from `lface_from_face_name'.
6566 Remove face-name alias resolution.
6567 (lface_from_face_name): New definition using
6568 `lface_from_face_name_no_resolve'.
6569 (get_lface_attributes_no_remap): Rename from `get_lface_attributes'.
6570 Call lface_from_face_name_no_resolve instead of lface_from_face_name.
6571 (get_lface_attributes): New definition that layers face-remapping on
6572 top of get_lface_attributes_no_remap. New arg `named_merge_points'.
6573 (lookup_basic_face): New function.
6574 (lookup_derived_face): Pass new last arg to `get_lface_attributes'.
6575 (realize_named_face): Call `get_lface_attributes_no_remap' instead of
6576 `get_lface_attributes'.
6577 (face_at_buffer_position): Use `lookup_basic_face' to lookup
6578 DEFAULT_FACE_ID if necessary. When optimizing the default-face case,
6579 return default_face's face-id instead of the constant DEFAULT_FACE_ID.
6580
6581 * xdisp.c (init_iterator): Pass base_face_id through
6582 `lookup_basic_face' when we actually use it as a face-id.
6583 (handle_single_display_prop): Use `lookup_basic_face' to lookup
6584 DEFAULT_FACE_ID.
6585
6586 * fontset.c (Finternal_char_font): Use `lookup_basic_face' to
6587 lookup the initial face-id.
6588
6589 * dispextern.h (lookup_basic_face, Vface_remapping_alist): New decls.
6590
65912008-06-01 Juanma Barranquero <lekktu@gmail.com>
6592
6593 * textprop.c (syms_of_textprop) <text-property-default-nonsticky>:
6594 (Fremove_text_properties): Fix typos in docstrings.
6595
65962008-05-31 Kenichi Handa <handa@m17n.org>
6597
6598 * font.c (font_list_entities): Fix the car part of data to be
6599 stored in the cache.
6600
6601 * ftfont.c (ftfont_font_format): Don't use strcasestr.
6602
66032008-05-30 Stefan Monnier <monnier@iro.umontreal.ca>
6604
6605 * chartab.c (Foptimize_char_table, optimize_sub_char_table):
6606 Add a `test' argument so another predicate than `equal' can be used.
6607 (map_sub_char_table): Use `eq' rather than `equal' to merge ranges.
6608 (map_char_table): Remove unused vars `c' and `i'.
6609 * lisp.h (Foptimize_char_table): Adjust declaration.
6610 * charset.c (Fclear_charset_maps): Adjust call to Foptimize_char_table.
6611
66122008-05-30 Kenichi Handa <handa@m17n.org>
6613
6614 * font.c (Ffont_info): Define only if HAVE_WINDOW_SYSTEM is defined.
6615 (syms_of_font): Defsubr Sfont_info only if HAVE_WINDOW_SYSTEM is
6616 defined.
6617
66182008-05-30 Stefan Monnier <monnier@iro.umontreal.ca>
6619
6620 * data.c (Fmake_variable_buffer_local, Fmake_local_variable)
6621 (Fmake_variable_frame_local): Disallow mixing buffer-local and
6622 frame-local settings for the same variable.
6623
66242008-05-30 Kenichi Handa <handa@m17n.org>
6625
6626 * fontset.c (Ffont_info): Move to font.c.
6627 (syms_of_fontset): Delete defsubr of Sfont_info.
6628
6629 * font.c (font_style_to_value, font_score): Delete casting of the
6630 args to xstcasecmp.
6631 (register_font_driver): Increment num_font_drivers only when
6632 registering the driver globally.
6633 (Ffont_info): Move from fontset.c. Handle a font object too.
6634 (syms_of_font): Defsubr Sfont_info.
6635
66362008-05-29 Kenichi Handa <handa@m17n.org>
6637
6638 * coding.h (enum define_coding_utf8_arg_index): New enum.
6639 (enum coding_attr_index): Change coding_attr_utf_16_bom to
6640 coding_attr_utf_bom.
6641 (enum utf_bom_type): Rename from utf_16_bom_type.
6642 (struct utf_16_spec): Adjust for the above change.
6643 (struct coding_system): Add utf_8_bom in `spec' union.
6644
6645 * coding.c (CODING_UTF_8_BOM): New macro.
6646 (enum coding_category): Delete coding_category_utf_8, add
6647 coding_category_utf_8_auto, coding_category_utf_8_nosig, and
6648 coding_category_utf_8_sig.
6649 (CATEGORY_MASK_UTF_8): Delete it.
6650 (CATEGORY_MASK_UTF_8_AUTO, CATEGORY_MASK_UTF_8_NOSIG)
6651 (CATEGORY_MASK_UTF_8_SIG): New macros.
6652 (CATEGORY_MASK_ANY): Delete CATEGORY_MASK_UTF_8, add
6653 CATEGORY_MASK_UTF_8_AUTO, CATEGORY_MASK_UTF_8_NOSIG, and
6654 CATEGORY_MASK_UTF_8_SIG.
6655 (CATEGORY_MASK_UTF_8): New macro.
6656 (UTF_BOM, UTF_8_BOM_1, UTF_8_BOM_2, UTF_8_BOM_3): New macros.
6657 (detect_coding_utf_8): Check BOM.
6658 (decode_coding_utf_8, encode_coding_utf_8): Handle BOM.
6659 (decode_coding_utf_16): Adjust for the change of enum utf_bom_type.
6660 (encode_coding_utf_16): Likewise.
6661 (setup_coding_system): Likewise. Set CODING_UTF_8_BOM (coding).
6662 (detect_coding, detect_coding_system): Handle utf-8-auto.
6663 (Fdefine_coding_system_internal): Handle `bom' property for utf-8.
6664 (syms_of_coding): Fix setting up of Vcoding_category_table.
6665
66662008-05-29 Stefan Monnier <monnier@iro.umontreal.ca>
6667
6668 * process.c (Faccept_process_output): If `millisec' is non-nil,
6669 `seconds' default to 0.
6670 (wait_reading_process_output): Also return non-nil if we read output
6671 from a non-running process.
6672
66732008-05-29 Jason Rumney <jasonr@gnu.org>
6674
6675 * w32font.c (w32font_open_internal): Prefer truetype fonts unless
6676 `raster' specified.
6677 (add_font_entity_to_list): Allow non-opentype truetype fonts back
6678 in the uniscribe backend, but disallow any font that has no
6679 unicode subrange support.
6680
66812008-05-29 Juanma Barranquero <lekktu@gmail.com>
6682
6683 * xfaces.c (Fx_list_fonts, Finternal_copy_lisp_face):
6684 Fix typos in docstrings.
6685
66862008-05-29 Kenichi Handa <handa@m17n.org>
6687
6688 * xfaces.c (Fx_list_fonts): Make it return a list of font names.
6689 (Fx_family_fonts): Set frame correctly.
6690
66912008-05-28 Jason Rumney <jasonr@gnu.org>
6692
6693 * w32term.c (x_draw_glyph_string): Use clipmask if specified.
6694
66952008-05-28 Stefan Monnier <monnier@iro.umontreal.ca>
6696
6697 * fileio.c (Fwrite_region): Delay the defaulting to beg&z to after
6698 calling build_annotations.
6699
67002008-05-28 Juanma Barranquero <lekktu@gmail.com>
6701
6702 * coding.c (Fdecode_coding_region, Fencode_coding_region)
6703 (Fencode_coding_string):
6704 (syms_of_coding) <coding-system-for-read, coding-system-for-write>:
6705 <latin-extra-code-table>: Fix typos in docstrings.
6706 (syms_of_coding) <coding-system-alist>: Doc fix.
6707 (syms_of_coding) <translation-table-for-input>: Reflow docstring.
6708
67092008-05-28 Kenichi Handa <handa@m17n.org>
6710
6711 * fontset.c (Ffont_info): Don't call font_close_object.
6712
6713 * font.c (font_parse_family_registry): Use Ffont_put to validate
6714 foundry and family.
6715 (font_delete_unmatched): Don't check spacing.
6716 (font_list_entities): Add spacing to the spec to list fonts.
6717
6718 * ftfont.c (ftfont_spec_pattern): Don't set FC_SPACING to pattern.
6719 (ftfont_list): Check spacing here. Don't include FC_CHARSET in objset.
6720
6721 * coding.c (encode_coding_raw_text): Fix previous change.
6722 (encode_coding_object): When the dst_object is a buffer and is
6723 different from src_object, move gap to PT.
6724
67252008-05-27 Chong Yidong <cyd@stupidchicken.com>
6726
6727 * xterm.c (x_draw_glyph_string): If a clipmask is specified, use it.
6728
67292008-05-27 Stefan Monnier <monnier@iro.umontreal.ca>
6730
6731 * coding.c (encode_coding_raw_text): Set coding->produced_char for
6732 all branches. Compute it differently.
6733
6734 * xdisp.c [!HAVE_WINDOW_SYSTEM]: Include font.h for --without-x.
6735
67362008-05-27 Juanma Barranquero <lekktu@gmail.com>
6737
6738 * w32font.c (compute_metrics): Rewrite an "else { if () ... else ... }"
6739 into "else if () ... else ...".
6740
67412008-05-27 Jason Rumney <jasonr@gnu.org>
6742
6743 * w32font.c (w32font_open_internal): Determine if glyph indices
6744 are likely to work here.
6745
67462008-05-27 Chong Yidong <cyd@stupidchicken.com>
6747
6748 * xdisp.c (draw_glyphs): If mouse-highlighting is on, attempt to
6749 draw overlap glyphs with appropriate highlighting.
6750
67512008-05-27 Kenichi Handa <handa@m17n.org>
6752
6753 * xfont.c (xfont_open): Fix calculation of font->average_width.
6754
67552008-05-27 Stefan Monnier <monnier@iro.umontreal.ca>
6756
6757 * casefiddle.c (casify_object): Try to guess better whether the
6758 argument is a byte or a char.
6759
67602008-05-26 Andreas Schwab <schwab@suse.de>
6761
6762 * xselect.c (x_reply_selection_request): Properly handle format == 32.
6763 Always send multiples of format size.
6764
6765 * xterm.c (x_set_frame_alpha): Fix type mismatch.
6766
67672008-05-26 Jason Rumney <jasonr@gnu.org>
6768
6769 * w32font.c (w32font_text_extents): Zero whole metrics struct first.
6770 (compute_metrics): Don't set failure if we just cleared the cache.
6771 (w32_weight_table): Remove unused variable.
6772 (w32_enumfont_pattern_entity): Use FONT_SPACING_CHARCELL for
6773 backwards compatibility.
6774
67752008-05-25 Kenichi Handa <handa@m17n.org>
6776
6777 * w32term.c (x_draw_glyph_string):
6778 * xterm.c (x_draw_glyph_string): Fix calculation of underline position.
6779
6780 * xfaces.c: Delete unused function prototypes.
6781 (xstrlwr, font_frame): Delete them.
6782 (clear_face_cache): Delete unused variable.
6783
6784 * xftfont.c (xftfont_open): Delete unused variable.
6785 If underline_thickness is not 1, adjust underline_position.
6786
6787 * ftxfont.c (ftxfont_open): Delete unused variable.
6788
6789 * fontset.c (face_for_char): Optimize for the case of no charset
6790 property.
6791
6792 * font.c (LGSTRING_HEADER_SIZE, LGSTRING_GLYPH_SIZE)
6793 (check_gstring, check_otf_features, otf_list, otf_tag_symbol)
6794 (otf_open, font_otf_capability, generate_otf_features)
6795 (font_otf_DeviceTable, font_otf_ValueRecord, font_otf_Anchor):
6796 Comment out by surrounding "#if 0" and "#endif" for the moment.
6797 (Ffont_drive_otf, Ffont_otf_alternates): Likewise.
6798 (syms_of_font): Codes for accessing above commented out.
6799
68002008-05-24 Eli Zaretskii <eliz@gnu.org>
6801
6802 * w32proc.c: Include dispextern.h.
6803
6804 * w32.c: Include dispextern.h.
6805
68062008-05-23 Juanma Barranquero <lekktu@gmail.com>
6807
6808 * charset.c (Fencode_char, Fsplit_char): Doc fixes.
6809 (Fget_unused_iso_final_char, Fdecode_char, Fiso_charset):
6810 Fix typos in docstrings.
6811
68122008-05-23 Jason Rumney <jasonr@gnu.org>
6813
6814 * xsmfns.c: Remove includes that are already included by config.h.
6815
68162008-05-23 Kenichi Handa <handa@m17n.org>
6817
6818 * charset.c (Qemacs, charset_emacs): New variables.
6819 (char_charset): Fix for non-Unicode characters.
6820 (syms_of_charset): Define charset_emacs.
6821
6822 * w32term.c (x_draw_glyph_string): Be sure to update
6823 s->underline_thickness and s->underline_position. Be sure to draw
6824 underline within the current line area.
6825
6826 * xterm.c (x_draw_glyph_string): Be sure to update
6827 s->underline_thickness and s->underline_position. Be sure to draw
6828 underline within the current line area.
6829
6830 * fontset.c: Delete unused variables and add casting for char *
6831 throughout the file.
6832 (fontset_font): Try the fallback fonts of the current fontset
6833 before consulting the default fontset.
6834
6835 * ftfont.c (ftfont_spec_pattern): Free charset if necessary.
6836
6837 * xfont.c (xfont_list_pattern): Free names returned from XListFonts.
6838
68392008-05-22 Jason Rumney <jasonr@gnu.org>
6840
6841 * font.c: Don't include strings.h.
6842
6843 * dispextern.h, xfaces.c (xstrcasecmp): Rename from xstricmp.
6844
6845 * dosfns.c, fileio.c, font.c, fontset.c, image.c, macfns.c:
6846 * macterm.c, process.c, w32.c, w32fns.c, w32proc.c, xfaces.c:
6847 * xfns.c, xfont.c: All callers of stricmp and strcasecmp changed
6848 to call xstrcasecmp.
6849
6850 * xfont.c (xfont_list_pattern, compare_font_names): Use xstrcasecmp.
6851
6852 * fontset.c (fs_query_fontset): Use xstrcasecmp.
6853
6854 * font.c (font_style_to_value, font_score): Use xstrcasecmp.
6855
6856 * dosfns.c (msdos_stdcolor_idx): Use xstrcasecmp.
6857
68582008-05-22 Kenichi Handa <handa@m17n.org>
6859
6860 * puresize.h (BASE_PURESIZE): Increase to 1220000.
6861
6862 * font.c (font_prop_validate_style): Adjust for the format
6863 change of font_style_table.
6864
6865 * w32font.c (w32font_open_internal): Call Ffont_xlfd_name with
6866 two args.
6867
6868 * xfaces.c (x_update_menu_appearance): Call Ffont_xlfd_name with
6869 two args.
6870
68712008-05-22 Stefan Monnier <monnier@iro.umontreal.ca>
6872
6873 * minibuf.c (keys_of_minibuf): Delete.
6874 * lisp.h (keys_of_minibuf): Delete.
6875 * emacs.c (main): Don't call keys_of_minibuf.
6876
68772008-05-22 Kenichi Handa <handa@m17n.org>
6878
6879 * ftfont.c (ftfont_resolve_generic_family): Rename from
6880 ftfont_list_generic_family. Return a single family for each
6881 generic family.
6882 (ftfont_spec_pattern): Add FC_FAMILY to pattern.
6883 (ftfont_list): Adjust for the change of ftfont_resolve_generic_family.
6884 Call font_add_log.
6885 (ftfont_match): Call font_add_log.
6886
6887 * font.h (Ffont_xlfd_name): EXFUN adjusted.
6888 (FONT_DEBUG): Define it.
6889 (font_add_log): Extern it.
6890 (font_assert): Rename from xassert.
6891
6892 * xfont.c (xfont_get_pcm): Change xassert to font_assert.
6893 (xfont_list_family): Call font_add_log.
6894 (xfont_match): Likewise.
6895 (memq_no_quit): Delete.
6896
6897 * fontset.c (fontset_from_font, Ffontset_info): Add the 2nd arg in
6898 call of Ffont_xlfd_name.
6899
6900 * xfaces.c (struct table_entry, slant_table, weight_table)
6901 (swidth_table): Move to font.c.
6902
6903 * font.c: Checking of FONT_DEBUG is moved to font.h. All calls of
6904 xassert are changed to font_assert. Delete many unused variables.
6905 (Vfont_weight_table, Vfont_slant_table, Vfont_width_table):
6906 New variables.
6907 (struct table_entry): Move from xfaces.c and modified.
6908 (weight_table, slant_table, width_table): Move from xfaces.c and
6909 contents adjusted for the change of struct table_entry.
6910 (font_style_to_value, font_style_symbolic): Adjust for the
6911 format change of font_style_table.
6912 (font_parse_family_registry): Don't overwrite existing foundry and
6913 family of font_spec.
6914 (font_score): Fix calculation of diff for sizes.
6915 (font_sort_entites): Call font_add_log.
6916 (font_delete_unmatched): Return a newly created list.
6917 (font_list_entities): Fix previous change. Call font_add_log.
6918 (font_matching_entity, font_open_entity, font_close_entity):
6919 Call font_add_log.
6920 (Ffont_xlfd_name): New arg FOLD-WILDCARDS.
6921 (Finternal_set_font_style_table): Delete.
6922 (BUILD_STYLE_TABLE): New macro.
6923 (build_style_table): New function.
6924 (Vfont_log, font_log_env_checked): New variables.
6925 (font_add_log): New function.
6926 (syms_of_font): Delete defsubr Sinternal_set_font_style_table.
6927 Declare Lisp variables "font-weight-table", "font-slant-table",
6928 "font-width-table", and "font-log". Initialize font_style_table.
6929
69302008-05-21 Dan Nicolaescu <dann@ics.uci.edu>
6931
6932 * xterm.c (x_set_frame_alpha): Move declarations before statements.
6933
69342008-05-21 Seiji Zenitani <zenitani@mac.com>
6935 Ryo Yoshitake <ryo@shiftmode.net>
6936
6937 * frame.c (Qalpha): Add a new frame parameter `alpha'.
6938 (Vframe_alpha_lower_limit): New variable.
6939 (x_set_alpha): New function.
6940
6941 * frame.h (Qalpha, Vframe_parameter_lower_limit): Export them.
6942
6943 * xfns.c (x-create-frame, Qalpha):
6944 Initialize the frame parameter `alpha'.
6945 * xterm.c (OPAQUE, OPACITY): New.
6946 (x_set_frame_alpha): New function.
6947 (frame_highlight, frame_unhighlight): Call x_set_frame_alpha.
6948
6949 * macfns.c (mac_frame_parm_handlers): A null handler for x_set_alpha.
6950 * w32fns.c (w32_frame_parm_handlers): Likewise.
6951
69522008-05-20 Jason Rumney <jasonr@gnu.org>
6953
6954 * w32font.c (add_font_entity_to_list): Don't add non-opentype
6955 truetype fonts to opentype list.
6956
69572008-05-20 Juanma Barranquero <lekktu@gmail.com>
6958
6959 * fontset.c (Ffontset_info): Doc fix.
6960 (syms_of_fontset) <font-encoding-charset-alist, use-default-ascent>:
6961 <ignore-relative-composition>: Fix typos in docstrings.
6962
6963 * font.c (syms-of-font) <font-encoding-alist>:
6964 (Ffontp, Ffont_make_gstring): Fix typos in docstrings.
6965 (Flist_fonts, Ffont_family_list, Ffont_fill_gstring, Fquery_font)
6966 (Ffont_otf_alternates): Doc fixes.
6967
69682008-05-20 Kenichi Handa <handa@m17n.org>
6969
6970 * Makefile.in (FONTSRC): Delete it. Change all $(FONTSRC) to
6971 font.h through out the file.
6972 (FONT_DRIVERS): Rename from FONTOBJ.
6973 (obj): Change $(FONTOBJ) to $(FONT_DRIVERS). Add font.o.
6974 (SOME_MACHINE_OBJECTS): Change $(FONTOBJ) to $(FONT_DRIVERS).
6975
6976 * emacs.c (main): Call syms_of_font unconditionally.
6977
6978 * font.h (find_font_encoding): Extern it.
6979
6980 * font.c (Vfont_encoding_alist, find_font_encoding): Move from
6981 fontset.c.
6982 (font_pixel_size)[! HAVE_WINDOW_SYSTEM]: Return 1.
6983 (font_open_entity): Update FRAME_X_DISPLAY_INFO (f)->n_fonts,
6984 FRAME_SMALLEST_CHAR_WIDTH (f), and FRAME_SMALLEST_FONT_HEIGHT (f)
6985 only when HAVE_WINDOW_SYSTEM is defined.
6986 (font_close_object): Update FRAME_X_DISPLAY_INFO (f)->n_fonts only
6987 when HAVE_WINDOW_SYSTEM is defined.
6988
6989 * fontset.c (Vfont_encoding_alist, find_font_encoding): Move to font.c.
6990 (syms_of_fontset): Move declaration of font-encoding-alist to font.c.
6991
6992 * xfaces.c: Include font.h unconditionally.
6993 (merge_face_ref, merge_face_vectors)
6994 (Finternal_set_lisp_face_attribute): Cancel the previous change.
6995
69962008-05-20 Stefan Monnier <monnier@iro.umontreal.ca>
6997
6998 * xdisp.c (select_frame_for_redisplay): Adjust for last change to
6999 indirect_variable.
7000 * eval.c (lisp_indirect_variable): New fun.
7001 (Fuser_variable_p): Use it.
7002
70032008-05-19 Stefan Monnier <monnier@iro.umontreal.ca>
7004
7005 * lisp.h (indirect_variable):
7006 * data.c (indirect_variable, let_shadows_buffer_binding_p):
7007 Use Lisp_Symbol pointers rather than Lisp_Object.
7008 Adjust callers.
7009 * buffer.c (buffer_slot_type_mismatch): Use wrong-type-argument.
7010 To this end, change calling-convention.
7011
7012 * minibuf.c (Finternal_complete_buffer): Only strip out hidden buffers
7013 if some non-hidden buffers are selected by string&pred.
7014
70152008-05-19 Chong Yidong <cyd@stupidchicken.com>
7016
7017 * process.c (wait_reading_process_output): Always check status
7018 when in batch mode.
7019
70202008-05-19 Kenichi Handa <handa@m17n.org>
7021
7022 * font.c (font_list_entities): Fix handling of cache.
7023 (font_matching_entity): Likewise.
7024
7025 * ftfont.c (cs_iso8859_1): Delete.
7026 (ft_face_cache): New variable.
7027 (struct ftfont_info): New member fc_charset_idx.
7028 (ftfont_build_basic_charsets): Delete.
7029 (fc_charset_table): New variable.
7030 (ftfont_pattern_entity): New arg fc_charset_idx. Store (FILENAME
7031 . FC_CHARSET_IDX) as :font-entity property in the font entity.
7032 Callers changed.
7033 (ftfont_lookup_cache, ftfont_get_charset): New functions.
7034 (ftfont_spec_pattern): New argument fc_charset_idx.
7035 Check registry more rigidly. Change callers.
7036 (ftfont_open, ftfont_close, ftfont_has_char): Adjust for the
7037 change of :font-entity property of the font.
7038
7039 * xftfont.c (xftfont_open): Adjust for the change of :font-entity
7040 property of the font.
7041
70422008-05-18 Juanma Barranquero <lekktu@gmail.com>
7043
7044 * coding.c (Fcoding_system_p): Rename argument to match docstring.
7045 (Funencodable_char_position, Fcheck_coding_systems_region)
7046 (Fdecode_coding_string, Fencode_coding_string): Fix typos in docstrings.
7047 (Fdetect_coding_region, Fdetect_coding_string, Fencode_coding_region)
7048 (Ffind_operation_coding_system, Fset_coding_system_priority)
7049 (Fcoding_system_eol_type): Doc fixes.
7050
70512008-05-17 Glenn Morris <rgm@gnu.org>
7052
7053 * sysdep.c (child_setup_tty): Handle systems with NLDLY, without FFDLY.
7054
70552008-05-16 Eli Zaretskii <eliz@gnu.org>
7056
7057 * dired.c (Ffile_attributes): Shut up GCC warnings about st_uid
7058 and st_gid.
7059
7060 * frame.c (Fdelete_frame): Don't call font_update_drivers if
7061 HAVE_WINDOW_SYSTEM is not defined.
7062
7063 * xfaces.c (merge_face_ref, merge_face_vectors)
7064 (Finternal_set_lisp_face_attribute): Use FONT_*_INDEX only when
7065 HAVE_WINDOW_SYSTEM is defined.
7066 (Fface_font): Fix non-HAVE_WINDOW_SYSTEM case.
7067
70682008-05-16 Stefan Monnier <monnier@iro.umontreal.ca>
7069
7070 * keyboard.c (parse_menu_item): Do not cache key shortcut any more.
7071
70722008-05-15 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
7073
7074 * macterm.c (x_draw_relief_rect): Remove unused variable `dpy'.
7075
70762008-05-15 Kenichi Handa <handa@m17n.org>
7077
7078 * font.c (font_find_for_lface): Reflect LFACE_FONT in the font
7079 preference.
7080
70812008-05-15 Glenn Morris <rgm@gnu.org>
7082
7083 * emacs.c (USAGE1, standard_args): Remove -disable-font-backend.
7084
70852008-05-15 Chong Yidong <cyd@stupidchicken.com>
7086
7087 * fns.c (init_fns): Don't initialize weak_hash_tables here.
7088 (init_weak_hash_tables): New fun. Initialize weak_hash_tables.
7089
7090 * alloc.c (init_alloc_once): Call init_weak_hash_tables.
7091
70922008-05-15 Kenichi Handa <handa@m17n.org>
7093
7094 * ftfont.c (ftfont_list): Downcase family name to check generic
7095 families.
7096
7097 * xfaces.c (Finternal_set_lisp_face_attribute): Be sure to make a
7098 font-spec for QCfont value.
7099
7100 * fontset.c (Fnew_fontset): Call font_unparse_xlfd with 256-byte
7101 buffer. Check the return value of it.
7102
71032008-05-14 Jason Rumney <jasonr@gnu.org>
7104
7105 * w32term.c (w32_get_glyph_overhangs): Remove.
7106 (w32_redisplay_interface): Use x_get_glyph_overhangs instead.
7107
71082008-05-14 Kenichi Handa <handa@m17n.org>
7109
7110 * font.c (font_prop_validate): Make nil a valid value.
7111 (font_clear_cache): Check if the cached vector of entities is nil
7112 or not.
7113
71142008-05-14 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
7115
7116 * emacs.c (main_thread): Conditionalize on
7117 FORWARD_SIGNAL_TO_MAIN_THREAD instead of HAVE_GTK_AND_PTHREAD.
7118 (main) [FORWARD_SIGNAL_TO_MAIN_THREAD]: Initialize it.
7119
7120 * syssignal.h (FORWARD_SIGNAL_TO_MAIN_THREAD): New define.
7121 (main_thread, SIGNAL_THREAD_CHECK): Conditionalize on
7122 FORWARD_SIGNAL_TO_MAIN_THREAD instead of HAVE_GTK_AND_PTHREAD.
7123
71242008-05-14 Kenichi Handa <handa@m17n.org>
7125
7126 * coding.c (detect_coding_iso_2022): Ignore a coding category that
7127 has no corresponding coding system.
7128
71292008-05-14 Jason Rumney <jasonr@gnu.org>
7130
7131 * font.h (struct font) [WINDOWSNT]: Remove codepage member.
7132
7133 * w32font.h (w32font_open_internal): Update declaration.
7134
7135 * w32font.c (w32font_open_internal): Change last argument from
7136 w32font_info struct to font object. Fill in font object from
7137 font_entity. Get Outline metrics if possible. Use them to
7138 calculate underline position and thickness. Use xlfd name as name
7139 property. Don't set codepage.
7140 (w32font_open): Pass font_object to w32font_open_internal. Don't
7141 update dpyinfo->smallest_font_height and dpyinfo->smallest_char_width.
7142 (w32font_draw): Use s->font.
7143 (clear_cached_metrics): Don't clear non-existent blocks.
7144
7145 * w32term.c (w32_compute_glyph_string_overhangs): Don't compute if
7146 font was not found.
7147 (x_draw_glyph_string): Use underline position and thickness from font.
7148
7149 * w32uniscribe.c (uniscribe_open): Pass font_object to
7150 w32font_open_internal.
7151
71522008-05-14 Kenichi Handa <handa@m17n.org>
7153
7154 These changes are to delete all legacy font-handling codes, and
7155 make Emacs use only font-backends.
7156
7157 * Makefile.in: Delete USE_FONT_BACKEND conditionals.
7158 (frame.o, image.o, print.o): Depend on $(FONTSRC).
7159
7160 * makefile.w32-in (WIN32OBJ): Add w32reg.$(O), remove w32bdf.$(O).
7161
7162 * charset.h (Vcharset_non_preferred_head)
7163 (Vcurrent_iso639_language): Extern them.
7164
7165 * charset.c (Vcharset_non_preferred_head): New variable.
7166 (Vcurrent_iso639_language): New variable.
7167 (syms_of_charset): Declare it as a Lisp variable.
7168 (char_charset): Don't check non preferred charsets. As a last
7169 resort, return charset_unicode.
7170 (Fset_charset_priority): Update Vcharset_non_preferred_head.
7171
7172 * composite.c: Throughout the file, delete all USE_FONT_BACKEND
7173 conditionals. Don't check enable_font_backend. Delete all codes
7174 used only when USE_FONT_BACKEND is not defined.
7175
7176 * dispextern.h (struct glyph_string): Change type of `font' to
7177 `struct font *'.
7178 (struct glyph_string): New member underline_position and
7179 underline_thickness.
7180 (enum lface_attribute_index): Remove LFACE_AVGWIDTH_INDEX.
7181 (struct face): Change type of `font' to `struct font *'. Remove
7182 members `font_name', `font_info_id'.
7183 (per_char_metric, encode_char): Delete externs.
7184 (calc_pixel_width_or_height): Adjust the prototype.
7185
7186 * emacs.c (enable_font_backend): Delete extern.
7187 (main): Don't set enable_font_backend. Don't check the command
7188 line argument "-disable-font-backend".
7189
7190 * font.h (Qfont_spec, Qfont_entity, Qfont_object): Extern them.
7191 (enum font_property_index): New members FONT_DPI_INDEX,
7192 FONT_SPACING_INDEX, FONT_AVGWIDTH_INDEX, FONT_NAME_INDEX,
7193 FONT_FULLNAME_INDEX, FONT_FILE_INDEX, FONT_FORMAT_INDEX,
7194 FONT_OBJECT_MAX. Delete FONT_FRAME_INDEX.
7195 (FONT_WEIGHT_NUMERIC, FONT_SLANT_NUMERIC, FONT_WIDTH_NUMERIC)
7196 (FONT_WEIGHT_SYMBOLIC, FONT_SLANT_SYMBOLIC, FONT_WIDTH_SYMBOLIC)
7197 (FONT_WEIGHT_FOR_FACE, FONT_SLANT_FOR_FACE, FONT_WIDTH_FOR_FACE)
7198 (FONT_WEIGHT_NAME_NUMERIC, FONT_SLANT_NAME_NUMERIC)
7199 (FONT_WIDTH_NAME_NUMERIC, FONT_SET_STYLE): New macros.
7200 (struct font_spec, struct font_entity): New structs.
7201 (FONT_ENCODING_NOT_DECIDED): Moved from fontset.h.
7202 (struct font): Many members from old "struct font_info" moved to
7203 here. Members font and entity deleted.
7204 (FONT_SPEC_P, FONT_ENTITY_P, FONT_OBJECT_P, FONTP): Modified for
7205 the new font-related objects.
7206 (CHECK_FONT_SPEC, CHECK_FONT_ENTITY, CHECK_FONT_OBJECT)
7207 (CHECK_FONT_GET_OBJECT): Likewise.
7208 (XFONT_SPEC, XFONT_ENTITY, XFONT_OBJECT, XSETFONT): New macros.
7209 (PT_PER_INCH, POINT_TO_PIXEL, PIXEL_TO_POINT): Moved from font.h.
7210 (struct font_driver): New members case_sensitive anc check. Type
7211 of the member list and open changed.
7212 (enable_font_backend, font_symbolic_weight, font_symbolic_slant)
7213 (font_symbolic_width, font_find_object, font_get_spec)
7214 (font_set_lface_from_name): Delete extern.
7215 (Fcopy_font_spec, Fmerge_font_spec, Ffont_family_list): New EXFUNs.
7216
7217 * font.c: Include <strings.h>.
7218 (enable_font_backend): Delete it.
7219 (Qfont_spec, Qfont_entity, Qfont_object): New variables.
7220 (CHECK_VALIDATE_FONT_SPEC): Delete it.
7221 (PT_PER_INCH, POINT_TO_PIXEL, PIXEL_TO_POINT): Moved to font.h.
7222 (null_string): Delete it.
7223 (null_vector): Make it static.
7224 (font_family_alist): Delete it.
7225 (Qnormal): Extern it.
7226 (QCextra, QClanguage): Delete it.
7227 (QClang, QCavgwidth, QCfont_entity, QCfc_unknown_spec): New variables.
7228 (font_make_spec, font_make_entity, font_make_object)
7229 (font_intern_prop): Renamed from intern_downcase. Don't downcase
7230 the string. Callers changed.
7231 (font_pixel_size): Adjusted for the format change of font-related
7232 objects.
7233 (prop_name_to_numeric, prop_numeric_to_name): Delete them.
7234 (font_style_to_value, font_style_symbolic): New function.
7235 (build_font_family_alist): Delete it.
7236 (font_registry_charsets): Use Fassoc_string instead of
7237 assq_no_quit.
7238 (font_prop_validate_symbol): Don't return null_string.
7239 (font_prop_validate_style): Adjusted for the change of
7240 style-related values in a font vector.
7241 (font_property_table): Delete entries for QClanguage and
7242 QCantialias, add entries for QCavgwidth.
7243 (get_font_prop_index): Delete the 2nd argument FROM.
7244 (font_prop_validate): Arguments changed.
7245 (font_put_extra): Adjusted for the change of font-related objects.
7246 (font_expand_wildcards, font_parse_xlfd, font_unparse_xlfd)
7247 (font_parse_fcname, font_unparse_fcname)
7248 (font_prepare_composition): Likewise.
7249 (font_parse_family_registry): Renamed from font_merge_old_spec.
7250 (otf_open): Delete the 1st arg entity.
7251 (font_otf_capability): Adjusted for the above change.
7252 (font_score): New arg alternate_families. Adjusted for the change
7253 of font-related objects.
7254 (font_sort_entites): New arg best_only.
7255 (font_symbolic_weight, font_symbolic_slant, font_symbolic_width):
7256 Delete them.
7257 (font_match_p): Check alternate families.
7258 (font_find_object): Delete it.
7259 (font_check_object): New function.
7260 (font_clear_cache): Adjusted for the change of font-related objects.
7261 (font_delete_unmatched): New arg.
7262 (font_list_entities): Call font_driver->list with a spec that
7263 doesn't specify style-related properties.
7264 (font_matching_entity): Arguments changed. Caller changed.
7265 (font_open_entity): Adjusted for the change of font-related objects.
7266 (font_close_object, font_has_char, font_encode_char)
7267 (font_get_name, font_get_spec): Likewise.
7268 (font_spec_from_name, font_clear_prop, font_update_lface):
7269 New functions.
7270 (font_find_for_lface, font_open_for_lface, font_load_for_lface)
7271 (font_prepare_for_face, font_done_for_face, font_open_by_name)
7272 (font_at): Adjusted for the change of font-related objects.
7273 (font_range): New function.
7274 (Ffontp, Ffont_spec, Ffont_get, Ffont_put, Flist_fonts)
7275 (Ffont_xlfd_name): Adjusted for the change of font-related objects.
7276 (Fcopy_font_spec, Fmerge_font_spec): New function.
7277 (Ffont_family_list): Renamed from list-families.
7278 (Finternal_set_font_style_table): Arguments changed.
7279 (Ffont_fill_gstring, Ffont_shape_text, Fopen_font)
7280 (Ffont_drive_otf, Fquery_font, Ffont_match_p): Adjusted for the
7281 change of font-related objects.
7282 (syms_of_font): Delete "ifdef USE_FONT_BACKEND". DEFSYM new symbols.
7283
7284 * fontset.h (struct font_info): Delete it. Most members go to
7285 struct font.
7286 (FONT_ENCODING_NOT_DECIDED): Moved to font.h.
7287 (enum FONT_SPEC_INDEX): Delete it.
7288 (font_info, list_fonts_func, load_font_func, query_font_func)
7289 (set_frame_fontset_func, find_ccl_program_func)
7290 (get_font_repertory_func, new_fontset_from_font_name): Delete
7291 externs.
7292 (fontset_from_font_name): Extern it.
7293 (FS_LOAD_FONT, FONT_INFO_ID, FONT_INFO_FROM_ID)
7294 (FONT_INFO_FROM_FACE): Deleted.
7295 (face_for_font): Adjust prototype.
7296
7297 * fontset.c: Throughout the file, delete all USE_FONT_BACKEND
7298 conditionals. Don't check enable_font_backend. Delete all codes
7299 used only when USE_FONT_BACKEND is not defined.
7300 (get_font_info_func, list_font_func, load_font_func)
7301 (query_font_func, set_frame_fontset_func, find_ccl_program_func)
7302 (get_font_repertory_func): Delete them.
7303 (FONTSET_SPEC, FONT_DEF_NEW, FONT_DEF_SPEC, FONT_DEF_ENCODING)
7304 (FONT_DEF_REPERTORY, RFONT_DEF_FACE, RFONT_DEF_SET_FACE)
7305 (RFONT_DEF_FONT_DEF, RFONT_DEF_SPEC, RFONT_DEF_REPERTORY)
7306 (RFONT_DEF_OBJECT, RFONT_DEF_SET_OBJECT, RFONT_DEF_SCORE)
7307 (RFONT_DEF_SET_SCORE, RFONT_DEF_NEW): New macros.
7308 (fontset_compare_rfontdef): New function.
7309 (reorder_font_vector): Remove the argument CHARSET-ID. Sort
7310 rfont-defs by qsort. Adjusted for the change of font-group vector.
7311 (load_font_get_repertory): Deleted.
7312 (fontset_find_font): Use new macros to ref/set elements of
7313 font-def and rfont-def.
7314 (fontset_font): Fix the timing of remembering that no font for C.
7315 (free_face_fontset): Do nothing if the face has no fontset.
7316 (face_suitable_for_char_p): Use new macros to ref/set elements of
7317 rfont-def.
7318 (face_for_char): Likewise. Call face_for_char with font_object.
7319 (fs_load_font): Delete. Delete #pragma surrounding it.
7320 (fs_query_fontset): Use strcasecmp instead of strcmp.
7321 (generate_ascii_font_name): Adjusted for the format change of
7322 font-spec.
7323 (Fset_fontset_font): Likewise. Use new macros to set elements of
7324 font-def.
7325 (Fnew_fontset): Use font_unparse_xlfd to generate
7326 FONTSET_ASCII (fontset).
7327 (new_fontset_from_font_name): Deleted.
7328 (fontset_from_font): Renamed from new_fontset_from_font. Check if
7329 a fontset is already created for the font. FIx updating of
7330 Vfontset_alias_alist.
7331 (fontset_ascii_font): Deleted.
7332 (Ffont_info): Adjusted for the format change of font-spec.
7333 (Finternal_char_font): Likewise.
7334 (Ffontset_info): Likewise.
7335 (syms_of_fontset): Don't check load_font_func.
7336
7337 * fns.c (internal_equal): Handle PREV_FONT.
7338
7339 * frame.h: Delete USE_FONT_BACKEND conditional.
7340
7341 * frame.c: Throughout the file, delete all USE_FONT_BACKEND
7342 conditionals. Don't check enable_font_backend. Delete all codes
7343 used only when USE_FONT_BACKEND is not defined.
7344 (x_set_font): Call x_new_font, not x_new_fontset2.
7345 (x_set_font_backend): Use FRAME_FONT macro to check if a font is
7346 already set for the frame.
7347
7348 * ftfont.c (ftfont_pattern_entity): Argument FRAME removed. Make
7349 a font-entity by font_make_entity. Use font_intern_prop instead
7350 of intern_downcase. Use FONT_SET_STYLE to set a style-related
7351 font property. If a font is scalable, set avgwidth property to 0.
7352 Set font-entity property by font_put_extra.
7353 (ftfont_list_generic_family): Argument SPEC and REGISTRY removed.
7354 (ffont_driver): Adjusted for the change of struct font_driver.
7355 (ftfont_spec_pattern): New function.
7356 (ftfont_list): Return a list, not vector.
7357 (ftfont_match): Use ftfont_spec_pattern to get a pattern.
7358 (ftfont_list_family): Don't downcase names.
7359 (ftfont_free_entity): Deleted.
7360 (ftfont_open): Return a font-object. Adjusted for the change of
7361 struct font. Get underline_thickness and underline_position from
7362 font property. Don't update dpyinfo->smallest_font_height and
7363 dpyinfo->smallest_char_width.
7364 (ftfont_close): Don't free `struct font'.
7365 (ftfont_has_char): Adjusted for the format change of font-entity.
7366 (ftfont_encode_char, ftfont_text_extents): Likewise.
7367
7368 * ftxfont.c (ftxfont_list): Return a list, not vector.
7369 (ftxfont_open): Return a font-object. Adjusted for the change of
7370 struct font. Get underline_thickness and underline_position from
7371 font property. Don't update dpyinfo->smallest_font_height and
7372 dpyinfo->smallest_char_width.
7373 (ftxfont_close): Don't decrease FRAME_X_DISPLAY_INFO (f)->n_fonts.
7374 (ftxfont_draw): Adjusted for the change of struct font.
7375
7376 * image.c (image_ascent): Don't include "charset.h". Include
7377 "character.h" and "font.h".
7378
7379 * lisp.h (enum pvec_type): New member PREV_FONT.
7380 (Fassoc_string): EXFUN it.
7381
7382 * print.c: Include font.h.
7383 (print_object): Handle font-related objects.
7384
7385 * xdisp.c: Throughout the file, delete all USE_FONT_BACKEND
7386 conditionals. Don't check enable_font_backend. Delete all codes
7387 used only when USE_FONT_BACKEND is not defined.
7388 (handle_auto_composed_prop): Do nothing if it->f is not on a
7389 window system. Check how many following characters can be
7390 displayed by the same font.
7391 (calc_pixel_width_or_height): Type of the 4th arg is changed to
7392 'struct font *'.
7393 (get_char_face_and_encoding): Assign the whole encoding task to
7394 the `encode-char' method of a font driver.
7395 (fill_composite_glyph_string): Adjusted for the change of `struct
7396 face' and `struct glyph_string'.
7397 (fill_glyph_string): Likewise.
7398 (get_per_char_metric): Arguments changed.
7399 (x_get_glyph_overhangs): Adjusted for the change of `struct face'
7400 and `struct glyph_string'.
7401 (produce_stretch_glyph, calc_line_height_property)
7402 (x_produce_glyphs): Likewise.
7403
7404 * xfaces.c: Throughout the file, delete all USE_FONT_BACKEND
7405 conditionals. Don't check enable_font_backend. Delete all codes
7406 used only when USE_FONT_BACKEND is not defined. Use
7407 FONT_XXX_NAME_NUMERIC instead of face_numeric_xxx.
7408 (QCfoundry, QCadstyle, QCregistry, QCspacing, QCsize, QCavgwidth)
7409 (Qp): Extern them.
7410 (clear_font_table, load_face_font, xlfd_lookup_field_contents):
7411 Deleted.
7412 (struct font_name): Deleted.
7413 (xlfd_numeric_value, xlfd_symbolic_value): Deleted.
7414 (compare_fonts_by_sort_order): New function.
7415 (xlfd_numeric_slant, xlfd_symbolic_slant, xlfd_numeric_weight)
7416 (xlfd_symbolic_weight, xlfd_numeric_swidth, xlfd_symbolic_swidth):
7417 Deleted.
7418 (Fx_family_fonts): Use font_list_entities, and sort fonts by
7419 compare_fonts_by_sort_order.
7420 (Fx_font_family_list): Call Ffont_family_list.
7421 (face_numeric_value, face_numeric_weight, face_numeric_slant)
7422 (face_numeric_swidth, face_symbolic_value, face_symbolic_weight)
7423 (face_symbolic_slant, face_symbolic_swidth)
7424 (split_font_name_into_vector, build_font_name_from_vector)
7425 (xlfd_fixed_p, xlfd_point_size, pixel_point_size)
7426 (font_rescale_ratio, split_font_name, build_font_name)
7427 (free_font_names, sort_fonts, x_face_list_fonts)
7428 (face_font_available_p, sorted_font_list, cmp_font_names)
7429 (font_list_1, concat_font_list, font_list, remove_duplicates):
7430 Deleted.
7431 (Fx_list_fonts): Use Ffont_list.
7432 (LFACE_AVGWIDTH): Deleted.
7433 (check_lface_attrs): Don't check LFACE_AVGWIDTH. Check LFACE_FONT
7434 by FONTP.
7435 (lface_fully_specified_p): Don't check LFACE_AVGWIDTH.
7436 (set_lface_from_font_name): Delete it.
7437 (set_lface_from_font): Renamed from
7438 set_lface_from_font_and_fontset. Caller changed. Don't set
7439 LFACE_AVGWIDTH. Use FONT_XXX_FOR_FACE to get a symbol suitable
7440 for face.
7441 (merge_face_vectors): Copy font-spec if necessary.
7442 Clear properties of the font-spec if necessary.
7443 (merge_face_ref): Clear properties of the font-spec if necessary.
7444 (Finternal_set_lisp_face_attribute): Likewise.
7445 (set_font_frame_param): Use font_load_for_lface to load a
7446 font-object, and call Fmodify_frame_parameters with it.
7447 (x_update_menu_appearance): Don't check LFACE_AVGWIDTH. Get XLFD
7448 font name by Ffont_xlfd_name.
7449 (Finternal_lisp_face_attribute_values): Don't check QCweight,
7450 QCslant, and QCwidth.
7451 (Fface_font): Get a font name from font->props[FONT_NAME_INDEX].
7452 (lface_same_font_attributes_p): Don't check LFACE_AVGWIDTH.
7453 Compare fonts by EQ.
7454 (lookup_non_ascii_face): Deleted.
7455 (face_for_font): The 2nd argument changed.
7456 (x_supports_face_attributes_p): Don't check LFACE_AVGWIDTH.
7457 Check atomic font properties by case insensitive.
7458 (realize_non_ascii_face): Set face->overstrike correctly.
7459 (realize_x_face): Likewise. Check if LFACE_FONT is a font_object.
7460 (dump_realized_face): Get font name from
7461 font->props[FONT_NAME_INDEX]. Don't print font_info_id.
7462
7463 * xfns.c: Throughout the file, delete all USE_FONT_BACKEND
7464 conditionals. Don't check enable_font_backend. Delete all codes
7465 used only when USE_FONT_BACKEND is not defined.
7466 (xic_create_xfontset): Original code deleted and renamed from
7467 xic_create_xfontset2. Use FRAME_FONT, not FRAME_FONT_OBJECT.
7468 (x_make_gc): Don't set GCFont in GCs.
7469 (Fx_create_frame) [USE_LUCID]: Set xlwmenu_default_font to a font
7470 opened by "fixed".
7471 (syms_of_xfns): Don't set get_font_info_func, load_font_func,
7472 find_ccl_program_func, query_font_func, set_frame_fontset_func,
7473 get_font_repertory_func.
7474
7475 * xfont.c: Include <stdlib.h> and "ccl.h".
7476 (struct xfont_info): New structure.
7477 (xfont_query_font): Deleted.
7478 (xfont_find_ccl_program): Renamed from x_find_ccl_program and
7479 moved from xterm.c.
7480 (xfont_driver): Adjusted for the change of struct font_driver.
7481 (compare_font_names): New function.
7482 (xfont_list_pattern): Sort font names case insensitively. Make
7483 font_entity by calling font_make_entity. Avoid auto-scaled fonts.
7484 (xfont_list): Return a list, not vector.
7485 (xfont_match): If the font doesn't have QCname property, generate
7486 a name from the other font properties.
7487 (xfont_open): Return a font-object. Adjusted for the change of
7488 struct font. Get underline_thickness and underline_position from
7489 font property. Don't update dpyinfo->smallest_font_height and
7490 dpyinfo->smallest_char_width.
7491 (xfont_close): Don't free struct font.
7492 (xfont_prepare_face): Adjusted for the change of struct font.
7493 (xfont_done_face): Deleted.
7494 (xfont_has_char): Adjusted for the change of struct font.
7495 (xfont_encode_char, xfont_draw): Likewise.
7496 (xfont_check): New function.
7497
7498 * xftfont.c (xftfont_list): Adjusted for the change of `list'
7499 callback function.
7500 (xftfont_match): Adjusted for the format change of font-entity.
7501 (xftfont_open): Adjusted for the format change of font-entity and
7502 font-object. Adjusted for the change of struct font. Return a
7503 font-object. Don't update dpyinfo->smallest_font_height and
7504 dpyinfo->smallest_char_width.
7505 (xftfont_close): Block input while calling XftFontClose.
7506 (xftfont_prepare_face): Don't block input while calling
7507 xftfont_get_colors. Adjusted for the change of struct font.
7508 (xftfont_shape): Return value of error case fixed.
7509
7510 * xrdb.c (x_load_resources): Don't setup a fontset resource.
7511
7512 * xterm.h: Throughout the file, delete all USE_FONT_BACKEND
7513 conditionals.
7514 (FONT_WIDTH): Return (f)->max_width.
7515 (struct x_display_info): Delete member `font'.
7516 (x_list_fonts, x_get_font_info, x_load_font, x_query_font)
7517 (x_find_ccl_program, x_get_font_repertory): Delete externs.
7518 (struct x_output): Change type of `font' to `struct font *'.
7519
7520 * xterm.c: Throughout the file, delete all USE_FONT_BACKEND
7521 conditionals. Don't check enable_font_backend. Delete all codes
7522 used only when USE_FONT_BACKEND is not defined. Don't include ccl.h.
7523 (x_per_char_metric, x_encode_char): Deleted.
7524 (x_set_cursor_gc, x_set_mouse_face_gc): Don't set GCFont.
7525 (x_compute_glyph_string_overhangs): Adjusted for the change of
7526 `struct face'.
7527 (x_draw_glyph_string_foreground)
7528 (x_draw_composite_glyph_string_foreground): Likewise.
7529 (x_draw_glyph_string): Likewise. Use font->underline_position and
7530 font->underline_thickness.
7531 (x_new_font): Renamed from x_new_fontset2.
7532 (x_new_fontset, x_get_font_info, x_list_fonts): Deleted.
7533 (x_check_font): Call `check' method of a font driver.
7534 (x_font_min_bounds, x_compute_min_glyph_bounds, x_load_font)
7535 (x_query_font, x_get_font_repertory): Deleted.
7536 (x_find_ccl_program): Renamed and moved to xfont.c.
7537 (x_redisplay_interface): Adjusted for the change of `struct
7538 redisplay_interface'.
7539
7540 * w32fns.c: Throughout the file, delete all USE_FONT_BACKEND
7541 conditionals. Don't check enable_font_backend. Delete all codes
7542 used only when USE_FONT_BACKEND is not defined. Surround non-used
7543 code by "#ifdef OLD_FONT" and "endif".
7544 (Fw32_select_font): Use FONT_COMPAT to get old font structure.
7545
7546 * w32font.h (struct w32font_info): New member.
7547 (FONT_COMPAT): New macro.
7548 (w32font_open_internal): Prototype adjusted.
7549
7550 * w32gui.h (XGCValues): Surround `XFontStruct *font' by "if
7551 OLD_FONT" and "endif".
7552
7553 * w32font.c: Throughout the file, delete all USE_FONT_BACKEND
7554 conditionals. Don't check enable_font_backend. Delete all codes
7555 used only when USE_FONT_BACKEND is not defined.
7556 (w32font_open): Return a font-object. Make a font-object by
7557 font_make_object. Adjusted for the change of struct w32font_info.
7558 (w32font_close): Don't free struct font. Adjusted for the change
7559 of struct w32font_info.
7560 (w32font_encode_char, w32font_text_extents, w32font_draw):
7561 Adjusted for the change of struct w32font_info.
7562 (w32font_draw): Likewise.
7563 (w32font_list_internal): Return a list, not vector.
7564 (w32font_open_internal): Change the 4th arg to font-object.
7565 Adjusted for the change of struct w32font_info and font-object format.
7566 (add_font_name_to_list): Don't downcase names.
7567 (w32_enumfont_pattern_entity): Make a font-entity by
7568 font_make_entity. Adjusted for the format change of font-entity.
7569 Use FONT_SET_STYLE to set a style-related font property. If a
7570 font is scalable, set avgwidth property to 0. Set font-entity
7571 property by font_put_extra.
7572 (font_matches_spec): Adjusted for the format change of font-entity.
7573 (w32_weight_table, w32_decode_weight): New variables.
7574 (w32_encode_weight): New function.
7575 (fill_in_logfont): Adjusted for the format change of font-spec.
7576 (w32font_full_name): Use FONT_WEIGHT_SYMBOLIC to get a symbol
7577 weight value.
7578 (w32font_driver): Adjusted for the change of struct font_driver.
7579
7580 * w32term.h: Throughout the file, delete all USE_FONT_BACKEND
7581 conditionals. Don't check enable_font_backend. Surround non-used
7582 code by "#ifdef OLD_FONT" and "endif".
7583 (FONT_WIDTH, FONT_HEIGHT, FONT_BASE, FONT_DESCENT)
7584 (FONT_AVG_WIDTH): Adjusted for the change of struct font.
7585
7586 * w32term.c: Throughout the file, delete all USE_FONT_BACKEND
7587 conditionals. Don't check enable_font_backend. Delete all codes
7588 used only when USE_FONT_BACKEND is not defined. Surround non-used
7589 code by "#ifdef OLD_FONT" and "endif".
7590
7591 * w32uniscribe.c: Delete USE_FONT_BACKEND conditional.
7592 (uniscribe_open): Return value changed to font-object.
7593 Adjusted for the format change of font-object.
7594 (uniscribe_otf_capability): Adjusted for the change of struct font.
7595 (add_opentype_font_name_to_list): Don't downcase names.
7596 (uniscribe_font_driver): Adjusted for the change of struct
7597 font_driver.
7598
75992008-05-13 Chong Yidong <cyd@stupidchicken.com>
7600
7601 * dispnew.c (update_frame_1): Check if tty output is still valid
7602 before flushing it.
7603
76042008-05-13 Jan Djärv <jan.h.d@swipnet.se>
7605
7606 * xterm.c (handle_one_xevent): Don't pass buttons higher than 3
7607 to Gtk+ menus.
7608
76092008-05-13 Stefan Monnier <monnier@iro.umontreal.ca>
7610
7611 * dired.c (file_name_completion): Tweak the code so as to always do it
7612 in a single pass. Tighten the scope of some variables.
7613
7614 * dired.c (Qdefault_directory): New var.
7615 (file_name_completion): Use it instead of Fexpand_file_name.
7616 (syms_of_dired): Initialize it.
7617
76182008-05-12 Stefan Monnier <monnier@iro.umontreal.ca>
7619
7620 * fileio.c (double_dollars): Remove dead code.
7621
76222008-05-10 Eli Zaretskii <eliz@gnu.org>
7623
7624 * dired.c (Ffile_attributes, Fdirectory_files_and_attributes):
7625 Mention w32-get-true-file-attributes in doc string.
7626
7627 * w32proc.c (syms_of_ntproc) <w32-get-true-file-attributes>: Doc fix.
7628
76292008-05-09 Glenn Morris <rgm@gnu.org>
7630
7631 * fileio.c (Fread_file_name): Remove reference to insdef, deleted
7632 2008-04-23.
7633
76342008-05-09 Eli Zaretskii <eliz@gnu.org>
7635
7636 Support for reporting owner and group of each file on MS-Windows:
7637 * dired.c (stat_uname, stat_gname): New functions, with special
7638 implementation for w32.
7639 (Ffile_attributes): Use them instead of getpwuid and getgrgid.
7640
7641 * w32.c: Rename the_passwd_* to dflt_passwd_*.
7642 (dflt_group_name): New static variable.
7643 (dflt_group): Rename from the_group.
7644 (init_user_info): Init dflt_group fields. Get user's group name
7645 from LookupAccountSid.
7646 (g_b_init_get_file_security, g_b_init_get_security_descriptor_owner)
7647 (g_b_init_get_security_descriptor_group, g_b_init_is_valid_sid):
7648 New initialization states.
7649 (globals_of_w32): Initialize them to zero. Initialize the default
7650 group name to "None".
7651 (GetFileSecurity_Name): New global var, the name of the function
7652 to call for GetFileSecurity.
7653 (GetFileSecurity_Proc, GetSecurityDescriptorOwner_Proc)
7654 (GetSecurityDescriptorGroup_Proc, IsValidSid_Proc): New typedefs.
7655 (get_file_security, get_security_descriptor_owner)
7656 (get_security_descriptor_group, is_valid_sid)
7657 (get_file_security_desc, get_rid, get_name_and_id)
7658 (get_file_owner_and_group): New functions.
7659 (stat): Use get_file_security_desc and get_file_owner_and_group to
7660 report the owner and primary group of each file. Don't ignore the
7661 high 32 bits of file's size, now that st_size is 64-bit wide.
7662 Fix test when to get true file attributes.
7663 (init_user_info): Use get_rid instead of equivalent inline code.
7664 (fstat): Don't ignore the high 32 bits of file's size.
7665
76662008-05-09 Chong Yidong <cyd@stupidchicken.com>
7667
7668 * image.c (png_load): Use correct bit-depth for setting background
7669 color.
7670
76712008-05-08 Eli Zaretskii <eliz@gnu.org>
7672
7673 * Makefile.in (lisp, shortlisp): Rename epa-file-hook.elc to
7674 epa-hook.elc.
7675
76762008-05-08 Juanma Barranquero <lekktu@gmail.com>
7677
7678 * font.c (Ffont_match_p): Don't use `iff' in docstring.
7679
76802008-05-07 Dan Nicolaescu <dann@ics.uci.edu>
7681
7682 * macfns.c (Fx_create_frame): Make a copy of frame parameters
7683 because the original parameters are in pure storage now.
7684 (mac_window): Remove unused params. Update callers.
7685
76862008-05-06 Stefan Monnier <monnier@iro.umontreal.ca>
7687
7688 * lread.c (substitute_object_recurse): Use lower-level primitives.
7689 Don't signal errors when traversing sub-char-tables.
7690 Don't loop over all the possible characters when traversing char-tables.
7691
7692 * print.c (print_preprocess): Add sub-char-tables to the print-table,
7693 just like we do in print.c.
7694
76952008-05-05 Stefan Monnier <monnier@iro.umontreal.ca>
7696
7697 * minibuf.c (Ftry_completion): Remove code left over from when we used
7698 scmp instead of Fcompare_strings.
7699
77002008-05-04 Juanma Barranquero <lekktu@gmail.com>
7701
7702 * w32fns.c (Fw32_battery_status): Fix computation of %t (h:min) format.
7703
77042008-05-04 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
7705
7706 * image.c [USE_MAC_IMAGE_IO] (image_load_image_io):
7707 Create bitmap context in native byte order.
7708
7709 * macterm.c (XDrawLine)
7710 (XCreatePixmapFromBitmapData) [USE_MAC_IMAGE_IO]: Create bitmap
7711 context in native byte order.
7712
77132008-05-04 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
7714
7715 * config.in: Regenerate.
7716
7717 * image.c (PIX_MASK_DRAW, PIX_MASK_RETAIN) [USE_MAC_IMAGE_IO]:
7718 New definitions for Image I/O support.
7719 (XGetImage, XPutPixel, XGetPixel, XDestroyImage)
7720 (mac_create_cg_image_from_image, x_create_x_image_and_pixmap)
7721 [USE_MAC_IMAGE_IO]: Add implementations for Image I/O support.
7722 (mac_data_provider_release_data, image_load_image_io)
7723 [USE_MAC_IMAGE_IO]: New functions.
7724 (CGImageCreateWithPNGDataProviderProcType) [MAC_OSX]: Remove typedef.
7725 (MyCGImageCreateWithPNGDataProvider) [MAC_OSX]: Remove variable.
7726 (init_image_func_pointer) [MAC_OSX]: Remove function.
7727 (image_load_quartz2d) [MAC_OSX]: Check availability of
7728 CGImageCreateWithPNGDataProvider at compile time.
7729 Use lowercase `false' for boolean constant.
7730 (png_load, jpeg_load, tiff_load, gif_load) [USE_MAC_IMAGE_IO]:
7731 Use image_load_image_io.
7732 (png_load) [!USE_MAC_IMAGE_IO && MAC_OSX]:
7733 Don't check MyCGImageCreateWithPNGDataProvider.
7734 (init_image) [MAC_OSX && TARGET_API_MAC_CARBON]:
7735 Don't call init_image_func_pointer.
7736
7737 * macgui.h (Pixmap) [USE_MAC_IMAGE_IO]: New definition for Image I/O.
7738
7739 * macterm.c (mac_cg_color_space_rgb) [USE_CG_DRAWING]:
7740 Make variable non-static.
7741 (XDrawLine, XCreatePixmap, XCreatePixmapFromBitmapData, XFreePixmap)
7742 [USE_MAC_IMAGE_IO]: Add implementations for Image I/O support.
7743
7744 * macterm.h (ARGB_TO_ULONG, ALPHA_FROM_ULONG): New macros.
7745 (RED_FROM_ULONG): Mask off higher bits.
7746 (mac_cg_color_space_rgb) [USE_MAC_IMAGE_IO]: New extern.
7747
7748 * s/darwin.h [HAVE_CARBON && HAVE_AVAILABILITYMACROS_H]:
7749 Include AvailabilityMacros.h.
7750 (USE_MAC_IMAGE_IO, LIBS_IMAGE) [HAVE_CARBON]: New defines.
7751 (LIBS_CARBON) [HAVE_CARBON]: Use LIBS_IMAGE.
7752
77532008-05-03 Stefan Monnier <monnier@iro.umontreal.ca>
7754
7755 * chartab.c (Fset_char_table_range): If range is t, really set all
7756 chars to that value.
7757
77582008-05-03 Eli Zaretskii <eliz@gnu.org>
7759
7760 * dired.c (Ffile_attributes): Don't allow the device number become
7761 negative.
7762
77632008-05-02 Daiki Ueno <ueno@unixuser.org>
7764
7765 * Makefile.in (lisp, shortlisp): Add epa-file-hook.elc.
7766
77672008-05-02 Juri Linkov <juri@jurta.org>
7768
7769 * minibuf.c (Fread_from_minibuffer, Fread_string, Fread_command)
7770 (Fread_variable, Fread_buffer, Fcompleting_read): Document the
7771 DEFAULT argument as a list of default values in docstrings.
7772
77732008-05-01 Chong Yidong <cyd@stupidchicken.com>
7774
7775 * puresize.h (BASE_PURESIZE): Increase to 1210000.
7776
77772008-05-01 Martin Rudalics <rudalics@gmx.at>
7778
7779 * dispnew.c (change_frame_size_1): Preserve small windows when
7780 shrinking frames by calling set_window_height|width with third
7781 arg 2.
7782
7783 * window.h (struct window): Replace field too_small_ok by field
7784 resize_proportionally.
7785
7786 * window.c (make_window): Initialize resize_proportionally.
7787 (enlarge_window): Temporarily set resize_proportionally to make
7788 sure that shrink_windows does scale the window proportionally.
7789 (shrink_windows): When window has resize_proportionally set try
7790 to shrink it proportionally by stealing from other windows.
7791 (struct saved_window, Fset_window_configuration)
7792 (compare_window_configurations): Handle resize_proportionally.
7793 (WINDOW_TOTAL_SIZE): New macro.
7794 (window_min_size, shrink_windows, size_window): Use it.
7795 (check_min_window_sizes): Remove. Invalid values of
7796 window-min-height|width are handled by window_min_size_2 now.
7797 (size_window, Fsplit_window, enlarge_window)
7798 (adjust_window_trailing_edge, grow_mini_window): Don't call
7799 check_min_window_sizes.
7800 (window_min_size_2, window_min_size_1, window_min_size):
7801 New argument safe_p for retrieving "safe" minimum sizes.
7802 (Fdisplay_buffer, Fsplit_window, enlarge_window)
7803 (adjust_window_trailing_edge, grow_mini_window):
7804 Adjust arguments of window_min_size... functions.
7805 (shrink_windows): Argument min_size removed. New argument
7806 safe_p allows shrinking windows to their safe minimum sizes.
7807 Calculate minimum size and decide whether a window shall be
7808 deleted for each window individually.
7809 (size_window): When nodelete_p equals 2, tell shrink_windows to
7810 delete windows only if their new minimum size is no more safe.
7811 (shrink_window_lowest_first): Call window_min_size_1 to make
7812 sure to preserve modeline of bottom-most window when resizing
7813 the minibuffer.
7814 (Fset_window_configuration, Fcurrent_window_configuration)
7815 (compare_window_configurations): Do not handle
7816 window-min-height|width any more.
7817 (syms_of_window): Clarify window-min-height|width doc-strings.
7818
78192008-04-30 Stefan Monnier <monnier@iro.umontreal.ca>
7820
7821 * dired.c (file_name_completion): Fix up the encoding/decoding issue
7822 some more. Copy some of the code from Ftry_completions.
7823 Remove special case code that dates back to initial revision when the
7824 slash was only added when necessary and that can't trigger nowadays.
7825
78262008-04-27 Kenichi Handa <handa@m17n.org>
7827
7828 * font.c (font_prop_validate): Signal `error' instead of `font'.
7829
78302008-04-29 Jason Rumney <jasonr@gnu.org>
7831
7832 * w32fns.c (Fw32_battery_status): New defun.
7833 (syms_of_w32fns): Defsubr it.
7834
78352008-04-28 Andreas Schwab <schwab@suse.de>
7836
7837 * dired.c (file_name_completion): Fix another mixing of encoded
7838 and decoded names.
7839
78402008-04-28 Juanma Barranquero <lekktu@gmail.com>
7841
7842 * w32fns.c (Fw32_define_rgb_color): Fix typo in docstring.
7843
78442008-04-27 Juanma Barranquero <lekktu@gmail.com>
7845
7846 * fringe.c (Fdefine_fringe_bitmap): Doc fix.
7847
78482008-04-27 Andreas Schwab <schwab@suse.de>
7849
7850 * dired.c (file_name_completion): Fix inappropriate mixing of
7851 encoded and decoded names.
7852
7853 * xterm.c (XTread_socket): Fix use of uninitialized variable.
7854
7855 * puresize.h (BASE_PURESIZE): Increase to 1200000.
7856
78572008-04-26 Eli Zaretskii <eliz@gnu.org>
7858
7859 * dired.c (Ffile_attributes) [WINDOWSNT]: Undo change from
7860 2008-03-31, it's not needed anymore with `struct stat' definition
7861 on nt/inc/sys/stat.h. Undo changes from 2007-01-12 and 2007-01-13
7862 for the same reasons.
7863
78642008-04-25 Dennis Gilmore <ausil@fedoraproject.org> (tiny change)
7865
7866 * m/sparc.h: Additional redefinitions for GNU/Linux.
7867
78682008-04-23 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
7869
7870 * macterm.c (Vmac_ts_active_input_buf) [USE_MAC_TSM]: New variable.
7871 (syms_of_macterm) [USE_MAC_TSM]: Defvar it.
7872 (Qmouse_drag_overlay) [MAC_OSX]: New variable.
7873 (syms_of_macterm) [MAC_OSX]: Intern and staticpro it.
7874 (mac_get_selected_range, mac_store_buffer_text_to_unicode_chars)
7875 (mac_ax_selected_text_range) [MAC_OSX]: New functions.
7876 (mac_ax_number_of_characters) [MAC_OS_X_VERSION_MAX_ALLOWED >= 1030]:
7877 Likewise.
7878
7879 * mactoolbox.c (Vmac_ts_active_input_buf) [USE_MAC_TSM]: Add extern.
7880 (fast_find_position, x_y_to_hpos_vpos, mac_ax_selected_text_range)
7881 (mac_ax_number_of_characters): Add externs.
7882 (mac_get_selected_range, mac_store_buffer_text_to_unicode_chars)
7883 [USE_MAC_TSM]: Likewise.
7884 (mac_handle_text_input_event) [MAC_OSX]:
7885 Handle kEventTextInputOffsetToPos for no active input area case.
7886 Handle kEventTextInputPosToOffset and kEventTextInputGetSelectedText.
7887 (mac_handle_document_access_event)
7888 [MAC_OS_X_VERSION_MAX_ALLOWED >= 1030]: New function.
7889 (install_application_handler) [MAC_OSX]: Register handlers for
7890 kEventTextInputPosToOffset and kEventTextInputGetSelectedText.
7891 (install_application_handler) [MAC_OS_X_VERSION_MAX_ALLOWED >= 1030]:
7892 Register mac_handle_document_access_event.
7893
7894 * xdisp.c (x_y_to_hpos_vpos, fast_find_position) [HAVE_CARBON]:
7895 Make functions non-static.
7896
78972008-04-23 Stefan Monnier <monnier@iro.umontreal.ca>
7898
7899 * fileio.c (Vread_file_name_function, Vread_file_name_predicate)
7900 (read_file_name_completion_ignore_case, insert_default_directory)
7901 (Qdefault_directory): Move to minibuffer.el.
7902 (Fread_file_name): Call the new `read-file-name' instead.
7903
79042008-04-23 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
7905
7906 * mac.c (create_apple_event) [TARGET_API_MAC_CARBON]:
7907 Make function non-static.
7908 (create_apple_event_from_event_ref) [TARGET_API_MAC_CARBON]:
7909 Remove function.
7910 (create_apple_event_from_drag_ref) [TARGET_API_MAC_CARBON]:
7911 Move to mactoolbox.c.
7912 (mac_event_parameters_to_lisp) [TARGET_API_MAC_CARBON]: New function.
7913
7914 * macgui.h (CGFloat) [!CGFLOAT_DEFINED]: New typedef.
7915 (mac_rect_make): New macro.
7916
7917 * macterm.c (mac_draw_image_string_atsui) [MAC_OSX]: Use CGFloat
7918 instead of float.
7919 (mac_draw_image_string_cg) [USE_CG_TEXT_DRAWING]: Likewise.
7920 (init_cg_color, mac_draw_line, mac_draw_cg_image, XSetForeground)
7921 (XSetBackground) [USE_CG_DRAWING]: Likewise.
7922 (mac_draw_image_string_atsui) [MAC_OSX]: Use mac_rect_make instead of
7923 CGRectMake.
7924 (mac_draw_image_string_cg) [USE_CG_TEXT_DRAWING]: Likewise.
7925 (mac_erase_rectangle, mac_draw_cg_image, mac_fill_rectangle)
7926 (mac_set_clip_rectangles) [USE_CG_DRAWING]: Likewise.
7927 (XCreatePixmap, XCreatePixmapFromBitmapData): Use Window
7928 instead of WindowRef in argument type.
7929 (XCreatePixmap) [!MAC_OS8]: Don't call SetPortWindowPort.
7930 (mac_invert_rectangle): Use CGContextSetBlendMode if available.
7931 (mac_set_clip_rectangles, mac_reset_clip_rectangles): Take argument F
7932 instead of DISPLAY. All uses changed.
7933 (mac_handle_size_change): Don't call SET_FRAME_GARBAGED.
7934 (x_calc_absolute_position): Simplify so as not to use
7935 FRAME_PIXEL_WIDTH/FRAME_PIXEL_HEIGHT.
7936
7937 * macterm.h (XCreatePixmap, XCreatePixmapFromBitmapData): Use Window
7938 instead of WindowRef in argument type.
7939 (create_apple_event_from_event_ref, create_apple_event_from_drag_ref)
7940 [TARGET_API_MAC_CARBON]: Remove externs.
7941 (create_apple_event, mac_event_parameters_to_lisp)
7942 [TARGET_API_MAC_CARBON]: Add externs.
7943
7944 * mactoolbox.c (Vmac_ts_script_language_on_focus)
7945 (saved_ts_script_language_on_focus) [USE_MAC_TSM]: Remove externs.
7946 (XTread_socket) [USE_MAC_TOOLBAR]: Select window if its structure part
7947 is clicked.
7948 (x_activate_menubar): Remove extern for saved_menu_event_location.
7949 (create_apple_event_from_drag_ref) [TARGET_API_MAC_CARBON]:
7950 Move from mac.c.
7951
79522008-04-23 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
7953
7954 * alloc.c [!SYSTEM_MALLOC && !SYNC_INPUT] (uninterrupt_malloc)
7955 [HAVE_GTK_AND_PTHREAD && !DOUG_LEA_MALLOC]: Don't use recursive mutex.
7956
79572008-04-23 Jason Rumney <jasonr@gnu.org>
7958
7959 * w32.c (stat): When Vw32_get_true_file_attributes is Qlocal, get
7960 attributes only for local files.
7961
7962 * w32proc.c (syms_of_ntproc): Change Vw32_get_true_file attributes
7963 default to Qlocal.
7964
79652008-04-22 Juri Linkov <juri@jurta.org>
7966
7967 * buffer.c (Fswitch_to_buffer): Change interactive spec to call
7968 read-buffer-to-switch instead of using the letter "B".
7969
79702008-04-21 Stefan Monnier <monnier@iro.umontreal.ca>
7971
7972 * fileio.c (Qdefault_directory): New variable.
7973 (Fread_file_name): Use it to pass `dir' to the completion functions.
7974
79752008-04-20 Chong Yidong <cyd@stupidchicken.com>
7976
7977 * xdisp.c (pos_visible_p): Check if iterator stops on a display string.
7978
79792008-04-19 Stefan Monnier <monnier@iro.umontreal.ca>
7980
7981 * keyboard.c (Vpre_help_message): Remove.
7982 (show_help_echo): Remove default C code.
7983
7984 * dired.c (directory_files_internal, file_name_completion):
7985 Only call ENCODE_FILE if the string is indeed decoded.
7986
79872008-04-18 Stefan Monnier <monnier@iro.umontreal.ca>
7988
7989 * Makefile.in (TOOLKIT_DEFINES): Remove.
7990 (LIBW): Use a bit less #if, remove left over OPEN_LOOK stuff.
7991
79922008-04-18 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
7993
7994 * Makefile.in (MAC_OBJ): Add mactoolbox.o.
7995 (mactoolbox.o): New target.
7996
7997 * mac.c [MAC_OSX] (select_and_poll_event, sys_select):
7998 Use mac_run_loop_run_once instead of CFRunLoopRunInMode.
7999
8000 * macfns.c (x_set_background_color, mac_window, x_create_tip_frame):
8001 Use mac_set_frame_window_background instead of XSetWindowBackground.
8002 (x_set_tool_bar_lines) [USE_MAC_TOOLBAR]:
8003 Use mac_is_window_toolbar_visible instead of IsWindowToolbarVisible.
8004 (x_set_name_internal) [TARGET_API_MAC_CARBON]: Use mac_set_window_title
8005 instead of SetWindowTitleWithCFString.
8006 (mac_update_proxy_icon) [TARGET_API_MAC_CARBON]: Remove BLOCK_INPUT.
8007 Move function to mactoolbox.c.
8008 (mac_update_title_bar) [TARGET_API_MAC_CARBON]:
8009 Use mac_set_window_modified instead of SetWindowModified.
8010 Add BLOCK_INPUT around mac_set_window_modified/mac_update_proxy_icon.
8011 (mac_window, x_create_tip_frame): Use mac_create_frame_window.
8012 (Fx_focus_frame): Use mac_front_non_floating_window instead of
8013 FrontNonFloatingWindow. Use mac_activate_window instead of
8014 ActivateWindow. Use mac_active_non_floating_window instead of
8015 ActiveNonFloatingWindow.
8016 (show_hourglass, hide_hourglass) [TARGET_API_MAC_CARBON]:
8017 Use mac_show_hourglass and mac_hide_hourglass.
8018 (compute_tip_xy) [TARGET_API_MAC_CARBON]: Use mac_get_global_mouse
8019 instead of GetGlobalMouse.
8020 (Fx_show_tip): Use mac_move_window/mac_size_window/mac_show_window
8021 instead of MoveWindow/SizeWindow/ShowWindow, respectively.
8022 Use mac_bring_window_to_front instead of BringToFront.
8023 (Qfile_name_history) [TARGET_API_MAC_CARBON]: Move extern to
8024 mactoolbox.c.
8025 (Fx_file_dialog) [TARGET_API_MAC_CARBON]: Move function body to
8026 mac_file_dialog in mactoolbox.c. Use mac_file_dialog.
8027 (mac_nav_event_callback) [TARGET_API_MAC_CARBON]: Move function to
8028 mactoolbox.c.
8029
8030 * macgui.h [!HAVE_CARBON]: Include Quickdraw.h instead of QuickDraw.h.
8031 (XtPointer): Move typedef from macmenu.c.
8032 (enum button_type): Move enum from macmenu.c.
8033 (widget_value): Move typedef from macmenu.c.
8034 (M_APPLE, I_ABOUT, EXTRA_STACK_ALLOC, ARGV_STRING_LIST_ID)
8035 (DIALOG_LEFT_MARGIN, DIALOG_TOP_MARGIN, DIALOG_RIGHT_MARGIN)
8036 (DIALOG_BOTTOM_MARGIN, DIALOG_MIN_INNER_WIDTH, DIALOG_MAX_INNER_WIDTH)
8037 (DIALOG_BUTTON_BUTTON_HORIZONTAL_SPACE)
8038 (DIALOG_BUTTON_BUTTON_VERTICAL_SPACE, DIALOG_BUTTON_MIN_WIDTH)
8039 (DIALOG_TEXT_MIN_HEIGHT, DIALOG_TEXT_BUTTONS_VERTICAL_SPACE)
8040 (DIALOG_ICON_WIDTH, DIALOG_ICON_HEIGHT, DIALOG_ICON_LEFT_MARGIN)
8041 (DIALOG_ICON_TOP_MARGIN): Move defines from macmenu.c.
8042 (Selection): Move typedef from macselect.c.
8043 (RAM_TOO_LARGE_ALERT_ID, ABOUT_ALERT_ID) [MAC_OS8]: Move defines from
8044 macterm.c.
8045 (mac_set_window_title, mac_set_window_modified, mac_is_window_visible)
8046 (mac_is_window_collapsed, mac_bring_window_to_front)
8047 (mac_send_window_behind, mac_hide_window, mac_show_window)
8048 (mac_collapse_window, mac_front_non_floating_window)
8049 (mac_active_non_floating_window, mac_activate_window)
8050 (mac_move_window_structure, mac_move_window, mac_size_window)
8051 (mac_get_global_mouse, mac_is_window_toolbar_visible): New defines.
8052
8053 * macmenu.c [!TARGET_API_MAC_CARBON]: Move includes to mactoolbox.c.
8054 (enum mac_menu_kind): Move enum to mactoolbox.c.
8055 (min_menu_id): Move variable to mactoolbox.c.
8056 (quit_dialog_event_loop) [TARGET_API_MAC_CARBON]: Likewise.
8057 (DIALOG_WINDOW_RESOURCE): Move define to mactoolbox.c.
8058 (DIALOG_BUTTON_COMMAND_ID_OFFSET, DIALOG_BUTTON_COMMAND_ID_P)
8059 (DIALOG_BUTTON_COMMAND_ID_VALUE, DIALOG_BUTTON_MAKE_COMMAND_ID)
8060 [TARGET_API_MAC_CARBON]: Likewise.
8061 (XtPointer): Move typedef to macgui.h.
8062 (enum button_type): Move enum to macgui.h.
8063 (widget_value): Move typedef to macgui.h.
8064 (DIALOG_LEFT_MARGIN, DIALOG_TOP_MARGIN, DIALOG_RIGHT_MARGIN)
8065 (DIALOG_BOTTOM_MARGIN, DIALOG_MIN_INNER_WIDTH, DIALOG_MAX_INNER_WIDTH)
8066 (DIALOG_BUTTON_BUTTON_HORIZONTAL_SPACE)
8067 (DIALOG_BUTTON_BUTTON_VERTICAL_SPACE, DIALOG_BUTTON_MIN_WIDTH)
8068 (DIALOG_TEXT_MIN_HEIGHT, DIALOG_TEXT_BUTTONS_VERTICAL_SPACE)
8069 (DIALOG_ICON_WIDTH, DIALOG_ICON_HEIGHT, DIALOG_ICON_LEFT_MARGIN)
8070 (DIALOG_ICON_TOP_MARGIN): Move defines to macgui.h.
8071 (popup_activated_flag): Make variable non-static.
8072 (x_activate_menubar, install_menu_quit_handler, pop_down_menu)
8073 (add_menu_item, fill_menu, dispose_menus):
8074 Move functions to mactoolbox.c.
8075 (restore_show_help_function, menu_target_item_handler)
8076 (install_menu_target_item_handler, mac_handle_dialog_event)
8077 (install_dialog_event_handler, pop_down_dialog, create_and_show_dialog)
8078 [TARGET_API_MAC_CARBON]: Likewise.
8079 (menu_quit_handler) [MAC_OS_X_VERSION_MAX_ALLOWED >= 1030]: Likewise.
8080 (mac_dialog) [!TARGET_API_MAC_CARBON]: Likewise.
8081 (find_and_call_menu_selection, name_is_separator): Make function
8082 non-static.
8083 (Vshow_help_function, timer_check) [TARGET_API_MAC_CARBON]: Move extern
8084 to mactoolbox.c.
8085 (set_frame_menubar): Don't call install_menu_quit_handler.
8086 (menu_item_selection): New variable.
8087 (mac_menu_show): Use create_and_show_popup_menu.
8088 (create_and_show_dialog) [TARGET_API_MAC_CARBON]: Don't return
8089 selection but set variable menu_item_selection. All uses changed.
8090 (mac_fill_menubar): Rename from fill_menubar. All uses changed.
8091 Call install_menu_quit_handler. Move to mactoolbox.c.
8092
8093 * macselect.c [!TARGET_API_MAC_CARBON]: Don't include Scrap.h.
8094 (Selection): Move typedef to macgui.h.
8095 (Vselection_converter_alist, Qmac_scrap_name, Qmac_ostype)
8096 (Vmac_apple_event_map, Qmac_apple_event_class, Qmac_apple_event_id):
8097 Make variables non-static.
8098 (Vmac_dnd_known_types) [TARGET_API_MAC_CARBON]: Likewise.
8099 (mac_handle_apple_event, cleanup_all_suspended_apple_events):
8100 Make functions non-static.
8101 (Vmac_service_selection) [MAC_OSX]: Likewise.
8102 (mac_get_selection_from_symbol, get_flavor_type_from_symbol)
8103 (mac_valid_selection_target_p, mac_clear_selection)
8104 (mac_get_selection_ownership_info, mac_valid_selection_value_p)
8105 (mac_put_selection_value, mac_selection_has_target_p)
8106 (mac_get_selection_value, mac_get_selection_target_list)
8107 (init_apple_event_handler, install_drag_handler, remove_drag_handler):
8108 Move functions to mactoolbox.c.
8109 (mac_do_track_drag, mac_do_receive_drag) [TARGET_API_MAC_CARBON]:
8110 Likewise.
8111 (copy_scrap_flavor_data, mac_handle_service_event)
8112 (install_service_handler) [MAC_OSX]: Likewise.
8113 (syms_of_macselect) <Vmac_dnd_known_types>:
8114 Use mac_dnd_default_known_types.
8115
8116 * macterm.h (FRAME_OUTER_TO_INNER_DIFF_X, FRAME_OUTER_TO_INNER_DIFF_Y):
8117 Move to mactoolbox.c.
8118 (HOURGLASS_WIDTH, HOURGLASS_HEIGHT): Change to 15.
8119 (Fx_selection_owner_p): Add EXFUN.
8120 (install_window_handler, remove_window_handler, XSetWindowBackground):
8121 Remove externs.
8122 (do_apple_menu) [!TARGET_API_MAC_CARBON]: Likewise.
8123 (mac_prepare_for_quickdraw) [USE_CG_DRAWING]: Likewise.
8124 (x_raise_frame, x_lower_frame, mac_alert_sound_play)
8125 (install_application_handler, mac_get_frame_bounds, mac_get_frame_mouse)
8126 (mac_convert_frame_point_to_global, mac_set_frame_window_background)
8127 (mac_update_begin mac_update_end, mac_frame_up_to_date, x_flush)
8128 (mac_create_frame_window, mac_dispose_frame_window, mac_begin_clip)
8129 (mac_end_clip, mac_create_scroll_bar, mac_dispose_scroll_bar)
8130 (mac_set_scroll_bar_bounds, mac_redraw_scroll_bar, mac_fill_menubar)
8131 (create_and_show_popup_menu, mac_get_selection_from_symbol)
8132 (mac_valid_selection_target_p, mac_clear_selection)
8133 (mac_get_selection_ownership_info, mac_valid_selection_value_p)
8134 (mac_put_selection_value, mac_selection_has_target_p)
8135 (mac_get_selection_value, mac_get_selection_target_list): Add externs.
8136 (mac_update_proxy_icon, mac_show_hourglass, mac_hide_hourglass)
8137 (mac_reposition_hourglass, mac_file_dialog, create_and_show_dialog)
8138 (mac_dnd_default_known_types) [TARGET_API_MAC_CARBON]: Likewise.
8139 (mac_run_loop_run_once) [MAC_OSX]: Likewise.
8140 (mac_dialog) [!TARGET_API_MAC_CARBON]: Likewise.
8141 (mac_begin_cg_clip, mac_end_cg_clip) [USE_CG_DRAWING]: Likewise.
8142 (x_set_toolkit_scroll_bar_thumb) [!USE_TOOLKIT_SCROLL_BARS]: Likewise.
8143 (x_scroll_bar_set_handle) [!USE_TOOLKIT_SCROLL_BARS]: Likewise.
8144
8145 * mactoolbox.c: New file.
8146
81472008-04-18 Jason Rumney <jasonr@gnu.org>
8148
8149 * dired.c (Ffile_attributes) [WINDOWSNT]: Cast uid and gid to unsigned.
8150
81512008-04-18 Stefan Monnier <monnier@iro.umontreal.ca>
8152
8153 * character.c (Fmultibyte_char_to_unibyte):
8154 Return latin1 chars unchanged.
8155
8156 * fileio.c (Fexpand_file_name): Refine last fix so `nm' is only
8157 relocated if it points to `name'.
8158
81592008-04-17 Kenichi Handa <handa@m17n.org>
8160
8161 * data.c (Faset): Allow setting a multibyte character in an
8162 ASCII-only unibyte string.
8163
8164 * lisp.h (STRING_SET_MULTIBYTE): New macro.
8165
81662008-04-16 Stefan Monnier <monnier@iro.umontreal.ca>
8167
8168 * Makefile.in: Don't use HAVE_GTK and don't -DUSE_GTK since it's now
8169 done in config.h.
8170
81712008-04-16 Juanma Barranquero <lekktu@gmail.com>
8172
8173 * character.c (Fchar_bytes, Fchar_width, Fstring_width)
8174 (Fchar_direction): Add usage in the docstring.
8175
81762008-04-15 Chong Yidong <cyd@stupidchicken.com>
8177
8178 * keyboard.c (read_key_sequence): Remove always-true checks.
8179
81802008-04-14 Jason Rumney <jasonr@gnu.org>
8181
8182 * w32font.c (w32font_open_internal): Set max_bounds.descent in
8183 compatibility struct, for better underline positioning.
8184
81852008-04-13 David Hansen <david.hansen@gmx.net>
8186
8187 * dbusbind.c (dbus-get-unique-name): Remove extra copying of name
8188 string.
8189
81902008-04-12 Dan Nicolaescu <dann@ics.uci.edu>
8191
8192 * m/hp800.h (XUINT, XSET): Remove.
8193
81942008-04-12 Juanma Barranquero <lekktu@gmail.com>
8195
8196 * fileio.c (Fexpand_file_name): Add declaration for `p' missing in
8197 previous change.
8198
81992008-04-12 Stefan Monnier <monnier@iro.umontreal.ca>
8200
8201 * fileio.c (Fexpand_file_name): Tighten the scope of `p' and `o' vars.
8202 Relocate `nm' after calling DECODE_FILE, in case the GC was run.
8203
82042008-04-11 Stefan Monnier <monnier@iro.umontreal.ca>
8205
8206 * keymap.h (map_keymap_canonical): Declare.
8207 * xmenu.c (single_keymap_panes): Use it.
8208
82092008-04-11 Glenn Morris <rgm@gnu.org>
8210
8211 * eval.c (Fdefvaralias): If the alias is bound and the target is not,
8212 set the target's value to that of the alias.
8213
82142008-04-11 Stefan Monnier <monnier@iro.umontreal.ca>
8215
8216 * term.c (set_tty_color_mode): Left over typo.
8217
82182008-04-10 Michael Albinus <michael.albinus@gmx.de>
8219
8220 * fileio.c (Fmake_symbolic_link): Surround code by #ifdef S_IFLNK
8221 only after check for file name handler functions. Signal, when
8222 native functionality is not supported.
8223 (syms_of_fileio): Declare it unconditionally.
8224
82252008-04-10 Jason Rumney <jasonr@gnu.org>
8226
8227 * w32menu.c (is_simple_dialog, simple_dialog_show): New functions.
8228 (Fx_popup_dialog): Handle simple yes/no questions as dialogs.
8229
8230 * w32.c (logon_network_drive): Also logon to remote drives that
8231 are mapped to drive letters.
8232
82332008-04-10 Glenn Morris <rgm@gnu.org>
8234
8235 * xdisp.c (truncate-partial-width-windows): Doc fix.
8236
82372008-04-10 Stefan Monnier <monnier@iro.umontreal.ca>
8238
8239 * fileio.c (read_file_name_cleanup, Fread_file_name_internal):
8240 Move functions to minibuffer.el.
8241 (syms_of_fileio): Don't declare them.
8242
82432008-04-09 Stefan Monnier <monnier@iro.umontreal.ca>
8244
8245 * minibuf.c (Vcompletion_auto_help): Move to minibuffer.el.
8246 (syms_of_minibuf): Remove its initialization.
8247
8248 * minibuf.c (temp_echo_area_glyphs): Remove unused function.
8249
82502008-04-09 Juanma Barranquero <lekktu@gmail.com>
8251
8252 * editfns.c (Ffield_string_no_properties): Fix typo in docstring.
8253
82542008-04-09 Jason Rumney <jasonr@gnu.org>
8255
8256 * makefile.w32-in (distclean): Delete makefile too.
8257 (maintainer-clean): New target.
8258
8259 * xdisp.c (redisplay_internal) [!WINDOWSNT]: Conditionalize last change.
8260
8261 * w32term.c (w32_compute_glyph_string_overhangs): Compute overhangs
8262 for new font backend and composite cases.
8263
82642008-04-09 Jan Djärv <jan.h.d@swipnet.se>
8265
8266 * atimer.c (alarm_signal_handler): Call run_timers if not SYNC_INPUT.
8267 Most of the code moved to run_timers.
8268 (do_pending_atimers): Call run_timers.
8269 (run_timers): New function.
8270
8271 * sysdep.c (emacs_write): If SYNC_INPUT and pending_atimers,
8272 run atimers.
8273
8274 * process.c (wait_reading_process_output): The same as above.
8275
82762008-04-09 Stefan Monnier <monnier@iro.umontreal.ca>
8277
8278 * minibuf.c (last_exact_completion): Remove variable.
8279 (Fdelete_minibuffer_contents, do_completion, Fminibuffer_complete)
8280 (complete_and_exit_1, complete_and_exit_2)
8281 (Fminibuffer_complete_and_exit, Fminibuffer_complete_word)
8282 (Fdisplay_completion_list, display_completion_list_1)
8283 (Fminibuffer_completion_help, Fself_insert_and_exit)
8284 (Fexit_minibuffer, Fminibuffer_message): Move functions to
8285 minibuffer.el.
8286 (syms_of_minibuf): Remove corresponding initializations.
8287
8288 * keyboard.c (Qdeactivate_mark): New var.
8289 (command_loop_1): Use it to call `deactivate-mark'.
8290 (syms_of_keyboard): Initialize it.
8291
8292 * xdisp.c (redisplay_internal): Reset tty's color_mode when switching
8293 to another frame.
8294 * frame.c (do_switch_frame): Refine the top_frame/async_visible code.
8295 Don't call set_tty_color_mode.
8296 (store_frame_param): Reset previous_frame rather than call
8297 set_tty_color_mode.
8298 * term.c (set_tty_color_mode): Rewrite.
8299 * dispextern.h (set_tty_color_mode): New type.
8300 * termchar.h (struct tty_display_info): Add `previous_color_mode'.
8301
83022008-04-08 Stefan Monnier <monnier@iro.umontreal.ca>
8303
8304 * keymap.c (access_keymap): Remove the value 2 for t_ok which was used
8305 for generic chars, which do not exist any more in emacs-unicode.
8306
83072008-04-08 Michael Albinus <michael.albinus@gmx.de>
8308
8309 * coding.c (detect_coding_emacs_mule)
8310 (Ffind_operation_coding_system): Fix typo.
8311
83122008-04-08 Jason Rumney <jasonr@gnu.org>
8313
8314 * w32uniscribe.c (SNAME): Extract only symbol name.
8315
8316 * w32font.h (struct w32_metric_cache): New struct.
8317 (w32font_info): Use it.
8318 (W32METRIC_NO_ATTEMPT, W32METRIC_SUCCESS, W32METRIC_FAIL)
8319 (CACHE_BLOCKSIZE): New constants.
8320
8321 * w32font.c (Qja, Qko, Qzh): New symbols.
8322 (syms_of_w32font): Initialise them.
8323 (font_matches_spec): Use them to filter by language.
8324 (recompute_cached_metrics): Remove function.
8325 (compute_metrics, clear_cached_metrics): New functions.
8326 (w32font_encode_char): Use them to manage metric cache.
8327 (w32font_text_extents): Cache metrics for all glyphs on demand.
8328 Delay converting glyph indices to WORD until needed.
8329 (w32font_open_internal): Initialize metric cache to empty.
8330 (registry_to_w32_charset): Charset should always be a symbol.
8331 (fill_in_logfont, list_all_matching_fonts): Family should
8332 always be a symbol.
8333
83342008-04-06 Jason Rumney <jasonr@gnu.org>
8335
8336 * w32uniscribe.c (uniscribe_shape): Increase items buffer size.
8337 Give up if glyph indices not supported. Use uniscribe obtained
8338 ABC widths for individual metrics. Map glyph clusters back to
8339 characters using fClusterStart flag. Return number of glyphs
8340 produced, not chars processed.
8341 (uniscribe_shape): Map char at FROM to current glyph.
8342
83432008-04-05 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
8344
8345 * macmenu.c (fill_menu) [TARGET_API_MAC_CARBON]:
8346 Use SetMenuItemHierarchicalMenu.
8347
83482008-04-05 Jason Rumney <jasonr@gnu.org>
8349
8350 * image.c (pbm_load): Allow color values up to 65535.
8351 Throw an error if max_color_idx is outside the supported range.
8352 Report an error when image size is invalid.
8353 Read two bytes at a time when raw images have max_color_idx above 255.
8354
83552008-04-05 Eli Zaretskii <eliz@gnu.org>
8356
8357 * w32.c (readdir): If FindFirstFile/FindNextFile return in
8358 cFileName a file name that includes `?' characters, use the 8+3
8359 alias in cAlternateFileName instead.
8360
83612008-04-05 Kenichi Handa <handa@ni.aist.go.jp>
8362
8363 * ccl.c (ccl_driver): If ccl->quit_silently is nonzero, don't
8364 append "CCL: Quitted" when the CCL program is quitted.
8365 (setup_ccl_program): Initialize ccl->quit_silently to zero.
8366
8367 * ccl.h (struct ccl_program): New member quit_silently.
8368
83692008-04-05 Chong Yidong <cyd@stupidchicken.com>
8370
8371 * search.c (compile_pattern_1): Treat non-nil and non-string of
8372 search-spaces-regexp as nil.
8373
8374 * minibuf.c (Fassoc_string): Tweak docstring.
8375
83762008-04-05 Eli Zaretskii <eliz@gnu.org>
8377
8378 * dired.c (Ffile_attributes): Support inode numbers wider than 32
8379 bits. Remove ugly WINDOWSNT-specific kludge introduced on
8380 2008-03-14 to force inode be positive.
8381
8382 * w32.c (sys_chown, stat, fstat): Use S_* constants instead of
8383 _S_* ones, since we now use our own sys/stat.h.
8384 (stat, fstat): Don't mangle the inode number.
8385 (init_user_info): Don't restrict UID and GID to 0-60000 range.
8386
83872008-04-04 Stefan Monnier <monnier@iro.umontreal.ca>
8388
8389 * frame.h (struct frame): Give one more bit to `visible' since we use
8390 values larger than 1 to indicate obscured frames on ttys.
8391
8392 * keymap.c (Qkeymap_canonicalize): New var.
8393 (Fmap_keymap_internal): New fun.
8394 (describe_map): Use keymap-canonicalize.
8395
8396 * undo.c (last_boundary_buffer, last_boundary_position): New vars.
8397 (Fundo_boundary): Set them.
8398 (syms_of_undo): Initialize them.
8399 (record_point): Use them instead of last_point_position*.
8400 (last_undo_buffer): Change type.
8401
84022008-04-04 Jason Rumney <jasonr@gnu.org>
8403
8404 * w32font.c (w32font_text_extents): Use font's ascent and descent.
8405 (recompute_cached_metrics): Don't set ascent and descent per char.
8406
8407 * w32uniscribe.c (uniscribe_check_otf): Fix last change.
8408 (uniscribe_check_otf): Add GC protection before consing.
8409 Rearrange loop for counting features.
8410
84112008-04-03 Stefan Monnier <monnier@iro.umontreal.ca>
8412
8413 * insdel.c (insert_from_buffer_1): Don't compare bytes in destination
8414 buffer with byte-size of source buffer.
8415
84162008-04-03 Chong Yidong <cyd@stupidchicken.com>
8417
8418 * callint.c (Fcall_interactively): Handle temporary region even
8419 when shift-select-mode is off.
8420
84212008-04-03 Jason Rumney <jasonr@gnu.org>
8422
8423 * w32uniscribe.c (uniscribe_check_otf): Sanity check otf_spec.
8424
84252008-04-03 Kenichi Handa <handa@m17n.org>
8426
8427 * coding.c (CATEGORY_MASK_ANY): Add CATEGORY_MASK_UTF_16_AUTO.
8428 (CATEGORY_MASK_UTF_16): Likewise.
8429 (detect_coding_utf_16): Add heuristics to reject utf-16 for a
8430 binary file.
8431 (detect_coding): Add null-byte detection for a binary file.
8432 (detect_coding_system): Likewise.
8433
84342008-04-03 Jason Rumney <jasonr@gnu.org>
8435
8436 * w32uniscribe.c: New file.
8437
8438 * font.h (uniscribe_font_driver) [WINDOWSNT]: Declare for w32fns.c.
8439
8440 * w32font.h (uniscribe_check_otf): Declare for w32font.c.
8441
8442 * w32font.c (Qbalinese, Qbuginese, Qbuhid, Qcuneiform, Qcypriot)
8443 (Qdeseret, Qglagolitic, Qgothic, Qhanunoo, Qkharoshthi)
8444 (Qlimbu, Qlinear_b, Qold_italic, Qold_persian, Qosmanya)
8445 (Qphags_pa, Qphoenician, Qshavian, Qsyloti_nagri)
8446 (Qtagalog, Qtagbanwa, Qtai_le, Qtifinagh, Qugaritic)
8447 (Qphonetic): New symbols.
8448 (syms_of_w32font): Initialize them.
8449 (font_supported_scripts): Use them.
8450 (w32font_list_family): List all charsets.
8451 (w32font_text_extents, recompute_cached_metrics): Fix metric
8452 calculations.
8453 (w32_enumfont_pattern_entity): Make full_type a DWORD.
8454 Give opentype fonts their own format.
8455 (font_matches_spec): New arguments backend and logfont.
8456 Handle :otf spec for uniscribe backend.
8457 (add_font_entity_to_list): Match truetype fonts in uniscribe backend.
8458 (fill_in_logfont): Use DEFAULT_CHARSET when charset not supplied.
8459
8460 * w32fns.c (Fx_create_frame): Conditionally register uniscribe
8461 font backend.
8462 (globals_of_w32fns): Initialize uniscribe font backend.
8463
8464 * makefile.w32-in (CONFIG_H): New variable. Use it to clean up
8465 dependencies.
8466 (w32uniscribe.$(O)): New file to build.
8467 (FONT_OBJ): Include w32uniscribe.$(O).
8468 (LIBS): Add uniscribe libraries.
8469
8470 * ftfont.c (ftfont_get_open_type_spec): Check spec->script, not val.
8471
84722008-04-02 Chong Yidong <cyd@stupidchicken.com>
8473
8474 * callint.c (Vshift_select_mode): New var.
8475 (Finteractive): Document new ^ spec.
8476 (Fcall_interactively): Call handle-shift-selection if the ^ spec
8477 is present.
8478
8479 * keyboard.c (Vthis_command_keys_shift_translated): New var.
8480 (command_loop_1): Avoid running the direct display versions of
8481 forward-char and backward-char if shift-selection may occur.
8482 (read_key_sequence): Set Vthis_command_keys_shift_translated if
8483 shift-translation takes place.
8484
8485 * buffer.c (Vtransient_mark_mode): Move docstring to simple.el to
8486 avoid clobbering by define-minor-mode.
8487
8488 * cmds.c (Fforward_char, Fbackward_char, Fforward_line)
8489 (Fbeginning_of_line, Fend_of_line): Add ^ interactive spec.
8490
8491 * syntax.c (Fforward_word): Add ^ interactive spec.
8492
8493 * window.c (Fscroll_up, Fscroll_down, Fscroll_left)
8494 (Fscroll_right): Add ^ interactive spec.
8495
84962008-04-01 Stefan Monnier <monnier@iro.umontreal.ca>
8497
8498 * xdisp.c (try_window_id): Don't forget to reset delta_bytes.
8499
8500 * casefiddle.c (casify_object): Fix up int/EMACS_INT mixup.
8501
8502 * charset.c (Funibyte_charset, Fset_unibyte_charset): Remove.
8503
85042008-03-31 Juri Linkov <juri@jurta.org>
8505
8506 * window.c (Fdisplay_buffer): Reinitialize `tem' to nil.
8507
85082008-03-30 Jan Djärv <jan.h.d@swipnet.se>
8509
8510 * gtkutil.c (xg_set_geometry): Fix indentation.
8511 (xg_resize_outer_widget): Remove.
8512 (x_wm_size_hint_off): Fix indentation.
8513 (xg_frame_set_char_size): Call flush_and_sync after
8514 gtk_window_resize.
8515 (x_wm_set_size_hint): Pass NULL as geometry window to
8516 gtk_window_set_geometry_hints due to Gtk+ bug nr 68668.
8517 Add menu bar and tool bar height to base height.
8518 (xg_update_frame_menubar, free_frame_menubar)
8519 (xg_tool_bar_detach_callback, xg_tool_bar_attach_callback)
8520 (update_frame_tool_bar, free_frame_tool_bar):
8521 Change xg_resize_outer_widget to xg_frame_set_char_size.
8522
85232008-03-30 Michael Albinus <michael.albinus@gmx.de>
8524
8525 * dbusbind.c (QCdbus_timeout): New D-Bus internal symbol.
8526 (Fdbus_call_method): New parameter TIMEOUT.
8527 (dbus-send-signal): Optimize UNGCPRO call.
8528
85292008-03-29 Juri Linkov <juri@jurta.org>
8530
8531 * window.c (Fdisplay_buffer): Move call to
8532 Vsplit_window_preferred_function out of conditions that check
8533 if window is eligible for vertical splitting.
8534 When Vsplit_window_preferred_function is non-nil, call it and use
8535 its non-nil return value as window. Otherwise, continue doing
8536 vertical splitting using Fsplit_window with arg horflag=nil.
8537 (syms_of_window) <Vsplit_window_preferred_function>: Change the
8538 default value from `split-window' to nil.
8539
85402008-03-29 Juri Linkov <juri@jurta.org>
8541
8542 * callint.c (Fcall_interactively): Revert 2008-03-16 change
8543 for interactive code letters 'b' and 'B'.
8544
85452008-03-29 Eli Zaretskii <eliz@gnu.org>
8546
8547 * fileio.c (Fexpand_file_name): Convert the value of $HOME to a
8548 multibyte string.
8549
85502008-03-29 Stefan Monnier <monnier@iro.umontreal.ca>
8551
8552 * keyboard.c (pending_funcalls): New var.
8553 (timer_check): Run it.
8554 (syms_of_keyboard): Initialize it.
8555 * terminal.c (Qrun_hook_with_args, Qdelete_terminal_functions)
8556 (Vdelete_terminal_functions): New vars.
8557 (syms_of_terminal): Initialize them.
8558 (Fdelete_terminal): Run delete-terminal-functions.
8559 * xdisp.c (safe_eval): Rewrite.
8560 (safe_call2): New fun.
8561 * frame.c (Qdelete_frame_functions): New var.
8562 (syms_of_frame): Initialize it.
8563 (Fdelete_frame): Use it and use safe_call2 and pending_funcalls.
8564 * lisp.h (safe_call2, pending_funcalls): Declare.
8565
85662008-03-28 Andreas Schwab <schwab@suse.de>
8567
8568 * indent.c (Fmove_to_column): Move declaration before statements.
8569
85702008-03-27 Stefan Monnier <monnier@iro.umontreal.ca>
8571
8572 * frame.h (enum fullscreen_type): Give it a name. Move it before use.
8573 (struct frame): Use bit fields for boolean vars.
8574
8575 * process.c (server_accept_connection): Simplify naming.
8576 (emacs_get_tty_pgrp): Use SDATA.
8577
8578 * coding.c (decode_coding_object): Fix last change.
8579
85802008-03-27 Jason Rumney <jasonr@gnu.org>
8581
8582 * w32fns.c (start_hourglass): Suppress hourglass on tty frames.
8583
85842008-03-27 Kenichi Handa <handa@ni.aist.go.jp>
8585
8586 * charset.c (Fdefine_charset_internal): Change the way of
8587 registering charsets in Vcharset_order_list.
8588 (syms_of_charset): Make the charset `eight-bit' supplementary.
8589
85902008-03-26 Alexandre Oliva <aoliva@redhat.com> (tiny change)
8591
8592 * regex.c (EXTEND_BUFFER): Change order of pointer addition
8593 operations, to avoid having the difference between pointers
8594 overflow.
8595
85962008-03-26 Stefan Monnier <monnier@iro.umontreal.ca>
8597
8598 * indent.c (check_display_width): New fun.
8599 (scan_for_column): Use it.
8600
8601 * data.c (syms_of_data): Mark most-positive-fixnum and
8602 most-negative-fixnum as constants.
8603
8604 * xdisp.c (redisplay_internal): Reset selected_frame earlier.
8605
8606 * indent.c (scan_for_column): Extract from current_column_1.
8607 Merge with the same code from Fmove_to_column.
8608 (current_column_1, Fmove_to_column): Use it.
8609
86102008-03-25 Stefan Monnier <monnier@iro.umontreal.ca>
8611
8612 * keymap.c (map_keymap_internal): New fun.
8613 (map_keymap): Use it.
8614 (Fmap_keymap_internal): New fun.
8615 (Fmap_keymap): Remove left-out test from before make_save_value.
8616
8617 * keymap.c (Fmap_keymap): Use `map-keymap-sorted.
8618
8619 * frame.c (Fmodify_frame_parameters, x_set_frame_parameters):
8620 Use XCAR/XCDR.
8621
8622 * process.h (struct Lisp_Process): Remove filter_multibyte.
8623 * process.c (QCfilter_multibyte): Remove.
8624 (setup_process_coding_systems): Don't use filter_multibyte.
8625 (Fstart_process, Fmake_network_process): Don't set filter_multibyte.
8626 (read_process_output): Don't adjust multibyteness to filter_multibyte.
8627 (Fset_process_filter_multibyte): Change the coding-system to
8628 approximate the previous behavior.
8629 (Fprocess_filter_multibyte_p): Get the multibyteness straight from the
8630 coding-system.
8631
8632 * coding.c (decode_coding_object): When not decoding into a buffer,
8633 obey the coding system's preference of (uni|multi)byte.
8634
86352008-03-24 Stefan Monnier <monnier@iro.umontreal.ca>
8636
8637 * casefiddle.c (casify_object): Avoid pathological N^2 worst case if
8638 every char is changed and has a different byte-length.
8639 (Fupcase_word, Fdowncase_word, Fcapitalize_word, operate_on_word):
8640 Fix int -> EMACS_INT.
8641
86422008-03-23 David Hansen <david.hansen@gmx.net>
8643
8644 * dbusbind.c (xd_read_message): Remove extra copying of message
8645 strings. Check for NULL `interface' or `member'.
8646
86472008-03-22 Eli Zaretskii <eliz@gnu.org>
8648
8649 * w32.c (readdir): If FindFirstFile/FindNextFile return in
8650 cFileName a file name that includes `?' characters, use the 8+3
8651 alias in cAlternateFileName instead.
8652
86532008-03-21 Stefan Monnier <monnier@iro.umontreal.ca>
8654
8655 * buffer.c (enlarge_buffer_text): Fix int -> EMACS_INT.
8656
86572008-03-20 Stefan Monnier <monnier@iro.umontreal.ca>
8658
8659 * intervals.c (temp_set_point, temp_set_point_both): Use EMACS_INT.
8660 (set_point, set_point_both): Use EMACS_INT. Remove `buffer' arg,
8661 work on current_buffer only instead (that was already the case
8662 for some of the code anyway).
8663 * buffer.h (set_point, set_point_both): Remove buffer arg, use long int.
8664 (temp_set_point, temp_set_point_both): Use EMACS_INT.
8665 (SET_PT, SET_PT_BOTH): Adjust.
8666 * intervals.h (set_point, temp_set_point, set_point_both)
8667 (temp_set_point_both): Remove redundant declarations.
8668
86692008-03-20 Stefan Monnier <monnier@iro.umontreal.ca>
8670
8671 * fileio.c (Finsert_file_contents):
8672 * lread.c (Feval_buffer): Use BUF_TEMP_SET_PT.
8673 * buffer.h (BUF_SET_PT): Remove. set_point_both doesn't work right
8674 when buffer != current_buffer anyway.
8675
86762008-03-20 Andreas Schwab <schwab@suse.de>
8677
8678 * callint.c (Fcall_interactively) [case 'B']: Use other-buffer
8679 as default.
8680
86812008-03-19 Jason Rumney <jasonr@gnu.org>
8682
8683 * w32fns.c (hourglass_timer, hourglass_hwnd): New variables.
8684 (syms_of_w32fns): Initialize them.
8685 (HOURGLASS_ID): New constant.
8686 (x_window_to_frame): Don't check hourglass_window.
8687 (w32_wnd_proc) <WM_TIMER>: Handle hourglass_timer.
8688 (w32_wnd_proc) <WM_EXITMENULOOP>: Set pending hourglass cursor.
8689 (w32_wnd_proc) <WM_SETCURSOR>: Set the hourglass or current cursor.
8690 (w32_wnd_proc) <WM_EMACS_SETCURSOR>: Set frame's current_cursor.
8691 Only change the cursor if hourglass is not active.
8692 (Fx_create_frame): Initialize frame's current_cursor.
8693 (hourglass_atimer): Remove.
8694 (hourglass_started): New function.
8695 (start_hourglass, cancel_hourglass, hide_hourglass): Adapt to w32.
8696 (show_hourglass): Adapt to w32, changing argument to frame.
8697
8698 * w32term.h (struct w32_output): Remove hourglass_window.
8699 Add current_cursor.
8700
8701 * eval.c (call_debugger, Fsignal):
8702 * keyboard.c (recursive_edit_1, cmd_error, Ftop_level)
8703 (command_loop_1, Fread_key_sequence, Fread_key_sequence_vector)
8704 (Fexecute_extended_command, cancel_hourglass_unwind):
8705 * minibuf.c (read_minibuf):
8706 * fns.c (Fy_or_n_p): Enable hourglass when HAVE_WINDOW_SYSTEM.
8707
87082008-03-19 Stefan Monnier <monnier@iro.umontreal.ca>
8709
8710 * window.c (run_funs): New fun.
8711 (run_window_configuration_change_hook): Use it to run the buffer-local
8712 and the global part of the hook.
8713
8714 * xdisp.c (format_mode_line_unwind_data): Add window argument.
8715 (unwind_format_mode_line): Restore selected window.
8716 (x_consider_frame_title, Fformat_mode_line): Set selected window.
8717
87182008-03-17 Stefan Monnier <monnier@iro.umontreal.ca>
8719
8720 * editfns.c (Fchar_equal): Check they are valid characters.
8721
8722 * buffer.h (Fbuffer_list): Declare (for use in callint.c).
8723
87242008-03-17 Andreas Schwab <schwab@suse.de>
8725
8726 * regex.c (re_match_2_internal): Properly match raw 8-bit bytes
8727 against a charset.
8728
8729 * lisp.h (Fbuffer_list): Declare.
8730
87312008-03-17 Jan Djärv <jan.h.d@swipnet.se>
d6c952f8 8732
aac0c6e3
MR
8733 * gtkutil.c (free_frame_tool_bar): Only call gtk_container_remove if
8734 handlebox_widget is != 0.
8735
87362008-03-16 Juri Linkov <juri@jurta.org>
8737
8738 * callint.c (Fcall_interactively): For interactive code letters
8739 'b' and 'B' put the buffer list into the list of default "future"
8740 values of the minibuffer.
8741
87422008-03-16 Andreas Schwab <schwab@suse.de>
8743
8744 * keyboard.c (read_key_sequence): Fix downcasing of letters with
8745 modifiers.
8746
8747 * regex.c (re_match_2_internal): Correct matching of a charset
8748 against latin-1 characters.
8749
87502008-03-16 Kenichi Handa <handa@m17n.org>
8751
8752 * coding.c (CHAR_STRING_ADVANCE_NO_UNIFY)
8753 (STRING_CHAR_ADVANCE_NO_UNIFY): New macros.
8754 (coding_alloc_by_making_gap): Fix the way to preserve data in the gap.
8755 (alloc_destination): Fix the 2nd arg to coding_alloc_by_making_gap.
8756 (encode_coding_utf_8): Use CHAR_STRING_ADVANCE_NO_UNIFY instead of
8757 CHAR_STRING_ADVANCE.
8758 (produce_chars): Fix for the case that the source and the
8759 destination are the same buffer. Use CHAR_STRING_ADVANCE_NO_UNIFY
8760 instead of CHAR_STRING_ADVANCE.
8761 (consume_chars): Use STRING_CHAR_ADVANCE_NO_UNIFY instead of
8762 STRING_CHAR_ADVANCE.
8763
87642008-03-15 Andreas Schwab <schwab@suse.de>
8765
8766 * regex.c (re_match_2_internal): Correct matching of eight bit
8767 characters in unibyte strings.
8768
87692008-03-15 Martin Rudalics <rudalics@gmx.at>
8770
8771 * buffer.c (overlays_in, Foverlays_in): Include empty overlays
8772 at end of range when it coincides with the end of the buffer.
8773
87742008-03-14 Eli Zaretskii <eliz@gnu.org>
8775
8776 * dired.c (Ffile_attributes) [WINDOWSNT]: Force inode be positive.
8777
8778 * w32fns.c (globals_of_w32fns, Fx_create_frame): Fix last change.
8779
87802008-03-14 Jason Rumney <jasonr@gnu.org>
8781
8782 * editfns.c (initial_tz): New variable.
8783 (syms_of_editfns): Initialize it.
8784 (Fset_time_zone_rule): Set it when first called.
8785 Use it when TZSTRING is nil.
8786
8787 * w32fns.c (MONITOR_DEFAULT_TO_NEAREST, struct MONITOR_INFO)
8788 (MonitorFromPoint_Proc, GetMonitorInfo_Proc): New definitions.
8789 (monitor_from_point_fn, get_monitor_info_fn): New globals.
8790 (globals_of_w32fns): Initialize them.
8791 (compute_tip_xy): Use them to position tooltips.
8792
87932008-03-14 Glenn Morris <rgm@gnu.org>
8794
8795 * emacs.c (main): Revert previous change.
8796 (standard_args): Revert -internal-script back to -scriptload,
8797 and remove the long-option form.
8798
87992008-03-13 Glenn Morris <rgm@gnu.org>
8800
8801 * emacs.c (main, standard_args): Rename -scriptload to -internal-script.
8802 Remove option -enable-font-backend.
8803
88042008-03-12 Stefan Monnier <monnier@iro.umontreal.ca>
8805
8806 * buffer.c (Fswitch_to_buffer): Fall back on pop-to-buffer.
8807
88082008-03-11 Jan Djärv <jan.h.d@swipnet.se>
8809
8810 * xterm.c (x_connection_closed): For GTK: If this is the last
8811 terminal just exit without closing the display.
8812
88132008-03-11 Jason Rumney <jasonr@gnu.org>
8814
8815 * w32font.c (w32font_full_name): Use floor to round.
8816
f0131492 88172008-03-10 Dhruva Krishnamurthy <dhruvakm@gmail.com> (tiny change)
aac0c6e3
MR
8818
8819 * sound.c (alsa_configure): Declare vol at beginning of block.
8820
8821 * fontset.c (Ffontset_info): Remove extra semicolon.
8822
88232008-03-10 Stefan Monnier <monnier@iro.umontreal.ca>
8824
8825 * fileio.c (Fsubstitute_in_file_name): Fix up computation of maximum
8826 size of resulting string.
8827
88282008-03-10 Jason Rumney <jasonr@gnu.org>
8829
8830 * dispnew.c (adjust_glyph_matrix): Initialize window_height.
8831
88322008-03-10 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
8833
8834 * xdisp.c (handle_single_display_spec): Undo 2007-10-16 changes.
8835 Don't pretend as if characters with display property haven't been
8836 consumed for string-replacing-string case.
8837
88382008-03-08 Kim F. Storm <storm@cua.dk>
8839
8840 * xdisp.c (GET_NEXT_DISPLAY_ELEMENT): New macro.
8841 (get_next_display_element, next_element_from_string)
8842 (next_element_from_ellipsis, next_element_from_buffer): Use it.
8843
88442008-03-08 Andreas Schwab <schwab@suse.de>
8845
8846 * process.h (struct Lisp_Process): Declare bit fields as unsigned.
8847
88482008-03-06 Jason Rumney <jasonr@gnu.org>
8849
8850 * w32font.c (w32_registry): Take font_type argument. Use ANSI
8851 when charset not specified. Only translate ANSI to unicode when
8852 font_type is truetype.
8853 (w32font_coverage_ok): New function.
8854 (add_font_entity_to_list): Use it to filter unsuitable fonts.
8855
88562008-03-05 Kenichi Handa <handa@ni.aist.go.jp>
8857
8858 * lread.c (Fread_char): Resolve modifiers.
8859 (Fread_char_exclusive): Likewise.
8860
8861 * character.c (char_resolve_modifier_mask): New function.
8862 (char_string): Use char_resolve_modifier_mask.
8863 (Fchar_resolve_modifiers): New function.
8864 (syms_of_character): Declare Fchar_resolve_modifiers as Lisp
8865 function.
8866
88672008-03-04 Jason Rumney <jasonr@gnu.org>
8868
8869 * makefile.w32-in: Always include w32font.c in the build.
8870 * w32font.c: Wrap in USE_FONT_BACKEND conditional.
8871
88722008-03-04 Andreas Schwab <schwab@suse.de>
8873
8874 * Makefile.in (clean): Remove emacs-*.*.* instead of emacs-*.
8875 (versionclean): Likewise.
8876
88772008-03-04 Juanma Barranquero <lekktu@gmail.com>
8878
8879 * .cvsignore: Add oo.
8880
88812008-03-03 Andreas Schwab <schwab@suse.de>
8882
8883 * coding.c (decode_coding_object): Inhibit gap shrinking while
8884 decoding in place.
8885
88862008-03-03 Dan Nicolaescu <dann@ics.uci.edu>
8887
8888 * w32term.c: Remove unused include "gnu.h".
8889 * makefile.w32-in (w32term.o): Don't depend on gnu.h.
8890
8891 * gnu.h: Rename to ...
8892 * emacs-icon.h: ... this.
8893 * xterm.c: Use emacs-icon.h instead of gnu.h.
8894 * Makefile (xterm.o): Depend on emacs-icon.h, not gnu.h.
8895
88962008-03-03 Juanma Barranquero <lekktu@gmail.com>
8897
8898 * w32font.c: Include math.h.
8899
89002008-03-03 Jason Rumney <jasonr@gnu.org>
8901
8902 * w32font.c (recompute_cached_metrics): Change font arg to w32font_info.
8903 Compute options separately.
8904 (w32font_open_internal): Set glyph_idx before caching metrics.
8905
8906 * w32font.h (NTM_PS_OPENTYPE, NTM_TT_OPENTYPE, NTM_TYPE1):
8907 Define if system headers don't.
8908 (struct w32font_info): Enlarge ascii_metrics. Add glyph_idx.
8909 (w32font_encode_char): Don't declare here.
8910
8911 * w32font.c (Quniscribe, QCformat): New symbols.
8912 (syms_of_w32font): Define them.
8913 (w32font_has_char): Indicate uncertainty.
8914 (w32font_encode_char): Encode as glyph point. Make static.
8915 (recompute_cached_metrics): New function.
8916 (w32font_open_internal): Use it. Set font to use glyph points
8917 initially. Set format based on type of font.
8918 (w32font_text_extents, w32font_draw): Optionally use glyph points.
8919 (w32_enumfont_pattern_entity): Accept backend arg. Set type based
8920 on it. Set format based on information available here.
8921 (add_font_entity_to_list): Identify backend based on opentype_only.
8922
89232008-03-02 Andreas Schwab <schwab@suse.de>
8924
8925 * ftfont.c (ftfont_pattern_entity): Fix aliasing violations.
8926
8927 * coding.c (decode_coding_big5, produce_chars):
8928 Fix typos in last change.
8929
89302008-03-02 Kentaro Ohkouchi <nanasess@fsm.ne.jp>
8931
8932 * gnu.h: New icon.
8933
89342008-03-02 Kenichi Handa <handa@m17n.org>
8935
8936 * coding.c (decode_coding_utf_8): When eol-type of CODING is
8937 `dos', don't decode '\r' if that is the last in the source.
8938 (decode_coding_utf_16, decode_coding_emacs_mule)
8939 (decode_coding_iso_2022, decode_coding_sjis, decode_coding_big5)
8940 (decode_coding_raw_text, decode_coding_charset): Likewise.
8941 (produce_chars): Don't decode EOL here. Use EMACS_INT.
8942
89432008-03-01 Jason Rumney <jasonr@gnu.org>
8944
8945 * w32font.c (w32font_full_name): Report point size for scalable fonts.
8946
89472008-03-01 Kim F. Storm <storm@cua.dk>
8948
8949 * dispextern.h (CHAR_GLYPH_SPACE_P): Check for default face.
8950
89512008-03-01 Jason Rumney <jasonr@gnu.org>
8952
8953 * w32font.c (w32font_full_name): New function.
8954 (w32font_open_internal): Use it.
8955
89562008-03-01 Kim F. Storm <storm@cua.dk>
8957
8958 * dispnew.c (line_draw_cost): Fix invalid glyph check.
8959
89602008-03-01 Jason Rumney <jasonr@gnu.org>
8961
8962 * font.c (font_unparse_fcname): Increase len when style is a symbol.
8963
89642008-03-01 Jan Djärv <jan.h.d@swipnet.se>
8965
8966 * xterm.c (handle_one_xevent): For Gtk+ and ConfigureNotify, call
8967 xg_frame_resized when the event is for the edit widget.
8968
8969 * gtkutil.h (xg_frame_resized): Renamed from xg_resize_widgets.
8970
8971 * gtkutil.c (xg_resize_outer_widget): Only do one of set_geometry or
8972 set_char_size.
8973 (xg_frame_resized): Renamed from xg_resize_widgets. Remove all
8974 operations on widgets here. Just set frame size if needed.
8975 (flush_and_sync, x_wm_size_hint_off, xg_pack_tool_bar): New functions.
8976 (xg_frame_set_char_size): Call x_wm_size_hint_off before resizing.
8977 (x_wm_set_size_hint): Set size hints on the edit widget only, not
8978 the whole frame.
8979 (xg_create_tool_bar): Move attachment of the tool bar to
8980 xg_pack_tool_bar. Do not attach the tool bar if there are no items.
8981 (free_frame_tool_bar): Remove call to SET_FRAME_GARBAGED.
8982
89832008-03-01 Jason Rumney <jasonr@gnu.org>
8984
8985 * w32fns.c (w32_msg_pump): Disable debug code.
8986
89872008-03-01 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
8988
8989 * m/intel386.h [MAC_OSX || DARWIN]: Define NO_ARG_ARRAY if _LP64.
8990
89912008-02-29 Chong Yidong <cyd@stupidchicken.com>
8992
8993 * xdisp.c (next_overlay_string): Don't set
8994 overlay_strings_at_end_processed_p if we're currently reading from
8995 a display string.
8996
89972008-02-29 Stefan Monnier <monnier@iro.umontreal.ca>
8998
8999 * xdisp.c (get_overlay_strings_1): Fix typo.
9000
90012008-02-29 Chong Yidong <cyd@stupidchicken.com>
9002
9003 * xdisp.c (get_overlay_strings_1): Add missing argument type.
9004
90052008-02-28 Kenichi Handa <handa@ni.aist.go.jp>
9006
9007 * ftfont.c (ftfont_match): Explicitly set pixelsize in pattern.
9008
9009 * xdisp.c (display_mode_element): Cancel the previous change.
9010 (decode_mode_spec): Likewise.
9011 (handle_auto_composed_prop): Don't make composition if it->string
9012 is a string.
9013
90142008-02-27 Kim F. Storm <storm@cua.dk>
9015
9016 * lisp.h (GLYPH): Change type from int to struct with separate char
9017 and face_id members.
9018 (GLYPH_MASK_FACE, GLYPH_MASK_CHAR): Delete macros.
9019 (GLYPH_CHAR, GLYPH_FACE): Remove slow versions with frame arg.
9020 (FAST_GLYPH_CHAR, FAST_GLYPH_FACE): Rename macros to ...
9021 (GLYPH_CHAR, GLYPH_FACE): ... these. Change users.
9022 (FAST_MAKE_GLYPH, MAKE_GLYPH): Remove. Rewrite users to use ...
9023 (SET_GLYPH, SET_GLYPH_CHAR, SET_GLYPH_FACE): ... these macros instead.
9024 (GLYPH_CODE_CHAR, GLYPH_CODE_FACE, GLYPH_CODE_P)
9025 (GLYPH_CODE_CHAR_VALID_P, SET_GLYPH_FROM_GLYPH_CODE): New macros to
9026 handle new Lisp glyph code encoding, either an integer or a cons.
9027
9028 * disptab.h (GLYPH_SIMPLE_P): Rewrite.
9029 (GLYPH_ALIAS): Delete.
9030 (GLYPH_ALIAS_P, GLYPH_FOLLOW_ALIASES): Rewrite.
9031 (GLYPH_LENGTH, GLYPH_STRING): Use GLYPH_CHAR.
9032 (GLYPH_FROM_CHAR): Replace macro by ...
9033 (SET_GLYPH_FROM_CHAR): ... this macro. Change users.
9034
9035 * dispextern.h (CHAR_GLYPH_SPACE_P): Simplify.
9036 (GLYPH_FROM_CHAR_GLYPH): Replace macro by ...
9037 (SET_GLYPH_FROM_CHAR_GLYPH): ... this macro. Change users.
9038 (GLYPH_INVALID_P): New macro.
9039 (spec_glyph_lookup_face): Update prototype.
9040
9041 * dispnew.c (line_draw_cost): Adapt to new glyph type.
9042 (build_frame_matrix_from_leaf_window): Adapt to new glyph type and
9043 new glyph code encoding.
9044 (spec_glyph_lookup_face): No return value; update passed glyph instead.
9045 (init_display): Use SET_CHAR_GLYPH to initialize space_glyph.
9046
9047 * xdisp.c (get_next_display_element, next_element_from_display_vector):
9048 Adapt to new glyph type and new glyph code encoding.
9049
9050 * term.c (encode_terminal_code, produce_special_glyphs): Likewise.
9051
9052 * indent.c (current_column, current_column_1, Fmove_to_column)
9053 (compute_motion): Adapt to new glyph code encoding.
9054
9055 * msdos.c (IT_write_glyphs): Adapt to new glyph type.
9056
90572008-02-27 Chong Yidong <cyd@stupidchicken.com>
9058
9059 * process.c (wait_reading_process_output): Check for window
9060 changes caused by timers.
9061 Suggested by Johan Bockgård.
9062
90632008-02-27 Glenn Morris <rgm@gnu.org>
9064
9065 * emacs.c (USAGE1): Add `--disable-font-backend'.
9066
90672008-02-27 Stefan Monnier <monnier@iro.umontreal.ca>
9068
9069 * fileio.c (Finsert_file_contents): Don't reset undo_list if no change
9070 is made to the buffer.
9071
90722008-02-26 Stefan Monnier <monnier@iro.umontreal.ca>
9073
9074 * dispextern.h (face_at_buffer_position, face_for_overlay_string)
9075 (face_at_string_position):
9076 * xfaces.c (face_at_buffer_position, face_for_overlay_string)
9077 (face_at_string_position):
9078 * xdisp.c (display_string, next_overlay_change):
9079 * buffer.h (overlays_at):
9080 * buffer.c (overlays_at): Use EMACS_INT for buffer positions.
9081 Update callers.
9082
90832008-02-26 Chong Yidong <cyd@stupidchicken.com>
9084
9085 * editfns.c (Fformat): Doc fix.
9086
90872008-02-26 Juanma Barranquero <lekktu@gmail.com>
9088
9089 * font.c (Ffont_spec, Ffont_at): Fix typos in docstrings.
9090 (Ffont_put, Flist_families, Ffont_fill_gstring, Ffont_drive_otf)
9091 (Ffont_otf_alternates, Fquery_font): Doc fixes.
9092
90932008-02-25 Stefan Monnier <monnier@iro.umontreal.ca>
9094
9095 * buffer.c (Fbuffer_swap_text): New function.
9096 (syms_of_buffer): Defsubr it.
9097
90982008-02-25 Chong Yidong <cyd@stupidchicken.com>
9099
9100 * keyboard.c (command_loop_1): Revert 2006-10-09 change.
9101
91022008-02-25 Jason Rumney <jasonr@gnu.org>
9103
9104 * w32font.c (w32font_draw): Draw one character at a time when padding.
9105
91062008-02-25 Stefan Monnier <monnier@iro.umontreal.ca>
9107
9108 * window.c (Fdelete_window, Fadjust_window_trailing_edge):
9109 Handle a nil arg. Use run_window_configuration_change_hook.
9110 (delete_window, adjust_window_trailing_edge): Don't handle nil any more.
9111 (Fenlarge_window, Fshrink_window, Fset_window_configuration):
9112 Use run_window_configuration_change_hook.
9113
91142008-02-25 Kenichi Handa <handa@ni.aist.go.jp>
9115
9116 * xdisp.c (x_produce_glyphs): For a visible glyph, assure at least
9117 1-pixel width.
9118
91192008-02-25 Kenichi Handa <handa@ni.aist.go.jp>
9120
9121 * xdisp.c (fill_glyph_string): Pay attention to glyph->padding_p.
9122 (append_glyph): Set glyph->pixel_width and glyph->padding_p to 1
9123 if the glyph in the font is zero pixel with.
9124
9125 * dispextern.h (struct glyph_string): New member padding_p.
9126
9127 * w32font.c (w32font_draw): Pay attention to s->padding_p.
9128
9129 * ftxfont.c (ftxfont_draw): Pay attention to s->padding_p.
9130
9131 * xfont.c (xfont_draw): Pay attention to s->padding_p.
9132
9133 * xftfont.c (xftfont_draw): Pay attention to s->padding_p.
9134
9135 * font.c: If the font driver doesn't have `shape' function, return Qnil.
9136
91372008-02-25 Jason Rumney <jasonr@gnu.org>
9138
9139 * w32fns.c (enum_font_cb2): Don't use raster fonts for Unicode.
9140
91412008-02-24 Stefan Monnier <monnier@iro.umontreal.ca>
9142
9143 Allow fine-grained image-cache flushing.
9144 * dispextern.h (struct image): Add `dependencies' field.
9145 (clear_image_caches): Change arg to Lisp_Object.
9146 * image.c (make_image): Initialize `dependencies' field.
9147 (clear_image_cache): Change arg to allow fine-grained flushing.
9148 Perform the flush even if image-cache-eviction-delay is nil.
9149 (clear_image_caches): Change arg to Lisp_Object.
9150 (Fclear_image_cache): Expand meaning of the argument.
9151 (mark_image): Mark `dependencies' field.
9152 * xfaces.c (clear_face_cache): Adapt arg to call to clear_image_caches.
9153 (lface_hash): Use XHASH rather than XFASTINT.
9154 (face_at_buffer_position): Fix int -> EMACS_INT position.
9155 * xdisp.c (next_overlay_change): Fix int -> EMACS_INT position.
9156 (select_frame_for_redisplay): Remove code duplication.
9157 (redisplay_internal): Adapt arg to call to clear_image_caches.
9158
91592008-02-24 Dan Nicolaescu <dann@ics.uci.edu>
9160
9161 * s/vms4-0.h:
9162 * s/vms4-2.h:
9163 * s/vms4-4.h:
9164 * s/vms5-5.h: Remove, unused.
9165
9166 * s/irix5-2.h:
9167 * s/irix6-0.h:
9168 * s/riscos5.h:
9169 * s/mach-bsd4-3.h:
9170 * m/mips4.h: Remove files for obsolete systems.
9171
9172 * Makefile.in:
9173 * filelock.c:
9174 * unexmips.c:
9175 * m/hp9000s300.h:
9176 * m/iris4d.h:
9177 * s/aix3-1.h:
9178 * s/hpux.h:
9179 * s/msdos.h:
9180 * s/usg5-0.h:
9181 * s/usg5-2-2.h:
9182 * s/usg5-2.h:
9183 * s/usg5-3.h: Remove references to obsolete variables.
9184
9185 * s/irix5-0.h: Remove, move all the contents ...
9186 * s/irix6-5.h: ... here. Simplify.
9187 * config.in: Regenerate.
9188
91892008-02-24 Jason Rumney <jasonr@gnu.org>
9190
9191 * w32term.c (x_draw_glyph_string_background): Clear the background
9192 manually when cleartype is in use.
9193 (x_draw_glyph_string_foreground): Draw text transparently when
9194 cleartype is in use.
9195
9196 * w32font.c (w32font_text_extents): Avoid getting HDC and selecting
9197 a font into it unless we have to.
9198
91992008-02-19 Stefan Monnier <monnier@iro.umontreal.ca>
9200
9201 * intervals.h (INT_LISPLIKE): Remove. It may misfire.
9202 (NULL_INTERVAL_P, SET_INTERVAL_PARENT): Don't use it.
d6c952f8 9203
aac0c6e3
MR
92042008-02-18 Jason Rumney <jasonr@gnu.org>
9205
9206 * w32fns.c (Fw32_shell_execute): Encode parameters.
9207
92082008-02-09 Eli Zaretskii <eliz@gnu.org>
9209
9210 * fileio.c (syms_of_fileio) <insert-default-directory>: Doc fix.
9211
92122008-02-05 Juanma Barranquero <lekktu@gmail.com>
9213
9214 * unexhp9k800.c (read_header): Replace `legal' with `valid'.
9215
92162008-02-24 Ulrich Neumerkel <ulrich@complang.tuwien.ac.at> (tiny change)
9217
9218 * xterm.c (x_set_offset): Don't change the gravity if
9219 CHANGE_GRAVITY is -1.
9220
92212008-02-23 Chong Yidong <cyd@stupidchicken.com>
9222
9223 * fileio.c (auto_save_error_occurred): New var.
9224 (auto_save_error): Set it.
9225 (Fdo_auto_save): Don't overwrite the error message if an auto-save
9226 error occurred.
9227
92282008-02-23 Eli Zaretskii <eliz@gnu.org>
9229
9230 * w32.c (globals_of_w32): Add initializations for
9231 g_b_init_get_sid_sub_authority and
9232 g_b_init_get_sid_sub_authority_count.
9233
92342008-02-22 Stefan Monnier <monnier@iro.umontreal.ca>
9235
9236 * font.c (font_match_xlfd, font_check_xlfd_parse): New funs.
9237 (font_parse_xlfd): Use them for sanity check.
9238 (Finternal_set_font_style_table): Make sure the table is bijective.
9239
9240 Consolidate the image_cache to the terminal struct.
9241 * termhooks.h (P_): Remove redundant def.
9242 (struct terminal): New field `image_cache'.
9243 * frame.h (FRAME_IMAGE_CACHE): New macro. Use it everywhere in place
9244 of FRAME_X_IMAGE_CACHE.
9245 * xterm.h (struct x_display_info): Remove image_cache field.
9246 (FRAME_X_IMAGE_CACHE): Remove. Use FRAME_IMAGE_CACHE instead.
9247 * w32term.h (struct w32_display_info): Remove image_cache field.
9248 (FRAME_X_IMAGE_CACHE): Remove. Use FRAME_IMAGE_CACHE instead.
9249 * macterm.h (struct mac_display_info): Remove image_cache field.
9250 (FRAME_X_IMAGE_CACHE): Remove. Use FRAME_IMAGE_CACHE instead.
9251 * xterm.c (x_term_init):
9252 * w32term.c (w32_term_init):
9253 * macterm.c (mac_term_init): Set the image_cache in the terminal.
9254 * dispextern.h (clear_image_cache, forall_images_in_image_cache):
9255 Remove declarations.
9256 (clear_image_caches, mark_image_cache): New declarations.
9257 * xfaces.c (clear_face_cache):
9258 * xdisp.c (redisplay_internal): Use clear_image_caches.
9259 * image.c (clear_image_cache): Don't check that a frame is on
9260 a window-system before checking if it shares the same cache.
9261 (clear_image_caches): New function.
9262 (Fclear_image_cache): Use it.
9263 (mark_image): Move from allo.c.
9264 (mark_image_cache): Move from alloc.c and forall_images_in_image_cache.
9265 * alloc.c (mark_image, mark_image_cache): Move to image.c.
9266 (mark_object): Don't call mark_image_cache for frames.
9267 (mark_terminals): Call mark_image_cache.
9268
9269 * lisp.h (Fdelete_terminal): Declare.
9270
9271 * charset.h (CHECK_CHARSET, CHECK_CHARSET_GET_ID)
9272 (CHECK_CHARSET_GET_ATTR): Don't use the inexistent return value of
9273 wrong_type_argument.
9274
92752008-02-22 Kenichi Handa <handa@ni.aist.go.jp>
9276
9277 * Makefile.in (lisp): Remove devanagari.el, kannada.el,
9278 malayalam.el, and tamil.el. Add sinhala.el.
9279
92802008-02-21 Stefan Monnier <monnier@iro.umontreal.ca>
9281
9282 * xterm.c (x_connection_closed): Consolidate identical tests.
9283 (x_delete_terminal): Don't crash if called via x_connection_closed.
9284
92852008-02-21 Kenichi Handa <handa@ni.aist.go.jp>
9286
9287 * xdisp.c (decode_mode_spec): New arg string.
9288 (display_mode_element): Adjust for the above change.
9289
92902008-02-19 Stefan Monnier <monnier@iro.umontreal.ca>
9291
9292 * callint.c (Fcall_interactively): Use AREF.
9293
92942008-02-18 Stefan Monnier <monnier@iro.umontreal.ca>
9295
9296 * font.c (font_unparse_xlfd): Don't ignore integer pixel size specs.
9297
92982008-02-18 Jan Djärv <jan.h.d@swipnet.se>
9299
9300 * xfns.c (Fx_show_tip): Set string to " " if empty.
9301
93022008-02-17 Dan Nicolaescu <dann@ics.uci.edu>
9303
9304 * callint.c (syms_of_callint): Initialize Vmark_even_if_inactive
9305 with Qt.
9306
93072008-02-17 Kenichi Handa <handa@m17n.org>
9308
9309 * ftfont.c (ftfont_shape): Return Lispy number.
9310
9311 * xfaces.c (prepare_face_for_display): Use display_info->font->fid
9312 for GCs.
9313 (Finternal_set_font_selection_order): Call font_update_sort_order
9314 only when enable_font_backend is set.
9315 (realize_x_face): Set face->font_info to that of default face only
9316 when enable_font_backend is set.
9317
9318 * xdisp.c (handle_composition_prop): Set it->c to the fist
9319 character of the composed region.
9320 (fill_composite_glyph_string): Set base_face->font_info to
9321 s->font_info. Get a face for ascii from base_face->ascii_face.
9322 (BUILD_COMPOSITE_GLYPH_STRING): Call fill_composite_glyph_string
9323 with a face already decided.
9324 (x_produce_glyphs): Be sure to set it->ascent and it->descent to
9325 non-negative.
9326 (x_produce_glyphs): If the composition method is ..._WITH_GLYPH_STRING,
9327 call font_prepare_composition unconditionally.
9328
9329 * xfns.c (x_make_gc): Use the default font id of the frame for GCs.
9330
9331 * xterm.h (struct x_display_info): New member font.
9332
9333 * xterm.c (x_set_cursor_gc): Use display_info->font->fid for GCs.
9334 (x_set_mouse_face_gc, x_new_font): Likewise.
9335 (x_term_init): Setup display_info->font.
9336 (x_delete_terminal): Free display_info->font.
9337
9338 * xfont.c (xfont_draw): Use BLOCK_INPUT and UNBLOCK_INPUT.
9339
9340 * ftxfont.c (ftxfont_default_fid): Delete it.
9341 (ftxfont_open): Set xfont->fid to 0.
9342 (ftxfont_end_for_frame): Clear data specific to the frame and the
9343 font-driver.
9344
9345 * xftfont.c (xftfont_default_fid): Delete it.
9346 (xftfont_open): Set xfont->fid to 0.
9347
9348 * fontset.c (FONTSET_OBJLIST): New macro.
9349 (fontset_find_font): Update font-object list of the fontset.
9350 (free_realized_fontset): New function.
9351 (free_face_fontset): Call free_realized_fontset.
9352 (Ffont_info): Call font_close_object only when enable_font_backend
9353 is set.
9354
9355 * font.c [HAVE_X_WINDOWS]: Include xterm.h.
9356 [HAVE_NTGUI]: Include w32term.h.
9357 [MAC_OS]: Include macterm.ch.
9358 (font_otf_ValueRecord): Use make_number.
9359 (font_finish_cache): Fix handling of reference count.
9360 (font_clear_cache): Update num_fonts.
9361 (font_open_entity): Update smallest_char_width and
9362 smallest_font_height of the frame.
9363 (font_close_object): Update num_fonts.
9364 (Fclear_font_cache): Fix finding the target cache data.
9365
93662008-02-16 Glenn Morris <rgm@gnu.org>
9367
9368 * fontset.c (Finternal_char_font): Fix compilation warning.
9369
93702008-02-16 Eli Zaretskii <eliz@gnu.org>
9371
9372 * w32.c (init_user_info): Use TOKEN_USER and TOKEN_PRIMARY_GROUP
9373 instead of char arrays. Enlarge the size of array passed to
9374 get_token_information.
9375
9376 * font.c (Ffont_fill_gstring, Fget_font_glyphs): Fix compilation
9377 warnings.
9378
93792008-02-15 Dan Nicolaescu <dann@ics.uci.edu>
9380
9381 * .gdbinit: Don't set `args', it breaks gdb --args.
9382
93832008-02-14 Stefan Monnier <monnier@iro.umontreal.ca>
9384
9385 * fileio.c (Finsert_file_contents): Adjust offsets when replacing
9386 within a narrowed buffer.
9387
93882008-02-14 Kenichi Handa <handa@ni.aist.go.jp>
9389
9390 * coding.c (decode_coding_object, encode_coding_object):
9391 Preserve Vdeactivate_mark. Delete unnecessary call of Fcurrent_buffer.
9392
93932008-02-12 Stefan Monnier <monnier@iro.umontreal.ca>
9394
9395 * coding.c (coding_set_destination): Use BEG_BYTE rather than
9396 hardcoding 1.
9397 (detect_coding_system):
9398 * lisp.h (detect_coding_system, chars_in_text, multibyte_chars_in_text)
9399 (string_char_to_byte, string_byte_to_char, insert_from_gap):
9400 * insdel.c (insert_from_gap):
9401 * fns.c (string_char_byte_cache_charpos, string_char_byte_cache_bytepos)
9402 (string_char_to_byte, string_byte_to_char, string_make_multibyte)
9403 (string_to_multibyte):
9404 * character.c (chars_in_text, multibyte_chars_in_text):
9405 * fileio.c (Finsert_file_contents): Use EMACS_INT for buffer positions.
9406
9407 * character.h (FETCH_STRING_CHAR_ADVANCE)
9408 (FETCH_STRING_CHAR_AS_MULTIBYTE_ADVANCE)
9409 (FETCH_STRING_CHAR_ADVANCE_NO_CHECK): Use SDATA and SREF.
9410 (DEC_POS, BUF_DEC_POS): Use BEG_BYTE rather than hardcoding 1.
9411
9412 * casefiddle.c (casify_region): Only call after-change and composition
9413 functions on the part of the region that was changed.
9414
9415 * keyboard.c (read_avail_input):
9416 * frame.c (Fdelete_frame): Call Fdelete_terminal.
9417
94182008-02-11 Stefan Monnier <monnier@iro.umontreal.ca>
9419
9420 * buffer.c (clone_per_buffer_values, reset_buffer_local_variables)
9421 (Fbuffer_local_value, Fbuffer_local_variables): Don't forget undo_list.
9422
94232008-02-11 Juanma Barranquero <lekktu@gmail.com>
9424
9425 * w32menu.c (push_submenu_start, push_submenu_end)
9426 (push_left_right_boundary, push_menu_pane, push_menu_item):
9427 * keyboard.c (read_key_sequence): Don't pass args with side effects
9428 to AREF, it fails when compiling with -DENABLE_CHECKING.
9429
94302008-02-11 Kenichi Handa <handa@ni.aist.go.jp>
9431
9432 * Makefile.in (${lispsource}international/charprop.el):
9433 Delete this target.
9434
9435 * search.c (boyer_moore): Fix incorrect synching of the trunk and
9436 emacs-unicode-2.
9437
94382008-02-11 Stefan Monnier <monnier@iro.umontreal.ca>
9439
9440 * terminal.c (Fdelete_terminal): Clean up the `force' path.
9441
94422008-02-10 Stefan Monnier <monnier@iro.umontreal.ca>
9443
9444 * frame.c (Qnoelisp): New symbol.
9445 (syms_of_frame): Initialize it.
9446 (Fdelete_frame): Use it to distinguish a mere `force' passed from some
9447 harmless Elisp code, from a strong `force' from x_connection_closed.
9448 * frame.h (Qnoelisp): Declare.
9449 * xterm.c (x_connection_closed): Pass `noelisp'.
9450
9451 * lisp.h (struct Lisp_Misc_Any, struct Lisp_Marker)
9452 (struct Lisp_Overlay, struct Lisp_Kboard_Objfwd)
9453 (struct Lisp_Save_Value, struct Lisp_Free): Use enum Lisp_Misc_Type
9454 rather than `int' for the type of `type'.
9455
94562008-02-10 Dan Nicolaescu <dann@ics.uci.edu>
9457
9458 * s/gnu-linux.h: Remove support for non-ELF and linux-1.x.
9459
9460 * Makefile.in (GNUC): Remove support for gcc-1.x.
9461
94622008-02-10 Richard Stallman <rms@gnu.org>
9463
9464 * lisp.h (ASET): Use AREF, not ASLOT.
9465
94662008-02-10 Stefan Monnier <monnier@iro.umontreal.ca>
9467
9468 * lisp.h (ASET): Check bounds.
9469
94702008-02-10 Glenn Morris <rgm@gnu.org>
9471
9472 * buffer.c (mode-name): Doc fix.
9473
94742008-02-09 Dan Nicolaescu <dann@ics.uci.edu>
9475
9476 * Makefile.in:
9477 * emacs.c:
9478 * gmalloc.c:
9479 * keyboard.c:
9480 * lisp.h:
9481 * m/ibm370aix.h:
9482 * process.c:
9483 * regex.c:
9484 * s/hpux.h:
9485 * sysdep.c:
9486 * sysselect.h:
9487 * systty.h:
9488 * unexec.c:
9489 * w32term.c:
9490 * xsmfns.c:
9491 * xterm.c: Remove code that deals with obsolete variables.
9492
9493 * s/msdos.h (DONT_NEED_ENVIRON): Don't define.
9494
9495 * ecrt0.c: Replace the DONT_NEED_ENVIRON test with MSDOS test,
9496 nothing else needs it anymore.
9497
94982008-02-09 Eli Zaretskii <eliz@gnu.org>
9499
9500 * buffer.h (FETCH_CHAR_AS_MULTIBYTE): Use unibyte_to_multibyte_table
9501 instead of unibyte_char_to_multibyte.
9502
95032008-02-09 Dan Nicolaescu <dann@ics.uci.edu>
9504
9505 * s/gnu-linux.h: Remove commented out code.
9506
9507 * unexec.c: Remove references to obsolete variable COFF_ENCAPSULATE.
9508
9509 * Makefile.in: Update what RMS says about using autoconf.
9510 (C_COMPILER, COFF_ENCAPSULATE, MAKE_PARALLEL): Remove obsolete variable.
9511 (C_SWITCH_MACHINE_1, C_SWITCH_SYSTEM_1, C_SWITCH_SITE_1)
9512 (C_SWITCH_X_SITE_1, C_SWITCH_X_MACHINE_1)
9513 (C_SWITCH_X_SYSTEM_1): Move invariant code outside conditional.
9514
95152008-02-08 Stefan Monnier <monnier@iro.umontreal.ca>
9516
9517 * keymap.c (Fkey_description): Move side effect outside of macro call.
9518
9519 * xfaces.c (Finternal_make_lisp_face):
9520 * keyboard.c (add_command_key, parse_menu_item): Use ASET.
9521
9522 * fontset.c (free_face_fontset): Use FONTSET_FROM_ID.
9523 (syms_of_fontset): Use ASET.
9524
9525 * fns.c (concat): Move side effect outside of macro call.
9526 (hash_clear): Use ASET.
9527
95282008-02-08 Richard Stallman <rms@gnu.org>
9529
9530 * frame.c (Fdelete_frame): If FORCE, don't call hooks.
9531 If FORCE, and frame has a surrogate minibuffer for another frame,
9532 delete the other frame first.
9533
95342008-02-07 Timo Savola <timo.savola@iki.fi>
9535
9536 * xterm.c (x_detect_focus_change): Handle embed client message.
9537 (handle_one_xevent): Ditto.
9538 (handle_one_xevent): If embedded and we get a button press/release,
9539 request focus.
9540 (xembed_set_info, xembed_send_message): New functions.
9541 (x_make_frame_visible): Call xembed_set_info if embedded.
9542 (x_make_frame_invisible): Call xembed_set_info if embedded.
9543 (x_term_init): Initialize Xatom_XEMBED.
9544 (x_make_frame_visible): Check for FRAME_X_EMBEDDED_P also.
9545 (x_iconify_frame): Ditto.
9546
9547 * xterm.h (struct x_display_info): Add AtomXatom_XEMBED.
9548 (enum xembed_info, enum xembed_message, enum xembed_focus)
9549 (enum xembed_modifier, enum xembed_accelerator): New.
9550 (xembed_set_info, xembed_send_message): Declare.
9551 (FRAME_X_EMBEDDED_P): New.
9552
9553 * gtkutil.c (xg_create_frame_widgets): If frame is embedded, call
9554 gtk_plug_new.
9555
9556 * xfns.c (Fx_create_frame): Do not override the explicitly set parent
9557 window ID of a frame.
9558 (x_window): Reparent frame if embedded.
9559 (Fx_create_frame): Don't set border width if embedded.
9560
9561 * emacs.c (USAGE3): Add --parent-id.
9562 (standard_args): Ditto.
9563
95642008-02-07 Jan Djärv <jan.h.d@swipnet.se>
9565
9566 * coding.c (DECODE_EMACS_MULE_COMPOSITION_CHAR): Use "do...while (0)".
9567
95682008-02-07 Jim Meyering <meyering@redhat.com>
9569
9570 Use "do...while (0)", not "if (1)...else" in macro definitions.
9571 The latter provokes a warning from gcc about the empty else, when
9572 followed by ";". Also, without that trailing semicolon, it would
9573 silently swallow up any following statement.
9574 * syntax.h (SETUP_SYNTAX_TABLE)
9575 (SETUP_SYNTAX_TABLE_FOR_OBJECT): Likewise.
9576 * buffer.h (DECODE_POSITION): Likewise.
9577 * character.h (FETCH_STRING_CHAR_ADVANCE): Likewise.
9578 (FETCH_STRING_CHAR_AS_MULTIBYTE_ADVANCE): Likewise.
9579 (FETCH_STRING_CHAR_ADVANCE_NO_CHECK): Likewise.
9580 (FETCH_CHAR_ADVANCE): Likewise.
9581 (FETCH_CHAR_ADVANCE_NO_CHECK): Likewise.
9582
95832008-02-07 Jim Meyering <meyering@redhat.com>
9584
9585 * lread.c [lint]: Don't include <sys/inode.h>.
9586
95872008-02-07 Stefan Monnier <monnier@iro.umontreal.ca>
9588
9589 * xselect.c (x_handle_dnd_message):
9590 * xmenu.c (digest_single_submenu, xmenu_show):
9591 * xdisp.c (with_echo_area_buffer_unwind_data)
9592 (format_mode_line_unwind_data, unwind_format_mode_line)
9593 (display_menu_bar):
9594 * eval.c (Ffetch_bytecode):
9595 * doc.c (store_function_docstring):
9596 * ccl.c (resolve_symbol_ccl_program, ccl_get_compiled_code)
9597 (Fccl_execute, Fccl_execute_on_string, Fregister_code_conversion_map):
9598 * buffer.c (add_overlay_mod_hooklist): Use ASET.
9599
96002008-02-07 Kenichi Handa <handa@m17n.org>
9601
9602 * ftxfont.c (ftxfont_open): Don't set
9603 dpyinfo->smallest_font_height and dpyinfo->smallest_char_width to 0.
9604
9605 * ftfont.c (ftfont_open): Fix previous change.
9606
96072008-02-06 Jason Rumney <jasonr@gnu.org>
9608
9609 * w32font.c (w32font_text_extents): Fill in lbearing metric.
9610 Use cached metrics for ASCII characters.
9611 (w32font_open_internal): Don't set font's owning_frame.
9612 Cache metrics for ASCII characters.
9613
9614 * w32font.h (struct w32font_info): Add ascii_metrics.
9615 Remove owning_frame.
9616
96172008-02-06 Kenichi Handa <handa@ni.aist.go.jp>
9618
9619 * xdisp.c (x_produce_glyphs): Don't set it->ascent and it->descent
9620 to negative value.
9621
9622 * ftxfont.c (ftxfont_draw): Use s->font_info, not face->font_info.
9623
9624 * ftfont.c (ftfont_open): Fix calculation of font->font.average_width.
9625
9626 * charset.c (syms_of_charset): Set QCtest and Qeq.
9627
96282008-02-06 Stefan Monnier <monnier@iro.umontreal.ca>
9629
9630 * process.c (Fstart_process):
9631 * callproc.c (Fcall_process): Handle the case where
9632 Funhandled_file_name_directory returns nil.
9633
9634 * font.h (enum lgstring_indices, enum lglyph_indices): New enums.
9635 (LGSTRING_SLOT, LGSTRING_SET_SLOT): New macros.
9636 * font.c (check_gstring): Use them and AREF to access the vector before
9637 we know it's really a gstring.
9638 (Ffont_shape_text): Fix typo.
46e722a9 9639 (Ffont_shape_text, Ffont_otf_alternates): Fix up int/Lisp_Object mixups.
aac0c6e3
MR
9640
9641 * composite.h (Fcompose_region_internal, Fcompose_string_internal):
9642 Declare.
9643
9644 * chartab.c (make_sub_char_table): Remove noop-yet-incorrect statement.
9645
96462008-02-05 Jason Rumney <jasonr@gnu.org>
9647
9648 * w32font.c (w32font_open_internal): Fill min_width with tmAveCharWidth.
9649 Set smallest_font_height and smallest_char_width in display info.
9650
96512008-02-05 Kenichi Handa <handa@ni.aist.go.jp>
9652
9653 * coding.c (decode_eol): Pay attention to coding->dst_multibyte.
9654
96552008-02-05 Miles Bader <miles@gnu.org>
9656
9657 * xfaces.c (get_lface_attributes, merge_named_face)
9658 (lookup_named_face, lookup_derived_face, realize_named_face):
9659 Revert 2008-02-01 change by cyd@stupidchicken.com.
9660
96612008-02-04 Kenichi Handa <handa@ni.aist.go.jp>
9662
9663 * fontset.c (Ffontset_info): Handle the case of inhibitting the
9664 fallback fonts.
9665 (Ffontset_info) [USE_FONT_BACKEND]: Fix getting of opened font names.
9666
96672008-02-04 Jason Rumney <jasonr@gnu.org>
9668
9669 * w32font.c (w32font_open_internal): Use font_unparse_fcname to
9670 set full_name.
9671 (w32font_open_internal): Use xmalloc, xrealloc, xfree.
9672
96732008-02-03 Jason Rumney <jasonr@gnu.org>
9674
9675 * makefile.w32-in (OBJ1): Include font.o here.
9676 (FONTOBJ) [USE_FONTBACKEND]: Instead of here.
9677
96782008-02-02 Jason Rumney <jasonr@gnu.org>
9679
9680 * makefile.w32-in (temacs): Bump EMHEAP to 21.
9681
96822008-02-01 Jason Rumney <jasonr@gnu.org>
9683
9684 * s/cygwin.h: Define VIRT_ADDR_VARIES.
9685
9686 * puresize.h [VIRT_ADDR_VARIES]: Don't include CYGWIN in condition.
9687
96882008-02-01 Andreas Schwab <schwab@suse.de>
9689
9690 * Makefile.in (shortlisp, lisp): Update for rename of
9691 ../lisp/language/myanmar.el.
9692
96932008-02-01 Chong Yidong <cyd@stupidchicken.com>
9694
9695 * xfaces.c (get_lface_attributes): Delete function.
9696 (merge_named_face, lookup_named_face, lookup_derived_face)
9697 (realize_named_face): Call lface_from_face_name directly, and use
9698 the fact that merge_face_vectors does not alter its FROM argument.
9699
97002008-02-01 Jason Rumney <jasonr@gnu.org>
9701
9702 * w32term.c (w32_read_socket) <WM_CHAR>: Decode non-Unicode
9703 input in the default locale. Handle non-Unicode multibyte input.
9704
97052008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
9706
9707 * fontset.c (reorder_font_vector): Exclude nil elements from the
9708 font group. Don't try multiple fonts.
9709 (fontset_font): Adjust for the above change.
9710 (Finternal_char_font): Return nil if the found font doesn't
9711 contain the character ch.
9712
9713 * Makefile.in (lisp, shortlisp): Add cham.el.
9714
97152008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
9716
9717 * font.h (FONTP): Make it return 1 also for a font-object.
9718
9719 * .gdbinit (xfontset): New function.
9720
9721 * font.c (font_find_for_lface): Check if the character C is
9722 supported or not only for the first font.
9723
9724 * fontset.c (reorder_font_vector): Fix typo.
9725 (fontset_find_font): Don't add a font-spec specifying a script.
9726 Use 0 (not Qt) for the indication of empty font-group. Change the
9727 format of RFONT-DEF. Return Qt if no font in the font-group
9728 support the character.
9729 (fontset_font): Adjust for the above change. If no font was
9730 found the character, remember that.
9731 (face_for_char): Adjust for the change of RFONT-DEF.
9732 (Fset_fontset_font): Allow nil for FONT-SPEC to explicitly specify
9733 no font for the target.
9734 (Finternal_char_font): Adjust for the change of RFONT-DEF.
9735
97362008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
9737
9738 * font.c (font_load_for_face): Handle the case that the font in
9739 face->lface is a string.
9740
97412008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
9742
9743 * xfaces.c (set_lface_from_font_and_fontset): Set the fontname in lface.
9744
97452008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
9746
9747 * xfaces.c (Finternal_set_lisp_face_attribute) [USE_FONT_BACKEND]:
9748 Fix previous change. If the frame is not on a window system,
9749 signal an error.
9750
97512008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
9752
9753 * coding.c (decode_coding_object, encode_coding_object): Adjust
9754 marker positions after conversion.
9755
9756 * lisp.h (struct Lisp_Marker): New member need_adjustment.
9757
97582008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
9759
9760 * font.c (font_find_for_lface): Fix the handling of the return
9761 value of font_has_char.
9762 (Ffont_shape_text): Fix previous change.
9763
9764 * fontset.c (FONTSET_REF_AND_RANGE): Delete it.
9765 (fontset_ref_and_range): Delete it.
9766 (fontset_find_font): Call char_table_ref_and_range instead of
9767 FONTSET_REF_AND_RANGE.
9768 (make_fontset): Don't setup font groups of Latin here.
9769 (Fset_fontset_font): Don't overwrite the setting of FONTSET_ASCII.
9770 (new_fontset_from_font): Make the specified font the default for
9771 all Latin characters.
9772
97732008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
9774
9775 * xfaces.c (Finternal_set_lisp_face_attribute): Check if the frame
9776 is on a window system before accessing the fontset of the frame.
9777
97782008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
9779
9780 * Makefile.in (lisp, shortlisp): Add kherm.el and myanmar.el.
9781
9782 * ftfont.c (ftfont_driver): Set ftfont_shape in ftfont_driver only
9783 when both HAVE_M17N_FLT and HAVE_LIBOTF are defined.
9784
9785 * font.c (Ffont_shape_text): If the font driver doesn't have a
9786 shaper function, make zero-width glyphs to have at least one-pixel
9787 width. Fix setting of `to' field of glyphs.
9788
97892008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
9790
9791 * ftfont.c (ftfont_drive_otf): Fix setting of FROM and TO slots of
9792 glyphs.
9793
9794 * font.h (struct font_driver): Improve docstring of member `shape'.
9795
97962008-02-01 Kenichi Handa <handa@m17n.org>
9797
9798 * composite.c (syms_of_composite): Fix docstring of
9799 auto-composition-function.
9800
9801 * font.h (LGLYPH_SIZE): New macro.
9802
9803 * font.c (Ffont_fill_gstring): Stop filling when a character not
9804 supported by the font is found.
9805 (Ffont_shape_text): When a shape callback function returns nil,
9806 try at most two more times with larger gstring.
9807 (Ffont_at): Fix getting of w. Call font_at with correct 5th argument.
9808
9809 * xdisp.c (handle_auto_composed_prop): Change the argument to
9810 auto-composition-function.
9811
9812 * ftfont.c (ftfont_encode_char): Use the macro FONT_INVALID_CODE.
9813 (ftfont_shape_by_flt): If an element of lgstring is nil, make a
9814 Lispy glyph and store it in the lgstring.
9815
9816 * xfont.c (xfont_encode_char): Use the macro FONT_INVALID_CODE.
9817
9818 * xftfont.c (xftfont_encode_char): Use the macro FONT_INVALID_CODE.
9819
98202008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
9821
9822 * font.c (Ffont_shape_text): Avoid unnecessary composition.
9823
9824 * fontset.c (Vfont_encoding_charset_alist): New variable.
9825 (syms_of_fontset): DEFVAR it.
9826 (reorder_font_vector, fontset_find_font): Optimize for the case of
9827 no need of reordering.
9828 (face_for_char): Map the charset property by
9829 Vfont_encoding_charset_alist.
9830
98312008-02-01 Jason Rumney <jasonr@gnu.org>
9832
9833 * w32font.c (logfonts_match): Don't check adstyle here.
9834 (font_matches_spec): Check here against physical font instead.
9835 (add_font_entity_to_list): Avoid some substitutions.
9836
9837 * font.c (font_parse_fcname): Default weight and slant to normal.
9838 (font_score): Prefer normal fonts if weight or slant unspecified.
9839 (font_score) [WINDOWSNT]: Scale weight difference down to closer
9840 match freetype scores.
9841
98422008-02-01 Jason Rumney <jasonr@gnu.org>
9843
9844 * w32font.c (w32font_text_extents): Don't use the frame stored in the
9845 font, as it may have been deleted.
9846 (w32_enumfont_pattern_entity): Map generic family to adstyle using
9847 most common hyphenless variation.
9848 (logfonts_match): Check generic family.
9849 (font_matches_spec): Don't check generic family here.
9850 (fill_in_logfont): Set generic family based on adstyle.
9851
9852 * w32font.h (w32font_get_cache): Update declaration.
9853
98542008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
9855
9856 * ftfont.c (ftfont_get_cache): Adjust the argument type.
9857
9858 * frame.c (x_set_font_backend): Don't call Fclear_font_cache.
9859 If none of the new drivers are available, call font_update_drivers
9860 with the old drivers.
9861
9862 * w32font.c (w32font_get_cache): Adjust the argument type.
9863
9864 * xfont.c (xfont_get_cache): Adjust the argument type.
9865
9866 * font.h (struct font_driver): Change argument type of get_cache.
9867
9868 * xftfont.c (xftfont_start_for_frame): Delete prototype.
9869
9870 * font.c (Ffont_get): Fix arguments to Fassoc.
9871 (font_prepare_cache, font_finish_cache, font_get_cache): New functions.
9872 (font_clear_cache): New function.
9873 (font_list_entities, font_matching_entity): Use font_get_cache.
9874 (font_update_drivers): Call font_clear_cache when finishing a driver.
9875
9876 * fontset.c (fontset_find_font): Fix previous change.
9877
98782008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
9879
9880 * xterm.c (x_check_font) [USE_FONT_BACKEND]: Don't access
9881 dpyinfo->font_table.
9882 (x_delete_display) [USE_FONT_BACKEND]: Likewise.
9883 (x_delete_terminal) [USE_FONT_BACKEND]: Likewise.
9884
9885 * font.c (font_at): Handle the case that the arg C is negative.
9886 Handle the unibyte case.
9887 (Ffont_at): Call font_at with the arg C -1.
9888
9889 * xdisp.c (handle_auto_composed_prop): Don't get a character at
9890 the position here, and call font_at with the arg C -1.
9891 Don't check the range of the existing composition at the point.
9892
98932008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
9894
9895 * fontset.c (fontset_add): New args charset_id and family.
9896 Change caller.
9897 (load_font_get_repertory, fontset_find_font): Assume that
9898 font_spec is always a font-spec object.
9899 (Fset_fontset_font): Always store a font-spec object in a fontset.
9900
9901 * xdisp.c (handle_auto_composed_prop): Use Fget_text_property
9902 instead of get_property_and_range.
9903
99042008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
9905
9906 * xftfont.c (struct xftfont_info): Delete the member ft_face.
9907 (xftfont_open): Don't keep locking face.
9908 (xftfont_close): Don't unlock face.
9909 (xftfont_anchor_point, xftfont_shape): Lock and unlock face.
9910
9911 * fontset.c (fontset_find_font): Don't prefer a font of
9912 supplementary charset.
9913
99142008-02-01 Kenichi Handa <handa@m17n.org>
9915
9916 * ftfont.c (struct OpenTypeSpec): Rename members script_tag to
9917 script, langsys_tag to langsys, new member script.
9918 (OTF_TAG_STR): Terminate by '\0'.
867d4bb3 9919 (ftfont_get_open_type_spec): If :otf prop is spec, limit the
aac0c6e3
MR
9920 listing to the script specified in that property. Fix arg to
9921 OTF_check_features.
9922
99232008-02-01 Jason Rumney <jasonr@gnu.org>
9924
9925 * w32font.h: New file.
9926
9927 * w32font.c: Include it.
9928 (struct w32font_info): Add owning_frame field. Move to w32font.h.
9929 (w32font_open): Set owning_frame.
9930 (w32font_text_extents): Use owning_frame.
9931 (struct font_callback_data): Add opentype_only field.
9932 (add_font_entity_to_list): Use it to filter fonts.
9933 Don't check against full name.
9934 (w32font_list_internal): New function.
9935 (w32font_list): Use it.
9936 (w32font_match_internal): New function.
9937 (w32font_match): Use it.
9938 (w32font_open_internal): New function.
9939 (w32font_open): Use it.
9940 (w32font_get_cache, w32font_close, w32font_has_char)
9941 (w32font_encode_char, w32font_text_extents, w32font_draw):
9942 Make non-static.
9943
9944 * makefile.w32-in (w32font.o): Depend on w32font.h.
9945
99462008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
9947
9948 * charset.c (Fdefine_charset_internal): Record a supplementary
9949 charset at the tail of Vcharset_order_list.
9950
9951 * font.c (Ffont_shape_text): Fix the return value.
9952
9953 * ftfont.c (OTF_SYM_TAG, OTF_TAG_STR): Fix argument names.
9954
9955 * xdisp.c (handle_auto_composed_prop): Fix previous change.
9956
99572008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
9958
9959 * ftfont.c (struct OpenTypeSpec): New struct.
9960 (OTF_SYM_TAG, OTF_TAG_STR): New macros.
9961 (ftfont_get_open_type_spec): New function.
9962 (ftfont_list) [HAVE_LIBOTF]: Check otf-spec property.
9963
9964 * lread.c (read1): Redo the previous change with checking Vpurify_flag.
9965
99662008-02-01 Jason Rumney <jasonr@gnu.org>
9967
9968 * w32font.c (add_font_entity_to_list): Compare only the beginning
9969 of full name.
9970
99712008-02-01 Kenichi Handa <handa@m17n.org>
9972
9973 * xdisp.c (handle_auto_composed_prop): Simplify the code.
9974 Never return HANDLED_RECOMPUTE_PROPS.
9975
99762008-02-01 Kenichi Handa <handa@m17n.org>
9977
9978 * font.c (font_gstring_produce): Delete it.
9979
9980 * composite.h (COMPOSITION_METHOD):
9981 Handle COMPOSITION_WITH_GLYPH_STRING.
9982
99832008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
9984
9985 * xfont.c (Qx): Delete.
9986 (syms_of_xfont): Don't initialize Qx.
9987
9988 * composite.h (enum composition_method):
9989 Define COMPOSITION_WITH_GLYPH_STRING unconditionally.
9990
99912008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
9992
9993 * xfaces.c [HAVE_WINDOW_SYSTEM]: Include "font.h" unconditionally.
9994 (choose_face_font): Accept new form of font-spec.
9995
9996 * frame.h (font_driver_list): Declare it unconditionally.
9997 (struct frame): Define members font_driver_list and font_data_list
9998 unconditionally.
9999
10000 * fontset.c: Include "font.h" unconditionally.
10001 (generate_ascii_font_name): Use font_parse_xlfd and font_unparse_xlfd.
10002 (Fset_fontset_font): Accept a font-spec object.
10003
10004 * font.c (font_unparse_xlfd): If pixel_size is zero, make the
10005 PIXEL_SIZE part a wild card.
10006
10007 * dispextern.h (struct glyph_string): Define members clip and
10008 num_clips unconditionally.
10009 (struct face): Define members font_info and extra unconditionally.
10010
10011 * ftfont.c (ftfont_open): Set members maybe_otf and otf of
10012 ftfont_info only when HAVE_LIBOTF is defined.
10013
100142008-02-01 Andreas Schwab <schwab@suse.de>
10015
10016 * xdisp.c (back_to_previous_visible_line_start): Fix type of beg
10017 and end.
10018
100192008-02-01 Jason Rumney <jasonr@gnu.org>
10020
10021 * w32font.c (w32font_driver): Add new fields.
10022
100232008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
10024
10025 * Makefile.in (ALL_CFLAGS): Add @M17N_FLT_CFLAGS@.
10026 (FONTSRC, FONTOBJ) [HAVE_WINDOW_SYSTEM]: Set them unconditionally.
10027 (LIBES): Add @M17N_FLT_CFLAGS@.
10028
10029 * composite.c (compose_text): Don't treat the new style
10030 composition specially.
10031
10032 * emacs.c (main): Call syms_of_font unconditionally.
10033
10034 * font.h (FONT_ENTITY_NOT_LOADABLE)
10035 (FONT_ENTITY_SET_NOT_LOADABLE): New macros.
10036 (LGSTRING_XXXX, LGLYPH_XXX): Adjust for the change of lispy gstring.
10037 (struct font_driver): New member shape.
10038 (font_registry_charsets): Extern it.
10039 (font_find_for_lface, font_prepare_composition): Adjust prototype.
10040 (font_otf_capability, font_drive_otf): Delete their externs.
10041
10042 * font.c [HAVE_M17N_FLT]: Include <m17n-flt.h>.
10043 (font_charset_alist, font_registry_charsets): Move from xfont.c
10044 and rename.
10045 (font_prop_validate_otf): New function.
10046 (font_property_table): Register it for QCotf.
10047 (DEVICE_DELTA, adjust_anchor, REPLACEMENT_CHARACTER)
10048 (font_drive_otf): Delete.
10049 (font_prepare_composition): New arg F. Adjust for the change of
10050 lispy gstring.
10051 (font_find_for_lface): New arg C.
10052 (font_load_for_face): Adjust for the change of font_find_for_lface.
10053 (Ffont_make_gstring, Ffont_fill_gstring): Adjust for the change of
10054 lispy gstring.
10055 (Ffont_shape_text): New function.
10056 (Fopen_font): If the font size is not given, use 12-pixel.
10057 (Ffont_at): New arg STRING.
10058 (syms_of_font): Initalize font_charset_alist.
10059 Declare Ffont_shape_text as a Lisp function. Call syms_of_XXfont
10060 conditionally.
10061
10062 * fontset.c (fontset_find_font) [USE_FONT_BACKEND]: Try multiple
10063 fonts of the same font-spec. Change the format of RFONT-DEF.
10064 (face_for_char, make_fontset_for_ascii_face, Finternal_char_font):
10065 Adjust for the change of RFONT-DEF.
10066 (Fset_fontset_font) [USE_FONT_BACKEND]: Handle new format of font-spec.
10067
10068 * ftfont.h: New file.
10069
10070 * ftfont.c: Don't include Freetype headers. Include "ftfont.h".
10071 (struct ftfont_info) [HAVE_LIBOTF]: New members maybe_otf and otf.
10072 (ftfont_open) [HAVE_LIBOTF]: Initialize the above members.
10073 (ftfont_driver) [HAVE_LIBOTF, HAVE_M17N_FLT]: Don't set
10074 font_otf_capability and font_drive_otf, set ftfont_shape.
10075 (ftfont_list): Adjust for the change of :otf property value.
10076 (struct MFLTFontFT) [HAVE_LIBOTF, HAVE_M17N_FLT]: New struct.
10077 (ftfont_get_glyph_id, ftfont_get_metrics, ftfont_check_otf)
10078 (adjust_anchor, ftfont_drive_otf, ftfont_shape_by_flt)
10079 (ftfont_shape) [HAVE_LIBOTF, HAVE_M17N_FLT]: New function.
10080 (DEVICE_DELTA) [HAVE_LIBOTF, HAVE_M17N_FLT]: New macro.
10081 (otf_gstring, gstring, m17n_flt_initialized): New variables.
10082
10083 * w32term.c (x_draw_composite_glyph_string_foreground):
10084 Adjust for the change of lispy gstring.
10085
10086 * xdisp.c (handle_composition_prop): Adjust for the change of
10087 lispy gstring. Call a function for auto-composition with the
10088 third arg it->window.
10089 (fill_composite_glyph_string): Adjust for the change of lispy string.
10090 (x_produce_glyphs): Adjust for the change of font_prepare_compositionl.
10091
10092 * xfaces.c (set_font_frame_param): Adjust for the change of
10093 font_find_for_lface.
10094
10095 * xfont.c (x_font_charset_alist): Move to font.c and rename.
10096 (xfont_registry_charsets): Likewise. Change caller.
10097 (syms_of_xfont): Don't handle x_font_charset_alist.
10098
10099 * xftfont.c: Include "ftfont.h".
10100 (struct xftfont_info) [HAVE_LIBOTF]: New members maybe_otf and otf.
10101 (xftfont_open) [HAVE_LIBOTF]: Initialize the above members.
10102 (xftfont_close) [HAVE_LIBOTF]: Close otf.
10103 (xftfont_shape) [HAVE_LIBOTF, HAVE_M17N_FLT]: New function.
10104 (syms_of_xftfont) [HAVE_LIBOTF, HAVE_M17N_FLT]:
10105 Set xftfont_driver.shape to xftfont_shape.
10106
10107 * xterm.c (x_draw_composite_glyph_string_foreground): Adjust for
10108 the change of lispy gstring.
10109
101102008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
10111
10112 * ftxfont.c (ftxfont_end_for_frame): Fix array indexing error.
10113
101142008-02-01 Jason Rumney <jasonr@gnu.org>
10115
10116 * w32font.c (w32font_draw): Fill background manually.
10117
101182008-02-01 Jason Rumney <jasonr@gnu.org>
10119
10120 * font.c (Qfontp): Remove unused symbol.
10121 (QCantialias): New symbol.
10122 (syms_of_font): Define it.
10123 (font_property_table): Set a validator for QCantialias.
10124
10125 * w32font.c (CLEARTYPE_QUALITY, CLEARTYPE_NATURAL_QUALITY):
10126 Define if not already.
10127 (QCfamily): Share with xfaces.c.
10128 (Qstandard, Qsubpixel, Qnatural): New symbols.
10129 (syms_of_w32font): Define them. Don't define QCfamily here.
10130 (w32_antialias_type, lispy_antialias_type): New functions.
10131 (w32_enumfont_pattern_entity): New arg requested_font.
10132 Set antialias parameter if non-default was requested.
10133 (fill_in_logfont): Fill in lfQuality if :antialias specified.
10134
101352008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
10136
10137 * lread.c (read1): Undo the previous change.
10138
101392008-02-01 CHENG Gao <chenggao@gmail.com> (tiny change)
10140
10141 * frame.c (Fdelete_frame): Call font_update_drivers only when
10142 USE_FONT_BACKEND is defined.
10143
101442008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
10145
10146 * font.h (struct font_bitmap): New member bits_per_pixel.
10147 (struct font_driver): New members start_for_frame and end_for_frame.
10148 (struct font_data_list): New struct.
10149 (font_put_frame_data, font_get_frame_data): Extern them.
10150
10151 * frame.h (struct frame): New member font_data_list.
10152
10153 * font.c (font_update_drivers): Call driver->start_for_frame and
10154 driver->end_for_frame at proper timings.
10155 (font_put_frame_data, font_get_frame_data): New functions.
10156 (Ffont_spec): Add usage in the docstring.
10157
10158 * frame.c (make_frame): Initialize f->font_data_list to NULL.
10159 (Fdelete_frame): Call font_update_drivers.
10160
10161 * xftfont.c (struct xftface_info): Delete the member xft_draw.
10162 (xftfont_prepare_face, xftfont_done_face): Adjust for the above change.
10163 (xftfont_get_xft_draw): New function.
10164 (xftfont_draw): Get XftDraw by xftfont_get_xft_draw.
10165 (xftfont_end_for_frame): New function.
10166 (syms_of_xftfont): Set xftfont_driver.end_for_frame.
10167
10168 * ftxfont.c (ftxfont_get_gcs): Rename from ftxfont_create_gcs.
10169 Change argument. Cache GCs in the per-frame data.
10170 (struct ftxfont_frame_data): New struct.
10171 (ftxfont_draw_bitmap): New arg gc_fore and flush.
10172 (ftxfont_prepare_face, ftxfont_done_face): Delete them.
10173 (ftxfont_draw): Get GCs by ftxfont_get_gcs. Reflect s->clip in GCs.
10174 (ftxfont_end_for_frame): New function.
10175 (syms_of_ftxfont): Set ftxfont_driver.end_for_frame.
10176
10177 * ftfont.c (ftfont_get_bitmap): Set bitmap->bits_per_pixel.
10178
101792008-02-01 Kenichi Handa <handa@m17n.org>
10180
10181 * xselect.c (Vselection_coding_system)
10182 (Vnext_selection_coding_system): Delete them.
10183 (syms_of_xselect): Don't declare selection-coding-system and
10184 next-selection-coding-system. They are declared in select.el.
10185
101862008-02-01 Jason Rumney <jasonr@gnu.org>
10187
10188 * w32term.h (WM_UNICHAR, UNICODE_NOCHAR): Define if not already.
10189
10190 * w32fns.c: Include imm.h.
10191 (get_composition_string_fn, get_ime_context_fn): New optional
10192 system functions.
10193 (globals_of_w32fns): Load them from imm32.dll.
10194 (ignore_ime_char): New flag.
10195 (w32_wnd_proc): Handle WM_UNICHAR, WM_IME_CHAR and
10196 WM_IME_ENDCOMPOSITION messages.
10197
10198 * w32term.c (w32_read_socket) [WM_UNICHAR]: Handle as
10199 MULTIBYTE_CHAR_KEYSTROKE_EVENT.
10200
102012008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
10202
10203 * lread.c (READCHAR): Call readchar with the 2nd arg NULL.
10204 (READCHAR_REPORT_MULTIBYTE): New macro.
10205 (readchar): New 2nd arg MULTIBYTE.
10206 (read1): Use READCHAR_REPORT_MULTIBYTE for the first read.
10207 Make symbol's name multibyte according to the multibyteness of the
10208 source.
10209
102102008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
10211
10212 * xfaces.c (face_for_overlay_string): Call lookup_face with
10213 correct arguments (fix of synching with the trunk).
10214
102152008-02-01 Kenichi Handa <handa@m17n.org>
10216
10217 * font.c (font_prop_validate_symbol, font_prop_validate_style)
10218 (font_prop_validate_non_neg, font_prop_validate_spacing):
10219 Delete argument prop_index.
10220 (font_property_table): Change arguments to validater. Change Callers.
10221 (font_lispy_object): Delete.
10222 (font_at): Use font_find_object instead fo font_lispy_object.
10223
102242008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
10225
10226 * fileio.c (Fexpand_file_name): Adjust multibyteness of directory
10227 and file names.
10228
102292008-02-01 Jason Rumney <jasonr@gnu.org>
10230
10231 * w32font.c (add_font_name_to_list): Avoid vertical fonts.
10232 (font_matches_spec): Remove debug output.
10233 (add_font_entity_to_list): Avoid using substituted fonts.
10234
102352008-02-01 Jason Rumney <jasonr@gnu.org>
10236
10237 * doc.c (Fsnarf_documentation):
10238 * Makefile.in (temacs${EXEEXT}, mostlyclean): Undo last change.
10239
102402008-02-01 Miles Bader <miles@gnu.org>
10241
10242 * dispextern.h (struct glyph_row): Only define "clip" field if
10243 HAVE_WINDOW_SYSTEM is defined.
10244
102452008-02-01 Stefan Monnier <monnier@iro.umontreal.ca>
10246
10247 Fix up multi-tty merge.
10248
10249 * xterm.c (handle_one_xevent): Remove duplicate code and fix up nesting
10250 and indentation.
10251
10252 * xfaces.c (free_realized_face, clear_face_gcs):
10253 Include font_done_for_face in the input_blocked section, just in case.
10254
10255 * xdisp.c (decode_mode_spec): Use terminal-local coding systems.
10256 (get_char_face_and_encoding): Undo last change and remove the *other*
10257 duplicate definition (i.e. keep the one that's better scoped and that
10258 includes code for the font-backend).
10259
10260 * terminal.c (create_terminal): Default keyboard_coding to
10261 `no-conversion' and terminal_coding to `undecided'.
10262
10263 * lread.c (read1): Use XSETPVECTYPE to set a pseudovector's tag.
10264
10265 * fontset.c (free_realized_fontsets): Check that the table entry does
10266 contain a fontset before trying to compare it to `base'.
10267
10268 * emacs.c (main): Move syms_of_data, syms_of_fileio, syms_of_alloc,
10269 syms_of_charset, and syms_of_coding earlier because init_window_once
10270 now needs Vcoding_system_hash_table to be setup.
10271
10272 * coding.h (default_buffer_file_coding): Remove.
10273
10274 * coding.c (default_buffer_file_coding): Remove.
10275 (Fterminal_coding_system, Fkeyboard_coding_system): Use ->id rather
10276 than ->symbol, and use the terminal-local coding system.
10277 (syms_of_coding): Don't setup the coding-systems that are not
10278 terminal-local.
10279 (Fdefine_coding_system_internal): Use XCAR/XCDR.
10280
10281 * chartab.c (Fmake_char_table, make_sub_char_table, copy_char_table):
10282 Use XSETPVECTYPE now that XSETCHAR_TABLE doesn't set the tag anymore.
10283
10284 * alloc.c (Fmake_char_table, make_sub_char_table): Remove. They're now
10285 in chartab.c and were re-added here by mistake.
10286 (Fpurecopy): Use XSETPVECTYPE after copying a COMPILED pseudovector.
10287
10288 * doc.c (Fsnarf_documentation):
10289 * Makefile.in (temacs${EXEEXT}, mostlyclean): Move buildobj.lst from
10290 src to etc.
10291
10292 * ChangeLog.10: Add mistakenly removed entry.
10293
102942008-02-01 Dan Nicolaescu <dann@ics.uci.edu>
10295
10296 * Makefile.in (fringe.o, minibuf.o): Fix dependencies.
10297
102982008-02-01 Miles Bader <miles@gnu.org>
10299
10300 * xdisp.c (get_char_face_and_encoding): Remove extraneous definition.
10301 Add extra args to FACE_FOR_CHAR.
10302
103032008-02-01 Kenichi Handa <handa@m17n.org>
10304
10305 * keymap.c (where_is_internal_1): If key is a cons, store the copy
10306 in sequence.
10307
10308 * chartab.c (map_sub_char_table, map_char_table): If the range
10309 contains just one character, call the function with that character
10310 even if the depth is not 3.
10311
103122008-02-01 Jason Rumney <jasonr@gnu.org>
10313
10314 * w32font.c (w32font_text_extents): Calculate metrics for the
10315 whole string.
10316
103172008-02-01 Jason Rumney <jasonr@gnu.org>
10318
10319 * w32xfns.c (get_next_msg): Consolidate WM_PAINT messages.
10320
103212008-02-01 Jason Rumney <jasonr@gnu.org>
10322
10323 * w32term.c (x_set_glyph_string_clipping): Use
10324 get_glyph_string_clip_rects.
10325 (x_set_glyph_string_clipping_exactly, x_draw_glyph_string):
10326 Adjust for the change of struct glyph_string.
10327
10328 * w32font.c (w32font_draw): Do clipping here.
10329
103302008-02-01 Kenichi Handa <handa@m17n.org>
10331
10332 * xftfont.c (xftfont_draw): Adjust for the change of struct
10333 glyph_string.
10334
10335 * xterm.c (x_set_glyph_string_clipping): Use
10336 get_glyph_string_clip_rects.
10337 (x_set_glyph_string_clipping_exactly, x_draw_glyph_string):
10338 Adjust for the change of struct glyph_string.
10339
10340 * xdisp.c (get_glyph_string_clip_rects): Reflect s->row->clip to
10341 the resulting clip(s}.
10342 (expose_overlaps): Add arg r. Change callers. Set it to
10343 row->clip temporarily.
10344 (expose_window): Redraw rows overlapping the exposed area.
10345
10346 * dispextern.h (struct glyph_row): New member clip.
10347 (struct glyph_string): Delete members clip_x, clip_y, clip_width,
10348 clip_height, new member clip, and num_clips.
10349
103502008-02-01 Kenichi Handa <handa@m17n.org>
10351
10352 * data.c (Fchar_or_string_p): Fix docstring.
10353
103542008-02-01 Kenichi Handa <handa@m17n.org>
10355
10356 * xftfont.c (xftfont_draw): If s->font_info != s->face->font_info,
10357 create a temporary XftDraw object.
10358
103592008-02-01 Kenichi Handa <handa@m17n.org>
10360
10361 * font.c (Ffontp): Fix docstring.
10362
10363 * coding.c (detect_coding_iso_2022): Don't treat SI/SO codes as a
10364 strong evidence of ISO-2022.
10365
103662008-02-01 Kenichi Handa <handa@m17n.org>
10367
10368 * abbrev.c (abbrev_check_chars): Use CHAR_TABLE_REF, not
10369 SYNTAX_ENTRY_FOLLOW_PARENT.
10370
103712008-02-01 Stefan Monnier <monnier@iro.umontreal.ca>
10372
10373 * fns.c (weak_hash_tables): Rename from Vweak_hash_tables and change
10374 its type.
10375 (make_hash_table, copy_hash_table, sweep_weak_hash_tables, init_fns):
10376 Update to the new type of weak_hash_tables and next_weak.
10377
10378 * lisp.h (struct Lisp_Hash_Table): Change next_weak from Lisp_Object to
10379 a plain C pointer to Lisp_Hash_Table.
10380
10381 * lisp.h (XGCTYPE, GC_HASH_TABLE_P, GC_NILP, GC_NUMBERP, GC_NATNUMP)
10382 (GC_INTEGERP, GC_SYMBOLP, GC_MISCP, GC_VECTORLIKEP, GC_STRINGP)
10383 (GC_CONSP, GC_FLOATP, GC_VECTORP, GC_OVERLAYP, GC_MARKERP)
10384 (GC_INTFWDP, GC_BOOLFWDP, GC_OBJFWDP, GC_BUFFER_OBJFWDP)
10385 (GC_BUFFER_LOCAL_VALUEP, GC_SOME_BUFFER_LOCAL_VALUEP)
10386 (GC_KBOARD_OBJFWDP, GC_PSEUDOVECTORP, GC_WINDOW_CONFIGURATIONP)
10387 (GC_PROCESSP, GC_WINDOWP, GC_SUBRP, GC_COMPILEDP, GC_BUFFERP)
10388 (GC_SUB_CHAR_TABLE_P, GC_CHAR_TABLE_P, GC_BOOL_VECTOR_P, GC_FRAMEP)
10389 (GC_EQ): Remove since they've been identical to their non-GC_
10390 alter-egos ever since the markbit was eradicated.
10391
10392 * alloc.c:
10393 * buffer.c:
10394 * buffer.h:
10395 * data.c:
10396 * fileio.c:
10397 * filelock.c:
10398 * fns.c:
10399 * frame.h:
10400 * lisp.h:
10401 * macterm.c:
10402 * print.c:
10403 * process.c:
10404 * w32fns.c:
10405 * w32menu.c:
10406 * w32term.c:
10407 * xfns.c:
10408 * xmenu.c:
10409 * xterm.c: Replace uses of GC_* macros with the non-GC_ versions.
10410
104112008-02-01 Kenichi Handa <handa@m17n.org>
10412
10413 * chartab.c (map_sub_char_table): Make it work for the top-level
10414 char-table. Fix handling of parent char-table.
10415 (map_char_table): Adjust for the above change.
10416
104172008-02-01 Jason Rumney <jasonr@gnu.org>
10418
10419 * w32font.c (Qgdi): Rename from Qw32.
10420
104212008-02-01 Jason Rumney <jasonr@gnu.org>
10422
10423 * w32bdf.c (get_quoted_string): Make function static.
10424
104252008-02-01 Kenichi Handa <handa@m17n.org>
10426
10427 * xftfont.c (xftfont_open): If one of font's ASCII glyph has
10428 bigger ascent and descent than those of the font, use them as
10429 font's ascent and descent.
10430
104312008-02-01 Kenichi Handa <handa@m17n.org>
10432
10433 * Makefile.in (${lispsource}international/charprop.el): Move this
10434 target within "#ifdef HAVE_UNIDATA" and "#endif".
10435
104362008-02-01 Kenichi Handa <handa@m17n.org>
10437
10438 * Makefile.in (lisp): Add ${lispsource}language/tai-viet.el.
10439 (shortlisp): Add ../lisp/language/tai-viet.el.
10440
104412008-02-01 Ulrich Mueller <ulm@gentoo.org>
10442
10443 * Makefile.in (${lispsource}international/charprop.el): Depend on
10444 temacs${EXEEXT}.
10445
104462008-02-01 Jason Rumney <jasonr@gnu.org>
10447
10448 * w32font.c (w32font_close): Delete the GDI font object.
10449
10450 * w32menu.c: Include character.h.
10451
10452 * w32proc.c: Likewise.
10453
10454 * w32select.c: Likewise.
10455
10456 * makefile.w32-in (w32proc.o): Depend on character.h.
10457
104582008-02-01 Jason Rumney <jasonr@gnu.org>
10459
10460 * w32fns.c (syms_of_w32fns): Use DEFSYM macro.
10461
10462 * w32menu.c (syms_of_w32menu): Likewise.
10463
10464 * w32proc.c (syms_of_ntproc): Likewise.
10465
10466 * w32select.c (syms_of_w32select): Likewise.
10467
10468 * w32term.c (syms_of_w32term): Likewise.
10469
104702008-02-01 Jason Rumney <jasonr@gnu.org>
10471
10472 * w32font.c (w32font_draw): Delete brush after using it.
10473
104742008-02-01 Jason Rumney <jasonr@gnu.org>
10475
10476 * w32font.c (w32font_open): Don't set font_idx.
10477 (w32font_text_extents): Try GetTextExtentPoint32W before defaulting
10478 to font settings.
10479 (w32font_draw): Fill background explicitly.
10480
104812008-02-01 Jason Rumney <jasonr@gnu.org>
10482
10483 * w32term.c (w32_initialize): Don't call w32font_initialize.
10484
10485 * w32font.c (w32font_info): Remove subranges.
10486 (QCsubranges, Qmodern, Qswiss, Qroman): Remove.
10487 (QCfamily, Qmonospace, Qsans_serif, Qmono, Qsans, Qsans__serif)
10488 (Qraster, Qoutline, Qlatin, Qgreek, Qcoptic, Qcyrillic, Qarmenian)
10489 (Qhebrew, Qarabic, Qsyriac, Qnko, Qthaana, Qdevanagari, Qbengali)
10490 (Qgurmukhi, Qgujarati, Qoriya, Qtamil, Qtelugu, Qkannada)
10491 (Qmalayalam, Qsinhala, Qthai, Qlao, Qtibetan, Qmyanmar, Qgeorgian)
10492 (Qhangul, Qethiopic, Qcherokee, Qcanadian_aboriginal, Qogham)
10493 (Qrunic, Qkhmer, Qmongolian, Qsymbol, Qbraille, Qhan)
10494 (Qideographic_description, Qcjk_misc, Qkana, Qbopomofo, Qkanbun)
10495 (Qyi, Qbyzantine_musical_symbol, Qmusical_symbol, Qmathematical):
10496 New symbols.
10497 (font_callback_data): New struct.
10498 (w32font_list, w32font_match): Use it.
10499 (w32font_open): Don't populate subranges.
10500 (w32font_has_char): Use script Lisp symbols, not subrange bitmask.
10501 (w32font_encode_char): Always return unicode code-point as-is.
10502 (w32font_text_extents): Supply a transformation matrix to
10503 GetGlyphOutline. Never look up by glyph index. Avoid looping
10504 twice. Use unicode version of GetTexExtentPoint32 instead of
10505 glyph index version.
10506 (set_fonts_frame): Remove.
10507 (w32_enumfont_pattern_entity): Add frame parameter, use it to
10508 set frame parameter. Use backward compatible fake foundries.
10509 Save generic family in extra slot under QCfamily. Make width slot
10510 constant. Save QCspacing value. Save list of scripts instead of
10511 binary subranges.
10512 (w32_generic_family, logfonts_match, font_matches_spec): New functions.
10513 (add_font_entity_to_list): Use font_callback_data struct. Filter
10514 unwanted fonts.
10515 (add_one_font_entity_to_list): Use font_callback_data struct.
10516 (w32_registry): Default to iso10646_1.
10517 (fill_in_logfont): Use dpi from extra slot. Don't bother with
10518 string font registries. Don't fill in font name if it is a generic
10519 family name, fill family instead. Use spacing, family and script
10520 extra info to fill pitch, family and charset fields.
10521 (list_all_matching_fonts): Use font_callback_data struct.
10522 (unicode_range_for_char): Remove.
10523 (font_supported_scripts): New function.
10524 (w32font_initialize): Remove.
10525 (syms_of_w32font): Update which symbols are defined.
10526
105272008-02-01 Jason Rumney <jasonr@gnu.org>
10528
10529 * font.c (font_pixel_size): Reverse assq_no_quit args.
10530
10531 * w32term.h (FONT_WIDTH): Report max width, not average.
10532 (FONT_MAX_WIDTH): Remove.
10533 (FONT_AVG_WIDTH): New macro.
10534
10535 * xfaces.c (Fx_list_fonts) [WINDOWSNT]: Remove Windows only
10536 redefinition of FONT_WIDTH.
10537
10538 * w32term.c (x_font_min_bounds): Use FONT_AVG_WIDTH.
10539 (w32_cache_char_metrics): Use FONT_WIDTH.
10540
10541 * w32fns.c (w32_load_system_font, w32_list_fonts): Use FONT_AVG_WIDTH.
10542
105432008-02-01 Jason Rumney <jasonr@gnu.org>
10544
10545 * w32font.c (w32font_open): Make lfHeight negative.
10546
10547 * w32fns.c (x_default_font_parameter): Use new style font name.
10548 (Fx_create_frame, x_create_tip_frame): Initialize resx and resy.
10549
105502008-02-01 Jason Rumney <jasonr@gnu.org>
10551
10552 * w32font.c (QCsubranges): New symbol.
10553 (w32font_open, w32font_has_char): Get subranges from subproperty
10554 of extra.
10555 (w32_enumfont_pattern_entity): Set subranges as subproperty of extra.
10556 (syms_of_w32font): Define :subranges symbol.
10557
10558 * font.c (font_put_extra): Expose externally.
10559
10560 * font.h (font_put_extra): Move declaration from font.c.
10561
10562 * font.c (Ffont_get): Use font driver to determine otf capability.
10563 (adjust_anchor): Check if driver defines anchor_point before using.
10564
10565 * w32font.c (w32font_open): Handle size, height and pixel_size better.
10566 (w32font_draw): Use options.
10567 (w32_enumfont_pattern_entity): Set size to 0 for scalable fonts.
10568 Fix detection of truetype fonts.
10569 (registry_to_w32_charset): Handle charsets other than iso8859-1
10570 expressed as lisp symbols.
10571 (w32_registry): Express charset as lisp symbol.
10572 (fill_in_logfont): Reverse pixel and point height logic.
10573 Don't set width here. Set quality to default.
10574
10575 * w32fns.c (w32_load_system_font): Fix detecting FIXED_PITCH fonts.
10576 (x_to_w32_font): Fill in lfPitchAndFamily correctly.
10577
10578 * xterm.c (x_draw_glyph_string_foreground) [USE_FONT_BACKEND]:
10579 Remove redundant loop and allocation.
10580
10581 * makefile.w32-in (font.o, w32font.o): New objects.
10582 (fontset.o, xdisp.o, xfaces.o, w32fns.o, w32term.o): Depend on font.h.
10583 (FONTOBJ): New group of objects conditioned on USE_FONT_BACKEND.
10584
10585 * xdisp.c (fill_composite_glyph_string): Make the first arg to
10586 STORE_XCHARB a valid l-value.
10587
10588 * w32term.c (w32_native_per_char_metric): Swap width and rbearing
10589 calculations for non-Truetype fonts.
10590 (x_draw_glyph_string): Sync with xterm.c.
10591 (x_draw_glyph_string_foreground) [USE_FONT_BACKEND]:
10592 Remove redundant code.
10593 (w32_initialize) [USE_FONT_BACKEND]: Call w32font_initialize.
10594
10595 * w32term.h (w32_output_data) [USE_FONT_BACKEND]: Add fontp member.
10596 (FRAME_FONT_OBJECT) [USE_FONT_BACKEND]: New macro from xterm.h.
10597
10598 * w32fns.c [USE_FONT_BACKEND]: Port font backend changes from xfns.c.
10599 (x_to_w32_charset, w32_to_x_charset): Expose externally.
10600
10601 * w32font.c: New file for w32 font backend.
10602
106032008-02-01 Kenichi Handa <handa@m17n.org>
10604
10605 * term.c: Don't include "buffer.h" twice.
10606
106072008-02-01 Kenichi Handa <handa@m17n.org>
10608
10609 * character.c (Funibyte_string): New function.
10610 (syms_of_character): Defsubr it.
10611
106122008-02-01 Jason Rumney <jasonr@gnu.org>
10613
10614 * w32term.c [USE_FONT_BACKEND]:
10615 (x_get_font_repertory, note_mouse_movement, x_set_mouse_face_gc)
10616 (x_set_glyph_string_clipping, x_set_glyph_string_clipping_exactly)
10617 (x_draw_glyph_string, x_draw_glyph_string_foreground)
10618 (x_draw_composite_glyph_string_foreground, x_new_fontset2)
10619 (x_free_frame_resources): Sync with xterm.c.
10620
106212008-02-01 Andreas Schwab <schwab@suse.de>
10622
10623 * lread.c (read1): Use CHAR_TABLE_STANDARD_SLOTS to validate
10624 char-table size.
10625
106262008-02-01 Kenichi Handa <handa@m17n.org>
10627
10628 * font.c (check_otf_features): Define it regardless of HAVE_LIBOTF.
10629
106302008-02-01 Kenichi Handa <handa@m17n.org>
10631
10632 * ftfont.c (ftfont_driver): Delete font_otf_gsub and
10633 font_otf_gpos, add font_drive_otf.
10634
10635 * fontset.c (fontset_find_font): Pay attention to font size
10636 specified for a font.
10637 (reorder_font_vector): Check contents of font_def.
10638
10639 * font.c (struct otf_list): Delete it.
10640 (otf_list): Make it a lisp variable.
10641 (otf_open): Use lispy otf_list.
10642 (generate_otf_features): Rename from parse_gsub_gpos_spec.
10643 (check_otf_features): New function.
10644 (font_otf_DeviceTable, font_otf_ValueRecord, font_otf_Anchor):
10645 New functions.
10646 (font_drive_otf): New function merging font_otf_gsub and
10647 font_otf_gpos.
10648 (font_open_for_lface): New arg spec. Change argument order.
10649 (font_load_for_face): Adjust for the change of font_open_for_lface.
10650 (Ffont_drive_otf): New function merging Ffont_otf_gsub and
10651 Ffont_otf_gpos.
10652 (syms_of_font): Staticpro otf_list. Delete defsubr of
10653 Sfont_otf_gsub and Sfont_otf_gpos. Defsubr Sfont_drive_otf.
10654
10655 * xfaces.c (set_font_frame_param): Adjust for the change of
10656 font_open_for_lface.
10657
10658 * font.h (font_open_for_lface): Adjust prototype.
10659 (struct font_driver): Delete members otf_gsub and otf_gpos, add
10660 member otf_drive.
10661 (font_otf_gsub, font_otf_gpos): Delete externs.
10662 (font_drive_otf): Extern it.
10663
106642008-02-01 Kenichi Handa <handa@m17n.org>
10665
10666 * font.c (font_at): If the window W is not on a window system,
10667 return Qnil.
10668
10669 * coding.c (produce_chars, encode_coding): Don't call
10670 insert_from_gap if no characters to produce.
10671
106722008-02-01 Kenichi Handa <handa@m17n.org>
10673
10674 * fontset.c (free_realized_fontsets): Avoid unnecessary call of
10675 Fclear_face_cache.
10676
10677 * xfaces.c (face_for_font): Check also face->font==font->font.font.
10678
106792008-02-01 Miles Bader <miles@gnu.org>
10680
10681 * emacs.c (main): Change default value of `enable_font_backend' to 1.
10682 Parse "--disable-font-backend" option.
10683 (standard_args): Add "--disable-font-backend" option.
10684
106852008-02-01 Kenichi Handa <handa@m17n.org>
10686
10687 * fontset.c (fontset_find_font): New function.
10688 (fontset_font): Use fontset_find_font.
10689 (make_fontset_for_ascii_face): Don't set face ID in rfont_def.
10690 Register the specified font for all Latin characters.
10691 (new_fontset_from_font): Register the specified font for all Latin
10692 characters.
10693 (dump_fontset): For a realized fontset, include the base fontset
10694 name in the returned vector.
10695
106962008-02-01 Kenichi Handa <handa@m17n.org>
10697
10698 * character.h (CHAR_STRING): Cast C to unsigned on calling
10699 char_string.
10700
10701 * character.c (char_string): Type of arg C changed to unsigned.
10702 Signal an error if C is an invalid character code.
10703
10704 * editfns.c (general_insert_function, Fchar_to_string):
10705 Use CHARACTERP, not INTEGERP.
10706
107072008-02-01 Kenichi Handa <handa@m17n.org>
10708
10709 * character.h (MIN_MULTIBYTE_LEADING_CODE)
10710 (MAX_MULTIBYTE_LEADING_CODE): New macros.
10711
10712 * regex.c (analyse_first): Fix for multibyte characters in "case
10713 charset:" and "case categoryspec:".
10714
107152008-02-01 Andreas Schwab <schwab@suse.de>
10716
10717 * Makefile.in (LIBES): Move standard libraries to the end.
10718
107192008-02-01 Kenichi Handa <handa@m17n.org>
10720
10721 * alloc.c (Fgarbage_collect): If nextb->text->inhibit_shrinking is
10722 nonzero, don't shrink the buffer nextb.
10723
10724 * buffer.h (struct buffer_text): New member inhibit_shrinking.
10725
10726 * coding.c (coding_alloc_by_making_gap): New arg offset.
10727 (alloc_destination): Call coding_alloc_by_making_gap with the arg
10728 offset.
10729 (decode_coding_iso_2022): Update coding->safe_charsets.
10730 (decode_coding_gap): Temporarily set
10731 current_buffer->text->inhibit_shrinking to 1.
10732
107332008-02-01 Kenichi Handa <handa@m17n.org>
10734
10735 * xterm.c (x_draw_composite_glyph_string_foreground): Fix
10736 indexing into elements of s->cmp and s->char2b.
10737
107382008-02-01 Juanma Barranquero <lekktu@gmail.com>
10739
10740 * regex.c (RE_STRING_CHAR_AND_LENGTH) [! emacs]: Add missing arg `len'.
10741
107422008-02-01 Kenichi Handa <handa@m17n.org>
10743
10744 * regex.c (GET_CHAR_BEFORE_2, GET_CHAR_AFTER): Check the variable
10745 target_multibyte instead of multibyte.
10746 (re_match_2_internal): Call bcmp_translate with target_multibyte.
10747 (bcmp_translate): Change the argument name from multibyte to
10748 target_multibyte.
10749
107502008-02-01 Kenichi Handa <handa@m17n.org>
10751
10752 These changes are to compile a regexp into a pattern that can be
10753 used both for multibyte and unibyte targets.
10754
10755 * Makefile.in (search.o): Depend on charset.h.
10756
10757 * character.c (multibyte_char_to_unibyte_safe): New function.
10758
10759 * search.c: Include "charset.h".
10760 (compile_pattern_1): Delete argument multibyte. Don't set
10761 cp->buf.target_multibyte here. Set cp->buf.charset_unibyte.
10762 (compile_pattern): Don't compare cp->buf.target_multibyte.
10763 Compare cp->buf.charset_unibyte.
10764 (compile_pattern): Set cp->buf.target_multibyte.
10765
10766 * lisp.h (multibyte_char_to_unibyte_safe): Extern it.
10767
10768 * regex.h (struct re_pattern_buffer): New member charset_unibyte.
10769
10770 * regex.c (RE_STRING_CHAR, RE_STRING_CHAR_AND_LENGTH): New arg
10771 multibyte. Change callers.
10772 (RE_CHAR_TO_MULTIBYTE, RE_CHAR_TO_UNIBYTE): New macros.
10773 (MAKE_CHAR_MULTIBYTE, MAKE_CHAR_UNIBYTE): Delete. Change callers
10774 to use RE_CHAR_TO_MULTIBYTE and RE_CHAR_TO_UNIBYTE, respectively.
10775 (SETUP_ASCII_RANGE, SETUP_UNIBYTE_RANGE): New macros.
10776 (SETUP_MULTIBYTE_RANGE): Generate a more compact range_table.
10777 (regex_compile): Make the compiled pattern usable both for
10778 multibyte and unibyte targets.
10779 (analyse_first): Make the fastmap usable both for multibyte and
10780 unibyte targets.
10781 (TRANSLATE_VIA_MULTIBYTE): Delete.
10782 (re_match_2_internal): Pay attention to the case that the
10783 multibyteness of bufp and target may be different.
10784
107852008-02-01 Kenichi Handa <handa@m17n.org>
10786
10787 * xdisp.c (x_produce_glyphs): When a font is not found, make the
10788 empty box occupy at least one column width.
10789
107902008-02-01 Miles Bader <miles@gnu.org>
10791
10792 * Makefile.in: Remove redundant HAVE_XFT clause.
10793
107942008-02-01 Kenichi Handa <handa@m17n.org>
10795
10796 * xrdb.c (x_load_resources): Setup the default fontSet X resource.
10797
107982008-02-01 Kenichi Handa <handa@m17n.org>
10799
10800 * fontset.c (Finternal_char_font): Fix for the case of POSITION
10801 being nil.
10802
108032008-02-01 Kenichi Handa <handa@m17n.org>
10804
10805 * xftfont.c (xftfont_open): Call FcConfigSubstitute.
10806
108072008-02-01 Kenichi Handa <handa@m17n.org>
10808
10809 * xftfont.c (xftfont_open): Don't enable antialias explicitly.
10810
108112008-02-01 Kenichi Handa <handa@m17n.org>
10812
10813 * search.c (simple_search): Fix previous change.
10814
108152008-02-01 Kenichi Handa <handa@m17n.org>
10816
10817 * xftfont.c (ftfont_font_format): Extern declaration.
10818
10819 * frame.c (x_set_font): Fix the second arg to fs_query_fontset.
10820
10821 * xfont.c (xfont_driver): Initialize ftfont_driver.type by 0.
10822 (xfont_list): Don't directly use Lisp_Object as an operand of &&.
10823
10824 * ftfont.c (ftfont_driver): Initialize ftfont_driver.type by 0.
10825 (ftfont_font_format): Fix previous change.
10826
10827 * font.h (Ffont_xlfd_name): EXFUN it.
10828
10829 * font.c (font_parse_xlfd): Fix the array size of `f'.
10830 (register_font_driver): Use EQ to compare driver->type.
10831
10832 * xfns.c (xic_create_xfontset2) [USE_FONT_BACKEND]: New function.
10833 (create_frame_xic) [USE_FONT_BACKEND]: Call xic_create_xfontset2.
10834 (xic_set_xfontset) [USE_FONT_BACKEND]: Likewise.
10835
108362008-02-01 Kenichi Handa <handa@m17n.org>
10837
10838 * ftfont.c (ftfont_pattern_entity, ftfont_list_generic_family)
10839 (ftfont_list, ftfont_font_format): Check if FC_FONTFORMAT is defined.
10840
108412008-02-01 Kenichi Handa <handa@m17n.org>
10842
10843 * xfont.c (xfont_open): Set font->format.
10844
10845 * xftfont.c (xftfont_open): Set font->format.
10846
10847 * ftfont.c (ftfont_pattern_entity): Add fontformat in a pattern.
10848 (ftfont_list): Include FC_FONTFORMAT in FcObject.
10849 (ftfont_open): Set font->format.
10850 (ftfont_font_format): New function.
10851
10852 * font.h (struct font): New member format.
10853
10854 * font.c (Qopentype): New variable.
10855 (syms_of_font): Defsym it.
10856 (Fquery_font): Change the format of the last element of the return
10857 value.
10858
108592008-02-01 Kenichi Handa <handa@m17n.org>
10860
10861 * xfns.c (xic_create_xfontset): Try the default fontset name as a
10862 last resort.
10863
108642008-02-01 Kenichi Handa <handa@m17n.org>
10865
10866 * coding.c (detect_coding_charset): Fix detection of multi-byte
10867 charset.
10868
108692008-02-01 Bob Halley <halley@play-bow.org> (tiny change)
10870
10871 * ccl.c (ccl_driver): If DST is NULL, set ccl->produced to 0.
10872
108732008-02-01 Kenichi Handa <handa@m17n.org>
10874
10875 * xdisp.c (get_next_display_element): Set it->face_id for the
10876 first component of a composition.
10877 (x_produce_glyphs): Check if the font is changed or not for composition.
10878
108792008-02-01 Kenichi Handa <handa@m17n.org>
10880
10881 * fontset.c (Qlatin): New variable.
10882 (syms_of_fontset): Define it as a lisp symbol.
10883 (Fset_fontset_font): If TARGET is `latin', use FONT_SPEC for ASCII.
10884
108852008-02-01 Kenichi Handa <handa@m17n.org>
10886
10887 * font.c (font_unparse_fcname): Pay attention to the case that
10888 some of font property is a null string.
10889
108902008-02-01 Kenichi Handa <handa@m17n.org>
10891
10892 * term.c: Include "composite.h".
10893 (encode_terminal_code): Output all components of composition.
10894 Check the size of encode_terminal_src.
10895 (produce_glyphs): For composition, call produce_composite_glyph.
10896 (append_composite_glyph, produce_composite_glyph): New functions.
10897
10898 * xdisp.c (x_produce_glyphs): In handling composition, if a font
10899 is not found, get font_info from the current ascii face.
10900
109012008-02-01 Kenichi Handa <handa@m17n.org>
10902
10903 * fileio.c (Finsert_file_contents): On replacing, temporarily bind
10904 buffer-file-name to Qnil before calling insert_from_buffer.
10905
10906 * font.c (font_unparse_fcname): Pay attention to the case that
10907 foundry is a null string.
10908
109092008-02-01 Kenichi Handa <handa@m17n.org>
10910
10911 * ftfont.c (ftfont_list): Allow registry "unicode-sip".
10912
10913 * font.c (Qunicode_sip): New variable.
10914 (syms_of_font): Declare it as a Lisp symbol.
10915
10916 * font.h (Qunicode_sip): Extern it.
10917
109182008-02-01 Kenichi Handa <handa@m17n.org>
10919
10920 * composite.c (get_composition_id): Pay attention to TAB component.
10921
10922 * xterm.c (x_draw_composite_glyph_string_foreground): Don't draw
10923 TAB. Adjust for the change of s->char2b which always points to
10924 the first element of allocated memory.
10925
10926 * xftfont.c (xftfont_text_extents): Fix calculation of descent value.
10927
10928 * xdisp.c (handle_composition_prop): Set it->c to the first
10929 non-TAB component.
10930 (fill_composite_glyph_string): Change argument.
10931 (BUILD_COMPOSITE_GLYPH_STRING): Adjust for the above change.
10932 (x_produce_glyphs): Fix handling of left/right padding.
10933
109342008-02-01 Kenichi Handa <handa@m17n.org>
10935
10936 * coding.c (detect_coding_system): Fix for handling off
10937 inhibit_iso_escape_detection. Fix for the case that no coding
10938 system is defined for a specific coding category.
10939
109402008-02-01 Kenichi Handa <handa@m17n.org>
10941
10942 * font.c (font_matching_entity): Delete unused local var.
10943
10944 * xftfont.c (xftfont_open): Call XftDefaultSubstitute before
10945 opening a font.
10946
10947 * fileio.c (Finsert_file_contents): On recovering a file, assume
10948 Unix-like eol.
10949 (choose_write_coding_system): On auto-saving a file, force
10950 Unix-like eol.
10951
10952 * coding.c (setup_coding_system): Fix setting of
10953 coding->common_flags based on eol_type.
10954 (coding_inherit_eol_type): If PARENT is not nil, be sure to
10955 inherit from it.
10956
109572008-02-01 Kenichi Handa <handa@m17n.org>
10958
10959 * alloc.c (NSTATICS): Increas to 0x600.
10960
109612008-02-01 Kenichi Handa <handa@m17n.org>
10962
10963 * ftfont.c (ftfont_driver): Set ftfont_driver.match to ftfont_match.
10964 (ftfont_list): Don't check :name property.
10965 (ftfont_match): New function.
10966 (ftfont_pattern_entity): If the pattern doesn't contain
10967 FC_SPACING, don't assume FC_MONO.
10968
10969 * font.h (struct font_driver): New member `match'.
10970 (font_update_drivers): Adjust prototype.
10971
10972 * font.c (font_parse_fcname, font_parse_name): Don't change :name
10973 property of FONT.
10974 (LGSTRING_HEADER_SIZE, LGSTRING_GLYPH_SIZE, check_gstring): Define
10975 them unconditionally.
10976 (font_matching_entity): New function.
10977 (font_open_by_name): Try font_matching_entity if exact match is
10978 not found.
10979 (font_update_drivers): Delete the arg FONT. Return a list of
10980 actually used backends. Don't free faces, font caches here.
10981 Don't store data in frame parameters. Don't call x_set_font.
10982 (Ffont_spec): Store :name property as is.
10983 (Ffont_get): Check HAVE_LIBOTF before calling font_otf_capability.
10984 (Ffont_otf_gsub): Call font->driver->otf_gsub instead of font_otf_gsub.
10985 (Ffont_otf_gpos): Call font->driver->otf_gpos instead of font_otf_gpos.
10986 (Ffont_otf_alternates): Check if the driver has otf_gsub function.
10987 Call font->driver->otf_gsub instead of font_otf_gsub.
10988
10989 * frame.c (x_set_font_backend): Do more works that were done in
10990 font_update_drivers before.
10991
10992 * xfont.c (xfont_match): New function.
10993 (xfont_driver): Set xfont_driver.match to xfont_match.
10994 (xfont_draw): Set font in GC if necessary.
10995
10996 * ftxfont.c (ftxfont_match): New function.
10997 (syms_of_ftxfont): Set ftxfont_driver.match to ftxfont_match.
10998
10999 * xftfont.c (xftfont_match): New function.
11000 (syms_of_xftfont): Set xftfont_driver.match to xftfont_match.
11001
110022008-02-01 Kenichi Handa <handa@m17n.org>
11003
11004 * font.h (struct font): New member scalable.
11005 (struct font_driver): New arg ALTERANTE_SUBST to otf_gsub.
11006 (font_otf_gsub): Adjust prototype.
11007
11008 * font.c (font_otf_capability): Fix handling of the default langsys.
11009 (parse_gsub_gpos_spec): Change type to void. New arg nbytes.
11010 Check the contents of SPEC.
11011 (LGSTRING_HEADER_SIZE, LGSTRING_GLYPH_SIZE): New macros.
11012 (check_gstring): New function.
11013 (REPLACEMENT_CHARACTER): New macro.
11014 (font_otf_gsub): New arg alternate_subst. Be sure to set all
11015 glyph codes of GSTRING.
11016 (font_otf_gpos): Be sure to set all glyph codes of GSTRING.
11017 (font_prepare_composition): Set cmp->glyph_len.
11018 (font_open_entity): Set font->scalable.
11019 (Ffont_get): Handle :otf property.
11020 (Ffont_otf_gsub, Ffont_otf_gpos, Ffont_otf_alternates): New
11021 functions.
11022 (Fquery_font): Use font->font.full_name.
11023 (syms_of_font): Defsubr Sfont_otf_gsub, Sfont_otf_gpos, and
11024 Sfont_otf_alternates.
11025
11026 * ftfont.c (ftfont_open): Set font->font.full_name and
11027 font->font.name properly. Fix calculation of font->font.height
11028 and font->min_width.
11029
11030 * ftxfont.c (ftxfont_create_gcs): New function.
11031 (ftxfont_draw_bitmap): Fix arg to ftfont_driver.get_bitmap.
11032 (ftxfont_draw_backgrond): Fix filling region.
11033 (ftxfont_default_fid): New function.
11034 (ftxfont_open): Set xfont->fid to the return value of
11035 ftxfont_default_fid.
11036 (ftxfont_prepare_face): Use ftxfont_create_gcs to create GCs.
11037 (ftxfont_done_face): Free only GCs that are created by
11038 ftxfont_create_gcs.
11039 (ftxfont_draw): If face->gc != s->gc, create proper GCs.
11040
11041 * xterm.c (x_set_glyph_string_clipping_exactly) [USE_FONT_BACKEND]:
11042 Clip to src->width, etc (not src->clip_XXX).
11043
11044 * xfns.c (x_create_tip_frame) [USE_FONT_BACKEND]: Handle
11045 FontBackend frame parameter.
11046
110472008-02-01 Kenichi Handa <handa@m17n.org>
11048
11049 * font.h (struct font_driver_list): New member `on'.
11050 (Fclear_font_cache): EXFUN it.
11051 (font_update_drivers): Extern it.
11052
11053 * font.c (font_unparse_fcname): Fix typo (swidth->width).
11054 (font_list_entities): Check driver_list->on.
11055 (register_font_driver): Initalize `on' member to 0.
11056 (font_update_drivers): New function.
11057 (Fclear_font_cache): Check driver_list->on.
11058
11059 * frame.h (Qfont_backend): Extern it.
11060 (x_set_font_backend): Extern it.
11061
11062 * frame.c (Qfont_backend): New variable.
11063 (frame_parms): New element for font-backend.
11064 (x_set_font_backend): New function.
11065
11066 * xfns.c (Fx_create_frame) [USE_FONT_BACKEND]: Handle
11067 FontBackend frame parameter.
11068 (x_frame_parm_handlers) [USE_FONT_BACKEND]: New element
11069 x_set_font_backend.
11070
11071 * xfont.c (xfont_list): Don't try listing by :name property if the
11072 name is not for XLFD.
11073
110742008-02-01 Kenichi Handa <handa@m17n.org>
11075
11076 * font.h (LGLYPH_FROM, LGLYPH_TO, LGLYPH_SET_FROM)
11077 (LGLYPH_SET_TO): New macros.
11078 (LGLYPH_XOFF, LGLYPH_YOFF, LGLYPH_WADJUST): Check if adjustment
11079 element of G is vector or not.
11080 (font_at): Extern it.
11081
11082 * font.c: Include window.h.
11083 (font_lispy_object): New function.
11084 (font_prepare_composition): Check LGLYPH_FORM (g) to detect the
11085 end of valid glyph.
11086 (font_close_object): Fix getting (struct font *).
11087 (font_at): New function.
11088 (Ffont_get): If FONT is a font-object, get entity from it.
11089 (Ffont_make_gstring): Initialize elements of glyphs with nil.
11090 (Ffont_fill_gstring): Use macro LGSTRING_XXX and LGLYPH_XXX. Fix
11091 range check.
11092 (Ffont_at): New function.
11093 (syms_of_font): Defsubr Sfont_at.
11094
11095 * xdisp.c (it_props): Move the entry for Qauto_composed to just
11096 before the entry for Qcomposition.
11097 (handle_auto_composed_prop): Call auto-composition-function with 4 args.
11098 (handle_composition_prop) [USE_FONT_BACKEND]: Set it->face_id from
11099 the font in gstring.
11100 (fill_composite_glyph_string) [USE_FONT_BACKEND]: Check
11101 LGLYPH_FORM (g) to detect the end of valid glyph.
11102 (x_produce_glyphs) [USE_FONT_BACKEND]: Don't update it->face_id if
11103 we are composing with gstring.
11104
11105 * xterm.c (x_draw_composite_glyph_string_foreground) [USE_FONT_BACKEND]:
11106 Check if adjustment is vector or not.
11107
11108 * Makefile.in (font.o): Make it depends on window.h.
11109
111102008-02-01 Kenichi Handa <handa@m17n.org>
11111
11112 * xterm.c (x_draw_composite_glyph_string_foreground): Check if
11113 adjustment is vector or not.
11114
111152008-02-01 Miles Bader <miles@gnu.org>
11116
11117 * character.h (CHECK_CHARACTER): Redefine in terms of CHECK_TYPE.
11118
111192008-02-01 Kenichi Handa <handa@m17n.org>
11120
11121 * font.h (LGLYPH_XOFF, LGLYPH_YOFF, LGLYPH_WIDTH, LGLYPH_WADJUST)
11122 (LGLYPH_SET_WIDTH): Adjusted for the change of LGLYPH format.
11123 (LGLYPH_ADJUSTMENT, LGLYPH_SET_ADJUSTMENT): New macros.
11124
11125 * font.c (font_merge_old_spec): Treat '*' in foundry as a wild card.
11126 (DEVICE_DELTA): Fix typo.
11127 (font_otf_gpos, font_prepare_compositio): Adjust for the change of
11128 LGLYPH format.
11129
11130 * xterm.c (x_draw_composite_glyph_string_foreground): Adjust for
11131 the change of LGLYPH format.
11132
111332008-02-01 Kenichi Handa <handa@m17n.org>
11134
11135 * ftfont.c (ftfont_list): Fix typo.
11136 (ftfont_build_basic_charsets): Don't include letters with diacritics.
11137
111382008-02-01 Jan Djärv <jan.h.d@swipnet.se>
11139
11140 * xfaces.c (realize_non_ascii_face): Set face->extra to NULL.
11141
11142 * xftfont.c (xftfont_done_face): Call XftDrawDestroy only if
11143 xftface_info is non-NULL.
11144
111452008-02-01 Jan Djärv <jan.h.d@swipnet.se>
11146
11147 * ftfont.c (ftfont_list): Move misplaced #endif.
11148
111492008-02-01 Kenichi Handa <handa@m17n.org>
11150
11151 * ftfont.c (ftfont_list): Pay attention to the case that
11152 FC_CAPABILITY is not defined.
11153
111542008-02-01 Kenichi Handa <handa@m17n.org>
11155
11156 * xftfont.c (xftfont_open): Set charset related members to -1.
11157
11158 * ftfont.c (ftfont_list): Handle QCotf property. Fix handling of
11159 QCname.
11160 (ftfont_open): Set charset related members to -1.
11161
11162 * fontset.c (Votf_script_alist): New variable.
11163 (syms_of_fontset): Initialize it.
11164 (fontset_font): Delete unused variable.
11165
11166 * fontset.h (Votf_script_alist): Extern it.
11167
11168 * font.c (font_find_for_lface): Optimize code.
11169
11170 * font.h (font_close_object, font_merge_old_spec): Extern them.
11171
111722008-02-01 Kenichi Handa <handa@m17n.org>
11173
11174 * font.c (QCscalable, Qc, Qm, Qp, Qd): New variables.
11175 (syms_of_font): Initialize them.
11176 (font_pixel_size): Allow float value in dpi.
11177 (font_prop_validate_type): Delete.
11178 (font_prop_validate_symbol, font_prop_validate_style): Change argument.
11179 Change caller.
11180 (font_prop_validate_non_neg): Rename from font_prop_validate_size.
11181 (font_prop_validate_extra): Delete.
11182 (font_prop_validate_spacing): New function.
11183 (font_property_table): Add elements for all known properties.
11184 (get_font_prop_index): Rename from check_font_prop_name. New
11185 argument FROM. Change caller.
11186 (font_prop_validate): Validate all known properties.
11187 (font_put_extra): Delete argument force. Change caller.
11188 (font_expand_wildcards): Make it static. Fix the way of shrinking
11189 the possible range.
11190 (font_parse_xlfd): Delete argument merge. Fix handling of RESX,
11191 RESY, SPACING, and AVGWIDTH. Don't validate property values here.
11192 Change caller.
11193 (font_unparse_xlfd): Handle dpi, spacing, and scalable properties.
11194 (font_parse_fcname): Delete argument merge. Fix parsing of point
11195 size. Don't validate properties values here. Change caller.
11196 (font_unparse_fcname): Handle dpi, spacing, and scalable properties.
11197 (font_open_by_name): Delete unused variable.
11198 (Ffont_spec): Likewise. Validate property values.
11199 (Ffont_match_p): New function.
11200
11201 * font.h (QCscalable): Extern it.
11202 (font_parse_xlfd, font_parse_fcname): Adjust prototype.
11203
11204 * ftfont.c (ftfont_list): Handle properties dpi, spacing, and scalable.
11205
11206 * xfont.c (xfont_query_font): Adjust for the change of font_parse_xlfd.
11207 (xfont_list_pattern): New function.
11208 (xfont_list): Use xfont_list_pattern.
11209
112102008-02-01 Kenichi Handa <handa@m17n.org>
11211
11212 * font.h (Flist_fonts): EXFUN it.
11213
112142008-02-01 Jason Rumney <jasonr@gnu.org>
11215
11216 * w32term.c (w32_initialize): Add back smoothing_type and
11217 smoothing_enabled definitions.
11218
112192008-02-01 Kenichi Handa <handa@m17n.org>
11220
11221 * xterm.c (x_draw_glyph_string) [USE_FONT_BACKEND]: Check
11222 s->face->font on determining underline position.
11223
112242008-02-01 Kenichi Handa <handa@m17n.org>
11225
11226 * font.c (font_parse_xlfd): Fix generating of CHARSET_REGISTRY field.
11227 (font_has_char): Accept font-object too.
11228 (font_find_for_lface): Try at first with a size specified in face.
11229
112302008-02-01 Kenichi Handa <handa@m17n.org>
11231
11232 * frame.c (x_set_font) [USE_FONT_BACKEND]: Fix argument to
11233 font_open_by_name.
11234
112352008-02-01 Kenichi Handa <handa@m17n.org>
11236
11237 * font.h (QCspacing, QCdpi): Extern them.
11238 (enum font_spacing): New enum.
11239 (FONT_PIXEL_SIZE_QUANTUM): New macro.
11240
11241 * font.c (POINT_TO_PIXEL): Don't divide POINT by 10.
11242 (QCspacing, QCdpi): New variables.
11243 (syms_of_font): Initialize them.
11244 (font_pixel_size): New function.
11245 (font_put_extra): New function.
11246 (font_parse_xlfd): Fix handling of font size. Add QCdpi property
11247 in FONT_EXTRA.
11248 (font_parse_fcname): Handle enumerated values (e.g. bold).
11249 Fix handling font size. Add QCname property that contains only
11250 unknown properties.
11251 (font_score): Change argument. Change caller. Pay attention to
11252 FONT_PIXEL_SIZE_QUANTUM.
11253 (font_sort_entites, font_list_entities, font_find_for_lface)
11254 (font_open_for_lface, font_open_by_name): Fix handling of font size.
11255 (Ffont_spec): Add QCname property that contains only unknown properties.
11256
11257 * ftfont.c (ftfont_list): Use assq_no_quit, not Fassq. Don't
11258 include weight in listing pattern, instead check weight of each
11259 listed font. Don't include scalable in pattern. Pay attention to
11260 FONT_PIXEL_SIZE_QUANTUM.
11261
112622008-02-01 Kenichi Handa <handa@m17n.org>
11263
11264 * font.c (font_parse_fcname): Fix parsing of point-size.
11265 (font_unparse_fcname): Produce symbolic names for style properties.
11266 (font_list_entities): Handle float size correctly.
11267 (font_open_by_name): Prefer `normal' property values if the name
11268 doesn't specify them.
11269
11270 * fontset.c (Finternal_char_font): Use font_get_name, not
11271 Ffont_xlfd_name.
11272
11273 * ftfont.c (ftfont_pattern_entity): Use the numeric value 100 for
11274 FC_WEIGHT_REGULAR. Exclude FC_SIZE and FC_PIXEL_SIZE from listing
11275 pattern. Don't force scalable.
11276
11277 * xftfont.c (xftfont_open): For generating a name, start from
11278 96-byte buffer.
11279
112802008-02-01 Jan Djärv <jan.h.d@swipnet.se>
11281
11282 * frame.h (x_new_fontset2): Fix prototype.
11283
112842008-02-01 Kenichi Handa <handa@m17n.org>
11285
11286 * font.h (struct font_driver): Delete member parse_name.
11287 (font_match_p, font_get_spec, font_parse_fcname)
11288 (font_unparse_fcname): Extern them.
11289 (font_get_name): Adjust prototype.
11290
11291 * font.c (XLFD_SMALLNUM_MASK): Delete this macro.
11292 (XLFD_LARGENUM_MASK): Delete XLFD_ENCODING_MASK from it.
11293 (font_expand_wildcards): Fix handling ENCODING field. Avoid
11294 unnecessary checks for weight, slant, and swidth.
11295 (font_parse_fcname): New function.
11296 (font_unparse_fcname): New function.
11297 (font_parse_name): New function.
11298 (font_match_p): New function.
11299 (font_get_name): Change return value to Lisp string.
11300 (font_get_spec): New function.
11301 (Qunspecified, Qignore_defface): Don't extern them.
11302 (font_find_for_lface): Assume that LFACE is fully specified.
11303 (font_load_for_face): If lface[LFACE_FONT_INDEX] is an font
11304 object, use it for FACE.
11305 (font_open_by_name): Call Ffont_spec with QCname prop. Don't call
11306 driver->parse_name.
11307 (Ffont_spec): Call font_parse_name, not font_parse_xlfd.
11308
11309 * fontset.h (new_fontset_from_font) [USE_FONT_BACKEND]: Adjust
11310 prototype.
11311
11312 * fontset.c (new_fontset_from_font) [USE_FONT_BACKEND]: Delete
11313 argument F. Don't call Fnew_fontset. Instead, directly call
11314 make_fontset.
11315
11316 * frame.h (x_new_fontset2) [USE_FONT_BACKEND]: Adjust prototype.
11317
11318 * frame.c (x_set_font) [USE_FONT_BACKEND]: Adjust for the change
11319 of x_new_fontset2.
11320
11321 * ftfont.c (Qmonospace, Qsans_serif, Qserif, Qmono, Qsans)
11322 (Qsans__serif): New variables.
11323 (ftfont_generic_family_list): New variable.
11324 (syms_of_ftfont): Initialize the above variables.
11325 (ftfont_pattern_entity): Delete argument NAME.
11326 (ftfont_list_generic_family): New function.
11327 (ftfont_parse_name): Delete this function.
11328 (ftfont_list): Try generic family only when FcFontList found no font.
11329 (ftfont_list_family): Fix args to FcObjectSetBuild.
11330
11331 * xfaces.c (check_lface_attrs) [USE_FONT_BACKEND]: Accept font
11332 object in attrs[LFACE_FONT_INDEX].
11333 (set_lface_from_font_name): Cancel all changes for font-backend.
11334 (set_lface_from_font_and_fontset) [USE_FONT_BACKEND]: New
11335 function.
11336 (Finternal_set_lisp_face_attribute) [USE_FONT_BACKEND]: Accept a
11337 font object in QCfont attribute.
11338 (set_font_frame_param) [USE_FONT_BACKEND]: Likewise.
11339 (realize_default_face) [USE_FONT_BACKEND]: Call
11340 set_lface_from_font_and_fontset.
11341
11342 * xfns.c (x_default_font_parameter) [USE_FONT_BACKEND]: Try also
11343 "fixed", and signal error here if no suitable font was found.
11344
11345 * xfont.c (xfont_parse_name): Delete this function.
11346
11347 * xftfont.c (xftfont_open): Change coding style of error
11348 handling. Generate fontconfig's fontname pattern.
11349
11350 * xterm.h (struct x_output) [USE_FONT_BACKEND]: New member fontp.
11351 (FRAME_FONT_OBJECT) [USE_FONT_BACKEND]: New macro.
11352
11353 * xterm.c (x_new_fontset2) [USE_FONT_BACKEND]: Change arguments.
11354 Both args FONTSET and FONT_OBJECT must be existing ones.
11355
113562008-02-01 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
11357
11358 * macterm.c (mac_set_unicode_keystroke_event): Don't use MAKE_CHAR.
11359
113602008-02-01 Kenichi Handa <handa@m17n.org>
11361
11362 * xfont.c (xfont_open, xfont_encode_char): Fix typo.
11363
11364 * font.h (struct font): Fix typo.
11365
11366 * font.c (enum xlfd_field_index): Rename XLFD_XXX_SIZE_INDEX to
11367 XLFD_XXX_INDEX.
11368 (enum xlfd_field_mask): New enum.
11369 (intern_font_field): Changed argument. Change caller. If digits
11370 are followed by non-digits, return a symbol.
11371 (font_expand_wildcards): New function.
11372 (font_parse_xlfd): Fix wildcard handling.
11373 (Ffont_spec): If :name is specified, reflect the info in the other
11374 properties.
11375
11376 * ftfont.c (ftfont_pattern_entity): Fix typo.
11377 (ftfont_list): Enforce FC_LANG in PATTERN to cancel the effect of
11378 locale.
11379
113802008-02-01 Kenichi Handa <handa@m17n.org>
11381
11382 * font.h (Qiso8859_1, Qiso10646_1, Qunicode_bmp): Extern them.
11383
11384 * font.c (Qiso8859_1, Qiso10646_1, Qunicode_bmp): Move from ftfont.c.
11385 (font_unparse_xlfd): Fix argument type declaration. Append "*" if
11386 registry doesn't specify encoding part.
11387 (font_find_for_lface): Pay attention to LFACE_FONT_INDEX.
11388 (font_open_by_name): At first try parsing the name.
11389 (syms_of_font): Declare Qiso8859_1, Qiso10646_1, and Qunicode_bmp
11390 as Lisp symbols.
11391
11392 * fontset.c (reorder_font_vector): Pay attention to the case that
11393 the 3rd element of font_def is nil.
11394 (fontset_font): For the default fontset, append one more fontset
11395 elements for a script-based font specification. Don't add script
11396 attribute on finding a font.
11397 (new_fontset_from_font): Unconditionally set FONTSET_ASCII to the
11398 font name.
11399 (fontset_ascii_font): If a font can't be opened, return nil.
11400
11401 * ftfont.c (Qiso8859_1, Qiso10646_1, Qunicode_bmp): Move to font.c.
11402 (ftfont_pattern_entity): New function.
11403 (ftfont_get_cache): Assume that freetype_font_cache is already
11404 initialized.
11405 (ftfont_list): Handle the case that a file is specified in font
11406 name. Use ftfont_pattern_entity to generate entities.
11407 (ftfont_has_char): Check if the pattern contains FC_CHARSET.
11408 (syms_of_ftfont): Initialize freetype_font_cache.
11409
11410 * xftfont.c (xftfont_open): Make the font name fontconfig's
11411 style. Add BLOCK_INPUT and UNBLOCK_INPUT.
11412 (xftfont_close): Free font->font.name if not NULL.
11413
11414 * xfont.c (xfont_list): If script is specified for a font, return
11415 null_vector.
11416 (xfont_list_family): Declare argument type.
11417
11418 * xfaces.c (set_lface_from_font_name): If a font doesn't have a
11419 name, set LFACE_FONT (lface) to nil.
11420
11421 * xterm.c (x_new_fontset2): If an ASCII font couldn't be loaded,
11422 return Qnil.
11423
114242008-02-01 Kenichi Handa <handa@m17n.org>
11425
11426 * emacs.c (main): Check -enable-font-backend arg after the check of -nl.
11427 (standard_args): Add "-enable-font-backend".
11428
114292008-02-01 Kenichi Handa <handa@m17n.org>
11430
11431 * xftfont.c (xftfont_default_fid): Set fid_known to 1.
11432 (struct xftdraw_list, xftdraw_list): Delete them.
11433 (register_xftdraw, check_xftdraw): Delete them.
11434 (xftfont_prepare_face): Don't call register_xftdraw.
11435 (xftfont_done_face): Don't call check_xftdraw.
11436 (xftfont_draw): Get background color only when with_background is
11437 nonzero.
11438
11439 * xfont.c (xfont_encode_char): Fix calculation of char2b.
11440
114412008-02-01 Kenichi Handa <handa@m17n.org>
11442
11443 These changes are for the new font handling codes.
11444
11445 * Makefile.in (ALL_CFLAGS): Add @FREETYPE_CFLAGS@,
11446 @FONTCONFIG_CFLAGS@, and @LIBOTF_CFLAGS@.
11447 (LIB_X11_LIB): If HAVE_XFT is defined, set to @XFT_LIBS@.
11448 (FONTSRC, FONTOBJ): New variables.
11449 (obj): Add $(FONTOBJ).
11450 (SOME_MACHINE_OBJECTS): Lib_X11_Lib.
11451 (LIBES): Add @FREETYPE_LIBS@, @FONTCONFIG_LIBS@, and
11452 @LIBOTF_LIBS@.
11453 (font.o, ftfont.o, xfont.o, xftfont.o, ftxfont.o): New targets.
11454 (fontset.o, xdisp.o, xfaces.o, xfns.o, xterm.o): Depend on $(FONTSRC).
11455
11456 * font.h, font.c, xfont.c, ftfont.c, xftfont.c, ftxfont.c: New files.
11457
11458 * character.h (Vscript_representative_chars): Extern it.
11459
11460 * character.c (Vscript_representative_chars): New variable.
11461 (syms_of_character): Declare it as a Lisp variable.
11462
11463 * composite.c (get_composition_id) [USE_FONT_BACKEND]: If
11464 enable_font_backend is nonzero, accept the composition method
11465 COMPOSITION_WITH_GLYPH_STRING.
11466
11467 * composite.h (enum composition_method) [USE_FONT_BACKEND]: New
11468 enumeration COMPOSITION_WITH_GLYPH_STRING.
11469
11470 * dispextern.h (struct glyph_string) [USE_FONT_BACKEND]: New
11471 members clip_x, clip_y, clip_width, and clip_height.
11472 (struct face) [USE_FONT_BACKEND]: New members font_info and extra.
11473
11474 * emacs.c (main) [USE_FONT_BACKEND]: Handle arg
11475 --enable-font-backend. Call syms_of_font.
11476
11477 * fns.c (assoc_no_quit): New function.
11478
11479 * fontset.h (FONT_INFO_FROM_FACE): New macro.
11480 (face_for_font, new_fontset_from_font)
11481 (fontset_ascii_font) [USE_FONT_BACKEND]: Extern them.
11482
11483 * fontset.c [USE_FONT_BACKEND]: Include "font.h".
11484 (fontset_font, fontset_ascii, face_for_char)
11485 (make_fontset_for_ascii_face, Ffont_info)
11486 (Finternal_char_font) [USE_FONT_BACKEND]: If enable_font_backend
11487 is nonzero, use font-backend mechanism.
11488 (find_font_encoding): Make it non-static.
11489 (new_fontset_from_font, fontset_ascii_font) [USE_FONT_BACKEND]:
11490 New functions.
11491
11492 * frame.h (struct frame): New members resx and resy.
11493 (struct frame) [USE_FONT_BACKEND]: New member font_driver_list.
11494 (x_new_fontset2) [USE_FONT_BACKEND]: Extern it.
11495
11496 * frame.c [USE_FONT_BACKEND]: Include "font.h".
11497 (make_frame, x_set_font) [USE_FONT_BACKEND]: Use font-backend mechanism.
11498
11499 * lisp.h (assoc_no_quit): Extern it.
11500
11501 * xdisp.c: If USE_FONT_BACKEND is defined, include "font.h".
11502 Through out the file, use FONT_INFO_FROM_FACE instead of
11503 FONT_INFO_FROM_ID, use get_per_char_metric instead of
11504 rif->per_char_metric.
11505 (handle_composition_prop) [USE_FONT_BACKEND]: If the composition
11506 method is COMPOSITION_WITH_GLYPH_STRING, just set it->c to ' '.
11507 (get_glyph_face_and_encoding, fill_composite_glyph_string)
11508 (get_char_face_and_encoding, BUILD_COMPOSITE_GLYPH_STRING)
11509 (x_produce_glyphs) [USE_FONT_BACKEND]: If enable_font_backend is
11510 nonzero, use font-backend mechanism.
11511 (get_per_char_metric): New function.
11512
11513 * xfaces.c [USE_FONT_BACKEND]: Include "font.h".
11514 (set_lface_from_font_name)
11515 (set_font_frame_param, free_realized_face)
11516 (prepare_face_for_display, clear_face_gcs)
11517 (Finternal_set_font_selection_order, realize_x_face)
11518 [USE_FONT_BACKEND]: If enable_font_backend is nonzero, use
11519 font-backend mechanism.
11520 (clear_face_cache) [USE_FONT_BACKEND]: Don't call clear_font_table.
11521 (load_face_font) [USE_FONT_BACKEND]: Abort.
11522 (face_symbolic_value, face_symbolic_weight, face_symbolic_slant)
11523 (face_symbolic_swidth, face_for_font) [USE_FONT_BACKEND]: New functions.
11524
11525 * xfns.c [USE_FONT_BACKEND]: Include "font.h".
11526 (x_default_font_parameter) [USE_FONT_BACKEND]: New function.
11527 (Fx_create_frame) [USE_FONT_BACKEND]: If enable_font_backend is
11528 nonzero, register all available font drivers. Call
11529 x_default_font_parameter for deciding a font.
11530 (x_create_tip_frame) [USE_FONT_BACKEND]: Likewise.
11531
11532 * xterm.c [USE_FONT_BACKEND]: Include "font.h".
11533 (x_set_mouse_face_gc, x_set_glyph_string_clipping)
11534 (x_set_glyph_string_clipping_exactly)
11535 (x_compute_glyph_string_overhangs)
11536 (x_draw_glyph_string_foreground)
11537 (x_draw_composite_glyph_string_foreground, x_draw_glyph_string)
11538 (x_free_frame_resources) [USE_FONT_BACKEND]: If
11539 enable_font_backend is nonzero, use font-backend mechanism.
11540 (x_new_fontset2) [USE_FONT_BACKEND]: New function.
11541
115422008-02-01 Kenichi Handa <handa@m17n.org>
11543
11544 * coding.c (coding_inherit_eol_type): If PARENT is nil, inherit from
11545 system_eol_type.
11546 (syms_of_coding): Initialize system_eol_type.
11547
11548 * process.c (Fset_process_coding_system): Inherit system's eol
11549 format if necessary.
11550
115512008-02-01 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
11552
11553 * macgui.h (USE_ATSUI): Don't enable on emacs-unicode-2 branch.
11554
115552008-02-01 Kenichi Handa <handa@m17n.org>
11556
11557 * coding.c (decode_eol): Pay attention to buffer relocation in
11558 del_range_2.
11559 (decode_coding): Call decode_eol before restoring undo_list.
11560
115612008-02-01 Kenichi Handa <handa@m17n.org>
11562
11563 * charset.c (Fdefine_charset_internal): Fix setting of
11564 emacs_mule_bytes.
11565
115662008-02-01 Kenichi Handa <handa@m17n.org>
11567
11568 * keyboard.c (read_char): Check if C is a character or not before
11569 looking up Vkeyboard_translate_table.
11570
115712008-02-01 Kenichi Handa <handa@m17n.org>
11572
11573 * coding.c (DECODE_EMACS_MULE_20_RELATIVE_COMPOSITION): Fix
11574 condition to terminate the loop.
11575
115762008-02-01 Kenichi Handa <handa@m17n.org>
11577
11578 * coding.c (produce_composition): Compare charbuf[i] instead of
11579 args[i] against 0.
11580 (Fterminal_coding_system): Use EQ to compare Lisp objects.
11581
115822008-02-01 Kenichi Handa <handa@m17n.org>
11583
11584 * coding.c (DECODE_COMPOSITION_START): If the source is short, set
11585 coding->result to CODING_RESULT_INSUFFICIENT_SRC.
11586 (decode_coding_gap): Set CODING_MODE_LAST_BLOCK after the call of
11587 detect_coding.
11588 (emacs_mule_char): Handle old style (Emacs 20) component character
11589 of a composition.
11590 (DECODE_EMACS_MULE_COMPOSITION_RULE_20)
11591 (DECODE_EMACS_MULE_20_RULEBASE_COMPOSITION): Fix parsing a
11592 composition rule.
11593 (decode_coding_emacs_mule): Handle invalid bytes correctly.
11594
115952008-02-01 Kenichi Handa <handa@m17n.org>
11596
11597 * coding.c (encode_coding_ccl): Allocate destination dynamically
11598 when necessary.
11599
116002008-02-01 Kenichi Handa <handa@m17n.org>
11601
11602 * ccl.c (Fccl_execute_on_string): Fix the condition of terminating
11603 the loop. When quitted, show a proper error message.
11604
116052008-02-01 Kenichi Handa <handa@m17n.org>
11606
11607 * xterm.c (x_set_glyph_string_clipping_exactly): Set
11608 src->clip_head and src->clip_tail temporarily instead of src->hl.
11609
11610 * ccl.c (CCL_WRITE_STRING): Handle a flag bit for multibyte
11611 character sequence.
11612 (Fccl_execute_on_string): Use ASET, not XSET.
11613
116142008-02-01 Kenichi Handa <handa@m17n.org>
11615
11616 * search.c (search_buffer): Fix handling of "\\" in a trivial regexp.
11617
116182008-02-01 Kenichi Handa <handa@m17n.org>
11619
11620 * coding.c (decode_coding): Fix the condition of terminating the
11621 decoding loop.
11622
116232008-02-01 Kenichi Handa <handa@m17n.org>
11624
11625 * data.c (Faset): On setting a character bigger than 255 in a
11626 unibyte string, signal an error instead of make the string multibyte.
11627
116282008-02-01 Kenichi Handa <handa@m17n.org>
11629
11630 * charset.c (map_charset_chars): Fix for ascii-compatible charset
11631 made by a mapping table.
11632
116332008-02-01 Kenichi Handa <handa@m17n.org>
11634
11635 * xdisp.c (fill_composite_glyph_string): Check s->face is NULL or
11636 not.
11637 (BUILD_COMPOSITE_GLYPH_STRING): If C is TAB, set s->face to NULL.
11638 (x_produce_glyphs): If CH is TAB, set cmp->offsets properly.
11639
11640 * xterm.c (x_draw_composite_glyph_string_foreground): Check
11641 s->face is NULL or not.
11642
116432008-02-01 Kenichi Handa <handa@m17n.org>
11644
11645 * xterm.c (x_set_glyph_string_clipping_exactly): New function.
11646 (x_draw_glyph_string): Fix drawing of right_overhang and
11647 left_overhang around/on cursor.
11648
11649 * xdisp.c (draw_glyphs): Fix inclusion of right_overwriting glyphs.
11650
116512008-02-01 Kenichi Handa <handa@m17n.org>
11652
11653 * xdisp.c (x_produce_glyphs): Handle composition with TAB.
11654
116552008-02-01 Kenichi Handa <handa@m17n.org>
11656
11657 * coding.c (Fdefine_coding_system_internal)
11658 (Fdefine_coding_system_alias): Avoid a duplicated element in
11659 Vcoding_system_alist.
11660
116612008-02-01 Kenichi Handa <handa@m17n.org>
11662
11663 * xterm.c (handle_one_xevent): Handle keysyms 0x1000000..0x10000FF.
11664
11665 * coding.c (Qcoding_system_define_form): New variable.
11666 (syms_of_coding): Intern and staticpro it.
11667 (Fcoding_system_p): Check Qcoding_system_define_form.
11668 (Fcheck_coding_system): Try to autoload the definition of CODING-SYSTEM.
11669
11670 * coding.h (CODING_SYSTEM_P): If ID is not available, call
11671 Fcoding_system_p.
11672 (CHECK_CODING_SYSTEM): If ID is not available, call
11673 Fcheck_coding_system.
11674 (CHECK_CODING_SYSTEM_GET_SPEC, CHECK_CODING_SYSTEM_GET_ID):
11675 Try also Fcheck_coding_system.
11676
116772008-02-01 Kenichi Handa <handa@m17n.org>
11678
11679 * coding.c (code_conversion_restore): GCPRO arg.
11680
116812008-02-01 Kenichi Handa <handa@m17n.org>
11682
11683 * character.c (lisp_string_width): Check multibyteness of STRING.
11684
116852008-02-01 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
11686
11687 * macterm.c (mac_encode_char): Call ccl_driver with the last arg
11688 Qnil. Use JIS_TO_SJIS instead of ENCODE_SJIS.
11689 (decode_mac_font_name): Use decode_coding_c_string instead of
11690 decode_coding.
11691 (x_load_font): Initialize fontp->fontset to -1. Set
11692 fontp->encoding_type.
11693
116942008-02-01 Kenichi Handa <handa@m17n.org>
11695
11696 * search.c (search_buffer): Give up BM search on case-fold-search
11697 if one of a target character has a case-equivalence of different
11698 byte length even if that target charcter is an ASCII.
11699 (simple_search): Fix calculation of byte length of matched text.
11700 (boyer_moore): Fix handling of case-equivalent multibyte characters.
11701
117022008-02-01 Kenichi Handa <handa@m17n.org>
11703
11704 * coding.c (decode_coding): Fix handling of invalid bytes.
11705
117062008-02-01 Kenichi Handa <handa@m17n.org>
11707
11708 * xterm.c (handle_one_xevent): Handle keysyms directly mapped to
11709 Unicode characters.
11710
117112008-02-01 Kenichi Handa <handa@m17n.org>
11712
11713 * coding.c (encode_coding_object): If a pre-write-conversion
11714 function makes a new buffer, kill it.
11715
117162008-02-01 Kenichi Handa <handa@m17n.org>
11717
11718 * coding.c (QCascii_compatible_p): New variable.
11719 (syms_of_coding): Initialize it.
11720 (ONE_MORE_BYTE, ONE_MORE_BYTE_NO_CHECK): Decrement `src' before
11721 calling string_char.
11722 (record_conversion_result): Add `default:' case.
11723 (coding_charset_list): Delete unused variable `coding_type'.
11724 (Fdefine_coding_system_internal): Add `ascii-compatible-p'
11725 property in the plist of the coding system.
11726 (Fcoding_system_put): Check QCascii_compatible_p.
11727
117282008-02-01 Miles Bader <miles@gnu.org>
11729
11730 * xfaces.c (Finternal_lisp_face_equal_p): Restore previously
11731 removed calculation of frame `f', as it's now used.
11732
117332008-02-01 Kenichi Handa <handa@m17n.org>
11734
11735 * Makefile.in (RUN_TEMACS): Include "-nl" if HAVE_SHM is defined.
11736 (emacs${EXEEXT}): Run $(RUN_TEMACS) unconditionally.
11737 (UNIDATA): New variable.
11738 (${lispsource}international/charprop.el): Depends on ${UNIDATA}.
11739 (bootstrap-emacs${EXEEXT}): Depends on charprop.el. Run
11740 $(RUN_TEMACS) unconditionally.
11741
117422008-02-01 Kenichi Handa <handa@m17n.org>
11743
11744 * Makefile.in (temacs${EXEEXT}): Build charprop.el if necessary.
11745 (admindir): New variable.
11746 ($(lispsource)international/charprop.el): New target.
11747
117482008-02-01 Miles Bader <miles@gnu.org>
11749
11750 * character.c (chars-in-region): Remove obsolete function.
11751 (syms_of_character): Remove its initialization.
11752
117532008-02-01 Benjamin Riefenstahl <b.riefenstahl@turtle-trading.net>
11754
11755 * w32select.c (validate_coding_system)
11756 (setup_windows_coding_system): New functions.
11757 (convert_to_handle_as_coded, Fw32_get_clipboard_data): Use
11758 setup_windows_coding_system.
11759 (setup_config, Fw32_get_clipboard_data): Use
11760 validate_coding_system.
11761 (Fx_selection_exists): Move call to setup_config to a place
11762 where signals are allowed.
11763
11764 * lisp.h (Fcoding_system_base, Fcoding_system_eol_type)
11765 (Fcheck_coding_system): Add declarations.
11766
117672008-02-01 Kenichi Handa <handa@m17n.org>
11768
11769 * charset.c (load_charset_map_from_vector): Fix for the first iteration.
11770
117712008-02-01 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
11772
11773 * macfns.c (Fx_create_frame, x_create_tip_frame): Pass Lisp
11774 string as the second argument for x_new_fontset.
11775
117762008-02-01 Kenichi Handa <handa@m17n.org>
11777
11778 * coding.c (decode_coding_object): Use safe_call1 instead of call1.
11779 (encode_coding_object): Use safe_call instead of call2.
11780
117812008-02-01 Kenichi Handa <handa@m17n.org>
11782
11783 * fontset.c (Fset_fontset_font): Check family element of a given vector.
11784
11785 * Makefile.in (lisp): Include charprop.el.
11786
117872008-02-01 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
11788
11789 * macfns.c (Fx_create_frame, x_create_tip_frame): Fix crash.
11790 Not sure if it's unnecessary.
11791
117922008-02-01 Steven Tamm <steventamm@mac.com>
11793
11794 * macfns.c (Fx_create_frame, x_create_tip_frame): ifdef'd out
11795 some possibly unnecessary fontset checking code that crashed
11796 when creating a new frame.
11797
117982008-02-01 Kenichi Handa <handa@m17n.org>
11799
11800 * xfaces.c (merge_faces): Fix argument to lookup_derived_face and
11801 lookup_face.
11802
11803 * xdisp.c (Fformat_mode_line): Fix argument to lookup_named_face.
11804
11805 * fringe.c (draw_fringe_bitmap_1): Fix argument to lookup_named_face.
11806
118072008-02-01 Kenichi Handa <handa@m17n.org>
11808
11809 * coding.c: Cancel the change done in HEAD on 2008-02-01.
11810 (coding_charset_list): New function.
11811
11812 * coding.h (coding_charset_list): Extern it.
11813
118142008-02-01 Kenichi Handa <handa@m17n.org>
11815
11816 * fontset.c (Fset_fontset_font): Call find_font_encoding with
11817 concatenation of family and registry.
11818
118192008-02-01 Kenichi Handa <handa@m17n.org>
11820
11821 * character.h (BYTE8_STRING): Fix typo.
11822
11823 * editfns.c (Ftranslate_region_internal): Don't convert unibyte
11824 string to multibyte (sync to HEAD).
11825
11826 * casefiddle.c (casify_region): Handle changes in byte-length
11827 using replace_range_2 (sync to HEAD).
11828
118292008-02-01 Andreas Schwab <schwab@suse.de>
11830
11831 * chartab.c (map_char_table): GCPRO table and arg.
11832
118332008-02-01 Kenichi Handa <handa@m17n.org>
11834
11835 * syntax.c (skip_syntaxes): Return lispy 0 (not nil) if point is
11836 already at limit.
11837
118382008-02-01 Kenichi Handa <handa@m17n.org>
11839
11840 * fontset.c (fs_load_font): Use fast_string_match_ignore_case
11841 instead of fast_c_string_match_ignore_case.
11842 (find_font_encoding): Change argument to Lisp_Object. Use
11843 fast_string_match_ignore_case instead of
11844 fast_c_string_match_ignore_case. Change caller.
11845
118462008-02-01 Kenichi Handa <handa@m17n.org>
11847
11848 * xdisp.c (get_next_display_element): In unibyte case, decide to
11849 display in octal form by checking a character by
11850 UNIBYTE_CHAR_HAS_MULTIBYTE_P.
11851
11852 * charset.c (Fset_unibyte_charset): Setup unibyte_has_multibyte_table.
11853
11854 * character.c (unibyte_has_multibyte_table): New variable.
11855
11856 * character.h (unibyte_has_multibyte_table): Extern it.
11857 (UNIBYTE_CHAR_HAS_MULTIBYTE_P): New macro.
11858
118592008-02-01 Kenichi Handa <handa@m17n.org>
11860
11861 * coding.c (encode_coding_iso_2022): Fix handling of charset
11862 annotation.
11863
118642008-02-01 Kenichi Handa <handa@m17n.org>
11865
11866 * coding.c (setup_coding_system): If coding_system is nil, use
11867 Qundecided.
11868 (Fterminal_coding_system): Return nil if terminal coding system is
11869 `undecided'.
11870 (syms_of_coding): Define coding-system `undecided' here. Setup
11871 terminal_coding as `undecided'.
11872
118732008-02-01 Kenichi Handa <handa@m17n.org>
11874
11875 * xdisp.c (message_dolog, set_message_1): Call
11876 unibyte_char_to_multibyte with arg type int.
11877
11878 * lread.c (read1): Fix reading of a char-table.
11879
11880 * print.c (print_object): Include sub char-table in circularities
11881 detection.
11882
118832008-02-01 Kenichi Handa <handa@m17n.org>
11884
11885 * keymap.c (where_is_internal_2): Fix for the case that KEY is a cons.
11886 Append the found sequences in car of ARGS instead of prepending.
11887
118882008-02-01 Kenichi Handa <handa@m17n.org>
11889
11890 * fileio.c (report_file_error): Make a unibyte string from
11891 strerror (errorno).
11892 (Fsubstitute_in_file_name): Fix the arg to
11893 unibyte_char_to_multibyte. It is evaluated twice.
11894
118952008-02-01 Kenichi Handa <handa@m17n.org>
11896
11897 * charset.h (CHAR_CHARSET): Shortcut for ASCII case.
11898
118992008-02-01 Kenichi Handa <handa@m17n.org>
11900
11901 * coding.c (detect_coding_utf_16): Don't set detect_info->found if
11902 BOM is not found.
11903 (detect_coding, detect_coding_system): Optimization for ISO-2022
11904 when no 8-bit data is found.
11905
119062008-02-01 Jason Rumney <jasonr@gnu.org>
11907
11908 * w32fns.c (x_to_w32_font): Update to use new coding struct.
11909
119102008-02-01 Kenichi Handa <handa@m17n.org>
11911
11912 * charset.c (Fdeclare_equiv_charset, Fiso_charset): Fix handing of
11913 CHARS.
11914
119152008-02-01 Steven Tamm <steventamm@mac.com>
11916
11917 * macterm.c (mac_encode_char): Add charset argument and update
11918 to use encoding_type.
11919 (x_new_font, x_new_fontset): Merge in changes from xterm.c;
11920 switch to pure fontset.
11921 (decode_mac_font_name): Temporarily remove decoding.
11922 (x_font_name_to_mac_font_name): Temporarily remove encoding.
11923 (x_load_font): Temporarily remove encoding.
11924
119252008-02-01 Kenichi Handa <handa@m17n.org>
11926
11927 * xfaces.c (Fface_font): If frame is not on a window system,
11928 ignore CHARACTER arg. If HAVE_WINDOW_SYSTEM is not defined, don't
11929 refer to face->font.
11930 (split_font_name_into_vector, build_font_name_from_vector)
11931 (lookup_non_ascii_face, realize_non_ascii_face): Define them only
11932 when HAVE_WINDOW_SYSTEM is defined.
11933
119342008-02-01 Kenichi Handa <handa@m17n.org>
11935
11936 * xdisp.c (BUILD_GLYPH_STRINGS): Check if s is NULL.
11937 (x_produce_glyphs): Fix setting of members of cmp in case
11938 cmp->glyph_len is zero.
11939
11940 * fontset.c (Fset_fontset_font): Fix docstring.
11941 (Ffontset_info): Make it backward compatible. New arg ALL.
11942
119432008-02-01 Kim F. Storm <storm@cua.dk>
11944
11945 * process.c (read_process_output): Grow decoding_buf when needed;
11946 this could cause a crash in allocate_string and compact_small_strings.
11947
119482008-02-01 Kenichi Handa <handa@m17n.org>
11949
11950 * fileio.c (WRITE_BUF_SIZE): Delete this macro.
11951
119522008-02-01 Kenichi Handa <handa@m17n.org>
11953
11954 * coding.c (setup_coding_system): Set coding->common_flags
11955 correctly for raw-text.
11956 (consume_chars): On encoding unibyte text by raw-text, don't check
11957 multibyte form.
11958 (encode_coding): On encoding by raw-text, never use translation tables.
11959
11960 * fileio.c (e_write): Short cut for the case of no encoding.
11961
119622008-02-01 Kenichi Handa <handa@m17n.org>
11963
11964 * coding.c (detect_coding, detect_coding_system): Delete unused
11965 variables.
11966
119672008-02-01 Kenichi Handa <handa@m17n.org>
11968
11969 * coding.c (encode_coding_utf_8): Fix handling of raw-byte char.
11970 (consume_chars): Fix handling of 8-bit bytes in unibyte source.
11971
119722008-02-01 Kenichi Handa <handa@m17n.org>
11973
11974 * coding.c (Ffind_coding_systems_region_internal): Include
11975 raw-text and no-conversion in the result.
11976
119772008-02-01 Kenichi Handa <handa@m17n.org>
11978
11979 * fontset.c (find_font_encoding): Return `ascii' for unknown encoding.
11980 (load_font_get_repertory): Delete unnecessary check of ENCODING of
11981 FONT_DEF.
11982 (font_def_arg, add_arg, from_arg, to_arg): New args.
11983 (set_fontset_font): Change argument.
11984 (Fset_fontset_font): Fix for the case that TARGET is a script
11985 name and charset name.
11986 (new_fontset_from_font_name): Fix argument to Fnew_fontset.
11987
119882008-02-01 Kenichi Handa <handa@m17n.org>
11989
11990 * fontset.c (fontset_font): Rename from fontset_face. Change return
11991 value.
11992 (face_suitable_for_char_p, face_for_char): Adjust for the change
11993 of fontset_font.
11994 (make_fontset_for_ascii_face): Fix setting of the fontset element
11995 for ASCII.
11996 (Finternal_char_font): Use fontset_font instead of FACE_FOR_CHAR
11997 to get a font name.
11998 (Ffontset_info): Adjust for the change of fontset_font.
11999
12000 * coding.c (emacs_mule_char): Check invalid code more rigidly.
12001
12002 * character.h (LEADING_CODE_LATIN_1_MIN)
12003 (LEADING_CODE_LATIN_1_MAX): Delete these macros.
12004
120052008-02-01 Kenichi Handa <handa@m17n.org>
12006
12007 * editfns.c (check_translation): New function.
12008 (Ftranslate_region_internal): Handle M:N mapping.
12009
120102008-02-01 Kenichi Handa <handa@m17n.org>
12011
12012 * xfaces.c (xlfd_point_size): Set font->numeric[XLFD_PIXEL_SIZE].
12013
120142008-02-01 Kenichi Handa <handa@m17n.org>
12015
12016 * coding.c (DECODE_DESIGNATION): Set chars_96 to -1 instead of
12017 goto invalid_code.
12018 (decode_coding_iso_2022): Fix handling of invalid designation.
12019
12020 * fileio.c (Finsert_file_contents): Be sure to call unbind_to
12021 after calling code_conversion_save.
12022
120232008-02-01 Kenichi Handa <handa@m17n.org>
12024
12025 * xdisp.c (handle_auto_composed_prop): Fix Lisp_Object/int mixup.
12026
12027 * print.c (print_prune_string_charset): Fix Lisp_Object/int mixup.
12028
12029 * fontset.c: Include "intervals.h".
12030 (fontset_face): Fix comparing of Lisp_Objects.
12031 (free_face_fontset, new_fontset_from_font_name): Fix
12032 Lisp_Object/int mixup.
12033
12034 * editfns.c (Ftranslate_region_internal): Fix Lisp_Object/int mixup.
12035
12036 * coding.c: Add many prototypes for static functions.
12037 (get_translation_table): Allow max_lookup to be NULL.
12038 (decode_coding, Ffind_coding_systems_region_internal)
12039 (Funencodable_char_position, Fcheck_coding_systems_region): Call
12040 get_translation_table with max_lookup NULL.
12041
120422008-02-01 Kenichi Handa <handa@m17n.org>
12043
12044 * coding.c (get_translation_table): Declare it as Lisp_Object.
12045 (LOOKUP_TRANSLATION_TABLE): New macro.
12046 (produce_chars, consume_chars): Use LOOKUP_TRANSLATION_TABLE
12047 instead of CHAR_TABLE_REF.
12048
120492008-02-01 Kenichi Handa <handa@m17n.org>
12050
12051 * coding.c (MAX_ANNOTATION_LENGTH): Adjust for the change of
12052 annotation data format.
12053 (ADD_ANNOTATION_DATA, ADD_COMPOSITION_DATA, ADD_CHARSET_DATA):
12054 Change arguments FROM and TO to single argument NCHARS. Change caller.
12055 (decode_coding_utf_8, decode_coding_utf_16, decode_coding_emacs_mule)
12056 (decode_coding_iso_2022, decode_coding_sjis, decode_coding_big5)
12057 (decode_coding_ccl, decode_coding_charset): Pay attention to
12058 coding->charbuf_used.
12059 (get_translation): New function.
12060 (produce_chars): New arguments translation_table and last_block.
12061 Translate characters here. Return number of carryover chars.
12062 Change caller.
12063 (produce_composition): New argument pos. Change caller.
12064 Adjust for the change of annotation data format.
12065 (produce_charset, produce_annotation): Likewise.
12066 (decode_coding, encode_coding): Don't call translate_chars.
12067 (consume_chars): New arg translation_table. Change caller.
12068 (translate_chars): Delete.
12069 (syms_of_coding): Make translation-table's number of extra slots 2.
12070
120712008-02-01 Kenichi Handa <handa@m17n.org>
12072
12073 * search.c (simple_search): Fix setting this_pos_byte in backward
12074 search.
12075
12076 * coding.c (detect_coding_emacs_mule): Fix counting of encoded
12077 byte sequence.
12078 (detect_coding_ccl): Fix setting of the variable valids.
12079
120802008-02-01 Kenichi Handa <handa@m17n.org>
12081
12082 * xterm.c (x_list_fonts): Fix the detection of an auto-scaled font.
12083
12084 * coding.c (decode_coding_utf_16): Fix handling of surrogate pair.
12085
12086 * editfns.c (Ftranslate_region_internal): Rename from
12087 Ftranslate_region. Accept a char-table in TABLE.
12088 (syms_of_editfns): Defsubr Stranslate_region_internal.
12089
12090 * xfaces.c (set_lface_from_font_name): If a font is specified for
12091 a frame, generate a fontset from the font.
12092 (build_scalable_font_name): If the scalable font is requested for
12093 a specific size, don't change that size.
12094 (try_font_list): Try a scalable font also in the case that a
12095 pattern string is specified.
12096
120972008-02-01 Kenichi Handa <handa@m17n.org>
12098
12099 * xfaces.c (Fface_font): New optional arg CHARACTER.
12100
121012008-02-01 Kenichi Handa <handa@m17n.org>
12102
12103 * charset.h (CHARSET_OFFSET): New macro.
12104
121052008-02-01 Kenichi Handa <handa@m17n.org>
12106
12107 * xterm.c (x_get_font_repertory): Fix for non-Unicode-bmp charset.
12108
12109 * fontset.c (fontset_face): Handle the case that repertory is a
12110 char-table.
12111 (find_font_encoding): Return nil for unknown encoding.
12112 (Fset_fontset_font): Ignore a font of unknown encoding.
12113
121142008-02-01 Kenichi Handa <handa@m17n.org>
12115
12116 * keymap.c (describe_vector): Handle default value of a char table.
12117
12118 * fontset.c (fontset_face): Handle fallback fonts correctly.
12119 (Ffontset_info): Return infomation about fallback fonts.
12120
121212008-02-01 Kenichi Handa <handa@m17n.org>
12122
12123 * fontset.c (FONTSET_DEFAULT): New macro.
12124 (FONTSET_ADD, fontset_add): Handle the case that range is nil.
12125 (Fset_fontset_font): Change the 2nd arg name to TARGET, and handle
12126 the case that it is nil.
12127 (dump_fontset): Call FONTSET_DEFAULT, not FONTSET_FALLBACK.
12128 (syms_of_fontset): Set char-table-extra-slots property of fontset to 9.
12129
12130 * charset.h (CHAR_CHARSET_P): Fix for the case that the method is
12131 subset or superset.
12132
121332008-02-01 Kenichi Handa <handa@m17n.org>
12134
12135 * emacs.c (main): Call init_charset after syms_of_XXX.
12136
12137 * charset.c (Vcharset_map_directory): Delete.
12138 (Vcharset_map_path): New variable.
12139 (load_charset_map_from_file): Use Vcharset_map_path instead.
12140 (init_charset): Initialize Vcharset_map_path.
12141 (syms_of_charset): Delete declaration of "charset-map-directory",
12142 add declaration of "charset-map-path".
12143
121442008-02-01 Kenichi Handa <handa@m17n.org>
12145
12146 * fns.c (string_char_to_byte, string_byte_to_char): Optimize for
12147 ASCII only string.
12148
12149 * fileio.c (Finsert_file_contents): Avoid detecting a code twice.
12150
12151 * coding.c (detect_coding_iso_2022): Fix handling of SS2 and SS3.
12152 (detect_coding, detect_coding_system): Treat '\0' as normal ASCII byte.
12153
121542008-02-01 Kenichi Handa <handa@m17n.org>
12155
12156 * coding.h (SJIS_TO_JIS2, JIS_TO_SJIS2): New macros.
12157
12158 * coding.c (QCmnemonic, QCdefalut_char)
12159 (QCdecode_translation_table, QCencode_translation_table)
12160 (QCpost_read_conversion, QCpre_write_conversion): New variables.
12161 (get_translation_table): Return a list of translation tables if
12162 necessary.
12163 (decode_coding): Call get_translation_table with ENCODEP 0.
12164 (char_encodable_p): If translation_table is non-nil, always call
12165 translate_char.
12166 (Fdefine_coding_system_internal): Accept list of translation
12167 tables as :encode-translation-table and :decode-translation-table.
12168 (Fcoding_system_put): New function.
12169 (syms_of_coding): Declare new symbols. Defsubr
12170 Scoding_system_put.
12171 (decode_coding_sjis, encode_coding_sjis): Handle 4th charset,
12172 typically JISX0212.
12173
12174 * charset.c (map_charset_chars): Fix arg to map_charset_chars in
12175 when the charset is superset type.
12176
12177 * character.c (translate_char): Accept list of translation tables.
12178
121792008-02-01 Kenichi Handa <handa@m17n.org>
12180
12181 * coding.h (enum coding_attr_index): New member coding_attr_trans_tbl.
12182 (CODING_ATTR_TRANS_TBL): New macro.
12183
12184 * coding.c (get_translation_table): New function.
12185 (translate_chars): Fix the bug of skipping annotation data.
12186 (decode_coding, encode_coding): Utilize get_translation_table.
12187 (char_encodable_p, Funencodable_char_position): Translate char if
12188 necessary.
12189 (Ffind_coding_systems_region_internal)
12190 (Fcheck_coding_systems_region): Setup translation table for encode
12191 in a coding system attribute vector in advance.
12192 (Fdefine_coding_system_internal): Allow a symbol as translation
12193 table. For shift-jis type coding system, allow 4th charset.
12194
121952008-02-01 Kenichi Handa <handa@m17n.org>
12196
12197 * coding.c (decode_coding_sjis): Check the first byte rigidly.
12198
12199 * xdisp.c (get_next_display_element): Pass -1 as POS to
12200 FACE_FOR_CHAR if displaying a C-string.
12201
122022008-02-01 Kenichi Handa <handa@m17n.org>
12203
12204 * composite.c (get_composition_id): Handle xoff and yoff in a
12205 composition rule.
12206
12207 * composite.h (COMPOSITION_DECODE_RULE): New arg xoff and yoff.
12208 (struct composition): New member lbearing and rbearing.
12209
12210 * xdisp.c (move_it_to): Optimize for the case (op & MOVE_TO_Y).
12211 (x_get_glyph_overhangs): Handle a composition glyph.
12212 (x_produce_glyphs): Setup lbearing and rbreaing for a composition glyph.
12213
12214 * xterm.c (x_compute_glyph_string_overhangs): Handle also a
12215 composition glyph.
12216
122172008-02-01 Kenichi Handa <handa@m17n.org>
12218
12219 * print.c: Include charset.h.
12220 (Vprint_charset_text_property): New variable.
12221 (Qdefault): Extern it.
12222 (PRINT_STRING_NON_CHARSET_FOUND)
12223 (PRINT_STRING_UNSAFE_CHARSET_FOUND): New macros.
12224 (print_check_string_result): New variable.
12225 (print_check_string_charset_prop): New function.
12226 (print_prune_charset_plist): New variable.
12227 (print_prune_string_charset): New function.
12228 (print_object): Call print_prune_string_charset if
12229 Vprint_charset_text_property is not t.
12230 (print_interval): Print nothing if interval->plist is nil.
12231 (syms_of_print): Declare Vprint_charset_text_property as a lisp
12232 variable. Init and staticpro print_prune_charset_plist.
12233
122342008-02-01 Kenichi Handa <handa@m17n.org>
12235
12236 * fontset.c (new_fontset_from_font_name): Use the specified font
12237 for all characters in the new fontset.
12238
12239 * macterm.c (x_set_mouse_face_gc): Call FACE_FOR_CHAR with POS and
12240 OBJECT args.
12241
12242 * xdisp.c (x_produce_glyphs): Call FACE_FOR_CHAR with POS and
12243 OBJECT args for composition too.
12244
12245 * w32term.c (x_set_mouse_face_gc): Call FACE_FOR_CHAR with POS and
12246 OBJECT args.
12247
122482008-02-01 Kenichi Handa <handa@m17n.org>
12249
12250 * dispextern.h (FACE_FOR_CHAR): New args POS and OBJECT.
12251
12252 * fontset.c (reorder_font_vector): Adjust for the change of
12253 FONT_DEF format.
12254 (fontset_face): New arg id. Change caller.
12255 (face_for_char): New args pos and object.
12256 (make_fontset_for_ascii_face): Adjust for the change of FONT_DEF format.
12257 (fs_query_fontset): Check NAME by Fassoc too.
12258 (Fset_fontset_font): Allow non-XLFD font name.
12259 (Ffontset_info): Adjust for the change of FONT_DEF format.
12260
12261 * fontset.h (face_for_char): Adjust prototype.
12262
12263 * xdisp.c (face_before_or_after_it_pos, get_next_display_element)
12264 (append_space, extend_face_to_end_of_line)
12265 (get_char_face_and_encoding, BUILD_COMPOSITE_GLYPH_STRING)
12266 (x_produce_glyphs): Call FACE_FOR_CHAR with POS and OBJECT args.
12267
12268 * xfaces.c (compute_char_face): Call FACE_FOR_CHAR with
12269 POS and OBJECT args.
12270
12271 * xterm.c (x_set_mouse_face_gc): Call FACE_FOR_CHAR with
12272 POS and OBJECT args.
12273
122742008-02-01 Jason Rumney <jasonr@gnu.org>
12275
12276 * w32select.c (Fw32_set_clipboard_data): Avoid potential realloc
12277 of GlobalAlloc'ed memory.
12278
122792008-02-01 Kenichi Handa <handa@m17n.org>
12280
12281 * ccl.c (Fccl_execute_on_string): Fix the condition of loop.
12282
12283 * charset.h (charset_table_used): Delete extern.
12284
12285 * charset.c (charset_table_used): Make it static.
12286 (map_charset_chars): Fix args to c_function with.
12287
12288 * chartab.c (map_sub_char_table_for_charset): Fix args to
12289 c_function with.
12290
12291 * coding.h (enum coding_result_code): Delete
12292 CODING_RESULT_INSUFFICIENT_CMP, add CODING_RESULT_INVALID_SRC.
12293
12294 * coding.c (Qinsufficient_source, Qinconsistent_eol)
12295 (Qinvalid_source, Qinterrupted, Qinsufficient_memory): New variables.
12296 (Vlast_code_conversion_error): New variables.
12297 (syms_of_coding): DEFSYM or DEFVAR_LISP them.
12298 (ONE_MORE_BYTE): Record error if any instead of signaling an
12299 error. If non-ASCII multibyte char is found, return the negative
12300 value of the code. All callers changed to check it.
12301 (ONE_MORE_BYTE_NO_CHECK): Likewise.
12302 (record_conversion_result): New function. Change all codes setting
12303 coding->result to call this function.
12304 (detect_coding_utf_8, decode_coding_utf_8)
12305 (detect_coding_emacs_mule, detect_coding_sji, detect_coding_big5):
12306 Don't use the local variable incomplete.
12307 (emacs_mule_char): Change the second arg to `const'.
12308 (decode_coding): Fix of flushing out unprocessed data.
12309 (make_conversion_work_buffer): Fix making of a work buffer.
12310 (decode_coding_object): Return coding->dst_object.
12311
12312 * fontset.c (set_fontset_font): Fix args.
12313
12314 * lisp.h (CHARACTERBITS): Define as 22.
12315
12316 * process.c (send_process): Be sure to set coding->src_multibyte.
12317
12318 * xdisp.c (handle_auto_composed_prop): Fix setting of limit.
12319
123202008-02-01 Kenichi Handa <handa@m17n.org>
12321
12322 * xdisp.c (handle_auto_composed_prop): Give limit to
12323 Fnext_single_char_property_change.
12324
123252008-02-01 Kenichi Handa <handa@m17n.org>
12326
12327 * composite.c (syms_of_composite): Don't make the composition hash
12328 table weak.
12329
12330 * fontset.c (Fset_fontset_font): Fix docstring.
12331
12332 * lisp.h (detect_coding_system): Adjust prototype.
12333
12334 * fileio.c (kill_workbuf_unwind): Delete this function.
12335 (Finsert_file_contents): Adjust the call of detect_coding_system.
12336 Get conversion_buffer by code_conversion_save. Use the macro
12337 CODING_MAY_REQUIRE_DECODING. After decoding, update
12338 coding_system.
12339
12340 * coding.h (make_conversion_work_buffer): Delete extern.
12341 (code_conversion_save): Extern it.
12342
12343 * coding.c (enum iso_code_class_type): Delete ISO_carriage_return.
12344 (CODING_GET_INFO): Delete argument eol_type. Change callers.
12345 (decode_coding_utf_8): Don't do eol converion.
12346 (detect_coding_utf_16): Check coding->src_chars, not
12347 coding->src_bytes. Add heuristics for those that have no signature.
12348 (decode_coding_emacs_mule, decode_coding_iso_2022)
12349 (decode_coding_sjis, decode_coding_big5, decode_coding_charset):
12350 Don't do eol converion.
12351 (adjust_coding_eol_type): Return a new coding system.
12352 (detect_coding): Don't detect eol. Fix for utf-16 detection.
12353 (decode_eol): In case of CRLF->LF conversion, use del_range_2 on
12354 each change.
12355 (decode_coding): Pay attention to undo_list. Do eol conversion for
12356 all types of coding-systems (if necessary).
12357 (Vcode_conversion_work_buf_list): Delete it.
12358 (Vcode_conversion_reused_workbuf): Rename from
12359 Vcode_conversion_reused_work_buf.
12360 (Vcode_conversion_workbuf_name): New variable.
12361 (reused_workbuf_in_use): New variable.
12362 (make_conversion_work_buffer): Delete the arg DEPTH.
12363 (code_conversion_restore): Change argument to cons.
12364 (code_conversion_save): Delete the argument BUFFER. Change callers.
12365 (detect_coding_system): New argument src_chars. Change callers.
12366 Fix for utf-16 detection.
12367 (init_coding_once): Don't use ISO_carriage_return.
12368 (syms_of_coding): Initialize Vcode_conversion_workbuf_name and
12369 reused_workbuf_in_use.
12370
123712008-02-01 Kenichi Handa <handa@m17n.org>
12372
12373 * keymap.c (store_in_keymap): Pay attention to the case that idx
12374 is a cons specifying a character range.
12375
123762008-02-01 Kenichi Handa <handa@m17n.org>
12377
12378 * xdisp.c (handle_auto_composed_prop): Fix the case of returning
12379 HANDLED_RECOMPUTE_PROPS.
12380
12381 * coding.c (Fdefine_coding_system_internal): Fix checking of
12382 ascii compatibility.
12383
123842008-02-01 Kenichi Handa <handa@m17n.org>
12385
12386 * charset.c (find_charsets_in_text): Delete unused locale variable.
12387 (Fset_charset_priority): Update Vemacs_mule_charset_list too.
12388
12389 * coding.c (encode_coding_emacs_mule): Emit bytes with MSB.
12390 Resync charset_list to Vemacs_mule_charset_list.
12391
12392 * keymap.c (store_in_keymap): Pay attention to the case that idx
12393 is a cons specifying a character range.
12394
123952008-02-01 Kenichi Handa <handa@m17n.org>
12396
12397 * composite.c (update_compositions): Bind inhibit-read-only, etc
12398 to t before calling remove-list-of-text-properties.
12399
12400 * print.c (print_object): Always print ASCII chars as is.
12401
124022008-02-01 Kenichi Handa <handa@m17n.org>
12403
12404 * keymap.c (Fdefine_key): Fix handling of Lucid style event type list.
12405
12406 * fns.c (Fmapconcat, Fmapcar, Fmapc): Signal an error if SEQUENCE
12407 is a char table.
12408
124092008-02-01 Kenichi Handa <handa@m17n.org>
12410
12411 * syntax.c (skip_chars): Be sure to alloca char_ranges when necessary.
12412
124132008-02-01 Kenichi Handa <handa@m17n.org>
12414
12415 * xfaces.c (set_lface_from_font_name): Fix for the case that
12416 FONTNAME is not fontset name.
12417
124182008-02-01 Kenichi Handa <handa@m17n.org>
12419
12420 * fns.c (base64_encode_1): Fix previous change.
12421
124222008-02-01 Kenichi Handa <handa@m17n.org>
12423
12424 * fontset.c (set_fontset_font): New function.
12425 (Fset_fontset_font): If a font is specified for a charset, use
12426 map_charset_chars to store the font spec in a fontset.
12427
124282008-02-01 Kenichi Handa <handa@m17n.org>
12429
12430 * fontset.c (fontset_face): Create a fallback fontset on demand.
12431 (make_fontset): Don't create a fallback fontset here.
12432 (free_face_fontset): Free a fallback fontset (if any) too.
12433 (n_auto_fontsets): Delete this variable.
12434 (auto_fontset_alist): New variable.
12435 (new_fontset_from_font_name): Check auto_fontset_alist.
12436 (dump_fontset) [FONTSET_DEBUG]: Fully re-written.
12437 (Ffontset_list_all) [FONTSET_DEBUG]: New function.
12438 (syms_of_fontset): Initialize and staticpro auto_fontset_alist.
12439 Defsubr Sfontset_list_all.
12440
124412008-02-01 Kenichi Handa <handa@m17n.org>
12442
12443 * xterm.c (x_list_fonts): Fix excluding of auto-scaled fonts.
12444
124452008-02-01 Kenichi Handa <handa@m17n.org>
12446
12447 * fontset.c (Fnew_fontset): Check NAME more rigidly.
12448
124492008-02-01 Kenichi Handa <handa@m17n.org>
12450
12451 * editfns.c (Fgoto_char): Fix docstring.
12452
124532008-02-01 Kenichi Handa <handa@m17n.org>
12454
12455 * insdel.c (insert_from_gap): Adjust intervals correctly.
12456
124572008-02-01 Jason Rumney <jasonr@gnu.org>
12458
12459 * w32term.c (GLYPHSET, WCRANGE): Define if system headers don't.
12460 (pfnGetFontUnicodeRanges): New dynamically loaded function.
12461 (w32_initialize): Try to load it.
12462 (x_get_font_repertory): Use it if available.
12463 (w32_encode_char): Add shortcut for unicode output.
12464
12465 * w32fns.c (w32_load_system_font): Default charset to -1.
12466 (x_to_w32_charset): Match all fonts for unicode.
12467 (w32_to_x_charset): New parameter matching. Don't return partial
12468 or wildcard charsets.
12469 (w32_to_all_x_charsets): Don't return partial or wildcard charsets.
12470 (w32_codepage_for_font): Return CP_UNICODE for unicode.
12471 (w32_to_x_font): Match charset to real charset.
12472 (enum_font_cb2): Always list unicode versions.
12473
12474 * makefile.w32-in (temacs): Increase EMHEAP.
12475
124762008-02-01 Jason Rumney <jasonr@gnu.org>
12477
12478 * w32term.c (w32_encode_char): New charset parameter.
12479 font_info.encoding becomes encoding_type.
12480 (x_get_font_repertory): New function. Warning: stub only!
12481 (x_new_font): Return quickly if font already set.
12482 (x_new_fontset): fontsetname parameter is Lisp_Object.
12483 Use new fs_query_fontset. Try new_fontset_from_font_name.
12484 Use fontset_name for return value.
12485
12486 * w32term.h: Declare x_get_font_repertory.
12487
12488 * w32select.c (Fw32_set_clipboard_data): Use string_x_string_p in
12489 place of find_charset_in_text. Use encode_coding_object in place
12490 of encode_coding.
12491 (Fw32_get_clipboard_data): Use decode_coding_c_string in place of
12492 decode_coding.
12493
12494 * w32fns.c (Fx_create_frame, x_create_tip_frame): Use new version
12495 of x_new_fontset.
12496 (w32_load_system_font): Initialize charset as unicode.
12497 font_info.encoding becomes encoding_type.
12498 (w32_to_x_font): Use decode_coding_c_string in place of decode_coding.
12499 (x_to_w32_font): Use encode_coding_object in place of encode_coding.
12500 (syms_of_w32fns): Set get_font_repertory_func.
12501
12502 * w32console.c: Include character.h. Use terminal_encode_buffer
12503 from term.c.
12504 (write_glyphs): Use new version of encode_terminal_code. Use
12505 encode_coding_object in place of encode_coding.
12506
12507 * w32bdf.c (w32_load_bdf_font): Clear font_info before filling.
12508 encoding becomes encoding_type.
12509
12510 * term.c (terminal_encode_buffer): Make externally visible.
12511
12512 * makefile.w32-in: Add character.h dependancies.
12513 (character.o, chartab.o): New targets.
12514
125152008-02-01 Kenichi Handa <handa@m17n.org>
12516
12517 * fileio.c (Finsert_file_contents) [DOS_NT]: Use the macro
12518 CODING_ID_EOL_TYPE.
12519
125202008-02-01 Andreas Schwab <schwab@suse.de>
12521
12522 * coding.c (produce_chars): Revert last change.
12523
125242008-02-01 Kenichi Handa <handa@m17n.org>
12525
12526 * charset.h (charset_unicode): Extern it.
12527
12528 * charset.c (string_xstring_p): Check by (C >= 0x100).
12529 (find_charsets_in_text): Change format of the arc CHARSETS. New
12530 arg MULTIBYTE.
12531 (Ffind_charset_region, Ffind_charset_string): Adjust for the
12532 change of find_charsets_in_text.
12533 (Fsplit_char): Fix doc. Never return unknown.
12534
12535 * chartab.c (char_table_translate): Use CHARACTERP, not INTEGERP.
12536
12537 * coding.c (Fdefine_coding_system_alias): Update
12538 Vcoding_system_list.
12539
12540 * fontset.c (load_font_get_repertory): Pay attention to the case
12541 that ENCODING of a font is specified by a char-table.
12542
12543 * xterm.c (x_get_font_repertory): Handle the case that the
12544 encoding of font is other than Unicode.
12545
125462008-02-01 Kenichi Handa <handa@m17n.org>
12547
12548 * term.c (encode_terminal_code): Don't handle glyph-table. Check
12549 if a character is encodable by the terminal coding system. If
12550 not, produces proper number of `?'s. Update
12551 terminal_encode_buffer and terminal_encode_buf_size if necessary.
12552 (produce_glyphs): Check by CHAR_BYTE8_P, not SINGLE_BYTE_CHAR_P.
12553
125542008-02-01 Kenichi Handa <handa@m17n.org>
12555
12556 * term.c (terminal_encode_buffer, terminal_encode_buf_size): New
12557 variables.
12558 (encode_terminal_code): Change argument. Encode multiple
12559 characters at once. Store the result of encoding in
12560 terminal_encode_buffer.
12561 (write_glyphs, insert_glyphs): Adjust for the change of
12562 encode_terminal_code.
12563 (term_init): Initialize terminal_encode_buffer and
12564 terminal_encode_buf_size.
12565
12566 * coding.c (consume_chars): If coding->src_object is nil, don't
12567 check annotation.
12568
125692008-02-01 Kenichi Handa <handa@m17n.org>
12570
12571 * character.c (char_string): Use ASCII_CHAR_P instead of
12572 SINGLE_BYTE_CHAR_P.
12573
125742008-02-01 Kenichi Handa <handa@m17n.org>
12575
12576 * xdisp.c (handle_auto_composed_prop): Check if the last
12577 characters of auto-composed region is newly composed with the
12578 following characters.
12579 (handle_composition_prop): Fix checking of point being inside
12580 composition.
12581
125822008-02-01 Kenichi Handa <handa@m17n.org>
12583
12584 * fns.c (concat): Don't change multibyteness of the result by
12585 concatenating an 8-bit character.
12586
12587 * data.c (Faset): Check newelt by CHECK_CHARACTER. Don't change
12588 multibyteness of the result when newelt is an 8-bit character.
12589
125902008-02-01 Dave Love <fx@gnu.org>
12591
12592 * xmenu.c (find_and_call_menu_selection): Make menu_bar_items_used
12593 EMACS_INT.
12594
12595 * xfns.c (DefaultDepthOfScreen, x_encode_text): Remove unused vars.
12596
12597 * xfaces.c (face_numeric_value): Declare dim size_t.
12598 (Finternal_lisp_face_equal_p): Remove unused f.
12599
12600 * xdisp.c (BUILD_CHAR_GLYPH_STRINGS, display_and_set_cursor)
12601 (MATRIX_ROW): Remove unused vars.
12602 (draw_glyphs, x_insert_glyphs, fast_find_position)
12603 (fast_find_position, fast_find_string_pos): Use EMACS_INT for
12604 byte/char counts.
12605
12606 * regex.c (regex_compile): Remove unused var.
12607
12608 * minibuf.c (Fminibuffer_complete_word): Remove unused var.
12609
12610 * keymap.c (Fset_keymap_parent, map_keymap, Fcopy_keymap)
12611 (Faccessible_keymaps, where_is_internal): Remove unused vars.
12612
12613 * keyboard.c (cancel_hourglass_unwind): Return Qnil.
12614
12615 * frame.c (frame_name_fnn_p): Make len EMACS_INT.
12616
12617 * fileio.c (Fwrite_region): Remove unused var.
12618
12619 * dispnew.c (adjust_frame_glyphs_for_frame_redisplay)
12620 (adjust_frame_glyphs_for_window_redisplay): Remove unused ch_dim.
12621
12622 * composite.c (Fremove_list_of_text_properties): Declare.
12623
12624 * coding.c (inhibit_pre_post_conversion): Remove (unused).
12625 (alloc_destination, produce_chars): Use EMACS_INT for byte/char counts.
12626 (coding_inherit_eol_type): Remove unused attrs.
12627 (detect_coding): Cast arg of detect_eol.
12628
12629 * charset.c (syms_of_charset): Remove unused var p.
12630 (find_charsets_in_text, Ffind_charset_region): Use EMACS_INT for
12631 byte/char counts.
12632
12633 * casetab.c (set_case_table): Remove unused var.
12634
12635 * window.c (Fdisplay_buffer, Fframe_selected_window): Remove
12636 unused vars.
12637
126382008-02-01 Dave Love <fx@gnu.org>
12639
12640 * xterm.c (x_bitmap_mask): Declare.
12641
126422008-02-01 Dave Love <fx@gnu.org>
12643
12644 * xterm.c (x_term_init): Fix type error.
12645
12646 * lisp.h: Add Funibyte_char_to_multibyte.
12647
12648 * coding.c (Fread_coding_system): Fix arg of XSETSTRING.
12649 (Fset_coding_system_priority): Doc fix.
12650
12651 * ccl.c (ccl_driver): Fix arg of CHARACTERP.
12652
12653 * indent.c (check_composition): Make start and end EMACS_INT.
12654
12655 * character.c (lisp_string_width): Make ignore and end EMACS_INT.
12656
12657 * xdisp.c (handle_composition_prop, check_point_in_composition):
12658 Make buffer positions EMACS_INT.
12659
12660 * composite.c (find_composition, run_composition_function)
12661 (update_compositions, Ffind_composition_internal): Make buffer
12662 positions EMACS_INT.
12663
12664 * composite.h (find_composition, update_compositions): Make
12665 position args EMACS_INT.
12666
12667 * keyboard.c (adjust_point_for_property): Make beg and end EMACS_INT.
12668
12669 * intervals.c (get_property_and_range):
12670 * intervals.h (get_property_and_range): Make start and end EMACS_INT.
12671
12672 * unexalpha.c: Don't include varargs.h.
12673
126742008-02-01 Dave Love <fx@gnu.org>
12675
12676 * coding.h (ENCODE_UTF_8): New.
12677
12678 * Makefile.in (gtkutil.o): Depend on coding.h.
12679
12680 * coding.c (Fset_coding_system_priority): Doc fix.
12681
126822008-02-01 Kenichi Handa <handa@m17n.org>
12683
12684 * fileio.c (Finsert_file_contents): Call setup_coding_system in
12685 the case of auto saving.
12686
126872008-02-01 Andreas Schwab <schwab@suse.de>
12688
12689 * chartab.c (map_char_table, map_char_table_for_charset): Protect
12690 `range' from GC.
12691
126922008-02-01 Kenichi Handa <handa@m17n.org>
12693
12694 * coding.c (decode_coding_sjis): Check bytes more rigidly.
12695
126962008-02-01 Kenichi Handa <handa@m17n.org>
12697
12698 * fileio.c (choose_write_coding_system): Return a decided coding system.
12699 (Fwrite_region): Set Vlast_coding_system_used to the return value
12700 of choose_write_coding_system.
12701
127022008-02-01 Kenichi Handa <handa@m17n.org>
12703
12704 * charset.c (Fset_charset_priority): Pay attention to duplicated
12705 arguments.
12706
12707 * coding.c (QCcategory): New variable.
12708 (syms_of_coding): Defsym it. Set all elements of
12709 Vcoding_category_table and their symbol values.
12710 (Fset_coding_system_priority): Doc fix. Update symbol qvalues of
12711 coding-category-XXX, and coding-category-list.
12712 (Fdefine_coding_system_internal): Add category in the plist.
12713
127142008-02-01 Kenichi Handa <handa@m17n.org>
12715
12716 * callproc.c (Fcall_process): Handle carryover correctly.
12717
12718 * coding.c (decode_coding_iso_2022): Fix handling of invalid bytes.
12719 (raw_text_coding_system): Check NILP (coding_system).
12720 (coding_inherit_eol_type): Check NILP (coding_system) and
12721 NILP (parent).
12722 (consume_chars): Fix for the case of raw-text.
12723
12724 * process.c (read_process_output): Handle carryover correctly.
12725
127262008-02-01 Dave Love <fx@gnu.org>
12727
12728 * regex.c (re_search_2): Fix last change.
12729
127302008-02-01 Kenichi Handa <handa@m17n.org>
12731
12732 * regex.c (GET_CHAR_BEFORE_2): Check multibyte, not
12733 target_multibyte. Even in a unibyte case, return a converted
12734 multibyte char.
12735 (GET_CHAR_AFTER): New macro.
12736 (PATFETCH): Translate via multibyte char.
12737 (HANDLE_UNIBYTE_RANGE): Delete this macro.
12738 (SETUP_MULTIBYTE_RANGE): New macro.
12739 (regex_compile): Setup compiled code so that its multibyteness
12740 matches that of a target. Fix the handling of "[X-YZ]" using
12741 SETUP_MULTIBYTE_RANGE.
12742 (analyse_first) <charset>: For filling fastmap for all multibyte
12743 characters, don't check by BASE_LEADING_CODE_P.
12744 (re_search_2): Don't check RE_TARGET_MULTIBYTE_P (bufp). It is
12745 the same as RE_MULTIBYTE_P (bufp) now.
12746 (mutually_exclusive_p): Check by (! multibyte || IS_REAL_ASCII (c)).
12747 (TARGET_CHAR_AND_LENGTH): Delete this macro.
12748 (TRANSLATE_VIA_MULTIBYTE): New macro.
12749 (re_match_2_internal): Don't check RE_TARGET_MULTIBYTE_P (bufp).
12750 It is the same as RE_MULTIBYTE_P (bufp) now.
12751 <exactn>: Translate via multibyte.
12752 <anychar>: Fetch a character by RE_STRING_CHAR_AND_LENGTH. Don't
12753 translate it.
12754 <charset, charset_not>: Fetch a character by
12755 RE_STRING_CHAR_AND_LENGTH. Translate via multibyte.
12756 <duplicate>: Call bcmp_translate with the last arg `multibyte'.
12757 <wordbound, notwordbound, wordbeg, wordend, syntaxspec,
12758 notsyntaxspec, categoryspec, notcategoryspec> Fetch a character
12759 by GET_CHAR_AFTER.
12760 (bcmp_translate): Likewise.
12761
12762 * search.c (compile_pattern): Check the member target_multibyte,
12763 not the member multibyte of buf.
12764
12765 * lread.c (read1): While reading a string, set force_singlebyte
12766 and force_multibyte correctly.
12767
12768 * charset.c (Fset_unibyte_charset, init_charset_once): Fix setting
12769 up of unibyte_to_multibyte_table.
12770
127712008-02-01 Kenichi Handa <handa@m17n.org>
12772
12773 * coding.c (setup_coding_system): If coding has
12774 post-read-conversion or pre-write-conversion, set
12775 CODING_REQUIRE_DECODING_MASK and CODING_REQUIRE_ENCODING_MASK
12776 respectively.
12777 (decode_coding_gap): Run post-read-conversion if any.
12778
12779 * fileio.c (Finsert_file_contents): Even if we read into a
12780 unibyte buffer, check if we must decode the result or not.
12781
127822008-02-01 Kenichi Handa <handa@m17n.org>
12783
12784 * coding.c (make_conversion_work_buffer): Change the work buffer
12785 name to the same one as that of Emacs 21.
12786
127872008-02-01 Kenichi Handa <handa@m17n.org>
12788
12789 * coding.h (make_conversion_work_buffer): Adjust prototype.
12790 (code_conversion_restore): Don't extern it.
12791
12792 * coding.c (detected_mask): Delete unused variable.
12793 (decode_coding_iso_2022): Pay attention to the byte sequence of
12794 CTEXT extended segment, and retain those bytes as is.
12795 (decode_coding_ccl): Delete unused variable `valids'.
12796 (setup_coding_system): Delete unused variable `category'.
12797 (consume_chars): Delete unused variable `category'. Make it work
12798 for non-multibyte case.
12799 (make_conversion_work_buffer): Change argument.
12800 (saved_coding): Delete unused variable.
12801 (code_conversion_restore): Don't check saved_coding->destination.
12802 (code_conversion_save): New function.
12803 (decode_coding_gap, encode_coding_gap): Call code_conversion_save
12804 instead of record_unwind_protect.
12805 (decode_coding_object, encode_coding_object): Likewise. Recover PT.
12806 (detect_coding_system): Delete unused variable `mask'.
12807 (Fdefine_coding_system_internal): Delete unused variable id.
12808
12809 * fileio.c (kill_workbuf_unwind): New function.
12810 (Finsert_file_contents): On replacing, call
12811 make_conversion_work_buffer with correct args, and call
12812 record_unwind_protect with the first arg kill_workbuf_unwind.
12813
12814 * lisp.h (Fgenerate_new_buffer_name): EXFUN it.
12815
128162008-02-01 Kenichi Handa <handa@m17n.org>
12817
12818 * fontset.c (BASE_FONTSET_P): Check FONTSET_BASE, not FONTSET_NAME.
12819 (fontset_add): Fix for the case that TO is less than TO1.
12820 (Ffontset_info): Don't use fallback fontset on checking the
12821 default fontset.
12822 (dump_fontset): New function for debugging.
12823
12824 * coding.c (Fdefine_coding_system_internal): Fix for the case that
12825 coding_type is Qcharset.
12826
128272008-02-01 Kenichi Handa <handa@m17n.org>
12828
12829 * chartab.c (map_sub_char_table): New argument DEFAULT_VAL.
12830 (map_char_table): Don't inherit the value from the parent on
12831 initializing VAL. Adjust for the above change.
12832
128332008-02-01 Kenichi Handa <handa@m17n.org>
12834
12835 * coding.c (Qsignature, Qendian): Delete these variables.
12836 (syms_of_coding): Don't initialize them.
12837 (CATEGORY_MASK_UTF_16_AUTO): New macro.
12838 (detect_coding_utf_16): Add CATEGORY_MASK_UTF_16_AUTO in
12839 detect_info->found.
12840 (decode_coding_utf_16): Don't detect BOM here.
12841 (encode_coding_utf_16): Produce BOM if CODING_UTF_16_BOM (coding)
12842 is NOT utf_16_without_bom.
12843 (setup_coding_system): For a coding system of type utf-16, check
12844 if the attribute :endian is Qbig or not (not nil or not), and set
12845 CODING_REQUIRE_DETECTION_MASK if BOM detection is required.
12846 (detect_coding): If coding type is utf-16 and BOM detection is
12847 required, detect it.
12848 (Fdefine_coding_system_internal): For a coding system of type
12849 utf-16, check if the attribute :endian is Qbig or not (not nil or not).
12850
128512008-02-01 Kenichi Handa <handa@m17n.org>
12852
12853 * coding.c (coding_set_source): Fix for the case that the current
12854 buffer is different from coding->src_object.
12855 (decode_coding_object): Don't use the conversion work buffer if
12856 DST_OBJECT is a buffer.
12857
128582008-02-01 Dave Love <fx@gnu.org>
12859
12860 * lread.c (read_emacs_mule_char) [len==2]: Index
12861 emacs_mule_charset correctly.
12862
128632008-02-01 Dave Love <fx@gnu.org>
12864
12865 * coding.c (Qbig5, Vbig5_coding_system, CATEGORY_MASK_BIG5)
12866 (detect_coding_big5, decode_coding_big5, encode_coding_big5)
12867 (Fdecode_big5_char, Fencode_big5_char): Delete. (Big5 no longer
12868 treated specially.)
12869 (setup_coding_system, coding_category, CATEGORY_MASK_ANY)
12870 (detected_mask): Remove Big5 bits.
12871
128722008-02-01 Kenichi Handa <handa@m17n.org>
12873
12874 The following changes are to make the font rescaling facility
12875 compatible with Emacs 21.
12876
12877 * xfaces.c (Vface_font_rescale_alist): Rename from
12878 Vface_resizing_fonts.
12879 (struct font_name): Rename member resizing_ratio to rescale_ratio.
12880 (font_rescale_ratio): Rename from font_resizing_ratio.
12881 (split_font_name): Set font->rescale_ratio.
12882 (better_font_p): Pay attention to font->rescale_ratio.
12883 (build_scalable_font_name): Likewise. Change RESX, and RESY
12884 fields.
12885 (syms_of_xfaces): Declare Vface_font_rescale_alist as a Lisp variable.
12886
128872008-02-01 Kenichi Handa <handa@m17n.org>
12888
12889 * coding.c (Qutf_16_be_nosig, Qutf_16_be, Qutf_16_le_nosig)
12890 (Qutf_16_le): Remove these variables.
12891 (syms_of_coding): Don't DEFSYM them.
12892 (decode_coding_utf_16): Fix handling of BOM.
12893 (encode_coding_utf_16): Fix handling of BOM.
12894
128952008-02-01 Kenichi Handa <handa@m17n.org>
12896
12897 * fileio.c (Finsert_file_contents): On replacing, before decoding
12898 the file into the work buffer, set point of the work buffer to the end.
12899
129002008-02-01 Dave Love <fx@gnu.org>
12901
12902 * coding.c (Fcheck_coding_systems_region): Fix type errors.
12903
129042008-02-01 Dave Love <fx@gnu.org>
12905
12906 * xterm.c (XTread_socket): Check Lisp types for Vx_keysym_table
12907 and fix C types.
12908
129092008-02-01 Kenichi Handa <handa@m17n.org>
12910
12911 * xdisp.c (SKIP_GLYPHS): New macro.
12912 (set_cursor_from_row): Pay attention to string display properties.
12913
12914 * category.c (copy_category_entry): Fix for the case that RANGE
12915 is an integer.
12916
12917 * xterm.c (x_encode_char): Call ccl_driver with the last arg Qnil.
12918
12919 * w32term.c (w32_encode_char): Call ccl_driver with the last arg Qnil.
12920
129212008-02-01 Kenichi Handa <handa@m17n.org>
12922
12923 * charset.c (Fcharset_id_internal): New function.
12924 (syms_of_charset): Defsubr it.
12925
12926 * coding.c (decode_coding_ccl, encode_coding_ccl): Call ccl_driver
12927 with the last arg charset_list acquired from coding.
12928 (Fdefine_coding_system_internal): For ccl-based coding system, fix
12929 the attribute coding_attr_ccl_valids.
12930
12931 * coding.h (enum define_coding_ccl_arg_index): Set the first
12932 member coding_arg_ccl_decoder to coding_arg_max.
12933
12934 * ccl.h (ccl_driver): Adjust prototype.
12935
12936 * ccl.c (CCL_DECODE_CHAR, CCL_ENCODE_CHAR): New macros.
12937 (ccl_driver): New arg CHARSET_LIST. Use the above macros instead
60612c8f 12938 of DECODE_CHAR, ENCODE_CHAR, CHAR_CHARSET.
aac0c6e3
MR
12939 (Fccl_execute, Fccl_execute_on_string): Call ccl_driver with the
12940 last arg Qnil.
12941
129422008-02-01 Kenichi Handa <handa@m17n.org>
12943
12944 * charset.h (ENCODE_CHAR): If the method is SUBSET or SUPERSET,
12945 call encode_char.
12946
12947 * charset.c (encode_char): Fix handling of methods SUBSET and SUPERSET.
12948
129492008-02-01 Dave Love <fx@gnu.org>
12950
12951 * composite.c (syms_of_composite): Make composition_hash_table weak.
12952
129532008-02-01 Kenichi Handa <handa@m17n.org>
12954
12955 * dispextern.h (check_face_attributes, generate_ascii_font_name)
12956 (font_name_registry): Don't extern them.
12957 (split_font_name_into_vector, build_font_name_from_vector): Extern them.
12958
12959 * fontset.h (Qfontset): Don't extern it.
12960 (new_fontset_from_font_name): Extern it.
12961
12962 * fontset.c: Give 8 extra slots to fontset objects.
12963 (Qfontset_info): New variable.
12964 (syms_of_fontset): Defsym it.
12965 (FONTSET_FALLBACK): New macro.
12966 (fontset_face): Try also the default fontset.
12967 (make_fontset): Realize a fallback fontset from the default fontset.
12968 (generate_ascii_font_name): Move from xfaces.c. Rewritten by
12969 using split_font_name_into_vector and build_font_name_from_vector.
12970 (Fset_fontset_font): Access the elements of font_spec by enum
12971 FONT_SPEC_INDEX. If font_spec is a string, extract the registry
12972 name by using split_font_name_into_vector.
12973 (Fnew_fontset): If no ASCII font is specified in FONTLIST,
12974 generate a proper font name from the fontset name. Update
12975 Vfontset_alias_alist.
12976 (n_auto_fontsets): New variable.
12977 (new_fontset_from_font_name): New function.
12978 (Ffont_info): Store the information about fonts generated from the
12979 default fontset in the first extra slot of the returned char-table.
12980
12981 * xfaces.c (generate_ascii_font_name): Move to fontset.c.
12982 (font_name_registry): Delete function.
12983 (split_font_name_into_vector): New function.
12984 (build_font_name_from_vector): New function.
12985 (font_list): The argument REGISTRY is now a list of registry names.
12986 (choose_face_font): If we are choosing an ASCII font, and ATTRS
12987 specifies an explicit font name, return the name as is. Make a
12988 list of registy names.
12989
12990 * xfns.c (x_set_font, x_create_tip_frame): Adjust for the change
12991 of x_new_fontset.
12992 (Fx_create_frame): Don't call x_new_fontset here. Just use
12993 x_list_fonts to check the existence of fonts.
12994
12995 * xterm.h (x_new_fontset): Adjust prototype.
12996
12997 * xterm.c (x_new_fontset): Change the arg FONTSETNAME to Lisp
12998 string. Use new_fontset_from_font_name to create a fontset from a
12999 font name.
13000
130012008-02-01 Kenichi Handa <handa@m17n.org>
13002
13003 * syntax.c (Vfind_word_boundary_function_table): New name for
13004 Vnext_word_boundary_function_table.
13005 (find-word-boundary-function-table): New name for
13006 next-word-boundary-function-table.
13007
130082008-02-01 Dave Love <fx@gnu.org>
13009
13010 * Makefile.in: Fix some dependencies.
13011
13012 * keymap.c (Fapropos_internal): Don't gcpro apropos_predicate but
13013 set it to nil before returning.
13014
13015 * composite.c (update_compositions): Fix type error.
13016
13017 * syntax.c (skip_chars, skip_syntaxes): Fix type errors.
13018
130192008-02-01 Kenichi Handa <handa@m17n.org>
13020
13021 * xterm.c (x_new_font): Optimize for the case that the font is
13022 already set for the frame.
13023
130242008-02-01 Kenichi Handa <handa@m17n.org>
13025
13026 * chartab.c (char_table_ascii): Check if the char table contents
13027 is sub-char-table or not.
13028 (char_table_set, char_table_set_range): Fix argument to
13029 char_table_ascii.
13030
13031 * coding.c (CATEGORY_MASK_RAW_TEXT): New macro.
13032 (detect_coding_utf_8, detect_coding_utf_16)
13033 (detect_coding_emacs_mule, detect_coding_iso_2022)
13034 (detect_coding_sjis, detect_coding_big5)
13035 (detect_coding_ccl, detect_coding_charset): Change argument MASK
13036 to DETECT_INFO. Update DETECT_INFO and return 1 if the byte
13037 sequence is valid in this coding system. Change callers.
13038 (MAX_ANNOTATION_LENGTH): New macro.
13039 (ADD_ANNOTATION_DATA): New macro.
13040 (ADD_COMPOSITION_DATA): Change argument. Change callers. Call
13041 ADD_ANNOTATION_DATA. Change the format of annotation data.
13042 (ADD_CHARSET_DATA): New macro.
13043 (emacs_mule_char): New argument ID. Change callers.
13044 (decode_coding_emacs_mule, decode_coding_iso_2022)
13045 (decode_coding_sjis, decode_coding_big5, decode_coding_charset):
13046 Produce charset annotation data in coding->charbuf.
13047 (encode_coding_emacs_mule, encode_coding_iso_2022): Pay attention
13048 to charset annotation data in coding->charbuf.
13049 (setup_coding_system): Add CODING_ANNOTATE_CHARSET_MASK
13050 coding->common_flags if the coding system is iso-2022 based and
13051 uses designation.
13052 (produce_composition): Adjust for the new annotation data format.
13053 (produce_charset): New function.
13054 (produce_annotation): Handle charset annotation.
13055 (handle_composition_annotation, handle_charset_annotation): New
13056 functions.
13057 (consume_chars): Handle charset annotation. Utilize the above two
13058 functions.
13059 (encode_coding_object): If SRC_OBJECT and DST_OBJECT are the same
13060 buffer, get the deleted text as a string and set
13061 coding->src_object to that string.
13062 (detect_coding, detect_coding_system): Use the new struct
13063 coding_detection_info.
13064
13065 * coding.h (struct coding_detection_info): New structure.
13066 (struct coding_system): Adjust prototype of the member `detector'.
13067 (CODING_ANNOTATE_CHARSET_MASK): New macro.
13068
130692008-02-01 Kenichi Handa <handa@m17n.org>
13070
13071 * insdel.c (insert_from_gap): Fix argument to offset_intervals.
13072
130732008-02-01 Dave Love <fx@gnu.org>
13074
13075 * keymap.c (apropos_predicate, apropos_accumulate): Declare static.
13076 (Fapropos_internal): Don't gcpro apropos_accumulate. Set result
13077 to new local and nullify apropos_accumulate before returning.
13078 (syms_of_keymap): Staticpro and initialize apropos_accumulate.
13079
130802008-02-01 Kenichi Handa <handa@m17n.org>
13081
13082 * charset.c (Fdefine_charset_internal): Setup charset.fast_map
13083 correctly.
e3eea1fc 13084
aac0c6e3
MR
130852008-02-01 Dave Love <fx@gnu.org>
13086
13087 * fns.c (Flanginfo): Call synchronize_system_time_locale.
13088
130892008-02-01 Kenichi Handa <handa@m17n.org>
13090
13091 The following changes are to make character composition happen
13092 automatically on displaying.
13093
13094 * Makefile.in (lisp, shortlisp): Add composite.elc.
13095
13096 * composite.h (Qauto_composed, Vauto_composition_function)
13097 (Qauto_composition_function): Extern them.
13098
13099 * composite.c (Vcomposition_function_table)
13100 (Qcomposition_function_table): Delete variables.
13101 (Qauto_composed, Vauto_composition_function)
13102 (Qauto_composition_function): New variables.
13103 (run_composition_function): Don't call
13104 compose-chars-after-function.
13105 (update_compositions): Clear `auto-composed' text property.
13106 (compose_chars_in_text): Delete this function.
13107 (syms_of_composite): Staticpro Qauto_composed and
13108 Qauto_composition_function. Declare Vauto_composition_function as
13109 a Lisp variable.
13110
13111 * dispextern.h (enum prop_idx): Add member AUTO_COMPOSED_PROP_IDX.
13112
13113 * xdisp.c (it_props): Add an entry for Qauto_composed.
13114 (handle_auto_composed_prop): New function.
13115
13116 * xselect.c (selection_data_to_lisp_data): Don't call
13117 compose_chars_in_text.
13118
131192008-02-01 Dave Love <fx@gnu.org>
13120
13121 * keyboard.c (read_char): Modify checking around use of
13122 Vkeyboard_translate_table.
13123
13124 * xterm.c (XTread_socket): Check Lisp types for Vx_keysym_table
13125 and fix C types.
13126
131272008-02-01 Kenichi Handa <handa@m17n.org>
13128
13129 * coding.c (decode_coding_utf_8, decode_coding_emacs_mule)
13130 (decode_coding_iso_2022, decode_coding_sjis, decode_coding_big5)
13131 (decode_coding_charset, produce_chars): When eol_type is Qdos, handle
13132 the case that the last byte is '\r' correctly.
13133 (decode_coding): Flush out the unprocessed data correctly.
13134 (decode_coding_gap): Set CODING_MODE_LAST_BLOCK bit of coding->mode.
13135
131362008-02-01 Dave Love <fx@gnu.org>
13137
13138 * xterm.c (XTread_socket): Fix changes for defined keysyms.
13139 Add XK_ISO... case.
13140 (xaw_scroll_callback): Revert last change.
13141
131422008-02-01 Kenichi Handa <handa@m17n.org>
13143
13144 * charset.c (Fset_charset_priority): Update Viso_2022_charset_list.
13145
131462008-02-01 Kenichi Handa <handa@m17n.org>
13147
13148 * xfaces.c (Vface_resizing_fonts): New variable.
13149 (struct font_name): New member `resizing_ratio'.
13150 (font_resizing_ratio): New function.
13151 (split_font_name): Set font->resizing_ratio.
13152 (better_font_p): Pay attention to font->resizing_ratio.
13153 (build_scalable_font_name): Likewise. Don't change POINT_SIZE,
13154 RESX, and RESY fields.
13155 (try_alternative_families): Try scalable fonts if
13156 Vscalable_fonts_allowed is not Qt.
13157 (syms_of_xfaces): Declare Vface_resizing_fonts as a Lisp variable.
13158
131592008-02-01 Dave Love <fx@gnu.org>
13160
13161 * xterm.c (xaw_scroll_callback): Cast correctly.
13162
131632008-02-01 Dave Love <fx@gnu.org>
13164
13165 * keyboard.c (lispy_accent_codes, lispy_accent_keys): Extend.
13166 (lispy_kana_keys): Comment out.
13167 (make_lispy_event) [XK_kana_A]: Comment out.
13168
13169 * xterm.c (xaw_scroll_callback): Cast call_data.
13170 (XTread_socket): Deal with ASCII keysyms.
13171 (syms_of_xterm) <Vx_keysym_table>: Fix args of make_hash_table.
13172
131732008-02-01 Dave Love <fx@gnu.org>
13174
13175 * xterm.c (Vx_keysym_table): New.
13176 (syms_of_xterm): Initialize it.
13177 (XTread_socket): Use it.
13178 From head: Eliminate incorrect optimization that tried to avoid
13179 decoding the output of X*LookupString.
13180 (x_get_font_repertory): Delete charset declaration.
13181
131822008-02-01 Kenichi Handa <handa@m17n.org>
13183
13184 * coding.c (detect_coding_charset): If only ASCII bytes are found,
13185 return 0.
13186 (Fdefine_coding_system_internal): Setup
13187 CODING_ATTR_ASCII_COMPAT (attrs) correctly.
13188
131892008-02-01 Dave Love <fx@gnu.org>
13190
13191 * coding.c (Fcheck_coding_system): Doc fix.
13192
13193 * editfns.c (Finsert_byte): Return a proper value.
13194
131952008-02-01 Kenichi Handa <handa@m17n.org>
13196
13197 * coding.c (decode_coding): Fix args to translate_chars. Pay
13198 attention to Vstandard_translation_table_for_decode.
13199 (encode_coding): Fix args to translate_chars. Pay attention to
13200 Vstandard_translation_table_for_encode.
13201
13202 * data.c (Faset): Check NEWELT by ASCII_CHAR_P, not by
13203 SINGLE_BYTE_CHAR_P.
13204
13205 * editfns.c (general_insert_function): Check VAL by ASCII_CHAR_P,
13206 not by SINGLE_BYTE_CHAR_P.
13207
13208 * fns.c (concat): Check CH by ASCII_CHAR_P, not by
13209 SINGLE_BYTE_CHAR_P.
13210
13211 * insdel.c (copy_text): Check C by ASCII_CHAR_P, not by
13212 SINGLE_BYTE_CHAR_P.
13213
13214 * keymap.c (Ftext_char_description): Check C by ASCII_CHAR_P, not
13215 by SINGLE_BYTE_CHAR_P.
13216
13217 * search.c (Freplace_match): Check C by ASCII_CHAR_P, not by
13218 SINGLE_BYTE_CHAR_P.
13219
132202008-02-01 Dave Love <fx@gnu.org>
13221
13222 * fns.c (Fstring_as_multibyte, Fstring_to_multibyte): Doc fix.
13223
132242008-02-01 Dave Love <fx@gnu.org>
13225
13226 * fns.c (Flanginfo): Fix typo.
13227
13228 * unexelf.c (unexec): Make last change conditional on Irix 6.5.
13229
132302008-02-01 Kenichi Handa <handa@m17n.org>
13231
13232 * coding.c (detect_coding_utf_8, detect_coding_utf_16)
13233 (detect_coding_emacs_mule, detect_coding_iso_2022)
13234 (detect_coding_sjis, detect_coding_big5, detect_coding_ccl): Check
13235 incomplete byte sequence. Don't update *mask when correctly detected.
13236 (decode_coding_sjis): Fix decoding of katakana-jisx0201.
13237 (detect_eol): Delete the argument CODING, and add the argument CATEGORY.
13238 (detect_coding, detect_coding_system): Adjust for the changes above.
13239
132402008-02-01 Kenichi Handa <handa@m17n.org>
13241
13242 * character.c (char_string): Rename from
13243 char_string_with_unification. Pay attention to CHAR_MODIFIER_MASK.
13244 (string_char): Rename from string_char.
13245
13246 * character.h (CHAR_STRING, CHAR_STRING_ADVANCE): Call char_string
13247 if C is greater than MAX_3_BYTE_CHAR.
13248 (STRING_CHAR, STRING_CHAR_AND_LENGTH, STRING_CHAR_ADVANCE): Call
13249 string_char instead of string_char_with_unification.
13250
132512008-02-01 Dave Love <fx@gnu.org>
13252
13253 * coding.c (decode_coding_utf_8): Treat surrogates as invalid.
13254
132552008-02-01 Kenichi Handa <handa@m17n.org>
13256
13257 * keymap.c (push_key_description): Pay attention to force_multibyte.
13258
13259 * regex.c (re_search_2): Fix for the case of unibyte buffer.
13260
132612008-02-01 Dave Love <fx@gnu.org>
13262
13263 * charset.c (define_charset_internal): Rename `supprementary'.
13264
13265 * Makefile.in (lisp, shortlisp): Remove latin-N.
13266
132672008-02-01 Dave Love <fx@gnu.org>
13268
13269 * xfns.c (x_window, x_window): Use use_xim.
13270
13271 * xterm.c (use_xim): Initialize.
13272 (xim_open_dpy, xim_initialize, xim_close_dpy): Use use_xim.
13273 (x_term_init): Maybe set use_xim.
13274
13275 * xterm.h (use_xim) [HAVE_X_I18N]: Declare.
13276
132772008-02-01 Kenichi Handa <handa@m17n.org>
13278
13279 * search.c (search_buffer): Fix case-fold-search of multibyte
13280 characters.
13281 (boyer_moore): Rename the last argument to char_high_bits.
13282
132832008-02-01 Kenichi Handa <handa@m17n.org>
13284
13285 * xdisp.c (display_string): Fix for the case of zero width glyph.
13286
13287 * xfns.c (x_set_font): Change the error message of the case that
13288 x_new_fontset returns Qt.
13289
13290 * xfaces.c (set_lface_from_font_name): Reject the default fontset.
13291 (Finternal_set_lisp_face_attribute): Use signal_error for the
13292 error of invalid fontset.
13293
13294 * xterm.c (x_new_fontset): If FONTSETNAME specifies the default
13295 fontset, return Qt.
13296
132972008-02-01 Dave Love <fx@gnu.org>
13298
13299 * unexelf.c (unexec): Make .got handling not SGI-specific.
13300
13301 * syntax.c (syms_of_syntax) <multibyte-syntax-as-symbol>: Doc fix.
13302
13303 * regex.c: Use `ifdef HAVE_ALLOCA_H', not `if HAVE_ALLOCA_H'.
13304
13305 * keyboard.c (read_key_sequence): Fix type error.
13306
13307 * buffer.c (Fset_buffer_multibyte, Fset_buffer_multibyte): Fix
13308 type error.
13309
13310 * fontset.c (fontset_add): Return Lisp_Object.
13311
133122008-02-01 Dave Love <fx@gnu.org>
13313
13314 * charset.h (charset_ordered_list_tick): Declare extern.
13315
133162008-02-01 Kenichi Handa <handa@m17n.org>
13317
13318 The following changes (and some of 2008-02-01 changes of mine) are
13319 for handling syntax, category, and case conversion for unibyte
13320 characters by converting them to multibyte on the fly. With these
13321 changes, we don't have to setup syntax and case tables for unibyte
13322 characters in each language environment.
13323
13324 * abbrev.c (Fexpand_abbrev): Convert a unibyte character to
13325 multibyte if necessary.
13326
13327 * bytecode.c (Fbyte_code): Likewise.
13328
13329 * character.h (LEADING_CODE_LATIN_1_MIN)
13330 (LEADING_CODE_LATIN_1_MAX): New macros.
13331 (unibyte_to_multibyte_table): Extern it.
13332 (unibyte_char_to_multibyte): New macro.
13333 (MAKE_CHAR_MULTIBYTE): Use unibyte_to_multibyte_table.
13334 (CHAR_LEADING_CODE): New macro.
13335 (FETCH_STRING_CHAR_AS_MULTIBYTE_ADVANCE): New macro.
13336
13337 * character.c (unibyte_to_multibyte_table): New variable.
13338 (unibyte_char_to_multibyte): Move to character.h and define as macro.
13339 (multibyte_char_to_unibyte): If C is an eight-bit character,
13340 convert it to the corresponding byte value.
13341
13342 * charset.c (Fset_unibyte_charset): If the dimension of CHARSET is
13343 not 1, signals an error. Update the elements of
13344 unibyte_to_multibyte_table.
13345 (init_charset_once): Initialize unibyte_to_multibyte_table.
13346 (syms_of_charset): Define the charset `iso-8859-1'.
13347
13348 * cmds.c (internal_self_insert): In a multibyte buffer, insert C
13349 as is without converting it to unibyte. In a unibyte buffer,
13350 convert C to multibyte before checking the syntax.
13351
13352 * lisp.h (unibyte_char_to_multibyte): Delete extern.
13353
13354 * minibuf.c (Fminibuffer_complete_word): Use the macro
13355 FETCH_STRING_CHAR_AS_MULTIBYTE_ADVANCE.
13356
13357 * regex.h (struct re_pattern_buffer): New member target_multibyte.
13358
13359 * regex.c (RE_TARGET_MULTIBYTE_P): New macro.
13360 (GET_CHAR_BEFORE_2): Check target_multibyte, not multibyte. If
13361 that is zero, convert an eight-bit char to multibyte.
13362 (MAKE_CHAR_MULTIBYTE, CHAR_LEADING_CODE): New dummy new macros for
13363 non-emacs case.
13364 (PATFETCH): Convert an eight-bit char to multibyte.
13365 (HANDLE_UNIBYTE_RANGE): New macro.
13366 (regex_compile): Setup the compiled pattern for multibyte chars
13367 even if the given regex string is unibyte. Use PATFETCH_RAW
13368 instead of PATFETCH in many places. To handle `charset'
13369 specification of unibyte, call HANDLE_UNIBYTE_RANGE. Use bitmap
13370 only for ASCII chars.
13371 (analyse_first) <exactn>: Simplify because the compiled pattern
13372 is multibyte.
13373 <charset_not>: Setup fastmap from bitmap only for ASCII chars.
13374 <charset>: Use CHAR_LEADING_CODE to get leading codes.
13375 <categoryspec>: If multibyte, setup fastmap only for ASCII chars here.
13376 (re_compile_fastmap) [emacs]: Call analyse_first with the arg
13377 multibyte always 1.
13378 (re_search_2): In emacs, set the locale variable multibyte to 1,
13379 otherwise to 0. New local variable target_multibyte. Check it
13380 to decide the multibyteness of STR1 and STR2. If
13381 target_multibyte is zero, convert unibyte chars to multibyte
13382 before translating and checking fastmap.
13383 (TARGET_CHAR_AND_LENGTH): New macro.
13384 (re_match_2_internal): In emacs, set the locale variable multibyte
13385 to 1, otherwise to 0. New local variable target_multibyte. Check
13386 it to decide the multibyteness of STR1 and STR2. Use
13387 TARGET_CHAR_AND_LENGTH to fetch a character from D.
13388 <charset, charset_not>: If multibyte is nonzero, check fastmap
13389 only for ASCII chars. Call bcmp_translate with
13390 target_multibyte, not with multibyte.
13391 <begline>: Declare the local variable C as `unsigned'.
13392 (bcmp_translate): Change the last arg name to target_multibyte.
13393
13394 * search.c (compile_pattern_1): Don't adjust the multibyteness of
13395 the regexp pattern and the matching target. Set cp->buf.multibyte
13396 to the multibyteness of the regexp pattern. Set
13397 cp->but.target_multibyte to the multibyteness of the matching target.
13398 (wordify): Use FETCH_STRING_CHAR_AS_MULTIBYTE_ADVANCE instead of
13399 FETCH_STRING_CHAR_ADVANCE.
13400 (Freplace_match): Convert unibyte chars to multibyte.
13401
13402 * syntax.c (char_quoted, back_comment, scan_words)
13403 (Fforward_comment, scan_lists, Fbackward_prefix_chars)
13404 (scan_sexps_forward): Use FETCH_CHAR_AS_MULTIBYTE to convert
13405 unibyte chars to multibyte.
13406 (skip_chars): Delete the arg syntaxp, and move the code for
13407 handling syntaxes to skip_syntaxes. Change callers.
13408 Fix the case that the multibyteness of STRING and the current
13409 buffer doesn't match.
13410 (skip_syntaxes): New function.
13411 (SYNTAX_WITH_MULTIBYTE_CHECK): Check C by ASCII_CHAR_P, not by
13412 SINGLE_BYTE_CHAR_P.
13413
134142008-02-01 Kenichi Handa <handa@m17n.org>
13415
13416 * xfaces.c (QCfontset): New variable.
13417 (LFACE_FONTSET): New macro.
13418 (check_lface_attrs): Check also LFACE_FONTSET_INDEX.
13419 (set_lface_from_font_name): Setup LFACE_FONTSET (lface).
13420 (Finternal_set_lisp_face_attribute)
13421 (Finternal_get_lisp_face_attribute): Handle QCfontset.
13422 (lface_same_font_attributes_p): Fix checking of LFACE_FONT_INDEX,
13423 check also LFACE_FONTSET_INDEX.
13424 (face_fontset): Check attrs[LFACE_FONTSET_INDEX], not
13425 attrs[LFACE_FONT_INDEX].
13426 (syms_of_xfaces): Intern and staticpro QCfontset.
13427
13428 * dispextern.h (enum lface_attribute_index): New member
13429 LFACE_FONTSET_INDEX.
13430
13431 * fns.c (base64_encode_1): Handle eight-bit chars correctly.
13432
134332008-02-01 Kenichi Handa <handa@m17n.org>
13434
13435 * coding.c (coding_set_destination): Fix coding->destination for
13436 the case converting a region.
13437 (encode_coding_utf_8): Encode eight-bit chars as single byte.
13438 (encode_coding_object): Fix coding->dst_pos and
13439 coding->dst_pos_byte for the case converting a region.
13440
13441 * insdel.c (insert_from_gap): Make it work even if PT != GTP.
13442
13443 * character.h (BYTE8_STRING): New macro.
13444
13445 * fns.c (base64_decode_1): Insert eight-bit chars correctly.
13446
134472008-02-01 Kenichi Handa <handa@m17n.org>
13448
13449 * xdisp.c (get_next_display_element): Don't display unibyte 8-bit
13450 characters by octal form.
13451
13452 * abbrev.c (Fexpand_abbrev): Fix for the multibyte case.
13453
13454 * buffer.h (_fetch_multibyte_char_len): Delete extern.
13455 (FETCH_MULTIBYTE_CHAR, BUF_FETCH_MULTIBYTE_CHAR): Don't use
13456 _fetch_multibyte_char_len.
13457 (FETCH_CHAR_AS_MULTIBYTE): New macro.
13458
13459 * casetab.c (set_canon, set_identity, shuffle): Simplify.
13460
13461 * casefiddle.c (casify_object): Simplify. Handle the case that
13462 the case conversion change the byte length.
13463 (casify_region): Likewise.
13464
13465 * character.h (MAKE_CHAR_UNIBYTE, MAKE_CHAR_MULTIBYTE): New macros.
13466
13467 * character.c (_fetch_multibyte_char_len): Delete this variable.
13468 (syms_of_character): Setup Vprintable_chars.
13469
13470 * editfns.c (Fchar_equal): Fix for the unibyte case.
13471 (Finsert_byte): New function.
13472 (syms_of_editfns): Defsubr it.
13473
13474 * keyboard.c (read_key_sequence): Use ~CHAR_MODIFIER_MASK instead
13475 of direct code 0x3ffff.
13476
13477 * search.c (Freplace_match): Fix for the unibyte case.
13478
134792008-02-01 Kenichi Handa <handa@m17n.org>
13480
13481 * lread.c (safe_to_load_p): Fix the logic.
13482
13483 * syntax.c (scan_words): Don't treat characters belonging to
13484 different scripts as constituting a word.
13485
13486 * editfns.c (Fformat): Use ASCII_CHAR_P, not SINGLE_BYTE_CHAR_P.
13487
13488 * fontset.c (Fset_fontset_font): Treat `ascii' as charset, not script.
13489
13490 * emacs.c (main): In the case of --unibyte, instead of aborting on
13491 finding non-empty buffer, make it unibyte.
13492
134932008-02-01 Kenichi Handa <handa@m17n.org>
13494
13495 * xterm.c (x_new_fontset): Call `create-fontset-from-ascii-font'
13496 to create a fontset.
13497
134982008-02-01 Dave Love <fx@gnu.org>
13499
13500 * character.c (Funibyte_char_to_multibyte): Doc fix.
13501
13502 * xfns.c [HAVE_STDLIB_H]: Fix last change.
13503
135042008-02-01 Kenichi Handa <handa@m17n.org>
13505
13506 * fontset.c (fontset_add): Make the type `int'.
13507 (fontset_id_valid_p): Define it if FONTSET_DEBUG is defined.
13508
13509 * character.c (unibyte_char_to_multibyte)
13510 (multibyte_char_to_unibyte, Funibyte_char_to_multibyte): Refer to
13511 charset_unibyte, not charset_primary.
13512
13513 * charset.h (charset_unibyte): Extern it instead of charset_primary.
13514
13515 * charset.c (charset_unibyte): Rename from charset_primary.
13516 (Funibyte_charset): Rename from Fprimary_charset.
13517 (Fset_unibyte_charset): Rename from Fset_primary_charset.
13518 (syms_of_charset): Adjust for the above changes.
13519
13520 * w32term.c (x_produce_glyphs): Use ASCII_CHAR_P, not
13521 SINGLE_BYTE_CHAR_P. Fix the logic of handling non-ASCII char when
13522 it->multibyte_p is zero.
13523
13524 * lisp.h (nonascii_insert_offset, Vnonascii_translation_table):
13525 Delete extern.
13526
135272008-02-01 Kenichi Handa <handa@m17n.org>
13528
13529 * coding.c (Fdefine_coding_system_internal): Fix category setting
13530 for a coding system of type iso-2022.
13531
135322008-02-01 Kenichi Handa <handa@m17n.org>
13533
13534 * fontset.h (FS_LOAD_FONT): Call fs_load_font with the arg CHARSET -1.
13535
135362008-02-01 Kenichi Handa <handa@m17n.org>
13537
13538 * syntax.c (Vnext_word_boundary_function_table): New variable.
13539 (next-word-boundary-function-table): Declare it as a Lisp variable
13540 in syms_of_syntax.
13541 (scan_words): Call functions in Vnext_word_boundary_function_table
13542 if any.
13543
13544 * xterm.c (x_load_font): Initialize fontp->fontset to -1.
13545
13546 * fontset.c (fs_load_font): If fontp->charset is not negative,
13547 return fontp without setting its members.
13548
135492008-02-01 Dave Love <fx@gnu.org>
13550
13551 * xfns.c [HAVE_STDLIB_H]: Change logic (instead of fixing typo).
13552
13553 * m/sparc.h (HAVE_ALLOCA): Delete.
13554
13555 * s/irix6-5.h: Don't include strings.h.
13556 (bcopy, bzero, bcmp): Don't undef.
13557
13558 * s/irix6-0.h (bcopy, bzero, bcmp): Don't undef.
13559
13560 * s/usg5-4.h (NO_SIOCTL_H): Don't define.
13561 (TIOCSIGSEND): Don't test IRIX6.
13562 (bcopy, bzero, bcmp): Define conditionally.
13563
135642008-02-01 Kenichi Handa <handa@m17n.org>
13565
13566 * buffer.c (Qas, Qmake, Qto): New variables.
13567 (Fset_buffer_multibyte): New optional arg METHOD. Change caller.
13568 (syms_of_buffer): Intern and staticpro Qas, Qmake, and Qto.
13569
13570 * callproc.c (Fcall_process): Don't call insert_1_both directly if
13571 we are inserting a process output into a multibyte buffer.
13572
13573 * character.h (CHAR_TO_BYTE8): If C is not eight-bit char, call
13574 multibyte_char_to_unibyte.
13575
13576 * character.c (Funibyte_char_to_multibyte): If C can't be decoded
13577 by the primary charset, make it eight-bit char.
13578 (Fmultibyte_char_to_unibyte): Call CHAR_TO_BYTE8.
13579
13580 * charset.c (charset_eight_bit, Qeight_bit_control): New variables.
13581 (charset_8_bit__control, charset_8_bit_graphic)
13582 (Qeight_bit_control, Qeight_bit_graphic): Delete these variables.
13583 (define_charset_internal): New function.
13584 (syms_of_charset): Call define_charset_internal for pre-defined
13585 charsets.
13586
13587 * charset.h (charset_8_bit): Extern it.
13588
13589 * coding.c (make_conversion_work_buffer): Adjust for the change
13590 of Fset_buffer_multibyte.
13591 (encode_coding_raw_text): Increment p0 in the loop.
13592
13593 * lisp.h (Fset_buffer_multibyte): Adjust prototype.
13594
13595 * xdisp.c (setup_echo_area_for_printing, set_message_1): Adjust
13596 for the change of Fset_buffer_multibyte.
13597
13598 * fns.c (Fstring_to_multibyte): New function.
13599 (syms_of_fns): Declare Fstring_to_multibyte as Lisp subroutine.
13600
136012008-02-01 Dave Love <fx@gnu.org>
13602
13603 * xfns.c (x_put_x_image): Declare args.
13604
13605 * xfaces.c (font_name_registry, choose_face_font): Delete unused vars.
13606 (try_font_list): Declare an arg.
13607
13608 * xdisp.c (message2_nolog, set_message): Declare an arg.
13609
13610 * terminfo.c (tparam): Declare an arg. Use P_ to declare tparm.
13611
13612 * syntax.c (scan_sexps_forward): Declare an arg.
13613
13614 * scroll.c (calculate_scrolling, calculate_direct_scrolling):
13615 Declare an arg.
13616
13617 * lisp.h (Fnew_fontset): Declare.
13618
13619 * keymap.c (push_key_description): Call CHARACTERP correctly.
13620
13621 * fontset.c (fontset_add): Declare args. Call make_number correctly.
13622 (face_for_char): Delete unused vars.
13623 (Fset_fontset_font): Doc fix. Delete unused vars.
13624
13625 * doc.c (Fsubstitute_command_keys): Delete unused vars.
13626
13627 * composite.c (update_compositions): Declare arg.
13628
13629 * cm.c (calccost, cmgoto): Declare args.
13630
13631 * charset.c: Remove `emacs' conditional. Doc fixes.
13632 (map_char_table_for_charset): Declare.
13633
13634 * character.c (syms_of_character) <translation-table-vector>: Doc fix.
13635
13636 * ccl.c: Remove `emacs' conditional.
13637
136382008-02-01 Kenichi Handa <handa@m17n.org>
13639
13640 The following changes are to allow specifying multiple font
13641 patterns for a character range (specified by script or charset).
13642
13643 * Makefile.in (abbrev.o): Depend on syntax.h.
13644 (xfaces.o): Depend on charset.h.
13645
13646 * alloc.c (Fmake_string): Use ASCII_CHAR_P, not
13647 SINGLE_BYTE_CHAR_P.
13648
13649 * ccl.c (Fccl_execute_on_string): Add `const' to local variables.
13650
13651 * character.h (Vchar_script_table): Extern it.
13652
13653 * character.c (Vscript_alist): Delete.
13654 (Vchar_script_table, Qchar_script_table): New variable.
13655 (syms_of_character): Declare Vchar_script_table as a lisp variable
13656 and initialize it.
13657
13658 * chartab.c (Fmake_char_table): Doc fix. If PURPOSE doesn't
13659 have property char-table-extra-slots, make no extra slot.
13660
13661 * dispextern.h (struct face): Delete member `charset'.
13662 (FACE_SUITABLE_FOR_CHAR_P, FACE_FOR): Use ASCII_CHAR_P, not
13663 SINGLE_BYTE_CHAR_P.
13664 (choose_face_font, lookup_non_ascii_face, font_name_registry):
13665 Add prototypes.
13666 (lookup_face, lookup_named_face, lookup_derived_face): Fix prototype.
13667 (generate_ascii_font_name): Rename from generate_ascii_font.
13668
13669 * fontset.h (get_font_repertory_func): New prototype.
13670 (make_fontset_for_ascii_face, fs_load_font): Fix prototypes.
13671 (FS_LOAD_FONT): Call fs_load_font with the 3rd arg charset_ascii.
13672
13673 * fontset.c (Qprepend, Qappend): New variables.
13674 (FONTSET_CHARSET_ALIST, FONTSET_FACE_ALIST): Delete.
13675 (FONTSET_NOFONT_FACE, FONTSET_REPERTORY): New macros.
13676 (FONTSET_REF): Optimize if FONTSET is Vdefault_fontset.
13677 (FONTSET_REF_AND_RANGE, FONTSET_ADD): New macros.
13678 (fontset_ref_and_range, fontset_add, reorder_font_vector)
13679 (load_font_get_repertory): New functions.
13680 (fontset_set): Delete.
13681 (fontset_face): New arg FACE. Return face ID, not face.
13682 Complete re-write to handle new fontset structure. Change caller.
13683 (free_face_fontset): Use ASET istead of AREF (X) = Y.
13684 (face_for_char): Don't call lookup_face.
13685 (make_fontset_for_ascii_face): New arg FACE.
13686 (fs_load_font): New arg CHARSET_ID. Don't check
13687 Vfont_encoding_alist here.
13688 (find_font_encoding): New function.
13689 (list_fontsets): Use STRINGP, not ! NILP.
13690 (accumulate_script_ranges): New function.
13691 (Fset_fontset_font, Fnew_fontset, Ffontset_info): Completely
13692 re-written to handle new fontset structure.
13693 (Ffontset_font): Return a copy of element.
13694 (syms_of_fontset): Define symbols Qprepend and Qappend. Fix
13695 docstring of font-encoding-alist.
13696
13697 * lisp.h (CHAR_TABLE_REF): Remove unnecessary check (IDX >= 0).
13698 (Fset_fotset_font): Fix arguments to 5.
13699
13700 * msdos.c (XMenuActivate): Adjust for the change of lookup_derived_face.
13701
13702 * xdisp.c (message_dolog, set_message_1, extend_face_to_end_of_line):
13703 Use ASCII_CHAR_P, not SINGLE_BYTE_CHAR_P.
13704 (highlight_trailing_whitespace): Adjust for the change of
13705 lookup_named_face.
13706
13707 * xfaces.c: Include charset.h.
13708 (load_face_font): Delete argument C. Change caller.
13709 (generate_ascii_font_name): Rename from generate_ascii_font.
13710 (font_name_registry): New function.
13711 (cache_face): Store ascii faces before non-ascii faces in buckets.
13712 (lookup_face): Delete arguments C and BASE_FACE. Change caller.
13713 Lookup only ascii faces.
13714 (lookup_non_ascii_face): New function.
13715 (lookup_named_face): Delete argument C. Change caller.
13716 (lookup_derived_face): Delete argument C. Change caller.
13717 (try_font_list): New arg PATTERN. Change caller. If PATTERN is
13718 a string, just call font_list with it.
13719 (choose_face_font): Delete arguments FACE and C. New arg
13720 FONT_SPEC. Change caller.
13721 (realize_face, realize_x_face): Delete arguments C and BASE_FACE.
13722 Change caller.
13723 (realize_non_ascii_face): New function.
13724 (realize_x_face): Call load_face_font here.
13725 (realize_tty_face): Delete argument C. Change caller.
13726 (compute_char_face): If CH is not ascii, call FACE_FOR_CHAR to
13727 get a face ID.
13728 (dump_realized_face): Don't print charset of FACE.
13729
13730 * xfns.c (x_set_font): Always call x_new_fontset and
13731 store_frame_parameter.
13732 (Fx_create_frame): Call x_new_fontset, not x_new_font.
13733 (syms_of_xfns): Set get_font_repertory_func to x_get_font_repertory.
13734
13735 * xterm.h (x_get_font_repertory): Extern it.
13736
13737 * xterm.c (x_produce_glyphs): Use ASCII_CHAR_P, not
13738 SINGLE_BYTE_CHAR_P. Fix the logic of handling non-ASCII char when
13739 it->multibyte_p is zero.
13740 (XTread_socket): Use ASCII_CHAR_P, not SINGLE_BYTE_CHAR_P.
13741 (x_new_fontset): If FONTSETNAME doesn't match any existing
13742 fontsets, create a new one.
13743 (x_get_font_repertory): New function.
13744
137452008-02-01 Kenichi Handa <handa@m17n.org>
13746
13747 * coding.c (Ffind_coding_systems_region_internal): Detect an
13748 ASCII only string correctly.
13749
13750 * lread.c (Fload): Don't load with Qload_force_doc_strings t if
13751 version is 0.
13752
137532008-02-01 Kenichi Handa <handa@m17n.org>
13754
13755 * lread.c: Include "coding.h".
13756 (Qget_emacs_mule_file_char, Qload_force_doc_strings)
13757 (load_each_byte, unread_char): New variables.
13758 (readchar_backlog): Delete.
13759 (readchar): Return a character unless load_each_byte is nonzero.
13760 Handle the case that readcharfun is Qget_emacs_mule_file_char or a
13761 cons. If unread_char is not -1, simply return it.
13762 (unreadchar): Handle the case that readcharfun is
13763 Qget_emacs_mule_file_char or a cons. Set unread_char if necessary.
13764 (read_multibyte): Delete.
13765 (readbyte_for_lambda, readbyte_from_file, readbyte_from_string)
13766 (read_emacs_mule_char): New functions.
13767 (Fload): Even if the file doesn't have the extension ".elc", if
13768 safe_to_load_p returns a positive version number, assume that the
13769 file contains bytecompiled code. If the version is less than 22,
13770 load the file while decoding multibyte sequences by emacs-mule.
13771 (readevalloop): Don't use readchar_backlog.
13772 (Fread): Likewise. Pay attention to the case that STREAM is a cons.
13773 (Fread_from_string): Pay attention to the case that STREAM is a cons.
13774 (read_escape): Delete the arg BYTEREP.
13775 (read1): Set load_each_byte to 1 temporarily while handling
13776 #@NUMBER. Don't call read_multibyte.
13777 (read_vector): Call Fread with a cons. If readcharfun is
13778 Qget_emacs_mule_file_char, decode the read string by emacs-mule.
13779 (read_list): If doc_reference is 2, make the cdr part string as unibyte.
13780 (syms_of_lread): Intern and staticpro Qget_emacs_mule_file_char
13781 and Qload_force_doc_strings.
13782
137832008-02-01 Kenichi Handa <handa@m17n.org>
13784
13785 * xdisp.c (face_before_or_after_it_pos): Call
13786 FETCH_MULTIBYTE_CHAR with byte postion, not char position.
13787
137882008-02-01 Kenichi Handa <handa@m17n.org>
13789
13790 * character.h (TRAILING_CODE_P): New macro.
13791 (MAYBE_UNIFY_CHAR): Adjust for the change of Funify_charset.
13792 (string_char_with_unification): Fix prototype.
13793 (Vscript_alist): Extern it.
13794
13795 * character.c (Vscript_alist): New variable.
13796 (string_char_with_unification, str_as_unibyte)
13797 (string_escape_byte8): Add `const' to local variables.
13798 (syms_of_character): Declare script-alist as a Lisp variable.
13799
13800 * charset.h (Vcharset_ordered_list): Extern it.
13801 (charset_ordered_list_tick): Extern it.
13802 (EMACS_MULE_LEADING_CODE_PRIVATE_11)
13803 (EMACS_MULE_LEADING_CODE_PRIVATE_12)
13804 (EMACS_MULE_LEADING_CODE_PRIVATE_21)
13805 (EMACS_MULE_LEADING_CODE_PRIVATE_22): New macros.
13806 (Funify_charset): Adjust for the change of Funify_charset.
13807
13808 * charset.c (charset_ordered_list_tick): New variable.
13809 (Fdefine_charset_internal): Increment charset_ordered_list_tick.
13810 (Funify_charset): New optional arg DEUNIFY. If it is non-nil,
13811 deunify intead of unify a charset.
13812 (string_xstring_p): Add `const' to local variables.
13813 (find_charsets_in_text): Add `const' to arguments and local variables.
13814 (encode_char): Adjust for the change of Funify_charset. Fix
13815 detecting of invalid code.
13816 (Fset_charset_priority): Increment charset_ordered_list_tick.
13817 (Fmap_charset_chars): Fix handling of default value for FROM_CODE
13818 and TO_CODE.
13819
13820 * coding.c (LEADING_CODE_PRIVATE_11, LEADING_CODE_PRIVATE_12)
13821 (LEADING_CODE_PRIVATE_21, LEADING_CODE_PRIVATE_22): Delete macros.
13822 Changed callers to use EMACS_MULE_LEADING_CODE_PRIVATE_11, etc.
13823 (decode_coding_ccl, consume_chars)
13824 (Ffind_coding_systems_region_internal)
13825 (Fcheck_coding_systems_region): Add `const' to local variables.
13826
13827 * print.c (print_object): Use octal form for printing the
13828 contents of a bool vector.
13829
138302008-02-01 Dave Love <fx@gnu.org>
13831
13832 * lread.c (Fload) <!load_dangerous_libraries>: Don't leak fd.
13833 <version == 20>: Refuse to load.
13834
138352008-02-01 Dave Love <fx@gnu.org>
13836
13837 * fns.c: Move coding.h.
13838 (Qcodeset, Qdays, Qmonths): New.
13839 (concat): Use CHARACTERP instead of INTEGERP.
13840 (Flocale_codeset): Delete.
13841 (Flanginfo): New function.
13842 (syms_of_fns): Change accordingly.
13843
13844 * coding.c (adjust_coding_eol_type): Fix eol_type/eol_seen mixup.
13845
138462008-02-01 Dave Love <fx@gnu.org>
13847
13848 * casetab.c (init_casetab_once, init_casetab_once): Fix
13849 CHAR_TABLE_SET call.
13850
13851 * category.c (Fmodify_category_entry): Fix CATEGORY_MEMBER call.
13852
13853 * character.c (syms_of_character): Fix CHAR_TABLE_SET call.
13854
13855 * charset.c (Fmap_charset_chars): Check args. Convert Lisp types.
13856 (load_charset_map, Fdeclare_equiv_charset, Fencode_char)
13857 (Fset_charset_priority, syms_of_charset): Convert Lisp types.
13858
13859 * charset.h (CHECK_CHARSET_GET_ID): Use XINT on AREF result.
13860
13861 * coding.c (ENCODE_DESIGNATION, decode_eol)
13862 (make_conversion_work_buffer, code_conversion_restore)
13863 (Fdefine_coding_system_internal): Convert Lisp types.
13864 (code_conversion_restore): Use EQ, not ==.
13865 (Fencode_coding_string): Fix code_convert_string call.
13866
13867 * coding.h (code_convert_region): Fix prototype.
13868
13869 * dispextern.h (redraw_frame, redraw_garbaged_frames): Remove.
13870
13871 * fontset.c (fontset_ref, fontset_set, fs_load_font)
13872 (Ffontset_info): Convert Lisp types.
13873
13874 * syntax.h (SYNTAX_ENTRY_INT): Don't use make_number.
13875
13876 * xterm.c (note_mouse_movement): Fix call of window_from_coordinates.
13877
13878 * xdisp.c (display_mode_element): Fix call of Fset_text_properties.
13879
13880 * chartab.c: Include "...h", not <...h> in some cases.
13881
13882 * callproc.c (Fcall_process): Remove unused variables.
13883
138842008-02-01 Dave Love <fx@gnu.org>
13885
13886 * coding.c (Fset_coding_system_priority): Allow null arg list.
13887
138882008-02-01 Dave Love <fx@gnu.org>
13889
13890 * minibuf.c (Fminibuffer_complete_word): Remove unused var.
13891 (Fself_insert_and_exit): Use CHARACTERP.
13892
13893 * callproc.c (Fcall_process): Remove unused vars.
13894
13895 * xterm.c (XTread_socket): Add extra dead keysyms.
13896
13897 * xdisp.c (decode_mode_spec_coding): Use CHARACTERP.
13898
13899 * dispextern.h: Remove prototypes for redraw_frame,
13900 redraw_garbaged_frames.
13901
13902 * cmds.c (Fself_insert_command): Use CHARACTERP.
13903
13904 * chartab.c (make_sub_char_table): Remove unused var.
13905 (Fset_char_table_default, Fmap_char_table): Doc fix.
13906
13907 * keymap.c (access_keymap): Remove generic char code.
13908 (push_key_description): Use CHARACTERP.
13909
139102008-02-01 Dave Love <fx@gnu.org>
13911
13912 * charset.c: Doc fixes.
13913 (Funify_charset): Extra checking.
13914
139152008-02-01 Dave Love <fx@gnu.org>
13916
13917 * lread.c: Remove some unused variables.
13918 (safe_to_load_p): If safe, return the magic number version byte.
13919 (Fload): Maybe use load-with-code-conversion.
13920
139212008-02-01 Kenichi Handa <handa@m17n.org>
13922
13923 * category.c (Fmodify_category_entry): Don't modify the contents
13924 of category_set for characters out of the range. Avoid
13925 unnecessary modification.
13926
13927 * character.h (MAYBE_UNIFY_CHAR): Adjust for the change of
13928 Vchar_unify_table. The default value of the table is now nil.
13929
13930 * character.c (syms_of_character): Setup Vchar_width_table for
13931 eight-bit-control and raw-byte chars.
13932
13933 * charset.h (enum define_charset_arg_index): Delete
13934 charset_arg_parents and add charset_arg_subset and
13935 charset_arg_superset.
13936 (enum charset_attr_index): Delete charset_parents and add
13937 charset_subset and charset_superset.
13938 (enum charset_method): Delete CHARSET_METHOD_INHERIT and add
13939 CHARSET_METHOD_SUBSET and CHARSET_METHOD_SUPERSET.
13940 (CHARSET_ATTR_PARENTS, CHARSET_PARENTS): Delete.
13941 (CHARSET_ATTR_SUBSET, CHARSET_ATTR_SUPERSET, CHARSET_SUBSET)
13942 (CHARSET_SUPERSET): New macros.
13943 (charset_work): Extern it.
13944 (ENCODE_CHAR): Use charset_work.
13945 (CHAR_CHARSET_P): Adjust for the change of encoder format.
13946 (map_charset_chars): Extern it.
13947
13948 * charset.c (load_charset_map): Set the default value of encoder
13949 and deunifier char-tables to nil.
13950 (map_charset_chars): Change argument. Change callers. Use
13951 map_char_table_for_charset instead of map_char_table.
13952 (Fmap_charset_chars): New optional args from_code and to_code.
13953 (Fdefine_charset_internal): Adjust for the change of
13954 `define-charset' (:parents -> :subset or :superset).
13955 (charset_work): New variable.
13956 (encode_char, syms_of_charset): Adjust for the change of
13957 Fdefine_charset_internal.
13958 (Ffind_charset_string): Setup the vector `charsets' correctly.
13959
13960 * chartab.c (sub_char_table_ref_and_range): New arg default. Fix
13961 the previous change.
13962 (char_table_ref_and_range): Adjust for the above change.
13963 (map_sub_char_table_for_charset): New function.
13964 (map_char_table_for_charset): New function.
13965
13966 * keymap.c (describe_vector): Handle a char-table directly here.
13967 (describe_char_table): Delete.
13968
13969 * lisp.h (map_charset_chars): Delete.
13970
139712008-02-01 Dave Love <fx@gnu.org>
13972
13973 * fns.c (count_combining): Comment out (unused).
13974 (Flocale_codeset): New.
13975 (syms_of_fns): Defsubr it.
13976
13977 * config.in (HAVE_PTY_H, HAVE_SIZE_T, HAVE_LANGINFO_CODESET): New.
13978 (size_t): Remove.
13979
139802008-02-01 Dave Love <fx@gnu.org>
13981
13982 * Makefile.in (chartab.o): Depend on charset.h.
13983
139842008-02-01 Kenichi Handa <handa@m17n.org>
13985
13986 * character.c (syms_of_character): Set the default value of
13987 Vprintable_chars to Qnil.
13988
139892008-02-01 Dave Love <fx@gnu.org>
13990
13991 * Makefile.in (lisp, shortlisp): Change indian.elc to indian.el.
13992
139932008-02-01 Kenichi Handa <handa@m17n.org>
13994
13995 * charset.c (load_charset_map): Handle the case that from < to
13996 correctly.
13997
13998 * coding.c (encode_coding_emacs_mule, encode_coding_iso_2022)
13999 (encode_coding_sjis, encode_coding_big5, encode_coding_charset):
14000 Pay attention to raw-8-bit chars.
14001
140022008-02-01 Kenichi Handa <handa@m17n.org>
14003
14004 * Makefile.in (lisp, shortlisp): Change chinese.elc to chinese.el.
14005 It is not bytecompiled now.
14006
14007 * charset.c (charset_jisx0201_roman, charset_jisx0208_1978)
14008 (charset_jisx0208): New variables.
14009 (Fdefine_charset_internal): Setup them if appropriate.
14010 (init_charset_once): Initialize them to -1.
14011
14012 * charset.h (charset_jisx0201_roman, charset_jisx0208_1978)
14013 (charset_jisx0208): Extern them.
14014
14015 * coding.c (CODING_ISO_FLAG_USE_ROMAN): New macro.
14016 (CODING_ISO_FLAG_USE_OLDJIS): New macro.
14017 (CODING_ISO_FLAG_FULL_SUPPORT): Change macro definition.
14018 (setup_iso_safe_charsets): Fix arguments to Fassq.
14019 (DECODE_DESIGNATION, ENCODE_ISO_CHARACTER_DIMENSION1)
14020 (ENCODE_ISO_CHARACTER_DIMENSION2): Pay attention to
14021 CODING_ISO_FLAG_USE_ROMAN and CODING_ISO_FLAG_USE_OLDJIS.
14022 (encode_coding_iso_2022): Change the 1st arg to
14023 ENCODE_ISO_CHARACTER to a variable.
14024
140252008-02-01 Kenichi Handa <handa@m17n.org>
14026
14027 * charset.h (enum define_charset_arg_index): New enums
14028 charset_arg_min_code and charset_arg_max_code.
14029 (struct charset): New member char_index_offset.
14030
14031 * charset.c (CODE_POINT_TO_INDEX, INDEX_TO_CODE_POINT):
14032 Take charset->char_index_offset into account.
14033 (Fdefine_charset_internal): Handle args[charset_arg_min_code] and
14034 args[charset_arg_max_code]. Setup charset.char_index_offset.
14035 (syms_of_charset): Fix args to Fdefine_charset_internal.
14036
140372008-02-01 Dave Love <fx@gnu.org>
14038
14039 * coding.c (decode_coding_utf_8): Reject overlong sequences.
14040
140412008-02-01 Dave Love <fx@gnu.org>
14042
14043 * coding.c: Doc fixes.
14044 (Fcoding_system_aliases): Fix return value.
14045 (Qmac): Remove (duplicated) definition.
14046
140472008-02-01 Dave Love <fx@gnu.org>
14048
14049 * charset.c (Fcharset_priority_list, Fset_charset_priority): New
14050 functions.
14051
14052 * character.c (Fstring): Doc fix.
14053
14054 * charset.c (Fdefine_charset_alias): Update Vcharset_list.
14055
14056 * fontset.c (Ffontset_info): Doc fix. Return charset names, not
14057 ids.
14058 (font-encoding-alist): Doc fix.
14059
140602008-02-01 Dave Love <fx@gnu.org>
14061
14062 * term.c (costs_set): Declare static, non-initialized for pcc.
14063 (encode_terminal_code): Remove unused var.
14064
14065 * keyboard.c (kbd_buffer_store_event): Fix interrupt_signal decl
14066 for K&R.
14067
14068 * xterm.c (xlwmenu_window_p): Fix prototype for K&R.
14069
14070 * coding.c (setup_iso_safe_charsets): Fix arg decl for K&R.
14071 (suffixes): Move out of make_subsidiaries for K&R.
14072
14073 * charset.c (map_charset_chars): Fix c_function declaration for K&R.
14074
14075 * lisp.h (DEFUN) [!PROTOTYPES]: Remove spurious `args'.
14076
140772008-02-01 Dave Love <fx@gnu.org>
14078
14079 * data.c (Fchar_or_string_p): Doc fix. Use CHARACTERP.
14080
14081 * category.c (Fmodify_category_entry): Doc fix. Remove unused vars.
14082
140832008-02-01 Yong Lu <lyongu@asia-infonet.com>
14084
14085 * charset.c (Fdefine_charset_internal): Fix argument to bzero.
14086
14087 * coding.c (decode_coding_charset): Workaround for the bug of GCC 2.96.
14088
140892008-02-01 Kenichi Handa <handa@m17n.org>
14090
14091 * Makefile.in (lisp, shortlisp): Change cyrillic.elc to cyrillic.el,
14092 vietnamese.elc to vietnamese.el. They are not bytecompiled now.
14093
140942008-02-01 Kenichi Handa <handa@m17n.org>
14095
14096 * coding.c (decode_coding_charset): Adjust for the change of
14097 Fdefine_coding_system_internal.
14098 (Fdefine_coding_system_internal): For a coding system of
14099 `charset' type, store a list of charset IDs in
14100 `charset_attr_charset_valids' element of coding attributes.
14101
141022008-02-01 Kenichi Handa <handa@m17n.org>
14103
14104 * coding.c (ONE_MORE_BYTE_NO_CHECK): Increment consumed_chars.
14105 (emacs_mule_char): New arg src. Delete arg `composition'. Change
14106 caller. Handle 2-byte and 3-byte charsets correctly.
14107 (DECODE_EMACS_MULE_COMPOSITION_RULE_20): Rename from
14108 DECODE_EMACS_MULE_COMPOSITION_RULE. Change caller.
14109 (DECODE_EMACS_MULE_COMPOSITION_RULE_21): New macro.
14110 (DECODE_EMACS_MULE_21_COMPOSITION): Call
14111 DECODE_EMACS_MULE_COMPOSITION_RULE_21. Produce correct annotation
14112 sequence.
14113 (decode_coding_emacs_mule): Handle composition correctly. Rewind
14114 `src' and `consumed_chars' correctly before calling emacs_mule_char.
14115 (DECODE_COMPOSITION_START): Correctly handle the case of altchar
14116 and alt&rule composition.
14117 (decode_coding_iso_2022): Handle composition correctly.
14118 (init_coding_once): Setup emacs_mule_bytes for private charsets.
14119
14120 * charset.c (Fdefine_charset_internal): Fix bug for the case of
14121 re-defining a charset. If the charset has :emacs-mule-id, setup
14122 emacs_mule_bytes.
14123 (Fmake_char): If CODE1 is nil, use the minimum code of the charset.
14124
141252008-02-01 Kenichi Handa <handa@m17n.org>
14126
14127 * coding.c (encode_coding_iso_2022, encode_coding_sjis)
14128 (encode_coding_big5, encode_coding_charset): If coding requires safe
14129 encoding, produce a character specified by
14130 CODING_INHIBIT_CHARACTER_SUBSTITUTION.
14131
141322008-02-01 Dave Love <fx@gnu.org>
14133
14134 * xterm.c (XSetIMValues): Declare.
14135
14136 * process.c: Conditionally include sys/wait.h, pty.h.
14137
14138 * print.c (print_object): Fix print format for 64-bit systems.
14139
14140 * keyboard.c (modify_event_symbol): Fix print format for 64-bit systems.
14141
14142 * buffer.c (emacs_strerror): Declare.
14143
14144 * fontset.c (Fclear_face_cache): Declare.
14145 (accumulate_font_info): Comment-out (unused).
14146 (face_for_char, Fset_fontset_font, Ffontset_info): Remove unused
14147 variables.
14148
14149 * character.h (string_escape_byte8): Declare.
14150
14151 * charset.c (load_charset_map, load_charset_map_from_file): Remove
14152 unused vars.
14153 (Fdefine_charset_internal, Fsplit_char, syms_of_charset)
14154 (Fmap_charset_chars): Doc fix.
14155
14156 * coding.c (Vchar_coding_system_table, Qchar_coding_system): Remove.
14157 (Fset_coding_system_priority, Fset_coding_system_priority)
14158 (Fdefine_coding_system_internal): Doc fix.
14159
141602008-02-01 Dave Love <fx@gnu.org>
14161
14162 * s/osf5-0.h (C_SWITCH_SYSTEM) [!__GNUC__]: Remove -nointrinsics.
14163
141642008-02-01 Kenichi Handa <handa@m17n.org>
14165
14166 * character.c (string_escape_byte8): Make multibyte string with
14167 correct size.
14168
14169 * charset.c (Fmake_char): Delete unnecessary code.
14170
141712008-02-01 Kenichi Handa <handa@m17n.org>
14172
14173 * xfns.c (x_encode_text): Allocate coding.destination here, and
14174 call encode_coding_object with dst_object Qnil.
14175
14176 * buffer.c (Fset_buffer_multibyte): Convert 8-bit bytes to
14177 multibyte form correctly.
14178
14179 * fontset.c (fs_load_font): Check fontp->full_name (not fontname)
14180 against Vfont_encoding_alist.
14181
14182 * coding.c (Fdecode_sjis_char): Fix typo (0x7F->0xFF). Fix the
14183 handling of charset list.
14184 (encode_coding_iso_2022): Setup coding->safe_charsets in advance.
14185 (decode_coding_object): Move point to coding->dst_pos before
14186 calling post-read-conversion function.
14187 (encode_coding_object): Give correct arguments to
14188 pre-write-conversion. Ignore the return value of
14189 pre-write-conversion function. Pay attention to the case that
14190 pre-write-conversion changes the current buffer. If dst_object is
14191 Qt, even if coding->src_bytes is zero, allocate at least one byte
14192 to coding->destination.
14193
14194 * coding.h (JIS_TO_SJIS): Fix typo (j1->s1, j2->s2).
14195
14196 * charset.c (Fmake_char): Make it more backward compatible.
14197 (Fmap_charset_chars): Fix docstring.
14198
141992008-02-01 Dave Love <fx@gnu.org>
14200
14201 * coding.c: Doc fixes.
14202 (Fdefine_coding_system_alias): Use names, not symbols, in
14203 coding-system-alist.
14204
142052008-02-01 Kenichi Handa <handa@m17n.org>
14206
14207 * fontset.c (free_realized_fontsets): Call Fclear_face_cache instead
14208 of calling free_realized_face.
14209
142102008-02-01 Yong Lu <lyongu@asia-infonet.com>
14211
14212 * charset.c (read_hex): Don't treat SPC as a comment starter.
14213 (decode_char): If CODE_POINT_TO_INDEX returns -1, always return -1.
14214 (Fdecode_char): Fix typo.
14215
142162008-02-01 Kenichi Handa <handa@m17n.org>
14217
14218 * charset.h (struct charset): New member `code_space_mask'.
14219
14220 * coding.c (coding_set_source): Delete the local variable beg_byte.
14221 (encode_coding_charset, Fdefine_coding_system_internal):
14222 Delete the local variable charset.
14223 (Fdefine_coding_system_internal): Setup
14224 attrs[coding_attr_charset_valids] correctly.
14225
14226 * charset.c (CODE_POINT_TO_INDEX): Utilize `code_space_mask'
14227 member to check if CODE is valid or not.
14228 (Fdefine_charset_internal): Initialize `code_space_mask' member.
14229 (encode_char): Before calling CODE_POINT_TO_INDEX, check if CODE
14230 is within the range of charset->min_code and carset->max_code.
14231
142322008-02-01 Dave Love <fx@gnu.org>
14233
14234 * syntax.h (syntax_temp) [!__GNUC__]: Declare.
14235
14236 * dispextern.h (generate_ascii_font): Fix return type.
14237
14238 * xfaces.c (generate_ascii_font): Fix arg declaration.
14239
14240 * coding.c (coding_inherit_eol_type)
14241 (Fset_terminal_coding_system_internal)
14242 (Fset_safe_terminal_coding_system_internal): Fix arg declarations.
14243
142442008-02-01 Kenichi Handa <handa@m17n.org>
14245
14246 * coding.c (decode_coding_charset, encode_coding_charset): Handle
14247 multiple charsets correctly.
14248
142492008-02-01 Kenichi Handa <handa@m17n.org>
14250
14251 * search.c (boyer_moore): Fix handling of multibyte character
14252 translation.
14253
14254 * xdisp.c (display_mode_element): When the variable `elt' is
14255 changed, update `this' and `lisp_string'.
14256
142572008-02-01 Kenichi Handa <handa@m17n.org>
14258
14259 * buffer.c (Fset_buffer_multibyte): Fix 8-bit char handling.
14260
14261 * callproc.c (Fcall_process): Be sure to give the current buffer
14262 to decode_coding_c_string. Update PT and PT_BYTE after the insertion.
14263
14264 * charset.c (struct charset_map_entries): New struct.
14265 (load_charset_map): Rename from parse_charset_map. New args
14266 entries and n_entries. Change caller.
14267 (load_charset_map_from_file): Rename from load_charset_map.
14268 Change caller. New arg control_flag. Call load_charset_map at
14269 the tail.
14270 (load_charset_map_from_vector): New function.
14271 (Fdefine_charset_internal): Setup charset.compact_codes_p.
14272 (encode_char): If the charset is compact, change a character index
14273 to a code point.
14274
14275 * coding.c (coding_alloc_by_making_gap): Check the case that the
14276 source and destination are the same correctly.
14277 (decode_coding_raw_text): Set coding->consumed_char and
14278 coding->consumed to 0.
14279 (produce_chars): If coding->chars_at_source is nonzero, update
14280 coding->consumed_char and coding->consumed before calling
14281 alloc_destination.
14282 (Fdefine_coding_system_alias): Register ALIAS in
14283 Vcoding_system_alist.
14284 (syms_of_coding): Define `no-conversion' coding system at the tail.
14285
14286 * fileio.c (Finsert_file_contents): Set coding_system instead of
14287 val. If the current buffer is multibyte, always call
14288 decode_coding_gap.
14289
14290 * xfaces.c (try_font_list): Give higher priority to fontset's
14291 family than face's family.
14292
142932008-02-01 Kenichi Handa <handa@m17n.org>
14294
14295 * callproc.c (Fcall_process): Be sure to give the current buffer
14296 to decode_coding_c_string.
14297
14298 * xfaces.c (try_font_list): Give a family specified in a fontset
14299 higher priority than a family specified in a face.
14300
143012008-02-01 Kenichi Handa <handa@m17n.org>
14302
14303 * fileio.c (Finsert_file_contents): Fix calculation of `inserted'.
14304 Fix arguments to insert_from_buffer.
14305
14306 * xdisp.c (display_mode_element): Fix calculation of `bytepos'.
14307
143082008-02-01 Kenichi Handa <handa@m17n.org>
14309
14310 * coding.c (produce_chars): Set the variable `multibytep' correctly.
14311 (decode_coding_gap): Set coding->dst_multibyte correctly.
14312
143132008-02-01 Kenichi Handa <handa@m17n.org>
14314
14315 * coding.c (encode_coding_utf_8): Initialize produced_chars to 0.
14316 (decode_coding_utf_16): Fix converting high and low bytes to code-point.
14317 (encode_coding_utf_16): Substitute coding->default_char for
14318 non-Unicode characters.
14319 (decode_coding): Don't call record_insert here.
14320 (setup_coding_system): Initialize `surrogate' of
14321 coding->spec.utf_16 to 0.
14322 (EMIT_ONE_BYTE): Fix for multibyte case.
14323
14324 * insdel.c (insert_from_gap): Call record_insert.
14325
143262008-02-01 Kenichi Handa <handa@m17n.org>
14327
14328 * casefiddle.c (casify_region): Fix multibyte case.
14329
14330 * character.c (c_string_width): Add return type `int'.
14331 (char_string_with_unification): Delete arg ADVANCED.
14332
14333 * character.h (CHAR_VALID_P): Don't call CHARACTERP.
14334 (CHAR_STRING): Adjust for the change of char_string_with_unification.
14335 (CHAR_STRING_ADVANCE): Make it do-while statement.
14336
14337 * chartab.c (sub_char_table_set_range): Optimize for the case
14338 DEPTH == 3. Add workaround code for a GCC optimization bug.
14339
14340 * charset.c (parse_charset_map): Remove an unused variable.
14341
14342 * coding.c: Delete unused variables.
14343
14344 * fileio.c (Finsert_file_contents): Set coding_system to Qnil
14345 earlier. If inserted is zero and the coding system doesn't
14346 require flushing, don't call decode_coding_gap.
14347
14348 * syntax.h (SET_RAW_SYNTAX_ENTRY): Don't call make_number.
14349
143502008-02-01 Kenichi Handa <handa@m17n.org>
14351
14352 The following changes are for using Unicode as an internal
14353 character model, and use UTF-8 format for buffer/string
14354 representation.
14355
14356 * .gdbinit (xchartable): Adjust for the change of char table structure.
14357 (xsubchartable, xcoding, xcharset, xcurbuf): New commands.
14358
14359 * Makefile.in (obj): Add character.o and chartab.o.
14360 (lisp, shortlisp): Remove utf-8.elc.
14361 (*.o): For many files, change dependency on charset.h to
14362 character.h, and add dependency on character.h.
14363 (character.o, chartab.o): New targets.
14364
14365 * abbrev.c, bytecode.c, casefiddle.c, cmds.c, dispnew.c, doc.c:
14366 * doprnt.c, dosfns.c, frame.c, marker.c, minibuf.c, msdos.c:
14367 * w16select.c, w32bdf.c, w32console.c: Include "character.h" instead
14368 of "charset.h".
14369
14370 * dired.c, filelock.c: Include "character.h".
14371
14372 * alloc.c: Include "character.h" instead of "charset.h".
14373 (Fmake_char_table, make_sub_char_table): Move to chartab.c.
14374 (syms_of_alloc): Remove defsubr for Smake_char_table.
14375
14376 * buffer.c: Include "character.h" instead of "charset.h", don't
14377 include "coding.h".
14378 (Fset_buffer_multibyte): Adjust for UTF-8.
14379
14380 * buffer.h: EXFUN Fbuffer_live_p.
14381
14382 * callproc.c: Include "character.h" instead of "charset.h".
14383 (Fcall_process): Big change for the new code-conversion APIs.
14384
14385 * casetab.c: Include "character.h" instead of "charset.h".
14386 (set_canon, set_identity, shuffle): Adjust for the new
14387 map_char_table spec.
14388 (init_casetab_once): Call CHAR_TABLE_SET instead of directly
14389 accessing the char table structure.
14390
14391 * chartab.c: New file that implements char table.
14392
14393 * category.c: Include "character.h".
14394 (copy_category_entry): New function.
14395 (copy_category_table): Call map_char_table and copy_category_entry.
14396 (Fmake_category_table): Initialize all top-level slots.
14397 (char_category_set): New function.
14398 (modify_lower_category_set): Delete.
14399 (Fmodify_category_entry): Call char_table_ref_and_range.
14400
14401 * category.h (CATEGORY_SET): Just call char_category_set.
14402
14403 * ccl.c: Include "character.h".
14404 (Qccl, Qcclp): New variables.
14405 (CCL_WRITE_CHAR): Alway treat the arg CH as a character even if
14406 it's less than 256.
14407 (CCL_WRITE_MULTIBYTE_CHAR): Delete.
14408 (CCL_WRITE_STRING, CCL_READ_CHAR): Adjust for the change of SRC
14409 and DST type.
14410 (ccl_driver): Change types of argument, adjust code accordingly.
14411 (Fccl_execute, Fccl_execute_on_string): Adjust for the change of
14412 ccl_driver.
14413 (syms_of_ccl): Intern and staticpro Qccl and Qcclp.
14414
14415 * ccl.h (struct ccl_program): Delete members eol_type and multibyte.
14416 New members src_multibyte, dst_multibyte, consumed, and produced.
14417 (struct ccl_spec): Delete members decoder and encoder. New member ccl.
14418 (CODING_SPEC_CCL_PROGRAM): New macro.
14419 (ccl_driver): Update prototype.
14420 (Qccl, Qcclp, Fccl_program_p): Extern them.
14421 (CHECK_CCL_PROGRAM): New macro.
14422
14423 * character.c, character.h, chartab.c: New files.
14424
14425 * charset.c: Mostly re-written. Move character and multibyte sequence
14426 handling codes to character.c.
14427
14428 * charset.h: Mostly re-written. Move character and multibyte sequence
14429 handling codes to character.h.
14430
14431 * coding.c, coding.h: Mostly re-written.
14432
14433 * composite.c: Include "character.h" instead of "charset.h".
14434 (CHAR_WIDTH): Move to character.h.
14435 (HASH_KEY, HASH_VALUE): Delete.
14436
14437 * composite.h (enum composition_method): Change order of enumeration
14438 symbols.
14439
14440 * data.c: Include "character.h" instead of "charset.h".
14441 (Faref): Call CHAR_TABLE_REF for a char table.
14442 (Faset): Call CHAR_TABLE_SET for a char table.
14443
14444 * dispextern.h (free_realized_face, check_face_attribytes)
14445 (generate_ascii_font): Extern them.
14446 (free_realized_multibyte_face): Delete extern.
14447
14448 * disptab.h (DISP_CHAR_VECTOR): Adjust for the change of char
14449 table structure.
14450
14451 * editfns.c: Include "character.h" instead of "charset.h".
14452 (Fchar_to_string): Always call CHAR_STRING.
14453
14454 * emacs.c (main): Call init_charset_once, init_charset,
14455 syms_of_chartab, and syms_of_character.
14456
14457 * fileio.c: Include "character.h" instead of "charset.h".
14458 (Finsert_file_contents): Big change for the new code-conversion API.
14459 (choose_write_coding_system, Fwrite_region): Likewise.
14460 (build_annotations_2): Delete.
14461 (e_write): Big change for the new code-conversion API.
14462
14463 * fns.c: Include "character.h" instead of "charset.h".
14464 (copy_sub_char_table): Move to chartab.c.
14465 (Fcopy_sequence): Call copy_char_table for a char table.
14466 (concat): Delete codes calling count_multibyte.
14467 (string_char_to_byte, string_byte_to_char): Adjust for the new
14468 multibyte form.
14469 (internal_equal): Adjust for the change of char table structure.
14470 (Fchar_table_subtype, Fchar_table_parent, Fset_char_table_parent)
14471 (Fchar_table_extra_slot, Fset_char_table_extra_slot)
14472 (Fchar_table_range, Fset_char_table_range, Fset_char_table_default)
14473 (char_table_translate, optimize_sub_char_table)
14474 (Foptimize_char_table, map_char_table, Fmap_char_table): Move to
14475 chartab.c.
14476 (char_table_ref_and_index): Delete.
14477 (HASH_KEY, HASH_VALUE): Move to lisp.h.
14478 (Fmd5): Call preferred_coding_system instead of accessing
14479 Vcoding_category_list. Adjust for the new code-conversion API.
14480 (syms_of_fns): Move defsubr for char table related functions to
14481 chartab.c.
14482
14483 * fontset.c: Mostly re-written.
14484
14485 * fontset.h (struct font_info): Change type of the member encoding_type.
14486 (enum FONT_SPEC_INDEX): New enum.
14487 (fontset_font_pattern, fs_load_font): Update prototype.
14488 (FS_LOAD_FONT): Adjust for the change of fs_load_font.
14489
14490 * indent.c: Include "character.h" instead of "charset.h".
14491 (MULTIBYTE_BYTES_WIDTH): Call CHAR_WIDTH instead of WIDTH_BY_CHAR_HEAD.
14492
14493 * insdel.c: Include "character.h" instead of "charset.h".
14494 (copy_text): Don't refer to Vnonascii_translation_table.
14495 (insert_from_gap): New function.
14496
14497 * keyboard.c: Include "character.h" instead of "charset.h".
14498 (command_loop_1): Never call direct_output_forward_char before
14499 a non-ASCII character.
14500 (read_char): If Vkeyboard_translate_table is a char table, always
14501 translate a character.
14502
14503 * keymap.c: Include "character.h".
14504 (store_in_keymap): Handle the case that IDX is a cons.
14505 (Fdefine_key): Handle the case that KEY is a cons and the car part
14506 is also a cons (range).
14507 (push_key_description): Adjust for the new character code.
14508 (describe_vector): Call describe_char_table for a char table.
14509 (describe_char_table): New function.
14510
14511 * keymap.h (describe_char_table): Extern it.
14512
14513 * lisp.h (enum pvec_type): New member PVEC_SUB_CHAR_TABLE.
14514 (XSUB_CHAR_TABLE, XSETSUB_CHAR_TABLE): New macros.
14515 (CHAR_TABLE_ORDINARY_SLOTS, CHAR_TABLE_SINGLE_BYTE_SLOTS)
14516 (SUB_CHAR_TABLE_ORDINARY_SLOTS, SUB_CHAR_TABLE_STANDARD_SLOTS):
14517 Delete.
14518 (CHAR_TABLE_REF, CHAR_TABLE_SET): Adjust for the new char table
14519 structure.
14520 (CHAR_TABLE_TRANSLATE): Just call char_table_translate.
14521 (CHARTAB_SIZE_BITS_0, CHARTAB_SIZE_BITS_1, CHARTAB_SIZE_BITS_2)
14522 (CHARTAB_SIZE_BITS_3): New macros.
14523 (chartab_size): Extern it.
14524 (struct Lisp_Char_Table): Re-design.
14525 (struct Lisp_Sub_Char_Table): New structure.
14526 (HASH_KEY, HASH_VALUE): Move from fns.c.
14527 (CHARACTERBITS): Define as 22.
14528 (GLYPH_MASK_FACE, GLYPH_MASK_CHAR): Adjust for the above change.
14529 (SUB_CHAR_TABLE_P): Check PVEC_CHAR_TABLE.
14530 (GC_SUB_CHAR_TABLE_P): New macro.
14531 (Fencode_coding_string, Fdecode_coding_string): Update EXFUN.
14532 (code_convert_string_norecord): Deleted extern.
14533 (init_character_once, syms_of_character, init_charset)
14534 (syms_of_composite, Qeq, Fmakehash, insert_from_gap): Extern them.
14535
14536 * lread.c: Include "character.h".
14537 (read_multibyte): New arg NBYTES.
14538 (read_escape): Change the meaning of returned *BYTEREP.
14539 (to_multibyte): Delete.
14540 (read1): Adjust the handling of char table and string.
14541
14542 * print.c: Include "character.h" instead of "charset.h".
14543 (print_string): Convert 8-bit raw bytes to octal form by
14544 string_escape_byte8.
14545 (print_object): Adjust for the new multibyte form. Print 8-bit
14546 raw bytes always in octal form. Handle sub char table correctly.
14547
14548 * process.c: Include "character.h" instead of "charset.h".
14549 (read_process_output, send_process): Adjust for the new
14550 code-conversion API.
14551
14552 * puresize.h (BASE_PURESIZE): Increase.
14553
14554 * regex.c: Include "character.h" instead of "charset.h".
14555 (BYTE8_TO_CHAR, CHAR_BYTE8_P) [not emacs]: New dummy macros.
14556 (regex_compile): Accept a range whose starting and ending
14557 character have different leading bytes.
14558 (analyse_first): Adjust for the above change.
14559
14560 * search.c: Include "character.h" instead of "charset.h".
14561 (search_buffer, boyer_moore): Adjust for the new multibyte form.
14562 (Freplace_match): Adjust for the change of multibyte_char_to_unibyte.
14563
14564 * syntax.c: Include "character.h" instead of "charset.h".
14565 (syntax_parent_lookup): Delete.
14566 (Fmodify_syntax_entry): Accept a cons as CHAR.
14567 (skip_chars): Adjust for the new multibyte form.
14568 (init_syntax_once): Call char_table_set_range instead of directly
14569 accessing the structure of a char table.
14570
14571 * syntax.h (SET_RAW_SYNTAX_ENTRY): Call CHAR_TABLE_SET.
14572 (SYNTAX_ENTRY_FOLLOW_PARENT): Delete macro.
14573 (SET_RAW_SYNTAX_ENTRY_RANGE): New macro.
14574 (SYNTAX_ENTRY_INT): Call CHAR_TABLE_REF.
14575
14576 * term.c: Include "buffer.h" and "character.h".
14577 (encode_terminal_code, write_glyphs): Adjust for the new
14578 code-conversion API.
14579 (produce_glyphs): Call CHAR_WIDTH instead of CHARSET_WIDTH.
14580
14581 * w32term.c (x_new_font): Adjust for the change of FS_LOAD_FONT.
14582
14583 * xdisp.c: Include "character.h".
14584 (get_next_display_element): Adjust for the new multibyte form.
14585 (disp_char_vector): Adjust for the new char table structure.
14586 (decode_mode_spec_coding): Adjust for the new structure of
14587 coding system.
14588 (decode_mode_spec): Adjust for the new code-conversion API.
14589
14590 * xfaces.c: Include "character.h" instead of "charset.h".
14591 (load_face_font): Adjust for the change of choose_face_font and
14592 FS_LOAD_FONT.
14593 (generate_ascii_font): New function.
14594 (set_lface_from_font_name): Adjust for the change of FS_LOAD_FONT.
14595 (set_font_frame_param): Adjust for the change of choose_face_font.
14596 (free_realized_face): Make it public.
14597 (free_realized_faces_for_fontset): Rename from
14598 free_realized_multibyte_face. Free also faces realized for ASCII.
14599 (choose_face_font): Change arguments. Adjust for the change of
14600 fontset_font_pattern and FS_LOAD_FONT.
14601
14602 * xfns.c: Include "character.h".
14603 (x_encode_text): Adjust for the new code-conversion API.
14604
14605 * xselect.c: Don't include "charset.h".
14606 (selection_data_to_lisp_data): Adjust for the new code conversion API.
14607
14608 * xterm.c: Include "character.h".
14609 (x_encode_char): New argument CHARSET. Change caller.
14610 (x_get_char_face_and_encoding, x_get_glyph_face_and_encoding):
14611 Call ENCODE_CHAR instead of SPLIT_CHAR.
14612 (x_produce_glyphs): Don't check Vnonascii_translation_table Call
14613 CHAR_WIDTH instead of CHARSET_WIDTH.
14614 (XTread_socket): Adjust for the new code-conversion API.
14615 (x_new_font): Adjust for the change of FS_LOAD_FONT.
14616 (x_load_font): Adjust for the change of struct font.
14617
146182008-02-01 Stefan Monnier <monnier@iro.umontreal.ca>
14619
14620 * xfaces.c (face_at_buffer_position): Remove unused vars.
14621
146222008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
14623
14624 * ccl.c (CCL_WRITE_CHAR, CCL_WRITE_MULTIBYTE_CHAR):
14625 Fix overflow checking.
14626
146272008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
14628
14629 * ccl.c (CCL_WRITE_CHAR, CCL_WRITE_MULTIBYTE_CHAR, ccl_driver):
14630 Cancel previous change.
14631
146322008-01-31 Kenichi Handa <handa@ni.aist.go.jp>
14633
14634 * ccl.c (CCL_WRITE_CHAR): Increment extra_bytes only when
14635 ccl->eight_bit_control. Fix check for buffer overflow.
14636 (CCL_WRITE_MULTIBYTE_CHAR): Fix check for buffer overflow.
14637 (ccl_driver): Initialize extra_bytes to 0.
14638
146392008-01-31 Kenichi Handa <handa@ni.aist.go.jp>
14640
14641 * keyboard.c (make_ctrl_char): If C is a multibyte character, just
14642 return it ORed with ctrl_modifier.
14643
146442008-01-29 Miles Bader <miles@gnu.org>
14645
14646 * macterm.c (XTset_vertical_scroll_bar): Fix merge mistake.
14647
146482008-01-28 Jason Rumney <jasonr@gnu.org>
14649
14650 * w32.c (stat): Don't double check for networked drive.
14651
146522008-01-28 Stefan Monnier <monnier@iro.umontreal.ca>
14653
14654 * window.c (run_window_configuration_change_hook): New function.
14655 Code extracted from set_window_buffer. Set the selected frame.
14656 (set_window_buffer): Use it.
14657 * window.h (run_window_configuration_change_hook): Declare.
14658 * dispnew.c (change_frame_size_1): Use it instead of set-window-buffer.
14659
14660 * keyboard.c (read_char): Yet another int/Lisp_Object mixup (YAILOM).
14661
146622008-01-27 Dan Nicolaescu <dann@ics.uci.edu>
14663
14664 * Makefile.in: Remove references to unused macros.
14665
146662008-01-26 Eli Zaretskii <eliz@gnu.org>
14667
14668 * w32.c (g_b_init_get_sid_sub_authority)
14669 (g_b_init_get_sid_sub_authority_count): New static variables.
14670 (GetSidSubAuthority_Proc, GetSidSubAuthorityCount_Proc): New typedefs.
14671 (get_sid_sub_authority, get_sid_sub_authority_count): New functions.
14672 (init_user_info): Use them to retrieve uid and gid.
14673 Use 500/513, the Windows defaults, as Administrator's uid/gid.
14674 (fstat): Use pw_uid and pw_gid from the_passwd structure for
14675 st_uid and st_gid of the file.
14676
146772008-01-26 Jason Rumney <jasonr@gnu.org>
14678
14679 * w32.c (logon_network_drive): New function.
14680 (stat): Use it.
14681
146822008-01-26 Chong Yidong <cyd@stupidchicken.com>
14683
14684 * xdisp.c (pos_visible_p): Handle the case where charpos falls on
14685 invisible text covered with an ellipsis.
14686
146872008-01-25 Richard Stallman <rms@gnu.org>
14688
14689 * xdisp.c (redisplay_window): Run Qwindow_text_change_functions and
14690 jump back to beginning. Move some other initializations after that.
14691 (Qwindow_text_change_functions, Vwindow_text_change_functions):
14692 New variables.
14693 (syms_of_xdisp): Init them.
14694
14695 * keyboard.c (read_char): Restore echo_message_buffer after redisplay.
14696
14697 * buffer.c (reset_buffer_local_variables):
14698 Implement `permanent-local-hook'.
14699 (Qpermanent_local_hook): New variable.
14700 (syms_of_buffer): Init and staticpro it.
14701
147022008-01-25 Michael Albinus <michael.albinus@gmx.de>
14703
14704 * dbusbind.c (xd_retrieve_arg): Pacify GCC on x86_64 GNU/Linux.
14705
147062008-01-25 Thien-Thi Nguyen <ttn@gnuvola.org>
14707
14708 * fns.c (Fclrhash): Return TABLE.
14709
147102008-01-23 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
14711
14712 * macterm.c (x_scroll_bar_create): Initialize bar->redraw_needed_p.
14713 (XTset_vertical_scroll_bar): Redraw scroll bar if bar->redraw_needed_p
14714 is set even without positional changes.
14715 (x_scroll_bar_clear): Set bar->redraw_needed_p.
14716
14717 * macterm.h (struct scroll_bar): New member `redraw_needed_p'.
14718
147192008-01-23 Jason Rumney <jasonr@gnu.org>
14720
14721 * xterm.c (handle_one_xevent): Revert to counting chars not bytes.
14722
14723 * w32term.c (w32_read_socket) <WM_CHAR>: Decode characters outside
14724 the unicode range available in MULE by locale-coding-system.
14725 Improve dbcs lead byte detection. Set event timestamp and modifiers
14726 earlier.
14727
147282008-01-23 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
14729
14730 * mac.c (mac_emacs_pid) [MAC_OSX]: New variable.
14731 [MAC_OSX] (init_mac_osx_environment): Initialize it.
14732 [MAC_OSX] (mac_try_close_socket) [SELECT_USE_CFSOCKET]: Return 0
14733 when used on child processes.
14734
147352008-01-21 Michael Albinus <michael.albinus@gmx.de>
14736
14737 * dbusbind.c (Fdbus_method_return_internal): Rename from
14738 Fdbus_method_return.
14739 (Fdbus_unregister_object): Move to dbus.el.
14740 (Fdbus_call_method, Fdbus_method_return_internal)
14741 (Fdbus_send_signal): Improve debug messages.
14742
147432008-01-20 Martin Rudalics <rudalics@gmx.at>
14744
14745 * undo.c (undo_inhibit_record_point): New variable.
14746 (syms_of_undo): Initialize it.
14747 (record_point): Don't record point when undo_inhibit_record_point
14748 is set.
14749
147502008-01-19 Stefan Monnier <monnier@iro.umontreal.ca>
14751
14752 * process.c (list_processes_1): Don't use SCHARS on a nil buffer name.
14753
14754 * xdisp.c (Qauto_hscroll_mode): New var.
14755 (syms_of_xdisp): Initialize it.
14756 (hscroll_window_tree): Use it to lookup `auto-hscroll-mode' in each
14757 window's buffer.
14758 (hscroll_windows): Don't check automatic_hscrolling_p here.
14759
14760 * window.c (set_window_buffer): Don't unnecessarily reset hscroll and
14761 vscroll if we're setting window-buffer to the value it already has.
14762
147632008-01-18 Dan Nicolaescu <dann@ics.uci.edu>
14764
14765 * m/intel386.h: Remove references to XENIX.
14766
147672008-01-17 Andreas Schwab <schwab@suse.de>
14768
14769 * m/amdx86-64.h (START_FILES, LIB_STANDARD): Use HAVE_LIB64_DIR
14770 instead of HAVE_X86_64_LIB64_DIR.
14771 * m/ibms390x.h (START_FILES, LIB_STANDARD): Likewise.
14772
147732008-01-17 Glenn Morris <rgm@gnu.org>
14774
14775 * m/ibms390x.h (START_FILES, LIB_STANDARD): Adjust value according
14776 to HAVE_X86_64_LIB64_DIR.
14777
147782008-01-16 Dan Nicolaescu <dann@ics.uci.edu>
14779
14780 * s/irix3-3.h:
14781 * s/irix4-0.h:
14782 * s/386-ix.h:
14783 * s/domain.h:
14784 * s/hpux9-x11r4.h:
14785 * s/hpux9shxr4.h: Remove files for systems no longer supported.
14786
14787 * sysdep.c: Remove code containing references to symbols defined
14788 by unsupported systems.
14789
147902008-01-16 Glenn Morris <rgm@gnu.org>
14791
14792 * coding.c (select-safe-coding-system-function): Doc fix.
14793
147942008-01-15 Glenn Morris <rgm@gnu.org>
14795
14796 * config.in: Revert 2008-01-13 change: this is a generated file.
14797
147982008-01-13 Tom Tromey <tromey@redhat.com>
14799
14800 * lisp.h: Fix typo.
14801
148022008-01-13 Dan Nicolaescu <dann@ics.uci.edu>
14803
14804 * m/sequent-ptx.h:
14805 * m/sequent.h:
14806 * s/ptx.h:
14807 * s/ptx4-2.h:
14808 * s/ptx4.h: Remove files for systems no longer supported.
14809
14810 * callproc.c (Fcall_process): Fix previous change.
14811
148122008-01-13 Dan Nicolaescu <dann@ics.uci.edu>
14813
14814 * unexsunos4.c: Remove file, system not supported anymore.
14815
14816 * m/mips.h:
14817 * m/intel386.h:
14818 * callproc.c:
14819 * config.in:
14820 * ecrt0.c:
14821 * emacs.c:
14822 * fileio.c:
14823 * frame.c:
14824 * getpagesize.h:
14825 * keyboard.c:
14826 * lread.c:
14827 * process.c:
14828 * puresize.h:
14829 * sysdep.c:
14830 * systty.h:
14831 * syswait.h:
14832 * unexec.c:
14833 * xdisp.c:
14834 * alloc.c: Remove code containing references to symbols defined by
14835 unsupported systems.
14836
148372008-01-11 Kenichi Handa <handa@ni.aist.go.jp>
14838
14839 * coding.c (detect_coding_mask): Fix previous change.
14840
148412008-01-09 Kenichi Handa <handa@ni.aist.go.jp>
14842
14843 * coding.c (detect_coding_iso2022): New arg
14844 latin_extra_code_state. Allow Latin extra codes only
14845 when *latin_extra_code_state is nonzero.
14846 (detect_coding_mask): If there is a NULL byte, detect the encoding
14847 as UTF-16 or binary. If Latin extra codes exist, detect the
14848 encoding as ISO-2022 only when there's no other proper encoding is
14849 found.
14850
148512008-01-08 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
14852
14853 * frame.c (Fmake_terminal_frame): Use #ifdef MAC_OS8 instead of
14854 #ifdef MAC_OS.
14855
148562008-01-08 Richard Stallman <rms@gnu.org>
14857
14858 * fileio.c (Ffile_name_directory, Fexpand_file_name): Doc fixes.
14859
148602008-01-06 Nick Roberts <nickrob@snap.net.nz>
14861
14862 * keyboard.c (parse_menu_item): Don't enclose key bindings on
14863 menu bar in parentheses.
14864
148652008-01-06 Dan Nicolaescu <dann@ics.uci.edu>
14866
14867 * m/7300.h:
14868 * m/acorn.h:
14869 * m/alliant-2800.h:
14870 * m/alliant.h:
14871 * m/alliant1.h:
14872 * m/alliant4.h:
14873 * m/altos.h:
14874 * m/amdahl.h:
14875 * m/apollo.h:
14876 * m/att3b.h:
14877 * m/aviion-intel.h:
14878 * m/aviion.h:
14879 * m/celerity.h:
14880 * m/clipper.h:
14881 * m/cnvrgnt.h:
14882 * m/convex.h:
14883 * m/cydra5.h:
14884 * m/delta88k.h:
14885 * m/dpx2.h:
14886 * m/dual.h:
14887 * m/elxsi.h:
14888 * m/f301.h:
14889 * m/gould-np1.h:
14890 * m/gould.h:
14891 * m/i860.h:
14892 * m/ibmps2-aix.h:
14893 * m/ibmrt-aix.h:
14894 * m/ibmrt.h:
14895 * m/irist.h:
14896 * m/is386.h:
14897 * m/isi-ov.h:
14898 * m/mega68.h:
14899 * m/mg1.h:
14900 * m/news-r6.h:
14901 * m/news-risc.h:
14902 * m/news.h:
14903 * m/nh3000.h:
14904 * m/nh4000.h:
14905 * m/ns16000.h:
14906 * m/ns32000.h:
14907 * m/nu.h:
14908 * m/orion.h:
14909 * m/orion105.h:
14910 * m/paragon.h:
14911 * m/pfa50.h:
14912 * m/plexus.h:
14913 * m/pyramid.h:
14914 * m/pyrmips.h:
14915 * m/sh3el.h:
14916 * m/sps7.h:
14917 * m/sr2k.h:
14918 * m/stride.h:
14919 * m/sun1.h:
14920 * m/sun2.h:
14921 * m/sun3-68881.h:
14922 * m/sun3-fpa.h:
14923 * m/sun3-soft.h:
14924 * m/sun3.h:
14925 * m/sun386.h:
14926 * m/symmetry.h:
14927 * m/tad68k.h:
14928 * m/tahoe.h:
14929 * m/targon31.h:
14930 * m/tek4300.h:
14931 * m/tekxd88.h:
14932 * m/tower32.h:
14933 * m/tower32v3.h:
14934 * m/ustation.h:
14935 * m/wicat.h:
14936 * m/xps100.h:
14937 * s/cxux.h:
14938 * s/cxux7.h:
14939 * s/dgux.h:
14940 * s/dgux4.h:
14941 * s/dgux5-4-3.h:
14942 * s/dgux5-4r2.h:
14943 * s/esix.h:
14944 * s/esix5r4.h:
14945 * s/hiuxmpp.h:
14946 * s/hiuxwe2.h:
14947 * s/iris3-5.h:
14948 * s/iris3-6.h:
14949 * s/isc2-2.h:
14950 * s/isc3-0.h:
14951 * s/isc4-0.h:
14952 * s/isc4-1.h:
14953 * s/newsos5.h:
14954 * s/newsos6.h:
14955 * s/osf1.h:
14956 * s/osf5-0.h:
14957 * s/riscix1-1.h:
14958 * s/riscix12.h:
14959 * s/sco4.h:
14960 * s/sco5.h:
14961 * s/sunos4-0.h:
14962 * s/sunos4-1.h:
14963 * s/sunos413.h:
14964 * s/sunos4shr.h:
14965 * s/umax.h:
14966 * s/unipl5-2.h:
14967 * s/xenix.h:
14968 * cxux-crt0.s:
14969 * unexapollo.c:
14970 * unexconvex.c:
14971 * unexenix.c:
14972 * unexsni.c: Remove files for systems no longer supported.
14973
14974 * m/intel386.h: Remove references to unsupported systems.
14975
14976 * w32.c (get_emacs_configuration): Remove reference to i860.
14977
14978 * sysdep.c: Remove dead code.
14979
149802008-01-05 Dan Nicolaescu <dann@ics.uci.edu>
14981
14982 * s/rtu.h:
14983 * m/masscomp.h: Remove files. Platform is obsolete.
14984
149852008-01-04 Michael Albinus <michael.albinus@gmx.de>
14986
14987 * dbusbind.c (Fdbus_method_return): New function.
14988 (xd_read_message): Add the serial number to the event.
14989 (Fdbus_register_method): Activate the function.
14990
149912008-01-03 Stefan Monnier <monnier@iro.umontreal.ca>
14992
14993 * keyboard.c (read_key_sequence): Fix typo.
14994
149952008-01-03 Michael Albinus <michael.albinus@gmx.de>
14996
14997 * dbusbind.c (all): Replace XCAR by CAR_SAFE and XCDR by CDR_SAFE.
14998 (xd_signature, xd_append_arg): Handle element type detection for
14999 empty arrays.
15000 (Fdbus_call_method, Fdbus_send_signal): Undo type casting for
15001 SDATA () calls; this must be solved more general.
15002 (Fdbus_register_signal): Use SBYTES instead of strlen.
15003
150042008-01-03 Magnus Henoch <magnus@zemdatav>
15005
15006 * dbusbind.c (xd_append_arg): Use unsigned char instead of
15007 unsigned int for byte values (necessary for big-endian platform).
15008 (Fdbus_call_method): Handle the case of no returned arguments.
15009
150102007-12-31 Tom Tromey <tromey@redhat.com> (tiny change)
15011
15012 * dbusbind.c (xd_read_message): Use non-static input_event struct.
15013
150142007-12-31 Magnus Henoch <mange@freemail.hu>
15015
15016 * dbusbind.c (xd_signature): Signature of variant is just "v".
15017
150182007-12-30 Michael Albinus <michael.albinus@gmx.de>
15019
15020 * dbusbind.c: Fix several errors and compiler warnings.
15021 Reported by Tom Tromey <tromey@redhat.com>.
15022 (XD_ERROR, XD_DEBUG_MESSAGE)
15023 (XD_DEBUG_VALID_LISP_OBJECT_P): Wrap code with "do ... while (0)".
15024 (xd_append_arg): Part for basic D-Bus types rewritten.
15025 (xd_retrieve_arg): Split implementation of DBUS_TYPE_BYTE and
15026 DBUS_TYPE_(U)INT16. Don't call XD_DEBUG_MESSAGE with "%f" if not
15027 appropriate.
15028 (xd_read_message): Return Qnil. Don't signal an error; it is not
15029 useful during event reading.
15030 (Fdbus_register_signal): Signal an error if the check for
15031 FUNCTIONP fails.
15032 (Fdbus_register_method): New function. The implementation is not
15033 complete, the call of the function signals an error therefore.
15034 (Fdbus_unregister_object): New function, renamed from
15035 Fdbus_unregister_signal. The initial check signals an error, if
15036 the object is not well formed.
15037
150382007-12-30 Richard Stallman <rms@gnu.org>
15039
15040 * textprop.c (get_char_property_and_overlay):
15041 Signal error if POSITION is out of range in a buffer.
15042
150432007-12-29 Martin Rudalics <rudalics@gmx.at>
15044
15045 * w32fns.c (Fx_create_frame): Make copy of frame parameters
15046 because the original parameters are in pure storage now.
15047
150482007-12-24 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
15049
15050 * xdisp.c (phys_cursor_in_rect_p): Check if cursor is in fringe area.
15051
150522007-12-22 Eli Zaretskii <eliz@gnu.org>
15053
15054 * callint.c (syms_of_callint) <command-history>: Add reference to
15055 history-length in the doc string.
15056
150572007-12-17 Jason Rumney <jasonr@gnu.org>
15058
15059 * w32fns.c (w32_wnd_proc) <WM_KEYDOWN>: Cast char to unsigned
15060 before passing as wParam.
15061
150622007-12-22 Michael Albinus <michael.albinus@gmx.de>
15063
15064 * dbusbind.c (xd_retrieve_arg): Handle DBUS_TYPE_BYTE,
15065 DBUS_TYPE_INT16, DBUS_TYPE_UINT16, DBUS_TYPE_INT64,
15066 DBUS_TYPE_UINT64, DBUS_TYPE_DOUBLE and DBUS_TYPE_SIGNATURE.
15067 Return float when DBUS_TYPE_INT32 or DBUS_TYPE_UINT32 do not fit
15068 as number.
15069 (Fdbus_call_method): Fix docstring.
15070
150712007-12-21 Michael Albinus <michael.albinus@gmx.de>
15072
15073 * dbusbind.c (XD_BASIC_DBUS_TYPE, XD_DBUS_TYPE_P, XD_NEXT_VALUE):
15074 New macros.
15075 (XD_SYMBOL_TO_DBUS_TYPE): Rename from XD_LISP_SYMBOL_TO_DBUS_TYPE.
15076 (XD_OBJECT_TO_DBUS_TYPE): Rename from XD_LISP_OBJECT_TO_DBUS_TYPE.
15077 Simplify.
15078 (xd_signature): New function.
15079 (xd_append_arg): Compute also signatures. Major rewrite.
15080 (xd_retrieve_arg): Make debug messages friendly.
15081 (Fdbus_call_method, Fdbus_send_signal): Extend docstring.
15082 Check for signatures of arguments.
15083
150842007-12-19 Michael Albinus <michael.albinus@gmx.de>
15085
15086 * dbusbind.c (QCdbus_type_byte, QCdbus_type_boolean)
15087 (QCdbus_type_int16, QCdbus_type_uint16, QCdbus_type_int32)
15088 (QCdbus_type_uint32, QCdbus_type_int64, QCdbus_type_uint64)
15089 (QCdbus_type_double, QCdbus_type_string, QCdbus_type_object_path)
15090 (QCdbus_type_signature, QCdbus_type_array, QCdbus_type_variant)
15091 (QCdbus_type_struct, QCdbus_type_dict_entry): New D-Bus type symbols.
15092 (XD_LISP_SYMBOL_TO_DBUS_TYPE): New macro.
15093 (XD_LISP_OBJECT_TO_DBUS_TYPE): Add compound types.
15094 (xd_retrieve_value): Remove. Functionality included in ...
15095 (xd_append_arg): New function.
15096 (Fdbus_call_method, Fdbus_send_signal): Apply it.
15097
150982007-12-16 Michael Albinus <michael.albinus@gmx.de>
15099
15100 * dbusbind.c (top): Include <stdio.h>.
15101 (Fdbus_call_method, Fdbus_send_signal): Apply type cast in
15102 dbus_message_new_method_call and dbus_message_new_signal.
15103 (Fdbus_register_signal): Rename unique_name to uname.
15104 Check handler for FUNCTIONP instead of CHECK_SYMBOL. Handle case of
15105 non-existing unique name. Fix typos in matching rule. Return an
15106 object which is useful in Fdbus_unregister_signal.
15107 (Fdbus_unregister_signal): Reimplementation, in order to remove
15108 only the corresponding entry.
15109 (Vdbus_registered_functions_table): Change the order of entries.
15110 Apply these changes in xd_read_message and Fdbus_register_signal.
15111
151122007-12-16 Andreas Schwab <schwab@suse.de>
15113
15114 * fileio.c (Finsert_file_contents): Fix overflow check to not
15115 depend on undefined integer overflow.
15116
151172007-12-14 Jason Rumney <jasonr@gnu.org>
15118
15119 * w32term.c (w32_read_socket): Use MULTIBYTE_CHAR_KEYSTROKE_EVENT
15120 for characters above 127.
15121
151222007-12-13 Jason Rumney <jasonr@gnu.org>
15123
15124 * w32fns.c (w32_wnd_proc, Fw32_reconstruct_hot_key): Range check
15125 before dereferencing array.
15126 (lookup_vk_code): Remove zero comparison.
15127
151282007-12-14 Michael Albinus <michael.albinus@gmx.de>
15129
15130 * dbusbind.c (xd_retrieve_value, xd_retrieve_arg)
15131 (Fdbus_call_method, Fdbus_send_signal, xd_read_message):
15132 Use `unsigned int' instead of `uint'.
15133 (xd_read_message, Fdbus_register_signal): Split expressions into
15134 multiple lines before operators "&&" and "||", according to the
15135 GNU Coding Standards.
15136
151372007-12-14 Eli Zaretskii <eliz@gnu.org>
15138
15139 * dispextern.h (WINDOWS_NT): Fix incorrect spelling of WINDOWSNT.
15140
151412007-12-12 Juri Linkov <juri@jurta.org>
15142
15143 * buffer.c (Frename_buffer): In interactive spec replace
15144 `read-buffer' with `read-string' that uses `buffer-name-history'
15145 as history, and the current buffer's name as default.
15146
151472007-12-10 Stefan Monnier <monnier@iro.umontreal.ca>
15148
15149 * keyboard.c (Fcommand_execute): Call Qcall_interactively instead of
15150 manipulating the backtrace manually.
15151 (make_lispy_event): Merge the ASCII and MULTIBYTE cases.
15152 (struct backtrace, backtrace_list): Remove.
15153 (command_loop_1): Remove dead var `no_direct'.
15154
15155 * buffer.c (reset_buffer_local_variables): If permanent_too is 0, also
15156 preserve non-built-in buffer-local variables.
15157 (Fkill_all_local_variables): Don't re-create&re-set permanent
15158 buffer-local variables.
15159
151602007-12-09 Juri Linkov <juri@jurta.org>
15161
15162 * buffer.c (Frename_buffer): Change interactive spec from "s" to
15163 Lisp code that uses `read-buffer' with current buffer as default.
15164
151652007-12-08 Michael Albinus <michael.albinus@gmx.de>
15166
15167 * dbusbind.c (xd_read_message): Generate an event for every
15168 registered handler. There might be several handlers registered
15169 for the same signal.
15170 (Fdbus_register_signal): Don't overwrite a registration for the
15171 same signal. Add a new registration if handlers are different.
15172 (Vdbus_registered_functions_table): Rework doc string.
15173
151742007-12-07 Michael Albinus <michael.albinus@gmx.de>
15175
15176 * dbusbind.c (Fdbus_get_unique_name, xd_read_message)
15177 (Fdbus_register_signal): Use DBUS_MAXIMUM_NAME_LENGTH and
15178 DBUS_MAXIMUM_MATCH_RULE_LENGTH for string lengths.
15179 (Fdbus_call_method, Fdbus_send_signal, Fdbus_register_signal):
15180 Unify argument lists.
15181 (xd_read_message, Fdbus_register_signal): Reorder and extend event
15182 arguments and hash table keys. Use unique name for service.
15183 (Fdbus_unregister_signal): Remove checks.
15184 (Vdbus_registered_functions_table): Fix doc string.
15185
151862007-12-05 Magnus Henoch <mange@freemail.hu>
15187
15188 * process.c (make_process): Initialize pty_flag to 0.
15189
151902007-12-05 Jason Rumney <jasonr@gnu.org>
15191
15192 * image.c (xbm_load) [WINDOWSNT]: Shuffle the bits of directly
15193 specified XBMs.
15194
151952007-12-05 Richard Stallman <rms@gnu.org>
15196
15197 * xdisp.c (syms_of_xdisp) <scroll-conservatively>: Doc fix.
15198
151992007-12-05 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
15200
15201 * mac.c (cfsockets_for_select) [MAC_OSX && SELECT_USE_CFSOCKET]:
15202 New variable.
15203 (mac_try_close_socket) [MAC_OSX]: New function.
15204 [MAC_OSX] (sys_select) [SELECT_USE_CFSOCKET]:
15205 Update cfsockets_for_select. Replace invalid CFRunLoop source.
15206
15207 * sysdep.c (emacs_close) [MAC_OSX && HAVE_CARBON]:
15208 Use mac_try_close_socket.
15209
152102007-12-05 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
15211
15212 * unexmacosx.c (unrelocate): New argument BASE. Use it instead of
15213 reloc_base.
15214 (copy_dysymtab): Compute relocation base here.
15215 (rebase_reloc_address) [__ppc64__]: New function.
15216 (copy_dysymtab) [__ppc64__]: Use it if relocation base needs to be
15217 changed.
15218
152192007-12-05 Jason Rumney <jasonr@gnu.org>
15220
15221 * w32proc.c (sys_spawnve): Quote args with wildcards.
15222
152232007-12-05 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
15224
15225 * unexmacosx.c (copy_data_segment): Also copy __gcc_except_tab and
15226 __objc_* sections.
15227 (unrelocate) [_LP64]: Set relocation base to address of data segment.
15228
152292007-12-05 Michael Albinus <michael.albinus@gmx.de>
15230
15231 * dbusbind.c (xd_read_message): Return value is a Lisp_Object.
15232 Move check for Vdbus_registered_functions_table to
15233 xd_read_queued_messages.
15234 (xd_read_queued_messages): Protect xd_read_message calls by
15235 internal_condition_case_1.
15236
152372007-12-04 Michael Albinus <michael.albinus@gmx.de>
15238
15239 * dbusbind.c (QCdbus_system_bus, QCdbus_session_bus): Rename from
15240 Qdbus_system_bus and Qdbus_session_bus, respectively.
15241 (Vdbus_intern_symbols): Remove.
15242 (Vdbus_registered_functions_table): New hash table.
15243 (XD_SYMBOL_INTERN_SYMBOL): Remove.
15244 (xd_read_message, Fdbus_register_signal, Fdbus_unregister_signal):
15245 Rewrite in order to manage registered functions by hash table
15246 Vdbus_registered_functions_table.
15247
152482007-12-03 Jan Djärv <jan.h.d@swipnet.se>
15249
15250 * xterm.c: Update URL to Window Manager Specification in comment.
15251
152522007-12-02 Michael Albinus <michael.albinus@gmx.de>
15253
15254 * config.in (HAVE_DBUS): Add.
15255
15256 * Makefile.in (HAVE_DBUS): Add D-Bus definitions if defined.
15257 (ALL_CFLAGS): Add ${DBUS_CFLAGS}.
15258 (obj): Add $(DBUS_OBJ).
15259 (LIBES): Add $(DBUS_LIBS).
15260 (dbusbind.o): New target.
15261
15262 * dbusbind.c: New file.
15263
15264 * emacs.c (main): Call syms_of_dbusbind when HAVE_DBUS is defined.
15265
15266 * keyboard.c: All D-Bus related code is wrapped by "#ifdef HAVE_DBUS".
15267 (Qdbus_event): New Lisp symbol.
15268 (kbd_buffer_get_event, make_lispy_event): Handle DBUS_EVENT.
15269 (gobble_input): Call xd_read_queued_messages, reading D-Bus messages.
b97439ce 15270 (keys_of_keyboard): Define dbus-event.
aac0c6e3
MR
15271
15272 * termhooks.h (event_kind): Add DBUS_EVENT when HAVE_DBUS is defined.
15273
152742007-12-01 Richard Stallman <rms@gnu.org>
15275
15276 * search.c (syms_of_search) <inhibit-changing-match-data>: Doc fix.
15277
152782007-11-30 Jason Rumney <jasonr@gnu.org>
15279
15280 * w32console.c (w32con_ins_del_lines, scroll_line): Clip to window.
15281 (w32con_reset_terminal_modes): Clear screen buffer.
15282 (w32_face_attributes): Don't use color indexes that are out of range.
15283 Only reverse the default colors.
15284
15285 * xfaces.c (map_tty_color, tty_color_name): Remove special case for
15286 WINDOWSNT.
15287
15288 * w32console.c, w32term.h (vga_stdcolor_name): Remove.
15289
152902007-11-29 Jason Rumney <jasonr@gnu.org>
15291
15292 * w32console.c: Leave HAVE_WINDOW_SYSTEM defined.
15293 (w32_face_attributes): Use Vtty_defined_color_alist to determine
15294 if the terminal colors are initialized.
15295 (unspecified_fg, unspecified_bg): Remove unused declarations.
15296
152972007-11-29 Andreas Schwab <schwab@suse.de>
15298
15299 * keyboard.c (apply_modifiers): Fix typo.
15300
153012007-11-29 Richard Stallman <rms@gnu.org>
15302
15303 * keymap.c (Fcurrent_local_map): Doc fix.
15304
153052007-11-28 Petr Salinger <Petr.Salinger@seznam.cz> (tiny change)
15306
15307 * s/gnu-kfreebsd.h: New file.
15308
153092007-11-28 Stefan Monnier <monnier@iro.umontreal.ca>
15310
15311 * buffer.c (Fget_buffer_create, Fmake_indirect_buffer):
15312 Don't cast redundantly.
15313
15314 * keyboard.c (KEY_TO_CHAR): New macro.
15315 (parse_modifiers, apply_modifiers): Accept integer arguments.
15316 (read_key_sequence): Use them to unify the "shift->unshift" mapping
15317 for chars and symbol keys.
15318 After doing such remapping, apply function-key-map again.
15319
153202007-11-27 Dan Nicolaescu <dann@ics.uci.edu>
15321
15322 * Makefile.in (SOME_MACHINE_LISP): Remove VMS files, they are not
15323 compiled anymore.
15324
153252007-11-26 Andreas Schwab <schwab@suse.de>
15326
15327 * process.c (list_processes_1): Fix indentation level of the
15328 command column.
15329
153302007-11-23 Andreas Schwab <schwab@suse.de>
15331
15332 * editfns.c (Fformat): Handle %c specially since it requires the
15333 argument to be of type int.
15334
153352007-11-23 Markus Triska <markus.triska@gmx.at>
15336
15337 * emacs.c (main): Call init_editfns before init_process, since
15338 init_process sets Vprocess_connection_type depending on OS release.
15339
153402007-11-22 Stefan Monnier <monnier@iro.umontreal.ca>
15341
15342 * data.c (do_symval_forwarding): Use same code as in find_symbol_value.
15343 (find_symbol_value): Use do_symval_forwarding.
15344
15345 * data.c (set_internal): Set the value in the `cons-cell' (for
15346 Buffer_Local_values) not only for frame-local variables.
15347
153482007-11-22 Andreas Schwab <schwab@suse.de>
15349
15350 * data.c (Fnumber_to_string): Add cast when passing EMACS_INT
15351 values to sprintf.
15352 * keymap.c (Fsingle_key_description): Likewise.
15353 * print.c (print_object): Likewise.
15354
153552007-11-22 Jan Djärv <jan.h.d@swipnet.se>
15356
15357 * gtkutil.c (update_frame_tool_bar): Don't call x-gtk-map-stock if
15358 file for image is nil.
15359
153602007-11-22 Dan Nicolaescu <dann@ics.uci.edu>
15361
15362 * term.c: Include stdarg.h.
15363 (fatal): Implement using varargs.
15364 * lisp.h (fatal): Add argument types. (Restore 2005-09-30 change).
15365
153662007-11-21 Stefan Monnier <monnier@iro.umontreal.ca>
15367
15368 * lisp.h (struct Lisp_Buffer_Objfwd): Add a `slottype' field.
15369 * data.c (store_symval_forwarding): Get type from buffer_objfwd.
15370 Update call to buffer_slot_type_mismatch.
15371 * buffer.h (buffer_local_types, PER_BUFFER_TYPE): Remove.
15372 (buffer_slot_type_mismatch): Update.
15373 * buffer.c (buffer_local_types): Remove.
15374 (buffer_slot_type_mismatch): Get the symbol and type as arguments.
15375 (defvar_per_buffer): Set the type in the buffer_objfwd.
15376
153772007-11-21 Jason Rumney <jasonr@gnu.org>
15378
15379 * w32bdf.c (w32_init_bdf_font, w32_BDF_to_x_font):
15380 CreateFileMapping returns NULL on failure.
15381
153822007-11-21 Stefan Monnier <monnier@iro.umontreal.ca>
15383
15384 * search.c (Fset_match_data): Remove the `evaporate' feature.
15385 (unwind_set_match_data): Don't use the `evaporate' feature.
15386
153872007-11-21 Jason Rumney <jasonr@gnu.org>
15388
15389 * dispnew.c (init_display) [WINDOWSNT]: Hardcode terminal_type.
15390
15391 * w32console.c (w32con_write_glyphs): Remove unused variables.
15392
153932007-11-20 Dan Nicolaescu <dann@ics.uci.edu>
15394
15395 * macterm.c (mac_term_init): Call add_keyboard_wait_descriptor.
15396
15397 * s/darwin.h (MULTI_KBOARD): Remove.
15398
15399 * macfns.c (x_create_tip_frame, Fx_create_frame)
15400 (x_create_tip_frame): Don't deal with MULTI_KBOARD.
15401
154022007-11-19 Stefan Monnier <monnier@iro.umontreal.ca>
15403
15404 * buffer.c (Fbuffer_local_value): Remove redundant test.
15405 (swap_out_buffer_local_variables): Swap out binding in `buffer' rather
15406 than in `current-buffer' to match the comment.
15407 Do the swap using swap_in_global_binding.
15408
15409 * data.c (store_symval_forwarding, set_internal):
15410 * eval.c (specbind): Remove dead code.
15411
15412 * coding.c (detect_coding, Fupdate_coding_systems_internal):
15413 * fns.c (Fmd5): Use find_symbol_value rather than SYMBOL_VALUE
15414 Since we do not want to see internal Lisp_*fwd objects here.
15415
154162007-11-18 Jan Djärv <jan.h.d@swipnet.se>
15417
15418 * sysdep.c (init_system_name): Use getaddrinfo if available.
15419
15420 * xterm.c (x_scroll_bar_set_handle, x_scroll_bar_handle_click)
15421 (x_scroll_bar_note_movement): start, end, with, height in struct
15422 scroll_bar are integers and not Lisp_Object, so remove XINT for them.
15423
154242007-11-17 Dan Nicolaescu <dann@ics.uci.edu>
15425
15426 * puresize.h (BASE_PURESIZE): Increase to 1190000.
15427
154282007-11-16 Stefan Monnier <monnier@iro.umontreal.ca>
15429
15430 * buffer.h (struct buffer): Move `undo_list' back to before `name'.
15431 This undoes Richard's change of 14-Oct-2002.
15432
15433 * alloc.c (allocate_other_vector):
15434 * lisp.h (allocate_other_vector): Remove.
15435
15436 * window.c (struct save_window_data): Move non-lisp data to the end
15437 and make it `int' rather than Lisp_Object.
15438 (Fcurrent_window_configuration): Use ALLOCATE_PSEUDOVECTOR.
15439 Done wrap/unwrap integer values.
15440 (Fset_window_configuration, compare_window_configurations):
15441 Update use of fields to their new types.
15442
15443 * xterm.h (struct scroll_bar): Only use Lisp_Object for lisp data.
15444 Turn integer fields into `int'. Merge x_window_low and x_window_high.
15445 (SCROLL_BAR_PACK, SCROLL_BAR_UNPACK, SCROLL_BAR_X_WINDOW)
15446 (SET_SCROLL_BAR_X_WINDOW): Remove.
15447 (SCROLL_BAR_X_WIDGET, SET_SCROLL_BAR_X_WIDGET):
15448 Access the new x_window field directly.
15449 * xterm.c (x_scroll_bar_create): Use a pseudovector.
15450 Don't wrap/unwrap integers into Lisp_Objects.
15451 (XTset_vertical_scroll_bar, x_scroll_bar_handle_click)
15452 (x_scroll_bar_report_motion):
15453 Don't wrap/unwrap integers into Lisp_Objects.
15454 (x_term_init): Use SDATA.
15455 (x_window_to_scroll_bar, x_create_toolkit_scroll_bar)
15456 (x_scroll_bar_set_handle, x_scroll_bar_remove)
15457 (XTset_vertical_scroll_bar, x_scroll_bar_expose)
15458 (x_scroll_bar_report_motion, x_scroll_bar_clear):
15459 * xfns.c (x_set_background_color):
15460 * gtkutil.c (xg_create_scroll_bar, xg_set_toolkit_scroll_bar_thumb):
15461 Access the new x_window field directly.
15462
15463 * alloc.c (ALLOCATE_PSEUDOVECTOR): Move to lisp.h.
15464 (allocate_pseudovector): Make non-static.
15465
15466 * lisp.h (enum pvec_type): New tag PVEC_OTHER.
15467 (allocate_pseudovector): Declare.
15468 (ALLOCATE_PSEUDOVECTOR): Move from alloc.c.
15469
154702007-11-15 Andreas Schwab <schwab@suse.de>
15471
15472 * editfns.c (Fformat): Correctly format EMACS_INT values.
15473 Also take precision into account when formatting an integer.
15474
15475 * keyboard.c (Fevent_symbol_parse_modifiers): Fix declaration.
15476
154772007-11-15 Stefan Monnier <monnier@iro.umontreal.ca>
15478
15479 * keyboard.c (Fevent_symbol_parse_modifiers): New function.
15480 (syms_of_keyboard): Defsubr it.
15481
15482 * data.c (swap_in_global_binding): Fix longstanding bug where
15483 store_symval_forwarding was not called with the right second argument,
15484 thus causing objfwd-ing from being dropped.
15485
154862007-11-14 Juanma Barranquero <lekktu@gmail.com>
15487
15488 * macfns.c (Fx_create_frame, Fx_display_pixel_width)
15489 (Fx_display_pixel_height, Fx_display_planes)
15490 (Fx_display_color_cells, Fx_server_max_request_size)
15491 (Fx_server_vendor, Fx_server_version, Fx_display_backing_store)
15492 (Fx_display_visual_class, Fx_display_save_under):
15493 * w32fns.c (Fx_create_frame, Fx_display_pixel_width)
15494 (Fx_display_pixel_height, Fx_display_planes)
15495 (Fx_display_color_cells, Fx_server_max_request_size)
15496 (Fx_server_vendor, Fx_server_version, Fx_display_screens)
15497 (Fx_display_mm_height, Fx_display_mm_width)
15498 (Fx_display_backing_store, Fx_display_visual_class)
15499 (Fw32_select_font, Fx_display_save_under):
15500 * xfns.c (Fx_create_frame, Fx_display_pixel_width)
15501 (Fx_display_pixel_height, Fx_display_planes)
15502 (Fx_display_color_cells, Fx_server_max_request_size)
15503 (Fx_server_vendor, Fx_server_version, Fx_display_backing_store)
15504 (Fx_display_save_under): Fix typos in docstrings.
15505
155062007-11-14 Juanma Barranquero <lekktu@gmail.com>
15507
15508 * w32fns.c (Fw32_registered_hot_keys): Don't return the nil values
15509 corresponding to deleted entries; they are an implementation detail.
15510 (gray_bitmap_width, gray_bitmap_height, gray_bitmap_bits):
15511 Remove variables.
15512 (w32_pass_extra_mouse_buttons_to_system, w32_strict_fontnames)
15513 (w32_pass_multimedia_buttons_to_system, w32_strict_painting)
15514 (Vw32_charset_info_alist, w32_to_x_color, w32_init_class)
15515 (w32_createscrollbar, w32_createwindow, my_post_msg, w32_get_modifiers)
15516 (w32_grabbed_keys, cancel_all_deferred_msgs): Make static.
15517 (Fw32_define_rgb_color, Fw32_load_color_file)
15518 (syms_of_w32fns) <w32-pass-multimedia-buttons-to-system>:
15519 Fix typos in docstrings.
15520 (Fx_server_version): Reflow docstring.
15521 (Fw32_shell_execute): Doc fixes.
15522
155232007-11-13 Juanma Barranquero <lekktu@gmail.com>
15524
15525 * w32fns.c (Fw32_register_hot_key): Don't try to register hot key
15526 if w32_parse_hot_key returned nil.
15527
155282007-11-10 Stefan Monnier <monnier@iro.umontreal.ca>
15529
15530 * xdisp.c (load_overlay_strings): Fix copy&paste typo.
15531
155322007-11-09 Jason Rumney <jasonr@gnu.org>
d6c952f8 15533
aac0c6e3
MR
15534 * s/ms-w32.c (USE_TOOLKIT_SCROLL_BARS): Define.
15535
15536 * w32term.c (w32_scroll_bar_handle_click): Use SCROLL_BAR_CLICK_EVENT.
15537
15538 * keyboard.c (discard_mouse_events, make_lispy_event) [WINDOWSNT]:
15539 Remove W32_SCROLL_BAR_CLICK_EVENT.
15540
15541 * termhooks.h (enum event_kind) [WINDOWSNT]: Likewise.
15542 Add MULTIMEDIA_KEY_EVENT.
15543
15544 * keyboard.c (lispy_function_keys) [WINDOWSNT]: Add more keys.
15545 (lispy_multimedia_keys) [WINDOWSNT]: New array.
15546 (make_lispy_event) [WINDOWSNT]: Use it to translate
15547 MULTIMEDIA_KEY_EVENT.
15548
15549 * w32term.h (WM_APPCOMMAND): Define if not already.
15550 (GET_APPCOMMAND_LPARAM): Likewise.
15551
15552 * w32term.c (w32_read_socket): Generate MULTIMEDIA_KEY_EVENT from
15553 WM_APPCOMMAND.
15554
15555 * w32fns.c (w32_pass_multimedia_buttons_to_system): New user option.
15556 (syms_of_w32fns): Export and initialize it.
15557 (w32_wnd_proc): Pass WM_APPCOMMAND on to w32_read_socket.
15558
155592007-11-09 Chong Yidong <cyd@stupidchicken.com>
15560
15561 * dispextern.h (struct it): Don't define OVERLAY_STRING_CHUNK_SIZE
15562 twice.
15563
15564 * xdisp.c (handle_face_prop): Fix last change.
15565
155662007-11-09 Richard Stallman <rms@gnu.org>
15567
15568 * xdisp.c (handle_face_prop): Test for strings that came from overlays,
15569 not just for after-strings and before-strings.
15570 Call face_for_overlay_string and pass the overlay to it.
15571 (handle_display_prop): Determine whether property came from an overlay.
15572 Pass OVERLAY arg to handle_single_display_spec.
15573 (handle_single_display_spec): New arg OVERLAY sets it->from_overlay.
15574 (load_overlay_strings): Fill in it->string_overlays.
15575 (get_overlay_strings_1, push_it, pop_it): Handle it->from_overlays.
15576
15577 * xfaces.c (face_for_overlay_string): Function renamed from
15578 face_at_buffer_position_no_overlays, and add arg OVERLAY.
15579
15580 * dispextern.h (struct it): New elt string_overlays.
15581 New elt from_overlay, also in stack.
15582 Rearrange a few elements.
15583 (face_for_overlay_string): Decl renamed from
15584 face_at_buffer_position_no_overlays, and add argument.
15585
155862007-11-09 Richard Stallman <rms@gnu.org>
15587
15588 * xdisp.c (handle_face_prop): Use face_at_buffer_position_no_overlays
15589 to get the base face for an overlay string.
15590
15591 * dispextern.h (face_at_buffer_position_no_overlays): Add decl.
15592
15593 * xfaces.c (face_at_buffer_position_no_overlays): New function.
15594
15595 * xdisp.c (handle_stop): Move some code out of loop.
15596
155972007-11-09 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
15598
15599 * macfns.c [USE_ATSUI] (Fmac_atsu_font_face_attributes):
15600 Fix conversion from Lisp object to ATSUFontID.
15601
156022007-11-09 Jason Rumney <jasonr@gnu.org>
15603
15604 * xdisp.c (Fformat_mode_line): Do nothing when noninteractive.
15605
156062007-11-09 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
15607
15608 * unexmacosx.c (unexec_regions_recorder, unexec_regions_merge):
15609 Don't assume regions are aligned to page boundary.
15610 (print_load_command_name): Add LC_UUID if defined.
15611
156122007-11-09 Richard Stallman <rms@gnu.org>
15613
15614 * emacs.c (syms_of_emacs) <installation-directory>: Reflow docstring.
15615
156162007-11-07 Jason Rumney <jasonr@gnu.org>
15617
15618 * s/windows95.h: Remove.
15619
156202007-11-06 Jan Djärv <jan.h.d@swipnet.se>
15621
15622 * gtkutil.c (xg_tool_bar_menu_proxy): Handle GTK_IMAGE_ICON_NAME and
15623 abort with a message on unhandled store_type values.
15624
156252007-11-01 Jan Djärv <jan.h.d@swipnet.se>
15626
15627 * xterm.c, xfns.c, xselect.c, xterm.h, s/msdos.h, s/sco4.h, s/sco5.h:
15628 Remove HAVE_X11R5 and HAVE_X11R4.
15629
156302007-11-01 Dan Nicolaescu <dann@ics.uci.edu>
15631
15632 * Makefile.in: Remove references to sunfns.c and sunfns.o.
15633
156342007-11-01 Johan Bockgård <bojohan@gnu.org>
15635
15636 * macterm.c, w32term.c, xterm.c (x_draw_stretch_glyph_string):
15637 Don't set s->stippled_p here, since it has already been set by
15638 x_set_glyph_string_gc from x_draw_glyph_string.
15639
156402007-11-01 Dan Nicolaescu <dann@ics.uci.edu>
15641
15642 * sunfns.c: Remove file.
15643
15644 * m/sun386.h:
15645 * m/sun2.h:
15646 * m/sparc.h: Remove Sun windows code.
15647
156482007-10-31 Stefan Monnier <monnier@iro.umontreal.ca>
15649
15650 * keyboard.c (syms_of_keyboard): Initialize the initial_kboard.
15651 (init_keyboard): Set current_kboard's window-system to nil.
15652 (tty_read_avail_input): Typo.
15653 * frame.c (make_initial_frame): Don't initialize the initial_kboard.
15654
156552007-10-31 Dan Nicolaescu <dann@ics.uci.edu>
15656
15657 * s/usg5-4.h:
15658 * s/usg5-3.h:
15659 * s/ptx.h:
15660 * m/is386.h:
15661 * m/ibmps2-aix.h:
15662 * Makefile.in: Remove all mentions of X10.
15663
15664 * dispnew.c (syms_of_display): Don't mention version 10.
15665
156662007-10-28 Juanma Barranquero <lekktu@gmail.com>
15667
15668 * makefile.w32-in (OBJ1): Remove abbrev.$(O).
15669 ($(BLD)/abbrev.$(O)): Remove.
15670
156712007-10-28 Stefan Monnier <monnier@iro.umontreal.ca>
15672
15673 Rewrite abbrev.c in Elisp.
15674 * image.c (Qcount): Don't declare as extern.
15675 (syms_of_image): Initialize and staticpro `Qcount'.
15676 * puresize.h (BASE_PURESIZE): Increase for the new abbrev.el functions.
15677 * emacs.c (main): Don't call syms_of_abbrev.
15678 * Makefile.in (obj): Remove abbrev.o.
15679 (abbrev.o): Remove.
15680 * abbrev.c: Remove.
15681
156822007-10-26 Martin Rudalics <rudalics@gmx.at>
15683
15684 * window.c (window_min_size_2): Don't count header-line.
15685
156862007-10-26 Dan Nicolaescu <dann@ics.uci.edu>
15687
15688 * frame.h (struct frame): Move all bit fields after the first bit
15689 field to take advantage of the available space. Group all the
15690 chars together to reduce wasted space due to padding.
15691
156922007-10-26 Juanma Barranquero <lekktu@gmail.com>
15693
15694 * minibuf.c (Fread_minibuffer, Feval_minibuffer): Reflow docstrings.
15695
15696 * alloc.c (spare_memory, stack_copy, stack_copy_size, ignore_warnings)
15697 (Vdead, dont_register_blocks, staticvec, staticidx, interval_block)
15698 (n_interval_blocks, init_strings, check_string_bytes, check_sblock)
15699 (init_float, free_float, n_cons_blocks, init_cons, all_vectors)
15700 (n_vectors, symbol_block, symbol_block_index, symbol_free_list)
15701 (n_symbol_blocks, init_symbol, marker_block, marker_free_list)
15702 (n_marker_blocks, init_marker, valid_pointer_p, make_pure_float)
15703 (last_marked, mark_object_loop_halt): Make static.
15704
15705 * frame.c (syms_of_frame) <delete-frame-functions>:
15706 Fix typo in docstring.
15707
157082007-10-25 Juanma Barranquero <lekktu@gmail.com>
15709
15710 * w32.c (init_environment): Fix tiny memory leak.
15711 (w32_get_resource): Remove unused variable `ok'.
15712
157132007-10-25 Stefan Monnier <monnier@iro.umontreal.ca>
15714
15715 Make `window-system' into a keyboard-local variable (rather than
15716 frame-local as done originally by multi-tty).
15717
15718 * keyboard.h (struct kboard): Add Vwindow_system.
15719 * keyboard.c (init_kboard): Set a default for Vwindow_system.
15720 (mark_kboards): Mark Vwindow_system.
15721
15722 * dispnew.c (syms_of_display) <window-system>: Declare terminal-local.
15723 (init_display): Don't set the obsolete `window-system' frame-param.
15724
15725 * xterm.c (x_term_init):
15726 * w32term.c (w32_create_terminal):
15727 * term.c (init_tty): Set Vwindow_system.
15728 * macterm.c (mac_create_terminal): Set a keyboard (missing piece of the
15729 multi-tty merge maybe?), copied from w32term.c. Set Vwindow_system.
15730
15731 * xfns.c (Fx_create_frame, x_create_tip_frame):
15732 * w32fns.c (Fx_create_frame, x_create_tip_frame):
15733 * macfns.c (Fx_create_frame):
15734 Don't set the obsolete `window-system' frame-param.
15735
15736 * frame.h (Qwindow_system): Remove.
15737 * frame.c (Qwindow_system): Remove. In `syms_of_frame' as well.
15738 (Fmake_terminal_frame): Don't set obsolete `window-system' frame-param.
15739
157402007-10-24 Richard Stallman <rms@gnu.org>
15741
15742 * frame.c (x_figure_window_size): For fullscreen case,
15743 set USPosition | PPosition without clobbering rest of window_prompting.
15744
15745 * keyboard.c (Fcurrent_idle_time): Doc fix.
15746
15747 * print.c (Fwith_output_to_temp_buffer): Doc fix.
15748
157492007-10-23 Stefan Monnier <monnier@iro.umontreal.ca>
15750
15751 * process.c (unwind_request_sigio): Only define if __ultrix__.
15752
15753 * callproc.c (child_setup): Remove spurious *.
15754
15755 * lisp.h (Fget_text_property): Declare.
15756 (have_menus_p): Declare it here rather than in sys-dep header files.
15757 * macterm.h (have_menus_p):
15758 * msdos.h (have_menus_p):
15759 * xterm.h (have_menus_p): Remove.
15760
15761 * data.c (Fmake_variable_buffer_local, Fmake_local_variable)
15762 (Fmake_variable_frame_local): Just check the variable's const-ness
15763 rather than checking nil or t.
15764
157652007-10-22 Jason Rumney <jasonr@gnu.org>
15766
15767 * w32fns.c: Include math.h.
15768 (w32_abort): Declaration moved to nt/config.nt.
15769
15770 * s/ms-w32.h (HAVE_STDLIB_H): Define.
15771 (abort): Redefinition moved to nt/config.nt.
15772
15773 * m/windowsnt.h: Remove.
15774
157752007-10-22 Juanma Barranquero <lekktu@gmail.com>
15776
15777 * emacs.c (Fdump_emacs): Fix typo in message.
15778 (syms_of_emacs) <kill-emacs-hook>: Fix typo in docstring.
15779 <installation-directory>: Reflow docstring.
15780
157812007-10-22 Juri Linkov <juri@jurta.org>
15782
15783 * minibuf.c: Allow minibuffer default to be a list of default values.
15784 With empty input use the first element of this list as returned default.
15785 (string_to_object)
15786 (read_minibuf_noninteractive): If defalt is cons, set val to its car.
15787 (read_minibuf): If defalt is cons, set histstring to its car.
15788 (Fread_string): If default_value is cons, set val to its car.
15789 (Fread_buffer): If def is cons, use its car.
15790 (Fcompleting_read): If defalt is cons, set val to its car.
15791
157922007-10-21 Michael Albinus <michael.albinus@gmx.de>
15793
15794 * fileio.c (Fcopy_file): Call file name handler with preserve_uid_gid.
15795
157962007-10-20 Juanma Barranquero <lekktu@gmail.com>
15797
15798 * doc.c (Fdocumentation): Check for advice in all cases.
15799
158002007-10-19 Chong Yidong <cyd@stupidchicken.com>
15801
15802 * Makefile.in [HAVE_LIBRESOLV]: Add -lresolv to linker flags.
15803
158042007-10-19 Richard Stallman <rms@gnu.org>
15805
15806 * doc.c (Fdocumentation): Check for and handle an advised function.
15807
158082007-10-19 Juanma Barranquero <lekktu@gmail.com>
15809
15810 * process.c (Fset_process_filter): Doc fix.
15811
158122007-10-18 Stefan Monnier <monnier@iro.umontreal.ca>
15813
15814 * keyboard.c (read_key_sequence): Undo a change introduced by multi-tty
15815 which caused key-translation-map to applied repeatedly (thus breaking
15816 double-mode).
15817
158182007-10-17 Stefan Monnier <monnier@iro.umontreal.ca>
15819
15820 * xselect.c (x_own_selection, x_handle_selection_clear)
15821 (x_clear_frame_selections):
15822 * w32menu.c (list_of_panes, list_of_items):
15823 * w32fns.c (w32_color_map_lookup, Fx_create_frame, Fx_display_list):
15824 * textprop.c (validate_plist, interval_has_all_properties)
15825 (interval_has_some_properties, interval_has_some_properties_list)
15826 (add_properties, text_property_list):
15827 * process.c (Fget_buffer_process, list_processes_1, status_notify):
15828 * minibuf.c (Fassoc_string):
15829 * macselect.c (x_own_selection, x_clear_frame_selections)
15830 (Fx_disown_selection_internal):
15831 * keymap.c (Fcommand_remapping, where_is_internal, describe_map_tree):
15832 Use CONSP rather than !NILP and XC[AD]R rather than Fc[ad]r.
15833
158342007-10-17 Chong Yidong <cyd@stupidchicken.com>
15835
15836 * process.c: Link to libs for calling res_init() if available.
15837 (Fmake_network_process): Call res_init() before getaddrinfo or
15838 gethostbyname, if possible.
15839
158402007-10-17 Stefan Monnier <monnier@iro.umontreal.ca>
15841
15842 * lread.c (read1): Set pvectype for char_tables.
15843
15844 * lisp.h (XMISCANY, XMARKER, XINTFWD, XBOOLFWD, XOBJFWD, XOVERLAY)
15845 (XBUFFER_OBJFWD, XBUFFER_LOCAL_VALUE, XKBOARD_OBJFWD, XSAVE_VALUE):
15846 Add type checks.
15847 (SOME_BUFFER_LOCAL_VALUEP, GC_SOME_BUFFER_LOCAL_VALUEP): Remove.
15848
15849 * alloc.c (free_misc): Use XMISCTYPE.
15850 (live_misc_p, gc_sweep): Use Lisp_Misc_Any.
15851
158522007-10-17 Glenn Morris <rgm@gnu.org>
15853
15854 * minibuf.c (Qcompletion_ignore_case): New Lisp_Object.
15855 (syms_of_minibuf): Add Qcompletion_ignore_case.
15856 * dired.c (Qcompletion_ignore_case): Change to external.
15857 (syms_of_dired) [VMS]: Remove Qcompletion_ignore_case.
15858 * fileio.c (Qcompletion_ignore_case): New external Lisp_Object.
15859 (Fread_file_name): Use it rather than intern'ing.
15860
15861 * coding.c (Qcompletion_ignore_case): New external Lisp_Object.
15862 (Fread_coding_system): Ignore case of user input.
15863
158642007-10-16 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
15865
15866 * xdisp.c (handle_display_prop): Ignore display specs after
15867 replacing one when string text is being replaced.
15868 (handle_single_display_spec): Pretend as if characters with display
15869 property haven't been consumed only when buffer text is being replaced.
15870
158712007-10-16 Stefan Monnier <monnier@iro.umontreal.ca>
15872
15873 * xfns.c (Fx_create_frame, Fx_display_list):
15874 * window.c (window_fixed_size_p, enlarge_window)
15875 (shrink_window_lowest_first):
15876 * macterm.c (init_font_name_table):
15877 * macfns.c (Fx_create_frame, Fx_display_list):
15878 * lread.c (close_load_descs):
15879 * keyboard.c (read_char_x_menu_prompt):
15880 * fns.c (Fmember, Fmemql, Fdelete, Fset_char_table_parent):
15881 * coding.c (code_convert_region_unwind): Test the type of an object
15882 rather than just !NILP before extracting data from it.
15883
15884 * alloc.c (Fpurecopy): Set the pvec tag on pseudo vectors.
15885
15886 * lisp.h (enum Lisp_Misc_Type): Del Lisp_Misc_Some_Buffer_Local_Value.
15887 (XMISCANY): New macro.
15888 (XMISCTYPE): Use it.
15889 (struct Lisp_Misc_Any): New type.
15890 (union Lisp_Misc): Use it.
15891 (struct Lisp_Buffer_Local_Value): Add `local_if_set' bit.
15892 * data.c (Fboundp, store_symval_forwarding, swap_in_global_binding)
15893 (find_symbol_value, set_internal, default_value, Fset_default)
15894 (Fmake_variable_buffer_local, Fmake_local_variable)
15895 (Fkill_local_variable, Fmake_variable_frame_local, Flocal_variable_p)
15896 (Flocal_variable_if_set_p, Fvariable_binding_locus):
15897 The SOME_BUFFER_LOCAL_VALUEP distinction is replaced by local_if_set.
15898 * alloc.c (allocate_buffer): Set the size and tag.
15899 (allocate_misc, mark_maybe_object, mark_object, survives_gc_p):
15900 Use XMISCANY.
15901 (die): Follow the GNU convention for error messages.
15902 * print.c (print_object): SOME_BUFFER_LOCAL_VALUEP -> local_if_set.
15903 * buffer.c (Fget_buffer_create, Fmake_indirect_buffer): Don't set the
15904 tag any more.
15905 (set_buffer_internal_1):
15906 * frame.c (store_frame_param):
15907 * eval.c (specbind):
15908 * xdisp.c (select_frame_for_redisplay): Drop SOME_BUFFER_LOCAL_VALUEP.
15909
15910 * doc.c (Fsnarf_documentation): Simplify.
15911
159122007-10-14 Juanma Barranquero <lekktu@gmail.com>
15913
15914 * w32term.c (w32_font_is_double_byte, my_create_scrollbar): Make static.
15915 (syms_of_w32term) <w32-enable-unicode-output>: Fix typo in docstring.
15916
159172007-10-14 Stefan Monnier <monnier@iro.umontreal.ca>
15918
15919 * buffer.c (Fmake_indirect_buffer): Set the buffer's tag.
15920
159212007-10-14 Juanma Barranquero <lekktu@gmail.com>
15922
15923 * eval.c (do_autoload): Don't save autoloads.
15924
15925 * data.c (Ffset): Save autoload of the function being set.
15926
159272007-10-07 John Paul Wallington <jpw@pobox.com>
15928
15929 * xfns.c (x_create_tip_frame): Set the `display-type' frame
15930 parameter before setting up faces.
15931
159322007-10-13 Eli Zaretskii <eliz@gnu.org>
15933
15934 * ccl.c (Fregister_code_conversion_map):
15935 * keyboard.c (append_tool_bar_item): Reformat last change.
15936
15937 * lisp.h (eabs): Rename from `abs'. All callers changed.
15938
159392007-10-05 Dmitry Antipov <dmantipov@yandex.ru>
15940
15941 * buffer.c (add_overlay_mod_hooklist):
15942 * ccl.c (Fregister_ccl_program, Fregister_code_conversion_map):
15943 * fontset.c (make_fontset):
15944 * keyboard.c (GROW_RAW_KEYBUF, menu_bar_items, menu_bar_item)
15945 (append_tool_bar_item):
15946 * macmenu.c (grow_menu_items):
15947 * w32menu.c (grow_menu_items):
15948 * xmenu.c (grow_menu_items): Use larger_vector.
15949
159502007-10-13 Eli Zaretskii <eliz@gnu.org>
15951
15952 * msdos.c (dos_rawgetc): Undo last change (there's no ``leaving
15953 selected frame'' on MSDOS).
15954
159552007-10-12 Martin Rudalics <rudalics@gmx.at>
15956
15957 * frame.c (Qexplicit_name): New variable.
15958 (x_report_frame_params): Report it in parameter alist.
15959 (syms_of_frame): Intern and staticpro it.
15960
159612007-10-10 Patrick Mahan <mahan@mahan.org> (tiny change)
15962
15963 * macfns.c (x_create_tip_frame): Set terminal for frame.
15964
159652007-10-10 Stefan Monnier <monnier@iro.umontreal.ca>
15966
15967 * frame.c (Qenvironment): Remove.
15968 (syms_of_frame) <Qenvironment>: Don't initialize.
15969 (Fdelete_frame): Don't treat the `environment' param specially.
15970 * frame.h (Qenvironment): Don't declare.
15971 * callproc.c (set_initial_environment): Don't set unused frame param.
15972
15973 * frame.c (Fframe_with_environment): Remove.
15974 (syms_of_frame) <Sframe_with_environment>: Don't declare.
15975
15976 * lisp.h (Fframe_with_environment): Don't declare.
15977
159782007-10-10 Juanma Barranquero <lekktu@gmail.com>
15979
15980 * indent.c (indent_tabs_mode, last_known_column)
15981 (last_known_column_modified): Make static.
15982 (syms_of_indent) <indent-tabs-mode>: Remove redundant info in docstring.
15983
159842007-10-10 Katsumi Yamaoka <yamaoka@jpl.org>
15985
15986 * puresize.h (BASE_PURESIZE): Increase to 1170000.
15987
159882007-10-09 Jason Rumney <jasonr@gnu.org>
15989
15990 * w32term.c (x_set_window_size): Disable code that attempts to tell
15991 Lisp code about a size change before it actually happens.
15992
159932007-10-09 Richard Stallman <rms@gnu.org>
15994
15995 * xdisp.c (handle_invisible_prop): After setting up an ellipsis,
15996 return HANDLED_RETURN.
15997
159982007-10-08 Martin Rudalics <rudalics@gmx.at>
15999
16000 * keyboard.c (kbd_buffer_get_event): Break loop waiting for input
16001 when there's an unread command event.
16002
16003 * frame.c (focus_follows_mouse): Move here from frame.el to allow
16004 window autoselection act appropriately when leaving selected frame.
16005 (syms_of_frame): Initialize focus_follows_mouse.
16006 * frame.h (focus_follows_mouse): Extern it.
16007 * macterm.c (XTread_socket): When focus_follows_mouse is nil
16008 make SELECT_WINDOW_EVENT only if we don't leave the selected frame.
16009 * msdos.c (dos_rawgetc): Likewise.
16010 * w32term.c (w32_read_socket): Likewise.
16011 * xterm.c (handle_one_xevent): Likewise.
16012 * xdisp.c (syms_of_xdisp): In doc-string of
16013 mouse-autoselect-window mention focus-follows-mouse.
16014
160152007-10-08 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
16016
16017 * macterm.c (mac_load_query_font): Fix missing return value.
16018 [USE_CG_DRAWING] (mac_define_fringe_bitmap, mac_destroy_fringe_bitmap):
16019 Add BLOCK_INPUT.
16020
160212007-10-08 Richard Stallman <rms@gnu.org>
16022
16023 * xdisp.c (get_window_cursor_type): Implement documented behavior
16024 for cursor-in-non-selected-windows = t.
16025
160262007-10-08 Jason Rumney <jasonr@gnu.org>
16027
16028 * w32.c (w32_get_resource): Always close registry keys.
16029
160302007-10-08 Jason Rumney <jasonr@gnu.org>
16031
16032 * makefile.w32-in (LIBS): Add COMCTL32.
16033
16034 * w32fns.c (globals_of_w32fns): Init common controls.
16035
160362007-10-08 Richard Stallman <rms@gnu.org>
16037
16038 * image.c (our_memory_buffer): Rename from omfib_buffer.
16039
160402007-10-08 Richard Stallman <rms@gnu.org>
16041
16042 * buffer.c (Foverlays_at): Doc fix.
16043
160442007-10-08 Stefan Monnier <monnier@iro.umontreal.ca>
16045
16046 * fns.c (Fplist_put): Preserve uneven tail data.
16047
160482007-10-08 Peter O'Gorman <bug-gnu-emacs@mlists.thewrittenword.com> (tiny change)
16049
16050 * termhooks.h (enum event_kind): Remove trailing comma.
16051
16052 * frame.h (enum): Remove trailing comma.
16053
160542007-10-08 Dhruva Krishnamurthy <dhruvakm@gmail.com> (tiny change)
16055
16056 * w32proc.c (delete_child): Don't terminate threads of zombies.
16057
160582007-10-08 Martin Rudalics <rudalics@gmx.at>
16059
16060 * keyboard.h (struct kboard): New elt Vlast_repeatable_command.
16061
16062 * keyboard.c (syms_of_keyboard): Set up new Lisp variable
16063 last-repeatable-command.
16064 (init_kboard): Initialize Vlast_repeatable_command.
16065 (command_loop_1): Set it to real_this_command unless that was
16066 bound to an input event.
16067 (mark_kboards): Mark it.
16068
160692007-10-08 Richard Stallman <rms@gnu.org>
16070
16071 * eval.c (condition-case): Doc fix.
16072
160732007-10-08 Masatake YAMATO <jet@gyve.org>
16074
16075 * xfaces.c (tty_supports_face_attributes_p): Fix code
16076 for LFACE_INVERSE_INDEX and LFACE_BACKGROUND_INDEX; code
16077 was copied and not edited.
16078
160792007-10-09 Stefan Monnier <monnier@iro.umontreal.ca>
16080
16081 Add new `input-decode-map' keymap and use it for terminal
16082 escape sequences.
16083 * keyboard.h (struct kboard): Add Vinput_decode_map.
16084 Remove Vlocal_key_translation_map.
16085 * keyboard.c (read_key_sequence): Add support for input-decode-map.
16086 (init_kboard): Init input-decode-map.
16087 Replace local-key-translation-map back with key-translation-map.
16088 (syms_of_keyboard): Declare input-decode-map.
16089 Remove local-key-translation-map. Update docstrings.
16090 (mark_kboards): Mark Vinput_decode_map.
16091 Don't mark Vlocal_key_translation_map.
16092 * keymap.c (Fdescribe_buffer_bindings): Describe input-decode-map.
16093 Replace local-key-translation-map back with key-translation-map.
16094 * term.c (term_get_fkeys_1, CONDITIONAL_REASSIGN):
16095 Bind in input-decode-map rather than function-key-map.
16096
16097 * lisp.h (XSETPSEUDOVECTOR): Don't set the tag anymore.
16098 This was made redundant by the previous introduction of XSETPVECTYPE.
16099
161002007-10-09 Richard Stallman <rms@gnu.org>
16101
16102 * image.c (free_bitmap_record): Rename from Free_Bitmap_Record.
16103
161042007-09-29 Richard Stallman <rms@gnu.org>
16105
16106 * eval.c (internal_condition_case_2, internal_condition_case_1)
16107 (internal_condition_case): Reenable abort if x_catching_errors ()
16108 to see if that really happens and why.
16109
161102007-10-06 Andreas Schwab <schwab@suse.de>
16111
16112 * fileio.c (Fwrite_region): Ignore EINVAL error from fsync.
16113
161142007-10-04 Juanma Barranquero <lekktu@gmail.com>
16115
16116 * image.c (syms_of_image) <image-types>: Fix typo in docstring.
16117
161182007-10-03 Stefan Monnier <monnier@iro.umontreal.ca>
16119
16120 * frame.h (struct frame): Don't try to GC-mark menu_bar_items_used.
16121
161222007-10-02 Stefan Monnier <monnier@iro.umontreal.ca>
16123
16124 * window.h (struct window):
16125 * window.c (struct save_window_data, struct saved_window):
16126 * termhooks.h (struct terminal):
16127 * process.h (struct Lisp_Process):
16128 * frame.h (struct frame):
16129 * buffer.h (struct buffer):
16130 * lisp.h (struct Lisp_Vector, struct Lisp_Char_Table)
16131 (struct Lisp_Bool_Vector, struct Lisp_Subr, struct Lisp_Hash_Table):
16132 The size field of (pseudo)vectors is now unsigned.
16133 (ARRAY_MARK_FLAG, PSEUDOVECTOR_FLAG): Simplify accordingly.
16134
16135 * lisp.h (struct Lisp_Hash_Table): Move non-traced elements at the end.
16136 Turn `count' into an integer.
16137
16138 * fns.c (make_hash_table, hash_put, hash_remove, hash_clear)
16139 (sweep_weak_table, sweep_weak_hash_tables, Fhash_table_count):
16140 * print.c (print_object) <HASH_TABLE_P>: `count' is an int.
16141 * alloc.c (allocate_hash_table): Use ALLOCATE_PSEUDOVECTOR.
16142 (mark_object) <HASH_TABLE_P>: Use mark_vectorlike.
16143
16144 * alloc.c (allocate_pseudovector): New fun.
16145 (ALLOCATE_PSEUDOVECTOR): New macro.
16146 (allocate_window, allocate_terminal, allocate_frame)
16147 (allocate_process): Use it.
16148 (mark_vectorlike): New function.
16149 (mark_object) <FRAMEP, WINDOWP, BOOL_VECTOR_P, VECTORP>: Use it.
16150 (mark_terminals): Use it.
16151 (Fmake_bool_vector, Fmake_char_table, make_sub_char_table)
16152 (Fmake_byte_code): Use XSETPVECTYPE.
16153
16154 * frame.c (Fframe_parameters): Minor simplification.
16155
16156 * insdel.c (adjust_markers_for_insert): Generalize assertion checks.
16157
16158 * marker.c (Fmarker_buffer): Make test for odd case into a failure.
16159
16160 * buffer.c (Fget_buffer_create, init_buffer_once):
16161 * lread.c (defsubr):
16162 * window.c (Fcurrent_window_configuration): Use XSETPVECTYPE.
16163
16164 * lisp.h (ARRAY_MARK_FLAG, PSEUDOVECTOR_FLAG): Don't let them be
16165 defined differently in the m/*.h files.
16166 (XCHAR_TABLE, XBOOL_VECTOR): Add assertion checking.
16167 (XSETPVECTYPE): New macro.
16168 (XSETPSEUDOVECTOR): Use it.
16169
16170 * buffer.c (syms_of_buffer) <local-abbrev-table>: Move from abbrev.c.
16171 (DEFVAR_PER_BUFFER, defvar_per_buffer): Move from lisp.h and lread.c.
16172
16173 * lisp.h (defvar_per_buffer, DEFVAR_PER_BUFFER):
16174 * lread.c (defvar_per_buffer):
16175 * abbrev.c (syms_of_abbrev) <local-abbrev-tabl>: Move to buffer.c.
16176
16177 * window.c (candidate_window_p): Only consider as visible frames that
16178 are on the same terminal.
16179
16180 * m/ibms390x.h (MARKBIT): Remove unused macro.
16181
161822007-10-01 Juanma Barranquero <lekktu@gmail.com>
16183
16184 * lread.c (Fload): Fix typo in docstring.
16185
161862007-10-01 Michaël Cadilhac <michael@cadilhac.name>
16187
16188 * floatfns.c (Fexpt): Manually check for overflows, so that a power
16189 of a non-zero value can't yield zero.
16190
161912007-09-29 Stefan Monnier <monnier@iro.umontreal.ca>
16192
16193 * term.c (term_clear_mouse_face, term_mouse_highlight)
16194 (tty_write_glyphs_with_face): Only define is HAVE_GPM.
16195
16196 * print.c (safe_debug_print): Use XHASH.
16197
16198 * lisp.h (DECL_ALIGN, USE_LSB_TAG): Move logic to before definition of
16199 Lisp elements such as tags.
16200 (XHASH): New macro.
16201 (EQ): Use it.
16202 (SREF, SSET, STRING_COPYIN): Use SDATA.
16203 (VOID_TO_LISP, CVOID_TO_LISP, LISP_TO_VOID, LISP_TO_CVOID): Remove.
16204
16205 * alloc.c (mark_terminal): Remove left-over declaration.
16206 (enum mem_type): Replace all vector subtypes -> MEM_TYPE_VECTORLIKE.
16207 (allocate_vectorlike): Remove type argument. Adjust callers.
16208 (live_vector_p, mark_maybe_pointer, valid_lisp_object_p):
16209 Only handle the one remaining MEM_TYPE_VECTORLIKE.
16210
16211 * alloc.c (MALLOC_BLOCK_INPUT, MALLOC_UNBLOCK_INPUT): New macros
16212 to avoid unnecessary BLOCK_INPUTs when SYNC_INPUT is used.
16213 (xmalloc, xrealloc, xfree, lisp_malloc, lisp_free, lisp_align_malloc)
16214 (lisp_align_free, make_interval, allocate_string, allocate_string_data)
16215 (make_float, Fcons, allocate_vectorlike, Fmake_symbol, allocate_misc):
16216 Use them.
16217
16218 * xfaces.c (load_face_font, free_realized_face, clear_face_gcs):
16219 Don't let signal handlers run when a GC is freed but not yet NULL'ed.
16220 (x_free_gc): Remove BLOCK_INPUT since it's now redundant.
16221
162222007-09-28 Dan Nicolaescu <dann@ics.uci.edu>
16223
16224 * Makefile.in (lisp, shortlisp): Delete server.elc, it is not
16225 loaded by default.
16226
162272007-09-28 Stefan Monnier <monnier@iro.umontreal.ca>
16228
16229 * term.c (Fgpm_mouse_start): Don't signal an error if already activated
16230 on this tty.
16231 (Fgpm_mouse_stop): Only deactivate if it was activated on this tty.
16232
16233 * term.c (mouse_face_window): Rename from Qmouse_face_window.
16234 Update all users.
16235 (handle_one_term_event): Use Gpm_DrawPointer.
16236 (Fgpm_mouse_start): Rename from Fterm_open_connection.
16237 Signal errors instead of returning nil. Always return nil.
16238 (Fgpm_mouse_stop): Rename from Fterm_close_connection.
16239 Make it a noop if gpm-mouse was not activated.
16240 (syms_of_term): Update names.
16241
162422007-09-27 Stefan Monnier <monnier@iro.umontreal.ca>
16243
16244 * sysdep.c (narrow_foreground_group, widen_foreground_group): Static.
16245 (init_sys_modes): Check that gpm_tty is the current tty.
16246
16247 * alloc.c (allocate_terminal): Set the vector size to only count the
16248 lisp fields. Initialize those to nil.
16249 (mark_object): Don't treat terminals specially.
16250 (mark_terminal): Remove.
16251 (mark_terminals): Use mark_object instead.
16252
16253 * termhooks.h (struct terminal): Move all Lisp_Object fields traced by
16254 the GC to the beginning.
16255
16256 * indent.h:
16257 * indent.c: Use EMACS_INT for ints coming from Elisp data.
16258
16259 * indent.c (Fmove_to_column): Use EMACS_INT for buffer positions.
16260
162612007-09-25 Jason Rumney <jasonr@gnu.org>
16262
16263 * frame.c (make_terminal_frame): Remove special case for WINDOWSNT.
16264
16265 * w32console.c (create_w32cons_output): Remove.
16266
16267 * term.c (init_tty): Call init_sys_modes on WINDOWSNT also.
16268
16269 * sysdep.c (init_sys_modes): Use set_terminal_modes_hook.
16270 (reset_sys_modes): Use reset_terminal_modes_hook.
16271
162722007-09-24 Stefan Monnier <monnier@iro.umontreal.ca>
16273
16274 * eval.c (do_autoload): Don't output any message.
16275
162762007-09-24 Juri Linkov <juri@jurta.org>
16277
16278 * emacs.c (standard_args): Change priority of "--no-splash"
16279 from 40 to 3. Add "--no-desktop" with the same priority.
16280
162812007-09-23 Dmitry Antipov <dmantipov@yandex.ru>
16282
16283 * alloc.c (gc_sweep): Check cons cell mark bits word by word
16284 and optimize the case where they are all 1.
16285
162862007-09-23 Johannes Weiner <hannes@saeurebad.de>
16287
16288 * lisp.h (abs): Define if not defined.
16289 * keyboard.c, sound.c, w32term.c, xfaces.c, xterm.c:
16290 Don't define `abs', since it's defined in lisp.h.
16291
162922007-09-22 Eli Zaretskii <eliz@gnu.org>
16293
16294 * term.c (DEV_TTY): New macro. Provide a definition for MS-Windows.
16295 (FRAME_TERMCAP_P) [WINDOWSNT]: Don't define to zero.
16296 (Fcontrolling_tty_p, Fresume_tty, dissociate_if_controlling_tty)
16297 (init_tty): Use DEV_TTY instead of "/dev/tty".
16298 [WINDOWSNT]: No need to protect from NAME arg being null.
16299
163002007-09-21 Dan Nicolaescu <dann@ics.uci.edu>
16301
16302 * term.c (Fsuspend_tty): Run suspend-tty-functions before cleaning
16303 up the tty state.
16304
163052007-09-21 Stefan Monnier <monnier@iro.umontreal.ca>
16306
16307 * termhooks.h (term_gpm): Delete. Use gpm_tty's NULLness instead.
16308 (gpm_tty): Change its type.
16309 * term.c (term_gpm): Delete. Use gpm_tty's NULLness instead.
16310 (gpm_tty): Change its type and initialize it.
16311 (Fterm_open_connection): Check the frame is indeed a tty.
16312 Use the new gpm_tty.
16313 (Fterm_close_connection): Use the new gpm_tty.
16314 * keyboard.c (tty_read_avail_input): Use the new gpm_tty.
16315 * sysdep.c (init_sys_modes): term_gpm -> gpm_tty.
16316
163172007-09-21 Juanma Barranquero <lekktu@gmail.com>
16318
16319 * w32term.c (x_draw_glyph_string): Use strike_through_color, not
16320 underline_color, to draw strike-through.
16321
163222007-09-21 Stefan Monnier <monnier@iro.umontreal.ca>
16323
16324 * lisp.h (allocate_terminal): Declare.
16325
16326 * window.c (candidate_window_p): Consider frames that are being placed
16327 by the user as somewhere between visible and iconified.
16328 (window_loop): Prefer windows on the current frame.
16329 (Fselect_window): Move the use of select-frame to the beginning so we
16330 can just delegate all the work (it'll call us back anyway).
16331
16332 * frame.c (Qdisplay_environment_variable):
16333 * frame.h (Qdisplay_environment_variable): Delete.
16334
16335 * .gdbinit (xbacktrace): Print the arg's address rather than the value
16336 of the first arg, since that value may be a union.
16337
16338 * callproc.c (child_setup, getenv_internal): Use the frame's `display'
16339 parameter rather than Qdisplay_environment_variable. If all else
16340 fails, look for DISPLAY in initial-environment.
16341
163422007-09-21 Glenn Morris <rgm@gnu.org>
16343
16344 * Makefile.in (emacstool): Remove target.
16345 (lisp, shortlisp): Remove termdev.elc.
16346
163472007-09-21 Markus Triska <markus.triska@gmx.at>
16348
16349 * xterm.c (x_delete_display): Compile session management conditionally.
16350
163512007-09-20 Stefan Monnier <monnier@iro.umontreal.ca>
16352
16353 * callproc.c (getenv_internal_1): New function.
16354 (getenv_internal): Use it.
16355 (Fgetenv_internal): Use it. Accept an env-list as optional arg.
16356
16357 * terminal.c (get_terminal): Don't accept ints to represent terminals.
16358 (Fterminal_name, Fterminal_parameters, Fterminal_parameter)
16359 (Fset_terminal_parameter): Work with dead terminals as well.
16360 (Fmodify_terminal_parameters): Remove.
16361
16362 * terminal.c (get_terminal): Handle terminals.
16363 Make sure the terminal returned is live.
16364 (create_terminal): Use allocate_terminal.
16365 (mark_terminals): Move to alloc.c.
16366 (delete_terminal): Use terminal->name as liveness status.
16367 NULL out fields after freeing their contents.
16368 Don't deallocate the object.
16369 (Fframe_terminal): Use FRAME_TERMINAL. Return the terminal object
16370 rather than an int.
16371 (Fterminal_live_p): Accept non-integer arguments.
16372 (Fterminal_list): Return terminal objects rather than an ints.
16373
16374 * alloc.c (enum mem_type): New member for `terminal' objects.
16375 (allocate_terminal): New function.
16376 (mark_maybe_pointer, valid_lisp_object_p, mark_object):
16377 Handle terminals.
16378 (mark_terminal): New fun.
16379 (mark_terminals): Move from terminal.c.
16380
16381 * term.c (get_tty_terminal): Don't treat output_initial specially.
16382 (Fsuspend_tty, Fresume_tty): Use terminal objects rather than ints.
16383 (delete_tty): Use terminal->name as liveness status.
16384
16385 * termhooks.h (struct terminal): Make it into a pseudovector.
16386 Remove `deleted' replaced by checking `name's nullness.
16387
16388 * print.c (print_object): Handle terminals.
16389
16390 * lisp.h (enum pvec_type): New `terminal' pseudovector.
16391 (XTERMINAL, XSETTERMINAL, TERMINALP, GC_TERMINALP): New macros.
16392
16393 * frame.c (make_terminal_frame):
16394 * keyboard.c (tty_read_avail_input):
16395 * w32term.c (x_delete_terminal):
16396 * xfns.c (Fx_create_frame, x_create_tip_frame):
16397 * xterm.c (x_delete_terminal): Use terminal->name as liveness status.
16398
163992007-09-20 Glenn Morris <rgm@gnu.org>
16400
16401 * process.c (Fmake_network_process): Doc fix.
16402
164032007-09-19 Jason Rumney <jasonr@gnu.org>
16404
16405 * dispextern.h (w32_init_fringe, mac_init_fringe): Declare rif argument.
16406
164072007-09-19 Michaël Cadilhac <michael@cadilhac.name>
16408
16409 * coding.c (detect_eol_type, detect_eol_type_in_2_octet_form):
16410 Fix a C warning regarding variable constness.
16411
16412 * xterm.c (handle_one_xevent): Fix a C warning.
16413
164142007-09-18 Jason Rumney <jasonr@gnu.org>
16415
16416 * w32fns.c (Fx_focus_frame): Rename from Fw32_focus_frame.
16417
164182007-09-17 Jan Djärv <jan.h.d@swipnet.se>
16419
16420 * gtkutil.c (gdpy_def): New variable.
16421 (xg_initialize): Initialize gdpy_def.
16422 (xg_display_close): If no other display exists, set gdpy_def to a
16423 new connection.
16424
164252007-09-16 Jan Djärv <jan.h.d@swipnet.se>
16426
16427 * gtkutil.c (xg_get_image_for_pixmap): Always create a GdkPixbuf
16428 when we have no file name for the icon.
16429 (xg_tool_bar_expose_callback): Remove.
16430 (xg_create_tool_bar): Don't connect expose signal to
16431 xg_tool_bar_expose_callback.
16432 (xg_get_file_with_chooser): Move GCPRO1 after declarations.
16433
164342007-09-16 Andreas Schwab <schwab@suse.de>
16435
16436 * alloc.c (reset_malloc_hooks): Set the hooks to the previous
16437 values instead of zapping them.
16438
164392007-09-14 Glenn Morris <rgm@gnu.org>
16440
16441 * fringe.c (init_fringe_bitmap) <swap_nibble>: Move to file scope.
16442 * gtkutil.c (xg_separator_p) <separator_names>: Move to file scope.
16443 * image.c (our_memory_fill_input_buffer) <buffer>: Move to file
16444 scope and rename to omfib_buffer for clarity.
16445 (gif_load) <interlace_start, interlace_increment>: Move to file scope.
16446
164472007-09-14 Kenichi Handa <handa@m17n.org>
16448
16449 * xterm.c (handle_one_xevent): Skip decoding if nbytes is zero.
16450
164512007-09-13 Jason Rumney <jasonr@gnu.org>
16452
16453 * fringe.c (w32_init_fringe, mac_init_fringe): Add rif argument.
16454
16455 * w32term.c (w32_term_init): Pass rif to w32_init_fringe.
16456
16457 * macterm.c (mac_initialize): Don't call mac_init_fringe here.
16458 (mac_term_init): Call here instead, passing rif.
16459
164602007-09-13 Glenn Morris <rgm@gnu.org>
16461
16462 * s/hpux.h: No longer define `static' as nothing.
16463
164642007-09-13 Johan Bockgård <bojohan@gnu.org>
16465
16466 * callint.c (Fcall_interactively): Remove unused var `fun'.
16467
164682007-09-12 Romain Francoise <romain@orebokech.com>
16469
16470 * window.c (prefer_window_split_horizontally, display_buffer):
16471 Revert 2007-09-08 change.
16472
164732007-09-12 Glenn Morris <rgm@gnu.org>
16474
16475 * alloca.c: Remove file.
16476 * Makefile.in (alloca): Do not undef.
16477 (allocaobj, alloca.o): Remove.
16478 (otherobj): Remove allocaobj.
16479 * keyboard.c (command_loop_1): Remove #ifdef C_ALLOCA block.
16480 * regex.c (C_ALLOCA): Remove all references and code that was only
16481 used when this was defined.
16482 * search.c (boyer_moore): Remove #ifdef C_ALLOCA block.
16483 * xmenu.c (xmenu_show): Remove #ifdef C_ALLOCA block.
16484 * m/ibms390x.h, m/sh3el.h (C_ALLOCA): Remove references to this.
16485
16486 * Makefile.in (SOURCES, unlock, relock): Delete.
16487
16488 * gtkutil.c (cnt): Rename to menu_grab_callback_cnt for clarity.
16489 (menu_grab_callback): All uses changed.
16490
16491 * xselect.c (cnt): Rename to x_reply_selection_request_cnt for clarity.
16492 (x_reply_selection_request): All uses changed.
16493
164942007-09-11 Stefan Monnier <monnier@iro.umontreal.ca>
16495
16496 * lread.c (load_warn_old_style_backquotes): Change message to look
16497 better when it appears in the middle of byte-compiler messages.
16498
164992007-09-10 Dan Nicolaescu <dann@ics.uci.edu>
16500
16501 * s/darwin.h (MULTI_KBOARD): Only define for Carbon.
16502
16503 * xterm.c (x_create_terminal): Add comment.
16504
16505 * term.c (clear_tty_hooks, set_tty_hooks): Add comments.
16506
165072007-09-10 Richard Stallman <rms@gnu.org>
16508
16509 * xterm.c (x_term_init): Give error if can't open DISPLAY_NAME.
16510
165112007-09-10 Michaël Cadilhac <michael@cadilhac.name>
16512
16513 * lisp.h (struct Lisp_Subr): Rename `prompt' field to `intspec'.
16514 (DEFUN): Document `intspec', use it instead of `prompt'.
16515
16516 * eval.c (Fcommandp): Change `->prompt' to `->intspec'.
16517
16518 * data.c (Finteractive_form): If the interactive specification starts
16519 with a `(', use it as a Lisp form.
16520
16521 * fileio.c (Fset_file_modes): Add an interactive spec that reads a file
16522 name and file modes.
16523
16524 * callint.c (Fcall_interactively): Comment fixes.
16525
165262007-09-10 Stefan Monnier <monnier@iro.umontreal.ca>
16527
16528 * callint.c (Fcall_interactively): Use Finteractive_form also for subrs
16529 and compiled functions.
16530
165312007-09-08 Fredrik Axelsson <f.axelsson@gmail.com>
16532
16533 * window.c (prefer_window_split_horizontally): New variable.
16534 (display_buffer): Consider splitting window horizontally depending
16535 on prefer_window_split_horizontally.
16536
165372007-09-08 Eli Zaretskii <eliz@gnu.org>
16538
16539 * sysdep.c [WINDOWSNT]: Don't include sysselect.h.
16540
165412007-09-07 Stefan Monnier <monnier@iro.umontreal.ca>
16542
16543 * s/cygwin.h (GC_MARK_STACK): Enable conservative stack marking.
16544
16545 * frame.c (x_set_frame_parameters): Check number is positive before
16546 using XFASTINT.
16547
16548 * window.c (freeze_window_start): Don't presume selected_window holds
16549 a window object.
16550 (Fdisplay_buffer): Remove `register' since `buffer' needs to be gcpro'd.
16551
165522007-09-07 Angelo Graziosi <Angelo.Graziosi@roma1.infn.it> (tiny change)
16553
16554 * term.c (dissociate_if_controlling_tty): Call setsid on CYGWIN.
16555
165562007-09-07 Stefan Monnier <monnier@iro.umontreal.ca>
16557
16558 * window.c (Vsplit_window_preferred_function): New var.
16559 (Fdisplay_buffer): Use it.
16560 (syms_of_window): Export, and initialize it.
16561
165622007-09-06 Pixel <pixel@mandriva.com> (tiny change)
16563
16564 * image.c (gif_load): Fix bug: Handle nonexistent colormap.
16565
165662007-09-06 Glenn Morris <rgm@gnu.org>
16567
16568 * gtkutil.c (menu_grab_callback) <cnt>:
16569 * xselect.c (x_reply_selection_request) <cnt>: Move static
16570 variable to file scope.
16571
165722007-09-06 Stefan Monnier <monnier@iro.umontreal.ca>
16573
16574 * xdisp.c (redisplay_internal): Make sure Elisp code always sees
16575 consistent values of selected_frame and selected_window.
16576
165772007-09-04 Jason Rumney <jasonr@gnu.org>
16578
16579 * w32console.c (initialize_w32_display): Zero unused hooks.
16580
165812007-09-04 Dan Nicolaescu <dann@ics.uci.edu>
16582
16583 * term.c (Vsuspend_tty_functions, Vresume_tty_functions)
16584 (syms_of_term, Fsuspend_tty, Fresume_tty): Undo previous change.
16585
165862007-09-04 Jason Rumney <jasonr@gnu.org>
16587
16588 * term.c (init_tty) [WINDOWSNT]: Add hooks that are not accessible
16589 in w32console.c. Set up input. Remove XXX comments that have been
16590 confirmed as correct.
16591
16592 * s/ms-w32.h (MULTI_KBOARD): Define.
16593
16594 * w32console.c (one_and_only_w32cons): Remove.
16595 (initialize_w32_display): Take terminal argument.
16596
16597 * term.c (init_tty) [WINDOWSNT]: Pass terminal to
16598 initialize_w32_display.
16599 (init_tty) [MULTI_KBOARD]: Include this code on WINDOWSNT too.
16600
16601 * termhooks.h (enum event_kind) <HORIZ_WHEEL_EVENT>: New event.
16602
16603 * keyboard.c (discard_mouse_events): Discard it.
16604 (make_lispy_event): Translate it to a lisp event.
16605 (lispy_wheel_names): Add wheel-left and right events.
16606 (syms_of_keyboard): Enlarge wheel_syms.
16607
16608 * w32fns.c (w32_wnd_proc) <WM_DROPFILES>: Merge with WM_MOUSEWHEEL.
16609 <WM_MOUSEHWHEEL>: Pass new system message to lisp.
16610
16611 * w32term.h (WM_MOUSEHWHEEL): Define if system headers don't.
16612
16613 * w32term.c (construct_mouse_wheel): Make HORIZ_WHEEL_EVENT
16614 from WM_MOUSEHWHEEL.
16615 (w32_read_socket) <WM_MOUSEHWHEEL>: Treat as WM_MOUSEWHEEL.
16616
16617 * w32fns.c (x_create_tip_frame) [MULTI_KBOARD]: Get keyboard from
16618 terminal.
16619
16620 * w32term.c (w32_create_terminal) [MULTI_KBOARD]: Create a new
16621 keyboard for the terminal.
16622
166232007-09-04 Dan Nicolaescu <dann@ics.uci.edu>
16624
16625 * term.c (Vsuspend_tty_hook): Rename from Vsuspend_tty_functions.
16626 (Vresume_tty_hook): Rename from Vresume_tty_functions.
16627 (syms_of_term): Rename suspend-tty-functions to suspend-tty-hook
16628 and resume-tty-function to resume-tty-hook.
16629 (Fsuspend_tty, Fresume_tty): Use new names.
16630
166312007-09-02 Jan Djärv <jan.h.d@swipnet.se>
16632
16633 * gtkutil.c (update_frame_tool_bar): Handle stock name as a named icon
16634 if it starts with "n:".
16635
166362007-08-31 Jan Djärv <jan.h.d@swipnet.se>
16637
16638 * gtkutil.c (update_frame_tool_bar): Initialize wbutton to NULL.
16639
166402007-08-31 Stefan Monnier <monnier@iro.umontreal.ca>
16641
16642 * frame.h:
16643 * frame.c (Qterm_environment_variable): Remove.
16644 (syms_of_frame): Don't init and staticpro it.
16645
16646 * callproc.c (getenv_internal): Remove special case for $TERM.
16647
16648 * callproc.c (Vinitial_environment): New variable.
16649 (set_initial_environment): Initialize it.
16650 (syms_of_callproc): Declare it.
16651 (child_setup): Don't mess with TERM via Qterm_environment_variable; the
16652 TERM under which a process runs is never related to the TERM in which
16653 Emacs is running.
16654
166552007-08-29 Dan Nicolaescu <dann@ics.uci.edu>
16656
16657 * config.in (HAVE_WINDOW_SYSTEM): Don't undef MULTI_KBOARD here...
16658 * s/darwin.h: ... do it here.
16659
166602007-08-29 Stefan Monnier <monnier@iro.umontreal.ca>
16661
16662 * lisp.h (set_initial_environment): Rename from set_global_environment.
16663
16664 * Makefile.in (${etc}DOC): Re-add a ${EXEEXT} which seems to have been
16665 removed by mistake on the multi-tty branch.
16666
16667 * frame.c (make_terminal_frame): Yet Another Int/Lisp_Object Mixup.
16668 (Fmodify_frame_parameters): Return a value.
16669
16670 * image.c (png_load): Comment-out var only used in commented-out code.
16671
16672 * term.c (mark_ttys): Don't bother checking top_frame (incorrectly)
16673 before passing it to mark_object.
16674
16675 * xfaces.c (internal_resolve_face_name): Return a value.
16676 (internal_resolve_face_name, resolve_face_name_error): Comment out.
16677
16678 * xfns.c (check_x_display_info): Yet Another Int/Lisp_Object Mixup.
16679 (x_icon): Comment-out var only used in commented-out code.
16680
166812007-08-29 Romain Francoise <romain@orebokech.com>
16682
16683 * keyboard.c (Fset_input_mode): Don't call `Fset_quit_char' if
16684 QUIT hasn't been provided.
16685
166862007-08-29 Dan Nicolaescu <dann@ics.uci.edu>
16687
16688 * callproc.c (child_setup, getenv_internal): Use the
16689 display-environment-variable and term-environment-variable frame params.
16690 (set_initial_environment): Initialise Vprocess_environment.
16691
16692 * config.in: Disable multi-keyboard support on a mac.
16693
16694 * frame.c (Qterm_environment_variable)
16695 (Qdisplay_environment_variable): New variables.
16696 (syms_of_frame): Intern and staticpro them.
16697 (Fmake_terminal_frame): Disable output method test.
16698
16699 * frame.h: Declare them here.
16700
16701 * macfns.c (x_set_mouse_color): Get rif from the frame.
16702 (x_set_tool_bar_lines): Don't use updating_frame.
16703 (mac_window): Add 2 new parameters for consistency with other systems.
16704 (Fx_create_frame): Fix doc string. Rename the parameter. Set the
16705 frame parameters following what is done in X11 and w32. Don't use
16706 FRAME_MAC_DISPLAY_INFO.
16707 (Fx_open_connection, start_hourglass): Remove window-system check.
16708 (x_create_tip_frame): Get the keyboard from the terminal.
16709
16710 * macmenu.c: Reorder includes.
16711 (Fx_popup_menu): Use terminal specific mouse_position_hook.
16712
16713 * macterm.c (XTset_terminal_modes, XTreset_terminal_modes): Add a
16714 terminal parameter.
16715 (x_clear_frame): Add a frame parameter.
16716 (note_mouse_movement): Get rif from the frame.
16717 (mac_term_init): Initialize the terminal.
16718 (mac_initialize): Make static and move terminal initialization ...
16719 (mac_create_terminal): ... to this new function.
16720
16721 * macterm.h (struct mac_display_info): Add terminal.
16722 (mac_initialize): Delete declaration.
16723
16724 * puresize.h (BASE_PURESIZE): Increase base value to 1164000.
16725
16726 * sysdep.c: Comment out text after #endif.
16727
16728 * term.c (init_tty): Only use terminal->kboard when MULTI_KBOARD
16729 is defined. Better initialize ttys in windows. Use terminal
16730 specific mouse_position_hook.
16731
16732 * termhooks.h (union display_info): Add mac_display_info.
16733
16734 * w32fns.c (Fx_create_frame): Use kboard from the terminal.
16735 Set the default minibuffer frame, window_system and the rest of the
16736 frame parameters following what is done in X11.
16737
16738 * w32term.c (w32_initialize): Make static.
16739
16740 * xselect.c (x_handle_selection_clear): Only access
16741 terminal->kboard when MULTI_KBOARD is defined.
16742
16743 * s/darwin.h (SYSTEM_PURESIZE_EXTRA): Define here.
16744 (SYSTEM_PURESIZE_EXTRA): Only define on Carbon.
16745
167462007-08-29 Jason Rumney <jasonr@gnu.org>
16747
16748 * frame.c (Fdelete_frame): Only get kboard when MULTI_KBOARD defined.
16749 (make_terminal_frame) [WINDOWSNT]: Initialize terminal.
16750
16751 * fringe.c (w32_init_fringe w32_reset_fringes) [HAVE_NTGUI]:
16752 (mac_init_fringe) [MAC_OS]: Get rif from selected_frame.
16753
16754 * keyboard.c (restore_kboard_configuration): Only define when
16755 MULTI_KBOARD defined.
16756
16757 * makefile.w32-in: Update dependancies from Makefile.in.
16758 (OBJ1): Add terminal.$(O)
16759
16760 * term.c (dissociate_if_controlling_tty) [WINDOWSNT]:
16761 Don't define function body.
16762 (init_tty) [WINDOWSNT]: Use selected_frame for initializing.
16763
16764 * termhooks.h (display_info) [WINDOWSNT]: Add w32.
16765
16766 * w32.c (request_sigio, unrequest_sigio): Remove.
16767
16768 * w32console.c (w32con_move_cursor, w32con_clear_to_end)
16769 (w32con_clear_frame, w32con_clear_end_of_line)
16770 (w32con_ins_del_lines, w32con_insert_glyphs, w32con_write_glyphs)
16771 (w32con_delete_glyphs, w32con_set_terminal_window)
16772 (scroll_line, w32_sys_ring_bell): Add frame arg.
16773 (w32con_set_terminal_modes, w32con_reset_terminal_modes):
16774 Add terminal arg.
16775 (PICK_FRAME): Remove.
16776 (w32con_write_glyphs): Use frame specific terminal coding.
16777 (one_and_only_w32cons): New global variable.
16778 (initialize_w32_display): Use it for storing hooks.
16779 (create_w32cons_output): New function.
16780
16781 * w32inevt.c, w32inevt.h (w32_console_read_socket): Make first
16782 arg a frame.
16783
16784 * w32fns.c (x_create_tip_frame): Set terminal and ref count.
16785 Set window_system.
16786 (x_set_tool_bar_lines): Don't use updating_frame.
16787 (Fx_create_frame): Set terminal and ref count.
16788 (Fx_open_connection): Remove window-system check.
16789
16790 * w32menu.c (Fx_popup_menu): Use terminal specific mouse_position_hook.
16791
16792 * w32term.c (w32_term_init): Call add_keyboard_wait_descriptor.
16793 (w32_set_terminal_modes, w32_reset_terminal_modes): Add terminal arg.
16794 (x_clear_frame, x_delete_glyphs, w32_ring_bell, x_ins_del_lines):
16795 Add frame arg.
16796 (x_delete_terminal, w32_create_terminal): New functions.
16797 (w32_term_init): Create a terminal.
16798 (w32_initialize): Move terminal specific initialization to
16799 w32_create_terminal.
16800
16801 * w32term.h (x_output): Remove foreground_pixel and background_pixel.
16802 (w32_clear_rect, w32_clear_area): Use background from frame.
16803 (w32_display_info): Add terminal.
16804 (w32_sys_ring_bell, x_delete_display): Declare here.
16805
16806 * xdisp.c (display_menu_bar) [HAVE_NTGUI]: Check frame type.
16807
16808 * s/ms-w32.h (SYSTEM_PURESIZE_EXTRA): Bump to 50k.
16809
168102007-08-29 Kalle Olavi Niemitalo <kon@iki.fi> (tiny change)
16811
16812 * keyboard.c (interrupt_signal, handle_interrupt, Fset_quit_char):
16813 Fix get_named_tty calls for the controlling tty.
16814
168152007-08-29 ARISAWA Akihiro <ari@mbf.ocn.ne.jp> (tiny change)
16816
16817 * term.c (dissociate_if_controlling_tty)[USG]: Fix parse error.
16818
168192007-08-29 Yoshiaki Kasahara <kasahara@nc.kyushu-u.ac.jp> (tiny change)
16820
16821 * term.c (tty_insert_glyphs): Add missing first parameter.
16822
168232007-08-29 Károly Lőrentey <karoly@lorentey.hu>
16824
16825 * buffer.c (Fbuffer_list, Fbury_buffer):
16826 Take frame->buried_buffer_list into account.
16827
16828 * cm.c (current_tty): New variable, for cmputc().
16829 (cmputc): Use it.
16830 (cmcheckmagic): Add tty parameter, look up terminal streams there.
16831 (calccost): Add tty parameter. Use emacs_tputs() instead of tputs().
16832 (cmgoto): Add tty parameter. Pass it on to calccost().
16833 Use emacs_tputs() instead of tputs().
16834
16835 * cm.h (emacs_tputs): New macro to set current_tty, and then call
16836 tputs().
16837 (current_tty): New variable, for cmputc().
16838 (cmcheckmagic, cmputc, cmgoto): Add prototypes.
16839
16840 * eval.c (unwind_to_catch): Don't call x_fully_uncatch_errors.
16841 (internal_condition_case, internal_condition_case_1)
16842 (internal_condition_case_2): Don't abort when x_catching_errors.
16843
16844 * fns.c (Fyes_or_no_p): Don't try to open an X dialog on tty terminals.
16845 (Fy_or_n_p): Likewise. Use temporarily_switch_to_single_kboard to
16846 prevent crashes caused by bogus longjmps in read_char.
16847
16848 * keymap.h (Fset_keymap_parent): Add EXFUN.
16849
16850 * macterm.h (FRAME_FOREGROUND_PIXEL, FRAME_BACKGROUND_PIXEL)
16851 * w32term.h (FRAME_FOREGROUND_PIXEL, FRAME_BACKGROUND_PIXEL):
16852 Remove redundant definition.
16853
16854 * macfns.c (x_set_mouse_color, x_make_gc):
16855 Use FRAME_BACKGROUND_PIXEL and FRAME_FOREGROUND_PIXEL.
16856
16857 * w32term.c (x_free_frame_resources):
16858 Use FRAME_BACKGROUND_PIXEL and FRAME_FOREGROUND_PIXEL.
16859 (w32_initialize): Use the accessor macros for terminal characteristics.
16860
16861 * macterm.c (mac_initialize): Use Fset_input_interrupt_mode.
16862 Use the accessor macros for terminal characteristics.
16863 * msdos.c (internal_terminal_init): Use the accessor macros for
16864 terminal characteristics.
16865 (ScreenVisualBell, internal_terminal_init):
16866 Use FRAME_BACKGROUND_PIXEL and FRAME_FOREGROUND_PIXEL.
16867
16868 * termopts.h (no_redraw_on_reenter): Declare.
16869
16870 * alloc.c (emacs_blocked_malloc): Disable mallopt call.
16871 (mark_terminals, mark_ttys): Declare.
16872 (Fgarbage_collect): Call them.
16873 (mark_object): Mark buried_buffer_list.
16874
16875 * prefix-args.c: Include stdlib.h for exit.
16876
16877 * syssignal.h: Add comment.
16878
16879 * indent.c: Include stdio.h.
16880
16881 * window.h (Vinitial_window_system): Declare.
16882 (Vwindow_system): Delete declaration.
16883
16884 * fontset.c (Finternal_char_font): Use FRAME_RIF.
16885
16886 * image.c (lookup_image): Don't initialize `c' until the xasserts
16887 have been run.
16888
16889 * gtkutil.c (xg_create_frame_widgets): Use FRAME_BACKGROUND_PIXEL and
16890 FRAME_FOREGROUND_PIXEL.
16891
16892 * print.c (print_preprocess): Don't lose print_depth levels while
16893 iterating.
16894
16895 * widget.c (update_from_various_frame_slots):
16896 Use FRAME_BACKGROUND_PIXEL and FRAME_FOREGROUND_PIXEL.
16897
16898 * window.c (set_window_buffer): Don't call clear_mouse_face on tty
16899 frames.
16900 (window_internal_height): Remove bogus make_number call.
16901 (init_window_once): Call make_terminal_frame with two zero parameters.
16902
16903 * fileio.c (Fread_file_name): Update comment.
16904
16905 * callint.c (Fcall_interactively):
16906 Use temporarily_switch_to_single_kboard instead of single_kboard_state.
16907 Make sure it is correctly unwound.
16908
16909 * xsmfns.c (x_session_close): New function.
16910
16911 * coding.h (terminal_coding, safe_terminal_coding, keyboard_coding):
16912 Delete declarations.
16913
16914 * xterm.h: Remove declaration for x_fully_uncatch_errors.
16915 (x_output): Remove background_pixel and foreground_pixel fields.
16916 (x_display_info): Add new field TERMINAL. Remove KBOARD field.
16917 (x_delete_device, x_session_close): Declare.
16918
16919 * lread.c: Include setjmp.h. Update declaration of `read_char'.
16920 (read_filtered_event): Call `read_char' with a local
16921 `wrong_kboard_jmpbuf'.
16922
16923 * minibuf.c (read_minibuf): Call temporarily_switch_to_single_kboard.
16924 Don't call single_kboard_state. Use FRAME_RIF.
16925
16926 * process.c (Fmake_network_process): Don't unrequest_sigio on modern
16927 systems.
16928
16929 * lisp.h (set_process_environment): Rename to `set_global_environment'.
16930 (Fframe_with_environment, Fset_input_meta_mode)
16931 (Fset_quit_char): EXFUN.
16932 (x_create_device, tty_output, terminal, tty_display_info): Declare.
16933 (init_sys_modes, reset_sys_modes): Update prototypes.
16934 (init_all_sys_modes, reset_all_sys_modes): New prototypes.
16935
16936 * keyboard.h (struct kboard): Add new fields Vlocal_function_key_map,
16937 Vlocal_key_translation_map, and Vkeyboard_translate_table.
16938 (Vfunction_key_map, Vkeyboard_translate_table, single_kboard_state):
16939 Delete declarations.
16940 (Vfunction_key_map, Vkey_translation_map, push_kboard, pop_kboard)
16941 (temporarily_switch_to_single_kboard, tty_read_avail_input):
16942 New declarations.
16943
16944 * emacs.c (main): Don't call init_sys_modes(), the new term_init()
16945 already does that during init_display(). Call syms_of_keymap
16946 before syms_of_keyboard. Call `syms_of_terminal'.
16947 Call set_initial_environment, not set_process_environment.
16948 (shut_down_emacs): Call reset_all_sys_modes() instead of
16949 reset_sys_modes().
16950
16951 * xfaces.c (x_free_gc): Protect xassert with GLYPH_DEBUG.
16952 (internal_resolve_face_name, resolve_face_name_error): New functions.
16953 (resolve_face_name): Protect against loops and errors thrown by Fget.
16954 (realize_default_face): Don't use FRAME_FONT unless frame is an X frame.
16955 (Ftty_supports_face_attributes_p): Update tty_capable_p call.
16956
16957 * scroll.c: Replace CURTTY() with local variables throughout the
16958 file (where applicable).
16959 (calculate_scrolling, calculate_direct_scrolling)
16960 (scrolling_1, scroll_cost): Use the accessor macros for terminal
16961 characteristics.
16962
16963 * keymap.c (Vfunction_key_map): Remove.
16964 (Fdescribe_buffer_bindings): Update references to Vfunction_key_map.
16965 (syms_of_keymap): Remove DEFVAR for Vfunction_key_map.
16966 (Vkey_translation_map): Remove.
16967 (syms_of_keymap): Remove DEFVAR for key-translation-map.
16968 (Fdescribe_buffer_bindings)
16969 (read_key_sequence, init_kboard, syms_of_keyboard, mark_kboards):
16970 Update for terminal-local key-translation-map.
16971
16972 * Makefile.in (callproc.o): Update dependencies.
16973 (lisp, shortlisp): Add termdev.elc.
16974 (obj): Add terminal.o.
16975 (terminal.o): Add dependencies.
16976 [HAVE_CARBON]: Make terminal.o depend on macgui.h.
16977 (data.o, fns.o): Add termhooks.h dependency.
16978 (SOME_MACHINE_LISP): Add dnd.elc.
16979 (minibuf.o): Fix typo.
16980 Update dependencies.
16981
16982 * data.c (do_symval_forwarding, store_symval_forwarding)
16983 (find_symbol_value): Use the selected frame's keyboard, not
16984 current_kboard.
16985
16986 * .gdbinit (init_sys_modes): Use Vinitial_window_system instead of
16987 Vwindow_system.
16988
16989 * xmenu.c (Fx_menu_bar_open) [USE_X_TOOLKIT, USE_GTK]: Rename from
16990 Fmenu_bar_open.
16991 (syms_of_xmenu): Update defsubr.
16992 (mouse_position_for_popup, Fx_popup_menu)
16993 (Fx_popup_dialog, x_activate_menubar, update_frame_menubar)
16994 (set_frame_menubar, free_frame_menubar)
b97439ce 16995 (create_and_show_popup_menu, xmenu_show)
aac0c6e3
MR
16996 (create_and_show_dialog, xdialog_show, xmenu_show): Abort if not
16997 an X frame.
16998
16999 * xselect.c (x_own_selection): Abort if not an X frame.
17000 (some_frame_on_display): Check if it is an X frame.
17001 (x_handle_selection_clear): Deal with MULTI_KBOARD.
17002
17003 * coding.c: Include frame.h and termhooks.h.
17004 (terminal_coding, keyboard_coding): Delete.
17005 (Fset_terminal_coding_system_internal)
17006 (Fset_keyboard_coding_system_internal)
17007 (Fkeyboard_coding_system)
17008 (Fterminal_coding_system): Add a terminal parameter.
17009 Get terminal_coding from the terminal.
17010 (init_coding_once): Don't call setup_coding_system here.
17011
17012 * dispextern.h (set_scroll_region, turn_off_insert)
17013 (turn_off_highlight, background_highlight, clear_end_of_line_raw)
17014 (tty_clear_end_of_line, tty_setup_colors)
17015 (delete_tty, updating_frame)
17016 (produce_special_glyphs, produce_glyphs, write_glyphs)
17017 (insert_glyphs): Remove.
17018 (raw_cursor_to, clear_to_end, tty_turn_off_insert)
17019 (tty_turn_off_highlight, get_tty_size): Add declaration.
17020 (tabs_safe_p, init_baud_rate, get_tty_terminal): Update prototypes.
17021
17022 * frame.h (enum output_method): Add output_initial.
17023 (struct x_output): Delete.
17024 (FRAME_FOREGROUND_PIXEL, FRAME_BACKGROUND_PIXEL):
17025 Access foreground_pixel and background_pixel directly from the frame.
17026 (tty_display): Delete.
17027 (struct frame): Add buried_buffer_list, foreground_pixel,
17028 background_pixel and terminal. Delete kboard.
17029 (union output_data): Add tty.
17030 (FRAME_KBOARD): Get the kboard from the terminal.
17031 (FRAME_INITIAL_P): New macro.
17032 (Qtty, Qtty_type, Qterminal, Qterminal_live_p, Qenvironment)
17033 (Qterm_environment_variable, Qdisplay_environment_variable)
17034 (make_terminal_frame, Qburied_buffer_list, Qwindow_system):
17035 New declarations.
17036
17037 * termchar.h (tty_output, tty_display_info): New structures.
17038 (tty_list): Declare.
17039 (FRAME_TTY, CURTTY): New macros.
17040 (must_write_spaces, min_padding_speed, fast_clear_end_of_line)
17041 (line_ins_del_ok, char_ins_del_ok, scroll_region_ok)
17042 (scroll_region_cost, memory_below_frame, fast_clear_end_of_line)
17043 (dont_calculate_costs, no_redraw_on_reenter): Remove declarations.
17044
17045 * callproc.c: Include frame.h and termhooks.h, for terminal
17046 parameters.
17047 (add_env): New function.
17048 (child_setup): Use it.
17049 (child_setup, getenv_internal): Handle the new Vprocess_environment.
17050 (getenv_internal): Fix get_terminal_param call.
17051 (Fgetenv_internal, egetenv): Update doc.
17052 (syms_of_callproc): Initialize Vprocess_environment to nil.
17053 Register and initialize them. Remove obsolete defvars. Update doc
17054 strings.
17055 (child_setup): Handle Vlocal_environment_variables.
17056 (getenv_internal): Add terminal parameter.
17057 Handle Vlocal_environment_variables.
17058 (Fgetenv_internal): Add terminal parameter.
17059 (child_setup, getenv_internal, Fgetenv_internal): Store the local
17060 environment in a frame (not terminal) parameter. Update doc strings.
17061 (set_initial_environment): Rename from set_global_environment.
17062 Store Emacs environment in initial frame parameter.
17063
17064 * xdisp.c (redisplay_internal): Update references to
17065 `previous_terminal_frame'.
17066 (display_mode_line, Fformat_mode_line): Replace calls to
17067 `push_frame_kboard' with `push_kboard'.
17068 (get_glyph_string_clip_rects): Add extra parentheses and
17069 braces to prevent compiler warnings.
17070 (calc_pixel_width_or_height): Add xassert to check that the
17071 frame is alive. Don't call `lookup_image' on a termcap frame.
17072 (message2_nolog, message3_nolog, redisplay_internal)
17073 (set_vertical_scroll_bar, redisplay_window, check_x_display_info)
17074 (x_set_scroll_bar_foreground, x_set_scroll_bar_background)
17075 (Fx_create_frame, Fxw_display_color_p, Fx_display_grayscale_p)
17076 (Fx_display_pixel_width, Fx_display_pixel_height)
17077 (Fx_display_planes, Fx_display_color_cells)
17078 (Fx_server_max_request_size, Fx_server_vendor, Fx_server_version)
17079 (Fx_display_screens, Fx_display_mm_height, Fx_display_mm_width)
17080 (Fx_display_backing_store, Fx_display_visual_class)
17081 (Fx_display_save_under, Fx_close_connection, x_create_tip_frame):
17082 Use FRAME_TERMINAL_P, FRAME_WINDOW_P, FRAME_TTY and FRAME_RIF.
17083
17084 * xfns.c (x_set_foreground_color x_set_background_color)
17085 (x_set_mouse_color, x_set_cursor_color, x_make_gc):
17086 Use FRAME_BACKGROUND_PIXEL and FRAME_FOREGROUND_PIXEL.
17087 (Fx_create_frame, x_create_tip_frame, build_string, x_window)
17088 (Fx_create_frame, x_create_tip_frame): Don't create frames on a
17089 terminal that is being deleted.
17090 (Fx_create_frame): Use `store_frame_param' to set `window-system'
17091 frame parameter, and make sure it overrides any user-supplied setting.
17092 (Fx_close_connection, Fx_synchronize): Unify argument names with
17093 the rest of the DEFUNs.
17094
17095 * dispnew.c (Fsend_string_to_terminal): Update call to
17096 `get_tty_terminal'.
17097 (Fredraw_frame, Fsend_string_to_terminal)
17098 (Fsend_string_to_terminal, init_display): Use FRAME_RIF,
17099 FRAME_TERMCAP_P and FRAME_TTY.
17100 (window_change_signal): Don't believe width/height values that are
17101 impossibly small.
17102 (Vinitial_window_system): Rename from Vwindow_system.
17103 (termscript, Wcm, rif): Delete.
17104
17105 * termhooks.h (struct terminal): New struct containing the
17106 previously global text display hooks and new members NAME,
17107 DELETED and PARAM_ALIST.
17108 (FRAME_TERMINAL, TERMINAL_TERMINAL_CODING)
17109 (TERMINAL_KEYBOARD_CODING, TERMINAL_ACTIVE_P, FRAME_WINDOW_P)
17110 (FRAME_RIF): New macros.
17111 (get_terminal_param, get_device): New declarations.
17112 (termscript): Delete declaration.
17113
17114 * xterm.c (x_initialize): Use Fset_input_interrupt_mode.
17115 (XTflash, x_free_frame_resources, x_scroll_bar_create)
17116 (x_scroll_bar_set_handle): Use FRAME_BACKGROUND_PIXEL and
17117 FRAME_FOREGROUND_PIXEL.
17118 (x_fully_uncatch_errors): Disable definition.
17119 (x_scroll_bar_expose): Fix reference to foreground pixel.
17120 (XTread_socket): Disable loop on all X displays.
17121 (x_delete_terminal): Don't set terminal->deleted and let
17122 delete_terminal delete the frames on the terminal.
17123 (x_delete_display): Doc update to reflect changes in
17124 delete_terminal.
17125 (x_display_info) <terminal>: Move member earlier in the struct.
17126 (deleting_tty): Remove old variable.
17127 (Fsuspend_tty): Call clear_tty_hooks.
17128 (Fresume_tty, init_tty): Call set_tty_hooks.
17129 (Ftty_display_color_p, Ftty_display_color_cells): Don't throw
17130 errors on X frames.
17131 (x_catch_errors_unwind): Abort if x_error_message is NULL.
17132 (handle_one_xevent): Initialize `f' to NULL.
17133 (x_delete_terminal, x_create_terminal): New functions.
17134 (XTset_terminal_modes, XTreset_terminal_modes)
17135 (XTread_socket, x_connection_closed, x_term_init)
17136 (x_term_init, x_delete_display): Add terminal parameter.
17137 (x_term_init) [!HAVE_GTK_MULTIDISPLAY]: Refuse to create secondary
17138 X connections.
17139
17140 * frame.c: Include termchar.h.
17141 (Qterminal, Qterminal_live_p, Qburied_buffer_list, Qtty, Qtty_type)
17142 (Qwindow_system, Qenvironment, Qterm_environment_variable)
17143 (Qdisplay_environment_variable): New vars.
17144 (Fframep): Deal with output_initial.
17145 (Fframe-live-p): Doc fix.
17146 (Fwindow-system): New function.
17147 (x_set_screen_gamma, store_frame_param): Fix compilation errors.
17148 (make_terminal_frame): Don't create frames on a terminal that is
17149 being deleted. Use FRAME_BACKGROUND_PIXEL and FRAME_FOREGROUND_PIXEL.
17150 (store_frame_param): Check for found_for_frame before calling XFRAME.
17151 (Fmake_terminal_frame): Handle NULL tty names correctly.
17152 (syms_of_frame): Enhance doc string of `default-frame-alist'.
17153 (Fdelete_frame): Remove unused variable `count'. Don't allow other
17154 frames to refer to a deleted frame in their 'environment parameter.
17155 (Fframe_with_environment): New function.
17156 (syms_of_frame): Defsubr it. Initialize and staticpro Qenvironment.
17157 (get_future_frame_param): New function.
17158 (Fmake_terminal_frame): Use it.
17159 (x_set_frame_parameters, x_set_screen_gamma): Use FRAME_RIF.
17160
17161 * sysdep.c (init_sys_modes, reset_sys_modes): Update for renames.
17162 * sysdep.c (reset_sys_modes): Update for renames.
17163
17164 * keyboard.c (tty_read_avail_input): New function.
17165 (Fset_input_interrupt_mode, Fset_output_flow_control): New functions.
17166 (syms_of_keyboard): Defsubr them.
17167 (Fset_input_meta_mode, Fset_quit_char): New functions.
17168 (Fset_input_mode): Split to above functions.
17169 (read_char_minibuf_menu_prompt): Add wrong_kboard_jmpbuf
17170 parameter. Use it in call to `read_char'.
17171 (read_char): Declare. Update call to `read_char_minibuf_menu_prompt'.
17172 Set wrong_kboard_jmpbuf correctly in recursive calls.
17173 Use current_kboard to access Vkeyboard_translate_table.
17174 Enhance comment before extra longjmp to wrong_kboard_jmpbuf.
17175 Add wrong_kboard_jmpbuf parameter to allow for recursive calls.
17176 Update longjmp invocations. Remember the original current_kboard,
17177 and longjmp to `wrong_kboard_jmpbuf' when a filter, timer or sentinel
17178 changes it. Comment out unnecessary calls to
17179 `record_single_kboard_state' and `any_kboard_state'.
17180 Update recursive calls.
17181 (wrong_kboard_jmpbuf): Remove global variable.
17182 (read_key_sequence): Remove unused variable wrong_kboard_jmpbuf.
17183 Handle deleted interrupted_kboards correctly; that is a legal
17184 case. Add `wrong_kboard_jmpbuf' local variable. Update setjmp
17185 and read_char calls. Abort if interrupted_kboard died in read_char.
17186 (any_kboard_state, single_kboard_state)
17187 (push_frame_kboard): Remove function.
17188 (pop_kboard): Switch out of single_kboard mode if the kboard has
17189 been deleted. Remove unused variable. Help debugging by not
17190 changing current_kboard unnecessarily. Set current_kboard to the
17191 kboard of the selected frame when the stored kboard object has
17192 been deleted before pop_kboard.
17193 (temporarily_switch_to_single_kboard): Change first parameter to a
17194 frame pointer. Throw an error when caller wants to change kboards
17195 while in single_kboard mode. Don't push_kboard if we weren't in
17196 single kboard state. Don't pop_kboard if we popped into any
17197 kboard state.
17198 (restore_kboard_configuration): Abort if pop_kboard changed the
17199 kboard in single_kboard mode. Call pop_kboard only after setting
17200 up single_kboard mode.
17201 (Frecursive_edit): Switch to single_kboard mode only in nested
17202 command loops.
17203 (cmd_error, command_loop, command_loop_1, timer_check):
17204 Comment out unnecessary call to `any_kboard_state' and
17205 `record_single_kboard_state'.
17206 (delete_kboard): Exit single_kboard mode if we have just deleted
17207 that kboard. Use FRAME_KBOARD.
17208 (interrupt_signal): Use `Fkill_emacs' to exit Emacs, not
17209 `fatal_error_signal'.
17210 (record_single_kboard_state): Don't push_kboard if we weren't in
17211 single kboard state. Don't pop_kboard if we popped into any
17212 kboard state.
17213 (push_frame_kboard): Rename to push_kboard.
17214 (kbd_buffer_get_event): Use FRAME_TERMINAL.
17215 (read_avail_input): Read input from all terminals.
17216 (mark_kboards): Also mark Vkeyboard_translate_table.
17217 (kbd_buffer_store_event_hold): Simplify condition.
17218 (read_key_sequence): Reinitialize fkey and keytran at each replay.
17219 (Vkeyboard_translate_table): Move to struct kboard.
17220 (init_kboard): Initialize Vkeyboard_translate_table.
17221 (syms_of_keyboard): Use DEFVAR_KBOARD to define
17222 Vkeyboard_translate_table. Update doc strings. Update docs of
17223 local-function-key-map and function-key-map.
17224
17225 * terminal.c: New file.
17226
17227 * term.c: Include errno.h.
17228 (Vring_bell_function, device_list, initial_device)
17229 (next_device_id, ring_bell, update_begin, update_end)
17230 (set_terminal_window, cursor_to, raw_cursor_to)
17231 (clear_to_end, clear_frame, clear_end_of_line)
17232 (write_glyphs, insert_glyphs, delete_glyphs, ins_del_lines)
17233 (Fdisplay_name, create_device, delete_device): Move to terminal.c.
17234 (syms_of_term): Move their initialization to terminal.c.
17235 (get_tty_terminal, Fdisplay_tty_type, Ftty_display_color_p)
17236 (Ftty_display_color_cells)
17237 (Ftty_no_underline, Fsuspend_tty, Fresume_tty, create_tty_output)
17238 (clear_tty_hooks, set_tty_hooks)
17239 (init_tty, maybe_fatal): New functions.
17240 (Ftty_type): Return nil if terminal is not on a tty instead of
17241 throwing an error. Doc update.
17242 (syms_of_term) <Vsuspend_tty_functions, Vresume_tty_functions>:
17243 Doc update. Initialize new subrs and variables.
17244 (delete_tty): Use terminal->deleted.
17245 (tty_set_terminal_modes): Rename from set_terminal_modes.
17246 (tty_reset_terminal_modes): Rename from reset_terminal_modes.
17247 (set_scroll_region): Rename to `tty_set_scroll_region'.
17248 (turn_on_insert): Rename to `tty_turn_on_insert'.
17249 (turn_off_insert): Rename to `tty_turn_off_insert'.
17250 (turn_off_highlight): Rename to `tty_turn_off_highlight'.
17251 (turn_on_highlight): Rename to `tty_turn_on_highlight'.
17252 (toggle_highligh): Rename to `tty_toggle_highlight'.
17253 (background_highlight): Rename to `tty_background_highlight'.
17254 (highlight_if_desired): Rename to `tty_highlight_if_desired'.
17255 (tty_ring_bell, tty_update_end, tty_set_terminal_window)
17256 (tty_set_scroll_region, tty_background_highlight)
17257 (tty_cursor_to, tty_raw_cursor_to, tty_clear_to_end)
17258 (tty_clear_frame, tty_clear_end_of_line, tty_write_glyphs)
17259 (tty_insert_glyphs, tty_delete_glyphs, tty_ins_del_lines)
17260 (term_get_fkeys, tty_setup_colors, dissociate_if_controlling_tty):
17261 Add static modifier.
17262 (tty_reset_terminal_modes, tty_set_terminal_window)
17263 (tty_set_scroll_region, tty_background_highlight)
17264 (tty_highlight_if_desired, tty_cursor_to)
17265 (tty_raw_cursor_to, tty_clear_to_end, tty_clear_frame)
17266 (tty_clear_end_of_line, tty_write_glyphs, tty_insert_glyphs)
17267 (tty_delete_glyphs, tty_ins_del_lines, turn_on_face): Update for
17268 renames.
17269
172702007-08-28 Jan Djärv <jan.h.d@swipnet.se>
17271
17272 * keyboard.c: Qrtl is new.
17273 (parse_tool_bar_item): Handle :rtl keyword.
17274 (syms_of_keyboard): Intern :rtl keyword.
17275
17276 * dispextern.h (enum tool_bar_item_idx): Add TOOL_BAR_ITEM_RTL_IMAGE.
17277
17278 * gtkutil.c (xg_tool_bar_expose_callback): Just do SET_FRAME_GARBAGED
17279 so no Lisp code is executed.
17280 (file_for_image, find_rtl_image): New functions.
17281 (xg_get_image_for_pixmap): Use file_for_image.
17282 (update_frame_tool_bar): If direction is RTL, use RTL image if
17283 defined. Use Gtk stock images if defined.
17284
172852007-08-27 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
17286
17287 * macterm.c (x_draw_composite_glyph_string_foreground): Draw rectangle
17288 for nonexistent or zero-width glyph in composition glyph.
17289
172902007-08-25 Stefan Monnier <monnier@iro.umontreal.ca>
17291
17292 * m/amdx86-64.h: Redirect to intel386.h if compiling for i386.
17293
17294 * xdisp.c (Finvisible_p): New function.
17295 (syms_of_xdisp): defsubr it.
17296
172972007-08-24 Juanma Barranquero <lekktu@gmail.com>
17298
17299 * image.c (syms_of_image) <image-library-alist, cross-disabled-images>:
17300 Doc fixes.
17301
173022007-08-24 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
17303
17304 * mac.c [MAC_OSX] (select_and_poll_event, sys_select): Fix last changes.
17305
173062007-08-24 Martin Rudalics <rudalics@gmx.at>
17307
17308 * fileio.c (Finsert_file_contents): Consult CHARS_MODIFF to tell
17309 whether decoding has modified buffer contents.
17310
173112007-08-24 Jason Rumney <jasonr@gnu.org>
17312
17313 * image.c [HAVE_NTGUI]: Define dynamic loaded functions for SVG.
17314 (Qgdk_pixbuf, Qglib) [HAVE_NTGUI]: New symbols.
17315 (syms_of_image) [HAVE_NTGUI]: Intern and staticpro them.
17316 (init_svg_functions) [HAVE_NTGUI]: New function.
17317 (fn_g_type_init, fn_g_object_unref, fn_g_error_free): New #defines.
17318 (svg_load_image): Use them.
17319 (svg_load_image) [HAVE_NTGUI]: Implement background.
17320
173212007-08-23 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
17322
17323 * Makefile.in (RSVG_LIBS, RSVG_CFLAGS): New variables.
17324 (ALL_CFLAGS): Use ${RSVG_CFLAGS} instead of @RSVG_CFLAGS@.
17325 (LIBX): Remove @RSVG_LIBS@.
17326 (LIBES): Add $(RSVG_LIBS).
17327
17328 * image.c (svg_load_image): Blend with specified background if exists.
17329 Use IMAGE_BACKGROUND. Add Mac OS Support.
17330
17331 * mac.c (wakeup_from_rne_enabled_p) [MAC_OSX]: Remove variable.
17332 (ENABLE_WAKEUP_FROM_RNE, DISABLE_WAKEUP_FROM_RNE) [MAC_OSX]:
17333 Remove macros.
17334 [MAC_OSX] (socket_callback): Do nothing.
17335 [MAC_OSX] (select_and_poll_event): Use CFRunLoopRunInMode instead of
17336 ReceiveNextEvent.
17337 [MAC_OSX] (sys_select): Likewise. Don't set context as argument to
17338 socket_callback.
17339 (mac_wakeup_from_rne) [MAC_OSX]: Do nothing.
17340
173412007-08-22 Glenn Morris <rgm@gnu.org>
17342
17343 * image.c (x_find_image_file): Search in etc/images/ rather than etc/.
17344
173452007-08-22 Paul Pogonyshev <pogonyshev@gmx.net>
17346
17347 * Makefile.in (ALL_CFLAGS, LIBX): Add RSVG_LIBS.
17348
17349 * image.c: Add support for SVG images. Some additional comments
17350 by Joakim Verona <joakim@verona.se>. When HAVE_RSVG is defined:
17351 (svg_image_p): New function to test for SVG image.
17352 (svg_load): New function to load SVG image.
17353 (svg_load_image): New function, helper for svg_load.
17354 (Qsvg): New Lisp_object.
17355 (svg_keyword_index): New enum.
17356 (svg_format): New static `image_keyword' struct.
17357 (svg_type): New static `image_type' struct.
17358 (librsvg/rsvg.h): Include it.
17359
173602007-08-23 Stefan Monnier <monnier@iro.umontreal.ca>
17361
17362 * lread.c (load_warn_old_style_backquotes): Fix up array size typo.
17363
173642007-08-22 Stefan Monnier <monnier@iro.umontreal.ca>
17365
17366 * lread.c (Qold_style_backquotes): New var.
17367 (syms_of_lread): Init and staticpro it.
17368 (load_warn_old_style_backquotes): New fun.
17369 (Fload): Use them to warn about old style backquotes.
17370 (end_of_file_error, Fload): Remove unused vars.
17371
17372 * lisp.h (Fclear_face_cache, Fx_send_client_event): Declare.
17373
17374 * lread.c (Vold_style_backquotes): New var.
17375 (syms_of_lread): Init and export it to Elisp.
17376 (read1): Set it when we find an old-style (back)quote.
17377
173782007-08-22 Jason Rumney <jasonr@gnu.org>
17379
17380 * w32reg.c (SYSTEM_DEFAULT_RESOURCES): Add missing NULL terminator.
17381
173822007-08-22 Katsumi Yamaoka <yamaoka@jpl.org>
17383
17384 * puresize.h (BASE_PURESIZE): Increase to 1140000.
17385
173862007-08-19 Richard Stallman <rms@gnu.org>
17387
17388 * eval.c (Ffunction, Fquote): Signal error if not 1 argument.
17389
173902007-08-19 Andreas Schwab <schwab@suse.de>
17391
17392 * alloc.c (pure): Round PURESIZE up.
17393
173942007-08-17 Jan Djärv <jan.h.d@swipnet.se>
17395
17396 * xterm.c (handle_one_xevent): Remove check that mouse click is in
17397 active frame.
17398
173992007-08-16 Richard Stallman <rms@gnu.org>
17400
17401 * eval.c (Fcommandp): Add parens to clarify.
17402
17403 * minibuf.c (Fall_completions): Use enum for type of table.
17404
17405 * emacs.c (USAGE2): Improve text.
17406
174072007-08-15 Philippe Waroquiers <philippe.waroquiers@eurocontrol.int>
17408
17409 * term.c (tty_default_color_capabilities): Declare static
17410 variables in file scope, to avoid HPUX compiler problem.
17411
174122007-08-13 Jan Djärv <jan.h.d@swipnet.se>
17413
17414 * gtkutil.c (update_frame_tool_bar): Use -1 as index
17415 to gtk_toolbar_insert.
17416
174172007-08-13 Stefan Monnier <monnier@iro.umontreal.ca>
17418
17419 * fileio.c (Finsert_file_contents): Yet Another Int/Lisp_Object Mixup.
17420
17421 * insdel.c (reset_var_on_error): New fun.
17422 (signal_before_change, signal_after_change):
17423 Use it to reset (after|before)-change-functions to nil in case of error.
17424 Bind inhibit-modification-hooks to t.
17425 Don't bind (after|before)-change-functions to nil while they run.
17426
174272007-08-11 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
17428
17429 * xterm.c (x_draw_image_glyph_string): Adjust stipple origin when
17430 filling pixmap with stippled background.
17431
174322007-08-10 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
17433
17434 * macterm.c [TARGET_API_MAC_CARBON] (mac_handle_window_event):
17435 Don't use invisible frame as parent window for repositioning.
17436
174372007-08-10 Stefan Monnier <monnier@iro.umontreal.ca>
17438
17439 * print.c (new_backquote_output): Rename from old_backquote_output.
17440 (print): Inverse its logic (according to its name) so as to match the
17441 behavior of new_backquote_flag in lread.c.
17442
174432007-08-09 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
17444
17445 * gmalloc.c (posix_memalign): New function.
17446
17447 * macterm.c (frame_highlight, frame_unhighlight): Don't call
17448 ActivateControl/DeactivateControl here.
17449 [USE_MAC_TOOLBAR] (free_frame_tool_bar): Suppress animation when
17450 frame-notice-user-settings is non-nil.
17451 [USE_MAC_FONT_PANEL] (mac_handle_font_event): Also record parameter
17452 for kEventParamFMFontStyle.
17453 [TARGET_API_MAC_CARBON] (mac_handle_keyboard_event): Don't check
17454 mac_pass_command_to_system and mac_pass_control_to_system here.
17455 (XTread_socket): Call ActivateControl/DeactivateControl here.
17456 (XTread_socket) [TARGET_API_MAC_CARBON]:
17457 Check mac_pass_command_to_system and mac_pass_control_to_system here.
17458 (mac_handle_window_event) [USE_MAC_TOOLBAR]: Add further workaround
17459 for window repositioning.
17460
174612007-08-08 Glenn Morris <rgm@gnu.org>
17462
17463 * Replace `iff' in doc-strings and comments.
17464
174652007-08-07 Chong Yidong <cyd@stupidchicken.com>
17466
17467 * xdisp.c (move_it_by_lines): Remove incorrect optimization.
17468
174692007-08-07 Martin Rudalics <rudalics@gmx.at>
17470
17471 * fileio.c (Finsert_file_contents): Run format-decode and
17472 after_insert_file_functions on entire buffer when REPLACE is
17473 non-nil and inhibit modification_hooks and point_motion_hooks.
17474 For consistency, run after_insert_file_functions iff something
17475 got inserted. Move signal_after_change and update_compositions
17476 after code running after_insert_file_functions. Make sure that
17477 undo_list doesn't record intermediate steps of the decoding process.
17478
174792007-08-07 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
17480
17481 * emacs.c (main)
17482 [HAVE_GTK_AND_PTHREAD && !SYSTEM_MALLOC && !DOUG_LEA_MALLOC]:
17483 Call malloc_enable_thread on interactive startup.
17484
17485 * gmalloc.c (_malloc_thread_enabled_p) [USE_PTHREAD]: New variable.
17486 (LOCK, UNLOCK, LOCK_ALIGNED_BLOCKS, UNLOCK_ALIGNED_BLOCKS)
17487 [USE_PTHREAD]: Conditionalize with it.
17488 (malloc_atfork_handler_prepare, malloc_atfork_handler_parent)
17489 (malloc_atfork_handler_child, malloc_enable_thread) [USE_PTHREAD]:
17490 New functions.
17491
174922007-08-06 Chong Yidong <cyd@stupidchicken.com>
17493
17494 * xdisp.c (redisplay_window): When restoring original buffer
17495 position, make sure it is still valid.
17496
17497 * image.c (png_load): Ignore png-supplied background color.
17498
174992007-08-06 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
17500
17501 * mac.c [TARGET_API_MAC_CARBON] (cfdate_to_lisp): Obtain microsec value.
17502 Use kCFAbsoluteTimeIntervalSince1970.
17503
17504 * macmenu.c (quit_dialog_event_loop) [TARGET_API_MAC_CARBON]:
17505 New variable.
17506 [TARGET_API_MAC_CARBON] (mac_handle_dialog_event): Set it if dialog
17507 event loop should be quit.
17508 [TARGET_API_MAC_CARBON] (create_and_show_dialog) [!MAC_OSX]:
17509 Quit dialog event loop if quit_dialog_event_loop is set.
17510
17511 * macselect.c [!TARGET_API_MAC_CARBON]: Include Scrap.h.
17512 (Selection): New typedef. Use instead of ScrapRef.
17513 (mac_get_selection_from_symbol): Rename from get_scrap_from_symbol.
17514 (mac_valid_selection_target_p): Rename from valid_scrap_target_type_p.
17515 (mac_clear_selection): Rename from clear_scrap.
17516 (get_flavor_type_from_symbol): New argument SEL and subsume function of
17517 scrap_has_target_type. All uses changed.
17518 (mac_get_selection_ownership_info, mac_valid_selection_value_p)
17519 (mac_selection_has_target_p): New functions.
17520 (mac_put_selection_value): Rename from put_scrap_string.
17521 (mac_get_selection_value): Rename from get_scrap_string.
17522 (mac_get_selection_target_list): Rename from get_scrap_target_type_list.
17523 (put_scrap_private_timestamp, scrap_has_target_type)
17524 (get_scrap_private_timestamp): Remove functions.
17525 (SCRAP_FLAVOR_TYPE_EMACS_TIMESTAMP): Remove define.
17526 (x_own_selection, x_get_local_selection):
17527 Use mac_valid_selection_value_p.
17528 (x_own_selection): Don't use put_scrap_private_timestamp.
17529 Record OWNERSHIP-INFO into Vselection_alist instead.
17530 (x_get_local_selection): Don't check type if request is local.
17531 (Fx_selection_owner_p): Don't use get_scrap_private_timestamp.
17532 Detect ownership change with OWNERSHIP-INFO in Vselection_alist instead.
17533
175342007-08-04 Jan Djärv <jan.h.d@swipnet.se>
17535
17536 * gtkutil.c (xg_tool_bar_callback): Generate two TOOL_BAR_EVENT:s,
17537 add comment explaining why.
17538
175392007-08-03 Richard Stallman <rms@gnu.org>
17540
17541 * fileio.c (Fvisited_file_modtime): Use make_time.
17542
175432007-08-01 Ryo Yoshitake <ryo@shiftmode.net> (tiny change)
17544
17545 * mac.c (init_mac_osx_environment): Adjust load-path on self-contained
17546 build.
17547
175482007-07-31 Stefan Monnier <monnier@iro.umontreal.ca>
17549
17550 * gtkutil.c (xg_tool_bar_callback): Generate a single TOOL_BAR_EVENT.
17551
175522007-07-30 Katsumi Yamaoka <yamaoka@jpl.org>
17553
17554 * puresize.h (BASE_PURESIZE): Increase to 1130000.
17555
175562007-07-30 Richard Stallman <rms@gnu.org>
17557
17558 * lread.c (readevalloop, read1): Treat NBSP as whitespace.
17559
175602007-07-29 Jan Djärv <jan.h.d@swipnet.se>
17561
17562 * gmalloc.c (__malloc_initialize): Remove pthread_once. Not needed.
17563
175642007-07-28 Nick Roberts <nickrob@snap.net.nz>
17565
17566 * xdisp.c (decode_mode_spec): Use '@' instead of 'R' to test for
17567 remote default-directory.
17568
17569 * buffer.c (mode-line-format): Update doc string.
17570
175712007-07-27 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
17572
17573 * w32term.c (w32_draw_fringe_bitmap): Extend fringe background to
17574 scroll bar gap.
17575 (x_scroll_bar_create): Set bar->fringe_extended_p.
17576 (w32_set_vertical_scroll_bar): Put leftmost/rightmost scroll bars
17577 on frame edge. Check fringe background extension. Don't clear
17578 extended fringe background area.
17579
17580 * w32term.h (struct scroll_bar): New member fringe_extended_p.
17581 (w32_fill_area): Enclose multiple statements with do ... while (0).
17582
17583 * xterm.c (x_draw_fringe_bitmap) [USE_TOOLKIT_SCROLL_BARS]:
17584 Extend fringe background to scroll bar gap.
17585 (x_scroll_bar_create) [USE_TOOLKIT_SCROLL_BARS]:
17586 Set bar->fringe_extended_p.
17587 (XTset_vertical_scroll_bar) [USE_TOOLKIT_SCROLL_BARS]:
17588 Put leftmost/rightmost scroll bars on frame edge. Check fringe
17589 background extension. Don't clear extended fringe background area.
17590
17591 * xterm.h (struct scroll_bar) [USE_TOOLKIT_SCROLL_BARS]:
17592 New member fringe_extended_p.
17593
175942007-07-25 Glenn Morris <rgm@gnu.org>
17595
17596 * Relicense all FSF files to GPLv3 or later.
17597
17598 * COPYING: Switch to GPLv3.
17599
176002007-07-25 Stefan Monnier <monnier@iro.umontreal.ca>
17601
17602 * eval.c (Fcommandp): Pay attention to the `interactive-form' property.
17603
17604 * data.c (Finteractive_form): Check for the presence of an
17605 `interactive-form' symbol property more thoroughly.
17606
17607 * data.c (Finteractive_form): Use an `interactive-form' property if
17608 present, analogous to the function-documentation property.
17609
176102007-07-24 Jason Rumney <jasonr@gnu.org>
17611
17612 * w32fns.c (x_real_positions): Get real position from OS instead of
17613 calculating it.
17614
176152007-07-23 Jason Rumney <jasonr@gnu.org>
17616
17617 * filelock.c (current_lock_owner): Allow for @ sign in username.
17618
176192007-07-22 Nick Roberts <nickrob@snap.net.nz>
17620
17621 * xdisp.c (decode_mode_spec): Add case 'R' for to test for
17622 remote default-directory.
17623
17624 * buffer.c (mode-line-format): Describe above case in doc string.
17625
176262007-07-20 Eli Zaretskii <eliz@gnu.org>
17627
17628 * w32proc.c (IMAGE_NT_OPTIONAL_HDR32_MAGIC, IMAGE_OPTIONAL_HEADER32):
17629 Define if not defined.
17630
176312007-07-18 Jason Rumney <jasonr@gnu.org>
17632
17633 * w32proc.c (w32_executable_type): Handle 64 bit executables.
17634
176352007-07-18 Richard Stallman <rms@gnu.org>
17636
17637 * data.c (Fsetq_default): Doc fix.
17638
17639 * eval.c (Fsetq): Doc fix.
17640
176412007-07-18 Juanma Barranquero <lekktu@gmail.com>
17642
17643 * coding.c (Ffind_operation_coding_system):
17644 * eval.c (For, Fand): Doc fixes.
17645 Reported by Johan Bockgård.
17646
176472007-07-18 Jan Djärv <jan.h.d@swipnet.se>
17648
17649 * xfns.c (Fx_focus_frame): Call x_ewmh_activate_frame.
17650
17651 * xterm.h: Declare x_ewmh_activate_frame.
17652
17653 * xterm.c (x_ewmh_activate_frame): New function.
17654 (XTframe_raise_lower): Move code to x_ewmh_activate_frame.
17655
176562007-07-17 Martin Rudalics <rudalics@gmx.at>
17657
17658 * window.c (Fdisplay_buffer): If largest or LRU window is the
17659 only window, split it even if it is not eligible for splitting.
17660 This restores the original behavior broken by the 2007-07-15
17661 change.
17662
176632007-07-17 Glenn Morris <rgm@gnu.org>
17664
17665 * abbrev.c (abbrev_check_chars): New function.
17666 (Fdefine_global_abbrev, Fdefine_mode_abbrev):
17667 Call abbrev_check_chars to check abbrev characters are word
17668 constituents. Doc fix.
17669
176702007-07-17 Stefan Monnier <monnier@iro.umontreal.ca>
17671
17672 * process.c (Fstart_process, Fmake_network_process)
17673 (read_process_output): Fix up last changes.
17674
176752007-07-16 Eli Zaretskii <eliz@gnu.org>
17676
17677 * makefile.w32-in (clean): Don't delete *~.
17678
176792007-07-16 Andreas Schwab <schwab@suse.de>
17680
17681 * window.c (Fdisplay_buffer): Use NILP.
17682 (Fset_window_scroll_bars): Likewise.
17683
176842007-07-15 Martin Rudalics <rudalics@gmx.at>
17685
17686 * window.c (window_min_size_2): New function.
17687 (window_min_size_1, size_window, Fdisplay_buffer)
17688 (Fsplit_window, adjust_window_trailing_edge): Use it to avoid
17689 windows without mode- or header-lines when window-min-height is
17690 too small.
17691 (size_window): Reset nodelete_p after testing it, following an
17692 earlier note by Kim F. Storm.
17693 (display_buffer): Do not set split_height_threshold to twice the
17694 value of window_min_height to avoid changing the value of a
17695 customizable variable. Rather explicitly check whether the
17696 height of the window that shall be splitted is at least as large
17697 as split_height_threshold.
17698 (Fwindow_full_width_p): New defun.
17699 (syms_of_window): Defsubr it.
17700
17701 * window.h: Add EXFUN for Fwindow_full_width_p.
17702
177032007-07-14 Jason Rumney <jasonr@gnu.org>
17704
17705 * process.c [WINDOWSNT]: Don't undefine AF_INET6.
17706
177072007-07-14 Richard Stallman <rms@gnu.org>
17708
17709 * eval.c (maybe_call_debugger): New function.
17710 (find_handler_clause): Use maybe_call_debugger.
17711 Call it when the handler says `debug'.
17712 Eliminate DEBUGGER_VALUE_PTR.
17713 (Fsignal): Eliminate debugger_value.
17714 (Qdebug): New variable.
17715 (syms_of_eval): Initialize it.
17716
177172007-07-14 Juanma Barranquero <lekktu@gmail.com>
17718
17719 * eval.c (Fprogn):
17720 * keyboard.c (Ftrack_mouse):
17721 * print.c (Fwith_output_to_temp_buffer):
17722 * window.c (Fsave_window_excursion): Doc fix.
17723
177242007-07-13 Stefan Monnier <monnier@iro.umontreal.ca>
17725
17726 * eval.c (init_eval_once): Bump max_lisp_eval_depth to 400.
17727
177282007-07-12 Stefan Monnier <monnier@iro.umontreal.ca>
17729
17730 * process.h (struct Lisp_Process): Turn slots infd, outfd,
17731 kill_without_query, pty_flag, tick, update_tick, decoding_carryover,
17732 inherit_coding_system_flag, filter_multibyte, adaptive_read_buffering,
17733 read_output_delay, and read_output_skip from Lisp_Objects to ints.
17734 Remove unused encoding_carryover.
17735 * process.c: Adjust all functions accordingly.
17736
177372007-07-12 Richard Stallman <rms@gnu.org>
17738
17739 * term.c: Include unistd.h only if HAVE_UNISTD_H.
17740
177412007-07-11 Jason Rumney <jasonr@gnu.org>
17742
17743 * makefile.w32-in (LIBS): Include OLE32.
17744
17745 * w32fns.c (w32_msg_pump) <WM_EMACS_CREATEWINDOW>: Initialize COM.
17746 (w32_msg_pump) <WM_DESTROY>: Uninitialize COM.
17747
177482007-07-11 Stefan Monnier <monnier@iro.umontreal.ca>
17749
17750 * lisp.h (struct Lisp_Hash_Table): Turn next_weak into a bare pointer.
17751 * fns.c (weak_hash_tables): Rename from Vweak_hash_tables and turned
17752 from a Lisp_Object into a bare pointer.
17753 (make_hash_table, copy_hash_table, sweep_weak_hash_tables, init_fns):
17754 Adjust the code correspondingly.
17755
17756 * alloc.c (emacs_blocked_free): Remove unused var `bytes_used_now'.
17757
17758 * term.c: Include unistd.h for ttyname, used in handle_one_term_event.
17759 (term_show_mouse_face): Remove unused var `j'.
17760 (handle_one_term_event): Remove unused vars `i' and `j'.
17761 Don't cast return value of ttyname since it's not necessary.
17762
177632007-07-10 Stefan Monnier <monnier@iro.umontreal.ca>
17764
17765 * alloc.c (mark_maybe_pointer): Enforce mult-of-8 alignment when using
17766 USE_LSB_TAG. Suggested by Dmitry Antipov <dmantipov@yandex.ru>.
17767
17768 * fns.c (map_char_table): Use an array of int for `indices' rather than
17769 an array of Lisp_Objects (which are only ever integers anyway).
17770 (Fmap_char_table): Update caller.
17771 * lisp.h: Update prototype.
17772 * keymap.c (Fset_keymap_parent, map_keymap, Fcopy_keymap):
17773 * fontset.c (Ffontset_info):
17774 * casetab.c (set_case_table): Update callers.
17775
17776 * editfns.c (Ftranspose_regions): Use EMACS_INT for positions.
17777
17778 * keymap.c (struct accessible_keymaps_data)
17779 (struct where_is_internal_data): New structures.
17780 (accessible_keymaps_1, where_is_internal_1): Use them to change
17781 interface to adhere to the one used by map_keymap.
17782 (Faccessible_keymaps, where_is_internal): Use map_keymap.
17783 (accessible_keymaps_char_table, where_is_internal_2): Remove.
17784
17785 * keymap.h (map_keymap_function_t): More informative prototype.
17786
177872007-07-10 Guanpeng Xu <herberteuler@hotmail.com>
17788
17789 * search.c (Vinhibit_changing_match_data, search_regs_1): New vars.
17790 (looking_at_1): Don't change search_regs and last_thing_searched
17791 if `inhibit-changing-match-data' is non-nil.
17792 (string_match_1, search_buffer, set_search_regs): Likewise.
17793 (syms_of_search): Add Lisp level definition for
17794 `inhibit-changing-match-data' and set it to nil.
17795 (boyer_moore): If `inhibit-changing-match-data' is non-nil, compute
17796 start and end of the match, instead of using values in search_regs.
17797
177982007-07-01 Stefan Monnier <monnier@iro.umontreal.ca>
17799
17800 * minibuf.c (Fcompleting_read): New value `confirm-only'
17801 for `require-match'.
17802
178032007-06-28 Stefan Monnier <monnier@iro.umontreal.ca>
17804
17805 * fileio.c (Fdo_auto_save): Revert last patch installed unwillingly as
17806 part of the 2007-06-27 change to syms_of_fileio.
17807
178082007-06-28 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
17809
17810 * macterm.c [USE_MAC_TSM] (mac_handle_text_input_event):
17811 Check WINDOWP before using XWINDOW. Consolidate return statements.
17812
178132007-06-27 Richard Stallman <rms@gnu.org>
17814
17815 * fileio.c (syms_of_fileio) <after-insert-file-functions>: Doc fix.
17816
178172007-06-27 Juanma Barranquero <lekktu@gmail.com>
17818
17819 * buffer.c (syms_of_buffer) <selective-display>: Fix typo in docstring.
17820
178212007-06-26 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
17822
17823 * gmalloc.c [HAVE_GTK_AND_PTHREAD]: Check this after including config.h.
17824 (_aligned_blocks_mutex) [USE_PTHREAD]: New variable.
17825 (LOCK_ALIGNED_BLOCKS, UNLOCK_ALIGNED_BLOCKS): New macros.
17826 (_free_internal, memalign): Use them.
17827 (_malloc_mutex, _aligned_blocks_mutex) [USE_PTHREAD]:
17828 Initialize to PTHREAD_MUTEX_INITIALIZER.
17829 (malloc_initialize_1) [USE_PTHREAD]: Don't use recursive mutex.
17830 (morecore_nolock): Rename from morecore. All uses changed.
17831 Use only nolock versions of internal allocation functions.
17832 (_malloc_internal_nolock, _realloc_internal_nolock)
17833 (_free_internal_nolock): New functions created from
17834 _malloc_internal, _realloc_internal, and _free_internal.
17835 (_malloc_internal, _realloc_internal, _free_internal): Use them.
17836 Copy hook value to automatic variable before its use.
17837 (memalign): Copy hook value to automatic variable before its use.
17838
178392007-06-26 Kenichi Handa <handa@m17n.org>
17840
17841 * coding.c (Ffind_operation_coding_system): Docstring improved.
17842 (syms_of_coding): Docstring of `file-coding-system-alist' improved.
17843
178442007-06-25 David Kastrup <dak@gnu.org>
17845
17846 * keymap.c (Fcurrent_active_maps): Add `position' argument.
17847 (Fwhere_is_internal): Adjust call to `current-active-maps' to
17848 cater for additional parameter.
17849
17850 * keymap.h: Adjust number of parameters to `current-active-maps'.
17851
17852 * doc.c (Fsubstitute_command_keys): Adjust call of
17853 `current-active-maps'.
17854
178552007-06-25 David Kastrup <dak@gnu.org>
17856
17857 * callint.c (Fcall_interactively): Make the parsing of interactive
17858 specs somewhat more readable.
17859
178602007-06-23 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
17861
17862 * macterm.c (x_draw_fringe_bitmap) [MAC_OSX]: Extend fringe background
17863 to scroll bar gap also when bitmap fills fringe. Draw only foreground
17864 if extended background has already been filled.
17865
178662007-06-22 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
17867
17868 * macgui.h (USE_CG_DRAWING): Don't require USE_ATSUI.
17869 (USE_MAC_TOOLBAR): Require USE_CG_DRAWING.
17870
17871 * macmenu.c (mac_dialog_modal_filter, Fx_popup_dialog) [MAC_OSX]:
17872 Put special treatment for Fmessage_box, Fyes_or_no_p, and Fy_or_n_p
17873 in #if 0 as it is not compatible with y-or-n-p-with-timeout.
17874 (timer_check) [TARGET_API_MAC_CARBON]: Add extern.
17875 [TARGET_API_MAC_CARBON] (mac_handle_dialog_event): Use QuitEventLoop
17876 instead of QuitAppModalLoopForWindow. Consolidate QuitEventLoop calls.
17877 (pop_down_dialog) [TARGET_API_MAC_CARBON]: New function.
17878 [TARGET_API_MAC_CARBON] (create_and_show_dialog): Use it for unwind.
17879 Run timers during dialog popup.
17880 (Fmenu_or_popup_active_p) [TARGET_API_MAC_CARBON]: Use popup_activated.
17881
178822007-06-21 Jason Rumney <jasonr@gnu.org>
17883
17884 * image.c (convert_mono_to_color_image): Swap fore and background.
17885
178862007-06-20 Jason Rumney <jasonr@gnu.org>
17887
17888 * w32bdf.c (w32_BDF_to_x_font): Unmap memory when finished.
17889 (w32_free_bdf_font): Unmap memory not handle.
17890
178912007-06-20 Sam Steingold <sds@gnu.org>
17892
17893 * gmalloc.c (__morecore): Fix the declaration to comply with the
17894 definition.
17895
178962007-06-20 Juanma Barranquero <lekktu@gmail.com>
17897
17898 * w32term.c (w32_delete_display): Remove leftover declaration.
17899 (w32_define_cursor, w32_initialize): Make static.
17900
17901 * w32.c (_wsa_errlist): Fix typo in error message.
17902 (init_environment): Ignore any environment variable from the
17903 registry having a null value.
17904
179052007-06-20 Glenn Morris <rgm@gnu.org>
17906
17907 * Makefile.in (LIBGIF): Default to -lgif.
17908
179092007-06-17 Jason Rumney <jasonr@gnu.org>
17910
17911 * w32menu.c (add_menu_item): Don't use multibyte string functions on
17912 unicode strings.
17913
179142007-06-16 Juanma Barranquero <lekktu@gmail.com>
17915
17916 * xdisp.c (syms_of_xdisp) <auto-resize-tool-bars>:
17917 Fix typo in docstring.
17918
179192007-06-16 Eli Zaretskii <eliz@gnu.org>
17920
17921 * w32menu.c (add_menu_item): Escape `&' characters in menu items
17922 and their keybindings.
17923
179242007-06-15 Chong Yidong <cyd@stupidchicken.com>
17925
17926 * composite.c (update_compositions): Fix last fix.
17927
179282007-06-14 Jason Rumney <jasonr@gnu.org>
17929
17930 * w32.c (get_process_times_fn): New function pointer.
17931 (globals_of_w32): Intialize it if present in kernel32.dll.
17932 (w32_get_internal_run_time): New function.
17933
17934 * editfns.c (Fget_internal_run_time) [WINDOWSNT]: Use it.
17935
179362007-06-14 Kenichi Handa <handa@etlken.m17n.org>
17937
17938 * composite.c (update_compositions): Check the validness of
17939 compositions.
17940
179412007-06-14 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
17942
17943 * frame.h (struct frame) [MAC_OS]: New member external_tool_bar.
17944 (FRAME_EXTERNAL_TOOL_BAR) [MAC_OS]: Use it.
17945
17946 * macfns.c (mac_window) [USE_MAC_TOOLBAR]: Set toolbar_win_gravity.
17947 (x_set_tool_bar_lines) [USE_MAC_TOOLBAR]: Set FRAME_EXTERNAL_TOOL_BAR.
17948
17949 * macgui.h (USE_MAC_TOOLBAR): New define.
17950
17951 * macmenu.c [TARGET_API_MAC_CARBON] (menu_target_item_handler):
17952 Return immediately unless popup is activated.
17953
17954 * macterm.c (x_draw_fringe_bitmap) [MAC_OSX]: Extend fringe
17955 background to scroll bar gap.
17956 (x_scroll_bar_create) [MAC_OSX]: Set bar->fringe_extended_p.
17957 (XTset_vertical_scroll_bar) [MAC_OSX]: Put leftmost/rightmost
17958 scroll bars on frame edge. Check fringe background extension.
17959 Don't clear extended fringe background area.
17960 (TOOLBAR_IDENTIFIER, TOOLBAR_ICON_ITEM_IDENTIFIER)
17961 (TOOLBAR_ITEM_COMMAND_ID_OFFSET, TOOLBAR_ITEM_COMMAND_ID_P)
17962 (TOOLBAR_ITEM_COMMAND_ID_VALUE, TOOLBAR_ITEM_MAKE_COMMAND_ID):
17963 [USE_MAC_TOOLBAR]: New macros.
17964 (mac_move_window_with_gravity, mac_get_window_origin_with_gravity)
17965 (mac_handle_toolbar_event, mac_image_spec_to_cg_image)
17966 (mac_create_frame_tool_bar, update_frame_tool_bar, free_frame_tool_bar)
17967 (mac_tool_bar_note_mouse_movement, mac_handle_toolbar_command_event)
17968 [USE_MAC_TOOLBAR]: New functions.
17969 (mac_handle_window_event) [USE_MAC_TOOLBAR]: Reposition window
17970 manually if previous repositioning has failed.
17971 (mac_handle_keyboard_event): Use precomputed event kind.
17972 (XTread_socket) [USE_MAC_TOOLBAR]: Handle click in structure region
17973 as tool bar item click. Handle mouse movement over tool bar items.
17974
17975 * macterm.h (struct mac_output) [USE_MAC_TOOLBAR]: New member
17976 toolbar_win_gravity.
17977 (struct scroll_bar) [MAC_OSX]: New member fringe_extended_p.
17978 (update_frame_tool_bar, free_frame_tool_bar) [USE_MAC_TOOLBAR]:
17979 Add externs.
17980
17981 * xdisp.c (update_tool_bar, redisplay_tool_bar, redisplay_window)
17982 [USE_MAC_TOOLBAR]: Sync with GTK+ tool bar display.
17983
179842007-06-14 Chong Yidong <cyd@stupidchicken.com>
17985
17986 * image.c (search_image_cache): Remove unused variable.
17987
179882007-06-13 Chong Yidong <cyd@stupidchicken.com>
17989
17990 * xfns.c, xmenu.c: Link to xaw3d if available.
17991
179922007-06-13 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
17993
17994 * dispextern.h (struct image) [HAVE_WINDOW_SYSTEM]: New members
17995 frame_foreground and frame_background.
17996
17997 * image.c (lookup_image): Save frame foreground and background colors.
17998 (search_image_cache): Check if saved and current frame colors match.
17999
180002007-06-12 Stefan Monnier <monnier@iro.umontreal.ca>
18001
18002 * regex.c (regex_compile): Remove the `regnum' counter.
18003 Use bufp->re_nsub instead. Add support for \(?N:RE\).
18004
180052007-06-11 Stefan Monnier <monnier@iro.umontreal.ca>
18006
18007 * term.c: Include intervals.h to declare Fget_text_property.
18008
180092007-06-10 Jason Rumney <jasonr@gnu.org>
18010
18011 * w32fns.c (Fx_file_dialog): Take size from struct not pointer.
18012
180132007-06-08 Juanma Barranquero <lekktu@gmail.com>
18014
18015 * callint.c (Fcall_interactively):
18016 * editfns.c (Fdelete_and_extract_region):
18017 * fileio.c (Fread_file_name):
18018 * fns.c (Fmapconcat):
18019 * keyboard.c (cmd_error_internal):
18020 * keymap.c (Fkey_description):
18021 * lread.c (openp):
18022 * minibuf.c (read_minibuf):
18023 * search.c (wordify):
18024 * sunfns.c (sel_read):
18025 * xdisp.c (Fformat_mode_line, syms_of_xdisp):
18026 * xfns.c (x_default_scroll_bar_color_parameter):
18027 * xmenu.c (menu_help_callback):
18028 * xselect.c (Fx_get_atom_name):
18029 * xterm.c (x_term_init): Use empty_unibyte_string.
18030
180312007-06-08 Dmitry Antipov <dmantipov@yandex.ru> (tiny change)
18032
18033 * alloc.c (init_strings): Initialize canonical empty strings.
18034 (make_uninit_string, make_uninit_multibyte_string): Return appropriate
18035 canonical empty string when the requested size is 0.
18036
18037 * emacs.c (empty_unibyte_string): Rename from empty_string.
18038 (empty_multibyte_string): New canonical empty string.
18039 (syms_of_emacs): Don't initialize empty_string.
18040
18041 * lisp.h (STRING_SET_UNIBYTE): Return the canonical empty unibyte
18042 string, if appropriate.
18043 (empty_unibyte_string, empty_multibyte_string): New externs.
18044 (empty_string): Remove extern.
18045
18046 * lread.c (syms_of_lread): Use empty_unibyte_string.
18047
180482007-06-07 Jason Rumney <jasonr@gnu.org>
18049
18050 * s/ms-w32.h: Don't define HAVE_TZNAME.
18051
18052 * editfns.c (Fcurrent_time_zone): Remove hack for Japanese Windows.
18053
180542007-06-07 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
18055
18056 * mac.c (xrm_get_preference_database): Remove BLOCK_INPUT.
18057
18058 * macfns.c (mac_get_window_bounds): Move extern to macterm.h.
18059 (compute_tip_xy) [TARGET_API_MAC_CARBON]: Use GetGlobalMouse.
18060
18061 * macmenu.c [TARGET_API_MAC_CARBON] (menu_target_item_handler):
18062 Don't call next handler.
18063 [TARGET_API_MAC_CARBON] (install_menu_target_item_handler):
18064 Remove argument. Install handler to application.
18065 (set_frame_menubar): Don't change deep_p.
18066 (mac_menu_show): Use FRAME_OUTER_TO_INNER_DIFF_X and
18067 FRAME_OUTER_TO_INNER_DIFF_Y.
18068 (DIALOG_BUTTON_COMMAND_ID_OFFSET, DIALOG_BUTTON_COMMAND_ID_P)
18069 (DIALOG_BUTTON_COMMAND_ID_VALUE, DIALOG_BUTTON_MAKE_COMMAND_ID)
18070 [HAVE_DIALOGS]: New macros.
18071 [HAVE_DIALOGS] (mac_handle_dialog_event, create_and_show_dialog):
18072 Use them.
18073 (fill_menubar) [TARGET_API_MAC_CARBON]: Use CFString.
18074
18075 * macselect.c [MAC_OSX] (install_service_handler): Rename from
18076 init_service_handler. All callers changed. Return OSStatus value.
18077
18078 * macterm.c (mac_begin_cg_clip): New arg F. Call SetPortWindowPort.
18079 All callers changed so as not to call SetPortWindowPort.
18080 (mac_begin_cg_clip) [USE_CG_DRAWING]: Call mac_prepare_for_quickdraw.
18081 (mac_draw_image_string_atsui) [USE_ATSUI]: New function created from
18082 mac_draw_string_common.
18083 (mac_draw_image_string_qd): Likewise.
18084 (mac_draw_string_common): Use them. Add INLINE.
18085 (XTmouse_position, x_scroll_bar_report_motion) [TARGET_API_MAC_CARBON]:
18086 Use FRAME_OUTER_TO_INNER_DIFF_X, FRAME_OUTER_TO_INNER_DIFF_Y, and
18087 GetGlobalMouse.
18088 (x_set_mouse_pixel_position) [MAC_OSX]: Use FRAME_OUTER_TO_INNER_DIFF_X
18089 and FRAME_OUTER_TO_INNER_DIFF_Y.
18090 [TARGET_API_MAC_CARBON] (mac_handle_mouse_event): Likewise.
18091 [USE_MAC_TSM] (mac_handle_text_input_event): Likewise.
18092 (x_make_frame_visible) [TARGET_API_MAC_CARBON]: Move code for
18093 repositioning window to mac_handle_window_event.
18094 (x_make_frame_invisible) [TARGET_API_MAC_CARBON]: Move code for
18095 saving window location to mac_handle_window_event
18096 [USE_MAC_FONT_PANEL] (mac_show_hide_font_panel): Install handler here.
18097 (install_menu_target_item_handler): Remove argument in extern.
18098 [TARGET_API_MAC_CARBON] (mac_event_to_emacs_modifiers):
18099 Also accept command events.
18100 (do_keystroke): New function created from XTread_socket.
18101 (init_command_handler): Remove functions.
18102 [TARGET_API_MAC_CARBON] (mac_handle_window_event): Reposition window
18103 and save window location by kEventWindowShowing and kEventWindowHiding
18104 handlers here. Don't call next handler for window state change and
18105 focus events.
18106 (mac_handle_application_event, mac_handle_keyboard_event)
18107 [TARGET_API_MAC_CARBON]: New functions.
18108 (install_window_handler) [TARGET_API_MAC_CARBON]: Register handlers for
18109 kEventWindowShowing and kEventWindowHiding events. Move installation
18110 of mouse, font, text input and menu target item handlers to
18111 install_application_handler.
18112 (install_application_handler) [TARGET_API_MAC_CARBON]: New function.
18113 (mac_handle_cg_display_reconfig) [MAC_OS_X_VERSION_MAX_ALLOWED >= 1030]:
18114 New function.
18115 (init_dm_notification_handler) [MAC_OS_X_VERSION_MAX_ALLOWED >= 1030]:
18116 Register it.
18117 (XTread_socket) [TARGET_API_MAC_CARBON]:
18118 Consolidate SendEventToEventTarget calls.
18119 Use FRAME_OUTER_TO_INNER_DIFF_X and FRAME_OUTER_TO_INNER_DIFF_Y.
18120 Move application activation handler to mac_handle_application_event.
18121 Move keyboard handler to mac_handle_keyboard_event.
18122 (XTread_socket) [!TARGET_API_MAC_CARBON]: Use do_keystroke.
18123 (mac_initialize) [TARGET_API_MAC_CARBON]: Don't call
18124 init_command_handler. Call install_application_handler.
18125
18126 * macterm.h (mac_get_window_bounds): Move extern from macfns.c.
18127 (FRAME_OUTER_TO_INNER_DIFF_X, FRAME_OUTER_TO_INNER_DIFF_Y): New macros.
18128
181292007-06-07 Glenn Morris <rgm@gnu.org>
18130
18131 * emacs.c (main): Use `emacs-copyright' in --version output.
18132
181332007-06-06 Chong Yidong <cyd@stupidchicken.com>
18134
18135 * image.c (xpm_load): Remove spurious call to xpm_init_color_cache.
18136
181372007-06-06 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
18138
18139 * macfns.c (mac_window): Replace WindowPtr with WindowRef.
18140
18141 * macgui.h: Replace WindowPtr with WindowRef.
18142
18143 * macmenu.c: Replace MenuHandle and GetMenuHandle with MenuRef and
18144 GetMenuRef, respectively. Replace WindowPtr with WindowRef.
18145 Replace ControlHandle with ControlRef.
18146 (install_menu_quit_handler): Rename arg MENU_HANDLE to ROOT_MENU.
18147
18148 * macterm.c: Replace MenuHandle and GetMenuHandle with MenuRef and
18149 GetMenuRef, respectively. Replace WindowPtr with WindowRef.
18150 Replace ControlHandle with ControlRef.
18151 (USE_CARBON_EVENTS): Remove. Use TARGET_API_MAC_CARBON instead.
18152 [MAC_OS8] (do_get_menus): Rename variable `menu_handle' to `menu'.
18153
18154 * macterm.h (struct scroll_bar): Rename member control_handle_low
18155 and control_handle_high to control_ref_low and control_ref_high.
18156 All uses changed.
18157 (SCROLL_BAR_CONTROL_REF, SET_SCROLL_BAR_CONTROL_REF): Rename from
18158 SCROLL_BAR_CONTROL_HANDLE and SET_SCROLL_BAR_CONTROL_HANDLE,
18159 respectively. All uses changed.
18160 (XCreatePixmap, XCreatePixmapFromBitmapData, XSetWindowBackground)
18161 (install_window_handler, remove_window_handler): Replace WindowPtr
18162 with WindowRef in externs.
18163
181642007-06-05 Juanma Barranquero <lekktu@gmail.com>
18165
18166 * xfaces.c (Finternal_lisp_face_p): Signal error for face alias loops.
18167
181682007-06-03 Nick Roberts <nickrob@snap.net.nz>
18169
18170 * keyboard.c (discard_mouse_events): Add GPM_CLICK_EVENT case.
18171
18172 * frame.c (Fmouse_position, Fmouse_pixel_position):
18173 Condition on HAVE_GPM too.
18174
18175 * term.c (term_mouse_highlight): Remove unused variables.
18176 (Fterm_open_connection): Set gpm_zerobased to 1.
18177 (term_mouse_movement, term_mouse_click, handle_one_term_event):
18178 Use zero based co-ordinates.
18179 (handle_one_term_event): Report a drag as mouse movement too.
18180
18181 * Makefile.in (MOUSE_SUPPORT): Define for HAVE_GPM.
18182
181832007-06-03 Chong Yidong <cyd@stupidchicken.com>
18184
18185 * image.c (search_image_cache): New function. Require background
18186 color match if background color is unspecified in the image spec.
18187 (uncache_image, lookup_image): Use it.
18188
181892007-06-01 Juanma Barranquero <lekktu@gmail.com>
18190
18191 * window.c (Fshrink_window): Reflow docstring.
18192
181932007-06-02 Chong Yidong <cyd@stupidchicken.com>
18194
18195 * Version 22.1 released.
18196
181972007-06-01 Richard Stallman <rms@gnu.org>
18198
18199 * xfns.c (x_encode_text): Add GCPRO.
18200
182012007-06-01 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
18202
18203 * xfns.c (x_set_name_internal): Save encoded name before
18204 x_encode_text in case string data is relocated.
18205
182062007-05-31 Richard Stallman <rms@gnu.org>
18207
18208 * buffer.c (syms_of_buffer): Doc fix.
18209
182102007-05-30 Nick Roberts <nickrob@snap.net.nz>
18211
18212 * sysdep.c (init_sys_modes): Add rather than replace with
18213 O_NONBLOCK.
18214
18215 * frame.c [HAVE_GPM] (Fset_mouse_pixel_position): Add call to
18216 term_mouse_moveto.
18217
18218 * termhooks.h (term_mouse_moveto): New extern.
18219
18220 * term.c (mouse_face_window): Rename...
18221 (Qmouse_face_window): ...to this.
18222 (term_show_mouse_face, term_clear_mouse_face)
18223 (term_mouse_highlight): Use Qmouse_face_window.
18224 (term_mouse_moveto): New function.
18225 (term_mouse_position): Make it work.
18226 (syms_of_term): Uncomment assignment to mouse_position_hook.
18227 Staticpro Qmouse_face_window.
18228
182292007-05-28 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
18230
18231 * xdisp.c (redisplay_internal): Bind inhibit-point-motion-hooks to t
18232 around current_column call.
18233
182342007-05-26 Dan Nicolaescu <dann@ics.uci.edu>
18235
18236 * xfaces.c (syms_of_xfaces): Delete stray semicolon.
18237 * xdisp.c (next_element_from_buffer):
18238 * window.c (delete_window):
18239 * term.c (term_mouse_highlight):
18240 * msdos.c (getdefdir):
18241 * macterm.c (mac_create_bitmap_from_bitmap_data)
18242 (init_font_name_table):
18243 * fns.c (Fsxhash):
18244 * data.c (Fmake_local_variable):
18245 * ccl.c (ccl_driver): Likewise.
18246
182472007-05-24 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
18248
18249 * macterm.c [USE_CARBON_EVENTS] (mac_handle_window_event):
18250 Call mac_wakeup_from_rne on window size change.
18251
182522007-05-25 Chong Yidong <cyd@stupidchicken.com>
18253
18254 * image.c (uncache_image): Fix typo.
18255
182562007-05-23 Johannes Weiner <hannes@saeurebad.de> (tiny change)
18257
18258 * keyboard.c (make_lispy_movement): Condition on HAVE_GPM too.
18259
182602007-05-22 Richard Stallman <rms@gnu.org>
18261
18262 * xterm.c (x_connection_closed): Remove NO_RETURN.
18263
182642007-05-22 Martin Rudalics <rudalics@gmx.at>
18265
18266 * syntax.c (scan_words): Fix arg to UPDATE_SYNTAX_TABLE_BACKWARD.
18267
182682007-05-21 Chong Yidong <cyd@stupidchicken.com>
18269
18270 * image.c (uncache_image): New function.
18271 (Fimage_refresh): New function.
18272
182732007-05-20 Jan Djärv <jan.h.d@swipnet.se>
18274
18275 * Makefile.in: Move GPM check outside HAVE_X_WINDOWS.
18276
182772007-05-20 Nick Roberts <nickrob@snap.net.nz>
18278
18279 * config.in, keyboard.c, Makefile.in, sysdep.c, term.c,
18280 * termhooks.h: Use HAVE_GPM instead of HAVE_GPM_H.
18281
182822007-05-20 Nick Roberts <nickrob@snap.net.nz>
18283
18284 * keyboard.c (make_lispy_event): Make case GPM_CLICK_EVENT
18285 conditional on [HAVE_GPM_H].
18286
182872007-05-19 Stefan Monnier <monnier@iro.umontreal.ca>
18288
18289 * syntax.c (skip_chars): Update syntax-table only after we checked that
18290 the new location is valid.
18291
182922007-05-19 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
18293
18294 * macterm.c (x_calc_absolute_position): Add BLOCK_INPUT around
18295 mac_get_window_bounds.
18296
182972007-05-20 Nick Roberts <nickrob@snap.net.nz>
18298
18299 * Makefile.in (LIBGPM): Allow it to be set from configure.
18300 If set then link Emacs with it.
18301
18302 * config.in: Regenerate.
18303
18304 * lisp.h (add_gpm_wait_descriptor, delete_gpm_wait_descriptor):
18305 New externs.
18306
18307 * termhooks.h [HAVE_GPM_H] (enum event_kind): Add GPM_CLICK_EVENT.
18308 Include gpm.h.
18309 (handle_one_term_event, term_gpm): New externs.
18310
18311 * sysdep.c [HAVE_GPM_H] (init_sys_modes): Make gpm_fd nonblocking
18312 and allow it to be interrupted by SIGIO.
18313
18314 * process.c (gpm_wait_mask, max_gpm_desc): New variables.
18315 (wait_reading_process_output): Wait on gpm_fd too.
18316 (add_gpm_wait_descriptor, delete_gpm_wait_descriptor)): New functions.
18317 (add_gpm_wait_descriptor_called_flag): New variable.
18318 (delete_keyboard_wait_descriptor): Check gpm_wait_mask.
18319
18320 * keyboard.c [HAVE_GPM_H] (Qmouse_fixup_help_message)
18321 (make_lispy_movement, tracking_off, Ftrack_mouse, some_mouse_moved)
18322 (show_help_echo, readable_events, kbd_buffer_get_event, init_keyboard):
18323 Extend HAVE_MOUSE ifdefs to HAVE_GPM_H.
18324 (make_lispy_event): Add case GPM_CLICK_EVENT.
18325 (read_avail_input): Handle mouse input.
18326
18327 * term.c (write_glyphs_with_face): New function.
18328 [HAVE_GPM_H]: Include buffer.h, sys/fcntl.h.
18329 (mouse_face_beg_row, mouse_face_beg_col, mouse_face_end_row)
18330 (mouse_face_end_col, mouse_face_past_end, mouse_face_window)
18331 (mouse_face_face_id, term_gpm, pos_x, pos_y)
18332 (last_mouse_x, last_mouse_y): New variables.
18333 (term_show_mouse_face, term_clear_mouse_face, fast_find_position)
18334 (term_mouse_highlight, term_mouse_movement, term_mouse_position)
18335 (term_mouse_click, handle_one_term_event, Fterm_open_connection)
18336 (Fterm_close_connection): New functions.
18337 (term_init): Initialise mouse_face_window.
18338
183392007-05-19 Chong Yidong <cyd@stupidchicken.com>
18340
18341 * xdisp.c (redisplay_window): If first window line is a
18342 continuation line, recompute the new window start instead of
18343 recentering.
18344
183452007-05-18 Glenn Morris <rgm@gnu.org>
18346
18347 * m/alpha.h (ORDINARY_LINK): No longer define on OpenBSD.
18348 Suggested by Alfred M. Szmidt <ams@gnu.org>.
18349
183502007-05-17 Glenn Morris <rgm@gnu.org>
18351
18352 * m/macppc.h (ORDINARY_LINK): No longer define on OpenBSD.
18353
183542007-05-16 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
18355
18356 * macterm.c [USE_CARBON_EVENTS] (mac_convert_event_ref): Also convert
18357 dead key repeat and up events.
18358
183592007-05-14 Chong Yidong <cyd@stupidchicken.com>
18360
18361 * image.c (pbm_load): Check image size for monochrome pbm.
18362
183632007-05-13 Chong Yidong <cyd@stupidchicken.com>
18364
18365 * xterm.c (XTread_socket): Revert last change.
18366
183672007-05-12 Chong Yidong <cyd@stupidchicken.com>
18368
18369 * image.c (pbm_load): Correctly check image size for greyscale pbm.
18370
18371 * xterm.c (XTread_socket): Yet Another Uncaught X Error Crash (YAUXEC).
18372
183732007-05-07 Stefan Monnier <monnier@iro.umontreal.ca>
18374
18375 * editfns.c (Ftranspose_regions): Yet another int/Lisp_Object
18376 mixup (YAILOM).
18377
183782007-05-07 Andreas Schwab <schwab@suse.de>
18379
18380 * keymap.c (Flookup_key): Fix typo in last change.
18381
183822007-05-07 Stefan Monnier <monnier@iro.umontreal.ca>
18383
18384 * keymap.c (Fdefine_key, Flookup_key): Only do the 0x80->meta_modifier
18385 mapping for unibyte strings.
18386
183872007-05-01 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
18388
18389 * macmenu.c (mac_dialog_show): Apply 2007-04-27 change for xmenu.c.
18390 (Fx_popup_dialog) [MAC_OSX]: Likewise.
18391
183922007-04-29 Richard Stallman <rms@gnu.org>
18393
18394 * insdel.c (replace_range): For undo, record insertion first.
18395
183962007-04-29 Andreas Schwab <schwab@suse.de>
18397
18398 * lisp.h (VECSIZE): Use OFFSETOF.
18399
184002007-04-29 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
18401
18402 * xdisp.c (try_window_reusing_current_matrix): Fix number of
18403 disabled lines.
18404
184052007-04-28 Richard Stallman <rms@gnu.org>
18406
18407 * lread.c (read_escape): In a string, \s is always space.
18408
184092007-04-27 Jan Djärv <jan.h.d@swipnet.se>
18410
18411 * xmenu.c (xdialog_show): Call Fredisplay before showing the dialog.
18412
18413 * gtkutil.c (xg_update_menubar, create_menus): Create empty
18414 submenu for menu bar items.
18415
18416See ChangeLog.10 for earlier changes.
18417
18418;; Local Variables:
18419;; coding: utf-8
18420;; add-log-time-zone-rule: t
aac0c6e3
MR
18421;; End:
18422
76b6f707 18423 Copyright (C) 2007, 2008, 2009 Free Software Foundation, Inc.
aac0c6e3
MR
18424
18425 This file is part of GNU Emacs.
18426
18427 GNU Emacs is free software: you can redistribute it and/or modify
18428 it under the terms of the GNU General Public License as published by
18429 the Free Software Foundation, either version 3 of the License, or
18430 (at your option) any later version.
18431
18432 GNU Emacs is distributed in the hope that it will be useful,
18433 but WITHOUT ANY WARRANTY; without even the implied warranty of
18434 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
18435 GNU General Public License for more details.
18436
18437 You should have received a copy of the GNU General Public License
18438 along with GNU Emacs. If not, see <http://www.gnu.org/licenses/>.
18439
18440;; arch-tag: dfb6ad96-1550-4905-9e53-d2059ee84c40