(create_process): Clean up merger residues of 2008-07-17 change.
[bpt/emacs.git] / src / ChangeLog
CommitLineData
c3c963a0
YM
12009-04-29 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
2
3 * atimer.c (init_atimer): Also clear stopped_atimers.
4
5 * keyboard.c (init_keyboard) [POLL_FOR_INPUT]: Reset poll_timer.
6
7e3386cb
YM
7 * process.c (create_process): Clean up merger residues of
8 2008-07-17 change.
9
91f68422
CY
102009-04-29 Ulrich Mueller <ulm@gentoo.org>
11
12 * lread.c (Vread_circle): New variable.
13 (read1): Disable recursive read if Vread_circle is nil.
14
24b34550
KH
152009-04-29 Kenichi Handa <handa@m17n.org>
16
17 * fontset.h (set_default_ascii_font): Delete extern.
18
19 * fontset.c (set_default_ascii_font): Delete this unused function.
20
21 * frame.c (x_set_font): When ARG is a font-object, check if the
22 font-object matches with the ASCII font-spec of the frame's
23 fontset. If not, create a new fontset for the frame.
24
77bf07e1
AS
252009-04-28 Andreas Schwab <schwab@linux-m68k.org>
26
27 * fns.c (Flocale_info): Protect vector from GC during decoding.
28
29 * process.c (Fstart_process): Protect argv strings from GC during
30 encoding.
31
2c55aacf
AS
322009-04-27 Andreas Schwab <schwab@linux-m68k.org>
33
34 * sysdep.c: Include <ctype.h>.
35
b892d3c9
DR
362009-04-27 David Reitter <david.reitter@gmail.com>
37
38 * nsfont.m (nsfont_open): remove unused variable shrink.
39 Remove commented-out code.
40
9d0644c4
JB
412009-04-26 Johan Bockgård <bojohan@gnu.org>
42
43 * keyboard.c (syms_of_keyboard) <input-decode-map>: Doc fix.
44
b7053016
JR
452009-04-25 Jason Rumney <jasonr@gnu.org>
46
47 * w32font.c (clear_cached_metrics): Remove, unused since 2008-08-02.
48
4e8231f3
YM
492009-04-25 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
50
51 * fringe.c (init_fringe_bitmap) [HAVE_X_WINDOWS && WORDS_BIG_ENDIAN]:
52 Swap bytes in short integer if fringe bitmap width > 8.
53
493dcf2c
KH
542009-04-23 Kenichi Handa <handa@m17n.org>
55
56 * xfaces.c (Fx_list_fonts): If a font size is specified in
57 PATTERN, set it in returned scalable fonts.
58
401e9e57
CY
592009-04-22 Chong Yidong <cyd@stupidchicken.com>
60
708e05dc
CY
61 * keyboard.c (Fset_input_meta_mode): Doc fix.
62
63 * dispnew.c (Fsend_string_to_terminal): Doc fix.
64
65 * data.c (Fterminal_local_value, Fset_terminal_local_value): Doc
66 fixes.
67
68 * coding.c (Fterminal_coding_system): Doc fix.
69
70 * xfns.c (Fx_display_grayscale_p, Fx_display_pixel_width)
71 (Fx_display_pixel_height, Fx_display_planes)
72 (Fx_display_color_cells, Fx_server_max_request_size)
73 (Fx_server_vendor, Fx_server_version, Fx_display_screens)
74 (Fx_display_mm_height, Fx_display_mm_width)
75 (Fx_display_backing_store, Fx_display_visual_class)
76 (Fx_display_save_under, Fx_close_connection, Fx_synchronize): Doc
77 fixes, replacing "terminal id" with "terminal object".
78 (check_x_display_info): Handle terminal objects instead of
79 terminal ids.
80
401e9e57
CY
81 * term.c (Ftty_display_color_p, Ftty_display_color_cells)
82 (Ftty_type, Fcontrolling_tty_p, Ftty_no_underline, Fsuspend_tty)
fdc496e7
CY
83 (Fresume_tty, Vsuspend_tty_functions, Vresume_tty_functions): Doc
84 fixes, replacing "terminal id" with "terminal object".
401e9e57 85
df80c7f0
KH
862009-04-21 Kenichi Handa <handa@m17n.org>
87
5a8f12af 88 * font.c (font_load_for_lface): Cancel previous change (bug#2994).
c0a6070d 89 (font_score): Check AVGWIDTH too.
908567ef 90
df80c7f0
KH
91 * coding.c (decode_coding_utf_16): Reduce charbuf_end for the
92 worst case.
93 (decode_coding_emacs_mule, decode_coding_iso_2022)
94 (decode_coding_sjis, decode_coding_big5, decode_coding_charset):
95 Likewise.
96
705af33f
JR
972009-04-19 Jason Rumney <jasonr@gnu.org>
98
99 The following changes fix Bug#3005 for wide glyphs on each platform,
b71ac3dd 100 without reintroducing Bug#1258 for stretch glyphs.
705af33f
JR
101
102 * xterm.c (x_draw_bar_cursor): Limit cursor width differently for
103 BAR_CURSOR and HBAR_CURSOR. Calculate width of HBAR_CURSOR using
104 get_phys_cursor_geometry.
105
b71ac3dd 106 * w32term.c (x_draw_bar_cursor): Limit cursor width differently
705af33f
JR
107 for BAR_CURSOR and HBAR_CURSOR. Calculate width of HBAR_CURSOR
108 using get_phys_cursor_geometry.
109
110 * nsterm.m (ns_draw_window_cursor): HBAR_CURSOR width already
111 correctly calculated.
112
dc2933eb
JD
1132009-04-19 Jan Djärv <jan.h.d@swipnet.se>
114
115 * gtkutil.c (xg_tool_bar_menu_proxy, update_frame_tool_bar): Use
116 G_CALLBACK instead of GTK_SIGNAL_FUNC which is deprecated.
117 (xg_initialize): Use g_type_class_ref instead of gtk_type_class which
118 is deprecated.
119
973e7849
AS
1202009-04-18 Andreas Schwab <schwab@linux-m68k.org>
121
122 * font.c (font_put_frame_data): Use xfree instead of free.
123
314d66f4
JB
1242009-04-17 Juanma Barranquero <lekktu@gmail.com>
125
126 * w32font.c (Qja, Qko): Remove declarations.
127 (syms_of_w32font): Don't DEFSYM them.
128
cf702558
CY
1292009-04-17 Chong Yidong <cyd@stupidchicken.com>
130
131 * font.c (Qja, Qko): Move definitions here from ftfont.c.
132
133 * font.h (Qja, Qko): Extern them.
134
135 * ftfont.c (Qja, Qko): Remove declarations.
136
137 * xfont.c (Qja, Qko): Remove declarations.
138
b50504f5
KH
1392009-04-17 Kenichi Handa <handa@m17n.org>
140
bde25748
KH
141 * editfns.c (Ftranslate_region_internal): Use Fconcat to make a
142 string from a vector to handle Latin-1 characters correctly.
143
b50504f5
KH
144 * ftfont.c (ftfont_pattern_entity): Return a newly allocated
145 entity even if the cache hits.
146
f4646fff
AS
1472009-04-16 Andreas Schwab <schwab@linux-m68k.org>
148
149 * search.c (boyer_moore): Use zero as marker value for a possible
6340c70e 150 match instead of depending on overflow behavior. (Bug#2844)
f4646fff 151
e7deaab0
AS
152 * search.c: Use EMACS_INT for buffer positions. Add prototypes.
153 * lisp.h: Adjust prototypes.
154
0a0e7d49
CY
1552009-04-16 Chong Yidong <cyd@stupidchicken.com>
156
157 * keyboard.c (adjust_point_for_property): Disable 2009-02-12
158 change (Bug#3003).
159
3c908a57
KH
1602009-04-16 Kenichi Handa <handa@m17n.org>
161
bd0af90d
KH
162 * xfont.c (xfont_has_char): Special handling of `ja' and `ko'
163 adstyle.
164
165 * xftfont.c (xftfont_has_char): Special handling of `ja' and `ko'
166 adstyle.
167
168 * ftfont.c (Qja, Qko): Don't make them static.
169 (enum ftfont_cache_for): New enum.
170 (fc_charset_table): Undo the previous change.
171 (ftfont_get_latin1_charset): Delete it.
172 (ftfont_pattern_entity): Check cache by ftfont_lookup_cache. Set
173 FONT_SIZE_INDEX of the entity to 0 for a scalable font. For a
174 non-scarable font, try to get AVERAGE_WIDTH.
175 (ftfont_lookup_cache): Argument FOR-FACE is changed to CACHE_FOR.
176 Change ft_face_cache from a list of a hash-table. Don't check
177 `ja' and `ko' adstyle here.
178 (ftfont_get_fc_charset): Call ftfont_lookup_cache with
179 FTFONT_CACHE_FOR_CHARET.
180 (ftfont_get_charset): Undo the previous change.
181 (ftfont_open): Call ftfont_lookup_cache with
182 FTFONT_CACHE_FOR_FACE.
183 (ftfont_close): Likewise.
184 (ftfont_has_char): Special handling of `ja' and `ko' adstyle.
185
186 * font.c (font_sort_entites): Change the meaning of the arg
187 BEST-ONLY. Don't optimize for VEC of lenght 1.
188 (font_select_entity): Just return the value of font_sort_entites.
189
190 * xfaces.c (merge_face_vectors): Reflect font properties in
191 to[LFACE_FONT_INDEX] to the other face attributes. Don't call
192 font_clear_prop if a face attribute doesn't change.
193
3c908a57
KH
194 * charset.h (charset_ksc5601): Extern it.
195
196 * charset.c (charset_ksc5601): New variable.
197 (Fdefine_charset_internal): Set charset_ksc5601.
198 (init_charset_once): Initialize charset_ksc5601 to -1.
199
d65859c3
DN
2002009-04-15 Dan Nicolaescu <dann@ics.uci.edu>
201
202 * fileio.c (history_delete_duplicates): Remove unused declaration.
203
204 * callint.c (history_delete_duplicates): New declaration.
205 (Fcall_interactively): Remove command history duplicates when
206 history_delete_duplicates is true.
207
3ba010e5
EZ
2082009-04-14 Eli Zaretskii <eliz@gnu.org>
209
210 * buffer.c (syms_of_buffer) <line-spacing>: Doc fix.
211
06f19b91
KH
2122009-04-14 Kenichi Handa <handa@m17n.org>
213
214 * font.c (Ffont_info): Fix docstring. Fix the second element of
215 the returned value (bug#2949).
216
2cce8bfc
CY
2172009-04-14 Chong Yidong <cyd@stupidchicken.com>
218
219 * xdisp.c (Vwrap_prefix, Vline_prefix): Reflow docstrings.
220
d156542d
KH
2212009-04-14 Kenichi Handa <handa@m17n.org>
222
223 * xfont.c (xfont_has_char): The font has C if C is ASCII and the
224 encoding charset is ascii_compatible.
225
226 * charset.c (Fdefine_charset_internal): Make charset
227 ascii-compatible if the method is CHARSET_METHOD_OFFSET, the
228 code_offset is 0, and covers all ASCII characters.
229
86fa089e
SM
2302009-04-13 Stefan Monnier <monnier@iro.umontreal.ca>
231
232 * nsselect.m (symbol_to_nsstring, clean_local_selection_data)
233 (ns_string_to_pasteboard_internal):
234 * nsmenu.m (process_dialog):
235 * nsimage.m (ns_load_image): Use SDATA and ASET where appropriate.
236 * nsfont.m (nsfont_open): Use XHASH to make it compile with LISP_UNION.
237 * lisp.h (Fx_load_color_file): Declare.
238
a8a3728b
KH
2392009-04-13 Kenichi Handa <handa@m17n.org>
240
241 * font.c (font_delete_unmatched): Preserve the order of list
242 elements.
243 (font_select_entity): Suppress the code to optimize for the same
244 kind of fonts.
245 (font_load_for_lface): Get a font that supports at least ASCII
246 characters.
247
248 * ftfont.c (Qja, Qko): New variables.
249 (fc_charset_table): Delete uniquifier data for iso8859-1.
250 (ftfont_get_latin1_charset): New function.
251 (get_adstyle_property): New function.
252 (ftfont_pattern_entity): Set FONT_ADSTYLE_INDEX of entity for
253 bitmap fonts.
254 (ftfont_lookup_cache): Handle the case that KEY is a font-entity.
255 Delete iso-8859-1 range from the charset of fonts whose adstyle is
256 `ko' or `ja'.
257 (ftfont_get_fc_charset): Call ftfont_lookup_cache with ENTITY.
258 (ftfont_get_charset): For iso8859-1, call
259 ftfont_get_latin1_charset.
260 (ftfont_list): Don't refuse a font spec with non-nil `adstyle'
261 property.
262 (ftfont_open): Call ftfont_lookup_cache with ENTITY.
263 (syms_of_ftfont): DEFSYM Qja and Qko.
264
483670b5
KH
2652009-04-09 Kenichi Handa <handa@m17n.org>
266
12b55765
KH
267 * charset.c (map_charset_chars): For a charset of `superset'
268 method, fix calculation of code range.
269
483670b5
KH
270 * font.c (font_put_extra): If VAL is nil, delete the slot for PROP
271 from the list of extra properties.
272 (font_clear_prop): Be sure to delete `:name' font property.
273
57d3b93b
KH
2742009-04-08 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
275
b4b2c2ca
YM
276 * dispnew.c (redraw_overlapping_rows): Fix detection of
277 overlapping for topmost and bottommost rows.
278
57d3b93b
KH
279 * ftfont.c (ftfont_text_extents): Fix calculation of
280 metrics->descent.
281
472c3609
JR
2822009-04-06 Jason Rumney <jasonr@gnu.org>
283
284 * frame.c (x_set_font): Avoid C99 mid-block variable declaration.
285
ab193662
KH
2862009-04-06 Kenichi Handa <handa@m17n.org>
287
288 * ftxfont.c (ftxfont_draw_backgrond): Fix args to XFillRectangle.
289
290 * xftfont.c (xftfont_open): Fix setting font->underline_thickness.
291
0c26f026
KH
2922009-04-06 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
293
294 * ftfont.c (ftfont_open): Fix checking of the return value of
295 FT_Load_Char. Fix setting font->underline_thickness.
296
e173bbce
CY
2972009-04-04 Chong Yidong <cyd@stupidchicken.com>
298
299 * terminal.c (Fterminal_name, Fdelete_terminal, Fterminal_name)
300 (Fterminal_parameters, Fterminal_parameter)
301 (Fset_terminal_parameter): In doc string, refer to terminal
302 objects rather than terminal ids.
303
693a2698
EZ
3042009-04-04 Eli Zaretskii <eliz@gnu.org>
305
306 * dosfns.c (system_process_attributes) [SYSTEM_MALLOC]: Don't call
307 ret_lim_data. (Bug#2867)
308
d5221487
CY
3092009-04-03 Chong Yidong <cyd@stupidchicken.com>
310
311 * term.c (produce_stretch_glyph): Reduce width of stretch glyphs
312 so they don't get wider than the window, matching 2006-01-23
313 change to the partner function in xdisp.c (Bug#2800).
314
223509a3
KH
3152009-04-03 Kenichi Handa <handa@m17n.org>
316
317 * print.c (print_object): Make each lowest sub_char_table start a
318 new line (Bug#2866).
319
74fcd0b1
KH
3202009-04-02 Kenichi Handa <handa@m17n.org>
321
322 * fontset.c (fontset_font): Record no-font when a fontset
323 explicitly tells not to try another font-specs.
324
c542407d
SM
3252009-03-30 Pierre Poissinger <pierre.poissinger@gmail.com> (tiny change)
326
327 * charset.c (map_charset_for_dump): Add missing UNGCPRO.
328
e3869731
KH
3292009-03-30 Kenichi Handa <handa@m17n.org>
330
d8d2f142
KH
331 * fontset.c (fontset_from_font): Specify only registry in a
332 font-spec for all characters supported by that registry.
333
e3869731
KH
334 * ftfont.c: Fix previous change. Define ftfont_variation_glyphs
335 even if HAVE_M17N_FLT is not defined.
336
5da5f805
CY
3372009-03-29 Sebastian Rose <sebastian_rose@gmx.de> (tiny change)
338
339 * ftfont.c: Conditionalize prototyping and use of
340 ftfont_variation_glyphs.
341
ab226c50
SM
3422009-03-28 Stefan Monnier <monnier@iro.umontreal.ca>
343
9628fed7
SM
344 * frame.c (delete_frame): Work around compiler bug.
345
346 * editfns.c (general_insert_function): Adjust to insdel.c changes.
347 * insdel.c (prepare_to_modify_buffer, signal_before_change):
348 Some more EMACS_INT.
349 * lisp.h (copy_text, count_size_as_multibyte): Fix last change.
350
351 * xdisp.c (dump_glyph): Fix typo.
352
ae19ba7c
SM
353 * insdel.c (move_gap, move_gap_both, gap_left, gap_right)
354 (adjust_markers_gap_motion, adjust_markers_for_delete)
355 (adjust_markers_for_insert, adjust_point)
356 (adjust_markers_for_replace, make_gap_larger, make_gap_smaller)
357 (make_gap, copy_text, count_size_as_multibyte, insert)
358 (insert_and_inherit, insert_before_markers)
359 (insert_before_markers_and_inherit, insert_1)
360 (count_combining_before, count_combining_after, insert_1_both)
361 (insert_from_string, insert_from_string_before_markers)
362 (insert_from_string_1, insert_from_gap, insert_from_buffer)
363 (insert_from_buffer_1, adjust_after_replace)
364 (adjust_after_replace_noundo, adjust_after_insert, replace_range)
365 (replace_range_2, del_range, del_range_1, del_range_byte)
366 (del_range_both, del_range_2, modify_region)
367 (prepare_to_modify_buffer, signal_before_change)
368 (signal_after_change, Fcombine_after_change_execute): Use EMACS_INT
369 for buffer positions and sizes.
370 * lisp.h: Adjust prototypes accordingly.
371
372 * fileio.c (adjust_markers_for_delete): Move declaration to lisp.h.
373 (non_regular_inserted, non_regular_nbytes, read_non_regular)
374 (Finsert_file_contents): Use EMACS_INT for buffer positions.
375
ab226c50
SM
376 * fileio.c (Finsert_file_contents): Don't limit size to INT_MAX/4.
377
46dfb8fb
JD
3782009-03-27 Jan Djärv <jan.h.d@swipnet.se>
379
380 * frame.c (x_set_font): If the fullscreen property is non-nil, adjust
381 lines and columns so we keep the same pixel height and width.
382
383 * xterm.c (handle_one_xevent): Call x_handle_net_wm_state if
384 the property _NET_WM_STATE has changed.
46dfb8fb
JD
385 (x_handle_net_wm_state): New function to update frame parameter
386 fullscreen.
387 (x_term_init): Initialize atoms for _NET_WM_STATE.
388
389 * xterm.h (struct x_display_info): Add atoms for _NET_WM_STATE.
390
d347e494
SM
3912009-03-27 Kevin Ryde <user42@zip.com.au>
392
393 * keyboard.c (tty_read_avail_input): Don't treat a -1 return from
394 Gpm_GetEvent as an error that justifies closing the filedescriptor.
395 * term.c (close_gpm): Get the filedescriptor as a (new) parameter.
396 (Fgpm_mouse_stop): Pass that new parameter.
397 * termhooks.h (close_gpm): Adjust prototype.
398
84db11d6
SM
3992009-03-26 Stefan Monnier <monnier@iro.umontreal.ca>
400
c95a5008
SM
401 * lisp.h (Fx_focus_frame): Declare.
402
84db11d6
SM
403 * callint.c (Fcall_interactively): For '^' just delegate the work to
404 handle-shift-selection.
405 (syms_of_callint): Move declaration of shift-select-mode to simple.el.
406
0a1958d6
CY
4072009-03-24 Chong Yidong <cyd@stupidchicken.com>
408
0bfdff23
CY
409 * editfns.c (Ffloat_time): Doc fix (Bug#2768).
410
0a1958d6
CY
411 * data.c (Qinteractive_form): New variable.
412 (Finteractive_form): Use it.
413
414 * eval.c (Fcommandp): Use Qinteractive_form.
415
58aec0d6
JR
4162009-03-24 Jason Rumney <jasonr@gnu.org>
417
418 * fileio.c (Fsubstitute_in_file_name): Always work on a copy.
419 Calculate total size precisely. Decode environment variables
420 before substituting. (Bug#38)
421
553dd618
KH
4222009-03-24 Kenichi Handa <handa@m17n.org>
423
424 * font.c (find_font_encoding): Return Qnil for unsupported
639239cf 425 encoding (Bug#2722).
553dd618 426
c39ea606
JD
4272009-03-23 Jan Djärv <jan.h.d@swipnet.se>
428
429 * gtkutil.c (xg_display_open): Assign a value to gdpy_def, check
430 that gdpy is set.
431
bc9b2b5e
AM
4322009-03-22 Alan Mackenzie <acm@muc.de>
433
434 * callint.c (Finteractive): Clarify the doc string - even
435 promptless elements need \n separators.
436
9f995a76
JR
4372009-03-22 Jason Rumney <jasonr@gnu.org>
438
439 * w32term.c (syms_of_w32term): Doc fix for
440 x-use-underline-position-properties.
441
22749e9a
EZ
4422009-03-21 Eli Zaretskii <eliz@gnu.org>
443
444 * w32.c (getpwuid): Change argument type to unsigned.
445 (struct w32_id): Change type of `rid' member to unsigned.
446 (w32_cached_id, w32_add_to_cache, get_name_and_id): Change type of
447 argument ID to unsigned. All callers changed.
448 (getuid, geteuid, getgid, getegid): Change return type to unsigned.
449
e00553bf
EZ
4502009-03-20 Eli Zaretskii <eliz@gnu.org>
451
452 * editfns.c (Fuser_uid, Fuser_real_uid): If UID as EMACS_INT is
453 negative, produce a float value.
454
455 * dired.c (make_uid, make_gid): New functions.
456 (Ffile_attributes): Use them to avoid negative UID and GID.
457
f761d6b6
JB
4582009-03-20 Juanma Barranquero <lekktu@gmail.com>
459
460 * keyboard.c (Fcurrent_idle_time): Reflow docstring.
461 (syms_of_keyboard) <command-hook-internal, input-method-function>:
462 Fix typos in docstrings.
463
d507f8d7
KH
4642009-03-19 Kenichi Handa <handa@m17n.org>
465
466 * fontset.c (Fset_fontset_font): When a spec of ASCII font is
f761d6b6
JB
467 changed, use font_load_for_lface to get a new font object.
468 Call free_realized_fontset after handling ASCII font change.
d507f8d7
KH
469
470 * frame.c (x_set_font): Handle the case that ARG is a cons.
471
c68845e0
GM
4722009-03-19 Glenn Morris <rgm@gnu.org>
473
474 * fileio.c (Fsubstitute_in_file_name): Doc fix.
475
bfa49dd1
CY
4762009-03-19 Chong Yidong <cyd@stupidchicken.com>
477
478 * indent.c (Fvertical_motion): Undo 2005-01-19 change (Bug#2694).
479
8458d4c1
KH
4802009-03-19 Kenichi Handa <handa@m17n.org>
481
482 * charset.c (load_charset_map_from_file): When a mapfile can't be
483 loaded, signal an error.
484
78e7d1fe
EZ
4852009-03-18 Eli Zaretskii <eliz@gnu.org>
486
487 * dired.c (Ffile_attributes): Make sure UID and GID are always
488 positive, even if the value is too large for a positive EMACS_INT.
489 Doc fix.
490
491 * editfns.c (Fuser_login_name): Support float arguments. Doc fix.
492
5da9fdfa
YM
4932009-03-18 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
494
495 * xmenu.c (xdialog_show): Move Fredisplay call ...
496 (Fx_popup_dialog): ... here.
497
7519c40d
SM
4982009-03-18 Stefan Monnier <monnier@iro.umontreal.ca>
499
500 * dired.c (file_name_completion): Disable the first optimization just
501 installed, since it is not implemented correctly.
502
2cd298e2
SM
5032009-03-17 Stefan Monnier <monnier@iro.umontreal.ca>
504
505 * dired.c (file_name_completion): Check completion-ignored-extensions
c95a5008 506 only if the entry can affect bestmatch.
2cd298e2
SM
507 Stop the search early, as Ftry_completion already does.
508
48d37adf
CY
5092009-03-17 Chong Yidong <cyd@stupidchicken.com>
510
e10c9c93 511 * minibuf.c (Vminibuffer_completion_confirm): Doc fix.
48d37adf 512
9286b16a
CY
5132009-03-15 Chong Yidong <cyd@stupidchicken.com>
514
515 * keyboard.c (parse_menu_item): Don't display remappings as menu
516 equivalent bindings (Bug#788).
517
f7b146dc
JR
5182009-03-15 Jason Rumney <jasonr@gnu.org>
519
520 * w32term.h (WM_EMACS_PAINT): New message.
521 * w32term.c (w32_read_socket): Use it instead of WM_PAINT.
522 * w32fns.c (w32_wnd_proc): Change WM_PAINT to WM_EMACS_PAINT
523 before passing to lisp thread. (Bug#950)
524
f761d6b6 5252009-03-14 David Reitter <david.reitter@gmail.com>
c6c62e78 526
d93f9575
CY
527 * nsterm.m (ns_shutdown_properly, -terminate): Remove global state
528 variable as it was never reset.
529 (ns_term_init): Remove initialization of Lisp-settable defaults
530 and ns_expand_space.
531 (-setPanelFromDefaultValues): Remove ns_expand_space.
532 (-showPreferencesWindow): Send new KEY_NS_SHOW_PREFS key.
533 * nsfont.m (nsfont_open): Remove ns_expand_space, assume -0.5
c6c62e78
DR
534 i.e. no additional spacing, similar to Carbon port.
535
d93f9575
CY
536 * nsterm.h: Define KEY_NS_SHOW_PREFS key.
537 * nsfns.m (ns-popup-prefs-panel): Remove.
c6c62e78 538
305018ec
JD
5392009-03-14 Jan Djärv <jan.h.d@swipnet.se>
540
541 * sound.c (alsa_configure): Remove call to deprecated
542 snd_pcm_sw_params_set_xfer_align.
543
f761d6b6 5442009-03-14 Stephen Berman <stephen.berman@gmx.net>
4a02423f
JD
545
546 * gtkutil.c (xg_tool_bar_callback): Set focus back to the frame
547 after clicking in a detached tool bar.
548 (xg_tool_bar_proxy_callback): Remove call to Fx_focus_frame.
549
46e722a9
SM
5502009-03-13 Stefan Monnier <monnier@iro.umontreal.ca>
551
348db3dd
SM
552 * fontset.c (fontset_from_font, Ffontset_info): YAILOM (Yet another
553 int/Lisp_Object mixup).
46e722a9 554
a3d16f39
KH
5552009-03-13 Kenichi Handa <handa@m17n.org>
556
557 * fontset.c (Ffontset_info, check_fontset_name): New arg frame.
fe24f56a 558 Handle NAME nil and t correctly. Callers changed.
a3d16f39
KH
559 (font_def_arg, add_arg, from_arg, to_arg): Delete them.
560 (set_fontset_font): Change ARG to a vector. Handle range_list in
561 ARG correctly.
562 (Fset_fontset_font): Fix the case that TARGET is both a script
fe24f56a 563 name and charset name. Adjust the arg to set_fontset_font for
a3d16f39
KH
564 the above change.
565 (fontset_from_font): Fix previous change.
fe24f56a 566 (Ffontset_info): Adjust for the 2008-07-09 change of fontset
a3d16f39
KH
567 entry. If FONTSET is the default fontset, don't set the extra
568 slot of the returning char-table.
569
b066e6b6
JB
5702009-03-12 Juanma Barranquero <lekktu@gmail.com>
571
572 * nsfns.m (Fx_close_connection): Doc fix.
573 (Fns_do_applescript): Reflow docstring.
574 (Fns_hide_others, Fns_hide_emacs, Fns_convert_utf8_nfd_to_nfc)
575 (Fx_display_pixel_width, Fx_display_pixel_height)
576 (Fns_display_usable_bounds, Fx_display_planes, Fx_show_tip):
577 Fix typos in docstrings.
578 (Fns_set_alpha): Fix typos in error messages.
579
d472514e 5802009-03-12 David Reitter <david.reitter@gmail.com>
d6220c13 581
d472514e 582 * termhooks.h [HAVE_NS]: Define NS_NONKEY_EVENT to be used for
d6220c13
DR
583 non-key system events on NS. Formerly, NON_ASCII_KEYSTROKE_EVENT
584 were used for such events.
585
d472514e
JB
586 * nsterm.m (newFrame, openFile, fulfillService, changeFont)
587 (toggleToolbar, performDragOperation, runHelp): Use it.
d6220c13 588
d472514e 589 * keyboard.c (parse_menu_item) [HAVE_NS]: Treat new event like
d6220c13
DR
590 NON_ASCII_KEYSTROKE_EVENT, but set used_mouse_menu.
591
fb930676
KH
5922009-03-11 Kenichi Handa <handa@m17n.org>
593
ff85581a
KH
594 * font.h (font_open_by_spec): Extern it.
595
c50b7e98
KH
596 * font.c (font_open_by_spec): New function.
597 (font_open_by_name): Use font_open_by_spec.
598
fb930676
KH
599 * frame.c (x_set_font): When ARG is a font-object, don't alter the
600 fontset of the frame.
601
602 * fontset.c (Fset_fontset_font): When a font for ASCII is changed,
603 modify the default font of frames that use this fontset.
604 (num_auto_fontsets): New variable.
605 (fontset_from_font): Use num_auto_fontsets to decide a fontset
606 name. Be sure to set FONTSET_ASCII to the correct font name.
607 (update_auto_fontset_alist): New function.
608
df4e8455
JB
6092009-03-11 Juanma Barranquero <lekktu@gmail.com>
610
611 * makefile.w32-in: Update dependencies.
612
0a375797
AR
6132009-03-06 Adrian Robert <Adrian.B.Robert@gmail.com>
614
615 * nsfns.m (syms_of_nsfns): Remove Qbuffered.
616
61313fa3
SM
6172009-03-10 Stefan Monnier <monnier@iro.umontreal.ca>
618
619 * buffer.c (Fswitch_to_buffer): Revert part of 2008-10-21's change.
620
b55103fb
CY
6212009-03-10 Chong Yidong <cyd@stupidchicken.com>
622
623 * lread.c (Feval_buffer): Doc fix.
624
dde2559c
KH
6252009-03-09 Kenichi Handa <handa@m17n.org>
626
627 * charset.c (Qfile_name_handler_alist): Extern it.
628 (load_charset_map_from_file): Temporarily bind
629 `file-name-handler-alist' to nil while calling openp. (Bug#2435)
630
df4e8455 6312009-03-06 Aaron Ecay <aaronecay@gmail.com> (tiny change)
340e08a4 632
47f588bb
GM
633 * nsterm.m (ns_draw_vertical_window_border): Draw 1 pixel wide,
634 not two, and use NSRectFill instead of NSDrawGroove. (Bug#2352)
340e08a4 635
4ddf94bd
AR
6362009-03-06 Adrian Robert <Adrian.B.Robert@gmail.com>
637
4c9bdfc2
AR
638 * nsterm.m: Include <signal.h> for SIGTERM used in ns_term_shutdown.
639 (x_set_window_size): Change back to calculated method of setting
640 toolbar height under Cocoa. (Bug#2546)
4ddf94bd
AR
641 (EmacsView-windowWillUseStandardFrame:defaultFrame:): New method.
642 (EmacsView-drawRect:): Completely shortcircuit if ns_in_resize.
643
fe41ae9e
AR
644 * nsfns.m (ns_appkit_version_int): Fix typo in the version macro.
645
4c9bdfc2
AR
646 * nsmenu.m (EmacsMenu-addItemWithWidgetValue:): Don't add
647 accelerator in parens under GNUstep.
648
825d0875
KH
6492009-03-06 Kenichi Handa <handa@m17n.org>
650
651 These changes are to detect incorrect composition sequence without
f3b3be74 652 looking ahead the source. (Bug#2370)
825d0875
KH
653
654 * coding.h: Include "composite.h".
655 (enum compisition_state): New enum.
656 (struct compisition_status): New struct.
657 (struct iso_2022_spec): New member cmp_status.
658 (struct emacs_mule_spec): New struct.
659 (struct coding_system): New members ctext_extended_segment_len and
660 embedded_utf_8. Change the union member
661 spec.emacs_mule_full_support to spec.emacs_mule.
662
663 * coding.c (CODING_ISO_CMP_STATUS): New macro.
664 (CODING_ISO_EXTSEGMENT_LEN, CODING_ISO_EMBEDDED_UTF_8): New macros.
98a326f7 665 (MAX_ANNOTATION_LENGTH): Define to 5.
825d0875
KH
666 (ADD_COMPOSITION_DATA): New arg nbytes.
667 (emacs_mule_char): New arg cmp_status.
668 (DECODE_EMACS_MULE_COMPOSITION_CHAR): Delete it.
669 (DECODE_EMACS_MULE_COMPOSITION_RULE_20): New arg c.
670 (DECODE_EMACS_MULE_COMPOSITION_RULE_21): New arg c.
671 (DECODE_EMACS_MULE_21_COMPOSITION): Delete the arg c.
672 (DECODE_EMACS_MULE_20_RELATIVE_COMPOSITION): Likewise.
673 (DECODE_EMACS_MULE_20_RULEBASE_COMPOSITION): Likewise.
674 (DECODE_EMACS_MULE_COMPOSITION_START): New macro.
675 (EMACS_MULE_COMPOSITION_END): New macro.
676 (emacs_mule_finish_composition): New function.
677 (EMACS_MULE_MAYBE_FINISH_COMPOSITION): New macro.
678 (decode_coding_emacs_mule): Avoid long looking ahead while
679 handling composition.
680 (DECODE_COMPOSITION_RULE): Argument changed to rule and nbytes.
681 (ENCODE_COMPOSITION_RULE): New macro.
682 (finish_composition): New function.
683 (MAYBE_FINISH_COMPOSITION): Call finish_composition.
684 (DECODE_COMPOSITION_START): New implementation.
685 (DECODE_COMPOSITION_END): Likewise.
686 (STORE_COMPOSITION_RULE): New macro.
687 (decode_coding_iso_2022): Avoid long looking ahead while handling
688 composition, CTEXT extended segment, and embedded UTF-8.
689 (setup_coding_system): For a coding of type iso-2022, reset
690 CODING_ISO_EXTSEGMENT_LEN (coding) and
691 CODING_ISO_EMBEDDED_UTF_8 (coding).
692 (get_translation): Delete arguments last_block, from_nchars,
693 to_nchars. Callers changed.
694 (produce_chars): Don't modify charbuf. Adjusted for the change of
695 get_translation.
98a326f7 696 (produce_composition): Adjust for the new annotation sequence.
825d0875 697 (handle_composition_annotation): Likewise.
98a326f7 698 (consume_chars): Adjust for the change of get_translation.
825d0875 699
ccbc4452
AR
7002009-03-05 Adrian Robert <Adrian.B.Robert@gmail.com>
701
4ddf94bd 702 * nsterm.m (ns_select): Shortcircuit if reentrant call. (Bug#2564)
ccbc4452 703
988a7ddb
KH
7042009-03-05 Kenichi Handa <handa@m17n.org>
705
706 * font.c (font_select_entity): New function.
707 (font_find_for_lface): Use font_select_entity to select a font.
708
709 * fontset.c (fontset_find_font): If a font found without
a8a3728b 710 restricting to the characters C doesn't support C, try to find a
988a7ddb
KH
711 font with C restriction.
712
98a326f7 7132009-03-04 Nikolaj Schumacher <me@nschum.de>
2f462d73 714
be1bce46 715 * nsfont.m (nsfont_draw): Compare ns_antialias_text against lisp value.
2f462d73 716
10ea2b82
JR
7172009-03-04 Jason Rumney <jasonr@gnu.org>
718
2c93b248 719 * w32fns.c (w32_wnd_proc): Only ignore IME messages for the
4891ba1d 720 characters that have already been read. (Bug#2569)
2c93b248 721
10ea2b82
JR
722 * image.c (xbm_read_bitmap_data, png_load, svg_load_image):
723 Log an error message if check_image_size failed.
724 (xpm_load_image, pbm_load, jpeg_load, tiff_load, gif_load)
4891ba1d 725 (gs_load): Mention max-image-size in size error message. (Bug#2560)
10ea2b82 726
71a0c011
EZ
7272009-03-02 Eli Zaretskii <eliz@gnu.org>
728
729 * callproc.c (Fcall_process): Bind inhibit-modification-hooks to t
730 when decoding process output.
731
2f63bba8
RS
7322009-03-01 Richard M Stallman <rms@gnu.org>
733
734 * m/mips.h (DATA_SEG_BITS, XUINT, XSET): Definitions disabled.
735
736 * emacs.c (gdb_data_seg_bits) [USE_LSB_TAG]: Make it 0.
737
0a9564cb
EZ
7382009-02-28 Eli Zaretskii <eliz@gnu.org>
739
740 * coding.c (decode_coding_utf_8, decode_coding_utf_16)
741 (decode_coding_emacs_mule, decode_coding_iso_2022)
742 (encode_coding_iso_2022, decode_coding_sjis, decode_coding_big5)
743 (decode_coding_raw_text, decode_coding_charset)
744 (setup_coding_system, decode_eol, decode_coding, consume_chars):
745 Honor inhibit-eol-conversion. (Bug #2186)
746
449148b3
JR
7472009-02-28 Jason Rumney <jasonr@gnu.org>
748
749 * coding.c (detect_coding_charset): If not checking latin extra,
750 fail on characters between 0x80 and 0xA0. (Bug#2354)
751
a4aee864
EZ
7522009-02-28 Eli Zaretskii <eliz@gnu.org>
753
754 * coding.c (detect_coding_charset): Fix change from 2008-10-21.
2a1573ff 755 Also, check iso-latin-*, not only iso-8859-*. (Bug#2497)
a4aee864 756
d88bee5a
GM
7572009-02-27 Glenn Morris <rgm@gnu.org>
758
759 * callint.c (Finteractive): Doc fix.
760
a808f22d
KH
7612009-02-27 Kenichi Handa <handa@m17n.org>
762
763 * lread.c (read_escape): Signal an error for invalid \UXXXXXXXX.
764
caf8d60c
CY
7652009-02-27 Chong Yidong <cyd@stupidchicken.com>
766
767 * font.c (font_style_to_value): Set value for unknown symbols to
768 100 instead of 255.
b61137ea
CY
769 (weight_table, slant_table, width_table): Treat "unspecified" as
770 the default value.
caf8d60c 771
1a0de25c
JB
7722009-02-26 Juanma Barranquero <lekktu@gmail.com>
773
774 * fileio.c (Fnext_read_file_uses_dialog_p): Fix typo in docstring.
775
8fc45744
JB
7762009-02-25 Juanma Barranquero <lekktu@gmail.com>
777
107bd7d1
JB
778 * lread.c (Fload): Stop checking Vloads_in_progress and signal
779 error as soon as a recursive load is detected.
8fc45744 780
f097e223
AR
7812009-02-24 Adrian Robert <Adrian.B.Robert@gmail.com>
782
783 * nsterm.m (ns_ring_bell): Convert rect to window coordinates
784 before caching.
785
8810a12f
KH
7862009-02-24 Kenichi Handa <handa@m17n.org>
787
788 * fontset.c (fontset_find_font): Fix the condition for checking
789 unavailable font.
790
2c7d1565
GM
7912009-02-24 Glenn Morris <rgm@gnu.org>
792
793 * xfaces.c (Finternal_set_font_selection_order): Remove leading
794 whitespace that confuses documentation.
795
a20878b6
MB
7962009-02-23 Miles Bader <miles@gnu.org>
797
798 * process.c (Flist_system_processes, Fprocess_attributes)
799 (syms_of_process): Rename `system-process-attributes' to
800 `process-attributes'.
801
b3b58c01
AS
8022009-02-22 Andreas Schwab <schwab@linux-m68k.org>
803
1b3b981b
AS
804 * coding.h (struct coding_system): Make safe_charsets a pointer to
805 unsigned char.
806 * coding.c (CODING_ISO_REQUEST): Check for safe_charsets content
807 being 255.
808 (SAFE_CHARSET_P): Likewise.
809 (setup_iso_safe_charsets): Properly setup safe_charsets.
810 (Fdefine_coding_system_internal): Likewise.
811 (setup_coding_system): Likewise. Remove unneeded casts.
812 (detect_coding_iso_2022): Compare Viso_2022_charset_list with
813 CODING_ATTR_CHARSET_LIST, not CODING_ATTR_SAFE_CHARSETS. Remove
814 unneeded casts.
815
b3b58c01
AS
816 * insdel.c (del_range_2): Don't modify gap contents when called
817 from decode_coding_object. (Bug#1809)
818
0b6f228c
CY
8192009-02-21 Chong Yidong <cyd@stupidchicken.com>
820
821 * data.c (syms_of_data): Define Qfont_spec, Qfont_entity, and
822 Qfont_object.
823 (Ftype_of): Recognize font objects.
824
825 * lisp.h: Define Qfont_spec, Qfont_entity, Qfont_object extern.
826
827 * font.c (Qfont_spec, Qfont_entity, Qfont_object): Definitions
828 moved to data.c.
829
52f8870b
AR
8302009-02-20 Adrian Robert <Adrian.B.Robert@gmail.com>
831
832 * nsterm.m (x_make_frame_invisible): Unset async_visible,
833 async_iconified. Based on a patch by Christian Lynbech
834 <christian.lynbech@tieto.com>.
835 (EmacsView-windowDidMiniaturize:): Unset async_visible.
836
7087d5e9
GM
8372009-02-20 Glenn Morris <rgm@gnu.org>
838
839 * syntax.c (Fskip_chars_forward): Fix doc typo.
840
41d2ceef
CY
8412009-02-20 Chong Yidong <cyd@stupidchicken.com>
842
843 * keymap.c (Fkeymap_parent): Doc fix (Bug#2391).
844
1a3b7ca6
CY
8452009-02-19 Chong Yidong <cyd@stupidchicken.com>
846
847 * xfns.c (Fx_create_frame): Give Xft driver a higher priority.
848
73cce38d
KH
8492009-02-19 Kenichi Handa <handa@m17n.org>
850
851 * coding.c (detect_coding): Preserve coding->mode.
2bc550cb 852 Don't overflow coding->carryover. (Bug#2370)
73cce38d 853
a51092ee
DN
8542009-02-18 Dan Nicolaescu <dann@ics.uci.edu>
855
856 * m/ibmrs6000.h (ADDR_CORRECT): Restore, removed by mistake on 2008-07-23.
857
c423ecca
KH
8582009-02-18 Kenichi Handa <handa@m17n.org>
859
860 * font.c (font_check_otf_features): Fix handling of `nil' element.
861 (Ffont_spec): Describe :lang and :otf in the docstring.
862
4c1958f4
AS
8632009-02-16 Andreas Schwab <schwab@suse.de>
864
865 * coding.c (Fcheck_coding_systems_region): Fix test for unibyte
866 string.
867
5704f39a
KH
8682009-02-16 Kenichi Handa <handa@m17n.org>
869
870 * coding.c (Fcheck_coding_systems_region): Fix typo; Qt -> Qnil.
a057d86a 871 (Bug#1723)
5704f39a 872
8f0085aa
CY
8732009-02-14 Chong Yidong <cyd@stupidchicken.com>
874
a057d86a 875 * dispextern.h (struct iterator_stack_entry): New line_wrap member.
8f0085aa
CY
876
877 * xdisp.c (push_it, pop_it): Save and restore line_wrap.
878 (handle_line_prefix): Suppress wrapping of wrap prefixes.
879
aff01dd9
EZ
8802009-02-14 Eli Zaretskii <eliz@gnu.org>
881
882 * msdos.c (MAX_SCREEN_BUF): New macro.
883 (IT_write_glyphs): Make screen_buf[] always be MAX_SCREEN_BUF-long.
884 Encode the entire run of glyphs sharing the same face, instead of
885 doing that one glyph at a time (fixes a bug with displaying
886 double-size characters).
887
ba301db3
AR
8882009-02-13 Adrian Robert <Adrian.B.Robert@gmail.com>
889
890 * nsfns.m (ns-read-file-name): BLOCK_INPUT while showing dialog.
891
892 * nsmenu.m (pop_down_menu): Check popup_activated_flag.
893 (ns_popup_dialog, EmacsDialogPanel-runDialogAt:): Let
a057d86a 894 pop_down_menu do the cleanup work as it is always called. (Bug#2154)
ba301db3
AR
895
896 * nsfont.m (nsfont_make_fontset_for_font): For now, don't try to
a057d86a 897 set fontset font for "mathematical-" sub-scripts. (Bug #2218)
ba301db3 898
51d861de
SM
8992009-02-12 Stefan Monnier <monnier@iro.umontreal.ca>
900
901 * keyboard.c (adjust_point_for_property): Allow stopping betwen two
902 invisible areas.
903
7fed8996
JR
9042009-02-12 Jason Rumney <jasonr@gnu.org>
905
631ea4fb
JR
906 * w32font.c (check_face_name): Check for fake helv. (Bug#2275)
907 (add_font_entity_to_list): Call check_face_name even when family
908 is unspecified.
909
cb4a3e42
JR
910 * w32term.c (x_display_pixel_height, x_display_pixel_width):
911 Release DC when finished. Use NULL window to refer to desktop.
631ea4fb 912 (w32_term_init): Use NULL window to refer to desktop. (Bug#460)
cb4a3e42 913
7fed8996 914 * w32font.c (add_font_entity_to_list): Fix check for substituted
631ea4fb 915 raster fonts. (Bug#2219)
7fed8996 916
895416e3
KH
9172009-02-12 Kenichi Handa <handa@m17n.org>
918
919 * composite.c (MAX_AUTO_COMPOSITION_LOOKBACK): New macro.
920 (composition_gstring_width): Fix handling of LGLYPH_YOFF.
921 (autocmp_chars): Use fast_looking_at. Don't compose more
1dacf998 922 characters than MAX_COMPOSITION_COMPONENTS.
895416e3
KH
923 (find_automatic_composition): While looking forward and backward,
924 check static composition. Fix where to stop looking forward.
925 (composition_adjust_point): Fix checking of static composition.
926 (Fcomposition_get_gstring): Pay attention to
1dacf998 927 MAX_COMPOSITION_COMPONENTS.
895416e3
KH
928
929 * lisp.h (fast_looking_at): Extern it.
930
931 * search.c (fast_looking_at): New function.
932
51d861de 933 * term.c (encode_terminal_code): Adjust for the change of
895416e3
KH
934 <struct glyph>.u.cmp.to.
935 (append_composite_glyph): Likewise.
936
51d861de 937 * xdisp.c (fill_gstring_glyph_string): Adjust for the change of
895416e3
KH
938 <struct glyph>.u.cmp.to. Check if the glyph belongs to the same
939 composition.
51d861de 940 (append_composite_glyph): Adjust for the change of
895416e3
KH
941 <strcut glyph>.u.cmp.to.
942
8510724d
JB
9432009-02-11 Juanma Barranquero <lekktu@gmail.com>
944
945 * casetab.c (init_casetab_once):
946 * coding.c (ALLOC_CONVERSION_WORK_AREA):
947 * font.c (font_update_lface):
948 * fontset.c (Fnew_fontset):
949 * ftfont.c (ftfont_drive_otf):
950 * xfont.c (xfont_open):
951 * xftfont.c (xftfont_get_xft_draw): Remove spurious semicolons.
952
294fa707
SM
9532009-02-11 Stefan Monnier <monnier@iro.umontreal.ca>
954
955 * fileio.c (Fwrite_region): !NILP -> CONSP.
956
b5bfebec
AS
9572009-02-10 Andreas Schwab <schwab@suse.de>
958
959 * process.c (send_process): Properly relocate pointer into data
adab88bd 960 when using encoded data. (Bug#2272)
b5bfebec 961
cb84a2be
KH
9622009-02-08 ARISAWA Akihiro <ari@mbf.sphere.ne.jp>
963
964 * coding.c (detect_coding_charset): Fix previous change.
965
89e09428
JR
9662009-02-08 Jason Rumney <jasonr@gnu.org>
967
968 * w32fns.c (w32_hide_hourglass): Handle case where frame
adab88bd 969 disappeared while hourglass was displayed. (Bug #2193)
89e09428 970
4470a277
AS
9712009-02-07 Andreas Schwab <schwab@suse.de>
972
973 * unexelf.c (unexec): Fix error message.
974
3175b12a
AR
9752009-02-07 Adrian Robert <Adrian.B.Robert@gmail.com>
976
977 * nsterm.m (EmacsApp-sendEvent:): Defer NSApplicationDefined event
adab88bd 978 when modal window is active. (Bug #2152)
3175b12a
AR
979 (applicationShouldTerminate:): Remove now-unneeded while loop
980 around NSRunAlertPanel.
981
982 * nsmenu.m (popupSession): New file-global variable.
983 (pop_down_menu): End the popupSession before closing dialog.
984 (ns_popup_dialog): BLOCK_INPUT around dialog presentation.
985 (EmacsDialogPanel-runDialogAt:): Don't place window (superfluous),
986 don't query NSApp for events (just sleep instead).
987
8434d0b8
EZ
9882009-02-07 Eli Zaretskii <eliz@gnu.org>
989
51d861de
SM
990 * coding.c (syms_of_coding) <translation-table-for-input>:
991 Modify doc string to discourage use for character code unification.
8434d0b8 992
aa82edfd
CY
9932009-02-07 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
994
995 * atimer.c (run_timers): Update pending_atimers.
996
2d283c7c
CY
9972009-02-06 Chong Yidong <cyd@stupidchicken.com>
998
eb306cab
CY
999 * image.c (svg_load_image): Fix last change.
1000
2d283c7c
CY
1001 * xfns.c (Fx_create_frame): Signal an error if no font is
1002 found (Bug#2147).
1003
4d8e170e
JB
10042009-02-05 Juanma Barranquero <lekktu@gmail.com>
1005
1006 * character.c (syms_of_character) <script-representative-chars>:
1007 Fix typo in docstring.
1008
c96169a0
AR
10092009-02-04 Adrian Robert <Adrian.B.Robert@gmail.com>
1010
1011 * nsmenu.m (pop_down_menu): New function.
1012 (ns_popup_dialog): Call it on unwind.
1013 (EmacsDialogPanel-runDialogAt:): Check popup_activated_flag and
1014 call timer_check() (Bug#2154).
1015 (EmacsMenu-menuNeedsUpdate:): Don't call ns_update_menu if
1016 handling_signal is set.
1017 (EmacsMenu-fillWithWidgetValue:): Set submenu title.
1018
1019 * config.in: Get rid of COCOA_EXPERIMENTAL_CTRL_G
1020
1021 * s/darwin.h: Same and NO_SOCK_SIGIO as well.
1022
1023 * nsterm.m (ns_read_socket): Same and don't set handling_signal.
1024
51d861de
SM
1025 * keyboard.c (poll_for_input_1, handle_async_input):
1026 Set handling_signal under HAVE_NS.
c96169a0 1027
aacd8ba1
GM
10282009-02-04 Glenn Morris <rgm@gnu.org>
1029
1030 * fileio.c (Fwrite_region): Doc fix (mention annotate-functions).
1031
4cb75c4b
KH
10322009-02-04 Kenichi Handa <handa@m17n.org>
1033
1034 * Makefile.in (composite.o): Depends on frame.h and termhooks.h.
1035
1036 * charset.c (Fchar_charset): New optional arg restriction.
1037
1038 * coding.h (coding_system_charset_list): Extern it.
1039
1040 * coding.c (coding_system_charset_list): New function.
1041
1042 * composite.c: Include coding.h and termhooks.h.
1043 (composition_gstring_p): Fix for the terminal case.
1044 (composition_gstring_width): Likewise.
1045 (fill_gstring_body): Likewise.
1046 (autocmp_chars): For terminal, call Fcomposition_get_gstring with
1047 the frame.
1048 (composition_compute_stop_pos): Adjust cmp_it->stop_pos if point
1049 is within a composition.
867d4bb3 1050 (Fcomposition_get_gstring): Fix the terminal case.
4cb75c4b
KH
1051
1052 * term.c (encode_terminal_code): Fix handling of composition.
1053 (produce_composite_glyph): For static composition, get pixel_width
1054 from struct composition.
1055
826ba17e
AS
10562009-02-02 Andreas Schwab <schwab@suse.de>
1057
1058 * unexelf.c (unexec): Handle unaligned bss offset.
1059
8ad093db
AR
10602009-02-01 Adrian Robert <Adrian.B.Robert@gmail.com>
1061
1062 * nsterm.m (ns_read_socket): Copy 2009-01-29 and 2009-01-30
1063 XT,w32read_socket changes to ns_read_socket.
d0a76a6e 1064
8ad093db
AR
1065 * keyboard.c (handle_interrupt): Don't call
1066 quit_throw_to_read_char() under NS.
d0a76a6e 1067
8ad093db
AR
1068 * blockinput.h: Remove NS-specific code.
1069
4d18a7a2
DN
10702009-01-30 Dan Nicolaescu <dann@ics.uci.edu>
1071
db878925
DN
1072 * dispnew.c (window_change_signal): Don't try to get the size of a
1073 suspended tty frame.
1074 * term.c (Fresume_tty): Resize if the size has changed while the
1075 tty was suspended.
1076
4d18a7a2
DN
1077 * alloc.c (mark_stack): Properly conditionalize previous change.
1078
8984df7c
JB
10792009-01-30 Juanma Barranquero <lekktu@gmail.com>
1080
1081 * w32inevt.c (w32_console_read_socket) [SYNC_INPUT]:
1082 * w32term.c (w32_read_socket) [SYNC_INPUT]:
1083 Remove; this code is not used on Windows.
1084
75f4f1ac
EZ
10852009-01-30 Eli Zaretskii <eliz@gnu.org>
1086
1087 * coding.c (detect_eol, decode_eol): Handle text with DOS-style
1088 EOLs that also has stray ^M characters.
1089
07a1e794
JB
10902009-01-30 Juanma Barranquero <lekktu@gmail.com>
1091
1092 * atimer.c (run_timers, alarm_signal_handler):
1093 * keyboard.c (pending_signals, handle_async_input, init_keyboard):
1094 * w32inevt.c (w32_console_read_socket):
1095 * w32term.c (w32_read_socket):
1096 * xterm.c (XTread_socket): Use "#ifdef SYNC_INPUT" where appropriate.
1097
a8b11cc9
CY
10982009-01-30 Chong Yidong <cyd@stupidchicken.com>
1099
1100 * callproc.c (Vtemp_file_name_pattern): Remove DEFVAR_LISP.
1101 Initialize it as a relative filename pattern.
1102 (init_callproc): Don't initialize Vtemp_file_name_pattern here.
1103 (Fcall_process_region): Simplify temp file creation using
1104 temporary-file-directory.
1105
c279587b
EZ
11062009-01-29 Eli Zaretskii <eliz@gnu.org>
1107
1108 * msdos.c: Rename pending_signals to msdos_pending_signals.
1109 (sig_suspender, sigprocmask): Adjust.
1110
a8fe3242
CY
11112009-01-29 Chong Yidong <cyd@stupidchicken.com>
1112
1113 * keyboard.c (pending_signals): New var.
1114 (poll_for_input, input_available_signal, init_keyboard): Set it.
1115 (process_pending_signals): New function.
1116
1117 * lisp.h (QUIT): Check pending_signals instead of
1118 interrupt_input_pending. Use process_pending_signals.
1119
51d861de 1120 * atimer.c (run_timers, alarm_signal_handler): Update pending_signals.
a8fe3242 1121
51d861de 1122 * process.c (wait_reading_process_output): Use process_pending_signals.
a8fe3242
CY
1123
1124 * sysdep.c (emacs_write): Use process_pending_signals.
1125
1126 * xterm.c (XTread_socket): Update pending_signals.
1127
1128 * w32term.c (w32_read_socket): Update pending_signals.
1129
1130 * w32inevt.c (w32_console_read_socket): Update pending_signals.
1131
6570a1c4
KH
11322009-01-29 Kenichi Handa <handa@m17n.org>
1133
1134 * xftfont.c (xftfont_has_char): New function.
1135 (syms_of_xftfont): Register xftfont_has_char in xftfont_driver.
1136
d72a4afa
AR
11372009-01-29 Adrian Robert <Adrian.B.Robert@gmail.com>
1138
1139 * nsterm.h (EmacsPrefsController.cursorBlinkSlider): Only define
1140 under GNUstep.
1141 (ns_query_color): New declaration.
1142
1143 * nsterm.m (ns_confirm_quit): New variable.
1144 (ns_set_default_prefs, syms_of_nsterm, ns_term_init): Initialize it.
1145 (EmacsApp-applicationShouldTerminate:): Use it.
1146 (EmacsPrefsController): Let user set it.
1147 (ns_query_color): New function.
1148 (ns_defined_color): Use it.
1149 (ns_initialize): Drop.
1150 (ns_term_init): Add two lines from ns_initialize(), and set
1151 input_interrupt_mode to nil.
1152
1153 * image.c (svg_load_image): Don't right-shift background RGB when
6af84d77 1154 obtained from FRAME_BACKGROUND_PIXEL. Under HAVE_NS use ns_query_color.
d72a4afa 1155
9fe78804
KH
11562009-01-28 Kenichi Handa <handa@m17n.org>
1157
1158 * fontset.c (font_for_char): Use assq_no_quit, not assoc_no_quit.
f088b054
KH
1159 (fontset_get_font_group): Remember that no font-group is specified
1160 for C.
9fe78804 1161
fa57de36
CY
11622009-01-27 Chong Yidong <cyd@stupidchicken.com>
1163
930600e9
CY
1164 * fns.c (concat): Check for string overflow (bug#1787).
1165
fa57de36
CY
1166 * undo.c (undo_limit, undo_strong_limit, Vundo_outer_limit):
1167 Quadruple undo limits (bug#1501).
1168
7179ce7b
KH
11692009-01-27 Kenichi Handa <handa@m17n.org>
1170
1171 * ftfont.c (ftfont_has_char): If the arg FONT is a font-object,
1172 directly use GT_Get_Char_index.
1173
1174 * xftfont.c (struct xftfont_info): New member `index'.
1175
1176 * fontset.c (font_for_char): Use assq_no_quit, not assoc_no_quit.
51d861de 1177 (Ffontset_font): Adjust for the change of fontset entry.
7179ce7b 1178
5be8fcc0
CY
11792009-01-26 Kenichi Handa <handa@m17n.org>
1180
1181 * fontset.c (fontset_find_font): Fix handling of non-cons return
1182 value of fontset_get_font_group.
1183 (fontset_font): Revert last change.
1184
19ae3e61
JR
11852009-01-26 Jason Rumney <jasonr@gnu.org>
1186
1187 * w32font.c (w32font_list_internal): Return quickly if registry is
1188 unknown. Simplify final return.
1189 (add_font_entity_to_list): Break complex logic down into more
1190 manageable chunks. Move unknown registry check to
1191 w32font_list_internal.
1192
8612b71a
AR
11932009-01-25 Adrian Robert <Adrian.B.Robert@gmail.com>
1194
1195 Changes to remove Feval calls from GUI under NS.
1196
d8038940
JB
1197 * nsterm.h: Move KEY_NS_... definitions here from nsterm.m.
1198 Add NS_TOGGLE_TOOLBAR, NS_PUT_WORKING_TEXT, NS_UNPUT_WORKING_TEXT.
8612b71a
AR
1199 Remove NS_INSERT_WORKING_TEXT, NS_DELETE_WORKING_TEXT.
1200
1201 * nsterm.m: Move KEY_NS_... definitions to nsterm.h.
1202 (EmacsView-toggleToolbar:): Use KEY_NS_TOGGLE_TOOLBAR.
1203 (EmacsView-setMarkedText:,-deleteWorkingText:): Use NS_TEXT_EVENT
1204 instead of NON_ASCII_KEYSTROKE_EVENT.
1205 (EmacsApp-terminate:): Use KEY_NS_POWER_OFF instead of Feval.
1206 (EmacsApp-applicationShouldTerminate:): Query user.
1207 (EmacsPreferencesController-runHelp:): Use KEY_NS_INFO_PREFS
1208 instead of Feval.
1209
1210 * termhooks.h (NS_TEXT_EVENT): New event type under HAVE_NS.
1211
1212 * keyboard.c (kbd_buffer_get_event): Check for it.
1213 (keys_of_keyboard): Define lispy keys for
1214 ns-put/unput-working-text.
1215
1216 * nsmenu.m (ns_popup_dialog): Resync window setting with X and W32
1217 versions.
1218 (EmacsDialog-runDialogAt:): Use NSModalPanelRunLoopMode.
1219
6288ae55
CY
12202009-01-25 Chong Yidong <cyd@stupidchicken.com>
1221
1222 * dispnew.c (buffer_posn_from_coords): Use Fset_buffer instead of
64cc3cf6 1223 setting current_buffer directly. (Bug#2044)
6288ae55 1224
289e7f8f
CY
12252009-01-24 Chong Yidong <cyd@stupidchicken.com>
1226
5ce87308 1227 * fontset.c (fontset_font): If we know there is no font, don't do
d8038940 1228 any work. (Bug#1952, bug#1990).
5ce87308 1229
64cc3cf6 1230 * font.c (font_parse_xlfd): Handle patterns of length < 2. (Bug#1802)
289e7f8f 1231
b3243e6f
AR
12322009-01-23 Adrian Robert <Adrian.B.Robert@gmail.com>
1233
1234 * emacs.c (main): Do fork+exec under --daemon in Cocoa.
d900b2af
AR
1235 (ns_no_defaults): New declaration.
1236 (main): Use it.
e0d2e69a 1237
d900b2af 1238 * nsterm.h (ns_no_defaults): New declaration.
e0d2e69a 1239
d900b2af 1240 * nsfns.m (x_get_string_resource): Don't read when ns_no_defaults.
e0d2e69a 1241
d900b2af
AR
1242 * nsterm.m (ns_no_defaults): New variable.
1243 (ns_initialize): Don't read defaults when ns_no_defaults.
1244 (EmacsView-readSelectionFromPasteboard:)
1245 (writeSelectionToPasteboard:types:): New stubbed-out methods for
d8038940 1246 NSServicesRequests protocol. (Bug#1435)
27521ca6
AR
1247 (ns_dumpglyphs_stretch): New function.
1248 (ns_draw_glyph_string): Use it, parallel Yamamoto Mitsuharu change
d8038940 1249 of 2008-11-15 to other terms. (Bug#615)
b3243e6f 1250
e0d2e69a
AR
1251 * nsimage.m (setPixmapData:): Set to ignore image DPI.
1252
3ac71f5d
CY
12532009-01-23 Giorgos Keramidas <keramida@freebsd.org> (tiny change)
1254
1255 * alloc.c (mark_stack): Use "flushw" instead of "ta 3" assembly
1256 call for Sparc64.
1257
3fe53a83
AR
12582009-01-22 Adrian Robert <Adrian.B.Robert@gmail.com>
1259
1260 * nsfns.m:
1261 * nsgui.h:
1262 * nsmenu.m:
1263 * nsselect.m:
1264 * nsterm.h:
1265 * nsterm.m: Remove '23' comments that indicated code added during
1266 update from emacs-20 -> emacs-23.
1267
10f87c6f 12682009-01-22 Adrian Robert <Adrian.B.Robert@gmail.com>
a3b53a85
AR
1269
1270 * nsterm.m (EmavsView-keyDown:): Treat nil as Qnone for
3a88a825 1271 ns_alternate_modifier. (Bug#1217)
a3b53a85 1272
c7cef62d
AR
1273 * nsmenu.m (EmacsMenu-parseKeyEquiv:, addItemWithWidgetValue:):
1274 Display all shortcuts, including those w/o super modifier.
1275
575fb8bd
AR
1276 * nsfns.m (ns-read-file-name): Fix typo in assignment statement.
1277
918b848b
CY
12782009-01-22 Chong Yidong <cyd@stupidchicken.com>
1279
1280 * fileio.c (Vwrite_region_post_annotation_function)
1281 (Vwrite_region_annotation_buffers): New vars.
1282 (build_annotations_unwind): Just reset
1283 Vwrite_region_annotation_buffers.
1284 (Fwrite_region): Initialize Vwrite_region_annotation_buffers.
1285 Call write-region-post-annotation-function.
1286 (build_annotations): Add to Vwrite_region_annotation_buffers if
1287 buffer changes.
1288
a39e2539
AR
12892009-01-21 Adrian Robert <Adrian.B.Robert@gmail.com>
1290
1291 * nsterm.h (EmacsApp-setAppleMenu:): Conditionalize more correctly on
1292 Tiger.
51d861de
SM
1293 * nsfns.m (ns_do_applescript):
1294 Conditionalize typeUTF16ExternalRepresentation on Tiger.
a39e2539 1295
35ed44db
AR
12962009-01-21 Wolfgang Lux <wolfgang.lux@gmail.com> (tiny change)
1297
1298 * nsterm.m (EV_TRAILER): Always use emacsframe for frame_or_window.
1299
cbe0b5bf
AR
13002009-01-21 Adrian Robert <Adrian.B.Robert@gmail.com>
1301
1302 * nsmenu.m (NSMENUPROFILE): Change #if style.
4c7077c3 1303
6049d3a0
AR
1304 * nsterm.h (EmacsPrefsController): Add -setPanelFromDefaultValues.
1305
1306 * nsterm.m (x_set_frame_alpha): Add prototype.
a9b4df69
AR
1307 (ns_fake_keydown, EmacsView-keyUp:): New variable and function to
1308 handle Ctrl-tab. (Bug#1841)
1309 (ns_get_color): Use unsigned long long for scanned hex string value.
1310 (ns_term_shutdown): Abort on non SIGTERM signals.
e889fa06 1311 (EmacsPrefsController-setDefaultFont:,-setColors:): Raise the frame.
b71ac3dd 1312 (EmacsPrefsController-setPanelFromDefaultValues): New function.
3a88a825 1313 (EmacsPrefsController-resetToDefaults:): Use it. (Bug#1801)
35ed44db 1314 (ns_font_to_xlfd, ns_fontname_to_xlfd): Remove, unused.
d3810c21 1315 (ns_defined_color): Fix settings of the XColor variable fields:
3a88a825 1316 red,green,blue scale to 2-byte, pixel's parts to 1-byte. (Bug#1663)
cbe0b5bf 1317
d3810c21 1318 * nsimage.m (EmacsImage+allocInitFromFile:): Set to ignore image
3a88a825 1319 DPI. (Bug#1316)
d3810c21
AR
1320 (EmacsImage-setPixelAtX:Y:toRed:green:blue:alpha:): Fix color
1321 values in onTiger section.
4c7077c3 1322
e301e634
CY
13232009-01-19 Chong Yidong <cyd@stupidchicken.com>
1324
7f82490b
CY
1325 * xfaces.c (Finternal_set_lisp_face_attribute, Fx_list_fonts):
1326 Check return value of font_spec_from_name.
64cc3cf6 1327 (Fx_list_fonts): Doc fix. (Bug#1951)
7f82490b
CY
1328
1329 * font.c (font_spec_from_name): Return Qnil if font name could not
1330 be parsed.
1331 (font_parse_name): Treat a `?' character as part of an XLFD.
1332
e301e634
CY
1333 * fns.c (Fsubstring): Doc fix.
1334
1c0db158
KH
13352009-01-19 Kenichi Handa <handa@m17n.org>
1336
51d861de 1337 * ftfont.c (ftfont_lookup_cache): Check the return value of FcFontList.
1c0db158
KH
1338 (ftfont_list): Likewise.
1339
acf20901
JB
13402009-01-18 Juanma Barranquero <lekktu@gmail.com>
1341
fff4e459
JB
1342 * dbusbind.c (Fdbus_register_signal):
1343 * process.c (conv_sockaddr_to_lisp):
1344 * w32fns.c (Fw32_battery_status): Use empty_unibyte_string.
1345
acf20901
JB
1346 * callproc.c (Fgetenv_internal): Doc fix.
1347
e7abcdfb
CY
13482009-01-16 Chong Yidong <cyd@stupidchicken.com>
1349
1350 * xfns.c (x_make_gc): Don't allocate stipple member for gc_values;
1351 it is not even used.
1352
b60861e6
GM
13532009-01-16 Glenn Morris <rgm@gnu.org>
1354
1355 * font.c (Ffont_variation_glyphs): Silence compiler.
1356
8db52afe
JB
13572009-01-15 Juanma Barranquero <lekktu@gmail.com>
1358
1359 * sound.c (SOUND_WARNING): Use _snprintf, for MSVC compatibility.
1360 Reported by David Robinow <drobinow@gmail.com>.
1361
4cddb209
KH
13622009-01-15 Kenichi Handa <handa@m17n.org>
1363
51d861de 1364 * coding.c (detect_coding_system): Fix handling of null_byte_found.
4cddb209 1365
f247f67b
JR
13662009-01-14 Jason Rumney <jasonr@gnu.org>
1367
1368 * frame.c (x_set_font): Always store a font to the font parameter,
fff4e459 1369 never a fontset. (Bug#1562)
f247f67b 1370
f56a4450
KH
13712009-01-14 Kenichi Handa <handa@m17n.org>
1372
1373 * coding.c (TWO_MORE_BYTES): New macro.
fff4e459 1374 (detect_coding_utf_16): Use TWO_MORE_BYTES instead of ONE_MORE_BYTE.
f56a4450 1375
4e99855e
CY
13762009-01-13 Chong Yidong <cyd@stupidchicken.com>
1377
1378 * font.c (font_clear_prop): If clearing the family, clear the font
1379 width index too.
1380
fff4e459 1381 * xfaces.c (Finternal_set_lisp_face_attribute): Revert last change.
4e99855e 1382
24f01470
JB
13832009-01-12 Juanma Barranquero <lekktu@gmail.com>
1384
1385 * sound.c [WINDOWSNT] (SOUND_WARNING): New macro.
1386 (do_play_sound): Use it. Don't pass a hardcoded buffer size to mci
1387 functions, use sizeof.
1388
a41240a3
MR
13892009-01-12 Martin Rudalics <rudalics@gmx.at>
1390
1391 * keyboard.c (read_char): Fix case where last_nonmenu_event
1392 returned a bad value with submenus. (Bug#447)
1393
944636b8
CY
13942009-01-12 Chong Yidong <cyd@stupidchicken.com>
1395
1396 * xfaces.c (Finternal_set_lisp_face_attribute): If setting the
1397 family, clear the font width index too.
1398
0dad7c6f
JR
13992009-01-11 Jason Rumney <jasonr@gnu.org>
1400
1401 * keyboard.c (cmd_error_internal): Exit when errors occur before
1402 frame creation and not in daemon mode. (Bug#1836)
1403
7c2363af
CY
14042009-01-10 Chong Yidong <cyd@stupidchicken.com>
1405
1406 * xdisp.c (pos_visible_p): When iterator stops on the last glyph
1407 of a display vector, backtrack.
1408 (try_window_reusing_current_matrix): Check glyph type before
1409 referencing charpos member.
1410
97b1b294
EZ
14112009-01-10 Eli Zaretskii <eliz@gnu.org>
1412
1413 Fix Bug #876:
1414
1415 * coding.c (inhibit_null_byte_detection): New variable.
1416 (detect_coding, detect_coding_system): Don't pay attention to null
1417 bytes if inhibit_null_byte_detection is non-zero.
51d861de 1418 (syms_of_coding) <inhibit-null-byte-detection>: Declare and document.
97b1b294
EZ
1419 <inhibit-iso-escape-detection>: Doc fix.
1420
4624b6e3
JR
14212009-01-09 Jason Rumney <jasonr@gnu.org>
1422
1423 * w32font.c (add_font_entity_to_list): Don't report unknown
fff4e459 1424 Windows charset as any unrecognized registry. (Bug#1548)
4624b6e3
JR
1425 Only report Unicode Plane 2 fonts as unicode-sip.
1426
323b840c
CY
14272009-01-09 Chong Yidong <cyd@stupidchicken.com>
1428
51d861de
SM
1429 * xfaces.c (Fx_font_family_list): Delete function.
1430 Move compatibility version to faces.el.
323b840c 1431
51d861de 1432 * font.c (Ffont_family_list): Return a list of strings, not symbols.
323b840c 1433
eba7400d
MR
14342009-01-09 Martin Rudalics <rudalics@gmx.at>
1435
1436 * frame.c (x_set_frame_parameters): Remember requested value for
1437 fullscreen before it's reset by the parameter handler.
1438
4b09796d
GM
14392009-01-09 Glenn Morris <rgm@gnu.org>
1440
1441 * keyboard.c (last_command_char): For clarity, rename to...
46e722a9 1442 (last_command_event): ... and update all users.
4b09796d
GM
1443 (last_input_char): For clarity, rename to...
1444 (last_input_event): ... and update all users.
1445 (last-command-char, last-input-char): Move to subr.el as aliases.
1446 * cmds.c, commands.h: Update for last_command_char rename.
1447
14ccea62
CY
14482009-01-08 Chong Yidong <cyd@stupidchicken.com>
1449
51d861de 1450 * font.c (font_open_for_lface): Handle unspecified height attribute.
14ccea62 1451
5f004711
JR
14522009-01-08 Jason Rumney <jasonr@gnu.org>
1453
1454 * w32fns.c (Vx_pointer_shape, Vx_nontext_pointer_shape)
1455 (Vx_mode_pointer_shape, Vx_window_horizontal_drag_shape)
1456 (Vx_hourglass_pointer_shape, Vx_sensitive_text_pointer_shape):
1457 Don't declare.
fff4e459 1458 (syms_of_w32fns): Don't define x-pointer-shape variable. (Bug#1485)
5f004711
JR
1459 (x_create_tip_frame) [GLYPH_DEBUG]: Enable image debugging code.
1460
b71f6f73
KH
14612009-01-07 Kenichi Handa <handa@m17n.org>
1462
50b06221 1463 * fileio.c (Finsert_file_contents): In the case of replace,
f56a4450 1464 remember the coding system used for decoding in
50b06221
KH
1465 coding_system (Bug#1039).
1466
b71f6f73 1467 * coding.c (decode_coding_utf_8): Check byte_after_cr before
79a97217 1468 breaking the loop. (Bug#870)
b71f6f73
KH
1469 (decode_coding_utf_16, decode_coding_emacs_mule)
1470 (decode_coding_iso_2022, decode_coding_sjis, decode_coding_big5)
1471 (decode_coding_charset): Likewise.
1472
56f668f7
MR
14732009-01-05 Martin Rudalics <rudalics@gmx.at>
1474
1475 * frame.c (x_set_frame_parameters): Make sure height (width) get
1476 applied when fullwidth (fullheight) is set. (Bug#1522)
1477
5da9424d
JB
14782009-01-04 Juanma Barranquero <lekktu@gmail.com>
1479
1480 * w32.c: Use 64-bit arithmetic to do FILETIME conversions. (Bug#1766)
1481 (utc_base): Declare as ULONGLONG, not long double.
1482 (convert_time_raw): Delete.
1483 (FILETIME_TO_U64, U64_TO_LISP_TIME): New macros.
1484 (initialize_utc_base): New function.
1485 (convert_time): Use FILETIME_TO_U64, initialize_utc_base.
1486 (convert_from_time_t): Use initialize_utc_base; compute result with
1487 64-bit arithmetic.
1488 (process_times): Use FILETIME_TO_U64, U64_TO_LISP_TIME.
1489
c4605e09
EZ
14902009-01-03 Eli Zaretskii <eliz@gnu.org>
1491
9acef61c 1492 * process.c (Qeuid, Qegid, Qcomm, Qstate, Qppid, Qpgrp, Qsess)
c4605e09
EZ
1493 (Qttname, Qminflt, Qmajflt, Qcminflt, Qcmajflt, Qutime, Qstime)
1494 (Qcutime, Qpri, Qnice, Qthcount, Qstart, Qvsize, Qrss, Qargs)
1495 (Quser, Qgroup, Qetime, Qpcpu, Qpmem, Qtpgid, Qcstime)
1496 [!subprocesses]: Define.
1497 (syms_of_process) [!subprocesses]: Intern and staticpro them.
1498 (Flist_system_processes, Fsystem_process_attributes)
1499 [!subprocesses]: Call list_system_processes and
1500 system_process_attributes instead of returning Qnil.
1501
9acef61c
JB
1502 * dosfns.c (system_process_attributes, list_system_processes):
1503 New functions.
c4605e09
EZ
1504
1505 * vm-limit.c (ret_lim_data) [MSDOS]: New function.
1506
1507 * sysdep.c (list_system_processes, system_process_attributes) [MSDOS]:
1508 Don't use the default (no-op) implementation.
1509
8b7d0a16
JR
15102009-01-03 Jason Rumney <jasonr@gnu.org>
1511
a6d46bc1
JR
1512 * keyboard.c (parse_modifiers_uncached): Wheel events are
1513 clicks (bug#687).
1514
8b7d0a16
JR
1515 * w32term.c (x_query_colors, x_query_color): New functions.
1516
1517 * image.c (x_to_xcolors, png_load): Eliminate W32 specific code.
1518 (svg_load_image): Cast returned pointers from dynamically loaded
1519 functions. Eliminate W32 specific code.
1520
bfe11752
DN
15212009-01-02 Dan Nicolaescu <dann@ics.uci.edu>
1522
89e2438a
DN
1523 * nsfns.m (x_set_foreground_color, x_set_background_color)
1524 (x_set_cursor_color, x_set_icon_name, x_explicitly_set_name)
1525 (x_set_title, x_set_icon_type, x_set_cursor_type): Rename to use
1526 x_ prefix instead of ns_. Update references.
1527 (syms_of_nsfns): Add a FIXME comment.
1528
1529 * nsterm.m (x_set_cursor_type): New prototype.
1530 (setValuesFromPanel): Use it instead of the old ns_ prefixed name.
1531
bfe11752
DN
1532 * sysdep.c (system_process_attributes): Provide Qtime and Qctime
1533 for Solaris instead of incorrectly providing Qutime and Qcutime.
1534
031da700
EZ
15352009-01-02 Eli Zaretskii <eliz@gnu.org>
1536
1537 * w32.c (process_times): Compute sum of utime and stime.
1538 (system_process_attributes): Add Qtime to the alist.
1539
1540 * sysdep.c (system_process_attributes): Compute Qtime and Qctime
1541 and add them to the alist.
1542
1543 * process.c (top level) <Qtime, Qctime>: New variables.
1544 (syms_of_process): staticpro them.
1545 (Fsystem_process_attributes): Add their documentation to the doc
1546 string.
1547
1548 * process.h: Declare Qtime and Qctime.
1549
df23bf08
JR
15502009-01-02 Jason Rumney <jasonr@gnu.org>
1551
9acef61c 1552 * image.c (Qgobject): New symbol.
df23bf08
JR
1553 (syms_of_image): Initialize it.
1554 (init_svg_functions): Load some functions from gobject library.
1555
5bbdf7aa
DN
15562009-01-01 Dan Nicolaescu <dann@ics.uci.edu>
1557
1558 * frame.c (make_terminal_frame): Remove redundant code and useless
1559 block.
1560
63136da6
AS
15612009-01-01 Andreas Schwab <schwab@suse.de>
1562
1563 * process.c (conv_sockaddr_to_lisp): Add workaround for
1564 getsockname bug on BSD.
1565
9ef69046
CY
15662009-01-01 Chong Yidong <cyd@stupidchicken.com>
1567
d6fafbe0
CY
1568 * xfns.c (x_create_tip_frame): Set border width of the X window.
1569
51d861de 1570 * xfaces.c (Finternal_set_lisp_face_attribute): Improve error message.
9ef69046 1571
f9c34147
JR
15722009-01-01 Jason Rumney <jasonr@gnu.org>
1573
9acef61c 1574 * w32term.c (x_new_font): Return font object, not fontset. (Bug#119)
f9c34147
JR
1575 Don't block input, as per earlier xterm.c changes.
1576
f5497e45
AR
15772008-12-31 Adrian Robert <Adrian.B.Robert@gmail.com>
1578
1579 * nsfns.m (ns_appkit_version_str): Rename from ns_appkit_version.
1580 (ns_appkit_version_int): New function.
1581 (x-server-version): Use ns_appkit_version_int and follow 21+
1582 convention of returning 3 integers.
1583
c19cab20
KH
15842008-12-30 Kenichi Handa <handa@m17n.org>
1585
1586 * character.h (CHAR_VARIATION_SELECTOR_P): New macro.
1587 (CHAR_SURROGATE_PAIR_P): New macro.
1588
1589 * font.h (struct font_driver): New member get_variation_glyphs.
1590
9acef61c 1591 * font.c (font_range): Don't require a font for a variation selector.
c19cab20
KH
1592 (Ffont_variation_glyphs): New function.
1593 (syms_of_font): Defsubr it.
1594
1595 * ftfont.c (ftfont_driver): Set the member get_variation_glyphs to
1596 ftfont_variation_glyphs.
1597 (setup_otf_gstring): New function.
1598 (ftfont_drive_otf): Use it.
1599 (ftfont_shape_by_flt): Handle variation selector.
1600 (ftfont_variation_glyphs): New function.
1601
28cd591f
MR
16022008-12-30 Martin Rudalics <rudalics@gmx.at>
1603
1604 * frame.c (Vemacs_iconified): Remove.
1605
7f714baf
JR
16062008-12-30 Jason Rumney <jasonr@gnu.org>
1607
1608 * frame.c (store_frame_param, x_get_arg): Enable newer code on
9acef61c 1609 WINDOWSNT too, as related changes have already been synced. (Bug#117)
7f714baf 1610
9d2d22ab
CY
16112008-12-30 Chong Yidong <cyd@stupidchicken.com>
1612
1613 * indent.c (Fvertical_motion): Don't advance iterator if we have
1614 reseated to the desired position.
1615
1616 * xdisp.c (move_it_to): Handle GET_FROM_STRETCH method when
1617 checking for pos match.
1618
545312c2
KH
16192008-12-30 Kenichi Handa <handa@m17n.org>
1620
1ede3eb6
KH
1621 * insdel.c (copy_text): To convert a non-ASCII char to unibyte,
1622 just get the low 8-bit of the code.
1623
545312c2
KH
1624 * font.c (font_intern_prop): Validate str as multibyte.
1625
bd7bbf29
DN
16262008-12-29 Dan Nicolaescu <dann@ics.uci.edu>
1627
31e0750e
DN
1628 * dispextern.h (struct face): Move lface and hash from the middle
1629 of bitfields.
1630
bd7bbf29
DN
1631 * Makefile.in (INTERVALS_H): Rename from INTERVAL_SRC, update all users.
1632
b5672e7c
DN
16332008-12-29 Dan Nicolaescu <dann@ics.uci.edu>
1634
1635 * Makefile.in (INTERVAL_SRC): Also depend on dispextern.h.
1636 (coding.o, dispnew.o, keymap.o, msdos.o): Depend on INTERVAL_SRC
1637 instead of intervals.h.
1638
d704470f
AS
16392008-12-26 Andreas Schwab <schwab@suse.de>
1640
1641 * keymap.c (map_keymap_char_table_item): Make a copy of KEY if it is a
1642 cons.
1643
54b33868
MR
16442008-12-26 Martin Rudalics <rudalics@gmx.at>
1645
1646 * textprop.c (Qminibuffer_prompt): New variable.
1647 (syms_of_textprop): Initialize it.
1648 * callint.c (Fcall_interactively): For `c', `k', and `K' prompt
1649 in minibuffer-prompt face. (Bug#1662)
1650
40b615d6
JR
16512008-12-25 Jason Rumney <jasonr@gnu.org>
1652
1653 * buffer.c (Fbuffer_swap_text): Use POINTER_TYPE.
1654
baae5c2d
JR
16552008-12-24 Jason Rumney <jasonr@gnu.org>
1656
1657 * ralloc.c (r_alloc_reset_variable): New function.
1658
1659 * buffer.c (Fbuffer_swap_text) [REL_ALLOC]: Reset ralloc's internal
9acef61c 1660 record of what points where. (Bug#716)
baae5c2d 1661
a9051c88
DN
16622008-12-22 Dan Nicolaescu <dann@ics.uci.edu>
1663
1664 * minibuf.c (read_minibuf): Follow the non-interactive case when
1665 running as a daemon, before detaching.
1666
8b146312
AS
16672008-12-22 Andreas Schwab <schwab@suse.de>
1668
1669 * buffer.c (init_buffer): Use realloc instead of xrealloc.
1670 * gtkutil.c (free_widget_value): Use xfree instead of free.
1671
56f2de10
MR
16722008-12-22 Martin Rudalics <rudalics@gmx.at>
1673
1674 * frame.c (delete_frame): New function derived from
1675 Fdelete_frame to handle Qnoelisp value for FORCE argument.
1676 Delete last frame iff FORCE equals Qnoelisp. (Bug#1450)
1677 (Fdelete_frame): Call delete_frame. Remove line from doc-string
1678 saying that FORCE non-nil doesn't run `delete-frame-functions'.
1679 * frame.h: Extern delete_frame.
1680 * window.c (window_loop):
1681 * terminal.c (delete_terminal):
1682 * xterm.c (x_connection_closed):
1683 * xfns.c (Fx_hide_tip):
9acef61c 1684 * w32fns.c (Fx_hide_tip): Call delete_frame instead of Fdelete_frame.
56f2de10 1685
1fc200d6
JR
16862008-12-21 Jason Rumney <jasonr@gnu.org>
1687
1688 * w32uniscribe.c (uniscribe_encode_char): Return FONT_INVALID_CHAR
1689 when character maps to .notdef character.
1690
5e252df2
SM
16912008-12-21 Stefan Monnier <monnier@iro.umontreal.ca>
1692
1693 * keyboard.c (cmd_error_internal): Don't exit in daemon mode, bug#1310.
1694
99b72cc4
JR
16952008-12-20 Jason Rumney <jasonr@gnu.org>
1696
1697 * frame.c (Fmake_terminal_frame): Raise an error when called from
9acef61c 1698 a graphical frame on Windows. (Bug#1325)
99b72cc4 1699
acc49a52
JD
17002008-12-20 Jan Djärv <jan.h.d@swipnet.se>
1701
1702 * frame.c (Fdelete_frame): Set f->menu_bar_vector to Qnil.
1703
6ea15123
CY
17042008-12-20 Chong Yidong <cyd@stupidchicken.com>
1705
1706 * minibuf.c (Fread_buffer): Doc fix.
1707
b2dab6c8
JR
17082008-12-20 Jason Rumney <jasonr@gnu.org>
1709
54ea0c87 1710 * fileio.c (Fexpand_file_name): Do not allow ../ to go beyond the
9acef61c 1711 server name in UNC paths. (Bug#719)
54ea0c87 1712
b2dab6c8 1713 * coding.c (decode_coding): Clear chars_at_source flag when using
9acef61c 1714 charbuf. (Bug#1035)
b2dab6c8 1715
6d1921be
DN
17162008-12-19 Daniel Engeler <engeler@gmail.com>
1717
1718 * sysdep.c (serial_configure): Fix typo.
1719
53934c98
DN
17202008-12-19 Dan Nicolaescu <dann@ics.uci.edu>
1721
1722 * sysdep.c: Include alloca.h.
f4f634e8
DN
1723 (system_process_attributes): Add implementation for Solaris.
1724
1725 * s/sol2-10.h (HAVE_PROCFS, _STRUCTURED_PROC): New defines.
53934c98 1726
06e111a6
DN
17272008-12-19 Dan Nicolaescu <dann@ics.uci.edu>
1728
1729 Reorganize implementation of Flist_system_processes and
1730 Fsystem_process_attributes. No functional changes.
1731 * process.c: Don't #include pwd.h, grp.h and limits.h.
1732 (Flist_system_processes): Just call list_system_processes.
1733 (Fsystem_process_attributes): Just call system_process_attributes.
1734 (procfs_list_system_processes, time_from_jiffies)
1735 (ltime_from_jiffies, get_up_time, procfs_ttyname, MAJOR, MINOR)
1736 (procfs_get_total_memory, procfs_system_process_attributes): Move ...
1737
1738 * sysdep.c: ... here. Include pwd.h, grp.h and limits.h.
1739 (list_system_processes): Rename from
1740 procfs_list_system_processes. Enclose in #ifdef HAVE_PROCFS.
1741 Provide a do nothing implementation.
1742 (system_process_attributes): Rename from
1743 procfs_list_system_processes.
1744 (ltime_from_jiffies, get_up_time, procfs_ttyname, MAJOR, MINOR)
9acef61c 1745 (procfs_get_total_memory): Enclose in #ifdef GNU_LINUX.
06e111a6
DN
1746
1747 * w32.c (list_system_processes): Rename from
1748 w32_list_system_processes.
1749 (system_process_attributes): Rename from
1750 w32_system_process_attributes.
1751
1752 * s/gnu-linux.h (LISTPROC, PROCATTR): Remove.
1753
1754 * process.h (w32_list_system_processes)
1755 (w32_system_process_attributes): Remove.
1756 (list_system_processes, system_process_attributes): New
1757 prototypes.
1758
6a705b23
KH
17592008-12-19 Kenichi Handa <handa@m17n.org>
1760
1761 * xfont.c (xfont_decode_coding_xlfd): New function.
1762 (xfont_encode_coding_xlfd): New function.
1763 (xfont_list_pattern): Decode XLFD by iso-8859-1.
1764 (xfont_list): Decode and encode XLFD by iso-8859-1.
1765 (xfont_match): Likewise.
1766 (xfont_list_family): Likewise.
1767 (xfont_open): Likewise.
1768
d66c0241 1769 * ftfont.c (ftfont_open): Generate a multibyte string if given
6a705b23
KH
1770 names are utf-8.
1771
d66c0241 1772 * xftfont.c (xftfont_open): Generate a multibyte string if given
6a705b23
KH
1773 names are utf-8.
1774
5a130941
JD
17752008-12-18 Jan Djärv <jan.h.d@swipnet.se>
1776
1777 * gtkutil.c (xg_frame_resized): Remove check if rows/columns have
1778 changed.
bfd20325
JD
1779 (xg_tool_bar_proxy_callback): Put focus on the frame after we have
1780 clicked on a detached tool bar button.
5a130941 1781
fd95644b
DN
17822008-12-18 Dan Nicolaescu <dann@ics.uci.edu>
1783
1784 * emacs.c (main): Print and error and exit when no data is read
1785 from the pipe.
1786
e6eee6ae
JR
17872008-12-17 Jason Rumney <jasonr@gnu.org>
1788
1789 * w32font.c (w32font_has_char): Always return -1.
1790
a35dd56b
KH
17912008-12-16 Kenichi Handa <handa@m17n.org>
1792
1793 * font.c (font_open_entity): Fix previous change.
1794
0e3635c2
DN
17952008-12-16 Dan Nicolaescu <dann@ics.uci.edu>
1796
1797 * process.c: Include <limits.h>.
1798
d4835507 17992008-12-16 Chetan Pandya <pandyacus@sbcglobal.net> (tiny change)
b5356c39
CY
1800
1801 * font.c (font_update_drivers): Fix mistake in reconstructing the
1802 driver list.
1803
18042008-12-16 Chong Yidong <cyd@stupidchicken.com>
1805
1806 * font.c (font_clear_cache): Fix format of font cache data.
1807
e2cbc401
CY
18082008-12-15 Chong Yidong <cyd@stupidchicken.com>
1809
1810 * xftfont.c (xftfont_open): Free Xft font pattern if
1811 XftFontOpenPattern fails.
1812
1813 * xterm.c (x_free_frame_resources): Remove extraneous call to
1814 free_frame_faces.
1815
b131d535
CY
18162008-12-13 Chong Yidong <cyd@stupidchicken.com>
1817
1818 * xterm.c (x_delete_display): Move xim_close_dpy call to
1819 x_delete_terminal.
1820 (x_delete_terminal): Call xim_close_dpy.
1821
e6df5336
JR
18222008-12-13 Jason Rumney <jasonr@gnu.org>
1823
1824 * w32font.c (intern_font_name): New function.
1825 (add_font_name_to_list, w32_enumfont_pattern_entity): Use it.
1826 (w32font_open_internal, Fx_select_font): Decode font name.
1827 (fill_in_logfont, list_all_matching_fonts): Encode font name.
1828
1829 * w32font.h (intern_font_name): Declare new function.
1830
1831 * w32uniscribe.c (add_opentype_font_name_to_list):
1832 Use intern_font_name.
1833
20d68145
CY
18342008-12-13 Chong Yidong <cyd@stupidchicken.com>
1835
9f2554de
CY
1836 * frame.c (Fdelete_frame): Call free_font_driver_list.
1837
3d9bec9a
CY
1838 * font.c (free_font_driver_list): Implement missing function.
1839
20d68145
CY
1840 * w32term.c (w32_term_init): Don't initialize the image cache
1841 here; it will be done in init_frame_faces.
1842
1843 * xterm.h (struct xim_inst_t): Definition moved from xterm.c.
1844 (struct x_display_info): Remove unused member null_pixel. New
1845 member xim_callback_data.
1846
1847 * xterm.c (struct xim_inst_t): Definition moved to xterm.h.
1848 (xim_initialize): Save pointer to callback function data.
1849 (xim_close_dpy): Free callback function data. Call XCloseIM,
1850 reverting 2008-11-04 change by David Smith.
1851 (x_term_init): Don't initialize the image cache here; it will be
1852 done in init_frame_faces. Remove ancient "null_pixel" cruft.
1853 (x_delete_display): Free x_dnd_atoms member.
1854
96f9306b
KH
18552008-12-13 Kenichi Handa <handa@m17n.org>
1856
6dec9044
JB
1857 * font.c (font_rescale_ratio): Moved from xfaces.c.
1858 Argument type changed. Handle a font-spec too.
96f9306b 1859 (font_score): Check Vface_font_rescale_alist.
6dec9044 1860 (font_open_entity): Likewise. (Bug#1547)
96f9306b
KH
1861
1862 * xfaces.c (font_rescale_ratio): Moved to font.c.
1863
8d5b4964
CY
18642008-12-13 Chong Yidong <cyd@stupidchicken.com>
1865
1866 * xfns.c (Fx_wm_set_size_hint): Check if the frame is an X frame.
1867
e6df5336
JR
18682008-12-12 Jason Rumney <jasonr@gnu.org>
1869
1870 * w32fns.c (x_display_info_for_name, Fx_open_connection): Set
1871 Vwindow_system_version to the real w32 major version.
1872
97c6058a
DN
18732008-12-12 Dan Nicolaescu <dann@ics.uci.edu>
1874
1875 * term.c (init_tty): Move setting the terminal name before the
1876 potential user: maybe_fatal.
1877
ec4e88d7
CY
18782008-12-11 Chong Yidong <cyd@stupidchicken.com>
1879
d4835507
JB
1880 * term.c (tty_free_frame_resources): Renamed from delete_tty_output;
1881 all callers changed. Call free_frame_faces to free the face cache.
ec4e88d7 1882
b4233ec9
JR
18832008-12-11 Jason Rumney <jasonr@gnu.org>
1884
8ec71e23 1885 * w32font.c (fill_in_logfont): Don't assume symbol script means
9acef61c 1886 SYMBOL_CHARSET. (Bug#547)
8ec71e23 1887
b4233ec9 1888 * w32uniscribe.c (uniscribe_encode_char): Increase glyph buffer
9acef61c 1889 size for surrogates. (Bug#1096, bug#872)
b4233ec9 1890
011a0143
JB
18912008-12-11 Juanma Barranquero <lekktu@gmail.com>
1892
1893 * w32proc.c (Fw32_get_locale_info): Decode long form of locale name.
1894
3c309f34
JB
18952008-12-11 Juanma Barranquero <lekktu@gmail.com>
1896
1897 * process.c (Fsystem_process_attributes, syms_of_process):
1898 Fix typo in name of Ssystem_process_attributes.
1899 Reported by Ulrich Mueller <ulm@kph.uni-mainz.de>.
1900
fedc6ab5
JB
19012008-12-11 Juanma Barranquero <lekktu@gmail.com>
1902
1903 * syntax.c (Fmodify_syntax_entry): Doc fix.
1904
ba3de0e8
JB
19052008-12-10 Juanma Barranquero <lekktu@gmail.com>
1906
1907 * font.c (Ffont_spec): Move usage to end of docstring.
1908
174f1c74
JR
19092008-12-10 Jason Rumney <jasonr@gnu.org>
1910
1911 * w32font.c (Qcham): New symbol.
1912 (font_supported_scripts): Add cham, and comments for other new
1913 scripts in bitfield from OpenType spec.
9d32f818
JR
1914 (add_font_entity_to_list): Limit unicode-sip fonts to those that
1915 contain characters beyond the bmp.
174f1c74 1916
7b649478
KH
19172008-12-10 Kenichi Handa <handa@m17n.org>
1918
1919 * ftfont.c (fc_charset_table): Add "unicode-sip".
2ae37cf0 1920 (ftfont_spec_pattern): Lookup fc_charset_table for the registry
7b649478
KH
1921 Qunicode_sip.
1922
2133e2d1
JB
19232008-12-10 Juanma Barranquero <lekktu@gmail.com>
1924
1925 * coding.c (QCdefault_char): Rename from QCdefalut_char.
1926 (Fcoding_system_put): Use QCdefault_char.
1927 (syms_of_coding): Set QCdefault_char, not QCdefalut_char.
1928
9af886ee
CY
19292008-12-09 Chong Yidong <cyd@stupidchicken.com>
1930
74d819eb
CY
1931 * xftfont.c (syms_of_xftfont): Fix typo.
1932
4ccfa1c0 1933 * buffer.c (Fbuffer_swap_text): Signal error if swapping a dead buffer.
9af886ee 1934
7c19d3ae
DN
19352008-12-08 Dan Nicolaescu <dann@ics.uci.edu>
1936
1937 * emacs.c (main): Close daemon_pipe on exec.
1938
567826bb
CY
19392008-12-08 Chong Yidong <cyd@stupidchicken.com>
1940
1941 * termchar.h (struct tty): New members termcap_term_buffer and
1942 termcap_strings_buffer.
1943
1944 * term.c (encode_terminal_code): Free any previous memory blocks
4ccfa1c0 1945 before calling xmalloc for encode_terminal_src or encode_terminal_dst.
567826bb
CY
1946 (maybe_fatal): Buffer argument deleted. Don't free buffer here.
1947 All callers changed.
1948 (init_tty): Store termcap data and string buffers in new struct
1949 tty members termcap_term_buffer and termcap_strings_buffer.
1950 (delete_tty): Free them.
4ccfa1c0 1951 (syms_of_term): Initialize encode_terminal_src and encode_terminal_dst.
567826bb 1952
aa96c42b
SZ
19532008-12-07 Seiji Zenitani <zenitani@mac.com>
1954
1955 * nsfns.m (ns_set_background_color): Remove code duplication.
4ccfa1c0 1956 It was a substitute for face-transparency on OS X 10.3.
aa96c42b 1957
b7e1d896
CY
19582008-12-06 Chong Yidong <cyd@stupidchicken.com>
1959
1960 * coding.c (make_conversion_work_buffer): Disable buffer
1961 modification hooks in the work buffer.
1962
b5ec91a5
EZ
19632008-12-05 Eli Zaretskii <eliz@gnu.org>
1964
1965 * process.c (procfs_system_process_attributes): If `nread' has a
1966 negative value, assign zero to it.
1967
a5d2a52b
CY
19682008-12-05 Chong Yidong <cyd@stupidchicken.com>
1969
68c5540b 1970 * eval.c (Vdebug_on_error): Doc fix.
a5d2a52b 1971
7bf1bb21
KH
19722008-12-05 Kenichi Handa <handa@m17n.org>
1973
1974 * ftfont.c (ftfont_shape_by_flt): Use "combining" flt if the
1975 second character is a combining character.
1976
2fdc7d00
EZ
19772008-12-05 Eli Zaretskii <eliz@gnu.org>
1978
1979 * process.c (procfs_system_process_attributes): Don't use cmd,
1980 cmdsize, and q without initializing them first.
1981
bf6bfba8
JR
19822008-12-04 Jason Rumney <jasonr@gnu.org>
1983
1984 * w32font.c (w32font_draw): Initialize orig_clip before getting
1985 it, and delete it when finished.
1986
a3b1a468
DN
19872008-12-04 Dan Nicolaescu <dann@ics.uci.edu>
1988
1989 * keyboard.c (kbd_buffer_get_event): Follow the non-interactive
1990 case when running as a daemon before detaching.
1991
8b8be8eb
JB
19922008-12-03 Juanma Barranquero <lekktu@gmail.com>
1993
805f2638 1994 * w32.c (init_environment): Don't unload library shell32.dll.
8b8be8eb 1995
b1bde622
KH
19962008-12-03 Kenichi Handa <handa@m17n.org>
1997
e500c47d
KH
1998 * font.c (font_at): Set `multibyte' at first.
1999
ca516334
KH
2000 * coding.c (decode_coding_charset): Check type of an element of
2001 vector VALIDS.
7bf1bb21 2002 (encode_coding_emacs_mule): Be sure to set `code'.
ca516334 2003
4ccfa1c0 2004 * fontset.c (face_for_char): Handle invalid charset property correctly.
b1bde622
KH
2005 (font_for_char): Likewise.
2006
1e5ecd37
CY
20072008-12-03 Chong Yidong <cyd@stupidchicken.com>
2008
d5b01609 2009 * font.c (Fopen_font): Compute pixel size correctly.
ba207571
CY
2010 (font_update_lface): Handle fonts with corrupted size specs,
2011 i.e. non-int and non-float.
d5b01609 2012
11e3a6e4 2013 * ftfont.c (ftfont_match): Initialize entity variable.
9a48c8cb 2014 (ftfont_resolve_generic_family): Avoid using uninitialized var.
8adb3a3b 2015 (ftfont_list_family): Initialize list var earlier.
11e3a6e4 2016
ab06788b
CY
2017 * xselect.c (Fx_get_cut_buffer_internal): Fix memory leak.
2018
1e5ecd37 2019 * xterm.c (x_draw_glyph_string): Fall back on
0cff82ab 2020 underline_minimum_offset for underline position.
1e5ecd37 2021
63c125ab
DN
20222008-12-03 Dan Nicolaescu <dann@ics.uci.edu>
2023
2024 * keyboard.c (read_char_help_form_unwind): Specify the type for ARG.
2025
2026 * character.c (c_string_width): Specify the type for LEN.
2027
3a8406e1
KH
20282008-12-03 Kenichi Handa <handa@m17n.org>
2029
4ccfa1c0 2030 * coding.c (decode_coding_utf_16): Initialize consumed_chars_base to 0.
453b38f0 2031 (decode_coding_utf_8): Likewise.
4ccfa1c0 2032 (detect_coding_system): Initialize utf_16_le_eol to -1, val to Qnil.
4533845d 2033 (produce_chars): Initialize consumed_chars to 0.
3a8406e1 2034
651df7d9
CY
20352008-12-02 Chong Yidong <cyd@stupidchicken.com>
2036
2037 * keyboard.c (make_lispy_position): Only use PT if the selected
2038 window is current.
2039
1f625c6c
AS
20402008-12-02 Andreas Schwab <schwab@suse.de>
2041
f7741ce9
AS
2042 * font.c (font_unparse_fcname): Fix use of uninitialized variable.
2043
1f625c6c
AS
2044 * doprnt.c (doprnt1): Fix size of charbuf.
2045
92bc2678
CY
20462008-12-02 Chong Yidong <cyd@stupidchicken.com>
2047
2048 * keyboard.c (timer_check): Revert last change.
2049
93b9e8cc
JB
20502008-12-02 Juanma Barranquero <lekktu@gmail.com>
2051
2052 * makefile.w32-in ($(BLD)/w32console.$(O)): Fix silly, silly typo.
2053
fd7a37d5
JB
20542008-12-01 Juanma Barranquero <lekktu@gmail.com>
2055
2056 * makefile.w32-in: Update dependencies.
2057 (CONFIG_H): Add $(EMACS_ROOT)/nt/inc/sys/time.h.
2058
c115043b
AS
20592008-12-01 Andreas Schwab <schwab@suse.de>
2060
2061 * font.c (register_font_driver): Use xmalloc.
2062 (font_put_frame_data): Likewise.
2063
f5668d2a
CY
20642008-12-01 Chong Yidong <cyd@stupidchicken.com>
2065
860d96be
CY
2066 * xfaces.c (realize_x_face): Make abort condition clearer.
2067
f5668d2a
CY
2068 * gtkutil.c (update_frame_tool_bar): Initialize variable.
2069
379c17e7
CY
20702008-11-30 Chong Yidong <cyd@stupidchicken.com>
2071
2072 * keyboard.c (timer_check): After a timer runs, ensure that the
2073 selected window's buffer is current.
2074
35f36d65
JB
20752008-11-30 Juanma Barranquero <lekktu@gmail.com>
2076
f952c61c
JB
2077 * makefile.w32-in ($(BLD)/abbrev.$(O)): Remove.
2078 It was accidentally restored by the Unicode merge.
2079
35f36d65
JB
2080 * w32proc.c (Fw32_get_locale_info): Fix typo in docstring.
2081
b23077df
JB
20822008-11-29 Juanma Barranquero <lekktu@gmail.com>
2083
2084 * w32proc.c: Include "coding.h".
2085 (Fw32_short_file_name): Encode filename passed to Windows API.
2086 (Fw32_long_file_name): Encode filename passed to Windows API and
2087 decode back the result. (Bug#1433)
2088
b8ebe9dd
KH
20892008-11-29 Kenichi Handa <handa@m17n.org>
2090
8cc53f96
KH
2091 * charset.h (CHAR_CHARSET_P): Check if the encoder is loaded or
2092 not before accessing it.
2093
b8ebe9dd
KH
2094 * charset.c (Fdefine_charset_internal): After calculating
2095 min_char, max_char, and fastmap, copy the charset structure again.
2096 (encode_char): Fix the previous change.
2097
59bc82c0
SZ
20982008-11-28 Seiji Zenitani <zenitani@mac.com>
2099
2100 * frame.c (x_set_alpha) [NS_IMPL_COCOA]: Call x_set_frame_alpha.
2101
2102 * nsfns.m (ns_frame_parm_handlers): Set alpha handler.
2103
2104 * nsterm.m (x_set_frame_alpha): New function.
2105
32247e3d
EZ
21062008-11-27 Eli Zaretskii <eliz@gnu.org>
2107
2108 * xfaces.c (Fx_font_family_list, syms_of_xfaces): Fix last change.
2109
b003e5ff
JB
21102008-11-27 Juanma Barranquero <lekktu@gmail.com>
2111
2112 * w32font.c (add_font_entity_to_list): Pass the right LOGFONT
2113 pointer to check_face_name.
2114
708550f5
KH
21152008-11-27 Kenichi Handa <handa@m17n.org>
2116
2117 * category.h (SET_CATEGORY_SET): Call set_category_set.
2118 (set_category_set): Extern it.
2119
2120 * category.c (hash_get_category_set): New function.
2121 (Fmodify_category_entry): Adjusted for the change of
2122 char_table_ref_and_range. Call hash_get_category_set to get a
2123 category set to store in the table.
2124
2125 * character.h (MAYBE_UNIFY_CHAR): Call maybe_unify_char instead of
2126 Funify_charset.
2127
2ae37cf0 2128 * charset.h (enum charset_method): Delete CHARSET_METHOD_MAP_DEFERRED.
708550f5
KH
2129 (DECODE_CHAR): Check if the decoder vector is ready.
2130 (ENCODE_CHAR): Check if the encoder char-table is ready.
2131 (maybe_unify_char): Extern it.
2132
2133 * charset.c (Vchar_unified_charset_table): Delete it.
2134 (inhibit_load_charset_map): New variable.
2135 (temp_charset_work): New variable.
2136 (SET_TEMP_CHARSET_WORK_ENCODER, GET_TEMP_CHARSET_WORK_ENCODER)
2137 (SET_TEMP_CHARSET_WORK_DECODER, GET_TEMP_CHARSET_WORK_DECODER):
2138 New macros.
2139 (load_charset_map): Meaning of control_flag changed. If
2140 inhibit_load_charset_map is nonzero, setup a table in
2141 temp_charset_work.
2142 (load_charset): New argument control_flag.
2143 (map_charset_for_dump): New function.
2144 (map_charset_chars): If inhibit_load_charset_map is nonzero, use
2145 map_charset_for_dump.
2146 (Fdefine_charset_internal): If the charset method is MAP, load
2147 mapping tables by calling load_charset.
2148 (Funify_charset): Don't load a mapping table but directly set
2149 Vchar_unify_table.
2150 (maybe_unify_char): New function.
2151 (decode_char): Don't handle the deleted method MAP_DEFERRED.
2152 Handle the case of inhibit_load_charset_map being nonzero.
2153 (encode_char): Don't handle the deleted method MAP_DEFERRED.
2154 Handle the case of inhibit_load_charset_map being nonzero.
2155 (Fclear_charset_maps): Just free temp_charset_work.
2156 (syms_of_charset): Make `inhibit-load-charset-map' a Lisp
2157 variable.
2158
2159 * chartab.c (sub_char_table_ref_and_range): Adjusted for the
2160 change of char_table_ref_and_range.
2161 (char_table_ref_and_range): Change the meaning of argument FROM
2162 and TO. Now the caller must provide initial values for *FROM
2163 and *TO.
2164
2165 * fontset.c (fontset_add): Adjusted for the change of
2166 char_table_ref_and_range.
2167 (fontset_get_font_group): Likewise.
2168 (Ffontset_info): Likewise.
2169
2170 * keymap.c (describe_vector): Adjusted for the change of
2171 char_table_ref_and_range. For char-table, put boundary between
2172 non-ASCII and 8-bit characters.
2173
2174 * print.c (print_object): For bool-vector, delete unnecessary
2175 check of ASCII_BYTE_P.
2176
9196133b
JR
21772008-11-26 Jason Rumney <jasonr@gnu.org>
2178
2179 * w32font.c (w32font_open_internal): Don't include external
9acef61c 2180 leading in font height. (Bug#879)
9196133b 2181
9f688acf
GM
21822008-11-26 Glenn Morris <rgm@gnu.org>
2183
2184 * xfaces.c (Fx_font_family_list): Replace lisp/term/pc-win.el
2185 redefinition with ifdef. (Bug#1383)
2186
90d19aff
AR
21872008-11-24 Adrian Robert <Adrian.B.Robert@gmail.com>
2188
2189 * nsterm.m (ns_get_color): Handle long hex strings (fixes bug #1044).
2190
4ccfa1c0 21912008-11-24 Wolfgang Lux <wolfgang.lux@gmail.com> (tiny change)
90d19aff
AR
2192
2193 * nsterm.m (-otherMouseDown:, -otherMouseUp:, -otherMouseDragged):
2194 New EmacsView methods.
2195 (EV_UDMODIFIERS, EV_BUTTON): Add OtherMouse constants.
2196 Fixes bug #1048,1357,1414.
2197
21982008-11-24 Adrian Robert <Adrian.B.Robert@gmail.com>
2199
2200 Fix bug #1362.
2201 * image.c (x_clear_image_1): Do not free background under HAVE_NS, it
2202 is not an indexed color.
2203 * nsterm.m (free_indexed_color): Add argument checking.
2204 * nsfns.m: Move config.h to before system includes (advised by Dan N.).
2205
e7d5ecb3
CY
22062008-11-24 Chong Yidong <cyd@stupidchicken.com>
2207
2208 * minibuf.c (Fcompleting_read, Vminibuffer_completion_confirm):
2209 Document confirm-after-completion value for
2210 minibuffer-completion-confirm.
2211
c285743c
JR
22122008-11-24 Jason Rumney <jasonr@gnu.org>
2213
2214 * w32font.c (check_face_name): Use xstrcasecmp. Avoid compiler
2215 warning.
2216
b0857706
JR
22172008-11-23 Jason Rumney <jasonr@gnu.org>
2218
2219 * w32uniscribe.c (uniscribe_encode_char): Ensure context is
2220 restored before returning.
2221
2222 * w32font.c (check_face_name): New function.
2223 (add_font_entity_to_list): Use it to filter out common substituted
9acef61c 2224 fonts. (Bug#642)
b0857706 2225
ee50ff07
MR
22262008-11-22 Martin Rudalics <rudalics@gmx.at>
2227
2228 * buffer.c (Fswitch_to_buffer): Reword and mention new option
2229 confirm-nonexistent-file-or-buffer in doc-string.
2230
b8ff72fa
SM
22312008-11-21 Stefan Monnier <monnier@iro.umontreal.ca>
2232
2233 * buffer.c (Fbuffer_swap_text): Remove redundant marker manipulation.
2234 Fix copy/paste typo. Add checks.
2235
cee53ed4
KH
22362008-11-21 Kenichi Handa <handa@m17n.org>
2237
2238 * coding.c (detect_coding_iso_2022): Reject invalid composition
2239 sequence.
2240 (DECODE_COMPOSITION_START): If the current source is the last
2241 block, and the current composition doesn't end, regard this
2242 sequence as invalid.
2243 (decode_coding_iso_2022): Handle invalid composition sequence.
2244
f6ef1e65
MR
22452008-11-20 Martin Rudalics <rudalics@gmx.at>
2246
2247 * window.c (coordinates_in_window): Don't return
2248 ON_VERTICAL_BORDER for the rightmost position of a mode/header
2249 line when the window is not the rightmost one. (Bug#1372)
2250
e08b1705
MR
22512008-11-16 Ben North <ben@redfrontdoor.org> (tiny change)
2252
2253 * buffer.c (syms_of_buffer): Fix doc-string of cursor-type.
2254
ad98e89f
EZ
22552008-11-15 Eli Zaretskii <eliz@gnu.org>
2256
2257 * msdos.c (run_msdos_command): Don't call dos_ttcooked, dos_ttraw,
2258 and bright_bg if noninteractive is non-zero.
2259
fb098a4b
CY
22602008-11-15 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
2261
2262 * xterm.c (x_draw_glyph_string): For stretch glyphs, don't call
2263 x_draw_glyph_string_background.
2264
2265 * w32term.c (x_draw_glyph_string): Likewise.
2266
ce952b6e
CY
22672008-11-15 Chong Yidong <cyd@stupidchicken.com>
2268
2269 * xterm.c (x_draw_glyph_string): Stop drawing the background of
2270 the next glyph string once past the overhang width.
2271
2272 * nsterm.m (ns_draw_glyph_string): Likewise.
2273
2274 * w32term.c (x_draw_glyph_string): Likewise.
2275
26ea7079
CY
22762008-11-14 Fabrice Popineau <fabrice.popineau@supelec.fr> (tiny change)
2277
2278 * fileio.c (Finsert_file_contents): Decrement specpdl_ptr to avoid
2279 double file close.
2280
1c33c906
MR
22812008-11-14 Martin Rudalics <rudalics@gmx.at>
2282
2283 * window.c (window_loop): In DELETE_BUFFER_WINDOWS case, reset
2284 dedicated status of window before attempting to display another
2285 buffer in it.
2286
8fc29035
JB
22872008-11-14 Juanma Barranquero <lekktu@gmail.com>
2288
2289 * msdos.c (Fmsdos_long_file_names):
2290 (syms_of_msdos) <dos-unsupported-char-glyph>:
2291 * dosfns.c (Fint86): Fix typos in docstrings.
2292
55fb4286
EZ
22932008-11-14 Eli Zaretskii <eliz@gnu.org>
2294
2295 * makefile.w32-in (OBJ1, WIN32OBJ): Fix whitespace.
2296
3fda0315
KY
22972008-11-14 Katsumi Yamaoka <yamaoka@jpl.org>
2298
2299 * puresize.h (BASE_PURESIZE): Increase to 1260000.
2300
7e849c17
CY
23012008-11-12 Michal Nazarewicz <mina86@tlen.pl> (tiny change)
2302
2303 * frame.c (x_set_alpha): Set alpha to -1 if nil given.
2304
2305 * frame.h: Negative alpha means "don't touch".
2306
2307 * w32term.c (x_set_frame_alpha): Do nothing if alpha is negative.
2308
2309 * xterm.c (x_set_frame_alpha): Do nothing if alpha is negative.
2310
b9fd67bd
DN
23112008-11-12 Dan Nicolaescu <dann@ics.uci.edu>
2312
2313 * hftctl.c:
2314 * chpdef.h:
2315 * acldef.h: Remove files used only for systems no longer supported.
2316
2317 * Makefile.in: Fix .o alphabetical ordering.
2318 (hftctl.o): Remove dependency, file removed.
2319 (keymap.o, print.o): Depend on charset.h.
2320
d5998e03
KH
23212008-11-10 Kenichi Handa <handa@m17n.org>
2322
2ae37cf0 2323 * character.c (Fget_byte): Fix and make it faster for unibyte target.
d5998e03 2324
be70e183
CY
23252008-11-08 Chong Yidong <cyd@stupidchicken.com>
2326
2327 * dired.c (file_name_completion): If completion_ignore_case is
2328 enabled, ignore case when checking completion-regexp-list.
2329
7cf94eac
EZ
23302008-11-08 Eli Zaretskii <eliz@gnu.org>
2331
2332 * vm-limit.c (get_lim_data): Fix last change.
2333
ee107a89
KH
23342008-11-08 Kenichi Handa <handa@m17n.org>
2335
2336 * character.c (Fget_byte): New function.
2337 (syms_of_character): Defsubr Fget_byte.
2338
5fd15622
CY
23392008-11-07 Chong Yidong <cyd@stupidchicken.com>
2340
2341 * xdisp.c (try_window_reusing_current_matrix): Ensure that window
2342 cursor position is valid after scrolling.
2343
13d62fad
JB
23442008-11-06 Juanma Barranquero <lekktu@gmail.com>
2345
2346 * fns.c (Frandom): Rename arg N to LIMIT to match the docs; doc fix.
2347
a1dd2936
GM
23482008-11-06 Glenn Morris <rgm@gnu.org>
2349
2350 * xterm.c (handle_one_xevent): Don't let popup menus cause
2351 mouse-autoselect-window related window switching. (Bug#1261)
2352
860cd236
CY
23532008-11-04 David Smith <davidsmith@acm.org> (tiny change)
2354
2355 * xterm.c (xim_close_dpy): Avoid double-free on X11R6 XIM.
2356
653a3150
AS
23572008-11-04 Andreas Schwab <schwab@suse.de>
2358
2359 * xfns.c (Fx_wm_set_size_hint): Add missing return value.
2360
870f5cac
CY
23612008-11-03 Chong Yidong <cyd@stupidchicken.com>
2362
2363 * xfns.c (Fx_wm_set_size_hint): New function.
2364
1e02f3cb
MR
23652008-11-03 Martin Rudalics <rudalics@gmx.at>
2366
2367 * textprop.c (Fprevious_single_char_property_change): Return 0
2368 when there's no change in a string. (Bug#1301)
2369
e630dfc6
MR
23702008-11-02 Martin Rudalics <rudalics@gmx.at>
2371
2372 * frame.c (do_switch_frame): New argument NORECORD passed to
2373 Fselect_window.
2374 (Fselect_frame): New argument NORECORD passed to
2375 do_switch_frame.
2376 (Fset_frame_selected_window): New argument NORECORD passed to
2377 Fselect_frame.
2378 (Fhandle_switch_frame, Fdelete_frame): Handle NORECORD argument
2379 in call of do_switch_frame.
2380 (Fset_mouse_position, Fset_mouse_pixel_position, Fraise_frame):
2381 Handle NORECORD argument in call of Fselect_frame.
2382 * lisp.h (do_switch_frame, Fselect_frame)
2383 (Fset_frame_selected_window): Adjust declarations.
2384 * window.c (select_frame_norecord): New function.
2385 (run_window_configuration_change_hook): Use it and call
2386 Fselect_frame with NORECORD set.
2387 (Fselect_window): Pass NORECORD to Fselect_frame.
2388 (Fset_window_configuration): Handle NORECORD argument in call of
2389 do_switch_frame.
2390 * minibuf.c (choose_minibuf_frame): Handle NORECORD in call of
2391 Fset_frame_selected_window.
2392 * keyboard.c (command_loop_1): Handle NORECORD in call of
2393 Fselect_frame (currently ifdefd).
2394
9020b223
GM
23952008-11-02 Ulrich Mueller <ulm@kph.uni-mainz.de>
2396
2397 * emacs.c (USAGE2): Untabify.
2398
793ffee8
SM
23992008-11-01 Stefan Monnier <monnier@iro.umontreal.ca>
2400
2401 * composite.c (fill_gstring_header): Fix copy/paste typo.
2402
ab6d1131
MR
24032008-10-31 Martin Rudalics <rudalics@gmx.at>
2404
2405 * window.c (Fnext_window, Fprevious_window): Rewrite doc-string.
2406 (Fother_window): Rename argument and rewrite doc-string.
2407 (select_window_norecord): Fix return value. (Bug#1276)
2408
601a9cf1
JB
24092008-10-30 Juanma Barranquero <lekktu@gmail.com>
2410
2411 * w32fns.c (x_create_tip_frame): Prevent default foreground color for
2412 new frames overriding foreground for tooltips. Based on similar patch
2413 from Martin Rudalics <rudalics@gmx.at>. (Bug#1032)
2414
813b0652
CY
24152008-10-29 Chong Yidong <cyd@stupidchicken.com>
2416
2417 * emacs.c (Fdaemon_initialized): Initialize nfd.
2418
4414f58f
MR
24192008-10-29 Martin Rudalics <rudalics@gmx.at>
2420
2421 * window.c (Fwindow_height, Fdelete_window, set_window_buffer)
2422 (Fwindow_text_height): Clarify doc-strings.
2423 * xdisp.c (syms_of_xdisp): Mention set-window-buffer in
2424 doc-string of window-scroll-functions.
2425
ecdcaa09
RS
24262008-10-28 Reiner Steib <Reiner.Steib@gmx.de>
2427
2428 * category.c (syms_of_category): Fix typo in docstring.
2429
23fe745a
JB
24302008-10-28 Juanma Barranquero <lekktu@gmail.com>
2431
2432 * window.c (Fwindowp, Fwindow_live_p, Fwindow_minibuffer_p)
2433 (Fcoordinates_in_window_p, Fscroll_left, Fscroll_right):
2434 Fix typos in docstrings.
2435
ff808935
DN
24362008-10-28 Dan Nicolaescu <dann@ics.uci.edu>
2437
2438 * emacs.c (daemon_pipe): Make non-static.
2439 (IS_DAEMON): Move definition ...
2440 * lisp.h (IS_DAEMON): ... here.
2441 (daemon_pipe): Declare.
2442 (is_daemon): Remove.
2443 * dispnew.c (init_display): Use IS_DAEMON.
2444
fc012771
SM
24452008-10-28 Stefan Monnier <monnier@iro.umontreal.ca>
2446
2447 * xdisp.c (pos_visible_p, redisplay_internal, message3_nolog)
2448 (message2_nolog): Check FRAME_INITIAL_P instead of noninteractively.
2449
2450 * emacs.c (is_daemon): Remove.
2451 (main): Don't set is_daemon.
2452 (IS_DAEMON): New macro.
2453 (Fdaemonp, Fdaemon_initialized): Use it.
601a9cf1 2454 (Fdaemon_initialized): Write a char into the pipe to make sure the
fc012771
SM
2455 parent exits.
2456 (syms_of_emacs): Explicitly initialize daemon_pipe[1].
2457
d8bdbe6f
CY
24582008-10-27 Chong Yidong <cyd@stupidchicken.com>
2459
d1a072bf
CY
2460 * nsterm.m (ns_draw_window_cursor): When hbar cursor is on
2461 over-sized glyph, draw it with the default glyph width.
2462
e2e325aa
CY
2463 * w32term.c (x_draw_bar_cursor): When hbar cursor is on over-sized
2464 glyph, draw it with the default glyph width.
2465
2466 * xterm.c (x_draw_bar_cursor): When hbar cursor is on over-sized
2467 glyph, draw it with the default glyph width.
2468
d8bdbe6f
CY
2469 * xdisp.c (try_scrolling): When computing the distance from the
2470 scroll margin to PT, try moving some distance past the window
2471 bottom before giving up.
2472
7bfac547
MR
24732008-10-27 Martin Rudalics <rudalics@gmx.at>
2474
2475 * window.c (Fwindow_dedicated_p, Fset_window_dedicated_p)
2476 (Fset_window_buffer): Explain in doc-string that a window can be
2477 "strongly" dedicated to its buffer.
2478
4ff029f6
DN
24792008-10-27 Dan Nicolaescu <dann@ics.uci.edu>
2480
2481 * emacs.c (daemon_name): New variable.
2482 (main): Deal with --daemon=SERVER_NAME.
2483 (Fdaemonp): Return a name if one was passed to --daemon.
2484
5790ef40
DN
24852008-10-26 Romain Francoise <romain@orebokech.com>
2486
f9bd0df9 2487 * emacs.c (daemon_pipe): New variable.
5790ef40
DN
2488 (main): Create a pipe before forking, make the parent exit only after
2489 the child has closed its end of the pipe. Move closing the
2490 descriptors ...
2491 (Fdaemon_initialized): ... here. New function.
2492
f5385255
SM
24932008-10-26 Stefan Monnier <monnier@iro.umontreal.ca>
2494
4d632321
SM
2495 * chartab.c (Foptimize_char_table): Make sure `ascii' doesn't point to
2496 the previous unoptimized table.
2497
f5385255
SM
2498 * window.c (Fset_window_buffer): Undo 2008-10-18 change to re-instate
2499 the distinction between non-nil and non-t value of `dedicated'.
2500
6c56a0f3
CY
25012008-10-25 Chong Yidong <cyd@stupidchicken.com>
2502
2503 * keyboard.c (read_char_minibuf_menu_prompt): Ensure that
f5385255 2504 read_char_minibuf_menu_text is large enough to hold the menu string.
6c56a0f3 2505
fec89261
MR
25062008-10-25 Martin Rudalics <rudalics@gmx.at>
2507
2508 * window.c (Fget_buffer_window, Fdelete_windows_on)
2509 (Freplace_buffer_in_windows): Make buffer argument optional and
2510 rename to buffer_or_name.
2511
34fcddd0
CY
25122008-10-24 Chong Yidong <cyd@stupidchicken.com>
2513
f5385255
SM
2514 * xdisp.c (handle_single_display_spec, handle_display_prop):
2515 Undo 2005-05-16 change.
34fcddd0
CY
2516 (handle_stop): Pop iterator if it's loaded with an empty string.
2517 (get_overlay_strings_1): Don't save iterator if it's loaded with
2518 an empty string (bug#1201).
2519
064766f2
KH
25202008-10-24 Kenichi Handa <handa@m17n.org>
2521
2522 * ftfont.c (ftfont_otf_features): Fix previous change.
2523 (ftfont_otf_capability): Check FeatureList.FeatureCount before
2524 calling ftfont_otf_features.
2525
f9bd0df9 25262008-10-24 Kenichi Handa <handa@m17n.org>
064766f2
KH
2527
2528 * font.c (font_match_p): Fix for the case that a vector of
2529 characters is in script-representative-chars.
2530
1dae9197
MA
25312008-10-24 Michael Albinus <michael.albinus@gmx.de>
2532
2533 * dbusbind.c (xd_in_read_queued_messages): New variable.
f5385255 2534 (XD_SIGNAL1, XD_SIGNAL2, XD_SIGNAL3): New macros. Throw Qdbus_error.
1dae9197
MA
2535 (xd_read_queued_messages): Catch Qdbus_error from the macros.
2536 (all): Replace xsignal1, xsignal2, xsignal3 by the respective
2537 macro. (Bug#1186).
2538
f9bd0df9 25392008-10-23 Ali Bahrami <ali_gnu@emvision.com> (tiny change)
9b3362b8
DN
2540
2541 * s/sol2-10.h: New file.
2542
878a4584
JB
25432008-10-23 Juanma Barranquero <lekktu@gmail.com>
2544
2545 * xdisp.c (fill_glyph_string): Fix typo in source (though the
2546 poor beast has survived 9+ years and the jump from xterm.c!).
2547
cd265ca6
MR
25482008-10-23 Martin Rudalics <rudalics@gmx.at>
2549
2550 * buffer.c (Fget_buffer_create): Rename arg to buffer_or_name.
2551 Reword doc-string.
f5385255 2552 (Fbury_buffer): In doc-string say what happens to the buffer's window.
cd265ca6 2553
472a4dc9
JB
25542008-10-23 Juanma Barranquero <lekktu@gmail.com>
2555
2556 * character.c (syms_of_character) <script-representative-chars>:
2557 <unicode-category-table>: Doc fixes.
2558
159bd5a2
NF
25592008-10-23 Noah Friedman <friedman@splode.com>
2560
2561 * coding.c (make_conversion_work_buffer): Check that
2562 Vcode_conversion_reused_workbuf is a live buffer, otherwise call
2563 Fget_buffer_create.
2564
49f9c344
KH
25652008-10-23 Kenichi Handa <handa@m17n.org>
2566
2567 * font.c (font_add_log): Check the values of extra properties.
2568
12bb3111
MR
25692008-10-22 Martin Rudalics <rudalics@gmx.at>
2570
2571 * window.c (Fwindow_dedicated_p, Fset_window_dedicated_p):
2572 Reword doc-string.
2573 (Fset_window_parameter): Use NILP.
2574 (Fscroll_up, Fscroll_down, Fminibuffer_selected_window)
f5385255 2575 (Frecenter): Use "selected" instead of "current" window in doc-strings.
12bb3111 2576
bbeb4e99
JB
25772008-10-22 Juanma Barranquero <lekktu@gmail.com>
2578
2579 * xdisp.c (next_element_from_buffer): Remove bogus xassert condition.
2580
25812008-10-22 Adrian Robert <Adrian.B.Robert@gmail.com>
cb83c00b
AR
2582
2583 * nsfns.m (ns_appkit_version): New function.
2584 (x-server-version): Use it.
2585 (syms_of_nsfns): Define ns-version-string here, not nsterm.m.
2586 (x-server-vendor): Don't check_ns().
2587
2588 * nsterm.m (syms_of_nsterm): Drop ns-version-string.
2589
a9b555d3
JB
25902008-10-22 Juanma Barranquero <lekktu@gmail.com>
2591
2592 * w32fns.c (unwind_create_frame) [!GLYPH_DEBUG]: Fix xassert.
2593 Copied from 2005-02-03 change to xfns.c by Kim F. Storm.
2594
4626499f
KH
25952008-10-22 Kenichi Handa <handa@m17n.org>
2596
e3681952
KH
2597 * syntax.c (scan_words): Call word_boundary_p instead of comparing
2598 scripts.
2599
4626499f
KH
2600 * category.c (word_boundary_p): Check scripts instead of charset.
2601 Handle nil value in word-separating-categories and
2602 word-combining-categories.
2603 (syms_of_category): Fix docstrings of word-separating-categories
2604 and word-combining-categories.
2605
1560f91a
EZ
26062008-10-21 Eli Zaretskii <eliz@gnu.org>
2607
2608 * coding.c (Fencode_coding_region, Fdecode_coding_region)
2609 (Fdecode_coding_string, Fencode_coding_string): Doc fix.
2610
f4668441
MR
26112008-10-21 Martin Rudalics <rudalics@gmx.at>
2612
2613 * buffer.c (Fget_buffer, Fbury_buffer, switch_to_buffer_1):
2614 Rename arg "buffer" to "buffer_or_name".
2615 (Fkill_buffer): Rename arg "buffer" to "buffer_or_name" and make
2616 it optional.
2617 (no_switch_window): Remove since the return value is not used.
a9b555d3 2618 (Fswitch_to_buffer): Rename arg "buffer" to "buffer_or_name".
f4668441
MR
2619 Consider window as dedicated when Fwindow_dedicated_p returns a
2620 non-nil value.
2621 * lisp.h: Remove prototype for no_switch_window.
2622
fd75ddb2
JD
26232008-10-21 Jan Djärv <jan.h.d@swipnet.se>
2624
2625 * emacs.c (main): Unconditionally set PER_LINUX32 and exec
2ae37cf0 2626 temacs when dumping if HAVE_PERSONALITY_LINUX32 is defined.
fd75ddb2 2627
07295713
KH
26282008-10-21 Kenichi Handa <handa@m17n.org>
2629
2630 * coding.c (detect_coding_charset): For iso-8859-* coding systems,
2631 check Vlatin_extra_code_table.
2632
712adc82
EZ
26332008-10-20 Eli Zaretskii <eliz@gnu.org>
2634
2635 * fileio.c (Fset_file_modes): Doc fix.
2636
f549eb0b
MA
26372008-10-19 Michael Albinus <michael.albinus@gmx.de>
2638
2639 * dbusbind.c (XD_OBJECT_TO_DBUS_TYPE): Handle simple type symbols
2640 in arrays.
2641
aac0c6e3
MR
26422008-10-19 Martin Rudalics <rudalics@gmx.at>
2643
2644 * window.c (Fwindow_dedicated_p, Fset_window_dedicated_p):
2645 Mention kill-buffer in doc-string.
2646 (Fset_window_buffer): Reinsert tem check removed in last commit.
2647 (Fenlarge_window, Fshrink_window): Have argument names and
2648 doc-string follow Elisp manual more closely.
2649
26502008-10-18 Eli Zaretskii <eliz@gnu.org>
2651
2652 * fileio.c (Fset_file_modes): Doc fix.
2653
26542008-10-18 Martin Rudalics <rudalics@gmx.at>
2655
2656 * window.c (Fwindow_width, Fset_window_start)
2657 (Fwindow_parameters, Fwindow_parameter, Fset_window_parameter)
f5385255
SM
2658 (Fdelete_windows_on, Freplace_buffer_in_windows):
2659 Make doc-strings follow code and Elisp manual more closely.
aac0c6e3
MR
2660 (Fwindow_dedicated_p): Make window argument optional.
2661 (Fset_window_dedicated_p): Rename argument "arg" to "flag".
2662 (Fset_window_buffer): Respect any non-nil dedicated value for
2663 window. Rename "buffer" argument to "buffer_or_name".
2664
26652008-10-18 Ulrich Mueller <ulm@gentoo.org>
2666
2667 * m/sh3.h: New file, machine description for SuperH.
2668
26692008-10-17 Martin Rudalics <rudalics@gmx.at>
2670
2671 * window.c (Fsplit_window): Rename arg horflag to horizontal.
2672
26732008-10-17 Kenichi Handa <handa@m17n.org>
2674
2675 * ftfont.c (ftfont_otf_features): Fix indexing
2676 gsub_gpos->FeatureList.Feature. Check the validity of indices.
2677
26782008-10-16 Magnus Henoch <mange@freemail.hu>
2679
2680 * dbusbind.c (Fdbus_call_method): Unbreak usage line.
2681 (Fdbus_call_method_asynchronously): Ditto.
2682 This change makes C-h f display the argument list.
2683
26842008-10-16 Chong Yidong <cyd@stupidchicken.com>
2685
2686 * fileio.c (Fexpand_file_name): Doc fix.
2687
2688 * xfaces.c (Finternal_set_lisp_face_attribute): Make null values
2689 of :foreground and :background equivalent to unspecified (20.x
2690 compatibility).
2691
26922008-10-15 Eli Zaretskii <eliz@gnu.org>
2693
2694 * buffer.c (syms_of_buffer): Doc fix.
2695
26962008-10-14 Kenichi Handa <handa@m17n.org>
2697
2698 * font.c (font_clear_prop): When clearing font width, clear the
2699 average width field too.
2700
27012008-10-12 Andreas Schwab <schwab@suse.de>
2702
2703 * ftfont.c (ftfont_shape_by_flt): Make static.
2704 * ftfont.h (ftfont_shape_by_flt): Don't declare.
2705
2706 * font.c: Don't include <m17n-flt.h>.
2707
27082008-10-10 Eli Zaretskii <eliz@gnu.org>
2709
2710 * s/msdos.h (SYSTEM_PURESIZE_EXTRA): Decrease to 10000.
2711
27122008-10-09 Eli Zaretskii <eliz@gnu.org>
2713
2714 * frame.c (make_terminal_frame) [MSDOS]: Remove unused #ifdef'ed
2715 away code.
2716
27172008-10-09 Chong Yidong <cyd@stupidchicken.com>
2718
2719 * dispnew.c (update_text_area): Avoid looping due to large glyph
2720 overhangs (bug#1070).
2721
27222008-10-09 Kenichi Handa <handa@m17n.org>
2723
2724 * fontset.c (face_for_char): If face->fontset is negative, just
2725 return ascii_face.
2726
f5385255
SM
2727 * font.c (font_delete_unmatched): Fix previous change.
2728 Don't reject an entity if DPI and AVGWIDTH of an entity are 0.
aac0c6e3
MR
2729
27302008-10-09 Martin Rudalics <rudalics@gmx.at>
2731
2732 * frame.c (Fraise_frame): On text-only terminals select frame in
2733 order to make it visible. (Bug#1061)
2734
27352008-10-08 Chong Yidong <cyd@stupidchicken.com>
2736
2737 * fontset.c (fontset_find_font): Check frame validity.
2738
27392008-10-07 Chong Yidong <cyd@stupidchicken.com>
2740
a9b555d3 2741 * gtkutil.c (xg_display_open): Reset default display if none exists.
aac0c6e3
MR
2742 (xg_display_close): Allow Emacs to close all displays (bug#985).
2743
27442008-10-06 Andreas Schwab <schwab@suse.de>
2745
f5385255 2746 * sysdep.c (sys_signal): Always set SA_RESTART when noninteractively.
aac0c6e3
MR
2747
27482008-10-06 Chong Yidong <cyd@stupidchicken.com>
2749
f5385255 2750 * emacs.c (Vbefore_init_time, Vafter_init_time): Move from startup.el.
aac0c6e3 2751
a9b555d3 2752 * lisp.h (Vbefore_init_time, Vafter_init_time): Declare.
aac0c6e3
MR
2753
2754 * gtkutil.c (x_wm_set_size_hint): Return immediately if called
2755 during initialization.
2756
27572008-10-04 Eli Zaretskii <eliz@gnu.org>
2758
2759 * xdisp.c (redisplay_internal): If frame switched, redisplay the
2760 whole thing on MSDOS frames as well as on a TTY.
2761
2762 * dispnew.c (update_frame): Flush termscript for MSDOS frames as
2763 well as for TTY.
2764 (Fopen_termscript): Allow opening a termscript on MSDOS frames as
2765 well as on a TTY.
2766
2767 * sysdep.c (init_sys_modes): Set FRAME_GARBAGED_P for MSDOS frames
2768 as well as for TTY.
2769
2770 * systime.h (EMACS_TIME_CMP): Cast EMACS_SECS values to `long'.
2771
2772 * dispnew.c (change_frame_size_1): Set FrameRows and FrameCols for
2773 MSDOS frames as well.
2774
27752008-10-02 Adrian Robert <Adrian.B.Robert@gmail.com>
2776
2777 * image.c (x_clear_image_1): Under NS, call ns_free_indexed_color with
2778 correct arguments.
b71ac3dd 2779 * menu.c (find_and_return_menu_selection): Add cast.
aac0c6e3
MR
2780
27812008-10-03 Glenn Morris <rgm@gnu.org>
2782
2783 * emacs.c (USAGE1): Add --daemon.
2784
27852008-10-02 Eli Zaretskii <eliz@gnu.org>
2786
2787 * process.c (procfs_system_process_attributes): Multiply `pcpu' by
2788 100, so it's in percents as advertised.
2789
27902008-10-02 Adrian Robert <Adrian.B.Robert@gmail.com>
2791
2792 * nsterm.h (ns_cursor_types, ns_output.desired_cursor_color)
2793 (ns_output.current_cursor, ns_output.desired_cursor)
2794 (ns_output.last_inactive, FRAME_CURSOR, FRAME_NEW_CURSOR)
2795 (FRAME_NEW_CURSOR_COLOR): Remove.
2796
2797 * nsfns.m (ns_set_cursor_color): Use FRAME_CURSOR_COLOR.
a9b555d3 2798 (ns_lisp_to_cursor_type, ns_cursor_type_to_lisp): Use core Emacs
aac0c6e3
MR
2799 enumeration (HOLLOW_BOX_CURSOR, etc.).
2800
2801 * nsterm.m (ns_frame_rehighlight): Remove commented code.
2802 (draw_window_cursor): Simplify code.
f5385255
SM
2803 (EmacsView-windowDidBecomeKey:,-windowDidResignKey:):
2804 Don't change cursor type. In latter, call rehighlight instead of doing
aac0c6e3 2805 updates manually.
a9b555d3
JB
2806 (EmacsPrefsController-setPanelFromValues,-setValuesFromPanel):
2807 Use core Emacs cursor types.
aac0c6e3 2808
b8ff72fa 2809 * xdisp.c (draw_glyphs): Don't call notice_overwritten_cursor under NS.
aac0c6e3
MR
2810
28112008-10-02 Martin Rudalics <rudalics@gmx.at>
2812
2813 * process.c (Faccept_process_output): Fix doc-string.
2814
28152008-10-02 Dan Nicolaescu <dann@ics.uci.edu>
2816
2817 * gmalloc.c (__sbrk): Also define for uClibc.
2818
2819 * s/gnu-linux.h (GNU_LIBRARY_PENDING_OUTPUT_COUNT): Add definition
2820 for uClibc.
2821
28222008-10-01 Adrian Robert <Adrian.B.Robert@gmail.com>
2823
2824 * nsfont.m (nsfont_spec_to_traits): Use UnXX masks only for non-normal
2825 styles.
2826 (nsfont_open): Reenable the cache.
2827
28282008-10-01 Adrian Robert <Adrian.B.Robert@gmail.com>
2829
2830 * font.c (font_matching_entity): Reflect ATTRS in font selection.
2831 (font_find_for_lface) [HAVE_NS]: Don't ignore case.
2832
28332008-09-30 Stefan Monnier <monnier@iro.umontreal.ca>
2834
2835 * dispnew.c (Fsend_string_to_terminal): Don't try to send a string to
2836 a suspended terminal.
2837
28382008-09-30 Michael Albinus <michael.albinus@gmx.de>
2839
2840 * dbusbind.c (xd_signature): Use strcat instead of sprintf.
2841
28422008-09-30 Eli Zaretskii <eliz@gnu.org>
2843
2844 * Makefile.in (MSDOS_SUPPORT): Remove ccl.elc and codepage.elc.
2845
28462008-09-30 Chong Yidong <cyd@stupidchicken.com>
2847
2848 * xdisp.c (move_it_to): Don't advance the iterator if the last tab
2849 in a continued line coincides with a line beginning.
2850
28512008-09-29 Adrian Robert <Adrian.B.Robert@gmail.com>
2852
2853 * nsfont.m (nsfont_trait_distance): Fix bug.
2854 (nsfont_list): Return a list rather than a vector (syncs with Handa
2855 changes of 2008-05-14).
2856 (nsfont_open): Improve logging.
2857
28582008-09-29 Andreas Schwab <schwab@suse.de>
2859
2860 * keyboard.c (syms_of_keyboard) <input-decode-map>: Doc fix.
2861
28622008-09-28 Martin Rudalics <rudalics@gmx.at>
2863
2864 * character.c (Fchar_resolve_modifiers): Rewrite Elisp function
2865 name as char-resolve-modifiers.
2866 Reported by: Markus Triska <markus.triska@gmx.at>
2867
28682008-09-28 Dan Nicolaescu <dann@ics.uci.edu>
2869
2870 * dispnew.c (init_display): Return earlier when running as a daemon.
2871
28722008-09-27 Adrian Robert <Adrian.B.Robert@gmail.com>
2873
2874 * nsfont.m (nsfont_draw): Fix up composition rendering (cmp_from, ...).
2875
28762008-09-27 Eli Zaretskii <eliz@gnu.org>
2877
2878 * composite.c (Fcomposition_get_gstring)
2879 (Fcompose_region_internal, Fcompose_string_internal)
2880 (Ffind_composition_internal): Doc fix.
2881 (syms_of_composite) <compose-chars-after-function>: Doc fix.
2882 (syms_of_composite) <auto-composition-function>: Doc fix.
2883 (syms_of_composite) <composition-function-table>: Doc fix.
2884
28852008-09-25 Chong Yidong <cyd@stupidchicken.com>
2886
2887 * search.c (wordify): New argument for lax word-ends.
2888 (Fword_search_forward_lax, Fword_search_backward_lax): New funs.
2889
28902008-09-24 Dan Nicolaescu <dann@ics.uci.edu>
2891
2892 * lisp.h (is_daemon): Declare.
2893 * dispnew.c (init_display): Do not try to initialize the terminal
2894 when running as a daemon.
2895
28962008-09-22 Chong Yidong <cyd@stupidchicken.com>
2897
2898 * nsfns.m (compute_tip_xy): Use x_display_pixel_width and
2899 x_display_pixel_height.
2900
29012008-09-22 Martin Rudalics <rudalics@gmx.at>
2902
2903 * undo.c (record_point): Don't call Fundo_boundary for first
2904 change. (Bug#731)
2905
29062008-09-22 Juanma Barranquero <lekktu@gmail.com>
2907
2908 * emacs.c (Fdaemonp): Doc fix.
2909
29102008-09-22 Dan Nicolaescu <dann@ics.uci.edu>
2911
2912 * emacs.c (main): Place #ifdef in the proper place.
2913
29142008-09-21 Dan Nicolaescu <dann@ics.uci.edu>
2915
2916 * emacs.c (standard_args): Add --daemon.
2917 (main): Disconnect from the terminal when --daemon is passed.
2918 (is_daemon): New variable.
2919 (Fdaemonp): New function.
2920 (syms_of_emacs): Defsubr it.
2921
29222008-09-20 Chong Yidong <cyd@stupidchicken.com>
2923
2924 * xdisp.c (get_next_display_element): Handle string display
2925 correctly when checking for the end of a box run.
2926
29272008-09-20 Glenn Morris <rgm@gnu.org>
2928
2929 * fileio.c (Qdelete_by_moving_to_trash): New Lisp_Object.
2930 (syms_of_fileio): Add Qdelete_by_moving_to_trash.
2931 (Frename_file): Avoid copying to trash if a rename involves
2932 a delete. (Bug#964).
2933
29342008-09-20 Eli Zaretskii <eliz@gnu.org>
2935
2936 * keyboard.c (Fset_quit_char, Fset_input_meta_mode)
2937 (Fset_output_flow_control, Fcurrent_input_mode): Support MSDOS
2938 frames as well as termcap frames.
2939 (handle_interrupt): Remove "#ifndef MSDOS" around the call to
2940 get_named_tty.
2941
29422008-09-19 Eli Zaretskii <eliz@gnu.org>
2943
2944 * process.c (procfs_system_process_attributes): Fix cmdline in
2945 case /proc/PID/cmdline is empty.
2946
2947 * xterm.c (x_wm_set_size_hint): Use x_display_pixel_width and
2948 x_display_pixel_height.
2949
29502008-09-19 Juanma Barranquero <lekktu@gmail.com>
2951
2952 * frame.c (x_fullscreen_adjust): Declare var as Display_Info.
2953
2954 * w32fns.c (Fx_display_pixel_width, Fx_display_pixel_height)
2955 (compute_tip_xy): Use x_display_pixel_width, x_display_pixel_height.
2956
29572008-09-19 Dan Nicolaescu <dann@ics.uci.edu>
2958
2959 * dispextern.h (struct it): Move line_wrap away from the middle of
2960 bitfields. Move voffset in struct iterator_stack_entry after the
2961 bitfields. Move tab_width near after another short.
2962
29632008-09-18 Dan Nicolaescu <dann@ics.uci.edu>
2964
2965 * frame.h (struct frame): Move alpha from the middle of bitfields.
2966
2967 * window.h (struct window): Move frozen_window_start_p after the
2968 rest of the bitfields to reduce padding.
2969
29702008-09-18 Chong Yidong <cyd@stupidchicken.com>
2971
2972 * xterm.h (x_display_info): Remove `height' and `width' members.
2973
2974 * nsterm.h (ns_display_info): Remove `height' and `width' members.
2975
2976 * w32term.h (w32_display_info): Remove `height', `width',
2977 `height_in', and `width_in' members.
2978
b8ff72fa
SM
2979 * xterm.c (x_display_pixel_height, x_display_pixel_width):
2980 New functions.
aac0c6e3
MR
2981 (x_calc_absolute_position): Use them.
2982 (x_term_init): Omit removed `height' and `width' members.
2983
b8ff72fa
SM
2984 * w32term.c (x_display_pixel_height, x_display_pixel_width):
2985 New functions.
aac0c6e3
MR
2986 (w32_read_socket, x_calc_absolute_position): Use them.
2987 (w32_initialize_display_info, w32_term_init): Omit removed members
2988 of w32_display_info.
2989
b8ff72fa
SM
2990 * nsterm.m (x_display_pixel_height, x_display_pixel_width):
2991 New functions.
2992 (ns_initialize_display_info): Omit removed members of ns_display_info.
aac0c6e3 2993
b8ff72fa
SM
2994 * xterm.c (x_display_pixel_height, x_display_pixel_width):
2995 New functions.
aac0c6e3
MR
2996 (x_calc_absolute_position): Use them.
2997 (x_term_init): Omit removed `height' and `width' members.
2998
2999 * xfns.c (Fx_display_pixel_width, Fx_display_pixel_height)
b8ff72fa
SM
3000 (compute_tip_xy):
3001 * frame.c (x_fullscreen_adjust):
aac0c6e3
MR
3002 * xmenu.c (menu_position_func): Use x_display_pixel_height and
3003 x_display_pixel_width.
3004
30052008-09-18 Kenichi Handa <handa@m17n.org>
3006
3007 * composite.c (fill_gstring_header): Don't check FROM and TO here.
3008 (composition_compute_stop_pos): Fix handling of static composition.
3009 (Fcomposition_get_gstring): Check FROM and TO at first.
3010
30112008-09-17 Stefan Monnier <monnier@iro.umontreal.ca>
3012
46e722a9 3013 * composite.c (Fcomposition_get_gstring): Yet another int/Lisp_Object
aac0c6e3
MR
3014 mixup (YAILOM).
3015
30162008-09-17 Chong Yidong <cyd@stupidchicken.com>
3017
3018 * indent.c (Fvertical_motion): Use position reported by iterator
3019 instead of PT for determining screen motion (bug#943).
3020
30212008-09-17 Romain Francoise <romain@orebokech.com>
3022
3023 * composite.c (composition_adjust_point): Fix int/EMACS_INT mixup.
3024
30252008-09-17 Kenichi Handa <handa@m17n.org>
3026
3027 * ftfont.c (ftfont_shape_by_flt): Downcase family name.
3028
3029 * composite.c (Fcomposition_get_gstring): Make bigger gstring_work
3030 if necessary.
3031
30322008-09-16 Kenichi Handa <handa@m17n.org>
3033
3034 * coding.c (make_conversion_work_buffer): Avoid calling
3035 Fget_buffer_create if it is not necessary.
3036
30372008-09-15 Martin Rudalics <rudalics@gmx.at>
3038
3039 * window.c (Fselect_window): Don't update window_select_count and
3040 use_time when norecord is not nil.
3041
30422008-09-14 Kenichi Handa <handa@m17n.org>
3043
3044 * fileio.c (Finsert_file_contents): Delete incorrect decrement of
3045 specpdl_ptr.
3046
30472008-09-12 Kenichi Handa <handa@m17n.org>
3048
3049 * indent.c (scan_for_column): Don't handle automatic composition
3050 if the current buffer is not associated with a window.
3051
3052 * composite.c (composition_reseat_it): If the current buffer is
3053 not associated with a window, ignore the automatic composition.
3054 (find_automatic_composition): Likewise.
3055
30562008-09-12 Stefan Monnier <monnier@iro.umontreal.ca>
3057
3058 * term.c (close_gpm): New fun extracted from Fgpm_mouse_stop.
3059 (Fgpm_mouse_stop): Use it.
3060 * termhooks.h (close_gpm): Declare.
3061 * keyboard.c (tty_read_avail_input): Forcefully close the gpm
3062 connection if Gpm_GetEvent fails.
3063
3064 * window.c (set_window_buffer): Always preserve current-buffer.
3065
30662008-09-12 Glenn Morris <rgm@gnu.org>
3067
3068 * charset.c (init_charset): Warn if etc/charsets not found. (Bug#909)
3069
30702008-09-11 Glenn Morris <rgm@gnu.org>
3071
3072 * charset.c (charset-map-path): Doc fix.
3073
30742008-09-10 Kenichi Handa <handa@m17n.org>
3075
3076 * xdisp.c (handle_composition_prop): Set it->cmp_it.ch to -1.
3077
3078 * font.c (Ffont_shape_gstring): Make glyphs of non-nil adjustment
3079 compose a grapheme cluster with the preceding base glyph.
3080
3081 * composite.c (composition_compute_stop_pos): Fix previous change.
3082 Reset cmp_it->id to -1 at first.
3083
30842008-09-10 Glenn Morris <rgm@gnu.org>
3085
3086 * Makefile.in (character.o, chartab.o): Fix config.h typo.
3087
30882008-09-09 Chong Yidong <cyd@stupidchicken.com>
3089
3090 * keyboard.c (read_key_sequence): Reapply translation maps when
3091 switching keyboards.
3092
30932008-09-09 Kenichi Handa <handa@m17n.org>
3094
3095 * ftfont.c (ftfont_shape_by_flt): Use "combining" FLT for ASCII
3096 characters.
3097
3098 * composite.c (FORWARD_CHAR): Fix calculation
3099 of (POSITION).pos_byte.
3100 (composition_compute_stop_pos): Limit the search of composition to
3101 at most 500 characters ahead. If we reach the limit or find a
3102 newline, set cmp_it->ch to -2 and return 0.
3103 (composition_reseat_it): Handle the case that cmp_it->ch is -2.
3104
31052008-09-08 Kenichi Handa <handa@m17n.org>
3106
3107 * indent.c (Fvertical_motion): Be sure to set
3108 it_overshoot_expected if it.cmp_it.id is non-negative.
3109
31102008-09-07 Andreas Schwab <schwab@suse.de>
3111
3112 * callproc.c (Fcall_process): Don't hold references to string data
3113 across garbage collection. Move initialisation of new_argv down
3114 to avoid compiler bug.
3115
31162008-09-07 Roland Winkler <Roland.Winkler@physik.uni-erlangen.de>
3117
3118 * process.c (Fsystem_process_attributes): Doc fix.
3119
31202008-09-07 Chong Yidong <cyd@stupidchicken.com>
3121
3122 * callproc.c (Fcall_process): Canonicalize current directory name.
3123
3124 * xdisp.c (move_it_to): When moving by vpos, ensure that the
3125 iterator advances to the next line if the current line ends in a
3126 continued tab.
3127
31282008-09-07 Teodor Zlatanov <tzz@lifelogs.com>
3129
3130 * nsfont.m (nsfont_draw): Fix the references to missing gidx data
3131 member to point to cmp_from.
3132
3133 * xdisp.c: Doc fix for references to gidx data member.
3134
31352008-09-07 Stefan Monnier <monnier@iro.umontreal.ca>
3136
3137 * buffer.c (Fbuffer_swap_text): Reset window->point markers.
3138
31392008-09-07 Kenichi Handa <handa@m17n.org>
3140
3141 * composite.c (FORWARD_CHAR): Check STOP after
3142 incrementing (POSITION).pos.
3143
31442008-09-06 Roland Winkler <Roland.Winkler@physik.uni-erlangen.de>
3145
3146 * process.c (Fsystem_process_attributes): Doc fix.
3147
31482008-09-06 Chong Yidong <cyd@stupidchicken.com>
3149
3150 * keyboard.c (Ftop_level): Doc fix.
3151
31522008-09-06 Eli Zaretskii <eliz@gnu.org>
3153
3154 * xmenu.c (xmenu_show) [!HAVE_X_WINDOWS]: If frame has a
3155 minibuffer, don't let lower part of menu invade the echo area.
3156
3157 * msdos.c (IT_menu_display): Use STRING_CHAR_ADVANCE instead of a
3158 "char *q" to access menu text and advance through it. Revert the
3159 change that displayed ">" instead of ASCII character 0x10.
3160
31612008-09-05 Eli Zaretskii <eliz@gnu.org>
3162
3163 * menu.c (single_menu_item) [!HAVE_BOXES]: Enable emulation of
3164 toggle boxes and radio buttons on MS-DOS as well.
3165
31662008-09-05 Kenichi Handa <handa@m17n.org>
3167
3168 * composite.c (autocmp_chars): Check lookback count.
3169 (composition_compute_stop_pos): Set cmp_it->lookback.
3170 (composition_reseat_it): Check lookback count.
3171 (struct position_record): New struct.
3172 (FORWARD_CHAR, BACKWARD_CHAR, CHAR_COMPOSABLE_P): New macros.
3173 (find_automatic_composition): New function.
3174 (composition_adjust_point): Use find_automatic_composition.
3175
3176 * dispextern.h (struct composition_it): New member lookback.
3177
31782008-09-02 Chong Yidong <cyd@stupidchicken.com>
3179
3180 * indent.c (Fvertical_motion): Don't call move_it_by_lines again
3181 if moving by a single line.
3182
31832008-09-02 Andreas Schwab <schwab@suse.de>
3184
3185 * xterm.c (x_delete_display): Fix merge error.
3186
3187 * fileio.c (Fexpand_file_name): Remove unused variables.
3188
31892008-09-02 Eli Zaretskii <eliz@gnu.org>
3190
3191 * fileio.c (Fexpand_file_name): Copy argument `name' into local
3192 storage on all platforms, not just on DOS_NT.
3193
31942008-09-02 Jason Rumney <jasonr@gnu.org>
3195
b8ff72fa
SM
3196 * w32menu.c (Fx_popup_menu, Fx_popup_dialog, w32_menu_show):
3197 Ensure mouse is not grabbed after menu is finished.
aac0c6e3
MR
3198
31992008-09-01 Chong Yidong <cyd@stupidchicken.com>
3200
3201 * xfaces.c (Finternal_set_alternative_font_family_alist)
3202 (Finternal_set_alternative_font_registry_alist): Properly copy
3203 entire alist structure.
3204
32052008-09-01 Kenichi Handa <handa@m17n.org>
3206
d66c0241 3207 * ftfont.c (ftfont_spec_pattern): Don't create a charset if the
aac0c6e3 3208 representative chars of the script is a vector.
d66c0241
JB
3209 (ftfont_list): Handle the case where the representative chars of
3210 the script is a vector.
aac0c6e3
MR
3211
3212 * character.c (syms_of_character): Docstring of
3213 script-representative-chars fixed.
3214
32152008-08-31 Eli Zaretskii <eliz@gnu.org>
3216
3217 * msdos.c (BUILD_CHAR_GLYPH): New macro.
3218 (IT_menu_display): Use it instead of SET_CHAR_GLYPH to construct
3219 the menu. Allocate larger buffer for `text', to account for
3220 possible ^C characters.
3221
32222008-08-31 Martin Rudalics <rudalics@gmx.at>
3223
3224 * xdisp.c (prepare_menu_bars): Don't call
3225 Vwindow_size_change_functions with arg Qt.
3226
32272008-08-31 Stefan Monnier <monnier@iro.umontreal.ca>
3228
3229 * font.h (font_range):
3230 * fileio.c (report_file_error):
46e722a9
SM
3231 * composite.c (composition_update_it): Yet another int/Lisp_Object
3232 mixup (YAILOM).
aac0c6e3
MR
3233
32342008-08-30 Glenn Morris <rgm@gnu.org>
3235
3236 * data.c (Fmake_variable_frame_local): Doc fix.
3237
3238 * frame.c (Fmodify_frame_parameters): Doc fix.
3239
32402008-08-30 Eli Zaretskii <eliz@gnu.org>
3241
3242 * w32.c (init_user_info): Allocate buf[] with xmalloc using the size
3243 needed by GetTokenInformation.
3244 (w32_system_process_attributes): Check return values of all system
3245 APIs.
3246
3247 * msdos.c (IT_display_cursor): Write "CURSOR ON/OFF" to termscript
3248 only when the state changes.
3249 (IT_update_begin, IT_update_end): Add termscript trace.
3250
3251 * w16select.c (Fw16_set_clipboard_data): Don't encode text if
3252 clipboard is unavailable. Set dst to NULL if it doesn't point to
3253 malloc'ed data.
3254 (Fw16_get_clipboard_data): Initialize htext to NULL, to avoid
3255 passing random values to xfree.
3256
3257 * dispnew.c (init_display): Set `tty's association in frame's
b8ff72fa 3258 parameters alist to the name of the terminal device, if that is known.
aac0c6e3
MR
3259
32602008-08-29 Jason Rumney <jasonr@gnu.org>
3261
3262 * w32uniscribe.c (uniscribe_check_otf): Don't fallback on DFLT script.
3263
32642008-08-29 Eli Zaretskii <eliz@gnu.org>
3265
3266 * composite.c (fill_gstring_body): Avoid compiler warnings.
3267
3268 * font.c (font_fill_lglyph_metrics): Use EMACS_INT in
3269 LGLYPH_SET_CODE to avoid compiler warnings.
3270
2ae37cf0 3271 * makefile.w32-in ($(BLD)/w32uniscribe.$(O)): Depend on composite.h.
aac0c6e3
MR
3272
3273 * composite.h (LGLYPH_SET_CODE): Cast `val' to EMACS_INT.
3274
3275 * w32uniscribe.c (uniscribe_shape): Shut up compiler warning in
3276 LGLYPH_SET_CODE.
3277
32782008-08-29 Kenichi Handa <handa@m17n.org>
3279
3280 * fileio.c (report_file_error): Don't downcase the first character
3281 of errstring if it is still unibyte.
3282
32832008-08-29 Kenichi Handa <handa@m17n.org>
3284
3285 These changes are to re-implement the automatic composition so
3286 that it doesn't use text properties.
3287
3288 * Makefile.in (ftfont.o): Depend on composite.h.
3289 (composite.o): Depend dispextern.h, font.h, frame, and window.h.
3290
3291 * character.h (Vunicode_category_table): Extern it.
3292
3293 * character.c (Vunicode_category_table): New variable.
3294 (syms_of_character): DEFVAR_LISP Vunicode_category_table.
3295
3296 * chartab.c (optimize_sub_char_table): Perform more greedy
3297 optimization.
3298
b8ff72fa
SM
3299 * composite.h (enum composition_method):
3300 Delete COMPOSITION_WITH_GLYPH_STRING.
aac0c6e3
MR
3301 (COMPOSITION_METHOD): Don't check COMPOSITION_WITH_GLYPH_STRING.
3302 (Vcomposition_function_table): Extern it.
3303 (LGSTRING_XXX, LGLYPH_XXX): Macros moved from font.h.
3304 (composition_gstring_put_cache, composition_gstring_from_id)
3305 (composition_gstring_p, composition_gstring_width)
3306 (composition_compute_stop_pos, composition_reseat_it)
3307 (composition_update_it, composition_adjust_point): Extern them.
3308 (Fcomposition_get_gstring): EXFUN it.
3309
d66c0241 3310 * composite.c: Include window.h, frame.h, dispextern.h, font.h.
aac0c6e3
MR
3311 (Vcomposition_function_table)
3312 (get_composition_id): Don't handle COMPOSITION_WITH_GLYPH_STRING.
b8ff72fa
SM
3313 (gstring_hash_table, gstring_work, gstring_work_headers):
3314 New variables.
aac0c6e3
MR
3315 (gstring_lookup_cache, composition_gstring_put_cache)
3316 (composition_gstring_from_id, composition_gstring_p)
3317 (composition_gstring_width, fill_gstring_header)
3318 (fill_gstring_body, autocmp_chars, composition_compute_stop_pos)
3319 (composition_reseat_it, composition_update_it)
b8ff72fa 3320 (composition_adjust_point, Fcomposition_get_gstring): New functions.
aac0c6e3
MR
3321 (syms_of_composite): Initialize gstring_hash_table, gstrint_work,
3322 and gstring_work_headers. DEFVAR_LISP composition-function-table.
3323 Defsubr compostion_get_gstring.
3324
3325 * dispextern.h (struct glyph): New union u.cmp. Delete the member
3326 cmp_id.
3327 (struct glyph_string): Delete the member gidx. New members
3328 cmp_id, cmp_from, and cmp_to.
3329 (enum it_method): Delete GET_FROM_COMPOSITION.
3330 (struct composition_it): New struct.
3331 (struct it): New member cmp_it, and iterator_stack_entry.cmp_it.
3332 Delete c, len, cmp_id, cmp_len in u.comp.
3333
3334 * font.h (enum lgstring_indices): Delete it.
b8ff72fa 3335 (LGSTRING_XXX, LGLYPH_XXX): Move these macros to composite.h.
aac0c6e3 3336 (enum lglyph_indices): Likewise.
b8ff72fa 3337 (font_range): Adjust extern.
aac0c6e3
MR
3338 (font_fill_lglyph_metrics): Extern it.
3339
3340 * font.c (QCf): New variable.
3341 (check_gstring): Use LGSTRING_GLYPH_LEN, not LGSTRING_LENGTH.
3342 (font_prepare_composition): Delete this function.
3343 (font_range): Type and arguments changed.
3344 (Ffont_make_gstring, Ffont_fill_gstring): Delete them.
3345 (font_fill_lglyph_metrics): New function.
b8ff72fa 3346 (Ffont_shape_text): Rename to Ffont_shape_gstring and change arguments.
aac0c6e3 3347 (syms_of_font): DEFSYM QCf. Delete defsubr for
b8ff72fa
SM
3348 Sfont_make_gstring, Sfont_fill_gstring, Sfont_shape_text.
3349 Defsubr Sfont_shape_gstring.
aac0c6e3
MR
3350
3351 * fontset.h (font_for_char): Extern it.
3352
3353 * fontset.c (font_for_char): New function.
3354
3355 * ftfont.c: Include composite.h.
3356 (ftfont_resolve_generic_family): Add langset "en" to pattern.
b8ff72fa 3357 (ftfont_shape_by_flt): Use LGSTRING_GLYPH_LEN, not LGSTRING_LENGTH.
aac0c6e3
MR
3358
3359 * indent.c: Include composite.h and dispextern.h.
3360 (check_composition): Delete this function.
3361 (scan_for_column): Handle composition by
3362 composition_compute_stop_pos, composition_reseat_it, and
3363 composition_update_it.
3364 (compute_motion): Likewise.
3365 (Fvertical_motion): Fix checking of composition.
3366
3367 * keyboard.c (adjust_point_for_property): Check composition by
3368 composition_adjust_point.
3369
b8ff72fa 3370 * nsterm.m (ns_draw_glyph_string): Adjust for the change of
aac0c6e3
MR
3371 struct glyph_string.
3372
b8ff72fa
SM
3373 * term.c (encode_terminal_code): Adjust for the change of struct glyph.
3374 (append_composite_glyph): Adjust for the change of struct it and
aac0c6e3
MR
3375 struct glyph.
3376 (produce_composite_glyph): Likewise.
3377
b8ff72fa
SM
3378 * w32term.c (x_draw_composite_glyph_string_foreground):
3379 Adjust for the change of struct glyph_string.
aac0c6e3
MR
3380 (x_draw_glyph_string): Likewise.
3381
3382 * w32uniscribe.c (struct uniscribe_font_info): Include composite.h.
3383 (uniscribe_shape): Use LGSTRING_GLYPH_LEN, not LGSTRING_LENGTH.
3384
3385 * xdisp.c: Include font.h.
3386 (it_props): Delete the entry for Qauto_composed.
3387 (init_iterator): Initialize it->cmp_it.id to -1.
3388 (compute_stop_pos): Call composition_compute_stop_pos.
b8ff72fa 3389 (face_before_or_after_it_pos): Adjust for the change of struct it.
aac0c6e3
MR
3390 (handle_auto_composed_prop): Delete it.
3391 (handle_composition_prop): Handle only static composition.
3392 (next_overlay_string): Remove it->method == GET_FROM_COMPOSITION
3393 from xassert. Initialize it->cmp_it.stop_pos.
b8ff72fa 3394 (push_it): Adjust for the change of struct it.
aac0c6e3
MR
3395 (pop_it): Likewise.
3396 (get_next_element): Delete next_element_from_composition.
3397 (CHAR_COMPOSED_P): New macro.
3398 (get_next_display_element): For automatic composition, get a face
3399 from the font in the glyph-string.
3400 (set_iterator_to_next): For GET_FROM_BUFFER and GET_FROM_STRING,
b8ff72fa 3401 check composition by it->cmp_it.id. Delete GET_FROM_COMPOSITION case.
aac0c6e3
MR
3402 (next_element_from_string): Check if the character at the current
3403 position is composed by CHAR_COMPOSED_P.
3404 (next_element_from_buffer): Likewise.
d66c0241
JB
3405 (next_element_from_composition): Adjust for the change of struct it.
3406 Update it->cmp_it.
b8ff72fa
SM
3407 (dump_glyph): Adjust for the change of struct glyph.
3408 (fill_composite_glyph_string): Adjust for the change of struct
aac0c6e3
MR
3409 it and struct glyph. Don't handle automatic composition here.
3410 (fill_gstring_glyph_string): New function.
3411 (x_get_glyph_overhangs): Handle automatic composition.
b8ff72fa 3412 (BUILD_COMPOSITE_GLYPH_STRING): Adjust for the change of struct glyph.
aac0c6e3
MR
3413 (BUILD_GSTRING_GLYPH_STRING): New macro.
3414 (BUILD_GLYPH_STRINGS): Call BUILD_GSTRING_GLYPH_STRING for
3415 automatic composition.
b8ff72fa 3416 (append_composite_glyph): Adjust for the change of struct it and
aac0c6e3 3417 struct glyph.
b8ff72fa 3418 (x_produce_glyphs): Adjust for the change of struct it.
aac0c6e3 3419
b8ff72fa 3420 * xterm.c (x_draw_composite_glyph_string_foreground): Adjust for
aac0c6e3
MR
3421 the change of struct glyph_string.
3422 (x_draw_glyph_string): Likewise.
3423
34242008-08-29 Glenn Morris <rgm@gnu.org>
3425
3426 * buffer.c (word-wrap): Doc fix.
3427 * xdisp.c (truncate-partial-width-windows): Doc fix.
3428 Increase default to 50.
3429
34302008-08-29 Chong Yidong <cyd@stupidchicken.com>
3431
3432 * xdisp.c (update_tool_bar_unwind): New function.
3433 (update_tool_bar): Temporarily set selected frame before building
3434 tool-bar items.
3435
34362008-08-28 Michael Albinus <michael.albinus@gmx.de>
3437
3438 * dbusbind.c (XD_ERROR, XD_DEBUG_MESSAGE): Use strncpy and
3439 snprintf, respectively.
3440 (xd_append_arg): Convert strings with Fstring_make_unibyte.
3441
34422008-08-28 Chong Yidong <cyd@stupidchicken.com>
3443
3444 * Makefile.in: Revert (undocumented) 2008-08-20 change adding
3445 LDFLAGS to GNUstep CC invocation.
3446
34472008-08-27 Chong Yidong <cyd@stupidchicken.com>
3448
3449 * indent.c (Fvertical_motion): Revert last change. Handle the
3450 general case where we are moving forward, and PT spans multiple
3451 screen lines.
3452
3453 * eval.c (find_handler_clause): Temporarily increase
3454 max-lisp-eval-depth while printing the backtrace buffer, to
3455 guarantee that help-mode code can run.
3456
34572008-08-27 Eli Zaretskii <eliz@gnu.org>
3458
3459 * msdos.c (Fmsdos_remember_default_colors): Don't reverse frame
3460 colors under -rv.
3461 (IT_set_frame_parameters): Don't swap foreground and background
3462 colors if `(reverse . t)' is present in the frame properties.
3463 (internal_terminal_init): Call init_frame_faces only for the
3464 initial frame.
3465
34662008-08-27 Andreas Schwab <schwab@suse.de>
3467
3468 * dired.c (Ffile_attributes): Avoid compiler warning in bitshift.
3469
34702008-08-27 Andreas Schwab <schwab@suse.de>
3471
3472 * search.c (search_buffer): Set char_base to zero only at the end.
3473
34742008-08-27 Kenichi Handa <handa@m17n.org>
3475
b8ff72fa 3476 * fileio.c (report_file_error): Fix handling of multibyte error string.
aac0c6e3
MR
3477
34782008-08-27 Andreas Seltenreich <seltenreich@gmx.de>
3479
3480 * xterm.c (x_term_init): Temporarily hide the partially
3481 initialized terminal while calling vendor-specific-keysyms.
3482
34832008-08-26 Eli Zaretskii <eliz@gnu.org>
3484
3485 * msdos.c (internal_terminal_init): Most initializations done only
3486 once, especially initial_screen_colors[] and termscript open.
3487
34882008-08-26 Chong Yidong <cyd@stupidchicken.com>
3489
3490 * eval.c (Fcondition_case): Doc fix.
3491
3492 * widgetprv.h (EmacsFramePart): Change font member to the new font
3493 struct.
3494
3495 * widget.c: Include character.h and font.h for XSETFONT.
3496 (setup_frame_gcs): Compute X font id from font struct, just once.
3497
34982008-08-26 Eli Zaretskii <eliz@gnu.org>
3499
3500 * term.c (get_named_tty): Fix last change.
3501
35022008-08-26 Chong Yidong <cyd@stupidchicken.com>
3503
3504 * indent.c (Fvertical_motion): If moving forward starting from a
b8ff72fa 3505 multi-line string, move the iterator to the last line of that string.
aac0c6e3
MR
3506
35072008-08-25 Eli Zaretskii <eliz@gnu.org>
3508
3509 * frame.c (do_switch_frame): Mark previously displayed frame as
3510 obscured for FRAME_MSDOS_P frames as well.
3511
35122008-08-24 Eli Zaretskii <eliz@gnu.org>
3513
3514 * frame.c (make_terminal_frame): Initialize f->terminal,
3515 f->terminal->reference_count, and scroll bars on MS-DOS as well.
3516 Set the top frame to newly created frame.
3517 (Fmake_terminal_frame): Reuse the_only_display_info.
3518
3519 * vm-limit.c (get_lim_data) [MSDOS]: Use alternative methods of
3520 estimating available memory.
3521
b97439ce 35222008-08-23 David Reitter <david.reitter@gmail.com>
aac0c6e3
MR
3523
3524 * nsterm.m (ns_draw_window_cursor): Don't call
3525 NSDisableScreenUpdates and NSEnableScreenUpdates on
3526 non-NS_IMPL_COCOA systems.
3527
35282008-08-23 Andreas Schwab <schwab@suse.de>
3529
3530 * process.c (procfs_system_process_attributes): Fix use of
3531 uninitialized variables.
3532
35332008-08-23 Eli Zaretskii <eliz@gnu.org>
3534
3535 * emacs.c (main) [MSDOS]: Call syms_of_xmenu.
3536
3537 * dispnew.c (init_display): Remove MS-DOS specific conditions for
3538 calling tty-set-up-initial-frame-faces.
3539
b8ff72fa
SM
3540 * xmenu.c (Fx_popup_dialog, Fx_popup_menu, xmenu_show):
3541 Allow MSDOS frames along with X frames.
aac0c6e3
MR
3542
3543 * termhooks.h (TERMINAL_ACTIVE_P): Handle output_msdos_raw in
3544 addition to output_termcap.
3545
3546 * xdisp.c (redisplay_internal) [MSDOS]: Don't call set_tty_color_mode.
3547
3548 * termchar.h (FRAME_TTY): Support output_msdos_raw.
3549 (struct tty_display_info) [MSDOS]: Add fields related to mouse
3550 highlight.
3551
3552 * process.c [!subprocesses]: Define QCname.
3553 (syms_of_process): Intern and staticpro it.
3554
3555 * w16select.c (Fw16_set_clipboard_data, Fw16_get_clipboard_data):
b8ff72fa
SM
3556 Adjust for changes in encoding/decoding routines.
3557 Use encode_coding_object and decode_coding_object instead of
aac0c6e3
MR
3558 encode_coding and decode_coding.
3559
b8ff72fa 3560 * sysdep.c (init_sys_modes): Call dos_ttraw with tty_out as argument.
aac0c6e3
MR
3561
3562 * dosfns.c: Include frame.h before termhooks.h.
3563 (dos_cleanup): Use CURTTY ()->termscript instead of a global
3564 variable termscript.
3565
3566 * s/msdos.h (USER_FULL_NAME): Define.
3567 (SYSTEM_PURESIZE_EXTRA): Bump up to 100K.
3568
3569 * editfns.c (USER_FULL_NAME): Define to pw->pw_gecos if undefined.
3570 (Fuser_full_name): Use USER_FULL_NAME instead of a literal
3571 pw->pw_gecos.
3572
3573 * keyboard.c (handle_interrupt) [MSDOS]: Call cursor_to with
3574 SELECTED_FRAME as additional (1st) argument.
3575 (tty_read_avail_input): Handle output_msdos_raw in
3576 addition to output_termcap.
3577
3578 * msdos.c: Include frame.h before termhooks.h.
3579 (mouse_on, mouse_off, mouse_moveto, mouse_init)
3580 (msdos_set_cursor_shape, IT_set_face, IT_write_glyphs)
3581 (show_mouse_face, IT_clear_end_of_line, IT_clear_screen)
3582 (IT_clear_to_end, IT_cursor_to, IT_display_cursor, IT_cmgoto)
3583 (IT_set_terminal_modes, IT_reset_terminal_modes)
3584 (IT_set_frame_parameters): Use tty->termscript instead of a global
3585 variable termscript.
3586 (IT_write_glyphs): Use tty->terminal->terminal_coding instead of a
3587 global variable terminal_coding. Don't refer to
3588 Vnonascii_translation_table.
3589 (internal_terminal_init): Set Vwindow_system in current_kboard.
3590 Don't use TTY_CHAR_INS_DEL_OK. Set Vinitial_window_system.
3591 Announce date and time of session start, if termscript is open.
3592 Don't zero out the_only_display_info (it is done in
b8ff72fa
SM
3593 term.c:init_tty). Open termscript only of not already open.
3594 Log "SCREEN SAVED" here, instead of IT_set_terminal_modes. Init mouse
aac0c6e3
MR
3595 here instead of dos_ttraw. Don't initialize display if this is an
3596 initial tty. Don't set FRAME_FONT.
3597 (Vwindow_system_version): Bump to 23.
3598 (dos_ttraw): Accept a TTY argument; all callers fixed. If mouse
3599 is available, set up mouse_position_hook.
3600 (dos_ttraw, IT_set_terminal_modes): If called with initial
3601 terminal, do nothing.
3602 (IT_set_frame_parameters): Handle the Qtty_type frame
3603 parameter by calling internal_terminal_init.
3604 (dos_set_window_size, show_mouse_face)
3605 (clear_mouse_face, IT_note_mode_line_highlight)
3606 (IT_note_mouse_highlight, IT_update_begin, IT_frame_up_to_date)
3607 (dos_rawgetc): Use tty_display_info instead of x_display_info.
3608 (initialize_msdos_display): New function.
3609 (IT_cursor_to, IT_clear_to_end, IT_clear_screen)
3610 (IT_clear_end_of_line, IT_insert_glyphs, IT_write_glyphs)
3611 (IT_delete_glyphs, IT_ring_bell, IT_reset_terminal_modes)
3612 (IT_set_terminal_modes, IT_set_terminal_window, IT_update_begin):
b8ff72fa 3613 Accept additional argument: a pointer to a frame. Update all callers.
aac0c6e3
MR
3614 (request_sigio, unrequest_sigio): Don't define, now defined on
3615 sysdep.c.
3616 (IT_write_glyphs): Rewrite to use encode_terminal_code.
3617
3618 * term.c [MSDOS]: Include msdos.h.
3619 (init_tty) [MSDOS]: Reuse most of WINDOWSNT branch. Change cpp
3620 conditional to DOS_NT. Allow only one call to this function in a
3621 session. Don't allocate a new struct tty_display_info; instead,
3622 reuse the_only_display_info. Call get_tty_size to get screen
3623 dimensions. Call init_baud_rate to set bad_rate.
3624 (dissociate_if_controlling_tty) [MSDOS]: Ifdef away function body.
3625 (Fsuspend_tty) [MSDOS]: Don't close input and output.
b8ff72fa 3626 (Fresume_tty) [MSDOS]: Don't reopen the TTY; instead, use stdin/stdout.
aac0c6e3
MR
3627 (get_tty_terminal, get_named_tty, Ftty_type)
3628 (Fcontrolling_tty_p): Handle output_msdos_raw in addition to
3629 output_termcap.
b8ff72fa
SM
3630 (Fresume_tty, Fsuspend_tty, init_tty, delete_tty):
3631 Call add_keyboard_wait_descriptor and delete_keyboard_wait_descriptor
2ae37cf0 3632 only when subprocesses are supported.
aac0c6e3
MR
3633
3634 * frame.c (make_terminal_frame) [MSDOS]: Adjust initialization of
3635 f->output_data.x.
3636 (Fmake_terminal_frame) [MSDOS]: Don't allow creation of new
3637 terminal devices.
3638
5582fbc7 3639 * msdos.h: Remove definition of struct x_display_info and struct
aac0c6e3
MR
3640 x_output.
3641 (FRAME_FONT): Use output_data.tty.
3642 (FRAME_FOREGROUND_PIXEL, FRAME_BACKGROUND_PIXEL): Don't define.
b8ff72fa
SM
3643 (struct x_display_info): Rename from display_info. Update all users in
3644 msdos.c.
aac0c6e3 3645 (struct x_output): Remove background_pixel and foreground_pixel.
b8ff72fa 3646 (the_only_display_info): Rename from the_only_x_display.
aac0c6e3
MR
3647 (dos_ttraw): Update prototype.
3648
3649 * Makefile.in (MSDOS_OBJ): Add xmenu.o.
3650 (SOME_MACHINE_LISP): Add ../lisp/term/pc-win.elc.
3651
36522008-08-23 Jason Rumney <jasonr@gnu.org>
3653
3654 * image.c (enum tiff_keyword_index, tiff_format): Add :index keyword.
3655 (fn_TIFFSetDirectory): New library function used.
3656 (init_tiff_functions) [HAVE_NTGUI]: Initialize it.
3657 (tiff_load): Use :index to select among multiple images. Set count
3658 property when multiple images exist.
3659 (gif_format): Use :index, not :image.
3660
36612008-08-23 Chong Yidong <cyd@stupidchicken.com>
3662
3663 * xdisp.c (try_scrolling): Check INT_MAX instead of
3664 MOST_POSITIVE_FIXNUM for maximum integer value. Include limits.h
3665 to obtain INT_MAX.
3666
36672008-08-21 İsmail Dönmez <ismail@namtrac.org> (tiny change)
3668
3669 * xterm.c (x_delete_display): Don't call XrmDestroyDatabase on GTK+.
3670
36712008-08-21 Christian Faulhammer <opfer@gentoo.org> (tiny change)
3672
3673 * Makefile.in (temacs${EXEEXT}): On GNUstep, link to appropriate
3674 GNUstep library location.
3675
36762008-08-21 Chong Yidong <cyd@stupidchicken.com>
3677
3678 * xfaces.c (x_update_menu_appearance): Check validity of menu font
3679 before using it.
3680
3681 * puresize.h (BASE_PURESIZE): Increase to 1250000.
3682
36832008-08-20 Adrian Robert <Adrian.B.Robert@gmail.com>
3684
3685 * nsfns.m (ns-read-file-name): Add casts to avoid warning.
3686 (ns-convert-utf8-nfd-to-nfc): Warn if cannot execute correctly.
3687 * nsfont.m (nsfont_draw): Compare indexed colors to 0, not nil.
3688 * nsterm.h (EmacsView-unlockFocusNeedsFlush:): Add declaration.
3689 (EmacsApp-cursor_blink_handler): Remove declaration.
3690 * nsterm.m (ns_draw_glyph_string): Update first conditional body to
3691 match 01 Feb 2008 changes in xterm.c.
3692 (ns_read_socket): Add cast to avoid warning.
3693 (EmacsApp-application:openFiles:): Don't call replyToOpenOrPrint: on
3694 GNUstep.
3695
36962008-08-20 Chong Yidong <cyd@stupidchicken.com>
3697
3698 * xselect.c (x_get_foreign_selection): Return nil if desired
3699 selection could not be obtained, instead of signalling an error.
3700
37012008-08-20 David Reitter <david.reitter@gmail.com>
3702
3703 * nsfns.m (ns_lisp_to_cursor_type): Replace with generic xfns.c.
3704 * nsterm.m: Remove ns-specific code for cursor blinking.
3705 (ns_draw_window_cursor): Clear cursor properly rather than
3706 redrawing the area. Respect width of bar cursors.
3707 These changes enable the use of generic blink-cursor-mode and
3708 generic cursor types in NS and support smooth cursor movements (do
3709 not blink off after command).
3710 * xdisp.c (get_phys_cursor_geometry): Redraw wider rectangle on
3711 Nextstep, too.
3712
37132008-08-19 Kenichi Handa <handa@m17n.org>
3714
3715 * font.c (Vfont_log_deferred): New variable.
3716 (font_add_log): Check Vfont_log_deferred.
3717 (font_deferred_log): New function.
3718
3719 * font.h (font_deferred_log): Extern it.
3720
3721 * fontset.c (reorder_font_vector): Use encoding charset of fonts
3722 for sorting.
3723 (face_for_char): Use deferred log.
3724
37252008-08-18 Kenichi Handa <handa@m17n.org>
3726
3727 * fontset.c (face_for_char): Add font log.
3728
3729 * font.c (font_add_log): Add the font properties :script, :lang,
3730 and :otf in the log.
3731
37322008-08-17 Chong Yidong <cyd@stupidchicken.com>
3733
3734 * xdisp.c: Remove dead code.
3735 (handle_invisible_prop, next_overlay_string): Defer call to
3736 setup_for_ellipsis.
3737 (handle_stop, set_iterator_to_next): Call setup_for_ellipsis.
3738
37392008-08-15 Chong Yidong <cyd@stupidchicken.com>
3740
3741 * xfaces.c (lookup_derived_face): Properly handle possible zero
3742 return value of get_lface_attributes.
3743 (merge_faces): Don't tell lookup_derived_face to signal an error
3744 if face is not found.
3745
3746 * dired.c (Fdirectory_files): Doc fix.
3747
3748 * process.c (make_process): Initialize kill_without_query struct
3749 member.
3750
37512008-08-15 Eli Zaretskii <eliz@gnu.org>
3752
3753 * w32.c (w32_system_process_attributes) [_MSC_VER < 1300]:
3754 Alternative calculation of totphys for Visual Studio 6.
3755
3756 * w32fns.c [_MSC_VER && _MSC_VER < 1300]: Declare HMONITOR.
3757
3758 * w32.c (_MEMORY_STATUS_EX, MEMORY_STATUS_EX, LPMEMORY_STATUS_EX):
3759 Rename from _MEMORYSTATUSEX, MEMORYSTATUSEX, LPMEMORYSTATUSEX.
3760 All users changed.
3761 (stat): Only root directory passed to GetDriveType. Allow RAM
3762 disk as well as local fixed disk when w32-get-true-file-attributes
3763 is set to `local'.
3764 (CopySid_Proc, EqualSid_Proc, GetLengthSid_Proc): New typedefs.
3765 (equal_sid, get_length_sid, copy_sid): New wrapper functions.
3766 (w32_cached_id, w32_add_to_cache): New functions.
3767 (get_name_and_id): Look account names in the cache before calling
3768 lookup_account_sid.
3769 (g_b_init_get_length_sid, g_b_init_equal_sid, g_b_init_copy_sid):
3770 New initialization flags.
3771 (globals_of_w32): Initialize them to zero.
3772 (w32_system_process_attributes): Use w32_cached_id and
3773 w32_add_to_cache.
3774
37752008-08-14 Lawrence Mitchell <wence@gmx.li>
3776
3777 * lread.c (Fread_char, Fread_char_exclusive): If no character
3778 event is read before timeout is reached, return nil, rather than
3779 converting to a number.
3780
37812008-08-14 Chong Yidong <cyd@stupidchicken.com>
3782
3783 * fns.c (use_dialog_box): Doc fix.
3784
3785 * s/darwin.h: Undefine HAVE_RES_INIT, which appears to be harmful
3786 on OS X.
3787
37882008-08-13 Chong Yidong <cyd@stupidchicken.com>
3789
3790 * frame.c (Qns_parse_geometry): New var.
3791 (Fx_parse_geometry): For HAVE_NS, call ns-parse-geometry.
3792
37932008-08-11 Chong Yidong <cyd@stupidchicken.com>
3794
3795 * xdisp.c (x_produce_glyphs): Handle the case when font has no
3796 space character in calculating tabs.
3797
37982008-08-11 Dan Nicolaescu <dann@ics.uci.edu>
3799
3800 * Makefile.in (bootstrap-emacs): Use ln -f in the CANNOT_DUMP case.
3801
38022008-08-10 Glenn Morris <rgm@gnu.org>
3803
3804 * process.c (procfs_system_process_attributes): Use EMACS_INTs to
3805 silence gcc "limited range of data type" warnings in some
3806 make_fixnum_or_float calls.
3807
38082008-08-09 Eli Zaretskii <eliz@gnu.org>
3809
3810 * w32.c (w32_system_process_attributes): If the process does not
3811 exist, return nil.
3812
3813 * w32.c: Include thelp32.h, psapi.h and coding.h.
3814 (_MEMORYSTATUSEX, _PROCESS_MEMORY_COUNTERS_EX): New struct
3815 declarations.
3816 (CreateToolhelp32Snapshot_Proc, Process32First_Proc)
3817 (Process32Next_Proc): New typedefs.
3818 (g_b_init_create_toolhelp32_snapshot, g_b_init_process32_first)
3819 (g_b_init_process32_next, g_b_init_open_thread_token)
3820 (g_b_init_impersonate_self, g_b_init_revert_to_self)
3821 (g_b_init_get_process_memory_info, g_b_init_global_memory_status)
3822 (g_b_init_get_process_working_set_size)
3823 (g_b_init_global_memory_status_ex): New static variables.
3824 (globals_of_w32): Initialize them.
3825 (create_toolhelp32_snapshot, process32_first, process32_next)
3826 (open_thread_token, impersonate_self, revert_to_self)
3827 (get_process_memory_info, get_process_working_set_size)
3828 (global_memory_status, global_memory_status_ex): New wrapper
3829 functions.
3830 (w32_list_system_processes, w32_system_process_attributes)
3831 (enable_privilege, restore_privilege, ltime, process_times):
3832 New functions.
3833 (convert_time_raw): New function.
3834 (convert_time): Remove conversion of FILETIME into time in 100
3835 nsec units, call convert_time_raw instead.
3836
3837 * process.h (w32_list_system_processes, w32_system_process_attributes):
3838 Add prototypes.
3839 (Qeuid, Qegid, Qcomm, Qstate, Qppid, Qpgrp, Qsess, Qttname)
3840 (Qminflt, Qmajflt, Qcminflt, Qcmajflt, Qutime, Qstime, Qcutime)
3841 (Qpri, Qnice, Qthcount, Qstart, Qvsize, Qrss, Qargs, Quser, Qgroup)
3842 (Qetime, Qpcpu, Qpmem, Qtpgid, Qcstime): Add extern declarations.
3843
3844 * process.c (Fsystem_process_attributes): Doc fix.
3845
38462008-08-08 Chong Yidong <cyd@stupidchicken.com>
3847
3848 * xdisp.c (move_it_to): When stopping at a charpos, check if that's
3849 a continued multi-char glyph; if so, advance to the actual glyph.
3850
38512008-08-07 Dan Nicolaescu <dann@ics.uci.edu>
3852
3853 * s/darwin.h (OTHER_FILES): Do not define here, defined in config.in.
3854
3855 * Makefile.in (ALL_OBJC_CFLAGS): New variable.
3856 (.m.o): Use it.
3857 * config.in: Regenerate.
3858
38592008-08-07 Chong Yidong <cyd@stupidchicken.com>
3860
3861 * xdisp.c (redisplay_window): Revert last change.
3862 (try_window): Check bottom scroll margin too.
3863
38642008-08-06 Adrian Robert <Adrian.B.Robert@gmail.com>
3865
3866 * config.in: Regenerate.
3867
3868 * Makefile.in (emacs): Remove ifndef NS conditional for 'emacs
3869 -list-load-path-shadows'.
3870 (nsgui.h): Reduce number of things depending on it.
3871
38722008-08-06 Chong Yidong <cyd@stupidchicken.com>
3873
3874 * xdisp.c (try_scrolling): Use iterator to find the scroll margin,
3875 instead of window-end which does the wrong thing at eob.
3876 (try_cursor_movement): Minor optimization.
3877 (redisplay_window): If scroll margin is defined, don't assume
3878 window doesn't need scrolling.
3879
38802008-08-06 Adrian Robert <Adrian.B.Robert@gmail.com>
3881
3882 * config.in: Regenerate.
3883
3884 * Makefile.in: Move nsXXX.m dependencies into big alphabetical list.
3885 (mostlyclean): Don't delete *.d under NS.
3886
3887 * nsterm.h (NS_HAVE_INTEGER): Change to NS_HAVE_NSINTEGER.
3888
38892008-08-06 Kenichi Handa <handa@m17n.org>
3890
3891 * xfont.c (xfont_list_family): Return a list of symbols, not strings.
3892
38932008-08-06 Andreas Schwab <schwab@suse.de>
3894
3895 * config.in: Regenerate.
3896
38972008-08-05 Chong Yidong <cyd@stupidchicken.com>
3898
3899 * xdisp.c (redisplay_window): Don't enforce scroll-margin when
3900 forcing a window start.
3901
3902 * fileio.c (Vauto_save_list_file_name): Move here from file.el.
3903 (auto_save_1): Update modtime when auto-save-list-file-name is on.
3904
39052008-08-04 Adrian Robert <Adrian.B.Robert@gmail.com>
3906
3907 * emacs.c (main): Under NS, set working dir to HOME when get a "psn"
3908 argument.
3909
39102008-08-05 Juanma Barranquero <lekktu@gmail.com>
3911
3912 * buffer.c (syms_of_buffer) <scroll-up-aggressively>:
3913 <scroll-down-aggressively, before-change-functions>:
3914 <after-change-functions>: Reflow docstrings.
3915
39162008-08-04 Adrian Robert <Adrian.B.Robert@gmail.com>
3917 Ken Raeburn <raeburn@gnu.org>
3918
3919 Dock menu customization, based on a patch by Ken Raeburn, plus some
3920 other fixes.
3921 * nsmenu.m (dockMenu): New variable.
3922 (EmacsDialog -clicked:): Fix mistake in change of 2008-07-17.
3923
3924 * nsterm.h (dockMenu): Declare.
3925
3926 * nsterm.m (KEY_NS_NEW_FRAME): New definition.
3927 (ns_term_init): Initialize dockMenu.
3928 (EmacsApp -newFrame:, -applicationDockMenu:): New methods.
3929 (EmacsView -windowShouldClose:): Don't behave specially if <= 1 frame
3930 left.
3931
3932 * lisp.h (LSB_TAG): Use on DARWIN_OS, not NS_IMPL_COCOA.
3933
39342008-08-04 Chong Yidong <cyd@stupidchicken.com>
3935
3936 * nsterm.h: Test directly for NS_HAVE_INTEGER before defining it.
3937
3938 * config.in: Regenerate.
3939
39402008-08-04 Seiji Zenitani <zenitani@mac.com>
3941
3942 * nsfns.m (x-create-frame): Set the frame parameter alpha to nil.
3943
39442008-08-04 Chong Yidong <cyd@stupidchicken.com>
3945
3946 * nsterm.h (find_and_call_menu_selection): Fix prototype.
3947
39482008-08-04 Adrian Robert <Adrian.B.Robert@gmail.com>
3949
3950 * emacs.c (main: unexec_init_emacs_zone): Call if on DARWIN_OS.
3951
3952 * keyboard.h: Comment an #endif.
3953
3954 * lisp.h (have_menus_p): Adjust comment.
3955
3956 * menu.c (find_and_return_menu_selection): Fix comparison with
3957 client_data.
3958
3959 * nsmenu.m (popup_activated_flag): New variable.
3960 (popup_activated): New function.
3961 (menu-or-popup-active-p): New exported lisp definition.
3962 (ns_popup_menu): Set popup_activated_flag. Call discard_menu_items()
3963 when popup done.
3964 (ns_popup_dialog): Set popup_activated_flag.
3965
3966 * nsterm.m (EmacsView -conversationIdentifier): Use NSInteger
3967 version for GNUstep (handled by conditional typedef in nsterm.m).
3968 (ns_get_color): Remove special-casing for "darkblue", "dark blue" (now
3969 in rgb.txt).
3970
3971 * process.c (init_process): Use DARWIN_OS, not DARWIN.
3972
3973 * sysselect.h: Conditionalize init_process undef on DARWIN_OS.
3974
3975 * syssignal.h (FORWARD_SIGNAL_TO_MAIN_THREAD): Do it also under NS.
3976
3977 * xdisp.c (redisplay_internal, note_mouse_highlight): Under NS,
3978 shortcircuit if popup_activated like GTK and X toolkit.
3979
3980 * m/inter386.h: Change DARWIN to DARWIN_OS.
3981
3982 * s/darwin.h: Add #define DARWIN_OS. Get rid of C_SWITCH_SYSTEM def.
3983 Change LIBS_MACGUI to LIBS_NSGUI. Move temacs-conditionalized defs
3984 closer to C_SWITCH_SYSTEM_TEMACS so usage is understood. Expand
3985 comment on NO_SOCK_SIGIO.
3986
39872008-08-03 Chong Yidong <cyd@stupidchicken.com>
3988
3989 * nsterm.m (windowDidResize): Remove stopModal call.
3990
39912008-08-03 Andreas Schwab <schwab@suse.de>
3992
3993 * vm-limit.c (get_lim_data) [HAVE_GETRLIMIT && RLIMIT_AS]: Define.
3994 (check_memory_limits): Don't handle HAVE_GETRLIMIT here.
3995
39962008-08-02 Chong Yidong <cyd@stupidchicken.com>
3997
3998 * vm-limit.c (check_memory_limits): Don't use getrlimit on cygwin.
3999 Don't use uninitialized pointer variable when using getrlimit.
4000
40012008-08-02 Jason Rumney <jasonr@gnu.org>
4002
4003 * w32font.c (compute_metrics): Don't mess with glyph_idx setting here.
4004
40052008-08-02 Eli Zaretskii <eliz@gnu.org>
4006
4007 * alloc.c (NSTATICS): Bump to 0x640.
4008
4009 * s/gnu-linux.h (HAVE_PROCFS, LISTPROC, PROCATTR): New defines.
4010
4011 * lisp.h: Add prototype for directory_files_internal.
4012
4013 * process.c (Fsystem_processes_list, Fsystem_process_attributes):
4014 New functions.
4015 (syms_of_process): Defsubr them. Add initializations for various
4016 Q* symbols used in procfs_system_process_attributes.
4017 (procfs_list_system_processes, procfs_system_process_attributes)
4018 [HAVE_PROCFS]: New functions.
4019 (time_from_jiffies, ltime_from_jiffies, get_up_time, procfs_ttyname)
4020 (procfs_get_total_memory): New functions.
4021
40222008-08-01 Juanma Barranquero <lekktu@gmail.com>
4023
4024 * xfaces.c (Fx_load_color_file): Fix previous change;
4025 it is #ifdef WINDOWSNT, not WINDOWS_NT.
4026
40272008-08-01 Michael Albinus <michael.albinus@gmx.de>
4028
4029 * dbusbind.c (xd_read_message): Handle D-Bus error messages.
4030
40312008-08-01 Adrian Robert <Adrian.B.Robert@gmail.com>
4032
4033 * nsterm.h (NSInteger, NSUInteger): Add defines for non-Leopard.
4034
40352008-08-01 Chong Yidong <cyd@stupidchicken.com>
4036
4037 * nsfns.m (ns_frame_parm_handlers): Add empty entry for x_set_alpha.
4038
4039 * nsterm.m (EmacsApp -application:openFiles:): GNUstep does not
4040 define NSApplicationDelegateReplySuccess.
4041 (EmacsView -converstationIdentifier): Use long instead of
4042 NSInteger for GNUstep, since it doesn't have NSInteger.
4043
4044 * xmenu.c: Revert last change.
4045
4046 * keyboard.h: Fix last change.
4047
40482008-08-01 Juanma Barranquero <lekktu@gmail.com>
4049
4050 * xfaces.c (x-load-color-file): Use RGB() instead of manually shifting
4051 on Windows.
4052
40532008-08-01 Adrian Robert <Adrian.B.Robert@gmail.com>
4054
4055 Warning clearing and clean-up in NS port.
4056 * keyboard.h (xmalloc_widget_value, digest_single_submenu):
4057 Add prototypes.
4058 * nsgui.h (FACE_DEFAULT): Remove, unused.
4059 (XGCValues): Change colors to unsigned long.
4060 * nsterm.h (EmacsApp): Add declaration of all methods implemented in
4061 nsterm.m.
4062 (EmacsMenu -addItemWithWidgetValue:): Change to use NSMenuItem class.
4063 (ns_list_fonts): Remove, unused.
4064 (ns_font_to_xlfd, ns_fontname_to_xlfd): Drop prototypes.
4065 * nsfns.m (interpret_services_menu): Use NSMenuItem class.
4066 * nsfont.m (nsfont_open): Fix cast error in glyphs,metrics alloc.
4067 (nsfont_draw): Compare face colors to 0, not nil.
4068 * nsmenu.m (struct widget_value): Drop unneeded declaration.
4069 (EmacsMenu -addItemWithWidgetValue:, -fillWithWidgetValue:)
4070 (-addSubmenuWithTitle:): Use NSMenuItem class.
4071 (ns_popup_menu): Use NO, not NULL, for enabled setting.
4072 * nsterm.m (ns_draw_glyph_string): Don't compare font to ~0.
4073 (ns_clip_to_row): Make gc arg a BOOL.
4074 (ns_draw_fringe_bitmap, ns_draw_window_cursor): Use YES, NO in
4075 ns_clip_to_row() call.
4076 (ns_draw_glyph_string): Drop face comparison to ~0 (no longer
4077 used). Cast FRAME_FONT assignments.
4078 (ns_read_socket): Cast call to EmacsApp-fulfillService:withArg:.
4079 (ns_string_to_lispmod): Change arg to const char.
4080 (ns_term_init): Use NSMenuItem class.
4081 (EmacsApp -openFile:): Move to different section of file.
4082 (EmacsApp -application:openFiles:): Don't return a value, call
4083 -replyToOpenOrPrint:.
4084 (EmacsView -keyDown:): Fix up cast.
4085 (EmacsView -converstationIdentifier): Use NSInteger instead of long.
4086 (EmacsView -menuDown:): Cast tag in call to
4087 find_and_call_menu_selection().
4088 (ns_list_fonts): Remove, unused.
4089 (ns_font_to_xlfd): Make static. Cast result of UTF8String.
4090 (ns_fontname_to_xlfd): Make static.
4091 * w32menu.c (xmalloc_widget_value, digest_single_submenu):
4092 Remove prototypes (now in keyboard.h).
4093 (next_menubar_widget_id): Remove, unused.
4094 * xmenu.c (xmalloc_widget_value, digest_single_submenu):
4095 Remove prototypes (now in keyboard.h).
4096 * xfaces.c (ns_list_fonts, w32_list_fonts): Remove, unused.
4097
40982008-08-01 Dan Nicolaescu <dann@ics.uci.edu>
4099
4100 * Makefile.in (dispnew.o, gtkutil.o, sound.o, atimer.o)
4101 (floatfns.o): Depend on syssignal.h.
4102 (term.o): Depend on syssignal.h, systty.h, and $(INTERVAL_SRC).
4103
4104 * systty.h: Fix previous change that removed BSD_TERMIOS.
4105 Add comments to #ifdefs.
4106
41072008-08-01 Adrian Robert <Adrian.B.Robert@gmail.com>
4108
4109 * w32fns.c (w32-load-color-file): Remove.
4110 (x-open-connection): Use renamed Fx_load_color_file.
4111 * xfaces.c (x-load-color-file): Add.
4112 * nsterm.m (ns_initialize): Load colors from etc/rgb.txt instead of
4113 Emacs.clr.
4114 (hide_hourglass): BLOCK_INPUT before UNBLOCK.
4115
41162008-07-31 Michael Albinus <michael.albinus@gmx.de>
4117
4118 * dbusbind.c (Fdbus_call_method_asynchronously)
4119 (Fdbus_method_error_internal): New defuns.
4120 (xd_read_message): Handle also reply messages.
4121 (Vdbus_registered_functions_table): Extend docstring.
4122
41232008-07-31 Juanma Barranquero <lekktu@gmail.com>
4124
4125 * keyboard.c (gobble_input): Fix previous change.
4126
41272008-07-31 Dan Nicolaescu <dann@ics.uci.edu>
4128
4129 * bitmaps/README:
4130 * xfns.c:
4131 * termcap.c:
4132 * term.c:
4133 * syswait.h:
4134 * systty.h:
4135 * systime.h:
4136 * syssignal.h:
4137 * sysdep.c:
4138 * process.h:
4139 * process.c:
4140 * print.c:
4141 * ndir.h:
4142 * lread.c:
4143 * keyboard.c:
4144 * getpagesize.h:
4145 * floatfns.c:
4146 * fileio.c:
4147 * emacs.c:
4148 * doc.c:
4149 * dispnew.c:
4150 * dired.c:
4151 * data.c:
4152 * callproc.c:
4153 * buffer.c:
4154 * README:
4155 * Makefile.in:
4156 * s/template.h:
4157 * s/msdos.h:
4158 * m/vax.h: Remove VMS support.
4159 * s/vms.h:
4160 * vlimit.h:
4161 * uaf.h:
4162 * temacs.opt:
4163 * param.h:
4164 * ioctl.h: Remove file.
4165
41662008-07-31 Dan Nicolaescu <dann@ics.uci.edu>
4167
4168 * s/ms-w32.h (MULTI_KBOARD): Remove.
4169 * xterm.c:
4170 * xselect.c:
4171 * xfns.c:
4172 * window.c:
4173 * w32term.c:
4174 * w32fns.c:
4175 * terminal.c:
4176 * termhooks.h:
4177 * term.c:
4178 * sysdep.c:
4179 * keyboard.h:
4180 * keyboard.c:
4181 * frame.h:
4182 * frame.c:
4183 * frame.c: Remove references to MULTI_KBOARD, it is now the default.
4184 * config.in: Regenerate.
4185
41862008-07-30 Jason Rumney <jasonr@gnu.org>
4187
4188 * w32font.h (struct w32font_info): Use unicode version of textmetrics.
4189
4190 * w32font.c (w32font_encode_char): Leave as unicode if in range.
4191 (w32font_open_internal): Get unicode version of textmetrics.
4192 Don't enable or disable glyph indices here.
4193 (w32font_open): Disable use of glyph indices.
4194
4195 * w32uniscribe.c (uniscribe_open): Enable use of glyph indices.
4196
41972008-07-30 Chong Yidong <cyd@stupidchicken.com>
4198
4199 * minibuf.c (Vread_buffer_function): Doc fix.
4200
42012008-07-30 John Paul Wallington <jpw@pobox.com>
4202
4203 * minibuf.c (read_buffer_completion_ignore_case): New var.
4204 (Fread_buffer): Use it.
4205
42062008-07-30 Dan Nicolaescu <dann@ics.uci.edu>
4207
4208 * systty.h (sensemode): Remove empty #if. Remove reference to
4209 BSD_TERMIOS, unused.
4210
4211 * sysdep.c: Remove reference to DGUX.
4212 (closedir): Remove reference to BROKEN_CLOSEDIR, unused.
4213
4214 * config.in: Regenerate.
4215
42162008-07-30 Jason Rumney <jasonr@gnu.org>
4217
4218 * w32uniscribe.c (uniscribe_encode_char): Fix glyph buffer size.
4219
42202008-07-29 Jason Rumney <jasonr@gnu.org>
4221
4222 * w32uniscribe.c (uniscribe_shape): Avoid using context if cache
4223 is populated.
4224 (uniscribe_encode_char): Always use uniscribe.
4225 Avoid using context if cache is populated.
4226
42272008-07-29 Jan Djärv <jan.h.d@swipnet.se>
4228
4229 * xmenu.c (Fx_menu_bar_open_internal): Use activate_item signal to
4230 open menu.
4231
4232 * gtkutil.c (menu_nav_ended): Remove.
4233 (create_menus): Remove signal connect for menu_nav_ended.
4234
42352008-07-28 Chong Yidong <cyd@stupidchicken.com>
4236
4237 * xdisp.c (redisplay_window): Check return value of
4238 compute_window_start_on_continuation_line before forcing a window
4239 start.
4240
42412008-07-28 Jason Rumney <jasonr@gnu.org>
4242
4243 * w32font.c (w32font_text_extents): Use w32_metric_cache consistently.
4244
4245 * w32term.c (w32_enable_unicode_output, cleartype_active):
4246 Remove obsolete display options.
4247 (x_draw_glyph_string_background): Don't use old cleartype_active
4248 workaround.
4249 (w32_initialize): Remove cleartype_active initialization.
4250 (syms_of_w32term): Remove w32_enable_unicode_output initialization.
4251
42522008-07-28 Andreas Schwab <schwab@suse.de>
4253
4254 * lisp.h (init_weak_hash_tables, syms_of_font)
4255 (xd_read_queued_messages, syms_of_dbusbind): Declare.
4256 (remove_hash_entry): Don't declare.
4257 * eval.c (maybe_call_debugger): Make static and move before use.
4258 * gtkutil.c: Include <X11/Xft/Xft.h> if HAVE_XFT.
4259 * xdisp.c: Include "gtkutil.h" if USE_GTK.
4260 * xterm.h (x_set_frame_alpha): Declare.
4261
42622008-07-28 Jan Djärv <jan.h.d@swipnet.se>
4263
4264 * gtkutil.c (menu_nav_ended): Revert change from 2008-07-24.
4265 (create_menus): Connect selection-done to menu_nav_ended.
4266
42672008-07-27 Adrian Robert <Adrian.B.Robert@gmail.com>
4268
4269 * nsfns.m (x-create-frame): Add copy of parms argument to beginning.
4270 Set Vx_resource_name to a fallback. Replace read of 'buffered'
4271 parameter with read of 'alpha' one.
4272 (Qns_frame_parameter): Remove.
5582fbc7 4273 * nsselect.m (selection-coding-system)
aac0c6e3
MR
4274 (next-selection-coding-system, Vselection_coding_system)
4275 (Vnext_selection_coding_system): Drop.
4276
42772008-07-27 Adrian Robert <Adrian.B.Robert@gmail.com>
4278
4279 * nsfns.m (do-applescript, do_applescript): Rename to
4280 ns-do-applescript, ns_do_applescript, and move within file.
4281
42822008-07-27 Dan Nicolaescu <dann@ics.uci.edu>
4283
4284 Remove support for Mac Carbon.
4285 * mactoolbox.c:
4286 * macterm.h:
4287 * macterm.c:
4288 * macselect.c:
4289 * macmenu.c:
4290 * macgui.h:
4291 * macfns.c:
4292 * mac.c: Remove file.
4293 * s/darwin.h:
4294 * m/intel386.h:
4295 * xfaces.c:
4296 * xdisp.c:
4297 * window.c:
4298 * tparam.c:
4299 * termhooks.h:
4300 * termcap.c:
4301 * term.c:
4302 * syssignal.h:
4303 * sysselect.h:
4304 * sysdep.c:
4305 * process.c:
4306 * lread.c:
4307 * lisp.h:
4308 * keyboard.c:
4309 * image.c:
4310 * fringe.c:
4311 * frame.h:
4312 * frame.c:
4313 * fontset.c:
4314 * font.h:
4315 * font.c:
4316 * fns.c:
4317 * fileio.c:
4318 * emacs.c:
4319 * dispnew.c:
4320 * dispextern.h:
4321 * config.in:
4322 * atimer.c:
2ae37cf0 4323 * Makefile.in: Remove code for Carbon.
aac0c6e3 4324
f0131492 43252008-07-26 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
aac0c6e3
MR
4326
4327 * macterm.c (XDrawLine) [USE_MAC_IMAGE_IO]: Remove spurious return.
4328
43292008-07-26 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
4330
4331 * macterm.h (kCGBitmapByteOrder32Host): New define for
4332 non-universal SDKs.
4333
4334 * image.c (mac_create_cg_image_from_image, image_load_image_io)
4335 [USE_MAC_IMAGE_IO]: Remove conditionals for kCGBitmapByteOrder32Host.
4336
4337 * macterm.c (XDrawLine, XCreatePixmapFromBitmapData)
4338 [USE_MAC_IMAGE_IO]: Remove conditionals for kCGBitmapByteOrder32Host.
4339
43402008-07-26 David Robinow <drobinow@gmail.com> (tiny change)
4341
4342 * w32inevt.c: Include dispextern.h.
4343
43442008-07-26 Andreas Schwab <schwab@suse.de>
4345
4346 * print.c (print_object): Fix off-by-one in last change.
4347
43482008-07-25 Juanma Barranquero <lekktu@gmail.com>
4349
4350 * term.c (syms_of_term): Don't initialize default_orig_pair,
4351 default_set_foreground and default_set_background on Windows.
4352
43532008-07-25 Jason Rumney <jasonr@gnu.org>
4354
4355 * w32uniscribe.c (uniscribe_shape): Pass NULL for control arg to
4356 ScriptItemize. Clean up return value checking. Remove unused
4357 variables.
4358 (uniscribe_encode_char): Encode non-BMP characters with uniscribe
4359 shaping engine.
4360
4361 * w32font.c (w32font_has_char): Handle the case where we can't
4362 determine the script for a character.
4363
43642008-07-25 Chong Yidong <cyd@stupidchicken.com>
4365
4366 * term.c (syms_of_term): Initialize default_orig_pair,
4367 default_set_foreground, and default_set_background.
4368
4369 * getloadavg.c (nl): Rename to name_list to avoid ncurses.h
4370 clash (bug#86).
4371 (getloadavg): Callers changed.
4372
4373 * image.c (svg_load_image): Fix last change.
4374 (svg_load_image): Use rsvg_handle_get_dimensions to check that
4375 image size is valid. Use g_object_unref instead of deprecated
4376 rsvg_handle_free to free rsvg handle.
4377 (x_from_xcolors): Don't initialize pixmap (silence compiler).
4378
43792008-07-25 Jason Rumney <jasonr@gnu.org>
4380
4381 * w32font.c (w32font_encode_char): Encode characters outside BMP as
4382 surrogates before looking up glyph index.
4383 (w32font_text_extents): Encode as surrogates if falling back to
4384 functions that need UTF-16 wide chars.
4385
4386 * w32uniscribe.c (uniscribe_encode_char): Encode characters outside
4387 BMP as surrogates before looking up glyph index.
4388
43892008-07-25 Chong Yidong <cyd@stupidchicken.com>
4390
4391 * image.c (svg_load_image): Check for failure in return value of
4392 rsvg_handle_get_pixbuf. Free rsvg handle when done.
4393
43942008-07-25 Jason Rumney <jasonr@gnu.org>
4395
4396 * w32font.c (Fx_select_font): Reverse sense of second arg.
4397
43982008-07-24 Stefan Monnier <monnier@iro.umontreal.ca>
4399
4400 * syntax.c (struct lisp_parse_state, char_quoted, inc_bytepos)
4401 (dec_bytepos, find_defun_start): Use EMACS_INT for buffer positions.
4402
4403 * puresize.h (PURESIZE_CHECKING_RATIO): New macro.
4404 (PURESIZE): Use it.
4405
44062008-07-24 Dan Nicolaescu <dann@ics.uci.edu>
4407
4408 * m/amdx86-64.h (HAVE_LIB64_DIR): Consolidate ifdefs.
4409 * m/alpha.h (TEXT_END):
4410 * m/ibmrs6000.h (TEXT_END):
4411 * m/macppc.h (TEXT_END):
4412 * s/darwin.h (TEXT_END):
4413 * s/msdos.h (TEXT_END): Remove, unused.
4414 * s/gnu-linux.h (BSD_PGRPS): Add a comment.
4415 * s/cygwin.h: Remove comment.
4416
4417 * ecrt0.c (NODOT_GLOBAL_START): Remove code, unused.
4418 (DOT_GLOBAL_START): Remove conditional, redundant for CRT0_DUMMIES.
4419 * m/intel386.h (DOT_GLOBAL_START):
4420 * m/vax.h (DOT_GLOBAL_START): Remove, redundant with CRT0_DUMMIES.
4421 (USG): Remove, file not used on USG platforms.
4422
4423 * Makefile.in (HAVE_X11): Remove empty #else.
4424
44252008-07-24 Andreas Schwab <schwab@suse.de>
4426
4427 * fileio.c (Finsert_file_contents): Properly adjust undo list
4428 after format conversion.
4429
44302008-07-24 Jan Djärv <jan.h.d@swipnet.se>
4431
4432 * gtkutil.c (xg_get_font_name): Cast w to GTK_FONT_SELECTION_DIALOG.
4433 (menu_nav_ended): Remove.
4434 (create_menus): Remove signal connect for menu_nav_ended.
4435 (xg_update_menubar): Also take deactivate_cb as parameter, pass it to
4436 create_menus.
4437 (xg_modify_menubar_widgets): Pass deactivate_cb to xg_update_menubar.
4438
44392008-07-23 Jason Rumney <jasonr@gnu.org>
4440
4441 * w32font.c (w32_enumfont_pattern_entity): Return height consistent
4442 with opened font.
4443 (w32font_open): Set font type to gdi.
4444
4445 * w32uniscribe.c (uniscribe_open): Set font type to uniscribe.
4446
44472008-07-23 Dan Nicolaescu <dann@ics.uci.edu>
4448
4449 * s/usg5-4.h (ADDR_CORRECT): Remove, unused.
4450 * unexaix.c (ADDR_CORRECT): Remove conditional, the only user
4451 defines it.
4452 * unexec.c (ADDR_CORRECT): Define unconditionally.
4453
4454 * m/ibmrs6000.h (C_SWITCH_MACHINE): Remove.
4455
4456 * unexec.c: Remove code depending on !COFF and USG, the file is
4457 not used for such systems.
4458
4459 * s/netbsd.h (A_TEXT_OFFSET, A_TEXT_SEEK):
4460 * s/freebsd.h (A_TEXT_OFFSET, A_TEXT_SEEK): Remove, unused.
4461 (LD_SWITCH_SYSTEM_1): Remove, update users.
4462
4463 * s/darwin.h (DATA_END):
4464 * m/intel386.h (DATA_END):
4465 * m/ibmrs6000.h (DATA_END):
4466 * m/alpha.h (DATA_END): Remove, unused.
4467
4468 * config.in: Regenerate.
4469 * s/ms-w32.h (subprocesses): Define unconditionally.
4470 * s/template.h (subprocesses): Update comment.
4471 * s/vms.h (subprocesses):
4472 * s/usg5-4.h (subprocesses):
4473 * s/hpux10-20.h (subprocesses):
4474 * s/gnu-linux.h (subprocesses):
4475 * s/cygwin.h (subprocesses):
4476 * s/bsd-common.h (subprocesses):
4477 * s/aix4-2.h (subprocesses):
4478 * s/darwin.h (subprocesses): Do not define, defined by default now.
4479
4480 * Makefile.in (C_SWITCH_SITE, LD_SWITCH_SITE): Remove, unused.
4481 Remove all references.
4482 (temacs): Add GNUstep specific ld flags.
4483
4484 * nsterm.m (syms_of_nsterm): Provide ns, not ns-windowing,
4485 similarly to what X does.
4486
44872008-07-22 Adrian Robert <Adrian.B.Robert@gmail.com>
4488
4489 * nsfns.m (x-list-fonts): Remove.
4490 (syms_of_nsfns): Drop the x-list-fonts declaration.
4491 * nsterm.m: Get rid of remaining "//" comments.
4492
44932008-07-22 Chong Yidong <cyd@stupidchicken.com>
4494
4495 * xselect.c (Fx_rotate_cut_buffers_internal): Doc fix.
4496
4497 * nsselect.m (Fns_selection_exists_p, Fns_selection_owner_p)
4498 (Fx_get_selection_internal, Fns_rotate_cut_buffers_internal)
4499 (Fns_own_selection_internal, Fx_disown_selection_internal)
4500 (Fns_get_cut_buffer_internal, Fns_store_cut_buffer_internal):
4501
4502 * nsmenu.m (Fns_reset_menu, Fx_popup_menu): Change to use 'doc: /*
4503 ... */' style of docstrings. Doc fixes.
4504
45052008-07-22 Dan Nicolaescu <dann@ics.uci.edu>
4506
4507 * terminfo.c (UP, BC, PC): Undo previous change.
4508
4509 * nsfns.m: Rename ns prefixed functions/variables to the
4510 corresponding x versions. Update references.
4511
45122008-07-22 Stefan Monnier <monnier@iro.umontreal.ca>
4513
4514 * syntax.c (char_quoted): Check "charpos > beg" before decrementing.
4515
45162008-07-22 Dan Nicolaescu <dann@ics.uci.edu>
4517
4518 * nsfns.m (x_set_menu_bar_lines, x_set_tool_bar_lines):
4519 Remove forwarding functions.
4520 (ns_set_menu_bar_lines): Rename to x_set_menu_bar_lines, make
4521 non-static.
4522 (ns_set_tool_bar_lines): Rename to x_set_tool_bar_lines, make
4523 non-static.
4524 (ns_frame_parm_handlers): Use the new names.
4525 (syms_of_nsfns): Move to the end of file.
4526
4527 * nsterm.m (syms_of_nsterm): Move to the end of file.
4528
4529 * dispnew.c (init_display): Remove code for X10.
4530
45312008-07-22 Jason Rumney <jasonr@gnu.org>
4532
4533 * w32proc.c (Fw32_long_file_name): Don't append dir separator to
4534 bare drive.
4535
45362008-07-22 Adrian Robert <Adrian.B.Robert@gmail.com>
4537
4538 * nsterm.m (syms_of_nsterm): Remove debugging println.
4539
45402008-07-22 David Reitter <david.reitter@gmail.com>
4541
4542 * nsfns.m (do_applescript, F_do_applescript): NS version of the
4543 Carbon implementation of the same functionality: execute arbitrary
4544 AppleScript code.
4545
45462008-07-21 Adrian Robert <Adrian.B.Robert@gmail.com>
4547
4548 * nsfns.m (Fx_create_frame, Fx_read_file_name, Fx_get_resource)
4549 (Fx_set_resource, Fx_set_alpha, Fx_server_max_request_size)
4550 (Fx_server_vendor, Fx_server_version, Fx_display_screens)
4551 (Fx_display_mm_height, Fx_display_mm_width)
4552 (Fx_display_backing_store, Fx_display_visual_class)
4553 (Fx_display_save_under, Fx_open_connection)
4554 (Fx_close_connection, Fx_hide_emacs, Fx_font_name)
4555 (Fx_list_colors, Fx_perform_service, Fx_color_defined_p)
4556 (Fx_color_values, Fxw_display_color_p, Fx_display_grayscale_p)
4557 (Fx_display_pixel_width, Fx_display_pixel_height)
4558 (Fx_display_usable_bounds, Fx_display_planes)
4559 (Fx_display_color_cells, Vns_icon_type_alist): Change to use 'doc: /*
4560 ... */' style of docstrings.
4561
45622008-07-21 Dan Nicolaescu <dann@ics.uci.edu>
4563
4564 * m/mips.h (LOAD_AVE_TYPE, LOAD_AVE_CVT): Do not define, not used
4565 on this platform.
4566 (mips):
4567 * m/iris4d.h (mips): Do not define.
4568 * sysdep.c (init_sys_modes): Use __mips__ instead of mips.
4569
4570 * m/ibmrs6000.h (LD_SWITCH_SITE): Remove.
4571
4572 * image.c:
4573 * nsfns.m:
4574 * nsselect.m:
4575 * nsterm.h:
4576 * nsterm.m: Rename ns prefixed functions/variables to the
4577 corresponding x versions. Update references.
4578
4579 * m/ibms390x.h (NO_REMAP): Do not undefine.
4580
4581 * m/amdx86-64.h: Use SOLARIS2 instead of sun.
4582
45832008-07-21 Chong Yidong <cyd@stupidchicken.com>
4584
4585 * nsfns.m: Change NS to Nextstep in docstrings and error messages.
4586 (Fns_create_frame, Fns_read_file_name, Fns_get_resource)
4587 (Fns_set_resource, Fns_set_alpha, Fns_server_max_request_size)
4588 (Fns_server_vendor, Fns_server_version, Fns_display_screens)
4589 (Fns_display_mm_height, Fns_display_mm_width)
4590 (Fns_display_backing_store, Fns_display_visual_class)
4591 (Fns_display_save_under, Fns_open_connection)
4592 (Fns_close_connection, Fns_hide_emacs, Fns_font_name)
4593 (Fns_list_colors, Fns_perform_service, Fns_color_defined_p)
4594 (Fns_color_values, Fxw_display_color_p, Fx_display_grayscale_p)
4595 (Fns_display_pixel_width, Fns_display_pixel_height)
4596 (Fns_display_usable_bounds, Fx_display_planes)
4597 (Fns_display_color_cells, Vns_icon_type_alist): Doc fixes.
4598
45992008-07-21 Ami Fischman <ami@fischman.org> (tiny change)
4600
4601 * print.c (print_object): Check print_depth before searching for
4602 circularities.
4603
46042008-07-21 Michael Albinus <michael.albinus@gmx.de>
4605
4606 * dbusbind.c (Fdbus_register_signal): Use sprintf + strcat instead
4607 only sprintf.
4608
46092008-07-21 Kenichi Handa <handa@m17n.org>
4610
4611 * ftfont.c (adjust_anchor): Check if DeltaValue is not NULL.
4612
46132008-07-20 Andreas Schwab <schwab@suse.de>
4614
4615 * syntax.c (find_start_pos, find_start_value)
4616 (find_start_value_byte, find_start_begv, find_defun_start)
4617 (back_comment, scan_sexps_forward): Use EMACS_INT for buffer positions.
4618
46192008-07-20 Dan Nicolaescu <dann@ics.uci.edu>
4620
4621 * s/sol2-3.h: Insert contents of s/sol2.h.
4622 (LD_SWITCH_SYSTEM): Remove redundant definition.
4623 * s/sol2.h: Remove, unused.
4624
46252008-07-20 Adrian Robert <Adrian.B.Robert@gmail.com>
4626
4627 * nsterm.m (ns_get_color): Recognize HSB,AHSB be synonyms for HSV,AHSV.
4628
46292008-07-20 Adrian Robert <Adrian.B.Robert@gmail.com>
4630
4631 * Makefile.in (ns_appdir): Fix typo in find command.
4632
46332008-07-20 Dan Nicolaescu <dann@ics.uci.edu>
4634
4635 * m/intel386.h (NO_REMAP): Do no define for USG, not used.
4636
4637 * s/usg5-4.h (LIBS_SYSTEM): Remove, system for which this was
4638 added not supported anymore.
4639
4640 * s/usg5-4-2.h (LIBS_SYSTEM):
4641 * s/sol2.h (LIBS_SYSTEM): Do not undefine.
4642
4643 * s/netbsd.h (GETPGRP_NO_ARG, N_TRELOFF):
4644 * s/lynxos.h (GETPGRP_NO_ARG):
4645 * s/hpux10-20.h (NO_SIOCTL_H):
4646 * s/gnu.h (GETPGRP_NO_ARG):
4647 * s/gnu-linux.h (NO_SIOCTL_H):
4648 * s/freebsd.h (GETPGRP_NO_ARG, N_TRELOFF):
4649 * s/cygwin.h (GETPGRP_NO_ARG):
4650 * s/irix6-5.h (LIBS_SYSTEM, GETPGRP_NO_ARG): Remove, unused.
4651 (C_DEBUG_SWITCH): Remove duplicate definition.
4652
4653 * m/ibms390.h: Remove boilerplate comments.
4654
4655 * sysdep.c (closedir): Use SOLARIS2 instead of sun && USG5_4.
4656
4657 * process.c (HAVE_SERIAL): Consolidate ifdefs.
4658 (wait_reading_process_output): Remove code for SunOS, platform not
4659 supported anymore. Use SOLARIS2 instead of sun.
4660
46612008-07-19 Adrian Robert <Adrian.B.Robert@gmail.com>
4662
4663 * font.c (font_open_by_name): Under NS, default lface height to zero.
4664 (font_open_for_lface): Under NS, set size based on frame fontsize.
4665 * nsterm.m (EmacsView-changeFont:): Remove some commented code.
4666 * frame.c (x_set_frame_parameters): Remove HAVE_NS ifdef.
4667
46682008-07-19 Adrian Robert <Adrian.B.Robert@gmail.com>
4669
4670 * nsterm.m (ns_antialias_text, ns_use_qd_smoothing)
4671 (ns_use_system_highlight_color): Switch these from DEFVAR_BOOL to
4672 DEFVAR_LISP and change all code accordingly to use Qt/Qnil instead of
4673 YES/NO.
4674 * nsterm.h (prevUseHighlightColor): Make a Lisp_Object.
4675 * nsfont.m (nsfont_draw): Treat ns_use_qd_smoothing as Lisp_Object.
4676 * Makefile.in (clean): Clear out build destination dir.
4677
46782008-07-19 Adrian Robert <Adrian.B.Robert@gmail.com>
4679
4680 * Makefile.in (nsgui.h-related dependencies): Remove abbrev, xfns,
4681 xterm, xselect.
4682 * lisp.h: Remove declaration of hash_remove.
4683 * nsgui.h: Remove redefinitions of hash_remove.
4684 * fns.c (hash_remove): Rename to hash_remove_from_table.
4685
46862008-07-19 Seiji Zenitani <zenitani@mac.com>
4687
4688 * nsfont.m (nsfont_fmember_to_entity, nsfont_make_fontset_for_font):
4689 strdup() the family UTF8String before modifying it.
4690
46912008-07-19 Adrian Robert <Adrian.B.Robert@gmail.com>
4692
4693 * nsterm.m (ns_maybe_dumpglyphs_background): Compare result from
4694 NS_FACE_BACKGROUND with 0 instead of nil.
4695 * nsfont.m (nsfont_draw): Same.
4696
46972008-07-19 Chong Yidong <cyd@stupidchicken.com>
4698
4699 * nsfns.m (ns_set_background_color): Fix crash.
4700
47012008-07-18 Chong Yidong <cyd@stupidchicken.com>
4702
4703 * Makefile.in (SOME_MACHINE_LISP): Remove ns-carbon-compat.elc.
4704
47052008-07-18 Dan Nicolaescu <dann@ics.uci.edu>
4706
4707 * puresize.h (BASE_PURESIZE): Increase to 1240000.
4708
47092008-07-17 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
4710
4711 * gtkutil.c: Include <config.h> instead of "config.h".
4712
4713 * lisp.h (Foverlay_buffer): Add EXFUN.
4714
4715 * process.c (create_process) [!WINDOWSNT && FD_CLOEXEC]: Wait for
4716 child process to complete child_setup. Undo 2005-09-21 change.
4717
4718 * s/darwin.h: Mention setsid after vfork.
4719
47202008-07-17 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
4721
4722 * Makefile.in (frame.o, keyboard.o, xdisp.o, xfaces.o):
4723 Depend on macgui.h.
4724
4725 * macfns.c (Fx_server_version): Don't use gestaltSystemVersionMajor,
4726 gestaltSystemVersionMinor, or gestaltSystemVersionBugFix.
4727
4728 * macterm.c (keycode_to_xkeysym_table): Add entries for f17, f18,
4729 and f19.
4730 [MAC_OSX] (fn_keycode_to_keycode_table): Likewise.
4731
4732 * macterm.h (gestaltSystemVersionMajor, gestaltSystemVersionMinor)
4733 (gestaltSystemVersionBugFix) [MAC_OS_X_VERSION_MAX_ALLOWED < 1040]:
4734 Remove enumerators.
4735
4736 * mactoolbox.c [USE_MAC_TSM] (mac_handle_text_input_event):
4737 Check if FACE_FROM_ID returns NULL.
4738
47392008-07-17 David Robinow <drobinow@gmail.com> (tiny change)
4740
4741 * w32inevt.c (change_frame_size): Remove extern declaration.
4742 (resize_event, maybe_generate_resize_event): Pass SAFE arg to
4743 change_frame_size.
4744
47452008-07-17 Adrian Robert <Adrian.B.Robert@gmail.com>
4746
4747 * getloadavg.c: Revert last change (2008-07-15).
4748
47492008-07-17 Adrian Robert <Adrian.B.Robert@gmail.com>
4750
4751 * Makefile.in: Replace emacsapp, emacsbindir, emacsappsrc variables
4752 set here with ns_appdir, ns_appresdir, ns_appbindir, ns_appsrc) set
4753 from configure.
4754
47552008-07-17 Dan Nicolaescu <dann@ics.uci.edu>
4756
4757 * s/sol2.h:
4758 * s/sol2-4.h: Reorganize conditionals.
4759
4760 * ecrt0.c: Remove code depending on m68000, not used anymore.
4761
4762 * fns.c (hash_remove): Make static.
4763 * lisp.h (hash_remove): Don't prototype.
4764
4765 * m/ibmrs6000.h:
4766 * m/ibms390x.h:
4767 * m/macppc.h: Remove boilerplate comments.
4768
4769 * m/sparc.h (A_TEXT_OFFSET, A_TEXT_SEEK): Remove, only used on
4770 Solaris, which does not need them.
4771
4772 * m/vax.h: Remove comments about unsupported systems.
4773
4774 * s/darwin.h: Reorganize ifdefs.
4775
47762008-07-17 Andreas Schwab <schwab@suse.de>
4777
4778 * s/cygwin.h (LIB_STANDARD_LIBSRC): Don't define.
4779
47802008-07-17 Stefan Monnier <monnier@iro.umontreal.ca>
4781
4782 Use SDATA. Follow coding convention of placing operators at
4783 beginning of next line rather than end of previous line, and placing
4784 spaces around infix operators.
4785
4786 * Makefile.in: Undef LIB_STANDARD before defining it to silence warning
4787 in case it was defined already.
4788 USE @GNUSTEP_MAKEFILES@ rather than envvars.
4789 * nsterm.m (ns_term_init): Pass Qt and Qnil rather than YES/NO to
4790 ns_default.
4791 (applicationShouldTerminate, setValuesFromPanel): Use EQ to compare
4792 Lisp_Objects.
4793 * nsterm.h (Fx_display_grayscale_p, Fx_display_planes)
4794 (ns_defined_color, ns_color_to_lisp): Declare.
4795 * nsselect.m (ns_handle_selection_request, ns_handle_selection_clear)
4796 (Fns_own_selection_internal): Make the big ugly hack more explicit, so
4797 it's accepted even with USE_LISP_UNION_TYPE.
4798 * nsmenu.m (ns_update_menubar): Use EQ to compare Lisp_Objects.
4799 (update_frame_tool_bar): Remove apparently obsolete tests for
4800 non-integerness of f->tool_bar_lines.
4801 (windowShouldClose, addButton, clicked, runDialogAt): Make the big ugly
4802 hack more explicit, so it's accepted even with USE_LISP_UNION_TYPE.
4803 * nsfont.m (nsfont_driver): Use just 0 rather than an invalid cast.
4804 (nsfont_open): Don't confuse NULL for Qnil.
4805 * nsfns.m (ns_implicitly_set_icon_type): Use EQ to compare Lisp_Objects.
4806 * menu.h (find_and_call_menu_selection):
4807 * menu.c (find_and_call_menu_selection): Use just int for vector size.
4808 (find_and_return_menu_selection): Always return something.
4809 * frame.h: Include dispextern.h for Display_Info.
4810 (display_x_get_resource): Declare.
4811
48122008-07-16 Adrian Robert <Adrian.B.Robert@gmail.com>
4813
4814 * syntax.c: Remove stdio.h include accidentally introduced in
4815 Emacs.app commit.
4816 * Makefile.in: Change GNUSTEP to NS_IMPL_GNUSTEP, COCOA to
4817 NS_IMPL_COCOA.
4818 * keyboard.c (handle_async_input, input_available_signal): Remove
4819 BSD4_1 conditional code, introduced accidentally in Emacs.app commit.
4820
48212008-07-16 Stefan Monnier <monnier@iro.umontreal.ca>
4822
4823 * nsterm.m (lisp_to_mod): Use parse_solitary_modifier instead.
4824 (ns_lisp_to_color): Don't mess with internal Lisp data fields.
4825 (ns_term_init, ns_term_shutdown, initFrameFromEmacs, ns_list_fonts):
4826 Use SDATA.
4827
4828 * keymap.c: Remove all NS-specific code.
4829 (where_is_preferred_modifier, Vwhere_is_preferred_modifier): New vars.
4830 (preferred_sequence_p): Rename from ascii_sequence_p; pay attention to
4831 where_is_preferred_modifier, return a different value depending on how
4832 preferred is the binding.
4833 (where_is_internal): Adjust accordingly.
4834 (Fwhere_is_internal): Refresh where_is_preferred_modifier.
4835 Adjust to new preferred_sequence_p.
4836 (syms_of_keymap): Declare `where-is-preferred-modifier'.
4837 * keyboard.c (parse_solitary_modifier): Not static any more.
4838 * keyboard.h (parse_solitary_modifier): Declare.
4839
48402008-07-16 Andreas Schwab <schwab@suse.de>
4841
4842 * Makefile.in (SOME_MACHINE_LISP): Remove easy-mmode, fix spelling
4843 of easymenu.
4844
48452008-07-16 Chong Yidong <cyd@stupidchicken.com>
4846
4847 * xdisp.c (move_it_in_display_line): Account for word wrap, so
4848 that we don't move off the line.
4849
48502008-07-16 Stefan Monnier <monnier@iro.umontreal.ca>
4851
4852 * keyboard.c (Qsuper): Remove.
4853 (parse_menu_item): Don't call where_is_internal specially for NS.
4854
48552008-07-16 Dan Nicolaescu <dann@ics.uci.edu>
4856
4857 * s/gnu-linux.h: Remove boilerplate comments.
4858
4859 * m/alpha.h (__ELF__): Consolidate conditions.
4860
4861 * m/m68k.h (linux): Use GNU_LINUX instead.
4862 Remove boilerplate comments.
4863
4864 * m/intel386.h: Undo refactoring from previous change.
4865 (LIB_STANDARD): All systems that define USG define LIB_STANDARD
4866 too, remove dead code.
4867 (linux): Use GNU_LINUX instead.
4868
48692008-07-16 Jason Rumney <jasonr@gnu.org>
4870
4871 * w32gui.h: Repeat 26 June changes lost by last change.
4872
48732008-07-16 Dan Nicolaescu <dann@ics.uci.edu>
4874
4875 * systty.h: Remove code for Aix on 386, unsupported platform.
4876
4877 * s/ms-w32.h: Remove boilerplate comments.
4878 (fcloseall, fgetchar, flushall, fputchar, getw, putw): Remove, unused.
4879
4880 * s/gnu-linux.h (TERM): Remove support.
4881 (HAVE_SYSVIPC): Remove, unused.
4882 (A_TEXT_OFFSET, A_TEXT_SEEK, ADJUST_EXEC_HEADER): Remove, not used
4883 for this system.
4884
4885 * process.c: Remove support for IRIS, unused.
4886 Remove support for TERM, not relevant anymore.
4887
4888 * unexalpha.c (DEFAULT_ENTRY_ADDRESS): Remove, replace the only
4889 used with the definition.
4890
4891 * s/aix4-2.h (static): Do not undef.
4892
4893 * m/ibmrs6000.h: Remove code depending on USG5_4, this file is
4894 only used on Aix.
4895 (HAVE_SYSVIPC): Remove, unused.
4896
4897 * m/hp800.h (CANNOT_DUMP): Do not undef.
4898
4899 * m/alpha.h: Fix comment.
4900
4901 * s/usg5-4.h (HAVE_SYSVIPC): Remove, unused.
4902 (USG_SHARED_LIBRARIES): Remove, only used in unexec.c which is not
4903 used by this configuration.
4904 * emacs.c: Remove code depending on USG_SHARED_LIBRARIES.
4905 * unexec.c: Remove code depending on HPUX and
4906 USG_SHARED_LIBRARIES, not used with this file. Remove code
4907 depending on IRIS, unused. Remove if 0-ed code.
4908
4909 * s/template.h: Remove comments about static.
4910
4911 * sysdep.c: Remove code depending on NEED_PTEM_H, unused.
4912 Remove if 0-ed code.
4913 (baud_convert): Don't depend on BAUD_CONVERT, all definitions the
4914 were the same as the default.
4915 * s/vms.h (BAUD_CONVERT): Remove, same as the default.
4916 Remove boilerplate comments.
4917 * s/hpux10-20.h (BAUD_CONVERT): Remove, same as the default.
4918 (HAVE_SYSVIPC): Remove, unused.
4919 (LD_SWITCH_SYSTEM_TEMACS): Simplify, hp9000s700 not supported anymore.
4920
4921 * m/ia64.h (PNTR_COMPARISON_TYPE): Remove, same as the default.
4922 Remove boilerplate comments.
4923 * m/amdx86-64.h (PNTR_COMPARISON_TYPE): Remove, same as the default.
4924 Remove boilerplate comments.
4925 * m/ibms390x.h (PNTR_COMPARISON_TYPE): Remove, same as the default.
4926 Remove boilerplate comments.
4927 * lisp.h (PNTR_COMPARISON_TYPE): Define it unconditionally.
4928
4929 * m/intel386.h (DATA_SEG_BITS): Remove definitions, only used on
4930 USG systems which do not use DATA_SEG_BITS.
4931 Refactor code. Remove boilerplate comments.
4932
4933 * m/ibms390.h:
4934 * m/m68k.h:
4935 * s/bsd-common.h:
4936 * s/cygwin.h:
4937 * s/darwin.h:
4938 * s/freebsd.h:
4939 * s/gnu.h:
4940 * s/msdos.h: Remove boilerplate comments.
4941
4942 * m/iris4d.h: Remove boilerplate comments and code for systems that
4943 do not use this file.
4944 (IRIS_4D): Remove, unused.
4945
4946 * m/mips.h: Remove boilerplate comments and code for systems that
4947 do not use this file.
4948 (SIGN_EXTEND_CHAR):
4949 * m/arm.h (SIGN_EXTEND_CHAR): Remove, unused.
4950 * unexmips.c: Remove file, unused.
4951
4952 * editfns.c (Fuser_full_name): Replace the only use of
4953 USER_FULL_NAME with its value.
4954 * config.in: Regenerate.
4955
49562008-07-16 David Reitter <david.reitter@gmail.com>
4957
4958 * Makefile.in: Add ns-win, ns-carbon-compat, easy-mmode and
4959 easy-menu to SOME_MACHINE_LISP for the new NeXTstep port.
4960
49612008-07-16 Glenn Morris <rgm@gnu.org>
4962
4963 * emacs.c (system-type): Doc fix.
4964
49652008-07-15 Stefan Monnier <monnier@iro.umontreal.ca>
4966
4967 * keyboard.c (parse_menu_item): Don't use cachelist, even under NS.
4968 If the cache doesn't work, let's fix it, rather than work around it.
4969
49702008-07-15 Adrian Robert <Adrian.B.Robert@gmail.com>
4971
4972 * Makefile.in: Correct additions for nsfont.o in last commit.
4973 * nsfont.m: New file (forgot last commit).
4974
49752008-07-15 Chris Hall <chris@web.workinglinux.com> (tiny change)
4976
4977 * callproc.c (set_initial_environment): Initialize
4978 Vprocess_environment under CANNOT_DUMP (fixes crash when
4979 batch-compiling for bootstrap).
4980
49812008-07-15 Chris Hall <chris@web.workinglinux.com> (tiny change)
4982 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
4983
4984 (make_initial_frame): Call init_frame_faces(f) in CANNOT_DUMP case --
4985 fix crash due to different init order.
4986
49872008-07-15 Adrian Robert <Adrian.B.Robert@gmail.com>
4988
4989 Changes and additions for NeXTstep windowing system (Cocoa and
4990 GNUstep) support.
4991
4992 * Makefile.in:
4993 * config.in: Support defines and build commands for NS port.
4994 * blockinput.h (BLOCK_INPUT, UNBLOCK_INPUT, TOTALLY_UNBLOCK_INPUT)
4995 (UNBLOCK_INPUT_TO): Don't use under NS unless EXPERIMENTAL_CONTROL_G.
4996 * dispextern.h: Include nsgui.h and add needed typedefs under NS
4997 windowing.
4998 (struct face): Add synth_ital field.
4999 * dispnew.c: Include nsterm.h when compiling under NS windowing.
5000 (init_display): Initialize Vinitial_window_system to "ns" when so
5001 compiled.
5002 * emacs.c: Include GSConfig.h when compiling under GNUstep.
5003 (display_arg): Use under NS.
5004 (main): Under NS, allocate autorelease pool and handle command line
5005 args. Move syms_of_xmenu() call under #ifdef HAVE_X_WINDOWS.
5006 (standard_args): Add NS-specific args.
5007 (shut_down_emacs): Shut down NS terminal if compiled under NS.
5008 * font.c (DEFAULT_ENCODING): New variable.
5009 (font_find_for_lface): Use it.
5010 (syms_of_font): Load syms_of_nsfont under NS.
5011 * font.h: Declare nsfont_driver when compiled under NS.
5012 * fontset.c: When compiling under NS, include nsterm.h.
5013 (fontset_from_font): Autoconstruct fontset under NS.
5014 * frame.c (various): Under NS, include nsterm.h, add Qns window system
5015 symbol, document and use it.
5016 (do_switch_frame): When for_deletion under Cocoa, add
5017 Fraise_frame(Qnil).
5018 (x_set_frame_parameters): Ensure font attribute changes are picked up.
5019 (x_get_arg): Allow "yes" and "no" as boolean values.
5020 (syms_of_frame): Declare Qns. Init Vdefault_frame_scroll_bars to
5021 Qright under Cocoa.
5022 (focus-follows-mouse): Default to 0 under NS.
5023 * frame.h (enum output_method): Add output_ns.
5024 (external_tool_bar, external_menu_bar, FRAME_EXTERNAL_TOOLBAR)
5025 (FRAME_EXTERNAL_MENU_BAR): Use under NS.
5026 (FRAME_WINDOW_P): NS-specific definition.
5027 * fringe.c (max_used_fringe_bitmap): Make public.
5028 * getloadavg.c (mach/mach.h): Include it under NeXT descendant OS's.
5029 (getloadavg): Use NeXT code under descendant OS's.
5030 * image.c (includes and header section, x_create_bitmap_from_data)
5031 (x_create_bitmap_from_file, free_bitmap_record, image_background)
5032 (image_background_transparent, x_clear_image_1)
5033 (x_create_x_image_and_pixmap, x_destroy_x_image, x_put_x_image)
5034 (Create_Pixmap_From_Bitmap_Data, xpm_load_image, lookup_rgb_color)
5035 (x_to_xcolors, x_from_xcolors, x_disable_image)
5036 (x_build_heuristic_mask, syms_of_image): Add NS support parallel to
5037 other GUIs, including XPM support using code originally written for
5038 Carbon GUI.
5039 (png_load, jpeg_load, tiff_load, gif_load): Add implementations
5040 using NS API.
5041 (image_ascent): Use font metrics macros instead of direct struct field
5042 access.
5043 * keyboard.c (includes): Add nsterm.h when compiling under NS.
5044 (kbd_buffer_get_event): Handle NS as other GUI windowing systems.
5045 Also, handle NS as GTK for menu bar purposes.
5046 (make_lispy_event): Handle NS as other GUI windowing systems, and as X
5047 toolkit where they differ.
5048 (parse_menu_item): Prefer keybindings using 'super' modifier. Also,
5049 use cachelist, still needed under NS.
5050 * keyboard.h (ENCODE_MENU_STRING, XtPointer, Boolean): Handle as NTGUI.
5051 (struct widget_value): Define it here for menu.c.
5052 * keymap.c (includes): Include modifier internals.
5053 (lisp_to_mod, modifier_sequence_p): New functions, compiled only under
5054 NS.
5055 (where_is_internal, Fwhere_is_internal): When compiled under NS, add
5056 support for preferring sequences using certain modifiers, specified by
5057 the FIRSTONLY argument.
5058 * lisp.h (hash_remove): Rename to avoid name clash when compiling
5059 under NS GNUstep implementation.
5060 (USE_LSB_TAG): Use it under Cocoa when compiling under NS.
5061 * lread.c (init_lread): Treat NS as HAVE_CARBON for turn_off_warning.
5062 * menu.c: Include nsterm.h under NS.
5063 (single_menu_item, parse_single_submenu, xmalloc_widget_value)
5064 (free_menubar_widget_tree_value, update_submenu_strings)
5065 (find_and_call_menu_selection): Treat NS as X and NT.
5066 (find_and_return_menu_selection): New function, used for popup menus.
5067 * nsgui.h:
5068 * nsterm.h:
5069 * nsfns.m:
5070 * nsimage.m:
5071 * nsmenu.m:
5072 * nsselect.m:
5073 * nsterm.m: New files.
5074 * process.c (wait_reading_process_output): Under NS, call ns_select()
5075 instead of plain select().
5076 * syntax.c (char_quoted): Under NS, avoid a crash when called near
5077 beginning of buffer.
5078 * sysselect.h (init_process): Rename when compiling under Cocoa to
5079 avoid name conflict.
5080 * termhooks.h (display_info): Add ns_display_info to union.
5081 * terminal.c (Fterminal_live_p): Add ns to terminal types.
5082 * terminfo.c (UP, BC, PC): Don't declare when compiling under NS in
5083 COCOA environment.
5084 * unexnext.c: Update to work with mach API on Mac OS X, and to use new
5085 unexec() signature. (Note, this will dump, but the resulting file
5086 crashes; unexosx is used instead; keeping around for reference and
5087 possible aid in getting dump working under GNUstep.)
5088 * w32gui.h (button_type, widget_value): Remove definitions (now in
5089 keyboard.h).
5090 * window.c: Include nsterm.h when compiling under NS.
5091 * xdisp.c (includes): Include nsterm.h when compiling under NS.
5092 (set_frame_menubar, update_menu_bar, display_menu_bar): Handle NS as
5093 other GUI windowing systems.
5094 (update_tool_bar, redisplay_tool_bar, redisplay_window): Handle NS as
5095 GTK.
5096 (x_consider_frame_title): Under NS, set icon type and frame
5097 modified-state indicator; use ns_set_name_as_filename() when using
5098 formatted title.
5099 (update_window_cursor): Make public when compiling under NS.
5100 (display_hourglass_p, syms_of_xdisp, hourglass_shown_p)
5101 (hourglass_atimer, Vhourglass_delay
5102 * xfaces.c (header section, init_frame_faces, clear_font_table)
5103 (defined_color, unload_color, x_face_list_fonts)
5104 (prepare_face_for_display): Add NS support parallel to other GUIs.
5105 Emulate GCs like other non-X GUIs.
5106 (split_font_name): Don't lowercase font name under NS.
5107 (merge_face_ref, Finternal_set_lisp_face_attribute): Support stippling
5108 under NS.
5109 * s/darwin.h: Add support for compilation under NS.
5110
51112008-07-15 Jason Rumney <jasonr@gnu.org>
5112
5113 * w32fns.c (Fx_create_frame): Remove duplicate unwind_protect.
5114 (w32_show_hourglass): Rename from show_hourglass.
5115 (w32_hide_hourglass): Rename from hide_hourglass.
5116 (DEFAULT_HOURGLASS_DELAY): Revert from last change.
5117 (Vhourglass_delay): Declare extern.
5118 (hourglass_started): Remove.
5119
5120 * xdisp.c (Vhourglass_delay): Remove static.
5121 (hourglass_started, start_hourglass, cancel_hourglass):
5122 Don't include these versions on WINDOWSNT.
5123
51242008-07-15 Adrian Robert <Adrian.B.Robert@gmail.com>
5125
5126 * dispextern.h (hourglass_shown_p, hourglass_atimer): New extern
5127 variables (formerly in xfns.c).
5128 (show_hourglass, hide_hourglass): New prototypes (same).
5129 * xdisp.c (display_hourglass_p, hourglass_shown_p, hourglass_atimer)
5130 (Vhourglass_delay, DEFAULT_HOURGLASS_DELAY): New variables (formerly
5131 in xfns.c).
5132 (syms_of_xdisp): Declare/initialize display-hourglass,
5133 hourglass-delay. Initialize hourglass_atimer, hourglass_shown_p.
5134 (hourglass_started, start_hourglass, cancel_hourglass): New functions,
5135 formerly in xfns.c.
5136 * xfns.c (display_hourglass_p, hourglass_atimer, hourglass_shown_p)
5137 (Vhourglass_delay, DEFAULT_HOURGLASS_DELAY, hourglass_started)
5138 (start_hourglass, cancel_hourglass): Remove.
5139 (show_hourglass, hide_hourglass): Remove prototypes and static
5140 modifiers.
5141 (syms_of_xfns): Remove display-hourglass, hourglass-delay,
5142 hourglass_atimer, hourglass_shown_p declaration/initialization.
5143 * macfns.c (display_hourglass_p, hourglass_atimer, hourglass_shown_p)
5144 (Vhourglass_delay, DEFAULT_HOURGLASS_DELAY, hourglass_started)
5145 (start_hourglass, cancel_hourglass): Remove.
5146 (show_hourglass, hide_hourglass): Remove prototypes and static
5147 modifiers.
5148 (syms_of_macfns): Remove display-hourglass, hourglass-delay,
5149 hourglass_atimer, hourglass_shown_p declaration/initialization.
5150 * w32fns.c (display_hourglass_p, Vhourglass_delay)
5151 (DEFAULT_HOURGLASS_DELAY): Remove.
5152 (syms_of_w32fns): Remove display-hourglass, hourglass-delay,
5153 hourglass_shown_p declaration/initialization.
5154
51552008-07-14 Jason Rumney <jasonr@gnu.org>
5156
5157 * w32fns.c (w32_get_arg): Remove wrapper function.
5158 (w32_createwindow, x_icon, x_create_tip_frame): Use x_get_arg
5159 directly.
5160 (Fx_create_frame): Sync with xfns.c. Use x_get_arg directly.
5161
51622008-07-14 Kenichi Handa <handa@m17n.org>
5163
5164 * xfont.c (xfont_open): Add workaround for X's bug.
5165
51662008-07-14 Emanuele Giaquinta <emanuele.giaquinta@gmail.com> (tiny change)
5167
5168 * fontset.c: Include <stdio.h> unconditionally.
5169
51702008-07-13 Michael Albinus <michael.albinus@gmx.de>
5171
5172 * dbusbind.c (Fdbus_register_signal): Allow also signal arguments
5173 for filtering.
5174
51752008-07-13 Dan Nicolaescu <dann@ics.uci.edu>
5176
5177 * s/vms.h: Use __GNUC__ instead of _GNUC_.
5178
5179 * m/macppc.h:
5180 * m/alpha.h: Use GNU_LINUX instead of LINUX. Reorganize conditionals.
5181
5182 * m/ibms390x.h (XINT, XUINT): Don't define, same as the default
5183 (SPECIAL_EMACS_INT):
5184 * m/ia64.h (SPECIAL_EMACS_INT):
5185 * m/amdx86-64.h (SPECIAL_EMACS_INT):
5186 * s/gnu.h (NLIST_STRUCT):
5187 * s/aix4-2.h (X11R5_INHIBIT_I18N):
5188 * s/gnu-linux.h (LINUX):
5189 * s/msdos.h (HAVE_FACES):
5190 * s/ms-w32.h (HAVE_FACES): Don't define, unused.
5191
5192 * systty.h:
5193 * sysdep.c (setup_pty): Don't depend on SYSV_PTYS, it is not used
5194 anymore.
5195
51962008-07-12 Dan Nicolaescu <dann@ics.uci.edu>
5197
5198 * syswait.h: Remove old if 0 code. Do not define WAITTYPE, it was
5199 always defined as int.
5200
5201 * s/netbsd.h (HAVE_UNION_WAIT, HAVE_WAIT_HEADER, WAIT_USE_INT):
5202 * s/gnu.h (HAVE_WAIT_HEADER, WAIT_USE_INT, HAVE_UNION_WAIT):
5203 * s/gnu-linux.h (HAVE_WAIT_HEADER):
5204 * s/freebsd.h (HAVE_WAIT_HEADER):
5205 * s/bsd-common.h (HAVE_UNION_WAIT):
5206 * s/aix4-2.h (HAVE_WAIT_HEADER):
5207 * m/mips.h (HAVE_UNION_WAIT):
5208 * s/usg5-4.h (HAVE_WAIT_HEADER, WAITTYPE): Do not define, not used.
5209 (COFF, static): Do not define, they are undefined later in the file.
5210
5211 * process.c (update_status): Don't use a union.
5212 (status_convert):
5213 (sigchld_handler): Use int instead of WAITTYPE.
5214
52152008-07-12 Chong Yidong <cyd@stupidchicken.com>
5216
5217 * indent.c (Fvertical_motion): Restore hscroll before moving to
5218 goal column.
5219
52202008-07-11 Dan Nicolaescu <dann@ics.uci.edu>
5221
5222 * lisp.h: Remove left over code.
5223
52242008-07-11 Andreas Schwab <schwab@suse.de>
5225
5226 * lisp.h: Fix logic in last change.
5227
5228 * menu.h: New file.
5229 * menu.c: Include it.
5230 * xmenu.c: Likewise.
5231 * Makefile.in: Update dependencies.
5232
52332008-07-11 Kenichi Handa <handa@m17n.org>
5234
5235 * fontset.c (fontset_from_font): Cancel the previous change.
5236
52372008-07-11 Dan Nicolaescu <dann@ics.uci.edu>
5238
5239 * lisp.h:
5240 * w32heap.c:
5241 * emacs.c:
5242 * alloc.c: Replace all references of NO_UNION_TYPE with
5243 USE_LISP_UNION_TYPE.
5244
5245 * m/xtensa.h (NO_UNION_TYPE):
5246 * m/vax.h (NO_UNION_TYPE):
5247 * m/template.h (NO_UNION_TYPE):
5248 * m/sparc.h (NO_UNION_TYPE):
5249 * m/mips.h (NO_UNION_TYPE):
5250 * m/macppc.h (NO_UNION_TYPE):
5251 * m/m68k.h (NO_UNION_TYPE):
5252 * m/iris4d.h (NO_UNION_TYPE):
5253 * m/intel386.h (NO_UNION_TYPE):
5254 * m/ibms390x.h (NO_UNION_TYPE):
5255 * m/ibms390.h (NO_UNION_TYPE):
5256 * m/ibmrs6000.h (NO_UNION_TYPE):
5257 * m/ia64.h (NO_UNION_TYPE):
5258 * m/hp800.h (NO_UNION_TYPE):
5259 * m/arm.h (NO_UNION_TYPE):
5260 * m/amdx86-64.h (NO_UNION_TYPE):
5261 * m/alpha.h (NO_UNION_TYPE): Remove definition, all platform were
5262 defining it the same.
5263
52642008-07-10 Chong Yidong <cyd@stupidchicken.com>
5265
5266 * xdisp.c (move_it_to): Backtrack if past the edge of a wrapped line.
5267
52682008-07-10 Dan Nicolaescu <dann@ics.uci.edu>
5269
5270 * fileio.c:
5271 * sysdep.c
5272 * systty.h:
5273 * m/ibmrs6000.h:
5274 * m/iris4d.h:
5275 * s/aix4-2.h:
5276 * s/freebsd.h:
5277 * s/gnu-linux.h:
5278 * s/hpux10-20.h:
5279 * s/hpux11.h:
5280 * s/netbsd.h:
5281 * s/sol2-3.h:
5282 * s/sol2-4.h:
5283 * s/sol2.h:
5284 * s/usg5-4.h:
5285 * s/vms.h: Remove references to unused variables.
5286
52872008-07-10 Andreas Schwab <schwab@suse.de>
5288
5289 * ftfont.c (ftfont_resolve_generic_family): Remove foundry from
5290 pattern before matching the generic family.
5291
52922008-07-10 Dan Nicolaescu <dann@ics.uci.edu>
5293
5294 * unexec.c:
5295 * s/vms.h:
5296 * s/usg5-4-2.h:
5297 * s/sol2-5.h:
5298 * s/freebsd.h:
5299 * s/darwin.h: Remove dead code.
5300
5301 * m/template.h:
5302 * m/sparc.h:
5303 * m/mips.h:
5304 * m/m68k.h:
5305 * m/iris4d.h:
5306 * m/intel386.h:
5307 * m/ibms390x.h:
5308 * m/ibms390.h:
5309 * m/ia64.h:
5310 * m/hp800.h:
5311 * m/arm.h:
5312 * m/amdx86-64.h: Remove dead code and references to unused
5313 and compiler defined symbols.
5314
5315 * unexmips.c:
5316 * unexelf.c: Remove references to desupported systems.
5317
5318 * m/powermac.h: Remove file, it is now identical to m/macppc.h.
5319
5320 * m/powermac.h: Remove boilerplate comments.
5321 (NO_REMAP): Remove unused definition.
5322
5323 * m/macppc.h (UNEXEC, NO_TERMIO): Don't define, the s/ files
5324 define them.
5325
53262008-07-10 Kenichi Handa <handa@m17n.org>
5327
5328 * xfont.c (xfont_open): Log the reason of failure.
5329
53302008-07-09 Stefan Monnier <monnier@iro.umontreal.ca>
5331
5332 * fontset.c (fontset_get_font_group):
5333 * font.c (font_check_otf): Specify argument types.
5334
53352008-07-09 Kenichi Handa <handa@m17n.org>
5336
5337 * coding.c (detect_coding_utf_8): Set detect_info->found only when
5338 non-ASCII char is found.
5339
5340 * fontset.c (fontset_compare_rfontdef): Fix plus/minus.
5341 (reorder_font_vector): Change the arg preferred_family to font.
5342 Prefer the spec matching with font.
5343 (fontset_get_font_group): New function.
5344 (fontset_find_font): Change the format of an element of a realized
5345 fontset. Use fontset_get_font_group.
5346 (fontset_font): Try the current fontset, the default fontset, the
5347 fallbacks of the current fontset, and the fallbacks of the default
5348 fontset in this order.
5349 (face_for_char): Delete the shortcut to use the current font.
5350 (fontset_from_font): Don't set fonts for Latin in the fontset.
5351
5352 * font.h (font_make_object, font_match_p): Adjust prototypes.
5353
5354 * ftfont.h [FT_BDF_H]: Include FT_BDF_H.
5355
5356 * font.c (font_make_object): New arg entity and pixelsize.
5357 (font_check_otf_features, font_check_otf): New functions.
5358 (font_match_p): Check :lang, :script, and :otf properties.
5359
5360 * xfont.c (xfont_open): Adjust it for the change of
5361 font_make_object.
5362 (xfont_text_extents): Fix initial setting of metrics.
5363
5364 * ftfont.c (struct ftfont_info): New member index, delete member
5365 fc_charset_idx. Make the member order compatible with struct
5366 xftfont_info.
5367 (fc_charset_table): Change charset names to registry names.
5368 (ftfont_pattern_entity): Delete the args registry and
5369 fc_charset_idx. Change the value of :font-entity property
5370 to (FONTNAME . INDEX). Always set :registry property to
5371 `iso10646-1'.
5372 (struct ftfont_cache_data): New struct.
5373 (ftfont_lookup_cache): New arg for_face.
5374 (ftfont_get_fc_charset, ftfont_get_otf): New functions.
5375 (ftfont_driver): Set the member otf_capability.
5376 (ftfont_get_charset): Adjust it for the change of
5377 fc_charset_table.
5378 (OTF_TAG_SYM): New macro.
5379 (ftfont_spec_pattern): Delete the arg fc_charset_idx. Adjust it
5380 for the change of fc_charset_table.
5381 (ftfont_list): Adjust it for the change of ftfont_spec_pattern and
5382 ftfont_pattern_entity. Add FC_INDEX to objset.
5383 (ftfont_match): Adjust it for the change of ftfont_spec_pattern
5384 and ftfont_pattern_entity.
5385 (ftfont_open): Adjust it for the change of ftfont_lookup_cache,
5386 font_make_object, struct ftfont_info.
5387 (ftfont_has_char): Use ftfont_get_fc_charset.
5388 (ftfont_otf_features, ftfont_otf_capability): New functions.
5389 (ftfont_shape): Use ftfont_get_otf.
5390 (ftfont_text_extents): Fix initial setting of metrics.
5391
5392 * xftfont.c (struct xftfont_info): New member ft_size. Make the
5393 member order compatible with struct ftfont_info.
5394 (xftfont_open): Add FC_CHARSET to the pattern. Set
5395 xftfont_info->ft_size. Don't unlock the face. Check BDF
5396 properties if appropriate.
5397 (xftfont_close): Unlock the face.
5398 (xftfont_anchor_point, xftfont_shape): Deleted.
5399 (syms_of_xftfont): Don't set members anchor_point and shape of
5400 xftfont_driver.
5401
5402 * w32uniscribe.c (uniscribe_open): Adjust it for the change of
5403 font_make_object.
5404
5405 * w32font.c (w32font_open): Adjust it for the change of
5406 font_make_object.
5407 (w32font_open_internal): Don't set properties of font_object here.
5408
54092008-07-08 Chong Yidong <cyd@stupidchicken.com>
5410
5411 * macfns.c (x_create_tip_frame):
5412 * w32fns.c (x_create_tip_frame):
5413 * xfns.c (x_create_tip_frame): Pass parameter argument to
5414 face-set-after-frame-default.
5415
5416 * xfaces.c (Finternal_merge_in_global_face): Save merged
5417 attributes for the default face back into the face vector.
5418
54192008-07-08 Andreas Schwab <schwab@suse.de>
5420
5421 * fontset.h: Declare fontset_from_font. Don't declare
5422 new_fontset_from_font and fontset_from_font_name.
5423 * xterm.c: Include "fontset.h".
5424 * Makefile.in (xterm.o): Update dependencies.
5425
54262008-07-08 Glenn Morris <rgm@gnu.org>
5427
5428 * m/sparc.h: Define __sparc__ rather than sparc. (Bug#507.)
5429 * alloc.c, ecrt0.c: Use __sparc__ rather than sparc.
5430
54312008-07-07 Chong Yidong <cyd@stupidchicken.com>
5432
5433 * frame.c (Qinhibit_face_set_after_frame_default): Var deleted.
5434 (x_set_frame_parameters): Don't bind it.
5435
54362008-07-07 Juanma Barranquero <lekktu@gmail.com>
5437
5438 * w32fns.c (map_w32_filename): Declare extern.
5439
54402008-07-07 Jason Rumney <jasonr@gnu.org>
5441
5442 * w32term.c (WS_EX_LAYERED): Define if not already.
5443
54442008-07-06 Chong Yidong <cyd@stupidchicken.com>
5445
5446 * xfaces.c (set_font_frame_param): Don't try to set the font
5447 parameter if it is still unspecified in the lface.
5448
54492008-07-05 Chong Yidong <cyd@stupidchicken.com>
5450
5451 * xfaces.c (Finternal_merge_in_global_face): Don't realize default
5452 face if it didn't already exist.
5453
5454 * xdisp.c (try_window_id): Give up if word-wrapping is on.
5455
54562008-07-05 Andreas Schwab <schwab@suse.de>
5457
5458 * xdisp.c (get_it_property): Move out of HAVE_WINDOW_SYSTEM section.
5459
54602008-07-05 Chong Yidong <cyd@stupidchicken.com>
5461
5462 * xdisp.c (IT_OVERFLOW_NEWLINE_INTO_FRINGE): Turn it off if
5463 word-wrapping.
5464 (IT_DISPLAYING_WHITESPACE): New macro.
5465 (move_it_in_display_line_to): Handle MOVE_TO_X requests properly
5466 when word-wrapping. Simplify word-wrapping logic. Use correct
5467 pixel positions when saving copies of the iterator.
5468 (display_line): Use proper wrap point if the last character on a
5469 line was preceded by whitespace.
5470
54712008-07-04 Stefan Monnier <monnier@iro.umontreal.ca>
5472
5473 * Makefile.in (${etc}DOC): Depend on ${lisp} rather than ${shortlisp}.
5474
54752008-07-04 Kenichi Handa <handa@m17n.org>
5476
5477 * fns.c (Fstring_to_unibyte): Delete the arg ACCEPT-LATIN-1.
5478
5479 * lisp.h: EXFUN adjusted for the change of Fstring_to_unibyte.
5480
54812008-07-02 Jason Rumney <jasonr@gnu.org>
5482
5483 * xfns.c (syms_of_xfns): Only define x-select-font when both
2ae37cf0 5484 HAVE_FREETYPE and USE_GTK.
aac0c6e3
MR
5485
5486 * xdisp.c (next_element_from_display_vector): Move assignment out
5487 of if statement.
5488
54892008-07-02 Toru Tsuneyoshi <t_tuneyosi@hotmail.com>
5490
5491 * lisp.h (Qdelete_file, Qdelete_directory): Declare extern.
5492
5493 * fileio.c (delete_by_moving_to_trash, Qmove_file_to_trash): New vars.
5494 (syms_of_fileio): Initialize and export them.
5495 (Fdelete_directory, Fdelete_file): Optionally delete via trash.
5496
5497 * w32fns.c (FOF_NO_CONNECTED_ELEMENTS): Define if not already.
5498 (Fsystem_move_file_to_trash): New function.
5499 (syms_of_w32fns): Export it to lisp.
5500
55012008-07-01 Jason Rumney <jasonr@gnu.org>
5502
5503 * w32font.c (w32font_text_extents): Don't count overhang as part
5504 of width.
5505
55062008-06-30 Miles Bader <miles@gnu.org>
5507
5508 * dispextern.h (struct glyph, struct it, struct iterator_stack_entry):
5509 Add `avoid_cursor_p' field.
5510
5511 * xdisp.c (push_it, pop_it): Save/restore avoid_cursor_p field.
5512 (set_cursor_from_row): Skip glyphs with avoid_cursor_p set.
5513 (append_glyph, append_composite_glyph, produce_image_glyph)
5514 (append_stretch_glyph): Initialize avoid_cursor_p.
5515 (get_it_property): Rename from `get_line_height_property'.
5516 (x_produce_glyphs): Use get_it_property.
5517 (handle_line_prefix, push_display_prop): New functions.
5518 (display_line, move_it_in_display_line_to): Handle line/wrap prefixes.
5519 (Vwrap_prefix, Qwrap_prefix, Vline_prefix, Qline_prefix):
5520 New variables.
5521 (syms_of_xdisp): Initialize them.
5522
55232008-06-30 Kenichi Handa <handa@m17n.org>
5524
5525 * xftfont.c (xftfont_open): Don't call FcConfigSubstitute and
5526 XftDefaultSubstitute (they are called in XftFontMatch).
5527 (xftfont_open): Fix args to ftfont_font_format.
5528
5529 * ftfont.c (fc_charset_table): New member lang.
5530 (ftfont_resolve_generic_family): New arg pattern.
60612c8f 5531 (ftfont_spec_pattern): Check fc_charset_table[]->lang.
aac0c6e3
MR
5532 (ftfont_list): Call ftfont_resolve_generic_family with `pattern'.
5533 (ftfont_open): Fix args to ftfont_font_format.
5534 (ftfont_font_format): New arg filename.
5535
55362008-06-30 Chong Yidong <cyd@stupidchicken.com>
5537
5538 * xfaces.c (Finternal_merge_in_global_face): If default face was
5539 modified, realize it again. Update the font face attribute.
5540
55412008-06-29 Jason Rumney <jasonr@gnu.org>
5542
5543 * w32term.c (x_set_frame_alpha): Fix logic.
5544
55452008-06-29 Kenichi Handa <handa@m17n.org>
5546
5547 * fontset.c (Finternal_char_font): Return font-object instead of
5548 font-name.
5549
5550 * composite.c (get_composition_id): Fix the width calculation for TAB.
5551
55522008-06-29 Stefan Monnier <monnier@iro.umontreal.ca>
5553
5554 * indent.c (Fvertical_motion): Properly handle float column arg.
5555
55562008-06-28 Jason Rumney <jasonr@gnu.org>
5557
5558 * w32term.c (pfnGetFontUnicodeRanges): Remove unused function pointer.
5559 (pfnSetLayeredWindowAttributes): New function pointer.
5560 (w32_initialize): Initialize it when supported.
5561 (x_set_frame_alpha): New function.
5562
5563 * w32fns.c (Fx_create_frame): Initialize frame parameter `alpha'.
5564 (w32_frame_parm_handlers): Set alpha handler.
5565
5566 * frame.c (x_set_alpha) [HAVE_NTGUI]: Call x_set_frame_alpha.
5567
55682008-06-27 Jason Rumney <jasonr@gnu.org>
5569
5570 * w32fns.c (x_to_w32_font, w32_to_x_font, x_to_w32_weight)
5571 (w32_to_x_weight, w32_to_all_x_charsets): Remove obsolete functions.
5572 (w32_to_x_charset, x_to_w32_charset)
5573 (Qw32_charset_ansi, Qw32_charset_symbol, Qw32_charset_default)
5574 (Qw32_charset_shiftjis, Qw32_charset_hangeul, Qw32_charset_johab)
5575 (Qw32_charset_chinesebig5, Qw32_charset_gb2312, Qw32_charset_oem)
5576 (Qw32_charset_easteurope, Qw32_charset_turkish, Qw32_charset_baltic)
5577 (Qw32_charset_russian, Qw32_charset_arabic, Qw32_charset_greek)
5578 (Qw32_charset_hebrew, Qw32_charset_vietnamese, Qw32_charset_thai)
5579 (Qw32_charset_mac, Vw32_charset_info_alist): Move to w32font.c.
5580 (Qw32_charset_unicode): Remove.
5581 (syms_of_w32fns): Update for above changes.
5582
5583 * w32font.c (w32_to_x_charset, x_to_w32_charset)
5584 (Qw32_charset_ansi, Qw32_charset_symbol, Qw32_charset_default)
5585 (Qw32_charset_shiftjis, Qw32_charset_hangeul, Qw32_charset_johab)
5586 (Qw32_charset_chinesebig5, Qw32_charset_gb2312, Qw32_charset_oem)
5587 (Qw32_charset_easteurope, Qw32_charset_turkish, Qw32_charset_baltic)
5588 (Qw32_charset_russian, Qw32_charset_arabic, Qw32_charset_greek)
5589 (Qw32_charset_hebrew, Qw32_charset_vietnamese, Qw32_charset_thai)
5590 (Qw32_charset_mac, Vw32_charset_info_alist): Move from w32fns.c.
5591 (syms_of_w32font): Update for above changes.
5592
55932008-06-27 Dan Nicolaescu <dann@ics.uci.edu>
5594
5595 * s/usg5-4.h: Fix previous change: keep the correct branch of a
5596 removed #if.
5597 (USG_SHARED_LIBRARIES): Remove duplicate definition.
5598
55992008-06-26 Juanma Barranquero <lekktu@gmail.com>
5600 Eli Zaretskii <eliz@gnu.org>
5601
5602 * makefile.w32-in (LOCAL_FLAGS):
5603 Don't include WINDOWSNT, DOS_NT and _UCHAR_T.
5604
5605 * sysdep.c (_spawnlp, _getpid):
5606 Declare with explicit _cdecl instead of _CRTAPI1.
5607
5608 * editfns.c (Fget_internal_run_time):
5609 Check for WINDOWSNT with #ifdef, not #if.
5610
56112008-06-26 Jason Rumney <jasonr@gnu.org>
5612
5613 * w32font.h (FONT_HANDLE, FONT_TEXTMETRIC): New macros.
5614
5615 * w32term.c (x_draw_glyph_string_foreground)
5616 (x_draw_composite_glyph_string_foreground): Sync with xterm.c.
5617 Use FONT_HANDLE macro.
5618 (x_draw_glyph_string): Use FONT_TEXTMETRIC macro.
5619
5620 * w32uniscribe.c (uniscribe_otf_capability, uniscribe_shape)
5621 (uniscribe_encode_char): Use FONT_HANDLE macro.
5622
5623 * w32font.c (Fx_select_font): Use FONT_HANDLE macro.
5624 (w32font_text_extents): Use precast w32_font.
5625 (w32font_close): Free cached metrics.
5626 (w32font_open_internal): Allocate space for name on stack.
5627
56282008-06-26 Chong Yidong <cyd@stupidchicken.com>
5629
5630 * xdisp.c (extend_face_to_end_of_line): Fix last change.
5631
56322008-06-26 Jason Rumney <jasonr@gnu.org>
5633
5634 * w32term.h (FONT_AVG_WIDTH): Remove obsolete macro.
5635 (CP_8BIT, CP_UNICODE, CP_UNKNOWN): Remove obsolete constants.
5636
56372008-06-26 Juanma Barranquero <lekktu@gmail.com>
5638
5639 * Makefile.in (SOME_MACHINE_OBJECTS): Remove w32bdf.o.
5640
56412008-06-26 Jason Rumney <jasonr@gnu.org>
5642
5643 * w32bdf.c, w32bdf.h: Remove obsolete files.
5644
5645 * makefile.w32-in: Remove refs to w32bdf.h and w32bdf.c.
5646
5647 * w32gui.h: Don't include w32bdf.h.
5648 (XCharStruct, enum w32_char_font_type, W32FontStruct):
5649 Remove obsolete font support.
5650
5651 * w32font.h (struct w32font_info): Remove compat_w32_font.
5652 Add hfont member.
5653 (FONT_COMPAT): Remove obsolete macro.
5654
5655 * w32font.c (w32font_close): Remove compat code. Delete hfont member.
5656 (w32font_encode_char, w32font_text_extents): Use new hfont member.
5657 (w32font_open_internal): Remove compat code. Set new hfont member.
5658 (Fx_select_font): Use new hfont member.
5659
5660 * w32uniscribe.c (uniscribe_otf_capability, uniscribe_shape)
5661 (uniscribe_encode_char): Use new hfont member.
5662
5663 * w32term.c (x_draw_glyph_string_foreground)
5664 (x_draw_composite_glyph_string_foreground): Use new hfont member.
5665 (x_draw_glyph_string): Use metrics in w32font_info.
5666
56672008-06-26 Kenichi Handa <handa@m17n.org>
5668
5669 * xdisp.c (handle_auto_composed_prop): Fix for the terminal case.
5670
56712008-06-26 Dan Nicolaescu <dann@ics.uci.edu>
5672
5673 * unexnext.c:
5674 * m/ews4800.h:
5675 * m/hp9000s300.h:
5676 * m/ibm370aix.h:
5677 * m/mips-siemens.h:
5678 * m/ncr386.h:
5679 * m/next.h:
5680 * m/pmax.h:
5681 * m/powerpcle.h:
5682 * m/tandem-s2.h:
5683 * s/386bsd.h:
5684 * s/bsd386.h:
5685 * s/bsd4-1.h:
5686 * s/bsd4-2.h:
5687 * s/bsdos2-1.h:
5688 * s/bsdos2.h:
5689 * s/bsdos3.h:
5690 * s/bsdos4.h:
5691 * s/nextstep.h:
5692 * s/ultrix4-3.h:
5693 * s/usg5-0.h:
5694 * s/usg5-2-2.h:
5695 * s/usg5-2.h:
5696 * s/usg5-4-3.h:
5697 * s/ux4800.h:
5698 * s/uxpds.h:
5699 * s/uxpv.h: Remove support for obsolete systems.
5700 * s/hpux.h, s/hpux10.h, s/hpux8.h, s/hpux9.h, s/hpux9shr.h:
8f3a3ac2 5701 Remove, insert contents in s/hpux10-20.h.
aac0c6e3
MR
5702 * s/aix3-1.h, s/aix3-2-5.h, s/aix3-2.h, s/aix4-1.h, s/aix4.h:
5703 Remove, insert contents in s/aix4-2.h.
5704 * s/usg5-3.h: Remove, insert contents in s/usg5-4.h.
5705 * s/bsd4-3.h: Rename to ...
5706 * s/bsd-common.h: ... this.
5707 * data.c:
5708 * doc.c:
5709 * ecrt0.c:
5710 * emacs.c:
5711 * fileio.c:
5712 * floatfns.c:
5713 * keyboard.c:
5714 * mem-limits.h:
5715 * print.c:
5716 * process.c:
5717 * sysdep.c:
5718 * syssignal.h:
5719 * systty.h:
5720 * syswait.h:
5721 * term.c:
5722 * unexec.c:
5723 * unexelf.c:
5724 * unexhp9k800.c:
5725 * m/hp800.h:
5726 * m/ibmrs6000.h:
5727 * m/mips.h:
5728 * m/vax.h:
5729 * s/darwin.h:
5730 * s/freebsd.h:
5731 * s/gnu.h:
5732 * s/ms-w32.h:
5733 * s/msdos.h:
5734 * s/netbsd.h:
5735 * s/template.h: Remove references to obsolete variables.
5736
5737 * Makefile.in: Add dependencies for all unexec files.
5738 (admindir): Remove unused variable.
5739 (UNEXEC_SRC): Remove references.
5740
57412008-06-25 Chong Yidong <cyd@stupidchicken.com>
5742
5743 * xfns.c (x_default_font_parameter): If Xft is available, first
5744 try Monospace-12 for the default font.
5745
57462008-06-25 Jason Rumney <jasonr@gnu.org>
5747
5748 * xdisp.c (get_glyph_face_and_encoding): Encode invalid glyphs as 0.
5749
57502008-06-25 Stefan Monnier <monnier@iro.umontreal.ca>
5751
5752 * bytecode.c (Fbyte_code): Disable debugging code that doesn't compile.
5753
5754 * buffer.c (syms_of_buffer): Remove default-word-wrap.
5755
57562008-06-25 Juanma Barranquero <lekktu@gmail.com>
5757
5758 * xdisp.c (syms_of_xdisp) <truncate-partial-width-windows>: Doc fix.
5759 <scroll-conservatively>: Fix typo in docstring.
5760
5761 * xselect.c (Fx_send_client_event): Doc fix.
5762
57632008-06-25 Kenichi Handa <handa@m17n.org>
5764
5765 * xfaces.c (Fx_list_fonts): Call Flist_fonts with the arg PREFER.
5766
5767 * font.c (font_parse_fcname): Remove unused variables.
5768 (font_sort_entites): Delete the arg SPEC. Caller changed.
5769 Fix for the case of ! best_only.
5770 (font_delete_unmatched): Check DPI and AVGWIDTH too.
5771
5772 * lisp.h (Fstring_to_unibyte): EXFUN it.
5773
5774 * character.h (str_to_unibyte): Extern it.
5775
5776 * character.c (str_to_unibyte): New function.
5777
5778 * fns.c (Fstring_to_unibyte): New function.
5779 (syms_of_fns): Defsubr it.
5780
57812008-06-24 Kenichi Handa <handa@m17n.org>
5782
5783 * font.c (font_score): Even if the PIXEL_SIZE is the same, check
5784 DPI too.
5785 (font_sort_entites): Setup prefer_prop[FONT_DPI_INDEX] too.
5786
57872008-06-24 Andreas Schwab <schwab@suse.de>
5788
5789 * Makefile.in (${lispsource}loaddefs.el): Rename from
5790 ../lisp/loaddefs.el.
5791 (bootstrap-clean): Do what distclean does but don't remove
5792 Makefile.
5793 (distclean): Depend on bootstrap-clean and remove Makefile.
5794
57952008-06-24 Chong Yidong <cyd@stupidchicken.com>
5796
5797 * buffer.h (struct buffer): New member word_wrap.
5798
5799 * buffer.c (syms_of_buffer): New variables default-word-wrap and
5800 word-wrap.
5801 (init_buffer_once): Initialize them.
5802
5803 * dispextern.h (struct it): Replace bool truncate_lines_p with a
5804 line_wrap enum possessing three possible values.
5805
5806 * termopts.h: Replace truncate_partial_width_windows with
5807 Vtruncate_partial_width_windows.
5808
5809 * dispnew.c (direct_output_for_insert): Avoid direct output when
5810 inserting a space with word wrap on.
5811
5812 * indent.c (compute_motion): Obey integer values of
5813 truncate-partial-width-windows.
5814
5815 * xdisp.c (Vtruncate_partial_width_windows): New Lisp_Object,
5816 replacing truncate_partial_width_windows.
5817 (init_iterator): If Vtruncate_partial_width_windows is an integer,
5818 truncate only if the window width is below that integer.
5819 (start_display, resize_mini_window, produce_stretch_glyph)
5820 (display_string, move_it_in_display_line_to): Use line_wrap.
5821 (back_to_previous_visible_line_start, reseat_1): Reset
5822 string_from_display_prop_p.
5823 (display_line): Extend default face to end of line when wrapping.
5824
58252008-06-24 Kim F. Storm <storm@cua.dk>
5826
5827 * xdisp.c (display_line, move_it_in_display_line_to): Add ability
5828 to wrap continued lines at word boundaries.
5829
58302008-06-24 Jason Rumney <jasonr@gnu.org>
5831
5832 * font.c (Ffont_face_attributes): Multiply pixel size before point
5833 conversion to avoid multiplying rounding error.
5834
58352008-06-23 Jason Rumney <jasonr@gnu.org>
5836
5837 * w32term.c (x_draw_glyph_string_background)
5838 (x_draw_glyph_string): Remove old bdf font code.
5839
5840 * w32term.h (FONT_TYPE_FOR_UNIBYTE, FONT_TYPE_FOR_MULTIBYTE): Remove.
5841
58422008-06-22 Kenichi Handa <handa@m17n.org>
5843
5844 * font.c (font_find_for_lface): Try the adstyle specified in
5845 the property of LFACE_FONT of LFACE (if any).
5846
58472008-06-21 Seiji Zenitani <zenitani@mac.com>
5848 Ryo Yoshitake <ryo@shiftmode.net>
5849
5850 * xterm.c (x_set_frame_alpha): Add x_catch_errors for bug#437.
5851
58522008-06-22 Stefan Monnier <monnier@iro.umontreal.ca>
5853
5854 * Makefile.in (${lisp} ${SOME_MACHINE_LISP}, ../lisp/loaddefs.el):
5855 Use $(BOOTSTRAPEMACS) rather than witness-emacs.
5856 (bootstrap-emacs${EXEEXT}): Merge witness-emacs into it.
5857 (witness-emacs): Remove.
5858 (lisp, shortlisp): Move loaddefs.el earlier.
5859 (mostlyclean): Forget about witness-emacs.
5860
58612008-06-22 Glenn Morris <rgm@gnu.org>
5862
5863 * Makefile.in (witness-emacs): Depend on temacs${EXEEXT}.
5864 (.SUFFIXES): Declare .el.elc as a suffix rule, for non-GNU makes.
5865
58662008-06-21 Stefan Monnier <monnier@iro.umontreal.ca>
5867
5868 * Makefile.in (PRECOMP): Remove.
5869 (${lisp} ${SOME_MACHINE_LISP}): Remove pseudo dependency on PRECOMP.
5870 (witness-emacs): Run `compile-first'.
5871 (.el.elc): Use the new compile-onefile target.
5872
58732008-06-21 Kenichi Handa <handa@m17n.org>
5874
5875 * xftfont.c (xftfont_open): Handle QCembolden only when
5876 FC_EMBOLDEN is defined.
5877
58782008-06-21 Andreas Schwab <schwab@suse.de>
5879
5880 * Makefile.in (witness-emacs): Use ../lisp, not $(lispsource).
5881 (.el.elc): Likewise.
5882
58832008-06-21 Miles Bader <miles@gnu.org>
5884
5885 * Makefile.in (../lisp/loaddefs.el): Build autoloads in the lisp
5886 build dir, not the lisp source dir.
5887
58882008-06-21 Stefan Monnier <monnier@iro.umontreal.ca>
5889
5890 * Makefile.in (emacs${EXEEXT}): Link the new emacs to bootstrap-emacs.
5891 (bootstrapclean): Remove.
5892 (.el.elc): New rule.
5893 (PRECOMP): New var.
5894 (../lisp/subdirs.el): Remove.
5895 (bootstrap-emacs${EXEEXT}): Remove subdirs.el and charpro.el dependency.
5896 (witness-emacs): New target.
5897 (mostlyclean): Remove witness-emacs as well.
5898 (../lisp/loaddefs.el, ${lisp} ${SOME_MACHINE_LISP}):
5899 Add witness-emacs dependency.
5900
59012008-06-20 Chong Yidong <cyd@stupidchicken.com>
5902
5903 * font.c (Ffont_face_attributes): Omit key-attribute pairs not
5904 defined by the font.
5905
59062008-06-20 Stefan Monnier <monnier@iro.umontreal.ca>
5907
5908 * Makefile.in (emacs${EXEEXT}): Depend on the machine-specific files.
5909 (bootstrap-clean): New target that keeps TAGS around.
5910 (../lisp/subdirs.el, ../lisp/loaddefs.el): New targets.
5911 (bootstrap-emacs${EXEEXT}): Depend on subdirs.el.
5912
59132008-06-20 Jason Rumney <jasonr@gnu.org>
5914
5915 * w32fns.c, w32term.c, w32term.h, w32gui.h [OLD_FONT]:
5916 Remove obsolete font code.
5917
5918 * w32font.c (font_matches_spec): Use csb bitfield from font signature
5919 to determine language support.
5920
59212008-06-20 Stefan Monnier <monnier@iro.umontreal.ca>
5922
5923 * sysdep.c (cfsetspeed): New fun extracted from the code.
5924 (cfmakeraw): Move before first use.
5925
59262008-06-20 Angelo Graziosi <angelo.graziosi@alice.it> (tiny change)
5927
5928 * sysdep.c (cfmakeraw): Provide fallback implementation.
5929 (serial_configure): Provide fallback implementation of cfsetspeed.
5930
59312008-06-20 Kenichi Handa <handa@m17n.org>
5932
5933 * xftfont.c (xftfont_open): Add FOUNDRY, SPACING, DPI, SCALABLE to
5934 the pattern.
5935
5936 * fontset.c (fontset_from_font): Copy font_spec before changing
5937 the elements.
5938
5939 * xfns.c (x_default_font_parameter): Try "monospace-12" too.
5940
59412008-06-20 Stefan Monnier <monnier@iro.umontreal.ca>
5942
5943 * w32fns.c, xfns.c (x_default_font_parameter): Only set `font-param'
5944 for explicit `font' parameters.
5945
5946 * frame.c (x_set_font): Remove unexplained call to fix inf-recursion.
5947
59482008-06-19 Kenichi Handa <handa@m17n.org>
5949
5950 * frame.c: Include <ctype.h>.
5951 (x_set_font_backend): Allow spacing characters in the X resource
5952 for FontBackend.
5953
59542008-06-19 Stefan Monnier <monnier@iro.umontreal.ca>
5955
5956 * w32fns.c, xfns.c (Qfont_param): New var.
5957 (syms_of_w32fns): Initialize it.
5958 (x_default_font_parameter): Record explicit `font' into
5959 `font-parameter'.
5960
59612008-06-18 Kenichi Handa <handa@m17n.org>
5962
5963 * font.c (font_parse_xlfd): Fix previous change.
5964 (font_parse_fcname): Don't use :fc-unknown-spec.
5965 (FRAME_X_DISPLAY_INFO): Be sure to have at least 1 pixel height.
5966 (Fcopy_font_spec): Preserve the order of elements in FONT_EXTRA.
5967 (font_add_log): Prepend the driver name to the resulting fonts.
5968
5969 * ftfont.c (ftfont_pattern_entity): New arg extra. Caller changed.
5970 (ftfont_spec_pattern): Don't check QCfc_unknown_spec and QCname.
5971 (ftfont_list) [FC_FONTFORMAT]: Include FC_FONTFORMAT in objset.
5972
5973 * xftfont.c (QChinting , QCautohint, QChintstyle, QCrgba)
5974 (QCembolden): New variables.
5975 (syms_of_xftfont): DEFSYM them.
5976 (xftfont_open): Call XftFontMatch. Don't trust the result of
5977 XftTextExtents8 if the pixel_size is less than 5.
5978
59792008-06-18 Andreas Schwab <schwab@suse.de>
5980
5981 * font.c (Ffont_face_attributes): Only define if HAVE_WINDOW_SYSTEM.
5982 (syms_of_font): Only defsubr if HAVE_WINDOW_SYSTEM.
5983
59842008-06-18 Jason Rumney <jasonr@gnu.org>
5985
5986 * w32font.c (w32font_list, w32font_match): Add logging.
5987
5988 * w32uniscribe.c (uniscribe_list, uniscribe_match): Add logging.
5989
59902008-06-17 Chong Yidong <cyd@stupidchicken.com>
5991
5992 * font.c (font_parse_fcname): Store divider characters for
5993 unknown-spec list. For known key symbols, intern using correct
5994 symbol name.
5995
59962008-06-17 Kenichi Handa <handa@m17n.org>
5997
5998 * xfaces.c (realize_default_face): If the frame is not on window
5999 system, set the fontset of face to nil.
6000
60012008-06-17 Naohiro Aota <nao.aota@gmail.com> (tiny change)
6002
6003 * fontset.c (fontset_pattern_regexp): Escape some reg-expr characters.
6004
60052008-06-16 Juanma Barranquero <lekktu@gmail.com>
6006
6007 * dispextern.h (lookup_non_ascii_face, split_font_name_into_vector)
6008 (build_font_name_from_vector): Delete externs.
6009
6010 * xfaces.c (struct font_name): Don't declare.
6011
60122008-06-16 Stefan Monnier <monnier@iro.umontreal.ca>
6013
6014 * font.c (font_unparse_gtkname): Use EQ to compare Lisp_Objects.
6015
60162008-06-16 Chong Yidong <cyd@stupidchicken.com>
6017
6018 * font.c (font_parse_fcname): Fix handling of unknown-spec string.
6019
60202008-06-16 Juanma Barranquero <lekktu@gmail.com>
6021
6022 * font.c (Ffont_spec): Fix usage in docstring.
6023 (Ffont_face_attributes): Doc fix.
6024
60252008-06-16 Andreas Schwab <schwab@suse.de>
6026
6027 * font.c (Ffont_face_attributes): Fix definition.
6028
60292008-06-16 Jason Rumney <jasonr@gnu.org>
6030
6031 * font.h (font_style_symbolic_from_value): Remove.
6032
6033 * font.c (font_style_symbolic_from_value): Remove.
6034 (font_style_symbolic): Revert to pre 2008-06-13 version.
6035
6036 * w32font.c (w32_to_fc_weight): New function.
6037 (w32font_full_name, logfont_to_fcname): Use it.
6038
60392008-06-16 Kenichi Handa <handa@m17n.org>
6040
6041 * font.c (font_check_object): Delete it.
6042 (font_clear_cache): Check if a font-object is alive.
6043 (font_open_entity): Likewise. Set FONT_OBJLST_INDEX of a
6044 font-object to nil.
6045 (font_close_object): Don't check FONT_CLOSE_OBJECT.
6046 (font_at): Don't call font_check_object.
6047 (Ffont_get): Return a symbol for :weight, :slant, and :width.
6048
60492008-06-16 Katsumi Yamaoka <yamaoka@jpl.org>
6050
6051 * puresize.h (BASE_PURESIZE): Increase to 1230000.
6052
60532008-06-16 Chong Yidong <cyd@stupidchicken.com>
6054
6055 * font.c (font_parse_fcname): Correctly parse KEY=VAL values.
6056
60572008-06-15 Chong Yidong <cyd@stupidchicken.com>
6058
6059 * font.c (font_parse_fcname): Only one decimal point.
6060 (font_unparse_fcname): Handle data in family and foundry indices
6061 as symbols, not strings.
6062 (font_unparse_gtkname, Ffont_face_attributes): New functions.
6063
6064 * xfns.c (Fx_select_font): Give GTK font dialog the default font name.
6065
6066 * font.h (font_unparse_gtkname): Add prototype.
6067
60682008-06-15 Naohiro Aota <nao.aota@gmail.com> (tiny change)
6069
6070 * fontset.c (fontset_pattern_regexp): Escape `+' characters in pattern.
6071
60722008-06-15 Andreas Schwab <schwab@suse.de>
6073
6074 * font.c (font_update_drivers): Fix crash when no drivers match.
6075
60762008-06-15 Stefan Monnier <monnier@iro.umontreal.ca>
6077
6078 * xfns.c (Fx_create_frame): internal-border-width default to 0 for Gtk.
6079 * gtkutil.c (xg_create_frame_widgets): Don't set internal_border_width.
6080
60812008-06-14 Stefan Monnier <monnier@iro.umontreal.ca>
6082
6083 * xdisp.c (syms_of_xdisp): Default underline-minimum-offset to 1.
6084
60852008-06-13 Stefan Monnier <monnier@iro.umontreal.ca>
6086
6087 * process.c (Fserial_process_configure, Fprocess_send_eof):
6088 Use EQ to compare Lisp_Objects.
6089
60902008-06-13 Jason Rumney <jasonr@gnu.org>
6091
6092 * w32fns.c (Fw32_select_font): Remove old font API function.
6093
6094 * w32font.c (logfont_to_fcname): New function.
6095 (Fx_select_font): New font dialog function compatible with
6096 GTK/fontconfig version.
6097
6098 * font.c (font_style_symbolic_from_value): New function.
6099 (font_style_symbolic): Use it.
6100
6101 * font.h (font_style_symbolic_from_value): Declare new function.
6102
61032008-06-13 Juanma Barranquero <lekktu@gmail.com>
6104
6105 * font.c (syms_of_font) <font-weight-table, font-slant-table>:
6106 <font-width-table>: Fix typos in docstrings.
6107
61082008-06-13 Daniel Engeler <engeler@gmail.com>
6109
6110 These changes add serial port access.
6111 * process.c: Add HAVE_SERIAL.
6112 (Fdelete_process, Fprocess_status, Fset_process_buffer)
6113 (Fset_process_filter, Fset_process_sentinel, Fprocess_contact)
6114 (list_processes_1, select_wrapper, Fstop_process)
6115 (Fcontinue_process, Fprocess_send_eof, kill_buffer_processes)
6116 (status_notify): Modify to handle serial processes.
6117 [HAVE_SERIAL] (Fserial_process_configure)
6118 [HAVE_SERIAL] (make_serial_process_unwind, Fmake_serial_process):
6119 New functions.
6120 * process.h (struct Lisp_Process): Add `type'.
6121 * sysdep.c [HAVE_TERMIOS] (serial_open, serial_configure):
6122 New functions.
6123 * w32.c (_sys_read_ahead, sys_read, sys_write): Modify to handle
6124 serial ports.
b71ac3dd 6125 (serial_open, serial_configure): New functions.
aac0c6e3
MR
6126 * w32.h: Add FILE_SERIAL.
6127 (struct _child_process): Add ovl_read, ovl_write.
6128
61292008-06-13 Kenichi Handa <handa@m17n.org>
6130
6131 * dispextern.h (enum lface_attribute_index): New member
6132 LFACE_FOUNDRY_INDEX.
6133
6134 * font.c (font_score): Delete arg alternate_families. Check only
6135 weight, slant, width, and size. Ignore the difference of alias
6136 style symbols.
6137 (font_sort_entites): Adjust for the above change. Reflect the
6138 order of font-driver to scores.
6139 (font_list_entities): Don't check alternate_familes here.
6140 (font_clear_prop): Handle foundry.
6141 (font_update_lface): Don't parse "foundry-family" form here.
6142 Handle FONT_FOUNDRY_INDEX.
6143 (font_find_for_lface): Likewise. Handle alternate families here.
6144 If registry is nil, try iso8859-1 and ascii-0.
6145 (font_open_for_lface): Pay attention to size in ENTITY.
6146 (font_open_by_name): Simplify by calling font_load_for_lface.
6147 (free_font_driver_list): Delete it.
6148 (font_update_drivers): Preserve the order of backends.
6149 (syms_of_font): Setting of sort_shift_bits adjusted for the change
6150 of font_score and font_sort_entites.
6151 (font_update_sort_order): Likewise.
6152
6153 * xfaces.c (LFACE_FOUNDRY): New macro.
6154 (check_lface_attrs): Check foundry.
6155 (set_lface_from_font): Don't parse "FOUNDRY-FAMILY" form.
6156 (merge_face_vectors): Check foundry.
6157 (merge_face_ref): Likewise.
6158 (Finternal_set_lisp_face_attribute): Likewise.
6159 (x_update_menu_appearance): Likewise.
6160 (Finternal_get_lisp_face_attribute): Likewise.
6161 (lface_hash): Likewise.
6162 (lface_same_font_attributes_p): Likewise.
6163 (x_supports_face_attributes_p): Likewise.
6164 (tty_supports_face_attributes_p): Likewise.
6165 (Finternal_set_alternative_font_family_alist): Intern strings.
6166 (Finternal_set_alternative_font_registry_alist): Downcase strings.
6167 (realize_default_face): Set LFACE_FOUNDRY (lface).
6168
6169 * xfns.c (Fx_create_frame, x_create_tip_frame): Register X
6170 font-driver at first.
6171
6172 * ftfont.c (ftfont_font_format) [! FC_FONTFORMAT]: Declare "int len;".
6173
61742008-06-12 Emanuele Giaquinta <emanuele.giaquinta@gmail.com> (tiny change)
6175
6176 * lread.c (Fload): Use xfree, not free on saved_doc_string.
6177
61782008-06-12 Jim Meyering <meyering@redhat.com>
6179
6180 Make unexec_free handle NULL the same way free does.
6181 * unexmacosx.c (unexec_free): Ignore a NULL argument.
6182
61832008-06-12 Stefan Monnier <monnier@iro.umontreal.ca>
6184
6185 * character.h (CHAR_TO_BYTE_SAFE): New macro.
6186 * character.c (Fmultibyte_char_to_unibyte): Obey the docstring.
6187 * regex.c (RE_CHAR_TO_UNIBYTE): Use the new macro.
6188 (WEAK_ALIAS): Simplify.
6189 * syntax.c (skip_chars): Don't mark non-byte chars in the fastmap
6190 when searching a unibyte buffer.
6191
61922008-06-12 Chong Yidong <cyd@stupidchicken.com>
6193
6194 * xfns.c (Fx_select_font): Rename from x-font-dialog.
6195
61962008-06-12 Juanma Barranquero <lekktu@gmail.com>
6197
6198 * w32font.c: Include ctype.h.
6199
62002008-06-11 Jason Rumney <jasonr@gnu.org>
6201
6202 * w32font.c (w32font_encode_char): Detect missing glyphs that are
6203 misreported as space.
6204 (add_font_entity_to_list): Support unicode-bmp and unicode-sip
6205 as aliases for registry iso10646-1.
6206
62072008-06-11 Stefan Monnier <monnier@iro.umontreal.ca>
6208
6209 * buffer.c (clone_per_buffer_values): Skip `name'.
6210
62112008-06-11 Chong Yidong <cyd@stupidchicken.com>
6212
6213 * font.c (font_parse_fcname): Fix last change; accept decimal
6214 points in font size.
6215
62162008-06-10 Jason Rumney <jasonr@gnu.org>
6217
6218 * w32uniscribe.c (add_opentype_font_name_to_list):
6219 Skip non unicode fonts.
6220
62212008-06-10 Chong Yidong <cyd@stupidchicken.com>
6222
6223 * xfns.c (Fx_font_dialog): New function.
6224
6225 * gtkutil.c (xg_dialog_response_cb): Rename from
6226 xg_file_response_callback.
6227 (pop_down_dialog): Rename from pop_down_file_dialog.
6228 (xg_get_file_name): Callers changed.
6229 (xg_get_font_name): New function.
6230
6231 * gtkutil.h (xg_get_font_name): Insert prototype.
6232
62332008-06-10 Stefan Monnier <monnier@iro.umontreal.ca>
6234
6235 * xdisp.c (underline_minimum_offset): Rename from xterm.c's
6236 x_underline_minimum_display_offset.
6237 (syms_of_xdisp): Declare it here rather than in xterm.c.
6238 * dispextern.h (underline_minimum_offset): Declare it.
6239 * w32term.c (x_draw_glyph_string): Use it.
6240 * xterm.c (x_underline_minimum_display_offset): Move to xdisp.c.
6241 (syms_of_xterm): Don't declare it any more.
6242 (x_draw_glyph_string): Adjust to the new name.
6243
62442008-06-10 David De La Harpe Golden <david@harpegolden.net> (tiny change)
6245
6246 * xterm.c (x_underline_minimum_display_offset): New var.
6247 (x_draw_glyph_string): Use it.
6248 (syms_of_xterm): Declare it.
6249
62502008-06-10 Chong Yidong <cyd@stupidchicken.com>
6251
6252 * font.c (font_parse_fcname): Accept GTK-style font names too.
6253
62542008-06-10 Stefan Monnier <monnier@iro.umontreal.ca>
6255
6256 * dired.c (file_name_completion): Don't return t if the match is exact
6257 but with different capitalization.
6258 * minibuf.c (Ftry_completion): Simplify.
6259
6260 * window.c (Vwindow_point_insertion_type): New var.
6261 (set_window_buffer): Use it.
6262 (syms_of_window): Init and export it to Lisp.
6263
62642008-06-10 Kenichi Handa <handa@m17n.org>
6265
6266 * font.h (font_intern_prop): Prototype adjusted.
6267
6268 * font.c (font_intern_prop): New arg force_symbol.
6269 (font_parse_xlfd, font_parse_fcname, font_parse_family_registry):
6270 Adjust for the change of font_intern_prop.
6271
6272 * ftfont.c (ftfont_pattern_entity):
6273 * w32font.c (add_font_name_to_list, w32_enumfont_pattern_entity)
6274 (w32_registry):
6275 * w32uniscribe.c (add_opentype_font_name_to_list): Adjust for
6276 the change of font_intern_prop.
6277
62782008-06-09 Juanma Barranquero <lekktu@gmail.com>
6279
6280 * w32menu.c (digest_single_submenu): Declare extern.
6281
62822008-06-09 Jason Rumney <jasonr@gnu.org>
6283
6284 * w32term.c (x_make_frame_visible): Use alternate restore flags.
6285
6286 * w32menu.c (Fx_popup_menu): Unwind protect while building menu.
6287 (parse_single_submenu): Remove.
6288 (digest_single_submenu): Remove.
6289 (syms_of_w32menu): Don't initialise variables that have moved
6290 to menu.c.
6291 (set_frame_menubar): Sync with version in xmenu.c.
6292 (w32_menu_show): Sync with xmenu_show in xmenu.c.
6293
6294 * menu.c (single_keymap_panes, push_menu_pane, push_menu_item):
6295 Make static again.
6296
62972008-06-09 Jason Rumney <jasonr@gnu.org>
6298
6299 Changes to w32 files related to the move of common menu code
6300 to menu.c on 2008-06-08 by Chong Yidong.
6301
6302 * menu.c [HAVE_NTGUI]: Include w32term.h, move widget related
6303 defs to w32gui.h.
6304 (single_keymap_panes, push_menu_item, push_menu_pane):
6305 Make globally visible.
6306
6307 * w32menu.c (enum button_type, widget_value, local_heap, local_alloc)
6308 (local_free, malloc_widget_value, free_widget_value)
6309 (MENU_ITEMS_ITEM_NAME, MENU_ITEMS_ITEM_ENABLE, MENU_ITEMS_ITEM_VALUE)
6310 (MENU_ITEMS_ITEM_EQUIV_KEY, MENU_ITEMS_ITEM_DEFINITION)
6311 (MENU_ITEMS_ITEM_TYPE, MENU_ITEMS_ITEM_SELECTED, MENU_ITEMS_ITEM_HELP)
6312 (MENU_ITEMS_ITEM_LENGTH, enum menu_item_idx): Remove defs.
6313 (menu_items, menu_items_allocated, menu_items_used)
6314 (menu_items_n_panes, menu_items_submenu_depth): Remove global vars.
6315 (init_menu_items, finish_menu_items, discard_menu_items)
6316 (grow_menu_items, push_submenu_start, push_submenu_end)
6317 (push_left_right_boundary, push_menu_pane, push_menu_item)
6318 (keymap_panes, single_keymap_panes, list_of_panes, list_of_items)
6319 (free_menubar_widget_tree_value, parse_single_submenu)
6320 (update_submenu_strings): Remove functions.
6321 (xmalloc_widget_value): Remove and declare extern.
6322
6323 * makefile.w32-in ($(SRC)/menu.$(O)): New target.
6324 (OBJ1): Build it.
6325
6326 * w32gui.h (widget_value, XtPointer, Boolean, enum button_type)
6327 (local_heap, local_alloc, local_free, malloc_widget_value)
6328 (free_widget_value): Define here.
6329
63302008-06-09 Kenichi Handa <handa@m17n.org>
6331
6332 * font.h (Qascii_0): Extern it.
6333
6334 * font.c (Qascii_0): New variable.
6335 (syms_of_font): DEFSYM it.
6336 (font_open_by_name): If the registry "iso8859-1" fails, try also
6337 "ascii-0".
6338
6339 * ftfont.c (ftfont_spec_pattern): Accept the registry `ascii-0'.
6340
63412008-06-08 Kenichi Handa <handa@m17n.org>
6342
6343 * .gdbinit (xfont): New command.
6344
63452008-06-08 Andreas Schwab <schwab@suse.de>
6346
6347 * menu.c [HAVE_X_WINDOWS]: Include "xterm.h".
6348 * Makefile.in (menu.o): Update dependencies.
6349
6350 * Makefile.in (obj): Always add menu.o.
6351 * emacs.c (main): Always call syms_of_menu.
6352 * keyboard.h: Remove extra #ifdef HAVE_X_WINDOW.
6353
63542008-06-08 Chong Yidong <cyd@stupidchicken.com>
6355
6356 * Makefile.in: Compile menu.c.
6357
6358 * lisp.h: Declare syms_of_menu.
6359
6360 * emacs.c (main): Call syms_of_menu.
6361
6362 * keyboard.h: Relocate platform-independent menu definitions from
6363 xmenu.c.
6364
6365 * menu.c: New file. Relocate platform-independent menu
6366 definitions from xmenu.c. Suggested by Adrian Robert.
6367
6368 * xmenu.c: Remove platform-independent menu definitions.
6369 (menu_items menu_items_inuse, menu_items_allocated)
6370 (menu_items_used, menu_items_n_panes)
6371 (menu_items_submenu_depth): Move to keyboard.h.
6372 (init_menu_items, finish_menu_items, unuse_menu_items)
6373 (discard_menu_items, restore_menu_items, save_menu_items)
6374 (grow_menu_items, push_submenu_start, push_submenu_end)
6375 (push_left_right_boundary, push_menu_pane, push_menu_item)
6376 (keymap_panes, single_keymap_panes, single_menu_item)
6377 (list_of_panes, list_of_items, find_and_call_menu_selection)
6378 (xmalloc_widget_value, free_menubar_widget_value_tree)
6379 (parse_single_submenu, digest_single_submenu)
6380 (update_submenu_strings): Move to menu.c.
6381
63822008-06-07 Stefan Monnier <monnier@iro.umontreal.ca>
6383
6384 * dispnew.c (Flast_nonminibuf_frame): Handle the NULL case.
6385
63862008-06-06 Miles Bader <miles@gnu.org>
6387
6388 * xdisp.c (x_produce_glyphs): Calculate tab width based on current
6389 face, not frame default.
6390
63912008-06-05 Martin Rudalics <rudalics@gmx.at>
6392
6393 * window.c (pop_up_windows, pop_up_frames)
6394 (display_buffer_reuse_frames, Vpop_up_frame_function)
6395 (Vdisplay_buffer_function, Veven_window_heights)
6396 (Vspecial_display_buffer_names, Vspecial_display_regexps)
6397 (Vspecial_display_function, Vsame_window_buffer_names)
6398 (Vsame_window_regexps, split_height_threshold)
6399 (Vsplit_window_preferred_function): Move those vars to window.el.
6400 (display_buffer_1, Fspecial_display_p, Fsame_window_p)
6401 (Fdisplay_buffer): Move those functions to window.el.
6402 (syms_of_window): Remove corresponding declarations.
6403 (display_buffer): New function.
6404 (temp_output_buffer_show, Fother_window_for_scrolling): Use it.
6405 * dispnew.c (Flast_nonminibuf_frame): New function.
6406 * buffer.c (Fpop_to_buffer): Move to window.el.
6407
64082008-06-05 Stefan Monnier <monnier@iro.umontreal.ca>
6409
6410 * data.c (set_internal): Fix up call to let_shadows_buffer_binding_p.
6411
64122008-06-05 Kenichi Handa <handa@m17n.org>
6413
6414 * coding.c (detect_coding): Fix previous change.
6415 (detect_coding_system): Likewise.
6416
64172008-06-05 Stefan Monnier <monnier@iro.umontreal.ca>
6418
6419 * character.h (MAKE_CHAR_MULTIBYTE): Check the arg is a (uni)byte.
6420
6421 * keymap.c (Vminibuffer_local_filename_must_match_map):
6422 Rename from Vminibuffer_local_must_match_filename_map.
6423 (syms_of_keymap):
6424 * minibuf.c (Fcompleting_read): Adjust accordingly.
6425 * commands.h: Rename declaration as well.
6426
64272008-06-05 Kenichi Handa <handa@m17n.org>
6428
6429 * font.c (Ffont_spec): Don't use font_parse_family_registry for
6430 family name.
6431 (Ffont_put): Likewise.
6432
6433 * fontset.c (fontset_find_font): Call font_open_for_lface with the
6434 current font-spec.
6435
6436 * xfont.c (xfont_list): Don't set registry to iso8859-1 even if it
6437 is unspecified.
6438
6439 * xfaces.c (realize_x_face): If the font-related face attributes
6440 are the same as those of default face, realize a new fontset from
6441 default->fontset.
6442 (Fx_family_fonts): Use font_parse_family_registry instead of Ffont_put.
6443
64442008-06-05 Stefan Monnier <monnier@iro.umontreal.ca>
6445
6446 * xdisp.c (move_it_in_display_line_to): Improve the type of its args.
6447 (move_it_in_display_line): New wrapper.
6448
6449 * window.c (window_scroll_pixel_based_preserve_x)
6450 (window_scroll_preserve_hpos, window_scroll_preserve_vpos): New vars.
6451 (window_scroll_pixel_based, window_scroll_line_based):
6452 Use them to preserve column positions.
6453 (syms_of_window): Initialize them.
6454
6455 * indent.c (Fvertical_motion): Extend first arg to allow passing an
6456 (HPOS . VPOS) pair.
6457
6458 * dispextern.h (move_it_in_display_line): Declare.
6459
64602008-06-05 Juanma Barranquero <lekktu@gmail.com>
6461
6462 * window.c (Fwindow_parameter): Return VALUE, not (PARAMETER . VALUE).
6463 (Fwindow_parameters): Return copy of parameter alist. Doc fix.
6464 (Fset_window_parameter): Return VALUE, not parameter alist. Doc fix.
6465
64662008-06-04 Juanma Barranquero <lekktu@gmail.com>
6467
6468 * window.c (Fset_window_parameter): Doc fix.
6469 (Fwindow_parameters, Fwindow_parameter): Remove redundant check.
6470
64712008-06-04 Joakim Verona <joakim@verona.se>
6472
6473 * window.h (struct window): Add new member window_parameters.
6474
6475 * window.c (Fwindow_parameters, Fwindow_parameter)
6476 (Fset_window_parameter): New defuns.
6477 (syms_of_window): Defsubr the new defuns.
6478 (make_window): Initialize window_parameters to nil.
6479
64802008-06-04 John Paul Wallington <jpw@pobox.com>
6481
6482 * eval.c (Fdefmacro): Doc fix.
6483
64842008-06-04 Kenichi Handa <handa@m17n.org>
6485
6486 * coding.c (detect_coding): Fix handling of coding->head_ascii.
6487 Be sure to call setup_coding_system when we find a proper coding system.
6488 (detect_coding_system): Fix handling of coding->head_ascii.
6489
64902008-06-03 Andreas Schwab <schwab@suse.de>
6491
6492 * font.c (font_prop_validate_spacing): Fix last change.
6493
64942008-06-03 Kenichi Handa <handa@m17n.org>
6495
6496 * font.c (font_prop_validate_spacing): Handle uppercase symbols.
6497 (font_parse_fcname): Fix handling of unknown key.
6498
6499 * xfont.c (xfont_list): Try an alias.
6500
6501 * charset.c (char_charset): Return NULL if the arg charset_list is
6502 specified and C doesn't belong to any of them.
6503
65042008-06-02 Chip Coldwell <coldwell@redhat.com>
6505
6506 * font.c (font_pixel_size): Don't take cdr of an integer.
6507
65082008-06-02 Jim Meyering <meyering@redhat.com>
6509
6510 Make "xfree (NULL)" a no-op; remove useless if-before-xfree.
6511 * alloc.c (xfree): Return right away for a NULL arg.
6512 * lread.c (nosuffix): Remove now-useless if-before-xfree tests.
6513 * gtkutil.c (xg_gtk_scroll_destroy): Likewise.
6514 * mac.c (create_apple_event_from_event_ref): Likewise.
6515 (create_apple_event_from_drag_ref, cfstring_create_normalized):
6516 Likewise.
6517 * doprnt.c (doprnt1): Likewise.
6518 * frame.c (frame): Likewise.
6519 * keyboard.c (wipe_kboard): Likewise.
6520 * macterm.c (x_free_frame_resources, xlfdpat_destroy, XFreePixmap)
6521 (init_font_name_table, mac_unload_font, x_delete_display): Likewise.
6522 * term.c (tty_default_color_capabilities, maybe_fatal)
6523 (delete_tty): Likewise.
6524 * w16select.c (string): Likewise.
6525 * w32.c (w32_get_resource, SET_ENV_BUF_SIZE): Likewise.
6526 * w32bdf.c (w32_free_bdf_font): Likewise.
6527 * w32fns.c (w32_unload_font): Likewise.
6528 * w32font.c (w32font_close): Likewise.
6529 * window.c (size_window): Likewise.
6530 * xselect.c (receive_incremental_selection): Likewise.
6531 * xterm.c (x_free_frame_resources, x_delete_display): Likewise.
6532 * mactoolbox.c (create_apple_event_from_drag_ref): Likewise.
6533 * w32.c (stat): Likewise.
6534
6535 Remove useless if-before-free tests.
6536 * editfns.c (Fset_time_zone_rule): Likewise.
6537 * lread.c (nosuffix): Likewise.
6538 * ralloc.c (get_bloc): Likewise.
6539 * regex.c (reg_free): Likewise.
6540 * xftfont.c (xftfont_open, xftfont_close): Likewise.
6541 * xrdb.c (get_user_app, get_environ_db, x_load_resources): Likewise.
6542 * xsmfns.c (smc_save_yourself_CB): Likewise.
6543
65442008-06-02 Kenichi Handa <handa@m17n.org>
6545
6546 * font.c (font_find_for_lface): Handle float font size.
6547 (font_open_for_lface): Likewise.
6548
6549 * xfaces.c (x_supports_face_attributes_p): Check face->font before
6550 comparing the properties.
6551
65522008-06-01 Jason Rumney <jasonr@gnu.org>
6553
6554 * w32font.c (w32_enumfont_pattern_entity): Use requested registry.
6555 Treat iso10646-1 and Windows DEFAULT_CHARSET specially.
6556 Duplicate iso8859-1 fonts as iso10646-1 if no registry specified.
6557 Don't add empty script list.
6558 (w32_registry): Only map DEFAULT_CHARSET to iso10646-1 here.
6559
65602008-06-01 Dan Nicolaescu <dann@ics.uci.edu>
6561
6562 * Makefile.in (dot, dotdot): Remove, update users.
6563 ".." has been used elsewhere in the file for a long time.
6564 (LIBXT_STATIC): Remove conditional based on unused variable.
6565
65662008-06-01 Miles Bader <miles@gnu.org>
6567
6568 * xfaces.c (Vface_remapping_alist): New variable.
6569 (syms_of_xfaces): Initialize it.
6570 (enum named_merge_point_kind): New type.
6571 (struct named_merge_point): Add `named_merge_point_kind' field.
6572 (push_named_merge_point): Make cycle detection respect different
6573 named-merge-point kinds.
6574 (lface_from_face_name_no_resolve): Rename from `lface_from_face_name'.
6575 Remove face-name alias resolution.
6576 (lface_from_face_name): New definition using
6577 `lface_from_face_name_no_resolve'.
6578 (get_lface_attributes_no_remap): Rename from `get_lface_attributes'.
6579 Call lface_from_face_name_no_resolve instead of lface_from_face_name.
6580 (get_lface_attributes): New definition that layers face-remapping on
6581 top of get_lface_attributes_no_remap. New arg `named_merge_points'.
6582 (lookup_basic_face): New function.
6583 (lookup_derived_face): Pass new last arg to `get_lface_attributes'.
6584 (realize_named_face): Call `get_lface_attributes_no_remap' instead of
6585 `get_lface_attributes'.
6586 (face_at_buffer_position): Use `lookup_basic_face' to lookup
6587 DEFAULT_FACE_ID if necessary. When optimizing the default-face case,
6588 return default_face's face-id instead of the constant DEFAULT_FACE_ID.
6589
6590 * xdisp.c (init_iterator): Pass base_face_id through
6591 `lookup_basic_face' when we actually use it as a face-id.
6592 (handle_single_display_prop): Use `lookup_basic_face' to lookup
6593 DEFAULT_FACE_ID.
6594
6595 * fontset.c (Finternal_char_font): Use `lookup_basic_face' to
6596 lookup the initial face-id.
6597
6598 * dispextern.h (lookup_basic_face, Vface_remapping_alist): New decls.
6599
66002008-06-01 Juanma Barranquero <lekktu@gmail.com>
6601
6602 * textprop.c (syms_of_textprop) <text-property-default-nonsticky>:
6603 (Fremove_text_properties): Fix typos in docstrings.
6604
66052008-05-31 Kenichi Handa <handa@m17n.org>
6606
6607 * font.c (font_list_entities): Fix the car part of data to be
6608 stored in the cache.
6609
6610 * ftfont.c (ftfont_font_format): Don't use strcasestr.
6611
66122008-05-30 Stefan Monnier <monnier@iro.umontreal.ca>
6613
6614 * chartab.c (Foptimize_char_table, optimize_sub_char_table):
6615 Add a `test' argument so another predicate than `equal' can be used.
6616 (map_sub_char_table): Use `eq' rather than `equal' to merge ranges.
6617 (map_char_table): Remove unused vars `c' and `i'.
6618 * lisp.h (Foptimize_char_table): Adjust declaration.
6619 * charset.c (Fclear_charset_maps): Adjust call to Foptimize_char_table.
6620
66212008-05-30 Kenichi Handa <handa@m17n.org>
6622
6623 * font.c (Ffont_info): Define only if HAVE_WINDOW_SYSTEM is defined.
6624 (syms_of_font): Defsubr Sfont_info only if HAVE_WINDOW_SYSTEM is
6625 defined.
6626
66272008-05-30 Stefan Monnier <monnier@iro.umontreal.ca>
6628
6629 * data.c (Fmake_variable_buffer_local, Fmake_local_variable)
6630 (Fmake_variable_frame_local): Disallow mixing buffer-local and
6631 frame-local settings for the same variable.
6632
66332008-05-30 Kenichi Handa <handa@m17n.org>
6634
6635 * fontset.c (Ffont_info): Move to font.c.
6636 (syms_of_fontset): Delete defsubr of Sfont_info.
6637
6638 * font.c (font_style_to_value, font_score): Delete casting of the
6639 args to xstcasecmp.
6640 (register_font_driver): Increment num_font_drivers only when
6641 registering the driver globally.
6642 (Ffont_info): Move from fontset.c. Handle a font object too.
6643 (syms_of_font): Defsubr Sfont_info.
6644
66452008-05-29 Kenichi Handa <handa@m17n.org>
6646
6647 * coding.h (enum define_coding_utf8_arg_index): New enum.
6648 (enum coding_attr_index): Change coding_attr_utf_16_bom to
6649 coding_attr_utf_bom.
6650 (enum utf_bom_type): Rename from utf_16_bom_type.
6651 (struct utf_16_spec): Adjust for the above change.
6652 (struct coding_system): Add utf_8_bom in `spec' union.
6653
6654 * coding.c (CODING_UTF_8_BOM): New macro.
6655 (enum coding_category): Delete coding_category_utf_8, add
6656 coding_category_utf_8_auto, coding_category_utf_8_nosig, and
6657 coding_category_utf_8_sig.
6658 (CATEGORY_MASK_UTF_8): Delete it.
6659 (CATEGORY_MASK_UTF_8_AUTO, CATEGORY_MASK_UTF_8_NOSIG)
6660 (CATEGORY_MASK_UTF_8_SIG): New macros.
6661 (CATEGORY_MASK_ANY): Delete CATEGORY_MASK_UTF_8, add
6662 CATEGORY_MASK_UTF_8_AUTO, CATEGORY_MASK_UTF_8_NOSIG, and
6663 CATEGORY_MASK_UTF_8_SIG.
6664 (CATEGORY_MASK_UTF_8): New macro.
6665 (UTF_BOM, UTF_8_BOM_1, UTF_8_BOM_2, UTF_8_BOM_3): New macros.
6666 (detect_coding_utf_8): Check BOM.
6667 (decode_coding_utf_8, encode_coding_utf_8): Handle BOM.
6668 (decode_coding_utf_16): Adjust for the change of enum utf_bom_type.
6669 (encode_coding_utf_16): Likewise.
6670 (setup_coding_system): Likewise. Set CODING_UTF_8_BOM (coding).
6671 (detect_coding, detect_coding_system): Handle utf-8-auto.
6672 (Fdefine_coding_system_internal): Handle `bom' property for utf-8.
6673 (syms_of_coding): Fix setting up of Vcoding_category_table.
6674
66752008-05-29 Stefan Monnier <monnier@iro.umontreal.ca>
6676
6677 * process.c (Faccept_process_output): If `millisec' is non-nil,
6678 `seconds' default to 0.
6679 (wait_reading_process_output): Also return non-nil if we read output
6680 from a non-running process.
6681
66822008-05-29 Jason Rumney <jasonr@gnu.org>
6683
6684 * w32font.c (w32font_open_internal): Prefer truetype fonts unless
6685 `raster' specified.
6686 (add_font_entity_to_list): Allow non-opentype truetype fonts back
6687 in the uniscribe backend, but disallow any font that has no
6688 unicode subrange support.
6689
66902008-05-29 Juanma Barranquero <lekktu@gmail.com>
6691
6692 * xfaces.c (Fx_list_fonts, Finternal_copy_lisp_face):
6693 Fix typos in docstrings.
6694
66952008-05-29 Kenichi Handa <handa@m17n.org>
6696
6697 * xfaces.c (Fx_list_fonts): Make it return a list of font names.
6698 (Fx_family_fonts): Set frame correctly.
6699
67002008-05-28 Jason Rumney <jasonr@gnu.org>
6701
6702 * w32term.c (x_draw_glyph_string): Use clipmask if specified.
6703
67042008-05-28 Stefan Monnier <monnier@iro.umontreal.ca>
6705
6706 * fileio.c (Fwrite_region): Delay the defaulting to beg&z to after
6707 calling build_annotations.
6708
67092008-05-28 Juanma Barranquero <lekktu@gmail.com>
6710
6711 * coding.c (Fdecode_coding_region, Fencode_coding_region)
6712 (Fencode_coding_string):
6713 (syms_of_coding) <coding-system-for-read, coding-system-for-write>:
6714 <latin-extra-code-table>: Fix typos in docstrings.
6715 (syms_of_coding) <coding-system-alist>: Doc fix.
6716 (syms_of_coding) <translation-table-for-input>: Reflow docstring.
6717
67182008-05-28 Kenichi Handa <handa@m17n.org>
6719
6720 * fontset.c (Ffont_info): Don't call font_close_object.
6721
6722 * font.c (font_parse_family_registry): Use Ffont_put to validate
6723 foundry and family.
6724 (font_delete_unmatched): Don't check spacing.
6725 (font_list_entities): Add spacing to the spec to list fonts.
6726
6727 * ftfont.c (ftfont_spec_pattern): Don't set FC_SPACING to pattern.
6728 (ftfont_list): Check spacing here. Don't include FC_CHARSET in objset.
6729
6730 * coding.c (encode_coding_raw_text): Fix previous change.
6731 (encode_coding_object): When the dst_object is a buffer and is
6732 different from src_object, move gap to PT.
6733
67342008-05-27 Chong Yidong <cyd@stupidchicken.com>
6735
6736 * xterm.c (x_draw_glyph_string): If a clipmask is specified, use it.
6737
67382008-05-27 Stefan Monnier <monnier@iro.umontreal.ca>
6739
6740 * coding.c (encode_coding_raw_text): Set coding->produced_char for
6741 all branches. Compute it differently.
6742
6743 * xdisp.c [!HAVE_WINDOW_SYSTEM]: Include font.h for --without-x.
6744
67452008-05-27 Juanma Barranquero <lekktu@gmail.com>
6746
6747 * w32font.c (compute_metrics): Rewrite an "else { if () ... else ... }"
6748 into "else if () ... else ...".
6749
67502008-05-27 Jason Rumney <jasonr@gnu.org>
6751
6752 * w32font.c (w32font_open_internal): Determine if glyph indices
6753 are likely to work here.
6754
67552008-05-27 Chong Yidong <cyd@stupidchicken.com>
6756
6757 * xdisp.c (draw_glyphs): If mouse-highlighting is on, attempt to
6758 draw overlap glyphs with appropriate highlighting.
6759
67602008-05-27 Kenichi Handa <handa@m17n.org>
6761
6762 * xfont.c (xfont_open): Fix calculation of font->average_width.
6763
67642008-05-27 Stefan Monnier <monnier@iro.umontreal.ca>
6765
6766 * casefiddle.c (casify_object): Try to guess better whether the
6767 argument is a byte or a char.
6768
67692008-05-26 Andreas Schwab <schwab@suse.de>
6770
6771 * xselect.c (x_reply_selection_request): Properly handle format == 32.
6772 Always send multiples of format size.
6773
6774 * xterm.c (x_set_frame_alpha): Fix type mismatch.
6775
67762008-05-26 Jason Rumney <jasonr@gnu.org>
6777
6778 * w32font.c (w32font_text_extents): Zero whole metrics struct first.
6779 (compute_metrics): Don't set failure if we just cleared the cache.
6780 (w32_weight_table): Remove unused variable.
6781 (w32_enumfont_pattern_entity): Use FONT_SPACING_CHARCELL for
6782 backwards compatibility.
6783
67842008-05-25 Kenichi Handa <handa@m17n.org>
6785
6786 * w32term.c (x_draw_glyph_string):
6787 * xterm.c (x_draw_glyph_string): Fix calculation of underline position.
6788
6789 * xfaces.c: Delete unused function prototypes.
6790 (xstrlwr, font_frame): Delete them.
6791 (clear_face_cache): Delete unused variable.
6792
6793 * xftfont.c (xftfont_open): Delete unused variable.
6794 If underline_thickness is not 1, adjust underline_position.
6795
6796 * ftxfont.c (ftxfont_open): Delete unused variable.
6797
6798 * fontset.c (face_for_char): Optimize for the case of no charset
6799 property.
6800
6801 * font.c (LGSTRING_HEADER_SIZE, LGSTRING_GLYPH_SIZE)
6802 (check_gstring, check_otf_features, otf_list, otf_tag_symbol)
6803 (otf_open, font_otf_capability, generate_otf_features)
6804 (font_otf_DeviceTable, font_otf_ValueRecord, font_otf_Anchor):
6805 Comment out by surrounding "#if 0" and "#endif" for the moment.
6806 (Ffont_drive_otf, Ffont_otf_alternates): Likewise.
6807 (syms_of_font): Codes for accessing above commented out.
6808
68092008-05-24 Eli Zaretskii <eliz@gnu.org>
6810
6811 * w32proc.c: Include dispextern.h.
6812
6813 * w32.c: Include dispextern.h.
6814
68152008-05-23 Juanma Barranquero <lekktu@gmail.com>
6816
6817 * charset.c (Fencode_char, Fsplit_char): Doc fixes.
6818 (Fget_unused_iso_final_char, Fdecode_char, Fiso_charset):
6819 Fix typos in docstrings.
6820
68212008-05-23 Jason Rumney <jasonr@gnu.org>
6822
6823 * xsmfns.c: Remove includes that are already included by config.h.
6824
68252008-05-23 Kenichi Handa <handa@m17n.org>
6826
6827 * charset.c (Qemacs, charset_emacs): New variables.
6828 (char_charset): Fix for non-Unicode characters.
6829 (syms_of_charset): Define charset_emacs.
6830
6831 * w32term.c (x_draw_glyph_string): Be sure to update
6832 s->underline_thickness and s->underline_position. Be sure to draw
6833 underline within the current line area.
6834
6835 * xterm.c (x_draw_glyph_string): Be sure to update
6836 s->underline_thickness and s->underline_position. Be sure to draw
6837 underline within the current line area.
6838
6839 * fontset.c: Delete unused variables and add casting for char *
6840 throughout the file.
6841 (fontset_font): Try the fallback fonts of the current fontset
6842 before consulting the default fontset.
6843
6844 * ftfont.c (ftfont_spec_pattern): Free charset if necessary.
6845
6846 * xfont.c (xfont_list_pattern): Free names returned from XListFonts.
6847
68482008-05-22 Jason Rumney <jasonr@gnu.org>
6849
6850 * font.c: Don't include strings.h.
6851
6852 * dispextern.h, xfaces.c (xstrcasecmp): Rename from xstricmp.
6853
6854 * dosfns.c, fileio.c, font.c, fontset.c, image.c, macfns.c:
6855 * macterm.c, process.c, w32.c, w32fns.c, w32proc.c, xfaces.c:
6856 * xfns.c, xfont.c: All callers of stricmp and strcasecmp changed
6857 to call xstrcasecmp.
6858
6859 * xfont.c (xfont_list_pattern, compare_font_names): Use xstrcasecmp.
6860
6861 * fontset.c (fs_query_fontset): Use xstrcasecmp.
6862
6863 * font.c (font_style_to_value, font_score): Use xstrcasecmp.
6864
6865 * dosfns.c (msdos_stdcolor_idx): Use xstrcasecmp.
6866
68672008-05-22 Kenichi Handa <handa@m17n.org>
6868
6869 * puresize.h (BASE_PURESIZE): Increase to 1220000.
6870
6871 * font.c (font_prop_validate_style): Adjust for the format
6872 change of font_style_table.
6873
6874 * w32font.c (w32font_open_internal): Call Ffont_xlfd_name with
6875 two args.
6876
6877 * xfaces.c (x_update_menu_appearance): Call Ffont_xlfd_name with
6878 two args.
6879
68802008-05-22 Stefan Monnier <monnier@iro.umontreal.ca>
6881
6882 * minibuf.c (keys_of_minibuf): Delete.
6883 * lisp.h (keys_of_minibuf): Delete.
6884 * emacs.c (main): Don't call keys_of_minibuf.
6885
68862008-05-22 Kenichi Handa <handa@m17n.org>
6887
6888 * ftfont.c (ftfont_resolve_generic_family): Rename from
6889 ftfont_list_generic_family. Return a single family for each
6890 generic family.
6891 (ftfont_spec_pattern): Add FC_FAMILY to pattern.
6892 (ftfont_list): Adjust for the change of ftfont_resolve_generic_family.
6893 Call font_add_log.
6894 (ftfont_match): Call font_add_log.
6895
6896 * font.h (Ffont_xlfd_name): EXFUN adjusted.
6897 (FONT_DEBUG): Define it.
6898 (font_add_log): Extern it.
6899 (font_assert): Rename from xassert.
6900
6901 * xfont.c (xfont_get_pcm): Change xassert to font_assert.
6902 (xfont_list_family): Call font_add_log.
6903 (xfont_match): Likewise.
6904 (memq_no_quit): Delete.
6905
6906 * fontset.c (fontset_from_font, Ffontset_info): Add the 2nd arg in
6907 call of Ffont_xlfd_name.
6908
6909 * xfaces.c (struct table_entry, slant_table, weight_table)
6910 (swidth_table): Move to font.c.
6911
6912 * font.c: Checking of FONT_DEBUG is moved to font.h. All calls of
6913 xassert are changed to font_assert. Delete many unused variables.
6914 (Vfont_weight_table, Vfont_slant_table, Vfont_width_table):
6915 New variables.
6916 (struct table_entry): Move from xfaces.c and modified.
6917 (weight_table, slant_table, width_table): Move from xfaces.c and
6918 contents adjusted for the change of struct table_entry.
6919 (font_style_to_value, font_style_symbolic): Adjust for the
6920 format change of font_style_table.
6921 (font_parse_family_registry): Don't overwrite existing foundry and
6922 family of font_spec.
6923 (font_score): Fix calculation of diff for sizes.
6924 (font_sort_entites): Call font_add_log.
6925 (font_delete_unmatched): Return a newly created list.
6926 (font_list_entities): Fix previous change. Call font_add_log.
6927 (font_matching_entity, font_open_entity, font_close_entity):
6928 Call font_add_log.
6929 (Ffont_xlfd_name): New arg FOLD-WILDCARDS.
6930 (Finternal_set_font_style_table): Delete.
6931 (BUILD_STYLE_TABLE): New macro.
6932 (build_style_table): New function.
6933 (Vfont_log, font_log_env_checked): New variables.
6934 (font_add_log): New function.
6935 (syms_of_font): Delete defsubr Sinternal_set_font_style_table.
6936 Declare Lisp variables "font-weight-table", "font-slant-table",
6937 "font-width-table", and "font-log". Initialize font_style_table.
6938
69392008-05-21 Dan Nicolaescu <dann@ics.uci.edu>
6940
6941 * xterm.c (x_set_frame_alpha): Move declarations before statements.
6942
69432008-05-21 Seiji Zenitani <zenitani@mac.com>
6944 Ryo Yoshitake <ryo@shiftmode.net>
6945
6946 * frame.c (Qalpha): Add a new frame parameter `alpha'.
6947 (Vframe_alpha_lower_limit): New variable.
6948 (x_set_alpha): New function.
6949
6950 * frame.h (Qalpha, Vframe_parameter_lower_limit): Export them.
6951
6952 * xfns.c (x-create-frame, Qalpha):
6953 Initialize the frame parameter `alpha'.
6954 * xterm.c (OPAQUE, OPACITY): New.
6955 (x_set_frame_alpha): New function.
6956 (frame_highlight, frame_unhighlight): Call x_set_frame_alpha.
6957
6958 * macfns.c (mac_frame_parm_handlers): A null handler for x_set_alpha.
6959 * w32fns.c (w32_frame_parm_handlers): Likewise.
6960
69612008-05-20 Jason Rumney <jasonr@gnu.org>
6962
6963 * w32font.c (add_font_entity_to_list): Don't add non-opentype
6964 truetype fonts to opentype list.
6965
69662008-05-20 Juanma Barranquero <lekktu@gmail.com>
6967
6968 * fontset.c (Ffontset_info): Doc fix.
6969 (syms_of_fontset) <font-encoding-charset-alist, use-default-ascent>:
6970 <ignore-relative-composition>: Fix typos in docstrings.
6971
6972 * font.c (syms-of-font) <font-encoding-alist>:
6973 (Ffontp, Ffont_make_gstring): Fix typos in docstrings.
6974 (Flist_fonts, Ffont_family_list, Ffont_fill_gstring, Fquery_font)
6975 (Ffont_otf_alternates): Doc fixes.
6976
69772008-05-20 Kenichi Handa <handa@m17n.org>
6978
6979 * Makefile.in (FONTSRC): Delete it. Change all $(FONTSRC) to
6980 font.h through out the file.
6981 (FONT_DRIVERS): Rename from FONTOBJ.
6982 (obj): Change $(FONTOBJ) to $(FONT_DRIVERS). Add font.o.
6983 (SOME_MACHINE_OBJECTS): Change $(FONTOBJ) to $(FONT_DRIVERS).
6984
6985 * emacs.c (main): Call syms_of_font unconditionally.
6986
6987 * font.h (find_font_encoding): Extern it.
6988
6989 * font.c (Vfont_encoding_alist, find_font_encoding): Move from
6990 fontset.c.
6991 (font_pixel_size)[! HAVE_WINDOW_SYSTEM]: Return 1.
6992 (font_open_entity): Update FRAME_X_DISPLAY_INFO (f)->n_fonts,
6993 FRAME_SMALLEST_CHAR_WIDTH (f), and FRAME_SMALLEST_FONT_HEIGHT (f)
6994 only when HAVE_WINDOW_SYSTEM is defined.
6995 (font_close_object): Update FRAME_X_DISPLAY_INFO (f)->n_fonts only
6996 when HAVE_WINDOW_SYSTEM is defined.
6997
6998 * fontset.c (Vfont_encoding_alist, find_font_encoding): Move to font.c.
6999 (syms_of_fontset): Move declaration of font-encoding-alist to font.c.
7000
7001 * xfaces.c: Include font.h unconditionally.
7002 (merge_face_ref, merge_face_vectors)
7003 (Finternal_set_lisp_face_attribute): Cancel the previous change.
7004
70052008-05-20 Stefan Monnier <monnier@iro.umontreal.ca>
7006
7007 * xdisp.c (select_frame_for_redisplay): Adjust for last change to
7008 indirect_variable.
7009 * eval.c (lisp_indirect_variable): New fun.
7010 (Fuser_variable_p): Use it.
7011
70122008-05-19 Stefan Monnier <monnier@iro.umontreal.ca>
7013
7014 * lisp.h (indirect_variable):
7015 * data.c (indirect_variable, let_shadows_buffer_binding_p):
7016 Use Lisp_Symbol pointers rather than Lisp_Object.
7017 Adjust callers.
7018 * buffer.c (buffer_slot_type_mismatch): Use wrong-type-argument.
7019 To this end, change calling-convention.
7020
7021 * minibuf.c (Finternal_complete_buffer): Only strip out hidden buffers
7022 if some non-hidden buffers are selected by string&pred.
7023
70242008-05-19 Chong Yidong <cyd@stupidchicken.com>
7025
7026 * process.c (wait_reading_process_output): Always check status
7027 when in batch mode.
7028
70292008-05-19 Kenichi Handa <handa@m17n.org>
7030
7031 * font.c (font_list_entities): Fix handling of cache.
7032 (font_matching_entity): Likewise.
7033
7034 * ftfont.c (cs_iso8859_1): Delete.
7035 (ft_face_cache): New variable.
7036 (struct ftfont_info): New member fc_charset_idx.
7037 (ftfont_build_basic_charsets): Delete.
7038 (fc_charset_table): New variable.
7039 (ftfont_pattern_entity): New arg fc_charset_idx. Store (FILENAME
7040 . FC_CHARSET_IDX) as :font-entity property in the font entity.
7041 Callers changed.
7042 (ftfont_lookup_cache, ftfont_get_charset): New functions.
7043 (ftfont_spec_pattern): New argument fc_charset_idx.
7044 Check registry more rigidly. Change callers.
7045 (ftfont_open, ftfont_close, ftfont_has_char): Adjust for the
7046 change of :font-entity property of the font.
7047
7048 * xftfont.c (xftfont_open): Adjust for the change of :font-entity
7049 property of the font.
7050
70512008-05-18 Juanma Barranquero <lekktu@gmail.com>
7052
7053 * coding.c (Fcoding_system_p): Rename argument to match docstring.
7054 (Funencodable_char_position, Fcheck_coding_systems_region)
7055 (Fdecode_coding_string, Fencode_coding_string): Fix typos in docstrings.
7056 (Fdetect_coding_region, Fdetect_coding_string, Fencode_coding_region)
7057 (Ffind_operation_coding_system, Fset_coding_system_priority)
7058 (Fcoding_system_eol_type): Doc fixes.
7059
70602008-05-17 Glenn Morris <rgm@gnu.org>
7061
7062 * sysdep.c (child_setup_tty): Handle systems with NLDLY, without FFDLY.
7063
70642008-05-16 Eli Zaretskii <eliz@gnu.org>
7065
7066 * dired.c (Ffile_attributes): Shut up GCC warnings about st_uid
7067 and st_gid.
7068
7069 * frame.c (Fdelete_frame): Don't call font_update_drivers if
7070 HAVE_WINDOW_SYSTEM is not defined.
7071
7072 * xfaces.c (merge_face_ref, merge_face_vectors)
7073 (Finternal_set_lisp_face_attribute): Use FONT_*_INDEX only when
7074 HAVE_WINDOW_SYSTEM is defined.
7075 (Fface_font): Fix non-HAVE_WINDOW_SYSTEM case.
7076
70772008-05-16 Stefan Monnier <monnier@iro.umontreal.ca>
7078
7079 * keyboard.c (parse_menu_item): Do not cache key shortcut any more.
7080
70812008-05-15 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
7082
7083 * macterm.c (x_draw_relief_rect): Remove unused variable `dpy'.
7084
70852008-05-15 Kenichi Handa <handa@m17n.org>
7086
7087 * font.c (font_find_for_lface): Reflect LFACE_FONT in the font
7088 preference.
7089
70902008-05-15 Glenn Morris <rgm@gnu.org>
7091
7092 * emacs.c (USAGE1, standard_args): Remove -disable-font-backend.
7093
70942008-05-15 Chong Yidong <cyd@stupidchicken.com>
7095
7096 * fns.c (init_fns): Don't initialize weak_hash_tables here.
7097 (init_weak_hash_tables): New fun. Initialize weak_hash_tables.
7098
7099 * alloc.c (init_alloc_once): Call init_weak_hash_tables.
7100
71012008-05-15 Kenichi Handa <handa@m17n.org>
7102
7103 * ftfont.c (ftfont_list): Downcase family name to check generic
7104 families.
7105
7106 * xfaces.c (Finternal_set_lisp_face_attribute): Be sure to make a
7107 font-spec for QCfont value.
7108
7109 * fontset.c (Fnew_fontset): Call font_unparse_xlfd with 256-byte
7110 buffer. Check the return value of it.
7111
71122008-05-14 Jason Rumney <jasonr@gnu.org>
7113
7114 * w32term.c (w32_get_glyph_overhangs): Remove.
7115 (w32_redisplay_interface): Use x_get_glyph_overhangs instead.
7116
71172008-05-14 Kenichi Handa <handa@m17n.org>
7118
7119 * font.c (font_prop_validate): Make nil a valid value.
7120 (font_clear_cache): Check if the cached vector of entities is nil
7121 or not.
7122
71232008-05-14 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
7124
7125 * emacs.c (main_thread): Conditionalize on
7126 FORWARD_SIGNAL_TO_MAIN_THREAD instead of HAVE_GTK_AND_PTHREAD.
7127 (main) [FORWARD_SIGNAL_TO_MAIN_THREAD]: Initialize it.
7128
7129 * syssignal.h (FORWARD_SIGNAL_TO_MAIN_THREAD): New define.
7130 (main_thread, SIGNAL_THREAD_CHECK): Conditionalize on
7131 FORWARD_SIGNAL_TO_MAIN_THREAD instead of HAVE_GTK_AND_PTHREAD.
7132
71332008-05-14 Kenichi Handa <handa@m17n.org>
7134
7135 * coding.c (detect_coding_iso_2022): Ignore a coding category that
7136 has no corresponding coding system.
7137
71382008-05-14 Jason Rumney <jasonr@gnu.org>
7139
7140 * font.h (struct font) [WINDOWSNT]: Remove codepage member.
7141
7142 * w32font.h (w32font_open_internal): Update declaration.
7143
7144 * w32font.c (w32font_open_internal): Change last argument from
7145 w32font_info struct to font object. Fill in font object from
7146 font_entity. Get Outline metrics if possible. Use them to
7147 calculate underline position and thickness. Use xlfd name as name
7148 property. Don't set codepage.
7149 (w32font_open): Pass font_object to w32font_open_internal. Don't
7150 update dpyinfo->smallest_font_height and dpyinfo->smallest_char_width.
7151 (w32font_draw): Use s->font.
7152 (clear_cached_metrics): Don't clear non-existent blocks.
7153
7154 * w32term.c (w32_compute_glyph_string_overhangs): Don't compute if
7155 font was not found.
7156 (x_draw_glyph_string): Use underline position and thickness from font.
7157
7158 * w32uniscribe.c (uniscribe_open): Pass font_object to
7159 w32font_open_internal.
7160
71612008-05-14 Kenichi Handa <handa@m17n.org>
7162
7163 These changes are to delete all legacy font-handling codes, and
7164 make Emacs use only font-backends.
7165
7166 * Makefile.in: Delete USE_FONT_BACKEND conditionals.
7167 (frame.o, image.o, print.o): Depend on $(FONTSRC).
7168
7169 * makefile.w32-in (WIN32OBJ): Add w32reg.$(O), remove w32bdf.$(O).
7170
7171 * charset.h (Vcharset_non_preferred_head)
7172 (Vcurrent_iso639_language): Extern them.
7173
7174 * charset.c (Vcharset_non_preferred_head): New variable.
7175 (Vcurrent_iso639_language): New variable.
7176 (syms_of_charset): Declare it as a Lisp variable.
7177 (char_charset): Don't check non preferred charsets. As a last
7178 resort, return charset_unicode.
7179 (Fset_charset_priority): Update Vcharset_non_preferred_head.
7180
7181 * composite.c: Throughout the file, delete all USE_FONT_BACKEND
7182 conditionals. Don't check enable_font_backend. Delete all codes
7183 used only when USE_FONT_BACKEND is not defined.
7184
7185 * dispextern.h (struct glyph_string): Change type of `font' to
7186 `struct font *'.
7187 (struct glyph_string): New member underline_position and
7188 underline_thickness.
7189 (enum lface_attribute_index): Remove LFACE_AVGWIDTH_INDEX.
7190 (struct face): Change type of `font' to `struct font *'. Remove
7191 members `font_name', `font_info_id'.
7192 (per_char_metric, encode_char): Delete externs.
7193 (calc_pixel_width_or_height): Adjust the prototype.
7194
7195 * emacs.c (enable_font_backend): Delete extern.
7196 (main): Don't set enable_font_backend. Don't check the command
7197 line argument "-disable-font-backend".
7198
7199 * font.h (Qfont_spec, Qfont_entity, Qfont_object): Extern them.
7200 (enum font_property_index): New members FONT_DPI_INDEX,
7201 FONT_SPACING_INDEX, FONT_AVGWIDTH_INDEX, FONT_NAME_INDEX,
7202 FONT_FULLNAME_INDEX, FONT_FILE_INDEX, FONT_FORMAT_INDEX,
7203 FONT_OBJECT_MAX. Delete FONT_FRAME_INDEX.
7204 (FONT_WEIGHT_NUMERIC, FONT_SLANT_NUMERIC, FONT_WIDTH_NUMERIC)
7205 (FONT_WEIGHT_SYMBOLIC, FONT_SLANT_SYMBOLIC, FONT_WIDTH_SYMBOLIC)
7206 (FONT_WEIGHT_FOR_FACE, FONT_SLANT_FOR_FACE, FONT_WIDTH_FOR_FACE)
7207 (FONT_WEIGHT_NAME_NUMERIC, FONT_SLANT_NAME_NUMERIC)
7208 (FONT_WIDTH_NAME_NUMERIC, FONT_SET_STYLE): New macros.
7209 (struct font_spec, struct font_entity): New structs.
7210 (FONT_ENCODING_NOT_DECIDED): Moved from fontset.h.
7211 (struct font): Many members from old "struct font_info" moved to
7212 here. Members font and entity deleted.
7213 (FONT_SPEC_P, FONT_ENTITY_P, FONT_OBJECT_P, FONTP): Modified for
7214 the new font-related objects.
7215 (CHECK_FONT_SPEC, CHECK_FONT_ENTITY, CHECK_FONT_OBJECT)
7216 (CHECK_FONT_GET_OBJECT): Likewise.
7217 (XFONT_SPEC, XFONT_ENTITY, XFONT_OBJECT, XSETFONT): New macros.
7218 (PT_PER_INCH, POINT_TO_PIXEL, PIXEL_TO_POINT): Moved from font.h.
7219 (struct font_driver): New members case_sensitive anc check. Type
7220 of the member list and open changed.
7221 (enable_font_backend, font_symbolic_weight, font_symbolic_slant)
7222 (font_symbolic_width, font_find_object, font_get_spec)
7223 (font_set_lface_from_name): Delete extern.
7224 (Fcopy_font_spec, Fmerge_font_spec, Ffont_family_list): New EXFUNs.
7225
7226 * font.c: Include <strings.h>.
7227 (enable_font_backend): Delete it.
7228 (Qfont_spec, Qfont_entity, Qfont_object): New variables.
7229 (CHECK_VALIDATE_FONT_SPEC): Delete it.
7230 (PT_PER_INCH, POINT_TO_PIXEL, PIXEL_TO_POINT): Moved to font.h.
7231 (null_string): Delete it.
7232 (null_vector): Make it static.
7233 (font_family_alist): Delete it.
7234 (Qnormal): Extern it.
7235 (QCextra, QClanguage): Delete it.
7236 (QClang, QCavgwidth, QCfont_entity, QCfc_unknown_spec): New variables.
7237 (font_make_spec, font_make_entity, font_make_object)
7238 (font_intern_prop): Renamed from intern_downcase. Don't downcase
7239 the string. Callers changed.
7240 (font_pixel_size): Adjusted for the format change of font-related
7241 objects.
7242 (prop_name_to_numeric, prop_numeric_to_name): Delete them.
7243 (font_style_to_value, font_style_symbolic): New function.
7244 (build_font_family_alist): Delete it.
7245 (font_registry_charsets): Use Fassoc_string instead of
7246 assq_no_quit.
7247 (font_prop_validate_symbol): Don't return null_string.
7248 (font_prop_validate_style): Adjusted for the change of
7249 style-related values in a font vector.
7250 (font_property_table): Delete entries for QClanguage and
7251 QCantialias, add entries for QCavgwidth.
7252 (get_font_prop_index): Delete the 2nd argument FROM.
7253 (font_prop_validate): Arguments changed.
7254 (font_put_extra): Adjusted for the change of font-related objects.
7255 (font_expand_wildcards, font_parse_xlfd, font_unparse_xlfd)
7256 (font_parse_fcname, font_unparse_fcname)
7257 (font_prepare_composition): Likewise.
7258 (font_parse_family_registry): Renamed from font_merge_old_spec.
7259 (otf_open): Delete the 1st arg entity.
7260 (font_otf_capability): Adjusted for the above change.
7261 (font_score): New arg alternate_families. Adjusted for the change
7262 of font-related objects.
7263 (font_sort_entites): New arg best_only.
7264 (font_symbolic_weight, font_symbolic_slant, font_symbolic_width):
7265 Delete them.
7266 (font_match_p): Check alternate families.
7267 (font_find_object): Delete it.
7268 (font_check_object): New function.
7269 (font_clear_cache): Adjusted for the change of font-related objects.
7270 (font_delete_unmatched): New arg.
7271 (font_list_entities): Call font_driver->list with a spec that
7272 doesn't specify style-related properties.
7273 (font_matching_entity): Arguments changed. Caller changed.
7274 (font_open_entity): Adjusted for the change of font-related objects.
7275 (font_close_object, font_has_char, font_encode_char)
7276 (font_get_name, font_get_spec): Likewise.
7277 (font_spec_from_name, font_clear_prop, font_update_lface):
7278 New functions.
7279 (font_find_for_lface, font_open_for_lface, font_load_for_lface)
7280 (font_prepare_for_face, font_done_for_face, font_open_by_name)
7281 (font_at): Adjusted for the change of font-related objects.
7282 (font_range): New function.
7283 (Ffontp, Ffont_spec, Ffont_get, Ffont_put, Flist_fonts)
7284 (Ffont_xlfd_name): Adjusted for the change of font-related objects.
7285 (Fcopy_font_spec, Fmerge_font_spec): New function.
7286 (Ffont_family_list): Renamed from list-families.
7287 (Finternal_set_font_style_table): Arguments changed.
7288 (Ffont_fill_gstring, Ffont_shape_text, Fopen_font)
7289 (Ffont_drive_otf, Fquery_font, Ffont_match_p): Adjusted for the
7290 change of font-related objects.
7291 (syms_of_font): Delete "ifdef USE_FONT_BACKEND". DEFSYM new symbols.
7292
7293 * fontset.h (struct font_info): Delete it. Most members go to
7294 struct font.
7295 (FONT_ENCODING_NOT_DECIDED): Moved to font.h.
7296 (enum FONT_SPEC_INDEX): Delete it.
7297 (font_info, list_fonts_func, load_font_func, query_font_func)
7298 (set_frame_fontset_func, find_ccl_program_func)
7299 (get_font_repertory_func, new_fontset_from_font_name): Delete
7300 externs.
7301 (fontset_from_font_name): Extern it.
7302 (FS_LOAD_FONT, FONT_INFO_ID, FONT_INFO_FROM_ID)
7303 (FONT_INFO_FROM_FACE): Deleted.
7304 (face_for_font): Adjust prototype.
7305
7306 * fontset.c: Throughout the file, delete all USE_FONT_BACKEND
7307 conditionals. Don't check enable_font_backend. Delete all codes
7308 used only when USE_FONT_BACKEND is not defined.
7309 (get_font_info_func, list_font_func, load_font_func)
7310 (query_font_func, set_frame_fontset_func, find_ccl_program_func)
7311 (get_font_repertory_func): Delete them.
7312 (FONTSET_SPEC, FONT_DEF_NEW, FONT_DEF_SPEC, FONT_DEF_ENCODING)
7313 (FONT_DEF_REPERTORY, RFONT_DEF_FACE, RFONT_DEF_SET_FACE)
7314 (RFONT_DEF_FONT_DEF, RFONT_DEF_SPEC, RFONT_DEF_REPERTORY)
7315 (RFONT_DEF_OBJECT, RFONT_DEF_SET_OBJECT, RFONT_DEF_SCORE)
7316 (RFONT_DEF_SET_SCORE, RFONT_DEF_NEW): New macros.
7317 (fontset_compare_rfontdef): New function.
7318 (reorder_font_vector): Remove the argument CHARSET-ID. Sort
7319 rfont-defs by qsort. Adjusted for the change of font-group vector.
7320 (load_font_get_repertory): Deleted.
7321 (fontset_find_font): Use new macros to ref/set elements of
7322 font-def and rfont-def.
7323 (fontset_font): Fix the timing of remembering that no font for C.
7324 (free_face_fontset): Do nothing if the face has no fontset.
7325 (face_suitable_for_char_p): Use new macros to ref/set elements of
7326 rfont-def.
7327 (face_for_char): Likewise. Call face_for_char with font_object.
7328 (fs_load_font): Delete. Delete #pragma surrounding it.
7329 (fs_query_fontset): Use strcasecmp instead of strcmp.
7330 (generate_ascii_font_name): Adjusted for the format change of
7331 font-spec.
7332 (Fset_fontset_font): Likewise. Use new macros to set elements of
7333 font-def.
7334 (Fnew_fontset): Use font_unparse_xlfd to generate
7335 FONTSET_ASCII (fontset).
7336 (new_fontset_from_font_name): Deleted.
7337 (fontset_from_font): Renamed from new_fontset_from_font. Check if
7338 a fontset is already created for the font. FIx updating of
7339 Vfontset_alias_alist.
7340 (fontset_ascii_font): Deleted.
7341 (Ffont_info): Adjusted for the format change of font-spec.
7342 (Finternal_char_font): Likewise.
7343 (Ffontset_info): Likewise.
7344 (syms_of_fontset): Don't check load_font_func.
7345
7346 * fns.c (internal_equal): Handle PREV_FONT.
7347
7348 * frame.h: Delete USE_FONT_BACKEND conditional.
7349
7350 * frame.c: Throughout the file, delete all USE_FONT_BACKEND
7351 conditionals. Don't check enable_font_backend. Delete all codes
7352 used only when USE_FONT_BACKEND is not defined.
7353 (x_set_font): Call x_new_font, not x_new_fontset2.
7354 (x_set_font_backend): Use FRAME_FONT macro to check if a font is
7355 already set for the frame.
7356
7357 * ftfont.c (ftfont_pattern_entity): Argument FRAME removed. Make
7358 a font-entity by font_make_entity. Use font_intern_prop instead
7359 of intern_downcase. Use FONT_SET_STYLE to set a style-related
7360 font property. If a font is scalable, set avgwidth property to 0.
7361 Set font-entity property by font_put_extra.
7362 (ftfont_list_generic_family): Argument SPEC and REGISTRY removed.
7363 (ffont_driver): Adjusted for the change of struct font_driver.
7364 (ftfont_spec_pattern): New function.
7365 (ftfont_list): Return a list, not vector.
7366 (ftfont_match): Use ftfont_spec_pattern to get a pattern.
7367 (ftfont_list_family): Don't downcase names.
7368 (ftfont_free_entity): Deleted.
7369 (ftfont_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 (ftfont_close): Don't free `struct font'.
7374 (ftfont_has_char): Adjusted for the format change of font-entity.
7375 (ftfont_encode_char, ftfont_text_extents): Likewise.
7376
7377 * ftxfont.c (ftxfont_list): Return a list, not vector.
7378 (ftxfont_open): Return a font-object. Adjusted for the change of
7379 struct font. Get underline_thickness and underline_position from
7380 font property. Don't update dpyinfo->smallest_font_height and
7381 dpyinfo->smallest_char_width.
7382 (ftxfont_close): Don't decrease FRAME_X_DISPLAY_INFO (f)->n_fonts.
7383 (ftxfont_draw): Adjusted for the change of struct font.
7384
7385 * image.c (image_ascent): Don't include "charset.h". Include
7386 "character.h" and "font.h".
7387
7388 * lisp.h (enum pvec_type): New member PREV_FONT.
7389 (Fassoc_string): EXFUN it.
7390
7391 * print.c: Include font.h.
7392 (print_object): Handle font-related objects.
7393
7394 * xdisp.c: Throughout the file, delete all USE_FONT_BACKEND
7395 conditionals. Don't check enable_font_backend. Delete all codes
7396 used only when USE_FONT_BACKEND is not defined.
7397 (handle_auto_composed_prop): Do nothing if it->f is not on a
7398 window system. Check how many following characters can be
7399 displayed by the same font.
7400 (calc_pixel_width_or_height): Type of the 4th arg is changed to
7401 'struct font *'.
7402 (get_char_face_and_encoding): Assign the whole encoding task to
7403 the `encode-char' method of a font driver.
7404 (fill_composite_glyph_string): Adjusted for the change of `struct
7405 face' and `struct glyph_string'.
7406 (fill_glyph_string): Likewise.
7407 (get_per_char_metric): Arguments changed.
7408 (x_get_glyph_overhangs): Adjusted for the change of `struct face'
7409 and `struct glyph_string'.
7410 (produce_stretch_glyph, calc_line_height_property)
7411 (x_produce_glyphs): Likewise.
7412
7413 * xfaces.c: Throughout the file, delete all USE_FONT_BACKEND
7414 conditionals. Don't check enable_font_backend. Delete all codes
7415 used only when USE_FONT_BACKEND is not defined. Use
7416 FONT_XXX_NAME_NUMERIC instead of face_numeric_xxx.
7417 (QCfoundry, QCadstyle, QCregistry, QCspacing, QCsize, QCavgwidth)
7418 (Qp): Extern them.
7419 (clear_font_table, load_face_font, xlfd_lookup_field_contents):
7420 Deleted.
7421 (struct font_name): Deleted.
7422 (xlfd_numeric_value, xlfd_symbolic_value): Deleted.
7423 (compare_fonts_by_sort_order): New function.
7424 (xlfd_numeric_slant, xlfd_symbolic_slant, xlfd_numeric_weight)
7425 (xlfd_symbolic_weight, xlfd_numeric_swidth, xlfd_symbolic_swidth):
7426 Deleted.
7427 (Fx_family_fonts): Use font_list_entities, and sort fonts by
7428 compare_fonts_by_sort_order.
7429 (Fx_font_family_list): Call Ffont_family_list.
7430 (face_numeric_value, face_numeric_weight, face_numeric_slant)
7431 (face_numeric_swidth, face_symbolic_value, face_symbolic_weight)
7432 (face_symbolic_slant, face_symbolic_swidth)
7433 (split_font_name_into_vector, build_font_name_from_vector)
7434 (xlfd_fixed_p, xlfd_point_size, pixel_point_size)
7435 (font_rescale_ratio, split_font_name, build_font_name)
7436 (free_font_names, sort_fonts, x_face_list_fonts)
7437 (face_font_available_p, sorted_font_list, cmp_font_names)
7438 (font_list_1, concat_font_list, font_list, remove_duplicates):
7439 Deleted.
7440 (Fx_list_fonts): Use Ffont_list.
7441 (LFACE_AVGWIDTH): Deleted.
7442 (check_lface_attrs): Don't check LFACE_AVGWIDTH. Check LFACE_FONT
7443 by FONTP.
7444 (lface_fully_specified_p): Don't check LFACE_AVGWIDTH.
7445 (set_lface_from_font_name): Delete it.
7446 (set_lface_from_font): Renamed from
7447 set_lface_from_font_and_fontset. Caller changed. Don't set
7448 LFACE_AVGWIDTH. Use FONT_XXX_FOR_FACE to get a symbol suitable
7449 for face.
7450 (merge_face_vectors): Copy font-spec if necessary.
7451 Clear properties of the font-spec if necessary.
7452 (merge_face_ref): Clear properties of the font-spec if necessary.
7453 (Finternal_set_lisp_face_attribute): Likewise.
7454 (set_font_frame_param): Use font_load_for_lface to load a
7455 font-object, and call Fmodify_frame_parameters with it.
7456 (x_update_menu_appearance): Don't check LFACE_AVGWIDTH. Get XLFD
7457 font name by Ffont_xlfd_name.
7458 (Finternal_lisp_face_attribute_values): Don't check QCweight,
7459 QCslant, and QCwidth.
7460 (Fface_font): Get a font name from font->props[FONT_NAME_INDEX].
7461 (lface_same_font_attributes_p): Don't check LFACE_AVGWIDTH.
7462 Compare fonts by EQ.
7463 (lookup_non_ascii_face): Deleted.
7464 (face_for_font): The 2nd argument changed.
7465 (x_supports_face_attributes_p): Don't check LFACE_AVGWIDTH.
7466 Check atomic font properties by case insensitive.
7467 (realize_non_ascii_face): Set face->overstrike correctly.
7468 (realize_x_face): Likewise. Check if LFACE_FONT is a font_object.
7469 (dump_realized_face): Get font name from
7470 font->props[FONT_NAME_INDEX]. Don't print font_info_id.
7471
7472 * xfns.c: Throughout the file, delete all USE_FONT_BACKEND
7473 conditionals. Don't check enable_font_backend. Delete all codes
7474 used only when USE_FONT_BACKEND is not defined.
7475 (xic_create_xfontset): Original code deleted and renamed from
7476 xic_create_xfontset2. Use FRAME_FONT, not FRAME_FONT_OBJECT.
7477 (x_make_gc): Don't set GCFont in GCs.
7478 (Fx_create_frame) [USE_LUCID]: Set xlwmenu_default_font to a font
7479 opened by "fixed".
7480 (syms_of_xfns): Don't set get_font_info_func, load_font_func,
7481 find_ccl_program_func, query_font_func, set_frame_fontset_func,
7482 get_font_repertory_func.
7483
7484 * xfont.c: Include <stdlib.h> and "ccl.h".
7485 (struct xfont_info): New structure.
7486 (xfont_query_font): Deleted.
7487 (xfont_find_ccl_program): Renamed from x_find_ccl_program and
7488 moved from xterm.c.
7489 (xfont_driver): Adjusted for the change of struct font_driver.
7490 (compare_font_names): New function.
7491 (xfont_list_pattern): Sort font names case insensitively. Make
7492 font_entity by calling font_make_entity. Avoid auto-scaled fonts.
7493 (xfont_list): Return a list, not vector.
7494 (xfont_match): If the font doesn't have QCname property, generate
7495 a name from the other font properties.
7496 (xfont_open): Return a font-object. Adjusted for the change of
7497 struct font. Get underline_thickness and underline_position from
7498 font property. Don't update dpyinfo->smallest_font_height and
7499 dpyinfo->smallest_char_width.
7500 (xfont_close): Don't free struct font.
7501 (xfont_prepare_face): Adjusted for the change of struct font.
7502 (xfont_done_face): Deleted.
7503 (xfont_has_char): Adjusted for the change of struct font.
7504 (xfont_encode_char, xfont_draw): Likewise.
7505 (xfont_check): New function.
7506
7507 * xftfont.c (xftfont_list): Adjusted for the change of `list'
7508 callback function.
7509 (xftfont_match): Adjusted for the format change of font-entity.
7510 (xftfont_open): Adjusted for the format change of font-entity and
7511 font-object. Adjusted for the change of struct font. Return a
7512 font-object. Don't update dpyinfo->smallest_font_height and
7513 dpyinfo->smallest_char_width.
7514 (xftfont_close): Block input while calling XftFontClose.
7515 (xftfont_prepare_face): Don't block input while calling
7516 xftfont_get_colors. Adjusted for the change of struct font.
7517 (xftfont_shape): Return value of error case fixed.
7518
7519 * xrdb.c (x_load_resources): Don't setup a fontset resource.
7520
7521 * xterm.h: Throughout the file, delete all USE_FONT_BACKEND
7522 conditionals.
7523 (FONT_WIDTH): Return (f)->max_width.
7524 (struct x_display_info): Delete member `font'.
7525 (x_list_fonts, x_get_font_info, x_load_font, x_query_font)
7526 (x_find_ccl_program, x_get_font_repertory): Delete externs.
7527 (struct x_output): Change type of `font' to `struct font *'.
7528
7529 * xterm.c: Throughout the file, delete all USE_FONT_BACKEND
7530 conditionals. Don't check enable_font_backend. Delete all codes
7531 used only when USE_FONT_BACKEND is not defined. Don't include ccl.h.
7532 (x_per_char_metric, x_encode_char): Deleted.
7533 (x_set_cursor_gc, x_set_mouse_face_gc): Don't set GCFont.
7534 (x_compute_glyph_string_overhangs): Adjusted for the change of
7535 `struct face'.
7536 (x_draw_glyph_string_foreground)
7537 (x_draw_composite_glyph_string_foreground): Likewise.
7538 (x_draw_glyph_string): Likewise. Use font->underline_position and
7539 font->underline_thickness.
7540 (x_new_font): Renamed from x_new_fontset2.
7541 (x_new_fontset, x_get_font_info, x_list_fonts): Deleted.
7542 (x_check_font): Call `check' method of a font driver.
7543 (x_font_min_bounds, x_compute_min_glyph_bounds, x_load_font)
7544 (x_query_font, x_get_font_repertory): Deleted.
7545 (x_find_ccl_program): Renamed and moved to xfont.c.
7546 (x_redisplay_interface): Adjusted for the change of `struct
7547 redisplay_interface'.
7548
7549 * w32fns.c: Throughout the file, delete all USE_FONT_BACKEND
7550 conditionals. Don't check enable_font_backend. Delete all codes
7551 used only when USE_FONT_BACKEND is not defined. Surround non-used
7552 code by "#ifdef OLD_FONT" and "endif".
7553 (Fw32_select_font): Use FONT_COMPAT to get old font structure.
7554
7555 * w32font.h (struct w32font_info): New member.
7556 (FONT_COMPAT): New macro.
7557 (w32font_open_internal): Prototype adjusted.
7558
7559 * w32gui.h (XGCValues): Surround `XFontStruct *font' by "if
7560 OLD_FONT" and "endif".
7561
7562 * w32font.c: Throughout the file, delete all USE_FONT_BACKEND
7563 conditionals. Don't check enable_font_backend. Delete all codes
7564 used only when USE_FONT_BACKEND is not defined.
7565 (w32font_open): Return a font-object. Make a font-object by
7566 font_make_object. Adjusted for the change of struct w32font_info.
7567 (w32font_close): Don't free struct font. Adjusted for the change
7568 of struct w32font_info.
7569 (w32font_encode_char, w32font_text_extents, w32font_draw):
7570 Adjusted for the change of struct w32font_info.
7571 (w32font_draw): Likewise.
7572 (w32font_list_internal): Return a list, not vector.
7573 (w32font_open_internal): Change the 4th arg to font-object.
7574 Adjusted for the change of struct w32font_info and font-object format.
7575 (add_font_name_to_list): Don't downcase names.
7576 (w32_enumfont_pattern_entity): Make a font-entity by
7577 font_make_entity. Adjusted for the format change of font-entity.
7578 Use FONT_SET_STYLE to set a style-related font property. If a
7579 font is scalable, set avgwidth property to 0. Set font-entity
7580 property by font_put_extra.
7581 (font_matches_spec): Adjusted for the format change of font-entity.
7582 (w32_weight_table, w32_decode_weight): New variables.
7583 (w32_encode_weight): New function.
7584 (fill_in_logfont): Adjusted for the format change of font-spec.
7585 (w32font_full_name): Use FONT_WEIGHT_SYMBOLIC to get a symbol
7586 weight value.
7587 (w32font_driver): Adjusted for the change of struct font_driver.
7588
7589 * w32term.h: Throughout the file, delete all USE_FONT_BACKEND
7590 conditionals. Don't check enable_font_backend. Surround non-used
7591 code by "#ifdef OLD_FONT" and "endif".
7592 (FONT_WIDTH, FONT_HEIGHT, FONT_BASE, FONT_DESCENT)
7593 (FONT_AVG_WIDTH): Adjusted for the change of struct font.
7594
7595 * w32term.c: Throughout the file, delete all USE_FONT_BACKEND
7596 conditionals. Don't check enable_font_backend. Delete all codes
7597 used only when USE_FONT_BACKEND is not defined. Surround non-used
7598 code by "#ifdef OLD_FONT" and "endif".
7599
7600 * w32uniscribe.c: Delete USE_FONT_BACKEND conditional.
7601 (uniscribe_open): Return value changed to font-object.
7602 Adjusted for the format change of font-object.
7603 (uniscribe_otf_capability): Adjusted for the change of struct font.
7604 (add_opentype_font_name_to_list): Don't downcase names.
7605 (uniscribe_font_driver): Adjusted for the change of struct
7606 font_driver.
7607
76082008-05-13 Chong Yidong <cyd@stupidchicken.com>
7609
7610 * dispnew.c (update_frame_1): Check if tty output is still valid
7611 before flushing it.
7612
76132008-05-13 Jan Djärv <jan.h.d@swipnet.se>
7614
7615 * xterm.c (handle_one_xevent): Don't pass buttons higher than 3
7616 to Gtk+ menus.
7617
76182008-05-13 Stefan Monnier <monnier@iro.umontreal.ca>
7619
7620 * dired.c (file_name_completion): Tweak the code so as to always do it
7621 in a single pass. Tighten the scope of some variables.
7622
7623 * dired.c (Qdefault_directory): New var.
7624 (file_name_completion): Use it instead of Fexpand_file_name.
7625 (syms_of_dired): Initialize it.
7626
76272008-05-12 Stefan Monnier <monnier@iro.umontreal.ca>
7628
7629 * fileio.c (double_dollars): Remove dead code.
7630
76312008-05-10 Eli Zaretskii <eliz@gnu.org>
7632
7633 * dired.c (Ffile_attributes, Fdirectory_files_and_attributes):
7634 Mention w32-get-true-file-attributes in doc string.
7635
7636 * w32proc.c (syms_of_ntproc) <w32-get-true-file-attributes>: Doc fix.
7637
76382008-05-09 Glenn Morris <rgm@gnu.org>
7639
7640 * fileio.c (Fread_file_name): Remove reference to insdef, deleted
7641 2008-04-23.
7642
76432008-05-09 Eli Zaretskii <eliz@gnu.org>
7644
7645 Support for reporting owner and group of each file on MS-Windows:
7646 * dired.c (stat_uname, stat_gname): New functions, with special
7647 implementation for w32.
7648 (Ffile_attributes): Use them instead of getpwuid and getgrgid.
7649
7650 * w32.c: Rename the_passwd_* to dflt_passwd_*.
7651 (dflt_group_name): New static variable.
7652 (dflt_group): Rename from the_group.
7653 (init_user_info): Init dflt_group fields. Get user's group name
7654 from LookupAccountSid.
7655 (g_b_init_get_file_security, g_b_init_get_security_descriptor_owner)
7656 (g_b_init_get_security_descriptor_group, g_b_init_is_valid_sid):
7657 New initialization states.
7658 (globals_of_w32): Initialize them to zero. Initialize the default
7659 group name to "None".
7660 (GetFileSecurity_Name): New global var, the name of the function
7661 to call for GetFileSecurity.
7662 (GetFileSecurity_Proc, GetSecurityDescriptorOwner_Proc)
7663 (GetSecurityDescriptorGroup_Proc, IsValidSid_Proc): New typedefs.
7664 (get_file_security, get_security_descriptor_owner)
7665 (get_security_descriptor_group, is_valid_sid)
7666 (get_file_security_desc, get_rid, get_name_and_id)
7667 (get_file_owner_and_group): New functions.
7668 (stat): Use get_file_security_desc and get_file_owner_and_group to
7669 report the owner and primary group of each file. Don't ignore the
7670 high 32 bits of file's size, now that st_size is 64-bit wide.
7671 Fix test when to get true file attributes.
7672 (init_user_info): Use get_rid instead of equivalent inline code.
7673 (fstat): Don't ignore the high 32 bits of file's size.
7674
76752008-05-09 Chong Yidong <cyd@stupidchicken.com>
7676
7677 * image.c (png_load): Use correct bit-depth for setting background
7678 color.
7679
76802008-05-08 Eli Zaretskii <eliz@gnu.org>
7681
7682 * Makefile.in (lisp, shortlisp): Rename epa-file-hook.elc to
7683 epa-hook.elc.
7684
76852008-05-08 Juanma Barranquero <lekktu@gmail.com>
7686
7687 * font.c (Ffont_match_p): Don't use `iff' in docstring.
7688
76892008-05-07 Dan Nicolaescu <dann@ics.uci.edu>
7690
7691 * macfns.c (Fx_create_frame): Make a copy of frame parameters
7692 because the original parameters are in pure storage now.
7693 (mac_window): Remove unused params. Update callers.
7694
76952008-05-06 Stefan Monnier <monnier@iro.umontreal.ca>
7696
7697 * lread.c (substitute_object_recurse): Use lower-level primitives.
7698 Don't signal errors when traversing sub-char-tables.
7699 Don't loop over all the possible characters when traversing char-tables.
7700
7701 * print.c (print_preprocess): Add sub-char-tables to the print-table,
7702 just like we do in print.c.
7703
77042008-05-05 Stefan Monnier <monnier@iro.umontreal.ca>
7705
7706 * minibuf.c (Ftry_completion): Remove code left over from when we used
7707 scmp instead of Fcompare_strings.
7708
77092008-05-04 Juanma Barranquero <lekktu@gmail.com>
7710
7711 * w32fns.c (Fw32_battery_status): Fix computation of %t (h:min) format.
7712
77132008-05-04 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
7714
7715 * image.c [USE_MAC_IMAGE_IO] (image_load_image_io):
7716 Create bitmap context in native byte order.
7717
7718 * macterm.c (XDrawLine)
7719 (XCreatePixmapFromBitmapData) [USE_MAC_IMAGE_IO]: Create bitmap
7720 context in native byte order.
7721
77222008-05-04 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
7723
7724 * config.in: Regenerate.
7725
7726 * image.c (PIX_MASK_DRAW, PIX_MASK_RETAIN) [USE_MAC_IMAGE_IO]:
7727 New definitions for Image I/O support.
7728 (XGetImage, XPutPixel, XGetPixel, XDestroyImage)
7729 (mac_create_cg_image_from_image, x_create_x_image_and_pixmap)
7730 [USE_MAC_IMAGE_IO]: Add implementations for Image I/O support.
7731 (mac_data_provider_release_data, image_load_image_io)
7732 [USE_MAC_IMAGE_IO]: New functions.
7733 (CGImageCreateWithPNGDataProviderProcType) [MAC_OSX]: Remove typedef.
7734 (MyCGImageCreateWithPNGDataProvider) [MAC_OSX]: Remove variable.
7735 (init_image_func_pointer) [MAC_OSX]: Remove function.
7736 (image_load_quartz2d) [MAC_OSX]: Check availability of
7737 CGImageCreateWithPNGDataProvider at compile time.
7738 Use lowercase `false' for boolean constant.
7739 (png_load, jpeg_load, tiff_load, gif_load) [USE_MAC_IMAGE_IO]:
7740 Use image_load_image_io.
7741 (png_load) [!USE_MAC_IMAGE_IO && MAC_OSX]:
7742 Don't check MyCGImageCreateWithPNGDataProvider.
7743 (init_image) [MAC_OSX && TARGET_API_MAC_CARBON]:
7744 Don't call init_image_func_pointer.
7745
7746 * macgui.h (Pixmap) [USE_MAC_IMAGE_IO]: New definition for Image I/O.
7747
7748 * macterm.c (mac_cg_color_space_rgb) [USE_CG_DRAWING]:
7749 Make variable non-static.
7750 (XDrawLine, XCreatePixmap, XCreatePixmapFromBitmapData, XFreePixmap)
7751 [USE_MAC_IMAGE_IO]: Add implementations for Image I/O support.
7752
7753 * macterm.h (ARGB_TO_ULONG, ALPHA_FROM_ULONG): New macros.
7754 (RED_FROM_ULONG): Mask off higher bits.
7755 (mac_cg_color_space_rgb) [USE_MAC_IMAGE_IO]: New extern.
7756
7757 * s/darwin.h [HAVE_CARBON && HAVE_AVAILABILITYMACROS_H]:
7758 Include AvailabilityMacros.h.
7759 (USE_MAC_IMAGE_IO, LIBS_IMAGE) [HAVE_CARBON]: New defines.
7760 (LIBS_CARBON) [HAVE_CARBON]: Use LIBS_IMAGE.
7761
77622008-05-03 Stefan Monnier <monnier@iro.umontreal.ca>
7763
7764 * chartab.c (Fset_char_table_range): If range is t, really set all
7765 chars to that value.
7766
77672008-05-03 Eli Zaretskii <eliz@gnu.org>
7768
7769 * dired.c (Ffile_attributes): Don't allow the device number become
7770 negative.
7771
77722008-05-02 Daiki Ueno <ueno@unixuser.org>
7773
7774 * Makefile.in (lisp, shortlisp): Add epa-file-hook.elc.
7775
77762008-05-02 Juri Linkov <juri@jurta.org>
7777
7778 * minibuf.c (Fread_from_minibuffer, Fread_string, Fread_command)
7779 (Fread_variable, Fread_buffer, Fcompleting_read): Document the
7780 DEFAULT argument as a list of default values in docstrings.
7781
77822008-05-01 Chong Yidong <cyd@stupidchicken.com>
7783
7784 * puresize.h (BASE_PURESIZE): Increase to 1210000.
7785
77862008-05-01 Martin Rudalics <rudalics@gmx.at>
7787
7788 * dispnew.c (change_frame_size_1): Preserve small windows when
7789 shrinking frames by calling set_window_height|width with third
7790 arg 2.
7791
7792 * window.h (struct window): Replace field too_small_ok by field
7793 resize_proportionally.
7794
7795 * window.c (make_window): Initialize resize_proportionally.
7796 (enlarge_window): Temporarily set resize_proportionally to make
7797 sure that shrink_windows does scale the window proportionally.
7798 (shrink_windows): When window has resize_proportionally set try
7799 to shrink it proportionally by stealing from other windows.
7800 (struct saved_window, Fset_window_configuration)
7801 (compare_window_configurations): Handle resize_proportionally.
7802 (WINDOW_TOTAL_SIZE): New macro.
7803 (window_min_size, shrink_windows, size_window): Use it.
7804 (check_min_window_sizes): Remove. Invalid values of
7805 window-min-height|width are handled by window_min_size_2 now.
7806 (size_window, Fsplit_window, enlarge_window)
7807 (adjust_window_trailing_edge, grow_mini_window): Don't call
7808 check_min_window_sizes.
7809 (window_min_size_2, window_min_size_1, window_min_size):
7810 New argument safe_p for retrieving "safe" minimum sizes.
7811 (Fdisplay_buffer, Fsplit_window, enlarge_window)
7812 (adjust_window_trailing_edge, grow_mini_window):
7813 Adjust arguments of window_min_size... functions.
7814 (shrink_windows): Argument min_size removed. New argument
7815 safe_p allows shrinking windows to their safe minimum sizes.
7816 Calculate minimum size and decide whether a window shall be
7817 deleted for each window individually.
7818 (size_window): When nodelete_p equals 2, tell shrink_windows to
7819 delete windows only if their new minimum size is no more safe.
7820 (shrink_window_lowest_first): Call window_min_size_1 to make
7821 sure to preserve modeline of bottom-most window when resizing
7822 the minibuffer.
7823 (Fset_window_configuration, Fcurrent_window_configuration)
7824 (compare_window_configurations): Do not handle
7825 window-min-height|width any more.
7826 (syms_of_window): Clarify window-min-height|width doc-strings.
7827
78282008-04-30 Stefan Monnier <monnier@iro.umontreal.ca>
7829
7830 * dired.c (file_name_completion): Fix up the encoding/decoding issue
7831 some more. Copy some of the code from Ftry_completions.
7832 Remove special case code that dates back to initial revision when the
7833 slash was only added when necessary and that can't trigger nowadays.
7834
78352008-04-27 Kenichi Handa <handa@m17n.org>
7836
7837 * font.c (font_prop_validate): Signal `error' instead of `font'.
7838
78392008-04-29 Jason Rumney <jasonr@gnu.org>
7840
7841 * w32fns.c (Fw32_battery_status): New defun.
7842 (syms_of_w32fns): Defsubr it.
7843
78442008-04-28 Andreas Schwab <schwab@suse.de>
7845
7846 * dired.c (file_name_completion): Fix another mixing of encoded
7847 and decoded names.
7848
78492008-04-28 Juanma Barranquero <lekktu@gmail.com>
7850
7851 * w32fns.c (Fw32_define_rgb_color): Fix typo in docstring.
7852
78532008-04-27 Juanma Barranquero <lekktu@gmail.com>
7854
7855 * fringe.c (Fdefine_fringe_bitmap): Doc fix.
7856
78572008-04-27 Andreas Schwab <schwab@suse.de>
7858
7859 * dired.c (file_name_completion): Fix inappropriate mixing of
7860 encoded and decoded names.
7861
7862 * xterm.c (XTread_socket): Fix use of uninitialized variable.
7863
7864 * puresize.h (BASE_PURESIZE): Increase to 1200000.
7865
78662008-04-26 Eli Zaretskii <eliz@gnu.org>
7867
7868 * dired.c (Ffile_attributes) [WINDOWSNT]: Undo change from
7869 2008-03-31, it's not needed anymore with `struct stat' definition
7870 on nt/inc/sys/stat.h. Undo changes from 2007-01-12 and 2007-01-13
7871 for the same reasons.
7872
78732008-04-25 Dennis Gilmore <ausil@fedoraproject.org> (tiny change)
7874
7875 * m/sparc.h: Additional redefinitions for GNU/Linux.
7876
78772008-04-23 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
7878
7879 * macterm.c (Vmac_ts_active_input_buf) [USE_MAC_TSM]: New variable.
7880 (syms_of_macterm) [USE_MAC_TSM]: Defvar it.
7881 (Qmouse_drag_overlay) [MAC_OSX]: New variable.
7882 (syms_of_macterm) [MAC_OSX]: Intern and staticpro it.
7883 (mac_get_selected_range, mac_store_buffer_text_to_unicode_chars)
7884 (mac_ax_selected_text_range) [MAC_OSX]: New functions.
7885 (mac_ax_number_of_characters) [MAC_OS_X_VERSION_MAX_ALLOWED >= 1030]:
7886 Likewise.
7887
7888 * mactoolbox.c (Vmac_ts_active_input_buf) [USE_MAC_TSM]: Add extern.
7889 (fast_find_position, x_y_to_hpos_vpos, mac_ax_selected_text_range)
7890 (mac_ax_number_of_characters): Add externs.
7891 (mac_get_selected_range, mac_store_buffer_text_to_unicode_chars)
7892 [USE_MAC_TSM]: Likewise.
7893 (mac_handle_text_input_event) [MAC_OSX]:
7894 Handle kEventTextInputOffsetToPos for no active input area case.
7895 Handle kEventTextInputPosToOffset and kEventTextInputGetSelectedText.
7896 (mac_handle_document_access_event)
7897 [MAC_OS_X_VERSION_MAX_ALLOWED >= 1030]: New function.
7898 (install_application_handler) [MAC_OSX]: Register handlers for
7899 kEventTextInputPosToOffset and kEventTextInputGetSelectedText.
7900 (install_application_handler) [MAC_OS_X_VERSION_MAX_ALLOWED >= 1030]:
7901 Register mac_handle_document_access_event.
7902
7903 * xdisp.c (x_y_to_hpos_vpos, fast_find_position) [HAVE_CARBON]:
7904 Make functions non-static.
7905
79062008-04-23 Stefan Monnier <monnier@iro.umontreal.ca>
7907
7908 * fileio.c (Vread_file_name_function, Vread_file_name_predicate)
7909 (read_file_name_completion_ignore_case, insert_default_directory)
7910 (Qdefault_directory): Move to minibuffer.el.
7911 (Fread_file_name): Call the new `read-file-name' instead.
7912
79132008-04-23 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
7914
7915 * mac.c (create_apple_event) [TARGET_API_MAC_CARBON]:
7916 Make function non-static.
7917 (create_apple_event_from_event_ref) [TARGET_API_MAC_CARBON]:
7918 Remove function.
7919 (create_apple_event_from_drag_ref) [TARGET_API_MAC_CARBON]:
7920 Move to mactoolbox.c.
7921 (mac_event_parameters_to_lisp) [TARGET_API_MAC_CARBON]: New function.
7922
7923 * macgui.h (CGFloat) [!CGFLOAT_DEFINED]: New typedef.
7924 (mac_rect_make): New macro.
7925
7926 * macterm.c (mac_draw_image_string_atsui) [MAC_OSX]: Use CGFloat
7927 instead of float.
7928 (mac_draw_image_string_cg) [USE_CG_TEXT_DRAWING]: Likewise.
7929 (init_cg_color, mac_draw_line, mac_draw_cg_image, XSetForeground)
7930 (XSetBackground) [USE_CG_DRAWING]: Likewise.
7931 (mac_draw_image_string_atsui) [MAC_OSX]: Use mac_rect_make instead of
7932 CGRectMake.
7933 (mac_draw_image_string_cg) [USE_CG_TEXT_DRAWING]: Likewise.
7934 (mac_erase_rectangle, mac_draw_cg_image, mac_fill_rectangle)
7935 (mac_set_clip_rectangles) [USE_CG_DRAWING]: Likewise.
7936 (XCreatePixmap, XCreatePixmapFromBitmapData): Use Window
7937 instead of WindowRef in argument type.
7938 (XCreatePixmap) [!MAC_OS8]: Don't call SetPortWindowPort.
7939 (mac_invert_rectangle): Use CGContextSetBlendMode if available.
7940 (mac_set_clip_rectangles, mac_reset_clip_rectangles): Take argument F
7941 instead of DISPLAY. All uses changed.
7942 (mac_handle_size_change): Don't call SET_FRAME_GARBAGED.
7943 (x_calc_absolute_position): Simplify so as not to use
7944 FRAME_PIXEL_WIDTH/FRAME_PIXEL_HEIGHT.
7945
7946 * macterm.h (XCreatePixmap, XCreatePixmapFromBitmapData): Use Window
7947 instead of WindowRef in argument type.
7948 (create_apple_event_from_event_ref, create_apple_event_from_drag_ref)
7949 [TARGET_API_MAC_CARBON]: Remove externs.
7950 (create_apple_event, mac_event_parameters_to_lisp)
7951 [TARGET_API_MAC_CARBON]: Add externs.
7952
7953 * mactoolbox.c (Vmac_ts_script_language_on_focus)
7954 (saved_ts_script_language_on_focus) [USE_MAC_TSM]: Remove externs.
7955 (XTread_socket) [USE_MAC_TOOLBAR]: Select window if its structure part
7956 is clicked.
7957 (x_activate_menubar): Remove extern for saved_menu_event_location.
7958 (create_apple_event_from_drag_ref) [TARGET_API_MAC_CARBON]:
7959 Move from mac.c.
7960
79612008-04-23 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
7962
7963 * alloc.c [!SYSTEM_MALLOC && !SYNC_INPUT] (uninterrupt_malloc)
7964 [HAVE_GTK_AND_PTHREAD && !DOUG_LEA_MALLOC]: Don't use recursive mutex.
7965
79662008-04-23 Jason Rumney <jasonr@gnu.org>
7967
7968 * w32.c (stat): When Vw32_get_true_file_attributes is Qlocal, get
7969 attributes only for local files.
7970
7971 * w32proc.c (syms_of_ntproc): Change Vw32_get_true_file attributes
7972 default to Qlocal.
7973
79742008-04-22 Juri Linkov <juri@jurta.org>
7975
7976 * buffer.c (Fswitch_to_buffer): Change interactive spec to call
7977 read-buffer-to-switch instead of using the letter "B".
7978
79792008-04-21 Stefan Monnier <monnier@iro.umontreal.ca>
7980
7981 * fileio.c (Qdefault_directory): New variable.
7982 (Fread_file_name): Use it to pass `dir' to the completion functions.
7983
79842008-04-20 Chong Yidong <cyd@stupidchicken.com>
7985
7986 * xdisp.c (pos_visible_p): Check if iterator stops on a display string.
7987
79882008-04-19 Stefan Monnier <monnier@iro.umontreal.ca>
7989
7990 * keyboard.c (Vpre_help_message): Remove.
7991 (show_help_echo): Remove default C code.
7992
7993 * dired.c (directory_files_internal, file_name_completion):
7994 Only call ENCODE_FILE if the string is indeed decoded.
7995
79962008-04-18 Stefan Monnier <monnier@iro.umontreal.ca>
7997
7998 * Makefile.in (TOOLKIT_DEFINES): Remove.
7999 (LIBW): Use a bit less #if, remove left over OPEN_LOOK stuff.
8000
80012008-04-18 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
8002
8003 * Makefile.in (MAC_OBJ): Add mactoolbox.o.
8004 (mactoolbox.o): New target.
8005
8006 * mac.c [MAC_OSX] (select_and_poll_event, sys_select):
8007 Use mac_run_loop_run_once instead of CFRunLoopRunInMode.
8008
8009 * macfns.c (x_set_background_color, mac_window, x_create_tip_frame):
8010 Use mac_set_frame_window_background instead of XSetWindowBackground.
8011 (x_set_tool_bar_lines) [USE_MAC_TOOLBAR]:
8012 Use mac_is_window_toolbar_visible instead of IsWindowToolbarVisible.
8013 (x_set_name_internal) [TARGET_API_MAC_CARBON]: Use mac_set_window_title
8014 instead of SetWindowTitleWithCFString.
8015 (mac_update_proxy_icon) [TARGET_API_MAC_CARBON]: Remove BLOCK_INPUT.
8016 Move function to mactoolbox.c.
8017 (mac_update_title_bar) [TARGET_API_MAC_CARBON]:
8018 Use mac_set_window_modified instead of SetWindowModified.
8019 Add BLOCK_INPUT around mac_set_window_modified/mac_update_proxy_icon.
8020 (mac_window, x_create_tip_frame): Use mac_create_frame_window.
8021 (Fx_focus_frame): Use mac_front_non_floating_window instead of
8022 FrontNonFloatingWindow. Use mac_activate_window instead of
8023 ActivateWindow. Use mac_active_non_floating_window instead of
8024 ActiveNonFloatingWindow.
8025 (show_hourglass, hide_hourglass) [TARGET_API_MAC_CARBON]:
8026 Use mac_show_hourglass and mac_hide_hourglass.
8027 (compute_tip_xy) [TARGET_API_MAC_CARBON]: Use mac_get_global_mouse
8028 instead of GetGlobalMouse.
8029 (Fx_show_tip): Use mac_move_window/mac_size_window/mac_show_window
8030 instead of MoveWindow/SizeWindow/ShowWindow, respectively.
8031 Use mac_bring_window_to_front instead of BringToFront.
8032 (Qfile_name_history) [TARGET_API_MAC_CARBON]: Move extern to
8033 mactoolbox.c.
8034 (Fx_file_dialog) [TARGET_API_MAC_CARBON]: Move function body to
8035 mac_file_dialog in mactoolbox.c. Use mac_file_dialog.
8036 (mac_nav_event_callback) [TARGET_API_MAC_CARBON]: Move function to
8037 mactoolbox.c.
8038
8039 * macgui.h [!HAVE_CARBON]: Include Quickdraw.h instead of QuickDraw.h.
8040 (XtPointer): Move typedef from macmenu.c.
8041 (enum button_type): Move enum from macmenu.c.
8042 (widget_value): Move typedef from macmenu.c.
8043 (M_APPLE, I_ABOUT, EXTRA_STACK_ALLOC, ARGV_STRING_LIST_ID)
8044 (DIALOG_LEFT_MARGIN, DIALOG_TOP_MARGIN, DIALOG_RIGHT_MARGIN)
8045 (DIALOG_BOTTOM_MARGIN, DIALOG_MIN_INNER_WIDTH, DIALOG_MAX_INNER_WIDTH)
8046 (DIALOG_BUTTON_BUTTON_HORIZONTAL_SPACE)
8047 (DIALOG_BUTTON_BUTTON_VERTICAL_SPACE, DIALOG_BUTTON_MIN_WIDTH)
8048 (DIALOG_TEXT_MIN_HEIGHT, DIALOG_TEXT_BUTTONS_VERTICAL_SPACE)
8049 (DIALOG_ICON_WIDTH, DIALOG_ICON_HEIGHT, DIALOG_ICON_LEFT_MARGIN)
8050 (DIALOG_ICON_TOP_MARGIN): Move defines from macmenu.c.
8051 (Selection): Move typedef from macselect.c.
8052 (RAM_TOO_LARGE_ALERT_ID, ABOUT_ALERT_ID) [MAC_OS8]: Move defines from
8053 macterm.c.
8054 (mac_set_window_title, mac_set_window_modified, mac_is_window_visible)
8055 (mac_is_window_collapsed, mac_bring_window_to_front)
8056 (mac_send_window_behind, mac_hide_window, mac_show_window)
8057 (mac_collapse_window, mac_front_non_floating_window)
8058 (mac_active_non_floating_window, mac_activate_window)
8059 (mac_move_window_structure, mac_move_window, mac_size_window)
8060 (mac_get_global_mouse, mac_is_window_toolbar_visible): New defines.
8061
8062 * macmenu.c [!TARGET_API_MAC_CARBON]: Move includes to mactoolbox.c.
8063 (enum mac_menu_kind): Move enum to mactoolbox.c.
8064 (min_menu_id): Move variable to mactoolbox.c.
8065 (quit_dialog_event_loop) [TARGET_API_MAC_CARBON]: Likewise.
8066 (DIALOG_WINDOW_RESOURCE): Move define to mactoolbox.c.
8067 (DIALOG_BUTTON_COMMAND_ID_OFFSET, DIALOG_BUTTON_COMMAND_ID_P)
8068 (DIALOG_BUTTON_COMMAND_ID_VALUE, DIALOG_BUTTON_MAKE_COMMAND_ID)
8069 [TARGET_API_MAC_CARBON]: Likewise.
8070 (XtPointer): Move typedef to macgui.h.
8071 (enum button_type): Move enum to macgui.h.
8072 (widget_value): Move typedef to macgui.h.
8073 (DIALOG_LEFT_MARGIN, DIALOG_TOP_MARGIN, DIALOG_RIGHT_MARGIN)
8074 (DIALOG_BOTTOM_MARGIN, DIALOG_MIN_INNER_WIDTH, DIALOG_MAX_INNER_WIDTH)
8075 (DIALOG_BUTTON_BUTTON_HORIZONTAL_SPACE)
8076 (DIALOG_BUTTON_BUTTON_VERTICAL_SPACE, DIALOG_BUTTON_MIN_WIDTH)
8077 (DIALOG_TEXT_MIN_HEIGHT, DIALOG_TEXT_BUTTONS_VERTICAL_SPACE)
8078 (DIALOG_ICON_WIDTH, DIALOG_ICON_HEIGHT, DIALOG_ICON_LEFT_MARGIN)
8079 (DIALOG_ICON_TOP_MARGIN): Move defines to macgui.h.
8080 (popup_activated_flag): Make variable non-static.
8081 (x_activate_menubar, install_menu_quit_handler, pop_down_menu)
8082 (add_menu_item, fill_menu, dispose_menus):
8083 Move functions to mactoolbox.c.
8084 (restore_show_help_function, menu_target_item_handler)
8085 (install_menu_target_item_handler, mac_handle_dialog_event)
8086 (install_dialog_event_handler, pop_down_dialog, create_and_show_dialog)
8087 [TARGET_API_MAC_CARBON]: Likewise.
8088 (menu_quit_handler) [MAC_OS_X_VERSION_MAX_ALLOWED >= 1030]: Likewise.
8089 (mac_dialog) [!TARGET_API_MAC_CARBON]: Likewise.
8090 (find_and_call_menu_selection, name_is_separator): Make function
8091 non-static.
8092 (Vshow_help_function, timer_check) [TARGET_API_MAC_CARBON]: Move extern
8093 to mactoolbox.c.
8094 (set_frame_menubar): Don't call install_menu_quit_handler.
8095 (menu_item_selection): New variable.
8096 (mac_menu_show): Use create_and_show_popup_menu.
8097 (create_and_show_dialog) [TARGET_API_MAC_CARBON]: Don't return
8098 selection but set variable menu_item_selection. All uses changed.
8099 (mac_fill_menubar): Rename from fill_menubar. All uses changed.
8100 Call install_menu_quit_handler. Move to mactoolbox.c.
8101
8102 * macselect.c [!TARGET_API_MAC_CARBON]: Don't include Scrap.h.
8103 (Selection): Move typedef to macgui.h.
8104 (Vselection_converter_alist, Qmac_scrap_name, Qmac_ostype)
8105 (Vmac_apple_event_map, Qmac_apple_event_class, Qmac_apple_event_id):
8106 Make variables non-static.
8107 (Vmac_dnd_known_types) [TARGET_API_MAC_CARBON]: Likewise.
8108 (mac_handle_apple_event, cleanup_all_suspended_apple_events):
8109 Make functions non-static.
8110 (Vmac_service_selection) [MAC_OSX]: Likewise.
8111 (mac_get_selection_from_symbol, get_flavor_type_from_symbol)
8112 (mac_valid_selection_target_p, mac_clear_selection)
8113 (mac_get_selection_ownership_info, mac_valid_selection_value_p)
8114 (mac_put_selection_value, mac_selection_has_target_p)
8115 (mac_get_selection_value, mac_get_selection_target_list)
8116 (init_apple_event_handler, install_drag_handler, remove_drag_handler):
8117 Move functions to mactoolbox.c.
8118 (mac_do_track_drag, mac_do_receive_drag) [TARGET_API_MAC_CARBON]:
8119 Likewise.
8120 (copy_scrap_flavor_data, mac_handle_service_event)
8121 (install_service_handler) [MAC_OSX]: Likewise.
8122 (syms_of_macselect) <Vmac_dnd_known_types>:
8123 Use mac_dnd_default_known_types.
8124
8125 * macterm.h (FRAME_OUTER_TO_INNER_DIFF_X, FRAME_OUTER_TO_INNER_DIFF_Y):
8126 Move to mactoolbox.c.
8127 (HOURGLASS_WIDTH, HOURGLASS_HEIGHT): Change to 15.
8128 (Fx_selection_owner_p): Add EXFUN.
8129 (install_window_handler, remove_window_handler, XSetWindowBackground):
8130 Remove externs.
8131 (do_apple_menu) [!TARGET_API_MAC_CARBON]: Likewise.
8132 (mac_prepare_for_quickdraw) [USE_CG_DRAWING]: Likewise.
8133 (x_raise_frame, x_lower_frame, mac_alert_sound_play)
8134 (install_application_handler, mac_get_frame_bounds, mac_get_frame_mouse)
8135 (mac_convert_frame_point_to_global, mac_set_frame_window_background)
8136 (mac_update_begin mac_update_end, mac_frame_up_to_date, x_flush)
8137 (mac_create_frame_window, mac_dispose_frame_window, mac_begin_clip)
8138 (mac_end_clip, mac_create_scroll_bar, mac_dispose_scroll_bar)
8139 (mac_set_scroll_bar_bounds, mac_redraw_scroll_bar, mac_fill_menubar)
8140 (create_and_show_popup_menu, mac_get_selection_from_symbol)
8141 (mac_valid_selection_target_p, mac_clear_selection)
8142 (mac_get_selection_ownership_info, mac_valid_selection_value_p)
8143 (mac_put_selection_value, mac_selection_has_target_p)
8144 (mac_get_selection_value, mac_get_selection_target_list): Add externs.
8145 (mac_update_proxy_icon, mac_show_hourglass, mac_hide_hourglass)
8146 (mac_reposition_hourglass, mac_file_dialog, create_and_show_dialog)
8147 (mac_dnd_default_known_types) [TARGET_API_MAC_CARBON]: Likewise.
8148 (mac_run_loop_run_once) [MAC_OSX]: Likewise.
8149 (mac_dialog) [!TARGET_API_MAC_CARBON]: Likewise.
8150 (mac_begin_cg_clip, mac_end_cg_clip) [USE_CG_DRAWING]: Likewise.
8151 (x_set_toolkit_scroll_bar_thumb) [!USE_TOOLKIT_SCROLL_BARS]: Likewise.
8152 (x_scroll_bar_set_handle) [!USE_TOOLKIT_SCROLL_BARS]: Likewise.
8153
8154 * mactoolbox.c: New file.
8155
81562008-04-18 Jason Rumney <jasonr@gnu.org>
8157
8158 * dired.c (Ffile_attributes) [WINDOWSNT]: Cast uid and gid to unsigned.
8159
81602008-04-18 Stefan Monnier <monnier@iro.umontreal.ca>
8161
8162 * character.c (Fmultibyte_char_to_unibyte):
8163 Return latin1 chars unchanged.
8164
8165 * fileio.c (Fexpand_file_name): Refine last fix so `nm' is only
8166 relocated if it points to `name'.
8167
81682008-04-17 Kenichi Handa <handa@m17n.org>
8169
8170 * data.c (Faset): Allow setting a multibyte character in an
8171 ASCII-only unibyte string.
8172
8173 * lisp.h (STRING_SET_MULTIBYTE): New macro.
8174
81752008-04-16 Stefan Monnier <monnier@iro.umontreal.ca>
8176
8177 * Makefile.in: Don't use HAVE_GTK and don't -DUSE_GTK since it's now
8178 done in config.h.
8179
81802008-04-16 Juanma Barranquero <lekktu@gmail.com>
8181
8182 * character.c (Fchar_bytes, Fchar_width, Fstring_width)
8183 (Fchar_direction): Add usage in the docstring.
8184
81852008-04-15 Chong Yidong <cyd@stupidchicken.com>
8186
8187 * keyboard.c (read_key_sequence): Remove always-true checks.
8188
81892008-04-14 Jason Rumney <jasonr@gnu.org>
8190
8191 * w32font.c (w32font_open_internal): Set max_bounds.descent in
8192 compatibility struct, for better underline positioning.
8193
81942008-04-13 David Hansen <david.hansen@gmx.net>
8195
8196 * dbusbind.c (dbus-get-unique-name): Remove extra copying of name
8197 string.
8198
81992008-04-12 Dan Nicolaescu <dann@ics.uci.edu>
8200
8201 * m/hp800.h (XUINT, XSET): Remove.
8202
82032008-04-12 Juanma Barranquero <lekktu@gmail.com>
8204
8205 * fileio.c (Fexpand_file_name): Add declaration for `p' missing in
8206 previous change.
8207
82082008-04-12 Stefan Monnier <monnier@iro.umontreal.ca>
8209
8210 * fileio.c (Fexpand_file_name): Tighten the scope of `p' and `o' vars.
8211 Relocate `nm' after calling DECODE_FILE, in case the GC was run.
8212
82132008-04-11 Stefan Monnier <monnier@iro.umontreal.ca>
8214
8215 * keymap.h (map_keymap_canonical): Declare.
8216 * xmenu.c (single_keymap_panes): Use it.
8217
82182008-04-11 Glenn Morris <rgm@gnu.org>
8219
8220 * eval.c (Fdefvaralias): If the alias is bound and the target is not,
8221 set the target's value to that of the alias.
8222
82232008-04-11 Stefan Monnier <monnier@iro.umontreal.ca>
8224
8225 * term.c (set_tty_color_mode): Left over typo.
8226
82272008-04-10 Michael Albinus <michael.albinus@gmx.de>
8228
8229 * fileio.c (Fmake_symbolic_link): Surround code by #ifdef S_IFLNK
8230 only after check for file name handler functions. Signal, when
8231 native functionality is not supported.
8232 (syms_of_fileio): Declare it unconditionally.
8233
82342008-04-10 Jason Rumney <jasonr@gnu.org>
8235
8236 * w32menu.c (is_simple_dialog, simple_dialog_show): New functions.
8237 (Fx_popup_dialog): Handle simple yes/no questions as dialogs.
8238
8239 * w32.c (logon_network_drive): Also logon to remote drives that
8240 are mapped to drive letters.
8241
82422008-04-10 Glenn Morris <rgm@gnu.org>
8243
8244 * xdisp.c (truncate-partial-width-windows): Doc fix.
8245
82462008-04-10 Stefan Monnier <monnier@iro.umontreal.ca>
8247
8248 * fileio.c (read_file_name_cleanup, Fread_file_name_internal):
8249 Move functions to minibuffer.el.
8250 (syms_of_fileio): Don't declare them.
8251
82522008-04-09 Stefan Monnier <monnier@iro.umontreal.ca>
8253
8254 * minibuf.c (Vcompletion_auto_help): Move to minibuffer.el.
8255 (syms_of_minibuf): Remove its initialization.
8256
8257 * minibuf.c (temp_echo_area_glyphs): Remove unused function.
8258
82592008-04-09 Juanma Barranquero <lekktu@gmail.com>
8260
8261 * editfns.c (Ffield_string_no_properties): Fix typo in docstring.
8262
82632008-04-09 Jason Rumney <jasonr@gnu.org>
8264
8265 * makefile.w32-in (distclean): Delete makefile too.
8266 (maintainer-clean): New target.
8267
8268 * xdisp.c (redisplay_internal) [!WINDOWSNT]: Conditionalize last change.
8269
8270 * w32term.c (w32_compute_glyph_string_overhangs): Compute overhangs
8271 for new font backend and composite cases.
8272
82732008-04-09 Jan Djärv <jan.h.d@swipnet.se>
8274
8275 * atimer.c (alarm_signal_handler): Call run_timers if not SYNC_INPUT.
8276 Most of the code moved to run_timers.
8277 (do_pending_atimers): Call run_timers.
8278 (run_timers): New function.
8279
8280 * sysdep.c (emacs_write): If SYNC_INPUT and pending_atimers,
8281 run atimers.
8282
8283 * process.c (wait_reading_process_output): The same as above.
8284
82852008-04-09 Stefan Monnier <monnier@iro.umontreal.ca>
8286
8287 * minibuf.c (last_exact_completion): Remove variable.
8288 (Fdelete_minibuffer_contents, do_completion, Fminibuffer_complete)
8289 (complete_and_exit_1, complete_and_exit_2)
8290 (Fminibuffer_complete_and_exit, Fminibuffer_complete_word)
8291 (Fdisplay_completion_list, display_completion_list_1)
8292 (Fminibuffer_completion_help, Fself_insert_and_exit)
8293 (Fexit_minibuffer, Fminibuffer_message): Move functions to
8294 minibuffer.el.
8295 (syms_of_minibuf): Remove corresponding initializations.
8296
8297 * keyboard.c (Qdeactivate_mark): New var.
8298 (command_loop_1): Use it to call `deactivate-mark'.
8299 (syms_of_keyboard): Initialize it.
8300
8301 * xdisp.c (redisplay_internal): Reset tty's color_mode when switching
8302 to another frame.
8303 * frame.c (do_switch_frame): Refine the top_frame/async_visible code.
8304 Don't call set_tty_color_mode.
8305 (store_frame_param): Reset previous_frame rather than call
8306 set_tty_color_mode.
8307 * term.c (set_tty_color_mode): Rewrite.
8308 * dispextern.h (set_tty_color_mode): New type.
8309 * termchar.h (struct tty_display_info): Add `previous_color_mode'.
8310
83112008-04-08 Stefan Monnier <monnier@iro.umontreal.ca>
8312
8313 * keymap.c (access_keymap): Remove the value 2 for t_ok which was used
8314 for generic chars, which do not exist any more in emacs-unicode.
8315
83162008-04-08 Michael Albinus <michael.albinus@gmx.de>
8317
8318 * coding.c (detect_coding_emacs_mule)
8319 (Ffind_operation_coding_system): Fix typo.
8320
83212008-04-08 Jason Rumney <jasonr@gnu.org>
8322
8323 * w32uniscribe.c (SNAME): Extract only symbol name.
8324
8325 * w32font.h (struct w32_metric_cache): New struct.
8326 (w32font_info): Use it.
8327 (W32METRIC_NO_ATTEMPT, W32METRIC_SUCCESS, W32METRIC_FAIL)
8328 (CACHE_BLOCKSIZE): New constants.
8329
8330 * w32font.c (Qja, Qko, Qzh): New symbols.
8331 (syms_of_w32font): Initialise them.
8332 (font_matches_spec): Use them to filter by language.
8333 (recompute_cached_metrics): Remove function.
8334 (compute_metrics, clear_cached_metrics): New functions.
8335 (w32font_encode_char): Use them to manage metric cache.
8336 (w32font_text_extents): Cache metrics for all glyphs on demand.
8337 Delay converting glyph indices to WORD until needed.
8338 (w32font_open_internal): Initialize metric cache to empty.
8339 (registry_to_w32_charset): Charset should always be a symbol.
8340 (fill_in_logfont, list_all_matching_fonts): Family should
8341 always be a symbol.
8342
83432008-04-06 Jason Rumney <jasonr@gnu.org>
8344
8345 * w32uniscribe.c (uniscribe_shape): Increase items buffer size.
8346 Give up if glyph indices not supported. Use uniscribe obtained
8347 ABC widths for individual metrics. Map glyph clusters back to
8348 characters using fClusterStart flag. Return number of glyphs
8349 produced, not chars processed.
8350 (uniscribe_shape): Map char at FROM to current glyph.
8351
83522008-04-05 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
8353
8354 * macmenu.c (fill_menu) [TARGET_API_MAC_CARBON]:
8355 Use SetMenuItemHierarchicalMenu.
8356
83572008-04-05 Jason Rumney <jasonr@gnu.org>
8358
8359 * image.c (pbm_load): Allow color values up to 65535.
8360 Throw an error if max_color_idx is outside the supported range.
8361 Report an error when image size is invalid.
8362 Read two bytes at a time when raw images have max_color_idx above 255.
8363
83642008-04-05 Eli Zaretskii <eliz@gnu.org>
8365
8366 * w32.c (readdir): If FindFirstFile/FindNextFile return in
8367 cFileName a file name that includes `?' characters, use the 8+3
8368 alias in cAlternateFileName instead.
8369
83702008-04-05 Kenichi Handa <handa@ni.aist.go.jp>
8371
8372 * ccl.c (ccl_driver): If ccl->quit_silently is nonzero, don't
8373 append "CCL: Quitted" when the CCL program is quitted.
8374 (setup_ccl_program): Initialize ccl->quit_silently to zero.
8375
8376 * ccl.h (struct ccl_program): New member quit_silently.
8377
83782008-04-05 Chong Yidong <cyd@stupidchicken.com>
8379
8380 * search.c (compile_pattern_1): Treat non-nil and non-string of
8381 search-spaces-regexp as nil.
8382
8383 * minibuf.c (Fassoc_string): Tweak docstring.
8384
83852008-04-05 Eli Zaretskii <eliz@gnu.org>
8386
8387 * dired.c (Ffile_attributes): Support inode numbers wider than 32
8388 bits. Remove ugly WINDOWSNT-specific kludge introduced on
8389 2008-03-14 to force inode be positive.
8390
8391 * w32.c (sys_chown, stat, fstat): Use S_* constants instead of
8392 _S_* ones, since we now use our own sys/stat.h.
8393 (stat, fstat): Don't mangle the inode number.
8394 (init_user_info): Don't restrict UID and GID to 0-60000 range.
8395
83962008-04-04 Stefan Monnier <monnier@iro.umontreal.ca>
8397
8398 * frame.h (struct frame): Give one more bit to `visible' since we use
8399 values larger than 1 to indicate obscured frames on ttys.
8400
8401 * keymap.c (Qkeymap_canonicalize): New var.
8402 (Fmap_keymap_internal): New fun.
8403 (describe_map): Use keymap-canonicalize.
8404
8405 * undo.c (last_boundary_buffer, last_boundary_position): New vars.
8406 (Fundo_boundary): Set them.
8407 (syms_of_undo): Initialize them.
8408 (record_point): Use them instead of last_point_position*.
8409 (last_undo_buffer): Change type.
8410
84112008-04-04 Jason Rumney <jasonr@gnu.org>
8412
8413 * w32font.c (w32font_text_extents): Use font's ascent and descent.
8414 (recompute_cached_metrics): Don't set ascent and descent per char.
8415
8416 * w32uniscribe.c (uniscribe_check_otf): Fix last change.
8417 (uniscribe_check_otf): Add GC protection before consing.
8418 Rearrange loop for counting features.
8419
84202008-04-03 Stefan Monnier <monnier@iro.umontreal.ca>
8421
8422 * insdel.c (insert_from_buffer_1): Don't compare bytes in destination
8423 buffer with byte-size of source buffer.
8424
84252008-04-03 Chong Yidong <cyd@stupidchicken.com>
8426
8427 * callint.c (Fcall_interactively): Handle temporary region even
8428 when shift-select-mode is off.
8429
84302008-04-03 Jason Rumney <jasonr@gnu.org>
8431
8432 * w32uniscribe.c (uniscribe_check_otf): Sanity check otf_spec.
8433
84342008-04-03 Kenichi Handa <handa@m17n.org>
8435
8436 * coding.c (CATEGORY_MASK_ANY): Add CATEGORY_MASK_UTF_16_AUTO.
8437 (CATEGORY_MASK_UTF_16): Likewise.
8438 (detect_coding_utf_16): Add heuristics to reject utf-16 for a
8439 binary file.
8440 (detect_coding): Add null-byte detection for a binary file.
8441 (detect_coding_system): Likewise.
8442
84432008-04-03 Jason Rumney <jasonr@gnu.org>
8444
8445 * w32uniscribe.c: New file.
8446
8447 * font.h (uniscribe_font_driver) [WINDOWSNT]: Declare for w32fns.c.
8448
8449 * w32font.h (uniscribe_check_otf): Declare for w32font.c.
8450
8451 * w32font.c (Qbalinese, Qbuginese, Qbuhid, Qcuneiform, Qcypriot)
8452 (Qdeseret, Qglagolitic, Qgothic, Qhanunoo, Qkharoshthi)
8453 (Qlimbu, Qlinear_b, Qold_italic, Qold_persian, Qosmanya)
8454 (Qphags_pa, Qphoenician, Qshavian, Qsyloti_nagri)
8455 (Qtagalog, Qtagbanwa, Qtai_le, Qtifinagh, Qugaritic)
8456 (Qphonetic): New symbols.
8457 (syms_of_w32font): Initialize them.
8458 (font_supported_scripts): Use them.
8459 (w32font_list_family): List all charsets.
8460 (w32font_text_extents, recompute_cached_metrics): Fix metric
8461 calculations.
8462 (w32_enumfont_pattern_entity): Make full_type a DWORD.
8463 Give opentype fonts their own format.
8464 (font_matches_spec): New arguments backend and logfont.
8465 Handle :otf spec for uniscribe backend.
8466 (add_font_entity_to_list): Match truetype fonts in uniscribe backend.
8467 (fill_in_logfont): Use DEFAULT_CHARSET when charset not supplied.
8468
8469 * w32fns.c (Fx_create_frame): Conditionally register uniscribe
8470 font backend.
8471 (globals_of_w32fns): Initialize uniscribe font backend.
8472
8473 * makefile.w32-in (CONFIG_H): New variable. Use it to clean up
8474 dependencies.
8475 (w32uniscribe.$(O)): New file to build.
8476 (FONT_OBJ): Include w32uniscribe.$(O).
8477 (LIBS): Add uniscribe libraries.
8478
8479 * ftfont.c (ftfont_get_open_type_spec): Check spec->script, not val.
8480
84812008-04-02 Chong Yidong <cyd@stupidchicken.com>
8482
8483 * callint.c (Vshift_select_mode): New var.
8484 (Finteractive): Document new ^ spec.
8485 (Fcall_interactively): Call handle-shift-selection if the ^ spec
8486 is present.
8487
8488 * keyboard.c (Vthis_command_keys_shift_translated): New var.
8489 (command_loop_1): Avoid running the direct display versions of
8490 forward-char and backward-char if shift-selection may occur.
8491 (read_key_sequence): Set Vthis_command_keys_shift_translated if
8492 shift-translation takes place.
8493
8494 * buffer.c (Vtransient_mark_mode): Move docstring to simple.el to
8495 avoid clobbering by define-minor-mode.
8496
8497 * cmds.c (Fforward_char, Fbackward_char, Fforward_line)
8498 (Fbeginning_of_line, Fend_of_line): Add ^ interactive spec.
8499
8500 * syntax.c (Fforward_word): Add ^ interactive spec.
8501
8502 * window.c (Fscroll_up, Fscroll_down, Fscroll_left)
8503 (Fscroll_right): Add ^ interactive spec.
8504
85052008-04-01 Stefan Monnier <monnier@iro.umontreal.ca>
8506
8507 * xdisp.c (try_window_id): Don't forget to reset delta_bytes.
8508
8509 * casefiddle.c (casify_object): Fix up int/EMACS_INT mixup.
8510
8511 * charset.c (Funibyte_charset, Fset_unibyte_charset): Remove.
8512
85132008-03-31 Juri Linkov <juri@jurta.org>
8514
8515 * window.c (Fdisplay_buffer): Reinitialize `tem' to nil.
8516
85172008-03-30 Jan Djärv <jan.h.d@swipnet.se>
8518
8519 * gtkutil.c (xg_set_geometry): Fix indentation.
8520 (xg_resize_outer_widget): Remove.
8521 (x_wm_size_hint_off): Fix indentation.
8522 (xg_frame_set_char_size): Call flush_and_sync after
8523 gtk_window_resize.
8524 (x_wm_set_size_hint): Pass NULL as geometry window to
8525 gtk_window_set_geometry_hints due to Gtk+ bug nr 68668.
8526 Add menu bar and tool bar height to base height.
8527 (xg_update_frame_menubar, free_frame_menubar)
8528 (xg_tool_bar_detach_callback, xg_tool_bar_attach_callback)
8529 (update_frame_tool_bar, free_frame_tool_bar):
8530 Change xg_resize_outer_widget to xg_frame_set_char_size.
8531
85322008-03-30 Michael Albinus <michael.albinus@gmx.de>
8533
8534 * dbusbind.c (QCdbus_timeout): New D-Bus internal symbol.
8535 (Fdbus_call_method): New parameter TIMEOUT.
8536 (dbus-send-signal): Optimize UNGCPRO call.
8537
85382008-03-29 Juri Linkov <juri@jurta.org>
8539
8540 * window.c (Fdisplay_buffer): Move call to
8541 Vsplit_window_preferred_function out of conditions that check
8542 if window is eligible for vertical splitting.
8543 When Vsplit_window_preferred_function is non-nil, call it and use
8544 its non-nil return value as window. Otherwise, continue doing
8545 vertical splitting using Fsplit_window with arg horflag=nil.
8546 (syms_of_window) <Vsplit_window_preferred_function>: Change the
8547 default value from `split-window' to nil.
8548
85492008-03-29 Juri Linkov <juri@jurta.org>
8550
8551 * callint.c (Fcall_interactively): Revert 2008-03-16 change
8552 for interactive code letters 'b' and 'B'.
8553
85542008-03-29 Eli Zaretskii <eliz@gnu.org>
8555
8556 * fileio.c (Fexpand_file_name): Convert the value of $HOME to a
8557 multibyte string.
8558
85592008-03-29 Stefan Monnier <monnier@iro.umontreal.ca>
8560
8561 * keyboard.c (pending_funcalls): New var.
8562 (timer_check): Run it.
8563 (syms_of_keyboard): Initialize it.
8564 * terminal.c (Qrun_hook_with_args, Qdelete_terminal_functions)
8565 (Vdelete_terminal_functions): New vars.
8566 (syms_of_terminal): Initialize them.
8567 (Fdelete_terminal): Run delete-terminal-functions.
8568 * xdisp.c (safe_eval): Rewrite.
8569 (safe_call2): New fun.
8570 * frame.c (Qdelete_frame_functions): New var.
8571 (syms_of_frame): Initialize it.
8572 (Fdelete_frame): Use it and use safe_call2 and pending_funcalls.
8573 * lisp.h (safe_call2, pending_funcalls): Declare.
8574
85752008-03-28 Andreas Schwab <schwab@suse.de>
8576
8577 * indent.c (Fmove_to_column): Move declaration before statements.
8578
85792008-03-27 Stefan Monnier <monnier@iro.umontreal.ca>
8580
8581 * frame.h (enum fullscreen_type): Give it a name. Move it before use.
8582 (struct frame): Use bit fields for boolean vars.
8583
8584 * process.c (server_accept_connection): Simplify naming.
8585 (emacs_get_tty_pgrp): Use SDATA.
8586
8587 * coding.c (decode_coding_object): Fix last change.
8588
85892008-03-27 Jason Rumney <jasonr@gnu.org>
8590
8591 * w32fns.c (start_hourglass): Suppress hourglass on tty frames.
8592
85932008-03-27 Kenichi Handa <handa@ni.aist.go.jp>
8594
8595 * charset.c (Fdefine_charset_internal): Change the way of
8596 registering charsets in Vcharset_order_list.
8597 (syms_of_charset): Make the charset `eight-bit' supplementary.
8598
85992008-03-26 Alexandre Oliva <aoliva@redhat.com> (tiny change)
8600
8601 * regex.c (EXTEND_BUFFER): Change order of pointer addition
8602 operations, to avoid having the difference between pointers
8603 overflow.
8604
86052008-03-26 Stefan Monnier <monnier@iro.umontreal.ca>
8606
8607 * indent.c (check_display_width): New fun.
8608 (scan_for_column): Use it.
8609
8610 * data.c (syms_of_data): Mark most-positive-fixnum and
8611 most-negative-fixnum as constants.
8612
8613 * xdisp.c (redisplay_internal): Reset selected_frame earlier.
8614
8615 * indent.c (scan_for_column): Extract from current_column_1.
8616 Merge with the same code from Fmove_to_column.
8617 (current_column_1, Fmove_to_column): Use it.
8618
86192008-03-25 Stefan Monnier <monnier@iro.umontreal.ca>
8620
8621 * keymap.c (map_keymap_internal): New fun.
8622 (map_keymap): Use it.
8623 (Fmap_keymap_internal): New fun.
8624 (Fmap_keymap): Remove left-out test from before make_save_value.
8625
8626 * keymap.c (Fmap_keymap): Use `map-keymap-sorted.
8627
8628 * frame.c (Fmodify_frame_parameters, x_set_frame_parameters):
8629 Use XCAR/XCDR.
8630
8631 * process.h (struct Lisp_Process): Remove filter_multibyte.
8632 * process.c (QCfilter_multibyte): Remove.
8633 (setup_process_coding_systems): Don't use filter_multibyte.
8634 (Fstart_process, Fmake_network_process): Don't set filter_multibyte.
8635 (read_process_output): Don't adjust multibyteness to filter_multibyte.
8636 (Fset_process_filter_multibyte): Change the coding-system to
8637 approximate the previous behavior.
8638 (Fprocess_filter_multibyte_p): Get the multibyteness straight from the
8639 coding-system.
8640
8641 * coding.c (decode_coding_object): When not decoding into a buffer,
8642 obey the coding system's preference of (uni|multi)byte.
8643
86442008-03-24 Stefan Monnier <monnier@iro.umontreal.ca>
8645
8646 * casefiddle.c (casify_object): Avoid pathological N^2 worst case if
8647 every char is changed and has a different byte-length.
8648 (Fupcase_word, Fdowncase_word, Fcapitalize_word, operate_on_word):
8649 Fix int -> EMACS_INT.
8650
86512008-03-23 David Hansen <david.hansen@gmx.net>
8652
8653 * dbusbind.c (xd_read_message): Remove extra copying of message
8654 strings. Check for NULL `interface' or `member'.
8655
86562008-03-22 Eli Zaretskii <eliz@gnu.org>
8657
8658 * w32.c (readdir): If FindFirstFile/FindNextFile return in
8659 cFileName a file name that includes `?' characters, use the 8+3
8660 alias in cAlternateFileName instead.
8661
86622008-03-21 Stefan Monnier <monnier@iro.umontreal.ca>
8663
8664 * buffer.c (enlarge_buffer_text): Fix int -> EMACS_INT.
8665
86662008-03-20 Stefan Monnier <monnier@iro.umontreal.ca>
8667
8668 * intervals.c (temp_set_point, temp_set_point_both): Use EMACS_INT.
8669 (set_point, set_point_both): Use EMACS_INT. Remove `buffer' arg,
8670 work on current_buffer only instead (that was already the case
8671 for some of the code anyway).
8672 * buffer.h (set_point, set_point_both): Remove buffer arg, use long int.
8673 (temp_set_point, temp_set_point_both): Use EMACS_INT.
8674 (SET_PT, SET_PT_BOTH): Adjust.
8675 * intervals.h (set_point, temp_set_point, set_point_both)
8676 (temp_set_point_both): Remove redundant declarations.
8677
86782008-03-20 Stefan Monnier <monnier@iro.umontreal.ca>
8679
8680 * fileio.c (Finsert_file_contents):
8681 * lread.c (Feval_buffer): Use BUF_TEMP_SET_PT.
8682 * buffer.h (BUF_SET_PT): Remove. set_point_both doesn't work right
8683 when buffer != current_buffer anyway.
8684
86852008-03-20 Andreas Schwab <schwab@suse.de>
8686
8687 * callint.c (Fcall_interactively) [case 'B']: Use other-buffer
8688 as default.
8689
86902008-03-19 Jason Rumney <jasonr@gnu.org>
8691
8692 * w32fns.c (hourglass_timer, hourglass_hwnd): New variables.
8693 (syms_of_w32fns): Initialize them.
8694 (HOURGLASS_ID): New constant.
8695 (x_window_to_frame): Don't check hourglass_window.
8696 (w32_wnd_proc) <WM_TIMER>: Handle hourglass_timer.
8697 (w32_wnd_proc) <WM_EXITMENULOOP>: Set pending hourglass cursor.
8698 (w32_wnd_proc) <WM_SETCURSOR>: Set the hourglass or current cursor.
8699 (w32_wnd_proc) <WM_EMACS_SETCURSOR>: Set frame's current_cursor.
8700 Only change the cursor if hourglass is not active.
8701 (Fx_create_frame): Initialize frame's current_cursor.
8702 (hourglass_atimer): Remove.
8703 (hourglass_started): New function.
8704 (start_hourglass, cancel_hourglass, hide_hourglass): Adapt to w32.
8705 (show_hourglass): Adapt to w32, changing argument to frame.
8706
8707 * w32term.h (struct w32_output): Remove hourglass_window.
8708 Add current_cursor.
8709
8710 * eval.c (call_debugger, Fsignal):
8711 * keyboard.c (recursive_edit_1, cmd_error, Ftop_level)
8712 (command_loop_1, Fread_key_sequence, Fread_key_sequence_vector)
8713 (Fexecute_extended_command, cancel_hourglass_unwind):
8714 * minibuf.c (read_minibuf):
8715 * fns.c (Fy_or_n_p): Enable hourglass when HAVE_WINDOW_SYSTEM.
8716
87172008-03-19 Stefan Monnier <monnier@iro.umontreal.ca>
8718
8719 * window.c (run_funs): New fun.
8720 (run_window_configuration_change_hook): Use it to run the buffer-local
8721 and the global part of the hook.
8722
8723 * xdisp.c (format_mode_line_unwind_data): Add window argument.
8724 (unwind_format_mode_line): Restore selected window.
8725 (x_consider_frame_title, Fformat_mode_line): Set selected window.
8726
87272008-03-17 Stefan Monnier <monnier@iro.umontreal.ca>
8728
8729 * editfns.c (Fchar_equal): Check they are valid characters.
8730
8731 * buffer.h (Fbuffer_list): Declare (for use in callint.c).
8732
87332008-03-17 Andreas Schwab <schwab@suse.de>
8734
8735 * regex.c (re_match_2_internal): Properly match raw 8-bit bytes
8736 against a charset.
8737
8738 * lisp.h (Fbuffer_list): Declare.
8739
87402008-03-17 Jan Djärv <jan.h.d@swipnet.se>
d6c952f8 8741
aac0c6e3
MR
8742 * gtkutil.c (free_frame_tool_bar): Only call gtk_container_remove if
8743 handlebox_widget is != 0.
8744
87452008-03-16 Juri Linkov <juri@jurta.org>
8746
8747 * callint.c (Fcall_interactively): For interactive code letters
8748 'b' and 'B' put the buffer list into the list of default "future"
8749 values of the minibuffer.
8750
87512008-03-16 Andreas Schwab <schwab@suse.de>
8752
8753 * keyboard.c (read_key_sequence): Fix downcasing of letters with
8754 modifiers.
8755
8756 * regex.c (re_match_2_internal): Correct matching of a charset
8757 against latin-1 characters.
8758
87592008-03-16 Kenichi Handa <handa@m17n.org>
8760
8761 * coding.c (CHAR_STRING_ADVANCE_NO_UNIFY)
8762 (STRING_CHAR_ADVANCE_NO_UNIFY): New macros.
8763 (coding_alloc_by_making_gap): Fix the way to preserve data in the gap.
8764 (alloc_destination): Fix the 2nd arg to coding_alloc_by_making_gap.
8765 (encode_coding_utf_8): Use CHAR_STRING_ADVANCE_NO_UNIFY instead of
8766 CHAR_STRING_ADVANCE.
8767 (produce_chars): Fix for the case that the source and the
8768 destination are the same buffer. Use CHAR_STRING_ADVANCE_NO_UNIFY
8769 instead of CHAR_STRING_ADVANCE.
8770 (consume_chars): Use STRING_CHAR_ADVANCE_NO_UNIFY instead of
8771 STRING_CHAR_ADVANCE.
8772
87732008-03-15 Andreas Schwab <schwab@suse.de>
8774
8775 * regex.c (re_match_2_internal): Correct matching of eight bit
8776 characters in unibyte strings.
8777
87782008-03-15 Martin Rudalics <rudalics@gmx.at>
8779
8780 * buffer.c (overlays_in, Foverlays_in): Include empty overlays
8781 at end of range when it coincides with the end of the buffer.
8782
87832008-03-14 Eli Zaretskii <eliz@gnu.org>
8784
8785 * dired.c (Ffile_attributes) [WINDOWSNT]: Force inode be positive.
8786
8787 * w32fns.c (globals_of_w32fns, Fx_create_frame): Fix last change.
8788
87892008-03-14 Jason Rumney <jasonr@gnu.org>
8790
8791 * editfns.c (initial_tz): New variable.
8792 (syms_of_editfns): Initialize it.
8793 (Fset_time_zone_rule): Set it when first called.
8794 Use it when TZSTRING is nil.
8795
8796 * w32fns.c (MONITOR_DEFAULT_TO_NEAREST, struct MONITOR_INFO)
8797 (MonitorFromPoint_Proc, GetMonitorInfo_Proc): New definitions.
8798 (monitor_from_point_fn, get_monitor_info_fn): New globals.
8799 (globals_of_w32fns): Initialize them.
8800 (compute_tip_xy): Use them to position tooltips.
8801
88022008-03-14 Glenn Morris <rgm@gnu.org>
8803
8804 * emacs.c (main): Revert previous change.
8805 (standard_args): Revert -internal-script back to -scriptload,
8806 and remove the long-option form.
8807
88082008-03-13 Glenn Morris <rgm@gnu.org>
8809
8810 * emacs.c (main, standard_args): Rename -scriptload to -internal-script.
8811 Remove option -enable-font-backend.
8812
88132008-03-12 Stefan Monnier <monnier@iro.umontreal.ca>
8814
8815 * buffer.c (Fswitch_to_buffer): Fall back on pop-to-buffer.
8816
88172008-03-11 Jan Djärv <jan.h.d@swipnet.se>
8818
8819 * xterm.c (x_connection_closed): For GTK: If this is the last
8820 terminal just exit without closing the display.
8821
88222008-03-11 Jason Rumney <jasonr@gnu.org>
8823
8824 * w32font.c (w32font_full_name): Use floor to round.
8825
f0131492 88262008-03-10 Dhruva Krishnamurthy <dhruvakm@gmail.com> (tiny change)
aac0c6e3
MR
8827
8828 * sound.c (alsa_configure): Declare vol at beginning of block.
8829
8830 * fontset.c (Ffontset_info): Remove extra semicolon.
8831
88322008-03-10 Stefan Monnier <monnier@iro.umontreal.ca>
8833
8834 * fileio.c (Fsubstitute_in_file_name): Fix up computation of maximum
8835 size of resulting string.
8836
88372008-03-10 Jason Rumney <jasonr@gnu.org>
8838
8839 * dispnew.c (adjust_glyph_matrix): Initialize window_height.
8840
88412008-03-10 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
8842
8843 * xdisp.c (handle_single_display_spec): Undo 2007-10-16 changes.
8844 Don't pretend as if characters with display property haven't been
8845 consumed for string-replacing-string case.
8846
88472008-03-08 Kim F. Storm <storm@cua.dk>
8848
8849 * xdisp.c (GET_NEXT_DISPLAY_ELEMENT): New macro.
8850 (get_next_display_element, next_element_from_string)
8851 (next_element_from_ellipsis, next_element_from_buffer): Use it.
8852
88532008-03-08 Andreas Schwab <schwab@suse.de>
8854
8855 * process.h (struct Lisp_Process): Declare bit fields as unsigned.
8856
88572008-03-06 Jason Rumney <jasonr@gnu.org>
8858
8859 * w32font.c (w32_registry): Take font_type argument. Use ANSI
8860 when charset not specified. Only translate ANSI to unicode when
8861 font_type is truetype.
8862 (w32font_coverage_ok): New function.
8863 (add_font_entity_to_list): Use it to filter unsuitable fonts.
8864
88652008-03-05 Kenichi Handa <handa@ni.aist.go.jp>
8866
8867 * lread.c (Fread_char): Resolve modifiers.
8868 (Fread_char_exclusive): Likewise.
8869
8870 * character.c (char_resolve_modifier_mask): New function.
8871 (char_string): Use char_resolve_modifier_mask.
8872 (Fchar_resolve_modifiers): New function.
8873 (syms_of_character): Declare Fchar_resolve_modifiers as Lisp
8874 function.
8875
88762008-03-04 Jason Rumney <jasonr@gnu.org>
8877
8878 * makefile.w32-in: Always include w32font.c in the build.
8879 * w32font.c: Wrap in USE_FONT_BACKEND conditional.
8880
88812008-03-04 Andreas Schwab <schwab@suse.de>
8882
8883 * Makefile.in (clean): Remove emacs-*.*.* instead of emacs-*.
8884 (versionclean): Likewise.
8885
88862008-03-04 Juanma Barranquero <lekktu@gmail.com>
8887
8888 * .cvsignore: Add oo.
8889
88902008-03-03 Andreas Schwab <schwab@suse.de>
8891
8892 * coding.c (decode_coding_object): Inhibit gap shrinking while
8893 decoding in place.
8894
88952008-03-03 Dan Nicolaescu <dann@ics.uci.edu>
8896
8897 * w32term.c: Remove unused include "gnu.h".
8898 * makefile.w32-in (w32term.o): Don't depend on gnu.h.
8899
8900 * gnu.h: Rename to ...
8901 * emacs-icon.h: ... this.
8902 * xterm.c: Use emacs-icon.h instead of gnu.h.
8903 * Makefile (xterm.o): Depend on emacs-icon.h, not gnu.h.
8904
89052008-03-03 Juanma Barranquero <lekktu@gmail.com>
8906
8907 * w32font.c: Include math.h.
8908
89092008-03-03 Jason Rumney <jasonr@gnu.org>
8910
8911 * w32font.c (recompute_cached_metrics): Change font arg to w32font_info.
8912 Compute options separately.
8913 (w32font_open_internal): Set glyph_idx before caching metrics.
8914
8915 * w32font.h (NTM_PS_OPENTYPE, NTM_TT_OPENTYPE, NTM_TYPE1):
8916 Define if system headers don't.
8917 (struct w32font_info): Enlarge ascii_metrics. Add glyph_idx.
8918 (w32font_encode_char): Don't declare here.
8919
8920 * w32font.c (Quniscribe, QCformat): New symbols.
8921 (syms_of_w32font): Define them.
8922 (w32font_has_char): Indicate uncertainty.
8923 (w32font_encode_char): Encode as glyph point. Make static.
8924 (recompute_cached_metrics): New function.
8925 (w32font_open_internal): Use it. Set font to use glyph points
8926 initially. Set format based on type of font.
8927 (w32font_text_extents, w32font_draw): Optionally use glyph points.
8928 (w32_enumfont_pattern_entity): Accept backend arg. Set type based
8929 on it. Set format based on information available here.
8930 (add_font_entity_to_list): Identify backend based on opentype_only.
8931
89322008-03-02 Andreas Schwab <schwab@suse.de>
8933
8934 * ftfont.c (ftfont_pattern_entity): Fix aliasing violations.
8935
8936 * coding.c (decode_coding_big5, produce_chars):
8937 Fix typos in last change.
8938
89392008-03-02 Kentaro Ohkouchi <nanasess@fsm.ne.jp>
8940
8941 * gnu.h: New icon.
8942
89432008-03-02 Kenichi Handa <handa@m17n.org>
8944
8945 * coding.c (decode_coding_utf_8): When eol-type of CODING is
8946 `dos', don't decode '\r' if that is the last in the source.
8947 (decode_coding_utf_16, decode_coding_emacs_mule)
8948 (decode_coding_iso_2022, decode_coding_sjis, decode_coding_big5)
8949 (decode_coding_raw_text, decode_coding_charset): Likewise.
8950 (produce_chars): Don't decode EOL here. Use EMACS_INT.
8951
89522008-03-01 Jason Rumney <jasonr@gnu.org>
8953
8954 * w32font.c (w32font_full_name): Report point size for scalable fonts.
8955
89562008-03-01 Kim F. Storm <storm@cua.dk>
8957
8958 * dispextern.h (CHAR_GLYPH_SPACE_P): Check for default face.
8959
89602008-03-01 Jason Rumney <jasonr@gnu.org>
8961
8962 * w32font.c (w32font_full_name): New function.
8963 (w32font_open_internal): Use it.
8964
89652008-03-01 Kim F. Storm <storm@cua.dk>
8966
8967 * dispnew.c (line_draw_cost): Fix invalid glyph check.
8968
89692008-03-01 Jason Rumney <jasonr@gnu.org>
8970
8971 * font.c (font_unparse_fcname): Increase len when style is a symbol.
8972
89732008-03-01 Jan Djärv <jan.h.d@swipnet.se>
8974
8975 * xterm.c (handle_one_xevent): For Gtk+ and ConfigureNotify, call
8976 xg_frame_resized when the event is for the edit widget.
8977
8978 * gtkutil.h (xg_frame_resized): Renamed from xg_resize_widgets.
8979
8980 * gtkutil.c (xg_resize_outer_widget): Only do one of set_geometry or
8981 set_char_size.
8982 (xg_frame_resized): Renamed from xg_resize_widgets. Remove all
8983 operations on widgets here. Just set frame size if needed.
8984 (flush_and_sync, x_wm_size_hint_off, xg_pack_tool_bar): New functions.
8985 (xg_frame_set_char_size): Call x_wm_size_hint_off before resizing.
8986 (x_wm_set_size_hint): Set size hints on the edit widget only, not
8987 the whole frame.
8988 (xg_create_tool_bar): Move attachment of the tool bar to
8989 xg_pack_tool_bar. Do not attach the tool bar if there are no items.
8990 (free_frame_tool_bar): Remove call to SET_FRAME_GARBAGED.
8991
89922008-03-01 Jason Rumney <jasonr@gnu.org>
8993
8994 * w32fns.c (w32_msg_pump): Disable debug code.
8995
89962008-03-01 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
8997
8998 * m/intel386.h [MAC_OSX || DARWIN]: Define NO_ARG_ARRAY if _LP64.
8999
90002008-02-29 Chong Yidong <cyd@stupidchicken.com>
9001
9002 * xdisp.c (next_overlay_string): Don't set
9003 overlay_strings_at_end_processed_p if we're currently reading from
9004 a display string.
9005
90062008-02-29 Stefan Monnier <monnier@iro.umontreal.ca>
9007
9008 * xdisp.c (get_overlay_strings_1): Fix typo.
9009
90102008-02-29 Chong Yidong <cyd@stupidchicken.com>
9011
9012 * xdisp.c (get_overlay_strings_1): Add missing argument type.
9013
90142008-02-28 Kenichi Handa <handa@ni.aist.go.jp>
9015
9016 * ftfont.c (ftfont_match): Explicitly set pixelsize in pattern.
9017
9018 * xdisp.c (display_mode_element): Cancel the previous change.
9019 (decode_mode_spec): Likewise.
9020 (handle_auto_composed_prop): Don't make composition if it->string
9021 is a string.
9022
90232008-02-27 Kim F. Storm <storm@cua.dk>
9024
9025 * lisp.h (GLYPH): Change type from int to struct with separate char
9026 and face_id members.
9027 (GLYPH_MASK_FACE, GLYPH_MASK_CHAR): Delete macros.
9028 (GLYPH_CHAR, GLYPH_FACE): Remove slow versions with frame arg.
9029 (FAST_GLYPH_CHAR, FAST_GLYPH_FACE): Rename macros to ...
9030 (GLYPH_CHAR, GLYPH_FACE): ... these. Change users.
9031 (FAST_MAKE_GLYPH, MAKE_GLYPH): Remove. Rewrite users to use ...
9032 (SET_GLYPH, SET_GLYPH_CHAR, SET_GLYPH_FACE): ... these macros instead.
9033 (GLYPH_CODE_CHAR, GLYPH_CODE_FACE, GLYPH_CODE_P)
9034 (GLYPH_CODE_CHAR_VALID_P, SET_GLYPH_FROM_GLYPH_CODE): New macros to
9035 handle new Lisp glyph code encoding, either an integer or a cons.
9036
9037 * disptab.h (GLYPH_SIMPLE_P): Rewrite.
9038 (GLYPH_ALIAS): Delete.
9039 (GLYPH_ALIAS_P, GLYPH_FOLLOW_ALIASES): Rewrite.
9040 (GLYPH_LENGTH, GLYPH_STRING): Use GLYPH_CHAR.
9041 (GLYPH_FROM_CHAR): Replace macro by ...
9042 (SET_GLYPH_FROM_CHAR): ... this macro. Change users.
9043
9044 * dispextern.h (CHAR_GLYPH_SPACE_P): Simplify.
9045 (GLYPH_FROM_CHAR_GLYPH): Replace macro by ...
9046 (SET_GLYPH_FROM_CHAR_GLYPH): ... this macro. Change users.
9047 (GLYPH_INVALID_P): New macro.
9048 (spec_glyph_lookup_face): Update prototype.
9049
9050 * dispnew.c (line_draw_cost): Adapt to new glyph type.
9051 (build_frame_matrix_from_leaf_window): Adapt to new glyph type and
9052 new glyph code encoding.
9053 (spec_glyph_lookup_face): No return value; update passed glyph instead.
9054 (init_display): Use SET_CHAR_GLYPH to initialize space_glyph.
9055
9056 * xdisp.c (get_next_display_element, next_element_from_display_vector):
9057 Adapt to new glyph type and new glyph code encoding.
9058
9059 * term.c (encode_terminal_code, produce_special_glyphs): Likewise.
9060
9061 * indent.c (current_column, current_column_1, Fmove_to_column)
9062 (compute_motion): Adapt to new glyph code encoding.
9063
9064 * msdos.c (IT_write_glyphs): Adapt to new glyph type.
9065
90662008-02-27 Chong Yidong <cyd@stupidchicken.com>
9067
9068 * process.c (wait_reading_process_output): Check for window
9069 changes caused by timers.
9070 Suggested by Johan Bockgård.
9071
90722008-02-27 Glenn Morris <rgm@gnu.org>
9073
9074 * emacs.c (USAGE1): Add `--disable-font-backend'.
9075
90762008-02-27 Stefan Monnier <monnier@iro.umontreal.ca>
9077
9078 * fileio.c (Finsert_file_contents): Don't reset undo_list if no change
9079 is made to the buffer.
9080
90812008-02-26 Stefan Monnier <monnier@iro.umontreal.ca>
9082
9083 * dispextern.h (face_at_buffer_position, face_for_overlay_string)
9084 (face_at_string_position):
9085 * xfaces.c (face_at_buffer_position, face_for_overlay_string)
9086 (face_at_string_position):
9087 * xdisp.c (display_string, next_overlay_change):
9088 * buffer.h (overlays_at):
9089 * buffer.c (overlays_at): Use EMACS_INT for buffer positions.
9090 Update callers.
9091
90922008-02-26 Chong Yidong <cyd@stupidchicken.com>
9093
9094 * editfns.c (Fformat): Doc fix.
9095
90962008-02-26 Juanma Barranquero <lekktu@gmail.com>
9097
9098 * font.c (Ffont_spec, Ffont_at): Fix typos in docstrings.
9099 (Ffont_put, Flist_families, Ffont_fill_gstring, Ffont_drive_otf)
9100 (Ffont_otf_alternates, Fquery_font): Doc fixes.
9101
91022008-02-25 Stefan Monnier <monnier@iro.umontreal.ca>
9103
9104 * buffer.c (Fbuffer_swap_text): New function.
9105 (syms_of_buffer): Defsubr it.
9106
91072008-02-25 Chong Yidong <cyd@stupidchicken.com>
9108
9109 * keyboard.c (command_loop_1): Revert 2006-10-09 change.
9110
91112008-02-25 Jason Rumney <jasonr@gnu.org>
9112
9113 * w32font.c (w32font_draw): Draw one character at a time when padding.
9114
91152008-02-25 Stefan Monnier <monnier@iro.umontreal.ca>
9116
9117 * window.c (Fdelete_window, Fadjust_window_trailing_edge):
9118 Handle a nil arg. Use run_window_configuration_change_hook.
9119 (delete_window, adjust_window_trailing_edge): Don't handle nil any more.
9120 (Fenlarge_window, Fshrink_window, Fset_window_configuration):
9121 Use run_window_configuration_change_hook.
9122
91232008-02-25 Kenichi Handa <handa@ni.aist.go.jp>
9124
9125 * xdisp.c (x_produce_glyphs): For a visible glyph, assure at least
9126 1-pixel width.
9127
91282008-02-25 Kenichi Handa <handa@ni.aist.go.jp>
9129
9130 * xdisp.c (fill_glyph_string): Pay attention to glyph->padding_p.
9131 (append_glyph): Set glyph->pixel_width and glyph->padding_p to 1
9132 if the glyph in the font is zero pixel with.
9133
9134 * dispextern.h (struct glyph_string): New member padding_p.
9135
9136 * w32font.c (w32font_draw): Pay attention to s->padding_p.
9137
9138 * ftxfont.c (ftxfont_draw): Pay attention to s->padding_p.
9139
9140 * xfont.c (xfont_draw): Pay attention to s->padding_p.
9141
9142 * xftfont.c (xftfont_draw): Pay attention to s->padding_p.
9143
9144 * font.c: If the font driver doesn't have `shape' function, return Qnil.
9145
91462008-02-25 Jason Rumney <jasonr@gnu.org>
9147
9148 * w32fns.c (enum_font_cb2): Don't use raster fonts for Unicode.
9149
91502008-02-24 Stefan Monnier <monnier@iro.umontreal.ca>
9151
9152 Allow fine-grained image-cache flushing.
9153 * dispextern.h (struct image): Add `dependencies' field.
9154 (clear_image_caches): Change arg to Lisp_Object.
9155 * image.c (make_image): Initialize `dependencies' field.
9156 (clear_image_cache): Change arg to allow fine-grained flushing.
9157 Perform the flush even if image-cache-eviction-delay is nil.
9158 (clear_image_caches): Change arg to Lisp_Object.
9159 (Fclear_image_cache): Expand meaning of the argument.
9160 (mark_image): Mark `dependencies' field.
9161 * xfaces.c (clear_face_cache): Adapt arg to call to clear_image_caches.
9162 (lface_hash): Use XHASH rather than XFASTINT.
9163 (face_at_buffer_position): Fix int -> EMACS_INT position.
9164 * xdisp.c (next_overlay_change): Fix int -> EMACS_INT position.
9165 (select_frame_for_redisplay): Remove code duplication.
9166 (redisplay_internal): Adapt arg to call to clear_image_caches.
9167
91682008-02-24 Dan Nicolaescu <dann@ics.uci.edu>
9169
9170 * s/vms4-0.h:
9171 * s/vms4-2.h:
9172 * s/vms4-4.h:
9173 * s/vms5-5.h: Remove, unused.
9174
9175 * s/irix5-2.h:
9176 * s/irix6-0.h:
9177 * s/riscos5.h:
9178 * s/mach-bsd4-3.h:
9179 * m/mips4.h: Remove files for obsolete systems.
9180
9181 * Makefile.in:
9182 * filelock.c:
9183 * unexmips.c:
9184 * m/hp9000s300.h:
9185 * m/iris4d.h:
9186 * s/aix3-1.h:
9187 * s/hpux.h:
9188 * s/msdos.h:
9189 * s/usg5-0.h:
9190 * s/usg5-2-2.h:
9191 * s/usg5-2.h:
9192 * s/usg5-3.h: Remove references to obsolete variables.
9193
9194 * s/irix5-0.h: Remove, move all the contents ...
9195 * s/irix6-5.h: ... here. Simplify.
9196 * config.in: Regenerate.
9197
91982008-02-24 Jason Rumney <jasonr@gnu.org>
9199
9200 * w32term.c (x_draw_glyph_string_background): Clear the background
9201 manually when cleartype is in use.
9202 (x_draw_glyph_string_foreground): Draw text transparently when
9203 cleartype is in use.
9204
9205 * w32font.c (w32font_text_extents): Avoid getting HDC and selecting
9206 a font into it unless we have to.
9207
92082008-02-19 Stefan Monnier <monnier@iro.umontreal.ca>
9209
9210 * intervals.h (INT_LISPLIKE): Remove. It may misfire.
9211 (NULL_INTERVAL_P, SET_INTERVAL_PARENT): Don't use it.
d6c952f8 9212
aac0c6e3
MR
92132008-02-18 Jason Rumney <jasonr@gnu.org>
9214
9215 * w32fns.c (Fw32_shell_execute): Encode parameters.
9216
92172008-02-09 Eli Zaretskii <eliz@gnu.org>
9218
9219 * fileio.c (syms_of_fileio) <insert-default-directory>: Doc fix.
9220
92212008-02-05 Juanma Barranquero <lekktu@gmail.com>
9222
9223 * unexhp9k800.c (read_header): Replace `legal' with `valid'.
9224
92252008-02-24 Ulrich Neumerkel <ulrich@complang.tuwien.ac.at> (tiny change)
9226
9227 * xterm.c (x_set_offset): Don't change the gravity if
9228 CHANGE_GRAVITY is -1.
9229
92302008-02-23 Chong Yidong <cyd@stupidchicken.com>
9231
9232 * fileio.c (auto_save_error_occurred): New var.
9233 (auto_save_error): Set it.
9234 (Fdo_auto_save): Don't overwrite the error message if an auto-save
9235 error occurred.
9236
92372008-02-23 Eli Zaretskii <eliz@gnu.org>
9238
9239 * w32.c (globals_of_w32): Add initializations for
9240 g_b_init_get_sid_sub_authority and
9241 g_b_init_get_sid_sub_authority_count.
9242
92432008-02-22 Stefan Monnier <monnier@iro.umontreal.ca>
9244
9245 * font.c (font_match_xlfd, font_check_xlfd_parse): New funs.
9246 (font_parse_xlfd): Use them for sanity check.
9247 (Finternal_set_font_style_table): Make sure the table is bijective.
9248
9249 Consolidate the image_cache to the terminal struct.
9250 * termhooks.h (P_): Remove redundant def.
9251 (struct terminal): New field `image_cache'.
9252 * frame.h (FRAME_IMAGE_CACHE): New macro. Use it everywhere in place
9253 of FRAME_X_IMAGE_CACHE.
9254 * xterm.h (struct x_display_info): Remove image_cache field.
9255 (FRAME_X_IMAGE_CACHE): Remove. Use FRAME_IMAGE_CACHE instead.
9256 * w32term.h (struct w32_display_info): Remove image_cache field.
9257 (FRAME_X_IMAGE_CACHE): Remove. Use FRAME_IMAGE_CACHE instead.
9258 * macterm.h (struct mac_display_info): Remove image_cache field.
9259 (FRAME_X_IMAGE_CACHE): Remove. Use FRAME_IMAGE_CACHE instead.
9260 * xterm.c (x_term_init):
9261 * w32term.c (w32_term_init):
9262 * macterm.c (mac_term_init): Set the image_cache in the terminal.
9263 * dispextern.h (clear_image_cache, forall_images_in_image_cache):
9264 Remove declarations.
9265 (clear_image_caches, mark_image_cache): New declarations.
9266 * xfaces.c (clear_face_cache):
9267 * xdisp.c (redisplay_internal): Use clear_image_caches.
9268 * image.c (clear_image_cache): Don't check that a frame is on
9269 a window-system before checking if it shares the same cache.
9270 (clear_image_caches): New function.
9271 (Fclear_image_cache): Use it.
9272 (mark_image): Move from allo.c.
9273 (mark_image_cache): Move from alloc.c and forall_images_in_image_cache.
9274 * alloc.c (mark_image, mark_image_cache): Move to image.c.
9275 (mark_object): Don't call mark_image_cache for frames.
9276 (mark_terminals): Call mark_image_cache.
9277
9278 * lisp.h (Fdelete_terminal): Declare.
9279
9280 * charset.h (CHECK_CHARSET, CHECK_CHARSET_GET_ID)
9281 (CHECK_CHARSET_GET_ATTR): Don't use the inexistent return value of
9282 wrong_type_argument.
9283
92842008-02-22 Kenichi Handa <handa@ni.aist.go.jp>
9285
9286 * Makefile.in (lisp): Remove devanagari.el, kannada.el,
9287 malayalam.el, and tamil.el. Add sinhala.el.
9288
92892008-02-21 Stefan Monnier <monnier@iro.umontreal.ca>
9290
9291 * xterm.c (x_connection_closed): Consolidate identical tests.
9292 (x_delete_terminal): Don't crash if called via x_connection_closed.
9293
92942008-02-21 Kenichi Handa <handa@ni.aist.go.jp>
9295
9296 * xdisp.c (decode_mode_spec): New arg string.
9297 (display_mode_element): Adjust for the above change.
9298
92992008-02-19 Stefan Monnier <monnier@iro.umontreal.ca>
9300
9301 * callint.c (Fcall_interactively): Use AREF.
9302
93032008-02-18 Stefan Monnier <monnier@iro.umontreal.ca>
9304
9305 * font.c (font_unparse_xlfd): Don't ignore integer pixel size specs.
9306
93072008-02-18 Jan Djärv <jan.h.d@swipnet.se>
9308
9309 * xfns.c (Fx_show_tip): Set string to " " if empty.
9310
93112008-02-17 Dan Nicolaescu <dann@ics.uci.edu>
9312
9313 * callint.c (syms_of_callint): Initialize Vmark_even_if_inactive
9314 with Qt.
9315
93162008-02-17 Kenichi Handa <handa@m17n.org>
9317
9318 * ftfont.c (ftfont_shape): Return Lispy number.
9319
9320 * xfaces.c (prepare_face_for_display): Use display_info->font->fid
9321 for GCs.
9322 (Finternal_set_font_selection_order): Call font_update_sort_order
9323 only when enable_font_backend is set.
9324 (realize_x_face): Set face->font_info to that of default face only
9325 when enable_font_backend is set.
9326
9327 * xdisp.c (handle_composition_prop): Set it->c to the fist
9328 character of the composed region.
9329 (fill_composite_glyph_string): Set base_face->font_info to
9330 s->font_info. Get a face for ascii from base_face->ascii_face.
9331 (BUILD_COMPOSITE_GLYPH_STRING): Call fill_composite_glyph_string
9332 with a face already decided.
9333 (x_produce_glyphs): Be sure to set it->ascent and it->descent to
9334 non-negative.
9335 (x_produce_glyphs): If the composition method is ..._WITH_GLYPH_STRING,
9336 call font_prepare_composition unconditionally.
9337
9338 * xfns.c (x_make_gc): Use the default font id of the frame for GCs.
9339
9340 * xterm.h (struct x_display_info): New member font.
9341
9342 * xterm.c (x_set_cursor_gc): Use display_info->font->fid for GCs.
9343 (x_set_mouse_face_gc, x_new_font): Likewise.
9344 (x_term_init): Setup display_info->font.
9345 (x_delete_terminal): Free display_info->font.
9346
9347 * xfont.c (xfont_draw): Use BLOCK_INPUT and UNBLOCK_INPUT.
9348
9349 * ftxfont.c (ftxfont_default_fid): Delete it.
9350 (ftxfont_open): Set xfont->fid to 0.
9351 (ftxfont_end_for_frame): Clear data specific to the frame and the
9352 font-driver.
9353
9354 * xftfont.c (xftfont_default_fid): Delete it.
9355 (xftfont_open): Set xfont->fid to 0.
9356
9357 * fontset.c (FONTSET_OBJLIST): New macro.
9358 (fontset_find_font): Update font-object list of the fontset.
9359 (free_realized_fontset): New function.
9360 (free_face_fontset): Call free_realized_fontset.
9361 (Ffont_info): Call font_close_object only when enable_font_backend
9362 is set.
9363
9364 * font.c [HAVE_X_WINDOWS]: Include xterm.h.
9365 [HAVE_NTGUI]: Include w32term.h.
9366 [MAC_OS]: Include macterm.ch.
9367 (font_otf_ValueRecord): Use make_number.
9368 (font_finish_cache): Fix handling of reference count.
9369 (font_clear_cache): Update num_fonts.
9370 (font_open_entity): Update smallest_char_width and
9371 smallest_font_height of the frame.
9372 (font_close_object): Update num_fonts.
9373 (Fclear_font_cache): Fix finding the target cache data.
9374
93752008-02-16 Glenn Morris <rgm@gnu.org>
9376
9377 * fontset.c (Finternal_char_font): Fix compilation warning.
9378
93792008-02-16 Eli Zaretskii <eliz@gnu.org>
9380
9381 * w32.c (init_user_info): Use TOKEN_USER and TOKEN_PRIMARY_GROUP
9382 instead of char arrays. Enlarge the size of array passed to
9383 get_token_information.
9384
9385 * font.c (Ffont_fill_gstring, Fget_font_glyphs): Fix compilation
9386 warnings.
9387
93882008-02-15 Dan Nicolaescu <dann@ics.uci.edu>
9389
9390 * .gdbinit: Don't set `args', it breaks gdb --args.
9391
93922008-02-14 Stefan Monnier <monnier@iro.umontreal.ca>
9393
9394 * fileio.c (Finsert_file_contents): Adjust offsets when replacing
9395 within a narrowed buffer.
9396
93972008-02-14 Kenichi Handa <handa@ni.aist.go.jp>
9398
9399 * coding.c (decode_coding_object, encode_coding_object):
9400 Preserve Vdeactivate_mark. Delete unnecessary call of Fcurrent_buffer.
9401
94022008-02-12 Stefan Monnier <monnier@iro.umontreal.ca>
9403
9404 * coding.c (coding_set_destination): Use BEG_BYTE rather than
9405 hardcoding 1.
9406 (detect_coding_system):
9407 * lisp.h (detect_coding_system, chars_in_text, multibyte_chars_in_text)
9408 (string_char_to_byte, string_byte_to_char, insert_from_gap):
9409 * insdel.c (insert_from_gap):
9410 * fns.c (string_char_byte_cache_charpos, string_char_byte_cache_bytepos)
9411 (string_char_to_byte, string_byte_to_char, string_make_multibyte)
9412 (string_to_multibyte):
9413 * character.c (chars_in_text, multibyte_chars_in_text):
9414 * fileio.c (Finsert_file_contents): Use EMACS_INT for buffer positions.
9415
9416 * character.h (FETCH_STRING_CHAR_ADVANCE)
9417 (FETCH_STRING_CHAR_AS_MULTIBYTE_ADVANCE)
9418 (FETCH_STRING_CHAR_ADVANCE_NO_CHECK): Use SDATA and SREF.
9419 (DEC_POS, BUF_DEC_POS): Use BEG_BYTE rather than hardcoding 1.
9420
9421 * casefiddle.c (casify_region): Only call after-change and composition
9422 functions on the part of the region that was changed.
9423
9424 * keyboard.c (read_avail_input):
9425 * frame.c (Fdelete_frame): Call Fdelete_terminal.
9426
94272008-02-11 Stefan Monnier <monnier@iro.umontreal.ca>
9428
9429 * buffer.c (clone_per_buffer_values, reset_buffer_local_variables)
9430 (Fbuffer_local_value, Fbuffer_local_variables): Don't forget undo_list.
9431
94322008-02-11 Juanma Barranquero <lekktu@gmail.com>
9433
9434 * w32menu.c (push_submenu_start, push_submenu_end)
9435 (push_left_right_boundary, push_menu_pane, push_menu_item):
9436 * keyboard.c (read_key_sequence): Don't pass args with side effects
9437 to AREF, it fails when compiling with -DENABLE_CHECKING.
9438
94392008-02-11 Kenichi Handa <handa@ni.aist.go.jp>
9440
9441 * Makefile.in (${lispsource}international/charprop.el):
9442 Delete this target.
9443
9444 * search.c (boyer_moore): Fix incorrect synching of the trunk and
9445 emacs-unicode-2.
9446
94472008-02-11 Stefan Monnier <monnier@iro.umontreal.ca>
9448
9449 * terminal.c (Fdelete_terminal): Clean up the `force' path.
9450
94512008-02-10 Stefan Monnier <monnier@iro.umontreal.ca>
9452
9453 * frame.c (Qnoelisp): New symbol.
9454 (syms_of_frame): Initialize it.
9455 (Fdelete_frame): Use it to distinguish a mere `force' passed from some
9456 harmless Elisp code, from a strong `force' from x_connection_closed.
9457 * frame.h (Qnoelisp): Declare.
9458 * xterm.c (x_connection_closed): Pass `noelisp'.
9459
9460 * lisp.h (struct Lisp_Misc_Any, struct Lisp_Marker)
9461 (struct Lisp_Overlay, struct Lisp_Kboard_Objfwd)
9462 (struct Lisp_Save_Value, struct Lisp_Free): Use enum Lisp_Misc_Type
9463 rather than `int' for the type of `type'.
9464
94652008-02-10 Dan Nicolaescu <dann@ics.uci.edu>
9466
9467 * s/gnu-linux.h: Remove support for non-ELF and linux-1.x.
9468
9469 * Makefile.in (GNUC): Remove support for gcc-1.x.
9470
94712008-02-10 Richard Stallman <rms@gnu.org>
9472
9473 * lisp.h (ASET): Use AREF, not ASLOT.
9474
94752008-02-10 Stefan Monnier <monnier@iro.umontreal.ca>
9476
9477 * lisp.h (ASET): Check bounds.
9478
94792008-02-10 Glenn Morris <rgm@gnu.org>
9480
9481 * buffer.c (mode-name): Doc fix.
9482
94832008-02-09 Dan Nicolaescu <dann@ics.uci.edu>
9484
9485 * Makefile.in:
9486 * emacs.c:
9487 * gmalloc.c:
9488 * keyboard.c:
9489 * lisp.h:
9490 * m/ibm370aix.h:
9491 * process.c:
9492 * regex.c:
9493 * s/hpux.h:
9494 * sysdep.c:
9495 * sysselect.h:
9496 * systty.h:
9497 * unexec.c:
9498 * w32term.c:
9499 * xsmfns.c:
9500 * xterm.c: Remove code that deals with obsolete variables.
9501
9502 * s/msdos.h (DONT_NEED_ENVIRON): Don't define.
9503
9504 * ecrt0.c: Replace the DONT_NEED_ENVIRON test with MSDOS test,
9505 nothing else needs it anymore.
9506
95072008-02-09 Eli Zaretskii <eliz@gnu.org>
9508
9509 * buffer.h (FETCH_CHAR_AS_MULTIBYTE): Use unibyte_to_multibyte_table
9510 instead of unibyte_char_to_multibyte.
9511
95122008-02-09 Dan Nicolaescu <dann@ics.uci.edu>
9513
9514 * s/gnu-linux.h: Remove commented out code.
9515
9516 * unexec.c: Remove references to obsolete variable COFF_ENCAPSULATE.
9517
9518 * Makefile.in: Update what RMS says about using autoconf.
9519 (C_COMPILER, COFF_ENCAPSULATE, MAKE_PARALLEL): Remove obsolete variable.
9520 (C_SWITCH_MACHINE_1, C_SWITCH_SYSTEM_1, C_SWITCH_SITE_1)
9521 (C_SWITCH_X_SITE_1, C_SWITCH_X_MACHINE_1)
9522 (C_SWITCH_X_SYSTEM_1): Move invariant code outside conditional.
9523
95242008-02-08 Stefan Monnier <monnier@iro.umontreal.ca>
9525
9526 * keymap.c (Fkey_description): Move side effect outside of macro call.
9527
9528 * xfaces.c (Finternal_make_lisp_face):
9529 * keyboard.c (add_command_key, parse_menu_item): Use ASET.
9530
9531 * fontset.c (free_face_fontset): Use FONTSET_FROM_ID.
9532 (syms_of_fontset): Use ASET.
9533
9534 * fns.c (concat): Move side effect outside of macro call.
9535 (hash_clear): Use ASET.
9536
95372008-02-08 Richard Stallman <rms@gnu.org>
9538
9539 * frame.c (Fdelete_frame): If FORCE, don't call hooks.
9540 If FORCE, and frame has a surrogate minibuffer for another frame,
9541 delete the other frame first.
9542
95432008-02-07 Timo Savola <timo.savola@iki.fi>
9544
9545 * xterm.c (x_detect_focus_change): Handle embed client message.
9546 (handle_one_xevent): Ditto.
9547 (handle_one_xevent): If embedded and we get a button press/release,
9548 request focus.
9549 (xembed_set_info, xembed_send_message): New functions.
9550 (x_make_frame_visible): Call xembed_set_info if embedded.
9551 (x_make_frame_invisible): Call xembed_set_info if embedded.
9552 (x_term_init): Initialize Xatom_XEMBED.
9553 (x_make_frame_visible): Check for FRAME_X_EMBEDDED_P also.
9554 (x_iconify_frame): Ditto.
9555
9556 * xterm.h (struct x_display_info): Add AtomXatom_XEMBED.
9557 (enum xembed_info, enum xembed_message, enum xembed_focus)
9558 (enum xembed_modifier, enum xembed_accelerator): New.
9559 (xembed_set_info, xembed_send_message): Declare.
9560 (FRAME_X_EMBEDDED_P): New.
9561
9562 * gtkutil.c (xg_create_frame_widgets): If frame is embedded, call
9563 gtk_plug_new.
9564
9565 * xfns.c (Fx_create_frame): Do not override the explicitly set parent
9566 window ID of a frame.
9567 (x_window): Reparent frame if embedded.
9568 (Fx_create_frame): Don't set border width if embedded.
9569
9570 * emacs.c (USAGE3): Add --parent-id.
9571 (standard_args): Ditto.
9572
95732008-02-07 Jan Djärv <jan.h.d@swipnet.se>
9574
9575 * coding.c (DECODE_EMACS_MULE_COMPOSITION_CHAR): Use "do...while (0)".
9576
95772008-02-07 Jim Meyering <meyering@redhat.com>
9578
9579 Use "do...while (0)", not "if (1)...else" in macro definitions.
9580 The latter provokes a warning from gcc about the empty else, when
9581 followed by ";". Also, without that trailing semicolon, it would
9582 silently swallow up any following statement.
9583 * syntax.h (SETUP_SYNTAX_TABLE)
9584 (SETUP_SYNTAX_TABLE_FOR_OBJECT): Likewise.
9585 * buffer.h (DECODE_POSITION): Likewise.
9586 * character.h (FETCH_STRING_CHAR_ADVANCE): Likewise.
9587 (FETCH_STRING_CHAR_AS_MULTIBYTE_ADVANCE): Likewise.
9588 (FETCH_STRING_CHAR_ADVANCE_NO_CHECK): Likewise.
9589 (FETCH_CHAR_ADVANCE): Likewise.
9590 (FETCH_CHAR_ADVANCE_NO_CHECK): Likewise.
9591
95922008-02-07 Jim Meyering <meyering@redhat.com>
9593
9594 * lread.c [lint]: Don't include <sys/inode.h>.
9595
95962008-02-07 Stefan Monnier <monnier@iro.umontreal.ca>
9597
9598 * xselect.c (x_handle_dnd_message):
9599 * xmenu.c (digest_single_submenu, xmenu_show):
9600 * xdisp.c (with_echo_area_buffer_unwind_data)
9601 (format_mode_line_unwind_data, unwind_format_mode_line)
9602 (display_menu_bar):
9603 * eval.c (Ffetch_bytecode):
9604 * doc.c (store_function_docstring):
9605 * ccl.c (resolve_symbol_ccl_program, ccl_get_compiled_code)
9606 (Fccl_execute, Fccl_execute_on_string, Fregister_code_conversion_map):
9607 * buffer.c (add_overlay_mod_hooklist): Use ASET.
9608
96092008-02-07 Kenichi Handa <handa@m17n.org>
9610
9611 * ftxfont.c (ftxfont_open): Don't set
9612 dpyinfo->smallest_font_height and dpyinfo->smallest_char_width to 0.
9613
9614 * ftfont.c (ftfont_open): Fix previous change.
9615
96162008-02-06 Jason Rumney <jasonr@gnu.org>
9617
9618 * w32font.c (w32font_text_extents): Fill in lbearing metric.
9619 Use cached metrics for ASCII characters.
9620 (w32font_open_internal): Don't set font's owning_frame.
9621 Cache metrics for ASCII characters.
9622
9623 * w32font.h (struct w32font_info): Add ascii_metrics.
9624 Remove owning_frame.
9625
96262008-02-06 Kenichi Handa <handa@ni.aist.go.jp>
9627
9628 * xdisp.c (x_produce_glyphs): Don't set it->ascent and it->descent
9629 to negative value.
9630
9631 * ftxfont.c (ftxfont_draw): Use s->font_info, not face->font_info.
9632
9633 * ftfont.c (ftfont_open): Fix calculation of font->font.average_width.
9634
9635 * charset.c (syms_of_charset): Set QCtest and Qeq.
9636
96372008-02-06 Stefan Monnier <monnier@iro.umontreal.ca>
9638
9639 * process.c (Fstart_process):
9640 * callproc.c (Fcall_process): Handle the case where
9641 Funhandled_file_name_directory returns nil.
9642
9643 * font.h (enum lgstring_indices, enum lglyph_indices): New enums.
9644 (LGSTRING_SLOT, LGSTRING_SET_SLOT): New macros.
9645 * font.c (check_gstring): Use them and AREF to access the vector before
9646 we know it's really a gstring.
9647 (Ffont_shape_text): Fix typo.
46e722a9 9648 (Ffont_shape_text, Ffont_otf_alternates): Fix up int/Lisp_Object mixups.
aac0c6e3
MR
9649
9650 * composite.h (Fcompose_region_internal, Fcompose_string_internal):
9651 Declare.
9652
9653 * chartab.c (make_sub_char_table): Remove noop-yet-incorrect statement.
9654
96552008-02-05 Jason Rumney <jasonr@gnu.org>
9656
9657 * w32font.c (w32font_open_internal): Fill min_width with tmAveCharWidth.
9658 Set smallest_font_height and smallest_char_width in display info.
9659
96602008-02-05 Kenichi Handa <handa@ni.aist.go.jp>
9661
9662 * coding.c (decode_eol): Pay attention to coding->dst_multibyte.
9663
96642008-02-05 Miles Bader <miles@gnu.org>
9665
9666 * xfaces.c (get_lface_attributes, merge_named_face)
9667 (lookup_named_face, lookup_derived_face, realize_named_face):
9668 Revert 2008-02-01 change by cyd@stupidchicken.com.
9669
96702008-02-04 Kenichi Handa <handa@ni.aist.go.jp>
9671
9672 * fontset.c (Ffontset_info): Handle the case of inhibitting the
9673 fallback fonts.
9674 (Ffontset_info) [USE_FONT_BACKEND]: Fix getting of opened font names.
9675
96762008-02-04 Jason Rumney <jasonr@gnu.org>
9677
9678 * w32font.c (w32font_open_internal): Use font_unparse_fcname to
9679 set full_name.
9680 (w32font_open_internal): Use xmalloc, xrealloc, xfree.
9681
96822008-02-03 Jason Rumney <jasonr@gnu.org>
9683
9684 * makefile.w32-in (OBJ1): Include font.o here.
9685 (FONTOBJ) [USE_FONTBACKEND]: Instead of here.
9686
96872008-02-02 Jason Rumney <jasonr@gnu.org>
9688
9689 * makefile.w32-in (temacs): Bump EMHEAP to 21.
9690
96912008-02-01 Jason Rumney <jasonr@gnu.org>
9692
9693 * s/cygwin.h: Define VIRT_ADDR_VARIES.
9694
9695 * puresize.h [VIRT_ADDR_VARIES]: Don't include CYGWIN in condition.
9696
96972008-02-01 Andreas Schwab <schwab@suse.de>
9698
9699 * Makefile.in (shortlisp, lisp): Update for rename of
9700 ../lisp/language/myanmar.el.
9701
97022008-02-01 Chong Yidong <cyd@stupidchicken.com>
9703
9704 * xfaces.c (get_lface_attributes): Delete function.
9705 (merge_named_face, lookup_named_face, lookup_derived_face)
9706 (realize_named_face): Call lface_from_face_name directly, and use
9707 the fact that merge_face_vectors does not alter its FROM argument.
9708
97092008-02-01 Jason Rumney <jasonr@gnu.org>
9710
9711 * w32term.c (w32_read_socket) <WM_CHAR>: Decode non-Unicode
9712 input in the default locale. Handle non-Unicode multibyte input.
9713
97142008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
9715
9716 * fontset.c (reorder_font_vector): Exclude nil elements from the
9717 font group. Don't try multiple fonts.
9718 (fontset_font): Adjust for the above change.
9719 (Finternal_char_font): Return nil if the found font doesn't
9720 contain the character ch.
9721
9722 * Makefile.in (lisp, shortlisp): Add cham.el.
9723
97242008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
9725
9726 * font.h (FONTP): Make it return 1 also for a font-object.
9727
9728 * .gdbinit (xfontset): New function.
9729
9730 * font.c (font_find_for_lface): Check if the character C is
9731 supported or not only for the first font.
9732
9733 * fontset.c (reorder_font_vector): Fix typo.
9734 (fontset_find_font): Don't add a font-spec specifying a script.
9735 Use 0 (not Qt) for the indication of empty font-group. Change the
9736 format of RFONT-DEF. Return Qt if no font in the font-group
9737 support the character.
9738 (fontset_font): Adjust for the above change. If no font was
9739 found the character, remember that.
9740 (face_for_char): Adjust for the change of RFONT-DEF.
9741 (Fset_fontset_font): Allow nil for FONT-SPEC to explicitly specify
9742 no font for the target.
9743 (Finternal_char_font): Adjust for the change of RFONT-DEF.
9744
97452008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
9746
9747 * font.c (font_load_for_face): Handle the case that the font in
9748 face->lface is a string.
9749
97502008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
9751
9752 * xfaces.c (set_lface_from_font_and_fontset): Set the fontname in lface.
9753
97542008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
9755
9756 * xfaces.c (Finternal_set_lisp_face_attribute) [USE_FONT_BACKEND]:
9757 Fix previous change. If the frame is not on a window system,
9758 signal an error.
9759
97602008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
9761
9762 * coding.c (decode_coding_object, encode_coding_object): Adjust
9763 marker positions after conversion.
9764
9765 * lisp.h (struct Lisp_Marker): New member need_adjustment.
9766
97672008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
9768
9769 * font.c (font_find_for_lface): Fix the handling of the return
9770 value of font_has_char.
9771 (Ffont_shape_text): Fix previous change.
9772
9773 * fontset.c (FONTSET_REF_AND_RANGE): Delete it.
9774 (fontset_ref_and_range): Delete it.
9775 (fontset_find_font): Call char_table_ref_and_range instead of
9776 FONTSET_REF_AND_RANGE.
9777 (make_fontset): Don't setup font groups of Latin here.
9778 (Fset_fontset_font): Don't overwrite the setting of FONTSET_ASCII.
9779 (new_fontset_from_font): Make the specified font the default for
9780 all Latin characters.
9781
97822008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
9783
9784 * xfaces.c (Finternal_set_lisp_face_attribute): Check if the frame
9785 is on a window system before accessing the fontset of the frame.
9786
97872008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
9788
9789 * Makefile.in (lisp, shortlisp): Add kherm.el and myanmar.el.
9790
9791 * ftfont.c (ftfont_driver): Set ftfont_shape in ftfont_driver only
9792 when both HAVE_M17N_FLT and HAVE_LIBOTF are defined.
9793
9794 * font.c (Ffont_shape_text): If the font driver doesn't have a
9795 shaper function, make zero-width glyphs to have at least one-pixel
9796 width. Fix setting of `to' field of glyphs.
9797
97982008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
9799
9800 * ftfont.c (ftfont_drive_otf): Fix setting of FROM and TO slots of
9801 glyphs.
9802
9803 * font.h (struct font_driver): Improve docstring of member `shape'.
9804
98052008-02-01 Kenichi Handa <handa@m17n.org>
9806
9807 * composite.c (syms_of_composite): Fix docstring of
9808 auto-composition-function.
9809
9810 * font.h (LGLYPH_SIZE): New macro.
9811
9812 * font.c (Ffont_fill_gstring): Stop filling when a character not
9813 supported by the font is found.
9814 (Ffont_shape_text): When a shape callback function returns nil,
9815 try at most two more times with larger gstring.
9816 (Ffont_at): Fix getting of w. Call font_at with correct 5th argument.
9817
9818 * xdisp.c (handle_auto_composed_prop): Change the argument to
9819 auto-composition-function.
9820
9821 * ftfont.c (ftfont_encode_char): Use the macro FONT_INVALID_CODE.
9822 (ftfont_shape_by_flt): If an element of lgstring is nil, make a
9823 Lispy glyph and store it in the lgstring.
9824
9825 * xfont.c (xfont_encode_char): Use the macro FONT_INVALID_CODE.
9826
9827 * xftfont.c (xftfont_encode_char): Use the macro FONT_INVALID_CODE.
9828
98292008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
9830
9831 * font.c (Ffont_shape_text): Avoid unnecessary composition.
9832
9833 * fontset.c (Vfont_encoding_charset_alist): New variable.
9834 (syms_of_fontset): DEFVAR it.
9835 (reorder_font_vector, fontset_find_font): Optimize for the case of
9836 no need of reordering.
9837 (face_for_char): Map the charset property by
9838 Vfont_encoding_charset_alist.
9839
98402008-02-01 Jason Rumney <jasonr@gnu.org>
9841
9842 * w32font.c (logfonts_match): Don't check adstyle here.
9843 (font_matches_spec): Check here against physical font instead.
9844 (add_font_entity_to_list): Avoid some substitutions.
9845
9846 * font.c (font_parse_fcname): Default weight and slant to normal.
9847 (font_score): Prefer normal fonts if weight or slant unspecified.
9848 (font_score) [WINDOWSNT]: Scale weight difference down to closer
9849 match freetype scores.
9850
98512008-02-01 Jason Rumney <jasonr@gnu.org>
9852
9853 * w32font.c (w32font_text_extents): Don't use the frame stored in the
9854 font, as it may have been deleted.
9855 (w32_enumfont_pattern_entity): Map generic family to adstyle using
9856 most common hyphenless variation.
9857 (logfonts_match): Check generic family.
9858 (font_matches_spec): Don't check generic family here.
9859 (fill_in_logfont): Set generic family based on adstyle.
9860
9861 * w32font.h (w32font_get_cache): Update declaration.
9862
98632008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
9864
9865 * ftfont.c (ftfont_get_cache): Adjust the argument type.
9866
9867 * frame.c (x_set_font_backend): Don't call Fclear_font_cache.
9868 If none of the new drivers are available, call font_update_drivers
9869 with the old drivers.
9870
9871 * w32font.c (w32font_get_cache): Adjust the argument type.
9872
9873 * xfont.c (xfont_get_cache): Adjust the argument type.
9874
9875 * font.h (struct font_driver): Change argument type of get_cache.
9876
9877 * xftfont.c (xftfont_start_for_frame): Delete prototype.
9878
9879 * font.c (Ffont_get): Fix arguments to Fassoc.
9880 (font_prepare_cache, font_finish_cache, font_get_cache): New functions.
9881 (font_clear_cache): New function.
9882 (font_list_entities, font_matching_entity): Use font_get_cache.
9883 (font_update_drivers): Call font_clear_cache when finishing a driver.
9884
9885 * fontset.c (fontset_find_font): Fix previous change.
9886
98872008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
9888
9889 * xterm.c (x_check_font) [USE_FONT_BACKEND]: Don't access
9890 dpyinfo->font_table.
9891 (x_delete_display) [USE_FONT_BACKEND]: Likewise.
9892 (x_delete_terminal) [USE_FONT_BACKEND]: Likewise.
9893
9894 * font.c (font_at): Handle the case that the arg C is negative.
9895 Handle the unibyte case.
9896 (Ffont_at): Call font_at with the arg C -1.
9897
9898 * xdisp.c (handle_auto_composed_prop): Don't get a character at
9899 the position here, and call font_at with the arg C -1.
9900 Don't check the range of the existing composition at the point.
9901
99022008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
9903
9904 * fontset.c (fontset_add): New args charset_id and family.
9905 Change caller.
9906 (load_font_get_repertory, fontset_find_font): Assume that
9907 font_spec is always a font-spec object.
9908 (Fset_fontset_font): Always store a font-spec object in a fontset.
9909
9910 * xdisp.c (handle_auto_composed_prop): Use Fget_text_property
9911 instead of get_property_and_range.
9912
99132008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
9914
9915 * xftfont.c (struct xftfont_info): Delete the member ft_face.
9916 (xftfont_open): Don't keep locking face.
9917 (xftfont_close): Don't unlock face.
9918 (xftfont_anchor_point, xftfont_shape): Lock and unlock face.
9919
9920 * fontset.c (fontset_find_font): Don't prefer a font of
9921 supplementary charset.
9922
99232008-02-01 Kenichi Handa <handa@m17n.org>
9924
9925 * ftfont.c (struct OpenTypeSpec): Rename members script_tag to
9926 script, langsys_tag to langsys, new member script.
9927 (OTF_TAG_STR): Terminate by '\0'.
867d4bb3 9928 (ftfont_get_open_type_spec): If :otf prop is spec, limit the
aac0c6e3
MR
9929 listing to the script specified in that property. Fix arg to
9930 OTF_check_features.
9931
99322008-02-01 Jason Rumney <jasonr@gnu.org>
9933
9934 * w32font.h: New file.
9935
9936 * w32font.c: Include it.
9937 (struct w32font_info): Add owning_frame field. Move to w32font.h.
9938 (w32font_open): Set owning_frame.
9939 (w32font_text_extents): Use owning_frame.
9940 (struct font_callback_data): Add opentype_only field.
9941 (add_font_entity_to_list): Use it to filter fonts.
9942 Don't check against full name.
9943 (w32font_list_internal): New function.
9944 (w32font_list): Use it.
9945 (w32font_match_internal): New function.
9946 (w32font_match): Use it.
9947 (w32font_open_internal): New function.
9948 (w32font_open): Use it.
9949 (w32font_get_cache, w32font_close, w32font_has_char)
9950 (w32font_encode_char, w32font_text_extents, w32font_draw):
9951 Make non-static.
9952
9953 * makefile.w32-in (w32font.o): Depend on w32font.h.
9954
99552008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
9956
9957 * charset.c (Fdefine_charset_internal): Record a supplementary
9958 charset at the tail of Vcharset_order_list.
9959
9960 * font.c (Ffont_shape_text): Fix the return value.
9961
9962 * ftfont.c (OTF_SYM_TAG, OTF_TAG_STR): Fix argument names.
9963
9964 * xdisp.c (handle_auto_composed_prop): Fix previous change.
9965
99662008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
9967
9968 * ftfont.c (struct OpenTypeSpec): New struct.
9969 (OTF_SYM_TAG, OTF_TAG_STR): New macros.
9970 (ftfont_get_open_type_spec): New function.
9971 (ftfont_list) [HAVE_LIBOTF]: Check otf-spec property.
9972
9973 * lread.c (read1): Redo the previous change with checking Vpurify_flag.
9974
99752008-02-01 Jason Rumney <jasonr@gnu.org>
9976
9977 * w32font.c (add_font_entity_to_list): Compare only the beginning
9978 of full name.
9979
99802008-02-01 Kenichi Handa <handa@m17n.org>
9981
9982 * xdisp.c (handle_auto_composed_prop): Simplify the code.
9983 Never return HANDLED_RECOMPUTE_PROPS.
9984
99852008-02-01 Kenichi Handa <handa@m17n.org>
9986
9987 * font.c (font_gstring_produce): Delete it.
9988
9989 * composite.h (COMPOSITION_METHOD):
9990 Handle COMPOSITION_WITH_GLYPH_STRING.
9991
99922008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
9993
9994 * xfont.c (Qx): Delete.
9995 (syms_of_xfont): Don't initialize Qx.
9996
9997 * composite.h (enum composition_method):
9998 Define COMPOSITION_WITH_GLYPH_STRING unconditionally.
9999
100002008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
10001
10002 * xfaces.c [HAVE_WINDOW_SYSTEM]: Include "font.h" unconditionally.
10003 (choose_face_font): Accept new form of font-spec.
10004
10005 * frame.h (font_driver_list): Declare it unconditionally.
10006 (struct frame): Define members font_driver_list and font_data_list
10007 unconditionally.
10008
10009 * fontset.c: Include "font.h" unconditionally.
10010 (generate_ascii_font_name): Use font_parse_xlfd and font_unparse_xlfd.
10011 (Fset_fontset_font): Accept a font-spec object.
10012
10013 * font.c (font_unparse_xlfd): If pixel_size is zero, make the
10014 PIXEL_SIZE part a wild card.
10015
10016 * dispextern.h (struct glyph_string): Define members clip and
10017 num_clips unconditionally.
10018 (struct face): Define members font_info and extra unconditionally.
10019
10020 * ftfont.c (ftfont_open): Set members maybe_otf and otf of
10021 ftfont_info only when HAVE_LIBOTF is defined.
10022
100232008-02-01 Andreas Schwab <schwab@suse.de>
10024
10025 * xdisp.c (back_to_previous_visible_line_start): Fix type of beg
10026 and end.
10027
100282008-02-01 Jason Rumney <jasonr@gnu.org>
10029
10030 * w32font.c (w32font_driver): Add new fields.
10031
100322008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
10033
10034 * Makefile.in (ALL_CFLAGS): Add @M17N_FLT_CFLAGS@.
10035 (FONTSRC, FONTOBJ) [HAVE_WINDOW_SYSTEM]: Set them unconditionally.
10036 (LIBES): Add @M17N_FLT_CFLAGS@.
10037
10038 * composite.c (compose_text): Don't treat the new style
10039 composition specially.
10040
10041 * emacs.c (main): Call syms_of_font unconditionally.
10042
10043 * font.h (FONT_ENTITY_NOT_LOADABLE)
10044 (FONT_ENTITY_SET_NOT_LOADABLE): New macros.
10045 (LGSTRING_XXXX, LGLYPH_XXX): Adjust for the change of lispy gstring.
10046 (struct font_driver): New member shape.
10047 (font_registry_charsets): Extern it.
10048 (font_find_for_lface, font_prepare_composition): Adjust prototype.
10049 (font_otf_capability, font_drive_otf): Delete their externs.
10050
10051 * font.c [HAVE_M17N_FLT]: Include <m17n-flt.h>.
10052 (font_charset_alist, font_registry_charsets): Move from xfont.c
10053 and rename.
10054 (font_prop_validate_otf): New function.
10055 (font_property_table): Register it for QCotf.
10056 (DEVICE_DELTA, adjust_anchor, REPLACEMENT_CHARACTER)
10057 (font_drive_otf): Delete.
10058 (font_prepare_composition): New arg F. Adjust for the change of
10059 lispy gstring.
10060 (font_find_for_lface): New arg C.
10061 (font_load_for_face): Adjust for the change of font_find_for_lface.
10062 (Ffont_make_gstring, Ffont_fill_gstring): Adjust for the change of
10063 lispy gstring.
10064 (Ffont_shape_text): New function.
10065 (Fopen_font): If the font size is not given, use 12-pixel.
10066 (Ffont_at): New arg STRING.
10067 (syms_of_font): Initalize font_charset_alist.
10068 Declare Ffont_shape_text as a Lisp function. Call syms_of_XXfont
10069 conditionally.
10070
10071 * fontset.c (fontset_find_font) [USE_FONT_BACKEND]: Try multiple
10072 fonts of the same font-spec. Change the format of RFONT-DEF.
10073 (face_for_char, make_fontset_for_ascii_face, Finternal_char_font):
10074 Adjust for the change of RFONT-DEF.
10075 (Fset_fontset_font) [USE_FONT_BACKEND]: Handle new format of font-spec.
10076
10077 * ftfont.h: New file.
10078
10079 * ftfont.c: Don't include Freetype headers. Include "ftfont.h".
10080 (struct ftfont_info) [HAVE_LIBOTF]: New members maybe_otf and otf.
10081 (ftfont_open) [HAVE_LIBOTF]: Initialize the above members.
10082 (ftfont_driver) [HAVE_LIBOTF, HAVE_M17N_FLT]: Don't set
10083 font_otf_capability and font_drive_otf, set ftfont_shape.
10084 (ftfont_list): Adjust for the change of :otf property value.
10085 (struct MFLTFontFT) [HAVE_LIBOTF, HAVE_M17N_FLT]: New struct.
10086 (ftfont_get_glyph_id, ftfont_get_metrics, ftfont_check_otf)
10087 (adjust_anchor, ftfont_drive_otf, ftfont_shape_by_flt)
10088 (ftfont_shape) [HAVE_LIBOTF, HAVE_M17N_FLT]: New function.
10089 (DEVICE_DELTA) [HAVE_LIBOTF, HAVE_M17N_FLT]: New macro.
10090 (otf_gstring, gstring, m17n_flt_initialized): New variables.
10091
10092 * w32term.c (x_draw_composite_glyph_string_foreground):
10093 Adjust for the change of lispy gstring.
10094
10095 * xdisp.c (handle_composition_prop): Adjust for the change of
10096 lispy gstring. Call a function for auto-composition with the
10097 third arg it->window.
10098 (fill_composite_glyph_string): Adjust for the change of lispy string.
10099 (x_produce_glyphs): Adjust for the change of font_prepare_compositionl.
10100
10101 * xfaces.c (set_font_frame_param): Adjust for the change of
10102 font_find_for_lface.
10103
10104 * xfont.c (x_font_charset_alist): Move to font.c and rename.
10105 (xfont_registry_charsets): Likewise. Change caller.
10106 (syms_of_xfont): Don't handle x_font_charset_alist.
10107
10108 * xftfont.c: Include "ftfont.h".
10109 (struct xftfont_info) [HAVE_LIBOTF]: New members maybe_otf and otf.
10110 (xftfont_open) [HAVE_LIBOTF]: Initialize the above members.
10111 (xftfont_close) [HAVE_LIBOTF]: Close otf.
10112 (xftfont_shape) [HAVE_LIBOTF, HAVE_M17N_FLT]: New function.
10113 (syms_of_xftfont) [HAVE_LIBOTF, HAVE_M17N_FLT]:
10114 Set xftfont_driver.shape to xftfont_shape.
10115
10116 * xterm.c (x_draw_composite_glyph_string_foreground): Adjust for
10117 the change of lispy gstring.
10118
101192008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
10120
10121 * ftxfont.c (ftxfont_end_for_frame): Fix array indexing error.
10122
101232008-02-01 Jason Rumney <jasonr@gnu.org>
10124
10125 * w32font.c (w32font_draw): Fill background manually.
10126
101272008-02-01 Jason Rumney <jasonr@gnu.org>
10128
10129 * font.c (Qfontp): Remove unused symbol.
10130 (QCantialias): New symbol.
10131 (syms_of_font): Define it.
10132 (font_property_table): Set a validator for QCantialias.
10133
10134 * w32font.c (CLEARTYPE_QUALITY, CLEARTYPE_NATURAL_QUALITY):
10135 Define if not already.
10136 (QCfamily): Share with xfaces.c.
10137 (Qstandard, Qsubpixel, Qnatural): New symbols.
10138 (syms_of_w32font): Define them. Don't define QCfamily here.
10139 (w32_antialias_type, lispy_antialias_type): New functions.
10140 (w32_enumfont_pattern_entity): New arg requested_font.
10141 Set antialias parameter if non-default was requested.
10142 (fill_in_logfont): Fill in lfQuality if :antialias specified.
10143
101442008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
10145
10146 * lread.c (read1): Undo the previous change.
10147
101482008-02-01 CHENG Gao <chenggao@gmail.com> (tiny change)
10149
10150 * frame.c (Fdelete_frame): Call font_update_drivers only when
10151 USE_FONT_BACKEND is defined.
10152
101532008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
10154
10155 * font.h (struct font_bitmap): New member bits_per_pixel.
10156 (struct font_driver): New members start_for_frame and end_for_frame.
10157 (struct font_data_list): New struct.
10158 (font_put_frame_data, font_get_frame_data): Extern them.
10159
10160 * frame.h (struct frame): New member font_data_list.
10161
10162 * font.c (font_update_drivers): Call driver->start_for_frame and
10163 driver->end_for_frame at proper timings.
10164 (font_put_frame_data, font_get_frame_data): New functions.
10165 (Ffont_spec): Add usage in the docstring.
10166
10167 * frame.c (make_frame): Initialize f->font_data_list to NULL.
10168 (Fdelete_frame): Call font_update_drivers.
10169
10170 * xftfont.c (struct xftface_info): Delete the member xft_draw.
10171 (xftfont_prepare_face, xftfont_done_face): Adjust for the above change.
10172 (xftfont_get_xft_draw): New function.
10173 (xftfont_draw): Get XftDraw by xftfont_get_xft_draw.
10174 (xftfont_end_for_frame): New function.
10175 (syms_of_xftfont): Set xftfont_driver.end_for_frame.
10176
10177 * ftxfont.c (ftxfont_get_gcs): Rename from ftxfont_create_gcs.
10178 Change argument. Cache GCs in the per-frame data.
10179 (struct ftxfont_frame_data): New struct.
10180 (ftxfont_draw_bitmap): New arg gc_fore and flush.
10181 (ftxfont_prepare_face, ftxfont_done_face): Delete them.
10182 (ftxfont_draw): Get GCs by ftxfont_get_gcs. Reflect s->clip in GCs.
10183 (ftxfont_end_for_frame): New function.
10184 (syms_of_ftxfont): Set ftxfont_driver.end_for_frame.
10185
10186 * ftfont.c (ftfont_get_bitmap): Set bitmap->bits_per_pixel.
10187
101882008-02-01 Kenichi Handa <handa@m17n.org>
10189
10190 * xselect.c (Vselection_coding_system)
10191 (Vnext_selection_coding_system): Delete them.
10192 (syms_of_xselect): Don't declare selection-coding-system and
10193 next-selection-coding-system. They are declared in select.el.
10194
101952008-02-01 Jason Rumney <jasonr@gnu.org>
10196
10197 * w32term.h (WM_UNICHAR, UNICODE_NOCHAR): Define if not already.
10198
10199 * w32fns.c: Include imm.h.
10200 (get_composition_string_fn, get_ime_context_fn): New optional
10201 system functions.
10202 (globals_of_w32fns): Load them from imm32.dll.
10203 (ignore_ime_char): New flag.
10204 (w32_wnd_proc): Handle WM_UNICHAR, WM_IME_CHAR and
10205 WM_IME_ENDCOMPOSITION messages.
10206
10207 * w32term.c (w32_read_socket) [WM_UNICHAR]: Handle as
10208 MULTIBYTE_CHAR_KEYSTROKE_EVENT.
10209
102102008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
10211
10212 * lread.c (READCHAR): Call readchar with the 2nd arg NULL.
10213 (READCHAR_REPORT_MULTIBYTE): New macro.
10214 (readchar): New 2nd arg MULTIBYTE.
10215 (read1): Use READCHAR_REPORT_MULTIBYTE for the first read.
10216 Make symbol's name multibyte according to the multibyteness of the
10217 source.
10218
102192008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
10220
10221 * xfaces.c (face_for_overlay_string): Call lookup_face with
10222 correct arguments (fix of synching with the trunk).
10223
102242008-02-01 Kenichi Handa <handa@m17n.org>
10225
10226 * font.c (font_prop_validate_symbol, font_prop_validate_style)
10227 (font_prop_validate_non_neg, font_prop_validate_spacing):
10228 Delete argument prop_index.
10229 (font_property_table): Change arguments to validater. Change Callers.
10230 (font_lispy_object): Delete.
10231 (font_at): Use font_find_object instead fo font_lispy_object.
10232
102332008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
10234
10235 * fileio.c (Fexpand_file_name): Adjust multibyteness of directory
10236 and file names.
10237
102382008-02-01 Jason Rumney <jasonr@gnu.org>
10239
10240 * w32font.c (add_font_name_to_list): Avoid vertical fonts.
10241 (font_matches_spec): Remove debug output.
10242 (add_font_entity_to_list): Avoid using substituted fonts.
10243
102442008-02-01 Jason Rumney <jasonr@gnu.org>
10245
10246 * doc.c (Fsnarf_documentation):
10247 * Makefile.in (temacs${EXEEXT}, mostlyclean): Undo last change.
10248
102492008-02-01 Miles Bader <miles@gnu.org>
10250
10251 * dispextern.h (struct glyph_row): Only define "clip" field if
10252 HAVE_WINDOW_SYSTEM is defined.
10253
102542008-02-01 Stefan Monnier <monnier@iro.umontreal.ca>
10255
10256 Fix up multi-tty merge.
10257
10258 * xterm.c (handle_one_xevent): Remove duplicate code and fix up nesting
10259 and indentation.
10260
10261 * xfaces.c (free_realized_face, clear_face_gcs):
10262 Include font_done_for_face in the input_blocked section, just in case.
10263
10264 * xdisp.c (decode_mode_spec): Use terminal-local coding systems.
10265 (get_char_face_and_encoding): Undo last change and remove the *other*
10266 duplicate definition (i.e. keep the one that's better scoped and that
10267 includes code for the font-backend).
10268
10269 * terminal.c (create_terminal): Default keyboard_coding to
10270 `no-conversion' and terminal_coding to `undecided'.
10271
10272 * lread.c (read1): Use XSETPVECTYPE to set a pseudovector's tag.
10273
10274 * fontset.c (free_realized_fontsets): Check that the table entry does
10275 contain a fontset before trying to compare it to `base'.
10276
10277 * emacs.c (main): Move syms_of_data, syms_of_fileio, syms_of_alloc,
10278 syms_of_charset, and syms_of_coding earlier because init_window_once
10279 now needs Vcoding_system_hash_table to be setup.
10280
10281 * coding.h (default_buffer_file_coding): Remove.
10282
10283 * coding.c (default_buffer_file_coding): Remove.
10284 (Fterminal_coding_system, Fkeyboard_coding_system): Use ->id rather
10285 than ->symbol, and use the terminal-local coding system.
10286 (syms_of_coding): Don't setup the coding-systems that are not
10287 terminal-local.
10288 (Fdefine_coding_system_internal): Use XCAR/XCDR.
10289
10290 * chartab.c (Fmake_char_table, make_sub_char_table, copy_char_table):
10291 Use XSETPVECTYPE now that XSETCHAR_TABLE doesn't set the tag anymore.
10292
10293 * alloc.c (Fmake_char_table, make_sub_char_table): Remove. They're now
10294 in chartab.c and were re-added here by mistake.
10295 (Fpurecopy): Use XSETPVECTYPE after copying a COMPILED pseudovector.
10296
10297 * doc.c (Fsnarf_documentation):
10298 * Makefile.in (temacs${EXEEXT}, mostlyclean): Move buildobj.lst from
10299 src to etc.
10300
10301 * ChangeLog.10: Add mistakenly removed entry.
10302
103032008-02-01 Dan Nicolaescu <dann@ics.uci.edu>
10304
10305 * Makefile.in (fringe.o, minibuf.o): Fix dependencies.
10306
103072008-02-01 Miles Bader <miles@gnu.org>
10308
10309 * xdisp.c (get_char_face_and_encoding): Remove extraneous definition.
10310 Add extra args to FACE_FOR_CHAR.
10311
103122008-02-01 Kenichi Handa <handa@m17n.org>
10313
10314 * keymap.c (where_is_internal_1): If key is a cons, store the copy
10315 in sequence.
10316
10317 * chartab.c (map_sub_char_table, map_char_table): If the range
10318 contains just one character, call the function with that character
10319 even if the depth is not 3.
10320
103212008-02-01 Jason Rumney <jasonr@gnu.org>
10322
10323 * w32font.c (w32font_text_extents): Calculate metrics for the
10324 whole string.
10325
103262008-02-01 Jason Rumney <jasonr@gnu.org>
10327
10328 * w32xfns.c (get_next_msg): Consolidate WM_PAINT messages.
10329
103302008-02-01 Jason Rumney <jasonr@gnu.org>
10331
10332 * w32term.c (x_set_glyph_string_clipping): Use
10333 get_glyph_string_clip_rects.
10334 (x_set_glyph_string_clipping_exactly, x_draw_glyph_string):
10335 Adjust for the change of struct glyph_string.
10336
10337 * w32font.c (w32font_draw): Do clipping here.
10338
103392008-02-01 Kenichi Handa <handa@m17n.org>
10340
10341 * xftfont.c (xftfont_draw): Adjust for the change of struct
10342 glyph_string.
10343
10344 * xterm.c (x_set_glyph_string_clipping): Use
10345 get_glyph_string_clip_rects.
10346 (x_set_glyph_string_clipping_exactly, x_draw_glyph_string):
10347 Adjust for the change of struct glyph_string.
10348
10349 * xdisp.c (get_glyph_string_clip_rects): Reflect s->row->clip to
10350 the resulting clip(s}.
10351 (expose_overlaps): Add arg r. Change callers. Set it to
10352 row->clip temporarily.
10353 (expose_window): Redraw rows overlapping the exposed area.
10354
10355 * dispextern.h (struct glyph_row): New member clip.
10356 (struct glyph_string): Delete members clip_x, clip_y, clip_width,
10357 clip_height, new member clip, and num_clips.
10358
103592008-02-01 Kenichi Handa <handa@m17n.org>
10360
10361 * data.c (Fchar_or_string_p): Fix docstring.
10362
103632008-02-01 Kenichi Handa <handa@m17n.org>
10364
10365 * xftfont.c (xftfont_draw): If s->font_info != s->face->font_info,
10366 create a temporary XftDraw object.
10367
103682008-02-01 Kenichi Handa <handa@m17n.org>
10369
10370 * font.c (Ffontp): Fix docstring.
10371
10372 * coding.c (detect_coding_iso_2022): Don't treat SI/SO codes as a
10373 strong evidence of ISO-2022.
10374
103752008-02-01 Kenichi Handa <handa@m17n.org>
10376
10377 * abbrev.c (abbrev_check_chars): Use CHAR_TABLE_REF, not
10378 SYNTAX_ENTRY_FOLLOW_PARENT.
10379
103802008-02-01 Stefan Monnier <monnier@iro.umontreal.ca>
10381
10382 * fns.c (weak_hash_tables): Rename from Vweak_hash_tables and change
10383 its type.
10384 (make_hash_table, copy_hash_table, sweep_weak_hash_tables, init_fns):
10385 Update to the new type of weak_hash_tables and next_weak.
10386
10387 * lisp.h (struct Lisp_Hash_Table): Change next_weak from Lisp_Object to
10388 a plain C pointer to Lisp_Hash_Table.
10389
10390 * lisp.h (XGCTYPE, GC_HASH_TABLE_P, GC_NILP, GC_NUMBERP, GC_NATNUMP)
10391 (GC_INTEGERP, GC_SYMBOLP, GC_MISCP, GC_VECTORLIKEP, GC_STRINGP)
10392 (GC_CONSP, GC_FLOATP, GC_VECTORP, GC_OVERLAYP, GC_MARKERP)
10393 (GC_INTFWDP, GC_BOOLFWDP, GC_OBJFWDP, GC_BUFFER_OBJFWDP)
10394 (GC_BUFFER_LOCAL_VALUEP, GC_SOME_BUFFER_LOCAL_VALUEP)
10395 (GC_KBOARD_OBJFWDP, GC_PSEUDOVECTORP, GC_WINDOW_CONFIGURATIONP)
10396 (GC_PROCESSP, GC_WINDOWP, GC_SUBRP, GC_COMPILEDP, GC_BUFFERP)
10397 (GC_SUB_CHAR_TABLE_P, GC_CHAR_TABLE_P, GC_BOOL_VECTOR_P, GC_FRAMEP)
10398 (GC_EQ): Remove since they've been identical to their non-GC_
10399 alter-egos ever since the markbit was eradicated.
10400
10401 * alloc.c:
10402 * buffer.c:
10403 * buffer.h:
10404 * data.c:
10405 * fileio.c:
10406 * filelock.c:
10407 * fns.c:
10408 * frame.h:
10409 * lisp.h:
10410 * macterm.c:
10411 * print.c:
10412 * process.c:
10413 * w32fns.c:
10414 * w32menu.c:
10415 * w32term.c:
10416 * xfns.c:
10417 * xmenu.c:
10418 * xterm.c: Replace uses of GC_* macros with the non-GC_ versions.
10419
104202008-02-01 Kenichi Handa <handa@m17n.org>
10421
10422 * chartab.c (map_sub_char_table): Make it work for the top-level
10423 char-table. Fix handling of parent char-table.
10424 (map_char_table): Adjust for the above change.
10425
104262008-02-01 Jason Rumney <jasonr@gnu.org>
10427
10428 * w32font.c (Qgdi): Rename from Qw32.
10429
104302008-02-01 Jason Rumney <jasonr@gnu.org>
10431
10432 * w32bdf.c (get_quoted_string): Make function static.
10433
104342008-02-01 Kenichi Handa <handa@m17n.org>
10435
10436 * xftfont.c (xftfont_open): If one of font's ASCII glyph has
10437 bigger ascent and descent than those of the font, use them as
10438 font's ascent and descent.
10439
104402008-02-01 Kenichi Handa <handa@m17n.org>
10441
10442 * Makefile.in (${lispsource}international/charprop.el): Move this
10443 target within "#ifdef HAVE_UNIDATA" and "#endif".
10444
104452008-02-01 Kenichi Handa <handa@m17n.org>
10446
10447 * Makefile.in (lisp): Add ${lispsource}language/tai-viet.el.
10448 (shortlisp): Add ../lisp/language/tai-viet.el.
10449
104502008-02-01 Ulrich Mueller <ulm@gentoo.org>
10451
10452 * Makefile.in (${lispsource}international/charprop.el): Depend on
10453 temacs${EXEEXT}.
10454
104552008-02-01 Jason Rumney <jasonr@gnu.org>
10456
10457 * w32font.c (w32font_close): Delete the GDI font object.
10458
10459 * w32menu.c: Include character.h.
10460
10461 * w32proc.c: Likewise.
10462
10463 * w32select.c: Likewise.
10464
10465 * makefile.w32-in (w32proc.o): Depend on character.h.
10466
104672008-02-01 Jason Rumney <jasonr@gnu.org>
10468
10469 * w32fns.c (syms_of_w32fns): Use DEFSYM macro.
10470
10471 * w32menu.c (syms_of_w32menu): Likewise.
10472
10473 * w32proc.c (syms_of_ntproc): Likewise.
10474
10475 * w32select.c (syms_of_w32select): Likewise.
10476
10477 * w32term.c (syms_of_w32term): Likewise.
10478
104792008-02-01 Jason Rumney <jasonr@gnu.org>
10480
10481 * w32font.c (w32font_draw): Delete brush after using it.
10482
104832008-02-01 Jason Rumney <jasonr@gnu.org>
10484
10485 * w32font.c (w32font_open): Don't set font_idx.
10486 (w32font_text_extents): Try GetTextExtentPoint32W before defaulting
10487 to font settings.
10488 (w32font_draw): Fill background explicitly.
10489
104902008-02-01 Jason Rumney <jasonr@gnu.org>
10491
10492 * w32term.c (w32_initialize): Don't call w32font_initialize.
10493
10494 * w32font.c (w32font_info): Remove subranges.
10495 (QCsubranges, Qmodern, Qswiss, Qroman): Remove.
10496 (QCfamily, Qmonospace, Qsans_serif, Qmono, Qsans, Qsans__serif)
10497 (Qraster, Qoutline, Qlatin, Qgreek, Qcoptic, Qcyrillic, Qarmenian)
10498 (Qhebrew, Qarabic, Qsyriac, Qnko, Qthaana, Qdevanagari, Qbengali)
10499 (Qgurmukhi, Qgujarati, Qoriya, Qtamil, Qtelugu, Qkannada)
10500 (Qmalayalam, Qsinhala, Qthai, Qlao, Qtibetan, Qmyanmar, Qgeorgian)
10501 (Qhangul, Qethiopic, Qcherokee, Qcanadian_aboriginal, Qogham)
10502 (Qrunic, Qkhmer, Qmongolian, Qsymbol, Qbraille, Qhan)
10503 (Qideographic_description, Qcjk_misc, Qkana, Qbopomofo, Qkanbun)
10504 (Qyi, Qbyzantine_musical_symbol, Qmusical_symbol, Qmathematical):
10505 New symbols.
10506 (font_callback_data): New struct.
10507 (w32font_list, w32font_match): Use it.
10508 (w32font_open): Don't populate subranges.
10509 (w32font_has_char): Use script Lisp symbols, not subrange bitmask.
10510 (w32font_encode_char): Always return unicode code-point as-is.
10511 (w32font_text_extents): Supply a transformation matrix to
10512 GetGlyphOutline. Never look up by glyph index. Avoid looping
10513 twice. Use unicode version of GetTexExtentPoint32 instead of
10514 glyph index version.
10515 (set_fonts_frame): Remove.
10516 (w32_enumfont_pattern_entity): Add frame parameter, use it to
10517 set frame parameter. Use backward compatible fake foundries.
10518 Save generic family in extra slot under QCfamily. Make width slot
10519 constant. Save QCspacing value. Save list of scripts instead of
10520 binary subranges.
10521 (w32_generic_family, logfonts_match, font_matches_spec): New functions.
10522 (add_font_entity_to_list): Use font_callback_data struct. Filter
10523 unwanted fonts.
10524 (add_one_font_entity_to_list): Use font_callback_data struct.
10525 (w32_registry): Default to iso10646_1.
10526 (fill_in_logfont): Use dpi from extra slot. Don't bother with
10527 string font registries. Don't fill in font name if it is a generic
10528 family name, fill family instead. Use spacing, family and script
10529 extra info to fill pitch, family and charset fields.
10530 (list_all_matching_fonts): Use font_callback_data struct.
10531 (unicode_range_for_char): Remove.
10532 (font_supported_scripts): New function.
10533 (w32font_initialize): Remove.
10534 (syms_of_w32font): Update which symbols are defined.
10535
105362008-02-01 Jason Rumney <jasonr@gnu.org>
10537
10538 * font.c (font_pixel_size): Reverse assq_no_quit args.
10539
10540 * w32term.h (FONT_WIDTH): Report max width, not average.
10541 (FONT_MAX_WIDTH): Remove.
10542 (FONT_AVG_WIDTH): New macro.
10543
10544 * xfaces.c (Fx_list_fonts) [WINDOWSNT]: Remove Windows only
10545 redefinition of FONT_WIDTH.
10546
10547 * w32term.c (x_font_min_bounds): Use FONT_AVG_WIDTH.
10548 (w32_cache_char_metrics): Use FONT_WIDTH.
10549
10550 * w32fns.c (w32_load_system_font, w32_list_fonts): Use FONT_AVG_WIDTH.
10551
105522008-02-01 Jason Rumney <jasonr@gnu.org>
10553
10554 * w32font.c (w32font_open): Make lfHeight negative.
10555
10556 * w32fns.c (x_default_font_parameter): Use new style font name.
10557 (Fx_create_frame, x_create_tip_frame): Initialize resx and resy.
10558
105592008-02-01 Jason Rumney <jasonr@gnu.org>
10560
10561 * w32font.c (QCsubranges): New symbol.
10562 (w32font_open, w32font_has_char): Get subranges from subproperty
10563 of extra.
10564 (w32_enumfont_pattern_entity): Set subranges as subproperty of extra.
10565 (syms_of_w32font): Define :subranges symbol.
10566
10567 * font.c (font_put_extra): Expose externally.
10568
10569 * font.h (font_put_extra): Move declaration from font.c.
10570
10571 * font.c (Ffont_get): Use font driver to determine otf capability.
10572 (adjust_anchor): Check if driver defines anchor_point before using.
10573
10574 * w32font.c (w32font_open): Handle size, height and pixel_size better.
10575 (w32font_draw): Use options.
10576 (w32_enumfont_pattern_entity): Set size to 0 for scalable fonts.
10577 Fix detection of truetype fonts.
10578 (registry_to_w32_charset): Handle charsets other than iso8859-1
10579 expressed as lisp symbols.
10580 (w32_registry): Express charset as lisp symbol.
10581 (fill_in_logfont): Reverse pixel and point height logic.
10582 Don't set width here. Set quality to default.
10583
10584 * w32fns.c (w32_load_system_font): Fix detecting FIXED_PITCH fonts.
10585 (x_to_w32_font): Fill in lfPitchAndFamily correctly.
10586
10587 * xterm.c (x_draw_glyph_string_foreground) [USE_FONT_BACKEND]:
10588 Remove redundant loop and allocation.
10589
10590 * makefile.w32-in (font.o, w32font.o): New objects.
10591 (fontset.o, xdisp.o, xfaces.o, w32fns.o, w32term.o): Depend on font.h.
10592 (FONTOBJ): New group of objects conditioned on USE_FONT_BACKEND.
10593
10594 * xdisp.c (fill_composite_glyph_string): Make the first arg to
10595 STORE_XCHARB a valid l-value.
10596
10597 * w32term.c (w32_native_per_char_metric): Swap width and rbearing
10598 calculations for non-Truetype fonts.
10599 (x_draw_glyph_string): Sync with xterm.c.
10600 (x_draw_glyph_string_foreground) [USE_FONT_BACKEND]:
10601 Remove redundant code.
10602 (w32_initialize) [USE_FONT_BACKEND]: Call w32font_initialize.
10603
10604 * w32term.h (w32_output_data) [USE_FONT_BACKEND]: Add fontp member.
10605 (FRAME_FONT_OBJECT) [USE_FONT_BACKEND]: New macro from xterm.h.
10606
10607 * w32fns.c [USE_FONT_BACKEND]: Port font backend changes from xfns.c.
10608 (x_to_w32_charset, w32_to_x_charset): Expose externally.
10609
10610 * w32font.c: New file for w32 font backend.
10611
106122008-02-01 Kenichi Handa <handa@m17n.org>
10613
10614 * term.c: Don't include "buffer.h" twice.
10615
106162008-02-01 Kenichi Handa <handa@m17n.org>
10617
10618 * character.c (Funibyte_string): New function.
10619 (syms_of_character): Defsubr it.
10620
106212008-02-01 Jason Rumney <jasonr@gnu.org>
10622
10623 * w32term.c [USE_FONT_BACKEND]:
10624 (x_get_font_repertory, note_mouse_movement, x_set_mouse_face_gc)
10625 (x_set_glyph_string_clipping, x_set_glyph_string_clipping_exactly)
10626 (x_draw_glyph_string, x_draw_glyph_string_foreground)
10627 (x_draw_composite_glyph_string_foreground, x_new_fontset2)
10628 (x_free_frame_resources): Sync with xterm.c.
10629
106302008-02-01 Andreas Schwab <schwab@suse.de>
10631
10632 * lread.c (read1): Use CHAR_TABLE_STANDARD_SLOTS to validate
10633 char-table size.
10634
106352008-02-01 Kenichi Handa <handa@m17n.org>
10636
10637 * font.c (check_otf_features): Define it regardless of HAVE_LIBOTF.
10638
106392008-02-01 Kenichi Handa <handa@m17n.org>
10640
10641 * ftfont.c (ftfont_driver): Delete font_otf_gsub and
10642 font_otf_gpos, add font_drive_otf.
10643
10644 * fontset.c (fontset_find_font): Pay attention to font size
10645 specified for a font.
10646 (reorder_font_vector): Check contents of font_def.
10647
10648 * font.c (struct otf_list): Delete it.
10649 (otf_list): Make it a lisp variable.
10650 (otf_open): Use lispy otf_list.
10651 (generate_otf_features): Rename from parse_gsub_gpos_spec.
10652 (check_otf_features): New function.
10653 (font_otf_DeviceTable, font_otf_ValueRecord, font_otf_Anchor):
10654 New functions.
10655 (font_drive_otf): New function merging font_otf_gsub and
10656 font_otf_gpos.
10657 (font_open_for_lface): New arg spec. Change argument order.
10658 (font_load_for_face): Adjust for the change of font_open_for_lface.
10659 (Ffont_drive_otf): New function merging Ffont_otf_gsub and
10660 Ffont_otf_gpos.
10661 (syms_of_font): Staticpro otf_list. Delete defsubr of
10662 Sfont_otf_gsub and Sfont_otf_gpos. Defsubr Sfont_drive_otf.
10663
10664 * xfaces.c (set_font_frame_param): Adjust for the change of
10665 font_open_for_lface.
10666
10667 * font.h (font_open_for_lface): Adjust prototype.
10668 (struct font_driver): Delete members otf_gsub and otf_gpos, add
10669 member otf_drive.
10670 (font_otf_gsub, font_otf_gpos): Delete externs.
10671 (font_drive_otf): Extern it.
10672
106732008-02-01 Kenichi Handa <handa@m17n.org>
10674
10675 * font.c (font_at): If the window W is not on a window system,
10676 return Qnil.
10677
10678 * coding.c (produce_chars, encode_coding): Don't call
10679 insert_from_gap if no characters to produce.
10680
106812008-02-01 Kenichi Handa <handa@m17n.org>
10682
10683 * fontset.c (free_realized_fontsets): Avoid unnecessary call of
10684 Fclear_face_cache.
10685
10686 * xfaces.c (face_for_font): Check also face->font==font->font.font.
10687
106882008-02-01 Miles Bader <miles@gnu.org>
10689
10690 * emacs.c (main): Change default value of `enable_font_backend' to 1.
10691 Parse "--disable-font-backend" option.
10692 (standard_args): Add "--disable-font-backend" option.
10693
106942008-02-01 Kenichi Handa <handa@m17n.org>
10695
10696 * fontset.c (fontset_find_font): New function.
10697 (fontset_font): Use fontset_find_font.
10698 (make_fontset_for_ascii_face): Don't set face ID in rfont_def.
10699 Register the specified font for all Latin characters.
10700 (new_fontset_from_font): Register the specified font for all Latin
10701 characters.
10702 (dump_fontset): For a realized fontset, include the base fontset
10703 name in the returned vector.
10704
107052008-02-01 Kenichi Handa <handa@m17n.org>
10706
10707 * character.h (CHAR_STRING): Cast C to unsigned on calling
10708 char_string.
10709
10710 * character.c (char_string): Type of arg C changed to unsigned.
10711 Signal an error if C is an invalid character code.
10712
10713 * editfns.c (general_insert_function, Fchar_to_string):
10714 Use CHARACTERP, not INTEGERP.
10715
107162008-02-01 Kenichi Handa <handa@m17n.org>
10717
10718 * character.h (MIN_MULTIBYTE_LEADING_CODE)
10719 (MAX_MULTIBYTE_LEADING_CODE): New macros.
10720
10721 * regex.c (analyse_first): Fix for multibyte characters in "case
10722 charset:" and "case categoryspec:".
10723
107242008-02-01 Andreas Schwab <schwab@suse.de>
10725
10726 * Makefile.in (LIBES): Move standard libraries to the end.
10727
107282008-02-01 Kenichi Handa <handa@m17n.org>
10729
10730 * alloc.c (Fgarbage_collect): If nextb->text->inhibit_shrinking is
10731 nonzero, don't shrink the buffer nextb.
10732
10733 * buffer.h (struct buffer_text): New member inhibit_shrinking.
10734
10735 * coding.c (coding_alloc_by_making_gap): New arg offset.
10736 (alloc_destination): Call coding_alloc_by_making_gap with the arg
10737 offset.
10738 (decode_coding_iso_2022): Update coding->safe_charsets.
10739 (decode_coding_gap): Temporarily set
10740 current_buffer->text->inhibit_shrinking to 1.
10741
107422008-02-01 Kenichi Handa <handa@m17n.org>
10743
10744 * xterm.c (x_draw_composite_glyph_string_foreground): Fix
10745 indexing into elements of s->cmp and s->char2b.
10746
107472008-02-01 Juanma Barranquero <lekktu@gmail.com>
10748
10749 * regex.c (RE_STRING_CHAR_AND_LENGTH) [! emacs]: Add missing arg `len'.
10750
107512008-02-01 Kenichi Handa <handa@m17n.org>
10752
10753 * regex.c (GET_CHAR_BEFORE_2, GET_CHAR_AFTER): Check the variable
10754 target_multibyte instead of multibyte.
10755 (re_match_2_internal): Call bcmp_translate with target_multibyte.
10756 (bcmp_translate): Change the argument name from multibyte to
10757 target_multibyte.
10758
107592008-02-01 Kenichi Handa <handa@m17n.org>
10760
10761 These changes are to compile a regexp into a pattern that can be
10762 used both for multibyte and unibyte targets.
10763
10764 * Makefile.in (search.o): Depend on charset.h.
10765
10766 * character.c (multibyte_char_to_unibyte_safe): New function.
10767
10768 * search.c: Include "charset.h".
10769 (compile_pattern_1): Delete argument multibyte. Don't set
10770 cp->buf.target_multibyte here. Set cp->buf.charset_unibyte.
10771 (compile_pattern): Don't compare cp->buf.target_multibyte.
10772 Compare cp->buf.charset_unibyte.
10773 (compile_pattern): Set cp->buf.target_multibyte.
10774
10775 * lisp.h (multibyte_char_to_unibyte_safe): Extern it.
10776
10777 * regex.h (struct re_pattern_buffer): New member charset_unibyte.
10778
10779 * regex.c (RE_STRING_CHAR, RE_STRING_CHAR_AND_LENGTH): New arg
10780 multibyte. Change callers.
10781 (RE_CHAR_TO_MULTIBYTE, RE_CHAR_TO_UNIBYTE): New macros.
10782 (MAKE_CHAR_MULTIBYTE, MAKE_CHAR_UNIBYTE): Delete. Change callers
10783 to use RE_CHAR_TO_MULTIBYTE and RE_CHAR_TO_UNIBYTE, respectively.
10784 (SETUP_ASCII_RANGE, SETUP_UNIBYTE_RANGE): New macros.
10785 (SETUP_MULTIBYTE_RANGE): Generate a more compact range_table.
10786 (regex_compile): Make the compiled pattern usable both for
10787 multibyte and unibyte targets.
10788 (analyse_first): Make the fastmap usable both for multibyte and
10789 unibyte targets.
10790 (TRANSLATE_VIA_MULTIBYTE): Delete.
10791 (re_match_2_internal): Pay attention to the case that the
10792 multibyteness of bufp and target may be different.
10793
107942008-02-01 Kenichi Handa <handa@m17n.org>
10795
10796 * xdisp.c (x_produce_glyphs): When a font is not found, make the
10797 empty box occupy at least one column width.
10798
107992008-02-01 Miles Bader <miles@gnu.org>
10800
10801 * Makefile.in: Remove redundant HAVE_XFT clause.
10802
108032008-02-01 Kenichi Handa <handa@m17n.org>
10804
10805 * xrdb.c (x_load_resources): Setup the default fontSet X resource.
10806
108072008-02-01 Kenichi Handa <handa@m17n.org>
10808
10809 * fontset.c (Finternal_char_font): Fix for the case of POSITION
10810 being nil.
10811
108122008-02-01 Kenichi Handa <handa@m17n.org>
10813
10814 * xftfont.c (xftfont_open): Call FcConfigSubstitute.
10815
108162008-02-01 Kenichi Handa <handa@m17n.org>
10817
10818 * xftfont.c (xftfont_open): Don't enable antialias explicitly.
10819
108202008-02-01 Kenichi Handa <handa@m17n.org>
10821
10822 * search.c (simple_search): Fix previous change.
10823
108242008-02-01 Kenichi Handa <handa@m17n.org>
10825
10826 * xftfont.c (ftfont_font_format): Extern declaration.
10827
10828 * frame.c (x_set_font): Fix the second arg to fs_query_fontset.
10829
10830 * xfont.c (xfont_driver): Initialize ftfont_driver.type by 0.
10831 (xfont_list): Don't directly use Lisp_Object as an operand of &&.
10832
10833 * ftfont.c (ftfont_driver): Initialize ftfont_driver.type by 0.
10834 (ftfont_font_format): Fix previous change.
10835
10836 * font.h (Ffont_xlfd_name): EXFUN it.
10837
10838 * font.c (font_parse_xlfd): Fix the array size of `f'.
10839 (register_font_driver): Use EQ to compare driver->type.
10840
10841 * xfns.c (xic_create_xfontset2) [USE_FONT_BACKEND]: New function.
10842 (create_frame_xic) [USE_FONT_BACKEND]: Call xic_create_xfontset2.
10843 (xic_set_xfontset) [USE_FONT_BACKEND]: Likewise.
10844
108452008-02-01 Kenichi Handa <handa@m17n.org>
10846
10847 * ftfont.c (ftfont_pattern_entity, ftfont_list_generic_family)
10848 (ftfont_list, ftfont_font_format): Check if FC_FONTFORMAT is defined.
10849
108502008-02-01 Kenichi Handa <handa@m17n.org>
10851
10852 * xfont.c (xfont_open): Set font->format.
10853
10854 * xftfont.c (xftfont_open): Set font->format.
10855
10856 * ftfont.c (ftfont_pattern_entity): Add fontformat in a pattern.
10857 (ftfont_list): Include FC_FONTFORMAT in FcObject.
10858 (ftfont_open): Set font->format.
10859 (ftfont_font_format): New function.
10860
10861 * font.h (struct font): New member format.
10862
10863 * font.c (Qopentype): New variable.
10864 (syms_of_font): Defsym it.
10865 (Fquery_font): Change the format of the last element of the return
10866 value.
10867
108682008-02-01 Kenichi Handa <handa@m17n.org>
10869
10870 * xfns.c (xic_create_xfontset): Try the default fontset name as a
10871 last resort.
10872
108732008-02-01 Kenichi Handa <handa@m17n.org>
10874
10875 * coding.c (detect_coding_charset): Fix detection of multi-byte
10876 charset.
10877
108782008-02-01 Bob Halley <halley@play-bow.org> (tiny change)
10879
10880 * ccl.c (ccl_driver): If DST is NULL, set ccl->produced to 0.
10881
108822008-02-01 Kenichi Handa <handa@m17n.org>
10883
10884 * xdisp.c (get_next_display_element): Set it->face_id for the
10885 first component of a composition.
10886 (x_produce_glyphs): Check if the font is changed or not for composition.
10887
108882008-02-01 Kenichi Handa <handa@m17n.org>
10889
10890 * fontset.c (Qlatin): New variable.
10891 (syms_of_fontset): Define it as a lisp symbol.
10892 (Fset_fontset_font): If TARGET is `latin', use FONT_SPEC for ASCII.
10893
108942008-02-01 Kenichi Handa <handa@m17n.org>
10895
10896 * font.c (font_unparse_fcname): Pay attention to the case that
10897 some of font property is a null string.
10898
108992008-02-01 Kenichi Handa <handa@m17n.org>
10900
10901 * term.c: Include "composite.h".
10902 (encode_terminal_code): Output all components of composition.
10903 Check the size of encode_terminal_src.
10904 (produce_glyphs): For composition, call produce_composite_glyph.
10905 (append_composite_glyph, produce_composite_glyph): New functions.
10906
10907 * xdisp.c (x_produce_glyphs): In handling composition, if a font
10908 is not found, get font_info from the current ascii face.
10909
109102008-02-01 Kenichi Handa <handa@m17n.org>
10911
10912 * fileio.c (Finsert_file_contents): On replacing, temporarily bind
10913 buffer-file-name to Qnil before calling insert_from_buffer.
10914
10915 * font.c (font_unparse_fcname): Pay attention to the case that
10916 foundry is a null string.
10917
109182008-02-01 Kenichi Handa <handa@m17n.org>
10919
10920 * ftfont.c (ftfont_list): Allow registry "unicode-sip".
10921
10922 * font.c (Qunicode_sip): New variable.
10923 (syms_of_font): Declare it as a Lisp symbol.
10924
10925 * font.h (Qunicode_sip): Extern it.
10926
109272008-02-01 Kenichi Handa <handa@m17n.org>
10928
10929 * composite.c (get_composition_id): Pay attention to TAB component.
10930
10931 * xterm.c (x_draw_composite_glyph_string_foreground): Don't draw
10932 TAB. Adjust for the change of s->char2b which always points to
10933 the first element of allocated memory.
10934
10935 * xftfont.c (xftfont_text_extents): Fix calculation of descent value.
10936
10937 * xdisp.c (handle_composition_prop): Set it->c to the first
10938 non-TAB component.
10939 (fill_composite_glyph_string): Change argument.
10940 (BUILD_COMPOSITE_GLYPH_STRING): Adjust for the above change.
10941 (x_produce_glyphs): Fix handling of left/right padding.
10942
109432008-02-01 Kenichi Handa <handa@m17n.org>
10944
10945 * coding.c (detect_coding_system): Fix for handling off
10946 inhibit_iso_escape_detection. Fix for the case that no coding
10947 system is defined for a specific coding category.
10948
109492008-02-01 Kenichi Handa <handa@m17n.org>
10950
10951 * font.c (font_matching_entity): Delete unused local var.
10952
10953 * xftfont.c (xftfont_open): Call XftDefaultSubstitute before
10954 opening a font.
10955
10956 * fileio.c (Finsert_file_contents): On recovering a file, assume
10957 Unix-like eol.
10958 (choose_write_coding_system): On auto-saving a file, force
10959 Unix-like eol.
10960
10961 * coding.c (setup_coding_system): Fix setting of
10962 coding->common_flags based on eol_type.
10963 (coding_inherit_eol_type): If PARENT is not nil, be sure to
10964 inherit from it.
10965
109662008-02-01 Kenichi Handa <handa@m17n.org>
10967
10968 * alloc.c (NSTATICS): Increas to 0x600.
10969
109702008-02-01 Kenichi Handa <handa@m17n.org>
10971
10972 * ftfont.c (ftfont_driver): Set ftfont_driver.match to ftfont_match.
10973 (ftfont_list): Don't check :name property.
10974 (ftfont_match): New function.
10975 (ftfont_pattern_entity): If the pattern doesn't contain
10976 FC_SPACING, don't assume FC_MONO.
10977
10978 * font.h (struct font_driver): New member `match'.
10979 (font_update_drivers): Adjust prototype.
10980
10981 * font.c (font_parse_fcname, font_parse_name): Don't change :name
10982 property of FONT.
10983 (LGSTRING_HEADER_SIZE, LGSTRING_GLYPH_SIZE, check_gstring): Define
10984 them unconditionally.
10985 (font_matching_entity): New function.
10986 (font_open_by_name): Try font_matching_entity if exact match is
10987 not found.
10988 (font_update_drivers): Delete the arg FONT. Return a list of
10989 actually used backends. Don't free faces, font caches here.
10990 Don't store data in frame parameters. Don't call x_set_font.
10991 (Ffont_spec): Store :name property as is.
10992 (Ffont_get): Check HAVE_LIBOTF before calling font_otf_capability.
10993 (Ffont_otf_gsub): Call font->driver->otf_gsub instead of font_otf_gsub.
10994 (Ffont_otf_gpos): Call font->driver->otf_gpos instead of font_otf_gpos.
10995 (Ffont_otf_alternates): Check if the driver has otf_gsub function.
10996 Call font->driver->otf_gsub instead of font_otf_gsub.
10997
10998 * frame.c (x_set_font_backend): Do more works that were done in
10999 font_update_drivers before.
11000
11001 * xfont.c (xfont_match): New function.
11002 (xfont_driver): Set xfont_driver.match to xfont_match.
11003 (xfont_draw): Set font in GC if necessary.
11004
11005 * ftxfont.c (ftxfont_match): New function.
11006 (syms_of_ftxfont): Set ftxfont_driver.match to ftxfont_match.
11007
11008 * xftfont.c (xftfont_match): New function.
11009 (syms_of_xftfont): Set xftfont_driver.match to xftfont_match.
11010
110112008-02-01 Kenichi Handa <handa@m17n.org>
11012
11013 * font.h (struct font): New member scalable.
11014 (struct font_driver): New arg ALTERANTE_SUBST to otf_gsub.
11015 (font_otf_gsub): Adjust prototype.
11016
11017 * font.c (font_otf_capability): Fix handling of the default langsys.
11018 (parse_gsub_gpos_spec): Change type to void. New arg nbytes.
11019 Check the contents of SPEC.
11020 (LGSTRING_HEADER_SIZE, LGSTRING_GLYPH_SIZE): New macros.
11021 (check_gstring): New function.
11022 (REPLACEMENT_CHARACTER): New macro.
11023 (font_otf_gsub): New arg alternate_subst. Be sure to set all
11024 glyph codes of GSTRING.
11025 (font_otf_gpos): Be sure to set all glyph codes of GSTRING.
11026 (font_prepare_composition): Set cmp->glyph_len.
11027 (font_open_entity): Set font->scalable.
11028 (Ffont_get): Handle :otf property.
11029 (Ffont_otf_gsub, Ffont_otf_gpos, Ffont_otf_alternates): New
11030 functions.
11031 (Fquery_font): Use font->font.full_name.
11032 (syms_of_font): Defsubr Sfont_otf_gsub, Sfont_otf_gpos, and
11033 Sfont_otf_alternates.
11034
11035 * ftfont.c (ftfont_open): Set font->font.full_name and
11036 font->font.name properly. Fix calculation of font->font.height
11037 and font->min_width.
11038
11039 * ftxfont.c (ftxfont_create_gcs): New function.
11040 (ftxfont_draw_bitmap): Fix arg to ftfont_driver.get_bitmap.
11041 (ftxfont_draw_backgrond): Fix filling region.
11042 (ftxfont_default_fid): New function.
11043 (ftxfont_open): Set xfont->fid to the return value of
11044 ftxfont_default_fid.
11045 (ftxfont_prepare_face): Use ftxfont_create_gcs to create GCs.
11046 (ftxfont_done_face): Free only GCs that are created by
11047 ftxfont_create_gcs.
11048 (ftxfont_draw): If face->gc != s->gc, create proper GCs.
11049
11050 * xterm.c (x_set_glyph_string_clipping_exactly) [USE_FONT_BACKEND]:
11051 Clip to src->width, etc (not src->clip_XXX).
11052
11053 * xfns.c (x_create_tip_frame) [USE_FONT_BACKEND]: Handle
11054 FontBackend frame parameter.
11055
110562008-02-01 Kenichi Handa <handa@m17n.org>
11057
11058 * font.h (struct font_driver_list): New member `on'.
11059 (Fclear_font_cache): EXFUN it.
11060 (font_update_drivers): Extern it.
11061
11062 * font.c (font_unparse_fcname): Fix typo (swidth->width).
11063 (font_list_entities): Check driver_list->on.
11064 (register_font_driver): Initalize `on' member to 0.
11065 (font_update_drivers): New function.
11066 (Fclear_font_cache): Check driver_list->on.
11067
11068 * frame.h (Qfont_backend): Extern it.
11069 (x_set_font_backend): Extern it.
11070
11071 * frame.c (Qfont_backend): New variable.
11072 (frame_parms): New element for font-backend.
11073 (x_set_font_backend): New function.
11074
11075 * xfns.c (Fx_create_frame) [USE_FONT_BACKEND]: Handle
11076 FontBackend frame parameter.
11077 (x_frame_parm_handlers) [USE_FONT_BACKEND]: New element
11078 x_set_font_backend.
11079
11080 * xfont.c (xfont_list): Don't try listing by :name property if the
11081 name is not for XLFD.
11082
110832008-02-01 Kenichi Handa <handa@m17n.org>
11084
11085 * font.h (LGLYPH_FROM, LGLYPH_TO, LGLYPH_SET_FROM)
11086 (LGLYPH_SET_TO): New macros.
11087 (LGLYPH_XOFF, LGLYPH_YOFF, LGLYPH_WADJUST): Check if adjustment
11088 element of G is vector or not.
11089 (font_at): Extern it.
11090
11091 * font.c: Include window.h.
11092 (font_lispy_object): New function.
11093 (font_prepare_composition): Check LGLYPH_FORM (g) to detect the
11094 end of valid glyph.
11095 (font_close_object): Fix getting (struct font *).
11096 (font_at): New function.
11097 (Ffont_get): If FONT is a font-object, get entity from it.
11098 (Ffont_make_gstring): Initialize elements of glyphs with nil.
11099 (Ffont_fill_gstring): Use macro LGSTRING_XXX and LGLYPH_XXX. Fix
11100 range check.
11101 (Ffont_at): New function.
11102 (syms_of_font): Defsubr Sfont_at.
11103
11104 * xdisp.c (it_props): Move the entry for Qauto_composed to just
11105 before the entry for Qcomposition.
11106 (handle_auto_composed_prop): Call auto-composition-function with 4 args.
11107 (handle_composition_prop) [USE_FONT_BACKEND]: Set it->face_id from
11108 the font in gstring.
11109 (fill_composite_glyph_string) [USE_FONT_BACKEND]: Check
11110 LGLYPH_FORM (g) to detect the end of valid glyph.
11111 (x_produce_glyphs) [USE_FONT_BACKEND]: Don't update it->face_id if
11112 we are composing with gstring.
11113
11114 * xterm.c (x_draw_composite_glyph_string_foreground) [USE_FONT_BACKEND]:
11115 Check if adjustment is vector or not.
11116
11117 * Makefile.in (font.o): Make it depends on window.h.
11118
111192008-02-01 Kenichi Handa <handa@m17n.org>
11120
11121 * xterm.c (x_draw_composite_glyph_string_foreground): Check if
11122 adjustment is vector or not.
11123
111242008-02-01 Miles Bader <miles@gnu.org>
11125
11126 * character.h (CHECK_CHARACTER): Redefine in terms of CHECK_TYPE.
11127
111282008-02-01 Kenichi Handa <handa@m17n.org>
11129
11130 * font.h (LGLYPH_XOFF, LGLYPH_YOFF, LGLYPH_WIDTH, LGLYPH_WADJUST)
11131 (LGLYPH_SET_WIDTH): Adjusted for the change of LGLYPH format.
11132 (LGLYPH_ADJUSTMENT, LGLYPH_SET_ADJUSTMENT): New macros.
11133
11134 * font.c (font_merge_old_spec): Treat '*' in foundry as a wild card.
11135 (DEVICE_DELTA): Fix typo.
11136 (font_otf_gpos, font_prepare_compositio): Adjust for the change of
11137 LGLYPH format.
11138
11139 * xterm.c (x_draw_composite_glyph_string_foreground): Adjust for
11140 the change of LGLYPH format.
11141
111422008-02-01 Kenichi Handa <handa@m17n.org>
11143
11144 * ftfont.c (ftfont_list): Fix typo.
11145 (ftfont_build_basic_charsets): Don't include letters with diacritics.
11146
111472008-02-01 Jan Djärv <jan.h.d@swipnet.se>
11148
11149 * xfaces.c (realize_non_ascii_face): Set face->extra to NULL.
11150
11151 * xftfont.c (xftfont_done_face): Call XftDrawDestroy only if
11152 xftface_info is non-NULL.
11153
111542008-02-01 Jan Djärv <jan.h.d@swipnet.se>
11155
11156 * ftfont.c (ftfont_list): Move misplaced #endif.
11157
111582008-02-01 Kenichi Handa <handa@m17n.org>
11159
11160 * ftfont.c (ftfont_list): Pay attention to the case that
11161 FC_CAPABILITY is not defined.
11162
111632008-02-01 Kenichi Handa <handa@m17n.org>
11164
11165 * xftfont.c (xftfont_open): Set charset related members to -1.
11166
11167 * ftfont.c (ftfont_list): Handle QCotf property. Fix handling of
11168 QCname.
11169 (ftfont_open): Set charset related members to -1.
11170
11171 * fontset.c (Votf_script_alist): New variable.
11172 (syms_of_fontset): Initialize it.
11173 (fontset_font): Delete unused variable.
11174
11175 * fontset.h (Votf_script_alist): Extern it.
11176
11177 * font.c (font_find_for_lface): Optimize code.
11178
11179 * font.h (font_close_object, font_merge_old_spec): Extern them.
11180
111812008-02-01 Kenichi Handa <handa@m17n.org>
11182
11183 * font.c (QCscalable, Qc, Qm, Qp, Qd): New variables.
11184 (syms_of_font): Initialize them.
11185 (font_pixel_size): Allow float value in dpi.
11186 (font_prop_validate_type): Delete.
11187 (font_prop_validate_symbol, font_prop_validate_style): Change argument.
11188 Change caller.
11189 (font_prop_validate_non_neg): Rename from font_prop_validate_size.
11190 (font_prop_validate_extra): Delete.
11191 (font_prop_validate_spacing): New function.
11192 (font_property_table): Add elements for all known properties.
11193 (get_font_prop_index): Rename from check_font_prop_name. New
11194 argument FROM. Change caller.
11195 (font_prop_validate): Validate all known properties.
11196 (font_put_extra): Delete argument force. Change caller.
11197 (font_expand_wildcards): Make it static. Fix the way of shrinking
11198 the possible range.
11199 (font_parse_xlfd): Delete argument merge. Fix handling of RESX,
11200 RESY, SPACING, and AVGWIDTH. Don't validate property values here.
11201 Change caller.
11202 (font_unparse_xlfd): Handle dpi, spacing, and scalable properties.
11203 (font_parse_fcname): Delete argument merge. Fix parsing of point
11204 size. Don't validate properties values here. Change caller.
11205 (font_unparse_fcname): Handle dpi, spacing, and scalable properties.
11206 (font_open_by_name): Delete unused variable.
11207 (Ffont_spec): Likewise. Validate property values.
11208 (Ffont_match_p): New function.
11209
11210 * font.h (QCscalable): Extern it.
11211 (font_parse_xlfd, font_parse_fcname): Adjust prototype.
11212
11213 * ftfont.c (ftfont_list): Handle properties dpi, spacing, and scalable.
11214
11215 * xfont.c (xfont_query_font): Adjust for the change of font_parse_xlfd.
11216 (xfont_list_pattern): New function.
11217 (xfont_list): Use xfont_list_pattern.
11218
112192008-02-01 Kenichi Handa <handa@m17n.org>
11220
11221 * font.h (Flist_fonts): EXFUN it.
11222
112232008-02-01 Jason Rumney <jasonr@gnu.org>
11224
11225 * w32term.c (w32_initialize): Add back smoothing_type and
11226 smoothing_enabled definitions.
11227
112282008-02-01 Kenichi Handa <handa@m17n.org>
11229
11230 * xterm.c (x_draw_glyph_string) [USE_FONT_BACKEND]: Check
11231 s->face->font on determining underline position.
11232
112332008-02-01 Kenichi Handa <handa@m17n.org>
11234
11235 * font.c (font_parse_xlfd): Fix generating of CHARSET_REGISTRY field.
11236 (font_has_char): Accept font-object too.
11237 (font_find_for_lface): Try at first with a size specified in face.
11238
112392008-02-01 Kenichi Handa <handa@m17n.org>
11240
11241 * frame.c (x_set_font) [USE_FONT_BACKEND]: Fix argument to
11242 font_open_by_name.
11243
112442008-02-01 Kenichi Handa <handa@m17n.org>
11245
11246 * font.h (QCspacing, QCdpi): Extern them.
11247 (enum font_spacing): New enum.
11248 (FONT_PIXEL_SIZE_QUANTUM): New macro.
11249
11250 * font.c (POINT_TO_PIXEL): Don't divide POINT by 10.
11251 (QCspacing, QCdpi): New variables.
11252 (syms_of_font): Initialize them.
11253 (font_pixel_size): New function.
11254 (font_put_extra): New function.
11255 (font_parse_xlfd): Fix handling of font size. Add QCdpi property
11256 in FONT_EXTRA.
11257 (font_parse_fcname): Handle enumerated values (e.g. bold).
11258 Fix handling font size. Add QCname property that contains only
11259 unknown properties.
11260 (font_score): Change argument. Change caller. Pay attention to
11261 FONT_PIXEL_SIZE_QUANTUM.
11262 (font_sort_entites, font_list_entities, font_find_for_lface)
11263 (font_open_for_lface, font_open_by_name): Fix handling of font size.
11264 (Ffont_spec): Add QCname property that contains only unknown properties.
11265
11266 * ftfont.c (ftfont_list): Use assq_no_quit, not Fassq. Don't
11267 include weight in listing pattern, instead check weight of each
11268 listed font. Don't include scalable in pattern. Pay attention to
11269 FONT_PIXEL_SIZE_QUANTUM.
11270
112712008-02-01 Kenichi Handa <handa@m17n.org>
11272
11273 * font.c (font_parse_fcname): Fix parsing of point-size.
11274 (font_unparse_fcname): Produce symbolic names for style properties.
11275 (font_list_entities): Handle float size correctly.
11276 (font_open_by_name): Prefer `normal' property values if the name
11277 doesn't specify them.
11278
11279 * fontset.c (Finternal_char_font): Use font_get_name, not
11280 Ffont_xlfd_name.
11281
11282 * ftfont.c (ftfont_pattern_entity): Use the numeric value 100 for
11283 FC_WEIGHT_REGULAR. Exclude FC_SIZE and FC_PIXEL_SIZE from listing
11284 pattern. Don't force scalable.
11285
11286 * xftfont.c (xftfont_open): For generating a name, start from
11287 96-byte buffer.
11288
112892008-02-01 Jan Djärv <jan.h.d@swipnet.se>
11290
11291 * frame.h (x_new_fontset2): Fix prototype.
11292
112932008-02-01 Kenichi Handa <handa@m17n.org>
11294
11295 * font.h (struct font_driver): Delete member parse_name.
11296 (font_match_p, font_get_spec, font_parse_fcname)
11297 (font_unparse_fcname): Extern them.
11298 (font_get_name): Adjust prototype.
11299
11300 * font.c (XLFD_SMALLNUM_MASK): Delete this macro.
11301 (XLFD_LARGENUM_MASK): Delete XLFD_ENCODING_MASK from it.
11302 (font_expand_wildcards): Fix handling ENCODING field. Avoid
11303 unnecessary checks for weight, slant, and swidth.
11304 (font_parse_fcname): New function.
11305 (font_unparse_fcname): New function.
11306 (font_parse_name): New function.
11307 (font_match_p): New function.
11308 (font_get_name): Change return value to Lisp string.
11309 (font_get_spec): New function.
11310 (Qunspecified, Qignore_defface): Don't extern them.
11311 (font_find_for_lface): Assume that LFACE is fully specified.
11312 (font_load_for_face): If lface[LFACE_FONT_INDEX] is an font
11313 object, use it for FACE.
11314 (font_open_by_name): Call Ffont_spec with QCname prop. Don't call
11315 driver->parse_name.
11316 (Ffont_spec): Call font_parse_name, not font_parse_xlfd.
11317
11318 * fontset.h (new_fontset_from_font) [USE_FONT_BACKEND]: Adjust
11319 prototype.
11320
11321 * fontset.c (new_fontset_from_font) [USE_FONT_BACKEND]: Delete
11322 argument F. Don't call Fnew_fontset. Instead, directly call
11323 make_fontset.
11324
11325 * frame.h (x_new_fontset2) [USE_FONT_BACKEND]: Adjust prototype.
11326
11327 * frame.c (x_set_font) [USE_FONT_BACKEND]: Adjust for the change
11328 of x_new_fontset2.
11329
11330 * ftfont.c (Qmonospace, Qsans_serif, Qserif, Qmono, Qsans)
11331 (Qsans__serif): New variables.
11332 (ftfont_generic_family_list): New variable.
11333 (syms_of_ftfont): Initialize the above variables.
11334 (ftfont_pattern_entity): Delete argument NAME.
11335 (ftfont_list_generic_family): New function.
11336 (ftfont_parse_name): Delete this function.
11337 (ftfont_list): Try generic family only when FcFontList found no font.
11338 (ftfont_list_family): Fix args to FcObjectSetBuild.
11339
11340 * xfaces.c (check_lface_attrs) [USE_FONT_BACKEND]: Accept font
11341 object in attrs[LFACE_FONT_INDEX].
11342 (set_lface_from_font_name): Cancel all changes for font-backend.
11343 (set_lface_from_font_and_fontset) [USE_FONT_BACKEND]: New
11344 function.
11345 (Finternal_set_lisp_face_attribute) [USE_FONT_BACKEND]: Accept a
11346 font object in QCfont attribute.
11347 (set_font_frame_param) [USE_FONT_BACKEND]: Likewise.
11348 (realize_default_face) [USE_FONT_BACKEND]: Call
11349 set_lface_from_font_and_fontset.
11350
11351 * xfns.c (x_default_font_parameter) [USE_FONT_BACKEND]: Try also
11352 "fixed", and signal error here if no suitable font was found.
11353
11354 * xfont.c (xfont_parse_name): Delete this function.
11355
11356 * xftfont.c (xftfont_open): Change coding style of error
11357 handling. Generate fontconfig's fontname pattern.
11358
11359 * xterm.h (struct x_output) [USE_FONT_BACKEND]: New member fontp.
11360 (FRAME_FONT_OBJECT) [USE_FONT_BACKEND]: New macro.
11361
11362 * xterm.c (x_new_fontset2) [USE_FONT_BACKEND]: Change arguments.
11363 Both args FONTSET and FONT_OBJECT must be existing ones.
11364
113652008-02-01 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
11366
11367 * macterm.c (mac_set_unicode_keystroke_event): Don't use MAKE_CHAR.
11368
113692008-02-01 Kenichi Handa <handa@m17n.org>
11370
11371 * xfont.c (xfont_open, xfont_encode_char): Fix typo.
11372
11373 * font.h (struct font): Fix typo.
11374
11375 * font.c (enum xlfd_field_index): Rename XLFD_XXX_SIZE_INDEX to
11376 XLFD_XXX_INDEX.
11377 (enum xlfd_field_mask): New enum.
11378 (intern_font_field): Changed argument. Change caller. If digits
11379 are followed by non-digits, return a symbol.
11380 (font_expand_wildcards): New function.
11381 (font_parse_xlfd): Fix wildcard handling.
11382 (Ffont_spec): If :name is specified, reflect the info in the other
11383 properties.
11384
11385 * ftfont.c (ftfont_pattern_entity): Fix typo.
11386 (ftfont_list): Enforce FC_LANG in PATTERN to cancel the effect of
11387 locale.
11388
113892008-02-01 Kenichi Handa <handa@m17n.org>
11390
11391 * font.h (Qiso8859_1, Qiso10646_1, Qunicode_bmp): Extern them.
11392
11393 * font.c (Qiso8859_1, Qiso10646_1, Qunicode_bmp): Move from ftfont.c.
11394 (font_unparse_xlfd): Fix argument type declaration. Append "*" if
11395 registry doesn't specify encoding part.
11396 (font_find_for_lface): Pay attention to LFACE_FONT_INDEX.
11397 (font_open_by_name): At first try parsing the name.
11398 (syms_of_font): Declare Qiso8859_1, Qiso10646_1, and Qunicode_bmp
11399 as Lisp symbols.
11400
11401 * fontset.c (reorder_font_vector): Pay attention to the case that
11402 the 3rd element of font_def is nil.
11403 (fontset_font): For the default fontset, append one more fontset
11404 elements for a script-based font specification. Don't add script
11405 attribute on finding a font.
11406 (new_fontset_from_font): Unconditionally set FONTSET_ASCII to the
11407 font name.
11408 (fontset_ascii_font): If a font can't be opened, return nil.
11409
11410 * ftfont.c (Qiso8859_1, Qiso10646_1, Qunicode_bmp): Move to font.c.
11411 (ftfont_pattern_entity): New function.
11412 (ftfont_get_cache): Assume that freetype_font_cache is already
11413 initialized.
11414 (ftfont_list): Handle the case that a file is specified in font
11415 name. Use ftfont_pattern_entity to generate entities.
11416 (ftfont_has_char): Check if the pattern contains FC_CHARSET.
11417 (syms_of_ftfont): Initialize freetype_font_cache.
11418
11419 * xftfont.c (xftfont_open): Make the font name fontconfig's
11420 style. Add BLOCK_INPUT and UNBLOCK_INPUT.
11421 (xftfont_close): Free font->font.name if not NULL.
11422
11423 * xfont.c (xfont_list): If script is specified for a font, return
11424 null_vector.
11425 (xfont_list_family): Declare argument type.
11426
11427 * xfaces.c (set_lface_from_font_name): If a font doesn't have a
11428 name, set LFACE_FONT (lface) to nil.
11429
11430 * xterm.c (x_new_fontset2): If an ASCII font couldn't be loaded,
11431 return Qnil.
11432
114332008-02-01 Kenichi Handa <handa@m17n.org>
11434
11435 * emacs.c (main): Check -enable-font-backend arg after the check of -nl.
11436 (standard_args): Add "-enable-font-backend".
11437
114382008-02-01 Kenichi Handa <handa@m17n.org>
11439
11440 * xftfont.c (xftfont_default_fid): Set fid_known to 1.
11441 (struct xftdraw_list, xftdraw_list): Delete them.
11442 (register_xftdraw, check_xftdraw): Delete them.
11443 (xftfont_prepare_face): Don't call register_xftdraw.
11444 (xftfont_done_face): Don't call check_xftdraw.
11445 (xftfont_draw): Get background color only when with_background is
11446 nonzero.
11447
11448 * xfont.c (xfont_encode_char): Fix calculation of char2b.
11449
114502008-02-01 Kenichi Handa <handa@m17n.org>
11451
11452 These changes are for the new font handling codes.
11453
11454 * Makefile.in (ALL_CFLAGS): Add @FREETYPE_CFLAGS@,
11455 @FONTCONFIG_CFLAGS@, and @LIBOTF_CFLAGS@.
11456 (LIB_X11_LIB): If HAVE_XFT is defined, set to @XFT_LIBS@.
11457 (FONTSRC, FONTOBJ): New variables.
11458 (obj): Add $(FONTOBJ).
11459 (SOME_MACHINE_OBJECTS): Lib_X11_Lib.
11460 (LIBES): Add @FREETYPE_LIBS@, @FONTCONFIG_LIBS@, and
11461 @LIBOTF_LIBS@.
11462 (font.o, ftfont.o, xfont.o, xftfont.o, ftxfont.o): New targets.
11463 (fontset.o, xdisp.o, xfaces.o, xfns.o, xterm.o): Depend on $(FONTSRC).
11464
11465 * font.h, font.c, xfont.c, ftfont.c, xftfont.c, ftxfont.c: New files.
11466
11467 * character.h (Vscript_representative_chars): Extern it.
11468
11469 * character.c (Vscript_representative_chars): New variable.
11470 (syms_of_character): Declare it as a Lisp variable.
11471
11472 * composite.c (get_composition_id) [USE_FONT_BACKEND]: If
11473 enable_font_backend is nonzero, accept the composition method
11474 COMPOSITION_WITH_GLYPH_STRING.
11475
11476 * composite.h (enum composition_method) [USE_FONT_BACKEND]: New
11477 enumeration COMPOSITION_WITH_GLYPH_STRING.
11478
11479 * dispextern.h (struct glyph_string) [USE_FONT_BACKEND]: New
11480 members clip_x, clip_y, clip_width, and clip_height.
11481 (struct face) [USE_FONT_BACKEND]: New members font_info and extra.
11482
11483 * emacs.c (main) [USE_FONT_BACKEND]: Handle arg
11484 --enable-font-backend. Call syms_of_font.
11485
11486 * fns.c (assoc_no_quit): New function.
11487
11488 * fontset.h (FONT_INFO_FROM_FACE): New macro.
11489 (face_for_font, new_fontset_from_font)
11490 (fontset_ascii_font) [USE_FONT_BACKEND]: Extern them.
11491
11492 * fontset.c [USE_FONT_BACKEND]: Include "font.h".
11493 (fontset_font, fontset_ascii, face_for_char)
11494 (make_fontset_for_ascii_face, Ffont_info)
11495 (Finternal_char_font) [USE_FONT_BACKEND]: If enable_font_backend
11496 is nonzero, use font-backend mechanism.
11497 (find_font_encoding): Make it non-static.
11498 (new_fontset_from_font, fontset_ascii_font) [USE_FONT_BACKEND]:
11499 New functions.
11500
11501 * frame.h (struct frame): New members resx and resy.
11502 (struct frame) [USE_FONT_BACKEND]: New member font_driver_list.
11503 (x_new_fontset2) [USE_FONT_BACKEND]: Extern it.
11504
11505 * frame.c [USE_FONT_BACKEND]: Include "font.h".
11506 (make_frame, x_set_font) [USE_FONT_BACKEND]: Use font-backend mechanism.
11507
11508 * lisp.h (assoc_no_quit): Extern it.
11509
11510 * xdisp.c: If USE_FONT_BACKEND is defined, include "font.h".
11511 Through out the file, use FONT_INFO_FROM_FACE instead of
11512 FONT_INFO_FROM_ID, use get_per_char_metric instead of
11513 rif->per_char_metric.
11514 (handle_composition_prop) [USE_FONT_BACKEND]: If the composition
11515 method is COMPOSITION_WITH_GLYPH_STRING, just set it->c to ' '.
11516 (get_glyph_face_and_encoding, fill_composite_glyph_string)
11517 (get_char_face_and_encoding, BUILD_COMPOSITE_GLYPH_STRING)
11518 (x_produce_glyphs) [USE_FONT_BACKEND]: If enable_font_backend is
11519 nonzero, use font-backend mechanism.
11520 (get_per_char_metric): New function.
11521
11522 * xfaces.c [USE_FONT_BACKEND]: Include "font.h".
11523 (set_lface_from_font_name)
11524 (set_font_frame_param, free_realized_face)
11525 (prepare_face_for_display, clear_face_gcs)
11526 (Finternal_set_font_selection_order, realize_x_face)
11527 [USE_FONT_BACKEND]: If enable_font_backend is nonzero, use
11528 font-backend mechanism.
11529 (clear_face_cache) [USE_FONT_BACKEND]: Don't call clear_font_table.
11530 (load_face_font) [USE_FONT_BACKEND]: Abort.
11531 (face_symbolic_value, face_symbolic_weight, face_symbolic_slant)
11532 (face_symbolic_swidth, face_for_font) [USE_FONT_BACKEND]: New functions.
11533
11534 * xfns.c [USE_FONT_BACKEND]: Include "font.h".
11535 (x_default_font_parameter) [USE_FONT_BACKEND]: New function.
11536 (Fx_create_frame) [USE_FONT_BACKEND]: If enable_font_backend is
11537 nonzero, register all available font drivers. Call
11538 x_default_font_parameter for deciding a font.
11539 (x_create_tip_frame) [USE_FONT_BACKEND]: Likewise.
11540
11541 * xterm.c [USE_FONT_BACKEND]: Include "font.h".
11542 (x_set_mouse_face_gc, x_set_glyph_string_clipping)
11543 (x_set_glyph_string_clipping_exactly)
11544 (x_compute_glyph_string_overhangs)
11545 (x_draw_glyph_string_foreground)
11546 (x_draw_composite_glyph_string_foreground, x_draw_glyph_string)
11547 (x_free_frame_resources) [USE_FONT_BACKEND]: If
11548 enable_font_backend is nonzero, use font-backend mechanism.
11549 (x_new_fontset2) [USE_FONT_BACKEND]: New function.
11550
115512008-02-01 Kenichi Handa <handa@m17n.org>
11552
11553 * coding.c (coding_inherit_eol_type): If PARENT is nil, inherit from
11554 system_eol_type.
11555 (syms_of_coding): Initialize system_eol_type.
11556
11557 * process.c (Fset_process_coding_system): Inherit system's eol
11558 format if necessary.
11559
115602008-02-01 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
11561
11562 * macgui.h (USE_ATSUI): Don't enable on emacs-unicode-2 branch.
11563
115642008-02-01 Kenichi Handa <handa@m17n.org>
11565
11566 * coding.c (decode_eol): Pay attention to buffer relocation in
11567 del_range_2.
11568 (decode_coding): Call decode_eol before restoring undo_list.
11569
115702008-02-01 Kenichi Handa <handa@m17n.org>
11571
11572 * charset.c (Fdefine_charset_internal): Fix setting of
11573 emacs_mule_bytes.
11574
115752008-02-01 Kenichi Handa <handa@m17n.org>
11576
11577 * keyboard.c (read_char): Check if C is a character or not before
11578 looking up Vkeyboard_translate_table.
11579
115802008-02-01 Kenichi Handa <handa@m17n.org>
11581
11582 * coding.c (DECODE_EMACS_MULE_20_RELATIVE_COMPOSITION): Fix
11583 condition to terminate the loop.
11584
115852008-02-01 Kenichi Handa <handa@m17n.org>
11586
11587 * coding.c (produce_composition): Compare charbuf[i] instead of
11588 args[i] against 0.
11589 (Fterminal_coding_system): Use EQ to compare Lisp objects.
11590
115912008-02-01 Kenichi Handa <handa@m17n.org>
11592
11593 * coding.c (DECODE_COMPOSITION_START): If the source is short, set
11594 coding->result to CODING_RESULT_INSUFFICIENT_SRC.
11595 (decode_coding_gap): Set CODING_MODE_LAST_BLOCK after the call of
11596 detect_coding.
11597 (emacs_mule_char): Handle old style (Emacs 20) component character
11598 of a composition.
11599 (DECODE_EMACS_MULE_COMPOSITION_RULE_20)
11600 (DECODE_EMACS_MULE_20_RULEBASE_COMPOSITION): Fix parsing a
11601 composition rule.
11602 (decode_coding_emacs_mule): Handle invalid bytes correctly.
11603
116042008-02-01 Kenichi Handa <handa@m17n.org>
11605
11606 * coding.c (encode_coding_ccl): Allocate destination dynamically
11607 when necessary.
11608
116092008-02-01 Kenichi Handa <handa@m17n.org>
11610
11611 * ccl.c (Fccl_execute_on_string): Fix the condition of terminating
11612 the loop. When quitted, show a proper error message.
11613
116142008-02-01 Kenichi Handa <handa@m17n.org>
11615
11616 * xterm.c (x_set_glyph_string_clipping_exactly): Set
11617 src->clip_head and src->clip_tail temporarily instead of src->hl.
11618
11619 * ccl.c (CCL_WRITE_STRING): Handle a flag bit for multibyte
11620 character sequence.
11621 (Fccl_execute_on_string): Use ASET, not XSET.
11622
116232008-02-01 Kenichi Handa <handa@m17n.org>
11624
11625 * search.c (search_buffer): Fix handling of "\\" in a trivial regexp.
11626
116272008-02-01 Kenichi Handa <handa@m17n.org>
11628
11629 * coding.c (decode_coding): Fix the condition of terminating the
11630 decoding loop.
11631
116322008-02-01 Kenichi Handa <handa@m17n.org>
11633
11634 * data.c (Faset): On setting a character bigger than 255 in a
11635 unibyte string, signal an error instead of make the string multibyte.
11636
116372008-02-01 Kenichi Handa <handa@m17n.org>
11638
11639 * charset.c (map_charset_chars): Fix for ascii-compatible charset
11640 made by a mapping table.
11641
116422008-02-01 Kenichi Handa <handa@m17n.org>
11643
11644 * xdisp.c (fill_composite_glyph_string): Check s->face is NULL or
11645 not.
11646 (BUILD_COMPOSITE_GLYPH_STRING): If C is TAB, set s->face to NULL.
11647 (x_produce_glyphs): If CH is TAB, set cmp->offsets properly.
11648
11649 * xterm.c (x_draw_composite_glyph_string_foreground): Check
11650 s->face is NULL or not.
11651
116522008-02-01 Kenichi Handa <handa@m17n.org>
11653
11654 * xterm.c (x_set_glyph_string_clipping_exactly): New function.
11655 (x_draw_glyph_string): Fix drawing of right_overhang and
11656 left_overhang around/on cursor.
11657
11658 * xdisp.c (draw_glyphs): Fix inclusion of right_overwriting glyphs.
11659
116602008-02-01 Kenichi Handa <handa@m17n.org>
11661
11662 * xdisp.c (x_produce_glyphs): Handle composition with TAB.
11663
116642008-02-01 Kenichi Handa <handa@m17n.org>
11665
11666 * coding.c (Fdefine_coding_system_internal)
11667 (Fdefine_coding_system_alias): Avoid a duplicated element in
11668 Vcoding_system_alist.
11669
116702008-02-01 Kenichi Handa <handa@m17n.org>
11671
11672 * xterm.c (handle_one_xevent): Handle keysyms 0x1000000..0x10000FF.
11673
11674 * coding.c (Qcoding_system_define_form): New variable.
11675 (syms_of_coding): Intern and staticpro it.
11676 (Fcoding_system_p): Check Qcoding_system_define_form.
11677 (Fcheck_coding_system): Try to autoload the definition of CODING-SYSTEM.
11678
11679 * coding.h (CODING_SYSTEM_P): If ID is not available, call
11680 Fcoding_system_p.
11681 (CHECK_CODING_SYSTEM): If ID is not available, call
11682 Fcheck_coding_system.
11683 (CHECK_CODING_SYSTEM_GET_SPEC, CHECK_CODING_SYSTEM_GET_ID):
11684 Try also Fcheck_coding_system.
11685
116862008-02-01 Kenichi Handa <handa@m17n.org>
11687
11688 * coding.c (code_conversion_restore): GCPRO arg.
11689
116902008-02-01 Kenichi Handa <handa@m17n.org>
11691
11692 * character.c (lisp_string_width): Check multibyteness of STRING.
11693
116942008-02-01 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
11695
11696 * macterm.c (mac_encode_char): Call ccl_driver with the last arg
11697 Qnil. Use JIS_TO_SJIS instead of ENCODE_SJIS.
11698 (decode_mac_font_name): Use decode_coding_c_string instead of
11699 decode_coding.
11700 (x_load_font): Initialize fontp->fontset to -1. Set
11701 fontp->encoding_type.
11702
117032008-02-01 Kenichi Handa <handa@m17n.org>
11704
11705 * search.c (search_buffer): Give up BM search on case-fold-search
11706 if one of a target character has a case-equivalence of different
11707 byte length even if that target charcter is an ASCII.
11708 (simple_search): Fix calculation of byte length of matched text.
11709 (boyer_moore): Fix handling of case-equivalent multibyte characters.
11710
117112008-02-01 Kenichi Handa <handa@m17n.org>
11712
11713 * coding.c (decode_coding): Fix handling of invalid bytes.
11714
117152008-02-01 Kenichi Handa <handa@m17n.org>
11716
11717 * xterm.c (handle_one_xevent): Handle keysyms directly mapped to
11718 Unicode characters.
11719
117202008-02-01 Kenichi Handa <handa@m17n.org>
11721
11722 * coding.c (encode_coding_object): If a pre-write-conversion
11723 function makes a new buffer, kill it.
11724
117252008-02-01 Kenichi Handa <handa@m17n.org>
11726
11727 * coding.c (QCascii_compatible_p): New variable.
11728 (syms_of_coding): Initialize it.
11729 (ONE_MORE_BYTE, ONE_MORE_BYTE_NO_CHECK): Decrement `src' before
11730 calling string_char.
11731 (record_conversion_result): Add `default:' case.
11732 (coding_charset_list): Delete unused variable `coding_type'.
11733 (Fdefine_coding_system_internal): Add `ascii-compatible-p'
11734 property in the plist of the coding system.
11735 (Fcoding_system_put): Check QCascii_compatible_p.
11736
117372008-02-01 Miles Bader <miles@gnu.org>
11738
11739 * xfaces.c (Finternal_lisp_face_equal_p): Restore previously
11740 removed calculation of frame `f', as it's now used.
11741
117422008-02-01 Kenichi Handa <handa@m17n.org>
11743
11744 * Makefile.in (RUN_TEMACS): Include "-nl" if HAVE_SHM is defined.
11745 (emacs${EXEEXT}): Run $(RUN_TEMACS) unconditionally.
11746 (UNIDATA): New variable.
11747 (${lispsource}international/charprop.el): Depends on ${UNIDATA}.
11748 (bootstrap-emacs${EXEEXT}): Depends on charprop.el. Run
11749 $(RUN_TEMACS) unconditionally.
11750
117512008-02-01 Kenichi Handa <handa@m17n.org>
11752
11753 * Makefile.in (temacs${EXEEXT}): Build charprop.el if necessary.
11754 (admindir): New variable.
11755 ($(lispsource)international/charprop.el): New target.
11756
117572008-02-01 Miles Bader <miles@gnu.org>
11758
11759 * character.c (chars-in-region): Remove obsolete function.
11760 (syms_of_character): Remove its initialization.
11761
117622008-02-01 Benjamin Riefenstahl <b.riefenstahl@turtle-trading.net>
11763
11764 * w32select.c (validate_coding_system)
11765 (setup_windows_coding_system): New functions.
11766 (convert_to_handle_as_coded, Fw32_get_clipboard_data): Use
11767 setup_windows_coding_system.
11768 (setup_config, Fw32_get_clipboard_data): Use
11769 validate_coding_system.
11770 (Fx_selection_exists): Move call to setup_config to a place
11771 where signals are allowed.
11772
11773 * lisp.h (Fcoding_system_base, Fcoding_system_eol_type)
11774 (Fcheck_coding_system): Add declarations.
11775
117762008-02-01 Kenichi Handa <handa@m17n.org>
11777
11778 * charset.c (load_charset_map_from_vector): Fix for the first iteration.
11779
117802008-02-01 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
11781
11782 * macfns.c (Fx_create_frame, x_create_tip_frame): Pass Lisp
11783 string as the second argument for x_new_fontset.
11784
117852008-02-01 Kenichi Handa <handa@m17n.org>
11786
11787 * coding.c (decode_coding_object): Use safe_call1 instead of call1.
11788 (encode_coding_object): Use safe_call instead of call2.
11789
117902008-02-01 Kenichi Handa <handa@m17n.org>
11791
11792 * fontset.c (Fset_fontset_font): Check family element of a given vector.
11793
11794 * Makefile.in (lisp): Include charprop.el.
11795
117962008-02-01 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
11797
11798 * macfns.c (Fx_create_frame, x_create_tip_frame): Fix crash.
11799 Not sure if it's unnecessary.
11800
118012008-02-01 Steven Tamm <steventamm@mac.com>
11802
11803 * macfns.c (Fx_create_frame, x_create_tip_frame): ifdef'd out
11804 some possibly unnecessary fontset checking code that crashed
11805 when creating a new frame.
11806
118072008-02-01 Kenichi Handa <handa@m17n.org>
11808
11809 * xfaces.c (merge_faces): Fix argument to lookup_derived_face and
11810 lookup_face.
11811
11812 * xdisp.c (Fformat_mode_line): Fix argument to lookup_named_face.
11813
11814 * fringe.c (draw_fringe_bitmap_1): Fix argument to lookup_named_face.
11815
118162008-02-01 Kenichi Handa <handa@m17n.org>
11817
11818 * coding.c: Cancel the change done in HEAD on 2008-02-01.
11819 (coding_charset_list): New function.
11820
11821 * coding.h (coding_charset_list): Extern it.
11822
118232008-02-01 Kenichi Handa <handa@m17n.org>
11824
11825 * fontset.c (Fset_fontset_font): Call find_font_encoding with
11826 concatenation of family and registry.
11827
118282008-02-01 Kenichi Handa <handa@m17n.org>
11829
11830 * character.h (BYTE8_STRING): Fix typo.
11831
11832 * editfns.c (Ftranslate_region_internal): Don't convert unibyte
11833 string to multibyte (sync to HEAD).
11834
11835 * casefiddle.c (casify_region): Handle changes in byte-length
11836 using replace_range_2 (sync to HEAD).
11837
118382008-02-01 Andreas Schwab <schwab@suse.de>
11839
11840 * chartab.c (map_char_table): GCPRO table and arg.
11841
118422008-02-01 Kenichi Handa <handa@m17n.org>
11843
11844 * syntax.c (skip_syntaxes): Return lispy 0 (not nil) if point is
11845 already at limit.
11846
118472008-02-01 Kenichi Handa <handa@m17n.org>
11848
11849 * fontset.c (fs_load_font): Use fast_string_match_ignore_case
11850 instead of fast_c_string_match_ignore_case.
11851 (find_font_encoding): Change argument to Lisp_Object. Use
11852 fast_string_match_ignore_case instead of
11853 fast_c_string_match_ignore_case. Change caller.
11854
118552008-02-01 Kenichi Handa <handa@m17n.org>
11856
11857 * xdisp.c (get_next_display_element): In unibyte case, decide to
11858 display in octal form by checking a character by
11859 UNIBYTE_CHAR_HAS_MULTIBYTE_P.
11860
11861 * charset.c (Fset_unibyte_charset): Setup unibyte_has_multibyte_table.
11862
11863 * character.c (unibyte_has_multibyte_table): New variable.
11864
11865 * character.h (unibyte_has_multibyte_table): Extern it.
11866 (UNIBYTE_CHAR_HAS_MULTIBYTE_P): New macro.
11867
118682008-02-01 Kenichi Handa <handa@m17n.org>
11869
11870 * coding.c (encode_coding_iso_2022): Fix handling of charset
11871 annotation.
11872
118732008-02-01 Kenichi Handa <handa@m17n.org>
11874
11875 * coding.c (setup_coding_system): If coding_system is nil, use
11876 Qundecided.
11877 (Fterminal_coding_system): Return nil if terminal coding system is
11878 `undecided'.
11879 (syms_of_coding): Define coding-system `undecided' here. Setup
11880 terminal_coding as `undecided'.
11881
118822008-02-01 Kenichi Handa <handa@m17n.org>
11883
11884 * xdisp.c (message_dolog, set_message_1): Call
11885 unibyte_char_to_multibyte with arg type int.
11886
11887 * lread.c (read1): Fix reading of a char-table.
11888
11889 * print.c (print_object): Include sub char-table in circularities
11890 detection.
11891
118922008-02-01 Kenichi Handa <handa@m17n.org>
11893
11894 * keymap.c (where_is_internal_2): Fix for the case that KEY is a cons.
11895 Append the found sequences in car of ARGS instead of prepending.
11896
118972008-02-01 Kenichi Handa <handa@m17n.org>
11898
11899 * fileio.c (report_file_error): Make a unibyte string from
11900 strerror (errorno).
11901 (Fsubstitute_in_file_name): Fix the arg to
11902 unibyte_char_to_multibyte. It is evaluated twice.
11903
119042008-02-01 Kenichi Handa <handa@m17n.org>
11905
11906 * charset.h (CHAR_CHARSET): Shortcut for ASCII case.
11907
119082008-02-01 Kenichi Handa <handa@m17n.org>
11909
11910 * coding.c (detect_coding_utf_16): Don't set detect_info->found if
11911 BOM is not found.
11912 (detect_coding, detect_coding_system): Optimization for ISO-2022
11913 when no 8-bit data is found.
11914
119152008-02-01 Jason Rumney <jasonr@gnu.org>
11916
11917 * w32fns.c (x_to_w32_font): Update to use new coding struct.
11918
119192008-02-01 Kenichi Handa <handa@m17n.org>
11920
11921 * charset.c (Fdeclare_equiv_charset, Fiso_charset): Fix handing of
11922 CHARS.
11923
119242008-02-01 Steven Tamm <steventamm@mac.com>
11925
11926 * macterm.c (mac_encode_char): Add charset argument and update
11927 to use encoding_type.
11928 (x_new_font, x_new_fontset): Merge in changes from xterm.c;
11929 switch to pure fontset.
11930 (decode_mac_font_name): Temporarily remove decoding.
11931 (x_font_name_to_mac_font_name): Temporarily remove encoding.
11932 (x_load_font): Temporarily remove encoding.
11933
119342008-02-01 Kenichi Handa <handa@m17n.org>
11935
11936 * xfaces.c (Fface_font): If frame is not on a window system,
11937 ignore CHARACTER arg. If HAVE_WINDOW_SYSTEM is not defined, don't
11938 refer to face->font.
11939 (split_font_name_into_vector, build_font_name_from_vector)
11940 (lookup_non_ascii_face, realize_non_ascii_face): Define them only
11941 when HAVE_WINDOW_SYSTEM is defined.
11942
119432008-02-01 Kenichi Handa <handa@m17n.org>
11944
11945 * xdisp.c (BUILD_GLYPH_STRINGS): Check if s is NULL.
11946 (x_produce_glyphs): Fix setting of members of cmp in case
11947 cmp->glyph_len is zero.
11948
11949 * fontset.c (Fset_fontset_font): Fix docstring.
11950 (Ffontset_info): Make it backward compatible. New arg ALL.
11951
119522008-02-01 Kim F. Storm <storm@cua.dk>
11953
11954 * process.c (read_process_output): Grow decoding_buf when needed;
11955 this could cause a crash in allocate_string and compact_small_strings.
11956
119572008-02-01 Kenichi Handa <handa@m17n.org>
11958
11959 * fileio.c (WRITE_BUF_SIZE): Delete this macro.
11960
119612008-02-01 Kenichi Handa <handa@m17n.org>
11962
11963 * coding.c (setup_coding_system): Set coding->common_flags
11964 correctly for raw-text.
11965 (consume_chars): On encoding unibyte text by raw-text, don't check
11966 multibyte form.
11967 (encode_coding): On encoding by raw-text, never use translation tables.
11968
11969 * fileio.c (e_write): Short cut for the case of no encoding.
11970
119712008-02-01 Kenichi Handa <handa@m17n.org>
11972
11973 * coding.c (detect_coding, detect_coding_system): Delete unused
11974 variables.
11975
119762008-02-01 Kenichi Handa <handa@m17n.org>
11977
11978 * coding.c (encode_coding_utf_8): Fix handling of raw-byte char.
11979 (consume_chars): Fix handling of 8-bit bytes in unibyte source.
11980
119812008-02-01 Kenichi Handa <handa@m17n.org>
11982
11983 * coding.c (Ffind_coding_systems_region_internal): Include
11984 raw-text and no-conversion in the result.
11985
119862008-02-01 Kenichi Handa <handa@m17n.org>
11987
11988 * fontset.c (find_font_encoding): Return `ascii' for unknown encoding.
11989 (load_font_get_repertory): Delete unnecessary check of ENCODING of
11990 FONT_DEF.
11991 (font_def_arg, add_arg, from_arg, to_arg): New args.
11992 (set_fontset_font): Change argument.
11993 (Fset_fontset_font): Fix for the case that TARGET is a script
11994 name and charset name.
11995 (new_fontset_from_font_name): Fix argument to Fnew_fontset.
11996
119972008-02-01 Kenichi Handa <handa@m17n.org>
11998
11999 * fontset.c (fontset_font): Rename from fontset_face. Change return
12000 value.
12001 (face_suitable_for_char_p, face_for_char): Adjust for the change
12002 of fontset_font.
12003 (make_fontset_for_ascii_face): Fix setting of the fontset element
12004 for ASCII.
12005 (Finternal_char_font): Use fontset_font instead of FACE_FOR_CHAR
12006 to get a font name.
12007 (Ffontset_info): Adjust for the change of fontset_font.
12008
12009 * coding.c (emacs_mule_char): Check invalid code more rigidly.
12010
12011 * character.h (LEADING_CODE_LATIN_1_MIN)
12012 (LEADING_CODE_LATIN_1_MAX): Delete these macros.
12013
120142008-02-01 Kenichi Handa <handa@m17n.org>
12015
12016 * editfns.c (check_translation): New function.
12017 (Ftranslate_region_internal): Handle M:N mapping.
12018
120192008-02-01 Kenichi Handa <handa@m17n.org>
12020
12021 * xfaces.c (xlfd_point_size): Set font->numeric[XLFD_PIXEL_SIZE].
12022
120232008-02-01 Kenichi Handa <handa@m17n.org>
12024
12025 * coding.c (DECODE_DESIGNATION): Set chars_96 to -1 instead of
12026 goto invalid_code.
12027 (decode_coding_iso_2022): Fix handling of invalid designation.
12028
12029 * fileio.c (Finsert_file_contents): Be sure to call unbind_to
12030 after calling code_conversion_save.
12031
120322008-02-01 Kenichi Handa <handa@m17n.org>
12033
12034 * xdisp.c (handle_auto_composed_prop): Fix Lisp_Object/int mixup.
12035
12036 * print.c (print_prune_string_charset): Fix Lisp_Object/int mixup.
12037
12038 * fontset.c: Include "intervals.h".
12039 (fontset_face): Fix comparing of Lisp_Objects.
12040 (free_face_fontset, new_fontset_from_font_name): Fix
12041 Lisp_Object/int mixup.
12042
12043 * editfns.c (Ftranslate_region_internal): Fix Lisp_Object/int mixup.
12044
12045 * coding.c: Add many prototypes for static functions.
12046 (get_translation_table): Allow max_lookup to be NULL.
12047 (decode_coding, Ffind_coding_systems_region_internal)
12048 (Funencodable_char_position, Fcheck_coding_systems_region): Call
12049 get_translation_table with max_lookup NULL.
12050
120512008-02-01 Kenichi Handa <handa@m17n.org>
12052
12053 * coding.c (get_translation_table): Declare it as Lisp_Object.
12054 (LOOKUP_TRANSLATION_TABLE): New macro.
12055 (produce_chars, consume_chars): Use LOOKUP_TRANSLATION_TABLE
12056 instead of CHAR_TABLE_REF.
12057
120582008-02-01 Kenichi Handa <handa@m17n.org>
12059
12060 * coding.c (MAX_ANNOTATION_LENGTH): Adjust for the change of
12061 annotation data format.
12062 (ADD_ANNOTATION_DATA, ADD_COMPOSITION_DATA, ADD_CHARSET_DATA):
12063 Change arguments FROM and TO to single argument NCHARS. Change caller.
12064 (decode_coding_utf_8, decode_coding_utf_16, decode_coding_emacs_mule)
12065 (decode_coding_iso_2022, decode_coding_sjis, decode_coding_big5)
12066 (decode_coding_ccl, decode_coding_charset): Pay attention to
12067 coding->charbuf_used.
12068 (get_translation): New function.
12069 (produce_chars): New arguments translation_table and last_block.
12070 Translate characters here. Return number of carryover chars.
12071 Change caller.
12072 (produce_composition): New argument pos. Change caller.
12073 Adjust for the change of annotation data format.
12074 (produce_charset, produce_annotation): Likewise.
12075 (decode_coding, encode_coding): Don't call translate_chars.
12076 (consume_chars): New arg translation_table. Change caller.
12077 (translate_chars): Delete.
12078 (syms_of_coding): Make translation-table's number of extra slots 2.
12079
120802008-02-01 Kenichi Handa <handa@m17n.org>
12081
12082 * search.c (simple_search): Fix setting this_pos_byte in backward
12083 search.
12084
12085 * coding.c (detect_coding_emacs_mule): Fix counting of encoded
12086 byte sequence.
12087 (detect_coding_ccl): Fix setting of the variable valids.
12088
120892008-02-01 Kenichi Handa <handa@m17n.org>
12090
12091 * xterm.c (x_list_fonts): Fix the detection of an auto-scaled font.
12092
12093 * coding.c (decode_coding_utf_16): Fix handling of surrogate pair.
12094
12095 * editfns.c (Ftranslate_region_internal): Rename from
12096 Ftranslate_region. Accept a char-table in TABLE.
12097 (syms_of_editfns): Defsubr Stranslate_region_internal.
12098
12099 * xfaces.c (set_lface_from_font_name): If a font is specified for
12100 a frame, generate a fontset from the font.
12101 (build_scalable_font_name): If the scalable font is requested for
12102 a specific size, don't change that size.
12103 (try_font_list): Try a scalable font also in the case that a
12104 pattern string is specified.
12105
121062008-02-01 Kenichi Handa <handa@m17n.org>
12107
12108 * xfaces.c (Fface_font): New optional arg CHARACTER.
12109
121102008-02-01 Kenichi Handa <handa@m17n.org>
12111
12112 * charset.h (CHARSET_OFFSET): New macro.
12113
121142008-02-01 Kenichi Handa <handa@m17n.org>
12115
12116 * xterm.c (x_get_font_repertory): Fix for non-Unicode-bmp charset.
12117
12118 * fontset.c (fontset_face): Handle the case that repertory is a
12119 char-table.
12120 (find_font_encoding): Return nil for unknown encoding.
12121 (Fset_fontset_font): Ignore a font of unknown encoding.
12122
121232008-02-01 Kenichi Handa <handa@m17n.org>
12124
12125 * keymap.c (describe_vector): Handle default value of a char table.
12126
12127 * fontset.c (fontset_face): Handle fallback fonts correctly.
12128 (Ffontset_info): Return infomation about fallback fonts.
12129
121302008-02-01 Kenichi Handa <handa@m17n.org>
12131
12132 * fontset.c (FONTSET_DEFAULT): New macro.
12133 (FONTSET_ADD, fontset_add): Handle the case that range is nil.
12134 (Fset_fontset_font): Change the 2nd arg name to TARGET, and handle
12135 the case that it is nil.
12136 (dump_fontset): Call FONTSET_DEFAULT, not FONTSET_FALLBACK.
12137 (syms_of_fontset): Set char-table-extra-slots property of fontset to 9.
12138
12139 * charset.h (CHAR_CHARSET_P): Fix for the case that the method is
12140 subset or superset.
12141
121422008-02-01 Kenichi Handa <handa@m17n.org>
12143
12144 * emacs.c (main): Call init_charset after syms_of_XXX.
12145
12146 * charset.c (Vcharset_map_directory): Delete.
12147 (Vcharset_map_path): New variable.
12148 (load_charset_map_from_file): Use Vcharset_map_path instead.
12149 (init_charset): Initialize Vcharset_map_path.
12150 (syms_of_charset): Delete declaration of "charset-map-directory",
12151 add declaration of "charset-map-path".
12152
121532008-02-01 Kenichi Handa <handa@m17n.org>
12154
12155 * fns.c (string_char_to_byte, string_byte_to_char): Optimize for
12156 ASCII only string.
12157
12158 * fileio.c (Finsert_file_contents): Avoid detecting a code twice.
12159
12160 * coding.c (detect_coding_iso_2022): Fix handling of SS2 and SS3.
12161 (detect_coding, detect_coding_system): Treat '\0' as normal ASCII byte.
12162
121632008-02-01 Kenichi Handa <handa@m17n.org>
12164
12165 * coding.h (SJIS_TO_JIS2, JIS_TO_SJIS2): New macros.
12166
12167 * coding.c (QCmnemonic, QCdefalut_char)
12168 (QCdecode_translation_table, QCencode_translation_table)
12169 (QCpost_read_conversion, QCpre_write_conversion): New variables.
12170 (get_translation_table): Return a list of translation tables if
12171 necessary.
12172 (decode_coding): Call get_translation_table with ENCODEP 0.
12173 (char_encodable_p): If translation_table is non-nil, always call
12174 translate_char.
12175 (Fdefine_coding_system_internal): Accept list of translation
12176 tables as :encode-translation-table and :decode-translation-table.
12177 (Fcoding_system_put): New function.
12178 (syms_of_coding): Declare new symbols. Defsubr
12179 Scoding_system_put.
12180 (decode_coding_sjis, encode_coding_sjis): Handle 4th charset,
12181 typically JISX0212.
12182
12183 * charset.c (map_charset_chars): Fix arg to map_charset_chars in
12184 when the charset is superset type.
12185
12186 * character.c (translate_char): Accept list of translation tables.
12187
121882008-02-01 Kenichi Handa <handa@m17n.org>
12189
12190 * coding.h (enum coding_attr_index): New member coding_attr_trans_tbl.
12191 (CODING_ATTR_TRANS_TBL): New macro.
12192
12193 * coding.c (get_translation_table): New function.
12194 (translate_chars): Fix the bug of skipping annotation data.
12195 (decode_coding, encode_coding): Utilize get_translation_table.
12196 (char_encodable_p, Funencodable_char_position): Translate char if
12197 necessary.
12198 (Ffind_coding_systems_region_internal)
12199 (Fcheck_coding_systems_region): Setup translation table for encode
12200 in a coding system attribute vector in advance.
12201 (Fdefine_coding_system_internal): Allow a symbol as translation
12202 table. For shift-jis type coding system, allow 4th charset.
12203
122042008-02-01 Kenichi Handa <handa@m17n.org>
12205
12206 * coding.c (decode_coding_sjis): Check the first byte rigidly.
12207
12208 * xdisp.c (get_next_display_element): Pass -1 as POS to
12209 FACE_FOR_CHAR if displaying a C-string.
12210
122112008-02-01 Kenichi Handa <handa@m17n.org>
12212
12213 * composite.c (get_composition_id): Handle xoff and yoff in a
12214 composition rule.
12215
12216 * composite.h (COMPOSITION_DECODE_RULE): New arg xoff and yoff.
12217 (struct composition): New member lbearing and rbearing.
12218
12219 * xdisp.c (move_it_to): Optimize for the case (op & MOVE_TO_Y).
12220 (x_get_glyph_overhangs): Handle a composition glyph.
12221 (x_produce_glyphs): Setup lbearing and rbreaing for a composition glyph.
12222
12223 * xterm.c (x_compute_glyph_string_overhangs): Handle also a
12224 composition glyph.
12225
122262008-02-01 Kenichi Handa <handa@m17n.org>
12227
12228 * print.c: Include charset.h.
12229 (Vprint_charset_text_property): New variable.
12230 (Qdefault): Extern it.
12231 (PRINT_STRING_NON_CHARSET_FOUND)
12232 (PRINT_STRING_UNSAFE_CHARSET_FOUND): New macros.
12233 (print_check_string_result): New variable.
12234 (print_check_string_charset_prop): New function.
12235 (print_prune_charset_plist): New variable.
12236 (print_prune_string_charset): New function.
12237 (print_object): Call print_prune_string_charset if
12238 Vprint_charset_text_property is not t.
12239 (print_interval): Print nothing if interval->plist is nil.
12240 (syms_of_print): Declare Vprint_charset_text_property as a lisp
12241 variable. Init and staticpro print_prune_charset_plist.
12242
122432008-02-01 Kenichi Handa <handa@m17n.org>
12244
12245 * fontset.c (new_fontset_from_font_name): Use the specified font
12246 for all characters in the new fontset.
12247
12248 * macterm.c (x_set_mouse_face_gc): Call FACE_FOR_CHAR with POS and
12249 OBJECT args.
12250
12251 * xdisp.c (x_produce_glyphs): Call FACE_FOR_CHAR with POS and
12252 OBJECT args for composition too.
12253
12254 * w32term.c (x_set_mouse_face_gc): Call FACE_FOR_CHAR with POS and
12255 OBJECT args.
12256
122572008-02-01 Kenichi Handa <handa@m17n.org>
12258
12259 * dispextern.h (FACE_FOR_CHAR): New args POS and OBJECT.
12260
12261 * fontset.c (reorder_font_vector): Adjust for the change of
12262 FONT_DEF format.
12263 (fontset_face): New arg id. Change caller.
12264 (face_for_char): New args pos and object.
12265 (make_fontset_for_ascii_face): Adjust for the change of FONT_DEF format.
12266 (fs_query_fontset): Check NAME by Fassoc too.
12267 (Fset_fontset_font): Allow non-XLFD font name.
12268 (Ffontset_info): Adjust for the change of FONT_DEF format.
12269
12270 * fontset.h (face_for_char): Adjust prototype.
12271
12272 * xdisp.c (face_before_or_after_it_pos, get_next_display_element)
12273 (append_space, extend_face_to_end_of_line)
12274 (get_char_face_and_encoding, BUILD_COMPOSITE_GLYPH_STRING)
12275 (x_produce_glyphs): Call FACE_FOR_CHAR with POS and OBJECT args.
12276
12277 * xfaces.c (compute_char_face): Call FACE_FOR_CHAR with
12278 POS and OBJECT args.
12279
12280 * xterm.c (x_set_mouse_face_gc): Call FACE_FOR_CHAR with
12281 POS and OBJECT args.
12282
122832008-02-01 Jason Rumney <jasonr@gnu.org>
12284
12285 * w32select.c (Fw32_set_clipboard_data): Avoid potential realloc
12286 of GlobalAlloc'ed memory.
12287
122882008-02-01 Kenichi Handa <handa@m17n.org>
12289
12290 * ccl.c (Fccl_execute_on_string): Fix the condition of loop.
12291
12292 * charset.h (charset_table_used): Delete extern.
12293
12294 * charset.c (charset_table_used): Make it static.
12295 (map_charset_chars): Fix args to c_function with.
12296
12297 * chartab.c (map_sub_char_table_for_charset): Fix args to
12298 c_function with.
12299
12300 * coding.h (enum coding_result_code): Delete
12301 CODING_RESULT_INSUFFICIENT_CMP, add CODING_RESULT_INVALID_SRC.
12302
12303 * coding.c (Qinsufficient_source, Qinconsistent_eol)
12304 (Qinvalid_source, Qinterrupted, Qinsufficient_memory): New variables.
12305 (Vlast_code_conversion_error): New variables.
12306 (syms_of_coding): DEFSYM or DEFVAR_LISP them.
12307 (ONE_MORE_BYTE): Record error if any instead of signaling an
12308 error. If non-ASCII multibyte char is found, return the negative
12309 value of the code. All callers changed to check it.
12310 (ONE_MORE_BYTE_NO_CHECK): Likewise.
12311 (record_conversion_result): New function. Change all codes setting
12312 coding->result to call this function.
12313 (detect_coding_utf_8, decode_coding_utf_8)
12314 (detect_coding_emacs_mule, detect_coding_sji, detect_coding_big5):
12315 Don't use the local variable incomplete.
12316 (emacs_mule_char): Change the second arg to `const'.
12317 (decode_coding): Fix of flushing out unprocessed data.
12318 (make_conversion_work_buffer): Fix making of a work buffer.
12319 (decode_coding_object): Return coding->dst_object.
12320
12321 * fontset.c (set_fontset_font): Fix args.
12322
12323 * lisp.h (CHARACTERBITS): Define as 22.
12324
12325 * process.c (send_process): Be sure to set coding->src_multibyte.
12326
12327 * xdisp.c (handle_auto_composed_prop): Fix setting of limit.
12328
123292008-02-01 Kenichi Handa <handa@m17n.org>
12330
12331 * xdisp.c (handle_auto_composed_prop): Give limit to
12332 Fnext_single_char_property_change.
12333
123342008-02-01 Kenichi Handa <handa@m17n.org>
12335
12336 * composite.c (syms_of_composite): Don't make the composition hash
12337 table weak.
12338
12339 * fontset.c (Fset_fontset_font): Fix docstring.
12340
12341 * lisp.h (detect_coding_system): Adjust prototype.
12342
12343 * fileio.c (kill_workbuf_unwind): Delete this function.
12344 (Finsert_file_contents): Adjust the call of detect_coding_system.
12345 Get conversion_buffer by code_conversion_save. Use the macro
12346 CODING_MAY_REQUIRE_DECODING. After decoding, update
12347 coding_system.
12348
12349 * coding.h (make_conversion_work_buffer): Delete extern.
12350 (code_conversion_save): Extern it.
12351
12352 * coding.c (enum iso_code_class_type): Delete ISO_carriage_return.
12353 (CODING_GET_INFO): Delete argument eol_type. Change callers.
12354 (decode_coding_utf_8): Don't do eol converion.
12355 (detect_coding_utf_16): Check coding->src_chars, not
12356 coding->src_bytes. Add heuristics for those that have no signature.
12357 (decode_coding_emacs_mule, decode_coding_iso_2022)
12358 (decode_coding_sjis, decode_coding_big5, decode_coding_charset):
12359 Don't do eol converion.
12360 (adjust_coding_eol_type): Return a new coding system.
12361 (detect_coding): Don't detect eol. Fix for utf-16 detection.
12362 (decode_eol): In case of CRLF->LF conversion, use del_range_2 on
12363 each change.
12364 (decode_coding): Pay attention to undo_list. Do eol conversion for
12365 all types of coding-systems (if necessary).
12366 (Vcode_conversion_work_buf_list): Delete it.
12367 (Vcode_conversion_reused_workbuf): Rename from
12368 Vcode_conversion_reused_work_buf.
12369 (Vcode_conversion_workbuf_name): New variable.
12370 (reused_workbuf_in_use): New variable.
12371 (make_conversion_work_buffer): Delete the arg DEPTH.
12372 (code_conversion_restore): Change argument to cons.
12373 (code_conversion_save): Delete the argument BUFFER. Change callers.
12374 (detect_coding_system): New argument src_chars. Change callers.
12375 Fix for utf-16 detection.
12376 (init_coding_once): Don't use ISO_carriage_return.
12377 (syms_of_coding): Initialize Vcode_conversion_workbuf_name and
12378 reused_workbuf_in_use.
12379
123802008-02-01 Kenichi Handa <handa@m17n.org>
12381
12382 * keymap.c (store_in_keymap): Pay attention to the case that idx
12383 is a cons specifying a character range.
12384
123852008-02-01 Kenichi Handa <handa@m17n.org>
12386
12387 * xdisp.c (handle_auto_composed_prop): Fix the case of returning
12388 HANDLED_RECOMPUTE_PROPS.
12389
12390 * coding.c (Fdefine_coding_system_internal): Fix checking of
12391 ascii compatibility.
12392
123932008-02-01 Kenichi Handa <handa@m17n.org>
12394
12395 * charset.c (find_charsets_in_text): Delete unused locale variable.
12396 (Fset_charset_priority): Update Vemacs_mule_charset_list too.
12397
12398 * coding.c (encode_coding_emacs_mule): Emit bytes with MSB.
12399 Resync charset_list to Vemacs_mule_charset_list.
12400
12401 * keymap.c (store_in_keymap): Pay attention to the case that idx
12402 is a cons specifying a character range.
12403
124042008-02-01 Kenichi Handa <handa@m17n.org>
12405
12406 * composite.c (update_compositions): Bind inhibit-read-only, etc
12407 to t before calling remove-list-of-text-properties.
12408
12409 * print.c (print_object): Always print ASCII chars as is.
12410
124112008-02-01 Kenichi Handa <handa@m17n.org>
12412
12413 * keymap.c (Fdefine_key): Fix handling of Lucid style event type list.
12414
12415 * fns.c (Fmapconcat, Fmapcar, Fmapc): Signal an error if SEQUENCE
12416 is a char table.
12417
124182008-02-01 Kenichi Handa <handa@m17n.org>
12419
12420 * syntax.c (skip_chars): Be sure to alloca char_ranges when necessary.
12421
124222008-02-01 Kenichi Handa <handa@m17n.org>
12423
12424 * xfaces.c (set_lface_from_font_name): Fix for the case that
12425 FONTNAME is not fontset name.
12426
124272008-02-01 Kenichi Handa <handa@m17n.org>
12428
12429 * fns.c (base64_encode_1): Fix previous change.
12430
124312008-02-01 Kenichi Handa <handa@m17n.org>
12432
12433 * fontset.c (set_fontset_font): New function.
12434 (Fset_fontset_font): If a font is specified for a charset, use
12435 map_charset_chars to store the font spec in a fontset.
12436
124372008-02-01 Kenichi Handa <handa@m17n.org>
12438
12439 * fontset.c (fontset_face): Create a fallback fontset on demand.
12440 (make_fontset): Don't create a fallback fontset here.
12441 (free_face_fontset): Free a fallback fontset (if any) too.
12442 (n_auto_fontsets): Delete this variable.
12443 (auto_fontset_alist): New variable.
12444 (new_fontset_from_font_name): Check auto_fontset_alist.
12445 (dump_fontset) [FONTSET_DEBUG]: Fully re-written.
12446 (Ffontset_list_all) [FONTSET_DEBUG]: New function.
12447 (syms_of_fontset): Initialize and staticpro auto_fontset_alist.
12448 Defsubr Sfontset_list_all.
12449
124502008-02-01 Kenichi Handa <handa@m17n.org>
12451
12452 * xterm.c (x_list_fonts): Fix excluding of auto-scaled fonts.
12453
124542008-02-01 Kenichi Handa <handa@m17n.org>
12455
12456 * fontset.c (Fnew_fontset): Check NAME more rigidly.
12457
124582008-02-01 Kenichi Handa <handa@m17n.org>
12459
12460 * editfns.c (Fgoto_char): Fix docstring.
12461
124622008-02-01 Kenichi Handa <handa@m17n.org>
12463
12464 * insdel.c (insert_from_gap): Adjust intervals correctly.
12465
124662008-02-01 Jason Rumney <jasonr@gnu.org>
12467
12468 * w32term.c (GLYPHSET, WCRANGE): Define if system headers don't.
12469 (pfnGetFontUnicodeRanges): New dynamically loaded function.
12470 (w32_initialize): Try to load it.
12471 (x_get_font_repertory): Use it if available.
12472 (w32_encode_char): Add shortcut for unicode output.
12473
12474 * w32fns.c (w32_load_system_font): Default charset to -1.
12475 (x_to_w32_charset): Match all fonts for unicode.
12476 (w32_to_x_charset): New parameter matching. Don't return partial
12477 or wildcard charsets.
12478 (w32_to_all_x_charsets): Don't return partial or wildcard charsets.
12479 (w32_codepage_for_font): Return CP_UNICODE for unicode.
12480 (w32_to_x_font): Match charset to real charset.
12481 (enum_font_cb2): Always list unicode versions.
12482
12483 * makefile.w32-in (temacs): Increase EMHEAP.
12484
124852008-02-01 Jason Rumney <jasonr@gnu.org>
12486
12487 * w32term.c (w32_encode_char): New charset parameter.
12488 font_info.encoding becomes encoding_type.
12489 (x_get_font_repertory): New function. Warning: stub only!
12490 (x_new_font): Return quickly if font already set.
12491 (x_new_fontset): fontsetname parameter is Lisp_Object.
12492 Use new fs_query_fontset. Try new_fontset_from_font_name.
12493 Use fontset_name for return value.
12494
12495 * w32term.h: Declare x_get_font_repertory.
12496
12497 * w32select.c (Fw32_set_clipboard_data): Use string_x_string_p in
12498 place of find_charset_in_text. Use encode_coding_object in place
12499 of encode_coding.
12500 (Fw32_get_clipboard_data): Use decode_coding_c_string in place of
12501 decode_coding.
12502
12503 * w32fns.c (Fx_create_frame, x_create_tip_frame): Use new version
12504 of x_new_fontset.
12505 (w32_load_system_font): Initialize charset as unicode.
12506 font_info.encoding becomes encoding_type.
12507 (w32_to_x_font): Use decode_coding_c_string in place of decode_coding.
12508 (x_to_w32_font): Use encode_coding_object in place of encode_coding.
12509 (syms_of_w32fns): Set get_font_repertory_func.
12510
12511 * w32console.c: Include character.h. Use terminal_encode_buffer
12512 from term.c.
12513 (write_glyphs): Use new version of encode_terminal_code. Use
12514 encode_coding_object in place of encode_coding.
12515
12516 * w32bdf.c (w32_load_bdf_font): Clear font_info before filling.
12517 encoding becomes encoding_type.
12518
12519 * term.c (terminal_encode_buffer): Make externally visible.
12520
12521 * makefile.w32-in: Add character.h dependancies.
12522 (character.o, chartab.o): New targets.
12523
125242008-02-01 Kenichi Handa <handa@m17n.org>
12525
12526 * fileio.c (Finsert_file_contents) [DOS_NT]: Use the macro
12527 CODING_ID_EOL_TYPE.
12528
125292008-02-01 Andreas Schwab <schwab@suse.de>
12530
12531 * coding.c (produce_chars): Revert last change.
12532
125332008-02-01 Kenichi Handa <handa@m17n.org>
12534
12535 * charset.h (charset_unicode): Extern it.
12536
12537 * charset.c (string_xstring_p): Check by (C >= 0x100).
12538 (find_charsets_in_text): Change format of the arc CHARSETS. New
12539 arg MULTIBYTE.
12540 (Ffind_charset_region, Ffind_charset_string): Adjust for the
12541 change of find_charsets_in_text.
12542 (Fsplit_char): Fix doc. Never return unknown.
12543
12544 * chartab.c (char_table_translate): Use CHARACTERP, not INTEGERP.
12545
12546 * coding.c (Fdefine_coding_system_alias): Update
12547 Vcoding_system_list.
12548
12549 * fontset.c (load_font_get_repertory): Pay attention to the case
12550 that ENCODING of a font is specified by a char-table.
12551
12552 * xterm.c (x_get_font_repertory): Handle the case that the
12553 encoding of font is other than Unicode.
12554
125552008-02-01 Kenichi Handa <handa@m17n.org>
12556
12557 * term.c (encode_terminal_code): Don't handle glyph-table. Check
12558 if a character is encodable by the terminal coding system. If
12559 not, produces proper number of `?'s. Update
12560 terminal_encode_buffer and terminal_encode_buf_size if necessary.
12561 (produce_glyphs): Check by CHAR_BYTE8_P, not SINGLE_BYTE_CHAR_P.
12562
125632008-02-01 Kenichi Handa <handa@m17n.org>
12564
12565 * term.c (terminal_encode_buffer, terminal_encode_buf_size): New
12566 variables.
12567 (encode_terminal_code): Change argument. Encode multiple
12568 characters at once. Store the result of encoding in
12569 terminal_encode_buffer.
12570 (write_glyphs, insert_glyphs): Adjust for the change of
12571 encode_terminal_code.
12572 (term_init): Initialize terminal_encode_buffer and
12573 terminal_encode_buf_size.
12574
12575 * coding.c (consume_chars): If coding->src_object is nil, don't
12576 check annotation.
12577
125782008-02-01 Kenichi Handa <handa@m17n.org>
12579
12580 * character.c (char_string): Use ASCII_CHAR_P instead of
12581 SINGLE_BYTE_CHAR_P.
12582
125832008-02-01 Kenichi Handa <handa@m17n.org>
12584
12585 * xdisp.c (handle_auto_composed_prop): Check if the last
12586 characters of auto-composed region is newly composed with the
12587 following characters.
12588 (handle_composition_prop): Fix checking of point being inside
12589 composition.
12590
125912008-02-01 Kenichi Handa <handa@m17n.org>
12592
12593 * fns.c (concat): Don't change multibyteness of the result by
12594 concatenating an 8-bit character.
12595
12596 * data.c (Faset): Check newelt by CHECK_CHARACTER. Don't change
12597 multibyteness of the result when newelt is an 8-bit character.
12598
125992008-02-01 Dave Love <fx@gnu.org>
12600
12601 * xmenu.c (find_and_call_menu_selection): Make menu_bar_items_used
12602 EMACS_INT.
12603
12604 * xfns.c (DefaultDepthOfScreen, x_encode_text): Remove unused vars.
12605
12606 * xfaces.c (face_numeric_value): Declare dim size_t.
12607 (Finternal_lisp_face_equal_p): Remove unused f.
12608
12609 * xdisp.c (BUILD_CHAR_GLYPH_STRINGS, display_and_set_cursor)
12610 (MATRIX_ROW): Remove unused vars.
12611 (draw_glyphs, x_insert_glyphs, fast_find_position)
12612 (fast_find_position, fast_find_string_pos): Use EMACS_INT for
12613 byte/char counts.
12614
12615 * regex.c (regex_compile): Remove unused var.
12616
12617 * minibuf.c (Fminibuffer_complete_word): Remove unused var.
12618
12619 * keymap.c (Fset_keymap_parent, map_keymap, Fcopy_keymap)
12620 (Faccessible_keymaps, where_is_internal): Remove unused vars.
12621
12622 * keyboard.c (cancel_hourglass_unwind): Return Qnil.
12623
12624 * frame.c (frame_name_fnn_p): Make len EMACS_INT.
12625
12626 * fileio.c (Fwrite_region): Remove unused var.
12627
12628 * dispnew.c (adjust_frame_glyphs_for_frame_redisplay)
12629 (adjust_frame_glyphs_for_window_redisplay): Remove unused ch_dim.
12630
12631 * composite.c (Fremove_list_of_text_properties): Declare.
12632
12633 * coding.c (inhibit_pre_post_conversion): Remove (unused).
12634 (alloc_destination, produce_chars): Use EMACS_INT for byte/char counts.
12635 (coding_inherit_eol_type): Remove unused attrs.
12636 (detect_coding): Cast arg of detect_eol.
12637
12638 * charset.c (syms_of_charset): Remove unused var p.
12639 (find_charsets_in_text, Ffind_charset_region): Use EMACS_INT for
12640 byte/char counts.
12641
12642 * casetab.c (set_case_table): Remove unused var.
12643
12644 * window.c (Fdisplay_buffer, Fframe_selected_window): Remove
12645 unused vars.
12646
126472008-02-01 Dave Love <fx@gnu.org>
12648
12649 * xterm.c (x_bitmap_mask): Declare.
12650
126512008-02-01 Dave Love <fx@gnu.org>
12652
12653 * xterm.c (x_term_init): Fix type error.
12654
12655 * lisp.h: Add Funibyte_char_to_multibyte.
12656
12657 * coding.c (Fread_coding_system): Fix arg of XSETSTRING.
12658 (Fset_coding_system_priority): Doc fix.
12659
12660 * ccl.c (ccl_driver): Fix arg of CHARACTERP.
12661
12662 * indent.c (check_composition): Make start and end EMACS_INT.
12663
12664 * character.c (lisp_string_width): Make ignore and end EMACS_INT.
12665
12666 * xdisp.c (handle_composition_prop, check_point_in_composition):
12667 Make buffer positions EMACS_INT.
12668
12669 * composite.c (find_composition, run_composition_function)
12670 (update_compositions, Ffind_composition_internal): Make buffer
12671 positions EMACS_INT.
12672
12673 * composite.h (find_composition, update_compositions): Make
12674 position args EMACS_INT.
12675
12676 * keyboard.c (adjust_point_for_property): Make beg and end EMACS_INT.
12677
12678 * intervals.c (get_property_and_range):
12679 * intervals.h (get_property_and_range): Make start and end EMACS_INT.
12680
12681 * unexalpha.c: Don't include varargs.h.
12682
126832008-02-01 Dave Love <fx@gnu.org>
12684
12685 * coding.h (ENCODE_UTF_8): New.
12686
12687 * Makefile.in (gtkutil.o): Depend on coding.h.
12688
12689 * coding.c (Fset_coding_system_priority): Doc fix.
12690
126912008-02-01 Kenichi Handa <handa@m17n.org>
12692
12693 * fileio.c (Finsert_file_contents): Call setup_coding_system in
12694 the case of auto saving.
12695
126962008-02-01 Andreas Schwab <schwab@suse.de>
12697
12698 * chartab.c (map_char_table, map_char_table_for_charset): Protect
12699 `range' from GC.
12700
127012008-02-01 Kenichi Handa <handa@m17n.org>
12702
12703 * coding.c (decode_coding_sjis): Check bytes more rigidly.
12704
127052008-02-01 Kenichi Handa <handa@m17n.org>
12706
12707 * fileio.c (choose_write_coding_system): Return a decided coding system.
12708 (Fwrite_region): Set Vlast_coding_system_used to the return value
12709 of choose_write_coding_system.
12710
127112008-02-01 Kenichi Handa <handa@m17n.org>
12712
12713 * charset.c (Fset_charset_priority): Pay attention to duplicated
12714 arguments.
12715
12716 * coding.c (QCcategory): New variable.
12717 (syms_of_coding): Defsym it. Set all elements of
12718 Vcoding_category_table and their symbol values.
12719 (Fset_coding_system_priority): Doc fix. Update symbol qvalues of
12720 coding-category-XXX, and coding-category-list.
12721 (Fdefine_coding_system_internal): Add category in the plist.
12722
127232008-02-01 Kenichi Handa <handa@m17n.org>
12724
12725 * callproc.c (Fcall_process): Handle carryover correctly.
12726
12727 * coding.c (decode_coding_iso_2022): Fix handling of invalid bytes.
12728 (raw_text_coding_system): Check NILP (coding_system).
12729 (coding_inherit_eol_type): Check NILP (coding_system) and
12730 NILP (parent).
12731 (consume_chars): Fix for the case of raw-text.
12732
12733 * process.c (read_process_output): Handle carryover correctly.
12734
127352008-02-01 Dave Love <fx@gnu.org>
12736
12737 * regex.c (re_search_2): Fix last change.
12738
127392008-02-01 Kenichi Handa <handa@m17n.org>
12740
12741 * regex.c (GET_CHAR_BEFORE_2): Check multibyte, not
12742 target_multibyte. Even in a unibyte case, return a converted
12743 multibyte char.
12744 (GET_CHAR_AFTER): New macro.
12745 (PATFETCH): Translate via multibyte char.
12746 (HANDLE_UNIBYTE_RANGE): Delete this macro.
12747 (SETUP_MULTIBYTE_RANGE): New macro.
12748 (regex_compile): Setup compiled code so that its multibyteness
12749 matches that of a target. Fix the handling of "[X-YZ]" using
12750 SETUP_MULTIBYTE_RANGE.
12751 (analyse_first) <charset>: For filling fastmap for all multibyte
12752 characters, don't check by BASE_LEADING_CODE_P.
12753 (re_search_2): Don't check RE_TARGET_MULTIBYTE_P (bufp). It is
12754 the same as RE_MULTIBYTE_P (bufp) now.
12755 (mutually_exclusive_p): Check by (! multibyte || IS_REAL_ASCII (c)).
12756 (TARGET_CHAR_AND_LENGTH): Delete this macro.
12757 (TRANSLATE_VIA_MULTIBYTE): New macro.
12758 (re_match_2_internal): Don't check RE_TARGET_MULTIBYTE_P (bufp).
12759 It is the same as RE_MULTIBYTE_P (bufp) now.
12760 <exactn>: Translate via multibyte.
12761 <anychar>: Fetch a character by RE_STRING_CHAR_AND_LENGTH. Don't
12762 translate it.
12763 <charset, charset_not>: Fetch a character by
12764 RE_STRING_CHAR_AND_LENGTH. Translate via multibyte.
12765 <duplicate>: Call bcmp_translate with the last arg `multibyte'.
12766 <wordbound, notwordbound, wordbeg, wordend, syntaxspec,
12767 notsyntaxspec, categoryspec, notcategoryspec> Fetch a character
12768 by GET_CHAR_AFTER.
12769 (bcmp_translate): Likewise.
12770
12771 * search.c (compile_pattern): Check the member target_multibyte,
12772 not the member multibyte of buf.
12773
12774 * lread.c (read1): While reading a string, set force_singlebyte
12775 and force_multibyte correctly.
12776
12777 * charset.c (Fset_unibyte_charset, init_charset_once): Fix setting
12778 up of unibyte_to_multibyte_table.
12779
127802008-02-01 Kenichi Handa <handa@m17n.org>
12781
12782 * coding.c (setup_coding_system): If coding has
12783 post-read-conversion or pre-write-conversion, set
12784 CODING_REQUIRE_DECODING_MASK and CODING_REQUIRE_ENCODING_MASK
12785 respectively.
12786 (decode_coding_gap): Run post-read-conversion if any.
12787
12788 * fileio.c (Finsert_file_contents): Even if we read into a
12789 unibyte buffer, check if we must decode the result or not.
12790
127912008-02-01 Kenichi Handa <handa@m17n.org>
12792
12793 * coding.c (make_conversion_work_buffer): Change the work buffer
12794 name to the same one as that of Emacs 21.
12795
127962008-02-01 Kenichi Handa <handa@m17n.org>
12797
12798 * coding.h (make_conversion_work_buffer): Adjust prototype.
12799 (code_conversion_restore): Don't extern it.
12800
12801 * coding.c (detected_mask): Delete unused variable.
12802 (decode_coding_iso_2022): Pay attention to the byte sequence of
12803 CTEXT extended segment, and retain those bytes as is.
12804 (decode_coding_ccl): Delete unused variable `valids'.
12805 (setup_coding_system): Delete unused variable `category'.
12806 (consume_chars): Delete unused variable `category'. Make it work
12807 for non-multibyte case.
12808 (make_conversion_work_buffer): Change argument.
12809 (saved_coding): Delete unused variable.
12810 (code_conversion_restore): Don't check saved_coding->destination.
12811 (code_conversion_save): New function.
12812 (decode_coding_gap, encode_coding_gap): Call code_conversion_save
12813 instead of record_unwind_protect.
12814 (decode_coding_object, encode_coding_object): Likewise. Recover PT.
12815 (detect_coding_system): Delete unused variable `mask'.
12816 (Fdefine_coding_system_internal): Delete unused variable id.
12817
12818 * fileio.c (kill_workbuf_unwind): New function.
12819 (Finsert_file_contents): On replacing, call
12820 make_conversion_work_buffer with correct args, and call
12821 record_unwind_protect with the first arg kill_workbuf_unwind.
12822
12823 * lisp.h (Fgenerate_new_buffer_name): EXFUN it.
12824
128252008-02-01 Kenichi Handa <handa@m17n.org>
12826
12827 * fontset.c (BASE_FONTSET_P): Check FONTSET_BASE, not FONTSET_NAME.
12828 (fontset_add): Fix for the case that TO is less than TO1.
12829 (Ffontset_info): Don't use fallback fontset on checking the
12830 default fontset.
12831 (dump_fontset): New function for debugging.
12832
12833 * coding.c (Fdefine_coding_system_internal): Fix for the case that
12834 coding_type is Qcharset.
12835
128362008-02-01 Kenichi Handa <handa@m17n.org>
12837
12838 * chartab.c (map_sub_char_table): New argument DEFAULT_VAL.
12839 (map_char_table): Don't inherit the value from the parent on
12840 initializing VAL. Adjust for the above change.
12841
128422008-02-01 Kenichi Handa <handa@m17n.org>
12843
12844 * coding.c (Qsignature, Qendian): Delete these variables.
12845 (syms_of_coding): Don't initialize them.
12846 (CATEGORY_MASK_UTF_16_AUTO): New macro.
12847 (detect_coding_utf_16): Add CATEGORY_MASK_UTF_16_AUTO in
12848 detect_info->found.
12849 (decode_coding_utf_16): Don't detect BOM here.
12850 (encode_coding_utf_16): Produce BOM if CODING_UTF_16_BOM (coding)
12851 is NOT utf_16_without_bom.
12852 (setup_coding_system): For a coding system of type utf-16, check
12853 if the attribute :endian is Qbig or not (not nil or not), and set
12854 CODING_REQUIRE_DETECTION_MASK if BOM detection is required.
12855 (detect_coding): If coding type is utf-16 and BOM detection is
12856 required, detect it.
12857 (Fdefine_coding_system_internal): For a coding system of type
12858 utf-16, check if the attribute :endian is Qbig or not (not nil or not).
12859
128602008-02-01 Kenichi Handa <handa@m17n.org>
12861
12862 * coding.c (coding_set_source): Fix for the case that the current
12863 buffer is different from coding->src_object.
12864 (decode_coding_object): Don't use the conversion work buffer if
12865 DST_OBJECT is a buffer.
12866
128672008-02-01 Dave Love <fx@gnu.org>
12868
12869 * lread.c (read_emacs_mule_char) [len==2]: Index
12870 emacs_mule_charset correctly.
12871
128722008-02-01 Dave Love <fx@gnu.org>
12873
12874 * coding.c (Qbig5, Vbig5_coding_system, CATEGORY_MASK_BIG5)
12875 (detect_coding_big5, decode_coding_big5, encode_coding_big5)
12876 (Fdecode_big5_char, Fencode_big5_char): Delete. (Big5 no longer
12877 treated specially.)
12878 (setup_coding_system, coding_category, CATEGORY_MASK_ANY)
12879 (detected_mask): Remove Big5 bits.
12880
128812008-02-01 Kenichi Handa <handa@m17n.org>
12882
12883 The following changes are to make the font rescaling facility
12884 compatible with Emacs 21.
12885
12886 * xfaces.c (Vface_font_rescale_alist): Rename from
12887 Vface_resizing_fonts.
12888 (struct font_name): Rename member resizing_ratio to rescale_ratio.
12889 (font_rescale_ratio): Rename from font_resizing_ratio.
12890 (split_font_name): Set font->rescale_ratio.
12891 (better_font_p): Pay attention to font->rescale_ratio.
12892 (build_scalable_font_name): Likewise. Change RESX, and RESY
12893 fields.
12894 (syms_of_xfaces): Declare Vface_font_rescale_alist as a Lisp variable.
12895
128962008-02-01 Kenichi Handa <handa@m17n.org>
12897
12898 * coding.c (Qutf_16_be_nosig, Qutf_16_be, Qutf_16_le_nosig)
12899 (Qutf_16_le): Remove these variables.
12900 (syms_of_coding): Don't DEFSYM them.
12901 (decode_coding_utf_16): Fix handling of BOM.
12902 (encode_coding_utf_16): Fix handling of BOM.
12903
129042008-02-01 Kenichi Handa <handa@m17n.org>
12905
12906 * fileio.c (Finsert_file_contents): On replacing, before decoding
12907 the file into the work buffer, set point of the work buffer to the end.
12908
129092008-02-01 Dave Love <fx@gnu.org>
12910
12911 * coding.c (Fcheck_coding_systems_region): Fix type errors.
12912
129132008-02-01 Dave Love <fx@gnu.org>
12914
12915 * xterm.c (XTread_socket): Check Lisp types for Vx_keysym_table
12916 and fix C types.
12917
129182008-02-01 Kenichi Handa <handa@m17n.org>
12919
12920 * xdisp.c (SKIP_GLYPHS): New macro.
12921 (set_cursor_from_row): Pay attention to string display properties.
12922
12923 * category.c (copy_category_entry): Fix for the case that RANGE
12924 is an integer.
12925
12926 * xterm.c (x_encode_char): Call ccl_driver with the last arg Qnil.
12927
12928 * w32term.c (w32_encode_char): Call ccl_driver with the last arg Qnil.
12929
129302008-02-01 Kenichi Handa <handa@m17n.org>
12931
12932 * charset.c (Fcharset_id_internal): New function.
12933 (syms_of_charset): Defsubr it.
12934
12935 * coding.c (decode_coding_ccl, encode_coding_ccl): Call ccl_driver
12936 with the last arg charset_list acquired from coding.
12937 (Fdefine_coding_system_internal): For ccl-based coding system, fix
12938 the attribute coding_attr_ccl_valids.
12939
12940 * coding.h (enum define_coding_ccl_arg_index): Set the first
12941 member coding_arg_ccl_decoder to coding_arg_max.
12942
12943 * ccl.h (ccl_driver): Adjust prototype.
12944
12945 * ccl.c (CCL_DECODE_CHAR, CCL_ENCODE_CHAR): New macros.
12946 (ccl_driver): New arg CHARSET_LIST. Use the above macros instead
60612c8f 12947 of DECODE_CHAR, ENCODE_CHAR, CHAR_CHARSET.
aac0c6e3
MR
12948 (Fccl_execute, Fccl_execute_on_string): Call ccl_driver with the
12949 last arg Qnil.
12950
129512008-02-01 Kenichi Handa <handa@m17n.org>
12952
12953 * charset.h (ENCODE_CHAR): If the method is SUBSET or SUPERSET,
12954 call encode_char.
12955
12956 * charset.c (encode_char): Fix handling of methods SUBSET and SUPERSET.
12957
129582008-02-01 Dave Love <fx@gnu.org>
12959
12960 * composite.c (syms_of_composite): Make composition_hash_table weak.
12961
129622008-02-01 Kenichi Handa <handa@m17n.org>
12963
12964 * dispextern.h (check_face_attributes, generate_ascii_font_name)
12965 (font_name_registry): Don't extern them.
12966 (split_font_name_into_vector, build_font_name_from_vector): Extern them.
12967
12968 * fontset.h (Qfontset): Don't extern it.
12969 (new_fontset_from_font_name): Extern it.
12970
12971 * fontset.c: Give 8 extra slots to fontset objects.
12972 (Qfontset_info): New variable.
12973 (syms_of_fontset): Defsym it.
12974 (FONTSET_FALLBACK): New macro.
12975 (fontset_face): Try also the default fontset.
12976 (make_fontset): Realize a fallback fontset from the default fontset.
12977 (generate_ascii_font_name): Move from xfaces.c. Rewritten by
12978 using split_font_name_into_vector and build_font_name_from_vector.
12979 (Fset_fontset_font): Access the elements of font_spec by enum
12980 FONT_SPEC_INDEX. If font_spec is a string, extract the registry
12981 name by using split_font_name_into_vector.
12982 (Fnew_fontset): If no ASCII font is specified in FONTLIST,
12983 generate a proper font name from the fontset name. Update
12984 Vfontset_alias_alist.
12985 (n_auto_fontsets): New variable.
12986 (new_fontset_from_font_name): New function.
12987 (Ffont_info): Store the information about fonts generated from the
12988 default fontset in the first extra slot of the returned char-table.
12989
12990 * xfaces.c (generate_ascii_font_name): Move to fontset.c.
12991 (font_name_registry): Delete function.
12992 (split_font_name_into_vector): New function.
12993 (build_font_name_from_vector): New function.
12994 (font_list): The argument REGISTRY is now a list of registry names.
12995 (choose_face_font): If we are choosing an ASCII font, and ATTRS
12996 specifies an explicit font name, return the name as is. Make a
12997 list of registy names.
12998
12999 * xfns.c (x_set_font, x_create_tip_frame): Adjust for the change
13000 of x_new_fontset.
13001 (Fx_create_frame): Don't call x_new_fontset here. Just use
13002 x_list_fonts to check the existence of fonts.
13003
13004 * xterm.h (x_new_fontset): Adjust prototype.
13005
13006 * xterm.c (x_new_fontset): Change the arg FONTSETNAME to Lisp
13007 string. Use new_fontset_from_font_name to create a fontset from a
13008 font name.
13009
130102008-02-01 Kenichi Handa <handa@m17n.org>
13011
13012 * syntax.c (Vfind_word_boundary_function_table): New name for
13013 Vnext_word_boundary_function_table.
13014 (find-word-boundary-function-table): New name for
13015 next-word-boundary-function-table.
13016
130172008-02-01 Dave Love <fx@gnu.org>
13018
13019 * Makefile.in: Fix some dependencies.
13020
13021 * keymap.c (Fapropos_internal): Don't gcpro apropos_predicate but
13022 set it to nil before returning.
13023
13024 * composite.c (update_compositions): Fix type error.
13025
13026 * syntax.c (skip_chars, skip_syntaxes): Fix type errors.
13027
130282008-02-01 Kenichi Handa <handa@m17n.org>
13029
13030 * xterm.c (x_new_font): Optimize for the case that the font is
13031 already set for the frame.
13032
130332008-02-01 Kenichi Handa <handa@m17n.org>
13034
13035 * chartab.c (char_table_ascii): Check if the char table contents
13036 is sub-char-table or not.
13037 (char_table_set, char_table_set_range): Fix argument to
13038 char_table_ascii.
13039
13040 * coding.c (CATEGORY_MASK_RAW_TEXT): New macro.
13041 (detect_coding_utf_8, detect_coding_utf_16)
13042 (detect_coding_emacs_mule, detect_coding_iso_2022)
13043 (detect_coding_sjis, detect_coding_big5)
13044 (detect_coding_ccl, detect_coding_charset): Change argument MASK
13045 to DETECT_INFO. Update DETECT_INFO and return 1 if the byte
13046 sequence is valid in this coding system. Change callers.
13047 (MAX_ANNOTATION_LENGTH): New macro.
13048 (ADD_ANNOTATION_DATA): New macro.
13049 (ADD_COMPOSITION_DATA): Change argument. Change callers. Call
13050 ADD_ANNOTATION_DATA. Change the format of annotation data.
13051 (ADD_CHARSET_DATA): New macro.
13052 (emacs_mule_char): New argument ID. Change callers.
13053 (decode_coding_emacs_mule, decode_coding_iso_2022)
13054 (decode_coding_sjis, decode_coding_big5, decode_coding_charset):
13055 Produce charset annotation data in coding->charbuf.
13056 (encode_coding_emacs_mule, encode_coding_iso_2022): Pay attention
13057 to charset annotation data in coding->charbuf.
13058 (setup_coding_system): Add CODING_ANNOTATE_CHARSET_MASK
13059 coding->common_flags if the coding system is iso-2022 based and
13060 uses designation.
13061 (produce_composition): Adjust for the new annotation data format.
13062 (produce_charset): New function.
13063 (produce_annotation): Handle charset annotation.
13064 (handle_composition_annotation, handle_charset_annotation): New
13065 functions.
13066 (consume_chars): Handle charset annotation. Utilize the above two
13067 functions.
13068 (encode_coding_object): If SRC_OBJECT and DST_OBJECT are the same
13069 buffer, get the deleted text as a string and set
13070 coding->src_object to that string.
13071 (detect_coding, detect_coding_system): Use the new struct
13072 coding_detection_info.
13073
13074 * coding.h (struct coding_detection_info): New structure.
13075 (struct coding_system): Adjust prototype of the member `detector'.
13076 (CODING_ANNOTATE_CHARSET_MASK): New macro.
13077
130782008-02-01 Kenichi Handa <handa@m17n.org>
13079
13080 * insdel.c (insert_from_gap): Fix argument to offset_intervals.
13081
130822008-02-01 Dave Love <fx@gnu.org>
13083
13084 * keymap.c (apropos_predicate, apropos_accumulate): Declare static.
13085 (Fapropos_internal): Don't gcpro apropos_accumulate. Set result
13086 to new local and nullify apropos_accumulate before returning.
13087 (syms_of_keymap): Staticpro and initialize apropos_accumulate.
13088
130892008-02-01 Kenichi Handa <handa@m17n.org>
13090
13091 * charset.c (Fdefine_charset_internal): Setup charset.fast_map
13092 correctly.
e3eea1fc 13093
aac0c6e3
MR
130942008-02-01 Dave Love <fx@gnu.org>
13095
13096 * fns.c (Flanginfo): Call synchronize_system_time_locale.
13097
130982008-02-01 Kenichi Handa <handa@m17n.org>
13099
13100 The following changes are to make character composition happen
13101 automatically on displaying.
13102
13103 * Makefile.in (lisp, shortlisp): Add composite.elc.
13104
13105 * composite.h (Qauto_composed, Vauto_composition_function)
13106 (Qauto_composition_function): Extern them.
13107
13108 * composite.c (Vcomposition_function_table)
13109 (Qcomposition_function_table): Delete variables.
13110 (Qauto_composed, Vauto_composition_function)
13111 (Qauto_composition_function): New variables.
13112 (run_composition_function): Don't call
13113 compose-chars-after-function.
13114 (update_compositions): Clear `auto-composed' text property.
13115 (compose_chars_in_text): Delete this function.
13116 (syms_of_composite): Staticpro Qauto_composed and
13117 Qauto_composition_function. Declare Vauto_composition_function as
13118 a Lisp variable.
13119
13120 * dispextern.h (enum prop_idx): Add member AUTO_COMPOSED_PROP_IDX.
13121
13122 * xdisp.c (it_props): Add an entry for Qauto_composed.
13123 (handle_auto_composed_prop): New function.
13124
13125 * xselect.c (selection_data_to_lisp_data): Don't call
13126 compose_chars_in_text.
13127
131282008-02-01 Dave Love <fx@gnu.org>
13129
13130 * keyboard.c (read_char): Modify checking around use of
13131 Vkeyboard_translate_table.
13132
13133 * xterm.c (XTread_socket): Check Lisp types for Vx_keysym_table
13134 and fix C types.
13135
131362008-02-01 Kenichi Handa <handa@m17n.org>
13137
13138 * coding.c (decode_coding_utf_8, decode_coding_emacs_mule)
13139 (decode_coding_iso_2022, decode_coding_sjis, decode_coding_big5)
13140 (decode_coding_charset, produce_chars): When eol_type is Qdos, handle
13141 the case that the last byte is '\r' correctly.
13142 (decode_coding): Flush out the unprocessed data correctly.
13143 (decode_coding_gap): Set CODING_MODE_LAST_BLOCK bit of coding->mode.
13144
131452008-02-01 Dave Love <fx@gnu.org>
13146
13147 * xterm.c (XTread_socket): Fix changes for defined keysyms.
13148 Add XK_ISO... case.
13149 (xaw_scroll_callback): Revert last change.
13150
131512008-02-01 Kenichi Handa <handa@m17n.org>
13152
13153 * charset.c (Fset_charset_priority): Update Viso_2022_charset_list.
13154
131552008-02-01 Kenichi Handa <handa@m17n.org>
13156
13157 * xfaces.c (Vface_resizing_fonts): New variable.
13158 (struct font_name): New member `resizing_ratio'.
13159 (font_resizing_ratio): New function.
13160 (split_font_name): Set font->resizing_ratio.
13161 (better_font_p): Pay attention to font->resizing_ratio.
13162 (build_scalable_font_name): Likewise. Don't change POINT_SIZE,
13163 RESX, and RESY fields.
13164 (try_alternative_families): Try scalable fonts if
13165 Vscalable_fonts_allowed is not Qt.
13166 (syms_of_xfaces): Declare Vface_resizing_fonts as a Lisp variable.
13167
131682008-02-01 Dave Love <fx@gnu.org>
13169
13170 * xterm.c (xaw_scroll_callback): Cast correctly.
13171
131722008-02-01 Dave Love <fx@gnu.org>
13173
13174 * keyboard.c (lispy_accent_codes, lispy_accent_keys): Extend.
13175 (lispy_kana_keys): Comment out.
13176 (make_lispy_event) [XK_kana_A]: Comment out.
13177
13178 * xterm.c (xaw_scroll_callback): Cast call_data.
13179 (XTread_socket): Deal with ASCII keysyms.
13180 (syms_of_xterm) <Vx_keysym_table>: Fix args of make_hash_table.
13181
131822008-02-01 Dave Love <fx@gnu.org>
13183
13184 * xterm.c (Vx_keysym_table): New.
13185 (syms_of_xterm): Initialize it.
13186 (XTread_socket): Use it.
13187 From head: Eliminate incorrect optimization that tried to avoid
13188 decoding the output of X*LookupString.
13189 (x_get_font_repertory): Delete charset declaration.
13190
131912008-02-01 Kenichi Handa <handa@m17n.org>
13192
13193 * coding.c (detect_coding_charset): If only ASCII bytes are found,
13194 return 0.
13195 (Fdefine_coding_system_internal): Setup
13196 CODING_ATTR_ASCII_COMPAT (attrs) correctly.
13197
131982008-02-01 Dave Love <fx@gnu.org>
13199
13200 * coding.c (Fcheck_coding_system): Doc fix.
13201
13202 * editfns.c (Finsert_byte): Return a proper value.
13203
132042008-02-01 Kenichi Handa <handa@m17n.org>
13205
13206 * coding.c (decode_coding): Fix args to translate_chars. Pay
13207 attention to Vstandard_translation_table_for_decode.
13208 (encode_coding): Fix args to translate_chars. Pay attention to
13209 Vstandard_translation_table_for_encode.
13210
13211 * data.c (Faset): Check NEWELT by ASCII_CHAR_P, not by
13212 SINGLE_BYTE_CHAR_P.
13213
13214 * editfns.c (general_insert_function): Check VAL by ASCII_CHAR_P,
13215 not by SINGLE_BYTE_CHAR_P.
13216
13217 * fns.c (concat): Check CH by ASCII_CHAR_P, not by
13218 SINGLE_BYTE_CHAR_P.
13219
13220 * insdel.c (copy_text): Check C by ASCII_CHAR_P, not by
13221 SINGLE_BYTE_CHAR_P.
13222
13223 * keymap.c (Ftext_char_description): Check C by ASCII_CHAR_P, not
13224 by SINGLE_BYTE_CHAR_P.
13225
13226 * search.c (Freplace_match): Check C by ASCII_CHAR_P, not by
13227 SINGLE_BYTE_CHAR_P.
13228
132292008-02-01 Dave Love <fx@gnu.org>
13230
13231 * fns.c (Fstring_as_multibyte, Fstring_to_multibyte): Doc fix.
13232
132332008-02-01 Dave Love <fx@gnu.org>
13234
13235 * fns.c (Flanginfo): Fix typo.
13236
13237 * unexelf.c (unexec): Make last change conditional on Irix 6.5.
13238
132392008-02-01 Kenichi Handa <handa@m17n.org>
13240
13241 * coding.c (detect_coding_utf_8, detect_coding_utf_16)
13242 (detect_coding_emacs_mule, detect_coding_iso_2022)
13243 (detect_coding_sjis, detect_coding_big5, detect_coding_ccl): Check
13244 incomplete byte sequence. Don't update *mask when correctly detected.
13245 (decode_coding_sjis): Fix decoding of katakana-jisx0201.
13246 (detect_eol): Delete the argument CODING, and add the argument CATEGORY.
13247 (detect_coding, detect_coding_system): Adjust for the changes above.
13248
132492008-02-01 Kenichi Handa <handa@m17n.org>
13250
13251 * character.c (char_string): Rename from
13252 char_string_with_unification. Pay attention to CHAR_MODIFIER_MASK.
13253 (string_char): Rename from string_char.
13254
13255 * character.h (CHAR_STRING, CHAR_STRING_ADVANCE): Call char_string
13256 if C is greater than MAX_3_BYTE_CHAR.
13257 (STRING_CHAR, STRING_CHAR_AND_LENGTH, STRING_CHAR_ADVANCE): Call
13258 string_char instead of string_char_with_unification.
13259
132602008-02-01 Dave Love <fx@gnu.org>
13261
13262 * coding.c (decode_coding_utf_8): Treat surrogates as invalid.
13263
132642008-02-01 Kenichi Handa <handa@m17n.org>
13265
13266 * keymap.c (push_key_description): Pay attention to force_multibyte.
13267
13268 * regex.c (re_search_2): Fix for the case of unibyte buffer.
13269
132702008-02-01 Dave Love <fx@gnu.org>
13271
13272 * charset.c (define_charset_internal): Rename `supprementary'.
13273
13274 * Makefile.in (lisp, shortlisp): Remove latin-N.
13275
132762008-02-01 Dave Love <fx@gnu.org>
13277
13278 * xfns.c (x_window, x_window): Use use_xim.
13279
13280 * xterm.c (use_xim): Initialize.
13281 (xim_open_dpy, xim_initialize, xim_close_dpy): Use use_xim.
13282 (x_term_init): Maybe set use_xim.
13283
13284 * xterm.h (use_xim) [HAVE_X_I18N]: Declare.
13285
132862008-02-01 Kenichi Handa <handa@m17n.org>
13287
13288 * search.c (search_buffer): Fix case-fold-search of multibyte
13289 characters.
13290 (boyer_moore): Rename the last argument to char_high_bits.
13291
132922008-02-01 Kenichi Handa <handa@m17n.org>
13293
13294 * xdisp.c (display_string): Fix for the case of zero width glyph.
13295
13296 * xfns.c (x_set_font): Change the error message of the case that
13297 x_new_fontset returns Qt.
13298
13299 * xfaces.c (set_lface_from_font_name): Reject the default fontset.
13300 (Finternal_set_lisp_face_attribute): Use signal_error for the
13301 error of invalid fontset.
13302
13303 * xterm.c (x_new_fontset): If FONTSETNAME specifies the default
13304 fontset, return Qt.
13305
133062008-02-01 Dave Love <fx@gnu.org>
13307
13308 * unexelf.c (unexec): Make .got handling not SGI-specific.
13309
13310 * syntax.c (syms_of_syntax) <multibyte-syntax-as-symbol>: Doc fix.
13311
13312 * regex.c: Use `ifdef HAVE_ALLOCA_H', not `if HAVE_ALLOCA_H'.
13313
13314 * keyboard.c (read_key_sequence): Fix type error.
13315
13316 * buffer.c (Fset_buffer_multibyte, Fset_buffer_multibyte): Fix
13317 type error.
13318
13319 * fontset.c (fontset_add): Return Lisp_Object.
13320
133212008-02-01 Dave Love <fx@gnu.org>
13322
13323 * charset.h (charset_ordered_list_tick): Declare extern.
13324
133252008-02-01 Kenichi Handa <handa@m17n.org>
13326
13327 The following changes (and some of 2008-02-01 changes of mine) are
13328 for handling syntax, category, and case conversion for unibyte
13329 characters by converting them to multibyte on the fly. With these
13330 changes, we don't have to setup syntax and case tables for unibyte
13331 characters in each language environment.
13332
13333 * abbrev.c (Fexpand_abbrev): Convert a unibyte character to
13334 multibyte if necessary.
13335
13336 * bytecode.c (Fbyte_code): Likewise.
13337
13338 * character.h (LEADING_CODE_LATIN_1_MIN)
13339 (LEADING_CODE_LATIN_1_MAX): New macros.
13340 (unibyte_to_multibyte_table): Extern it.
13341 (unibyte_char_to_multibyte): New macro.
13342 (MAKE_CHAR_MULTIBYTE): Use unibyte_to_multibyte_table.
13343 (CHAR_LEADING_CODE): New macro.
13344 (FETCH_STRING_CHAR_AS_MULTIBYTE_ADVANCE): New macro.
13345
13346 * character.c (unibyte_to_multibyte_table): New variable.
13347 (unibyte_char_to_multibyte): Move to character.h and define as macro.
13348 (multibyte_char_to_unibyte): If C is an eight-bit character,
13349 convert it to the corresponding byte value.
13350
13351 * charset.c (Fset_unibyte_charset): If the dimension of CHARSET is
13352 not 1, signals an error. Update the elements of
13353 unibyte_to_multibyte_table.
13354 (init_charset_once): Initialize unibyte_to_multibyte_table.
13355 (syms_of_charset): Define the charset `iso-8859-1'.
13356
13357 * cmds.c (internal_self_insert): In a multibyte buffer, insert C
13358 as is without converting it to unibyte. In a unibyte buffer,
13359 convert C to multibyte before checking the syntax.
13360
13361 * lisp.h (unibyte_char_to_multibyte): Delete extern.
13362
13363 * minibuf.c (Fminibuffer_complete_word): Use the macro
13364 FETCH_STRING_CHAR_AS_MULTIBYTE_ADVANCE.
13365
13366 * regex.h (struct re_pattern_buffer): New member target_multibyte.
13367
13368 * regex.c (RE_TARGET_MULTIBYTE_P): New macro.
13369 (GET_CHAR_BEFORE_2): Check target_multibyte, not multibyte. If
13370 that is zero, convert an eight-bit char to multibyte.
13371 (MAKE_CHAR_MULTIBYTE, CHAR_LEADING_CODE): New dummy new macros for
13372 non-emacs case.
13373 (PATFETCH): Convert an eight-bit char to multibyte.
13374 (HANDLE_UNIBYTE_RANGE): New macro.
13375 (regex_compile): Setup the compiled pattern for multibyte chars
13376 even if the given regex string is unibyte. Use PATFETCH_RAW
13377 instead of PATFETCH in many places. To handle `charset'
13378 specification of unibyte, call HANDLE_UNIBYTE_RANGE. Use bitmap
13379 only for ASCII chars.
13380 (analyse_first) <exactn>: Simplify because the compiled pattern
13381 is multibyte.
13382 <charset_not>: Setup fastmap from bitmap only for ASCII chars.
13383 <charset>: Use CHAR_LEADING_CODE to get leading codes.
13384 <categoryspec>: If multibyte, setup fastmap only for ASCII chars here.
13385 (re_compile_fastmap) [emacs]: Call analyse_first with the arg
13386 multibyte always 1.
13387 (re_search_2): In emacs, set the locale variable multibyte to 1,
13388 otherwise to 0. New local variable target_multibyte. Check it
13389 to decide the multibyteness of STR1 and STR2. If
13390 target_multibyte is zero, convert unibyte chars to multibyte
13391 before translating and checking fastmap.
13392 (TARGET_CHAR_AND_LENGTH): New macro.
13393 (re_match_2_internal): In emacs, set the locale variable multibyte
13394 to 1, otherwise to 0. New local variable target_multibyte. Check
13395 it to decide the multibyteness of STR1 and STR2. Use
13396 TARGET_CHAR_AND_LENGTH to fetch a character from D.
13397 <charset, charset_not>: If multibyte is nonzero, check fastmap
13398 only for ASCII chars. Call bcmp_translate with
13399 target_multibyte, not with multibyte.
13400 <begline>: Declare the local variable C as `unsigned'.
13401 (bcmp_translate): Change the last arg name to target_multibyte.
13402
13403 * search.c (compile_pattern_1): Don't adjust the multibyteness of
13404 the regexp pattern and the matching target. Set cp->buf.multibyte
13405 to the multibyteness of the regexp pattern. Set
13406 cp->but.target_multibyte to the multibyteness of the matching target.
13407 (wordify): Use FETCH_STRING_CHAR_AS_MULTIBYTE_ADVANCE instead of
13408 FETCH_STRING_CHAR_ADVANCE.
13409 (Freplace_match): Convert unibyte chars to multibyte.
13410
13411 * syntax.c (char_quoted, back_comment, scan_words)
13412 (Fforward_comment, scan_lists, Fbackward_prefix_chars)
13413 (scan_sexps_forward): Use FETCH_CHAR_AS_MULTIBYTE to convert
13414 unibyte chars to multibyte.
13415 (skip_chars): Delete the arg syntaxp, and move the code for
13416 handling syntaxes to skip_syntaxes. Change callers.
13417 Fix the case that the multibyteness of STRING and the current
13418 buffer doesn't match.
13419 (skip_syntaxes): New function.
13420 (SYNTAX_WITH_MULTIBYTE_CHECK): Check C by ASCII_CHAR_P, not by
13421 SINGLE_BYTE_CHAR_P.
13422
134232008-02-01 Kenichi Handa <handa@m17n.org>
13424
13425 * xfaces.c (QCfontset): New variable.
13426 (LFACE_FONTSET): New macro.
13427 (check_lface_attrs): Check also LFACE_FONTSET_INDEX.
13428 (set_lface_from_font_name): Setup LFACE_FONTSET (lface).
13429 (Finternal_set_lisp_face_attribute)
13430 (Finternal_get_lisp_face_attribute): Handle QCfontset.
13431 (lface_same_font_attributes_p): Fix checking of LFACE_FONT_INDEX,
13432 check also LFACE_FONTSET_INDEX.
13433 (face_fontset): Check attrs[LFACE_FONTSET_INDEX], not
13434 attrs[LFACE_FONT_INDEX].
13435 (syms_of_xfaces): Intern and staticpro QCfontset.
13436
13437 * dispextern.h (enum lface_attribute_index): New member
13438 LFACE_FONTSET_INDEX.
13439
13440 * fns.c (base64_encode_1): Handle eight-bit chars correctly.
13441
134422008-02-01 Kenichi Handa <handa@m17n.org>
13443
13444 * coding.c (coding_set_destination): Fix coding->destination for
13445 the case converting a region.
13446 (encode_coding_utf_8): Encode eight-bit chars as single byte.
13447 (encode_coding_object): Fix coding->dst_pos and
13448 coding->dst_pos_byte for the case converting a region.
13449
13450 * insdel.c (insert_from_gap): Make it work even if PT != GTP.
13451
13452 * character.h (BYTE8_STRING): New macro.
13453
13454 * fns.c (base64_decode_1): Insert eight-bit chars correctly.
13455
134562008-02-01 Kenichi Handa <handa@m17n.org>
13457
13458 * xdisp.c (get_next_display_element): Don't display unibyte 8-bit
13459 characters by octal form.
13460
13461 * abbrev.c (Fexpand_abbrev): Fix for the multibyte case.
13462
13463 * buffer.h (_fetch_multibyte_char_len): Delete extern.
13464 (FETCH_MULTIBYTE_CHAR, BUF_FETCH_MULTIBYTE_CHAR): Don't use
13465 _fetch_multibyte_char_len.
13466 (FETCH_CHAR_AS_MULTIBYTE): New macro.
13467
13468 * casetab.c (set_canon, set_identity, shuffle): Simplify.
13469
13470 * casefiddle.c (casify_object): Simplify. Handle the case that
13471 the case conversion change the byte length.
13472 (casify_region): Likewise.
13473
13474 * character.h (MAKE_CHAR_UNIBYTE, MAKE_CHAR_MULTIBYTE): New macros.
13475
13476 * character.c (_fetch_multibyte_char_len): Delete this variable.
13477 (syms_of_character): Setup Vprintable_chars.
13478
13479 * editfns.c (Fchar_equal): Fix for the unibyte case.
13480 (Finsert_byte): New function.
13481 (syms_of_editfns): Defsubr it.
13482
13483 * keyboard.c (read_key_sequence): Use ~CHAR_MODIFIER_MASK instead
13484 of direct code 0x3ffff.
13485
13486 * search.c (Freplace_match): Fix for the unibyte case.
13487
134882008-02-01 Kenichi Handa <handa@m17n.org>
13489
13490 * lread.c (safe_to_load_p): Fix the logic.
13491
13492 * syntax.c (scan_words): Don't treat characters belonging to
13493 different scripts as constituting a word.
13494
13495 * editfns.c (Fformat): Use ASCII_CHAR_P, not SINGLE_BYTE_CHAR_P.
13496
13497 * fontset.c (Fset_fontset_font): Treat `ascii' as charset, not script.
13498
13499 * emacs.c (main): In the case of --unibyte, instead of aborting on
13500 finding non-empty buffer, make it unibyte.
13501
135022008-02-01 Kenichi Handa <handa@m17n.org>
13503
13504 * xterm.c (x_new_fontset): Call `create-fontset-from-ascii-font'
13505 to create a fontset.
13506
135072008-02-01 Dave Love <fx@gnu.org>
13508
13509 * character.c (Funibyte_char_to_multibyte): Doc fix.
13510
13511 * xfns.c [HAVE_STDLIB_H]: Fix last change.
13512
135132008-02-01 Kenichi Handa <handa@m17n.org>
13514
13515 * fontset.c (fontset_add): Make the type `int'.
13516 (fontset_id_valid_p): Define it if FONTSET_DEBUG is defined.
13517
13518 * character.c (unibyte_char_to_multibyte)
13519 (multibyte_char_to_unibyte, Funibyte_char_to_multibyte): Refer to
13520 charset_unibyte, not charset_primary.
13521
13522 * charset.h (charset_unibyte): Extern it instead of charset_primary.
13523
13524 * charset.c (charset_unibyte): Rename from charset_primary.
13525 (Funibyte_charset): Rename from Fprimary_charset.
13526 (Fset_unibyte_charset): Rename from Fset_primary_charset.
13527 (syms_of_charset): Adjust for the above changes.
13528
13529 * w32term.c (x_produce_glyphs): Use ASCII_CHAR_P, not
13530 SINGLE_BYTE_CHAR_P. Fix the logic of handling non-ASCII char when
13531 it->multibyte_p is zero.
13532
13533 * lisp.h (nonascii_insert_offset, Vnonascii_translation_table):
13534 Delete extern.
13535
135362008-02-01 Kenichi Handa <handa@m17n.org>
13537
13538 * coding.c (Fdefine_coding_system_internal): Fix category setting
13539 for a coding system of type iso-2022.
13540
135412008-02-01 Kenichi Handa <handa@m17n.org>
13542
13543 * fontset.h (FS_LOAD_FONT): Call fs_load_font with the arg CHARSET -1.
13544
135452008-02-01 Kenichi Handa <handa@m17n.org>
13546
13547 * syntax.c (Vnext_word_boundary_function_table): New variable.
13548 (next-word-boundary-function-table): Declare it as a Lisp variable
13549 in syms_of_syntax.
13550 (scan_words): Call functions in Vnext_word_boundary_function_table
13551 if any.
13552
13553 * xterm.c (x_load_font): Initialize fontp->fontset to -1.
13554
13555 * fontset.c (fs_load_font): If fontp->charset is not negative,
13556 return fontp without setting its members.
13557
135582008-02-01 Dave Love <fx@gnu.org>
13559
13560 * xfns.c [HAVE_STDLIB_H]: Change logic (instead of fixing typo).
13561
13562 * m/sparc.h (HAVE_ALLOCA): Delete.
13563
13564 * s/irix6-5.h: Don't include strings.h.
13565 (bcopy, bzero, bcmp): Don't undef.
13566
13567 * s/irix6-0.h (bcopy, bzero, bcmp): Don't undef.
13568
13569 * s/usg5-4.h (NO_SIOCTL_H): Don't define.
13570 (TIOCSIGSEND): Don't test IRIX6.
13571 (bcopy, bzero, bcmp): Define conditionally.
13572
135732008-02-01 Kenichi Handa <handa@m17n.org>
13574
13575 * buffer.c (Qas, Qmake, Qto): New variables.
13576 (Fset_buffer_multibyte): New optional arg METHOD. Change caller.
13577 (syms_of_buffer): Intern and staticpro Qas, Qmake, and Qto.
13578
13579 * callproc.c (Fcall_process): Don't call insert_1_both directly if
13580 we are inserting a process output into a multibyte buffer.
13581
13582 * character.h (CHAR_TO_BYTE8): If C is not eight-bit char, call
13583 multibyte_char_to_unibyte.
13584
13585 * character.c (Funibyte_char_to_multibyte): If C can't be decoded
13586 by the primary charset, make it eight-bit char.
13587 (Fmultibyte_char_to_unibyte): Call CHAR_TO_BYTE8.
13588
13589 * charset.c (charset_eight_bit, Qeight_bit_control): New variables.
13590 (charset_8_bit__control, charset_8_bit_graphic)
13591 (Qeight_bit_control, Qeight_bit_graphic): Delete these variables.
13592 (define_charset_internal): New function.
13593 (syms_of_charset): Call define_charset_internal for pre-defined
13594 charsets.
13595
13596 * charset.h (charset_8_bit): Extern it.
13597
13598 * coding.c (make_conversion_work_buffer): Adjust for the change
13599 of Fset_buffer_multibyte.
13600 (encode_coding_raw_text): Increment p0 in the loop.
13601
13602 * lisp.h (Fset_buffer_multibyte): Adjust prototype.
13603
13604 * xdisp.c (setup_echo_area_for_printing, set_message_1): Adjust
13605 for the change of Fset_buffer_multibyte.
13606
13607 * fns.c (Fstring_to_multibyte): New function.
13608 (syms_of_fns): Declare Fstring_to_multibyte as Lisp subroutine.
13609
136102008-02-01 Dave Love <fx@gnu.org>
13611
13612 * xfns.c (x_put_x_image): Declare args.
13613
13614 * xfaces.c (font_name_registry, choose_face_font): Delete unused vars.
13615 (try_font_list): Declare an arg.
13616
13617 * xdisp.c (message2_nolog, set_message): Declare an arg.
13618
13619 * terminfo.c (tparam): Declare an arg. Use P_ to declare tparm.
13620
13621 * syntax.c (scan_sexps_forward): Declare an arg.
13622
13623 * scroll.c (calculate_scrolling, calculate_direct_scrolling):
13624 Declare an arg.
13625
13626 * lisp.h (Fnew_fontset): Declare.
13627
13628 * keymap.c (push_key_description): Call CHARACTERP correctly.
13629
13630 * fontset.c (fontset_add): Declare args. Call make_number correctly.
13631 (face_for_char): Delete unused vars.
13632 (Fset_fontset_font): Doc fix. Delete unused vars.
13633
13634 * doc.c (Fsubstitute_command_keys): Delete unused vars.
13635
13636 * composite.c (update_compositions): Declare arg.
13637
13638 * cm.c (calccost, cmgoto): Declare args.
13639
13640 * charset.c: Remove `emacs' conditional. Doc fixes.
13641 (map_char_table_for_charset): Declare.
13642
13643 * character.c (syms_of_character) <translation-table-vector>: Doc fix.
13644
13645 * ccl.c: Remove `emacs' conditional.
13646
136472008-02-01 Kenichi Handa <handa@m17n.org>
13648
13649 The following changes are to allow specifying multiple font
13650 patterns for a character range (specified by script or charset).
13651
13652 * Makefile.in (abbrev.o): Depend on syntax.h.
13653 (xfaces.o): Depend on charset.h.
13654
13655 * alloc.c (Fmake_string): Use ASCII_CHAR_P, not
13656 SINGLE_BYTE_CHAR_P.
13657
13658 * ccl.c (Fccl_execute_on_string): Add `const' to local variables.
13659
13660 * character.h (Vchar_script_table): Extern it.
13661
13662 * character.c (Vscript_alist): Delete.
13663 (Vchar_script_table, Qchar_script_table): New variable.
13664 (syms_of_character): Declare Vchar_script_table as a lisp variable
13665 and initialize it.
13666
13667 * chartab.c (Fmake_char_table): Doc fix. If PURPOSE doesn't
13668 have property char-table-extra-slots, make no extra slot.
13669
13670 * dispextern.h (struct face): Delete member `charset'.
13671 (FACE_SUITABLE_FOR_CHAR_P, FACE_FOR): Use ASCII_CHAR_P, not
13672 SINGLE_BYTE_CHAR_P.
13673 (choose_face_font, lookup_non_ascii_face, font_name_registry):
13674 Add prototypes.
13675 (lookup_face, lookup_named_face, lookup_derived_face): Fix prototype.
13676 (generate_ascii_font_name): Rename from generate_ascii_font.
13677
13678 * fontset.h (get_font_repertory_func): New prototype.
13679 (make_fontset_for_ascii_face, fs_load_font): Fix prototypes.
13680 (FS_LOAD_FONT): Call fs_load_font with the 3rd arg charset_ascii.
13681
13682 * fontset.c (Qprepend, Qappend): New variables.
13683 (FONTSET_CHARSET_ALIST, FONTSET_FACE_ALIST): Delete.
13684 (FONTSET_NOFONT_FACE, FONTSET_REPERTORY): New macros.
13685 (FONTSET_REF): Optimize if FONTSET is Vdefault_fontset.
13686 (FONTSET_REF_AND_RANGE, FONTSET_ADD): New macros.
13687 (fontset_ref_and_range, fontset_add, reorder_font_vector)
13688 (load_font_get_repertory): New functions.
13689 (fontset_set): Delete.
13690 (fontset_face): New arg FACE. Return face ID, not face.
13691 Complete re-write to handle new fontset structure. Change caller.
13692 (free_face_fontset): Use ASET istead of AREF (X) = Y.
13693 (face_for_char): Don't call lookup_face.
13694 (make_fontset_for_ascii_face): New arg FACE.
13695 (fs_load_font): New arg CHARSET_ID. Don't check
13696 Vfont_encoding_alist here.
13697 (find_font_encoding): New function.
13698 (list_fontsets): Use STRINGP, not ! NILP.
13699 (accumulate_script_ranges): New function.
13700 (Fset_fontset_font, Fnew_fontset, Ffontset_info): Completely
13701 re-written to handle new fontset structure.
13702 (Ffontset_font): Return a copy of element.
13703 (syms_of_fontset): Define symbols Qprepend and Qappend. Fix
13704 docstring of font-encoding-alist.
13705
13706 * lisp.h (CHAR_TABLE_REF): Remove unnecessary check (IDX >= 0).
13707 (Fset_fotset_font): Fix arguments to 5.
13708
13709 * msdos.c (XMenuActivate): Adjust for the change of lookup_derived_face.
13710
13711 * xdisp.c (message_dolog, set_message_1, extend_face_to_end_of_line):
13712 Use ASCII_CHAR_P, not SINGLE_BYTE_CHAR_P.
13713 (highlight_trailing_whitespace): Adjust for the change of
13714 lookup_named_face.
13715
13716 * xfaces.c: Include charset.h.
13717 (load_face_font): Delete argument C. Change caller.
13718 (generate_ascii_font_name): Rename from generate_ascii_font.
13719 (font_name_registry): New function.
13720 (cache_face): Store ascii faces before non-ascii faces in buckets.
13721 (lookup_face): Delete arguments C and BASE_FACE. Change caller.
13722 Lookup only ascii faces.
13723 (lookup_non_ascii_face): New function.
13724 (lookup_named_face): Delete argument C. Change caller.
13725 (lookup_derived_face): Delete argument C. Change caller.
13726 (try_font_list): New arg PATTERN. Change caller. If PATTERN is
13727 a string, just call font_list with it.
13728 (choose_face_font): Delete arguments FACE and C. New arg
13729 FONT_SPEC. Change caller.
13730 (realize_face, realize_x_face): Delete arguments C and BASE_FACE.
13731 Change caller.
13732 (realize_non_ascii_face): New function.
13733 (realize_x_face): Call load_face_font here.
13734 (realize_tty_face): Delete argument C. Change caller.
13735 (compute_char_face): If CH is not ascii, call FACE_FOR_CHAR to
13736 get a face ID.
13737 (dump_realized_face): Don't print charset of FACE.
13738
13739 * xfns.c (x_set_font): Always call x_new_fontset and
13740 store_frame_parameter.
13741 (Fx_create_frame): Call x_new_fontset, not x_new_font.
13742 (syms_of_xfns): Set get_font_repertory_func to x_get_font_repertory.
13743
13744 * xterm.h (x_get_font_repertory): Extern it.
13745
13746 * xterm.c (x_produce_glyphs): Use ASCII_CHAR_P, not
13747 SINGLE_BYTE_CHAR_P. Fix the logic of handling non-ASCII char when
13748 it->multibyte_p is zero.
13749 (XTread_socket): Use ASCII_CHAR_P, not SINGLE_BYTE_CHAR_P.
13750 (x_new_fontset): If FONTSETNAME doesn't match any existing
13751 fontsets, create a new one.
13752 (x_get_font_repertory): New function.
13753
137542008-02-01 Kenichi Handa <handa@m17n.org>
13755
13756 * coding.c (Ffind_coding_systems_region_internal): Detect an
13757 ASCII only string correctly.
13758
13759 * lread.c (Fload): Don't load with Qload_force_doc_strings t if
13760 version is 0.
13761
137622008-02-01 Kenichi Handa <handa@m17n.org>
13763
13764 * lread.c: Include "coding.h".
13765 (Qget_emacs_mule_file_char, Qload_force_doc_strings)
13766 (load_each_byte, unread_char): New variables.
13767 (readchar_backlog): Delete.
13768 (readchar): Return a character unless load_each_byte is nonzero.
13769 Handle the case that readcharfun is Qget_emacs_mule_file_char or a
13770 cons. If unread_char is not -1, simply return it.
13771 (unreadchar): Handle the case that readcharfun is
13772 Qget_emacs_mule_file_char or a cons. Set unread_char if necessary.
13773 (read_multibyte): Delete.
13774 (readbyte_for_lambda, readbyte_from_file, readbyte_from_string)
13775 (read_emacs_mule_char): New functions.
13776 (Fload): Even if the file doesn't have the extension ".elc", if
13777 safe_to_load_p returns a positive version number, assume that the
13778 file contains bytecompiled code. If the version is less than 22,
13779 load the file while decoding multibyte sequences by emacs-mule.
13780 (readevalloop): Don't use readchar_backlog.
13781 (Fread): Likewise. Pay attention to the case that STREAM is a cons.
13782 (Fread_from_string): Pay attention to the case that STREAM is a cons.
13783 (read_escape): Delete the arg BYTEREP.
13784 (read1): Set load_each_byte to 1 temporarily while handling
13785 #@NUMBER. Don't call read_multibyte.
13786 (read_vector): Call Fread with a cons. If readcharfun is
13787 Qget_emacs_mule_file_char, decode the read string by emacs-mule.
13788 (read_list): If doc_reference is 2, make the cdr part string as unibyte.
13789 (syms_of_lread): Intern and staticpro Qget_emacs_mule_file_char
13790 and Qload_force_doc_strings.
13791
137922008-02-01 Kenichi Handa <handa@m17n.org>
13793
13794 * xdisp.c (face_before_or_after_it_pos): Call
13795 FETCH_MULTIBYTE_CHAR with byte postion, not char position.
13796
137972008-02-01 Kenichi Handa <handa@m17n.org>
13798
13799 * character.h (TRAILING_CODE_P): New macro.
13800 (MAYBE_UNIFY_CHAR): Adjust for the change of Funify_charset.
13801 (string_char_with_unification): Fix prototype.
13802 (Vscript_alist): Extern it.
13803
13804 * character.c (Vscript_alist): New variable.
13805 (string_char_with_unification, str_as_unibyte)
13806 (string_escape_byte8): Add `const' to local variables.
13807 (syms_of_character): Declare script-alist as a Lisp variable.
13808
13809 * charset.h (Vcharset_ordered_list): Extern it.
13810 (charset_ordered_list_tick): Extern it.
13811 (EMACS_MULE_LEADING_CODE_PRIVATE_11)
13812 (EMACS_MULE_LEADING_CODE_PRIVATE_12)
13813 (EMACS_MULE_LEADING_CODE_PRIVATE_21)
13814 (EMACS_MULE_LEADING_CODE_PRIVATE_22): New macros.
13815 (Funify_charset): Adjust for the change of Funify_charset.
13816
13817 * charset.c (charset_ordered_list_tick): New variable.
13818 (Fdefine_charset_internal): Increment charset_ordered_list_tick.
13819 (Funify_charset): New optional arg DEUNIFY. If it is non-nil,
13820 deunify intead of unify a charset.
13821 (string_xstring_p): Add `const' to local variables.
13822 (find_charsets_in_text): Add `const' to arguments and local variables.
13823 (encode_char): Adjust for the change of Funify_charset. Fix
13824 detecting of invalid code.
13825 (Fset_charset_priority): Increment charset_ordered_list_tick.
13826 (Fmap_charset_chars): Fix handling of default value for FROM_CODE
13827 and TO_CODE.
13828
13829 * coding.c (LEADING_CODE_PRIVATE_11, LEADING_CODE_PRIVATE_12)
13830 (LEADING_CODE_PRIVATE_21, LEADING_CODE_PRIVATE_22): Delete macros.
13831 Changed callers to use EMACS_MULE_LEADING_CODE_PRIVATE_11, etc.
13832 (decode_coding_ccl, consume_chars)
13833 (Ffind_coding_systems_region_internal)
13834 (Fcheck_coding_systems_region): Add `const' to local variables.
13835
13836 * print.c (print_object): Use octal form for printing the
13837 contents of a bool vector.
13838
138392008-02-01 Dave Love <fx@gnu.org>
13840
13841 * lread.c (Fload) <!load_dangerous_libraries>: Don't leak fd.
13842 <version == 20>: Refuse to load.
13843
138442008-02-01 Dave Love <fx@gnu.org>
13845
13846 * fns.c: Move coding.h.
13847 (Qcodeset, Qdays, Qmonths): New.
13848 (concat): Use CHARACTERP instead of INTEGERP.
13849 (Flocale_codeset): Delete.
13850 (Flanginfo): New function.
13851 (syms_of_fns): Change accordingly.
13852
13853 * coding.c (adjust_coding_eol_type): Fix eol_type/eol_seen mixup.
13854
138552008-02-01 Dave Love <fx@gnu.org>
13856
13857 * casetab.c (init_casetab_once, init_casetab_once): Fix
13858 CHAR_TABLE_SET call.
13859
13860 * category.c (Fmodify_category_entry): Fix CATEGORY_MEMBER call.
13861
13862 * character.c (syms_of_character): Fix CHAR_TABLE_SET call.
13863
13864 * charset.c (Fmap_charset_chars): Check args. Convert Lisp types.
13865 (load_charset_map, Fdeclare_equiv_charset, Fencode_char)
13866 (Fset_charset_priority, syms_of_charset): Convert Lisp types.
13867
13868 * charset.h (CHECK_CHARSET_GET_ID): Use XINT on AREF result.
13869
13870 * coding.c (ENCODE_DESIGNATION, decode_eol)
13871 (make_conversion_work_buffer, code_conversion_restore)
13872 (Fdefine_coding_system_internal): Convert Lisp types.
13873 (code_conversion_restore): Use EQ, not ==.
13874 (Fencode_coding_string): Fix code_convert_string call.
13875
13876 * coding.h (code_convert_region): Fix prototype.
13877
13878 * dispextern.h (redraw_frame, redraw_garbaged_frames): Remove.
13879
13880 * fontset.c (fontset_ref, fontset_set, fs_load_font)
13881 (Ffontset_info): Convert Lisp types.
13882
13883 * syntax.h (SYNTAX_ENTRY_INT): Don't use make_number.
13884
13885 * xterm.c (note_mouse_movement): Fix call of window_from_coordinates.
13886
13887 * xdisp.c (display_mode_element): Fix call of Fset_text_properties.
13888
13889 * chartab.c: Include "...h", not <...h> in some cases.
13890
13891 * callproc.c (Fcall_process): Remove unused variables.
13892
138932008-02-01 Dave Love <fx@gnu.org>
13894
13895 * coding.c (Fset_coding_system_priority): Allow null arg list.
13896
138972008-02-01 Dave Love <fx@gnu.org>
13898
13899 * minibuf.c (Fminibuffer_complete_word): Remove unused var.
13900 (Fself_insert_and_exit): Use CHARACTERP.
13901
13902 * callproc.c (Fcall_process): Remove unused vars.
13903
13904 * xterm.c (XTread_socket): Add extra dead keysyms.
13905
13906 * xdisp.c (decode_mode_spec_coding): Use CHARACTERP.
13907
13908 * dispextern.h: Remove prototypes for redraw_frame,
13909 redraw_garbaged_frames.
13910
13911 * cmds.c (Fself_insert_command): Use CHARACTERP.
13912
13913 * chartab.c (make_sub_char_table): Remove unused var.
13914 (Fset_char_table_default, Fmap_char_table): Doc fix.
13915
13916 * keymap.c (access_keymap): Remove generic char code.
13917 (push_key_description): Use CHARACTERP.
13918
139192008-02-01 Dave Love <fx@gnu.org>
13920
13921 * charset.c: Doc fixes.
13922 (Funify_charset): Extra checking.
13923
139242008-02-01 Dave Love <fx@gnu.org>
13925
13926 * lread.c: Remove some unused variables.
13927 (safe_to_load_p): If safe, return the magic number version byte.
13928 (Fload): Maybe use load-with-code-conversion.
13929
139302008-02-01 Kenichi Handa <handa@m17n.org>
13931
13932 * category.c (Fmodify_category_entry): Don't modify the contents
13933 of category_set for characters out of the range. Avoid
13934 unnecessary modification.
13935
13936 * character.h (MAYBE_UNIFY_CHAR): Adjust for the change of
13937 Vchar_unify_table. The default value of the table is now nil.
13938
13939 * character.c (syms_of_character): Setup Vchar_width_table for
13940 eight-bit-control and raw-byte chars.
13941
13942 * charset.h (enum define_charset_arg_index): Delete
13943 charset_arg_parents and add charset_arg_subset and
13944 charset_arg_superset.
13945 (enum charset_attr_index): Delete charset_parents and add
13946 charset_subset and charset_superset.
13947 (enum charset_method): Delete CHARSET_METHOD_INHERIT and add
13948 CHARSET_METHOD_SUBSET and CHARSET_METHOD_SUPERSET.
13949 (CHARSET_ATTR_PARENTS, CHARSET_PARENTS): Delete.
13950 (CHARSET_ATTR_SUBSET, CHARSET_ATTR_SUPERSET, CHARSET_SUBSET)
13951 (CHARSET_SUPERSET): New macros.
13952 (charset_work): Extern it.
13953 (ENCODE_CHAR): Use charset_work.
13954 (CHAR_CHARSET_P): Adjust for the change of encoder format.
13955 (map_charset_chars): Extern it.
13956
13957 * charset.c (load_charset_map): Set the default value of encoder
13958 and deunifier char-tables to nil.
13959 (map_charset_chars): Change argument. Change callers. Use
13960 map_char_table_for_charset instead of map_char_table.
13961 (Fmap_charset_chars): New optional args from_code and to_code.
13962 (Fdefine_charset_internal): Adjust for the change of
13963 `define-charset' (:parents -> :subset or :superset).
13964 (charset_work): New variable.
13965 (encode_char, syms_of_charset): Adjust for the change of
13966 Fdefine_charset_internal.
13967 (Ffind_charset_string): Setup the vector `charsets' correctly.
13968
13969 * chartab.c (sub_char_table_ref_and_range): New arg default. Fix
13970 the previous change.
13971 (char_table_ref_and_range): Adjust for the above change.
13972 (map_sub_char_table_for_charset): New function.
13973 (map_char_table_for_charset): New function.
13974
13975 * keymap.c (describe_vector): Handle a char-table directly here.
13976 (describe_char_table): Delete.
13977
13978 * lisp.h (map_charset_chars): Delete.
13979
139802008-02-01 Dave Love <fx@gnu.org>
13981
13982 * fns.c (count_combining): Comment out (unused).
13983 (Flocale_codeset): New.
13984 (syms_of_fns): Defsubr it.
13985
13986 * config.in (HAVE_PTY_H, HAVE_SIZE_T, HAVE_LANGINFO_CODESET): New.
13987 (size_t): Remove.
13988
139892008-02-01 Dave Love <fx@gnu.org>
13990
13991 * Makefile.in (chartab.o): Depend on charset.h.
13992
139932008-02-01 Kenichi Handa <handa@m17n.org>
13994
13995 * character.c (syms_of_character): Set the default value of
13996 Vprintable_chars to Qnil.
13997
139982008-02-01 Dave Love <fx@gnu.org>
13999
14000 * Makefile.in (lisp, shortlisp): Change indian.elc to indian.el.
14001
140022008-02-01 Kenichi Handa <handa@m17n.org>
14003
14004 * charset.c (load_charset_map): Handle the case that from < to
14005 correctly.
14006
14007 * coding.c (encode_coding_emacs_mule, encode_coding_iso_2022)
14008 (encode_coding_sjis, encode_coding_big5, encode_coding_charset):
14009 Pay attention to raw-8-bit chars.
14010
140112008-02-01 Kenichi Handa <handa@m17n.org>
14012
14013 * Makefile.in (lisp, shortlisp): Change chinese.elc to chinese.el.
14014 It is not bytecompiled now.
14015
14016 * charset.c (charset_jisx0201_roman, charset_jisx0208_1978)
14017 (charset_jisx0208): New variables.
14018 (Fdefine_charset_internal): Setup them if appropriate.
14019 (init_charset_once): Initialize them to -1.
14020
14021 * charset.h (charset_jisx0201_roman, charset_jisx0208_1978)
14022 (charset_jisx0208): Extern them.
14023
14024 * coding.c (CODING_ISO_FLAG_USE_ROMAN): New macro.
14025 (CODING_ISO_FLAG_USE_OLDJIS): New macro.
14026 (CODING_ISO_FLAG_FULL_SUPPORT): Change macro definition.
14027 (setup_iso_safe_charsets): Fix arguments to Fassq.
14028 (DECODE_DESIGNATION, ENCODE_ISO_CHARACTER_DIMENSION1)
14029 (ENCODE_ISO_CHARACTER_DIMENSION2): Pay attention to
14030 CODING_ISO_FLAG_USE_ROMAN and CODING_ISO_FLAG_USE_OLDJIS.
14031 (encode_coding_iso_2022): Change the 1st arg to
14032 ENCODE_ISO_CHARACTER to a variable.
14033
140342008-02-01 Kenichi Handa <handa@m17n.org>
14035
14036 * charset.h (enum define_charset_arg_index): New enums
14037 charset_arg_min_code and charset_arg_max_code.
14038 (struct charset): New member char_index_offset.
14039
14040 * charset.c (CODE_POINT_TO_INDEX, INDEX_TO_CODE_POINT):
14041 Take charset->char_index_offset into account.
14042 (Fdefine_charset_internal): Handle args[charset_arg_min_code] and
14043 args[charset_arg_max_code]. Setup charset.char_index_offset.
14044 (syms_of_charset): Fix args to Fdefine_charset_internal.
14045
140462008-02-01 Dave Love <fx@gnu.org>
14047
14048 * coding.c (decode_coding_utf_8): Reject overlong sequences.
14049
140502008-02-01 Dave Love <fx@gnu.org>
14051
14052 * coding.c: Doc fixes.
14053 (Fcoding_system_aliases): Fix return value.
14054 (Qmac): Remove (duplicated) definition.
14055
140562008-02-01 Dave Love <fx@gnu.org>
14057
14058 * charset.c (Fcharset_priority_list, Fset_charset_priority): New
14059 functions.
14060
14061 * character.c (Fstring): Doc fix.
14062
14063 * charset.c (Fdefine_charset_alias): Update Vcharset_list.
14064
14065 * fontset.c (Ffontset_info): Doc fix. Return charset names, not
14066 ids.
14067 (font-encoding-alist): Doc fix.
14068
140692008-02-01 Dave Love <fx@gnu.org>
14070
14071 * term.c (costs_set): Declare static, non-initialized for pcc.
14072 (encode_terminal_code): Remove unused var.
14073
14074 * keyboard.c (kbd_buffer_store_event): Fix interrupt_signal decl
14075 for K&R.
14076
14077 * xterm.c (xlwmenu_window_p): Fix prototype for K&R.
14078
14079 * coding.c (setup_iso_safe_charsets): Fix arg decl for K&R.
14080 (suffixes): Move out of make_subsidiaries for K&R.
14081
14082 * charset.c (map_charset_chars): Fix c_function declaration for K&R.
14083
14084 * lisp.h (DEFUN) [!PROTOTYPES]: Remove spurious `args'.
14085
140862008-02-01 Dave Love <fx@gnu.org>
14087
14088 * data.c (Fchar_or_string_p): Doc fix. Use CHARACTERP.
14089
14090 * category.c (Fmodify_category_entry): Doc fix. Remove unused vars.
14091
140922008-02-01 Yong Lu <lyongu@asia-infonet.com>
14093
14094 * charset.c (Fdefine_charset_internal): Fix argument to bzero.
14095
14096 * coding.c (decode_coding_charset): Workaround for the bug of GCC 2.96.
14097
140982008-02-01 Kenichi Handa <handa@m17n.org>
14099
14100 * Makefile.in (lisp, shortlisp): Change cyrillic.elc to cyrillic.el,
14101 vietnamese.elc to vietnamese.el. They are not bytecompiled now.
14102
141032008-02-01 Kenichi Handa <handa@m17n.org>
14104
14105 * coding.c (decode_coding_charset): Adjust for the change of
14106 Fdefine_coding_system_internal.
14107 (Fdefine_coding_system_internal): For a coding system of
14108 `charset' type, store a list of charset IDs in
14109 `charset_attr_charset_valids' element of coding attributes.
14110
141112008-02-01 Kenichi Handa <handa@m17n.org>
14112
14113 * coding.c (ONE_MORE_BYTE_NO_CHECK): Increment consumed_chars.
14114 (emacs_mule_char): New arg src. Delete arg `composition'. Change
14115 caller. Handle 2-byte and 3-byte charsets correctly.
14116 (DECODE_EMACS_MULE_COMPOSITION_RULE_20): Rename from
14117 DECODE_EMACS_MULE_COMPOSITION_RULE. Change caller.
14118 (DECODE_EMACS_MULE_COMPOSITION_RULE_21): New macro.
14119 (DECODE_EMACS_MULE_21_COMPOSITION): Call
14120 DECODE_EMACS_MULE_COMPOSITION_RULE_21. Produce correct annotation
14121 sequence.
14122 (decode_coding_emacs_mule): Handle composition correctly. Rewind
14123 `src' and `consumed_chars' correctly before calling emacs_mule_char.
14124 (DECODE_COMPOSITION_START): Correctly handle the case of altchar
14125 and alt&rule composition.
14126 (decode_coding_iso_2022): Handle composition correctly.
14127 (init_coding_once): Setup emacs_mule_bytes for private charsets.
14128
14129 * charset.c (Fdefine_charset_internal): Fix bug for the case of
14130 re-defining a charset. If the charset has :emacs-mule-id, setup
14131 emacs_mule_bytes.
14132 (Fmake_char): If CODE1 is nil, use the minimum code of the charset.
14133
141342008-02-01 Kenichi Handa <handa@m17n.org>
14135
14136 * coding.c (encode_coding_iso_2022, encode_coding_sjis)
14137 (encode_coding_big5, encode_coding_charset): If coding requires safe
14138 encoding, produce a character specified by
14139 CODING_INHIBIT_CHARACTER_SUBSTITUTION.
14140
141412008-02-01 Dave Love <fx@gnu.org>
14142
14143 * xterm.c (XSetIMValues): Declare.
14144
14145 * process.c: Conditionally include sys/wait.h, pty.h.
14146
14147 * print.c (print_object): Fix print format for 64-bit systems.
14148
14149 * keyboard.c (modify_event_symbol): Fix print format for 64-bit systems.
14150
14151 * buffer.c (emacs_strerror): Declare.
14152
14153 * fontset.c (Fclear_face_cache): Declare.
14154 (accumulate_font_info): Comment-out (unused).
14155 (face_for_char, Fset_fontset_font, Ffontset_info): Remove unused
14156 variables.
14157
14158 * character.h (string_escape_byte8): Declare.
14159
14160 * charset.c (load_charset_map, load_charset_map_from_file): Remove
14161 unused vars.
14162 (Fdefine_charset_internal, Fsplit_char, syms_of_charset)
14163 (Fmap_charset_chars): Doc fix.
14164
14165 * coding.c (Vchar_coding_system_table, Qchar_coding_system): Remove.
14166 (Fset_coding_system_priority, Fset_coding_system_priority)
14167 (Fdefine_coding_system_internal): Doc fix.
14168
141692008-02-01 Dave Love <fx@gnu.org>
14170
14171 * s/osf5-0.h (C_SWITCH_SYSTEM) [!__GNUC__]: Remove -nointrinsics.
14172
141732008-02-01 Kenichi Handa <handa@m17n.org>
14174
14175 * character.c (string_escape_byte8): Make multibyte string with
14176 correct size.
14177
14178 * charset.c (Fmake_char): Delete unnecessary code.
14179
141802008-02-01 Kenichi Handa <handa@m17n.org>
14181
14182 * xfns.c (x_encode_text): Allocate coding.destination here, and
14183 call encode_coding_object with dst_object Qnil.
14184
14185 * buffer.c (Fset_buffer_multibyte): Convert 8-bit bytes to
14186 multibyte form correctly.
14187
14188 * fontset.c (fs_load_font): Check fontp->full_name (not fontname)
14189 against Vfont_encoding_alist.
14190
14191 * coding.c (Fdecode_sjis_char): Fix typo (0x7F->0xFF). Fix the
14192 handling of charset list.
14193 (encode_coding_iso_2022): Setup coding->safe_charsets in advance.
14194 (decode_coding_object): Move point to coding->dst_pos before
14195 calling post-read-conversion function.
14196 (encode_coding_object): Give correct arguments to
14197 pre-write-conversion. Ignore the return value of
14198 pre-write-conversion function. Pay attention to the case that
14199 pre-write-conversion changes the current buffer. If dst_object is
14200 Qt, even if coding->src_bytes is zero, allocate at least one byte
14201 to coding->destination.
14202
14203 * coding.h (JIS_TO_SJIS): Fix typo (j1->s1, j2->s2).
14204
14205 * charset.c (Fmake_char): Make it more backward compatible.
14206 (Fmap_charset_chars): Fix docstring.
14207
142082008-02-01 Dave Love <fx@gnu.org>
14209
14210 * coding.c: Doc fixes.
14211 (Fdefine_coding_system_alias): Use names, not symbols, in
14212 coding-system-alist.
14213
142142008-02-01 Kenichi Handa <handa@m17n.org>
14215
14216 * fontset.c (free_realized_fontsets): Call Fclear_face_cache instead
14217 of calling free_realized_face.
14218
142192008-02-01 Yong Lu <lyongu@asia-infonet.com>
14220
14221 * charset.c (read_hex): Don't treat SPC as a comment starter.
14222 (decode_char): If CODE_POINT_TO_INDEX returns -1, always return -1.
14223 (Fdecode_char): Fix typo.
14224
142252008-02-01 Kenichi Handa <handa@m17n.org>
14226
14227 * charset.h (struct charset): New member `code_space_mask'.
14228
14229 * coding.c (coding_set_source): Delete the local variable beg_byte.
14230 (encode_coding_charset, Fdefine_coding_system_internal):
14231 Delete the local variable charset.
14232 (Fdefine_coding_system_internal): Setup
14233 attrs[coding_attr_charset_valids] correctly.
14234
14235 * charset.c (CODE_POINT_TO_INDEX): Utilize `code_space_mask'
14236 member to check if CODE is valid or not.
14237 (Fdefine_charset_internal): Initialize `code_space_mask' member.
14238 (encode_char): Before calling CODE_POINT_TO_INDEX, check if CODE
14239 is within the range of charset->min_code and carset->max_code.
14240
142412008-02-01 Dave Love <fx@gnu.org>
14242
14243 * syntax.h (syntax_temp) [!__GNUC__]: Declare.
14244
14245 * dispextern.h (generate_ascii_font): Fix return type.
14246
14247 * xfaces.c (generate_ascii_font): Fix arg declaration.
14248
14249 * coding.c (coding_inherit_eol_type)
14250 (Fset_terminal_coding_system_internal)
14251 (Fset_safe_terminal_coding_system_internal): Fix arg declarations.
14252
142532008-02-01 Kenichi Handa <handa@m17n.org>
14254
14255 * coding.c (decode_coding_charset, encode_coding_charset): Handle
14256 multiple charsets correctly.
14257
142582008-02-01 Kenichi Handa <handa@m17n.org>
14259
14260 * search.c (boyer_moore): Fix handling of multibyte character
14261 translation.
14262
14263 * xdisp.c (display_mode_element): When the variable `elt' is
14264 changed, update `this' and `lisp_string'.
14265
142662008-02-01 Kenichi Handa <handa@m17n.org>
14267
14268 * buffer.c (Fset_buffer_multibyte): Fix 8-bit char handling.
14269
14270 * callproc.c (Fcall_process): Be sure to give the current buffer
14271 to decode_coding_c_string. Update PT and PT_BYTE after the insertion.
14272
14273 * charset.c (struct charset_map_entries): New struct.
14274 (load_charset_map): Rename from parse_charset_map. New args
14275 entries and n_entries. Change caller.
14276 (load_charset_map_from_file): Rename from load_charset_map.
14277 Change caller. New arg control_flag. Call load_charset_map at
14278 the tail.
14279 (load_charset_map_from_vector): New function.
14280 (Fdefine_charset_internal): Setup charset.compact_codes_p.
14281 (encode_char): If the charset is compact, change a character index
14282 to a code point.
14283
14284 * coding.c (coding_alloc_by_making_gap): Check the case that the
14285 source and destination are the same correctly.
14286 (decode_coding_raw_text): Set coding->consumed_char and
14287 coding->consumed to 0.
14288 (produce_chars): If coding->chars_at_source is nonzero, update
14289 coding->consumed_char and coding->consumed before calling
14290 alloc_destination.
14291 (Fdefine_coding_system_alias): Register ALIAS in
14292 Vcoding_system_alist.
14293 (syms_of_coding): Define `no-conversion' coding system at the tail.
14294
14295 * fileio.c (Finsert_file_contents): Set coding_system instead of
14296 val. If the current buffer is multibyte, always call
14297 decode_coding_gap.
14298
14299 * xfaces.c (try_font_list): Give higher priority to fontset's
14300 family than face's family.
14301
143022008-02-01 Kenichi Handa <handa@m17n.org>
14303
14304 * callproc.c (Fcall_process): Be sure to give the current buffer
14305 to decode_coding_c_string.
14306
14307 * xfaces.c (try_font_list): Give a family specified in a fontset
14308 higher priority than a family specified in a face.
14309
143102008-02-01 Kenichi Handa <handa@m17n.org>
14311
14312 * fileio.c (Finsert_file_contents): Fix calculation of `inserted'.
14313 Fix arguments to insert_from_buffer.
14314
14315 * xdisp.c (display_mode_element): Fix calculation of `bytepos'.
14316
143172008-02-01 Kenichi Handa <handa@m17n.org>
14318
14319 * coding.c (produce_chars): Set the variable `multibytep' correctly.
14320 (decode_coding_gap): Set coding->dst_multibyte correctly.
14321
143222008-02-01 Kenichi Handa <handa@m17n.org>
14323
14324 * coding.c (encode_coding_utf_8): Initialize produced_chars to 0.
14325 (decode_coding_utf_16): Fix converting high and low bytes to code-point.
14326 (encode_coding_utf_16): Substitute coding->default_char for
14327 non-Unicode characters.
14328 (decode_coding): Don't call record_insert here.
14329 (setup_coding_system): Initialize `surrogate' of
14330 coding->spec.utf_16 to 0.
14331 (EMIT_ONE_BYTE): Fix for multibyte case.
14332
14333 * insdel.c (insert_from_gap): Call record_insert.
14334
143352008-02-01 Kenichi Handa <handa@m17n.org>
14336
14337 * casefiddle.c (casify_region): Fix multibyte case.
14338
14339 * character.c (c_string_width): Add return type `int'.
14340 (char_string_with_unification): Delete arg ADVANCED.
14341
14342 * character.h (CHAR_VALID_P): Don't call CHARACTERP.
14343 (CHAR_STRING): Adjust for the change of char_string_with_unification.
14344 (CHAR_STRING_ADVANCE): Make it do-while statement.
14345
14346 * chartab.c (sub_char_table_set_range): Optimize for the case
14347 DEPTH == 3. Add workaround code for a GCC optimization bug.
14348
14349 * charset.c (parse_charset_map): Remove an unused variable.
14350
14351 * coding.c: Delete unused variables.
14352
14353 * fileio.c (Finsert_file_contents): Set coding_system to Qnil
14354 earlier. If inserted is zero and the coding system doesn't
14355 require flushing, don't call decode_coding_gap.
14356
14357 * syntax.h (SET_RAW_SYNTAX_ENTRY): Don't call make_number.
14358
143592008-02-01 Kenichi Handa <handa@m17n.org>
14360
14361 The following changes are for using Unicode as an internal
14362 character model, and use UTF-8 format for buffer/string
14363 representation.
14364
14365 * .gdbinit (xchartable): Adjust for the change of char table structure.
14366 (xsubchartable, xcoding, xcharset, xcurbuf): New commands.
14367
14368 * Makefile.in (obj): Add character.o and chartab.o.
14369 (lisp, shortlisp): Remove utf-8.elc.
14370 (*.o): For many files, change dependency on charset.h to
14371 character.h, and add dependency on character.h.
14372 (character.o, chartab.o): New targets.
14373
14374 * abbrev.c, bytecode.c, casefiddle.c, cmds.c, dispnew.c, doc.c:
14375 * doprnt.c, dosfns.c, frame.c, marker.c, minibuf.c, msdos.c:
14376 * w16select.c, w32bdf.c, w32console.c: Include "character.h" instead
14377 of "charset.h".
14378
14379 * dired.c, filelock.c: Include "character.h".
14380
14381 * alloc.c: Include "character.h" instead of "charset.h".
14382 (Fmake_char_table, make_sub_char_table): Move to chartab.c.
14383 (syms_of_alloc): Remove defsubr for Smake_char_table.
14384
14385 * buffer.c: Include "character.h" instead of "charset.h", don't
14386 include "coding.h".
14387 (Fset_buffer_multibyte): Adjust for UTF-8.
14388
14389 * buffer.h: EXFUN Fbuffer_live_p.
14390
14391 * callproc.c: Include "character.h" instead of "charset.h".
14392 (Fcall_process): Big change for the new code-conversion APIs.
14393
14394 * casetab.c: Include "character.h" instead of "charset.h".
14395 (set_canon, set_identity, shuffle): Adjust for the new
14396 map_char_table spec.
14397 (init_casetab_once): Call CHAR_TABLE_SET instead of directly
14398 accessing the char table structure.
14399
14400 * chartab.c: New file that implements char table.
14401
14402 * category.c: Include "character.h".
14403 (copy_category_entry): New function.
14404 (copy_category_table): Call map_char_table and copy_category_entry.
14405 (Fmake_category_table): Initialize all top-level slots.
14406 (char_category_set): New function.
14407 (modify_lower_category_set): Delete.
14408 (Fmodify_category_entry): Call char_table_ref_and_range.
14409
14410 * category.h (CATEGORY_SET): Just call char_category_set.
14411
14412 * ccl.c: Include "character.h".
14413 (Qccl, Qcclp): New variables.
14414 (CCL_WRITE_CHAR): Alway treat the arg CH as a character even if
14415 it's less than 256.
14416 (CCL_WRITE_MULTIBYTE_CHAR): Delete.
14417 (CCL_WRITE_STRING, CCL_READ_CHAR): Adjust for the change of SRC
14418 and DST type.
14419 (ccl_driver): Change types of argument, adjust code accordingly.
14420 (Fccl_execute, Fccl_execute_on_string): Adjust for the change of
14421 ccl_driver.
14422 (syms_of_ccl): Intern and staticpro Qccl and Qcclp.
14423
14424 * ccl.h (struct ccl_program): Delete members eol_type and multibyte.
14425 New members src_multibyte, dst_multibyte, consumed, and produced.
14426 (struct ccl_spec): Delete members decoder and encoder. New member ccl.
14427 (CODING_SPEC_CCL_PROGRAM): New macro.
14428 (ccl_driver): Update prototype.
14429 (Qccl, Qcclp, Fccl_program_p): Extern them.
14430 (CHECK_CCL_PROGRAM): New macro.
14431
14432 * character.c, character.h, chartab.c: New files.
14433
14434 * charset.c: Mostly re-written. Move character and multibyte sequence
14435 handling codes to character.c.
14436
14437 * charset.h: Mostly re-written. Move character and multibyte sequence
14438 handling codes to character.h.
14439
14440 * coding.c, coding.h: Mostly re-written.
14441
14442 * composite.c: Include "character.h" instead of "charset.h".
14443 (CHAR_WIDTH): Move to character.h.
14444 (HASH_KEY, HASH_VALUE): Delete.
14445
14446 * composite.h (enum composition_method): Change order of enumeration
14447 symbols.
14448
14449 * data.c: Include "character.h" instead of "charset.h".
14450 (Faref): Call CHAR_TABLE_REF for a char table.
14451 (Faset): Call CHAR_TABLE_SET for a char table.
14452
14453 * dispextern.h (free_realized_face, check_face_attribytes)
14454 (generate_ascii_font): Extern them.
14455 (free_realized_multibyte_face): Delete extern.
14456
14457 * disptab.h (DISP_CHAR_VECTOR): Adjust for the change of char
14458 table structure.
14459
14460 * editfns.c: Include "character.h" instead of "charset.h".
14461 (Fchar_to_string): Always call CHAR_STRING.
14462
14463 * emacs.c (main): Call init_charset_once, init_charset,
14464 syms_of_chartab, and syms_of_character.
14465
14466 * fileio.c: Include "character.h" instead of "charset.h".
14467 (Finsert_file_contents): Big change for the new code-conversion API.
14468 (choose_write_coding_system, Fwrite_region): Likewise.
14469 (build_annotations_2): Delete.
14470 (e_write): Big change for the new code-conversion API.
14471
14472 * fns.c: Include "character.h" instead of "charset.h".
14473 (copy_sub_char_table): Move to chartab.c.
14474 (Fcopy_sequence): Call copy_char_table for a char table.
14475 (concat): Delete codes calling count_multibyte.
14476 (string_char_to_byte, string_byte_to_char): Adjust for the new
14477 multibyte form.
14478 (internal_equal): Adjust for the change of char table structure.
14479 (Fchar_table_subtype, Fchar_table_parent, Fset_char_table_parent)
14480 (Fchar_table_extra_slot, Fset_char_table_extra_slot)
14481 (Fchar_table_range, Fset_char_table_range, Fset_char_table_default)
14482 (char_table_translate, optimize_sub_char_table)
14483 (Foptimize_char_table, map_char_table, Fmap_char_table): Move to
14484 chartab.c.
14485 (char_table_ref_and_index): Delete.
14486 (HASH_KEY, HASH_VALUE): Move to lisp.h.
14487 (Fmd5): Call preferred_coding_system instead of accessing
14488 Vcoding_category_list. Adjust for the new code-conversion API.
14489 (syms_of_fns): Move defsubr for char table related functions to
14490 chartab.c.
14491
14492 * fontset.c: Mostly re-written.
14493
14494 * fontset.h (struct font_info): Change type of the member encoding_type.
14495 (enum FONT_SPEC_INDEX): New enum.
14496 (fontset_font_pattern, fs_load_font): Update prototype.
14497 (FS_LOAD_FONT): Adjust for the change of fs_load_font.
14498
14499 * indent.c: Include "character.h" instead of "charset.h".
14500 (MULTIBYTE_BYTES_WIDTH): Call CHAR_WIDTH instead of WIDTH_BY_CHAR_HEAD.
14501
14502 * insdel.c: Include "character.h" instead of "charset.h".
14503 (copy_text): Don't refer to Vnonascii_translation_table.
14504 (insert_from_gap): New function.
14505
14506 * keyboard.c: Include "character.h" instead of "charset.h".
14507 (command_loop_1): Never call direct_output_forward_char before
14508 a non-ASCII character.
14509 (read_char): If Vkeyboard_translate_table is a char table, always
14510 translate a character.
14511
14512 * keymap.c: Include "character.h".
14513 (store_in_keymap): Handle the case that IDX is a cons.
14514 (Fdefine_key): Handle the case that KEY is a cons and the car part
14515 is also a cons (range).
14516 (push_key_description): Adjust for the new character code.
14517 (describe_vector): Call describe_char_table for a char table.
14518 (describe_char_table): New function.
14519
14520 * keymap.h (describe_char_table): Extern it.
14521
14522 * lisp.h (enum pvec_type): New member PVEC_SUB_CHAR_TABLE.
14523 (XSUB_CHAR_TABLE, XSETSUB_CHAR_TABLE): New macros.
14524 (CHAR_TABLE_ORDINARY_SLOTS, CHAR_TABLE_SINGLE_BYTE_SLOTS)
14525 (SUB_CHAR_TABLE_ORDINARY_SLOTS, SUB_CHAR_TABLE_STANDARD_SLOTS):
14526 Delete.
14527 (CHAR_TABLE_REF, CHAR_TABLE_SET): Adjust for the new char table
14528 structure.
14529 (CHAR_TABLE_TRANSLATE): Just call char_table_translate.
14530 (CHARTAB_SIZE_BITS_0, CHARTAB_SIZE_BITS_1, CHARTAB_SIZE_BITS_2)
14531 (CHARTAB_SIZE_BITS_3): New macros.
14532 (chartab_size): Extern it.
14533 (struct Lisp_Char_Table): Re-design.
14534 (struct Lisp_Sub_Char_Table): New structure.
14535 (HASH_KEY, HASH_VALUE): Move from fns.c.
14536 (CHARACTERBITS): Define as 22.
14537 (GLYPH_MASK_FACE, GLYPH_MASK_CHAR): Adjust for the above change.
14538 (SUB_CHAR_TABLE_P): Check PVEC_CHAR_TABLE.
14539 (GC_SUB_CHAR_TABLE_P): New macro.
14540 (Fencode_coding_string, Fdecode_coding_string): Update EXFUN.
14541 (code_convert_string_norecord): Deleted extern.
14542 (init_character_once, syms_of_character, init_charset)
14543 (syms_of_composite, Qeq, Fmakehash, insert_from_gap): Extern them.
14544
14545 * lread.c: Include "character.h".
14546 (read_multibyte): New arg NBYTES.
14547 (read_escape): Change the meaning of returned *BYTEREP.
14548 (to_multibyte): Delete.
14549 (read1): Adjust the handling of char table and string.
14550
14551 * print.c: Include "character.h" instead of "charset.h".
14552 (print_string): Convert 8-bit raw bytes to octal form by
14553 string_escape_byte8.
14554 (print_object): Adjust for the new multibyte form. Print 8-bit
14555 raw bytes always in octal form. Handle sub char table correctly.
14556
14557 * process.c: Include "character.h" instead of "charset.h".
14558 (read_process_output, send_process): Adjust for the new
14559 code-conversion API.
14560
14561 * puresize.h (BASE_PURESIZE): Increase.
14562
14563 * regex.c: Include "character.h" instead of "charset.h".
14564 (BYTE8_TO_CHAR, CHAR_BYTE8_P) [not emacs]: New dummy macros.
14565 (regex_compile): Accept a range whose starting and ending
14566 character have different leading bytes.
14567 (analyse_first): Adjust for the above change.
14568
14569 * search.c: Include "character.h" instead of "charset.h".
14570 (search_buffer, boyer_moore): Adjust for the new multibyte form.
14571 (Freplace_match): Adjust for the change of multibyte_char_to_unibyte.
14572
14573 * syntax.c: Include "character.h" instead of "charset.h".
14574 (syntax_parent_lookup): Delete.
14575 (Fmodify_syntax_entry): Accept a cons as CHAR.
14576 (skip_chars): Adjust for the new multibyte form.
14577 (init_syntax_once): Call char_table_set_range instead of directly
14578 accessing the structure of a char table.
14579
14580 * syntax.h (SET_RAW_SYNTAX_ENTRY): Call CHAR_TABLE_SET.
14581 (SYNTAX_ENTRY_FOLLOW_PARENT): Delete macro.
14582 (SET_RAW_SYNTAX_ENTRY_RANGE): New macro.
14583 (SYNTAX_ENTRY_INT): Call CHAR_TABLE_REF.
14584
14585 * term.c: Include "buffer.h" and "character.h".
14586 (encode_terminal_code, write_glyphs): Adjust for the new
14587 code-conversion API.
14588 (produce_glyphs): Call CHAR_WIDTH instead of CHARSET_WIDTH.
14589
14590 * w32term.c (x_new_font): Adjust for the change of FS_LOAD_FONT.
14591
14592 * xdisp.c: Include "character.h".
14593 (get_next_display_element): Adjust for the new multibyte form.
14594 (disp_char_vector): Adjust for the new char table structure.
14595 (decode_mode_spec_coding): Adjust for the new structure of
14596 coding system.
14597 (decode_mode_spec): Adjust for the new code-conversion API.
14598
14599 * xfaces.c: Include "character.h" instead of "charset.h".
14600 (load_face_font): Adjust for the change of choose_face_font and
14601 FS_LOAD_FONT.
14602 (generate_ascii_font): New function.
14603 (set_lface_from_font_name): Adjust for the change of FS_LOAD_FONT.
14604 (set_font_frame_param): Adjust for the change of choose_face_font.
14605 (free_realized_face): Make it public.
14606 (free_realized_faces_for_fontset): Rename from
14607 free_realized_multibyte_face. Free also faces realized for ASCII.
14608 (choose_face_font): Change arguments. Adjust for the change of
14609 fontset_font_pattern and FS_LOAD_FONT.
14610
14611 * xfns.c: Include "character.h".
14612 (x_encode_text): Adjust for the new code-conversion API.
14613
14614 * xselect.c: Don't include "charset.h".
14615 (selection_data_to_lisp_data): Adjust for the new code conversion API.
14616
14617 * xterm.c: Include "character.h".
14618 (x_encode_char): New argument CHARSET. Change caller.
14619 (x_get_char_face_and_encoding, x_get_glyph_face_and_encoding):
14620 Call ENCODE_CHAR instead of SPLIT_CHAR.
14621 (x_produce_glyphs): Don't check Vnonascii_translation_table Call
14622 CHAR_WIDTH instead of CHARSET_WIDTH.
14623 (XTread_socket): Adjust for the new code-conversion API.
14624 (x_new_font): Adjust for the change of FS_LOAD_FONT.
14625 (x_load_font): Adjust for the change of struct font.
14626
146272008-02-01 Stefan Monnier <monnier@iro.umontreal.ca>
14628
14629 * xfaces.c (face_at_buffer_position): Remove unused vars.
14630
146312008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
14632
14633 * ccl.c (CCL_WRITE_CHAR, CCL_WRITE_MULTIBYTE_CHAR):
14634 Fix overflow checking.
14635
146362008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
14637
14638 * ccl.c (CCL_WRITE_CHAR, CCL_WRITE_MULTIBYTE_CHAR, ccl_driver):
14639 Cancel previous change.
14640
146412008-01-31 Kenichi Handa <handa@ni.aist.go.jp>
14642
14643 * ccl.c (CCL_WRITE_CHAR): Increment extra_bytes only when
14644 ccl->eight_bit_control. Fix check for buffer overflow.
14645 (CCL_WRITE_MULTIBYTE_CHAR): Fix check for buffer overflow.
14646 (ccl_driver): Initialize extra_bytes to 0.
14647
146482008-01-31 Kenichi Handa <handa@ni.aist.go.jp>
14649
14650 * keyboard.c (make_ctrl_char): If C is a multibyte character, just
14651 return it ORed with ctrl_modifier.
14652
146532008-01-29 Miles Bader <miles@gnu.org>
14654
14655 * macterm.c (XTset_vertical_scroll_bar): Fix merge mistake.
14656
146572008-01-28 Jason Rumney <jasonr@gnu.org>
14658
14659 * w32.c (stat): Don't double check for networked drive.
14660
146612008-01-28 Stefan Monnier <monnier@iro.umontreal.ca>
14662
14663 * window.c (run_window_configuration_change_hook): New function.
14664 Code extracted from set_window_buffer. Set the selected frame.
14665 (set_window_buffer): Use it.
14666 * window.h (run_window_configuration_change_hook): Declare.
14667 * dispnew.c (change_frame_size_1): Use it instead of set-window-buffer.
14668
14669 * keyboard.c (read_char): Yet another int/Lisp_Object mixup (YAILOM).
14670
146712008-01-27 Dan Nicolaescu <dann@ics.uci.edu>
14672
14673 * Makefile.in: Remove references to unused macros.
14674
146752008-01-26 Eli Zaretskii <eliz@gnu.org>
14676
14677 * w32.c (g_b_init_get_sid_sub_authority)
14678 (g_b_init_get_sid_sub_authority_count): New static variables.
14679 (GetSidSubAuthority_Proc, GetSidSubAuthorityCount_Proc): New typedefs.
14680 (get_sid_sub_authority, get_sid_sub_authority_count): New functions.
14681 (init_user_info): Use them to retrieve uid and gid.
14682 Use 500/513, the Windows defaults, as Administrator's uid/gid.
14683 (fstat): Use pw_uid and pw_gid from the_passwd structure for
14684 st_uid and st_gid of the file.
14685
146862008-01-26 Jason Rumney <jasonr@gnu.org>
14687
14688 * w32.c (logon_network_drive): New function.
14689 (stat): Use it.
14690
146912008-01-26 Chong Yidong <cyd@stupidchicken.com>
14692
14693 * xdisp.c (pos_visible_p): Handle the case where charpos falls on
14694 invisible text covered with an ellipsis.
14695
146962008-01-25 Richard Stallman <rms@gnu.org>
14697
14698 * xdisp.c (redisplay_window): Run Qwindow_text_change_functions and
14699 jump back to beginning. Move some other initializations after that.
14700 (Qwindow_text_change_functions, Vwindow_text_change_functions):
14701 New variables.
14702 (syms_of_xdisp): Init them.
14703
14704 * keyboard.c (read_char): Restore echo_message_buffer after redisplay.
14705
14706 * buffer.c (reset_buffer_local_variables):
14707 Implement `permanent-local-hook'.
14708 (Qpermanent_local_hook): New variable.
14709 (syms_of_buffer): Init and staticpro it.
14710
147112008-01-25 Michael Albinus <michael.albinus@gmx.de>
14712
14713 * dbusbind.c (xd_retrieve_arg): Pacify GCC on x86_64 GNU/Linux.
14714
147152008-01-25 Thien-Thi Nguyen <ttn@gnuvola.org>
14716
14717 * fns.c (Fclrhash): Return TABLE.
14718
147192008-01-23 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
14720
14721 * macterm.c (x_scroll_bar_create): Initialize bar->redraw_needed_p.
14722 (XTset_vertical_scroll_bar): Redraw scroll bar if bar->redraw_needed_p
14723 is set even without positional changes.
14724 (x_scroll_bar_clear): Set bar->redraw_needed_p.
14725
14726 * macterm.h (struct scroll_bar): New member `redraw_needed_p'.
14727
147282008-01-23 Jason Rumney <jasonr@gnu.org>
14729
14730 * xterm.c (handle_one_xevent): Revert to counting chars not bytes.
14731
14732 * w32term.c (w32_read_socket) <WM_CHAR>: Decode characters outside
14733 the unicode range available in MULE by locale-coding-system.
14734 Improve dbcs lead byte detection. Set event timestamp and modifiers
14735 earlier.
14736
147372008-01-23 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
14738
14739 * mac.c (mac_emacs_pid) [MAC_OSX]: New variable.
14740 [MAC_OSX] (init_mac_osx_environment): Initialize it.
14741 [MAC_OSX] (mac_try_close_socket) [SELECT_USE_CFSOCKET]: Return 0
14742 when used on child processes.
14743
147442008-01-21 Michael Albinus <michael.albinus@gmx.de>
14745
14746 * dbusbind.c (Fdbus_method_return_internal): Rename from
14747 Fdbus_method_return.
14748 (Fdbus_unregister_object): Move to dbus.el.
14749 (Fdbus_call_method, Fdbus_method_return_internal)
14750 (Fdbus_send_signal): Improve debug messages.
14751
147522008-01-20 Martin Rudalics <rudalics@gmx.at>
14753
14754 * undo.c (undo_inhibit_record_point): New variable.
14755 (syms_of_undo): Initialize it.
14756 (record_point): Don't record point when undo_inhibit_record_point
14757 is set.
14758
147592008-01-19 Stefan Monnier <monnier@iro.umontreal.ca>
14760
14761 * process.c (list_processes_1): Don't use SCHARS on a nil buffer name.
14762
14763 * xdisp.c (Qauto_hscroll_mode): New var.
14764 (syms_of_xdisp): Initialize it.
14765 (hscroll_window_tree): Use it to lookup `auto-hscroll-mode' in each
14766 window's buffer.
14767 (hscroll_windows): Don't check automatic_hscrolling_p here.
14768
14769 * window.c (set_window_buffer): Don't unnecessarily reset hscroll and
14770 vscroll if we're setting window-buffer to the value it already has.
14771
147722008-01-18 Dan Nicolaescu <dann@ics.uci.edu>
14773
14774 * m/intel386.h: Remove references to XENIX.
14775
147762008-01-17 Andreas Schwab <schwab@suse.de>
14777
14778 * m/amdx86-64.h (START_FILES, LIB_STANDARD): Use HAVE_LIB64_DIR
14779 instead of HAVE_X86_64_LIB64_DIR.
14780 * m/ibms390x.h (START_FILES, LIB_STANDARD): Likewise.
14781
147822008-01-17 Glenn Morris <rgm@gnu.org>
14783
14784 * m/ibms390x.h (START_FILES, LIB_STANDARD): Adjust value according
14785 to HAVE_X86_64_LIB64_DIR.
14786
147872008-01-16 Dan Nicolaescu <dann@ics.uci.edu>
14788
14789 * s/irix3-3.h:
14790 * s/irix4-0.h:
14791 * s/386-ix.h:
14792 * s/domain.h:
14793 * s/hpux9-x11r4.h:
14794 * s/hpux9shxr4.h: Remove files for systems no longer supported.
14795
14796 * sysdep.c: Remove code containing references to symbols defined
14797 by unsupported systems.
14798
147992008-01-16 Glenn Morris <rgm@gnu.org>
14800
14801 * coding.c (select-safe-coding-system-function): Doc fix.
14802
148032008-01-15 Glenn Morris <rgm@gnu.org>
14804
14805 * config.in: Revert 2008-01-13 change: this is a generated file.
14806
148072008-01-13 Tom Tromey <tromey@redhat.com>
14808
14809 * lisp.h: Fix typo.
14810
148112008-01-13 Dan Nicolaescu <dann@ics.uci.edu>
14812
14813 * m/sequent-ptx.h:
14814 * m/sequent.h:
14815 * s/ptx.h:
14816 * s/ptx4-2.h:
14817 * s/ptx4.h: Remove files for systems no longer supported.
14818
14819 * callproc.c (Fcall_process): Fix previous change.
14820
148212008-01-13 Dan Nicolaescu <dann@ics.uci.edu>
14822
14823 * unexsunos4.c: Remove file, system not supported anymore.
14824
14825 * m/mips.h:
14826 * m/intel386.h:
14827 * callproc.c:
14828 * config.in:
14829 * ecrt0.c:
14830 * emacs.c:
14831 * fileio.c:
14832 * frame.c:
14833 * getpagesize.h:
14834 * keyboard.c:
14835 * lread.c:
14836 * process.c:
14837 * puresize.h:
14838 * sysdep.c:
14839 * systty.h:
14840 * syswait.h:
14841 * unexec.c:
14842 * xdisp.c:
14843 * alloc.c: Remove code containing references to symbols defined by
14844 unsupported systems.
14845
148462008-01-11 Kenichi Handa <handa@ni.aist.go.jp>
14847
14848 * coding.c (detect_coding_mask): Fix previous change.
14849
148502008-01-09 Kenichi Handa <handa@ni.aist.go.jp>
14851
14852 * coding.c (detect_coding_iso2022): New arg
14853 latin_extra_code_state. Allow Latin extra codes only
14854 when *latin_extra_code_state is nonzero.
14855 (detect_coding_mask): If there is a NULL byte, detect the encoding
14856 as UTF-16 or binary. If Latin extra codes exist, detect the
14857 encoding as ISO-2022 only when there's no other proper encoding is
14858 found.
14859
148602008-01-08 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
14861
14862 * frame.c (Fmake_terminal_frame): Use #ifdef MAC_OS8 instead of
14863 #ifdef MAC_OS.
14864
148652008-01-08 Richard Stallman <rms@gnu.org>
14866
14867 * fileio.c (Ffile_name_directory, Fexpand_file_name): Doc fixes.
14868
148692008-01-06 Nick Roberts <nickrob@snap.net.nz>
14870
14871 * keyboard.c (parse_menu_item): Don't enclose key bindings on
14872 menu bar in parentheses.
14873
148742008-01-06 Dan Nicolaescu <dann@ics.uci.edu>
14875
14876 * m/7300.h:
14877 * m/acorn.h:
14878 * m/alliant-2800.h:
14879 * m/alliant.h:
14880 * m/alliant1.h:
14881 * m/alliant4.h:
14882 * m/altos.h:
14883 * m/amdahl.h:
14884 * m/apollo.h:
14885 * m/att3b.h:
14886 * m/aviion-intel.h:
14887 * m/aviion.h:
14888 * m/celerity.h:
14889 * m/clipper.h:
14890 * m/cnvrgnt.h:
14891 * m/convex.h:
14892 * m/cydra5.h:
14893 * m/delta88k.h:
14894 * m/dpx2.h:
14895 * m/dual.h:
14896 * m/elxsi.h:
14897 * m/f301.h:
14898 * m/gould-np1.h:
14899 * m/gould.h:
14900 * m/i860.h:
14901 * m/ibmps2-aix.h:
14902 * m/ibmrt-aix.h:
14903 * m/ibmrt.h:
14904 * m/irist.h:
14905 * m/is386.h:
14906 * m/isi-ov.h:
14907 * m/mega68.h:
14908 * m/mg1.h:
14909 * m/news-r6.h:
14910 * m/news-risc.h:
14911 * m/news.h:
14912 * m/nh3000.h:
14913 * m/nh4000.h:
14914 * m/ns16000.h:
14915 * m/ns32000.h:
14916 * m/nu.h:
14917 * m/orion.h:
14918 * m/orion105.h:
14919 * m/paragon.h:
14920 * m/pfa50.h:
14921 * m/plexus.h:
14922 * m/pyramid.h:
14923 * m/pyrmips.h:
14924 * m/sh3el.h:
14925 * m/sps7.h:
14926 * m/sr2k.h:
14927 * m/stride.h:
14928 * m/sun1.h:
14929 * m/sun2.h:
14930 * m/sun3-68881.h:
14931 * m/sun3-fpa.h:
14932 * m/sun3-soft.h:
14933 * m/sun3.h:
14934 * m/sun386.h:
14935 * m/symmetry.h:
14936 * m/tad68k.h:
14937 * m/tahoe.h:
14938 * m/targon31.h:
14939 * m/tek4300.h:
14940 * m/tekxd88.h:
14941 * m/tower32.h:
14942 * m/tower32v3.h:
14943 * m/ustation.h:
14944 * m/wicat.h:
14945 * m/xps100.h:
14946 * s/cxux.h:
14947 * s/cxux7.h:
14948 * s/dgux.h:
14949 * s/dgux4.h:
14950 * s/dgux5-4-3.h:
14951 * s/dgux5-4r2.h:
14952 * s/esix.h:
14953 * s/esix5r4.h:
14954 * s/hiuxmpp.h:
14955 * s/hiuxwe2.h:
14956 * s/iris3-5.h:
14957 * s/iris3-6.h:
14958 * s/isc2-2.h:
14959 * s/isc3-0.h:
14960 * s/isc4-0.h:
14961 * s/isc4-1.h:
14962 * s/newsos5.h:
14963 * s/newsos6.h:
14964 * s/osf1.h:
14965 * s/osf5-0.h:
14966 * s/riscix1-1.h:
14967 * s/riscix12.h:
14968 * s/sco4.h:
14969 * s/sco5.h:
14970 * s/sunos4-0.h:
14971 * s/sunos4-1.h:
14972 * s/sunos413.h:
14973 * s/sunos4shr.h:
14974 * s/umax.h:
14975 * s/unipl5-2.h:
14976 * s/xenix.h:
14977 * cxux-crt0.s:
14978 * unexapollo.c:
14979 * unexconvex.c:
14980 * unexenix.c:
14981 * unexsni.c: Remove files for systems no longer supported.
14982
14983 * m/intel386.h: Remove references to unsupported systems.
14984
14985 * w32.c (get_emacs_configuration): Remove reference to i860.
14986
14987 * sysdep.c: Remove dead code.
14988
149892008-01-05 Dan Nicolaescu <dann@ics.uci.edu>
14990
14991 * s/rtu.h:
14992 * m/masscomp.h: Remove files. Platform is obsolete.
14993
149942008-01-04 Michael Albinus <michael.albinus@gmx.de>
14995
14996 * dbusbind.c (Fdbus_method_return): New function.
14997 (xd_read_message): Add the serial number to the event.
14998 (Fdbus_register_method): Activate the function.
14999
150002008-01-03 Stefan Monnier <monnier@iro.umontreal.ca>
15001
15002 * keyboard.c (read_key_sequence): Fix typo.
15003
150042008-01-03 Michael Albinus <michael.albinus@gmx.de>
15005
15006 * dbusbind.c (all): Replace XCAR by CAR_SAFE and XCDR by CDR_SAFE.
15007 (xd_signature, xd_append_arg): Handle element type detection for
15008 empty arrays.
15009 (Fdbus_call_method, Fdbus_send_signal): Undo type casting for
15010 SDATA () calls; this must be solved more general.
15011 (Fdbus_register_signal): Use SBYTES instead of strlen.
15012
150132008-01-03 Magnus Henoch <magnus@zemdatav>
15014
15015 * dbusbind.c (xd_append_arg): Use unsigned char instead of
15016 unsigned int for byte values (necessary for big-endian platform).
15017 (Fdbus_call_method): Handle the case of no returned arguments.
15018
150192007-12-31 Tom Tromey <tromey@redhat.com> (tiny change)
15020
15021 * dbusbind.c (xd_read_message): Use non-static input_event struct.
15022
150232007-12-31 Magnus Henoch <mange@freemail.hu>
15024
15025 * dbusbind.c (xd_signature): Signature of variant is just "v".
15026
150272007-12-30 Michael Albinus <michael.albinus@gmx.de>
15028
15029 * dbusbind.c: Fix several errors and compiler warnings.
15030 Reported by Tom Tromey <tromey@redhat.com>.
15031 (XD_ERROR, XD_DEBUG_MESSAGE)
15032 (XD_DEBUG_VALID_LISP_OBJECT_P): Wrap code with "do ... while (0)".
15033 (xd_append_arg): Part for basic D-Bus types rewritten.
15034 (xd_retrieve_arg): Split implementation of DBUS_TYPE_BYTE and
15035 DBUS_TYPE_(U)INT16. Don't call XD_DEBUG_MESSAGE with "%f" if not
15036 appropriate.
15037 (xd_read_message): Return Qnil. Don't signal an error; it is not
15038 useful during event reading.
15039 (Fdbus_register_signal): Signal an error if the check for
15040 FUNCTIONP fails.
15041 (Fdbus_register_method): New function. The implementation is not
15042 complete, the call of the function signals an error therefore.
15043 (Fdbus_unregister_object): New function, renamed from
15044 Fdbus_unregister_signal. The initial check signals an error, if
15045 the object is not well formed.
15046
150472007-12-30 Richard Stallman <rms@gnu.org>
15048
15049 * textprop.c (get_char_property_and_overlay):
15050 Signal error if POSITION is out of range in a buffer.
15051
150522007-12-29 Martin Rudalics <rudalics@gmx.at>
15053
15054 * w32fns.c (Fx_create_frame): Make copy of frame parameters
15055 because the original parameters are in pure storage now.
15056
150572007-12-24 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
15058
15059 * xdisp.c (phys_cursor_in_rect_p): Check if cursor is in fringe area.
15060
150612007-12-22 Eli Zaretskii <eliz@gnu.org>
15062
15063 * callint.c (syms_of_callint) <command-history>: Add reference to
15064 history-length in the doc string.
15065
150662007-12-17 Jason Rumney <jasonr@gnu.org>
15067
15068 * w32fns.c (w32_wnd_proc) <WM_KEYDOWN>: Cast char to unsigned
15069 before passing as wParam.
15070
150712007-12-22 Michael Albinus <michael.albinus@gmx.de>
15072
15073 * dbusbind.c (xd_retrieve_arg): Handle DBUS_TYPE_BYTE,
15074 DBUS_TYPE_INT16, DBUS_TYPE_UINT16, DBUS_TYPE_INT64,
15075 DBUS_TYPE_UINT64, DBUS_TYPE_DOUBLE and DBUS_TYPE_SIGNATURE.
15076 Return float when DBUS_TYPE_INT32 or DBUS_TYPE_UINT32 do not fit
15077 as number.
15078 (Fdbus_call_method): Fix docstring.
15079
150802007-12-21 Michael Albinus <michael.albinus@gmx.de>
15081
15082 * dbusbind.c (XD_BASIC_DBUS_TYPE, XD_DBUS_TYPE_P, XD_NEXT_VALUE):
15083 New macros.
15084 (XD_SYMBOL_TO_DBUS_TYPE): Rename from XD_LISP_SYMBOL_TO_DBUS_TYPE.
15085 (XD_OBJECT_TO_DBUS_TYPE): Rename from XD_LISP_OBJECT_TO_DBUS_TYPE.
15086 Simplify.
15087 (xd_signature): New function.
15088 (xd_append_arg): Compute also signatures. Major rewrite.
15089 (xd_retrieve_arg): Make debug messages friendly.
15090 (Fdbus_call_method, Fdbus_send_signal): Extend docstring.
15091 Check for signatures of arguments.
15092
150932007-12-19 Michael Albinus <michael.albinus@gmx.de>
15094
15095 * dbusbind.c (QCdbus_type_byte, QCdbus_type_boolean)
15096 (QCdbus_type_int16, QCdbus_type_uint16, QCdbus_type_int32)
15097 (QCdbus_type_uint32, QCdbus_type_int64, QCdbus_type_uint64)
15098 (QCdbus_type_double, QCdbus_type_string, QCdbus_type_object_path)
15099 (QCdbus_type_signature, QCdbus_type_array, QCdbus_type_variant)
15100 (QCdbus_type_struct, QCdbus_type_dict_entry): New D-Bus type symbols.
15101 (XD_LISP_SYMBOL_TO_DBUS_TYPE): New macro.
15102 (XD_LISP_OBJECT_TO_DBUS_TYPE): Add compound types.
15103 (xd_retrieve_value): Remove. Functionality included in ...
15104 (xd_append_arg): New function.
15105 (Fdbus_call_method, Fdbus_send_signal): Apply it.
15106
151072007-12-16 Michael Albinus <michael.albinus@gmx.de>
15108
15109 * dbusbind.c (top): Include <stdio.h>.
15110 (Fdbus_call_method, Fdbus_send_signal): Apply type cast in
15111 dbus_message_new_method_call and dbus_message_new_signal.
15112 (Fdbus_register_signal): Rename unique_name to uname.
15113 Check handler for FUNCTIONP instead of CHECK_SYMBOL. Handle case of
15114 non-existing unique name. Fix typos in matching rule. Return an
15115 object which is useful in Fdbus_unregister_signal.
15116 (Fdbus_unregister_signal): Reimplementation, in order to remove
15117 only the corresponding entry.
15118 (Vdbus_registered_functions_table): Change the order of entries.
15119 Apply these changes in xd_read_message and Fdbus_register_signal.
15120
151212007-12-16 Andreas Schwab <schwab@suse.de>
15122
15123 * fileio.c (Finsert_file_contents): Fix overflow check to not
15124 depend on undefined integer overflow.
15125
151262007-12-14 Jason Rumney <jasonr@gnu.org>
15127
15128 * w32term.c (w32_read_socket): Use MULTIBYTE_CHAR_KEYSTROKE_EVENT
15129 for characters above 127.
15130
151312007-12-13 Jason Rumney <jasonr@gnu.org>
15132
15133 * w32fns.c (w32_wnd_proc, Fw32_reconstruct_hot_key): Range check
15134 before dereferencing array.
15135 (lookup_vk_code): Remove zero comparison.
15136
151372007-12-14 Michael Albinus <michael.albinus@gmx.de>
15138
15139 * dbusbind.c (xd_retrieve_value, xd_retrieve_arg)
15140 (Fdbus_call_method, Fdbus_send_signal, xd_read_message):
15141 Use `unsigned int' instead of `uint'.
15142 (xd_read_message, Fdbus_register_signal): Split expressions into
15143 multiple lines before operators "&&" and "||", according to the
15144 GNU Coding Standards.
15145
151462007-12-14 Eli Zaretskii <eliz@gnu.org>
15147
15148 * dispextern.h (WINDOWS_NT): Fix incorrect spelling of WINDOWSNT.
15149
151502007-12-12 Juri Linkov <juri@jurta.org>
15151
15152 * buffer.c (Frename_buffer): In interactive spec replace
15153 `read-buffer' with `read-string' that uses `buffer-name-history'
15154 as history, and the current buffer's name as default.
15155
151562007-12-10 Stefan Monnier <monnier@iro.umontreal.ca>
15157
15158 * keyboard.c (Fcommand_execute): Call Qcall_interactively instead of
15159 manipulating the backtrace manually.
15160 (make_lispy_event): Merge the ASCII and MULTIBYTE cases.
15161 (struct backtrace, backtrace_list): Remove.
15162 (command_loop_1): Remove dead var `no_direct'.
15163
15164 * buffer.c (reset_buffer_local_variables): If permanent_too is 0, also
15165 preserve non-built-in buffer-local variables.
15166 (Fkill_all_local_variables): Don't re-create&re-set permanent
15167 buffer-local variables.
15168
151692007-12-09 Juri Linkov <juri@jurta.org>
15170
15171 * buffer.c (Frename_buffer): Change interactive spec from "s" to
15172 Lisp code that uses `read-buffer' with current buffer as default.
15173
151742007-12-08 Michael Albinus <michael.albinus@gmx.de>
15175
15176 * dbusbind.c (xd_read_message): Generate an event for every
15177 registered handler. There might be several handlers registered
15178 for the same signal.
15179 (Fdbus_register_signal): Don't overwrite a registration for the
15180 same signal. Add a new registration if handlers are different.
15181 (Vdbus_registered_functions_table): Rework doc string.
15182
151832007-12-07 Michael Albinus <michael.albinus@gmx.de>
15184
15185 * dbusbind.c (Fdbus_get_unique_name, xd_read_message)
15186 (Fdbus_register_signal): Use DBUS_MAXIMUM_NAME_LENGTH and
15187 DBUS_MAXIMUM_MATCH_RULE_LENGTH for string lengths.
15188 (Fdbus_call_method, Fdbus_send_signal, Fdbus_register_signal):
15189 Unify argument lists.
15190 (xd_read_message, Fdbus_register_signal): Reorder and extend event
15191 arguments and hash table keys. Use unique name for service.
15192 (Fdbus_unregister_signal): Remove checks.
15193 (Vdbus_registered_functions_table): Fix doc string.
15194
151952007-12-05 Magnus Henoch <mange@freemail.hu>
15196
15197 * process.c (make_process): Initialize pty_flag to 0.
15198
151992007-12-05 Jason Rumney <jasonr@gnu.org>
15200
15201 * image.c (xbm_load) [WINDOWSNT]: Shuffle the bits of directly
15202 specified XBMs.
15203
152042007-12-05 Richard Stallman <rms@gnu.org>
15205
15206 * xdisp.c (syms_of_xdisp) <scroll-conservatively>: Doc fix.
15207
152082007-12-05 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
15209
15210 * mac.c (cfsockets_for_select) [MAC_OSX && SELECT_USE_CFSOCKET]:
15211 New variable.
15212 (mac_try_close_socket) [MAC_OSX]: New function.
15213 [MAC_OSX] (sys_select) [SELECT_USE_CFSOCKET]:
15214 Update cfsockets_for_select. Replace invalid CFRunLoop source.
15215
15216 * sysdep.c (emacs_close) [MAC_OSX && HAVE_CARBON]:
15217 Use mac_try_close_socket.
15218
152192007-12-05 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
15220
15221 * unexmacosx.c (unrelocate): New argument BASE. Use it instead of
15222 reloc_base.
15223 (copy_dysymtab): Compute relocation base here.
15224 (rebase_reloc_address) [__ppc64__]: New function.
15225 (copy_dysymtab) [__ppc64__]: Use it if relocation base needs to be
15226 changed.
15227
152282007-12-05 Jason Rumney <jasonr@gnu.org>
15229
15230 * w32proc.c (sys_spawnve): Quote args with wildcards.
15231
152322007-12-05 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
15233
15234 * unexmacosx.c (copy_data_segment): Also copy __gcc_except_tab and
15235 __objc_* sections.
15236 (unrelocate) [_LP64]: Set relocation base to address of data segment.
15237
152382007-12-05 Michael Albinus <michael.albinus@gmx.de>
15239
15240 * dbusbind.c (xd_read_message): Return value is a Lisp_Object.
15241 Move check for Vdbus_registered_functions_table to
15242 xd_read_queued_messages.
15243 (xd_read_queued_messages): Protect xd_read_message calls by
15244 internal_condition_case_1.
15245
152462007-12-04 Michael Albinus <michael.albinus@gmx.de>
15247
15248 * dbusbind.c (QCdbus_system_bus, QCdbus_session_bus): Rename from
15249 Qdbus_system_bus and Qdbus_session_bus, respectively.
15250 (Vdbus_intern_symbols): Remove.
15251 (Vdbus_registered_functions_table): New hash table.
15252 (XD_SYMBOL_INTERN_SYMBOL): Remove.
15253 (xd_read_message, Fdbus_register_signal, Fdbus_unregister_signal):
15254 Rewrite in order to manage registered functions by hash table
15255 Vdbus_registered_functions_table.
15256
152572007-12-03 Jan Djärv <jan.h.d@swipnet.se>
15258
15259 * xterm.c: Update URL to Window Manager Specification in comment.
15260
152612007-12-02 Michael Albinus <michael.albinus@gmx.de>
15262
15263 * config.in (HAVE_DBUS): Add.
15264
15265 * Makefile.in (HAVE_DBUS): Add D-Bus definitions if defined.
15266 (ALL_CFLAGS): Add ${DBUS_CFLAGS}.
15267 (obj): Add $(DBUS_OBJ).
15268 (LIBES): Add $(DBUS_LIBS).
15269 (dbusbind.o): New target.
15270
15271 * dbusbind.c: New file.
15272
15273 * emacs.c (main): Call syms_of_dbusbind when HAVE_DBUS is defined.
15274
15275 * keyboard.c: All D-Bus related code is wrapped by "#ifdef HAVE_DBUS".
15276 (Qdbus_event): New Lisp symbol.
15277 (kbd_buffer_get_event, make_lispy_event): Handle DBUS_EVENT.
15278 (gobble_input): Call xd_read_queued_messages, reading D-Bus messages.
b97439ce 15279 (keys_of_keyboard): Define dbus-event.
aac0c6e3
MR
15280
15281 * termhooks.h (event_kind): Add DBUS_EVENT when HAVE_DBUS is defined.
15282
152832007-12-01 Richard Stallman <rms@gnu.org>
15284
15285 * search.c (syms_of_search) <inhibit-changing-match-data>: Doc fix.
15286
152872007-11-30 Jason Rumney <jasonr@gnu.org>
15288
15289 * w32console.c (w32con_ins_del_lines, scroll_line): Clip to window.
15290 (w32con_reset_terminal_modes): Clear screen buffer.
15291 (w32_face_attributes): Don't use color indexes that are out of range.
15292 Only reverse the default colors.
15293
15294 * xfaces.c (map_tty_color, tty_color_name): Remove special case for
15295 WINDOWSNT.
15296
15297 * w32console.c, w32term.h (vga_stdcolor_name): Remove.
15298
152992007-11-29 Jason Rumney <jasonr@gnu.org>
15300
15301 * w32console.c: Leave HAVE_WINDOW_SYSTEM defined.
15302 (w32_face_attributes): Use Vtty_defined_color_alist to determine
15303 if the terminal colors are initialized.
15304 (unspecified_fg, unspecified_bg): Remove unused declarations.
15305
153062007-11-29 Andreas Schwab <schwab@suse.de>
15307
15308 * keyboard.c (apply_modifiers): Fix typo.
15309
153102007-11-29 Richard Stallman <rms@gnu.org>
15311
15312 * keymap.c (Fcurrent_local_map): Doc fix.
15313
153142007-11-28 Petr Salinger <Petr.Salinger@seznam.cz> (tiny change)
15315
15316 * s/gnu-kfreebsd.h: New file.
15317
153182007-11-28 Stefan Monnier <monnier@iro.umontreal.ca>
15319
15320 * buffer.c (Fget_buffer_create, Fmake_indirect_buffer):
15321 Don't cast redundantly.
15322
15323 * keyboard.c (KEY_TO_CHAR): New macro.
15324 (parse_modifiers, apply_modifiers): Accept integer arguments.
15325 (read_key_sequence): Use them to unify the "shift->unshift" mapping
15326 for chars and symbol keys.
15327 After doing such remapping, apply function-key-map again.
15328
153292007-11-27 Dan Nicolaescu <dann@ics.uci.edu>
15330
15331 * Makefile.in (SOME_MACHINE_LISP): Remove VMS files, they are not
15332 compiled anymore.
15333
153342007-11-26 Andreas Schwab <schwab@suse.de>
15335
15336 * process.c (list_processes_1): Fix indentation level of the
15337 command column.
15338
153392007-11-23 Andreas Schwab <schwab@suse.de>
15340
15341 * editfns.c (Fformat): Handle %c specially since it requires the
15342 argument to be of type int.
15343
153442007-11-23 Markus Triska <markus.triska@gmx.at>
15345
15346 * emacs.c (main): Call init_editfns before init_process, since
15347 init_process sets Vprocess_connection_type depending on OS release.
15348
153492007-11-22 Stefan Monnier <monnier@iro.umontreal.ca>
15350
15351 * data.c (do_symval_forwarding): Use same code as in find_symbol_value.
15352 (find_symbol_value): Use do_symval_forwarding.
15353
15354 * data.c (set_internal): Set the value in the `cons-cell' (for
15355 Buffer_Local_values) not only for frame-local variables.
15356
153572007-11-22 Andreas Schwab <schwab@suse.de>
15358
15359 * data.c (Fnumber_to_string): Add cast when passing EMACS_INT
15360 values to sprintf.
15361 * keymap.c (Fsingle_key_description): Likewise.
15362 * print.c (print_object): Likewise.
15363
153642007-11-22 Jan Djärv <jan.h.d@swipnet.se>
15365
15366 * gtkutil.c (update_frame_tool_bar): Don't call x-gtk-map-stock if
15367 file for image is nil.
15368
153692007-11-22 Dan Nicolaescu <dann@ics.uci.edu>
15370
15371 * term.c: Include stdarg.h.
15372 (fatal): Implement using varargs.
15373 * lisp.h (fatal): Add argument types. (Restore 2005-09-30 change).
15374
153752007-11-21 Stefan Monnier <monnier@iro.umontreal.ca>
15376
15377 * lisp.h (struct Lisp_Buffer_Objfwd): Add a `slottype' field.
15378 * data.c (store_symval_forwarding): Get type from buffer_objfwd.
15379 Update call to buffer_slot_type_mismatch.
15380 * buffer.h (buffer_local_types, PER_BUFFER_TYPE): Remove.
15381 (buffer_slot_type_mismatch): Update.
15382 * buffer.c (buffer_local_types): Remove.
15383 (buffer_slot_type_mismatch): Get the symbol and type as arguments.
15384 (defvar_per_buffer): Set the type in the buffer_objfwd.
15385
153862007-11-21 Jason Rumney <jasonr@gnu.org>
15387
15388 * w32bdf.c (w32_init_bdf_font, w32_BDF_to_x_font):
15389 CreateFileMapping returns NULL on failure.
15390
153912007-11-21 Stefan Monnier <monnier@iro.umontreal.ca>
15392
15393 * search.c (Fset_match_data): Remove the `evaporate' feature.
15394 (unwind_set_match_data): Don't use the `evaporate' feature.
15395
153962007-11-21 Jason Rumney <jasonr@gnu.org>
15397
15398 * dispnew.c (init_display) [WINDOWSNT]: Hardcode terminal_type.
15399
15400 * w32console.c (w32con_write_glyphs): Remove unused variables.
15401
154022007-11-20 Dan Nicolaescu <dann@ics.uci.edu>
15403
15404 * macterm.c (mac_term_init): Call add_keyboard_wait_descriptor.
15405
15406 * s/darwin.h (MULTI_KBOARD): Remove.
15407
15408 * macfns.c (x_create_tip_frame, Fx_create_frame)
15409 (x_create_tip_frame): Don't deal with MULTI_KBOARD.
15410
154112007-11-19 Stefan Monnier <monnier@iro.umontreal.ca>
15412
15413 * buffer.c (Fbuffer_local_value): Remove redundant test.
15414 (swap_out_buffer_local_variables): Swap out binding in `buffer' rather
15415 than in `current-buffer' to match the comment.
15416 Do the swap using swap_in_global_binding.
15417
15418 * data.c (store_symval_forwarding, set_internal):
15419 * eval.c (specbind): Remove dead code.
15420
15421 * coding.c (detect_coding, Fupdate_coding_systems_internal):
15422 * fns.c (Fmd5): Use find_symbol_value rather than SYMBOL_VALUE
15423 Since we do not want to see internal Lisp_*fwd objects here.
15424
154252007-11-18 Jan Djärv <jan.h.d@swipnet.se>
15426
15427 * sysdep.c (init_system_name): Use getaddrinfo if available.
15428
15429 * xterm.c (x_scroll_bar_set_handle, x_scroll_bar_handle_click)
15430 (x_scroll_bar_note_movement): start, end, with, height in struct
15431 scroll_bar are integers and not Lisp_Object, so remove XINT for them.
15432
154332007-11-17 Dan Nicolaescu <dann@ics.uci.edu>
15434
15435 * puresize.h (BASE_PURESIZE): Increase to 1190000.
15436
154372007-11-16 Stefan Monnier <monnier@iro.umontreal.ca>
15438
15439 * buffer.h (struct buffer): Move `undo_list' back to before `name'.
15440 This undoes Richard's change of 14-Oct-2002.
15441
15442 * alloc.c (allocate_other_vector):
15443 * lisp.h (allocate_other_vector): Remove.
15444
15445 * window.c (struct save_window_data): Move non-lisp data to the end
15446 and make it `int' rather than Lisp_Object.
15447 (Fcurrent_window_configuration): Use ALLOCATE_PSEUDOVECTOR.
15448 Done wrap/unwrap integer values.
15449 (Fset_window_configuration, compare_window_configurations):
15450 Update use of fields to their new types.
15451
15452 * xterm.h (struct scroll_bar): Only use Lisp_Object for lisp data.
15453 Turn integer fields into `int'. Merge x_window_low and x_window_high.
15454 (SCROLL_BAR_PACK, SCROLL_BAR_UNPACK, SCROLL_BAR_X_WINDOW)
15455 (SET_SCROLL_BAR_X_WINDOW): Remove.
15456 (SCROLL_BAR_X_WIDGET, SET_SCROLL_BAR_X_WIDGET):
15457 Access the new x_window field directly.
15458 * xterm.c (x_scroll_bar_create): Use a pseudovector.
15459 Don't wrap/unwrap integers into Lisp_Objects.
15460 (XTset_vertical_scroll_bar, x_scroll_bar_handle_click)
15461 (x_scroll_bar_report_motion):
15462 Don't wrap/unwrap integers into Lisp_Objects.
15463 (x_term_init): Use SDATA.
15464 (x_window_to_scroll_bar, x_create_toolkit_scroll_bar)
15465 (x_scroll_bar_set_handle, x_scroll_bar_remove)
15466 (XTset_vertical_scroll_bar, x_scroll_bar_expose)
15467 (x_scroll_bar_report_motion, x_scroll_bar_clear):
15468 * xfns.c (x_set_background_color):
15469 * gtkutil.c (xg_create_scroll_bar, xg_set_toolkit_scroll_bar_thumb):
15470 Access the new x_window field directly.
15471
15472 * alloc.c (ALLOCATE_PSEUDOVECTOR): Move to lisp.h.
15473 (allocate_pseudovector): Make non-static.
15474
15475 * lisp.h (enum pvec_type): New tag PVEC_OTHER.
15476 (allocate_pseudovector): Declare.
15477 (ALLOCATE_PSEUDOVECTOR): Move from alloc.c.
15478
154792007-11-15 Andreas Schwab <schwab@suse.de>
15480
15481 * editfns.c (Fformat): Correctly format EMACS_INT values.
15482 Also take precision into account when formatting an integer.
15483
15484 * keyboard.c (Fevent_symbol_parse_modifiers): Fix declaration.
15485
154862007-11-15 Stefan Monnier <monnier@iro.umontreal.ca>
15487
15488 * keyboard.c (Fevent_symbol_parse_modifiers): New function.
15489 (syms_of_keyboard): Defsubr it.
15490
15491 * data.c (swap_in_global_binding): Fix longstanding bug where
15492 store_symval_forwarding was not called with the right second argument,
15493 thus causing objfwd-ing from being dropped.
15494
154952007-11-14 Juanma Barranquero <lekktu@gmail.com>
15496
15497 * macfns.c (Fx_create_frame, Fx_display_pixel_width)
15498 (Fx_display_pixel_height, Fx_display_planes)
15499 (Fx_display_color_cells, Fx_server_max_request_size)
15500 (Fx_server_vendor, Fx_server_version, Fx_display_backing_store)
15501 (Fx_display_visual_class, Fx_display_save_under):
15502 * w32fns.c (Fx_create_frame, Fx_display_pixel_width)
15503 (Fx_display_pixel_height, Fx_display_planes)
15504 (Fx_display_color_cells, Fx_server_max_request_size)
15505 (Fx_server_vendor, Fx_server_version, Fx_display_screens)
15506 (Fx_display_mm_height, Fx_display_mm_width)
15507 (Fx_display_backing_store, Fx_display_visual_class)
15508 (Fw32_select_font, Fx_display_save_under):
15509 * xfns.c (Fx_create_frame, Fx_display_pixel_width)
15510 (Fx_display_pixel_height, Fx_display_planes)
15511 (Fx_display_color_cells, Fx_server_max_request_size)
15512 (Fx_server_vendor, Fx_server_version, Fx_display_backing_store)
15513 (Fx_display_save_under): Fix typos in docstrings.
15514
155152007-11-14 Juanma Barranquero <lekktu@gmail.com>
15516
15517 * w32fns.c (Fw32_registered_hot_keys): Don't return the nil values
15518 corresponding to deleted entries; they are an implementation detail.
15519 (gray_bitmap_width, gray_bitmap_height, gray_bitmap_bits):
15520 Remove variables.
15521 (w32_pass_extra_mouse_buttons_to_system, w32_strict_fontnames)
15522 (w32_pass_multimedia_buttons_to_system, w32_strict_painting)
15523 (Vw32_charset_info_alist, w32_to_x_color, w32_init_class)
15524 (w32_createscrollbar, w32_createwindow, my_post_msg, w32_get_modifiers)
15525 (w32_grabbed_keys, cancel_all_deferred_msgs): Make static.
15526 (Fw32_define_rgb_color, Fw32_load_color_file)
15527 (syms_of_w32fns) <w32-pass-multimedia-buttons-to-system>:
15528 Fix typos in docstrings.
15529 (Fx_server_version): Reflow docstring.
15530 (Fw32_shell_execute): Doc fixes.
15531
155322007-11-13 Juanma Barranquero <lekktu@gmail.com>
15533
15534 * w32fns.c (Fw32_register_hot_key): Don't try to register hot key
15535 if w32_parse_hot_key returned nil.
15536
155372007-11-10 Stefan Monnier <monnier@iro.umontreal.ca>
15538
15539 * xdisp.c (load_overlay_strings): Fix copy&paste typo.
15540
155412007-11-09 Jason Rumney <jasonr@gnu.org>
d6c952f8 15542
aac0c6e3
MR
15543 * s/ms-w32.c (USE_TOOLKIT_SCROLL_BARS): Define.
15544
15545 * w32term.c (w32_scroll_bar_handle_click): Use SCROLL_BAR_CLICK_EVENT.
15546
15547 * keyboard.c (discard_mouse_events, make_lispy_event) [WINDOWSNT]:
15548 Remove W32_SCROLL_BAR_CLICK_EVENT.
15549
15550 * termhooks.h (enum event_kind) [WINDOWSNT]: Likewise.
15551 Add MULTIMEDIA_KEY_EVENT.
15552
15553 * keyboard.c (lispy_function_keys) [WINDOWSNT]: Add more keys.
15554 (lispy_multimedia_keys) [WINDOWSNT]: New array.
15555 (make_lispy_event) [WINDOWSNT]: Use it to translate
15556 MULTIMEDIA_KEY_EVENT.
15557
15558 * w32term.h (WM_APPCOMMAND): Define if not already.
15559 (GET_APPCOMMAND_LPARAM): Likewise.
15560
15561 * w32term.c (w32_read_socket): Generate MULTIMEDIA_KEY_EVENT from
15562 WM_APPCOMMAND.
15563
15564 * w32fns.c (w32_pass_multimedia_buttons_to_system): New user option.
15565 (syms_of_w32fns): Export and initialize it.
15566 (w32_wnd_proc): Pass WM_APPCOMMAND on to w32_read_socket.
15567
155682007-11-09 Chong Yidong <cyd@stupidchicken.com>
15569
15570 * dispextern.h (struct it): Don't define OVERLAY_STRING_CHUNK_SIZE
15571 twice.
15572
15573 * xdisp.c (handle_face_prop): Fix last change.
15574
155752007-11-09 Richard Stallman <rms@gnu.org>
15576
15577 * xdisp.c (handle_face_prop): Test for strings that came from overlays,
15578 not just for after-strings and before-strings.
15579 Call face_for_overlay_string and pass the overlay to it.
15580 (handle_display_prop): Determine whether property came from an overlay.
15581 Pass OVERLAY arg to handle_single_display_spec.
15582 (handle_single_display_spec): New arg OVERLAY sets it->from_overlay.
15583 (load_overlay_strings): Fill in it->string_overlays.
15584 (get_overlay_strings_1, push_it, pop_it): Handle it->from_overlays.
15585
15586 * xfaces.c (face_for_overlay_string): Function renamed from
15587 face_at_buffer_position_no_overlays, and add arg OVERLAY.
15588
15589 * dispextern.h (struct it): New elt string_overlays.
15590 New elt from_overlay, also in stack.
15591 Rearrange a few elements.
15592 (face_for_overlay_string): Decl renamed from
15593 face_at_buffer_position_no_overlays, and add argument.
15594
155952007-11-09 Richard Stallman <rms@gnu.org>
15596
15597 * xdisp.c (handle_face_prop): Use face_at_buffer_position_no_overlays
15598 to get the base face for an overlay string.
15599
15600 * dispextern.h (face_at_buffer_position_no_overlays): Add decl.
15601
15602 * xfaces.c (face_at_buffer_position_no_overlays): New function.
15603
15604 * xdisp.c (handle_stop): Move some code out of loop.
15605
156062007-11-09 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
15607
15608 * macfns.c [USE_ATSUI] (Fmac_atsu_font_face_attributes):
15609 Fix conversion from Lisp object to ATSUFontID.
15610
156112007-11-09 Jason Rumney <jasonr@gnu.org>
15612
15613 * xdisp.c (Fformat_mode_line): Do nothing when noninteractive.
15614
156152007-11-09 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
15616
15617 * unexmacosx.c (unexec_regions_recorder, unexec_regions_merge):
15618 Don't assume regions are aligned to page boundary.
15619 (print_load_command_name): Add LC_UUID if defined.
15620
156212007-11-09 Richard Stallman <rms@gnu.org>
15622
15623 * emacs.c (syms_of_emacs) <installation-directory>: Reflow docstring.
15624
156252007-11-07 Jason Rumney <jasonr@gnu.org>
15626
15627 * s/windows95.h: Remove.
15628
156292007-11-06 Jan Djärv <jan.h.d@swipnet.se>
15630
15631 * gtkutil.c (xg_tool_bar_menu_proxy): Handle GTK_IMAGE_ICON_NAME and
15632 abort with a message on unhandled store_type values.
15633
156342007-11-01 Jan Djärv <jan.h.d@swipnet.se>
15635
15636 * xterm.c, xfns.c, xselect.c, xterm.h, s/msdos.h, s/sco4.h, s/sco5.h:
15637 Remove HAVE_X11R5 and HAVE_X11R4.
15638
156392007-11-01 Dan Nicolaescu <dann@ics.uci.edu>
15640
15641 * Makefile.in: Remove references to sunfns.c and sunfns.o.
15642
156432007-11-01 Johan Bockgård <bojohan@gnu.org>
15644
15645 * macterm.c, w32term.c, xterm.c (x_draw_stretch_glyph_string):
15646 Don't set s->stippled_p here, since it has already been set by
15647 x_set_glyph_string_gc from x_draw_glyph_string.
15648
156492007-11-01 Dan Nicolaescu <dann@ics.uci.edu>
15650
15651 * sunfns.c: Remove file.
15652
15653 * m/sun386.h:
15654 * m/sun2.h:
15655 * m/sparc.h: Remove Sun windows code.
15656
156572007-10-31 Stefan Monnier <monnier@iro.umontreal.ca>
15658
15659 * keyboard.c (syms_of_keyboard): Initialize the initial_kboard.
15660 (init_keyboard): Set current_kboard's window-system to nil.
15661 (tty_read_avail_input): Typo.
15662 * frame.c (make_initial_frame): Don't initialize the initial_kboard.
15663
156642007-10-31 Dan Nicolaescu <dann@ics.uci.edu>
15665
15666 * s/usg5-4.h:
15667 * s/usg5-3.h:
15668 * s/ptx.h:
15669 * m/is386.h:
15670 * m/ibmps2-aix.h:
15671 * Makefile.in: Remove all mentions of X10.
15672
15673 * dispnew.c (syms_of_display): Don't mention version 10.
15674
156752007-10-28 Juanma Barranquero <lekktu@gmail.com>
15676
15677 * makefile.w32-in (OBJ1): Remove abbrev.$(O).
15678 ($(BLD)/abbrev.$(O)): Remove.
15679
156802007-10-28 Stefan Monnier <monnier@iro.umontreal.ca>
15681
15682 Rewrite abbrev.c in Elisp.
15683 * image.c (Qcount): Don't declare as extern.
15684 (syms_of_image): Initialize and staticpro `Qcount'.
15685 * puresize.h (BASE_PURESIZE): Increase for the new abbrev.el functions.
15686 * emacs.c (main): Don't call syms_of_abbrev.
15687 * Makefile.in (obj): Remove abbrev.o.
15688 (abbrev.o): Remove.
15689 * abbrev.c: Remove.
15690
156912007-10-26 Martin Rudalics <rudalics@gmx.at>
15692
15693 * window.c (window_min_size_2): Don't count header-line.
15694
156952007-10-26 Dan Nicolaescu <dann@ics.uci.edu>
15696
15697 * frame.h (struct frame): Move all bit fields after the first bit
15698 field to take advantage of the available space. Group all the
15699 chars together to reduce wasted space due to padding.
15700
157012007-10-26 Juanma Barranquero <lekktu@gmail.com>
15702
15703 * minibuf.c (Fread_minibuffer, Feval_minibuffer): Reflow docstrings.
15704
15705 * alloc.c (spare_memory, stack_copy, stack_copy_size, ignore_warnings)
15706 (Vdead, dont_register_blocks, staticvec, staticidx, interval_block)
15707 (n_interval_blocks, init_strings, check_string_bytes, check_sblock)
15708 (init_float, free_float, n_cons_blocks, init_cons, all_vectors)
15709 (n_vectors, symbol_block, symbol_block_index, symbol_free_list)
15710 (n_symbol_blocks, init_symbol, marker_block, marker_free_list)
15711 (n_marker_blocks, init_marker, valid_pointer_p, make_pure_float)
15712 (last_marked, mark_object_loop_halt): Make static.
15713
15714 * frame.c (syms_of_frame) <delete-frame-functions>:
15715 Fix typo in docstring.
15716
157172007-10-25 Juanma Barranquero <lekktu@gmail.com>
15718
15719 * w32.c (init_environment): Fix tiny memory leak.
15720 (w32_get_resource): Remove unused variable `ok'.
15721
157222007-10-25 Stefan Monnier <monnier@iro.umontreal.ca>
15723
15724 Make `window-system' into a keyboard-local variable (rather than
15725 frame-local as done originally by multi-tty).
15726
15727 * keyboard.h (struct kboard): Add Vwindow_system.
15728 * keyboard.c (init_kboard): Set a default for Vwindow_system.
15729 (mark_kboards): Mark Vwindow_system.
15730
15731 * dispnew.c (syms_of_display) <window-system>: Declare terminal-local.
15732 (init_display): Don't set the obsolete `window-system' frame-param.
15733
15734 * xterm.c (x_term_init):
15735 * w32term.c (w32_create_terminal):
15736 * term.c (init_tty): Set Vwindow_system.
15737 * macterm.c (mac_create_terminal): Set a keyboard (missing piece of the
15738 multi-tty merge maybe?), copied from w32term.c. Set Vwindow_system.
15739
15740 * xfns.c (Fx_create_frame, x_create_tip_frame):
15741 * w32fns.c (Fx_create_frame, x_create_tip_frame):
15742 * macfns.c (Fx_create_frame):
15743 Don't set the obsolete `window-system' frame-param.
15744
15745 * frame.h (Qwindow_system): Remove.
15746 * frame.c (Qwindow_system): Remove. In `syms_of_frame' as well.
15747 (Fmake_terminal_frame): Don't set obsolete `window-system' frame-param.
15748
157492007-10-24 Richard Stallman <rms@gnu.org>
15750
15751 * frame.c (x_figure_window_size): For fullscreen case,
15752 set USPosition | PPosition without clobbering rest of window_prompting.
15753
15754 * keyboard.c (Fcurrent_idle_time): Doc fix.
15755
15756 * print.c (Fwith_output_to_temp_buffer): Doc fix.
15757
157582007-10-23 Stefan Monnier <monnier@iro.umontreal.ca>
15759
15760 * process.c (unwind_request_sigio): Only define if __ultrix__.
15761
15762 * callproc.c (child_setup): Remove spurious *.
15763
15764 * lisp.h (Fget_text_property): Declare.
15765 (have_menus_p): Declare it here rather than in sys-dep header files.
15766 * macterm.h (have_menus_p):
15767 * msdos.h (have_menus_p):
15768 * xterm.h (have_menus_p): Remove.
15769
15770 * data.c (Fmake_variable_buffer_local, Fmake_local_variable)
15771 (Fmake_variable_frame_local): Just check the variable's const-ness
15772 rather than checking nil or t.
15773
157742007-10-22 Jason Rumney <jasonr@gnu.org>
15775
15776 * w32fns.c: Include math.h.
15777 (w32_abort): Declaration moved to nt/config.nt.
15778
15779 * s/ms-w32.h (HAVE_STDLIB_H): Define.
15780 (abort): Redefinition moved to nt/config.nt.
15781
15782 * m/windowsnt.h: Remove.
15783
157842007-10-22 Juanma Barranquero <lekktu@gmail.com>
15785
15786 * emacs.c (Fdump_emacs): Fix typo in message.
15787 (syms_of_emacs) <kill-emacs-hook>: Fix typo in docstring.
15788 <installation-directory>: Reflow docstring.
15789
157902007-10-22 Juri Linkov <juri@jurta.org>
15791
15792 * minibuf.c: Allow minibuffer default to be a list of default values.
15793 With empty input use the first element of this list as returned default.
15794 (string_to_object)
15795 (read_minibuf_noninteractive): If defalt is cons, set val to its car.
15796 (read_minibuf): If defalt is cons, set histstring to its car.
15797 (Fread_string): If default_value is cons, set val to its car.
15798 (Fread_buffer): If def is cons, use its car.
15799 (Fcompleting_read): If defalt is cons, set val to its car.
15800
158012007-10-21 Michael Albinus <michael.albinus@gmx.de>
15802
15803 * fileio.c (Fcopy_file): Call file name handler with preserve_uid_gid.
15804
158052007-10-20 Juanma Barranquero <lekktu@gmail.com>
15806
15807 * doc.c (Fdocumentation): Check for advice in all cases.
15808
158092007-10-19 Chong Yidong <cyd@stupidchicken.com>
15810
15811 * Makefile.in [HAVE_LIBRESOLV]: Add -lresolv to linker flags.
15812
158132007-10-19 Richard Stallman <rms@gnu.org>
15814
15815 * doc.c (Fdocumentation): Check for and handle an advised function.
15816
158172007-10-19 Juanma Barranquero <lekktu@gmail.com>
15818
15819 * process.c (Fset_process_filter): Doc fix.
15820
158212007-10-18 Stefan Monnier <monnier@iro.umontreal.ca>
15822
15823 * keyboard.c (read_key_sequence): Undo a change introduced by multi-tty
15824 which caused key-translation-map to applied repeatedly (thus breaking
15825 double-mode).
15826
158272007-10-17 Stefan Monnier <monnier@iro.umontreal.ca>
15828
15829 * xselect.c (x_own_selection, x_handle_selection_clear)
15830 (x_clear_frame_selections):
15831 * w32menu.c (list_of_panes, list_of_items):
15832 * w32fns.c (w32_color_map_lookup, Fx_create_frame, Fx_display_list):
15833 * textprop.c (validate_plist, interval_has_all_properties)
15834 (interval_has_some_properties, interval_has_some_properties_list)
15835 (add_properties, text_property_list):
15836 * process.c (Fget_buffer_process, list_processes_1, status_notify):
15837 * minibuf.c (Fassoc_string):
15838 * macselect.c (x_own_selection, x_clear_frame_selections)
15839 (Fx_disown_selection_internal):
15840 * keymap.c (Fcommand_remapping, where_is_internal, describe_map_tree):
15841 Use CONSP rather than !NILP and XC[AD]R rather than Fc[ad]r.
15842
158432007-10-17 Chong Yidong <cyd@stupidchicken.com>
15844
15845 * process.c: Link to libs for calling res_init() if available.
15846 (Fmake_network_process): Call res_init() before getaddrinfo or
15847 gethostbyname, if possible.
15848
158492007-10-17 Stefan Monnier <monnier@iro.umontreal.ca>
15850
15851 * lread.c (read1): Set pvectype for char_tables.
15852
15853 * lisp.h (XMISCANY, XMARKER, XINTFWD, XBOOLFWD, XOBJFWD, XOVERLAY)
15854 (XBUFFER_OBJFWD, XBUFFER_LOCAL_VALUE, XKBOARD_OBJFWD, XSAVE_VALUE):
15855 Add type checks.
15856 (SOME_BUFFER_LOCAL_VALUEP, GC_SOME_BUFFER_LOCAL_VALUEP): Remove.
15857
15858 * alloc.c (free_misc): Use XMISCTYPE.
15859 (live_misc_p, gc_sweep): Use Lisp_Misc_Any.
15860
158612007-10-17 Glenn Morris <rgm@gnu.org>
15862
15863 * minibuf.c (Qcompletion_ignore_case): New Lisp_Object.
15864 (syms_of_minibuf): Add Qcompletion_ignore_case.
15865 * dired.c (Qcompletion_ignore_case): Change to external.
15866 (syms_of_dired) [VMS]: Remove Qcompletion_ignore_case.
15867 * fileio.c (Qcompletion_ignore_case): New external Lisp_Object.
15868 (Fread_file_name): Use it rather than intern'ing.
15869
15870 * coding.c (Qcompletion_ignore_case): New external Lisp_Object.
15871 (Fread_coding_system): Ignore case of user input.
15872
158732007-10-16 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
15874
15875 * xdisp.c (handle_display_prop): Ignore display specs after
15876 replacing one when string text is being replaced.
15877 (handle_single_display_spec): Pretend as if characters with display
15878 property haven't been consumed only when buffer text is being replaced.
15879
158802007-10-16 Stefan Monnier <monnier@iro.umontreal.ca>
15881
15882 * xfns.c (Fx_create_frame, Fx_display_list):
15883 * window.c (window_fixed_size_p, enlarge_window)
15884 (shrink_window_lowest_first):
15885 * macterm.c (init_font_name_table):
15886 * macfns.c (Fx_create_frame, Fx_display_list):
15887 * lread.c (close_load_descs):
15888 * keyboard.c (read_char_x_menu_prompt):
15889 * fns.c (Fmember, Fmemql, Fdelete, Fset_char_table_parent):
15890 * coding.c (code_convert_region_unwind): Test the type of an object
15891 rather than just !NILP before extracting data from it.
15892
15893 * alloc.c (Fpurecopy): Set the pvec tag on pseudo vectors.
15894
15895 * lisp.h (enum Lisp_Misc_Type): Del Lisp_Misc_Some_Buffer_Local_Value.
15896 (XMISCANY): New macro.
15897 (XMISCTYPE): Use it.
15898 (struct Lisp_Misc_Any): New type.
15899 (union Lisp_Misc): Use it.
15900 (struct Lisp_Buffer_Local_Value): Add `local_if_set' bit.
15901 * data.c (Fboundp, store_symval_forwarding, swap_in_global_binding)
15902 (find_symbol_value, set_internal, default_value, Fset_default)
15903 (Fmake_variable_buffer_local, Fmake_local_variable)
15904 (Fkill_local_variable, Fmake_variable_frame_local, Flocal_variable_p)
15905 (Flocal_variable_if_set_p, Fvariable_binding_locus):
15906 The SOME_BUFFER_LOCAL_VALUEP distinction is replaced by local_if_set.
15907 * alloc.c (allocate_buffer): Set the size and tag.
15908 (allocate_misc, mark_maybe_object, mark_object, survives_gc_p):
15909 Use XMISCANY.
15910 (die): Follow the GNU convention for error messages.
15911 * print.c (print_object): SOME_BUFFER_LOCAL_VALUEP -> local_if_set.
15912 * buffer.c (Fget_buffer_create, Fmake_indirect_buffer): Don't set the
15913 tag any more.
15914 (set_buffer_internal_1):
15915 * frame.c (store_frame_param):
15916 * eval.c (specbind):
15917 * xdisp.c (select_frame_for_redisplay): Drop SOME_BUFFER_LOCAL_VALUEP.
15918
15919 * doc.c (Fsnarf_documentation): Simplify.
15920
159212007-10-14 Juanma Barranquero <lekktu@gmail.com>
15922
15923 * w32term.c (w32_font_is_double_byte, my_create_scrollbar): Make static.
15924 (syms_of_w32term) <w32-enable-unicode-output>: Fix typo in docstring.
15925
159262007-10-14 Stefan Monnier <monnier@iro.umontreal.ca>
15927
15928 * buffer.c (Fmake_indirect_buffer): Set the buffer's tag.
15929
159302007-10-14 Juanma Barranquero <lekktu@gmail.com>
15931
15932 * eval.c (do_autoload): Don't save autoloads.
15933
15934 * data.c (Ffset): Save autoload of the function being set.
15935
159362007-10-07 John Paul Wallington <jpw@pobox.com>
15937
15938 * xfns.c (x_create_tip_frame): Set the `display-type' frame
15939 parameter before setting up faces.
15940
159412007-10-13 Eli Zaretskii <eliz@gnu.org>
15942
15943 * ccl.c (Fregister_code_conversion_map):
15944 * keyboard.c (append_tool_bar_item): Reformat last change.
15945
15946 * lisp.h (eabs): Rename from `abs'. All callers changed.
15947
159482007-10-05 Dmitry Antipov <dmantipov@yandex.ru>
15949
15950 * buffer.c (add_overlay_mod_hooklist):
15951 * ccl.c (Fregister_ccl_program, Fregister_code_conversion_map):
15952 * fontset.c (make_fontset):
15953 * keyboard.c (GROW_RAW_KEYBUF, menu_bar_items, menu_bar_item)
15954 (append_tool_bar_item):
15955 * macmenu.c (grow_menu_items):
15956 * w32menu.c (grow_menu_items):
15957 * xmenu.c (grow_menu_items): Use larger_vector.
15958
159592007-10-13 Eli Zaretskii <eliz@gnu.org>
15960
15961 * msdos.c (dos_rawgetc): Undo last change (there's no ``leaving
15962 selected frame'' on MSDOS).
15963
159642007-10-12 Martin Rudalics <rudalics@gmx.at>
15965
15966 * frame.c (Qexplicit_name): New variable.
15967 (x_report_frame_params): Report it in parameter alist.
15968 (syms_of_frame): Intern and staticpro it.
15969
159702007-10-10 Patrick Mahan <mahan@mahan.org> (tiny change)
15971
15972 * macfns.c (x_create_tip_frame): Set terminal for frame.
15973
159742007-10-10 Stefan Monnier <monnier@iro.umontreal.ca>
15975
15976 * frame.c (Qenvironment): Remove.
15977 (syms_of_frame) <Qenvironment>: Don't initialize.
15978 (Fdelete_frame): Don't treat the `environment' param specially.
15979 * frame.h (Qenvironment): Don't declare.
15980 * callproc.c (set_initial_environment): Don't set unused frame param.
15981
15982 * frame.c (Fframe_with_environment): Remove.
15983 (syms_of_frame) <Sframe_with_environment>: Don't declare.
15984
15985 * lisp.h (Fframe_with_environment): Don't declare.
15986
159872007-10-10 Juanma Barranquero <lekktu@gmail.com>
15988
15989 * indent.c (indent_tabs_mode, last_known_column)
15990 (last_known_column_modified): Make static.
15991 (syms_of_indent) <indent-tabs-mode>: Remove redundant info in docstring.
15992
159932007-10-10 Katsumi Yamaoka <yamaoka@jpl.org>
15994
15995 * puresize.h (BASE_PURESIZE): Increase to 1170000.
15996
159972007-10-09 Jason Rumney <jasonr@gnu.org>
15998
15999 * w32term.c (x_set_window_size): Disable code that attempts to tell
16000 Lisp code about a size change before it actually happens.
16001
160022007-10-09 Richard Stallman <rms@gnu.org>
16003
16004 * xdisp.c (handle_invisible_prop): After setting up an ellipsis,
16005 return HANDLED_RETURN.
16006
160072007-10-08 Martin Rudalics <rudalics@gmx.at>
16008
16009 * keyboard.c (kbd_buffer_get_event): Break loop waiting for input
16010 when there's an unread command event.
16011
16012 * frame.c (focus_follows_mouse): Move here from frame.el to allow
16013 window autoselection act appropriately when leaving selected frame.
16014 (syms_of_frame): Initialize focus_follows_mouse.
16015 * frame.h (focus_follows_mouse): Extern it.
16016 * macterm.c (XTread_socket): When focus_follows_mouse is nil
16017 make SELECT_WINDOW_EVENT only if we don't leave the selected frame.
16018 * msdos.c (dos_rawgetc): Likewise.
16019 * w32term.c (w32_read_socket): Likewise.
16020 * xterm.c (handle_one_xevent): Likewise.
16021 * xdisp.c (syms_of_xdisp): In doc-string of
16022 mouse-autoselect-window mention focus-follows-mouse.
16023
160242007-10-08 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
16025
16026 * macterm.c (mac_load_query_font): Fix missing return value.
16027 [USE_CG_DRAWING] (mac_define_fringe_bitmap, mac_destroy_fringe_bitmap):
16028 Add BLOCK_INPUT.
16029
160302007-10-08 Richard Stallman <rms@gnu.org>
16031
16032 * xdisp.c (get_window_cursor_type): Implement documented behavior
16033 for cursor-in-non-selected-windows = t.
16034
160352007-10-08 Jason Rumney <jasonr@gnu.org>
16036
16037 * w32.c (w32_get_resource): Always close registry keys.
16038
160392007-10-08 Jason Rumney <jasonr@gnu.org>
16040
16041 * makefile.w32-in (LIBS): Add COMCTL32.
16042
16043 * w32fns.c (globals_of_w32fns): Init common controls.
16044
160452007-10-08 Richard Stallman <rms@gnu.org>
16046
16047 * image.c (our_memory_buffer): Rename from omfib_buffer.
16048
160492007-10-08 Richard Stallman <rms@gnu.org>
16050
16051 * buffer.c (Foverlays_at): Doc fix.
16052
160532007-10-08 Stefan Monnier <monnier@iro.umontreal.ca>
16054
16055 * fns.c (Fplist_put): Preserve uneven tail data.
16056
160572007-10-08 Peter O'Gorman <bug-gnu-emacs@mlists.thewrittenword.com> (tiny change)
16058
16059 * termhooks.h (enum event_kind): Remove trailing comma.
16060
16061 * frame.h (enum): Remove trailing comma.
16062
160632007-10-08 Dhruva Krishnamurthy <dhruvakm@gmail.com> (tiny change)
16064
16065 * w32proc.c (delete_child): Don't terminate threads of zombies.
16066
160672007-10-08 Martin Rudalics <rudalics@gmx.at>
16068
16069 * keyboard.h (struct kboard): New elt Vlast_repeatable_command.
16070
16071 * keyboard.c (syms_of_keyboard): Set up new Lisp variable
16072 last-repeatable-command.
16073 (init_kboard): Initialize Vlast_repeatable_command.
16074 (command_loop_1): Set it to real_this_command unless that was
16075 bound to an input event.
16076 (mark_kboards): Mark it.
16077
160782007-10-08 Richard Stallman <rms@gnu.org>
16079
16080 * eval.c (condition-case): Doc fix.
16081
160822007-10-08 Masatake YAMATO <jet@gyve.org>
16083
16084 * xfaces.c (tty_supports_face_attributes_p): Fix code
16085 for LFACE_INVERSE_INDEX and LFACE_BACKGROUND_INDEX; code
16086 was copied and not edited.
16087
160882007-10-09 Stefan Monnier <monnier@iro.umontreal.ca>
16089
16090 Add new `input-decode-map' keymap and use it for terminal
16091 escape sequences.
16092 * keyboard.h (struct kboard): Add Vinput_decode_map.
16093 Remove Vlocal_key_translation_map.
16094 * keyboard.c (read_key_sequence): Add support for input-decode-map.
16095 (init_kboard): Init input-decode-map.
16096 Replace local-key-translation-map back with key-translation-map.
16097 (syms_of_keyboard): Declare input-decode-map.
16098 Remove local-key-translation-map. Update docstrings.
16099 (mark_kboards): Mark Vinput_decode_map.
16100 Don't mark Vlocal_key_translation_map.
16101 * keymap.c (Fdescribe_buffer_bindings): Describe input-decode-map.
16102 Replace local-key-translation-map back with key-translation-map.
16103 * term.c (term_get_fkeys_1, CONDITIONAL_REASSIGN):
16104 Bind in input-decode-map rather than function-key-map.
16105
16106 * lisp.h (XSETPSEUDOVECTOR): Don't set the tag anymore.
16107 This was made redundant by the previous introduction of XSETPVECTYPE.
16108
161092007-10-09 Richard Stallman <rms@gnu.org>
16110
16111 * image.c (free_bitmap_record): Rename from Free_Bitmap_Record.
16112
161132007-09-29 Richard Stallman <rms@gnu.org>
16114
16115 * eval.c (internal_condition_case_2, internal_condition_case_1)
16116 (internal_condition_case): Reenable abort if x_catching_errors ()
16117 to see if that really happens and why.
16118
161192007-10-06 Andreas Schwab <schwab@suse.de>
16120
16121 * fileio.c (Fwrite_region): Ignore EINVAL error from fsync.
16122
161232007-10-04 Juanma Barranquero <lekktu@gmail.com>
16124
16125 * image.c (syms_of_image) <image-types>: Fix typo in docstring.
16126
161272007-10-03 Stefan Monnier <monnier@iro.umontreal.ca>
16128
16129 * frame.h (struct frame): Don't try to GC-mark menu_bar_items_used.
16130
161312007-10-02 Stefan Monnier <monnier@iro.umontreal.ca>
16132
16133 * window.h (struct window):
16134 * window.c (struct save_window_data, struct saved_window):
16135 * termhooks.h (struct terminal):
16136 * process.h (struct Lisp_Process):
16137 * frame.h (struct frame):
16138 * buffer.h (struct buffer):
16139 * lisp.h (struct Lisp_Vector, struct Lisp_Char_Table)
16140 (struct Lisp_Bool_Vector, struct Lisp_Subr, struct Lisp_Hash_Table):
16141 The size field of (pseudo)vectors is now unsigned.
16142 (ARRAY_MARK_FLAG, PSEUDOVECTOR_FLAG): Simplify accordingly.
16143
16144 * lisp.h (struct Lisp_Hash_Table): Move non-traced elements at the end.
16145 Turn `count' into an integer.
16146
16147 * fns.c (make_hash_table, hash_put, hash_remove, hash_clear)
16148 (sweep_weak_table, sweep_weak_hash_tables, Fhash_table_count):
16149 * print.c (print_object) <HASH_TABLE_P>: `count' is an int.
16150 * alloc.c (allocate_hash_table): Use ALLOCATE_PSEUDOVECTOR.
16151 (mark_object) <HASH_TABLE_P>: Use mark_vectorlike.
16152
16153 * alloc.c (allocate_pseudovector): New fun.
16154 (ALLOCATE_PSEUDOVECTOR): New macro.
16155 (allocate_window, allocate_terminal, allocate_frame)
16156 (allocate_process): Use it.
16157 (mark_vectorlike): New function.
16158 (mark_object) <FRAMEP, WINDOWP, BOOL_VECTOR_P, VECTORP>: Use it.
16159 (mark_terminals): Use it.
16160 (Fmake_bool_vector, Fmake_char_table, make_sub_char_table)
16161 (Fmake_byte_code): Use XSETPVECTYPE.
16162
16163 * frame.c (Fframe_parameters): Minor simplification.
16164
16165 * insdel.c (adjust_markers_for_insert): Generalize assertion checks.
16166
16167 * marker.c (Fmarker_buffer): Make test for odd case into a failure.
16168
16169 * buffer.c (Fget_buffer_create, init_buffer_once):
16170 * lread.c (defsubr):
16171 * window.c (Fcurrent_window_configuration): Use XSETPVECTYPE.
16172
16173 * lisp.h (ARRAY_MARK_FLAG, PSEUDOVECTOR_FLAG): Don't let them be
16174 defined differently in the m/*.h files.
16175 (XCHAR_TABLE, XBOOL_VECTOR): Add assertion checking.
16176 (XSETPVECTYPE): New macro.
16177 (XSETPSEUDOVECTOR): Use it.
16178
16179 * buffer.c (syms_of_buffer) <local-abbrev-table>: Move from abbrev.c.
16180 (DEFVAR_PER_BUFFER, defvar_per_buffer): Move from lisp.h and lread.c.
16181
16182 * lisp.h (defvar_per_buffer, DEFVAR_PER_BUFFER):
16183 * lread.c (defvar_per_buffer):
16184 * abbrev.c (syms_of_abbrev) <local-abbrev-tabl>: Move to buffer.c.
16185
16186 * window.c (candidate_window_p): Only consider as visible frames that
16187 are on the same terminal.
16188
16189 * m/ibms390x.h (MARKBIT): Remove unused macro.
16190
161912007-10-01 Juanma Barranquero <lekktu@gmail.com>
16192
16193 * lread.c (Fload): Fix typo in docstring.
16194
161952007-10-01 Michaël Cadilhac <michael@cadilhac.name>
16196
16197 * floatfns.c (Fexpt): Manually check for overflows, so that a power
16198 of a non-zero value can't yield zero.
16199
162002007-09-29 Stefan Monnier <monnier@iro.umontreal.ca>
16201
16202 * term.c (term_clear_mouse_face, term_mouse_highlight)
16203 (tty_write_glyphs_with_face): Only define is HAVE_GPM.
16204
16205 * print.c (safe_debug_print): Use XHASH.
16206
16207 * lisp.h (DECL_ALIGN, USE_LSB_TAG): Move logic to before definition of
16208 Lisp elements such as tags.
16209 (XHASH): New macro.
16210 (EQ): Use it.
16211 (SREF, SSET, STRING_COPYIN): Use SDATA.
16212 (VOID_TO_LISP, CVOID_TO_LISP, LISP_TO_VOID, LISP_TO_CVOID): Remove.
16213
16214 * alloc.c (mark_terminal): Remove left-over declaration.
16215 (enum mem_type): Replace all vector subtypes -> MEM_TYPE_VECTORLIKE.
16216 (allocate_vectorlike): Remove type argument. Adjust callers.
16217 (live_vector_p, mark_maybe_pointer, valid_lisp_object_p):
16218 Only handle the one remaining MEM_TYPE_VECTORLIKE.
16219
16220 * alloc.c (MALLOC_BLOCK_INPUT, MALLOC_UNBLOCK_INPUT): New macros
16221 to avoid unnecessary BLOCK_INPUTs when SYNC_INPUT is used.
16222 (xmalloc, xrealloc, xfree, lisp_malloc, lisp_free, lisp_align_malloc)
16223 (lisp_align_free, make_interval, allocate_string, allocate_string_data)
16224 (make_float, Fcons, allocate_vectorlike, Fmake_symbol, allocate_misc):
16225 Use them.
16226
16227 * xfaces.c (load_face_font, free_realized_face, clear_face_gcs):
16228 Don't let signal handlers run when a GC is freed but not yet NULL'ed.
16229 (x_free_gc): Remove BLOCK_INPUT since it's now redundant.
16230
162312007-09-28 Dan Nicolaescu <dann@ics.uci.edu>
16232
16233 * Makefile.in (lisp, shortlisp): Delete server.elc, it is not
16234 loaded by default.
16235
162362007-09-28 Stefan Monnier <monnier@iro.umontreal.ca>
16237
16238 * term.c (Fgpm_mouse_start): Don't signal an error if already activated
16239 on this tty.
16240 (Fgpm_mouse_stop): Only deactivate if it was activated on this tty.
16241
16242 * term.c (mouse_face_window): Rename from Qmouse_face_window.
16243 Update all users.
16244 (handle_one_term_event): Use Gpm_DrawPointer.
16245 (Fgpm_mouse_start): Rename from Fterm_open_connection.
16246 Signal errors instead of returning nil. Always return nil.
16247 (Fgpm_mouse_stop): Rename from Fterm_close_connection.
16248 Make it a noop if gpm-mouse was not activated.
16249 (syms_of_term): Update names.
16250
162512007-09-27 Stefan Monnier <monnier@iro.umontreal.ca>
16252
16253 * sysdep.c (narrow_foreground_group, widen_foreground_group): Static.
16254 (init_sys_modes): Check that gpm_tty is the current tty.
16255
16256 * alloc.c (allocate_terminal): Set the vector size to only count the
16257 lisp fields. Initialize those to nil.
16258 (mark_object): Don't treat terminals specially.
16259 (mark_terminal): Remove.
16260 (mark_terminals): Use mark_object instead.
16261
16262 * termhooks.h (struct terminal): Move all Lisp_Object fields traced by
16263 the GC to the beginning.
16264
16265 * indent.h:
16266 * indent.c: Use EMACS_INT for ints coming from Elisp data.
16267
16268 * indent.c (Fmove_to_column): Use EMACS_INT for buffer positions.
16269
162702007-09-25 Jason Rumney <jasonr@gnu.org>
16271
16272 * frame.c (make_terminal_frame): Remove special case for WINDOWSNT.
16273
16274 * w32console.c (create_w32cons_output): Remove.
16275
16276 * term.c (init_tty): Call init_sys_modes on WINDOWSNT also.
16277
16278 * sysdep.c (init_sys_modes): Use set_terminal_modes_hook.
16279 (reset_sys_modes): Use reset_terminal_modes_hook.
16280
162812007-09-24 Stefan Monnier <monnier@iro.umontreal.ca>
16282
16283 * eval.c (do_autoload): Don't output any message.
16284
162852007-09-24 Juri Linkov <juri@jurta.org>
16286
16287 * emacs.c (standard_args): Change priority of "--no-splash"
16288 from 40 to 3. Add "--no-desktop" with the same priority.
16289
162902007-09-23 Dmitry Antipov <dmantipov@yandex.ru>
16291
16292 * alloc.c (gc_sweep): Check cons cell mark bits word by word
16293 and optimize the case where they are all 1.
16294
162952007-09-23 Johannes Weiner <hannes@saeurebad.de>
16296
16297 * lisp.h (abs): Define if not defined.
16298 * keyboard.c, sound.c, w32term.c, xfaces.c, xterm.c:
16299 Don't define `abs', since it's defined in lisp.h.
16300
163012007-09-22 Eli Zaretskii <eliz@gnu.org>
16302
16303 * term.c (DEV_TTY): New macro. Provide a definition for MS-Windows.
16304 (FRAME_TERMCAP_P) [WINDOWSNT]: Don't define to zero.
16305 (Fcontrolling_tty_p, Fresume_tty, dissociate_if_controlling_tty)
16306 (init_tty): Use DEV_TTY instead of "/dev/tty".
16307 [WINDOWSNT]: No need to protect from NAME arg being null.
16308
163092007-09-21 Dan Nicolaescu <dann@ics.uci.edu>
16310
16311 * term.c (Fsuspend_tty): Run suspend-tty-functions before cleaning
16312 up the tty state.
16313
163142007-09-21 Stefan Monnier <monnier@iro.umontreal.ca>
16315
16316 * termhooks.h (term_gpm): Delete. Use gpm_tty's NULLness instead.
16317 (gpm_tty): Change its type.
16318 * term.c (term_gpm): Delete. Use gpm_tty's NULLness instead.
16319 (gpm_tty): Change its type and initialize it.
16320 (Fterm_open_connection): Check the frame is indeed a tty.
16321 Use the new gpm_tty.
16322 (Fterm_close_connection): Use the new gpm_tty.
16323 * keyboard.c (tty_read_avail_input): Use the new gpm_tty.
16324 * sysdep.c (init_sys_modes): term_gpm -> gpm_tty.
16325
163262007-09-21 Juanma Barranquero <lekktu@gmail.com>
16327
16328 * w32term.c (x_draw_glyph_string): Use strike_through_color, not
16329 underline_color, to draw strike-through.
16330
163312007-09-21 Stefan Monnier <monnier@iro.umontreal.ca>
16332
16333 * lisp.h (allocate_terminal): Declare.
16334
16335 * window.c (candidate_window_p): Consider frames that are being placed
16336 by the user as somewhere between visible and iconified.
16337 (window_loop): Prefer windows on the current frame.
16338 (Fselect_window): Move the use of select-frame to the beginning so we
16339 can just delegate all the work (it'll call us back anyway).
16340
16341 * frame.c (Qdisplay_environment_variable):
16342 * frame.h (Qdisplay_environment_variable): Delete.
16343
16344 * .gdbinit (xbacktrace): Print the arg's address rather than the value
16345 of the first arg, since that value may be a union.
16346
16347 * callproc.c (child_setup, getenv_internal): Use the frame's `display'
16348 parameter rather than Qdisplay_environment_variable. If all else
16349 fails, look for DISPLAY in initial-environment.
16350
163512007-09-21 Glenn Morris <rgm@gnu.org>
16352
16353 * Makefile.in (emacstool): Remove target.
16354 (lisp, shortlisp): Remove termdev.elc.
16355
163562007-09-21 Markus Triska <markus.triska@gmx.at>
16357
16358 * xterm.c (x_delete_display): Compile session management conditionally.
16359
163602007-09-20 Stefan Monnier <monnier@iro.umontreal.ca>
16361
16362 * callproc.c (getenv_internal_1): New function.
16363 (getenv_internal): Use it.
16364 (Fgetenv_internal): Use it. Accept an env-list as optional arg.
16365
16366 * terminal.c (get_terminal): Don't accept ints to represent terminals.
16367 (Fterminal_name, Fterminal_parameters, Fterminal_parameter)
16368 (Fset_terminal_parameter): Work with dead terminals as well.
16369 (Fmodify_terminal_parameters): Remove.
16370
16371 * terminal.c (get_terminal): Handle terminals.
16372 Make sure the terminal returned is live.
16373 (create_terminal): Use allocate_terminal.
16374 (mark_terminals): Move to alloc.c.
16375 (delete_terminal): Use terminal->name as liveness status.
16376 NULL out fields after freeing their contents.
16377 Don't deallocate the object.
16378 (Fframe_terminal): Use FRAME_TERMINAL. Return the terminal object
16379 rather than an int.
16380 (Fterminal_live_p): Accept non-integer arguments.
16381 (Fterminal_list): Return terminal objects rather than an ints.
16382
16383 * alloc.c (enum mem_type): New member for `terminal' objects.
16384 (allocate_terminal): New function.
16385 (mark_maybe_pointer, valid_lisp_object_p, mark_object):
16386 Handle terminals.
16387 (mark_terminal): New fun.
16388 (mark_terminals): Move from terminal.c.
16389
16390 * term.c (get_tty_terminal): Don't treat output_initial specially.
16391 (Fsuspend_tty, Fresume_tty): Use terminal objects rather than ints.
16392 (delete_tty): Use terminal->name as liveness status.
16393
16394 * termhooks.h (struct terminal): Make it into a pseudovector.
16395 Remove `deleted' replaced by checking `name's nullness.
16396
16397 * print.c (print_object): Handle terminals.
16398
16399 * lisp.h (enum pvec_type): New `terminal' pseudovector.
16400 (XTERMINAL, XSETTERMINAL, TERMINALP, GC_TERMINALP): New macros.
16401
16402 * frame.c (make_terminal_frame):
16403 * keyboard.c (tty_read_avail_input):
16404 * w32term.c (x_delete_terminal):
16405 * xfns.c (Fx_create_frame, x_create_tip_frame):
16406 * xterm.c (x_delete_terminal): Use terminal->name as liveness status.
16407
164082007-09-20 Glenn Morris <rgm@gnu.org>
16409
16410 * process.c (Fmake_network_process): Doc fix.
16411
164122007-09-19 Jason Rumney <jasonr@gnu.org>
16413
16414 * dispextern.h (w32_init_fringe, mac_init_fringe): Declare rif argument.
16415
164162007-09-19 Michaël Cadilhac <michael@cadilhac.name>
16417
16418 * coding.c (detect_eol_type, detect_eol_type_in_2_octet_form):
16419 Fix a C warning regarding variable constness.
16420
16421 * xterm.c (handle_one_xevent): Fix a C warning.
16422
164232007-09-18 Jason Rumney <jasonr@gnu.org>
16424
16425 * w32fns.c (Fx_focus_frame): Rename from Fw32_focus_frame.
16426
164272007-09-17 Jan Djärv <jan.h.d@swipnet.se>
16428
16429 * gtkutil.c (gdpy_def): New variable.
16430 (xg_initialize): Initialize gdpy_def.
16431 (xg_display_close): If no other display exists, set gdpy_def to a
16432 new connection.
16433
164342007-09-16 Jan Djärv <jan.h.d@swipnet.se>
16435
16436 * gtkutil.c (xg_get_image_for_pixmap): Always create a GdkPixbuf
16437 when we have no file name for the icon.
16438 (xg_tool_bar_expose_callback): Remove.
16439 (xg_create_tool_bar): Don't connect expose signal to
16440 xg_tool_bar_expose_callback.
16441 (xg_get_file_with_chooser): Move GCPRO1 after declarations.
16442
164432007-09-16 Andreas Schwab <schwab@suse.de>
16444
16445 * alloc.c (reset_malloc_hooks): Set the hooks to the previous
16446 values instead of zapping them.
16447
164482007-09-14 Glenn Morris <rgm@gnu.org>
16449
16450 * fringe.c (init_fringe_bitmap) <swap_nibble>: Move to file scope.
16451 * gtkutil.c (xg_separator_p) <separator_names>: Move to file scope.
16452 * image.c (our_memory_fill_input_buffer) <buffer>: Move to file
16453 scope and rename to omfib_buffer for clarity.
16454 (gif_load) <interlace_start, interlace_increment>: Move to file scope.
16455
164562007-09-14 Kenichi Handa <handa@m17n.org>
16457
16458 * xterm.c (handle_one_xevent): Skip decoding if nbytes is zero.
16459
164602007-09-13 Jason Rumney <jasonr@gnu.org>
16461
16462 * fringe.c (w32_init_fringe, mac_init_fringe): Add rif argument.
16463
16464 * w32term.c (w32_term_init): Pass rif to w32_init_fringe.
16465
16466 * macterm.c (mac_initialize): Don't call mac_init_fringe here.
16467 (mac_term_init): Call here instead, passing rif.
16468
164692007-09-13 Glenn Morris <rgm@gnu.org>
16470
16471 * s/hpux.h: No longer define `static' as nothing.
16472
164732007-09-13 Johan Bockgård <bojohan@gnu.org>
16474
16475 * callint.c (Fcall_interactively): Remove unused var `fun'.
16476
164772007-09-12 Romain Francoise <romain@orebokech.com>
16478
16479 * window.c (prefer_window_split_horizontally, display_buffer):
16480 Revert 2007-09-08 change.
16481
164822007-09-12 Glenn Morris <rgm@gnu.org>
16483
16484 * alloca.c: Remove file.
16485 * Makefile.in (alloca): Do not undef.
16486 (allocaobj, alloca.o): Remove.
16487 (otherobj): Remove allocaobj.
16488 * keyboard.c (command_loop_1): Remove #ifdef C_ALLOCA block.
16489 * regex.c (C_ALLOCA): Remove all references and code that was only
16490 used when this was defined.
16491 * search.c (boyer_moore): Remove #ifdef C_ALLOCA block.
16492 * xmenu.c (xmenu_show): Remove #ifdef C_ALLOCA block.
16493 * m/ibms390x.h, m/sh3el.h (C_ALLOCA): Remove references to this.
16494
16495 * Makefile.in (SOURCES, unlock, relock): Delete.
16496
16497 * gtkutil.c (cnt): Rename to menu_grab_callback_cnt for clarity.
16498 (menu_grab_callback): All uses changed.
16499
16500 * xselect.c (cnt): Rename to x_reply_selection_request_cnt for clarity.
16501 (x_reply_selection_request): All uses changed.
16502
165032007-09-11 Stefan Monnier <monnier@iro.umontreal.ca>
16504
16505 * lread.c (load_warn_old_style_backquotes): Change message to look
16506 better when it appears in the middle of byte-compiler messages.
16507
165082007-09-10 Dan Nicolaescu <dann@ics.uci.edu>
16509
16510 * s/darwin.h (MULTI_KBOARD): Only define for Carbon.
16511
16512 * xterm.c (x_create_terminal): Add comment.
16513
16514 * term.c (clear_tty_hooks, set_tty_hooks): Add comments.
16515
165162007-09-10 Richard Stallman <rms@gnu.org>
16517
16518 * xterm.c (x_term_init): Give error if can't open DISPLAY_NAME.
16519
165202007-09-10 Michaël Cadilhac <michael@cadilhac.name>
16521
16522 * lisp.h (struct Lisp_Subr): Rename `prompt' field to `intspec'.
16523 (DEFUN): Document `intspec', use it instead of `prompt'.
16524
16525 * eval.c (Fcommandp): Change `->prompt' to `->intspec'.
16526
16527 * data.c (Finteractive_form): If the interactive specification starts
16528 with a `(', use it as a Lisp form.
16529
16530 * fileio.c (Fset_file_modes): Add an interactive spec that reads a file
16531 name and file modes.
16532
16533 * callint.c (Fcall_interactively): Comment fixes.
16534
165352007-09-10 Stefan Monnier <monnier@iro.umontreal.ca>
16536
16537 * callint.c (Fcall_interactively): Use Finteractive_form also for subrs
16538 and compiled functions.
16539
165402007-09-08 Fredrik Axelsson <f.axelsson@gmail.com>
16541
16542 * window.c (prefer_window_split_horizontally): New variable.
16543 (display_buffer): Consider splitting window horizontally depending
16544 on prefer_window_split_horizontally.
16545
165462007-09-08 Eli Zaretskii <eliz@gnu.org>
16547
16548 * sysdep.c [WINDOWSNT]: Don't include sysselect.h.
16549
165502007-09-07 Stefan Monnier <monnier@iro.umontreal.ca>
16551
16552 * s/cygwin.h (GC_MARK_STACK): Enable conservative stack marking.
16553
16554 * frame.c (x_set_frame_parameters): Check number is positive before
16555 using XFASTINT.
16556
16557 * window.c (freeze_window_start): Don't presume selected_window holds
16558 a window object.
16559 (Fdisplay_buffer): Remove `register' since `buffer' needs to be gcpro'd.
16560
165612007-09-07 Angelo Graziosi <Angelo.Graziosi@roma1.infn.it> (tiny change)
16562
16563 * term.c (dissociate_if_controlling_tty): Call setsid on CYGWIN.
16564
165652007-09-07 Stefan Monnier <monnier@iro.umontreal.ca>
16566
16567 * window.c (Vsplit_window_preferred_function): New var.
16568 (Fdisplay_buffer): Use it.
16569 (syms_of_window): Export, and initialize it.
16570
165712007-09-06 Pixel <pixel@mandriva.com> (tiny change)
16572
16573 * image.c (gif_load): Fix bug: Handle nonexistent colormap.
16574
165752007-09-06 Glenn Morris <rgm@gnu.org>
16576
16577 * gtkutil.c (menu_grab_callback) <cnt>:
16578 * xselect.c (x_reply_selection_request) <cnt>: Move static
16579 variable to file scope.
16580
165812007-09-06 Stefan Monnier <monnier@iro.umontreal.ca>
16582
16583 * xdisp.c (redisplay_internal): Make sure Elisp code always sees
16584 consistent values of selected_frame and selected_window.
16585
165862007-09-04 Jason Rumney <jasonr@gnu.org>
16587
16588 * w32console.c (initialize_w32_display): Zero unused hooks.
16589
165902007-09-04 Dan Nicolaescu <dann@ics.uci.edu>
16591
16592 * term.c (Vsuspend_tty_functions, Vresume_tty_functions)
16593 (syms_of_term, Fsuspend_tty, Fresume_tty): Undo previous change.
16594
165952007-09-04 Jason Rumney <jasonr@gnu.org>
16596
16597 * term.c (init_tty) [WINDOWSNT]: Add hooks that are not accessible
16598 in w32console.c. Set up input. Remove XXX comments that have been
16599 confirmed as correct.
16600
16601 * s/ms-w32.h (MULTI_KBOARD): Define.
16602
16603 * w32console.c (one_and_only_w32cons): Remove.
16604 (initialize_w32_display): Take terminal argument.
16605
16606 * term.c (init_tty) [WINDOWSNT]: Pass terminal to
16607 initialize_w32_display.
16608 (init_tty) [MULTI_KBOARD]: Include this code on WINDOWSNT too.
16609
16610 * termhooks.h (enum event_kind) <HORIZ_WHEEL_EVENT>: New event.
16611
16612 * keyboard.c (discard_mouse_events): Discard it.
16613 (make_lispy_event): Translate it to a lisp event.
16614 (lispy_wheel_names): Add wheel-left and right events.
16615 (syms_of_keyboard): Enlarge wheel_syms.
16616
16617 * w32fns.c (w32_wnd_proc) <WM_DROPFILES>: Merge with WM_MOUSEWHEEL.
16618 <WM_MOUSEHWHEEL>: Pass new system message to lisp.
16619
16620 * w32term.h (WM_MOUSEHWHEEL): Define if system headers don't.
16621
16622 * w32term.c (construct_mouse_wheel): Make HORIZ_WHEEL_EVENT
16623 from WM_MOUSEHWHEEL.
16624 (w32_read_socket) <WM_MOUSEHWHEEL>: Treat as WM_MOUSEWHEEL.
16625
16626 * w32fns.c (x_create_tip_frame) [MULTI_KBOARD]: Get keyboard from
16627 terminal.
16628
16629 * w32term.c (w32_create_terminal) [MULTI_KBOARD]: Create a new
16630 keyboard for the terminal.
16631
166322007-09-04 Dan Nicolaescu <dann@ics.uci.edu>
16633
16634 * term.c (Vsuspend_tty_hook): Rename from Vsuspend_tty_functions.
16635 (Vresume_tty_hook): Rename from Vresume_tty_functions.
16636 (syms_of_term): Rename suspend-tty-functions to suspend-tty-hook
16637 and resume-tty-function to resume-tty-hook.
16638 (Fsuspend_tty, Fresume_tty): Use new names.
16639
166402007-09-02 Jan Djärv <jan.h.d@swipnet.se>
16641
16642 * gtkutil.c (update_frame_tool_bar): Handle stock name as a named icon
16643 if it starts with "n:".
16644
166452007-08-31 Jan Djärv <jan.h.d@swipnet.se>
16646
16647 * gtkutil.c (update_frame_tool_bar): Initialize wbutton to NULL.
16648
166492007-08-31 Stefan Monnier <monnier@iro.umontreal.ca>
16650
16651 * frame.h:
16652 * frame.c (Qterm_environment_variable): Remove.
16653 (syms_of_frame): Don't init and staticpro it.
16654
16655 * callproc.c (getenv_internal): Remove special case for $TERM.
16656
16657 * callproc.c (Vinitial_environment): New variable.
16658 (set_initial_environment): Initialize it.
16659 (syms_of_callproc): Declare it.
16660 (child_setup): Don't mess with TERM via Qterm_environment_variable; the
16661 TERM under which a process runs is never related to the TERM in which
16662 Emacs is running.
16663
166642007-08-29 Dan Nicolaescu <dann@ics.uci.edu>
16665
16666 * config.in (HAVE_WINDOW_SYSTEM): Don't undef MULTI_KBOARD here...
16667 * s/darwin.h: ... do it here.
16668
166692007-08-29 Stefan Monnier <monnier@iro.umontreal.ca>
16670
16671 * lisp.h (set_initial_environment): Rename from set_global_environment.
16672
16673 * Makefile.in (${etc}DOC): Re-add a ${EXEEXT} which seems to have been
16674 removed by mistake on the multi-tty branch.
16675
16676 * frame.c (make_terminal_frame): Yet Another Int/Lisp_Object Mixup.
16677 (Fmodify_frame_parameters): Return a value.
16678
16679 * image.c (png_load): Comment-out var only used in commented-out code.
16680
16681 * term.c (mark_ttys): Don't bother checking top_frame (incorrectly)
16682 before passing it to mark_object.
16683
16684 * xfaces.c (internal_resolve_face_name): Return a value.
16685 (internal_resolve_face_name, resolve_face_name_error): Comment out.
16686
16687 * xfns.c (check_x_display_info): Yet Another Int/Lisp_Object Mixup.
16688 (x_icon): Comment-out var only used in commented-out code.
16689
166902007-08-29 Romain Francoise <romain@orebokech.com>
16691
16692 * keyboard.c (Fset_input_mode): Don't call `Fset_quit_char' if
16693 QUIT hasn't been provided.
16694
166952007-08-29 Dan Nicolaescu <dann@ics.uci.edu>
16696
16697 * callproc.c (child_setup, getenv_internal): Use the
16698 display-environment-variable and term-environment-variable frame params.
16699 (set_initial_environment): Initialise Vprocess_environment.
16700
16701 * config.in: Disable multi-keyboard support on a mac.
16702
16703 * frame.c (Qterm_environment_variable)
16704 (Qdisplay_environment_variable): New variables.
16705 (syms_of_frame): Intern and staticpro them.
16706 (Fmake_terminal_frame): Disable output method test.
16707
16708 * frame.h: Declare them here.
16709
16710 * macfns.c (x_set_mouse_color): Get rif from the frame.
16711 (x_set_tool_bar_lines): Don't use updating_frame.
16712 (mac_window): Add 2 new parameters for consistency with other systems.
16713 (Fx_create_frame): Fix doc string. Rename the parameter. Set the
16714 frame parameters following what is done in X11 and w32. Don't use
16715 FRAME_MAC_DISPLAY_INFO.
16716 (Fx_open_connection, start_hourglass): Remove window-system check.
16717 (x_create_tip_frame): Get the keyboard from the terminal.
16718
16719 * macmenu.c: Reorder includes.
16720 (Fx_popup_menu): Use terminal specific mouse_position_hook.
16721
16722 * macterm.c (XTset_terminal_modes, XTreset_terminal_modes): Add a
16723 terminal parameter.
16724 (x_clear_frame): Add a frame parameter.
16725 (note_mouse_movement): Get rif from the frame.
16726 (mac_term_init): Initialize the terminal.
16727 (mac_initialize): Make static and move terminal initialization ...
16728 (mac_create_terminal): ... to this new function.
16729
16730 * macterm.h (struct mac_display_info): Add terminal.
16731 (mac_initialize): Delete declaration.
16732
16733 * puresize.h (BASE_PURESIZE): Increase base value to 1164000.
16734
16735 * sysdep.c: Comment out text after #endif.
16736
16737 * term.c (init_tty): Only use terminal->kboard when MULTI_KBOARD
16738 is defined. Better initialize ttys in windows. Use terminal
16739 specific mouse_position_hook.
16740
16741 * termhooks.h (union display_info): Add mac_display_info.
16742
16743 * w32fns.c (Fx_create_frame): Use kboard from the terminal.
16744 Set the default minibuffer frame, window_system and the rest of the
16745 frame parameters following what is done in X11.
16746
16747 * w32term.c (w32_initialize): Make static.
16748
16749 * xselect.c (x_handle_selection_clear): Only access
16750 terminal->kboard when MULTI_KBOARD is defined.
16751
16752 * s/darwin.h (SYSTEM_PURESIZE_EXTRA): Define here.
16753 (SYSTEM_PURESIZE_EXTRA): Only define on Carbon.
16754
167552007-08-29 Jason Rumney <jasonr@gnu.org>
16756
16757 * frame.c (Fdelete_frame): Only get kboard when MULTI_KBOARD defined.
16758 (make_terminal_frame) [WINDOWSNT]: Initialize terminal.
16759
16760 * fringe.c (w32_init_fringe w32_reset_fringes) [HAVE_NTGUI]:
16761 (mac_init_fringe) [MAC_OS]: Get rif from selected_frame.
16762
16763 * keyboard.c (restore_kboard_configuration): Only define when
16764 MULTI_KBOARD defined.
16765
16766 * makefile.w32-in: Update dependancies from Makefile.in.
16767 (OBJ1): Add terminal.$(O)
16768
16769 * term.c (dissociate_if_controlling_tty) [WINDOWSNT]:
16770 Don't define function body.
16771 (init_tty) [WINDOWSNT]: Use selected_frame for initializing.
16772
16773 * termhooks.h (display_info) [WINDOWSNT]: Add w32.
16774
16775 * w32.c (request_sigio, unrequest_sigio): Remove.
16776
16777 * w32console.c (w32con_move_cursor, w32con_clear_to_end)
16778 (w32con_clear_frame, w32con_clear_end_of_line)
16779 (w32con_ins_del_lines, w32con_insert_glyphs, w32con_write_glyphs)
16780 (w32con_delete_glyphs, w32con_set_terminal_window)
16781 (scroll_line, w32_sys_ring_bell): Add frame arg.
16782 (w32con_set_terminal_modes, w32con_reset_terminal_modes):
16783 Add terminal arg.
16784 (PICK_FRAME): Remove.
16785 (w32con_write_glyphs): Use frame specific terminal coding.
16786 (one_and_only_w32cons): New global variable.
16787 (initialize_w32_display): Use it for storing hooks.
16788 (create_w32cons_output): New function.
16789
16790 * w32inevt.c, w32inevt.h (w32_console_read_socket): Make first
16791 arg a frame.
16792
16793 * w32fns.c (x_create_tip_frame): Set terminal and ref count.
16794 Set window_system.
16795 (x_set_tool_bar_lines): Don't use updating_frame.
16796 (Fx_create_frame): Set terminal and ref count.
16797 (Fx_open_connection): Remove window-system check.
16798
16799 * w32menu.c (Fx_popup_menu): Use terminal specific mouse_position_hook.
16800
16801 * w32term.c (w32_term_init): Call add_keyboard_wait_descriptor.
16802 (w32_set_terminal_modes, w32_reset_terminal_modes): Add terminal arg.
16803 (x_clear_frame, x_delete_glyphs, w32_ring_bell, x_ins_del_lines):
16804 Add frame arg.
16805 (x_delete_terminal, w32_create_terminal): New functions.
16806 (w32_term_init): Create a terminal.
16807 (w32_initialize): Move terminal specific initialization to
16808 w32_create_terminal.
16809
16810 * w32term.h (x_output): Remove foreground_pixel and background_pixel.
16811 (w32_clear_rect, w32_clear_area): Use background from frame.
16812 (w32_display_info): Add terminal.
16813 (w32_sys_ring_bell, x_delete_display): Declare here.
16814
16815 * xdisp.c (display_menu_bar) [HAVE_NTGUI]: Check frame type.
16816
16817 * s/ms-w32.h (SYSTEM_PURESIZE_EXTRA): Bump to 50k.
16818
168192007-08-29 Kalle Olavi Niemitalo <kon@iki.fi> (tiny change)
16820
16821 * keyboard.c (interrupt_signal, handle_interrupt, Fset_quit_char):
16822 Fix get_named_tty calls for the controlling tty.
16823
168242007-08-29 ARISAWA Akihiro <ari@mbf.ocn.ne.jp> (tiny change)
16825
16826 * term.c (dissociate_if_controlling_tty)[USG]: Fix parse error.
16827
168282007-08-29 Yoshiaki Kasahara <kasahara@nc.kyushu-u.ac.jp> (tiny change)
16829
16830 * term.c (tty_insert_glyphs): Add missing first parameter.
16831
168322007-08-29 Károly Lőrentey <karoly@lorentey.hu>
16833
16834 * buffer.c (Fbuffer_list, Fbury_buffer):
16835 Take frame->buried_buffer_list into account.
16836
16837 * cm.c (current_tty): New variable, for cmputc().
16838 (cmputc): Use it.
16839 (cmcheckmagic): Add tty parameter, look up terminal streams there.
16840 (calccost): Add tty parameter. Use emacs_tputs() instead of tputs().
16841 (cmgoto): Add tty parameter. Pass it on to calccost().
16842 Use emacs_tputs() instead of tputs().
16843
16844 * cm.h (emacs_tputs): New macro to set current_tty, and then call
16845 tputs().
16846 (current_tty): New variable, for cmputc().
16847 (cmcheckmagic, cmputc, cmgoto): Add prototypes.
16848
16849 * eval.c (unwind_to_catch): Don't call x_fully_uncatch_errors.
16850 (internal_condition_case, internal_condition_case_1)
16851 (internal_condition_case_2): Don't abort when x_catching_errors.
16852
16853 * fns.c (Fyes_or_no_p): Don't try to open an X dialog on tty terminals.
16854 (Fy_or_n_p): Likewise. Use temporarily_switch_to_single_kboard to
16855 prevent crashes caused by bogus longjmps in read_char.
16856
16857 * keymap.h (Fset_keymap_parent): Add EXFUN.
16858
16859 * macterm.h (FRAME_FOREGROUND_PIXEL, FRAME_BACKGROUND_PIXEL)
16860 * w32term.h (FRAME_FOREGROUND_PIXEL, FRAME_BACKGROUND_PIXEL):
16861 Remove redundant definition.
16862
16863 * macfns.c (x_set_mouse_color, x_make_gc):
16864 Use FRAME_BACKGROUND_PIXEL and FRAME_FOREGROUND_PIXEL.
16865
16866 * w32term.c (x_free_frame_resources):
16867 Use FRAME_BACKGROUND_PIXEL and FRAME_FOREGROUND_PIXEL.
16868 (w32_initialize): Use the accessor macros for terminal characteristics.
16869
16870 * macterm.c (mac_initialize): Use Fset_input_interrupt_mode.
16871 Use the accessor macros for terminal characteristics.
16872 * msdos.c (internal_terminal_init): Use the accessor macros for
16873 terminal characteristics.
16874 (ScreenVisualBell, internal_terminal_init):
16875 Use FRAME_BACKGROUND_PIXEL and FRAME_FOREGROUND_PIXEL.
16876
16877 * termopts.h (no_redraw_on_reenter): Declare.
16878
16879 * alloc.c (emacs_blocked_malloc): Disable mallopt call.
16880 (mark_terminals, mark_ttys): Declare.
16881 (Fgarbage_collect): Call them.
16882 (mark_object): Mark buried_buffer_list.
16883
16884 * prefix-args.c: Include stdlib.h for exit.
16885
16886 * syssignal.h: Add comment.
16887
16888 * indent.c: Include stdio.h.
16889
16890 * window.h (Vinitial_window_system): Declare.
16891 (Vwindow_system): Delete declaration.
16892
16893 * fontset.c (Finternal_char_font): Use FRAME_RIF.
16894
16895 * image.c (lookup_image): Don't initialize `c' until the xasserts
16896 have been run.
16897
16898 * gtkutil.c (xg_create_frame_widgets): Use FRAME_BACKGROUND_PIXEL and
16899 FRAME_FOREGROUND_PIXEL.
16900
16901 * print.c (print_preprocess): Don't lose print_depth levels while
16902 iterating.
16903
16904 * widget.c (update_from_various_frame_slots):
16905 Use FRAME_BACKGROUND_PIXEL and FRAME_FOREGROUND_PIXEL.
16906
16907 * window.c (set_window_buffer): Don't call clear_mouse_face on tty
16908 frames.
16909 (window_internal_height): Remove bogus make_number call.
16910 (init_window_once): Call make_terminal_frame with two zero parameters.
16911
16912 * fileio.c (Fread_file_name): Update comment.
16913
16914 * callint.c (Fcall_interactively):
16915 Use temporarily_switch_to_single_kboard instead of single_kboard_state.
16916 Make sure it is correctly unwound.
16917
16918 * xsmfns.c (x_session_close): New function.
16919
16920 * coding.h (terminal_coding, safe_terminal_coding, keyboard_coding):
16921 Delete declarations.
16922
16923 * xterm.h: Remove declaration for x_fully_uncatch_errors.
16924 (x_output): Remove background_pixel and foreground_pixel fields.
16925 (x_display_info): Add new field TERMINAL. Remove KBOARD field.
16926 (x_delete_device, x_session_close): Declare.
16927
16928 * lread.c: Include setjmp.h. Update declaration of `read_char'.
16929 (read_filtered_event): Call `read_char' with a local
16930 `wrong_kboard_jmpbuf'.
16931
16932 * minibuf.c (read_minibuf): Call temporarily_switch_to_single_kboard.
16933 Don't call single_kboard_state. Use FRAME_RIF.
16934
16935 * process.c (Fmake_network_process): Don't unrequest_sigio on modern
16936 systems.
16937
16938 * lisp.h (set_process_environment): Rename to `set_global_environment'.
16939 (Fframe_with_environment, Fset_input_meta_mode)
16940 (Fset_quit_char): EXFUN.
16941 (x_create_device, tty_output, terminal, tty_display_info): Declare.
16942 (init_sys_modes, reset_sys_modes): Update prototypes.
16943 (init_all_sys_modes, reset_all_sys_modes): New prototypes.
16944
16945 * keyboard.h (struct kboard): Add new fields Vlocal_function_key_map,
16946 Vlocal_key_translation_map, and Vkeyboard_translate_table.
16947 (Vfunction_key_map, Vkeyboard_translate_table, single_kboard_state):
16948 Delete declarations.
16949 (Vfunction_key_map, Vkey_translation_map, push_kboard, pop_kboard)
16950 (temporarily_switch_to_single_kboard, tty_read_avail_input):
16951 New declarations.
16952
16953 * emacs.c (main): Don't call init_sys_modes(), the new term_init()
16954 already does that during init_display(). Call syms_of_keymap
16955 before syms_of_keyboard. Call `syms_of_terminal'.
16956 Call set_initial_environment, not set_process_environment.
16957 (shut_down_emacs): Call reset_all_sys_modes() instead of
16958 reset_sys_modes().
16959
16960 * xfaces.c (x_free_gc): Protect xassert with GLYPH_DEBUG.
16961 (internal_resolve_face_name, resolve_face_name_error): New functions.
16962 (resolve_face_name): Protect against loops and errors thrown by Fget.
16963 (realize_default_face): Don't use FRAME_FONT unless frame is an X frame.
16964 (Ftty_supports_face_attributes_p): Update tty_capable_p call.
16965
16966 * scroll.c: Replace CURTTY() with local variables throughout the
16967 file (where applicable).
16968 (calculate_scrolling, calculate_direct_scrolling)
16969 (scrolling_1, scroll_cost): Use the accessor macros for terminal
16970 characteristics.
16971
16972 * keymap.c (Vfunction_key_map): Remove.
16973 (Fdescribe_buffer_bindings): Update references to Vfunction_key_map.
16974 (syms_of_keymap): Remove DEFVAR for Vfunction_key_map.
16975 (Vkey_translation_map): Remove.
16976 (syms_of_keymap): Remove DEFVAR for key-translation-map.
16977 (Fdescribe_buffer_bindings)
16978 (read_key_sequence, init_kboard, syms_of_keyboard, mark_kboards):
16979 Update for terminal-local key-translation-map.
16980
16981 * Makefile.in (callproc.o): Update dependencies.
16982 (lisp, shortlisp): Add termdev.elc.
16983 (obj): Add terminal.o.
16984 (terminal.o): Add dependencies.
16985 [HAVE_CARBON]: Make terminal.o depend on macgui.h.
16986 (data.o, fns.o): Add termhooks.h dependency.
16987 (SOME_MACHINE_LISP): Add dnd.elc.
16988 (minibuf.o): Fix typo.
16989 Update dependencies.
16990
16991 * data.c (do_symval_forwarding, store_symval_forwarding)
16992 (find_symbol_value): Use the selected frame's keyboard, not
16993 current_kboard.
16994
16995 * .gdbinit (init_sys_modes): Use Vinitial_window_system instead of
16996 Vwindow_system.
16997
16998 * xmenu.c (Fx_menu_bar_open) [USE_X_TOOLKIT, USE_GTK]: Rename from
16999 Fmenu_bar_open.
17000 (syms_of_xmenu): Update defsubr.
17001 (mouse_position_for_popup, Fx_popup_menu)
17002 (Fx_popup_dialog, x_activate_menubar, update_frame_menubar)
17003 (set_frame_menubar, free_frame_menubar)
b97439ce 17004 (create_and_show_popup_menu, xmenu_show)
aac0c6e3
MR
17005 (create_and_show_dialog, xdialog_show, xmenu_show): Abort if not
17006 an X frame.
17007
17008 * xselect.c (x_own_selection): Abort if not an X frame.
17009 (some_frame_on_display): Check if it is an X frame.
17010 (x_handle_selection_clear): Deal with MULTI_KBOARD.
17011
17012 * coding.c: Include frame.h and termhooks.h.
17013 (terminal_coding, keyboard_coding): Delete.
17014 (Fset_terminal_coding_system_internal)
17015 (Fset_keyboard_coding_system_internal)
17016 (Fkeyboard_coding_system)
17017 (Fterminal_coding_system): Add a terminal parameter.
17018 Get terminal_coding from the terminal.
17019 (init_coding_once): Don't call setup_coding_system here.
17020
17021 * dispextern.h (set_scroll_region, turn_off_insert)
17022 (turn_off_highlight, background_highlight, clear_end_of_line_raw)
17023 (tty_clear_end_of_line, tty_setup_colors)
17024 (delete_tty, updating_frame)
17025 (produce_special_glyphs, produce_glyphs, write_glyphs)
17026 (insert_glyphs): Remove.
17027 (raw_cursor_to, clear_to_end, tty_turn_off_insert)
17028 (tty_turn_off_highlight, get_tty_size): Add declaration.
17029 (tabs_safe_p, init_baud_rate, get_tty_terminal): Update prototypes.
17030
17031 * frame.h (enum output_method): Add output_initial.
17032 (struct x_output): Delete.
17033 (FRAME_FOREGROUND_PIXEL, FRAME_BACKGROUND_PIXEL):
17034 Access foreground_pixel and background_pixel directly from the frame.
17035 (tty_display): Delete.
17036 (struct frame): Add buried_buffer_list, foreground_pixel,
17037 background_pixel and terminal. Delete kboard.
17038 (union output_data): Add tty.
17039 (FRAME_KBOARD): Get the kboard from the terminal.
17040 (FRAME_INITIAL_P): New macro.
17041 (Qtty, Qtty_type, Qterminal, Qterminal_live_p, Qenvironment)
17042 (Qterm_environment_variable, Qdisplay_environment_variable)
17043 (make_terminal_frame, Qburied_buffer_list, Qwindow_system):
17044 New declarations.
17045
17046 * termchar.h (tty_output, tty_display_info): New structures.
17047 (tty_list): Declare.
17048 (FRAME_TTY, CURTTY): New macros.
17049 (must_write_spaces, min_padding_speed, fast_clear_end_of_line)
17050 (line_ins_del_ok, char_ins_del_ok, scroll_region_ok)
17051 (scroll_region_cost, memory_below_frame, fast_clear_end_of_line)
17052 (dont_calculate_costs, no_redraw_on_reenter): Remove declarations.
17053
17054 * callproc.c: Include frame.h and termhooks.h, for terminal
17055 parameters.
17056 (add_env): New function.
17057 (child_setup): Use it.
17058 (child_setup, getenv_internal): Handle the new Vprocess_environment.
17059 (getenv_internal): Fix get_terminal_param call.
17060 (Fgetenv_internal, egetenv): Update doc.
17061 (syms_of_callproc): Initialize Vprocess_environment to nil.
17062 Register and initialize them. Remove obsolete defvars. Update doc
17063 strings.
17064 (child_setup): Handle Vlocal_environment_variables.
17065 (getenv_internal): Add terminal parameter.
17066 Handle Vlocal_environment_variables.
17067 (Fgetenv_internal): Add terminal parameter.
17068 (child_setup, getenv_internal, Fgetenv_internal): Store the local
17069 environment in a frame (not terminal) parameter. Update doc strings.
17070 (set_initial_environment): Rename from set_global_environment.
17071 Store Emacs environment in initial frame parameter.
17072
17073 * xdisp.c (redisplay_internal): Update references to
17074 `previous_terminal_frame'.
17075 (display_mode_line, Fformat_mode_line): Replace calls to
17076 `push_frame_kboard' with `push_kboard'.
17077 (get_glyph_string_clip_rects): Add extra parentheses and
17078 braces to prevent compiler warnings.
17079 (calc_pixel_width_or_height): Add xassert to check that the
17080 frame is alive. Don't call `lookup_image' on a termcap frame.
17081 (message2_nolog, message3_nolog, redisplay_internal)
17082 (set_vertical_scroll_bar, redisplay_window, check_x_display_info)
17083 (x_set_scroll_bar_foreground, x_set_scroll_bar_background)
17084 (Fx_create_frame, Fxw_display_color_p, Fx_display_grayscale_p)
17085 (Fx_display_pixel_width, Fx_display_pixel_height)
17086 (Fx_display_planes, Fx_display_color_cells)
17087 (Fx_server_max_request_size, Fx_server_vendor, Fx_server_version)
17088 (Fx_display_screens, Fx_display_mm_height, Fx_display_mm_width)
17089 (Fx_display_backing_store, Fx_display_visual_class)
17090 (Fx_display_save_under, Fx_close_connection, x_create_tip_frame):
17091 Use FRAME_TERMINAL_P, FRAME_WINDOW_P, FRAME_TTY and FRAME_RIF.
17092
17093 * xfns.c (x_set_foreground_color x_set_background_color)
17094 (x_set_mouse_color, x_set_cursor_color, x_make_gc):
17095 Use FRAME_BACKGROUND_PIXEL and FRAME_FOREGROUND_PIXEL.
17096 (Fx_create_frame, x_create_tip_frame, build_string, x_window)
17097 (Fx_create_frame, x_create_tip_frame): Don't create frames on a
17098 terminal that is being deleted.
17099 (Fx_create_frame): Use `store_frame_param' to set `window-system'
17100 frame parameter, and make sure it overrides any user-supplied setting.
17101 (Fx_close_connection, Fx_synchronize): Unify argument names with
17102 the rest of the DEFUNs.
17103
17104 * dispnew.c (Fsend_string_to_terminal): Update call to
17105 `get_tty_terminal'.
17106 (Fredraw_frame, Fsend_string_to_terminal)
17107 (Fsend_string_to_terminal, init_display): Use FRAME_RIF,
17108 FRAME_TERMCAP_P and FRAME_TTY.
17109 (window_change_signal): Don't believe width/height values that are
17110 impossibly small.
17111 (Vinitial_window_system): Rename from Vwindow_system.
17112 (termscript, Wcm, rif): Delete.
17113
17114 * termhooks.h (struct terminal): New struct containing the
17115 previously global text display hooks and new members NAME,
17116 DELETED and PARAM_ALIST.
17117 (FRAME_TERMINAL, TERMINAL_TERMINAL_CODING)
17118 (TERMINAL_KEYBOARD_CODING, TERMINAL_ACTIVE_P, FRAME_WINDOW_P)
17119 (FRAME_RIF): New macros.
17120 (get_terminal_param, get_device): New declarations.
17121 (termscript): Delete declaration.
17122
17123 * xterm.c (x_initialize): Use Fset_input_interrupt_mode.
17124 (XTflash, x_free_frame_resources, x_scroll_bar_create)
17125 (x_scroll_bar_set_handle): Use FRAME_BACKGROUND_PIXEL and
17126 FRAME_FOREGROUND_PIXEL.
17127 (x_fully_uncatch_errors): Disable definition.
17128 (x_scroll_bar_expose): Fix reference to foreground pixel.
17129 (XTread_socket): Disable loop on all X displays.
17130 (x_delete_terminal): Don't set terminal->deleted and let
17131 delete_terminal delete the frames on the terminal.
17132 (x_delete_display): Doc update to reflect changes in
17133 delete_terminal.
17134 (x_display_info) <terminal>: Move member earlier in the struct.
17135 (deleting_tty): Remove old variable.
17136 (Fsuspend_tty): Call clear_tty_hooks.
17137 (Fresume_tty, init_tty): Call set_tty_hooks.
17138 (Ftty_display_color_p, Ftty_display_color_cells): Don't throw
17139 errors on X frames.
17140 (x_catch_errors_unwind): Abort if x_error_message is NULL.
17141 (handle_one_xevent): Initialize `f' to NULL.
17142 (x_delete_terminal, x_create_terminal): New functions.
17143 (XTset_terminal_modes, XTreset_terminal_modes)
17144 (XTread_socket, x_connection_closed, x_term_init)
17145 (x_term_init, x_delete_display): Add terminal parameter.
17146 (x_term_init) [!HAVE_GTK_MULTIDISPLAY]: Refuse to create secondary
17147 X connections.
17148
17149 * frame.c: Include termchar.h.
17150 (Qterminal, Qterminal_live_p, Qburied_buffer_list, Qtty, Qtty_type)
17151 (Qwindow_system, Qenvironment, Qterm_environment_variable)
17152 (Qdisplay_environment_variable): New vars.
17153 (Fframep): Deal with output_initial.
17154 (Fframe-live-p): Doc fix.
17155 (Fwindow-system): New function.
17156 (x_set_screen_gamma, store_frame_param): Fix compilation errors.
17157 (make_terminal_frame): Don't create frames on a terminal that is
17158 being deleted. Use FRAME_BACKGROUND_PIXEL and FRAME_FOREGROUND_PIXEL.
17159 (store_frame_param): Check for found_for_frame before calling XFRAME.
17160 (Fmake_terminal_frame): Handle NULL tty names correctly.
17161 (syms_of_frame): Enhance doc string of `default-frame-alist'.
17162 (Fdelete_frame): Remove unused variable `count'. Don't allow other
17163 frames to refer to a deleted frame in their 'environment parameter.
17164 (Fframe_with_environment): New function.
17165 (syms_of_frame): Defsubr it. Initialize and staticpro Qenvironment.
17166 (get_future_frame_param): New function.
17167 (Fmake_terminal_frame): Use it.
17168 (x_set_frame_parameters, x_set_screen_gamma): Use FRAME_RIF.
17169
17170 * sysdep.c (init_sys_modes, reset_sys_modes): Update for renames.
17171 * sysdep.c (reset_sys_modes): Update for renames.
17172
17173 * keyboard.c (tty_read_avail_input): New function.
17174 (Fset_input_interrupt_mode, Fset_output_flow_control): New functions.
17175 (syms_of_keyboard): Defsubr them.
17176 (Fset_input_meta_mode, Fset_quit_char): New functions.
17177 (Fset_input_mode): Split to above functions.
17178 (read_char_minibuf_menu_prompt): Add wrong_kboard_jmpbuf
17179 parameter. Use it in call to `read_char'.
17180 (read_char): Declare. Update call to `read_char_minibuf_menu_prompt'.
17181 Set wrong_kboard_jmpbuf correctly in recursive calls.
17182 Use current_kboard to access Vkeyboard_translate_table.
17183 Enhance comment before extra longjmp to wrong_kboard_jmpbuf.
17184 Add wrong_kboard_jmpbuf parameter to allow for recursive calls.
17185 Update longjmp invocations. Remember the original current_kboard,
17186 and longjmp to `wrong_kboard_jmpbuf' when a filter, timer or sentinel
17187 changes it. Comment out unnecessary calls to
17188 `record_single_kboard_state' and `any_kboard_state'.
17189 Update recursive calls.
17190 (wrong_kboard_jmpbuf): Remove global variable.
17191 (read_key_sequence): Remove unused variable wrong_kboard_jmpbuf.
17192 Handle deleted interrupted_kboards correctly; that is a legal
17193 case. Add `wrong_kboard_jmpbuf' local variable. Update setjmp
17194 and read_char calls. Abort if interrupted_kboard died in read_char.
17195 (any_kboard_state, single_kboard_state)
17196 (push_frame_kboard): Remove function.
17197 (pop_kboard): Switch out of single_kboard mode if the kboard has
17198 been deleted. Remove unused variable. Help debugging by not
17199 changing current_kboard unnecessarily. Set current_kboard to the
17200 kboard of the selected frame when the stored kboard object has
17201 been deleted before pop_kboard.
17202 (temporarily_switch_to_single_kboard): Change first parameter to a
17203 frame pointer. Throw an error when caller wants to change kboards
17204 while in single_kboard mode. Don't push_kboard if we weren't in
17205 single kboard state. Don't pop_kboard if we popped into any
17206 kboard state.
17207 (restore_kboard_configuration): Abort if pop_kboard changed the
17208 kboard in single_kboard mode. Call pop_kboard only after setting
17209 up single_kboard mode.
17210 (Frecursive_edit): Switch to single_kboard mode only in nested
17211 command loops.
17212 (cmd_error, command_loop, command_loop_1, timer_check):
17213 Comment out unnecessary call to `any_kboard_state' and
17214 `record_single_kboard_state'.
17215 (delete_kboard): Exit single_kboard mode if we have just deleted
17216 that kboard. Use FRAME_KBOARD.
17217 (interrupt_signal): Use `Fkill_emacs' to exit Emacs, not
17218 `fatal_error_signal'.
17219 (record_single_kboard_state): Don't push_kboard if we weren't in
17220 single kboard state. Don't pop_kboard if we popped into any
17221 kboard state.
17222 (push_frame_kboard): Rename to push_kboard.
17223 (kbd_buffer_get_event): Use FRAME_TERMINAL.
17224 (read_avail_input): Read input from all terminals.
17225 (mark_kboards): Also mark Vkeyboard_translate_table.
17226 (kbd_buffer_store_event_hold): Simplify condition.
17227 (read_key_sequence): Reinitialize fkey and keytran at each replay.
17228 (Vkeyboard_translate_table): Move to struct kboard.
17229 (init_kboard): Initialize Vkeyboard_translate_table.
17230 (syms_of_keyboard): Use DEFVAR_KBOARD to define
17231 Vkeyboard_translate_table. Update doc strings. Update docs of
17232 local-function-key-map and function-key-map.
17233
17234 * terminal.c: New file.
17235
17236 * term.c: Include errno.h.
17237 (Vring_bell_function, device_list, initial_device)
17238 (next_device_id, ring_bell, update_begin, update_end)
17239 (set_terminal_window, cursor_to, raw_cursor_to)
17240 (clear_to_end, clear_frame, clear_end_of_line)
17241 (write_glyphs, insert_glyphs, delete_glyphs, ins_del_lines)
17242 (Fdisplay_name, create_device, delete_device): Move to terminal.c.
17243 (syms_of_term): Move their initialization to terminal.c.
17244 (get_tty_terminal, Fdisplay_tty_type, Ftty_display_color_p)
17245 (Ftty_display_color_cells)
17246 (Ftty_no_underline, Fsuspend_tty, Fresume_tty, create_tty_output)
17247 (clear_tty_hooks, set_tty_hooks)
17248 (init_tty, maybe_fatal): New functions.
17249 (Ftty_type): Return nil if terminal is not on a tty instead of
17250 throwing an error. Doc update.
17251 (syms_of_term) <Vsuspend_tty_functions, Vresume_tty_functions>:
17252 Doc update. Initialize new subrs and variables.
17253 (delete_tty): Use terminal->deleted.
17254 (tty_set_terminal_modes): Rename from set_terminal_modes.
17255 (tty_reset_terminal_modes): Rename from reset_terminal_modes.
17256 (set_scroll_region): Rename to `tty_set_scroll_region'.
17257 (turn_on_insert): Rename to `tty_turn_on_insert'.
17258 (turn_off_insert): Rename to `tty_turn_off_insert'.
17259 (turn_off_highlight): Rename to `tty_turn_off_highlight'.
17260 (turn_on_highlight): Rename to `tty_turn_on_highlight'.
17261 (toggle_highligh): Rename to `tty_toggle_highlight'.
17262 (background_highlight): Rename to `tty_background_highlight'.
17263 (highlight_if_desired): Rename to `tty_highlight_if_desired'.
17264 (tty_ring_bell, tty_update_end, tty_set_terminal_window)
17265 (tty_set_scroll_region, tty_background_highlight)
17266 (tty_cursor_to, tty_raw_cursor_to, tty_clear_to_end)
17267 (tty_clear_frame, tty_clear_end_of_line, tty_write_glyphs)
17268 (tty_insert_glyphs, tty_delete_glyphs, tty_ins_del_lines)
17269 (term_get_fkeys, tty_setup_colors, dissociate_if_controlling_tty):
17270 Add static modifier.
17271 (tty_reset_terminal_modes, tty_set_terminal_window)
17272 (tty_set_scroll_region, tty_background_highlight)
17273 (tty_highlight_if_desired, tty_cursor_to)
17274 (tty_raw_cursor_to, tty_clear_to_end, tty_clear_frame)
17275 (tty_clear_end_of_line, tty_write_glyphs, tty_insert_glyphs)
17276 (tty_delete_glyphs, tty_ins_del_lines, turn_on_face): Update for
17277 renames.
17278
172792007-08-28 Jan Djärv <jan.h.d@swipnet.se>
17280
17281 * keyboard.c: Qrtl is new.
17282 (parse_tool_bar_item): Handle :rtl keyword.
17283 (syms_of_keyboard): Intern :rtl keyword.
17284
17285 * dispextern.h (enum tool_bar_item_idx): Add TOOL_BAR_ITEM_RTL_IMAGE.
17286
17287 * gtkutil.c (xg_tool_bar_expose_callback): Just do SET_FRAME_GARBAGED
17288 so no Lisp code is executed.
17289 (file_for_image, find_rtl_image): New functions.
17290 (xg_get_image_for_pixmap): Use file_for_image.
17291 (update_frame_tool_bar): If direction is RTL, use RTL image if
17292 defined. Use Gtk stock images if defined.
17293
172942007-08-27 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
17295
17296 * macterm.c (x_draw_composite_glyph_string_foreground): Draw rectangle
17297 for nonexistent or zero-width glyph in composition glyph.
17298
172992007-08-25 Stefan Monnier <monnier@iro.umontreal.ca>
17300
17301 * m/amdx86-64.h: Redirect to intel386.h if compiling for i386.
17302
17303 * xdisp.c (Finvisible_p): New function.
17304 (syms_of_xdisp): defsubr it.
17305
173062007-08-24 Juanma Barranquero <lekktu@gmail.com>
17307
17308 * image.c (syms_of_image) <image-library-alist, cross-disabled-images>:
17309 Doc fixes.
17310
173112007-08-24 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
17312
17313 * mac.c [MAC_OSX] (select_and_poll_event, sys_select): Fix last changes.
17314
173152007-08-24 Martin Rudalics <rudalics@gmx.at>
17316
17317 * fileio.c (Finsert_file_contents): Consult CHARS_MODIFF to tell
17318 whether decoding has modified buffer contents.
17319
173202007-08-24 Jason Rumney <jasonr@gnu.org>
17321
17322 * image.c [HAVE_NTGUI]: Define dynamic loaded functions for SVG.
17323 (Qgdk_pixbuf, Qglib) [HAVE_NTGUI]: New symbols.
17324 (syms_of_image) [HAVE_NTGUI]: Intern and staticpro them.
17325 (init_svg_functions) [HAVE_NTGUI]: New function.
17326 (fn_g_type_init, fn_g_object_unref, fn_g_error_free): New #defines.
17327 (svg_load_image): Use them.
17328 (svg_load_image) [HAVE_NTGUI]: Implement background.
17329
173302007-08-23 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
17331
17332 * Makefile.in (RSVG_LIBS, RSVG_CFLAGS): New variables.
17333 (ALL_CFLAGS): Use ${RSVG_CFLAGS} instead of @RSVG_CFLAGS@.
17334 (LIBX): Remove @RSVG_LIBS@.
17335 (LIBES): Add $(RSVG_LIBS).
17336
17337 * image.c (svg_load_image): Blend with specified background if exists.
17338 Use IMAGE_BACKGROUND. Add Mac OS Support.
17339
17340 * mac.c (wakeup_from_rne_enabled_p) [MAC_OSX]: Remove variable.
17341 (ENABLE_WAKEUP_FROM_RNE, DISABLE_WAKEUP_FROM_RNE) [MAC_OSX]:
17342 Remove macros.
17343 [MAC_OSX] (socket_callback): Do nothing.
17344 [MAC_OSX] (select_and_poll_event): Use CFRunLoopRunInMode instead of
17345 ReceiveNextEvent.
17346 [MAC_OSX] (sys_select): Likewise. Don't set context as argument to
17347 socket_callback.
17348 (mac_wakeup_from_rne) [MAC_OSX]: Do nothing.
17349
173502007-08-22 Glenn Morris <rgm@gnu.org>
17351
17352 * image.c (x_find_image_file): Search in etc/images/ rather than etc/.
17353
173542007-08-22 Paul Pogonyshev <pogonyshev@gmx.net>
17355
17356 * Makefile.in (ALL_CFLAGS, LIBX): Add RSVG_LIBS.
17357
17358 * image.c: Add support for SVG images. Some additional comments
17359 by Joakim Verona <joakim@verona.se>. When HAVE_RSVG is defined:
17360 (svg_image_p): New function to test for SVG image.
17361 (svg_load): New function to load SVG image.
17362 (svg_load_image): New function, helper for svg_load.
17363 (Qsvg): New Lisp_object.
17364 (svg_keyword_index): New enum.
17365 (svg_format): New static `image_keyword' struct.
17366 (svg_type): New static `image_type' struct.
17367 (librsvg/rsvg.h): Include it.
17368
173692007-08-23 Stefan Monnier <monnier@iro.umontreal.ca>
17370
17371 * lread.c (load_warn_old_style_backquotes): Fix up array size typo.
17372
173732007-08-22 Stefan Monnier <monnier@iro.umontreal.ca>
17374
17375 * lread.c (Qold_style_backquotes): New var.
17376 (syms_of_lread): Init and staticpro it.
17377 (load_warn_old_style_backquotes): New fun.
17378 (Fload): Use them to warn about old style backquotes.
17379 (end_of_file_error, Fload): Remove unused vars.
17380
17381 * lisp.h (Fclear_face_cache, Fx_send_client_event): Declare.
17382
17383 * lread.c (Vold_style_backquotes): New var.
17384 (syms_of_lread): Init and export it to Elisp.
17385 (read1): Set it when we find an old-style (back)quote.
17386
173872007-08-22 Jason Rumney <jasonr@gnu.org>
17388
17389 * w32reg.c (SYSTEM_DEFAULT_RESOURCES): Add missing NULL terminator.
17390
173912007-08-22 Katsumi Yamaoka <yamaoka@jpl.org>
17392
17393 * puresize.h (BASE_PURESIZE): Increase to 1140000.
17394
173952007-08-19 Richard Stallman <rms@gnu.org>
17396
17397 * eval.c (Ffunction, Fquote): Signal error if not 1 argument.
17398
173992007-08-19 Andreas Schwab <schwab@suse.de>
17400
17401 * alloc.c (pure): Round PURESIZE up.
17402
174032007-08-17 Jan Djärv <jan.h.d@swipnet.se>
17404
17405 * xterm.c (handle_one_xevent): Remove check that mouse click is in
17406 active frame.
17407
174082007-08-16 Richard Stallman <rms@gnu.org>
17409
17410 * eval.c (Fcommandp): Add parens to clarify.
17411
17412 * minibuf.c (Fall_completions): Use enum for type of table.
17413
17414 * emacs.c (USAGE2): Improve text.
17415
174162007-08-15 Philippe Waroquiers <philippe.waroquiers@eurocontrol.int>
17417
17418 * term.c (tty_default_color_capabilities): Declare static
17419 variables in file scope, to avoid HPUX compiler problem.
17420
174212007-08-13 Jan Djärv <jan.h.d@swipnet.se>
17422
17423 * gtkutil.c (update_frame_tool_bar): Use -1 as index
17424 to gtk_toolbar_insert.
17425
174262007-08-13 Stefan Monnier <monnier@iro.umontreal.ca>
17427
17428 * fileio.c (Finsert_file_contents): Yet Another Int/Lisp_Object Mixup.
17429
17430 * insdel.c (reset_var_on_error): New fun.
17431 (signal_before_change, signal_after_change):
17432 Use it to reset (after|before)-change-functions to nil in case of error.
17433 Bind inhibit-modification-hooks to t.
17434 Don't bind (after|before)-change-functions to nil while they run.
17435
174362007-08-11 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
17437
17438 * xterm.c (x_draw_image_glyph_string): Adjust stipple origin when
17439 filling pixmap with stippled background.
17440
174412007-08-10 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
17442
17443 * macterm.c [TARGET_API_MAC_CARBON] (mac_handle_window_event):
17444 Don't use invisible frame as parent window for repositioning.
17445
174462007-08-10 Stefan Monnier <monnier@iro.umontreal.ca>
17447
17448 * print.c (new_backquote_output): Rename from old_backquote_output.
17449 (print): Inverse its logic (according to its name) so as to match the
17450 behavior of new_backquote_flag in lread.c.
17451
174522007-08-09 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
17453
17454 * gmalloc.c (posix_memalign): New function.
17455
17456 * macterm.c (frame_highlight, frame_unhighlight): Don't call
17457 ActivateControl/DeactivateControl here.
17458 [USE_MAC_TOOLBAR] (free_frame_tool_bar): Suppress animation when
17459 frame-notice-user-settings is non-nil.
17460 [USE_MAC_FONT_PANEL] (mac_handle_font_event): Also record parameter
17461 for kEventParamFMFontStyle.
17462 [TARGET_API_MAC_CARBON] (mac_handle_keyboard_event): Don't check
17463 mac_pass_command_to_system and mac_pass_control_to_system here.
17464 (XTread_socket): Call ActivateControl/DeactivateControl here.
17465 (XTread_socket) [TARGET_API_MAC_CARBON]:
17466 Check mac_pass_command_to_system and mac_pass_control_to_system here.
17467 (mac_handle_window_event) [USE_MAC_TOOLBAR]: Add further workaround
17468 for window repositioning.
17469
174702007-08-08 Glenn Morris <rgm@gnu.org>
17471
17472 * Replace `iff' in doc-strings and comments.
17473
174742007-08-07 Chong Yidong <cyd@stupidchicken.com>
17475
17476 * xdisp.c (move_it_by_lines): Remove incorrect optimization.
17477
174782007-08-07 Martin Rudalics <rudalics@gmx.at>
17479
17480 * fileio.c (Finsert_file_contents): Run format-decode and
17481 after_insert_file_functions on entire buffer when REPLACE is
17482 non-nil and inhibit modification_hooks and point_motion_hooks.
17483 For consistency, run after_insert_file_functions iff something
17484 got inserted. Move signal_after_change and update_compositions
17485 after code running after_insert_file_functions. Make sure that
17486 undo_list doesn't record intermediate steps of the decoding process.
17487
174882007-08-07 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
17489
17490 * emacs.c (main)
17491 [HAVE_GTK_AND_PTHREAD && !SYSTEM_MALLOC && !DOUG_LEA_MALLOC]:
17492 Call malloc_enable_thread on interactive startup.
17493
17494 * gmalloc.c (_malloc_thread_enabled_p) [USE_PTHREAD]: New variable.
17495 (LOCK, UNLOCK, LOCK_ALIGNED_BLOCKS, UNLOCK_ALIGNED_BLOCKS)
17496 [USE_PTHREAD]: Conditionalize with it.
17497 (malloc_atfork_handler_prepare, malloc_atfork_handler_parent)
17498 (malloc_atfork_handler_child, malloc_enable_thread) [USE_PTHREAD]:
17499 New functions.
17500
175012007-08-06 Chong Yidong <cyd@stupidchicken.com>
17502
17503 * xdisp.c (redisplay_window): When restoring original buffer
17504 position, make sure it is still valid.
17505
17506 * image.c (png_load): Ignore png-supplied background color.
17507
175082007-08-06 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
17509
17510 * mac.c [TARGET_API_MAC_CARBON] (cfdate_to_lisp): Obtain microsec value.
17511 Use kCFAbsoluteTimeIntervalSince1970.
17512
17513 * macmenu.c (quit_dialog_event_loop) [TARGET_API_MAC_CARBON]:
17514 New variable.
17515 [TARGET_API_MAC_CARBON] (mac_handle_dialog_event): Set it if dialog
17516 event loop should be quit.
17517 [TARGET_API_MAC_CARBON] (create_and_show_dialog) [!MAC_OSX]:
17518 Quit dialog event loop if quit_dialog_event_loop is set.
17519
17520 * macselect.c [!TARGET_API_MAC_CARBON]: Include Scrap.h.
17521 (Selection): New typedef. Use instead of ScrapRef.
17522 (mac_get_selection_from_symbol): Rename from get_scrap_from_symbol.
17523 (mac_valid_selection_target_p): Rename from valid_scrap_target_type_p.
17524 (mac_clear_selection): Rename from clear_scrap.
17525 (get_flavor_type_from_symbol): New argument SEL and subsume function of
17526 scrap_has_target_type. All uses changed.
17527 (mac_get_selection_ownership_info, mac_valid_selection_value_p)
17528 (mac_selection_has_target_p): New functions.
17529 (mac_put_selection_value): Rename from put_scrap_string.
17530 (mac_get_selection_value): Rename from get_scrap_string.
17531 (mac_get_selection_target_list): Rename from get_scrap_target_type_list.
17532 (put_scrap_private_timestamp, scrap_has_target_type)
17533 (get_scrap_private_timestamp): Remove functions.
17534 (SCRAP_FLAVOR_TYPE_EMACS_TIMESTAMP): Remove define.
17535 (x_own_selection, x_get_local_selection):
17536 Use mac_valid_selection_value_p.
17537 (x_own_selection): Don't use put_scrap_private_timestamp.
17538 Record OWNERSHIP-INFO into Vselection_alist instead.
17539 (x_get_local_selection): Don't check type if request is local.
17540 (Fx_selection_owner_p): Don't use get_scrap_private_timestamp.
17541 Detect ownership change with OWNERSHIP-INFO in Vselection_alist instead.
17542
175432007-08-04 Jan Djärv <jan.h.d@swipnet.se>
17544
17545 * gtkutil.c (xg_tool_bar_callback): Generate two TOOL_BAR_EVENT:s,
17546 add comment explaining why.
17547
175482007-08-03 Richard Stallman <rms@gnu.org>
17549
17550 * fileio.c (Fvisited_file_modtime): Use make_time.
17551
175522007-08-01 Ryo Yoshitake <ryo@shiftmode.net> (tiny change)
17553
17554 * mac.c (init_mac_osx_environment): Adjust load-path on self-contained
17555 build.
17556
175572007-07-31 Stefan Monnier <monnier@iro.umontreal.ca>
17558
17559 * gtkutil.c (xg_tool_bar_callback): Generate a single TOOL_BAR_EVENT.
17560
175612007-07-30 Katsumi Yamaoka <yamaoka@jpl.org>
17562
17563 * puresize.h (BASE_PURESIZE): Increase to 1130000.
17564
175652007-07-30 Richard Stallman <rms@gnu.org>
17566
17567 * lread.c (readevalloop, read1): Treat NBSP as whitespace.
17568
175692007-07-29 Jan Djärv <jan.h.d@swipnet.se>
17570
17571 * gmalloc.c (__malloc_initialize): Remove pthread_once. Not needed.
17572
175732007-07-28 Nick Roberts <nickrob@snap.net.nz>
17574
17575 * xdisp.c (decode_mode_spec): Use '@' instead of 'R' to test for
17576 remote default-directory.
17577
17578 * buffer.c (mode-line-format): Update doc string.
17579
175802007-07-27 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
17581
17582 * w32term.c (w32_draw_fringe_bitmap): Extend fringe background to
17583 scroll bar gap.
17584 (x_scroll_bar_create): Set bar->fringe_extended_p.
17585 (w32_set_vertical_scroll_bar): Put leftmost/rightmost scroll bars
17586 on frame edge. Check fringe background extension. Don't clear
17587 extended fringe background area.
17588
17589 * w32term.h (struct scroll_bar): New member fringe_extended_p.
17590 (w32_fill_area): Enclose multiple statements with do ... while (0).
17591
17592 * xterm.c (x_draw_fringe_bitmap) [USE_TOOLKIT_SCROLL_BARS]:
17593 Extend fringe background to scroll bar gap.
17594 (x_scroll_bar_create) [USE_TOOLKIT_SCROLL_BARS]:
17595 Set bar->fringe_extended_p.
17596 (XTset_vertical_scroll_bar) [USE_TOOLKIT_SCROLL_BARS]:
17597 Put leftmost/rightmost scroll bars on frame edge. Check fringe
17598 background extension. Don't clear extended fringe background area.
17599
17600 * xterm.h (struct scroll_bar) [USE_TOOLKIT_SCROLL_BARS]:
17601 New member fringe_extended_p.
17602
176032007-07-25 Glenn Morris <rgm@gnu.org>
17604
17605 * Relicense all FSF files to GPLv3 or later.
17606
17607 * COPYING: Switch to GPLv3.
17608
176092007-07-25 Stefan Monnier <monnier@iro.umontreal.ca>
17610
17611 * eval.c (Fcommandp): Pay attention to the `interactive-form' property.
17612
17613 * data.c (Finteractive_form): Check for the presence of an
17614 `interactive-form' symbol property more thoroughly.
17615
17616 * data.c (Finteractive_form): Use an `interactive-form' property if
17617 present, analogous to the function-documentation property.
17618
176192007-07-24 Jason Rumney <jasonr@gnu.org>
17620
17621 * w32fns.c (x_real_positions): Get real position from OS instead of
17622 calculating it.
17623
176242007-07-23 Jason Rumney <jasonr@gnu.org>
17625
17626 * filelock.c (current_lock_owner): Allow for @ sign in username.
17627
176282007-07-22 Nick Roberts <nickrob@snap.net.nz>
17629
17630 * xdisp.c (decode_mode_spec): Add case 'R' for to test for
17631 remote default-directory.
17632
17633 * buffer.c (mode-line-format): Describe above case in doc string.
17634
176352007-07-20 Eli Zaretskii <eliz@gnu.org>
17636
17637 * w32proc.c (IMAGE_NT_OPTIONAL_HDR32_MAGIC, IMAGE_OPTIONAL_HEADER32):
17638 Define if not defined.
17639
176402007-07-18 Jason Rumney <jasonr@gnu.org>
17641
17642 * w32proc.c (w32_executable_type): Handle 64 bit executables.
17643
176442007-07-18 Richard Stallman <rms@gnu.org>
17645
17646 * data.c (Fsetq_default): Doc fix.
17647
17648 * eval.c (Fsetq): Doc fix.
17649
176502007-07-18 Juanma Barranquero <lekktu@gmail.com>
17651
17652 * coding.c (Ffind_operation_coding_system):
17653 * eval.c (For, Fand): Doc fixes.
17654 Reported by Johan Bockgård.
17655
176562007-07-18 Jan Djärv <jan.h.d@swipnet.se>
17657
17658 * xfns.c (Fx_focus_frame): Call x_ewmh_activate_frame.
17659
17660 * xterm.h: Declare x_ewmh_activate_frame.
17661
17662 * xterm.c (x_ewmh_activate_frame): New function.
17663 (XTframe_raise_lower): Move code to x_ewmh_activate_frame.
17664
176652007-07-17 Martin Rudalics <rudalics@gmx.at>
17666
17667 * window.c (Fdisplay_buffer): If largest or LRU window is the
17668 only window, split it even if it is not eligible for splitting.
17669 This restores the original behavior broken by the 2007-07-15
17670 change.
17671
176722007-07-17 Glenn Morris <rgm@gnu.org>
17673
17674 * abbrev.c (abbrev_check_chars): New function.
17675 (Fdefine_global_abbrev, Fdefine_mode_abbrev):
17676 Call abbrev_check_chars to check abbrev characters are word
17677 constituents. Doc fix.
17678
176792007-07-17 Stefan Monnier <monnier@iro.umontreal.ca>
17680
17681 * process.c (Fstart_process, Fmake_network_process)
17682 (read_process_output): Fix up last changes.
17683
176842007-07-16 Eli Zaretskii <eliz@gnu.org>
17685
17686 * makefile.w32-in (clean): Don't delete *~.
17687
176882007-07-16 Andreas Schwab <schwab@suse.de>
17689
17690 * window.c (Fdisplay_buffer): Use NILP.
17691 (Fset_window_scroll_bars): Likewise.
17692
176932007-07-15 Martin Rudalics <rudalics@gmx.at>
17694
17695 * window.c (window_min_size_2): New function.
17696 (window_min_size_1, size_window, Fdisplay_buffer)
17697 (Fsplit_window, adjust_window_trailing_edge): Use it to avoid
17698 windows without mode- or header-lines when window-min-height is
17699 too small.
17700 (size_window): Reset nodelete_p after testing it, following an
17701 earlier note by Kim F. Storm.
17702 (display_buffer): Do not set split_height_threshold to twice the
17703 value of window_min_height to avoid changing the value of a
17704 customizable variable. Rather explicitly check whether the
17705 height of the window that shall be splitted is at least as large
17706 as split_height_threshold.
17707 (Fwindow_full_width_p): New defun.
17708 (syms_of_window): Defsubr it.
17709
17710 * window.h: Add EXFUN for Fwindow_full_width_p.
17711
177122007-07-14 Jason Rumney <jasonr@gnu.org>
17713
17714 * process.c [WINDOWSNT]: Don't undefine AF_INET6.
17715
177162007-07-14 Richard Stallman <rms@gnu.org>
17717
17718 * eval.c (maybe_call_debugger): New function.
17719 (find_handler_clause): Use maybe_call_debugger.
17720 Call it when the handler says `debug'.
17721 Eliminate DEBUGGER_VALUE_PTR.
17722 (Fsignal): Eliminate debugger_value.
17723 (Qdebug): New variable.
17724 (syms_of_eval): Initialize it.
17725
177262007-07-14 Juanma Barranquero <lekktu@gmail.com>
17727
17728 * eval.c (Fprogn):
17729 * keyboard.c (Ftrack_mouse):
17730 * print.c (Fwith_output_to_temp_buffer):
17731 * window.c (Fsave_window_excursion): Doc fix.
17732
177332007-07-13 Stefan Monnier <monnier@iro.umontreal.ca>
17734
17735 * eval.c (init_eval_once): Bump max_lisp_eval_depth to 400.
17736
177372007-07-12 Stefan Monnier <monnier@iro.umontreal.ca>
17738
17739 * process.h (struct Lisp_Process): Turn slots infd, outfd,
17740 kill_without_query, pty_flag, tick, update_tick, decoding_carryover,
17741 inherit_coding_system_flag, filter_multibyte, adaptive_read_buffering,
17742 read_output_delay, and read_output_skip from Lisp_Objects to ints.
17743 Remove unused encoding_carryover.
17744 * process.c: Adjust all functions accordingly.
17745
177462007-07-12 Richard Stallman <rms@gnu.org>
17747
17748 * term.c: Include unistd.h only if HAVE_UNISTD_H.
17749
177502007-07-11 Jason Rumney <jasonr@gnu.org>
17751
17752 * makefile.w32-in (LIBS): Include OLE32.
17753
17754 * w32fns.c (w32_msg_pump) <WM_EMACS_CREATEWINDOW>: Initialize COM.
17755 (w32_msg_pump) <WM_DESTROY>: Uninitialize COM.
17756
177572007-07-11 Stefan Monnier <monnier@iro.umontreal.ca>
17758
17759 * lisp.h (struct Lisp_Hash_Table): Turn next_weak into a bare pointer.
17760 * fns.c (weak_hash_tables): Rename from Vweak_hash_tables and turned
17761 from a Lisp_Object into a bare pointer.
17762 (make_hash_table, copy_hash_table, sweep_weak_hash_tables, init_fns):
17763 Adjust the code correspondingly.
17764
17765 * alloc.c (emacs_blocked_free): Remove unused var `bytes_used_now'.
17766
17767 * term.c: Include unistd.h for ttyname, used in handle_one_term_event.
17768 (term_show_mouse_face): Remove unused var `j'.
17769 (handle_one_term_event): Remove unused vars `i' and `j'.
17770 Don't cast return value of ttyname since it's not necessary.
17771
177722007-07-10 Stefan Monnier <monnier@iro.umontreal.ca>
17773
17774 * alloc.c (mark_maybe_pointer): Enforce mult-of-8 alignment when using
17775 USE_LSB_TAG. Suggested by Dmitry Antipov <dmantipov@yandex.ru>.
17776
17777 * fns.c (map_char_table): Use an array of int for `indices' rather than
17778 an array of Lisp_Objects (which are only ever integers anyway).
17779 (Fmap_char_table): Update caller.
17780 * lisp.h: Update prototype.
17781 * keymap.c (Fset_keymap_parent, map_keymap, Fcopy_keymap):
17782 * fontset.c (Ffontset_info):
17783 * casetab.c (set_case_table): Update callers.
17784
17785 * editfns.c (Ftranspose_regions): Use EMACS_INT for positions.
17786
17787 * keymap.c (struct accessible_keymaps_data)
17788 (struct where_is_internal_data): New structures.
17789 (accessible_keymaps_1, where_is_internal_1): Use them to change
17790 interface to adhere to the one used by map_keymap.
17791 (Faccessible_keymaps, where_is_internal): Use map_keymap.
17792 (accessible_keymaps_char_table, where_is_internal_2): Remove.
17793
17794 * keymap.h (map_keymap_function_t): More informative prototype.
17795
177962007-07-10 Guanpeng Xu <herberteuler@hotmail.com>
17797
17798 * search.c (Vinhibit_changing_match_data, search_regs_1): New vars.
17799 (looking_at_1): Don't change search_regs and last_thing_searched
17800 if `inhibit-changing-match-data' is non-nil.
17801 (string_match_1, search_buffer, set_search_regs): Likewise.
17802 (syms_of_search): Add Lisp level definition for
17803 `inhibit-changing-match-data' and set it to nil.
17804 (boyer_moore): If `inhibit-changing-match-data' is non-nil, compute
17805 start and end of the match, instead of using values in search_regs.
17806
178072007-07-01 Stefan Monnier <monnier@iro.umontreal.ca>
17808
17809 * minibuf.c (Fcompleting_read): New value `confirm-only'
17810 for `require-match'.
17811
178122007-06-28 Stefan Monnier <monnier@iro.umontreal.ca>
17813
17814 * fileio.c (Fdo_auto_save): Revert last patch installed unwillingly as
17815 part of the 2007-06-27 change to syms_of_fileio.
17816
178172007-06-28 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
17818
17819 * macterm.c [USE_MAC_TSM] (mac_handle_text_input_event):
17820 Check WINDOWP before using XWINDOW. Consolidate return statements.
17821
178222007-06-27 Richard Stallman <rms@gnu.org>
17823
17824 * fileio.c (syms_of_fileio) <after-insert-file-functions>: Doc fix.
17825
178262007-06-27 Juanma Barranquero <lekktu@gmail.com>
17827
17828 * buffer.c (syms_of_buffer) <selective-display>: Fix typo in docstring.
17829
178302007-06-26 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
17831
17832 * gmalloc.c [HAVE_GTK_AND_PTHREAD]: Check this after including config.h.
17833 (_aligned_blocks_mutex) [USE_PTHREAD]: New variable.
17834 (LOCK_ALIGNED_BLOCKS, UNLOCK_ALIGNED_BLOCKS): New macros.
17835 (_free_internal, memalign): Use them.
17836 (_malloc_mutex, _aligned_blocks_mutex) [USE_PTHREAD]:
17837 Initialize to PTHREAD_MUTEX_INITIALIZER.
17838 (malloc_initialize_1) [USE_PTHREAD]: Don't use recursive mutex.
17839 (morecore_nolock): Rename from morecore. All uses changed.
17840 Use only nolock versions of internal allocation functions.
17841 (_malloc_internal_nolock, _realloc_internal_nolock)
17842 (_free_internal_nolock): New functions created from
17843 _malloc_internal, _realloc_internal, and _free_internal.
17844 (_malloc_internal, _realloc_internal, _free_internal): Use them.
17845 Copy hook value to automatic variable before its use.
17846 (memalign): Copy hook value to automatic variable before its use.
17847
178482007-06-26 Kenichi Handa <handa@m17n.org>
17849
17850 * coding.c (Ffind_operation_coding_system): Docstring improved.
17851 (syms_of_coding): Docstring of `file-coding-system-alist' improved.
17852
178532007-06-25 David Kastrup <dak@gnu.org>
17854
17855 * keymap.c (Fcurrent_active_maps): Add `position' argument.
17856 (Fwhere_is_internal): Adjust call to `current-active-maps' to
17857 cater for additional parameter.
17858
17859 * keymap.h: Adjust number of parameters to `current-active-maps'.
17860
17861 * doc.c (Fsubstitute_command_keys): Adjust call of
17862 `current-active-maps'.
17863
178642007-06-25 David Kastrup <dak@gnu.org>
17865
17866 * callint.c (Fcall_interactively): Make the parsing of interactive
17867 specs somewhat more readable.
17868
178692007-06-23 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
17870
17871 * macterm.c (x_draw_fringe_bitmap) [MAC_OSX]: Extend fringe background
17872 to scroll bar gap also when bitmap fills fringe. Draw only foreground
17873 if extended background has already been filled.
17874
178752007-06-22 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
17876
17877 * macgui.h (USE_CG_DRAWING): Don't require USE_ATSUI.
17878 (USE_MAC_TOOLBAR): Require USE_CG_DRAWING.
17879
17880 * macmenu.c (mac_dialog_modal_filter, Fx_popup_dialog) [MAC_OSX]:
17881 Put special treatment for Fmessage_box, Fyes_or_no_p, and Fy_or_n_p
17882 in #if 0 as it is not compatible with y-or-n-p-with-timeout.
17883 (timer_check) [TARGET_API_MAC_CARBON]: Add extern.
17884 [TARGET_API_MAC_CARBON] (mac_handle_dialog_event): Use QuitEventLoop
17885 instead of QuitAppModalLoopForWindow. Consolidate QuitEventLoop calls.
17886 (pop_down_dialog) [TARGET_API_MAC_CARBON]: New function.
17887 [TARGET_API_MAC_CARBON] (create_and_show_dialog): Use it for unwind.
17888 Run timers during dialog popup.
17889 (Fmenu_or_popup_active_p) [TARGET_API_MAC_CARBON]: Use popup_activated.
17890
178912007-06-21 Jason Rumney <jasonr@gnu.org>
17892
17893 * image.c (convert_mono_to_color_image): Swap fore and background.
17894
178952007-06-20 Jason Rumney <jasonr@gnu.org>
17896
17897 * w32bdf.c (w32_BDF_to_x_font): Unmap memory when finished.
17898 (w32_free_bdf_font): Unmap memory not handle.
17899
179002007-06-20 Sam Steingold <sds@gnu.org>
17901
17902 * gmalloc.c (__morecore): Fix the declaration to comply with the
17903 definition.
17904
179052007-06-20 Juanma Barranquero <lekktu@gmail.com>
17906
17907 * w32term.c (w32_delete_display): Remove leftover declaration.
17908 (w32_define_cursor, w32_initialize): Make static.
17909
17910 * w32.c (_wsa_errlist): Fix typo in error message.
17911 (init_environment): Ignore any environment variable from the
17912 registry having a null value.
17913
179142007-06-20 Glenn Morris <rgm@gnu.org>
17915
17916 * Makefile.in (LIBGIF): Default to -lgif.
17917
179182007-06-17 Jason Rumney <jasonr@gnu.org>
17919
17920 * w32menu.c (add_menu_item): Don't use multibyte string functions on
17921 unicode strings.
17922
179232007-06-16 Juanma Barranquero <lekktu@gmail.com>
17924
17925 * xdisp.c (syms_of_xdisp) <auto-resize-tool-bars>:
17926 Fix typo in docstring.
17927
179282007-06-16 Eli Zaretskii <eliz@gnu.org>
17929
17930 * w32menu.c (add_menu_item): Escape `&' characters in menu items
17931 and their keybindings.
17932
179332007-06-15 Chong Yidong <cyd@stupidchicken.com>
17934
17935 * composite.c (update_compositions): Fix last fix.
17936
179372007-06-14 Jason Rumney <jasonr@gnu.org>
17938
17939 * w32.c (get_process_times_fn): New function pointer.
17940 (globals_of_w32): Intialize it if present in kernel32.dll.
17941 (w32_get_internal_run_time): New function.
17942
17943 * editfns.c (Fget_internal_run_time) [WINDOWSNT]: Use it.
17944
179452007-06-14 Kenichi Handa <handa@etlken.m17n.org>
17946
17947 * composite.c (update_compositions): Check the validness of
17948 compositions.
17949
179502007-06-14 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
17951
17952 * frame.h (struct frame) [MAC_OS]: New member external_tool_bar.
17953 (FRAME_EXTERNAL_TOOL_BAR) [MAC_OS]: Use it.
17954
17955 * macfns.c (mac_window) [USE_MAC_TOOLBAR]: Set toolbar_win_gravity.
17956 (x_set_tool_bar_lines) [USE_MAC_TOOLBAR]: Set FRAME_EXTERNAL_TOOL_BAR.
17957
17958 * macgui.h (USE_MAC_TOOLBAR): New define.
17959
17960 * macmenu.c [TARGET_API_MAC_CARBON] (menu_target_item_handler):
17961 Return immediately unless popup is activated.
17962
17963 * macterm.c (x_draw_fringe_bitmap) [MAC_OSX]: Extend fringe
17964 background to scroll bar gap.
17965 (x_scroll_bar_create) [MAC_OSX]: Set bar->fringe_extended_p.
17966 (XTset_vertical_scroll_bar) [MAC_OSX]: Put leftmost/rightmost
17967 scroll bars on frame edge. Check fringe background extension.
17968 Don't clear extended fringe background area.
17969 (TOOLBAR_IDENTIFIER, TOOLBAR_ICON_ITEM_IDENTIFIER)
17970 (TOOLBAR_ITEM_COMMAND_ID_OFFSET, TOOLBAR_ITEM_COMMAND_ID_P)
17971 (TOOLBAR_ITEM_COMMAND_ID_VALUE, TOOLBAR_ITEM_MAKE_COMMAND_ID):
17972 [USE_MAC_TOOLBAR]: New macros.
17973 (mac_move_window_with_gravity, mac_get_window_origin_with_gravity)
17974 (mac_handle_toolbar_event, mac_image_spec_to_cg_image)
17975 (mac_create_frame_tool_bar, update_frame_tool_bar, free_frame_tool_bar)
17976 (mac_tool_bar_note_mouse_movement, mac_handle_toolbar_command_event)
17977 [USE_MAC_TOOLBAR]: New functions.
17978 (mac_handle_window_event) [USE_MAC_TOOLBAR]: Reposition window
17979 manually if previous repositioning has failed.
17980 (mac_handle_keyboard_event): Use precomputed event kind.
17981 (XTread_socket) [USE_MAC_TOOLBAR]: Handle click in structure region
17982 as tool bar item click. Handle mouse movement over tool bar items.
17983
17984 * macterm.h (struct mac_output) [USE_MAC_TOOLBAR]: New member
17985 toolbar_win_gravity.
17986 (struct scroll_bar) [MAC_OSX]: New member fringe_extended_p.
17987 (update_frame_tool_bar, free_frame_tool_bar) [USE_MAC_TOOLBAR]:
17988 Add externs.
17989
17990 * xdisp.c (update_tool_bar, redisplay_tool_bar, redisplay_window)
17991 [USE_MAC_TOOLBAR]: Sync with GTK+ tool bar display.
17992
179932007-06-14 Chong Yidong <cyd@stupidchicken.com>
17994
17995 * image.c (search_image_cache): Remove unused variable.
17996
179972007-06-13 Chong Yidong <cyd@stupidchicken.com>
17998
17999 * xfns.c, xmenu.c: Link to xaw3d if available.
18000
180012007-06-13 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
18002
18003 * dispextern.h (struct image) [HAVE_WINDOW_SYSTEM]: New members
18004 frame_foreground and frame_background.
18005
18006 * image.c (lookup_image): Save frame foreground and background colors.
18007 (search_image_cache): Check if saved and current frame colors match.
18008
180092007-06-12 Stefan Monnier <monnier@iro.umontreal.ca>
18010
18011 * regex.c (regex_compile): Remove the `regnum' counter.
18012 Use bufp->re_nsub instead. Add support for \(?N:RE\).
18013
180142007-06-11 Stefan Monnier <monnier@iro.umontreal.ca>
18015
18016 * term.c: Include intervals.h to declare Fget_text_property.
18017
180182007-06-10 Jason Rumney <jasonr@gnu.org>
18019
18020 * w32fns.c (Fx_file_dialog): Take size from struct not pointer.
18021
180222007-06-08 Juanma Barranquero <lekktu@gmail.com>
18023
18024 * callint.c (Fcall_interactively):
18025 * editfns.c (Fdelete_and_extract_region):
18026 * fileio.c (Fread_file_name):
18027 * fns.c (Fmapconcat):
18028 * keyboard.c (cmd_error_internal):
18029 * keymap.c (Fkey_description):
18030 * lread.c (openp):
18031 * minibuf.c (read_minibuf):
18032 * search.c (wordify):
18033 * sunfns.c (sel_read):
18034 * xdisp.c (Fformat_mode_line, syms_of_xdisp):
18035 * xfns.c (x_default_scroll_bar_color_parameter):
18036 * xmenu.c (menu_help_callback):
18037 * xselect.c (Fx_get_atom_name):
18038 * xterm.c (x_term_init): Use empty_unibyte_string.
18039
180402007-06-08 Dmitry Antipov <dmantipov@yandex.ru> (tiny change)
18041
18042 * alloc.c (init_strings): Initialize canonical empty strings.
18043 (make_uninit_string, make_uninit_multibyte_string): Return appropriate
18044 canonical empty string when the requested size is 0.
18045
18046 * emacs.c (empty_unibyte_string): Rename from empty_string.
18047 (empty_multibyte_string): New canonical empty string.
18048 (syms_of_emacs): Don't initialize empty_string.
18049
18050 * lisp.h (STRING_SET_UNIBYTE): Return the canonical empty unibyte
18051 string, if appropriate.
18052 (empty_unibyte_string, empty_multibyte_string): New externs.
18053 (empty_string): Remove extern.
18054
18055 * lread.c (syms_of_lread): Use empty_unibyte_string.
18056
180572007-06-07 Jason Rumney <jasonr@gnu.org>
18058
18059 * s/ms-w32.h: Don't define HAVE_TZNAME.
18060
18061 * editfns.c (Fcurrent_time_zone): Remove hack for Japanese Windows.
18062
180632007-06-07 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
18064
18065 * mac.c (xrm_get_preference_database): Remove BLOCK_INPUT.
18066
18067 * macfns.c (mac_get_window_bounds): Move extern to macterm.h.
18068 (compute_tip_xy) [TARGET_API_MAC_CARBON]: Use GetGlobalMouse.
18069
18070 * macmenu.c [TARGET_API_MAC_CARBON] (menu_target_item_handler):
18071 Don't call next handler.
18072 [TARGET_API_MAC_CARBON] (install_menu_target_item_handler):
18073 Remove argument. Install handler to application.
18074 (set_frame_menubar): Don't change deep_p.
18075 (mac_menu_show): Use FRAME_OUTER_TO_INNER_DIFF_X and
18076 FRAME_OUTER_TO_INNER_DIFF_Y.
18077 (DIALOG_BUTTON_COMMAND_ID_OFFSET, DIALOG_BUTTON_COMMAND_ID_P)
18078 (DIALOG_BUTTON_COMMAND_ID_VALUE, DIALOG_BUTTON_MAKE_COMMAND_ID)
18079 [HAVE_DIALOGS]: New macros.
18080 [HAVE_DIALOGS] (mac_handle_dialog_event, create_and_show_dialog):
18081 Use them.
18082 (fill_menubar) [TARGET_API_MAC_CARBON]: Use CFString.
18083
18084 * macselect.c [MAC_OSX] (install_service_handler): Rename from
18085 init_service_handler. All callers changed. Return OSStatus value.
18086
18087 * macterm.c (mac_begin_cg_clip): New arg F. Call SetPortWindowPort.
18088 All callers changed so as not to call SetPortWindowPort.
18089 (mac_begin_cg_clip) [USE_CG_DRAWING]: Call mac_prepare_for_quickdraw.
18090 (mac_draw_image_string_atsui) [USE_ATSUI]: New function created from
18091 mac_draw_string_common.
18092 (mac_draw_image_string_qd): Likewise.
18093 (mac_draw_string_common): Use them. Add INLINE.
18094 (XTmouse_position, x_scroll_bar_report_motion) [TARGET_API_MAC_CARBON]:
18095 Use FRAME_OUTER_TO_INNER_DIFF_X, FRAME_OUTER_TO_INNER_DIFF_Y, and
18096 GetGlobalMouse.
18097 (x_set_mouse_pixel_position) [MAC_OSX]: Use FRAME_OUTER_TO_INNER_DIFF_X
18098 and FRAME_OUTER_TO_INNER_DIFF_Y.
18099 [TARGET_API_MAC_CARBON] (mac_handle_mouse_event): Likewise.
18100 [USE_MAC_TSM] (mac_handle_text_input_event): Likewise.
18101 (x_make_frame_visible) [TARGET_API_MAC_CARBON]: Move code for
18102 repositioning window to mac_handle_window_event.
18103 (x_make_frame_invisible) [TARGET_API_MAC_CARBON]: Move code for
18104 saving window location to mac_handle_window_event
18105 [USE_MAC_FONT_PANEL] (mac_show_hide_font_panel): Install handler here.
18106 (install_menu_target_item_handler): Remove argument in extern.
18107 [TARGET_API_MAC_CARBON] (mac_event_to_emacs_modifiers):
18108 Also accept command events.
18109 (do_keystroke): New function created from XTread_socket.
18110 (init_command_handler): Remove functions.
18111 [TARGET_API_MAC_CARBON] (mac_handle_window_event): Reposition window
18112 and save window location by kEventWindowShowing and kEventWindowHiding
18113 handlers here. Don't call next handler for window state change and
18114 focus events.
18115 (mac_handle_application_event, mac_handle_keyboard_event)
18116 [TARGET_API_MAC_CARBON]: New functions.
18117 (install_window_handler) [TARGET_API_MAC_CARBON]: Register handlers for
18118 kEventWindowShowing and kEventWindowHiding events. Move installation
18119 of mouse, font, text input and menu target item handlers to
18120 install_application_handler.
18121 (install_application_handler) [TARGET_API_MAC_CARBON]: New function.
18122 (mac_handle_cg_display_reconfig) [MAC_OS_X_VERSION_MAX_ALLOWED >= 1030]:
18123 New function.
18124 (init_dm_notification_handler) [MAC_OS_X_VERSION_MAX_ALLOWED >= 1030]:
18125 Register it.
18126 (XTread_socket) [TARGET_API_MAC_CARBON]:
18127 Consolidate SendEventToEventTarget calls.
18128 Use FRAME_OUTER_TO_INNER_DIFF_X and FRAME_OUTER_TO_INNER_DIFF_Y.
18129 Move application activation handler to mac_handle_application_event.
18130 Move keyboard handler to mac_handle_keyboard_event.
18131 (XTread_socket) [!TARGET_API_MAC_CARBON]: Use do_keystroke.
18132 (mac_initialize) [TARGET_API_MAC_CARBON]: Don't call
18133 init_command_handler. Call install_application_handler.
18134
18135 * macterm.h (mac_get_window_bounds): Move extern from macfns.c.
18136 (FRAME_OUTER_TO_INNER_DIFF_X, FRAME_OUTER_TO_INNER_DIFF_Y): New macros.
18137
181382007-06-07 Glenn Morris <rgm@gnu.org>
18139
18140 * emacs.c (main): Use `emacs-copyright' in --version output.
18141
181422007-06-06 Chong Yidong <cyd@stupidchicken.com>
18143
18144 * image.c (xpm_load): Remove spurious call to xpm_init_color_cache.
18145
181462007-06-06 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
18147
18148 * macfns.c (mac_window): Replace WindowPtr with WindowRef.
18149
18150 * macgui.h: Replace WindowPtr with WindowRef.
18151
18152 * macmenu.c: Replace MenuHandle and GetMenuHandle with MenuRef and
18153 GetMenuRef, respectively. Replace WindowPtr with WindowRef.
18154 Replace ControlHandle with ControlRef.
18155 (install_menu_quit_handler): Rename arg MENU_HANDLE to ROOT_MENU.
18156
18157 * macterm.c: Replace MenuHandle and GetMenuHandle with MenuRef and
18158 GetMenuRef, respectively. Replace WindowPtr with WindowRef.
18159 Replace ControlHandle with ControlRef.
18160 (USE_CARBON_EVENTS): Remove. Use TARGET_API_MAC_CARBON instead.
18161 [MAC_OS8] (do_get_menus): Rename variable `menu_handle' to `menu'.
18162
18163 * macterm.h (struct scroll_bar): Rename member control_handle_low
18164 and control_handle_high to control_ref_low and control_ref_high.
18165 All uses changed.
18166 (SCROLL_BAR_CONTROL_REF, SET_SCROLL_BAR_CONTROL_REF): Rename from
18167 SCROLL_BAR_CONTROL_HANDLE and SET_SCROLL_BAR_CONTROL_HANDLE,
18168 respectively. All uses changed.
18169 (XCreatePixmap, XCreatePixmapFromBitmapData, XSetWindowBackground)
18170 (install_window_handler, remove_window_handler): Replace WindowPtr
18171 with WindowRef in externs.
18172
181732007-06-05 Juanma Barranquero <lekktu@gmail.com>
18174
18175 * xfaces.c (Finternal_lisp_face_p): Signal error for face alias loops.
18176
181772007-06-03 Nick Roberts <nickrob@snap.net.nz>
18178
18179 * keyboard.c (discard_mouse_events): Add GPM_CLICK_EVENT case.
18180
18181 * frame.c (Fmouse_position, Fmouse_pixel_position):
18182 Condition on HAVE_GPM too.
18183
18184 * term.c (term_mouse_highlight): Remove unused variables.
18185 (Fterm_open_connection): Set gpm_zerobased to 1.
18186 (term_mouse_movement, term_mouse_click, handle_one_term_event):
18187 Use zero based co-ordinates.
18188 (handle_one_term_event): Report a drag as mouse movement too.
18189
18190 * Makefile.in (MOUSE_SUPPORT): Define for HAVE_GPM.
18191
181922007-06-03 Chong Yidong <cyd@stupidchicken.com>
18193
18194 * image.c (search_image_cache): New function. Require background
18195 color match if background color is unspecified in the image spec.
18196 (uncache_image, lookup_image): Use it.
18197
181982007-06-01 Juanma Barranquero <lekktu@gmail.com>
18199
18200 * window.c (Fshrink_window): Reflow docstring.
18201
182022007-06-02 Chong Yidong <cyd@stupidchicken.com>
18203
18204 * Version 22.1 released.
18205
182062007-06-01 Richard Stallman <rms@gnu.org>
18207
18208 * xfns.c (x_encode_text): Add GCPRO.
18209
182102007-06-01 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
18211
18212 * xfns.c (x_set_name_internal): Save encoded name before
18213 x_encode_text in case string data is relocated.
18214
182152007-05-31 Richard Stallman <rms@gnu.org>
18216
18217 * buffer.c (syms_of_buffer): Doc fix.
18218
182192007-05-30 Nick Roberts <nickrob@snap.net.nz>
18220
18221 * sysdep.c (init_sys_modes): Add rather than replace with
18222 O_NONBLOCK.
18223
18224 * frame.c [HAVE_GPM] (Fset_mouse_pixel_position): Add call to
18225 term_mouse_moveto.
18226
18227 * termhooks.h (term_mouse_moveto): New extern.
18228
18229 * term.c (mouse_face_window): Rename...
18230 (Qmouse_face_window): ...to this.
18231 (term_show_mouse_face, term_clear_mouse_face)
18232 (term_mouse_highlight): Use Qmouse_face_window.
18233 (term_mouse_moveto): New function.
18234 (term_mouse_position): Make it work.
18235 (syms_of_term): Uncomment assignment to mouse_position_hook.
18236 Staticpro Qmouse_face_window.
18237
182382007-05-28 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
18239
18240 * xdisp.c (redisplay_internal): Bind inhibit-point-motion-hooks to t
18241 around current_column call.
18242
182432007-05-26 Dan Nicolaescu <dann@ics.uci.edu>
18244
18245 * xfaces.c (syms_of_xfaces): Delete stray semicolon.
18246 * xdisp.c (next_element_from_buffer):
18247 * window.c (delete_window):
18248 * term.c (term_mouse_highlight):
18249 * msdos.c (getdefdir):
18250 * macterm.c (mac_create_bitmap_from_bitmap_data)
18251 (init_font_name_table):
18252 * fns.c (Fsxhash):
18253 * data.c (Fmake_local_variable):
18254 * ccl.c (ccl_driver): Likewise.
18255
182562007-05-24 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
18257
18258 * macterm.c [USE_CARBON_EVENTS] (mac_handle_window_event):
18259 Call mac_wakeup_from_rne on window size change.
18260
182612007-05-25 Chong Yidong <cyd@stupidchicken.com>
18262
18263 * image.c (uncache_image): Fix typo.
18264
182652007-05-23 Johannes Weiner <hannes@saeurebad.de> (tiny change)
18266
18267 * keyboard.c (make_lispy_movement): Condition on HAVE_GPM too.
18268
182692007-05-22 Richard Stallman <rms@gnu.org>
18270
18271 * xterm.c (x_connection_closed): Remove NO_RETURN.
18272
182732007-05-22 Martin Rudalics <rudalics@gmx.at>
18274
18275 * syntax.c (scan_words): Fix arg to UPDATE_SYNTAX_TABLE_BACKWARD.
18276
182772007-05-21 Chong Yidong <cyd@stupidchicken.com>
18278
18279 * image.c (uncache_image): New function.
18280 (Fimage_refresh): New function.
18281
182822007-05-20 Jan Djärv <jan.h.d@swipnet.se>
18283
18284 * Makefile.in: Move GPM check outside HAVE_X_WINDOWS.
18285
182862007-05-20 Nick Roberts <nickrob@snap.net.nz>
18287
18288 * config.in, keyboard.c, Makefile.in, sysdep.c, term.c,
18289 * termhooks.h: Use HAVE_GPM instead of HAVE_GPM_H.
18290
182912007-05-20 Nick Roberts <nickrob@snap.net.nz>
18292
18293 * keyboard.c (make_lispy_event): Make case GPM_CLICK_EVENT
18294 conditional on [HAVE_GPM_H].
18295
182962007-05-19 Stefan Monnier <monnier@iro.umontreal.ca>
18297
18298 * syntax.c (skip_chars): Update syntax-table only after we checked that
18299 the new location is valid.
18300
183012007-05-19 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
18302
18303 * macterm.c (x_calc_absolute_position): Add BLOCK_INPUT around
18304 mac_get_window_bounds.
18305
183062007-05-20 Nick Roberts <nickrob@snap.net.nz>
18307
18308 * Makefile.in (LIBGPM): Allow it to be set from configure.
18309 If set then link Emacs with it.
18310
18311 * config.in: Regenerate.
18312
18313 * lisp.h (add_gpm_wait_descriptor, delete_gpm_wait_descriptor):
18314 New externs.
18315
18316 * termhooks.h [HAVE_GPM_H] (enum event_kind): Add GPM_CLICK_EVENT.
18317 Include gpm.h.
18318 (handle_one_term_event, term_gpm): New externs.
18319
18320 * sysdep.c [HAVE_GPM_H] (init_sys_modes): Make gpm_fd nonblocking
18321 and allow it to be interrupted by SIGIO.
18322
18323 * process.c (gpm_wait_mask, max_gpm_desc): New variables.
18324 (wait_reading_process_output): Wait on gpm_fd too.
18325 (add_gpm_wait_descriptor, delete_gpm_wait_descriptor)): New functions.
18326 (add_gpm_wait_descriptor_called_flag): New variable.
18327 (delete_keyboard_wait_descriptor): Check gpm_wait_mask.
18328
18329 * keyboard.c [HAVE_GPM_H] (Qmouse_fixup_help_message)
18330 (make_lispy_movement, tracking_off, Ftrack_mouse, some_mouse_moved)
18331 (show_help_echo, readable_events, kbd_buffer_get_event, init_keyboard):
18332 Extend HAVE_MOUSE ifdefs to HAVE_GPM_H.
18333 (make_lispy_event): Add case GPM_CLICK_EVENT.
18334 (read_avail_input): Handle mouse input.
18335
18336 * term.c (write_glyphs_with_face): New function.
18337 [HAVE_GPM_H]: Include buffer.h, sys/fcntl.h.
18338 (mouse_face_beg_row, mouse_face_beg_col, mouse_face_end_row)
18339 (mouse_face_end_col, mouse_face_past_end, mouse_face_window)
18340 (mouse_face_face_id, term_gpm, pos_x, pos_y)
18341 (last_mouse_x, last_mouse_y): New variables.
18342 (term_show_mouse_face, term_clear_mouse_face, fast_find_position)
18343 (term_mouse_highlight, term_mouse_movement, term_mouse_position)
18344 (term_mouse_click, handle_one_term_event, Fterm_open_connection)
18345 (Fterm_close_connection): New functions.
18346 (term_init): Initialise mouse_face_window.
18347
183482007-05-19 Chong Yidong <cyd@stupidchicken.com>
18349
18350 * xdisp.c (redisplay_window): If first window line is a
18351 continuation line, recompute the new window start instead of
18352 recentering.
18353
183542007-05-18 Glenn Morris <rgm@gnu.org>
18355
18356 * m/alpha.h (ORDINARY_LINK): No longer define on OpenBSD.
18357 Suggested by Alfred M. Szmidt <ams@gnu.org>.
18358
183592007-05-17 Glenn Morris <rgm@gnu.org>
18360
18361 * m/macppc.h (ORDINARY_LINK): No longer define on OpenBSD.
18362
183632007-05-16 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
18364
18365 * macterm.c [USE_CARBON_EVENTS] (mac_convert_event_ref): Also convert
18366 dead key repeat and up events.
18367
183682007-05-14 Chong Yidong <cyd@stupidchicken.com>
18369
18370 * image.c (pbm_load): Check image size for monochrome pbm.
18371
183722007-05-13 Chong Yidong <cyd@stupidchicken.com>
18373
18374 * xterm.c (XTread_socket): Revert last change.
18375
183762007-05-12 Chong Yidong <cyd@stupidchicken.com>
18377
18378 * image.c (pbm_load): Correctly check image size for greyscale pbm.
18379
18380 * xterm.c (XTread_socket): Yet Another Uncaught X Error Crash (YAUXEC).
18381
183822007-05-07 Stefan Monnier <monnier@iro.umontreal.ca>
18383
18384 * editfns.c (Ftranspose_regions): Yet another int/Lisp_Object
18385 mixup (YAILOM).
18386
183872007-05-07 Andreas Schwab <schwab@suse.de>
18388
18389 * keymap.c (Flookup_key): Fix typo in last change.
18390
183912007-05-07 Stefan Monnier <monnier@iro.umontreal.ca>
18392
18393 * keymap.c (Fdefine_key, Flookup_key): Only do the 0x80->meta_modifier
18394 mapping for unibyte strings.
18395
183962007-05-01 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
18397
18398 * macmenu.c (mac_dialog_show): Apply 2007-04-27 change for xmenu.c.
18399 (Fx_popup_dialog) [MAC_OSX]: Likewise.
18400
184012007-04-29 Richard Stallman <rms@gnu.org>
18402
18403 * insdel.c (replace_range): For undo, record insertion first.
18404
184052007-04-29 Andreas Schwab <schwab@suse.de>
18406
18407 * lisp.h (VECSIZE): Use OFFSETOF.
18408
184092007-04-29 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
18410
18411 * xdisp.c (try_window_reusing_current_matrix): Fix number of
18412 disabled lines.
18413
184142007-04-28 Richard Stallman <rms@gnu.org>
18415
18416 * lread.c (read_escape): In a string, \s is always space.
18417
184182007-04-27 Jan Djärv <jan.h.d@swipnet.se>
18419
18420 * xmenu.c (xdialog_show): Call Fredisplay before showing the dialog.
18421
18422 * gtkutil.c (xg_update_menubar, create_menus): Create empty
18423 submenu for menu bar items.
18424
18425See ChangeLog.10 for earlier changes.
18426
18427;; Local Variables:
18428;; coding: utf-8
18429;; add-log-time-zone-rule: t
aac0c6e3
MR
18430;; End:
18431
76b6f707 18432 Copyright (C) 2007, 2008, 2009 Free Software Foundation, Inc.
aac0c6e3
MR
18433
18434 This file is part of GNU Emacs.
18435
18436 GNU Emacs is free software: you can redistribute it and/or modify
18437 it under the terms of the GNU General Public License as published by
18438 the Free Software Foundation, either version 3 of the License, or
18439 (at your option) any later version.
18440
18441 GNU Emacs is distributed in the hope that it will be useful,
18442 but WITHOUT ANY WARRANTY; without even the implied warranty of
18443 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
18444 GNU General Public License for more details.
18445
18446 You should have received a copy of the GNU General Public License
18447 along with GNU Emacs. If not, see <http://www.gnu.org/licenses/>.
18448
18449;; arch-tag: dfb6ad96-1550-4905-9e53-d2059ee84c40